PR target/64833
[official-gcc.git] / gcc / ChangeLog
blob65b3ffc8e23b8c8af9fab3d6693bdf0e3edb682b
1 2015-06-30  Kaz Kojima  <kkojima@gcc.gnu.org>
3         PR target/64833
4         * config/sh/sh.md (casesi_worker_1): Set length to 8 when
5         flag_pic is set.
7 2015-06-30  Eric Botcazou  <ebotcazou@adacore.com>
9         * lto-streamer-out.c (class DFS): Adjust hash_scc method.
10         (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
11         (hash_scc): Add this_ref_p and ref_p parameters and pass them
12         to the inner DFS walk.
14 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
16         * target-insns.def (jump): New targetm instruction pattern.
17         * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
18         instead of gen_jump.
19         (fix_up_crossing_landing_pad): Likewise.
20         (add_labels_and_missing_jumps): Likewise.
21         (fix_crossing_conditional_branches): Likewise.
22         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
23         (force_nonfallthru_and_redirect): Likewise.
24         * cse.c (cse_insn): Likewise.
25         * expmed.c (expand_divmod): Likewise.
26         * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
27         * haifa-sched.c (init_before_recovery): Likewise.
28         (sched_create_recovery_edges): Likewise.
29         * ifcvt.c (find_cond_trap): Likewise.
30         * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
31         (expand_float, expand_fix): Likewise.
32         * stmt.c (emit_jump): Likewise.
34 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
36         * defaults.h (HAVE_load_multiple, gen_load_multiple)
37         (HAVE_store_multiple, gen_store_multiple): Delete.
38         * target-insns.def (load_multiple, store_multiple): New targetm
39         instruction patterns.
40         * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
41         of HAVE_*/gen_* interface.
43 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
45         * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
46         (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
47         (gen_mem_signal_fence): Delete.
48         * target-insns.def (mem_signal_fence, mem_thread_fence)
49         (memory_barrier): New targetm instruction patterns.
50         * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
51         interface.
52         (expand_mem_signal_fence): Likewise.
54 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
56         * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
57         * target-insns.def (epilogue, prologue, sibcall_prologue): New
58         targetm instruction patterns.
59         * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
60         interface.
61         * calls.c (expand_call): Likewise.
62         * cfgrtl.c (cfg_layout_finalize): Likewise.
63         * df-scan.c (df_get_entry_block_def_set): Likewise.
64         (df_get_exit_block_use_set): Likewise.
65         * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
66         * final.c (final_start_function): Likewise.
67         * function.c (thread_prologue_and_epilogue_insns): Likewise.
68         (reposition_prologue_and_epilogue_notes): Likewise.
69         * reorg.c (find_end_label): Likewise.
70         * toplev.c (process_options): Likewise.
72 2015-06-30  David Malcolm  <dmalcolm@redhat.com>
74         * typed-splay-tree.h: New file.
76 2015-06-30  Vladimir Makarov  <vmakarov@redhat.com>
78         PR debug/66691
79         * lra-int.h (lra_substitute_pseudo): Add a parameter.
80         (lra_substitute_pseudo_within_insn): Ditto.
81         * lra.c (lra_substitute_pseudo): Add a parameter.  Simplify subreg
82         of constant.
83         (lra_substitute_pseudo_within_insn): Add a parameter.  Transfer it
84         to lra_substitute_pseudo.
85         * lra-lives.c (process_bb_lives): Add an argument to
86         lra_substitute_pseudo_within_insn call.
87         * lra-constraints.c (inherit_reload_reg, split_reg): Add an
88         argument to lra_substitute_pseudo and
89         lra_substitute_pseudo_within_insn calls.
90         (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
92 2015-06-30  H.J. Lu  <hongjiu.lu@intel.com>
94         * configure: Regenerated.
96 2015-06-30  H.J. Lu  <hongjiu.lu@intel.com>
98         * config.gcc: Support i[34567]86-*-elfiamcu target.
99         * config/i386/iamcu.h: New.
100         * config/i386/i386.opt: Add -miamcu.
101         * doc/invoke.texi: Document -miamcu.
102         * common/config/i386/i386-common.c  (ix86_handle_option): Turn
103         off x87/MMX/SSE/AVX codegen for -miamcu.
104         * config/i386/i386-c.c (ix86_target_macros_internal): Define
105         __iamcu/__iamcu__ for -miamcu.
106         * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
107         to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
108         (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
109         * config/i386/i386.c (ix86_option_override_internal): Ignore and
110         warn -mregparm for Intel MCU.  Turn on -mregparm=3 for Intel
111         MCU by default.  Default long double to 64-bit for Intel MCU.
112         Turn on -freg-struct-return for Intel MCU.  Issue an error when
113         -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
114         AVX is turned on.
115         (function_arg_advance_32): Pass value whose size is no larger
116         than 8 bytes in registers for Intel MCU.
117         (function_arg_32): Likewise.
118         (ix86_return_in_memory): Return value whose size is no larger
119         than 8 bytes in registers for Intel MCU.
120         (iamcu_alignment): New function.
121         (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
122         true.
123         (ix86_local_alignment): Don't increase alignment for Intel MCU.
124         (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
125         true.
127 2015-06-30  Marek Polacek  <polacek@redhat.com>
129         * match.pd (X - (X / Y) * Y): Use convert1 and convert2.  Convert
130         both operands of the resulting expression.      
132         * match.pd (~x | x): Don't use tree_nop_conversion_p.  Build
133         the final expression with the operand's type and then convert
134         it to the type of the expression.
136 2015-06-30  Richard Biener  <rguenther@suse.de>
138         * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
139         ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
140         (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
141         * match.pd: ... to patterns here.
143 2015-06-30  Richard Biener  <rguenther@suse.de>
145         PR tree-optimization/66704
146         * tree-vect-data-refs.c (vect_setup_realignment): Use
147         make_ssa_name for non-SSA name source.
149 2015-06-30  Jakub Jelinek  <jakub@redhat.com>
151         PR middle-end/66702
152         * omp-low.c (simd_clone_adjust): Handle addressable linear
153         or uniform parameters or non-gimple type uniform parameters.
155 2015-06-30  Richard Biener  <rguenther@suse.de>
157         * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
158         ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
159         ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
160         * match.pd: ... here.
161         Add a few cases of A - B -> A + (-B) when B "easily" negates.
162         Move (x & y) | x -> x and friends before
163         (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
165 2015-06-30  Eric Botcazou  <ebotcazou@adacore.com>
167         * config/sparc/leon.md (leon_load): Enable for all LEON variants if
168         -mfix-ut699 is not specified.
169         (leon3_load): Rename into...
170         (ut699_load): ...this.  Enable for all LEON variants if -mfix-ut699
171         is specified.
173 2015-06-30  Marek Polacek  <polacek@redhat.com>
175         * fold-const.c (fold_binary_loc): Move ~X | X folding ...
176         * match.pd: ... here.
178 2015-06-30  Richard Biener  <rguenther@suse.de>
180         * target-insns.def (canonicalize_funcptr_for_compare): Add.
181         * fold-const.c (build_range_check): Replace uses of
182         HAVE_canonicalize_funcptr_for_compare.
183         (fold_widened_comparison): Likewise.
184         (fold_sign_changed_comparison): Likewise.
185         * dojump.c: Include "target.h".
186         (do_compare_and_jump): Replace uses of
187         HAVE_canonicalize_funcptr_for_compare and
188         gen_canonicalize_funcptr_for_compare.
189         * expr.c (do_store_flag): Likewise.
191 2015-06-30  Tom de Vries  <tom@codesourcery.com>
193         PR tree-optimization/66652
194         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
195         max_loop_iterations to determine if nit + 1 overflows.
197 2015-06-30  Richard Biener  <rguenther@suse.de>
199         * tree-vrp.c (register_edge_assert_for_2): Also register
200         asserts for dominating conversion results.
202 2015-06-30  Bin Cheng  <bin.cheng@arm.com>
204         * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
205         field in struct iv.
207 2015-06-29  Jack Howarth  <howarth.at.gcc@gmail.com>
209         PR target/66509
210         * configure.ac: Fix filds and fildq test for 64-bit.
211         * configure: Regenerated.
213 2015-06-29  Nathan Sidwell  <nathan@codesourcery.com>
215         * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
216         (nvptx_reorg): Here.  Keep the non-subreg pieces.
218 2015-06-29  H.J. Lu  <hongjiu.lu@intel.com>
220         * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
221         PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
223 2015-06-29  Uros Bizjak  <ubizjak@gmail.com>
225         * config/i386/i386.md (*jcc_1): Use %! in asm template.
226         Set attribute "length_nobnd" instead of "length".
227         (*jcc_2): Ditto.
228         (jump): Ditto.
229         (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
231 2015-06-29  Sandra Loosemore  <sandra@codesourcery.com>
233         * config/nios2/nios2.c (nios2_delegitimize_address): Make
234         assert less restrictive.
236 2015-06-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
238         PR fortran/66605
239         * cgraphunit.c (cgraph_node::finalize_function): Do not call
240         do_warn_unused_parameter.
241         * function.c (do_warn_unused_parameter): Move from here.
242         * function.h (do_warn_unused_parameter): Do not declare.
244 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
246         PR target/65697
247         * gcc.target/arm/armv-sync-comp-swap.c: New.
248         * gcc.target/arm/armv-sync-op-acquire.c: New.
249         * gcc.target/arm/armv-sync-op-full.c: New.
250         * gcc.target/arm/armv-sync-op-release.c: New.
252 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
254         PR target/65697
255         * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
256         initial acquire barrier with final barrier.
258 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
260         PR target/65697
261         * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
262         initial acquire barrier with final barrier.
264 2015-06-29  Richard Henderson  <rth@redhat.com>
266         * config/i386/constraints.md (Bf): New constraint.
267         * config/i386/i386-c.c (ix86_target_macros): Define
268         __GCC_ASM_FLAG_OUTPUTS__.
269         * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
270         as flags outputs.
271         * doc/extend.texi (FlagOutputOperands): Document them.
273 2015-06-29  Jiong Wang  <jiong.wang@arm.com>
275         * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
276         * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
277         unspec name.
278         (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
279         * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
280         SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
281         (aarch64_symbol_context): Ditto.
282         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
283         and use new pattern name.
284         (aarch64_expand_mov_immediate): Ditto.
285         (aarch64_print_operand): Ditto.
286         (aarch64_classify_tls_symbol): Ditto.
288 2015-06-29  Marek Polacek  <polacek@redhat.com>
289             Marc Glisse  <marc.glisse@inria.fr>
291         * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
292         * match.pd: ... pattern here.
294 2015-06-29  Tom de Vries  <tom@codesourcery.com>
296         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
297         function structure.
299 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
301         * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
302         feature description, split out the native option, add a link to
303         the feature documentation, rearrange and slightly rewrite text.
304         (Aarch64 options, -mcpu): Likewise.
305         (Aarch64 options, Feature Modifiers): Add an anchor.  Mention
306         +rdma implies Adv. SIMD.
308 2015-06-29  Marek Polacek  <polacek@redhat.com>
310         PR c/66322
311         * function.c (stack_protect_epilogue): Remove a cast to int.
312         * doc/invoke.texi: Update -Wswitch-bool description.
314 2015-06-29  Richard Biener  <rguenther@suse.de>
316         * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
317         * fold-const.c (fold_binary_loc): Move &A - &B simplification
318         via ptr_difference_const ...
319         * match.pd: ... here.
320         When matching (X ^ Y) == Y also match with swapped operands.
322 2015-06-29  Richard Biener  <rguenther@suse.de>
324         * lto-streamer.h (LTO_major_version): Bump to 5.
326 2015-06-29  Richard Biener  <rguenther@suse.de>
328         PR tree-optimization/66677
329         * tree-vect-stmts.c (vect_transform_stmt): Make assert about
330         STMT_VINFO_VEC_STMT clobbering less strict.
332 2015-06-29  Kugan Vivekanandarajah  <kuganv@linaro.org>
334         PR middle-end/64130
335         * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
336         division, compute max and min when value ranges for dividend and
337         divisor are available.
339 2015-06-28  Chung-Lin Tang <cltang@codesourcery.com>
340             Sandra Loosemore <sandra@codesourcery.com>
342         * regrename.h (regrename_do_replace): Change to return bool.
343         * regrename.c (rename_chains): Check return value of
344         regname_do_replace.
345         (regrename_do_replace): Re-validate the modified insns and
346         return bool status.
347         * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
348         Update to match rename_chains changes.
349         * config/c6x/c6x.c (try_rename_operands): Assert that
350         regrename_do_replace returns true.
352 2015-06-28  Uros Bizjak  <ubizjak@gmail.com>
354         * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
355         operand 2 here.  Use copy_addr_to_reg to copy non-index
356         register operand 2 to a temporary.
357         (<mode>_stx): Ditto for operand 1.
358         (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
359         * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
360         (ix86_store_bounds): Ditto.
362 2015-06-27  Patrick Palka  <ppalka@gcc.gnu.org>
364         * print-tree.c (print_node) [TREE_VEC]: Print its length.
366 2015-06-26  Andrew MacLeod  <amacleod@redhat.com>
368         * gimple.c (gimple_call_set_fndecl): Remove.
369         * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
370         build1_loc directly instead of build_fold_addr_expr_loc.
372 2015-06-26  Richard Sandiford  <richard.sandiford@arm.com>
374         * hash-map.h (hash_map::traverse): Use the definition of the
375         Key typedef rather than the typedef itself.
377 2015-06-26  Martin Jambor  <mjambor@suse.cz>
379         PR debug/66301
380         * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
381         NULL instead of calling dump_enabled_p.
383 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
385         * config/aarch64/aarch64.opt: (override): New.
386         * doc/invoke.texi (override): Document.
387         * config/aarch64/aarch64.c (aarch64_flag_desc): New
388         (aarch64_fusible_pairs): Likewise.
389         (aarch64_tuning_flags): Likewise.
390         (aarch64_tuning_override_function): Likewise.
391         (aarch64_tuning_override_functions): Likewise.
392         (aarch64_parse_one_option_token): Likewise.
393         (aarch64_parse_boolean_options): Likewise.
394         (aarch64_parse_fuse_string): Likewise.
395         (aarch64_parse_tune_string): Likewise.
396         (aarch64_parse_one_override_token): Likewise.
397         (aarch64_parse_override_string): Likewise.
398         (aarch64_override_options): Parse the -override string if it
399         is present.
401 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
403         * config/aarch64/aarch64-protos.h (tune_params): Remove
404         const from members.
405         (aarch64_tune_params): Remove const, change to no longer be
406         a pointer.
407         * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
408         change to no longer be a pointer, initialize to generic_tunings.
409         (aarch64_min_divisions_for_recip_mul): Change dereference of
410         aarch64_tune_params to member access.
411         (aarch64_reassociation_width): Likewise.
412         (aarch64_rtx_mult_cost): Likewise.
413         (aarch64_address_cost): Likewise.
414         (aarch64_branch_cost): Likewise.
415         (aarch64_rtx_costs): Likewise.
416         (aarch64_register_move_cost): Likewise.
417         (aarch64_memory_move_cost): Likewise.
418         (aarch64_sched_issue_rate): Likewise.
419         (aarch64_builtin_vectorization_cost): Likewise.
420         (aarch64_override_options): Take a copy of the selected tuning
421         struct in to aarch64_tune_params, rather than just setting
422         a pointer, change dereferences of aarch64_tune_params to member
423         accesses.
424         (aarch64_override_options_after_change): Change dereferences of
425         aarch64_tune_params to member access.
426         (aarch64_macro_fusion_p): Likewise.
427         (aarch_macro_fusion_pair_p): Likewise.
428         * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
430 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
432         * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
433         (aarch64_tune_flags): Likewise.
434         (AARCH64_TUNE_FMA_STEERING): Likewise.
435         * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
436         to AARCH64_FL_USE_FMA_STEERING_PASS.
437         (cortex-a57.cortex-a53): Likewise.
438         (cortex-a72): Use cortexa72_tunings.
439         (cortex-a72.cortex-a53): Likewise.
440         (exynos-m1): Likewise.
441         * config/aarch64/aarch64-protos.h (tune_params): Add
442         a field: extra_tuning_flags.
443         * config/aarch64/aarch64-tuning-flags.def: New.
444         * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
445         (aarch64_extra_tuning_flags): Likewise.
446         (aarch64_tune_params): Declare here.
447         * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
448         (cortexa53_tunings): Likewise.
449         (cortexa57_tunings): Likewise.
450         (thunderx_tunings): Likewise.
451         (xgene1_tunings): Likewise.
452         (cortexa72_tunings): New.
453         * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
454          (gate): Check against aarch64_tune_params.
455         * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
456         aarch64-protos.h.
458 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
460         * config/aarch64/aarch64-fusion-pairs.def: New.
461         * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
462         * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
463         aarch64_fusion_pairs.
464         (AARCH64_FUSE_MOV_MOVK): Likewise.
465         (AARCH64_FUSE_ADRP_ADD): Likewise.
466         (AARCH64_FUSE_MOVK_MOVK): Likewise.
467         (AARCH64_FUSE_ADRP_LDR): Likewise.
468         (AARCH64_FUSE_CMP_BRANCH): Likewise.
470 2015-06-26  Jiong Wang  <jiong.wang@arm.com>
472         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
473         SYMBOL_SMALL_GOT_28K.
474         * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
475         relocation modifiers.
476         (unspec): New enum "UNSPEC_GOTMALLPIC28K.
477         (ldr_got_small_28k_<mode>): New.
478         (ldr_got_small_28k_sidi): New.
479         * config/aarch64/iterators.md (got_modifier): New mode iterator.
480         * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
481         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
482         SYMBOL_SMALL_GOT_28K.
483         (aarch64_rtx_costs): Add costs for new instruction sequences.
484         (initialize_aarch64_code_model): Initialize new model.
485         (aarch64_classify_symbol): Recognize new model and new symbol classification.
486         (aarch64_asm_preferred_eh_data_format): Support new model.
487         (aarch64_load_symref_appropriately): Generate new instruction
488         sequences for -fpic.
489         (TARGET_USE_PSEUDO_PIC_REG): New definition.
490         (aarch64_use_pseudo_pic_reg): New function.
492 2015-06-26  Jiong Wang  <jiong.wang@arm.com>
494         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
495         SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
496         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
497         (aarch64_expand_mov_immediate): Ditto.
498         (aarch64_print_operand): Ditto.
499         (aarch64_classify_symbol): Ditto.
501 2015-06-26  Nathan Sidwell  <nathan@codesourcery.com>
503         * config/nvptx/nvptx.md (call_operation): Remove unused variables.
505 2015-06-26  Bin Cheng  <bin.cheng@arm.com>
507         PR bootstrap/66638
508         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
509         assertion failed.  Remove assertion itself.
511 2015-06-26  Richard Biener  <rguenther@suse.de>
513         * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
514         and -A CMP CST -> A CMP -CST which is redundant with a pattern
515         in match.pd.
516         Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
517         (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
518         (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
519         * match.pd: ... patterns here.
521 2015-06-26  Marek Polacek  <polacek@redhat.com>
523         * match.pd ((x | y) & ~(x & y) -> x ^ y,
524         (x | y) & (~x ^ y) -> x & y): New patterns.
526 2015-06-26  Richard Sandiford  <richard.sandiford@arm.com>
528         * rtl.h (emit): Add an optional boolean parameter to control
529         whether barriers are emitted.
530         * emit-rtl.c (emit): Likewise.
531         * gensupport.c (get_emit_function): Return null rather than "emit".
532         * genemit.c (gen_emit_seq): Handle the null return value.
533         Don't emit barriers after the final instruction in the sequence.
534         * gentarget-def.c (main): Don't emit barriers after the instruction.
536 2015-06-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
538         * config/arm/arm.c (arm_output_multireg_pop): Fix use of
539         TARGET_UNIFIED_ASM.
541 2015-06-26  Richard Biener  <rguenther@suse.de>
543         * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
545 2015-06-26  Richard Biener  <rguenther@suse.de>
547         * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
548         irrespective on whether the inner operation has a single use
549         of both off are constant.
551 2015-06-26  Uros Bizjak  <ubizjak@gmail.com>
552             Segher Boessenkool  <segher@kernel.crashing.org>
554         PR target/66412
555         * config/i386/i386.md (various splitters): Use shallow_copy_rtx
556         before doing PUT_MODE or PUT_CODE on operands to avoid
557         in-place RTX modification.
559 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
561         * gentarget-def.c (def_target_insn): Cast return of strtol to
562         unsigned int.
564 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
566         * gimple.h (gimple_call_set_fn): Move inline function.
567         * gimple.c (gimple_call_set_fn): Relocate here.
569 2015-06-25  Oleg Endo  <olegendo@gcc.gnu.org>
571         PR target/65979
572         PR target/66611
573         * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
574         the replacement insn will work.
576 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
578         * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
579         by default.
581 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
583         * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
584         * cgraph.h: Include ipa-ref.h and plugin-api.h.
585         (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
586         (symtab_node::address_can_be_compared_p): Move function.
587         * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
588         definition here.
589         * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
590         * auto-profile.c: Likewise.
591         * bb-reorder.c: Likewise.
592         * builtins.c: Likewise.
593         * calls.c: Likewise.
594         * cfgexpand.c: Likewise.
595         * cgraphbuild.c: Likewise.
596         * cgraphclones.c: Likewise.
597         * cgraphunit.c: Likewise.
598         * combine.c: Likewise.
599         * coverage.c: Likewise.
600         * data-streamer-in.c: Likewise.
601         * data-streamer-out.c: Likewise.
602         * data-streamer.c: Likewise.
603         * dbxout.c: Likewise.
604         * dwarf2out.c: Likewise.
605         * except.c: Likewise.
606         * expr.c: Likewise.
607         * final.c: Likewise.
608         * fold-const.c: Likewise.
609         * ggc-page.c: Likewise.
610         * gimple-fold.c: Likewise.
611         * gimple-iterator.c: Likewise.
612         * gimple-pretty-print.c: Likewise.
613         * gimple-streamer-in.c: Likewise.
614         * gimple-streamer-out.c: Likewise.
615         * gimple.c: Likewise.
616         * gimplify.c: Likewise.
617         * ipa-chkp.c: Likewise.
618         * ipa-comdats.c: Likewise.
619         * ipa-cp.c: Likewise.
620         * ipa-devirt.c: Likewise.
621         * ipa-icf-gimple.c: Likewise.
622         * ipa-icf.c: Likewise.
623         * ipa-inline-analysis.c: Likewise.
624         * ipa-inline-transform.c: Likewise.
625         * ipa-inline.c: Likewise.
626         * ipa-polymorphic-call.c: Likewise.
627         * ipa-profile.c: Likewise.
628         * ipa-prop.c: Likewise.
629         * ipa-pure-const.c: Likewise.
630         * ipa-ref.c: Likewise.
631         * ipa-reference.c: Likewise.
632         * ipa-split.c: Likewise.
633         * ipa-utils.c: Likewise.
634         * ipa-visibility.c: Likewise.
635         * ipa.c: Likewise.
636         * langhooks.c: Likewise.
637         * lto-cgraph.c: Likewise.
638         * lto-compress.c: Likewise.
639         * lto-opts.c: Likewise.
640         * lto-section-in.c: Likewise.
641         * lto-section-out.c: Likewise.
642         * lto-streamer-in.c: Likewise.
643         * lto-streamer-out.c: Likewise.
644         * lto-streamer.c: Likewise.
645         * omp-low.c: Likewise.
646         * opts-global.c: Likewise.
647         * passes.c: Likewise.
648         * predict.c: Likewise.
649         * print-tree.c: Likewise.
650         * profile.c: Likewise.
651         * ree.c: Likewise.
652         * sanopt.c: Likewise.
653         * stor-layout.c: Likewise.
654         * symtab.c: Likewise.
655         * toplev.c: Likewise.
656         * trans-mem.c: Likewise.
657         * tree-cfg.c: Likewise.
658         * tree-chkp.c: Likewise.
659         * tree-eh.c: Likewise.
660         * tree-emutls.c: Likewise.
661         * tree-inline.c: Likewise.
662         * tree-nested.c: Likewise.
663         * tree-parloops.c: Likewise.
664         * tree-pretty-print.c: Likewise.
665         * tree-profile.c: Likewise.
666         * tree-sra.c: Likewise.
667         * tree-ssa-alias.c: Likewise.
668         * tree-ssa-live.c: Likewise.
669         * tree-ssa-loop-ivcanon.c: Likewise.
670         * tree-ssa-loop-ivopts.c: Likewise.
671         * tree-ssa-pre.c: Likewise.
672         * tree-ssa-sccvn.c: Likewise.
673         * tree-ssa-strlen.c: Likewise.
674         * tree-ssa-structalias.c: Likewise.
675         * tree-streamer-in.c: Likewise.
676         * tree-streamer-out.c: Likewise.
677         * tree-streamer.c: Likewise.
678         * tree-switch-conversion.c: Likewise.
679         * tree-tailcall.c: Likewise.
680         * tree-vect-data-refs.c: Likewise.
681         * tree-vect-stmts.c: Likewise.
682         * tree-vectorizer.c: Likewise.
683         * tree.c: Likewise.
684         * tsan.c: Likewise.
685         * ubsan.c: Likewise.
686         * value-prof.c: Likewise.
687         * varasm.c: Likewise.
688         * varpool.c: Likewise.
689         * config/arm/arm.c: Likewise.
690         * config/bfin/bfin.c: Likewise.
691         * config/c6x/c6x.c: Likewise.
692         * config/cris/cris.c: Likewise.
693         * config/darwin-c.c: Likewise.
694         * config/darwin.c: Likewise.
695         * config/i386/i386.c: Likewise.
696         * config/i386/winnt.c: Likewise.
697         * config/microblaze/microblaze.c: Likewise.
698         * config/mips/mips.c: Likewise.
699         * config/rs6000/rs6000.c: Likewise.
700         * config/rx/rx.c: Likewise.
701         * config/s390/s390.c: Likewise.
702         * config/tilegx/mul-tables.c: Likewise.
704 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
706         * config/aarch64/aarch64.c, config/alpha/alpha.c,
707         config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
708         config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
709         config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
710         config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
711         config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
712         config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
713         config/microblaze/microblaze.c, config/mips/mips.c,
714         config/mmix/mmix.c, config/mn10300/mn10300.c,
715         config/moxie/moxie.c, config/msp430/msp430.c,
716         config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
717         config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
718         config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
719         config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
720         config/stormy16/stormy16.c, config/tilegx/tilegx.c,
721         config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
722         config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
723         target-def.h include.
724         * config/ft32/ft32.c: Likewise.  Fix misapplied hunk.
726 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
728         * Makefile.in (TARGET_DEF): Add target-insns.def.
729         (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
730         (build/gentarget-def.o): New rule.
731         (genprogrtl): Add target-def.
732         * target-insns.def, gentarget-def.c: New files.
733         * target.def: Add targetm.have_* and targetm.gen_* hooks,
734         based on the contents of target-insns.def.
735         * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
736         (HAVE_return, gen_return): Delete.
737         * target-def.h: Include insn-target-def.h.
738         * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
739         instead of direct calls.  Rely on them to do the appropriate assertions.
740         * function.c (gen_return_pattern): Likewise.  Return an rtx_insn *.
741         (convert_jumps_to_returns): Use targetm interface instead of
742         direct calls.
743         (thread_prologue_and_epilogue_insns): Likewise.
744         * reorg.c (find_end_label, dbr_schedule): Likewise.
745         * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
746         * shrink-wrap.c (convert_to_simple_return): Likewise.
747         (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
749 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
751         * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
752         config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
753         config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
754         config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
755         config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
756         config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
757         config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
758         config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
759         config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
760         config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
761         config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
762         config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
763         config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
764         config/stormy16/stormy16.c, config/tilegx/tilegx.c,
765         config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
766         config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
767         includes to end.
769 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
771         * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
772         (unbounded_int_hashmap_traits::key_type): Likewise.
773         * hash-map.h (hash_map): Get the key type from the traits.
774         * hash-traits.h (default_hash_traits): By default, inherit from the
775         template parameter.
776         * alias.c (alias_set_traits): Delete.
777         (alias_set_entry_d::children): Use alias_set_hash as the first
778         template parameter.
779         (record_alias_subset): Update accordingly.
780         * except.c (tree_hash_traits): Delete.
781         (type_to_runtime_map): Use tree_hash as the first template parameter.
782         (init_eh): Update accordingly.
783         * genmatch.c (capture_id_map_hasher): Delete.
784         (cid_map_t): Use nofree_string_hash as first template parameter.
785         * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
786         * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
787         Use symbol_compare_hash as the first template parameter in
788         subdivide_hash_map.
789         * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
790         (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
791         template parameter.
792         * passes.c (pass_registry_hasher): Delete.
793         (name_to_pass_map): Use nofree_string_hash as the first template
794         parameter.
795         (register_pass_name): Update accordingly.
796         * sanopt.c (sanopt_tree_map_traits): Delete.
797         (sanopt_tree_triplet_map_traits): Delete.
798         (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
799         template parameter.
800         (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
801         the first template parameter.
802         * sese.c (rename_map_hasher): Delete.
803         (rename_map_type): Use tree_ssa_name_hash as the first template
804         parameter.
805         * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
806         (function_summary::m_map): Use map_hash as the first template
807         parameter.
808         (function_summary::release): Update accordingly.
809         * tree-if-conv.c (phi_args_hash_traits): Delete.
810         (predicate_scalar_phi): Use tree_operand_hash as the first template
811         parameter to phi_arg_map.
812         * tree-inline.h (dependence_hasher): Delete.
813         (copy_body_data::dependence_map): Use dependence_hash as the first
814         template parameter.
815         * tree-inline.c (remap_dependence_clique): Update accordingly.
816         * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
817         (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
818         parameter.
819         (addr_stridxptr): Update accordingly.
820         * value-prof.c (profile_id_traits): Delete.
821         (cgraph_node_map): Use profile_id_hash as the first template
822         parameter.
823         (init_node_map): Update accordingly.
824         * config/alpha/alpha.c (string_traits): Delete.
825         (machine_function::links): Use nofree_string_hash as the first
826         template parameter.
827         (alpha_use_linkage, alpha_write_linkage): Update accordingly.
828         * config/m32c/m32c.c (pragma_traits): Delete.
829         (pragma_htab): Use nofree_string_hash as the first template parameter.
830         (m32c_note_pragma_address): Update accordingly.
831         * config/mep/mep.c (pragma_traits): Delete.
832         (pragma_htab): Use nofree_string_hash as the first template parameter.
833         (mep_note_pragma_flag): Update accordingly.
834         * config/mips/mips.c (mips16_flip_traits): Delete.
835         (mflip_mips16_htab): Use nofree_string_hash as the first template
836         parameter.
837         (mflip_mips16_use_mips16_p): Update accordingly.
838         (local_alias_traits): Delete.
839         (mips16_local_aliases): Use nofree_string_hash as the first template
840         parameter.
841         (mips16_local_alias): Update accordingly.
843 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
845         * hash-map-traits.h (default_hashmap_traits): Delete.
847 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
849         * hash-map-traits.h (unbounded_hashmap_traits): New class.
850         (unbounded_int_hashmap_traits): Likewise.
851         * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
853 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
855         * ipa-icf.h (symbol_compare_hash): New class.
856         (symbol_compare_hashmap_traits): Use it.
857         * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
858         (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
859         (mem_alloc_description::reverse_mem_map_t): Remove redundant
860         default_hashmap_traits.
861         * sanopt.c (sanopt_tree_triplet_hash): New class.
862         (sanopt_tree_triplet_map_traits): Use it.
864 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
866         * gengtype-parse.c (require_template_declaration): Allow '+' in
867         template parameters.  Consolidate cases.
868         * hash-traits.h (int_hash): New class.
869         * alias.c (alias_set_hash): New structure.
870         (alias_set_traits): Use it.
871         * symbol-summary.h (function_summary::map_hash): New class.
872         (function_summary::summary_hashmap_traits): Use it.
873         * tree-inline.h (dependence_hash): New class.
874         (dependence_hasher): Use it.
875         * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
876         * value-prof.c (profile_id_hash): New class.
877         (profile_id_traits): Use it.
879 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
881         * config/mips/mips.c (mips16_flip_traits): Use it.
882         (local_alias_traits, mips16_local_aliases): Convert from a map of
883         rtxes to a map of symbol names.
884         (mips16_local_alias): Update accordingly.
886 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
888         * hash-traits.h (string_hash, nofree_string_hash): New classes.
889         * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
890         * passes.c (pass_registry_hasher): Likewise.
891         * config/alpha/alpha.c (string_traits): Likewise.
892         * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
893         * config/m32c/m32c.c (pragma_traits): Likewise.
894         * config/mep/mep.c (pragma_traits): Likewise.
896 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
898         * tree-hash-traits.h (tree_hash): New class.
899         * except.c: Include tree-hash-traits.h.
900         (tree_hash_traits): Use tree_hash.
902 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
904         * tree-hash-traits.h (tree_ssa_name_hasher): New class.
905         * sese.c: Include tree-hash-traits.h.
906         (rename_map_hasher): Use tree_ssa_name_hasher.
908 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
910         * tree-hash-traits.h (tree_decl_hash): New class.
911         * tree-ssa-strlen.c: Include tree-hash-traits.h.
912         (stridxlist_hash_traits): Use tree_decl_hash.
914 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
916         * tree-hash-traits.h: New file.
917         (tree_operand_hash): New class.
918         * sanopt.c: Include tree-hash-traits.h.
919         (sanopt_tree_map_traits): Use tree_operand_hash.
920         * tree-if-conv.c: Include tree-hash-traits.h.
921         (phi_args_hash_traits): Use tree_operand_hash.
922         * tree-ssa-uncprop.c: Include tree-hash-traits.h.
923         (val_ssa_equiv_hash_traits): Use tree_operand_hash.
925 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
927         * hash-map-traits.h: Include hash-traits.h.
928         (simple_hashmap_traits): New class.
929         * mem-stats.h (hash_map): Change the default traits to
930         simple_hashmap_traits<default_hash_traits<Key> >.
932 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
934         * hash-table.h: Update comments.
936 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
938         * hash-traits.h (default_hash_traits): New structure.
939         * hash-set.h (default_hashset_traits): Delete.
940         (hash_set): Use default_hash_traits<Key> instead of
941         default_hashset_traits.  Delete hash_entry type and use Key directly.
942         * ipa-devirt.c (pair_traits): Delete.
943         (default_hash_traits <type_pair>): Override.
944         (odr_subtypes_equivalent_p): Remove pair_types template parameter.
945         (odr_types_equivalent_p, add_type_duplicate): Likewise.
947 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
949         * hash-traits.h (typed_noop_remove): Don't require a pointer type.
951 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
953         * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
954         (has_is_empty, is_empty_helper): Delete.
955         (has_mark_deleted, mark_deleted_helper): Delete.
956         (has_mark_empty, mark_empty_helper): Delete.
957         (hash_table::is_deleted): Call the Descriptor unconditionally.
958         (hash_table::is_empty): Likewise.
959         (hash_table::mark_deleted): Likewise.
960         (hash_table::mark_empty): Likewise.
962 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
964         * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash.  Remove
965         redundant typedefs and members.
966         * coverage.c (counts_entry): Inherit from pointer_hash.  Remove
967         redundant typedefs.
968         * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
969         * ipa-devirt.c (odr_name_hasher): Likewise.
970         (polymorphic_call_target_hasher): Likewise.
971         * ira-costs.c (cost_classes_hasher): Likewise.
972         * statistics.c (stats_counter_hasher): Likewise.
973         * trans-mem.c (log_entry_hasher): Likewise.
974         * tree-ssa-dom.c (expr_elt_hasher): Likewise.
975         * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
976         * tree-ssa-tail-merge.c (same_succ_def): Likewise.
977         * var-tracking.c (variable_hasher): Likewise.
978         * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
979         Remove redundant typedefs and members.
981 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
983         * hash-traits.h (ggc_cache_hasher): Rename to...
984         (ggc_cache_remove): ...this and remove typedefs.
985         (ggc_cache_ptr_hash): New class.
986         * hash-table.h: Update commentary.
987         * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
988         rather than ggc_cache_hasher.
989         (const_wide_int_hasher, reg_attr_hasher): Likewise.
990         (const_double_hasher, const_fixed_hasher): Likewise.
991         * function.c (insn_cache_hasher): Likewise.
992         * trans-mem.c (tm_wrapper_hasher): Likewise.
993         * tree.h (tree_decl_map_cache_hasher): Likewise.
994         * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
995         (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
996         * ubsan.c (tree_type_map_cache_hasher): Likewise.
997         * varasm.c (tm_clone_hasher): Likewise.
998         * config/i386/i386.c (dllimport_hasher): Likewise.
999         * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
1000         (tree_hasher): Likewise.
1002 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
1004         * hash-traits.h (ggc_hasher): Rename to...
1005         (ggc_remover): ...this and remove typedefs.
1006         (ggc_cache_hasher): Update accordingly.  Add typedefs.
1007         (ggc_ptr_hash): New class.
1008         * hash-table.h: Update comment.
1009         * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
1010         ggc_hasher.
1011         * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
1012         (tree_descriptor_hasher): Likewise.
1013         * cgraph.c (function_version_hasher): Likewise.
1014         * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
1015         (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
1016         (dw_loc_list_hasher, addr_hasher): Likewise.
1017         * function.h (used_type_hasher): Likewise.
1018         * function.c (temp_address_hasher): Likewise.
1019         * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
1020         * libfuncs.h (libfunc_hasher): Likewise.
1021         * lto-streamer.h (decl_state_hasher): Likewise.
1022         * optabs.c (libfunc_decl_hasher): Likewise.
1023         * tree-scalar-evolution.c (scev_info_hasher): Likewise.
1024         * varasm.c (section_hasher, object_block_hasher): Likewise.
1025         (const_rtx_desc_hasher): Likewise.
1026         * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
1027         * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
1029 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
1031         * hash-traits.h (free_ptr_hash): New class.
1032         * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
1033         rather than typed_free_remove.  Remove redudant typedefs.
1034         (external_ref_hasher): Likewise.
1035         * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
1036         (ehspec_hasher): Likewise.
1037         * ggc-common.c (saving_hasher): Likewise.
1038         * gimplify.c (gimplify_hasher): Likewise.
1039         * haifa-sched.c (delay_i2_hasher): Likewise.
1040         * loop-invariant.c (invariant_expr_hasher): Likewise.
1041         * loop-iv.c (biv_entry_hasher): Likewise.
1042         * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
1043         * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
1044         * tree-cfg.c (locus_discrim_hasher): Likewise.
1045         * tree-eh.c (finally_tree_hasher): Likewise.
1046         * tree-into-ssa.c (var_info_hasher): Likewise.
1047         * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
1048         * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
1049         * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
1050         * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
1051         * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
1052         * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
1053         (shared_bitmap_hasher): Likewise.
1054         * tree-ssa-threadupdate.c (redirection_data): Likewise.
1055         * tree-vectorizer.h (peel_info_hasher): Likewise.
1056         * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
1057         * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
1059 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
1061         * hash-table.h: Update comments.
1062         * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
1063         (nofree_ptr_hash): New class.
1064         * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
1065         than typed_noop_remove.  Remove redudant typedefs.
1066         * attribs.c (attribute_hasher): Likewise.
1067         * cfg.c (bb_copy_hasher): Likewise.
1068         * cselib.c (cselib_hasher): Likewise.
1069         * dse.c (invariant_group_base_hasher): Likewise.
1070         * dwarf2cfi.c (trace_info_hasher): Likewise.
1071         * dwarf2out.c (macinfo_entry_hasher): Likewise.
1072         (comdat_type_hasher, loc_list_hasher): Likewise.
1073         * gcse.c (pre_ldst_expr_hasher): Likewise.
1074         * genmatch.c (id_base): Likewise.
1075         * genrecog.c (test_pattern_hasher): Likewise.
1076         * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
1077         * haifa-sched.c (delay_i1_hasher): Likewise.
1078         * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
1079         * ipa-icf.h (congruence_class_group_hash): Likewise.
1080         * ipa-profile.c (histogram_hash): Likewise.
1081         * ira-color.c (allocno_hard_regs_hasher): Likewise.
1082         * lto-streamer.h (string_slot_hasher): Likewise.
1083         * lto-streamer.c (tree_entry_hasher): Likewise.
1084         * plugin.c (event_hasher): Likewise.
1085         * postreload-gcse.c (expr_hasher): Likewise.
1086         * store-motion.c (st_expr_hasher): Likewise.
1087         * tree-sra.c (uid_decl_hasher): Likewise.
1088         * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
1089         (ssa_name_var_hash): Likewise.
1090         * tree-ssa-live.c (tree_int_map_hasher): Likewise.
1091         * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
1092         * tree-ssa-pre.c (pre_expr_d): Likewise.
1093         * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
1094         * vtable-verify.h (registration_hasher): Likewise.
1095         * vtable-verify.c (vtbl_map_hasher): Likewise.
1096         * config/arm/arm.c (libcall_hasher): Likewise.
1097         * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
1098         * config/ia64/ia64.c (bundle_state_hasher): Likewise.
1099         * config/sol2.c (comdat_entry_hasher): Likewise.
1100         * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
1101         (print_fold_checksum, fold_checksum_tree): Likewise.
1102         (debug_fold_checksum, fold_build1_stat_loc): Likewise.
1103         (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
1104         (fold_build_call_array_loc): Likewise.
1105         * tree-ssa-ccp.c (gimple_htab): Likewise.
1106         * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
1107         rather than pointer_type.
1109 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
1111         * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
1112         (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
1114 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
1116         * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
1117         (ggc_hasher::ggc_mx): Likewise.
1118         (ggc_cache_hasher): Inherit from ggc_hasher.  Remove definitions
1119         that duplicate ggc_hasher ones.
1121 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
1123         * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
1124         (gt_cleare_cache): Check here for deleted and empty entries.
1125         Replace handle_cache_entry with a call to keep_cache_entry.
1126         * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
1127         (ggc_cache_hasher::keep_cache_entry): New function.
1128         * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
1129         (tm_wrapper_hasher::keep_cache_entry): New function.
1130         * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
1131         (tree_vec_map_cache_hasher::keep_cache_entry): New function.
1132         * tree.c (type_cache_hasher::handle_cache_entry): Delete.
1133         (type_cache_hasher::keep_cache_entry): New function.
1134         (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
1135         (tree_vec_map_cache_hasher::keep_cache_entry): New function.
1136         * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
1137         (tree_type_map_cache_hasher::keep_cache_entry): New function.
1138         * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
1139         (tm_clone_hasher::keep_cache_entry): New function.
1140         * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
1141         (dllimport_hasher::keep_cache_entry): New function.
1143 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
1145         * hash-table.h: Include hash-traits.h.
1146         (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
1147         (ggc_cache_hasher): Move to...
1148         * hash-traits.h: ...this new file.
1150 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
1152         * tree-core.h (struct tree_optimization_option): Make opts a pointer to
1153         struct cl_optimization.
1154         * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
1155         * tree.c (make_node_stat): Allocate cl_optimization struct.
1156         (copy_node_stat): Allocate and copy cl_optimization struct.
1158 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
1160         * function.h (struct incoming_args): Move struct.
1161         (pass_by_reference, reference_callee_copied): Remove prototypes.
1162         * emit-rtl.h (struct incoming_args): Relocate struct here.
1163         * calls.h (pass_by_reference, reference_callee_copied): Relocate
1164         prototypes here.
1165         * function.c (pass_by_reference, reference_callee_copied): Move.
1166         * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
1167         * cfgloop.h: Don't include tm.h or hard-reg-set.h.
1168         * ipa-chkp.c: Include calls.h.
1170 2015-06-25  Andrew Macleod  <amacleod@redhat.com>
1172         * alias.h (alias_set_type): Move typedef.
1173         * coretypes.h (alias_set_type): Relocate typedef here.
1174         * rtl.h: Don't include alias.h.
1176 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
1178         * cgraph.h (cgraph_rtl_info): Move to rtl.h
1179         (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
1180         and instance.
1181         * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
1182         * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
1183         doesn't exist.
1184         * calls.c: Include hard-reg-set.h before rtl.h.
1185         * ira.c: Likewise.
1187 2015-06-25  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
1188             Vladimir Makarov  <vmakarov@redhat.com>
1190         * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
1191         Add assert.
1193 2015-06-25  Richard Biener  <rguenther@suse.de>
1195         * fold-const.c (fold_binary_loc): Move simplification of
1196         (X <<>> C1) & C2 ...
1197         * match.pd: ... here.
1199 2015-06-25  Eric Botcazou  <ebotcazou@adacore.com>
1201         * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
1203 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
1205         * match.pd: Add patterns for vec_conds between 1 and 0.
1207 2015-06-25  Richard Biener  <rguenther@suse.de>
1209         * tree-vect-stmts.c (vectorizable_conversion): Do not set
1210         STMT_VINFO_VEC_STMT for SLP.
1211         (vectorizable_store): Likewise.
1212         (vectorizable_load): Likewise.
1213         (vect_transform_stmt): Catch SLP vectorization clobbering
1214         STMT_VINFO_VEC_STMT.
1216 2015-06-25  Richard Biener  <rguenther@suse.de>
1218         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
1219         dumping.
1220         (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
1221         cleanup resulting dead code and parameters.
1222         (vect_transform_slp_perm_load): Adjust.
1224 2015-06-25  Nick Clifton  <nickc@redhat.com>
1226         * config/bfin/bfin.c (bfin_expand_prologue): Set
1227         current_function_static_stack_size if flag_stack_usage_info is
1228         set.
1229         * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
1230         * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
1231         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
1232         * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
1234 2015-06-25  Tom de Vries  <tom@codesourcery.com>
1236         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
1237         comment that the generated IV is unsigned.
1239 2015-06-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1241         PR target/29693
1242         * config/arm/arm.c (arm_dbx_register_number): Return
1243         DWARF_FRAME_REGISTERS by default.
1245 2015-06-25  Tom de Vries  <tom@codesourcery.com>
1247         * dominance.c (calculate_dominance_info): Fix verify_dominators call
1248         argument.  Call verify_dominator when reusing dominator info.
1250 2015-06-24  Kaz Kojima  <kkojima@gcc.gnu.org>
1252         PR target/66563
1253         * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
1254         an additional element of the unspec vector.  Modify indices
1255         of operands.
1256         (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
1257         * config/sh/sh.c (prepare_move_operands): Pass incremented
1258         const_int to gen_GOTaddr2picreg.
1259         (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
1261 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
1263         * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
1264         Condition on TARGET_FLOAT.
1266 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
1268         * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
1269         and (no)crypto.
1271 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
1273         * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
1275         * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
1276         aarch64_err_no_fpadvsimd.
1278         * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
1279         (aarch64_layout_arg, aarch64_init_cumulative_args): Use
1280         aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
1281         (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
1282         Turn error into assert, test TARGET_FLOAT.
1283         (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
1284         TARGET_FLOAT.
1286 2015-06-24  Aldy Hernandez  <aldyh@redhat.com>
1288         PR debug/66482
1289         * dwarf2out.c (gen_formal_parameter_die): Remove assert.
1291 2015-06-24  Ilya Enkovich  <enkovich.gnu@gmail.com>
1293         * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
1295 2015-06-24 Renlin Li <renlin.li@arm.com>
1297         * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
1298         __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
1300 2015-06-24  Richard Biener  <rguenther@suse.de>
1302         * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
1303         (main): Likewise.
1304         (lower_opt_convert): Support lowering of conditional view_convert.
1305         (parser::parse_operation): Likewise.
1306         (parser::parse_for): Likewise.
1308 2015-06-24  Renlin Li  <renlin.li@arm.com>
1310         * varasm.c (emit_local): Use unsigned int for align variable.
1312 2015-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1314         PR target/63408
1315         * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
1316         for negative numbers.
1318 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1320         PR rtl-optimization/66306
1321         * reload.c (find_reloads): Swap the match_dup info for
1322         commutative operands.
1324 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1326         * config/s390/vx-builtins.md
1327         ("vec_scatter_element<mode>_<non_vec_int>")
1328         ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
1329         attribute with bhfgq.
1331 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1333         * config/s390/s390-builtins.def: Fix vpopct instruction comments.
1335 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1337         * config/s390/s390-builtin-types.def: Add flag to indicate the
1338         options under which the function type is needed.
1339         * config/s390/s390-builtins.def: Add flag to indicate the options
1340         under which the builtin is enabled.
1341         * config/s390/s390-builtins.h: Add flags parameter to macro
1342         definitions.
1343         (bflags_for_builtin): New function.
1344         (flags_for_builtin): Renamed to ...
1345         (opflags_for_builtin): ... this.
1346         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
1347         flags_for_builtin to bflags_for_builtin and
1348         flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
1349         * config/s390/s390.c: Add initialization of bflags_builtin and
1350         opflags_builtin arrays.
1351         Remove code for flags_builtin.
1352         (s390_init_builtins): Only create builtin function types if one of
1353         their flags is active.
1354         Only create builtins if all of their flags are active.
1355         (s390_expand_builtin): Rename flags_for_builtin to
1356         opflags_for_builtin.
1358 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1360         * config/s390/vecintrin.h: Remove internal builtins.
1362 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1364         * config/s390/s390.c (s390_secondary_reload): Fix check for
1365         GENERAL_REGS register class.
1367 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1369         * config/s390/s390.c (s390_support_vector_misalignment): Call
1370         default implementation for !TARGET_VX.
1372 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1374         * config/s390/s390.c (s390_legitimate_constant_p): Add
1375         TARGET_VX check.
1377 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1379         * config/s390/s390.c (s390_vector_abi): New variable definition.
1380         (s390_check_type_for_vector_abi): New function.
1381         (TARGET_ASM_FILE_END): New macro definition.
1382         (s390_asm_file_end): New function.
1383         (s390_function_arg): Call s390_check_type_for_vector_abi.
1384         (s390_gimplify_va_arg): Likewise.
1385         * configure: Regenerate.
1386         * configure.ac: Check for .gnu_attribute Binutils feature.
1388 2015-06-23  Chen Gang  <gang.chen.5i5j@gmail.com>
1390         PR target/65803
1391         * config/bfin/bfin.c (hwloop_optimize): Initialize
1392         JUMP_LABEL for newly created jump.
1394 2015-06-23  Tristan Gingold  <gingold@adacore.com>
1396         * collect-utils.c (collect_wait): Unlink the response file here
1397         instead of...
1398         (do_wait): ...here.
1399         (utils_cleanup): ...and here.
1401 2015-06-23  Richard Sandiford  <richard.sandiford@arm.com>
1403         * df-scan.c: Don't include target-def.h.
1404         * targhooks.c: Likewise.
1405         * config/arm/arm-c.c: Likewise.
1406         * config/i386/i386-c.c: Likewise.
1407         * config/nds32/nds32-cost.c: Likewise.
1408         * config/nds32/nds32-fp-as-gp.c: Likewise.
1409         * config/nds32/nds32-intrinsic.c: Likewise.
1410         * config/nds32/nds32-isr.c: Likewise.
1411         * config/nds32/nds32-md-auxiliary.c: Likewise.
1412         * config/nds32/nds32-memory-manipulation.c: Likewise.
1413         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
1414         * config/nds32/nds32-predicates.c: Likewise.
1416 2015-06-23  Richard Biener  <rguenther@suse.de>
1418         PR tree-optimization/66636
1419         * tree-vect-stmts.c (vectorizable_store): Properly compute the
1420         def type for further defs for strided stores.
1422 2015-06-23  Nathan Sidwell  <nathan@codesourcery.com>
1424         * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
1425         conditional selects.
1426         (setcc_int<mode>, setcc_float<mode>): Reformat.
1428 2015-06-23  Marek Polacek  <polacek@redhat.com>
1430         * match.pd ((x + y) - (x | y) -> x & y,
1431         (x + y) - (x & y) -> x | y): New patterns.
1433 2015-06-23  Ludovic Courtès  <ludo@gnu.org>
1435         PR 65711
1436         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
1437         '-dynamic-linker' within %{!shared: ...}.
1439 2015-06-23  Uros Bizjak  <ubizjak@gmail.com>
1441         PR target/66560
1442         * config/i386/predicates.md (addsub_vm_operator): New predicate.
1443         (addsub_vs_operator): Ditto.
1444         (addsub_vs_parallel): Ditto.
1445         * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
1446         (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
1447         Put minus RTX before plus and adjust vec_merge selector.
1448         (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
1449         (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
1450         (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
1451         (addsub vec_merge splitters): New combiner splitters.
1452         (addsub vec_select/vec_concat splitters): Ditto.
1454 2015-06-23  Bin Cheng  <bin.cheng@arm.com>
1456         PR tree-optimization/66449
1457         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
1458         POINTER_PLUS_EXPR for pointers.
1460 2015-06-23  Alan Modra  <amodra@gmail.com>
1462         * rtlanal.c (commutative_operand_precedence): Correct comments.
1463         * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
1464         declaration.  Return an int.  Distinguish REG,REG return from
1465         others.
1466         (struct simplify_plus_minus_op_data): Make local to function.
1467         (simplify_plus_minus): Don't set canonicalized if merely sorting
1468         registers.  Avoid packing ops if nothing changes.  White space fixes.
1470 2015-06-22  Pierre-Marie de Rodat  <derodat@adacore.com>
1472         * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
1473         -fdump-ada-spec is passed but not if -fsyntax-only is.
1475 2015-06-22  Vladimir Makarov  <vmakarov@redhat.com>
1477         PR bootstrap/63740
1478         * lra-lives.c (process_bb_lives): Check insn copying the same
1479         reload pseudo and don't create a copy for it.
1481 2015-06-22  Tom de Vries  <tom@codesourcery.com>
1483         * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
1484         for cond_stmt.
1486 2015-06-22  Tom de Vries  <tom@codesourcery.com>
1488         * builtins.def (DEF_GOMP_BUILTIN): Test
1489         'flag_tree_parallelize_loops > 1' instead of
1490         'flag_tree_parallelize_loops'.  Test flag_cilkplus.
1492 2015-06-22  Tom de Vries  <tom@codesourcery.com>
1494         * dominance.c (calculate_dominance_info): Verify dominators if
1495         early-out.
1497 2015-06-22  Marek Polacek  <polacek@redhat.com>
1499         * match.pd ((x ^ y) ^ (x | y) -> x & y,
1500         (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
1501         (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
1502         (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
1504 2015-06-22  Uros Bizjak  <ubizjak@gmail.com>
1506         PR target/65871
1507         * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
1508         cost of embedded comparison.
1510 2015-06-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1512         PR target/65914
1513         * config/rs6000/predicates.md (altivec_register_operand): Permit
1514         virtual stack registers.
1515         (vsx_register_operand): Likewise.
1516         (vfloat_operand): Likewise.
1517         (vint_operand): Likewise.
1518         (vlogical_operand): Likewise.
1520 2015-06-22  Richard Biener  <rguenther@suse.de>
1522         * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
1523         and single_scalar_iteration_cost members.
1524         (LOOP_VINFO_SCALAR_ITERATION_COST): New.
1525         (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
1526         (vect_get_single_scalar_iteration_cost): Remove.
1527         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
1528         Use LOOP_VINFO_SCALAR_ITERATION_COST.
1529         * tree-vect-loop.c (destroy_loop_vec_info): Free
1530         scalar_cost_vec.
1531         (vect_get_single_scalar_iteration_cost): Compute result into
1532         LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
1533         LOOP_VINFO_SCALAR_ITERATION_COST.  Make static.
1534         (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
1535         (vect_estimate_min_profitable_iters): Use them.
1537 2015-06-22  Christian Bruel  <christian.bruel@st.com>
1539         PR target/52144
1540         * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
1541         (TARGET_INSERT_ATTRIBUTES): Define.
1542         (thumb_flipper): New var.
1543         * config/arm/arm.opt (-mflip-thumb): New switch.
1545 2015-06-22  Jan Hubicka  <hubicka@ucw.cz>
1546             Martin Liska  <mliska@suse.cz>
1548         PR ipa/65908
1549         * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
1550         construction of arg_types.
1551         (sem_function::sem_function): Likewise.
1552         (sem_function::~sem_function): Remove destruction of arg_types.
1553         (sem_function::compatible_parm_types_p): New function.
1554         (sem_function::equals_wpa): Reorg matching of return values
1555         and parameter types.
1556         (sem_function::equals_private): Reorg mathcing of argument types.
1557         (sem_function::parse_tree_args): Remove.
1558         * ipa-icf.h (init_wpa): Do not call it.
1559         (parse_tree_args): Remove.
1560         (compatible_parm_types_p): Declare.
1561         (result_type): Remove.
1562         (arg_types): Remove.
1564 2015-06-22  Jan Hubicka  <hubicka@ucw.cz>
1566         PR ipa/66351
1567         * ipa-polymorphic-call.c
1568         (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
1569         initializing alias oracle; fix formating; set base_alias_set if it
1570         is known.
1572 2015-06-22  Mikhail Maltsev  <maltsevm@gmail.com>
1574         * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
1575         (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
1576         (find_inc): Likewise.
1577         * combine.c (combine_simplify_rtx): Use std::swap instead of manually
1578         swapping.
1579         * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
1580         * df-scan.c (df_swap_refs): Remove.
1581         (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
1582         * dominance.c (link_roots): Use std::swap instead of manually swapping.
1583         * expr.c (expand_expr_real_2, do_store_flag): Likewise.
1584         * fold-const.c (fold_relational_const): Likewise.
1585         * genattrtab.c (simplify_test_exp): Likewise.
1586         * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
1587         gimple_simplify): Likewise.
1588         * ifcvt.c (noce_try_abs, find_if_header): Likewise.
1589         * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
1590         * ipa-devirt.c (add_type_duplicate): Likewise.
1591         * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
1592         * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
1593         * lra.c (lra_create_copy): Likewise.
1594         * lto-streamer-out.c (DFS::DFS): Likewise.
1595         * modulo-sched.c (get_sched_window): Likewise.
1596         * omega.c (omega_pretty_print_problem): Likewise.
1597         * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
1598         * reload1.c (reloads_unique_chain_p): Likewise.
1599         * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
1600         (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
1601         use std::swap.
1602         * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
1603         manually swapping.
1604         * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
1605         predicate_mem_writes): Likewise.
1606         * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
1607         * tree-predcom.c (combine_chains): Likewise.
1608         * tree-ssa-alias.c (nonoverlapping_component_refs_p,
1609         refs_may_alias_p_1): Likewise.
1610         * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
1611         * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
1612         * tree-ssa-loop-niter.c (refine_bounds_using_guard,
1613         number_of_iterations_cond): Likewise.
1614         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
1615         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
1616         * tree-vect-slp.c (vect_build_slp_tree): Likewise.
1617         * tree-vect-stmts.c (supportable_widening_operation): Likewise.
1618         * tree-vrp.c (extract_range_from_binary_expr_1,
1619         extract_range_from_unary_expr_1): Likewise.
1621 2015-06-20  Marek Polacek  <polacek@redhat.com>
1623         * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
1625 2015-06-19  Kaz Kojima  <kkojima@gcc.gnu.org>
1627         PR target/66591
1628         * config/sh/sh.c (prepare_move_operands): Replace subreg
1629         index term with R0 for base and index addressing.
1631 2015-06-19  Jim Wilson  <jim.wilson@linaro.org>
1633         * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
1634         op1 is an fp zero.
1635         (movsf_aarch64): Change condition from register_operand to
1636         aarch64_reg_or_fp_zero for op1.  Change type for alternative 6 to
1637         load1.  Change type for alternative 7 to store1.
1638         (movdf_aarch64): Likewise.
1640 2015-06-19  James Greenhalgh  <james.greenhalgh@arm.com>
1642         * config/vax/vax.md: Adjust sign/zero extend patterns to
1643         handle SUBREGs in operands[1].
1645 2015-06-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1647         * config/i386/i386.c (ix86_function_versions): Use std::swap instead
1648         of manually swapping.
1649         (expand_vec_perm_interleave2): Likewise.
1651 2015-06-19  Ilya Enkovich  <enkovich.gnu@gmail.com>
1653         * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
1654         reuse bounds created for abnormal ssa names.
1656 2015-06-19  Jakub Jelinek  <jakub@redhat.com>
1658         * config/nvptx/nvptx.md (allocate_stack): Rename to...
1659         (allocate_stack_<mode>): ... this, and add :P on both
1660         match_operand and unspec.
1661         (allocate_stack): New expander.
1663 2015-06-19  Christian Bruel  <christian.bruel@st.com>
1665         PR target/66541
1666         PR target/52144
1667         * config/arm/arm.c (arm_set_current_function): Handle
1668         explicit default options.
1670 2015-06-18  Uros Bizjak  <ubizjak@gmail.com>
1672         * config/i386/i386.md (*movsicc_noc_zext): New insn.
1673         (zero-extended cmove with mem peephole2): New pattern.
1674         (cmove with mem peephole2): Merge patterns.
1676 2015-06-18  Segher Boessenkool  <segher@kernel.crashing.org>
1678         * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
1680 2015-06-18  Steve Ellcey  <sellcey@imgtec.com>
1682         * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
1683         * config/mips/mips.md (*madd4<mode>): Ditto.
1684         (*nmadd3<mode>) Ditto.
1685         (*nmadd4<mode>_fastmath): Ditto.
1686         (*nmadd3<mode>_fastmath): Ditto.
1687         (*nmsub4<mode>): Ditto.
1688         (*nmsub3<mode>): Ditto.
1689         (*nmsub4<mode>_fastmath): Ditto.
1690         (*nmsub3<mode>_fastmath): Ditto.
1692 2015-06-18  Michael Matz  <matz@suse.de>
1694         PR middle-end/66253
1695         * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
1696         grouped strided stores.
1697         (vectorizable_load): Don't use the DR from first_stmt in
1698         the non-SLP grouped strided case.
1700 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
1702         PR target/66569
1703         * function.c (assign_bounds): Add arguments assign_regs,
1704         assign_special, assign_bt.
1705         (assign_parms): For vararg functions handle bounds in BT
1706         and special slots after incoming vararg bounds.
1708 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
1710         PR middle-end/66568
1711         * cfgexpand.c (expand_return): Handle missing bounds.
1712         (expand_gimple_stmt_1): Likewise.
1713         * tree-chkp.c (chkp_expand_zero_bounds): New.
1714         * tree-chkp.h (chkp_expand_zero_bounds): New.
1716 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
1718         PR middle-end/66567
1719         * ipa-chkp.c (chkp_maybe_create_clone): Require
1720         functions to be instrumentable.
1721         * tree-chkp.c (chkp_replace_function_pointer): Use
1722         chkp_instrumentable_p instead of attribute check.
1724 2015-06-18  Richard Biener  <rguenther@suse.de>
1726         PR tree-optimization/66510
1727         * tree-vect-stmts.c (vectorizable_load): Properly compute the
1728         number of vector loads for SLP permuted loads.
1729         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
1730         check the stride for loop vectorization.
1731         (vect_enhance_data_refs_alignment): Deal with SLP adjusted
1732         vectorization factor.
1733         (vect_analyze_group_access): If the group size is not a power
1734         of two require a epilogue loop.
1735         * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
1736         compute and optimizing and alias test pruning after final
1737         vectorization factor computation.
1738         * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
1739         vector alignment.
1740         (vect_transform_slp_perm_load): Properly compute the original
1741         number of vector load stmts.
1743 2015-06-18  Uros Bizjak  <ubizjak@gmail.com>
1745         * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
1746         "unlikely character , in @var" warning.
1748 2015-06-17  Uros Bizjak  <ubizjak@gmail.com>
1750         * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
1751         (ix86_function_arg_advance): Ditto.
1752         (ix86_pass_by_reference): Ditto.  Rewrite MS_ABI part.
1754 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
1756         * function.h (struct rtl_data): Remove struct and accessor macros.
1757         * emit-rtl.h (struct rtl_data): Relocate to here.
1758         * Makefile.in (GTFILES): Add emit-rtl.h.
1759         * df-core.c: Include emit-rtl.h.
1760         * genattrtab.c: Likewise.
1761         * genconditions.c: Likewise.
1762         * genpreds.c: Likewise.
1763         * genrecog.c: Likewise.
1764         * regcprop.c: Likewise.
1765         * resource.c: Likewise.
1766         * sched-rgn.c: Likewise.
1767         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
1768         * config/i386/winnt.c: Likewise.
1770 2015-06-17  Jakub Jelinek  <jakub@redhat.com>
1772         PR middle-end/66429
1773         * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
1774         instead of DECL_STRUCT_FUNCTION (child_fn).  Or in has_simduid_loops
1775         and has_force_vectorize_loops flags from cfun into
1776         child_cfun.
1777         (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
1778         if simduid is non-NULL.
1779         * tree-pass.h (make_pass_simduid_cleanup): New prototype.
1780         * passes.def (pass_simduid_cleanup): Add new pass after loop
1781         passes.
1782         * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
1783         indirection from htab argument's type.
1784         (shrink_simd_arrays): New function.
1785         (vectorize_loops): Use it.  Adjust adjust_simduid_builtins caller.
1786         Don't call adjust_simduid_builtins if there are no loops.
1787         (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
1788         (pass_simduid_cleanup::execute): New method.
1789         (make_pass_simduid_cleanup): New function.
1791 2017-06-17  Andrew MacLeod  <amacleod@redhat.com>
1793         * tree-core.h (tree_target_option): Make opts field a pointer to a
1794         cl_target_option instead of an instance of the struct.
1795         * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
1796         the structure.
1797         * tree.c (make_node_stat ): Allocate a cl_target_option struct for
1798         TARGET_OPTION_NODE.
1799         (copy_node_stat): Allocate and copy struct cl_target_option.
1801 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
1803         * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
1804         Remove conditional exposure of prototypes.
1805         (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
1806         * tree.c (anon_aggrname_format, anon_aggrname_p): New.  Replace macro
1807         definitions in tree.h with functions.
1808         * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
1809         anon_aggrname_p.
1810         * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
1812 2015-06-17  Segher Boessenkool  <segher@kernel.crashing.org>
1814         * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
1815         (*cmp<mode>_signed): ... this.
1816         (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
1817         (*cmp<mode>_unsigned): ... this.  Remove %b.
1819 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
1821         * coretypes.h: Include input.h and as-a.h.
1822         * rtl.h: Include input.h and as-a.h for generator files.
1823         * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
1824         * vec.c: Don't include diagnostic-core.h.
1825         * alias.c: Do not include input.h, line-map.h or is-a.h.
1826         * asan.c: Likewise.
1827         * attribs.c: Likewise.
1828         * auto-inc-dec.c: Likewise.
1829         * auto-profile.c: Likewise.
1830         * bb-reorder.c: Likewise.
1831         * bt-load.c: Likewise.
1832         * builtins.c: Likewise.
1833         * caller-save.c: Likewise.
1834         * calls.c: Likewise.
1835         * ccmp.c: Likewise.
1836         * cfg.c: Likewise.
1837         * cfganal.c: Likewise.
1838         * cfgbuild.c: Likewise.
1839         * cfgcleanup.c: Likewise.
1840         * cfgexpand.c: Likewise.
1841         * cfghooks.c: Likewise.
1842         * cfgloop.c: Likewise.
1843         * cfgloop.h: Likewise.
1844         * cfgloopanal.c: Likewise.
1845         * cfgloopmanip.c: Likewise.
1846         * cfgrtl.c: Likewise.
1847         * cgraph.c: Likewise.
1848         * cgraphbuild.c: Likewise.
1849         * cgraphclones.c: Likewise.
1850         * cgraphunit.c: Likewise.
1851         * cilk-common.c: Likewise.
1852         * combine-stack-adj.c: Likewise.
1853         * combine.c: Likewise.
1854         * compare-elim.c: Likewise.
1855         * convert.c: Likewise.
1856         * coverage.c: Likewise.
1857         * cppbuiltin.c: Likewise.
1858         * cprop.c: Likewise.
1859         * cse.c: Likewise.
1860         * cselib.c: Likewise.
1861         * data-streamer-in.c: Likewise.
1862         * data-streamer-out.c: Likewise.
1863         * data-streamer.c: Likewise.
1864         * dbxout.c: Likewise.
1865         * dce.c: Likewise.
1866         * ddg.c: Likewise.
1867         * debug.c: Likewise.
1868         * df-core.c: Likewise.
1869         * df-problems.c: Likewise.
1870         * df-scan.c: Likewise.
1871         * df.h: Likewise.
1872         * dfp.c: Likewise.
1873         * diagnostic-core.h: Likewise.
1874         * diagnostic.c: Likewise.
1875         * dojump.c: Likewise.
1876         * dominance.c: Likewise.
1877         * domwalk.c: Likewise.
1878         * double-int.c: Likewise.
1879         * dse.c: Likewise.
1880         * dumpfile.c: Likewise.
1881         * dumpfile.h: Likewise.
1882         * dwarf2asm.c: Likewise.
1883         * dwarf2cfi.c: Likewise.
1884         * dwarf2out.c: Likewise.
1885         * emit-rtl.c: Likewise.
1886         * et-forest.c: Likewise.
1887         * except.c: Likewise.
1888         * explow.c: Likewise.
1889         * expmed.c: Likewise.
1890         * expr.c: Likewise.
1891         * final.c: Likewise.
1892         * fixed-value.c: Likewise.
1893         * fold-const.c: Likewise.
1894         * function.c: Likewise.
1895         * fwprop.c: Likewise.
1896         * gcc-plugin.h: Likewise.
1897         * gcse.c: Likewise.
1898         * generic-match-head.c: Likewise.
1899         * ggc-page.c: Likewise.
1900         * gimple-builder.c: Likewise.
1901         * gimple-expr.c: Likewise.
1902         * gimple-fold.c: Likewise.
1903         * gimple-iterator.c: Likewise.
1904         * gimple-low.c: Likewise.
1905         * gimple-match-head.c: Likewise.
1906         * gimple-pretty-print.c: Likewise.
1907         * gimple-ssa-isolate-paths.c: Likewise.
1908         * gimple-ssa-strength-reduction.c: Likewise.
1909         * gimple-streamer-in.c: Likewise.
1910         * gimple-streamer-out.c: Likewise.
1911         * gimple-streamer.h: Likewise.
1912         * gimple-walk.c: Likewise.
1913         * gimple.c: Likewise.
1914         * gimplify-me.c: Likewise.
1915         * gimplify.c: Likewise.
1916         * godump.c: Likewise.
1917         * graph.c: Likewise.
1918         * graphite-blocking.c: Likewise.
1919         * graphite-dependences.c: Likewise.
1920         * graphite-interchange.c: Likewise.
1921         * graphite-isl-ast-to-gimple.c: Likewise.
1922         * graphite-optimize-isl.c: Likewise.
1923         * graphite-poly.c: Likewise.
1924         * graphite-scop-detection.c: Likewise.
1925         * graphite-sese-to-poly.c: Likewise.
1926         * graphite.c: Likewise.
1927         * haifa-sched.c: Likewise.
1928         * hw-doloop.c: Likewise.
1929         * ifcvt.c: Likewise.
1930         * init-regs.c: Likewise.
1931         * input.c: Likewise.
1932         * internal-fn.c: Likewise.
1933         * ipa-chkp.c: Likewise.
1934         * ipa-comdats.c: Likewise.
1935         * ipa-cp.c: Likewise.
1936         * ipa-devirt.c: Likewise.
1937         * ipa-icf-gimple.c: Likewise.
1938         * ipa-icf.c: Likewise.
1939         * ipa-inline-analysis.c: Likewise.
1940         * ipa-inline-transform.c: Likewise.
1941         * ipa-inline.c: Likewise.
1942         * ipa-polymorphic-call.c: Likewise.
1943         * ipa-profile.c: Likewise.
1944         * ipa-prop.c: Likewise.
1945         * ipa-pure-const.c: Likewise.
1946         * ipa-ref.c: Likewise.
1947         * ipa-reference.c: Likewise.
1948         * ipa-split.c: Likewise.
1949         * ipa-utils.c: Likewise.
1950         * ipa-visibility.c: Likewise.
1951         * ipa.c: Likewise.
1952         * ira-build.c: Likewise.
1953         * ira-color.c: Likewise.
1954         * ira-conflicts.c: Likewise.
1955         * ira-costs.c: Likewise.
1956         * ira-emit.c: Likewise.
1957         * ira-lives.c: Likewise.
1958         * ira.c: Likewise.
1959         * jump.c: Likewise.
1960         * langhooks.c: Likewise.
1961         * lcm.c: Likewise.
1962         * loop-doloop.c: Likewise.
1963         * loop-init.c: Likewise.
1964         * loop-invariant.c: Likewise.
1965         * loop-iv.c: Likewise.
1966         * loop-unroll.c: Likewise.
1967         * lower-subreg.c: Likewise.
1968         * lra-assigns.c: Likewise.
1969         * lra-coalesce.c: Likewise.
1970         * lra-constraints.c: Likewise.
1971         * lra-eliminations.c: Likewise.
1972         * lra-lives.c: Likewise.
1973         * lra-remat.c: Likewise.
1974         * lra-spills.c: Likewise.
1975         * lra.c: Likewise.
1976         * lto-cgraph.c: Likewise.
1977         * lto-compress.c: Likewise.
1978         * lto-opts.c: Likewise.
1979         * lto-section-in.c: Likewise.
1980         * lto-section-out.c: Likewise.
1981         * lto-streamer-in.c: Likewise.
1982         * lto-streamer-out.c: Likewise.
1983         * lto-streamer.c: Likewise.
1984         * mcf.c: Likewise.
1985         * mode-switching.c: Likewise.
1986         * modulo-sched.c: Likewise.
1987         * omega.c: Likewise.
1988         * omp-low.c: Likewise.
1989         * optabs.c: Likewise.
1990         * opts-global.c: Likewise.
1991         * opts.h: Likewise.
1992         * passes.c: Likewise.
1993         * plugin.c: Likewise.
1994         * postreload-gcse.c: Likewise.
1995         * postreload.c: Likewise.
1996         * predict.c: Likewise.
1997         * pretty-print.h: Likewise.
1998         * print-rtl.c: Likewise.
1999         * print-tree.c: Likewise.
2000         * profile.c: Likewise.
2001         * real.c: Likewise.
2002         * realmpfr.c: Likewise.
2003         * recog.c: Likewise.
2004         * ree.c: Likewise.
2005         * reg-stack.c: Likewise.
2006         * regcprop.c: Likewise.
2007         * reginfo.c: Likewise.
2008         * regrename.c: Likewise.
2009         * regstat.c: Likewise.
2010         * reload.c: Likewise.
2011         * reload1.c: Likewise.
2012         * reorg.c: Likewise.
2013         * resource.c: Likewise.
2014         * rtl-chkp.c: Likewise.
2015         * rtl-error.c: Likewise.
2016         * rtlanal.c: Likewise.
2017         * rtlhooks.c: Likewise.
2018         * sanopt.c: Likewise.
2019         * sched-deps.c: Likewise.
2020         * sched-ebb.c: Likewise.
2021         * sched-rgn.c: Likewise.
2022         * sched-vis.c: Likewise.
2023         * sdbout.c: Likewise.
2024         * sel-sched-dump.c: Likewise.
2025         * sel-sched-ir.c: Likewise.
2026         * sel-sched.c: Likewise.
2027         * sese.c: Likewise.
2028         * shrink-wrap.c: Likewise.
2029         * simplify-rtx.c: Likewise.
2030         * stack-ptr-mod.c: Likewise.
2031         * statistics.c: Likewise.
2032         * stmt.c: Likewise.
2033         * stor-layout.c: Likewise.
2034         * store-motion.c: Likewise.
2035         * streamer-hooks.c: Likewise.
2036         * stringpool.c: Likewise.
2037         * symtab.c: Likewise.
2038         * target-globals.c: Likewise.
2039         * targhooks.c: Likewise.
2040         * toplev.c: Likewise.
2041         * tracer.c: Likewise.
2042         * trans-mem.c: Likewise.
2043         * tree-affine.c: Likewise.
2044         * tree-browser.c: Likewise.
2045         * tree-call-cdce.c: Likewise.
2046         * tree-cfg.c: Likewise.
2047         * tree-cfgcleanup.c: Likewise.
2048         * tree-chkp-opt.c: Likewise.
2049         * tree-chkp.c: Likewise.
2050         * tree-chrec.c: Likewise.
2051         * tree-complex.c: Likewise.
2052         * tree-data-ref.c: Likewise.
2053         * tree-dfa.c: Likewise.
2054         * tree-diagnostic.c: Likewise.
2055         * tree-dump.c: Likewise.
2056         * tree-eh.c: Likewise.
2057         * tree-emutls.c: Likewise.
2058         * tree-if-conv.c: Likewise.
2059         * tree-inline.c: Likewise.
2060         * tree-into-ssa.c: Likewise.
2061         * tree-iterator.c: Likewise.
2062         * tree-loop-distribution.c: Likewise.
2063         * tree-nested.c: Likewise.
2064         * tree-nrv.c: Likewise.
2065         * tree-object-size.c: Likewise.
2066         * tree-outof-ssa.c: Likewise.
2067         * tree-parloops.c: Likewise.
2068         * tree-phinodes.c: Likewise.
2069         * tree-predcom.c: Likewise.
2070         * tree-pretty-print.c: Likewise.
2071         * tree-profile.c: Likewise.
2072         * tree-scalar-evolution.c: Likewise.
2073         * tree-sra.c: Likewise.
2074         * tree-ssa-address.c: Likewise.
2075         * tree-ssa-alias.c: Likewise.
2076         * tree-ssa-ccp.c: Likewise.
2077         * tree-ssa-coalesce.c: Likewise.
2078         * tree-ssa-copy.c: Likewise.
2079         * tree-ssa-copyrename.c: Likewise.
2080         * tree-ssa-dce.c: Likewise.
2081         * tree-ssa-dom.c: Likewise.
2082         * tree-ssa-dse.c: Likewise.
2083         * tree-ssa-forwprop.c: Likewise.
2084         * tree-ssa-ifcombine.c: Likewise.
2085         * tree-ssa-live.c: Likewise.
2086         * tree-ssa-loop-ch.c: Likewise.
2087         * tree-ssa-loop-im.c: Likewise.
2088         * tree-ssa-loop-ivcanon.c: Likewise.
2089         * tree-ssa-loop-ivopts.c: Likewise.
2090         * tree-ssa-loop-manip.c: Likewise.
2091         * tree-ssa-loop-niter.c: Likewise.
2092         * tree-ssa-loop-prefetch.c: Likewise.
2093         * tree-ssa-loop-unswitch.c: Likewise.
2094         * tree-ssa-loop.c: Likewise.
2095         * tree-ssa-math-opts.c: Likewise.
2096         * tree-ssa-operands.c: Likewise.
2097         * tree-ssa-phiopt.c: Likewise.
2098         * tree-ssa-phiprop.c: Likewise.
2099         * tree-ssa-pre.c: Likewise.
2100         * tree-ssa-propagate.c: Likewise.
2101         * tree-ssa-reassoc.c: Likewise.
2102         * tree-ssa-sccvn.c: Likewise.
2103         * tree-ssa-scopedtables.c: Likewise.
2104         * tree-ssa-sink.c: Likewise.
2105         * tree-ssa-strlen.c: Likewise.
2106         * tree-ssa-structalias.c: Likewise.
2107         * tree-ssa-tail-merge.c: Likewise.
2108         * tree-ssa-ter.c: Likewise.
2109         * tree-ssa-threadedge.c: Likewise.
2110         * tree-ssa-threadupdate.c: Likewise.
2111         * tree-ssa-uncprop.c: Likewise.
2112         * tree-ssa-uninit.c: Likewise.
2113         * tree-ssa.c: Likewise.
2114         * tree-ssanames.c: Likewise.
2115         * tree-stdarg.c: Likewise.
2116         * tree-streamer-in.c: Likewise.
2117         * tree-streamer-out.c: Likewise.
2118         * tree-streamer.c: Likewise.
2119         * tree-switch-conversion.c: Likewise.
2120         * tree-tailcall.c: Likewise.
2121         * tree-vect-data-refs.c: Likewise.
2122         * tree-vect-generic.c: Likewise.
2123         * tree-vect-loop-manip.c: Likewise.
2124         * tree-vect-loop.c: Likewise.
2125         * tree-vect-patterns.c: Likewise.
2126         * tree-vect-slp.c: Likewise.
2127         * tree-vect-stmts.c: Likewise.
2128         * tree-vectorizer.c: Likewise.
2129         * tree-vrp.c: Likewise.
2130         * tree.c: Likewise.
2131         * tsan.c: Likewise.
2132         * ubsan.c: Likewise.
2133         * valtrack.c: Likewise.
2134         * value-prof.c: Likewise.
2135         * var-tracking.c: Likewise.
2136         * varasm.c: Likewise.
2137         * varpool.c: Likewise.
2138         * vmsdbgout.c: Likewise.
2139         * vtable-verify.c: Likewise.
2140         * web.c: Likewise.
2141         * wide-int.cc: Likewise.
2142         * xcoffout.c: Likewise.
2143         * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
2144         * common/common-targhooks.c: Likewise.
2145         * config/aarch64/aarch64-builtins.c: Likewise.
2146         * config/aarch64/aarch64.c: Likewise.
2147         * config/alpha/alpha.c: Likewise.
2148         * config/arc/arc.c: Likewise.
2149         * config/arm/aarch-common.c: Likewise.
2150         * config/arm/arm-builtins.c: Likewise.
2151         * config/arm/arm-c.c: Likewise.
2152         * config/arm/arm.c: Likewise.
2153         * config/avr/avr-c.c: Likewise.
2154         * config/avr/avr-log.c: Likewise.
2155         * config/avr/avr.c: Likewise.
2156         * config/bfin/bfin.c: Likewise.
2157         * config/c6x/c6x.c: Likewise.
2158         * config/cr16/cr16.c: Likewise.
2159         * config/cris/cris.c: Likewise.
2160         * config/darwin-c.c: Likewise.
2161         * config/darwin.c: Likewise.
2162         * config/default-c.c: Likewise.
2163         * config/epiphany/epiphany.c: Likewise.
2164         * config/epiphany/mode-switch-use.c: Likewise.
2165         * config/epiphany/resolve-sw-modes.c: Likewise.
2166         * config/fr30/fr30.c: Likewise.
2167         * config/frv/frv.c: Likewise.
2168         * config/ft32/ft32.c: Likewise.
2169         * config/glibc-c.c: Likewise.
2170         * config/h8300/h8300.c: Likewise.
2171         * config/i386/i386-c.c: Likewise.
2172         * config/i386/i386.c: Likewise.
2173         * config/i386/msformat-c.c: Likewise.
2174         * config/i386/winnt-cxx.c: Likewise.
2175         * config/i386/winnt-stubs.c: Likewise.
2176         * config/i386/winnt.c: Likewise.
2177         * config/ia64/ia64-c.c: Likewise.
2178         * config/ia64/ia64.c: Likewise.
2179         * config/iq2000/iq2000.c: Likewise.
2180         * config/lm32/lm32.c: Likewise.
2181         * config/m32c/m32c-pragma.c: Likewise.
2182         * config/m32c/m32c.c: Likewise.
2183         * config/m32r/m32r.c: Likewise.
2184         * config/m68k/m68k.c: Likewise.
2185         * config/mcore/mcore.c: Likewise.
2186         * config/mep/mep-pragma.c: Likewise.
2187         * config/mep/mep.c: Likewise.
2188         * config/microblaze/microblaze-c.c: Likewise.
2189         * config/microblaze/microblaze.c: Likewise.
2190         * config/mips/mips.c: Likewise.
2191         * config/mmix/mmix.c: Likewise.
2192         * config/mn10300/mn10300.c: Likewise.
2193         * config/moxie/moxie.c: Likewise.
2194         * config/msp430/msp430-c.c: Likewise.
2195         * config/msp430/msp430.c: Likewise.
2196         * config/nds32/nds32-cost.c: Likewise.
2197         * config/nds32/nds32-fp-as-gp.c: Likewise.
2198         * config/nds32/nds32-intrinsic.c: Likewise.
2199         * config/nds32/nds32-isr.c: Likewise.
2200         * config/nds32/nds32-md-auxiliary.c: Likewise.
2201         * config/nds32/nds32-memory-manipulation.c: Likewise.
2202         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
2203         * config/nds32/nds32-predicates.c: Likewise.
2204         * config/nds32/nds32.c: Likewise.
2205         * config/nios2/nios2.c: Likewise.
2206         * config/nvptx/nvptx.c: Likewise.
2207         * config/pa/pa.c: Likewise.
2208         * config/pdp11/pdp11.c: Likewise.
2209         * config/rl78/rl78-c.c: Likewise.
2210         * config/rl78/rl78.c: Likewise.
2211         * config/rs6000/rs6000-c.c: Likewise.
2212         * config/rs6000/rs6000.c: Likewise.
2213         * config/rx/rx.c: Likewise.
2214         * config/s390/s390-c.c: Likewise.
2215         * config/s390/s390.c: Likewise.
2216         * config/sh/sh-c.c: Likewise.
2217         * config/sh/sh-mem.cc: Likewise.
2218         * config/sh/sh.c: Likewise.
2219         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
2220         * config/sh/sh_treg_combine.cc: Likewise.
2221         * config/sol2-c.c: Likewise.
2222         * config/sol2-cxx.c: Likewise.
2223         * config/sol2-stubs.c: Likewise.
2224         * config/sol2.c: Likewise.
2225         * config/sparc/sparc-c.c: Likewise.
2226         * config/sparc/sparc.c: Likewise.
2227         * config/spu/spu-c.c: Likewise.
2228         * config/spu/spu.c: Likewise.
2229         * config/stormy16/stormy16.c: Likewise.
2230         * config/tilegx/mul-tables.c: Likewise.
2231         * config/tilegx/tilegx-c.c: Likewise.
2232         * config/tilegx/tilegx.c: Likewise.
2233         * config/tilepro/mul-tables.c: Likewise.
2234         * config/tilepro/tilepro-c.c: Likewise.
2235         * config/tilepro/tilepro.c: Likewise.
2236         * config/v850/v850-c.c: Likewise.
2237         * config/v850/v850.c: Likewise.
2238         * config/vax/vax.c: Likewise.
2239         * config/visium/visium.c: Likewise.
2240         * config/vms/vms-c.c: Likewise.
2241         * config/vms/vms.c: Likewise.
2242         * config/vxworks.c: Likewise.
2243         * config/winnt-c.c: Likewise.
2244         * config/xtensa/xtensa.c: Likewise.
2246 2015-06-17  Robert Suchanek  <robert.suchanek@imgtec.com>
2248         * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
2249         function.
2250         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
2252 2015-06-17  Richard Biener  <rguenther@suse.de>
2254         PR tree-optimization/66251
2255         * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
2256         stmts for SLP strided stores.
2258         Revert
2259         2015-05-22  Richard Biener  <rguenther@suse.de>
2261         PR tree-optimization/66251
2262         * tree-vect-stmts.c (vectorizable_conversion): Properly
2263         set STMT_VINFO_VEC_STMT even for the SLP case.
2265         2015-05-26  Michael Matz  <matz@suse.de>
2267         PR middle-end/66251
2268         * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
2269         STMT_VINFO_VEC_STMT, also with SLP.
2271 2015-06-16  Uros Bizjak  <ubizjak@gmail.com>
2273         PR target/56766
2274         * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
2275         (*avx_addsubv4df3_1s): Ditto.
2276         (*sse3_addsubv2df3_1): Ditto.
2277         (*sse3_addsubv2df3_1s): Ditto.
2278         (*avx_addsubv8sf3_1): Ditto.
2279         (*avx_addsubv8sf3_1s): Ditto.
2280         (*sse3_addsubv4sf3_1): Ditto.
2281         (*sse3_addsubv4sf3_1s): Ditto.
2283 2015-06-16  Steve Ellcey  <sellcey@imgtec.com>
2285         * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
2286         (SYSROOT_SUFFIX_SPEC): Update.
2287         (SYSROOT_HEADERS_SUFFIX_SPEC): New.
2288         (STARTFILE_PREFIX_SPEC): Update.
2289         * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
2290         (MULTILIB_REQUIRED): New.
2291         (MULTILIB_OSDIRNAMES): New.
2292         * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
2293         (MULTILIB_REQUIRED): New.
2294         (MULTILIB_OSDIRNAMES): New.
2296 2015-06-16  Matthew Wahab  <matthew.wahab@arm.com>
2298         * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
2299         * config/aarch64/aarch64-options-extensions.def: Update "fP",
2300         "simd" and "crypto".  Add "lse", "pan", "lor" and "rdma".
2301         * gcc/config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
2302         (AARCH64_FL_PAN): New.
2303         (AARCH64_FL_LOR): New.
2304         (AARCH64_FL_RDMA): New.
2305         (AARCH64_FL_FOR_ARCH8_1): New.
2306         * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
2307         -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
2309 2015-06-16  Martin Liska  <mliska@suse.cz>
2311         * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
2312         * hash-table.c (void dump_hash_table_loc_statistics): Add missing
2313         guard.
2315 2015-06-16  Richard Biener  <rguenther@suse.de>
2317         * tree-vect-stmts.c (vectorizable_store): Adjust.
2318         (vectorizable_load): Likewise.
2319         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
2320         Simplify.
2321         (vect_create_data_ref_ptr): Likewise.
2322         (bump_vector_ptr): Adjust.
2324 2015-06-16  Richard Biener  <rguenther@suse.de>
2326         * tree-vect-stmts.c (vectorizable_load): Properly start loads
2327         with the first element if this is grouped loads.
2329 2015-06-16  James Greenhalgh  <james.greenhalgh@arm.com>
2331         * config/arm/arm-protos.h (struct tune_params): Rename
2332         log_op_non_sc to log_op_non_short_circuit, and rename enum
2333         values to expand SC to SHORT_CIRCUIT.
2334         * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
2335         to LOG_OP_NON_SHORT_CIRCUIT.
2336         (arm_fastmul_tune):Likewise
2337         (arm_strongarm_tune): Likewise.
2338         (arm_xscale_tune): Likewise.
2339         (arm_9e_tune): Likewise.
2340         (arm_marvell_pj4_tune): Likewise.
2341         (arm_v6t2_tune): Likewise.
2342         (arm_cortex_tune): Likewise.
2343         (arm_cortex_a8_tune): Likewise.
2344         (arm_cortex_a7_tune): Likewise.
2345         (arm_cortex_a15_tune): Likewise.
2346         (arm_cortex_a53_tune): Likewise.
2347         (arm_cortex_a57_tune): Likewise.
2348         (arm_xgene1_tune): Likewise.
2349         (arm_cortex_a5_tune): Likewise.
2350         (arm_cortex_a9_tune): Likewise.
2351         (arm_cortex_a12_tune): Likewise.
2352         (arm_v7m_tune): Likewise.
2353         (arm_cortex_m7_tune): Likewise.
2354         (arm_v6m_tune): Likewise.
2355         (arm_fa726te_tune): Likewise.
2357 2015-06-15  David Edelsohn  <dje.gcc@gmail.com>
2359         * altivec.md: Delete UNSPEC_VMLADDUHM.
2360         (mulv4si3_p8): New pattern.
2361         (mulv4si3): Use it for POWER8.
2362         (mulv8hi3): Use vmladduhm with zero addend.
2363         (altivec_vmladduhm): Descriptive RTL.
2365 2015-06-15  Jim Wilson  <jim.wilson@linaro.org>
2367         * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
2368         to use neon_move instead of mov_imm.
2369         (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
2370         (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
2372         * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
2373         aarch64_float_const_zero_rtx_p check before TFmode check.
2374         * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
2375         an fp zero.
2376         (movtf_aarch64): Separate ?rY alternative into two.  Adjust assembly
2377         code and attributes to match.  Change condition from register_operand
2378         to aarch64_reg_or_fp_zero for op1.  Change type for ldp from
2379         neon_load1_2reg to load2.  Change type for stp from neon_store1_2reg
2380         to store2.
2382 2015-06-15  Aldy Hernandez  <aldyh@redhat.com>
2384         PR debug/66535
2385         * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
2386         there is no parent.
2388 2015-06-14  Shiva Chen  <shiva0217@gmail.com>
2390         * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
2391         HOST_WIDE_INT parameter.
2393 2015-06-14  Jan Hubicka  <hubicka@ucw.cz>
2395         PR ipa/66181
2396         * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
2397         * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
2398         TYPE_NO_FORCE_BLK.
2399         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
2401 2015-06-14  Richard Sandiford  <richard.sandiford@arm.com>
2403         * rtl.h (classify_insn): Declare.
2404         * emit-rtl.c (classify_insn): Move to...
2405         * rtl.c: ...here and add generator support.
2406         * gensupport.h (get_emit_function, needs_barrier_p): Declare.
2407         * gensupport.c (get_emit_function, needs_barrier_p): New functions.
2408         * genemit.c (gen_emit_seq): New function.
2409         (gen_expand, gen_split): Use it.
2411 2015-06-13  Patrick Palka  <ppalka@gcc.gnu.org>
2413         * tree.c (make_vector_stat): Fix comment to state that the
2414         function returns a VECTOR_CST.
2416 2015-06-13  Richard Sandiford  <richard.sandiford@arm.com>
2418         * gensupport.h (add_implicit_parallel): Declare.
2419         * genrecog.c (add_implicit_parallel): Move to...
2420         * gensupport.c (add_implicit_parallel): ...here.
2421         (process_one_cond_exec): Use it.
2422         * genemit.c (gen_insn): Likewise.
2424 2015-06-13  Iain Sandoe  <iain@codesourcery.com>
2426         PR bootstrap/66448
2427         * passes.c (rest_of_decl_compilation): Do not register globals for
2428         early debug if they are declared in built-ins.
2430 2015-06-12  Aldy Hernandez  <aldyh@redhat.com>
2432         * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
2434 2015-06-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2436         * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
2437         manually swapping.
2438         (noce_try_cmove_arith): Likewise.
2439         (noce_get_alt_condition): Likewise.
2441 2015-06-12  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
2443         * common/config/i386/i386-common.c
2444         (OPTION_MASK_ISA_MWAITX_SET): New.
2445         (ix86_handle_option): Handle mwaitx.
2446         * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
2447         (x86_64-*-*): Likewise.
2448         * config/i386/mwaitxintrin.h: New header.
2449         * config/i386/cpuid.h (bit_MWAITX):  Define.
2450         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
2451         MWAITX support.
2452         * config/i386/i386.opt (mwaitx): New.
2453         * config/i386/i386-builtin-types.def
2454         (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
2455         * config/i386/i386-c.c: Define __MWAITX__ if needed.
2456         * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
2457         (PTA_MWAITX): New.
2458         (ix86_option_override_internal): Handle new option.
2459         (processor_alias_table): Added PTA_MWAITX.
2460         (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
2461         (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
2462         (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
2463         IX86_BUILTIN_MONITORX  built-ins.
2464         * config/i386/i386.h (TARGET_MWAITX): New.
2465         * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
2466         UNSPEC_MONITORX.
2467         (mwaitx):  New pattern.
2468         (monitorx_<mode>): New pattern.
2469         * config/i386/x86intrin.h: Include mwaitxintrin.h.
2470         * doc/extend.texi: Document monitorx and mwaitx builtins.
2471         * doc/invoke.texi: Document -mmwaitx option.
2473 2015-06-12  Uros Bizjak  <ubizjak@gmail.com>
2475         * emit-rtl.c (need_atomic_barrier_p): Mask model with
2476         MEMMODEL_BASE_MASK.  Remove MEMMODEL_SYNC_* cases.
2478 2015-06-11  David Edelsohn  <dje.gcc@gmail.com>
2480         * dbxout.c (xcoff_debug_hooks): Provide a function for
2481         register_main_translation_unit hook.
2483 2015-06-11  David Edelsohn  <dje.gcc@gmail.com>
2485         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
2486         variants cases from switch.
2487         (rs6000_post_atomic_barrier): Same.
2488         (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
2489         (rs6000_expand_atomic_exchange): Same.
2490         (rs6000_expand_atomic_op): Same.
2491         * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
2492         SYNC variants cases from switch.
2493         (atomic_load): Same.
2494         (atomic_store): Same.
2496 2015-06-11  John David Anglin  <danglin@gcc.gnu.org>
2498         * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
2499         CONST_INT for goto.
2501 2015-06-11  Aldy Hernandez  <aldyh@redhat.com>
2503         PR bootstrap/66448
2504         * dwarf2out.c (check_die): Check for common duplicate attributes.
2505         (add_location_or_const_value_attribute): Do not add duplicate
2506         attributes.
2507         (gen_formal_parameter_die): Do not add DW_AT_artificial the second
2508         time around.
2509         (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
2510         (gen_type_die_with_usage): Call check_die.
2511         (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
2513 2015-06-11  Jason Merrill  <jason@redhat.com>
2515         * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
2516         dies.
2518 2015-06-11  Marek Polacek  <polacek@redhat.com>
2520         * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
2522 2015-06-11  Eric Botcazou  <ebotcazou@adacore.com>
2524         PR bootstrap/66252
2525         * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
2526         * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
2527         (*addx_extend_sp32): Fix pasto.
2528         (*subx_extend): Rename into...
2529         (*subx_extend_sp32): ...this.
2530         (*adddi3_extend_sp32): Add earlyclobber.
2531         (*subdi3_insn_sp32): Likewise.
2532         (*subdi3_extend_sp32): Likewise.
2533         (*and_not_di_sp32): Likewise.
2534         (*or_not_di_sp32): Likewise.
2535         (*xor_not_di_sp32): Likewise.
2536         (*negdi2_sp32): Likewise.
2537         (*one_cmpldi2_sp32): Likewise.
2539 2015-06-11  Pierre-Marie de Rodat  <derodat@adacore.com>
2541         * debug.h (struct gcc_debug_hooks): Add a
2542         register_main_translation_unit hook.
2543         * debug.c (do_nothing_debug_hooks): Provide a function for this
2544         new hook.
2545         * dbxout.c (dbx_debug_hooks): Likewise.
2546         * sdbout.c (sdb_debug_hooks): Likewise.
2547         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
2548         * dwarf2out.c (main_translation_unit): New global variable.
2549         (dwarf2out_register_main_translation_unit): New function
2550         implementing the new hook.
2551         (dwarf2_debug_hooks): Assign
2552         dwarf2out_register_main_translation_unit to this new hook.
2553         (dwarf2out_init): Associate any main translation unit to
2554         comp_unit_die ().
2556 2015-06-11  Marek Polacek  <polacek@redhat.com>
2558         * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
2560 2015-06-11  Marek Polacek  <polacek@redhat.com>
2562         * match.pd: Use single_use throughout.
2564 2015-06-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2566         * config/arm/arm.c (arm_option_params_internal): When optimising
2567         for speed set max_insns_skipped when arm_restrict_it.
2569 2015-06-11  Christian Bruel  <christian.bruel@st.com>
2571         PR target/52144
2572         * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
2573          macros in ...
2574         (arm_cpu_builtins): New function.
2575         (arm_pragma_target_parse): Call arm_cpu_builtins.
2576         * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
2577         (arm_register_target_pragmas): Likewise.
2578         * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
2579          Call arm_register_target_pragmas.
2580         * config/arm/arm-c.c (arm_register_target_pragmas): New function.
2581         (arm_pragma_target_parse): Likewise.
2583 2015-06-10  Kaz Kojima  <kkojima@gcc.gnu.org>
2585         * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
2586         of the second operand.
2588 2015-06-10  Uros Bizjak  <ubizjak@gmail.com>
2590         PR target/66473
2591         * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
2592         to prepare mask operand for AVX512 modes.
2594 2015-06-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
2596         PR target/66474
2597         * doc/md.texi (Machine Constraints): Document that on the PowerPC
2598         if you use a constraint that targets a VSX register, you must use
2599         %x<n> in the template.
2601 2015-06-10  Max Filippov  <jcmvbkbc@gmail.com>
2603         * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
2604         * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
2605         (define_insn "trap"): New definition.
2607 2015-06-10  Richard Biener  <rguenther@suse.de>
2609         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
2610         out from ...
2611         (vect_supported_load_permutation_p): ... here.  Handle
2612         supportable permutations in reductions.
2613         * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
2614         for vectorizing strided group loads.
2616 2015-06-10  Jakub Jelinek  <jakub@redhat.com>
2618         PR target/66470
2619         * config/i386/i386.c (ix86_split_long_move): For collisions
2620         involving direct tls segment refs, move the UNSPEC_TP possibly
2621         wrapped in ZERO_EXTEND out of the address for lea, to each of
2622         the memory loads.
2624 2015-06-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2626         * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
2627         dmb sy. Adjust tabs.
2629 2015-06-10  Tom de Vries  <tom@codesourcery.com>
2631         * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
2633 2015-06-10  Martin Liska  <mliska@suse.cz>
2635         PR bootstrap/66471
2636         * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
2637         all enum values in mem_alloc_origin.
2638         * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
2639         name.
2640         * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
2641         * bitmap.c (bitmap_register): Likewise.
2642         (dump_bitmap_statistics): Likewise.
2643         * ggc-common.c (dump_ggc_loc_statistics): Likewise.
2644         (ggc_record_overhead): Likewise.
2645         * hash-map.h: Likewise.
2646         * hash-set.h: Likewise.
2647         * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
2648         * hash-table.h: Likewise.
2649         * vec.c (vec_prefix::register_overhead): Likewise.
2650         (vec_prefix::release_overhead): Likewise.
2651         (dump_vec_loc_statistics): Likewise.
2653 2015-06-09  Christian Bruel  <christian.bruel@st.com>
2655         PR target/52144
2656         * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
2657         * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
2658         (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
2659         * config/arm/arm.h (SWITCHABLE_TARGET): Define.
2660         * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
2661         (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
2662         (arm_valid_target_attribute_p): Likewise.
2663         (arm_set_current_function, arm_can_inline_p): Likewise.
2664         (arm_valid_target_attribute_rec): Likewise.
2665         (arm_previous_fndecl): New variable.
2666         (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
2667         (TARGET_CAN_INLINE_P): Define.
2668         (arm_asm_trampoline_template): Emit mode.
2669         (arm_file_start): Don't set unified syntax.
2670         (arm_declare_function_name): Set unified syntax and mode.
2671         (arm_option_override): Init target_option_default_node.
2672         and target_option_current_node.
2673         * config/arm/arm.md (*call_value_symbol): Set mode when possible.
2674         (*call_symbol): Likewise.
2675         * doc/extend.texi: Document ARM/Thumb target attribute.
2676         * doc/invoke.texi: Likewise.
2678 2015-06-09  Alexandre Oliva <aoliva@redhat.com>
2680         Revert:
2681         2015-06-09  Alexandre Oliva <aoliva@redhat.com>
2682         PR rtl-optimization/64164
2683         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
2684         * tree-ssa-copyrename.c: Removed.
2685         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
2686         -ftree-coalesce-vars.
2687         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
2688         * common.opt (ftree-copyrename): Ignore.
2689         (ftree-coalesce-inlined-vars): Likewise.
2690         * doc/invoke.texi: Remove the ignored options above.
2691         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
2692         * tree-ssa-coalesce.h: ... here.
2693         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
2694         headers required by it.
2695         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
2696         across variables when flag_tree_coalesce_vars.  Check register
2697         use and promoted modes to allow coalescing.  Moved to
2698         tree-ssa-coalesce.c.
2699         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
2700         with its member functions to tree-ssa-coalesce.c.
2701         (var_map_base_init): Likewise.  Renamed to
2702         compute_samebase_partition_bases.
2703         (partition_view_normal): Drop want_bases parameter.
2704         (partition_view_bitmap): Likewise.
2705         * tree-ssa-live.h: Adjust declarations.
2706         * tree-ssa-coalesce.c: Include explow.h.
2707         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
2708         default defs at the entry point.
2709         (dump_part_var_map): New.
2710         (compute_optimized_partition_bases): New, called by...
2711         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
2712         of compute_samebase_partition_bases.  Adjust.
2713         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
2714         * cfgexpand.c (leader_merge): New.
2715         (get_rtl_for_parm_ssa_default_def): New.
2716         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
2717         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
2718         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
2719         redundant MEM attr setting.
2720         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
2721         from...
2722         (expand_one_stack_var): ... this.  New wrapper to check and
2723         skip already expanded SSA partitions.
2724         (record_alignment_for_reg_var): New, factored out of...
2725         (expand_one_var): ... this.
2726         (expand_one_ssa_partition): New.
2727         (adjust_one_expanded_partition_var): New.
2728         (expand_one_register_var): Check and skip already expanded SSA
2729         partitions.
2730         (expand_used_vars): Don't create DECLs for anonymous SSA
2731         names.  Expand all SSA partitions, then adjust all SSA names.
2732         (pass::execute): Replace the loops that set
2733         SA.partition_to_pseudo from partition leaders and cleared
2734         DECL_RTL for multi-location variables, and that which used to
2735         rename vars and set attrs, with one that clears DECL_RTL and
2736         checks that PARMs and RESULTs default_defs match DECL_RTL.
2737         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
2738         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
2739         * explow.c (promote_ssa_mode): New.
2740         * explow.h (promote_ssa_mode): Declare.
2741         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
2742         * function.c: Include cfgexpand.h.
2743         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
2744         (use_register_for_parm_decl): Wrapper for the above to
2745         special-case the result_ptr.
2746         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
2747         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
2748         multiple locations.
2749         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
2750         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
2751         (assign_parm_setup_block): Prefer SSA-assigned location.
2752         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
2753         if stack_parm is NULL.
2754         (assign_parm_setup_stack): Prefer SSA-assigned location.
2755         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
2756         rtl before testing for pointer bounds.  Special-case result_ptr.
2757         (expand_function_start): Maybe reset DECL_RTL of result.
2758         Prefer SSA-assigned location for result and static chain.
2759         Factor out DECL_RESULT and SET_DECL_RTL.
2760         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
2761         anonymous SSA names.  Use promote_ssa_mode.
2762         (get_temp_reg): Likewise.
2763         (remove_ssa_form): Adjust.
2764         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
2765         and get its reg_usage for reg invalidation.
2766         (compute_bb_dataflow): Pass it insn.
2767         (emit_notes_in_bb): Likewise.
2768         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
2769         fail assert on conversion between unsigned types.
2771 2015-06-09  Tom de Vries  <tom@codesourcery.com>
2773         PR tree-optimization/65460
2774         * omp-low.c (expand_omp_target): Set parallelized_function on
2775         cgraph_node for child_fn.
2777 2015-06-09  Tom de Vries  <tom@codesourcery.com>
2779         * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
2780         parallelized_function before add_new_function.
2782 2015-06-09  Andrew MacLeod  <amacleod@redhat.com>
2784         * gcc-plugin.h: Move decls to plugin.h and include it.
2785         * plugin.h: Relocate decls from gcc-plugin.h
2786         * ggc-page.c: Include required header files.
2787         * passes.c: Likewise.
2788         * cgraphunit.c: Likewise.
2790 2015-06-09  Tom de Vries  <tom@codesourcery.com>
2792         * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
2794 2015-06-09  Jason Merrill  <jason@redhat.com>
2796         PR bootstrap/66448
2797         * toplev.c (check_global_declaration): Don't warn about a clone.
2799 2015-06-09  Marek Polacek  <polacek@redhat.com>
2801         PR tree-optimization/66299
2802         * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
2803         ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
2804         patterns.
2806 2015-06-09  Richard Biener  <rguenther@suse.de>
2808         * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
2809         (vect_analyze_slp_instance): Instead do not falsely drop
2810         load permutations.
2812 2015-06-09  Richard Biener  <rguenther@suse.de>
2814         PR middle-end/66423
2815         * match.pd: Handle A % (unsigned)(1 << B).
2817 2015-06-09  Aldy Hernandez  <aldyh@redhat.com>
2819         * varasm.c (output_object_block_htab): Remove.
2820         (output_object_block_compare): New.
2821         (output_object_blocks): Sort named object_blocks before outputting
2822         them.
2824 2015-06-09  Richard Biener  <rguenther@suse.de>
2826         PR tree-optimization/66419
2827         * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
2828         consider GROUP_GAP when detecting a perfect subchain.
2830 2015-06-09  Nick Clifton  <nickc@redhat.com>
2832         * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
2833         place read only data in the .frodata section.
2835 2015-06-09  Shiva Chen  <shiva0217@gmail.com>
2837         * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
2838         (atomic_store<mode>): Likewise.
2840 2015-06-09  Richard Biener  <rguenther@suse.de>
2842         * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
2844 2015-06-09  Richard Biener  <rguenther@suse.de>
2846         PR middle-end/66413
2847         * tree-inline.c (insert_init_debug_bind): Unshare value.
2849 2015-06-09  Richard Biener  <rguenther@suse.de>
2851         PR tree-optimization/66396
2852         * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
2853         Rename virtual operands.
2855 2015-06-09  Tom de Vries  <tom@codesourcery.com>
2857         * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
2858         always return false.
2860 2015-06-09  Alexandre Oliva <aoliva@redhat.com>
2862         PR rtl-optimization/64164
2863         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
2864         * tree-ssa-copyrename.c: Removed.
2865         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
2866         -ftree-coalesce-vars.
2867         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
2868         * common.opt (ftree-copyrename): Ignore.
2869         (ftree-coalesce-inlined-vars): Likewise.
2870         * doc/invoke.texi: Remove the ignored options above.
2871         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
2872         * tree-ssa-coalesce.h: ... here.
2873         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
2874         headers required by it.
2875         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
2876         across variables when flag_tree_coalesce_vars.  Check register
2877         use and promoted modes to allow coalescing.  Moved to
2878         tree-ssa-coalesce.c.
2879         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
2880         with its member functions to tree-ssa-coalesce.c.
2881         (var_map_base_init): Likewise.  Renamed to
2882         compute_samebase_partition_bases.
2883         (partition_view_normal): Drop want_bases parameter.
2884         (partition_view_bitmap): Likewise.
2885         * tree-ssa-live.h: Adjust declarations.
2886         * tree-ssa-coalesce.c: Include explow.h.
2887         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
2888         default defs at the entry point.
2889         (dump_part_var_map): New.
2890         (compute_optimized_partition_bases): New, called by...
2891         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
2892         of compute_samebase_partition_bases.  Adjust.
2893         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
2894         * cfgexpand.c (leader_merge): New.
2895         (get_rtl_for_parm_ssa_default_def): New.
2896         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
2897         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
2898         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
2899         redundant MEM attr setting.
2900         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
2901         from...
2902         (expand_one_stack_var): ... this.  New wrapper to check and
2903         skip already expanded SSA partitions.
2904         (record_alignment_for_reg_var): New, factored out of...
2905         (expand_one_var): ... this.
2906         (expand_one_ssa_partition): New.
2907         (adjust_one_expanded_partition_var): New.
2908         (expand_one_register_var): Check and skip already expanded SSA
2909         partitions.
2910         (expand_used_vars): Don't create DECLs for anonymous SSA
2911         names.  Expand all SSA partitions, then adjust all SSA names.
2912         (pass::execute): Replace the loops that set
2913         SA.partition_to_pseudo from partition leaders and cleared
2914         DECL_RTL for multi-location variables, and that which used to
2915         rename vars and set attrs, with one that clears DECL_RTL and
2916         checks that PARMs and RESULTs default_defs match DECL_RTL.
2917         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
2918         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
2919         * explow.c (promote_ssa_mode): New.
2920         * explow.h (promote_ssa_mode): Declare.
2921         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
2922         * function.c: Include cfgexpand.h.
2923         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
2924         (use_register_for_parm_decl): Wrapper for the above to
2925         special-case the result_ptr.
2926         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
2927         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
2928         multiple locations.
2929         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
2930         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
2931         (assign_parm_setup_block): Prefer SSA-assigned location.
2932         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
2933         if stack_parm is NULL.
2934         (assign_parm_setup_stack): Prefer SSA-assigned location.
2935         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
2936         rtl before testing for pointer bounds.  Special-case result_ptr.
2937         (expand_function_start): Maybe reset DECL_RTL of result.
2938         Prefer SSA-assigned location for result and static chain.
2939         Factor out DECL_RESULT and SET_DECL_RTL.
2940         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
2941         anonymous SSA names.  Use promote_ssa_mode.
2942         (get_temp_reg): Likewise.
2943         (remove_ssa_form): Adjust.
2944         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
2945         and get its reg_usage for reg invalidation.
2946         (compute_bb_dataflow): Pass it insn.
2947         (emit_notes_in_bb): Likewise.
2948         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
2949         fail assert on conversion between unsigned types.
2951 2015-06-09  Alexandre Oliva <aoliva@redhat.com>
2953         PR debug/58315
2954         * tree-inline.c (reset_debug_binding): New.
2955         (reset_debug_bindings): Likewise.
2956         (expand_call_inline): Call it.
2958 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
2960         * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
2961         TYPE_STRING_FLAG.
2963 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
2965         * lto-streamer-out.c (lto_output_location): Stream
2966         reserved locations correctly.
2967         * lto-streamer-in.c (lto_output_location): Likewise.
2969 2015-06-08  Andrew MacLeod  <amacleod@redhat.com>
2971         * coretypes.h: Include hash-table.h and hash-set.h for host files.
2972         * ggc.h: Don't include statistics.h>
2973         * hash-map.h: Remove all includes.
2974         * hash-set.h: Likewise.
2975         * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
2976         the include list. Remove <new>.
2977         * inchash.h: Remove all includes.
2978         * mem-stats.h: Likewise.
2979         * vec.h: No special processing for generators or ggc.  
2980         * alias.c : Adjust include files.
2981         * alloc-pool.c : Likewise.
2982         * alloc-pool.h : Likewise.
2983         * asan.c : Likewise.
2984         * attribs.c : Likewise.
2985         * auto-inc-dec.c : Likewise.
2986         * auto-profile.c : Likewise.
2987         * bb-reorder.c : Likewise.
2988         * bitmap.c : Likewise.
2989         * bitmap.h : Likewise.
2990         * bt-load.c : Likewise.
2991         * builtins.c : Likewise.
2992         * caller-save.c : Likewise.
2993         * calls.c : Likewise.
2994         * ccmp.c : Likewise.
2995         * cfg.c : Likewise.
2996         * cfganal.c : Likewise.
2997         * cfgbuild.c : Likewise.
2998         * cfgcleanup.c : Likewise.
2999         * cfgexpand.c : Likewise.
3000         * cfghooks.c : Likewise.
3001         * cfgloop.c : Likewise.
3002         * cfgloop.h : Likewise.
3003         * cfgloopanal.c : Likewise.
3004         * cfgloopmanip.c : Likewise.
3005         * cfgrtl.c : Likewise.
3006         * cgraph.c : Likewise.
3007         * cgraphbuild.c : Likewise.
3008         * cgraphclones.c : Likewise.
3009         * cgraphunit.c : Likewise.
3010         * cilk-common.c : Likewise.
3011         * combine-stack-adj.c : Likewise.
3012         * combine.c : Likewise.
3013         * compare-elim.c : Likewise.
3014         * context.c : Likewise.
3015         * convert.c : Likewise.
3016         * coverage.c : Likewise.
3017         * cppbuiltin.c : Likewise.
3018         * cprop.c : Likewise.
3019         * cse.c : Likewise.
3020         * cselib.c : Likewise.
3021         * data-streamer-in.c : Likewise.
3022         * data-streamer-out.c : Likewise.
3023         * data-streamer.c : Likewise.
3024         * data-streamer.h : Likewise.
3025         * dbxout.c : Likewise.
3026         * dce.c : Likewise.
3027         * ddg.c : Likewise.
3028         * debug.c : Likewise.
3029         * df-core.c : Likewise.
3030         * df-problems.c : Likewise.
3031         * df-scan.c : Likewise.
3032         * df.h : Likewise.
3033         * dfp.c : Likewise.
3034         * dojump.c : Likewise.
3035         * dominance.c : Likewise.
3036         * domwalk.c : Likewise.
3037         * double-int.c : Likewise.
3038         * dse.c : Likewise.
3039         * dumpfile.c : Likewise.
3040         * dwarf2asm.c : Likewise.
3041         * dwarf2cfi.c : Likewise.
3042         * dwarf2out.c : Likewise.
3043         * emit-rtl.c : Likewise.
3044         * et-forest.c : Likewise.
3045         * except.c : Likewise.
3046         * except.h : Likewise.
3047         * explow.c : Likewise.
3048         * expmed.c : Likewise.
3049         * expr.c : Likewise.
3050         * final.c : Likewise.
3051         * fixed-value.c : Likewise.
3052         * fold-const.c : Likewise.
3053         * function.c : Likewise.
3054         * fwprop.c : Likewise.
3055         * gcc-plugin.h : Likewise.
3056         * gcc.c : Likewise.
3057         * gcse-common.c : Likewise.
3058         * gcse.c : Likewise.
3059         * genattrtab.c : Likewise.
3060         * genautomata.c : Likewise.
3061         * genconditions.c : Likewise.
3062         * genemit.c : Likewise.
3063         * generic-match-head.c : Likewise.
3064         * genextract.c : Likewise.
3065         * gengtype-state.c : Likewise.
3066         * gengtype.c : Likewise.
3067         * genhooks.c : Likewise.
3068         * genmatch.c : Likewise.
3069         * genmodes.c : Likewise.
3070         * genrecog.c : Likewise.
3071         * gensupport.c : Likewise.
3072         * ggc-common.c : Likewise.
3073         * ggc-internal.h : Likewise.
3074         * ggc-none.c : Likewise.
3075         * ggc-page.c : Likewise.
3076         * gimple-builder.c : Likewise.
3077         * gimple-expr.c : Likewise.
3078         * gimple-fold.c : Likewise.
3079         * gimple-iterator.c : Likewise.
3080         * gimple-low.c : Likewise.
3081         * gimple-match-head.c : Likewise.
3082         * gimple-pretty-print.c : Likewise.
3083         * gimple-ssa-isolate-paths.c : Likewise.
3084         * gimple-ssa-strength-reduction.c : Likewise.
3085         * gimple-ssa.h : Likewise.
3086         * gimple-streamer-in.c : Likewise.
3087         * gimple-streamer-out.c : Likewise.
3088         * gimple-streamer.h : Likewise.
3089         * gimple-walk.c : Likewise.
3090         * gimple.c : Likewise.
3091         * gimplify-me.c : Likewise.
3092         * gimplify.c : Likewise.
3093         * godump.c : Likewise.
3094         * graph.c : Likewise.
3095         * graphds.c : Likewise.
3096         * graphite-blocking.c : Likewise.
3097         * graphite-dependences.c : Likewise.
3098         * graphite-interchange.c : Likewise.
3099         * graphite-isl-ast-to-gimple.c : Likewise.
3100         * graphite-optimize-isl.c : Likewise.
3101         * graphite-poly.c : Likewise.
3102         * graphite-scop-detection.c : Likewise.
3103         * graphite-sese-to-poly.c : Likewise.
3104         * graphite.c : Likewise.
3105         * haifa-sched.c : Likewise.
3106         * hard-reg-set.h : Likewise.
3107         * hw-doloop.c : Likewise.
3108         * ifcvt.c : Likewise.
3109         * inchash.c : Likewise.
3110         * incpath.c : Likewise.
3111         * init-regs.c : Likewise.
3112         * input.c : Likewise.
3113         * internal-fn.c : Likewise.
3114         * ipa-chkp.c : Likewise.
3115         * ipa-comdats.c : Likewise.
3116         * ipa-cp.c : Likewise.
3117         * ipa-devirt.c : Likewise.
3118         * ipa-icf-gimple.c : Likewise.
3119         * ipa-icf.c : Likewise.
3120         * ipa-inline-analysis.c : Likewise.
3121         * ipa-inline-transform.c : Likewise.
3122         * ipa-inline.c : Likewise.
3123         * ipa-polymorphic-call.c : Likewise.
3124         * ipa-profile.c : Likewise.
3125         * ipa-prop.c : Likewise.
3126         * ipa-pure-const.c : Likewise.
3127         * ipa-ref.c : Likewise.
3128         * ipa-reference.c : Likewise.
3129         * ipa-split.c : Likewise.
3130         * ipa-utils.c : Likewise.
3131         * ipa-visibility.c : Likewise.
3132         * ipa.c : Likewise.
3133         * ira-build.c : Likewise.
3134         * ira-color.c : Likewise.
3135         * ira-conflicts.c : Likewise.
3136         * ira-costs.c : Likewise.
3137         * ira-emit.c : Likewise.
3138         * ira-lives.c : Likewise.
3139         * ira.c : Likewise.
3140         * jump.c : Likewise.
3141         * langhooks.c : Likewise.
3142         * lcm.c : Likewise.
3143         * libfuncs.h : Likewise.
3144         * lists.c : Likewise.
3145         * loop-doloop.c : Likewise.
3146         * loop-init.c : Likewise.
3147         * loop-invariant.c : Likewise.
3148         * loop-iv.c : Likewise.
3149         * loop-unroll.c : Likewise.
3150         * lower-subreg.c : Likewise.
3151         * lra-assigns.c : Likewise.
3152         * lra-coalesce.c : Likewise.
3153         * lra-constraints.c : Likewise.
3154         * lra-eliminations.c : Likewise.
3155         * lra-lives.c : Likewise.
3156         * lra-remat.c : Likewise.
3157         * lra-spills.c : Likewise.
3158         * lra.c : Likewise.
3159         * lto-cgraph.c : Likewise.
3160         * lto-compress.c : Likewise.
3161         * lto-opts.c : Likewise.
3162         * lto-section-in.c : Likewise.
3163         * lto-section-out.c : Likewise.
3164         * lto-streamer-in.c : Likewise.
3165         * lto-streamer-out.c : Likewise.
3166         * lto-streamer.c : Likewise.
3167         * lto-streamer.h : Likewise.
3168         * mcf.c : Likewise.
3169         * mode-switching.c : Likewise.
3170         * modulo-sched.c : Likewise.
3171         * omega.c : Likewise.
3172         * omp-low.c : Likewise.
3173         * optabs.c : Likewise.
3174         * opts-global.c : Likewise.
3175         * opts.h : Likewise.
3176         * passes.c : Likewise.
3177         * plugin.c : Likewise.
3178         * postreload-gcse.c : Likewise.
3179         * postreload.c : Likewise.
3180         * predict.c : Likewise.
3181         * print-rtl.c : Likewise.
3182         * print-tree.c : Likewise.
3183         * profile.c : Likewise.
3184         * read-md.c : Likewise.
3185         * read-md.h : Likewise.
3186         * read-rtl.c : Likewise.
3187         * real.c : Likewise.
3188         * realmpfr.c : Likewise.
3189         * recog.c : Likewise.
3190         * ree.c : Likewise.
3191         * reg-stack.c : Likewise.
3192         * regcprop.c : Likewise.
3193         * reginfo.c : Likewise.
3194         * regrename.c : Likewise.
3195         * regstat.c : Likewise.
3196         * reload.c : Likewise.
3197         * reload1.c : Likewise.
3198         * reorg.c : Likewise.
3199         * resource.c : Likewise.
3200         * rtl-chkp.c : Likewise.
3201         * rtl.c : Likewise.
3202         * rtl.h : Likewise.
3203         * rtlanal.c : Likewise.
3204         * rtlhash.c : Likewise.
3205         * rtlhash.h : Likewise.
3206         * rtlhooks.c : Likewise.
3207         * sanopt.c : Likewise.
3208         * sched-deps.c : Likewise.
3209         * sched-ebb.c : Likewise.
3210         * sched-rgn.c : Likewise.
3211         * sched-vis.c : Likewise.
3212         * sdbout.c : Likewise.
3213         * sel-sched-dump.c : Likewise.
3214         * sel-sched-ir.c : Likewise.
3215         * sel-sched-ir.h : Likewise.
3216         * sel-sched.c : Likewise.
3217         * sese.c : Likewise.
3218         * shrink-wrap.c : Likewise.
3219         * shrink-wrap.h : Likewise.
3220         * simplify-rtx.c : Likewise.
3221         * stack-ptr-mod.c : Likewise.
3222         * statistics.c : Likewise.
3223         * stmt.c : Likewise.
3224         * stor-layout.c : Likewise.
3225         * store-motion.c : Likewise.
3226         * stringpool.c : Likewise.
3227         * symtab.c : Likewise.
3228         * target-globals.c : Likewise.
3229         * targhooks.c : Likewise.
3230         * tlink.c : Likewise.
3231         * toplev.c : Likewise.
3232         * tracer.c : Likewise.
3233         * trans-mem.c : Likewise.
3234         * tree-affine.c : Likewise.
3235         * tree-affine.h : Likewise.
3236         * tree-browser.c : Likewise.
3237         * tree-call-cdce.c : Likewise.
3238         * tree-cfg.c : Likewise.
3239         * tree-cfgcleanup.c : Likewise.
3240         * tree-chkp-opt.c : Likewise.
3241         * tree-chkp.c : Likewise.
3242         * tree-chrec.c : Likewise.
3243         * tree-complex.c : Likewise.
3244         * tree-data-ref.c : Likewise.
3245         * tree-dfa.c : Likewise.
3246         * tree-diagnostic.c : Likewise.
3247         * tree-dump.c : Likewise.
3248         * tree-eh.c : Likewise.
3249         * tree-eh.h : Likewise.
3250         * tree-emutls.c : Likewise.
3251         * tree-hasher.h : Likewise.
3252         * tree-if-conv.c : Likewise.
3253         * tree-inline.c : Likewise.
3254         * tree-inline.h : Likewise.
3255         * tree-into-ssa.c : Likewise.
3256         * tree-iterator.c : Likewise.
3257         * tree-loop-distribution.c : Likewise.
3258         * tree-nested.c : Likewise.
3259         * tree-nrv.c : Likewise.
3260         * tree-object-size.c : Likewise.
3261         * tree-outof-ssa.c : Likewise.
3262         * tree-parloops.c : Likewise.
3263         * tree-phinodes.c : Likewise.
3264         * tree-predcom.c : Likewise.
3265         * tree-pretty-print.c : Likewise.
3266         * tree-profile.c : Likewise.
3267         * tree-scalar-evolution.c : Likewise.
3268         * tree-sra.c : Likewise.
3269         * tree-ssa-address.c : Likewise.
3270         * tree-ssa-alias.c : Likewise.
3271         * tree-ssa-ccp.c : Likewise.
3272         * tree-ssa-coalesce.c : Likewise.
3273         * tree-ssa-copy.c : Likewise.
3274         * tree-ssa-copyrename.c : Likewise.
3275         * tree-ssa-dce.c : Likewise.
3276         * tree-ssa-dom.c : Likewise.
3277         * tree-ssa-dse.c : Likewise.
3278         * tree-ssa-forwprop.c : Likewise.
3279         * tree-ssa-ifcombine.c : Likewise.
3280         * tree-ssa-live.c : Likewise.
3281         * tree-ssa-loop-ch.c : Likewise.
3282         * tree-ssa-loop-im.c : Likewise.
3283         * tree-ssa-loop-ivcanon.c : Likewise.
3284         * tree-ssa-loop-ivopts.c : Likewise.
3285         * tree-ssa-loop-manip.c : Likewise.
3286         * tree-ssa-loop-niter.c : Likewise.
3287         * tree-ssa-loop-prefetch.c : Likewise.
3288         * tree-ssa-loop-unswitch.c : Likewise.
3289         * tree-ssa-loop.c : Likewise.
3290         * tree-ssa-math-opts.c : Likewise.
3291         * tree-ssa-operands.c : Likewise.
3292         * tree-ssa-phiopt.c : Likewise.
3293         * tree-ssa-phiprop.c : Likewise.
3294         * tree-ssa-pre.c : Likewise.
3295         * tree-ssa-propagate.c : Likewise.
3296         * tree-ssa-reassoc.c : Likewise.
3297         * tree-ssa-sccvn.c : Likewise.
3298         * tree-ssa-scopedtables.c : Likewise.
3299         * tree-ssa-sink.c : Likewise.
3300         * tree-ssa-strlen.c : Likewise.
3301         * tree-ssa-structalias.c : Likewise.
3302         * tree-ssa-tail-merge.c : Likewise.
3303         * tree-ssa-ter.c : Likewise.
3304         * tree-ssa-threadedge.c : Likewise.
3305         * tree-ssa-threadupdate.c : Likewise.
3306         * tree-ssa-uncprop.c : Likewise.
3307         * tree-ssa-uninit.c : Likewise.
3308         * tree-ssa.c : Likewise.
3309         * tree-ssanames.c : Likewise.
3310         * tree-stdarg.c : Likewise.
3311         * tree-streamer-in.c : Likewise.
3312         * tree-streamer-out.c : Likewise.
3313         * tree-streamer.c : Likewise.
3314         * tree-streamer.h : Likewise.
3315         * tree-switch-conversion.c : Likewise.
3316         * tree-tailcall.c : Likewise.
3317         * tree-vect-data-refs.c : Likewise.
3318         * tree-vect-generic.c : Likewise.
3319         * tree-vect-loop-manip.c : Likewise.
3320         * tree-vect-loop.c : Likewise.
3321         * tree-vect-patterns.c : Likewise.
3322         * tree-vect-slp.c : Likewise.
3323         * tree-vect-stmts.c : Likewise.
3324         * tree-vectorizer.c : Likewise.
3325         * tree-vectorizer.h : Likewise.
3326         * tree-vrp.c : Likewise.
3327         * tree.c : Likewise.
3328         * tsan.c : Likewise.
3329         * ubsan.c : Likewise.
3330         * valtrack.c : Likewise.
3331         * valtrack.h : Likewise.
3332         * value-prof.c : Likewise.
3333         * var-tracking.c : Likewise.
3334         * varasm.c : Likewise.
3335         * varpool.c : Likewise.
3336         * vec.c: Likewise.
3337         * vmsdbgout.c : Likewise.
3338         * vtable-verify.c : Likewise.
3339         * vtable-verify.h : Likewise.
3340         * web.c : Likewise.
3341         * wide-int.cc : Likewise.
3342         * xcoffout.c : Likewise.
3343         * config/aarch64/aarch64-builtins.c : Likewise.
3344         * config/aarch64/aarch64.c : Likewise.
3345         * config/aarch64/cortex-a57-fma-steering.c : Likewise.
3346         * config/alpha/alpha.c : Likewise.
3347         * config/arc/arc.c : Likewise.
3348         * config/arm/aarch-common.c : Likewise.
3349         * config/arm/arm-builtins.c : Likewise.
3350         * config/arm/arm-c.c : Likewise.
3351         * config/arm/arm.c : Likewise.
3352         * config/avr/avr-c.c : Likewise.
3353         * config/avr/avr-log.c : Likewise.
3354         * config/avr/avr.c : Likewise.
3355         * config/bfin/bfin.c : Likewise.
3356         * config/c6x/c6x.c : Likewise.
3357         * config/cr16/cr16.c : Likewise.
3358         * config/cris/cris.c : Likewise.
3359         * config/darwin-c.c : Likewise.
3360         * config/darwin.c : Likewise.
3361         * config/default-c.c : Likewise.
3362         * config/epiphany/epiphany.c : Likewise.
3363         * config/epiphany/mode-switch-use.c : Likewise.
3364         * config/epiphany/resolve-sw-modes.c : Likewise.
3365         * config/fr30/fr30.c : Likewise.
3366         * config/frv/frv.c : Likewise.
3367         * config/ft32/ft32.c : Likewise.
3368         * config/glibc-c.c : Likewise.
3369         * config/h8300/h8300.c : Likewise.
3370         * config/i386/i386-c.c : Likewise.
3371         * config/i386/i386.c : Likewise.
3372         * config/i386/msformat-c.c : Likewise.
3373         * config/i386/winnt-cxx.c : Likewise.
3374         * config/i386/winnt-stubs.c : Likewise.
3375         * config/i386/winnt.c : Likewise.
3376         * config/ia64/ia64-c.c : Likewise.
3377         * config/ia64/ia64.c : Likewise.
3378         * config/iq2000/iq2000.c : Likewise.
3379         * config/lm32/lm32.c : Likewise.
3380         * config/m32c/m32c-pragma.c : Likewise.
3381         * config/m32c/m32c.c : Likewise.
3382         * config/m32r/m32r.c : Likewise.
3383         * config/m68k/m68k.c : Likewise.
3384         * config/mcore/mcore.c : Likewise.
3385         * config/mep/mep-pragma.c : Likewise.
3386         * config/mep/mep.c : Likewise.
3387         * config/microblaze/microblaze-c.c : Likewise.
3388         * config/microblaze/microblaze.c : Likewise.
3389         * config/mips/mips.c : Likewise.
3390         * config/mmix/mmix.c : Likewise.
3391         * config/mn10300/mn10300.c : Likewise.
3392         * config/moxie/moxie.c : Likewise.
3393         * config/msp430/msp430-c.c : Likewise.
3394         * config/msp430/msp430.c : Likewise.
3395         * config/nds32/nds32-cost.c : Likewise.
3396         * config/nds32/nds32-fp-as-gp.c : Likewise.
3397         * config/nds32/nds32-intrinsic.c : Likewise.
3398         * config/nds32/nds32-isr.c : Likewise.
3399         * config/nds32/nds32-md-auxiliary.c : Likewise.
3400         * config/nds32/nds32-memory-manipulation.c : Likewise.
3401         * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
3402         * config/nds32/nds32-predicates.c : Likewise.
3403         * config/nds32/nds32.c : Likewise.
3404         * config/nios2/nios2.c : Likewise.
3405         * config/nvptx/nvptx.c : Likewise.
3406         * config/pa/pa.c : Likewise.
3407         * config/pdp11/pdp11.c : Likewise.
3408         * config/rl78/rl78-c.c : Likewise.
3409         * config/rl78/rl78.c : Likewise.
3410         * config/rs6000/rs6000-c.c : Likewise.
3411         * config/rs6000/rs6000.c : Likewise.
3412         * config/rx/rx.c : Likewise.
3413         * config/s390/s390-c.c : Likewise.
3414         * config/s390/s390.c : Likewise.
3415         * config/sh/sh-c.c : Likewise.
3416         * config/sh/sh-mem.cc : Likewise.
3417         * config/sh/sh.c : Likewise.
3418         * config/sh/sh_optimize_sett_clrt.cc : Likewise.
3419         * config/sh/sh_treg_combine.cc : Likewise.
3420         * config/sol2-c.c : Likewise.
3421         * config/sol2-cxx.c : Likewise.
3422         * config/sol2-stubs.c : Likewise.
3423         * config/sol2.c : Likewise.
3424         * config/sparc/sparc-c.c : Likewise.
3425         * config/sparc/sparc.c : Likewise.
3426         * config/spu/spu-c.c : Likewise.
3427         * config/spu/spu.c : Likewise.
3428         * config/stormy16/stormy16.c : Likewise.
3429         * config/tilegx/mul-tables.c : Likewise.
3430         * config/tilegx/tilegx-c.c : Likewise.
3431         * config/tilegx/tilegx.c : Likewise.
3432         * config/tilepro/mul-tables.c : Likewise.
3433         * config/tilepro/tilepro-c.c : Likewise.
3434         * config/tilepro/tilepro.c : Likewise.
3435         * config/v850/v850-c.c : Likewise.
3436         * config/v850/v850.c : Likewise.
3437         * config/vax/vax.c : Likewise.
3438         * config/visium/visium.c : Likewise.
3439         * config/vms/vms-c.c : Likewise.
3440         * config/vms/vms.c : Likewise.
3441         * config/vxworks.c : Likewise.
3442         * config/winnt-c.c : Likewise.
3443         * config/xtensa/xtensa.c : Likewise.
3445 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
3447         PR lto/65378
3448         * ipa-utils.h (warn_types_mismatch): Update prototype.
3449         * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
3450         parameters.
3451         (type_mismatch_p): New function.
3452         (warn_types_mismatch): Reorg to work better on non-C++ types.
3453         (odr_types_equivalent_p): Add loc1/loc2 parameters.
3454         (add_type_duplicate): Update.
3456 2015-06-08  Tom de Vries  <tom@codesourcery.com>
3458         PR rtl-optimization/66444
3459         * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
3460         call_used_regs.
3462 2015-06-08  Richard Biener  <rguenther@suse.de>
3464         PR tree-optimization/66422
3465         * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
3466         block after inserted gcc_unreachable.
3468 2015-06-08  Nick Clifton  <nickc@redhat.com>
3470         * config/rx/rx.c (rx_function_value): Do not promote vector types.
3471         (rx_promote_function_mode): Likewise.
3472         * config/rx/rx.h (LIBCALL_VALUE): Likewise.
3474 2015-06-08  Jakub Jelinek  <jakub@redhat.com>
3476         * genattrtab.c (insn_alternatives): Change type from int *
3477         to uint64_t *.
3478         (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
3479         (get_attr_value): Change type of num_alt to uint64_t.
3480         (compute_alternative_mask): Change return type from
3481         int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
3482         (make_alternative_compare, mk_attr_alt): Change argument type
3483         from int to uint64_t.
3484         (simplify_test_exp): Change type of i from int to uint64_t.
3485         Shift ((uint64_t) 1) instead of 1 up.
3486         (main): Adjust oballocvec first argument from int to uint64_t.
3487         Shift ((uint64_t) 1) instead of 1 up.
3489 2015-06-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
3491         PR other/65366
3492         * gdbhooks.py: Import sys.
3493         (intptr): New function.  Replace int(...) by intptr(...).
3495 2015-06-08  Richard Biener  <rguenther@suse.de>
3497         * tree-vect-stmts.c (vectorizable_load): Compute the pointer
3498         adjustment for gaps at the end of a SLP load group properly.
3499         * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
3500         all permutations we can generate.
3501         (vect_transform_slp_perm_load): Use the correct group-size.
3503 2015-06-08  Marc Glisse  <marc.glisse@inria.fr>
3505         * genmatch.c (expr::gen_transform): For conditions, guess the type
3506         from the second operand.
3508 2015-06-08  Tom de Vries  <tom@codesourcery.com>
3510         PR tree-optimization/66442
3511         * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
3512         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
3513         if the loop latch is not a singleton.  Use
3514         gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
3516 2015-06-08  Marek Polacek  <polacek@redhat.com>
3518         PR sanitizer/66452
3519         * toplev.c (check_global_declaration): Don't warn about artificial
3520         decls.
3522 2015-06-08  Tom de Vries  <tom@codesourcery.com>
3524         PR tree-optimization/66436
3525         * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
3526         dump file.
3527         * gimplify.c: Add tree-dump.h include.
3528         (gimplify_function_tree): Dump function to gimple dump file.
3529         * stor-layout.c (finalize_size_functions): Don't dump function to gimple
3530         dump file.
3532 2015-06-08  Tom de Vries  <tom@codesourcery.com>
3534         PR tree-optimization/66435
3535         * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
3536         function.
3538 2015-06-06  Jan Hubicka  <hubicka@ucw.cz>
3540         * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
3541         of ptr_type_node to not be ptr_to_node.
3542         * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
3543         TREE_TYPE of pointers.
3544         * gimple-expr.c (useless_type_conversion): Reorder the check for
3545         function pointers and TYPE_CANONICAL.
3547 2015-06-06  John David Anglin  <danglin@gcc.gnu.org>
3549         PR bootstrap/66319
3550         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
3551         defines.  Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
3552         Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
3553         later.
3554         * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
3555         Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
3556         _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
3557         _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
3558         and non iso if unix2003.
3560 2015-06-06  Aldy Hernandez  <aldyh@redhat.com>
3562         * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
3564 2015-06-06  Richard Sandiford  <richard.sandiford@arm.com>
3566         * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
3567         rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
3568         cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
3569         except.c, final.c, function.c, gcse-common.c, genemit.c,
3570         haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
3571         lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
3572         sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
3573         shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
3574         more derived ones.
3576 2015-06-06  Mikhail Maltsev  <maltsevm@gmail.com>
3578         * combine.c (combine_split_insns): Remove cast.
3579         * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
3580         * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
3581         * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
3582         * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
3583         * genemit.c (gen_split): Change return type of generated functions to
3584         rtx_insn.
3585         * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
3586         (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
3587         gen_peephole2_* functions.
3588         (print_subroutine, main): Likewise.
3589         * recog.c (peephole2_optimize): Remove cast.
3590         (peep2_next_insn): Promote return type to rtx_insn.
3591         * recog.h (peep2_next_insn): Fix prototype.
3592         * rtl.h (try_split, split_insns): Likewise.
3594 2015-06-06  DJ Delorie  <dj@redhat.com>
3596         * config/msp430/msp430.c (msp430_asm_integer): Support addition
3597         and subtraction too.
3599 2015-06-05  Kaz Kojima  <kkojima@gcc.gnu.org>
3601         PR target/66410
3602         * config/sh/constraints.md (Sid, Ssd): New memory constraints.
3603         * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
3604         instead of Snd.  Disparage Sid/z alternative with '^'.
3606 2015-06-05  Aldy Hernandez  <aldyh@redhat.com>
3608         * dwarf2out.c: Remove deferred_locations*.
3609         (dwarf2_debug_hooks): Add early_finish hook.
3610         Remove global_decl hook.
3611         Add early_global_decl and late_global_decl hook.
3612         New global early_dwarf.
3613         New structure set_early_dwarf.
3614         (output_die): Indicate whether a DIE was generated early
3615         when generating assembly with -dA.
3616         (struct limbo_die_struct): Document created_for field.
3617         Remove file_table_last_lookup.
3618         (remove_AT): Return TRUE if successful.
3619         (remove_child_TAG): Clear die_parent.
3620         (reparent_child): New function abstracted from...
3621         (splice_child_die): ...here.
3622         (new_die): ICE if a DIE ends up in limbo too late.
3623         (check_die): New.
3624         (defer_location): Remove.
3625         (add_subscript_info): Reuse DW_TAG_subrange_type if available.
3626         (fill_variable_array_bounds): New.
3627         (decl_start_label): Call fill_variable_array_bounds.
3628         (gen_formal_parameter_die): Rewrite to reuse previously generated
3629         DIEs.
3630         (gen_subprogram_die): Same.
3631         (gen_variable_die): Same.
3632         (gen_const_die): Same.
3633         (gen_label_die): Same.
3634         (gen_lexical_block_die): Same.
3635         (decl_will_get_specification_p): New.
3636         (local_function_static): New.
3637         (gen_struct_or_union_type_die): Fill in variable-length fields.
3638         (gen_typedef_die): Fill in variable-length typedefs.
3639         (gen_tagged_type_die): Gracefully return on error_mark_node.
3640         Handle re-entrancy.
3641         (gen_type_die_with_usage): Handle variable-length types.
3642         Remove duplicate code for ARRAY_TYPE case.
3643         (process_scope_var): Only process imported modules during early
3644         dwarf.
3645         (dwarf2out_early_global_decl): New.
3646         (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
3647         (dwarf2out_type_decl): Set early_dwarf while calling
3648         dwarf2out_decl.
3649         (dwarf2out_decl): Verify that we did not recreate a previously
3650         generated DIE.
3651         Do not return on DECL_EXTERNALs in VAR_DECLs.
3652         Abstract some code to local_function_static.
3653         (lookup_filename): Remove use of file_table_last_lookup.
3654         Gracefully exit on missing file_name.
3655         (dwarf2out_finish): Verify limbo list.
3656         Remove deferred_locations_list use.
3657         Move deferred_asm_name and limbo flushing to...
3658         (dwarf2out_early_finish): ...here.  New.
3659         (dwarf2out_c_finalize): Remove set of deferred_location_list,
3660         deferred_asm_name, and file_table_last_lookup.
3661         * cgraph.h (referred_to_p): Add default argument.
3662         * cgraphunit.c (referred_to_p): Add and handle include_self
3663         argument.
3664         (analyze_functions): Add first_time argument.
3665         Call check_global_declaration for all symbols.
3666         Call late_global_decl for nodes for moribund nodes.
3667         (finalize_compilation_unit): Add new argument to
3668         analyze_functions.
3669         Call early_global_decl for functions.
3670         Call early_finish debug hook.
3671         * dbxout.c (dbxout_early_global_decl): New.
3672         (dbxout_late_global_decl): New.  Adapted from dbxout_global_decl.
3673         (dbx_debug_hooks): Add new hooks.
3674         (xcoff_debug_hooks): Same.
3675         * debug.c (do_nothing_debug_hooks): Add early_finish field.
3676         Add early and late debug hooks.
3677         Remove global_decl hook.
3678         * debug.h (struct gcc_debug_hooks): Add early_finish,
3679         early_global_decl, and late_global_decl fields.
3680         Remove global_decl field.
3681         Document gcc_debug_hooks.
3682         * gengtype.c (output_typename): Remove.
3683         * godump.c (go_early_global_decl): New.
3684         (go_late_global_decl): New.
3685         (go_global_decl): Remove.
3686         (dump_go_spec_init): Remove global_decl.  Add
3687         {early,late}_global_decl.
3688         * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
3689         (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
3690         * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
3691         (write_global_declarations): Remove.
3692         (global_decl_processing): New.
3693         * langhooks.h (struct lang_hooks_for_decls): Remove
3694         final_write_globals field.
3695         Add post_compilation_parsing_cleanups field.
3696         * passes.c (rest_of_decl_compilation): Call early_global_decl.
3697         * sdbout.c: Add early and late_global_decl hooks.  Remove
3698         sdbout_global_decl hook.
3699         Add early_finish field for sdb_debug_hooks.
3700         (sdbout_global_decl): Remove.
3701         (sdbout_early_global_decl): New.
3702         (sdbout_late_global_decl): New.
3703         * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
3704         * toplev.c (check_global_declaration): Rename from
3705         check_global_declaration_1.
3706         Adapt to use symtab infrastructure.
3707         (check_global_declarations): Remove.
3708         (emit_debug_global_declarations): Remove.
3709         (compile_file): Remove call to final_write_globals langhook.
3710         Run the actual compilation process.
3711         Perform any post compilation parser cleanups.
3712         Generate late debug info.
3713         * toplev.h (check_global_declaration): New.
3714         (check_global_declaration_1): Remove.
3715         (check_global_declarations): Remove.
3716         (write_global_declarations): Remove.
3717         (emit_debug_global_declarations): Remove.
3718         (global_decl_processing): New.
3719         * tree-core.h (struct tree_block): Add DIE field.
3720         * tree.h (BLOCK_DIE): New.
3721         * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
3722         throughout.
3723         (vmsdbgout_early_global_decl): New.
3724         (vmsdbgout_late_global_decl): New.
3725         Add early_finish debug hook field to vmsdbg_debug_hooks.
3726         Remove vmsdbgout_decl to vmsdbgout_function_decl.
3727         Add early and late_global_decl debug hooks.
3729 2015-06-05  Julian Brown  <julian@codesourcery.com>
3730             Sandra Loosemore  <sandra@codesourcery.com>
3732         * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
3733         * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
3734         to print-sysroot-suffix.sh script.
3736 2015-06-05  Tom de Vries  <tom@codesourcery.com>
3738         merge from gomp4 branch:
3739         2015-05-28  Tom de Vries  <tom@codesourcery.com>
3741         PR tree-optimization/65443
3742         * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
3743         (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
3744         (try_transform_to_exit_first_loop_alt): New function.
3745         (transform_to_exit_first_loop): Use
3746         try_transform_to_exit_first_loop_alt.
3748 2015-06-05  James Greenhalgh  <james.greenhalgh@arm.com>
3750         * builtins.c (expand_builtin_atomic_compare_exchange): Call
3751         emit_cmp_and_jump_insns with the mode of target.
3753 2015-06-05  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
3755         * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
3757 2015-06-04  DJ Delorie  <dj@redhat.com>
3759         * config/msp430/msp430.md (movsi_s): New.  Special case for
3760         storing a 20-bit symbol into a 32-bit register.
3761         * config/msp430/msp430.c (msp430_subreg): Add support for it.
3762         * config/msp430/predicates.md (msp430_symbol_operand): New.
3764 2015-06-04  Sriraman Tallam  <tmsriram@google.com>
3766         * c-family/c-common.c (noplt): New attribute.
3767         (handle_noplt_attribute): New handler.
3768         * calls.c (prepare_call_address): Check for noplt
3769         attribute.
3770         * config/i386/i386.c (ix86_expand_call): Check
3771         for noplt attribute.
3772         (ix86_nopic_noplt_attribute_p): New function.
3773         (ix86_output_call_insn): Output indirect call for non-pic
3774         no plt calls.
3775         * doc/extend.texi (noplt): Document new attribute.
3776         * doc/invoke.texi: Document new attribute.
3778 2015-06-04  Andrew MacLeod  <amacleod@redhat.com>
3780         * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
3781         real.h, and fixed-value.h when included in host source files.
3782         * double-int.h: Remove redundant #includes listed above.
3783         * fixed-value.h: Likewise.
3784         * real.h: Likewise.
3785         * wide-int.h: Likewise.
3786         * inchash.h: Likewise.
3787         * rtl.h: Add some include files When included from a generator file.
3788         * target.h: Remove wide-int.h and insn-modes.h from the include list.
3789         * internal-fn.h: Don't include coretypes.h.
3790         * alias.c: Adjust includes for restructured coretypes.h.
3791         * asan.c: Likewise.
3792         * attribs.c: Likewise.
3793         * auto-inc-dec.c: Likewise.
3794         * auto-profile.c: Likewise.
3795         * bb-reorder.c: Likewise.
3796         * bt-load.c: Likewise.
3797         * builtins.c: Likewise.
3798         * caller-save.c: Likewise.
3799         * calls.c: Likewise.
3800         * ccmp.c: Likewise.
3801         * cfg.c: Likewise.
3802         * cfganal.c: Likewise.
3803         * cfgbuild.c: Likewise.
3804         * cfgcleanup.c: Likewise.
3805         * cfgexpand.c: Likewise.
3806         * cfghooks.c: Likewise.
3807         * cfgloop.c: Likewise.
3808         * cfgloop.h: Likewise.
3809         * cfgloopanal.c: Likewise.
3810         * cfgloopmanip.c: Likewise.
3811         * cfgrtl.c: Likewise.
3812         * cgraph.c: Likewise.
3813         * cgraphbuild.c: Likewise.
3814         * cgraphclones.c: Likewise.
3815         * cgraphunit.c: Likewise.
3816         * cilk-common.c: Likewise.
3817         * combine-stack-adj.c: Likewise.
3818         * combine.c: Likewise.
3819         * compare-elim.c: Likewise.
3820         * convert.c: Likewise.
3821         * coverage.c: Likewise.
3822         * cppbuiltin.c: Likewise.
3823         * cprop.c: Likewise.
3824         * cse.c: Likewise.
3825         * cselib.c: Likewise.
3826         * data-streamer-in.c: Likewise.
3827         * data-streamer-out.c: Likewise.
3828         * data-streamer.c: Likewise.
3829         * dbxout.c: Likewise.
3830         * dce.c: Likewise.
3831         * ddg.c: Likewise.
3832         * debug.c: Likewise.
3833         * df-core.c: Likewise.
3834         * df-problems.c: Likewise.
3835         * df-scan.c: Likewise.
3836         * df.h: Likewise.
3837         * dfp.c: Likewise.
3838         * dojump.c: Likewise.
3839         * dominance.c: Likewise.
3840         * domwalk.c: Likewise.
3841         * double-int.c: Likewise.
3842         * dse.c: Likewise.
3843         * dumpfile.c: Likewise.
3844         * dwarf2asm.c: Likewise.
3845         * dwarf2cfi.c: Likewise.
3846         * dwarf2out.c: Likewise.
3847         * dwarf2out.h: Likewise.
3848         * emit-rtl.c: Likewise.
3849         * et-forest.c: Likewise.
3850         * except.c: Likewise.
3851         * explow.c: Likewise.
3852         * expmed.c: Likewise.
3853         * expr.c: Likewise.
3854         * final.c: Likewise.
3855         * fixed-value.c: Likewise.
3856         * fold-const.c: Likewise.
3857         * function.c: Likewise.
3858         * fwprop.c: Likewise.
3859         * gcc-plugin.h: Likewise.
3860         * gcse.c: Likewise.
3861         * generic-match-head.c: Likewise.
3862         * ggc-page.c: Likewise.
3863         * gimple-builder.c: Likewise.
3864         * gimple-expr.c: Likewise.
3865         * gimple-fold.c: Likewise.
3866         * gimple-iterator.c: Likewise.
3867         * gimple-low.c: Likewise.
3868         * gimple-match-head.c: Likewise.
3869         * gimple-pretty-print.c: Likewise.
3870         * gimple-ssa-isolate-paths.c: Likewise.
3871         * gimple-ssa-strength-reduction.c: Likewise.
3872         * gimple-streamer-in.c: Likewise.
3873         * gimple-streamer-out.c: Likewise.
3874         * gimple-streamer.h: Likewise.
3875         * gimple-walk.c: Likewise.
3876         * gimple.c: Likewise.
3877         * gimplify-me.c: Likewise.
3878         * gimplify.c: Likewise.
3879         * godump.c: Likewise.
3880         * graph.c: Likewise.
3881         * graphite-blocking.c: Likewise.
3882         * graphite-dependences.c: Likewise.
3883         * graphite-interchange.c: Likewise.
3884         * graphite-isl-ast-to-gimple.c: Likewise.
3885         * graphite-optimize-isl.c: Likewise.
3886         * graphite-poly.c: Likewise.
3887         * graphite-scop-detection.c: Likewise.
3888         * graphite-sese-to-poly.c: Likewise.
3889         * graphite.c: Likewise.
3890         * haifa-sched.c: Likewise.
3891         * hooks.h: Likewise.
3892         * hw-doloop.c: Likewise.
3893         * ifcvt.c: Likewise.
3894         * incpath.c: Likewise.
3895         * init-regs.c: Likewise.
3896         * internal-fn.c: Likewise.
3897         * ipa-chkp.c: Likewise.
3898         * ipa-comdats.c: Likewise.
3899         * ipa-cp.c: Likewise.
3900         * ipa-devirt.c: Likewise.
3901         * ipa-icf-gimple.c: Likewise.
3902         * ipa-icf.c: Likewise.
3903         * ipa-inline-analysis.c: Likewise.
3904         * ipa-inline-transform.c: Likewise.
3905         * ipa-inline.c: Likewise.
3906         * ipa-polymorphic-call.c: Likewise.
3907         * ipa-profile.c: Likewise.
3908         * ipa-prop.c: Likewise.
3909         * ipa-pure-const.c: Likewise.
3910         * ipa-ref.c: Likewise.
3911         * ipa-reference.c: Likewise.
3912         * ipa-split.c: Likewise.
3913         * ipa-utils.c: Likewise.
3914         * ipa-visibility.c: Likewise.
3915         * ipa.c: Likewise.
3916         * ira-build.c: Likewise.
3917         * ira-color.c: Likewise.
3918         * ira-conflicts.c: Likewise.
3919         * ira-costs.c: Likewise.
3920         * ira-emit.c: Likewise.
3921         * ira-lives.c: Likewise.
3922         * ira.c: Likewise.
3923         * jump.c: Likewise.
3924         * langhooks.c: Likewise.
3925         * lcm.c: Likewise.
3926         * loop-doloop.c: Likewise.
3927         * loop-init.c: Likewise.
3928         * loop-invariant.c: Likewise.
3929         * loop-iv.c: Likewise.
3930         * loop-unroll.c: Likewise.
3931         * lower-subreg.c: Likewise.
3932         * lra-assigns.c: Likewise.
3933         * lra-coalesce.c: Likewise.
3934         * lra-constraints.c: Likewise.
3935         * lra-eliminations.c: Likewise.
3936         * lra-lives.c: Likewise.
3937         * lra-remat.c: Likewise.
3938         * lra-spills.c: Likewise.
3939         * lra.c: Likewise.
3940         * lto-cgraph.c: Likewise.
3941         * lto-compress.c: Likewise.
3942         * lto-opts.c: Likewise.
3943         * lto-section-in.c: Likewise.
3944         * lto-section-out.c: Likewise.
3945         * lto-streamer-in.c: Likewise.
3946         * lto-streamer-out.c: Likewise.
3947         * lto-streamer.c: Likewise.
3948         * mcf.c: Likewise.
3949         * mode-switching.c: Likewise.
3950         * modulo-sched.c: Likewise.
3951         * omega.c: Likewise.
3952         * omp-low.c: Likewise.
3953         * optabs.c: Likewise.
3954         * opts-global.c: Likewise.
3955         * passes.c: Likewise.
3956         * plugin.c: Likewise.
3957         * postreload-gcse.c: Likewise.
3958         * postreload.c: Likewise.
3959         * predict.c: Likewise.
3960         * print-rtl.c: Likewise.
3961         * print-tree.c: Likewise.
3962         * profile.c: Likewise.
3963         * real.c: Likewise.
3964         * realmpfr.c: Likewise.
3965         * realmpfr.h: Likewise.
3966         * recog.c: Likewise.
3967         * ree.c: Likewise.
3968         * reg-stack.c: Likewise.
3969         * regcprop.c: Likewise.
3970         * reginfo.c: Likewise.
3971         * regrename.c: Likewise.
3972         * regs.h: Likewise.
3973         * regstat.c: Likewise.
3974         * reload.c: Likewise.
3975         * reload1.c: Likewise.
3976         * reorg.c: Likewise.
3977         * resource.c: Likewise.
3978         * rtl-chkp.c: Likewise.
3979         * rtlanal.c: Likewise.
3980         * rtlhooks.c: Likewise.
3981         * sanopt.c: Likewise.
3982         * sched-deps.c: Likewise.
3983         * sched-ebb.c: Likewise.
3984         * sched-rgn.c: Likewise.
3985         * sched-vis.c: Likewise.
3986         * sdbout.c: Likewise.
3987         * sel-sched-dump.c: Likewise.
3988         * sel-sched-ir.c: Likewise.
3989         * sel-sched.c: Likewise.
3990         * sese.c: Likewise.
3991         * shrink-wrap.c: Likewise.
3992         * shrink-wrap.h: Likewise.
3993         * simplify-rtx.c: Likewise.
3994         * stack-ptr-mod.c: Likewise.
3995         * statistics.c: Likewise.
3996         * stmt.c: Likewise.
3997         * stor-layout.c: Likewise.
3998         * store-motion.c: Likewise.
3999         * stringpool.c: Likewise.
4000         * symtab.c: Likewise.
4001         * target-globals.c: Likewise.
4002         * targhooks.c: Likewise.
4003         * toplev.c: Likewise.
4004         * tracer.c: Likewise.
4005         * trans-mem.c: Likewise.
4006         * tree-affine.c: Likewise.
4007         * tree-affine.h: Likewise.
4008         * tree-browser.c: Likewise.
4009         * tree-call-cdce.c: Likewise.
4010         * tree-cfg.c: Likewise.
4011         * tree-cfgcleanup.c: Likewise.
4012         * tree-chkp-opt.c: Likewise.
4013         * tree-chkp.c: Likewise.
4014         * tree-chrec.c: Likewise.
4015         * tree-complex.c: Likewise.
4016         * tree-data-ref.c: Likewise.
4017         * tree-dfa.c: Likewise.
4018         * tree-diagnostic.c: Likewise.
4019         * tree-dump.c: Likewise.
4020         * tree-eh.c: Likewise.
4021         * tree-emutls.c: Likewise.
4022         * tree-if-conv.c: Likewise.
4023         * tree-inline.c: Likewise.
4024         * tree-into-ssa.c: Likewise.
4025         * tree-iterator.c: Likewise.
4026         * tree-loop-distribution.c: Likewise.
4027         * tree-nested.c: Likewise.
4028         * tree-nrv.c: Likewise.
4029         * tree-object-size.c: Likewise.
4030         * tree-outof-ssa.c: Likewise.
4031         * tree-parloops.c: Likewise.
4032         * tree-phinodes.c: Likewise.
4033         * tree-predcom.c: Likewise.
4034         * tree-pretty-print.c: Likewise.
4035         * tree-pretty-print.h: Likewise.
4036         * tree-profile.c: Likewise.
4037         * tree-scalar-evolution.c: Likewise.
4038         * tree-sra.c: Likewise.
4039         * tree-ssa-address.c: Likewise.
4040         * tree-ssa-alias.c: Likewise.
4041         * tree-ssa-ccp.c: Likewise.
4042         * tree-ssa-coalesce.c: Likewise.
4043         * tree-ssa-copy.c: Likewise.
4044         * tree-ssa-copyrename.c: Likewise.
4045         * tree-ssa-dce.c: Likewise.
4046         * tree-ssa-dom.c: Likewise.
4047         * tree-ssa-dse.c: Likewise.
4048         * tree-ssa-forwprop.c: Likewise.
4049         * tree-ssa-ifcombine.c: Likewise.
4050         * tree-ssa-live.c: Likewise.
4051         * tree-ssa-loop-ch.c: Likewise.
4052         * tree-ssa-loop-im.c: Likewise.
4053         * tree-ssa-loop-ivcanon.c: Likewise.
4054         * tree-ssa-loop-ivopts.c: Likewise.
4055         * tree-ssa-loop-manip.c: Likewise.
4056         * tree-ssa-loop-niter.c: Likewise.
4057         * tree-ssa-loop-prefetch.c: Likewise.
4058         * tree-ssa-loop-unswitch.c: Likewise.
4059         * tree-ssa-loop.c: Likewise.
4060         * tree-ssa-loop.h: Likewise.
4061         * tree-ssa-math-opts.c: Likewise.
4062         * tree-ssa-operands.c: Likewise.
4063         * tree-ssa-phiopt.c: Likewise.
4064         * tree-ssa-phiprop.c: Likewise.
4065         * tree-ssa-pre.c: Likewise.
4066         * tree-ssa-propagate.c: Likewise.
4067         * tree-ssa-reassoc.c: Likewise.
4068         * tree-ssa-sccvn.c: Likewise.
4069         * tree-ssa-scopedtables.c: Likewise.
4070         * tree-ssa-sink.c: Likewise.
4071         * tree-ssa-strlen.c: Likewise.
4072         * tree-ssa-structalias.c: Likewise.
4073         * tree-ssa-tail-merge.c: Likewise.
4074         * tree-ssa-ter.c: Likewise.
4075         * tree-ssa-threadedge.c: Likewise.
4076         * tree-ssa-threadupdate.c: Likewise.
4077         * tree-ssa-uncprop.c: Likewise.
4078         * tree-ssa-uninit.c: Likewise.
4079         * tree-ssa.c: Likewise.
4080         * tree-ssanames.c: Likewise.
4081         * tree-stdarg.c: Likewise.
4082         * tree-streamer-in.c: Likewise.
4083         * tree-streamer-out.c: Likewise.
4084         * tree-streamer.c: Likewise.
4085         * tree-switch-conversion.c: Likewise.
4086         * tree-tailcall.c: Likewise.
4087         * tree-vect-data-refs.c: Likewise.
4088         * tree-vect-generic.c: Likewise.
4089         * tree-vect-loop-manip.c: Likewise.
4090         * tree-vect-loop.c: Likewise.
4091         * tree-vect-patterns.c: Likewise.
4092         * tree-vect-slp.c: Likewise.
4093         * tree-vect-stmts.c: Likewise.
4094         * tree-vectorizer.c: Likewise.
4095         * tree-vrp.c: Likewise.
4096         * tree.c: Likewise.
4097         * tsan.c: Likewise.
4098         * ubsan.c: Likewise.
4099         * valtrack.c: Likewise.
4100         * value-prof.c: Likewise.
4101         * var-tracking.c: Likewise.
4102         * varasm.c: Likewise.
4103         * varpool.c: Likewise.
4104         * vmsdbgout.c: Likewise.
4105         * vtable-verify.c: Likewise.
4106         * web.c: Likewise.
4107         * wide-int-print.cc: Likewise.
4108         * wide-int-print.h: Likewise.
4109         * wide-int.cc: Likewise.
4110         * xcoffout.c: Likewise.
4111         * config/aarch64/aarch64-builtins.c: Likewise.
4112         * config/aarch64/aarch64.c: Likewise.
4113         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
4114         * config/alpha/alpha.c: Likewise.
4115         * config/arc/arc.c: Likewise.
4116         * config/arm/aarch-common.c: Likewise.
4117         * config/arm/arm-builtins.c: Likewise.
4118         * config/arm/arm-c.c: Likewise.
4119         * config/arm/arm.c: Likewise.
4120         * config/avr/avr-c.c: Likewise.
4121         * config/avr/avr-log.c: Likewise.
4122         * config/avr/avr.c: Likewise.
4123         * config/bfin/bfin.c: Likewise.
4124         * config/c6x/c6x.c: Likewise.
4125         * config/cr16/cr16.c: Likewise.
4126         * config/cris/cris.c: Likewise.
4127         * config/darwin-c.c: Likewise.
4128         * config/darwin.c: Likewise.
4129         * config/default-c.c: Likewise.
4130         * config/epiphany/epiphany.c: Likewise.
4131         * config/epiphany/mode-switch-use.c: Likewise.
4132         * config/epiphany/resolve-sw-modes.c: Likewise.
4133         * config/fr30/fr30.c: Likewise.
4134         * config/frv/frv.c: Likewise.
4135         * config/ft32/ft32.c: Likewise.
4136         * config/glibc-c.c: Likewise.
4137         * config/h8300/h8300.c: Likewise.
4138         * config/i386/i386-c.c: Likewise.
4139         * config/i386/i386.c: Likewise.
4140         * config/i386/msformat-c.c: Likewise.
4141         * config/i386/winnt-cxx.c: Likewise.
4142         * config/i386/winnt-stubs.c: Likewise.
4143         * config/i386/winnt.c: Likewise.
4144         * config/ia64/ia64-c.c: Likewise.
4145         * config/ia64/ia64.c: Likewise.
4146         * config/iq2000/iq2000.c: Likewise.
4147         * config/lm32/lm32.c: Likewise.
4148         * config/m32c/m32c-pragma.c: Likewise.
4149         * config/m32c/m32c.c: Likewise.
4150         * config/m32r/m32r.c: Likewise.
4151         * config/m68k/m68k.c: Likewise.
4152         * config/mcore/mcore.c: Likewise.
4153         * config/mep/mep-pragma.c: Likewise.
4154         * config/mep/mep.c: Likewise.
4155         * config/microblaze/microblaze-c.c: Likewise.
4156         * config/microblaze/microblaze.c: Likewise.
4157         * config/mips/mips.c: Likewise.
4158         * config/mmix/mmix.c: Likewise.
4159         * config/mn10300/mn10300.c: Likewise.
4160         * config/moxie/moxie.c: Likewise.
4161         * config/msp430/msp430-c.c: Likewise.
4162         * config/msp430/msp430.c: Likewise.
4163         * config/nds32/nds32-cost.c: Likewise.
4164         * config/nds32/nds32-fp-as-gp.c: Likewise.
4165         * config/nds32/nds32-intrinsic.c: Likewise.
4166         * config/nds32/nds32-isr.c: Likewise.
4167         * config/nds32/nds32-md-auxiliary.c: Likewise.
4168         * config/nds32/nds32-memory-manipulation.c: Likewise.
4169         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
4170         * config/nds32/nds32-predicates.c: Likewise.
4171         * config/nds32/nds32.c: Likewise.
4172         * config/nios2/nios2.c: Likewise.
4173         * config/nvptx/nvptx.c: Likewise.
4174         * config/pa/pa.c: Likewise.
4175         * config/pdp11/pdp11.c: Likewise.
4176         * config/rl78/rl78-c.c: Likewise.
4177         * config/rl78/rl78.c: Likewise.
4178         * config/rs6000/rs6000-c.c: Likewise.
4179         * config/rs6000/rs6000.c: Likewise.
4180         * config/rx/rx.c: Likewise.
4181         * config/s390/s390-c.c: Likewise.
4182         * config/s390/s390.c: Likewise.
4183         * config/sh/sh-c.c: Likewise.
4184         * config/sh/sh-mem.cc: Likewise.
4185         * config/sh/sh.c: Likewise.
4186         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
4187         * config/sh/sh_treg_combine.cc: Likewise.
4188         * config/sol2-c.c: Likewise.
4189         * config/sol2-cxx.c: Likewise.
4190         * config/sol2-stubs.c: Likewise.
4191         * config/sol2.c: Likewise.
4192         * config/sparc/sparc-c.c: Likewise.
4193         * config/sparc/sparc.c: Likewise.
4194         * config/spu/spu-c.c: Likewise.
4195         * config/spu/spu.c: Likewise.
4196         * config/stormy16/stormy16.c: Likewise.
4197         * config/tilegx/mul-tables.c: Likewise.
4198         * config/tilegx/tilegx-c.c: Likewise.
4199         * config/tilegx/tilegx.c: Likewise.
4200         * config/tilepro/mul-tables.c: Likewise.
4201         * config/tilepro/tilepro-c.c: Likewise.
4202         * config/tilepro/tilepro.c: Likewise.
4203         * config/v850/v850-c.c: Likewise.
4204         * config/v850/v850.c: Likewise.
4205         * config/vax/vax.c: Likewise.
4206         * config/visium/visium.c: Likewise.
4207         * config/vms/vms-c.c: Likewise.
4208         * config/vms/vms.c: Likewise.
4209         * config/vxworks.c: Likewise.
4210         * config/winnt-c.c: Likewise.
4211         * config/xtensa/xtensa.c: Likewise.
4212         * common/config/bfin/bfin-common.c: Likewise.
4214 2015-06-04  Jan Hubicka  <hubicka@ucw.cz>
4216         * tree.h (tree_code_for_canonical_type_merging): New function.
4217         * tree.c (gimple_canonical_types_compatible_p): Use
4218         tree_code_for_canonical_type_merging..
4220 2015-06-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4222         PR c++/66192
4223         PR target/66200
4224         * doc/tm.texi: Regenerate.
4225         * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
4226         * target.def (TARGET_RELAXED_ORDERING): Likewise.
4227         * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
4228         * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
4229         * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
4230         * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
4231         * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
4232         * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
4233         * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
4235 2015-06-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4237         * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
4238         register fma steering pass.
4239         * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
4240         AARCH64_TUNE_FMA_STEERING.
4242 2015-06-03  Jan Hubicka  <hubicka@ucw.cz>
4244         * tree.c (verify_type_variant): Verify that type and variant is
4245         compatible.
4246         (gimple_canonical_types_compatible_p): Look for main variants.
4248 2015-06-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
4250         * config.gcc (powerpc*-*-*): Add support for a new configure
4251         option --with-advance-toolchain=<xxx> which overrides using the
4252         default header files, libraries and dynamic linker.
4254         * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
4255         specs to support the configure --with-advance-toolchain=<xxx>
4256         option.
4257         (INCLUDE_EXTRA_SPEC): Likewise.
4258         (LINK_OS_EXTRA_SPEC32): Likewise.
4259         (LINK_OK_EXTRA_SPEC64): Likewise.
4260         (LINK_OS_NEW_DTAGS_SPEC): Likewise.
4261         (DYNAMIC_LINKER_PREFIX): Likewise.
4262         (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
4263         toolchain support.
4264         (GLIBC_DYNAMIC_LINKER32): Likewise.
4265         (GLIBC_DYNAMIC_LINKER64): Likewise.
4266         (LINK_OS_LINUX_SPEC32): Likewise.
4267         (LINK_OS_LINUX_SPEC64): Likewise.
4269         * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
4270         configuration option.
4272 2015-06-03  Uros Bizjak  <ubizjak@gmail.com>
4274         PR target/66275
4275         * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
4276         to determine current function ABI.
4277         (ix86_function_value_regno_p): Ditto.
4279 2015-06-03  Martin Liska  <mliska@suse.cz>
4281         * alloc-pool.h (struct pool_usage): Correct GNU coding style.
4282         * bitmap.h (struct bitmap_usage): Likewise.
4283         * ggc-common.c (struct ggc_usage): Likewise.
4284         * mem-stats.h (struct mem_location): Likewise.
4285         (struct mem_usage): Likewise.
4286         * vec.c (struct vec_usage): Likewise.
4288 2015-06-03  Benigno B. Junior  <bbj@gentoo.org>
4290         * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
4291         -Bsymbolic.
4293 2015-06-02  Andres Tiraboschi  <andres.tiraboschi@tallertechnologies.com>
4295         * doc/plugins.texi (enum plugin_event): New event.
4296         * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
4297         and PLUGIN_FINISH_FUNCTION.
4298         * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
4299         (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
4301 2015-06-03  Richard Biener  <rguenther@suse.de>
4303         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
4304         compute GROUP_GAP for the first element.
4305         * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
4306         on in-group gaps.
4308 2015-06-03  Nick Clifton  <nickc@redhat.com>
4310         * config/rl78/rl78-real.md: Add peepholes to avoid a register
4311         copy when calling a function.
4312         * config/rl78/rl78.c (need_to_save): Do not push the frame
4313         pointer in an interrupt handler prologue if it is never used.
4315 2015-06-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4317         * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
4319 2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
4321         * ipa-chkp.c (chkp_maybe_create_clone): Create alias
4322         reference when cloning alias node.
4324 2015-06-03  Martin Liska  <mliska@suse.cz>
4326         * alloc-pool.h (struct pool_usage): Correct space padding.
4327         * ggc-page.c (ggc_print_statistics): Align columns in a report.
4328         * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
4329         * tree.c (dump_tree_statistics): Align columns in a report.
4331 2015-06-03  Martin Liska  <mliska@suse.cz>
4333         * alloc-pool.c (allocate_pool_descriptor): Remove.
4334         (struct pool_output_info): Likewise.
4335         (print_alloc_pool_statistics): Likewise.
4336         (dump_alloc_pool_statistics): Likewise.
4337         * alloc-pool.h (struct pool_usage): New struct.
4338         (pool_allocator::initialize): Change usage of memory statistics
4339         to a new interface.
4340         (pool_allocator::release): Likewise.
4341         (pool_allocator::allocate): Likewise.
4342         (pool_allocator::remove): Likewise.
4343         * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
4344         for a pool allocator.
4345         * mem-stats.h (struct mem_location): Add new ctor.
4346         (struct mem_usage): Add counter for number of
4347         instances.
4348         (mem_alloc_description::register_descriptor): New overload of
4349         * mem-stats.h (mem_location::to_string): New function.
4350         * bitmap.h (struct bitmap_usage): Use this new function.
4351         * ggc-common.c (struct ggc_usage): Likewise.
4352         the function.
4354 2015-06-03  Richard Sandiford  <richard.sandiford@arm.com>
4356         * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
4357         of GCC_INSN_FLAGS_H block.
4359 2015-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
4361         * explow.c (plus_constant): Update check after force_const_mem call
4362         to see if the value returned is not a NULL_RTX.
4364 2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
4366         * ipa.c (symbol_table::remove_unreachable_nodes): Don't
4367         remove instumentation thunks calling reachable functions.
4368         * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
4369         * lto/lto-partition.c (privatize_symbol_name_1): New.
4370         (privatize_symbol_name): Privatize both decl and orig_decl
4371         names for instrumented functions.
4372         * cgraph.c (cgraph_node::verify_node): Add transparent
4373         alias chain check for instrumented node.
4375 2015-06-03  Marek Polacek  <polacek@redhat.com>
4377         PR c/64223
4378         PR c/29358
4379         * tree.c (attribute_value_equal): Handle attribute format.
4380         (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
4382 2015-06-03  Richard Biener  <rguenther@suse.de>
4384         PR tree-optimization/63916
4385         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
4386         Forward-propagate non-invariant addresses by splicing their
4387         reference ops if the result isn't going to be used by PRE.
4388         (vn_reference_lookup_3): Remove pointless assert.
4390 2015-06-03  Richard Biener  <rguenther@suse.de>
4392         PR tree-optimization/66375
4393         * tree-scalar-evolution.c (follow_ssa_edge_binary): First
4394         add to the evolution before following SSA edges.
4396 2015-06-03  Bin Cheng  <bin.cheng@arm.com>
4398         * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
4399         (dump_use, dump_cand, find_induction_variables): Pass new argument
4400         to dump_iv.
4401         (record_use): Preserve the ssa name information in IV.
4403 2015-06-03  Richard Sandiford  <richard.sandiford@arm.com>
4405         * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
4406         NO_MODE_TEST.
4407         (add_mode_tests): Don't add mode tests if the predicate only
4408         accepts scalar constant integers.  Otherwise, allow the mode
4409         of "op" to be VOIDmode if the predicate does accept such integers.
4411 2015-06-02  Jim Wilson  <jim.wilson@linaro.org>
4413         PR target/66258
4414         * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
4415         !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
4416         (aarch64_secondary_reload): Likewise
4417         (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
4418         to !TARGET_FLOAT.
4419         (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
4420         Likewise.
4422 2015-06-03  Kugan Vivekanandarajah  <kuganv@linaro.org>
4423             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
4425         PR target/65768
4426         * cprop.c (try_replace_reg): Check cost of constants before propagating.
4428 2015-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
4430         * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
4431         provide access to the IBM extended double floating point mode if
4432         long double is IEEE 128-bit floating point.
4433         (KFmode): Define KFmode to provide access to IEEE 128-bit floating
4434         point if long double is the IBM extended double type.
4436         * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
4437         enable adding IEEE 128-bit floating point support.
4438         (-mfloat128-software): Likewise.
4439         (-mfloat128-sw): Likewise.
4441         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
4442         128-bit floating point types to occupy any register if
4443         -mlong-double-64.  Do not allow use of IFmode/KFmode unless
4444         -mfloat128-software is enabled.
4445         (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
4446         support.
4447         (rs6000_option_override_internal): Add -mfloat128-* support.
4448         (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
4450         * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
4451         and float128 type nodes.
4452         (ieee128_float_type_node): Likewise.
4453         (ibm128_float_type_node): Likewise.
4455 2015-06-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4457         PR target/66136
4458         * config/aarch64/geniterators.sh: Rewrite in awk.
4460 2015-06-02  Martin Liska  <mliska@suse.cz>
4462         * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
4463         values to avoid -Wmaybe-uninitialized errors.
4465 2015-06-02  Richard Biener  <rguenther@suse.de>
4467         PR debug/65549
4468         * dwarf2out.c (lookup_context_die): New function.
4469         (resolve_addr): Avoid forcing a full DIE for the
4470         target of a DW_TAG_GNU_call_site during late compilation.
4471         Instead create a stub DIE without a type if we have a
4472         context DIE present.
4474 2015-06-02  Uros Bizjak  <ubizjak@gmail.com>
4476         * df-scan.c (df_scan_start_dump): Add space between regno and regname.
4478 2015-06-02  Bin Cheng  <bin.cheng@arm.com>
4480         PR tree-optimization/48052
4481         * cfgloop.h (struct control_iv): New.
4482         (struct loop): New field control_ivs.
4483         * tree-ssa-loop-niter.c : Include "stor-layout.h".
4484         (number_of_iterations_lt): Set no_overflow information.
4485         (number_of_iterations_exit): Init control iv in niter struct.
4486         (record_control_iv): New.
4487         (estimate_numbers_of_iterations_loop): Call record_control_iv.
4488         (loop_exits_before_overflow): New.  Interface factored out of
4489         scev_probably_wraps_p.
4490         (scev_probably_wraps_p): Factor loop niter related code into
4491         loop_exits_before_overflow.
4492         (free_numbers_of_iterations_estimates_loop): Free control ivs.
4493         * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
4495 2015-06-02  Eric Botcazou  <ebotcazou@adacore.com>
4497         * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
4498         the target doesn't belong to the current function.
4500 2015-06-02  Marek Polacek  <polacek@redhat.com>
4502         PR middle-end/66345
4503         * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
4504         get_maxval_strlen does not produce an INTEGER_CST.
4506 2015-06-02  Richard Sandiford  <richard.sandiford@arm.com>
4508         * config/arc/constraints.md: Use lower-case names in match_code.
4509         * config/mmix/constraints.md: Likewise.
4511 2015-06-02  Richard Biener  <rguenther@suse.de>
4513         PR tree-optimization/65961
4514         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
4515         check and clarify dump message.
4516         (vect_build_slp_tree): If all children are built up from scalars
4517         build up the parent from scalars instead.
4518         * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
4520 2015-06-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
4522         PR other/65366
4523         * gdbhooks.py: Use int(...) instead of long(...).  Use print(...)
4524         instead of print ... .
4526 2015-06-02  Alan Modra  <amodra@gmail.com>
4528         * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
4529         2014-08-11 change.
4531 2015-06-02  Bin Cheng  <bin.cheng@arm.com>
4533         PR tree-optimization/52563
4534         PR tree-optimization/62173
4535         * tree-ssa-loop-ivopts.c (struct iv): New field.  Reorder fields.
4536         (alloc_iv, set_iv): New parameter.
4537         (determine_biv_step): Delete.
4538         (find_bivs): Inline original determine_biv_step.  Pass new
4539         argument to set_iv.
4540         (idx_find_step): Use no_overflow information for conversion.
4541         * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
4542         resolve_mixers handle folded_casts.
4543         (instantiate_scev_name): Change bool parameter to bool pointer.
4544         (instantiate_scev_poly, instantiate_scev_binary): Ditto.
4545         (instantiate_array_ref, instantiate_scev_not): Ditto.
4546         (instantiate_scev_3, instantiate_scev_2): Ditto.
4547         (instantiate_scev_1, instantiate_scev_r): Ditto.
4548         (instantiate_scev_convert, ): Change parameter.  Pass argument
4549         to chrec_convert_aggressive.
4550         (instantiate_scev): Change argument.
4551         (resolve_mixers): New parameter and set it.
4552         (scev_const_prop): New argument.
4553         * tree-scalar-evolution.h (resolve_mixers): New parameter.
4554         * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
4555         of chrec_conert_1.
4556         (chrec_convert): New parameter.  Move definition below.
4557         (chrec_convert_aggressive): New parameter and set it.  Call
4558         convert_affine_scev.
4559         * tree-chrec.h (chrec_convert): New parameter.
4560         (chrec_convert_aggressive): Ditto.
4562 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
4564         * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
4565         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
4566         the LHS of a no-return call if its type has variable size.
4567         * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
4568         * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
4570 2015-06-01  Andreas Tobler  <andreast@gcc.gnu.org>
4572         * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
4573         * config.in: Regenerate.
4575 2015-06-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
4577         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
4578         consecutive accesses within outer-loop with force_vectorize
4579         for references with zero step in inner-loop.
4581 2015-06-01  Vidya Praveen  <vidyapraveen@arm.com>
4583         * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
4584         rather than from gcc/build directory.
4586 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
4588         PR target/65697
4589         * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
4590         for __sync memory models, emit initial loads and final barriers as
4591         appropriate.
4593 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
4595         PR target/65697
4596         * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
4597         (aarch64_split_atomic_op): Check for __sync memory models, emit
4598         appropriate initial loads and final barriers.
4600 2015-06-01  Vidya Praveen  <vidyapraveen@arm.com>
4602         * Makefile.in: Fix gcov dependencies that should
4603         not point to a build folder.
4605 2015-06-01  Richard Biener  <rguenther@suse.de>
4607         Revert
4608         2015-05-29  Richard Biener  <rguenther@suse.de>
4610         PR tree-optimization/66314
4611         * tree-ssa-threadupdate.c (create_block_for_threading): Add
4612         parameter that says which loop the new block belongs to.
4613         (ssa_create_duplicates): Blocks duplicated for the threaded
4614         path belong to the loop of the thread destination.
4616 2015-06-01  Martin Liska  <mliska@suse.cz>
4618         * sched-deps.c: Include pool-alloc.h before
4619         cselib.h header file is included.
4621 2015-06-01  Richard Biener  <rguenther@suse.de>
4623         * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
4624         functions.
4626 2015-06-01  Martin Liska  <mliska@suse.cz>
4628         * alloc-pool.h: Add ATTRIBUTE_UNUSED for
4629         a function local variable.
4631 2015-06-01  Martin Liska  <mliska@suse.cz>
4633         * alloc-pool.c (create_alloc_pool): Remove.
4634         (empty_alloc_pool): Likewise.
4635         (free_alloc_pool): Likewise.
4636         (free_alloc_pool_if_empty): Likewise.
4637         (pool_alloc): Likewise.
4638         (pool_free): Likewise.
4639         * alloc-pool.h: Remove old declarations.
4641 2015-06-01  Martin Liska  <mliska@suse.cz>
4643         * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
4644         (ira_create_object): Likewise.
4645         (ira_create_allocno): Likewise.
4646         (ira_create_live_range): Likewise.
4647         (copy_live_range): Likewise.
4648         (ira_finish_live_range): Likewise.
4649         (ira_free_allocno_costs): Likewise.
4650         (finish_allocno): Likewise.
4651         (finish_allocnos): Likewise.
4652         (initiate_prefs): Likewise.
4653         (ira_create_pref): Likewise.
4654         (finish_pref): Likewise.
4655         (finish_prefs): Likewise.
4656         (initiate_copies): Likewise.
4657         (ira_create_copy): Likewise.
4658         (finish_copy): Likewise.
4659         (finish_copies): Likewise.
4660         (finish_prefs): Likewise.
4662 2015-06-01  Martin Liska  <mliska@suse.cz>
4664         * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
4665         (allocate_and_init_ipcp_value): Likewise.
4666         (ipcp_lattice::add_value): Likewise.
4667         (merge_agg_lats_step): Likewise.
4668         (ipcp_driver): Likewise.
4669         * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
4670         (ipa_free_all_structures_after_iinln): Likewise.
4671         * ipa-prop.h: Likewise.
4673 2015-06-01  Martin Liska  <mliska@suse.cz>
4675         * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
4676         pool allocator.
4677         (set_hint_predicate): Likewise.
4678         (inline_summary_alloc): Likewise.
4679         (reset_inline_edge_summary): Likewise.
4680         (reset_inline_summary): Likewise.
4681         (set_cond_stmt_execution_predicate): Likewise.
4682         (set_switch_stmt_execution_predicate): Likewise.
4683         (compute_bb_predicates): Likewise.
4684         (estimate_function_body_sizes): Likewise.
4685         (inline_free_summary): Likewise.
4687 2015-06-01  Martin Liska  <mliska@suse.cz>
4689         * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
4690         (ipa_edge_duplication_hook): Likewise.
4691         (ipa_free_all_structures_after_ipa_cp): Likewise.
4692         (ipa_free_all_structures_after_iinln): Likewise.
4694 2015-06-01  Martin Liska  <mliska@suse.cz>
4696         * ipa-profile.c (account_time_size): Use new type-based pool allocator.
4697         (ipa_profile_generate_summary): Likewise.
4698         (ipa_profile_read_summary): Likewise.
4699         (ipa_profile): Likewise.
4701 2015-06-01  Martin Liska  <mliska@suse.cz>
4703         * tree-ssa-structalias.c (new_var_info): Use new type-based
4704         pool allocator.
4705         (new_constraint): Likewise.
4706         (init_alias_vars): Likewise.
4707         (delete_points_to_sets): Likewise.
4709 2015-06-01  Martin Liska  <mliska@suse.cz>
4711         * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
4712         (free_strinfo): Likewise.
4713         (pass_strlen::execute): Likewise.
4715 2015-06-01  Martin Liska  <mliska@suse.cz>
4717         * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
4718         pool allocator.
4719         (vn_reference_insert_pieces): Likewise.
4720         (vn_phi_insert): Likewise.
4721         (visit_reference_op_call): Likewise.
4722         (copy_phi): Likewise.
4723         (copy_reference): Likewise.
4724         (process_scc): Likewise.
4725         (allocate_vn_table): Likewise.
4726         (free_vn_table): Likewise.
4728 2015-06-01  Martin Liska  <mliska@suse.cz>
4730         * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
4731         pool allocator.
4732         (add_repeat_to_ops_vec): Likewise.
4733         (get_ops): Likewise.
4734         (maybe_optimize_range_tests): Likewise.
4735         (init_reassoc): Likewise.
4736         (fini_reassoc): Likewise.
4738 2015-06-01  Martin Liska  <mliska@suse.cz>
4740         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
4741         pool allocator.
4742         (bitmap_set_new): Likewise.
4743         (get_or_alloc_expr_for_constant): Likewise.
4744         (get_or_alloc_expr_for): Likewise.
4745         (phi_translate_1): Likewise.
4746         (compute_avail): Likewise.
4747         (init_pre): Likewise.
4748         (fini_pre): Likewise.
4750 2015-06-01  Martin Liska  <mliska@suse.cz>
4752         * sched-deps.c (create_dep_node): Use new type-based pool allocator.
4753         (delete_dep_node): Likewise.
4754         (create_deps_list): Likewise.
4755         (free_deps_list): Likewise.
4756         (sched_deps_init): Likewise.
4757         (sched_deps_finish): Likewise.
4759 2015-06-01  Martin Liska  <mliska@suse.cz>
4761         * regcprop.c (free_debug_insn_changes): Use new type-based
4762         pool allocator.
4763         (replace_oldest_value_reg): Likewise.
4764         (pass_cprop_hardreg::execute): Likewise.
4766 2015-06-01  Martin Liska  <mliska@suse.cz>
4768         * ira-build.c (initiate_cost_vectors): Use new type-based
4769         pool allocator.
4770         (ira_allocate_cost_vector): Likewise.
4771         (ira_free_cost_vector): Likewise.
4772         (finish_cost_vectors): Likewise.
4774 2015-06-01  Martin Liska  <mliska@suse.cz>
4776         * sel-sched-ir.c (alloc_sched_pools): Use new type-based
4777         pool allocator.
4778         (free_sched_pools): Likewise.
4779         * sel-sched-ir.h (_list_alloc): Likewise.
4780         (_list_remove): Likewise.
4782 2015-06-01  Martin Liska  <mliska@suse.cz>
4784         * stmt.c (add_case_node): Use new type-based pool allocator.
4785         (expand_case): Likewise.
4786         (expand_sjlj_dispatch_table): Likewise.
4788 2015-06-01  Martin Liska  <mliska@suse.cz>
4790         * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
4791         (free_bb): Likewise.
4792         (pass_cse_reciprocals::execute): Likewise.
4794 2015-06-01  Martin Liska  <mliska@suse.cz>
4796         * tree-sra.c (sra_initialize): Use new type-based pool allocator.
4797         (sra_deinitialize) Likewise.
4798         (create_access_1) Likewise.
4799         (build_accesses_from_assign) Likewise.
4800         (create_artificial_child_access) Likewise.
4802 2015-06-01  Martin Liska  <mliska@suse.cz>
4804         * dse.c (get_group_info):Use new type-based pool allocator.
4805         (dse_step0) Likewise.
4806         (free_store_info) Likewise.
4807         (delete_dead_store_insn) Likewise.
4808         (free_read_records) Likewise.
4809         (record_store) Likewise.
4810         (replace_read) Likewise.
4811         (check_mem_read_rtx) Likewise.
4812         (scan_insn) Likewise.
4813         (dse_step1) Likewise.
4814         (dse_step7) Likewise.
4816 2015-06-01  Martin Liska  <mliska@suse.cz>
4818         * df-scan.c (struct df_scan_problem_data):Use new type-based
4819         pool allocator.
4820         (df_scan_free_internal) Likewise.
4821         (df_scan_alloc) Likewise.
4822         (df_grow_reg_info) Likewise.
4823         (df_free_ref) Likewise.
4824         (df_insn_create_insn_record) Likewise.
4825         (df_mw_hardreg_chain_delete) Likewise.
4826         (df_insn_info_delete) Likewise.
4827         (df_free_collection_rec) Likewise.
4828         (df_mw_hardreg_chain_delete_eq_uses) Likewise.
4829         (df_sort_and_compress_mws) Likewise.
4830         (df_ref_create_structure) Likewise.
4831         (df_ref_record) Likewise.
4833 2015-06-01  Martin Liska  <mliska@suse.cz>
4835         * df-problems.c (df_chain_create):Use new type-based pool allocator.
4836         (df_chain_unlink_1) Likewise.
4837         (df_chain_unlink) Likewise.
4838         (df_chain_remove_problem) Likewise.
4839         (df_chain_alloc) Likewise.
4840         (df_chain_free) Likewise.
4841         * df.h (struct dataflow) Likewise.
4843 2015-06-01  Martin Liska  <mliska@suse.cz>
4845         * cselib.c (new_elt_list):Use new type-based pool allocator.
4846         (new_elt_loc_list) Likewise.
4847         (unchain_one_elt_list) Likewise.
4848         (unchain_one_elt_loc_list) Likewise.
4849         (unchain_one_value) Likewise.
4850         (new_cselib_val) Likewise.
4851         (cselib_init) Likewise.
4852         (cselib_finish) Likewise.
4854 2015-06-01  Martin Liska  <mliska@suse.cz>
4856         * config/sh/sh.c (add_constant):Use new type-based pool allocator.
4857         (sh_reorg) Likewise.
4859 2015-06-01  Martin Liska  <mliska@suse.cz>
4861         * cfg.c (initialize_original_copy_tables):Use new type-based
4862         pool allocator.
4863         (free_original_copy_tables) Likewise.
4864         (copy_original_table_clear) Likewise.
4865         (copy_original_table_set) Likewise.
4867 2015-06-01  Martin Liska  <mliska@suse.cz>
4869         * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
4870         pool allocator.
4871         (asan_mem_ref_new) Likewise.
4872         (free_mem_ref_resources) Likewise.
4874 2015-06-01  Martin Liska  <mliska@suse.cz>
4876         * var-tracking.c (variable_htab_free):Use new type-based
4877         pool allocator.
4878         (attrs_list_clear) Likewise.
4879         (attrs_list_insert) Likewise.
4880         (attrs_list_copy) Likewise.
4881         (shared_hash_unshare) Likewise.
4882         (shared_hash_destroy) Likewise.
4883         (unshare_variable) Likewise.
4884         (var_reg_delete_and_set) Likewise.
4885         (var_reg_delete) Likewise.
4886         (var_regno_delete) Likewise.
4887         (drop_overlapping_mem_locs) Likewise.
4888         (variable_union) Likewise.
4889         (insert_into_intersection) Likewise.
4890         (canonicalize_values_star) Likewise.
4891         (variable_merge_over_cur) Likewise.
4892         (dataflow_set_merge) Likewise.
4893         (remove_duplicate_values) Likewise.
4894         (variable_post_merge_new_vals) Likewise.
4895         (dataflow_set_preserve_mem_locs) Likewise.
4896         (dataflow_set_remove_mem_locs) Likewise.
4897         (variable_from_dropped) Likewise.
4898         (variable_was_changed) Likewise.
4899         (set_slot_part) Likewise.
4900         (clobber_slot_part) Likewise.
4901         (delete_slot_part) Likewise.
4902         (loc_exp_insert_dep) Likewise.
4903         (notify_dependents_of_changed_value) Likewise.
4904         (emit_notes_for_differences_1) Likewise.
4905         (vt_emit_notes) Likewise.
4906         (vt_initialize) Likewise.
4907         (vt_finalize) Likewise.
4909 2015-06-01  Martin Liska  <mliska@suse.cz>
4911         * ira-color.c (init_update_cost_records):Use new type-based
4912         pool allocator.
4913         (get_update_cost_record) Likewise.
4914         (free_update_cost_record_list) Likewise.
4915         (finish_update_cost_records) Likewise.
4916         (initiate_cost_update) Likewise.
4918 2015-06-01  Martin Liska  <mliska@suse.cz>
4920         * lra.c (init_insn_regs): Use new type-based pool allocator.
4921         (new_insn_reg) Likewise.
4922         (free_insn_reg) Likewise.
4923         (free_insn_regs) Likewise.
4924         (finish_insn_regs) Likewise.
4925         (init_insn_recog_data) Likewise.
4926         (init_reg_info) Likewise.
4927         (finish_reg_info) Likewise.
4928         (lra_free_copies) Likewise.
4929         (lra_create_copy) Likewise.
4930         (invalidate_insn_data_regno_info) Likewise.
4932 2015-06-01  Martin Liska  <mliska@suse.cz>
4934         * lra-lives.c (free_live_range): Use new type-based pool allocator.
4935         (free_live_range_list) Likewise.
4936         (create_live_range) Likewise.
4937         (copy_live_range) Likewise.
4938         (lra_merge_live_ranges) Likewise.
4939         (remove_some_program_points_and_update_live_ranges) Likewise.
4940         (lra_live_ranges_init) Likewise.
4941         (lra_live_ranges_finish) Likewise.
4943 2015-06-01  Martin Liska  <mliska@suse.cz>
4945         * et-forest.c (et_new_occ): Use new type-based pool allocator.
4946         (et_new_tree): Likewise.
4947         (et_free_tree): Likewise.
4948         (et_free_tree_force): Likewise.
4949         (et_free_pools): Likewise.
4950         (et_split): Likewise.
4952 2015-06-01  Martin Liska  <mliska@suse.cz>
4954         * alloc-pool.c (struct alloc_pool_descriptor): Move definition
4955         to header file.
4956         * alloc-pool.h (pool_allocator::pool_allocator): New function.
4957         (pool_allocator::release): Likewise.
4958         (inline pool_allocator::release_if_empty): Likewise.
4959         (inline pool_allocator::~pool_allocator): Likewise.
4960         (pool_allocator::allocate): Likewise.
4961         (pool_allocator::remove): Likewise.
4963 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
4965         * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
4966         in comment.
4968 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
4970         * gcc/config/arm/arm-protos.h (tune_params): Rename fuseable_ops
4971         to fusible_ops.
4972         * gcc/config/arm/arm.c (arm_print_tune_info): Likewise.
4973         (arm_macro_fusion_p): Likewise.
4974         (arm_macro_fusion_pair_p): Likewise.
4976 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
4978         * config/aarch64/aarch64-protos.h (tune_params): Rename
4979         fuseable_ops to fusible_ops.
4980         * config/aarch64/aarch64.c (generic_tunings): Rename
4981         fuseable_ops to fusible_ops.
4982         (cortexa53_tunings): Likewise.
4983         (cortexa57_tunings): Likewise.
4984         (thunderx_tunings): Likewise.
4985         (xgene1_tunings): Likewise.
4986         (aarch64_macro_fusion_p): Likewise.
4987         (aarch64_macro_fusion_pair_p): Likewise.
4989 2015-06-01  Dominik Vogt  <vogt@linux.vnet.ibm.com>
4991         * config/s390/driver-native.c: New file.
4992         * config/s390/x-native: New file.
4993         * config.host: Add new files for s390.
4994         * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
4995         and -march=native
4996         * config.gcc: Likewise.
4997         * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
4998         * config/s390/s390-opts.h (enum processor_type): Ditto.
4999         * config/s390/s390.c (s390_option_override): Catch unhandled
5000         PROCESSOR_NATIVE
5002 2015-06-01  Ilya Enkovich  <ilya.enkovich@intel.com>
5004         PR target/65527
5005         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
5006         redirection for instrumented calls.
5007         * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
5008         (append_compiler_options): Append -fcheck-pointer-bounds.
5009         * tree-chkp.h (chkp_copy_call_skip_bounds): New.
5010         (chkp_redirect_edge): New.
5011         * tree-chkp.c (chkp_copy_call_skip_bounds): New.
5012         (chkp_redirect_edge): New.
5014 2015-06-01  Richard Biener  <rguenther@suse.de>
5016         PR tree-optimization/66280
5017         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
5018         def-use walking.
5020 2015-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5022         * config/aarch64/aarch64.md
5023         (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
5024         logic_shift_imm.
5026 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
5028         * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
5029         Remove obsolete kludge.
5031 2015-06-01  Richard Biener  <rguenther@suse.de>
5033         * tree-ssa-reassoc.c (get_rank): Simplify.
5035 2015-05-31  H.J. Lu  <hongjiu.lu@intel.com>
5037         * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
5038         * configure: Regenerated.
5040 2015-05-31  Mikhail Maltsev  <maltsevm@gmail.com>
5042         * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
5043         issue (add space between string literal and macro).
5044         * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
5046 2015-05-30  Andreas Schwab  <schwab@linux-m68k.org>
5048         * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
5049         implict or explicit -fPIE or -fpie.
5051 2015-05-30  Mike Frysinger  <vapier@gentoo.org>
5053         * gcc/config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
5055 2015-05-28  DJ Delorie  <dj@redhat.com>
5057         * expmed.c (extract_bit_field_1): Avoid clobbering a
5058         yet-to-be-used base/index register.
5060 2015-05-30  Jan Hubicka  <hubicka@ucw.cz>
5062         * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
5063         (alias_stats): Add num_universal.
5064         (alias_set_subset_of): Special case pointers; be ready for NULL
5065         children.
5066         (alias_sets_conflict_p): Special case pointers; be ready for NULL
5067         children.
5068         (init_alias_set_entry): Break out from ...
5069         (record_alias_subset): ... here; propagate new fields;
5070         allocate children only when really needed.
5071         (get_alias_set): Do less generous pointer globbing.
5072         (dump_alias_stats_in_alias_c): Update statistics.
5074 2015-05-30  Alan Modra  <amodra@gmail.com>
5076         * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
5077         correct block for use of r12.
5078         (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
5080 2015-05-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
5082         PR target/66215
5083         * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
5084         with -mhotpatch=.
5086 2015-05-29  Jakub Jelinek  <jakub@redhat.com>
5088         PR tree-optimization/66142
5089         * tree-if-conv.c (if_convertible_phi_p): Don't give up on
5090         virtual phis that feed themselves.
5092 2015-05-29  Richard Biener  <rguenther@suse.de>
5094         PR tree-optimization/66314
5095         * tree-ssa-threadupdate.c (create_block_for_threading): Add
5096         parameter that says which loop the new block belongs to.
5097         (ssa_create_duplicates): Blocks duplicated for the threaded
5098         path belong to the loop of the thread destination.
5100 2015-05-29  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
5102         * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
5103         to cleanup-saved-temps.
5104         * doc/sourcebuild.texi (Clean up generated test files): Expand
5105         introduction.
5106         (dg-keep-saved-temps): Document new proc.
5107         (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
5108         cleanup-saved-temps): Remove.
5110 2015-05-28  Andreas Tobler  <andreast@gcc.gnu.org>
5112         * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
5113         gcc_AC_CHECK_DECLS.
5114         * configure: Regenerate.
5116 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
5118         * config/nios2/linux.h (CPP_SPEC): Define.
5120 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
5122         * config/microblaze/linux.h (CPP_SPEC): Define.
5124 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
5126         * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
5127         -pthread is specified.
5129 2015-05-28  Richard Biener  <rguenther@suse.de>
5131         * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
5132         (vect_fixup_scalar_cycles_with_patterns): Likewise.
5133         (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
5134         after pattern recog.
5135         (vect_create_epilog_for_reduction): Properly handle reductions
5136         with patterns.
5137         (vectorizable_reduction): Likewise.
5138         * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
5139         reduction chains.
5140         (vect_get_constant_vectors): Create the correct number of
5141         initial values for reductions.
5142         (vect_schedule_slp_instance): Handle reduction chains that are
5143         type changing properly.
5144         * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
5146 2015-05-28  Richard Biener  <rguenther@suse.de>
5148         PR tree-optimization/66142
5149         * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
5150         values better in memcpy destination handling.  Handle non-aliasing
5151         we discover here.
5153 2015-05-28  Lawrence Velázquez  <vq@larryv.me>
5155         PR target/63810
5156         * config/darwin-c.c (version_components): New global enum.
5157         (parse_version, version_as_legacy_macro)
5158         (version_as_modern_macro, macosx_version_as_macro): New functions.
5159         (version_as_macro): Remove.
5160         (darwin_cpp_builtins): Use new function.
5162 2015-05-28  H.J. Lu  <hongjiu.lu@intel.com>
5164         * builtins.c (expand_builtin_acc_on_device): Mark parameters
5165         with ATTRIBUTE_UNUSED.
5167 2015-05-28  Julian Brown  <julian@codesourcery.com>
5169         PR libgomp/65742
5171         * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
5172         sequence for !ACCEL_COMPILER.
5174 2015-05-28  Nick Clifton  <nickc@redhat.com>
5176         * config/rx/rx.c (push_regs): New function.  Extracts code from...
5177         (rx_expand_prologue): ... here.  Use push_regs to push even small
5178         spans of registers.
5179         (pop_regs): New function.
5180         (rx_expand_epilogue):  Use pop_regs to pop even small spans of
5181         registers.
5183 2015-05-28  Richard Biener  <rguenther@suse.de>
5185         * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
5186         member.
5187         (SLP_INSTANCE_BODY_COST_VEC): Remove.
5188         (vect_update_slp_costs_according_to_vf): Likewise.
5189         (vect_slp_analyze_operations): Update prototype.
5190         * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
5191         vect_update_slp_costs_according_to_vf, adjust.
5192         * tree-vect-slp.c (vect_free_slp_instance): Adjust.
5193         (vect_analyze_slp_cost_1): Likewise.
5194         (vect_analyze_slp_cost): Likewise.  Properly deal with
5195         widening reduction ops.  Commit body costs.
5196         (vect_analyze_slp_instance): Adjust.  Do not analyze SLP
5197         cost for loops from here.
5198         (vect_slp_analyze_operations): But do it from here when
5199         the vectorization factor is known and stmts are analyzed.
5200         (vect_bb_vectorization_profitable_p): Simplify.
5201         (vect_slp_analyze_bb_1): Do not compute SLP cost here.
5202         (vect_update_slp_costs_according_to_vf): Remove.
5204 2015-05-27  Magnus Granberg  <zorry@gentoo.org>
5205             H.J. Lu  <hongjiu.lu@intel.com>
5207         * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
5208         (BUILD_CFLAGS): Likewise.
5209         (BUILD_CXXFLAGS): Likewise.
5210         (LINKER): Add @NO_PIE_FLAG@.
5211         (BUILD_LDFLAGS): Likewise.
5212         (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
5213         --enable-default-pie.
5214         * common.opt (fPIE): Initialize to -1.
5215         (fpie): Likewise.
5216         (no-pie): New option.
5217         (pie): Replace "Negative(shared)" with "Negative(no-pie)".
5218         * configure.ac: Add --enable-default-pie.
5219         (NO_PIE_CFLAGS): New.  Check if -fno-PIE works.  AC_SUBST.
5220         (NO_PIE_FLAG): New.  Check if -no-pie works.  AC_SUBST.
5221         * defaults.h (DEFAULT_FLAG_PIE): New.  Default PIE to -fPIE.
5222         * gcc.c (NO_PIE_SPEC): New.
5223         (PIE_SPEC): Likewise.
5224         (NO_FPIE1_SPEC): Likewise.
5225         (FPIE1_SPEC): Likewise.
5226         (NO_FPIE2_SPEC): Likewise.
5227         (FPIE2_SPEC): Likewise.
5228         (NO_FPIE2_SPEC): Likewise.
5229         (FPIE_SPEC): Likewise.
5230         (NO_FPIE_SPEC): Likewise.
5231         (NO_FPIC1_SPEC): Likewise.
5232         (FPIC1_SPEC): Likewise.
5233         (NO_FPIC2_SPEC): Likewise.
5234         (FPIC2_SPEC): Likewise.
5235         (NO_FPIC2_SPEC): Likewise.
5236         (FPIC_SPEC): Likewise.
5237         (NO_FPIC_SPEC): Likewise.
5238         (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
5239         (FPIE1_OR_FPIC1_SPEC): Likewise.
5240         (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
5241         (FPIE2_OR_FPIC2_SPEC): Likewise.
5242         (NO_FPIE_AND_FPIC_SPEC): Likewise.
5243         (FPIE_OR_FPIC_SPEC): Likewise.
5244         (LD_PIE_SPEC): Likewise.
5245         (LINK_PIE_SPEC): Handle -no-pie.  Use PIE_SPEC and LD_PIE_SPEC.
5246         * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
5247         * config/darwin.h (PIE_SPEC): Renamed to ...
5248         (DARWIN_PIE_SPEC): This.
5249         (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
5250         * config/darwin9.h (PIE_SPEC): Renamed to ...
5251         (DARWIN_PIE_SPEC): This.
5252         * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
5253         PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
5254         * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
5255         FPIE2_OR_FPIC2_SPEC.
5256         * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
5257         * config/m68k/openbsd.h (ASM_SPEC): Likewise.
5258         * gcc/config/sol2.h (ASM_PIC_SPEC): Likewise.
5259         * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
5260         * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
5261         * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
5262         * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
5263         * config/m32r/m32r.h (ASM_SPEC): Likewise.
5264         * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
5265         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
5266         * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
5267         * config/sparc/freebsd.h (ASM_SPEC): Likewise.
5268         * config/sparc/linux.h (ASM_SPEC): Likewise.
5269         * config/sparc/linux64.h (ASM_SPEC): Likewise.
5270         * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
5271         * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
5272         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
5273         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
5274         * config/sparc/sparc.h (ASM_SPEC): Likewise.
5275         * config/sparc/sysv4.h (ASM_SPEC): Likewise.
5276         * config/sparc/vxworks.h (ASM_SPEC): Likewise.
5277         * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
5278         FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
5279         * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
5280         * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
5281         NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
5282         (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
5283         * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
5284         * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
5285         * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
5286         * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
5287         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
5288         * config/vax/linux.h (ASM_SPEC): Likewise.
5289         * doc/install.texi: Document --enable-default-pie.
5290         * doc/invoke.texi: Document -no-pie.
5291         * config.in: Regenerated.
5292         * configure: Likewise.
5294 2015-05-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
5296         PR rtl-optimization/66168
5297         * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
5298         can_move_invariant_reg.
5300 2015-05-27  John David Anglin  <danglin@gcc.gnu.org>
5302         PR target/66148
5303         * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
5304         REG_EQUAL note when doing insert.
5306         * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
5307         instead of "%d" for 'o' operand.
5309 2015-05-27  Nathan Sidwell  <nathan@acm.org>
5311         PR c++/66270
5312         * tree.c (build_pointer_type_for_mode): Canonical type does not
5313         inherit can_alias_all.
5314         (build_reference_type_for_mode): Likewise.
5316 2015-05-27  Eric Botcazou  <ebotcazou@adacore.com>
5318         * expr.h (array_at_struct_end_p): Move to...
5319         (array_ref_element_size): Likewise.
5320         (component_ref_field_offset): Likewise.
5321         * tree.h (array_ref_element_size): ...here.
5322         (array_at_struct_end_p): Likewise.
5323         (component_ref_field_offset): Likewise.
5324         * expr.c (array_ref_element_size): Move to...
5325         (array_ref_low_bound): Likewise.
5326         (array_at_struct_end_p): Likewise.
5327         (array_ref_up_bound): Likewise.
5328         (component_ref_field_offset): Likewise.
5329         * tree.c (array_ref_element_size): ...here.
5330         (array_ref_low_bound): Likewise.
5331         (array_ref_up_bound): Likewise.
5332         (array_at_struct_end_p): Likewise.
5333         (component_ref_field_offset): Likewise.
5335 2015-05-27  Gregor Richards  <gregor.richards@uwaterloo.ca>
5336             Szabolcs Nagy  <szabolcs.nagy@arm.com>
5338         * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
5340 2015-05-27  Jason Merrill  <jason@redhat.com>
5342         PR bootstrap/66304
5343         * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
5344         ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
5345         ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
5347 2015-05-22  Aditya Kumar  <hiraditya@msn.com>
5349         * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
5350         is true.
5352         * statistics.c (statistics_fini_pass): Print pass name.
5354 2015-05-27  Richard Biener  <rguenther@suse.de>
5356         PR tree-optimization/66272
5357         Revert parts of
5358         2014-08-15  Richard Biener  <rguenther@suse.de>
5360         PR tree-optimization/62031
5361         * tree-data-ref.c (dr_analyze_indices): Do not set
5362         DR_UNCONSTRAINED_BASE.
5363         (dr_may_alias_p): All indirect accesses have to go the
5364         formerly DR_UNCONSTRAINED_BASE path.
5365         * tree-data-ref.h (struct indices): Remove
5366         unconstrained_base member.
5367         (DR_UNCONSTRAINED_BASE): Remove.
5369 2015-05-27  Aldy Hernandez  <aldyh@redhat.com>
5371         * dwarf2out.c: Remove block_map.
5372         (gen_call_site_die): Replace block_map use with BLOCK_DIE.
5373         (gen_lexical_block_die): Same.
5374         (dwarf2out_function_decl): Remove block_map use.
5375         (dwarf2out_c_finalize): Same.
5376         * tree-core.h (struct tree_block): Add die field.
5377         * tree.h (BLOCK_DIE): New.
5379 2015-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5381         PR target/65358
5382         * expr.c (memory_load_overlap): New function.
5383         (emit_push_insn): When pushing partial args to the stack would
5384         clobber the register part load the overlapping part into a pseudo
5385         and put it into the hard reg after pushing.  Change return type
5386         to bool.  Add bool argument.
5387         * expr.h (emit_push_insn): Change return type to bool.
5388         Add bool argument.
5389         * calls.c (expand_call): Cancel sibcall optimization when encountering
5390         partial argument on targets with ARGS_GROW_DOWNWARD and
5391         !STACK_GROWS_DOWNWARD.
5392         (emit_library_call_value_1): Update callsite of emit_push_insn.
5393         (store_one_arg): Likewise.
5395 2015-05-27  Gregor Richards  <gregor.richards@uwaterloo.ca>
5397         * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
5399 2015-05-27  Martin Liska  <mliska@suse.cz>
5401         * Makefile.in: Add additional dependencies related to memory report
5402         enhancement.
5403         * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
5404         * bitmap.c (struct bitmap_descriptor_d): Remove.
5405         (struct loc): Likewise.
5406         (struct bitmap_desc_hasher): Likewise.
5407         (bitmap_desc_hasher::hash): Likewise.
5408         (bitmap_desc_hasher::equal): Likewise.
5409         (get_bitmap_descriptor): Likewise.
5410         (bitmap_register): User new memory descriptor API.
5411         (register_overhead): Likewise.
5412         (bitmap_find_bit): Register nsearches and search_iter statistics.
5413         (struct bitmap_output_info): Remove.
5414         (print_statistics): Likewise.
5415         (dump_bitmap_statistics): Use new memory descriptor.
5416         * bitmap.h (struct bitmap_usage): New class.
5417         * genmatch.c: Extend header file inclusion.
5418         * genpreds.c: Likewise.
5419         * ggc-common.c (struct ggc_usage): New class.
5420         (struct ggc_loc_desc_hasher): Remove.
5421         (ggc_loc_desc_hasher::hash): Likewise.
5422         (ggc_loc_desc_hasher::equal): Likewise.
5423         (struct ggc_ptr_hash_entry): Likewise.
5424         (struct ptr_hash_hasher): Likewise.
5425         (ptr_hash_hasher::hash): Likewise.
5426         (ptr_hash_hasher::equal): Likewise.
5427         (make_loc_descriptor): Likewise.
5428         (ggc_prune_ptr): Likewise.
5429         (dump_ggc_loc_statistics): Use new memory descriptor.
5430         (ggc_record_overhead): Likewise.
5431         (ggc_free_overhead): Likewise.
5432         (final_cmp_statistic): Remove.
5433         (cmp_statistic): Likewise.
5434         (ggc_add_statistics): Liekwise.
5435         (ggc_prune_overhead_list): Likewise.
5436         * hash-map-traits.h: New file.
5437         * hash-map.h (struct default_hashmap_traits): Move the traits to a
5438         separate header file.
5439         * hash-set.h: Pass memory statistics info to ctor.
5440         * hash-table.c (void dump_hash_table_loc_statistics): New function.
5441         * hash-table.h (hash_table::hash_table): Add new ctor arguments.
5442         (hash_table::~hash_table): Register memory release operation.
5443         (hash_table::alloc_entries): Handle memory allocation operation.
5444         (hash_table::expand): Likewise.
5445         * inchash.c (iterative_hash_hashval_t): Move implementation to header
5446         file.
5447         (iterative_hash_host_wide_int): Likewise.
5448         * inchash.h (class hash): Likewise.
5449         * mem-stats-traits.h: New file.
5450         * mem-stats.h: New file.
5451         (mem_location): Add new class.
5452         (mem_usage): Likewise.
5453         (mem_alloc_description): Likewise.
5454         * sese.c: Add new header file inclusision.
5455         * toplev.c (dump_memory_report): Add report for hash_table, hash_map
5456         and hash_set.
5457         * tree-sra.c: Add new header file inclusision.
5458         * vec.c (struct vec_descriptor): Remove.
5459         (hash_descriptor): Likewise.
5460         (struct vec_usage): Likewise.
5461         (struct ptr_hash_entry): Likewise.
5462         (hash_ptr): Likewise.
5463         (eq_ptr): Likewise.
5464         (vec_prefix::register_overhead): Use new memory descriptor API.
5465         (vec_prefix::release_overhead): Likewise.
5466         (add_statistics): Remove.
5467         (dump_vec_loc_statistics): Use new memory descriptor API.
5468         * vec.h (struct vec_prefix): Likewise.
5469         (va_heap::reserve): Likewise.
5470         (va_heap::release): Likewise.
5471         * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
5473 2015-05-27  Richard Biener  <rguenther@suse.de>
5475         * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
5476         earlier and remove ??? comment.
5477         (vect_analyze_stmt): If we are analyzing a pure SLP stmt
5478         and got called from loop analysis bail out.  Always pass the SLP
5479         node to the vectorizable_* functions.
5480         * tree-vect-loop.c (vect_analyze_loop_operations): Remove
5481         the premature SLP check here.
5482         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
5483         detected SLP stmts.
5484         (vect_detect_hybrid_slp_1): Likewise.
5486 2015-05-26  Jeff Law  <law@redhat.com>
5488         * combine.c (find_split_point): Verify that the shift count is a
5489         constant when choosing (plus (ashift ...)) as a split point.
5491         * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
5492         No functional changes.
5494 2015-05-26  Jan Hubicka  <hubicka@ucw.cz>
5496         * ipa-polymorphic-call.c
5497         (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
5498         case when call target is already known.
5500 2015-05-26  Oleg Endo  <olegendo@gcc.gnu.org>
5502         PR target/65979
5503         * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
5504         take into account the case that operands[1] and operands[2]
5505         are the same register.
5507 2015-05-26  Michael Matz  <matz@suse.de>
5509         PR middle-end/66251
5511         * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
5512         stores.
5513         (vect_create_vectorized_demotion_stmts): Always set
5514         STMT_VINFO_VEC_STMT, also with SLP.
5515         (vectorizable_store): Handle strided group stores.
5517 2015-05-26  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
5519         PR target/66049
5520         * config/aarch64/aarch64.md
5521         (*adds_shift_imm_<mode>):  New pattern.
5522         (*subs_shift_imm_<mode>):  Likewise.
5523         (*adds_<optab><ALLX:mode>_shift_<GPI:mode>):  Likewise.
5524         (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
5525         (*add_uxt<mode>_shift2): Likewise.
5526         (*add_uxtsi_shift2_uxtw): Likewise.
5527         (*sub_uxt<mode>_shift2): Likewise.
5528         (*sub_uxtsi_shift2_uxtw): Likewise.
5530 2015-05-26  David Edelsohn  <dje.gcc@gmail.com>
5532         * config/rs6000/constraints.md (Y, U): Use match_test.
5534 2015-05-26  Christian Bruel  <christian.bruel@st.com>
5536         PR target/52144
5537         * config/arm/arm.c (arm_option_check_internal)
5538         (arm_option_params_internal): Check opts->target_flags to set macros.
5539         (TREE_TARGET_ARM, TREE_TARGET_THUMB)
5540         (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
5541         (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
5542         (builtin_define): Replaced with def_or_undef_macro.
5543         * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
5544         TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
5545         (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
5546         (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
5547         (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
5548         (TARGET_ARM_FEATURE_LDREX_P)
5549         (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
5550         * config/arm/arm-c.c (def_or_undef_macro): New function.
5551         (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
5553 2015-05-26  Christian Bruel  <christian.bruel@st.com>
5555         * c-common.h (builtin_define_with_int_value)
5556         (builtin_define_type_sizeof): Declare.
5557         * c-cppbuiltin.c (builtin_define_with_int_value)
5558         (builtin_define_type_sizeof): Externalize.
5559         (builtin_define_std): Cleanup declaration.
5560         * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
5561         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
5562         * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
5563         (builtin_define, builtin_assert): New macros.
5565 2015-05-26  Richard Biener  <rguenther@suse.de>
5567         PR tree-optimization/66142
5568         * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
5569         MEM_REFs for the same base address.
5571 2015-05-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5573         PR ipa/66181
5574         * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
5576 2015-05-26  Jason Merrill  <jason@redhat.com>
5578         * configure.ac: Set CXXFLAGS for ISL test.
5579         * configure: Regenerate.
5581         * configure.ac: Use C++ for all tests.  Use AC_CHECK_DECLS for
5582         strstr and basename.
5583         * configure: Regenerate.
5585 2015-05-26  Richard Biener  <rguenther@suse.de>
5587         * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
5588         X % C -> X & (C - 1) for C being a power-of two to ...
5589         * match.pd: ... patterns.
5591 2015-05-26  Marc Glisse  <marc.glisse@inria.fr>
5593         * match.pd (swapped_tcc_comparison): New operator list.
5594         (-A CMP -B): New simplification.
5595         * fold-const.c (fold_comparison): Remove corresponding code.
5597 2015-05-26  Richard Sandiford  <richard.sandiford@arm.com>
5599         * caller-save.c (init_caller_save): Base temporary register numbers
5600         on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
5601         * cfgloopanal.c (init_set_costs): Likewise.
5602         * dojump.c (prefer_and_bit_test): Likewise.
5603         * expr.c (init_expr_target): Likewise.
5604         * ira.c (setup_prohibited_mode_move_regs): Likewise.
5605         * lower-subreg.c (init_lower_subreg): Likewise.
5606         * postreload.c (reload_cse_regs_1): Likewise.
5608 2015-05-26  Richard Sandiford  <richard.sandiford@arm.com>
5610         * gensupport.h (compute_test_codes): Declare.
5611         * gensupport.c (compute_predicate_codes): Rename to...
5612         (compute_test_codes): ...this.  Generalize error message.
5613         (process_define_predicate): Update accordingly.
5614         * genpreds.c (compute_maybe_allows): Delete.
5615         (add_constraint): Use compute_test_codes to determine whether
5616         something can accept a SUBREG, REG or MEM.
5618 2015-05-26  Torvald Riegel  <triegel@redhat.com>
5620         * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
5621         'memory model' to align with C++11; fix description of memory orders;
5622         fix a few typos.
5624 2015-05-26  Richard Biener  <rguenther@suse.de>
5626         * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
5627         (vect_analyze_loop_operations): ... here.  Remove slp parameter,
5628         detect whether we apply SLP.  Remove call to
5629         vect_update_slp_costs_according_to_vf.
5630         (vect_analyze_loop_2): Call vect_update_vf_for_slp and
5631         vect_update_slp_costs_according_to_vf from here.  Dispatch
5632         to vect_slp_analyze_operations to analyze SLP stmts.
5633         * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
5634         unused bb_vec_info parameter, adjust assert.
5635         (vect_slp_analyze_operations): Pass in the slp instance tree
5636         instead of bb_vec_info.
5637         (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
5638         * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
5640 2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
5642         * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
5643         Q_REGS.  Expand comment.
5644         (REG_CLASS_NAMES): Ditto.
5645         (REG_CLASS_CONTENTS): Ditto.
5647 2015-05-25  Uros Bizjak  <ubizjak@gmail.com>
5649         PR target/66274
5650         * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
5651         when LEGACY_INT_REGNO_P is processed.
5653 2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
5655         * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
5657 2015-05-25  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
5659         * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
5660         register if not marked dead/unused, before return.
5662 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
5664         PR lto/66180
5665         * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
5666         is set; check for assembler name at LTO time.
5667         (type_in_anonymous_namespace): Remove hacks, check that all
5668         anonymous types are called "<anon>"
5669         (odr_type_p): Simplify; add check for "<anon>"
5670         (odr_subtypes_equivalent): Add odr_type_p check.
5671         * tree.c (need_assembler_name_p): Even anonymous namespace needs
5672         assembler name.
5674 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
5676         * ipa-utils.h (method_class_type): Remove.
5677         * cgraphunit.c (walk_polymorphic_call_targets): Use
5678         TYPE_METHOD_BASETYPE.
5679         * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
5680         on main variants only.
5681         (method_class_type): Remove.
5682         (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
5683         (build_type_inheritance_graph): Likewise.
5684         * ipa-icf.c (sem_function::equals_wpa): Likewise.
5685         * pa-polymorphic-call.c (decl_maybe_in_construction_p,
5686         check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
5688 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
5690         * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
5691         is_typedef_decl, typedef_variant_p): Constify.
5692         * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
5693         is_typedef_decl, typedef_variant_p): Constify.
5695 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5697         * defaults.h (gen_tablejump): New function.
5698         (HAVE_tablejump): Add default value.
5699         * expr.c: Adjust.
5700         * stmt.c: Likewise.
5702 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5704         * defaults.h (gen_store_multiple): New function.
5705         (HAVE_store_multiple): Add default value.
5706         * expr.c (move_block_from_reg): Adjust.
5708 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5710         * defaults.h (gen_load_multiple): New function.
5711         (HAVE_load_multiple): Add default value.
5712         * expr.c (move_block_to_reg): Adjust.
5714 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5716         * defaults.h (gen_mem_signal_fence): New function.
5717         (HAVE_mem_signal_fence): Add default value.
5718         * optabs.c: Adjust.
5720 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5722         * defaults.h (gen_memory_barrier): New function.
5723         (HAVE_memory_barrier): Add default value.
5724         * optabs.c: Adjust.
5726 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5728         * defaults.h (gen_mem_thread_fence): New function.
5729         (HAVE_mem_thread_fence): Add default definition.
5730         * optabs.c: Adjust.
5732 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5734         * combine.c (find_split_point): Check the value of HAVE_lo_sum
5735         instead of if it is defined.
5736         (combine_simplify_rtx): Likewise.
5737         * lra-constraints.c (process_address_1): Likewise.
5738         * config/darwin.c: Adjust.
5739         * genconfig.c (main): Always define HAVE_lo_sum.
5741 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
5743         * genmatch.c (parser::parse_operation): Reject expanding
5744         operator-list inside 'for'.
5746 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
5748         * genmatch.c (parser::parse_for): Reject iterator if used as
5749         operator-list.
5751 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
5753         * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
5754         after end of id-list.
5756 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
5758         * tree.c (gimple_canonical_types_compatible_p): Sanity check that
5759         we do not try to compute canonical type for type that does not need
5760         alias set.
5761         (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
5762         FUNCITON_TYPE.
5763         * tree.h (type_with_alias_set_p): New.
5765 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
5767         * tree.c (gimple_canonical_types_compatible_p):  Do not compare
5768         function attributes.
5769         (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
5771 2015-05-22  Jim Wilson  <jim.wilson@linaro.org>
5773         * Makefile.in (check_gcc_parallelize): Delete.
5774         (lang_checks_parallelized): Update comment.
5776 2015-05-22  Mikhail Maltsev  <maltsevm@gmail.com>
5778         PR rtl-optimization/66237
5779         * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
5780         location of an "as_a" cast.
5782 2015-05-22  Jeff Law  <law@redhat.com>
5784         * config/pa/pa.md (non-canonical shift-add insns): Remove.
5785         (peepholes with non-canonical RTL sources): Remove.
5786         (peepholes for indexed stores of FP regs in integer modes): Match and
5787         generate canonical RTL.
5789 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
5791         PR tree-optimization/63387
5792         * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
5793         ((x ord x) & (y ord y) -> (x ord y),
5794         (x ord x) & (x ord y) -> (x ord y)): New simplifications.
5795         * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
5796         vectors like scalars.
5798 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
5800         * convert.c (convert_to_integer, convert_to_vector): Include the
5801         types in the error message.
5803 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
5805         * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
5806         simplifications.
5808 2015-05-22  Jeff Law  <law@redhat.com>
5810         * config/pa/pa.md (integer_indexed_store splitters): Use
5811         mem_shadd_operand.  Use ASHIFT rather than MULT in the resulting
5812         insns -- adjusting the constant 2nd operand accordingly.
5814         * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
5815         (plus (ashift X log2) Y) if it is a split point.
5817         * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
5818         out of hppa_legitimize_address to handle both forms of a multiply
5819         by 2, 4 or 8.
5820         (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
5821         Always generate the ASHIFT variant as the result is not directly
5822         used in a MEM.  Update comments and refactor slightly to improve
5823         readability.
5825 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5827         PR target/65491
5828         * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
5829         aarch64_composite_type_p.  Remove check for aarch64_composite_type_p.
5830         (aarch64_composite_type_p): Return false if given type and mode are
5831         for a short vector.
5833 2015-05-22  Richard Biener  <rguenther@suse.de>
5835         * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
5836         member.
5837         * tree-vect-loop.c (vect_analyze_loop_operations): Look at
5838         patterns when determining whether SLP is pure.
5839         (vect_is_slp_reduction): Remove check for pattern stmts.
5840         (vect_is_simple_reduction_1): Remove dead code.
5841         * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
5842         (vect_get_and_check_slp_defs): Pass in the stmt number.
5843         Allow the first def in a reduction to be not a pattern stmt when
5844         the rest of the stmts def are patterns.
5845         (vect_build_slp_tree_1): Allow tcc_expression codes like
5846         SAD_EXPR and DOT_PROD_EXPR.
5847         (vect_build_slp_tree): Adjust.
5848         (vect_analyze_slp): Refactor and move BB vect error message ...
5849         (vect_slp_analyze_bb_1): ... here.
5851 2015-05-22  Aldy Hernandez  <aldyh@redhat.com>
5853         * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
5854         for CSWTCH temporary.
5856 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5858         * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
5859         (arm_unspec_cost): Allow UNSPEC_VOLATILE.  Do not recurse inside
5860         unknown unspecs.
5862 2015-05-22  Richard Biener  <rguenther@suse.de>
5864         PR tree-optimization/66251
5865         * tree-vect-stmts.c (vectorizable_conversion): Properly
5866         set STMT_VINFO_VEC_STMT even for the SLP case.
5868 2015-05-22  Marek Polacek  <polacek@redhat.com>
5870         * doc/extend.texi: Use @pxref instead of @xref.
5872 2015-05-22  hiraditya  <hiraditya@msn.com>
5874         * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
5875         redundant if.
5877 2015-05-22  Richard Biener  <rguenther@suse.de>
5879         PR tree-optimization/65701
5880         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
5881         Move peeling cost models into one place.  Peel for alignment
5882         for single loads only if an aligned load is cheaper than
5883         an unaligned load.
5885 2015-05-22  Marek Polacek  <polacek@redhat.com>
5887         PR c/47043
5888         * doc/extend.texi (Enumerator Attributes): New section.
5889         Document syntax of enumerator attributes.
5891 2015-05-22  Richard Biener  <rguenther@suse.de>
5893         * tree-vect-loop.c (get_reduction_op): New function.
5894         (vect_model_reduction_cost): Use it, add reduc_index parameter.
5895         Make ready for BB reductions.
5896         (vect_create_epilog_for_reduction): Use get_reduction_op.
5897         (vectorizable_reduction): Init reduc_index to a valid value.
5898         Adjust vect_model_reduction_cost call.
5899         * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
5900         operand for reduction defaults.  Add SAD_EXPR support.
5901         Assert we have a neutral op for SLP reductions.
5902         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
5903         walking pattern stmt ops only recurse to SSA names.
5905 2015-05-22  Richard Biener  <rguenther@suse.de>
5907         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
5908         assert with guard, remove check on detected reduction.
5909         (vect_recog_sad_pattern): Likewise.
5910         (vect_recog_widen_sum_pattern): Likewise.
5912 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5914         * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
5915         __always_inline__ attribute.
5916         (vaesdq_u8): Likewise.
5917         (vaesmcq_u8): Likewise.
5918         (vaesimcq_u8): Likewise.
5919         (vsha1cq_u32): Likewise.
5920         (vsha1mq_u32): Likewise.
5921         (vsha1pq_u32): Likewise.
5922         (vsha1h_u32): Likewise.
5923         (vsha1su0q_u32): Likewise.
5924         (vsha1su1q_u32): Likewise.
5925         (vsha256hq_u32): Likewise.
5926         (vsha256h2q_u32): Likewise.
5927         (vsha256su0q_u32): Likewise.
5928         (vsha256su1q_u32): Likewise.
5929         (vmull_p64): Likewise.
5930         (vmull_high_p64): Likewise.
5932 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5934         * final.c (final_scan_insn): Don't check HAVE_peephole with the
5935         preprocessor.
5936         * output.h: Likewise.
5937         * genconfig.c (main): Alwways define HAVE_peephole.
5938         * genpeep.c: Don't emit checks of HAVE_peephole.
5940 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5942         * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
5943         check HAVE_conditional_move with the preprocessor.
5945 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5947         * genconfig.c (main): Always define HAVE_conditional_move.
5948         * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
5949         toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
5950         is defined.
5952 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5954         * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
5955         reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
5956         and FRAME_POINTER_REGNUM with the preprocessor.
5958 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5960         * defaults.h: Add default for STACK_PUSH_CODE.
5961         * expr.c: Don't redefine STACK_PUSH_CODE.
5962         * recog.c: Likewise.
5964 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5966         * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
5967         sched-deps.c: Use if instead of preprocessor checks with
5968         STACK_GROWS_DOWNWARD.
5970 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5972         * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
5973         is defined.
5974         * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
5975         * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
5976         * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
5977         * doc/tm.texi: Regenerate.
5979 2015-05-21  H.J. Lu  <hongjiu.lu@intel.com>
5981         PR target/66232
5982         * config/i386/constraints.md (Bg): New constraint for GOT memory
5983         operand.
5984         * config/i386/i386.md (*call_got_x32): New pattern.
5985         (*call_value_got_x32): Likewise.
5986         * config/i386/predicates.md (GOT_memory_operand): New predicate.
5988 2015-05-21  Jakub Jelinek  <jakub@redhat.com>
5990         PR tree-optimization/66233
5991         * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
5992         Simplify.
5994 2015-05-21  Jeff Law  <law@redhat.com>
5996         * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
5997         than MULT for shadd sequences.
5999 2015-05-08  Jan Hubicka  <hubicka@ucw.cz>
6001         * alias.c (alias_stats): New static var.
6002         (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
6003         (dump_alias_stats_in_alias_c): New function.
6004         * alias.h (dump_alias_stats_in_alias_c): Declare.
6005         * tree-ssa-alias.c (dump_alias_stats): Call it.
6007 2015-05-08  Michael Matz  <matz@suse.de>
6009         * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
6010         to strided_p.
6011         (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
6012         (STMT_VINFO_STRIDED_P): ... this.
6013         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
6014         (vect_verify_datarefs_alignment): Likewise.
6015         (vect_enhance_data_refs_alignment): Likewise.
6016         (vect_analyze_data_ref_access): Likewise.
6017         (vect_analyze_data_refs): Accept strided stores.
6018         * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
6019         (vect_model_load_cost): Adjust for macro rename.
6020         (vectorizable_mask_load_store): Likewise.
6021         (vectorizable_load): Likewise.
6022         (vectorizable_store): Open code strided stores.
6024 2015-05-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6026         * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
6027         Document sqrt_insn.
6029 2015-05-21  Richard Biener  <rguenther@suse.de>
6031         PR c++/66211
6032         * match.pd: Guard pattern optimzing (int)(float)int
6033         conversions to apply only on GIMPLE.
6035 2015-05-21  Jeff Law  <law@redhat.com>
6037         * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
6038         multiply-accumulate/shift-add insn generation.
6040 2015-05-21  Oleg Endo  <olegendo@gcc.gnu.org>
6042         PR target/54236
6043         * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
6044         operands[1] are the same.
6046 2015-05-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
6048         PR middle-end/66221
6049         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
6050         build_distinct_type_copy to copy bounds.
6052 2015-05-21  Thomas Schwinge  <thomas@codesourcery.com>
6054         * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
6055         Change to unsigned int.
6057 2015-05-20  Jeff Law  <law@redhat.com>
6059         * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
6060         (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
6061         (pa_shadd_constant_p): Allow constants for shadd insns rather
6062         than valid scaling constants for memory addresses.
6063         * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
6064         * config/pa/predicates.md (mem_shadd_operand): New predicate.
6065         * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
6066         (shift-add insns using ASHIFT): New patterns.
6068 2015-05-20  Mikhail Maltsev  <maltsevm@gmail.com>
6070         * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
6071         feasible.
6072         (fix_up_fall_thru_edges): Likewise.
6073         (fix_crossing_conditional_branches): Likewise. Promote jump targets
6074         from to rtx_insn to rtx_code_label where feasible.
6075         * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
6076         gen_move_insn (returned type changed to rtx_insn).
6077         * builtins.c (expand_errno_check): Fix arguments of
6078         do_compare_rtx_and_jump (now expects rtx_code_label).
6079         (expand_builtin_acc_on_device): Likewise.
6080         * cfgcleanup.c (try_simplify_condjump): Add cast when calling
6081         invert_jump (now exprects rtx_jump_insn).
6082         * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
6083         (construct_init_block): Use rtx_code_label.
6084         * cfgrtl.c (block_label): Promote return type to rtx_code_label.
6085         (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
6086         calling redirect_jump.
6087         (patch_jump_insn): Likewise.
6088         (redirect_branch_edge): Likewise.
6089         (force_nonfallthru_and_redirect): Likewise.
6090         (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
6091         when suitable.
6092         (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
6093         * cfgrtl.h: Promote return type of block_label to rtx_code_label.
6094         * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
6095         * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
6096         to store the value retured by gen_label_rtx.
6097         * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
6098         rtx_jump_insn.
6099         * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
6100         (split_branches): Fix calls of redirect_jump.
6101         * dojump.c (jumpifnot): Promote argument type from rtx to
6102         rtx_code_label.
6103         (jumpifnot_1): Likewise.
6104         (jumpif): Likewise.
6105         (jumpif_1): Likewise.
6106         (do_jump_1): Likewise.
6107         (do_jump): Likewise. Use rtx_code_label when feasible.
6108         (do_jump_by_parts_greater_rtx): Likewise.
6109         (do_jump_by_parts_zero_rtx): Likewise.
6110         (do_jump_by_parts_equality_rtx): Likewise.
6111         (do_compare_rtx_and_jump): Likewise.
6112         * dojump.h: Update function prototypes.
6113         * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
6114         returns rtx_insn).
6115         * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
6116         rtx_jump_insn.
6117         (emit_label_before): Likewise.
6118         (emit_jump_insn_after_noloc): Likewise.
6119         (emit_jump_insn_after_setloc): Likewise.
6120         (emit_jump_insn_after): Likewise
6121         (emit_jump_insn_before_setloc): Likewise.
6122         (emit_jump_insn_before): Likewise.
6123         (emit_label_before): Promote return type to rtx_code_label.
6124         (emit_label): Likewise.
6125         * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
6126         * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
6127         gen_move_insn.
6128         (emit_stack_restore): Likewise.
6129         * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
6130         (do_cmp_and_jump): Likewise.
6131         * expr.c (expand_expr_real_2): Likewise. Promote some local variables
6132         from rtx to rtx_code_label.
6133         (gen_move_insn_uncast): New function.
6134         * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
6135         * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
6136         * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
6137         * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
6138         invert_jump_1 and redirect_jump_1.
6139         * internal-fn.c (expand_arith_overflow_result_store): Fix call of
6140         do_compare_rtx_and_jump.
6141         (expand_addsub_overflow): Likewise.
6142         (expand_neg_overflow): Likewise.
6143         (expand_mul_overflow): Likewise.
6144         * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
6145         return value of gen_move_insn.
6146         * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
6147         * loop-doloop.c (add_test): Use rtx_code_label.
6148         (doloop_modify): Likewise.
6149         (doloop_optimize): Likewise.
6150         * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
6151         * lra-constraints.c (emit_spill_move): Remove cast of value returned
6152         by gen_move_insn.
6153         (inherit_reload_reg): Add cast when calling dump_insn_slim.
6154         (split_reg): Likewise.
6155         * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
6156         gen_move_insn.
6157         * optabs.c (expand_binop_directly): Remove casts of values returned by
6158         maybe_gen_insn.
6159         (expand_unop_direct): Likewise.
6160         (expand_abs): Likewise.
6161         (maybe_emit_unop_insn): Likewise.
6162         (maybe_gen_insn): Promote return type to rtx_insn.
6163         * optabs.h: Update prototype of maybe_gen_insn.
6164         * postreload-gcse.c (eliminate_partially_redundant_load): Remove
6165         redundant cast.
6166         * recog.c (struct peep2_insn_data): Promote type of insn field to
6167         rtx_insn.
6168         (peep2_reinit_state): Use NULL instead of NULL_RTX.
6169         (peep2_attempt): Remove casts of insn in peep2_insn_data.
6170         (peep2_fill_buffer): Promote argument from rtx to rtx_insn
6171         * recog.h (struct insn_gen_fn): Promote return types of function
6172         pointers and operator ().from rtx to rtx_insn.
6173         * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
6174         (fill_eager_delay_slots): Likewise.
6175         (relax_delay_slots): Likewise.
6176         (make_return_insns): Likewise.
6177         (dbr_schedule): Likewise.
6178         (optimize_skips): Likewise.
6179         (reorg_redirect_jump): Likewise.
6180         (fill_slots_from_thread): Likewise.
6181         * reorg.h: Update prototypes.
6182         * resource.c (find_dead_or_set_registers): Use dyn_cast to
6183         rtx_jump_insn instead of check.  Use it's jump_target method.
6184         * rtl.h (rtx_jump_insn::jump_label): Define new method.
6185         (rtx_jump_insn::jump_target): Define new method.
6186         (rtx_jump_insn::set_jump_target): Define new method.
6187         * rtlanal.c (tablejump_p): Promote type of one local variable.
6188         * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
6189         (sched_analyze_insn): Likewise.
6190         * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
6191         (print_insn): Likewise.
6192         * stmt.c (label_rtx): Promote return type to rtx_insn.
6193         (force_label_rtx): Likewise.
6194         (jump_target_rtx): Define new function.
6195         (expand_label): Use it, get rid of one cast.
6196         (expand_naked_return): Promote rtx to rtx_code_label.
6197         (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
6198         (expand_case): Use rtx_code_label instread of rtx where feasible.
6199         (expand_sjlj_dispatch_table): Likewise.
6200         (emit_case_nodes): Likewise.
6201         * stmt.h: Declare jump_target_rtx.  Update prototypes.  Fix comments.
6202         * store-motion.c (insert_store): Make use of new return type of
6203         gen_move_insn and remove a cast.
6204         (replace_store_insn): Likewise.
6206 2015-05-20  Max Filippov  <jcmvbkbc@gmail.com>
6208         * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
6209         by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
6211 2015-05-20  Jeff Law  <law@redhat.com>
6213         * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
6214         dispose of the jump thread path when the jump threading
6215         opportunity is cancelled.
6217 2015-05-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6219         * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
6220         when printing the caret character.
6222 2015-05-20  Marek Polacek  <polacek@redhat.com>
6224         * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
6226 2015-05-20  Marek Polacek  <polacek@redhat.com>
6228         * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
6229         * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
6230         * gimple-fold.c (canonicalize_bool): Likewise.
6231         (same_bool_result_p): Likewise.
6232         * tree-if-conv.c (parse_predicate): Likewise.
6234 2015-05-20  Marek Polacek  <polacek@redhat.com>
6236         * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
6237         * gimplify.c (gimplify_modify_expr_rhs): Likewise.
6239 2015-05-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6241         * config/aarch64/aarch64.c (aarch64_class_max_nregs):
6242         Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
6243         values.
6245 2015-05-20  Robert Suchanek  <robert.suchanek@imgtec.com>
6247         * config/mips/mips.h (micromips_globals): Declare.
6249 2015-05-20  David Malcolm  <dmalcolm@redhat.com>
6251         * timevar.def (TV_INITIALIZE_RTL): New.
6252         * toplev.c (initialize_rtl): Use an auto_timevar to account this
6253         function's time to TV_INITIALIZE_RTL.
6255 2015-05-20  Ilya Enkovich  <enkovich.gnu@gmail.com>
6257         * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
6258         gimple_build_nop calls.
6259         (chkp_find_bounds_for_elem): Likewise.
6260         (chkp_get_zero_bounds): Likewise.
6261         (chkp_get_none_bounds): Likewise.
6262         (chkp_get_bounds_by_definition): Likewise.
6263         (chkp_generate_extern_var_bounds): Likewise.
6264         (chkp_get_bounds_for_decl_addr): Likewise.
6265         (chkp_get_bounds_for_string_cst): Likewise.
6267 2015-05-20  Bin Cheng  <bin.cheng@arm.com>
6269         PR tree-optimization/65447
6270         * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
6271         (dump_use, dump_uses): Support to dump sub use.
6272         (record_use): New parameters to support sub use.  Remove call to
6273         dump_use.
6274         (record_sub_use, record_group_use): New functions.
6275         (compute_max_addr_offset, split_all_small_groups): New functions.
6276         (group_address_uses, rewrite_use_address): New functions.
6277         (strip_offset): New declaration.
6278         (find_interesting_uses_address): Call record_group_use.
6279         (add_candidate): New assertion.
6280         (infinite_cost_p): Move definition forward.
6281         (add_costs): Check INFTY cost and return immediately.
6282         (get_computation_cost_at): Clear setup cost and dependent bitmap
6283         for sub uses.
6284         (determine_use_iv_cost_address): Compute cost for sub uses.
6285         (rewrite_use_address_1): Rename from old rewrite_use_address.
6286         (free_loop_data): Free sub uses.
6287         (tree_ssa_iv_optimize_loop): Call group_address_uses.
6289 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
6290             Jim Wilson  <jim.wilson@linaro.org>
6292         * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
6293         new  fields loadv and storev.
6294         * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
6295         Initialize loadv and storev.
6296         * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
6297         (cortexa53_extra_costs): Likewise.
6298         (cortexa57_extra_costs): Likewise.
6299         (xgene1_extra_costs): Likewise.
6300         * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
6301         rtx_costs.
6303 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
6305         * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
6306          storev.
6307         (cortexa8_extra_costs): Likewise.
6308         (cortexa5_extra_costs): Likewise.
6309         (cortexa7_extra_costs): Likewise.
6310         (cortexa12_extra_costs): Likewise.
6311         (cortexa15_extra_costs): Likewise.
6312         (v7m_extra_costs): Likewise.
6314 2015-05-20  Jeff Law  <law@redhat.com>
6316         * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
6317         instead of open-coded version.  Also delete the jump thread created
6318         within this function.
6320 2015-05-20  Alan Modra  <amodra@gmail.com>
6322         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
6323         stack adjusting insn.  Formatting.
6324         (rs6000_emit_prologue): Track stack adjusting insn, and use of
6325         r12.  If possible, emit first -fsplit-stack arg pointer insn
6326         before stack adjust.  Don't use r12 to save cr if split-stack.
6328 2015-05-20  Alan Modra  <amodra@gmail.com>
6330         * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
6331         Define.
6332         (rs6000_supports_split_stack): New function.
6333         * gcc/config/rs6000/rs6000.c (machine_function): Add
6334         split_stack_arg_pointer.
6335         (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
6336         (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
6337         rather than virtual_incoming_args_rtx.
6338         (rs6000_va_start): Likewise.
6339         (split_stack_arg_pointer_used_p): New function.
6340         (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
6341         (morestack_ref): New var.
6342         (gen_add3_const, rs6000_expand_split_stack_prologue,
6343         rs6000_internal_arg_pointer, rs6000_live_on_entry,
6344         rs6000_split_stack_space_check): New functions.
6345         (rs6000_elf_file_end): Call file_end_indicate_split_stack.
6346         * gcc/config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
6347         (UNSPECV_SPLIT_STACK_RETURN): Define.
6348         (split_stack_prologue, load_split_stack_limit,
6349         load_split_stack_limit_di, load_split_stack_limit_si,
6350         split_stack_return, split_stack_space_check): New expands and insns.
6351         * gcc/config/rs6000/rs6000-protos.h
6352         (rs6000_expand_split_stack_prologue): Declare.
6353         (rs6000_split_stack_space_check): Declare.
6355 2015-05-20  Alan Modra  <amodra@gmail.com>
6357         * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
6358         (rs6000_stack_info): Don't zero offsets when not saving registers.
6359         (debug_stack_info): Adjust to omit printing unused offsets,
6360         as before.
6361         (direct_return): Test vrsave_size rather than vrsave_mask.
6362         (rs6000_emit_prologue): Likewise.  Remove redundant altivec tests.
6363         (rs6000_emit_epilogue): Likewise.
6365 2015-05-20  Alan Modra  <amodra@gmail.com>
6367         * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
6368         when not saving registers.
6369         (debug_stack_info): Adjust to omit printing unused offsets,
6370         as before.
6371         (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
6372         expression.
6374 2015-05-19  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6376         PR c++/65835
6377         * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
6378         value_type to const char *.
6380 2015-05-19  Sandra Loosemore  <sandra@codesourcery.com>
6382         * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
6383         to build a biarch toolchain again.
6385 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
6387         * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
6388         or implicit declarations.
6389         (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
6390         into it.
6391         (get_odr_type): Check type has linkage before adding bases.
6392         (register_odr_type): Check that type has linkage before adding it.
6393         (type_known_to_have_no_deriavations_p): Rename to ..
6394         (type_known_to_have_no_derivations_p): This one.
6395         * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
6396         (type_known_to_have_no_derivations_p): This one.
6397         * ipa-polymorphic-call.c
6398         (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
6399         type has linkage.
6401 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
6403         * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
6404         (layout_type): Use RECORD_OR_UNION_TYPE_P.
6406 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6408         * config/s390/s390.c (s390_vector_bool_type_p): New function.
6409         (s390_invalid_binary_op): New function.
6410         (TARGET_INVALID_BINARY_OP): Define macro.
6412 2015-05-19  David Sherwood  <david.sherwood@arm.com>
6414         * loop-invariant.c (create_new_invariant): Don't calculate address cost
6415         if mode is not a scalar integer.
6416         (get_inv_cost): Increase computational cost for unused invariants.
6418 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6420         * config.gcc: Add vecintrin.h to extra_headers.  Add s390-c.o to
6421         c_target_objs and cxx_target_objs.  Add t-s390 to tmake_file.
6422         * config/s390/s390-builtin-types.def: New file.
6423         * config/s390/s390-builtins.def: New file.
6424         * config/s390/s390-builtins.h: New file.
6425         * config/s390/s390-c.c: New file.
6426         * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
6427         CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
6428         * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
6429         (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
6430         prototypes.
6431         * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
6432         Include.
6433         (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
6434         (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
6435         variable definitions.
6436         (s390_const_operand_ok): New function.
6437         (s390_expand_builtin): Rewrite.
6438         (s390_init_builtins): New function.
6439         (s390_handle_vectorbool_attribute): New function.
6440         (s390_attribute_table): Add s390_vector_bool attribute.
6441         (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
6442         (s390_branch_condition_mask): Generate masks for new modes.
6443         (s390_expand_vec_compare_cc): New function.
6444         (s390_mangle_type): Add mangling for vector bool types.
6445         (enum s390_builtin): Remove.
6446         (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
6447         efpc builtins.
6448         * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
6449         s390_cpu_cpp_builtins.
6450         (REGISTER_TARGET_PRAGMAS): New macro.
6451         * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
6452         (insn_cmp mode attribute): Add new CC modes.
6453         (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
6454         (lcbb): New pattern definition.
6455         * config/s390/s390intrin.h: Include vecintrin.h.
6456         * config/s390/t-s390: New file.
6457         * config/s390/vecintrin.h: New file.
6458         * config/s390/vector.md: Include vx-builtins.md.
6459         * config/s390/vx-builtins.md: New file.S/390 zvector builtin
6460         support.
6462 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6464         * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
6465         CCVFHE.
6466         * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
6467         (s390_select_ccmode): Likewise.
6468         (s390_canonicalize_comparison): Swap operands if necessary.
6469         (s390_expand_vec_compare_scalar): Expand DFmode compare using
6470         single element vector instructions.
6471         (s390_emit_compare): Call s390_expand_vec_compare_scalar.
6472         (s390_branch_condition_mask): Generate CC masks for the new modes.
6473         * config/s390/s390.md (v0, vf, vd): New mode attributes.
6474         (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
6475         (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
6476         (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
6477         (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
6478         (*extend<DSF:mode><BFP:mode>2): New insn definition.
6479         (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
6480         (extend<DSF:mode><BFP:mode>2): Turn into expander.
6481         (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
6482         (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
6483         (sqrt<mode>2): Add vector instruction.
6485 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6487         * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
6488         constraints.
6489         * config/s390/predicates.md (const0_operand, constm1_operand)
6490         (constable_operand): Accept vector operands.
6491         * config/s390/s390-modes.def: Add supported vector modes.
6492         * config/s390/s390-protos.h (s390_cannot_change_mode_class)
6493         (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
6494         (s390_bytemask_vector_p, s390_expand_vec_strlen)
6495         (s390_expand_vec_compare, s390_expand_vcond)
6496         (s390_expand_vec_init): Add prototypes.
6497         * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
6498         (s390_vector_mode_supported_p): New function.
6499         (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
6500         (s390_contiguous_bitmask_vector_p): New function.
6501         (s390_bytemask_vector_p): New function.
6502         (s390_split_ok_p): Vector regs don't work either.
6503         (regclass_map): Add VEC_REGS.
6504         (s390_legitimate_constant_p): Handle vector constants.
6505         (s390_cannot_force_const_mem): Handle CONST_VECTOR.
6506         (legitimate_reload_vector_constant_p): New function.
6507         (s390_preferred_reload_class): Handle CONST_VECTOR.
6508         (s390_reload_symref_address):  Likewise.
6509         (s390_secondary_reload): Vector memory instructions only support
6510         short displacements.  Rename reload*_nonoffmem* to reload*_la*.
6511         (s390_emit_ccraw_jump): New function.
6512         (s390_expand_vec_strlen): New function.
6513         (s390_expand_vec_compare): New function.
6514         (s390_expand_vcond): New function.
6515         (s390_expand_vec_init): New function.
6516         (s390_dwarf_frame_reg_mode): New function.
6517         (print_operand): Handle addresses with 'O' and 'R' constraints.
6518         (NR_C_MODES, constant_modes): Add vector modes.
6519         (s390_output_pool_entry): Handle vector constants.
6520         (s390_hard_regno_mode_ok): Handle vector registers.
6521         (s390_class_max_nregs): Likewise.
6522         (s390_cannot_change_mode_class): New function.
6523         (s390_invalid_arg_for_unprototyped_fn): New function.
6524         (s390_function_arg_vector): New function.
6525         (s390_function_arg_float): Remove size variable.
6526         (s390_pass_by_reference): Handle vector arguments.
6527         (s390_function_arg_advance): Likewise.
6528         (s390_function_arg): Likewise.
6529         (s390_return_in_memory): Vector values are returned in a VR if
6530         possible.
6531         (s390_function_and_libcall_value): Handle vector arguments.
6532         (s390_gimplify_va_arg): Likewise.
6533         (s390_call_saved_register_used): Consider the arguments named.
6534         (s390_conditional_register_usage): Disable v16-v31 for non-vec
6535         targets.
6536         (s390_preferred_simd_mode): New function.
6537         (s390_support_vector_misalignment): New function.
6538         (s390_vector_alignment): New function.
6539         (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
6540         (TARGET_VECTOR_MODE_SUPPORTED_P)
6541         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
6542         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
6543         (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
6544         (TARGET_VECTOR_ALIGNMENT): Define target macro.
6545         * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
6546         (FIRST_PSEUDO_REGISTER): Increase value.
6547         (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
6548         (VECTOR_REG_P): Define macros.
6549         (FIXED_REGISTERS, CALL_USED_REGISTERS)
6550         (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
6551         (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
6552         (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
6553         Add vector registers.
6554         (CANNOT_CHANGE_MODE_CLASS): Call C function.
6555         (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
6556         (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
6557         memory.
6558         (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
6559         (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
6560         * config/s390/s390.md (UNSPEC_VEC_*): New constants.
6561         (VR*_REGNUM): New constants.
6562         (ALL): New mode iterator.
6563         (INTALL): Remove mode iterator.
6564         Include vector.md.
6565         (movti): Implement TImode moves for VRs.
6566         Disable TImode splitter for VR targets.
6567         Implement splitting TImode GPR<->VR moves.
6568         (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
6569         (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
6570         reload<mode>_la_in, reload<mode>_la_out.
6571         (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
6572         (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
6573         (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
6574         (mov<mode> SF SD): Prefer lder, lde for loading.
6575         Add lrl and strl instructions.
6576         Add vector instructions.
6577         (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
6578         Call s390_expand_vec_strlen on z13.
6579         (*cc_to_int): Change predicate to nonimmediate_operand.
6580         (addti3): Rename to *addti3.  New expander.
6581         (subti3): Rename to *subti3.  New expander.
6582         * config/s390/vector.md: New file.
6584 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6586         * common/config/s390/s390-common.c (processor_flags_table): Add
6587         z13.
6588         * config.gcc: Add z13.
6589         * config/s390/s390-opts.h (enum processor_type): Add
6590         PROCESSOR_2964_Z13.
6591         * config/s390/s390.c (s390_adjust_priority): Check for
6592         PROCESSOR_2964_Z13.
6593         (s390_reorg): Likewise.
6594         (s390_sched_reorder): Likewise.
6595         (s390_sched_variable_issue): Likewise.
6596         (s390_loop_unroll_adjust): Likewise.
6597         (s390_option_override): Likewise. Default to -mvx when available.
6598         * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
6599         (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
6600         (TARGET_VX_ABI): Define macros.
6601         macros.
6602         (TARGET_DEFAULT): Add MASK_OPT_VX.
6603         * config/s390/s390.md ("cpu" attribute): Add z13.
6604         ("cpu_facility" attribute): Add vec.
6605         * config/s390/s390.opt (processor_type): Add z13.
6606         (mvx): New options.
6607         * doc/invoke.texi: Add z13 option for -march.
6609 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6611         * config/s390/predicates.md (shift_count_or_setmem_operand): Add
6612         mode check to make sure that only scalar integer values are
6613         accepted.
6615 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
6617         * tree.c (verify_type_variant): Fix #undef.
6618         (gimple_canonical_types_compatible_p): Move here from lto.c
6619         (verify_type): Verify TYPE_CANONICAL compatibility.
6620         * tree.h (gimple_canonical_types_compatible_p): Declare.
6622 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
6624         PR middle-end/66199
6625         * tree.h (OMP_TEAMS_COMBINED): Define.
6626         * gimplify.c (enum gimplify_omp_var_data): Add
6627         GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
6628         (enum omp_region_type): Add ORT_COMBINED_TEAMS.
6629         (omp_notice_variable): Accept both ORT_TEAMS
6630         and ORT_COMBINED_TEAMS.  Don't recurse if
6631         GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
6632         GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
6633         GOVD_FIRSTPRIVATE.
6634         (omp_no_lastprivate): New function.
6635         (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
6636         and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
6637         notice_outer and set appropriate bits, otherwise make
6638         sure default(none) combined constructs won't complain.
6639         (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
6640         outer special casing, for OMP_CLAUSE_LASTPRIVATE if
6641         omp_no_lastprivate either remove the clause or turn it
6642         into OMP_CLAUSE_PRIVATE.
6643         (gimplify_omp_for): Fix up handling of implicit
6644         lastprivate or linear iterators.
6645         (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
6646         ORT_COMBINED_TEAMS.
6647         * omp-low.c (lower_omp_for_lastprivate): For combined
6648         for simd use fd.loop.n2 from the for rather than simd.
6650 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
6652         * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
6653         instead of gen_rtx_raw_REG.
6654         (cris_expand_epilogue): Likewise.
6655         * config/microblaze/microblaze.c (microblaze_classify_address):
6656         Likewise.
6657         * config/sparc/sparc.md: Likewise.
6659 2015-05-19  Uros Bizjak  <ubizjak@gmail.com>
6661         * config/alpha/alpha.c (alpha_legitimize_reload_address)
6662         (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
6663         CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
6664         (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
6665         Use CASE_CONST_SCALAR_INT.
6666         (print_operand) <case 'M'>: Use mode_width_operand to check the
6667         value of the constant.
6668         * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
6669         * config/alpha/predicates.md (input_operand): Use general_operand
6670         instead of match_code as operand check.
6671         (symbolic_operand): Use match_code with subexpression digits.
6672         * config/alpha/constraints.md (Q): Ditto.
6674 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6676         * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
6678 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6680         * config/s390/s390.c (s390_secondary_reload): Fix check for
6681         load/store relative.
6683 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6685         * recog.h: Increase MAX_RECOG_ALTERNATIVES.  Change type of
6686         alternative_mask to uint64_t.
6688 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
6690         PR tree-optimization/66187
6691         * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
6692         Pass TYPE_SIGN to tree_int_cst_min_precision.  If
6693         !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
6695 2015-05-19  David Malcolm  <dmalcolm@redhat.com>
6697         * diagnostic.c (diagnostic_report_current_module): Strengthen
6698         local "new_map" from const line_map * to
6699         const line_map_ordinary *.
6700         * genmatch.c (error_cb): Likewise for local "map".
6701         (output_line_directive): Likewise for local "map".
6702         * input.c (expand_location_1): Likewise for local "map".
6703         Pass NULL rather than &map to
6704         linemap_unwind_to_first_non_reserved_loc, since the value is never
6705         read from there, and the value written back not read from here.
6706         (is_location_from_builtin_token): Strengthen local "map" from
6707         const line_map * to const line_map_ordinary *.
6708         (dump_location_info): Strengthen locals "map" from
6709         line_map *, one to const line_map_ordinary *, the other
6710         to const line_map_macro *.
6711         * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
6712         const line_map * to const line_map_macro *.
6713         (maybe_unwind_expanded_macro_loc): Add a call to
6714         linemap_check_macro when writing to the "map" field of the
6715         loc_map_pair.
6716         Introduce local const line_map_ordinary * "ord_map", using it in
6717         place of "map" in the part of the function where we know we have
6718         an ordinary map.  Strengthen local "m" from const line_map * to
6719         const line_map_ordinary *.
6721 2015-05-19  Nick Clifton  <nickc@redhat.com>
6723         PR target/66156
6724         * config/msp430/msp430.md (zero_extendhisi2): Add support for
6725         separate source and destination registers.
6727 2015-05-19  Richard Biener  <rguenther@suse.de>
6729         PR tree-optimization/66165
6730         * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
6731         for no load permutation.
6733         PR tree-optimization/66185
6734         * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
6735         when building the SLP node from scalars.
6737 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
6738             Tristan Gingold  <gingold@adacore.com>
6740         * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
6741         * builtins.c (expand_builtin_update_setjmp_buf): Make global.
6742         (expand_stack_restore): Call record_new_stack_level.
6743         (expand_stack_save): Do not call do_pending_stack_adjust.
6744         * builtins.h (expand_builtin_update_setjmp_buf): Declare.
6745         * calls.c (expand_call): Call record_new_stack_level for alloca.
6746         * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
6747         wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
6748         (update_sjlj_context): New global function.
6749         * except.h (update_sjlj_context): Declare.
6750         * explow.c (record_new_stack_level): New global function.
6751         (allocate_dynamic_stack_space): Call record_new_stack_level.
6752         * explow.h (record_new_stack_level): Declare.
6753         * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
6754         * cfgrtl.c (duplicate_insn_chain): Likewise.
6756 2015-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6758         * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
6759         (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
6760         STACK_GROWS_DOWNWARD as normal if.
6761         (expand_call): Likewise.
6763 2015-05-19  Oleg Endo  <olegendo@gcc.gnu.org>
6765         PR target/54236
6766         * config/sh/sh.md (*round_int_even): New insn_and_split and
6767         accompanying new unnamed split.
6769 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
6771         * bitmap.c (bitmap_set_range): Handle count==1 specially.
6772         (bitmap_clear_range): Likewise.
6773         * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
6774         bitmap_set_range unconditionally.
6775         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
6776         * df-scan.c (df_mark_reg): Likewise.
6777         * haifa-sched.c (setup_ref_regs): Likewise.
6778         * sched-rgn.c (update_live_1): Likewise.
6780 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
6782         * regs.h (END_HARD_REGNO): Delete.
6783         (END_REGNO): Move to...
6784         * rtl.h: ...here.
6785         * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
6786         * caller-save.c (mark_set_regs): Likewise.
6787         * combine.c (move_deaths, distribute_notes): Likewise.
6788         * cse.c (invalidate, invalidate_for_call): Likewise.
6789         * df-scan.c (df_ref_record): Likewise.
6790         * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
6791         (record_last_reg_set_info): Likewise.
6792         * reg-stack.c (convert_regs_exit): Likewise.
6793         * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
6794         * resource.c (update_live_status): Likewise.
6795         * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
6797 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
6799         * rtl.h (reg_info): Add an nregs field.
6800         (REG_NREGS): Use it.
6801         (SET_REGNO_RAW): Delete.
6802         (set_regno_raw): New function.
6803         * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
6804         (END_REGNO): Redefine in terms of REG_NREGS.
6805         * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
6806         SET_REGNO_RAW.
6807         * emit-rtl.c (set_mode_and_regno): Likewise.
6808         * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
6809         instead of SET_REGNO_RAW.
6811 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
6813         * rtl.h (PUT_MODE_RAW): New macro.
6814         (PUT_REG_NOTE_KIND): Use it.
6815         (set_mode_and_regno): Declare.
6816         (gen_raw_REG): Change regno to "unsigned int".
6817         (gen_rtx_REG): Change "unsigned" to "unsigned int".
6818         (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
6819         use set_mode_and_regno to change the mode of registers.
6820         * gengenrtl.c (gendef): Use PUT_MODE_RAW.
6821         * emit-rtl.c (set_mode_and_regno): New function.
6822         (gen_raw_REG): Change regno to unsigned int.  Use set_mode_and_regno.
6823         * caller-save.c (reg_save_code): Use set_mode_and_regno.
6824         * expr.c (init_expr_target): Likewise.
6825         * ira.c (setup_prohibited_mode_move_regs): Likewise.
6826         * postreload.c (reload_cse_simplify_operands): Likewise.
6828 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
6830         * caller-save.c (init_caller_save): Use word_mode and
6831         FIRST_PSEUDO_REGISTER when creating temporary rtxes.
6832         * expr.c (init_expr_target): Likewise.
6833         * ira.c (setup_prohibited_mode_move_regs): Likewise.
6834         * postreload.c (reload_cse_regs_1): Likewise.
6836 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
6838         * rtl.def (REG): Change format to "r".
6839         * rtl.h (rtunion): Remove rt_reg.
6840         (reg_info): New structure.
6841         (rtx_def): Add reg field to main union.
6842         (X0REGATTR): Delete.
6843         (REG_CHECK): New macro.
6844         (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
6845         * rtl.c (rtx_format): Document "r".
6846         (rtx_code_size): Handle REG specially.
6847         * gengenrtl.c (special_format): Return true for formats
6848         that include 'r'.
6849         * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
6850         Deal with REG_ATTRS after the field loop.
6851         * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
6852         * expmed.c (init_expmed): Call gen_raw_REG instead of
6853         gen_rtx_raw_REG.
6854         * expr.c (init_expr_target): Likewise.
6855         * regcprop.c (maybe_mode_change): Likewise.
6856         * varasm.c (make_decl_rtl): Likewise.
6857         * final.c (leaf_renumber_regs_insn): Return early after
6858         handling REGs.
6859         * genemit.c (gen_exp): Handle 'r' fields.
6860         * genpeep.c (match_rtx): Likewise.
6861         * gensupport.c (subst_pattern_match): Likewise.
6862         (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
6863         (alter_constraints, subst_dup): Likewise.
6864         * read-rtl.c (read_rtx_code): Likewise.
6865         * print-rtl.c (print_rtx): Likewise.
6866         * genrecog.c (find_operand, find_matching_operand): Likewise.
6867         (validate_pattern, match_pattern_2): Likewise.
6868         (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
6869         (rtx_test::regno_field): New function.
6870         (operator ==, safe_to_hoist_p, transition_parameter_type)
6871         (parameter_type_string, print_parameter_value)
6872         (print_nonbool_test, print_test): Handle new enum values.
6873         * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
6874         * lra-constraints.c (operands_match_p): Likewise.
6876 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
6878         * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
6879         Change type of new_regno to unsigned int.
6880         * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
6881         new_regno to unsigned int.
6882         (df_ref_change_reg_with_loc): Remove old_regno parameter.
6883         Change type of new_regno to unsigned int.  Use SET_REGNO_RAW.
6884         * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
6885         (SET_REGNO_RAW): Add space after ",".
6887 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
6889         * rtl.h (REG_NREGS): New macro
6890         * alias.c (record_set): Use it.
6891         * cfgcleanup.c (mark_effect): Likewise.
6892         * combine.c (likely_spilled_retval_1): Likewise.
6893         (likely_spilled_retval_p, can_change_dest_mode): Likewise.
6894         (move_deaths, distribute_notes): Likewise.
6895         * cselib.c (cselib_record_set): Likewise.
6896         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
6897         * df-scan.c (df_mark_reg): Likewise.
6898         * dse.c (look_for_hardregs): Likewise.
6899         * dwarf2out.c (reg_loc_descriptor): Likewise.
6900         (multiple_reg_loc_descriptor): Likewise.
6901         * expr.c (write_complex_part, read_complex_part): Likewise.
6902         (emit_move_complex): Likewise.
6903         * haifa-sched.c (setup_ref_regs): Likewise.
6904         * ira-lives.c (mark_hard_reg_live): Likewise.
6905         * lra.c (lra_set_insn_recog_data): Likewise.
6906         * mode-switching.c (create_pre_exit): Likewise.
6907         * postreload.c (reload_combine_recognize_const_pattern): Likewise.
6908         (reload_combine_recognize_pattern): Likewise.
6909         (reload_combine_note_use, move2add_record_mode): Likewise.
6910         (reload_cse_move2add): Likewise.
6911         * reg-stack.c (subst_stack_regs_pat): Likewise.
6912         * regcprop.c (kill_value, copy_value): Likewise.
6913         (copyprop_hardreg_forward_1): Likewise.
6914         * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
6915         (build_def_use): Likewise.
6916         * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
6917         (deps_analyze_insn): Likewise.
6918         * sched-rgn.c (check_live_1, update_live_1): Likewise.
6919         * sel-sched.c (count_occurrences_equiv): Likewise.
6920         * valtrack.c (dead_debug_insert_temp): Likewise.
6922 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
6924         * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
6925         * dse.c (note_add_store): Likewise.
6926         * ira-lives.c (mark_hard_reg_dead): Likewise.
6927         * loop-invariant.c (mark_reg_store): Likewise.
6928         (mark_reg_death): Likewise.
6929         * postreload.c (reload_combine): Likewise.
6930         (reload_combine_note_store): Likewise.
6931         (reload_combine_note_use): Likewise.
6932         * recog.c (peep2_reg_dead_p): Likewise.
6934 2015-05-19  Alan Modra  <amodra@gmail.com>
6936         * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
6937         hard registers numbered greater or equal to ARG_POINTER_REGNUM.
6938         (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
6939         unused predicates.
6940         * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
6941         Use altivec_register_operand.  Make insn predicate TARGET_ALTIVEC.
6942         * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
6943         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
6945 2015-05-19  Sameera Deshpande  <Sameera.Deshpande@imgtec.com>
6947         * config/mips/mips.md (JOIN_MODE): New mode iterator.
6948         (join2_load_Store<JOIN_MODE:mode>): New pattern.
6949         (join2_loadhi): Likewise.
6950         (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
6951         load-load and store-stores.
6952         * config/mips/mips.opt (mload-store-pairs): New option.
6953         (TARGET_LOAD_STORE_PAIRS): New macro.
6954         * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
6955         * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
6956         * config/mips/mips.c (mips_load_store_bonding_p): New function.
6958 2015-05-19  Mikhail Maltsev  <maltsevm@gmail.com>
6960         * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
6961         explicit swaps.
6962         * dojump.c (do_compare_rtx_and_jump): Likewise.
6963         * expmed.c (emit_store_flag_1): Likewise.
6964         * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
6965         * final.c (sprint_ul): Use std::reverse for reversing a string.
6966         * fold-const.c (extract_muldiv_1): Use std::swap.
6967         * genmodes.c (emit_mode_int_n): Likewise.
6968         * ifcvt.c (dead_or_predicable): Likewise.
6969         * ira-build.c (ira_merge_live_ranges): Likewise.
6970         (swap_allocno_copy_ends_if_necessary): Likewise.
6971         * ira.c (ira_setup_alts): Likewise.
6972         * loop-iv.c (iv_analyze_expr): Likewise.
6973         (implies_p): Likewise.
6974         (canon_condition): Likewise.
6975         * lra-constraints.c (swap_operands): Likewise.
6976         * lra-lives.c (lra_merge_live_ranges): Likewise.
6977         * omega.c (swap): Remove.
6978         (bswap): Remove.
6979         (omega_unprotect_1): Use std::swap.
6980         (omega_solve_geq): Likewise.
6981         * optabs.c (expand_binop_directly): Likewise.
6982         (expand_binop): Likewise.
6983         (emit_conditional_move): Likewise.
6984         (emit_conditional_add): Likewise.
6985         * postreload.c (reload_cse_simplify_operands): Likewise.
6986         * reg-stack.c (emit_swap_insn): Likewise.
6987         (swap_to_top): Likewise.
6988         (compare_for_stack_reg): Likewise.
6989         (subst_asm_stack_regs): Likewise.
6990         * reload.c (find_reloads): Likewise.
6991         * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
6992         * sel-sched.c (invoke_reorder_hooks): Likewise.
6993         (create_block_for_bookkeeping): Likewise.
6994         * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
6995         (lambda_matrix_right_hermite): Use std::swap.
6996         * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
6997         * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
6998         * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
6999         * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
7000         * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
7001         * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
7002         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
7003         * tree-vrp.c (compare_ranges): Likewise.
7004         * var-tracking.c (add_with_sets): Likewise.
7005         (vt_find_locations): Likewise.
7007 2015-05-18  Andreas Tobler  <andreast@gcc.gnu.org>
7009         * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
7010         pie executables.
7011         (FBSD_ENDFILE_SPEC): Likewise.
7012         * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
7013         config/freebsd-spec.h.
7014         (ENDFILE_SPEC): Likewise.
7016 2015-05-18  Uros Bizjak  <ubizjak@gmail.com>
7017             Richard Henderson  <rth@redhat.com>
7019         PR target/57032
7020         * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
7021         Check for a memory location that is not a reference (using an AND)
7022         to an unaligned location here.
7023         * config/alpha/predicates.md (normal_memory_operand): Remove.
7025 2015-05-18  Alex Velenko  <Alex.Velenko@arm.com>
7027         * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
7028         (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
7030 2015-05-18  Robert Suchanek  <robert.suchanek@imgtec.com>
7032         * config/mips/mips.c (micromips_globals): New variable.
7033         (mips_set_compression_mode): Save and reinitialize target-dependent
7034         state for microMIPS.
7036 2015-05-18  Martin Liska  <mliska@suse.cz>
7038         * dbgcnt.def: Add new counter.
7039         * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
7041 2015-05-18  Martin Liska  <mliska@suse.cz>
7043         * dbgcnt.def: Sort counters.
7044         * opts.c (common_handle_option): Do not compile if
7045         -fdbg-cnt-list is enabled.
7047 2015-05-18  Tom de Vries  <tom@codesourcery.com>
7049         * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
7050         (gimplify_va_arg_expr): Remove do_deref handling.  Remove adding of
7051         address operator to va_list operand.
7052         * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
7053         unconditionally.
7054         * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
7055         operand.
7056         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
7057         * config/s390/s390.c (s390_gimplify_va_arg): Same.
7058         * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
7060 2015-05-18  Tom de Vries  <tom@codesourcery.com>
7062         * tree-ssa-tail-merge.c: Fix whitespace.
7064 2015-05-17  Jim Wilson  <jim.wilson@linaro.org>
7066         * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
7067         cortex-a17, and cortex-a17.cortex-a7.
7069 2015-05-17  Oleg Endo  <olegendo@gcc.gnu.org>
7071         PR target/54236
7072         * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
7074 2015-05-17  Uros Bizjak  <ubizjak@gmail.com>
7076         PR target/66174
7077         * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
7078         QImode inner modes for TARGET_AVX512BW.  Force mask operand
7079         to a register for AVX512F modes.
7081 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
7083         * toplev.c (emit_debug_global_declarations): Do not output debug info
7084         when doing slim LTO objects.
7086 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
7088         * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
7089         odr_types_equivalent_p): Declare.
7090         (odr_type_p): Use gcc_checking_assert.
7091         (type_in_anonymous_namespace_p) Declare.
7092         (type_with_linkage_p): Declare.
7093         * common.opt (Wlto-type-mismatch): New warning.
7094         * ipa-devirt.c (compound_type_base): New function.
7095         (odr_or_derived_type_p): New function.
7096         (odr_types_equivalent_p): New function.
7097         (add_type_duplicate): Simplify.
7098         (type_with_linkage_p): Add hack to prevent false positives on C types
7099         (type_in_anonymous_namespace_p): Likewise.
7100         * tree.c (need_assembler_name_p): Use type_with_linkage.
7101         * tree.h (type_in_anonymous_namespace_p): Remove.
7102         * doc/invoke.texi (-Wlto-type-mismatch): Document
7104 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
7106         * tree.c (verify_type_variant): Verify tree_base and type_common flags.
7107         (verify_type): Verify STRING_FLAG.
7109 2015-05-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7111         PR fortran/44054
7112         * tree-pretty-print.c (percent_K_format): Replace locus pointer
7113         with accessor function.
7114         * tree-diagnostic.c (diagnostic_report_current_function): Use
7115         diagnostic_location function.
7116         (maybe_unwind_expanded_macro_loc): Likewise.
7117         (virt_loc_aware_diagnostic_finalizer): Likewise.
7118         (default_tree_printer): Replace locus pointer with accessor function.
7119         * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
7120         (diagnostic_set_info_translated): Initialize second location.
7121         (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
7122         (diagnostic_show_locus): Handle two locations. Call
7123         diagnostic_print_caret_line.
7124         (diagnostic_print_caret_line): New.
7125         (default_diagnostic_starter): Use diagnostic_location function.
7126         (diagnostic_report_diagnostic): Use diagnostic_location function.
7127         (verbatim): Do not set text.locus.
7128         * diagnostic.h (struct diagnostic_info): Remove location field.
7129         (struct diagnostic_context): Make caret_chars an array of two.
7130         (diagnostic_location): New inline.
7131         (diagnostic_expand_location): Handle two locations.
7132         (diagnostic_same_line): New inline.
7133         (diagnostic_print_caret_line): Declare.
7134         (CARET_LINE_MARGIN): New constant.
7135         * pretty-print.c (pp_printf): Do not set text.locus.
7136         (pp_verbatim): Do not set text.locus.
7137         * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
7138         (struct text_info): Replace locus pointer with locations
7139         array. Add accessor functions.
7141 2015-05-16  Kugan Vivekanandarajah  <kuganv@linaro.org>
7142             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
7144         PR target/65768
7145         * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
7146         * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
7147          large constants in register instead of splitting them.
7149 2015-05-16  Uros Bizjak  <ubizjak@gmail.com>
7151         PR target/66140
7152         * config/alpha/alpha.c (get_aligned_mem): Also look for reload
7153         replacements in memory addresses.
7154         (get_unaligned_address): Ditto.
7156 2015-05-16  James Bowman  <james.bowman@ftdichip.com>
7158         * config/ft32/*: New files for FT32 port.
7159         * doc/install.texi: Add FT32 information.
7160         * doc/invoke.texi: Add FT32 information.
7161         * doc/md.texi: Add FT32 information.
7162         * doc/contrib.texi: Self added.
7164 2015-05-15  Marc Glisse  <marc.glisse@inria.fr>
7166         PR tree-optimization/64454
7167         * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
7168         (-1 - A -> ~A): Remove unnecessary condition.
7170 2015-05-15  Gregor Richards  <gregor.richards@uwaterloo.ca>
7172         * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
7173         * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
7174         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
7176 2015-05-15  Ilya Enkovich  <ilya.enkovich@intel.com>
7178         * ipa-chkp.h (chkp_wrap_function): New.
7179         * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
7180         (chkp_wrap_function_name): New.
7181         (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
7182         to get wrapper name.
7183         * lto-cgraph.c: Include ipa-chkp.h.
7184         (input_cgraph_1): Avoid alias chain for wrappers.
7186 2015-05-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
7188         PR middle-end/66134
7189         * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
7190         (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
7192 2015-05-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7194         * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
7195         (AARCH64_FL_SLOWMUL): Delete.
7196         (AARCH64_FL_CRC): Redefine to 1<<3.
7197         (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
7199 2015-05-15  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7201         * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
7202         casting.
7204 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
7206         * config/alpha/alpha.md (extendqidi2): Use general_operand
7207         instead of some_operand for operand[1] predicate.
7208         (extendhidi2): Ditto.
7209         (cbranchdi4): Use general_operand instead of some_operand
7210         for operand[1] and operands[2] predicates.
7211         (cstoredi4): Ditto.
7212         * config/alpha/predicates.md (some_operand): Remove unused predicate.
7213         (some_ni_operand): Ditto.
7215 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
7217         * config/alpha/alpha.c (alpha_extract_integer): Do not handle
7218         CONST_WIDE_INT and CONST_DOUBLE.  Assert CONST_INT_P (x).
7219         (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
7220         low part of the constant using alpha_emit_set_const_1.
7221         (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
7223 2015-05-14  Rohit Arul Raj  <rohitrulraj@freescale.com>
7225         * varasm.c (output_constant_pool_1): Pass down alignment from
7226         constant pool entry's descriptor to output_constant_pool_2.
7227         (output_object_block): Add comment prior to call to
7228         output_constant_pool_1.
7230 2015-05-14  Vladimir Makarov  <vmakarov@redhat.com>
7232         PR rtl-optimization/65862
7233         * target.def (ira_change_pseudo_allocno_class): New hook.
7234         * targhooks.c (default_ira_change_pseudo_allocno_class): Default
7235         value of the hook.
7236         * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
7237         * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
7238         hook.
7239         * ira-costs.c (find_costs_and_classes): Call the hook and change
7240         classes when it is necessary.
7241         * doc/tm.texi: Update.
7243 2015-05-14  Alexander Monakov  <amonakov@ispras.ru>
7245         * config/i386/i386.md (sibcall_memory): Check that register with
7246         callee address is not also used as one of the arguments, instead
7247         of checking that it is not live after the sibcall.
7248         (sibcall_pop_memory): Ditto.
7249         (sibcall_value_memory): Ditto.
7250         (sibcall_value_pop_memory): Ditto.
7252 2015-05-14  Marc Glisse  <marc.glisse@inria.fr>
7254         * generic-match-head.c (types_match): Handle non-types.
7255         * gimple-match-head.c (types_match): Likewise.
7256         * match.pd: Remove unnecessary TREE_TYPE for types_match.
7258 2015-05-14  Wilco Dijkstra  <wdijkstr@arm.com>
7260         * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
7261         (csneg3<mode>_insn): Enable expansion of pattern.
7263 2015-05-14  Nick Clifton  <nickc@redhat.com>
7265         * config/rl78/rl78.c (rl78_select_section): Select the correct
7266         default section based upon the category of the decl.
7268 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
7270         PR rtl-optimization/30967
7271         * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
7272         destination mode for the cost of scc patterns.
7274 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
7276         * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
7277         using SWIM248 mode iterator.
7278         (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
7279         (*mulvhi4): mark operand[1] as commutative.  Use nonimmediate_operand
7280         for operand[2] constraint.
7281         (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
7283 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
7285         PR middle-end/66133
7286         * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
7287         make sure it is never noreturn, even when the task body does not
7288         return.
7289         (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
7290         right before GIMPLE_OMP_RETURN.
7291         (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
7292         for GIMPLE_OMP_TASK.  For GIMPLE_OMP_RETURN corresponding to
7293         GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
7295 2015-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7297         * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
7298         * tree-ssa-math-opts.c: Include params.h
7299         (pow_synth_sqrt_info): New struct.
7300         (representable_as_half_series_p): New function.
7301         (get_fn_chain): Likewise.
7302         (print_nested_fn): Likewise.
7303         (dump_fractional_sqrt_sequence): Likewise.
7304         (dump_integer_part): Likewise.
7305         (expand_pow_as_sqrts): Likewise.
7306         (gimple_expand_builtin_pow): Use above to attempt to expand
7307         pow as series of square roots.  Removed now unused variables.
7309 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
7311         * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
7312         (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
7313         Remove *p0 and *p1 arguments.  Rewrite function.
7314         (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
7315         (alpha_split_const_mov): Update calls to alpha_extract_integer and
7316         alpha_emit_set_long_const.
7317         (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
7318         (alpha_output_mi_thunk_osf): Ditto.
7319         * config/alpha/alpha.md (movti): Do not check operands[1]
7320         for CONST_DOUBLE.
7322 2015-05-13  Richard Biener  <rguenther@suse.de>
7324         PR tree-optimization/66129
7325         * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
7326         commutative.
7327         (vect_schedule_slp_instance): Fix typo.
7329 2015-05-13  David Malcolm  <dmalcolm@redhat.com>
7331         * common.opt (fdump-internal-locations): New option.
7332         * input.c: Include diagnostic-core.h.
7333         (get_end_location): New function.
7334         (write_digit): New function.
7335         (write_digit_row): New function.
7336         (dump_location_range): New function.
7337         (dump_labelled_location_range): New function.
7338         (dump_location_info): New function.
7339         * input.h (dump_location_info): New prototype.
7340         * toplev.c (compile_file): Handle flag_dump_locations.
7342 2015-05-13  Eric Botcazou  <ebotcazou@adacore.com>
7344         * gimple-expr.h (is_gimple_constant): Reorder.
7345         * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
7347 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
7349         * combine.c (simplify_set): When generating a CC set, if the
7350         source already is in the correct mode, do not wrap it in a
7351         compare.  Simplify the rest of that code.
7353 2015-05-13  Richard Biener  <rguenther@suse.de>
7355         PR tree-optimization/66123
7356         * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
7357         a taken edge.
7359 2015-05-13  Richard Biener  <rguenther@suse.de>
7361         PR middle-end/66110
7362         * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
7363         specially.
7364         * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
7366 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
7368         * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
7369         * aclocal.m4: Regenerated with automake-1.11.6.
7371 2015-05-13  Tom de Vries  <tom@codesourcery.com>
7373         PR tree-optimization/66010
7374         * gimplify.h (gimplify_va_arg_internal): Remove declaration.
7375         * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
7376         * tree-stdarg.c (expand_ifn_va_arg_1): ... here.  Choose between lval
7377         and rval based on do_deref.
7379 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
7381         PR target/65103
7382         * config/i386/i386.c (ix86_rtx_costs): We want to propagate
7383         link time constants into adress expressions and therefore set
7384         their cost to 0.
7386 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
7388         PR target/66112
7389         * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
7390         Use SWI248 iterator instead of SWI.
7391         (*mulv<mode>4_1): Use SWI48 instead of SWI.  Simplify output template.
7392         Use eq_attr "alternative" "0" instead of match_test in
7393         length_immediate attribute computation.
7394         (*mulvhi4, *mulvhi4_1): New define_insns.
7396         PR target/66112
7397         * internal-fn.c (get_min_precision): Use UNSIGNED instead of
7398         SIGNED to get precision of non-negative value.
7400 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
7402         PR target/66048
7403         * function.c (diddle_return_value_1): Process bounds first.
7404         * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
7405         register.
7407 2015-05-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
7409         PR rtl-optimization/64616
7410         * loop-invariant.c (can_move_invariant_reg): New.
7411         (move_invariant_reg): Call above new function to decide whether
7412         instruction can just be moved, skipping creation of temporary
7413         register.
7415 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
7417         PR target/pr66047.c
7418         * i386.c (ix86_function_sseregparm): Only return -1 if local function
7419         with implied regparm is called from -mno-sse function.
7420         (init_cumulative_args): Output error if ix86_function_sseregparm
7421         return -1 and SSE register would be needed.
7422         (function_arg_advance_32): Likewise.
7423         (function_arg_32): Likewise.
7424         * i386.h (ix86_args): Add decl field.
7426 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
7428         PR ipa/65873
7429         * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
7430         inlines across optimization boundary.
7432 2015-05-12  Jason Merrill  <jason@redhat.com>
7434         * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
7435         string literal and macro name.
7437 2015-05-12  Steve Ellcey  <sellcey@imgtec.com>
7439         * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
7440         * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
7441         * config/mips/predicates.md (const_immlsa_operand): Remove log call.
7443 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
7445         * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
7446         (-Wmisleading-indentation): New option.
7447         * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
7449 2015-05-12  Uros Bizjak  <ubizjak@gmail.com>
7451         * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
7452         * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
7453         (alpha_extract_integer): Ditto.
7454         (alpha_legitimate_constant_p): Ditto.
7455         (alpha_split_tmode_pair): Ditto.
7456         (alpha_preferred_reload_class): Add CONST_WIDE_INT.
7457         (alpha_expand_mov): Ditto.
7458         (print_operand): Remove handling of 'H' modifier.
7459         <case 'm'>: Remove CONST_DOUBLE handling.
7460         (summarize_insn): Handle CONST_WIDE_INT.
7461         * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
7462         (anddi3): Ditto.
7463         (movti): Handle CONST_WIDE_INT.
7464         * config/alpha/constraints.md ('H'): Remove constraint definition.
7465         ('G'): Do not match MODE_FLOAT class.
7466         * config/alpha/predicates.md (const0_operand): Also match
7467         const_wide_int.
7468         (non_add_const_operand): Ditto.
7469         (non_zero_const_operand): Ditto.
7470         (some_operand): Ditto.
7471         (input_operand): Ditto.  Handle CONST_WIDE_INT.
7472         (and_operand): Do not match const_double.
7473         * config/alpha/sync.md (fetchop_constr): Remove H constraint.
7475 2015-05-12  Andrew MacLeod  <amacleod@redhat.com>
7477         PR target/65697
7478         * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
7479         (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
7480         * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
7481         is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
7482         is_mm_seq_cst, is_mm_sync): New accessor functions.
7483         * builtins.c (expand_builtin_sync_operation,
7484         expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
7485         (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
7486         (get_memmodel,  expand_builtin_atomic_compare_exchange,
7487         expand_builtin_atomic_load, expand_builtin_atomic_store,
7488         expand_builtin_atomic_clear): Use new accessor routines.
7489         (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
7490         * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
7491         (maybe_emit_sync_lock_test_and_set): Use new accessors and
7492         MEMMODEL_SYNC_ACQUIRE.
7493         (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
7494         (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
7495         expand_atomic_store): Use new accessors.
7496         * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
7497         * tsan.c (instrument_builtin_call): Update check for memory model beyond
7498         final enum to use MEMMODEL_LAST.
7499         * c-family/c-common.c: Use new accessor for memmodel_base.
7500         * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
7501         accessors.
7502         * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
7503         arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
7504         mem_thread_fence, *dmb): Likewise.
7505         * config/alpha/alpha.c (alpha_split_compare_and_swap,
7506         alpha_split_compare_and_swap_12): Likewise.
7507         * config/arm/arm.c (arm_expand_compare_and_swap,
7508         arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
7509         * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
7510         atomic_loaddi): Likewise.
7511         * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
7512         Likewise.
7513         * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
7514         * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
7515         use new accessors.
7516         * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
7517         atomic_store<mode>, atomic_compare_and_swap<mode>,
7518         atomic_exchange<mode>): Use new accessors.
7519         * config/mips/mips.c (mips_process_sync_loop): Likewise.
7520         * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
7521         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
7522         rs6000_post_atomic_barrier): Add new cases.
7523         (rs6000_expand_atomic_compare_and_swap): Use new accessors.
7524         * config/rs6000/sync.md (mem_thread_fence): Add new cases.
7525         (atomic_load<mode>): Add new cases and use new accessors.
7526         (store_quadpti): Add new cases.
7527         * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
7528         accessors.
7529         * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
7530         * doc/extend.texi: Update docs to indicate 16 bits are used for memory
7531         model, not 8.
7533 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
7535         * ipa-devirt.c (type_with_linkage_p): New function.
7536         (type_in_anonymous_namespace_p): Move here from tree.c; assert that
7537         type has linkage.
7538         (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
7539         (can_be_name_hashed_p): Simplify.
7540         (hash_odr_name): Check that type has linkage before checking if it is
7541         anonymous.
7542         (types_same_for_odr): Likewise.
7543         (odr_name_hasher::equal): Likewise.
7544         (odr_subtypes_equivalent_p): Likewise.
7545         (warn_types_mismatch): Likewise.
7546         (get_odr_type): Likewise.
7547         (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
7548         * ipa-utils.h (odr_type_p): Move offline.
7549         * tree.c (need_assembler_name_p): Fix handling of types
7550         without linkages.
7551         (type_in_anonymous_namespace_p): Move to ipa-devirt.c
7553 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
7555         * timevar.c (timevar_enable): Delete in favor of...
7556         (g_timer): New global.
7557         (struct timevar_def): Move to timevar.h inside class timer.
7558         (struct timevar_stack_def): Likewise.
7559         (timevars): Delete global in favor of field "m_timevars" within
7560         class timer in timevar.h
7561         (stack): Likewise, in favor of field "m_stack".
7562         (unused_stack_instances): Likewise, in favor of field
7563         "m_unused_stack_instances".
7564         (start_time): Likewise, in favor of field "m_start_time".
7565         (get_time): Eliminate check for timevar_enable.
7566         (timer::timer): New function, built from part of timevar_init.
7567         (timevar_init): Rewrite idempotency test from using
7568         "timevar_enable" bool to using dynamic allocation of "g_timer".
7569         Move rest of implementation into timer's constructor.
7570         (timevar_push_1): Rename to...
7571         (timer::push): ...this, adding "m_" prefixes to variables that
7572         are now fields of timer.
7573         (timevar_pop_1): Likewise, rename to...
7574         (timer::pop): ...this, and add "m_" prefixes.
7575         (timevar_start): Replace test for "timevar_enable" with one for
7576         "g_timer", and move bulk of implementation to...
7577         (timer::start): ...here, adding "m_" prefixes.
7578         (timevar_stop): Likewise, from here...
7579         (timer::stop): ...to here.
7580         (timevar_cond_start): Likewise, from here...
7581         (timer::cond_start): ...to here.
7582         (timevar_cond_stop): Likewise, from here...
7583         (timer::cond_stop): ...to here.
7584         (validate_phases): Rename to...
7585         (timer::validate_phases): ...this, and add "m_" prefixes.  Make
7586         locals "total" and "tv" const.
7587         (timevar_print): Rename to...
7588         (timer::print): ...this, and add "m_" prefixes.  Make locals
7589         "total" and "tv" const.  Eliminate test for timevar_enable.
7590         * timevar.h (timevar_enable): Eliminate.
7591         (g_timer): New declaration.
7592         (timevar_push_1): Eliminate.
7593         (timevar_pop_1): Eliminate.
7594         (timevar_print): Eliminate.
7595         (class timer): New class.
7596         (timevar_push): Rewrite to use g_timer.
7597         (timevar_pop): Likewise.
7598         * toplev.c (toplev::~toplev): Likewise.
7600 2015-05-12  Richard Earnshaw  <rearnsha@arm.com>
7602         * arm-protos.h (arm_sched_autopref): Delete.
7603         (tune_params): Re-organize, use enums for flag values.
7604         (FUSE_OPS): New macro.
7605         * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
7606         (ARM_PREFETCH_BENEFICIAL): Likewise.
7607         (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
7608         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
7609         (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
7610         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
7611         (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
7612         (arm_cortex_a57_tune,  arm_xgene1_tune, arm_cortex_a5_tune)
7613         (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
7614         (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
7615         format.
7616         (arm_option_override, thumb2_reorg, arm_print_tune_info)
7617         (aarch_macro_fusion_pair_p): Update uses of current_tune.
7618         * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
7620 2015-05-12  Sandra Loosemore  <sandra@codesourcery.com>
7622         * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
7623         "break".
7625 2015-05-12  Chung-Lin Tang  <cltang@codesourcery.com>
7626             Sandra Loosemore <sandra@codesourcery.com>
7628         * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
7629         value.
7630         (REG_CLASS_NAMES): Add "IJMP_REGS".
7631         (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
7632         * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
7633         use new "c" register constraint.
7634         * config/nios2/constraint.md (c): New register constraint
7635         corresponding to IJMP_REGS.
7637 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
7639         * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
7640         *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
7641         define_splits): Delete, revamp, transmogrify into ...
7642         (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
7643         *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
7644         *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
7645         New.
7647 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
7649         * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
7650         gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
7652 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
7654         * config/rs6000/rs6000.md (extzv): FAIL for SImode.
7655         (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
7656         *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
7657         *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
7658         *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
7659         *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
7660         *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
7661         *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
7662         *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
7663         *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
7664         *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
7665         *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
7666         *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
7667         *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
7668         *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
7669         *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
7670         and 30 corresponding splitters): Delete.
7672 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
7674         * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
7675         zero_extract.
7677 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
7679         * combine.c (recog_for_combine_1): New function, factored out
7680         from recog_for_combine.
7681         (change_zero_ext): New function.
7682         (recog_for_combine): If recog fails, try again with the pattern
7683         modified by change_zero_ext; if that still fails, restore the
7684         pattern.
7686 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
7688         * combine.c (get_undo_marker): New function.
7689         (undo_to_marker): New function, largely factored out from ...
7690         (undo_all): ... this.  Adjust.
7692 2015-05-12  Richard Biener  <rguenther@suse.de>
7694         PR tree-optimization/66101
7695         * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
7696         fixup if we turn a loop exit edge to a fallthru edge.
7698 2015-05-12  Richard Biener  <rguenther@suse.de>
7700         PR tree-optimization/37021
7701         * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
7702         (SLP_TREE_TWO_OPERATORS): New define.
7703         * tree-vect-slp.c (vect_create_new_slp_node): Initialize
7704         SLP_TREE_TWO_OPERATORS.
7705         (vect_build_slp_tree_1): Allow two mixing plus/minus in an
7706         SLP node.
7707         (vect_build_slp_tree): Adjust.
7708         (vect_analyze_slp_cost_1): Likewise.
7709         (vect_schedule_slp_instance): Vectorize mixing plus/minus by
7710         emitting two vector stmts and mixing the results.
7712 2015-05-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
7714         * call.c (print_z_candidates): Remove dead code.
7716 2015-05-12  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7718         * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
7719         and zEC12_simple_fp.
7720         * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
7721         to 1.
7723 2015-05-12  Tom de Vries  <tom@codesourcery.com>
7725         PR tree-optimization/66010
7726         * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
7727         ifn_va_arg.
7728         * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
7729         (gimplify_va_arg_internal): Remove loc parameter.  Assert no array-typed
7730         va_lists are passed, and remove corresponding handling.
7731         (gimplify_va_arg_expr): Only take address of ap if necessary.  Add
7732         do_deref argument to ifn_va_arg.
7733         * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
7734         ifn_va_arg.
7736 2015-05-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7738         PR target/65955
7739         * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
7740         REG before taking its REGNO.
7742 2015-05-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
7744         * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
7745         rsp->sign_bit_copies and rsp->nonzero_bits into ...
7746         (update_rsp_from_reg_equal): This.  Also use REG_EQUAL note on src if
7747         present to get more accurate information about the number of sign bit
7748         copies and non zero bits.
7750 2015-05-12  Richard Biener  <rguenther@suse.de>
7752         * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
7753         do not allow unrolling.
7755 2015-05-11  Richard Henderson  <rth@redhat.com>
7757         * config/i386/i386-modes.def (CCP): New.
7758         * config/i386/i386.c (put_condition_code): Handle it.
7759         (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
7761 2015-05-11  Richard Henderson  <rth@redhat.com>
7763         * target.def (md_asm_clobbers): Replace with...
7764         (md_asm_adjust): this.
7765         * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
7766         (TARGET_MD_ASM_ADJUST): New.
7767         * tm.texi: Rebuild.
7768         * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
7769         * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
7770         * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
7772         * cfgexpand.c (check_operand_nalternatives): Accept vector of
7773         constraints instead of lists of outputs and inputs.
7774         (expand_asm_stmt): Save and restore input_location around the
7775         body of the function.  Move asm data into vectors instead of
7776         building tree lists.  Generate cleanup sequences as needed,
7777         rather than waiting til the end.  Use new md_asm_adjust hook.
7779         * config/vxworks.c: Include vec.h before target.h.
7780         * gimple.c: Likewise.
7781         * incpath.c: Likewise.
7782         * mode-switching.c: Likewise.
7784         * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
7785         (cris_md_asm_adjust): this.
7786         (TARGET_MD_ASM_CLOBBERS): Remove.
7787         (TARGET_MD_ASM_ADJUST): New.
7788         * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
7789         (ix86_md_asm_adjust): this.
7790         (TARGET_MD_ASM_CLOBBERS): Remove.
7791         (TARGET_MD_ASM_ADJUST): New.
7792         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
7793         (mn10300_md_asm_adjust): this.
7794         (TARGET_MD_ASM_CLOBBERS): Remove.
7795         (TARGET_MD_ASM_ADJUST): New.
7796         * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
7797         (rs6000_md_asm_adjust): this.
7798         (TARGET_MD_ASM_CLOBBERS): Remove.
7799         (TARGET_MD_ASM_ADJUST): New.
7800         * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
7801         (visium_md_asm_adjust): this.
7802         (TARGET_MD_ASM_CLOBBERS): Remove.
7803         (TARGET_MD_ASM_ADJUST): New.
7805 2015-05-11  Richard Henderson  <rth@redhat.com>
7807         * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
7808         if noutputs is zero.
7809         * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
7811         * cfgexpand.c (expand_asm_operands): Merge into...
7812         (expand_asm_stmt): ... here.
7814         * cfgexpand.c (expand_asm_operands): Don't call
7815         resolve_asm_operand_names.
7816         * stmt.c (resolve_asm_operand_names): Clarify block comment.
7818 2015-05-11  Jan Hubicka  <hubicka@ucw.cz>
7820         * dwarf2out.c (gen_member_die): Sanity check that we access
7821         TYPE_MAIN_VARIANT for TYPE_METHODS.
7822         * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
7823         checking TYPE_METHODS.
7824         * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
7825         if non-null.
7826         (build_distinct_type_copy): Clear TYPE_METHODS.
7827         (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
7828         (verify_type): Allow TYPE_METHODS to be error_mark_node.
7829         * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
7831 2015-05-11  Eric Botcazou  <ebotcazou@adacore.com>
7833         * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
7834         (emit_pattern_before_setloc): Likewise.
7836 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
7838         * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
7839         for define_peephole2s.
7840         (get_peephole2_pattern): New function.
7841         (main): Use it.  Call validate_pattern.
7843 2015-05-11  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
7845         * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
7846         LAST_CALLEE_SAVED_REG instead of hard-coded register number.
7847         (Last callee saved reg is different for AVR_TINY architecture)
7849 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
7851         * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
7852         when looking for memory references.
7854 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
7856         PR target/65753
7857         * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
7858         via function pointers.
7860 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
7862         * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
7863         indirect call by forcing address into a pseudo with -fno-plt.
7864         * common.opt (flag_plt): New option.
7865         * doc/invoke.texi (Code Generation Options): Add -fno-plt.
7866         ([-fno-plt]): Document.
7868 2015-05-11  Markus Trippelsdorf  <markus@trippelsdorf.de>
7870         PR bootstrap/66105
7871         * config/rs6000/option-defaults.h: Add space between string literal
7872         and macro name.
7874 2015-05-11  Thomas Preud'homme  <thomas.preudhomme@arm.com>
7876         * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
7877         accross ARM targets.
7879 2015-05-11  Christian Bruel  <christian.bruel@st.com>
7881         * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
7882         * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
7884 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
7886         PR rtl-optimization/66076
7887         * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
7888         Don't grow the heap array if it is already big enough from a
7889         previous iteration.
7891 2015-05-11  Christian Bruel  <christian.bruel@st.com>
7893         * config/arm/arm-protos.h (arm_declare_function_name): Declare.
7894         (is_called_in_ARM_mode): Remove.
7895         * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
7896         (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
7897         * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
7898          arm_declare_function_name.
7900 2015-05-11  Christian Bruel  <christian.bruel@st.com>
7902         * config/arm/arm.c (arm_option_override): Reoganized and split into :
7903         (arm_option_params_internal); New function.
7904         (arm_option_check_internal): New function.
7905         (arm_option_override_internal): New function.
7906         (thumb_code, thumb1_code): Remove.
7907         * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
7908         (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
7909         (thumb_code, thumb1_code): Remove.
7910         * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
7912 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
7914         * config/alpha/alpha.c (alpha_emit_set_const_1)
7915         (alpha_emit_set_long_const, alpha_extract_integer)
7916         (alpha_legitimate_constant_p, alpha_split_const_mov)
7917         (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
7918         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
7919         (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
7920         HOST_WIDE_INT_1U.
7921         * config/alpha/predicates.md (mode_mask_operand): Do not match
7922         const_double RTX.
7923         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
7924         * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
7925         Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
7926         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
7927         (*negtf_internal): Use gen_int_mode instead of immed_double_const.
7929 2015-05-11  Jakub Jelinek  <jakub@redhat.com>
7931         PR target/65780
7932         * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
7933         default_binds_local_p_2.
7934         * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
7935         * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
7937 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
7939         * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
7941 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
7943         Patch by Richard Biener
7944         * coverage.c (coverage_obj_init): Delay building of type variant
7945         until the type is finished.
7947 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
7949         * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
7950         mismatch between C and C++ type; compoare correctly ARG_TYPES
7951         for non-prototypes and output correctly parameter index for METHOD_TYPE.
7952         (odr_types_equivalent_p): Fix wording of warning about attributes;
7953         it is OK to match prototype and non-prototype.
7955 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
7957         * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
7958         TYPE_ARG_TYPES list.
7959         (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
7960         * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
7962 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
7964         * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
7965         * tree.h (is_lang_specific): Constify.
7967 2015-05-09  Marc Glisse  <marc.glisse@inria.fr>
7969         PR tree-optimization/64454
7970         * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
7971         Rewrite.
7973 2015-05-08  Jason Merrill  <jason@redhat.com>
7975         * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
7976         config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
7977         config/darwin.h, config/darwin9.h, config/elfos.h,
7978         config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
7979         config/microblaze/microblaze.h, config/mips/mips.h,
7980         config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
7981         config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
7982         config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
7983         config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
7984         config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
7985         cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
7986         dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
7987         ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
7988         ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
7989         modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
7990         tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
7991         between string literal and macro name.
7993 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7995         * jump.c: Change argument types to rtx_insn *.
7996         * rtl.h: Adjust.
7998 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8000         * lra-constraints.c: Change argument type to rtx_insn *.
8002 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8004         * df-problems.c: Change argument type to rtx_insn *.
8006 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8008         * combine.c: Change argument type to rtx_insn *.
8010 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8012         * rtl.h: Adjust.
8013         * rtlanal.c: Change argument type to rtx_insn *.
8015 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8017         * sched-deps.c: Change argument types to rtx_insn *.
8018         * sched-int.h: Adjust.
8020 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8022         * dwarf2cfi.c: Change argument type to rtx_insn *.
8024 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8026         * ira.c (decrease_live_ranges_number): Changetype of local
8027         variable to rtx_insn *.
8028         * recog.c: Change argument types to rtx_insn *.
8029         * recog.h: Adjust.
8031 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8033         * reorg.c: Change argument types to rtx_insn *.
8035 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8037         * ira-color.c: Change argument types to rtx_insn *.
8038         * lra-eliminations.c: Likewise.
8039         * ira.h: Adjust.
8041 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8043         * gcse.c: Change argument types to rtx_insn *.
8045 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8047         * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
8049 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8051         * emit-rtl.c (emit_debug_insn_before): Change argument type to
8052         rtx_insn *.
8053         * rtl.h: Adjust.
8055 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8057         * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
8058         * rtl.h: Adjust.
8060 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8062         * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
8063         * rtl.h: Adjust.
8065 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8067         * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
8068         * rtl.h: Adjust.
8070 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8072         * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
8073         * rtl.h: Adjust.
8075 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8077         * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
8078         to rtx_insn *.
8079         * rtl.h: Adjust.
8081 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8083         * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
8084         to rtx_insn *.
8085         * rtl.h: Likewise.
8087 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8089         * except.c (can_nonlocal_goto): Change type of argument to
8090         rtx_insn *.
8091         * rtl.h: Adjust.
8093 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8095         * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
8096         * rtl.h: Adjust.
8098 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8100         * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
8101         * cfgrtl.c (can_delete_label_p): Adjust.
8102         * rtl.h: likewise.
8104 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8106         * reorg.c (stop_search_p): Change argument to rtx_insn *.
8108 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8110         * except.c (make_reg_eh_region_note): Change argument to
8111         rtx_insn *.
8112         (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
8113         * except.h: Adjust.
8115 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8117         * mode-switching.c (commit_mode_sets): Change type of local
8118         variable from rtx to rtx_insn *.
8120 2015-05-08  Jim Wilson  <jim.wilson@linaro.org>
8122         * doc/install.texi (--enable-languages): Add missing jit and lto info.
8123         Add ^ to grep command.
8124         * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
8125         arg to last gimple_simplify declaration.  Add missing gimple_build
8126         declaration for built-in function case with four tree args.
8128 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
8129             Szabolcs Nagy  <szabolcs.nagy@arm.com>
8131         * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
8132         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
8133         (GNU_USER_DYNAMIC_LINKERN32): Update.
8135 2015-05-08  Richard Biener  <rguenther@suse.de>
8137         PR tree-optimization/66036
8138         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
8139         Handle strided group loads.
8140         (vect_verify_datarefs_alignment): Likewise.
8141         (vect_enhance_data_refs_alignment): Likewise.
8142         (vect_analyze_group_access): Likewise.
8143         (vect_analyze_data_ref_access): Likewise.
8144         (vect_analyze_data_ref_accesses): Likewise.
8145         * tree-vect-stmts.c (vect_model_load_cost): Likewise.
8146         (vectorizable_load): Likewise.
8148 2015-05-08  Segher Boessenkool  <segher@kernel.crashing.org>
8150         * config/rs6000/rs6000.md: Require operand inequality in one
8151         of the peepholes.
8153 2015-05-08  Richard Sandiford  <richard.sandiford@arm.com>
8154             Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
8156         * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
8157         from (set ...).
8158         * config/rx/rx.md (movdi, movdf): Likewise.
8159         Likewise for define_peephole2s.
8161 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
8163         * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
8164         vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
8165         vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
8166         vtst_u64): Rewrite using gcc vector extensions.
8168 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
8170         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
8171         vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
8173 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
8175         * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
8177 2015-05-08  Szabolcs Nagy  <szabolcs.nagy@arm.com>
8179         * config/glibc-stdint.h (OPTION_MUSL): Define.
8180         (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
8181         Change the definition based on OPTION_MUSL for 64 bit targets.
8182         * config/linux.h (OPTION_MUSL): Redefine.
8183         * config/alpha/linux.h (OPTION_MUSL): Redefine.
8184         * config/rs6000/linux.h (OPTION_MUSL): Redefine.
8185         * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
8187 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
8188             Szabolcs Nagy  <szabolcs.nagy@arm.com>
8190         * config.gcc (LIBC_MUSL): New tm_defines macro.
8191         * config/linux.h (OPTION_MUSL): Define.
8192         (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
8193         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
8194         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
8195         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
8196         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
8197         * config/linux.opt (mmusl): New option.
8198         * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
8199         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
8200         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
8201         * configure: Regenerate.
8203 2015-05-08  H.J. Lu  <hongjiu.lu@intel.com>
8204             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
8206         PR target/48904
8207         * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
8208         * config/i386/knetbsd-gnu64.h: New file.
8210 2015-05-08  Marek Polacek  <polacek@redhat.com>
8212         PR c/64918
8213         * doc/invoke.texi: Document -Woverride-init-side-effects.
8215 2015-05-07  Marek Polacek  <polacek@redhat.com>
8217         PR c/65179
8218         * doc/invoke.texi: Document -Wshift-negative-value.
8220 2015-05-06  Aditya Kumar  <hiraditya@msn.com>
8222         * gcov-tool.c (do_merge): Refactore to remove int ret.
8223         * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
8224         !type == FUNC to type != FUNC.
8225         * reload.h (struct target_reload): Changee to type of
8226         x_spill_indirect_levels from bool to unsigned char.
8228 2015-05-07  Richard Sandiford  <richard.sandiford@arm.com>
8230         * rtl.h (always_void_p): New function.
8231         * gengenrtl.c (always_void_p): Likewise.
8232         (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
8233         with code foo are always VOIDmode.
8234         * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
8235         * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
8236         compare-elim.c, config/aarch64/aarch64.c,
8237         config/aarch64/aarch64.md, config/alpha/alpha.c,
8238         config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
8239         config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
8240         config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
8241         config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
8242         config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
8243         config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
8244         config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
8245         config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
8246         config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
8247         config/ia64/vect.md, config/iq2000/iq2000.c,
8248         config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
8249         config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
8250         config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
8251         config/mep/mep.c, config/microblaze/microblaze.c,
8252         config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
8253         config/mn10300/mn10300.c, config/msp430/msp430.c,
8254         config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
8255         config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
8256         config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
8257         config/rs6000/altivec.md, config/rs6000/rs6000.c,
8258         config/rs6000/rs6000.md, config/rs6000/vector.md,
8259         config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
8260         config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
8261         config/sh/sh.md, config/sh/sh_treg_combine.cc,
8262         config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
8263         config/spu/spu.md, config/stormy16/stormy16.c,
8264         config/tilegx/tilegx.c, config/tilegx/tilegx.md,
8265         config/tilepro/tilepro.c, config/tilepro/tilepro.md,
8266         config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
8267         config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
8268         expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
8269         lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
8270         reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
8271         var-tracking.c: Update calls accordingly.
8273 2015-05-07  Segher Boessenkool  <segher@kernel.crashing.org>
8275         PR middle-end/192
8276         PR middle-end/54303
8277         * varasm.c (function_mergeable_rodata_prefix): New function.
8278         (mergeable_string_section): Use it.
8279         (mergeable_constant_section): Use it.
8281 2015-05-07  Jeff Law  <law@redhat.com>
8283         PR target/39726
8284         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
8285         simplifier to narrow arithmetic.
8286         * generic-match-head.c: (types_match, single_use): New functions.
8287         * gimple-match-head.c: (types_match, single_use): New functions.
8289 2015-05-07  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
8291         * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
8292         rtx type.
8294 2015-05-07  Richard Biener  <rguenther@suse.de>
8296         PR tree-optimization/66002
8297         * passes.def: Schedule another pass_merge_phi after ifcombine, right
8298         before phiopt.
8300 2015-05-07  Marek Polacek  <polacek@redhat.com>
8301             Martin Uecker  <uecker@eecs.berkeley.edu>
8303         * doc/invoke.texi: Document -fsanitize=bounds-strict.
8304         * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
8305         into SANITIZE_NONDEFAULT.
8306         * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
8308 2015-05-07  Uros Bizjak  <ubizjak@gmail.com>
8310         PR target/66015
8311         * config/alpha/alpha.c (alpha_override_options_after_change): New.
8312         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
8313         (alpha_override_options): Move align_loops, align_jumps and
8314         align_functions handling into alpha_override_options_after_change.
8316 2015-05-06  Sandra Loosemore  <sandra@codesourcery.com>
8317             Chris Jones  <chrisj@nvidia.com>
8318             Joshua Conner  <jconner@nvidia.com>
8320         * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
8321         linking of crtfastmath.o.
8322         * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
8324 2015-05-06  Segher Boessenkool  <segher@kernel.crashing.org>
8326         * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
8327         (cstore<mode>4_unsigned_imm): New expander.
8328         (cstore<mode>4): Remove empty constraint strings.  Use the new
8329         expanders.
8331 2015-05-06  Yvan Roux  <yvan.roux@linaro.org>
8333         PR target/64208
8334         * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
8335         alternatives.
8337 2015-05-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
8339         * config/aarch64/geniterators.sh: Use standard BRE in sed.
8341 2015-05-06  Alan Modra  <amodra@gmail.com>
8343         PR target/66033
8344         * config/rs6000/rs6000.md (nop): Use an unspec pattern.
8345         (UNSPEC_NOP): Define.
8346         (reload_vsx_from_gpr<mode>): Add missing DONE.
8347         (reload_gpr_from_vsx<mode>): Likewise.
8348         * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
8349         (vsx_div_v2di, vsx_udiv_v2di): Likewise.
8351 2015-05-06  Christian Bruel  <christian.bruel@st.com>
8353         PR target/66015
8354         * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
8355         align_jumps, align_functions into aarch64_override_options_after_change.
8357 2015-05-06  Richard Biener  <rguenther@suse.de>
8359         * tree-vect-slp.c (vect_supported_load_permutation_p): Use
8360         vect_transform_slp_perm_load to check if we support a permutation
8361         for basic-block vectorization.
8363 2015-05-06  Nick Clifton  <nickc@redhat.com>
8365         * config/rl78/rl78.c (need_to_save): Save register 22 if it is
8366         used, even if it is not being used as a frame pointer.
8368 2015-05-05  Jason Merrill  <jason@redhat.com>
8370         * dwarf2out.c (gen_member_die): Don't emit anything for an
8371         anonymous class constructor.
8373 2015-05-05  David Malcolm  <dmalcolm@redhat.com>
8375         * auto-profile.c (afdo_find_equiv_class): Fix indentation so
8376         that it reflects the block structure.
8377         (afdo_propagate_edge): Likewise.
8378         (afdo_calculate_branch_prob): Likewise.
8379         (afdo_annotate_cfg): Likewise.
8380         * cfgcleanup.c (equal_different_set_p): Likewise.
8381         (try_crossjump_to_edge): Likewise.
8382         * cgraph.c (cgraph_node::verify_node): Likewise.
8383         * cgraphunit.c (expand_all_functions): Likewise.
8384         * config/i386/i386.c (ix86_expand_copysign): Likewise.
8385         (exact_dependency_1): Likewise.
8386         * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
8387         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
8388         * gensupport.c (process_define_subst): Likewise.
8389         * lto-wrapper.c (merge_and_complain): Likewise.
8390         * tree-if-conv.c (if_convertible_bb_p): Likewise.
8391         * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
8392         * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
8393         * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
8394         * tree-vect-loop.c (vectorizable_reduction): Likewise.
8395         * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
8396         * tree-vect-stmts.c (vectorizable_shift): Likewise.
8397         * tree-vrp.c (vrp_finalize): Likewise.
8398         * tree.c (variably_modified_type_p): Likewise.
8400 2015-05-05  Jack Howarth  <howarth.at.gcc@gmail.com>
8402         * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
8403         on darwin12 and later.
8404         * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
8405         file to pass -rdynamic on darwin12 and later.
8406         * config/darwin.opt (rdynamic): Add.
8408 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
8410         * doc/extend.texi (C Extensions): Update menu for moved Variable
8411         Attributes and Type Attributes sections.
8413 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
8415         PR target/65990
8416         * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
8417         if rep_8byte stringop strategy was specified for 32-bit target.
8419 2015-05-05  Ilya Tocar  <ilya.tocar@intel.com>
8421         PR target/65915
8422         * config/i386/i386.md (vector convert to float spltiter): Check for
8423         xmm16+, when splitting scalar float conversion.
8424         * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
8426 2015-05-05  Nick Clifton  <nickc@redhat.com>
8428         * config/msp430/msp430-opts.h (enum msp430_regions): New.
8429         * config/msp430/msp430.c (msp430_override_options): Complain if
8430         -mcode-region or -mdata-region is used on a non MSP430X.
8431         (msp430_section_attr): New function.  Checks lower, upper and
8432         either attributes.
8433         (msp430_attribute_table): Add lower, upper and either.
8434         (gen_prefix): New function.  Generates a prefix for a section
8435         name.
8436         (msp430_select_section): New function - handles the choice of
8437         section for an object.  Takes into account memory region
8438         attributes and options.
8439         (msp430_function_section): Use gen_prefix.
8440         (TARGET_SECTION_TYPE_FLAGS): Define.
8441         (msp430_section_type_flags): New function.
8442         (TARGET_ASM_UNIQUE_SECTION): Define.
8443         (msp430_unique_section): New function.
8444         (msp430_output_aligned_decl_common): New function.
8445         (msp430_do_not_relax_short_jumps): New function.
8446         * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
8447         Define.
8448         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
8449         * config/msp430/msp430-protos.h
8450         (msp430_do_not_relax_short_jumps): New prototype.
8451         (msp430_output_aligned_decl_common): New prototype.
8452         * config/msp430/msp430.md (length): New attribute.
8453         (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
8454         then use a long code sequence for short jumps.
8455         * config/msp430/msp430.opt (mcode-region): New.
8456         (mdata-region): New.
8457         * doc/invoke.texi: Document new options.
8458         * doc/extend.texi: Document new attributes.
8460 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
8462         * gcc/config/aarch64-protos.h (struct cpu_branch_cost): New.
8463         (tune_params): Add field branch_costs.
8464         (aarch64_branch_cost): Declare.
8465         * gcc/config/aarch64.c (generic_branch_cost): New.
8466         (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
8467         (cortexa53_tunings): Likewise.
8468         (cortexa57_tunings): Likewise.
8469         (thunderx_tunings): Likewise.
8470         (xgene1_tunings): Likewise.
8471         (aarch64_branch_cost): Define.
8472         * gcc/config/aarch64/aarch64.h (BRANCH_COST): Redefine.
8474 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
8476         * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
8477         and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
8478         * config/i386/i386.md: Ditto.
8479         * config/i386/winnt.c: Ditto.
8481 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
8483         * doc/extend.texi (__atomic Builtins): Move implementation details
8484         to the end of the description, rewrite opening paragraphs, state
8485         difference with __sync builtins, state C11/C++11 assumptions,
8486         weaken itemized descriptions, add explanation of memory model
8487         behaviour, expand description of compare-exchange, simplify text.
8489 2015-05-05  Renlin Li  <renlin.li@arm.com>
8491         * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
8493 2015-05-05  Yvan Roux  <yvan.roux@linaro.org>
8495         * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
8496         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
8497         * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
8498         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
8499         * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
8500         * configure: Regenerate.
8501         * configure.ac: Add --enable-fix-cortex-a53-843419 option.
8502         * doc/install.texi (aarch64*-*-*): Document new
8503         --enable-fix-cortex-a53-843419 option.
8504         * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
8505         and -mno-fix-cortex-a53-843419 options.
8507 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
8509         PR target/65871
8510         * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
8512 2015-05-04  Jan Hubicka  <hubicka@ucw.cz>
8514         * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
8515         fix overactive TYPE_MIN_VALUE check and add FIXME for type
8516         compatibility problems.
8518 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
8520         * config/microblaze/microblaze.md (cbranchsi4): Added immediate
8521         constraints.
8522         (cbranchsi4_reg): New.
8523         * config/microblaze/microblaze.c
8524         (microblaze_expand_conditional_branch_reg): New.
8525         * config/microblaze/microblaze-protos.h
8526         (microblaze_expand_conditional_branch_reg): New prototype.
8528 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
8530         * config/microblaze/microblaze.md (peephole2): New.
8532 2015-05-04  Jeff Law  <law@redhat.com>
8534         Revert:
8535         2015-05-04  Jeff Law  <law@redhat.com>
8537         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
8538         simplifier to narrow arithmetic.
8539         * generic-match-head.c: (types_match, single_use): New functions.
8540         * gimple-match-head.c: (types_match, single_use): New functions.
8542 2015-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
8544         PR target/65987
8545         * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
8546         (split_branches): Likewise.
8548 2015-05-04  Sandra Loosemore  <sandra@codesourcery.com>
8550         * common.opt (fdelete-null-pointer-checks): Init to -1.
8551         * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
8552         override flag_delete_null_pointer_checks default.
8553         * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
8554         behavior re address zero.  Better document target-specific behavior.
8555         (-fisolate-errneous-paths-dereference): Mention relationship to
8556         -fdelete-null-pointer-checks.
8558 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
8560         PR tree-optimization/65984
8561         * ubsan.c: Include tree-cfg.h.
8562         (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
8563         stmt_could_throw_p test, rename can_throw variable to ends_bb.
8565 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
8567         * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
8568         to CONST_DOUBLE_P predicate.
8569         (standard_sse_constant_p): Return 0 for !TARGET_SSE.
8570         (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
8571         allow only operands that satisfy standard_sse_constant_p predicate.
8572         * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
8573         to CONST_DOUBLE_P predicate.
8575 2015-05-04  Jeff Law  <law@redhat.com>
8577         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
8578         simplifier to narrow arithmetic.
8579         * generic-match-head.c: (types_match, single_use): New functions.
8580         * gimple-match-head.c: (types_match, single_use): New functions.
8582 2015-05-04  Andreas Tobler  <andreast@gcc.gnu.org>
8584         * config/arm/arm.c: Restore bootstrap.
8586 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
8588         * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
8589         * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
8590         as CONST_WIDE_INT, not CONST_DOUBLE.
8591         (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
8592         (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
8593         (ix86_find_base_term): Do not check for CONST_DOUBLE.
8594         (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
8595         (ix86_build_signbit_mask): Rewrite using wide ints.
8596         (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
8597         (ix86_rtx_costs): Handle CONST_WIDE_INT.
8598         (find_constant): Ditto.
8599         * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
8600         using gen_int_mode.
8601         * config/i386/predicates.md (x86_64_immediate_operand)
8602         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
8603         (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
8604         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
8605         (const0_operand): Also match const_wide_int.
8606         (constm1_operand): Ditto.
8607         (const1_operand): Ditto.
8609 2015-05-04  Richard Biener  <rguenther@suse.de>
8611         PR tree-optimization/65965
8612         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
8613         store groups at gaps.
8615 2015-05-04  Richard Biener  <rguenther@suse.de>
8617         PR tree-optimization/65935
8618         * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
8619         then make sure to apply that swapping to the IL.
8621 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
8623         * Makefile.in (PATCHLEVEL_c): New variable.
8624         (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
8625         expand the same way as if DEVPHASE_c was non-empty.
8627 2015-05-04  Kai Tietz  <ktietz@redhat.com>
8629         PR target/65559
8630         * lto-wrapper.c (run_gcc): Open filename
8631         in binary-mode.
8633 2015-05-03  Sandra Loosemore  <sandra@codesourcery.com>
8635         * doc/extend.texi (Variable Attributes, Type Attributes):  Move
8636         sections up in file, to immediately after the Function Attributes
8637         section.
8639 2015-05-02  Jan Hubicka  <hubicka@ucw.cz>
8641         * tree.c (verify_type): Check various uses of TYPE_MINVAL.
8643 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8645         * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
8646         (insert_partition_copy_on_edge): Adjust.
8647         (insert_rtx_to_part_on_edge): Likewise.
8648         (insert_part_to_rtx_on_edge): Likewise.
8650 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8652         * function.c (set_return_jump_label): Change type of argument to
8653         rtx_insn *.
8654         * function.h (set_return_jump_label): Adjust.
8656 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8658         * reload.h (struct reg_equivs_t): Change type of init to
8659         rtx_insn *.
8660         * ira.c (fix_reg_equiv_init): Adjust.
8661         * reload1.c (eliminate_regs_1): Likewise.
8662         (init_eliminable_invariants): Likewise.
8664 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8666         * cselib.c (fp_setter_insn): Take a rtx_insn *.
8667         * cselib.h (fp_setter_insn): Adjust.
8669 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8671         * recog.c (struct validate_replace_src_data): Change type of
8672         insn field to rtx_insn *.
8673         (validate_replace_src_group): Change type of argument to rtx_insn *.
8674         * recog.h (validate_replace_src_group): Adjust.
8676 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8678         * haifa-sched.c: Change the type of some variables to rtx_insn *.
8679         * sched-deps.c: Likewise.
8680         * sched-int.h: Likewise.
8681         * sched-rgn.c: Likewise.
8682         * sel-sched.c: Likewise.
8684 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8686         to rtx_insn *.
8687         * config/i386/i386.c: Change the type of some arguments to
8688         rtx_insn *.
8689         * config/arm/arm.c: Likewise.
8691 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8693         * lra-constraints.c: Change type of some arguments to rtx_insn *.
8695 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8697         * regcprop.c (kill_autoinc_value): Change type of argument to
8698         rtx_insn *.
8700 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8702         * genrecog.c (print_subroutine): Adjust.
8703         * recog.c (get_bool_attr_mask_uncached): Likewise.
8704         * recog.h (struct recog_data_d): Change the type of insn to
8705         rtx_insn *.
8707 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8709         * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
8711 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8713         * df-problems.c (df_set_note): Change type of argument to
8714         rtx_insn *.
8716 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8718         * builtins.c (expand_builtin_trap): Change type of local
8719         variable to rtx_insn *.
8720         (add_sched_insns_for_speculation): Likewise.
8721         (ix86_emit_save_regs): Likewise.
8722         (get_scratch_register_on_entry): Likewise.
8723         (ix86_emit_restore_reg_using_pop): Likewise.
8724         (ix86_emit_leave): Likewise.
8725         (ix86_emit_restore_regs_using_mov): Likewise.
8726         (ix86_expand_epilogue): Likewise.
8727         Likewise.
8728         (rl78_alloc_physical_registers_umul): Likewise.
8729         * cselib.c (discard_useless_locs): Likewise.
8730         (cselib_invalidate_regno): Likewise.
8731         (cselib_invalidate_mem): Likewise.
8732         * function.c (expand_function_start): Likewise.
8733         (emit_use_return_register_into_block): Likewise.
8734         * gcse.c: Likewise.
8735         * haifa-sched.c (ok_for_early_queue_removal): Likewise.
8736         * ifcvt.c (noce_get_alt_condition): Likewise.
8737         * loop-doloop.c (doloop_condition_get): Likewise.
8738         * lra-constraints.c (inherit_in_ebb): Likewise.
8739         * modulo-sched.c (sms_schedule_by_order): Likewise.
8740         * recog.c (next_insn_tests_no_inequality): Likewise.
8741         * reorg.c (emit_delay_sequence): Likewise.
8742         (update_reg_dead_notes): Likewise.
8743         (fix_reg_dead_note): Likewise.
8744         (fill_slots_from_thread): Likewise.
8745         (delete_computation): Likewise.
8747 2015-05-01  Sandra Loosemore  <sandra@codesourcery.com>
8749         * doc/extend.texi (Variable Attributes): Add menu and proper
8750         @nodes to subsections.  Move Microsoft Windows attributes to
8751         their own subsection.
8752         (Type Attributes): Reorganize introduction to remove duplicate
8753         list of attributes.  Add menu and proper @nodes to subsections.
8754         Alphabetize the main table of common attributes.
8756 2015-05-01  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
8758         * match.pd: New simplification patterns.
8759         (x + (x & 1))  -> ((x + 1) & ~1)
8760         (x & ~(x & y)) -> ((x & ~y))
8761         (x | ~(x | y)) -> ((x | ~y))
8763 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8765         * target.def (attribute_table): Mention that struct attribute_spec
8766         is defined in tree-core.h rather than tree.h
8767         * doc/tm.texi: Regenerate.
8769 2015-05-01  Richard Sandiford  <richard.sandiford@arm.com>
8771         * genrecog.c (test): Rename to rtx_test.  Update rest of file
8772         accordingly.
8774 2015-05-01  Andreas Schwab  <schwab@linux-m68k.org>
8776         PR translation/65959
8777         * params.h (DEFPARAM): Rename msgid to nocmsgid.
8779 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
8781         * gcc/config/aarch64/aarch64-protos.h (tune_params):
8782         Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
8783         * gcc/config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
8784         Return value depending on target.
8785         (generic_tunings): Initialize new target settings.
8786         (cortexa53_tunings): Likewise.
8787         (cortexa57_tunings): Likewise.
8788         (thunderx_tunings): Likewise.
8789         (xgene1_tunings): Likewise.
8791 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
8793         * gcc/config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
8794         Make Cortex-A53 shift costs more accurate.
8796 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8798         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
8799         UNSIGNED_FLOAT.
8801 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
8803         * gcc/config/aarch64/aarch64.c (aarch64_rtx_costs):
8804         Calculate cost of op0 and op1 in PLUS and MINUS cases.
8806 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8808         * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
8809         Add cost of op0 in the compare-with-fpzero case.
8811 2015-04-30  David Malcolm  <dmalcolm@redhat.com>
8813         * builtins.c (fold_builtin_1): Remove spurious second
8814         semicolon.
8815         * cgraph.h (symtab_node::get_availability): Likewise.
8816         * opts.c (common_handle_option): Remove spurious second semicolon.
8817         * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
8818         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
8820 2015-04-30  Caroline Tice  <cmtice@google.com>
8822         PR gcov-profile/65929
8823         * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
8824         (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
8825         * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
8826         (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
8827         * doc/tm.texi: Regenerate.
8828         * final.c (final_scan_insn):  Use ASM_DECLARE_COLD_FUNCTION_NAME
8829         instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
8830         * varasm.c (assemble_end_function):  Use ASM_DECLARE_COLD_FUNCTION_SIZE
8831         instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
8833 2015-04-30  Marek Polacek  <polacek@redhat.com>
8835         * varasm.c (handle_cache_entry): Fix logic.
8837 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8839         * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
8840         (*extrsi5_insn_uxtw_alt): Likewise.
8841         * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
8842         (aarch64_rtx_costs, IOR case): Use above to properly cost extr
8843         operations.
8845 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8847         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
8848         fabd in ABS case.
8850 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8852         * config/aarch64/aarch64.md
8853         (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
8854         (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
8855         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
8856         appropriately.  Handle alternative EON form.
8858 2015-04-30  Renlin Li  <renlin.li@arm.com>
8860         * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
8861         * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
8863 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
8865         PR ipa/65873
8866         * ipa-inline.c (can_inline_edge_p): It is safe to inline across
8867         -fstrict-aliasing boundaries.
8869 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8871         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
8872         and [SU]MNEGL patterns.
8874 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8876         * config/aarch64/aarch64.c (aarch64_shift_p): New function.
8877         (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
8878         combined arithmetic-shift ops.  Properly handle all shift and extend
8879         operations that can occur in combination with PLUS/MINUS.
8880         Rename maybe_fma to compound_p.
8881         (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
8882         arithmetic and shift operations.
8884 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8886         * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
8887         rather than arith_shift cost when costing ADD/MINUS of an
8888         extended value.
8890 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
8892         PR lto/65948
8893         * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
8894         to itself.
8896 2015-04-30  Richard Sandiford  <richard.sandiford@arm.com>
8898         * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
8899         are for the same position.
8901 2015-04-29  Aditya Kumar  <hiraditya@hotmail.com>
8903         * tree-vectorizer.c (set_uid_loop_bbs): New.  Factored out of
8904         vectorize_loops.
8905         (vectorize_loops): Use it.
8907 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
8909         * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
8910         for aggregate types.
8911         (register_odr_type): Be ready for MAIN_VARIANT of ODR type
8912         type to be non_ODR.
8913         * tree.c (need_assembler_name_p): Compute mangled name for
8914         non-fundamental types and integer types.
8916 2015-04-29  Mikhail Maltsev  <maltsevm@gmail.com>
8918         * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
8919         manual swaps.
8920         * expr.c (expand_expr_real_2): Likewise.
8922 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
8924         * tree.c (build_common_builtin_nodes): Do not build
8925         __builtin_alloca_with_align as equivalent of library alloca.
8927 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
8929         * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
8930         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
8931         bugus variants.
8932         * tree.c: Include print-tree.h and ipa-utils.h
8933         (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
8934         (free_lang_data_in_cgraph): Call verify_type.
8935         (verify_type_variant): New function.
8936         (verify_type): New function.
8937         * tree.h (verify_type): Declare.
8939 2015-04-29  Steve Ellcey  <sellcey@imgtec.com>
8941         * config/mips/mips-cpus.def: (mips4): Change default processor
8942         from PROCESSOR_R8000 to PROCESSOR_R10000.
8944 2015-04-29  Petar Jovanovic  <petar.jovanovic@rt-rk.com>
8946         * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
8947         la/jalr instead of jal.
8949 2015-04-29  Uros Bizjak  <ubizjak@gmail.com>
8951         PR target/65871
8952         * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
8953         (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
8954         (setcc+movzbl peephole2): Check also clobbered reg.
8955         (setcc+andl peephole2): Ditto.
8957 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
8959         PR libgomp/65099
8960         * config/nvptx/mkoffload.c (target_ilp32): New variable.
8961         (main): Set it depending on "-foffload-abi=[...]".
8962         (compile_native, main): Use it to pass "-m32" or "-m64" to the
8963         compiler.
8965 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
8967         PR target/65770
8968         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
8969         vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
8970         Flip lane index back at assembly time for bigendian.
8972 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
8974         * tree.h (OMP_STANDALONE_CLAUSES): New macro.
8975         * gimplify.c (gimplify_omp_workshare): Use it.
8977 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
8979         * Makefile.in (build/genrecog.o): Depend on inchash.h.
8980         (build/genrecog$(build_exeext): Depend on build/hash-table.o and
8981         build/inchash.o
8982         * genrecog.c: Rewrite most of the code except for the third page.
8984 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
8986         * inchash.h, inchash.c: Include bconfig.h for build objects.
8987         * Makefile.in (build/inchash.o): New rule.
8989 2015-04-29  Yvan Roux  <yvan.roux@linaro.org>
8991         PR target/65924
8992         * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
8993         number in type attribute expression.
8995 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
8997         * loop-iv.c (canon_condition): Generalize to all types of integer
8998         constant.
9000 2015-04-29  Bernhard Reuther-Fischer  <aldot@gcc.gnu.org>
9002         * gimple-walk.c: Prune duplicate or unneeded includes.
9003         (walk_gimple_asm): Only call parse_input_constraint or
9004         parse_output_constraint if their findings are used.
9005         Honour parse_input_constraint and parse_output_constraint
9006         result.
9008 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
9010         * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
9012 2015-04-29  Tom de Vries  <tom@codesourcery.com>
9014         PR tree-optimization/65893
9015         * passes.def (pass_all_optimizations): Move pass_stdarg to after
9016         pass_dce.
9018 2015-04-29  Richard Biener  <rguenther@suse.de>
9020         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
9021         compute GROUP_SIZE for basic-block SLP.
9022         * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
9023         take into account gaps.
9024         (vect_get_mask_element): Properly reject references to previous
9025         vectors.
9026         (vect_transform_slp_perm_load): Likewise.
9028 2015-04-29  Christian Bruel  <christian.bruel@st.com>
9030         PR target/64835
9031         * config/i386/i386.c (ix86_default_align): New function.
9032         (ix86_override_options_after_change): Call ix86_default_align.
9033         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
9034         (ix86_override_options_after_change): New function.
9036 2015-04-28  Jeff Law  <law@redhat.com>
9038         * tree-ssa-dom.c (record_equality); Fix comment typos.
9040 2015-04-28  Tom de Vries  <tom@codesourcery.com>
9042         PR tree-optimization/65887
9043         * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
9045 2015-04-28  Sandra Loosemore  <sandra@codesourcery.com>
9047         * doc/extend.texi (Declaring Attributes of Functions): Split into
9048         subsections by target.  Alphabetize the table of common attributes.
9049         Rewrite some of the introductory text to reflect the new structure.
9050         Update some cross-references to point to the new subsections.
9051         (Attribute Syntax): Put paragraph about "__" naming here.  Remove
9052         duplicate copies in the discussion of function, label, and type
9053         attributes.
9055 2015-04-28  Dominique d'Humieres  <dominiq@lps.ens.fr>
9057         PR bootstrap/65910
9058         * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
9060 2015-04-28  Jason Merrill  <jason@redhat.com>
9062         PR c++/65734
9063         * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
9064         (finalize_type_size): Respect TYPE_USER_ALIGN.
9065         (layout_type) [ARRAY_TYPE]: Likewise.
9067 2015-04-28  Yvan Roux  <yvan.roux@linaro.org>
9069         * config/arm/arm.md (*arm_movt): Fix type attribute.
9070         (*cmpsi_shiftsi): Likewise.
9071         (*cmpsi_shiftsi_swp): Likewise.
9072         (*movsicc_insn): Likewise.
9073         (*cond_move): Likewise.
9074         (*if_plus_move): Likewise.
9075         (*if_move_plus): Likewise.
9076         (*if_arith_move): Likewise.
9077         (*if_move_arith): Likewise.
9078         (*if_shift_move): Likewise.
9079         (*if_move_shift): Likewise.
9080         (*arm_movtas_ze): Likewise.
9081         * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
9082         redundancy and type attribute.
9083         (*thumb2_movsi_insn): Fix type attribute.
9084         (*thumb2_addsi_short): Likewise.
9085         (thumb2_addsi3_compare0): Likewise.
9086         (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
9087         attributes accordingly.
9089 2015-04-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
9091         PR other/65911
9092         * function.c (pad_to_arg_alignment): Add parentheses.
9094 2015-04-28  Uros Bizjak  <ubizjak@gmail.com>
9096         * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
9097         libgcc/config/frv/elf-lib.h.
9099 2015-04-28  Tom de Vries  <tom@codesourcery.com>
9101         * tree-call-cdce.c: Fix example in header comment.
9103 2015-04-28  Richard Biener  <rguenther@suse.de>
9105         PR tree-optimization/62283
9106         * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
9107         fails fatally and we are vectorizing a basic-block simply
9108         cause the child to be constructed piecewise.
9109         (vect_analyze_slp_cost_1): Adjust.
9110         (vect_detect_hybrid_slp_stmts): Likewise.
9111         (vect_bb_slp_scalar_cost): Likewise.
9112         (vect_get_constant_vectors): For piecewise constructed
9113         constants place them after the last def.
9114         (vect_get_slp_defs): Adjust.
9115         * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
9116         externals for basic-block vectorization.
9118 2015-04-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
9120         PR target/63503
9121         * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
9122         aarch64-*-*.
9123         * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
9124         * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
9125         (AARCH64_TUNE_FMA_STEERING): Likewise.
9126         * config/aarch64/aarch64-cores.def: Set
9127         AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
9128         FMUL/FMADD instructions.
9129         * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
9130         (aarch64_override_options): Include cortex-a57-fma-steering.h.  Call
9131         aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
9132         * config/aarch64/cortex-a57-fma-steering.h: New file.
9133         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
9135 2015-04-28  Richard Sandiford  <richard.sandiford@arm.com>
9137         * gensupport.c (std_preds): Add missing codes to address_operand entry.
9139 2015-04-28  Richard Biener  <rguenther@suse.de>
9141         PR tree-optimization/65851
9142         * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
9143         changing CONSTANT to CONSTANT non-copy.  Get new_val by reference.
9144         (ccp_lattice_meet): Remove stray argument.  Use operand_equal_p
9145         rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
9146         (ccp_visit_phi_node): Adjust.
9147         (evaluate_stmt): For simplifications to SSA names return its
9148         lattice value if that isn't VARYING.  Return immediately when
9149         simplified to a constant.
9150         (visit_assignment): Adjust.
9151         (ccp_visit_stmt): Likewise.
9153 2015-04-28  Tom de Vries  <tom@codesourcery.com>
9155         PR tree-optimization/65818
9156         * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
9157         evaluated.
9159 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9161         * calls.c (save_fixed_argument_area): Don't check
9162         ARGS_GROW_DOWNWARD with the preprocessor.
9163         (restore_fixed_argument_area): Likewise.
9164         (mem_overlaps_already_clobbered_arg_p): Likewise.
9165         (check_sibcall_argument_overlap): Likewise.
9166         (expand_call): Likewise.
9167         (emit_library_call_value_1): Likewise.
9168         (store_one_arg): Likewise.
9169         * function.c (assign_parms): Likewise.
9170         (locate_and_pad_parm): Likewise.
9171         (pad_to_arg_alignment): Likewise.
9172         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
9174 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9176         * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
9177         * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
9178         * calls.c (save_fixed_argument_area): Don't chekc if
9179         ARGS_GROW_DOWNWARD is defined.
9180         (restore_fixed_argument_area): Likewise.
9181         (mem_overlaps_already_clobbered_arg_p): Likewise.
9182         (check_sibcall_argument_overlap): Likewise.
9183         (expand_call): Likewise.
9184         (emit_library_call_value_1): Likewise.
9185         (store_one_arg): Likewise.
9186         * function.c (assign_parms): Likewise.
9187         (locate_and_pad_parm): Likewise.
9188         (pad_to_arg_alignment): Likewise.
9189         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
9191 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9193         * defaults.h (gen_epilogue): New function.
9194         * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
9195         defined.
9196         * cfgrtl.c (cfg_layout_finalize): Likewise.
9197         * df-scan.c: Likewise.
9198         * function.c (thread_prologue_and_epilogue_insns): Likewise.
9199         (reposition_prologue_and_epilogue_notes): Likewise.
9200         * reorg.c (find_end_label): Likewise.
9201         * toplev.c: Likewise.
9203 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9205         * bb-reorder.c (HAVE_return): Don't check if its undefined.
9206         * defaults.h (gen_simple_return): New function.
9207         (gen_simple_return): Likewise.
9208         (HAVE_return): Add default definition to false.
9209         (HAVE_simple_return): Likewise.
9210         * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
9211         HAVE_return and HAVE_simple_return are defined.
9212         * function.c (gen_return_pattern): Likewise.
9213         (convert_jumps_to_returns): Likewise.
9214         (thread_prologue_and_epilogue_insns): Likewise.
9215         * reorg.c (find_end_label): Likewise.
9216         (dbr_schedule): Likewise.
9217         * shrink-wrap.c: Likewise.
9218         * shrink-wrap.h: Likewise.
9220 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9222         * defaults.h (EPILOGUE_USES): Add default definition of false.
9223         * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
9224         * resource.c (init_resource_info): Likewise.
9226 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9228         * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
9229         to false.
9230         * dwarf2out.c (field_byte_offset): REmove check if
9231         PCC_BITFIELD_TYPE_MATTERS is defined.
9232         * stor-layout.c (layout_decl): Likewise.
9233         (update_alignment_for_field): Likewise.
9234         (place_field): Likewise.
9236 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9238         * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
9239         true.
9240         * regrename.c (check_new_reg_p): Remove check if
9241         HARD_REGNO_RENAME_OK is defined.
9242         * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
9244 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9246         * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
9247         * cse.c (fold_rtx): Likewise.
9248         * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
9249         * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
9250         * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
9251         * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
9252         * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
9253         * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
9254         * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
9255         * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
9256         * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
9257         * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
9258         * Likewise.
9259         * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
9260         * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
9261         * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
9262         * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
9263         * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
9264         * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
9265         * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
9266         * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
9267         * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
9268         * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
9269         * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
9270         * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
9271         * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
9272         * doc/tm.texi: Regenerate.
9273         * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
9274         either true or false.
9276 2015-04-27  Jeff Law  <law@redhat.com>
9278         PR tree-optimization/65217
9279         * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
9280         of them has a single use, make sure it is the LHS of the implied
9281         copy.
9283 2015-04-28  Alan Modra  <amodra@gmail.com>
9285         PR target/65810
9286         * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
9287         (offsettable_ok_by_alignment): Use minimum of decl and toc
9288         pointer alignment.  Replace dead code with assertion.
9289         (use_toc_relative_ref): Add mode arg.  Return false in -mcmodel=medium
9290         case if size exceeds toc pointer alignment.
9291         (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
9292         (rs6000_emit_move): Likewise.
9293         * configure.ac: Add linker toc pointer alignment check.
9294         * configure: Regenerate.
9295         * config.in: Regenerate.
9297 2015-04-27  Yoshinori Sato <ysato@users.sourceforge.jp>
9299         * config.gcc: Add h8300-*-linux.
9300         * config/h8300/linux.h: New.
9301         * config/h8300/t-linux: New.
9302         * config/h8300/h8300.c (h8300_option_override): Normal mode
9303         is not supported for h8300-*-linux.
9304         (h8300_file_start): Target priority change.
9305         (get_shift_alg): Likewise.
9306         (h8300_shift_need_scratch_p): Likewise.
9307         * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
9308         * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
9310 2015-04-27  Caroline Tice  <cmtice@google.com>
9312         * final.c (final_scan_insn):  Output cold_function_name as function
9313         type.
9314         * varasm.c (cold_function_name):  Make global.
9315         (assemble_start_function):  Re-set cold_function_name.
9316         (assemble_end_function): Output cold partition size.
9317         * varasm.h (cold_function_name):  Declare global.
9319 2015-04-27  Ilya Tocar  <ilya.tocar@intel.com>
9321         * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
9322         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
9323         constraint.
9324         (*movxi_internal_avx512f): Ditto.
9325         (define_split): Check for xmm16+, when splitting scalar float_extend.
9326         (*extendsfdf2_mixed): Use "v" constraint.
9327         (define_split): Check for xmm16+, when splitting scalar float_truncate.
9328         (*truncdfsf_fast_sse): Use "v" constraint.
9329         (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
9330         (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
9331         (define_peephole2): Check for xmm16+, when converting scalar
9332         float_truncate.
9333         (define_peephole2): Check for xmm16+, when converting scalar
9334         float_extend.
9335         (*fop_<mode>_comm_mixed): Use "v" constraint.
9336         (*fop_<mode>_comm_sse): Ditto.
9337         (*fop_<mode>_1_mixed): Ditto.
9338         (*sqrt<mode>2_sse): Ditto.
9339         (*ieee_s<ieee_maxmin><mode>3): Ditto.
9341 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9343         * combine.c (simplify_if_then_else): Use std::swap instead
9344         of manually swapping.
9345         (known_cond): Likewise.
9346         (simplify_comparison): Likewise.
9348 2015-04-27  Peter Bergner  <bergner@vnet.ibm.com>
9350         PR target/64579
9351         * config/rs6000/htm.md: Remove all define_expands.
9352         (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
9353         UNSPECV_HTM_TABORTWCI): Remove.
9354         (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
9355         (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
9356         trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
9357         (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
9358         (tabortdc_internal, tabortdci_internal, tabortwc_internal,
9359         tabortwci_internal): Remove define_insns.
9360         (tabort<wd>c, tabort<wd>ci): New define_insns.
9361         (tabort): Use gpc_reg_operand.
9362         (tcheck): Remove operand.
9363         (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
9364         * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
9365         expected value.
9366         * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
9367         (BU_HTM_SPR1): Rename to BU_HTM_V1.  Remove use of RS6000_BTC_SPR.
9368         (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
9369         tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
9370         tsr, ttest): Pass in the RS6000_BTC_CR attribute.
9371         (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
9372         get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
9373         (tcheck): Remove builtin argument.
9374         * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
9375         not TARGET_64BIT.
9376         (htm_expand_builtin): Fix usage of expandedp.  Disallow usage of the
9377         tabortdc and tabortdci builtins when not in 64-bit mode.
9378         Modify code to handle the loss of the HTM define_expands.
9379         Emit code to copy the CR register to TARGET.
9380         (htm_init_builtins): Modify code to handle the loss of the HTM
9381         define_expands.
9382         * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
9383         (RS6000_BTC_64BIT): Likewise.
9384         (RS6000_BTC_CR): New macro.
9385         * doc/extend.texi: Update documentation for htm builtins.
9387 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9389         * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
9390         of manually swapping.
9391         (simplify_associative_operation): Likewise.
9392         (simplify_binary_operation): Likewise.
9393         (simplify_plus_minus): Likewise.
9394         (simplify_relational_operation): Likewise.
9395         (simplify_ternary_operation): Likewise.
9397 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
9399         * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
9400         (xs_hi_nonmemory_operand): Remove error.
9401         * config/stormy16/stormy16.md (movhi, movhi_internal): Use
9402         general_operand rather than xs_hi_general_operand.
9404 2015-04-27  Richard Biener  <rguenther@suse.de>
9406         * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
9407         (record_equivalences_from_stmt): Valueize rhs.
9408         (record_equality): Canonicalize x and y order via
9409         tree_swap_operands_p.  Do not swap operands for same loop depth.
9411 2015-04-27  Georg-Johann Lay  <avr@gjlay.de>
9413         PR target/65296
9414         PR target/65895
9415         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
9416         Add hint how to use own spec file.
9418 2015-04-27  Jakub Jelinek  <jakub@redhat.com>
9420         PR tree-optimization/65875
9421         * tree-vrp.c (update_value_range): If in is_new case setting
9422         old_vr to VR_VARYING, also set new_vr to it.  Remove
9423         old_vr->type == VR_VARYING test.
9424         (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
9425         SSA_PROP_INTERESTING if update_value_range returned true,
9426         but new range is VR_VARYING.
9428 2015-04-27  Thomas Preud'homme  <thomas.preudhomme@arm.com>
9430         * combine.c (sign_extend_short_imm): New.
9431         (set_nonzero_bits_and_sign_copies): Use above new function for sign
9432         extension of src short immediate.
9433         (reg_nonzero_bits_for_combine): Likewise for tem.
9435 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
9437         * stor-layout.c (self_referential_component_ref_p): New predicate.
9438         (copy_self_referential_tree_r): Use it.
9439         (self_referential_size): Punt for simple operations directly involving
9440         self-referential component references.
9441         * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
9443 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
9445         * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
9447 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
9449         * vec.h (vec): Make splice arguments const.  Update definitions
9450         accordingly.
9452 2015-04-27  Yvan Roux  <yvan.roux@linaro.org>
9454         * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
9455         alternatives.
9457 2015-04-26  Tom de Vries  <tom@codesourcery.com>
9459         PR tree-optimization/65826
9460         * internal-fn.def: Mark VA_ARG with ECF_LEAF.
9462 2015-04-24  Steve Ellcey  <sellcey@imgtec.com>
9464         * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
9465         (*madd3<mode>): Ditto.
9466         (*msub4<mode>): Ditto.
9467         (*msub3<mode>): Ditto.
9468         (*nmadd4<mode>): Ditto.
9469         (*nmadd3<mode>): Ditto.
9470         (*nmadd4<mode>_fastmath): Ditto.
9471         (*nmadd3<mode>_fastmath): Ditto.
9472         (*nmsub4<mode>): Ditto.
9473         (*nmsub3<mode>): Ditto.
9474         (*nmsub4<mode>_fastmath): Ditto.
9475         (*nmsub3<mode>_fastmath): Ditto.
9477 2015-04-24  Jason Merrill  <jason@redhat.com>
9479         PR c++/50800
9480         * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
9481         down when building TYPE_CANONICAL.
9482         (build_pointer_type_for_mode): Likewise.
9484 2015-04-24  Chen Gang  <gang.chen.5i5j@gmail.com>
9486         * genrecog.c (validate_pattern): Check matching constraint refers
9487         to a lower numbered operand.
9489 2015-04-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
9491         PR target/65849
9492         * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
9493         save to independent variables use the Save attribute.  This will
9494         allow these options to be modified with the #pragma/attribute
9495         target support.
9496         (-mallow-movmisalign): Likewise.
9497         (-mallow-df-permute): Likewise.
9498         (-msched-groups): Likewise.
9499         (-malways-hint): Likewise.
9500         (-malign-branch-targets): Likewise.
9501         (-mvectorize-builtins): Likewise.
9502         (-msave-toc-indirect): Likewise.
9504         * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
9505         can be set via the #pragma/attribute target support.
9506         (rs6000_opt_vars): Likewise.
9507         (rs6000_inner_target_options): If VSX was set, also set
9508         -mno-avoid-indexed-addresses.
9510 2015-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9512         * config/arm/iterators.md (shiftable_ops): Rename to...
9513         (SHIFTABLE_OPS): ... This.  Update use in comments.
9514         (ior_xor): Rename to...
9515         (IOR_XOR): ... This.
9516         (vqh_ops): Rename to...
9517         (VQH_OPS): ... This.
9518         (vqhs_ops): Rename to...
9519         (VQHS_OPS): ... This.
9520         (rshifts): Rename to...
9521         (RSHIFTS): ... This.
9522         (returns): Rename to...
9523         (RETURNS): ... This.
9524         * config/arm/arm.md: Update uses of the above.
9525         * config/arm/neon.md: Likewise.
9527 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9529         * config.host (case ${host}): Add aarch64*-*-linux case.
9530         * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
9531         fields to all the cores.
9532         * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
9533         Add MCPU_MTUNE_NATIVE_SPECS.
9534         * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
9535         field to all extensions.
9536         * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
9537         * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
9538         Adjust definition of AARCH64_OPT_EXTENSION.
9539         * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
9540         (MCPU_MTUNE_NATIVE_SPECS): Define.
9541         * config/aarch64/driver-aarch64.c: New file.
9542         * config/aarch64/x-arch64: New file.
9543         * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
9544         -mtune and -march.
9546 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
9547             Wei Mi  <wmi@google.com>
9549         * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
9550         * config/i386/i386.c (extract_base_offset_in_addr): New function.
9551         (ix86_operands_ok_for_move_multiple): Ditto.
9552         * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
9553         (movlpd/movhpd to movupd peephole2): Ditto.
9555 2015-04-24  Marek Polacek  <polacek@redhat.com>
9557         PR c/61534
9558         * input.h (from_macro_expansion_at): Define.
9560         PR c/63357
9561         * doc/invoke.texi: Update description of -Wlogical-op.
9563 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
9565         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
9566         ternary operator in fprintf and harmonize spacing.
9568 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
9570         * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
9571         Mark operand1 commutative.
9573 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
9575         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
9576         input operands in memory.
9577         (*vec_concatv2si_sse4_1): Ditto.
9578         (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
9579         (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
9580         register_operand.
9581         (vec_extract_hi_v32hi): Ditto.
9582         (vec_extract_hi_v64hi): Ditto.
9583         (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
9585 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
9586             Steven Bosscher <steven@gcc.gnu.org>
9588         PR rtl-optimization/34503
9589         * cprop.c (cprop_reg_p): New.
9590         (hash_scan_set): Use above function to check if register can be
9591         propagated.
9592         (find_avail_set): Return up to two sets, one whose source is a
9593         register and one whose source is a constant.  Sets are returned in an
9594         array passed as parameter rather than as a return value.
9595         (cprop_insn): Use a do while loop rather than a goto.  Try each of the
9596         sets returned by find_avail_set, starting with the one whose source is
9597         a constant. Use cprop_reg_p to check if register can be propagated.
9598         (do_local_cprop): Use cprop_reg_p to check if register can be
9599         propagated.
9600         (implicit_set_cond_p): Likewise.
9602 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
9604         * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
9605         (sem_function::equals): IGNORED_NODES parameter is now unused;
9606         update call of equals_private.
9607         (sem_function::equals_private): Do not call equals_wpa; skip
9608         gimple body matching if there is no body.
9609         (sem_function::init): Add logic to hash tthunk info.
9610         (sem_function::parse): Also parse thunks.
9611         * ipa-icf.h (equals_private): Update declaration.
9613 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9615         * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
9616         asterisk from name so this can be generated directly.
9617         (*altivec_stvx_<mode>_internal): Likewise.
9618         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
9619         that this is never called during or after reload/lra.
9620         (rs6000_frame_related): Remove split_reg
9621         argument and logic that references it.
9622         (emit_frame_save): Remove last parameter from call to
9623         rs6000_frame_related.
9624         (rs6000_emit_prologue): Remove last parameter from eight calls to
9625         rs6000_frame_related.  Force generation of stvx instruction for
9626         Altivec register saves.  Remove split_reg handling, which is no
9627         longer needed.
9628         (rs6000_emit_epilogue):  Force generation of lvx instruction for
9629         Altivec register restores.
9631 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9633         * config/rs6000/rs6000.opt (mcrypto): Change option description to
9634         match category changes in ISA 2.07B.
9636 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9638         * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
9639         iterators.
9640         (cmp_op, cmp_type): New code attributes.
9641         (NEON_VCMP, NEON_VACMP): New int iterators.
9642         (cmp_op_unsp): New int attribute.
9643         * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
9644         (neon_vceq<mode>): Delete.
9645         (neon_vc<cmp_op><mode>_insn): New pattern.
9646         (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
9647         (neon_vcgeu<mode>): Delete.
9648         (neon_vcle<mode>): Likewise.
9649         (neon_vclt<mode>: Likewise.
9650         (neon_vcage<mode>): Likewise.
9651         (neon_vcagt<mode>): Likewise.
9652         (neon_vca<cmp_op><mode>): New define_expand.
9653         (neon_vca<cmp_op><mode>_insn): New pattern.
9654         (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
9656 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
9658         * tree.h (attribute_value_equal): Declare.
9659         * tree.c (attribute_value_equal): Export.
9661 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
9663         * ipa-icf.c (sem_item::compare_attributes): New function.
9664         (sem_item::compare_referenced_symbol_properties): Compare variable
9665         attributes.
9666         (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
9667         (sem_function::param_used_p): New function.
9668         (sem_function::equals_wpa): Fix attribute comparsion; match
9669         parameter type codes; do not compare paremter flags when
9670         they are not used; compare edge flags; compare indirect calls.
9671         (sem_item::update_hash_by_addr_refs): Hash reference type.
9672         (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
9673         (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
9674         reference use type.
9675         (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
9676         * ipa-icf.h (compare_attributes, param_used_p): Declare.
9678 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
9680         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
9681         cleanup.
9682         (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
9683         DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
9684         (sem_item::compare_referenced_symbol_properties): New.
9685         (sem_item::hash_referenced_symbol_properties): New.
9686         (sem_item::compare_cgraph_references): Rename to ...
9687         (sem_item::compare_symbol_references): ... this one; use
9688         compare_referenced_symbol_properties.
9689         (sem_function::equals_wpa): Do not compare
9690         DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
9691         DECL_IS_OPERATOR_NEW; compare pointer sizes.
9692         (sem_item::update_hash_by_addr_refs): Call
9693         hash_referenced_symbol_properties.
9694         (sem_item::update_hash_by_local_refs): Cleanup.
9695         (sem_function::merge): Do not mix up symbol properties.
9696         (sem_variable::equals_wpa): Use compare_symbol_references.
9697         * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
9698         (sem_item::hash_referenced_symbol_properties): New.
9699         (sem_item::compare_symbol_references): New.
9700         (sem_item::compare_cgraph_references): Remove.
9702 2015-04-23  Kwok Cheung Yeung  <kcy@codesourcery.com>
9704         PR target/26702
9705         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
9706         Emit size of local.
9708 2015-04-23  Nick Clifton  <nickc@redhat.com>
9710         * config/rl78/rl78.c (rl78_preferred_reload_class): Add
9711         ATTRIBUTE_UNUSED to x parameter.
9712         * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
9714 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9716         * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
9717         TARGET_CRYPTO to TARGET_P8_VECTOR>
9718         (crypto_vpermxor_<mode>): Likewise.
9719         * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
9720         (BU_CRYPTO_3A): Likewise.
9721         (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
9722         (BU_CRYPTO_OVERLOAD_3A): New #define.
9723         (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
9724         (VPMSUMH): Likewise.
9725         (VPMSUMW): Likewise.
9726         (VPMSUMD): Likewise.
9727         (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
9728         (VPERMXOR_V4SI): Likewise.
9729         (VPERMXOR_V8HI): Likewise.
9730         (VPERMXOR_V16QI): Likewise.
9731         (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
9732         BU_CRYPTO_OVERLOAD_2A.
9733         (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
9734         BU_CRYPTO_OVERLOAD_3A.
9735         * config/rs6000/rs6000.opt (mcrypto): Change description of
9736         option.
9738 2015-04-23  Richard Biener  <rguenther@suse.de>
9740         * passes.def: Remove copy propagation passes run directly after CCP.
9741         * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
9742         SSA names.
9743         (ccp_visit_phi_node): Rework to handle first executable edge
9744         specially.
9746 2015-04-23  Matthew Wahab  <matthew.wahab@arm.com>
9748         * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
9749         (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
9750         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
9751         * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
9752         (thumb_legimitimize_reload_address): Remove.
9753         * config/arm/arm-protos.h (arm_legimitimize_reload_address):
9754         Remove.
9755         (thumb_legimitimize_reload_address): Remove.
9757 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9759         * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
9761 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9763         * config/arm/arm.md (load_multiple): Reject operand 2 greater than
9764         MAX_LDM_STM_OPS.
9765         (store_multiple): Likewise.
9767 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9769         * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
9770         * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
9771         arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
9772         arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
9773         arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
9774         arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
9775         arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
9776         Specify issue_rate value.
9777         (arm_issue_rate): Look up issue rate from tuning structs. Remove
9778         large switch statement.
9779         (arm_marvell_pj4_tune): New struct.
9780         * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
9781         struct.
9783 2015-04-23  Richard Biener  <rguenther@suse.de>
9785         * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
9786         (vect_find_last_store_in_slp_instance): Rename to ...
9787         (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
9788         (vect_analyze_slp_cost_1): Use vector_load for constant defs
9789         and vec_construct for external defs when estimating prologue cost.
9790         (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
9791         Compute costs here only when vectorizing loops.
9792         (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
9793         have been determined.
9794         (vect_schedule_slp_instance): Simplify vectorized code placement
9795         and prepare for in-BB external defs.
9796         * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
9797         (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
9798         * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
9799         guard.
9800         (vect_model_load_cost): Likewise.
9801         (vectorizable_store): Instead add it here.
9802         (vectorizable_load): Likewise.
9803         (vect_is_simple_use): Dump def type textually.
9805 2015-04-23  Richard Biener  <rguenther@suse.de>
9807         * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
9808         * cfgloop.c (verify_loop_structure): Verify the root loop node.
9809         * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
9810         instead of get_eh_region_from_lp_number.
9811         * loop-init.c (fix_loop_structure): If we removed a loop, reset
9812         the SCEV cache.
9814 2015-04-23  Anton Blanchard  <anton@samba.org>
9816         * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
9817         need for -mprofile-kernel to save LR to stack.
9819 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9821         * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
9822         adjustments.
9823         (insn_is_swappable_p): Return 1 for a convert from double to
9824         single precision when all of its uses are splats of BE element
9825         zero.
9827 2015-04-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
9829         * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
9831 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9833         PR target/65456
9834         * config/rs6000/rs6000.c (rs6000_option_override_internal):  For
9835         VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
9836         TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
9837         option.
9838         (rs6000_builtin_mask_for_load): Return 0 for targets with
9839         efficient unaligned VSX accesses so that the vectorizer will use
9840         direct unaligned loads.
9841         (rs6000_builtin_support_vector_misalignment): Always return true
9842         for targets with efficient unaligned VSX accesses.
9843         (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
9844         stores on targets with efficient unaligned VSX accesses is almost
9845         always the same as the cost of an aligned load or store, so model
9846         it that way.
9847         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
9848         unaligned vectors if we have efficient unaligned VSX accesses.
9849         * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
9850         undocumented option.
9852 2015-04-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9854         Revert:
9855         2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
9857         * config.gcc (LIBC_MUSL): New tm_defines macro.
9858         * config/linux.h (OPTION_MUSL): Define.
9859         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
9860         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
9861         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
9863         * config/linux.opt (mmusl): New option.
9864         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
9865         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
9867         * configure: Regenerate.
9869 2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
9871         * config.gcc (LIBC_MUSL): New tm_defines macro.
9872         * config/linux.h (OPTION_MUSL): Define.
9873         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
9874         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
9875         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
9877         * config/linux.opt (mmusl): New option.
9878         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
9879         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
9881         * configure: Regenerate.
9883 2015-04-22  Yury Gribov  <y.gribov@samsung.com>
9885         * doc/invoke.texi (-fsanitize-sections): Update description.
9886         * asan.c (set_sanitized_sections): Parse incoming arg.
9887         (section_sanitized_p): Support wildcards.
9889 2015-04-22  Tom de Vries  <tom@codesourcery.com>
9891         PR tree-optimization/65823
9892         * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
9893         equality between ap_copy and ap.
9895 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
9897         PR target/47098
9898         * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
9900 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
9902         PR target/47122
9903         * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
9905 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
9907         PR target/55144
9908         * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
9909         remove already contained t-files.
9911 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
9913         * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
9914         Remove unneeded forward declarations.
9915         (suitable_for_tail_call_opt_p): Commentary typo fix.
9917 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
9919         * varasm.c (emit_bss): Remove redundant guard.
9921 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
9923         * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
9925 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
9927         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
9929 2015-04-22  Hale Wang  <hale.wang@arm.com>
9930             Terry Guo  <terry.guo@arm.com>
9932         PR rtl-optimization/64818
9933         * combine.c (can_combine_p): Don't combine user-specified
9934         register if it is in an asm input.
9936 2015-04-21  Jan Hubicka  <hubicka@ucw.cz>
9938         PR ipa/65076
9939         * passes.def (early_optimizations): Add pass_dse.
9941 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9943         * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
9944         * reorg.c (redundant_insn): Remove ifdef
9945         INSN_REFERENCES_ARE_DELAYED.
9946         * resource.c (mark_referenced_resources): Likewise.
9948 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9950         * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
9951         * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
9952         * resource.c (mark_set_resources): Likewise.
9954 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9956         * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
9957         * cfgcleanup.c (flow_find_cross_jump): Likewise.
9958         (flow_find_head_matching_sequence): Likewise.
9959         (try_head_merge_bb): Likewise.
9960         * combine.c (can_combine_p): Likewise.
9961         (try_combine): Likewise.
9962         (distribute_notes): Likewise.
9963         * df-problems.c (can_move_insns_across): Likewise.
9964         * final.c (final): Likewise.
9965         * gcse.c (insert_insn_end_basic_block): Likewise.
9966         * ira.c (find_moveable_pseudos): Likewise.
9967         * reorg.c (try_merge_delay_insns): Likewise.
9968         (fill_simple_delay_slots): Likewise.
9969         (fill_slots_from_thread): Likewise.
9970         * sched-deps.c (sched_analyze_2): Likewise.
9972 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9974         * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
9975         PIC_OFFSET_TABLE_REGNUM.
9977 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9979         * alias.c (init_alias_target): Remove ifdef
9980         * HARD_FRAME_POINTER_IS_FRAME_POINTER.
9981         * df-scan.c (df_insn_refs_collect): Likewise.
9982         (df_get_regular_block_artificial_uses): Likewise.
9983         (df_get_eh_block_artificial_uses): Likewise.
9984         (df_get_entry_block_def_set): Likewise.
9985         (df_get_exit_block_use_set): Likewise.
9986         * emit-rtl.c (gen_rtx_REG): Likewise.
9987         * ira.c (ira_setup_eliminable_regset): Likewise.
9988         * reginfo.c (init_reg_sets_1): Likewise.
9989         * regrename.c (rename_chains): Likewise.
9990         * reload1.c (reload): Likewise.
9991         (eliminate_regs_in_insn): Likewise.
9992         * resource.c (mark_referenced_resources): Likewise.
9993         (init_resource_info): Likewise.
9995 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9997         * defaults.h (MASK_RETURN_ADDR): New definition.
9998         * except.c (expand_builtin_extract_return_addr): Remove ifdef
9999         MASK_RETURN_ADDR.
10001 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10003         * defaults.h (RETURN_ADDR_OFFSET): New definition.
10004         * except.c (expand_builtin_extract_return_addr): Remove ifdef
10005         RETURN_ADDR_OFFSET.
10006         (expand_builtin_frob_return_addr): Likewise.
10008 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10010         * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
10011         (try_redirect_by_replacing_jump): Likewise.
10012         (rtl_tidy_fallthru_edge): Likewise.
10013         * combine.c (insn_a_feeds_b): Likewise.
10014         (find_split_point): Likewise.
10015         (simplify_set): Likewise.
10016         * cprop.c (cprop_jump): Likewise.
10017         * cse.c (cse_extended_basic_block): Likewise.
10018         * df-problems.c (can_move_insns_across): Likewise.
10019         * function.c (emit_use_return_register_into_block): Likewise.
10020         * haifa-sched.c (sched_init): Likewise.
10021         * ira.c (find_moveable_pseudos): Likewise.
10022         * loop-invariant.c (find_invariant_insn): Likewise.
10023         * lra-constraints.c (curr_insn_transform): Likewise.
10024         * postreload.c (reload_combine_recognize_const_pattern):
10025         * Likewise.
10026         * reload.c (find_reloads): Likewise.
10027         * reorg.c (delete_scheduled_jump): Likewise.
10028         (steal_delay_list_from_target): Likewise.
10029         (steal_delay_list_from_fallthrough): Likewise.
10030         (redundant_insn): Likewise.
10031         (fill_simple_delay_slots): Likewise.
10032         (fill_slots_from_thread): Likewise.
10033         (delete_computation): Likewise.
10034         * sched-rgn.c (add_branch_dependences): Likewise.
10036 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10038         * genconfig.c (main): Always define HAVE_cc0.
10039         * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
10040         HAVE_cc0.
10041         * cfgcleanup.c (flow_find_cross_jump): Likewise.
10042         (flow_find_head_matching_sequence): Likewise.
10043         (try_head_merge_bb): Likewise.
10044         * cfgrtl.c (rtl_merge_blocks): Likewise.
10045         (try_redirect_by_replacing_jump): Likewise.
10046         (rtl_tidy_fallthru_edge): Likewise.
10047         * combine.c (do_SUBST_MODE): Likewise.
10048         (insn_a_feeds_b): Likewise.
10049         (combine_instructions): Likewise.
10050         (can_combine_p): Likewise.
10051         (try_combine): Likewise.
10052         (find_split_point): Likewise.
10053         (subst): Likewise.
10054         (simplify_set): Likewise.
10055         (distribute_notes): Likewise.
10056         * cprop.c (cprop_jump): Likewise.
10057         * cse.c (cse_extended_basic_block): Likewise.
10058         * df-problems.c (can_move_insns_across): Likewise.
10059         * final.c (final): Likewise.
10060         (final_scan_insn): Likewise.
10061         * function.c (emit_use_return_register_into_block): Likewise.
10062         * gcse.c (insert_insn_end_basic_block): Likewise.
10063         * haifa-sched.c (sched_init): Likewise.
10064         * ira.c (find_moveable_pseudos): Likewise.
10065         * loop-invariant.c (find_invariant_insn): Likewise.
10066         * lra-constraints.c (curr_insn_transform): Likewise.
10067         * optabs.c (prepare_cmp_insn): Likewise.
10068         * postreload.c (reload_combine_recognize_const_pattern):
10069         * Likewise.
10070         * reload.c (find_reloads): Likewise.
10071         (find_reloads_address_1): Likewise.
10072         * reorg.c (delete_scheduled_jump): Likewise.
10073         (steal_delay_list_from_target): Likewise.
10074         (steal_delay_list_from_fallthrough): Likewise.
10075         (try_merge_delay_insns): Likewise.
10076         (redundant_insn): Likewise.
10077         (fill_simple_delay_slots): Likewise.
10078         (fill_slots_from_thread): Likewise.
10079         (delete_computation): Likewise.
10080         (relax_delay_slots): Likewise.
10081         * sched-deps.c (sched_analyze_2): Likewise.
10082         * sched-rgn.c (add_branch_dependences): Likewise.
10084 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10086         * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
10087         that is trivially ded on non cc0 targets.
10088         (simplify_set): Likewise.
10089         (mark_used_regs_combine): Likewise.
10090         * cse.c (new_basic_block): Likewise.
10091         (fold_rtx): Likewise.
10092         (cse_insn): Likewise.
10093         (cse_extended_basic_block): Likewise.
10094         (set_live_p): Likewise.
10095         * rtlanal.c (canonicalize_condition): Likewise.
10096         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
10098 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10100         * conditions.h: Define macros even if HAVE_cc0 is undefined.
10101         * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
10102         * final.c: Likewise.
10103         * jump.c: Likewise.
10104         * recog.c: Likewise.
10105         * recog.h: Declare functions even when HAVE_cc0 is undefined.
10106         * sched-deps.c (sched_analyze_2): Always compile case for cc0.
10108 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10110         * defaults.h: New definition of EH_RETURN_DATA_REGNO.
10111         * except.c: Remove definition of EH_RETURN_DATA_REGNO.
10112         * builtins.c (expand_builtin): Remove check if
10113         EH_RETURN_DATA_REGNO is defined.
10114         * df-scan.c (df_bb_refs_collect): Likewise.
10115         (df_get_exit_block_use_set): Likewise.
10116         * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
10117         * ira-lives.c (process_bb_node_lives): Likewise.
10118         * lra-lives.c (process_bb_lives): Likewise.
10120 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
10122         * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
10123         FIRST_PSEUDO_REG): New.
10124         * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
10125         (ARG_POINTER_REGNUM): Define to ARGP_REG.
10126         (FRAME_POINTER_REGNUM): Define to FRAME_REG.
10127         (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
10128         (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
10129         (FIRST_INT_REG): New.
10130         (LAST_INT_REG): New.
10131         (FIRST_*_REG): Define using *_REG.
10132         (LAST_*_REG): Ditto.
10133         (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
10134         (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
10135         (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
10137 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10139         * expmed.c: (synth_mult): Only assume overlapping
10140         shift with previous steps in alg_sub_t_m2 case.
10142 2015-04-21  Richard Biener  <rguenther@suse.de>
10144         PR tree-optimization/65650
10145         * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
10146         transitions involving copies.
10147         (set_lattice_value): Adjust for copy lattice state.
10148         (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
10149         if that doesn't dominate the merge point.
10150         (bit_value_unop): Adjust what we treat as varying mask.
10151         (bit_value_binop): Likewise.
10152         (bit_value_assume_aligned): Likewise.
10153         (evaluate_stmt): When we simplified to a SSA name record a copy
10154         instead of dropping to varying.
10155         (visit_assignment): Simplify.
10157         * gimple-match.h (gimple_simplify): Add another callback.
10158         * gimple-fold.c (fold_stmt_1): Adjust caller.
10159         (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
10160         for the 2nd callback.
10161         * gimple-match-head.c (gimple_simplify): Add a callback that is
10162         used to valueize the stmt operands and use it that way.
10164 2015-04-21  Richard Biener  <rguenther@suse.de>
10166         PR tree-optimization/65788
10167         * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
10169 2015-04-21  Richard Biener  <rguenther@suse.de>
10171         * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
10172         vec_construct cost by vec_stmt_cost.
10174 2015-04-21  Richard Biener  <rguenther@suse.de>
10176         * cfghooks.h (create_basic_block): Replace with two overloads
10177         for RTL and GIMPLE.
10178         (split_block): Likewise.
10179         * cfghooks.c (split_block): Rename to ...
10180         (split_block_1): ... this.
10181         (split_block): Add two type-safe overloads for RTL and GIMPLE.
10182         (split_block_after_labels): Call split_block_1.
10183         (create_basic_block): Rename to ...
10184         (create_basic_block_1): ... this.
10185         (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
10186         (create_empty_bb): Call create_basic_block_1.
10187         * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
10188         split_block_after_labels.
10189         * omp-low.c (expand_parallel_call): Likewise.
10190         (expand_omp_target): Likewise.
10191         (simd_clone_adjust): Likewise.
10192         * tree-chkp.c (chkp_get_entry_block): Likewise.
10193         * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
10194         create_basic_block overload.
10195         (cgraph_node::expand_thunk): Likewise.
10196         * tree-cfg.c (make_blocks): Likewise.
10197         (handle_abnormal_edges): Likewise.
10198         * tree-inline.c (copy_bb): Likewise.
10200 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10202         * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
10203         New pattern.
10204         (*xor_one_cmplsidi3_ze): Likewise.
10206 2015-04-21  Thomas Preud'homme  <thomas.preudhomme@arm.com>
10208         * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
10209         use df_remove_problem rather than manually removing problems, leaving
10210         holes in df->problems_in_order[].
10212 2015-04-21  Tom de Vries  <tom@codesourcery.com>
10214         PR tree-optimization/65802
10215         * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
10217 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10219         * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
10220         Increase to 128.
10221         (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
10222         at '.'.  Assert that there's enough space for everything.
10224 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
10226         PR tree-optimization/64950
10227         Revert:
10228         2010-08-02  Uros Bizjak  <ubizjak@gmail.com>
10230         PR target/41089
10231         * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
10232         as volatile.
10234 2015-04-20  Shiva Chen  <shiva0217@gmail.com>
10236         PR rtl-optimization/64916
10237         * cfgcleanup.c (values_equal_p): New function.
10238         (can_replace_by): Use it.
10240 2015-04-20  Paolo Carlini  <paolo.carlini@oracle.com>
10242         PR c++/65801
10243         * doc/invoke.texi ([-Wnarrowing]): Update.
10245 2015-04-20  Jeff Law  <law@redhat.com>
10247         PR tree-optimization/65658
10248         * tree-ssa-threadupdate.c (redirection_block_p): Remove
10249         redundant test for GIMPLE_ASSIGN in last change.
10251 2015-04-20  Uros Bizjak  <ubizjak@gmail.com>
10253         * config/i386/i386.c (set_pic_reg_ever_live): Remove.
10254         (legitimize_pic_address): Do not call set_pic_reg_ever_live.
10255         (legitimize_tls_address): Ditto.
10256         (ix86_expand_move): Ditto.
10257         (ix86_expand_binary_operator): Remove reload_in_progress checks.
10258         (ix86_expand_unary_operator): Ditto.
10259         * config/i386/predicates.md (index_register_operand): Ditto.
10261 2015-04-20  Selim Belbachir  <selim.belbachir@fr.thalesgroup.com>
10263         * reorg.c (try_merge_delay_insns): Improve correctness checking
10264         for targets with multiple delay slots.
10266 2015-04-20  Jeff Law  <law@redhat.com>
10268         PR tree-optimization/65658
10269         * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
10270         statements too.
10272 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
10274         * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
10275         * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
10276         Delete.
10278 2015-04-20  Jakub Jelinek  <jakub@redhat.com>
10280         PR debug/65807
10281         * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
10283 2015-04-20  Richard Biener  <rguenther@suse.de>
10285         * gimple-fold.h (gimple_build): Remove optional valueize arguments.
10286         * gimple-fold.c (gimple_build_valueize): New function.
10287         (gimple_build): Always use gimple_build_valueize as valueize hook.
10289 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
10291         PR target/64134
10292         * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
10293         and overwrite variable parts if <= 1/2 the elements are variable.
10295 2015-04-19  Vladimir Makarov  <vmakarov@redhat.com>
10297         PR rtl-optimization/65805
10298         * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
10299         Don't use difference of offset and previous offset if
10300         update_sp_offset is non-zero.
10301         (eliminate_regs_in_insn): Ditto.
10302         * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
10303         lra_eliminate_regs_1 call.
10304         * lra-constraints.c (get_equiv_with_elimination): Ditto.
10306 2015-04-18  Trevor Saunders  <tsaunders@mozilla.com>
10308         * hash-table.h: Remove version of hash_table that stored value_type *.
10309         * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
10310         config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
10311         config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
10312         dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
10313         gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
10314         hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
10315         ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
10316         loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
10317         reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
10318         tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
10319         tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
10320         tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
10321         tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
10322         tree-ssa-structalias.c, tree-ssa-tail-merge.c,
10323         tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
10324         valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
10326 2015-04-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10327             Jakub Jelinek  <jakub@redhat.com>
10329         PR target/65787
10330         * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
10331         subsequent SH_NONE operand does not overwrite an existing *special
10332         value.
10333         (adjust_extract): Handle case where a vec_extract operation is
10334         wrapped in a PARALLEL.
10336 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
10338         PR target/65780
10339         * config/i386/i386.c (ix86_binds_local_p): Define only if
10340         TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
10342 2015-04-17  Jeff Law  <law@redhat.com>
10344         PR tree-optimization/47679
10345         * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
10346         * tree-ssa-scopedtables.c: New file.
10347         * tree-ssa-scopedtables.h: New file.
10348         * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
10349         (const_and_copies): Change name/type.
10350         (record_const_or_copy): Move into tree-ssa-scopedtables.c
10351         (record_const_or_copy_1): Similarly.
10352         (restore_vars_to_original_value): Similarly.
10353         (pass_dominator::execute): Create and destroy const_and_copies table.
10354         (thread_across_edge): Update passing of const_and_copies.
10355         (record_temporary_equivalence): Use method calls rather than
10356         manipulating const_and_copies directly.
10357         (record_equality, cprop_into_successor_phis): Similarly.
10358         (dom_opt_dom_walker::before_dom_children): Similarly.
10359         (dom_opt_dom_walker::after_dom_children): Similarly.
10360         (eliminate_redundant_computations): Similarly.
10361         * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
10362         (record_temporary_equivalence): Likewise.
10363         (invalidate_equivalences): Likewise.
10364         (record_temporary_equivalences_from_phis): Update due to type
10365         change of const_and_copies.  Use method calls rather than
10366         manipulating the stack directly.
10367         (record_temporary_equivalences_from_stmts_at_dest): Likewise.
10368         (thread_through_normal_block, thread_across_edge): Likewise.
10369         (thread_across_edge): Likewise.
10370         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
10371         * tree-vrp.c: Include tree-ssa-scopedtables.h.  Change type
10372         of equiv_stack.
10373         (identify_jump_threads): Update due to type change of equiv_stack.
10374         (finalize_jump_threads): Delete the equiv_stack when complete.
10376 2015-04-17  Uros Bizjak  <ubizjak@gmail.com>
10378         * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
10379         * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
10380         * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
10382 2015-04-17  Andreas Tobler  <andreast@gcc.gnu.org>
10384         PR target/65535
10385         * config.gcc: Exit with a comment when we do not have a major version
10386         number for the FreeBSD target.
10388 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
10390         PR target/65689
10391         * genpreds.c (struct constraint_data): Add maybe_allows_reg and
10392         maybe_allows_mem bitfields.
10393         (maybe_allows_none_start, maybe_allows_none_end,
10394         maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
10395         maybe_allows_mem_end): New variables.
10396         (compute_maybe_allows): New function.
10397         (add_constraint): Use it to initialize maybe_allows_reg and
10398         maybe_allows_mem fields.
10399         (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
10400         is_address constraints such that those that allow neither mem nor
10401         reg come first, then those that only allow reg but not mem, then
10402         those that only allow mem but not reg, then the rest.
10403         (write_allows_reg_mem_function): New function.
10404         (write_tm_preds_h): Call it.
10405         * stmt.c (parse_output_constraint, parse_input_constraint): Use
10406         the generated insn_extra_constraint_allows_reg_mem function
10407         instead of always setting *allows_reg = true; *allows_mem = true;
10408         for unknown extra constraints.
10410 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
10412         PR target/65780
10413         * output.h (default_binds_local_p_3): New.
10414         * varasm.c (default_binds_local_p_3): Make it public.  Take an
10415         argument to indicate if common symbol may be local.  If common
10416         symbol may be local, treat non-external variable as defined
10417         locally.
10418         (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
10419         (default_binds_local_p_1): Pass false to default_binds_local_p_3.
10420         * config/i386/i386.c (ix86_binds_local_p): New.
10421         (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
10422         ix86_binds_local_p.
10424 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
10426         PR debug/65771
10427         * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
10428         trying mem_loc_descriptor on XEXP (rtl, 0).
10430 2015-04-17  Martin Liska  <mliska@suse.cz>
10432         * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
10433         Release symbol_compare_collection.
10434         * ipa-reference.c: Add TODO that a vector should be released.
10436 2015-04-17  Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
10438         PR target/65296
10439         * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
10440         to new AVR-LibC file layout (bug #44574).
10441         (*avrlibc_devicelib): Same.
10442         * config/avr/avr-mcus.def: Adjust comments.
10443         * config/avr/avr.opt (nodevicelib): Adjust help.
10445 2015-04-17  Alan Lawrence  <alan.lawrence@arm.com>
10447         * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
10449 2015-04-17  Patrick Palka  <ppalka@gcc.gnu.org>
10451         PR c++/64527
10452         * gimplify.c (gimplify_init_constructor): Always emit a
10453         side-effecting constructor.
10455 2015-04-17  Tom de Vries  <tom@codesourcery.com>
10457         PR tree-optimization/64950
10458         * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
10459         in cfun->curr_properties.
10460         (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
10461         if we generate an IFN_VA_ARG.
10462         * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
10463         function if PROP_gimple_lva is not set in src function.
10465 2015-04-17  Tom de Vries  <tom@codesourcery.com>
10466             Michael Matz  <matz@suse.de>
10468         PR tree-optimization/64950
10469         * gimple-iterator.c (update_modified_stmts): Remove static.
10470         * gimple-iterator.h (update_modified_stmts): Declare.
10471         * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
10472         (gimplify_va_arg_internal): New function.
10473         (gimplify_va_arg_expr): Use IFN_VA_ARG.
10474         * gimplify.h (gimplify_va_arg_internal): Declare.
10475         * internal-fn.c (expand_VA_ARG): New unreachable function.
10476         * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
10477         * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
10478         (expand_ifn_va_arg): New function.
10479         (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
10480         (pass_stdarg::execute): Call expand_ifn_va_arg.
10481         (pass_data_lower_vaarg): New pass_data.
10482         (pass_lower_vaarg): New gimple_opt_pass.
10483         (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
10484         (make_pass_lower_vaarg): New function.
10485         * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
10486         properties_required field.
10487         * passes.def (all_passes): Add pass_lower_vaarg.
10488         * tree-pass.h (PROP_gimple_lva): Add define.
10489         (make_pass_lower_vaarg): Declare.
10491 2015-04-17  Tom de Vries  <tom@codesourcery.com>
10493         * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
10494         * calls.c (call_expr_flags): Same.
10496 2015-04-17  Tom de Vries  <tom@codesourcery.com>
10498         * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
10499         (pass_stdarg::execute): ... here.
10501 2015-04-17  Tom de Vries  <tom@codesourcery.com>
10502             Michael Matz  <matz@suse.de>
10504         * tree-cfg.c (make_blocks_1): Factor out of ...
10505         (make_blocks): ... here.
10506         (make_edges_bb): Factor out of ...
10507         (make_edges): ... here.
10508         (gimple_find_sub_bbs): New function.
10509         * tree-cfg.h (gimple_find_sub_bbs): Declare.
10511 2015-04-17  Tom de Vries  <tom@codesourcery.com>
10513         * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
10515 2015-04-17  Yury Gribov  <y.gribov@samsung.com>
10517         * asan.c (set_sanitized_sections): New function.
10518         (section_sanitized_p): Ditto.
10519         (asan_protect_global): Optionally sanitize user-defined
10520         sections.
10521         * asan.h (set_sanitized_sections): Declare new function.
10522         * common.opt (fsanitize-sections): New option.
10523         * doc/invoke.texi (-fsanitize-sections): Document new option.
10524         * opts-global.c (handle_common_deferred_options): Handle new
10525         option.
10527 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
10529         PR debug/65771
10530         * dwarf2out.c (loc_list_from_tree): Return NULL
10531         for DEBUG_EXPR_DECL.
10533 2015-04-17  Christian Bruel  <christian.bruel@st.com>
10535         * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
10536         same attributes.
10538 2015-04-16  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
10540         * ira-color.c (setup_left_conflict_sizes_p): Do not process
10541         node itself when computing left conflict subnode size.
10543 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
10545         * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
10546         * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
10547         *fop_<mode>_1_sse using enabled attribute.  Use
10548         register_mixssei387nonimm_operand operand 1 predicate. Change
10549         alternative 3 constraints from "x" to "v".
10551 2015-04-16  Richard Biener  <rguenther@suse.de>
10553         PR tree-optimization/65774
10554         * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
10555         bit-value tracking on.
10557 2015-04-16  Richard Biener  <rguenther@suse.de>
10559         PR tree-optimization/64277
10560         * tree-vrp.c (check_array_ref): Fix anti-range handling,
10561         simplify upper bound handling.
10562         (search_for_addr_array): Simplify.
10563         (check_array_bounds): Handle ADDR_EXPRs here.
10564         (check_all_array_refs): Simplify.
10566 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
10568         * config/i386/i386.c (print_reg): Rewrite function.
10570 2015-04-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10572         * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
10573         Invert the condition.
10575 2015-04-16  Renlin Li  <renlin.li@arm.com>
10577         * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
10578         simplifications for UNSIGNED_FLOAT.
10580 2015-04-16  Nick Clifton  <nickc@redhat.com>
10582         * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
10583         MUL_UNINIT.
10584         (enum rl78_cpu_type): New.
10585         * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
10586         (umulhi3_shift_virt): Remove m constraint from operand 1.
10587         (umulqihi3_virt): Likewise.
10588         * config/rl78/rl78.c (rl78_option_override): Add code to process
10589         -mcpu and -mmul options.
10590         (rl78_alloc_physical_registers): Add code to handle divhi and
10591         divsi valloc attributes.
10592         (set_origin): Likewise.
10593         * config/rl78/rl78.h (RL78_MUL_G14): Define.
10594         (TARGET_G10, TARGET_G13, TARGET_G14): Define.
10595         (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
10596         __RL78_Gxx__.
10597         (ASM_SPEC): Pass -mcpu on to assembler.
10598         * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
10599         (mulqi3_rl78): Likewise.
10600         (mulhi3_g13): Likewise.
10601         (mulhi3): Generate the G13 or G14 versions of the insn directly.
10602         (mulsi3): Likewise.
10603         (mulhi3_g14): Add clobbers of AX and BC.
10604         (mulsi3_g14): Likewise.
10605         (mulsi3_g13): Likewise.
10606         (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
10607         (udivmodsi4_g14, udivmodsi4_g13): New patterns.
10608         * config/rl78/rl78.opt (mmul): Initialise value to
10609         RL78_MUL_UNINIT.
10610         (mcpu): New option.
10611         (m13, m14, mrl78): New option aliases.
10612         * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
10613         (MULTILIB_DIRNAMES): Add g13 and g14.
10614         * doc/invoke.texi: Document -mcpu and -mmul options.
10616 2015-04-16  Richard Biener  <rguenther@suse.de>
10618         * tree-ssa-ccp.c (likely_value): See if we have operands that
10619         are marked as never simulate again and return CONSTANT in this
10620         case.
10621         * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
10622         not have any operands that will be simulated again as
10623         not being simulated again.
10625 2015-04-15  Uros Bizjak  <ubizjak@gmail.com>
10627         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
10628         Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
10629         (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
10630         attribute.
10631         (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
10632         enabled attribute.
10633         (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
10634         *float<SWI48:mode><MODEF:mode>2_sse.
10635         (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
10636         enabled attribute.
10637         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
10638         enabled attribute.
10640 2015-04-15  Tom de Vries  <tom@codesourcery.com>
10642         PR other/65487
10643         * function.c (push_dummy_function): New function.
10644         (init_dummy_function_start): Use push_dummy_function.
10645         (pop_dummy_function): New function.  Factored out of ...
10646         (expand_dummy_function_end): ... here.
10647         * function.h (push_dummy_function, pop_dummy_function): Declare.
10648         * passes.c (pass_manager::dump_passes): Use push_dummy_function and
10649         pop_dummy_function.
10650         * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
10652 2015-04-15  Jeff Law  <law@redhat.com>
10654         PR tree-optimization/47679
10655         * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
10656         need for forward declaration in upcoming changes.
10657         (record_conditions, record_edge_info): Likewise.
10659         PR rtl-optimization/42522
10660         * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
10661         SIGN_EXTRACT as a whole object rather than simplifying
10662         its operand.
10664 2015-04-15  Jakub Jelinek  <jakub@redhat.com>
10666         PR ipa/65765
10667         * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
10668         and GIMPLE_PREDICT use break instead of return true. For
10669         GIMPLE_EH_DISPATCH, compare dispatch region.
10671 2015-04-14  Matthew Wahab  <matthew.wahab@arm.com>
10673         * doc/extend.texi (__sync Builtins): Simplify some text.  Update
10674         details about the implementation.  Make clear preference for
10675         __atomic builtins.  Reduce possibility of future change.
10677 2015-04-15  Nick Clifton  <nickc@redhat.com>
10679         * config/rx/rx.opt (mallow-string-insns): New option.
10680         * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
10681         builtin if string instructions are denied.
10682         * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
10683         __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
10684         appropriate.
10685         (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
10686         * config/rx/rx.md (movstr): Enable pattern only if string
10687         instructions are allowed.
10688         (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
10689         (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
10690         * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
10691         (MULTILIB_DIRNAMES): Add no-strings.
10692         * doc/invoke.texi: Document -mno-allow-string-insns.
10694 2015-04-15  Alan Modra  <amodra@gmail.com>
10696         PR target/65408
10697         PR target/58744
10698         PR middle-end/36043
10699         * calls.c (load_register_parameters): Don't load past end of
10700         mem unless suitably aligned.
10702 2015-04-15  Nick Clifton  <nickc@redhat.com>
10704         * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
10705         decrement instruction as being frame related.
10706         (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
10707         based addresses.
10708         If zero extending a function address enclose the operation in
10709         %code(...).
10710         (rl78_preferred_reload_class): New function.
10711         (TARGET_PREFERRED_RELOAD_CLASS): Define.
10712         * config/rl78/rl78.md: Remove useless constraints in expanders.
10713         (mulqi3_rl78): Remove + qualifier on input-only operand 1.
10714         (mulhi3_rl78): Likewise.
10715         (mulhi3_g13): Likewise.
10716         (mulsi3_rl78): Likewise.
10717         (es_addr): Move to before the multiply patterns.
10719 2015-04-15  Alan Modra  <amodra@gmail.com>
10721         * function.h (struct emit_status): Delete x_first_insn, x_last_insn
10722         and sequence_stack.  Add seq.
10723         (seq_stack): Delete.
10724         * function.c (prepare_function_start): Don't access x_last_insn.
10725         * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
10726         (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
10727         * emit_rtl.c (start_sequence, push_topmost_sequence,
10728         pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
10729         sequence accessors.
10730         (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
10731         remove_insn): Likewise.  Simplify.
10732         * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
10733         and pop_topmost_sequence.
10734         (m32c_function_needs_enter): Use get_topmost_sequence.  Ignore
10735         debug insns.
10736         * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
10738 2015-04-14  Yvan Roux  <yvan.roux@linaro.org>
10740         PR target/65729
10741         * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
10742         the assertiion.
10744 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
10746         * config/i386/i386.h (LEGACY_INT_REG_P): New define.
10747         (LEGACY_INT_REGNO_P): Ditto.
10748         (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
10749         (ANY_MASK_REG_P): Remove.
10750         (BND_REG_P): Rename from ANY_BND_REG_P.
10751         * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
10752         legacy integer registers.  Do not handle MMX_REG_P in a special way.
10753         Merge 64byte and 32byte SSE handling.
10755 2015-04-14  Nick Clifton  <nickc@redhat.com>
10757         * expr.c (expand_assignment): Force an address offset computation
10758         into a register before changing its mode.
10759         (expand_expr_real_1): Likewise.
10761 2015-04-14  Alan Lawrence  <alan.lawrence@arm.com>
10763         * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
10764         vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
10765         vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
10766         vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
10767         vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
10768         vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
10769         vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
10770         and __aarch64_vget_lane_any.
10772 2015-04-14  Jakub Jelinek  <jakub@redhat.com>
10774         PR rtl-optimization/65761
10775         * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
10776         get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
10778 2015-04-14  Richard Biener  <rguenther@suse.de>
10780         * graphite-scop-detection.c: Do not include cp/cp-tree.h.
10781         (graphite_can_represent_scev): Use POINTER_TYPE_P.
10783 2015-04-14  Richard Biener  <rguenther@suse.de>
10785         PR tree-optimization/65758
10786         * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
10787         against -1.
10788         (ccp_lattice_meet): Likewise.
10789         (bit_value_unop): Likewise.
10790         (bit_value_binop): Likewise.
10791         (bit_value_assume_aligned): Likewise.
10793 2015-04-14  Christian Bruel  <christian.bruel@st.com>
10795         * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
10796         function.
10798 2015-04-14  Marc Glisse  <marc.glisse@inria.fr>
10800         PR tree-optimization/63387
10801         * match.pd ((x unord x) | (y unord y) -> (x unord y),
10802         (x unord x) | (x unord y) -> (x unord y)): New simplifications.
10804 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
10806         * config/i386/predicates.md (any_QIreg_operand): Rename from
10807         q_regs_operand.  Do not process subregs.
10808         (QIreg_operand): Use QI_REGNO_P predicate.
10809         (ext_QIreg_operand): Ditto.
10810         (ext_register_operand): Ditto.
10811         * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
10812         (AND splitters): Ditto.
10813         (AND with -65536 splitter): Add SWI48 mode for operand 0.
10814         (AND with -256 splitter): Use any_QIreg_operand predicate and
10815         SWI248 mode for operand 0.
10816         (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
10817         mode for operand 0.
10818         (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
10820 2015-04-13  Gerald Pfeifer  <gerald@pfeifer.com>
10822         * doc/plugins.texi: Rewrite first introductory paragraph.
10824 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
10826         * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
10827         (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
10829 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
10831         * ipa-profie.c (ipa_profile): Check number of parameters
10832         and possible polymorphic call targets before
10833         devirtualizing.
10835 2015-04-13  Uros Bizjak  <ubizjak@gmail.com>
10837         * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
10838         *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
10840 2015-04-13  Richard Biener  <rguenther@suse.de>
10842         PR tree-optimization/65204
10843         * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
10844         takens for bit-CCP.
10846 2015-04-13  Richard Biener  <rguenther@suse.de>
10848         PR target/65660
10849         * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
10850         and cond_not_taken_branch_cost to 4 and 2.
10851         (bdver2_cost): Likewise.
10852         (bdver3_cost): Likewise.
10853         (bdver4_cost): Likewise.
10855 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
10857         * hash-table.h (hash_table constructor): Add mem stats.
10858         (alloc_entries): Likewise.
10860 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
10862         * ipa-cp.c (ipcp_driver): Relase prev_edge.
10863         * passes.c (execute_one_pass): Only add transform if pass has one.
10865 2015-04-12  Joseph Myers  <joseph@codesourcery.com>
10867         * config/i386/i386.c (ix86_option_override_internal): Don't set
10868         -fprefetch-loop-arrays if optimizing for size.
10870 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
10871             Gerald Pfeifer  <gerald@pfeifer.com>
10873         * doc/contrib.texi (Contributors): Add Martin Jambor and
10874         Michael Matz.
10876 2015-04-12  Jakub Jelinek  <jakub@redhat.com>
10878         * BASE-VER: Set to 6.0.0.
10880         PR tree-optimization/65747
10881         * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
10882         rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
10884 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
10886         * doc/invoke.texi (-Wmemset-transposed-args): Break a long
10887         sentence.  Improve grammar.
10889 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
10891         * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
10893 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
10895         PR ipa/65743
10896         * ipa-inline-transform.c (speculation_removed): Remove static var.
10897         (check_speculations): New function.
10898         (clone_inlined_nodes): Do not check spculations.
10899         (inline_call): Call check_speculations.
10900         * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
10901         consider non-invariants.
10903 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
10904             Martin Liska  <mliska@suse.cz>
10906         PR ipa/65722
10907         * ipa-icf.c (sem_item::compare_cgraph_references): function and
10908         variable can not match.
10909         (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
10910         (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
10912 2015-04-11  Jakub Jelinek  <jakub@redhat.com>
10914         PR tree-optimization/65735
10915         * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
10916         Remove visited_phis argument, add visited_bbs, avoid recursing into the
10917         same bb rather than just into the same phi node.
10918         (thread_through_normal_block): Adjust caller.
10920 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
10922         * doc/contrib.texi (Contributors): Add Ira Rosen.
10924 2015-04-11  Benno Schulenberg  <bensberg@justemail.net>
10926         * gcov.c (find_source): Fix miswording in error message.
10927         * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
10928         (ix86_expand_sse_comi_round): Fix typo in error message.
10930 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
10932         * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
10934 2015-04-10  Gerald Pfeifer  <gerald@pfeifer.com>
10936         * doc/contrib.texi (Contributors): Update Joe Buck's entry.
10938 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
10940         PR target/65710
10941         * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
10942         Print bad_spills_num and insn_pseudos_num.
10944 2015-04-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10946         PR target/65694
10947         * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
10948         when creating +1 values for SImode.
10950 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
10952         PR target/65729
10953         * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
10954         assert.
10956 2015-04-10  Jakub Jelinek  <jakub@redhat.com>
10957             Iain Sandoe  <iain@codesourcery.com>
10959         PR target/65351
10960         * configure: Regenerate.
10962 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
10964         PR target/65671
10965         * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
10967 2015-04-09  Gerald Pfeifer  <gerald@pfeifer.com>
10969         * doc/contrib.texi (Contributors): Add John Marino.
10971 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
10973         PR tree-optimization/65709
10974         * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
10975         TREE_TYPE (TREE_TYPE (t)).
10977 2015-04-09  Vladimir Makarov  <vmakarov@redhat.com>
10979         PR target/65710
10980         * lra-int.h (lra_bad_spill_regno_start): New.
10981         * lra.c (lra_bad_spill_regno_start): New.
10982         (lra): Set up lra_bad_spill_regno_start.  Set up
10983         lra_constraint_new_regno_start unconditionally.
10984         * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
10985         spill preferences.
10987 2015-04-09  Marek Polacek  <polacek@redhat.com>
10988             Jakub Jelinek  <jakub@redhat.com>
10990         PR middle-end/65554
10991         * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
10992         (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
10993         of STRIP_NOPS.
10995 2015-04-09  Segher Boessenkool  <segher@kernel.crashing.org>
10997         PR rtl-optimization/65693
10998         * combine.c (is_parallel_of_n_reg_sets): Move outside of
10999         #ifndef HAVE_cc0.
11001 2015-04-09  Georg-Johann Lay  <avr@gjlay.de>
11003         PR target/65296
11004         * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
11005         device specs file if "device-specs%s" didn't resolve to a path.
11007 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
11009         PR target/65676
11010         * config/i386/i386.c (fixup_modeless_constant): New.
11011         (ix86_expand_args_builtin): Fixup modeless constant operand.
11012         (ix86_expand_round_builtin): Ditto.
11013         (ix86_expand_special_args_builtin): Ditto.
11014         (ix86_expand_builtin): Ditto.
11016 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
11018         PR target/65693
11019         * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
11020         any pow2 integer in between 2 and 0x80000000U inclusive.
11022 2015-04-08  Segher Boessenkool  <segher@kernel.crashing.org>
11024         PR rtl-optimization/65693
11025         * combine.c (is_parallel_of_n_reg_sets): Change first argument
11026         from an rtx_insn * to an rtx.
11027         (try_combine): Adjust both callers.  Use it once more.
11029 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
11031         * tree-chkp.c (chkp_find_const_bounds_var): Remove.
11032         (chkp_make_static_const_bounds): Search existing
11033         symbol by assembler name.  Use make_decl_one_only.
11034         (chkp_get_zero_bounds_var): Remove node search which
11035         is now performed in chkp_make_static_const_bounds.
11036         (chkp_get_none_bounds_var): Likewise.
11038 2015-04-08  Michael Witten  <mfwitten@gmail.com>
11040         * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
11041         to an example.
11043 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
11045         * tree.h (CONVERT_EXPR_P): Commentary typo fix.
11047 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
11049         * doc/extend.texi (__sync Builtins): Fix grammar.
11051 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
11053         * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
11055 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
11057         * varasm.c (emit_local): Move definition of align.
11059 2015-04-08  Julian Brown  <julian@codesourcery.com>
11061         * config/nvptx/mkoffload.c (process): Support variable mapping.
11063 2015-03-27  Trevor Saunders  <tbsaunde@tbsaunde.org>
11065         * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
11066         alpha_links **.
11067         (alpha_write_one_linkage): Correct typo.
11069 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
11071         * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
11073 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
11075         * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
11077 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
11079         * tree-chkp.h (chkp_insert_retbnd_call): New.
11080         * tree-chkp.c (chkp_insert_retbnd_call): New.
11081         * ipa-split.c (insert_bndret_call_after): Remove.
11082         (split_function): Use chkp_insert_retbnd_call.
11083         * cgraphunit.c (cgraph_node::expand_thunk): Build returned
11084         bounds for instrumented functions.
11086 2015-04-07  Jan Hubicka  <hubicka@ucw.cz>
11088         PR ipa/65540
11089         * calls.c (initialize_argument_information): When producing tail
11090         call also turn SSA_NAMES passed by references to original PARM_DECLs
11092 2015-04-07  Vladimir Makarov  <vmakarov@redhat.com>
11094         PR target/65648
11095         * lra-remat.c (do_remat): Process input and non-input insn
11096         registers separately.
11098 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
11100         PR debug/65678
11101         * valtrack.c (debug_lowpart_subreg): New function.
11102         (dead_debug_insert_temp): Use it.
11104         PR middle-end/65680
11105         * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
11106         into signed HOST_WIDE_INT the same as negative bit_offset.
11108 2015-04-07  Ilya Enkovich  <ilya.enkovich@intel.com>
11110         * ipa-comdats.c (ipa_comdats): Visit all thunks
11111         to set proper comdat group.
11113 2015-04-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11115         PR target/65489
11116         * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
11117         on constants for NEON VSTRUCT modes.
11119 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
11120             Iain Sandoe  <iain@codesourcery.com>
11122         PR target/65351
11123         * configure: Regenerate.
11125 2015-04-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
11127         PR target/65614
11128         * config/rs6000/rs6000.c (struct processor_costs): Add cost field
11129         for SF->DF conversions to make FLOAT_EXTEND more expensive, so
11130         that LFD is used to load double constants instead of LFS.  Add
11131         defaults for all costs structures.  Add comments for missing
11132         initialization fields.
11133         (size32_cost): Likewise.
11134         (size64_cost): Likewise.
11135         (rs64a_cost): Likewise.
11136         (mpccore_cost): Likewise.
11137         (ppc403_cost): Likewise.
11138         (ppc405_cost): Likewise.
11139         (ppc440_cost): Likewise.
11140         (ppc476_cost): Likewise.
11141         (ppc601_cost): Likewise.
11142         (ppc603_cost): Likewise.
11143         (ppc604_cost): Likewise.
11144         (ppc604e_cost): Likewise.
11145         (ppc620_cost): Likewise.
11146         (ppc630_cost): Likewise.
11147         (ppccell_cost): Likewise.
11148         (ppc750_cost): Likewise.
11149         (ppc7450_cost): Likewise.
11150         (ppc8540_cost): Likewise.
11151         (ppce300c2c3_cost): Likewise.
11152         (ppce500mc_cost): Likewise.
11153         (ppce500mc64_cost): Likewise.
11154         (ppce5500_cost): Likewise.
11155         (ppce6500_cost): Likewise.
11156         (titan_cost): Likewise.
11157         (power4_cost): Likewise.
11158         (power6_cost): Likewise.
11159         (power7_cost): Likewise.
11160         (power8_cost): Likewise.
11161         (ppca2_cost): Likewise.
11162         (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
11164         * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
11165         instead of XXLOR to copy SFmode to clear out dirty bits created
11166         when SFmode denormals are generated.
11167         (mov<mode>_hardfloat, FMOVE32 case): Likewise.
11168         (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
11170 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
11172         * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
11173         * config/aarch64/aarch64-cores.def (exynos-m1): New core.
11174         * config/aarch64/aarch64-tune.md: Regenerate.
11176 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
11178         * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
11179         * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
11180         * config/arm/arm-cores.def (exynos-m1): New core.
11181         * config/arm/arm-tune.md: Regenerate.
11182         * config/arm/arm-tables.opt: Add entry for "exynos-m1".
11183         * config/arm/bpabi.h: Likewise.
11185 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
11187         * ipa-cp (set_single_call_flag): Remove too
11188         restrictive assert.
11190 2015-04-06  Ilya Verbin  <ilya.verbin@intel.com>
11192         * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
11193         GOMP_offload_unregister from the destructor.
11195 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
11197         * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
11198         flags for instrumentation thunk.
11199         (chkp_produce_thunks): Likewise.
11201 2015-04-05  Martin Liska  <mliska@suse.cz>
11203         PR ipa/65665
11204         * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
11205         has computed data structure.
11206         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
11208 2015-04-04  Jan Hubicka  <hubicka@ucw.cz>
11210         * invoke.texi (inline-unit-growth): Increase growth to 20%
11211         * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
11213 2015-04-04  Vladimir Makarov  <vmakarov@redhat.com>
11215         PR target/65647
11216         * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New.  Add its
11217         value checking.
11218         (lra_rematerialization_iter): New.
11219         * lra.c (lra): Initialize lra_rematerialization_iter.
11220         Stop updating lra_constraint_new_regno_start after switching of
11221         inheritance and rematerialization.
11222         * lra-remat.c (lra_rematerialization_iter): New.
11223         (lra_remat): Add printing pass iteration.  Do rematerialization
11224         only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
11226 2015-04-04  Richard Biener  <rguenther@suse.de>
11228         PR tree-optimization/64909
11229         PR tree-optimization/65660
11230         * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
11231         to take a cost vector for scalar iteration cost.
11232         (vect_get_single_scalar_iteration_cost): Likewise.
11233         * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
11234         Compute the scalar iteration cost into a cost vector.
11235         (vect_get_known_peeling_cost): Use the scalar cost vector to
11236         account for the cost of the peeled iterations.
11237         (vect_estimate_min_profitable_iters): Likewise.
11238         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
11239         Likewise.
11241 2015-04-04  Alan Modra  <amodra@gmail.com>
11243         PR target/65576
11244         PR target/65240
11245         * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
11246         0.0 constant unless TARGET_VSX.
11247         * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
11248         alternative.
11250 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
11252         PR ipa/65654
11253         * ipa-inline-transform.c (inline_call): Skip sanity check to work
11254         around the ICE
11256 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
11258         PR ipa/65655
11259         * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
11260         speculative indirect edges to avoid ordering issue.
11262 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
11264         PR ipa/65076
11265         * ipa-inline.c (edge_badness): Add combined size to the denominator.
11267 2015-04-03  Jakub Jelinek  <jakub@redhat.com>
11269         * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
11270         TYPE_ARTIFICIAL on the .omp_data* types.
11272 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
11274         * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
11275         instrumentation thunks.
11277 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
11279         * config/i386/i386.c (ix86_expand_call): Avoid nested
11280         PARALLEL in returned call value.
11282 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
11284         * lto-cgraph.c (input_cgraph_1): Always link instrumented
11285         assembler name with original one.
11287 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
11289         * config/i386/i386.c (ix86_register_priority): Use AX_REG.
11291 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
11293         Revert parts of r216820.
11294         * config/i386/i386.md (movqi_internal): Correct type calculation
11295         for alternatives 3 and 5.
11297 2015-04-02  Jakub Jelinek  <jakub@redhat.com>
11299         PR preprocessor/61977
11300         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
11301         predefine __vector/__bool/__pixel macros nor context sensitive
11302         macros for CLK_ASM.
11303         * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
11305 2015-04-02  John David Anglin  <danglin@gcc.gnu.org>
11307         * config/pa/pa.c (pa_output_move_double): Directly handle register
11308         indexed memory operand.  Simplify handling of scaled register indexed
11309         memory operands.
11311 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
11313         PR driver/65444
11314         * config/i386/linux-common.h (MPX_SPEC): New.
11315         (CHKP_SPEC): Add MPX_SPEC.
11316         * doc/invoke.texi (-fcheck-pointer-boudns): Document
11317         possible issues with '-z bndplt' support in linker.
11319 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
11321         * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
11322         (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
11323         (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
11324         * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
11325         (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
11327 2015-04-01  Uros Bizjak  <ubizjak@gmail.com>
11329         * config/i386/sync.md (UNSPEC_MOVA): Remove.
11330         (atomic_load<mode>): Change operand 0 predicate to
11331         nonimmediate_operand and fix up the destination when needed.
11332         Use UNSPEC_LDA.
11333         (atomic_loaddi_fpu): Use UNSPEC_LDA.
11334         (atomic_store<mode>): Change operand 1 predicate to
11335         nonimmendate_operand and move the source to register when needed.
11336         Use UNSPEC_STA.
11337         (atomic_store<mode>_1): Use UNSPEC_STA.
11338         (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
11339         Fix moves from memory operand.  Use UNSPEC_STA.
11341 2015-04-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
11343         * expmed.c (strict_volatile_bitfield_p): Check that the access will
11344         not cross a MODESIZE boundary.
11345         (store_bit_field, extract_bit_field): Added assertions in the
11346         strict volatile bitfields code path.
11348 2015-04-01  Max Ostapenko  <m.ostapenko@partner.samsung.com>
11350         PR target/65624
11351         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
11352         Increase args array size by one to avoid buffer overflow.
11354 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
11356         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
11357         split_part.
11358         * ipa-inline.c (edge_badness): Add wrapper penalty.
11359         (sum_callers): Move up.
11360         (inline_small_functions): Set single_caller.
11361         * ipa-inline.h (inline_summary): Add single_caller.
11362         * ipa-split.c (split_function): Set split_part.
11363         (cgraph_node::create_clone): Do not shadow decl; copy split_part.
11364         * cgraph.h (cgraph_node): Add split_part.
11366 2015-03-31  Uros Bizjak  <ubizjak@gmail.com>
11368         PR target/58945
11369         * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
11370         Do not split operands 0 and operands 2 to halfmode.
11371         (atomic_compare_and_swap<mode>): Update for
11372         atomic_compare_and_swap<dwi>_doubleword changes.
11374 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
11376         * tree.c (need_assembler_name_p): Artificial types have no ODR names.
11377         * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
11378         no caching is done.
11380 2015-03-31  Martin Liska  <mliska@suse.cz>
11382         PR ipa/65557
11383         * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
11384         has already filled up function summary.
11385         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
11387 2015-03-31  Richard Biener  <rguenther@suse.de>
11389         * tree-sra.c (create_access_replacement): Drop under-/over-alignment
11390         of types.
11392 2015-03-31  Dominik Vogt  <vogt@linux.vnet.ibm.com>
11394         * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
11395         nested functions.
11396         (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
11397         (s390_asm_output_function_label): Adapt to new signature of
11398         s390_function_num_hotpatch_hw
11399         Optimise the code generating assembler output.
11400         Add comments to assembler file.
11402 2015-03-31  Richard Biener  <rguenther@suse.de>
11404         PR middle-end/65626
11405         * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
11406         of the noreturn call so it is last and cleanup_control_flow_bb
11407         can do the CFG part.
11409 2015-03-31  Ilya Enkovich  <ilya.enkovich@intel.com>
11411         PR target/65531
11412         * ipa-chkp.c (chkp_maybe_create_clone): Don't set
11413         same_comdat_group for external symbols.
11414         * symtab.c (symtab_node::verify_symtab_nodes): Avoid
11415         infinite same_comdat_group traversal loop.
11417 2015-03-31  Jakub Jelinek  <jakub@redhat.com>
11419         PR plugins/61176
11420         * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
11421         automatically to $headers.
11423 2015-03-30  Jakub Jelinek  <jakub@redhat.com>
11425         PR ipa/65610
11426         * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
11427         * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
11428         function.
11429         (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
11430         Use it.
11431         * ipa-prop.c (param_type_may_change_p): Likewise.
11432         * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
11433         (remove_unused_scope_block_p): Add in_ctor_dtor_block
11434         argument.  Before inlining, preserve
11435         inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
11436         with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them.  Adjust
11437         recursive calls.
11438         (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
11440 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
11442         PR ipa/65076
11443         * ipa-inline.c (edge_badness): Base denominator on callee's
11444         grwoth squared.
11446 2015-03-27  Martin Jambor  <mjambor@suse.cz>
11448         PR ipa/65478
11449         * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
11450         (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
11451         * ipa-prop.h (ipa_node_params): New flags node_within_scc and
11452         node_calling_single_call.
11453         * ipa-cp.c (count_callers): New function.
11454         (set_single_call_flag): Likewise.
11455         (initialize_node_lattices): Count callers and set single_flag_call if
11456         necessary.
11457         (incorporate_penalties): New function.
11458         (good_cloning_opportunity_p): Use it, dump new flags.
11459         (propagate_constants_topo): Set node_within_scc flag if appropriate.
11460         * doc/invoke.texi (ipa-cp-recursion-penalty,
11461         ipa-cp-single-call-pentalty): Document.
11463 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
11465         PR ipa/65588
11466         * symtab.c (symtab_node::get_partitioning_class): Register vars
11467         are duplicated.
11468         * varpool.c (symbol_table::output_variables) Do not assemble unefined
11469         decls for non-symbols.
11471 2015-03-27  H.J. Lu  <hongjiu.lu@intel.com>
11473         PR target/65248
11474         * output.h (default_binds_local_p_2): New.
11475         * varasm.c (default_binds_local_p_2): Renamed to ...
11476         (default_binds_local_p_3): This.  Don't return true on protected
11477         data symbol if protected data may be external.
11478         (default_binds_local_p): Use default_binds_local_p_3.
11479         (default_binds_local_p_1): Likewise.
11480         (default_binds_local_p_2): New.
11481         * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
11482         default_binds_local_p_2 if TARGET_MACHO is undefined.
11484 2015-03-27  Jakub Jelinek  <jakub@redhat.com>
11486         PR target/65593
11487         * config/i386/i386.c (legitimize_pic_address): If base
11488         is SYMBOL_REF or LABEL_REF using %rip addressing, force
11489         it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
11491 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
11493         PR target/65531
11494         * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
11495         comdat groups.
11497 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
11499         PR ipa/65600
11500         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
11501         of optimized out indirect call.
11502         (redirect_to_unreachable): Always build symbol table node for
11503         BUILT_IN_UNREACHABLE
11505 2015-03-27  Vladimir Makarov  <vmakarov@redhat.com>
11507         PR target/65407
11508         * ira-costs.c (record_reg_classes): Process all constraint string
11509         containing 0-9.
11511 2015-03-27  Bernd Schmidt  <bernds@codesourcery.com>
11513         * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
11514         memory_operand.
11516         PR target/65052
11517         * config/c6x/constraints.md (S3): New constraint.
11518         * config/c6x/c6x.md (real_jump): Use it.
11520 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
11522         PR middle-end/65595
11523         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
11524         do redirection if the call is not optimized out.
11526 2015-03-27  Ilya Enkovich  <ilya.enkovich@intel.com>
11528         PR target/65495
11529         * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
11530         (fchkp-check-incomplete-type): Add LTO.
11531         (fchkp-zero-input-bounds-for-main): Likewise.
11532         (fchkp-first-field-has-own-bounds): Likewise.
11533         (fchkp-narrow-bounds): Likewise.
11534         (fchkp-narrow-to-innermost-array): Likewise.
11535         (fchkp-use-static-bounds): Likewise.
11536         (fchkp-use-static-const-bounds): Likewise.
11537         (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
11539 2015-03-27  Marek Polacek  <polacek@redhat.com>
11541         * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
11543 2015-03-27  Marek Polacek  <polacek@redhat.com>
11545         PR sanitizer/65583
11546         * ubsan.c (ubsan_create_edge): New function.
11547         (instrument_bool_enum_load): Call it.
11548         (instrument_nonnull_arg): Likewise.
11549         (instrument_nonnull_return): Likewise.
11550         (instrument_object_size): Likewise.
11552 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
11554         * lto-streamer.h (class lto_location_cache): Turn loc_cache into
11555         auto_vec.
11557 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
11559         PR lto/65536
11560         * lto-streamer.h (class lto_location_cache): New.
11561         (struct data_in): Add location_cache.
11562         (lto_input_location): Update prototype.
11563         (stream_input_location_now): New.
11564         * streamer-hooks.h (struct streamer_hooks): Make input_location to take
11565         pointer to location.
11566         (stream_input_location): Update.
11567         * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
11568         (warn_odr): Apply location cache before warning.
11569         (lto_input_location): Update prototype.
11570         * gimple-streamer-in.c (input_phi, input_gimple_stmt):
11571         Use stream_input_location_now.
11572         * lto-streamer-in.c (lto_location_cache::current_cache): New static
11573         variable.
11574         (lto_location_cache::cmp_loc): New function.
11575         (lto_location_cache::apply_location_cache): New function.
11576         (lto_location_cache::accept_location_cache): New function.
11577         (lto_location_cache::revert_location_cache): New function.
11578         (lto_location_cache::input_location): New function.
11579         (lto_input_location): Do location caching.
11580         (stream_input_location_now): New function.
11581         (input_eh_region, input_struct_function_base): Use
11582         stream_input_location_now.
11583         (lto_data_in_create): use new.
11584         (lto_data_in_delete): Use delete.
11585         * tree-streamer-in.c (unpack_ts_block_value_fields,
11586         unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
11587         lto_input_ts_exp_tree_pointers): Update for cached location api.
11589 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
11591         PR ipa/65076
11592         * passes.def: Add pass_nothrow.
11593         * ipa-pure-const.c: (pass_data_nothrow): New.
11594         (pass_nothrow): New.
11595         (pass_nothrow::execute): New.
11596         (make_pass_nothrow): New.
11597         * tree-pass.h (make_pass_nothrow): Declare.
11599 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
11601         * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
11602         edge to change by speculation resolution or redirection.
11603         (edge_set_predicate): Likewise.
11604         (inline_summary_t::duplicate): Likewise.
11605         (remap_edge_summaries): Likewise.
11607 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
11609         * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
11610         New macros.
11611         (can_inline_edge_p): Relax option matching for always inline functions.
11613 2015-03-26  Uros Bizjak  <ubizjak@gmail.com>
11615         PR target/65561
11616         * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
11617         Check operand 4 and operand 0 for equality.
11618         (avx512f_vextract<shuffletype>32x4_1_maskm):
11619         Check operand 6 and operand 0 for equality.
11620         (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
11621         for equality.
11622         (vec_extract_hi_<mode>_maskm): Ditto.
11624 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
11626         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
11627         dead calls back to live.
11628         (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
11629         cross check to ...
11630         (cgraph_node::verify_node): ... here; verify only callee edges,
11631         not caller.
11632         * cif-code.def (CILK_SPAWN): New code.
11634 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
11636         * ipa-inline-analysis.c (redirect_to_unreachable): New function.
11637         (edge_set_predicate): Use it to mark unreachable edges.
11638         (inline_summary_t::duplicate): Remove unnecesary code.
11639         (remap_edge_summaries): Likewise.
11640         (dump_inline_summary): Report contains_cilk_spawn.
11641         (compute_inline_parameters): Compute contains_cilk_spawn.
11642         (inline_read_section, inline_write_summary): Stream
11643         contains_cilk_spawn.
11644         * ipa-inline.c (can_inline_edge_p): Do not touch
11645         DECL_STRUCT_FUNCTION that may not be available;
11646         use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
11647         remove check for callee_fun->can_throw_non_call_exceptions and
11648         replace it by optimization attribute check; check for flag_exceptions.
11649         * ipa-inline-transform.c (inline_call): Maintain
11650         DECL_FUNCTION_PERSONALITY
11651         * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
11653 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
11655         PR tree-optimization/65551
11656         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
11657         TYPE_PRECISION only for INTEGRAL_TYPE_P types.
11659 2015-03-26  Richard Biener  <rguenther@suse.de>
11661         PR middle-end/65555
11662         * tree-cfg.c (verify_gimple_call): Do not require a call to
11663         have no LHS if it wasn't recognized as control altering yet.
11665 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
11667         PR tree-optimization/64715
11668         * passes.def: Add another instance of pass_object_sizes before ccp1.
11669         * tree-object-size.c (pass_object_sizes::execute): In
11670         first_pass_instance, only handle __bos (, 1) and __bos (, 3)
11671         calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
11672         __bos result and the computed constant.  Remove redundant
11673         checks, obsoleted by gimple_call_builtin_p test.
11675         * var-tracking.c (variable_tracking_main_1): Don't track
11676         variables for targetm.no_register_allocation targets.
11678 2015-03-26  Oleg Endo  <olegendo@gcc.gnu.org>
11680         * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
11681         * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
11683 2015-03-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
11685         PR target/65569
11686         * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
11687         XXLXOR to create 0.0.  On pre-VSX systems make sure the constant
11688         0.0 is correctly setup.
11689         (extenddftf2_internal): Likewise.
11691 2015-03-25  Sebastian Pop  <s.pop@samsung.com>
11693         PR tree-optimization/65177
11694         * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
11695         (bb_in_bbs): New.
11696         (duplicate_seme_region): Renamed duplicate_thread_path.  Redirect all
11697         edges not adjacent on the path to the original code.
11699 2015-03-25  Uros Bizjak  <ubizjak@gmail.com>
11701         PR bootstrap/65537
11702         * doc/install.texi (Building a native compiler): Document new
11703         bootstrap-lto-noplugin configuration.  Mention that bootstrap-lto
11704         configuration assumes that the host supports the linker plugin.
11706 2015-03-25  Ilya Enkovich  <ilya.enkovich@intel.com>
11708         PR target/65508
11709         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
11710         chain for generated call.
11712 2015-03-25  Richard Biener  <rguenther@suse.de>
11714         * passes.c (pass_manager::execute_early_local_passes): Guard
11715         execution of pass_chkp_instrumentation_passes with
11716         flag_check_pointer_bounds.
11717         (pass_chkp_instrumentation_passes::gate): Likewise.
11719 2015-03-25  Martin Liska  <mliska@suse.cz>
11721         PR tree-optimization/65538
11722         * symbol-summary.h (function_summary::~function_summary):
11723         Relese memory for allocated summaries.
11724         (function_summary::release): New function.
11726 2015-03-25  Jakub Jelinek  <jakub@redhat.com>
11728         PR lto/65515
11729         * lto-streamer-out.c (DFS::worklist): New struct.
11730         (DFS::worklist_vec): New data member.
11731         (DFS::next_dfs_num): Remove.
11732         (DFS::DFS): Rewritten using worklist instead of recursion,
11733         using most of code from DFS::DFS_write_tree.
11734         (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
11735         pass it to DFS_write_tree calls.
11736         (DFS::DFS_write_tree): Remove SINGLE_P argument, after
11737         quick initial checks push it into worklist_vec and return.
11739 2015-03-25  Richard Biener  <rguenther@suse.de>
11741         PR middle-end/65519
11742         * genmatch.c (expr::gen_transform): Re-write to avoid
11743         using gimple_build.
11745 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
11747         * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
11749 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
11751         * config/arm/arm.opt (print_tune_info): New option.
11752         * config/arm/arm.c (arm_print_tune_info): New function.
11753         (arm_file_start): Call arm_print_tune_info.
11754         * config/arm/arm-protos.h (struct tune_params): Add comment.
11755         * doc/invoke.texi (@item -mprint-tune-info): New item.
11756         (-mtune): mention it in ARM Option Summary.
11758 2015-03-25  DJ Delorie  <dj@redhat.com>
11760         * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
11761         correct clause.
11763 2015-03-24  Jan Hubicka  <hubicka@ucw.cz>
11764             Martin Liska  <mliska@suse.cz>
11766         * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
11767         * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
11768         (sem_item::add_type): New function.
11769         (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
11770         (sem_function::compare_polymorphic_p): Do not consider indirect calls.
11771         (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
11772         (sem_function::equals_wpa): Fix typo.
11773         * ipa-icf.h (sem_item::add_type): New function.
11774         (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
11775         order.
11777 2015-03-24  Jakub Jelinek  <jakub@redhat.com>
11779         PR tree-optimization/65533
11780         * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
11781         with swapped operands, call vect_free_slp_tree on
11782         SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
11783         vector.
11785 2015-03-24  Richard Biener  <rguenther@suse.de>
11787         PR middle-end/65517
11788         * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
11789         for fixup if necessary.
11791 2015-03-23  Sandra Loosemore  <sandra@codesourcery.com>
11793         * doc/extend.texi (Function Attributes): Add @cindex entries
11794         for all attributes and regularize their format.  Delete text
11795         about long-obsolete 68HC11 and 68HC12 targets.  Move misplaced
11796         information about "eightbit_data", "tiny_data", and "model"
11797         variable attributes to the Variable Attributes section.  Fix
11798         some obvious typos and copy-editing issues.
11799         (Variable Attributes, Type Attributes): Likewise add/fix
11800         @cindex entries for all attributes.
11802 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
11804         PR target/65523
11805         * tree-chkp.c (chkp_build_returned_bound): Ignore
11806         ERF_RETURNS_ARG calls if they have fewer than needed arguments.
11808 2015-03-23  Oleg Endo  <olegendo@gcc.gnu.org>
11810         PR target/65505
11811         * config/sh/predicates.md (simple_mem_operand,
11812         displacement_mem_operand): Add test for reg.
11813         (short_displacement_mem_operand): Test for displacement_mem_operand
11814         before invoking sh_disp_addr_displacement.
11815         * config/sh/constraints.md (Sdd, Sra): Simplify.
11816         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
11817         Remove redundant displacement_mem_operand tests.
11819 2015-03-23  Georg-Johann Lay  <avr@gjlay.de>
11821         PR target/65296
11822         * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
11823         the same -mmcu=MCU more than once.
11825 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
11827         PR bootstrap/65522
11828         * ipa-devirt.c: Remove duplicate demangle.h include.
11830         PR target/65504
11831         * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
11832         on the pseudo.
11833         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
11834         REG_POINTER on *destptr after adjusting it for prologue size.
11836         PR ipa/65521
11837         * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
11838         ultimate_alias_target ()->order ints instead of
11839         ultimate_alias_target () pointers.
11841 2015-03-23  Richard Biener  <rguenther@suse.de>
11843         PR tree-optimization/65518
11844         * tree-vect-stmts.c (vectorizable_load): Reject single-element
11845         interleaving cases we generate absymal code for.
11847 2015-03-23  Richard Biener  <rguenther@suse.de>
11849         PR tree-optimization/65494
11850         * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
11851         matches here.
11852         (vect_analyze_slp_instance): But do that here, always and once.
11854 2015-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11856         * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
11857         adding T or multiplying by T+1 and subracting T.
11859 2015-03-22  Jeff Law  <law@redhat.com>
11861         PR rtl-optimization/64317
11862         * Makefile.in (OBJS): Add gcse-common.c
11863         * gcse.c: Include gcse-common.h
11864         (struct modify_pair_s): Move structure definition to gcse-common.h
11865         (compute_transp): Move function to gcse-common.c.
11866         (canon_list_insert): Similarly.
11867         (record_last_mem_set_info): Break out some code and put it into
11868         gcse-common.c.  Call into the new common code.
11869         (compute_local_properties): Pass additional arguments to compute_transp.
11870         * postreload-gcse.c: Include gcse-common.h and df.h
11871         (modify_mem_list_set, blocks_with_calls): New variables.
11872         (modify_mem_list, canon_modify_mem_list, transp): Likewise.
11873         (get_bb_avail_insn): Pass in the expression index too.
11874         (alloc_mem): Allocate memory for the new bitmaps and lists.
11875         (free_mem): Free memory for the new bitmaps and lists.
11876         (insert_expr_in_table): Record a bitmap index for each entry we
11877         add to the table.
11878         (record_last_mem_set_info): Call into common code in gcse-common.c.
11879         (get_bb_avail_insn): If no available insn was found in the requested
11880         BB.  If BB has a single predecessor, see if the expression is
11881         transparent in BB and available in that single predecessor.
11882         (compute_expr_transp): New wrapper for compute_transp.
11883         (eliminate_partially_redundant_load): Pass expression's bitmap_index
11884         to get_bb_avail_insn.  Compute next_pred_bb_end a bit later.
11885         (gcse_after_reload_main): If there are elements in the hash table,
11886         then compute transparency for all the elements in the hash table.
11887         * gcse-common.h: New file.
11888         * gcse-common.c: New file.
11890 2015-03-22  Sandra Loosemore  <sandra@codesourcery.com>
11892         * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
11893         as an adjective.
11894         (System Headers): Likewise.
11895         (Ifdef): Likewise.
11896         (Traditional macros): Likewise.
11897         (Invocation): Likewise.
11898         (Option Index): Likewise.
11899         * doc/cppopts.texi (-M): Likewise.
11900         (-finput-charset): Likewise.
11901         (--help): Likewise.
11902         * doc.invoke.texi (AVR Options): Likewise.
11903         (V850 Options): Likewise.
11905 2015-03-22  Jan Hubicka  <hubicka@ucw.cz>
11907         PR ipa/65475
11908         * ipa-devirt.c: Include demangle.h
11909         (odr_type_d): Add field rtti_broken.
11910         (odr_subtypes_equivalent_p): Do not require name to match.
11911         (compare_virtual_tables): Fix typo; if type already has ODR violation,
11912         bypass the tests; be ready for function referneces in vtables that are
11913         not DECL_VIRTUAL; make warnings to be OPT_Wodr.
11914         (warn_odr): Give up for nameless types.
11915         (warn_types_mismatch): Report mismatch in mangled names;
11916         report mismatch in anonymous namespaces; look into component types to
11917         give useful error; report when mismatch is dragged in from other ODR
11918         type.
11919         (odr_types_equivalent_p): Match types for being polymorphic; avoid
11920         duplicated diagnostics.
11921         (add_type_duplicate): Reorder checks so more informative ones come
11922         first; fix typo; do not output "the extra base is defined here" when
11923         we did not warn.
11924         (BINFO_N_BASE_BINFOS): Relax sanity check.
11926 2015-03-22  Martin Liska  <mliska@suse.cz>
11927             Jakub Jelinek  <jakub@redhat.com>
11929         * config/i386/i386.c (def_builtin): Set deferred_isa_values for
11930         masks that can potentially include a builtin.
11931         (ix86_add_new_builtins): Introduce fast filter for isa values
11932         that cannot trigger builtin inclusion.
11934 2015-03-22  Martin Liska  <mliska@suse.cz>
11936         * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
11937         (sem_item::update_hash_by_local_refs): Likewise.
11938         (sem_variable::get_hash): Empty line is fixed.
11939         (sem_item_optimizer::execute): Include adding of hash references.
11940         (sem_item_optimizer::update_hash_by_addr_refs): New function.
11941         (sem_item_optimizer::build_hash_based_classes): Use local hash.
11942         * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
11943         (sem_item::update_hash_by_local_refs): Likewise.
11945 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
11947         PR ipa/65502
11948         * ipa-comdats.c (enqueue_references): Walk through thunks.
11949         (ipa_comdats): Likewise.
11950         (set_comdat_group_1): New function.
11952 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
11954         PR ipa/65475
11955         * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
11956         non-polymorphic
11958 2015-03-22  Dave Korn  <dave.korn.cygwin@gmail.com>
11959             Gerald Pfeifer  <gerald@pfeifer.com>
11961         * doc/contrib.texi (Contributors): Update entry for Danny Smith.
11963 2015-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
11964             Sandra Loosemore  <sandra@codesourcery.com>
11966         * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
11967         function parameter declaration.
11968         * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
11969         Update arguments to nios2_adjust_call_address().
11970         (sibcall_internal): Rename from *sibcall.
11971         (sibcall_value_internal): Rename from *sibcall_value.
11972         * config/nios2/nios2.c (nios2_emit_add_constant): New function.
11973         (nios2_large_got_address): Add target temp reg parameter.
11974         (nios2_got_address): Adjust call to nios2_large_got_address, add
11975         force_reg around it.
11976         (nios2_load_pic_address): Add target temp reg parameter, replace call
11977         to nios2_got_address with corresponding code.
11978         (nios2_legitimize_constant_address): Update call to
11979         nios2_load_pic_address.
11980         (nios2_adjust_call_address): Add temp reg parameter, update PIC case
11981         to use temp reg for PIC loading purposes.
11982         (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
11983         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
11984         (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
11986 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
11988         * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
11989         usage of "the @option{...}".
11990         (-Wopenmp-simd): Likewise.
11991         (-fsanitize-recover): Likewise.
11992         (-fsanitize-undefined-trap-on-error): Likewise.
11993         (-flto): Likewise.
11994         (tracer-dynamic-coverage-feedback): Likewise.
11995         (reorder-block-duplicate-feedback): Likewise.
11996         (loop-unroll-jam-size): Likewise.
11997         (-B): Likewise.
11998         (-I-): Likewise.
11999         (-mabs=legacy): Likewise.
12000         (-mupper-regs-df): Likewise.
12001         (-mupper-regs-sf): Likewise.
12002         (-mpointers-to-nested-functions): Likewise.
12004 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
12006         * doc/extend.texi (Cilk Plus Builtins): Add markup.
12008 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
12010         * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
12011         additional index entries and cross-references.
12012         (-fchkp-check-incomplete-type): Likewise.
12013         (-fchkp-first-field-has-own-bounds): Likewise.
12014         (-fchkp-narrow-to-innermost-array): Likewise.
12015         (-fchkp-use-fast-string-functions): Likewise.
12016         (-fchkp-use-nochk-string-functions): Likewise.
12017         (-fchkp-use-static-const-bounds): Likewise.
12018         (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
12019         (-fchkp-instrument-marked-only): Likewise.
12020         (-fchkp-use-wrappers): Likewise.
12021         (-static-libmpx): Likewise.
12022         (-static-libmpxwrappers): Likewise.
12023         * doc/extend.texi (bnd_legacy): Likewise.
12024         (bnd_instrument): Likewise.
12025         (bnd_variable_size): Likewise.
12026         (Pointer Bounds Checker builtins): Likewise.
12028 2015-03-21  Tom de Vries  <tom@codesourcery.com>
12030         PR tree-optimization/65458
12031         * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
12032         * cgraph.h (cgraph_node): Add parallelized_function field.
12033         * lto-cgraph.c (lto_output_node): Write parallelized_function field.
12034         (input_overwrite_node): Read parallelized_function field.
12035         * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
12036         parallelized_function on cgraph_node for child_fn.
12037         * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
12038         Remove include of gt-tree-parloops.h.
12039         (parallelized_functions): Remove static variable.
12040         (parallelized_function_p): Rewrite using parallelized_function field of
12041         cgraph_node.
12042         (create_loop_fn): Remove adding to parallelized_functions.
12043         * Makefile.in (GTFILES): Remove tree-parloops.c
12045 2015-03-20  Vladimir Makarov  <vmakarov@redhat.com>
12047         PR rtl-optimization/64366
12048         * lra.c (lra_update_insn_regno_info): Consider regs in
12049         CALL_INSN_FUNCTION_USAGE memory.
12051 2015-03-20  Richard Biener  <rguenther@suse.de>
12053         PR middle-end/64715
12054         * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
12055         for type comparison and gcc_checking_assert.
12056         (chrec_fold_plus_poly_poly): Likewise.
12057         (chrec_fold_multiply_poly_poly): Likewise.
12058         (chrec_convert_1): Likewise.
12059         * gimplify.c (gimplify_expr): Remove premature folding of
12060         &X + CST to &MEM[&X, CST].
12062 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
12064         * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
12065         already is final.
12066         (ipa_inline): Recompute inline_failed codes.
12067         * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
12068         USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
12069         CIF_FINAL_ERROR.
12071 2015-03-20  Uros Bizjak  <ubizjak@gmail.com>
12073         PR rtl-optimization/60851
12074         * recog.c (constrain_operands): Accept a pseudo register before reload
12075         for LRA enabled targets.
12077 2015-03-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
12079         PR target/65240
12080         * config/rs6000/predicates.md (easy_fp_constant): Remove special
12081         -ffast-math handling that kept non-0 constants live in the RTL
12082         until reload.  Remove logic testing the number of instructions it
12083         took to create a constant in a GPR that was never used, due to a
12084         test for soft-float earlier.
12085         (memory_fp_constant): Delete, no longer used.
12087         * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
12088         alternatives for loading non-0 constants into GPRs for hard
12089         floating point that is no longer needed due to changes in
12090         easy_fp_constant.  Add support for loading 0.0 into GPRs.
12091         (mov<mode>_hardfloat32): Likewise.
12092         (mov<mode>_hardfloat64): Likewise.
12093         (mov<mode>_64bit_dm): Likewise.
12094         (movtd_64bit_nodm): Likewise.
12095         (pre-reload move FP constant define_split): Delete define_split,
12096         since it is no longer used.
12097         (extenddftf2_internal): Remove GHF constraints that are not valid
12098         for extenddftf2.
12100 2015-03-19  Vladimir Makarov  <vmakarov@redhat.com>
12102         PR rtl-optimization/63491
12103         * lra-constraints.c (check_and_process_move): Use src instead of
12104         sreg.  Remove some dead code.
12106 2015-03-19  Jan Hubicka  <hubicka@ucw.cz>
12108         PR ipa/65380
12109         * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
12110         (sem_variable::merge): Likewise.
12112 2015-03-19  Martin Liska  <mliska@suse.cz>
12114         PR ipa/65465
12115         * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
12116         all fields of cgraph_thunk_info.
12118 2015-03-19  Ilya Enkovich  <ilya.enkovich@intel.com>
12120         * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
12121         clone instrumented thunks.
12123 2015-03-19  Richard Biener  <rguenther@suse.de>
12125         Revert
12126         2015-03-10  Richard Biener  <rguenther@suse.de>
12128         PR middle-end/63155
12129         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
12130         * tree-ssa-coalesce.c: Include timevar.h.
12131         (attempt_coalesce): Handle graph being NULL.
12132         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
12133         Split out abnormal coalescing to ...
12134         (perform_abnormal_coalescing): ... this function.
12135         (coalesce_ssa_name): Perform abnormal coalescing without computing
12136         live/conflict.
12137         (verify_ssa_coalescing_worker): New function.
12138         (verify_ssa_coalescing): Likewise.
12140 2015-03-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
12141             Jakub Jelinek  <jakub@redhat.com>
12143         PR sanitizer/65400
12144         * tsan.c (instrument_gimple): Clear tail call flag on
12145         calls.
12147 2015-03-19  Jakub Jelinek  <jakub@redhat.com>
12149         PR sanitizer/65400
12150         * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
12151         call in the return bb.
12152         (find_split_points): Add RETURN_BB argument, don't call
12153         find_return_bb.
12154         (split_function): Likewise.  Add ADD_TSAN_FUNC_EXIT argument,
12155         if true append TSAN_FUNC_EXIT internal call after the call to
12156         the split off function.
12157         (execute_split_functions): Call find_return_bb here.
12158         Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
12159         Adjust find_split_points and split_function calls.
12161 2015-03-18  DJ Delorie  <dj@redhat.com>
12163         * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
12164         (iorqi3_virt): Likewise.
12166 2015-03-18  Tom de Vries  <tom@codesourcery.com>
12168         * tree-parloops.c (parallelize_loops): Make static.
12169         * tree-parloops.h (parallelize_loops): Remove extern declaration.
12171 2015-03-18  Andrew Stubbs  <ams@codesourcery.com>
12173         PR middle-end/64491
12174         Revert:
12175         2014-11-20  Andrew Stubbs  <ams@codesourcery.com>
12177         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
12178         condition would be removed due to undefined behaviour.
12180 2015-03-18  Martin Liska  <mliska@suse.cz>
12182         PR ipa/65432
12183         * cgraph.c (cgraph_node::get_create): Remove unnecessary
12184         xstrdup_for_dump wrapper.
12185         * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
12186         sem_item::name.
12187         (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
12188         with xstrdup_for_dump.
12189         (sem_variable::equals): Likewise.
12190         (sem_item_optimizer::read_section): Use symtab_node::name instead of
12191         sem_item::name.
12192         (sem_item_optimizer::parse_funcs_and_vars): Likewise.
12193         (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
12194         symtab_node::asm_name with xstrdup_for_dump.
12195         (congruence_class::dump): Use symtab_node::name instead of
12196         sem_item::name.
12197         * ipa-icf.h (symtab_node::name): Remove.
12198         (symtab_node::asm_name): Likewise.
12200 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
12202         PR tree-optimization/65450
12203         * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
12204         function.
12205         (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
12206         it instead of duplicate_ssa_name_ptr_info.
12208         PR target/65222
12209         * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
12211 2015-03-18  Richard Biener  <rguenther@suse.de>
12213         * tree-data-ref.h (struct access_matrix): Remove.
12214         (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
12215         AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
12216         AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
12217         (am_vector_index_for_loop): Likewise.
12218         (struct data_reference): Remove access_matrix member.
12219         (DR_ACCESS_MATRIX): Remove.
12220         (lambda_vector_new): Add comment.
12221         (lambda_matrix_new): Use XOBNEWVEC.
12223 2015-03-18  Richard Biener  <rguenther@suse.de>
12225         * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
12226         (pass_ch::execute): Cleanup the CFG only if we did sth.
12227         * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
12229 2015-03-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12231         * expmed.c (synth_mult): Use std::swap instead of manually
12232         swapping algorithms.
12234 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
12236         PR target/65078
12237         * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
12239 2015-03-16  Georg-Johann Lay  <avr@gjlay.de>
12241         PR target/65296
12242         * config/avr/avr.opt (-nodevicelib): New option.
12243         * doc/invoke.texi (AVR Options): Document it.
12244         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
12245         libgcc.a, libc.a, libm.a.
12246         * config/avr/specs.h: Same.
12247         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
12248         which don't (directly) depend on the device.  Print more help.
12249         (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
12250         (*cpp): Don't define __AVR_DEV_LIB_NAME__.
12251         * config/avr/driver-avr.c: Remove -nodevicelib from option list in
12252         case of an error.
12253         (avr_devicespecs_file): Use suffix "%s" instead of absolute path
12254         for specs file name.
12255         * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
12256         * config/avr/avr-mcus.def: Adjust initializers and comments.
12258 2015-03-16  Jan Hubicka  <hubicka@ucw.cz>
12260         * tree-sra.c (ipa_sra_preliminary_function_checks): Use
12261         DECL_ONE_ONLY to check if decl is one only.
12262         * ipa-split.c (consider_split): Limit splitt of one only functions.
12264 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
12266         PR tree-optimization/65427
12267         * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
12268         functions.
12269         (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
12271 2015-03-16  Marek Polacek  <polacek@redhat.com>
12273         * cgraph.h (add_new_static_var): Remove declaration.
12274         * varpool.c (add_new_static_var): Remove function.
12276 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
12278         * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
12279         instead of vec<tree> * with vec_alloc and release for args.
12280         Adjust all users.
12282         PR middle-end/65431
12283         * omp-low.c (delete_omp_context): Only splay_tree_delete
12284         reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
12285         is_gimple_omp_oacc contexts.  Don't look at ctx->outer.
12287 2015-03-16  Max Ostapenko  <m.ostapenko@partner.samsung.com>
12289         PR sanitizer/64820
12290         * cfgexpand.c (align_base): New function.
12291         (alloc_stack_frame_space): Call it.
12292         (expand_stack_vars): Align prev_frame to be sure
12293         data->asan_vec elements aligned properly.
12295 2015-03-16  Eric Botcazou  <ebotcazou@adacore.com>
12297         PR middle-end/65409
12298         * expr.c (store_field): Do not do a direct block copy if the source is
12299         a PARALLEL with BLKmode.
12301 2015-03-16  Tom de Vries  <tom@codesourcery.com>
12303         PR middle-end/65414
12304         Revert:
12305         2015-03-12  Tom de Vries  <tom@codesourcery.com>
12307         PR rtl-optimization/64895
12308         * lra-lives.c (check_pseudos_live_through_calls): Use
12309         actual_call_used_reg_set instead of call_used_reg_set, if available.
12311 2015-03-16  Alan Modra  <amodra@gmail.com>
12313         PR target/63150
12314         * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
12315         Modify Z->r bswapdi splitter to use dest in place of scratch.
12316         In r->Z and Z->r bswapdi splitter rename word_high, word_low
12317         to word1, word2 and rearrange logic to suit.
12318         (bswapdi2_64bit): Remove early clobber on Z->r alternative.
12319         (bswapdi2_ldbrx): Likewise.  Remove '??' on r->r.
12320         (bswapdi2_32bit): Remove early clobber on Z->r alternative.
12321         Add one '?' on r->r.  Modify Z->r splitter to avoid need for
12322         early clobber.
12324 2015-03-14  Jakub Jelinek  <jakub@redhat.com>
12326         PR tree-optimization/65369
12327         * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
12328         Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
12329         (vs - 1) * TYPE_SIZE_UNIT (elem_type).
12331         PR tree-optimization/65418
12332         * tree-ssa-reassoc.c (extract_bit_test_mask): If there
12333         are casts in the first PLUS_EXPR operand, ensure tbias and
12334         *totallowp are in the inner type.
12336         PR rtl-optimization/65401
12337         * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
12338         argument.  If true, adjust_address_nv of x with big-endian
12339         correction for the mode widening to GET_MODE (y).
12340         (make_field_assignment): Don't do MEM mode widening here.
12341         Use MEM_P instead of GET_CODE == MEM.
12343 2015-03-13  Ilya Verbin  <ilya.verbin@intel.com>
12345         * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
12346         the external decls.
12348 2015-03-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12350         PR target/64600
12351         * config/arm/arm.c (arm_gen_constant, AND case): Use
12352         ARM_SIGN_EXTEND when constructing AND mask.
12354 2015-03-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
12356         * graph.c (print_graph_cfg): Make function names visible and append
12357         parenthesis to it.  Also make groups of basic blocks belonging to the
12358         same function visible.
12360 2015-03-12  Richard Biener  <rguenther@suse.de>
12362         PR middle-end/44563
12363         * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
12364         to avoid quadratic behavior with inline expansion splitting blocks.
12365         * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
12366         with the successor if the predecessor will be merged with it.
12367         * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
12368         entry block with its successor.
12370 2015-03-13  Richard Biener  <rguenther@suse.de>
12372         PR middle-end/44563
12373         * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
12374         (cleanup_tree_cfg_1): Do not call it.
12375         (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
12376         (fixup_noreturn_call): Mark the stmt as control altering.
12377         * tree-cfg.c (execute_fixup_cfg): Do not dump the function
12378         here.
12379         (pass_data_fixup_cfg): Produce a dump file.
12380         * tree-ssa-dom.c: Include tree-cfgcleanup.h.
12381         (need_noreturn_fixup): New global.
12382         (pass_dominator::execute): Fixup queued noreturn calls.
12383         (optimize_stmt): Queue calls that became noreturn for fixup.
12384         * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
12385         * tree-ssa-pre.c: Include tree-cfgcleanup.h.
12386         (el_to_fixup): New global.
12387         (eliminate_dom_walker::before_dom_childre): Queue calls that
12388         became noreturn for fixup.
12389         (eliminate): Fixup queued noreturn calls.
12390         * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
12391         (substitute_and_fold_dom_walker): New member stmts_to_fixup.
12392         (substitute_and_fold_dom_walker::before_dom_children): Queue
12393         alls that became noreturn for fixup.
12394         (substitute_and_fold): Fixup queued noreturn calls.
12396 2015-03-12  Jan Hubicka  <hubicka@ucw.cz>
12398         * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
12399         and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
12400         are building; for methods check ODR type of class they belong to if
12401         they may lead to a polymorphic call.
12402         (sem_function::compare_polymorphic_p): Be bit smarter about testing
12403         when function may lead to a polymorphic call.
12404         (sem_function::compare_type_list): Remove.
12405         (sem_variable::equals): Update use of compatible_types_p.
12406         (sem_variable::parse_tree_refs): Remove.
12407         (sem_item_optimizer::filter_removed_items): Do not filter out CXX
12408         cdtor.
12409         * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
12410         matching here.
12411         (func_checker::compatible_polymorphic_types_p): Break out from ...
12412         (unc_checker::compatible_types_p): ... here.
12413         * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
12414         Declare.
12415         (unc_checker::compatible_types_p): Update.
12416         * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
12417         Remove.
12419 2015-03-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12421         PR rtl-optimization/65235
12422         * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
12423         When first element of vec_concat is const_int, calculate its size
12424         using second element.
12426 2015-03-12  Richard Biener  <rguenther@suse.de>
12428         PR middle-end/65270
12429         * fold-const.c (operand_equal_p): Fix ordering of resetting
12430         OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
12432 2015-03-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
12434         * config/s390/s390.c (s390_reorg): Move code to output nops after label
12435         to s390_reorg ().
12436         (s390_asm_output_function_label): Likewise.
12437         * config/s390/s390.c (s390_asm_output_function_label):
12438         Fix function label alignment with -mhtopatch.
12439         * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
12440         UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
12441         ("nop_2_byte"): New define_insn.
12442         ("nop_4_byte"): Likewise.
12443         ("nop_6_byte"): Likewise.
12444         * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
12445         * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
12447 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
12449         PR target/65103
12450         * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
12451         register.
12453 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
12455         PR target/65044
12456         * toplev.c (process_options): Restrict Pointer Bounds Checker
12457         usage with Address Sanitizer.
12459 2015-03-12  Richard Biener  <rguenther@suse.de>
12461         * tree-cfg.c (gimple_split_block): Remove loop finding stmt
12462         to split on.
12463         * omp-low.c (expand_omp_taskreg): Split block before removing
12464         the stmt.
12465         (expand_omp_target): Likewise.
12466         * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
12467         * tree-parloops.c (create_call_for_reduction_1): Pass a proper
12468         stmt to split_block.
12470 2015-03-12  Tom de Vries  <tom@codesourcery.com>
12472         PR rtl-optimization/64895
12473         * lra-lives.c (check_pseudos_live_through_calls): Use
12474         actual_call_used_reg_set instead of call_used_reg_set, if available.
12476 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
12478         * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
12479         (cgraph_node::remove): Likewise.
12480         (cgraph_node::get_untransformed_body): Likewise.
12481         * varpool.c (varpool_node::remove): Likewise.
12482         (varpool_node::get_constructor): Add sanity check.
12484 2015-03-11  Sandra Loosemore  <sandra@codesourcery.com>
12486         * doc/invoke.texi (-fgnu89-inline): Remove discussion about
12487         old GCC versions.
12488         (-fabi-compat-version): Likewise.
12489         (-ffriend-injection): Likewise.
12490         (-Wdeclaration-after-statement): Likewise.
12491         (-fomit-frame-pointer): Likewise.
12492         (-ftree-coalesce-inlined-vars): Likewise.
12493         (-fvisibility=): Likewise.
12494         * doc/extend.texi (Typeof): Likewise.
12495         (Zero Length): Likewise.
12496         (Escaped Newlines): Likewise.
12497         (Compound Literals): Likewise.
12498         (Function Attributes): Likewise.
12499         (Label Attributes): Likewise.
12500         (Type Attributes): Likewise.
12501         (Function Names): Likewise.
12502         (Other Builtins): Likewise.
12503         (Function Specific Option Pragmas): Likewise.
12504         (C++ Interface): Likewise.
12506 2015-03-11  Thomas Schwinge  <thomas@codesourcery.com>
12508         * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
12510 2015-03-11  Marek Polacek  <polacek@redhat.com>
12512         PR tree-optimization/65388
12513         * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
12515 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
12517         PR target/65296
12518         * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
12519         * configure: Regenerate.
12520         * config.in: Regenerate.
12521         * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
12522         [-mn-flash]: Document it.
12523         [__AVR_ARCH__]: Document avrtiny.
12525         * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
12526         (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
12527         (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
12529 2015-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12531         * doc/invoke.texi: Add missing cpu values (z196, zEC12).
12533 2015-03-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
12535         PR target/65242
12536         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
12537         allow reloads of PLUS in floating point/VSX registers.
12539 2015-03-11  Junmo Park  <junmoz.park@samsung.com>
12541         * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
12542         crypto_sha256_fast.
12543         (cortex_a57_crypto_complex): Add crypto_sha256_slow.
12545 2015-03-11  Richard Biener  <rguenther@suse.de>
12547         PR tree-optimization/65310
12548         * tree-sra.c (build_ref_for_offset): Also preserve larger
12549         alignment.
12551 2015-03-11  Marat Zakirov  <m.zakirov@samsung.com>
12553         * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
12555 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
12557         PR target/65368
12558         * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
12559         new define_expand.
12560         (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
12562 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
12564         * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
12565         (sem_function::equals_wpa): ... here.
12567 2015-03-10  Marek Polacek  <polacek@redhat.com>
12568             Jakub Jelinek  <jakub@redhat.com>
12570         PR sanitizer/65367
12571         * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
12572         when only removing the statement.  Handle expanding UBSAN_OBJECT_SIZE
12573         separately.
12575 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
12577         PR target/65286
12578         * config/rs6000/t-linux: For powerpc64* target set
12579         MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
12581 2015-03-10  Richard Biener  <rguenther@suse.de>
12583         PR middle-end/44563
12584         * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
12585         for redirect_all_calls.
12587 2015-03-10  Marek Polacek  <polacek@redhat.com>
12589         * gdbinit.in (pcfun): Define and document.
12591 2015-03-10  Ilya Verbin  <ilya.verbin@intel.com>
12593         * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
12594         of libgomp-plugin.h.
12595         (find_target_compiler): Support a case when the path to gcc is
12596         specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
12597         (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
12598         intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
12599         libgomp-plugin.h.
12600         (main): Use GCC_INSTALL_NAME as target_driver_name.
12601         * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
12602         define.
12603         (mkoffload.o): Remove obsolete include path and defines.
12604         (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
12606 2015-03-10  Richard Biener  <rguenther@suse.de>
12608         PR middle-end/63155
12609         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
12610         * tree-ssa-coalesce.c: Include timevar.h.
12611         (attempt_coalesce): Handle graph being NULL.
12612         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
12613         Split out abnormal coalescing to ...
12614         (perform_abnormal_coalescing): ... this function.
12615         (coalesce_ssa_name): Perform abnormal coalescing without computing
12616         live/conflict.
12617         (verify_ssa_coalescing_worker): New function.
12618         (verify_ssa_coalescing): Likewise.
12620 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
12622         PR target/65296
12623         * config.gcc (extra_options) [avr]: Remove.
12624         (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
12625         (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
12626         (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
12628         * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
12629         (-mmcu=): Add Var and MissingArgError properties.
12630         (-march=): Remove.
12631         * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
12632         * config/avr/t-multilib: Regenerate.
12633         * config/avr/specs.h: New file.
12634         * config/avr/driver-avr.c: New file.
12635         * config/avr/genopt.sh: Remove file.
12636         * config/avr/avr-tables.opt: Remove file.
12637         * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
12638         * config/avr/avr-c.c: Same.
12639         * avr-arch.h: Same.
12640         (avr_current_device): Remove proto.
12641         * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
12642         (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
12643         (EXTRA_SPEC_FUNCTIONS): Define.
12644         (avr_devicespecs_file): New specs function proto.
12645         (DRIVER_SELF_SPECS): Use device-specs-file spec function.
12646         * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
12647         (avr_current_device): Remove definition and usage.
12648         (avr_set_core_architecture): New static function.
12649         (avr_option_override): Use it.
12650         * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
12651         (mcu_name): New static array.
12652         (comparator, avr_archs_str, avr_mcus_str): New static functions.
12653         (avr_inform_devices, avr_inform_core_architectures): New functions.
12654         * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
12655         (avrlibc.h) [WITH_AVRLIBC]: Include.
12656         (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
12657         (print_mcu): Rewrite from scratch.
12658         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
12659         Forward to avr-specific specs defined in device-specs file.
12660         * config/avr/t-avr (driver-avr.o): New rule.
12661         (avr-devices.o): Depend on avr-arch.h.
12662         (avr-mcus): No more depend on avr-tables.opt.
12663         (avr-tables.opt): Remove rule.
12664         (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
12666 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
12668         * c-family/c.opt (fchkp-use-wrappers): New.
12669         * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
12670         (chkp_wrap_function): New.
12671         (chkp_build_instrumented_fndecl): Support wrapped
12672         functions.
12673         * doc/invoke.texi (-fcheck-pointer-bounds): New.
12674         (-fchkp-check-incomplete-type): New.
12675         (-fchkp-first-field-has-own-bounds): New.
12676         (-fchkp-narrow-bounds): New.
12677         (-fchkp-narrow-to-innermost-array): New.
12678         (-fchkp-optimize): New.
12679         (-fchkp-use-fast-string-functions): New.
12680         (-fchkp-use-nochk-string-functions): New.
12681         (-fchkp-use-static-bounds): New.
12682         (-fchkp-use-static-const-bounds): New.
12683         (-fchkp-treat-zero-dynamic-size-as-infinite): New.
12684         (-fchkp-check-read): New.
12685         (-fchkp-check-write): New.
12686         (-fchkp-store-bounds): New.
12687         (-fchkp-instrument-calls): New.
12688         (-fchkp-instrument-marked-only): New.
12689         (-fchkp-use-wrappers): New.
12690         (-static-libmpx): New.
12691         (-static-libmpxwrappers): New.
12693 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
12695         * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
12696         (CHKP_SPEC): Add wrappers library.
12697         * c-family/c.opt (static-libmpxwrappers): New.
12699 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
12701         * config/i386/linux-common.h (LIBMPX_LIBS): New.
12702         (LIBMPX_SPEC): New.
12703         (CHKP_SPEC): New.
12704         * gcc.c (CHKP_SPEC): New.
12705         (LINK_COMMAND_SPEC): Add CHKP_SPEC.
12706         * c-family/c.opt (static-libmpx): New.
12708 2015-03-10  Richard Biener  <rguenther@suse.de>
12710         PR middle-end/44563
12711         * cgraph.h (struct cgraph_edge_hasher): Add hash overload
12712         for compare_type.
12713         * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
12714         (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
12715         (cgraph_add_edge_to_call_site_hash): Likewise.
12716         (cgraph_node::get_edge): Likewise.
12717         (cgraph_edge::set_call_stmt): Likewise.
12718         (cgraph_edge::remove_caller): Likewise.
12720 2015-03-10  Chung-Ju Wu  <jasonwucj@gmail.com>
12722         * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
12723         (callee_saved_gpr_regs_size): ... this.
12724         (callee_saved_regs_first_regno): Rename to ...
12725         (callee_saved_first_gpr_regno): ... this.
12726         (callee_saved_regs_last_regno) Rename to ...
12727         (callee_saved_last_gpr_regno): ... this.
12728         * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
12729         variables.
12730         (nds32_initial_elimination_offset): Likewise.
12731         (nds32_expand_prologue): Likewise.
12732         (nds32_expand_epilogue): Likewise.
12733         (nds32_expand_prologue_v3push): Likewise.
12734         (nds32_expand_epilogue_v3pop): Likewise.
12735         * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
12736         Adjust renamed variables.
12737         (nds32_output_stack_pop): Likewise.
12739 2015-03-10  Thomas Preud'homme  <thomas.preudhomme@arm.com>
12741         * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
12742         code in comment.
12744 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
12746         PR rtl-optimization/65321
12747         * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
12748         than shift mode.
12749         * var-tracking.c (use_narrower_mode): Likewise.
12751 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
12753         PR tree-optimization/65355
12754         * varasm.c (notice_global_symbol): Do not produce RTL.
12755         * symtab.c (symtab_node::can_increase_alignment_p): Check for section
12756         anchor.
12757         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
12758         check for section anchors.
12760 2015-03-10  Alan Modra  <amodra@gmail.com>
12762         PR target/65286
12763         * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
12764         to be single-arch by default.  Set cpu_is_64bit for powerpc64
12765         given --with-cpu=native.
12766         * config/rs6000/t-fprules: Do not set default MULTILIB vars.
12767         * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
12768         and powerpc64le.
12769         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
12770         rs6000_isa_flags rather than TARGET_64BIT.
12772 2015-03-09  Yoshinori Sato  <ysato@users.sourceforge.jp>
12773             Kaz Kojima  <kkojima@gcc.gnu.org>
12775         * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
12777 2015-03-09  Jakub Jelinek  <jakub@redhat.com>
12779         PR lto/65361
12780         * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
12781         on a TREE_BINFO, instead use BINFO_TYPE.
12783 2015-03-09  Richard Biener  <rguenther@suse.de>
12785         PR middle-end/65270
12786         * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
12787         * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
12788         operand set OEP_ADDRESS_OF.  Clear it when recursing to non-bases
12789         of that.  When comparing dereferences compare alignment.
12790         When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
12792 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
12794         * ipa-inline-analysis.c (check_callers): Check
12795         node->can_remove_if_no_direct_calls_and_refs_p.
12796         (growth_likely_positive): Reorganize to call
12797         can_remove_if_no_direct_calls_p later.
12798         * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
12799         will_be_removed_from_program_if_no_direct_calls_p): Add
12800         will_inline parameter.
12801         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
12802         cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
12803         Handle inliner case correctly.
12805 2015-03-09  Thomas Preud'homme  <thomas.preudhomme@arm.com>
12807         PR tree-optimization/63743
12808         * cfgexpand.c (reorder_operands): Also reorder if only second operand
12809         had its definition forwarded by TER.
12811 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
12813         PR lto/65316
12814         * ipa-utils.h (types_odr_comparable): Add strict argument.
12815         * ipa-devirt.c: Fix whitespace;
12816         (odr_hasher): Remove.
12817         (odr_name_hasher, odr_vtable_hasher): New hashers.
12818         (can_be_name_hashed_p): New predicate.
12819         (hash_type_name): remove.
12820         (hash_odr_name): New.
12821         (odr_name_hasher::hash): new.
12822         (can_be_vtable_hashed_p): New.
12823         (hash_odr_vtable): New.
12824         (odr_vtable_hasher::hash): New.
12825         (types_same_for_odr): Add strict parameter.
12826         (types_odr_comparable): Likewise.
12827         (odr_name_hasher::equal): New.
12828         (odr_vtable_hasher::equal): New.
12829         (odr_name_hasher::remove): New.
12830         (odr_hash_type): Change to hash_table<odr_name_hasher>.
12831         (odr_vtable_hash_type): New.
12832         (odr_vtable_hash): New.
12833         (odr_subtypes_equivalent_p): Do strict comparsion.
12834         (add_type_duplicate): Merge type names; cleanup; avoid type
12835         duplicates.
12836         (register_odr_type): Initialize vtable hash.
12837         (build_type_inheritance_graph): Likewise
12838         (get_odr_type): Reorg to use two hashes.
12839         (dump_possible_polymorphic_call_targets): Move sanity check after debug
12840         output.
12841         (ipa_devirt): Dump type_inheritance_graph.
12842         (types_same_for_odr): Add strict mode.
12844 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
12846         PR ipa/65334
12847         * cgraph.h (symtab_node): Add definition_alignment,
12848         can_increase_alignment_p and increase_alignment.
12849         * symtab.c (symtab_node::can_increase_alignment_p,
12850         increase_alignment_1, symtab_node::increase_alignment,
12851         symtab_node::definition_alignment): New.
12852         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
12853         can_increase_alignment_p.
12854         * tree-vectorizer.c (increase_alignment): Use increase_alignment.
12855         * tree-vect-stmts.c (ensure_base_align): Likewise.
12856         * varasm.c (function_section_1): Use definition_alignment.
12857         (assemble_start_function): Likewise.
12858         (emit_local): likewise.
12859         (build_constant_desc): Likewsie.
12860         (output_constant_def_contents): Likewise.
12861         (place_block_symbol): Likewise.
12862         (output_object_block): Likewise.
12864 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
12866         PR ipa/65316
12867         * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
12868         when outputting debug.
12870 2015-03-07  Marek Polacek  <polacek@redhat.com>
12871             Martin Uecker  <uecker@eecs.berkeley.edu>
12873         PR sanitizer/65280
12874         * doc/invoke.texi: Update description of -fsanitize=bounds.
12876 2015-03-06  Wilco Dijkstra  <wilco.dijkstra@arm.com>
12878         * tree-ssa-phiopt.c (neg_replacement): Remove.
12879         (tree_ssa_phiopt_worker): Remove negate optimization.
12881 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
12883         PR ipa/65302
12884         * value-prof.c (gimple_ic): Pure dead eh edges when needed.
12886 2015-03-06  Richard Biener  <rguenther@suse.de>
12888         PR middle-end/64928
12889         * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
12890         and liveout_obstack members.
12891         (calculate_live_on_exit): Remove.
12892         (calculate_live_ranges): Change declaration.
12893         * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
12894         (new_tree_live_info): Adjust.
12895         (calculate_live_ranges): Delete livein when not wanted.
12896         (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
12897         Deal with partly deleted live info.
12898         (loe_visit_block): Remove temporary bitmap by using
12899         bitmap_ior_and_compl_into.
12900         (live_worklist): Adjust accordingly.
12901         (calculate_live_on_exit): Make static.
12902         * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
12903         we do not need livein.
12905 2015-03-06  Jonathan Wakely  <jwakely@redhat.com>
12907         * real.c (real_from_string): Fix typo in assertion.
12909 2015-03-06  Alex Velenko  <alex.velenko@arm.com>
12911         * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
12912         the patch.
12914 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
12916         * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
12918 2015-03-05  Vladimir Makarov  <vmakarov@redhat.com>
12920         PR target/64342
12921         * lra-assigns.c (find_hard_regno_for): Rename to
12922         find_hard_regno_for_1.  Add a new parameter.
12923         (find_hard_regno_for): New function using find_hard_regno_for_1.
12925 2015-03-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
12927         PR rtl-optimization/65067
12928         * expmed.c (store_bit_field, extract_bit_field): Reworked the
12929         strict volatile bitfield handling.
12931 2015-03-05  Martin Liska  <mliska@suse.cz>
12933         PR ipa/65318
12934         * ipa-icf.c (sem_variable::equals): Compare variables types.
12936 2015-03-05  Richard Henderson  <rth@redhat.com>
12938         PR target/65121
12939         * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
12940         correctly check weak symbol binding.
12942 2015-03-05  Steve Ellcey  <sellcey@imgtec.com>
12944         PR middle-end/65315
12945         * cfgexpand.c (expand_stack_vars): Update large_align to maximum
12946         needed alignment.
12948 2015-03-05  Martin Liska  <mliska@suse.cz>
12950         * ipa-inline.c (inline_small_functions): Set default value to
12951         prevent warning during bootstrap.
12952         * tree.h: Add pragma guard that ignores false positives during
12953         bootstrap.
12955 2015-03-05  Richard Biener  <rguenther@suse.de>
12957         PR tree-optimization/65310
12958         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
12959         Properly preserve alignment of the base of the access.
12961 2015-03-05  Richard Biener  <rguenther@suse.de>
12963         PR ipa/65270
12964         * ipa-icf-gimple.c (func_checker::compare_memory_operand):
12965         Compare dependence info.
12967 2015-03-05  Richard Biener  <rguenther@suse.de>
12969         PR middle-end/65233
12970         * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
12971         tree-into-ssa.h.
12972         (walk_ssa_copies): Revert last chage.  Instead do not walk
12973         SSA names registered for SSA update.
12975 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
12977         PR ipa/65270
12978         * ipa-icf.c (sem_item::compare_cgraph_references): Compare
12979         vtable references for their containing type.
12980         (sem_function::equals_wpa): Compare TYPE_RESTRICT
12981         and type attributes.
12983 2015-03-04  Eric Botcazou  <ebotcazou@adacore.com>
12985         * fold-const.c (round_up_loc): Cast divisor to signed on all paths
12986         before negating it.
12987         * stor-layout.c (finalize_record_size): Revert latest change.
12989 2015-03-04  Andreas Tobler  <andreast@gcc.gnu.org>
12991         * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
12993 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
12995         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
12996         for correct comdat handling.
12997         (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
12998         Likewise.
12999         * cgraph.h (call_for_symbol_and_aliases): Fix formating.
13000         (used_from_object_file_p_worker): Remove.
13001         (cgraph_node::only_called_directly_or_alised): Add
13002         used_from_object_file_p.
13003         * ipa-inline-analysis.c (growth_likely_positive): Optimie.
13004         * ipa-inline-transform.c (can_remove_node_now_p_1): Use
13005         can_remove_if_no_direct_calls_and_refs_p.
13007 2015-03-04  Nick Clifton  <nickc@redhat.com>
13009         * config/rl78/rl78.h (enum reg_class): Remove real registers from
13010         General register class.
13011         * config/rl78/rl78-real.md: Replace general register constraints
13012         with real+virtual register constraints.
13014 2015-03-04  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13016         * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
13017         from checking for -mhtm option.
13019 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
13021         * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
13022         (struct ipa_sra_check_caller_data): Add has_thunk field.
13023         (ipa_sra_check_caller): Check for thunk.
13024         (ipa_sra_preliminary_function_checks): Give up on function with
13025         thunks.
13026         (ipa_early_sra): Use call_for_symbol_and_aliases.
13028 2015-03-03  Kaz Kojima  <kkojima@gcc.gnu.org>
13030         PR target/65249
13031         * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
13032         called for __stack_chk_guard symbol.
13034 2015-03-03  DJ Delorie  <dj@redhat.com>
13036         * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
13037         inc/dec.
13038         (*addhi3_real): Likewise.
13039         * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
13040         pattern to match incrementing memory.
13041         * config/rl78/predicates.md (rl78_1_2_operand): New.
13042         * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
13043         it's the same and only mem.
13044         (rl78_alloc_physical_registers_op2): If there's effectively only
13045         one MEM, transcode it into HL.
13046         (rl78_far_p): Reject addresses that aren't legitimate.
13048 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
13050         * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
13051         negating it.
13053         * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
13055 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
13057         Implement call0 ABI for xtensa
13058         * config/xtensa/constraints.md ("a" constraint): Include stack
13059         pointer in case of call0 ABI.
13060         ("q" constraint): Make empty in case of call0 ABI.
13061         ("D" constraint): Include stack pointer in case of call0 ABI.
13062         * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
13063         xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
13064         prototypes.
13065         * config/xtensa/xtensa.c (xtensa_callee_save_size): New
13066         variable.
13067         (xtensa_regno_to_class): Make it a local variable in the
13068         function xtensa_regno_to_class.
13069         (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
13070         macro, function prototype and implementation.
13071         (reg_nonleaf_alloc_order): Make it a local variable in the
13072         function order_regs_for_local_alloc.
13073         (xtensa_conditional_register_usage): New function.
13074         (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
13075         (xtensa_valid_move): Allow direct moves to stack pointer
13076         register in call0 ABI.
13077         (xtensa_setup_frame_addresses): Only spill register windows in
13078         windowed ABI.
13079         (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
13080         call0 ABI respectively.
13081         (xtensa_function_arg_1): Only mark a7 register for copying in
13082         windowed ABI.
13083         (xtensa_call_save_reg): New function.
13084         (compute_frame_size): Add space for callee saved register
13085         storage to the frame size in call0 ABI.
13086         (xtensa_expand_prologue): Generate code to set up stack frame
13087         and save callee-saved registers in call0 ABI.
13088         (xtensa_expand_epilogue): New function.
13089         (xtensa_set_return_address): New function.
13090         (xtensa_return_addr): Calculate return address in call0 ABI.
13091         (xtensa_builtin_saveregs): Only mark a7 register for copying and
13092         emit copying code in windowed ABI.
13093         (order_regs_for_local_alloc): Add preferred register allocation
13094         order for non-leaf function in call0 ABI.
13095         (xtensa_static_chain): Add atatic chain passing for call0 ABI.
13096         (xtensa_asm_trampoline_template): Add trampoline generation for
13097         call0 ABI.
13098         (xtensa_trampoline_init): Add trampoline initialization for
13099         call0 ABI.
13100         (xtensa_conditional_register_usage, xtensa_regno_to_class): New
13101         functions.
13102         * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
13103         (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
13104         (CALL_USED_REGISTERS): Modify to encode both windowed and call0
13105         ABI call-used registers.
13106         (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
13107         (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
13108         call0 ABI.
13109         (REG_CLASS_CONTENTS): Include all registers into the preferred
13110         reload registers set, adjust the set in the
13111         xtensa_conditional_register_usage.
13112         (xtensa_regno_to_class): Drop variable declaration.
13113         (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
13114         function.
13115         (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
13116         respectively.
13117         (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
13118         (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
13119         (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
13120         (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
13121         location in call0 ABI.
13122         (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
13123         stack adjustment size when handling exception.
13124         (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
13125         * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
13126         definitions.
13127         ("return" pattern): Generate ret.n/ret in call0 ABI.
13128         ("epilogue" pattern): Expand epilogue.
13129         ("nonlocal_goto" pattern): Use default in call0 ABI.
13130         ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
13131         emit eh_set_a0_* depending on ABI.
13132         ("eh_set_a0_windowed" pattern): Former eh_return pattern.
13133         ("eh_set_a0_call0", "blockage"): New patterns.
13135 2015-03-03  Martin Liska  <mliska@suse.cz>
13137         PR ipa/65287
13138         * ipa-icf.c (sem_variable::parse): Skip all alias variables.
13140 2015-03-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
13142         PR 65138/target
13143         * config/rs6000/rs6000-tables.opt: Regenerate table.
13145 2015-03-03  Renlin Li  <renlin.li@arm.com>
13147         * doc/md.texi (@item ^): Change ? into ^.
13149 2015-03-03  H.J. Lu  <hongjiu.lu@intel.com>
13151         * doc/tm.texi: Regenerated.
13153 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
13155         * builtins.c (expand_builtin_return_addr): Add
13156         RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
13157         surrounding #ifdef.
13158         * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
13159         definition to 1.
13160         * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
13161         Likewise.
13162         * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
13163         undefined.
13164         * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
13165         paragraph.
13167 2015-03-03  Martin Jambor  <mjambor@suse.cz>
13168             Eric Botcazou  <ebotcazou@adacore.com>
13170         * tree-sra.c (ipa_sra_check_caller_data): New type.
13171         (has_caller_p): Removed.
13172         (ipa_sra_check_caller): New function.
13173         (ipa_sra_preliminary_function_checks): Use it.
13175 2015-03-03  Martin Liska  <mliska@suse.cz>
13177         * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
13178         instead of if branch.
13180 2015-03-03  Martin Liska  <mliska@suse.cz>
13182         PR ipa/65282
13183         * ipa-icf.c (sem_variable::equals): Fix wrong condition.
13185 2015-03-23  Jeff Law  <law@redhat.com>
13187         PR tree-optimization/65241
13188         * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
13189         hash table if INSERT is true.
13191 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
13193         PR target/65296
13194         * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
13196 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
13198         PR target/64331
13199         * config/avr/avr.c (context.h, tree-pass.h): Include them.
13200         (avr_pass_data_recompute_notes): New static variable.
13201         (avr_pass_recompute_notes): New class.
13202         (avr_register_passes): New static function.
13203         (avr_option_override): Call it.
13205 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
13207         Fix various problems with specs file generation.
13209         PR target/65296
13210         * config.gcc (extra_gcc_objs) [avr]: Remove.
13211         * config/avr/driver-avr.c: Remove file.
13212         * config/avr/t-avr (driver-avr.o): Remove rule.
13213         (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
13214         INCLUDES to build.  Depend on TM_H.
13215         * config/avr/gen-avr-mmcu-specs.c: Tidy up code.  Fix various
13216         build warnings.  Fix non-matching types and non-existing %-codes.
13217         (tm.h): Include.
13218         (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
13219         (*libgcc) [WITH_AVRLIBC]: Add "-lm".
13220         * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
13221         * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
13222         (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
13223         (LIBGCC_SPEC): Remove definitions.
13225 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
13227         * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
13228         to create a register in testing mode.
13230 2015-03-03  Martin Liska  <mliska@suse.cz>
13231             Jan Hubicka  <hubicka@ucw.cz>
13233         PR ipa/65263
13234         * cgraph.c (cgraph_node::has_thunk_p): New function.
13235         * cgraph.h (cgraph_node::has_thunk_p: Likewise.
13236         * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
13237         (sem_function::merge): Assert is changed.
13239 2015-03-03  Martin Liska  <mliska@suse.cz>
13240             Martin Jambor  <mjambor@suse.cz>
13242         PR ipa/65087
13243         * ipa-icf.c (sem_item_optimizer::execute): Change function
13244         return value to boolean.
13245         (sem_item_optimizer::merge_classes): Likewise.
13246         (ipa_icf_driver): Return TODO_remove_functions in case there's
13247         a merge operation processed.
13248         * ipa-icf.h: Change function return value to boolean.
13250 2015-03-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
13252         PR 65138/target
13253         * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
13254         processor type for 64-bit little endian PowerPC.
13256         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
13257         -mdebug=reg, print TARGET_DEFAULT.  Fix logic to use
13258         TARGET_DEFAULT if there is no default cpu.  Fix -mdebug=reg
13259         printing built-in mask so it does not pass NULL pointers.
13261         * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
13262         -mcpu=powerpc64le.
13264 2015-03-02  Steve Ellcey  <sellcey@imgtec.com>
13266         PR target/58158
13267         * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
13268         !ISA_HAS_FP_CONDMOVE.
13270 2015-03-02  Aldy Hernandez  <aldyh@redhat.com>
13272         * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
13273         reload_completed.
13275 2015-03-02  Ulrich Drepper  <drepper@gmail.com>
13277         * doc/invoke.texi (Options for Code Generation Conventions):
13278         Fix URL of DSO paper.
13280 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
13282         PR ipa/65130
13283         * ipa-inline.c (check_callers): Looks for recursion.
13284         (inline_to_all_callers): Give up on uninlinable or recursive edges.
13285         * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
13286         summary of inline clones.
13287         (do_estimate_growth_1): Fix recursion check.
13289 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
13291         PR ipa/64988
13292         * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
13293         comdat groups.
13295 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
13296             Aldy Hernandez  <aldyh@redhat.com>
13298         PR lto/65276
13299         * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
13300         when checking TYPE_BINFO.
13302 2015-03-02  Richard Biener  <rguenther@suse.de>
13304         PR ipa/65270
13305         * ipa-icf-gimple.c: Include builtins.h.
13306         (func_checker::compare_memory_operand): Compare base alignment.
13308 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
13310         PR target/65184
13311         * gcc/config/i386/i386.c (ix86_pass_by_reference) Bounds
13312         are never passed by reference.
13314 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
13316         PR target/65183
13317         * tree-chkp.c (chkp_check_lower): Don't check against
13318         zero bounds for already instrumented functions.
13319         (chkp_check_upper): Likewise.
13320         (chkp_fini): Clean pass local data to avoid wrong reusage.
13322 2015-02-28  Martin Liska  <mliska@suse.cz>
13323             Jan Hubicka  <hubicka@ucw.cz>
13325         * ipa-icf.c (sem_variable::equals): Improve debug output;
13326         get variable constructor.
13327         (sem_variable::parse): Do not filter out too early; give up on
13328         volatile and register vars.
13329         (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
13330         variables.
13331         * ipa-icf.h (sem_variable::init): Do not set ctor.
13332         (sem_variable::ctor): Remove.
13334 2015-03-01  Aldy Hernandez  <aldyh@redhat.com>
13336         PR middle-end/65233
13337         * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
13339 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
13341         * ipa-icf.c: Include stor-layout.h
13342         (sem_function::compare_cgraph_references): Rename to ...
13343         (sem_item::compare_cgraph_references): ... this one.
13344         (sem_variable::equals_wpa): New function
13345         (sem_variable::equals): Do not check stuff already verified by
13346         equals_wpa.
13347         (sem_variable::equals): Reorg based on varasm.c:compare_constant.
13348         * ipa-icf.h (sem_item): Add compare_cgraph_references.
13349         (sem_function): Remove compare_cgraph_references.
13350         (sem_variable): Turns equals_wpa into non-inline.
13352 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
13354         * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
13355         (sem_item::add_expr): New function.
13356         (sem_function::hash_stmt): Handle operands of most statements.
13357         (sem_variable::get_hash): Hash the actual constructor.
13358         * ipa-icf.h (sem_item): Add add_expr.
13359         (sem_function): Update prototype of hash_stmt
13361 2015-02-28  Martin Liska  <mliska@suse.cz>
13362             Jan Hubicka  <hubicka@ucw.cz>
13364         PR ipa/65245
13365         * ipa-icf-gimple.c (func_checker::compare_function_decl):
13366         Remove.
13367         (func_checker::compare_variable_decl): Skip symtab vars.
13368         (func_checker::compare_cst_or_decl): Update.
13369         * ipa-icf.c (sem_function::parse): Do not consider aliases.
13370         (sem_function::compare_cgraph_references): Add ADDRESS parameter;
13371         use correct symtab predicates.
13372         (sem_function::equals_wpa): Update uses of compare_cgraph_references.
13373         (sem_variable::parse):  Update comment.
13374         (sem_item_optimizer::build_graph): Consider ultimate aliases
13375         for references.
13377 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
13379         * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
13380         of OBJ_TYPE_REF.
13382 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
13384         * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
13385         (sem_variable::merge) Likewise.
13387 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
13389         * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
13390         target; also match flag_ipa_devirt.
13392 2015-03-01  Martin Liska  <mliska@suse.cz>
13393             Jan Hubicka  <hubicka@ucw.cz>
13395         * ipa-icf-gimple.c (func_checker::compare_variable_decl):
13396         Validate variable alignment.
13397         * ipa-icf.c (sem_function::equals_private): Be more precise
13398         about non-common function attributes.
13399         (sem_variable::equals): Likewise.
13401 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
13403         PR ipa/65237
13404         * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
13405         across COMDAT group boundary.
13407 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
13409         PR ipa/65232
13410         * ipa-icf.c (clear_decl_rtl): New function.
13411         (sem_function::merge): Clear RTL before forming alias.
13412         (sem_variable::merge): Clear RTL before forming alias.
13414 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
13416         PR ipa/65236
13417         * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
13419 2015-02-28  Xingxing Pan  <xxingpan@marvell.com>
13421         * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
13422         to neon_to_gp<q>.
13424 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
13426         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
13427         a typo in the description.
13429 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
13431         PR target/64317
13432         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
13433         * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
13434         * lra-constraints.c: Include "params.h".
13435         (EBB_PROBABILITY_CUTOFF): Use
13436         LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
13437         (lra_inheritance): Use '<' instead of '<=' for
13438         EBB_PROBABILITY_CUTOFF.
13439         * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
13440         Document change.
13442 2015-02-27  Martin Liska  <mliska@suse.cz>
13444         * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
13445         vector length condition.
13447 2015-02-27  Sandra Loosemore  <sandra@codesourcery.com>
13449         * doc/extend.texi (x86 transactional memory intrinsics):
13450         Reorganize discussion of _xbegin.  Clarify that the return
13451         value is a bit mask.  Expand example and move to end of section.
13453 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
13454             Aldy Hernandez  <aldyh@redhat.com>
13456         PR rtl-optimization/65220
13457         * config/i386/i386.md (*udivmod<mode>4_pow2): New.
13459 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
13461         PR target/65032
13462         * lra-remat.c (update_scratch_ops): New.
13463         (do_remat): Call it.
13464         * lra.c (lra_register_new_scratch_op): New. Take code from ...
13465         (remove_scratches): ... here.
13466         * lra-int.h (lra_register_new_scratch_op): New prototype.
13468 2015-02-27  Marek Polacek  <polacek@redhat.com>
13470         PR c/65040
13471         * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
13472         -Wformat-signedness anymore.
13474 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13476         * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
13477         function.
13478         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
13480 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13482         * config/s390/s390.c (enum s390_builtin):
13483         Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
13484         (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
13485         (s390_init_builtins): Generate new builtin functions.
13486         * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
13487         (s390_sfpc, s390_efpc): New pattern definitions.
13489 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13491         * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
13492         Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
13493         (s390_builtin_decls): New array.
13494         (s390_init_builtins): Put builtin decls into s390_builtin_decls.
13495         (s390_builtin_decl): New function.
13496         (TARGET_BUILTIN_DECL): Define macro.
13498 2015-02-27  Richard Biener  <rguenther@suse.de>
13500         PR middle-end/63175
13501         * builtins.c (get_object_alignment_2): Make sure to re-apply
13502         the ANDed mask after recursing to its operand gets us a new
13503         misalignment bit position.
13505 2015-02-26  Jan Hubicka  <hubicka@ucw.cz>
13506             Martin Liska  <mliska@suse.cz>
13508         PR bootstrap/65150
13509         * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
13510         Use address_matters_p.
13511         (redirect_all_callers, set_addressable): New functions.
13512         (sem_function::merge): Reorganize and fix merging issues.
13513         (sem_variable::merge): Likewise.
13514         (sem_variable::compare_sections): Remove.
13515         * common.opt (fmerge-all-constants, fmerge-constants): Remove
13516         Optimization flag.
13517         * symtab.c (symtab_node::resolve_alias): When alias has aliases,
13518         redirect them.
13519         (symtab_node::make_decl_local): Set ADDRESSABLE bit when
13520         decl is used.
13521         (address_matters_1): New function.
13522         (symtab_node::address_matters_p): New function.
13523         * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
13524         check for merged flag.
13525         * cgraph.h (address_matters_p): Declare.
13526         (symtab_node::address_taken_from_non_vtable_p): Remove.
13527         (symtab_node::address_can_be_compared_p): New method.
13528         (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
13529         * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
13530         Remove.
13531         (comdat_can_be_unshared_p_1) Use address_matters_p.
13532         (update_vtable_references): Fix formating.
13533         * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
13534         * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
13535         * cgraphclones.c: Preserve merged and icf_merged flags.
13537 2015-02-26  Sandra Loosemore  <sandra@codesourcery.com>
13539         * doc/extend.texi (Function Attributes): Fix spelling and typos.
13540         (Label Attributes): Likewise.
13541         (Cilk Plus Builtins): Likewise.
13542         (ARC SIMD Built-in Functions): Likewise.
13543         (ARM C Language Extensions (ACLE)): Likewise.
13544         (PowerPC Built-in Functions): Likewise.
13545         (PowerPC Hardware Transactional Memory Built-in Functions):
13546         Likewise.
13548 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
13550         PR tree-optimization/65216
13551         * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
13552         new stmt and new SSA_NAME for lhs whenever the arguments have
13553         changed and weren't just swapped.  Fix comment typo.
13555         PR tree-optimization/65215
13556         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
13557         for PDP endian targets.
13558         (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
13559         Fix up formatting issues.
13560         (bswap_replace): Likewise.  For BYTES_BIG_ENDIAN, if the final access
13561         size is smaller than the original, adjust MEM_REF offset by the
13562         difference of sizes.  Use is_gimple_mem_ref_addr instead of
13563         is_gimple_min_invariant test to avoid adding address temporaries.
13565 2015-02-26  Martin Liska  <mliska@suse.cz>
13566             Jan Hubicka  <hubicka@ucw.cz>
13568         PR ipa/64693
13569         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
13570         (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
13571         (sem_item_optimizer::process_cong_reduction): Include division by
13572         sensitive references.
13573         * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
13574         * ipa-ref.c (ipa_ref::address_matters_p): New function.
13575         * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
13577 2015-02-26  Georg-Johann Lay  <avr@gjlay.de>
13579         PR target/65192
13580         * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
13581         Remove.
13582         * config/avr/avr.c: Same.
13583         (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
13584         Refuse any constant address not in 0..0xbf.
13585         * config/avr/avr.md (*mov<mode>, *movsf): Remove
13586         tiny_valid_direct_memory_access_range from insn conditions.
13587         (mov<mode>): Don't special-case expansion of avrtiny addresses.
13589 2015-02-26  Oleg Endo  <olegendo@gcc.gnu.org>
13591         PR target/61142
13592         * config/sh/sh.c (sh_check_add_incdec_notes): New function.
13593         * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
13594         * config/sh/predicates.md (const_logical_operand): New predicate.
13595         * config/sh/sh.md: Add new peephole2 patterns.
13597 2015-02-26  Marek Polacek  <polacek@redhat.com>
13599         PR ipa/65008
13600         * ipa-inline.c (early_inliner): Recompute inline parameters.
13602 2015-02-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13604         PR target/65171
13605         * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
13606         instructions with TImode operands are included in the analysis.
13608 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
13610         * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
13611         of an EDGE_FSM_THREAD.
13613 2015-02-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13615         * config/rs6000/htm.md (tcheck): Fix assembly encoding.
13617 2015-02-25  Aldy Hernandez  <aldyh@redhat.com>
13619         PR debug/46102
13620         * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
13622 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
13624         PR tree-optimization/65048
13625         * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
13626         (thread_through_all_blocks): Call valid_jump_thread_path.
13627         Remove invalid FSM jump-thread paths.
13629 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
13631         * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
13632         (ipa_write_optimization_summaries): Likewise.
13633         * tree-streamer.h: Include data-streamer.h.
13634         (streamer_mode_table): Declare extern variable.
13635         (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
13636         * lto-streamer-out.c (lto_output_init_mode_table,
13637         lto_write_mode_table): New functions.
13638         (produce_asm_for_decls): Call lto_write_mode_table when streaming
13639         offloading LTO.
13640         * lto-section-in.c (lto_section_name): Add "mode_table" entry.
13641         (lto_create_simple_input_block): Add mode_table argument to the
13642         lto_input_block constructors.
13643         * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
13644         Likewise.
13645         * data-streamer-in.c (string_for_index): Likewise.
13646         * ipa-inline-analysis.c (inline_read_section): Likewise.
13647         * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
13648         * lto-cgraph.c (input_cgraph_opt_section): Likewise.
13649         * lto-streamer-in.c (lto_read_body_or_constructor,
13650         lto_input_toplevel_asms): Likewise.
13651         (lto_input_mode_table): New function.
13652         * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
13653         pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
13654         Use bp_pack_machine_mode.
13655         * real.h (struct real_format): Add name field.
13656         * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
13657         (class lto_input_block): Add mode_table member.
13658         (lto_input_block::lto_input_block): Add mode_table_ argument,
13659         initialize mode_table.
13660         (struct lto_file_decl_data): Add mode_table field.
13661         (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
13662         * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
13663         unpack_ts_decl_common_value_fields,
13664         unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
13665         * tree-streamer.c (streamer_mode_table): New variable.
13666         * real.c (ieee_single_format, mips_single_format,
13667         motorola_single_format, spu_single_format, ieee_double_format,
13668         mips_double_format, motorola_double_format,
13669         ieee_extended_motorola_format, ieee_extended_intel_96_format,
13670         ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
13671         ibm_extended_format, mips_extended_format, ieee_quad_format,
13672         mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
13673         decimal_single_format, decimal_double_format, decimal_quad_format,
13674         ieee_half_format, arm_half_format, real_internal_format): Add name
13675         field.
13676         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
13678 2015-02-26  Yuri Rumyantsev  <ysrumyan@gmail.com>
13680         PR target/65161
13681         * config/i386/i386.c (ix86_sched_reorder): Skip instruction
13682         reordering for selective scheduling.
13684 2015-02-26  Terry Guo  <terry.guo@arm.com>
13686         * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
13687         * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
13688         (arm_arch_no_volatile_ce): Declare new global variable.
13689         * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
13690         (arm_option_override): Assign value to arm_arch_no_volatile_ce.
13691         * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
13692         (TARGET_NO_VOLATILE_CE): New macro.
13693         * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
13694         volatile memory access in IT block
13696 2015-02-25  Kai Tietz  <ktietz@redhat.com>
13698         PR tree-optimization/61917
13699         * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
13700         that reduc_def_stmt is null.
13702 2015-02-25  Martin Liska  <mliska@suse.cz>
13704         * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
13705         hard register variables.
13707 2015-02-25  Kai Tietz  <ktietz@redhat.com>
13709         PR target/64212
13710         * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
13711         (symtab::noninterposable_alias): Likewise.
13713 2015-02-25  Ilya Enkovich  <ilya.enkovich@intel.com>
13715         PR target/65167
13716         * gcc/config/i386/i386.c (ix86_function_arg_regno_p): Support
13717         bounds registers.
13718         (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
13720 2015-02-25  Alan Lawrence  <alan.lawrence@arm.com>
13722         PR target/64997
13723         * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
13724         as split condition; force split via '#' in output pattern.
13726 2015-02-25  Richard Biener  <rguenther@suse.de>
13727             Kai Tietz  <ktietz@redhat.com>
13729         PR tree-optimization/61917
13730         * tree-vect-loop.c (vectorizable_reduction): Allow
13731         vect_internal_def without reduction to exit graceful.
13733 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
13735         PR target/65196
13736         * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
13737         only with NONDEBUG_INSN_P.
13739 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
13741         Use variadic macros with avr-log.c.
13743         * config/avr/avr-protos.h (avr_vdump): New prototype.
13744         (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
13745         (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
13746         * config/avr/avr-log.c: Adjust comments.
13747         (avr_vdump): New function.
13748         (avr_vadump): Pass caller as 2nd argument instead of format string.
13749         (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
13750         (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
13752 2015-02-25  Jakub Jelinek  <jakub@redhat.com>
13754         PR lto/64374
13755         * target.def (target_option_stream_in): New target hook.
13756         * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
13757         targetm.target_option.post_stream_in if non-NULL.
13758         * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
13759         * doc/tm.texi: Updated.
13760         * config/i386/i386.c (ix86_function_specific_post_stream_in): New
13761         function.
13762         (TARGET_OPTION_POST_STREAM_IN): Redefine.
13764 2015-02-24  Jeff Law  <law@redhat.com>
13766         PR target/65117
13767         * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
13768         of operand 0 and operand 2.
13769         (zero_cost_loop_end, loop_end): Similarly.
13771 2015-02-24  Aldy Hernandez  <aldyh@redhat.com>
13773         * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
13774         CXX_MEM_STAT_INFO.
13776 2015-02-24  DJ Delorie  <dj@redhat.com>
13778         * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
13779         * config/rl78/rl78-expand.md (movsf): New, same as movsi.
13780         * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
13781         instead of hardcoding SImode.
13783 2015-02-24  Bernd Schmidt  <bernds@codesourcery.com>
13785         * omp-low.c (create_omp_child_function): Tag entrypoint
13786         functions with a special attribute.
13788 2015-02-24  Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
13790         PR target/65058
13791         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
13793 2015-02-24  Vladimir Makarov  <vmakarov@redhat.com>
13795         PR rtl-optimization/65123
13796         * lra-remat.c (operand_to_remat): Check hard regs in insn
13797         definition too.
13799 2015-02-24  Nick Clifton  <nickc@redhat.com>
13801         * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
13802         to the assembler.
13804 2015-02-24  Thomas Schwinge  <thomas@codesourcery.com>
13806         PR libgomp/64625
13807         * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
13808         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
13809         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
13810         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
13811         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
13812         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
13813         (BUILT_IN_GOACC_PARALLEL): Specify as
13814         BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
13815         BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
13816         * builtin-types.def
13817         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
13818         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
13819         Remove function types.
13820         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
13821         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
13822         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
13823         New function types.
13825 2015-02-24  Georg-Johann Lay  <avr@gjlay.de>
13827         * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
13829 2015-02-24  Jakub Jelinek  <jakub@redhat.com>
13831         PR tree-optimization/65170
13832         * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
13833         if val[1] < 0, clear also val[2] and return 3.
13835 2015-02-24  Alan Modra  <amodra@gmail.com>
13837         PR target/65172
13838         * config/rs6000/rs6000.c (get_memref_parts): Only return true
13839         when *base is a reg.  Handle nested plus addresses.  Simplify
13840         pre_modify test.
13842 2015-02-22  Max Filippov  <jcmvbkbc@gmail.com>
13844         * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
13845         use natural alignment when optimizing for size.
13847 2015-02-23  Kaz Kojima  <kkojima@gcc.gnu.org>
13849         PR target/65153
13850         * config/sh/sh.md (movsicc_true+3): Remove peephole.
13851         * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
13852         * config/sh/sh.c (replace_n_hard_rtx): Remove.
13854 2015-02-23  Richard Sandiford  <richard.sandiford@arm.com>
13856         PR fortran/63427
13857         * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
13858         too big for a wide_int.  Implement missing wrapping operation.
13860 2015-02-23  Oleg Endo  <olegendo@gcc.gnu.org>
13862         PR target/65163
13863         * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
13864         instead of const_int 4294901760.
13866 2015-02-23  Georg-Johann Lay  <avr@gjlay.de>
13868         * config/avr/t-avr: Fix typo in comment.
13870 2015-02-21  Richard Sandiford  <richard.sandiford@arm.com>
13872         * doc/rtl.texi (fma): Clarify documentation.
13874 2015-02-20  Aldy Hernandez  <aldyh@redhat.com>
13876         PR debug/58123
13877         * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
13878         over input_location.
13880 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
13882         * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
13883         unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
13884         restrict alignments to absolute_biggest_alignment.
13885         * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
13886         Define.
13887         * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
13888         * doc/tm.texi: Regenerate.
13889         * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
13891 2015-02-20  Vladimir Makarov  <vmakarov@redhat.com>
13893         PR target/64172
13894         * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
13896 2015-02-20  Richard Biener  <rguenther@suse.de>
13898         PR tree-optimization/65136
13899         * tree-ssa-propagate.c: Include cfgloop.h.
13900         (replace_phi_args_in): Avoid replacing loop latch edge PHI
13901         arguments with constants.
13903 2015-02-20  Jakub Jelinek  <jakub@redhat.com>
13904             Martin Liska  <mliska@suse.cz>
13906         PR target/63892
13907         * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
13908         don't try to create_thunk if stdarg_p.  If
13909         !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
13910         redirect_callers if possible.
13911         (sem_item_optimizer::execute): Call unregister_hooks here...
13912         (ipa_icf_driver): ... instead of here.
13914 2015-02-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13916         * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
13917         Mark operand 0 as earlyclobber in 2nd alternative.
13918         (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
13919         Write negated shift amount into QI lowpart operand 0 and use it
13920         in the shift step.
13921         (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
13923 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
13925         * cgraph.h (clone_function_name_1): Declare.
13926         * cgraphclones.c (clone_function_name_1): New function.
13927         (clone_function_name): Use it.
13928         * lto-partition.c: Include "stringpool.h".
13929         (must_not_rename, maybe_rewrite_identifier)
13930         (validize_symbol_for_target): New static functions.
13931         (privatize_symbol_name): Use must_not_rename.
13932         (promote_symbol): Call validize_symbol_for_target.
13933         (lto_promote_cross_file_statics): Likewise.
13934         (lto_promote_statics_nonwpa): Likewise.
13936 2015-02-20  Georg-Johann Lay  <avr@gjlay.de>
13938         PR target/64452
13939         * config/avr/avr.md (pushhi_insn): New insn.
13940         (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
13942 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
13943             Jakub Jelinek  <jakub@redhat.com>
13945         * tree-streamer.c (preload_common_nodes): Don't preload
13946         TI_VA_LIST* for offloading.
13947         * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
13948         in_lto_p.
13950 2015-02-19  John David Anglin  <danlgin@gcc.gnu.org>
13952         * config/pa/pa.c (pa_emit_move_sequence): Always force
13953         (const (plus (symbol) (const_int))) to const mem.  Put REG_EQUAL
13954         note on insn.
13956         * config/pa/pa.c (pa_reloc_rw_mask): New function.
13957         (TARGET_ASM_RELOC_RW_MASK): Define.
13958         (pa_cannot_force_const_mem): Revert previous change.
13960 2015-02-19  Martin Jambor  <mjmabor@suse.cz>
13961             Jan Hubicka  <hubicka@ucw.cz>
13963         PR ipa/65028
13964         * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
13965         across jump functions.
13967 2015-02-19  Uros Bizjak  <ubizjak@gmail.com>
13969         * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
13971 2015-02-19  Sandra Loosemore  <sandra@codesourcery.com>
13973         * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
13975 2015-02-19  Richard Henderson  <rth@redhat.com>
13977         PR middle-end/65074
13978         * varasm.c (default_binds_local_p_2): Don't test node->definition;
13979         test DECL_EXTERNAL independent of symtab_node.
13981 2015-02-19  Jakub Jelinek  <jakub@redhat.com>
13983         PR lto/65012
13984         * varpool.c (varpool_node::get_constructor): Return early
13985         if this->lto_file_data is NULL.
13987 2015-02-19  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
13989         * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
13990         (rank_for_schedule_debug): Update.
13991         (ready_sort): Make static.  Move sorting logic to ...
13992         (ready_sort_debug, ready_sort_real): New static functions.
13993         (schedule_block): Sort both debug insns and real insns in preparation
13994         for ready list trimming.  Improve debug output.
13995         * sched-int.h (ready_sort): Remove global declaration.
13997 2015-02-18  Trevor Saunders  <tsaunders@mozilla.com>
13999         * ipa-icf.c (sem_function::equals_private): Adjust.
14000         (sem_function::bb_dict_test): Take a vec<int> * instead of
14001         auto_vec<int>.
14002         * ipa-icf.h (bb_dict_test): Likewise.
14004 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
14006         PR gcov-profile/64634
14007         * tree-eh.c (frob_into_branch_around): Fix up typos
14008         in function comment.
14009         (lower_catch): Put eh_seq resulting from EH lowering of
14010         the cleanup sequence after the cleanup rather than before it.
14012 2015-02-18  Tom de Vries  <tom@codesourcery.com>
14014         * common.opt (fstdarg-opt): New option.
14015         * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
14016         * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
14017         (@item -fstdarg-opt): New item.
14019 2015-02-18  H.J. Lu  <hongjiu.lu@intel.com>
14021         PR target/65064
14022         * config/ia64/predicates.md (sdata_symbolic_operand): Return false
14023         for common symbols.
14025 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
14027         * config/i386/t-intelmic (mkoffload.o): Remove dependency on
14028         insn-modes.h.
14029         (ALL_HOST_OBJS): Add mkoffload.o.
14030         * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
14032 2015-02-18  Jan Hubicka  <hubicka@ucw.cz>
14034         * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
14035         (compare_virtual_tables): Be smarter about skipping typeinfos;
14036         do sane output on virtual table table mismatch.
14037         (warn_odr): Be ready for forward declarations of enums;
14038         output sane info on base mismatch and virtual table mismatch.
14039         (add_type_duplicate): Fix code choosing prevailing type; do not ICE
14040         when only one type is polymorphic.
14041         (get_odr_type): Fix hashtable corruption.
14042         (dump_odr_type): Dump mangled names.
14044 2015-02-18  Richard Biener  <rguenther@suse.de>
14046         PR tree-optimization/65063
14047         * tree-predcom.c (determine_unroll_factor): Return 1 if we
14048         have replaced looparound PHIs.
14050 2015-02-18  Martin Liska  <mliska@suse.cz>
14052         * lto-streamer.c (lto_streamer_init): Encapsulate
14053         streamer_check_handled_ts_structures with checking macro.
14055 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
14057         PR ipa/65087
14058         * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
14059         section if !implicit_section.
14060         (cgraph_node::create_version_clone_with_body): Likewise.
14061         * trans-mem.c (ipa_tm_create_version): Likewise.
14063 2015-02-18  Richard Biener  <rguenther@suse.de>
14065         PR tree-optimization/62217
14066         * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
14067         into BIVs.
14069 2015-02-18  Marek Polacek  <polacek@redhat.com>
14071         PR sanitizer/65081
14072         * ubsan.c (OBJSZ_MAX_OFFSET): Define.
14073         (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
14074         is in range [-16K, -1].  Don't issue run-time error if
14075         (ptr > ptr + offset).
14077 2015-02-18  Thomas Schwinge  <thomas@codesourcery.com>
14079         * doc/install.texi (nvptx-*-none): New section.
14080         * doc/invoke.texi (Nvidia PTX Options): Likewise.
14081         * config/nvptx/nvptx.opt: Update.
14083         * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
14084         (access_check): New functions, copied from
14085         config/i386/intelmic-mkoffload.c.
14086         (main): For non-installed testing, look in all COMPILER_PATHs for
14087         GCC_INSTALL_NAME.
14089         * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
14091 2015-02-18  Andrew Pinski  <apinski@cavium.com>
14092             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
14094         * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
14095         Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
14097 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
14099         * ipa-visibility.c (function_and_variable_visibility): Only
14100         check locality if node is not already local.
14101         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
14102         call_for_symbol_and_aliases instead of
14103         call_for_symbol_thunks_and_aliases.
14104         (ipa_inline): Likewise.
14105         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
14106         first walk aliases.
14107         * ipa.c (symbol_table::remove_unreachable_nodes): Use
14108         call_for_symbol_and_aliases.
14109         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
14110         (ipa_propagate_frequency_1): Use it; use opt_for_fn
14111         (ipa_propagate_frequency): Update.
14112         (ipa_profile): Add opt_for_fn gueards.
14114 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
14116         * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
14117         * doc/invoke.texi (SH options): Document it.
14118         * config/sh/sh.c (sh_insn_length_adjustment): Check
14119         TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
14121 2015-02-17  H.J. Lu  <hongjiu.lu@intel.com>
14123         * common.opt (fipa-cp-alignment): New.
14124         * ipa-cp.c (ipcp_store_alignment_results): Check
14125         flag_ipa_cp_alignment.
14126         * opts.c (default_options_table): Enable -fipa-cp-alignment for
14127         -O2.
14128         (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
14129         * doc/invoke.texi: Document -fipa-cp-alignment.
14131 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
14133         PR target/64793
14134         * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
14135         to nil.  Adjust comments.
14137 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
14139         * ipa-visibility.c (function_and_variable_visibility): Only
14140         check locality if node is not already local.
14141         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
14142         call_for_symbol_and_aliases instead of
14143         call_for_symbol_thunks_and_aliases.
14144         (ipa_inline): Likewise.
14145         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
14146         first walk aliases.
14147         * ipa.c (symbol_table::remove_unreachable_nodes): Use
14148         call_for_symbol_and_aliases.
14149         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
14150         (ipa_propagate_frequency_1): Use it; use opt_for_fn
14151         (ipa_propagate_frequency): Update.
14152         (ipa_profile): Add opt_for_fn guards.
14154 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
14156         * config/nvptx/mkoffload.c (parse_file): Fix logic error in
14157         skipping of "strange" tokens.
14159 2015-02-17  Jeff Law  <law@redhat.com>
14161         * tree-vrp.c (identify_jump_threads): Use last_stmt.  Remove
14162         obsolete comment.
14164 2015-02-17  James Greenhalgh  <james.greenhalgh@arm.com>
14166         * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
14167         as forcing a HARD_DEP between instructions, thereby
14168         disallowing rewriting to break dependencies.
14170 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
14172         * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
14173         * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
14174         variables in boundary that have no inlitalizer encoded and are
14175         not aliases.
14176         * varasm.c (default_binds_local_p_2): External definitions do not
14177         count as definitions here.
14179 2015-02-16  Jeff Law  <law@redhat.com>
14181         PR tree-optimization/64823
14182         * tree-vrp.c (identify_jump_threads): Handle blocks with no real
14183         statements.
14184         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
14185         threading through blocks with PHIs, but no statements.
14186         (thread_through_normal_block): Distinguish between blocks where
14187         we did not process all the statements and blocks with no statements.
14189 2015-02-16  Jakub Jelinek  <jakub@redhat.com>
14190             James Greenhalgh  <james.greenhalgh@arm.com>
14192         PR ipa/64963
14193         * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
14194         section if not linkonce.  Fix up formatting.
14195         (cgraph_node::create_version_clone_with_body): Copy section.
14196         * trans-mem.c (ipa_tm_create_version): Likewise.
14198 2015-02-16  Richard Biener  <rguenther@suse.de>
14200         PR tree-optimization/65077
14201         * tree-ssa-structalias.c (get_constraint_for_1): Handle
14202         IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
14203         (find_func_aliases): Allow float values to carry pointers again.
14205 2015-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
14207         * doc/install.texi (Specific): Reorder targets list to put
14208         aarch64 in alphabetical order.  Add a link to aarch64*-*-*
14209         from the top menu.
14211 2015-02-16  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
14212             David Edelsohn  <dje.gcc@gmail.com>
14214         PR target/65058
14215         * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
14216         mapping class to external variable or function reference.
14217         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
14218         mapping class.
14220 2015-02-16  David Eelsohn  <dje.gcc@gmail.com>
14222         PR target/53348
14223         * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
14224         ASM_WEAKEN_DECL if defined.
14226 2015-02-16  Richard Biener  <rguenther@suse.de>
14228         PR lto/65015
14229         * varasm.c (default_file_start): For LTO produced units
14230         emit <artificial> as file directive.
14232 2015-02-16  Richard Biener  <rguenther@suse.de>
14234         PR tree-optimization/63593
14235         * tree-predcom.c (execute_pred_commoning_chain): Delay removing
14236         stmts and releasing SSA names until...
14237         (execute_pred_commoning): ... after processing all chains.
14239 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
14241         PR ipa/65059
14242         * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
14243         external functions.
14245 2015-02-15  Sandra Loosemore  <sandra@codesourcery.com>
14247         * doc/bugreport.texi: Adjust section titles throughout the file
14248         to use "Title Case".
14249         * doc/extend.texi: Likewise.
14250         * doc/gcov.texi: Likewise.
14251         * doc/implement-c.texi: Likewise.
14252         * doc/implement-cxx.texi: Likewise.
14253         * doc/invoke.texi: Likewise.
14254         * doc/objc.texi: Likewise.
14255         * doc/standards.texi: Likewise.
14256         * doc/trouble.texi: Likewise.
14258 2015-02-15  Jan Hubicka  <hubicka@ucw.cz>
14260         * cgraph.h (symtab_node::has_aliases_p): Simplify.
14261         (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
14262         * tree.c (lookup_binfo_at_offset): Make static.
14263         (get_binfo_at_offset): Do not shadow offset; add explanatory
14264         comment.
14266 2015-02-15  John David Anglin  <danglin@gcc.gnu.org>
14268         * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
14269         for all floading point loads and stores except those using a register
14270         index address.
14271         * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
14272         to a register.
14274 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
14276         * ipa-inline-analysis.c (growth_data): Add uninlinable field.
14277         (do_estimate_growth_1): Record if any uninlinable edge was seen.
14278         (estimate_growth): Handle uninlinable edges correctly.
14279         (check_callers): New.
14280         (growth_likely_positive): Handle aliases correctly.
14282 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
14284         * ipa-chkp.c: Use iterate_direct_aliases.
14285         * symtab.c (resolution_used_from_other_file_p): Move inline.
14286         (symtab_node::create_reference): Fix formating.
14287         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
14288         (symtab_node::iterate_reference): Move inline.
14289         (symtab_node::iterate_referring): Move inline.
14290         (symtab_node::iterate_direct_aliases): Move inline.
14291         (symtab_node::used_from_object_file_p_worker): Inline into ...
14292         (symtab_node::used_from_object_file_p): ... this one; move inline.
14293         (symtab_node::call_for_symbol_and_aliases): Move inline;
14294         use iterate_direct_aliases.
14295         (symtab_node::call_for_symbol_and_aliases_1): New method.
14296         (cgraph_node::call_for_symbol_and_aliases): Move inline;
14297         use iterate_direct_aliases.
14298         (cgraph_node::call_for_symbol_and_aliases_1): New method.
14299         (varpool_node::call_for_node_and_aliases): Rename to ...
14300         (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
14301         use iterate_direct_aliases.
14302         (varpool_node::call_for_symbol_and_aliases_1): New method.
14303         * ipa.c (ipa_single_use): Use iterate_direct_aliases.
14304         (ipa_discover_readonly_nonaddressable_var): Update.
14305         * ipa-devirt.c: Fix formating.
14306         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
14307         Move inline.
14308         (cgraph_node::call_for_symbol_and_aliases): Move inline.
14309         (cgraph_node::call_for_symbol_and_aliases_1): New function..
14310         * cgraph.h (used_from_object_file_p_worker): Remove.
14311         (resolution_used_from_other_file_p): Move inline.
14312         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
14313         (symtab_node::iterate_reference): Move inline.
14314         (symtab_node::iterate_referring): Move inline.
14315         (symtab_node::iterate_direct_aliases): Move inline.
14316         (symtab_node::used_from_object_file_p_worker): Inline into ...
14317         (symtab_node::used_from_object_file_p): Move inline.
14318         * tree-emutls.c (ipa_lower_emutls): Update.
14319         * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
14320         (varpool_node::call_for_node_and_aliases): Remove.
14322 2015-02-14  Jakub Jelinek  <jakub@redhat.com>
14324         PR tree-optimization/62209
14325         * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
14326         op == range->exp, insert seq and gimplified code after labels
14327         instead of after the phi.
14329 2015-02-13  Jeff Law  <law@redhat.com>
14331         PR bootstrap/65060
14332         Revert my change for tree-optimization/64823.
14334 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
14336         PR tree-optimization/65053
14337         * tree-ssa-phiopt.c (value_replacement): When moving assign before
14338         cond, either reset VR on lhs or set it to phi result VR.
14340 2015-02-13  Jeff Law  <law@redhat.com>
14342         PR tree-optimization/64823
14343         * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
14344         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
14345         threading through blocks with PHIs, but no statements.
14346         (thread_through_normal_block): Distinguish between blocks where
14347         we did not process all the statements and blocks with no statements.
14349         PR rtl-optimization/47477
14350         * match.pd (convert (plus/minus (convert @0) (convert @1): New
14351         simplifier to narrow arithmetic.
14353 2015-02-13  Jan Hubicka  <hubicka@ucw.cz>
14355         PR ipa/65028
14356         * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
14357         polymorphic call info when type is not known to be preserved.
14359 2015-02-13  Maritn Jambor  <mjambor@suse.cz>
14361         PR ipa/65028
14362         * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
14363         (inline_call): Use it.
14365 2015-02-13  Thomas Schwinge  <thomas@codesourcery.com>
14367         * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
14368         GOMP_DEVICE_NVIDIA_PTX.
14370 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
14372         PR ipa/65034
14373         * stmt.c (emit_case_nodes): Use void_type_node instead of
14374         NULL_TREE as LABEL_DECL type.
14376 2015-02-13  John David Anglin  <danglin@gcc.gnu.org>
14378         * config/pa/constraints.md: Change "Q" and "T" constraints to memory
14379         constraints.
14380         * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
14381         symbolic references to data to be forced to constant memory on the
14382         SOM target.
14384 2015-02-13  Ilya Enkovich  <ilya.enkovich@intel.com>
14386         PR tree-optimization/65002
14387         * tree-cfg.c (pass_data_fixup_cfg): Don't update
14388         SSA on start.
14389         * tree-sra.c (some_callers_have_no_vuse_p): New.
14390         (ipa_early_sra): Reject functions whose callers
14391         assume function is read only.
14393 2015-02-13  Richard Biener  <rguenther@suse.de>
14395         PR lto/65015
14396         * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
14397         for LTO produced CUs.
14399 2015-02-13  Bin Cheng  <bin.cheng@arm.com>
14401         PR tree-optimization/64705
14402         * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
14403         * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
14404         * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
14405         (find_bivs, find_givs_in_stmt_scev): Pass new argument to
14406         expand_simple_operations.
14408 2015-02-13  H.J. Lu  <hongjiu.lu@intel.com>
14409             Richard Henderson  <rth@redhat.com>
14411         PR rtl/32219
14412         * cgraphunit.c (cgraph_node::finalize_function): Set definition
14413         before notice_global_symbol.
14414         (varpool_node::finalize_decl): Likewise.
14415         * varasm.c (default_binds_local_p_2): Rename from
14416         default_binds_local_p_1, add weak_dominate argument.  Use direct
14417         returns instead of assigning to local variable.  Unify varpool and
14418         cgraph paths via symtab_node.  Reject undef weak variables before
14419         testing visibility.  Reorder tests for simplicity.
14420         (default_binds_local_p): Use default_binds_local_p_2.
14421         (default_binds_local_p_1): Likewise.
14422         (decl_binds_to_current_def_p): Unify varpool and cgraph paths
14423         via symtab_node.
14424         (default_elf_asm_output_external): Emit visibility when specified.
14426 2015-02-13  Alan Modra  <amodra@gmail.com>
14428         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
14429         code setting up r11 for out-of-line fp restore.
14431 2015-02-13  Eric Botcazou  <ebotcazou@adacore.com>
14433         * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
14434         (muser-mode): Likewise.
14436 2015-02-13  Alan Modra  <amodra@gmail.com>
14438         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
14439         or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
14441 2015-02-12  David Howells  <dhowells@redhat.com>
14443         * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
14444         warning.
14445         * tree-ssa-uninit.c (dump_predicates): Likewise.
14446         * opts.c (print_filtered_help): Likewise.
14448 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
14450         * dwarf2out.c (output_die): Use "%s", name instead of name to
14451         avoid -Wformat-security warning.
14453         * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
14454         if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
14455         * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
14456         only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
14458 2015-02-12  Jason Merrill  <jason@redhat.com>
14460         * common.opt (-flifetime-dse): New.
14462 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
14464         PR sanitizer/65019
14465         * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
14467         PR tree-optimization/65014
14468         * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
14469         use original second operand of arg0 or arg1 instead of
14470         that adjusted by STRIP_NOPS.
14472 2015-02-11  Jeff Law  <law@redhat.com>
14474         PR target/63347
14475         * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
14476         that needs to be queued, just queue it for a single cycle.
14478 2015-02-11  Jan Hubicka  <hubicka@ucw.cz>
14480         * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
14481         bodies of thunks; comment on why.
14482         * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
14483         symbols are extern.
14485 2015-02-11  Richard Henderson  <rth@redhat.com>
14487         PR sanitize/65000
14488         * tree-eh.c (mark_reachable_handlers): Mark source and destination
14489         regions of __builtin_eh_copy_values.
14491 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
14493         PR middle-end/65003
14494         * varasm.c (place_block_symbol): Assert that DECL_RTL of the
14495         ultimate alias is MEM with SYMBOL_REF satisfying
14496         SYMBOL_REF_HAS_BLOCK_INFO_P as its operand.  Don't pass the MEM
14497         to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
14499 2015-02-11  Thomas Schwinge  <thomas@codesourcery.com>
14501         * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
14502         "diagnostic-core.h".
14503         (main): Initialize progname, and call diagnostic_initialize.
14505         * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
14506         instead of __OPENMP_TARGET__.
14508         * config/nvptx/mkoffload.c: Include "gomp-constants.h".
14509         (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
14510         hard-coding PTX_ID.
14512 2015-02-11  H.J. Lu  <hongjiu.lu@intel.com>
14514         * doc/sourcebuild.texi (pie_enabled): Document.
14516 2015-02-11  Martin Liska  <mliska@suse.cz>
14518         PR ipa/64813
14519         * cgraphunit.c (cgraph_node::expand_thunk): Do not create
14520         a return value for call to a function that is noreturn.
14522 2015-02-11  Richard Biener  <rguenther@suse.de>
14524         PR lto/65015
14525         * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
14526         and -fresolution.
14528 2015-02-11  Andrew Pinski  <apinski@cavium.com>
14530         PR target/64893
14531         * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
14532         Change the first argument type to size_type_node and add another
14533         size_type_node.
14534         (aarch64_simd_expand_builtin): Handle the new argument to
14535         AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
14536         print an out when the first two arguments are not
14537         nonzero integer constants.
14538         * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
14539         Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
14541 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
14543         PR target/61925
14544         * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
14545         (ix86_reset_previous_fndecl): Restore it here, unconditionally.
14546         (ix86_set_current_function): Rewritten.
14547         (ix86_add_new_builtins): Temporarily clear current_target_pragma
14548         when creating builtin fndecls.
14550 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
14552         PR ipa/65005
14553         * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
14554         function.
14555         * symtab.c (symtab_node::verify_base): Remove check that non-definitions
14556         have no comdat group.
14557         * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
14558         (lto_output_varpool_node): Always output alias info.
14559         (output_refs): Output refs of boundary aliases, too.
14560         (compute_ltrans_boundary): Add alias and thunk target into boundaries.
14561         (output_symtab): Output call eges in thunks in boundary.
14562         (get_alias_symbol): Remove.
14563         (input_node, input_varpool_node): Do not special case weakrefs.
14564         * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
14565         alias and thunks targets in the boundary; do not take removed symbols
14566         from their comdat groups.
14567         * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
14568         (cgraph_node::global_info): Remove.
14569         (cgraph_node::rtl_info): Look through aliases and thunks.
14570         * cgrpah.h (global_info): Remove.
14571         (non_local_p): Remove.
14573 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
14574             Sandra Loosemore  <sandra@codesourcery.com>
14576         * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
14577         to inline asm.  List dialects in proper order.
14579 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
14580             Sandra Loosemore  <sandra@codesourcery.com>
14582         * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
14584 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
14586         * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
14587         modified) reference to Solaris.
14589 2015-02-10  Sandra Loosemore  <sandra@codesourcery.com>
14591         * doc/extend.texi (Extended Asm): Fix typos.
14593 2015-02-10  Jakub Jelinek  <jakub@redhat.com>
14595         PR sanitizer/65004
14596         * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
14598 2015-02-10  Oleg Endo  <olegendo@gcc.gnu.org>
14600         PR target/64661
14601         * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
14602         TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
14603         TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
14604         * config/sh/constraints.md (Ara, Add): New constraints.
14605         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
14606         predicates.
14607         (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
14608         atomic_mem_operand_0.  Don't use force_reg on the memory address.
14609         (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
14610         Sra constraint.  Convert to insn_and_split.  Add workaround for
14611         PR 64974.
14612         (atomic_compare_and_swap<mode>_hard): Copy to
14613         atomic_compare_and_swap<mode>_hard_1.  Convert to insn_and_split.
14614         Use atomic_mem_operand_0 predicate.
14615         (atomic_compare_and_swap<mode>_soft_gusa,
14616         atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
14617         AraAdd constraints.
14618         (atomic_compare_and_swap<mode>_soft_tcb,
14619         atomic_compare_and_swap<mode>_soft_imask,
14620         atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
14621         atomic_mem_operand_0 predicate and SraSdd constraints.
14622         (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
14623         constraint.
14624         (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
14625         Convert to insn_and_split.  Use atomic_mem_operand_0 predicate.
14626         (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
14627         atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1.  Don't use
14628         force_reg on the memory address.
14629         (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
14630         atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
14631         atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
14632         atomic_mem_operand_1 predicate and Sra constraint.
14633         (atomic_fetch_<fetchop_name><mode>_hard): Copy to
14634         atomic_fetch_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
14635         Use atomic_mem_operand_1 predicate.
14636         (atomic_<fetchop_name><mode>_hard): Copy to
14637         atomic_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
14638         Use atomic_mem_operand_1 predicate.
14639         (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
14640         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
14641         (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1.  Convert to
14642         insn_and_split.  Use atomic_mem_operand_1 predicate.
14643         (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
14644         atomic_<fetchop_name>_fetch<mode>_hard_1.  Convert to insn_and_split.
14645         Use atomic_mem_operand_1 predicate.
14646         (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
14647         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
14648         (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
14649         in generated insn with original mem operand before emitting the insn.
14650         (atomic_fetch_<fetchop_name><mode>_soft_gusa,
14651         atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
14652         atomic_<fetchop_name>_fetch<mode>_soft_gusa,
14653         atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
14654         Use atomic_mem_operand_1 predicate and AraAdd constraints.
14655         (atomic_fetch_<fetchop_name><mode>_soft_tcb,
14656         atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
14657         atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
14658         atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
14659         atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
14660         atomic_<fetchop_name>_fetch<mode>_soft_tcb,
14661         atomic_not_fetch<mode>_soft_tcb,
14662         atomic_<fetchop_name>_fetch<mode>_soft_imask,
14663         atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
14664         atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
14665         Use atomic_mem_operand_1 predicate and SraSdd constraints.
14667 2015-02-10  Uros Bizjak  <ubizjak@gmail.com>
14669         * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
14670         and 3 earlyclobber operands.
14672 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
14674         * common.opt (fstack-reuse): Mark as optimization.
14676 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
14678         PR ipa/64982
14679         * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
14681 2015-02-10  Trevor Saunders  <tsaunders@mozilla.com>
14683         PR tree-optimization/64326
14684         * cfghooks.c (make_forwarder_block): Cap frequency of created block.
14686 2015-02-10  Rainer Emrich  <rainer@emrich-ebersheim.de>
14688         PR gcov-profile/61889
14689         * gcov-tool.c: Remove wrong #if !defined(_WIN32)
14691 2015-02-10  Richard Biener  <rguenther@suse.de>
14693         PR tree-optimization/64995
14694         * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
14695         value we use is final.
14696         (visit_reference_op_store): Always valueize op.
14697         (visit_use): Properly valueize vuses.
14699 2015-02-10  Richard Biener  <rguenther@suse.de>
14701         PR tree-optimization/64909
14702         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
14703         pass a scalar-stmt count estimate to the cost model.
14704         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
14706 2015-02-10  Alexander Monakov  <amonakov@ispras.ru>
14708         * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
14709         enabled by default together with var-tracking.
14711 2015-02-10  Nick Clifton  <nickc@redhat.com>
14713         * config/rl78/rl78.c: Remove DIV attribute code accidentally
14714         included in previous rl78 commit.
14716 2015-02-10  Richard Biener  <rguenther@suse.de>
14718         * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
14719         * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
14720         return the bitpack.
14722 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
14724         PR gcov-profile/61889
14725         * config.in: regenerate.
14726         * configure.in: Likewise.
14727         * configure.ac: Check for ftw.h.
14728         * gcov-tool.c: Check for ftw.h before using nftw.
14730 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
14732         PR lto/64076
14733         * ipa-visibility.c (update_visibility_by_resolution_info): Only
14734         assert when not in lto mode.
14736 2015-02-09  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
14738         * ira-color.c (setup_left_conflict_sizes_p): Simplify
14739         initialization/assignment of conflict_size.
14741 2015-02-09  Jan Hubicka  <hubicka@ucw.cz>
14743         PR ipa/64978
14744         * ipa-cp.c (gather_caller_stats): Skip thunks.
14745         (propagate_constants_topo): Skip aliases.
14747 2015-02-09  Kaz Kojima  <kkojima@gcc.gnu.org>
14749         PR target/64761
14750         * config/sh/sh.c (sh_option_override): Don't change
14751         -freorder-blocks-and-partition to -freorder-blocks even when
14752         unwinding is enabled.
14753         (sh_can_follow_jump): Return false if the followee jump is
14754         a crossing jump when -freorder-blocks-and-partition is specified.
14755         * config/sh/sh.md (*jump_compact_crossing): New insn.
14757 2015-02-09  Joern Rennecke  <joern.rennecke@embecosm.com>
14758             Kaz Kojima  <kkojima@gcc.gnu.org>
14760         PR target/64761
14761         * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
14762         * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
14763         (sh_can_redirect_branch): Rename to ...
14764         (sh_can_follow_jump): ... this.  Constify argument types.
14765         * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
14766         * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
14767         * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
14768         * doc/tm.texi: Regenerate.
14770 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
14772         PR sanitizer/64981
14773         * builtins.c (expand_builtin): Call targetm.expand_builtin
14774         for BUILT_IN_MD builtins regardless of asan_intercepted_p.
14776 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
14778         PR ipa/61548
14779         * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
14781 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
14783         PR ipa/63566
14784         * ipa-icf.c (set_local): New function.
14785         (sem_function::merge): Use it.
14787 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
14789         * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
14790         (add_type_duplicate): Fix comparison of BINFOs.
14792 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
14794         * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
14795         on getting VOID pointer.
14797 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
14799         PR target/64979
14800         * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
14801         va_list escapes.
14803 2015-02-09  Richard Biener  <rguenther@suse.de>
14805         * genmatch.c (replace_id): Copy expr_type.
14807 2015-02-09  Richard Biener  <rguenther@suse.de>
14809         * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
14810         (streamer_write_tree_bitfields): Declare.
14811         * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
14812         properly unpack padding.
14813         (unpack_value_fields): Inline ...
14814         (streamer_read_tree_bitfields): ... here.
14815         * tree-streamer-out.c (pack_ts_base_value_fields): Inline
14816         and properly add padding bits.
14817         (streamer_pack_tree_bitfields): Fold into ...
14818         (streamer_write_tree_bitfields): ... this new function,
14819         exposing the bitpack object.
14820         * lto-streamer-out.c (lto_write_tree_1): Call
14821         streamer_write_tree_bitfields.
14823 2015-02-09  Richard Biener  <rguenther@suse.de>
14825         PR tree-optimization/54000
14826         * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
14827         (struct ivopts_data): Add loop_loc member.
14828         (tree_ssa_iv_optimize_loop): Dump loop location.
14829         (create_new_ivs): Likewise, also dump number of IVs generated.
14831 2015-02-09  Martin Liska  <mliska@suse.cz>
14833         * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
14834         just if not yet registered.
14835         (ipa_icf_generate_summary): Register callgraph hooks.
14837 2015-02-08  Andrew Pinski  <apinski@cavium.com>
14839         * config/aarch64/aarch64.c (gty_dummy): Delete.
14841 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
14843         PR ipa/63566
14844         * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
14845         (cgraph_node::local_p): Remove thunk related FIXME.
14847 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
14849         PR ipa/63566
14850         * i386.c (ix86_function_regparm): Look through aliases to see if callee
14851         is local and optimized.
14852         (ix86_function_sseregparm): Likewise; also use target's SSE math
14853         settings; error out instead of silently generating wrong code
14854         on mismatches.
14855         (init_cumulative_args): Look through aliases.
14857 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
14859         PR ipa/63566
14860         * ipa-split.c (execute_split_functions): Split if function has aliases.
14862 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
14864         PR ipa/63566
14865         * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
14866         aliases before trying to expand it.
14867         (cgraph_node::expand_thunk): Fix formating.
14869 2015-02-07  Sandra Loosemore  <sandra@codesourcery.com>
14871         * doc/extend.texi (Function Attributes [naked]): Copy-edit.
14872         (Using Assembly Language with C): Expand introduction.
14873         (Basic Asm): Copy-edit.  Add more information about uses of
14874         basic asm.
14875         (Extended Asm): Copy-edit.  Document new escape syntax and
14876         %l[label] syntax.
14877         (Global Reg Vars): Copy-edit.
14878         (Local Reg Vars): Likewise.
14880 2015-02-06  David Edelsohn  <dje.gcc@gmail.com>
14882         PR debug/2714
14883         PR bootstrap/64256
14884         * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
14885         (DBX_CONTIN_CHAR): Define.
14887 2015-02-06  Sebastian Pop  <s.pop@samsung.com>
14888             Brian Rzycki  <b.rzycki@samsung.com>
14890         PR tree-optimization/64878
14891         * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
14892         (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
14893         Stop recursion at loop phi nodes after having visited a loop phi node.
14895 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
14897         * toplev.c (process_options): Change flag_ipa_ra before creating
14898         optimization_{default,current}_node.
14900         PR ipa/64896
14901         * cgraphunit.c (cgraph_node::expand_thunk): If
14902         restype is not is_gimple_reg_type nor the thunk_fndecl
14903         returns aggregate_value_p, set restmp to a temporary variable
14904         instead of resdecl.
14906 2015-02-06  Vladimir Makarov  <vmakarov@redhat.com>
14908         * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
14910 2015-02-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
14912         PR target/64205
14913         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
14914         add a general secondary reload handler for SDmode, unless we have
14915         both read/write support for SDmode.
14917 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
14919         PR middle-end/64937
14920         * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
14921         Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
14922         or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
14923         1 before, push it to abstract_vec.
14924         (dwarf2out_abstract_function): Adjust caller.  Don't call
14925         set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
14926         DECL_ABSTRACT_P flags for all abstract_vec elts.
14928 2015-02-06  Renlin Li  <renlin.li@arm.com>
14930         * tree-ssa-forwprop.c (execute): Keep location info while rewrite
14931         complex gimple.
14932         * tree-ssa.c (execute_update_addresses_taken): Likewise.
14934 2015-02-06  Jeff Law  <law@redhat.com>
14936         PR target/64889
14937         * config/h8300/h8300.c (push): New argument "in_prologue".
14938         Pass "in_prologue" along to "F".
14939         (h8300_push_pop): Corresponding changes.
14940         (h8300_expand_prologue): Likewise.
14941         (h8300_swap_into_er6): Likewise.  Do not set RTX_FRAME_RELATED_P.
14943 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
14945         PR rtl-optimization/64957
14946         PR debug/64817
14947         * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
14948         IOR rather than for AND.
14950 2015-02-06  Eric Botcazou  <ebotcazou@adacore.com>
14952         PR target/62631
14953         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
14954         of shift-add and (add + shift) operations.  Rename local variable.
14956 2015-02-05  Jeff Law  <law@redhat.com>
14958         PR target/17306
14959         * config/h8300/constraints.md (U): Correctly dectect
14960         "eightbit_data" memory addresses.
14961         * config/h8300/h8300.c (eightbit_constant_address_p): Also
14962         handle (const (plus (symbol_ref (x)))) where x is declared
14963         as an 8-bit data memory address.
14964         * config/h8300/h8300.md (call, call_value): Correctly detect
14965         "funcvec" functions.
14967         PR target/43264
14968         * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
14969         24 to 28 bits for the H8/300.
14971 2015-02-06  Alan Modra  <amodra@gmail.com>
14973         PR target/64876
14974         * config/rs6000/rs6000.c (chain_already_loaded): New function.
14975         (rs6000_call_aix): Use it.
14977 2015-02-05  Jan Hubicka <hubicka@ucw.cz>
14979         * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
14980         check.
14982 2015-02-05  Joern Rennecke  <joern.rennecke@embecosm.com>
14984         * config/h8300/constraints.md ("U" constraint): Use strict
14985         variant of REG_OK_FOR_BASE_P after reload has started.
14987 2015-02-04  Mantas Mikaitis  <mantas.mikaitis@arm.com>
14989         * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
14990         define to zero if !TARGET_NEON.
14991         (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
14993 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
14994             Trevor Saunders  <tsaunders@mozilla.com>
14996         PR ipa/61548
14997         * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
14999 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
15001         PR ipa/61548
15002         * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
15003         when removing varpool nodes.
15005 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
15007         PR ipa/61548
15008         * varpool.c (varpool_node::remove): Fix order of variables.
15010 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
15012         PR ipa/64686
15013         * ipa-inline.c (inline_small_functions): Fix ordering issue between
15014         speculation resolution and key updates.
15016 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
15018         * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
15019         about not letting any speculative edges unupdated.
15021 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
15023         PR gcov/64123
15024         * gcov-io.c (gcov_var): Export.
15026 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
15028         PR middle-end/64922
15029         * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
15030         edges that become speculative.
15032 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
15034         * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
15035         or DW_LANG_Fortran08.
15036         (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
15037         DW_LANG_Fortran08.
15038         (gen_compile_unit_die): Handle "GNU Fortran2003" and
15039         "GNU Fortran2008" language strings.
15040         * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
15041         * langhooks.h (lang_GNU_Fortran): New prototype.
15042         * langhooks.c (lang_GNU_Fortran): New function.
15043         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
15044         lang_GNU_Fortran.
15046 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
15048         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
15049         (RTX_OK_FOR_OLO10_P): Likewise.
15051 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
15053         * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
15055 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
15057         PR middle-end/64922
15058         * gimple.c: Include gimple-ssa.h.
15059         (maybe_remove_unused_call_args): New function.
15060         * gimple.h (maybe_remove_unused_call_args): Declare.
15061         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
15062         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
15063         * gimple-fold.c (gimple_fold_call): Likewise.
15065 2015-02-04  H.J. Lu  <hongjiu.lu@intel.com>
15067         PR rtl-optimization/64905
15068         * lra-eliminations.c (setup_can_eliminate): Clear hard frame
15069         pointer alignment if it isn't needed.
15071 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
15073         * config/aarch64/aarch64-cores.def: Add cortex-a72 and
15074         cortex-a72.cortex-a53.
15075         * config/aarch64/aarch64-tune.md: Regenerate.
15076         * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
15078 2015-02-04  Nick Clifton  <nickc@redhat.com>
15080         * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
15081         inside a MEM.
15083 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
15085         * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
15086         (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
15087         (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
15088         of DEF_BUILTIN.
15089         (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
15090         BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
15091         DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
15092         (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
15093         BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
15094         BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
15095         DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
15096         * tree-core.h (enum built_in_function): In between
15097         BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
15098         for builtins that use DEF_BUILTIN_CHKP macro.
15100 2015-02-04  Alexandre Oliva <aoliva@redhat.com>
15102         PR debug/64817
15103         * cfgexpand.c (expand_debug_expr): Compute unsignedp from
15104         operands for tcc_comparison exprs.  Fix typos.
15106         PR debug/64817
15107         * simplify-rtx.c (simplify_binary_operation_1): Simplify one
15108         of two XORs that have an intervening AND or IOR.
15110         PR debug/64817
15111         * simplify-rtx.c (simplify_binary_operation_1): Rewrite
15112         simplification of XOR of AND to not allocate new rtx before
15113         committing to a simplification.
15115 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15117         * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
15118         manual swaps in all peepholes.
15120 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15122         * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
15123         of manual swapping implementation.
15124         (aarch64_expand_vec_perm_const_1): Likewise.
15126 2015-02-04  James Greenhalgh <james.greenhalgh@arm.com>
15128         * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
15129         (generic_addrcost_table): Remove NAMED_PARAM.
15130         (cortexa57_addrcost_table): Likewise.
15131         (xgene1_addrcost_table): Likewise.
15132         (generic_regmove_table): Likewise.
15133         (cortexa53_regmove_table): Likewise.
15134         (xgene1_regmove_table): Likewise.
15135         (generic_vector_table): Likewise.
15136         (cortexa57_vector_table): Likewise.
15137         (xgene1_vector_table): Likewise.
15138         (generic_tunings): Likewise.
15139         (cortexa53_tunings): Likewise.
15140         (cortexa57_tunings): Likewise.
15141         (xgene1_tunings): Likewise.
15143 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
15145         * config/arm/arm-cores.def: Add cortex-a72 and
15146         cortex-a72.cortex-a53.
15147         * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
15148         * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
15149         * config/arm/arm-tune.md: Regenerate.
15150         * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
15151         "cortex-a72.cortex-a53".
15152         * doc/invoke.texi (ARM Options/-mtune): Likewise.
15154 2015-02-04  Nick Clifton  <nickc@redhat.com>
15156         PR target/64408
15157         * config/fr30/predicates.md (di_operand): Add SUBREG to the list
15158         of accepted codes.
15159         (nonimmediate_di_operand): Likewise.
15161         * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
15162         prefixes of known F5 using MSP430 MCUs.
15164 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15166         * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
15167         * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
15168         instead of __builtin_sqrt.
15170 2015-02-04  Ilya Enkovich  <ilya.enkovich@intel.com>
15172         * varasm.c (do_assemble_alias): Follow transparent alias
15173         chain for target.
15174         (default_assemble_visibility): Follow transparent alias
15175         chain for decl name.
15177 2015-02-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
15179         PR middle-end/62103
15180         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
15181         to compute size of referenced value in the constant case.
15183 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
15185         PR rtl-optimization/64756
15186         * cse.c (invalidate_dest): New function.
15187         (cse_insn): Use it.  If dest != SET_DEST (sets[i].rtl) and
15188         HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
15189         invalidate and do not record it.
15191 2015-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
15193         PR target/64660
15194         * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
15195         atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
15196         atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
15197         atomic_nand<mode>_soft_tcb): New insns.
15198         (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
15199         Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
15200         (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
15201         Split into atomic_not_fetchsi_hard if operands[0] is unused.
15202         (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
15203         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
15204         (atomic_fetch_not<mode>_hard): Convert to insn_and_split.  Split into
15205         atomic_not<mode>_hard if operands[0] is unused.
15206         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
15207         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
15208         if operands[0] is unused.
15209         (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split.  Split
15210         into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
15211         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
15212         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
15213         unused.
15214         (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split.  Split
15215         into atomic_not<mode>_soft_tcb if operands[0] is unused.
15216         (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
15217         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
15218         if operands[0] is unused.
15219         (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split.  Split
15220         into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
15221         (atomic_fetch_nandsi_hard): Convert to insn_and_split.  Split into
15222         atomic_nand_fetchsi_hard if operands[0] is unused.
15223         (atomic_fetch_nand<mode>_hard): Convert to insn_and_split.  Split into
15224         atomic_nand<mode>_hard if operands[0] is unused.
15225         (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split.  Split
15226         into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
15227         (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split.  Split
15228         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
15229         (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split.  Split
15230         into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
15231         (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
15232         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
15233         (atomic_not_fetch<mode>_hard): Convert to insn_and_split.  Split into
15234         atomic_not<mode>_hard if operands[0] is unused.
15235         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
15236         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
15237         unused.
15238         (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
15239         into atomic_not<mode>_soft_tcb if operands[0] is unused.
15240         (atomic_nand_fetch<mode>_hard): Convert to insn_and_split.  Split into
15241         atomic_nand<mode>_hard if operands[0] is unused.
15242         (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
15243         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
15245 2015-02-03  David Malcolm  <dmalcolm@redhat.com>
15247         PR jit/64810
15248         * Makefile.in (GCC_OBJS): Add gcc-main.o.
15249         * gcc-main.c: New file, containing "main" taken from gcc.c.
15250         * gcc.c (do_self_spec): Free decoded_options.
15251         (class driver): Move declaration to gcc.h.
15252         (main): Move declaration and implementation to new file
15253         gcc-main.c.
15254         (driver_get_configure_time_options): New function.
15255         * gcc.h (class driver): Move this declaration here, from
15256         gcc.c.
15257         (driver_get_configure_time_options): New declaration.
15259 2015-02-03  Jan Hubicka  <hubicka@ucw.cz>
15261         * ipa-inline-analysis.c (simple_edge_hints): Fix check for
15262         cross-module inlining.
15263         * cgraph.h (cgraph_node): Add flag merged.
15264         * ipa-icf.c (sem_function::merge): Maintain it.
15266 2015-02-03  Richard Sandiford  <richard.sandiford@arm.com>
15268         * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
15269         instead of OBJECT_P.
15271 2015-02-03  Eric Botcazou  <ebotcazou@adacore.com>
15273         PR target/62631
15274         * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
15275         (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
15276         * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
15277         int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
15279 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
15281         PR other/63504
15282         * combine.c (reg_n_sets_max): New variable.
15283         (can_change_dest_mode, reg_nonzero_bits_for_combine,
15284         reg_num_sign_bit_copies_for_combine, get_last_value_validate,
15285         get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
15286         (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
15287         (rest_of_handle_combine): Initialize reg_n_sets_max.
15289 2015-02-02  Jan Hubicka  <hubicka@ucw.cz>
15291         * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
15292         if some always_inline was inlined, apply changes before inlining
15293         heuristically.
15295 2015-02-02  David Malcolm  <dmalcolm@redhat.com>
15297         PR jit/64810
15298         * config/arm/arm.c (arm_option_override): Set
15299         arm_selected_arch/cpu/tune to NULL on entry.
15301 2015-02-02  Tejas Belagod  <tejas.belagod@arm.com>
15302             Andrew Pinski  <pinskia@gcc.gnu.org>
15303             Jakub Jelinek  <jakub@gcc.gnu.org>
15305         PR target/64231
15306         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
15307         integer typing for small model. Use IN_RANGE.
15309 2015-02-02  Richard Biener  <rguenther@suse.de>
15311         * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
15312         * tree-vrp.c (vrp_valueize_1): Likewise.
15314 2015-02-02  Alan Modra  <amodra@gmail.com>
15316         * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
15317         than mem for toc_restore.
15318         * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
15319         (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
15320         (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
15322 2015-02-01  David Edelsohn  <dje.gcc@gmail.com>
15324         PR target/64047
15325         * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
15326         explicit default options.
15328 2015-02-01  Jan Hubicka  <hubicka@ucw.cz>
15330         PR ipa/64872
15331         * ipa-utils.c (ipa_merge_profiles): Add release argument.
15332         * ipa-icf.c (sem_function::merge): Do not release body when merging.
15333         * ipa-utils.h (ipa_merge_profiles): Update prototype.
15335 2015-02-01  Jakub Jelinek  <jakub@redhat.com>
15337         PR debug/64817
15338         * cfgexpand.c (deep_ter_debug_map): New variable.
15339         (avoid_deep_ter_for_debug): New function.
15340         (expand_debug_expr): If TERed SSA_NAME is in
15341         deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
15342         instead of trying to expand SSA_NAME's def stmt.
15343         (expand_debug_locations): When expanding debug bind
15344         of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
15345         temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
15346         value.
15347         (pass_expand::execute): Call avoid_deep_ter_for_debug on
15348         all debug bind stmts.  Delete deep_ter_debug_map after
15349         expand_debug_location if non-NULL and clear it.
15351 2015-02-01  Oleg Endo  <olegendo@gcc.gnu.org>
15353         PR target/64851
15354         * config/sh/sync.md (atomic_fetch_notsi_hard,
15355         atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
15356         atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
15357         atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
15358         atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
15359         atomic_not_fetch<mode>_soft_imask): New insns.
15361 2015-02-01  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
15363         * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
15364         (rank_for_schedule_debug): Split from ...
15365         (rank_for_schedule): ... this.
15366         (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
15367         * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
15369 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
15371         * doc/md.texi (Machine Constraints): Alphabetize table by target.
15372         * doc/extend.texi (x86 Variable Attributes): Move section to
15373         correct alphabetization after renaming.
15374         (x86 Type Attributes): Likewise.
15375         (Target Builtins): Re-alphabetize menu.
15376         (x86 Built-in Functions): Move section to correct alphabetization
15377         after renaming.
15378         (x86 transactional memory intrinsics): Likewise.
15379         * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
15380         and x86 Windows Options in table and menu.
15381         (x86 Options): Move section to correct alphabetization after
15382         renaming.
15383         (x86 Windows Options): Likewise.
15385 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
15387         * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
15388         preferred names of the architecture and its 32- and 64-bit
15389         variants.
15390         * doc/invoke.texi: Likewise.
15391         * doc/md.texi: Likewise.
15393 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
15395         PR target/64882
15396         * config/i386/predicates.md (address_no_seg_operand): Reject
15397         non-CONST_INT_P operands in invalid mode.
15399 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
15401         * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
15402         address_operand 0.  Rename from *prefetch_prefetchwt1_<mode>.
15403         * config/i386/predicates.md (address_no_seg_operand): Call
15404         address_operand with VOIDmode.
15405         (vsib_address_operand): Ditto.
15406         (address_mpx_no_base_operand): Ditto.
15407         (address_mpx_no_index_operand): Ditto.
15409 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
15411         PR target/64688
15412         * lra-constraints.c (original_subreg_reg_mode): New.
15413         (simplify_operand_subreg): Try to simplify subreg of const.  Use
15414         original_subreg_reg_mode for it.
15415         (swap_operands): Update original_subreg_reg_mode.
15416         (curr_insn_transform): Set up original_subreg_reg_mode.
15418 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
15420         PR target/64617
15421         * lra-constraints.c (prohibited_class_reg_set_mode_p): New
15422         function.
15423         (process_alt_operands): Use it.
15424         (curr_insn_transform): Check the optional reload pseudo class is
15425         ok for the mode.
15427 2015-01-30  Joseph Myers  <joseph@codesourcery.com>
15429         * diagnostic.c (fatal_error (const char *, ...)): Remove function.
15430         * diagnostic-core.h (fatal_error (const char *, ...)): Remove
15431         prototype.
15432         * toplev.h (init_asm_output): Update comment on use of
15433         UNKNOWN_LOCATION with fatal_error.
15434         * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
15435         config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
15436         config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
15437         config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
15438         config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
15439         config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
15440         config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
15441         ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
15442         lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
15443         lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
15444         tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
15445         fatal_error changed to pass input_location as first argument.
15447 2015-01-30  Martin Liska  <mliska@suse.cz>
15449         * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
15450         in #pragma GCC diagnostic guards.
15452 2015-01-30  Richard Biener  <rguenther@suse.de>
15454         PR tree-optimization/64829
15455         * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
15456         not add a widening conversion pattern but hand off extra
15457         widenings to callers.
15458         (vect_recog_widen_mult_pattern): Handle extra widening produced
15459         by vect_handle_widen_op_by_const.
15460         (vect_recog_widen_shift_pattern): Likewise.
15461         (vect_pattern_recog_1): Remove excess vertical space in dumping.
15462         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
15463         (vect_init_vector_1): Likewise.
15464         (vect_get_vec_def_for_operand): Likewise.
15465         (vect_finish_stmt_generation): Likewise.
15466         (vectorizable_load): Likewise.
15467         (vect_analyze_stmt): Likewise.
15468         (vect_is_simple_use): Likewise.
15470 2015-01-29  Jeff Law  <law@redhat.com>
15472         * combine.c (try_combine): Fix typo in comment.
15474 2015-01-29  Segher Boessenkool  <segher@kernel.crashing.org>
15476         PR target/64580
15477         * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
15478         (rs6000_stack_info): Add assert.
15479         (rs6000_output_savres_externs): New function, split off from...
15480         (rs6000_output_function_prologue): ... here.  Do not call it for
15481         thunks.
15483 2015-01-29  Jeff Law  <law@redhat.com>
15485         PR target/15184
15486         * combine.c (try_combine): If I0 is a memory load and I3 a store
15487         to a related address, increase the "goodness" of doing a 4-insn
15488         combination with I0-I3.
15489         (make_field_assignment): Handle SUBREGs in the ior+and case.
15491 2015-01-29  Yuri Rumyantsev  <ysrumyan@gmail.com>
15493         PR tree-optimization/64746
15494         * tree-if-conv.c (mask_exists): New function.
15495         (predicate_mem_writes): Save created mask with given size for further
15496         use.
15497         (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
15498         (ifcvt_repair_bool_pattern): Collect all statements that are root
15499         of bool pattern and use iterative algorithm to remove multiple uses
15500         of predicates, display number of required iterations.
15502 2015-01-29  Richard Biener  <rguenther@suse.de>
15504         PR tree-optimization/64853
15505         * tree-vrp.c (vrp_valueize_1): Do not return anything if the
15506         stmt will get simulated again.
15507         * tree-ssa-ccp.c (valueize_op_1): Likewise.
15509 2015-01-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15511         * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
15512         return_in_pc.  Remove redundant assignments.
15513         (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
15514         (arm_expand_epilogue): Don't compare boolean with true in if condition.
15516 2015-01-29  Uros Bizjak  <ubizjak@gmail.com>
15518         * config/i386/i386.c (ix86_mode_after): Make static.
15520 2015-01-29  Richard Biener  <rguenther@suse.de>
15522         PR tree-optimization/64844
15523         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
15524         dump cost model analysis.
15525         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
15526         Do not register adjusted load/store costs here.
15528 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
15529             Uros Bizjak  <ubizjak@gmail.com>
15531         * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
15532         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
15533         using x86_use_pseudo_pic_reg.
15534         * config/i386/i386.c (ix86_conditional_register_usage): Remove
15535         support for fixed PIC register.
15536         (ix86_use_pseudo_pic_reg): Not static any more.
15538 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
15540         PR middle-end/64805
15541         * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
15542         to avoid error in cgraph node verification.
15544 2015-01-29  Marek Polacek  <polacek@redhat.com>
15546         * doc/standards.texi: Reflect that the default for C is gnu11.
15548 2015-01-29  Kaz Kojima  <kkojima@gcc.gnu.org>
15550         PR target/64761
15551         * reorg.c (switch_text_sections_between_p): New function.
15552         (relax_delay_slots): Call it when testing if the jump insn
15553         is removable.  Use targetm.can_follow_jump when testing if
15554         the conditional branch can follow an unconditional jump.
15556 2015-01-27  Caroline Tice  <cmtice@google.com>
15558         Committing VTV Cywin/Ming patch for Patrick Wollgast
15559         * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
15560         if -fvtable-verify=preinit/std is used.
15561         * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
15562         * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
15563         * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
15564         if -fvtable-verify=preinit/std is used.
15565         * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
15566         * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
15567         if -fvtable-verify=preinit/std is used.
15568         * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
15569         * config/i386/mingw32.h (LIB_SPEC): Likewise.
15570         * varasm.c (assemble_variable): Add code to properly set the comdat
15571         section and name for the .vtable_map_vars section in case the
15572         target is PE or COFF.
15574 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
15576         PR ipa/64801
15577         * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
15578         make sane BB profile.
15579         (cgraph_node::expand_thunk): Make sane BB profile.
15580         (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
15581         * cgraph.h (init_lowered_empty_function): Update prototype.
15582         * config/i386/i386.c (make_resolver_func): Update call.
15583         * predict.c (gate): Disable branch prediction pass if
15584         profile is already there.
15586 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
15588         * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
15589         * opth-gen.awk: Likewise.
15590         * common.opt: Mark flag_fp_contract_mode as Optimization.
15592 2015-01-29  Bernd Edlinger  <bernd.edlinger@hotmail.de>
15594         * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
15595         * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
15597 2015-01-28  Oleg Endo  <olegendo@gcc.gnu.org>
15599         PR target/64659
15600         * config/sh/predicates.md (atomic_arith_operand,
15601         atomic_logical_operand): Remove.
15602         * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
15603         (atomic_arith_operand_0): New predicate.
15604         (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
15605         Use atomic_arith_operand_0 for input values.
15606         (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
15607         atomic_compare_and_swap<mode>_soft_gusa,
15608         atomic_compare_and_swap<mode>_soft_tcb,
15609         atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
15610         arith_reg_operand instead of register_operand.
15611         (atomic_exchange<mode>): Use arith_reg_dest for output value.  Use
15612         atomic_arith_operand_0 for newval input.
15613         (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
15614         atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
15615         atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
15616         arith_reg_operand instead of register_operand.
15617         (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
15618         fetchop_predicate_1, fetchop_constraint_1_llcs,
15619         fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
15620         fetchop_constraint_1_imask): New code iterator attributes.
15621         (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
15622         register_operand.  Use fetchop_predicate_1.
15623         (atomic_fetch_<fetchop_name>si_hard,
15624         atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
15625         register_operand.  Use fetchop_predicate_1, fetchop_constraint_1_llcs.
15626         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
15627         and arith_reg_operand instead of register_operand.  Use
15628         fetchop_predicate_1, fetchop_constraint_1_gusa.
15629         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
15630         and arith_reg_operand instead of register_operand.  Use
15631         fetchop_predicate_1, fetchop_constraint_1_tcb.  Adjust asm sequence
15632         to allow R0 usage.
15633         (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
15634         and arith_reg_operand instead of register_operand.  Use
15635         fetchop_predicate_1, fetchop_constraint_1_imask.  Adjust asm sequence
15636         to allow R0 usage.
15637         (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
15638         register_operand.  Use atomic_logical_operand_1.
15639         (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
15640         atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
15641         arith_reg_operand instead of register_operand.
15642         (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
15643         Use arith_reg_dest and arith_reg_operand instead of register_operand.
15644         Use logical_operand and rK08.  Adjust asm sequence to allow R0 usage.
15645         (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
15646         register_operand.  Use fetchop_predicate_1.
15647         (atomic_<fetchop_name>_fetchsi_hard,
15648         atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
15649         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
15650         fetchop_constraint_1_llcs.
15651         (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
15652         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
15653         fetchop_constraint_1_gusa.
15654         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
15655         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
15656         fetchop_constraint_1_tcb.  Adjust asm sequence to allow R0 usage.
15657         (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
15658         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
15659         fetchop_constraint_1_imask.  Adjust asm sequence to allow R0 usage.
15660         (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
15661         register_operand.  Use atomic_logical_operand_1.
15662         (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
15663         atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
15664         arith_reg_operand instead of register_operand.
15665         (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
15666         arith_reg_operand instead of register_operand.  Use logical_operand
15667         and K08.  Adjust asm sequence to allow R0 usage.
15668         (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
15669         arith_reg_operand instead of register_operand.  Use logical_operand
15670         and K08.
15672 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
15674         PR other/63504
15675         * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
15676         Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
15677         (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
15678         only get_full_len HOST_WIDE_INTs from get_val () array rather than
15679         all bits in *val_wide.
15681 2015-01-28  Jan Hubicka  <hubicka@ucw.cz>
15683         * varpool.c (tls_model_names): Fix names.
15684         (varpool_node::dump): Dump tls- prefix for tls models.
15686 2015-01-28  Thomas Schwinge  <thomas@codesourcery.com>
15687             Bernd Schmidt  <bernds@codesourcery.com>
15688             Nathan Sidwell  <nathan@codesourcery.com>
15690         * config/nvptx/mkoffload.c: New file.
15691         * config/nvptx/t-nvptx: Add build rules for it.
15692         * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
15693         (extra_programs): Add mkoffload.
15694         * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
15695         function.
15696         (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
15698 2015-01-28  Yuri Rumyantsev  <ysrumyan@gmail.com>
15700         PR middle-end/64809
15701         * cfgexpand.c (reorder_operands): Skip debug gimples.
15703 2015-01-28  Ilya Enkovich  <ilya.enkovich@intel.com>
15705         PR tree-optimization/64277
15706         * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
15707         range info when possible to refine estimation.
15709 2015-01-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
15711         PR tree-optimization/64718
15712         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
15713         be a 16bit unsigned integer when n->range is 16.
15714         (bswap_replace): Convert src to that type if necessary for all bswap
15715         sizes.  Fix rotation right notation in nearby comment.  Use bswap_type
15716         set in pass_optimize_bswap::execute ().
15718 2015-01-28  James Greenhalgh  <james.greenhalgh@arm.com>
15720         * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
15721         * config/aarch64/aarch64-simd-builtins.def (abs): Split by
15722         integer and floating point variants.
15723         * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
15725 2015-01-28  Robert Suchanek  <robert.suchanek@imgtec.com>
15727         * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
15728         for all vector modes.
15730 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
15732         PR bootstrap/64612
15733         * doc/sourcebuild.texi (comdat_group): Document.
15735 2015-01-28  Terry Guo  <terry.guo@arm.com>
15737         * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
15739 2015-01-27  David Malcolm  <dmalcolm@redhat.com>
15741         * toplev.c (print_version): Add param "show_global_state", and
15742         only print GGC and plugin information if it is true.
15743         (init_asm_output): Pass in "true" for the new param when calling
15744         print_version.
15745         (process_options): Likewise.
15746         (toplev::main): Likewise.
15747         * toplev.h (print_version): Add new param to decl.
15749 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
15751         PR ipa/60871
15752         PR ipa/64139
15753         * tree.c (lookup_binfo_at_offset): New function.
15754         (get_binfo_at_offset): Use it.
15756 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
15758         PR ipa/64282
15759         * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
15760         on vtable being vtable.
15762 2015-01-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
15764         * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
15765         * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
15766         -mhotpatch= option.
15767         * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
15768         -mno-hotpatch options.  Change syntax of -mhotpatch= option.
15769         * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
15770         Renamed.
15771         (s390_hotpatch_trampoline_halfwords_max): Renamed.
15772         (s390_hotpatch_hw_max): New name.
15773         (s390_hotpatch_trampoline_halfwords): Renamed.
15774         (s390_hotpatch_hw_before_label): New name.
15775         (get_hotpatch_attribute): Removed.
15776         (s390_hotpatch_hw_after_label): New name.
15777         (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
15778         attribute.
15779         (s390_attribute_table): Ditto.
15780         (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
15781         (s390_function_num_hotpatch_hw): New name.
15782         Remove special handling of inline functions and hotpatching.
15783         Return number of nops before and after the function label.
15784         (s390_can_inline_p): Removed.
15785         (s390_asm_output_function_label): Emit a configurable number of nops
15786         after the function label.
15787         (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
15788         (TARGET_CAN_INLINE_P) Removed.
15789         (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
15791 2015-01-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
15792             Jiong Wang  <jiong.wang@arm.com>
15794         * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
15795         of scratch reg.
15796         (cb<optab><mode>1): Likewise.
15797         * config/aarch64/iterators.md (bcond): New define_code_attr.
15799 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15801         * config/s390/s390.c (s390_memory_move_cost): Increase costs for
15802         memory accesses.
15804 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15806         * config/s390/s390.c (s390_register_move_cost): Increase costs for
15807         FPR->GPR moves.
15809 2015-01-27  Richard Biener  <rguenther@suse.de>
15811         * tree-vrp.c (update_value_range): Intersect the range with
15812         old recorded SSA name range information.
15814 2015-01-27  Nick Clifton  <nickc@redhat.com>
15816         * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
15817         BC, DE and HL registers directly, not via AX.
15818         When decrementing the stack pointer by a large amount, transfer SP
15819         into AX and perform the subtraction there.
15820         (rl78_expand_epilogue): Perform the inverse of the above
15821         enhancements.
15823 2015-01-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15825         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
15827 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
15828             Yury Gribov  <y.gribov@samsung.com>
15830         PR ubsan/64741
15831         * ubsan.c (ubsan_source_location): Refactor code.
15832         (ubsan_type_descriptor): Update type size. Refactor code.
15834 2015-01-27  Richard Biener  <rguenther@suse.de>
15836         PR tree-optimization/56273
15837         PR tree-optimization/59124
15838         PR tree-optimization/64277
15839         * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
15840         from the first VRP pass.
15842 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
15844         PR ipa/64776
15845         * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
15846         handle the first argument in the same loop as all the other arguments.
15848         PR rtl-optimization/61058
15849         * jump.c (cleanup_barriers): Update basic block boundaries
15850         if BLOCK_FOR_INSN is non-NULL on PREV.
15852 2015-01-27  Ilya Enkovich  <ilya.enkovich@intel.com>
15854         * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
15855         bounds narrowing, already instrumented calls and calls to
15856         not instrumentable functions.
15858 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
15860         PR tree-optimization/64807
15861         * wide-int.cc (wi::divmod_internal): Clear
15862         b_dividend[dividend_blocks_needed].
15864 2015-01-26  DJ Delorie  <dj@redhat.com>
15866         * config/rl78/rl78.c (move_elim_pass): Don't optimize away
15867         volatile memory references.
15869 2015-01-26  Oleg Endo  <olegendo@gcc.gnu.org>
15871         PR target/49263
15872         * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
15873         remove_insn.
15874         * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
15875         shifts if it already fits into K08.
15877 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
15879         PR ipa/64730
15880         * ipa-inline.c (inline_small_functions): Print "unknown" even
15881         if edge->call_stmt is non-NULL, but has builtins or unknown
15882         location.
15884         PR middle-end/64421
15885         * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
15886         with asterisk, skip the first character.
15888 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
15890         PR target/64806
15891         * config/i386/i386 (feature_priority): Revert the last P_POPCNT
15892         order change.
15894 2015-01-26  Uros Bizjak  <ubizjak@gmail.com>
15896         PR target/64795
15897         * config/i386/i386.md (*movdi_internal): Also check operand 0
15898         to determine TYPE_LEA operand.
15899         (*movsi_internal): Ditto.
15901 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
15903         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
15904         OPTION_MASK_QUAD_MEMORY_ATOMIC.
15906 2015-01-26  Renlin Li  <renlin.li@arm.com>
15908         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
15909         the comment.
15910         * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
15911         for higher part.
15913 2015-01-26  Richard Biener  <rguenther@suse.de>
15915         PR middle-end/64764
15916         * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
15917         combining two BIT_AND_EXPR predicates.
15919 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
15921         PR bootstrap/64754
15922         * tree-ssa-structalias.c (new_var_info): Initialize ruid.
15924 2015-01-26  Terry Guo  <terry.guo@arm.com>
15926         * config/arm/arm.c (arm_file_start): Update the assignment of
15927         Tag_ABI_HardFP_use.
15929 2015-01-25  James Greenhalgh  <james.greenhalgh@arm.com>
15931         * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
15932         pipeline model.
15933         config/arm/arm.md: Include the new Cortex-A57 model.
15934         (generic_sched): Don't use generic_sched when tuning for
15935         Cortex-A57.
15937 2015-01-25  Allan Sandfeld Jensen  <sandfeld@kde.org>
15938             Uros Bizjak  <ubizjak@gmail.com>
15940         * config/i386/i386.c (get_builtin_code_for_version): Add
15941         support for BMI and BMI2 multiversion functions.
15943 2015-01-25  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
15945         * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
15946         (extract_bit_field): Likewise.
15947         (extract_low_bits): Likewise.
15948         (expand_mult): Likewise.
15949         (expand_mult_highpart_adjust): Likewise.
15951 2015-01-24  H.J. Lu  <hongjiu.lu@intel.com>
15953         * config/i386/driver-i386.c (host_detect_local_cpu): Check new
15954         Silvermont, Haswell, Broadwell and Knights Landing model numbers.
15955         * config/i386/i386.c (processor_model): Add
15956         M_INTEL_COREI7_BROADWELL.
15957         (arch_names_table): Add "broadwell".
15959 2015-01-24  Oleg Endo  <olegendo@gcc.gnu.org>
15961         PR target/49263
15962         PR target/53987
15963         PR target/64345
15964         PR target/59533
15965         PR target/52933
15966         PR target/54236
15967         PR target/51244
15968         * config/sh/sh-protos.h
15969         (sh_extending_set_of_reg::can_use_as_unextended_reg,
15970         sh_extending_set_of_reg::use_as_unextended_reg,
15971         sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
15972         sh_is_movrt_insn, sh_insn_operands_modified_between_p,
15973         sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
15974         sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
15975         (sh_treg_insns): New class.
15976         * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
15977         (scope_counter): New class.
15978         (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
15979         sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
15980         sh_extending_set_of_reg::can_use_as_unextended_reg,
15981         sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
15982         sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
15983         sh_split_treg_set_expr): New functions.
15984         (addsubcosts): Handle treg_set_expr.
15985         (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
15986         (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
15987         (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
15988         (sh_insn_operands_modified_between_p): Make non-static.
15989         * config/sh/predicates.md (zero_extend_movu_operand): Allow
15990         simple_mem_operand in addition to displacement_mem_operand.
15991         (zero_extend_operand): Don't allow zero_extend_movu_operand.
15992         (treg_set_expr, treg_set_expr_not_const01,
15993         arith_reg_or_treg_set_expr): New predicates.
15994         * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
15995         arith_or_int_operand instead of logical_operand.  Convert to
15996         insn_and_split.  Try to optimize constant operand in splitter.
15997         (tsthi_t, tstqi_t): Fold into *tst<mode>_t.  Convert to insn_and_split.
15998         (*tstqi_t_zero): Delete.
15999         (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
16000         (tstsi_t_and_not): Delete.
16001         (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
16002         Convert to insn_and_split.
16003         (unnamed split, tstsi_t_zero_extract_xor,
16004         tstsi_t_zero_extract_subreg_xor_little,
16005         tstsi_t_zero_extract_subreg_xor_big): Delete.
16006         (*tstsi_t_shift_mask): New insn_and_split.
16007         (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
16008         to recombine with surrounding insns when splitting.
16009         (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
16010         (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
16011         (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
16012         *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
16013         (*cbranch_div0s: Delete.
16014         (*addc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
16015         Try to recombine with surrounding insns when splitting.  Add operand
16016         order variants.
16017         (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
16018         (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
16019         *addc_r_r_msb, *addc_2r_msb): Delete.
16020         (*addc_2r_lsb): Rename to *addc_2r_t.  Use treg_set_expr.  Add operand
16021         order variant.
16022         (*addc_negreg_t): New insn_and_split.
16023         (*subc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
16024         Try to recombine with surrounding insns when splitting.
16025         Add operand order variants.
16026         (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
16027         insn_and_split patterns.
16028         (*rotcr): Use arith_reg_or_treg_set_expr.  Try to recombine with
16029         surrounding insns when splitting.
16030         (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
16031         (*rotcl): Likewise.  Add zero_extract variant.
16032         (*ashrsi2_31): New insn_and_split.
16033         (*negc): Convert to insn_and_split.  Use treg_set_expr.
16034         (*zero_extend<mode>si2_disp_mem): Update comment.
16035         (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
16036         condition.
16037         (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr.  Try to recombine
16038         with surrounding insns when splitting.
16039         (any_treg_expr_to_reg): New insn_and_split.
16040         (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
16041         *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
16042         *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
16043         *zero_extract_2): New single bit zero extract patterns.
16044         (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
16045         (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
16046         *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
16047         *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
16048         set destination.
16049         (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
16050         register_operand for set source.
16052 2015-01-23  Jan Hubicka  <hubicka@ucw.cz>
16054         * i386.opt (prefetch_sse): New targetsave.
16055         * i386.c (ix86_function_specific_save): Save prefetch_sse.
16056         (ix86_function_specific_restore): Restore prefetch_sse and initialize
16057         ix86_cost/ix86_tune_cost.
16059 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
16061         * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
16062         Support the JIT by using 0 as the language type.
16064 2015-01-23  Vladimir Makarov  <vmakarov@redhat.com>
16066         PR target/64317
16067         * lra-lives.c (make_hard_regno_born): Add parameter.  Don't make
16068         REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
16069         (mark_regno_live, process_bb_lives): Pass new parameter value to
16070         make_hard_regno_born.
16072 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
16074         PR rtl-optimization/63637
16075         PR rtl-optimization/60663
16076         * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
16077         if elt->cost is MAX_COST for ASM_OPERANDS.
16078         (find_sets_in_insn): Fix up comment typo.
16079         (cse_insn): Don't set src_volatile for all non-volatile
16080         ASM_OPERANDS in PARALLELs, but just those with multiple outputs
16081         or with "memory" clobber.  Set elt->cost to MAX_COST
16082         for ASM_OPERANDS in PARALLEL.  Set src_elt->cost to MAX_COST
16083         if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
16085 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
16087         * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
16088         alternative 1.
16090 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
16092         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
16093         libgcc/config/i386/elf-lib.h.
16095 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
16097         PR driver/64737
16098         * gcc.c (print_configuration): Don't print a blank line at the end
16099         here...
16100         (run_attempt): ... but here unstead.
16102         PR middle-end/64734
16103         * omp-low.c (scan_sharing_clauses): Don't ignore
16104         OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
16105         on target data/update constructs.
16107 2015-01-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
16109         PR target/50928
16110         * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
16111         (DEBUG_RELOAD): Removed define.
16112         (m32c_limit_reload_class): Enable traces with if DEBUG0.
16113         (m32c_function_arg): Added a type cast.
16114         (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
16115         * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
16116         * config/m32c/bitops.md (andqi3_16): Likewise.
16117         * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
16118         (push_a01_l): Likewise.
16120 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
16122         PR jit/64721
16123         * main.c (main): Construct toplev instances with init_signals=true.
16124         * toplev.c (general_init): Add param "init_signals", and use it to
16125         conditionalize the calls to signal and host_hooks.extra_signals.
16126         (toplev::toplev): Add param "init_signals".
16127         (toplev::main): When invoking general_init, pass m_init_signals
16128         to control whether signal-handlers are installed.
16129         * toplev.h (toplev::toplev): Add param "init_signals".
16130         (toplev::m_init_signals): New field.
16132 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
16134         PR jit/64722
16135         * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
16136         NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
16137         latter may be affected by the former (e.g. on i686).
16139 2015-01-23  Martin Liska  <mliska@suse.cz>
16141         * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
16142         false positive during profiledbootstrap.
16144 2015-01-23  Tom de Vries  <tom@codesourcery.com>
16146         PR libgomp/64672
16147         * lto-opts.c (lto_write_options): Output non-explicit conservative
16148         -fno-openacc.
16149         * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
16150         (append_compiler_options): Pass -fopenacc through.
16152 2015-01-23  Tom de Vries  <tom@codesourcery.com>
16154         PR libgomp/64707
16155         * lto-opts.c (lto_write_options): Output non-explicit conservative
16156         -fno-openmp.
16157         * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
16158         (append_compiler_options): Pass -fopenmp through.
16160 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
16162         PR debug/64511
16163         * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
16164         GTY markup.
16166         * diagnostic-core.h (internal_error_no_backtrace): New prototype.
16167         * diagnostic.def (DK_ICE_NOBT): New kind.
16168         * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
16169         like DK_ICE, but never print backtrace.
16170         (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
16171         (internal_error_no_backtrace): New function.
16172         * gcc.c (execute): Use internal_error_no_backtrace instead of
16173         internal_error.
16175 2015-01-22  Jeff Law  <law@redhat.com>
16177         PR target/52076
16178         * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
16179         improve code density for small immediate to memory case.
16180         (insv): Better handle bitfield assignments when the field is
16181         being set to all ones.
16182         * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
16183         operand predicate.
16185 2015-01-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16186             Jakub Jelinek  <jakub@redhat.com>
16188         PR middle-end/64729
16189         * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
16190         for !TARGET_LIBC_PROVIDES_SSP version and
16191         -fstack-protector-{all,strong,explicit} otherwise.
16192         * config/freebsd.h (LINK_SSP_SPEC): Handle
16193         -fstack-protector-{strong,explicit}.
16195 2015-01-22  Jan Hubicka  <hubicka@ucw.cz>
16196             H.J. Lu  <hongjiu.lu@intel.com>
16198         PR ipa/64694
16199         * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
16200         heap.
16202 2015-01-22  Wei Mi  <wmi@google.com>
16204         PR rtl-optimization/64557
16205         * dse.c (record_store): Call get_addr for mem_addr.
16206         (check_mem_read_rtx): Likewise.
16208 2015-01-22  Eric Botcazou  <ebotcazou@adacore.com>
16210         * fold-const.c (const_binop): Add early return for non-tcc_binary.
16212 2015-01-22  Chen Gang  <gang.chen.5i5j@gmail.com>
16214         * toplev.c (init_local_tick): Process the failure when read
16215         fails for random_seed.
16217         * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
16218         'pretty_name' to avoid memory overflow.
16220 2015-01-22  Richard Biener  <rguenther@suse.de>
16222         PR middle-end/64728
16223         * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
16224         abnormal coalescing on undefined SSA names.
16226 2015-22-01  Uros Bizjak  <ubizjak@gmail.com>
16228         PR target/64688
16229         PR target/64477
16230         * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
16231         for alternative 3.
16232         (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
16234 2015-01-22  Trevor Saunders  <tsaunders@mozilla.com>
16236         PR middle-end/63325
16237         * fold-const.c (fold_checksum_tree): Don't include value of
16238         expr->decl_with_vis.symtab_node in the checksum.
16240 2015-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16242         * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
16244 2015-01-22  Max Ostapenko  <m.ostapenko@partner.samsung.com>
16246         PR driver/64690
16247         * gcc.c (insert_comments): New function.
16248         (try_generate_repro): Call it.
16249         (append_text): Removed.
16251 2015-01-22  Richard Biener  <rguenther@suse.de>
16253         * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
16254         with IL incompatible options.  Properly honor user optimize
16255         attributes.
16257 2015-01-21  Segher Boessenkool  <segher@kernel.crashing.org>
16259         PR rtl-optimization/64682
16260         * combine.c (distribute_notes): When moving a death note for
16261         a register that is set in the new I2, make sure to put it
16262         before that new I2.
16264 2015-01-21  David Edelsohn  <dje.gcc@gmail.com>
16266         * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
16267         not TARGET_DEFAULT.
16269 2015-01-21  Jakub Jelinek  <jakub@redhat.com>
16271         PR debug/64511
16272         * simplify-rtx.c (simplify_relational_operation_1): Don't try to
16273         optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
16274         into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
16276         PR sanitizer/64706
16277         * doc/invoke.texi (-fsanitize=vptr): Document.
16279         PR rtl-optimization/62078
16280         * dse.c: Include cfgcleanup.h.
16281         (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
16282         anything call purge_all_dead_edges and cleanup_cfg at the end
16283         of the pass.
16285 2015-01-21  Jan Hubicka  <hubicka@ucw.cz>
16287         * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
16288         edges.
16290 2015-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
16292         * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
16293         decl attribute.
16295 2015-01-21  David Sherwood  <david.sherwood@arm.com>
16296             Tejas Belagod <Tejas.Belagod@arm.com>
16298         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
16299         * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
16300         * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
16301         Removed.
16303 2015-01-21  David Sherwood  <david.sherwood@arm.com>
16304             Tejas Belagod <Tejas.Belagod@arm.com>
16306         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
16307         (aarch64_reverse_mask): New decls.
16308         * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
16309         (insn_count): New mode_attr.
16310         * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
16311         (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
16312         (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
16313         (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
16314         (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
16315         (aarch64_simd_st4): New patterns.
16316         * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
16317         (aarch64_reverse_mask): New functions.
16319 2015-01-21  Richard Sandiford  <richard.sandiford@arm.com>
16321         * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
16322         Declare.
16323         * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
16324         addressing modes for BE.
16325         (aarch64_print_operand): Add 'R' specifier.
16326         (aarch64_simd_disambiguate_copy): Delete.
16327         (aarch64_simd_emit_reg_reg_move): New function.
16328         * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
16329         in define_splits for structural moves.
16330         (mov<mode>): Use less restrictive predicates.
16331         (*aarch64_mov<mode>): Simplify and only allow for LE.
16332         (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
16334 2015-01-21  Alan Hayward  <alan.hayward@arm.com>
16336         * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
16338 2015-01-21  Richard Henderson  <rth@redhat.com>
16340         PR target/64669
16341         * ccmp.c (used_in_cond_stmt_p): Remove.
16342         (expand_ccmp_expr): Don't use it.
16344 2015-01-21  Nick Clifton  <nickc@redhat.com>
16346         * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
16347         PARALLELs.
16349 2015-01-21  Richard Biener  <rguenther@suse.de>
16351         PR middle-end/64313
16352         * tree-core.h (builtin_info, builtin_info_type): Turn from
16353         an object with two arrays into an array of an object with
16354         decl and two flags, implicit_p and declared_p.
16355         * tree.h (builtin_decl_explicit, builtin_decl_implicit,
16356         set_builtin_decl, set_builtin_decl_implicit_p,
16357         builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
16358         (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
16359         * builtins.c (builtin_info): Adjust.
16360         * gimplify.c (gimplify_addr_expr): References to builtins
16361         that have been declared by the user makes them eligible for
16362         use by the compiler.  Call set_builtin_decl_implicit_p on them.
16364 2015-01-20  Jeff Law  <law@redhat.com>
16366         PR target/59946
16367         * config/m68k/m68k.md (Comparison expanders and patterns): Do not
16368         allow pc-relative addresses in operand predicates or constraints.
16370 2015-01-21  Bin Cheng  <bin.cheng@arm.com>
16372         * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
16373         neon on aarch32 processors for stringops.
16375 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
16377         PR ipa/63576
16378         * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
16380 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
16382         PR lto/45375
16383         * ipa-inline.c: Include lto-streamer.h
16384         (report_inline_failed_reason): Output source file differences and
16385         flags on optimization/target node mismatch.
16386         (can_inline_edge_p): Consider caller to be the outer inline function;
16387         be less restrictive about matching opimize and optimize_size attributes.
16388         (inline_account_function_p): Break out from ...
16389         (inline_small_functions): ... here.
16390         * ipa-inline-transform.c (clone_inlined_nodes): Use
16391         inline_account_function_p.
16392         (inline_call): Use optimize attribution; use inline_account_function_p.
16393         (inline_transform): Use opt_for_fn.
16394         * ipa-inline.h (inline_account_function_p): Declare.
16396 2015-01-20  Jakub Jelinek  <jakub@redhat.com>
16398         PR debug/64663
16399         * dwarf2out.c (decl_piece_node): Don't put bitsize into
16400         mode if bitsize <= 0.
16401         (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
16402         dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
16403         sizes and positions.
16405 2015-01-20  Chung-Lin Tang  <cltang@codesourcery.com>
16407         * config/nios2/nios2.c (nios2_asm_file_end): Implement
16408         TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
16409         needed.
16410         (TARGET_ASM_FILE_END): Define.
16412 2015-01-20  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
16414         * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
16415         (struct tune_params): Use the enum.
16416         * arm.c (arm_*_tune): Update.
16417         (arm_option_override): Update.
16419 2015-01-20  Richard Biener  <rguenther@suse.de>
16421         PR ipa/64684
16422         * ipa-reference.c (add_static_var): Inline ...
16423         (analyze_function): ... here after splitting out from ...
16424         (is_proper_for_analysis): ... this.
16426 2015-01-20  Matthew Wahab  <matthew.wahab@arm.com>
16428         PR target/64149
16429         * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
16430         * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
16431         replace the conditional with it's true branch.
16432         * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
16433         (arm_lra_p): Remove.
16435 2015-01-20  Eric Botcazou  <ebotcazou@adacore.com>
16437         * config/visium/visium.h (LIB_SPEC): Adjust in default case.
16439 2015-01-20  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
16441         * config/tilegx/mul-tables.c: Move symtab.h include after
16442         coretypes.h include.
16443         * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
16444         vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
16445         flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
16446         wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
16447         explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
16449 2015-01-20  Igor Zamyatin  <igor.zamyatin@intel.com>
16451         PR bootstrap/64676
16452         Revert:
16453         2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
16455         PR rtl-optimization/64081
16456         * loop-iv.c (def_pred_latch_p): New function.
16457         (latch_dominating_def): Allow specific cases with non-single
16458         definitions.
16459         (iv_get_reaching_def): Likewise.
16460         (check_complex_exit_p): New function.
16461         (check_simple_exit): Use check_complex_exit_p to allow certain cases
16462         with exits not executing on any iteration.
16464 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
16466         PR lto/45375
16467         * i386.c (ix86_option_override_internal): Use ix86_tune_cost
16468         to set branch cost.
16470 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
16472         PR lto/45375
16473         * i386.c (gate): Check flag_expensive_optimizations and
16474         optimize_size.
16475         (ix86_option_override_internal): Drop optimize_size condition
16476         on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
16477         MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
16478         MASK_PREFER_AVX128.
16479         (ix86_avx256_split_vector_move_misalign,
16480         ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
16481         * sse.md (all uses of TARGET_PREFER_AVX128): Add
16482         optimize_insn_for_speed_p check.
16484 2015-01-19  Matthew Fortune  <matthew.fortune@imgtec.com>
16486         * config/mips/mips.h (FP_ASM_SPEC): New define.
16487         (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
16488         instead.
16490 2015-01-19  Oleg Endo  <olegendo@gcc.gnu.org>
16492         PR target/53988
16493         * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
16494         nullptr for insn when reaching the first insn.
16495         * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
16496         (sh_insn_operands_modified_between_p): Add nullptr check.
16497         (sh_find_extending_set_of_reg): Fix log message.  Don't accept
16498         sign extending mem load if the insn contains any UNSPEC or
16499         UNSPEC_VOLATILE.
16501 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
16503         * params.def (inline-unit-growth): Drop to 15%.
16504         * invoke.texi (inline-unit-growth): Document change.
16506 2015-01-19  Martin Liska  <mliska@suse.cz>
16508         PR ipa/64668
16509         * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
16510         function for second argument of OBJ_TYPE_REF.
16512 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
16514         PR ipa/64218
16515         * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
16516         whether function is an alias.
16518 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
16520         * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
16521         cases.
16523 2015-01-19  Vladimir Makarov  <vmakarov@redhat.com>
16525         PR rtl-optimization/64671
16526         * lra-remat.c (operand_to_remat): Don't consider jump and call
16527         insns.
16529 2015-01-19  David Edelsohn  <dje.gcc@gmail.com>
16531         PR target/59828
16532         * config/rs6000/default64.h: Include rs6000-cpus.def.
16533         (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
16534         (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
16535         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
16536         and POWER8.
16537         * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
16538         POWER8.
16539         * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
16540         pseudo-op to specify assembler dialect.
16542 2015-01-19  Martin Liska  <mliska@suse.cz>
16544         PR ipa/64664
16545         * ipa-icf.c (sem_item_optimizer::filter_removed_items):
16546         Handle safe potentially removed nodes during filtering.
16548 2015-01-19  Martin Liska  <mliska@suse.cz>
16550         * doc/extend.texi (no_icf): Add new attribute description.
16551         * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
16552         where the pass attempts to merge a function with no_icf attribute.
16554 2015-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
16556         PR target/64532
16557         * doc/md.texi (ARM Options): Document register constraints.
16559 2015-01-19  Jiong Wang  <jiong.wang@arm.com>
16560             Andrew Pinski  <apinski@cavium.com>
16562         PR target/64304
16563         * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
16564         (ashl<mode>3): Don't expand if operands[2] is not constant.
16566 2015-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16568         PR target/64448
16569         * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
16570         Match xor-and-xor RTL pattern.
16572 2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
16574         PR rtl-optimization/64081
16575         * loop-iv.c (def_pred_latch_p): New function.
16576         (latch_dominating_def): Allow specific cases with non-single
16577         definitions.
16578         (iv_get_reaching_def): Likewise.
16579         (check_complex_exit_p): New function.
16580         (check_simple_exit): Use check_complex_exit_p to allow certain cases
16581         with exits not executing on any iteration.
16583 2015-01-19  Jakub Jelinek  <jakub@redhat.com>
16585         * common.opt (fgraphite): Fix a typo.
16587 2015-01-19  Felix Yang  <felix.yang@huawei.com>
16589         * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
16590         pattern.
16591         * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
16592         uminp, smax_nanp, smin_nanp): New builtins.
16593         * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
16594         vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
16595         vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
16596         vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
16597         vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
16598         vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
16599         vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
16600         vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
16601         vpminnms_f32): Rewrite using builtin functions.
16603 2015-01-19  Thomas Schwinge  <thomas@codesourcery.com>
16605         PR libgomp/64625
16606         * omp-low.c (offload_symbol_decl): Remove variable.
16607         (get_offload_symbol_decl): Remove function.
16608         (expand_omp_target): For BUILT_IN_GOMP_TARGET,
16609         BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
16610         instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
16611         BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
16612         BUILT_IN_GOACC_UPDATE don't pass it at all.
16614 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
16616         * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
16617         callers.
16619 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
16621         * ipa-chkp.c (chkp_produce_thunks): Add early param
16622         to split thunks production into two passes.  Keep
16623         'always_inline' function bodies after the first pass.
16624         (pass_data_ipa_chkp_early_produce_thunks): New.
16625         (pass_ipa_chkp_early_produce_thunks): New.
16626         (pass_ipa_chkp_produce_thunks::execute): Adjust to new
16627         chkp_produce_thunks signature.
16628         (make_pass_ipa_chkp_early_produce_thunks): New.
16629         * passes.def (pass_ipa_chkp_early_produce_thunks): New.
16630         (pass_ipa_chkp_produce_thunks): Move after local optimizations.
16631         * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
16633 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
16635         * cgraph.c (cgraph_node::dump): Dump profile flags.
16637 2015-01-18  Oleg Endo  <olegendo@gcc.gnu.org>
16639         PR target/64652
16640         * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
16641         reg appear first in the parallel.
16643 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
16645         * ipa-reference.c (set_reference_optimization_summary,
16646         ipa_reference_get_not_written_global): Do nothing if ipa-reference is
16647         disabled.
16648         (ignore_module_statics): New static var.
16649         (propagate_bits): If ipa-reference is disabled, do not look into local
16650         properties.
16651         (analyze_function): Disable analysis when ipa_reference is disabled.
16652         (generate_summary): Do not dump when reference is disabled;
16653         collect vars accessed from functions with ipa-reference disabled.
16654         (get_read_write_all_from_node): When ipa-reference is disabled, use the
16655         node flags.
16656         (gate): Enable for LTO.
16657         (ignore_edge_p): New function.
16658         (propagate): Skip functions w/o ipa-reference analysis.
16659         * optc-save-gen.awk: Handle optimize_debug correctly.
16660         * opth-gen.awk: Likewise.
16661         * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
16662         fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
16663         fira-share-save-slots, fira-share-spill-slots,
16664         fmodulo-sched-allow-regmoves, fpartial-inlining,
16665         sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
16666         ftracer, ftree-parallelize-loops, fassociative-math,
16667         freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
16668         Optimization
16669         (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
16670         ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
16671         Optimization.
16672         * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
16673         Fix for IPA.
16675 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
16677         PR ipa/64378
16678         * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
16679         flag correctly.
16680         * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
16682 2015-01-18  Sandra Loosemore  <sandra@codesourcery.com>
16684         * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
16685         Remove duplicate option listings.
16687 2015-01-18  Felix Yang  <felix.yang@huawei.com>
16689         * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
16690         (autofdo_source_profile::get_callsite_total_count,
16691         function_instance::get_function_instance_by_decl,
16692         string_table::get_index, string_table::get_index_by_decl,
16693         afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
16694         Fix comment typos. Reformatting and minor code rearrangement.
16696 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
16698         * config/rs6000/rs6000.md (probe_stack): Delete.
16699         (probe_stack_address): New.
16701 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
16703         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
16704         to test for 32-bit ABIs, not !TARGET_POWERPC64.
16706 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
16708         * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
16709         (rs6000_function_value): Use it.  Handle SCmode and TCmode as well,
16710         for TARGET_32BIT && TARGET_POWERPC64.  Fix another BITS_PER_WORD
16711         snafu.
16712         (rs6000_libcall_value): Use the new function.
16714 2015-01-17  Sandra Loosemore  <sandra@codesourcery.com>
16716         * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
16718 2015-01-17  Eric Botcazou  <ebotcazou@adacore.com>
16720         * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
16721         implement a more precise life analysis for it during backward scan.
16723 2015-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
16725         * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
16727 2015-01-17  Bernd Schmidt  <bernds@codesourcery.com>
16729         PR rtl-optimization/52773
16730         * calls.c (emit_library_call_value): When pushing arguments use
16731         stack_pointer_rtx rather than virtual_outgoing_args_rtx in
16732         CALL_INSN_FUNCTION_USAGE.  Only emit one of use of the magic
16733         stack pointer reference into CALL_INSN_FUNCTION_USAGE.
16735 2015-01-17  Jeff Law  <law@redhat.com>
16737         PR rtl-optimization/32790
16738         * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
16739         not ZERO_EXTEND in SET_DESTs.
16741 2015-01-17  Alan Modra  <amodra@gmail.com>
16743         * cprop.c (do_local_cprop): Revert last change.
16745 2015-01-16  DJ Delorie  <dj@redhat.com>
16746             Nick Clifton  <nickc@redhat.com>
16748         * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
16749         (addhi3_real): Likewise.  Fix [HL+0] syntax.
16750         (subqi3_real): Likewise.
16751         (subhi3_real): Likewise.
16752         (cbranchqi4_real): Likewise.  Allow saddr,#imm.
16753         (cbranchhi4_real): Likewise.
16754         (cbranchhi4_real_inverted): Likewise.
16755         (cbranchsi4_real_lt): Likewise.
16756         (cbranchsi4_real_ge): Likewise.
16757         (cbranchsi4_real_ge): Likewise.
16758         * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
16759         (sub<mode>3_virt): Likewise.
16760         (cbranchqi4_virt): Likewise.
16761         (cbranchhi4_virt): Likewise.
16762         * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
16763         always use '[reg+imm]' even when imm is zero.
16764         * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
16765         (rl78_general_operand): New.
16766         (rl78_nonimmediate_operand): New.
16767         (rl78_nonfar_operand): Use them.
16768         (rl78_nonfar_nonimm_operand): Likewise.
16769         (rl78_stack_based_mem): Fix.
16770         * config/rl78/constraints.md (Ibqi): New.
16771         (IBqi): New.
16772         (Wsa): New.
16773         (Wsf): New.
16774         (Cs1): Fix.
16775         * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
16776         (iorqi3): Likewise.
16777         (xorqi3): Likewise.
16778         * config/rl78/rl78-protos.h (rl78_sfr_p): New.
16780         * config/rl78/constrains (Qs8): New constraint.
16781         * config/rl78/rl78.c (rl78_flags_already_set): New function.
16782         * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
16783         * config/rl78/rl78-real.md (update_Z): New attribute.
16784         Update patterns to set it.
16785         (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
16786         shorter compare and branch sequence can be used.
16787         (cbranchhi4_real): Likewise.
16788         (cbranchhi4_real_inverted): Likewise.
16790         * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
16791         * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
16792         address space.
16793         * config/rl78/rl78.c (rl78_get_name_encoding): New.
16794         (rl78_option_override): Allow -mes0 only if C.
16795         (characterize_address): Support subregs of symbol_refs.
16796         (rl78_addr_space_address_mode): Move.  Add __near.
16797         (rl78_far_p): Likewise.
16798         (rl78_addr_space_pointer_mode): Likewise.
16799         (rl78_as_legitimate_address): Likewise.
16800         (rl78_addr_space_subset_p): Likewise.
16801         (rl78_addr_space_convert): Likewise.
16802         (rl78_print_operand_1): Support 16-bit addressing of 32-bit
16803         symbols with -mes0.
16804         (transcode_memory_rtx): Don't copy ES if -mes0.  Allow symbol[BC]
16805         addressing.
16806         (rl78_alloc_physical_registers_op1): Change logic to prefer
16807         symbol[BC] addressing.
16808         (frodata_section): New.
16809         (rl78_asm_init_sections): Initialize it.
16810         (rl78_select_section): Put __far readonly symbols in .frodata.
16811         (rl78_make_type_far): New.
16812         (rl78_insert_attributes): Force all readonly symbols to be
16813         __far when -mes0.
16814         (rl78_asm_out_integer): New.
16815         * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
16816         * config/rl78/rl78.opt (-mes0): New.
16818         * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
16819         (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
16820         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
16821         * config/rl78/rl78-protos.h (rl78_output_labelref): New.
16822         (rl78_saddr_p): New.
16823         (rl78_output_aligned_common): New.
16824         * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
16825         (rl78_handle_saddr_attribute): New.
16826         (rl78_handle_naked_attribute): New.
16827         (rl78_attribute_table): Add saddr.
16828         (rl78_print_operand_1): Don't print '!' on saddr operands.
16829         (rl78_print_operand_1): Strip encodings.
16830         (rl78_sfr_p): New.
16831         (rl78_strip_name_encoding): New.
16832         (rl78_attrlist_to_encoding): New.
16833         (rl78_encode_section_info): New.
16834         (rl78_asm_init_sections): New.
16835         (rl78_select_section): New.
16836         (rl78_output_labelref): New.
16837         (rl78_output_aligned_common): New.
16838         (rl78_asm_out_integer): New.
16839         (rl78_asm_ctor_dtor): New.
16840         (rl78_asm_constructor): New.
16841         (rl78_asm_destructor): New.
16843         * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
16844         * config/rl78/rl78.c (rl78_expand_epilogue): Update.
16845         (transcode_memory_rtx): Update.
16846         (rl78_expand_epilogue): Use A_REG instead of 0.
16848 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
16850         * config/arm/arm-protos.h (struct tune_params): New field
16851         sched_autopref_queue_depth.
16852         * config/arm/arm.c (sched-int.h): Include header.
16853         (arm_first_cycle_multipass_dfa_lookahead_guard,)
16854         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
16855         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
16856         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
16857         (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
16858         (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
16859         (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
16860         (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
16861         Specify sched_autopref_queue_depth value.  Enabled for A15 and A57.
16862         * config/arm/t-arm (arm.o): Update.
16863         * haifa-sched.c (update_insn_after_change): Update.
16864         (rank_for_schedule): Use auto-prefetcher model, if requested.
16865         (autopref_multipass_init): New static function.
16866         (autopref_rank_for_schedule): New rank_for_schedule heuristic.
16867         (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
16868         variable for debug dumps.
16869         (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
16870         (autopref_multipass_dfa_lookahead_guard): New global function that
16871         implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
16872         (init_h_i_d): Update.
16873         * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
16874         * sched-int.h (enum autopref_multipass_data_status): New const enum.
16875         (autopref_multipass_data_): Structure for auto-prefetcher data.
16876         (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
16877         (struct _haifa_insn_data:autopref_multipass_data): New field.
16878         (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
16879         (autopref_multipass_dfa_lookahead_guard): Declare.
16881 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
16883         * rtlanal.c (get_base_term): Handle SCRATCH.
16885 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
16887         * config/aarch64/aarch64.c
16888         (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
16889         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
16890         * config/arm/arm.c
16891         (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
16892         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
16894 2015-01-17  Alan Modra  <amodra@gmail.com>
16896         * cprop.c (do_local_cprop): Disallow replacement of fixed
16897         hard registers.
16899 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16901         PR target/62066
16902         * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
16903         early return 0.
16905 2015-01-16  Bernd Edlinger  <bernd.edlinger@hotmail.de>
16907         * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
16908         * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
16910 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16912         * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
16913         * config/arm/thumb1.md: ... Here.
16915 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
16917         * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
16918         TImode for TARGET_32BIT.
16920 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
16922         * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
16923         TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
16924         as ...
16925         (rs6000_abi_word_mode): New function.
16927 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
16929         * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
16930         instead of UNITS_PER_WORD to describe the size of stack slots.
16932 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
16934         * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
16935         as rs6000_promote_function_mode.  Move comment to there.
16936         (rs6000_promote_function_mode): New function.
16938 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
16940         * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
16941         -mpowerpc64 is active.
16943 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
16945         PR middle-end/64353
16946         * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
16947         virtuals on start.
16949 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
16951         * config/arm/cortex-a57.md: Remove duplicate of file accidentally
16952         introduced in revision 219724.
16954 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16955             Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16957         PR target/64263
16958         * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
16959         destination is not a GP reg.
16960         (*movdi_aarch64): Likewise.
16962 2015-01-16  David Edelsohn  <dje.gcc@gmail.com>
16964         PR target/64623
16965         * config/rs6000/default64.h: Revert ISA change.
16967 2015-01-16  Richard Biener  <rguenther@suse.de>
16969         PR middle-end/64614
16970         * tree-ssa-uninit.c: Include tree-cfg.h.
16971         (MAX_SWITCH_CASES): New define.
16972         (convert_control_dep_chain_into_preds): Handle switch statements.
16973         (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
16974         (normalize_one_pred_1): Do not split bit-manipulations.
16975         Record (x & CST).
16977 2015-01-16  Richard Biener  <rguenther@suse.de>
16979         PR tree-optimization/64568
16980         * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
16981         complex load rewriting for TARGET_MEM_REFs.
16983 2015-01-16  Uros Bizjak  <ubizjak@gmail.com>
16985         * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
16987 2015-01-16  Matthew Wahab  <matthew.wahab@arm.com>
16989         PR target/64149
16990         * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
16991         variable.
16992         * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
16993         (aarch64_lra_p): Remove.
16995 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
16997         PR target/64363
16998         * ipa-chkp.h (chkp_instrumentable_p): New.
16999         * ipa-chkp.c: Include tree-inline.h.
17000         (chkp_instrumentable_p): New.
17001         (chkp_maybe_create_clone): Use chkp_instrumentable_p.
17002         Fix processing of not instrumentable functions.
17003         (chkp_versioning): Use chkp_instrumentable_p. Warn about
17004         not instrumentable functions.
17005         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
17006         chkp_instrumentable_p.
17007         * tree-inline.h (copy_forbidden): New.
17008         * tree-inline.c (copy_forbidden): Not static anymore.
17010 2015-01-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17012         * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
17013         ptr1, ptr2 unused.
17015 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
17017         * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
17018         type OP_OUT to OP_INOUT.
17020 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
17022         * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
17023         (high x) y) to y if x and y have the same base.
17025 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
17027         * config/arm/cortex-a57.md: New.
17028         * config/aarch64/aarch64.md: Include it.
17029         * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
17030         * config/aarch64/aarch64-tune.md: Regenerate.
17032 2015-01-16  Zhenqiang Chen  <zhenqiang.chen@arm.com>
17034         PR target/64015
17035         * ccmp.c (expand_ccmp_next): New function.
17036         (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
17037         and compare insn sequence.
17038         * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
17039         aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
17040         (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
17041         * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
17042         (*ccmp_ior): Changed to ccmp_ior<mode>.
17043         (cmp<mode>): New pattern.
17044         * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
17045         parameters.
17046         * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
17048 2015-01-16  Ilya Tocar  <ilya.tocar@intel.com>
17050         * config/i386/avx2intrin.h (_mm256_bslli_epi128,
17051         _mm256_bsrli_epi128): New.
17052         * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
17054 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
17056         * expmed.c (store_bit_field_using_insv): Improve warning message.
17057         Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
17059 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
17061         PR rtl-optimization/64011
17062         * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
17063         there is partial overflow.
17065 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
17067         * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
17068         prototype.
17069         (nds32_expand_epilogue_v3pop): Likewise.
17070         * config/nds32/nds32.md (sibcall): Define this for sibling call
17071         optimization.
17072         (sibcall_register): Likewise.
17073         (sibcall_immediate): Likewise.
17074         (sibcall_value): Likewise.
17075         (sibcall_value_register): Likewise.
17076         (sibcall_value_immediate): Likewise.
17077         (sibcall_epilogue): Likewise.
17078         (epilogue): Pass false to indicate this is not a sibcall epilogue.
17079         * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
17080         (nds32_expand_epilogue_v3pop): Likewise.
17082 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
17084         * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
17085         * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
17086         (return_internal): New.
17087         (return): Define this named pattern.
17088         (simple_return): Define this named pattern.
17089         * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
17090         pattern instead of unspec_volatile_func_return.
17091         (nds32_expand_epilogue_v3pop): Likewise.
17092         (nds32_can_use_return_insn): New function.
17094 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
17096         * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
17097         * config/nds32/nds32.md (pop25return): New.
17098         * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
17099         pop25return pattern.
17101 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
17103         * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
17104         -mforbid-fp-as-gp, and -mex9 options.
17106 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
17108         * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
17109         remove -mgp-direct option.
17111 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
17113         * doc/invoke.texi (--param early-inlining-insns): Update default value.
17114         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
17116 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
17118         * ipa-inline.c (inline_small_functions): Work around hints
17119         cache issue.
17121 2015-01-15  Sandra Loosemore  <sandra@codesourcery.com>
17123         PR target/59710
17124         * doc/invoke.texi (Option Summary): Document new Nios II
17125         -mgpopt= syntax.
17126         (Nios II Options): Likewise.
17127         * config/nios2/nios2.opt: Add -mgpopt= option support.
17128         Modify existing -mgpopt and -mno-gpopt options to be aliases.
17129         * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
17130         * config/nios2/nios2.c (nios2_option_override): Adjust
17131         -mgpopt defaulting.
17132         (nios2_in_small_data_p): Return true for explicit small data
17133         sections even with -G0.
17134         (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
17135         option choices.
17137 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
17139         PR ipa/64612
17140         * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
17141         of comdat locals.
17142         (inline_call): Fix removal of aliases.
17144 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
17146         * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
17147         include SANITIZE_VPTR in SANITIZE_UNDEFINED.
17148         * opts.c (common_handle_option): Add -fsanitize=vptr.
17149         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
17150         BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
17151         * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
17152         UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
17153         (ubsan_expand_vptr_ifn): New prototype.
17154         * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
17155         expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
17156         expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
17157         expand_LOOP_VECTORIZED): Make argument nameless, remove
17158         ATTRIBUTE_UNUSED.
17159         (expand_UBSAN_VPTR): New function.
17160         * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
17161         in fn spec.
17162         (UBSAN_VPTR): New internal function.
17163         * sanopt.c (tree_map_traits): Renamed to ...
17164         (sanopt_tree_map_traits): ... this.
17165         (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
17166         (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
17167         to sanopt_tree_map_traits renaming.  Add vptr_check_map field.
17168         (maybe_optimize_ubsan_vptr_ifn): New function.
17169         (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
17170         (pass_sanopt::execute): Likewise.  Call sanopt_optimize even for
17171         -fsanitize=vptr.
17172         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
17173         internal calls like pure functions for aliasing, even when they
17174         have other side-effects that prevent making them ECF_PURE.
17175         * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
17176         (ubsan_expand_vptr_ifn): New function.
17178 2015-01-15  Vladimir Makarov  <vmakarov@redhat.com>
17180         PR rtl-optimization/64110
17181         * stmt.c (parse_output_constraint): Process '^' and '$'.
17182         (parse_input_constraint): Ditto.
17183         * lra-constraints.c (process_alt_operands): Process the new
17184         constraints.
17185         * ira-costs.c (record_reg_classes): Process the new constraint
17186         '^'.
17187         * genoutput.c (indep_constraints): Add '^' and '$'.
17188         * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
17189         * doc/md.texi: Add description of the new constraints.
17191 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
17192             Bernd Schmidt  <bernds@codesourcery.com>
17193             Cesar Philippidis  <cesar@codesourcery.com>
17194             James Norris  <jnorris@codesourcery.com>
17195             Tom de Vries  <tom@codesourcery.com>
17196             Ilmir Usmanov  <i.usmanov@samsung.com>
17197             Dmitry Bocharnikov  <dmitry.b@samsung.com>
17198             Evgeny Gavrin  <e.gavrin@samsung.com>
17199             Jakub Jelinek  <jakub@redhat.com>
17201         * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
17202         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
17203         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
17204         New function types.
17205         * builtins.c: Include "gomp-constants.h".
17206         (expand_builtin_acc_on_device): New function.
17207         (expand_builtin, is_inexpensive_builtin): Handle
17208         BUILT_IN_ACC_ON_DEVICE.
17209         * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
17210         New macros.
17211         * cgraph.c (cgraph_node::create): Consider flag_openacc next to
17212         flag_openmp.
17213         * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
17214         <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
17215         i386/intelmic-offload.h.
17216         * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
17217         to libgomp and its dependencies.
17218         * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
17219         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
17220         * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
17221         * config/ia64/hpux.h (LIB_SPEC): Likewise.
17222         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
17223         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
17224         * doc/generic.texi: Update for OpenACC changes.
17225         * doc/gimple.texi: Likewise.
17226         * doc/invoke.texi: Likewise.
17227         * doc/sourcebuild.texi: Likewise.
17228         * gimple-pretty-print.c (dump_gimple_omp_for): Handle
17229         GF_OMP_FOR_KIND_OACC_LOOP.
17230         (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
17231         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
17232         GF_OMP_TARGET_KIND_OACC_UPDATE,
17233         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
17234         Dump more data.
17235         * gimple.c: Update comments for OpenACC changes.
17236         * gimple.def: Likewise.
17237         * gimple.h: Likewise.
17238         (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
17239         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
17240         GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
17241         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
17242         (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
17243         appropriate place.
17244         (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
17245         * gimplify.c: Include "gomp-constants.h".
17246         Update comments for OpenACC changes.
17247         (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
17248         OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
17249         OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
17250         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
17251         OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
17252         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
17253         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
17254         OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
17255         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
17256         OMP_CLAUSE_SEQ.
17257         (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
17258         GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
17259         OMP_CLAUSE_SET_MAP_KIND.
17260         (gimplify_oacc_cache): New function.
17261         (gimplify_omp_for): Handle OACC_LOOP.
17262         (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
17263         OACC_DATA.
17264         (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
17265         OACC_EXIT_DATA, OACC_UPDATE.
17266         (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
17267         OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
17268         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
17269         (gimplify_body): Consider flag_openacc next to flag_openmp.
17270         * lto-streamer-out.c: Include "gomp-constants.h".
17271         * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
17272         (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
17273         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
17274         (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
17275         (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
17276         (BUILT_IN_ACC_ON_DEVICE): New builtins.
17277         * omp-low.c: Include "gomp-constants.h".
17278         Update comments for OpenACC changes.
17279         (struct omp_context): Add reduction_map, gwv_below, gwv_this
17280         members.
17281         (extract_omp_for_data, use_pointer_for_field, install_var_field)
17282         (new_omp_context, delete_omp_context, scan_sharing_clauses)
17283         (create_omp_child_function, scan_omp_for, scan_omp_target)
17284         (check_omp_nesting_restrictions, lower_reduction_clauses)
17285         (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
17286         Update for OpenACC changes.
17287         (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
17288         OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
17289         OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
17290         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
17291         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
17292         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ.  Use GOMP_MAP_* instead of
17293         OMP_CLAUSE_MAP_*.
17294         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
17295         Handle GF_OMP_FOR_KIND_OACC_LOOP.
17296         (expand_omp_target, lower_omp_target): Handle
17297         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
17298         GF_OMP_TARGET_KIND_OACC_UPDATE,
17299         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
17300         GF_OMP_TARGET_KIND_OACC_DATA.
17301         (pass_expand_omp::execute, execute_lower_omp)
17302         (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
17303         flag_openmp.
17304         (offload_symbol_decl): New variable.
17305         (oacc_get_reduction_array_id, oacc_max_threads)
17306         (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
17307         (maybe_lookup_oacc_reduction, enclosing_target_ctx)
17308         (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
17309         (oacc_gimple_assign, oacc_initialize_reduction_data)
17310         (oacc_finalize_reduction_data, oacc_process_reduction_data): New
17311         functions.
17312         (is_targetreg_ctx): Remove function.
17313         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
17314         OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
17315         OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
17316         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
17317         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
17318         OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
17319         * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
17320         * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
17321         (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
17322         (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
17323         (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
17324         (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
17325         * tree-core.h: Update comments for OpenACC changes.
17326         (enum omp_clause_map_kind): Remove.
17327         (struct tree_omp_clause): Change type of map_kind member from enum
17328         omp_clause_map_kind to unsigned char.
17329         * tree-inline.c: Update comments for OpenACC changes.
17330         * tree-nested.c: Likewise.  Include "gomp-constants.h".
17331         (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
17332         (convert_tramp_reference_stmt, convert_gimple_call): Update for
17333         OpenACC changes.  Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
17334         OMP_CLAUSE_SET_MAP_KIND.
17335         * tree-pretty-print.c: Include "gomp-constants.h".
17336         (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
17337         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
17338         OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
17339         OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
17340         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
17341         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT.  Use GOMP_MAP_*
17342         instead of OMP_CLAUSE_MAP_*.
17343         (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
17344         OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
17345         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
17346         * tree-streamer-in.c: Include "gomp-constants.h".
17347         (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
17348         OMP_CLAUSE_MAP_*.  Use OMP_CLAUSE_SET_MAP_KIND.
17349         * tree-streamer-out.c: Include "gomp-constants.h".
17350         (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
17351         OMP_CLAUSE_MAP_*.
17352         * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
17353         (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
17354         (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
17355         * tree.c (omp_clause_num_ops): Update accordingly.
17356         * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
17357         Likewise.
17358         (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
17359         (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
17360         (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
17361         (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
17362         (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
17363         (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
17364         * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
17365         (OMP_CLAUSE_SET_MAP_KIND): New macro.
17366         * varpool.c (varpool_node::get_create): Consider flag_openacc next
17367         to flag_openmp.
17368         * config/i386/intelmic-offload.h: New file.
17369         * config/nvptx/offload.h: Likewise.
17371 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
17373         * explow.h: Remove duplicate contents.
17374         * dojump.h: Likewise.
17376 2015-01-15  Richard Earnshaw  <rearnsha@arm.com>
17378         * arm.c (arm_xgene_tune): Add default initializer for instruction
17379         fusion.
17381 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
17383         PR ipa/64068
17384         PR ipa/64559
17385         * ipa.c (symbol_table::remove_unreachable_nodes):
17386         Do not put abstract origins into boundary.
17388 2015-01-15  Evgeny Stupachenko  <evstupac@gmail.com>
17390         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
17391         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
17393 2015-01-15  Steve Ellcey  <sellcey@mips.com>
17395         * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
17396         cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
17397         builtins.def, and chkp-builtins.def.
17399 2015-01-15  David Edelsohn  <dje.gcc@gmail.com>
17401         * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
17402         ISA 2.7 (POWER8).
17404 2015-01-15  Richard Biener  <rguenther@suse.de>
17406         PR tree-optimization/61743
17407         * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
17408         information on PHIs for some simple cases.
17410 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
17412         * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
17413         Include xgene1.md.
17414         * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
17415         * config/arm/arm-cores.def (xgene1): New entry.
17416         * config/arm/arm-tables.opt: Regenerate.
17417         * config/arm/arm-tune.md: Regenerate.
17418         * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
17420 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
17422         * tree-if-conv.c: Include hash-map.h.
17423         (aggressive_if_conv): New variable.
17424         (fold_build_cond_expr): Add simplification of non-zero condition.
17425         (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
17426         destination block is not always executed.
17427         (if_convertible_phi_p): Fix commentary, allow phi nodes have more
17428         than two predecessors if AGGRESSIVE_IF_CONV is true.
17429         (if_convertible_stmt_p): Fix commentary.
17430         (all_preds_critical_p): New function.
17431         (has_pred_critical_p): New function.
17432         (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
17433         BB can have more than two predecessors and all incoming edges can be
17434         critical.
17435         (predicate_bbs): Skip predication for loop exit block, use build2_loc
17436         to compute predicate for true edge.
17437         (find_phi_replacement_condition): Delete this function.
17438         (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
17439         Allow interchange PHI arguments if EXTENDED is false.
17440         Change check that block containing reduction statement candidate
17441         is predecessor of phi-block since phi may have more than two arguments.
17442         (phi_args_hash_traits): New helper structure.
17443         (struct phi_args_hash_traits): New type.
17444         (phi_args_hash_traits::hash): New function.
17445         (phi_args_hash_traits::equal_keys): New function.
17446         (gen_phi_arg_condition): New function.
17447         (predicate_scalar_phi): Add handling of phi nodes with more than two
17448         arguments, delete COND and TRUE_BB arguments, insert body of
17449         find_phi_replacement_condition to predicate ordinary phi nodes.
17450         (predicate_all_scalar_phis): Skip blocks with the only predecessor,
17451         delete call of find_phi_replacement_condition and invoke
17452         predicate_scalar_phi with two arguments.
17453         (insert_gimplified_predicates): Add assert that non-predicated block
17454         don't have statements to insert.
17455         (ifcvt_split_critical_edges): New function.
17456         (ifcvt_split_def_stmt): Likewise.
17457         (ifcvt_walk_pattern_tree): Likewise.
17458         (stmt_is_root_of_bool_pattern): Likewise.
17459         (ifcvt_repair_bool_pattern): Likewise.
17460         (ifcvt_local_dce): Likewise.
17461         (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
17462         is copy of inner or outer loop force_vectorize field, invoke
17463         ifcvt_split_critical_edges, ifcvt_local_dce and
17464         ifcvt_repair_bool_pattern for aggressive if-conversion.
17466 2015-01-15  Philipp Tomsich  <ptomsich@theobroma-systems.com>
17468         * config/aarch64/aarch64.md: Include xgene1.md.
17469         * config/aarch64/xgene1.md: New file.
17471 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
17473         * config/aarch64/aarch64-cores.def (xgene1): Update/add the
17474         xgene1 (APM XGene-1) core definition.
17475         * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
17476         * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
17477         * doc/invoke.texi: Document -mcpu=xgene1.
17479 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
17481         * dojump.h: New header file.
17482         * explow.h: Likewise.
17483         * expr.h: Remove includes.
17484         Move expmed.c prototypes to expmed.h.
17485         Move dojump.c prototypes to dojump.h.
17486         Move alias.c prototypes to alias.h.
17487         Move explow.c prototypes to explow.h.
17488         Move calls.c prototypes to calls.h.
17489         Move emit-rtl.c prototypes to emit-rtl.h.
17490         Move varasm.c prototypes to varasm.h.
17491         Move stmt.c prototypes to stmt.h.
17492         (saved_pending_stack_adjust): Move to dojump.h.
17493         (adjust_address): Move to explow.h.
17494         (adjust_address_nv): Move to emit-rtl.h.
17495         (adjust_bitfield_address): Likewise.
17496         (adjust_bitfield_address_size): Likewise.
17497         (adjust_bitfield_address_nv): Likewise.
17498         (adjust_automodify_address_nv): Likewise.
17499         * explow.c (expr_size): Move to expr.c.
17500         (int_expr_size): Likewise.
17501         (tree_expr_size): Likewise.
17502         Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17503         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
17504         * genemit.c (main): Generate includes statistics.h, real.h,
17505         fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
17506         stmt.h.
17507         * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
17508         function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
17509         explow.h, emit-rtl.h, stmt.h.
17510         * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
17511         fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
17512         * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
17513         real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
17514         emit-rtl.h, varasm.h, stmt.h.
17515         * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
17516         hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
17517         function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
17518         fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
17519         expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
17520         * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
17521         double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
17522         function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
17523         insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
17524         tm.h tree.h varasm.h vec.h wide-int.h.
17525         * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
17526         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
17527         hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
17528         real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
17529         * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
17530         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
17531         insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
17532         * loop-iv.c: Likewise.
17533         * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
17534         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
17535         statistics.h stmt.h tree.h varasm.h wide-int.h.
17536         * lra-constraints.c: Likewise.
17537         * lra-eliminations.c: Likewise.
17538         * lra-lives.c: Likewise.
17539         * lra-remat.c: Likewise.
17540         * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
17541         explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
17542         statistics.h stmt.h tree.h varasm.h wide-int.h.
17543         * hw-doloop.c: Likewise.
17544         * ira-color.c: Likewise.
17545         * ira-emit.c: Likewise.
17546         * loop-doloop.c: Likewise.
17547         * loop-invariant.c: Likewise.
17548         * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
17549         explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
17550         statistics.h stmt.h tree.h varasm.h wide-int.h.
17551         * caller-save.c: Include alias.h calls.h dojump.h double-int.h
17552         emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
17553         statistics.h stmt.h tree.h varasm.h wide-int.h.
17554         * combine-stack-adj.c: Likewise.
17555         * cse.c: Likewise.
17556         * ddg.c: Likewise.
17557         * ifcvt.c: Likewise.
17558         * ira-costs.c: Likewise.
17559         * jump.c: Likewise.
17560         * lra-coalesce.c: Likewise.
17561         * lra-spills.c: Likewise.
17562         * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
17563         explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
17564         stmt.h varasm.h wide-int.h.
17565         * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
17566         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
17567         varasm.h.
17568         * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
17569         double-int.h explow.h expmed.h fixed-value.h flags.h real.h
17570         statistics.h stmt.h varasm.h wide-int.h.
17571         * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
17572         expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
17573         varasm.h wide-int.h.
17574         * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
17575         expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
17576         * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
17577         emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
17578         statistics.h stmt.h.
17579         * config/tilepro/tilepro.c: Likewise.
17580         * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
17581         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
17582         * config/pdp11/pdp11.c: Likewise.
17583         * config/xtensa/xtensa.c: Likewise.
17584         * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
17585         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
17586         varasm.h.
17587         * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17588         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
17589         insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
17590         * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17591         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
17592         insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
17593         * rtl-chkp.c: Likewise.
17594         * tree-chkp-opt.c: Likewise.
17595         * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
17596         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
17597         hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
17598         * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17599         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
17600         statistics.h stmt.h.
17601         * tree-vect-data-refs.c: Likewise.
17602         * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
17603         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
17604         rtl.h statistics.h stmt.h varasm.h.
17605         * internal-fn.c: Likewise.
17606         * ipa-icf-gimple.c: Likewise.
17607         * lto-section-out.c: Likewise.
17608         * tree-data-ref.c: Likewise.
17609         * tree-nested.c: Likewise.
17610         * tree-outof-ssa.c: Likewise.
17611         * tree-predcom.c: Likewise.
17612         * tree-pretty-print.c: Likewise.
17613         * tree-scalar-evolution.c: Likewise.
17614         * tree-ssa-strlen.c: Likewise.
17615         * tree-vect-loop.c: Likewise.
17616         * tree-vect-patterns.c: Likewise.
17617         * tree-vect-slp.c: Likewise.
17618         * tree-vect-stmts.c: Likewise.
17619         * tsan.c: Likewise.
17620         * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17621         fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
17622         stmt.h.
17623         * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
17624         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
17625         statistics.h stmt.h varasm.h.
17626         * loop-unroll.c: Likewise.
17627         * ubsan.c: Likewise.
17628         * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
17629         expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
17630         stmt.h varasm.h.
17631         * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17632         fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
17633         * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
17634         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
17635         statistics.h stmt.h.
17636         * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
17637         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
17638         statistics.h stmt.h varasm.h.
17639         * gimple-match-head.c: Likewise.
17640         * lto-cgraph.c: Likewise.
17641         * lto-section-in.c: Likewise.
17642         * lto-streamer-in.c: Likewise.
17643         * lto-streamer-out.c: Likewise.
17644         * tree-affine.c: Likewise.
17645         * tree-cfg.c: Likewise.
17646         * tree-cfgcleanup.c: Likewise.
17647         * tree-if-conv.c: Likewise.
17648         * tree-into-ssa.c: Likewise.
17649         * tree-ssa-alias.c: Likewise.
17650         * tree-ssa-copyrename.c: Likewise.
17651         * tree-ssa-dse.c: Likewise.
17652         * tree-ssa-forwprop.c: Likewise.
17653         * tree-ssa-live.c: Likewise.
17654         * tree-ssa-math-opts.c: Likewise.
17655         * tree-ssa-pre.c: Likewise.
17656         * tree-ssa-sccvn.c: Likewise.
17657         * tree-tailcall.c: Likewise.
17658         * tree-vect-generic.c: Likewise.
17659         * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17660         fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
17661         * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17662         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
17663         * varasm.c: Likewise.
17664         * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17665         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
17666         varasm.h.
17667         * init-regs.c: Likewise.
17668         * ira.c: Likewise.
17669         * omp-low.c: Likewise.
17670         * stack-ptr-mod.c: Likewise.
17671         * tree-ssa-reassoc.c: Likewise.
17672         * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17673         fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
17674         varasm.h.
17675         * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17676         fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
17677         * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17678         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
17679         * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17680         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
17681         * tree-ssa-phiopt.c: Likewise.
17682         * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17683         fixed-value.h hashtab.h real.h statistics.h stmt.h.
17684         * config/fr30/fr30.c: Likewise.
17685         * config/frv/frv.c: Likewise.
17686         * expr.c: Likewise.
17687         * final.c: Likewise.
17688         * optabs.c: Likewise.
17689         * passes.c: Likewise.
17690         * simplify-rtx.c: Likewise.
17691         * stmt.c: Likewise.
17692         * toplev.c: Likewise.
17693         * var-tracking.c: Likewise.
17694         * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17695         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
17696         * lower-subreg.c: Likewise.
17697         * postreload-gcse.c: Likewise.
17698         * ree.c: Likewise.
17699         * reginfo.c: Likewise.
17700         * store-motion.c: Likewise.
17701         * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17702         fixed-value.h hashtab.h real.h stmt.h varasm.h.
17703         * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17704         fixed-value.h hashtab.h statistics.h stmt.h.
17705         * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17706         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
17707         * except.c: Likewise.
17708         * explow.c: Likewise.
17709         * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17710         fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
17711         varasm.h.
17712         * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17713         fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
17714         * tree-ssa-structalias.c: Likewise.
17715         * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17716         fixed-value.h insn-config.h real.h statistics.h.
17717         * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17718         fixed-value.h insn-config.h real.h statistics.h stmt.h.
17719         * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17720         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
17721         * cfgbuild.c: Likewise.
17722         * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17723         fixed-value.h real.h rtl.h statistics.h stmt.h.
17724         * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17725         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
17726         * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17727         fixed-value.h real.h statistics.h stmt.h.
17728         * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17729         fixed-value.h real.h statistics.h stmt.h varasm.h.
17730         * cprop.c: Likewise.
17731         * modulo-sched.c: Likewise.
17732         * postreload.c: Likewise.
17733         * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
17734         flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
17735         statistics.h stmt.h varasm.h.
17736         * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
17737         explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
17738         rtl.h statistics.h stmt.h varasm.h.
17739         * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
17740         fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
17741         varasm.h.
17742         * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
17743         function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
17744         varasm.h.
17745         * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
17746         fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
17747         varasm.h.
17748         * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
17749         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
17750         * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
17751         function.h real.h statistics.h stmt.h varasm.h.
17752         * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
17753         insn-config.h real.h statistics.h stmt.h.
17754         * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
17755         statistics.h stmt.h.
17756         * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
17757         fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
17758         statistics.h stmt.h varasm.h.
17759         * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
17760         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
17761         * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
17762         flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
17763         * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
17764         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
17765         statistics.h stmt.h varasm.h.
17766         * ipa-polymorphic-call.c: Likewise.
17767         * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
17768         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
17769         statistics.h stmt.h.
17770         * config/c6x/c6x.c: Likewise.
17771         * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
17772         explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
17773         statistics.h stmt.h varasm.h.
17774         * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
17775         fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
17776         stmt.h varasm.h.
17777         * ipa-split.c: Likewise.
17778         * tree-eh.c: Likewise.
17779         * tree-ssa-dce.c: Likewise.
17780         * tree-ssa-loop-niter.c: Likewise.
17781         * tree-vrp.c: Likewise.
17782         * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
17783         expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
17784         stmt.h.
17785         * config/nds32/nds32-fp-as-gp.c: Likewise.
17786         * config/nds32/nds32-intrinsic.c: Likewise.
17787         * config/nds32/nds32-isr.c: Likewise.
17788         * config/nds32/nds32-md-auxiliary.c: Likewise.
17789         * config/nds32/nds32-memory-manipulation.c: Likewise.
17790         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
17791         * config/nds32/nds32-predicates.c: Likewise.
17792         * config/nds32/nds32.c: Likewise.
17793         * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
17794         fixed-value.h hashtab.h real.h statistics.h.
17795         * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
17796         fixed-value.h hashtab.h real.h statistics.h stmt.h.
17797         * config/arm/arm.c: Likewise.
17798         * config/avr/avr.c: Likewise.
17799         * config/bfin/bfin.c: Likewise.
17800         * config/h8300/h8300.c: Likewise.
17801         * config/i386/i386.c: Likewise.
17802         * config/ia64/ia64.c: Likewise.
17803         * config/iq2000/iq2000.c: Likewise.
17804         * config/m32c/m32c.c: Likewise.
17805         * config/m32r/m32r.c: Likewise.
17806         * config/m68k/m68k.c: Likewise.
17807         * config/mcore/mcore.c: Likewise.
17808         * config/mep/mep.c: Likewise.
17809         * config/mips/mips.c: Likewise.
17810         * config/mn10300/mn10300.c: Likewise.
17811         * config/moxie/moxie.c: Likewise.
17812         * config/pa/pa.c: Likewise.
17813         * config/rl78/rl78.c: Likewise.
17814         * config/rx/rx.c: Likewise.
17815         * config/s390/s390.c: Likewise.
17816         * config/sh/sh.c: Likewise.
17817         * config/sparc/sparc.c: Likewise.
17818         * config/spu/spu.c: Likewise.
17819         * config/stormy16/stormy16.c: Likewise.
17820         * config/v850/v850.c: Likewise.
17821         * config/vax/vax.c: Likewise.
17822         * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
17823         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
17824         * config/msp430/msp430.c: Likewise.
17825         * predict.c: Likewise.
17826         * value-prof.c: Likewise.
17827         * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
17828         expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
17829         * config/microblaze/microblaze.c: Likewise.
17830         * config/nios2/nios2.c: Likewise.
17831         * config/rs6000/rs6000.c: Likewise.
17832         * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
17833         insn-config.h real.h rtl.h statistics.h stmt.h.
17834         * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
17835         insn-config.h real.h statistics.h stmt.h.
17836         * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
17837         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
17838         * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
17839         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
17840         * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
17841         fixed-value.h real.h statistics.h stmt.h.
17842         * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
17843         fixed-value.h statistics.h stmt.h.
17844         * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
17845         stmt.h.
17847 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
17849         * gengtype.c (create_user_defined_type): Workaround
17850         -Wmaybe-uninitialized false positives.
17851         * cse.c (fold_rtx): Likewise.
17852         * loop-invariant.c (gain_for_invariant): Likewise.
17854 2015-01-15  Eric Botcazou  <ebotcazou@adacore.com>
17856         * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
17857         set the memory attributes in all cases but clear MEM_EXPR if need be.
17859 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
17861         PR tree-optimization/64434
17862         * cfgexpand.c (reorder_operands): New function.
17863         (expand_gimple_basic_block): Insert call of reorder_operands if
17864         optimized is true.
17866 2015-01-15  Matthew Fortune  <matthew.fortune@imgtec.com>
17868         * config/mips/micromips.md (*swp): Remove explicit parallel.
17869         (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
17870         * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
17871         (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
17872         (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
17873         (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
17874         (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
17875         (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
17876         (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
17877         (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
17878         (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
17879         (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
17880         (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
17881         (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
17882         (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
17883         (mips_wrdsp): Likewise.
17884         * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
17885         parallel.
17886         (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
17887         (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
17888         (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
17889         (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
17890         (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
17891         (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
17892         * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
17893         (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
17894         (ssmaddsqdq4, ssmsubsqdq4): Likewise.
17896 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
17898         * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
17899         (mips_print_operand): Support 'y' to print exact log2 in decimal
17900         of a const_int.
17901         * config/mips/mips.h (ISA_HAS_LSA): New define.
17902         (ISA_HAS_DLSA): Likewise.
17903         * config/mips/mips.md (<GPR:d>lsa): New define_insn.
17904         * config/mips/predicates.md (const_immlsa_operand): New predicate.
17906 2015-01-15  Martin Liska  <mliska@suse.cz>
17908         PR target/64377
17909         * optc-save-gen.awk: Add support for array types.
17911 2015-01-15  Richard Biener  <rguenther@suse.de>
17913         PR middle-end/64365
17914         * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
17915         for MEM_REF access functions with the same base can never partially
17916         overlap.
17918 2015-01-14  Marcos Diaz <marcos.diaz@tallertechnologies.com>
17920         * common.opt: New option -fstack-protector-explicit.
17921         * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
17922         (stack_protect_decl_phase): Handle stack_protect attribute for
17923         explicit stack protection requests.
17924         (expand_used_vars): Similarly.
17925         * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
17926         * doc/extend.texi: Add documentation for "stack_protect" attribute.
17927         * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
17929 2015-01-14  Oleg Endo  <olegendo@gcc.gnu.org>
17931         PR target/53988
17932         * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
17933         reg-reg copies.
17934         (sh_extending_set_of_reg): New struct.
17935         (sh_find_extending_set_of_reg, sh_split_tst_subregs,
17936         sh_remove_reg_dead_or_unused_notes): New Declarations.
17937         * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
17938         sh_find_extending_set_of_reg, sh_split_tst_subregs,
17939         sh_extending_set_of_reg::use_as_extended_reg): New functions.
17940         * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
17941         convert to insn_and_split and use new function sh_split_tst_subregs.
17943 2015-01-14  Sandra Loosemore  <sandra@codesourcery.com>
17945         * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
17946         option.
17947         (Optimization Options): Move -fuse-ld documentation to...
17948         (Link Options): ...here.
17950 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
17952         * config/mips/constraints.md (ZC): Add support for R6 LL/SC
17953         offsets.
17954         (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
17955         * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
17956         (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
17957         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
17958         instead of ZR for the memory operand of LL/SC.
17959         (compare_and_swap_12, sync_add<mode>): Likewise.
17960         (sync_<optab>_12, sync_old_<optab>_12): Likewise.
17961         (sync_new_<optab>_12, sync_nand_12): Likewise.
17962         (sync_old_nand_12, sync_new_nand_12): Likewise.
17963         (sync_sub<mode>, sync_old_add<mode>): Likewise.
17964         (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
17965         (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
17966         (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
17967         (sync_nand<mode>, sync_old_nand<mode>): Likewise.
17968         (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
17969         (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
17970         (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
17971         * doc/md.texi (ZC): Update description.
17973 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
17975         * builtins.c (expand_builtin_atomic_exchange): Remove error when
17976         memory model is CONSUME.
17977         (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
17978         expand_builtin_atomic_store): Change invalid memory model errors to
17979         warnings.
17980         (expand_builtin_atomic_clear): Change invalid model errors to warnings
17981         and issue warning for CONSUME.
17983 2015-01-14  Aldy Hernandez  <aldyh@redhat.com>
17985         * lto-cgraph: Update function comments for
17986         lto_symtab_encoder_encode_*.
17988 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
17990         * Makefile.in (site.exp): Do not set ENABLE_LTO.
17992 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
17994         * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
17995         * lto-cgraph.c (select_what_to_stream): Remove argument, use
17996         lto_stream_offload_p instead.
17997         * lto-streamer.h (select_what_to_stream): Remove argument.
17998         * passes.c (ipa_write_summaries): Likewise.
17999         * tree-pass.h (ipa_write_summaries): Likewise.
18001 2015-01-14  Richard Biener  <rguenther@suse.de>
18003         PR tree-optimization/59354
18004         * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
18005         groups larger than the slp group size as having gaps.
18007 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
18009         PR middle-end/59448
18010         * builtins.c (get_memmodel): Promote consume to acquire always.
18012 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
18014         PR target/64386
18015         * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
18016         V32HImode.
18018 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
18020         PR target/64393
18021         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
18022         Enable AVX512BW.
18023         (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
18024         * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
18025         AVX512VBMI, as it implies AVX512BW.
18027 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
18029         PR target/64387
18030         * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
18031         (vec_unpacks_hi_v16sf): Ditto.
18033 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18035         * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
18036         is not available.
18038 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18040         * doc/invoke.texi (mapcs): Mention deprecation.
18041         (mapcs-frame): Likewise.
18043 2015-01-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
18045         PR target/64453
18046         * config/arm/arm.c (callee_saved_reg_p): Define.
18047         (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
18048         register is callee saved instead of !call_used_regs[reg].
18049         (thumb1_compute_save_reg_mask): Likewise.
18051 2015-01-14  Hale Wang  <hale.wang@arm.com>
18053         * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
18054         Cortex-M7.
18056 2015-01-14  Richard Biener  <rguenther@suse.de>
18058         PR lto/64415
18059         * tree-inline.c (insert_debug_decl_map): Check destination
18060         function MAY_HAVE_DEBUG_STMTS.
18061         (insert_init_debug_bind): Likewise.
18062         (insert_init_stmt): Remove redundant check.
18063         (remap_gimple_stmt): Drop debug stmts if the destination
18064         function has var-tracking assignments disabled.
18066 2015-01-14  Martin Liska  <mliska@suse.cz>
18068         * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
18069         IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
18071 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18073         PR target/64460
18074         * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
18075         (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
18077 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
18079         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
18080         level from an ARCH; do not inject the default.
18081         (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
18082         MIPS_ISA_LEVEL_SPEC.
18083         (MIPS_ISA_NAN2008_SPEC): Update comment.
18084         (BASE_DRIVER_SELF_SPECS): Likewise.
18085         * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
18086         MIPS_DEFAULT_ISA_LEVEL_SPEC.
18087         * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
18088         * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
18089         * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
18091 2015-01-14  Richard Biener  <rguenther@suse.de>
18093         PR tree-optimization/64493
18094         PR tree-optimization/64495
18095         * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
18096         assign the proper vectorized PHI to the inner loop exit PHIs.
18098 2015-01-14  Joey Ye  <joey.ye@arm.com>
18100         * config/arm/arm.c (arm_compute_save_reg_mask):
18101         Do not save lr in case of tail call.
18102         * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
18104 2015-01-14  Martin Uecker <uecker@eecs.berkeley.edu>
18106         * tree-vrp.c (check_array_ref): Emit more warnings
18107         for warn_array_bounds >= 2.
18108         * common.opt: New option -Warray-bounds=.
18109         * doc/invoke.texi: Document -Warray-bounds=.
18111 2015-01-14  Chung-Ju Wu  <jasonwucj@gmail.com>
18113         * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
18114         (mforbid-fp-as-gp): Remove.
18115         (mex9): Remove.
18116         * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
18117         (nds32_symbol_load_store_p): Remove.
18118         (nds32_fp_as_gp_check_available): Clean up implementation.
18119         * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
18120         cases.
18121         * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
18122         fp-as-gp and ex9 cases.
18124 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
18126         * tree-profile.c (init_ic_make_global_vars): Drop workaround
18127         for bintuils bug 14342.
18128         (init_ic_make_global_vars): Likewise.
18129         (gimple_init_edge_profiler): Likewise.
18130         (gimple_gen_ic_func_profiler): Likewise.
18132 2015-01-13  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
18134         * ipa-inline.c (inline_small_functions): Swap the operands in
18135         enum.
18137 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
18139         PR ipa/64481
18140         * ipa-inline-analysis.c (node_growth_cache): Remove.
18141         (initialize_growth_caches): Do not initialize it.
18142         (free_growth_caches): Do not free it.
18143         (do_estimate_growth): Rename to ...
18144         (estimate_growth): ... this one; drop growth cache code.
18145         (growth_likely_positive): Always go the heuristics way.
18146         * ipa-inline.c (can_inline_edge_p): Walk through aliases.
18147         (reset_edge_caches): Do not reset node growth.
18148         (heap_edge_removal_hook): Do not maintain cache.
18149         (inline_small_functions): Likewise; strenghten sanity check.
18150         (ipa_inline): Do not maintain caches.
18151         * ipa-inline.h (node_growth_cache): Remove.
18152         (do_estimate_growth): Remove to ...
18153         (estimate_growth): this one; remove inline version.
18154         (reset_node_growth_cache): Remove.
18156 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
18158         PR ipa/64565
18159         * ipa-inline.c (inline_small_functions): Update callee keys after
18160         resolving speculation
18161         (inline_small_functions): Always check monotonicity of the queue.
18163 2015-01-13  Marek Polacek  <polacek@redhat.com>
18165         PR middle-end/64391
18166         * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
18168 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
18170         PR rtl-optimization/64286
18171         * ree.c (combine_reaching_defs): Move part of comment earlier,
18172         remove !SCALAR_INT_MODE_P check.
18173         (add_removable_extension): Don't add vector mode
18174         extensions if all uses of the source register aren't the same
18175         vector extensions.
18177 2015-01-13  Renlin Li  <renlin.li@arm.com>
18179         * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
18180         (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
18182 2015-01-13  Martin Liska  <mliska@suse.cz>
18184         * ipa-icf.c (sem_function::equals_private): Call new functions
18185         cl_target_option_print_diff and cl_optimization_print_diff.
18186         * optc-save-gen.awk (cl_target_option_print_diff): New function.
18187         (cl_optimization_print_diff): Likewise.
18188         * opth-gen.awk: Likewise.
18190 2015-01-13  Richard Sandiford  <richard.sandiford@arm.com>
18192         * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
18193         (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
18194         (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
18195         (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
18196         (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
18197         (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
18199 2015-01-13  Andrew Pinski  <apinski@cavium.com>
18201         * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
18202         instead of src mode.
18204 2015-01-13  Richard Biener  <rguenther@suse.de>
18206         PR lto/64373
18207         * lto-streamer-out.c (tree_is_indexable): Guard for NULL
18208         DECL_CONTEXT.
18210 2015-01-13  Andrew Pinski  <apinski@cavium.com>
18212         * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
18213         volatile mems.
18214         (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
18216 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
18218         PR middle-end/63974
18219         * cfgexpand.c (expand_computed_goto): Don't call
18220         convert_memory_address here.
18222 2015-01-13  Richard Biener  <rguenther@suse.de>
18224         PR tree-optimization/64406
18225         * tree-loop-distibution.c (pass_loop_distribution::execute):
18226         Reset the SCEV hashtable if we distributed anything.
18228 2015-01-13  Richard Biener  <rguenther@suse.de>
18230         PR tree-optimization/64404
18231         * tree-vect-stmts.c (vectorizable_load): Reject conflicting
18232         SLP types for CSEd loads.
18234 2015-01-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
18236         PR tree-optimization/64436
18237         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
18238         merge of two symbolic numbers for a bitwise OR to ...
18239         (perform_symbolic_merge): This. Also fix computation of the range and
18240         end of the symbolic number corresponding to the result of a bitwise OR.
18242 2015-01-13  Richard Biener  <rguenther@suse.de>
18244         PR tree-optimization/64568
18245         * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
18246         release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
18248 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
18250         * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
18251         TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
18253 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
18255         * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
18256         target-specific symbol_ref flag.
18257         (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
18258         resides in rodata section.
18259         * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
18260         (nds32_encode_section_info): New function.
18262 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
18264         * config/nds32/nds32.md (call): Use pseudo instruction bal which
18265         clobbers TA_REGNUM if large code model is specified.
18266         (call_register): Likewise.
18267         (call_immediate): Likewise.
18268         (call_value): Likewise.
18269         (call_value_register): Likewise.
18270         (call_value_immediate): Likewise.
18272 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
18274         * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
18275         (TARGET_CMODEL_MEDIUM): New macro.
18276         (TARGET_CMODEL_LARGE): New macro.
18277         * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
18278         code model setting in assembly code.
18280 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
18282         * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
18283         Remove MASK_GP_DIRECT flag.
18284         * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
18285         one of the multilib default options.
18286         * config/nds32/nds32.opt (mgp-direct): Remove.
18287         * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
18288         -mgp-direct.  We also remove unnecessary -mlittle-endian/-mbig-endian.
18290 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
18292         * config/nds32/nds32.opt (mcmodel): Add new option.
18293         * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
18294         to describe code model.
18296 2015-01-13  Oleg Endo  <olegendo@gcc.gnu.org>
18298         PR target/64479
18299         * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
18301 2015-01-12  Kaz Kojima  <kkojima@gcc.gnu.org>
18303         * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
18304         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
18305         (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
18306         (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
18307         __builtin_sh_set_fpscr.
18309 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
18311         * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
18312         after a funtion name just to indicate it is a function.
18313         ([-fsanitize-undefined-trap-on-error]): Likewise.
18314         ([-fdbg-cnt=]): Likewise.
18315         ([-mmemcpy]): Likewise.
18316         ([-mflush-func]): Likewise.
18317         ([-msynci]): Likewise.
18319 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
18321         * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
18322         example.
18324 2015-01-12  Jakub Jelinek  <jakub@redhat.com>
18326         PR tree-optimization/64563
18327         * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
18328         instead of != VR_VARYING.
18330         PR target/64513
18331         * config/i386/i386.c (ix86_expand_prologue): Add
18332         REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
18334         PR tree-optimization/64454
18335         * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
18336         op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
18337         for signed or [0, op1 - 1] for unsigned modulo.
18338         (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
18339         even if op1 does not satisfy integer_pow2p.
18341         PR other/64370
18342         * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
18344 2015-01-12  Jeff Law  <law@redhat.com>
18346         PR target/64461
18347         * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
18348         (trunchiqi2, truncsihi2): Similarly.
18350         * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
18351         rather than calling F.
18353 2015-01-12  Bernd Edlinger  <bernd.edlinger@hotmail.de>
18355         * tsan.c (instrument_expr): Use force_gimple_operand.
18356         Use may_be_nonaddressable_p instead of is_gimple_addressable.
18358 2015-01-12  Richard Biener  <rguenther@suse.de>
18360         PR tree-optimization/64530
18361         * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
18362         back dr1.
18364 2015-01-12  Richard Biener  <rguenther@suse.de>
18366         PR middle-end/64357
18367         * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
18368         latches properly.
18370 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18372         * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
18373         Cortex-A17 tuning parameters.
18374         * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
18376 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18378         * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
18379         * config/arm/arm.c (arm_macro_fusion_p): New function.
18380         (arm_macro_fusion_pair_p): Likewise.
18381         (TARGET_SCHED_MACRO_FUSION_P): Define.
18382         (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
18383         (ARM_FUSE_NOTHING): Likewise.
18384         (ARM_FUSE_MOVW_MOVT): Likewise.
18385         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
18386         arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
18387         arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
18388         arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
18389         arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
18390         arm_cortex_a5_tune): Specify fuseable_ops value.
18392 2015-01-12  H.J. Lu  <hongjiu.lu@intel.com>
18394         PR bootstrap/64561
18395         * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
18396         test for PIE with copy reloc.
18397         * configure: Regenerated.
18399 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18401         * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
18402         in gen_rtx_REG.
18403         (arm_tls_descseq_addr): Likewise.
18404         (arm_gen_movmemqi): Likewise.
18405         (arm_expand_epilogue_apcs_frame): Likewise.
18406         (arm_expand_epilogue): Likewise.
18407         (arm_expand_prologue): Likewise.  Use R1_REGNUM instead of constant 1
18408         in gen_rtx_REG.
18410 2015-01-12  Martin Liska  <mliska@suse.cz>
18412         PR ipa/64550
18413         * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
18414         volatility for correct operands.
18416 2015-01-12  Martin Liska  <mliska@suse.cz>
18418         * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
18419         indication that a function is not leaf.
18420         (sem_function::compare_polymorphic_p): Likewise.
18422 2015-01-12  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
18424         * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
18425         machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
18426         fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
18427         fold-const.h, tree-check.h.
18429 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
18431         PR ipa/63967
18432         PR ipa/64425
18433         * ipa-inline.c (compute_uninlined_call_time,
18434         compute_inlined_call_time): Use counts for extra precision when
18435         needed possible.
18436         (big_speedup_p): Fix formating.
18437         (RELATIVE_TIME_BENEFIT_RANGE): Remove.
18438         (relative_time_benefit): Remove.
18439         (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
18440         merge guessed and read profile paths.
18441         (inline_small_functions): Count only !optimize_size functions into
18442         initial size; be more lax about sanity check when profile is used;
18443         be sure to update inlined function profile when profile is read.
18445 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
18447         PR ipa/63470
18448         * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
18449         cost when edge becomes direct.
18450         * ipa-prop.c (make_edge_direct): Do not adjust when speculation
18451         is resolved or when introducing new speculation.
18453 2015-01-12  Chen Gang  <gang.chen.5i5j@gmail.com>
18455         PR ipa/64551
18456         PR ipa/64552
18457         * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
18458         '||' to fix typo issue.
18460         * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
18461         accept and return NULL.
18463 2015-01-12  Martin Liska  <mliska@suse.cz>
18465         * cgraph.c (cgraph_edge::remove_callee): Move function to header
18466         file for being inlined.
18467         (cgraph_set_edge_callee): Delete.
18468         (cgraph_edge::redirect_callee): Move function to header file
18469         for being inlined.
18470         (cgraph_edge::make_direct): Use new function.
18471         (cgraph_edge::dump_edge_flags): New function created from
18472         static dump_edge_flags function.
18473         (cgraph_node::dump): Use new function.
18474         (cgraph_edge::verify_count_and_frequency): New function created
18475         from verify_edge_count_and_frequency.
18476         (cgraph_edge::verify_corresponds_to_fndecl): New function created
18477         from verify_edge_corresponds_to_fndecl.
18478         (verify_edge_corresponds_to_fndecl): Delete.
18479         (cgraph_node::verify_node): Use new function.
18480         * cgraph.h (cgraph_edge::set_callee): New function.
18481         (cgraph_edge::dump_edge_flags): Likewise.
18482         (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
18484 2015-01-11  Jan Hubicka  <hubicka@ucw.cz>
18486         * ipa-utils.c (estimate_function_body_sizes): Do not
18487         free node params when called late with early=true.
18489 2015-01-11  James Greenhalgh  <james.greenhalgh@arm.com>
18491         * doc/md.texi (Instruction Patterns): Rewrite text for
18492         clarity.
18493         (Example): Likewise.
18495 2015-01-10  Sandra Loosemore  <sandra@codesourcery.com>
18497         * doc/invoke.texi (Option Summary): Break long lines.
18498         [(-fdiagnostics-color)]: Put long literal in @smallexample
18499         instead of inline.
18500         [(-fsanitize-recover)]: Likewise.
18501         [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
18502         [(-ffast-math)]: Likewise.
18503         [(--param max-inline-insns-recursive)]: Likewise.
18504         [(--param max-inline-recursive-depth)]: Likewise.
18505         [(-mno-text-section-literals)]: Likewise.
18507 2015-01-10  Thomas Schwinge  <thomas@codesourcery.com>
18509         * doc/install.texi: Update for libgomp being renamed from "GNU
18510         OpenMP Runtime Library" to "GNU Offloading and Multi Processing
18511         Runtime Library".
18512         * doc/sourcebuild.texi: Likewise.
18514 2015-01-10  Anthony Green  <green@moxielogic.com>
18516         * config/moxie/moxie.c (moxie_option_override): Fix forcing of
18517         mul.x availability for moxiebox configuration.
18519 2015-01-09  Anthony Green  <green@moxielogic.com>
18521         * config/moxie/moxie.md: Tabify assembly output.
18523 2015-01-09  Anthony Green  <green@moxielogic.com>
18525         * config/moxie/moxie.md (CC_REG): Correct register definition.
18527 2015-01-09  Sandra Loosemore  <sandra@codesourcery.com>
18529         * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
18530         ([-fvtv-debug], [-fvtv-counts]): Likewise.  Correct location
18531         of log files.
18533 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
18535         * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
18537 2015-01-09  Bernd Schmidt  <bernds@codesourcery.com>
18538             Jakub Jelinek  <jakub@redhat.com>
18540         PR middle-end/64412
18541         * lto-streamer.h (lto_stream_offload_p): New declaration.
18542         * lto-streamer.c (lto_stream_offload_p): New variable.
18543         * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
18544         at the same time as section_name_prefix.
18545         * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
18546         if lto_stream_offload_p.
18547         * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
18548         stream TREE_TARGET_OPTION if lto_stream_offload_p.
18549         (write_ts_function_decl_tree_pointers): Don't
18550         stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
18551         * tree-streamer-in.c (unpack_value_fields): Don't stream
18552         TREE_TARGET_OPTION in if ACCEL_COMPILER.
18553         (lto_input_ts_function_decl_tree_pointers): Don't stream
18554         DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
18555         * lto-opts.c (lto_write_options): Use lto_stream_offload_p
18556         instead of section_name_prefix string comparisons.
18558 2015-01-09  Jakub Jelinek  <jakub@redhat.com>
18560         PR rtl-optimization/64536
18561         * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
18562         tablejumps.
18564 2015-01-09  Michael Collison  <michael.collison@linaro.org>
18566         PR tree-optimization/64322
18567         * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
18568         range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
18570 2015-01-09  Tom de Vries  <tom@codesourcery.com>
18572         PR rtl-optimization/64539
18573         * regcprop.c (kill_clobbered_values): Factor out of ...
18574         (copyprop_hardreg_forward_1): ... here.  Use kill_clobbered_values
18575         instead of note_stores with kill_clobbered_value.
18577 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
18579          * ginclude/unwind-arm-common.h: Revert previous commit.
18581 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
18583         * config.gcc (arm*-*-freebsd*): New configuration.
18584         * config/arm/freebsd.h: New file.
18585         * config.host: Add extra components for arm*-*-freebsd*.
18586         * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
18587         * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
18589 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
18591         * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
18592         for -mcpu=e6500.
18593         * config/rs6000/t-rtems: Add e6500 multilibs.
18595 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
18597         * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
18598         MPC8540.
18600 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
18602         * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
18603         MULTILIB_EXCEPTIONS.
18605 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
18607         * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
18608         MULTILIB_EXCEPTIONS.
18610 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
18612         * config/arm/t-rtems-eabi: Rename to...
18613         * config/arm/t-rtems: ...this.
18614         * config/arm/rtems-eabi.h: Rename to...
18615         * config/arm/rtems.h: ...this.
18616         * config.gcc (arm*-*-rtems*): Reflect changes above.
18618 2015-01-09  Richard Biener  <rguenther@suse.de>
18620         PR tree-optimization/64410
18621         * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
18622         on the LHS.
18623         (execute_update_addresses_taken): Deal with that.
18624         * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
18625         loads/stores for complex variables.
18627 2015-01-09  Martin Liska  <mliska@suse.cz>
18629         * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
18630         name comparison.
18631         (func_checker::compare_memory_operand): New function.
18632         (func_checker::compare_operand): Split case to newly
18633         added functions.
18634         (func_checker::compare_cst_or_decl): New function.
18635         (func_checker::compare_gimple_call): Identify
18636         memory operands.
18637         (func_checker::compare_gimple_assign): Likewise.
18638         * ipa-icf-gimple.h: New function.
18640 2015-01-09  Martin Liska  <mliska@suse.cz>
18642         PR ipa/64503
18643         * sreal.c (sreal::dump): Change unsigned format to signed for
18644         m_exp value.
18645         (sreal::to_double): Replace exp2 with scalbln.
18647 2015-01-09  Martin Liska  <mliska@suse.cz>
18649         * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
18650         * ipa-icf.c (sem_function::equals_private): Add support for target and
18651         (sem_item_optimizer::merge_classes): Remove redundant function
18652         optimization flags comparison.
18653         * tree.h (target_opts_for_fn): New function.
18655 2015-01-09  Tom de Vries  <tom@codesourcery.com>
18657         * omp-low.c (expand_omp_for_static_chunk): Fix assert.
18659 2015-01-09  Kito Cheng  <kito@0xlab.org>
18661         PR rtl-optimization/64348
18662         * lra-constraints.c (split_reg): Fix caller-save store/restore
18663         instruction generation.
18665 2015-01-08  John David Anglin  <danglin@gcc.gnu.org>
18667         PR gcov-profile/61790
18668         * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
18669         long long.  Fallback to int64_t if host doesn't have long long and
18670         use strtol if int64_t is long.  Otherwise, use sscanf for conversion.
18672 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
18674         PR tree-optimization/63989
18675         * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
18676         from 1000 to 10000.
18677         * tree-ssa-strlen.c (get_strinfo): Moved earlier.
18678         (get_stridx): If we don't have a record for certain SSA_NAME,
18679         but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
18680         constant offset, call get_stridx_plus_constant.
18681         (get_stridx_plus_constant): New function.
18682         (zero_length_string): Don't use get_stridx here.
18684         PR target/55023
18685         PR middle-end/64388
18686         * dse.c (struct insn_info): Mention frame_read set also
18687         before reload for tail calls on some targets.
18688         (scan_insn): Revert 2014-12-22 change.  Set frame_read
18689         also before reload for tail calls if
18690         HARD_FRAME_POINTER_IS_ARG_POINTER.  Call add_wild_read
18691         instead of add_non_frame_wild_read for non-const/memset
18692         tail calls after reload.
18694 2015-01-08  Jason Merrill  <jason@redhat.com>
18696         * ubsan.c (do_ubsan_in_current_function): New.
18697         (pass_ubsan::gate): Use it.
18698         * ubsan.h: Declare it.
18699         * convert.c (convert_to_integer): Use it.
18701 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
18703         PR target/64338
18704         * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
18705         compare_code when it is unconditionally overwritten afterwards.
18706         Use ix86_reverse_condition instead of reverse_condition.  Don't
18707         change code if *reverse_condition* returned UNKNOWN and don't
18708         swap ct/cf and negate diff in that case.
18710 2015-01-08  Mike Stump  <mikestump@comcast.net>
18712         * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
18713         (pass_tsan_O0::gate): Likewise.
18714         * extend.texi (Function Attributes): Add no_sanitize_thread
18715         documentation.
18717 2015-01-08  Thomas Schwinge  <thomas@codesourcery.com>
18719         * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
18720         for registering builtins.
18721         * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
18722         add -fopenmp to the argv_obstack used when invoking
18723         compile_for_target.
18725         * config/i386/intelmic-mkoffload.c (compile_for_target): Always
18726         add "-m32" or "-m64" to argv_obstack.
18727         (generate_host_descr_file): Likewise, when invoking host_compiler.
18728         (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
18729         ld.
18731 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
18733         * config/sh/sh-mem.cc: Use constant as second operand when emitting
18734         tstsi_t insns.
18736 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
18738         PR target/55212
18739         * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
18740         constant load if constant operand fits into I08.
18742 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
18744         PR sanitizer/64336
18745         * tree.c (build2_stat): Fix up initialization of TREE_READONLY
18746         and TREE_THIS_VOLATILE for MEM_REFs.
18747         (build5_stat): Fix up initialization of TREE_READONLY and
18748         TREE_THIS_VOLATILE for TARGET_MEM_REFs.
18750 2015-01-08  Kaz Kojima  <kkojima@gcc.gnu.org>
18752         PR target/64533
18753         * config/sh/sh.md (*addsi3_compact): Use u constraint instead
18754         of r for the second alternative of the destination operand.
18756 2015-01-07  Segher Boessenkool  <segher@kernel.crashing.org>
18758         PR target/36557
18759         * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
18761 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
18763         * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
18764         keywords.
18765         ([-fivar-visibility], [-fvisibility]): Likewise.
18767 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
18769         * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
18770         the file where @code, @command, etc is more appropriate.
18772 2015-01-06  Sandra Loosemore  <sandra@codesourcery.com>
18774         * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
18775         of -mrecip= documentation.
18777 2015-01-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
18779         PR target/64505
18780         * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
18781         correct reload handler if -m32 -mpowerpc64 is used.
18783 2015-01-06  Tom de Vries  <tom@codesourcery.com>
18785         * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
18787 2015-01-08  Christian Bruel  <christian.bruel@st.com>
18789         PR target/64507
18790         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
18792 2015-01-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
18794         PR tree-optimization/63259
18795         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
18796         if optab exists for 16bit byteswap.
18798 2015-01-06  Jakub Jelinek  <jakub@redhat.com>
18800         * opts.c (common_handle_option): Add support for
18801         -fno-sanitize=all and -f{,no-}sanitize-recover=all.
18802         * doc/invoke.texi: Document -fno-sanitize=all,
18803         -f{,no-}sanitize-recover=all.  Document that
18804         -fsanitize=float-cast-overflow is not enabled
18805         by -fsanitize=undefined.  Fix up documentation
18806         of -f{,no-}sanitize-recover.
18808 2015-01-06  Eric Botcazou  <ebotcazou@adacore.com>
18810         * config.gcc: Add Visium support.
18811         * configure.ac: Likewise.
18812         * configure: Regenerate.
18813         * doc/extend.texi (interrupt attribute): Add Visium.
18814         * doc/invoke.texi: Document Visium options.
18815         * doc/install.texi: Document Visium target.
18816         * doc/md.texi: Document Visium constraints.
18817         * common/config/visium: New directory.
18818         * config/visium: Likewise.
18820 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
18822         * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
18823         for the "(and X (ior (not X) Y) -> (and X Y)" transform.
18825 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
18827         * combine.c (combine_validate_cost): Do not count the cost of a
18828         split I2 twice.  Do not display it twice in the dump, either.
18830 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
18832         Revert parts of r219199.
18833         * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
18834         <inttypes.h>.
18835         ([-Wtraditional]): Restore markup on <limits.h>.
18837 2015-01-05  Trevor Saunders  <tsaunders@mozilla.com>
18839         PR c++/31397
18840         * doc/invoke.texi: Document -Wsuggest-override.
18842 2015-01-05  Radovan Obradovic  <radovan.obradovic@imgtec.com>
18844         PR rtl-optimization/64287
18845         * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
18846         (process_options): Disable flag_ipa_ra if profiling.
18848 2015-01-05  Eric Botcazou  <ebotcazou@adacore.com>
18850         * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
18852 2015-01-05  Max Filippov  <jcmvbkbc@gmail.com>
18854         * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
18855         hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
18856         put under #if TARGET_LOOPS guard.
18858 2015-01-05  Uros Bizjak  <ubizjak@gmail.com>
18860         * config/i386/i386.c (output_387_binary_op): Use std::swap.
18862 2015-01-05  Oleg Endo  <olegendo@gcc.gnu.org>
18864         * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
18865         * rtl.h (refers_to_regno_p): Add overload.
18866         * cse.c: Use it.
18867         * bt-load.c: Likewise.
18868         * combine.c: Likewise.
18869         * df-scan.c: Likewise.
18870         * sched-deps.c: Likewise.
18871         * config/s390/s390.c: Likewise.
18872         * config/m32r/m32r.c: Likewise.
18873         * config/rs6000/spe.md: Likewise.
18874         * config/rs6000/rs6000.c: Likewise.
18875         * config/pa/pa.c: Likewise.
18876         * config/stormy16/stormy16.c: Likewise.
18877         * config/cris/cris.c: Likewise.
18878         * config/arc/arc.md: Likewise.
18879         * config/arc/arc.c: Likewise.
18880         * config/sh/sh.md: Likewise.
18881         * config/sh/sh.c: Likewise.
18882         * config/frv/frv.c: Likewise.
18884 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
18886         PR sanitizer/64265
18887         * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
18888         call as cleanup of the whole body.
18889         * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
18890         * tsan.c (replace_func_exit): New function.
18891         (instrument_func_exit): Moved earlier.
18892         (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
18893         Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
18894         been found.
18895         (tsan_pass): Don't call instrument_func_exit.
18896         * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
18897         * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
18898         inlining.
18900         PR sanitizer/64344
18901         * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
18902         * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
18903         it to libubsan handler instead of EXPR.  Fold comparisons earlier,
18904         if the result is integer_zerop, return NULL_TREE.
18905         * convert.c (convert_to_integer): Pass expr as ARG.
18907         PR tree-optimization/64465
18908         * tree-inline.c (redirect_all_calls): During inlining
18909         clean up EH stmts and EH edges if redirect_call_stmt_to_callee
18910         changed the stmt to a non-throwing call.
18912 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
18914         * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
18915         etc markup throughout the file.
18917 2015-01-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
18919         Enable experimental TSAN support for Ada.
18920         * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
18922 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
18924         PR tree-optimization/64494
18925         * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
18926         clear SSA_NAME_ANTI_RANGE_P flag.
18928 2015-01-05  Marek Polacek  <polacek@redhat.com>
18930         * doc/extend.texi (Arrays of Length Zero): Add missing comma.
18932 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
18934         Update copyright years.
18936         * gcc.c (process_command): Update copyright notice dates.
18937         * gcov-dump.c: Ditto.
18938         * gcov.c: Ditto.
18939         * doc/cpp.texi: Bump @copying's copyright year.
18940         * doc/cppinternals.texi: Ditto.
18941         * doc/gcc.texi: Ditto.
18942         * doc/gccint.texi: Ditto.
18943         * doc/gcov.texi: Ditto.
18944         * doc/install.texi: Ditto.
18945         * doc/invoke.texi: Ditto.
18947         * auto-profile.c, auto-profile.h: Fix up Copyright line.
18949 2015-01-04  Sandra Loosemore  <sandra@codesourcery.com>
18951         * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
18952         verb tense, etc.
18953         ([-fvtable-verify], [-fvtv-debug]): Likewise.
18954         ([-Wabi]): Likewise.
18955         ([-fmessage-length]): Likewise.
18956         ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
18957         ([-Wno-discarded-qualifiers]): Likewise.
18958         ([-Wnodiscarded-array-qualifiers]): Likewise.
18959         ([-Wno-virtual-move-assign]): Likewise.
18960         ([-fsanitize=address], [-fsanitize=thread]): Likewise.
18961         ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
18962         ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
18963         ([-fsanitize-undefined-trap-on-error]): Likewise.
18964         ([-floop-interchange]): Likewise.
18965         ([-ftree-coalesce-inlined-vars]): Likewise.
18966         ([-fvect-cost-model]): Likewise.
18967         ([-flto]): Likewise.
18968         ([--param]): Likewise.
18969         (Spec Files): Likewise.
18970         ([-mstrict-align]): Likewise.
18971         ([-mfix-cortex-a53-835769]): Likewise.
18972         ([-march], [-mtune]): Likewise.
18973         ([-mpic-register]): Likewise.
18974         ([-munaligned-access]): Likewise.
18975         ([-msp8]): Likewise.
18976         (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
18977         (AVR Built-in Macros): Likewise.
18978         ([-mpreferred-stack-boundary]): Likewise.
18979         ([-mtune-crtl]): Likewise.
18980         ([-mashf]): Likewise.
18981         ([-mmcu=]): Likewise.
18982         ([-minrt]): Likewise.
18983         ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
18984         ([-mupper-regs]): Likewise.
18985         ([-matomic-model]): Likewise.
18986         ([-mdiv]): Likewise.
18987         ([-mzdcbranch]): Likewise.
18988         ([-mdisable-callt]): Likewise.
18989         ([-msoft-float]): Likewise.
18990         ([-m8byte-align]): Likewise.
18991         ([-fstack-reuse]): Likewise.
18993 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
18995         * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
18996         Fix markup, light copy-editing.
18997         ([-fauto-profile]): Rewrite to fix formatting and content
18998         problems.
19000 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
19002         * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
19003         Copy-edit description.
19004         ([-fisolate-erroneous-paths-attribute]): Likewise.
19005         * common.opt (fisolate-erroneous-paths-dereference):
19006         Copy-edit description.
19007         (fisolate-erroneous-paths-attribute): Likewise.
19009 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
19011         * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
19012         tidy grammar.
19014 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
19016         * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
19017         ([-fvtv-debug]): Likewise.
19018         ([-Wc++-compat]): Likewise.
19019         ([-Wc++11-compat]): Likewise.
19020         ([-Wc++14-compat]): Likewise.
19021         ([-Wno-sized-deallocation]): Likewise.
19022         ([-femit-class-debug-always]): Likewise.
19023         ([-femit-struct-debug-detailed]): Likewise.
19024         ([-fno-keep-inline-dllexport]): Likewise.
19025         ([-fira-algorithm]): Likewise.
19026         ([-fira-region]): Likewise.
19027         ([-flra-remat]): Likewise.
19028         ([-fipa-ra]): Likewise.
19029         ([-fhoist-adjacent-loads]): Likewise.
19030         ([-fisolate-erroneous-paths-dereference]): Likewise.
19031         ([-fisolate-erroneous-paths-attribute]): Likewise.
19032         ([-ftree-switch-conversion]): Likewise.
19033         ([-ftree-tail-merge]): Likewise.
19034         ([-ftree-loop-if-convert]): Likewise.
19035         ([-ftree-loop-if-convert-stores]): Likewise.
19036         ([-ftree-loop-distribution]): Likewise.
19037         ([-ftree-loop-distribute-patterns]): Likewise.
19038         ([-flto-compression-level]): Likewise.
19039         ([-flto-report]): Likewise.
19040         ([-flto-report-wpa]): Likewise.
19041         ([-fuse-linker-plugin]): Likewise.
19042         ([-mfix-cortex-a53-835769]): Likewise.
19043         ([-mno-fix-cortex-a53-835769]): Likewise.
19044         ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
19045         explicit listing; add a note to the discussion indicating they
19046         exist.  Reorder table to group similar options.  Add missing
19047         @opindex entries.  Add @need commands throughout the table to
19048         allow it to be split across multiple pages.
19049         ([-m8bit-idiv]): Fix @opindex.
19050         ([-mavx256-split-unaligned-load]): Likewise.
19051         ([-mavx256-split-unaligned-store]): Likewise.
19052         ([-mstack-protector-guard]): Likewise.
19053         ([-mcpu=]): Likewise.
19054         ([-mcpu]): Likewise.
19055         ([-mpointer-size=]): Likewise.
19057 2015-01-03  John David Anglin  <danglin@gcc.gnu.org>
19059         * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
19060         instead of `m' constraint.  Likewise for unnamed movb comparison
19061         patterns using reg_before_reload_operand predicate.
19062         * config/pa/predicates.md (reg_before_reload_operand): Tighten
19063         predicate to reject register index and LO_SUM DLT memory forms
19064         after reload.
19066 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
19068         * doc/invoke.texi (Option Summary): Fix spelling of
19069         -fdevirtualize-at-ltrans.
19070         ([-fdevirtualize]): Fix markup.
19071         ([-fdevirtualize-speculatively]): Fix typo.
19072         ([-fdevirtualize-at-ltrans]): Likewise.  Make description less
19073         implementor-speaky.
19074         * common.opt (fdevirtualize-at-ltrans): Likewise.
19075         * ipa-devirt.c: Fix typos in comments throughout the file.
19076         (ipa_devirt): Fix typos in format strings for dump output.
19078 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
19080         * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
19081         discussion of defaults, light copy-editing.
19083 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
19085         * tsan.c (instrument_expr): corrected previous checkin.
19087 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
19089         Instrument bit field and unaligned accesses for TSAN.
19090         * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
19091         (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
19092         * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
19093         Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
19094         unaligned memory regions.
19096 2015-01-01  Anthony Green  <green@moxielogic.com>
19098         * config/moxie/predicates.md (moxie_general_movsrc_operand):
19099         Restrict move source register offsets to 16 bits.
19101 Copyright (C) 2015 Free Software Foundation, Inc.
19103 Copying and distribution of this file, with or without modification,
19104 are permitted in any medium without royalty provided the copyright
19105 notice and this notice are preserved.