2015-06-24 François Dumont <fdumont@gcc.gnu.org>
[official-gcc.git] / gcc / ChangeLog
blob944e89c5fa5f96164b941264007666cfc12c2c0e
1 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
3         * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
4         Condition on TARGET_FLOAT.
6 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
8         * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
9         and (no)crypto.
11 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
13         * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
15         * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
16         aarch64_err_no_fpadvsimd.
18         * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
19         (aarch64_layout_arg, aarch64_init_cumulative_args): Use
20         aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
21         (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
22         Turn error into assert, test TARGET_FLOAT.
23         (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
24         TARGET_FLOAT.
26 2015-06-24  Aldy Hernandez  <aldyh@redhat.com>
28         PR debug/66482
29         * dwarf2out.c (gen_formal_parameter_die): Remove assert.
31 2015-06-24  Ilya Enkovich  <enkovich.gnu@gmail.com>
33         * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
35 2015-06-24 Renlin Li <renlin.li@arm.com>
37         * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
38         __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
40 2015-06-24  Richard Biener  <rguenther@suse.de>
42         * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
43         (main): Likewise.
44         (lower_opt_convert): Support lowering of conditional view_convert.
45         (parser::parse_operation): Likewise.
46         (parser::parse_for): Likewise.
48 2015-06-24  Renlin Li  <renlin.li@arm.com>
50         * varasm.c (emit_local): Use unsigned int for align variable.
52 2015-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
54         PR target/63408
55         * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
56         for negative numbers.
58 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
60         PR rtl-optimization/66306
61         * reload.c (find_reloads): Swap the match_dup info for
62         commutative operands.
64 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
66         * config/s390/vx-builtins.md
67         ("vec_scatter_element<mode>_<non_vec_int>")
68         ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
69         attribute with bhfgq.
71 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
73         * config/s390/s390-builtins.def: Fix vpopct instruction comments.
75 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
77         * config/s390/s390-builtin-types.def: Add flag to indicate the
78         options under which the function type is needed.
79         * config/s390/s390-builtins.def: Add flag to indicate the options
80         under which the builtin is enabled.
81         * config/s390/s390-builtins.h: Add flags parameter to macro
82         definitions.
83         (bflags_for_builtin): New function.
84         (flags_for_builtin): Renamed to ...
85         (opflags_for_builtin): ... this.
86         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
87         flags_for_builtin to bflags_for_builtin and
88         flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
89         * config/s390/s390.c: Add initialization of bflags_builtin and
90         opflags_builtin arrays.
91         Remove code for flags_builtin.
92         (s390_init_builtins): Only create builtin function types if one of
93         their flags is active.
94         Only create builtins if all of their flags are active.
95         (s390_expand_builtin): Rename flags_for_builtin to
96         opflags_for_builtin.
98 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
100         * config/s390/vecintrin.h: Remove internal builtins.
102 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
104         * config/s390/s390.c (s390_secondary_reload): Fix check for
105         GENERAL_REGS register class.
107 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
109         * config/s390/s390.c (s390_support_vector_misalignment): Call
110         default implementation for !TARGET_VX.
112 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
114         * config/s390/s390.c (s390_legitimate_constant_p): Add
115         TARGET_VX check.
117 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
119         * config/s390/s390.c (s390_vector_abi): New variable definition.
120         (s390_check_type_for_vector_abi): New function.
121         (TARGET_ASM_FILE_END): New macro definition.
122         (s390_asm_file_end): New function.
123         (s390_function_arg): Call s390_check_type_for_vector_abi.
124         (s390_gimplify_va_arg): Likewise.
125         * configure: Regenerate.
126         * configure.ac: Check for .gnu_attribute Binutils feature.
128 2015-06-23  Chen Gang  <gang.chen.5i5j@gmail.com>
130         PR target/65803
131         * config/bfin/bfin.c (hwloop_optimize): Initialize
132         JUMP_LABEL for newly created jump.
134 2015-06-23  Tristan Gingold  <gingold@adacore.com>
136         * collect-utils.c (collect_wait): Unlink the response file here
137         instead of...
138         (do_wait): ...here.
139         (utils_cleanup): ...and here.
141 2015-06-23  Richard Sandiford  <richard.sandiford@arm.com>
143         * df-scan.c: Don't include target-def.h.
144         * targhooks.c: Likewise.
145         * config/arm/arm-c.c: Likewise.
146         * config/i386/i386-c.c: Likewise.
147         * config/nds32/nds32-cost.c: Likewise.
148         * config/nds32/nds32-fp-as-gp.c: Likewise.
149         * config/nds32/nds32-intrinsic.c: Likewise.
150         * config/nds32/nds32-isr.c: Likewise.
151         * config/nds32/nds32-md-auxiliary.c: Likewise.
152         * config/nds32/nds32-memory-manipulation.c: Likewise.
153         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
154         * config/nds32/nds32-predicates.c: Likewise.
156 2015-06-23  Richard Biener  <rguenther@suse.de>
158         PR tree-optimization/66636
159         * tree-vect-stmts.c (vectorizable_store): Properly compute the
160         def type for further defs for strided stores.
162 2015-06-23  Nathan Sidwell  <nathan@codesourcery.com>
164         * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
165         conditional selects.
166         (setcc_int<mode>, setcc_float<mode>): Reformat.
168 2015-06-23  Marek Polacek  <polacek@redhat.com>
170         * match.pd ((x + y) - (x | y) -> x & y,
171         (x + y) - (x & y) -> x | y): New patterns.
173 2015-06-23  Ludovic Courtès  <ludo@gnu.org>
175         PR 65711
176         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
177         '-dynamic-linker' within %{!shared: ...}.
179 2015-06-23  Uros Bizjak  <ubizjak@gmail.com>
181         PR target/66560
182         * config/i386/predicates.md (addsub_vm_operator): New predicate.
183         (addsub_vs_operator): Ditto.
184         (addsub_vs_parallel): Ditto.
185         * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
186         (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
187         Put minus RTX before plus and adjust vec_merge selector.
188         (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
189         (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
190         (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
191         (addsub vec_merge splitters): New combiner splitters.
192         (addsub vec_select/vec_concat splitters): Ditto.
194 2015-06-23  Bin Cheng  <bin.cheng@arm.com>
196         PR tree-optimization/66449
197         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
198         POINTER_PLUS_EXPR for pointers.
200 2015-06-23  Alan Modra  <amodra@gmail.com>
202         * rtlanal.c (commutative_operand_precedence): Correct comments.
203         * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
204         declaration.  Return an int.  Distinguish REG,REG return from
205         others.
206         (struct simplify_plus_minus_op_data): Make local to function.
207         (simplify_plus_minus): Don't set canonicalized if merely sorting
208         registers.  Avoid packing ops if nothing changes.  White space fixes.
210 2015-06-22  Pierre-Marie de Rodat  <derodat@adacore.com>
212         * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
213         -fdump-ada-spec is passed but not if -fsyntax-only is.
215 2015-06-22  Vladimir Makarov  <vmakarov@redhat.com>
217         PR bootstrap/63740
218         * lra-lives.c (process_bb_lives): Check insn copying the same
219         reload pseudo and don't create a copy for it.
221 2015-06-22  Tom de Vries  <tom@codesourcery.com>
223         * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
224         for cond_stmt.
226 2015-06-22  Tom de Vries  <tom@codesourcery.com>
228         * builtins.def (DEF_GOMP_BUILTIN): Test
229         'flag_tree_parallelize_loops > 1' instead of
230         'flag_tree_parallelize_loops'.  Test flag_cilkplus.
232 2015-06-22  Tom de Vries  <tom@codesourcery.com>
234         * dominance.c (calculate_dominance_info): Verify dominators if
235         early-out.
237 2015-06-22  Marek Polacek  <polacek@redhat.com>
239         * match.pd ((x ^ y) ^ (x | y) -> x & y,
240         (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
241         (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
242         (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
244 2015-06-22  Uros Bizjak  <ubizjak@gmail.com>
246         PR target/65871
247         * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
248         cost of embedded comparison.
250 2015-06-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
252         PR target/65914
253         * config/rs6000/predicates.md (altivec_register_operand): Permit
254         virtual stack registers.
255         (vsx_register_operand): Likewise.
256         (vfloat_operand): Likewise.
257         (vint_operand): Likewise.
258         (vlogical_operand): Likewise.
260 2015-06-22  Richard Biener  <rguenther@suse.de>
262         * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
263         and single_scalar_iteration_cost members.
264         (LOOP_VINFO_SCALAR_ITERATION_COST): New.
265         (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
266         (vect_get_single_scalar_iteration_cost): Remove.
267         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
268         Use LOOP_VINFO_SCALAR_ITERATION_COST.
269         * tree-vect-loop.c (destroy_loop_vec_info): Free
270         scalar_cost_vec.
271         (vect_get_single_scalar_iteration_cost): Compute result into
272         LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
273         LOOP_VINFO_SCALAR_ITERATION_COST.  Make static.
274         (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
275         (vect_estimate_min_profitable_iters): Use them.
277 2015-06-22  Christian Bruel  <christian.bruel@st.com>
279         PR target/52144
280         * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
281         (TARGET_INSERT_ATTRIBUTES): Define.
282         (thumb_flipper): New var.
283         * config/arm/arm.opt (-mflip-thumb): New switch.
285 2015-06-22  Jan Hubicka  <hubicka@ucw.cz>
286             Martin Liska  <mliska@suse.cz>
288         PR ipa/65908
289         * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
290         construction of arg_types.
291         (sem_function::sem_function): Likewise.
292         (sem_function::~sem_function): Remove destruction of arg_types.
293         (sem_function::compatible_parm_types_p): New function.
294         (sem_function::equals_wpa): Reorg matching of return values
295         and parameter types.
296         (sem_function::equals_private): Reorg mathcing of argument types.
297         (sem_function::parse_tree_args): Remove.
298         * ipa-icf.h (init_wpa): Do not call it.
299         (parse_tree_args): Remove.
300         (compatible_parm_types_p): Declare.
301         (result_type): Remove.
302         (arg_types): Remove.
304 2015-06-22  Jan Hubicka  <hubicka@ucw.cz>
306         PR ipa/66351
307         * ipa-polymorphic-call.c
308         (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
309         initializing alias oracle; fix formating; set base_alias_set if it
310         is known.
312 2015-06-22  Mikhail Maltsev  <maltsevm@gmail.com>
314         * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
315         (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
316         (find_inc): Likewise.
317         * combine.c (combine_simplify_rtx): Use std::swap instead of manually
318         swapping.
319         * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
320         * df-scan.c (df_swap_refs): Remove.
321         (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
322         * dominance.c (link_roots): Use std::swap instead of manually swapping.
323         * expr.c (expand_expr_real_2, do_store_flag): Likewise.
324         * fold-const.c (fold_relational_const): Likewise.
325         * genattrtab.c (simplify_test_exp): Likewise.
326         * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
327         gimple_simplify): Likewise.
328         * ifcvt.c (noce_try_abs, find_if_header): Likewise.
329         * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
330         * ipa-devirt.c (add_type_duplicate): Likewise.
331         * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
332         * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
333         * lra.c (lra_create_copy): Likewise.
334         * lto-streamer-out.c (DFS::DFS): Likewise.
335         * modulo-sched.c (get_sched_window): Likewise.
336         * omega.c (omega_pretty_print_problem): Likewise.
337         * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
338         * reload1.c (reloads_unique_chain_p): Likewise.
339         * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
340         (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
341         use std::swap.
342         * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
343         manually swapping.
344         * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
345         predicate_mem_writes): Likewise.
346         * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
347         * tree-predcom.c (combine_chains): Likewise.
348         * tree-ssa-alias.c (nonoverlapping_component_refs_p,
349         refs_may_alias_p_1): Likewise.
350         * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
351         * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
352         * tree-ssa-loop-niter.c (refine_bounds_using_guard,
353         number_of_iterations_cond): Likewise.
354         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
355         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
356         * tree-vect-slp.c (vect_build_slp_tree): Likewise.
357         * tree-vect-stmts.c (supportable_widening_operation): Likewise.
358         * tree-vrp.c (extract_range_from_binary_expr_1,
359         extract_range_from_unary_expr_1): Likewise.
361 2015-06-20  Marek Polacek  <polacek@redhat.com>
363         * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
365 2015-06-19  Kaz Kojima  <kkojima@gcc.gnu.org>
367         PR target/66591
368         * config/sh/sh.c (prepare_move_operands): Replace subreg
369         index term with R0 for base and index addressing.
371 2015-06-19  Jim Wilson  <jim.wilson@linaro.org>
373         * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
374         op1 is an fp zero.
375         (movsf_aarch64): Change condition from register_operand to
376         aarch64_reg_or_fp_zero for op1.  Change type for alternative 6 to
377         load1.  Change type for alternative 7 to store1.
378         (movdf_aarch64): Likewise.
380 2015-06-19  James Greenhalgh  <james.greenhalgh@arm.com>
382         * config/vax/vax.md: Adjust sign/zero extend patterns to
383         handle SUBREGs in operands[1].
385 2015-06-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
387         * config/i386/i386.c (ix86_function_versions): Use std::swap instead
388         of manually swapping.
389         (expand_vec_perm_interleave2): Likewise.
391 2015-06-19  Ilya Enkovich  <enkovich.gnu@gmail.com>
393         * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
394         reuse bounds created for abnormal ssa names.
396 2015-06-19  Jakub Jelinek  <jakub@redhat.com>
398         * config/nvptx/nvptx.md (allocate_stack): Rename to...
399         (allocate_stack_<mode>): ... this, and add :P on both
400         match_operand and unspec.
401         (allocate_stack): New expander.
403 2015-06-19  Christian Bruel  <christian.bruel@st.com>
405         PR target/66541
406         PR target/52144
407         * config/arm/arm.c (arm_set_current_function): Handle
408         explicit default options.
410 2015-06-18  Uros Bizjak  <ubizjak@gmail.com>
412         * config/i386/i386.md (*movsicc_noc_zext): New insn.
413         (zero-extended cmove with mem peephole2): New pattern.
414         (cmove with mem peephole2): Merge patterns.
416 2015-06-18  Segher Boessenkool  <segher@kernel.crashing.org>
418         * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
420 2015-06-18  Steve Ellcey  <sellcey@imgtec.com>
422         * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
423         * config/mips/mips.md (*madd4<mode>): Ditto.
424         (*nmadd3<mode>) Ditto.
425         (*nmadd4<mode>_fastmath): Ditto.
426         (*nmadd3<mode>_fastmath): Ditto.
427         (*nmsub4<mode>): Ditto.
428         (*nmsub3<mode>): Ditto.
429         (*nmsub4<mode>_fastmath): Ditto.
430         (*nmsub3<mode>_fastmath): Ditto.
432 2015-06-18  Michael Matz  <matz@suse.de>
434         PR middle-end/66253
435         * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
436         grouped strided stores.
437         (vectorizable_load): Don't use the DR from first_stmt in
438         the non-SLP grouped strided case.
440 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
442         PR target/66569
443         * function.c (assign_bounds): Add arguments assign_regs,
444         assign_special, assign_bt.
445         (assign_parms): For vararg functions handle bounds in BT
446         and special slots after incoming vararg bounds.
448 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
450         PR middle-end/66568
451         * cfgexpand.c (expand_return): Handle missing bounds.
452         (expand_gimple_stmt_1): Likewise.
453         * tree-chkp.c (chkp_expand_zero_bounds): New.
454         * tree-chkp.h (chkp_expand_zero_bounds): New.
456 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
458         PR middle-end/66567
459         * ipa-chkp.c (chkp_maybe_create_clone): Require
460         functions to be instrumentable.
461         * tree-chkp.c (chkp_replace_function_pointer): Use
462         chkp_instrumentable_p instead of attribute check.
464 2015-06-18  Richard Biener  <rguenther@suse.de>
466         PR tree-optimization/66510
467         * tree-vect-stmts.c (vectorizable_load): Properly compute the
468         number of vector loads for SLP permuted loads.
469         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
470         check the stride for loop vectorization.
471         (vect_enhance_data_refs_alignment): Deal with SLP adjusted
472         vectorization factor.
473         (vect_analyze_group_access): If the group size is not a power
474         of two require a epilogue loop.
475         * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
476         compute and optimizing and alias test pruning after final
477         vectorization factor computation.
478         * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
479         vector alignment.
480         (vect_transform_slp_perm_load): Properly compute the original
481         number of vector load stmts.
483 2015-06-18  Uros Bizjak  <ubizjak@gmail.com>
485         * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
486         "unlikely character , in @var" warning.
488 2015-06-17  Uros Bizjak  <ubizjak@gmail.com>
490         * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
491         (ix86_function_arg_advance): Ditto.
492         (ix86_pass_by_reference): Ditto.  Rewrite MS_ABI part.
494 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
496         * function.h (struct rtl_data): Remove struct and accessor macros.
497         * emit-rtl.h (struct rtl_data): Relocate to here.
498         * Makefile.in (GTFILES): Add emit-rtl.h.
499         * df-core.c: Include emit-rtl.h.
500         * genattrtab.c: Likewise.
501         * genconditions.c: Likewise.
502         * genpreds.c: Likewise.
503         * genrecog.c: Likewise.
504         * regcprop.c: Likewise.
505         * resource.c: Likewise.
506         * sched-rgn.c: Likewise.
507         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
508         * config/i386/winnt.c: Likewise.
510 2015-06-17  Jakub Jelinek  <jakub@redhat.com>
512         PR middle-end/66429
513         * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
514         instead of DECL_STRUCT_FUNCTION (child_fn).  Or in has_simduid_loops
515         and has_force_vectorize_loops flags from cfun into
516         child_cfun.
517         (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
518         if simduid is non-NULL.
519         * tree-pass.h (make_pass_simduid_cleanup): New prototype.
520         * passes.def (pass_simduid_cleanup): Add new pass after loop
521         passes.
522         * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
523         indirection from htab argument's type.
524         (shrink_simd_arrays): New function.
525         (vectorize_loops): Use it.  Adjust adjust_simduid_builtins caller.
526         Don't call adjust_simduid_builtins if there are no loops.
527         (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
528         (pass_simduid_cleanup::execute): New method.
529         (make_pass_simduid_cleanup): New function.
531 2017-06-17  Andrew MacLeod  <amacleod@redhat.com>
533         * tree-core.h (tree_target_option): Make opts field a pointer to a
534         cl_target_option instead of an instance of the struct.
535         * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
536         the structure.
537         * tree.c (make_node_stat ): Allocate a cl_target_option struct for
538         TARGET_OPTION_NODE.
539         (copy_node_stat): Allocate and copy struct cl_target_option.
541 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
543         * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
544         Remove conditional exposure of prototypes.
545         (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
546         * tree.c (anon_aggrname_format, anon_aggrname_p): New.  Replace macro
547         definitions in tree.h with functions.
548         * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
549         anon_aggrname_p.
550         * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
552 2015-06-17  Segher Boessenkool  <segher@kernel.crashing.org>
554         * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
555         (*cmp<mode>_signed): ... this.
556         (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
557         (*cmp<mode>_unsigned): ... this.  Remove %b.
559 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
561         * coretypes.h: Include input.h and as-a.h.
562         * rtl.h: Include input.h and as-a.h for generator files.
563         * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
564         * vec.c: Don't include diagnostic-core.h.
565         * alias.c: Do not include input.h, line-map.h or is-a.h.
566         * asan.c: Likewise.
567         * attribs.c: Likewise.
568         * auto-inc-dec.c: Likewise.
569         * auto-profile.c: Likewise.
570         * bb-reorder.c: Likewise.
571         * bt-load.c: Likewise.
572         * builtins.c: Likewise.
573         * caller-save.c: Likewise.
574         * calls.c: Likewise.
575         * ccmp.c: Likewise.
576         * cfg.c: Likewise.
577         * cfganal.c: Likewise.
578         * cfgbuild.c: Likewise.
579         * cfgcleanup.c: Likewise.
580         * cfgexpand.c: Likewise.
581         * cfghooks.c: Likewise.
582         * cfgloop.c: Likewise.
583         * cfgloop.h: Likewise.
584         * cfgloopanal.c: Likewise.
585         * cfgloopmanip.c: Likewise.
586         * cfgrtl.c: Likewise.
587         * cgraph.c: Likewise.
588         * cgraphbuild.c: Likewise.
589         * cgraphclones.c: Likewise.
590         * cgraphunit.c: Likewise.
591         * cilk-common.c: Likewise.
592         * combine-stack-adj.c: Likewise.
593         * combine.c: Likewise.
594         * compare-elim.c: Likewise.
595         * convert.c: Likewise.
596         * coverage.c: Likewise.
597         * cppbuiltin.c: Likewise.
598         * cprop.c: Likewise.
599         * cse.c: Likewise.
600         * cselib.c: Likewise.
601         * data-streamer-in.c: Likewise.
602         * data-streamer-out.c: Likewise.
603         * data-streamer.c: Likewise.
604         * dbxout.c: Likewise.
605         * dce.c: Likewise.
606         * ddg.c: Likewise.
607         * debug.c: Likewise.
608         * df-core.c: Likewise.
609         * df-problems.c: Likewise.
610         * df-scan.c: Likewise.
611         * df.h: Likewise.
612         * dfp.c: Likewise.
613         * diagnostic-core.h: Likewise.
614         * diagnostic.c: Likewise.
615         * dojump.c: Likewise.
616         * dominance.c: Likewise.
617         * domwalk.c: Likewise.
618         * double-int.c: Likewise.
619         * dse.c: Likewise.
620         * dumpfile.c: Likewise.
621         * dumpfile.h: Likewise.
622         * dwarf2asm.c: Likewise.
623         * dwarf2cfi.c: Likewise.
624         * dwarf2out.c: Likewise.
625         * emit-rtl.c: Likewise.
626         * et-forest.c: Likewise.
627         * except.c: Likewise.
628         * explow.c: Likewise.
629         * expmed.c: Likewise.
630         * expr.c: Likewise.
631         * final.c: Likewise.
632         * fixed-value.c: Likewise.
633         * fold-const.c: Likewise.
634         * function.c: Likewise.
635         * fwprop.c: Likewise.
636         * gcc-plugin.h: Likewise.
637         * gcse.c: Likewise.
638         * generic-match-head.c: Likewise.
639         * ggc-page.c: Likewise.
640         * gimple-builder.c: Likewise.
641         * gimple-expr.c: Likewise.
642         * gimple-fold.c: Likewise.
643         * gimple-iterator.c: Likewise.
644         * gimple-low.c: Likewise.
645         * gimple-match-head.c: Likewise.
646         * gimple-pretty-print.c: Likewise.
647         * gimple-ssa-isolate-paths.c: Likewise.
648         * gimple-ssa-strength-reduction.c: Likewise.
649         * gimple-streamer-in.c: Likewise.
650         * gimple-streamer-out.c: Likewise.
651         * gimple-streamer.h: Likewise.
652         * gimple-walk.c: Likewise.
653         * gimple.c: Likewise.
654         * gimplify-me.c: Likewise.
655         * gimplify.c: Likewise.
656         * godump.c: Likewise.
657         * graph.c: Likewise.
658         * graphite-blocking.c: Likewise.
659         * graphite-dependences.c: Likewise.
660         * graphite-interchange.c: Likewise.
661         * graphite-isl-ast-to-gimple.c: Likewise.
662         * graphite-optimize-isl.c: Likewise.
663         * graphite-poly.c: Likewise.
664         * graphite-scop-detection.c: Likewise.
665         * graphite-sese-to-poly.c: Likewise.
666         * graphite.c: Likewise.
667         * haifa-sched.c: Likewise.
668         * hw-doloop.c: Likewise.
669         * ifcvt.c: Likewise.
670         * init-regs.c: Likewise.
671         * input.c: Likewise.
672         * internal-fn.c: Likewise.
673         * ipa-chkp.c: Likewise.
674         * ipa-comdats.c: Likewise.
675         * ipa-cp.c: Likewise.
676         * ipa-devirt.c: Likewise.
677         * ipa-icf-gimple.c: Likewise.
678         * ipa-icf.c: Likewise.
679         * ipa-inline-analysis.c: Likewise.
680         * ipa-inline-transform.c: Likewise.
681         * ipa-inline.c: Likewise.
682         * ipa-polymorphic-call.c: Likewise.
683         * ipa-profile.c: Likewise.
684         * ipa-prop.c: Likewise.
685         * ipa-pure-const.c: Likewise.
686         * ipa-ref.c: Likewise.
687         * ipa-reference.c: Likewise.
688         * ipa-split.c: Likewise.
689         * ipa-utils.c: Likewise.
690         * ipa-visibility.c: Likewise.
691         * ipa.c: Likewise.
692         * ira-build.c: Likewise.
693         * ira-color.c: Likewise.
694         * ira-conflicts.c: Likewise.
695         * ira-costs.c: Likewise.
696         * ira-emit.c: Likewise.
697         * ira-lives.c: Likewise.
698         * ira.c: Likewise.
699         * jump.c: Likewise.
700         * langhooks.c: Likewise.
701         * lcm.c: Likewise.
702         * loop-doloop.c: Likewise.
703         * loop-init.c: Likewise.
704         * loop-invariant.c: Likewise.
705         * loop-iv.c: Likewise.
706         * loop-unroll.c: Likewise.
707         * lower-subreg.c: Likewise.
708         * lra-assigns.c: Likewise.
709         * lra-coalesce.c: Likewise.
710         * lra-constraints.c: Likewise.
711         * lra-eliminations.c: Likewise.
712         * lra-lives.c: Likewise.
713         * lra-remat.c: Likewise.
714         * lra-spills.c: Likewise.
715         * lra.c: Likewise.
716         * lto-cgraph.c: Likewise.
717         * lto-compress.c: Likewise.
718         * lto-opts.c: Likewise.
719         * lto-section-in.c: Likewise.
720         * lto-section-out.c: Likewise.
721         * lto-streamer-in.c: Likewise.
722         * lto-streamer-out.c: Likewise.
723         * lto-streamer.c: Likewise.
724         * mcf.c: Likewise.
725         * mode-switching.c: Likewise.
726         * modulo-sched.c: Likewise.
727         * omega.c: Likewise.
728         * omp-low.c: Likewise.
729         * optabs.c: Likewise.
730         * opts-global.c: Likewise.
731         * opts.h: Likewise.
732         * passes.c: Likewise.
733         * plugin.c: Likewise.
734         * postreload-gcse.c: Likewise.
735         * postreload.c: Likewise.
736         * predict.c: Likewise.
737         * pretty-print.h: Likewise.
738         * print-rtl.c: Likewise.
739         * print-tree.c: Likewise.
740         * profile.c: Likewise.
741         * real.c: Likewise.
742         * realmpfr.c: Likewise.
743         * recog.c: Likewise.
744         * ree.c: Likewise.
745         * reg-stack.c: Likewise.
746         * regcprop.c: Likewise.
747         * reginfo.c: Likewise.
748         * regrename.c: Likewise.
749         * regstat.c: Likewise.
750         * reload.c: Likewise.
751         * reload1.c: Likewise.
752         * reorg.c: Likewise.
753         * resource.c: Likewise.
754         * rtl-chkp.c: Likewise.
755         * rtl-error.c: Likewise.
756         * rtlanal.c: Likewise.
757         * rtlhooks.c: Likewise.
758         * sanopt.c: Likewise.
759         * sched-deps.c: Likewise.
760         * sched-ebb.c: Likewise.
761         * sched-rgn.c: Likewise.
762         * sched-vis.c: Likewise.
763         * sdbout.c: Likewise.
764         * sel-sched-dump.c: Likewise.
765         * sel-sched-ir.c: Likewise.
766         * sel-sched.c: Likewise.
767         * sese.c: Likewise.
768         * shrink-wrap.c: Likewise.
769         * simplify-rtx.c: Likewise.
770         * stack-ptr-mod.c: Likewise.
771         * statistics.c: Likewise.
772         * stmt.c: Likewise.
773         * stor-layout.c: Likewise.
774         * store-motion.c: Likewise.
775         * streamer-hooks.c: Likewise.
776         * stringpool.c: Likewise.
777         * symtab.c: Likewise.
778         * target-globals.c: Likewise.
779         * targhooks.c: Likewise.
780         * toplev.c: Likewise.
781         * tracer.c: Likewise.
782         * trans-mem.c: Likewise.
783         * tree-affine.c: Likewise.
784         * tree-browser.c: Likewise.
785         * tree-call-cdce.c: Likewise.
786         * tree-cfg.c: Likewise.
787         * tree-cfgcleanup.c: Likewise.
788         * tree-chkp-opt.c: Likewise.
789         * tree-chkp.c: Likewise.
790         * tree-chrec.c: Likewise.
791         * tree-complex.c: Likewise.
792         * tree-data-ref.c: Likewise.
793         * tree-dfa.c: Likewise.
794         * tree-diagnostic.c: Likewise.
795         * tree-dump.c: Likewise.
796         * tree-eh.c: Likewise.
797         * tree-emutls.c: Likewise.
798         * tree-if-conv.c: Likewise.
799         * tree-inline.c: Likewise.
800         * tree-into-ssa.c: Likewise.
801         * tree-iterator.c: Likewise.
802         * tree-loop-distribution.c: Likewise.
803         * tree-nested.c: Likewise.
804         * tree-nrv.c: Likewise.
805         * tree-object-size.c: Likewise.
806         * tree-outof-ssa.c: Likewise.
807         * tree-parloops.c: Likewise.
808         * tree-phinodes.c: Likewise.
809         * tree-predcom.c: Likewise.
810         * tree-pretty-print.c: Likewise.
811         * tree-profile.c: Likewise.
812         * tree-scalar-evolution.c: Likewise.
813         * tree-sra.c: Likewise.
814         * tree-ssa-address.c: Likewise.
815         * tree-ssa-alias.c: Likewise.
816         * tree-ssa-ccp.c: Likewise.
817         * tree-ssa-coalesce.c: Likewise.
818         * tree-ssa-copy.c: Likewise.
819         * tree-ssa-copyrename.c: Likewise.
820         * tree-ssa-dce.c: Likewise.
821         * tree-ssa-dom.c: Likewise.
822         * tree-ssa-dse.c: Likewise.
823         * tree-ssa-forwprop.c: Likewise.
824         * tree-ssa-ifcombine.c: Likewise.
825         * tree-ssa-live.c: Likewise.
826         * tree-ssa-loop-ch.c: Likewise.
827         * tree-ssa-loop-im.c: Likewise.
828         * tree-ssa-loop-ivcanon.c: Likewise.
829         * tree-ssa-loop-ivopts.c: Likewise.
830         * tree-ssa-loop-manip.c: Likewise.
831         * tree-ssa-loop-niter.c: Likewise.
832         * tree-ssa-loop-prefetch.c: Likewise.
833         * tree-ssa-loop-unswitch.c: Likewise.
834         * tree-ssa-loop.c: Likewise.
835         * tree-ssa-math-opts.c: Likewise.
836         * tree-ssa-operands.c: Likewise.
837         * tree-ssa-phiopt.c: Likewise.
838         * tree-ssa-phiprop.c: Likewise.
839         * tree-ssa-pre.c: Likewise.
840         * tree-ssa-propagate.c: Likewise.
841         * tree-ssa-reassoc.c: Likewise.
842         * tree-ssa-sccvn.c: Likewise.
843         * tree-ssa-scopedtables.c: Likewise.
844         * tree-ssa-sink.c: Likewise.
845         * tree-ssa-strlen.c: Likewise.
846         * tree-ssa-structalias.c: Likewise.
847         * tree-ssa-tail-merge.c: Likewise.
848         * tree-ssa-ter.c: Likewise.
849         * tree-ssa-threadedge.c: Likewise.
850         * tree-ssa-threadupdate.c: Likewise.
851         * tree-ssa-uncprop.c: Likewise.
852         * tree-ssa-uninit.c: Likewise.
853         * tree-ssa.c: Likewise.
854         * tree-ssanames.c: Likewise.
855         * tree-stdarg.c: Likewise.
856         * tree-streamer-in.c: Likewise.
857         * tree-streamer-out.c: Likewise.
858         * tree-streamer.c: Likewise.
859         * tree-switch-conversion.c: Likewise.
860         * tree-tailcall.c: Likewise.
861         * tree-vect-data-refs.c: Likewise.
862         * tree-vect-generic.c: Likewise.
863         * tree-vect-loop-manip.c: Likewise.
864         * tree-vect-loop.c: Likewise.
865         * tree-vect-patterns.c: Likewise.
866         * tree-vect-slp.c: Likewise.
867         * tree-vect-stmts.c: Likewise.
868         * tree-vectorizer.c: Likewise.
869         * tree-vrp.c: Likewise.
870         * tree.c: Likewise.
871         * tsan.c: Likewise.
872         * ubsan.c: Likewise.
873         * valtrack.c: Likewise.
874         * value-prof.c: Likewise.
875         * var-tracking.c: Likewise.
876         * varasm.c: Likewise.
877         * varpool.c: Likewise.
878         * vmsdbgout.c: Likewise.
879         * vtable-verify.c: Likewise.
880         * web.c: Likewise.
881         * wide-int.cc: Likewise.
882         * xcoffout.c: Likewise.
883         * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
884         * common/common-targhooks.c: Likewise.
885         * config/aarch64/aarch64-builtins.c: Likewise.
886         * config/aarch64/aarch64.c: Likewise.
887         * config/alpha/alpha.c: Likewise.
888         * config/arc/arc.c: Likewise.
889         * config/arm/aarch-common.c: Likewise.
890         * config/arm/arm-builtins.c: Likewise.
891         * config/arm/arm-c.c: Likewise.
892         * config/arm/arm.c: Likewise.
893         * config/avr/avr-c.c: Likewise.
894         * config/avr/avr-log.c: Likewise.
895         * config/avr/avr.c: Likewise.
896         * config/bfin/bfin.c: Likewise.
897         * config/c6x/c6x.c: Likewise.
898         * config/cr16/cr16.c: Likewise.
899         * config/cris/cris.c: Likewise.
900         * config/darwin-c.c: Likewise.
901         * config/darwin.c: Likewise.
902         * config/default-c.c: Likewise.
903         * config/epiphany/epiphany.c: Likewise.
904         * config/epiphany/mode-switch-use.c: Likewise.
905         * config/epiphany/resolve-sw-modes.c: Likewise.
906         * config/fr30/fr30.c: Likewise.
907         * config/frv/frv.c: Likewise.
908         * config/ft32/ft32.c: Likewise.
909         * config/glibc-c.c: Likewise.
910         * config/h8300/h8300.c: Likewise.
911         * config/i386/i386-c.c: Likewise.
912         * config/i386/i386.c: Likewise.
913         * config/i386/msformat-c.c: Likewise.
914         * config/i386/winnt-cxx.c: Likewise.
915         * config/i386/winnt-stubs.c: Likewise.
916         * config/i386/winnt.c: Likewise.
917         * config/ia64/ia64-c.c: Likewise.
918         * config/ia64/ia64.c: Likewise.
919         * config/iq2000/iq2000.c: Likewise.
920         * config/lm32/lm32.c: Likewise.
921         * config/m32c/m32c-pragma.c: Likewise.
922         * config/m32c/m32c.c: Likewise.
923         * config/m32r/m32r.c: Likewise.
924         * config/m68k/m68k.c: Likewise.
925         * config/mcore/mcore.c: Likewise.
926         * config/mep/mep-pragma.c: Likewise.
927         * config/mep/mep.c: Likewise.
928         * config/microblaze/microblaze-c.c: Likewise.
929         * config/microblaze/microblaze.c: Likewise.
930         * config/mips/mips.c: Likewise.
931         * config/mmix/mmix.c: Likewise.
932         * config/mn10300/mn10300.c: Likewise.
933         * config/moxie/moxie.c: Likewise.
934         * config/msp430/msp430-c.c: Likewise.
935         * config/msp430/msp430.c: Likewise.
936         * config/nds32/nds32-cost.c: Likewise.
937         * config/nds32/nds32-fp-as-gp.c: Likewise.
938         * config/nds32/nds32-intrinsic.c: Likewise.
939         * config/nds32/nds32-isr.c: Likewise.
940         * config/nds32/nds32-md-auxiliary.c: Likewise.
941         * config/nds32/nds32-memory-manipulation.c: Likewise.
942         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
943         * config/nds32/nds32-predicates.c: Likewise.
944         * config/nds32/nds32.c: Likewise.
945         * config/nios2/nios2.c: Likewise.
946         * config/nvptx/nvptx.c: Likewise.
947         * config/pa/pa.c: Likewise.
948         * config/pdp11/pdp11.c: Likewise.
949         * config/rl78/rl78-c.c: Likewise.
950         * config/rl78/rl78.c: Likewise.
951         * config/rs6000/rs6000-c.c: Likewise.
952         * config/rs6000/rs6000.c: Likewise.
953         * config/rx/rx.c: Likewise.
954         * config/s390/s390-c.c: Likewise.
955         * config/s390/s390.c: Likewise.
956         * config/sh/sh-c.c: Likewise.
957         * config/sh/sh-mem.cc: Likewise.
958         * config/sh/sh.c: Likewise.
959         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
960         * config/sh/sh_treg_combine.cc: Likewise.
961         * config/sol2-c.c: Likewise.
962         * config/sol2-cxx.c: Likewise.
963         * config/sol2-stubs.c: Likewise.
964         * config/sol2.c: Likewise.
965         * config/sparc/sparc-c.c: Likewise.
966         * config/sparc/sparc.c: Likewise.
967         * config/spu/spu-c.c: Likewise.
968         * config/spu/spu.c: Likewise.
969         * config/stormy16/stormy16.c: Likewise.
970         * config/tilegx/mul-tables.c: Likewise.
971         * config/tilegx/tilegx-c.c: Likewise.
972         * config/tilegx/tilegx.c: Likewise.
973         * config/tilepro/mul-tables.c: Likewise.
974         * config/tilepro/tilepro-c.c: Likewise.
975         * config/tilepro/tilepro.c: Likewise.
976         * config/v850/v850-c.c: Likewise.
977         * config/v850/v850.c: Likewise.
978         * config/vax/vax.c: Likewise.
979         * config/visium/visium.c: Likewise.
980         * config/vms/vms-c.c: Likewise.
981         * config/vms/vms.c: Likewise.
982         * config/vxworks.c: Likewise.
983         * config/winnt-c.c: Likewise.
984         * config/xtensa/xtensa.c: Likewise.
986 2015-06-17  Robert Suchanek  <robert.suchanek@imgtec.com>
988         * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
989         function.
990         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
992 2015-06-17  Richard Biener  <rguenther@suse.de>
994         PR tree-optimization/66251
995         * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
996         stmts for SLP strided stores.
998         Revert
999         2015-05-22  Richard Biener  <rguenther@suse.de>
1001         PR tree-optimization/66251
1002         * tree-vect-stmts.c (vectorizable_conversion): Properly
1003         set STMT_VINFO_VEC_STMT even for the SLP case.
1005         2015-05-26  Michael Matz  <matz@suse.de>
1007         PR middle-end/66251
1008         * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
1009         STMT_VINFO_VEC_STMT, also with SLP.
1011 2015-06-16  Uros Bizjak  <ubizjak@gmail.com>
1013         PR target/56766
1014         * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
1015         (*avx_addsubv4df3_1s): Ditto.
1016         (*sse3_addsubv2df3_1): Ditto.
1017         (*sse3_addsubv2df3_1s): Ditto.
1018         (*avx_addsubv8sf3_1): Ditto.
1019         (*avx_addsubv8sf3_1s): Ditto.
1020         (*sse3_addsubv4sf3_1): Ditto.
1021         (*sse3_addsubv4sf3_1s): Ditto.
1023 2015-06-16  Steve Ellcey  <sellcey@imgtec.com>
1025         * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
1026         (SYSROOT_SUFFIX_SPEC): Update.
1027         (SYSROOT_HEADERS_SUFFIX_SPEC): New.
1028         (STARTFILE_PREFIX_SPEC): Update.
1029         * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
1030         (MULTILIB_REQUIRED): New.
1031         (MULTILIB_OSDIRNAMES): New.
1032         * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
1033         (MULTILIB_REQUIRED): New.
1034         (MULTILIB_OSDIRNAMES): New.
1036 2015-06-16  Matthew Wahab  <matthew.wahab@arm.com>
1038         * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
1039         * config/aarch64/aarch64-options-extensions.def: Update "fP",
1040         "simd" and "crypto".  Add "lse", "pan", "lor" and "rdma".
1041         * gcc/config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
1042         (AARCH64_FL_PAN): New.
1043         (AARCH64_FL_LOR): New.
1044         (AARCH64_FL_RDMA): New.
1045         (AARCH64_FL_FOR_ARCH8_1): New.
1046         * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
1047         -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
1049 2015-06-16  Martin Liska  <mliska@suse.cz>
1051         * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
1052         * hash-table.c (void dump_hash_table_loc_statistics): Add missing
1053         guard.
1055 2015-06-16  Richard Biener  <rguenther@suse.de>
1057         * tree-vect-stmts.c (vectorizable_store): Adjust.
1058         (vectorizable_load): Likewise.
1059         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
1060         Simplify.
1061         (vect_create_data_ref_ptr): Likewise.
1062         (bump_vector_ptr): Adjust.
1064 2015-06-16  Richard Biener  <rguenther@suse.de>
1066         * tree-vect-stmts.c (vectorizable_load): Properly start loads
1067         with the first element if this is grouped loads.
1069 2015-06-16  James Greenhalgh  <james.greenhalgh@arm.com>
1071         * config/arm/arm-protos.h (struct tune_params): Rename
1072         log_op_non_sc to log_op_non_short_circuit, and rename enum
1073         values to expand SC to SHORT_CIRCUIT.
1074         * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
1075         to LOG_OP_NON_SHORT_CIRCUIT.
1076         (arm_fastmul_tune):Likewise
1077         (arm_strongarm_tune): Likewise.
1078         (arm_xscale_tune): Likewise.
1079         (arm_9e_tune): Likewise.
1080         (arm_marvell_pj4_tune): Likewise.
1081         (arm_v6t2_tune): Likewise.
1082         (arm_cortex_tune): Likewise.
1083         (arm_cortex_a8_tune): Likewise.
1084         (arm_cortex_a7_tune): Likewise.
1085         (arm_cortex_a15_tune): Likewise.
1086         (arm_cortex_a53_tune): Likewise.
1087         (arm_cortex_a57_tune): Likewise.
1088         (arm_xgene1_tune): Likewise.
1089         (arm_cortex_a5_tune): Likewise.
1090         (arm_cortex_a9_tune): Likewise.
1091         (arm_cortex_a12_tune): Likewise.
1092         (arm_v7m_tune): Likewise.
1093         (arm_cortex_m7_tune): Likewise.
1094         (arm_v6m_tune): Likewise.
1095         (arm_fa726te_tune): Likewise.
1097 2015-06-15  David Edelsohn  <dje.gcc@gmail.com>
1099         * altivec.md: Delete UNSPEC_VMLADDUHM.
1100         (mulv4si3_p8): New pattern.
1101         (mulv4si3): Use it for POWER8.
1102         (mulv8hi3): Use vmladduhm with zero addend.
1103         (altivec_vmladduhm): Descriptive RTL.
1105 2015-06-15  Jim Wilson  <jim.wilson@linaro.org>
1107         * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
1108         to use neon_move instead of mov_imm.
1109         (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
1110         (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
1112         * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
1113         aarch64_float_const_zero_rtx_p check before TFmode check.
1114         * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
1115         an fp zero.
1116         (movtf_aarch64): Separate ?rY alternative into two.  Adjust assembly
1117         code and attributes to match.  Change condition from register_operand
1118         to aarch64_reg_or_fp_zero for op1.  Change type for ldp from
1119         neon_load1_2reg to load2.  Change type for stp from neon_store1_2reg
1120         to store2.
1122 2015-06-15  Aldy Hernandez  <aldyh@redhat.com>
1124         PR debug/66535
1125         * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
1126         there is no parent.
1128 2015-06-14  Shiva Chen  <shiva0217@gmail.com>
1130         * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
1131         HOST_WIDE_INT parameter.
1133 2015-06-14  Jan Hubicka  <hubicka@ucw.cz>
1135         PR ipa/66181
1136         * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
1137         * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
1138         TYPE_NO_FORCE_BLK.
1139         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
1141 2015-06-14  Richard Sandiford  <richard.sandiford@arm.com>
1143         * rtl.h (classify_insn): Declare.
1144         * emit-rtl.c (classify_insn): Move to...
1145         * rtl.c: ...here and add generator support.
1146         * gensupport.h (get_emit_function, needs_barrier_p): Declare.
1147         * gensupport.c (get_emit_function, needs_barrier_p): New functions.
1148         * genemit.c (gen_emit_seq): New function.
1149         (gen_expand, gen_split): Use it.
1151 2015-06-13  Patrick Palka  <ppalka@gcc.gnu.org>
1153         * tree.c (make_vector_stat): Fix comment to state that the
1154         function returns a VECTOR_CST.
1156 2015-06-13  Richard Sandiford  <richard.sandiford@arm.com>
1158         * gensupport.h (add_implicit_parallel): Declare.
1159         * genrecog.c (add_implicit_parallel): Move to...
1160         * gensupport.c (add_implicit_parallel): ...here.
1161         (process_one_cond_exec): Use it.
1162         * genemit.c (gen_insn): Likewise.
1164 2015-06-13  Iain Sandoe  <iain@codesourcery.com>
1166         PR bootstrap/66448
1167         * passes.c (rest_of_decl_compilation): Do not register globals for
1168         early debug if they are declared in built-ins.
1170 2015-06-12  Aldy Hernandez  <aldyh@redhat.com>
1172         * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
1174 2015-06-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1176         * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
1177         manually swapping.
1178         (noce_try_cmove_arith): Likewise.
1179         (noce_get_alt_condition): Likewise.
1181 2015-06-12  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
1183         * common/config/i386/i386-common.c
1184         (OPTION_MASK_ISA_MWAITX_SET): New.
1185         (ix86_handle_option): Handle mwaitx.
1186         * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
1187         (x86_64-*-*): Likewise.
1188         * config/i386/mwaitxintrin.h: New header.
1189         * config/i386/cpuid.h (bit_MWAITX):  Define.
1190         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
1191         MWAITX support.
1192         * config/i386/i386.opt (mwaitx): New.
1193         * config/i386/i386-builtin-types.def
1194         (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
1195         * config/i386/i386-c.c: Define __MWAITX__ if needed.
1196         * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
1197         (PTA_MWAITX): New.
1198         (ix86_option_override_internal): Handle new option.
1199         (processor_alias_table): Added PTA_MWAITX.
1200         (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
1201         (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
1202         (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
1203         IX86_BUILTIN_MONITORX  built-ins.
1204         * config/i386/i386.h (TARGET_MWAITX): New.
1205         * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
1206         UNSPEC_MONITORX.
1207         (mwaitx):  New pattern.
1208         (monitorx_<mode>): New pattern.
1209         * config/i386/x86intrin.h: Include mwaitxintrin.h.
1210         * doc/extend.texi: Document monitorx and mwaitx builtins.
1211         * doc/invoke.texi: Document -mmwaitx option.
1213 2015-06-12  Uros Bizjak  <ubizjak@gmail.com>
1215         * emit-rtl.c (need_atomic_barrier_p): Mask model with
1216         MEMMODEL_BASE_MASK.  Remove MEMMODEL_SYNC_* cases.
1218 2015-06-11  David Edelsohn  <dje.gcc@gmail.com>
1220         * dbxout.c (xcoff_debug_hooks): Provide a function for
1221         register_main_translation_unit hook.
1223 2015-06-11  David Edelsohn  <dje.gcc@gmail.com>
1225         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
1226         variants cases from switch.
1227         (rs6000_post_atomic_barrier): Same.
1228         (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
1229         (rs6000_expand_atomic_exchange): Same.
1230         (rs6000_expand_atomic_op): Same.
1231         * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
1232         SYNC variants cases from switch.
1233         (atomic_load): Same.
1234         (atomic_store): Same.
1236 2015-06-11  John David Anglin  <danglin@gcc.gnu.org>
1238         * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
1239         CONST_INT for goto.
1241 2015-06-11  Aldy Hernandez  <aldyh@redhat.com>
1243         PR bootstrap/66448
1244         * dwarf2out.c (check_die): Check for common duplicate attributes.
1245         (add_location_or_const_value_attribute): Do not add duplicate
1246         attributes.
1247         (gen_formal_parameter_die): Do not add DW_AT_artificial the second
1248         time around.
1249         (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
1250         (gen_type_die_with_usage): Call check_die.
1251         (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
1253 2015-06-11  Jason Merrill  <jason@redhat.com>
1255         * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
1256         dies.
1258 2015-06-11  Marek Polacek  <polacek@redhat.com>
1260         * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
1262 2015-06-11  Eric Botcazou  <ebotcazou@adacore.com>
1264         PR bootstrap/66252
1265         * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
1266         * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
1267         (*addx_extend_sp32): Fix pasto.
1268         (*subx_extend): Rename into...
1269         (*subx_extend_sp32): ...this.
1270         (*adddi3_extend_sp32): Add earlyclobber.
1271         (*subdi3_insn_sp32): Likewise.
1272         (*subdi3_extend_sp32): Likewise.
1273         (*and_not_di_sp32): Likewise.
1274         (*or_not_di_sp32): Likewise.
1275         (*xor_not_di_sp32): Likewise.
1276         (*negdi2_sp32): Likewise.
1277         (*one_cmpldi2_sp32): Likewise.
1279 2015-06-11  Pierre-Marie de Rodat  <derodat@adacore.com>
1281         * debug.h (struct gcc_debug_hooks): Add a
1282         register_main_translation_unit hook.
1283         * debug.c (do_nothing_debug_hooks): Provide a function for this
1284         new hook.
1285         * dbxout.c (dbx_debug_hooks): Likewise.
1286         * sdbout.c (sdb_debug_hooks): Likewise.
1287         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
1288         * dwarf2out.c (main_translation_unit): New global variable.
1289         (dwarf2out_register_main_translation_unit): New function
1290         implementing the new hook.
1291         (dwarf2_debug_hooks): Assign
1292         dwarf2out_register_main_translation_unit to this new hook.
1293         (dwarf2out_init): Associate any main translation unit to
1294         comp_unit_die ().
1296 2015-06-11  Marek Polacek  <polacek@redhat.com>
1298         * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
1300 2015-06-11  Marek Polacek  <polacek@redhat.com>
1302         * match.pd: Use single_use throughout.
1304 2015-06-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1306         * config/arm/arm.c (arm_option_params_internal): When optimising
1307         for speed set max_insns_skipped when arm_restrict_it.
1309 2015-06-11  Christian Bruel  <christian.bruel@st.com>
1311         PR target/52144
1312         * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
1313          macros in ...
1314         (arm_cpu_builtins): New function.
1315         (arm_pragma_target_parse): Call arm_cpu_builtins.
1316         * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
1317         (arm_register_target_pragmas): Likewise.
1318         * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
1319          Call arm_register_target_pragmas.
1320         * config/arm/arm-c.c (arm_register_target_pragmas): New function.
1321         (arm_pragma_target_parse): Likewise.
1323 2015-06-10  Kaz Kojima  <kkojima@gcc.gnu.org>
1325         * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
1326         of the second operand.
1328 2015-06-10  Uros Bizjak  <ubizjak@gmail.com>
1330         PR target/66473
1331         * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
1332         to prepare mask operand for AVX512 modes.
1334 2015-06-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
1336         PR target/66474
1337         * doc/md.texi (Machine Constraints): Document that on the PowerPC
1338         if you use a constraint that targets a VSX register, you must use
1339         %x<n> in the template.
1341 2015-06-10  Max Filippov  <jcmvbkbc@gmail.com>
1343         * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
1344         * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
1345         (define_insn "trap"): New definition.
1347 2015-06-10  Richard Biener  <rguenther@suse.de>
1349         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
1350         out from ...
1351         (vect_supported_load_permutation_p): ... here.  Handle
1352         supportable permutations in reductions.
1353         * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
1354         for vectorizing strided group loads.
1356 2015-06-10  Jakub Jelinek  <jakub@redhat.com>
1358         PR target/66470
1359         * config/i386/i386.c (ix86_split_long_move): For collisions
1360         involving direct tls segment refs, move the UNSPEC_TP possibly
1361         wrapped in ZERO_EXTEND out of the address for lea, to each of
1362         the memory loads.
1364 2015-06-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1366         * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
1367         dmb sy. Adjust tabs.
1369 2015-06-10  Tom de Vries  <tom@codesourcery.com>
1371         * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
1373 2015-06-10  Martin Liska  <mliska@suse.cz>
1375         PR bootstrap/66471
1376         * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
1377         all enum values in mem_alloc_origin.
1378         * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
1379         name.
1380         * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
1381         * bitmap.c (bitmap_register): Likewise.
1382         (dump_bitmap_statistics): Likewise.
1383         * ggc-common.c (dump_ggc_loc_statistics): Likewise.
1384         (ggc_record_overhead): Likewise.
1385         * hash-map.h: Likewise.
1386         * hash-set.h: Likewise.
1387         * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
1388         * hash-table.h: Likewise.
1389         * vec.c (vec_prefix::register_overhead): Likewise.
1390         (vec_prefix::release_overhead): Likewise.
1391         (dump_vec_loc_statistics): Likewise.
1393 2015-06-09  Christian Bruel  <christian.bruel@st.com>
1395         PR target/52144
1396         * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
1397         * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
1398         (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
1399         * config/arm/arm.h (SWITCHABLE_TARGET): Define.
1400         * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
1401         (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
1402         (arm_valid_target_attribute_p): Likewise.
1403         (arm_set_current_function, arm_can_inline_p): Likewise.
1404         (arm_valid_target_attribute_rec): Likewise.
1405         (arm_previous_fndecl): New variable.
1406         (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
1407         (TARGET_CAN_INLINE_P): Define.
1408         (arm_asm_trampoline_template): Emit mode.
1409         (arm_file_start): Don't set unified syntax.
1410         (arm_declare_function_name): Set unified syntax and mode.
1411         (arm_option_override): Init target_option_default_node.
1412         and target_option_current_node.
1413         * config/arm/arm.md (*call_value_symbol): Set mode when possible.
1414         (*call_symbol): Likewise.
1415         * doc/extend.texi: Document ARM/Thumb target attribute.
1416         * doc/invoke.texi: Likewise.
1418 2015-06-09  Alexandre Oliva <aoliva@redhat.com>
1420         Revert:
1421         2015-06-09  Alexandre Oliva <aoliva@redhat.com>
1422         PR rtl-optimization/64164
1423         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
1424         * tree-ssa-copyrename.c: Removed.
1425         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
1426         -ftree-coalesce-vars.
1427         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
1428         * common.opt (ftree-copyrename): Ignore.
1429         (ftree-coalesce-inlined-vars): Likewise.
1430         * doc/invoke.texi: Remove the ignored options above.
1431         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
1432         * tree-ssa-coalesce.h: ... here.
1433         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
1434         headers required by it.
1435         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
1436         across variables when flag_tree_coalesce_vars.  Check register
1437         use and promoted modes to allow coalescing.  Moved to
1438         tree-ssa-coalesce.c.
1439         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
1440         with its member functions to tree-ssa-coalesce.c.
1441         (var_map_base_init): Likewise.  Renamed to
1442         compute_samebase_partition_bases.
1443         (partition_view_normal): Drop want_bases parameter.
1444         (partition_view_bitmap): Likewise.
1445         * tree-ssa-live.h: Adjust declarations.
1446         * tree-ssa-coalesce.c: Include explow.h.
1447         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
1448         default defs at the entry point.
1449         (dump_part_var_map): New.
1450         (compute_optimized_partition_bases): New, called by...
1451         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
1452         of compute_samebase_partition_bases.  Adjust.
1453         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
1454         * cfgexpand.c (leader_merge): New.
1455         (get_rtl_for_parm_ssa_default_def): New.
1456         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
1457         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
1458         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
1459         redundant MEM attr setting.
1460         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
1461         from...
1462         (expand_one_stack_var): ... this.  New wrapper to check and
1463         skip already expanded SSA partitions.
1464         (record_alignment_for_reg_var): New, factored out of...
1465         (expand_one_var): ... this.
1466         (expand_one_ssa_partition): New.
1467         (adjust_one_expanded_partition_var): New.
1468         (expand_one_register_var): Check and skip already expanded SSA
1469         partitions.
1470         (expand_used_vars): Don't create DECLs for anonymous SSA
1471         names.  Expand all SSA partitions, then adjust all SSA names.
1472         (pass::execute): Replace the loops that set
1473         SA.partition_to_pseudo from partition leaders and cleared
1474         DECL_RTL for multi-location variables, and that which used to
1475         rename vars and set attrs, with one that clears DECL_RTL and
1476         checks that PARMs and RESULTs default_defs match DECL_RTL.
1477         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
1478         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
1479         * explow.c (promote_ssa_mode): New.
1480         * explow.h (promote_ssa_mode): Declare.
1481         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
1482         * function.c: Include cfgexpand.h.
1483         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
1484         (use_register_for_parm_decl): Wrapper for the above to
1485         special-case the result_ptr.
1486         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
1487         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
1488         multiple locations.
1489         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
1490         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
1491         (assign_parm_setup_block): Prefer SSA-assigned location.
1492         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
1493         if stack_parm is NULL.
1494         (assign_parm_setup_stack): Prefer SSA-assigned location.
1495         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
1496         rtl before testing for pointer bounds.  Special-case result_ptr.
1497         (expand_function_start): Maybe reset DECL_RTL of result.
1498         Prefer SSA-assigned location for result and static chain.
1499         Factor out DECL_RESULT and SET_DECL_RTL.
1500         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
1501         anonymous SSA names.  Use promote_ssa_mode.
1502         (get_temp_reg): Likewise.
1503         (remove_ssa_form): Adjust.
1504         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
1505         and get its reg_usage for reg invalidation.
1506         (compute_bb_dataflow): Pass it insn.
1507         (emit_notes_in_bb): Likewise.
1508         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
1509         fail assert on conversion between unsigned types.
1511 2015-06-09  Tom de Vries  <tom@codesourcery.com>
1513         PR tree-optimization/65460
1514         * omp-low.c (expand_omp_target): Set parallelized_function on
1515         cgraph_node for child_fn.
1517 2015-06-09  Tom de Vries  <tom@codesourcery.com>
1519         * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
1520         parallelized_function before add_new_function.
1522 2015-06-09  Andrew MacLeod  <amacleod@redhat.com>
1524         * gcc-plugin.h: Move decls to plugin.h and include it.
1525         * plugin.h: Relocate decls from gcc-plugin.h
1526         * ggc-page.c: Include required header files.
1527         * passes.c: Likewise.
1528         * cgraphunit.c: Likewise.
1530 2015-06-09  Tom de Vries  <tom@codesourcery.com>
1532         * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
1534 2015-06-09  Jason Merrill  <jason@redhat.com>
1536         PR bootstrap/66448
1537         * toplev.c (check_global_declaration): Don't warn about a clone.
1539 2015-06-09  Marek Polacek  <polacek@redhat.com>
1541         PR tree-optimization/66299
1542         * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
1543         ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
1544         patterns.
1546 2015-06-09  Richard Biener  <rguenther@suse.de>
1548         * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
1549         (vect_analyze_slp_instance): Instead do not falsely drop
1550         load permutations.
1552 2015-06-09  Richard Biener  <rguenther@suse.de>
1554         PR middle-end/66423
1555         * match.pd: Handle A % (unsigned)(1 << B).
1557 2015-06-09  Aldy Hernandez  <aldyh@redhat.com>
1559         * varasm.c (output_object_block_htab): Remove.
1560         (output_object_block_compare): New.
1561         (output_object_blocks): Sort named object_blocks before outputting
1562         them.
1564 2015-06-09  Richard Biener  <rguenther@suse.de>
1566         PR tree-optimization/66419
1567         * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
1568         consider GROUP_GAP when detecting a perfect subchain.
1570 2015-06-09  Nick Clifton  <nickc@redhat.com>
1572         * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
1573         place read only data in the .frodata section.
1575 2015-06-09  Shiva Chen  <shiva0217@gmail.com>
1577         * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
1578         (atomic_store<mode>): Likewise.
1580 2015-06-09  Richard Biener  <rguenther@suse.de>
1582         * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
1584 2015-06-09  Richard Biener  <rguenther@suse.de>
1586         PR middle-end/66413
1587         * tree-inline.c (insert_init_debug_bind): Unshare value.
1589 2015-06-09  Richard Biener  <rguenther@suse.de>
1591         PR tree-optimization/66396
1592         * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
1593         Rename virtual operands.
1595 2015-06-09  Tom de Vries  <tom@codesourcery.com>
1597         * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
1598         always return false.
1600 2015-06-09  Alexandre Oliva <aoliva@redhat.com>
1602         PR rtl-optimization/64164
1603         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
1604         * tree-ssa-copyrename.c: Removed.
1605         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
1606         -ftree-coalesce-vars.
1607         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
1608         * common.opt (ftree-copyrename): Ignore.
1609         (ftree-coalesce-inlined-vars): Likewise.
1610         * doc/invoke.texi: Remove the ignored options above.
1611         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
1612         * tree-ssa-coalesce.h: ... here.
1613         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
1614         headers required by it.
1615         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
1616         across variables when flag_tree_coalesce_vars.  Check register
1617         use and promoted modes to allow coalescing.  Moved to
1618         tree-ssa-coalesce.c.
1619         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
1620         with its member functions to tree-ssa-coalesce.c.
1621         (var_map_base_init): Likewise.  Renamed to
1622         compute_samebase_partition_bases.
1623         (partition_view_normal): Drop want_bases parameter.
1624         (partition_view_bitmap): Likewise.
1625         * tree-ssa-live.h: Adjust declarations.
1626         * tree-ssa-coalesce.c: Include explow.h.
1627         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
1628         default defs at the entry point.
1629         (dump_part_var_map): New.
1630         (compute_optimized_partition_bases): New, called by...
1631         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
1632         of compute_samebase_partition_bases.  Adjust.
1633         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
1634         * cfgexpand.c (leader_merge): New.
1635         (get_rtl_for_parm_ssa_default_def): New.
1636         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
1637         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
1638         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
1639         redundant MEM attr setting.
1640         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
1641         from...
1642         (expand_one_stack_var): ... this.  New wrapper to check and
1643         skip already expanded SSA partitions.
1644         (record_alignment_for_reg_var): New, factored out of...
1645         (expand_one_var): ... this.
1646         (expand_one_ssa_partition): New.
1647         (adjust_one_expanded_partition_var): New.
1648         (expand_one_register_var): Check and skip already expanded SSA
1649         partitions.
1650         (expand_used_vars): Don't create DECLs for anonymous SSA
1651         names.  Expand all SSA partitions, then adjust all SSA names.
1652         (pass::execute): Replace the loops that set
1653         SA.partition_to_pseudo from partition leaders and cleared
1654         DECL_RTL for multi-location variables, and that which used to
1655         rename vars and set attrs, with one that clears DECL_RTL and
1656         checks that PARMs and RESULTs default_defs match DECL_RTL.
1657         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
1658         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
1659         * explow.c (promote_ssa_mode): New.
1660         * explow.h (promote_ssa_mode): Declare.
1661         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
1662         * function.c: Include cfgexpand.h.
1663         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
1664         (use_register_for_parm_decl): Wrapper for the above to
1665         special-case the result_ptr.
1666         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
1667         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
1668         multiple locations.
1669         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
1670         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
1671         (assign_parm_setup_block): Prefer SSA-assigned location.
1672         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
1673         if stack_parm is NULL.
1674         (assign_parm_setup_stack): Prefer SSA-assigned location.
1675         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
1676         rtl before testing for pointer bounds.  Special-case result_ptr.
1677         (expand_function_start): Maybe reset DECL_RTL of result.
1678         Prefer SSA-assigned location for result and static chain.
1679         Factor out DECL_RESULT and SET_DECL_RTL.
1680         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
1681         anonymous SSA names.  Use promote_ssa_mode.
1682         (get_temp_reg): Likewise.
1683         (remove_ssa_form): Adjust.
1684         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
1685         and get its reg_usage for reg invalidation.
1686         (compute_bb_dataflow): Pass it insn.
1687         (emit_notes_in_bb): Likewise.
1688         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
1689         fail assert on conversion between unsigned types.
1691 2015-06-09  Alexandre Oliva <aoliva@redhat.com>
1693         PR debug/58315
1694         * tree-inline.c (reset_debug_binding): New.
1695         (reset_debug_bindings): Likewise.
1696         (expand_call_inline): Call it.
1698 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
1700         * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
1701         TYPE_STRING_FLAG.
1703 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
1705         * lto-streamer-out.c (lto_output_location): Stream
1706         reserved locations correctly.
1707         * lto-streamer-in.c (lto_output_location): Likewise.
1709 2015-06-08  Andrew MacLeod  <amacleod@redhat.com>
1711         * coretypes.h: Include hash-table.h and hash-set.h for host files.
1712         * ggc.h: Don't include statistics.h>
1713         * hash-map.h: Remove all includes.
1714         * hash-set.h: Likewise.
1715         * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
1716         the include list. Remove <new>.
1717         * inchash.h: Remove all includes.
1718         * mem-stats.h: Likewise.
1719         * vec.h: No special processing for generators or ggc.  
1720         * alias.c : Adjust include files.
1721         * alloc-pool.c : Likewise.
1722         * alloc-pool.h : Likewise.
1723         * asan.c : Likewise.
1724         * attribs.c : Likewise.
1725         * auto-inc-dec.c : Likewise.
1726         * auto-profile.c : Likewise.
1727         * bb-reorder.c : Likewise.
1728         * bitmap.c : Likewise.
1729         * bitmap.h : Likewise.
1730         * bt-load.c : Likewise.
1731         * builtins.c : Likewise.
1732         * caller-save.c : Likewise.
1733         * calls.c : Likewise.
1734         * ccmp.c : Likewise.
1735         * cfg.c : Likewise.
1736         * cfganal.c : Likewise.
1737         * cfgbuild.c : Likewise.
1738         * cfgcleanup.c : Likewise.
1739         * cfgexpand.c : Likewise.
1740         * cfghooks.c : Likewise.
1741         * cfgloop.c : Likewise.
1742         * cfgloop.h : Likewise.
1743         * cfgloopanal.c : Likewise.
1744         * cfgloopmanip.c : Likewise.
1745         * cfgrtl.c : Likewise.
1746         * cgraph.c : Likewise.
1747         * cgraphbuild.c : Likewise.
1748         * cgraphclones.c : Likewise.
1749         * cgraphunit.c : Likewise.
1750         * cilk-common.c : Likewise.
1751         * combine-stack-adj.c : Likewise.
1752         * combine.c : Likewise.
1753         * compare-elim.c : Likewise.
1754         * context.c : Likewise.
1755         * convert.c : Likewise.
1756         * coverage.c : Likewise.
1757         * cppbuiltin.c : Likewise.
1758         * cprop.c : Likewise.
1759         * cse.c : Likewise.
1760         * cselib.c : Likewise.
1761         * data-streamer-in.c : Likewise.
1762         * data-streamer-out.c : Likewise.
1763         * data-streamer.c : Likewise.
1764         * data-streamer.h : Likewise.
1765         * dbxout.c : Likewise.
1766         * dce.c : Likewise.
1767         * ddg.c : Likewise.
1768         * debug.c : Likewise.
1769         * df-core.c : Likewise.
1770         * df-problems.c : Likewise.
1771         * df-scan.c : Likewise.
1772         * df.h : Likewise.
1773         * dfp.c : Likewise.
1774         * dojump.c : Likewise.
1775         * dominance.c : Likewise.
1776         * domwalk.c : Likewise.
1777         * double-int.c : Likewise.
1778         * dse.c : Likewise.
1779         * dumpfile.c : Likewise.
1780         * dwarf2asm.c : Likewise.
1781         * dwarf2cfi.c : Likewise.
1782         * dwarf2out.c : Likewise.
1783         * emit-rtl.c : Likewise.
1784         * et-forest.c : Likewise.
1785         * except.c : Likewise.
1786         * except.h : Likewise.
1787         * explow.c : Likewise.
1788         * expmed.c : Likewise.
1789         * expr.c : Likewise.
1790         * final.c : Likewise.
1791         * fixed-value.c : Likewise.
1792         * fold-const.c : Likewise.
1793         * function.c : Likewise.
1794         * fwprop.c : Likewise.
1795         * gcc-plugin.h : Likewise.
1796         * gcc.c : Likewise.
1797         * gcse-common.c : Likewise.
1798         * gcse.c : Likewise.
1799         * genattrtab.c : Likewise.
1800         * genautomata.c : Likewise.
1801         * genconditions.c : Likewise.
1802         * genemit.c : Likewise.
1803         * generic-match-head.c : Likewise.
1804         * genextract.c : Likewise.
1805         * gengtype-state.c : Likewise.
1806         * gengtype.c : Likewise.
1807         * genhooks.c : Likewise.
1808         * genmatch.c : Likewise.
1809         * genmodes.c : Likewise.
1810         * genrecog.c : Likewise.
1811         * gensupport.c : Likewise.
1812         * ggc-common.c : Likewise.
1813         * ggc-internal.h : Likewise.
1814         * ggc-none.c : Likewise.
1815         * ggc-page.c : Likewise.
1816         * gimple-builder.c : Likewise.
1817         * gimple-expr.c : Likewise.
1818         * gimple-fold.c : Likewise.
1819         * gimple-iterator.c : Likewise.
1820         * gimple-low.c : Likewise.
1821         * gimple-match-head.c : Likewise.
1822         * gimple-pretty-print.c : Likewise.
1823         * gimple-ssa-isolate-paths.c : Likewise.
1824         * gimple-ssa-strength-reduction.c : Likewise.
1825         * gimple-ssa.h : Likewise.
1826         * gimple-streamer-in.c : Likewise.
1827         * gimple-streamer-out.c : Likewise.
1828         * gimple-streamer.h : Likewise.
1829         * gimple-walk.c : Likewise.
1830         * gimple.c : Likewise.
1831         * gimplify-me.c : Likewise.
1832         * gimplify.c : Likewise.
1833         * godump.c : Likewise.
1834         * graph.c : Likewise.
1835         * graphds.c : Likewise.
1836         * graphite-blocking.c : Likewise.
1837         * graphite-dependences.c : Likewise.
1838         * graphite-interchange.c : Likewise.
1839         * graphite-isl-ast-to-gimple.c : Likewise.
1840         * graphite-optimize-isl.c : Likewise.
1841         * graphite-poly.c : Likewise.
1842         * graphite-scop-detection.c : Likewise.
1843         * graphite-sese-to-poly.c : Likewise.
1844         * graphite.c : Likewise.
1845         * haifa-sched.c : Likewise.
1846         * hard-reg-set.h : Likewise.
1847         * hw-doloop.c : Likewise.
1848         * ifcvt.c : Likewise.
1849         * inchash.c : Likewise.
1850         * incpath.c : Likewise.
1851         * init-regs.c : Likewise.
1852         * input.c : Likewise.
1853         * internal-fn.c : Likewise.
1854         * ipa-chkp.c : Likewise.
1855         * ipa-comdats.c : Likewise.
1856         * ipa-cp.c : Likewise.
1857         * ipa-devirt.c : Likewise.
1858         * ipa-icf-gimple.c : Likewise.
1859         * ipa-icf.c : Likewise.
1860         * ipa-inline-analysis.c : Likewise.
1861         * ipa-inline-transform.c : Likewise.
1862         * ipa-inline.c : Likewise.
1863         * ipa-polymorphic-call.c : Likewise.
1864         * ipa-profile.c : Likewise.
1865         * ipa-prop.c : Likewise.
1866         * ipa-pure-const.c : Likewise.
1867         * ipa-ref.c : Likewise.
1868         * ipa-reference.c : Likewise.
1869         * ipa-split.c : Likewise.
1870         * ipa-utils.c : Likewise.
1871         * ipa-visibility.c : Likewise.
1872         * ipa.c : Likewise.
1873         * ira-build.c : Likewise.
1874         * ira-color.c : Likewise.
1875         * ira-conflicts.c : Likewise.
1876         * ira-costs.c : Likewise.
1877         * ira-emit.c : Likewise.
1878         * ira-lives.c : Likewise.
1879         * ira.c : Likewise.
1880         * jump.c : Likewise.
1881         * langhooks.c : Likewise.
1882         * lcm.c : Likewise.
1883         * libfuncs.h : Likewise.
1884         * lists.c : Likewise.
1885         * loop-doloop.c : Likewise.
1886         * loop-init.c : Likewise.
1887         * loop-invariant.c : Likewise.
1888         * loop-iv.c : Likewise.
1889         * loop-unroll.c : Likewise.
1890         * lower-subreg.c : Likewise.
1891         * lra-assigns.c : Likewise.
1892         * lra-coalesce.c : Likewise.
1893         * lra-constraints.c : Likewise.
1894         * lra-eliminations.c : Likewise.
1895         * lra-lives.c : Likewise.
1896         * lra-remat.c : Likewise.
1897         * lra-spills.c : Likewise.
1898         * lra.c : Likewise.
1899         * lto-cgraph.c : Likewise.
1900         * lto-compress.c : Likewise.
1901         * lto-opts.c : Likewise.
1902         * lto-section-in.c : Likewise.
1903         * lto-section-out.c : Likewise.
1904         * lto-streamer-in.c : Likewise.
1905         * lto-streamer-out.c : Likewise.
1906         * lto-streamer.c : Likewise.
1907         * lto-streamer.h : Likewise.
1908         * mcf.c : Likewise.
1909         * mode-switching.c : Likewise.
1910         * modulo-sched.c : Likewise.
1911         * omega.c : Likewise.
1912         * omp-low.c : Likewise.
1913         * optabs.c : Likewise.
1914         * opts-global.c : Likewise.
1915         * opts.h : Likewise.
1916         * passes.c : Likewise.
1917         * plugin.c : Likewise.
1918         * postreload-gcse.c : Likewise.
1919         * postreload.c : Likewise.
1920         * predict.c : Likewise.
1921         * print-rtl.c : Likewise.
1922         * print-tree.c : Likewise.
1923         * profile.c : Likewise.
1924         * read-md.c : Likewise.
1925         * read-md.h : Likewise.
1926         * read-rtl.c : Likewise.
1927         * real.c : Likewise.
1928         * realmpfr.c : Likewise.
1929         * recog.c : Likewise.
1930         * ree.c : Likewise.
1931         * reg-stack.c : Likewise.
1932         * regcprop.c : Likewise.
1933         * reginfo.c : Likewise.
1934         * regrename.c : Likewise.
1935         * regstat.c : Likewise.
1936         * reload.c : Likewise.
1937         * reload1.c : Likewise.
1938         * reorg.c : Likewise.
1939         * resource.c : Likewise.
1940         * rtl-chkp.c : Likewise.
1941         * rtl.c : Likewise.
1942         * rtl.h : Likewise.
1943         * rtlanal.c : Likewise.
1944         * rtlhash.c : Likewise.
1945         * rtlhash.h : Likewise.
1946         * rtlhooks.c : Likewise.
1947         * sanopt.c : Likewise.
1948         * sched-deps.c : Likewise.
1949         * sched-ebb.c : Likewise.
1950         * sched-rgn.c : Likewise.
1951         * sched-vis.c : Likewise.
1952         * sdbout.c : Likewise.
1953         * sel-sched-dump.c : Likewise.
1954         * sel-sched-ir.c : Likewise.
1955         * sel-sched-ir.h : Likewise.
1956         * sel-sched.c : Likewise.
1957         * sese.c : Likewise.
1958         * shrink-wrap.c : Likewise.
1959         * shrink-wrap.h : Likewise.
1960         * simplify-rtx.c : Likewise.
1961         * stack-ptr-mod.c : Likewise.
1962         * statistics.c : Likewise.
1963         * stmt.c : Likewise.
1964         * stor-layout.c : Likewise.
1965         * store-motion.c : Likewise.
1966         * stringpool.c : Likewise.
1967         * symtab.c : Likewise.
1968         * target-globals.c : Likewise.
1969         * targhooks.c : Likewise.
1970         * tlink.c : Likewise.
1971         * toplev.c : Likewise.
1972         * tracer.c : Likewise.
1973         * trans-mem.c : Likewise.
1974         * tree-affine.c : Likewise.
1975         * tree-affine.h : Likewise.
1976         * tree-browser.c : Likewise.
1977         * tree-call-cdce.c : Likewise.
1978         * tree-cfg.c : Likewise.
1979         * tree-cfgcleanup.c : Likewise.
1980         * tree-chkp-opt.c : Likewise.
1981         * tree-chkp.c : Likewise.
1982         * tree-chrec.c : Likewise.
1983         * tree-complex.c : Likewise.
1984         * tree-data-ref.c : Likewise.
1985         * tree-dfa.c : Likewise.
1986         * tree-diagnostic.c : Likewise.
1987         * tree-dump.c : Likewise.
1988         * tree-eh.c : Likewise.
1989         * tree-eh.h : Likewise.
1990         * tree-emutls.c : Likewise.
1991         * tree-hasher.h : Likewise.
1992         * tree-if-conv.c : Likewise.
1993         * tree-inline.c : Likewise.
1994         * tree-inline.h : Likewise.
1995         * tree-into-ssa.c : Likewise.
1996         * tree-iterator.c : Likewise.
1997         * tree-loop-distribution.c : Likewise.
1998         * tree-nested.c : Likewise.
1999         * tree-nrv.c : Likewise.
2000         * tree-object-size.c : Likewise.
2001         * tree-outof-ssa.c : Likewise.
2002         * tree-parloops.c : Likewise.
2003         * tree-phinodes.c : Likewise.
2004         * tree-predcom.c : Likewise.
2005         * tree-pretty-print.c : Likewise.
2006         * tree-profile.c : Likewise.
2007         * tree-scalar-evolution.c : Likewise.
2008         * tree-sra.c : Likewise.
2009         * tree-ssa-address.c : Likewise.
2010         * tree-ssa-alias.c : Likewise.
2011         * tree-ssa-ccp.c : Likewise.
2012         * tree-ssa-coalesce.c : Likewise.
2013         * tree-ssa-copy.c : Likewise.
2014         * tree-ssa-copyrename.c : Likewise.
2015         * tree-ssa-dce.c : Likewise.
2016         * tree-ssa-dom.c : Likewise.
2017         * tree-ssa-dse.c : Likewise.
2018         * tree-ssa-forwprop.c : Likewise.
2019         * tree-ssa-ifcombine.c : Likewise.
2020         * tree-ssa-live.c : Likewise.
2021         * tree-ssa-loop-ch.c : Likewise.
2022         * tree-ssa-loop-im.c : Likewise.
2023         * tree-ssa-loop-ivcanon.c : Likewise.
2024         * tree-ssa-loop-ivopts.c : Likewise.
2025         * tree-ssa-loop-manip.c : Likewise.
2026         * tree-ssa-loop-niter.c : Likewise.
2027         * tree-ssa-loop-prefetch.c : Likewise.
2028         * tree-ssa-loop-unswitch.c : Likewise.
2029         * tree-ssa-loop.c : Likewise.
2030         * tree-ssa-math-opts.c : Likewise.
2031         * tree-ssa-operands.c : Likewise.
2032         * tree-ssa-phiopt.c : Likewise.
2033         * tree-ssa-phiprop.c : Likewise.
2034         * tree-ssa-pre.c : Likewise.
2035         * tree-ssa-propagate.c : Likewise.
2036         * tree-ssa-reassoc.c : Likewise.
2037         * tree-ssa-sccvn.c : Likewise.
2038         * tree-ssa-scopedtables.c : Likewise.
2039         * tree-ssa-sink.c : Likewise.
2040         * tree-ssa-strlen.c : Likewise.
2041         * tree-ssa-structalias.c : Likewise.
2042         * tree-ssa-tail-merge.c : Likewise.
2043         * tree-ssa-ter.c : Likewise.
2044         * tree-ssa-threadedge.c : Likewise.
2045         * tree-ssa-threadupdate.c : Likewise.
2046         * tree-ssa-uncprop.c : Likewise.
2047         * tree-ssa-uninit.c : Likewise.
2048         * tree-ssa.c : Likewise.
2049         * tree-ssanames.c : Likewise.
2050         * tree-stdarg.c : Likewise.
2051         * tree-streamer-in.c : Likewise.
2052         * tree-streamer-out.c : Likewise.
2053         * tree-streamer.c : Likewise.
2054         * tree-streamer.h : Likewise.
2055         * tree-switch-conversion.c : Likewise.
2056         * tree-tailcall.c : Likewise.
2057         * tree-vect-data-refs.c : Likewise.
2058         * tree-vect-generic.c : Likewise.
2059         * tree-vect-loop-manip.c : Likewise.
2060         * tree-vect-loop.c : Likewise.
2061         * tree-vect-patterns.c : Likewise.
2062         * tree-vect-slp.c : Likewise.
2063         * tree-vect-stmts.c : Likewise.
2064         * tree-vectorizer.c : Likewise.
2065         * tree-vectorizer.h : Likewise.
2066         * tree-vrp.c : Likewise.
2067         * tree.c : Likewise.
2068         * tsan.c : Likewise.
2069         * ubsan.c : Likewise.
2070         * valtrack.c : Likewise.
2071         * valtrack.h : Likewise.
2072         * value-prof.c : Likewise.
2073         * var-tracking.c : Likewise.
2074         * varasm.c : Likewise.
2075         * varpool.c : Likewise.
2076         * vec.c: Likewise.
2077         * vmsdbgout.c : Likewise.
2078         * vtable-verify.c : Likewise.
2079         * vtable-verify.h : Likewise.
2080         * web.c : Likewise.
2081         * wide-int.cc : Likewise.
2082         * xcoffout.c : Likewise.
2083         * config/aarch64/aarch64-builtins.c : Likewise.
2084         * config/aarch64/aarch64.c : Likewise.
2085         * config/aarch64/cortex-a57-fma-steering.c : Likewise.
2086         * config/alpha/alpha.c : Likewise.
2087         * config/arc/arc.c : Likewise.
2088         * config/arm/aarch-common.c : Likewise.
2089         * config/arm/arm-builtins.c : Likewise.
2090         * config/arm/arm-c.c : Likewise.
2091         * config/arm/arm.c : Likewise.
2092         * config/avr/avr-c.c : Likewise.
2093         * config/avr/avr-log.c : Likewise.
2094         * config/avr/avr.c : Likewise.
2095         * config/bfin/bfin.c : Likewise.
2096         * config/c6x/c6x.c : Likewise.
2097         * config/cr16/cr16.c : Likewise.
2098         * config/cris/cris.c : Likewise.
2099         * config/darwin-c.c : Likewise.
2100         * config/darwin.c : Likewise.
2101         * config/default-c.c : Likewise.
2102         * config/epiphany/epiphany.c : Likewise.
2103         * config/epiphany/mode-switch-use.c : Likewise.
2104         * config/epiphany/resolve-sw-modes.c : Likewise.
2105         * config/fr30/fr30.c : Likewise.
2106         * config/frv/frv.c : Likewise.
2107         * config/ft32/ft32.c : Likewise.
2108         * config/glibc-c.c : Likewise.
2109         * config/h8300/h8300.c : Likewise.
2110         * config/i386/i386-c.c : Likewise.
2111         * config/i386/i386.c : Likewise.
2112         * config/i386/msformat-c.c : Likewise.
2113         * config/i386/winnt-cxx.c : Likewise.
2114         * config/i386/winnt-stubs.c : Likewise.
2115         * config/i386/winnt.c : Likewise.
2116         * config/ia64/ia64-c.c : Likewise.
2117         * config/ia64/ia64.c : Likewise.
2118         * config/iq2000/iq2000.c : Likewise.
2119         * config/lm32/lm32.c : Likewise.
2120         * config/m32c/m32c-pragma.c : Likewise.
2121         * config/m32c/m32c.c : Likewise.
2122         * config/m32r/m32r.c : Likewise.
2123         * config/m68k/m68k.c : Likewise.
2124         * config/mcore/mcore.c : Likewise.
2125         * config/mep/mep-pragma.c : Likewise.
2126         * config/mep/mep.c : Likewise.
2127         * config/microblaze/microblaze-c.c : Likewise.
2128         * config/microblaze/microblaze.c : Likewise.
2129         * config/mips/mips.c : Likewise.
2130         * config/mmix/mmix.c : Likewise.
2131         * config/mn10300/mn10300.c : Likewise.
2132         * config/moxie/moxie.c : Likewise.
2133         * config/msp430/msp430-c.c : Likewise.
2134         * config/msp430/msp430.c : Likewise.
2135         * config/nds32/nds32-cost.c : Likewise.
2136         * config/nds32/nds32-fp-as-gp.c : Likewise.
2137         * config/nds32/nds32-intrinsic.c : Likewise.
2138         * config/nds32/nds32-isr.c : Likewise.
2139         * config/nds32/nds32-md-auxiliary.c : Likewise.
2140         * config/nds32/nds32-memory-manipulation.c : Likewise.
2141         * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
2142         * config/nds32/nds32-predicates.c : Likewise.
2143         * config/nds32/nds32.c : Likewise.
2144         * config/nios2/nios2.c : Likewise.
2145         * config/nvptx/nvptx.c : Likewise.
2146         * config/pa/pa.c : Likewise.
2147         * config/pdp11/pdp11.c : Likewise.
2148         * config/rl78/rl78-c.c : Likewise.
2149         * config/rl78/rl78.c : Likewise.
2150         * config/rs6000/rs6000-c.c : Likewise.
2151         * config/rs6000/rs6000.c : Likewise.
2152         * config/rx/rx.c : Likewise.
2153         * config/s390/s390-c.c : Likewise.
2154         * config/s390/s390.c : Likewise.
2155         * config/sh/sh-c.c : Likewise.
2156         * config/sh/sh-mem.cc : Likewise.
2157         * config/sh/sh.c : Likewise.
2158         * config/sh/sh_optimize_sett_clrt.cc : Likewise.
2159         * config/sh/sh_treg_combine.cc : Likewise.
2160         * config/sol2-c.c : Likewise.
2161         * config/sol2-cxx.c : Likewise.
2162         * config/sol2-stubs.c : Likewise.
2163         * config/sol2.c : Likewise.
2164         * config/sparc/sparc-c.c : Likewise.
2165         * config/sparc/sparc.c : Likewise.
2166         * config/spu/spu-c.c : Likewise.
2167         * config/spu/spu.c : Likewise.
2168         * config/stormy16/stormy16.c : Likewise.
2169         * config/tilegx/mul-tables.c : Likewise.
2170         * config/tilegx/tilegx-c.c : Likewise.
2171         * config/tilegx/tilegx.c : Likewise.
2172         * config/tilepro/mul-tables.c : Likewise.
2173         * config/tilepro/tilepro-c.c : Likewise.
2174         * config/tilepro/tilepro.c : Likewise.
2175         * config/v850/v850-c.c : Likewise.
2176         * config/v850/v850.c : Likewise.
2177         * config/vax/vax.c : Likewise.
2178         * config/visium/visium.c : Likewise.
2179         * config/vms/vms-c.c : Likewise.
2180         * config/vms/vms.c : Likewise.
2181         * config/vxworks.c : Likewise.
2182         * config/winnt-c.c : Likewise.
2183         * config/xtensa/xtensa.c : Likewise.
2185 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
2187         PR lto/65378
2188         * ipa-utils.h (warn_types_mismatch): Update prototype.
2189         * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
2190         parameters.
2191         (type_mismatch_p): New function.
2192         (warn_types_mismatch): Reorg to work better on non-C++ types.
2193         (odr_types_equivalent_p): Add loc1/loc2 parameters.
2194         (add_type_duplicate): Update.
2196 2015-06-08  Tom de Vries  <tom@codesourcery.com>
2198         PR rtl-optimization/66444
2199         * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
2200         call_used_regs.
2202 2015-06-08  Richard Biener  <rguenther@suse.de>
2204         PR tree-optimization/66422
2205         * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
2206         block after inserted gcc_unreachable.
2208 2015-06-08  Nick Clifton  <nickc@redhat.com>
2210         * config/rx/rx.c (rx_function_value): Do not promote vector types.
2211         (rx_promote_function_mode): Likewise.
2212         * config/rx/rx.h (LIBCALL_VALUE): Likewise.
2214 2015-06-08  Jakub Jelinek  <jakub@redhat.com>
2216         * genattrtab.c (insn_alternatives): Change type from int *
2217         to uint64_t *.
2218         (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
2219         (get_attr_value): Change type of num_alt to uint64_t.
2220         (compute_alternative_mask): Change return type from
2221         int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
2222         (make_alternative_compare, mk_attr_alt): Change argument type
2223         from int to uint64_t.
2224         (simplify_test_exp): Change type of i from int to uint64_t.
2225         Shift ((uint64_t) 1) instead of 1 up.
2226         (main): Adjust oballocvec first argument from int to uint64_t.
2227         Shift ((uint64_t) 1) instead of 1 up.
2229 2015-06-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
2231         PR other/65366
2232         * gdbhooks.py: Import sys.
2233         (intptr): New function.  Replace int(...) by intptr(...).
2235 2015-06-08  Richard Biener  <rguenther@suse.de>
2237         * tree-vect-stmts.c (vectorizable_load): Compute the pointer
2238         adjustment for gaps at the end of a SLP load group properly.
2239         * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
2240         all permutations we can generate.
2241         (vect_transform_slp_perm_load): Use the correct group-size.
2243 2015-06-08  Marc Glisse  <marc.glisse@inria.fr>
2245         * genmatch.c (expr::gen_transform): For conditions, guess the type
2246         from the second operand.
2248 2015-06-08  Tom de Vries  <tom@codesourcery.com>
2250         PR tree-optimization/66442
2251         * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
2252         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
2253         if the loop latch is not a singleton.  Use
2254         gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
2256 2015-06-08  Marek Polacek  <polacek@redhat.com>
2258         PR sanitizer/66452
2259         * toplev.c (check_global_declaration): Don't warn about artificial
2260         decls.
2262 2015-06-08  Tom de Vries  <tom@codesourcery.com>
2264         PR tree-optimization/66436
2265         * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
2266         dump file.
2267         * gimplify.c: Add tree-dump.h include.
2268         (gimplify_function_tree): Dump function to gimple dump file.
2269         * stor-layout.c (finalize_size_functions): Don't dump function to gimple
2270         dump file.
2272 2015-06-08  Tom de Vries  <tom@codesourcery.com>
2274         PR tree-optimization/66435
2275         * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
2276         function.
2278 2015-06-06  Jan Hubicka  <hubicka@ucw.cz>
2280         * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
2281         of ptr_type_node to not be ptr_to_node.
2282         * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
2283         TREE_TYPE of pointers.
2284         * gimple-expr.c (useless_type_conversion): Reorder the check for
2285         function pointers and TYPE_CANONICAL.
2287 2015-06-06  John David Anglin  <danglin@gcc.gnu.org>
2289         PR bootstrap/66319
2290         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
2291         defines.  Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
2292         Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
2293         later.
2294         * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
2295         Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
2296         _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
2297         _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
2298         and non iso if unix2003.
2300 2015-06-06  Aldy Hernandez  <aldyh@redhat.com>
2302         * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
2304 2015-06-06  Richard Sandiford  <richard.sandiford@arm.com>
2306         * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
2307         rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
2308         cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
2309         except.c, final.c, function.c, gcse-common.c, genemit.c,
2310         haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
2311         lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
2312         sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
2313         shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
2314         more derived ones.
2316 2015-06-06  Mikhail Maltsev  <maltsevm@gmail.com>
2318         * combine.c (combine_split_insns): Remove cast.
2319         * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
2320         * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
2321         * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
2322         * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
2323         * genemit.c (gen_split): Change return type of generated functions to
2324         rtx_insn.
2325         * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
2326         (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
2327         gen_peephole2_* functions.
2328         (print_subroutine, main): Likewise.
2329         * recog.c (peephole2_optimize): Remove cast.
2330         (peep2_next_insn): Promote return type to rtx_insn.
2331         * recog.h (peep2_next_insn): Fix prototype.
2332         * rtl.h (try_split, split_insns): Likewise.
2334 2015-06-06  DJ Delorie  <dj@redhat.com>
2336         * config/msp430/msp430.c (msp430_asm_integer): Support addition
2337         and subtraction too.
2339 2015-06-05  Kaz Kojima  <kkojima@gcc.gnu.org>
2341         PR target/66410
2342         * config/sh/constraints.md (Sid, Ssd): New memory constraints.
2343         * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
2344         instead of Snd.  Disparage Sid/z alternative with '^'.
2346 2015-06-05  Aldy Hernandez  <aldyh@redhat.com>
2348         * dwarf2out.c: Remove deferred_locations*.
2349         (dwarf2_debug_hooks): Add early_finish hook.
2350         Remove global_decl hook.
2351         Add early_global_decl and late_global_decl hook.
2352         New global early_dwarf.
2353         New structure set_early_dwarf.
2354         (output_die): Indicate whether a DIE was generated early
2355         when generating assembly with -dA.
2356         (struct limbo_die_struct): Document created_for field.
2357         Remove file_table_last_lookup.
2358         (remove_AT): Return TRUE if successful.
2359         (remove_child_TAG): Clear die_parent.
2360         (reparent_child): New function abstracted from...
2361         (splice_child_die): ...here.
2362         (new_die): ICE if a DIE ends up in limbo too late.
2363         (check_die): New.
2364         (defer_location): Remove.
2365         (add_subscript_info): Reuse DW_TAG_subrange_type if available.
2366         (fill_variable_array_bounds): New.
2367         (decl_start_label): Call fill_variable_array_bounds.
2368         (gen_formal_parameter_die): Rewrite to reuse previously generated
2369         DIEs.
2370         (gen_subprogram_die): Same.
2371         (gen_variable_die): Same.
2372         (gen_const_die): Same.
2373         (gen_label_die): Same.
2374         (gen_lexical_block_die): Same.
2375         (decl_will_get_specification_p): New.
2376         (local_function_static): New.
2377         (gen_struct_or_union_type_die): Fill in variable-length fields.
2378         (gen_typedef_die): Fill in variable-length typedefs.
2379         (gen_tagged_type_die): Gracefully return on error_mark_node.
2380         Handle re-entrancy.
2381         (gen_type_die_with_usage): Handle variable-length types.
2382         Remove duplicate code for ARRAY_TYPE case.
2383         (process_scope_var): Only process imported modules during early
2384         dwarf.
2385         (dwarf2out_early_global_decl): New.
2386         (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
2387         (dwarf2out_type_decl): Set early_dwarf while calling
2388         dwarf2out_decl.
2389         (dwarf2out_decl): Verify that we did not recreate a previously
2390         generated DIE.
2391         Do not return on DECL_EXTERNALs in VAR_DECLs.
2392         Abstract some code to local_function_static.
2393         (lookup_filename): Remove use of file_table_last_lookup.
2394         Gracefully exit on missing file_name.
2395         (dwarf2out_finish): Verify limbo list.
2396         Remove deferred_locations_list use.
2397         Move deferred_asm_name and limbo flushing to...
2398         (dwarf2out_early_finish): ...here.  New.
2399         (dwarf2out_c_finalize): Remove set of deferred_location_list,
2400         deferred_asm_name, and file_table_last_lookup.
2401         * cgraph.h (referred_to_p): Add default argument.
2402         * cgraphunit.c (referred_to_p): Add and handle include_self
2403         argument.
2404         (analyze_functions): Add first_time argument.
2405         Call check_global_declaration for all symbols.
2406         Call late_global_decl for nodes for moribund nodes.
2407         (finalize_compilation_unit): Add new argument to
2408         analyze_functions.
2409         Call early_global_decl for functions.
2410         Call early_finish debug hook.
2411         * dbxout.c (dbxout_early_global_decl): New.
2412         (dbxout_late_global_decl): New.  Adapted from dbxout_global_decl.
2413         (dbx_debug_hooks): Add new hooks.
2414         (xcoff_debug_hooks): Same.
2415         * debug.c (do_nothing_debug_hooks): Add early_finish field.
2416         Add early and late debug hooks.
2417         Remove global_decl hook.
2418         * debug.h (struct gcc_debug_hooks): Add early_finish,
2419         early_global_decl, and late_global_decl fields.
2420         Remove global_decl field.
2421         Document gcc_debug_hooks.
2422         * gengtype.c (output_typename): Remove.
2423         * godump.c (go_early_global_decl): New.
2424         (go_late_global_decl): New.
2425         (go_global_decl): Remove.
2426         (dump_go_spec_init): Remove global_decl.  Add
2427         {early,late}_global_decl.
2428         * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
2429         (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
2430         * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
2431         (write_global_declarations): Remove.
2432         (global_decl_processing): New.
2433         * langhooks.h (struct lang_hooks_for_decls): Remove
2434         final_write_globals field.
2435         Add post_compilation_parsing_cleanups field.
2436         * passes.c (rest_of_decl_compilation): Call early_global_decl.
2437         * sdbout.c: Add early and late_global_decl hooks.  Remove
2438         sdbout_global_decl hook.
2439         Add early_finish field for sdb_debug_hooks.
2440         (sdbout_global_decl): Remove.
2441         (sdbout_early_global_decl): New.
2442         (sdbout_late_global_decl): New.
2443         * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
2444         * toplev.c (check_global_declaration): Rename from
2445         check_global_declaration_1.
2446         Adapt to use symtab infrastructure.
2447         (check_global_declarations): Remove.
2448         (emit_debug_global_declarations): Remove.
2449         (compile_file): Remove call to final_write_globals langhook.
2450         Run the actual compilation process.
2451         Perform any post compilation parser cleanups.
2452         Generate late debug info.
2453         * toplev.h (check_global_declaration): New.
2454         (check_global_declaration_1): Remove.
2455         (check_global_declarations): Remove.
2456         (write_global_declarations): Remove.
2457         (emit_debug_global_declarations): Remove.
2458         (global_decl_processing): New.
2459         * tree-core.h (struct tree_block): Add DIE field.
2460         * tree.h (BLOCK_DIE): New.
2461         * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
2462         throughout.
2463         (vmsdbgout_early_global_decl): New.
2464         (vmsdbgout_late_global_decl): New.
2465         Add early_finish debug hook field to vmsdbg_debug_hooks.
2466         Remove vmsdbgout_decl to vmsdbgout_function_decl.
2467         Add early and late_global_decl debug hooks.
2469 2015-06-05  Julian Brown  <julian@codesourcery.com>
2470             Sandra Loosemore  <sandra@codesourcery.com>
2472         * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
2473         * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
2474         to print-sysroot-suffix.sh script.
2476 2015-06-05  Tom de Vries  <tom@codesourcery.com>
2478         merge from gomp4 branch:
2479         2015-05-28  Tom de Vries  <tom@codesourcery.com>
2481         PR tree-optimization/65443
2482         * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
2483         (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
2484         (try_transform_to_exit_first_loop_alt): New function.
2485         (transform_to_exit_first_loop): Use
2486         try_transform_to_exit_first_loop_alt.
2488 2015-06-05  James Greenhalgh  <james.greenhalgh@arm.com>
2490         * builtins.c (expand_builtin_atomic_compare_exchange): Call
2491         emit_cmp_and_jump_insns with the mode of target.
2493 2015-06-05  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
2495         * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
2497 2015-06-04  DJ Delorie  <dj@redhat.com>
2499         * config/msp430/msp430.md (movsi_s): New.  Special case for
2500         storing a 20-bit symbol into a 32-bit register.
2501         * config/msp430/msp430.c (msp430_subreg): Add support for it.
2502         * config/msp430/predicates.md (msp430_symbol_operand): New.
2504 2015-06-04  Sriraman Tallam  <tmsriram@google.com>
2506         * c-family/c-common.c (noplt): New attribute.
2507         (handle_noplt_attribute): New handler.
2508         * calls.c (prepare_call_address): Check for noplt
2509         attribute.
2510         * config/i386/i386.c (ix86_expand_call): Check
2511         for noplt attribute.
2512         (ix86_nopic_noplt_attribute_p): New function.
2513         (ix86_output_call_insn): Output indirect call for non-pic
2514         no plt calls.
2515         * doc/extend.texi (noplt): Document new attribute.
2516         * doc/invoke.texi: Document new attribute.
2518 2015-06-04  Andrew MacLeod  <amacleod@redhat.com>
2520         * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
2521         real.h, and fixed-value.h when included in host source files.
2522         * double-int.h: Remove redundant #includes listed above.
2523         * fixed-value.h: Likewise.
2524         * real.h: Likewise.
2525         * wide-int.h: Likewise.
2526         * inchash.h: Likewise.
2527         * rtl.h: Add some include files When included from a generator file.
2528         * target.h: Remove wide-int.h and insn-modes.h from the include list.
2529         * internal-fn.h: Don't include coretypes.h.
2530         * alias.c: Adjust includes for restructured coretypes.h.
2531         * asan.c: Likewise.
2532         * attribs.c: Likewise.
2533         * auto-inc-dec.c: Likewise.
2534         * auto-profile.c: Likewise.
2535         * bb-reorder.c: Likewise.
2536         * bt-load.c: Likewise.
2537         * builtins.c: Likewise.
2538         * caller-save.c: Likewise.
2539         * calls.c: Likewise.
2540         * ccmp.c: Likewise.
2541         * cfg.c: Likewise.
2542         * cfganal.c: Likewise.
2543         * cfgbuild.c: Likewise.
2544         * cfgcleanup.c: Likewise.
2545         * cfgexpand.c: Likewise.
2546         * cfghooks.c: Likewise.
2547         * cfgloop.c: Likewise.
2548         * cfgloop.h: Likewise.
2549         * cfgloopanal.c: Likewise.
2550         * cfgloopmanip.c: Likewise.
2551         * cfgrtl.c: Likewise.
2552         * cgraph.c: Likewise.
2553         * cgraphbuild.c: Likewise.
2554         * cgraphclones.c: Likewise.
2555         * cgraphunit.c: Likewise.
2556         * cilk-common.c: Likewise.
2557         * combine-stack-adj.c: Likewise.
2558         * combine.c: Likewise.
2559         * compare-elim.c: Likewise.
2560         * convert.c: Likewise.
2561         * coverage.c: Likewise.
2562         * cppbuiltin.c: Likewise.
2563         * cprop.c: Likewise.
2564         * cse.c: Likewise.
2565         * cselib.c: Likewise.
2566         * data-streamer-in.c: Likewise.
2567         * data-streamer-out.c: Likewise.
2568         * data-streamer.c: Likewise.
2569         * dbxout.c: Likewise.
2570         * dce.c: Likewise.
2571         * ddg.c: Likewise.
2572         * debug.c: Likewise.
2573         * df-core.c: Likewise.
2574         * df-problems.c: Likewise.
2575         * df-scan.c: Likewise.
2576         * df.h: Likewise.
2577         * dfp.c: Likewise.
2578         * dojump.c: Likewise.
2579         * dominance.c: Likewise.
2580         * domwalk.c: Likewise.
2581         * double-int.c: Likewise.
2582         * dse.c: Likewise.
2583         * dumpfile.c: Likewise.
2584         * dwarf2asm.c: Likewise.
2585         * dwarf2cfi.c: Likewise.
2586         * dwarf2out.c: Likewise.
2587         * dwarf2out.h: Likewise.
2588         * emit-rtl.c: Likewise.
2589         * et-forest.c: Likewise.
2590         * except.c: Likewise.
2591         * explow.c: Likewise.
2592         * expmed.c: Likewise.
2593         * expr.c: Likewise.
2594         * final.c: Likewise.
2595         * fixed-value.c: Likewise.
2596         * fold-const.c: Likewise.
2597         * function.c: Likewise.
2598         * fwprop.c: Likewise.
2599         * gcc-plugin.h: Likewise.
2600         * gcse.c: Likewise.
2601         * generic-match-head.c: Likewise.
2602         * ggc-page.c: Likewise.
2603         * gimple-builder.c: Likewise.
2604         * gimple-expr.c: Likewise.
2605         * gimple-fold.c: Likewise.
2606         * gimple-iterator.c: Likewise.
2607         * gimple-low.c: Likewise.
2608         * gimple-match-head.c: Likewise.
2609         * gimple-pretty-print.c: Likewise.
2610         * gimple-ssa-isolate-paths.c: Likewise.
2611         * gimple-ssa-strength-reduction.c: Likewise.
2612         * gimple-streamer-in.c: Likewise.
2613         * gimple-streamer-out.c: Likewise.
2614         * gimple-streamer.h: Likewise.
2615         * gimple-walk.c: Likewise.
2616         * gimple.c: Likewise.
2617         * gimplify-me.c: Likewise.
2618         * gimplify.c: Likewise.
2619         * godump.c: Likewise.
2620         * graph.c: Likewise.
2621         * graphite-blocking.c: Likewise.
2622         * graphite-dependences.c: Likewise.
2623         * graphite-interchange.c: Likewise.
2624         * graphite-isl-ast-to-gimple.c: Likewise.
2625         * graphite-optimize-isl.c: Likewise.
2626         * graphite-poly.c: Likewise.
2627         * graphite-scop-detection.c: Likewise.
2628         * graphite-sese-to-poly.c: Likewise.
2629         * graphite.c: Likewise.
2630         * haifa-sched.c: Likewise.
2631         * hooks.h: Likewise.
2632         * hw-doloop.c: Likewise.
2633         * ifcvt.c: Likewise.
2634         * incpath.c: Likewise.
2635         * init-regs.c: Likewise.
2636         * internal-fn.c: Likewise.
2637         * ipa-chkp.c: Likewise.
2638         * ipa-comdats.c: Likewise.
2639         * ipa-cp.c: Likewise.
2640         * ipa-devirt.c: Likewise.
2641         * ipa-icf-gimple.c: Likewise.
2642         * ipa-icf.c: Likewise.
2643         * ipa-inline-analysis.c: Likewise.
2644         * ipa-inline-transform.c: Likewise.
2645         * ipa-inline.c: Likewise.
2646         * ipa-polymorphic-call.c: Likewise.
2647         * ipa-profile.c: Likewise.
2648         * ipa-prop.c: Likewise.
2649         * ipa-pure-const.c: Likewise.
2650         * ipa-ref.c: Likewise.
2651         * ipa-reference.c: Likewise.
2652         * ipa-split.c: Likewise.
2653         * ipa-utils.c: Likewise.
2654         * ipa-visibility.c: Likewise.
2655         * ipa.c: Likewise.
2656         * ira-build.c: Likewise.
2657         * ira-color.c: Likewise.
2658         * ira-conflicts.c: Likewise.
2659         * ira-costs.c: Likewise.
2660         * ira-emit.c: Likewise.
2661         * ira-lives.c: Likewise.
2662         * ira.c: Likewise.
2663         * jump.c: Likewise.
2664         * langhooks.c: Likewise.
2665         * lcm.c: Likewise.
2666         * loop-doloop.c: Likewise.
2667         * loop-init.c: Likewise.
2668         * loop-invariant.c: Likewise.
2669         * loop-iv.c: Likewise.
2670         * loop-unroll.c: Likewise.
2671         * lower-subreg.c: Likewise.
2672         * lra-assigns.c: Likewise.
2673         * lra-coalesce.c: Likewise.
2674         * lra-constraints.c: Likewise.
2675         * lra-eliminations.c: Likewise.
2676         * lra-lives.c: Likewise.
2677         * lra-remat.c: Likewise.
2678         * lra-spills.c: Likewise.
2679         * lra.c: Likewise.
2680         * lto-cgraph.c: Likewise.
2681         * lto-compress.c: Likewise.
2682         * lto-opts.c: Likewise.
2683         * lto-section-in.c: Likewise.
2684         * lto-section-out.c: Likewise.
2685         * lto-streamer-in.c: Likewise.
2686         * lto-streamer-out.c: Likewise.
2687         * lto-streamer.c: Likewise.
2688         * mcf.c: Likewise.
2689         * mode-switching.c: Likewise.
2690         * modulo-sched.c: Likewise.
2691         * omega.c: Likewise.
2692         * omp-low.c: Likewise.
2693         * optabs.c: Likewise.
2694         * opts-global.c: Likewise.
2695         * passes.c: Likewise.
2696         * plugin.c: Likewise.
2697         * postreload-gcse.c: Likewise.
2698         * postreload.c: Likewise.
2699         * predict.c: Likewise.
2700         * print-rtl.c: Likewise.
2701         * print-tree.c: Likewise.
2702         * profile.c: Likewise.
2703         * real.c: Likewise.
2704         * realmpfr.c: Likewise.
2705         * realmpfr.h: Likewise.
2706         * recog.c: Likewise.
2707         * ree.c: Likewise.
2708         * reg-stack.c: Likewise.
2709         * regcprop.c: Likewise.
2710         * reginfo.c: Likewise.
2711         * regrename.c: Likewise.
2712         * regs.h: Likewise.
2713         * regstat.c: Likewise.
2714         * reload.c: Likewise.
2715         * reload1.c: Likewise.
2716         * reorg.c: Likewise.
2717         * resource.c: Likewise.
2718         * rtl-chkp.c: Likewise.
2719         * rtlanal.c: Likewise.
2720         * rtlhooks.c: Likewise.
2721         * sanopt.c: Likewise.
2722         * sched-deps.c: Likewise.
2723         * sched-ebb.c: Likewise.
2724         * sched-rgn.c: Likewise.
2725         * sched-vis.c: Likewise.
2726         * sdbout.c: Likewise.
2727         * sel-sched-dump.c: Likewise.
2728         * sel-sched-ir.c: Likewise.
2729         * sel-sched.c: Likewise.
2730         * sese.c: Likewise.
2731         * shrink-wrap.c: Likewise.
2732         * shrink-wrap.h: Likewise.
2733         * simplify-rtx.c: Likewise.
2734         * stack-ptr-mod.c: Likewise.
2735         * statistics.c: Likewise.
2736         * stmt.c: Likewise.
2737         * stor-layout.c: Likewise.
2738         * store-motion.c: Likewise.
2739         * stringpool.c: Likewise.
2740         * symtab.c: Likewise.
2741         * target-globals.c: Likewise.
2742         * targhooks.c: Likewise.
2743         * toplev.c: Likewise.
2744         * tracer.c: Likewise.
2745         * trans-mem.c: Likewise.
2746         * tree-affine.c: Likewise.
2747         * tree-affine.h: Likewise.
2748         * tree-browser.c: Likewise.
2749         * tree-call-cdce.c: Likewise.
2750         * tree-cfg.c: Likewise.
2751         * tree-cfgcleanup.c: Likewise.
2752         * tree-chkp-opt.c: Likewise.
2753         * tree-chkp.c: Likewise.
2754         * tree-chrec.c: Likewise.
2755         * tree-complex.c: Likewise.
2756         * tree-data-ref.c: Likewise.
2757         * tree-dfa.c: Likewise.
2758         * tree-diagnostic.c: Likewise.
2759         * tree-dump.c: Likewise.
2760         * tree-eh.c: Likewise.
2761         * tree-emutls.c: Likewise.
2762         * tree-if-conv.c: Likewise.
2763         * tree-inline.c: Likewise.
2764         * tree-into-ssa.c: Likewise.
2765         * tree-iterator.c: Likewise.
2766         * tree-loop-distribution.c: Likewise.
2767         * tree-nested.c: Likewise.
2768         * tree-nrv.c: Likewise.
2769         * tree-object-size.c: Likewise.
2770         * tree-outof-ssa.c: Likewise.
2771         * tree-parloops.c: Likewise.
2772         * tree-phinodes.c: Likewise.
2773         * tree-predcom.c: Likewise.
2774         * tree-pretty-print.c: Likewise.
2775         * tree-pretty-print.h: Likewise.
2776         * tree-profile.c: Likewise.
2777         * tree-scalar-evolution.c: Likewise.
2778         * tree-sra.c: Likewise.
2779         * tree-ssa-address.c: Likewise.
2780         * tree-ssa-alias.c: Likewise.
2781         * tree-ssa-ccp.c: Likewise.
2782         * tree-ssa-coalesce.c: Likewise.
2783         * tree-ssa-copy.c: Likewise.
2784         * tree-ssa-copyrename.c: Likewise.
2785         * tree-ssa-dce.c: Likewise.
2786         * tree-ssa-dom.c: Likewise.
2787         * tree-ssa-dse.c: Likewise.
2788         * tree-ssa-forwprop.c: Likewise.
2789         * tree-ssa-ifcombine.c: Likewise.
2790         * tree-ssa-live.c: Likewise.
2791         * tree-ssa-loop-ch.c: Likewise.
2792         * tree-ssa-loop-im.c: Likewise.
2793         * tree-ssa-loop-ivcanon.c: Likewise.
2794         * tree-ssa-loop-ivopts.c: Likewise.
2795         * tree-ssa-loop-manip.c: Likewise.
2796         * tree-ssa-loop-niter.c: Likewise.
2797         * tree-ssa-loop-prefetch.c: Likewise.
2798         * tree-ssa-loop-unswitch.c: Likewise.
2799         * tree-ssa-loop.c: Likewise.
2800         * tree-ssa-loop.h: Likewise.
2801         * tree-ssa-math-opts.c: Likewise.
2802         * tree-ssa-operands.c: Likewise.
2803         * tree-ssa-phiopt.c: Likewise.
2804         * tree-ssa-phiprop.c: Likewise.
2805         * tree-ssa-pre.c: Likewise.
2806         * tree-ssa-propagate.c: Likewise.
2807         * tree-ssa-reassoc.c: Likewise.
2808         * tree-ssa-sccvn.c: Likewise.
2809         * tree-ssa-scopedtables.c: Likewise.
2810         * tree-ssa-sink.c: Likewise.
2811         * tree-ssa-strlen.c: Likewise.
2812         * tree-ssa-structalias.c: Likewise.
2813         * tree-ssa-tail-merge.c: Likewise.
2814         * tree-ssa-ter.c: Likewise.
2815         * tree-ssa-threadedge.c: Likewise.
2816         * tree-ssa-threadupdate.c: Likewise.
2817         * tree-ssa-uncprop.c: Likewise.
2818         * tree-ssa-uninit.c: Likewise.
2819         * tree-ssa.c: Likewise.
2820         * tree-ssanames.c: Likewise.
2821         * tree-stdarg.c: Likewise.
2822         * tree-streamer-in.c: Likewise.
2823         * tree-streamer-out.c: Likewise.
2824         * tree-streamer.c: Likewise.
2825         * tree-switch-conversion.c: Likewise.
2826         * tree-tailcall.c: Likewise.
2827         * tree-vect-data-refs.c: Likewise.
2828         * tree-vect-generic.c: Likewise.
2829         * tree-vect-loop-manip.c: Likewise.
2830         * tree-vect-loop.c: Likewise.
2831         * tree-vect-patterns.c: Likewise.
2832         * tree-vect-slp.c: Likewise.
2833         * tree-vect-stmts.c: Likewise.
2834         * tree-vectorizer.c: Likewise.
2835         * tree-vrp.c: Likewise.
2836         * tree.c: Likewise.
2837         * tsan.c: Likewise.
2838         * ubsan.c: Likewise.
2839         * valtrack.c: Likewise.
2840         * value-prof.c: Likewise.
2841         * var-tracking.c: Likewise.
2842         * varasm.c: Likewise.
2843         * varpool.c: Likewise.
2844         * vmsdbgout.c: Likewise.
2845         * vtable-verify.c: Likewise.
2846         * web.c: Likewise.
2847         * wide-int-print.cc: Likewise.
2848         * wide-int-print.h: Likewise.
2849         * wide-int.cc: Likewise.
2850         * xcoffout.c: Likewise.
2851         * config/aarch64/aarch64-builtins.c: Likewise.
2852         * config/aarch64/aarch64.c: Likewise.
2853         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
2854         * config/alpha/alpha.c: Likewise.
2855         * config/arc/arc.c: Likewise.
2856         * config/arm/aarch-common.c: Likewise.
2857         * config/arm/arm-builtins.c: Likewise.
2858         * config/arm/arm-c.c: Likewise.
2859         * config/arm/arm.c: Likewise.
2860         * config/avr/avr-c.c: Likewise.
2861         * config/avr/avr-log.c: Likewise.
2862         * config/avr/avr.c: Likewise.
2863         * config/bfin/bfin.c: Likewise.
2864         * config/c6x/c6x.c: Likewise.
2865         * config/cr16/cr16.c: Likewise.
2866         * config/cris/cris.c: Likewise.
2867         * config/darwin-c.c: Likewise.
2868         * config/darwin.c: Likewise.
2869         * config/default-c.c: Likewise.
2870         * config/epiphany/epiphany.c: Likewise.
2871         * config/epiphany/mode-switch-use.c: Likewise.
2872         * config/epiphany/resolve-sw-modes.c: Likewise.
2873         * config/fr30/fr30.c: Likewise.
2874         * config/frv/frv.c: Likewise.
2875         * config/ft32/ft32.c: Likewise.
2876         * config/glibc-c.c: Likewise.
2877         * config/h8300/h8300.c: Likewise.
2878         * config/i386/i386-c.c: Likewise.
2879         * config/i386/i386.c: Likewise.
2880         * config/i386/msformat-c.c: Likewise.
2881         * config/i386/winnt-cxx.c: Likewise.
2882         * config/i386/winnt-stubs.c: Likewise.
2883         * config/i386/winnt.c: Likewise.
2884         * config/ia64/ia64-c.c: Likewise.
2885         * config/ia64/ia64.c: Likewise.
2886         * config/iq2000/iq2000.c: Likewise.
2887         * config/lm32/lm32.c: Likewise.
2888         * config/m32c/m32c-pragma.c: Likewise.
2889         * config/m32c/m32c.c: Likewise.
2890         * config/m32r/m32r.c: Likewise.
2891         * config/m68k/m68k.c: Likewise.
2892         * config/mcore/mcore.c: Likewise.
2893         * config/mep/mep-pragma.c: Likewise.
2894         * config/mep/mep.c: Likewise.
2895         * config/microblaze/microblaze-c.c: Likewise.
2896         * config/microblaze/microblaze.c: Likewise.
2897         * config/mips/mips.c: Likewise.
2898         * config/mmix/mmix.c: Likewise.
2899         * config/mn10300/mn10300.c: Likewise.
2900         * config/moxie/moxie.c: Likewise.
2901         * config/msp430/msp430-c.c: Likewise.
2902         * config/msp430/msp430.c: Likewise.
2903         * config/nds32/nds32-cost.c: Likewise.
2904         * config/nds32/nds32-fp-as-gp.c: Likewise.
2905         * config/nds32/nds32-intrinsic.c: Likewise.
2906         * config/nds32/nds32-isr.c: Likewise.
2907         * config/nds32/nds32-md-auxiliary.c: Likewise.
2908         * config/nds32/nds32-memory-manipulation.c: Likewise.
2909         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
2910         * config/nds32/nds32-predicates.c: Likewise.
2911         * config/nds32/nds32.c: Likewise.
2912         * config/nios2/nios2.c: Likewise.
2913         * config/nvptx/nvptx.c: Likewise.
2914         * config/pa/pa.c: Likewise.
2915         * config/pdp11/pdp11.c: Likewise.
2916         * config/rl78/rl78-c.c: Likewise.
2917         * config/rl78/rl78.c: Likewise.
2918         * config/rs6000/rs6000-c.c: Likewise.
2919         * config/rs6000/rs6000.c: Likewise.
2920         * config/rx/rx.c: Likewise.
2921         * config/s390/s390-c.c: Likewise.
2922         * config/s390/s390.c: Likewise.
2923         * config/sh/sh-c.c: Likewise.
2924         * config/sh/sh-mem.cc: Likewise.
2925         * config/sh/sh.c: Likewise.
2926         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
2927         * config/sh/sh_treg_combine.cc: Likewise.
2928         * config/sol2-c.c: Likewise.
2929         * config/sol2-cxx.c: Likewise.
2930         * config/sol2-stubs.c: Likewise.
2931         * config/sol2.c: Likewise.
2932         * config/sparc/sparc-c.c: Likewise.
2933         * config/sparc/sparc.c: Likewise.
2934         * config/spu/spu-c.c: Likewise.
2935         * config/spu/spu.c: Likewise.
2936         * config/stormy16/stormy16.c: Likewise.
2937         * config/tilegx/mul-tables.c: Likewise.
2938         * config/tilegx/tilegx-c.c: Likewise.
2939         * config/tilegx/tilegx.c: Likewise.
2940         * config/tilepro/mul-tables.c: Likewise.
2941         * config/tilepro/tilepro-c.c: Likewise.
2942         * config/tilepro/tilepro.c: Likewise.
2943         * config/v850/v850-c.c: Likewise.
2944         * config/v850/v850.c: Likewise.
2945         * config/vax/vax.c: Likewise.
2946         * config/visium/visium.c: Likewise.
2947         * config/vms/vms-c.c: Likewise.
2948         * config/vms/vms.c: Likewise.
2949         * config/vxworks.c: Likewise.
2950         * config/winnt-c.c: Likewise.
2951         * config/xtensa/xtensa.c: Likewise.
2952         * common/config/bfin/bfin-common.c: Likewise.
2954 2015-06-04  Jan Hubicka  <hubicka@ucw.cz>
2956         * tree.h (tree_code_for_canonical_type_merging): New function.
2957         * tree.c (gimple_canonical_types_compatible_p): Use
2958         tree_code_for_canonical_type_merging..
2960 2015-06-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2962         PR c++/66192
2963         PR target/66200
2964         * doc/tm.texi: Regenerate.
2965         * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
2966         * target.def (TARGET_RELAXED_ORDERING): Likewise.
2967         * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
2968         * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
2969         * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
2970         * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
2971         * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
2972         * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
2973         * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
2975 2015-06-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2977         * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
2978         register fma steering pass.
2979         * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
2980         AARCH64_TUNE_FMA_STEERING.
2982 2015-06-03  Jan Hubicka  <hubicka@ucw.cz>
2984         * tree.c (verify_type_variant): Verify that type and variant is
2985         compatible.
2986         (gimple_canonical_types_compatible_p): Look for main variants.
2988 2015-06-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
2990         * config.gcc (powerpc*-*-*): Add support for a new configure
2991         option --with-advance-toolchain=<xxx> which overrides using the
2992         default header files, libraries and dynamic linker.
2994         * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
2995         specs to support the configure --with-advance-toolchain=<xxx>
2996         option.
2997         (INCLUDE_EXTRA_SPEC): Likewise.
2998         (LINK_OS_EXTRA_SPEC32): Likewise.
2999         (LINK_OK_EXTRA_SPEC64): Likewise.
3000         (LINK_OS_NEW_DTAGS_SPEC): Likewise.
3001         (DYNAMIC_LINKER_PREFIX): Likewise.
3002         (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
3003         toolchain support.
3004         (GLIBC_DYNAMIC_LINKER32): Likewise.
3005         (GLIBC_DYNAMIC_LINKER64): Likewise.
3006         (LINK_OS_LINUX_SPEC32): Likewise.
3007         (LINK_OS_LINUX_SPEC64): Likewise.
3009         * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
3010         configuration option.
3012 2015-06-03  Uros Bizjak  <ubizjak@gmail.com>
3014         PR target/66275
3015         * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
3016         to determine current function ABI.
3017         (ix86_function_value_regno_p): Ditto.
3019 2015-06-03  Martin Liska  <mliska@suse.cz>
3021         * alloc-pool.h (struct pool_usage): Correct GNU coding style.
3022         * bitmap.h (struct bitmap_usage): Likewise.
3023         * ggc-common.c (struct ggc_usage): Likewise.
3024         * mem-stats.h (struct mem_location): Likewise.
3025         (struct mem_usage): Likewise.
3026         * vec.c (struct vec_usage): Likewise.
3028 2015-06-03  Benigno B. Junior  <bbj@gentoo.org>
3030         * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
3031         -Bsymbolic.
3033 2015-06-02  Andres Tiraboschi  <andres.tiraboschi@tallertechnologies.com>
3035         * doc/plugins.texi (enum plugin_event): New event.
3036         * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
3037         and PLUGIN_FINISH_FUNCTION.
3038         * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
3039         (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
3041 2015-06-03  Richard Biener  <rguenther@suse.de>
3043         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
3044         compute GROUP_GAP for the first element.
3045         * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
3046         on in-group gaps.
3048 2015-06-03  Nick Clifton  <nickc@redhat.com>
3050         * config/rl78/rl78-real.md: Add peepholes to avoid a register
3051         copy when calling a function.
3052         * config/rl78/rl78.c (need_to_save): Do not push the frame
3053         pointer in an interrupt handler prologue if it is never used.
3055 2015-06-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3057         * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
3059 2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
3061         * ipa-chkp.c (chkp_maybe_create_clone): Create alias
3062         reference when cloning alias node.
3064 2015-06-03  Martin Liska  <mliska@suse.cz>
3066         * alloc-pool.h (struct pool_usage): Correct space padding.
3067         * ggc-page.c (ggc_print_statistics): Align columns in a report.
3068         * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
3069         * tree.c (dump_tree_statistics): Align columns in a report.
3071 2015-06-03  Martin Liska  <mliska@suse.cz>
3073         * alloc-pool.c (allocate_pool_descriptor): Remove.
3074         (struct pool_output_info): Likewise.
3075         (print_alloc_pool_statistics): Likewise.
3076         (dump_alloc_pool_statistics): Likewise.
3077         * alloc-pool.h (struct pool_usage): New struct.
3078         (pool_allocator::initialize): Change usage of memory statistics
3079         to a new interface.
3080         (pool_allocator::release): Likewise.
3081         (pool_allocator::allocate): Likewise.
3082         (pool_allocator::remove): Likewise.
3083         * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
3084         for a pool allocator.
3085         * mem-stats.h (struct mem_location): Add new ctor.
3086         (struct mem_usage): Add counter for number of
3087         instances.
3088         (mem_alloc_description::register_descriptor): New overload of
3089         * mem-stats.h (mem_location::to_string): New function.
3090         * bitmap.h (struct bitmap_usage): Use this new function.
3091         * ggc-common.c (struct ggc_usage): Likewise.
3092         the function.
3094 2015-06-03  Richard Sandiford  <richard.sandiford@arm.com>
3096         * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
3097         of GCC_INSN_FLAGS_H block.
3099 2015-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
3101         * explow.c (plus_constant): Update check after force_const_mem call
3102         to see if the value returned is not a NULL_RTX.
3104 2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
3106         * ipa.c (symbol_table::remove_unreachable_nodes): Don't
3107         remove instumentation thunks calling reachable functions.
3108         * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
3109         * lto/lto-partition.c (privatize_symbol_name_1): New.
3110         (privatize_symbol_name): Privatize both decl and orig_decl
3111         names for instrumented functions.
3112         * cgraph.c (cgraph_node::verify_node): Add transparent
3113         alias chain check for instrumented node.
3115 2015-06-03  Marek Polacek  <polacek@redhat.com>
3117         PR c/64223
3118         PR c/29358
3119         * tree.c (attribute_value_equal): Handle attribute format.
3120         (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
3122 2015-06-03  Richard Biener  <rguenther@suse.de>
3124         PR tree-optimization/63916
3125         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
3126         Forward-propagate non-invariant addresses by splicing their
3127         reference ops if the result isn't going to be used by PRE.
3128         (vn_reference_lookup_3): Remove pointless assert.
3130 2015-06-03  Richard Biener  <rguenther@suse.de>
3132         PR tree-optimization/66375
3133         * tree-scalar-evolution.c (follow_ssa_edge_binary): First
3134         add to the evolution before following SSA edges.
3136 2015-06-03  Bin Cheng  <bin.cheng@arm.com>
3138         * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
3139         (dump_use, dump_cand, find_induction_variables): Pass new argument
3140         to dump_iv.
3141         (record_use): Preserve the ssa name information in IV.
3143 2015-06-03  Richard Sandiford  <richard.sandiford@arm.com>
3145         * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
3146         NO_MODE_TEST.
3147         (add_mode_tests): Don't add mode tests if the predicate only
3148         accepts scalar constant integers.  Otherwise, allow the mode
3149         of "op" to be VOIDmode if the predicate does accept such integers.
3151 2015-06-02  Jim Wilson  <jim.wilson@linaro.org>
3153         PR target/66258
3154         * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
3155         !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
3156         (aarch64_secondary_reload): Likewise
3157         (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
3158         to !TARGET_FLOAT.
3159         (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
3160         Likewise.
3162 2015-06-03  Kugan Vivekanandarajah  <kuganv@linaro.org>
3163             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
3165         PR target/65768
3166         * cprop.c (try_replace_reg): Check cost of constants before propagating.
3168 2015-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
3170         * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
3171         provide access to the IBM extended double floating point mode if
3172         long double is IEEE 128-bit floating point.
3173         (KFmode): Define KFmode to provide access to IEEE 128-bit floating
3174         point if long double is the IBM extended double type.
3176         * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
3177         enable adding IEEE 128-bit floating point support.
3178         (-mfloat128-software): Likewise.
3179         (-mfloat128-sw): Likewise.
3181         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
3182         128-bit floating point types to occupy any register if
3183         -mlong-double-64.  Do not allow use of IFmode/KFmode unless
3184         -mfloat128-software is enabled.
3185         (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
3186         support.
3187         (rs6000_option_override_internal): Add -mfloat128-* support.
3188         (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
3190         * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
3191         and float128 type nodes.
3192         (ieee128_float_type_node): Likewise.
3193         (ibm128_float_type_node): Likewise.
3195 2015-06-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3197         PR target/66136
3198         * config/aarch64/geniterators.sh: Rewrite in awk.
3200 2015-06-02  Martin Liska  <mliska@suse.cz>
3202         * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
3203         values to avoid -Wmaybe-uninitialized errors.
3205 2015-06-02  Richard Biener  <rguenther@suse.de>
3207         PR debug/65549
3208         * dwarf2out.c (lookup_context_die): New function.
3209         (resolve_addr): Avoid forcing a full DIE for the
3210         target of a DW_TAG_GNU_call_site during late compilation.
3211         Instead create a stub DIE without a type if we have a
3212         context DIE present.
3214 2015-06-02  Uros Bizjak  <ubizjak@gmail.com>
3216         * df-scan.c (df_scan_start_dump): Add space between regno and regname.
3218 2015-06-02  Bin Cheng  <bin.cheng@arm.com>
3220         PR tree-optimization/48052
3221         * cfgloop.h (struct control_iv): New.
3222         (struct loop): New field control_ivs.
3223         * tree-ssa-loop-niter.c : Include "stor-layout.h".
3224         (number_of_iterations_lt): Set no_overflow information.
3225         (number_of_iterations_exit): Init control iv in niter struct.
3226         (record_control_iv): New.
3227         (estimate_numbers_of_iterations_loop): Call record_control_iv.
3228         (loop_exits_before_overflow): New.  Interface factored out of
3229         scev_probably_wraps_p.
3230         (scev_probably_wraps_p): Factor loop niter related code into
3231         loop_exits_before_overflow.
3232         (free_numbers_of_iterations_estimates_loop): Free control ivs.
3233         * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
3235 2015-06-02  Eric Botcazou  <ebotcazou@adacore.com>
3237         * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
3238         the target doesn't belong to the current function.
3240 2015-06-02  Marek Polacek  <polacek@redhat.com>
3242         PR middle-end/66345
3243         * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
3244         get_maxval_strlen does not produce an INTEGER_CST.
3246 2015-06-02  Richard Sandiford  <richard.sandiford@arm.com>
3248         * config/arc/constraints.md: Use lower-case names in match_code.
3249         * config/mmix/constraints.md: Likewise.
3251 2015-06-02  Richard Biener  <rguenther@suse.de>
3253         PR tree-optimization/65961
3254         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
3255         check and clarify dump message.
3256         (vect_build_slp_tree): If all children are built up from scalars
3257         build up the parent from scalars instead.
3258         * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
3260 2015-06-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3262         PR other/65366
3263         * gdbhooks.py: Use int(...) instead of long(...).  Use print(...)
3264         instead of print ... .
3266 2015-06-02  Alan Modra  <amodra@gmail.com>
3268         * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
3269         2014-08-11 change.
3271 2015-06-02  Bin Cheng  <bin.cheng@arm.com>
3273         PR tree-optimization/52563
3274         PR tree-optimization/62173
3275         * tree-ssa-loop-ivopts.c (struct iv): New field.  Reorder fields.
3276         (alloc_iv, set_iv): New parameter.
3277         (determine_biv_step): Delete.
3278         (find_bivs): Inline original determine_biv_step.  Pass new
3279         argument to set_iv.
3280         (idx_find_step): Use no_overflow information for conversion.
3281         * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
3282         resolve_mixers handle folded_casts.
3283         (instantiate_scev_name): Change bool parameter to bool pointer.
3284         (instantiate_scev_poly, instantiate_scev_binary): Ditto.
3285         (instantiate_array_ref, instantiate_scev_not): Ditto.
3286         (instantiate_scev_3, instantiate_scev_2): Ditto.
3287         (instantiate_scev_1, instantiate_scev_r): Ditto.
3288         (instantiate_scev_convert, ): Change parameter.  Pass argument
3289         to chrec_convert_aggressive.
3290         (instantiate_scev): Change argument.
3291         (resolve_mixers): New parameter and set it.
3292         (scev_const_prop): New argument.
3293         * tree-scalar-evolution.h (resolve_mixers): New parameter.
3294         * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
3295         of chrec_conert_1.
3296         (chrec_convert): New parameter.  Move definition below.
3297         (chrec_convert_aggressive): New parameter and set it.  Call
3298         convert_affine_scev.
3299         * tree-chrec.h (chrec_convert): New parameter.
3300         (chrec_convert_aggressive): Ditto.
3302 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
3304         * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
3305         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
3306         the LHS of a no-return call if its type has variable size.
3307         * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
3308         * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
3310 2015-06-01  Andreas Tobler  <andreast@gcc.gnu.org>
3312         * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
3313         * config.in: Regenerate.
3315 2015-06-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
3317         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
3318         consecutive accesses within outer-loop with force_vectorize
3319         for references with zero step in inner-loop.
3321 2015-06-01  Vidya Praveen  <vidyapraveen@arm.com>
3323         * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
3324         rather than from gcc/build directory.
3326 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
3328         PR target/65697
3329         * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
3330         for __sync memory models, emit initial loads and final barriers as
3331         appropriate.
3333 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
3335         PR target/65697
3336         * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
3337         (aarch64_split_atomic_op): Check for __sync memory models, emit
3338         appropriate initial loads and final barriers.
3340 2015-06-01  Vidya Praveen  <vidyapraveen@arm.com>
3342         * Makefile.in: Fix gcov dependencies that should
3343         not point to a build folder.
3345 2015-06-01  Richard Biener  <rguenther@suse.de>
3347         Revert
3348         2015-05-29  Richard Biener  <rguenther@suse.de>
3350         PR tree-optimization/66314
3351         * tree-ssa-threadupdate.c (create_block_for_threading): Add
3352         parameter that says which loop the new block belongs to.
3353         (ssa_create_duplicates): Blocks duplicated for the threaded
3354         path belong to the loop of the thread destination.
3356 2015-06-01  Martin Liska  <mliska@suse.cz>
3358         * sched-deps.c: Include pool-alloc.h before
3359         cselib.h header file is included.
3361 2015-06-01  Richard Biener  <rguenther@suse.de>
3363         * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
3364         functions.
3366 2015-06-01  Martin Liska  <mliska@suse.cz>
3368         * alloc-pool.h: Add ATTRIBUTE_UNUSED for
3369         a function local variable.
3371 2015-06-01  Martin Liska  <mliska@suse.cz>
3373         * alloc-pool.c (create_alloc_pool): Remove.
3374         (empty_alloc_pool): Likewise.
3375         (free_alloc_pool): Likewise.
3376         (free_alloc_pool_if_empty): Likewise.
3377         (pool_alloc): Likewise.
3378         (pool_free): Likewise.
3379         * alloc-pool.h: Remove old declarations.
3381 2015-06-01  Martin Liska  <mliska@suse.cz>
3383         * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
3384         (ira_create_object): Likewise.
3385         (ira_create_allocno): Likewise.
3386         (ira_create_live_range): Likewise.
3387         (copy_live_range): Likewise.
3388         (ira_finish_live_range): Likewise.
3389         (ira_free_allocno_costs): Likewise.
3390         (finish_allocno): Likewise.
3391         (finish_allocnos): Likewise.
3392         (initiate_prefs): Likewise.
3393         (ira_create_pref): Likewise.
3394         (finish_pref): Likewise.
3395         (finish_prefs): Likewise.
3396         (initiate_copies): Likewise.
3397         (ira_create_copy): Likewise.
3398         (finish_copy): Likewise.
3399         (finish_copies): Likewise.
3400         (finish_prefs): Likewise.
3402 2015-06-01  Martin Liska  <mliska@suse.cz>
3404         * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
3405         (allocate_and_init_ipcp_value): Likewise.
3406         (ipcp_lattice::add_value): Likewise.
3407         (merge_agg_lats_step): Likewise.
3408         (ipcp_driver): Likewise.
3409         * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
3410         (ipa_free_all_structures_after_iinln): Likewise.
3411         * ipa-prop.h: Likewise.
3413 2015-06-01  Martin Liska  <mliska@suse.cz>
3415         * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
3416         pool allocator.
3417         (set_hint_predicate): Likewise.
3418         (inline_summary_alloc): Likewise.
3419         (reset_inline_edge_summary): Likewise.
3420         (reset_inline_summary): Likewise.
3421         (set_cond_stmt_execution_predicate): Likewise.
3422         (set_switch_stmt_execution_predicate): Likewise.
3423         (compute_bb_predicates): Likewise.
3424         (estimate_function_body_sizes): Likewise.
3425         (inline_free_summary): Likewise.
3427 2015-06-01  Martin Liska  <mliska@suse.cz>
3429         * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
3430         (ipa_edge_duplication_hook): Likewise.
3431         (ipa_free_all_structures_after_ipa_cp): Likewise.
3432         (ipa_free_all_structures_after_iinln): Likewise.
3434 2015-06-01  Martin Liska  <mliska@suse.cz>
3436         * ipa-profile.c (account_time_size): Use new type-based pool allocator.
3437         (ipa_profile_generate_summary): Likewise.
3438         (ipa_profile_read_summary): Likewise.
3439         (ipa_profile): Likewise.
3441 2015-06-01  Martin Liska  <mliska@suse.cz>
3443         * tree-ssa-structalias.c (new_var_info): Use new type-based
3444         pool allocator.
3445         (new_constraint): Likewise.
3446         (init_alias_vars): Likewise.
3447         (delete_points_to_sets): Likewise.
3449 2015-06-01  Martin Liska  <mliska@suse.cz>
3451         * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
3452         (free_strinfo): Likewise.
3453         (pass_strlen::execute): Likewise.
3455 2015-06-01  Martin Liska  <mliska@suse.cz>
3457         * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
3458         pool allocator.
3459         (vn_reference_insert_pieces): Likewise.
3460         (vn_phi_insert): Likewise.
3461         (visit_reference_op_call): Likewise.
3462         (copy_phi): Likewise.
3463         (copy_reference): Likewise.
3464         (process_scc): Likewise.
3465         (allocate_vn_table): Likewise.
3466         (free_vn_table): Likewise.
3468 2015-06-01  Martin Liska  <mliska@suse.cz>
3470         * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
3471         pool allocator.
3472         (add_repeat_to_ops_vec): Likewise.
3473         (get_ops): Likewise.
3474         (maybe_optimize_range_tests): Likewise.
3475         (init_reassoc): Likewise.
3476         (fini_reassoc): Likewise.
3478 2015-06-01  Martin Liska  <mliska@suse.cz>
3480         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
3481         pool allocator.
3482         (bitmap_set_new): Likewise.
3483         (get_or_alloc_expr_for_constant): Likewise.
3484         (get_or_alloc_expr_for): Likewise.
3485         (phi_translate_1): Likewise.
3486         (compute_avail): Likewise.
3487         (init_pre): Likewise.
3488         (fini_pre): Likewise.
3490 2015-06-01  Martin Liska  <mliska@suse.cz>
3492         * sched-deps.c (create_dep_node): Use new type-based pool allocator.
3493         (delete_dep_node): Likewise.
3494         (create_deps_list): Likewise.
3495         (free_deps_list): Likewise.
3496         (sched_deps_init): Likewise.
3497         (sched_deps_finish): Likewise.
3499 2015-06-01  Martin Liska  <mliska@suse.cz>
3501         * regcprop.c (free_debug_insn_changes): Use new type-based
3502         pool allocator.
3503         (replace_oldest_value_reg): Likewise.
3504         (pass_cprop_hardreg::execute): Likewise.
3506 2015-06-01  Martin Liska  <mliska@suse.cz>
3508         * ira-build.c (initiate_cost_vectors): Use new type-based
3509         pool allocator.
3510         (ira_allocate_cost_vector): Likewise.
3511         (ira_free_cost_vector): Likewise.
3512         (finish_cost_vectors): Likewise.
3514 2015-06-01  Martin Liska  <mliska@suse.cz>
3516         * sel-sched-ir.c (alloc_sched_pools): Use new type-based
3517         pool allocator.
3518         (free_sched_pools): Likewise.
3519         * sel-sched-ir.h (_list_alloc): Likewise.
3520         (_list_remove): Likewise.
3522 2015-06-01  Martin Liska  <mliska@suse.cz>
3524         * stmt.c (add_case_node): Use new type-based pool allocator.
3525         (expand_case): Likewise.
3526         (expand_sjlj_dispatch_table): Likewise.
3528 2015-06-01  Martin Liska  <mliska@suse.cz>
3530         * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
3531         (free_bb): Likewise.
3532         (pass_cse_reciprocals::execute): Likewise.
3534 2015-06-01  Martin Liska  <mliska@suse.cz>
3536         * tree-sra.c (sra_initialize): Use new type-based pool allocator.
3537         (sra_deinitialize) Likewise.
3538         (create_access_1) Likewise.
3539         (build_accesses_from_assign) Likewise.
3540         (create_artificial_child_access) Likewise.
3542 2015-06-01  Martin Liska  <mliska@suse.cz>
3544         * dse.c (get_group_info):Use new type-based pool allocator.
3545         (dse_step0) Likewise.
3546         (free_store_info) Likewise.
3547         (delete_dead_store_insn) Likewise.
3548         (free_read_records) Likewise.
3549         (record_store) Likewise.
3550         (replace_read) Likewise.
3551         (check_mem_read_rtx) Likewise.
3552         (scan_insn) Likewise.
3553         (dse_step1) Likewise.
3554         (dse_step7) Likewise.
3556 2015-06-01  Martin Liska  <mliska@suse.cz>
3558         * df-scan.c (struct df_scan_problem_data):Use new type-based
3559         pool allocator.
3560         (df_scan_free_internal) Likewise.
3561         (df_scan_alloc) Likewise.
3562         (df_grow_reg_info) Likewise.
3563         (df_free_ref) Likewise.
3564         (df_insn_create_insn_record) Likewise.
3565         (df_mw_hardreg_chain_delete) Likewise.
3566         (df_insn_info_delete) Likewise.
3567         (df_free_collection_rec) Likewise.
3568         (df_mw_hardreg_chain_delete_eq_uses) Likewise.
3569         (df_sort_and_compress_mws) Likewise.
3570         (df_ref_create_structure) Likewise.
3571         (df_ref_record) Likewise.
3573 2015-06-01  Martin Liska  <mliska@suse.cz>
3575         * df-problems.c (df_chain_create):Use new type-based pool allocator.
3576         (df_chain_unlink_1) Likewise.
3577         (df_chain_unlink) Likewise.
3578         (df_chain_remove_problem) Likewise.
3579         (df_chain_alloc) Likewise.
3580         (df_chain_free) Likewise.
3581         * df.h (struct dataflow) Likewise.
3583 2015-06-01  Martin Liska  <mliska@suse.cz>
3585         * cselib.c (new_elt_list):Use new type-based pool allocator.
3586         (new_elt_loc_list) Likewise.
3587         (unchain_one_elt_list) Likewise.
3588         (unchain_one_elt_loc_list) Likewise.
3589         (unchain_one_value) Likewise.
3590         (new_cselib_val) Likewise.
3591         (cselib_init) Likewise.
3592         (cselib_finish) Likewise.
3594 2015-06-01  Martin Liska  <mliska@suse.cz>
3596         * config/sh/sh.c (add_constant):Use new type-based pool allocator.
3597         (sh_reorg) Likewise.
3599 2015-06-01  Martin Liska  <mliska@suse.cz>
3601         * cfg.c (initialize_original_copy_tables):Use new type-based
3602         pool allocator.
3603         (free_original_copy_tables) Likewise.
3604         (copy_original_table_clear) Likewise.
3605         (copy_original_table_set) Likewise.
3607 2015-06-01  Martin Liska  <mliska@suse.cz>
3609         * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
3610         pool allocator.
3611         (asan_mem_ref_new) Likewise.
3612         (free_mem_ref_resources) Likewise.
3614 2015-06-01  Martin Liska  <mliska@suse.cz>
3616         * var-tracking.c (variable_htab_free):Use new type-based
3617         pool allocator.
3618         (attrs_list_clear) Likewise.
3619         (attrs_list_insert) Likewise.
3620         (attrs_list_copy) Likewise.
3621         (shared_hash_unshare) Likewise.
3622         (shared_hash_destroy) Likewise.
3623         (unshare_variable) Likewise.
3624         (var_reg_delete_and_set) Likewise.
3625         (var_reg_delete) Likewise.
3626         (var_regno_delete) Likewise.
3627         (drop_overlapping_mem_locs) Likewise.
3628         (variable_union) Likewise.
3629         (insert_into_intersection) Likewise.
3630         (canonicalize_values_star) Likewise.
3631         (variable_merge_over_cur) Likewise.
3632         (dataflow_set_merge) Likewise.
3633         (remove_duplicate_values) Likewise.
3634         (variable_post_merge_new_vals) Likewise.
3635         (dataflow_set_preserve_mem_locs) Likewise.
3636         (dataflow_set_remove_mem_locs) Likewise.
3637         (variable_from_dropped) Likewise.
3638         (variable_was_changed) Likewise.
3639         (set_slot_part) Likewise.
3640         (clobber_slot_part) Likewise.
3641         (delete_slot_part) Likewise.
3642         (loc_exp_insert_dep) Likewise.
3643         (notify_dependents_of_changed_value) Likewise.
3644         (emit_notes_for_differences_1) Likewise.
3645         (vt_emit_notes) Likewise.
3646         (vt_initialize) Likewise.
3647         (vt_finalize) Likewise.
3649 2015-06-01  Martin Liska  <mliska@suse.cz>
3651         * ira-color.c (init_update_cost_records):Use new type-based
3652         pool allocator.
3653         (get_update_cost_record) Likewise.
3654         (free_update_cost_record_list) Likewise.
3655         (finish_update_cost_records) Likewise.
3656         (initiate_cost_update) Likewise.
3658 2015-06-01  Martin Liska  <mliska@suse.cz>
3660         * lra.c (init_insn_regs): Use new type-based pool allocator.
3661         (new_insn_reg) Likewise.
3662         (free_insn_reg) Likewise.
3663         (free_insn_regs) Likewise.
3664         (finish_insn_regs) Likewise.
3665         (init_insn_recog_data) Likewise.
3666         (init_reg_info) Likewise.
3667         (finish_reg_info) Likewise.
3668         (lra_free_copies) Likewise.
3669         (lra_create_copy) Likewise.
3670         (invalidate_insn_data_regno_info) Likewise.
3672 2015-06-01  Martin Liska  <mliska@suse.cz>
3674         * lra-lives.c (free_live_range): Use new type-based pool allocator.
3675         (free_live_range_list) Likewise.
3676         (create_live_range) Likewise.
3677         (copy_live_range) Likewise.
3678         (lra_merge_live_ranges) Likewise.
3679         (remove_some_program_points_and_update_live_ranges) Likewise.
3680         (lra_live_ranges_init) Likewise.
3681         (lra_live_ranges_finish) Likewise.
3683 2015-06-01  Martin Liska  <mliska@suse.cz>
3685         * et-forest.c (et_new_occ): Use new type-based pool allocator.
3686         (et_new_tree): Likewise.
3687         (et_free_tree): Likewise.
3688         (et_free_tree_force): Likewise.
3689         (et_free_pools): Likewise.
3690         (et_split): Likewise.
3692 2015-06-01  Martin Liska  <mliska@suse.cz>
3694         * alloc-pool.c (struct alloc_pool_descriptor): Move definition
3695         to header file.
3696         * alloc-pool.h (pool_allocator::pool_allocator): New function.
3697         (pool_allocator::release): Likewise.
3698         (inline pool_allocator::release_if_empty): Likewise.
3699         (inline pool_allocator::~pool_allocator): Likewise.
3700         (pool_allocator::allocate): Likewise.
3701         (pool_allocator::remove): Likewise.
3703 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
3705         * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
3706         in comment.
3708 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
3710         * gcc/config/arm/arm-protos.h (tune_params): Rename fuseable_ops
3711         to fusible_ops.
3712         * gcc/config/arm/arm.c (arm_print_tune_info): Likewise.
3713         (arm_macro_fusion_p): Likewise.
3714         (arm_macro_fusion_pair_p): Likewise.
3716 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
3718         * config/aarch64/aarch64-protos.h (tune_params): Rename
3719         fuseable_ops to fusible_ops.
3720         * config/aarch64/aarch64.c (generic_tunings): Rename
3721         fuseable_ops to fusible_ops.
3722         (cortexa53_tunings): Likewise.
3723         (cortexa57_tunings): Likewise.
3724         (thunderx_tunings): Likewise.
3725         (xgene1_tunings): Likewise.
3726         (aarch64_macro_fusion_p): Likewise.
3727         (aarch64_macro_fusion_pair_p): Likewise.
3729 2015-06-01  Dominik Vogt  <vogt@linux.vnet.ibm.com>
3731         * config/s390/driver-native.c: New file.
3732         * config/s390/x-native: New file.
3733         * config.host: Add new files for s390.
3734         * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
3735         and -march=native
3736         * config.gcc: Likewise.
3737         * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
3738         * config/s390/s390-opts.h (enum processor_type): Ditto.
3739         * config/s390/s390.c (s390_option_override): Catch unhandled
3740         PROCESSOR_NATIVE
3742 2015-06-01  Ilya Enkovich  <ilya.enkovich@intel.com>
3744         PR target/65527
3745         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
3746         redirection for instrumented calls.
3747         * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
3748         (append_compiler_options): Append -fcheck-pointer-bounds.
3749         * tree-chkp.h (chkp_copy_call_skip_bounds): New.
3750         (chkp_redirect_edge): New.
3751         * tree-chkp.c (chkp_copy_call_skip_bounds): New.
3752         (chkp_redirect_edge): New.
3754 2015-06-01  Richard Biener  <rguenther@suse.de>
3756         PR tree-optimization/66280
3757         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
3758         def-use walking.
3760 2015-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3762         * config/aarch64/aarch64.md
3763         (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
3764         logic_shift_imm.
3766 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
3768         * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
3769         Remove obsolete kludge.
3771 2015-06-01  Richard Biener  <rguenther@suse.de>
3773         * tree-ssa-reassoc.c (get_rank): Simplify.
3775 2015-05-31  H.J. Lu  <hongjiu.lu@intel.com>
3777         * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
3778         * configure: Regenerated.
3780 2015-05-31  Mikhail Maltsev  <maltsevm@gmail.com>
3782         * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
3783         issue (add space between string literal and macro).
3784         * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
3786 2015-05-30  Andreas Schwab  <schwab@linux-m68k.org>
3788         * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
3789         implict or explicit -fPIE or -fpie.
3791 2015-05-30  Mike Frysinger  <vapier@gentoo.org>
3793         * gcc/config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
3795 2015-05-28  DJ Delorie  <dj@redhat.com>
3797         * expmed.c (extract_bit_field_1): Avoid clobbering a
3798         yet-to-be-used base/index register.
3800 2015-05-30  Jan Hubicka  <hubicka@ucw.cz>
3802         * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
3803         (alias_stats): Add num_universal.
3804         (alias_set_subset_of): Special case pointers; be ready for NULL
3805         children.
3806         (alias_sets_conflict_p): Special case pointers; be ready for NULL
3807         children.
3808         (init_alias_set_entry): Break out from ...
3809         (record_alias_subset): ... here; propagate new fields;
3810         allocate children only when really needed.
3811         (get_alias_set): Do less generous pointer globbing.
3812         (dump_alias_stats_in_alias_c): Update statistics.
3814 2015-05-30  Alan Modra  <amodra@gmail.com>
3816         * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
3817         correct block for use of r12.
3818         (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
3820 2015-05-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
3822         PR target/66215
3823         * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
3824         with -mhotpatch=.
3826 2015-05-29  Jakub Jelinek  <jakub@redhat.com>
3828         PR tree-optimization/66142
3829         * tree-if-conv.c (if_convertible_phi_p): Don't give up on
3830         virtual phis that feed themselves.
3832 2015-05-29  Richard Biener  <rguenther@suse.de>
3834         PR tree-optimization/66314
3835         * tree-ssa-threadupdate.c (create_block_for_threading): Add
3836         parameter that says which loop the new block belongs to.
3837         (ssa_create_duplicates): Blocks duplicated for the threaded
3838         path belong to the loop of the thread destination.
3840 2015-05-29  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
3842         * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
3843         to cleanup-saved-temps.
3844         * doc/sourcebuild.texi (Clean up generated test files): Expand
3845         introduction.
3846         (dg-keep-saved-temps): Document new proc.
3847         (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
3848         cleanup-saved-temps): Remove.
3850 2015-05-28  Andreas Tobler  <andreast@gcc.gnu.org>
3852         * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
3853         gcc_AC_CHECK_DECLS.
3854         * configure: Regenerate.
3856 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
3858         * config/nios2/linux.h (CPP_SPEC): Define.
3860 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
3862         * config/microblaze/linux.h (CPP_SPEC): Define.
3864 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
3866         * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
3867         -pthread is specified.
3869 2015-05-28  Richard Biener  <rguenther@suse.de>
3871         * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
3872         (vect_fixup_scalar_cycles_with_patterns): Likewise.
3873         (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
3874         after pattern recog.
3875         (vect_create_epilog_for_reduction): Properly handle reductions
3876         with patterns.
3877         (vectorizable_reduction): Likewise.
3878         * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
3879         reduction chains.
3880         (vect_get_constant_vectors): Create the correct number of
3881         initial values for reductions.
3882         (vect_schedule_slp_instance): Handle reduction chains that are
3883         type changing properly.
3884         * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
3886 2015-05-28  Richard Biener  <rguenther@suse.de>
3888         PR tree-optimization/66142
3889         * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
3890         values better in memcpy destination handling.  Handle non-aliasing
3891         we discover here.
3893 2015-05-28  Lawrence Velázquez  <vq@larryv.me>
3895         PR target/63810
3896         * config/darwin-c.c (version_components): New global enum.
3897         (parse_version, version_as_legacy_macro)
3898         (version_as_modern_macro, macosx_version_as_macro): New functions.
3899         (version_as_macro): Remove.
3900         (darwin_cpp_builtins): Use new function.
3902 2015-05-28  H.J. Lu  <hongjiu.lu@intel.com>
3904         * builtins.c (expand_builtin_acc_on_device): Mark parameters
3905         with ATTRIBUTE_UNUSED.
3907 2015-05-28  Julian Brown  <julian@codesourcery.com>
3909         PR libgomp/65742
3911         * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
3912         sequence for !ACCEL_COMPILER.
3914 2015-05-28  Nick Clifton  <nickc@redhat.com>
3916         * config/rx/rx.c (push_regs): New function.  Extracts code from...
3917         (rx_expand_prologue): ... here.  Use push_regs to push even small
3918         spans of registers.
3919         (pop_regs): New function.
3920         (rx_expand_epilogue):  Use pop_regs to pop even small spans of
3921         registers.
3923 2015-05-28  Richard Biener  <rguenther@suse.de>
3925         * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
3926         member.
3927         (SLP_INSTANCE_BODY_COST_VEC): Remove.
3928         (vect_update_slp_costs_according_to_vf): Likewise.
3929         (vect_slp_analyze_operations): Update prototype.
3930         * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
3931         vect_update_slp_costs_according_to_vf, adjust.
3932         * tree-vect-slp.c (vect_free_slp_instance): Adjust.
3933         (vect_analyze_slp_cost_1): Likewise.
3934         (vect_analyze_slp_cost): Likewise.  Properly deal with
3935         widening reduction ops.  Commit body costs.
3936         (vect_analyze_slp_instance): Adjust.  Do not analyze SLP
3937         cost for loops from here.
3938         (vect_slp_analyze_operations): But do it from here when
3939         the vectorization factor is known and stmts are analyzed.
3940         (vect_bb_vectorization_profitable_p): Simplify.
3941         (vect_slp_analyze_bb_1): Do not compute SLP cost here.
3942         (vect_update_slp_costs_according_to_vf): Remove.
3944 2015-05-27  Magnus Granberg  <zorry@gentoo.org>
3945             H.J. Lu  <hongjiu.lu@intel.com>
3947         * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
3948         (BUILD_CFLAGS): Likewise.
3949         (BUILD_CXXFLAGS): Likewise.
3950         (LINKER): Add @NO_PIE_FLAG@.
3951         (BUILD_LDFLAGS): Likewise.
3952         (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
3953         --enable-default-pie.
3954         * common.opt (fPIE): Initialize to -1.
3955         (fpie): Likewise.
3956         (no-pie): New option.
3957         (pie): Replace "Negative(shared)" with "Negative(no-pie)".
3958         * configure.ac: Add --enable-default-pie.
3959         (NO_PIE_CFLAGS): New.  Check if -fno-PIE works.  AC_SUBST.
3960         (NO_PIE_FLAG): New.  Check if -no-pie works.  AC_SUBST.
3961         * defaults.h (DEFAULT_FLAG_PIE): New.  Default PIE to -fPIE.
3962         * gcc.c (NO_PIE_SPEC): New.
3963         (PIE_SPEC): Likewise.
3964         (NO_FPIE1_SPEC): Likewise.
3965         (FPIE1_SPEC): Likewise.
3966         (NO_FPIE2_SPEC): Likewise.
3967         (FPIE2_SPEC): Likewise.
3968         (NO_FPIE2_SPEC): Likewise.
3969         (FPIE_SPEC): Likewise.
3970         (NO_FPIE_SPEC): Likewise.
3971         (NO_FPIC1_SPEC): Likewise.
3972         (FPIC1_SPEC): Likewise.
3973         (NO_FPIC2_SPEC): Likewise.
3974         (FPIC2_SPEC): Likewise.
3975         (NO_FPIC2_SPEC): Likewise.
3976         (FPIC_SPEC): Likewise.
3977         (NO_FPIC_SPEC): Likewise.
3978         (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
3979         (FPIE1_OR_FPIC1_SPEC): Likewise.
3980         (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
3981         (FPIE2_OR_FPIC2_SPEC): Likewise.
3982         (NO_FPIE_AND_FPIC_SPEC): Likewise.
3983         (FPIE_OR_FPIC_SPEC): Likewise.
3984         (LD_PIE_SPEC): Likewise.
3985         (LINK_PIE_SPEC): Handle -no-pie.  Use PIE_SPEC and LD_PIE_SPEC.
3986         * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
3987         * config/darwin.h (PIE_SPEC): Renamed to ...
3988         (DARWIN_PIE_SPEC): This.
3989         (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
3990         * config/darwin9.h (PIE_SPEC): Renamed to ...
3991         (DARWIN_PIE_SPEC): This.
3992         * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
3993         PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
3994         * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
3995         FPIE2_OR_FPIC2_SPEC.
3996         * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
3997         * config/m68k/openbsd.h (ASM_SPEC): Likewise.
3998         * gcc/config/sol2.h (ASM_PIC_SPEC): Likewise.
3999         * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
4000         * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
4001         * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
4002         * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
4003         * config/m32r/m32r.h (ASM_SPEC): Likewise.
4004         * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
4005         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
4006         * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
4007         * config/sparc/freebsd.h (ASM_SPEC): Likewise.
4008         * config/sparc/linux.h (ASM_SPEC): Likewise.
4009         * config/sparc/linux64.h (ASM_SPEC): Likewise.
4010         * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
4011         * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
4012         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
4013         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
4014         * config/sparc/sparc.h (ASM_SPEC): Likewise.
4015         * config/sparc/sysv4.h (ASM_SPEC): Likewise.
4016         * config/sparc/vxworks.h (ASM_SPEC): Likewise.
4017         * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
4018         FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
4019         * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
4020         * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
4021         NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
4022         (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
4023         * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
4024         * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
4025         * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
4026         * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
4027         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
4028         * config/vax/linux.h (ASM_SPEC): Likewise.
4029         * doc/install.texi: Document --enable-default-pie.
4030         * doc/invoke.texi: Document -no-pie.
4031         * config.in: Regenerated.
4032         * configure: Likewise.
4034 2015-05-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
4036         PR rtl-optimization/66168
4037         * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
4038         can_move_invariant_reg.
4040 2015-05-27  John David Anglin  <danglin@gcc.gnu.org>
4042         PR target/66148
4043         * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
4044         REG_EQUAL note when doing insert.
4046         * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
4047         instead of "%d" for 'o' operand.
4049 2015-05-27  Nathan Sidwell  <nathan@acm.org>
4051         PR c++/66270
4052         * tree.c (build_pointer_type_for_mode): Canonical type does not
4053         inherit can_alias_all.
4054         (build_reference_type_for_mode): Likewise.
4056 2015-05-27  Eric Botcazou  <ebotcazou@adacore.com>
4058         * expr.h (array_at_struct_end_p): Move to...
4059         (array_ref_element_size): Likewise.
4060         (component_ref_field_offset): Likewise.
4061         * tree.h (array_ref_element_size): ...here.
4062         (array_at_struct_end_p): Likewise.
4063         (component_ref_field_offset): Likewise.
4064         * expr.c (array_ref_element_size): Move to...
4065         (array_ref_low_bound): Likewise.
4066         (array_at_struct_end_p): Likewise.
4067         (array_ref_up_bound): Likewise.
4068         (component_ref_field_offset): Likewise.
4069         * tree.c (array_ref_element_size): ...here.
4070         (array_ref_low_bound): Likewise.
4071         (array_ref_up_bound): Likewise.
4072         (array_at_struct_end_p): Likewise.
4073         (component_ref_field_offset): Likewise.
4075 2015-05-27  Gregor Richards  <gregor.richards@uwaterloo.ca>
4076             Szabolcs Nagy  <szabolcs.nagy@arm.com>
4078         * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
4080 2015-05-27  Jason Merrill  <jason@redhat.com>
4082         PR bootstrap/66304
4083         * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
4084         ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
4085         ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
4087 2015-05-22  Aditya Kumar  <hiraditya@msn.com>
4089         * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
4090         is true.
4092         * statistics.c (statistics_fini_pass): Print pass name.
4094 2015-05-27  Richard Biener  <rguenther@suse.de>
4096         PR tree-optimization/66272
4097         Revert parts of
4098         2014-08-15  Richard Biener  <rguenther@suse.de>
4100         PR tree-optimization/62031
4101         * tree-data-ref.c (dr_analyze_indices): Do not set
4102         DR_UNCONSTRAINED_BASE.
4103         (dr_may_alias_p): All indirect accesses have to go the
4104         formerly DR_UNCONSTRAINED_BASE path.
4105         * tree-data-ref.h (struct indices): Remove
4106         unconstrained_base member.
4107         (DR_UNCONSTRAINED_BASE): Remove.
4109 2015-05-27  Aldy Hernandez  <aldyh@redhat.com>
4111         * dwarf2out.c: Remove block_map.
4112         (gen_call_site_die): Replace block_map use with BLOCK_DIE.
4113         (gen_lexical_block_die): Same.
4114         (dwarf2out_function_decl): Remove block_map use.
4115         (dwarf2out_c_finalize): Same.
4116         * tree-core.h (struct tree_block): Add die field.
4117         * tree.h (BLOCK_DIE): New.
4119 2015-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4121         PR target/65358
4122         * expr.c (memory_load_overlap): New function.
4123         (emit_push_insn): When pushing partial args to the stack would
4124         clobber the register part load the overlapping part into a pseudo
4125         and put it into the hard reg after pushing.  Change return type
4126         to bool.  Add bool argument.
4127         * expr.h (emit_push_insn): Change return type to bool.
4128         Add bool argument.
4129         * calls.c (expand_call): Cancel sibcall optimization when encountering
4130         partial argument on targets with ARGS_GROW_DOWNWARD and
4131         !STACK_GROWS_DOWNWARD.
4132         (emit_library_call_value_1): Update callsite of emit_push_insn.
4133         (store_one_arg): Likewise.
4135 2015-05-27  Gregor Richards  <gregor.richards@uwaterloo.ca>
4137         * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
4139 2015-05-27  Martin Liska  <mliska@suse.cz>
4141         * Makefile.in: Add additional dependencies related to memory report
4142         enhancement.
4143         * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
4144         * bitmap.c (struct bitmap_descriptor_d): Remove.
4145         (struct loc): Likewise.
4146         (struct bitmap_desc_hasher): Likewise.
4147         (bitmap_desc_hasher::hash): Likewise.
4148         (bitmap_desc_hasher::equal): Likewise.
4149         (get_bitmap_descriptor): Likewise.
4150         (bitmap_register): User new memory descriptor API.
4151         (register_overhead): Likewise.
4152         (bitmap_find_bit): Register nsearches and search_iter statistics.
4153         (struct bitmap_output_info): Remove.
4154         (print_statistics): Likewise.
4155         (dump_bitmap_statistics): Use new memory descriptor.
4156         * bitmap.h (struct bitmap_usage): New class.
4157         * genmatch.c: Extend header file inclusion.
4158         * genpreds.c: Likewise.
4159         * ggc-common.c (struct ggc_usage): New class.
4160         (struct ggc_loc_desc_hasher): Remove.
4161         (ggc_loc_desc_hasher::hash): Likewise.
4162         (ggc_loc_desc_hasher::equal): Likewise.
4163         (struct ggc_ptr_hash_entry): Likewise.
4164         (struct ptr_hash_hasher): Likewise.
4165         (ptr_hash_hasher::hash): Likewise.
4166         (ptr_hash_hasher::equal): Likewise.
4167         (make_loc_descriptor): Likewise.
4168         (ggc_prune_ptr): Likewise.
4169         (dump_ggc_loc_statistics): Use new memory descriptor.
4170         (ggc_record_overhead): Likewise.
4171         (ggc_free_overhead): Likewise.
4172         (final_cmp_statistic): Remove.
4173         (cmp_statistic): Likewise.
4174         (ggc_add_statistics): Liekwise.
4175         (ggc_prune_overhead_list): Likewise.
4176         * hash-map-traits.h: New file.
4177         * hash-map.h (struct default_hashmap_traits): Move the traits to a
4178         separate header file.
4179         * hash-set.h: Pass memory statistics info to ctor.
4180         * hash-table.c (void dump_hash_table_loc_statistics): New function.
4181         * hash-table.h (hash_table::hash_table): Add new ctor arguments.
4182         (hash_table::~hash_table): Register memory release operation.
4183         (hash_table::alloc_entries): Handle memory allocation operation.
4184         (hash_table::expand): Likewise.
4185         * inchash.c (iterative_hash_hashval_t): Move implementation to header
4186         file.
4187         (iterative_hash_host_wide_int): Likewise.
4188         * inchash.h (class hash): Likewise.
4189         * mem-stats-traits.h: New file.
4190         * mem-stats.h: New file.
4191         (mem_location): Add new class.
4192         (mem_usage): Likewise.
4193         (mem_alloc_description): Likewise.
4194         * sese.c: Add new header file inclusision.
4195         * toplev.c (dump_memory_report): Add report for hash_table, hash_map
4196         and hash_set.
4197         * tree-sra.c: Add new header file inclusision.
4198         * vec.c (struct vec_descriptor): Remove.
4199         (hash_descriptor): Likewise.
4200         (struct vec_usage): Likewise.
4201         (struct ptr_hash_entry): Likewise.
4202         (hash_ptr): Likewise.
4203         (eq_ptr): Likewise.
4204         (vec_prefix::register_overhead): Use new memory descriptor API.
4205         (vec_prefix::release_overhead): Likewise.
4206         (add_statistics): Remove.
4207         (dump_vec_loc_statistics): Use new memory descriptor API.
4208         * vec.h (struct vec_prefix): Likewise.
4209         (va_heap::reserve): Likewise.
4210         (va_heap::release): Likewise.
4211         * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
4213 2015-05-27  Richard Biener  <rguenther@suse.de>
4215         * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
4216         earlier and remove ??? comment.
4217         (vect_analyze_stmt): If we are analyzing a pure SLP stmt
4218         and got called from loop analysis bail out.  Always pass the SLP
4219         node to the vectorizable_* functions.
4220         * tree-vect-loop.c (vect_analyze_loop_operations): Remove
4221         the premature SLP check here.
4222         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
4223         detected SLP stmts.
4224         (vect_detect_hybrid_slp_1): Likewise.
4226 2015-05-26  Jeff Law  <law@redhat.com>
4228         * combine.c (find_split_point): Verify that the shift count is a
4229         constant when choosing (plus (ashift ...)) as a split point.
4231         * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
4232         No functional changes.
4234 2015-05-26  Jan Hubicka  <hubicka@ucw.cz>
4236         * ipa-polymorphic-call.c
4237         (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
4238         case when call target is already known.
4240 2015-05-26  Oleg Endo  <olegendo@gcc.gnu.org>
4242         PR target/65979
4243         * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
4244         take into account the case that operands[1] and operands[2]
4245         are the same register.
4247 2015-05-26  Michael Matz  <matz@suse.de>
4249         PR middle-end/66251
4251         * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
4252         stores.
4253         (vect_create_vectorized_demotion_stmts): Always set
4254         STMT_VINFO_VEC_STMT, also with SLP.
4255         (vectorizable_store): Handle strided group stores.
4257 2015-05-26  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
4259         PR target/66049
4260         * config/aarch64/aarch64.md
4261         (*adds_shift_imm_<mode>):  New pattern.
4262         (*subs_shift_imm_<mode>):  Likewise.
4263         (*adds_<optab><ALLX:mode>_shift_<GPI:mode>):  Likewise.
4264         (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
4265         (*add_uxt<mode>_shift2): Likewise.
4266         (*add_uxtsi_shift2_uxtw): Likewise.
4267         (*sub_uxt<mode>_shift2): Likewise.
4268         (*sub_uxtsi_shift2_uxtw): Likewise.
4270 2015-05-26  David Edelsohn  <dje.gcc@gmail.com>
4272         * config/rs6000/constraints.md (Y, U): Use match_test.
4274 2015-05-26  Christian Bruel  <christian.bruel@st.com>
4276         PR target/52144
4277         * config/arm/arm.c (arm_option_check_internal)
4278         (arm_option_params_internal): Check opts->target_flags to set macros.
4279         (TREE_TARGET_ARM, TREE_TARGET_THUMB)
4280         (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
4281         (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
4282         (builtin_define): Replaced with def_or_undef_macro.
4283         * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
4284         TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
4285         (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
4286         (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
4287         (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
4288         (TARGET_ARM_FEATURE_LDREX_P)
4289         (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
4290         * config/arm/arm-c.c (def_or_undef_macro): New function.
4291         (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
4293 2015-05-26  Christian Bruel  <christian.bruel@st.com>
4295         * c-common.h (builtin_define_with_int_value)
4296         (builtin_define_type_sizeof): Declare.
4297         * c-cppbuiltin.c (builtin_define_with_int_value)
4298         (builtin_define_type_sizeof): Externalize.
4299         (builtin_define_std): Cleanup declaration.
4300         * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
4301         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
4302         * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
4303         (builtin_define, builtin_assert): New macros.
4305 2015-05-26  Richard Biener  <rguenther@suse.de>
4307         PR tree-optimization/66142
4308         * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
4309         MEM_REFs for the same base address.
4311 2015-05-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4313         PR ipa/66181
4314         * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
4316 2015-05-26  Jason Merrill  <jason@redhat.com>
4318         * configure.ac: Set CXXFLAGS for ISL test.
4319         * configure: Regenerate.
4321         * configure.ac: Use C++ for all tests.  Use AC_CHECK_DECLS for
4322         strstr and basename.
4323         * configure: Regenerate.
4325 2015-05-26  Richard Biener  <rguenther@suse.de>
4327         * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
4328         X % C -> X & (C - 1) for C being a power-of two to ...
4329         * match.pd: ... patterns.
4331 2015-05-26  Marc Glisse  <marc.glisse@inria.fr>
4333         * match.pd (swapped_tcc_comparison): New operator list.
4334         (-A CMP -B): New simplification.
4335         * fold-const.c (fold_comparison): Remove corresponding code.
4337 2015-05-26  Richard Sandiford  <richard.sandiford@arm.com>
4339         * caller-save.c (init_caller_save): Base temporary register numbers
4340         on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
4341         * cfgloopanal.c (init_set_costs): Likewise.
4342         * dojump.c (prefer_and_bit_test): Likewise.
4343         * expr.c (init_expr_target): Likewise.
4344         * ira.c (setup_prohibited_mode_move_regs): Likewise.
4345         * lower-subreg.c (init_lower_subreg): Likewise.
4346         * postreload.c (reload_cse_regs_1): Likewise.
4348 2015-05-26  Richard Sandiford  <richard.sandiford@arm.com>
4350         * gensupport.h (compute_test_codes): Declare.
4351         * gensupport.c (compute_predicate_codes): Rename to...
4352         (compute_test_codes): ...this.  Generalize error message.
4353         (process_define_predicate): Update accordingly.
4354         * genpreds.c (compute_maybe_allows): Delete.
4355         (add_constraint): Use compute_test_codes to determine whether
4356         something can accept a SUBREG, REG or MEM.
4358 2015-05-26  Torvald Riegel  <triegel@redhat.com>
4360         * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
4361         'memory model' to align with C++11; fix description of memory orders;
4362         fix a few typos.
4364 2015-05-26  Richard Biener  <rguenther@suse.de>
4366         * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
4367         (vect_analyze_loop_operations): ... here.  Remove slp parameter,
4368         detect whether we apply SLP.  Remove call to
4369         vect_update_slp_costs_according_to_vf.
4370         (vect_analyze_loop_2): Call vect_update_vf_for_slp and
4371         vect_update_slp_costs_according_to_vf from here.  Dispatch
4372         to vect_slp_analyze_operations to analyze SLP stmts.
4373         * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
4374         unused bb_vec_info parameter, adjust assert.
4375         (vect_slp_analyze_operations): Pass in the slp instance tree
4376         instead of bb_vec_info.
4377         (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
4378         * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
4380 2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
4382         * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
4383         Q_REGS.  Expand comment.
4384         (REG_CLASS_NAMES): Ditto.
4385         (REG_CLASS_CONTENTS): Ditto.
4387 2015-05-25  Uros Bizjak  <ubizjak@gmail.com>
4389         PR target/66274
4390         * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
4391         when LEGACY_INT_REGNO_P is processed.
4393 2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
4395         * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
4397 2015-05-25  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
4399         * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
4400         register if not marked dead/unused, before return.
4402 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
4404         PR lto/66180
4405         * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
4406         is set; check for assembler name at LTO time.
4407         (type_in_anonymous_namespace): Remove hacks, check that all
4408         anonymous types are called "<anon>"
4409         (odr_type_p): Simplify; add check for "<anon>"
4410         (odr_subtypes_equivalent): Add odr_type_p check.
4411         * tree.c (need_assembler_name_p): Even anonymous namespace needs
4412         assembler name.
4414 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
4416         * ipa-utils.h (method_class_type): Remove.
4417         * cgraphunit.c (walk_polymorphic_call_targets): Use
4418         TYPE_METHOD_BASETYPE.
4419         * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
4420         on main variants only.
4421         (method_class_type): Remove.
4422         (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
4423         (build_type_inheritance_graph): Likewise.
4424         * ipa-icf.c (sem_function::equals_wpa): Likewise.
4425         * pa-polymorphic-call.c (decl_maybe_in_construction_p,
4426         check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
4428 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
4430         * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
4431         is_typedef_decl, typedef_variant_p): Constify.
4432         * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
4433         is_typedef_decl, typedef_variant_p): Constify.
4435 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4437         * defaults.h (gen_tablejump): New function.
4438         (HAVE_tablejump): Add default value.
4439         * expr.c: Adjust.
4440         * stmt.c: Likewise.
4442 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4444         * defaults.h (gen_store_multiple): New function.
4445         (HAVE_store_multiple): Add default value.
4446         * expr.c (move_block_from_reg): Adjust.
4448 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4450         * defaults.h (gen_load_multiple): New function.
4451         (HAVE_load_multiple): Add default value.
4452         * expr.c (move_block_to_reg): Adjust.
4454 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4456         * defaults.h (gen_mem_signal_fence): New function.
4457         (HAVE_mem_signal_fence): Add default value.
4458         * optabs.c: Adjust.
4460 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4462         * defaults.h (gen_memory_barrier): New function.
4463         (HAVE_memory_barrier): Add default value.
4464         * optabs.c: Adjust.
4466 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4468         * defaults.h (gen_mem_thread_fence): New function.
4469         (HAVE_mem_thread_fence): Add default definition.
4470         * optabs.c: Adjust.
4472 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4474         * combine.c (find_split_point): Check the value of HAVE_lo_sum
4475         instead of if it is defined.
4476         (combine_simplify_rtx): Likewise.
4477         * lra-constraints.c (process_address_1): Likewise.
4478         * config/darwin.c: Adjust.
4479         * genconfig.c (main): Always define HAVE_lo_sum.
4481 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
4483         * genmatch.c (parser::parse_operation): Reject expanding
4484         operator-list inside 'for'.
4486 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
4488         * genmatch.c (parser::parse_for): Reject iterator if used as
4489         operator-list.
4491 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
4493         * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
4494         after end of id-list.
4496 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
4498         * tree.c (gimple_canonical_types_compatible_p): Sanity check that
4499         we do not try to compute canonical type for type that does not need
4500         alias set.
4501         (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
4502         FUNCITON_TYPE.
4503         * tree.h (type_with_alias_set_p): New.
4505 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
4507         * tree.c (gimple_canonical_types_compatible_p):  Do not compare
4508         function attributes.
4509         (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
4511 2015-05-22  Jim Wilson  <jim.wilson@linaro.org>
4513         * Makefile.in (check_gcc_parallelize): Delete.
4514         (lang_checks_parallelized): Update comment.
4516 2015-05-22  Mikhail Maltsev  <maltsevm@gmail.com>
4518         PR rtl-optimization/66237
4519         * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
4520         location of an "as_a" cast.
4522 2015-05-22  Jeff Law  <law@redhat.com>
4524         * config/pa/pa.md (non-canonical shift-add insns): Remove.
4525         (peepholes with non-canonical RTL sources): Remove.
4526         (peepholes for indexed stores of FP regs in integer modes): Match and
4527         generate canonical RTL.
4529 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
4531         PR tree-optimization/63387
4532         * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
4533         ((x ord x) & (y ord y) -> (x ord y),
4534         (x ord x) & (x ord y) -> (x ord y)): New simplifications.
4535         * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
4536         vectors like scalars.
4538 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
4540         * convert.c (convert_to_integer, convert_to_vector): Include the
4541         types in the error message.
4543 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
4545         * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
4546         simplifications.
4548 2015-05-22  Jeff Law  <law@redhat.com>
4550         * config/pa/pa.md (integer_indexed_store splitters): Use
4551         mem_shadd_operand.  Use ASHIFT rather than MULT in the resulting
4552         insns -- adjusting the constant 2nd operand accordingly.
4554         * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
4555         (plus (ashift X log2) Y) if it is a split point.
4557         * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
4558         out of hppa_legitimize_address to handle both forms of a multiply
4559         by 2, 4 or 8.
4560         (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
4561         Always generate the ASHIFT variant as the result is not directly
4562         used in a MEM.  Update comments and refactor slightly to improve
4563         readability.
4565 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4567         PR target/65491
4568         * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
4569         aarch64_composite_type_p.  Remove check for aarch64_composite_type_p.
4570         (aarch64_composite_type_p): Return false if given type and mode are
4571         for a short vector.
4573 2015-05-22  Richard Biener  <rguenther@suse.de>
4575         * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
4576         member.
4577         * tree-vect-loop.c (vect_analyze_loop_operations): Look at
4578         patterns when determining whether SLP is pure.
4579         (vect_is_slp_reduction): Remove check for pattern stmts.
4580         (vect_is_simple_reduction_1): Remove dead code.
4581         * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
4582         (vect_get_and_check_slp_defs): Pass in the stmt number.
4583         Allow the first def in a reduction to be not a pattern stmt when
4584         the rest of the stmts def are patterns.
4585         (vect_build_slp_tree_1): Allow tcc_expression codes like
4586         SAD_EXPR and DOT_PROD_EXPR.
4587         (vect_build_slp_tree): Adjust.
4588         (vect_analyze_slp): Refactor and move BB vect error message ...
4589         (vect_slp_analyze_bb_1): ... here.
4591 2015-05-22  Aldy Hernandez  <aldyh@redhat.com>
4593         * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
4594         for CSWTCH temporary.
4596 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4598         * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
4599         (arm_unspec_cost): Allow UNSPEC_VOLATILE.  Do not recurse inside
4600         unknown unspecs.
4602 2015-05-22  Richard Biener  <rguenther@suse.de>
4604         PR tree-optimization/66251
4605         * tree-vect-stmts.c (vectorizable_conversion): Properly
4606         set STMT_VINFO_VEC_STMT even for the SLP case.
4608 2015-05-22  Marek Polacek  <polacek@redhat.com>
4610         * doc/extend.texi: Use @pxref instead of @xref.
4612 2015-05-22  hiraditya  <hiraditya@msn.com>
4614         * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
4615         redundant if.
4617 2015-05-22  Richard Biener  <rguenther@suse.de>
4619         PR tree-optimization/65701
4620         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
4621         Move peeling cost models into one place.  Peel for alignment
4622         for single loads only if an aligned load is cheaper than
4623         an unaligned load.
4625 2015-05-22  Marek Polacek  <polacek@redhat.com>
4627         PR c/47043
4628         * doc/extend.texi (Enumerator Attributes): New section.
4629         Document syntax of enumerator attributes.
4631 2015-05-22  Richard Biener  <rguenther@suse.de>
4633         * tree-vect-loop.c (get_reduction_op): New function.
4634         (vect_model_reduction_cost): Use it, add reduc_index parameter.
4635         Make ready for BB reductions.
4636         (vect_create_epilog_for_reduction): Use get_reduction_op.
4637         (vectorizable_reduction): Init reduc_index to a valid value.
4638         Adjust vect_model_reduction_cost call.
4639         * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
4640         operand for reduction defaults.  Add SAD_EXPR support.
4641         Assert we have a neutral op for SLP reductions.
4642         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
4643         walking pattern stmt ops only recurse to SSA names.
4645 2015-05-22  Richard Biener  <rguenther@suse.de>
4647         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
4648         assert with guard, remove check on detected reduction.
4649         (vect_recog_sad_pattern): Likewise.
4650         (vect_recog_widen_sum_pattern): Likewise.
4652 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4654         * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
4655         __always_inline__ attribute.
4656         (vaesdq_u8): Likewise.
4657         (vaesmcq_u8): Likewise.
4658         (vaesimcq_u8): Likewise.
4659         (vsha1cq_u32): Likewise.
4660         (vsha1mq_u32): Likewise.
4661         (vsha1pq_u32): Likewise.
4662         (vsha1h_u32): Likewise.
4663         (vsha1su0q_u32): Likewise.
4664         (vsha1su1q_u32): Likewise.
4665         (vsha256hq_u32): Likewise.
4666         (vsha256h2q_u32): Likewise.
4667         (vsha256su0q_u32): Likewise.
4668         (vsha256su1q_u32): Likewise.
4669         (vmull_p64): Likewise.
4670         (vmull_high_p64): Likewise.
4672 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4674         * final.c (final_scan_insn): Don't check HAVE_peephole with the
4675         preprocessor.
4676         * output.h: Likewise.
4677         * genconfig.c (main): Alwways define HAVE_peephole.
4678         * genpeep.c: Don't emit checks of HAVE_peephole.
4680 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4682         * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
4683         check HAVE_conditional_move with the preprocessor.
4685 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4687         * genconfig.c (main): Always define HAVE_conditional_move.
4688         * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
4689         toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
4690         is defined.
4692 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4694         * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
4695         reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
4696         and FRAME_POINTER_REGNUM with the preprocessor.
4698 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4700         * defaults.h: Add default for STACK_PUSH_CODE.
4701         * expr.c: Don't redefine STACK_PUSH_CODE.
4702         * recog.c: Likewise.
4704 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4706         * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
4707         sched-deps.c: Use if instead of preprocessor checks with
4708         STACK_GROWS_DOWNWARD.
4710 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4712         * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
4713         is defined.
4714         * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
4715         * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
4716         * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
4717         * doc/tm.texi: Regenerate.
4719 2015-05-21  H.J. Lu  <hongjiu.lu@intel.com>
4721         PR target/66232
4722         * config/i386/constraints.md (Bg): New constraint for GOT memory
4723         operand.
4724         * config/i386/i386.md (*call_got_x32): New pattern.
4725         (*call_value_got_x32): Likewise.
4726         * config/i386/predicates.md (GOT_memory_operand): New predicate.
4728 2015-05-21  Jakub Jelinek  <jakub@redhat.com>
4730         PR tree-optimization/66233
4731         * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
4732         Simplify.
4734 2015-05-21  Jeff Law  <law@redhat.com>
4736         * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
4737         than MULT for shadd sequences.
4739 2015-05-08  Jan Hubicka  <hubicka@ucw.cz>
4741         * alias.c (alias_stats): New static var.
4742         (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
4743         (dump_alias_stats_in_alias_c): New function.
4744         * alias.h (dump_alias_stats_in_alias_c): Declare.
4745         * tree-ssa-alias.c (dump_alias_stats): Call it.
4747 2015-05-08  Michael Matz  <matz@suse.de>
4749         * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
4750         to strided_p.
4751         (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
4752         (STMT_VINFO_STRIDED_P): ... this.
4753         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
4754         (vect_verify_datarefs_alignment): Likewise.
4755         (vect_enhance_data_refs_alignment): Likewise.
4756         (vect_analyze_data_ref_access): Likewise.
4757         (vect_analyze_data_refs): Accept strided stores.
4758         * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
4759         (vect_model_load_cost): Adjust for macro rename.
4760         (vectorizable_mask_load_store): Likewise.
4761         (vectorizable_load): Likewise.
4762         (vectorizable_store): Open code strided stores.
4764 2015-05-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4766         * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
4767         Document sqrt_insn.
4769 2015-05-21  Richard Biener  <rguenther@suse.de>
4771         PR c++/66211
4772         * match.pd: Guard pattern optimzing (int)(float)int
4773         conversions to apply only on GIMPLE.
4775 2015-05-21  Jeff Law  <law@redhat.com>
4777         * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
4778         multiply-accumulate/shift-add insn generation.
4780 2015-05-21  Oleg Endo  <olegendo@gcc.gnu.org>
4782         PR target/54236
4783         * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
4784         operands[1] are the same.
4786 2015-05-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
4788         PR middle-end/66221
4789         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
4790         build_distinct_type_copy to copy bounds.
4792 2015-05-21  Thomas Schwinge  <thomas@codesourcery.com>
4794         * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
4795         Change to unsigned int.
4797 2015-05-20  Jeff Law  <law@redhat.com>
4799         * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
4800         (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
4801         (pa_shadd_constant_p): Allow constants for shadd insns rather
4802         than valid scaling constants for memory addresses.
4803         * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
4804         * config/pa/predicates.md (mem_shadd_operand): New predicate.
4805         * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
4806         (shift-add insns using ASHIFT): New patterns.
4808 2015-05-20  Mikhail Maltsev  <maltsevm@gmail.com>
4810         * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
4811         feasible.
4812         (fix_up_fall_thru_edges): Likewise.
4813         (fix_crossing_conditional_branches): Likewise. Promote jump targets
4814         from to rtx_insn to rtx_code_label where feasible.
4815         * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
4816         gen_move_insn (returned type changed to rtx_insn).
4817         * builtins.c (expand_errno_check): Fix arguments of
4818         do_compare_rtx_and_jump (now expects rtx_code_label).
4819         (expand_builtin_acc_on_device): Likewise.
4820         * cfgcleanup.c (try_simplify_condjump): Add cast when calling
4821         invert_jump (now exprects rtx_jump_insn).
4822         * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
4823         (construct_init_block): Use rtx_code_label.
4824         * cfgrtl.c (block_label): Promote return type to rtx_code_label.
4825         (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
4826         calling redirect_jump.
4827         (patch_jump_insn): Likewise.
4828         (redirect_branch_edge): Likewise.
4829         (force_nonfallthru_and_redirect): Likewise.
4830         (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
4831         when suitable.
4832         (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
4833         * cfgrtl.h: Promote return type of block_label to rtx_code_label.
4834         * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
4835         * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
4836         to store the value retured by gen_label_rtx.
4837         * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
4838         rtx_jump_insn.
4839         * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
4840         (split_branches): Fix calls of redirect_jump.
4841         * dojump.c (jumpifnot): Promote argument type from rtx to
4842         rtx_code_label.
4843         (jumpifnot_1): Likewise.
4844         (jumpif): Likewise.
4845         (jumpif_1): Likewise.
4846         (do_jump_1): Likewise.
4847         (do_jump): Likewise. Use rtx_code_label when feasible.
4848         (do_jump_by_parts_greater_rtx): Likewise.
4849         (do_jump_by_parts_zero_rtx): Likewise.
4850         (do_jump_by_parts_equality_rtx): Likewise.
4851         (do_compare_rtx_and_jump): Likewise.
4852         * dojump.h: Update function prototypes.
4853         * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
4854         returns rtx_insn).
4855         * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
4856         rtx_jump_insn.
4857         (emit_label_before): Likewise.
4858         (emit_jump_insn_after_noloc): Likewise.
4859         (emit_jump_insn_after_setloc): Likewise.
4860         (emit_jump_insn_after): Likewise
4861         (emit_jump_insn_before_setloc): Likewise.
4862         (emit_jump_insn_before): Likewise.
4863         (emit_label_before): Promote return type to rtx_code_label.
4864         (emit_label): Likewise.
4865         * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
4866         * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
4867         gen_move_insn.
4868         (emit_stack_restore): Likewise.
4869         * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
4870         (do_cmp_and_jump): Likewise.
4871         * expr.c (expand_expr_real_2): Likewise. Promote some local variables
4872         from rtx to rtx_code_label.
4873         (gen_move_insn_uncast): New function.
4874         * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
4875         * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
4876         * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
4877         * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
4878         invert_jump_1 and redirect_jump_1.
4879         * internal-fn.c (expand_arith_overflow_result_store): Fix call of
4880         do_compare_rtx_and_jump.
4881         (expand_addsub_overflow): Likewise.
4882         (expand_neg_overflow): Likewise.
4883         (expand_mul_overflow): Likewise.
4884         * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
4885         return value of gen_move_insn.
4886         * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
4887         * loop-doloop.c (add_test): Use rtx_code_label.
4888         (doloop_modify): Likewise.
4889         (doloop_optimize): Likewise.
4890         * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
4891         * lra-constraints.c (emit_spill_move): Remove cast of value returned
4892         by gen_move_insn.
4893         (inherit_reload_reg): Add cast when calling dump_insn_slim.
4894         (split_reg): Likewise.
4895         * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
4896         gen_move_insn.
4897         * optabs.c (expand_binop_directly): Remove casts of values returned by
4898         maybe_gen_insn.
4899         (expand_unop_direct): Likewise.
4900         (expand_abs): Likewise.
4901         (maybe_emit_unop_insn): Likewise.
4902         (maybe_gen_insn): Promote return type to rtx_insn.
4903         * optabs.h: Update prototype of maybe_gen_insn.
4904         * postreload-gcse.c (eliminate_partially_redundant_load): Remove
4905         redundant cast.
4906         * recog.c (struct peep2_insn_data): Promote type of insn field to
4907         rtx_insn.
4908         (peep2_reinit_state): Use NULL instead of NULL_RTX.
4909         (peep2_attempt): Remove casts of insn in peep2_insn_data.
4910         (peep2_fill_buffer): Promote argument from rtx to rtx_insn
4911         * recog.h (struct insn_gen_fn): Promote return types of function
4912         pointers and operator ().from rtx to rtx_insn.
4913         * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
4914         (fill_eager_delay_slots): Likewise.
4915         (relax_delay_slots): Likewise.
4916         (make_return_insns): Likewise.
4917         (dbr_schedule): Likewise.
4918         (optimize_skips): Likewise.
4919         (reorg_redirect_jump): Likewise.
4920         (fill_slots_from_thread): Likewise.
4921         * reorg.h: Update prototypes.
4922         * resource.c (find_dead_or_set_registers): Use dyn_cast to
4923         rtx_jump_insn instead of check.  Use it's jump_target method.
4924         * rtl.h (rtx_jump_insn::jump_label): Define new method.
4925         (rtx_jump_insn::jump_target): Define new method.
4926         (rtx_jump_insn::set_jump_target): Define new method.
4927         * rtlanal.c (tablejump_p): Promote type of one local variable.
4928         * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
4929         (sched_analyze_insn): Likewise.
4930         * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
4931         (print_insn): Likewise.
4932         * stmt.c (label_rtx): Promote return type to rtx_insn.
4933         (force_label_rtx): Likewise.
4934         (jump_target_rtx): Define new function.
4935         (expand_label): Use it, get rid of one cast.
4936         (expand_naked_return): Promote rtx to rtx_code_label.
4937         (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
4938         (expand_case): Use rtx_code_label instread of rtx where feasible.
4939         (expand_sjlj_dispatch_table): Likewise.
4940         (emit_case_nodes): Likewise.
4941         * stmt.h: Declare jump_target_rtx.  Update prototypes.  Fix comments.
4942         * store-motion.c (insert_store): Make use of new return type of
4943         gen_move_insn and remove a cast.
4944         (replace_store_insn): Likewise.
4946 2015-05-20  Max Filippov  <jcmvbkbc@gmail.com>
4948         * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
4949         by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
4951 2015-05-20  Jeff Law  <law@redhat.com>
4953         * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
4954         dispose of the jump thread path when the jump threading
4955         opportunity is cancelled.
4957 2015-05-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4959         * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
4960         when printing the caret character.
4962 2015-05-20  Marek Polacek  <polacek@redhat.com>
4964         * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
4966 2015-05-20  Marek Polacek  <polacek@redhat.com>
4968         * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
4969         * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
4970         * gimple-fold.c (canonicalize_bool): Likewise.
4971         (same_bool_result_p): Likewise.
4972         * tree-if-conv.c (parse_predicate): Likewise.
4974 2015-05-20  Marek Polacek  <polacek@redhat.com>
4976         * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
4977         * gimplify.c (gimplify_modify_expr_rhs): Likewise.
4979 2015-05-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4981         * config/aarch64/aarch64.c (aarch64_class_max_nregs):
4982         Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
4983         values.
4985 2015-05-20  Robert Suchanek  <robert.suchanek@imgtec.com>
4987         * config/mips/mips.h (micromips_globals): Declare.
4989 2015-05-20  David Malcolm  <dmalcolm@redhat.com>
4991         * timevar.def (TV_INITIALIZE_RTL): New.
4992         * toplev.c (initialize_rtl): Use an auto_timevar to account this
4993         function's time to TV_INITIALIZE_RTL.
4995 2015-05-20  Ilya Enkovich  <enkovich.gnu@gmail.com>
4997         * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
4998         gimple_build_nop calls.
4999         (chkp_find_bounds_for_elem): Likewise.
5000         (chkp_get_zero_bounds): Likewise.
5001         (chkp_get_none_bounds): Likewise.
5002         (chkp_get_bounds_by_definition): Likewise.
5003         (chkp_generate_extern_var_bounds): Likewise.
5004         (chkp_get_bounds_for_decl_addr): Likewise.
5005         (chkp_get_bounds_for_string_cst): Likewise.
5007 2015-05-20  Bin Cheng  <bin.cheng@arm.com>
5009         PR tree-optimization/65447
5010         * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
5011         (dump_use, dump_uses): Support to dump sub use.
5012         (record_use): New parameters to support sub use.  Remove call to
5013         dump_use.
5014         (record_sub_use, record_group_use): New functions.
5015         (compute_max_addr_offset, split_all_small_groups): New functions.
5016         (group_address_uses, rewrite_use_address): New functions.
5017         (strip_offset): New declaration.
5018         (find_interesting_uses_address): Call record_group_use.
5019         (add_candidate): New assertion.
5020         (infinite_cost_p): Move definition forward.
5021         (add_costs): Check INFTY cost and return immediately.
5022         (get_computation_cost_at): Clear setup cost and dependent bitmap
5023         for sub uses.
5024         (determine_use_iv_cost_address): Compute cost for sub uses.
5025         (rewrite_use_address_1): Rename from old rewrite_use_address.
5026         (free_loop_data): Free sub uses.
5027         (tree_ssa_iv_optimize_loop): Call group_address_uses.
5029 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
5030             Jim Wilson  <jim.wilson@linaro.org>
5032         * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
5033         new  fields loadv and storev.
5034         * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
5035         Initialize loadv and storev.
5036         * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
5037         (cortexa53_extra_costs): Likewise.
5038         (cortexa57_extra_costs): Likewise.
5039         (xgene1_extra_costs): Likewise.
5040         * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
5041         rtx_costs.
5043 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
5045         * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
5046          storev.
5047         (cortexa8_extra_costs): Likewise.
5048         (cortexa5_extra_costs): Likewise.
5049         (cortexa7_extra_costs): Likewise.
5050         (cortexa12_extra_costs): Likewise.
5051         (cortexa15_extra_costs): Likewise.
5052         (v7m_extra_costs): Likewise.
5054 2015-05-20  Jeff Law  <law@redhat.com>
5056         * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
5057         instead of open-coded version.  Also delete the jump thread created
5058         within this function.
5060 2015-05-20  Alan Modra  <amodra@gmail.com>
5062         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
5063         stack adjusting insn.  Formatting.
5064         (rs6000_emit_prologue): Track stack adjusting insn, and use of
5065         r12.  If possible, emit first -fsplit-stack arg pointer insn
5066         before stack adjust.  Don't use r12 to save cr if split-stack.
5068 2015-05-20  Alan Modra  <amodra@gmail.com>
5070         * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
5071         Define.
5072         (rs6000_supports_split_stack): New function.
5073         * gcc/config/rs6000/rs6000.c (machine_function): Add
5074         split_stack_arg_pointer.
5075         (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
5076         (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
5077         rather than virtual_incoming_args_rtx.
5078         (rs6000_va_start): Likewise.
5079         (split_stack_arg_pointer_used_p): New function.
5080         (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
5081         (morestack_ref): New var.
5082         (gen_add3_const, rs6000_expand_split_stack_prologue,
5083         rs6000_internal_arg_pointer, rs6000_live_on_entry,
5084         rs6000_split_stack_space_check): New functions.
5085         (rs6000_elf_file_end): Call file_end_indicate_split_stack.
5086         * gcc/config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
5087         (UNSPECV_SPLIT_STACK_RETURN): Define.
5088         (split_stack_prologue, load_split_stack_limit,
5089         load_split_stack_limit_di, load_split_stack_limit_si,
5090         split_stack_return, split_stack_space_check): New expands and insns.
5091         * gcc/config/rs6000/rs6000-protos.h
5092         (rs6000_expand_split_stack_prologue): Declare.
5093         (rs6000_split_stack_space_check): Declare.
5095 2015-05-20  Alan Modra  <amodra@gmail.com>
5097         * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
5098         (rs6000_stack_info): Don't zero offsets when not saving registers.
5099         (debug_stack_info): Adjust to omit printing unused offsets,
5100         as before.
5101         (direct_return): Test vrsave_size rather than vrsave_mask.
5102         (rs6000_emit_prologue): Likewise.  Remove redundant altivec tests.
5103         (rs6000_emit_epilogue): Likewise.
5105 2015-05-20  Alan Modra  <amodra@gmail.com>
5107         * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
5108         when not saving registers.
5109         (debug_stack_info): Adjust to omit printing unused offsets,
5110         as before.
5111         (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
5112         expression.
5114 2015-05-19  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5116         PR c++/65835
5117         * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
5118         value_type to const char *.
5120 2015-05-19  Sandra Loosemore  <sandra@codesourcery.com>
5122         * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
5123         to build a biarch toolchain again.
5125 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
5127         * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
5128         or implicit declarations.
5129         (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
5130         into it.
5131         (get_odr_type): Check type has linkage before adding bases.
5132         (register_odr_type): Check that type has linkage before adding it.
5133         (type_known_to_have_no_deriavations_p): Rename to ..
5134         (type_known_to_have_no_derivations_p): This one.
5135         * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
5136         (type_known_to_have_no_derivations_p): This one.
5137         * ipa-polymorphic-call.c
5138         (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
5139         type has linkage.
5141 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
5143         * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
5144         (layout_type): Use RECORD_OR_UNION_TYPE_P.
5146 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5148         * config/s390/s390.c (s390_vector_bool_type_p): New function.
5149         (s390_invalid_binary_op): New function.
5150         (TARGET_INVALID_BINARY_OP): Define macro.
5152 2015-05-19  David Sherwood  <david.sherwood@arm.com>
5154         * loop-invariant.c (create_new_invariant): Don't calculate address cost
5155         if mode is not a scalar integer.
5156         (get_inv_cost): Increase computational cost for unused invariants.
5158 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5160         * config.gcc: Add vecintrin.h to extra_headers.  Add s390-c.o to
5161         c_target_objs and cxx_target_objs.  Add t-s390 to tmake_file.
5162         * config/s390/s390-builtin-types.def: New file.
5163         * config/s390/s390-builtins.def: New file.
5164         * config/s390/s390-builtins.h: New file.
5165         * config/s390/s390-c.c: New file.
5166         * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
5167         CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
5168         * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
5169         (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
5170         prototypes.
5171         * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
5172         Include.
5173         (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
5174         (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
5175         variable definitions.
5176         (s390_const_operand_ok): New function.
5177         (s390_expand_builtin): Rewrite.
5178         (s390_init_builtins): New function.
5179         (s390_handle_vectorbool_attribute): New function.
5180         (s390_attribute_table): Add s390_vector_bool attribute.
5181         (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
5182         (s390_branch_condition_mask): Generate masks for new modes.
5183         (s390_expand_vec_compare_cc): New function.
5184         (s390_mangle_type): Add mangling for vector bool types.
5185         (enum s390_builtin): Remove.
5186         (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
5187         efpc builtins.
5188         * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
5189         s390_cpu_cpp_builtins.
5190         (REGISTER_TARGET_PRAGMAS): New macro.
5191         * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
5192         (insn_cmp mode attribute): Add new CC modes.
5193         (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
5194         (lcbb): New pattern definition.
5195         * config/s390/s390intrin.h: Include vecintrin.h.
5196         * config/s390/t-s390: New file.
5197         * config/s390/vecintrin.h: New file.
5198         * config/s390/vector.md: Include vx-builtins.md.
5199         * config/s390/vx-builtins.md: New file.S/390 zvector builtin
5200         support.
5202 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5204         * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
5205         CCVFHE.
5206         * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
5207         (s390_select_ccmode): Likewise.
5208         (s390_canonicalize_comparison): Swap operands if necessary.
5209         (s390_expand_vec_compare_scalar): Expand DFmode compare using
5210         single element vector instructions.
5211         (s390_emit_compare): Call s390_expand_vec_compare_scalar.
5212         (s390_branch_condition_mask): Generate CC masks for the new modes.
5213         * config/s390/s390.md (v0, vf, vd): New mode attributes.
5214         (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
5215         (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
5216         (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
5217         (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
5218         (*extend<DSF:mode><BFP:mode>2): New insn definition.
5219         (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
5220         (extend<DSF:mode><BFP:mode>2): Turn into expander.
5221         (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
5222         (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
5223         (sqrt<mode>2): Add vector instruction.
5225 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5227         * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
5228         constraints.
5229         * config/s390/predicates.md (const0_operand, constm1_operand)
5230         (constable_operand): Accept vector operands.
5231         * config/s390/s390-modes.def: Add supported vector modes.
5232         * config/s390/s390-protos.h (s390_cannot_change_mode_class)
5233         (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
5234         (s390_bytemask_vector_p, s390_expand_vec_strlen)
5235         (s390_expand_vec_compare, s390_expand_vcond)
5236         (s390_expand_vec_init): Add prototypes.
5237         * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
5238         (s390_vector_mode_supported_p): New function.
5239         (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
5240         (s390_contiguous_bitmask_vector_p): New function.
5241         (s390_bytemask_vector_p): New function.
5242         (s390_split_ok_p): Vector regs don't work either.
5243         (regclass_map): Add VEC_REGS.
5244         (s390_legitimate_constant_p): Handle vector constants.
5245         (s390_cannot_force_const_mem): Handle CONST_VECTOR.
5246         (legitimate_reload_vector_constant_p): New function.
5247         (s390_preferred_reload_class): Handle CONST_VECTOR.
5248         (s390_reload_symref_address):  Likewise.
5249         (s390_secondary_reload): Vector memory instructions only support
5250         short displacements.  Rename reload*_nonoffmem* to reload*_la*.
5251         (s390_emit_ccraw_jump): New function.
5252         (s390_expand_vec_strlen): New function.
5253         (s390_expand_vec_compare): New function.
5254         (s390_expand_vcond): New function.
5255         (s390_expand_vec_init): New function.
5256         (s390_dwarf_frame_reg_mode): New function.
5257         (print_operand): Handle addresses with 'O' and 'R' constraints.
5258         (NR_C_MODES, constant_modes): Add vector modes.
5259         (s390_output_pool_entry): Handle vector constants.
5260         (s390_hard_regno_mode_ok): Handle vector registers.
5261         (s390_class_max_nregs): Likewise.
5262         (s390_cannot_change_mode_class): New function.
5263         (s390_invalid_arg_for_unprototyped_fn): New function.
5264         (s390_function_arg_vector): New function.
5265         (s390_function_arg_float): Remove size variable.
5266         (s390_pass_by_reference): Handle vector arguments.
5267         (s390_function_arg_advance): Likewise.
5268         (s390_function_arg): Likewise.
5269         (s390_return_in_memory): Vector values are returned in a VR if
5270         possible.
5271         (s390_function_and_libcall_value): Handle vector arguments.
5272         (s390_gimplify_va_arg): Likewise.
5273         (s390_call_saved_register_used): Consider the arguments named.
5274         (s390_conditional_register_usage): Disable v16-v31 for non-vec
5275         targets.
5276         (s390_preferred_simd_mode): New function.
5277         (s390_support_vector_misalignment): New function.
5278         (s390_vector_alignment): New function.
5279         (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
5280         (TARGET_VECTOR_MODE_SUPPORTED_P)
5281         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
5282         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
5283         (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
5284         (TARGET_VECTOR_ALIGNMENT): Define target macro.
5285         * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
5286         (FIRST_PSEUDO_REGISTER): Increase value.
5287         (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
5288         (VECTOR_REG_P): Define macros.
5289         (FIXED_REGISTERS, CALL_USED_REGISTERS)
5290         (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
5291         (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
5292         (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
5293         Add vector registers.
5294         (CANNOT_CHANGE_MODE_CLASS): Call C function.
5295         (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
5296         (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
5297         memory.
5298         (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
5299         (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
5300         * config/s390/s390.md (UNSPEC_VEC_*): New constants.
5301         (VR*_REGNUM): New constants.
5302         (ALL): New mode iterator.
5303         (INTALL): Remove mode iterator.
5304         Include vector.md.
5305         (movti): Implement TImode moves for VRs.
5306         Disable TImode splitter for VR targets.
5307         Implement splitting TImode GPR<->VR moves.
5308         (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
5309         (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
5310         reload<mode>_la_in, reload<mode>_la_out.
5311         (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
5312         (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
5313         (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
5314         (mov<mode> SF SD): Prefer lder, lde for loading.
5315         Add lrl and strl instructions.
5316         Add vector instructions.
5317         (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
5318         Call s390_expand_vec_strlen on z13.
5319         (*cc_to_int): Change predicate to nonimmediate_operand.
5320         (addti3): Rename to *addti3.  New expander.
5321         (subti3): Rename to *subti3.  New expander.
5322         * config/s390/vector.md: New file.
5324 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5326         * common/config/s390/s390-common.c (processor_flags_table): Add
5327         z13.
5328         * config.gcc: Add z13.
5329         * config/s390/s390-opts.h (enum processor_type): Add
5330         PROCESSOR_2964_Z13.
5331         * config/s390/s390.c (s390_adjust_priority): Check for
5332         PROCESSOR_2964_Z13.
5333         (s390_reorg): Likewise.
5334         (s390_sched_reorder): Likewise.
5335         (s390_sched_variable_issue): Likewise.
5336         (s390_loop_unroll_adjust): Likewise.
5337         (s390_option_override): Likewise. Default to -mvx when available.
5338         * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
5339         (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
5340         (TARGET_VX_ABI): Define macros.
5341         macros.
5342         (TARGET_DEFAULT): Add MASK_OPT_VX.
5343         * config/s390/s390.md ("cpu" attribute): Add z13.
5344         ("cpu_facility" attribute): Add vec.
5345         * config/s390/s390.opt (processor_type): Add z13.
5346         (mvx): New options.
5347         * doc/invoke.texi: Add z13 option for -march.
5349 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5351         * config/s390/predicates.md (shift_count_or_setmem_operand): Add
5352         mode check to make sure that only scalar integer values are
5353         accepted.
5355 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
5357         * tree.c (verify_type_variant): Fix #undef.
5358         (gimple_canonical_types_compatible_p): Move here from lto.c
5359         (verify_type): Verify TYPE_CANONICAL compatibility.
5360         * tree.h (gimple_canonical_types_compatible_p): Declare.
5362 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
5364         PR middle-end/66199
5365         * tree.h (OMP_TEAMS_COMBINED): Define.
5366         * gimplify.c (enum gimplify_omp_var_data): Add
5367         GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
5368         (enum omp_region_type): Add ORT_COMBINED_TEAMS.
5369         (omp_notice_variable): Accept both ORT_TEAMS
5370         and ORT_COMBINED_TEAMS.  Don't recurse if
5371         GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
5372         GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
5373         GOVD_FIRSTPRIVATE.
5374         (omp_no_lastprivate): New function.
5375         (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
5376         and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
5377         notice_outer and set appropriate bits, otherwise make
5378         sure default(none) combined constructs won't complain.
5379         (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
5380         outer special casing, for OMP_CLAUSE_LASTPRIVATE if
5381         omp_no_lastprivate either remove the clause or turn it
5382         into OMP_CLAUSE_PRIVATE.
5383         (gimplify_omp_for): Fix up handling of implicit
5384         lastprivate or linear iterators.
5385         (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
5386         ORT_COMBINED_TEAMS.
5387         * omp-low.c (lower_omp_for_lastprivate): For combined
5388         for simd use fd.loop.n2 from the for rather than simd.
5390 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
5392         * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
5393         instead of gen_rtx_raw_REG.
5394         (cris_expand_epilogue): Likewise.
5395         * config/microblaze/microblaze.c (microblaze_classify_address):
5396         Likewise.
5397         * config/sparc/sparc.md: Likewise.
5399 2015-05-19  Uros Bizjak  <ubizjak@gmail.com>
5401         * config/alpha/alpha.c (alpha_legitimize_reload_address)
5402         (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
5403         CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
5404         (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
5405         Use CASE_CONST_SCALAR_INT.
5406         (print_operand) <case 'M'>: Use mode_width_operand to check the
5407         value of the constant.
5408         * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
5409         * config/alpha/predicates.md (input_operand): Use general_operand
5410         instead of match_code as operand check.
5411         (symbolic_operand): Use match_code with subexpression digits.
5412         * config/alpha/constraints.md (Q): Ditto.
5414 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5416         * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
5418 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5420         * config/s390/s390.c (s390_secondary_reload): Fix check for
5421         load/store relative.
5423 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5425         * recog.h: Increase MAX_RECOG_ALTERNATIVES.  Change type of
5426         alternative_mask to uint64_t.
5428 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
5430         PR tree-optimization/66187
5431         * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
5432         Pass TYPE_SIGN to tree_int_cst_min_precision.  If
5433         !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
5435 2015-05-19  David Malcolm  <dmalcolm@redhat.com>
5437         * diagnostic.c (diagnostic_report_current_module): Strengthen
5438         local "new_map" from const line_map * to
5439         const line_map_ordinary *.
5440         * genmatch.c (error_cb): Likewise for local "map".
5441         (output_line_directive): Likewise for local "map".
5442         * input.c (expand_location_1): Likewise for local "map".
5443         Pass NULL rather than &map to
5444         linemap_unwind_to_first_non_reserved_loc, since the value is never
5445         read from there, and the value written back not read from here.
5446         (is_location_from_builtin_token): Strengthen local "map" from
5447         const line_map * to const line_map_ordinary *.
5448         (dump_location_info): Strengthen locals "map" from
5449         line_map *, one to const line_map_ordinary *, the other
5450         to const line_map_macro *.
5451         * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
5452         const line_map * to const line_map_macro *.
5453         (maybe_unwind_expanded_macro_loc): Add a call to
5454         linemap_check_macro when writing to the "map" field of the
5455         loc_map_pair.
5456         Introduce local const line_map_ordinary * "ord_map", using it in
5457         place of "map" in the part of the function where we know we have
5458         an ordinary map.  Strengthen local "m" from const line_map * to
5459         const line_map_ordinary *.
5461 2015-05-19  Nick Clifton  <nickc@redhat.com>
5463         PR target/66156
5464         * config/msp430/msp430.md (zero_extendhisi2): Add support for
5465         separate source and destination registers.
5467 2015-05-19  Richard Biener  <rguenther@suse.de>
5469         PR tree-optimization/66165
5470         * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
5471         for no load permutation.
5473         PR tree-optimization/66185
5474         * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
5475         when building the SLP node from scalars.
5477 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
5478             Tristan Gingold  <gingold@adacore.com>
5480         * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
5481         * builtins.c (expand_builtin_update_setjmp_buf): Make global.
5482         (expand_stack_restore): Call record_new_stack_level.
5483         (expand_stack_save): Do not call do_pending_stack_adjust.
5484         * builtins.h (expand_builtin_update_setjmp_buf): Declare.
5485         * calls.c (expand_call): Call record_new_stack_level for alloca.
5486         * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
5487         wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
5488         (update_sjlj_context): New global function.
5489         * except.h (update_sjlj_context): Declare.
5490         * explow.c (record_new_stack_level): New global function.
5491         (allocate_dynamic_stack_space): Call record_new_stack_level.
5492         * explow.h (record_new_stack_level): Declare.
5493         * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
5494         * cfgrtl.c (duplicate_insn_chain): Likewise.
5496 2015-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5498         * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
5499         (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
5500         STACK_GROWS_DOWNWARD as normal if.
5501         (expand_call): Likewise.
5503 2015-05-19  Oleg Endo  <olegendo@gcc.gnu.org>
5505         PR target/54236
5506         * config/sh/sh.md (*round_int_even): New insn_and_split and
5507         accompanying new unnamed split.
5509 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
5511         * bitmap.c (bitmap_set_range): Handle count==1 specially.
5512         (bitmap_clear_range): Likewise.
5513         * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
5514         bitmap_set_range unconditionally.
5515         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
5516         * df-scan.c (df_mark_reg): Likewise.
5517         * haifa-sched.c (setup_ref_regs): Likewise.
5518         * sched-rgn.c (update_live_1): Likewise.
5520 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
5522         * regs.h (END_HARD_REGNO): Delete.
5523         (END_REGNO): Move to...
5524         * rtl.h: ...here.
5525         * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
5526         * caller-save.c (mark_set_regs): Likewise.
5527         * combine.c (move_deaths, distribute_notes): Likewise.
5528         * cse.c (invalidate, invalidate_for_call): Likewise.
5529         * df-scan.c (df_ref_record): Likewise.
5530         * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
5531         (record_last_reg_set_info): Likewise.
5532         * reg-stack.c (convert_regs_exit): Likewise.
5533         * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
5534         * resource.c (update_live_status): Likewise.
5535         * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
5537 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
5539         * rtl.h (reg_info): Add an nregs field.
5540         (REG_NREGS): Use it.
5541         (SET_REGNO_RAW): Delete.
5542         (set_regno_raw): New function.
5543         * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
5544         (END_REGNO): Redefine in terms of REG_NREGS.
5545         * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
5546         SET_REGNO_RAW.
5547         * emit-rtl.c (set_mode_and_regno): Likewise.
5548         * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
5549         instead of SET_REGNO_RAW.
5551 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
5553         * rtl.h (PUT_MODE_RAW): New macro.
5554         (PUT_REG_NOTE_KIND): Use it.
5555         (set_mode_and_regno): Declare.
5556         (gen_raw_REG): Change regno to "unsigned int".
5557         (gen_rtx_REG): Change "unsigned" to "unsigned int".
5558         (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
5559         use set_mode_and_regno to change the mode of registers.
5560         * gengenrtl.c (gendef): Use PUT_MODE_RAW.
5561         * emit-rtl.c (set_mode_and_regno): New function.
5562         (gen_raw_REG): Change regno to unsigned int.  Use set_mode_and_regno.
5563         * caller-save.c (reg_save_code): Use set_mode_and_regno.
5564         * expr.c (init_expr_target): Likewise.
5565         * ira.c (setup_prohibited_mode_move_regs): Likewise.
5566         * postreload.c (reload_cse_simplify_operands): Likewise.
5568 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
5570         * caller-save.c (init_caller_save): Use word_mode and
5571         FIRST_PSEUDO_REGISTER when creating temporary rtxes.
5572         * expr.c (init_expr_target): Likewise.
5573         * ira.c (setup_prohibited_mode_move_regs): Likewise.
5574         * postreload.c (reload_cse_regs_1): Likewise.
5576 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
5578         * rtl.def (REG): Change format to "r".
5579         * rtl.h (rtunion): Remove rt_reg.
5580         (reg_info): New structure.
5581         (rtx_def): Add reg field to main union.
5582         (X0REGATTR): Delete.
5583         (REG_CHECK): New macro.
5584         (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
5585         * rtl.c (rtx_format): Document "r".
5586         (rtx_code_size): Handle REG specially.
5587         * gengenrtl.c (special_format): Return true for formats
5588         that include 'r'.
5589         * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
5590         Deal with REG_ATTRS after the field loop.
5591         * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
5592         * expmed.c (init_expmed): Call gen_raw_REG instead of
5593         gen_rtx_raw_REG.
5594         * expr.c (init_expr_target): Likewise.
5595         * regcprop.c (maybe_mode_change): Likewise.
5596         * varasm.c (make_decl_rtl): Likewise.
5597         * final.c (leaf_renumber_regs_insn): Return early after
5598         handling REGs.
5599         * genemit.c (gen_exp): Handle 'r' fields.
5600         * genpeep.c (match_rtx): Likewise.
5601         * gensupport.c (subst_pattern_match): Likewise.
5602         (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
5603         (alter_constraints, subst_dup): Likewise.
5604         * read-rtl.c (read_rtx_code): Likewise.
5605         * print-rtl.c (print_rtx): Likewise.
5606         * genrecog.c (find_operand, find_matching_operand): Likewise.
5607         (validate_pattern, match_pattern_2): Likewise.
5608         (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
5609         (rtx_test::regno_field): New function.
5610         (operator ==, safe_to_hoist_p, transition_parameter_type)
5611         (parameter_type_string, print_parameter_value)
5612         (print_nonbool_test, print_test): Handle new enum values.
5613         * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
5614         * lra-constraints.c (operands_match_p): Likewise.
5616 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
5618         * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
5619         Change type of new_regno to unsigned int.
5620         * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
5621         new_regno to unsigned int.
5622         (df_ref_change_reg_with_loc): Remove old_regno parameter.
5623         Change type of new_regno to unsigned int.  Use SET_REGNO_RAW.
5624         * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
5625         (SET_REGNO_RAW): Add space after ",".
5627 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
5629         * rtl.h (REG_NREGS): New macro
5630         * alias.c (record_set): Use it.
5631         * cfgcleanup.c (mark_effect): Likewise.
5632         * combine.c (likely_spilled_retval_1): Likewise.
5633         (likely_spilled_retval_p, can_change_dest_mode): Likewise.
5634         (move_deaths, distribute_notes): Likewise.
5635         * cselib.c (cselib_record_set): Likewise.
5636         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
5637         * df-scan.c (df_mark_reg): Likewise.
5638         * dse.c (look_for_hardregs): Likewise.
5639         * dwarf2out.c (reg_loc_descriptor): Likewise.
5640         (multiple_reg_loc_descriptor): Likewise.
5641         * expr.c (write_complex_part, read_complex_part): Likewise.
5642         (emit_move_complex): Likewise.
5643         * haifa-sched.c (setup_ref_regs): Likewise.
5644         * ira-lives.c (mark_hard_reg_live): Likewise.
5645         * lra.c (lra_set_insn_recog_data): Likewise.
5646         * mode-switching.c (create_pre_exit): Likewise.
5647         * postreload.c (reload_combine_recognize_const_pattern): Likewise.
5648         (reload_combine_recognize_pattern): Likewise.
5649         (reload_combine_note_use, move2add_record_mode): Likewise.
5650         (reload_cse_move2add): Likewise.
5651         * reg-stack.c (subst_stack_regs_pat): Likewise.
5652         * regcprop.c (kill_value, copy_value): Likewise.
5653         (copyprop_hardreg_forward_1): Likewise.
5654         * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
5655         (build_def_use): Likewise.
5656         * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
5657         (deps_analyze_insn): Likewise.
5658         * sched-rgn.c (check_live_1, update_live_1): Likewise.
5659         * sel-sched.c (count_occurrences_equiv): Likewise.
5660         * valtrack.c (dead_debug_insert_temp): Likewise.
5662 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
5664         * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
5665         * dse.c (note_add_store): Likewise.
5666         * ira-lives.c (mark_hard_reg_dead): Likewise.
5667         * loop-invariant.c (mark_reg_store): Likewise.
5668         (mark_reg_death): Likewise.
5669         * postreload.c (reload_combine): Likewise.
5670         (reload_combine_note_store): Likewise.
5671         (reload_combine_note_use): Likewise.
5672         * recog.c (peep2_reg_dead_p): Likewise.
5674 2015-05-19  Alan Modra  <amodra@gmail.com>
5676         * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
5677         hard registers numbered greater or equal to ARG_POINTER_REGNUM.
5678         (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
5679         unused predicates.
5680         * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
5681         Use altivec_register_operand.  Make insn predicate TARGET_ALTIVEC.
5682         * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
5683         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
5685 2015-05-19  Sameera Deshpande  <Sameera.Deshpande@imgtec.com>
5687         * config/mips/mips.md (JOIN_MODE): New mode iterator.
5688         (join2_load_Store<JOIN_MODE:mode>): New pattern.
5689         (join2_loadhi): Likewise.
5690         (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
5691         load-load and store-stores.
5692         * config/mips/mips.opt (mload-store-pairs): New option.
5693         (TARGET_LOAD_STORE_PAIRS): New macro.
5694         * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
5695         * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
5696         * config/mips/mips.c (mips_load_store_bonding_p): New function.
5698 2015-05-19  Mikhail Maltsev  <maltsevm@gmail.com>
5700         * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
5701         explicit swaps.
5702         * dojump.c (do_compare_rtx_and_jump): Likewise.
5703         * expmed.c (emit_store_flag_1): Likewise.
5704         * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
5705         * final.c (sprint_ul): Use std::reverse for reversing a string.
5706         * fold-const.c (extract_muldiv_1): Use std::swap.
5707         * genmodes.c (emit_mode_int_n): Likewise.
5708         * ifcvt.c (dead_or_predicable): Likewise.
5709         * ira-build.c (ira_merge_live_ranges): Likewise.
5710         (swap_allocno_copy_ends_if_necessary): Likewise.
5711         * ira.c (ira_setup_alts): Likewise.
5712         * loop-iv.c (iv_analyze_expr): Likewise.
5713         (implies_p): Likewise.
5714         (canon_condition): Likewise.
5715         * lra-constraints.c (swap_operands): Likewise.
5716         * lra-lives.c (lra_merge_live_ranges): Likewise.
5717         * omega.c (swap): Remove.
5718         (bswap): Remove.
5719         (omega_unprotect_1): Use std::swap.
5720         (omega_solve_geq): Likewise.
5721         * optabs.c (expand_binop_directly): Likewise.
5722         (expand_binop): Likewise.
5723         (emit_conditional_move): Likewise.
5724         (emit_conditional_add): Likewise.
5725         * postreload.c (reload_cse_simplify_operands): Likewise.
5726         * reg-stack.c (emit_swap_insn): Likewise.
5727         (swap_to_top): Likewise.
5728         (compare_for_stack_reg): Likewise.
5729         (subst_asm_stack_regs): Likewise.
5730         * reload.c (find_reloads): Likewise.
5731         * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
5732         * sel-sched.c (invoke_reorder_hooks): Likewise.
5733         (create_block_for_bookkeeping): Likewise.
5734         * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
5735         (lambda_matrix_right_hermite): Use std::swap.
5736         * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
5737         * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
5738         * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
5739         * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
5740         * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
5741         * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
5742         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
5743         * tree-vrp.c (compare_ranges): Likewise.
5744         * var-tracking.c (add_with_sets): Likewise.
5745         (vt_find_locations): Likewise.
5747 2015-05-18  Andreas Tobler  <andreast@gcc.gnu.org>
5749         * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
5750         pie executables.
5751         (FBSD_ENDFILE_SPEC): Likewise.
5752         * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
5753         config/freebsd-spec.h.
5754         (ENDFILE_SPEC): Likewise.
5756 2015-05-18  Uros Bizjak  <ubizjak@gmail.com>
5757             Richard Henderson  <rth@redhat.com>
5759         PR target/57032
5760         * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
5761         Check for a memory location that is not a reference (using an AND)
5762         to an unaligned location here.
5763         * config/alpha/predicates.md (normal_memory_operand): Remove.
5765 2015-05-18  Alex Velenko  <Alex.Velenko@arm.com>
5767         * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
5768         (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
5770 2015-05-18  Robert Suchanek  <robert.suchanek@imgtec.com>
5772         * config/mips/mips.c (micromips_globals): New variable.
5773         (mips_set_compression_mode): Save and reinitialize target-dependent
5774         state for microMIPS.
5776 2015-05-18  Martin Liska  <mliska@suse.cz>
5778         * dbgcnt.def: Add new counter.
5779         * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
5781 2015-05-18  Martin Liska  <mliska@suse.cz>
5783         * dbgcnt.def: Sort counters.
5784         * opts.c (common_handle_option): Do not compile if
5785         -fdbg-cnt-list is enabled.
5787 2015-05-18  Tom de Vries  <tom@codesourcery.com>
5789         * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
5790         (gimplify_va_arg_expr): Remove do_deref handling.  Remove adding of
5791         address operator to va_list operand.
5792         * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
5793         unconditionally.
5794         * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
5795         operand.
5796         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
5797         * config/s390/s390.c (s390_gimplify_va_arg): Same.
5798         * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
5800 2015-05-18  Tom de Vries  <tom@codesourcery.com>
5802         * tree-ssa-tail-merge.c: Fix whitespace.
5804 2015-05-17  Jim Wilson  <jim.wilson@linaro.org>
5806         * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
5807         cortex-a17, and cortex-a17.cortex-a7.
5809 2015-05-17  Oleg Endo  <olegendo@gcc.gnu.org>
5811         PR target/54236
5812         * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
5814 2015-05-17  Uros Bizjak  <ubizjak@gmail.com>
5816         PR target/66174
5817         * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
5818         QImode inner modes for TARGET_AVX512BW.  Force mask operand
5819         to a register for AVX512F modes.
5821 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
5823         * toplev.c (emit_debug_global_declarations): Do not output debug info
5824         when doing slim LTO objects.
5826 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
5828         * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
5829         odr_types_equivalent_p): Declare.
5830         (odr_type_p): Use gcc_checking_assert.
5831         (type_in_anonymous_namespace_p) Declare.
5832         (type_with_linkage_p): Declare.
5833         * common.opt (Wlto-type-mismatch): New warning.
5834         * ipa-devirt.c (compound_type_base): New function.
5835         (odr_or_derived_type_p): New function.
5836         (odr_types_equivalent_p): New function.
5837         (add_type_duplicate): Simplify.
5838         (type_with_linkage_p): Add hack to prevent false positives on C types
5839         (type_in_anonymous_namespace_p): Likewise.
5840         * tree.c (need_assembler_name_p): Use type_with_linkage.
5841         * tree.h (type_in_anonymous_namespace_p): Remove.
5842         * doc/invoke.texi (-Wlto-type-mismatch): Document
5844 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
5846         * tree.c (verify_type_variant): Verify tree_base and type_common flags.
5847         (verify_type): Verify STRING_FLAG.
5849 2015-05-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5851         PR fortran/44054
5852         * tree-pretty-print.c (percent_K_format): Replace locus pointer
5853         with accessor function.
5854         * tree-diagnostic.c (diagnostic_report_current_function): Use
5855         diagnostic_location function.
5856         (maybe_unwind_expanded_macro_loc): Likewise.
5857         (virt_loc_aware_diagnostic_finalizer): Likewise.
5858         (default_tree_printer): Replace locus pointer with accessor function.
5859         * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
5860         (diagnostic_set_info_translated): Initialize second location.
5861         (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
5862         (diagnostic_show_locus): Handle two locations. Call
5863         diagnostic_print_caret_line.
5864         (diagnostic_print_caret_line): New.
5865         (default_diagnostic_starter): Use diagnostic_location function.
5866         (diagnostic_report_diagnostic): Use diagnostic_location function.
5867         (verbatim): Do not set text.locus.
5868         * diagnostic.h (struct diagnostic_info): Remove location field.
5869         (struct diagnostic_context): Make caret_chars an array of two.
5870         (diagnostic_location): New inline.
5871         (diagnostic_expand_location): Handle two locations.
5872         (diagnostic_same_line): New inline.
5873         (diagnostic_print_caret_line): Declare.
5874         (CARET_LINE_MARGIN): New constant.
5875         * pretty-print.c (pp_printf): Do not set text.locus.
5876         (pp_verbatim): Do not set text.locus.
5877         * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
5878         (struct text_info): Replace locus pointer with locations
5879         array. Add accessor functions.
5881 2015-05-16  Kugan Vivekanandarajah  <kuganv@linaro.org>
5882             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
5884         PR target/65768
5885         * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
5886         * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
5887          large constants in register instead of splitting them.
5889 2015-05-16  Uros Bizjak  <ubizjak@gmail.com>
5891         PR target/66140
5892         * config/alpha/alpha.c (get_aligned_mem): Also look for reload
5893         replacements in memory addresses.
5894         (get_unaligned_address): Ditto.
5896 2015-05-16  James Bowman  <james.bowman@ftdichip.com>
5898         * config/ft32/*: New files for FT32 port.
5899         * doc/install.texi: Add FT32 information.
5900         * doc/invoke.texi: Add FT32 information.
5901         * doc/md.texi: Add FT32 information.
5902         * doc/contrib.texi: Self added.
5904 2015-05-15  Marc Glisse  <marc.glisse@inria.fr>
5906         PR tree-optimization/64454
5907         * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
5908         (-1 - A -> ~A): Remove unnecessary condition.
5910 2015-05-15  Gregor Richards  <gregor.richards@uwaterloo.ca>
5912         * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
5913         * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
5914         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
5916 2015-05-15  Ilya Enkovich  <ilya.enkovich@intel.com>
5918         * ipa-chkp.h (chkp_wrap_function): New.
5919         * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
5920         (chkp_wrap_function_name): New.
5921         (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
5922         to get wrapper name.
5923         * lto-cgraph.c: Include ipa-chkp.h.
5924         (input_cgraph_1): Avoid alias chain for wrappers.
5926 2015-05-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
5928         PR middle-end/66134
5929         * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
5930         (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
5932 2015-05-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5934         * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
5935         (AARCH64_FL_SLOWMUL): Delete.
5936         (AARCH64_FL_CRC): Redefine to 1<<3.
5937         (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
5939 2015-05-15  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5941         * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
5942         casting.
5944 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
5946         * config/alpha/alpha.md (extendqidi2): Use general_operand
5947         instead of some_operand for operand[1] predicate.
5948         (extendhidi2): Ditto.
5949         (cbranchdi4): Use general_operand instead of some_operand
5950         for operand[1] and operands[2] predicates.
5951         (cstoredi4): Ditto.
5952         * config/alpha/predicates.md (some_operand): Remove unused predicate.
5953         (some_ni_operand): Ditto.
5955 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
5957         * config/alpha/alpha.c (alpha_extract_integer): Do not handle
5958         CONST_WIDE_INT and CONST_DOUBLE.  Assert CONST_INT_P (x).
5959         (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
5960         low part of the constant using alpha_emit_set_const_1.
5961         (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
5963 2015-05-14  Rohit Arul Raj  <rohitrulraj@freescale.com>
5965         * varasm.c (output_constant_pool_1): Pass down alignment from
5966         constant pool entry's descriptor to output_constant_pool_2.
5967         (output_object_block): Add comment prior to call to
5968         output_constant_pool_1.
5970 2015-05-14  Vladimir Makarov  <vmakarov@redhat.com>
5972         PR rtl-optimization/65862
5973         * target.def (ira_change_pseudo_allocno_class): New hook.
5974         * targhooks.c (default_ira_change_pseudo_allocno_class): Default
5975         value of the hook.
5976         * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
5977         * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
5978         hook.
5979         * ira-costs.c (find_costs_and_classes): Call the hook and change
5980         classes when it is necessary.
5981         * doc/tm.texi: Update.
5983 2015-05-14  Alexander Monakov  <amonakov@ispras.ru>
5985         * config/i386/i386.md (sibcall_memory): Check that register with
5986         callee address is not also used as one of the arguments, instead
5987         of checking that it is not live after the sibcall.
5988         (sibcall_pop_memory): Ditto.
5989         (sibcall_value_memory): Ditto.
5990         (sibcall_value_pop_memory): Ditto.
5992 2015-05-14  Marc Glisse  <marc.glisse@inria.fr>
5994         * generic-match-head.c (types_match): Handle non-types.
5995         * gimple-match-head.c (types_match): Likewise.
5996         * match.pd: Remove unnecessary TREE_TYPE for types_match.
5998 2015-05-14  Wilco Dijkstra  <wdijkstr@arm.com>
6000         * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
6001         (csneg3<mode>_insn): Enable expansion of pattern.
6003 2015-05-14  Nick Clifton  <nickc@redhat.com>
6005         * config/rl78/rl78.c (rl78_select_section): Select the correct
6006         default section based upon the category of the decl.
6008 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
6010         PR rtl-optimization/30967
6011         * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
6012         destination mode for the cost of scc patterns.
6014 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
6016         * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
6017         using SWIM248 mode iterator.
6018         (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
6019         (*mulvhi4): mark operand[1] as commutative.  Use nonimmediate_operand
6020         for operand[2] constraint.
6021         (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
6023 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
6025         PR middle-end/66133
6026         * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
6027         make sure it is never noreturn, even when the task body does not
6028         return.
6029         (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
6030         right before GIMPLE_OMP_RETURN.
6031         (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
6032         for GIMPLE_OMP_TASK.  For GIMPLE_OMP_RETURN corresponding to
6033         GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
6035 2015-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6037         * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
6038         * tree-ssa-math-opts.c: Include params.h
6039         (pow_synth_sqrt_info): New struct.
6040         (representable_as_half_series_p): New function.
6041         (get_fn_chain): Likewise.
6042         (print_nested_fn): Likewise.
6043         (dump_fractional_sqrt_sequence): Likewise.
6044         (dump_integer_part): Likewise.
6045         (expand_pow_as_sqrts): Likewise.
6046         (gimple_expand_builtin_pow): Use above to attempt to expand
6047         pow as series of square roots.  Removed now unused variables.
6049 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
6051         * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
6052         (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
6053         Remove *p0 and *p1 arguments.  Rewrite function.
6054         (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
6055         (alpha_split_const_mov): Update calls to alpha_extract_integer and
6056         alpha_emit_set_long_const.
6057         (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
6058         (alpha_output_mi_thunk_osf): Ditto.
6059         * config/alpha/alpha.md (movti): Do not check operands[1]
6060         for CONST_DOUBLE.
6062 2015-05-13  Richard Biener  <rguenther@suse.de>
6064         PR tree-optimization/66129
6065         * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
6066         commutative.
6067         (vect_schedule_slp_instance): Fix typo.
6069 2015-05-13  David Malcolm  <dmalcolm@redhat.com>
6071         * common.opt (fdump-internal-locations): New option.
6072         * input.c: Include diagnostic-core.h.
6073         (get_end_location): New function.
6074         (write_digit): New function.
6075         (write_digit_row): New function.
6076         (dump_location_range): New function.
6077         (dump_labelled_location_range): New function.
6078         (dump_location_info): New function.
6079         * input.h (dump_location_info): New prototype.
6080         * toplev.c (compile_file): Handle flag_dump_locations.
6082 2015-05-13  Eric Botcazou  <ebotcazou@adacore.com>
6084         * gimple-expr.h (is_gimple_constant): Reorder.
6085         * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
6087 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
6089         * combine.c (simplify_set): When generating a CC set, if the
6090         source already is in the correct mode, do not wrap it in a
6091         compare.  Simplify the rest of that code.
6093 2015-05-13  Richard Biener  <rguenther@suse.de>
6095         PR tree-optimization/66123
6096         * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
6097         a taken edge.
6099 2015-05-13  Richard Biener  <rguenther@suse.de>
6101         PR middle-end/66110
6102         * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
6103         specially.
6104         * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
6106 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
6108         * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
6109         * aclocal.m4: Regenerated with automake-1.11.6.
6111 2015-05-13  Tom de Vries  <tom@codesourcery.com>
6113         PR tree-optimization/66010
6114         * gimplify.h (gimplify_va_arg_internal): Remove declaration.
6115         * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
6116         * tree-stdarg.c (expand_ifn_va_arg_1): ... here.  Choose between lval
6117         and rval based on do_deref.
6119 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
6121         PR target/65103
6122         * config/i386/i386.c (ix86_rtx_costs): We want to propagate
6123         link time constants into adress expressions and therefore set
6124         their cost to 0.
6126 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
6128         PR target/66112
6129         * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
6130         Use SWI248 iterator instead of SWI.
6131         (*mulv<mode>4_1): Use SWI48 instead of SWI.  Simplify output template.
6132         Use eq_attr "alternative" "0" instead of match_test in
6133         length_immediate attribute computation.
6134         (*mulvhi4, *mulvhi4_1): New define_insns.
6136         PR target/66112
6137         * internal-fn.c (get_min_precision): Use UNSIGNED instead of
6138         SIGNED to get precision of non-negative value.
6140 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
6142         PR target/66048
6143         * function.c (diddle_return_value_1): Process bounds first.
6144         * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
6145         register.
6147 2015-05-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
6149         PR rtl-optimization/64616
6150         * loop-invariant.c (can_move_invariant_reg): New.
6151         (move_invariant_reg): Call above new function to decide whether
6152         instruction can just be moved, skipping creation of temporary
6153         register.
6155 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
6157         PR target/pr66047.c
6158         * i386.c (ix86_function_sseregparm): Only return -1 if local function
6159         with implied regparm is called from -mno-sse function.
6160         (init_cumulative_args): Output error if ix86_function_sseregparm
6161         return -1 and SSE register would be needed.
6162         (function_arg_advance_32): Likewise.
6163         (function_arg_32): Likewise.
6164         * i386.h (ix86_args): Add decl field.
6166 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
6168         PR ipa/65873
6169         * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
6170         inlines across optimization boundary.
6172 2015-05-12  Jason Merrill  <jason@redhat.com>
6174         * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
6175         string literal and macro name.
6177 2015-05-12  Steve Ellcey  <sellcey@imgtec.com>
6179         * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
6180         * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
6181         * config/mips/predicates.md (const_immlsa_operand): Remove log call.
6183 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
6185         * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
6186         (-Wmisleading-indentation): New option.
6187         * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
6189 2015-05-12  Uros Bizjak  <ubizjak@gmail.com>
6191         * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
6192         * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
6193         (alpha_extract_integer): Ditto.
6194         (alpha_legitimate_constant_p): Ditto.
6195         (alpha_split_tmode_pair): Ditto.
6196         (alpha_preferred_reload_class): Add CONST_WIDE_INT.
6197         (alpha_expand_mov): Ditto.
6198         (print_operand): Remove handling of 'H' modifier.
6199         <case 'm'>: Remove CONST_DOUBLE handling.
6200         (summarize_insn): Handle CONST_WIDE_INT.
6201         * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
6202         (anddi3): Ditto.
6203         (movti): Handle CONST_WIDE_INT.
6204         * config/alpha/constraints.md ('H'): Remove constraint definition.
6205         ('G'): Do not match MODE_FLOAT class.
6206         * config/alpha/predicates.md (const0_operand): Also match
6207         const_wide_int.
6208         (non_add_const_operand): Ditto.
6209         (non_zero_const_operand): Ditto.
6210         (some_operand): Ditto.
6211         (input_operand): Ditto.  Handle CONST_WIDE_INT.
6212         (and_operand): Do not match const_double.
6213         * config/alpha/sync.md (fetchop_constr): Remove H constraint.
6215 2015-05-12  Andrew MacLeod  <amacleod@redhat.com>
6217         PR target/65697
6218         * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
6219         (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
6220         * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
6221         is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
6222         is_mm_seq_cst, is_mm_sync): New accessor functions.
6223         * builtins.c (expand_builtin_sync_operation,
6224         expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
6225         (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
6226         (get_memmodel,  expand_builtin_atomic_compare_exchange,
6227         expand_builtin_atomic_load, expand_builtin_atomic_store,
6228         expand_builtin_atomic_clear): Use new accessor routines.
6229         (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
6230         * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
6231         (maybe_emit_sync_lock_test_and_set): Use new accessors and
6232         MEMMODEL_SYNC_ACQUIRE.
6233         (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
6234         (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
6235         expand_atomic_store): Use new accessors.
6236         * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
6237         * tsan.c (instrument_builtin_call): Update check for memory model beyond
6238         final enum to use MEMMODEL_LAST.
6239         * c-family/c-common.c: Use new accessor for memmodel_base.
6240         * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
6241         accessors.
6242         * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
6243         arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
6244         mem_thread_fence, *dmb): Likewise.
6245         * config/alpha/alpha.c (alpha_split_compare_and_swap,
6246         alpha_split_compare_and_swap_12): Likewise.
6247         * config/arm/arm.c (arm_expand_compare_and_swap,
6248         arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
6249         * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
6250         atomic_loaddi): Likewise.
6251         * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
6252         Likewise.
6253         * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
6254         * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
6255         use new accessors.
6256         * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
6257         atomic_store<mode>, atomic_compare_and_swap<mode>,
6258         atomic_exchange<mode>): Use new accessors.
6259         * config/mips/mips.c (mips_process_sync_loop): Likewise.
6260         * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
6261         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
6262         rs6000_post_atomic_barrier): Add new cases.
6263         (rs6000_expand_atomic_compare_and_swap): Use new accessors.
6264         * config/rs6000/sync.md (mem_thread_fence): Add new cases.
6265         (atomic_load<mode>): Add new cases and use new accessors.
6266         (store_quadpti): Add new cases.
6267         * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
6268         accessors.
6269         * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
6270         * doc/extend.texi: Update docs to indicate 16 bits are used for memory
6271         model, not 8.
6273 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
6275         * ipa-devirt.c (type_with_linkage_p): New function.
6276         (type_in_anonymous_namespace_p): Move here from tree.c; assert that
6277         type has linkage.
6278         (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
6279         (can_be_name_hashed_p): Simplify.
6280         (hash_odr_name): Check that type has linkage before checking if it is
6281         anonymous.
6282         (types_same_for_odr): Likewise.
6283         (odr_name_hasher::equal): Likewise.
6284         (odr_subtypes_equivalent_p): Likewise.
6285         (warn_types_mismatch): Likewise.
6286         (get_odr_type): Likewise.
6287         (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
6288         * ipa-utils.h (odr_type_p): Move offline.
6289         * tree.c (need_assembler_name_p): Fix handling of types
6290         without linkages.
6291         (type_in_anonymous_namespace_p): Move to ipa-devirt.c
6293 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
6295         * timevar.c (timevar_enable): Delete in favor of...
6296         (g_timer): New global.
6297         (struct timevar_def): Move to timevar.h inside class timer.
6298         (struct timevar_stack_def): Likewise.
6299         (timevars): Delete global in favor of field "m_timevars" within
6300         class timer in timevar.h
6301         (stack): Likewise, in favor of field "m_stack".
6302         (unused_stack_instances): Likewise, in favor of field
6303         "m_unused_stack_instances".
6304         (start_time): Likewise, in favor of field "m_start_time".
6305         (get_time): Eliminate check for timevar_enable.
6306         (timer::timer): New function, built from part of timevar_init.
6307         (timevar_init): Rewrite idempotency test from using
6308         "timevar_enable" bool to using dynamic allocation of "g_timer".
6309         Move rest of implementation into timer's constructor.
6310         (timevar_push_1): Rename to...
6311         (timer::push): ...this, adding "m_" prefixes to variables that
6312         are now fields of timer.
6313         (timevar_pop_1): Likewise, rename to...
6314         (timer::pop): ...this, and add "m_" prefixes.
6315         (timevar_start): Replace test for "timevar_enable" with one for
6316         "g_timer", and move bulk of implementation to...
6317         (timer::start): ...here, adding "m_" prefixes.
6318         (timevar_stop): Likewise, from here...
6319         (timer::stop): ...to here.
6320         (timevar_cond_start): Likewise, from here...
6321         (timer::cond_start): ...to here.
6322         (timevar_cond_stop): Likewise, from here...
6323         (timer::cond_stop): ...to here.
6324         (validate_phases): Rename to...
6325         (timer::validate_phases): ...this, and add "m_" prefixes.  Make
6326         locals "total" and "tv" const.
6327         (timevar_print): Rename to...
6328         (timer::print): ...this, and add "m_" prefixes.  Make locals
6329         "total" and "tv" const.  Eliminate test for timevar_enable.
6330         * timevar.h (timevar_enable): Eliminate.
6331         (g_timer): New declaration.
6332         (timevar_push_1): Eliminate.
6333         (timevar_pop_1): Eliminate.
6334         (timevar_print): Eliminate.
6335         (class timer): New class.
6336         (timevar_push): Rewrite to use g_timer.
6337         (timevar_pop): Likewise.
6338         * toplev.c (toplev::~toplev): Likewise.
6340 2015-05-12  Richard Earnshaw  <rearnsha@arm.com>
6342         * arm-protos.h (arm_sched_autopref): Delete.
6343         (tune_params): Re-organize, use enums for flag values.
6344         (FUSE_OPS): New macro.
6345         * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
6346         (ARM_PREFETCH_BENEFICIAL): Likewise.
6347         (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
6348         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
6349         (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
6350         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
6351         (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
6352         (arm_cortex_a57_tune,  arm_xgene1_tune, arm_cortex_a5_tune)
6353         (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
6354         (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
6355         format.
6356         (arm_option_override, thumb2_reorg, arm_print_tune_info)
6357         (aarch_macro_fusion_pair_p): Update uses of current_tune.
6358         * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
6360 2015-05-12  Sandra Loosemore  <sandra@codesourcery.com>
6362         * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
6363         "break".
6365 2015-05-12  Chung-Lin Tang  <cltang@codesourcery.com>
6366             Sandra Loosemore <sandra@codesourcery.com>
6368         * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
6369         value.
6370         (REG_CLASS_NAMES): Add "IJMP_REGS".
6371         (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
6372         * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
6373         use new "c" register constraint.
6374         * config/nios2/constraint.md (c): New register constraint
6375         corresponding to IJMP_REGS.
6377 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
6379         * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
6380         *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
6381         define_splits): Delete, revamp, transmogrify into ...
6382         (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
6383         *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
6384         *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
6385         New.
6387 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
6389         * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
6390         gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
6392 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
6394         * config/rs6000/rs6000.md (extzv): FAIL for SImode.
6395         (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
6396         *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
6397         *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
6398         *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
6399         *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
6400         *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
6401         *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
6402         *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
6403         *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
6404         *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
6405         *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
6406         *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
6407         *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
6408         *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
6409         *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
6410         and 30 corresponding splitters): Delete.
6412 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
6414         * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
6415         zero_extract.
6417 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
6419         * combine.c (recog_for_combine_1): New function, factored out
6420         from recog_for_combine.
6421         (change_zero_ext): New function.
6422         (recog_for_combine): If recog fails, try again with the pattern
6423         modified by change_zero_ext; if that still fails, restore the
6424         pattern.
6426 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
6428         * combine.c (get_undo_marker): New function.
6429         (undo_to_marker): New function, largely factored out from ...
6430         (undo_all): ... this.  Adjust.
6432 2015-05-12  Richard Biener  <rguenther@suse.de>
6434         PR tree-optimization/66101
6435         * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
6436         fixup if we turn a loop exit edge to a fallthru edge.
6438 2015-05-12  Richard Biener  <rguenther@suse.de>
6440         PR tree-optimization/37021
6441         * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
6442         (SLP_TREE_TWO_OPERATORS): New define.
6443         * tree-vect-slp.c (vect_create_new_slp_node): Initialize
6444         SLP_TREE_TWO_OPERATORS.
6445         (vect_build_slp_tree_1): Allow two mixing plus/minus in an
6446         SLP node.
6447         (vect_build_slp_tree): Adjust.
6448         (vect_analyze_slp_cost_1): Likewise.
6449         (vect_schedule_slp_instance): Vectorize mixing plus/minus by
6450         emitting two vector stmts and mixing the results.
6452 2015-05-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
6454         * call.c (print_z_candidates): Remove dead code.
6456 2015-05-12  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6458         * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
6459         and zEC12_simple_fp.
6460         * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
6461         to 1.
6463 2015-05-12  Tom de Vries  <tom@codesourcery.com>
6465         PR tree-optimization/66010
6466         * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
6467         ifn_va_arg.
6468         * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
6469         (gimplify_va_arg_internal): Remove loc parameter.  Assert no array-typed
6470         va_lists are passed, and remove corresponding handling.
6471         (gimplify_va_arg_expr): Only take address of ap if necessary.  Add
6472         do_deref argument to ifn_va_arg.
6473         * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
6474         ifn_va_arg.
6476 2015-05-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6478         PR target/65955
6479         * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
6480         REG before taking its REGNO.
6482 2015-05-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
6484         * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
6485         rsp->sign_bit_copies and rsp->nonzero_bits into ...
6486         (update_rsp_from_reg_equal): This.  Also use REG_EQUAL note on src if
6487         present to get more accurate information about the number of sign bit
6488         copies and non zero bits.
6490 2015-05-12  Richard Biener  <rguenther@suse.de>
6492         * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
6493         do not allow unrolling.
6495 2015-05-11  Richard Henderson  <rth@redhat.com>
6497         * config/i386/i386-modes.def (CCP): New.
6498         * config/i386/i386.c (put_condition_code): Handle it.
6499         (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
6501 2015-05-11  Richard Henderson  <rth@redhat.com>
6503         * target.def (md_asm_clobbers): Replace with...
6504         (md_asm_adjust): this.
6505         * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
6506         (TARGET_MD_ASM_ADJUST): New.
6507         * tm.texi: Rebuild.
6508         * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
6509         * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
6510         * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
6512         * cfgexpand.c (check_operand_nalternatives): Accept vector of
6513         constraints instead of lists of outputs and inputs.
6514         (expand_asm_stmt): Save and restore input_location around the
6515         body of the function.  Move asm data into vectors instead of
6516         building tree lists.  Generate cleanup sequences as needed,
6517         rather than waiting til the end.  Use new md_asm_adjust hook.
6519         * config/vxworks.c: Include vec.h before target.h.
6520         * gimple.c: Likewise.
6521         * incpath.c: Likewise.
6522         * mode-switching.c: Likewise.
6524         * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
6525         (cris_md_asm_adjust): this.
6526         (TARGET_MD_ASM_CLOBBERS): Remove.
6527         (TARGET_MD_ASM_ADJUST): New.
6528         * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
6529         (ix86_md_asm_adjust): this.
6530         (TARGET_MD_ASM_CLOBBERS): Remove.
6531         (TARGET_MD_ASM_ADJUST): New.
6532         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
6533         (mn10300_md_asm_adjust): this.
6534         (TARGET_MD_ASM_CLOBBERS): Remove.
6535         (TARGET_MD_ASM_ADJUST): New.
6536         * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
6537         (rs6000_md_asm_adjust): this.
6538         (TARGET_MD_ASM_CLOBBERS): Remove.
6539         (TARGET_MD_ASM_ADJUST): New.
6540         * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
6541         (visium_md_asm_adjust): this.
6542         (TARGET_MD_ASM_CLOBBERS): Remove.
6543         (TARGET_MD_ASM_ADJUST): New.
6545 2015-05-11  Richard Henderson  <rth@redhat.com>
6547         * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
6548         if noutputs is zero.
6549         * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
6551         * cfgexpand.c (expand_asm_operands): Merge into...
6552         (expand_asm_stmt): ... here.
6554         * cfgexpand.c (expand_asm_operands): Don't call
6555         resolve_asm_operand_names.
6556         * stmt.c (resolve_asm_operand_names): Clarify block comment.
6558 2015-05-11  Jan Hubicka  <hubicka@ucw.cz>
6560         * dwarf2out.c (gen_member_die): Sanity check that we access
6561         TYPE_MAIN_VARIANT for TYPE_METHODS.
6562         * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
6563         checking TYPE_METHODS.
6564         * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
6565         if non-null.
6566         (build_distinct_type_copy): Clear TYPE_METHODS.
6567         (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
6568         (verify_type): Allow TYPE_METHODS to be error_mark_node.
6569         * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
6571 2015-05-11  Eric Botcazou  <ebotcazou@adacore.com>
6573         * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
6574         (emit_pattern_before_setloc): Likewise.
6576 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
6578         * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
6579         for define_peephole2s.
6580         (get_peephole2_pattern): New function.
6581         (main): Use it.  Call validate_pattern.
6583 2015-05-11  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
6585         * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
6586         LAST_CALLEE_SAVED_REG instead of hard-coded register number.
6587         (Last callee saved reg is different for AVR_TINY architecture)
6589 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
6591         * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
6592         when looking for memory references.
6594 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
6596         PR target/65753
6597         * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
6598         via function pointers.
6600 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
6602         * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
6603         indirect call by forcing address into a pseudo with -fno-plt.
6604         * common.opt (flag_plt): New option.
6605         * doc/invoke.texi (Code Generation Options): Add -fno-plt.
6606         ([-fno-plt]): Document.
6608 2015-05-11  Markus Trippelsdorf  <markus@trippelsdorf.de>
6610         PR bootstrap/66105
6611         * config/rs6000/option-defaults.h: Add space between string literal
6612         and macro name.
6614 2015-05-11  Thomas Preud'homme  <thomas.preudhomme@arm.com>
6616         * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
6617         accross ARM targets.
6619 2015-05-11  Christian Bruel  <christian.bruel@st.com>
6621         * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
6622         * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
6624 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
6626         PR rtl-optimization/66076
6627         * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
6628         Don't grow the heap array if it is already big enough from a
6629         previous iteration.
6631 2015-05-11  Christian Bruel  <christian.bruel@st.com>
6633         * config/arm/arm-protos.h (arm_declare_function_name): Declare.
6634         (is_called_in_ARM_mode): Remove.
6635         * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
6636         (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
6637         * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
6638          arm_declare_function_name.
6640 2015-05-11  Christian Bruel  <christian.bruel@st.com>
6642         * config/arm/arm.c (arm_option_override): Reoganized and split into :
6643         (arm_option_params_internal); New function.
6644         (arm_option_check_internal): New function.
6645         (arm_option_override_internal): New function.
6646         (thumb_code, thumb1_code): Remove.
6647         * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
6648         (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
6649         (thumb_code, thumb1_code): Remove.
6650         * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
6652 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
6654         * config/alpha/alpha.c (alpha_emit_set_const_1)
6655         (alpha_emit_set_long_const, alpha_extract_integer)
6656         (alpha_legitimate_constant_p, alpha_split_const_mov)
6657         (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
6658         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
6659         (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
6660         HOST_WIDE_INT_1U.
6661         * config/alpha/predicates.md (mode_mask_operand): Do not match
6662         const_double RTX.
6663         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
6664         * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
6665         Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
6666         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
6667         (*negtf_internal): Use gen_int_mode instead of immed_double_const.
6669 2015-05-11  Jakub Jelinek  <jakub@redhat.com>
6671         PR target/65780
6672         * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
6673         default_binds_local_p_2.
6674         * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
6675         * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
6677 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
6679         * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
6681 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
6683         Patch by Richard Biener
6684         * coverage.c (coverage_obj_init): Delay building of type variant
6685         until the type is finished.
6687 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
6689         * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
6690         mismatch between C and C++ type; compoare correctly ARG_TYPES
6691         for non-prototypes and output correctly parameter index for METHOD_TYPE.
6692         (odr_types_equivalent_p): Fix wording of warning about attributes;
6693         it is OK to match prototype and non-prototype.
6695 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
6697         * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
6698         TYPE_ARG_TYPES list.
6699         (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
6700         * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
6702 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
6704         * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
6705         * tree.h (is_lang_specific): Constify.
6707 2015-05-09  Marc Glisse  <marc.glisse@inria.fr>
6709         PR tree-optimization/64454
6710         * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
6711         Rewrite.
6713 2015-05-08  Jason Merrill  <jason@redhat.com>
6715         * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
6716         config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
6717         config/darwin.h, config/darwin9.h, config/elfos.h,
6718         config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
6719         config/microblaze/microblaze.h, config/mips/mips.h,
6720         config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
6721         config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
6722         config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
6723         config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
6724         config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
6725         cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
6726         dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
6727         ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
6728         ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
6729         modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
6730         tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
6731         between string literal and macro name.
6733 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6735         * jump.c: Change argument types to rtx_insn *.
6736         * rtl.h: Adjust.
6738 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6740         * lra-constraints.c: Change argument type to rtx_insn *.
6742 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6744         * df-problems.c: Change argument type to rtx_insn *.
6746 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6748         * combine.c: Change argument type to rtx_insn *.
6750 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6752         * rtl.h: Adjust.
6753         * rtlanal.c: Change argument type to rtx_insn *.
6755 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6757         * sched-deps.c: Change argument types to rtx_insn *.
6758         * sched-int.h: Adjust.
6760 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6762         * dwarf2cfi.c: Change argument type to rtx_insn *.
6764 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6766         * ira.c (decrease_live_ranges_number): Changetype of local
6767         variable to rtx_insn *.
6768         * recog.c: Change argument types to rtx_insn *.
6769         * recog.h: Adjust.
6771 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6773         * reorg.c: Change argument types to rtx_insn *.
6775 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6777         * ira-color.c: Change argument types to rtx_insn *.
6778         * lra-eliminations.c: Likewise.
6779         * ira.h: Adjust.
6781 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6783         * gcse.c: Change argument types to rtx_insn *.
6785 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6787         * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
6789 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6791         * emit-rtl.c (emit_debug_insn_before): Change argument type to
6792         rtx_insn *.
6793         * rtl.h: Adjust.
6795 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6797         * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
6798         * rtl.h: Adjust.
6800 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6802         * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
6803         * rtl.h: Adjust.
6805 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6807         * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
6808         * rtl.h: Adjust.
6810 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6812         * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
6813         * rtl.h: Adjust.
6815 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6817         * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
6818         to rtx_insn *.
6819         * rtl.h: Adjust.
6821 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6823         * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
6824         to rtx_insn *.
6825         * rtl.h: Likewise.
6827 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6829         * except.c (can_nonlocal_goto): Change type of argument to
6830         rtx_insn *.
6831         * rtl.h: Adjust.
6833 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6835         * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
6836         * rtl.h: Adjust.
6838 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6840         * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
6841         * cfgrtl.c (can_delete_label_p): Adjust.
6842         * rtl.h: likewise.
6844 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6846         * reorg.c (stop_search_p): Change argument to rtx_insn *.
6848 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6850         * except.c (make_reg_eh_region_note): Change argument to
6851         rtx_insn *.
6852         (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
6853         * except.h: Adjust.
6855 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6857         * mode-switching.c (commit_mode_sets): Change type of local
6858         variable from rtx to rtx_insn *.
6860 2015-05-08  Jim Wilson  <jim.wilson@linaro.org>
6862         * doc/install.texi (--enable-languages): Add missing jit and lto info.
6863         Add ^ to grep command.
6864         * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
6865         arg to last gimple_simplify declaration.  Add missing gimple_build
6866         declaration for built-in function case with four tree args.
6868 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
6869             Szabolcs Nagy  <szabolcs.nagy@arm.com>
6871         * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
6872         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
6873         (GNU_USER_DYNAMIC_LINKERN32): Update.
6875 2015-05-08  Richard Biener  <rguenther@suse.de>
6877         PR tree-optimization/66036
6878         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
6879         Handle strided group loads.
6880         (vect_verify_datarefs_alignment): Likewise.
6881         (vect_enhance_data_refs_alignment): Likewise.
6882         (vect_analyze_group_access): Likewise.
6883         (vect_analyze_data_ref_access): Likewise.
6884         (vect_analyze_data_ref_accesses): Likewise.
6885         * tree-vect-stmts.c (vect_model_load_cost): Likewise.
6886         (vectorizable_load): Likewise.
6888 2015-05-08  Segher Boessenkool  <segher@kernel.crashing.org>
6890         * config/rs6000/rs6000.md: Require operand inequality in one
6891         of the peepholes.
6893 2015-05-08  Richard Sandiford  <richard.sandiford@arm.com>
6894             Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
6896         * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
6897         from (set ...).
6898         * config/rx/rx.md (movdi, movdf): Likewise.
6899         Likewise for define_peephole2s.
6901 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
6903         * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
6904         vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
6905         vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
6906         vtst_u64): Rewrite using gcc vector extensions.
6908 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
6910         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
6911         vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
6913 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
6915         * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
6917 2015-05-08  Szabolcs Nagy  <szabolcs.nagy@arm.com>
6919         * config/glibc-stdint.h (OPTION_MUSL): Define.
6920         (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
6921         Change the definition based on OPTION_MUSL for 64 bit targets.
6922         * config/linux.h (OPTION_MUSL): Redefine.
6923         * config/alpha/linux.h (OPTION_MUSL): Redefine.
6924         * config/rs6000/linux.h (OPTION_MUSL): Redefine.
6925         * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
6927 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
6928             Szabolcs Nagy  <szabolcs.nagy@arm.com>
6930         * config.gcc (LIBC_MUSL): New tm_defines macro.
6931         * config/linux.h (OPTION_MUSL): Define.
6932         (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
6933         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
6934         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
6935         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
6936         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
6937         * config/linux.opt (mmusl): New option.
6938         * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
6939         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
6940         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
6941         * configure: Regenerate.
6943 2015-05-08  H.J. Lu  <hongjiu.lu@intel.com>
6944             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
6946         PR target/48904
6947         * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
6948         * config/i386/knetbsd-gnu64.h: New file.
6950 2015-05-08  Marek Polacek  <polacek@redhat.com>
6952         PR c/64918
6953         * doc/invoke.texi: Document -Woverride-init-side-effects.
6955 2015-05-07  Marek Polacek  <polacek@redhat.com>
6957         PR c/65179
6958         * doc/invoke.texi: Document -Wshift-negative-value.
6960 2015-05-06  Aditya Kumar  <hiraditya@msn.com>
6962         * gcov-tool.c (do_merge): Refactore to remove int ret.
6963         * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
6964         !type == FUNC to type != FUNC.
6965         * reload.h (struct target_reload): Changee to type of
6966         x_spill_indirect_levels from bool to unsigned char.
6968 2015-05-07  Richard Sandiford  <richard.sandiford@arm.com>
6970         * rtl.h (always_void_p): New function.
6971         * gengenrtl.c (always_void_p): Likewise.
6972         (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
6973         with code foo are always VOIDmode.
6974         * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
6975         * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
6976         compare-elim.c, config/aarch64/aarch64.c,
6977         config/aarch64/aarch64.md, config/alpha/alpha.c,
6978         config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
6979         config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
6980         config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
6981         config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
6982         config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
6983         config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
6984         config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
6985         config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
6986         config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
6987         config/ia64/vect.md, config/iq2000/iq2000.c,
6988         config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
6989         config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
6990         config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
6991         config/mep/mep.c, config/microblaze/microblaze.c,
6992         config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
6993         config/mn10300/mn10300.c, config/msp430/msp430.c,
6994         config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
6995         config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
6996         config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
6997         config/rs6000/altivec.md, config/rs6000/rs6000.c,
6998         config/rs6000/rs6000.md, config/rs6000/vector.md,
6999         config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
7000         config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
7001         config/sh/sh.md, config/sh/sh_treg_combine.cc,
7002         config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
7003         config/spu/spu.md, config/stormy16/stormy16.c,
7004         config/tilegx/tilegx.c, config/tilegx/tilegx.md,
7005         config/tilepro/tilepro.c, config/tilepro/tilepro.md,
7006         config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
7007         config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
7008         expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
7009         lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
7010         reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
7011         var-tracking.c: Update calls accordingly.
7013 2015-05-07  Segher Boessenkool  <segher@kernel.crashing.org>
7015         PR middle-end/192
7016         PR middle-end/54303
7017         * varasm.c (function_mergeable_rodata_prefix): New function.
7018         (mergeable_string_section): Use it.
7019         (mergeable_constant_section): Use it.
7021 2015-05-07  Jeff Law  <law@redhat.com>
7023         PR target/39726
7024         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
7025         simplifier to narrow arithmetic.
7026         * generic-match-head.c: (types_match, single_use): New functions.
7027         * gimple-match-head.c: (types_match, single_use): New functions.
7029 2015-05-07  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
7031         * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
7032         rtx type.
7034 2015-05-07  Richard Biener  <rguenther@suse.de>
7036         PR tree-optimization/66002
7037         * passes.def: Schedule another pass_merge_phi after ifcombine, right
7038         before phiopt.
7040 2015-05-07  Marek Polacek  <polacek@redhat.com>
7041             Martin Uecker  <uecker@eecs.berkeley.edu>
7043         * doc/invoke.texi: Document -fsanitize=bounds-strict.
7044         * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
7045         into SANITIZE_NONDEFAULT.
7046         * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
7048 2015-05-07  Uros Bizjak  <ubizjak@gmail.com>
7050         PR target/66015
7051         * config/alpha/alpha.c (alpha_override_options_after_change): New.
7052         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
7053         (alpha_override_options): Move align_loops, align_jumps and
7054         align_functions handling into alpha_override_options_after_change.
7056 2015-05-06  Sandra Loosemore  <sandra@codesourcery.com>
7057             Chris Jones  <chrisj@nvidia.com>
7058             Joshua Conner  <jconner@nvidia.com>
7060         * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
7061         linking of crtfastmath.o.
7062         * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
7064 2015-05-06  Segher Boessenkool  <segher@kernel.crashing.org>
7066         * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
7067         (cstore<mode>4_unsigned_imm): New expander.
7068         (cstore<mode>4): Remove empty constraint strings.  Use the new
7069         expanders.
7071 2015-05-06  Yvan Roux  <yvan.roux@linaro.org>
7073         PR target/64208
7074         * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
7075         alternatives.
7077 2015-05-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7079         * config/aarch64/geniterators.sh: Use standard BRE in sed.
7081 2015-05-06  Alan Modra  <amodra@gmail.com>
7083         PR target/66033
7084         * config/rs6000/rs6000.md (nop): Use an unspec pattern.
7085         (UNSPEC_NOP): Define.
7086         (reload_vsx_from_gpr<mode>): Add missing DONE.
7087         (reload_gpr_from_vsx<mode>): Likewise.
7088         * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
7089         (vsx_div_v2di, vsx_udiv_v2di): Likewise.
7091 2015-05-06  Christian Bruel  <christian.bruel@st.com>
7093         PR target/66015
7094         * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
7095         align_jumps, align_functions into aarch64_override_options_after_change.
7097 2015-05-06  Richard Biener  <rguenther@suse.de>
7099         * tree-vect-slp.c (vect_supported_load_permutation_p): Use
7100         vect_transform_slp_perm_load to check if we support a permutation
7101         for basic-block vectorization.
7103 2015-05-06  Nick Clifton  <nickc@redhat.com>
7105         * config/rl78/rl78.c (need_to_save): Save register 22 if it is
7106         used, even if it is not being used as a frame pointer.
7108 2015-05-05  Jason Merrill  <jason@redhat.com>
7110         * dwarf2out.c (gen_member_die): Don't emit anything for an
7111         anonymous class constructor.
7113 2015-05-05  David Malcolm  <dmalcolm@redhat.com>
7115         * auto-profile.c (afdo_find_equiv_class): Fix indentation so
7116         that it reflects the block structure.
7117         (afdo_propagate_edge): Likewise.
7118         (afdo_calculate_branch_prob): Likewise.
7119         (afdo_annotate_cfg): Likewise.
7120         * cfgcleanup.c (equal_different_set_p): Likewise.
7121         (try_crossjump_to_edge): Likewise.
7122         * cgraph.c (cgraph_node::verify_node): Likewise.
7123         * cgraphunit.c (expand_all_functions): Likewise.
7124         * config/i386/i386.c (ix86_expand_copysign): Likewise.
7125         (exact_dependency_1): Likewise.
7126         * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
7127         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
7128         * gensupport.c (process_define_subst): Likewise.
7129         * lto-wrapper.c (merge_and_complain): Likewise.
7130         * tree-if-conv.c (if_convertible_bb_p): Likewise.
7131         * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
7132         * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
7133         * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
7134         * tree-vect-loop.c (vectorizable_reduction): Likewise.
7135         * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
7136         * tree-vect-stmts.c (vectorizable_shift): Likewise.
7137         * tree-vrp.c (vrp_finalize): Likewise.
7138         * tree.c (variably_modified_type_p): Likewise.
7140 2015-05-05  Jack Howarth  <howarth.at.gcc@gmail.com>
7142         * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
7143         on darwin12 and later.
7144         * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
7145         file to pass -rdynamic on darwin12 and later.
7146         * config/darwin.opt (rdynamic): Add.
7148 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
7150         * doc/extend.texi (C Extensions): Update menu for moved Variable
7151         Attributes and Type Attributes sections.
7153 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
7155         PR target/65990
7156         * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
7157         if rep_8byte stringop strategy was specified for 32-bit target.
7159 2015-05-05  Ilya Tocar  <ilya.tocar@intel.com>
7161         PR target/65915
7162         * config/i386/i386.md (vector convert to float spltiter): Check for
7163         xmm16+, when splitting scalar float conversion.
7164         * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
7166 2015-05-05  Nick Clifton  <nickc@redhat.com>
7168         * config/msp430/msp430-opts.h (enum msp430_regions): New.
7169         * config/msp430/msp430.c (msp430_override_options): Complain if
7170         -mcode-region or -mdata-region is used on a non MSP430X.
7171         (msp430_section_attr): New function.  Checks lower, upper and
7172         either attributes.
7173         (msp430_attribute_table): Add lower, upper and either.
7174         (gen_prefix): New function.  Generates a prefix for a section
7175         name.
7176         (msp430_select_section): New function - handles the choice of
7177         section for an object.  Takes into account memory region
7178         attributes and options.
7179         (msp430_function_section): Use gen_prefix.
7180         (TARGET_SECTION_TYPE_FLAGS): Define.
7181         (msp430_section_type_flags): New function.
7182         (TARGET_ASM_UNIQUE_SECTION): Define.
7183         (msp430_unique_section): New function.
7184         (msp430_output_aligned_decl_common): New function.
7185         (msp430_do_not_relax_short_jumps): New function.
7186         * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
7187         Define.
7188         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
7189         * config/msp430/msp430-protos.h
7190         (msp430_do_not_relax_short_jumps): New prototype.
7191         (msp430_output_aligned_decl_common): New prototype.
7192         * config/msp430/msp430.md (length): New attribute.
7193         (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
7194         then use a long code sequence for short jumps.
7195         * config/msp430/msp430.opt (mcode-region): New.
7196         (mdata-region): New.
7197         * doc/invoke.texi: Document new options.
7198         * doc/extend.texi: Document new attributes.
7200 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
7202         * gcc/config/aarch64-protos.h (struct cpu_branch_cost): New.
7203         (tune_params): Add field branch_costs.
7204         (aarch64_branch_cost): Declare.
7205         * gcc/config/aarch64.c (generic_branch_cost): New.
7206         (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
7207         (cortexa53_tunings): Likewise.
7208         (cortexa57_tunings): Likewise.
7209         (thunderx_tunings): Likewise.
7210         (xgene1_tunings): Likewise.
7211         (aarch64_branch_cost): Define.
7212         * gcc/config/aarch64/aarch64.h (BRANCH_COST): Redefine.
7214 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
7216         * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
7217         and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
7218         * config/i386/i386.md: Ditto.
7219         * config/i386/winnt.c: Ditto.
7221 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
7223         * doc/extend.texi (__atomic Builtins): Move implementation details
7224         to the end of the description, rewrite opening paragraphs, state
7225         difference with __sync builtins, state C11/C++11 assumptions,
7226         weaken itemized descriptions, add explanation of memory model
7227         behaviour, expand description of compare-exchange, simplify text.
7229 2015-05-05  Renlin Li  <renlin.li@arm.com>
7231         * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
7233 2015-05-05  Yvan Roux  <yvan.roux@linaro.org>
7235         * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
7236         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
7237         * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
7238         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
7239         * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
7240         * configure: Regenerate.
7241         * configure.ac: Add --enable-fix-cortex-a53-843419 option.
7242         * doc/install.texi (aarch64*-*-*): Document new
7243         --enable-fix-cortex-a53-843419 option.
7244         * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
7245         and -mno-fix-cortex-a53-843419 options.
7247 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
7249         PR target/65871
7250         * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
7252 2015-05-04  Jan Hubicka  <hubicka@ucw.cz>
7254         * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
7255         fix overactive TYPE_MIN_VALUE check and add FIXME for type
7256         compatibility problems.
7258 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
7260         * config/microblaze/microblaze.md (cbranchsi4): Added immediate
7261         constraints.
7262         (cbranchsi4_reg): New.
7263         * config/microblaze/microblaze.c
7264         (microblaze_expand_conditional_branch_reg): New.
7265         * config/microblaze/microblaze-protos.h
7266         (microblaze_expand_conditional_branch_reg): New prototype.
7268 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
7270         * config/microblaze/microblaze.md (peephole2): New.
7272 2015-05-04  Jeff Law  <law@redhat.com>
7274         Revert:
7275         2015-05-04  Jeff Law  <law@redhat.com>
7277         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
7278         simplifier to narrow arithmetic.
7279         * generic-match-head.c: (types_match, single_use): New functions.
7280         * gimple-match-head.c: (types_match, single_use): New functions.
7282 2015-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
7284         PR target/65987
7285         * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
7286         (split_branches): Likewise.
7288 2015-05-04  Sandra Loosemore  <sandra@codesourcery.com>
7290         * common.opt (fdelete-null-pointer-checks): Init to -1.
7291         * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
7292         override flag_delete_null_pointer_checks default.
7293         * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
7294         behavior re address zero.  Better document target-specific behavior.
7295         (-fisolate-errneous-paths-dereference): Mention relationship to
7296         -fdelete-null-pointer-checks.
7298 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
7300         PR tree-optimization/65984
7301         * ubsan.c: Include tree-cfg.h.
7302         (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
7303         stmt_could_throw_p test, rename can_throw variable to ends_bb.
7305 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
7307         * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
7308         to CONST_DOUBLE_P predicate.
7309         (standard_sse_constant_p): Return 0 for !TARGET_SSE.
7310         (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
7311         allow only operands that satisfy standard_sse_constant_p predicate.
7312         * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
7313         to CONST_DOUBLE_P predicate.
7315 2015-05-04  Jeff Law  <law@redhat.com>
7317         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
7318         simplifier to narrow arithmetic.
7319         * generic-match-head.c: (types_match, single_use): New functions.
7320         * gimple-match-head.c: (types_match, single_use): New functions.
7322 2015-05-04  Andreas Tobler  <andreast@gcc.gnu.org>
7324         * config/arm/arm.c: Restore bootstrap.
7326 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
7328         * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
7329         * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
7330         as CONST_WIDE_INT, not CONST_DOUBLE.
7331         (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
7332         (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
7333         (ix86_find_base_term): Do not check for CONST_DOUBLE.
7334         (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
7335         (ix86_build_signbit_mask): Rewrite using wide ints.
7336         (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
7337         (ix86_rtx_costs): Handle CONST_WIDE_INT.
7338         (find_constant): Ditto.
7339         * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
7340         using gen_int_mode.
7341         * config/i386/predicates.md (x86_64_immediate_operand)
7342         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
7343         (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
7344         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
7345         (const0_operand): Also match const_wide_int.
7346         (constm1_operand): Ditto.
7347         (const1_operand): Ditto.
7349 2015-05-04  Richard Biener  <rguenther@suse.de>
7351         PR tree-optimization/65965
7352         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
7353         store groups at gaps.
7355 2015-05-04  Richard Biener  <rguenther@suse.de>
7357         PR tree-optimization/65935
7358         * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
7359         then make sure to apply that swapping to the IL.
7361 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
7363         * Makefile.in (PATCHLEVEL_c): New variable.
7364         (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
7365         expand the same way as if DEVPHASE_c was non-empty.
7367 2015-05-04  Kai Tietz  <ktietz@redhat.com>
7369         PR target/65559
7370         * lto-wrapper.c (run_gcc): Open filename
7371         in binary-mode.
7373 2015-05-03  Sandra Loosemore  <sandra@codesourcery.com>
7375         * doc/extend.texi (Variable Attributes, Type Attributes):  Move
7376         sections up in file, to immediately after the Function Attributes
7377         section.
7379 2015-05-02  Jan Hubicka  <hubicka@ucw.cz>
7381         * tree.c (verify_type): Check various uses of TYPE_MINVAL.
7383 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7385         * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
7386         (insert_partition_copy_on_edge): Adjust.
7387         (insert_rtx_to_part_on_edge): Likewise.
7388         (insert_part_to_rtx_on_edge): Likewise.
7390 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7392         * function.c (set_return_jump_label): Change type of argument to
7393         rtx_insn *.
7394         * function.h (set_return_jump_label): Adjust.
7396 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7398         * reload.h (struct reg_equivs_t): Change type of init to
7399         rtx_insn *.
7400         * ira.c (fix_reg_equiv_init): Adjust.
7401         * reload1.c (eliminate_regs_1): Likewise.
7402         (init_eliminable_invariants): Likewise.
7404 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7406         * cselib.c (fp_setter_insn): Take a rtx_insn *.
7407         * cselib.h (fp_setter_insn): Adjust.
7409 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7411         * recog.c (struct validate_replace_src_data): Change type of
7412         insn field to rtx_insn *.
7413         (validate_replace_src_group): Change type of argument to rtx_insn *.
7414         * recog.h (validate_replace_src_group): Adjust.
7416 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7418         * haifa-sched.c: Change the type of some variables to rtx_insn *.
7419         * sched-deps.c: Likewise.
7420         * sched-int.h: Likewise.
7421         * sched-rgn.c: Likewise.
7422         * sel-sched.c: Likewise.
7424 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7426         to rtx_insn *.
7427         * config/i386/i386.c: Change the type of some arguments to
7428         rtx_insn *.
7429         * config/arm/arm.c: Likewise.
7431 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7433         * lra-constraints.c: Change type of some arguments to rtx_insn *.
7435 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7437         * regcprop.c (kill_autoinc_value): Change type of argument to
7438         rtx_insn *.
7440 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7442         * genrecog.c (print_subroutine): Adjust.
7443         * recog.c (get_bool_attr_mask_uncached): Likewise.
7444         * recog.h (struct recog_data_d): Change the type of insn to
7445         rtx_insn *.
7447 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7449         * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
7451 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7453         * df-problems.c (df_set_note): Change type of argument to
7454         rtx_insn *.
7456 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7458         * builtins.c (expand_builtin_trap): Change type of local
7459         variable to rtx_insn *.
7460         (add_sched_insns_for_speculation): Likewise.
7461         (ix86_emit_save_regs): Likewise.
7462         (get_scratch_register_on_entry): Likewise.
7463         (ix86_emit_restore_reg_using_pop): Likewise.
7464         (ix86_emit_leave): Likewise.
7465         (ix86_emit_restore_regs_using_mov): Likewise.
7466         (ix86_expand_epilogue): Likewise.
7467         Likewise.
7468         (rl78_alloc_physical_registers_umul): Likewise.
7469         * cselib.c (discard_useless_locs): Likewise.
7470         (cselib_invalidate_regno): Likewise.
7471         (cselib_invalidate_mem): Likewise.
7472         * function.c (expand_function_start): Likewise.
7473         (emit_use_return_register_into_block): Likewise.
7474         * gcse.c: Likewise.
7475         * haifa-sched.c (ok_for_early_queue_removal): Likewise.
7476         * ifcvt.c (noce_get_alt_condition): Likewise.
7477         * loop-doloop.c (doloop_condition_get): Likewise.
7478         * lra-constraints.c (inherit_in_ebb): Likewise.
7479         * modulo-sched.c (sms_schedule_by_order): Likewise.
7480         * recog.c (next_insn_tests_no_inequality): Likewise.
7481         * reorg.c (emit_delay_sequence): Likewise.
7482         (update_reg_dead_notes): Likewise.
7483         (fix_reg_dead_note): Likewise.
7484         (fill_slots_from_thread): Likewise.
7485         (delete_computation): Likewise.
7487 2015-05-01  Sandra Loosemore  <sandra@codesourcery.com>
7489         * doc/extend.texi (Variable Attributes): Add menu and proper
7490         @nodes to subsections.  Move Microsoft Windows attributes to
7491         their own subsection.
7492         (Type Attributes): Reorganize introduction to remove duplicate
7493         list of attributes.  Add menu and proper @nodes to subsections.
7494         Alphabetize the main table of common attributes.
7496 2015-05-01  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
7498         * match.pd: New simplification patterns.
7499         (x + (x & 1))  -> ((x + 1) & ~1)
7500         (x & ~(x & y)) -> ((x & ~y))
7501         (x | ~(x | y)) -> ((x | ~y))
7503 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7505         * target.def (attribute_table): Mention that struct attribute_spec
7506         is defined in tree-core.h rather than tree.h
7507         * doc/tm.texi: Regenerate.
7509 2015-05-01  Richard Sandiford  <richard.sandiford@arm.com>
7511         * genrecog.c (test): Rename to rtx_test.  Update rest of file
7512         accordingly.
7514 2015-05-01  Andreas Schwab  <schwab@linux-m68k.org>
7516         PR translation/65959
7517         * params.h (DEFPARAM): Rename msgid to nocmsgid.
7519 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
7521         * gcc/config/aarch64/aarch64-protos.h (tune_params):
7522         Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
7523         * gcc/config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
7524         Return value depending on target.
7525         (generic_tunings): Initialize new target settings.
7526         (cortexa53_tunings): Likewise.
7527         (cortexa57_tunings): Likewise.
7528         (thunderx_tunings): Likewise.
7529         (xgene1_tunings): Likewise.
7531 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
7533         * gcc/config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
7534         Make Cortex-A53 shift costs more accurate.
7536 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7538         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
7539         UNSIGNED_FLOAT.
7541 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
7543         * gcc/config/aarch64/aarch64.c (aarch64_rtx_costs):
7544         Calculate cost of op0 and op1 in PLUS and MINUS cases.
7546 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7548         * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
7549         Add cost of op0 in the compare-with-fpzero case.
7551 2015-04-30  David Malcolm  <dmalcolm@redhat.com>
7553         * builtins.c (fold_builtin_1): Remove spurious second
7554         semicolon.
7555         * cgraph.h (symtab_node::get_availability): Likewise.
7556         * opts.c (common_handle_option): Remove spurious second semicolon.
7557         * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
7558         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
7560 2015-04-30  Caroline Tice  <cmtice@google.com>
7562         PR gcov-profile/65929
7563         * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
7564         (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
7565         * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
7566         (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
7567         * doc/tm.texi: Regenerate.
7568         * final.c (final_scan_insn):  Use ASM_DECLARE_COLD_FUNCTION_NAME
7569         instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
7570         * varasm.c (assemble_end_function):  Use ASM_DECLARE_COLD_FUNCTION_SIZE
7571         instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
7573 2015-04-30  Marek Polacek  <polacek@redhat.com>
7575         * varasm.c (handle_cache_entry): Fix logic.
7577 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7579         * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
7580         (*extrsi5_insn_uxtw_alt): Likewise.
7581         * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
7582         (aarch64_rtx_costs, IOR case): Use above to properly cost extr
7583         operations.
7585 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7587         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
7588         fabd in ABS case.
7590 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7592         * config/aarch64/aarch64.md
7593         (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
7594         (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
7595         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
7596         appropriately.  Handle alternative EON form.
7598 2015-04-30  Renlin Li  <renlin.li@arm.com>
7600         * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
7601         * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
7603 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
7605         PR ipa/65873
7606         * ipa-inline.c (can_inline_edge_p): It is safe to inline across
7607         -fstrict-aliasing boundaries.
7609 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7611         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
7612         and [SU]MNEGL patterns.
7614 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7616         * config/aarch64/aarch64.c (aarch64_shift_p): New function.
7617         (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
7618         combined arithmetic-shift ops.  Properly handle all shift and extend
7619         operations that can occur in combination with PLUS/MINUS.
7620         Rename maybe_fma to compound_p.
7621         (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
7622         arithmetic and shift operations.
7624 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7626         * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
7627         rather than arith_shift cost when costing ADD/MINUS of an
7628         extended value.
7630 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
7632         PR lto/65948
7633         * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
7634         to itself.
7636 2015-04-30  Richard Sandiford  <richard.sandiford@arm.com>
7638         * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
7639         are for the same position.
7641 2015-04-29  Aditya Kumar  <hiraditya@hotmail.com>
7643         * tree-vectorizer.c (set_uid_loop_bbs): New.  Factored out of
7644         vectorize_loops.
7645         (vectorize_loops): Use it.
7647 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
7649         * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
7650         for aggregate types.
7651         (register_odr_type): Be ready for MAIN_VARIANT of ODR type
7652         type to be non_ODR.
7653         * tree.c (need_assembler_name_p): Compute mangled name for
7654         non-fundamental types and integer types.
7656 2015-04-29  Mikhail Maltsev  <maltsevm@gmail.com>
7658         * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
7659         manual swaps.
7660         * expr.c (expand_expr_real_2): Likewise.
7662 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
7664         * tree.c (build_common_builtin_nodes): Do not build
7665         __builtin_alloca_with_align as equivalent of library alloca.
7667 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
7669         * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
7670         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
7671         bugus variants.
7672         * tree.c: Include print-tree.h and ipa-utils.h
7673         (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
7674         (free_lang_data_in_cgraph): Call verify_type.
7675         (verify_type_variant): New function.
7676         (verify_type): New function.
7677         * tree.h (verify_type): Declare.
7679 2015-04-29  Steve Ellcey  <sellcey@imgtec.com>
7681         * config/mips/mips-cpus.def: (mips4): Change default processor
7682         from PROCESSOR_R8000 to PROCESSOR_R10000.
7684 2015-04-29  Petar Jovanovic  <petar.jovanovic@rt-rk.com>
7686         * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
7687         la/jalr instead of jal.
7689 2015-04-29  Uros Bizjak  <ubizjak@gmail.com>
7691         PR target/65871
7692         * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
7693         (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
7694         (setcc+movzbl peephole2): Check also clobbered reg.
7695         (setcc+andl peephole2): Ditto.
7697 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
7699         PR libgomp/65099
7700         * config/nvptx/mkoffload.c (target_ilp32): New variable.
7701         (main): Set it depending on "-foffload-abi=[...]".
7702         (compile_native, main): Use it to pass "-m32" or "-m64" to the
7703         compiler.
7705 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
7707         PR target/65770
7708         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
7709         vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
7710         Flip lane index back at assembly time for bigendian.
7712 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
7714         * tree.h (OMP_STANDALONE_CLAUSES): New macro.
7715         * gimplify.c (gimplify_omp_workshare): Use it.
7717 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
7719         * Makefile.in (build/genrecog.o): Depend on inchash.h.
7720         (build/genrecog$(build_exeext): Depend on build/hash-table.o and
7721         build/inchash.o
7722         * genrecog.c: Rewrite most of the code except for the third page.
7724 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
7726         * inchash.h, inchash.c: Include bconfig.h for build objects.
7727         * Makefile.in (build/inchash.o): New rule.
7729 2015-04-29  Yvan Roux  <yvan.roux@linaro.org>
7731         PR target/65924
7732         * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
7733         number in type attribute expression.
7735 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
7737         * loop-iv.c (canon_condition): Generalize to all types of integer
7738         constant.
7740 2015-04-29  Bernhard Reuther-Fischer  <aldot@gcc.gnu.org>
7742         * gimple-walk.c: Prune duplicate or unneeded includes.
7743         (walk_gimple_asm): Only call parse_input_constraint or
7744         parse_output_constraint if their findings are used.
7745         Honour parse_input_constraint and parse_output_constraint
7746         result.
7748 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
7750         * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
7752 2015-04-29  Tom de Vries  <tom@codesourcery.com>
7754         PR tree-optimization/65893
7755         * passes.def (pass_all_optimizations): Move pass_stdarg to after
7756         pass_dce.
7758 2015-04-29  Richard Biener  <rguenther@suse.de>
7760         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
7761         compute GROUP_SIZE for basic-block SLP.
7762         * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
7763         take into account gaps.
7764         (vect_get_mask_element): Properly reject references to previous
7765         vectors.
7766         (vect_transform_slp_perm_load): Likewise.
7768 2015-04-29  Christian Bruel  <christian.bruel@st.com>
7770         PR target/64835
7771         * config/i386/i386.c (ix86_default_align): New function.
7772         (ix86_override_options_after_change): Call ix86_default_align.
7773         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
7774         (ix86_override_options_after_change): New function.
7776 2015-04-28  Jeff Law  <law@redhat.com>
7778         * tree-ssa-dom.c (record_equality); Fix comment typos.
7780 2015-04-28  Tom de Vries  <tom@codesourcery.com>
7782         PR tree-optimization/65887
7783         * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
7785 2015-04-28  Sandra Loosemore  <sandra@codesourcery.com>
7787         * doc/extend.texi (Declaring Attributes of Functions): Split into
7788         subsections by target.  Alphabetize the table of common attributes.
7789         Rewrite some of the introductory text to reflect the new structure.
7790         Update some cross-references to point to the new subsections.
7791         (Attribute Syntax): Put paragraph about "__" naming here.  Remove
7792         duplicate copies in the discussion of function, label, and type
7793         attributes.
7795 2015-04-28  Dominique d'Humieres  <dominiq@lps.ens.fr>
7797         PR bootstrap/65910
7798         * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
7800 2015-04-28  Jason Merrill  <jason@redhat.com>
7802         PR c++/65734
7803         * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
7804         (finalize_type_size): Respect TYPE_USER_ALIGN.
7805         (layout_type) [ARRAY_TYPE]: Likewise.
7807 2015-04-28  Yvan Roux  <yvan.roux@linaro.org>
7809         * config/arm/arm.md (*arm_movt): Fix type attribute.
7810         (*cmpsi_shiftsi): Likewise.
7811         (*cmpsi_shiftsi_swp): Likewise.
7812         (*movsicc_insn): Likewise.
7813         (*cond_move): Likewise.
7814         (*if_plus_move): Likewise.
7815         (*if_move_plus): Likewise.
7816         (*if_arith_move): Likewise.
7817         (*if_move_arith): Likewise.
7818         (*if_shift_move): Likewise.
7819         (*if_move_shift): Likewise.
7820         (*arm_movtas_ze): Likewise.
7821         * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
7822         redundancy and type attribute.
7823         (*thumb2_movsi_insn): Fix type attribute.
7824         (*thumb2_addsi_short): Likewise.
7825         (thumb2_addsi3_compare0): Likewise.
7826         (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
7827         attributes accordingly.
7829 2015-04-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
7831         PR other/65911
7832         * function.c (pad_to_arg_alignment): Add parentheses.
7834 2015-04-28  Uros Bizjak  <ubizjak@gmail.com>
7836         * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
7837         libgcc/config/frv/elf-lib.h.
7839 2015-04-28  Tom de Vries  <tom@codesourcery.com>
7841         * tree-call-cdce.c: Fix example in header comment.
7843 2015-04-28  Richard Biener  <rguenther@suse.de>
7845         PR tree-optimization/62283
7846         * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
7847         fails fatally and we are vectorizing a basic-block simply
7848         cause the child to be constructed piecewise.
7849         (vect_analyze_slp_cost_1): Adjust.
7850         (vect_detect_hybrid_slp_stmts): Likewise.
7851         (vect_bb_slp_scalar_cost): Likewise.
7852         (vect_get_constant_vectors): For piecewise constructed
7853         constants place them after the last def.
7854         (vect_get_slp_defs): Adjust.
7855         * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
7856         externals for basic-block vectorization.
7858 2015-04-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
7860         PR target/63503
7861         * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
7862         aarch64-*-*.
7863         * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
7864         * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
7865         (AARCH64_TUNE_FMA_STEERING): Likewise.
7866         * config/aarch64/aarch64-cores.def: Set
7867         AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
7868         FMUL/FMADD instructions.
7869         * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
7870         (aarch64_override_options): Include cortex-a57-fma-steering.h.  Call
7871         aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
7872         * config/aarch64/cortex-a57-fma-steering.h: New file.
7873         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
7875 2015-04-28  Richard Sandiford  <richard.sandiford@arm.com>
7877         * gensupport.c (std_preds): Add missing codes to address_operand entry.
7879 2015-04-28  Richard Biener  <rguenther@suse.de>
7881         PR tree-optimization/65851
7882         * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
7883         changing CONSTANT to CONSTANT non-copy.  Get new_val by reference.
7884         (ccp_lattice_meet): Remove stray argument.  Use operand_equal_p
7885         rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
7886         (ccp_visit_phi_node): Adjust.
7887         (evaluate_stmt): For simplifications to SSA names return its
7888         lattice value if that isn't VARYING.  Return immediately when
7889         simplified to a constant.
7890         (visit_assignment): Adjust.
7891         (ccp_visit_stmt): Likewise.
7893 2015-04-28  Tom de Vries  <tom@codesourcery.com>
7895         PR tree-optimization/65818
7896         * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
7897         evaluated.
7899 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7901         * calls.c (save_fixed_argument_area): Don't check
7902         ARGS_GROW_DOWNWARD with the preprocessor.
7903         (restore_fixed_argument_area): Likewise.
7904         (mem_overlaps_already_clobbered_arg_p): Likewise.
7905         (check_sibcall_argument_overlap): Likewise.
7906         (expand_call): Likewise.
7907         (emit_library_call_value_1): Likewise.
7908         (store_one_arg): Likewise.
7909         * function.c (assign_parms): Likewise.
7910         (locate_and_pad_parm): Likewise.
7911         (pad_to_arg_alignment): Likewise.
7912         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
7914 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7916         * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
7917         * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
7918         * calls.c (save_fixed_argument_area): Don't chekc if
7919         ARGS_GROW_DOWNWARD is defined.
7920         (restore_fixed_argument_area): Likewise.
7921         (mem_overlaps_already_clobbered_arg_p): Likewise.
7922         (check_sibcall_argument_overlap): Likewise.
7923         (expand_call): Likewise.
7924         (emit_library_call_value_1): Likewise.
7925         (store_one_arg): Likewise.
7926         * function.c (assign_parms): Likewise.
7927         (locate_and_pad_parm): Likewise.
7928         (pad_to_arg_alignment): Likewise.
7929         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
7931 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7933         * defaults.h (gen_epilogue): New function.
7934         * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
7935         defined.
7936         * cfgrtl.c (cfg_layout_finalize): Likewise.
7937         * df-scan.c: Likewise.
7938         * function.c (thread_prologue_and_epilogue_insns): Likewise.
7939         (reposition_prologue_and_epilogue_notes): Likewise.
7940         * reorg.c (find_end_label): Likewise.
7941         * toplev.c: Likewise.
7943 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7945         * bb-reorder.c (HAVE_return): Don't check if its undefined.
7946         * defaults.h (gen_simple_return): New function.
7947         (gen_simple_return): Likewise.
7948         (HAVE_return): Add default definition to false.
7949         (HAVE_simple_return): Likewise.
7950         * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
7951         HAVE_return and HAVE_simple_return are defined.
7952         * function.c (gen_return_pattern): Likewise.
7953         (convert_jumps_to_returns): Likewise.
7954         (thread_prologue_and_epilogue_insns): Likewise.
7955         * reorg.c (find_end_label): Likewise.
7956         (dbr_schedule): Likewise.
7957         * shrink-wrap.c: Likewise.
7958         * shrink-wrap.h: Likewise.
7960 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7962         * defaults.h (EPILOGUE_USES): Add default definition of false.
7963         * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
7964         * resource.c (init_resource_info): Likewise.
7966 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7968         * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
7969         to false.
7970         * dwarf2out.c (field_byte_offset): REmove check if
7971         PCC_BITFIELD_TYPE_MATTERS is defined.
7972         * stor-layout.c (layout_decl): Likewise.
7973         (update_alignment_for_field): Likewise.
7974         (place_field): Likewise.
7976 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7978         * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
7979         true.
7980         * regrename.c (check_new_reg_p): Remove check if
7981         HARD_REGNO_RENAME_OK is defined.
7982         * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
7984 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7986         * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
7987         * cse.c (fold_rtx): Likewise.
7988         * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
7989         * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
7990         * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
7991         * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
7992         * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
7993         * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
7994         * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
7995         * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
7996         * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
7997         * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
7998         * Likewise.
7999         * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
8000         * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
8001         * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
8002         * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
8003         * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
8004         * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
8005         * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
8006         * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
8007         * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
8008         * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
8009         * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
8010         * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
8011         * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
8012         * doc/tm.texi: Regenerate.
8013         * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
8014         either true or false.
8016 2015-04-27  Jeff Law  <law@redhat.com>
8018         PR tree-optimization/65217
8019         * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
8020         of them has a single use, make sure it is the LHS of the implied
8021         copy.
8023 2015-04-28  Alan Modra  <amodra@gmail.com>
8025         PR target/65810
8026         * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
8027         (offsettable_ok_by_alignment): Use minimum of decl and toc
8028         pointer alignment.  Replace dead code with assertion.
8029         (use_toc_relative_ref): Add mode arg.  Return false in -mcmodel=medium
8030         case if size exceeds toc pointer alignment.
8031         (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
8032         (rs6000_emit_move): Likewise.
8033         * configure.ac: Add linker toc pointer alignment check.
8034         * configure: Regenerate.
8035         * config.in: Regenerate.
8037 2015-04-27  Yoshinori Sato <ysato@users.sourceforge.jp>
8039         * config.gcc: Add h8300-*-linux.
8040         * config/h8300/linux.h: New.
8041         * config/h8300/t-linux: New.
8042         * config/h8300/h8300.c (h8300_option_override): Normal mode
8043         is not supported for h8300-*-linux.
8044         (h8300_file_start): Target priority change.
8045         (get_shift_alg): Likewise.
8046         (h8300_shift_need_scratch_p): Likewise.
8047         * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
8048         * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
8050 2015-04-27  Caroline Tice  <cmtice@google.com>
8052         * final.c (final_scan_insn):  Output cold_function_name as function
8053         type.
8054         * varasm.c (cold_function_name):  Make global.
8055         (assemble_start_function):  Re-set cold_function_name.
8056         (assemble_end_function): Output cold partition size.
8057         * varasm.h (cold_function_name):  Declare global.
8059 2015-04-27  Ilya Tocar  <ilya.tocar@intel.com>
8061         * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
8062         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
8063         constraint.
8064         (*movxi_internal_avx512f): Ditto.
8065         (define_split): Check for xmm16+, when splitting scalar float_extend.
8066         (*extendsfdf2_mixed): Use "v" constraint.
8067         (define_split): Check for xmm16+, when splitting scalar float_truncate.
8068         (*truncdfsf_fast_sse): Use "v" constraint.
8069         (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
8070         (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
8071         (define_peephole2): Check for xmm16+, when converting scalar
8072         float_truncate.
8073         (define_peephole2): Check for xmm16+, when converting scalar
8074         float_extend.
8075         (*fop_<mode>_comm_mixed): Use "v" constraint.
8076         (*fop_<mode>_comm_sse): Ditto.
8077         (*fop_<mode>_1_mixed): Ditto.
8078         (*sqrt<mode>2_sse): Ditto.
8079         (*ieee_s<ieee_maxmin><mode>3): Ditto.
8081 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8083         * combine.c (simplify_if_then_else): Use std::swap instead
8084         of manually swapping.
8085         (known_cond): Likewise.
8086         (simplify_comparison): Likewise.
8088 2015-04-27  Peter Bergner  <bergner@vnet.ibm.com>
8090         PR target/64579
8091         * config/rs6000/htm.md: Remove all define_expands.
8092         (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
8093         UNSPECV_HTM_TABORTWCI): Remove.
8094         (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
8095         (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
8096         trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
8097         (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
8098         (tabortdc_internal, tabortdci_internal, tabortwc_internal,
8099         tabortwci_internal): Remove define_insns.
8100         (tabort<wd>c, tabort<wd>ci): New define_insns.
8101         (tabort): Use gpc_reg_operand.
8102         (tcheck): Remove operand.
8103         (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
8104         * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
8105         expected value.
8106         * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
8107         (BU_HTM_SPR1): Rename to BU_HTM_V1.  Remove use of RS6000_BTC_SPR.
8108         (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
8109         tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
8110         tsr, ttest): Pass in the RS6000_BTC_CR attribute.
8111         (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
8112         get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
8113         (tcheck): Remove builtin argument.
8114         * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
8115         not TARGET_64BIT.
8116         (htm_expand_builtin): Fix usage of expandedp.  Disallow usage of the
8117         tabortdc and tabortdci builtins when not in 64-bit mode.
8118         Modify code to handle the loss of the HTM define_expands.
8119         Emit code to copy the CR register to TARGET.
8120         (htm_init_builtins): Modify code to handle the loss of the HTM
8121         define_expands.
8122         * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
8123         (RS6000_BTC_64BIT): Likewise.
8124         (RS6000_BTC_CR): New macro.
8125         * doc/extend.texi: Update documentation for htm builtins.
8127 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8129         * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
8130         of manually swapping.
8131         (simplify_associative_operation): Likewise.
8132         (simplify_binary_operation): Likewise.
8133         (simplify_plus_minus): Likewise.
8134         (simplify_relational_operation): Likewise.
8135         (simplify_ternary_operation): Likewise.
8137 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
8139         * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
8140         (xs_hi_nonmemory_operand): Remove error.
8141         * config/stormy16/stormy16.md (movhi, movhi_internal): Use
8142         general_operand rather than xs_hi_general_operand.
8144 2015-04-27  Richard Biener  <rguenther@suse.de>
8146         * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
8147         (record_equivalences_from_stmt): Valueize rhs.
8148         (record_equality): Canonicalize x and y order via
8149         tree_swap_operands_p.  Do not swap operands for same loop depth.
8151 2015-04-27  Georg-Johann Lay  <avr@gjlay.de>
8153         PR target/65296
8154         PR target/65895
8155         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
8156         Add hint how to use own spec file.
8158 2015-04-27  Jakub Jelinek  <jakub@redhat.com>
8160         PR tree-optimization/65875
8161         * tree-vrp.c (update_value_range): If in is_new case setting
8162         old_vr to VR_VARYING, also set new_vr to it.  Remove
8163         old_vr->type == VR_VARYING test.
8164         (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
8165         SSA_PROP_INTERESTING if update_value_range returned true,
8166         but new range is VR_VARYING.
8168 2015-04-27  Thomas Preud'homme  <thomas.preudhomme@arm.com>
8170         * combine.c (sign_extend_short_imm): New.
8171         (set_nonzero_bits_and_sign_copies): Use above new function for sign
8172         extension of src short immediate.
8173         (reg_nonzero_bits_for_combine): Likewise for tem.
8175 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
8177         * stor-layout.c (self_referential_component_ref_p): New predicate.
8178         (copy_self_referential_tree_r): Use it.
8179         (self_referential_size): Punt for simple operations directly involving
8180         self-referential component references.
8181         * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
8183 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
8185         * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
8187 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
8189         * vec.h (vec): Make splice arguments const.  Update definitions
8190         accordingly.
8192 2015-04-27  Yvan Roux  <yvan.roux@linaro.org>
8194         * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
8195         alternatives.
8197 2015-04-26  Tom de Vries  <tom@codesourcery.com>
8199         PR tree-optimization/65826
8200         * internal-fn.def: Mark VA_ARG with ECF_LEAF.
8202 2015-04-24  Steve Ellcey  <sellcey@imgtec.com>
8204         * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
8205         (*madd3<mode>): Ditto.
8206         (*msub4<mode>): Ditto.
8207         (*msub3<mode>): Ditto.
8208         (*nmadd4<mode>): Ditto.
8209         (*nmadd3<mode>): Ditto.
8210         (*nmadd4<mode>_fastmath): Ditto.
8211         (*nmadd3<mode>_fastmath): Ditto.
8212         (*nmsub4<mode>): Ditto.
8213         (*nmsub3<mode>): Ditto.
8214         (*nmsub4<mode>_fastmath): Ditto.
8215         (*nmsub3<mode>_fastmath): Ditto.
8217 2015-04-24  Jason Merrill  <jason@redhat.com>
8219         PR c++/50800
8220         * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
8221         down when building TYPE_CANONICAL.
8222         (build_pointer_type_for_mode): Likewise.
8224 2015-04-24  Chen Gang  <gang.chen.5i5j@gmail.com>
8226         * genrecog.c (validate_pattern): Check matching constraint refers
8227         to a lower numbered operand.
8229 2015-04-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
8231         PR target/65849
8232         * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
8233         save to independent variables use the Save attribute.  This will
8234         allow these options to be modified with the #pragma/attribute
8235         target support.
8236         (-mallow-movmisalign): Likewise.
8237         (-mallow-df-permute): Likewise.
8238         (-msched-groups): Likewise.
8239         (-malways-hint): Likewise.
8240         (-malign-branch-targets): Likewise.
8241         (-mvectorize-builtins): Likewise.
8242         (-msave-toc-indirect): Likewise.
8244         * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
8245         can be set via the #pragma/attribute target support.
8246         (rs6000_opt_vars): Likewise.
8247         (rs6000_inner_target_options): If VSX was set, also set
8248         -mno-avoid-indexed-addresses.
8250 2015-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8252         * config/arm/iterators.md (shiftable_ops): Rename to...
8253         (SHIFTABLE_OPS): ... This.  Update use in comments.
8254         (ior_xor): Rename to...
8255         (IOR_XOR): ... This.
8256         (vqh_ops): Rename to...
8257         (VQH_OPS): ... This.
8258         (vqhs_ops): Rename to...
8259         (VQHS_OPS): ... This.
8260         (rshifts): Rename to...
8261         (RSHIFTS): ... This.
8262         (returns): Rename to...
8263         (RETURNS): ... This.
8264         * config/arm/arm.md: Update uses of the above.
8265         * config/arm/neon.md: Likewise.
8267 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8269         * config.host (case ${host}): Add aarch64*-*-linux case.
8270         * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
8271         fields to all the cores.
8272         * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
8273         Add MCPU_MTUNE_NATIVE_SPECS.
8274         * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
8275         field to all extensions.
8276         * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
8277         * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
8278         Adjust definition of AARCH64_OPT_EXTENSION.
8279         * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
8280         (MCPU_MTUNE_NATIVE_SPECS): Define.
8281         * config/aarch64/driver-aarch64.c: New file.
8282         * config/aarch64/x-arch64: New file.
8283         * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
8284         -mtune and -march.
8286 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
8287             Wei Mi  <wmi@google.com>
8289         * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
8290         * config/i386/i386.c (extract_base_offset_in_addr): New function.
8291         (ix86_operands_ok_for_move_multiple): Ditto.
8292         * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
8293         (movlpd/movhpd to movupd peephole2): Ditto.
8295 2015-04-24  Marek Polacek  <polacek@redhat.com>
8297         PR c/61534
8298         * input.h (from_macro_expansion_at): Define.
8300         PR c/63357
8301         * doc/invoke.texi: Update description of -Wlogical-op.
8303 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
8305         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
8306         ternary operator in fprintf and harmonize spacing.
8308 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
8310         * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
8311         Mark operand1 commutative.
8313 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
8315         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
8316         input operands in memory.
8317         (*vec_concatv2si_sse4_1): Ditto.
8318         (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
8319         (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
8320         register_operand.
8321         (vec_extract_hi_v32hi): Ditto.
8322         (vec_extract_hi_v64hi): Ditto.
8323         (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
8325 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
8326             Steven Bosscher <steven@gcc.gnu.org>
8328         PR rtl-optimization/34503
8329         * cprop.c (cprop_reg_p): New.
8330         (hash_scan_set): Use above function to check if register can be
8331         propagated.
8332         (find_avail_set): Return up to two sets, one whose source is a
8333         register and one whose source is a constant.  Sets are returned in an
8334         array passed as parameter rather than as a return value.
8335         (cprop_insn): Use a do while loop rather than a goto.  Try each of the
8336         sets returned by find_avail_set, starting with the one whose source is
8337         a constant. Use cprop_reg_p to check if register can be propagated.
8338         (do_local_cprop): Use cprop_reg_p to check if register can be
8339         propagated.
8340         (implicit_set_cond_p): Likewise.
8342 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
8344         * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
8345         (sem_function::equals): IGNORED_NODES parameter is now unused;
8346         update call of equals_private.
8347         (sem_function::equals_private): Do not call equals_wpa; skip
8348         gimple body matching if there is no body.
8349         (sem_function::init): Add logic to hash tthunk info.
8350         (sem_function::parse): Also parse thunks.
8351         * ipa-icf.h (equals_private): Update declaration.
8353 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8355         * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
8356         asterisk from name so this can be generated directly.
8357         (*altivec_stvx_<mode>_internal): Likewise.
8358         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
8359         that this is never called during or after reload/lra.
8360         (rs6000_frame_related): Remove split_reg
8361         argument and logic that references it.
8362         (emit_frame_save): Remove last parameter from call to
8363         rs6000_frame_related.
8364         (rs6000_emit_prologue): Remove last parameter from eight calls to
8365         rs6000_frame_related.  Force generation of stvx instruction for
8366         Altivec register saves.  Remove split_reg handling, which is no
8367         longer needed.
8368         (rs6000_emit_epilogue):  Force generation of lvx instruction for
8369         Altivec register restores.
8371 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8373         * config/rs6000/rs6000.opt (mcrypto): Change option description to
8374         match category changes in ISA 2.07B.
8376 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8378         * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
8379         iterators.
8380         (cmp_op, cmp_type): New code attributes.
8381         (NEON_VCMP, NEON_VACMP): New int iterators.
8382         (cmp_op_unsp): New int attribute.
8383         * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
8384         (neon_vceq<mode>): Delete.
8385         (neon_vc<cmp_op><mode>_insn): New pattern.
8386         (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
8387         (neon_vcgeu<mode>): Delete.
8388         (neon_vcle<mode>): Likewise.
8389         (neon_vclt<mode>: Likewise.
8390         (neon_vcage<mode>): Likewise.
8391         (neon_vcagt<mode>): Likewise.
8392         (neon_vca<cmp_op><mode>): New define_expand.
8393         (neon_vca<cmp_op><mode>_insn): New pattern.
8394         (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
8396 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
8398         * tree.h (attribute_value_equal): Declare.
8399         * tree.c (attribute_value_equal): Export.
8401 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
8403         * ipa-icf.c (sem_item::compare_attributes): New function.
8404         (sem_item::compare_referenced_symbol_properties): Compare variable
8405         attributes.
8406         (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
8407         (sem_function::param_used_p): New function.
8408         (sem_function::equals_wpa): Fix attribute comparsion; match
8409         parameter type codes; do not compare paremter flags when
8410         they are not used; compare edge flags; compare indirect calls.
8411         (sem_item::update_hash_by_addr_refs): Hash reference type.
8412         (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
8413         (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
8414         reference use type.
8415         (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
8416         * ipa-icf.h (compare_attributes, param_used_p): Declare.
8418 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
8420         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
8421         cleanup.
8422         (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
8423         DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
8424         (sem_item::compare_referenced_symbol_properties): New.
8425         (sem_item::hash_referenced_symbol_properties): New.
8426         (sem_item::compare_cgraph_references): Rename to ...
8427         (sem_item::compare_symbol_references): ... this one; use
8428         compare_referenced_symbol_properties.
8429         (sem_function::equals_wpa): Do not compare
8430         DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
8431         DECL_IS_OPERATOR_NEW; compare pointer sizes.
8432         (sem_item::update_hash_by_addr_refs): Call
8433         hash_referenced_symbol_properties.
8434         (sem_item::update_hash_by_local_refs): Cleanup.
8435         (sem_function::merge): Do not mix up symbol properties.
8436         (sem_variable::equals_wpa): Use compare_symbol_references.
8437         * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
8438         (sem_item::hash_referenced_symbol_properties): New.
8439         (sem_item::compare_symbol_references): New.
8440         (sem_item::compare_cgraph_references): Remove.
8442 2015-04-23  Kwok Cheung Yeung  <kcy@codesourcery.com>
8444         PR target/26702
8445         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
8446         Emit size of local.
8448 2015-04-23  Nick Clifton  <nickc@redhat.com>
8450         * config/rl78/rl78.c (rl78_preferred_reload_class): Add
8451         ATTRIBUTE_UNUSED to x parameter.
8452         * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
8454 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8456         * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
8457         TARGET_CRYPTO to TARGET_P8_VECTOR>
8458         (crypto_vpermxor_<mode>): Likewise.
8459         * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
8460         (BU_CRYPTO_3A): Likewise.
8461         (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
8462         (BU_CRYPTO_OVERLOAD_3A): New #define.
8463         (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
8464         (VPMSUMH): Likewise.
8465         (VPMSUMW): Likewise.
8466         (VPMSUMD): Likewise.
8467         (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
8468         (VPERMXOR_V4SI): Likewise.
8469         (VPERMXOR_V8HI): Likewise.
8470         (VPERMXOR_V16QI): Likewise.
8471         (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
8472         BU_CRYPTO_OVERLOAD_2A.
8473         (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
8474         BU_CRYPTO_OVERLOAD_3A.
8475         * config/rs6000/rs6000.opt (mcrypto): Change description of
8476         option.
8478 2015-04-23  Richard Biener  <rguenther@suse.de>
8480         * passes.def: Remove copy propagation passes run directly after CCP.
8481         * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
8482         SSA names.
8483         (ccp_visit_phi_node): Rework to handle first executable edge
8484         specially.
8486 2015-04-23  Matthew Wahab  <matthew.wahab@arm.com>
8488         * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
8489         (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
8490         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
8491         * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
8492         (thumb_legimitimize_reload_address): Remove.
8493         * config/arm/arm-protos.h (arm_legimitimize_reload_address):
8494         Remove.
8495         (thumb_legimitimize_reload_address): Remove.
8497 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8499         * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
8501 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8503         * config/arm/arm.md (load_multiple): Reject operand 2 greater than
8504         MAX_LDM_STM_OPS.
8505         (store_multiple): Likewise.
8507 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8509         * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
8510         * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
8511         arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
8512         arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
8513         arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
8514         arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
8515         arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
8516         Specify issue_rate value.
8517         (arm_issue_rate): Look up issue rate from tuning structs. Remove
8518         large switch statement.
8519         (arm_marvell_pj4_tune): New struct.
8520         * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
8521         struct.
8523 2015-04-23  Richard Biener  <rguenther@suse.de>
8525         * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
8526         (vect_find_last_store_in_slp_instance): Rename to ...
8527         (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
8528         (vect_analyze_slp_cost_1): Use vector_load for constant defs
8529         and vec_construct for external defs when estimating prologue cost.
8530         (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
8531         Compute costs here only when vectorizing loops.
8532         (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
8533         have been determined.
8534         (vect_schedule_slp_instance): Simplify vectorized code placement
8535         and prepare for in-BB external defs.
8536         * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
8537         (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
8538         * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
8539         guard.
8540         (vect_model_load_cost): Likewise.
8541         (vectorizable_store): Instead add it here.
8542         (vectorizable_load): Likewise.
8543         (vect_is_simple_use): Dump def type textually.
8545 2015-04-23  Richard Biener  <rguenther@suse.de>
8547         * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
8548         * cfgloop.c (verify_loop_structure): Verify the root loop node.
8549         * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
8550         instead of get_eh_region_from_lp_number.
8551         * loop-init.c (fix_loop_structure): If we removed a loop, reset
8552         the SCEV cache.
8554 2015-04-23  Anton Blanchard  <anton@samba.org>
8556         * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
8557         need for -mprofile-kernel to save LR to stack.
8559 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8561         * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
8562         adjustments.
8563         (insn_is_swappable_p): Return 1 for a convert from double to
8564         single precision when all of its uses are splats of BE element
8565         zero.
8567 2015-04-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
8569         * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
8571 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8573         PR target/65456
8574         * config/rs6000/rs6000.c (rs6000_option_override_internal):  For
8575         VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
8576         TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
8577         option.
8578         (rs6000_builtin_mask_for_load): Return 0 for targets with
8579         efficient unaligned VSX accesses so that the vectorizer will use
8580         direct unaligned loads.
8581         (rs6000_builtin_support_vector_misalignment): Always return true
8582         for targets with efficient unaligned VSX accesses.
8583         (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
8584         stores on targets with efficient unaligned VSX accesses is almost
8585         always the same as the cost of an aligned load or store, so model
8586         it that way.
8587         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
8588         unaligned vectors if we have efficient unaligned VSX accesses.
8589         * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
8590         undocumented option.
8592 2015-04-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8594         Revert:
8595         2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
8597         * config.gcc (LIBC_MUSL): New tm_defines macro.
8598         * config/linux.h (OPTION_MUSL): Define.
8599         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
8600         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
8601         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
8603         * config/linux.opt (mmusl): New option.
8604         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
8605         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
8607         * configure: Regenerate.
8609 2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
8611         * config.gcc (LIBC_MUSL): New tm_defines macro.
8612         * config/linux.h (OPTION_MUSL): Define.
8613         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
8614         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
8615         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
8617         * config/linux.opt (mmusl): New option.
8618         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
8619         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
8621         * configure: Regenerate.
8623 2015-04-22  Yury Gribov  <y.gribov@samsung.com>
8625         * doc/invoke.texi (-fsanitize-sections): Update description.
8626         * asan.c (set_sanitized_sections): Parse incoming arg.
8627         (section_sanitized_p): Support wildcards.
8629 2015-04-22  Tom de Vries  <tom@codesourcery.com>
8631         PR tree-optimization/65823
8632         * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
8633         equality between ap_copy and ap.
8635 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
8637         PR target/47098
8638         * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
8640 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
8642         PR target/47122
8643         * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
8645 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
8647         PR target/55144
8648         * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
8649         remove already contained t-files.
8651 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
8653         * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
8654         Remove unneeded forward declarations.
8655         (suitable_for_tail_call_opt_p): Commentary typo fix.
8657 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
8659         * varasm.c (emit_bss): Remove redundant guard.
8661 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
8663         * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
8665 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
8667         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
8669 2015-04-22  Hale Wang  <hale.wang@arm.com>
8670             Terry Guo  <terry.guo@arm.com>
8672         PR rtl-optimization/64818
8673         * combine.c (can_combine_p): Don't combine user-specified
8674         register if it is in an asm input.
8676 2015-04-21  Jan Hubicka  <hubicka@ucw.cz>
8678         PR ipa/65076
8679         * passes.def (early_optimizations): Add pass_dse.
8681 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8683         * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
8684         * reorg.c (redundant_insn): Remove ifdef
8685         INSN_REFERENCES_ARE_DELAYED.
8686         * resource.c (mark_referenced_resources): Likewise.
8688 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8690         * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
8691         * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
8692         * resource.c (mark_set_resources): Likewise.
8694 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8696         * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
8697         * cfgcleanup.c (flow_find_cross_jump): Likewise.
8698         (flow_find_head_matching_sequence): Likewise.
8699         (try_head_merge_bb): Likewise.
8700         * combine.c (can_combine_p): Likewise.
8701         (try_combine): Likewise.
8702         (distribute_notes): Likewise.
8703         * df-problems.c (can_move_insns_across): Likewise.
8704         * final.c (final): Likewise.
8705         * gcse.c (insert_insn_end_basic_block): Likewise.
8706         * ira.c (find_moveable_pseudos): Likewise.
8707         * reorg.c (try_merge_delay_insns): Likewise.
8708         (fill_simple_delay_slots): Likewise.
8709         (fill_slots_from_thread): Likewise.
8710         * sched-deps.c (sched_analyze_2): Likewise.
8712 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8714         * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
8715         PIC_OFFSET_TABLE_REGNUM.
8717 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8719         * alias.c (init_alias_target): Remove ifdef
8720         * HARD_FRAME_POINTER_IS_FRAME_POINTER.
8721         * df-scan.c (df_insn_refs_collect): Likewise.
8722         (df_get_regular_block_artificial_uses): Likewise.
8723         (df_get_eh_block_artificial_uses): Likewise.
8724         (df_get_entry_block_def_set): Likewise.
8725         (df_get_exit_block_use_set): Likewise.
8726         * emit-rtl.c (gen_rtx_REG): Likewise.
8727         * ira.c (ira_setup_eliminable_regset): Likewise.
8728         * reginfo.c (init_reg_sets_1): Likewise.
8729         * regrename.c (rename_chains): Likewise.
8730         * reload1.c (reload): Likewise.
8731         (eliminate_regs_in_insn): Likewise.
8732         * resource.c (mark_referenced_resources): Likewise.
8733         (init_resource_info): Likewise.
8735 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8737         * defaults.h (MASK_RETURN_ADDR): New definition.
8738         * except.c (expand_builtin_extract_return_addr): Remove ifdef
8739         MASK_RETURN_ADDR.
8741 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8743         * defaults.h (RETURN_ADDR_OFFSET): New definition.
8744         * except.c (expand_builtin_extract_return_addr): Remove ifdef
8745         RETURN_ADDR_OFFSET.
8746         (expand_builtin_frob_return_addr): Likewise.
8748 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8750         * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
8751         (try_redirect_by_replacing_jump): Likewise.
8752         (rtl_tidy_fallthru_edge): Likewise.
8753         * combine.c (insn_a_feeds_b): Likewise.
8754         (find_split_point): Likewise.
8755         (simplify_set): Likewise.
8756         * cprop.c (cprop_jump): Likewise.
8757         * cse.c (cse_extended_basic_block): Likewise.
8758         * df-problems.c (can_move_insns_across): Likewise.
8759         * function.c (emit_use_return_register_into_block): Likewise.
8760         * haifa-sched.c (sched_init): Likewise.
8761         * ira.c (find_moveable_pseudos): Likewise.
8762         * loop-invariant.c (find_invariant_insn): Likewise.
8763         * lra-constraints.c (curr_insn_transform): Likewise.
8764         * postreload.c (reload_combine_recognize_const_pattern):
8765         * Likewise.
8766         * reload.c (find_reloads): Likewise.
8767         * reorg.c (delete_scheduled_jump): Likewise.
8768         (steal_delay_list_from_target): Likewise.
8769         (steal_delay_list_from_fallthrough): Likewise.
8770         (redundant_insn): Likewise.
8771         (fill_simple_delay_slots): Likewise.
8772         (fill_slots_from_thread): Likewise.
8773         (delete_computation): Likewise.
8774         * sched-rgn.c (add_branch_dependences): Likewise.
8776 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8778         * genconfig.c (main): Always define HAVE_cc0.
8779         * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
8780         HAVE_cc0.
8781         * cfgcleanup.c (flow_find_cross_jump): Likewise.
8782         (flow_find_head_matching_sequence): Likewise.
8783         (try_head_merge_bb): Likewise.
8784         * cfgrtl.c (rtl_merge_blocks): Likewise.
8785         (try_redirect_by_replacing_jump): Likewise.
8786         (rtl_tidy_fallthru_edge): Likewise.
8787         * combine.c (do_SUBST_MODE): Likewise.
8788         (insn_a_feeds_b): Likewise.
8789         (combine_instructions): Likewise.
8790         (can_combine_p): Likewise.
8791         (try_combine): Likewise.
8792         (find_split_point): Likewise.
8793         (subst): Likewise.
8794         (simplify_set): Likewise.
8795         (distribute_notes): Likewise.
8796         * cprop.c (cprop_jump): Likewise.
8797         * cse.c (cse_extended_basic_block): Likewise.
8798         * df-problems.c (can_move_insns_across): Likewise.
8799         * final.c (final): Likewise.
8800         (final_scan_insn): Likewise.
8801         * function.c (emit_use_return_register_into_block): Likewise.
8802         * gcse.c (insert_insn_end_basic_block): Likewise.
8803         * haifa-sched.c (sched_init): Likewise.
8804         * ira.c (find_moveable_pseudos): Likewise.
8805         * loop-invariant.c (find_invariant_insn): Likewise.
8806         * lra-constraints.c (curr_insn_transform): Likewise.
8807         * optabs.c (prepare_cmp_insn): Likewise.
8808         * postreload.c (reload_combine_recognize_const_pattern):
8809         * Likewise.
8810         * reload.c (find_reloads): Likewise.
8811         (find_reloads_address_1): Likewise.
8812         * reorg.c (delete_scheduled_jump): Likewise.
8813         (steal_delay_list_from_target): Likewise.
8814         (steal_delay_list_from_fallthrough): Likewise.
8815         (try_merge_delay_insns): Likewise.
8816         (redundant_insn): Likewise.
8817         (fill_simple_delay_slots): Likewise.
8818         (fill_slots_from_thread): Likewise.
8819         (delete_computation): Likewise.
8820         (relax_delay_slots): Likewise.
8821         * sched-deps.c (sched_analyze_2): Likewise.
8822         * sched-rgn.c (add_branch_dependences): Likewise.
8824 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8826         * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
8827         that is trivially ded on non cc0 targets.
8828         (simplify_set): Likewise.
8829         (mark_used_regs_combine): Likewise.
8830         * cse.c (new_basic_block): Likewise.
8831         (fold_rtx): Likewise.
8832         (cse_insn): Likewise.
8833         (cse_extended_basic_block): Likewise.
8834         (set_live_p): Likewise.
8835         * rtlanal.c (canonicalize_condition): Likewise.
8836         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
8838 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8840         * conditions.h: Define macros even if HAVE_cc0 is undefined.
8841         * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
8842         * final.c: Likewise.
8843         * jump.c: Likewise.
8844         * recog.c: Likewise.
8845         * recog.h: Declare functions even when HAVE_cc0 is undefined.
8846         * sched-deps.c (sched_analyze_2): Always compile case for cc0.
8848 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8850         * defaults.h: New definition of EH_RETURN_DATA_REGNO.
8851         * except.c: Remove definition of EH_RETURN_DATA_REGNO.
8852         * builtins.c (expand_builtin): Remove check if
8853         EH_RETURN_DATA_REGNO is defined.
8854         * df-scan.c (df_bb_refs_collect): Likewise.
8855         (df_get_exit_block_use_set): Likewise.
8856         * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
8857         * ira-lives.c (process_bb_node_lives): Likewise.
8858         * lra-lives.c (process_bb_lives): Likewise.
8860 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
8862         * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
8863         FIRST_PSEUDO_REG): New.
8864         * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
8865         (ARG_POINTER_REGNUM): Define to ARGP_REG.
8866         (FRAME_POINTER_REGNUM): Define to FRAME_REG.
8867         (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
8868         (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
8869         (FIRST_INT_REG): New.
8870         (LAST_INT_REG): New.
8871         (FIRST_*_REG): Define using *_REG.
8872         (LAST_*_REG): Ditto.
8873         (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
8874         (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
8875         (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
8877 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8879         * expmed.c: (synth_mult): Only assume overlapping
8880         shift with previous steps in alg_sub_t_m2 case.
8882 2015-04-21  Richard Biener  <rguenther@suse.de>
8884         PR tree-optimization/65650
8885         * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
8886         transitions involving copies.
8887         (set_lattice_value): Adjust for copy lattice state.
8888         (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
8889         if that doesn't dominate the merge point.
8890         (bit_value_unop): Adjust what we treat as varying mask.
8891         (bit_value_binop): Likewise.
8892         (bit_value_assume_aligned): Likewise.
8893         (evaluate_stmt): When we simplified to a SSA name record a copy
8894         instead of dropping to varying.
8895         (visit_assignment): Simplify.
8897         * gimple-match.h (gimple_simplify): Add another callback.
8898         * gimple-fold.c (fold_stmt_1): Adjust caller.
8899         (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
8900         for the 2nd callback.
8901         * gimple-match-head.c (gimple_simplify): Add a callback that is
8902         used to valueize the stmt operands and use it that way.
8904 2015-04-21  Richard Biener  <rguenther@suse.de>
8906         PR tree-optimization/65788
8907         * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
8909 2015-04-21  Richard Biener  <rguenther@suse.de>
8911         * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
8912         vec_construct cost by vec_stmt_cost.
8914 2015-04-21  Richard Biener  <rguenther@suse.de>
8916         * cfghooks.h (create_basic_block): Replace with two overloads
8917         for RTL and GIMPLE.
8918         (split_block): Likewise.
8919         * cfghooks.c (split_block): Rename to ...
8920         (split_block_1): ... this.
8921         (split_block): Add two type-safe overloads for RTL and GIMPLE.
8922         (split_block_after_labels): Call split_block_1.
8923         (create_basic_block): Rename to ...
8924         (create_basic_block_1): ... this.
8925         (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
8926         (create_empty_bb): Call create_basic_block_1.
8927         * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
8928         split_block_after_labels.
8929         * omp-low.c (expand_parallel_call): Likewise.
8930         (expand_omp_target): Likewise.
8931         (simd_clone_adjust): Likewise.
8932         * tree-chkp.c (chkp_get_entry_block): Likewise.
8933         * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
8934         create_basic_block overload.
8935         (cgraph_node::expand_thunk): Likewise.
8936         * tree-cfg.c (make_blocks): Likewise.
8937         (handle_abnormal_edges): Likewise.
8938         * tree-inline.c (copy_bb): Likewise.
8940 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8942         * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
8943         New pattern.
8944         (*xor_one_cmplsidi3_ze): Likewise.
8946 2015-04-21  Thomas Preud'homme  <thomas.preudhomme@arm.com>
8948         * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
8949         use df_remove_problem rather than manually removing problems, leaving
8950         holes in df->problems_in_order[].
8952 2015-04-21  Tom de Vries  <tom@codesourcery.com>
8954         PR tree-optimization/65802
8955         * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
8957 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8959         * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
8960         Increase to 128.
8961         (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
8962         at '.'.  Assert that there's enough space for everything.
8964 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
8966         PR tree-optimization/64950
8967         Revert:
8968         2010-08-02  Uros Bizjak  <ubizjak@gmail.com>
8970         PR target/41089
8971         * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
8972         as volatile.
8974 2015-04-20  Shiva Chen  <shiva0217@gmail.com>
8976         PR rtl-optimization/64916
8977         * cfgcleanup.c (values_equal_p): New function.
8978         (can_replace_by): Use it.
8980 2015-04-20  Paolo Carlini  <paolo.carlini@oracle.com>
8982         PR c++/65801
8983         * doc/invoke.texi ([-Wnarrowing]): Update.
8985 2015-04-20  Jeff Law  <law@redhat.com>
8987         PR tree-optimization/65658
8988         * tree-ssa-threadupdate.c (redirection_block_p): Remove
8989         redundant test for GIMPLE_ASSIGN in last change.
8991 2015-04-20  Uros Bizjak  <ubizjak@gmail.com>
8993         * config/i386/i386.c (set_pic_reg_ever_live): Remove.
8994         (legitimize_pic_address): Do not call set_pic_reg_ever_live.
8995         (legitimize_tls_address): Ditto.
8996         (ix86_expand_move): Ditto.
8997         (ix86_expand_binary_operator): Remove reload_in_progress checks.
8998         (ix86_expand_unary_operator): Ditto.
8999         * config/i386/predicates.md (index_register_operand): Ditto.
9001 2015-04-20  Selim Belbachir  <selim.belbachir@fr.thalesgroup.com>
9003         * reorg.c (try_merge_delay_insns): Improve correctness checking
9004         for targets with multiple delay slots.
9006 2015-04-20  Jeff Law  <law@redhat.com>
9008         PR tree-optimization/65658
9009         * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
9010         statements too.
9012 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
9014         * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
9015         * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
9016         Delete.
9018 2015-04-20  Jakub Jelinek  <jakub@redhat.com>
9020         PR debug/65807
9021         * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
9023 2015-04-20  Richard Biener  <rguenther@suse.de>
9025         * gimple-fold.h (gimple_build): Remove optional valueize arguments.
9026         * gimple-fold.c (gimple_build_valueize): New function.
9027         (gimple_build): Always use gimple_build_valueize as valueize hook.
9029 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
9031         PR target/64134
9032         * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
9033         and overwrite variable parts if <= 1/2 the elements are variable.
9035 2015-04-19  Vladimir Makarov  <vmakarov@redhat.com>
9037         PR rtl-optimization/65805
9038         * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
9039         Don't use difference of offset and previous offset if
9040         update_sp_offset is non-zero.
9041         (eliminate_regs_in_insn): Ditto.
9042         * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
9043         lra_eliminate_regs_1 call.
9044         * lra-constraints.c (get_equiv_with_elimination): Ditto.
9046 2015-04-18  Trevor Saunders  <tsaunders@mozilla.com>
9048         * hash-table.h: Remove version of hash_table that stored value_type *.
9049         * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
9050         config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
9051         config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
9052         dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
9053         gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
9054         hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
9055         ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
9056         loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
9057         reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
9058         tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
9059         tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
9060         tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
9061         tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
9062         tree-ssa-structalias.c, tree-ssa-tail-merge.c,
9063         tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
9064         valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
9066 2015-04-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9067             Jakub Jelinek  <jakub@redhat.com>
9069         PR target/65787
9070         * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
9071         subsequent SH_NONE operand does not overwrite an existing *special
9072         value.
9073         (adjust_extract): Handle case where a vec_extract operation is
9074         wrapped in a PARALLEL.
9076 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
9078         PR target/65780
9079         * config/i386/i386.c (ix86_binds_local_p): Define only if
9080         TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
9082 2015-04-17  Jeff Law  <law@redhat.com>
9084         PR tree-optimization/47679
9085         * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
9086         * tree-ssa-scopedtables.c: New file.
9087         * tree-ssa-scopedtables.h: New file.
9088         * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
9089         (const_and_copies): Change name/type.
9090         (record_const_or_copy): Move into tree-ssa-scopedtables.c
9091         (record_const_or_copy_1): Similarly.
9092         (restore_vars_to_original_value): Similarly.
9093         (pass_dominator::execute): Create and destroy const_and_copies table.
9094         (thread_across_edge): Update passing of const_and_copies.
9095         (record_temporary_equivalence): Use method calls rather than
9096         manipulating const_and_copies directly.
9097         (record_equality, cprop_into_successor_phis): Similarly.
9098         (dom_opt_dom_walker::before_dom_children): Similarly.
9099         (dom_opt_dom_walker::after_dom_children): Similarly.
9100         (eliminate_redundant_computations): Similarly.
9101         * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
9102         (record_temporary_equivalence): Likewise.
9103         (invalidate_equivalences): Likewise.
9104         (record_temporary_equivalences_from_phis): Update due to type
9105         change of const_and_copies.  Use method calls rather than
9106         manipulating the stack directly.
9107         (record_temporary_equivalences_from_stmts_at_dest): Likewise.
9108         (thread_through_normal_block, thread_across_edge): Likewise.
9109         (thread_across_edge): Likewise.
9110         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
9111         * tree-vrp.c: Include tree-ssa-scopedtables.h.  Change type
9112         of equiv_stack.
9113         (identify_jump_threads): Update due to type change of equiv_stack.
9114         (finalize_jump_threads): Delete the equiv_stack when complete.
9116 2015-04-17  Uros Bizjak  <ubizjak@gmail.com>
9118         * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
9119         * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
9120         * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
9122 2015-04-17  Andreas Tobler  <andreast@gcc.gnu.org>
9124         PR target/65535
9125         * config.gcc: Exit with a comment when we do not have a major version
9126         number for the FreeBSD target.
9128 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
9130         PR target/65689
9131         * genpreds.c (struct constraint_data): Add maybe_allows_reg and
9132         maybe_allows_mem bitfields.
9133         (maybe_allows_none_start, maybe_allows_none_end,
9134         maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
9135         maybe_allows_mem_end): New variables.
9136         (compute_maybe_allows): New function.
9137         (add_constraint): Use it to initialize maybe_allows_reg and
9138         maybe_allows_mem fields.
9139         (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
9140         is_address constraints such that those that allow neither mem nor
9141         reg come first, then those that only allow reg but not mem, then
9142         those that only allow mem but not reg, then the rest.
9143         (write_allows_reg_mem_function): New function.
9144         (write_tm_preds_h): Call it.
9145         * stmt.c (parse_output_constraint, parse_input_constraint): Use
9146         the generated insn_extra_constraint_allows_reg_mem function
9147         instead of always setting *allows_reg = true; *allows_mem = true;
9148         for unknown extra constraints.
9150 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
9152         PR target/65780
9153         * output.h (default_binds_local_p_3): New.
9154         * varasm.c (default_binds_local_p_3): Make it public.  Take an
9155         argument to indicate if common symbol may be local.  If common
9156         symbol may be local, treat non-external variable as defined
9157         locally.
9158         (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
9159         (default_binds_local_p_1): Pass false to default_binds_local_p_3.
9160         * config/i386/i386.c (ix86_binds_local_p): New.
9161         (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
9162         ix86_binds_local_p.
9164 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
9166         PR debug/65771
9167         * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
9168         trying mem_loc_descriptor on XEXP (rtl, 0).
9170 2015-04-17  Martin Liska  <mliska@suse.cz>
9172         * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
9173         Release symbol_compare_collection.
9174         * ipa-reference.c: Add TODO that a vector should be released.
9176 2015-04-17  Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
9178         PR target/65296
9179         * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
9180         to new AVR-LibC file layout (bug #44574).
9181         (*avrlibc_devicelib): Same.
9182         * config/avr/avr-mcus.def: Adjust comments.
9183         * config/avr/avr.opt (nodevicelib): Adjust help.
9185 2015-04-17  Alan Lawrence  <alan.lawrence@arm.com>
9187         * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
9189 2015-04-17  Patrick Palka  <ppalka@gcc.gnu.org>
9191         PR c++/64527
9192         * gimplify.c (gimplify_init_constructor): Always emit a
9193         side-effecting constructor.
9195 2015-04-17  Tom de Vries  <tom@codesourcery.com>
9197         PR tree-optimization/64950
9198         * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
9199         in cfun->curr_properties.
9200         (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
9201         if we generate an IFN_VA_ARG.
9202         * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
9203         function if PROP_gimple_lva is not set in src function.
9205 2015-04-17  Tom de Vries  <tom@codesourcery.com>
9206             Michael Matz  <matz@suse.de>
9208         PR tree-optimization/64950
9209         * gimple-iterator.c (update_modified_stmts): Remove static.
9210         * gimple-iterator.h (update_modified_stmts): Declare.
9211         * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
9212         (gimplify_va_arg_internal): New function.
9213         (gimplify_va_arg_expr): Use IFN_VA_ARG.
9214         * gimplify.h (gimplify_va_arg_internal): Declare.
9215         * internal-fn.c (expand_VA_ARG): New unreachable function.
9216         * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
9217         * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
9218         (expand_ifn_va_arg): New function.
9219         (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
9220         (pass_stdarg::execute): Call expand_ifn_va_arg.
9221         (pass_data_lower_vaarg): New pass_data.
9222         (pass_lower_vaarg): New gimple_opt_pass.
9223         (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
9224         (make_pass_lower_vaarg): New function.
9225         * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
9226         properties_required field.
9227         * passes.def (all_passes): Add pass_lower_vaarg.
9228         * tree-pass.h (PROP_gimple_lva): Add define.
9229         (make_pass_lower_vaarg): Declare.
9231 2015-04-17  Tom de Vries  <tom@codesourcery.com>
9233         * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
9234         * calls.c (call_expr_flags): Same.
9236 2015-04-17  Tom de Vries  <tom@codesourcery.com>
9238         * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
9239         (pass_stdarg::execute): ... here.
9241 2015-04-17  Tom de Vries  <tom@codesourcery.com>
9242             Michael Matz  <matz@suse.de>
9244         * tree-cfg.c (make_blocks_1): Factor out of ...
9245         (make_blocks): ... here.
9246         (make_edges_bb): Factor out of ...
9247         (make_edges): ... here.
9248         (gimple_find_sub_bbs): New function.
9249         * tree-cfg.h (gimple_find_sub_bbs): Declare.
9251 2015-04-17  Tom de Vries  <tom@codesourcery.com>
9253         * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
9255 2015-04-17  Yury Gribov  <y.gribov@samsung.com>
9257         * asan.c (set_sanitized_sections): New function.
9258         (section_sanitized_p): Ditto.
9259         (asan_protect_global): Optionally sanitize user-defined
9260         sections.
9261         * asan.h (set_sanitized_sections): Declare new function.
9262         * common.opt (fsanitize-sections): New option.
9263         * doc/invoke.texi (-fsanitize-sections): Document new option.
9264         * opts-global.c (handle_common_deferred_options): Handle new
9265         option.
9267 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
9269         PR debug/65771
9270         * dwarf2out.c (loc_list_from_tree): Return NULL
9271         for DEBUG_EXPR_DECL.
9273 2015-04-17  Christian Bruel  <christian.bruel@st.com>
9275         * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
9276         same attributes.
9278 2015-04-16  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
9280         * ira-color.c (setup_left_conflict_sizes_p): Do not process
9281         node itself when computing left conflict subnode size.
9283 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
9285         * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
9286         * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
9287         *fop_<mode>_1_sse using enabled attribute.  Use
9288         register_mixssei387nonimm_operand operand 1 predicate. Change
9289         alternative 3 constraints from "x" to "v".
9291 2015-04-16  Richard Biener  <rguenther@suse.de>
9293         PR tree-optimization/65774
9294         * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
9295         bit-value tracking on.
9297 2015-04-16  Richard Biener  <rguenther@suse.de>
9299         PR tree-optimization/64277
9300         * tree-vrp.c (check_array_ref): Fix anti-range handling,
9301         simplify upper bound handling.
9302         (search_for_addr_array): Simplify.
9303         (check_array_bounds): Handle ADDR_EXPRs here.
9304         (check_all_array_refs): Simplify.
9306 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
9308         * config/i386/i386.c (print_reg): Rewrite function.
9310 2015-04-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9312         * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
9313         Invert the condition.
9315 2015-04-16  Renlin Li  <renlin.li@arm.com>
9317         * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
9318         simplifications for UNSIGNED_FLOAT.
9320 2015-04-16  Nick Clifton  <nickc@redhat.com>
9322         * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
9323         MUL_UNINIT.
9324         (enum rl78_cpu_type): New.
9325         * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
9326         (umulhi3_shift_virt): Remove m constraint from operand 1.
9327         (umulqihi3_virt): Likewise.
9328         * config/rl78/rl78.c (rl78_option_override): Add code to process
9329         -mcpu and -mmul options.
9330         (rl78_alloc_physical_registers): Add code to handle divhi and
9331         divsi valloc attributes.
9332         (set_origin): Likewise.
9333         * config/rl78/rl78.h (RL78_MUL_G14): Define.
9334         (TARGET_G10, TARGET_G13, TARGET_G14): Define.
9335         (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
9336         __RL78_Gxx__.
9337         (ASM_SPEC): Pass -mcpu on to assembler.
9338         * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
9339         (mulqi3_rl78): Likewise.
9340         (mulhi3_g13): Likewise.
9341         (mulhi3): Generate the G13 or G14 versions of the insn directly.
9342         (mulsi3): Likewise.
9343         (mulhi3_g14): Add clobbers of AX and BC.
9344         (mulsi3_g14): Likewise.
9345         (mulsi3_g13): Likewise.
9346         (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
9347         (udivmodsi4_g14, udivmodsi4_g13): New patterns.
9348         * config/rl78/rl78.opt (mmul): Initialise value to
9349         RL78_MUL_UNINIT.
9350         (mcpu): New option.
9351         (m13, m14, mrl78): New option aliases.
9352         * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
9353         (MULTILIB_DIRNAMES): Add g13 and g14.
9354         * doc/invoke.texi: Document -mcpu and -mmul options.
9356 2015-04-16  Richard Biener  <rguenther@suse.de>
9358         * tree-ssa-ccp.c (likely_value): See if we have operands that
9359         are marked as never simulate again and return CONSTANT in this
9360         case.
9361         * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
9362         not have any operands that will be simulated again as
9363         not being simulated again.
9365 2015-04-15  Uros Bizjak  <ubizjak@gmail.com>
9367         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
9368         Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
9369         (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
9370         attribute.
9371         (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
9372         enabled attribute.
9373         (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
9374         *float<SWI48:mode><MODEF:mode>2_sse.
9375         (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
9376         enabled attribute.
9377         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
9378         enabled attribute.
9380 2015-04-15  Tom de Vries  <tom@codesourcery.com>
9382         PR other/65487
9383         * function.c (push_dummy_function): New function.
9384         (init_dummy_function_start): Use push_dummy_function.
9385         (pop_dummy_function): New function.  Factored out of ...
9386         (expand_dummy_function_end): ... here.
9387         * function.h (push_dummy_function, pop_dummy_function): Declare.
9388         * passes.c (pass_manager::dump_passes): Use push_dummy_function and
9389         pop_dummy_function.
9390         * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
9392 2015-04-15  Jeff Law  <law@redhat.com>
9394         PR tree-optimization/47679
9395         * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
9396         need for forward declaration in upcoming changes.
9397         (record_conditions, record_edge_info): Likewise.
9399         PR rtl-optimization/42522
9400         * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
9401         SIGN_EXTRACT as a whole object rather than simplifying
9402         its operand.
9404 2015-04-15  Jakub Jelinek  <jakub@redhat.com>
9406         PR ipa/65765
9407         * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
9408         and GIMPLE_PREDICT use break instead of return true. For
9409         GIMPLE_EH_DISPATCH, compare dispatch region.
9411 2015-04-14  Matthew Wahab  <matthew.wahab@arm.com>
9413         * doc/extend.texi (__sync Builtins): Simplify some text.  Update
9414         details about the implementation.  Make clear preference for
9415         __atomic builtins.  Reduce possibility of future change.
9417 2015-04-15  Nick Clifton  <nickc@redhat.com>
9419         * config/rx/rx.opt (mallow-string-insns): New option.
9420         * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
9421         builtin if string instructions are denied.
9422         * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
9423         __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
9424         appropriate.
9425         (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
9426         * config/rx/rx.md (movstr): Enable pattern only if string
9427         instructions are allowed.
9428         (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
9429         (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
9430         * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
9431         (MULTILIB_DIRNAMES): Add no-strings.
9432         * doc/invoke.texi: Document -mno-allow-string-insns.
9434 2015-04-15  Alan Modra  <amodra@gmail.com>
9436         PR target/65408
9437         PR target/58744
9438         PR middle-end/36043
9439         * calls.c (load_register_parameters): Don't load past end of
9440         mem unless suitably aligned.
9442 2015-04-15  Nick Clifton  <nickc@redhat.com>
9444         * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
9445         decrement instruction as being frame related.
9446         (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
9447         based addresses.
9448         If zero extending a function address enclose the operation in
9449         %code(...).
9450         (rl78_preferred_reload_class): New function.
9451         (TARGET_PREFERRED_RELOAD_CLASS): Define.
9452         * config/rl78/rl78.md: Remove useless constraints in expanders.
9453         (mulqi3_rl78): Remove + qualifier on input-only operand 1.
9454         (mulhi3_rl78): Likewise.
9455         (mulhi3_g13): Likewise.
9456         (mulsi3_rl78): Likewise.
9457         (es_addr): Move to before the multiply patterns.
9459 2015-04-15  Alan Modra  <amodra@gmail.com>
9461         * function.h (struct emit_status): Delete x_first_insn, x_last_insn
9462         and sequence_stack.  Add seq.
9463         (seq_stack): Delete.
9464         * function.c (prepare_function_start): Don't access x_last_insn.
9465         * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
9466         (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
9467         * emit_rtl.c (start_sequence, push_topmost_sequence,
9468         pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
9469         sequence accessors.
9470         (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
9471         remove_insn): Likewise.  Simplify.
9472         * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
9473         and pop_topmost_sequence.
9474         (m32c_function_needs_enter): Use get_topmost_sequence.  Ignore
9475         debug insns.
9476         * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
9478 2015-04-14  Yvan Roux  <yvan.roux@linaro.org>
9480         PR target/65729
9481         * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
9482         the assertiion.
9484 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
9486         * config/i386/i386.h (LEGACY_INT_REG_P): New define.
9487         (LEGACY_INT_REGNO_P): Ditto.
9488         (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
9489         (ANY_MASK_REG_P): Remove.
9490         (BND_REG_P): Rename from ANY_BND_REG_P.
9491         * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
9492         legacy integer registers.  Do not handle MMX_REG_P in a special way.
9493         Merge 64byte and 32byte SSE handling.
9495 2015-04-14  Nick Clifton  <nickc@redhat.com>
9497         * expr.c (expand_assignment): Force an address offset computation
9498         into a register before changing its mode.
9499         (expand_expr_real_1): Likewise.
9501 2015-04-14  Alan Lawrence  <alan.lawrence@arm.com>
9503         * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
9504         vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
9505         vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
9506         vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
9507         vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
9508         vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
9509         vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
9510         and __aarch64_vget_lane_any.
9512 2015-04-14  Jakub Jelinek  <jakub@redhat.com>
9514         PR rtl-optimization/65761
9515         * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
9516         get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
9518 2015-04-14  Richard Biener  <rguenther@suse.de>
9520         * graphite-scop-detection.c: Do not include cp/cp-tree.h.
9521         (graphite_can_represent_scev): Use POINTER_TYPE_P.
9523 2015-04-14  Richard Biener  <rguenther@suse.de>
9525         PR tree-optimization/65758
9526         * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
9527         against -1.
9528         (ccp_lattice_meet): Likewise.
9529         (bit_value_unop): Likewise.
9530         (bit_value_binop): Likewise.
9531         (bit_value_assume_aligned): Likewise.
9533 2015-04-14  Christian Bruel  <christian.bruel@st.com>
9535         * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
9536         function.
9538 2015-04-14  Marc Glisse  <marc.glisse@inria.fr>
9540         PR tree-optimization/63387
9541         * match.pd ((x unord x) | (y unord y) -> (x unord y),
9542         (x unord x) | (x unord y) -> (x unord y)): New simplifications.
9544 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
9546         * config/i386/predicates.md (any_QIreg_operand): Rename from
9547         q_regs_operand.  Do not process subregs.
9548         (QIreg_operand): Use QI_REGNO_P predicate.
9549         (ext_QIreg_operand): Ditto.
9550         (ext_register_operand): Ditto.
9551         * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
9552         (AND splitters): Ditto.
9553         (AND with -65536 splitter): Add SWI48 mode for operand 0.
9554         (AND with -256 splitter): Use any_QIreg_operand predicate and
9555         SWI248 mode for operand 0.
9556         (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
9557         mode for operand 0.
9558         (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
9560 2015-04-13  Gerald Pfeifer  <gerald@pfeifer.com>
9562         * doc/plugins.texi: Rewrite first introductory paragraph.
9564 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
9566         * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
9567         (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
9569 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
9571         * ipa-profie.c (ipa_profile): Check number of parameters
9572         and possible polymorphic call targets before
9573         devirtualizing.
9575 2015-04-13  Uros Bizjak  <ubizjak@gmail.com>
9577         * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
9578         *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
9580 2015-04-13  Richard Biener  <rguenther@suse.de>
9582         PR tree-optimization/65204
9583         * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
9584         takens for bit-CCP.
9586 2015-04-13  Richard Biener  <rguenther@suse.de>
9588         PR target/65660
9589         * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
9590         and cond_not_taken_branch_cost to 4 and 2.
9591         (bdver2_cost): Likewise.
9592         (bdver3_cost): Likewise.
9593         (bdver4_cost): Likewise.
9595 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
9597         * hash-table.h (hash_table constructor): Add mem stats.
9598         (alloc_entries): Likewise.
9600 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
9602         * ipa-cp.c (ipcp_driver): Relase prev_edge.
9603         * passes.c (execute_one_pass): Only add transform if pass has one.
9605 2015-04-12  Joseph Myers  <joseph@codesourcery.com>
9607         * config/i386/i386.c (ix86_option_override_internal): Don't set
9608         -fprefetch-loop-arrays if optimizing for size.
9610 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
9611             Gerald Pfeifer  <gerald@pfeifer.com>
9613         * doc/contrib.texi (Contributors): Add Martin Jambor and
9614         Michael Matz.
9616 2015-04-12  Jakub Jelinek  <jakub@redhat.com>
9618         * BASE-VER: Set to 6.0.0.
9620         PR tree-optimization/65747
9621         * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
9622         rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
9624 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
9626         * doc/invoke.texi (-Wmemset-transposed-args): Break a long
9627         sentence.  Improve grammar.
9629 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
9631         * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
9633 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
9635         PR ipa/65743
9636         * ipa-inline-transform.c (speculation_removed): Remove static var.
9637         (check_speculations): New function.
9638         (clone_inlined_nodes): Do not check spculations.
9639         (inline_call): Call check_speculations.
9640         * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
9641         consider non-invariants.
9643 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
9644             Martin Liska  <mliska@suse.cz>
9646         PR ipa/65722
9647         * ipa-icf.c (sem_item::compare_cgraph_references): function and
9648         variable can not match.
9649         (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
9650         (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
9652 2015-04-11  Jakub Jelinek  <jakub@redhat.com>
9654         PR tree-optimization/65735
9655         * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
9656         Remove visited_phis argument, add visited_bbs, avoid recursing into the
9657         same bb rather than just into the same phi node.
9658         (thread_through_normal_block): Adjust caller.
9660 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
9662         * doc/contrib.texi (Contributors): Add Ira Rosen.
9664 2015-04-11  Benno Schulenberg  <bensberg@justemail.net>
9666         * gcov.c (find_source): Fix miswording in error message.
9667         * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
9668         (ix86_expand_sse_comi_round): Fix typo in error message.
9670 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
9672         * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
9674 2015-04-10  Gerald Pfeifer  <gerald@pfeifer.com>
9676         * doc/contrib.texi (Contributors): Update Joe Buck's entry.
9678 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
9680         PR target/65710
9681         * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
9682         Print bad_spills_num and insn_pseudos_num.
9684 2015-04-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9686         PR target/65694
9687         * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
9688         when creating +1 values for SImode.
9690 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
9692         PR target/65729
9693         * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
9694         assert.
9696 2015-04-10  Jakub Jelinek  <jakub@redhat.com>
9697             Iain Sandoe  <iain@codesourcery.com>
9699         PR target/65351
9700         * configure: Regenerate.
9702 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
9704         PR target/65671
9705         * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
9707 2015-04-09  Gerald Pfeifer  <gerald@pfeifer.com>
9709         * doc/contrib.texi (Contributors): Add John Marino.
9711 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
9713         PR tree-optimization/65709
9714         * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
9715         TREE_TYPE (TREE_TYPE (t)).
9717 2015-04-09  Vladimir Makarov  <vmakarov@redhat.com>
9719         PR target/65710
9720         * lra-int.h (lra_bad_spill_regno_start): New.
9721         * lra.c (lra_bad_spill_regno_start): New.
9722         (lra): Set up lra_bad_spill_regno_start.  Set up
9723         lra_constraint_new_regno_start unconditionally.
9724         * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
9725         spill preferences.
9727 2015-04-09  Marek Polacek  <polacek@redhat.com>
9728             Jakub Jelinek  <jakub@redhat.com>
9730         PR middle-end/65554
9731         * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
9732         (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
9733         of STRIP_NOPS.
9735 2015-04-09  Segher Boessenkool  <segher@kernel.crashing.org>
9737         PR rtl-optimization/65693
9738         * combine.c (is_parallel_of_n_reg_sets): Move outside of
9739         #ifndef HAVE_cc0.
9741 2015-04-09  Georg-Johann Lay  <avr@gjlay.de>
9743         PR target/65296
9744         * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
9745         device specs file if "device-specs%s" didn't resolve to a path.
9747 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
9749         PR target/65676
9750         * config/i386/i386.c (fixup_modeless_constant): New.
9751         (ix86_expand_args_builtin): Fixup modeless constant operand.
9752         (ix86_expand_round_builtin): Ditto.
9753         (ix86_expand_special_args_builtin): Ditto.
9754         (ix86_expand_builtin): Ditto.
9756 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
9758         PR target/65693
9759         * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
9760         any pow2 integer in between 2 and 0x80000000U inclusive.
9762 2015-04-08  Segher Boessenkool  <segher@kernel.crashing.org>
9764         PR rtl-optimization/65693
9765         * combine.c (is_parallel_of_n_reg_sets): Change first argument
9766         from an rtx_insn * to an rtx.
9767         (try_combine): Adjust both callers.  Use it once more.
9769 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
9771         * tree-chkp.c (chkp_find_const_bounds_var): Remove.
9772         (chkp_make_static_const_bounds): Search existing
9773         symbol by assembler name.  Use make_decl_one_only.
9774         (chkp_get_zero_bounds_var): Remove node search which
9775         is now performed in chkp_make_static_const_bounds.
9776         (chkp_get_none_bounds_var): Likewise.
9778 2015-04-08  Michael Witten  <mfwitten@gmail.com>
9780         * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
9781         to an example.
9783 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
9785         * tree.h (CONVERT_EXPR_P): Commentary typo fix.
9787 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
9789         * doc/extend.texi (__sync Builtins): Fix grammar.
9791 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
9793         * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
9795 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
9797         * varasm.c (emit_local): Move definition of align.
9799 2015-04-08  Julian Brown  <julian@codesourcery.com>
9801         * config/nvptx/mkoffload.c (process): Support variable mapping.
9803 2015-03-27  Trevor Saunders  <tbsaunde@tbsaunde.org>
9805         * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
9806         alpha_links **.
9807         (alpha_write_one_linkage): Correct typo.
9809 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
9811         * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
9813 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
9815         * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
9817 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
9819         * tree-chkp.h (chkp_insert_retbnd_call): New.
9820         * tree-chkp.c (chkp_insert_retbnd_call): New.
9821         * ipa-split.c (insert_bndret_call_after): Remove.
9822         (split_function): Use chkp_insert_retbnd_call.
9823         * cgraphunit.c (cgraph_node::expand_thunk): Build returned
9824         bounds for instrumented functions.
9826 2015-04-07  Jan Hubicka  <hubicka@ucw.cz>
9828         PR ipa/65540
9829         * calls.c (initialize_argument_information): When producing tail
9830         call also turn SSA_NAMES passed by references to original PARM_DECLs
9832 2015-04-07  Vladimir Makarov  <vmakarov@redhat.com>
9834         PR target/65648
9835         * lra-remat.c (do_remat): Process input and non-input insn
9836         registers separately.
9838 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
9840         PR debug/65678
9841         * valtrack.c (debug_lowpart_subreg): New function.
9842         (dead_debug_insert_temp): Use it.
9844         PR middle-end/65680
9845         * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
9846         into signed HOST_WIDE_INT the same as negative bit_offset.
9848 2015-04-07  Ilya Enkovich  <ilya.enkovich@intel.com>
9850         * ipa-comdats.c (ipa_comdats): Visit all thunks
9851         to set proper comdat group.
9853 2015-04-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9855         PR target/65489
9856         * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
9857         on constants for NEON VSTRUCT modes.
9859 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
9860             Iain Sandoe  <iain@codesourcery.com>
9862         PR target/65351
9863         * configure: Regenerate.
9865 2015-04-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
9867         PR target/65614
9868         * config/rs6000/rs6000.c (struct processor_costs): Add cost field
9869         for SF->DF conversions to make FLOAT_EXTEND more expensive, so
9870         that LFD is used to load double constants instead of LFS.  Add
9871         defaults for all costs structures.  Add comments for missing
9872         initialization fields.
9873         (size32_cost): Likewise.
9874         (size64_cost): Likewise.
9875         (rs64a_cost): Likewise.
9876         (mpccore_cost): Likewise.
9877         (ppc403_cost): Likewise.
9878         (ppc405_cost): Likewise.
9879         (ppc440_cost): Likewise.
9880         (ppc476_cost): Likewise.
9881         (ppc601_cost): Likewise.
9882         (ppc603_cost): Likewise.
9883         (ppc604_cost): Likewise.
9884         (ppc604e_cost): Likewise.
9885         (ppc620_cost): Likewise.
9886         (ppc630_cost): Likewise.
9887         (ppccell_cost): Likewise.
9888         (ppc750_cost): Likewise.
9889         (ppc7450_cost): Likewise.
9890         (ppc8540_cost): Likewise.
9891         (ppce300c2c3_cost): Likewise.
9892         (ppce500mc_cost): Likewise.
9893         (ppce500mc64_cost): Likewise.
9894         (ppce5500_cost): Likewise.
9895         (ppce6500_cost): Likewise.
9896         (titan_cost): Likewise.
9897         (power4_cost): Likewise.
9898         (power6_cost): Likewise.
9899         (power7_cost): Likewise.
9900         (power8_cost): Likewise.
9901         (ppca2_cost): Likewise.
9902         (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
9904         * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
9905         instead of XXLOR to copy SFmode to clear out dirty bits created
9906         when SFmode denormals are generated.
9907         (mov<mode>_hardfloat, FMOVE32 case): Likewise.
9908         (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
9910 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
9912         * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
9913         * config/aarch64/aarch64-cores.def (exynos-m1): New core.
9914         * config/aarch64/aarch64-tune.md: Regenerate.
9916 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
9918         * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
9919         * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
9920         * config/arm/arm-cores.def (exynos-m1): New core.
9921         * config/arm/arm-tune.md: Regenerate.
9922         * config/arm/arm-tables.opt: Add entry for "exynos-m1".
9923         * config/arm/bpabi.h: Likewise.
9925 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
9927         * ipa-cp (set_single_call_flag): Remove too
9928         restrictive assert.
9930 2015-04-06  Ilya Verbin  <ilya.verbin@intel.com>
9932         * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
9933         GOMP_offload_unregister from the destructor.
9935 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
9937         * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
9938         flags for instrumentation thunk.
9939         (chkp_produce_thunks): Likewise.
9941 2015-04-05  Martin Liska  <mliska@suse.cz>
9943         PR ipa/65665
9944         * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
9945         has computed data structure.
9946         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
9948 2015-04-04  Jan Hubicka  <hubicka@ucw.cz>
9950         * invoke.texi (inline-unit-growth): Increase growth to 20%
9951         * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
9953 2015-04-04  Vladimir Makarov  <vmakarov@redhat.com>
9955         PR target/65647
9956         * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New.  Add its
9957         value checking.
9958         (lra_rematerialization_iter): New.
9959         * lra.c (lra): Initialize lra_rematerialization_iter.
9960         Stop updating lra_constraint_new_regno_start after switching of
9961         inheritance and rematerialization.
9962         * lra-remat.c (lra_rematerialization_iter): New.
9963         (lra_remat): Add printing pass iteration.  Do rematerialization
9964         only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
9966 2015-04-04  Richard Biener  <rguenther@suse.de>
9968         PR tree-optimization/64909
9969         PR tree-optimization/65660
9970         * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
9971         to take a cost vector for scalar iteration cost.
9972         (vect_get_single_scalar_iteration_cost): Likewise.
9973         * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
9974         Compute the scalar iteration cost into a cost vector.
9975         (vect_get_known_peeling_cost): Use the scalar cost vector to
9976         account for the cost of the peeled iterations.
9977         (vect_estimate_min_profitable_iters): Likewise.
9978         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
9979         Likewise.
9981 2015-04-04  Alan Modra  <amodra@gmail.com>
9983         PR target/65576
9984         PR target/65240
9985         * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
9986         0.0 constant unless TARGET_VSX.
9987         * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
9988         alternative.
9990 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
9992         PR ipa/65654
9993         * ipa-inline-transform.c (inline_call): Skip sanity check to work
9994         around the ICE
9996 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
9998         PR ipa/65655
9999         * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
10000         speculative indirect edges to avoid ordering issue.
10002 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
10004         PR ipa/65076
10005         * ipa-inline.c (edge_badness): Add combined size to the denominator.
10007 2015-04-03  Jakub Jelinek  <jakub@redhat.com>
10009         * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
10010         TYPE_ARTIFICIAL on the .omp_data* types.
10012 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
10014         * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
10015         instrumentation thunks.
10017 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
10019         * config/i386/i386.c (ix86_expand_call): Avoid nested
10020         PARALLEL in returned call value.
10022 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
10024         * lto-cgraph.c (input_cgraph_1): Always link instrumented
10025         assembler name with original one.
10027 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
10029         * config/i386/i386.c (ix86_register_priority): Use AX_REG.
10031 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
10033         Revert parts of r216820.
10034         * config/i386/i386.md (movqi_internal): Correct type calculation
10035         for alternatives 3 and 5.
10037 2015-04-02  Jakub Jelinek  <jakub@redhat.com>
10039         PR preprocessor/61977
10040         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
10041         predefine __vector/__bool/__pixel macros nor context sensitive
10042         macros for CLK_ASM.
10043         * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
10045 2015-04-02  John David Anglin  <danglin@gcc.gnu.org>
10047         * config/pa/pa.c (pa_output_move_double): Directly handle register
10048         indexed memory operand.  Simplify handling of scaled register indexed
10049         memory operands.
10051 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
10053         PR driver/65444
10054         * config/i386/linux-common.h (MPX_SPEC): New.
10055         (CHKP_SPEC): Add MPX_SPEC.
10056         * doc/invoke.texi (-fcheck-pointer-boudns): Document
10057         possible issues with '-z bndplt' support in linker.
10059 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
10061         * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
10062         (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
10063         (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
10064         * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
10065         (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
10067 2015-04-01  Uros Bizjak  <ubizjak@gmail.com>
10069         * config/i386/sync.md (UNSPEC_MOVA): Remove.
10070         (atomic_load<mode>): Change operand 0 predicate to
10071         nonimmediate_operand and fix up the destination when needed.
10072         Use UNSPEC_LDA.
10073         (atomic_loaddi_fpu): Use UNSPEC_LDA.
10074         (atomic_store<mode>): Change operand 1 predicate to
10075         nonimmendate_operand and move the source to register when needed.
10076         Use UNSPEC_STA.
10077         (atomic_store<mode>_1): Use UNSPEC_STA.
10078         (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
10079         Fix moves from memory operand.  Use UNSPEC_STA.
10081 2015-04-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
10083         * expmed.c (strict_volatile_bitfield_p): Check that the access will
10084         not cross a MODESIZE boundary.
10085         (store_bit_field, extract_bit_field): Added assertions in the
10086         strict volatile bitfields code path.
10088 2015-04-01  Max Ostapenko  <m.ostapenko@partner.samsung.com>
10090         PR target/65624
10091         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
10092         Increase args array size by one to avoid buffer overflow.
10094 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
10096         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
10097         split_part.
10098         * ipa-inline.c (edge_badness): Add wrapper penalty.
10099         (sum_callers): Move up.
10100         (inline_small_functions): Set single_caller.
10101         * ipa-inline.h (inline_summary): Add single_caller.
10102         * ipa-split.c (split_function): Set split_part.
10103         (cgraph_node::create_clone): Do not shadow decl; copy split_part.
10104         * cgraph.h (cgraph_node): Add split_part.
10106 2015-03-31  Uros Bizjak  <ubizjak@gmail.com>
10108         PR target/58945
10109         * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
10110         Do not split operands 0 and operands 2 to halfmode.
10111         (atomic_compare_and_swap<mode>): Update for
10112         atomic_compare_and_swap<dwi>_doubleword changes.
10114 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
10116         * tree.c (need_assembler_name_p): Artificial types have no ODR names.
10117         * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
10118         no caching is done.
10120 2015-03-31  Martin Liska  <mliska@suse.cz>
10122         PR ipa/65557
10123         * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
10124         has already filled up function summary.
10125         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
10127 2015-03-31  Richard Biener  <rguenther@suse.de>
10129         * tree-sra.c (create_access_replacement): Drop under-/over-alignment
10130         of types.
10132 2015-03-31  Dominik Vogt  <vogt@linux.vnet.ibm.com>
10134         * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
10135         nested functions.
10136         (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
10137         (s390_asm_output_function_label): Adapt to new signature of
10138         s390_function_num_hotpatch_hw
10139         Optimise the code generating assembler output.
10140         Add comments to assembler file.
10142 2015-03-31  Richard Biener  <rguenther@suse.de>
10144         PR middle-end/65626
10145         * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
10146         of the noreturn call so it is last and cleanup_control_flow_bb
10147         can do the CFG part.
10149 2015-03-31  Ilya Enkovich  <ilya.enkovich@intel.com>
10151         PR target/65531
10152         * ipa-chkp.c (chkp_maybe_create_clone): Don't set
10153         same_comdat_group for external symbols.
10154         * symtab.c (symtab_node::verify_symtab_nodes): Avoid
10155         infinite same_comdat_group traversal loop.
10157 2015-03-31  Jakub Jelinek  <jakub@redhat.com>
10159         PR plugins/61176
10160         * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
10161         automatically to $headers.
10163 2015-03-30  Jakub Jelinek  <jakub@redhat.com>
10165         PR ipa/65610
10166         * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
10167         * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
10168         function.
10169         (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
10170         Use it.
10171         * ipa-prop.c (param_type_may_change_p): Likewise.
10172         * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
10173         (remove_unused_scope_block_p): Add in_ctor_dtor_block
10174         argument.  Before inlining, preserve
10175         inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
10176         with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them.  Adjust
10177         recursive calls.
10178         (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
10180 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
10182         PR ipa/65076
10183         * ipa-inline.c (edge_badness): Base denominator on callee's
10184         grwoth squared.
10186 2015-03-27  Martin Jambor  <mjambor@suse.cz>
10188         PR ipa/65478
10189         * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
10190         (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
10191         * ipa-prop.h (ipa_node_params): New flags node_within_scc and
10192         node_calling_single_call.
10193         * ipa-cp.c (count_callers): New function.
10194         (set_single_call_flag): Likewise.
10195         (initialize_node_lattices): Count callers and set single_flag_call if
10196         necessary.
10197         (incorporate_penalties): New function.
10198         (good_cloning_opportunity_p): Use it, dump new flags.
10199         (propagate_constants_topo): Set node_within_scc flag if appropriate.
10200         * doc/invoke.texi (ipa-cp-recursion-penalty,
10201         ipa-cp-single-call-pentalty): Document.
10203 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
10205         PR ipa/65588
10206         * symtab.c (symtab_node::get_partitioning_class): Register vars
10207         are duplicated.
10208         * varpool.c (symbol_table::output_variables) Do not assemble unefined
10209         decls for non-symbols.
10211 2015-03-27  H.J. Lu  <hongjiu.lu@intel.com>
10213         PR target/65248
10214         * output.h (default_binds_local_p_2): New.
10215         * varasm.c (default_binds_local_p_2): Renamed to ...
10216         (default_binds_local_p_3): This.  Don't return true on protected
10217         data symbol if protected data may be external.
10218         (default_binds_local_p): Use default_binds_local_p_3.
10219         (default_binds_local_p_1): Likewise.
10220         (default_binds_local_p_2): New.
10221         * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
10222         default_binds_local_p_2 if TARGET_MACHO is undefined.
10224 2015-03-27  Jakub Jelinek  <jakub@redhat.com>
10226         PR target/65593
10227         * config/i386/i386.c (legitimize_pic_address): If base
10228         is SYMBOL_REF or LABEL_REF using %rip addressing, force
10229         it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
10231 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
10233         PR target/65531
10234         * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
10235         comdat groups.
10237 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
10239         PR ipa/65600
10240         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
10241         of optimized out indirect call.
10242         (redirect_to_unreachable): Always build symbol table node for
10243         BUILT_IN_UNREACHABLE
10245 2015-03-27  Vladimir Makarov  <vmakarov@redhat.com>
10247         PR target/65407
10248         * ira-costs.c (record_reg_classes): Process all constraint string
10249         containing 0-9.
10251 2015-03-27  Bernd Schmidt  <bernds@codesourcery.com>
10253         * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
10254         memory_operand.
10256         PR target/65052
10257         * config/c6x/constraints.md (S3): New constraint.
10258         * config/c6x/c6x.md (real_jump): Use it.
10260 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
10262         PR middle-end/65595
10263         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
10264         do redirection if the call is not optimized out.
10266 2015-03-27  Ilya Enkovich  <ilya.enkovich@intel.com>
10268         PR target/65495
10269         * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
10270         (fchkp-check-incomplete-type): Add LTO.
10271         (fchkp-zero-input-bounds-for-main): Likewise.
10272         (fchkp-first-field-has-own-bounds): Likewise.
10273         (fchkp-narrow-bounds): Likewise.
10274         (fchkp-narrow-to-innermost-array): Likewise.
10275         (fchkp-use-static-bounds): Likewise.
10276         (fchkp-use-static-const-bounds): Likewise.
10277         (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
10279 2015-03-27  Marek Polacek  <polacek@redhat.com>
10281         * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
10283 2015-03-27  Marek Polacek  <polacek@redhat.com>
10285         PR sanitizer/65583
10286         * ubsan.c (ubsan_create_edge): New function.
10287         (instrument_bool_enum_load): Call it.
10288         (instrument_nonnull_arg): Likewise.
10289         (instrument_nonnull_return): Likewise.
10290         (instrument_object_size): Likewise.
10292 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
10294         * lto-streamer.h (class lto_location_cache): Turn loc_cache into
10295         auto_vec.
10297 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
10299         PR lto/65536
10300         * lto-streamer.h (class lto_location_cache): New.
10301         (struct data_in): Add location_cache.
10302         (lto_input_location): Update prototype.
10303         (stream_input_location_now): New.
10304         * streamer-hooks.h (struct streamer_hooks): Make input_location to take
10305         pointer to location.
10306         (stream_input_location): Update.
10307         * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
10308         (warn_odr): Apply location cache before warning.
10309         (lto_input_location): Update prototype.
10310         * gimple-streamer-in.c (input_phi, input_gimple_stmt):
10311         Use stream_input_location_now.
10312         * lto-streamer-in.c (lto_location_cache::current_cache): New static
10313         variable.
10314         (lto_location_cache::cmp_loc): New function.
10315         (lto_location_cache::apply_location_cache): New function.
10316         (lto_location_cache::accept_location_cache): New function.
10317         (lto_location_cache::revert_location_cache): New function.
10318         (lto_location_cache::input_location): New function.
10319         (lto_input_location): Do location caching.
10320         (stream_input_location_now): New function.
10321         (input_eh_region, input_struct_function_base): Use
10322         stream_input_location_now.
10323         (lto_data_in_create): use new.
10324         (lto_data_in_delete): Use delete.
10325         * tree-streamer-in.c (unpack_ts_block_value_fields,
10326         unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
10327         lto_input_ts_exp_tree_pointers): Update for cached location api.
10329 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
10331         PR ipa/65076
10332         * passes.def: Add pass_nothrow.
10333         * ipa-pure-const.c: (pass_data_nothrow): New.
10334         (pass_nothrow): New.
10335         (pass_nothrow::execute): New.
10336         (make_pass_nothrow): New.
10337         * tree-pass.h (make_pass_nothrow): Declare.
10339 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
10341         * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
10342         edge to change by speculation resolution or redirection.
10343         (edge_set_predicate): Likewise.
10344         (inline_summary_t::duplicate): Likewise.
10345         (remap_edge_summaries): Likewise.
10347 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
10349         * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
10350         New macros.
10351         (can_inline_edge_p): Relax option matching for always inline functions.
10353 2015-03-26  Uros Bizjak  <ubizjak@gmail.com>
10355         PR target/65561
10356         * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
10357         Check operand 4 and operand 0 for equality.
10358         (avx512f_vextract<shuffletype>32x4_1_maskm):
10359         Check operand 6 and operand 0 for equality.
10360         (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
10361         for equality.
10362         (vec_extract_hi_<mode>_maskm): Ditto.
10364 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
10366         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
10367         dead calls back to live.
10368         (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
10369         cross check to ...
10370         (cgraph_node::verify_node): ... here; verify only callee edges,
10371         not caller.
10372         * cif-code.def (CILK_SPAWN): New code.
10374 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
10376         * ipa-inline-analysis.c (redirect_to_unreachable): New function.
10377         (edge_set_predicate): Use it to mark unreachable edges.
10378         (inline_summary_t::duplicate): Remove unnecesary code.
10379         (remap_edge_summaries): Likewise.
10380         (dump_inline_summary): Report contains_cilk_spawn.
10381         (compute_inline_parameters): Compute contains_cilk_spawn.
10382         (inline_read_section, inline_write_summary): Stream
10383         contains_cilk_spawn.
10384         * ipa-inline.c (can_inline_edge_p): Do not touch
10385         DECL_STRUCT_FUNCTION that may not be available;
10386         use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
10387         remove check for callee_fun->can_throw_non_call_exceptions and
10388         replace it by optimization attribute check; check for flag_exceptions.
10389         * ipa-inline-transform.c (inline_call): Maintain
10390         DECL_FUNCTION_PERSONALITY
10391         * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
10393 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
10395         PR tree-optimization/65551
10396         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
10397         TYPE_PRECISION only for INTEGRAL_TYPE_P types.
10399 2015-03-26  Richard Biener  <rguenther@suse.de>
10401         PR middle-end/65555
10402         * tree-cfg.c (verify_gimple_call): Do not require a call to
10403         have no LHS if it wasn't recognized as control altering yet.
10405 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
10407         PR tree-optimization/64715
10408         * passes.def: Add another instance of pass_object_sizes before ccp1.
10409         * tree-object-size.c (pass_object_sizes::execute): In
10410         first_pass_instance, only handle __bos (, 1) and __bos (, 3)
10411         calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
10412         __bos result and the computed constant.  Remove redundant
10413         checks, obsoleted by gimple_call_builtin_p test.
10415         * var-tracking.c (variable_tracking_main_1): Don't track
10416         variables for targetm.no_register_allocation targets.
10418 2015-03-26  Oleg Endo  <olegendo@gcc.gnu.org>
10420         * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
10421         * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
10423 2015-03-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
10425         PR target/65569
10426         * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
10427         XXLXOR to create 0.0.  On pre-VSX systems make sure the constant
10428         0.0 is correctly setup.
10429         (extenddftf2_internal): Likewise.
10431 2015-03-25  Sebastian Pop  <s.pop@samsung.com>
10433         PR tree-optimization/65177
10434         * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
10435         (bb_in_bbs): New.
10436         (duplicate_seme_region): Renamed duplicate_thread_path.  Redirect all
10437         edges not adjacent on the path to the original code.
10439 2015-03-25  Uros Bizjak  <ubizjak@gmail.com>
10441         PR bootstrap/65537
10442         * doc/install.texi (Building a native compiler): Document new
10443         bootstrap-lto-noplugin configuration.  Mention that bootstrap-lto
10444         configuration assumes that the host supports the linker plugin.
10446 2015-03-25  Ilya Enkovich  <ilya.enkovich@intel.com>
10448         PR target/65508
10449         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
10450         chain for generated call.
10452 2015-03-25  Richard Biener  <rguenther@suse.de>
10454         * passes.c (pass_manager::execute_early_local_passes): Guard
10455         execution of pass_chkp_instrumentation_passes with
10456         flag_check_pointer_bounds.
10457         (pass_chkp_instrumentation_passes::gate): Likewise.
10459 2015-03-25  Martin Liska  <mliska@suse.cz>
10461         PR tree-optimization/65538
10462         * symbol-summary.h (function_summary::~function_summary):
10463         Relese memory for allocated summaries.
10464         (function_summary::release): New function.
10466 2015-03-25  Jakub Jelinek  <jakub@redhat.com>
10468         PR lto/65515
10469         * lto-streamer-out.c (DFS::worklist): New struct.
10470         (DFS::worklist_vec): New data member.
10471         (DFS::next_dfs_num): Remove.
10472         (DFS::DFS): Rewritten using worklist instead of recursion,
10473         using most of code from DFS::DFS_write_tree.
10474         (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
10475         pass it to DFS_write_tree calls.
10476         (DFS::DFS_write_tree): Remove SINGLE_P argument, after
10477         quick initial checks push it into worklist_vec and return.
10479 2015-03-25  Richard Biener  <rguenther@suse.de>
10481         PR middle-end/65519
10482         * genmatch.c (expr::gen_transform): Re-write to avoid
10483         using gimple_build.
10485 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
10487         * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
10489 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
10491         * config/arm/arm.opt (print_tune_info): New option.
10492         * config/arm/arm.c (arm_print_tune_info): New function.
10493         (arm_file_start): Call arm_print_tune_info.
10494         * config/arm/arm-protos.h (struct tune_params): Add comment.
10495         * doc/invoke.texi (@item -mprint-tune-info): New item.
10496         (-mtune): mention it in ARM Option Summary.
10498 2015-03-25  DJ Delorie  <dj@redhat.com>
10500         * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
10501         correct clause.
10503 2015-03-24  Jan Hubicka  <hubicka@ucw.cz>
10504             Martin Liska  <mliska@suse.cz>
10506         * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
10507         * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
10508         (sem_item::add_type): New function.
10509         (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
10510         (sem_function::compare_polymorphic_p): Do not consider indirect calls.
10511         (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
10512         (sem_function::equals_wpa): Fix typo.
10513         * ipa-icf.h (sem_item::add_type): New function.
10514         (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
10515         order.
10517 2015-03-24  Jakub Jelinek  <jakub@redhat.com>
10519         PR tree-optimization/65533
10520         * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
10521         with swapped operands, call vect_free_slp_tree on
10522         SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
10523         vector.
10525 2015-03-24  Richard Biener  <rguenther@suse.de>
10527         PR middle-end/65517
10528         * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
10529         for fixup if necessary.
10531 2015-03-23  Sandra Loosemore  <sandra@codesourcery.com>
10533         * doc/extend.texi (Function Attributes): Add @cindex entries
10534         for all attributes and regularize their format.  Delete text
10535         about long-obsolete 68HC11 and 68HC12 targets.  Move misplaced
10536         information about "eightbit_data", "tiny_data", and "model"
10537         variable attributes to the Variable Attributes section.  Fix
10538         some obvious typos and copy-editing issues.
10539         (Variable Attributes, Type Attributes): Likewise add/fix
10540         @cindex entries for all attributes.
10542 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
10544         PR target/65523
10545         * tree-chkp.c (chkp_build_returned_bound): Ignore
10546         ERF_RETURNS_ARG calls if they have fewer than needed arguments.
10548 2015-03-23  Oleg Endo  <olegendo@gcc.gnu.org>
10550         PR target/65505
10551         * config/sh/predicates.md (simple_mem_operand,
10552         displacement_mem_operand): Add test for reg.
10553         (short_displacement_mem_operand): Test for displacement_mem_operand
10554         before invoking sh_disp_addr_displacement.
10555         * config/sh/constraints.md (Sdd, Sra): Simplify.
10556         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
10557         Remove redundant displacement_mem_operand tests.
10559 2015-03-23  Georg-Johann Lay  <avr@gjlay.de>
10561         PR target/65296
10562         * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
10563         the same -mmcu=MCU more than once.
10565 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
10567         PR bootstrap/65522
10568         * ipa-devirt.c: Remove duplicate demangle.h include.
10570         PR target/65504
10571         * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
10572         on the pseudo.
10573         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
10574         REG_POINTER on *destptr after adjusting it for prologue size.
10576         PR ipa/65521
10577         * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
10578         ultimate_alias_target ()->order ints instead of
10579         ultimate_alias_target () pointers.
10581 2015-03-23  Richard Biener  <rguenther@suse.de>
10583         PR tree-optimization/65518
10584         * tree-vect-stmts.c (vectorizable_load): Reject single-element
10585         interleaving cases we generate absymal code for.
10587 2015-03-23  Richard Biener  <rguenther@suse.de>
10589         PR tree-optimization/65494
10590         * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
10591         matches here.
10592         (vect_analyze_slp_instance): But do that here, always and once.
10594 2015-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10596         * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
10597         adding T or multiplying by T+1 and subracting T.
10599 2015-03-22  Jeff Law  <law@redhat.com>
10601         PR rtl-optimization/64317
10602         * Makefile.in (OBJS): Add gcse-common.c
10603         * gcse.c: Include gcse-common.h
10604         (struct modify_pair_s): Move structure definition to gcse-common.h
10605         (compute_transp): Move function to gcse-common.c.
10606         (canon_list_insert): Similarly.
10607         (record_last_mem_set_info): Break out some code and put it into
10608         gcse-common.c.  Call into the new common code.
10609         (compute_local_properties): Pass additional arguments to compute_transp.
10610         * postreload-gcse.c: Include gcse-common.h and df.h
10611         (modify_mem_list_set, blocks_with_calls): New variables.
10612         (modify_mem_list, canon_modify_mem_list, transp): Likewise.
10613         (get_bb_avail_insn): Pass in the expression index too.
10614         (alloc_mem): Allocate memory for the new bitmaps and lists.
10615         (free_mem): Free memory for the new bitmaps and lists.
10616         (insert_expr_in_table): Record a bitmap index for each entry we
10617         add to the table.
10618         (record_last_mem_set_info): Call into common code in gcse-common.c.
10619         (get_bb_avail_insn): If no available insn was found in the requested
10620         BB.  If BB has a single predecessor, see if the expression is
10621         transparent in BB and available in that single predecessor.
10622         (compute_expr_transp): New wrapper for compute_transp.
10623         (eliminate_partially_redundant_load): Pass expression's bitmap_index
10624         to get_bb_avail_insn.  Compute next_pred_bb_end a bit later.
10625         (gcse_after_reload_main): If there are elements in the hash table,
10626         then compute transparency for all the elements in the hash table.
10627         * gcse-common.h: New file.
10628         * gcse-common.c: New file.
10630 2015-03-22  Sandra Loosemore  <sandra@codesourcery.com>
10632         * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
10633         as an adjective.
10634         (System Headers): Likewise.
10635         (Ifdef): Likewise.
10636         (Traditional macros): Likewise.
10637         (Invocation): Likewise.
10638         (Option Index): Likewise.
10639         * doc/cppopts.texi (-M): Likewise.
10640         (-finput-charset): Likewise.
10641         (--help): Likewise.
10642         * doc.invoke.texi (AVR Options): Likewise.
10643         (V850 Options): Likewise.
10645 2015-03-22  Jan Hubicka  <hubicka@ucw.cz>
10647         PR ipa/65475
10648         * ipa-devirt.c: Include demangle.h
10649         (odr_type_d): Add field rtti_broken.
10650         (odr_subtypes_equivalent_p): Do not require name to match.
10651         (compare_virtual_tables): Fix typo; if type already has ODR violation,
10652         bypass the tests; be ready for function referneces in vtables that are
10653         not DECL_VIRTUAL; make warnings to be OPT_Wodr.
10654         (warn_odr): Give up for nameless types.
10655         (warn_types_mismatch): Report mismatch in mangled names;
10656         report mismatch in anonymous namespaces; look into component types to
10657         give useful error; report when mismatch is dragged in from other ODR
10658         type.
10659         (odr_types_equivalent_p): Match types for being polymorphic; avoid
10660         duplicated diagnostics.
10661         (add_type_duplicate): Reorder checks so more informative ones come
10662         first; fix typo; do not output "the extra base is defined here" when
10663         we did not warn.
10664         (BINFO_N_BASE_BINFOS): Relax sanity check.
10666 2015-03-22  Martin Liska  <mliska@suse.cz>
10667             Jakub Jelinek  <jakub@redhat.com>
10669         * config/i386/i386.c (def_builtin): Set deferred_isa_values for
10670         masks that can potentially include a builtin.
10671         (ix86_add_new_builtins): Introduce fast filter for isa values
10672         that cannot trigger builtin inclusion.
10674 2015-03-22  Martin Liska  <mliska@suse.cz>
10676         * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
10677         (sem_item::update_hash_by_local_refs): Likewise.
10678         (sem_variable::get_hash): Empty line is fixed.
10679         (sem_item_optimizer::execute): Include adding of hash references.
10680         (sem_item_optimizer::update_hash_by_addr_refs): New function.
10681         (sem_item_optimizer::build_hash_based_classes): Use local hash.
10682         * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
10683         (sem_item::update_hash_by_local_refs): Likewise.
10685 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
10687         PR ipa/65502
10688         * ipa-comdats.c (enqueue_references): Walk through thunks.
10689         (ipa_comdats): Likewise.
10690         (set_comdat_group_1): New function.
10692 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
10694         PR ipa/65475
10695         * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
10696         non-polymorphic
10698 2015-03-22  Dave Korn  <dave.korn.cygwin@gmail.com>
10699             Gerald Pfeifer  <gerald@pfeifer.com>
10701         * doc/contrib.texi (Contributors): Update entry for Danny Smith.
10703 2015-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
10704             Sandra Loosemore  <sandra@codesourcery.com>
10706         * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
10707         function parameter declaration.
10708         * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
10709         Update arguments to nios2_adjust_call_address().
10710         (sibcall_internal): Rename from *sibcall.
10711         (sibcall_value_internal): Rename from *sibcall_value.
10712         * config/nios2/nios2.c (nios2_emit_add_constant): New function.
10713         (nios2_large_got_address): Add target temp reg parameter.
10714         (nios2_got_address): Adjust call to nios2_large_got_address, add
10715         force_reg around it.
10716         (nios2_load_pic_address): Add target temp reg parameter, replace call
10717         to nios2_got_address with corresponding code.
10718         (nios2_legitimize_constant_address): Update call to
10719         nios2_load_pic_address.
10720         (nios2_adjust_call_address): Add temp reg parameter, update PIC case
10721         to use temp reg for PIC loading purposes.
10722         (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
10723         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
10724         (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
10726 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
10728         * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
10729         usage of "the @option{...}".
10730         (-Wopenmp-simd): Likewise.
10731         (-fsanitize-recover): Likewise.
10732         (-fsanitize-undefined-trap-on-error): Likewise.
10733         (-flto): Likewise.
10734         (tracer-dynamic-coverage-feedback): Likewise.
10735         (reorder-block-duplicate-feedback): Likewise.
10736         (loop-unroll-jam-size): Likewise.
10737         (-B): Likewise.
10738         (-I-): Likewise.
10739         (-mabs=legacy): Likewise.
10740         (-mupper-regs-df): Likewise.
10741         (-mupper-regs-sf): Likewise.
10742         (-mpointers-to-nested-functions): Likewise.
10744 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
10746         * doc/extend.texi (Cilk Plus Builtins): Add markup.
10748 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
10750         * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
10751         additional index entries and cross-references.
10752         (-fchkp-check-incomplete-type): Likewise.
10753         (-fchkp-first-field-has-own-bounds): Likewise.
10754         (-fchkp-narrow-to-innermost-array): Likewise.
10755         (-fchkp-use-fast-string-functions): Likewise.
10756         (-fchkp-use-nochk-string-functions): Likewise.
10757         (-fchkp-use-static-const-bounds): Likewise.
10758         (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
10759         (-fchkp-instrument-marked-only): Likewise.
10760         (-fchkp-use-wrappers): Likewise.
10761         (-static-libmpx): Likewise.
10762         (-static-libmpxwrappers): Likewise.
10763         * doc/extend.texi (bnd_legacy): Likewise.
10764         (bnd_instrument): Likewise.
10765         (bnd_variable_size): Likewise.
10766         (Pointer Bounds Checker builtins): Likewise.
10768 2015-03-21  Tom de Vries  <tom@codesourcery.com>
10770         PR tree-optimization/65458
10771         * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
10772         * cgraph.h (cgraph_node): Add parallelized_function field.
10773         * lto-cgraph.c (lto_output_node): Write parallelized_function field.
10774         (input_overwrite_node): Read parallelized_function field.
10775         * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
10776         parallelized_function on cgraph_node for child_fn.
10777         * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
10778         Remove include of gt-tree-parloops.h.
10779         (parallelized_functions): Remove static variable.
10780         (parallelized_function_p): Rewrite using parallelized_function field of
10781         cgraph_node.
10782         (create_loop_fn): Remove adding to parallelized_functions.
10783         * Makefile.in (GTFILES): Remove tree-parloops.c
10785 2015-03-20  Vladimir Makarov  <vmakarov@redhat.com>
10787         PR rtl-optimization/64366
10788         * lra.c (lra_update_insn_regno_info): Consider regs in
10789         CALL_INSN_FUNCTION_USAGE memory.
10791 2015-03-20  Richard Biener  <rguenther@suse.de>
10793         PR middle-end/64715
10794         * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
10795         for type comparison and gcc_checking_assert.
10796         (chrec_fold_plus_poly_poly): Likewise.
10797         (chrec_fold_multiply_poly_poly): Likewise.
10798         (chrec_convert_1): Likewise.
10799         * gimplify.c (gimplify_expr): Remove premature folding of
10800         &X + CST to &MEM[&X, CST].
10802 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
10804         * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
10805         already is final.
10806         (ipa_inline): Recompute inline_failed codes.
10807         * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
10808         USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
10809         CIF_FINAL_ERROR.
10811 2015-03-20  Uros Bizjak  <ubizjak@gmail.com>
10813         PR rtl-optimization/60851
10814         * recog.c (constrain_operands): Accept a pseudo register before reload
10815         for LRA enabled targets.
10817 2015-03-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
10819         PR target/65240
10820         * config/rs6000/predicates.md (easy_fp_constant): Remove special
10821         -ffast-math handling that kept non-0 constants live in the RTL
10822         until reload.  Remove logic testing the number of instructions it
10823         took to create a constant in a GPR that was never used, due to a
10824         test for soft-float earlier.
10825         (memory_fp_constant): Delete, no longer used.
10827         * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
10828         alternatives for loading non-0 constants into GPRs for hard
10829         floating point that is no longer needed due to changes in
10830         easy_fp_constant.  Add support for loading 0.0 into GPRs.
10831         (mov<mode>_hardfloat32): Likewise.
10832         (mov<mode>_hardfloat64): Likewise.
10833         (mov<mode>_64bit_dm): Likewise.
10834         (movtd_64bit_nodm): Likewise.
10835         (pre-reload move FP constant define_split): Delete define_split,
10836         since it is no longer used.
10837         (extenddftf2_internal): Remove GHF constraints that are not valid
10838         for extenddftf2.
10840 2015-03-19  Vladimir Makarov  <vmakarov@redhat.com>
10842         PR rtl-optimization/63491
10843         * lra-constraints.c (check_and_process_move): Use src instead of
10844         sreg.  Remove some dead code.
10846 2015-03-19  Jan Hubicka  <hubicka@ucw.cz>
10848         PR ipa/65380
10849         * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
10850         (sem_variable::merge): Likewise.
10852 2015-03-19  Martin Liska  <mliska@suse.cz>
10854         PR ipa/65465
10855         * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
10856         all fields of cgraph_thunk_info.
10858 2015-03-19  Ilya Enkovich  <ilya.enkovich@intel.com>
10860         * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
10861         clone instrumented thunks.
10863 2015-03-19  Richard Biener  <rguenther@suse.de>
10865         Revert
10866         2015-03-10  Richard Biener  <rguenther@suse.de>
10868         PR middle-end/63155
10869         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
10870         * tree-ssa-coalesce.c: Include timevar.h.
10871         (attempt_coalesce): Handle graph being NULL.
10872         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
10873         Split out abnormal coalescing to ...
10874         (perform_abnormal_coalescing): ... this function.
10875         (coalesce_ssa_name): Perform abnormal coalescing without computing
10876         live/conflict.
10877         (verify_ssa_coalescing_worker): New function.
10878         (verify_ssa_coalescing): Likewise.
10880 2015-03-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
10881             Jakub Jelinek  <jakub@redhat.com>
10883         PR sanitizer/65400
10884         * tsan.c (instrument_gimple): Clear tail call flag on
10885         calls.
10887 2015-03-19  Jakub Jelinek  <jakub@redhat.com>
10889         PR sanitizer/65400
10890         * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
10891         call in the return bb.
10892         (find_split_points): Add RETURN_BB argument, don't call
10893         find_return_bb.
10894         (split_function): Likewise.  Add ADD_TSAN_FUNC_EXIT argument,
10895         if true append TSAN_FUNC_EXIT internal call after the call to
10896         the split off function.
10897         (execute_split_functions): Call find_return_bb here.
10898         Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
10899         Adjust find_split_points and split_function calls.
10901 2015-03-18  DJ Delorie  <dj@redhat.com>
10903         * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
10904         (iorqi3_virt): Likewise.
10906 2015-03-18  Tom de Vries  <tom@codesourcery.com>
10908         * tree-parloops.c (parallelize_loops): Make static.
10909         * tree-parloops.h (parallelize_loops): Remove extern declaration.
10911 2015-03-18  Andrew Stubbs  <ams@codesourcery.com>
10913         PR middle-end/64491
10914         Revert:
10915         2014-11-20  Andrew Stubbs  <ams@codesourcery.com>
10917         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
10918         condition would be removed due to undefined behaviour.
10920 2015-03-18  Martin Liska  <mliska@suse.cz>
10922         PR ipa/65432
10923         * cgraph.c (cgraph_node::get_create): Remove unnecessary
10924         xstrdup_for_dump wrapper.
10925         * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
10926         sem_item::name.
10927         (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
10928         with xstrdup_for_dump.
10929         (sem_variable::equals): Likewise.
10930         (sem_item_optimizer::read_section): Use symtab_node::name instead of
10931         sem_item::name.
10932         (sem_item_optimizer::parse_funcs_and_vars): Likewise.
10933         (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
10934         symtab_node::asm_name with xstrdup_for_dump.
10935         (congruence_class::dump): Use symtab_node::name instead of
10936         sem_item::name.
10937         * ipa-icf.h (symtab_node::name): Remove.
10938         (symtab_node::asm_name): Likewise.
10940 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
10942         PR tree-optimization/65450
10943         * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
10944         function.
10945         (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
10946         it instead of duplicate_ssa_name_ptr_info.
10948         PR target/65222
10949         * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
10951 2015-03-18  Richard Biener  <rguenther@suse.de>
10953         * tree-data-ref.h (struct access_matrix): Remove.
10954         (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
10955         AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
10956         AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
10957         (am_vector_index_for_loop): Likewise.
10958         (struct data_reference): Remove access_matrix member.
10959         (DR_ACCESS_MATRIX): Remove.
10960         (lambda_vector_new): Add comment.
10961         (lambda_matrix_new): Use XOBNEWVEC.
10963 2015-03-18  Richard Biener  <rguenther@suse.de>
10965         * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
10966         (pass_ch::execute): Cleanup the CFG only if we did sth.
10967         * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
10969 2015-03-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10971         * expmed.c (synth_mult): Use std::swap instead of manually
10972         swapping algorithms.
10974 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
10976         PR target/65078
10977         * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
10979 2015-03-16  Georg-Johann Lay  <avr@gjlay.de>
10981         PR target/65296
10982         * config/avr/avr.opt (-nodevicelib): New option.
10983         * doc/invoke.texi (AVR Options): Document it.
10984         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
10985         libgcc.a, libc.a, libm.a.
10986         * config/avr/specs.h: Same.
10987         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
10988         which don't (directly) depend on the device.  Print more help.
10989         (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
10990         (*cpp): Don't define __AVR_DEV_LIB_NAME__.
10991         * config/avr/driver-avr.c: Remove -nodevicelib from option list in
10992         case of an error.
10993         (avr_devicespecs_file): Use suffix "%s" instead of absolute path
10994         for specs file name.
10995         * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
10996         * config/avr/avr-mcus.def: Adjust initializers and comments.
10998 2015-03-16  Jan Hubicka  <hubicka@ucw.cz>
11000         * tree-sra.c (ipa_sra_preliminary_function_checks): Use
11001         DECL_ONE_ONLY to check if decl is one only.
11002         * ipa-split.c (consider_split): Limit splitt of one only functions.
11004 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
11006         PR tree-optimization/65427
11007         * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
11008         functions.
11009         (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
11011 2015-03-16  Marek Polacek  <polacek@redhat.com>
11013         * cgraph.h (add_new_static_var): Remove declaration.
11014         * varpool.c (add_new_static_var): Remove function.
11016 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
11018         * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
11019         instead of vec<tree> * with vec_alloc and release for args.
11020         Adjust all users.
11022         PR middle-end/65431
11023         * omp-low.c (delete_omp_context): Only splay_tree_delete
11024         reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
11025         is_gimple_omp_oacc contexts.  Don't look at ctx->outer.
11027 2015-03-16  Max Ostapenko  <m.ostapenko@partner.samsung.com>
11029         PR sanitizer/64820
11030         * cfgexpand.c (align_base): New function.
11031         (alloc_stack_frame_space): Call it.
11032         (expand_stack_vars): Align prev_frame to be sure
11033         data->asan_vec elements aligned properly.
11035 2015-03-16  Eric Botcazou  <ebotcazou@adacore.com>
11037         PR middle-end/65409
11038         * expr.c (store_field): Do not do a direct block copy if the source is
11039         a PARALLEL with BLKmode.
11041 2015-03-16  Tom de Vries  <tom@codesourcery.com>
11043         PR middle-end/65414
11044         Revert:
11045         2015-03-12  Tom de Vries  <tom@codesourcery.com>
11047         PR rtl-optimization/64895
11048         * lra-lives.c (check_pseudos_live_through_calls): Use
11049         actual_call_used_reg_set instead of call_used_reg_set, if available.
11051 2015-03-16  Alan Modra  <amodra@gmail.com>
11053         PR target/63150
11054         * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
11055         Modify Z->r bswapdi splitter to use dest in place of scratch.
11056         In r->Z and Z->r bswapdi splitter rename word_high, word_low
11057         to word1, word2 and rearrange logic to suit.
11058         (bswapdi2_64bit): Remove early clobber on Z->r alternative.
11059         (bswapdi2_ldbrx): Likewise.  Remove '??' on r->r.
11060         (bswapdi2_32bit): Remove early clobber on Z->r alternative.
11061         Add one '?' on r->r.  Modify Z->r splitter to avoid need for
11062         early clobber.
11064 2015-03-14  Jakub Jelinek  <jakub@redhat.com>
11066         PR tree-optimization/65369
11067         * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
11068         Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
11069         (vs - 1) * TYPE_SIZE_UNIT (elem_type).
11071         PR tree-optimization/65418
11072         * tree-ssa-reassoc.c (extract_bit_test_mask): If there
11073         are casts in the first PLUS_EXPR operand, ensure tbias and
11074         *totallowp are in the inner type.
11076         PR rtl-optimization/65401
11077         * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
11078         argument.  If true, adjust_address_nv of x with big-endian
11079         correction for the mode widening to GET_MODE (y).
11080         (make_field_assignment): Don't do MEM mode widening here.
11081         Use MEM_P instead of GET_CODE == MEM.
11083 2015-03-13  Ilya Verbin  <ilya.verbin@intel.com>
11085         * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
11086         the external decls.
11088 2015-03-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11090         PR target/64600
11091         * config/arm/arm.c (arm_gen_constant, AND case): Use
11092         ARM_SIGN_EXTEND when constructing AND mask.
11094 2015-03-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
11096         * graph.c (print_graph_cfg): Make function names visible and append
11097         parenthesis to it.  Also make groups of basic blocks belonging to the
11098         same function visible.
11100 2015-03-12  Richard Biener  <rguenther@suse.de>
11102         PR middle-end/44563
11103         * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
11104         to avoid quadratic behavior with inline expansion splitting blocks.
11105         * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
11106         with the successor if the predecessor will be merged with it.
11107         * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
11108         entry block with its successor.
11110 2015-03-13  Richard Biener  <rguenther@suse.de>
11112         PR middle-end/44563
11113         * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
11114         (cleanup_tree_cfg_1): Do not call it.
11115         (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
11116         (fixup_noreturn_call): Mark the stmt as control altering.
11117         * tree-cfg.c (execute_fixup_cfg): Do not dump the function
11118         here.
11119         (pass_data_fixup_cfg): Produce a dump file.
11120         * tree-ssa-dom.c: Include tree-cfgcleanup.h.
11121         (need_noreturn_fixup): New global.
11122         (pass_dominator::execute): Fixup queued noreturn calls.
11123         (optimize_stmt): Queue calls that became noreturn for fixup.
11124         * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
11125         * tree-ssa-pre.c: Include tree-cfgcleanup.h.
11126         (el_to_fixup): New global.
11127         (eliminate_dom_walker::before_dom_childre): Queue calls that
11128         became noreturn for fixup.
11129         (eliminate): Fixup queued noreturn calls.
11130         * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
11131         (substitute_and_fold_dom_walker): New member stmts_to_fixup.
11132         (substitute_and_fold_dom_walker::before_dom_children): Queue
11133         alls that became noreturn for fixup.
11134         (substitute_and_fold): Fixup queued noreturn calls.
11136 2015-03-12  Jan Hubicka  <hubicka@ucw.cz>
11138         * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
11139         and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
11140         are building; for methods check ODR type of class they belong to if
11141         they may lead to a polymorphic call.
11142         (sem_function::compare_polymorphic_p): Be bit smarter about testing
11143         when function may lead to a polymorphic call.
11144         (sem_function::compare_type_list): Remove.
11145         (sem_variable::equals): Update use of compatible_types_p.
11146         (sem_variable::parse_tree_refs): Remove.
11147         (sem_item_optimizer::filter_removed_items): Do not filter out CXX
11148         cdtor.
11149         * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
11150         matching here.
11151         (func_checker::compatible_polymorphic_types_p): Break out from ...
11152         (unc_checker::compatible_types_p): ... here.
11153         * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
11154         Declare.
11155         (unc_checker::compatible_types_p): Update.
11156         * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
11157         Remove.
11159 2015-03-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11161         PR rtl-optimization/65235
11162         * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
11163         When first element of vec_concat is const_int, calculate its size
11164         using second element.
11166 2015-03-12  Richard Biener  <rguenther@suse.de>
11168         PR middle-end/65270
11169         * fold-const.c (operand_equal_p): Fix ordering of resetting
11170         OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
11172 2015-03-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
11174         * config/s390/s390.c (s390_reorg): Move code to output nops after label
11175         to s390_reorg ().
11176         (s390_asm_output_function_label): Likewise.
11177         * config/s390/s390.c (s390_asm_output_function_label):
11178         Fix function label alignment with -mhtopatch.
11179         * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
11180         UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
11181         ("nop_2_byte"): New define_insn.
11182         ("nop_4_byte"): Likewise.
11183         ("nop_6_byte"): Likewise.
11184         * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
11185         * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
11187 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
11189         PR target/65103
11190         * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
11191         register.
11193 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
11195         PR target/65044
11196         * toplev.c (process_options): Restrict Pointer Bounds Checker
11197         usage with Address Sanitizer.
11199 2015-03-12  Richard Biener  <rguenther@suse.de>
11201         * tree-cfg.c (gimple_split_block): Remove loop finding stmt
11202         to split on.
11203         * omp-low.c (expand_omp_taskreg): Split block before removing
11204         the stmt.
11205         (expand_omp_target): Likewise.
11206         * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
11207         * tree-parloops.c (create_call_for_reduction_1): Pass a proper
11208         stmt to split_block.
11210 2015-03-12  Tom de Vries  <tom@codesourcery.com>
11212         PR rtl-optimization/64895
11213         * lra-lives.c (check_pseudos_live_through_calls): Use
11214         actual_call_used_reg_set instead of call_used_reg_set, if available.
11216 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
11218         * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
11219         (cgraph_node::remove): Likewise.
11220         (cgraph_node::get_untransformed_body): Likewise.
11221         * varpool.c (varpool_node::remove): Likewise.
11222         (varpool_node::get_constructor): Add sanity check.
11224 2015-03-11  Sandra Loosemore  <sandra@codesourcery.com>
11226         * doc/invoke.texi (-fgnu89-inline): Remove discussion about
11227         old GCC versions.
11228         (-fabi-compat-version): Likewise.
11229         (-ffriend-injection): Likewise.
11230         (-Wdeclaration-after-statement): Likewise.
11231         (-fomit-frame-pointer): Likewise.
11232         (-ftree-coalesce-inlined-vars): Likewise.
11233         (-fvisibility=): Likewise.
11234         * doc/extend.texi (Typeof): Likewise.
11235         (Zero Length): Likewise.
11236         (Escaped Newlines): Likewise.
11237         (Compound Literals): Likewise.
11238         (Function Attributes): Likewise.
11239         (Label Attributes): Likewise.
11240         (Type Attributes): Likewise.
11241         (Function Names): Likewise.
11242         (Other Builtins): Likewise.
11243         (Function Specific Option Pragmas): Likewise.
11244         (C++ Interface): Likewise.
11246 2015-03-11  Thomas Schwinge  <thomas@codesourcery.com>
11248         * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
11250 2015-03-11  Marek Polacek  <polacek@redhat.com>
11252         PR tree-optimization/65388
11253         * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
11255 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
11257         PR target/65296
11258         * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
11259         * configure: Regenerate.
11260         * config.in: Regenerate.
11261         * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
11262         [-mn-flash]: Document it.
11263         [__AVR_ARCH__]: Document avrtiny.
11265         * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
11266         (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
11267         (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
11269 2015-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11271         * doc/invoke.texi: Add missing cpu values (z196, zEC12).
11273 2015-03-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
11275         PR target/65242
11276         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
11277         allow reloads of PLUS in floating point/VSX registers.
11279 2015-03-11  Junmo Park  <junmoz.park@samsung.com>
11281         * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
11282         crypto_sha256_fast.
11283         (cortex_a57_crypto_complex): Add crypto_sha256_slow.
11285 2015-03-11  Richard Biener  <rguenther@suse.de>
11287         PR tree-optimization/65310
11288         * tree-sra.c (build_ref_for_offset): Also preserve larger
11289         alignment.
11291 2015-03-11  Marat Zakirov  <m.zakirov@samsung.com>
11293         * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
11295 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
11297         PR target/65368
11298         * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
11299         new define_expand.
11300         (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
11302 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
11304         * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
11305         (sem_function::equals_wpa): ... here.
11307 2015-03-10  Marek Polacek  <polacek@redhat.com>
11308             Jakub Jelinek  <jakub@redhat.com>
11310         PR sanitizer/65367
11311         * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
11312         when only removing the statement.  Handle expanding UBSAN_OBJECT_SIZE
11313         separately.
11315 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
11317         PR target/65286
11318         * config/rs6000/t-linux: For powerpc64* target set
11319         MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
11321 2015-03-10  Richard Biener  <rguenther@suse.de>
11323         PR middle-end/44563
11324         * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
11325         for redirect_all_calls.
11327 2015-03-10  Marek Polacek  <polacek@redhat.com>
11329         * gdbinit.in (pcfun): Define and document.
11331 2015-03-10  Ilya Verbin  <ilya.verbin@intel.com>
11333         * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
11334         of libgomp-plugin.h.
11335         (find_target_compiler): Support a case when the path to gcc is
11336         specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
11337         (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
11338         intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
11339         libgomp-plugin.h.
11340         (main): Use GCC_INSTALL_NAME as target_driver_name.
11341         * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
11342         define.
11343         (mkoffload.o): Remove obsolete include path and defines.
11344         (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
11346 2015-03-10  Richard Biener  <rguenther@suse.de>
11348         PR middle-end/63155
11349         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
11350         * tree-ssa-coalesce.c: Include timevar.h.
11351         (attempt_coalesce): Handle graph being NULL.
11352         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
11353         Split out abnormal coalescing to ...
11354         (perform_abnormal_coalescing): ... this function.
11355         (coalesce_ssa_name): Perform abnormal coalescing without computing
11356         live/conflict.
11357         (verify_ssa_coalescing_worker): New function.
11358         (verify_ssa_coalescing): Likewise.
11360 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
11362         PR target/65296
11363         * config.gcc (extra_options) [avr]: Remove.
11364         (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
11365         (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
11366         (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
11368         * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
11369         (-mmcu=): Add Var and MissingArgError properties.
11370         (-march=): Remove.
11371         * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
11372         * config/avr/t-multilib: Regenerate.
11373         * config/avr/specs.h: New file.
11374         * config/avr/driver-avr.c: New file.
11375         * config/avr/genopt.sh: Remove file.
11376         * config/avr/avr-tables.opt: Remove file.
11377         * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
11378         * config/avr/avr-c.c: Same.
11379         * avr-arch.h: Same.
11380         (avr_current_device): Remove proto.
11381         * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
11382         (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
11383         (EXTRA_SPEC_FUNCTIONS): Define.
11384         (avr_devicespecs_file): New specs function proto.
11385         (DRIVER_SELF_SPECS): Use device-specs-file spec function.
11386         * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
11387         (avr_current_device): Remove definition and usage.
11388         (avr_set_core_architecture): New static function.
11389         (avr_option_override): Use it.
11390         * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
11391         (mcu_name): New static array.
11392         (comparator, avr_archs_str, avr_mcus_str): New static functions.
11393         (avr_inform_devices, avr_inform_core_architectures): New functions.
11394         * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
11395         (avrlibc.h) [WITH_AVRLIBC]: Include.
11396         (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
11397         (print_mcu): Rewrite from scratch.
11398         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
11399         Forward to avr-specific specs defined in device-specs file.
11400         * config/avr/t-avr (driver-avr.o): New rule.
11401         (avr-devices.o): Depend on avr-arch.h.
11402         (avr-mcus): No more depend on avr-tables.opt.
11403         (avr-tables.opt): Remove rule.
11404         (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
11406 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
11408         * c-family/c.opt (fchkp-use-wrappers): New.
11409         * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
11410         (chkp_wrap_function): New.
11411         (chkp_build_instrumented_fndecl): Support wrapped
11412         functions.
11413         * doc/invoke.texi (-fcheck-pointer-bounds): New.
11414         (-fchkp-check-incomplete-type): New.
11415         (-fchkp-first-field-has-own-bounds): New.
11416         (-fchkp-narrow-bounds): New.
11417         (-fchkp-narrow-to-innermost-array): New.
11418         (-fchkp-optimize): New.
11419         (-fchkp-use-fast-string-functions): New.
11420         (-fchkp-use-nochk-string-functions): New.
11421         (-fchkp-use-static-bounds): New.
11422         (-fchkp-use-static-const-bounds): New.
11423         (-fchkp-treat-zero-dynamic-size-as-infinite): New.
11424         (-fchkp-check-read): New.
11425         (-fchkp-check-write): New.
11426         (-fchkp-store-bounds): New.
11427         (-fchkp-instrument-calls): New.
11428         (-fchkp-instrument-marked-only): New.
11429         (-fchkp-use-wrappers): New.
11430         (-static-libmpx): New.
11431         (-static-libmpxwrappers): New.
11433 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
11435         * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
11436         (CHKP_SPEC): Add wrappers library.
11437         * c-family/c.opt (static-libmpxwrappers): New.
11439 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
11441         * config/i386/linux-common.h (LIBMPX_LIBS): New.
11442         (LIBMPX_SPEC): New.
11443         (CHKP_SPEC): New.
11444         * gcc.c (CHKP_SPEC): New.
11445         (LINK_COMMAND_SPEC): Add CHKP_SPEC.
11446         * c-family/c.opt (static-libmpx): New.
11448 2015-03-10  Richard Biener  <rguenther@suse.de>
11450         PR middle-end/44563
11451         * cgraph.h (struct cgraph_edge_hasher): Add hash overload
11452         for compare_type.
11453         * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
11454         (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
11455         (cgraph_add_edge_to_call_site_hash): Likewise.
11456         (cgraph_node::get_edge): Likewise.
11457         (cgraph_edge::set_call_stmt): Likewise.
11458         (cgraph_edge::remove_caller): Likewise.
11460 2015-03-10  Chung-Ju Wu  <jasonwucj@gmail.com>
11462         * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
11463         (callee_saved_gpr_regs_size): ... this.
11464         (callee_saved_regs_first_regno): Rename to ...
11465         (callee_saved_first_gpr_regno): ... this.
11466         (callee_saved_regs_last_regno) Rename to ...
11467         (callee_saved_last_gpr_regno): ... this.
11468         * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
11469         variables.
11470         (nds32_initial_elimination_offset): Likewise.
11471         (nds32_expand_prologue): Likewise.
11472         (nds32_expand_epilogue): Likewise.
11473         (nds32_expand_prologue_v3push): Likewise.
11474         (nds32_expand_epilogue_v3pop): Likewise.
11475         * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
11476         Adjust renamed variables.
11477         (nds32_output_stack_pop): Likewise.
11479 2015-03-10  Thomas Preud'homme  <thomas.preudhomme@arm.com>
11481         * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
11482         code in comment.
11484 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
11486         PR rtl-optimization/65321
11487         * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
11488         than shift mode.
11489         * var-tracking.c (use_narrower_mode): Likewise.
11491 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
11493         PR tree-optimization/65355
11494         * varasm.c (notice_global_symbol): Do not produce RTL.
11495         * symtab.c (symtab_node::can_increase_alignment_p): Check for section
11496         anchor.
11497         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
11498         check for section anchors.
11500 2015-03-10  Alan Modra  <amodra@gmail.com>
11502         PR target/65286
11503         * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
11504         to be single-arch by default.  Set cpu_is_64bit for powerpc64
11505         given --with-cpu=native.
11506         * config/rs6000/t-fprules: Do not set default MULTILIB vars.
11507         * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
11508         and powerpc64le.
11509         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
11510         rs6000_isa_flags rather than TARGET_64BIT.
11512 2015-03-09  Yoshinori Sato  <ysato@users.sourceforge.jp>
11513             Kaz Kojima  <kkojima@gcc.gnu.org>
11515         * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
11517 2015-03-09  Jakub Jelinek  <jakub@redhat.com>
11519         PR lto/65361
11520         * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
11521         on a TREE_BINFO, instead use BINFO_TYPE.
11523 2015-03-09  Richard Biener  <rguenther@suse.de>
11525         PR middle-end/65270
11526         * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
11527         * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
11528         operand set OEP_ADDRESS_OF.  Clear it when recursing to non-bases
11529         of that.  When comparing dereferences compare alignment.
11530         When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
11532 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
11534         * ipa-inline-analysis.c (check_callers): Check
11535         node->can_remove_if_no_direct_calls_and_refs_p.
11536         (growth_likely_positive): Reorganize to call
11537         can_remove_if_no_direct_calls_p later.
11538         * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
11539         will_be_removed_from_program_if_no_direct_calls_p): Add
11540         will_inline parameter.
11541         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
11542         cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
11543         Handle inliner case correctly.
11545 2015-03-09  Thomas Preud'homme  <thomas.preudhomme@arm.com>
11547         PR tree-optimization/63743
11548         * cfgexpand.c (reorder_operands): Also reorder if only second operand
11549         had its definition forwarded by TER.
11551 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
11553         PR lto/65316
11554         * ipa-utils.h (types_odr_comparable): Add strict argument.
11555         * ipa-devirt.c: Fix whitespace;
11556         (odr_hasher): Remove.
11557         (odr_name_hasher, odr_vtable_hasher): New hashers.
11558         (can_be_name_hashed_p): New predicate.
11559         (hash_type_name): remove.
11560         (hash_odr_name): New.
11561         (odr_name_hasher::hash): new.
11562         (can_be_vtable_hashed_p): New.
11563         (hash_odr_vtable): New.
11564         (odr_vtable_hasher::hash): New.
11565         (types_same_for_odr): Add strict parameter.
11566         (types_odr_comparable): Likewise.
11567         (odr_name_hasher::equal): New.
11568         (odr_vtable_hasher::equal): New.
11569         (odr_name_hasher::remove): New.
11570         (odr_hash_type): Change to hash_table<odr_name_hasher>.
11571         (odr_vtable_hash_type): New.
11572         (odr_vtable_hash): New.
11573         (odr_subtypes_equivalent_p): Do strict comparsion.
11574         (add_type_duplicate): Merge type names; cleanup; avoid type
11575         duplicates.
11576         (register_odr_type): Initialize vtable hash.
11577         (build_type_inheritance_graph): Likewise
11578         (get_odr_type): Reorg to use two hashes.
11579         (dump_possible_polymorphic_call_targets): Move sanity check after debug
11580         output.
11581         (ipa_devirt): Dump type_inheritance_graph.
11582         (types_same_for_odr): Add strict mode.
11584 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
11586         PR ipa/65334
11587         * cgraph.h (symtab_node): Add definition_alignment,
11588         can_increase_alignment_p and increase_alignment.
11589         * symtab.c (symtab_node::can_increase_alignment_p,
11590         increase_alignment_1, symtab_node::increase_alignment,
11591         symtab_node::definition_alignment): New.
11592         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
11593         can_increase_alignment_p.
11594         * tree-vectorizer.c (increase_alignment): Use increase_alignment.
11595         * tree-vect-stmts.c (ensure_base_align): Likewise.
11596         * varasm.c (function_section_1): Use definition_alignment.
11597         (assemble_start_function): Likewise.
11598         (emit_local): likewise.
11599         (build_constant_desc): Likewsie.
11600         (output_constant_def_contents): Likewise.
11601         (place_block_symbol): Likewise.
11602         (output_object_block): Likewise.
11604 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
11606         PR ipa/65316
11607         * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
11608         when outputting debug.
11610 2015-03-07  Marek Polacek  <polacek@redhat.com>
11611             Martin Uecker  <uecker@eecs.berkeley.edu>
11613         PR sanitizer/65280
11614         * doc/invoke.texi: Update description of -fsanitize=bounds.
11616 2015-03-06  Wilco Dijkstra  <wilco.dijkstra@arm.com>
11618         * tree-ssa-phiopt.c (neg_replacement): Remove.
11619         (tree_ssa_phiopt_worker): Remove negate optimization.
11621 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
11623         PR ipa/65302
11624         * value-prof.c (gimple_ic): Pure dead eh edges when needed.
11626 2015-03-06  Richard Biener  <rguenther@suse.de>
11628         PR middle-end/64928
11629         * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
11630         and liveout_obstack members.
11631         (calculate_live_on_exit): Remove.
11632         (calculate_live_ranges): Change declaration.
11633         * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
11634         (new_tree_live_info): Adjust.
11635         (calculate_live_ranges): Delete livein when not wanted.
11636         (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
11637         Deal with partly deleted live info.
11638         (loe_visit_block): Remove temporary bitmap by using
11639         bitmap_ior_and_compl_into.
11640         (live_worklist): Adjust accordingly.
11641         (calculate_live_on_exit): Make static.
11642         * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
11643         we do not need livein.
11645 2015-03-06  Jonathan Wakely  <jwakely@redhat.com>
11647         * real.c (real_from_string): Fix typo in assertion.
11649 2015-03-06  Alex Velenko  <alex.velenko@arm.com>
11651         * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
11652         the patch.
11654 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
11656         * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
11658 2015-03-05  Vladimir Makarov  <vmakarov@redhat.com>
11660         PR target/64342
11661         * lra-assigns.c (find_hard_regno_for): Rename to
11662         find_hard_regno_for_1.  Add a new parameter.
11663         (find_hard_regno_for): New function using find_hard_regno_for_1.
11665 2015-03-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
11667         PR rtl-optimization/65067
11668         * expmed.c (store_bit_field, extract_bit_field): Reworked the
11669         strict volatile bitfield handling.
11671 2015-03-05  Martin Liska  <mliska@suse.cz>
11673         PR ipa/65318
11674         * ipa-icf.c (sem_variable::equals): Compare variables types.
11676 2015-03-05  Richard Henderson  <rth@redhat.com>
11678         PR target/65121
11679         * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
11680         correctly check weak symbol binding.
11682 2015-03-05  Steve Ellcey  <sellcey@imgtec.com>
11684         PR middle-end/65315
11685         * cfgexpand.c (expand_stack_vars): Update large_align to maximum
11686         needed alignment.
11688 2015-03-05  Martin Liska  <mliska@suse.cz>
11690         * ipa-inline.c (inline_small_functions): Set default value to
11691         prevent warning during bootstrap.
11692         * tree.h: Add pragma guard that ignores false positives during
11693         bootstrap.
11695 2015-03-05  Richard Biener  <rguenther@suse.de>
11697         PR tree-optimization/65310
11698         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
11699         Properly preserve alignment of the base of the access.
11701 2015-03-05  Richard Biener  <rguenther@suse.de>
11703         PR ipa/65270
11704         * ipa-icf-gimple.c (func_checker::compare_memory_operand):
11705         Compare dependence info.
11707 2015-03-05  Richard Biener  <rguenther@suse.de>
11709         PR middle-end/65233
11710         * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
11711         tree-into-ssa.h.
11712         (walk_ssa_copies): Revert last chage.  Instead do not walk
11713         SSA names registered for SSA update.
11715 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
11717         PR ipa/65270
11718         * ipa-icf.c (sem_item::compare_cgraph_references): Compare
11719         vtable references for their containing type.
11720         (sem_function::equals_wpa): Compare TYPE_RESTRICT
11721         and type attributes.
11723 2015-03-04  Eric Botcazou  <ebotcazou@adacore.com>
11725         * fold-const.c (round_up_loc): Cast divisor to signed on all paths
11726         before negating it.
11727         * stor-layout.c (finalize_record_size): Revert latest change.
11729 2015-03-04  Andreas Tobler  <andreast@gcc.gnu.org>
11731         * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
11733 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
11735         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
11736         for correct comdat handling.
11737         (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
11738         Likewise.
11739         * cgraph.h (call_for_symbol_and_aliases): Fix formating.
11740         (used_from_object_file_p_worker): Remove.
11741         (cgraph_node::only_called_directly_or_alised): Add
11742         used_from_object_file_p.
11743         * ipa-inline-analysis.c (growth_likely_positive): Optimie.
11744         * ipa-inline-transform.c (can_remove_node_now_p_1): Use
11745         can_remove_if_no_direct_calls_and_refs_p.
11747 2015-03-04  Nick Clifton  <nickc@redhat.com>
11749         * config/rl78/rl78.h (enum reg_class): Remove real registers from
11750         General register class.
11751         * config/rl78/rl78-real.md: Replace general register constraints
11752         with real+virtual register constraints.
11754 2015-03-04  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11756         * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
11757         from checking for -mhtm option.
11759 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
11761         * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
11762         (struct ipa_sra_check_caller_data): Add has_thunk field.
11763         (ipa_sra_check_caller): Check for thunk.
11764         (ipa_sra_preliminary_function_checks): Give up on function with
11765         thunks.
11766         (ipa_early_sra): Use call_for_symbol_and_aliases.
11768 2015-03-03  Kaz Kojima  <kkojima@gcc.gnu.org>
11770         PR target/65249
11771         * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
11772         called for __stack_chk_guard symbol.
11774 2015-03-03  DJ Delorie  <dj@redhat.com>
11776         * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
11777         inc/dec.
11778         (*addhi3_real): Likewise.
11779         * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
11780         pattern to match incrementing memory.
11781         * config/rl78/predicates.md (rl78_1_2_operand): New.
11782         * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
11783         it's the same and only mem.
11784         (rl78_alloc_physical_registers_op2): If there's effectively only
11785         one MEM, transcode it into HL.
11786         (rl78_far_p): Reject addresses that aren't legitimate.
11788 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
11790         * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
11791         negating it.
11793         * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
11795 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
11797         Implement call0 ABI for xtensa
11798         * config/xtensa/constraints.md ("a" constraint): Include stack
11799         pointer in case of call0 ABI.
11800         ("q" constraint): Make empty in case of call0 ABI.
11801         ("D" constraint): Include stack pointer in case of call0 ABI.
11802         * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
11803         xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
11804         prototypes.
11805         * config/xtensa/xtensa.c (xtensa_callee_save_size): New
11806         variable.
11807         (xtensa_regno_to_class): Make it a local variable in the
11808         function xtensa_regno_to_class.
11809         (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
11810         macro, function prototype and implementation.
11811         (reg_nonleaf_alloc_order): Make it a local variable in the
11812         function order_regs_for_local_alloc.
11813         (xtensa_conditional_register_usage): New function.
11814         (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
11815         (xtensa_valid_move): Allow direct moves to stack pointer
11816         register in call0 ABI.
11817         (xtensa_setup_frame_addresses): Only spill register windows in
11818         windowed ABI.
11819         (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
11820         call0 ABI respectively.
11821         (xtensa_function_arg_1): Only mark a7 register for copying in
11822         windowed ABI.
11823         (xtensa_call_save_reg): New function.
11824         (compute_frame_size): Add space for callee saved register
11825         storage to the frame size in call0 ABI.
11826         (xtensa_expand_prologue): Generate code to set up stack frame
11827         and save callee-saved registers in call0 ABI.
11828         (xtensa_expand_epilogue): New function.
11829         (xtensa_set_return_address): New function.
11830         (xtensa_return_addr): Calculate return address in call0 ABI.
11831         (xtensa_builtin_saveregs): Only mark a7 register for copying and
11832         emit copying code in windowed ABI.
11833         (order_regs_for_local_alloc): Add preferred register allocation
11834         order for non-leaf function in call0 ABI.
11835         (xtensa_static_chain): Add atatic chain passing for call0 ABI.
11836         (xtensa_asm_trampoline_template): Add trampoline generation for
11837         call0 ABI.
11838         (xtensa_trampoline_init): Add trampoline initialization for
11839         call0 ABI.
11840         (xtensa_conditional_register_usage, xtensa_regno_to_class): New
11841         functions.
11842         * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
11843         (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
11844         (CALL_USED_REGISTERS): Modify to encode both windowed and call0
11845         ABI call-used registers.
11846         (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
11847         (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
11848         call0 ABI.
11849         (REG_CLASS_CONTENTS): Include all registers into the preferred
11850         reload registers set, adjust the set in the
11851         xtensa_conditional_register_usage.
11852         (xtensa_regno_to_class): Drop variable declaration.
11853         (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
11854         function.
11855         (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
11856         respectively.
11857         (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
11858         (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
11859         (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
11860         (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
11861         location in call0 ABI.
11862         (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
11863         stack adjustment size when handling exception.
11864         (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
11865         * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
11866         definitions.
11867         ("return" pattern): Generate ret.n/ret in call0 ABI.
11868         ("epilogue" pattern): Expand epilogue.
11869         ("nonlocal_goto" pattern): Use default in call0 ABI.
11870         ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
11871         emit eh_set_a0_* depending on ABI.
11872         ("eh_set_a0_windowed" pattern): Former eh_return pattern.
11873         ("eh_set_a0_call0", "blockage"): New patterns.
11875 2015-03-03  Martin Liska  <mliska@suse.cz>
11877         PR ipa/65287
11878         * ipa-icf.c (sem_variable::parse): Skip all alias variables.
11880 2015-03-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
11882         PR 65138/target
11883         * config/rs6000/rs6000-tables.opt: Regenerate table.
11885 2015-03-03  Renlin Li  <renlin.li@arm.com>
11887         * doc/md.texi (@item ^): Change ? into ^.
11889 2015-03-03  H.J. Lu  <hongjiu.lu@intel.com>
11891         * doc/tm.texi: Regenerated.
11893 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
11895         * builtins.c (expand_builtin_return_addr): Add
11896         RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
11897         surrounding #ifdef.
11898         * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
11899         definition to 1.
11900         * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
11901         Likewise.
11902         * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
11903         undefined.
11904         * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
11905         paragraph.
11907 2015-03-03  Martin Jambor  <mjambor@suse.cz>
11908             Eric Botcazou  <ebotcazou@adacore.com>
11910         * tree-sra.c (ipa_sra_check_caller_data): New type.
11911         (has_caller_p): Removed.
11912         (ipa_sra_check_caller): New function.
11913         (ipa_sra_preliminary_function_checks): Use it.
11915 2015-03-03  Martin Liska  <mliska@suse.cz>
11917         * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
11918         instead of if branch.
11920 2015-03-03  Martin Liska  <mliska@suse.cz>
11922         PR ipa/65282
11923         * ipa-icf.c (sem_variable::equals): Fix wrong condition.
11925 2015-03-23  Jeff Law  <law@redhat.com>
11927         PR tree-optimization/65241
11928         * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
11929         hash table if INSERT is true.
11931 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
11933         PR target/65296
11934         * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
11936 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
11938         PR target/64331
11939         * config/avr/avr.c (context.h, tree-pass.h): Include them.
11940         (avr_pass_data_recompute_notes): New static variable.
11941         (avr_pass_recompute_notes): New class.
11942         (avr_register_passes): New static function.
11943         (avr_option_override): Call it.
11945 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
11947         Fix various problems with specs file generation.
11949         PR target/65296
11950         * config.gcc (extra_gcc_objs) [avr]: Remove.
11951         * config/avr/driver-avr.c: Remove file.
11952         * config/avr/t-avr (driver-avr.o): Remove rule.
11953         (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
11954         INCLUDES to build.  Depend on TM_H.
11955         * config/avr/gen-avr-mmcu-specs.c: Tidy up code.  Fix various
11956         build warnings.  Fix non-matching types and non-existing %-codes.
11957         (tm.h): Include.
11958         (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
11959         (*libgcc) [WITH_AVRLIBC]: Add "-lm".
11960         * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
11961         * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
11962         (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
11963         (LIBGCC_SPEC): Remove definitions.
11965 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
11967         * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
11968         to create a register in testing mode.
11970 2015-03-03  Martin Liska  <mliska@suse.cz>
11971             Jan Hubicka  <hubicka@ucw.cz>
11973         PR ipa/65263
11974         * cgraph.c (cgraph_node::has_thunk_p): New function.
11975         * cgraph.h (cgraph_node::has_thunk_p: Likewise.
11976         * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
11977         (sem_function::merge): Assert is changed.
11979 2015-03-03  Martin Liska  <mliska@suse.cz>
11980             Martin Jambor  <mjambor@suse.cz>
11982         PR ipa/65087
11983         * ipa-icf.c (sem_item_optimizer::execute): Change function
11984         return value to boolean.
11985         (sem_item_optimizer::merge_classes): Likewise.
11986         (ipa_icf_driver): Return TODO_remove_functions in case there's
11987         a merge operation processed.
11988         * ipa-icf.h: Change function return value to boolean.
11990 2015-03-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
11992         PR 65138/target
11993         * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
11994         processor type for 64-bit little endian PowerPC.
11996         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
11997         -mdebug=reg, print TARGET_DEFAULT.  Fix logic to use
11998         TARGET_DEFAULT if there is no default cpu.  Fix -mdebug=reg
11999         printing built-in mask so it does not pass NULL pointers.
12001         * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
12002         -mcpu=powerpc64le.
12004 2015-03-02  Steve Ellcey  <sellcey@imgtec.com>
12006         PR target/58158
12007         * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
12008         !ISA_HAS_FP_CONDMOVE.
12010 2015-03-02  Aldy Hernandez  <aldyh@redhat.com>
12012         * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
12013         reload_completed.
12015 2015-03-02  Ulrich Drepper  <drepper@gmail.com>
12017         * doc/invoke.texi (Options for Code Generation Conventions):
12018         Fix URL of DSO paper.
12020 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
12022         PR ipa/65130
12023         * ipa-inline.c (check_callers): Looks for recursion.
12024         (inline_to_all_callers): Give up on uninlinable or recursive edges.
12025         * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
12026         summary of inline clones.
12027         (do_estimate_growth_1): Fix recursion check.
12029 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
12031         PR ipa/64988
12032         * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
12033         comdat groups.
12035 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
12036             Aldy Hernandez  <aldyh@redhat.com>
12038         PR lto/65276
12039         * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
12040         when checking TYPE_BINFO.
12042 2015-03-02  Richard Biener  <rguenther@suse.de>
12044         PR ipa/65270
12045         * ipa-icf-gimple.c: Include builtins.h.
12046         (func_checker::compare_memory_operand): Compare base alignment.
12048 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
12050         PR target/65184
12051         * gcc/config/i386/i386.c (ix86_pass_by_reference) Bounds
12052         are never passed by reference.
12054 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
12056         PR target/65183
12057         * tree-chkp.c (chkp_check_lower): Don't check against
12058         zero bounds for already instrumented functions.
12059         (chkp_check_upper): Likewise.
12060         (chkp_fini): Clean pass local data to avoid wrong reusage.
12062 2015-02-28  Martin Liska  <mliska@suse.cz>
12063             Jan Hubicka  <hubicka@ucw.cz>
12065         * ipa-icf.c (sem_variable::equals): Improve debug output;
12066         get variable constructor.
12067         (sem_variable::parse): Do not filter out too early; give up on
12068         volatile and register vars.
12069         (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
12070         variables.
12071         * ipa-icf.h (sem_variable::init): Do not set ctor.
12072         (sem_variable::ctor): Remove.
12074 2015-03-01  Aldy Hernandez  <aldyh@redhat.com>
12076         PR middle-end/65233
12077         * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
12079 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
12081         * ipa-icf.c: Include stor-layout.h
12082         (sem_function::compare_cgraph_references): Rename to ...
12083         (sem_item::compare_cgraph_references): ... this one.
12084         (sem_variable::equals_wpa): New function
12085         (sem_variable::equals): Do not check stuff already verified by
12086         equals_wpa.
12087         (sem_variable::equals): Reorg based on varasm.c:compare_constant.
12088         * ipa-icf.h (sem_item): Add compare_cgraph_references.
12089         (sem_function): Remove compare_cgraph_references.
12090         (sem_variable): Turns equals_wpa into non-inline.
12092 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
12094         * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
12095         (sem_item::add_expr): New function.
12096         (sem_function::hash_stmt): Handle operands of most statements.
12097         (sem_variable::get_hash): Hash the actual constructor.
12098         * ipa-icf.h (sem_item): Add add_expr.
12099         (sem_function): Update prototype of hash_stmt
12101 2015-02-28  Martin Liska  <mliska@suse.cz>
12102             Jan Hubicka  <hubicka@ucw.cz>
12104         PR ipa/65245
12105         * ipa-icf-gimple.c (func_checker::compare_function_decl):
12106         Remove.
12107         (func_checker::compare_variable_decl): Skip symtab vars.
12108         (func_checker::compare_cst_or_decl): Update.
12109         * ipa-icf.c (sem_function::parse): Do not consider aliases.
12110         (sem_function::compare_cgraph_references): Add ADDRESS parameter;
12111         use correct symtab predicates.
12112         (sem_function::equals_wpa): Update uses of compare_cgraph_references.
12113         (sem_variable::parse):  Update comment.
12114         (sem_item_optimizer::build_graph): Consider ultimate aliases
12115         for references.
12117 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
12119         * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
12120         of OBJ_TYPE_REF.
12122 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
12124         * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
12125         (sem_variable::merge) Likewise.
12127 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
12129         * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
12130         target; also match flag_ipa_devirt.
12132 2015-03-01  Martin Liska  <mliska@suse.cz>
12133             Jan Hubicka  <hubicka@ucw.cz>
12135         * ipa-icf-gimple.c (func_checker::compare_variable_decl):
12136         Validate variable alignment.
12137         * ipa-icf.c (sem_function::equals_private): Be more precise
12138         about non-common function attributes.
12139         (sem_variable::equals): Likewise.
12141 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
12143         PR ipa/65237
12144         * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
12145         across COMDAT group boundary.
12147 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
12149         PR ipa/65232
12150         * ipa-icf.c (clear_decl_rtl): New function.
12151         (sem_function::merge): Clear RTL before forming alias.
12152         (sem_variable::merge): Clear RTL before forming alias.
12154 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
12156         PR ipa/65236
12157         * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
12159 2015-02-28  Xingxing Pan  <xxingpan@marvell.com>
12161         * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
12162         to neon_to_gp<q>.
12164 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
12166         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
12167         a typo in the description.
12169 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
12171         PR target/64317
12172         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
12173         * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
12174         * lra-constraints.c: Include "params.h".
12175         (EBB_PROBABILITY_CUTOFF): Use
12176         LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
12177         (lra_inheritance): Use '<' instead of '<=' for
12178         EBB_PROBABILITY_CUTOFF.
12179         * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
12180         Document change.
12182 2015-02-27  Martin Liska  <mliska@suse.cz>
12184         * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
12185         vector length condition.
12187 2015-02-27  Sandra Loosemore  <sandra@codesourcery.com>
12189         * doc/extend.texi (x86 transactional memory intrinsics):
12190         Reorganize discussion of _xbegin.  Clarify that the return
12191         value is a bit mask.  Expand example and move to end of section.
12193 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
12194             Aldy Hernandez  <aldyh@redhat.com>
12196         PR rtl-optimization/65220
12197         * config/i386/i386.md (*udivmod<mode>4_pow2): New.
12199 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
12201         PR target/65032
12202         * lra-remat.c (update_scratch_ops): New.
12203         (do_remat): Call it.
12204         * lra.c (lra_register_new_scratch_op): New. Take code from ...
12205         (remove_scratches): ... here.
12206         * lra-int.h (lra_register_new_scratch_op): New prototype.
12208 2015-02-27  Marek Polacek  <polacek@redhat.com>
12210         PR c/65040
12211         * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
12212         -Wformat-signedness anymore.
12214 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12216         * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
12217         function.
12218         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
12220 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12222         * config/s390/s390.c (enum s390_builtin):
12223         Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
12224         (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
12225         (s390_init_builtins): Generate new builtin functions.
12226         * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
12227         (s390_sfpc, s390_efpc): New pattern definitions.
12229 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12231         * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
12232         Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
12233         (s390_builtin_decls): New array.
12234         (s390_init_builtins): Put builtin decls into s390_builtin_decls.
12235         (s390_builtin_decl): New function.
12236         (TARGET_BUILTIN_DECL): Define macro.
12238 2015-02-27  Richard Biener  <rguenther@suse.de>
12240         PR middle-end/63175
12241         * builtins.c (get_object_alignment_2): Make sure to re-apply
12242         the ANDed mask after recursing to its operand gets us a new
12243         misalignment bit position.
12245 2015-02-26  Jan Hubicka  <hubicka@ucw.cz>
12246             Martin Liska  <mliska@suse.cz>
12248         PR bootstrap/65150
12249         * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
12250         Use address_matters_p.
12251         (redirect_all_callers, set_addressable): New functions.
12252         (sem_function::merge): Reorganize and fix merging issues.
12253         (sem_variable::merge): Likewise.
12254         (sem_variable::compare_sections): Remove.
12255         * common.opt (fmerge-all-constants, fmerge-constants): Remove
12256         Optimization flag.
12257         * symtab.c (symtab_node::resolve_alias): When alias has aliases,
12258         redirect them.
12259         (symtab_node::make_decl_local): Set ADDRESSABLE bit when
12260         decl is used.
12261         (address_matters_1): New function.
12262         (symtab_node::address_matters_p): New function.
12263         * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
12264         check for merged flag.
12265         * cgraph.h (address_matters_p): Declare.
12266         (symtab_node::address_taken_from_non_vtable_p): Remove.
12267         (symtab_node::address_can_be_compared_p): New method.
12268         (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
12269         * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
12270         Remove.
12271         (comdat_can_be_unshared_p_1) Use address_matters_p.
12272         (update_vtable_references): Fix formating.
12273         * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
12274         * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
12275         * cgraphclones.c: Preserve merged and icf_merged flags.
12277 2015-02-26  Sandra Loosemore  <sandra@codesourcery.com>
12279         * doc/extend.texi (Function Attributes): Fix spelling and typos.
12280         (Label Attributes): Likewise.
12281         (Cilk Plus Builtins): Likewise.
12282         (ARC SIMD Built-in Functions): Likewise.
12283         (ARM C Language Extensions (ACLE)): Likewise.
12284         (PowerPC Built-in Functions): Likewise.
12285         (PowerPC Hardware Transactional Memory Built-in Functions):
12286         Likewise.
12288 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
12290         PR tree-optimization/65216
12291         * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
12292         new stmt and new SSA_NAME for lhs whenever the arguments have
12293         changed and weren't just swapped.  Fix comment typo.
12295         PR tree-optimization/65215
12296         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
12297         for PDP endian targets.
12298         (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
12299         Fix up formatting issues.
12300         (bswap_replace): Likewise.  For BYTES_BIG_ENDIAN, if the final access
12301         size is smaller than the original, adjust MEM_REF offset by the
12302         difference of sizes.  Use is_gimple_mem_ref_addr instead of
12303         is_gimple_min_invariant test to avoid adding address temporaries.
12305 2015-02-26  Martin Liska  <mliska@suse.cz>
12306             Jan Hubicka  <hubicka@ucw.cz>
12308         PR ipa/64693
12309         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
12310         (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
12311         (sem_item_optimizer::process_cong_reduction): Include division by
12312         sensitive references.
12313         * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
12314         * ipa-ref.c (ipa_ref::address_matters_p): New function.
12315         * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
12317 2015-02-26  Georg-Johann Lay  <avr@gjlay.de>
12319         PR target/65192
12320         * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
12321         Remove.
12322         * config/avr/avr.c: Same.
12323         (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
12324         Refuse any constant address not in 0..0xbf.
12325         * config/avr/avr.md (*mov<mode>, *movsf): Remove
12326         tiny_valid_direct_memory_access_range from insn conditions.
12327         (mov<mode>): Don't special-case expansion of avrtiny addresses.
12329 2015-02-26  Oleg Endo  <olegendo@gcc.gnu.org>
12331         PR target/61142
12332         * config/sh/sh.c (sh_check_add_incdec_notes): New function.
12333         * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
12334         * config/sh/predicates.md (const_logical_operand): New predicate.
12335         * config/sh/sh.md: Add new peephole2 patterns.
12337 2015-02-26  Marek Polacek  <polacek@redhat.com>
12339         PR ipa/65008
12340         * ipa-inline.c (early_inliner): Recompute inline parameters.
12342 2015-02-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12344         PR target/65171
12345         * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
12346         instructions with TImode operands are included in the analysis.
12348 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
12350         * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
12351         of an EDGE_FSM_THREAD.
12353 2015-02-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12355         * config/rs6000/htm.md (tcheck): Fix assembly encoding.
12357 2015-02-25  Aldy Hernandez  <aldyh@redhat.com>
12359         PR debug/46102
12360         * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
12362 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
12364         PR tree-optimization/65048
12365         * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
12366         (thread_through_all_blocks): Call valid_jump_thread_path.
12367         Remove invalid FSM jump-thread paths.
12369 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
12371         * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
12372         (ipa_write_optimization_summaries): Likewise.
12373         * tree-streamer.h: Include data-streamer.h.
12374         (streamer_mode_table): Declare extern variable.
12375         (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
12376         * lto-streamer-out.c (lto_output_init_mode_table,
12377         lto_write_mode_table): New functions.
12378         (produce_asm_for_decls): Call lto_write_mode_table when streaming
12379         offloading LTO.
12380         * lto-section-in.c (lto_section_name): Add "mode_table" entry.
12381         (lto_create_simple_input_block): Add mode_table argument to the
12382         lto_input_block constructors.
12383         * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
12384         Likewise.
12385         * data-streamer-in.c (string_for_index): Likewise.
12386         * ipa-inline-analysis.c (inline_read_section): Likewise.
12387         * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
12388         * lto-cgraph.c (input_cgraph_opt_section): Likewise.
12389         * lto-streamer-in.c (lto_read_body_or_constructor,
12390         lto_input_toplevel_asms): Likewise.
12391         (lto_input_mode_table): New function.
12392         * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
12393         pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
12394         Use bp_pack_machine_mode.
12395         * real.h (struct real_format): Add name field.
12396         * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
12397         (class lto_input_block): Add mode_table member.
12398         (lto_input_block::lto_input_block): Add mode_table_ argument,
12399         initialize mode_table.
12400         (struct lto_file_decl_data): Add mode_table field.
12401         (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
12402         * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
12403         unpack_ts_decl_common_value_fields,
12404         unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
12405         * tree-streamer.c (streamer_mode_table): New variable.
12406         * real.c (ieee_single_format, mips_single_format,
12407         motorola_single_format, spu_single_format, ieee_double_format,
12408         mips_double_format, motorola_double_format,
12409         ieee_extended_motorola_format, ieee_extended_intel_96_format,
12410         ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
12411         ibm_extended_format, mips_extended_format, ieee_quad_format,
12412         mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
12413         decimal_single_format, decimal_double_format, decimal_quad_format,
12414         ieee_half_format, arm_half_format, real_internal_format): Add name
12415         field.
12416         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
12418 2015-02-26  Yuri Rumyantsev  <ysrumyan@gmail.com>
12420         PR target/65161
12421         * config/i386/i386.c (ix86_sched_reorder): Skip instruction
12422         reordering for selective scheduling.
12424 2015-02-26  Terry Guo  <terry.guo@arm.com>
12426         * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
12427         * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
12428         (arm_arch_no_volatile_ce): Declare new global variable.
12429         * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
12430         (arm_option_override): Assign value to arm_arch_no_volatile_ce.
12431         * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
12432         (TARGET_NO_VOLATILE_CE): New macro.
12433         * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
12434         volatile memory access in IT block
12436 2015-02-25  Kai Tietz  <ktietz@redhat.com>
12438         PR tree-optimization/61917
12439         * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
12440         that reduc_def_stmt is null.
12442 2015-02-25  Martin Liska  <mliska@suse.cz>
12444         * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
12445         hard register variables.
12447 2015-02-25  Kai Tietz  <ktietz@redhat.com>
12449         PR target/64212
12450         * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
12451         (symtab::noninterposable_alias): Likewise.
12453 2015-02-25  Ilya Enkovich  <ilya.enkovich@intel.com>
12455         PR target/65167
12456         * gcc/config/i386/i386.c (ix86_function_arg_regno_p): Support
12457         bounds registers.
12458         (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
12460 2015-02-25  Alan Lawrence  <alan.lawrence@arm.com>
12462         PR target/64997
12463         * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
12464         as split condition; force split via '#' in output pattern.
12466 2015-02-25  Richard Biener  <rguenther@suse.de>
12467             Kai Tietz  <ktietz@redhat.com>
12469         PR tree-optimization/61917
12470         * tree-vect-loop.c (vectorizable_reduction): Allow
12471         vect_internal_def without reduction to exit graceful.
12473 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
12475         PR target/65196
12476         * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
12477         only with NONDEBUG_INSN_P.
12479 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
12481         Use variadic macros with avr-log.c.
12483         * config/avr/avr-protos.h (avr_vdump): New prototype.
12484         (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
12485         (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
12486         * config/avr/avr-log.c: Adjust comments.
12487         (avr_vdump): New function.
12488         (avr_vadump): Pass caller as 2nd argument instead of format string.
12489         (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
12490         (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
12492 2015-02-25  Jakub Jelinek  <jakub@redhat.com>
12494         PR lto/64374
12495         * target.def (target_option_stream_in): New target hook.
12496         * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
12497         targetm.target_option.post_stream_in if non-NULL.
12498         * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
12499         * doc/tm.texi: Updated.
12500         * config/i386/i386.c (ix86_function_specific_post_stream_in): New
12501         function.
12502         (TARGET_OPTION_POST_STREAM_IN): Redefine.
12504 2015-02-24  Jeff Law  <law@redhat.com>
12506         PR target/65117
12507         * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
12508         of operand 0 and operand 2.
12509         (zero_cost_loop_end, loop_end): Similarly.
12511 2015-02-24  Aldy Hernandez  <aldyh@redhat.com>
12513         * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
12514         CXX_MEM_STAT_INFO.
12516 2015-02-24  DJ Delorie  <dj@redhat.com>
12518         * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
12519         * config/rl78/rl78-expand.md (movsf): New, same as movsi.
12520         * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
12521         instead of hardcoding SImode.
12523 2015-02-24  Bernd Schmidt  <bernds@codesourcery.com>
12525         * omp-low.c (create_omp_child_function): Tag entrypoint
12526         functions with a special attribute.
12528 2015-02-24  Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
12530         PR target/65058
12531         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
12533 2015-02-24  Vladimir Makarov  <vmakarov@redhat.com>
12535         PR rtl-optimization/65123
12536         * lra-remat.c (operand_to_remat): Check hard regs in insn
12537         definition too.
12539 2015-02-24  Nick Clifton  <nickc@redhat.com>
12541         * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
12542         to the assembler.
12544 2015-02-24  Thomas Schwinge  <thomas@codesourcery.com>
12546         PR libgomp/64625
12547         * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
12548         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
12549         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
12550         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
12551         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
12552         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
12553         (BUILT_IN_GOACC_PARALLEL): Specify as
12554         BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
12555         BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
12556         * builtin-types.def
12557         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
12558         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
12559         Remove function types.
12560         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
12561         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
12562         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
12563         New function types.
12565 2015-02-24  Georg-Johann Lay  <avr@gjlay.de>
12567         * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
12569 2015-02-24  Jakub Jelinek  <jakub@redhat.com>
12571         PR tree-optimization/65170
12572         * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
12573         if val[1] < 0, clear also val[2] and return 3.
12575 2015-02-24  Alan Modra  <amodra@gmail.com>
12577         PR target/65172
12578         * config/rs6000/rs6000.c (get_memref_parts): Only return true
12579         when *base is a reg.  Handle nested plus addresses.  Simplify
12580         pre_modify test.
12582 2015-02-22  Max Filippov  <jcmvbkbc@gmail.com>
12584         * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
12585         use natural alignment when optimizing for size.
12587 2015-02-23  Kaz Kojima  <kkojima@gcc.gnu.org>
12589         PR target/65153
12590         * config/sh/sh.md (movsicc_true+3): Remove peephole.
12591         * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
12592         * config/sh/sh.c (replace_n_hard_rtx): Remove.
12594 2015-02-23  Richard Sandiford  <richard.sandiford@arm.com>
12596         PR fortran/63427
12597         * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
12598         too big for a wide_int.  Implement missing wrapping operation.
12600 2015-02-23  Oleg Endo  <olegendo@gcc.gnu.org>
12602         PR target/65163
12603         * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
12604         instead of const_int 4294901760.
12606 2015-02-23  Georg-Johann Lay  <avr@gjlay.de>
12608         * config/avr/t-avr: Fix typo in comment.
12610 2015-02-21  Richard Sandiford  <richard.sandiford@arm.com>
12612         * doc/rtl.texi (fma): Clarify documentation.
12614 2015-02-20  Aldy Hernandez  <aldyh@redhat.com>
12616         PR debug/58123
12617         * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
12618         over input_location.
12620 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
12622         * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
12623         unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
12624         restrict alignments to absolute_biggest_alignment.
12625         * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
12626         Define.
12627         * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
12628         * doc/tm.texi: Regenerate.
12629         * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
12631 2015-02-20  Vladimir Makarov  <vmakarov@redhat.com>
12633         PR target/64172
12634         * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
12636 2015-02-20  Richard Biener  <rguenther@suse.de>
12638         PR tree-optimization/65136
12639         * tree-ssa-propagate.c: Include cfgloop.h.
12640         (replace_phi_args_in): Avoid replacing loop latch edge PHI
12641         arguments with constants.
12643 2015-02-20  Jakub Jelinek  <jakub@redhat.com>
12644             Martin Liska  <mliska@suse.cz>
12646         PR target/63892
12647         * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
12648         don't try to create_thunk if stdarg_p.  If
12649         !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
12650         redirect_callers if possible.
12651         (sem_item_optimizer::execute): Call unregister_hooks here...
12652         (ipa_icf_driver): ... instead of here.
12654 2015-02-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12656         * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
12657         Mark operand 0 as earlyclobber in 2nd alternative.
12658         (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
12659         Write negated shift amount into QI lowpart operand 0 and use it
12660         in the shift step.
12661         (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
12663 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
12665         * cgraph.h (clone_function_name_1): Declare.
12666         * cgraphclones.c (clone_function_name_1): New function.
12667         (clone_function_name): Use it.
12668         * lto-partition.c: Include "stringpool.h".
12669         (must_not_rename, maybe_rewrite_identifier)
12670         (validize_symbol_for_target): New static functions.
12671         (privatize_symbol_name): Use must_not_rename.
12672         (promote_symbol): Call validize_symbol_for_target.
12673         (lto_promote_cross_file_statics): Likewise.
12674         (lto_promote_statics_nonwpa): Likewise.
12676 2015-02-20  Georg-Johann Lay  <avr@gjlay.de>
12678         PR target/64452
12679         * config/avr/avr.md (pushhi_insn): New insn.
12680         (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
12682 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
12683             Jakub Jelinek  <jakub@redhat.com>
12685         * tree-streamer.c (preload_common_nodes): Don't preload
12686         TI_VA_LIST* for offloading.
12687         * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
12688         in_lto_p.
12690 2015-02-19  John David Anglin  <danlgin@gcc.gnu.org>
12692         * config/pa/pa.c (pa_emit_move_sequence): Always force
12693         (const (plus (symbol) (const_int))) to const mem.  Put REG_EQUAL
12694         note on insn.
12696         * config/pa/pa.c (pa_reloc_rw_mask): New function.
12697         (TARGET_ASM_RELOC_RW_MASK): Define.
12698         (pa_cannot_force_const_mem): Revert previous change.
12700 2015-02-19  Martin Jambor  <mjmabor@suse.cz>
12701             Jan Hubicka  <hubicka@ucw.cz>
12703         PR ipa/65028
12704         * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
12705         across jump functions.
12707 2015-02-19  Uros Bizjak  <ubizjak@gmail.com>
12709         * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
12711 2015-02-19  Sandra Loosemore  <sandra@codesourcery.com>
12713         * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
12715 2015-02-19  Richard Henderson  <rth@redhat.com>
12717         PR middle-end/65074
12718         * varasm.c (default_binds_local_p_2): Don't test node->definition;
12719         test DECL_EXTERNAL independent of symtab_node.
12721 2015-02-19  Jakub Jelinek  <jakub@redhat.com>
12723         PR lto/65012
12724         * varpool.c (varpool_node::get_constructor): Return early
12725         if this->lto_file_data is NULL.
12727 2015-02-19  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
12729         * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
12730         (rank_for_schedule_debug): Update.
12731         (ready_sort): Make static.  Move sorting logic to ...
12732         (ready_sort_debug, ready_sort_real): New static functions.
12733         (schedule_block): Sort both debug insns and real insns in preparation
12734         for ready list trimming.  Improve debug output.
12735         * sched-int.h (ready_sort): Remove global declaration.
12737 2015-02-18  Trevor Saunders  <tsaunders@mozilla.com>
12739         * ipa-icf.c (sem_function::equals_private): Adjust.
12740         (sem_function::bb_dict_test): Take a vec<int> * instead of
12741         auto_vec<int>.
12742         * ipa-icf.h (bb_dict_test): Likewise.
12744 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
12746         PR gcov-profile/64634
12747         * tree-eh.c (frob_into_branch_around): Fix up typos
12748         in function comment.
12749         (lower_catch): Put eh_seq resulting from EH lowering of
12750         the cleanup sequence after the cleanup rather than before it.
12752 2015-02-18  Tom de Vries  <tom@codesourcery.com>
12754         * common.opt (fstdarg-opt): New option.
12755         * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
12756         * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
12757         (@item -fstdarg-opt): New item.
12759 2015-02-18  H.J. Lu  <hongjiu.lu@intel.com>
12761         PR target/65064
12762         * config/ia64/predicates.md (sdata_symbolic_operand): Return false
12763         for common symbols.
12765 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
12767         * config/i386/t-intelmic (mkoffload.o): Remove dependency on
12768         insn-modes.h.
12769         (ALL_HOST_OBJS): Add mkoffload.o.
12770         * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
12772 2015-02-18  Jan Hubicka  <hubicka@ucw.cz>
12774         * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
12775         (compare_virtual_tables): Be smarter about skipping typeinfos;
12776         do sane output on virtual table table mismatch.
12777         (warn_odr): Be ready for forward declarations of enums;
12778         output sane info on base mismatch and virtual table mismatch.
12779         (add_type_duplicate): Fix code choosing prevailing type; do not ICE
12780         when only one type is polymorphic.
12781         (get_odr_type): Fix hashtable corruption.
12782         (dump_odr_type): Dump mangled names.
12784 2015-02-18  Richard Biener  <rguenther@suse.de>
12786         PR tree-optimization/65063
12787         * tree-predcom.c (determine_unroll_factor): Return 1 if we
12788         have replaced looparound PHIs.
12790 2015-02-18  Martin Liska  <mliska@suse.cz>
12792         * lto-streamer.c (lto_streamer_init): Encapsulate
12793         streamer_check_handled_ts_structures with checking macro.
12795 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
12797         PR ipa/65087
12798         * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
12799         section if !implicit_section.
12800         (cgraph_node::create_version_clone_with_body): Likewise.
12801         * trans-mem.c (ipa_tm_create_version): Likewise.
12803 2015-02-18  Richard Biener  <rguenther@suse.de>
12805         PR tree-optimization/62217
12806         * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
12807         into BIVs.
12809 2015-02-18  Marek Polacek  <polacek@redhat.com>
12811         PR sanitizer/65081
12812         * ubsan.c (OBJSZ_MAX_OFFSET): Define.
12813         (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
12814         is in range [-16K, -1].  Don't issue run-time error if
12815         (ptr > ptr + offset).
12817 2015-02-18  Thomas Schwinge  <thomas@codesourcery.com>
12819         * doc/install.texi (nvptx-*-none): New section.
12820         * doc/invoke.texi (Nvidia PTX Options): Likewise.
12821         * config/nvptx/nvptx.opt: Update.
12823         * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
12824         (access_check): New functions, copied from
12825         config/i386/intelmic-mkoffload.c.
12826         (main): For non-installed testing, look in all COMPILER_PATHs for
12827         GCC_INSTALL_NAME.
12829         * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
12831 2015-02-18  Andrew Pinski  <apinski@cavium.com>
12832             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
12834         * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
12835         Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
12837 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
12839         * ipa-visibility.c (function_and_variable_visibility): Only
12840         check locality if node is not already local.
12841         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
12842         call_for_symbol_and_aliases instead of
12843         call_for_symbol_thunks_and_aliases.
12844         (ipa_inline): Likewise.
12845         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
12846         first walk aliases.
12847         * ipa.c (symbol_table::remove_unreachable_nodes): Use
12848         call_for_symbol_and_aliases.
12849         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
12850         (ipa_propagate_frequency_1): Use it; use opt_for_fn
12851         (ipa_propagate_frequency): Update.
12852         (ipa_profile): Add opt_for_fn gueards.
12854 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
12856         * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
12857         * doc/invoke.texi (SH options): Document it.
12858         * config/sh/sh.c (sh_insn_length_adjustment): Check
12859         TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
12861 2015-02-17  H.J. Lu  <hongjiu.lu@intel.com>
12863         * common.opt (fipa-cp-alignment): New.
12864         * ipa-cp.c (ipcp_store_alignment_results): Check
12865         flag_ipa_cp_alignment.
12866         * opts.c (default_options_table): Enable -fipa-cp-alignment for
12867         -O2.
12868         (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
12869         * doc/invoke.texi: Document -fipa-cp-alignment.
12871 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
12873         PR target/64793
12874         * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
12875         to nil.  Adjust comments.
12877 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
12879         * ipa-visibility.c (function_and_variable_visibility): Only
12880         check locality if node is not already local.
12881         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
12882         call_for_symbol_and_aliases instead of
12883         call_for_symbol_thunks_and_aliases.
12884         (ipa_inline): Likewise.
12885         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
12886         first walk aliases.
12887         * ipa.c (symbol_table::remove_unreachable_nodes): Use
12888         call_for_symbol_and_aliases.
12889         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
12890         (ipa_propagate_frequency_1): Use it; use opt_for_fn
12891         (ipa_propagate_frequency): Update.
12892         (ipa_profile): Add opt_for_fn guards.
12894 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
12896         * config/nvptx/mkoffload.c (parse_file): Fix logic error in
12897         skipping of "strange" tokens.
12899 2015-02-17  Jeff Law  <law@redhat.com>
12901         * tree-vrp.c (identify_jump_threads): Use last_stmt.  Remove
12902         obsolete comment.
12904 2015-02-17  James Greenhalgh  <james.greenhalgh@arm.com>
12906         * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
12907         as forcing a HARD_DEP between instructions, thereby
12908         disallowing rewriting to break dependencies.
12910 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
12912         * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
12913         * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
12914         variables in boundary that have no inlitalizer encoded and are
12915         not aliases.
12916         * varasm.c (default_binds_local_p_2): External definitions do not
12917         count as definitions here.
12919 2015-02-16  Jeff Law  <law@redhat.com>
12921         PR tree-optimization/64823
12922         * tree-vrp.c (identify_jump_threads): Handle blocks with no real
12923         statements.
12924         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
12925         threading through blocks with PHIs, but no statements.
12926         (thread_through_normal_block): Distinguish between blocks where
12927         we did not process all the statements and blocks with no statements.
12929 2015-02-16  Jakub Jelinek  <jakub@redhat.com>
12930             James Greenhalgh  <james.greenhalgh@arm.com>
12932         PR ipa/64963
12933         * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
12934         section if not linkonce.  Fix up formatting.
12935         (cgraph_node::create_version_clone_with_body): Copy section.
12936         * trans-mem.c (ipa_tm_create_version): Likewise.
12938 2015-02-16  Richard Biener  <rguenther@suse.de>
12940         PR tree-optimization/65077
12941         * tree-ssa-structalias.c (get_constraint_for_1): Handle
12942         IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
12943         (find_func_aliases): Allow float values to carry pointers again.
12945 2015-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
12947         * doc/install.texi (Specific): Reorder targets list to put
12948         aarch64 in alphabetical order.  Add a link to aarch64*-*-*
12949         from the top menu.
12951 2015-02-16  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
12952             David Edelsohn  <dje.gcc@gmail.com>
12954         PR target/65058
12955         * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
12956         mapping class to external variable or function reference.
12957         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
12958         mapping class.
12960 2015-02-16  David Eelsohn  <dje.gcc@gmail.com>
12962         PR target/53348
12963         * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
12964         ASM_WEAKEN_DECL if defined.
12966 2015-02-16  Richard Biener  <rguenther@suse.de>
12968         PR lto/65015
12969         * varasm.c (default_file_start): For LTO produced units
12970         emit <artificial> as file directive.
12972 2015-02-16  Richard Biener  <rguenther@suse.de>
12974         PR tree-optimization/63593
12975         * tree-predcom.c (execute_pred_commoning_chain): Delay removing
12976         stmts and releasing SSA names until...
12977         (execute_pred_commoning): ... after processing all chains.
12979 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
12981         PR ipa/65059
12982         * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
12983         external functions.
12985 2015-02-15  Sandra Loosemore  <sandra@codesourcery.com>
12987         * doc/bugreport.texi: Adjust section titles throughout the file
12988         to use "Title Case".
12989         * doc/extend.texi: Likewise.
12990         * doc/gcov.texi: Likewise.
12991         * doc/implement-c.texi: Likewise.
12992         * doc/implement-cxx.texi: Likewise.
12993         * doc/invoke.texi: Likewise.
12994         * doc/objc.texi: Likewise.
12995         * doc/standards.texi: Likewise.
12996         * doc/trouble.texi: Likewise.
12998 2015-02-15  Jan Hubicka  <hubicka@ucw.cz>
13000         * cgraph.h (symtab_node::has_aliases_p): Simplify.
13001         (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
13002         * tree.c (lookup_binfo_at_offset): Make static.
13003         (get_binfo_at_offset): Do not shadow offset; add explanatory
13004         comment.
13006 2015-02-15  John David Anglin  <danglin@gcc.gnu.org>
13008         * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
13009         for all floading point loads and stores except those using a register
13010         index address.
13011         * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
13012         to a register.
13014 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
13016         * ipa-inline-analysis.c (growth_data): Add uninlinable field.
13017         (do_estimate_growth_1): Record if any uninlinable edge was seen.
13018         (estimate_growth): Handle uninlinable edges correctly.
13019         (check_callers): New.
13020         (growth_likely_positive): Handle aliases correctly.
13022 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
13024         * ipa-chkp.c: Use iterate_direct_aliases.
13025         * symtab.c (resolution_used_from_other_file_p): Move inline.
13026         (symtab_node::create_reference): Fix formating.
13027         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
13028         (symtab_node::iterate_reference): Move inline.
13029         (symtab_node::iterate_referring): Move inline.
13030         (symtab_node::iterate_direct_aliases): Move inline.
13031         (symtab_node::used_from_object_file_p_worker): Inline into ...
13032         (symtab_node::used_from_object_file_p): ... this one; move inline.
13033         (symtab_node::call_for_symbol_and_aliases): Move inline;
13034         use iterate_direct_aliases.
13035         (symtab_node::call_for_symbol_and_aliases_1): New method.
13036         (cgraph_node::call_for_symbol_and_aliases): Move inline;
13037         use iterate_direct_aliases.
13038         (cgraph_node::call_for_symbol_and_aliases_1): New method.
13039         (varpool_node::call_for_node_and_aliases): Rename to ...
13040         (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
13041         use iterate_direct_aliases.
13042         (varpool_node::call_for_symbol_and_aliases_1): New method.
13043         * ipa.c (ipa_single_use): Use iterate_direct_aliases.
13044         (ipa_discover_readonly_nonaddressable_var): Update.
13045         * ipa-devirt.c: Fix formating.
13046         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
13047         Move inline.
13048         (cgraph_node::call_for_symbol_and_aliases): Move inline.
13049         (cgraph_node::call_for_symbol_and_aliases_1): New function..
13050         * cgraph.h (used_from_object_file_p_worker): Remove.
13051         (resolution_used_from_other_file_p): Move inline.
13052         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
13053         (symtab_node::iterate_reference): Move inline.
13054         (symtab_node::iterate_referring): Move inline.
13055         (symtab_node::iterate_direct_aliases): Move inline.
13056         (symtab_node::used_from_object_file_p_worker): Inline into ...
13057         (symtab_node::used_from_object_file_p): Move inline.
13058         * tree-emutls.c (ipa_lower_emutls): Update.
13059         * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
13060         (varpool_node::call_for_node_and_aliases): Remove.
13062 2015-02-14  Jakub Jelinek  <jakub@redhat.com>
13064         PR tree-optimization/62209
13065         * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
13066         op == range->exp, insert seq and gimplified code after labels
13067         instead of after the phi.
13069 2015-02-13  Jeff Law  <law@redhat.com>
13071         PR bootstrap/65060
13072         Revert my change for tree-optimization/64823.
13074 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
13076         PR tree-optimization/65053
13077         * tree-ssa-phiopt.c (value_replacement): When moving assign before
13078         cond, either reset VR on lhs or set it to phi result VR.
13080 2015-02-13  Jeff Law  <law@redhat.com>
13082         PR tree-optimization/64823
13083         * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
13084         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
13085         threading through blocks with PHIs, but no statements.
13086         (thread_through_normal_block): Distinguish between blocks where
13087         we did not process all the statements and blocks with no statements.
13089         PR rtl-optimization/47477
13090         * match.pd (convert (plus/minus (convert @0) (convert @1): New
13091         simplifier to narrow arithmetic.
13093 2015-02-13  Jan Hubicka  <hubicka@ucw.cz>
13095         PR ipa/65028
13096         * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
13097         polymorphic call info when type is not known to be preserved.
13099 2015-02-13  Maritn Jambor  <mjambor@suse.cz>
13101         PR ipa/65028
13102         * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
13103         (inline_call): Use it.
13105 2015-02-13  Thomas Schwinge  <thomas@codesourcery.com>
13107         * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
13108         GOMP_DEVICE_NVIDIA_PTX.
13110 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
13112         PR ipa/65034
13113         * stmt.c (emit_case_nodes): Use void_type_node instead of
13114         NULL_TREE as LABEL_DECL type.
13116 2015-02-13  John David Anglin  <danglin@gcc.gnu.org>
13118         * config/pa/constraints.md: Change "Q" and "T" constraints to memory
13119         constraints.
13120         * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
13121         symbolic references to data to be forced to constant memory on the
13122         SOM target.
13124 2015-02-13  Ilya Enkovich  <ilya.enkovich@intel.com>
13126         PR tree-optimization/65002
13127         * tree-cfg.c (pass_data_fixup_cfg): Don't update
13128         SSA on start.
13129         * tree-sra.c (some_callers_have_no_vuse_p): New.
13130         (ipa_early_sra): Reject functions whose callers
13131         assume function is read only.
13133 2015-02-13  Richard Biener  <rguenther@suse.de>
13135         PR lto/65015
13136         * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
13137         for LTO produced CUs.
13139 2015-02-13  Bin Cheng  <bin.cheng@arm.com>
13141         PR tree-optimization/64705
13142         * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
13143         * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
13144         * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
13145         (find_bivs, find_givs_in_stmt_scev): Pass new argument to
13146         expand_simple_operations.
13148 2015-02-13  H.J. Lu  <hongjiu.lu@intel.com>
13149             Richard Henderson  <rth@redhat.com>
13151         PR rtl/32219
13152         * cgraphunit.c (cgraph_node::finalize_function): Set definition
13153         before notice_global_symbol.
13154         (varpool_node::finalize_decl): Likewise.
13155         * varasm.c (default_binds_local_p_2): Rename from
13156         default_binds_local_p_1, add weak_dominate argument.  Use direct
13157         returns instead of assigning to local variable.  Unify varpool and
13158         cgraph paths via symtab_node.  Reject undef weak variables before
13159         testing visibility.  Reorder tests for simplicity.
13160         (default_binds_local_p): Use default_binds_local_p_2.
13161         (default_binds_local_p_1): Likewise.
13162         (decl_binds_to_current_def_p): Unify varpool and cgraph paths
13163         via symtab_node.
13164         (default_elf_asm_output_external): Emit visibility when specified.
13166 2015-02-13  Alan Modra  <amodra@gmail.com>
13168         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
13169         code setting up r11 for out-of-line fp restore.
13171 2015-02-13  Eric Botcazou  <ebotcazou@adacore.com>
13173         * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
13174         (muser-mode): Likewise.
13176 2015-02-13  Alan Modra  <amodra@gmail.com>
13178         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
13179         or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
13181 2015-02-12  David Howells  <dhowells@redhat.com>
13183         * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
13184         warning.
13185         * tree-ssa-uninit.c (dump_predicates): Likewise.
13186         * opts.c (print_filtered_help): Likewise.
13188 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
13190         * dwarf2out.c (output_die): Use "%s", name instead of name to
13191         avoid -Wformat-security warning.
13193         * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
13194         if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
13195         * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
13196         only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
13198 2015-02-12  Jason Merrill  <jason@redhat.com>
13200         * common.opt (-flifetime-dse): New.
13202 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
13204         PR sanitizer/65019
13205         * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
13207         PR tree-optimization/65014
13208         * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
13209         use original second operand of arg0 or arg1 instead of
13210         that adjusted by STRIP_NOPS.
13212 2015-02-11  Jeff Law  <law@redhat.com>
13214         PR target/63347
13215         * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
13216         that needs to be queued, just queue it for a single cycle.
13218 2015-02-11  Jan Hubicka  <hubicka@ucw.cz>
13220         * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
13221         bodies of thunks; comment on why.
13222         * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
13223         symbols are extern.
13225 2015-02-11  Richard Henderson  <rth@redhat.com>
13227         PR sanitize/65000
13228         * tree-eh.c (mark_reachable_handlers): Mark source and destination
13229         regions of __builtin_eh_copy_values.
13231 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
13233         PR middle-end/65003
13234         * varasm.c (place_block_symbol): Assert that DECL_RTL of the
13235         ultimate alias is MEM with SYMBOL_REF satisfying
13236         SYMBOL_REF_HAS_BLOCK_INFO_P as its operand.  Don't pass the MEM
13237         to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
13239 2015-02-11  Thomas Schwinge  <thomas@codesourcery.com>
13241         * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
13242         "diagnostic-core.h".
13243         (main): Initialize progname, and call diagnostic_initialize.
13245         * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
13246         instead of __OPENMP_TARGET__.
13248         * config/nvptx/mkoffload.c: Include "gomp-constants.h".
13249         (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
13250         hard-coding PTX_ID.
13252 2015-02-11  H.J. Lu  <hongjiu.lu@intel.com>
13254         * doc/sourcebuild.texi (pie_enabled): Document.
13256 2015-02-11  Martin Liska  <mliska@suse.cz>
13258         PR ipa/64813
13259         * cgraphunit.c (cgraph_node::expand_thunk): Do not create
13260         a return value for call to a function that is noreturn.
13262 2015-02-11  Richard Biener  <rguenther@suse.de>
13264         PR lto/65015
13265         * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
13266         and -fresolution.
13268 2015-02-11  Andrew Pinski  <apinski@cavium.com>
13270         PR target/64893
13271         * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
13272         Change the first argument type to size_type_node and add another
13273         size_type_node.
13274         (aarch64_simd_expand_builtin): Handle the new argument to
13275         AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
13276         print an out when the first two arguments are not
13277         nonzero integer constants.
13278         * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
13279         Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
13281 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
13283         PR target/61925
13284         * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
13285         (ix86_reset_previous_fndecl): Restore it here, unconditionally.
13286         (ix86_set_current_function): Rewritten.
13287         (ix86_add_new_builtins): Temporarily clear current_target_pragma
13288         when creating builtin fndecls.
13290 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
13292         PR ipa/65005
13293         * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
13294         function.
13295         * symtab.c (symtab_node::verify_base): Remove check that non-definitions
13296         have no comdat group.
13297         * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
13298         (lto_output_varpool_node): Always output alias info.
13299         (output_refs): Output refs of boundary aliases, too.
13300         (compute_ltrans_boundary): Add alias and thunk target into boundaries.
13301         (output_symtab): Output call eges in thunks in boundary.
13302         (get_alias_symbol): Remove.
13303         (input_node, input_varpool_node): Do not special case weakrefs.
13304         * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
13305         alias and thunks targets in the boundary; do not take removed symbols
13306         from their comdat groups.
13307         * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
13308         (cgraph_node::global_info): Remove.
13309         (cgraph_node::rtl_info): Look through aliases and thunks.
13310         * cgrpah.h (global_info): Remove.
13311         (non_local_p): Remove.
13313 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
13314             Sandra Loosemore  <sandra@codesourcery.com>
13316         * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
13317         to inline asm.  List dialects in proper order.
13319 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
13320             Sandra Loosemore  <sandra@codesourcery.com>
13322         * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
13324 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
13326         * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
13327         modified) reference to Solaris.
13329 2015-02-10  Sandra Loosemore  <sandra@codesourcery.com>
13331         * doc/extend.texi (Extended Asm): Fix typos.
13333 2015-02-10  Jakub Jelinek  <jakub@redhat.com>
13335         PR sanitizer/65004
13336         * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
13338 2015-02-10  Oleg Endo  <olegendo@gcc.gnu.org>
13340         PR target/64661
13341         * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
13342         TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
13343         TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
13344         * config/sh/constraints.md (Ara, Add): New constraints.
13345         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
13346         predicates.
13347         (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
13348         atomic_mem_operand_0.  Don't use force_reg on the memory address.
13349         (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
13350         Sra constraint.  Convert to insn_and_split.  Add workaround for
13351         PR 64974.
13352         (atomic_compare_and_swap<mode>_hard): Copy to
13353         atomic_compare_and_swap<mode>_hard_1.  Convert to insn_and_split.
13354         Use atomic_mem_operand_0 predicate.
13355         (atomic_compare_and_swap<mode>_soft_gusa,
13356         atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
13357         AraAdd constraints.
13358         (atomic_compare_and_swap<mode>_soft_tcb,
13359         atomic_compare_and_swap<mode>_soft_imask,
13360         atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
13361         atomic_mem_operand_0 predicate and SraSdd constraints.
13362         (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
13363         constraint.
13364         (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
13365         Convert to insn_and_split.  Use atomic_mem_operand_0 predicate.
13366         (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
13367         atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1.  Don't use
13368         force_reg on the memory address.
13369         (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
13370         atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
13371         atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
13372         atomic_mem_operand_1 predicate and Sra constraint.
13373         (atomic_fetch_<fetchop_name><mode>_hard): Copy to
13374         atomic_fetch_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
13375         Use atomic_mem_operand_1 predicate.
13376         (atomic_<fetchop_name><mode>_hard): Copy to
13377         atomic_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
13378         Use atomic_mem_operand_1 predicate.
13379         (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
13380         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
13381         (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1.  Convert to
13382         insn_and_split.  Use atomic_mem_operand_1 predicate.
13383         (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
13384         atomic_<fetchop_name>_fetch<mode>_hard_1.  Convert to insn_and_split.
13385         Use atomic_mem_operand_1 predicate.
13386         (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
13387         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
13388         (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
13389         in generated insn with original mem operand before emitting the insn.
13390         (atomic_fetch_<fetchop_name><mode>_soft_gusa,
13391         atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
13392         atomic_<fetchop_name>_fetch<mode>_soft_gusa,
13393         atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
13394         Use atomic_mem_operand_1 predicate and AraAdd constraints.
13395         (atomic_fetch_<fetchop_name><mode>_soft_tcb,
13396         atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
13397         atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
13398         atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
13399         atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
13400         atomic_<fetchop_name>_fetch<mode>_soft_tcb,
13401         atomic_not_fetch<mode>_soft_tcb,
13402         atomic_<fetchop_name>_fetch<mode>_soft_imask,
13403         atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
13404         atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
13405         Use atomic_mem_operand_1 predicate and SraSdd constraints.
13407 2015-02-10  Uros Bizjak  <ubizjak@gmail.com>
13409         * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
13410         and 3 earlyclobber operands.
13412 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
13414         * common.opt (fstack-reuse): Mark as optimization.
13416 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
13418         PR ipa/64982
13419         * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
13421 2015-02-10  Trevor Saunders  <tsaunders@mozilla.com>
13423         PR tree-optimization/64326
13424         * cfghooks.c (make_forwarder_block): Cap frequency of created block.
13426 2015-02-10  Rainer Emrich  <rainer@emrich-ebersheim.de>
13428         PR gcov-profile/61889
13429         * gcov-tool.c: Remove wrong #if !defined(_WIN32)
13431 2015-02-10  Richard Biener  <rguenther@suse.de>
13433         PR tree-optimization/64995
13434         * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
13435         value we use is final.
13436         (visit_reference_op_store): Always valueize op.
13437         (visit_use): Properly valueize vuses.
13439 2015-02-10  Richard Biener  <rguenther@suse.de>
13441         PR tree-optimization/64909
13442         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
13443         pass a scalar-stmt count estimate to the cost model.
13444         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
13446 2015-02-10  Alexander Monakov  <amonakov@ispras.ru>
13448         * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
13449         enabled by default together with var-tracking.
13451 2015-02-10  Nick Clifton  <nickc@redhat.com>
13453         * config/rl78/rl78.c: Remove DIV attribute code accidentally
13454         included in previous rl78 commit.
13456 2015-02-10  Richard Biener  <rguenther@suse.de>
13458         * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
13459         * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
13460         return the bitpack.
13462 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
13464         PR gcov-profile/61889
13465         * config.in: regenerate.
13466         * configure.in: Likewise.
13467         * configure.ac: Check for ftw.h.
13468         * gcov-tool.c: Check for ftw.h before using nftw.
13470 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
13472         PR lto/64076
13473         * ipa-visibility.c (update_visibility_by_resolution_info): Only
13474         assert when not in lto mode.
13476 2015-02-09  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
13478         * ira-color.c (setup_left_conflict_sizes_p): Simplify
13479         initialization/assignment of conflict_size.
13481 2015-02-09  Jan Hubicka  <hubicka@ucw.cz>
13483         PR ipa/64978
13484         * ipa-cp.c (gather_caller_stats): Skip thunks.
13485         (propagate_constants_topo): Skip aliases.
13487 2015-02-09  Kaz Kojima  <kkojima@gcc.gnu.org>
13489         PR target/64761
13490         * config/sh/sh.c (sh_option_override): Don't change
13491         -freorder-blocks-and-partition to -freorder-blocks even when
13492         unwinding is enabled.
13493         (sh_can_follow_jump): Return false if the followee jump is
13494         a crossing jump when -freorder-blocks-and-partition is specified.
13495         * config/sh/sh.md (*jump_compact_crossing): New insn.
13497 2015-02-09  Joern Rennecke  <joern.rennecke@embecosm.com>
13498             Kaz Kojima  <kkojima@gcc.gnu.org>
13500         PR target/64761
13501         * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
13502         * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
13503         (sh_can_redirect_branch): Rename to ...
13504         (sh_can_follow_jump): ... this.  Constify argument types.
13505         * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
13506         * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
13507         * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
13508         * doc/tm.texi: Regenerate.
13510 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
13512         PR sanitizer/64981
13513         * builtins.c (expand_builtin): Call targetm.expand_builtin
13514         for BUILT_IN_MD builtins regardless of asan_intercepted_p.
13516 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
13518         PR ipa/61548
13519         * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
13521 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
13523         PR ipa/63566
13524         * ipa-icf.c (set_local): New function.
13525         (sem_function::merge): Use it.
13527 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
13529         * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
13530         (add_type_duplicate): Fix comparison of BINFOs.
13532 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
13534         * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
13535         on getting VOID pointer.
13537 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
13539         PR target/64979
13540         * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
13541         va_list escapes.
13543 2015-02-09  Richard Biener  <rguenther@suse.de>
13545         * genmatch.c (replace_id): Copy expr_type.
13547 2015-02-09  Richard Biener  <rguenther@suse.de>
13549         * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
13550         (streamer_write_tree_bitfields): Declare.
13551         * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
13552         properly unpack padding.
13553         (unpack_value_fields): Inline ...
13554         (streamer_read_tree_bitfields): ... here.
13555         * tree-streamer-out.c (pack_ts_base_value_fields): Inline
13556         and properly add padding bits.
13557         (streamer_pack_tree_bitfields): Fold into ...
13558         (streamer_write_tree_bitfields): ... this new function,
13559         exposing the bitpack object.
13560         * lto-streamer-out.c (lto_write_tree_1): Call
13561         streamer_write_tree_bitfields.
13563 2015-02-09  Richard Biener  <rguenther@suse.de>
13565         PR tree-optimization/54000
13566         * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
13567         (struct ivopts_data): Add loop_loc member.
13568         (tree_ssa_iv_optimize_loop): Dump loop location.
13569         (create_new_ivs): Likewise, also dump number of IVs generated.
13571 2015-02-09  Martin Liska  <mliska@suse.cz>
13573         * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
13574         just if not yet registered.
13575         (ipa_icf_generate_summary): Register callgraph hooks.
13577 2015-02-08  Andrew Pinski  <apinski@cavium.com>
13579         * config/aarch64/aarch64.c (gty_dummy): Delete.
13581 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
13583         PR ipa/63566
13584         * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
13585         (cgraph_node::local_p): Remove thunk related FIXME.
13587 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
13589         PR ipa/63566
13590         * i386.c (ix86_function_regparm): Look through aliases to see if callee
13591         is local and optimized.
13592         (ix86_function_sseregparm): Likewise; also use target's SSE math
13593         settings; error out instead of silently generating wrong code
13594         on mismatches.
13595         (init_cumulative_args): Look through aliases.
13597 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
13599         PR ipa/63566
13600         * ipa-split.c (execute_split_functions): Split if function has aliases.
13602 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
13604         PR ipa/63566
13605         * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
13606         aliases before trying to expand it.
13607         (cgraph_node::expand_thunk): Fix formating.
13609 2015-02-07  Sandra Loosemore  <sandra@codesourcery.com>
13611         * doc/extend.texi (Function Attributes [naked]): Copy-edit.
13612         (Using Assembly Language with C): Expand introduction.
13613         (Basic Asm): Copy-edit.  Add more information about uses of
13614         basic asm.
13615         (Extended Asm): Copy-edit.  Document new escape syntax and
13616         %l[label] syntax.
13617         (Global Reg Vars): Copy-edit.
13618         (Local Reg Vars): Likewise.
13620 2015-02-06  David Edelsohn  <dje.gcc@gmail.com>
13622         PR debug/2714
13623         PR bootstrap/64256
13624         * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
13625         (DBX_CONTIN_CHAR): Define.
13627 2015-02-06  Sebastian Pop  <s.pop@samsung.com>
13628             Brian Rzycki  <b.rzycki@samsung.com>
13630         PR tree-optimization/64878
13631         * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
13632         (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
13633         Stop recursion at loop phi nodes after having visited a loop phi node.
13635 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
13637         * toplev.c (process_options): Change flag_ipa_ra before creating
13638         optimization_{default,current}_node.
13640         PR ipa/64896
13641         * cgraphunit.c (cgraph_node::expand_thunk): If
13642         restype is not is_gimple_reg_type nor the thunk_fndecl
13643         returns aggregate_value_p, set restmp to a temporary variable
13644         instead of resdecl.
13646 2015-02-06  Vladimir Makarov  <vmakarov@redhat.com>
13648         * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
13650 2015-02-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
13652         PR target/64205
13653         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
13654         add a general secondary reload handler for SDmode, unless we have
13655         both read/write support for SDmode.
13657 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
13659         PR middle-end/64937
13660         * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
13661         Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
13662         or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
13663         1 before, push it to abstract_vec.
13664         (dwarf2out_abstract_function): Adjust caller.  Don't call
13665         set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
13666         DECL_ABSTRACT_P flags for all abstract_vec elts.
13668 2015-02-06  Renlin Li  <renlin.li@arm.com>
13670         * tree-ssa-forwprop.c (execute): Keep location info while rewrite
13671         complex gimple.
13672         * tree-ssa.c (execute_update_addresses_taken): Likewise.
13674 2015-02-06  Jeff Law  <law@redhat.com>
13676         PR target/64889
13677         * config/h8300/h8300.c (push): New argument "in_prologue".
13678         Pass "in_prologue" along to "F".
13679         (h8300_push_pop): Corresponding changes.
13680         (h8300_expand_prologue): Likewise.
13681         (h8300_swap_into_er6): Likewise.  Do not set RTX_FRAME_RELATED_P.
13683 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
13685         PR rtl-optimization/64957
13686         PR debug/64817
13687         * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
13688         IOR rather than for AND.
13690 2015-02-06  Eric Botcazou  <ebotcazou@adacore.com>
13692         PR target/62631
13693         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
13694         of shift-add and (add + shift) operations.  Rename local variable.
13696 2015-02-05  Jeff Law  <law@redhat.com>
13698         PR target/17306
13699         * config/h8300/constraints.md (U): Correctly dectect
13700         "eightbit_data" memory addresses.
13701         * config/h8300/h8300.c (eightbit_constant_address_p): Also
13702         handle (const (plus (symbol_ref (x)))) where x is declared
13703         as an 8-bit data memory address.
13704         * config/h8300/h8300.md (call, call_value): Correctly detect
13705         "funcvec" functions.
13707         PR target/43264
13708         * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
13709         24 to 28 bits for the H8/300.
13711 2015-02-06  Alan Modra  <amodra@gmail.com>
13713         PR target/64876
13714         * config/rs6000/rs6000.c (chain_already_loaded): New function.
13715         (rs6000_call_aix): Use it.
13717 2015-02-05  Jan Hubicka <hubicka@ucw.cz>
13719         * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
13720         check.
13722 2015-02-05  Joern Rennecke  <joern.rennecke@embecosm.com>
13724         * config/h8300/constraints.md ("U" constraint): Use strict
13725         variant of REG_OK_FOR_BASE_P after reload has started.
13727 2015-02-04  Mantas Mikaitis  <mantas.mikaitis@arm.com>
13729         * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
13730         define to zero if !TARGET_NEON.
13731         (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
13733 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
13734             Trevor Saunders  <tsaunders@mozilla.com>
13736         PR ipa/61548
13737         * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
13739 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
13741         PR ipa/61548
13742         * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
13743         when removing varpool nodes.
13745 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
13747         PR ipa/61548
13748         * varpool.c (varpool_node::remove): Fix order of variables.
13750 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
13752         PR ipa/64686
13753         * ipa-inline.c (inline_small_functions): Fix ordering issue between
13754         speculation resolution and key updates.
13756 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
13758         * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
13759         about not letting any speculative edges unupdated.
13761 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
13763         PR gcov/64123
13764         * gcov-io.c (gcov_var): Export.
13766 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
13768         PR middle-end/64922
13769         * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
13770         edges that become speculative.
13772 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
13774         * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
13775         or DW_LANG_Fortran08.
13776         (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
13777         DW_LANG_Fortran08.
13778         (gen_compile_unit_die): Handle "GNU Fortran2003" and
13779         "GNU Fortran2008" language strings.
13780         * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
13781         * langhooks.h (lang_GNU_Fortran): New prototype.
13782         * langhooks.c (lang_GNU_Fortran): New function.
13783         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
13784         lang_GNU_Fortran.
13786 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
13788         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
13789         (RTX_OK_FOR_OLO10_P): Likewise.
13791 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
13793         * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
13795 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
13797         PR middle-end/64922
13798         * gimple.c: Include gimple-ssa.h.
13799         (maybe_remove_unused_call_args): New function.
13800         * gimple.h (maybe_remove_unused_call_args): Declare.
13801         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
13802         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
13803         * gimple-fold.c (gimple_fold_call): Likewise.
13805 2015-02-04  H.J. Lu  <hongjiu.lu@intel.com>
13807         PR rtl-optimization/64905
13808         * lra-eliminations.c (setup_can_eliminate): Clear hard frame
13809         pointer alignment if it isn't needed.
13811 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
13813         * config/aarch64/aarch64-cores.def: Add cortex-a72 and
13814         cortex-a72.cortex-a53.
13815         * config/aarch64/aarch64-tune.md: Regenerate.
13816         * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
13818 2015-02-04  Nick Clifton  <nickc@redhat.com>
13820         * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
13821         inside a MEM.
13823 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
13825         * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
13826         (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
13827         (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
13828         of DEF_BUILTIN.
13829         (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
13830         BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
13831         DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
13832         (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
13833         BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
13834         BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
13835         DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
13836         * tree-core.h (enum built_in_function): In between
13837         BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
13838         for builtins that use DEF_BUILTIN_CHKP macro.
13840 2015-02-04  Alexandre Oliva <aoliva@redhat.com>
13842         PR debug/64817
13843         * cfgexpand.c (expand_debug_expr): Compute unsignedp from
13844         operands for tcc_comparison exprs.  Fix typos.
13846         PR debug/64817
13847         * simplify-rtx.c (simplify_binary_operation_1): Simplify one
13848         of two XORs that have an intervening AND or IOR.
13850         PR debug/64817
13851         * simplify-rtx.c (simplify_binary_operation_1): Rewrite
13852         simplification of XOR of AND to not allocate new rtx before
13853         committing to a simplification.
13855 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13857         * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
13858         manual swaps in all peepholes.
13860 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13862         * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
13863         of manual swapping implementation.
13864         (aarch64_expand_vec_perm_const_1): Likewise.
13866 2015-02-04  James Greenhalgh <james.greenhalgh@arm.com>
13868         * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
13869         (generic_addrcost_table): Remove NAMED_PARAM.
13870         (cortexa57_addrcost_table): Likewise.
13871         (xgene1_addrcost_table): Likewise.
13872         (generic_regmove_table): Likewise.
13873         (cortexa53_regmove_table): Likewise.
13874         (xgene1_regmove_table): Likewise.
13875         (generic_vector_table): Likewise.
13876         (cortexa57_vector_table): Likewise.
13877         (xgene1_vector_table): Likewise.
13878         (generic_tunings): Likewise.
13879         (cortexa53_tunings): Likewise.
13880         (cortexa57_tunings): Likewise.
13881         (xgene1_tunings): Likewise.
13883 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
13885         * config/arm/arm-cores.def: Add cortex-a72 and
13886         cortex-a72.cortex-a53.
13887         * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
13888         * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
13889         * config/arm/arm-tune.md: Regenerate.
13890         * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
13891         "cortex-a72.cortex-a53".
13892         * doc/invoke.texi (ARM Options/-mtune): Likewise.
13894 2015-02-04  Nick Clifton  <nickc@redhat.com>
13896         PR target/64408
13897         * config/fr30/predicates.md (di_operand): Add SUBREG to the list
13898         of accepted codes.
13899         (nonimmediate_di_operand): Likewise.
13901         * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
13902         prefixes of known F5 using MSP430 MCUs.
13904 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13906         * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
13907         * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
13908         instead of __builtin_sqrt.
13910 2015-02-04  Ilya Enkovich  <ilya.enkovich@intel.com>
13912         * varasm.c (do_assemble_alias): Follow transparent alias
13913         chain for target.
13914         (default_assemble_visibility): Follow transparent alias
13915         chain for decl name.
13917 2015-02-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
13919         PR middle-end/62103
13920         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
13921         to compute size of referenced value in the constant case.
13923 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
13925         PR rtl-optimization/64756
13926         * cse.c (invalidate_dest): New function.
13927         (cse_insn): Use it.  If dest != SET_DEST (sets[i].rtl) and
13928         HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
13929         invalidate and do not record it.
13931 2015-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
13933         PR target/64660
13934         * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
13935         atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
13936         atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
13937         atomic_nand<mode>_soft_tcb): New insns.
13938         (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
13939         Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
13940         (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
13941         Split into atomic_not_fetchsi_hard if operands[0] is unused.
13942         (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
13943         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
13944         (atomic_fetch_not<mode>_hard): Convert to insn_and_split.  Split into
13945         atomic_not<mode>_hard if operands[0] is unused.
13946         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
13947         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
13948         if operands[0] is unused.
13949         (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split.  Split
13950         into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
13951         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
13952         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
13953         unused.
13954         (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split.  Split
13955         into atomic_not<mode>_soft_tcb if operands[0] is unused.
13956         (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
13957         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
13958         if operands[0] is unused.
13959         (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split.  Split
13960         into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
13961         (atomic_fetch_nandsi_hard): Convert to insn_and_split.  Split into
13962         atomic_nand_fetchsi_hard if operands[0] is unused.
13963         (atomic_fetch_nand<mode>_hard): Convert to insn_and_split.  Split into
13964         atomic_nand<mode>_hard if operands[0] is unused.
13965         (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split.  Split
13966         into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
13967         (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split.  Split
13968         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
13969         (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split.  Split
13970         into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
13971         (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
13972         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
13973         (atomic_not_fetch<mode>_hard): Convert to insn_and_split.  Split into
13974         atomic_not<mode>_hard if operands[0] is unused.
13975         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
13976         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
13977         unused.
13978         (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
13979         into atomic_not<mode>_soft_tcb if operands[0] is unused.
13980         (atomic_nand_fetch<mode>_hard): Convert to insn_and_split.  Split into
13981         atomic_nand<mode>_hard if operands[0] is unused.
13982         (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
13983         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
13985 2015-02-03  David Malcolm  <dmalcolm@redhat.com>
13987         PR jit/64810
13988         * Makefile.in (GCC_OBJS): Add gcc-main.o.
13989         * gcc-main.c: New file, containing "main" taken from gcc.c.
13990         * gcc.c (do_self_spec): Free decoded_options.
13991         (class driver): Move declaration to gcc.h.
13992         (main): Move declaration and implementation to new file
13993         gcc-main.c.
13994         (driver_get_configure_time_options): New function.
13995         * gcc.h (class driver): Move this declaration here, from
13996         gcc.c.
13997         (driver_get_configure_time_options): New declaration.
13999 2015-02-03  Jan Hubicka  <hubicka@ucw.cz>
14001         * ipa-inline-analysis.c (simple_edge_hints): Fix check for
14002         cross-module inlining.
14003         * cgraph.h (cgraph_node): Add flag merged.
14004         * ipa-icf.c (sem_function::merge): Maintain it.
14006 2015-02-03  Richard Sandiford  <richard.sandiford@arm.com>
14008         * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
14009         instead of OBJECT_P.
14011 2015-02-03  Eric Botcazou  <ebotcazou@adacore.com>
14013         PR target/62631
14014         * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
14015         (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
14016         * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
14017         int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
14019 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
14021         PR other/63504
14022         * combine.c (reg_n_sets_max): New variable.
14023         (can_change_dest_mode, reg_nonzero_bits_for_combine,
14024         reg_num_sign_bit_copies_for_combine, get_last_value_validate,
14025         get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
14026         (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
14027         (rest_of_handle_combine): Initialize reg_n_sets_max.
14029 2015-02-02  Jan Hubicka  <hubicka@ucw.cz>
14031         * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
14032         if some always_inline was inlined, apply changes before inlining
14033         heuristically.
14035 2015-02-02  David Malcolm  <dmalcolm@redhat.com>
14037         PR jit/64810
14038         * config/arm/arm.c (arm_option_override): Set
14039         arm_selected_arch/cpu/tune to NULL on entry.
14041 2015-02-02  Tejas Belagod  <tejas.belagod@arm.com>
14042             Andrew Pinski  <pinskia@gcc.gnu.org>
14043             Jakub Jelinek  <jakub@gcc.gnu.org>
14045         PR target/64231
14046         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
14047         integer typing for small model. Use IN_RANGE.
14049 2015-02-02  Richard Biener  <rguenther@suse.de>
14051         * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
14052         * tree-vrp.c (vrp_valueize_1): Likewise.
14054 2015-02-02  Alan Modra  <amodra@gmail.com>
14056         * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
14057         than mem for toc_restore.
14058         * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
14059         (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
14060         (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
14062 2015-02-01  David Edelsohn  <dje.gcc@gmail.com>
14064         PR target/64047
14065         * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
14066         explicit default options.
14068 2015-02-01  Jan Hubicka  <hubicka@ucw.cz>
14070         PR ipa/64872
14071         * ipa-utils.c (ipa_merge_profiles): Add release argument.
14072         * ipa-icf.c (sem_function::merge): Do not release body when merging.
14073         * ipa-utils.h (ipa_merge_profiles): Update prototype.
14075 2015-02-01  Jakub Jelinek  <jakub@redhat.com>
14077         PR debug/64817
14078         * cfgexpand.c (deep_ter_debug_map): New variable.
14079         (avoid_deep_ter_for_debug): New function.
14080         (expand_debug_expr): If TERed SSA_NAME is in
14081         deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
14082         instead of trying to expand SSA_NAME's def stmt.
14083         (expand_debug_locations): When expanding debug bind
14084         of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
14085         temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
14086         value.
14087         (pass_expand::execute): Call avoid_deep_ter_for_debug on
14088         all debug bind stmts.  Delete deep_ter_debug_map after
14089         expand_debug_location if non-NULL and clear it.
14091 2015-02-01  Oleg Endo  <olegendo@gcc.gnu.org>
14093         PR target/64851
14094         * config/sh/sync.md (atomic_fetch_notsi_hard,
14095         atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
14096         atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
14097         atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
14098         atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
14099         atomic_not_fetch<mode>_soft_imask): New insns.
14101 2015-02-01  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
14103         * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
14104         (rank_for_schedule_debug): Split from ...
14105         (rank_for_schedule): ... this.
14106         (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
14107         * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
14109 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
14111         * doc/md.texi (Machine Constraints): Alphabetize table by target.
14112         * doc/extend.texi (x86 Variable Attributes): Move section to
14113         correct alphabetization after renaming.
14114         (x86 Type Attributes): Likewise.
14115         (Target Builtins): Re-alphabetize menu.
14116         (x86 Built-in Functions): Move section to correct alphabetization
14117         after renaming.
14118         (x86 transactional memory intrinsics): Likewise.
14119         * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
14120         and x86 Windows Options in table and menu.
14121         (x86 Options): Move section to correct alphabetization after
14122         renaming.
14123         (x86 Windows Options): Likewise.
14125 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
14127         * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
14128         preferred names of the architecture and its 32- and 64-bit
14129         variants.
14130         * doc/invoke.texi: Likewise.
14131         * doc/md.texi: Likewise.
14133 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
14135         PR target/64882
14136         * config/i386/predicates.md (address_no_seg_operand): Reject
14137         non-CONST_INT_P operands in invalid mode.
14139 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
14141         * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
14142         address_operand 0.  Rename from *prefetch_prefetchwt1_<mode>.
14143         * config/i386/predicates.md (address_no_seg_operand): Call
14144         address_operand with VOIDmode.
14145         (vsib_address_operand): Ditto.
14146         (address_mpx_no_base_operand): Ditto.
14147         (address_mpx_no_index_operand): Ditto.
14149 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
14151         PR target/64688
14152         * lra-constraints.c (original_subreg_reg_mode): New.
14153         (simplify_operand_subreg): Try to simplify subreg of const.  Use
14154         original_subreg_reg_mode for it.
14155         (swap_operands): Update original_subreg_reg_mode.
14156         (curr_insn_transform): Set up original_subreg_reg_mode.
14158 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
14160         PR target/64617
14161         * lra-constraints.c (prohibited_class_reg_set_mode_p): New
14162         function.
14163         (process_alt_operands): Use it.
14164         (curr_insn_transform): Check the optional reload pseudo class is
14165         ok for the mode.
14167 2015-01-30  Joseph Myers  <joseph@codesourcery.com>
14169         * diagnostic.c (fatal_error (const char *, ...)): Remove function.
14170         * diagnostic-core.h (fatal_error (const char *, ...)): Remove
14171         prototype.
14172         * toplev.h (init_asm_output): Update comment on use of
14173         UNKNOWN_LOCATION with fatal_error.
14174         * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
14175         config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
14176         config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
14177         config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
14178         config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
14179         config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
14180         config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
14181         ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
14182         lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
14183         lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
14184         tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
14185         fatal_error changed to pass input_location as first argument.
14187 2015-01-30  Martin Liska  <mliska@suse.cz>
14189         * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
14190         in #pragma GCC diagnostic guards.
14192 2015-01-30  Richard Biener  <rguenther@suse.de>
14194         PR tree-optimization/64829
14195         * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
14196         not add a widening conversion pattern but hand off extra
14197         widenings to callers.
14198         (vect_recog_widen_mult_pattern): Handle extra widening produced
14199         by vect_handle_widen_op_by_const.
14200         (vect_recog_widen_shift_pattern): Likewise.
14201         (vect_pattern_recog_1): Remove excess vertical space in dumping.
14202         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
14203         (vect_init_vector_1): Likewise.
14204         (vect_get_vec_def_for_operand): Likewise.
14205         (vect_finish_stmt_generation): Likewise.
14206         (vectorizable_load): Likewise.
14207         (vect_analyze_stmt): Likewise.
14208         (vect_is_simple_use): Likewise.
14210 2015-01-29  Jeff Law  <law@redhat.com>
14212         * combine.c (try_combine): Fix typo in comment.
14214 2015-01-29  Segher Boessenkool  <segher@kernel.crashing.org>
14216         PR target/64580
14217         * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
14218         (rs6000_stack_info): Add assert.
14219         (rs6000_output_savres_externs): New function, split off from...
14220         (rs6000_output_function_prologue): ... here.  Do not call it for
14221         thunks.
14223 2015-01-29  Jeff Law  <law@redhat.com>
14225         PR target/15184
14226         * combine.c (try_combine): If I0 is a memory load and I3 a store
14227         to a related address, increase the "goodness" of doing a 4-insn
14228         combination with I0-I3.
14229         (make_field_assignment): Handle SUBREGs in the ior+and case.
14231 2015-01-29  Yuri Rumyantsev  <ysrumyan@gmail.com>
14233         PR tree-optimization/64746
14234         * tree-if-conv.c (mask_exists): New function.
14235         (predicate_mem_writes): Save created mask with given size for further
14236         use.
14237         (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
14238         (ifcvt_repair_bool_pattern): Collect all statements that are root
14239         of bool pattern and use iterative algorithm to remove multiple uses
14240         of predicates, display number of required iterations.
14242 2015-01-29  Richard Biener  <rguenther@suse.de>
14244         PR tree-optimization/64853
14245         * tree-vrp.c (vrp_valueize_1): Do not return anything if the
14246         stmt will get simulated again.
14247         * tree-ssa-ccp.c (valueize_op_1): Likewise.
14249 2015-01-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14251         * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
14252         return_in_pc.  Remove redundant assignments.
14253         (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
14254         (arm_expand_epilogue): Don't compare boolean with true in if condition.
14256 2015-01-29  Uros Bizjak  <ubizjak@gmail.com>
14258         * config/i386/i386.c (ix86_mode_after): Make static.
14260 2015-01-29  Richard Biener  <rguenther@suse.de>
14262         PR tree-optimization/64844
14263         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
14264         dump cost model analysis.
14265         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
14266         Do not register adjusted load/store costs here.
14268 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
14269             Uros Bizjak  <ubizjak@gmail.com>
14271         * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
14272         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
14273         using x86_use_pseudo_pic_reg.
14274         * config/i386/i386.c (ix86_conditional_register_usage): Remove
14275         support for fixed PIC register.
14276         (ix86_use_pseudo_pic_reg): Not static any more.
14278 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
14280         PR middle-end/64805
14281         * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
14282         to avoid error in cgraph node verification.
14284 2015-01-29  Marek Polacek  <polacek@redhat.com>
14286         * doc/standards.texi: Reflect that the default for C is gnu11.
14288 2015-01-29  Kaz Kojima  <kkojima@gcc.gnu.org>
14290         PR target/64761
14291         * reorg.c (switch_text_sections_between_p): New function.
14292         (relax_delay_slots): Call it when testing if the jump insn
14293         is removable.  Use targetm.can_follow_jump when testing if
14294         the conditional branch can follow an unconditional jump.
14296 2015-01-27  Caroline Tice  <cmtice@google.com>
14298         Committing VTV Cywin/Ming patch for Patrick Wollgast
14299         * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
14300         if -fvtable-verify=preinit/std is used.
14301         * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
14302         * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
14303         * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
14304         if -fvtable-verify=preinit/std is used.
14305         * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
14306         * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
14307         if -fvtable-verify=preinit/std is used.
14308         * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
14309         * config/i386/mingw32.h (LIB_SPEC): Likewise.
14310         * varasm.c (assemble_variable): Add code to properly set the comdat
14311         section and name for the .vtable_map_vars section in case the
14312         target is PE or COFF.
14314 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
14316         PR ipa/64801
14317         * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
14318         make sane BB profile.
14319         (cgraph_node::expand_thunk): Make sane BB profile.
14320         (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
14321         * cgraph.h (init_lowered_empty_function): Update prototype.
14322         * config/i386/i386.c (make_resolver_func): Update call.
14323         * predict.c (gate): Disable branch prediction pass if
14324         profile is already there.
14326 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
14328         * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
14329         * opth-gen.awk: Likewise.
14330         * common.opt: Mark flag_fp_contract_mode as Optimization.
14332 2015-01-29  Bernd Edlinger  <bernd.edlinger@hotmail.de>
14334         * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
14335         * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
14337 2015-01-28  Oleg Endo  <olegendo@gcc.gnu.org>
14339         PR target/64659
14340         * config/sh/predicates.md (atomic_arith_operand,
14341         atomic_logical_operand): Remove.
14342         * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
14343         (atomic_arith_operand_0): New predicate.
14344         (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
14345         Use atomic_arith_operand_0 for input values.
14346         (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
14347         atomic_compare_and_swap<mode>_soft_gusa,
14348         atomic_compare_and_swap<mode>_soft_tcb,
14349         atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
14350         arith_reg_operand instead of register_operand.
14351         (atomic_exchange<mode>): Use arith_reg_dest for output value.  Use
14352         atomic_arith_operand_0 for newval input.
14353         (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
14354         atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
14355         atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
14356         arith_reg_operand instead of register_operand.
14357         (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
14358         fetchop_predicate_1, fetchop_constraint_1_llcs,
14359         fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
14360         fetchop_constraint_1_imask): New code iterator attributes.
14361         (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
14362         register_operand.  Use fetchop_predicate_1.
14363         (atomic_fetch_<fetchop_name>si_hard,
14364         atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
14365         register_operand.  Use fetchop_predicate_1, fetchop_constraint_1_llcs.
14366         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
14367         and arith_reg_operand instead of register_operand.  Use
14368         fetchop_predicate_1, fetchop_constraint_1_gusa.
14369         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
14370         and arith_reg_operand instead of register_operand.  Use
14371         fetchop_predicate_1, fetchop_constraint_1_tcb.  Adjust asm sequence
14372         to allow R0 usage.
14373         (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
14374         and arith_reg_operand instead of register_operand.  Use
14375         fetchop_predicate_1, fetchop_constraint_1_imask.  Adjust asm sequence
14376         to allow R0 usage.
14377         (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
14378         register_operand.  Use atomic_logical_operand_1.
14379         (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
14380         atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
14381         arith_reg_operand instead of register_operand.
14382         (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
14383         Use arith_reg_dest and arith_reg_operand instead of register_operand.
14384         Use logical_operand and rK08.  Adjust asm sequence to allow R0 usage.
14385         (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
14386         register_operand.  Use fetchop_predicate_1.
14387         (atomic_<fetchop_name>_fetchsi_hard,
14388         atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
14389         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
14390         fetchop_constraint_1_llcs.
14391         (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
14392         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
14393         fetchop_constraint_1_gusa.
14394         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
14395         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
14396         fetchop_constraint_1_tcb.  Adjust asm sequence to allow R0 usage.
14397         (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
14398         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
14399         fetchop_constraint_1_imask.  Adjust asm sequence to allow R0 usage.
14400         (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
14401         register_operand.  Use atomic_logical_operand_1.
14402         (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
14403         atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
14404         arith_reg_operand instead of register_operand.
14405         (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
14406         arith_reg_operand instead of register_operand.  Use logical_operand
14407         and K08.  Adjust asm sequence to allow R0 usage.
14408         (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
14409         arith_reg_operand instead of register_operand.  Use logical_operand
14410         and K08.
14412 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
14414         PR other/63504
14415         * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
14416         Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
14417         (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
14418         only get_full_len HOST_WIDE_INTs from get_val () array rather than
14419         all bits in *val_wide.
14421 2015-01-28  Jan Hubicka  <hubicka@ucw.cz>
14423         * varpool.c (tls_model_names): Fix names.
14424         (varpool_node::dump): Dump tls- prefix for tls models.
14426 2015-01-28  Thomas Schwinge  <thomas@codesourcery.com>
14427             Bernd Schmidt  <bernds@codesourcery.com>
14428             Nathan Sidwell  <nathan@codesourcery.com>
14430         * config/nvptx/mkoffload.c: New file.
14431         * config/nvptx/t-nvptx: Add build rules for it.
14432         * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
14433         (extra_programs): Add mkoffload.
14434         * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
14435         function.
14436         (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
14438 2015-01-28  Yuri Rumyantsev  <ysrumyan@gmail.com>
14440         PR middle-end/64809
14441         * cfgexpand.c (reorder_operands): Skip debug gimples.
14443 2015-01-28  Ilya Enkovich  <ilya.enkovich@intel.com>
14445         PR tree-optimization/64277
14446         * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
14447         range info when possible to refine estimation.
14449 2015-01-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
14451         PR tree-optimization/64718
14452         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
14453         be a 16bit unsigned integer when n->range is 16.
14454         (bswap_replace): Convert src to that type if necessary for all bswap
14455         sizes.  Fix rotation right notation in nearby comment.  Use bswap_type
14456         set in pass_optimize_bswap::execute ().
14458 2015-01-28  James Greenhalgh  <james.greenhalgh@arm.com>
14460         * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
14461         * config/aarch64/aarch64-simd-builtins.def (abs): Split by
14462         integer and floating point variants.
14463         * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
14465 2015-01-28  Robert Suchanek  <robert.suchanek@imgtec.com>
14467         * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
14468         for all vector modes.
14470 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
14472         PR bootstrap/64612
14473         * doc/sourcebuild.texi (comdat_group): Document.
14475 2015-01-28  Terry Guo  <terry.guo@arm.com>
14477         * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
14479 2015-01-27  David Malcolm  <dmalcolm@redhat.com>
14481         * toplev.c (print_version): Add param "show_global_state", and
14482         only print GGC and plugin information if it is true.
14483         (init_asm_output): Pass in "true" for the new param when calling
14484         print_version.
14485         (process_options): Likewise.
14486         (toplev::main): Likewise.
14487         * toplev.h (print_version): Add new param to decl.
14489 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
14491         PR ipa/60871
14492         PR ipa/64139
14493         * tree.c (lookup_binfo_at_offset): New function.
14494         (get_binfo_at_offset): Use it.
14496 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
14498         PR ipa/64282
14499         * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
14500         on vtable being vtable.
14502 2015-01-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
14504         * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
14505         * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
14506         -mhotpatch= option.
14507         * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
14508         -mno-hotpatch options.  Change syntax of -mhotpatch= option.
14509         * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
14510         Renamed.
14511         (s390_hotpatch_trampoline_halfwords_max): Renamed.
14512         (s390_hotpatch_hw_max): New name.
14513         (s390_hotpatch_trampoline_halfwords): Renamed.
14514         (s390_hotpatch_hw_before_label): New name.
14515         (get_hotpatch_attribute): Removed.
14516         (s390_hotpatch_hw_after_label): New name.
14517         (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
14518         attribute.
14519         (s390_attribute_table): Ditto.
14520         (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
14521         (s390_function_num_hotpatch_hw): New name.
14522         Remove special handling of inline functions and hotpatching.
14523         Return number of nops before and after the function label.
14524         (s390_can_inline_p): Removed.
14525         (s390_asm_output_function_label): Emit a configurable number of nops
14526         after the function label.
14527         (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
14528         (TARGET_CAN_INLINE_P) Removed.
14529         (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
14531 2015-01-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14532             Jiong Wang  <jiong.wang@arm.com>
14534         * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
14535         of scratch reg.
14536         (cb<optab><mode>1): Likewise.
14537         * config/aarch64/iterators.md (bcond): New define_code_attr.
14539 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14541         * config/s390/s390.c (s390_memory_move_cost): Increase costs for
14542         memory accesses.
14544 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14546         * config/s390/s390.c (s390_register_move_cost): Increase costs for
14547         FPR->GPR moves.
14549 2015-01-27  Richard Biener  <rguenther@suse.de>
14551         * tree-vrp.c (update_value_range): Intersect the range with
14552         old recorded SSA name range information.
14554 2015-01-27  Nick Clifton  <nickc@redhat.com>
14556         * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
14557         BC, DE and HL registers directly, not via AX.
14558         When decrementing the stack pointer by a large amount, transfer SP
14559         into AX and perform the subtraction there.
14560         (rl78_expand_epilogue): Perform the inverse of the above
14561         enhancements.
14563 2015-01-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14565         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
14567 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
14568             Yury Gribov  <y.gribov@samsung.com>
14570         PR ubsan/64741
14571         * ubsan.c (ubsan_source_location): Refactor code.
14572         (ubsan_type_descriptor): Update type size. Refactor code.
14574 2015-01-27  Richard Biener  <rguenther@suse.de>
14576         PR tree-optimization/56273
14577         PR tree-optimization/59124
14578         PR tree-optimization/64277
14579         * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
14580         from the first VRP pass.
14582 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
14584         PR ipa/64776
14585         * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
14586         handle the first argument in the same loop as all the other arguments.
14588         PR rtl-optimization/61058
14589         * jump.c (cleanup_barriers): Update basic block boundaries
14590         if BLOCK_FOR_INSN is non-NULL on PREV.
14592 2015-01-27  Ilya Enkovich  <ilya.enkovich@intel.com>
14594         * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
14595         bounds narrowing, already instrumented calls and calls to
14596         not instrumentable functions.
14598 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
14600         PR tree-optimization/64807
14601         * wide-int.cc (wi::divmod_internal): Clear
14602         b_dividend[dividend_blocks_needed].
14604 2015-01-26  DJ Delorie  <dj@redhat.com>
14606         * config/rl78/rl78.c (move_elim_pass): Don't optimize away
14607         volatile memory references.
14609 2015-01-26  Oleg Endo  <olegendo@gcc.gnu.org>
14611         PR target/49263
14612         * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
14613         remove_insn.
14614         * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
14615         shifts if it already fits into K08.
14617 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
14619         PR ipa/64730
14620         * ipa-inline.c (inline_small_functions): Print "unknown" even
14621         if edge->call_stmt is non-NULL, but has builtins or unknown
14622         location.
14624         PR middle-end/64421
14625         * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
14626         with asterisk, skip the first character.
14628 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
14630         PR target/64806
14631         * config/i386/i386 (feature_priority): Revert the last P_POPCNT
14632         order change.
14634 2015-01-26  Uros Bizjak  <ubizjak@gmail.com>
14636         PR target/64795
14637         * config/i386/i386.md (*movdi_internal): Also check operand 0
14638         to determine TYPE_LEA operand.
14639         (*movsi_internal): Ditto.
14641 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
14643         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
14644         OPTION_MASK_QUAD_MEMORY_ATOMIC.
14646 2015-01-26  Renlin Li  <renlin.li@arm.com>
14648         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
14649         the comment.
14650         * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
14651         for higher part.
14653 2015-01-26  Richard Biener  <rguenther@suse.de>
14655         PR middle-end/64764
14656         * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
14657         combining two BIT_AND_EXPR predicates.
14659 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
14661         PR bootstrap/64754
14662         * tree-ssa-structalias.c (new_var_info): Initialize ruid.
14664 2015-01-26  Terry Guo  <terry.guo@arm.com>
14666         * config/arm/arm.c (arm_file_start): Update the assignment of
14667         Tag_ABI_HardFP_use.
14669 2015-01-25  James Greenhalgh  <james.greenhalgh@arm.com>
14671         * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
14672         pipeline model.
14673         config/arm/arm.md: Include the new Cortex-A57 model.
14674         (generic_sched): Don't use generic_sched when tuning for
14675         Cortex-A57.
14677 2015-01-25  Allan Sandfeld Jensen  <sandfeld@kde.org>
14678             Uros Bizjak  <ubizjak@gmail.com>
14680         * config/i386/i386.c (get_builtin_code_for_version): Add
14681         support for BMI and BMI2 multiversion functions.
14683 2015-01-25  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
14685         * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
14686         (extract_bit_field): Likewise.
14687         (extract_low_bits): Likewise.
14688         (expand_mult): Likewise.
14689         (expand_mult_highpart_adjust): Likewise.
14691 2015-01-24  H.J. Lu  <hongjiu.lu@intel.com>
14693         * config/i386/driver-i386.c (host_detect_local_cpu): Check new
14694         Silvermont, Haswell, Broadwell and Knights Landing model numbers.
14695         * config/i386/i386.c (processor_model): Add
14696         M_INTEL_COREI7_BROADWELL.
14697         (arch_names_table): Add "broadwell".
14699 2015-01-24  Oleg Endo  <olegendo@gcc.gnu.org>
14701         PR target/49263
14702         PR target/53987
14703         PR target/64345
14704         PR target/59533
14705         PR target/52933
14706         PR target/54236
14707         PR target/51244
14708         * config/sh/sh-protos.h
14709         (sh_extending_set_of_reg::can_use_as_unextended_reg,
14710         sh_extending_set_of_reg::use_as_unextended_reg,
14711         sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
14712         sh_is_movrt_insn, sh_insn_operands_modified_between_p,
14713         sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
14714         sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
14715         (sh_treg_insns): New class.
14716         * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
14717         (scope_counter): New class.
14718         (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
14719         sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
14720         sh_extending_set_of_reg::can_use_as_unextended_reg,
14721         sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
14722         sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
14723         sh_split_treg_set_expr): New functions.
14724         (addsubcosts): Handle treg_set_expr.
14725         (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
14726         (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
14727         (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
14728         (sh_insn_operands_modified_between_p): Make non-static.
14729         * config/sh/predicates.md (zero_extend_movu_operand): Allow
14730         simple_mem_operand in addition to displacement_mem_operand.
14731         (zero_extend_operand): Don't allow zero_extend_movu_operand.
14732         (treg_set_expr, treg_set_expr_not_const01,
14733         arith_reg_or_treg_set_expr): New predicates.
14734         * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
14735         arith_or_int_operand instead of logical_operand.  Convert to
14736         insn_and_split.  Try to optimize constant operand in splitter.
14737         (tsthi_t, tstqi_t): Fold into *tst<mode>_t.  Convert to insn_and_split.
14738         (*tstqi_t_zero): Delete.
14739         (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
14740         (tstsi_t_and_not): Delete.
14741         (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
14742         Convert to insn_and_split.
14743         (unnamed split, tstsi_t_zero_extract_xor,
14744         tstsi_t_zero_extract_subreg_xor_little,
14745         tstsi_t_zero_extract_subreg_xor_big): Delete.
14746         (*tstsi_t_shift_mask): New insn_and_split.
14747         (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
14748         to recombine with surrounding insns when splitting.
14749         (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
14750         (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
14751         (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
14752         *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
14753         (*cbranch_div0s: Delete.
14754         (*addc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
14755         Try to recombine with surrounding insns when splitting.  Add operand
14756         order variants.
14757         (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
14758         (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
14759         *addc_r_r_msb, *addc_2r_msb): Delete.
14760         (*addc_2r_lsb): Rename to *addc_2r_t.  Use treg_set_expr.  Add operand
14761         order variant.
14762         (*addc_negreg_t): New insn_and_split.
14763         (*subc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
14764         Try to recombine with surrounding insns when splitting.
14765         Add operand order variants.
14766         (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
14767         insn_and_split patterns.
14768         (*rotcr): Use arith_reg_or_treg_set_expr.  Try to recombine with
14769         surrounding insns when splitting.
14770         (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
14771         (*rotcl): Likewise.  Add zero_extract variant.
14772         (*ashrsi2_31): New insn_and_split.
14773         (*negc): Convert to insn_and_split.  Use treg_set_expr.
14774         (*zero_extend<mode>si2_disp_mem): Update comment.
14775         (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
14776         condition.
14777         (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr.  Try to recombine
14778         with surrounding insns when splitting.
14779         (any_treg_expr_to_reg): New insn_and_split.
14780         (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
14781         *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
14782         *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
14783         *zero_extract_2): New single bit zero extract patterns.
14784         (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
14785         (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
14786         *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
14787         *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
14788         set destination.
14789         (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
14790         register_operand for set source.
14792 2015-01-23  Jan Hubicka  <hubicka@ucw.cz>
14794         * i386.opt (prefetch_sse): New targetsave.
14795         * i386.c (ix86_function_specific_save): Save prefetch_sse.
14796         (ix86_function_specific_restore): Restore prefetch_sse and initialize
14797         ix86_cost/ix86_tune_cost.
14799 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
14801         * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
14802         Support the JIT by using 0 as the language type.
14804 2015-01-23  Vladimir Makarov  <vmakarov@redhat.com>
14806         PR target/64317
14807         * lra-lives.c (make_hard_regno_born): Add parameter.  Don't make
14808         REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
14809         (mark_regno_live, process_bb_lives): Pass new parameter value to
14810         make_hard_regno_born.
14812 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
14814         PR rtl-optimization/63637
14815         PR rtl-optimization/60663
14816         * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
14817         if elt->cost is MAX_COST for ASM_OPERANDS.
14818         (find_sets_in_insn): Fix up comment typo.
14819         (cse_insn): Don't set src_volatile for all non-volatile
14820         ASM_OPERANDS in PARALLELs, but just those with multiple outputs
14821         or with "memory" clobber.  Set elt->cost to MAX_COST
14822         for ASM_OPERANDS in PARALLEL.  Set src_elt->cost to MAX_COST
14823         if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
14825 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
14827         * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
14828         alternative 1.
14830 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
14832         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
14833         libgcc/config/i386/elf-lib.h.
14835 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
14837         PR driver/64737
14838         * gcc.c (print_configuration): Don't print a blank line at the end
14839         here...
14840         (run_attempt): ... but here unstead.
14842         PR middle-end/64734
14843         * omp-low.c (scan_sharing_clauses): Don't ignore
14844         OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
14845         on target data/update constructs.
14847 2015-01-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
14849         PR target/50928
14850         * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
14851         (DEBUG_RELOAD): Removed define.
14852         (m32c_limit_reload_class): Enable traces with if DEBUG0.
14853         (m32c_function_arg): Added a type cast.
14854         (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
14855         * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
14856         * config/m32c/bitops.md (andqi3_16): Likewise.
14857         * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
14858         (push_a01_l): Likewise.
14860 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
14862         PR jit/64721
14863         * main.c (main): Construct toplev instances with init_signals=true.
14864         * toplev.c (general_init): Add param "init_signals", and use it to
14865         conditionalize the calls to signal and host_hooks.extra_signals.
14866         (toplev::toplev): Add param "init_signals".
14867         (toplev::main): When invoking general_init, pass m_init_signals
14868         to control whether signal-handlers are installed.
14869         * toplev.h (toplev::toplev): Add param "init_signals".
14870         (toplev::m_init_signals): New field.
14872 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
14874         PR jit/64722
14875         * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
14876         NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
14877         latter may be affected by the former (e.g. on i686).
14879 2015-01-23  Martin Liska  <mliska@suse.cz>
14881         * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
14882         false positive during profiledbootstrap.
14884 2015-01-23  Tom de Vries  <tom@codesourcery.com>
14886         PR libgomp/64672
14887         * lto-opts.c (lto_write_options): Output non-explicit conservative
14888         -fno-openacc.
14889         * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
14890         (append_compiler_options): Pass -fopenacc through.
14892 2015-01-23  Tom de Vries  <tom@codesourcery.com>
14894         PR libgomp/64707
14895         * lto-opts.c (lto_write_options): Output non-explicit conservative
14896         -fno-openmp.
14897         * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
14898         (append_compiler_options): Pass -fopenmp through.
14900 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
14902         PR debug/64511
14903         * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
14904         GTY markup.
14906         * diagnostic-core.h (internal_error_no_backtrace): New prototype.
14907         * diagnostic.def (DK_ICE_NOBT): New kind.
14908         * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
14909         like DK_ICE, but never print backtrace.
14910         (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
14911         (internal_error_no_backtrace): New function.
14912         * gcc.c (execute): Use internal_error_no_backtrace instead of
14913         internal_error.
14915 2015-01-22  Jeff Law  <law@redhat.com>
14917         PR target/52076
14918         * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
14919         improve code density for small immediate to memory case.
14920         (insv): Better handle bitfield assignments when the field is
14921         being set to all ones.
14922         * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
14923         operand predicate.
14925 2015-01-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14926             Jakub Jelinek  <jakub@redhat.com>
14928         PR middle-end/64729
14929         * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
14930         for !TARGET_LIBC_PROVIDES_SSP version and
14931         -fstack-protector-{all,strong,explicit} otherwise.
14932         * config/freebsd.h (LINK_SSP_SPEC): Handle
14933         -fstack-protector-{strong,explicit}.
14935 2015-01-22  Jan Hubicka  <hubicka@ucw.cz>
14936             H.J. Lu  <hongjiu.lu@intel.com>
14938         PR ipa/64694
14939         * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
14940         heap.
14942 2015-01-22  Wei Mi  <wmi@google.com>
14944         PR rtl-optimization/64557
14945         * dse.c (record_store): Call get_addr for mem_addr.
14946         (check_mem_read_rtx): Likewise.
14948 2015-01-22  Eric Botcazou  <ebotcazou@adacore.com>
14950         * fold-const.c (const_binop): Add early return for non-tcc_binary.
14952 2015-01-22  Chen Gang  <gang.chen.5i5j@gmail.com>
14954         * toplev.c (init_local_tick): Process the failure when read
14955         fails for random_seed.
14957         * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
14958         'pretty_name' to avoid memory overflow.
14960 2015-01-22  Richard Biener  <rguenther@suse.de>
14962         PR middle-end/64728
14963         * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
14964         abnormal coalescing on undefined SSA names.
14966 2015-22-01  Uros Bizjak  <ubizjak@gmail.com>
14968         PR target/64688
14969         PR target/64477
14970         * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
14971         for alternative 3.
14972         (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
14974 2015-01-22  Trevor Saunders  <tsaunders@mozilla.com>
14976         PR middle-end/63325
14977         * fold-const.c (fold_checksum_tree): Don't include value of
14978         expr->decl_with_vis.symtab_node in the checksum.
14980 2015-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14982         * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
14984 2015-01-22  Max Ostapenko  <m.ostapenko@partner.samsung.com>
14986         PR driver/64690
14987         * gcc.c (insert_comments): New function.
14988         (try_generate_repro): Call it.
14989         (append_text): Removed.
14991 2015-01-22  Richard Biener  <rguenther@suse.de>
14993         * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
14994         with IL incompatible options.  Properly honor user optimize
14995         attributes.
14997 2015-01-21  Segher Boessenkool  <segher@kernel.crashing.org>
14999         PR rtl-optimization/64682
15000         * combine.c (distribute_notes): When moving a death note for
15001         a register that is set in the new I2, make sure to put it
15002         before that new I2.
15004 2015-01-21  David Edelsohn  <dje.gcc@gmail.com>
15006         * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
15007         not TARGET_DEFAULT.
15009 2015-01-21  Jakub Jelinek  <jakub@redhat.com>
15011         PR debug/64511
15012         * simplify-rtx.c (simplify_relational_operation_1): Don't try to
15013         optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
15014         into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
15016         PR sanitizer/64706
15017         * doc/invoke.texi (-fsanitize=vptr): Document.
15019         PR rtl-optimization/62078
15020         * dse.c: Include cfgcleanup.h.
15021         (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
15022         anything call purge_all_dead_edges and cleanup_cfg at the end
15023         of the pass.
15025 2015-01-21  Jan Hubicka  <hubicka@ucw.cz>
15027         * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
15028         edges.
15030 2015-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
15032         * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
15033         decl attribute.
15035 2015-01-21  David Sherwood  <david.sherwood@arm.com>
15036             Tejas Belagod <Tejas.Belagod@arm.com>
15038         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
15039         * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
15040         * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
15041         Removed.
15043 2015-01-21  David Sherwood  <david.sherwood@arm.com>
15044             Tejas Belagod <Tejas.Belagod@arm.com>
15046         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
15047         (aarch64_reverse_mask): New decls.
15048         * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
15049         (insn_count): New mode_attr.
15050         * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
15051         (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
15052         (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
15053         (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
15054         (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
15055         (aarch64_simd_st4): New patterns.
15056         * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
15057         (aarch64_reverse_mask): New functions.
15059 2015-01-21  Richard Sandiford  <richard.sandiford@arm.com>
15061         * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
15062         Declare.
15063         * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
15064         addressing modes for BE.
15065         (aarch64_print_operand): Add 'R' specifier.
15066         (aarch64_simd_disambiguate_copy): Delete.
15067         (aarch64_simd_emit_reg_reg_move): New function.
15068         * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
15069         in define_splits for structural moves.
15070         (mov<mode>): Use less restrictive predicates.
15071         (*aarch64_mov<mode>): Simplify and only allow for LE.
15072         (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
15074 2015-01-21  Alan Hayward  <alan.hayward@arm.com>
15076         * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
15078 2015-01-21  Richard Henderson  <rth@redhat.com>
15080         PR target/64669
15081         * ccmp.c (used_in_cond_stmt_p): Remove.
15082         (expand_ccmp_expr): Don't use it.
15084 2015-01-21  Nick Clifton  <nickc@redhat.com>
15086         * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
15087         PARALLELs.
15089 2015-01-21  Richard Biener  <rguenther@suse.de>
15091         PR middle-end/64313
15092         * tree-core.h (builtin_info, builtin_info_type): Turn from
15093         an object with two arrays into an array of an object with
15094         decl and two flags, implicit_p and declared_p.
15095         * tree.h (builtin_decl_explicit, builtin_decl_implicit,
15096         set_builtin_decl, set_builtin_decl_implicit_p,
15097         builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
15098         (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
15099         * builtins.c (builtin_info): Adjust.
15100         * gimplify.c (gimplify_addr_expr): References to builtins
15101         that have been declared by the user makes them eligible for
15102         use by the compiler.  Call set_builtin_decl_implicit_p on them.
15104 2015-01-20  Jeff Law  <law@redhat.com>
15106         PR target/59946
15107         * config/m68k/m68k.md (Comparison expanders and patterns): Do not
15108         allow pc-relative addresses in operand predicates or constraints.
15110 2015-01-21  Bin Cheng  <bin.cheng@arm.com>
15112         * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
15113         neon on aarch32 processors for stringops.
15115 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
15117         PR ipa/63576
15118         * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
15120 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
15122         PR lto/45375
15123         * ipa-inline.c: Include lto-streamer.h
15124         (report_inline_failed_reason): Output source file differences and
15125         flags on optimization/target node mismatch.
15126         (can_inline_edge_p): Consider caller to be the outer inline function;
15127         be less restrictive about matching opimize and optimize_size attributes.
15128         (inline_account_function_p): Break out from ...
15129         (inline_small_functions): ... here.
15130         * ipa-inline-transform.c (clone_inlined_nodes): Use
15131         inline_account_function_p.
15132         (inline_call): Use optimize attribution; use inline_account_function_p.
15133         (inline_transform): Use opt_for_fn.
15134         * ipa-inline.h (inline_account_function_p): Declare.
15136 2015-01-20  Jakub Jelinek  <jakub@redhat.com>
15138         PR debug/64663
15139         * dwarf2out.c (decl_piece_node): Don't put bitsize into
15140         mode if bitsize <= 0.
15141         (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
15142         dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
15143         sizes and positions.
15145 2015-01-20  Chung-Lin Tang  <cltang@codesourcery.com>
15147         * config/nios2/nios2.c (nios2_asm_file_end): Implement
15148         TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
15149         needed.
15150         (TARGET_ASM_FILE_END): Define.
15152 2015-01-20  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
15154         * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
15155         (struct tune_params): Use the enum.
15156         * arm.c (arm_*_tune): Update.
15157         (arm_option_override): Update.
15159 2015-01-20  Richard Biener  <rguenther@suse.de>
15161         PR ipa/64684
15162         * ipa-reference.c (add_static_var): Inline ...
15163         (analyze_function): ... here after splitting out from ...
15164         (is_proper_for_analysis): ... this.
15166 2015-01-20  Matthew Wahab  <matthew.wahab@arm.com>
15168         PR target/64149
15169         * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
15170         * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
15171         replace the conditional with it's true branch.
15172         * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
15173         (arm_lra_p): Remove.
15175 2015-01-20  Eric Botcazou  <ebotcazou@adacore.com>
15177         * config/visium/visium.h (LIB_SPEC): Adjust in default case.
15179 2015-01-20  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
15181         * config/tilegx/mul-tables.c: Move symtab.h include after
15182         coretypes.h include.
15183         * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
15184         vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
15185         flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
15186         wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
15187         explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
15189 2015-01-20  Igor Zamyatin  <igor.zamyatin@intel.com>
15191         PR bootstrap/64676
15192         Revert:
15193         2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
15195         PR rtl-optimization/64081
15196         * loop-iv.c (def_pred_latch_p): New function.
15197         (latch_dominating_def): Allow specific cases with non-single
15198         definitions.
15199         (iv_get_reaching_def): Likewise.
15200         (check_complex_exit_p): New function.
15201         (check_simple_exit): Use check_complex_exit_p to allow certain cases
15202         with exits not executing on any iteration.
15204 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
15206         PR lto/45375
15207         * i386.c (ix86_option_override_internal): Use ix86_tune_cost
15208         to set branch cost.
15210 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
15212         PR lto/45375
15213         * i386.c (gate): Check flag_expensive_optimizations and
15214         optimize_size.
15215         (ix86_option_override_internal): Drop optimize_size condition
15216         on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
15217         MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
15218         MASK_PREFER_AVX128.
15219         (ix86_avx256_split_vector_move_misalign,
15220         ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
15221         * sse.md (all uses of TARGET_PREFER_AVX128): Add
15222         optimize_insn_for_speed_p check.
15224 2015-01-19  Matthew Fortune  <matthew.fortune@imgtec.com>
15226         * config/mips/mips.h (FP_ASM_SPEC): New define.
15227         (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
15228         instead.
15230 2015-01-19  Oleg Endo  <olegendo@gcc.gnu.org>
15232         PR target/53988
15233         * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
15234         nullptr for insn when reaching the first insn.
15235         * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
15236         (sh_insn_operands_modified_between_p): Add nullptr check.
15237         (sh_find_extending_set_of_reg): Fix log message.  Don't accept
15238         sign extending mem load if the insn contains any UNSPEC or
15239         UNSPEC_VOLATILE.
15241 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
15243         * params.def (inline-unit-growth): Drop to 15%.
15244         * invoke.texi (inline-unit-growth): Document change.
15246 2015-01-19  Martin Liska  <mliska@suse.cz>
15248         PR ipa/64668
15249         * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
15250         function for second argument of OBJ_TYPE_REF.
15252 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
15254         PR ipa/64218
15255         * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
15256         whether function is an alias.
15258 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
15260         * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
15261         cases.
15263 2015-01-19  Vladimir Makarov  <vmakarov@redhat.com>
15265         PR rtl-optimization/64671
15266         * lra-remat.c (operand_to_remat): Don't consider jump and call
15267         insns.
15269 2015-01-19  David Edelsohn  <dje.gcc@gmail.com>
15271         PR target/59828
15272         * config/rs6000/default64.h: Include rs6000-cpus.def.
15273         (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
15274         (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
15275         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
15276         and POWER8.
15277         * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
15278         POWER8.
15279         * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
15280         pseudo-op to specify assembler dialect.
15282 2015-01-19  Martin Liska  <mliska@suse.cz>
15284         PR ipa/64664
15285         * ipa-icf.c (sem_item_optimizer::filter_removed_items):
15286         Handle safe potentially removed nodes during filtering.
15288 2015-01-19  Martin Liska  <mliska@suse.cz>
15290         * doc/extend.texi (no_icf): Add new attribute description.
15291         * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
15292         where the pass attempts to merge a function with no_icf attribute.
15294 2015-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
15296         PR target/64532
15297         * doc/md.texi (ARM Options): Document register constraints.
15299 2015-01-19  Jiong Wang  <jiong.wang@arm.com>
15300             Andrew Pinski  <apinski@cavium.com>
15302         PR target/64304
15303         * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
15304         (ashl<mode>3): Don't expand if operands[2] is not constant.
15306 2015-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15308         PR target/64448
15309         * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
15310         Match xor-and-xor RTL pattern.
15312 2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
15314         PR rtl-optimization/64081
15315         * loop-iv.c (def_pred_latch_p): New function.
15316         (latch_dominating_def): Allow specific cases with non-single
15317         definitions.
15318         (iv_get_reaching_def): Likewise.
15319         (check_complex_exit_p): New function.
15320         (check_simple_exit): Use check_complex_exit_p to allow certain cases
15321         with exits not executing on any iteration.
15323 2015-01-19  Jakub Jelinek  <jakub@redhat.com>
15325         * common.opt (fgraphite): Fix a typo.
15327 2015-01-19  Felix Yang  <felix.yang@huawei.com>
15329         * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
15330         pattern.
15331         * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
15332         uminp, smax_nanp, smin_nanp): New builtins.
15333         * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
15334         vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
15335         vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
15336         vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
15337         vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
15338         vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
15339         vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
15340         vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
15341         vpminnms_f32): Rewrite using builtin functions.
15343 2015-01-19  Thomas Schwinge  <thomas@codesourcery.com>
15345         PR libgomp/64625
15346         * omp-low.c (offload_symbol_decl): Remove variable.
15347         (get_offload_symbol_decl): Remove function.
15348         (expand_omp_target): For BUILT_IN_GOMP_TARGET,
15349         BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
15350         instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
15351         BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
15352         BUILT_IN_GOACC_UPDATE don't pass it at all.
15354 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
15356         * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
15357         callers.
15359 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
15361         * ipa-chkp.c (chkp_produce_thunks): Add early param
15362         to split thunks production into two passes.  Keep
15363         'always_inline' function bodies after the first pass.
15364         (pass_data_ipa_chkp_early_produce_thunks): New.
15365         (pass_ipa_chkp_early_produce_thunks): New.
15366         (pass_ipa_chkp_produce_thunks::execute): Adjust to new
15367         chkp_produce_thunks signature.
15368         (make_pass_ipa_chkp_early_produce_thunks): New.
15369         * passes.def (pass_ipa_chkp_early_produce_thunks): New.
15370         (pass_ipa_chkp_produce_thunks): Move after local optimizations.
15371         * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
15373 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
15375         * cgraph.c (cgraph_node::dump): Dump profile flags.
15377 2015-01-18  Oleg Endo  <olegendo@gcc.gnu.org>
15379         PR target/64652
15380         * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
15381         reg appear first in the parallel.
15383 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
15385         * ipa-reference.c (set_reference_optimization_summary,
15386         ipa_reference_get_not_written_global): Do nothing if ipa-reference is
15387         disabled.
15388         (ignore_module_statics): New static var.
15389         (propagate_bits): If ipa-reference is disabled, do not look into local
15390         properties.
15391         (analyze_function): Disable analysis when ipa_reference is disabled.
15392         (generate_summary): Do not dump when reference is disabled;
15393         collect vars accessed from functions with ipa-reference disabled.
15394         (get_read_write_all_from_node): When ipa-reference is disabled, use the
15395         node flags.
15396         (gate): Enable for LTO.
15397         (ignore_edge_p): New function.
15398         (propagate): Skip functions w/o ipa-reference analysis.
15399         * optc-save-gen.awk: Handle optimize_debug correctly.
15400         * opth-gen.awk: Likewise.
15401         * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
15402         fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
15403         fira-share-save-slots, fira-share-spill-slots,
15404         fmodulo-sched-allow-regmoves, fpartial-inlining,
15405         sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
15406         ftracer, ftree-parallelize-loops, fassociative-math,
15407         freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
15408         Optimization
15409         (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
15410         ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
15411         Optimization.
15412         * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
15413         Fix for IPA.
15415 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
15417         PR ipa/64378
15418         * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
15419         flag correctly.
15420         * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
15422 2015-01-18  Sandra Loosemore  <sandra@codesourcery.com>
15424         * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
15425         Remove duplicate option listings.
15427 2015-01-18  Felix Yang  <felix.yang@huawei.com>
15429         * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
15430         (autofdo_source_profile::get_callsite_total_count,
15431         function_instance::get_function_instance_by_decl,
15432         string_table::get_index, string_table::get_index_by_decl,
15433         afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
15434         Fix comment typos. Reformatting and minor code rearrangement.
15436 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
15438         * config/rs6000/rs6000.md (probe_stack): Delete.
15439         (probe_stack_address): New.
15441 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
15443         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
15444         to test for 32-bit ABIs, not !TARGET_POWERPC64.
15446 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
15448         * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
15449         (rs6000_function_value): Use it.  Handle SCmode and TCmode as well,
15450         for TARGET_32BIT && TARGET_POWERPC64.  Fix another BITS_PER_WORD
15451         snafu.
15452         (rs6000_libcall_value): Use the new function.
15454 2015-01-17  Sandra Loosemore  <sandra@codesourcery.com>
15456         * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
15458 2015-01-17  Eric Botcazou  <ebotcazou@adacore.com>
15460         * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
15461         implement a more precise life analysis for it during backward scan.
15463 2015-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
15465         * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
15467 2015-01-17  Bernd Schmidt  <bernds@codesourcery.com>
15469         PR rtl-optimization/52773
15470         * calls.c (emit_library_call_value): When pushing arguments use
15471         stack_pointer_rtx rather than virtual_outgoing_args_rtx in
15472         CALL_INSN_FUNCTION_USAGE.  Only emit one of use of the magic
15473         stack pointer reference into CALL_INSN_FUNCTION_USAGE.
15475 2015-01-17  Jeff Law  <law@redhat.com>
15477         PR rtl-optimization/32790
15478         * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
15479         not ZERO_EXTEND in SET_DESTs.
15481 2015-01-17  Alan Modra  <amodra@gmail.com>
15483         * cprop.c (do_local_cprop): Revert last change.
15485 2015-01-16  DJ Delorie  <dj@redhat.com>
15486             Nick Clifton  <nickc@redhat.com>
15488         * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
15489         (addhi3_real): Likewise.  Fix [HL+0] syntax.
15490         (subqi3_real): Likewise.
15491         (subhi3_real): Likewise.
15492         (cbranchqi4_real): Likewise.  Allow saddr,#imm.
15493         (cbranchhi4_real): Likewise.
15494         (cbranchhi4_real_inverted): Likewise.
15495         (cbranchsi4_real_lt): Likewise.
15496         (cbranchsi4_real_ge): Likewise.
15497         (cbranchsi4_real_ge): Likewise.
15498         * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
15499         (sub<mode>3_virt): Likewise.
15500         (cbranchqi4_virt): Likewise.
15501         (cbranchhi4_virt): Likewise.
15502         * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
15503         always use '[reg+imm]' even when imm is zero.
15504         * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
15505         (rl78_general_operand): New.
15506         (rl78_nonimmediate_operand): New.
15507         (rl78_nonfar_operand): Use them.
15508         (rl78_nonfar_nonimm_operand): Likewise.
15509         (rl78_stack_based_mem): Fix.
15510         * config/rl78/constraints.md (Ibqi): New.
15511         (IBqi): New.
15512         (Wsa): New.
15513         (Wsf): New.
15514         (Cs1): Fix.
15515         * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
15516         (iorqi3): Likewise.
15517         (xorqi3): Likewise.
15518         * config/rl78/rl78-protos.h (rl78_sfr_p): New.
15520         * config/rl78/constrains (Qs8): New constraint.
15521         * config/rl78/rl78.c (rl78_flags_already_set): New function.
15522         * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
15523         * config/rl78/rl78-real.md (update_Z): New attribute.
15524         Update patterns to set it.
15525         (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
15526         shorter compare and branch sequence can be used.
15527         (cbranchhi4_real): Likewise.
15528         (cbranchhi4_real_inverted): Likewise.
15530         * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
15531         * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
15532         address space.
15533         * config/rl78/rl78.c (rl78_get_name_encoding): New.
15534         (rl78_option_override): Allow -mes0 only if C.
15535         (characterize_address): Support subregs of symbol_refs.
15536         (rl78_addr_space_address_mode): Move.  Add __near.
15537         (rl78_far_p): Likewise.
15538         (rl78_addr_space_pointer_mode): Likewise.
15539         (rl78_as_legitimate_address): Likewise.
15540         (rl78_addr_space_subset_p): Likewise.
15541         (rl78_addr_space_convert): Likewise.
15542         (rl78_print_operand_1): Support 16-bit addressing of 32-bit
15543         symbols with -mes0.
15544         (transcode_memory_rtx): Don't copy ES if -mes0.  Allow symbol[BC]
15545         addressing.
15546         (rl78_alloc_physical_registers_op1): Change logic to prefer
15547         symbol[BC] addressing.
15548         (frodata_section): New.
15549         (rl78_asm_init_sections): Initialize it.
15550         (rl78_select_section): Put __far readonly symbols in .frodata.
15551         (rl78_make_type_far): New.
15552         (rl78_insert_attributes): Force all readonly symbols to be
15553         __far when -mes0.
15554         (rl78_asm_out_integer): New.
15555         * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
15556         * config/rl78/rl78.opt (-mes0): New.
15558         * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
15559         (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
15560         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
15561         * config/rl78/rl78-protos.h (rl78_output_labelref): New.
15562         (rl78_saddr_p): New.
15563         (rl78_output_aligned_common): New.
15564         * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
15565         (rl78_handle_saddr_attribute): New.
15566         (rl78_handle_naked_attribute): New.
15567         (rl78_attribute_table): Add saddr.
15568         (rl78_print_operand_1): Don't print '!' on saddr operands.
15569         (rl78_print_operand_1): Strip encodings.
15570         (rl78_sfr_p): New.
15571         (rl78_strip_name_encoding): New.
15572         (rl78_attrlist_to_encoding): New.
15573         (rl78_encode_section_info): New.
15574         (rl78_asm_init_sections): New.
15575         (rl78_select_section): New.
15576         (rl78_output_labelref): New.
15577         (rl78_output_aligned_common): New.
15578         (rl78_asm_out_integer): New.
15579         (rl78_asm_ctor_dtor): New.
15580         (rl78_asm_constructor): New.
15581         (rl78_asm_destructor): New.
15583         * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
15584         * config/rl78/rl78.c (rl78_expand_epilogue): Update.
15585         (transcode_memory_rtx): Update.
15586         (rl78_expand_epilogue): Use A_REG instead of 0.
15588 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
15590         * config/arm/arm-protos.h (struct tune_params): New field
15591         sched_autopref_queue_depth.
15592         * config/arm/arm.c (sched-int.h): Include header.
15593         (arm_first_cycle_multipass_dfa_lookahead_guard,)
15594         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
15595         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
15596         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
15597         (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
15598         (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
15599         (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
15600         (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
15601         Specify sched_autopref_queue_depth value.  Enabled for A15 and A57.
15602         * config/arm/t-arm (arm.o): Update.
15603         * haifa-sched.c (update_insn_after_change): Update.
15604         (rank_for_schedule): Use auto-prefetcher model, if requested.
15605         (autopref_multipass_init): New static function.
15606         (autopref_rank_for_schedule): New rank_for_schedule heuristic.
15607         (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
15608         variable for debug dumps.
15609         (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
15610         (autopref_multipass_dfa_lookahead_guard): New global function that
15611         implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
15612         (init_h_i_d): Update.
15613         * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
15614         * sched-int.h (enum autopref_multipass_data_status): New const enum.
15615         (autopref_multipass_data_): Structure for auto-prefetcher data.
15616         (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
15617         (struct _haifa_insn_data:autopref_multipass_data): New field.
15618         (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
15619         (autopref_multipass_dfa_lookahead_guard): Declare.
15621 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
15623         * rtlanal.c (get_base_term): Handle SCRATCH.
15625 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
15627         * config/aarch64/aarch64.c
15628         (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
15629         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
15630         * config/arm/arm.c
15631         (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
15632         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
15634 2015-01-17  Alan Modra  <amodra@gmail.com>
15636         * cprop.c (do_local_cprop): Disallow replacement of fixed
15637         hard registers.
15639 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15641         PR target/62066
15642         * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
15643         early return 0.
15645 2015-01-16  Bernd Edlinger  <bernd.edlinger@hotmail.de>
15647         * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
15648         * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
15650 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15652         * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
15653         * config/arm/thumb1.md: ... Here.
15655 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
15657         * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
15658         TImode for TARGET_32BIT.
15660 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
15662         * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
15663         TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
15664         as ...
15665         (rs6000_abi_word_mode): New function.
15667 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
15669         * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
15670         instead of UNITS_PER_WORD to describe the size of stack slots.
15672 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
15674         * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
15675         as rs6000_promote_function_mode.  Move comment to there.
15676         (rs6000_promote_function_mode): New function.
15678 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
15680         * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
15681         -mpowerpc64 is active.
15683 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
15685         PR middle-end/64353
15686         * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
15687         virtuals on start.
15689 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
15691         * config/arm/cortex-a57.md: Remove duplicate of file accidentally
15692         introduced in revision 219724.
15694 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15695             Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15697         PR target/64263
15698         * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
15699         destination is not a GP reg.
15700         (*movdi_aarch64): Likewise.
15702 2015-01-16  David Edelsohn  <dje.gcc@gmail.com>
15704         PR target/64623
15705         * config/rs6000/default64.h: Revert ISA change.
15707 2015-01-16  Richard Biener  <rguenther@suse.de>
15709         PR middle-end/64614
15710         * tree-ssa-uninit.c: Include tree-cfg.h.
15711         (MAX_SWITCH_CASES): New define.
15712         (convert_control_dep_chain_into_preds): Handle switch statements.
15713         (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
15714         (normalize_one_pred_1): Do not split bit-manipulations.
15715         Record (x & CST).
15717 2015-01-16  Richard Biener  <rguenther@suse.de>
15719         PR tree-optimization/64568
15720         * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
15721         complex load rewriting for TARGET_MEM_REFs.
15723 2015-01-16  Uros Bizjak  <ubizjak@gmail.com>
15725         * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
15727 2015-01-16  Matthew Wahab  <matthew.wahab@arm.com>
15729         PR target/64149
15730         * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
15731         variable.
15732         * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
15733         (aarch64_lra_p): Remove.
15735 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
15737         PR target/64363
15738         * ipa-chkp.h (chkp_instrumentable_p): New.
15739         * ipa-chkp.c: Include tree-inline.h.
15740         (chkp_instrumentable_p): New.
15741         (chkp_maybe_create_clone): Use chkp_instrumentable_p.
15742         Fix processing of not instrumentable functions.
15743         (chkp_versioning): Use chkp_instrumentable_p. Warn about
15744         not instrumentable functions.
15745         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
15746         chkp_instrumentable_p.
15747         * tree-inline.h (copy_forbidden): New.
15748         * tree-inline.c (copy_forbidden): Not static anymore.
15750 2015-01-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15752         * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
15753         ptr1, ptr2 unused.
15755 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
15757         * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
15758         type OP_OUT to OP_INOUT.
15760 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
15762         * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
15763         (high x) y) to y if x and y have the same base.
15765 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
15767         * config/arm/cortex-a57.md: New.
15768         * config/aarch64/aarch64.md: Include it.
15769         * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
15770         * config/aarch64/aarch64-tune.md: Regenerate.
15772 2015-01-16  Zhenqiang Chen  <zhenqiang.chen@arm.com>
15774         PR target/64015
15775         * ccmp.c (expand_ccmp_next): New function.
15776         (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
15777         and compare insn sequence.
15778         * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
15779         aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
15780         (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
15781         * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
15782         (*ccmp_ior): Changed to ccmp_ior<mode>.
15783         (cmp<mode>): New pattern.
15784         * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
15785         parameters.
15786         * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
15788 2015-01-16  Ilya Tocar  <ilya.tocar@intel.com>
15790         * config/i386/avx2intrin.h (_mm256_bslli_epi128,
15791         _mm256_bsrli_epi128): New.
15792         * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
15794 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
15796         * expmed.c (store_bit_field_using_insv): Improve warning message.
15797         Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
15799 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
15801         PR rtl-optimization/64011
15802         * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
15803         there is partial overflow.
15805 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
15807         * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
15808         prototype.
15809         (nds32_expand_epilogue_v3pop): Likewise.
15810         * config/nds32/nds32.md (sibcall): Define this for sibling call
15811         optimization.
15812         (sibcall_register): Likewise.
15813         (sibcall_immediate): Likewise.
15814         (sibcall_value): Likewise.
15815         (sibcall_value_register): Likewise.
15816         (sibcall_value_immediate): Likewise.
15817         (sibcall_epilogue): Likewise.
15818         (epilogue): Pass false to indicate this is not a sibcall epilogue.
15819         * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
15820         (nds32_expand_epilogue_v3pop): Likewise.
15822 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
15824         * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
15825         * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
15826         (return_internal): New.
15827         (return): Define this named pattern.
15828         (simple_return): Define this named pattern.
15829         * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
15830         pattern instead of unspec_volatile_func_return.
15831         (nds32_expand_epilogue_v3pop): Likewise.
15832         (nds32_can_use_return_insn): New function.
15834 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
15836         * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
15837         * config/nds32/nds32.md (pop25return): New.
15838         * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
15839         pop25return pattern.
15841 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
15843         * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
15844         -mforbid-fp-as-gp, and -mex9 options.
15846 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
15848         * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
15849         remove -mgp-direct option.
15851 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
15853         * doc/invoke.texi (--param early-inlining-insns): Update default value.
15854         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
15856 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
15858         * ipa-inline.c (inline_small_functions): Work around hints
15859         cache issue.
15861 2015-01-15  Sandra Loosemore  <sandra@codesourcery.com>
15863         PR target/59710
15864         * doc/invoke.texi (Option Summary): Document new Nios II
15865         -mgpopt= syntax.
15866         (Nios II Options): Likewise.
15867         * config/nios2/nios2.opt: Add -mgpopt= option support.
15868         Modify existing -mgpopt and -mno-gpopt options to be aliases.
15869         * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
15870         * config/nios2/nios2.c (nios2_option_override): Adjust
15871         -mgpopt defaulting.
15872         (nios2_in_small_data_p): Return true for explicit small data
15873         sections even with -G0.
15874         (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
15875         option choices.
15877 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
15879         PR ipa/64612
15880         * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
15881         of comdat locals.
15882         (inline_call): Fix removal of aliases.
15884 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
15886         * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
15887         include SANITIZE_VPTR in SANITIZE_UNDEFINED.
15888         * opts.c (common_handle_option): Add -fsanitize=vptr.
15889         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
15890         BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
15891         * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
15892         UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
15893         (ubsan_expand_vptr_ifn): New prototype.
15894         * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
15895         expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
15896         expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
15897         expand_LOOP_VECTORIZED): Make argument nameless, remove
15898         ATTRIBUTE_UNUSED.
15899         (expand_UBSAN_VPTR): New function.
15900         * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
15901         in fn spec.
15902         (UBSAN_VPTR): New internal function.
15903         * sanopt.c (tree_map_traits): Renamed to ...
15904         (sanopt_tree_map_traits): ... this.
15905         (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
15906         (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
15907         to sanopt_tree_map_traits renaming.  Add vptr_check_map field.
15908         (maybe_optimize_ubsan_vptr_ifn): New function.
15909         (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
15910         (pass_sanopt::execute): Likewise.  Call sanopt_optimize even for
15911         -fsanitize=vptr.
15912         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
15913         internal calls like pure functions for aliasing, even when they
15914         have other side-effects that prevent making them ECF_PURE.
15915         * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
15916         (ubsan_expand_vptr_ifn): New function.
15918 2015-01-15  Vladimir Makarov  <vmakarov@redhat.com>
15920         PR rtl-optimization/64110
15921         * stmt.c (parse_output_constraint): Process '^' and '$'.
15922         (parse_input_constraint): Ditto.
15923         * lra-constraints.c (process_alt_operands): Process the new
15924         constraints.
15925         * ira-costs.c (record_reg_classes): Process the new constraint
15926         '^'.
15927         * genoutput.c (indep_constraints): Add '^' and '$'.
15928         * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
15929         * doc/md.texi: Add description of the new constraints.
15931 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
15932             Bernd Schmidt  <bernds@codesourcery.com>
15933             Cesar Philippidis  <cesar@codesourcery.com>
15934             James Norris  <jnorris@codesourcery.com>
15935             Tom de Vries  <tom@codesourcery.com>
15936             Ilmir Usmanov  <i.usmanov@samsung.com>
15937             Dmitry Bocharnikov  <dmitry.b@samsung.com>
15938             Evgeny Gavrin  <e.gavrin@samsung.com>
15939             Jakub Jelinek  <jakub@redhat.com>
15941         * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
15942         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
15943         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
15944         New function types.
15945         * builtins.c: Include "gomp-constants.h".
15946         (expand_builtin_acc_on_device): New function.
15947         (expand_builtin, is_inexpensive_builtin): Handle
15948         BUILT_IN_ACC_ON_DEVICE.
15949         * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
15950         New macros.
15951         * cgraph.c (cgraph_node::create): Consider flag_openacc next to
15952         flag_openmp.
15953         * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
15954         <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
15955         i386/intelmic-offload.h.
15956         * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
15957         to libgomp and its dependencies.
15958         * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
15959         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
15960         * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
15961         * config/ia64/hpux.h (LIB_SPEC): Likewise.
15962         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
15963         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
15964         * doc/generic.texi: Update for OpenACC changes.
15965         * doc/gimple.texi: Likewise.
15966         * doc/invoke.texi: Likewise.
15967         * doc/sourcebuild.texi: Likewise.
15968         * gimple-pretty-print.c (dump_gimple_omp_for): Handle
15969         GF_OMP_FOR_KIND_OACC_LOOP.
15970         (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
15971         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
15972         GF_OMP_TARGET_KIND_OACC_UPDATE,
15973         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
15974         Dump more data.
15975         * gimple.c: Update comments for OpenACC changes.
15976         * gimple.def: Likewise.
15977         * gimple.h: Likewise.
15978         (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
15979         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
15980         GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
15981         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
15982         (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
15983         appropriate place.
15984         (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
15985         * gimplify.c: Include "gomp-constants.h".
15986         Update comments for OpenACC changes.
15987         (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
15988         OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
15989         OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
15990         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
15991         OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
15992         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
15993         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
15994         OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
15995         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
15996         OMP_CLAUSE_SEQ.
15997         (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
15998         GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
15999         OMP_CLAUSE_SET_MAP_KIND.
16000         (gimplify_oacc_cache): New function.
16001         (gimplify_omp_for): Handle OACC_LOOP.
16002         (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
16003         OACC_DATA.
16004         (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
16005         OACC_EXIT_DATA, OACC_UPDATE.
16006         (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
16007         OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
16008         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
16009         (gimplify_body): Consider flag_openacc next to flag_openmp.
16010         * lto-streamer-out.c: Include "gomp-constants.h".
16011         * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
16012         (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
16013         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
16014         (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
16015         (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
16016         (BUILT_IN_ACC_ON_DEVICE): New builtins.
16017         * omp-low.c: Include "gomp-constants.h".
16018         Update comments for OpenACC changes.
16019         (struct omp_context): Add reduction_map, gwv_below, gwv_this
16020         members.
16021         (extract_omp_for_data, use_pointer_for_field, install_var_field)
16022         (new_omp_context, delete_omp_context, scan_sharing_clauses)
16023         (create_omp_child_function, scan_omp_for, scan_omp_target)
16024         (check_omp_nesting_restrictions, lower_reduction_clauses)
16025         (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
16026         Update for OpenACC changes.
16027         (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
16028         OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
16029         OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
16030         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
16031         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
16032         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ.  Use GOMP_MAP_* instead of
16033         OMP_CLAUSE_MAP_*.
16034         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
16035         Handle GF_OMP_FOR_KIND_OACC_LOOP.
16036         (expand_omp_target, lower_omp_target): Handle
16037         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
16038         GF_OMP_TARGET_KIND_OACC_UPDATE,
16039         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
16040         GF_OMP_TARGET_KIND_OACC_DATA.
16041         (pass_expand_omp::execute, execute_lower_omp)
16042         (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
16043         flag_openmp.
16044         (offload_symbol_decl): New variable.
16045         (oacc_get_reduction_array_id, oacc_max_threads)
16046         (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
16047         (maybe_lookup_oacc_reduction, enclosing_target_ctx)
16048         (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
16049         (oacc_gimple_assign, oacc_initialize_reduction_data)
16050         (oacc_finalize_reduction_data, oacc_process_reduction_data): New
16051         functions.
16052         (is_targetreg_ctx): Remove function.
16053         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
16054         OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
16055         OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
16056         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
16057         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
16058         OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
16059         * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
16060         * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
16061         (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
16062         (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
16063         (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
16064         (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
16065         * tree-core.h: Update comments for OpenACC changes.
16066         (enum omp_clause_map_kind): Remove.
16067         (struct tree_omp_clause): Change type of map_kind member from enum
16068         omp_clause_map_kind to unsigned char.
16069         * tree-inline.c: Update comments for OpenACC changes.
16070         * tree-nested.c: Likewise.  Include "gomp-constants.h".
16071         (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
16072         (convert_tramp_reference_stmt, convert_gimple_call): Update for
16073         OpenACC changes.  Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
16074         OMP_CLAUSE_SET_MAP_KIND.
16075         * tree-pretty-print.c: Include "gomp-constants.h".
16076         (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
16077         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
16078         OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
16079         OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
16080         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
16081         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT.  Use GOMP_MAP_*
16082         instead of OMP_CLAUSE_MAP_*.
16083         (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
16084         OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
16085         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
16086         * tree-streamer-in.c: Include "gomp-constants.h".
16087         (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
16088         OMP_CLAUSE_MAP_*.  Use OMP_CLAUSE_SET_MAP_KIND.
16089         * tree-streamer-out.c: Include "gomp-constants.h".
16090         (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
16091         OMP_CLAUSE_MAP_*.
16092         * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
16093         (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
16094         (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
16095         * tree.c (omp_clause_num_ops): Update accordingly.
16096         * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
16097         Likewise.
16098         (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
16099         (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
16100         (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
16101         (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
16102         (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
16103         (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
16104         * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
16105         (OMP_CLAUSE_SET_MAP_KIND): New macro.
16106         * varpool.c (varpool_node::get_create): Consider flag_openacc next
16107         to flag_openmp.
16108         * config/i386/intelmic-offload.h: New file.
16109         * config/nvptx/offload.h: Likewise.
16111 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
16113         * explow.h: Remove duplicate contents.
16114         * dojump.h: Likewise.
16116 2015-01-15  Richard Earnshaw  <rearnsha@arm.com>
16118         * arm.c (arm_xgene_tune): Add default initializer for instruction
16119         fusion.
16121 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
16123         PR ipa/64068
16124         PR ipa/64559
16125         * ipa.c (symbol_table::remove_unreachable_nodes):
16126         Do not put abstract origins into boundary.
16128 2015-01-15  Evgeny Stupachenko  <evstupac@gmail.com>
16130         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
16131         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
16133 2015-01-15  Steve Ellcey  <sellcey@mips.com>
16135         * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
16136         cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
16137         builtins.def, and chkp-builtins.def.
16139 2015-01-15  David Edelsohn  <dje.gcc@gmail.com>
16141         * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
16142         ISA 2.7 (POWER8).
16144 2015-01-15  Richard Biener  <rguenther@suse.de>
16146         PR tree-optimization/61743
16147         * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
16148         information on PHIs for some simple cases.
16150 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
16152         * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
16153         Include xgene1.md.
16154         * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
16155         * config/arm/arm-cores.def (xgene1): New entry.
16156         * config/arm/arm-tables.opt: Regenerate.
16157         * config/arm/arm-tune.md: Regenerate.
16158         * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
16160 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
16162         * tree-if-conv.c: Include hash-map.h.
16163         (aggressive_if_conv): New variable.
16164         (fold_build_cond_expr): Add simplification of non-zero condition.
16165         (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
16166         destination block is not always executed.
16167         (if_convertible_phi_p): Fix commentary, allow phi nodes have more
16168         than two predecessors if AGGRESSIVE_IF_CONV is true.
16169         (if_convertible_stmt_p): Fix commentary.
16170         (all_preds_critical_p): New function.
16171         (has_pred_critical_p): New function.
16172         (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
16173         BB can have more than two predecessors and all incoming edges can be
16174         critical.
16175         (predicate_bbs): Skip predication for loop exit block, use build2_loc
16176         to compute predicate for true edge.
16177         (find_phi_replacement_condition): Delete this function.
16178         (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
16179         Allow interchange PHI arguments if EXTENDED is false.
16180         Change check that block containing reduction statement candidate
16181         is predecessor of phi-block since phi may have more than two arguments.
16182         (phi_args_hash_traits): New helper structure.
16183         (struct phi_args_hash_traits): New type.
16184         (phi_args_hash_traits::hash): New function.
16185         (phi_args_hash_traits::equal_keys): New function.
16186         (gen_phi_arg_condition): New function.
16187         (predicate_scalar_phi): Add handling of phi nodes with more than two
16188         arguments, delete COND and TRUE_BB arguments, insert body of
16189         find_phi_replacement_condition to predicate ordinary phi nodes.
16190         (predicate_all_scalar_phis): Skip blocks with the only predecessor,
16191         delete call of find_phi_replacement_condition and invoke
16192         predicate_scalar_phi with two arguments.
16193         (insert_gimplified_predicates): Add assert that non-predicated block
16194         don't have statements to insert.
16195         (ifcvt_split_critical_edges): New function.
16196         (ifcvt_split_def_stmt): Likewise.
16197         (ifcvt_walk_pattern_tree): Likewise.
16198         (stmt_is_root_of_bool_pattern): Likewise.
16199         (ifcvt_repair_bool_pattern): Likewise.
16200         (ifcvt_local_dce): Likewise.
16201         (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
16202         is copy of inner or outer loop force_vectorize field, invoke
16203         ifcvt_split_critical_edges, ifcvt_local_dce and
16204         ifcvt_repair_bool_pattern for aggressive if-conversion.
16206 2015-01-15  Philipp Tomsich  <ptomsich@theobroma-systems.com>
16208         * config/aarch64/aarch64.md: Include xgene1.md.
16209         * config/aarch64/xgene1.md: New file.
16211 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
16213         * config/aarch64/aarch64-cores.def (xgene1): Update/add the
16214         xgene1 (APM XGene-1) core definition.
16215         * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
16216         * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
16217         * doc/invoke.texi: Document -mcpu=xgene1.
16219 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
16221         * dojump.h: New header file.
16222         * explow.h: Likewise.
16223         * expr.h: Remove includes.
16224         Move expmed.c prototypes to expmed.h.
16225         Move dojump.c prototypes to dojump.h.
16226         Move alias.c prototypes to alias.h.
16227         Move explow.c prototypes to explow.h.
16228         Move calls.c prototypes to calls.h.
16229         Move emit-rtl.c prototypes to emit-rtl.h.
16230         Move varasm.c prototypes to varasm.h.
16231         Move stmt.c prototypes to stmt.h.
16232         (saved_pending_stack_adjust): Move to dojump.h.
16233         (adjust_address): Move to explow.h.
16234         (adjust_address_nv): Move to emit-rtl.h.
16235         (adjust_bitfield_address): Likewise.
16236         (adjust_bitfield_address_size): Likewise.
16237         (adjust_bitfield_address_nv): Likewise.
16238         (adjust_automodify_address_nv): Likewise.
16239         * explow.c (expr_size): Move to expr.c.
16240         (int_expr_size): Likewise.
16241         (tree_expr_size): Likewise.
16242         Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16243         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
16244         * genemit.c (main): Generate includes statistics.h, real.h,
16245         fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
16246         stmt.h.
16247         * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
16248         function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
16249         explow.h, emit-rtl.h, stmt.h.
16250         * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
16251         fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
16252         * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
16253         real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
16254         emit-rtl.h, varasm.h, stmt.h.
16255         * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
16256         hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
16257         function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
16258         fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
16259         expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
16260         * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
16261         double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
16262         function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
16263         insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
16264         tm.h tree.h varasm.h vec.h wide-int.h.
16265         * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
16266         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
16267         hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
16268         real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
16269         * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
16270         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
16271         insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
16272         * loop-iv.c: Likewise.
16273         * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
16274         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
16275         statistics.h stmt.h tree.h varasm.h wide-int.h.
16276         * lra-constraints.c: Likewise.
16277         * lra-eliminations.c: Likewise.
16278         * lra-lives.c: Likewise.
16279         * lra-remat.c: Likewise.
16280         * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
16281         explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
16282         statistics.h stmt.h tree.h varasm.h wide-int.h.
16283         * hw-doloop.c: Likewise.
16284         * ira-color.c: Likewise.
16285         * ira-emit.c: Likewise.
16286         * loop-doloop.c: Likewise.
16287         * loop-invariant.c: Likewise.
16288         * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
16289         explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
16290         statistics.h stmt.h tree.h varasm.h wide-int.h.
16291         * caller-save.c: Include alias.h calls.h dojump.h double-int.h
16292         emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
16293         statistics.h stmt.h tree.h varasm.h wide-int.h.
16294         * combine-stack-adj.c: Likewise.
16295         * cse.c: Likewise.
16296         * ddg.c: Likewise.
16297         * ifcvt.c: Likewise.
16298         * ira-costs.c: Likewise.
16299         * jump.c: Likewise.
16300         * lra-coalesce.c: Likewise.
16301         * lra-spills.c: Likewise.
16302         * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
16303         explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
16304         stmt.h varasm.h wide-int.h.
16305         * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
16306         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
16307         varasm.h.
16308         * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
16309         double-int.h explow.h expmed.h fixed-value.h flags.h real.h
16310         statistics.h stmt.h varasm.h wide-int.h.
16311         * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
16312         expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
16313         varasm.h wide-int.h.
16314         * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
16315         expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
16316         * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
16317         emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
16318         statistics.h stmt.h.
16319         * config/tilepro/tilepro.c: Likewise.
16320         * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
16321         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
16322         * config/pdp11/pdp11.c: Likewise.
16323         * config/xtensa/xtensa.c: Likewise.
16324         * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
16325         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
16326         varasm.h.
16327         * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16328         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
16329         insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
16330         * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16331         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
16332         insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
16333         * rtl-chkp.c: Likewise.
16334         * tree-chkp-opt.c: Likewise.
16335         * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
16336         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
16337         hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
16338         * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16339         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
16340         statistics.h stmt.h.
16341         * tree-vect-data-refs.c: Likewise.
16342         * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
16343         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
16344         rtl.h statistics.h stmt.h varasm.h.
16345         * internal-fn.c: Likewise.
16346         * ipa-icf-gimple.c: Likewise.
16347         * lto-section-out.c: Likewise.
16348         * tree-data-ref.c: Likewise.
16349         * tree-nested.c: Likewise.
16350         * tree-outof-ssa.c: Likewise.
16351         * tree-predcom.c: Likewise.
16352         * tree-pretty-print.c: Likewise.
16353         * tree-scalar-evolution.c: Likewise.
16354         * tree-ssa-strlen.c: Likewise.
16355         * tree-vect-loop.c: Likewise.
16356         * tree-vect-patterns.c: Likewise.
16357         * tree-vect-slp.c: Likewise.
16358         * tree-vect-stmts.c: Likewise.
16359         * tsan.c: Likewise.
16360         * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16361         fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
16362         stmt.h.
16363         * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
16364         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
16365         statistics.h stmt.h varasm.h.
16366         * loop-unroll.c: Likewise.
16367         * ubsan.c: Likewise.
16368         * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
16369         expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
16370         stmt.h varasm.h.
16371         * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16372         fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
16373         * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
16374         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
16375         statistics.h stmt.h.
16376         * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
16377         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
16378         statistics.h stmt.h varasm.h.
16379         * gimple-match-head.c: Likewise.
16380         * lto-cgraph.c: Likewise.
16381         * lto-section-in.c: Likewise.
16382         * lto-streamer-in.c: Likewise.
16383         * lto-streamer-out.c: Likewise.
16384         * tree-affine.c: Likewise.
16385         * tree-cfg.c: Likewise.
16386         * tree-cfgcleanup.c: Likewise.
16387         * tree-if-conv.c: Likewise.
16388         * tree-into-ssa.c: Likewise.
16389         * tree-ssa-alias.c: Likewise.
16390         * tree-ssa-copyrename.c: Likewise.
16391         * tree-ssa-dse.c: Likewise.
16392         * tree-ssa-forwprop.c: Likewise.
16393         * tree-ssa-live.c: Likewise.
16394         * tree-ssa-math-opts.c: Likewise.
16395         * tree-ssa-pre.c: Likewise.
16396         * tree-ssa-sccvn.c: Likewise.
16397         * tree-tailcall.c: Likewise.
16398         * tree-vect-generic.c: Likewise.
16399         * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16400         fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
16401         * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16402         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
16403         * varasm.c: Likewise.
16404         * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16405         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
16406         varasm.h.
16407         * init-regs.c: Likewise.
16408         * ira.c: Likewise.
16409         * omp-low.c: Likewise.
16410         * stack-ptr-mod.c: Likewise.
16411         * tree-ssa-reassoc.c: Likewise.
16412         * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16413         fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
16414         varasm.h.
16415         * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16416         fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
16417         * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16418         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
16419         * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16420         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
16421         * tree-ssa-phiopt.c: Likewise.
16422         * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16423         fixed-value.h hashtab.h real.h statistics.h stmt.h.
16424         * config/fr30/fr30.c: Likewise.
16425         * config/frv/frv.c: Likewise.
16426         * expr.c: Likewise.
16427         * final.c: Likewise.
16428         * optabs.c: Likewise.
16429         * passes.c: Likewise.
16430         * simplify-rtx.c: Likewise.
16431         * stmt.c: Likewise.
16432         * toplev.c: Likewise.
16433         * var-tracking.c: Likewise.
16434         * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16435         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
16436         * lower-subreg.c: Likewise.
16437         * postreload-gcse.c: Likewise.
16438         * ree.c: Likewise.
16439         * reginfo.c: Likewise.
16440         * store-motion.c: Likewise.
16441         * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16442         fixed-value.h hashtab.h real.h stmt.h varasm.h.
16443         * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16444         fixed-value.h hashtab.h statistics.h stmt.h.
16445         * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16446         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
16447         * except.c: Likewise.
16448         * explow.c: Likewise.
16449         * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16450         fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
16451         varasm.h.
16452         * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16453         fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
16454         * tree-ssa-structalias.c: Likewise.
16455         * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16456         fixed-value.h insn-config.h real.h statistics.h.
16457         * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16458         fixed-value.h insn-config.h real.h statistics.h stmt.h.
16459         * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16460         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
16461         * cfgbuild.c: Likewise.
16462         * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16463         fixed-value.h real.h rtl.h statistics.h stmt.h.
16464         * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16465         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
16466         * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16467         fixed-value.h real.h statistics.h stmt.h.
16468         * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
16469         fixed-value.h real.h statistics.h stmt.h varasm.h.
16470         * cprop.c: Likewise.
16471         * modulo-sched.c: Likewise.
16472         * postreload.c: Likewise.
16473         * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
16474         flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
16475         statistics.h stmt.h varasm.h.
16476         * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
16477         explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
16478         rtl.h statistics.h stmt.h varasm.h.
16479         * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
16480         fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
16481         varasm.h.
16482         * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
16483         function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
16484         varasm.h.
16485         * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
16486         fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
16487         varasm.h.
16488         * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
16489         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
16490         * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
16491         function.h real.h statistics.h stmt.h varasm.h.
16492         * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
16493         insn-config.h real.h statistics.h stmt.h.
16494         * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
16495         statistics.h stmt.h.
16496         * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
16497         fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
16498         statistics.h stmt.h varasm.h.
16499         * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
16500         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
16501         * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
16502         flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
16503         * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
16504         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
16505         statistics.h stmt.h varasm.h.
16506         * ipa-polymorphic-call.c: Likewise.
16507         * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
16508         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
16509         statistics.h stmt.h.
16510         * config/c6x/c6x.c: Likewise.
16511         * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
16512         explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
16513         statistics.h stmt.h varasm.h.
16514         * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
16515         fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
16516         stmt.h varasm.h.
16517         * ipa-split.c: Likewise.
16518         * tree-eh.c: Likewise.
16519         * tree-ssa-dce.c: Likewise.
16520         * tree-ssa-loop-niter.c: Likewise.
16521         * tree-vrp.c: Likewise.
16522         * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
16523         expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
16524         stmt.h.
16525         * config/nds32/nds32-fp-as-gp.c: Likewise.
16526         * config/nds32/nds32-intrinsic.c: Likewise.
16527         * config/nds32/nds32-isr.c: Likewise.
16528         * config/nds32/nds32-md-auxiliary.c: Likewise.
16529         * config/nds32/nds32-memory-manipulation.c: Likewise.
16530         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
16531         * config/nds32/nds32-predicates.c: Likewise.
16532         * config/nds32/nds32.c: Likewise.
16533         * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
16534         fixed-value.h hashtab.h real.h statistics.h.
16535         * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
16536         fixed-value.h hashtab.h real.h statistics.h stmt.h.
16537         * config/arm/arm.c: Likewise.
16538         * config/avr/avr.c: Likewise.
16539         * config/bfin/bfin.c: Likewise.
16540         * config/h8300/h8300.c: Likewise.
16541         * config/i386/i386.c: Likewise.
16542         * config/ia64/ia64.c: Likewise.
16543         * config/iq2000/iq2000.c: Likewise.
16544         * config/m32c/m32c.c: Likewise.
16545         * config/m32r/m32r.c: Likewise.
16546         * config/m68k/m68k.c: Likewise.
16547         * config/mcore/mcore.c: Likewise.
16548         * config/mep/mep.c: Likewise.
16549         * config/mips/mips.c: Likewise.
16550         * config/mn10300/mn10300.c: Likewise.
16551         * config/moxie/moxie.c: Likewise.
16552         * config/pa/pa.c: Likewise.
16553         * config/rl78/rl78.c: Likewise.
16554         * config/rx/rx.c: Likewise.
16555         * config/s390/s390.c: Likewise.
16556         * config/sh/sh.c: Likewise.
16557         * config/sparc/sparc.c: Likewise.
16558         * config/spu/spu.c: Likewise.
16559         * config/stormy16/stormy16.c: Likewise.
16560         * config/v850/v850.c: Likewise.
16561         * config/vax/vax.c: Likewise.
16562         * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
16563         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
16564         * config/msp430/msp430.c: Likewise.
16565         * predict.c: Likewise.
16566         * value-prof.c: Likewise.
16567         * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
16568         expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
16569         * config/microblaze/microblaze.c: Likewise.
16570         * config/nios2/nios2.c: Likewise.
16571         * config/rs6000/rs6000.c: Likewise.
16572         * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
16573         insn-config.h real.h rtl.h statistics.h stmt.h.
16574         * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
16575         insn-config.h real.h statistics.h stmt.h.
16576         * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
16577         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
16578         * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
16579         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
16580         * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
16581         fixed-value.h real.h statistics.h stmt.h.
16582         * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
16583         fixed-value.h statistics.h stmt.h.
16584         * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
16585         stmt.h.
16587 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
16589         * gengtype.c (create_user_defined_type): Workaround
16590         -Wmaybe-uninitialized false positives.
16591         * cse.c (fold_rtx): Likewise.
16592         * loop-invariant.c (gain_for_invariant): Likewise.
16594 2015-01-15  Eric Botcazou  <ebotcazou@adacore.com>
16596         * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
16597         set the memory attributes in all cases but clear MEM_EXPR if need be.
16599 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
16601         PR tree-optimization/64434
16602         * cfgexpand.c (reorder_operands): New function.
16603         (expand_gimple_basic_block): Insert call of reorder_operands if
16604         optimized is true.
16606 2015-01-15  Matthew Fortune  <matthew.fortune@imgtec.com>
16608         * config/mips/micromips.md (*swp): Remove explicit parallel.
16609         (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
16610         * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
16611         (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
16612         (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
16613         (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
16614         (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
16615         (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
16616         (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
16617         (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
16618         (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
16619         (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
16620         (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
16621         (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
16622         (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
16623         (mips_wrdsp): Likewise.
16624         * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
16625         parallel.
16626         (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
16627         (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
16628         (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
16629         (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
16630         (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
16631         (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
16632         * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
16633         (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
16634         (ssmaddsqdq4, ssmsubsqdq4): Likewise.
16636 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
16638         * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
16639         (mips_print_operand): Support 'y' to print exact log2 in decimal
16640         of a const_int.
16641         * config/mips/mips.h (ISA_HAS_LSA): New define.
16642         (ISA_HAS_DLSA): Likewise.
16643         * config/mips/mips.md (<GPR:d>lsa): New define_insn.
16644         * config/mips/predicates.md (const_immlsa_operand): New predicate.
16646 2015-01-15  Martin Liska  <mliska@suse.cz>
16648         PR target/64377
16649         * optc-save-gen.awk: Add support for array types.
16651 2015-01-15  Richard Biener  <rguenther@suse.de>
16653         PR middle-end/64365
16654         * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
16655         for MEM_REF access functions with the same base can never partially
16656         overlap.
16658 2015-01-14  Marcos Diaz <marcos.diaz@tallertechnologies.com>
16660         * common.opt: New option -fstack-protector-explicit.
16661         * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
16662         (stack_protect_decl_phase): Handle stack_protect attribute for
16663         explicit stack protection requests.
16664         (expand_used_vars): Similarly.
16665         * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
16666         * doc/extend.texi: Add documentation for "stack_protect" attribute.
16667         * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
16669 2015-01-14  Oleg Endo  <olegendo@gcc.gnu.org>
16671         PR target/53988
16672         * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
16673         reg-reg copies.
16674         (sh_extending_set_of_reg): New struct.
16675         (sh_find_extending_set_of_reg, sh_split_tst_subregs,
16676         sh_remove_reg_dead_or_unused_notes): New Declarations.
16677         * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
16678         sh_find_extending_set_of_reg, sh_split_tst_subregs,
16679         sh_extending_set_of_reg::use_as_extended_reg): New functions.
16680         * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
16681         convert to insn_and_split and use new function sh_split_tst_subregs.
16683 2015-01-14  Sandra Loosemore  <sandra@codesourcery.com>
16685         * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
16686         option.
16687         (Optimization Options): Move -fuse-ld documentation to...
16688         (Link Options): ...here.
16690 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
16692         * config/mips/constraints.md (ZC): Add support for R6 LL/SC
16693         offsets.
16694         (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
16695         * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
16696         (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
16697         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
16698         instead of ZR for the memory operand of LL/SC.
16699         (compare_and_swap_12, sync_add<mode>): Likewise.
16700         (sync_<optab>_12, sync_old_<optab>_12): Likewise.
16701         (sync_new_<optab>_12, sync_nand_12): Likewise.
16702         (sync_old_nand_12, sync_new_nand_12): Likewise.
16703         (sync_sub<mode>, sync_old_add<mode>): Likewise.
16704         (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
16705         (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
16706         (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
16707         (sync_nand<mode>, sync_old_nand<mode>): Likewise.
16708         (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
16709         (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
16710         (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
16711         * doc/md.texi (ZC): Update description.
16713 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
16715         * builtins.c (expand_builtin_atomic_exchange): Remove error when
16716         memory model is CONSUME.
16717         (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
16718         expand_builtin_atomic_store): Change invalid memory model errors to
16719         warnings.
16720         (expand_builtin_atomic_clear): Change invalid model errors to warnings
16721         and issue warning for CONSUME.
16723 2015-01-14  Aldy Hernandez  <aldyh@redhat.com>
16725         * lto-cgraph: Update function comments for
16726         lto_symtab_encoder_encode_*.
16728 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
16730         * Makefile.in (site.exp): Do not set ENABLE_LTO.
16732 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
16734         * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
16735         * lto-cgraph.c (select_what_to_stream): Remove argument, use
16736         lto_stream_offload_p instead.
16737         * lto-streamer.h (select_what_to_stream): Remove argument.
16738         * passes.c (ipa_write_summaries): Likewise.
16739         * tree-pass.h (ipa_write_summaries): Likewise.
16741 2015-01-14  Richard Biener  <rguenther@suse.de>
16743         PR tree-optimization/59354
16744         * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
16745         groups larger than the slp group size as having gaps.
16747 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
16749         PR middle-end/59448
16750         * builtins.c (get_memmodel): Promote consume to acquire always.
16752 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
16754         PR target/64386
16755         * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
16756         V32HImode.
16758 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
16760         PR target/64393
16761         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
16762         Enable AVX512BW.
16763         (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
16764         * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
16765         AVX512VBMI, as it implies AVX512BW.
16767 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
16769         PR target/64387
16770         * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
16771         (vec_unpacks_hi_v16sf): Ditto.
16773 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16775         * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
16776         is not available.
16778 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16780         * doc/invoke.texi (mapcs): Mention deprecation.
16781         (mapcs-frame): Likewise.
16783 2015-01-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
16785         PR target/64453
16786         * config/arm/arm.c (callee_saved_reg_p): Define.
16787         (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
16788         register is callee saved instead of !call_used_regs[reg].
16789         (thumb1_compute_save_reg_mask): Likewise.
16791 2015-01-14  Hale Wang  <hale.wang@arm.com>
16793         * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
16794         Cortex-M7.
16796 2015-01-14  Richard Biener  <rguenther@suse.de>
16798         PR lto/64415
16799         * tree-inline.c (insert_debug_decl_map): Check destination
16800         function MAY_HAVE_DEBUG_STMTS.
16801         (insert_init_debug_bind): Likewise.
16802         (insert_init_stmt): Remove redundant check.
16803         (remap_gimple_stmt): Drop debug stmts if the destination
16804         function has var-tracking assignments disabled.
16806 2015-01-14  Martin Liska  <mliska@suse.cz>
16808         * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
16809         IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
16811 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16813         PR target/64460
16814         * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
16815         (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
16817 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
16819         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
16820         level from an ARCH; do not inject the default.
16821         (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
16822         MIPS_ISA_LEVEL_SPEC.
16823         (MIPS_ISA_NAN2008_SPEC): Update comment.
16824         (BASE_DRIVER_SELF_SPECS): Likewise.
16825         * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
16826         MIPS_DEFAULT_ISA_LEVEL_SPEC.
16827         * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
16828         * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
16829         * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
16831 2015-01-14  Richard Biener  <rguenther@suse.de>
16833         PR tree-optimization/64493
16834         PR tree-optimization/64495
16835         * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
16836         assign the proper vectorized PHI to the inner loop exit PHIs.
16838 2015-01-14  Joey Ye  <joey.ye@arm.com>
16840         * config/arm/arm.c (arm_compute_save_reg_mask):
16841         Do not save lr in case of tail call.
16842         * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
16844 2015-01-14  Martin Uecker <uecker@eecs.berkeley.edu>
16846         * tree-vrp.c (check_array_ref): Emit more warnings
16847         for warn_array_bounds >= 2.
16848         * common.opt: New option -Warray-bounds=.
16849         * doc/invoke.texi: Document -Warray-bounds=.
16851 2015-01-14  Chung-Ju Wu  <jasonwucj@gmail.com>
16853         * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
16854         (mforbid-fp-as-gp): Remove.
16855         (mex9): Remove.
16856         * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
16857         (nds32_symbol_load_store_p): Remove.
16858         (nds32_fp_as_gp_check_available): Clean up implementation.
16859         * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
16860         cases.
16861         * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
16862         fp-as-gp and ex9 cases.
16864 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
16866         * tree-profile.c (init_ic_make_global_vars): Drop workaround
16867         for bintuils bug 14342.
16868         (init_ic_make_global_vars): Likewise.
16869         (gimple_init_edge_profiler): Likewise.
16870         (gimple_gen_ic_func_profiler): Likewise.
16872 2015-01-13  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
16874         * ipa-inline.c (inline_small_functions): Swap the operands in
16875         enum.
16877 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
16879         PR ipa/64481
16880         * ipa-inline-analysis.c (node_growth_cache): Remove.
16881         (initialize_growth_caches): Do not initialize it.
16882         (free_growth_caches): Do not free it.
16883         (do_estimate_growth): Rename to ...
16884         (estimate_growth): ... this one; drop growth cache code.
16885         (growth_likely_positive): Always go the heuristics way.
16886         * ipa-inline.c (can_inline_edge_p): Walk through aliases.
16887         (reset_edge_caches): Do not reset node growth.
16888         (heap_edge_removal_hook): Do not maintain cache.
16889         (inline_small_functions): Likewise; strenghten sanity check.
16890         (ipa_inline): Do not maintain caches.
16891         * ipa-inline.h (node_growth_cache): Remove.
16892         (do_estimate_growth): Remove to ...
16893         (estimate_growth): this one; remove inline version.
16894         (reset_node_growth_cache): Remove.
16896 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
16898         PR ipa/64565
16899         * ipa-inline.c (inline_small_functions): Update callee keys after
16900         resolving speculation
16901         (inline_small_functions): Always check monotonicity of the queue.
16903 2015-01-13  Marek Polacek  <polacek@redhat.com>
16905         PR middle-end/64391
16906         * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
16908 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
16910         PR rtl-optimization/64286
16911         * ree.c (combine_reaching_defs): Move part of comment earlier,
16912         remove !SCALAR_INT_MODE_P check.
16913         (add_removable_extension): Don't add vector mode
16914         extensions if all uses of the source register aren't the same
16915         vector extensions.
16917 2015-01-13  Renlin Li  <renlin.li@arm.com>
16919         * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
16920         (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
16922 2015-01-13  Martin Liska  <mliska@suse.cz>
16924         * ipa-icf.c (sem_function::equals_private): Call new functions
16925         cl_target_option_print_diff and cl_optimization_print_diff.
16926         * optc-save-gen.awk (cl_target_option_print_diff): New function.
16927         (cl_optimization_print_diff): Likewise.
16928         * opth-gen.awk: Likewise.
16930 2015-01-13  Richard Sandiford  <richard.sandiford@arm.com>
16932         * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
16933         (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
16934         (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
16935         (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
16936         (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
16937         (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
16939 2015-01-13  Andrew Pinski  <apinski@cavium.com>
16941         * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
16942         instead of src mode.
16944 2015-01-13  Richard Biener  <rguenther@suse.de>
16946         PR lto/64373
16947         * lto-streamer-out.c (tree_is_indexable): Guard for NULL
16948         DECL_CONTEXT.
16950 2015-01-13  Andrew Pinski  <apinski@cavium.com>
16952         * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
16953         volatile mems.
16954         (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
16956 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
16958         PR middle-end/63974
16959         * cfgexpand.c (expand_computed_goto): Don't call
16960         convert_memory_address here.
16962 2015-01-13  Richard Biener  <rguenther@suse.de>
16964         PR tree-optimization/64406
16965         * tree-loop-distibution.c (pass_loop_distribution::execute):
16966         Reset the SCEV hashtable if we distributed anything.
16968 2015-01-13  Richard Biener  <rguenther@suse.de>
16970         PR tree-optimization/64404
16971         * tree-vect-stmts.c (vectorizable_load): Reject conflicting
16972         SLP types for CSEd loads.
16974 2015-01-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
16976         PR tree-optimization/64436
16977         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
16978         merge of two symbolic numbers for a bitwise OR to ...
16979         (perform_symbolic_merge): This. Also fix computation of the range and
16980         end of the symbolic number corresponding to the result of a bitwise OR.
16982 2015-01-13  Richard Biener  <rguenther@suse.de>
16984         PR tree-optimization/64568
16985         * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
16986         release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
16988 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
16990         * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
16991         TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
16993 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
16995         * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
16996         target-specific symbol_ref flag.
16997         (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
16998         resides in rodata section.
16999         * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
17000         (nds32_encode_section_info): New function.
17002 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
17004         * config/nds32/nds32.md (call): Use pseudo instruction bal which
17005         clobbers TA_REGNUM if large code model is specified.
17006         (call_register): Likewise.
17007         (call_immediate): Likewise.
17008         (call_value): Likewise.
17009         (call_value_register): Likewise.
17010         (call_value_immediate): Likewise.
17012 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
17014         * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
17015         (TARGET_CMODEL_MEDIUM): New macro.
17016         (TARGET_CMODEL_LARGE): New macro.
17017         * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
17018         code model setting in assembly code.
17020 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
17022         * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
17023         Remove MASK_GP_DIRECT flag.
17024         * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
17025         one of the multilib default options.
17026         * config/nds32/nds32.opt (mgp-direct): Remove.
17027         * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
17028         -mgp-direct.  We also remove unnecessary -mlittle-endian/-mbig-endian.
17030 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
17032         * config/nds32/nds32.opt (mcmodel): Add new option.
17033         * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
17034         to describe code model.
17036 2015-01-13  Oleg Endo  <olegendo@gcc.gnu.org>
17038         PR target/64479
17039         * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
17041 2015-01-12  Kaz Kojima  <kkojima@gcc.gnu.org>
17043         * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
17044         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
17045         (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
17046         (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
17047         __builtin_sh_set_fpscr.
17049 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
17051         * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
17052         after a funtion name just to indicate it is a function.
17053         ([-fsanitize-undefined-trap-on-error]): Likewise.
17054         ([-fdbg-cnt=]): Likewise.
17055         ([-mmemcpy]): Likewise.
17056         ([-mflush-func]): Likewise.
17057         ([-msynci]): Likewise.
17059 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
17061         * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
17062         example.
17064 2015-01-12  Jakub Jelinek  <jakub@redhat.com>
17066         PR tree-optimization/64563
17067         * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
17068         instead of != VR_VARYING.
17070         PR target/64513
17071         * config/i386/i386.c (ix86_expand_prologue): Add
17072         REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
17074         PR tree-optimization/64454
17075         * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
17076         op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
17077         for signed or [0, op1 - 1] for unsigned modulo.
17078         (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
17079         even if op1 does not satisfy integer_pow2p.
17081         PR other/64370
17082         * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
17084 2015-01-12  Jeff Law  <law@redhat.com>
17086         PR target/64461
17087         * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
17088         (trunchiqi2, truncsihi2): Similarly.
17090         * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
17091         rather than calling F.
17093 2015-01-12  Bernd Edlinger  <bernd.edlinger@hotmail.de>
17095         * tsan.c (instrument_expr): Use force_gimple_operand.
17096         Use may_be_nonaddressable_p instead of is_gimple_addressable.
17098 2015-01-12  Richard Biener  <rguenther@suse.de>
17100         PR tree-optimization/64530
17101         * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
17102         back dr1.
17104 2015-01-12  Richard Biener  <rguenther@suse.de>
17106         PR middle-end/64357
17107         * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
17108         latches properly.
17110 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17112         * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
17113         Cortex-A17 tuning parameters.
17114         * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
17116 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17118         * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
17119         * config/arm/arm.c (arm_macro_fusion_p): New function.
17120         (arm_macro_fusion_pair_p): Likewise.
17121         (TARGET_SCHED_MACRO_FUSION_P): Define.
17122         (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
17123         (ARM_FUSE_NOTHING): Likewise.
17124         (ARM_FUSE_MOVW_MOVT): Likewise.
17125         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
17126         arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
17127         arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
17128         arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
17129         arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
17130         arm_cortex_a5_tune): Specify fuseable_ops value.
17132 2015-01-12  H.J. Lu  <hongjiu.lu@intel.com>
17134         PR bootstrap/64561
17135         * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
17136         test for PIE with copy reloc.
17137         * configure: Regenerated.
17139 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17141         * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
17142         in gen_rtx_REG.
17143         (arm_tls_descseq_addr): Likewise.
17144         (arm_gen_movmemqi): Likewise.
17145         (arm_expand_epilogue_apcs_frame): Likewise.
17146         (arm_expand_epilogue): Likewise.
17147         (arm_expand_prologue): Likewise.  Use R1_REGNUM instead of constant 1
17148         in gen_rtx_REG.
17150 2015-01-12  Martin Liska  <mliska@suse.cz>
17152         PR ipa/64550
17153         * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
17154         volatility for correct operands.
17156 2015-01-12  Martin Liska  <mliska@suse.cz>
17158         * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
17159         indication that a function is not leaf.
17160         (sem_function::compare_polymorphic_p): Likewise.
17162 2015-01-12  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
17164         * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
17165         machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
17166         fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
17167         fold-const.h, tree-check.h.
17169 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
17171         PR ipa/63967
17172         PR ipa/64425
17173         * ipa-inline.c (compute_uninlined_call_time,
17174         compute_inlined_call_time): Use counts for extra precision when
17175         needed possible.
17176         (big_speedup_p): Fix formating.
17177         (RELATIVE_TIME_BENEFIT_RANGE): Remove.
17178         (relative_time_benefit): Remove.
17179         (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
17180         merge guessed and read profile paths.
17181         (inline_small_functions): Count only !optimize_size functions into
17182         initial size; be more lax about sanity check when profile is used;
17183         be sure to update inlined function profile when profile is read.
17185 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
17187         PR ipa/63470
17188         * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
17189         cost when edge becomes direct.
17190         * ipa-prop.c (make_edge_direct): Do not adjust when speculation
17191         is resolved or when introducing new speculation.
17193 2015-01-12  Chen Gang  <gang.chen.5i5j@gmail.com>
17195         PR ipa/64551
17196         PR ipa/64552
17197         * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
17198         '||' to fix typo issue.
17200         * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
17201         accept and return NULL.
17203 2015-01-12  Martin Liska  <mliska@suse.cz>
17205         * cgraph.c (cgraph_edge::remove_callee): Move function to header
17206         file for being inlined.
17207         (cgraph_set_edge_callee): Delete.
17208         (cgraph_edge::redirect_callee): Move function to header file
17209         for being inlined.
17210         (cgraph_edge::make_direct): Use new function.
17211         (cgraph_edge::dump_edge_flags): New function created from
17212         static dump_edge_flags function.
17213         (cgraph_node::dump): Use new function.
17214         (cgraph_edge::verify_count_and_frequency): New function created
17215         from verify_edge_count_and_frequency.
17216         (cgraph_edge::verify_corresponds_to_fndecl): New function created
17217         from verify_edge_corresponds_to_fndecl.
17218         (verify_edge_corresponds_to_fndecl): Delete.
17219         (cgraph_node::verify_node): Use new function.
17220         * cgraph.h (cgraph_edge::set_callee): New function.
17221         (cgraph_edge::dump_edge_flags): Likewise.
17222         (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
17224 2015-01-11  Jan Hubicka  <hubicka@ucw.cz>
17226         * ipa-utils.c (estimate_function_body_sizes): Do not
17227         free node params when called late with early=true.
17229 2015-01-11  James Greenhalgh  <james.greenhalgh@arm.com>
17231         * doc/md.texi (Instruction Patterns): Rewrite text for
17232         clarity.
17233         (Example): Likewise.
17235 2015-01-10  Sandra Loosemore  <sandra@codesourcery.com>
17237         * doc/invoke.texi (Option Summary): Break long lines.
17238         [(-fdiagnostics-color)]: Put long literal in @smallexample
17239         instead of inline.
17240         [(-fsanitize-recover)]: Likewise.
17241         [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
17242         [(-ffast-math)]: Likewise.
17243         [(--param max-inline-insns-recursive)]: Likewise.
17244         [(--param max-inline-recursive-depth)]: Likewise.
17245         [(-mno-text-section-literals)]: Likewise.
17247 2015-01-10  Thomas Schwinge  <thomas@codesourcery.com>
17249         * doc/install.texi: Update for libgomp being renamed from "GNU
17250         OpenMP Runtime Library" to "GNU Offloading and Multi Processing
17251         Runtime Library".
17252         * doc/sourcebuild.texi: Likewise.
17254 2015-01-10  Anthony Green  <green@moxielogic.com>
17256         * config/moxie/moxie.c (moxie_option_override): Fix forcing of
17257         mul.x availability for moxiebox configuration.
17259 2015-01-09  Anthony Green  <green@moxielogic.com>
17261         * config/moxie/moxie.md: Tabify assembly output.
17263 2015-01-09  Anthony Green  <green@moxielogic.com>
17265         * config/moxie/moxie.md (CC_REG): Correct register definition.
17267 2015-01-09  Sandra Loosemore  <sandra@codesourcery.com>
17269         * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
17270         ([-fvtv-debug], [-fvtv-counts]): Likewise.  Correct location
17271         of log files.
17273 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
17275         * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
17277 2015-01-09  Bernd Schmidt  <bernds@codesourcery.com>
17278             Jakub Jelinek  <jakub@redhat.com>
17280         PR middle-end/64412
17281         * lto-streamer.h (lto_stream_offload_p): New declaration.
17282         * lto-streamer.c (lto_stream_offload_p): New variable.
17283         * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
17284         at the same time as section_name_prefix.
17285         * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
17286         if lto_stream_offload_p.
17287         * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
17288         stream TREE_TARGET_OPTION if lto_stream_offload_p.
17289         (write_ts_function_decl_tree_pointers): Don't
17290         stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
17291         * tree-streamer-in.c (unpack_value_fields): Don't stream
17292         TREE_TARGET_OPTION in if ACCEL_COMPILER.
17293         (lto_input_ts_function_decl_tree_pointers): Don't stream
17294         DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
17295         * lto-opts.c (lto_write_options): Use lto_stream_offload_p
17296         instead of section_name_prefix string comparisons.
17298 2015-01-09  Jakub Jelinek  <jakub@redhat.com>
17300         PR rtl-optimization/64536
17301         * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
17302         tablejumps.
17304 2015-01-09  Michael Collison  <michael.collison@linaro.org>
17306         PR tree-optimization/64322
17307         * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
17308         range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
17310 2015-01-09  Tom de Vries  <tom@codesourcery.com>
17312         PR rtl-optimization/64539
17313         * regcprop.c (kill_clobbered_values): Factor out of ...
17314         (copyprop_hardreg_forward_1): ... here.  Use kill_clobbered_values
17315         instead of note_stores with kill_clobbered_value.
17317 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
17319          * ginclude/unwind-arm-common.h: Revert previous commit.
17321 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
17323         * config.gcc (arm*-*-freebsd*): New configuration.
17324         * config/arm/freebsd.h: New file.
17325         * config.host: Add extra components for arm*-*-freebsd*.
17326         * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
17327         * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
17329 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
17331         * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
17332         for -mcpu=e6500.
17333         * config/rs6000/t-rtems: Add e6500 multilibs.
17335 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
17337         * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
17338         MPC8540.
17340 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
17342         * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
17343         MULTILIB_EXCEPTIONS.
17345 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
17347         * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
17348         MULTILIB_EXCEPTIONS.
17350 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
17352         * config/arm/t-rtems-eabi: Rename to...
17353         * config/arm/t-rtems: ...this.
17354         * config/arm/rtems-eabi.h: Rename to...
17355         * config/arm/rtems.h: ...this.
17356         * config.gcc (arm*-*-rtems*): Reflect changes above.
17358 2015-01-09  Richard Biener  <rguenther@suse.de>
17360         PR tree-optimization/64410
17361         * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
17362         on the LHS.
17363         (execute_update_addresses_taken): Deal with that.
17364         * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
17365         loads/stores for complex variables.
17367 2015-01-09  Martin Liska  <mliska@suse.cz>
17369         * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
17370         name comparison.
17371         (func_checker::compare_memory_operand): New function.
17372         (func_checker::compare_operand): Split case to newly
17373         added functions.
17374         (func_checker::compare_cst_or_decl): New function.
17375         (func_checker::compare_gimple_call): Identify
17376         memory operands.
17377         (func_checker::compare_gimple_assign): Likewise.
17378         * ipa-icf-gimple.h: New function.
17380 2015-01-09  Martin Liska  <mliska@suse.cz>
17382         PR ipa/64503
17383         * sreal.c (sreal::dump): Change unsigned format to signed for
17384         m_exp value.
17385         (sreal::to_double): Replace exp2 with scalbln.
17387 2015-01-09  Martin Liska  <mliska@suse.cz>
17389         * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
17390         * ipa-icf.c (sem_function::equals_private): Add support for target and
17391         (sem_item_optimizer::merge_classes): Remove redundant function
17392         optimization flags comparison.
17393         * tree.h (target_opts_for_fn): New function.
17395 2015-01-09  Tom de Vries  <tom@codesourcery.com>
17397         * omp-low.c (expand_omp_for_static_chunk): Fix assert.
17399 2015-01-09  Kito Cheng  <kito@0xlab.org>
17401         PR rtl-optimization/64348
17402         * lra-constraints.c (split_reg): Fix caller-save store/restore
17403         instruction generation.
17405 2015-01-08  John David Anglin  <danglin@gcc.gnu.org>
17407         PR gcov-profile/61790
17408         * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
17409         long long.  Fallback to int64_t if host doesn't have long long and
17410         use strtol if int64_t is long.  Otherwise, use sscanf for conversion.
17412 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
17414         PR tree-optimization/63989
17415         * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
17416         from 1000 to 10000.
17417         * tree-ssa-strlen.c (get_strinfo): Moved earlier.
17418         (get_stridx): If we don't have a record for certain SSA_NAME,
17419         but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
17420         constant offset, call get_stridx_plus_constant.
17421         (get_stridx_plus_constant): New function.
17422         (zero_length_string): Don't use get_stridx here.
17424         PR target/55023
17425         PR middle-end/64388
17426         * dse.c (struct insn_info): Mention frame_read set also
17427         before reload for tail calls on some targets.
17428         (scan_insn): Revert 2014-12-22 change.  Set frame_read
17429         also before reload for tail calls if
17430         HARD_FRAME_POINTER_IS_ARG_POINTER.  Call add_wild_read
17431         instead of add_non_frame_wild_read for non-const/memset
17432         tail calls after reload.
17434 2015-01-08  Jason Merrill  <jason@redhat.com>
17436         * ubsan.c (do_ubsan_in_current_function): New.
17437         (pass_ubsan::gate): Use it.
17438         * ubsan.h: Declare it.
17439         * convert.c (convert_to_integer): Use it.
17441 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
17443         PR target/64338
17444         * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
17445         compare_code when it is unconditionally overwritten afterwards.
17446         Use ix86_reverse_condition instead of reverse_condition.  Don't
17447         change code if *reverse_condition* returned UNKNOWN and don't
17448         swap ct/cf and negate diff in that case.
17450 2015-01-08  Mike Stump  <mikestump@comcast.net>
17452         * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
17453         (pass_tsan_O0::gate): Likewise.
17454         * extend.texi (Function Attributes): Add no_sanitize_thread
17455         documentation.
17457 2015-01-08  Thomas Schwinge  <thomas@codesourcery.com>
17459         * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
17460         for registering builtins.
17461         * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
17462         add -fopenmp to the argv_obstack used when invoking
17463         compile_for_target.
17465         * config/i386/intelmic-mkoffload.c (compile_for_target): Always
17466         add "-m32" or "-m64" to argv_obstack.
17467         (generate_host_descr_file): Likewise, when invoking host_compiler.
17468         (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
17469         ld.
17471 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
17473         * config/sh/sh-mem.cc: Use constant as second operand when emitting
17474         tstsi_t insns.
17476 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
17478         PR target/55212
17479         * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
17480         constant load if constant operand fits into I08.
17482 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
17484         PR sanitizer/64336
17485         * tree.c (build2_stat): Fix up initialization of TREE_READONLY
17486         and TREE_THIS_VOLATILE for MEM_REFs.
17487         (build5_stat): Fix up initialization of TREE_READONLY and
17488         TREE_THIS_VOLATILE for TARGET_MEM_REFs.
17490 2015-01-08  Kaz Kojima  <kkojima@gcc.gnu.org>
17492         PR target/64533
17493         * config/sh/sh.md (*addsi3_compact): Use u constraint instead
17494         of r for the second alternative of the destination operand.
17496 2015-01-07  Segher Boessenkool  <segher@kernel.crashing.org>
17498         PR target/36557
17499         * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
17501 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
17503         * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
17504         keywords.
17505         ([-fivar-visibility], [-fvisibility]): Likewise.
17507 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
17509         * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
17510         the file where @code, @command, etc is more appropriate.
17512 2015-01-06  Sandra Loosemore  <sandra@codesourcery.com>
17514         * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
17515         of -mrecip= documentation.
17517 2015-01-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
17519         PR target/64505
17520         * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
17521         correct reload handler if -m32 -mpowerpc64 is used.
17523 2015-01-06  Tom de Vries  <tom@codesourcery.com>
17525         * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
17527 2015-01-08  Christian Bruel  <christian.bruel@st.com>
17529         PR target/64507
17530         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
17532 2015-01-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
17534         PR tree-optimization/63259
17535         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
17536         if optab exists for 16bit byteswap.
17538 2015-01-06  Jakub Jelinek  <jakub@redhat.com>
17540         * opts.c (common_handle_option): Add support for
17541         -fno-sanitize=all and -f{,no-}sanitize-recover=all.
17542         * doc/invoke.texi: Document -fno-sanitize=all,
17543         -f{,no-}sanitize-recover=all.  Document that
17544         -fsanitize=float-cast-overflow is not enabled
17545         by -fsanitize=undefined.  Fix up documentation
17546         of -f{,no-}sanitize-recover.
17548 2015-01-06  Eric Botcazou  <ebotcazou@adacore.com>
17550         * config.gcc: Add Visium support.
17551         * configure.ac: Likewise.
17552         * configure: Regenerate.
17553         * doc/extend.texi (interrupt attribute): Add Visium.
17554         * doc/invoke.texi: Document Visium options.
17555         * doc/install.texi: Document Visium target.
17556         * doc/md.texi: Document Visium constraints.
17557         * common/config/visium: New directory.
17558         * config/visium: Likewise.
17560 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
17562         * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
17563         for the "(and X (ior (not X) Y) -> (and X Y)" transform.
17565 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
17567         * combine.c (combine_validate_cost): Do not count the cost of a
17568         split I2 twice.  Do not display it twice in the dump, either.
17570 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
17572         Revert parts of r219199.
17573         * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
17574         <inttypes.h>.
17575         ([-Wtraditional]): Restore markup on <limits.h>.
17577 2015-01-05  Trevor Saunders  <tsaunders@mozilla.com>
17579         PR c++/31397
17580         * doc/invoke.texi: Document -Wsuggest-override.
17582 2015-01-05  Radovan Obradovic  <radovan.obradovic@imgtec.com>
17584         PR rtl-optimization/64287
17585         * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
17586         (process_options): Disable flag_ipa_ra if profiling.
17588 2015-01-05  Eric Botcazou  <ebotcazou@adacore.com>
17590         * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
17592 2015-01-05  Max Filippov  <jcmvbkbc@gmail.com>
17594         * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
17595         hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
17596         put under #if TARGET_LOOPS guard.
17598 2015-01-05  Uros Bizjak  <ubizjak@gmail.com>
17600         * config/i386/i386.c (output_387_binary_op): Use std::swap.
17602 2015-01-05  Oleg Endo  <olegendo@gcc.gnu.org>
17604         * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
17605         * rtl.h (refers_to_regno_p): Add overload.
17606         * cse.c: Use it.
17607         * bt-load.c: Likewise.
17608         * combine.c: Likewise.
17609         * df-scan.c: Likewise.
17610         * sched-deps.c: Likewise.
17611         * config/s390/s390.c: Likewise.
17612         * config/m32r/m32r.c: Likewise.
17613         * config/rs6000/spe.md: Likewise.
17614         * config/rs6000/rs6000.c: Likewise.
17615         * config/pa/pa.c: Likewise.
17616         * config/stormy16/stormy16.c: Likewise.
17617         * config/cris/cris.c: Likewise.
17618         * config/arc/arc.md: Likewise.
17619         * config/arc/arc.c: Likewise.
17620         * config/sh/sh.md: Likewise.
17621         * config/sh/sh.c: Likewise.
17622         * config/frv/frv.c: Likewise.
17624 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
17626         PR sanitizer/64265
17627         * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
17628         call as cleanup of the whole body.
17629         * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
17630         * tsan.c (replace_func_exit): New function.
17631         (instrument_func_exit): Moved earlier.
17632         (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
17633         Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
17634         been found.
17635         (tsan_pass): Don't call instrument_func_exit.
17636         * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
17637         * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
17638         inlining.
17640         PR sanitizer/64344
17641         * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
17642         * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
17643         it to libubsan handler instead of EXPR.  Fold comparisons earlier,
17644         if the result is integer_zerop, return NULL_TREE.
17645         * convert.c (convert_to_integer): Pass expr as ARG.
17647         PR tree-optimization/64465
17648         * tree-inline.c (redirect_all_calls): During inlining
17649         clean up EH stmts and EH edges if redirect_call_stmt_to_callee
17650         changed the stmt to a non-throwing call.
17652 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
17654         * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
17655         etc markup throughout the file.
17657 2015-01-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
17659         Enable experimental TSAN support for Ada.
17660         * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
17662 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
17664         PR tree-optimization/64494
17665         * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
17666         clear SSA_NAME_ANTI_RANGE_P flag.
17668 2015-01-05  Marek Polacek  <polacek@redhat.com>
17670         * doc/extend.texi (Arrays of Length Zero): Add missing comma.
17672 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
17674         Update copyright years.
17676         * gcc.c (process_command): Update copyright notice dates.
17677         * gcov-dump.c: Ditto.
17678         * gcov.c: Ditto.
17679         * doc/cpp.texi: Bump @copying's copyright year.
17680         * doc/cppinternals.texi: Ditto.
17681         * doc/gcc.texi: Ditto.
17682         * doc/gccint.texi: Ditto.
17683         * doc/gcov.texi: Ditto.
17684         * doc/install.texi: Ditto.
17685         * doc/invoke.texi: Ditto.
17687         * auto-profile.c, auto-profile.h: Fix up Copyright line.
17689 2015-01-04  Sandra Loosemore  <sandra@codesourcery.com>
17691         * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
17692         verb tense, etc.
17693         ([-fvtable-verify], [-fvtv-debug]): Likewise.
17694         ([-Wabi]): Likewise.
17695         ([-fmessage-length]): Likewise.
17696         ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
17697         ([-Wno-discarded-qualifiers]): Likewise.
17698         ([-Wnodiscarded-array-qualifiers]): Likewise.
17699         ([-Wno-virtual-move-assign]): Likewise.
17700         ([-fsanitize=address], [-fsanitize=thread]): Likewise.
17701         ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
17702         ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
17703         ([-fsanitize-undefined-trap-on-error]): Likewise.
17704         ([-floop-interchange]): Likewise.
17705         ([-ftree-coalesce-inlined-vars]): Likewise.
17706         ([-fvect-cost-model]): Likewise.
17707         ([-flto]): Likewise.
17708         ([--param]): Likewise.
17709         (Spec Files): Likewise.
17710         ([-mstrict-align]): Likewise.
17711         ([-mfix-cortex-a53-835769]): Likewise.
17712         ([-march], [-mtune]): Likewise.
17713         ([-mpic-register]): Likewise.
17714         ([-munaligned-access]): Likewise.
17715         ([-msp8]): Likewise.
17716         (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
17717         (AVR Built-in Macros): Likewise.
17718         ([-mpreferred-stack-boundary]): Likewise.
17719         ([-mtune-crtl]): Likewise.
17720         ([-mashf]): Likewise.
17721         ([-mmcu=]): Likewise.
17722         ([-minrt]): Likewise.
17723         ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
17724         ([-mupper-regs]): Likewise.
17725         ([-matomic-model]): Likewise.
17726         ([-mdiv]): Likewise.
17727         ([-mzdcbranch]): Likewise.
17728         ([-mdisable-callt]): Likewise.
17729         ([-msoft-float]): Likewise.
17730         ([-m8byte-align]): Likewise.
17731         ([-fstack-reuse]): Likewise.
17733 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
17735         * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
17736         Fix markup, light copy-editing.
17737         ([-fauto-profile]): Rewrite to fix formatting and content
17738         problems.
17740 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
17742         * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
17743         Copy-edit description.
17744         ([-fisolate-erroneous-paths-attribute]): Likewise.
17745         * common.opt (fisolate-erroneous-paths-dereference):
17746         Copy-edit description.
17747         (fisolate-erroneous-paths-attribute): Likewise.
17749 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
17751         * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
17752         tidy grammar.
17754 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
17756         * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
17757         ([-fvtv-debug]): Likewise.
17758         ([-Wc++-compat]): Likewise.
17759         ([-Wc++11-compat]): Likewise.
17760         ([-Wc++14-compat]): Likewise.
17761         ([-Wno-sized-deallocation]): Likewise.
17762         ([-femit-class-debug-always]): Likewise.
17763         ([-femit-struct-debug-detailed]): Likewise.
17764         ([-fno-keep-inline-dllexport]): Likewise.
17765         ([-fira-algorithm]): Likewise.
17766         ([-fira-region]): Likewise.
17767         ([-flra-remat]): Likewise.
17768         ([-fipa-ra]): Likewise.
17769         ([-fhoist-adjacent-loads]): Likewise.
17770         ([-fisolate-erroneous-paths-dereference]): Likewise.
17771         ([-fisolate-erroneous-paths-attribute]): Likewise.
17772         ([-ftree-switch-conversion]): Likewise.
17773         ([-ftree-tail-merge]): Likewise.
17774         ([-ftree-loop-if-convert]): Likewise.
17775         ([-ftree-loop-if-convert-stores]): Likewise.
17776         ([-ftree-loop-distribution]): Likewise.
17777         ([-ftree-loop-distribute-patterns]): Likewise.
17778         ([-flto-compression-level]): Likewise.
17779         ([-flto-report]): Likewise.
17780         ([-flto-report-wpa]): Likewise.
17781         ([-fuse-linker-plugin]): Likewise.
17782         ([-mfix-cortex-a53-835769]): Likewise.
17783         ([-mno-fix-cortex-a53-835769]): Likewise.
17784         ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
17785         explicit listing; add a note to the discussion indicating they
17786         exist.  Reorder table to group similar options.  Add missing
17787         @opindex entries.  Add @need commands throughout the table to
17788         allow it to be split across multiple pages.
17789         ([-m8bit-idiv]): Fix @opindex.
17790         ([-mavx256-split-unaligned-load]): Likewise.
17791         ([-mavx256-split-unaligned-store]): Likewise.
17792         ([-mstack-protector-guard]): Likewise.
17793         ([-mcpu=]): Likewise.
17794         ([-mcpu]): Likewise.
17795         ([-mpointer-size=]): Likewise.
17797 2015-01-03  John David Anglin  <danglin@gcc.gnu.org>
17799         * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
17800         instead of `m' constraint.  Likewise for unnamed movb comparison
17801         patterns using reg_before_reload_operand predicate.
17802         * config/pa/predicates.md (reg_before_reload_operand): Tighten
17803         predicate to reject register index and LO_SUM DLT memory forms
17804         after reload.
17806 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
17808         * doc/invoke.texi (Option Summary): Fix spelling of
17809         -fdevirtualize-at-ltrans.
17810         ([-fdevirtualize]): Fix markup.
17811         ([-fdevirtualize-speculatively]): Fix typo.
17812         ([-fdevirtualize-at-ltrans]): Likewise.  Make description less
17813         implementor-speaky.
17814         * common.opt (fdevirtualize-at-ltrans): Likewise.
17815         * ipa-devirt.c: Fix typos in comments throughout the file.
17816         (ipa_devirt): Fix typos in format strings for dump output.
17818 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
17820         * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
17821         discussion of defaults, light copy-editing.
17823 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
17825         * tsan.c (instrument_expr): corrected previous checkin.
17827 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
17829         Instrument bit field and unaligned accesses for TSAN.
17830         * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
17831         (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
17832         * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
17833         Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
17834         unaligned memory regions.
17836 2015-01-01  Anthony Green  <green@moxielogic.com>
17838         * config/moxie/predicates.md (moxie_general_movsrc_operand):
17839         Restrict move source register offsets to 16 bits.
17841 Copyright (C) 2015 Free Software Foundation, Inc.
17843 Copying and distribution of this file, with or without modification,
17844 are permitted in any medium without royalty provided the copyright
17845 notice and this notice are preserved.