gcc/ChangeLog:
[official-gcc.git] / gcc / ChangeLog
blob48e91596a76bbbcff5180e10b7baf4bd37470b53
1 2015-07-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3         PR rtl-optimization/61047
4         * rtlanal.c (get_initial_register_offset): New function.
5         (rtx_addr_can_trap_p_1): Check offsets of stack references.
7 2015-07-01  Richard Biener  <rguenther@suse.de>
9         * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
10         X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
11         ~X CMP C -> X CMP' ~C to ...
12         * match.pd: ... patterns here.
14 2015-07-01  Nick Clifton  <nickc@redhat.com>
16         * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
17         a 16-bit value into a 20-bit memory slot.
19 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
21         * doc/sourcebuild.texi (AArch64-specific attributes): Document
22         "aarch64_tiny", "aarch64_small", "aarch64_large",
23         "aarch64_little_endian", "aarch64_big_endian".
25 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
27         * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
28         Document "aarch64_small_fpic".
30 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
32         * configure.ac: Add check for aarch64 assembler -fpic relocation
33         modifier support.
34         * configure: Regenerate.
35         * config.in: Regenerate.
36         * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
37         to -fPIC if not support of -fpic relocation modifier in assembler.
39 2015-07-01  Richard Sandiford  <richard.sandiford@arm.com>
41         PR bootstrap/66685
42         * rtl.c (classify_insn): Handle returns in PARALLELs.
44 2015-07-01  Eric Botcazou  <ebotcazou@adacore.com>
46         PR middle-end/66633
47         * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
48         to true if the function is nested and if not optimizing.
49         (convert_local_omp_clauses): Initialize need_frame to true if the
50         function contains nested functions and if not optimizing.
52 2015-07-01  Richard Biener  <rguenther@suse.de>
54         * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
55         (X & Y) ^ Y -> ~X & Y transforms to ...
56         * match.pd: ... here.
58 2015-07-01  Richard Biener <rguenther@suse.de>
60         * genmatch.c (expr::gen_transform): Shortcut re-simplifying
61         of converts to avoid uninteresting noise from the conversion
62         simplifying patterns.
64 2015-06-30  Sandra Loosemore <sandra@codesourcery.com>
66         * config/c6x/c6x.c (try_rename_operands): Do not depend on
67         gcc_assert evaluating its argument for side-effect.
69 2015-06-30  Kaz Kojima  <kkojima@gcc.gnu.org>
71         PR target/64833
72         * config/sh/sh.md (casesi_worker_1): Set length to 8 when
73         flag_pic is set.
75 2015-06-30  Eric Botcazou  <ebotcazou@adacore.com>
77         * lto-streamer-out.c (class DFS): Adjust hash_scc method.
78         (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
79         (hash_scc): Add this_ref_p and ref_p parameters and pass them
80         to the inner DFS walk.
82 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
84         * target-insns.def (jump): New targetm instruction pattern.
85         * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
86         instead of gen_jump.
87         (fix_up_crossing_landing_pad): Likewise.
88         (add_labels_and_missing_jumps): Likewise.
89         (fix_crossing_conditional_branches): Likewise.
90         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
91         (force_nonfallthru_and_redirect): Likewise.
92         * cse.c (cse_insn): Likewise.
93         * expmed.c (expand_divmod): Likewise.
94         * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
95         * haifa-sched.c (init_before_recovery): Likewise.
96         (sched_create_recovery_edges): Likewise.
97         * ifcvt.c (find_cond_trap): Likewise.
98         * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
99         (expand_float, expand_fix): Likewise.
100         * stmt.c (emit_jump): Likewise.
102 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
104         * defaults.h (HAVE_load_multiple, gen_load_multiple)
105         (HAVE_store_multiple, gen_store_multiple): Delete.
106         * target-insns.def (load_multiple, store_multiple): New targetm
107         instruction patterns.
108         * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
109         of HAVE_*/gen_* interface.
111 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
113         * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
114         (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
115         (gen_mem_signal_fence): Delete.
116         * target-insns.def (mem_signal_fence, mem_thread_fence)
117         (memory_barrier): New targetm instruction patterns.
118         * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
119         interface.
120         (expand_mem_signal_fence): Likewise.
122 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
124         * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
125         * target-insns.def (epilogue, prologue, sibcall_prologue): New
126         targetm instruction patterns.
127         * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
128         interface.
129         * calls.c (expand_call): Likewise.
130         * cfgrtl.c (cfg_layout_finalize): Likewise.
131         * df-scan.c (df_get_entry_block_def_set): Likewise.
132         (df_get_exit_block_use_set): Likewise.
133         * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
134         * final.c (final_start_function): Likewise.
135         * function.c (thread_prologue_and_epilogue_insns): Likewise.
136         (reposition_prologue_and_epilogue_notes): Likewise.
137         * reorg.c (find_end_label): Likewise.
138         * toplev.c (process_options): Likewise.
140 2015-06-30  David Malcolm  <dmalcolm@redhat.com>
142         * typed-splay-tree.h: New file.
144 2015-06-30  Vladimir Makarov  <vmakarov@redhat.com>
146         PR debug/66691
147         * lra-int.h (lra_substitute_pseudo): Add a parameter.
148         (lra_substitute_pseudo_within_insn): Ditto.
149         * lra.c (lra_substitute_pseudo): Add a parameter.  Simplify subreg
150         of constant.
151         (lra_substitute_pseudo_within_insn): Add a parameter.  Transfer it
152         to lra_substitute_pseudo.
153         * lra-lives.c (process_bb_lives): Add an argument to
154         lra_substitute_pseudo_within_insn call.
155         * lra-constraints.c (inherit_reload_reg, split_reg): Add an
156         argument to lra_substitute_pseudo and
157         lra_substitute_pseudo_within_insn calls.
158         (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
160 2015-06-30  H.J. Lu  <hongjiu.lu@intel.com>
162         * configure: Regenerated.
164 2015-06-30  H.J. Lu  <hongjiu.lu@intel.com>
166         * config.gcc: Support i[34567]86-*-elfiamcu target.
167         * config/i386/iamcu.h: New.
168         * config/i386/i386.opt: Add -miamcu.
169         * doc/invoke.texi: Document -miamcu.
170         * common/config/i386/i386-common.c  (ix86_handle_option): Turn
171         off x87/MMX/SSE/AVX codegen for -miamcu.
172         * config/i386/i386-c.c (ix86_target_macros_internal): Define
173         __iamcu/__iamcu__ for -miamcu.
174         * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
175         to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
176         (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
177         * config/i386/i386.c (ix86_option_override_internal): Ignore and
178         warn -mregparm for Intel MCU.  Turn on -mregparm=3 for Intel
179         MCU by default.  Default long double to 64-bit for Intel MCU.
180         Turn on -freg-struct-return for Intel MCU.  Issue an error when
181         -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
182         AVX is turned on.
183         (function_arg_advance_32): Pass value whose size is no larger
184         than 8 bytes in registers for Intel MCU.
185         (function_arg_32): Likewise.
186         (ix86_return_in_memory): Return value whose size is no larger
187         than 8 bytes in registers for Intel MCU.
188         (iamcu_alignment): New function.
189         (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
190         true.
191         (ix86_local_alignment): Don't increase alignment for Intel MCU.
192         (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
193         true.
195 2015-06-30  Marek Polacek  <polacek@redhat.com>
197         * match.pd (X - (X / Y) * Y): Use convert1 and convert2.  Convert
198         both operands of the resulting expression.      
200         * match.pd (~x | x): Don't use tree_nop_conversion_p.  Build
201         the final expression with the operand's type and then convert
202         it to the type of the expression.
204 2015-06-30  Richard Biener  <rguenther@suse.de>
206         * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
207         ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
208         (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
209         * match.pd: ... to patterns here.
211 2015-06-30  Richard Biener  <rguenther@suse.de>
213         PR tree-optimization/66704
214         * tree-vect-data-refs.c (vect_setup_realignment): Use
215         make_ssa_name for non-SSA name source.
217 2015-06-30  Jakub Jelinek  <jakub@redhat.com>
219         PR middle-end/66702
220         * omp-low.c (simd_clone_adjust): Handle addressable linear
221         or uniform parameters or non-gimple type uniform parameters.
223 2015-06-30  Richard Biener  <rguenther@suse.de>
225         * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
226         ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
227         ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
228         * match.pd: ... here.
229         Add a few cases of A - B -> A + (-B) when B "easily" negates.
230         Move (x & y) | x -> x and friends before
231         (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
233 2015-06-30  Eric Botcazou  <ebotcazou@adacore.com>
235         * config/sparc/leon.md (leon_load): Enable for all LEON variants if
236         -mfix-ut699 is not specified.
237         (leon3_load): Rename into...
238         (ut699_load): ...this.  Enable for all LEON variants if -mfix-ut699
239         is specified.
241 2015-06-30  Marek Polacek  <polacek@redhat.com>
243         * fold-const.c (fold_binary_loc): Move ~X | X folding ...
244         * match.pd: ... here.
246 2015-06-30  Richard Biener  <rguenther@suse.de>
248         * target-insns.def (canonicalize_funcptr_for_compare): Add.
249         * fold-const.c (build_range_check): Replace uses of
250         HAVE_canonicalize_funcptr_for_compare.
251         (fold_widened_comparison): Likewise.
252         (fold_sign_changed_comparison): Likewise.
253         * dojump.c: Include "target.h".
254         (do_compare_and_jump): Replace uses of
255         HAVE_canonicalize_funcptr_for_compare and
256         gen_canonicalize_funcptr_for_compare.
257         * expr.c (do_store_flag): Likewise.
259 2015-06-30  Tom de Vries  <tom@codesourcery.com>
261         PR tree-optimization/66652
262         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
263         max_loop_iterations to determine if nit + 1 overflows.
265 2015-06-30  Richard Biener  <rguenther@suse.de>
267         * tree-vrp.c (register_edge_assert_for_2): Also register
268         asserts for dominating conversion results.
270 2015-06-30  Bin Cheng  <bin.cheng@arm.com>
272         * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
273         field in struct iv.
275 2015-06-29  Jack Howarth  <howarth.at.gcc@gmail.com>
277         PR target/66509
278         * configure.ac: Fix filds and fildq test for 64-bit.
279         * configure: Regenerated.
281 2015-06-29  Nathan Sidwell  <nathan@codesourcery.com>
283         * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
284         (nvptx_reorg): Here.  Keep the non-subreg pieces.
286 2015-06-29  H.J. Lu  <hongjiu.lu@intel.com>
288         * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
289         PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
291 2015-06-29  Uros Bizjak  <ubizjak@gmail.com>
293         * config/i386/i386.md (*jcc_1): Use %! in asm template.
294         Set attribute "length_nobnd" instead of "length".
295         (*jcc_2): Ditto.
296         (jump): Ditto.
297         (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
299 2015-06-29  Sandra Loosemore  <sandra@codesourcery.com>
301         * config/nios2/nios2.c (nios2_delegitimize_address): Make
302         assert less restrictive.
304 2015-06-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
306         PR fortran/66605
307         * cgraphunit.c (cgraph_node::finalize_function): Do not call
308         do_warn_unused_parameter.
309         * function.c (do_warn_unused_parameter): Move from here.
310         * function.h (do_warn_unused_parameter): Do not declare.
312 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
314         PR target/65697
315         * gcc.target/arm/armv-sync-comp-swap.c: New.
316         * gcc.target/arm/armv-sync-op-acquire.c: New.
317         * gcc.target/arm/armv-sync-op-full.c: New.
318         * gcc.target/arm/armv-sync-op-release.c: New.
320 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
322         PR target/65697
323         * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
324         initial acquire barrier with final barrier.
326 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
328         PR target/65697
329         * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
330         initial acquire barrier with final barrier.
332 2015-06-29  Richard Henderson  <rth@redhat.com>
334         * config/i386/constraints.md (Bf): New constraint.
335         * config/i386/i386-c.c (ix86_target_macros): Define
336         __GCC_ASM_FLAG_OUTPUTS__.
337         * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
338         as flags outputs.
339         * doc/extend.texi (FlagOutputOperands): Document them.
341 2015-06-29  Jiong Wang  <jiong.wang@arm.com>
343         * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
344         * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
345         unspec name.
346         (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
347         * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
348         SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
349         (aarch64_symbol_context): Ditto.
350         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
351         and use new pattern name.
352         (aarch64_expand_mov_immediate): Ditto.
353         (aarch64_print_operand): Ditto.
354         (aarch64_classify_tls_symbol): Ditto.
356 2015-06-29  Marek Polacek  <polacek@redhat.com>
357             Marc Glisse  <marc.glisse@inria.fr>
359         * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
360         * match.pd: ... pattern here.
362 2015-06-29  Tom de Vries  <tom@codesourcery.com>
364         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
365         function structure.
367 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
369         * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
370         feature description, split out the native option, add a link to
371         the feature documentation, rearrange and slightly rewrite text.
372         (Aarch64 options, -mcpu): Likewise.
373         (Aarch64 options, Feature Modifiers): Add an anchor.  Mention
374         +rdma implies Adv. SIMD.
376 2015-06-29  Marek Polacek  <polacek@redhat.com>
378         PR c/66322
379         * function.c (stack_protect_epilogue): Remove a cast to int.
380         * doc/invoke.texi: Update -Wswitch-bool description.
382 2015-06-29  Richard Biener  <rguenther@suse.de>
384         * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
385         * fold-const.c (fold_binary_loc): Move &A - &B simplification
386         via ptr_difference_const ...
387         * match.pd: ... here.
388         When matching (X ^ Y) == Y also match with swapped operands.
390 2015-06-29  Richard Biener  <rguenther@suse.de>
392         * lto-streamer.h (LTO_major_version): Bump to 5.
394 2015-06-29  Richard Biener  <rguenther@suse.de>
396         PR tree-optimization/66677
397         * tree-vect-stmts.c (vect_transform_stmt): Make assert about
398         STMT_VINFO_VEC_STMT clobbering less strict.
400 2015-06-29  Kugan Vivekanandarajah  <kuganv@linaro.org>
402         PR middle-end/64130
403         * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
404         division, compute max and min when value ranges for dividend and
405         divisor are available.
407 2015-06-28  Chung-Lin Tang <cltang@codesourcery.com>
408             Sandra Loosemore <sandra@codesourcery.com>
410         * regrename.h (regrename_do_replace): Change to return bool.
411         * regrename.c (rename_chains): Check return value of
412         regname_do_replace.
413         (regrename_do_replace): Re-validate the modified insns and
414         return bool status.
415         * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
416         Update to match rename_chains changes.
417         * config/c6x/c6x.c (try_rename_operands): Assert that
418         regrename_do_replace returns true.
420 2015-06-28  Uros Bizjak  <ubizjak@gmail.com>
422         * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
423         operand 2 here.  Use copy_addr_to_reg to copy non-index
424         register operand 2 to a temporary.
425         (<mode>_stx): Ditto for operand 1.
426         (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
427         * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
428         (ix86_store_bounds): Ditto.
430 2015-06-27  Patrick Palka  <ppalka@gcc.gnu.org>
432         * print-tree.c (print_node) [TREE_VEC]: Print its length.
434 2015-06-26  Andrew MacLeod  <amacleod@redhat.com>
436         * gimple.c (gimple_call_set_fndecl): Remove.
437         * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
438         build1_loc directly instead of build_fold_addr_expr_loc.
440 2015-06-26  Richard Sandiford  <richard.sandiford@arm.com>
442         * hash-map.h (hash_map::traverse): Use the definition of the
443         Key typedef rather than the typedef itself.
445 2015-06-26  Martin Jambor  <mjambor@suse.cz>
447         PR debug/66301
448         * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
449         NULL instead of calling dump_enabled_p.
451 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
453         * config/aarch64/aarch64.opt: (override): New.
454         * doc/invoke.texi (override): Document.
455         * config/aarch64/aarch64.c (aarch64_flag_desc): New
456         (aarch64_fusible_pairs): Likewise.
457         (aarch64_tuning_flags): Likewise.
458         (aarch64_tuning_override_function): Likewise.
459         (aarch64_tuning_override_functions): Likewise.
460         (aarch64_parse_one_option_token): Likewise.
461         (aarch64_parse_boolean_options): Likewise.
462         (aarch64_parse_fuse_string): Likewise.
463         (aarch64_parse_tune_string): Likewise.
464         (aarch64_parse_one_override_token): Likewise.
465         (aarch64_parse_override_string): Likewise.
466         (aarch64_override_options): Parse the -override string if it
467         is present.
469 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
471         * config/aarch64/aarch64-protos.h (tune_params): Remove
472         const from members.
473         (aarch64_tune_params): Remove const, change to no longer be
474         a pointer.
475         * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
476         change to no longer be a pointer, initialize to generic_tunings.
477         (aarch64_min_divisions_for_recip_mul): Change dereference of
478         aarch64_tune_params to member access.
479         (aarch64_reassociation_width): Likewise.
480         (aarch64_rtx_mult_cost): Likewise.
481         (aarch64_address_cost): Likewise.
482         (aarch64_branch_cost): Likewise.
483         (aarch64_rtx_costs): Likewise.
484         (aarch64_register_move_cost): Likewise.
485         (aarch64_memory_move_cost): Likewise.
486         (aarch64_sched_issue_rate): Likewise.
487         (aarch64_builtin_vectorization_cost): Likewise.
488         (aarch64_override_options): Take a copy of the selected tuning
489         struct in to aarch64_tune_params, rather than just setting
490         a pointer, change dereferences of aarch64_tune_params to member
491         accesses.
492         (aarch64_override_options_after_change): Change dereferences of
493         aarch64_tune_params to member access.
494         (aarch64_macro_fusion_p): Likewise.
495         (aarch_macro_fusion_pair_p): Likewise.
496         * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
498 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
500         * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
501         (aarch64_tune_flags): Likewise.
502         (AARCH64_TUNE_FMA_STEERING): Likewise.
503         * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
504         to AARCH64_FL_USE_FMA_STEERING_PASS.
505         (cortex-a57.cortex-a53): Likewise.
506         (cortex-a72): Use cortexa72_tunings.
507         (cortex-a72.cortex-a53): Likewise.
508         (exynos-m1): Likewise.
509         * config/aarch64/aarch64-protos.h (tune_params): Add
510         a field: extra_tuning_flags.
511         * config/aarch64/aarch64-tuning-flags.def: New.
512         * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
513         (aarch64_extra_tuning_flags): Likewise.
514         (aarch64_tune_params): Declare here.
515         * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
516         (cortexa53_tunings): Likewise.
517         (cortexa57_tunings): Likewise.
518         (thunderx_tunings): Likewise.
519         (xgene1_tunings): Likewise.
520         (cortexa72_tunings): New.
521         * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
522          (gate): Check against aarch64_tune_params.
523         * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
524         aarch64-protos.h.
526 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
528         * config/aarch64/aarch64-fusion-pairs.def: New.
529         * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
530         * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
531         aarch64_fusion_pairs.
532         (AARCH64_FUSE_MOV_MOVK): Likewise.
533         (AARCH64_FUSE_ADRP_ADD): Likewise.
534         (AARCH64_FUSE_MOVK_MOVK): Likewise.
535         (AARCH64_FUSE_ADRP_LDR): Likewise.
536         (AARCH64_FUSE_CMP_BRANCH): Likewise.
538 2015-06-26  Jiong Wang  <jiong.wang@arm.com>
540         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
541         SYMBOL_SMALL_GOT_28K.
542         * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
543         relocation modifiers.
544         (unspec): New enum "UNSPEC_GOTMALLPIC28K.
545         (ldr_got_small_28k_<mode>): New.
546         (ldr_got_small_28k_sidi): New.
547         * config/aarch64/iterators.md (got_modifier): New mode iterator.
548         * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
549         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
550         SYMBOL_SMALL_GOT_28K.
551         (aarch64_rtx_costs): Add costs for new instruction sequences.
552         (initialize_aarch64_code_model): Initialize new model.
553         (aarch64_classify_symbol): Recognize new model and new symbol classification.
554         (aarch64_asm_preferred_eh_data_format): Support new model.
555         (aarch64_load_symref_appropriately): Generate new instruction
556         sequences for -fpic.
557         (TARGET_USE_PSEUDO_PIC_REG): New definition.
558         (aarch64_use_pseudo_pic_reg): New function.
560 2015-06-26  Jiong Wang  <jiong.wang@arm.com>
562         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
563         SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
564         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
565         (aarch64_expand_mov_immediate): Ditto.
566         (aarch64_print_operand): Ditto.
567         (aarch64_classify_symbol): Ditto.
569 2015-06-26  Nathan Sidwell  <nathan@codesourcery.com>
571         * config/nvptx/nvptx.md (call_operation): Remove unused variables.
573 2015-06-26  Bin Cheng  <bin.cheng@arm.com>
575         PR bootstrap/66638
576         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
577         assertion failed.  Remove assertion itself.
579 2015-06-26  Richard Biener  <rguenther@suse.de>
581         * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
582         and -A CMP CST -> A CMP -CST which is redundant with a pattern
583         in match.pd.
584         Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
585         (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
586         (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
587         * match.pd: ... patterns here.
589 2015-06-26  Marek Polacek  <polacek@redhat.com>
591         * match.pd ((x | y) & ~(x & y) -> x ^ y,
592         (x | y) & (~x ^ y) -> x & y): New patterns.
594 2015-06-26  Richard Sandiford  <richard.sandiford@arm.com>
596         * rtl.h (emit): Add an optional boolean parameter to control
597         whether barriers are emitted.
598         * emit-rtl.c (emit): Likewise.
599         * gensupport.c (get_emit_function): Return null rather than "emit".
600         * genemit.c (gen_emit_seq): Handle the null return value.
601         Don't emit barriers after the final instruction in the sequence.
602         * gentarget-def.c (main): Don't emit barriers after the instruction.
604 2015-06-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
606         * config/arm/arm.c (arm_output_multireg_pop): Fix use of
607         TARGET_UNIFIED_ASM.
609 2015-06-26  Richard Biener  <rguenther@suse.de>
611         * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
613 2015-06-26  Richard Biener  <rguenther@suse.de>
615         * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
616         irrespective on whether the inner operation has a single use
617         of both off are constant.
619 2015-06-26  Uros Bizjak  <ubizjak@gmail.com>
620             Segher Boessenkool  <segher@kernel.crashing.org>
622         PR target/66412
623         * config/i386/i386.md (various splitters): Use shallow_copy_rtx
624         before doing PUT_MODE or PUT_CODE on operands to avoid
625         in-place RTX modification.
627 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
629         * gentarget-def.c (def_target_insn): Cast return of strtol to
630         unsigned int.
632 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
634         * gimple.h (gimple_call_set_fn): Move inline function.
635         * gimple.c (gimple_call_set_fn): Relocate here.
637 2015-06-25  Oleg Endo  <olegendo@gcc.gnu.org>
639         PR target/65979
640         PR target/66611
641         * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
642         the replacement insn will work.
644 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
646         * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
647         by default.
649 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
651         * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
652         * cgraph.h: Include ipa-ref.h and plugin-api.h.
653         (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
654         (symtab_node::address_can_be_compared_p): Move function.
655         * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
656         definition here.
657         * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
658         * auto-profile.c: Likewise.
659         * bb-reorder.c: Likewise.
660         * builtins.c: Likewise.
661         * calls.c: Likewise.
662         * cfgexpand.c: Likewise.
663         * cgraphbuild.c: Likewise.
664         * cgraphclones.c: Likewise.
665         * cgraphunit.c: Likewise.
666         * combine.c: Likewise.
667         * coverage.c: Likewise.
668         * data-streamer-in.c: Likewise.
669         * data-streamer-out.c: Likewise.
670         * data-streamer.c: Likewise.
671         * dbxout.c: Likewise.
672         * dwarf2out.c: Likewise.
673         * except.c: Likewise.
674         * expr.c: Likewise.
675         * final.c: Likewise.
676         * fold-const.c: Likewise.
677         * ggc-page.c: Likewise.
678         * gimple-fold.c: Likewise.
679         * gimple-iterator.c: Likewise.
680         * gimple-pretty-print.c: Likewise.
681         * gimple-streamer-in.c: Likewise.
682         * gimple-streamer-out.c: Likewise.
683         * gimple.c: Likewise.
684         * gimplify.c: Likewise.
685         * ipa-chkp.c: Likewise.
686         * ipa-comdats.c: Likewise.
687         * ipa-cp.c: Likewise.
688         * ipa-devirt.c: Likewise.
689         * ipa-icf-gimple.c: Likewise.
690         * ipa-icf.c: Likewise.
691         * ipa-inline-analysis.c: Likewise.
692         * ipa-inline-transform.c: Likewise.
693         * ipa-inline.c: Likewise.
694         * ipa-polymorphic-call.c: Likewise.
695         * ipa-profile.c: Likewise.
696         * ipa-prop.c: Likewise.
697         * ipa-pure-const.c: Likewise.
698         * ipa-ref.c: Likewise.
699         * ipa-reference.c: Likewise.
700         * ipa-split.c: Likewise.
701         * ipa-utils.c: Likewise.
702         * ipa-visibility.c: Likewise.
703         * ipa.c: Likewise.
704         * langhooks.c: Likewise.
705         * lto-cgraph.c: Likewise.
706         * lto-compress.c: Likewise.
707         * lto-opts.c: Likewise.
708         * lto-section-in.c: Likewise.
709         * lto-section-out.c: Likewise.
710         * lto-streamer-in.c: Likewise.
711         * lto-streamer-out.c: Likewise.
712         * lto-streamer.c: Likewise.
713         * omp-low.c: Likewise.
714         * opts-global.c: Likewise.
715         * passes.c: Likewise.
716         * predict.c: Likewise.
717         * print-tree.c: Likewise.
718         * profile.c: Likewise.
719         * ree.c: Likewise.
720         * sanopt.c: Likewise.
721         * stor-layout.c: Likewise.
722         * symtab.c: Likewise.
723         * toplev.c: Likewise.
724         * trans-mem.c: Likewise.
725         * tree-cfg.c: Likewise.
726         * tree-chkp.c: Likewise.
727         * tree-eh.c: Likewise.
728         * tree-emutls.c: Likewise.
729         * tree-inline.c: Likewise.
730         * tree-nested.c: Likewise.
731         * tree-parloops.c: Likewise.
732         * tree-pretty-print.c: Likewise.
733         * tree-profile.c: Likewise.
734         * tree-sra.c: Likewise.
735         * tree-ssa-alias.c: Likewise.
736         * tree-ssa-live.c: Likewise.
737         * tree-ssa-loop-ivcanon.c: Likewise.
738         * tree-ssa-loop-ivopts.c: Likewise.
739         * tree-ssa-pre.c: Likewise.
740         * tree-ssa-sccvn.c: Likewise.
741         * tree-ssa-strlen.c: Likewise.
742         * tree-ssa-structalias.c: Likewise.
743         * tree-streamer-in.c: Likewise.
744         * tree-streamer-out.c: Likewise.
745         * tree-streamer.c: Likewise.
746         * tree-switch-conversion.c: Likewise.
747         * tree-tailcall.c: Likewise.
748         * tree-vect-data-refs.c: Likewise.
749         * tree-vect-stmts.c: Likewise.
750         * tree-vectorizer.c: Likewise.
751         * tree.c: Likewise.
752         * tsan.c: Likewise.
753         * ubsan.c: Likewise.
754         * value-prof.c: Likewise.
755         * varasm.c: Likewise.
756         * varpool.c: Likewise.
757         * config/arm/arm.c: Likewise.
758         * config/bfin/bfin.c: Likewise.
759         * config/c6x/c6x.c: Likewise.
760         * config/cris/cris.c: Likewise.
761         * config/darwin-c.c: Likewise.
762         * config/darwin.c: Likewise.
763         * config/i386/i386.c: Likewise.
764         * config/i386/winnt.c: Likewise.
765         * config/microblaze/microblaze.c: Likewise.
766         * config/mips/mips.c: Likewise.
767         * config/rs6000/rs6000.c: Likewise.
768         * config/rx/rx.c: Likewise.
769         * config/s390/s390.c: Likewise.
770         * config/tilegx/mul-tables.c: Likewise.
772 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
774         * config/aarch64/aarch64.c, config/alpha/alpha.c,
775         config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
776         config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
777         config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
778         config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
779         config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
780         config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
781         config/microblaze/microblaze.c, config/mips/mips.c,
782         config/mmix/mmix.c, config/mn10300/mn10300.c,
783         config/moxie/moxie.c, config/msp430/msp430.c,
784         config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
785         config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
786         config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
787         config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
788         config/stormy16/stormy16.c, config/tilegx/tilegx.c,
789         config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
790         config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
791         target-def.h include.
792         * config/ft32/ft32.c: Likewise.  Fix misapplied hunk.
794 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
796         * Makefile.in (TARGET_DEF): Add target-insns.def.
797         (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
798         (build/gentarget-def.o): New rule.
799         (genprogrtl): Add target-def.
800         * target-insns.def, gentarget-def.c: New files.
801         * target.def: Add targetm.have_* and targetm.gen_* hooks,
802         based on the contents of target-insns.def.
803         * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
804         (HAVE_return, gen_return): Delete.
805         * target-def.h: Include insn-target-def.h.
806         * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
807         instead of direct calls.  Rely on them to do the appropriate assertions.
808         * function.c (gen_return_pattern): Likewise.  Return an rtx_insn *.
809         (convert_jumps_to_returns): Use targetm interface instead of
810         direct calls.
811         (thread_prologue_and_epilogue_insns): Likewise.
812         * reorg.c (find_end_label, dbr_schedule): Likewise.
813         * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
814         * shrink-wrap.c (convert_to_simple_return): Likewise.
815         (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
817 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
819         * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
820         config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
821         config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
822         config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
823         config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
824         config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
825         config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
826         config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
827         config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
828         config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
829         config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
830         config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
831         config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
832         config/stormy16/stormy16.c, config/tilegx/tilegx.c,
833         config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
834         config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
835         includes to end.
837 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
839         * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
840         (unbounded_int_hashmap_traits::key_type): Likewise.
841         * hash-map.h (hash_map): Get the key type from the traits.
842         * hash-traits.h (default_hash_traits): By default, inherit from the
843         template parameter.
844         * alias.c (alias_set_traits): Delete.
845         (alias_set_entry_d::children): Use alias_set_hash as the first
846         template parameter.
847         (record_alias_subset): Update accordingly.
848         * except.c (tree_hash_traits): Delete.
849         (type_to_runtime_map): Use tree_hash as the first template parameter.
850         (init_eh): Update accordingly.
851         * genmatch.c (capture_id_map_hasher): Delete.
852         (cid_map_t): Use nofree_string_hash as first template parameter.
853         * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
854         * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
855         Use symbol_compare_hash as the first template parameter in
856         subdivide_hash_map.
857         * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
858         (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
859         template parameter.
860         * passes.c (pass_registry_hasher): Delete.
861         (name_to_pass_map): Use nofree_string_hash as the first template
862         parameter.
863         (register_pass_name): Update accordingly.
864         * sanopt.c (sanopt_tree_map_traits): Delete.
865         (sanopt_tree_triplet_map_traits): Delete.
866         (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
867         template parameter.
868         (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
869         the first template parameter.
870         * sese.c (rename_map_hasher): Delete.
871         (rename_map_type): Use tree_ssa_name_hash as the first template
872         parameter.
873         * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
874         (function_summary::m_map): Use map_hash as the first template
875         parameter.
876         (function_summary::release): Update accordingly.
877         * tree-if-conv.c (phi_args_hash_traits): Delete.
878         (predicate_scalar_phi): Use tree_operand_hash as the first template
879         parameter to phi_arg_map.
880         * tree-inline.h (dependence_hasher): Delete.
881         (copy_body_data::dependence_map): Use dependence_hash as the first
882         template parameter.
883         * tree-inline.c (remap_dependence_clique): Update accordingly.
884         * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
885         (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
886         parameter.
887         (addr_stridxptr): Update accordingly.
888         * value-prof.c (profile_id_traits): Delete.
889         (cgraph_node_map): Use profile_id_hash as the first template
890         parameter.
891         (init_node_map): Update accordingly.
892         * config/alpha/alpha.c (string_traits): Delete.
893         (machine_function::links): Use nofree_string_hash as the first
894         template parameter.
895         (alpha_use_linkage, alpha_write_linkage): Update accordingly.
896         * config/m32c/m32c.c (pragma_traits): Delete.
897         (pragma_htab): Use nofree_string_hash as the first template parameter.
898         (m32c_note_pragma_address): Update accordingly.
899         * config/mep/mep.c (pragma_traits): Delete.
900         (pragma_htab): Use nofree_string_hash as the first template parameter.
901         (mep_note_pragma_flag): Update accordingly.
902         * config/mips/mips.c (mips16_flip_traits): Delete.
903         (mflip_mips16_htab): Use nofree_string_hash as the first template
904         parameter.
905         (mflip_mips16_use_mips16_p): Update accordingly.
906         (local_alias_traits): Delete.
907         (mips16_local_aliases): Use nofree_string_hash as the first template
908         parameter.
909         (mips16_local_alias): Update accordingly.
911 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
913         * hash-map-traits.h (default_hashmap_traits): Delete.
915 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
917         * hash-map-traits.h (unbounded_hashmap_traits): New class.
918         (unbounded_int_hashmap_traits): Likewise.
919         * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
921 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
923         * ipa-icf.h (symbol_compare_hash): New class.
924         (symbol_compare_hashmap_traits): Use it.
925         * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
926         (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
927         (mem_alloc_description::reverse_mem_map_t): Remove redundant
928         default_hashmap_traits.
929         * sanopt.c (sanopt_tree_triplet_hash): New class.
930         (sanopt_tree_triplet_map_traits): Use it.
932 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
934         * gengtype-parse.c (require_template_declaration): Allow '+' in
935         template parameters.  Consolidate cases.
936         * hash-traits.h (int_hash): New class.
937         * alias.c (alias_set_hash): New structure.
938         (alias_set_traits): Use it.
939         * symbol-summary.h (function_summary::map_hash): New class.
940         (function_summary::summary_hashmap_traits): Use it.
941         * tree-inline.h (dependence_hash): New class.
942         (dependence_hasher): Use it.
943         * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
944         * value-prof.c (profile_id_hash): New class.
945         (profile_id_traits): Use it.
947 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
949         * config/mips/mips.c (mips16_flip_traits): Use it.
950         (local_alias_traits, mips16_local_aliases): Convert from a map of
951         rtxes to a map of symbol names.
952         (mips16_local_alias): Update accordingly.
954 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
956         * hash-traits.h (string_hash, nofree_string_hash): New classes.
957         * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
958         * passes.c (pass_registry_hasher): Likewise.
959         * config/alpha/alpha.c (string_traits): Likewise.
960         * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
961         * config/m32c/m32c.c (pragma_traits): Likewise.
962         * config/mep/mep.c (pragma_traits): Likewise.
964 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
966         * tree-hash-traits.h (tree_hash): New class.
967         * except.c: Include tree-hash-traits.h.
968         (tree_hash_traits): Use tree_hash.
970 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
972         * tree-hash-traits.h (tree_ssa_name_hasher): New class.
973         * sese.c: Include tree-hash-traits.h.
974         (rename_map_hasher): Use tree_ssa_name_hasher.
976 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
978         * tree-hash-traits.h (tree_decl_hash): New class.
979         * tree-ssa-strlen.c: Include tree-hash-traits.h.
980         (stridxlist_hash_traits): Use tree_decl_hash.
982 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
984         * tree-hash-traits.h: New file.
985         (tree_operand_hash): New class.
986         * sanopt.c: Include tree-hash-traits.h.
987         (sanopt_tree_map_traits): Use tree_operand_hash.
988         * tree-if-conv.c: Include tree-hash-traits.h.
989         (phi_args_hash_traits): Use tree_operand_hash.
990         * tree-ssa-uncprop.c: Include tree-hash-traits.h.
991         (val_ssa_equiv_hash_traits): Use tree_operand_hash.
993 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
995         * hash-map-traits.h: Include hash-traits.h.
996         (simple_hashmap_traits): New class.
997         * mem-stats.h (hash_map): Change the default traits to
998         simple_hashmap_traits<default_hash_traits<Key> >.
1000 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
1002         * hash-table.h: Update comments.
1004 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
1006         * hash-traits.h (default_hash_traits): New structure.
1007         * hash-set.h (default_hashset_traits): Delete.
1008         (hash_set): Use default_hash_traits<Key> instead of
1009         default_hashset_traits.  Delete hash_entry type and use Key directly.
1010         * ipa-devirt.c (pair_traits): Delete.
1011         (default_hash_traits <type_pair>): Override.
1012         (odr_subtypes_equivalent_p): Remove pair_types template parameter.
1013         (odr_types_equivalent_p, add_type_duplicate): Likewise.
1015 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
1017         * hash-traits.h (typed_noop_remove): Don't require a pointer type.
1019 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
1021         * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
1022         (has_is_empty, is_empty_helper): Delete.
1023         (has_mark_deleted, mark_deleted_helper): Delete.
1024         (has_mark_empty, mark_empty_helper): Delete.
1025         (hash_table::is_deleted): Call the Descriptor unconditionally.
1026         (hash_table::is_empty): Likewise.
1027         (hash_table::mark_deleted): Likewise.
1028         (hash_table::mark_empty): Likewise.
1030 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
1032         * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash.  Remove
1033         redundant typedefs and members.
1034         * coverage.c (counts_entry): Inherit from pointer_hash.  Remove
1035         redundant typedefs.
1036         * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
1037         * ipa-devirt.c (odr_name_hasher): Likewise.
1038         (polymorphic_call_target_hasher): Likewise.
1039         * ira-costs.c (cost_classes_hasher): Likewise.
1040         * statistics.c (stats_counter_hasher): Likewise.
1041         * trans-mem.c (log_entry_hasher): Likewise.
1042         * tree-ssa-dom.c (expr_elt_hasher): Likewise.
1043         * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
1044         * tree-ssa-tail-merge.c (same_succ_def): Likewise.
1045         * var-tracking.c (variable_hasher): Likewise.
1046         * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
1047         Remove redundant typedefs and members.
1049 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
1051         * hash-traits.h (ggc_cache_hasher): Rename to...
1052         (ggc_cache_remove): ...this and remove typedefs.
1053         (ggc_cache_ptr_hash): New class.
1054         * hash-table.h: Update commentary.
1055         * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
1056         rather than ggc_cache_hasher.
1057         (const_wide_int_hasher, reg_attr_hasher): Likewise.
1058         (const_double_hasher, const_fixed_hasher): Likewise.
1059         * function.c (insn_cache_hasher): Likewise.
1060         * trans-mem.c (tm_wrapper_hasher): Likewise.
1061         * tree.h (tree_decl_map_cache_hasher): Likewise.
1062         * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
1063         (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
1064         * ubsan.c (tree_type_map_cache_hasher): Likewise.
1065         * varasm.c (tm_clone_hasher): Likewise.
1066         * config/i386/i386.c (dllimport_hasher): Likewise.
1067         * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
1068         (tree_hasher): Likewise.
1070 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
1072         * hash-traits.h (ggc_hasher): Rename to...
1073         (ggc_remover): ...this and remove typedefs.
1074         (ggc_cache_hasher): Update accordingly.  Add typedefs.
1075         (ggc_ptr_hash): New class.
1076         * hash-table.h: Update comment.
1077         * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
1078         ggc_hasher.
1079         * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
1080         (tree_descriptor_hasher): Likewise.
1081         * cgraph.c (function_version_hasher): Likewise.
1082         * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
1083         (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
1084         (dw_loc_list_hasher, addr_hasher): Likewise.
1085         * function.h (used_type_hasher): Likewise.
1086         * function.c (temp_address_hasher): Likewise.
1087         * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
1088         * libfuncs.h (libfunc_hasher): Likewise.
1089         * lto-streamer.h (decl_state_hasher): Likewise.
1090         * optabs.c (libfunc_decl_hasher): Likewise.
1091         * tree-scalar-evolution.c (scev_info_hasher): Likewise.
1092         * varasm.c (section_hasher, object_block_hasher): Likewise.
1093         (const_rtx_desc_hasher): Likewise.
1094         * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
1095         * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
1097 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
1099         * hash-traits.h (free_ptr_hash): New class.
1100         * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
1101         rather than typed_free_remove.  Remove redudant typedefs.
1102         (external_ref_hasher): Likewise.
1103         * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
1104         (ehspec_hasher): Likewise.
1105         * ggc-common.c (saving_hasher): Likewise.
1106         * gimplify.c (gimplify_hasher): Likewise.
1107         * haifa-sched.c (delay_i2_hasher): Likewise.
1108         * loop-invariant.c (invariant_expr_hasher): Likewise.
1109         * loop-iv.c (biv_entry_hasher): Likewise.
1110         * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
1111         * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
1112         * tree-cfg.c (locus_discrim_hasher): Likewise.
1113         * tree-eh.c (finally_tree_hasher): Likewise.
1114         * tree-into-ssa.c (var_info_hasher): Likewise.
1115         * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
1116         * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
1117         * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
1118         * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
1119         * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
1120         * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
1121         (shared_bitmap_hasher): Likewise.
1122         * tree-ssa-threadupdate.c (redirection_data): Likewise.
1123         * tree-vectorizer.h (peel_info_hasher): Likewise.
1124         * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
1125         * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
1127 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
1129         * hash-table.h: Update comments.
1130         * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
1131         (nofree_ptr_hash): New class.
1132         * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
1133         than typed_noop_remove.  Remove redudant typedefs.
1134         * attribs.c (attribute_hasher): Likewise.
1135         * cfg.c (bb_copy_hasher): Likewise.
1136         * cselib.c (cselib_hasher): Likewise.
1137         * dse.c (invariant_group_base_hasher): Likewise.
1138         * dwarf2cfi.c (trace_info_hasher): Likewise.
1139         * dwarf2out.c (macinfo_entry_hasher): Likewise.
1140         (comdat_type_hasher, loc_list_hasher): Likewise.
1141         * gcse.c (pre_ldst_expr_hasher): Likewise.
1142         * genmatch.c (id_base): Likewise.
1143         * genrecog.c (test_pattern_hasher): Likewise.
1144         * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
1145         * haifa-sched.c (delay_i1_hasher): Likewise.
1146         * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
1147         * ipa-icf.h (congruence_class_group_hash): Likewise.
1148         * ipa-profile.c (histogram_hash): Likewise.
1149         * ira-color.c (allocno_hard_regs_hasher): Likewise.
1150         * lto-streamer.h (string_slot_hasher): Likewise.
1151         * lto-streamer.c (tree_entry_hasher): Likewise.
1152         * plugin.c (event_hasher): Likewise.
1153         * postreload-gcse.c (expr_hasher): Likewise.
1154         * store-motion.c (st_expr_hasher): Likewise.
1155         * tree-sra.c (uid_decl_hasher): Likewise.
1156         * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
1157         (ssa_name_var_hash): Likewise.
1158         * tree-ssa-live.c (tree_int_map_hasher): Likewise.
1159         * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
1160         * tree-ssa-pre.c (pre_expr_d): Likewise.
1161         * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
1162         * vtable-verify.h (registration_hasher): Likewise.
1163         * vtable-verify.c (vtbl_map_hasher): Likewise.
1164         * config/arm/arm.c (libcall_hasher): Likewise.
1165         * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
1166         * config/ia64/ia64.c (bundle_state_hasher): Likewise.
1167         * config/sol2.c (comdat_entry_hasher): Likewise.
1168         * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
1169         (print_fold_checksum, fold_checksum_tree): Likewise.
1170         (debug_fold_checksum, fold_build1_stat_loc): Likewise.
1171         (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
1172         (fold_build_call_array_loc): Likewise.
1173         * tree-ssa-ccp.c (gimple_htab): Likewise.
1174         * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
1175         rather than pointer_type.
1177 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
1179         * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
1180         (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
1182 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
1184         * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
1185         (ggc_hasher::ggc_mx): Likewise.
1186         (ggc_cache_hasher): Inherit from ggc_hasher.  Remove definitions
1187         that duplicate ggc_hasher ones.
1189 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
1191         * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
1192         (gt_cleare_cache): Check here for deleted and empty entries.
1193         Replace handle_cache_entry with a call to keep_cache_entry.
1194         * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
1195         (ggc_cache_hasher::keep_cache_entry): New function.
1196         * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
1197         (tm_wrapper_hasher::keep_cache_entry): New function.
1198         * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
1199         (tree_vec_map_cache_hasher::keep_cache_entry): New function.
1200         * tree.c (type_cache_hasher::handle_cache_entry): Delete.
1201         (type_cache_hasher::keep_cache_entry): New function.
1202         (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
1203         (tree_vec_map_cache_hasher::keep_cache_entry): New function.
1204         * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
1205         (tree_type_map_cache_hasher::keep_cache_entry): New function.
1206         * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
1207         (tm_clone_hasher::keep_cache_entry): New function.
1208         * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
1209         (dllimport_hasher::keep_cache_entry): New function.
1211 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
1213         * hash-table.h: Include hash-traits.h.
1214         (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
1215         (ggc_cache_hasher): Move to...
1216         * hash-traits.h: ...this new file.
1218 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
1220         * tree-core.h (struct tree_optimization_option): Make opts a pointer to
1221         struct cl_optimization.
1222         * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
1223         * tree.c (make_node_stat): Allocate cl_optimization struct.
1224         (copy_node_stat): Allocate and copy cl_optimization struct.
1226 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
1228         * function.h (struct incoming_args): Move struct.
1229         (pass_by_reference, reference_callee_copied): Remove prototypes.
1230         * emit-rtl.h (struct incoming_args): Relocate struct here.
1231         * calls.h (pass_by_reference, reference_callee_copied): Relocate
1232         prototypes here.
1233         * function.c (pass_by_reference, reference_callee_copied): Move.
1234         * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
1235         * cfgloop.h: Don't include tm.h or hard-reg-set.h.
1236         * ipa-chkp.c: Include calls.h.
1238 2015-06-25  Andrew Macleod  <amacleod@redhat.com>
1240         * alias.h (alias_set_type): Move typedef.
1241         * coretypes.h (alias_set_type): Relocate typedef here.
1242         * rtl.h: Don't include alias.h.
1244 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
1246         * cgraph.h (cgraph_rtl_info): Move to rtl.h
1247         (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
1248         and instance.
1249         * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
1250         * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
1251         doesn't exist.
1252         * calls.c: Include hard-reg-set.h before rtl.h.
1253         * ira.c: Likewise.
1255 2015-06-25  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
1256             Vladimir Makarov  <vmakarov@redhat.com>
1258         * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
1259         Add assert.
1261 2015-06-25  Richard Biener  <rguenther@suse.de>
1263         * fold-const.c (fold_binary_loc): Move simplification of
1264         (X <<>> C1) & C2 ...
1265         * match.pd: ... here.
1267 2015-06-25  Eric Botcazou  <ebotcazou@adacore.com>
1269         * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
1271 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
1273         * match.pd: Add patterns for vec_conds between 1 and 0.
1275 2015-06-25  Richard Biener  <rguenther@suse.de>
1277         * tree-vect-stmts.c (vectorizable_conversion): Do not set
1278         STMT_VINFO_VEC_STMT for SLP.
1279         (vectorizable_store): Likewise.
1280         (vectorizable_load): Likewise.
1281         (vect_transform_stmt): Catch SLP vectorization clobbering
1282         STMT_VINFO_VEC_STMT.
1284 2015-06-25  Richard Biener  <rguenther@suse.de>
1286         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
1287         dumping.
1288         (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
1289         cleanup resulting dead code and parameters.
1290         (vect_transform_slp_perm_load): Adjust.
1292 2015-06-25  Nick Clifton  <nickc@redhat.com>
1294         * config/bfin/bfin.c (bfin_expand_prologue): Set
1295         current_function_static_stack_size if flag_stack_usage_info is
1296         set.
1297         * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
1298         * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
1299         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
1300         * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
1302 2015-06-25  Tom de Vries  <tom@codesourcery.com>
1304         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
1305         comment that the generated IV is unsigned.
1307 2015-06-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1309         PR target/29693
1310         * config/arm/arm.c (arm_dbx_register_number): Return
1311         DWARF_FRAME_REGISTERS by default.
1313 2015-06-25  Tom de Vries  <tom@codesourcery.com>
1315         * dominance.c (calculate_dominance_info): Fix verify_dominators call
1316         argument.  Call verify_dominator when reusing dominator info.
1318 2015-06-24  Kaz Kojima  <kkojima@gcc.gnu.org>
1320         PR target/66563
1321         * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
1322         an additional element of the unspec vector.  Modify indices
1323         of operands.
1324         (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
1325         * config/sh/sh.c (prepare_move_operands): Pass incremented
1326         const_int to gen_GOTaddr2picreg.
1327         (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
1329 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
1331         * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
1332         Condition on TARGET_FLOAT.
1334 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
1336         * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
1337         and (no)crypto.
1339 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
1341         * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
1343         * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
1344         aarch64_err_no_fpadvsimd.
1346         * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
1347         (aarch64_layout_arg, aarch64_init_cumulative_args): Use
1348         aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
1349         (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
1350         Turn error into assert, test TARGET_FLOAT.
1351         (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
1352         TARGET_FLOAT.
1354 2015-06-24  Aldy Hernandez  <aldyh@redhat.com>
1356         PR debug/66482
1357         * dwarf2out.c (gen_formal_parameter_die): Remove assert.
1359 2015-06-24  Ilya Enkovich  <enkovich.gnu@gmail.com>
1361         * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
1363 2015-06-24 Renlin Li <renlin.li@arm.com>
1365         * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
1366         __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
1368 2015-06-24  Richard Biener  <rguenther@suse.de>
1370         * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
1371         (main): Likewise.
1372         (lower_opt_convert): Support lowering of conditional view_convert.
1373         (parser::parse_operation): Likewise.
1374         (parser::parse_for): Likewise.
1376 2015-06-24  Renlin Li  <renlin.li@arm.com>
1378         * varasm.c (emit_local): Use unsigned int for align variable.
1380 2015-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1382         PR target/63408
1383         * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
1384         for negative numbers.
1386 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1388         PR rtl-optimization/66306
1389         * reload.c (find_reloads): Swap the match_dup info for
1390         commutative operands.
1392 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1394         * config/s390/vx-builtins.md
1395         ("vec_scatter_element<mode>_<non_vec_int>")
1396         ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
1397         attribute with bhfgq.
1399 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1401         * config/s390/s390-builtins.def: Fix vpopct instruction comments.
1403 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1405         * config/s390/s390-builtin-types.def: Add flag to indicate the
1406         options under which the function type is needed.
1407         * config/s390/s390-builtins.def: Add flag to indicate the options
1408         under which the builtin is enabled.
1409         * config/s390/s390-builtins.h: Add flags parameter to macro
1410         definitions.
1411         (bflags_for_builtin): New function.
1412         (flags_for_builtin): Renamed to ...
1413         (opflags_for_builtin): ... this.
1414         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
1415         flags_for_builtin to bflags_for_builtin and
1416         flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
1417         * config/s390/s390.c: Add initialization of bflags_builtin and
1418         opflags_builtin arrays.
1419         Remove code for flags_builtin.
1420         (s390_init_builtins): Only create builtin function types if one of
1421         their flags is active.
1422         Only create builtins if all of their flags are active.
1423         (s390_expand_builtin): Rename flags_for_builtin to
1424         opflags_for_builtin.
1426 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1428         * config/s390/vecintrin.h: Remove internal builtins.
1430 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1432         * config/s390/s390.c (s390_secondary_reload): Fix check for
1433         GENERAL_REGS register class.
1435 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1437         * config/s390/s390.c (s390_support_vector_misalignment): Call
1438         default implementation for !TARGET_VX.
1440 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1442         * config/s390/s390.c (s390_legitimate_constant_p): Add
1443         TARGET_VX check.
1445 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1447         * config/s390/s390.c (s390_vector_abi): New variable definition.
1448         (s390_check_type_for_vector_abi): New function.
1449         (TARGET_ASM_FILE_END): New macro definition.
1450         (s390_asm_file_end): New function.
1451         (s390_function_arg): Call s390_check_type_for_vector_abi.
1452         (s390_gimplify_va_arg): Likewise.
1453         * configure: Regenerate.
1454         * configure.ac: Check for .gnu_attribute Binutils feature.
1456 2015-06-23  Chen Gang  <gang.chen.5i5j@gmail.com>
1458         PR target/65803
1459         * config/bfin/bfin.c (hwloop_optimize): Initialize
1460         JUMP_LABEL for newly created jump.
1462 2015-06-23  Tristan Gingold  <gingold@adacore.com>
1464         * collect-utils.c (collect_wait): Unlink the response file here
1465         instead of...
1466         (do_wait): ...here.
1467         (utils_cleanup): ...and here.
1469 2015-06-23  Richard Sandiford  <richard.sandiford@arm.com>
1471         * df-scan.c: Don't include target-def.h.
1472         * targhooks.c: Likewise.
1473         * config/arm/arm-c.c: Likewise.
1474         * config/i386/i386-c.c: Likewise.
1475         * config/nds32/nds32-cost.c: Likewise.
1476         * config/nds32/nds32-fp-as-gp.c: Likewise.
1477         * config/nds32/nds32-intrinsic.c: Likewise.
1478         * config/nds32/nds32-isr.c: Likewise.
1479         * config/nds32/nds32-md-auxiliary.c: Likewise.
1480         * config/nds32/nds32-memory-manipulation.c: Likewise.
1481         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
1482         * config/nds32/nds32-predicates.c: Likewise.
1484 2015-06-23  Richard Biener  <rguenther@suse.de>
1486         PR tree-optimization/66636
1487         * tree-vect-stmts.c (vectorizable_store): Properly compute the
1488         def type for further defs for strided stores.
1490 2015-06-23  Nathan Sidwell  <nathan@codesourcery.com>
1492         * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
1493         conditional selects.
1494         (setcc_int<mode>, setcc_float<mode>): Reformat.
1496 2015-06-23  Marek Polacek  <polacek@redhat.com>
1498         * match.pd ((x + y) - (x | y) -> x & y,
1499         (x + y) - (x & y) -> x | y): New patterns.
1501 2015-06-23  Ludovic Courtès  <ludo@gnu.org>
1503         PR 65711
1504         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
1505         '-dynamic-linker' within %{!shared: ...}.
1507 2015-06-23  Uros Bizjak  <ubizjak@gmail.com>
1509         PR target/66560
1510         * config/i386/predicates.md (addsub_vm_operator): New predicate.
1511         (addsub_vs_operator): Ditto.
1512         (addsub_vs_parallel): Ditto.
1513         * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
1514         (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
1515         Put minus RTX before plus and adjust vec_merge selector.
1516         (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
1517         (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
1518         (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
1519         (addsub vec_merge splitters): New combiner splitters.
1520         (addsub vec_select/vec_concat splitters): Ditto.
1522 2015-06-23  Bin Cheng  <bin.cheng@arm.com>
1524         PR tree-optimization/66449
1525         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
1526         POINTER_PLUS_EXPR for pointers.
1528 2015-06-23  Alan Modra  <amodra@gmail.com>
1530         * rtlanal.c (commutative_operand_precedence): Correct comments.
1531         * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
1532         declaration.  Return an int.  Distinguish REG,REG return from
1533         others.
1534         (struct simplify_plus_minus_op_data): Make local to function.
1535         (simplify_plus_minus): Don't set canonicalized if merely sorting
1536         registers.  Avoid packing ops if nothing changes.  White space fixes.
1538 2015-06-22  Pierre-Marie de Rodat  <derodat@adacore.com>
1540         * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
1541         -fdump-ada-spec is passed but not if -fsyntax-only is.
1543 2015-06-22  Vladimir Makarov  <vmakarov@redhat.com>
1545         PR bootstrap/63740
1546         * lra-lives.c (process_bb_lives): Check insn copying the same
1547         reload pseudo and don't create a copy for it.
1549 2015-06-22  Tom de Vries  <tom@codesourcery.com>
1551         * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
1552         for cond_stmt.
1554 2015-06-22  Tom de Vries  <tom@codesourcery.com>
1556         * builtins.def (DEF_GOMP_BUILTIN): Test
1557         'flag_tree_parallelize_loops > 1' instead of
1558         'flag_tree_parallelize_loops'.  Test flag_cilkplus.
1560 2015-06-22  Tom de Vries  <tom@codesourcery.com>
1562         * dominance.c (calculate_dominance_info): Verify dominators if
1563         early-out.
1565 2015-06-22  Marek Polacek  <polacek@redhat.com>
1567         * match.pd ((x ^ y) ^ (x | y) -> x & y,
1568         (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
1569         (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
1570         (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
1572 2015-06-22  Uros Bizjak  <ubizjak@gmail.com>
1574         PR target/65871
1575         * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
1576         cost of embedded comparison.
1578 2015-06-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1580         PR target/65914
1581         * config/rs6000/predicates.md (altivec_register_operand): Permit
1582         virtual stack registers.
1583         (vsx_register_operand): Likewise.
1584         (vfloat_operand): Likewise.
1585         (vint_operand): Likewise.
1586         (vlogical_operand): Likewise.
1588 2015-06-22  Richard Biener  <rguenther@suse.de>
1590         * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
1591         and single_scalar_iteration_cost members.
1592         (LOOP_VINFO_SCALAR_ITERATION_COST): New.
1593         (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
1594         (vect_get_single_scalar_iteration_cost): Remove.
1595         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
1596         Use LOOP_VINFO_SCALAR_ITERATION_COST.
1597         * tree-vect-loop.c (destroy_loop_vec_info): Free
1598         scalar_cost_vec.
1599         (vect_get_single_scalar_iteration_cost): Compute result into
1600         LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
1601         LOOP_VINFO_SCALAR_ITERATION_COST.  Make static.
1602         (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
1603         (vect_estimate_min_profitable_iters): Use them.
1605 2015-06-22  Christian Bruel  <christian.bruel@st.com>
1607         PR target/52144
1608         * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
1609         (TARGET_INSERT_ATTRIBUTES): Define.
1610         (thumb_flipper): New var.
1611         * config/arm/arm.opt (-mflip-thumb): New switch.
1613 2015-06-22  Jan Hubicka  <hubicka@ucw.cz>
1614             Martin Liska  <mliska@suse.cz>
1616         PR ipa/65908
1617         * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
1618         construction of arg_types.
1619         (sem_function::sem_function): Likewise.
1620         (sem_function::~sem_function): Remove destruction of arg_types.
1621         (sem_function::compatible_parm_types_p): New function.
1622         (sem_function::equals_wpa): Reorg matching of return values
1623         and parameter types.
1624         (sem_function::equals_private): Reorg mathcing of argument types.
1625         (sem_function::parse_tree_args): Remove.
1626         * ipa-icf.h (init_wpa): Do not call it.
1627         (parse_tree_args): Remove.
1628         (compatible_parm_types_p): Declare.
1629         (result_type): Remove.
1630         (arg_types): Remove.
1632 2015-06-22  Jan Hubicka  <hubicka@ucw.cz>
1634         PR ipa/66351
1635         * ipa-polymorphic-call.c
1636         (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
1637         initializing alias oracle; fix formating; set base_alias_set if it
1638         is known.
1640 2015-06-22  Mikhail Maltsev  <maltsevm@gmail.com>
1642         * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
1643         (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
1644         (find_inc): Likewise.
1645         * combine.c (combine_simplify_rtx): Use std::swap instead of manually
1646         swapping.
1647         * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
1648         * df-scan.c (df_swap_refs): Remove.
1649         (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
1650         * dominance.c (link_roots): Use std::swap instead of manually swapping.
1651         * expr.c (expand_expr_real_2, do_store_flag): Likewise.
1652         * fold-const.c (fold_relational_const): Likewise.
1653         * genattrtab.c (simplify_test_exp): Likewise.
1654         * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
1655         gimple_simplify): Likewise.
1656         * ifcvt.c (noce_try_abs, find_if_header): Likewise.
1657         * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
1658         * ipa-devirt.c (add_type_duplicate): Likewise.
1659         * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
1660         * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
1661         * lra.c (lra_create_copy): Likewise.
1662         * lto-streamer-out.c (DFS::DFS): Likewise.
1663         * modulo-sched.c (get_sched_window): Likewise.
1664         * omega.c (omega_pretty_print_problem): Likewise.
1665         * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
1666         * reload1.c (reloads_unique_chain_p): Likewise.
1667         * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
1668         (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
1669         use std::swap.
1670         * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
1671         manually swapping.
1672         * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
1673         predicate_mem_writes): Likewise.
1674         * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
1675         * tree-predcom.c (combine_chains): Likewise.
1676         * tree-ssa-alias.c (nonoverlapping_component_refs_p,
1677         refs_may_alias_p_1): Likewise.
1678         * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
1679         * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
1680         * tree-ssa-loop-niter.c (refine_bounds_using_guard,
1681         number_of_iterations_cond): Likewise.
1682         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
1683         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
1684         * tree-vect-slp.c (vect_build_slp_tree): Likewise.
1685         * tree-vect-stmts.c (supportable_widening_operation): Likewise.
1686         * tree-vrp.c (extract_range_from_binary_expr_1,
1687         extract_range_from_unary_expr_1): Likewise.
1689 2015-06-20  Marek Polacek  <polacek@redhat.com>
1691         * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
1693 2015-06-19  Kaz Kojima  <kkojima@gcc.gnu.org>
1695         PR target/66591
1696         * config/sh/sh.c (prepare_move_operands): Replace subreg
1697         index term with R0 for base and index addressing.
1699 2015-06-19  Jim Wilson  <jim.wilson@linaro.org>
1701         * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
1702         op1 is an fp zero.
1703         (movsf_aarch64): Change condition from register_operand to
1704         aarch64_reg_or_fp_zero for op1.  Change type for alternative 6 to
1705         load1.  Change type for alternative 7 to store1.
1706         (movdf_aarch64): Likewise.
1708 2015-06-19  James Greenhalgh  <james.greenhalgh@arm.com>
1710         * config/vax/vax.md: Adjust sign/zero extend patterns to
1711         handle SUBREGs in operands[1].
1713 2015-06-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1715         * config/i386/i386.c (ix86_function_versions): Use std::swap instead
1716         of manually swapping.
1717         (expand_vec_perm_interleave2): Likewise.
1719 2015-06-19  Ilya Enkovich  <enkovich.gnu@gmail.com>
1721         * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
1722         reuse bounds created for abnormal ssa names.
1724 2015-06-19  Jakub Jelinek  <jakub@redhat.com>
1726         * config/nvptx/nvptx.md (allocate_stack): Rename to...
1727         (allocate_stack_<mode>): ... this, and add :P on both
1728         match_operand and unspec.
1729         (allocate_stack): New expander.
1731 2015-06-19  Christian Bruel  <christian.bruel@st.com>
1733         PR target/66541
1734         PR target/52144
1735         * config/arm/arm.c (arm_set_current_function): Handle
1736         explicit default options.
1738 2015-06-18  Uros Bizjak  <ubizjak@gmail.com>
1740         * config/i386/i386.md (*movsicc_noc_zext): New insn.
1741         (zero-extended cmove with mem peephole2): New pattern.
1742         (cmove with mem peephole2): Merge patterns.
1744 2015-06-18  Segher Boessenkool  <segher@kernel.crashing.org>
1746         * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
1748 2015-06-18  Steve Ellcey  <sellcey@imgtec.com>
1750         * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
1751         * config/mips/mips.md (*madd4<mode>): Ditto.
1752         (*nmadd3<mode>) Ditto.
1753         (*nmadd4<mode>_fastmath): Ditto.
1754         (*nmadd3<mode>_fastmath): Ditto.
1755         (*nmsub4<mode>): Ditto.
1756         (*nmsub3<mode>): Ditto.
1757         (*nmsub4<mode>_fastmath): Ditto.
1758         (*nmsub3<mode>_fastmath): Ditto.
1760 2015-06-18  Michael Matz  <matz@suse.de>
1762         PR middle-end/66253
1763         * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
1764         grouped strided stores.
1765         (vectorizable_load): Don't use the DR from first_stmt in
1766         the non-SLP grouped strided case.
1768 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
1770         PR target/66569
1771         * function.c (assign_bounds): Add arguments assign_regs,
1772         assign_special, assign_bt.
1773         (assign_parms): For vararg functions handle bounds in BT
1774         and special slots after incoming vararg bounds.
1776 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
1778         PR middle-end/66568
1779         * cfgexpand.c (expand_return): Handle missing bounds.
1780         (expand_gimple_stmt_1): Likewise.
1781         * tree-chkp.c (chkp_expand_zero_bounds): New.
1782         * tree-chkp.h (chkp_expand_zero_bounds): New.
1784 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
1786         PR middle-end/66567
1787         * ipa-chkp.c (chkp_maybe_create_clone): Require
1788         functions to be instrumentable.
1789         * tree-chkp.c (chkp_replace_function_pointer): Use
1790         chkp_instrumentable_p instead of attribute check.
1792 2015-06-18  Richard Biener  <rguenther@suse.de>
1794         PR tree-optimization/66510
1795         * tree-vect-stmts.c (vectorizable_load): Properly compute the
1796         number of vector loads for SLP permuted loads.
1797         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
1798         check the stride for loop vectorization.
1799         (vect_enhance_data_refs_alignment): Deal with SLP adjusted
1800         vectorization factor.
1801         (vect_analyze_group_access): If the group size is not a power
1802         of two require a epilogue loop.
1803         * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
1804         compute and optimizing and alias test pruning after final
1805         vectorization factor computation.
1806         * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
1807         vector alignment.
1808         (vect_transform_slp_perm_load): Properly compute the original
1809         number of vector load stmts.
1811 2015-06-18  Uros Bizjak  <ubizjak@gmail.com>
1813         * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
1814         "unlikely character , in @var" warning.
1816 2015-06-17  Uros Bizjak  <ubizjak@gmail.com>
1818         * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
1819         (ix86_function_arg_advance): Ditto.
1820         (ix86_pass_by_reference): Ditto.  Rewrite MS_ABI part.
1822 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
1824         * function.h (struct rtl_data): Remove struct and accessor macros.
1825         * emit-rtl.h (struct rtl_data): Relocate to here.
1826         * Makefile.in (GTFILES): Add emit-rtl.h.
1827         * df-core.c: Include emit-rtl.h.
1828         * genattrtab.c: Likewise.
1829         * genconditions.c: Likewise.
1830         * genpreds.c: Likewise.
1831         * genrecog.c: Likewise.
1832         * regcprop.c: Likewise.
1833         * resource.c: Likewise.
1834         * sched-rgn.c: Likewise.
1835         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
1836         * config/i386/winnt.c: Likewise.
1838 2015-06-17  Jakub Jelinek  <jakub@redhat.com>
1840         PR middle-end/66429
1841         * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
1842         instead of DECL_STRUCT_FUNCTION (child_fn).  Or in has_simduid_loops
1843         and has_force_vectorize_loops flags from cfun into
1844         child_cfun.
1845         (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
1846         if simduid is non-NULL.
1847         * tree-pass.h (make_pass_simduid_cleanup): New prototype.
1848         * passes.def (pass_simduid_cleanup): Add new pass after loop
1849         passes.
1850         * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
1851         indirection from htab argument's type.
1852         (shrink_simd_arrays): New function.
1853         (vectorize_loops): Use it.  Adjust adjust_simduid_builtins caller.
1854         Don't call adjust_simduid_builtins if there are no loops.
1855         (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
1856         (pass_simduid_cleanup::execute): New method.
1857         (make_pass_simduid_cleanup): New function.
1859 2017-06-17  Andrew MacLeod  <amacleod@redhat.com>
1861         * tree-core.h (tree_target_option): Make opts field a pointer to a
1862         cl_target_option instead of an instance of the struct.
1863         * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
1864         the structure.
1865         * tree.c (make_node_stat ): Allocate a cl_target_option struct for
1866         TARGET_OPTION_NODE.
1867         (copy_node_stat): Allocate and copy struct cl_target_option.
1869 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
1871         * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
1872         Remove conditional exposure of prototypes.
1873         (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
1874         * tree.c (anon_aggrname_format, anon_aggrname_p): New.  Replace macro
1875         definitions in tree.h with functions.
1876         * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
1877         anon_aggrname_p.
1878         * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
1880 2015-06-17  Segher Boessenkool  <segher@kernel.crashing.org>
1882         * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
1883         (*cmp<mode>_signed): ... this.
1884         (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
1885         (*cmp<mode>_unsigned): ... this.  Remove %b.
1887 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
1889         * coretypes.h: Include input.h and as-a.h.
1890         * rtl.h: Include input.h and as-a.h for generator files.
1891         * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
1892         * vec.c: Don't include diagnostic-core.h.
1893         * alias.c: Do not include input.h, line-map.h or is-a.h.
1894         * asan.c: Likewise.
1895         * attribs.c: Likewise.
1896         * auto-inc-dec.c: Likewise.
1897         * auto-profile.c: Likewise.
1898         * bb-reorder.c: Likewise.
1899         * bt-load.c: Likewise.
1900         * builtins.c: Likewise.
1901         * caller-save.c: Likewise.
1902         * calls.c: Likewise.
1903         * ccmp.c: Likewise.
1904         * cfg.c: Likewise.
1905         * cfganal.c: Likewise.
1906         * cfgbuild.c: Likewise.
1907         * cfgcleanup.c: Likewise.
1908         * cfgexpand.c: Likewise.
1909         * cfghooks.c: Likewise.
1910         * cfgloop.c: Likewise.
1911         * cfgloop.h: Likewise.
1912         * cfgloopanal.c: Likewise.
1913         * cfgloopmanip.c: Likewise.
1914         * cfgrtl.c: Likewise.
1915         * cgraph.c: Likewise.
1916         * cgraphbuild.c: Likewise.
1917         * cgraphclones.c: Likewise.
1918         * cgraphunit.c: Likewise.
1919         * cilk-common.c: Likewise.
1920         * combine-stack-adj.c: Likewise.
1921         * combine.c: Likewise.
1922         * compare-elim.c: Likewise.
1923         * convert.c: Likewise.
1924         * coverage.c: Likewise.
1925         * cppbuiltin.c: Likewise.
1926         * cprop.c: Likewise.
1927         * cse.c: Likewise.
1928         * cselib.c: Likewise.
1929         * data-streamer-in.c: Likewise.
1930         * data-streamer-out.c: Likewise.
1931         * data-streamer.c: Likewise.
1932         * dbxout.c: Likewise.
1933         * dce.c: Likewise.
1934         * ddg.c: Likewise.
1935         * debug.c: Likewise.
1936         * df-core.c: Likewise.
1937         * df-problems.c: Likewise.
1938         * df-scan.c: Likewise.
1939         * df.h: Likewise.
1940         * dfp.c: Likewise.
1941         * diagnostic-core.h: Likewise.
1942         * diagnostic.c: Likewise.
1943         * dojump.c: Likewise.
1944         * dominance.c: Likewise.
1945         * domwalk.c: Likewise.
1946         * double-int.c: Likewise.
1947         * dse.c: Likewise.
1948         * dumpfile.c: Likewise.
1949         * dumpfile.h: Likewise.
1950         * dwarf2asm.c: Likewise.
1951         * dwarf2cfi.c: Likewise.
1952         * dwarf2out.c: Likewise.
1953         * emit-rtl.c: Likewise.
1954         * et-forest.c: Likewise.
1955         * except.c: Likewise.
1956         * explow.c: Likewise.
1957         * expmed.c: Likewise.
1958         * expr.c: Likewise.
1959         * final.c: Likewise.
1960         * fixed-value.c: Likewise.
1961         * fold-const.c: Likewise.
1962         * function.c: Likewise.
1963         * fwprop.c: Likewise.
1964         * gcc-plugin.h: Likewise.
1965         * gcse.c: Likewise.
1966         * generic-match-head.c: Likewise.
1967         * ggc-page.c: Likewise.
1968         * gimple-builder.c: Likewise.
1969         * gimple-expr.c: Likewise.
1970         * gimple-fold.c: Likewise.
1971         * gimple-iterator.c: Likewise.
1972         * gimple-low.c: Likewise.
1973         * gimple-match-head.c: Likewise.
1974         * gimple-pretty-print.c: Likewise.
1975         * gimple-ssa-isolate-paths.c: Likewise.
1976         * gimple-ssa-strength-reduction.c: Likewise.
1977         * gimple-streamer-in.c: Likewise.
1978         * gimple-streamer-out.c: Likewise.
1979         * gimple-streamer.h: Likewise.
1980         * gimple-walk.c: Likewise.
1981         * gimple.c: Likewise.
1982         * gimplify-me.c: Likewise.
1983         * gimplify.c: Likewise.
1984         * godump.c: Likewise.
1985         * graph.c: Likewise.
1986         * graphite-blocking.c: Likewise.
1987         * graphite-dependences.c: Likewise.
1988         * graphite-interchange.c: Likewise.
1989         * graphite-isl-ast-to-gimple.c: Likewise.
1990         * graphite-optimize-isl.c: Likewise.
1991         * graphite-poly.c: Likewise.
1992         * graphite-scop-detection.c: Likewise.
1993         * graphite-sese-to-poly.c: Likewise.
1994         * graphite.c: Likewise.
1995         * haifa-sched.c: Likewise.
1996         * hw-doloop.c: Likewise.
1997         * ifcvt.c: Likewise.
1998         * init-regs.c: Likewise.
1999         * input.c: Likewise.
2000         * internal-fn.c: Likewise.
2001         * ipa-chkp.c: Likewise.
2002         * ipa-comdats.c: Likewise.
2003         * ipa-cp.c: Likewise.
2004         * ipa-devirt.c: Likewise.
2005         * ipa-icf-gimple.c: Likewise.
2006         * ipa-icf.c: Likewise.
2007         * ipa-inline-analysis.c: Likewise.
2008         * ipa-inline-transform.c: Likewise.
2009         * ipa-inline.c: Likewise.
2010         * ipa-polymorphic-call.c: Likewise.
2011         * ipa-profile.c: Likewise.
2012         * ipa-prop.c: Likewise.
2013         * ipa-pure-const.c: Likewise.
2014         * ipa-ref.c: Likewise.
2015         * ipa-reference.c: Likewise.
2016         * ipa-split.c: Likewise.
2017         * ipa-utils.c: Likewise.
2018         * ipa-visibility.c: Likewise.
2019         * ipa.c: Likewise.
2020         * ira-build.c: Likewise.
2021         * ira-color.c: Likewise.
2022         * ira-conflicts.c: Likewise.
2023         * ira-costs.c: Likewise.
2024         * ira-emit.c: Likewise.
2025         * ira-lives.c: Likewise.
2026         * ira.c: Likewise.
2027         * jump.c: Likewise.
2028         * langhooks.c: Likewise.
2029         * lcm.c: Likewise.
2030         * loop-doloop.c: Likewise.
2031         * loop-init.c: Likewise.
2032         * loop-invariant.c: Likewise.
2033         * loop-iv.c: Likewise.
2034         * loop-unroll.c: Likewise.
2035         * lower-subreg.c: Likewise.
2036         * lra-assigns.c: Likewise.
2037         * lra-coalesce.c: Likewise.
2038         * lra-constraints.c: Likewise.
2039         * lra-eliminations.c: Likewise.
2040         * lra-lives.c: Likewise.
2041         * lra-remat.c: Likewise.
2042         * lra-spills.c: Likewise.
2043         * lra.c: Likewise.
2044         * lto-cgraph.c: Likewise.
2045         * lto-compress.c: Likewise.
2046         * lto-opts.c: Likewise.
2047         * lto-section-in.c: Likewise.
2048         * lto-section-out.c: Likewise.
2049         * lto-streamer-in.c: Likewise.
2050         * lto-streamer-out.c: Likewise.
2051         * lto-streamer.c: Likewise.
2052         * mcf.c: Likewise.
2053         * mode-switching.c: Likewise.
2054         * modulo-sched.c: Likewise.
2055         * omega.c: Likewise.
2056         * omp-low.c: Likewise.
2057         * optabs.c: Likewise.
2058         * opts-global.c: Likewise.
2059         * opts.h: Likewise.
2060         * passes.c: Likewise.
2061         * plugin.c: Likewise.
2062         * postreload-gcse.c: Likewise.
2063         * postreload.c: Likewise.
2064         * predict.c: Likewise.
2065         * pretty-print.h: Likewise.
2066         * print-rtl.c: Likewise.
2067         * print-tree.c: Likewise.
2068         * profile.c: Likewise.
2069         * real.c: Likewise.
2070         * realmpfr.c: Likewise.
2071         * recog.c: Likewise.
2072         * ree.c: Likewise.
2073         * reg-stack.c: Likewise.
2074         * regcprop.c: Likewise.
2075         * reginfo.c: Likewise.
2076         * regrename.c: Likewise.
2077         * regstat.c: Likewise.
2078         * reload.c: Likewise.
2079         * reload1.c: Likewise.
2080         * reorg.c: Likewise.
2081         * resource.c: Likewise.
2082         * rtl-chkp.c: Likewise.
2083         * rtl-error.c: Likewise.
2084         * rtlanal.c: Likewise.
2085         * rtlhooks.c: Likewise.
2086         * sanopt.c: Likewise.
2087         * sched-deps.c: Likewise.
2088         * sched-ebb.c: Likewise.
2089         * sched-rgn.c: Likewise.
2090         * sched-vis.c: Likewise.
2091         * sdbout.c: Likewise.
2092         * sel-sched-dump.c: Likewise.
2093         * sel-sched-ir.c: Likewise.
2094         * sel-sched.c: Likewise.
2095         * sese.c: Likewise.
2096         * shrink-wrap.c: Likewise.
2097         * simplify-rtx.c: Likewise.
2098         * stack-ptr-mod.c: Likewise.
2099         * statistics.c: Likewise.
2100         * stmt.c: Likewise.
2101         * stor-layout.c: Likewise.
2102         * store-motion.c: Likewise.
2103         * streamer-hooks.c: Likewise.
2104         * stringpool.c: Likewise.
2105         * symtab.c: Likewise.
2106         * target-globals.c: Likewise.
2107         * targhooks.c: Likewise.
2108         * toplev.c: Likewise.
2109         * tracer.c: Likewise.
2110         * trans-mem.c: Likewise.
2111         * tree-affine.c: Likewise.
2112         * tree-browser.c: Likewise.
2113         * tree-call-cdce.c: Likewise.
2114         * tree-cfg.c: Likewise.
2115         * tree-cfgcleanup.c: Likewise.
2116         * tree-chkp-opt.c: Likewise.
2117         * tree-chkp.c: Likewise.
2118         * tree-chrec.c: Likewise.
2119         * tree-complex.c: Likewise.
2120         * tree-data-ref.c: Likewise.
2121         * tree-dfa.c: Likewise.
2122         * tree-diagnostic.c: Likewise.
2123         * tree-dump.c: Likewise.
2124         * tree-eh.c: Likewise.
2125         * tree-emutls.c: Likewise.
2126         * tree-if-conv.c: Likewise.
2127         * tree-inline.c: Likewise.
2128         * tree-into-ssa.c: Likewise.
2129         * tree-iterator.c: Likewise.
2130         * tree-loop-distribution.c: Likewise.
2131         * tree-nested.c: Likewise.
2132         * tree-nrv.c: Likewise.
2133         * tree-object-size.c: Likewise.
2134         * tree-outof-ssa.c: Likewise.
2135         * tree-parloops.c: Likewise.
2136         * tree-phinodes.c: Likewise.
2137         * tree-predcom.c: Likewise.
2138         * tree-pretty-print.c: Likewise.
2139         * tree-profile.c: Likewise.
2140         * tree-scalar-evolution.c: Likewise.
2141         * tree-sra.c: Likewise.
2142         * tree-ssa-address.c: Likewise.
2143         * tree-ssa-alias.c: Likewise.
2144         * tree-ssa-ccp.c: Likewise.
2145         * tree-ssa-coalesce.c: Likewise.
2146         * tree-ssa-copy.c: Likewise.
2147         * tree-ssa-copyrename.c: Likewise.
2148         * tree-ssa-dce.c: Likewise.
2149         * tree-ssa-dom.c: Likewise.
2150         * tree-ssa-dse.c: Likewise.
2151         * tree-ssa-forwprop.c: Likewise.
2152         * tree-ssa-ifcombine.c: Likewise.
2153         * tree-ssa-live.c: Likewise.
2154         * tree-ssa-loop-ch.c: Likewise.
2155         * tree-ssa-loop-im.c: Likewise.
2156         * tree-ssa-loop-ivcanon.c: Likewise.
2157         * tree-ssa-loop-ivopts.c: Likewise.
2158         * tree-ssa-loop-manip.c: Likewise.
2159         * tree-ssa-loop-niter.c: Likewise.
2160         * tree-ssa-loop-prefetch.c: Likewise.
2161         * tree-ssa-loop-unswitch.c: Likewise.
2162         * tree-ssa-loop.c: Likewise.
2163         * tree-ssa-math-opts.c: Likewise.
2164         * tree-ssa-operands.c: Likewise.
2165         * tree-ssa-phiopt.c: Likewise.
2166         * tree-ssa-phiprop.c: Likewise.
2167         * tree-ssa-pre.c: Likewise.
2168         * tree-ssa-propagate.c: Likewise.
2169         * tree-ssa-reassoc.c: Likewise.
2170         * tree-ssa-sccvn.c: Likewise.
2171         * tree-ssa-scopedtables.c: Likewise.
2172         * tree-ssa-sink.c: Likewise.
2173         * tree-ssa-strlen.c: Likewise.
2174         * tree-ssa-structalias.c: Likewise.
2175         * tree-ssa-tail-merge.c: Likewise.
2176         * tree-ssa-ter.c: Likewise.
2177         * tree-ssa-threadedge.c: Likewise.
2178         * tree-ssa-threadupdate.c: Likewise.
2179         * tree-ssa-uncprop.c: Likewise.
2180         * tree-ssa-uninit.c: Likewise.
2181         * tree-ssa.c: Likewise.
2182         * tree-ssanames.c: Likewise.
2183         * tree-stdarg.c: Likewise.
2184         * tree-streamer-in.c: Likewise.
2185         * tree-streamer-out.c: Likewise.
2186         * tree-streamer.c: Likewise.
2187         * tree-switch-conversion.c: Likewise.
2188         * tree-tailcall.c: Likewise.
2189         * tree-vect-data-refs.c: Likewise.
2190         * tree-vect-generic.c: Likewise.
2191         * tree-vect-loop-manip.c: Likewise.
2192         * tree-vect-loop.c: Likewise.
2193         * tree-vect-patterns.c: Likewise.
2194         * tree-vect-slp.c: Likewise.
2195         * tree-vect-stmts.c: Likewise.
2196         * tree-vectorizer.c: Likewise.
2197         * tree-vrp.c: Likewise.
2198         * tree.c: Likewise.
2199         * tsan.c: Likewise.
2200         * ubsan.c: Likewise.
2201         * valtrack.c: Likewise.
2202         * value-prof.c: Likewise.
2203         * var-tracking.c: Likewise.
2204         * varasm.c: Likewise.
2205         * varpool.c: Likewise.
2206         * vmsdbgout.c: Likewise.
2207         * vtable-verify.c: Likewise.
2208         * web.c: Likewise.
2209         * wide-int.cc: Likewise.
2210         * xcoffout.c: Likewise.
2211         * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
2212         * common/common-targhooks.c: Likewise.
2213         * config/aarch64/aarch64-builtins.c: Likewise.
2214         * config/aarch64/aarch64.c: Likewise.
2215         * config/alpha/alpha.c: Likewise.
2216         * config/arc/arc.c: Likewise.
2217         * config/arm/aarch-common.c: Likewise.
2218         * config/arm/arm-builtins.c: Likewise.
2219         * config/arm/arm-c.c: Likewise.
2220         * config/arm/arm.c: Likewise.
2221         * config/avr/avr-c.c: Likewise.
2222         * config/avr/avr-log.c: Likewise.
2223         * config/avr/avr.c: Likewise.
2224         * config/bfin/bfin.c: Likewise.
2225         * config/c6x/c6x.c: Likewise.
2226         * config/cr16/cr16.c: Likewise.
2227         * config/cris/cris.c: Likewise.
2228         * config/darwin-c.c: Likewise.
2229         * config/darwin.c: Likewise.
2230         * config/default-c.c: Likewise.
2231         * config/epiphany/epiphany.c: Likewise.
2232         * config/epiphany/mode-switch-use.c: Likewise.
2233         * config/epiphany/resolve-sw-modes.c: Likewise.
2234         * config/fr30/fr30.c: Likewise.
2235         * config/frv/frv.c: Likewise.
2236         * config/ft32/ft32.c: Likewise.
2237         * config/glibc-c.c: Likewise.
2238         * config/h8300/h8300.c: Likewise.
2239         * config/i386/i386-c.c: Likewise.
2240         * config/i386/i386.c: Likewise.
2241         * config/i386/msformat-c.c: Likewise.
2242         * config/i386/winnt-cxx.c: Likewise.
2243         * config/i386/winnt-stubs.c: Likewise.
2244         * config/i386/winnt.c: Likewise.
2245         * config/ia64/ia64-c.c: Likewise.
2246         * config/ia64/ia64.c: Likewise.
2247         * config/iq2000/iq2000.c: Likewise.
2248         * config/lm32/lm32.c: Likewise.
2249         * config/m32c/m32c-pragma.c: Likewise.
2250         * config/m32c/m32c.c: Likewise.
2251         * config/m32r/m32r.c: Likewise.
2252         * config/m68k/m68k.c: Likewise.
2253         * config/mcore/mcore.c: Likewise.
2254         * config/mep/mep-pragma.c: Likewise.
2255         * config/mep/mep.c: Likewise.
2256         * config/microblaze/microblaze-c.c: Likewise.
2257         * config/microblaze/microblaze.c: Likewise.
2258         * config/mips/mips.c: Likewise.
2259         * config/mmix/mmix.c: Likewise.
2260         * config/mn10300/mn10300.c: Likewise.
2261         * config/moxie/moxie.c: Likewise.
2262         * config/msp430/msp430-c.c: Likewise.
2263         * config/msp430/msp430.c: Likewise.
2264         * config/nds32/nds32-cost.c: Likewise.
2265         * config/nds32/nds32-fp-as-gp.c: Likewise.
2266         * config/nds32/nds32-intrinsic.c: Likewise.
2267         * config/nds32/nds32-isr.c: Likewise.
2268         * config/nds32/nds32-md-auxiliary.c: Likewise.
2269         * config/nds32/nds32-memory-manipulation.c: Likewise.
2270         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
2271         * config/nds32/nds32-predicates.c: Likewise.
2272         * config/nds32/nds32.c: Likewise.
2273         * config/nios2/nios2.c: Likewise.
2274         * config/nvptx/nvptx.c: Likewise.
2275         * config/pa/pa.c: Likewise.
2276         * config/pdp11/pdp11.c: Likewise.
2277         * config/rl78/rl78-c.c: Likewise.
2278         * config/rl78/rl78.c: Likewise.
2279         * config/rs6000/rs6000-c.c: Likewise.
2280         * config/rs6000/rs6000.c: Likewise.
2281         * config/rx/rx.c: Likewise.
2282         * config/s390/s390-c.c: Likewise.
2283         * config/s390/s390.c: Likewise.
2284         * config/sh/sh-c.c: Likewise.
2285         * config/sh/sh-mem.cc: Likewise.
2286         * config/sh/sh.c: Likewise.
2287         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
2288         * config/sh/sh_treg_combine.cc: Likewise.
2289         * config/sol2-c.c: Likewise.
2290         * config/sol2-cxx.c: Likewise.
2291         * config/sol2-stubs.c: Likewise.
2292         * config/sol2.c: Likewise.
2293         * config/sparc/sparc-c.c: Likewise.
2294         * config/sparc/sparc.c: Likewise.
2295         * config/spu/spu-c.c: Likewise.
2296         * config/spu/spu.c: Likewise.
2297         * config/stormy16/stormy16.c: Likewise.
2298         * config/tilegx/mul-tables.c: Likewise.
2299         * config/tilegx/tilegx-c.c: Likewise.
2300         * config/tilegx/tilegx.c: Likewise.
2301         * config/tilepro/mul-tables.c: Likewise.
2302         * config/tilepro/tilepro-c.c: Likewise.
2303         * config/tilepro/tilepro.c: Likewise.
2304         * config/v850/v850-c.c: Likewise.
2305         * config/v850/v850.c: Likewise.
2306         * config/vax/vax.c: Likewise.
2307         * config/visium/visium.c: Likewise.
2308         * config/vms/vms-c.c: Likewise.
2309         * config/vms/vms.c: Likewise.
2310         * config/vxworks.c: Likewise.
2311         * config/winnt-c.c: Likewise.
2312         * config/xtensa/xtensa.c: Likewise.
2314 2015-06-17  Robert Suchanek  <robert.suchanek@imgtec.com>
2316         * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
2317         function.
2318         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
2320 2015-06-17  Richard Biener  <rguenther@suse.de>
2322         PR tree-optimization/66251
2323         * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
2324         stmts for SLP strided stores.
2326         Revert
2327         2015-05-22  Richard Biener  <rguenther@suse.de>
2329         PR tree-optimization/66251
2330         * tree-vect-stmts.c (vectorizable_conversion): Properly
2331         set STMT_VINFO_VEC_STMT even for the SLP case.
2333         2015-05-26  Michael Matz  <matz@suse.de>
2335         PR middle-end/66251
2336         * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
2337         STMT_VINFO_VEC_STMT, also with SLP.
2339 2015-06-16  Uros Bizjak  <ubizjak@gmail.com>
2341         PR target/56766
2342         * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
2343         (*avx_addsubv4df3_1s): Ditto.
2344         (*sse3_addsubv2df3_1): Ditto.
2345         (*sse3_addsubv2df3_1s): Ditto.
2346         (*avx_addsubv8sf3_1): Ditto.
2347         (*avx_addsubv8sf3_1s): Ditto.
2348         (*sse3_addsubv4sf3_1): Ditto.
2349         (*sse3_addsubv4sf3_1s): Ditto.
2351 2015-06-16  Steve Ellcey  <sellcey@imgtec.com>
2353         * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
2354         (SYSROOT_SUFFIX_SPEC): Update.
2355         (SYSROOT_HEADERS_SUFFIX_SPEC): New.
2356         (STARTFILE_PREFIX_SPEC): Update.
2357         * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
2358         (MULTILIB_REQUIRED): New.
2359         (MULTILIB_OSDIRNAMES): New.
2360         * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
2361         (MULTILIB_REQUIRED): New.
2362         (MULTILIB_OSDIRNAMES): New.
2364 2015-06-16  Matthew Wahab  <matthew.wahab@arm.com>
2366         * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
2367         * config/aarch64/aarch64-options-extensions.def: Update "fP",
2368         "simd" and "crypto".  Add "lse", "pan", "lor" and "rdma".
2369         * gcc/config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
2370         (AARCH64_FL_PAN): New.
2371         (AARCH64_FL_LOR): New.
2372         (AARCH64_FL_RDMA): New.
2373         (AARCH64_FL_FOR_ARCH8_1): New.
2374         * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
2375         -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
2377 2015-06-16  Martin Liska  <mliska@suse.cz>
2379         * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
2380         * hash-table.c (void dump_hash_table_loc_statistics): Add missing
2381         guard.
2383 2015-06-16  Richard Biener  <rguenther@suse.de>
2385         * tree-vect-stmts.c (vectorizable_store): Adjust.
2386         (vectorizable_load): Likewise.
2387         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
2388         Simplify.
2389         (vect_create_data_ref_ptr): Likewise.
2390         (bump_vector_ptr): Adjust.
2392 2015-06-16  Richard Biener  <rguenther@suse.de>
2394         * tree-vect-stmts.c (vectorizable_load): Properly start loads
2395         with the first element if this is grouped loads.
2397 2015-06-16  James Greenhalgh  <james.greenhalgh@arm.com>
2399         * config/arm/arm-protos.h (struct tune_params): Rename
2400         log_op_non_sc to log_op_non_short_circuit, and rename enum
2401         values to expand SC to SHORT_CIRCUIT.
2402         * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
2403         to LOG_OP_NON_SHORT_CIRCUIT.
2404         (arm_fastmul_tune):Likewise
2405         (arm_strongarm_tune): Likewise.
2406         (arm_xscale_tune): Likewise.
2407         (arm_9e_tune): Likewise.
2408         (arm_marvell_pj4_tune): Likewise.
2409         (arm_v6t2_tune): Likewise.
2410         (arm_cortex_tune): Likewise.
2411         (arm_cortex_a8_tune): Likewise.
2412         (arm_cortex_a7_tune): Likewise.
2413         (arm_cortex_a15_tune): Likewise.
2414         (arm_cortex_a53_tune): Likewise.
2415         (arm_cortex_a57_tune): Likewise.
2416         (arm_xgene1_tune): Likewise.
2417         (arm_cortex_a5_tune): Likewise.
2418         (arm_cortex_a9_tune): Likewise.
2419         (arm_cortex_a12_tune): Likewise.
2420         (arm_v7m_tune): Likewise.
2421         (arm_cortex_m7_tune): Likewise.
2422         (arm_v6m_tune): Likewise.
2423         (arm_fa726te_tune): Likewise.
2425 2015-06-15  David Edelsohn  <dje.gcc@gmail.com>
2427         * altivec.md: Delete UNSPEC_VMLADDUHM.
2428         (mulv4si3_p8): New pattern.
2429         (mulv4si3): Use it for POWER8.
2430         (mulv8hi3): Use vmladduhm with zero addend.
2431         (altivec_vmladduhm): Descriptive RTL.
2433 2015-06-15  Jim Wilson  <jim.wilson@linaro.org>
2435         * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
2436         to use neon_move instead of mov_imm.
2437         (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
2438         (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
2440         * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
2441         aarch64_float_const_zero_rtx_p check before TFmode check.
2442         * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
2443         an fp zero.
2444         (movtf_aarch64): Separate ?rY alternative into two.  Adjust assembly
2445         code and attributes to match.  Change condition from register_operand
2446         to aarch64_reg_or_fp_zero for op1.  Change type for ldp from
2447         neon_load1_2reg to load2.  Change type for stp from neon_store1_2reg
2448         to store2.
2450 2015-06-15  Aldy Hernandez  <aldyh@redhat.com>
2452         PR debug/66535
2453         * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
2454         there is no parent.
2456 2015-06-14  Shiva Chen  <shiva0217@gmail.com>
2458         * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
2459         HOST_WIDE_INT parameter.
2461 2015-06-14  Jan Hubicka  <hubicka@ucw.cz>
2463         PR ipa/66181
2464         * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
2465         * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
2466         TYPE_NO_FORCE_BLK.
2467         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
2469 2015-06-14  Richard Sandiford  <richard.sandiford@arm.com>
2471         * rtl.h (classify_insn): Declare.
2472         * emit-rtl.c (classify_insn): Move to...
2473         * rtl.c: ...here and add generator support.
2474         * gensupport.h (get_emit_function, needs_barrier_p): Declare.
2475         * gensupport.c (get_emit_function, needs_barrier_p): New functions.
2476         * genemit.c (gen_emit_seq): New function.
2477         (gen_expand, gen_split): Use it.
2479 2015-06-13  Patrick Palka  <ppalka@gcc.gnu.org>
2481         * tree.c (make_vector_stat): Fix comment to state that the
2482         function returns a VECTOR_CST.
2484 2015-06-13  Richard Sandiford  <richard.sandiford@arm.com>
2486         * gensupport.h (add_implicit_parallel): Declare.
2487         * genrecog.c (add_implicit_parallel): Move to...
2488         * gensupport.c (add_implicit_parallel): ...here.
2489         (process_one_cond_exec): Use it.
2490         * genemit.c (gen_insn): Likewise.
2492 2015-06-13  Iain Sandoe  <iain@codesourcery.com>
2494         PR bootstrap/66448
2495         * passes.c (rest_of_decl_compilation): Do not register globals for
2496         early debug if they are declared in built-ins.
2498 2015-06-12  Aldy Hernandez  <aldyh@redhat.com>
2500         * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
2502 2015-06-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2504         * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
2505         manually swapping.
2506         (noce_try_cmove_arith): Likewise.
2507         (noce_get_alt_condition): Likewise.
2509 2015-06-12  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
2511         * common/config/i386/i386-common.c
2512         (OPTION_MASK_ISA_MWAITX_SET): New.
2513         (ix86_handle_option): Handle mwaitx.
2514         * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
2515         (x86_64-*-*): Likewise.
2516         * config/i386/mwaitxintrin.h: New header.
2517         * config/i386/cpuid.h (bit_MWAITX):  Define.
2518         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
2519         MWAITX support.
2520         * config/i386/i386.opt (mwaitx): New.
2521         * config/i386/i386-builtin-types.def
2522         (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
2523         * config/i386/i386-c.c: Define __MWAITX__ if needed.
2524         * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
2525         (PTA_MWAITX): New.
2526         (ix86_option_override_internal): Handle new option.
2527         (processor_alias_table): Added PTA_MWAITX.
2528         (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
2529         (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
2530         (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
2531         IX86_BUILTIN_MONITORX  built-ins.
2532         * config/i386/i386.h (TARGET_MWAITX): New.
2533         * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
2534         UNSPEC_MONITORX.
2535         (mwaitx):  New pattern.
2536         (monitorx_<mode>): New pattern.
2537         * config/i386/x86intrin.h: Include mwaitxintrin.h.
2538         * doc/extend.texi: Document monitorx and mwaitx builtins.
2539         * doc/invoke.texi: Document -mmwaitx option.
2541 2015-06-12  Uros Bizjak  <ubizjak@gmail.com>
2543         * emit-rtl.c (need_atomic_barrier_p): Mask model with
2544         MEMMODEL_BASE_MASK.  Remove MEMMODEL_SYNC_* cases.
2546 2015-06-11  David Edelsohn  <dje.gcc@gmail.com>
2548         * dbxout.c (xcoff_debug_hooks): Provide a function for
2549         register_main_translation_unit hook.
2551 2015-06-11  David Edelsohn  <dje.gcc@gmail.com>
2553         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
2554         variants cases from switch.
2555         (rs6000_post_atomic_barrier): Same.
2556         (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
2557         (rs6000_expand_atomic_exchange): Same.
2558         (rs6000_expand_atomic_op): Same.
2559         * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
2560         SYNC variants cases from switch.
2561         (atomic_load): Same.
2562         (atomic_store): Same.
2564 2015-06-11  John David Anglin  <danglin@gcc.gnu.org>
2566         * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
2567         CONST_INT for goto.
2569 2015-06-11  Aldy Hernandez  <aldyh@redhat.com>
2571         PR bootstrap/66448
2572         * dwarf2out.c (check_die): Check for common duplicate attributes.
2573         (add_location_or_const_value_attribute): Do not add duplicate
2574         attributes.
2575         (gen_formal_parameter_die): Do not add DW_AT_artificial the second
2576         time around.
2577         (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
2578         (gen_type_die_with_usage): Call check_die.
2579         (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
2581 2015-06-11  Jason Merrill  <jason@redhat.com>
2583         * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
2584         dies.
2586 2015-06-11  Marek Polacek  <polacek@redhat.com>
2588         * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
2590 2015-06-11  Eric Botcazou  <ebotcazou@adacore.com>
2592         PR bootstrap/66252
2593         * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
2594         * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
2595         (*addx_extend_sp32): Fix pasto.
2596         (*subx_extend): Rename into...
2597         (*subx_extend_sp32): ...this.
2598         (*adddi3_extend_sp32): Add earlyclobber.
2599         (*subdi3_insn_sp32): Likewise.
2600         (*subdi3_extend_sp32): Likewise.
2601         (*and_not_di_sp32): Likewise.
2602         (*or_not_di_sp32): Likewise.
2603         (*xor_not_di_sp32): Likewise.
2604         (*negdi2_sp32): Likewise.
2605         (*one_cmpldi2_sp32): Likewise.
2607 2015-06-11  Pierre-Marie de Rodat  <derodat@adacore.com>
2609         * debug.h (struct gcc_debug_hooks): Add a
2610         register_main_translation_unit hook.
2611         * debug.c (do_nothing_debug_hooks): Provide a function for this
2612         new hook.
2613         * dbxout.c (dbx_debug_hooks): Likewise.
2614         * sdbout.c (sdb_debug_hooks): Likewise.
2615         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
2616         * dwarf2out.c (main_translation_unit): New global variable.
2617         (dwarf2out_register_main_translation_unit): New function
2618         implementing the new hook.
2619         (dwarf2_debug_hooks): Assign
2620         dwarf2out_register_main_translation_unit to this new hook.
2621         (dwarf2out_init): Associate any main translation unit to
2622         comp_unit_die ().
2624 2015-06-11  Marek Polacek  <polacek@redhat.com>
2626         * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
2628 2015-06-11  Marek Polacek  <polacek@redhat.com>
2630         * match.pd: Use single_use throughout.
2632 2015-06-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2634         * config/arm/arm.c (arm_option_params_internal): When optimising
2635         for speed set max_insns_skipped when arm_restrict_it.
2637 2015-06-11  Christian Bruel  <christian.bruel@st.com>
2639         PR target/52144
2640         * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
2641          macros in ...
2642         (arm_cpu_builtins): New function.
2643         (arm_pragma_target_parse): Call arm_cpu_builtins.
2644         * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
2645         (arm_register_target_pragmas): Likewise.
2646         * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
2647          Call arm_register_target_pragmas.
2648         * config/arm/arm-c.c (arm_register_target_pragmas): New function.
2649         (arm_pragma_target_parse): Likewise.
2651 2015-06-10  Kaz Kojima  <kkojima@gcc.gnu.org>
2653         * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
2654         of the second operand.
2656 2015-06-10  Uros Bizjak  <ubizjak@gmail.com>
2658         PR target/66473
2659         * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
2660         to prepare mask operand for AVX512 modes.
2662 2015-06-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
2664         PR target/66474
2665         * doc/md.texi (Machine Constraints): Document that on the PowerPC
2666         if you use a constraint that targets a VSX register, you must use
2667         %x<n> in the template.
2669 2015-06-10  Max Filippov  <jcmvbkbc@gmail.com>
2671         * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
2672         * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
2673         (define_insn "trap"): New definition.
2675 2015-06-10  Richard Biener  <rguenther@suse.de>
2677         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
2678         out from ...
2679         (vect_supported_load_permutation_p): ... here.  Handle
2680         supportable permutations in reductions.
2681         * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
2682         for vectorizing strided group loads.
2684 2015-06-10  Jakub Jelinek  <jakub@redhat.com>
2686         PR target/66470
2687         * config/i386/i386.c (ix86_split_long_move): For collisions
2688         involving direct tls segment refs, move the UNSPEC_TP possibly
2689         wrapped in ZERO_EXTEND out of the address for lea, to each of
2690         the memory loads.
2692 2015-06-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2694         * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
2695         dmb sy. Adjust tabs.
2697 2015-06-10  Tom de Vries  <tom@codesourcery.com>
2699         * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
2701 2015-06-10  Martin Liska  <mliska@suse.cz>
2703         PR bootstrap/66471
2704         * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
2705         all enum values in mem_alloc_origin.
2706         * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
2707         name.
2708         * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
2709         * bitmap.c (bitmap_register): Likewise.
2710         (dump_bitmap_statistics): Likewise.
2711         * ggc-common.c (dump_ggc_loc_statistics): Likewise.
2712         (ggc_record_overhead): Likewise.
2713         * hash-map.h: Likewise.
2714         * hash-set.h: Likewise.
2715         * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
2716         * hash-table.h: Likewise.
2717         * vec.c (vec_prefix::register_overhead): Likewise.
2718         (vec_prefix::release_overhead): Likewise.
2719         (dump_vec_loc_statistics): Likewise.
2721 2015-06-09  Christian Bruel  <christian.bruel@st.com>
2723         PR target/52144
2724         * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
2725         * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
2726         (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
2727         * config/arm/arm.h (SWITCHABLE_TARGET): Define.
2728         * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
2729         (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
2730         (arm_valid_target_attribute_p): Likewise.
2731         (arm_set_current_function, arm_can_inline_p): Likewise.
2732         (arm_valid_target_attribute_rec): Likewise.
2733         (arm_previous_fndecl): New variable.
2734         (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
2735         (TARGET_CAN_INLINE_P): Define.
2736         (arm_asm_trampoline_template): Emit mode.
2737         (arm_file_start): Don't set unified syntax.
2738         (arm_declare_function_name): Set unified syntax and mode.
2739         (arm_option_override): Init target_option_default_node.
2740         and target_option_current_node.
2741         * config/arm/arm.md (*call_value_symbol): Set mode when possible.
2742         (*call_symbol): Likewise.
2743         * doc/extend.texi: Document ARM/Thumb target attribute.
2744         * doc/invoke.texi: Likewise.
2746 2015-06-09  Alexandre Oliva <aoliva@redhat.com>
2748         Revert:
2749         2015-06-09  Alexandre Oliva <aoliva@redhat.com>
2750         PR rtl-optimization/64164
2751         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
2752         * tree-ssa-copyrename.c: Removed.
2753         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
2754         -ftree-coalesce-vars.
2755         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
2756         * common.opt (ftree-copyrename): Ignore.
2757         (ftree-coalesce-inlined-vars): Likewise.
2758         * doc/invoke.texi: Remove the ignored options above.
2759         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
2760         * tree-ssa-coalesce.h: ... here.
2761         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
2762         headers required by it.
2763         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
2764         across variables when flag_tree_coalesce_vars.  Check register
2765         use and promoted modes to allow coalescing.  Moved to
2766         tree-ssa-coalesce.c.
2767         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
2768         with its member functions to tree-ssa-coalesce.c.
2769         (var_map_base_init): Likewise.  Renamed to
2770         compute_samebase_partition_bases.
2771         (partition_view_normal): Drop want_bases parameter.
2772         (partition_view_bitmap): Likewise.
2773         * tree-ssa-live.h: Adjust declarations.
2774         * tree-ssa-coalesce.c: Include explow.h.
2775         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
2776         default defs at the entry point.
2777         (dump_part_var_map): New.
2778         (compute_optimized_partition_bases): New, called by...
2779         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
2780         of compute_samebase_partition_bases.  Adjust.
2781         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
2782         * cfgexpand.c (leader_merge): New.
2783         (get_rtl_for_parm_ssa_default_def): New.
2784         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
2785         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
2786         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
2787         redundant MEM attr setting.
2788         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
2789         from...
2790         (expand_one_stack_var): ... this.  New wrapper to check and
2791         skip already expanded SSA partitions.
2792         (record_alignment_for_reg_var): New, factored out of...
2793         (expand_one_var): ... this.
2794         (expand_one_ssa_partition): New.
2795         (adjust_one_expanded_partition_var): New.
2796         (expand_one_register_var): Check and skip already expanded SSA
2797         partitions.
2798         (expand_used_vars): Don't create DECLs for anonymous SSA
2799         names.  Expand all SSA partitions, then adjust all SSA names.
2800         (pass::execute): Replace the loops that set
2801         SA.partition_to_pseudo from partition leaders and cleared
2802         DECL_RTL for multi-location variables, and that which used to
2803         rename vars and set attrs, with one that clears DECL_RTL and
2804         checks that PARMs and RESULTs default_defs match DECL_RTL.
2805         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
2806         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
2807         * explow.c (promote_ssa_mode): New.
2808         * explow.h (promote_ssa_mode): Declare.
2809         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
2810         * function.c: Include cfgexpand.h.
2811         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
2812         (use_register_for_parm_decl): Wrapper for the above to
2813         special-case the result_ptr.
2814         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
2815         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
2816         multiple locations.
2817         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
2818         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
2819         (assign_parm_setup_block): Prefer SSA-assigned location.
2820         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
2821         if stack_parm is NULL.
2822         (assign_parm_setup_stack): Prefer SSA-assigned location.
2823         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
2824         rtl before testing for pointer bounds.  Special-case result_ptr.
2825         (expand_function_start): Maybe reset DECL_RTL of result.
2826         Prefer SSA-assigned location for result and static chain.
2827         Factor out DECL_RESULT and SET_DECL_RTL.
2828         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
2829         anonymous SSA names.  Use promote_ssa_mode.
2830         (get_temp_reg): Likewise.
2831         (remove_ssa_form): Adjust.
2832         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
2833         and get its reg_usage for reg invalidation.
2834         (compute_bb_dataflow): Pass it insn.
2835         (emit_notes_in_bb): Likewise.
2836         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
2837         fail assert on conversion between unsigned types.
2839 2015-06-09  Tom de Vries  <tom@codesourcery.com>
2841         PR tree-optimization/65460
2842         * omp-low.c (expand_omp_target): Set parallelized_function on
2843         cgraph_node for child_fn.
2845 2015-06-09  Tom de Vries  <tom@codesourcery.com>
2847         * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
2848         parallelized_function before add_new_function.
2850 2015-06-09  Andrew MacLeod  <amacleod@redhat.com>
2852         * gcc-plugin.h: Move decls to plugin.h and include it.
2853         * plugin.h: Relocate decls from gcc-plugin.h
2854         * ggc-page.c: Include required header files.
2855         * passes.c: Likewise.
2856         * cgraphunit.c: Likewise.
2858 2015-06-09  Tom de Vries  <tom@codesourcery.com>
2860         * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
2862 2015-06-09  Jason Merrill  <jason@redhat.com>
2864         PR bootstrap/66448
2865         * toplev.c (check_global_declaration): Don't warn about a clone.
2867 2015-06-09  Marek Polacek  <polacek@redhat.com>
2869         PR tree-optimization/66299
2870         * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
2871         ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
2872         patterns.
2874 2015-06-09  Richard Biener  <rguenther@suse.de>
2876         * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
2877         (vect_analyze_slp_instance): Instead do not falsely drop
2878         load permutations.
2880 2015-06-09  Richard Biener  <rguenther@suse.de>
2882         PR middle-end/66423
2883         * match.pd: Handle A % (unsigned)(1 << B).
2885 2015-06-09  Aldy Hernandez  <aldyh@redhat.com>
2887         * varasm.c (output_object_block_htab): Remove.
2888         (output_object_block_compare): New.
2889         (output_object_blocks): Sort named object_blocks before outputting
2890         them.
2892 2015-06-09  Richard Biener  <rguenther@suse.de>
2894         PR tree-optimization/66419
2895         * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
2896         consider GROUP_GAP when detecting a perfect subchain.
2898 2015-06-09  Nick Clifton  <nickc@redhat.com>
2900         * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
2901         place read only data in the .frodata section.
2903 2015-06-09  Shiva Chen  <shiva0217@gmail.com>
2905         * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
2906         (atomic_store<mode>): Likewise.
2908 2015-06-09  Richard Biener  <rguenther@suse.de>
2910         * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
2912 2015-06-09  Richard Biener  <rguenther@suse.de>
2914         PR middle-end/66413
2915         * tree-inline.c (insert_init_debug_bind): Unshare value.
2917 2015-06-09  Richard Biener  <rguenther@suse.de>
2919         PR tree-optimization/66396
2920         * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
2921         Rename virtual operands.
2923 2015-06-09  Tom de Vries  <tom@codesourcery.com>
2925         * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
2926         always return false.
2928 2015-06-09  Alexandre Oliva <aoliva@redhat.com>
2930         PR rtl-optimization/64164
2931         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
2932         * tree-ssa-copyrename.c: Removed.
2933         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
2934         -ftree-coalesce-vars.
2935         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
2936         * common.opt (ftree-copyrename): Ignore.
2937         (ftree-coalesce-inlined-vars): Likewise.
2938         * doc/invoke.texi: Remove the ignored options above.
2939         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
2940         * tree-ssa-coalesce.h: ... here.
2941         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
2942         headers required by it.
2943         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
2944         across variables when flag_tree_coalesce_vars.  Check register
2945         use and promoted modes to allow coalescing.  Moved to
2946         tree-ssa-coalesce.c.
2947         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
2948         with its member functions to tree-ssa-coalesce.c.
2949         (var_map_base_init): Likewise.  Renamed to
2950         compute_samebase_partition_bases.
2951         (partition_view_normal): Drop want_bases parameter.
2952         (partition_view_bitmap): Likewise.
2953         * tree-ssa-live.h: Adjust declarations.
2954         * tree-ssa-coalesce.c: Include explow.h.
2955         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
2956         default defs at the entry point.
2957         (dump_part_var_map): New.
2958         (compute_optimized_partition_bases): New, called by...
2959         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
2960         of compute_samebase_partition_bases.  Adjust.
2961         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
2962         * cfgexpand.c (leader_merge): New.
2963         (get_rtl_for_parm_ssa_default_def): New.
2964         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
2965         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
2966         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
2967         redundant MEM attr setting.
2968         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
2969         from...
2970         (expand_one_stack_var): ... this.  New wrapper to check and
2971         skip already expanded SSA partitions.
2972         (record_alignment_for_reg_var): New, factored out of...
2973         (expand_one_var): ... this.
2974         (expand_one_ssa_partition): New.
2975         (adjust_one_expanded_partition_var): New.
2976         (expand_one_register_var): Check and skip already expanded SSA
2977         partitions.
2978         (expand_used_vars): Don't create DECLs for anonymous SSA
2979         names.  Expand all SSA partitions, then adjust all SSA names.
2980         (pass::execute): Replace the loops that set
2981         SA.partition_to_pseudo from partition leaders and cleared
2982         DECL_RTL for multi-location variables, and that which used to
2983         rename vars and set attrs, with one that clears DECL_RTL and
2984         checks that PARMs and RESULTs default_defs match DECL_RTL.
2985         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
2986         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
2987         * explow.c (promote_ssa_mode): New.
2988         * explow.h (promote_ssa_mode): Declare.
2989         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
2990         * function.c: Include cfgexpand.h.
2991         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
2992         (use_register_for_parm_decl): Wrapper for the above to
2993         special-case the result_ptr.
2994         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
2995         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
2996         multiple locations.
2997         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
2998         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
2999         (assign_parm_setup_block): Prefer SSA-assigned location.
3000         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
3001         if stack_parm is NULL.
3002         (assign_parm_setup_stack): Prefer SSA-assigned location.
3003         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
3004         rtl before testing for pointer bounds.  Special-case result_ptr.
3005         (expand_function_start): Maybe reset DECL_RTL of result.
3006         Prefer SSA-assigned location for result and static chain.
3007         Factor out DECL_RESULT and SET_DECL_RTL.
3008         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
3009         anonymous SSA names.  Use promote_ssa_mode.
3010         (get_temp_reg): Likewise.
3011         (remove_ssa_form): Adjust.
3012         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
3013         and get its reg_usage for reg invalidation.
3014         (compute_bb_dataflow): Pass it insn.
3015         (emit_notes_in_bb): Likewise.
3016         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
3017         fail assert on conversion between unsigned types.
3019 2015-06-09  Alexandre Oliva <aoliva@redhat.com>
3021         PR debug/58315
3022         * tree-inline.c (reset_debug_binding): New.
3023         (reset_debug_bindings): Likewise.
3024         (expand_call_inline): Call it.
3026 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
3028         * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
3029         TYPE_STRING_FLAG.
3031 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
3033         * lto-streamer-out.c (lto_output_location): Stream
3034         reserved locations correctly.
3035         * lto-streamer-in.c (lto_output_location): Likewise.
3037 2015-06-08  Andrew MacLeod  <amacleod@redhat.com>
3039         * coretypes.h: Include hash-table.h and hash-set.h for host files.
3040         * ggc.h: Don't include statistics.h>
3041         * hash-map.h: Remove all includes.
3042         * hash-set.h: Likewise.
3043         * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
3044         the include list. Remove <new>.
3045         * inchash.h: Remove all includes.
3046         * mem-stats.h: Likewise.
3047         * vec.h: No special processing for generators or ggc.  
3048         * alias.c : Adjust include files.
3049         * alloc-pool.c : Likewise.
3050         * alloc-pool.h : Likewise.
3051         * asan.c : Likewise.
3052         * attribs.c : Likewise.
3053         * auto-inc-dec.c : Likewise.
3054         * auto-profile.c : Likewise.
3055         * bb-reorder.c : Likewise.
3056         * bitmap.c : Likewise.
3057         * bitmap.h : Likewise.
3058         * bt-load.c : Likewise.
3059         * builtins.c : Likewise.
3060         * caller-save.c : Likewise.
3061         * calls.c : Likewise.
3062         * ccmp.c : Likewise.
3063         * cfg.c : Likewise.
3064         * cfganal.c : Likewise.
3065         * cfgbuild.c : Likewise.
3066         * cfgcleanup.c : Likewise.
3067         * cfgexpand.c : Likewise.
3068         * cfghooks.c : Likewise.
3069         * cfgloop.c : Likewise.
3070         * cfgloop.h : Likewise.
3071         * cfgloopanal.c : Likewise.
3072         * cfgloopmanip.c : Likewise.
3073         * cfgrtl.c : Likewise.
3074         * cgraph.c : Likewise.
3075         * cgraphbuild.c : Likewise.
3076         * cgraphclones.c : Likewise.
3077         * cgraphunit.c : Likewise.
3078         * cilk-common.c : Likewise.
3079         * combine-stack-adj.c : Likewise.
3080         * combine.c : Likewise.
3081         * compare-elim.c : Likewise.
3082         * context.c : Likewise.
3083         * convert.c : Likewise.
3084         * coverage.c : Likewise.
3085         * cppbuiltin.c : Likewise.
3086         * cprop.c : Likewise.
3087         * cse.c : Likewise.
3088         * cselib.c : Likewise.
3089         * data-streamer-in.c : Likewise.
3090         * data-streamer-out.c : Likewise.
3091         * data-streamer.c : Likewise.
3092         * data-streamer.h : Likewise.
3093         * dbxout.c : Likewise.
3094         * dce.c : Likewise.
3095         * ddg.c : Likewise.
3096         * debug.c : Likewise.
3097         * df-core.c : Likewise.
3098         * df-problems.c : Likewise.
3099         * df-scan.c : Likewise.
3100         * df.h : Likewise.
3101         * dfp.c : Likewise.
3102         * dojump.c : Likewise.
3103         * dominance.c : Likewise.
3104         * domwalk.c : Likewise.
3105         * double-int.c : Likewise.
3106         * dse.c : Likewise.
3107         * dumpfile.c : Likewise.
3108         * dwarf2asm.c : Likewise.
3109         * dwarf2cfi.c : Likewise.
3110         * dwarf2out.c : Likewise.
3111         * emit-rtl.c : Likewise.
3112         * et-forest.c : Likewise.
3113         * except.c : Likewise.
3114         * except.h : Likewise.
3115         * explow.c : Likewise.
3116         * expmed.c : Likewise.
3117         * expr.c : Likewise.
3118         * final.c : Likewise.
3119         * fixed-value.c : Likewise.
3120         * fold-const.c : Likewise.
3121         * function.c : Likewise.
3122         * fwprop.c : Likewise.
3123         * gcc-plugin.h : Likewise.
3124         * gcc.c : Likewise.
3125         * gcse-common.c : Likewise.
3126         * gcse.c : Likewise.
3127         * genattrtab.c : Likewise.
3128         * genautomata.c : Likewise.
3129         * genconditions.c : Likewise.
3130         * genemit.c : Likewise.
3131         * generic-match-head.c : Likewise.
3132         * genextract.c : Likewise.
3133         * gengtype-state.c : Likewise.
3134         * gengtype.c : Likewise.
3135         * genhooks.c : Likewise.
3136         * genmatch.c : Likewise.
3137         * genmodes.c : Likewise.
3138         * genrecog.c : Likewise.
3139         * gensupport.c : Likewise.
3140         * ggc-common.c : Likewise.
3141         * ggc-internal.h : Likewise.
3142         * ggc-none.c : Likewise.
3143         * ggc-page.c : Likewise.
3144         * gimple-builder.c : Likewise.
3145         * gimple-expr.c : Likewise.
3146         * gimple-fold.c : Likewise.
3147         * gimple-iterator.c : Likewise.
3148         * gimple-low.c : Likewise.
3149         * gimple-match-head.c : Likewise.
3150         * gimple-pretty-print.c : Likewise.
3151         * gimple-ssa-isolate-paths.c : Likewise.
3152         * gimple-ssa-strength-reduction.c : Likewise.
3153         * gimple-ssa.h : Likewise.
3154         * gimple-streamer-in.c : Likewise.
3155         * gimple-streamer-out.c : Likewise.
3156         * gimple-streamer.h : Likewise.
3157         * gimple-walk.c : Likewise.
3158         * gimple.c : Likewise.
3159         * gimplify-me.c : Likewise.
3160         * gimplify.c : Likewise.
3161         * godump.c : Likewise.
3162         * graph.c : Likewise.
3163         * graphds.c : Likewise.
3164         * graphite-blocking.c : Likewise.
3165         * graphite-dependences.c : Likewise.
3166         * graphite-interchange.c : Likewise.
3167         * graphite-isl-ast-to-gimple.c : Likewise.
3168         * graphite-optimize-isl.c : Likewise.
3169         * graphite-poly.c : Likewise.
3170         * graphite-scop-detection.c : Likewise.
3171         * graphite-sese-to-poly.c : Likewise.
3172         * graphite.c : Likewise.
3173         * haifa-sched.c : Likewise.
3174         * hard-reg-set.h : Likewise.
3175         * hw-doloop.c : Likewise.
3176         * ifcvt.c : Likewise.
3177         * inchash.c : Likewise.
3178         * incpath.c : Likewise.
3179         * init-regs.c : Likewise.
3180         * input.c : Likewise.
3181         * internal-fn.c : Likewise.
3182         * ipa-chkp.c : Likewise.
3183         * ipa-comdats.c : Likewise.
3184         * ipa-cp.c : Likewise.
3185         * ipa-devirt.c : Likewise.
3186         * ipa-icf-gimple.c : Likewise.
3187         * ipa-icf.c : Likewise.
3188         * ipa-inline-analysis.c : Likewise.
3189         * ipa-inline-transform.c : Likewise.
3190         * ipa-inline.c : Likewise.
3191         * ipa-polymorphic-call.c : Likewise.
3192         * ipa-profile.c : Likewise.
3193         * ipa-prop.c : Likewise.
3194         * ipa-pure-const.c : Likewise.
3195         * ipa-ref.c : Likewise.
3196         * ipa-reference.c : Likewise.
3197         * ipa-split.c : Likewise.
3198         * ipa-utils.c : Likewise.
3199         * ipa-visibility.c : Likewise.
3200         * ipa.c : Likewise.
3201         * ira-build.c : Likewise.
3202         * ira-color.c : Likewise.
3203         * ira-conflicts.c : Likewise.
3204         * ira-costs.c : Likewise.
3205         * ira-emit.c : Likewise.
3206         * ira-lives.c : Likewise.
3207         * ira.c : Likewise.
3208         * jump.c : Likewise.
3209         * langhooks.c : Likewise.
3210         * lcm.c : Likewise.
3211         * libfuncs.h : Likewise.
3212         * lists.c : Likewise.
3213         * loop-doloop.c : Likewise.
3214         * loop-init.c : Likewise.
3215         * loop-invariant.c : Likewise.
3216         * loop-iv.c : Likewise.
3217         * loop-unroll.c : Likewise.
3218         * lower-subreg.c : Likewise.
3219         * lra-assigns.c : Likewise.
3220         * lra-coalesce.c : Likewise.
3221         * lra-constraints.c : Likewise.
3222         * lra-eliminations.c : Likewise.
3223         * lra-lives.c : Likewise.
3224         * lra-remat.c : Likewise.
3225         * lra-spills.c : Likewise.
3226         * lra.c : Likewise.
3227         * lto-cgraph.c : Likewise.
3228         * lto-compress.c : Likewise.
3229         * lto-opts.c : Likewise.
3230         * lto-section-in.c : Likewise.
3231         * lto-section-out.c : Likewise.
3232         * lto-streamer-in.c : Likewise.
3233         * lto-streamer-out.c : Likewise.
3234         * lto-streamer.c : Likewise.
3235         * lto-streamer.h : Likewise.
3236         * mcf.c : Likewise.
3237         * mode-switching.c : Likewise.
3238         * modulo-sched.c : Likewise.
3239         * omega.c : Likewise.
3240         * omp-low.c : Likewise.
3241         * optabs.c : Likewise.
3242         * opts-global.c : Likewise.
3243         * opts.h : Likewise.
3244         * passes.c : Likewise.
3245         * plugin.c : Likewise.
3246         * postreload-gcse.c : Likewise.
3247         * postreload.c : Likewise.
3248         * predict.c : Likewise.
3249         * print-rtl.c : Likewise.
3250         * print-tree.c : Likewise.
3251         * profile.c : Likewise.
3252         * read-md.c : Likewise.
3253         * read-md.h : Likewise.
3254         * read-rtl.c : Likewise.
3255         * real.c : Likewise.
3256         * realmpfr.c : Likewise.
3257         * recog.c : Likewise.
3258         * ree.c : Likewise.
3259         * reg-stack.c : Likewise.
3260         * regcprop.c : Likewise.
3261         * reginfo.c : Likewise.
3262         * regrename.c : Likewise.
3263         * regstat.c : Likewise.
3264         * reload.c : Likewise.
3265         * reload1.c : Likewise.
3266         * reorg.c : Likewise.
3267         * resource.c : Likewise.
3268         * rtl-chkp.c : Likewise.
3269         * rtl.c : Likewise.
3270         * rtl.h : Likewise.
3271         * rtlanal.c : Likewise.
3272         * rtlhash.c : Likewise.
3273         * rtlhash.h : Likewise.
3274         * rtlhooks.c : Likewise.
3275         * sanopt.c : Likewise.
3276         * sched-deps.c : Likewise.
3277         * sched-ebb.c : Likewise.
3278         * sched-rgn.c : Likewise.
3279         * sched-vis.c : Likewise.
3280         * sdbout.c : Likewise.
3281         * sel-sched-dump.c : Likewise.
3282         * sel-sched-ir.c : Likewise.
3283         * sel-sched-ir.h : Likewise.
3284         * sel-sched.c : Likewise.
3285         * sese.c : Likewise.
3286         * shrink-wrap.c : Likewise.
3287         * shrink-wrap.h : Likewise.
3288         * simplify-rtx.c : Likewise.
3289         * stack-ptr-mod.c : Likewise.
3290         * statistics.c : Likewise.
3291         * stmt.c : Likewise.
3292         * stor-layout.c : Likewise.
3293         * store-motion.c : Likewise.
3294         * stringpool.c : Likewise.
3295         * symtab.c : Likewise.
3296         * target-globals.c : Likewise.
3297         * targhooks.c : Likewise.
3298         * tlink.c : Likewise.
3299         * toplev.c : Likewise.
3300         * tracer.c : Likewise.
3301         * trans-mem.c : Likewise.
3302         * tree-affine.c : Likewise.
3303         * tree-affine.h : Likewise.
3304         * tree-browser.c : Likewise.
3305         * tree-call-cdce.c : Likewise.
3306         * tree-cfg.c : Likewise.
3307         * tree-cfgcleanup.c : Likewise.
3308         * tree-chkp-opt.c : Likewise.
3309         * tree-chkp.c : Likewise.
3310         * tree-chrec.c : Likewise.
3311         * tree-complex.c : Likewise.
3312         * tree-data-ref.c : Likewise.
3313         * tree-dfa.c : Likewise.
3314         * tree-diagnostic.c : Likewise.
3315         * tree-dump.c : Likewise.
3316         * tree-eh.c : Likewise.
3317         * tree-eh.h : Likewise.
3318         * tree-emutls.c : Likewise.
3319         * tree-hasher.h : Likewise.
3320         * tree-if-conv.c : Likewise.
3321         * tree-inline.c : Likewise.
3322         * tree-inline.h : Likewise.
3323         * tree-into-ssa.c : Likewise.
3324         * tree-iterator.c : Likewise.
3325         * tree-loop-distribution.c : Likewise.
3326         * tree-nested.c : Likewise.
3327         * tree-nrv.c : Likewise.
3328         * tree-object-size.c : Likewise.
3329         * tree-outof-ssa.c : Likewise.
3330         * tree-parloops.c : Likewise.
3331         * tree-phinodes.c : Likewise.
3332         * tree-predcom.c : Likewise.
3333         * tree-pretty-print.c : Likewise.
3334         * tree-profile.c : Likewise.
3335         * tree-scalar-evolution.c : Likewise.
3336         * tree-sra.c : Likewise.
3337         * tree-ssa-address.c : Likewise.
3338         * tree-ssa-alias.c : Likewise.
3339         * tree-ssa-ccp.c : Likewise.
3340         * tree-ssa-coalesce.c : Likewise.
3341         * tree-ssa-copy.c : Likewise.
3342         * tree-ssa-copyrename.c : Likewise.
3343         * tree-ssa-dce.c : Likewise.
3344         * tree-ssa-dom.c : Likewise.
3345         * tree-ssa-dse.c : Likewise.
3346         * tree-ssa-forwprop.c : Likewise.
3347         * tree-ssa-ifcombine.c : Likewise.
3348         * tree-ssa-live.c : Likewise.
3349         * tree-ssa-loop-ch.c : Likewise.
3350         * tree-ssa-loop-im.c : Likewise.
3351         * tree-ssa-loop-ivcanon.c : Likewise.
3352         * tree-ssa-loop-ivopts.c : Likewise.
3353         * tree-ssa-loop-manip.c : Likewise.
3354         * tree-ssa-loop-niter.c : Likewise.
3355         * tree-ssa-loop-prefetch.c : Likewise.
3356         * tree-ssa-loop-unswitch.c : Likewise.
3357         * tree-ssa-loop.c : Likewise.
3358         * tree-ssa-math-opts.c : Likewise.
3359         * tree-ssa-operands.c : Likewise.
3360         * tree-ssa-phiopt.c : Likewise.
3361         * tree-ssa-phiprop.c : Likewise.
3362         * tree-ssa-pre.c : Likewise.
3363         * tree-ssa-propagate.c : Likewise.
3364         * tree-ssa-reassoc.c : Likewise.
3365         * tree-ssa-sccvn.c : Likewise.
3366         * tree-ssa-scopedtables.c : Likewise.
3367         * tree-ssa-sink.c : Likewise.
3368         * tree-ssa-strlen.c : Likewise.
3369         * tree-ssa-structalias.c : Likewise.
3370         * tree-ssa-tail-merge.c : Likewise.
3371         * tree-ssa-ter.c : Likewise.
3372         * tree-ssa-threadedge.c : Likewise.
3373         * tree-ssa-threadupdate.c : Likewise.
3374         * tree-ssa-uncprop.c : Likewise.
3375         * tree-ssa-uninit.c : Likewise.
3376         * tree-ssa.c : Likewise.
3377         * tree-ssanames.c : Likewise.
3378         * tree-stdarg.c : Likewise.
3379         * tree-streamer-in.c : Likewise.
3380         * tree-streamer-out.c : Likewise.
3381         * tree-streamer.c : Likewise.
3382         * tree-streamer.h : Likewise.
3383         * tree-switch-conversion.c : Likewise.
3384         * tree-tailcall.c : Likewise.
3385         * tree-vect-data-refs.c : Likewise.
3386         * tree-vect-generic.c : Likewise.
3387         * tree-vect-loop-manip.c : Likewise.
3388         * tree-vect-loop.c : Likewise.
3389         * tree-vect-patterns.c : Likewise.
3390         * tree-vect-slp.c : Likewise.
3391         * tree-vect-stmts.c : Likewise.
3392         * tree-vectorizer.c : Likewise.
3393         * tree-vectorizer.h : Likewise.
3394         * tree-vrp.c : Likewise.
3395         * tree.c : Likewise.
3396         * tsan.c : Likewise.
3397         * ubsan.c : Likewise.
3398         * valtrack.c : Likewise.
3399         * valtrack.h : Likewise.
3400         * value-prof.c : Likewise.
3401         * var-tracking.c : Likewise.
3402         * varasm.c : Likewise.
3403         * varpool.c : Likewise.
3404         * vec.c: Likewise.
3405         * vmsdbgout.c : Likewise.
3406         * vtable-verify.c : Likewise.
3407         * vtable-verify.h : Likewise.
3408         * web.c : Likewise.
3409         * wide-int.cc : Likewise.
3410         * xcoffout.c : Likewise.
3411         * config/aarch64/aarch64-builtins.c : Likewise.
3412         * config/aarch64/aarch64.c : Likewise.
3413         * config/aarch64/cortex-a57-fma-steering.c : Likewise.
3414         * config/alpha/alpha.c : Likewise.
3415         * config/arc/arc.c : Likewise.
3416         * config/arm/aarch-common.c : Likewise.
3417         * config/arm/arm-builtins.c : Likewise.
3418         * config/arm/arm-c.c : Likewise.
3419         * config/arm/arm.c : Likewise.
3420         * config/avr/avr-c.c : Likewise.
3421         * config/avr/avr-log.c : Likewise.
3422         * config/avr/avr.c : Likewise.
3423         * config/bfin/bfin.c : Likewise.
3424         * config/c6x/c6x.c : Likewise.
3425         * config/cr16/cr16.c : Likewise.
3426         * config/cris/cris.c : Likewise.
3427         * config/darwin-c.c : Likewise.
3428         * config/darwin.c : Likewise.
3429         * config/default-c.c : Likewise.
3430         * config/epiphany/epiphany.c : Likewise.
3431         * config/epiphany/mode-switch-use.c : Likewise.
3432         * config/epiphany/resolve-sw-modes.c : Likewise.
3433         * config/fr30/fr30.c : Likewise.
3434         * config/frv/frv.c : Likewise.
3435         * config/ft32/ft32.c : Likewise.
3436         * config/glibc-c.c : Likewise.
3437         * config/h8300/h8300.c : Likewise.
3438         * config/i386/i386-c.c : Likewise.
3439         * config/i386/i386.c : Likewise.
3440         * config/i386/msformat-c.c : Likewise.
3441         * config/i386/winnt-cxx.c : Likewise.
3442         * config/i386/winnt-stubs.c : Likewise.
3443         * config/i386/winnt.c : Likewise.
3444         * config/ia64/ia64-c.c : Likewise.
3445         * config/ia64/ia64.c : Likewise.
3446         * config/iq2000/iq2000.c : Likewise.
3447         * config/lm32/lm32.c : Likewise.
3448         * config/m32c/m32c-pragma.c : Likewise.
3449         * config/m32c/m32c.c : Likewise.
3450         * config/m32r/m32r.c : Likewise.
3451         * config/m68k/m68k.c : Likewise.
3452         * config/mcore/mcore.c : Likewise.
3453         * config/mep/mep-pragma.c : Likewise.
3454         * config/mep/mep.c : Likewise.
3455         * config/microblaze/microblaze-c.c : Likewise.
3456         * config/microblaze/microblaze.c : Likewise.
3457         * config/mips/mips.c : Likewise.
3458         * config/mmix/mmix.c : Likewise.
3459         * config/mn10300/mn10300.c : Likewise.
3460         * config/moxie/moxie.c : Likewise.
3461         * config/msp430/msp430-c.c : Likewise.
3462         * config/msp430/msp430.c : Likewise.
3463         * config/nds32/nds32-cost.c : Likewise.
3464         * config/nds32/nds32-fp-as-gp.c : Likewise.
3465         * config/nds32/nds32-intrinsic.c : Likewise.
3466         * config/nds32/nds32-isr.c : Likewise.
3467         * config/nds32/nds32-md-auxiliary.c : Likewise.
3468         * config/nds32/nds32-memory-manipulation.c : Likewise.
3469         * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
3470         * config/nds32/nds32-predicates.c : Likewise.
3471         * config/nds32/nds32.c : Likewise.
3472         * config/nios2/nios2.c : Likewise.
3473         * config/nvptx/nvptx.c : Likewise.
3474         * config/pa/pa.c : Likewise.
3475         * config/pdp11/pdp11.c : Likewise.
3476         * config/rl78/rl78-c.c : Likewise.
3477         * config/rl78/rl78.c : Likewise.
3478         * config/rs6000/rs6000-c.c : Likewise.
3479         * config/rs6000/rs6000.c : Likewise.
3480         * config/rx/rx.c : Likewise.
3481         * config/s390/s390-c.c : Likewise.
3482         * config/s390/s390.c : Likewise.
3483         * config/sh/sh-c.c : Likewise.
3484         * config/sh/sh-mem.cc : Likewise.
3485         * config/sh/sh.c : Likewise.
3486         * config/sh/sh_optimize_sett_clrt.cc : Likewise.
3487         * config/sh/sh_treg_combine.cc : Likewise.
3488         * config/sol2-c.c : Likewise.
3489         * config/sol2-cxx.c : Likewise.
3490         * config/sol2-stubs.c : Likewise.
3491         * config/sol2.c : Likewise.
3492         * config/sparc/sparc-c.c : Likewise.
3493         * config/sparc/sparc.c : Likewise.
3494         * config/spu/spu-c.c : Likewise.
3495         * config/spu/spu.c : Likewise.
3496         * config/stormy16/stormy16.c : Likewise.
3497         * config/tilegx/mul-tables.c : Likewise.
3498         * config/tilegx/tilegx-c.c : Likewise.
3499         * config/tilegx/tilegx.c : Likewise.
3500         * config/tilepro/mul-tables.c : Likewise.
3501         * config/tilepro/tilepro-c.c : Likewise.
3502         * config/tilepro/tilepro.c : Likewise.
3503         * config/v850/v850-c.c : Likewise.
3504         * config/v850/v850.c : Likewise.
3505         * config/vax/vax.c : Likewise.
3506         * config/visium/visium.c : Likewise.
3507         * config/vms/vms-c.c : Likewise.
3508         * config/vms/vms.c : Likewise.
3509         * config/vxworks.c : Likewise.
3510         * config/winnt-c.c : Likewise.
3511         * config/xtensa/xtensa.c : Likewise.
3513 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
3515         PR lto/65378
3516         * ipa-utils.h (warn_types_mismatch): Update prototype.
3517         * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
3518         parameters.
3519         (type_mismatch_p): New function.
3520         (warn_types_mismatch): Reorg to work better on non-C++ types.
3521         (odr_types_equivalent_p): Add loc1/loc2 parameters.
3522         (add_type_duplicate): Update.
3524 2015-06-08  Tom de Vries  <tom@codesourcery.com>
3526         PR rtl-optimization/66444
3527         * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
3528         call_used_regs.
3530 2015-06-08  Richard Biener  <rguenther@suse.de>
3532         PR tree-optimization/66422
3533         * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
3534         block after inserted gcc_unreachable.
3536 2015-06-08  Nick Clifton  <nickc@redhat.com>
3538         * config/rx/rx.c (rx_function_value): Do not promote vector types.
3539         (rx_promote_function_mode): Likewise.
3540         * config/rx/rx.h (LIBCALL_VALUE): Likewise.
3542 2015-06-08  Jakub Jelinek  <jakub@redhat.com>
3544         * genattrtab.c (insn_alternatives): Change type from int *
3545         to uint64_t *.
3546         (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
3547         (get_attr_value): Change type of num_alt to uint64_t.
3548         (compute_alternative_mask): Change return type from
3549         int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
3550         (make_alternative_compare, mk_attr_alt): Change argument type
3551         from int to uint64_t.
3552         (simplify_test_exp): Change type of i from int to uint64_t.
3553         Shift ((uint64_t) 1) instead of 1 up.
3554         (main): Adjust oballocvec first argument from int to uint64_t.
3555         Shift ((uint64_t) 1) instead of 1 up.
3557 2015-06-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
3559         PR other/65366
3560         * gdbhooks.py: Import sys.
3561         (intptr): New function.  Replace int(...) by intptr(...).
3563 2015-06-08  Richard Biener  <rguenther@suse.de>
3565         * tree-vect-stmts.c (vectorizable_load): Compute the pointer
3566         adjustment for gaps at the end of a SLP load group properly.
3567         * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
3568         all permutations we can generate.
3569         (vect_transform_slp_perm_load): Use the correct group-size.
3571 2015-06-08  Marc Glisse  <marc.glisse@inria.fr>
3573         * genmatch.c (expr::gen_transform): For conditions, guess the type
3574         from the second operand.
3576 2015-06-08  Tom de Vries  <tom@codesourcery.com>
3578         PR tree-optimization/66442
3579         * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
3580         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
3581         if the loop latch is not a singleton.  Use
3582         gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
3584 2015-06-08  Marek Polacek  <polacek@redhat.com>
3586         PR sanitizer/66452
3587         * toplev.c (check_global_declaration): Don't warn about artificial
3588         decls.
3590 2015-06-08  Tom de Vries  <tom@codesourcery.com>
3592         PR tree-optimization/66436
3593         * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
3594         dump file.
3595         * gimplify.c: Add tree-dump.h include.
3596         (gimplify_function_tree): Dump function to gimple dump file.
3597         * stor-layout.c (finalize_size_functions): Don't dump function to gimple
3598         dump file.
3600 2015-06-08  Tom de Vries  <tom@codesourcery.com>
3602         PR tree-optimization/66435
3603         * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
3604         function.
3606 2015-06-06  Jan Hubicka  <hubicka@ucw.cz>
3608         * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
3609         of ptr_type_node to not be ptr_to_node.
3610         * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
3611         TREE_TYPE of pointers.
3612         * gimple-expr.c (useless_type_conversion): Reorder the check for
3613         function pointers and TYPE_CANONICAL.
3615 2015-06-06  John David Anglin  <danglin@gcc.gnu.org>
3617         PR bootstrap/66319
3618         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
3619         defines.  Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
3620         Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
3621         later.
3622         * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
3623         Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
3624         _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
3625         _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
3626         and non iso if unix2003.
3628 2015-06-06  Aldy Hernandez  <aldyh@redhat.com>
3630         * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
3632 2015-06-06  Richard Sandiford  <richard.sandiford@arm.com>
3634         * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
3635         rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
3636         cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
3637         except.c, final.c, function.c, gcse-common.c, genemit.c,
3638         haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
3639         lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
3640         sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
3641         shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
3642         more derived ones.
3644 2015-06-06  Mikhail Maltsev  <maltsevm@gmail.com>
3646         * combine.c (combine_split_insns): Remove cast.
3647         * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
3648         * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
3649         * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
3650         * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
3651         * genemit.c (gen_split): Change return type of generated functions to
3652         rtx_insn.
3653         * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
3654         (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
3655         gen_peephole2_* functions.
3656         (print_subroutine, main): Likewise.
3657         * recog.c (peephole2_optimize): Remove cast.
3658         (peep2_next_insn): Promote return type to rtx_insn.
3659         * recog.h (peep2_next_insn): Fix prototype.
3660         * rtl.h (try_split, split_insns): Likewise.
3662 2015-06-06  DJ Delorie  <dj@redhat.com>
3664         * config/msp430/msp430.c (msp430_asm_integer): Support addition
3665         and subtraction too.
3667 2015-06-05  Kaz Kojima  <kkojima@gcc.gnu.org>
3669         PR target/66410
3670         * config/sh/constraints.md (Sid, Ssd): New memory constraints.
3671         * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
3672         instead of Snd.  Disparage Sid/z alternative with '^'.
3674 2015-06-05  Aldy Hernandez  <aldyh@redhat.com>
3676         * dwarf2out.c: Remove deferred_locations*.
3677         (dwarf2_debug_hooks): Add early_finish hook.
3678         Remove global_decl hook.
3679         Add early_global_decl and late_global_decl hook.
3680         New global early_dwarf.
3681         New structure set_early_dwarf.
3682         (output_die): Indicate whether a DIE was generated early
3683         when generating assembly with -dA.
3684         (struct limbo_die_struct): Document created_for field.
3685         Remove file_table_last_lookup.
3686         (remove_AT): Return TRUE if successful.
3687         (remove_child_TAG): Clear die_parent.
3688         (reparent_child): New function abstracted from...
3689         (splice_child_die): ...here.
3690         (new_die): ICE if a DIE ends up in limbo too late.
3691         (check_die): New.
3692         (defer_location): Remove.
3693         (add_subscript_info): Reuse DW_TAG_subrange_type if available.
3694         (fill_variable_array_bounds): New.
3695         (decl_start_label): Call fill_variable_array_bounds.
3696         (gen_formal_parameter_die): Rewrite to reuse previously generated
3697         DIEs.
3698         (gen_subprogram_die): Same.
3699         (gen_variable_die): Same.
3700         (gen_const_die): Same.
3701         (gen_label_die): Same.
3702         (gen_lexical_block_die): Same.
3703         (decl_will_get_specification_p): New.
3704         (local_function_static): New.
3705         (gen_struct_or_union_type_die): Fill in variable-length fields.
3706         (gen_typedef_die): Fill in variable-length typedefs.
3707         (gen_tagged_type_die): Gracefully return on error_mark_node.
3708         Handle re-entrancy.
3709         (gen_type_die_with_usage): Handle variable-length types.
3710         Remove duplicate code for ARRAY_TYPE case.
3711         (process_scope_var): Only process imported modules during early
3712         dwarf.
3713         (dwarf2out_early_global_decl): New.
3714         (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
3715         (dwarf2out_type_decl): Set early_dwarf while calling
3716         dwarf2out_decl.
3717         (dwarf2out_decl): Verify that we did not recreate a previously
3718         generated DIE.
3719         Do not return on DECL_EXTERNALs in VAR_DECLs.
3720         Abstract some code to local_function_static.
3721         (lookup_filename): Remove use of file_table_last_lookup.
3722         Gracefully exit on missing file_name.
3723         (dwarf2out_finish): Verify limbo list.
3724         Remove deferred_locations_list use.
3725         Move deferred_asm_name and limbo flushing to...
3726         (dwarf2out_early_finish): ...here.  New.
3727         (dwarf2out_c_finalize): Remove set of deferred_location_list,
3728         deferred_asm_name, and file_table_last_lookup.
3729         * cgraph.h (referred_to_p): Add default argument.
3730         * cgraphunit.c (referred_to_p): Add and handle include_self
3731         argument.
3732         (analyze_functions): Add first_time argument.
3733         Call check_global_declaration for all symbols.
3734         Call late_global_decl for nodes for moribund nodes.
3735         (finalize_compilation_unit): Add new argument to
3736         analyze_functions.
3737         Call early_global_decl for functions.
3738         Call early_finish debug hook.
3739         * dbxout.c (dbxout_early_global_decl): New.
3740         (dbxout_late_global_decl): New.  Adapted from dbxout_global_decl.
3741         (dbx_debug_hooks): Add new hooks.
3742         (xcoff_debug_hooks): Same.
3743         * debug.c (do_nothing_debug_hooks): Add early_finish field.
3744         Add early and late debug hooks.
3745         Remove global_decl hook.
3746         * debug.h (struct gcc_debug_hooks): Add early_finish,
3747         early_global_decl, and late_global_decl fields.
3748         Remove global_decl field.
3749         Document gcc_debug_hooks.
3750         * gengtype.c (output_typename): Remove.
3751         * godump.c (go_early_global_decl): New.
3752         (go_late_global_decl): New.
3753         (go_global_decl): Remove.
3754         (dump_go_spec_init): Remove global_decl.  Add
3755         {early,late}_global_decl.
3756         * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
3757         (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
3758         * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
3759         (write_global_declarations): Remove.
3760         (global_decl_processing): New.
3761         * langhooks.h (struct lang_hooks_for_decls): Remove
3762         final_write_globals field.
3763         Add post_compilation_parsing_cleanups field.
3764         * passes.c (rest_of_decl_compilation): Call early_global_decl.
3765         * sdbout.c: Add early and late_global_decl hooks.  Remove
3766         sdbout_global_decl hook.
3767         Add early_finish field for sdb_debug_hooks.
3768         (sdbout_global_decl): Remove.
3769         (sdbout_early_global_decl): New.
3770         (sdbout_late_global_decl): New.
3771         * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
3772         * toplev.c (check_global_declaration): Rename from
3773         check_global_declaration_1.
3774         Adapt to use symtab infrastructure.
3775         (check_global_declarations): Remove.
3776         (emit_debug_global_declarations): Remove.
3777         (compile_file): Remove call to final_write_globals langhook.
3778         Run the actual compilation process.
3779         Perform any post compilation parser cleanups.
3780         Generate late debug info.
3781         * toplev.h (check_global_declaration): New.
3782         (check_global_declaration_1): Remove.
3783         (check_global_declarations): Remove.
3784         (write_global_declarations): Remove.
3785         (emit_debug_global_declarations): Remove.
3786         (global_decl_processing): New.
3787         * tree-core.h (struct tree_block): Add DIE field.
3788         * tree.h (BLOCK_DIE): New.
3789         * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
3790         throughout.
3791         (vmsdbgout_early_global_decl): New.
3792         (vmsdbgout_late_global_decl): New.
3793         Add early_finish debug hook field to vmsdbg_debug_hooks.
3794         Remove vmsdbgout_decl to vmsdbgout_function_decl.
3795         Add early and late_global_decl debug hooks.
3797 2015-06-05  Julian Brown  <julian@codesourcery.com>
3798             Sandra Loosemore  <sandra@codesourcery.com>
3800         * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
3801         * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
3802         to print-sysroot-suffix.sh script.
3804 2015-06-05  Tom de Vries  <tom@codesourcery.com>
3806         merge from gomp4 branch:
3807         2015-05-28  Tom de Vries  <tom@codesourcery.com>
3809         PR tree-optimization/65443
3810         * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
3811         (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
3812         (try_transform_to_exit_first_loop_alt): New function.
3813         (transform_to_exit_first_loop): Use
3814         try_transform_to_exit_first_loop_alt.
3816 2015-06-05  James Greenhalgh  <james.greenhalgh@arm.com>
3818         * builtins.c (expand_builtin_atomic_compare_exchange): Call
3819         emit_cmp_and_jump_insns with the mode of target.
3821 2015-06-05  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
3823         * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
3825 2015-06-04  DJ Delorie  <dj@redhat.com>
3827         * config/msp430/msp430.md (movsi_s): New.  Special case for
3828         storing a 20-bit symbol into a 32-bit register.
3829         * config/msp430/msp430.c (msp430_subreg): Add support for it.
3830         * config/msp430/predicates.md (msp430_symbol_operand): New.
3832 2015-06-04  Sriraman Tallam  <tmsriram@google.com>
3834         * c-family/c-common.c (noplt): New attribute.
3835         (handle_noplt_attribute): New handler.
3836         * calls.c (prepare_call_address): Check for noplt
3837         attribute.
3838         * config/i386/i386.c (ix86_expand_call): Check
3839         for noplt attribute.
3840         (ix86_nopic_noplt_attribute_p): New function.
3841         (ix86_output_call_insn): Output indirect call for non-pic
3842         no plt calls.
3843         * doc/extend.texi (noplt): Document new attribute.
3844         * doc/invoke.texi: Document new attribute.
3846 2015-06-04  Andrew MacLeod  <amacleod@redhat.com>
3848         * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
3849         real.h, and fixed-value.h when included in host source files.
3850         * double-int.h: Remove redundant #includes listed above.
3851         * fixed-value.h: Likewise.
3852         * real.h: Likewise.
3853         * wide-int.h: Likewise.
3854         * inchash.h: Likewise.
3855         * rtl.h: Add some include files When included from a generator file.
3856         * target.h: Remove wide-int.h and insn-modes.h from the include list.
3857         * internal-fn.h: Don't include coretypes.h.
3858         * alias.c: Adjust includes for restructured coretypes.h.
3859         * asan.c: Likewise.
3860         * attribs.c: Likewise.
3861         * auto-inc-dec.c: Likewise.
3862         * auto-profile.c: Likewise.
3863         * bb-reorder.c: Likewise.
3864         * bt-load.c: Likewise.
3865         * builtins.c: Likewise.
3866         * caller-save.c: Likewise.
3867         * calls.c: Likewise.
3868         * ccmp.c: Likewise.
3869         * cfg.c: Likewise.
3870         * cfganal.c: Likewise.
3871         * cfgbuild.c: Likewise.
3872         * cfgcleanup.c: Likewise.
3873         * cfgexpand.c: Likewise.
3874         * cfghooks.c: Likewise.
3875         * cfgloop.c: Likewise.
3876         * cfgloop.h: Likewise.
3877         * cfgloopanal.c: Likewise.
3878         * cfgloopmanip.c: Likewise.
3879         * cfgrtl.c: Likewise.
3880         * cgraph.c: Likewise.
3881         * cgraphbuild.c: Likewise.
3882         * cgraphclones.c: Likewise.
3883         * cgraphunit.c: Likewise.
3884         * cilk-common.c: Likewise.
3885         * combine-stack-adj.c: Likewise.
3886         * combine.c: Likewise.
3887         * compare-elim.c: Likewise.
3888         * convert.c: Likewise.
3889         * coverage.c: Likewise.
3890         * cppbuiltin.c: Likewise.
3891         * cprop.c: Likewise.
3892         * cse.c: Likewise.
3893         * cselib.c: Likewise.
3894         * data-streamer-in.c: Likewise.
3895         * data-streamer-out.c: Likewise.
3896         * data-streamer.c: Likewise.
3897         * dbxout.c: Likewise.
3898         * dce.c: Likewise.
3899         * ddg.c: Likewise.
3900         * debug.c: Likewise.
3901         * df-core.c: Likewise.
3902         * df-problems.c: Likewise.
3903         * df-scan.c: Likewise.
3904         * df.h: Likewise.
3905         * dfp.c: Likewise.
3906         * dojump.c: Likewise.
3907         * dominance.c: Likewise.
3908         * domwalk.c: Likewise.
3909         * double-int.c: Likewise.
3910         * dse.c: Likewise.
3911         * dumpfile.c: Likewise.
3912         * dwarf2asm.c: Likewise.
3913         * dwarf2cfi.c: Likewise.
3914         * dwarf2out.c: Likewise.
3915         * dwarf2out.h: Likewise.
3916         * emit-rtl.c: Likewise.
3917         * et-forest.c: Likewise.
3918         * except.c: Likewise.
3919         * explow.c: Likewise.
3920         * expmed.c: Likewise.
3921         * expr.c: Likewise.
3922         * final.c: Likewise.
3923         * fixed-value.c: Likewise.
3924         * fold-const.c: Likewise.
3925         * function.c: Likewise.
3926         * fwprop.c: Likewise.
3927         * gcc-plugin.h: Likewise.
3928         * gcse.c: Likewise.
3929         * generic-match-head.c: Likewise.
3930         * ggc-page.c: Likewise.
3931         * gimple-builder.c: Likewise.
3932         * gimple-expr.c: Likewise.
3933         * gimple-fold.c: Likewise.
3934         * gimple-iterator.c: Likewise.
3935         * gimple-low.c: Likewise.
3936         * gimple-match-head.c: Likewise.
3937         * gimple-pretty-print.c: Likewise.
3938         * gimple-ssa-isolate-paths.c: Likewise.
3939         * gimple-ssa-strength-reduction.c: Likewise.
3940         * gimple-streamer-in.c: Likewise.
3941         * gimple-streamer-out.c: Likewise.
3942         * gimple-streamer.h: Likewise.
3943         * gimple-walk.c: Likewise.
3944         * gimple.c: Likewise.
3945         * gimplify-me.c: Likewise.
3946         * gimplify.c: Likewise.
3947         * godump.c: Likewise.
3948         * graph.c: Likewise.
3949         * graphite-blocking.c: Likewise.
3950         * graphite-dependences.c: Likewise.
3951         * graphite-interchange.c: Likewise.
3952         * graphite-isl-ast-to-gimple.c: Likewise.
3953         * graphite-optimize-isl.c: Likewise.
3954         * graphite-poly.c: Likewise.
3955         * graphite-scop-detection.c: Likewise.
3956         * graphite-sese-to-poly.c: Likewise.
3957         * graphite.c: Likewise.
3958         * haifa-sched.c: Likewise.
3959         * hooks.h: Likewise.
3960         * hw-doloop.c: Likewise.
3961         * ifcvt.c: Likewise.
3962         * incpath.c: Likewise.
3963         * init-regs.c: Likewise.
3964         * internal-fn.c: Likewise.
3965         * ipa-chkp.c: Likewise.
3966         * ipa-comdats.c: Likewise.
3967         * ipa-cp.c: Likewise.
3968         * ipa-devirt.c: Likewise.
3969         * ipa-icf-gimple.c: Likewise.
3970         * ipa-icf.c: Likewise.
3971         * ipa-inline-analysis.c: Likewise.
3972         * ipa-inline-transform.c: Likewise.
3973         * ipa-inline.c: Likewise.
3974         * ipa-polymorphic-call.c: Likewise.
3975         * ipa-profile.c: Likewise.
3976         * ipa-prop.c: Likewise.
3977         * ipa-pure-const.c: Likewise.
3978         * ipa-ref.c: Likewise.
3979         * ipa-reference.c: Likewise.
3980         * ipa-split.c: Likewise.
3981         * ipa-utils.c: Likewise.
3982         * ipa-visibility.c: Likewise.
3983         * ipa.c: Likewise.
3984         * ira-build.c: Likewise.
3985         * ira-color.c: Likewise.
3986         * ira-conflicts.c: Likewise.
3987         * ira-costs.c: Likewise.
3988         * ira-emit.c: Likewise.
3989         * ira-lives.c: Likewise.
3990         * ira.c: Likewise.
3991         * jump.c: Likewise.
3992         * langhooks.c: Likewise.
3993         * lcm.c: Likewise.
3994         * loop-doloop.c: Likewise.
3995         * loop-init.c: Likewise.
3996         * loop-invariant.c: Likewise.
3997         * loop-iv.c: Likewise.
3998         * loop-unroll.c: Likewise.
3999         * lower-subreg.c: Likewise.
4000         * lra-assigns.c: Likewise.
4001         * lra-coalesce.c: Likewise.
4002         * lra-constraints.c: Likewise.
4003         * lra-eliminations.c: Likewise.
4004         * lra-lives.c: Likewise.
4005         * lra-remat.c: Likewise.
4006         * lra-spills.c: Likewise.
4007         * lra.c: Likewise.
4008         * lto-cgraph.c: Likewise.
4009         * lto-compress.c: Likewise.
4010         * lto-opts.c: Likewise.
4011         * lto-section-in.c: Likewise.
4012         * lto-section-out.c: Likewise.
4013         * lto-streamer-in.c: Likewise.
4014         * lto-streamer-out.c: Likewise.
4015         * lto-streamer.c: Likewise.
4016         * mcf.c: Likewise.
4017         * mode-switching.c: Likewise.
4018         * modulo-sched.c: Likewise.
4019         * omega.c: Likewise.
4020         * omp-low.c: Likewise.
4021         * optabs.c: Likewise.
4022         * opts-global.c: Likewise.
4023         * passes.c: Likewise.
4024         * plugin.c: Likewise.
4025         * postreload-gcse.c: Likewise.
4026         * postreload.c: Likewise.
4027         * predict.c: Likewise.
4028         * print-rtl.c: Likewise.
4029         * print-tree.c: Likewise.
4030         * profile.c: Likewise.
4031         * real.c: Likewise.
4032         * realmpfr.c: Likewise.
4033         * realmpfr.h: Likewise.
4034         * recog.c: Likewise.
4035         * ree.c: Likewise.
4036         * reg-stack.c: Likewise.
4037         * regcprop.c: Likewise.
4038         * reginfo.c: Likewise.
4039         * regrename.c: Likewise.
4040         * regs.h: Likewise.
4041         * regstat.c: Likewise.
4042         * reload.c: Likewise.
4043         * reload1.c: Likewise.
4044         * reorg.c: Likewise.
4045         * resource.c: Likewise.
4046         * rtl-chkp.c: Likewise.
4047         * rtlanal.c: Likewise.
4048         * rtlhooks.c: Likewise.
4049         * sanopt.c: Likewise.
4050         * sched-deps.c: Likewise.
4051         * sched-ebb.c: Likewise.
4052         * sched-rgn.c: Likewise.
4053         * sched-vis.c: Likewise.
4054         * sdbout.c: Likewise.
4055         * sel-sched-dump.c: Likewise.
4056         * sel-sched-ir.c: Likewise.
4057         * sel-sched.c: Likewise.
4058         * sese.c: Likewise.
4059         * shrink-wrap.c: Likewise.
4060         * shrink-wrap.h: Likewise.
4061         * simplify-rtx.c: Likewise.
4062         * stack-ptr-mod.c: Likewise.
4063         * statistics.c: Likewise.
4064         * stmt.c: Likewise.
4065         * stor-layout.c: Likewise.
4066         * store-motion.c: Likewise.
4067         * stringpool.c: Likewise.
4068         * symtab.c: Likewise.
4069         * target-globals.c: Likewise.
4070         * targhooks.c: Likewise.
4071         * toplev.c: Likewise.
4072         * tracer.c: Likewise.
4073         * trans-mem.c: Likewise.
4074         * tree-affine.c: Likewise.
4075         * tree-affine.h: Likewise.
4076         * tree-browser.c: Likewise.
4077         * tree-call-cdce.c: Likewise.
4078         * tree-cfg.c: Likewise.
4079         * tree-cfgcleanup.c: Likewise.
4080         * tree-chkp-opt.c: Likewise.
4081         * tree-chkp.c: Likewise.
4082         * tree-chrec.c: Likewise.
4083         * tree-complex.c: Likewise.
4084         * tree-data-ref.c: Likewise.
4085         * tree-dfa.c: Likewise.
4086         * tree-diagnostic.c: Likewise.
4087         * tree-dump.c: Likewise.
4088         * tree-eh.c: Likewise.
4089         * tree-emutls.c: Likewise.
4090         * tree-if-conv.c: Likewise.
4091         * tree-inline.c: Likewise.
4092         * tree-into-ssa.c: Likewise.
4093         * tree-iterator.c: Likewise.
4094         * tree-loop-distribution.c: Likewise.
4095         * tree-nested.c: Likewise.
4096         * tree-nrv.c: Likewise.
4097         * tree-object-size.c: Likewise.
4098         * tree-outof-ssa.c: Likewise.
4099         * tree-parloops.c: Likewise.
4100         * tree-phinodes.c: Likewise.
4101         * tree-predcom.c: Likewise.
4102         * tree-pretty-print.c: Likewise.
4103         * tree-pretty-print.h: Likewise.
4104         * tree-profile.c: Likewise.
4105         * tree-scalar-evolution.c: Likewise.
4106         * tree-sra.c: Likewise.
4107         * tree-ssa-address.c: Likewise.
4108         * tree-ssa-alias.c: Likewise.
4109         * tree-ssa-ccp.c: Likewise.
4110         * tree-ssa-coalesce.c: Likewise.
4111         * tree-ssa-copy.c: Likewise.
4112         * tree-ssa-copyrename.c: Likewise.
4113         * tree-ssa-dce.c: Likewise.
4114         * tree-ssa-dom.c: Likewise.
4115         * tree-ssa-dse.c: Likewise.
4116         * tree-ssa-forwprop.c: Likewise.
4117         * tree-ssa-ifcombine.c: Likewise.
4118         * tree-ssa-live.c: Likewise.
4119         * tree-ssa-loop-ch.c: Likewise.
4120         * tree-ssa-loop-im.c: Likewise.
4121         * tree-ssa-loop-ivcanon.c: Likewise.
4122         * tree-ssa-loop-ivopts.c: Likewise.
4123         * tree-ssa-loop-manip.c: Likewise.
4124         * tree-ssa-loop-niter.c: Likewise.
4125         * tree-ssa-loop-prefetch.c: Likewise.
4126         * tree-ssa-loop-unswitch.c: Likewise.
4127         * tree-ssa-loop.c: Likewise.
4128         * tree-ssa-loop.h: Likewise.
4129         * tree-ssa-math-opts.c: Likewise.
4130         * tree-ssa-operands.c: Likewise.
4131         * tree-ssa-phiopt.c: Likewise.
4132         * tree-ssa-phiprop.c: Likewise.
4133         * tree-ssa-pre.c: Likewise.
4134         * tree-ssa-propagate.c: Likewise.
4135         * tree-ssa-reassoc.c: Likewise.
4136         * tree-ssa-sccvn.c: Likewise.
4137         * tree-ssa-scopedtables.c: Likewise.
4138         * tree-ssa-sink.c: Likewise.
4139         * tree-ssa-strlen.c: Likewise.
4140         * tree-ssa-structalias.c: Likewise.
4141         * tree-ssa-tail-merge.c: Likewise.
4142         * tree-ssa-ter.c: Likewise.
4143         * tree-ssa-threadedge.c: Likewise.
4144         * tree-ssa-threadupdate.c: Likewise.
4145         * tree-ssa-uncprop.c: Likewise.
4146         * tree-ssa-uninit.c: Likewise.
4147         * tree-ssa.c: Likewise.
4148         * tree-ssanames.c: Likewise.
4149         * tree-stdarg.c: Likewise.
4150         * tree-streamer-in.c: Likewise.
4151         * tree-streamer-out.c: Likewise.
4152         * tree-streamer.c: Likewise.
4153         * tree-switch-conversion.c: Likewise.
4154         * tree-tailcall.c: Likewise.
4155         * tree-vect-data-refs.c: Likewise.
4156         * tree-vect-generic.c: Likewise.
4157         * tree-vect-loop-manip.c: Likewise.
4158         * tree-vect-loop.c: Likewise.
4159         * tree-vect-patterns.c: Likewise.
4160         * tree-vect-slp.c: Likewise.
4161         * tree-vect-stmts.c: Likewise.
4162         * tree-vectorizer.c: Likewise.
4163         * tree-vrp.c: Likewise.
4164         * tree.c: Likewise.
4165         * tsan.c: Likewise.
4166         * ubsan.c: Likewise.
4167         * valtrack.c: Likewise.
4168         * value-prof.c: Likewise.
4169         * var-tracking.c: Likewise.
4170         * varasm.c: Likewise.
4171         * varpool.c: Likewise.
4172         * vmsdbgout.c: Likewise.
4173         * vtable-verify.c: Likewise.
4174         * web.c: Likewise.
4175         * wide-int-print.cc: Likewise.
4176         * wide-int-print.h: Likewise.
4177         * wide-int.cc: Likewise.
4178         * xcoffout.c: Likewise.
4179         * config/aarch64/aarch64-builtins.c: Likewise.
4180         * config/aarch64/aarch64.c: Likewise.
4181         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
4182         * config/alpha/alpha.c: Likewise.
4183         * config/arc/arc.c: Likewise.
4184         * config/arm/aarch-common.c: Likewise.
4185         * config/arm/arm-builtins.c: Likewise.
4186         * config/arm/arm-c.c: Likewise.
4187         * config/arm/arm.c: Likewise.
4188         * config/avr/avr-c.c: Likewise.
4189         * config/avr/avr-log.c: Likewise.
4190         * config/avr/avr.c: Likewise.
4191         * config/bfin/bfin.c: Likewise.
4192         * config/c6x/c6x.c: Likewise.
4193         * config/cr16/cr16.c: Likewise.
4194         * config/cris/cris.c: Likewise.
4195         * config/darwin-c.c: Likewise.
4196         * config/darwin.c: Likewise.
4197         * config/default-c.c: Likewise.
4198         * config/epiphany/epiphany.c: Likewise.
4199         * config/epiphany/mode-switch-use.c: Likewise.
4200         * config/epiphany/resolve-sw-modes.c: Likewise.
4201         * config/fr30/fr30.c: Likewise.
4202         * config/frv/frv.c: Likewise.
4203         * config/ft32/ft32.c: Likewise.
4204         * config/glibc-c.c: Likewise.
4205         * config/h8300/h8300.c: Likewise.
4206         * config/i386/i386-c.c: Likewise.
4207         * config/i386/i386.c: Likewise.
4208         * config/i386/msformat-c.c: Likewise.
4209         * config/i386/winnt-cxx.c: Likewise.
4210         * config/i386/winnt-stubs.c: Likewise.
4211         * config/i386/winnt.c: Likewise.
4212         * config/ia64/ia64-c.c: Likewise.
4213         * config/ia64/ia64.c: Likewise.
4214         * config/iq2000/iq2000.c: Likewise.
4215         * config/lm32/lm32.c: Likewise.
4216         * config/m32c/m32c-pragma.c: Likewise.
4217         * config/m32c/m32c.c: Likewise.
4218         * config/m32r/m32r.c: Likewise.
4219         * config/m68k/m68k.c: Likewise.
4220         * config/mcore/mcore.c: Likewise.
4221         * config/mep/mep-pragma.c: Likewise.
4222         * config/mep/mep.c: Likewise.
4223         * config/microblaze/microblaze-c.c: Likewise.
4224         * config/microblaze/microblaze.c: Likewise.
4225         * config/mips/mips.c: Likewise.
4226         * config/mmix/mmix.c: Likewise.
4227         * config/mn10300/mn10300.c: Likewise.
4228         * config/moxie/moxie.c: Likewise.
4229         * config/msp430/msp430-c.c: Likewise.
4230         * config/msp430/msp430.c: Likewise.
4231         * config/nds32/nds32-cost.c: Likewise.
4232         * config/nds32/nds32-fp-as-gp.c: Likewise.
4233         * config/nds32/nds32-intrinsic.c: Likewise.
4234         * config/nds32/nds32-isr.c: Likewise.
4235         * config/nds32/nds32-md-auxiliary.c: Likewise.
4236         * config/nds32/nds32-memory-manipulation.c: Likewise.
4237         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
4238         * config/nds32/nds32-predicates.c: Likewise.
4239         * config/nds32/nds32.c: Likewise.
4240         * config/nios2/nios2.c: Likewise.
4241         * config/nvptx/nvptx.c: Likewise.
4242         * config/pa/pa.c: Likewise.
4243         * config/pdp11/pdp11.c: Likewise.
4244         * config/rl78/rl78-c.c: Likewise.
4245         * config/rl78/rl78.c: Likewise.
4246         * config/rs6000/rs6000-c.c: Likewise.
4247         * config/rs6000/rs6000.c: Likewise.
4248         * config/rx/rx.c: Likewise.
4249         * config/s390/s390-c.c: Likewise.
4250         * config/s390/s390.c: Likewise.
4251         * config/sh/sh-c.c: Likewise.
4252         * config/sh/sh-mem.cc: Likewise.
4253         * config/sh/sh.c: Likewise.
4254         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
4255         * config/sh/sh_treg_combine.cc: Likewise.
4256         * config/sol2-c.c: Likewise.
4257         * config/sol2-cxx.c: Likewise.
4258         * config/sol2-stubs.c: Likewise.
4259         * config/sol2.c: Likewise.
4260         * config/sparc/sparc-c.c: Likewise.
4261         * config/sparc/sparc.c: Likewise.
4262         * config/spu/spu-c.c: Likewise.
4263         * config/spu/spu.c: Likewise.
4264         * config/stormy16/stormy16.c: Likewise.
4265         * config/tilegx/mul-tables.c: Likewise.
4266         * config/tilegx/tilegx-c.c: Likewise.
4267         * config/tilegx/tilegx.c: Likewise.
4268         * config/tilepro/mul-tables.c: Likewise.
4269         * config/tilepro/tilepro-c.c: Likewise.
4270         * config/tilepro/tilepro.c: Likewise.
4271         * config/v850/v850-c.c: Likewise.
4272         * config/v850/v850.c: Likewise.
4273         * config/vax/vax.c: Likewise.
4274         * config/visium/visium.c: Likewise.
4275         * config/vms/vms-c.c: Likewise.
4276         * config/vms/vms.c: Likewise.
4277         * config/vxworks.c: Likewise.
4278         * config/winnt-c.c: Likewise.
4279         * config/xtensa/xtensa.c: Likewise.
4280         * common/config/bfin/bfin-common.c: Likewise.
4282 2015-06-04  Jan Hubicka  <hubicka@ucw.cz>
4284         * tree.h (tree_code_for_canonical_type_merging): New function.
4285         * tree.c (gimple_canonical_types_compatible_p): Use
4286         tree_code_for_canonical_type_merging..
4288 2015-06-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4290         PR c++/66192
4291         PR target/66200
4292         * doc/tm.texi: Regenerate.
4293         * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
4294         * target.def (TARGET_RELAXED_ORDERING): Likewise.
4295         * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
4296         * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
4297         * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
4298         * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
4299         * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
4300         * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
4301         * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
4303 2015-06-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4305         * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
4306         register fma steering pass.
4307         * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
4308         AARCH64_TUNE_FMA_STEERING.
4310 2015-06-03  Jan Hubicka  <hubicka@ucw.cz>
4312         * tree.c (verify_type_variant): Verify that type and variant is
4313         compatible.
4314         (gimple_canonical_types_compatible_p): Look for main variants.
4316 2015-06-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
4318         * config.gcc (powerpc*-*-*): Add support for a new configure
4319         option --with-advance-toolchain=<xxx> which overrides using the
4320         default header files, libraries and dynamic linker.
4322         * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
4323         specs to support the configure --with-advance-toolchain=<xxx>
4324         option.
4325         (INCLUDE_EXTRA_SPEC): Likewise.
4326         (LINK_OS_EXTRA_SPEC32): Likewise.
4327         (LINK_OK_EXTRA_SPEC64): Likewise.
4328         (LINK_OS_NEW_DTAGS_SPEC): Likewise.
4329         (DYNAMIC_LINKER_PREFIX): Likewise.
4330         (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
4331         toolchain support.
4332         (GLIBC_DYNAMIC_LINKER32): Likewise.
4333         (GLIBC_DYNAMIC_LINKER64): Likewise.
4334         (LINK_OS_LINUX_SPEC32): Likewise.
4335         (LINK_OS_LINUX_SPEC64): Likewise.
4337         * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
4338         configuration option.
4340 2015-06-03  Uros Bizjak  <ubizjak@gmail.com>
4342         PR target/66275
4343         * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
4344         to determine current function ABI.
4345         (ix86_function_value_regno_p): Ditto.
4347 2015-06-03  Martin Liska  <mliska@suse.cz>
4349         * alloc-pool.h (struct pool_usage): Correct GNU coding style.
4350         * bitmap.h (struct bitmap_usage): Likewise.
4351         * ggc-common.c (struct ggc_usage): Likewise.
4352         * mem-stats.h (struct mem_location): Likewise.
4353         (struct mem_usage): Likewise.
4354         * vec.c (struct vec_usage): Likewise.
4356 2015-06-03  Benigno B. Junior  <bbj@gentoo.org>
4358         * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
4359         -Bsymbolic.
4361 2015-06-02  Andres Tiraboschi  <andres.tiraboschi@tallertechnologies.com>
4363         * doc/plugins.texi (enum plugin_event): New event.
4364         * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
4365         and PLUGIN_FINISH_FUNCTION.
4366         * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
4367         (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
4369 2015-06-03  Richard Biener  <rguenther@suse.de>
4371         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
4372         compute GROUP_GAP for the first element.
4373         * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
4374         on in-group gaps.
4376 2015-06-03  Nick Clifton  <nickc@redhat.com>
4378         * config/rl78/rl78-real.md: Add peepholes to avoid a register
4379         copy when calling a function.
4380         * config/rl78/rl78.c (need_to_save): Do not push the frame
4381         pointer in an interrupt handler prologue if it is never used.
4383 2015-06-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4385         * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
4387 2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
4389         * ipa-chkp.c (chkp_maybe_create_clone): Create alias
4390         reference when cloning alias node.
4392 2015-06-03  Martin Liska  <mliska@suse.cz>
4394         * alloc-pool.h (struct pool_usage): Correct space padding.
4395         * ggc-page.c (ggc_print_statistics): Align columns in a report.
4396         * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
4397         * tree.c (dump_tree_statistics): Align columns in a report.
4399 2015-06-03  Martin Liska  <mliska@suse.cz>
4401         * alloc-pool.c (allocate_pool_descriptor): Remove.
4402         (struct pool_output_info): Likewise.
4403         (print_alloc_pool_statistics): Likewise.
4404         (dump_alloc_pool_statistics): Likewise.
4405         * alloc-pool.h (struct pool_usage): New struct.
4406         (pool_allocator::initialize): Change usage of memory statistics
4407         to a new interface.
4408         (pool_allocator::release): Likewise.
4409         (pool_allocator::allocate): Likewise.
4410         (pool_allocator::remove): Likewise.
4411         * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
4412         for a pool allocator.
4413         * mem-stats.h (struct mem_location): Add new ctor.
4414         (struct mem_usage): Add counter for number of
4415         instances.
4416         (mem_alloc_description::register_descriptor): New overload of
4417         * mem-stats.h (mem_location::to_string): New function.
4418         * bitmap.h (struct bitmap_usage): Use this new function.
4419         * ggc-common.c (struct ggc_usage): Likewise.
4420         the function.
4422 2015-06-03  Richard Sandiford  <richard.sandiford@arm.com>
4424         * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
4425         of GCC_INSN_FLAGS_H block.
4427 2015-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
4429         * explow.c (plus_constant): Update check after force_const_mem call
4430         to see if the value returned is not a NULL_RTX.
4432 2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
4434         * ipa.c (symbol_table::remove_unreachable_nodes): Don't
4435         remove instumentation thunks calling reachable functions.
4436         * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
4437         * lto/lto-partition.c (privatize_symbol_name_1): New.
4438         (privatize_symbol_name): Privatize both decl and orig_decl
4439         names for instrumented functions.
4440         * cgraph.c (cgraph_node::verify_node): Add transparent
4441         alias chain check for instrumented node.
4443 2015-06-03  Marek Polacek  <polacek@redhat.com>
4445         PR c/64223
4446         PR c/29358
4447         * tree.c (attribute_value_equal): Handle attribute format.
4448         (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
4450 2015-06-03  Richard Biener  <rguenther@suse.de>
4452         PR tree-optimization/63916
4453         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
4454         Forward-propagate non-invariant addresses by splicing their
4455         reference ops if the result isn't going to be used by PRE.
4456         (vn_reference_lookup_3): Remove pointless assert.
4458 2015-06-03  Richard Biener  <rguenther@suse.de>
4460         PR tree-optimization/66375
4461         * tree-scalar-evolution.c (follow_ssa_edge_binary): First
4462         add to the evolution before following SSA edges.
4464 2015-06-03  Bin Cheng  <bin.cheng@arm.com>
4466         * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
4467         (dump_use, dump_cand, find_induction_variables): Pass new argument
4468         to dump_iv.
4469         (record_use): Preserve the ssa name information in IV.
4471 2015-06-03  Richard Sandiford  <richard.sandiford@arm.com>
4473         * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
4474         NO_MODE_TEST.
4475         (add_mode_tests): Don't add mode tests if the predicate only
4476         accepts scalar constant integers.  Otherwise, allow the mode
4477         of "op" to be VOIDmode if the predicate does accept such integers.
4479 2015-06-02  Jim Wilson  <jim.wilson@linaro.org>
4481         PR target/66258
4482         * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
4483         !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
4484         (aarch64_secondary_reload): Likewise
4485         (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
4486         to !TARGET_FLOAT.
4487         (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
4488         Likewise.
4490 2015-06-03  Kugan Vivekanandarajah  <kuganv@linaro.org>
4491             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
4493         PR target/65768
4494         * cprop.c (try_replace_reg): Check cost of constants before propagating.
4496 2015-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
4498         * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
4499         provide access to the IBM extended double floating point mode if
4500         long double is IEEE 128-bit floating point.
4501         (KFmode): Define KFmode to provide access to IEEE 128-bit floating
4502         point if long double is the IBM extended double type.
4504         * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
4505         enable adding IEEE 128-bit floating point support.
4506         (-mfloat128-software): Likewise.
4507         (-mfloat128-sw): Likewise.
4509         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
4510         128-bit floating point types to occupy any register if
4511         -mlong-double-64.  Do not allow use of IFmode/KFmode unless
4512         -mfloat128-software is enabled.
4513         (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
4514         support.
4515         (rs6000_option_override_internal): Add -mfloat128-* support.
4516         (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
4518         * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
4519         and float128 type nodes.
4520         (ieee128_float_type_node): Likewise.
4521         (ibm128_float_type_node): Likewise.
4523 2015-06-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4525         PR target/66136
4526         * config/aarch64/geniterators.sh: Rewrite in awk.
4528 2015-06-02  Martin Liska  <mliska@suse.cz>
4530         * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
4531         values to avoid -Wmaybe-uninitialized errors.
4533 2015-06-02  Richard Biener  <rguenther@suse.de>
4535         PR debug/65549
4536         * dwarf2out.c (lookup_context_die): New function.
4537         (resolve_addr): Avoid forcing a full DIE for the
4538         target of a DW_TAG_GNU_call_site during late compilation.
4539         Instead create a stub DIE without a type if we have a
4540         context DIE present.
4542 2015-06-02  Uros Bizjak  <ubizjak@gmail.com>
4544         * df-scan.c (df_scan_start_dump): Add space between regno and regname.
4546 2015-06-02  Bin Cheng  <bin.cheng@arm.com>
4548         PR tree-optimization/48052
4549         * cfgloop.h (struct control_iv): New.
4550         (struct loop): New field control_ivs.
4551         * tree-ssa-loop-niter.c : Include "stor-layout.h".
4552         (number_of_iterations_lt): Set no_overflow information.
4553         (number_of_iterations_exit): Init control iv in niter struct.
4554         (record_control_iv): New.
4555         (estimate_numbers_of_iterations_loop): Call record_control_iv.
4556         (loop_exits_before_overflow): New.  Interface factored out of
4557         scev_probably_wraps_p.
4558         (scev_probably_wraps_p): Factor loop niter related code into
4559         loop_exits_before_overflow.
4560         (free_numbers_of_iterations_estimates_loop): Free control ivs.
4561         * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
4563 2015-06-02  Eric Botcazou  <ebotcazou@adacore.com>
4565         * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
4566         the target doesn't belong to the current function.
4568 2015-06-02  Marek Polacek  <polacek@redhat.com>
4570         PR middle-end/66345
4571         * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
4572         get_maxval_strlen does not produce an INTEGER_CST.
4574 2015-06-02  Richard Sandiford  <richard.sandiford@arm.com>
4576         * config/arc/constraints.md: Use lower-case names in match_code.
4577         * config/mmix/constraints.md: Likewise.
4579 2015-06-02  Richard Biener  <rguenther@suse.de>
4581         PR tree-optimization/65961
4582         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
4583         check and clarify dump message.
4584         (vect_build_slp_tree): If all children are built up from scalars
4585         build up the parent from scalars instead.
4586         * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
4588 2015-06-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
4590         PR other/65366
4591         * gdbhooks.py: Use int(...) instead of long(...).  Use print(...)
4592         instead of print ... .
4594 2015-06-02  Alan Modra  <amodra@gmail.com>
4596         * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
4597         2014-08-11 change.
4599 2015-06-02  Bin Cheng  <bin.cheng@arm.com>
4601         PR tree-optimization/52563
4602         PR tree-optimization/62173
4603         * tree-ssa-loop-ivopts.c (struct iv): New field.  Reorder fields.
4604         (alloc_iv, set_iv): New parameter.
4605         (determine_biv_step): Delete.
4606         (find_bivs): Inline original determine_biv_step.  Pass new
4607         argument to set_iv.
4608         (idx_find_step): Use no_overflow information for conversion.
4609         * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
4610         resolve_mixers handle folded_casts.
4611         (instantiate_scev_name): Change bool parameter to bool pointer.
4612         (instantiate_scev_poly, instantiate_scev_binary): Ditto.
4613         (instantiate_array_ref, instantiate_scev_not): Ditto.
4614         (instantiate_scev_3, instantiate_scev_2): Ditto.
4615         (instantiate_scev_1, instantiate_scev_r): Ditto.
4616         (instantiate_scev_convert, ): Change parameter.  Pass argument
4617         to chrec_convert_aggressive.
4618         (instantiate_scev): Change argument.
4619         (resolve_mixers): New parameter and set it.
4620         (scev_const_prop): New argument.
4621         * tree-scalar-evolution.h (resolve_mixers): New parameter.
4622         * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
4623         of chrec_conert_1.
4624         (chrec_convert): New parameter.  Move definition below.
4625         (chrec_convert_aggressive): New parameter and set it.  Call
4626         convert_affine_scev.
4627         * tree-chrec.h (chrec_convert): New parameter.
4628         (chrec_convert_aggressive): Ditto.
4630 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
4632         * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
4633         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
4634         the LHS of a no-return call if its type has variable size.
4635         * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
4636         * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
4638 2015-06-01  Andreas Tobler  <andreast@gcc.gnu.org>
4640         * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
4641         * config.in: Regenerate.
4643 2015-06-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
4645         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
4646         consecutive accesses within outer-loop with force_vectorize
4647         for references with zero step in inner-loop.
4649 2015-06-01  Vidya Praveen  <vidyapraveen@arm.com>
4651         * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
4652         rather than from gcc/build directory.
4654 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
4656         PR target/65697
4657         * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
4658         for __sync memory models, emit initial loads and final barriers as
4659         appropriate.
4661 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
4663         PR target/65697
4664         * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
4665         (aarch64_split_atomic_op): Check for __sync memory models, emit
4666         appropriate initial loads and final barriers.
4668 2015-06-01  Vidya Praveen  <vidyapraveen@arm.com>
4670         * Makefile.in: Fix gcov dependencies that should
4671         not point to a build folder.
4673 2015-06-01  Richard Biener  <rguenther@suse.de>
4675         Revert
4676         2015-05-29  Richard Biener  <rguenther@suse.de>
4678         PR tree-optimization/66314
4679         * tree-ssa-threadupdate.c (create_block_for_threading): Add
4680         parameter that says which loop the new block belongs to.
4681         (ssa_create_duplicates): Blocks duplicated for the threaded
4682         path belong to the loop of the thread destination.
4684 2015-06-01  Martin Liska  <mliska@suse.cz>
4686         * sched-deps.c: Include pool-alloc.h before
4687         cselib.h header file is included.
4689 2015-06-01  Richard Biener  <rguenther@suse.de>
4691         * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
4692         functions.
4694 2015-06-01  Martin Liska  <mliska@suse.cz>
4696         * alloc-pool.h: Add ATTRIBUTE_UNUSED for
4697         a function local variable.
4699 2015-06-01  Martin Liska  <mliska@suse.cz>
4701         * alloc-pool.c (create_alloc_pool): Remove.
4702         (empty_alloc_pool): Likewise.
4703         (free_alloc_pool): Likewise.
4704         (free_alloc_pool_if_empty): Likewise.
4705         (pool_alloc): Likewise.
4706         (pool_free): Likewise.
4707         * alloc-pool.h: Remove old declarations.
4709 2015-06-01  Martin Liska  <mliska@suse.cz>
4711         * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
4712         (ira_create_object): Likewise.
4713         (ira_create_allocno): Likewise.
4714         (ira_create_live_range): Likewise.
4715         (copy_live_range): Likewise.
4716         (ira_finish_live_range): Likewise.
4717         (ira_free_allocno_costs): Likewise.
4718         (finish_allocno): Likewise.
4719         (finish_allocnos): Likewise.
4720         (initiate_prefs): Likewise.
4721         (ira_create_pref): Likewise.
4722         (finish_pref): Likewise.
4723         (finish_prefs): Likewise.
4724         (initiate_copies): Likewise.
4725         (ira_create_copy): Likewise.
4726         (finish_copy): Likewise.
4727         (finish_copies): Likewise.
4728         (finish_prefs): Likewise.
4730 2015-06-01  Martin Liska  <mliska@suse.cz>
4732         * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
4733         (allocate_and_init_ipcp_value): Likewise.
4734         (ipcp_lattice::add_value): Likewise.
4735         (merge_agg_lats_step): Likewise.
4736         (ipcp_driver): Likewise.
4737         * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
4738         (ipa_free_all_structures_after_iinln): Likewise.
4739         * ipa-prop.h: Likewise.
4741 2015-06-01  Martin Liska  <mliska@suse.cz>
4743         * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
4744         pool allocator.
4745         (set_hint_predicate): Likewise.
4746         (inline_summary_alloc): Likewise.
4747         (reset_inline_edge_summary): Likewise.
4748         (reset_inline_summary): Likewise.
4749         (set_cond_stmt_execution_predicate): Likewise.
4750         (set_switch_stmt_execution_predicate): Likewise.
4751         (compute_bb_predicates): Likewise.
4752         (estimate_function_body_sizes): Likewise.
4753         (inline_free_summary): Likewise.
4755 2015-06-01  Martin Liska  <mliska@suse.cz>
4757         * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
4758         (ipa_edge_duplication_hook): Likewise.
4759         (ipa_free_all_structures_after_ipa_cp): Likewise.
4760         (ipa_free_all_structures_after_iinln): Likewise.
4762 2015-06-01  Martin Liska  <mliska@suse.cz>
4764         * ipa-profile.c (account_time_size): Use new type-based pool allocator.
4765         (ipa_profile_generate_summary): Likewise.
4766         (ipa_profile_read_summary): Likewise.
4767         (ipa_profile): Likewise.
4769 2015-06-01  Martin Liska  <mliska@suse.cz>
4771         * tree-ssa-structalias.c (new_var_info): Use new type-based
4772         pool allocator.
4773         (new_constraint): Likewise.
4774         (init_alias_vars): Likewise.
4775         (delete_points_to_sets): Likewise.
4777 2015-06-01  Martin Liska  <mliska@suse.cz>
4779         * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
4780         (free_strinfo): Likewise.
4781         (pass_strlen::execute): Likewise.
4783 2015-06-01  Martin Liska  <mliska@suse.cz>
4785         * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
4786         pool allocator.
4787         (vn_reference_insert_pieces): Likewise.
4788         (vn_phi_insert): Likewise.
4789         (visit_reference_op_call): Likewise.
4790         (copy_phi): Likewise.
4791         (copy_reference): Likewise.
4792         (process_scc): Likewise.
4793         (allocate_vn_table): Likewise.
4794         (free_vn_table): Likewise.
4796 2015-06-01  Martin Liska  <mliska@suse.cz>
4798         * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
4799         pool allocator.
4800         (add_repeat_to_ops_vec): Likewise.
4801         (get_ops): Likewise.
4802         (maybe_optimize_range_tests): Likewise.
4803         (init_reassoc): Likewise.
4804         (fini_reassoc): Likewise.
4806 2015-06-01  Martin Liska  <mliska@suse.cz>
4808         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
4809         pool allocator.
4810         (bitmap_set_new): Likewise.
4811         (get_or_alloc_expr_for_constant): Likewise.
4812         (get_or_alloc_expr_for): Likewise.
4813         (phi_translate_1): Likewise.
4814         (compute_avail): Likewise.
4815         (init_pre): Likewise.
4816         (fini_pre): Likewise.
4818 2015-06-01  Martin Liska  <mliska@suse.cz>
4820         * sched-deps.c (create_dep_node): Use new type-based pool allocator.
4821         (delete_dep_node): Likewise.
4822         (create_deps_list): Likewise.
4823         (free_deps_list): Likewise.
4824         (sched_deps_init): Likewise.
4825         (sched_deps_finish): Likewise.
4827 2015-06-01  Martin Liska  <mliska@suse.cz>
4829         * regcprop.c (free_debug_insn_changes): Use new type-based
4830         pool allocator.
4831         (replace_oldest_value_reg): Likewise.
4832         (pass_cprop_hardreg::execute): Likewise.
4834 2015-06-01  Martin Liska  <mliska@suse.cz>
4836         * ira-build.c (initiate_cost_vectors): Use new type-based
4837         pool allocator.
4838         (ira_allocate_cost_vector): Likewise.
4839         (ira_free_cost_vector): Likewise.
4840         (finish_cost_vectors): Likewise.
4842 2015-06-01  Martin Liska  <mliska@suse.cz>
4844         * sel-sched-ir.c (alloc_sched_pools): Use new type-based
4845         pool allocator.
4846         (free_sched_pools): Likewise.
4847         * sel-sched-ir.h (_list_alloc): Likewise.
4848         (_list_remove): Likewise.
4850 2015-06-01  Martin Liska  <mliska@suse.cz>
4852         * stmt.c (add_case_node): Use new type-based pool allocator.
4853         (expand_case): Likewise.
4854         (expand_sjlj_dispatch_table): Likewise.
4856 2015-06-01  Martin Liska  <mliska@suse.cz>
4858         * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
4859         (free_bb): Likewise.
4860         (pass_cse_reciprocals::execute): Likewise.
4862 2015-06-01  Martin Liska  <mliska@suse.cz>
4864         * tree-sra.c (sra_initialize): Use new type-based pool allocator.
4865         (sra_deinitialize) Likewise.
4866         (create_access_1) Likewise.
4867         (build_accesses_from_assign) Likewise.
4868         (create_artificial_child_access) Likewise.
4870 2015-06-01  Martin Liska  <mliska@suse.cz>
4872         * dse.c (get_group_info):Use new type-based pool allocator.
4873         (dse_step0) Likewise.
4874         (free_store_info) Likewise.
4875         (delete_dead_store_insn) Likewise.
4876         (free_read_records) Likewise.
4877         (record_store) Likewise.
4878         (replace_read) Likewise.
4879         (check_mem_read_rtx) Likewise.
4880         (scan_insn) Likewise.
4881         (dse_step1) Likewise.
4882         (dse_step7) Likewise.
4884 2015-06-01  Martin Liska  <mliska@suse.cz>
4886         * df-scan.c (struct df_scan_problem_data):Use new type-based
4887         pool allocator.
4888         (df_scan_free_internal) Likewise.
4889         (df_scan_alloc) Likewise.
4890         (df_grow_reg_info) Likewise.
4891         (df_free_ref) Likewise.
4892         (df_insn_create_insn_record) Likewise.
4893         (df_mw_hardreg_chain_delete) Likewise.
4894         (df_insn_info_delete) Likewise.
4895         (df_free_collection_rec) Likewise.
4896         (df_mw_hardreg_chain_delete_eq_uses) Likewise.
4897         (df_sort_and_compress_mws) Likewise.
4898         (df_ref_create_structure) Likewise.
4899         (df_ref_record) Likewise.
4901 2015-06-01  Martin Liska  <mliska@suse.cz>
4903         * df-problems.c (df_chain_create):Use new type-based pool allocator.
4904         (df_chain_unlink_1) Likewise.
4905         (df_chain_unlink) Likewise.
4906         (df_chain_remove_problem) Likewise.
4907         (df_chain_alloc) Likewise.
4908         (df_chain_free) Likewise.
4909         * df.h (struct dataflow) Likewise.
4911 2015-06-01  Martin Liska  <mliska@suse.cz>
4913         * cselib.c (new_elt_list):Use new type-based pool allocator.
4914         (new_elt_loc_list) Likewise.
4915         (unchain_one_elt_list) Likewise.
4916         (unchain_one_elt_loc_list) Likewise.
4917         (unchain_one_value) Likewise.
4918         (new_cselib_val) Likewise.
4919         (cselib_init) Likewise.
4920         (cselib_finish) Likewise.
4922 2015-06-01  Martin Liska  <mliska@suse.cz>
4924         * config/sh/sh.c (add_constant):Use new type-based pool allocator.
4925         (sh_reorg) Likewise.
4927 2015-06-01  Martin Liska  <mliska@suse.cz>
4929         * cfg.c (initialize_original_copy_tables):Use new type-based
4930         pool allocator.
4931         (free_original_copy_tables) Likewise.
4932         (copy_original_table_clear) Likewise.
4933         (copy_original_table_set) Likewise.
4935 2015-06-01  Martin Liska  <mliska@suse.cz>
4937         * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
4938         pool allocator.
4939         (asan_mem_ref_new) Likewise.
4940         (free_mem_ref_resources) Likewise.
4942 2015-06-01  Martin Liska  <mliska@suse.cz>
4944         * var-tracking.c (variable_htab_free):Use new type-based
4945         pool allocator.
4946         (attrs_list_clear) Likewise.
4947         (attrs_list_insert) Likewise.
4948         (attrs_list_copy) Likewise.
4949         (shared_hash_unshare) Likewise.
4950         (shared_hash_destroy) Likewise.
4951         (unshare_variable) Likewise.
4952         (var_reg_delete_and_set) Likewise.
4953         (var_reg_delete) Likewise.
4954         (var_regno_delete) Likewise.
4955         (drop_overlapping_mem_locs) Likewise.
4956         (variable_union) Likewise.
4957         (insert_into_intersection) Likewise.
4958         (canonicalize_values_star) Likewise.
4959         (variable_merge_over_cur) Likewise.
4960         (dataflow_set_merge) Likewise.
4961         (remove_duplicate_values) Likewise.
4962         (variable_post_merge_new_vals) Likewise.
4963         (dataflow_set_preserve_mem_locs) Likewise.
4964         (dataflow_set_remove_mem_locs) Likewise.
4965         (variable_from_dropped) Likewise.
4966         (variable_was_changed) Likewise.
4967         (set_slot_part) Likewise.
4968         (clobber_slot_part) Likewise.
4969         (delete_slot_part) Likewise.
4970         (loc_exp_insert_dep) Likewise.
4971         (notify_dependents_of_changed_value) Likewise.
4972         (emit_notes_for_differences_1) Likewise.
4973         (vt_emit_notes) Likewise.
4974         (vt_initialize) Likewise.
4975         (vt_finalize) Likewise.
4977 2015-06-01  Martin Liska  <mliska@suse.cz>
4979         * ira-color.c (init_update_cost_records):Use new type-based
4980         pool allocator.
4981         (get_update_cost_record) Likewise.
4982         (free_update_cost_record_list) Likewise.
4983         (finish_update_cost_records) Likewise.
4984         (initiate_cost_update) Likewise.
4986 2015-06-01  Martin Liska  <mliska@suse.cz>
4988         * lra.c (init_insn_regs): Use new type-based pool allocator.
4989         (new_insn_reg) Likewise.
4990         (free_insn_reg) Likewise.
4991         (free_insn_regs) Likewise.
4992         (finish_insn_regs) Likewise.
4993         (init_insn_recog_data) Likewise.
4994         (init_reg_info) Likewise.
4995         (finish_reg_info) Likewise.
4996         (lra_free_copies) Likewise.
4997         (lra_create_copy) Likewise.
4998         (invalidate_insn_data_regno_info) Likewise.
5000 2015-06-01  Martin Liska  <mliska@suse.cz>
5002         * lra-lives.c (free_live_range): Use new type-based pool allocator.
5003         (free_live_range_list) Likewise.
5004         (create_live_range) Likewise.
5005         (copy_live_range) Likewise.
5006         (lra_merge_live_ranges) Likewise.
5007         (remove_some_program_points_and_update_live_ranges) Likewise.
5008         (lra_live_ranges_init) Likewise.
5009         (lra_live_ranges_finish) Likewise.
5011 2015-06-01  Martin Liska  <mliska@suse.cz>
5013         * et-forest.c (et_new_occ): Use new type-based pool allocator.
5014         (et_new_tree): Likewise.
5015         (et_free_tree): Likewise.
5016         (et_free_tree_force): Likewise.
5017         (et_free_pools): Likewise.
5018         (et_split): Likewise.
5020 2015-06-01  Martin Liska  <mliska@suse.cz>
5022         * alloc-pool.c (struct alloc_pool_descriptor): Move definition
5023         to header file.
5024         * alloc-pool.h (pool_allocator::pool_allocator): New function.
5025         (pool_allocator::release): Likewise.
5026         (inline pool_allocator::release_if_empty): Likewise.
5027         (inline pool_allocator::~pool_allocator): Likewise.
5028         (pool_allocator::allocate): Likewise.
5029         (pool_allocator::remove): Likewise.
5031 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
5033         * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
5034         in comment.
5036 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
5038         * gcc/config/arm/arm-protos.h (tune_params): Rename fuseable_ops
5039         to fusible_ops.
5040         * gcc/config/arm/arm.c (arm_print_tune_info): Likewise.
5041         (arm_macro_fusion_p): Likewise.
5042         (arm_macro_fusion_pair_p): Likewise.
5044 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
5046         * config/aarch64/aarch64-protos.h (tune_params): Rename
5047         fuseable_ops to fusible_ops.
5048         * config/aarch64/aarch64.c (generic_tunings): Rename
5049         fuseable_ops to fusible_ops.
5050         (cortexa53_tunings): Likewise.
5051         (cortexa57_tunings): Likewise.
5052         (thunderx_tunings): Likewise.
5053         (xgene1_tunings): Likewise.
5054         (aarch64_macro_fusion_p): Likewise.
5055         (aarch64_macro_fusion_pair_p): Likewise.
5057 2015-06-01  Dominik Vogt  <vogt@linux.vnet.ibm.com>
5059         * config/s390/driver-native.c: New file.
5060         * config/s390/x-native: New file.
5061         * config.host: Add new files for s390.
5062         * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
5063         and -march=native
5064         * config.gcc: Likewise.
5065         * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
5066         * config/s390/s390-opts.h (enum processor_type): Ditto.
5067         * config/s390/s390.c (s390_option_override): Catch unhandled
5068         PROCESSOR_NATIVE
5070 2015-06-01  Ilya Enkovich  <ilya.enkovich@intel.com>
5072         PR target/65527
5073         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
5074         redirection for instrumented calls.
5075         * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
5076         (append_compiler_options): Append -fcheck-pointer-bounds.
5077         * tree-chkp.h (chkp_copy_call_skip_bounds): New.
5078         (chkp_redirect_edge): New.
5079         * tree-chkp.c (chkp_copy_call_skip_bounds): New.
5080         (chkp_redirect_edge): New.
5082 2015-06-01  Richard Biener  <rguenther@suse.de>
5084         PR tree-optimization/66280
5085         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
5086         def-use walking.
5088 2015-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5090         * config/aarch64/aarch64.md
5091         (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
5092         logic_shift_imm.
5094 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
5096         * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
5097         Remove obsolete kludge.
5099 2015-06-01  Richard Biener  <rguenther@suse.de>
5101         * tree-ssa-reassoc.c (get_rank): Simplify.
5103 2015-05-31  H.J. Lu  <hongjiu.lu@intel.com>
5105         * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
5106         * configure: Regenerated.
5108 2015-05-31  Mikhail Maltsev  <maltsevm@gmail.com>
5110         * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
5111         issue (add space between string literal and macro).
5112         * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
5114 2015-05-30  Andreas Schwab  <schwab@linux-m68k.org>
5116         * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
5117         implict or explicit -fPIE or -fpie.
5119 2015-05-30  Mike Frysinger  <vapier@gentoo.org>
5121         * gcc/config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
5123 2015-05-28  DJ Delorie  <dj@redhat.com>
5125         * expmed.c (extract_bit_field_1): Avoid clobbering a
5126         yet-to-be-used base/index register.
5128 2015-05-30  Jan Hubicka  <hubicka@ucw.cz>
5130         * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
5131         (alias_stats): Add num_universal.
5132         (alias_set_subset_of): Special case pointers; be ready for NULL
5133         children.
5134         (alias_sets_conflict_p): Special case pointers; be ready for NULL
5135         children.
5136         (init_alias_set_entry): Break out from ...
5137         (record_alias_subset): ... here; propagate new fields;
5138         allocate children only when really needed.
5139         (get_alias_set): Do less generous pointer globbing.
5140         (dump_alias_stats_in_alias_c): Update statistics.
5142 2015-05-30  Alan Modra  <amodra@gmail.com>
5144         * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
5145         correct block for use of r12.
5146         (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
5148 2015-05-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
5150         PR target/66215
5151         * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
5152         with -mhotpatch=.
5154 2015-05-29  Jakub Jelinek  <jakub@redhat.com>
5156         PR tree-optimization/66142
5157         * tree-if-conv.c (if_convertible_phi_p): Don't give up on
5158         virtual phis that feed themselves.
5160 2015-05-29  Richard Biener  <rguenther@suse.de>
5162         PR tree-optimization/66314
5163         * tree-ssa-threadupdate.c (create_block_for_threading): Add
5164         parameter that says which loop the new block belongs to.
5165         (ssa_create_duplicates): Blocks duplicated for the threaded
5166         path belong to the loop of the thread destination.
5168 2015-05-29  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
5170         * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
5171         to cleanup-saved-temps.
5172         * doc/sourcebuild.texi (Clean up generated test files): Expand
5173         introduction.
5174         (dg-keep-saved-temps): Document new proc.
5175         (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
5176         cleanup-saved-temps): Remove.
5178 2015-05-28  Andreas Tobler  <andreast@gcc.gnu.org>
5180         * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
5181         gcc_AC_CHECK_DECLS.
5182         * configure: Regenerate.
5184 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
5186         * config/nios2/linux.h (CPP_SPEC): Define.
5188 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
5190         * config/microblaze/linux.h (CPP_SPEC): Define.
5192 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
5194         * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
5195         -pthread is specified.
5197 2015-05-28  Richard Biener  <rguenther@suse.de>
5199         * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
5200         (vect_fixup_scalar_cycles_with_patterns): Likewise.
5201         (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
5202         after pattern recog.
5203         (vect_create_epilog_for_reduction): Properly handle reductions
5204         with patterns.
5205         (vectorizable_reduction): Likewise.
5206         * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
5207         reduction chains.
5208         (vect_get_constant_vectors): Create the correct number of
5209         initial values for reductions.
5210         (vect_schedule_slp_instance): Handle reduction chains that are
5211         type changing properly.
5212         * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
5214 2015-05-28  Richard Biener  <rguenther@suse.de>
5216         PR tree-optimization/66142
5217         * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
5218         values better in memcpy destination handling.  Handle non-aliasing
5219         we discover here.
5221 2015-05-28  Lawrence Velázquez  <vq@larryv.me>
5223         PR target/63810
5224         * config/darwin-c.c (version_components): New global enum.
5225         (parse_version, version_as_legacy_macro)
5226         (version_as_modern_macro, macosx_version_as_macro): New functions.
5227         (version_as_macro): Remove.
5228         (darwin_cpp_builtins): Use new function.
5230 2015-05-28  H.J. Lu  <hongjiu.lu@intel.com>
5232         * builtins.c (expand_builtin_acc_on_device): Mark parameters
5233         with ATTRIBUTE_UNUSED.
5235 2015-05-28  Julian Brown  <julian@codesourcery.com>
5237         PR libgomp/65742
5239         * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
5240         sequence for !ACCEL_COMPILER.
5242 2015-05-28  Nick Clifton  <nickc@redhat.com>
5244         * config/rx/rx.c (push_regs): New function.  Extracts code from...
5245         (rx_expand_prologue): ... here.  Use push_regs to push even small
5246         spans of registers.
5247         (pop_regs): New function.
5248         (rx_expand_epilogue):  Use pop_regs to pop even small spans of
5249         registers.
5251 2015-05-28  Richard Biener  <rguenther@suse.de>
5253         * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
5254         member.
5255         (SLP_INSTANCE_BODY_COST_VEC): Remove.
5256         (vect_update_slp_costs_according_to_vf): Likewise.
5257         (vect_slp_analyze_operations): Update prototype.
5258         * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
5259         vect_update_slp_costs_according_to_vf, adjust.
5260         * tree-vect-slp.c (vect_free_slp_instance): Adjust.
5261         (vect_analyze_slp_cost_1): Likewise.
5262         (vect_analyze_slp_cost): Likewise.  Properly deal with
5263         widening reduction ops.  Commit body costs.
5264         (vect_analyze_slp_instance): Adjust.  Do not analyze SLP
5265         cost for loops from here.
5266         (vect_slp_analyze_operations): But do it from here when
5267         the vectorization factor is known and stmts are analyzed.
5268         (vect_bb_vectorization_profitable_p): Simplify.
5269         (vect_slp_analyze_bb_1): Do not compute SLP cost here.
5270         (vect_update_slp_costs_according_to_vf): Remove.
5272 2015-05-27  Magnus Granberg  <zorry@gentoo.org>
5273             H.J. Lu  <hongjiu.lu@intel.com>
5275         * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
5276         (BUILD_CFLAGS): Likewise.
5277         (BUILD_CXXFLAGS): Likewise.
5278         (LINKER): Add @NO_PIE_FLAG@.
5279         (BUILD_LDFLAGS): Likewise.
5280         (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
5281         --enable-default-pie.
5282         * common.opt (fPIE): Initialize to -1.
5283         (fpie): Likewise.
5284         (no-pie): New option.
5285         (pie): Replace "Negative(shared)" with "Negative(no-pie)".
5286         * configure.ac: Add --enable-default-pie.
5287         (NO_PIE_CFLAGS): New.  Check if -fno-PIE works.  AC_SUBST.
5288         (NO_PIE_FLAG): New.  Check if -no-pie works.  AC_SUBST.
5289         * defaults.h (DEFAULT_FLAG_PIE): New.  Default PIE to -fPIE.
5290         * gcc.c (NO_PIE_SPEC): New.
5291         (PIE_SPEC): Likewise.
5292         (NO_FPIE1_SPEC): Likewise.
5293         (FPIE1_SPEC): Likewise.
5294         (NO_FPIE2_SPEC): Likewise.
5295         (FPIE2_SPEC): Likewise.
5296         (NO_FPIE2_SPEC): Likewise.
5297         (FPIE_SPEC): Likewise.
5298         (NO_FPIE_SPEC): Likewise.
5299         (NO_FPIC1_SPEC): Likewise.
5300         (FPIC1_SPEC): Likewise.
5301         (NO_FPIC2_SPEC): Likewise.
5302         (FPIC2_SPEC): Likewise.
5303         (NO_FPIC2_SPEC): Likewise.
5304         (FPIC_SPEC): Likewise.
5305         (NO_FPIC_SPEC): Likewise.
5306         (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
5307         (FPIE1_OR_FPIC1_SPEC): Likewise.
5308         (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
5309         (FPIE2_OR_FPIC2_SPEC): Likewise.
5310         (NO_FPIE_AND_FPIC_SPEC): Likewise.
5311         (FPIE_OR_FPIC_SPEC): Likewise.
5312         (LD_PIE_SPEC): Likewise.
5313         (LINK_PIE_SPEC): Handle -no-pie.  Use PIE_SPEC and LD_PIE_SPEC.
5314         * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
5315         * config/darwin.h (PIE_SPEC): Renamed to ...
5316         (DARWIN_PIE_SPEC): This.
5317         (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
5318         * config/darwin9.h (PIE_SPEC): Renamed to ...
5319         (DARWIN_PIE_SPEC): This.
5320         * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
5321         PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
5322         * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
5323         FPIE2_OR_FPIC2_SPEC.
5324         * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
5325         * config/m68k/openbsd.h (ASM_SPEC): Likewise.
5326         * gcc/config/sol2.h (ASM_PIC_SPEC): Likewise.
5327         * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
5328         * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
5329         * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
5330         * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
5331         * config/m32r/m32r.h (ASM_SPEC): Likewise.
5332         * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
5333         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
5334         * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
5335         * config/sparc/freebsd.h (ASM_SPEC): Likewise.
5336         * config/sparc/linux.h (ASM_SPEC): Likewise.
5337         * config/sparc/linux64.h (ASM_SPEC): Likewise.
5338         * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
5339         * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
5340         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
5341         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
5342         * config/sparc/sparc.h (ASM_SPEC): Likewise.
5343         * config/sparc/sysv4.h (ASM_SPEC): Likewise.
5344         * config/sparc/vxworks.h (ASM_SPEC): Likewise.
5345         * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
5346         FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
5347         * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
5348         * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
5349         NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
5350         (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
5351         * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
5352         * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
5353         * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
5354         * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
5355         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
5356         * config/vax/linux.h (ASM_SPEC): Likewise.
5357         * doc/install.texi: Document --enable-default-pie.
5358         * doc/invoke.texi: Document -no-pie.
5359         * config.in: Regenerated.
5360         * configure: Likewise.
5362 2015-05-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
5364         PR rtl-optimization/66168
5365         * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
5366         can_move_invariant_reg.
5368 2015-05-27  John David Anglin  <danglin@gcc.gnu.org>
5370         PR target/66148
5371         * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
5372         REG_EQUAL note when doing insert.
5374         * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
5375         instead of "%d" for 'o' operand.
5377 2015-05-27  Nathan Sidwell  <nathan@acm.org>
5379         PR c++/66270
5380         * tree.c (build_pointer_type_for_mode): Canonical type does not
5381         inherit can_alias_all.
5382         (build_reference_type_for_mode): Likewise.
5384 2015-05-27  Eric Botcazou  <ebotcazou@adacore.com>
5386         * expr.h (array_at_struct_end_p): Move to...
5387         (array_ref_element_size): Likewise.
5388         (component_ref_field_offset): Likewise.
5389         * tree.h (array_ref_element_size): ...here.
5390         (array_at_struct_end_p): Likewise.
5391         (component_ref_field_offset): Likewise.
5392         * expr.c (array_ref_element_size): Move to...
5393         (array_ref_low_bound): Likewise.
5394         (array_at_struct_end_p): Likewise.
5395         (array_ref_up_bound): Likewise.
5396         (component_ref_field_offset): Likewise.
5397         * tree.c (array_ref_element_size): ...here.
5398         (array_ref_low_bound): Likewise.
5399         (array_ref_up_bound): Likewise.
5400         (array_at_struct_end_p): Likewise.
5401         (component_ref_field_offset): Likewise.
5403 2015-05-27  Gregor Richards  <gregor.richards@uwaterloo.ca>
5404             Szabolcs Nagy  <szabolcs.nagy@arm.com>
5406         * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
5408 2015-05-27  Jason Merrill  <jason@redhat.com>
5410         PR bootstrap/66304
5411         * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
5412         ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
5413         ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
5415 2015-05-22  Aditya Kumar  <hiraditya@msn.com>
5417         * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
5418         is true.
5420         * statistics.c (statistics_fini_pass): Print pass name.
5422 2015-05-27  Richard Biener  <rguenther@suse.de>
5424         PR tree-optimization/66272
5425         Revert parts of
5426         2014-08-15  Richard Biener  <rguenther@suse.de>
5428         PR tree-optimization/62031
5429         * tree-data-ref.c (dr_analyze_indices): Do not set
5430         DR_UNCONSTRAINED_BASE.
5431         (dr_may_alias_p): All indirect accesses have to go the
5432         formerly DR_UNCONSTRAINED_BASE path.
5433         * tree-data-ref.h (struct indices): Remove
5434         unconstrained_base member.
5435         (DR_UNCONSTRAINED_BASE): Remove.
5437 2015-05-27  Aldy Hernandez  <aldyh@redhat.com>
5439         * dwarf2out.c: Remove block_map.
5440         (gen_call_site_die): Replace block_map use with BLOCK_DIE.
5441         (gen_lexical_block_die): Same.
5442         (dwarf2out_function_decl): Remove block_map use.
5443         (dwarf2out_c_finalize): Same.
5444         * tree-core.h (struct tree_block): Add die field.
5445         * tree.h (BLOCK_DIE): New.
5447 2015-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5449         PR target/65358
5450         * expr.c (memory_load_overlap): New function.
5451         (emit_push_insn): When pushing partial args to the stack would
5452         clobber the register part load the overlapping part into a pseudo
5453         and put it into the hard reg after pushing.  Change return type
5454         to bool.  Add bool argument.
5455         * expr.h (emit_push_insn): Change return type to bool.
5456         Add bool argument.
5457         * calls.c (expand_call): Cancel sibcall optimization when encountering
5458         partial argument on targets with ARGS_GROW_DOWNWARD and
5459         !STACK_GROWS_DOWNWARD.
5460         (emit_library_call_value_1): Update callsite of emit_push_insn.
5461         (store_one_arg): Likewise.
5463 2015-05-27  Gregor Richards  <gregor.richards@uwaterloo.ca>
5465         * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
5467 2015-05-27  Martin Liska  <mliska@suse.cz>
5469         * Makefile.in: Add additional dependencies related to memory report
5470         enhancement.
5471         * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
5472         * bitmap.c (struct bitmap_descriptor_d): Remove.
5473         (struct loc): Likewise.
5474         (struct bitmap_desc_hasher): Likewise.
5475         (bitmap_desc_hasher::hash): Likewise.
5476         (bitmap_desc_hasher::equal): Likewise.
5477         (get_bitmap_descriptor): Likewise.
5478         (bitmap_register): User new memory descriptor API.
5479         (register_overhead): Likewise.
5480         (bitmap_find_bit): Register nsearches and search_iter statistics.
5481         (struct bitmap_output_info): Remove.
5482         (print_statistics): Likewise.
5483         (dump_bitmap_statistics): Use new memory descriptor.
5484         * bitmap.h (struct bitmap_usage): New class.
5485         * genmatch.c: Extend header file inclusion.
5486         * genpreds.c: Likewise.
5487         * ggc-common.c (struct ggc_usage): New class.
5488         (struct ggc_loc_desc_hasher): Remove.
5489         (ggc_loc_desc_hasher::hash): Likewise.
5490         (ggc_loc_desc_hasher::equal): Likewise.
5491         (struct ggc_ptr_hash_entry): Likewise.
5492         (struct ptr_hash_hasher): Likewise.
5493         (ptr_hash_hasher::hash): Likewise.
5494         (ptr_hash_hasher::equal): Likewise.
5495         (make_loc_descriptor): Likewise.
5496         (ggc_prune_ptr): Likewise.
5497         (dump_ggc_loc_statistics): Use new memory descriptor.
5498         (ggc_record_overhead): Likewise.
5499         (ggc_free_overhead): Likewise.
5500         (final_cmp_statistic): Remove.
5501         (cmp_statistic): Likewise.
5502         (ggc_add_statistics): Liekwise.
5503         (ggc_prune_overhead_list): Likewise.
5504         * hash-map-traits.h: New file.
5505         * hash-map.h (struct default_hashmap_traits): Move the traits to a
5506         separate header file.
5507         * hash-set.h: Pass memory statistics info to ctor.
5508         * hash-table.c (void dump_hash_table_loc_statistics): New function.
5509         * hash-table.h (hash_table::hash_table): Add new ctor arguments.
5510         (hash_table::~hash_table): Register memory release operation.
5511         (hash_table::alloc_entries): Handle memory allocation operation.
5512         (hash_table::expand): Likewise.
5513         * inchash.c (iterative_hash_hashval_t): Move implementation to header
5514         file.
5515         (iterative_hash_host_wide_int): Likewise.
5516         * inchash.h (class hash): Likewise.
5517         * mem-stats-traits.h: New file.
5518         * mem-stats.h: New file.
5519         (mem_location): Add new class.
5520         (mem_usage): Likewise.
5521         (mem_alloc_description): Likewise.
5522         * sese.c: Add new header file inclusision.
5523         * toplev.c (dump_memory_report): Add report for hash_table, hash_map
5524         and hash_set.
5525         * tree-sra.c: Add new header file inclusision.
5526         * vec.c (struct vec_descriptor): Remove.
5527         (hash_descriptor): Likewise.
5528         (struct vec_usage): Likewise.
5529         (struct ptr_hash_entry): Likewise.
5530         (hash_ptr): Likewise.
5531         (eq_ptr): Likewise.
5532         (vec_prefix::register_overhead): Use new memory descriptor API.
5533         (vec_prefix::release_overhead): Likewise.
5534         (add_statistics): Remove.
5535         (dump_vec_loc_statistics): Use new memory descriptor API.
5536         * vec.h (struct vec_prefix): Likewise.
5537         (va_heap::reserve): Likewise.
5538         (va_heap::release): Likewise.
5539         * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
5541 2015-05-27  Richard Biener  <rguenther@suse.de>
5543         * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
5544         earlier and remove ??? comment.
5545         (vect_analyze_stmt): If we are analyzing a pure SLP stmt
5546         and got called from loop analysis bail out.  Always pass the SLP
5547         node to the vectorizable_* functions.
5548         * tree-vect-loop.c (vect_analyze_loop_operations): Remove
5549         the premature SLP check here.
5550         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
5551         detected SLP stmts.
5552         (vect_detect_hybrid_slp_1): Likewise.
5554 2015-05-26  Jeff Law  <law@redhat.com>
5556         * combine.c (find_split_point): Verify that the shift count is a
5557         constant when choosing (plus (ashift ...)) as a split point.
5559         * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
5560         No functional changes.
5562 2015-05-26  Jan Hubicka  <hubicka@ucw.cz>
5564         * ipa-polymorphic-call.c
5565         (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
5566         case when call target is already known.
5568 2015-05-26  Oleg Endo  <olegendo@gcc.gnu.org>
5570         PR target/65979
5571         * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
5572         take into account the case that operands[1] and operands[2]
5573         are the same register.
5575 2015-05-26  Michael Matz  <matz@suse.de>
5577         PR middle-end/66251
5579         * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
5580         stores.
5581         (vect_create_vectorized_demotion_stmts): Always set
5582         STMT_VINFO_VEC_STMT, also with SLP.
5583         (vectorizable_store): Handle strided group stores.
5585 2015-05-26  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
5587         PR target/66049
5588         * config/aarch64/aarch64.md
5589         (*adds_shift_imm_<mode>):  New pattern.
5590         (*subs_shift_imm_<mode>):  Likewise.
5591         (*adds_<optab><ALLX:mode>_shift_<GPI:mode>):  Likewise.
5592         (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
5593         (*add_uxt<mode>_shift2): Likewise.
5594         (*add_uxtsi_shift2_uxtw): Likewise.
5595         (*sub_uxt<mode>_shift2): Likewise.
5596         (*sub_uxtsi_shift2_uxtw): Likewise.
5598 2015-05-26  David Edelsohn  <dje.gcc@gmail.com>
5600         * config/rs6000/constraints.md (Y, U): Use match_test.
5602 2015-05-26  Christian Bruel  <christian.bruel@st.com>
5604         PR target/52144
5605         * config/arm/arm.c (arm_option_check_internal)
5606         (arm_option_params_internal): Check opts->target_flags to set macros.
5607         (TREE_TARGET_ARM, TREE_TARGET_THUMB)
5608         (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
5609         (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
5610         (builtin_define): Replaced with def_or_undef_macro.
5611         * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
5612         TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
5613         (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
5614         (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
5615         (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
5616         (TARGET_ARM_FEATURE_LDREX_P)
5617         (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
5618         * config/arm/arm-c.c (def_or_undef_macro): New function.
5619         (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
5621 2015-05-26  Christian Bruel  <christian.bruel@st.com>
5623         * c-common.h (builtin_define_with_int_value)
5624         (builtin_define_type_sizeof): Declare.
5625         * c-cppbuiltin.c (builtin_define_with_int_value)
5626         (builtin_define_type_sizeof): Externalize.
5627         (builtin_define_std): Cleanup declaration.
5628         * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
5629         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
5630         * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
5631         (builtin_define, builtin_assert): New macros.
5633 2015-05-26  Richard Biener  <rguenther@suse.de>
5635         PR tree-optimization/66142
5636         * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
5637         MEM_REFs for the same base address.
5639 2015-05-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5641         PR ipa/66181
5642         * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
5644 2015-05-26  Jason Merrill  <jason@redhat.com>
5646         * configure.ac: Set CXXFLAGS for ISL test.
5647         * configure: Regenerate.
5649         * configure.ac: Use C++ for all tests.  Use AC_CHECK_DECLS for
5650         strstr and basename.
5651         * configure: Regenerate.
5653 2015-05-26  Richard Biener  <rguenther@suse.de>
5655         * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
5656         X % C -> X & (C - 1) for C being a power-of two to ...
5657         * match.pd: ... patterns.
5659 2015-05-26  Marc Glisse  <marc.glisse@inria.fr>
5661         * match.pd (swapped_tcc_comparison): New operator list.
5662         (-A CMP -B): New simplification.
5663         * fold-const.c (fold_comparison): Remove corresponding code.
5665 2015-05-26  Richard Sandiford  <richard.sandiford@arm.com>
5667         * caller-save.c (init_caller_save): Base temporary register numbers
5668         on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
5669         * cfgloopanal.c (init_set_costs): Likewise.
5670         * dojump.c (prefer_and_bit_test): Likewise.
5671         * expr.c (init_expr_target): Likewise.
5672         * ira.c (setup_prohibited_mode_move_regs): Likewise.
5673         * lower-subreg.c (init_lower_subreg): Likewise.
5674         * postreload.c (reload_cse_regs_1): Likewise.
5676 2015-05-26  Richard Sandiford  <richard.sandiford@arm.com>
5678         * gensupport.h (compute_test_codes): Declare.
5679         * gensupport.c (compute_predicate_codes): Rename to...
5680         (compute_test_codes): ...this.  Generalize error message.
5681         (process_define_predicate): Update accordingly.
5682         * genpreds.c (compute_maybe_allows): Delete.
5683         (add_constraint): Use compute_test_codes to determine whether
5684         something can accept a SUBREG, REG or MEM.
5686 2015-05-26  Torvald Riegel  <triegel@redhat.com>
5688         * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
5689         'memory model' to align with C++11; fix description of memory orders;
5690         fix a few typos.
5692 2015-05-26  Richard Biener  <rguenther@suse.de>
5694         * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
5695         (vect_analyze_loop_operations): ... here.  Remove slp parameter,
5696         detect whether we apply SLP.  Remove call to
5697         vect_update_slp_costs_according_to_vf.
5698         (vect_analyze_loop_2): Call vect_update_vf_for_slp and
5699         vect_update_slp_costs_according_to_vf from here.  Dispatch
5700         to vect_slp_analyze_operations to analyze SLP stmts.
5701         * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
5702         unused bb_vec_info parameter, adjust assert.
5703         (vect_slp_analyze_operations): Pass in the slp instance tree
5704         instead of bb_vec_info.
5705         (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
5706         * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
5708 2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
5710         * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
5711         Q_REGS.  Expand comment.
5712         (REG_CLASS_NAMES): Ditto.
5713         (REG_CLASS_CONTENTS): Ditto.
5715 2015-05-25  Uros Bizjak  <ubizjak@gmail.com>
5717         PR target/66274
5718         * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
5719         when LEGACY_INT_REGNO_P is processed.
5721 2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
5723         * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
5725 2015-05-25  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
5727         * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
5728         register if not marked dead/unused, before return.
5730 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
5732         PR lto/66180
5733         * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
5734         is set; check for assembler name at LTO time.
5735         (type_in_anonymous_namespace): Remove hacks, check that all
5736         anonymous types are called "<anon>"
5737         (odr_type_p): Simplify; add check for "<anon>"
5738         (odr_subtypes_equivalent): Add odr_type_p check.
5739         * tree.c (need_assembler_name_p): Even anonymous namespace needs
5740         assembler name.
5742 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
5744         * ipa-utils.h (method_class_type): Remove.
5745         * cgraphunit.c (walk_polymorphic_call_targets): Use
5746         TYPE_METHOD_BASETYPE.
5747         * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
5748         on main variants only.
5749         (method_class_type): Remove.
5750         (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
5751         (build_type_inheritance_graph): Likewise.
5752         * ipa-icf.c (sem_function::equals_wpa): Likewise.
5753         * pa-polymorphic-call.c (decl_maybe_in_construction_p,
5754         check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
5756 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
5758         * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
5759         is_typedef_decl, typedef_variant_p): Constify.
5760         * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
5761         is_typedef_decl, typedef_variant_p): Constify.
5763 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5765         * defaults.h (gen_tablejump): New function.
5766         (HAVE_tablejump): Add default value.
5767         * expr.c: Adjust.
5768         * stmt.c: Likewise.
5770 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5772         * defaults.h (gen_store_multiple): New function.
5773         (HAVE_store_multiple): Add default value.
5774         * expr.c (move_block_from_reg): Adjust.
5776 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5778         * defaults.h (gen_load_multiple): New function.
5779         (HAVE_load_multiple): Add default value.
5780         * expr.c (move_block_to_reg): Adjust.
5782 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5784         * defaults.h (gen_mem_signal_fence): New function.
5785         (HAVE_mem_signal_fence): Add default value.
5786         * optabs.c: Adjust.
5788 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5790         * defaults.h (gen_memory_barrier): New function.
5791         (HAVE_memory_barrier): Add default value.
5792         * optabs.c: Adjust.
5794 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5796         * defaults.h (gen_mem_thread_fence): New function.
5797         (HAVE_mem_thread_fence): Add default definition.
5798         * optabs.c: Adjust.
5800 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5802         * combine.c (find_split_point): Check the value of HAVE_lo_sum
5803         instead of if it is defined.
5804         (combine_simplify_rtx): Likewise.
5805         * lra-constraints.c (process_address_1): Likewise.
5806         * config/darwin.c: Adjust.
5807         * genconfig.c (main): Always define HAVE_lo_sum.
5809 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
5811         * genmatch.c (parser::parse_operation): Reject expanding
5812         operator-list inside 'for'.
5814 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
5816         * genmatch.c (parser::parse_for): Reject iterator if used as
5817         operator-list.
5819 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
5821         * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
5822         after end of id-list.
5824 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
5826         * tree.c (gimple_canonical_types_compatible_p): Sanity check that
5827         we do not try to compute canonical type for type that does not need
5828         alias set.
5829         (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
5830         FUNCITON_TYPE.
5831         * tree.h (type_with_alias_set_p): New.
5833 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
5835         * tree.c (gimple_canonical_types_compatible_p):  Do not compare
5836         function attributes.
5837         (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
5839 2015-05-22  Jim Wilson  <jim.wilson@linaro.org>
5841         * Makefile.in (check_gcc_parallelize): Delete.
5842         (lang_checks_parallelized): Update comment.
5844 2015-05-22  Mikhail Maltsev  <maltsevm@gmail.com>
5846         PR rtl-optimization/66237
5847         * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
5848         location of an "as_a" cast.
5850 2015-05-22  Jeff Law  <law@redhat.com>
5852         * config/pa/pa.md (non-canonical shift-add insns): Remove.
5853         (peepholes with non-canonical RTL sources): Remove.
5854         (peepholes for indexed stores of FP regs in integer modes): Match and
5855         generate canonical RTL.
5857 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
5859         PR tree-optimization/63387
5860         * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
5861         ((x ord x) & (y ord y) -> (x ord y),
5862         (x ord x) & (x ord y) -> (x ord y)): New simplifications.
5863         * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
5864         vectors like scalars.
5866 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
5868         * convert.c (convert_to_integer, convert_to_vector): Include the
5869         types in the error message.
5871 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
5873         * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
5874         simplifications.
5876 2015-05-22  Jeff Law  <law@redhat.com>
5878         * config/pa/pa.md (integer_indexed_store splitters): Use
5879         mem_shadd_operand.  Use ASHIFT rather than MULT in the resulting
5880         insns -- adjusting the constant 2nd operand accordingly.
5882         * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
5883         (plus (ashift X log2) Y) if it is a split point.
5885         * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
5886         out of hppa_legitimize_address to handle both forms of a multiply
5887         by 2, 4 or 8.
5888         (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
5889         Always generate the ASHIFT variant as the result is not directly
5890         used in a MEM.  Update comments and refactor slightly to improve
5891         readability.
5893 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5895         PR target/65491
5896         * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
5897         aarch64_composite_type_p.  Remove check for aarch64_composite_type_p.
5898         (aarch64_composite_type_p): Return false if given type and mode are
5899         for a short vector.
5901 2015-05-22  Richard Biener  <rguenther@suse.de>
5903         * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
5904         member.
5905         * tree-vect-loop.c (vect_analyze_loop_operations): Look at
5906         patterns when determining whether SLP is pure.
5907         (vect_is_slp_reduction): Remove check for pattern stmts.
5908         (vect_is_simple_reduction_1): Remove dead code.
5909         * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
5910         (vect_get_and_check_slp_defs): Pass in the stmt number.
5911         Allow the first def in a reduction to be not a pattern stmt when
5912         the rest of the stmts def are patterns.
5913         (vect_build_slp_tree_1): Allow tcc_expression codes like
5914         SAD_EXPR and DOT_PROD_EXPR.
5915         (vect_build_slp_tree): Adjust.
5916         (vect_analyze_slp): Refactor and move BB vect error message ...
5917         (vect_slp_analyze_bb_1): ... here.
5919 2015-05-22  Aldy Hernandez  <aldyh@redhat.com>
5921         * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
5922         for CSWTCH temporary.
5924 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5926         * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
5927         (arm_unspec_cost): Allow UNSPEC_VOLATILE.  Do not recurse inside
5928         unknown unspecs.
5930 2015-05-22  Richard Biener  <rguenther@suse.de>
5932         PR tree-optimization/66251
5933         * tree-vect-stmts.c (vectorizable_conversion): Properly
5934         set STMT_VINFO_VEC_STMT even for the SLP case.
5936 2015-05-22  Marek Polacek  <polacek@redhat.com>
5938         * doc/extend.texi: Use @pxref instead of @xref.
5940 2015-05-22  hiraditya  <hiraditya@msn.com>
5942         * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
5943         redundant if.
5945 2015-05-22  Richard Biener  <rguenther@suse.de>
5947         PR tree-optimization/65701
5948         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
5949         Move peeling cost models into one place.  Peel for alignment
5950         for single loads only if an aligned load is cheaper than
5951         an unaligned load.
5953 2015-05-22  Marek Polacek  <polacek@redhat.com>
5955         PR c/47043
5956         * doc/extend.texi (Enumerator Attributes): New section.
5957         Document syntax of enumerator attributes.
5959 2015-05-22  Richard Biener  <rguenther@suse.de>
5961         * tree-vect-loop.c (get_reduction_op): New function.
5962         (vect_model_reduction_cost): Use it, add reduc_index parameter.
5963         Make ready for BB reductions.
5964         (vect_create_epilog_for_reduction): Use get_reduction_op.
5965         (vectorizable_reduction): Init reduc_index to a valid value.
5966         Adjust vect_model_reduction_cost call.
5967         * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
5968         operand for reduction defaults.  Add SAD_EXPR support.
5969         Assert we have a neutral op for SLP reductions.
5970         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
5971         walking pattern stmt ops only recurse to SSA names.
5973 2015-05-22  Richard Biener  <rguenther@suse.de>
5975         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
5976         assert with guard, remove check on detected reduction.
5977         (vect_recog_sad_pattern): Likewise.
5978         (vect_recog_widen_sum_pattern): Likewise.
5980 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5982         * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
5983         __always_inline__ attribute.
5984         (vaesdq_u8): Likewise.
5985         (vaesmcq_u8): Likewise.
5986         (vaesimcq_u8): Likewise.
5987         (vsha1cq_u32): Likewise.
5988         (vsha1mq_u32): Likewise.
5989         (vsha1pq_u32): Likewise.
5990         (vsha1h_u32): Likewise.
5991         (vsha1su0q_u32): Likewise.
5992         (vsha1su1q_u32): Likewise.
5993         (vsha256hq_u32): Likewise.
5994         (vsha256h2q_u32): Likewise.
5995         (vsha256su0q_u32): Likewise.
5996         (vsha256su1q_u32): Likewise.
5997         (vmull_p64): Likewise.
5998         (vmull_high_p64): Likewise.
6000 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6002         * final.c (final_scan_insn): Don't check HAVE_peephole with the
6003         preprocessor.
6004         * output.h: Likewise.
6005         * genconfig.c (main): Alwways define HAVE_peephole.
6006         * genpeep.c: Don't emit checks of HAVE_peephole.
6008 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6010         * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
6011         check HAVE_conditional_move with the preprocessor.
6013 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6015         * genconfig.c (main): Always define HAVE_conditional_move.
6016         * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
6017         toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
6018         is defined.
6020 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6022         * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
6023         reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
6024         and FRAME_POINTER_REGNUM with the preprocessor.
6026 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6028         * defaults.h: Add default for STACK_PUSH_CODE.
6029         * expr.c: Don't redefine STACK_PUSH_CODE.
6030         * recog.c: Likewise.
6032 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6034         * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
6035         sched-deps.c: Use if instead of preprocessor checks with
6036         STACK_GROWS_DOWNWARD.
6038 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6040         * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
6041         is defined.
6042         * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
6043         * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
6044         * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
6045         * doc/tm.texi: Regenerate.
6047 2015-05-21  H.J. Lu  <hongjiu.lu@intel.com>
6049         PR target/66232
6050         * config/i386/constraints.md (Bg): New constraint for GOT memory
6051         operand.
6052         * config/i386/i386.md (*call_got_x32): New pattern.
6053         (*call_value_got_x32): Likewise.
6054         * config/i386/predicates.md (GOT_memory_operand): New predicate.
6056 2015-05-21  Jakub Jelinek  <jakub@redhat.com>
6058         PR tree-optimization/66233
6059         * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
6060         Simplify.
6062 2015-05-21  Jeff Law  <law@redhat.com>
6064         * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
6065         than MULT for shadd sequences.
6067 2015-05-08  Jan Hubicka  <hubicka@ucw.cz>
6069         * alias.c (alias_stats): New static var.
6070         (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
6071         (dump_alias_stats_in_alias_c): New function.
6072         * alias.h (dump_alias_stats_in_alias_c): Declare.
6073         * tree-ssa-alias.c (dump_alias_stats): Call it.
6075 2015-05-08  Michael Matz  <matz@suse.de>
6077         * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
6078         to strided_p.
6079         (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
6080         (STMT_VINFO_STRIDED_P): ... this.
6081         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
6082         (vect_verify_datarefs_alignment): Likewise.
6083         (vect_enhance_data_refs_alignment): Likewise.
6084         (vect_analyze_data_ref_access): Likewise.
6085         (vect_analyze_data_refs): Accept strided stores.
6086         * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
6087         (vect_model_load_cost): Adjust for macro rename.
6088         (vectorizable_mask_load_store): Likewise.
6089         (vectorizable_load): Likewise.
6090         (vectorizable_store): Open code strided stores.
6092 2015-05-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6094         * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
6095         Document sqrt_insn.
6097 2015-05-21  Richard Biener  <rguenther@suse.de>
6099         PR c++/66211
6100         * match.pd: Guard pattern optimzing (int)(float)int
6101         conversions to apply only on GIMPLE.
6103 2015-05-21  Jeff Law  <law@redhat.com>
6105         * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
6106         multiply-accumulate/shift-add insn generation.
6108 2015-05-21  Oleg Endo  <olegendo@gcc.gnu.org>
6110         PR target/54236
6111         * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
6112         operands[1] are the same.
6114 2015-05-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
6116         PR middle-end/66221
6117         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
6118         build_distinct_type_copy to copy bounds.
6120 2015-05-21  Thomas Schwinge  <thomas@codesourcery.com>
6122         * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
6123         Change to unsigned int.
6125 2015-05-20  Jeff Law  <law@redhat.com>
6127         * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
6128         (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
6129         (pa_shadd_constant_p): Allow constants for shadd insns rather
6130         than valid scaling constants for memory addresses.
6131         * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
6132         * config/pa/predicates.md (mem_shadd_operand): New predicate.
6133         * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
6134         (shift-add insns using ASHIFT): New patterns.
6136 2015-05-20  Mikhail Maltsev  <maltsevm@gmail.com>
6138         * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
6139         feasible.
6140         (fix_up_fall_thru_edges): Likewise.
6141         (fix_crossing_conditional_branches): Likewise. Promote jump targets
6142         from to rtx_insn to rtx_code_label where feasible.
6143         * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
6144         gen_move_insn (returned type changed to rtx_insn).
6145         * builtins.c (expand_errno_check): Fix arguments of
6146         do_compare_rtx_and_jump (now expects rtx_code_label).
6147         (expand_builtin_acc_on_device): Likewise.
6148         * cfgcleanup.c (try_simplify_condjump): Add cast when calling
6149         invert_jump (now exprects rtx_jump_insn).
6150         * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
6151         (construct_init_block): Use rtx_code_label.
6152         * cfgrtl.c (block_label): Promote return type to rtx_code_label.
6153         (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
6154         calling redirect_jump.
6155         (patch_jump_insn): Likewise.
6156         (redirect_branch_edge): Likewise.
6157         (force_nonfallthru_and_redirect): Likewise.
6158         (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
6159         when suitable.
6160         (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
6161         * cfgrtl.h: Promote return type of block_label to rtx_code_label.
6162         * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
6163         * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
6164         to store the value retured by gen_label_rtx.
6165         * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
6166         rtx_jump_insn.
6167         * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
6168         (split_branches): Fix calls of redirect_jump.
6169         * dojump.c (jumpifnot): Promote argument type from rtx to
6170         rtx_code_label.
6171         (jumpifnot_1): Likewise.
6172         (jumpif): Likewise.
6173         (jumpif_1): Likewise.
6174         (do_jump_1): Likewise.
6175         (do_jump): Likewise. Use rtx_code_label when feasible.
6176         (do_jump_by_parts_greater_rtx): Likewise.
6177         (do_jump_by_parts_zero_rtx): Likewise.
6178         (do_jump_by_parts_equality_rtx): Likewise.
6179         (do_compare_rtx_and_jump): Likewise.
6180         * dojump.h: Update function prototypes.
6181         * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
6182         returns rtx_insn).
6183         * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
6184         rtx_jump_insn.
6185         (emit_label_before): Likewise.
6186         (emit_jump_insn_after_noloc): Likewise.
6187         (emit_jump_insn_after_setloc): Likewise.
6188         (emit_jump_insn_after): Likewise
6189         (emit_jump_insn_before_setloc): Likewise.
6190         (emit_jump_insn_before): Likewise.
6191         (emit_label_before): Promote return type to rtx_code_label.
6192         (emit_label): Likewise.
6193         * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
6194         * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
6195         gen_move_insn.
6196         (emit_stack_restore): Likewise.
6197         * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
6198         (do_cmp_and_jump): Likewise.
6199         * expr.c (expand_expr_real_2): Likewise. Promote some local variables
6200         from rtx to rtx_code_label.
6201         (gen_move_insn_uncast): New function.
6202         * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
6203         * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
6204         * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
6205         * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
6206         invert_jump_1 and redirect_jump_1.
6207         * internal-fn.c (expand_arith_overflow_result_store): Fix call of
6208         do_compare_rtx_and_jump.
6209         (expand_addsub_overflow): Likewise.
6210         (expand_neg_overflow): Likewise.
6211         (expand_mul_overflow): Likewise.
6212         * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
6213         return value of gen_move_insn.
6214         * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
6215         * loop-doloop.c (add_test): Use rtx_code_label.
6216         (doloop_modify): Likewise.
6217         (doloop_optimize): Likewise.
6218         * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
6219         * lra-constraints.c (emit_spill_move): Remove cast of value returned
6220         by gen_move_insn.
6221         (inherit_reload_reg): Add cast when calling dump_insn_slim.
6222         (split_reg): Likewise.
6223         * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
6224         gen_move_insn.
6225         * optabs.c (expand_binop_directly): Remove casts of values returned by
6226         maybe_gen_insn.
6227         (expand_unop_direct): Likewise.
6228         (expand_abs): Likewise.
6229         (maybe_emit_unop_insn): Likewise.
6230         (maybe_gen_insn): Promote return type to rtx_insn.
6231         * optabs.h: Update prototype of maybe_gen_insn.
6232         * postreload-gcse.c (eliminate_partially_redundant_load): Remove
6233         redundant cast.
6234         * recog.c (struct peep2_insn_data): Promote type of insn field to
6235         rtx_insn.
6236         (peep2_reinit_state): Use NULL instead of NULL_RTX.
6237         (peep2_attempt): Remove casts of insn in peep2_insn_data.
6238         (peep2_fill_buffer): Promote argument from rtx to rtx_insn
6239         * recog.h (struct insn_gen_fn): Promote return types of function
6240         pointers and operator ().from rtx to rtx_insn.
6241         * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
6242         (fill_eager_delay_slots): Likewise.
6243         (relax_delay_slots): Likewise.
6244         (make_return_insns): Likewise.
6245         (dbr_schedule): Likewise.
6246         (optimize_skips): Likewise.
6247         (reorg_redirect_jump): Likewise.
6248         (fill_slots_from_thread): Likewise.
6249         * reorg.h: Update prototypes.
6250         * resource.c (find_dead_or_set_registers): Use dyn_cast to
6251         rtx_jump_insn instead of check.  Use it's jump_target method.
6252         * rtl.h (rtx_jump_insn::jump_label): Define new method.
6253         (rtx_jump_insn::jump_target): Define new method.
6254         (rtx_jump_insn::set_jump_target): Define new method.
6255         * rtlanal.c (tablejump_p): Promote type of one local variable.
6256         * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
6257         (sched_analyze_insn): Likewise.
6258         * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
6259         (print_insn): Likewise.
6260         * stmt.c (label_rtx): Promote return type to rtx_insn.
6261         (force_label_rtx): Likewise.
6262         (jump_target_rtx): Define new function.
6263         (expand_label): Use it, get rid of one cast.
6264         (expand_naked_return): Promote rtx to rtx_code_label.
6265         (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
6266         (expand_case): Use rtx_code_label instread of rtx where feasible.
6267         (expand_sjlj_dispatch_table): Likewise.
6268         (emit_case_nodes): Likewise.
6269         * stmt.h: Declare jump_target_rtx.  Update prototypes.  Fix comments.
6270         * store-motion.c (insert_store): Make use of new return type of
6271         gen_move_insn and remove a cast.
6272         (replace_store_insn): Likewise.
6274 2015-05-20  Max Filippov  <jcmvbkbc@gmail.com>
6276         * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
6277         by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
6279 2015-05-20  Jeff Law  <law@redhat.com>
6281         * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
6282         dispose of the jump thread path when the jump threading
6283         opportunity is cancelled.
6285 2015-05-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6287         * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
6288         when printing the caret character.
6290 2015-05-20  Marek Polacek  <polacek@redhat.com>
6292         * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
6294 2015-05-20  Marek Polacek  <polacek@redhat.com>
6296         * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
6297         * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
6298         * gimple-fold.c (canonicalize_bool): Likewise.
6299         (same_bool_result_p): Likewise.
6300         * tree-if-conv.c (parse_predicate): Likewise.
6302 2015-05-20  Marek Polacek  <polacek@redhat.com>
6304         * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
6305         * gimplify.c (gimplify_modify_expr_rhs): Likewise.
6307 2015-05-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6309         * config/aarch64/aarch64.c (aarch64_class_max_nregs):
6310         Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
6311         values.
6313 2015-05-20  Robert Suchanek  <robert.suchanek@imgtec.com>
6315         * config/mips/mips.h (micromips_globals): Declare.
6317 2015-05-20  David Malcolm  <dmalcolm@redhat.com>
6319         * timevar.def (TV_INITIALIZE_RTL): New.
6320         * toplev.c (initialize_rtl): Use an auto_timevar to account this
6321         function's time to TV_INITIALIZE_RTL.
6323 2015-05-20  Ilya Enkovich  <enkovich.gnu@gmail.com>
6325         * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
6326         gimple_build_nop calls.
6327         (chkp_find_bounds_for_elem): Likewise.
6328         (chkp_get_zero_bounds): Likewise.
6329         (chkp_get_none_bounds): Likewise.
6330         (chkp_get_bounds_by_definition): Likewise.
6331         (chkp_generate_extern_var_bounds): Likewise.
6332         (chkp_get_bounds_for_decl_addr): Likewise.
6333         (chkp_get_bounds_for_string_cst): Likewise.
6335 2015-05-20  Bin Cheng  <bin.cheng@arm.com>
6337         PR tree-optimization/65447
6338         * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
6339         (dump_use, dump_uses): Support to dump sub use.
6340         (record_use): New parameters to support sub use.  Remove call to
6341         dump_use.
6342         (record_sub_use, record_group_use): New functions.
6343         (compute_max_addr_offset, split_all_small_groups): New functions.
6344         (group_address_uses, rewrite_use_address): New functions.
6345         (strip_offset): New declaration.
6346         (find_interesting_uses_address): Call record_group_use.
6347         (add_candidate): New assertion.
6348         (infinite_cost_p): Move definition forward.
6349         (add_costs): Check INFTY cost and return immediately.
6350         (get_computation_cost_at): Clear setup cost and dependent bitmap
6351         for sub uses.
6352         (determine_use_iv_cost_address): Compute cost for sub uses.
6353         (rewrite_use_address_1): Rename from old rewrite_use_address.
6354         (free_loop_data): Free sub uses.
6355         (tree_ssa_iv_optimize_loop): Call group_address_uses.
6357 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
6358             Jim Wilson  <jim.wilson@linaro.org>
6360         * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
6361         new  fields loadv and storev.
6362         * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
6363         Initialize loadv and storev.
6364         * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
6365         (cortexa53_extra_costs): Likewise.
6366         (cortexa57_extra_costs): Likewise.
6367         (xgene1_extra_costs): Likewise.
6368         * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
6369         rtx_costs.
6371 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
6373         * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
6374          storev.
6375         (cortexa8_extra_costs): Likewise.
6376         (cortexa5_extra_costs): Likewise.
6377         (cortexa7_extra_costs): Likewise.
6378         (cortexa12_extra_costs): Likewise.
6379         (cortexa15_extra_costs): Likewise.
6380         (v7m_extra_costs): Likewise.
6382 2015-05-20  Jeff Law  <law@redhat.com>
6384         * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
6385         instead of open-coded version.  Also delete the jump thread created
6386         within this function.
6388 2015-05-20  Alan Modra  <amodra@gmail.com>
6390         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
6391         stack adjusting insn.  Formatting.
6392         (rs6000_emit_prologue): Track stack adjusting insn, and use of
6393         r12.  If possible, emit first -fsplit-stack arg pointer insn
6394         before stack adjust.  Don't use r12 to save cr if split-stack.
6396 2015-05-20  Alan Modra  <amodra@gmail.com>
6398         * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
6399         Define.
6400         (rs6000_supports_split_stack): New function.
6401         * gcc/config/rs6000/rs6000.c (machine_function): Add
6402         split_stack_arg_pointer.
6403         (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
6404         (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
6405         rather than virtual_incoming_args_rtx.
6406         (rs6000_va_start): Likewise.
6407         (split_stack_arg_pointer_used_p): New function.
6408         (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
6409         (morestack_ref): New var.
6410         (gen_add3_const, rs6000_expand_split_stack_prologue,
6411         rs6000_internal_arg_pointer, rs6000_live_on_entry,
6412         rs6000_split_stack_space_check): New functions.
6413         (rs6000_elf_file_end): Call file_end_indicate_split_stack.
6414         * gcc/config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
6415         (UNSPECV_SPLIT_STACK_RETURN): Define.
6416         (split_stack_prologue, load_split_stack_limit,
6417         load_split_stack_limit_di, load_split_stack_limit_si,
6418         split_stack_return, split_stack_space_check): New expands and insns.
6419         * gcc/config/rs6000/rs6000-protos.h
6420         (rs6000_expand_split_stack_prologue): Declare.
6421         (rs6000_split_stack_space_check): Declare.
6423 2015-05-20  Alan Modra  <amodra@gmail.com>
6425         * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
6426         (rs6000_stack_info): Don't zero offsets when not saving registers.
6427         (debug_stack_info): Adjust to omit printing unused offsets,
6428         as before.
6429         (direct_return): Test vrsave_size rather than vrsave_mask.
6430         (rs6000_emit_prologue): Likewise.  Remove redundant altivec tests.
6431         (rs6000_emit_epilogue): Likewise.
6433 2015-05-20  Alan Modra  <amodra@gmail.com>
6435         * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
6436         when not saving registers.
6437         (debug_stack_info): Adjust to omit printing unused offsets,
6438         as before.
6439         (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
6440         expression.
6442 2015-05-19  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6444         PR c++/65835
6445         * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
6446         value_type to const char *.
6448 2015-05-19  Sandra Loosemore  <sandra@codesourcery.com>
6450         * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
6451         to build a biarch toolchain again.
6453 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
6455         * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
6456         or implicit declarations.
6457         (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
6458         into it.
6459         (get_odr_type): Check type has linkage before adding bases.
6460         (register_odr_type): Check that type has linkage before adding it.
6461         (type_known_to_have_no_deriavations_p): Rename to ..
6462         (type_known_to_have_no_derivations_p): This one.
6463         * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
6464         (type_known_to_have_no_derivations_p): This one.
6465         * ipa-polymorphic-call.c
6466         (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
6467         type has linkage.
6469 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
6471         * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
6472         (layout_type): Use RECORD_OR_UNION_TYPE_P.
6474 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6476         * config/s390/s390.c (s390_vector_bool_type_p): New function.
6477         (s390_invalid_binary_op): New function.
6478         (TARGET_INVALID_BINARY_OP): Define macro.
6480 2015-05-19  David Sherwood  <david.sherwood@arm.com>
6482         * loop-invariant.c (create_new_invariant): Don't calculate address cost
6483         if mode is not a scalar integer.
6484         (get_inv_cost): Increase computational cost for unused invariants.
6486 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6488         * config.gcc: Add vecintrin.h to extra_headers.  Add s390-c.o to
6489         c_target_objs and cxx_target_objs.  Add t-s390 to tmake_file.
6490         * config/s390/s390-builtin-types.def: New file.
6491         * config/s390/s390-builtins.def: New file.
6492         * config/s390/s390-builtins.h: New file.
6493         * config/s390/s390-c.c: New file.
6494         * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
6495         CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
6496         * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
6497         (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
6498         prototypes.
6499         * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
6500         Include.
6501         (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
6502         (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
6503         variable definitions.
6504         (s390_const_operand_ok): New function.
6505         (s390_expand_builtin): Rewrite.
6506         (s390_init_builtins): New function.
6507         (s390_handle_vectorbool_attribute): New function.
6508         (s390_attribute_table): Add s390_vector_bool attribute.
6509         (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
6510         (s390_branch_condition_mask): Generate masks for new modes.
6511         (s390_expand_vec_compare_cc): New function.
6512         (s390_mangle_type): Add mangling for vector bool types.
6513         (enum s390_builtin): Remove.
6514         (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
6515         efpc builtins.
6516         * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
6517         s390_cpu_cpp_builtins.
6518         (REGISTER_TARGET_PRAGMAS): New macro.
6519         * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
6520         (insn_cmp mode attribute): Add new CC modes.
6521         (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
6522         (lcbb): New pattern definition.
6523         * config/s390/s390intrin.h: Include vecintrin.h.
6524         * config/s390/t-s390: New file.
6525         * config/s390/vecintrin.h: New file.
6526         * config/s390/vector.md: Include vx-builtins.md.
6527         * config/s390/vx-builtins.md: New file.S/390 zvector builtin
6528         support.
6530 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6532         * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
6533         CCVFHE.
6534         * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
6535         (s390_select_ccmode): Likewise.
6536         (s390_canonicalize_comparison): Swap operands if necessary.
6537         (s390_expand_vec_compare_scalar): Expand DFmode compare using
6538         single element vector instructions.
6539         (s390_emit_compare): Call s390_expand_vec_compare_scalar.
6540         (s390_branch_condition_mask): Generate CC masks for the new modes.
6541         * config/s390/s390.md (v0, vf, vd): New mode attributes.
6542         (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
6543         (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
6544         (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
6545         (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
6546         (*extend<DSF:mode><BFP:mode>2): New insn definition.
6547         (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
6548         (extend<DSF:mode><BFP:mode>2): Turn into expander.
6549         (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
6550         (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
6551         (sqrt<mode>2): Add vector instruction.
6553 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6555         * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
6556         constraints.
6557         * config/s390/predicates.md (const0_operand, constm1_operand)
6558         (constable_operand): Accept vector operands.
6559         * config/s390/s390-modes.def: Add supported vector modes.
6560         * config/s390/s390-protos.h (s390_cannot_change_mode_class)
6561         (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
6562         (s390_bytemask_vector_p, s390_expand_vec_strlen)
6563         (s390_expand_vec_compare, s390_expand_vcond)
6564         (s390_expand_vec_init): Add prototypes.
6565         * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
6566         (s390_vector_mode_supported_p): New function.
6567         (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
6568         (s390_contiguous_bitmask_vector_p): New function.
6569         (s390_bytemask_vector_p): New function.
6570         (s390_split_ok_p): Vector regs don't work either.
6571         (regclass_map): Add VEC_REGS.
6572         (s390_legitimate_constant_p): Handle vector constants.
6573         (s390_cannot_force_const_mem): Handle CONST_VECTOR.
6574         (legitimate_reload_vector_constant_p): New function.
6575         (s390_preferred_reload_class): Handle CONST_VECTOR.
6576         (s390_reload_symref_address):  Likewise.
6577         (s390_secondary_reload): Vector memory instructions only support
6578         short displacements.  Rename reload*_nonoffmem* to reload*_la*.
6579         (s390_emit_ccraw_jump): New function.
6580         (s390_expand_vec_strlen): New function.
6581         (s390_expand_vec_compare): New function.
6582         (s390_expand_vcond): New function.
6583         (s390_expand_vec_init): New function.
6584         (s390_dwarf_frame_reg_mode): New function.
6585         (print_operand): Handle addresses with 'O' and 'R' constraints.
6586         (NR_C_MODES, constant_modes): Add vector modes.
6587         (s390_output_pool_entry): Handle vector constants.
6588         (s390_hard_regno_mode_ok): Handle vector registers.
6589         (s390_class_max_nregs): Likewise.
6590         (s390_cannot_change_mode_class): New function.
6591         (s390_invalid_arg_for_unprototyped_fn): New function.
6592         (s390_function_arg_vector): New function.
6593         (s390_function_arg_float): Remove size variable.
6594         (s390_pass_by_reference): Handle vector arguments.
6595         (s390_function_arg_advance): Likewise.
6596         (s390_function_arg): Likewise.
6597         (s390_return_in_memory): Vector values are returned in a VR if
6598         possible.
6599         (s390_function_and_libcall_value): Handle vector arguments.
6600         (s390_gimplify_va_arg): Likewise.
6601         (s390_call_saved_register_used): Consider the arguments named.
6602         (s390_conditional_register_usage): Disable v16-v31 for non-vec
6603         targets.
6604         (s390_preferred_simd_mode): New function.
6605         (s390_support_vector_misalignment): New function.
6606         (s390_vector_alignment): New function.
6607         (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
6608         (TARGET_VECTOR_MODE_SUPPORTED_P)
6609         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
6610         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
6611         (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
6612         (TARGET_VECTOR_ALIGNMENT): Define target macro.
6613         * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
6614         (FIRST_PSEUDO_REGISTER): Increase value.
6615         (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
6616         (VECTOR_REG_P): Define macros.
6617         (FIXED_REGISTERS, CALL_USED_REGISTERS)
6618         (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
6619         (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
6620         (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
6621         Add vector registers.
6622         (CANNOT_CHANGE_MODE_CLASS): Call C function.
6623         (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
6624         (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
6625         memory.
6626         (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
6627         (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
6628         * config/s390/s390.md (UNSPEC_VEC_*): New constants.
6629         (VR*_REGNUM): New constants.
6630         (ALL): New mode iterator.
6631         (INTALL): Remove mode iterator.
6632         Include vector.md.
6633         (movti): Implement TImode moves for VRs.
6634         Disable TImode splitter for VR targets.
6635         Implement splitting TImode GPR<->VR moves.
6636         (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
6637         (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
6638         reload<mode>_la_in, reload<mode>_la_out.
6639         (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
6640         (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
6641         (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
6642         (mov<mode> SF SD): Prefer lder, lde for loading.
6643         Add lrl and strl instructions.
6644         Add vector instructions.
6645         (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
6646         Call s390_expand_vec_strlen on z13.
6647         (*cc_to_int): Change predicate to nonimmediate_operand.
6648         (addti3): Rename to *addti3.  New expander.
6649         (subti3): Rename to *subti3.  New expander.
6650         * config/s390/vector.md: New file.
6652 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6654         * common/config/s390/s390-common.c (processor_flags_table): Add
6655         z13.
6656         * config.gcc: Add z13.
6657         * config/s390/s390-opts.h (enum processor_type): Add
6658         PROCESSOR_2964_Z13.
6659         * config/s390/s390.c (s390_adjust_priority): Check for
6660         PROCESSOR_2964_Z13.
6661         (s390_reorg): Likewise.
6662         (s390_sched_reorder): Likewise.
6663         (s390_sched_variable_issue): Likewise.
6664         (s390_loop_unroll_adjust): Likewise.
6665         (s390_option_override): Likewise. Default to -mvx when available.
6666         * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
6667         (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
6668         (TARGET_VX_ABI): Define macros.
6669         macros.
6670         (TARGET_DEFAULT): Add MASK_OPT_VX.
6671         * config/s390/s390.md ("cpu" attribute): Add z13.
6672         ("cpu_facility" attribute): Add vec.
6673         * config/s390/s390.opt (processor_type): Add z13.
6674         (mvx): New options.
6675         * doc/invoke.texi: Add z13 option for -march.
6677 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6679         * config/s390/predicates.md (shift_count_or_setmem_operand): Add
6680         mode check to make sure that only scalar integer values are
6681         accepted.
6683 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
6685         * tree.c (verify_type_variant): Fix #undef.
6686         (gimple_canonical_types_compatible_p): Move here from lto.c
6687         (verify_type): Verify TYPE_CANONICAL compatibility.
6688         * tree.h (gimple_canonical_types_compatible_p): Declare.
6690 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
6692         PR middle-end/66199
6693         * tree.h (OMP_TEAMS_COMBINED): Define.
6694         * gimplify.c (enum gimplify_omp_var_data): Add
6695         GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
6696         (enum omp_region_type): Add ORT_COMBINED_TEAMS.
6697         (omp_notice_variable): Accept both ORT_TEAMS
6698         and ORT_COMBINED_TEAMS.  Don't recurse if
6699         GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
6700         GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
6701         GOVD_FIRSTPRIVATE.
6702         (omp_no_lastprivate): New function.
6703         (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
6704         and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
6705         notice_outer and set appropriate bits, otherwise make
6706         sure default(none) combined constructs won't complain.
6707         (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
6708         outer special casing, for OMP_CLAUSE_LASTPRIVATE if
6709         omp_no_lastprivate either remove the clause or turn it
6710         into OMP_CLAUSE_PRIVATE.
6711         (gimplify_omp_for): Fix up handling of implicit
6712         lastprivate or linear iterators.
6713         (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
6714         ORT_COMBINED_TEAMS.
6715         * omp-low.c (lower_omp_for_lastprivate): For combined
6716         for simd use fd.loop.n2 from the for rather than simd.
6718 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
6720         * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
6721         instead of gen_rtx_raw_REG.
6722         (cris_expand_epilogue): Likewise.
6723         * config/microblaze/microblaze.c (microblaze_classify_address):
6724         Likewise.
6725         * config/sparc/sparc.md: Likewise.
6727 2015-05-19  Uros Bizjak  <ubizjak@gmail.com>
6729         * config/alpha/alpha.c (alpha_legitimize_reload_address)
6730         (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
6731         CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
6732         (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
6733         Use CASE_CONST_SCALAR_INT.
6734         (print_operand) <case 'M'>: Use mode_width_operand to check the
6735         value of the constant.
6736         * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
6737         * config/alpha/predicates.md (input_operand): Use general_operand
6738         instead of match_code as operand check.
6739         (symbolic_operand): Use match_code with subexpression digits.
6740         * config/alpha/constraints.md (Q): Ditto.
6742 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6744         * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
6746 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6748         * config/s390/s390.c (s390_secondary_reload): Fix check for
6749         load/store relative.
6751 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6753         * recog.h: Increase MAX_RECOG_ALTERNATIVES.  Change type of
6754         alternative_mask to uint64_t.
6756 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
6758         PR tree-optimization/66187
6759         * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
6760         Pass TYPE_SIGN to tree_int_cst_min_precision.  If
6761         !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
6763 2015-05-19  David Malcolm  <dmalcolm@redhat.com>
6765         * diagnostic.c (diagnostic_report_current_module): Strengthen
6766         local "new_map" from const line_map * to
6767         const line_map_ordinary *.
6768         * genmatch.c (error_cb): Likewise for local "map".
6769         (output_line_directive): Likewise for local "map".
6770         * input.c (expand_location_1): Likewise for local "map".
6771         Pass NULL rather than &map to
6772         linemap_unwind_to_first_non_reserved_loc, since the value is never
6773         read from there, and the value written back not read from here.
6774         (is_location_from_builtin_token): Strengthen local "map" from
6775         const line_map * to const line_map_ordinary *.
6776         (dump_location_info): Strengthen locals "map" from
6777         line_map *, one to const line_map_ordinary *, the other
6778         to const line_map_macro *.
6779         * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
6780         const line_map * to const line_map_macro *.
6781         (maybe_unwind_expanded_macro_loc): Add a call to
6782         linemap_check_macro when writing to the "map" field of the
6783         loc_map_pair.
6784         Introduce local const line_map_ordinary * "ord_map", using it in
6785         place of "map" in the part of the function where we know we have
6786         an ordinary map.  Strengthen local "m" from const line_map * to
6787         const line_map_ordinary *.
6789 2015-05-19  Nick Clifton  <nickc@redhat.com>
6791         PR target/66156
6792         * config/msp430/msp430.md (zero_extendhisi2): Add support for
6793         separate source and destination registers.
6795 2015-05-19  Richard Biener  <rguenther@suse.de>
6797         PR tree-optimization/66165
6798         * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
6799         for no load permutation.
6801         PR tree-optimization/66185
6802         * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
6803         when building the SLP node from scalars.
6805 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
6806             Tristan Gingold  <gingold@adacore.com>
6808         * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
6809         * builtins.c (expand_builtin_update_setjmp_buf): Make global.
6810         (expand_stack_restore): Call record_new_stack_level.
6811         (expand_stack_save): Do not call do_pending_stack_adjust.
6812         * builtins.h (expand_builtin_update_setjmp_buf): Declare.
6813         * calls.c (expand_call): Call record_new_stack_level for alloca.
6814         * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
6815         wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
6816         (update_sjlj_context): New global function.
6817         * except.h (update_sjlj_context): Declare.
6818         * explow.c (record_new_stack_level): New global function.
6819         (allocate_dynamic_stack_space): Call record_new_stack_level.
6820         * explow.h (record_new_stack_level): Declare.
6821         * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
6822         * cfgrtl.c (duplicate_insn_chain): Likewise.
6824 2015-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6826         * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
6827         (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
6828         STACK_GROWS_DOWNWARD as normal if.
6829         (expand_call): Likewise.
6831 2015-05-19  Oleg Endo  <olegendo@gcc.gnu.org>
6833         PR target/54236
6834         * config/sh/sh.md (*round_int_even): New insn_and_split and
6835         accompanying new unnamed split.
6837 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
6839         * bitmap.c (bitmap_set_range): Handle count==1 specially.
6840         (bitmap_clear_range): Likewise.
6841         * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
6842         bitmap_set_range unconditionally.
6843         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
6844         * df-scan.c (df_mark_reg): Likewise.
6845         * haifa-sched.c (setup_ref_regs): Likewise.
6846         * sched-rgn.c (update_live_1): Likewise.
6848 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
6850         * regs.h (END_HARD_REGNO): Delete.
6851         (END_REGNO): Move to...
6852         * rtl.h: ...here.
6853         * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
6854         * caller-save.c (mark_set_regs): Likewise.
6855         * combine.c (move_deaths, distribute_notes): Likewise.
6856         * cse.c (invalidate, invalidate_for_call): Likewise.
6857         * df-scan.c (df_ref_record): Likewise.
6858         * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
6859         (record_last_reg_set_info): Likewise.
6860         * reg-stack.c (convert_regs_exit): Likewise.
6861         * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
6862         * resource.c (update_live_status): Likewise.
6863         * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
6865 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
6867         * rtl.h (reg_info): Add an nregs field.
6868         (REG_NREGS): Use it.
6869         (SET_REGNO_RAW): Delete.
6870         (set_regno_raw): New function.
6871         * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
6872         (END_REGNO): Redefine in terms of REG_NREGS.
6873         * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
6874         SET_REGNO_RAW.
6875         * emit-rtl.c (set_mode_and_regno): Likewise.
6876         * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
6877         instead of SET_REGNO_RAW.
6879 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
6881         * rtl.h (PUT_MODE_RAW): New macro.
6882         (PUT_REG_NOTE_KIND): Use it.
6883         (set_mode_and_regno): Declare.
6884         (gen_raw_REG): Change regno to "unsigned int".
6885         (gen_rtx_REG): Change "unsigned" to "unsigned int".
6886         (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
6887         use set_mode_and_regno to change the mode of registers.
6888         * gengenrtl.c (gendef): Use PUT_MODE_RAW.
6889         * emit-rtl.c (set_mode_and_regno): New function.
6890         (gen_raw_REG): Change regno to unsigned int.  Use set_mode_and_regno.
6891         * caller-save.c (reg_save_code): Use set_mode_and_regno.
6892         * expr.c (init_expr_target): Likewise.
6893         * ira.c (setup_prohibited_mode_move_regs): Likewise.
6894         * postreload.c (reload_cse_simplify_operands): Likewise.
6896 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
6898         * caller-save.c (init_caller_save): Use word_mode and
6899         FIRST_PSEUDO_REGISTER when creating temporary rtxes.
6900         * expr.c (init_expr_target): Likewise.
6901         * ira.c (setup_prohibited_mode_move_regs): Likewise.
6902         * postreload.c (reload_cse_regs_1): Likewise.
6904 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
6906         * rtl.def (REG): Change format to "r".
6907         * rtl.h (rtunion): Remove rt_reg.
6908         (reg_info): New structure.
6909         (rtx_def): Add reg field to main union.
6910         (X0REGATTR): Delete.
6911         (REG_CHECK): New macro.
6912         (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
6913         * rtl.c (rtx_format): Document "r".
6914         (rtx_code_size): Handle REG specially.
6915         * gengenrtl.c (special_format): Return true for formats
6916         that include 'r'.
6917         * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
6918         Deal with REG_ATTRS after the field loop.
6919         * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
6920         * expmed.c (init_expmed): Call gen_raw_REG instead of
6921         gen_rtx_raw_REG.
6922         * expr.c (init_expr_target): Likewise.
6923         * regcprop.c (maybe_mode_change): Likewise.
6924         * varasm.c (make_decl_rtl): Likewise.
6925         * final.c (leaf_renumber_regs_insn): Return early after
6926         handling REGs.
6927         * genemit.c (gen_exp): Handle 'r' fields.
6928         * genpeep.c (match_rtx): Likewise.
6929         * gensupport.c (subst_pattern_match): Likewise.
6930         (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
6931         (alter_constraints, subst_dup): Likewise.
6932         * read-rtl.c (read_rtx_code): Likewise.
6933         * print-rtl.c (print_rtx): Likewise.
6934         * genrecog.c (find_operand, find_matching_operand): Likewise.
6935         (validate_pattern, match_pattern_2): Likewise.
6936         (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
6937         (rtx_test::regno_field): New function.
6938         (operator ==, safe_to_hoist_p, transition_parameter_type)
6939         (parameter_type_string, print_parameter_value)
6940         (print_nonbool_test, print_test): Handle new enum values.
6941         * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
6942         * lra-constraints.c (operands_match_p): Likewise.
6944 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
6946         * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
6947         Change type of new_regno to unsigned int.
6948         * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
6949         new_regno to unsigned int.
6950         (df_ref_change_reg_with_loc): Remove old_regno parameter.
6951         Change type of new_regno to unsigned int.  Use SET_REGNO_RAW.
6952         * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
6953         (SET_REGNO_RAW): Add space after ",".
6955 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
6957         * rtl.h (REG_NREGS): New macro
6958         * alias.c (record_set): Use it.
6959         * cfgcleanup.c (mark_effect): Likewise.
6960         * combine.c (likely_spilled_retval_1): Likewise.
6961         (likely_spilled_retval_p, can_change_dest_mode): Likewise.
6962         (move_deaths, distribute_notes): Likewise.
6963         * cselib.c (cselib_record_set): Likewise.
6964         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
6965         * df-scan.c (df_mark_reg): Likewise.
6966         * dse.c (look_for_hardregs): Likewise.
6967         * dwarf2out.c (reg_loc_descriptor): Likewise.
6968         (multiple_reg_loc_descriptor): Likewise.
6969         * expr.c (write_complex_part, read_complex_part): Likewise.
6970         (emit_move_complex): Likewise.
6971         * haifa-sched.c (setup_ref_regs): Likewise.
6972         * ira-lives.c (mark_hard_reg_live): Likewise.
6973         * lra.c (lra_set_insn_recog_data): Likewise.
6974         * mode-switching.c (create_pre_exit): Likewise.
6975         * postreload.c (reload_combine_recognize_const_pattern): Likewise.
6976         (reload_combine_recognize_pattern): Likewise.
6977         (reload_combine_note_use, move2add_record_mode): Likewise.
6978         (reload_cse_move2add): Likewise.
6979         * reg-stack.c (subst_stack_regs_pat): Likewise.
6980         * regcprop.c (kill_value, copy_value): Likewise.
6981         (copyprop_hardreg_forward_1): Likewise.
6982         * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
6983         (build_def_use): Likewise.
6984         * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
6985         (deps_analyze_insn): Likewise.
6986         * sched-rgn.c (check_live_1, update_live_1): Likewise.
6987         * sel-sched.c (count_occurrences_equiv): Likewise.
6988         * valtrack.c (dead_debug_insert_temp): Likewise.
6990 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
6992         * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
6993         * dse.c (note_add_store): Likewise.
6994         * ira-lives.c (mark_hard_reg_dead): Likewise.
6995         * loop-invariant.c (mark_reg_store): Likewise.
6996         (mark_reg_death): Likewise.
6997         * postreload.c (reload_combine): Likewise.
6998         (reload_combine_note_store): Likewise.
6999         (reload_combine_note_use): Likewise.
7000         * recog.c (peep2_reg_dead_p): Likewise.
7002 2015-05-19  Alan Modra  <amodra@gmail.com>
7004         * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
7005         hard registers numbered greater or equal to ARG_POINTER_REGNUM.
7006         (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
7007         unused predicates.
7008         * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
7009         Use altivec_register_operand.  Make insn predicate TARGET_ALTIVEC.
7010         * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
7011         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
7013 2015-05-19  Sameera Deshpande  <Sameera.Deshpande@imgtec.com>
7015         * config/mips/mips.md (JOIN_MODE): New mode iterator.
7016         (join2_load_Store<JOIN_MODE:mode>): New pattern.
7017         (join2_loadhi): Likewise.
7018         (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
7019         load-load and store-stores.
7020         * config/mips/mips.opt (mload-store-pairs): New option.
7021         (TARGET_LOAD_STORE_PAIRS): New macro.
7022         * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
7023         * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
7024         * config/mips/mips.c (mips_load_store_bonding_p): New function.
7026 2015-05-19  Mikhail Maltsev  <maltsevm@gmail.com>
7028         * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
7029         explicit swaps.
7030         * dojump.c (do_compare_rtx_and_jump): Likewise.
7031         * expmed.c (emit_store_flag_1): Likewise.
7032         * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
7033         * final.c (sprint_ul): Use std::reverse for reversing a string.
7034         * fold-const.c (extract_muldiv_1): Use std::swap.
7035         * genmodes.c (emit_mode_int_n): Likewise.
7036         * ifcvt.c (dead_or_predicable): Likewise.
7037         * ira-build.c (ira_merge_live_ranges): Likewise.
7038         (swap_allocno_copy_ends_if_necessary): Likewise.
7039         * ira.c (ira_setup_alts): Likewise.
7040         * loop-iv.c (iv_analyze_expr): Likewise.
7041         (implies_p): Likewise.
7042         (canon_condition): Likewise.
7043         * lra-constraints.c (swap_operands): Likewise.
7044         * lra-lives.c (lra_merge_live_ranges): Likewise.
7045         * omega.c (swap): Remove.
7046         (bswap): Remove.
7047         (omega_unprotect_1): Use std::swap.
7048         (omega_solve_geq): Likewise.
7049         * optabs.c (expand_binop_directly): Likewise.
7050         (expand_binop): Likewise.
7051         (emit_conditional_move): Likewise.
7052         (emit_conditional_add): Likewise.
7053         * postreload.c (reload_cse_simplify_operands): Likewise.
7054         * reg-stack.c (emit_swap_insn): Likewise.
7055         (swap_to_top): Likewise.
7056         (compare_for_stack_reg): Likewise.
7057         (subst_asm_stack_regs): Likewise.
7058         * reload.c (find_reloads): Likewise.
7059         * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
7060         * sel-sched.c (invoke_reorder_hooks): Likewise.
7061         (create_block_for_bookkeeping): Likewise.
7062         * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
7063         (lambda_matrix_right_hermite): Use std::swap.
7064         * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
7065         * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
7066         * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
7067         * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
7068         * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
7069         * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
7070         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
7071         * tree-vrp.c (compare_ranges): Likewise.
7072         * var-tracking.c (add_with_sets): Likewise.
7073         (vt_find_locations): Likewise.
7075 2015-05-18  Andreas Tobler  <andreast@gcc.gnu.org>
7077         * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
7078         pie executables.
7079         (FBSD_ENDFILE_SPEC): Likewise.
7080         * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
7081         config/freebsd-spec.h.
7082         (ENDFILE_SPEC): Likewise.
7084 2015-05-18  Uros Bizjak  <ubizjak@gmail.com>
7085             Richard Henderson  <rth@redhat.com>
7087         PR target/57032
7088         * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
7089         Check for a memory location that is not a reference (using an AND)
7090         to an unaligned location here.
7091         * config/alpha/predicates.md (normal_memory_operand): Remove.
7093 2015-05-18  Alex Velenko  <Alex.Velenko@arm.com>
7095         * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
7096         (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
7098 2015-05-18  Robert Suchanek  <robert.suchanek@imgtec.com>
7100         * config/mips/mips.c (micromips_globals): New variable.
7101         (mips_set_compression_mode): Save and reinitialize target-dependent
7102         state for microMIPS.
7104 2015-05-18  Martin Liska  <mliska@suse.cz>
7106         * dbgcnt.def: Add new counter.
7107         * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
7109 2015-05-18  Martin Liska  <mliska@suse.cz>
7111         * dbgcnt.def: Sort counters.
7112         * opts.c (common_handle_option): Do not compile if
7113         -fdbg-cnt-list is enabled.
7115 2015-05-18  Tom de Vries  <tom@codesourcery.com>
7117         * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
7118         (gimplify_va_arg_expr): Remove do_deref handling.  Remove adding of
7119         address operator to va_list operand.
7120         * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
7121         unconditionally.
7122         * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
7123         operand.
7124         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
7125         * config/s390/s390.c (s390_gimplify_va_arg): Same.
7126         * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
7128 2015-05-18  Tom de Vries  <tom@codesourcery.com>
7130         * tree-ssa-tail-merge.c: Fix whitespace.
7132 2015-05-17  Jim Wilson  <jim.wilson@linaro.org>
7134         * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
7135         cortex-a17, and cortex-a17.cortex-a7.
7137 2015-05-17  Oleg Endo  <olegendo@gcc.gnu.org>
7139         PR target/54236
7140         * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
7142 2015-05-17  Uros Bizjak  <ubizjak@gmail.com>
7144         PR target/66174
7145         * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
7146         QImode inner modes for TARGET_AVX512BW.  Force mask operand
7147         to a register for AVX512F modes.
7149 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
7151         * toplev.c (emit_debug_global_declarations): Do not output debug info
7152         when doing slim LTO objects.
7154 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
7156         * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
7157         odr_types_equivalent_p): Declare.
7158         (odr_type_p): Use gcc_checking_assert.
7159         (type_in_anonymous_namespace_p) Declare.
7160         (type_with_linkage_p): Declare.
7161         * common.opt (Wlto-type-mismatch): New warning.
7162         * ipa-devirt.c (compound_type_base): New function.
7163         (odr_or_derived_type_p): New function.
7164         (odr_types_equivalent_p): New function.
7165         (add_type_duplicate): Simplify.
7166         (type_with_linkage_p): Add hack to prevent false positives on C types
7167         (type_in_anonymous_namespace_p): Likewise.
7168         * tree.c (need_assembler_name_p): Use type_with_linkage.
7169         * tree.h (type_in_anonymous_namespace_p): Remove.
7170         * doc/invoke.texi (-Wlto-type-mismatch): Document
7172 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
7174         * tree.c (verify_type_variant): Verify tree_base and type_common flags.
7175         (verify_type): Verify STRING_FLAG.
7177 2015-05-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7179         PR fortran/44054
7180         * tree-pretty-print.c (percent_K_format): Replace locus pointer
7181         with accessor function.
7182         * tree-diagnostic.c (diagnostic_report_current_function): Use
7183         diagnostic_location function.
7184         (maybe_unwind_expanded_macro_loc): Likewise.
7185         (virt_loc_aware_diagnostic_finalizer): Likewise.
7186         (default_tree_printer): Replace locus pointer with accessor function.
7187         * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
7188         (diagnostic_set_info_translated): Initialize second location.
7189         (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
7190         (diagnostic_show_locus): Handle two locations. Call
7191         diagnostic_print_caret_line.
7192         (diagnostic_print_caret_line): New.
7193         (default_diagnostic_starter): Use diagnostic_location function.
7194         (diagnostic_report_diagnostic): Use diagnostic_location function.
7195         (verbatim): Do not set text.locus.
7196         * diagnostic.h (struct diagnostic_info): Remove location field.
7197         (struct diagnostic_context): Make caret_chars an array of two.
7198         (diagnostic_location): New inline.
7199         (diagnostic_expand_location): Handle two locations.
7200         (diagnostic_same_line): New inline.
7201         (diagnostic_print_caret_line): Declare.
7202         (CARET_LINE_MARGIN): New constant.
7203         * pretty-print.c (pp_printf): Do not set text.locus.
7204         (pp_verbatim): Do not set text.locus.
7205         * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
7206         (struct text_info): Replace locus pointer with locations
7207         array. Add accessor functions.
7209 2015-05-16  Kugan Vivekanandarajah  <kuganv@linaro.org>
7210             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
7212         PR target/65768
7213         * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
7214         * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
7215          large constants in register instead of splitting them.
7217 2015-05-16  Uros Bizjak  <ubizjak@gmail.com>
7219         PR target/66140
7220         * config/alpha/alpha.c (get_aligned_mem): Also look for reload
7221         replacements in memory addresses.
7222         (get_unaligned_address): Ditto.
7224 2015-05-16  James Bowman  <james.bowman@ftdichip.com>
7226         * config/ft32/*: New files for FT32 port.
7227         * doc/install.texi: Add FT32 information.
7228         * doc/invoke.texi: Add FT32 information.
7229         * doc/md.texi: Add FT32 information.
7230         * doc/contrib.texi: Self added.
7232 2015-05-15  Marc Glisse  <marc.glisse@inria.fr>
7234         PR tree-optimization/64454
7235         * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
7236         (-1 - A -> ~A): Remove unnecessary condition.
7238 2015-05-15  Gregor Richards  <gregor.richards@uwaterloo.ca>
7240         * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
7241         * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
7242         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
7244 2015-05-15  Ilya Enkovich  <ilya.enkovich@intel.com>
7246         * ipa-chkp.h (chkp_wrap_function): New.
7247         * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
7248         (chkp_wrap_function_name): New.
7249         (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
7250         to get wrapper name.
7251         * lto-cgraph.c: Include ipa-chkp.h.
7252         (input_cgraph_1): Avoid alias chain for wrappers.
7254 2015-05-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
7256         PR middle-end/66134
7257         * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
7258         (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
7260 2015-05-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7262         * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
7263         (AARCH64_FL_SLOWMUL): Delete.
7264         (AARCH64_FL_CRC): Redefine to 1<<3.
7265         (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
7267 2015-05-15  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7269         * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
7270         casting.
7272 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
7274         * config/alpha/alpha.md (extendqidi2): Use general_operand
7275         instead of some_operand for operand[1] predicate.
7276         (extendhidi2): Ditto.
7277         (cbranchdi4): Use general_operand instead of some_operand
7278         for operand[1] and operands[2] predicates.
7279         (cstoredi4): Ditto.
7280         * config/alpha/predicates.md (some_operand): Remove unused predicate.
7281         (some_ni_operand): Ditto.
7283 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
7285         * config/alpha/alpha.c (alpha_extract_integer): Do not handle
7286         CONST_WIDE_INT and CONST_DOUBLE.  Assert CONST_INT_P (x).
7287         (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
7288         low part of the constant using alpha_emit_set_const_1.
7289         (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
7291 2015-05-14  Rohit Arul Raj  <rohitrulraj@freescale.com>
7293         * varasm.c (output_constant_pool_1): Pass down alignment from
7294         constant pool entry's descriptor to output_constant_pool_2.
7295         (output_object_block): Add comment prior to call to
7296         output_constant_pool_1.
7298 2015-05-14  Vladimir Makarov  <vmakarov@redhat.com>
7300         PR rtl-optimization/65862
7301         * target.def (ira_change_pseudo_allocno_class): New hook.
7302         * targhooks.c (default_ira_change_pseudo_allocno_class): Default
7303         value of the hook.
7304         * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
7305         * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
7306         hook.
7307         * ira-costs.c (find_costs_and_classes): Call the hook and change
7308         classes when it is necessary.
7309         * doc/tm.texi: Update.
7311 2015-05-14  Alexander Monakov  <amonakov@ispras.ru>
7313         * config/i386/i386.md (sibcall_memory): Check that register with
7314         callee address is not also used as one of the arguments, instead
7315         of checking that it is not live after the sibcall.
7316         (sibcall_pop_memory): Ditto.
7317         (sibcall_value_memory): Ditto.
7318         (sibcall_value_pop_memory): Ditto.
7320 2015-05-14  Marc Glisse  <marc.glisse@inria.fr>
7322         * generic-match-head.c (types_match): Handle non-types.
7323         * gimple-match-head.c (types_match): Likewise.
7324         * match.pd: Remove unnecessary TREE_TYPE for types_match.
7326 2015-05-14  Wilco Dijkstra  <wdijkstr@arm.com>
7328         * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
7329         (csneg3<mode>_insn): Enable expansion of pattern.
7331 2015-05-14  Nick Clifton  <nickc@redhat.com>
7333         * config/rl78/rl78.c (rl78_select_section): Select the correct
7334         default section based upon the category of the decl.
7336 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
7338         PR rtl-optimization/30967
7339         * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
7340         destination mode for the cost of scc patterns.
7342 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
7344         * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
7345         using SWIM248 mode iterator.
7346         (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
7347         (*mulvhi4): mark operand[1] as commutative.  Use nonimmediate_operand
7348         for operand[2] constraint.
7349         (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
7351 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
7353         PR middle-end/66133
7354         * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
7355         make sure it is never noreturn, even when the task body does not
7356         return.
7357         (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
7358         right before GIMPLE_OMP_RETURN.
7359         (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
7360         for GIMPLE_OMP_TASK.  For GIMPLE_OMP_RETURN corresponding to
7361         GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
7363 2015-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7365         * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
7366         * tree-ssa-math-opts.c: Include params.h
7367         (pow_synth_sqrt_info): New struct.
7368         (representable_as_half_series_p): New function.
7369         (get_fn_chain): Likewise.
7370         (print_nested_fn): Likewise.
7371         (dump_fractional_sqrt_sequence): Likewise.
7372         (dump_integer_part): Likewise.
7373         (expand_pow_as_sqrts): Likewise.
7374         (gimple_expand_builtin_pow): Use above to attempt to expand
7375         pow as series of square roots.  Removed now unused variables.
7377 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
7379         * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
7380         (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
7381         Remove *p0 and *p1 arguments.  Rewrite function.
7382         (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
7383         (alpha_split_const_mov): Update calls to alpha_extract_integer and
7384         alpha_emit_set_long_const.
7385         (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
7386         (alpha_output_mi_thunk_osf): Ditto.
7387         * config/alpha/alpha.md (movti): Do not check operands[1]
7388         for CONST_DOUBLE.
7390 2015-05-13  Richard Biener  <rguenther@suse.de>
7392         PR tree-optimization/66129
7393         * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
7394         commutative.
7395         (vect_schedule_slp_instance): Fix typo.
7397 2015-05-13  David Malcolm  <dmalcolm@redhat.com>
7399         * common.opt (fdump-internal-locations): New option.
7400         * input.c: Include diagnostic-core.h.
7401         (get_end_location): New function.
7402         (write_digit): New function.
7403         (write_digit_row): New function.
7404         (dump_location_range): New function.
7405         (dump_labelled_location_range): New function.
7406         (dump_location_info): New function.
7407         * input.h (dump_location_info): New prototype.
7408         * toplev.c (compile_file): Handle flag_dump_locations.
7410 2015-05-13  Eric Botcazou  <ebotcazou@adacore.com>
7412         * gimple-expr.h (is_gimple_constant): Reorder.
7413         * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
7415 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
7417         * combine.c (simplify_set): When generating a CC set, if the
7418         source already is in the correct mode, do not wrap it in a
7419         compare.  Simplify the rest of that code.
7421 2015-05-13  Richard Biener  <rguenther@suse.de>
7423         PR tree-optimization/66123
7424         * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
7425         a taken edge.
7427 2015-05-13  Richard Biener  <rguenther@suse.de>
7429         PR middle-end/66110
7430         * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
7431         specially.
7432         * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
7434 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
7436         * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
7437         * aclocal.m4: Regenerated with automake-1.11.6.
7439 2015-05-13  Tom de Vries  <tom@codesourcery.com>
7441         PR tree-optimization/66010
7442         * gimplify.h (gimplify_va_arg_internal): Remove declaration.
7443         * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
7444         * tree-stdarg.c (expand_ifn_va_arg_1): ... here.  Choose between lval
7445         and rval based on do_deref.
7447 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
7449         PR target/65103
7450         * config/i386/i386.c (ix86_rtx_costs): We want to propagate
7451         link time constants into adress expressions and therefore set
7452         their cost to 0.
7454 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
7456         PR target/66112
7457         * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
7458         Use SWI248 iterator instead of SWI.
7459         (*mulv<mode>4_1): Use SWI48 instead of SWI.  Simplify output template.
7460         Use eq_attr "alternative" "0" instead of match_test in
7461         length_immediate attribute computation.
7462         (*mulvhi4, *mulvhi4_1): New define_insns.
7464         PR target/66112
7465         * internal-fn.c (get_min_precision): Use UNSIGNED instead of
7466         SIGNED to get precision of non-negative value.
7468 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
7470         PR target/66048
7471         * function.c (diddle_return_value_1): Process bounds first.
7472         * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
7473         register.
7475 2015-05-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
7477         PR rtl-optimization/64616
7478         * loop-invariant.c (can_move_invariant_reg): New.
7479         (move_invariant_reg): Call above new function to decide whether
7480         instruction can just be moved, skipping creation of temporary
7481         register.
7483 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
7485         PR target/pr66047.c
7486         * i386.c (ix86_function_sseregparm): Only return -1 if local function
7487         with implied regparm is called from -mno-sse function.
7488         (init_cumulative_args): Output error if ix86_function_sseregparm
7489         return -1 and SSE register would be needed.
7490         (function_arg_advance_32): Likewise.
7491         (function_arg_32): Likewise.
7492         * i386.h (ix86_args): Add decl field.
7494 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
7496         PR ipa/65873
7497         * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
7498         inlines across optimization boundary.
7500 2015-05-12  Jason Merrill  <jason@redhat.com>
7502         * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
7503         string literal and macro name.
7505 2015-05-12  Steve Ellcey  <sellcey@imgtec.com>
7507         * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
7508         * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
7509         * config/mips/predicates.md (const_immlsa_operand): Remove log call.
7511 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
7513         * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
7514         (-Wmisleading-indentation): New option.
7515         * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
7517 2015-05-12  Uros Bizjak  <ubizjak@gmail.com>
7519         * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
7520         * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
7521         (alpha_extract_integer): Ditto.
7522         (alpha_legitimate_constant_p): Ditto.
7523         (alpha_split_tmode_pair): Ditto.
7524         (alpha_preferred_reload_class): Add CONST_WIDE_INT.
7525         (alpha_expand_mov): Ditto.
7526         (print_operand): Remove handling of 'H' modifier.
7527         <case 'm'>: Remove CONST_DOUBLE handling.
7528         (summarize_insn): Handle CONST_WIDE_INT.
7529         * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
7530         (anddi3): Ditto.
7531         (movti): Handle CONST_WIDE_INT.
7532         * config/alpha/constraints.md ('H'): Remove constraint definition.
7533         ('G'): Do not match MODE_FLOAT class.
7534         * config/alpha/predicates.md (const0_operand): Also match
7535         const_wide_int.
7536         (non_add_const_operand): Ditto.
7537         (non_zero_const_operand): Ditto.
7538         (some_operand): Ditto.
7539         (input_operand): Ditto.  Handle CONST_WIDE_INT.
7540         (and_operand): Do not match const_double.
7541         * config/alpha/sync.md (fetchop_constr): Remove H constraint.
7543 2015-05-12  Andrew MacLeod  <amacleod@redhat.com>
7545         PR target/65697
7546         * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
7547         (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
7548         * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
7549         is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
7550         is_mm_seq_cst, is_mm_sync): New accessor functions.
7551         * builtins.c (expand_builtin_sync_operation,
7552         expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
7553         (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
7554         (get_memmodel,  expand_builtin_atomic_compare_exchange,
7555         expand_builtin_atomic_load, expand_builtin_atomic_store,
7556         expand_builtin_atomic_clear): Use new accessor routines.
7557         (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
7558         * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
7559         (maybe_emit_sync_lock_test_and_set): Use new accessors and
7560         MEMMODEL_SYNC_ACQUIRE.
7561         (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
7562         (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
7563         expand_atomic_store): Use new accessors.
7564         * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
7565         * tsan.c (instrument_builtin_call): Update check for memory model beyond
7566         final enum to use MEMMODEL_LAST.
7567         * c-family/c-common.c: Use new accessor for memmodel_base.
7568         * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
7569         accessors.
7570         * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
7571         arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
7572         mem_thread_fence, *dmb): Likewise.
7573         * config/alpha/alpha.c (alpha_split_compare_and_swap,
7574         alpha_split_compare_and_swap_12): Likewise.
7575         * config/arm/arm.c (arm_expand_compare_and_swap,
7576         arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
7577         * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
7578         atomic_loaddi): Likewise.
7579         * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
7580         Likewise.
7581         * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
7582         * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
7583         use new accessors.
7584         * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
7585         atomic_store<mode>, atomic_compare_and_swap<mode>,
7586         atomic_exchange<mode>): Use new accessors.
7587         * config/mips/mips.c (mips_process_sync_loop): Likewise.
7588         * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
7589         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
7590         rs6000_post_atomic_barrier): Add new cases.
7591         (rs6000_expand_atomic_compare_and_swap): Use new accessors.
7592         * config/rs6000/sync.md (mem_thread_fence): Add new cases.
7593         (atomic_load<mode>): Add new cases and use new accessors.
7594         (store_quadpti): Add new cases.
7595         * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
7596         accessors.
7597         * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
7598         * doc/extend.texi: Update docs to indicate 16 bits are used for memory
7599         model, not 8.
7601 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
7603         * ipa-devirt.c (type_with_linkage_p): New function.
7604         (type_in_anonymous_namespace_p): Move here from tree.c; assert that
7605         type has linkage.
7606         (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
7607         (can_be_name_hashed_p): Simplify.
7608         (hash_odr_name): Check that type has linkage before checking if it is
7609         anonymous.
7610         (types_same_for_odr): Likewise.
7611         (odr_name_hasher::equal): Likewise.
7612         (odr_subtypes_equivalent_p): Likewise.
7613         (warn_types_mismatch): Likewise.
7614         (get_odr_type): Likewise.
7615         (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
7616         * ipa-utils.h (odr_type_p): Move offline.
7617         * tree.c (need_assembler_name_p): Fix handling of types
7618         without linkages.
7619         (type_in_anonymous_namespace_p): Move to ipa-devirt.c
7621 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
7623         * timevar.c (timevar_enable): Delete in favor of...
7624         (g_timer): New global.
7625         (struct timevar_def): Move to timevar.h inside class timer.
7626         (struct timevar_stack_def): Likewise.
7627         (timevars): Delete global in favor of field "m_timevars" within
7628         class timer in timevar.h
7629         (stack): Likewise, in favor of field "m_stack".
7630         (unused_stack_instances): Likewise, in favor of field
7631         "m_unused_stack_instances".
7632         (start_time): Likewise, in favor of field "m_start_time".
7633         (get_time): Eliminate check for timevar_enable.
7634         (timer::timer): New function, built from part of timevar_init.
7635         (timevar_init): Rewrite idempotency test from using
7636         "timevar_enable" bool to using dynamic allocation of "g_timer".
7637         Move rest of implementation into timer's constructor.
7638         (timevar_push_1): Rename to...
7639         (timer::push): ...this, adding "m_" prefixes to variables that
7640         are now fields of timer.
7641         (timevar_pop_1): Likewise, rename to...
7642         (timer::pop): ...this, and add "m_" prefixes.
7643         (timevar_start): Replace test for "timevar_enable" with one for
7644         "g_timer", and move bulk of implementation to...
7645         (timer::start): ...here, adding "m_" prefixes.
7646         (timevar_stop): Likewise, from here...
7647         (timer::stop): ...to here.
7648         (timevar_cond_start): Likewise, from here...
7649         (timer::cond_start): ...to here.
7650         (timevar_cond_stop): Likewise, from here...
7651         (timer::cond_stop): ...to here.
7652         (validate_phases): Rename to...
7653         (timer::validate_phases): ...this, and add "m_" prefixes.  Make
7654         locals "total" and "tv" const.
7655         (timevar_print): Rename to...
7656         (timer::print): ...this, and add "m_" prefixes.  Make locals
7657         "total" and "tv" const.  Eliminate test for timevar_enable.
7658         * timevar.h (timevar_enable): Eliminate.
7659         (g_timer): New declaration.
7660         (timevar_push_1): Eliminate.
7661         (timevar_pop_1): Eliminate.
7662         (timevar_print): Eliminate.
7663         (class timer): New class.
7664         (timevar_push): Rewrite to use g_timer.
7665         (timevar_pop): Likewise.
7666         * toplev.c (toplev::~toplev): Likewise.
7668 2015-05-12  Richard Earnshaw  <rearnsha@arm.com>
7670         * arm-protos.h (arm_sched_autopref): Delete.
7671         (tune_params): Re-organize, use enums for flag values.
7672         (FUSE_OPS): New macro.
7673         * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
7674         (ARM_PREFETCH_BENEFICIAL): Likewise.
7675         (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
7676         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
7677         (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
7678         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
7679         (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
7680         (arm_cortex_a57_tune,  arm_xgene1_tune, arm_cortex_a5_tune)
7681         (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
7682         (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
7683         format.
7684         (arm_option_override, thumb2_reorg, arm_print_tune_info)
7685         (aarch_macro_fusion_pair_p): Update uses of current_tune.
7686         * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
7688 2015-05-12  Sandra Loosemore  <sandra@codesourcery.com>
7690         * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
7691         "break".
7693 2015-05-12  Chung-Lin Tang  <cltang@codesourcery.com>
7694             Sandra Loosemore <sandra@codesourcery.com>
7696         * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
7697         value.
7698         (REG_CLASS_NAMES): Add "IJMP_REGS".
7699         (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
7700         * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
7701         use new "c" register constraint.
7702         * config/nios2/constraint.md (c): New register constraint
7703         corresponding to IJMP_REGS.
7705 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
7707         * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
7708         *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
7709         define_splits): Delete, revamp, transmogrify into ...
7710         (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
7711         *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
7712         *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
7713         New.
7715 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
7717         * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
7718         gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
7720 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
7722         * config/rs6000/rs6000.md (extzv): FAIL for SImode.
7723         (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
7724         *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
7725         *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
7726         *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
7727         *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
7728         *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
7729         *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
7730         *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
7731         *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
7732         *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
7733         *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
7734         *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
7735         *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
7736         *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
7737         *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
7738         and 30 corresponding splitters): Delete.
7740 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
7742         * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
7743         zero_extract.
7745 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
7747         * combine.c (recog_for_combine_1): New function, factored out
7748         from recog_for_combine.
7749         (change_zero_ext): New function.
7750         (recog_for_combine): If recog fails, try again with the pattern
7751         modified by change_zero_ext; if that still fails, restore the
7752         pattern.
7754 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
7756         * combine.c (get_undo_marker): New function.
7757         (undo_to_marker): New function, largely factored out from ...
7758         (undo_all): ... this.  Adjust.
7760 2015-05-12  Richard Biener  <rguenther@suse.de>
7762         PR tree-optimization/66101
7763         * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
7764         fixup if we turn a loop exit edge to a fallthru edge.
7766 2015-05-12  Richard Biener  <rguenther@suse.de>
7768         PR tree-optimization/37021
7769         * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
7770         (SLP_TREE_TWO_OPERATORS): New define.
7771         * tree-vect-slp.c (vect_create_new_slp_node): Initialize
7772         SLP_TREE_TWO_OPERATORS.
7773         (vect_build_slp_tree_1): Allow two mixing plus/minus in an
7774         SLP node.
7775         (vect_build_slp_tree): Adjust.
7776         (vect_analyze_slp_cost_1): Likewise.
7777         (vect_schedule_slp_instance): Vectorize mixing plus/minus by
7778         emitting two vector stmts and mixing the results.
7780 2015-05-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
7782         * call.c (print_z_candidates): Remove dead code.
7784 2015-05-12  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7786         * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
7787         and zEC12_simple_fp.
7788         * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
7789         to 1.
7791 2015-05-12  Tom de Vries  <tom@codesourcery.com>
7793         PR tree-optimization/66010
7794         * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
7795         ifn_va_arg.
7796         * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
7797         (gimplify_va_arg_internal): Remove loc parameter.  Assert no array-typed
7798         va_lists are passed, and remove corresponding handling.
7799         (gimplify_va_arg_expr): Only take address of ap if necessary.  Add
7800         do_deref argument to ifn_va_arg.
7801         * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
7802         ifn_va_arg.
7804 2015-05-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7806         PR target/65955
7807         * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
7808         REG before taking its REGNO.
7810 2015-05-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
7812         * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
7813         rsp->sign_bit_copies and rsp->nonzero_bits into ...
7814         (update_rsp_from_reg_equal): This.  Also use REG_EQUAL note on src if
7815         present to get more accurate information about the number of sign bit
7816         copies and non zero bits.
7818 2015-05-12  Richard Biener  <rguenther@suse.de>
7820         * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
7821         do not allow unrolling.
7823 2015-05-11  Richard Henderson  <rth@redhat.com>
7825         * config/i386/i386-modes.def (CCP): New.
7826         * config/i386/i386.c (put_condition_code): Handle it.
7827         (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
7829 2015-05-11  Richard Henderson  <rth@redhat.com>
7831         * target.def (md_asm_clobbers): Replace with...
7832         (md_asm_adjust): this.
7833         * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
7834         (TARGET_MD_ASM_ADJUST): New.
7835         * tm.texi: Rebuild.
7836         * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
7837         * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
7838         * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
7840         * cfgexpand.c (check_operand_nalternatives): Accept vector of
7841         constraints instead of lists of outputs and inputs.
7842         (expand_asm_stmt): Save and restore input_location around the
7843         body of the function.  Move asm data into vectors instead of
7844         building tree lists.  Generate cleanup sequences as needed,
7845         rather than waiting til the end.  Use new md_asm_adjust hook.
7847         * config/vxworks.c: Include vec.h before target.h.
7848         * gimple.c: Likewise.
7849         * incpath.c: Likewise.
7850         * mode-switching.c: Likewise.
7852         * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
7853         (cris_md_asm_adjust): this.
7854         (TARGET_MD_ASM_CLOBBERS): Remove.
7855         (TARGET_MD_ASM_ADJUST): New.
7856         * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
7857         (ix86_md_asm_adjust): this.
7858         (TARGET_MD_ASM_CLOBBERS): Remove.
7859         (TARGET_MD_ASM_ADJUST): New.
7860         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
7861         (mn10300_md_asm_adjust): this.
7862         (TARGET_MD_ASM_CLOBBERS): Remove.
7863         (TARGET_MD_ASM_ADJUST): New.
7864         * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
7865         (rs6000_md_asm_adjust): this.
7866         (TARGET_MD_ASM_CLOBBERS): Remove.
7867         (TARGET_MD_ASM_ADJUST): New.
7868         * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
7869         (visium_md_asm_adjust): this.
7870         (TARGET_MD_ASM_CLOBBERS): Remove.
7871         (TARGET_MD_ASM_ADJUST): New.
7873 2015-05-11  Richard Henderson  <rth@redhat.com>
7875         * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
7876         if noutputs is zero.
7877         * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
7879         * cfgexpand.c (expand_asm_operands): Merge into...
7880         (expand_asm_stmt): ... here.
7882         * cfgexpand.c (expand_asm_operands): Don't call
7883         resolve_asm_operand_names.
7884         * stmt.c (resolve_asm_operand_names): Clarify block comment.
7886 2015-05-11  Jan Hubicka  <hubicka@ucw.cz>
7888         * dwarf2out.c (gen_member_die): Sanity check that we access
7889         TYPE_MAIN_VARIANT for TYPE_METHODS.
7890         * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
7891         checking TYPE_METHODS.
7892         * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
7893         if non-null.
7894         (build_distinct_type_copy): Clear TYPE_METHODS.
7895         (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
7896         (verify_type): Allow TYPE_METHODS to be error_mark_node.
7897         * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
7899 2015-05-11  Eric Botcazou  <ebotcazou@adacore.com>
7901         * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
7902         (emit_pattern_before_setloc): Likewise.
7904 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
7906         * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
7907         for define_peephole2s.
7908         (get_peephole2_pattern): New function.
7909         (main): Use it.  Call validate_pattern.
7911 2015-05-11  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
7913         * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
7914         LAST_CALLEE_SAVED_REG instead of hard-coded register number.
7915         (Last callee saved reg is different for AVR_TINY architecture)
7917 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
7919         * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
7920         when looking for memory references.
7922 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
7924         PR target/65753
7925         * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
7926         via function pointers.
7928 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
7930         * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
7931         indirect call by forcing address into a pseudo with -fno-plt.
7932         * common.opt (flag_plt): New option.
7933         * doc/invoke.texi (Code Generation Options): Add -fno-plt.
7934         ([-fno-plt]): Document.
7936 2015-05-11  Markus Trippelsdorf  <markus@trippelsdorf.de>
7938         PR bootstrap/66105
7939         * config/rs6000/option-defaults.h: Add space between string literal
7940         and macro name.
7942 2015-05-11  Thomas Preud'homme  <thomas.preudhomme@arm.com>
7944         * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
7945         accross ARM targets.
7947 2015-05-11  Christian Bruel  <christian.bruel@st.com>
7949         * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
7950         * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
7952 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
7954         PR rtl-optimization/66076
7955         * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
7956         Don't grow the heap array if it is already big enough from a
7957         previous iteration.
7959 2015-05-11  Christian Bruel  <christian.bruel@st.com>
7961         * config/arm/arm-protos.h (arm_declare_function_name): Declare.
7962         (is_called_in_ARM_mode): Remove.
7963         * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
7964         (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
7965         * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
7966          arm_declare_function_name.
7968 2015-05-11  Christian Bruel  <christian.bruel@st.com>
7970         * config/arm/arm.c (arm_option_override): Reoganized and split into :
7971         (arm_option_params_internal); New function.
7972         (arm_option_check_internal): New function.
7973         (arm_option_override_internal): New function.
7974         (thumb_code, thumb1_code): Remove.
7975         * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
7976         (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
7977         (thumb_code, thumb1_code): Remove.
7978         * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
7980 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
7982         * config/alpha/alpha.c (alpha_emit_set_const_1)
7983         (alpha_emit_set_long_const, alpha_extract_integer)
7984         (alpha_legitimate_constant_p, alpha_split_const_mov)
7985         (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
7986         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
7987         (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
7988         HOST_WIDE_INT_1U.
7989         * config/alpha/predicates.md (mode_mask_operand): Do not match
7990         const_double RTX.
7991         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
7992         * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
7993         Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
7994         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
7995         (*negtf_internal): Use gen_int_mode instead of immed_double_const.
7997 2015-05-11  Jakub Jelinek  <jakub@redhat.com>
7999         PR target/65780
8000         * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
8001         default_binds_local_p_2.
8002         * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
8003         * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
8005 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
8007         * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
8009 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
8011         Patch by Richard Biener
8012         * coverage.c (coverage_obj_init): Delay building of type variant
8013         until the type is finished.
8015 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
8017         * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
8018         mismatch between C and C++ type; compoare correctly ARG_TYPES
8019         for non-prototypes and output correctly parameter index for METHOD_TYPE.
8020         (odr_types_equivalent_p): Fix wording of warning about attributes;
8021         it is OK to match prototype and non-prototype.
8023 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
8025         * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
8026         TYPE_ARG_TYPES list.
8027         (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
8028         * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
8030 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
8032         * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
8033         * tree.h (is_lang_specific): Constify.
8035 2015-05-09  Marc Glisse  <marc.glisse@inria.fr>
8037         PR tree-optimization/64454
8038         * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
8039         Rewrite.
8041 2015-05-08  Jason Merrill  <jason@redhat.com>
8043         * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
8044         config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
8045         config/darwin.h, config/darwin9.h, config/elfos.h,
8046         config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
8047         config/microblaze/microblaze.h, config/mips/mips.h,
8048         config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
8049         config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
8050         config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
8051         config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
8052         config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
8053         cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
8054         dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
8055         ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
8056         ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
8057         modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
8058         tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
8059         between string literal and macro name.
8061 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8063         * jump.c: Change argument types to rtx_insn *.
8064         * rtl.h: Adjust.
8066 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8068         * lra-constraints.c: Change argument type to rtx_insn *.
8070 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8072         * df-problems.c: Change argument type to rtx_insn *.
8074 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8076         * combine.c: Change argument type to rtx_insn *.
8078 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8080         * rtl.h: Adjust.
8081         * rtlanal.c: Change argument type to rtx_insn *.
8083 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8085         * sched-deps.c: Change argument types to rtx_insn *.
8086         * sched-int.h: Adjust.
8088 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8090         * dwarf2cfi.c: Change argument type to rtx_insn *.
8092 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8094         * ira.c (decrease_live_ranges_number): Changetype of local
8095         variable to rtx_insn *.
8096         * recog.c: Change argument types to rtx_insn *.
8097         * recog.h: Adjust.
8099 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8101         * reorg.c: Change argument types to rtx_insn *.
8103 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8105         * ira-color.c: Change argument types to rtx_insn *.
8106         * lra-eliminations.c: Likewise.
8107         * ira.h: Adjust.
8109 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8111         * gcse.c: Change argument types to rtx_insn *.
8113 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8115         * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
8117 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8119         * emit-rtl.c (emit_debug_insn_before): Change argument type to
8120         rtx_insn *.
8121         * rtl.h: Adjust.
8123 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8125         * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
8126         * rtl.h: Adjust.
8128 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8130         * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
8131         * rtl.h: Adjust.
8133 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8135         * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
8136         * rtl.h: Adjust.
8138 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8140         * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
8141         * rtl.h: Adjust.
8143 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8145         * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
8146         to rtx_insn *.
8147         * rtl.h: Adjust.
8149 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8151         * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
8152         to rtx_insn *.
8153         * rtl.h: Likewise.
8155 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8157         * except.c (can_nonlocal_goto): Change type of argument to
8158         rtx_insn *.
8159         * rtl.h: Adjust.
8161 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8163         * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
8164         * rtl.h: Adjust.
8166 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8168         * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
8169         * cfgrtl.c (can_delete_label_p): Adjust.
8170         * rtl.h: likewise.
8172 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8174         * reorg.c (stop_search_p): Change argument to rtx_insn *.
8176 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8178         * except.c (make_reg_eh_region_note): Change argument to
8179         rtx_insn *.
8180         (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
8181         * except.h: Adjust.
8183 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8185         * mode-switching.c (commit_mode_sets): Change type of local
8186         variable from rtx to rtx_insn *.
8188 2015-05-08  Jim Wilson  <jim.wilson@linaro.org>
8190         * doc/install.texi (--enable-languages): Add missing jit and lto info.
8191         Add ^ to grep command.
8192         * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
8193         arg to last gimple_simplify declaration.  Add missing gimple_build
8194         declaration for built-in function case with four tree args.
8196 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
8197             Szabolcs Nagy  <szabolcs.nagy@arm.com>
8199         * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
8200         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
8201         (GNU_USER_DYNAMIC_LINKERN32): Update.
8203 2015-05-08  Richard Biener  <rguenther@suse.de>
8205         PR tree-optimization/66036
8206         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
8207         Handle strided group loads.
8208         (vect_verify_datarefs_alignment): Likewise.
8209         (vect_enhance_data_refs_alignment): Likewise.
8210         (vect_analyze_group_access): Likewise.
8211         (vect_analyze_data_ref_access): Likewise.
8212         (vect_analyze_data_ref_accesses): Likewise.
8213         * tree-vect-stmts.c (vect_model_load_cost): Likewise.
8214         (vectorizable_load): Likewise.
8216 2015-05-08  Segher Boessenkool  <segher@kernel.crashing.org>
8218         * config/rs6000/rs6000.md: Require operand inequality in one
8219         of the peepholes.
8221 2015-05-08  Richard Sandiford  <richard.sandiford@arm.com>
8222             Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
8224         * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
8225         from (set ...).
8226         * config/rx/rx.md (movdi, movdf): Likewise.
8227         Likewise for define_peephole2s.
8229 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
8231         * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
8232         vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
8233         vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
8234         vtst_u64): Rewrite using gcc vector extensions.
8236 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
8238         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
8239         vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
8241 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
8243         * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
8245 2015-05-08  Szabolcs Nagy  <szabolcs.nagy@arm.com>
8247         * config/glibc-stdint.h (OPTION_MUSL): Define.
8248         (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
8249         Change the definition based on OPTION_MUSL for 64 bit targets.
8250         * config/linux.h (OPTION_MUSL): Redefine.
8251         * config/alpha/linux.h (OPTION_MUSL): Redefine.
8252         * config/rs6000/linux.h (OPTION_MUSL): Redefine.
8253         * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
8255 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
8256             Szabolcs Nagy  <szabolcs.nagy@arm.com>
8258         * config.gcc (LIBC_MUSL): New tm_defines macro.
8259         * config/linux.h (OPTION_MUSL): Define.
8260         (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
8261         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
8262         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
8263         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
8264         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
8265         * config/linux.opt (mmusl): New option.
8266         * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
8267         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
8268         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
8269         * configure: Regenerate.
8271 2015-05-08  H.J. Lu  <hongjiu.lu@intel.com>
8272             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
8274         PR target/48904
8275         * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
8276         * config/i386/knetbsd-gnu64.h: New file.
8278 2015-05-08  Marek Polacek  <polacek@redhat.com>
8280         PR c/64918
8281         * doc/invoke.texi: Document -Woverride-init-side-effects.
8283 2015-05-07  Marek Polacek  <polacek@redhat.com>
8285         PR c/65179
8286         * doc/invoke.texi: Document -Wshift-negative-value.
8288 2015-05-06  Aditya Kumar  <hiraditya@msn.com>
8290         * gcov-tool.c (do_merge): Refactore to remove int ret.
8291         * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
8292         !type == FUNC to type != FUNC.
8293         * reload.h (struct target_reload): Changee to type of
8294         x_spill_indirect_levels from bool to unsigned char.
8296 2015-05-07  Richard Sandiford  <richard.sandiford@arm.com>
8298         * rtl.h (always_void_p): New function.
8299         * gengenrtl.c (always_void_p): Likewise.
8300         (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
8301         with code foo are always VOIDmode.
8302         * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
8303         * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
8304         compare-elim.c, config/aarch64/aarch64.c,
8305         config/aarch64/aarch64.md, config/alpha/alpha.c,
8306         config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
8307         config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
8308         config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
8309         config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
8310         config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
8311         config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
8312         config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
8313         config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
8314         config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
8315         config/ia64/vect.md, config/iq2000/iq2000.c,
8316         config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
8317         config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
8318         config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
8319         config/mep/mep.c, config/microblaze/microblaze.c,
8320         config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
8321         config/mn10300/mn10300.c, config/msp430/msp430.c,
8322         config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
8323         config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
8324         config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
8325         config/rs6000/altivec.md, config/rs6000/rs6000.c,
8326         config/rs6000/rs6000.md, config/rs6000/vector.md,
8327         config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
8328         config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
8329         config/sh/sh.md, config/sh/sh_treg_combine.cc,
8330         config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
8331         config/spu/spu.md, config/stormy16/stormy16.c,
8332         config/tilegx/tilegx.c, config/tilegx/tilegx.md,
8333         config/tilepro/tilepro.c, config/tilepro/tilepro.md,
8334         config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
8335         config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
8336         expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
8337         lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
8338         reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
8339         var-tracking.c: Update calls accordingly.
8341 2015-05-07  Segher Boessenkool  <segher@kernel.crashing.org>
8343         PR middle-end/192
8344         PR middle-end/54303
8345         * varasm.c (function_mergeable_rodata_prefix): New function.
8346         (mergeable_string_section): Use it.
8347         (mergeable_constant_section): Use it.
8349 2015-05-07  Jeff Law  <law@redhat.com>
8351         PR target/39726
8352         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
8353         simplifier to narrow arithmetic.
8354         * generic-match-head.c: (types_match, single_use): New functions.
8355         * gimple-match-head.c: (types_match, single_use): New functions.
8357 2015-05-07  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
8359         * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
8360         rtx type.
8362 2015-05-07  Richard Biener  <rguenther@suse.de>
8364         PR tree-optimization/66002
8365         * passes.def: Schedule another pass_merge_phi after ifcombine, right
8366         before phiopt.
8368 2015-05-07  Marek Polacek  <polacek@redhat.com>
8369             Martin Uecker  <uecker@eecs.berkeley.edu>
8371         * doc/invoke.texi: Document -fsanitize=bounds-strict.
8372         * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
8373         into SANITIZE_NONDEFAULT.
8374         * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
8376 2015-05-07  Uros Bizjak  <ubizjak@gmail.com>
8378         PR target/66015
8379         * config/alpha/alpha.c (alpha_override_options_after_change): New.
8380         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
8381         (alpha_override_options): Move align_loops, align_jumps and
8382         align_functions handling into alpha_override_options_after_change.
8384 2015-05-06  Sandra Loosemore  <sandra@codesourcery.com>
8385             Chris Jones  <chrisj@nvidia.com>
8386             Joshua Conner  <jconner@nvidia.com>
8388         * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
8389         linking of crtfastmath.o.
8390         * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
8392 2015-05-06  Segher Boessenkool  <segher@kernel.crashing.org>
8394         * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
8395         (cstore<mode>4_unsigned_imm): New expander.
8396         (cstore<mode>4): Remove empty constraint strings.  Use the new
8397         expanders.
8399 2015-05-06  Yvan Roux  <yvan.roux@linaro.org>
8401         PR target/64208
8402         * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
8403         alternatives.
8405 2015-05-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
8407         * config/aarch64/geniterators.sh: Use standard BRE in sed.
8409 2015-05-06  Alan Modra  <amodra@gmail.com>
8411         PR target/66033
8412         * config/rs6000/rs6000.md (nop): Use an unspec pattern.
8413         (UNSPEC_NOP): Define.
8414         (reload_vsx_from_gpr<mode>): Add missing DONE.
8415         (reload_gpr_from_vsx<mode>): Likewise.
8416         * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
8417         (vsx_div_v2di, vsx_udiv_v2di): Likewise.
8419 2015-05-06  Christian Bruel  <christian.bruel@st.com>
8421         PR target/66015
8422         * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
8423         align_jumps, align_functions into aarch64_override_options_after_change.
8425 2015-05-06  Richard Biener  <rguenther@suse.de>
8427         * tree-vect-slp.c (vect_supported_load_permutation_p): Use
8428         vect_transform_slp_perm_load to check if we support a permutation
8429         for basic-block vectorization.
8431 2015-05-06  Nick Clifton  <nickc@redhat.com>
8433         * config/rl78/rl78.c (need_to_save): Save register 22 if it is
8434         used, even if it is not being used as a frame pointer.
8436 2015-05-05  Jason Merrill  <jason@redhat.com>
8438         * dwarf2out.c (gen_member_die): Don't emit anything for an
8439         anonymous class constructor.
8441 2015-05-05  David Malcolm  <dmalcolm@redhat.com>
8443         * auto-profile.c (afdo_find_equiv_class): Fix indentation so
8444         that it reflects the block structure.
8445         (afdo_propagate_edge): Likewise.
8446         (afdo_calculate_branch_prob): Likewise.
8447         (afdo_annotate_cfg): Likewise.
8448         * cfgcleanup.c (equal_different_set_p): Likewise.
8449         (try_crossjump_to_edge): Likewise.
8450         * cgraph.c (cgraph_node::verify_node): Likewise.
8451         * cgraphunit.c (expand_all_functions): Likewise.
8452         * config/i386/i386.c (ix86_expand_copysign): Likewise.
8453         (exact_dependency_1): Likewise.
8454         * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
8455         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
8456         * gensupport.c (process_define_subst): Likewise.
8457         * lto-wrapper.c (merge_and_complain): Likewise.
8458         * tree-if-conv.c (if_convertible_bb_p): Likewise.
8459         * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
8460         * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
8461         * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
8462         * tree-vect-loop.c (vectorizable_reduction): Likewise.
8463         * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
8464         * tree-vect-stmts.c (vectorizable_shift): Likewise.
8465         * tree-vrp.c (vrp_finalize): Likewise.
8466         * tree.c (variably_modified_type_p): Likewise.
8468 2015-05-05  Jack Howarth  <howarth.at.gcc@gmail.com>
8470         * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
8471         on darwin12 and later.
8472         * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
8473         file to pass -rdynamic on darwin12 and later.
8474         * config/darwin.opt (rdynamic): Add.
8476 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
8478         * doc/extend.texi (C Extensions): Update menu for moved Variable
8479         Attributes and Type Attributes sections.
8481 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
8483         PR target/65990
8484         * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
8485         if rep_8byte stringop strategy was specified for 32-bit target.
8487 2015-05-05  Ilya Tocar  <ilya.tocar@intel.com>
8489         PR target/65915
8490         * config/i386/i386.md (vector convert to float spltiter): Check for
8491         xmm16+, when splitting scalar float conversion.
8492         * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
8494 2015-05-05  Nick Clifton  <nickc@redhat.com>
8496         * config/msp430/msp430-opts.h (enum msp430_regions): New.
8497         * config/msp430/msp430.c (msp430_override_options): Complain if
8498         -mcode-region or -mdata-region is used on a non MSP430X.
8499         (msp430_section_attr): New function.  Checks lower, upper and
8500         either attributes.
8501         (msp430_attribute_table): Add lower, upper and either.
8502         (gen_prefix): New function.  Generates a prefix for a section
8503         name.
8504         (msp430_select_section): New function - handles the choice of
8505         section for an object.  Takes into account memory region
8506         attributes and options.
8507         (msp430_function_section): Use gen_prefix.
8508         (TARGET_SECTION_TYPE_FLAGS): Define.
8509         (msp430_section_type_flags): New function.
8510         (TARGET_ASM_UNIQUE_SECTION): Define.
8511         (msp430_unique_section): New function.
8512         (msp430_output_aligned_decl_common): New function.
8513         (msp430_do_not_relax_short_jumps): New function.
8514         * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
8515         Define.
8516         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
8517         * config/msp430/msp430-protos.h
8518         (msp430_do_not_relax_short_jumps): New prototype.
8519         (msp430_output_aligned_decl_common): New prototype.
8520         * config/msp430/msp430.md (length): New attribute.
8521         (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
8522         then use a long code sequence for short jumps.
8523         * config/msp430/msp430.opt (mcode-region): New.
8524         (mdata-region): New.
8525         * doc/invoke.texi: Document new options.
8526         * doc/extend.texi: Document new attributes.
8528 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
8530         * gcc/config/aarch64-protos.h (struct cpu_branch_cost): New.
8531         (tune_params): Add field branch_costs.
8532         (aarch64_branch_cost): Declare.
8533         * gcc/config/aarch64.c (generic_branch_cost): New.
8534         (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
8535         (cortexa53_tunings): Likewise.
8536         (cortexa57_tunings): Likewise.
8537         (thunderx_tunings): Likewise.
8538         (xgene1_tunings): Likewise.
8539         (aarch64_branch_cost): Define.
8540         * gcc/config/aarch64/aarch64.h (BRANCH_COST): Redefine.
8542 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
8544         * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
8545         and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
8546         * config/i386/i386.md: Ditto.
8547         * config/i386/winnt.c: Ditto.
8549 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
8551         * doc/extend.texi (__atomic Builtins): Move implementation details
8552         to the end of the description, rewrite opening paragraphs, state
8553         difference with __sync builtins, state C11/C++11 assumptions,
8554         weaken itemized descriptions, add explanation of memory model
8555         behaviour, expand description of compare-exchange, simplify text.
8557 2015-05-05  Renlin Li  <renlin.li@arm.com>
8559         * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
8561 2015-05-05  Yvan Roux  <yvan.roux@linaro.org>
8563         * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
8564         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
8565         * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
8566         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
8567         * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
8568         * configure: Regenerate.
8569         * configure.ac: Add --enable-fix-cortex-a53-843419 option.
8570         * doc/install.texi (aarch64*-*-*): Document new
8571         --enable-fix-cortex-a53-843419 option.
8572         * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
8573         and -mno-fix-cortex-a53-843419 options.
8575 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
8577         PR target/65871
8578         * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
8580 2015-05-04  Jan Hubicka  <hubicka@ucw.cz>
8582         * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
8583         fix overactive TYPE_MIN_VALUE check and add FIXME for type
8584         compatibility problems.
8586 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
8588         * config/microblaze/microblaze.md (cbranchsi4): Added immediate
8589         constraints.
8590         (cbranchsi4_reg): New.
8591         * config/microblaze/microblaze.c
8592         (microblaze_expand_conditional_branch_reg): New.
8593         * config/microblaze/microblaze-protos.h
8594         (microblaze_expand_conditional_branch_reg): New prototype.
8596 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
8598         * config/microblaze/microblaze.md (peephole2): New.
8600 2015-05-04  Jeff Law  <law@redhat.com>
8602         Revert:
8603         2015-05-04  Jeff Law  <law@redhat.com>
8605         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
8606         simplifier to narrow arithmetic.
8607         * generic-match-head.c: (types_match, single_use): New functions.
8608         * gimple-match-head.c: (types_match, single_use): New functions.
8610 2015-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
8612         PR target/65987
8613         * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
8614         (split_branches): Likewise.
8616 2015-05-04  Sandra Loosemore  <sandra@codesourcery.com>
8618         * common.opt (fdelete-null-pointer-checks): Init to -1.
8619         * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
8620         override flag_delete_null_pointer_checks default.
8621         * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
8622         behavior re address zero.  Better document target-specific behavior.
8623         (-fisolate-errneous-paths-dereference): Mention relationship to
8624         -fdelete-null-pointer-checks.
8626 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
8628         PR tree-optimization/65984
8629         * ubsan.c: Include tree-cfg.h.
8630         (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
8631         stmt_could_throw_p test, rename can_throw variable to ends_bb.
8633 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
8635         * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
8636         to CONST_DOUBLE_P predicate.
8637         (standard_sse_constant_p): Return 0 for !TARGET_SSE.
8638         (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
8639         allow only operands that satisfy standard_sse_constant_p predicate.
8640         * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
8641         to CONST_DOUBLE_P predicate.
8643 2015-05-04  Jeff Law  <law@redhat.com>
8645         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
8646         simplifier to narrow arithmetic.
8647         * generic-match-head.c: (types_match, single_use): New functions.
8648         * gimple-match-head.c: (types_match, single_use): New functions.
8650 2015-05-04  Andreas Tobler  <andreast@gcc.gnu.org>
8652         * config/arm/arm.c: Restore bootstrap.
8654 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
8656         * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
8657         * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
8658         as CONST_WIDE_INT, not CONST_DOUBLE.
8659         (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
8660         (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
8661         (ix86_find_base_term): Do not check for CONST_DOUBLE.
8662         (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
8663         (ix86_build_signbit_mask): Rewrite using wide ints.
8664         (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
8665         (ix86_rtx_costs): Handle CONST_WIDE_INT.
8666         (find_constant): Ditto.
8667         * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
8668         using gen_int_mode.
8669         * config/i386/predicates.md (x86_64_immediate_operand)
8670         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
8671         (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
8672         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
8673         (const0_operand): Also match const_wide_int.
8674         (constm1_operand): Ditto.
8675         (const1_operand): Ditto.
8677 2015-05-04  Richard Biener  <rguenther@suse.de>
8679         PR tree-optimization/65965
8680         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
8681         store groups at gaps.
8683 2015-05-04  Richard Biener  <rguenther@suse.de>
8685         PR tree-optimization/65935
8686         * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
8687         then make sure to apply that swapping to the IL.
8689 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
8691         * Makefile.in (PATCHLEVEL_c): New variable.
8692         (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
8693         expand the same way as if DEVPHASE_c was non-empty.
8695 2015-05-04  Kai Tietz  <ktietz@redhat.com>
8697         PR target/65559
8698         * lto-wrapper.c (run_gcc): Open filename
8699         in binary-mode.
8701 2015-05-03  Sandra Loosemore  <sandra@codesourcery.com>
8703         * doc/extend.texi (Variable Attributes, Type Attributes):  Move
8704         sections up in file, to immediately after the Function Attributes
8705         section.
8707 2015-05-02  Jan Hubicka  <hubicka@ucw.cz>
8709         * tree.c (verify_type): Check various uses of TYPE_MINVAL.
8711 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8713         * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
8714         (insert_partition_copy_on_edge): Adjust.
8715         (insert_rtx_to_part_on_edge): Likewise.
8716         (insert_part_to_rtx_on_edge): Likewise.
8718 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8720         * function.c (set_return_jump_label): Change type of argument to
8721         rtx_insn *.
8722         * function.h (set_return_jump_label): Adjust.
8724 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8726         * reload.h (struct reg_equivs_t): Change type of init to
8727         rtx_insn *.
8728         * ira.c (fix_reg_equiv_init): Adjust.
8729         * reload1.c (eliminate_regs_1): Likewise.
8730         (init_eliminable_invariants): Likewise.
8732 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8734         * cselib.c (fp_setter_insn): Take a rtx_insn *.
8735         * cselib.h (fp_setter_insn): Adjust.
8737 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8739         * recog.c (struct validate_replace_src_data): Change type of
8740         insn field to rtx_insn *.
8741         (validate_replace_src_group): Change type of argument to rtx_insn *.
8742         * recog.h (validate_replace_src_group): Adjust.
8744 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8746         * haifa-sched.c: Change the type of some variables to rtx_insn *.
8747         * sched-deps.c: Likewise.
8748         * sched-int.h: Likewise.
8749         * sched-rgn.c: Likewise.
8750         * sel-sched.c: Likewise.
8752 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8754         to rtx_insn *.
8755         * config/i386/i386.c: Change the type of some arguments to
8756         rtx_insn *.
8757         * config/arm/arm.c: Likewise.
8759 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8761         * lra-constraints.c: Change type of some arguments to rtx_insn *.
8763 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8765         * regcprop.c (kill_autoinc_value): Change type of argument to
8766         rtx_insn *.
8768 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8770         * genrecog.c (print_subroutine): Adjust.
8771         * recog.c (get_bool_attr_mask_uncached): Likewise.
8772         * recog.h (struct recog_data_d): Change the type of insn to
8773         rtx_insn *.
8775 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8777         * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
8779 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8781         * df-problems.c (df_set_note): Change type of argument to
8782         rtx_insn *.
8784 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8786         * builtins.c (expand_builtin_trap): Change type of local
8787         variable to rtx_insn *.
8788         (add_sched_insns_for_speculation): Likewise.
8789         (ix86_emit_save_regs): Likewise.
8790         (get_scratch_register_on_entry): Likewise.
8791         (ix86_emit_restore_reg_using_pop): Likewise.
8792         (ix86_emit_leave): Likewise.
8793         (ix86_emit_restore_regs_using_mov): Likewise.
8794         (ix86_expand_epilogue): Likewise.
8795         Likewise.
8796         (rl78_alloc_physical_registers_umul): Likewise.
8797         * cselib.c (discard_useless_locs): Likewise.
8798         (cselib_invalidate_regno): Likewise.
8799         (cselib_invalidate_mem): Likewise.
8800         * function.c (expand_function_start): Likewise.
8801         (emit_use_return_register_into_block): Likewise.
8802         * gcse.c: Likewise.
8803         * haifa-sched.c (ok_for_early_queue_removal): Likewise.
8804         * ifcvt.c (noce_get_alt_condition): Likewise.
8805         * loop-doloop.c (doloop_condition_get): Likewise.
8806         * lra-constraints.c (inherit_in_ebb): Likewise.
8807         * modulo-sched.c (sms_schedule_by_order): Likewise.
8808         * recog.c (next_insn_tests_no_inequality): Likewise.
8809         * reorg.c (emit_delay_sequence): Likewise.
8810         (update_reg_dead_notes): Likewise.
8811         (fix_reg_dead_note): Likewise.
8812         (fill_slots_from_thread): Likewise.
8813         (delete_computation): Likewise.
8815 2015-05-01  Sandra Loosemore  <sandra@codesourcery.com>
8817         * doc/extend.texi (Variable Attributes): Add menu and proper
8818         @nodes to subsections.  Move Microsoft Windows attributes to
8819         their own subsection.
8820         (Type Attributes): Reorganize introduction to remove duplicate
8821         list of attributes.  Add menu and proper @nodes to subsections.
8822         Alphabetize the main table of common attributes.
8824 2015-05-01  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
8826         * match.pd: New simplification patterns.
8827         (x + (x & 1))  -> ((x + 1) & ~1)
8828         (x & ~(x & y)) -> ((x & ~y))
8829         (x | ~(x | y)) -> ((x | ~y))
8831 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8833         * target.def (attribute_table): Mention that struct attribute_spec
8834         is defined in tree-core.h rather than tree.h
8835         * doc/tm.texi: Regenerate.
8837 2015-05-01  Richard Sandiford  <richard.sandiford@arm.com>
8839         * genrecog.c (test): Rename to rtx_test.  Update rest of file
8840         accordingly.
8842 2015-05-01  Andreas Schwab  <schwab@linux-m68k.org>
8844         PR translation/65959
8845         * params.h (DEFPARAM): Rename msgid to nocmsgid.
8847 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
8849         * gcc/config/aarch64/aarch64-protos.h (tune_params):
8850         Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
8851         * gcc/config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
8852         Return value depending on target.
8853         (generic_tunings): Initialize new target settings.
8854         (cortexa53_tunings): Likewise.
8855         (cortexa57_tunings): Likewise.
8856         (thunderx_tunings): Likewise.
8857         (xgene1_tunings): Likewise.
8859 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
8861         * gcc/config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
8862         Make Cortex-A53 shift costs more accurate.
8864 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8866         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
8867         UNSIGNED_FLOAT.
8869 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
8871         * gcc/config/aarch64/aarch64.c (aarch64_rtx_costs):
8872         Calculate cost of op0 and op1 in PLUS and MINUS cases.
8874 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8876         * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
8877         Add cost of op0 in the compare-with-fpzero case.
8879 2015-04-30  David Malcolm  <dmalcolm@redhat.com>
8881         * builtins.c (fold_builtin_1): Remove spurious second
8882         semicolon.
8883         * cgraph.h (symtab_node::get_availability): Likewise.
8884         * opts.c (common_handle_option): Remove spurious second semicolon.
8885         * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
8886         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
8888 2015-04-30  Caroline Tice  <cmtice@google.com>
8890         PR gcov-profile/65929
8891         * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
8892         (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
8893         * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
8894         (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
8895         * doc/tm.texi: Regenerate.
8896         * final.c (final_scan_insn):  Use ASM_DECLARE_COLD_FUNCTION_NAME
8897         instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
8898         * varasm.c (assemble_end_function):  Use ASM_DECLARE_COLD_FUNCTION_SIZE
8899         instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
8901 2015-04-30  Marek Polacek  <polacek@redhat.com>
8903         * varasm.c (handle_cache_entry): Fix logic.
8905 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8907         * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
8908         (*extrsi5_insn_uxtw_alt): Likewise.
8909         * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
8910         (aarch64_rtx_costs, IOR case): Use above to properly cost extr
8911         operations.
8913 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8915         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
8916         fabd in ABS case.
8918 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8920         * config/aarch64/aarch64.md
8921         (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
8922         (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
8923         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
8924         appropriately.  Handle alternative EON form.
8926 2015-04-30  Renlin Li  <renlin.li@arm.com>
8928         * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
8929         * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
8931 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
8933         PR ipa/65873
8934         * ipa-inline.c (can_inline_edge_p): It is safe to inline across
8935         -fstrict-aliasing boundaries.
8937 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8939         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
8940         and [SU]MNEGL patterns.
8942 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8944         * config/aarch64/aarch64.c (aarch64_shift_p): New function.
8945         (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
8946         combined arithmetic-shift ops.  Properly handle all shift and extend
8947         operations that can occur in combination with PLUS/MINUS.
8948         Rename maybe_fma to compound_p.
8949         (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
8950         arithmetic and shift operations.
8952 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8954         * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
8955         rather than arith_shift cost when costing ADD/MINUS of an
8956         extended value.
8958 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
8960         PR lto/65948
8961         * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
8962         to itself.
8964 2015-04-30  Richard Sandiford  <richard.sandiford@arm.com>
8966         * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
8967         are for the same position.
8969 2015-04-29  Aditya Kumar  <hiraditya@hotmail.com>
8971         * tree-vectorizer.c (set_uid_loop_bbs): New.  Factored out of
8972         vectorize_loops.
8973         (vectorize_loops): Use it.
8975 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
8977         * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
8978         for aggregate types.
8979         (register_odr_type): Be ready for MAIN_VARIANT of ODR type
8980         type to be non_ODR.
8981         * tree.c (need_assembler_name_p): Compute mangled name for
8982         non-fundamental types and integer types.
8984 2015-04-29  Mikhail Maltsev  <maltsevm@gmail.com>
8986         * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
8987         manual swaps.
8988         * expr.c (expand_expr_real_2): Likewise.
8990 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
8992         * tree.c (build_common_builtin_nodes): Do not build
8993         __builtin_alloca_with_align as equivalent of library alloca.
8995 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
8997         * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
8998         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
8999         bugus variants.
9000         * tree.c: Include print-tree.h and ipa-utils.h
9001         (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
9002         (free_lang_data_in_cgraph): Call verify_type.
9003         (verify_type_variant): New function.
9004         (verify_type): New function.
9005         * tree.h (verify_type): Declare.
9007 2015-04-29  Steve Ellcey  <sellcey@imgtec.com>
9009         * config/mips/mips-cpus.def: (mips4): Change default processor
9010         from PROCESSOR_R8000 to PROCESSOR_R10000.
9012 2015-04-29  Petar Jovanovic  <petar.jovanovic@rt-rk.com>
9014         * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
9015         la/jalr instead of jal.
9017 2015-04-29  Uros Bizjak  <ubizjak@gmail.com>
9019         PR target/65871
9020         * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
9021         (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
9022         (setcc+movzbl peephole2): Check also clobbered reg.
9023         (setcc+andl peephole2): Ditto.
9025 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
9027         PR libgomp/65099
9028         * config/nvptx/mkoffload.c (target_ilp32): New variable.
9029         (main): Set it depending on "-foffload-abi=[...]".
9030         (compile_native, main): Use it to pass "-m32" or "-m64" to the
9031         compiler.
9033 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
9035         PR target/65770
9036         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
9037         vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
9038         Flip lane index back at assembly time for bigendian.
9040 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
9042         * tree.h (OMP_STANDALONE_CLAUSES): New macro.
9043         * gimplify.c (gimplify_omp_workshare): Use it.
9045 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
9047         * Makefile.in (build/genrecog.o): Depend on inchash.h.
9048         (build/genrecog$(build_exeext): Depend on build/hash-table.o and
9049         build/inchash.o
9050         * genrecog.c: Rewrite most of the code except for the third page.
9052 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
9054         * inchash.h, inchash.c: Include bconfig.h for build objects.
9055         * Makefile.in (build/inchash.o): New rule.
9057 2015-04-29  Yvan Roux  <yvan.roux@linaro.org>
9059         PR target/65924
9060         * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
9061         number in type attribute expression.
9063 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
9065         * loop-iv.c (canon_condition): Generalize to all types of integer
9066         constant.
9068 2015-04-29  Bernhard Reuther-Fischer  <aldot@gcc.gnu.org>
9070         * gimple-walk.c: Prune duplicate or unneeded includes.
9071         (walk_gimple_asm): Only call parse_input_constraint or
9072         parse_output_constraint if their findings are used.
9073         Honour parse_input_constraint and parse_output_constraint
9074         result.
9076 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
9078         * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
9080 2015-04-29  Tom de Vries  <tom@codesourcery.com>
9082         PR tree-optimization/65893
9083         * passes.def (pass_all_optimizations): Move pass_stdarg to after
9084         pass_dce.
9086 2015-04-29  Richard Biener  <rguenther@suse.de>
9088         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
9089         compute GROUP_SIZE for basic-block SLP.
9090         * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
9091         take into account gaps.
9092         (vect_get_mask_element): Properly reject references to previous
9093         vectors.
9094         (vect_transform_slp_perm_load): Likewise.
9096 2015-04-29  Christian Bruel  <christian.bruel@st.com>
9098         PR target/64835
9099         * config/i386/i386.c (ix86_default_align): New function.
9100         (ix86_override_options_after_change): Call ix86_default_align.
9101         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
9102         (ix86_override_options_after_change): New function.
9104 2015-04-28  Jeff Law  <law@redhat.com>
9106         * tree-ssa-dom.c (record_equality); Fix comment typos.
9108 2015-04-28  Tom de Vries  <tom@codesourcery.com>
9110         PR tree-optimization/65887
9111         * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
9113 2015-04-28  Sandra Loosemore  <sandra@codesourcery.com>
9115         * doc/extend.texi (Declaring Attributes of Functions): Split into
9116         subsections by target.  Alphabetize the table of common attributes.
9117         Rewrite some of the introductory text to reflect the new structure.
9118         Update some cross-references to point to the new subsections.
9119         (Attribute Syntax): Put paragraph about "__" naming here.  Remove
9120         duplicate copies in the discussion of function, label, and type
9121         attributes.
9123 2015-04-28  Dominique d'Humieres  <dominiq@lps.ens.fr>
9125         PR bootstrap/65910
9126         * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
9128 2015-04-28  Jason Merrill  <jason@redhat.com>
9130         PR c++/65734
9131         * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
9132         (finalize_type_size): Respect TYPE_USER_ALIGN.
9133         (layout_type) [ARRAY_TYPE]: Likewise.
9135 2015-04-28  Yvan Roux  <yvan.roux@linaro.org>
9137         * config/arm/arm.md (*arm_movt): Fix type attribute.
9138         (*cmpsi_shiftsi): Likewise.
9139         (*cmpsi_shiftsi_swp): Likewise.
9140         (*movsicc_insn): Likewise.
9141         (*cond_move): Likewise.
9142         (*if_plus_move): Likewise.
9143         (*if_move_plus): Likewise.
9144         (*if_arith_move): Likewise.
9145         (*if_move_arith): Likewise.
9146         (*if_shift_move): Likewise.
9147         (*if_move_shift): Likewise.
9148         (*arm_movtas_ze): Likewise.
9149         * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
9150         redundancy and type attribute.
9151         (*thumb2_movsi_insn): Fix type attribute.
9152         (*thumb2_addsi_short): Likewise.
9153         (thumb2_addsi3_compare0): Likewise.
9154         (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
9155         attributes accordingly.
9157 2015-04-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
9159         PR other/65911
9160         * function.c (pad_to_arg_alignment): Add parentheses.
9162 2015-04-28  Uros Bizjak  <ubizjak@gmail.com>
9164         * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
9165         libgcc/config/frv/elf-lib.h.
9167 2015-04-28  Tom de Vries  <tom@codesourcery.com>
9169         * tree-call-cdce.c: Fix example in header comment.
9171 2015-04-28  Richard Biener  <rguenther@suse.de>
9173         PR tree-optimization/62283
9174         * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
9175         fails fatally and we are vectorizing a basic-block simply
9176         cause the child to be constructed piecewise.
9177         (vect_analyze_slp_cost_1): Adjust.
9178         (vect_detect_hybrid_slp_stmts): Likewise.
9179         (vect_bb_slp_scalar_cost): Likewise.
9180         (vect_get_constant_vectors): For piecewise constructed
9181         constants place them after the last def.
9182         (vect_get_slp_defs): Adjust.
9183         * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
9184         externals for basic-block vectorization.
9186 2015-04-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
9188         PR target/63503
9189         * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
9190         aarch64-*-*.
9191         * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
9192         * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
9193         (AARCH64_TUNE_FMA_STEERING): Likewise.
9194         * config/aarch64/aarch64-cores.def: Set
9195         AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
9196         FMUL/FMADD instructions.
9197         * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
9198         (aarch64_override_options): Include cortex-a57-fma-steering.h.  Call
9199         aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
9200         * config/aarch64/cortex-a57-fma-steering.h: New file.
9201         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
9203 2015-04-28  Richard Sandiford  <richard.sandiford@arm.com>
9205         * gensupport.c (std_preds): Add missing codes to address_operand entry.
9207 2015-04-28  Richard Biener  <rguenther@suse.de>
9209         PR tree-optimization/65851
9210         * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
9211         changing CONSTANT to CONSTANT non-copy.  Get new_val by reference.
9212         (ccp_lattice_meet): Remove stray argument.  Use operand_equal_p
9213         rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
9214         (ccp_visit_phi_node): Adjust.
9215         (evaluate_stmt): For simplifications to SSA names return its
9216         lattice value if that isn't VARYING.  Return immediately when
9217         simplified to a constant.
9218         (visit_assignment): Adjust.
9219         (ccp_visit_stmt): Likewise.
9221 2015-04-28  Tom de Vries  <tom@codesourcery.com>
9223         PR tree-optimization/65818
9224         * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
9225         evaluated.
9227 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9229         * calls.c (save_fixed_argument_area): Don't check
9230         ARGS_GROW_DOWNWARD with the preprocessor.
9231         (restore_fixed_argument_area): Likewise.
9232         (mem_overlaps_already_clobbered_arg_p): Likewise.
9233         (check_sibcall_argument_overlap): Likewise.
9234         (expand_call): Likewise.
9235         (emit_library_call_value_1): Likewise.
9236         (store_one_arg): Likewise.
9237         * function.c (assign_parms): Likewise.
9238         (locate_and_pad_parm): Likewise.
9239         (pad_to_arg_alignment): Likewise.
9240         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
9242 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9244         * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
9245         * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
9246         * calls.c (save_fixed_argument_area): Don't chekc if
9247         ARGS_GROW_DOWNWARD is defined.
9248         (restore_fixed_argument_area): Likewise.
9249         (mem_overlaps_already_clobbered_arg_p): Likewise.
9250         (check_sibcall_argument_overlap): Likewise.
9251         (expand_call): Likewise.
9252         (emit_library_call_value_1): Likewise.
9253         (store_one_arg): Likewise.
9254         * function.c (assign_parms): Likewise.
9255         (locate_and_pad_parm): Likewise.
9256         (pad_to_arg_alignment): Likewise.
9257         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
9259 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9261         * defaults.h (gen_epilogue): New function.
9262         * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
9263         defined.
9264         * cfgrtl.c (cfg_layout_finalize): Likewise.
9265         * df-scan.c: Likewise.
9266         * function.c (thread_prologue_and_epilogue_insns): Likewise.
9267         (reposition_prologue_and_epilogue_notes): Likewise.
9268         * reorg.c (find_end_label): Likewise.
9269         * toplev.c: Likewise.
9271 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9273         * bb-reorder.c (HAVE_return): Don't check if its undefined.
9274         * defaults.h (gen_simple_return): New function.
9275         (gen_simple_return): Likewise.
9276         (HAVE_return): Add default definition to false.
9277         (HAVE_simple_return): Likewise.
9278         * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
9279         HAVE_return and HAVE_simple_return are defined.
9280         * function.c (gen_return_pattern): Likewise.
9281         (convert_jumps_to_returns): Likewise.
9282         (thread_prologue_and_epilogue_insns): Likewise.
9283         * reorg.c (find_end_label): Likewise.
9284         (dbr_schedule): Likewise.
9285         * shrink-wrap.c: Likewise.
9286         * shrink-wrap.h: Likewise.
9288 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9290         * defaults.h (EPILOGUE_USES): Add default definition of false.
9291         * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
9292         * resource.c (init_resource_info): Likewise.
9294 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9296         * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
9297         to false.
9298         * dwarf2out.c (field_byte_offset): REmove check if
9299         PCC_BITFIELD_TYPE_MATTERS is defined.
9300         * stor-layout.c (layout_decl): Likewise.
9301         (update_alignment_for_field): Likewise.
9302         (place_field): Likewise.
9304 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9306         * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
9307         true.
9308         * regrename.c (check_new_reg_p): Remove check if
9309         HARD_REGNO_RENAME_OK is defined.
9310         * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
9312 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9314         * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
9315         * cse.c (fold_rtx): Likewise.
9316         * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
9317         * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
9318         * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
9319         * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
9320         * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
9321         * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
9322         * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
9323         * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
9324         * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
9325         * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
9326         * Likewise.
9327         * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
9328         * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
9329         * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
9330         * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
9331         * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
9332         * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
9333         * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
9334         * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
9335         * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
9336         * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
9337         * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
9338         * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
9339         * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
9340         * doc/tm.texi: Regenerate.
9341         * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
9342         either true or false.
9344 2015-04-27  Jeff Law  <law@redhat.com>
9346         PR tree-optimization/65217
9347         * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
9348         of them has a single use, make sure it is the LHS of the implied
9349         copy.
9351 2015-04-28  Alan Modra  <amodra@gmail.com>
9353         PR target/65810
9354         * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
9355         (offsettable_ok_by_alignment): Use minimum of decl and toc
9356         pointer alignment.  Replace dead code with assertion.
9357         (use_toc_relative_ref): Add mode arg.  Return false in -mcmodel=medium
9358         case if size exceeds toc pointer alignment.
9359         (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
9360         (rs6000_emit_move): Likewise.
9361         * configure.ac: Add linker toc pointer alignment check.
9362         * configure: Regenerate.
9363         * config.in: Regenerate.
9365 2015-04-27  Yoshinori Sato <ysato@users.sourceforge.jp>
9367         * config.gcc: Add h8300-*-linux.
9368         * config/h8300/linux.h: New.
9369         * config/h8300/t-linux: New.
9370         * config/h8300/h8300.c (h8300_option_override): Normal mode
9371         is not supported for h8300-*-linux.
9372         (h8300_file_start): Target priority change.
9373         (get_shift_alg): Likewise.
9374         (h8300_shift_need_scratch_p): Likewise.
9375         * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
9376         * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
9378 2015-04-27  Caroline Tice  <cmtice@google.com>
9380         * final.c (final_scan_insn):  Output cold_function_name as function
9381         type.
9382         * varasm.c (cold_function_name):  Make global.
9383         (assemble_start_function):  Re-set cold_function_name.
9384         (assemble_end_function): Output cold partition size.
9385         * varasm.h (cold_function_name):  Declare global.
9387 2015-04-27  Ilya Tocar  <ilya.tocar@intel.com>
9389         * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
9390         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
9391         constraint.
9392         (*movxi_internal_avx512f): Ditto.
9393         (define_split): Check for xmm16+, when splitting scalar float_extend.
9394         (*extendsfdf2_mixed): Use "v" constraint.
9395         (define_split): Check for xmm16+, when splitting scalar float_truncate.
9396         (*truncdfsf_fast_sse): Use "v" constraint.
9397         (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
9398         (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
9399         (define_peephole2): Check for xmm16+, when converting scalar
9400         float_truncate.
9401         (define_peephole2): Check for xmm16+, when converting scalar
9402         float_extend.
9403         (*fop_<mode>_comm_mixed): Use "v" constraint.
9404         (*fop_<mode>_comm_sse): Ditto.
9405         (*fop_<mode>_1_mixed): Ditto.
9406         (*sqrt<mode>2_sse): Ditto.
9407         (*ieee_s<ieee_maxmin><mode>3): Ditto.
9409 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9411         * combine.c (simplify_if_then_else): Use std::swap instead
9412         of manually swapping.
9413         (known_cond): Likewise.
9414         (simplify_comparison): Likewise.
9416 2015-04-27  Peter Bergner  <bergner@vnet.ibm.com>
9418         PR target/64579
9419         * config/rs6000/htm.md: Remove all define_expands.
9420         (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
9421         UNSPECV_HTM_TABORTWCI): Remove.
9422         (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
9423         (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
9424         trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
9425         (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
9426         (tabortdc_internal, tabortdci_internal, tabortwc_internal,
9427         tabortwci_internal): Remove define_insns.
9428         (tabort<wd>c, tabort<wd>ci): New define_insns.
9429         (tabort): Use gpc_reg_operand.
9430         (tcheck): Remove operand.
9431         (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
9432         * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
9433         expected value.
9434         * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
9435         (BU_HTM_SPR1): Rename to BU_HTM_V1.  Remove use of RS6000_BTC_SPR.
9436         (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
9437         tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
9438         tsr, ttest): Pass in the RS6000_BTC_CR attribute.
9439         (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
9440         get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
9441         (tcheck): Remove builtin argument.
9442         * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
9443         not TARGET_64BIT.
9444         (htm_expand_builtin): Fix usage of expandedp.  Disallow usage of the
9445         tabortdc and tabortdci builtins when not in 64-bit mode.
9446         Modify code to handle the loss of the HTM define_expands.
9447         Emit code to copy the CR register to TARGET.
9448         (htm_init_builtins): Modify code to handle the loss of the HTM
9449         define_expands.
9450         * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
9451         (RS6000_BTC_64BIT): Likewise.
9452         (RS6000_BTC_CR): New macro.
9453         * doc/extend.texi: Update documentation for htm builtins.
9455 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9457         * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
9458         of manually swapping.
9459         (simplify_associative_operation): Likewise.
9460         (simplify_binary_operation): Likewise.
9461         (simplify_plus_minus): Likewise.
9462         (simplify_relational_operation): Likewise.
9463         (simplify_ternary_operation): Likewise.
9465 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
9467         * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
9468         (xs_hi_nonmemory_operand): Remove error.
9469         * config/stormy16/stormy16.md (movhi, movhi_internal): Use
9470         general_operand rather than xs_hi_general_operand.
9472 2015-04-27  Richard Biener  <rguenther@suse.de>
9474         * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
9475         (record_equivalences_from_stmt): Valueize rhs.
9476         (record_equality): Canonicalize x and y order via
9477         tree_swap_operands_p.  Do not swap operands for same loop depth.
9479 2015-04-27  Georg-Johann Lay  <avr@gjlay.de>
9481         PR target/65296
9482         PR target/65895
9483         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
9484         Add hint how to use own spec file.
9486 2015-04-27  Jakub Jelinek  <jakub@redhat.com>
9488         PR tree-optimization/65875
9489         * tree-vrp.c (update_value_range): If in is_new case setting
9490         old_vr to VR_VARYING, also set new_vr to it.  Remove
9491         old_vr->type == VR_VARYING test.
9492         (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
9493         SSA_PROP_INTERESTING if update_value_range returned true,
9494         but new range is VR_VARYING.
9496 2015-04-27  Thomas Preud'homme  <thomas.preudhomme@arm.com>
9498         * combine.c (sign_extend_short_imm): New.
9499         (set_nonzero_bits_and_sign_copies): Use above new function for sign
9500         extension of src short immediate.
9501         (reg_nonzero_bits_for_combine): Likewise for tem.
9503 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
9505         * stor-layout.c (self_referential_component_ref_p): New predicate.
9506         (copy_self_referential_tree_r): Use it.
9507         (self_referential_size): Punt for simple operations directly involving
9508         self-referential component references.
9509         * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
9511 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
9513         * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
9515 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
9517         * vec.h (vec): Make splice arguments const.  Update definitions
9518         accordingly.
9520 2015-04-27  Yvan Roux  <yvan.roux@linaro.org>
9522         * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
9523         alternatives.
9525 2015-04-26  Tom de Vries  <tom@codesourcery.com>
9527         PR tree-optimization/65826
9528         * internal-fn.def: Mark VA_ARG with ECF_LEAF.
9530 2015-04-24  Steve Ellcey  <sellcey@imgtec.com>
9532         * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
9533         (*madd3<mode>): Ditto.
9534         (*msub4<mode>): Ditto.
9535         (*msub3<mode>): Ditto.
9536         (*nmadd4<mode>): Ditto.
9537         (*nmadd3<mode>): Ditto.
9538         (*nmadd4<mode>_fastmath): Ditto.
9539         (*nmadd3<mode>_fastmath): Ditto.
9540         (*nmsub4<mode>): Ditto.
9541         (*nmsub3<mode>): Ditto.
9542         (*nmsub4<mode>_fastmath): Ditto.
9543         (*nmsub3<mode>_fastmath): Ditto.
9545 2015-04-24  Jason Merrill  <jason@redhat.com>
9547         PR c++/50800
9548         * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
9549         down when building TYPE_CANONICAL.
9550         (build_pointer_type_for_mode): Likewise.
9552 2015-04-24  Chen Gang  <gang.chen.5i5j@gmail.com>
9554         * genrecog.c (validate_pattern): Check matching constraint refers
9555         to a lower numbered operand.
9557 2015-04-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
9559         PR target/65849
9560         * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
9561         save to independent variables use the Save attribute.  This will
9562         allow these options to be modified with the #pragma/attribute
9563         target support.
9564         (-mallow-movmisalign): Likewise.
9565         (-mallow-df-permute): Likewise.
9566         (-msched-groups): Likewise.
9567         (-malways-hint): Likewise.
9568         (-malign-branch-targets): Likewise.
9569         (-mvectorize-builtins): Likewise.
9570         (-msave-toc-indirect): Likewise.
9572         * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
9573         can be set via the #pragma/attribute target support.
9574         (rs6000_opt_vars): Likewise.
9575         (rs6000_inner_target_options): If VSX was set, also set
9576         -mno-avoid-indexed-addresses.
9578 2015-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9580         * config/arm/iterators.md (shiftable_ops): Rename to...
9581         (SHIFTABLE_OPS): ... This.  Update use in comments.
9582         (ior_xor): Rename to...
9583         (IOR_XOR): ... This.
9584         (vqh_ops): Rename to...
9585         (VQH_OPS): ... This.
9586         (vqhs_ops): Rename to...
9587         (VQHS_OPS): ... This.
9588         (rshifts): Rename to...
9589         (RSHIFTS): ... This.
9590         (returns): Rename to...
9591         (RETURNS): ... This.
9592         * config/arm/arm.md: Update uses of the above.
9593         * config/arm/neon.md: Likewise.
9595 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9597         * config.host (case ${host}): Add aarch64*-*-linux case.
9598         * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
9599         fields to all the cores.
9600         * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
9601         Add MCPU_MTUNE_NATIVE_SPECS.
9602         * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
9603         field to all extensions.
9604         * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
9605         * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
9606         Adjust definition of AARCH64_OPT_EXTENSION.
9607         * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
9608         (MCPU_MTUNE_NATIVE_SPECS): Define.
9609         * config/aarch64/driver-aarch64.c: New file.
9610         * config/aarch64/x-arch64: New file.
9611         * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
9612         -mtune and -march.
9614 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
9615             Wei Mi  <wmi@google.com>
9617         * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
9618         * config/i386/i386.c (extract_base_offset_in_addr): New function.
9619         (ix86_operands_ok_for_move_multiple): Ditto.
9620         * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
9621         (movlpd/movhpd to movupd peephole2): Ditto.
9623 2015-04-24  Marek Polacek  <polacek@redhat.com>
9625         PR c/61534
9626         * input.h (from_macro_expansion_at): Define.
9628         PR c/63357
9629         * doc/invoke.texi: Update description of -Wlogical-op.
9631 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
9633         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
9634         ternary operator in fprintf and harmonize spacing.
9636 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
9638         * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
9639         Mark operand1 commutative.
9641 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
9643         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
9644         input operands in memory.
9645         (*vec_concatv2si_sse4_1): Ditto.
9646         (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
9647         (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
9648         register_operand.
9649         (vec_extract_hi_v32hi): Ditto.
9650         (vec_extract_hi_v64hi): Ditto.
9651         (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
9653 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
9654             Steven Bosscher <steven@gcc.gnu.org>
9656         PR rtl-optimization/34503
9657         * cprop.c (cprop_reg_p): New.
9658         (hash_scan_set): Use above function to check if register can be
9659         propagated.
9660         (find_avail_set): Return up to two sets, one whose source is a
9661         register and one whose source is a constant.  Sets are returned in an
9662         array passed as parameter rather than as a return value.
9663         (cprop_insn): Use a do while loop rather than a goto.  Try each of the
9664         sets returned by find_avail_set, starting with the one whose source is
9665         a constant. Use cprop_reg_p to check if register can be propagated.
9666         (do_local_cprop): Use cprop_reg_p to check if register can be
9667         propagated.
9668         (implicit_set_cond_p): Likewise.
9670 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
9672         * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
9673         (sem_function::equals): IGNORED_NODES parameter is now unused;
9674         update call of equals_private.
9675         (sem_function::equals_private): Do not call equals_wpa; skip
9676         gimple body matching if there is no body.
9677         (sem_function::init): Add logic to hash tthunk info.
9678         (sem_function::parse): Also parse thunks.
9679         * ipa-icf.h (equals_private): Update declaration.
9681 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9683         * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
9684         asterisk from name so this can be generated directly.
9685         (*altivec_stvx_<mode>_internal): Likewise.
9686         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
9687         that this is never called during or after reload/lra.
9688         (rs6000_frame_related): Remove split_reg
9689         argument and logic that references it.
9690         (emit_frame_save): Remove last parameter from call to
9691         rs6000_frame_related.
9692         (rs6000_emit_prologue): Remove last parameter from eight calls to
9693         rs6000_frame_related.  Force generation of stvx instruction for
9694         Altivec register saves.  Remove split_reg handling, which is no
9695         longer needed.
9696         (rs6000_emit_epilogue):  Force generation of lvx instruction for
9697         Altivec register restores.
9699 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9701         * config/rs6000/rs6000.opt (mcrypto): Change option description to
9702         match category changes in ISA 2.07B.
9704 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9706         * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
9707         iterators.
9708         (cmp_op, cmp_type): New code attributes.
9709         (NEON_VCMP, NEON_VACMP): New int iterators.
9710         (cmp_op_unsp): New int attribute.
9711         * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
9712         (neon_vceq<mode>): Delete.
9713         (neon_vc<cmp_op><mode>_insn): New pattern.
9714         (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
9715         (neon_vcgeu<mode>): Delete.
9716         (neon_vcle<mode>): Likewise.
9717         (neon_vclt<mode>: Likewise.
9718         (neon_vcage<mode>): Likewise.
9719         (neon_vcagt<mode>): Likewise.
9720         (neon_vca<cmp_op><mode>): New define_expand.
9721         (neon_vca<cmp_op><mode>_insn): New pattern.
9722         (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
9724 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
9726         * tree.h (attribute_value_equal): Declare.
9727         * tree.c (attribute_value_equal): Export.
9729 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
9731         * ipa-icf.c (sem_item::compare_attributes): New function.
9732         (sem_item::compare_referenced_symbol_properties): Compare variable
9733         attributes.
9734         (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
9735         (sem_function::param_used_p): New function.
9736         (sem_function::equals_wpa): Fix attribute comparsion; match
9737         parameter type codes; do not compare paremter flags when
9738         they are not used; compare edge flags; compare indirect calls.
9739         (sem_item::update_hash_by_addr_refs): Hash reference type.
9740         (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
9741         (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
9742         reference use type.
9743         (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
9744         * ipa-icf.h (compare_attributes, param_used_p): Declare.
9746 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
9748         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
9749         cleanup.
9750         (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
9751         DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
9752         (sem_item::compare_referenced_symbol_properties): New.
9753         (sem_item::hash_referenced_symbol_properties): New.
9754         (sem_item::compare_cgraph_references): Rename to ...
9755         (sem_item::compare_symbol_references): ... this one; use
9756         compare_referenced_symbol_properties.
9757         (sem_function::equals_wpa): Do not compare
9758         DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
9759         DECL_IS_OPERATOR_NEW; compare pointer sizes.
9760         (sem_item::update_hash_by_addr_refs): Call
9761         hash_referenced_symbol_properties.
9762         (sem_item::update_hash_by_local_refs): Cleanup.
9763         (sem_function::merge): Do not mix up symbol properties.
9764         (sem_variable::equals_wpa): Use compare_symbol_references.
9765         * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
9766         (sem_item::hash_referenced_symbol_properties): New.
9767         (sem_item::compare_symbol_references): New.
9768         (sem_item::compare_cgraph_references): Remove.
9770 2015-04-23  Kwok Cheung Yeung  <kcy@codesourcery.com>
9772         PR target/26702
9773         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
9774         Emit size of local.
9776 2015-04-23  Nick Clifton  <nickc@redhat.com>
9778         * config/rl78/rl78.c (rl78_preferred_reload_class): Add
9779         ATTRIBUTE_UNUSED to x parameter.
9780         * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
9782 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9784         * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
9785         TARGET_CRYPTO to TARGET_P8_VECTOR>
9786         (crypto_vpermxor_<mode>): Likewise.
9787         * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
9788         (BU_CRYPTO_3A): Likewise.
9789         (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
9790         (BU_CRYPTO_OVERLOAD_3A): New #define.
9791         (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
9792         (VPMSUMH): Likewise.
9793         (VPMSUMW): Likewise.
9794         (VPMSUMD): Likewise.
9795         (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
9796         (VPERMXOR_V4SI): Likewise.
9797         (VPERMXOR_V8HI): Likewise.
9798         (VPERMXOR_V16QI): Likewise.
9799         (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
9800         BU_CRYPTO_OVERLOAD_2A.
9801         (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
9802         BU_CRYPTO_OVERLOAD_3A.
9803         * config/rs6000/rs6000.opt (mcrypto): Change description of
9804         option.
9806 2015-04-23  Richard Biener  <rguenther@suse.de>
9808         * passes.def: Remove copy propagation passes run directly after CCP.
9809         * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
9810         SSA names.
9811         (ccp_visit_phi_node): Rework to handle first executable edge
9812         specially.
9814 2015-04-23  Matthew Wahab  <matthew.wahab@arm.com>
9816         * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
9817         (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
9818         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
9819         * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
9820         (thumb_legimitimize_reload_address): Remove.
9821         * config/arm/arm-protos.h (arm_legimitimize_reload_address):
9822         Remove.
9823         (thumb_legimitimize_reload_address): Remove.
9825 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9827         * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
9829 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9831         * config/arm/arm.md (load_multiple): Reject operand 2 greater than
9832         MAX_LDM_STM_OPS.
9833         (store_multiple): Likewise.
9835 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9837         * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
9838         * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
9839         arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
9840         arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
9841         arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
9842         arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
9843         arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
9844         Specify issue_rate value.
9845         (arm_issue_rate): Look up issue rate from tuning structs. Remove
9846         large switch statement.
9847         (arm_marvell_pj4_tune): New struct.
9848         * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
9849         struct.
9851 2015-04-23  Richard Biener  <rguenther@suse.de>
9853         * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
9854         (vect_find_last_store_in_slp_instance): Rename to ...
9855         (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
9856         (vect_analyze_slp_cost_1): Use vector_load for constant defs
9857         and vec_construct for external defs when estimating prologue cost.
9858         (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
9859         Compute costs here only when vectorizing loops.
9860         (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
9861         have been determined.
9862         (vect_schedule_slp_instance): Simplify vectorized code placement
9863         and prepare for in-BB external defs.
9864         * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
9865         (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
9866         * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
9867         guard.
9868         (vect_model_load_cost): Likewise.
9869         (vectorizable_store): Instead add it here.
9870         (vectorizable_load): Likewise.
9871         (vect_is_simple_use): Dump def type textually.
9873 2015-04-23  Richard Biener  <rguenther@suse.de>
9875         * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
9876         * cfgloop.c (verify_loop_structure): Verify the root loop node.
9877         * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
9878         instead of get_eh_region_from_lp_number.
9879         * loop-init.c (fix_loop_structure): If we removed a loop, reset
9880         the SCEV cache.
9882 2015-04-23  Anton Blanchard  <anton@samba.org>
9884         * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
9885         need for -mprofile-kernel to save LR to stack.
9887 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9889         * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
9890         adjustments.
9891         (insn_is_swappable_p): Return 1 for a convert from double to
9892         single precision when all of its uses are splats of BE element
9893         zero.
9895 2015-04-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
9897         * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
9899 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9901         PR target/65456
9902         * config/rs6000/rs6000.c (rs6000_option_override_internal):  For
9903         VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
9904         TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
9905         option.
9906         (rs6000_builtin_mask_for_load): Return 0 for targets with
9907         efficient unaligned VSX accesses so that the vectorizer will use
9908         direct unaligned loads.
9909         (rs6000_builtin_support_vector_misalignment): Always return true
9910         for targets with efficient unaligned VSX accesses.
9911         (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
9912         stores on targets with efficient unaligned VSX accesses is almost
9913         always the same as the cost of an aligned load or store, so model
9914         it that way.
9915         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
9916         unaligned vectors if we have efficient unaligned VSX accesses.
9917         * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
9918         undocumented option.
9920 2015-04-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9922         Revert:
9923         2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
9925         * config.gcc (LIBC_MUSL): New tm_defines macro.
9926         * config/linux.h (OPTION_MUSL): Define.
9927         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
9928         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
9929         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
9931         * config/linux.opt (mmusl): New option.
9932         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
9933         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
9935         * configure: Regenerate.
9937 2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
9939         * config.gcc (LIBC_MUSL): New tm_defines macro.
9940         * config/linux.h (OPTION_MUSL): Define.
9941         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
9942         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
9943         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
9945         * config/linux.opt (mmusl): New option.
9946         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
9947         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
9949         * configure: Regenerate.
9951 2015-04-22  Yury Gribov  <y.gribov@samsung.com>
9953         * doc/invoke.texi (-fsanitize-sections): Update description.
9954         * asan.c (set_sanitized_sections): Parse incoming arg.
9955         (section_sanitized_p): Support wildcards.
9957 2015-04-22  Tom de Vries  <tom@codesourcery.com>
9959         PR tree-optimization/65823
9960         * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
9961         equality between ap_copy and ap.
9963 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
9965         PR target/47098
9966         * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
9968 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
9970         PR target/47122
9971         * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
9973 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
9975         PR target/55144
9976         * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
9977         remove already contained t-files.
9979 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
9981         * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
9982         Remove unneeded forward declarations.
9983         (suitable_for_tail_call_opt_p): Commentary typo fix.
9985 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
9987         * varasm.c (emit_bss): Remove redundant guard.
9989 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
9991         * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
9993 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
9995         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
9997 2015-04-22  Hale Wang  <hale.wang@arm.com>
9998             Terry Guo  <terry.guo@arm.com>
10000         PR rtl-optimization/64818
10001         * combine.c (can_combine_p): Don't combine user-specified
10002         register if it is in an asm input.
10004 2015-04-21  Jan Hubicka  <hubicka@ucw.cz>
10006         PR ipa/65076
10007         * passes.def (early_optimizations): Add pass_dse.
10009 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10011         * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
10012         * reorg.c (redundant_insn): Remove ifdef
10013         INSN_REFERENCES_ARE_DELAYED.
10014         * resource.c (mark_referenced_resources): Likewise.
10016 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10018         * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
10019         * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
10020         * resource.c (mark_set_resources): Likewise.
10022 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10024         * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
10025         * cfgcleanup.c (flow_find_cross_jump): Likewise.
10026         (flow_find_head_matching_sequence): Likewise.
10027         (try_head_merge_bb): Likewise.
10028         * combine.c (can_combine_p): Likewise.
10029         (try_combine): Likewise.
10030         (distribute_notes): Likewise.
10031         * df-problems.c (can_move_insns_across): Likewise.
10032         * final.c (final): Likewise.
10033         * gcse.c (insert_insn_end_basic_block): Likewise.
10034         * ira.c (find_moveable_pseudos): Likewise.
10035         * reorg.c (try_merge_delay_insns): Likewise.
10036         (fill_simple_delay_slots): Likewise.
10037         (fill_slots_from_thread): Likewise.
10038         * sched-deps.c (sched_analyze_2): Likewise.
10040 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10042         * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
10043         PIC_OFFSET_TABLE_REGNUM.
10045 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10047         * alias.c (init_alias_target): Remove ifdef
10048         * HARD_FRAME_POINTER_IS_FRAME_POINTER.
10049         * df-scan.c (df_insn_refs_collect): Likewise.
10050         (df_get_regular_block_artificial_uses): Likewise.
10051         (df_get_eh_block_artificial_uses): Likewise.
10052         (df_get_entry_block_def_set): Likewise.
10053         (df_get_exit_block_use_set): Likewise.
10054         * emit-rtl.c (gen_rtx_REG): Likewise.
10055         * ira.c (ira_setup_eliminable_regset): Likewise.
10056         * reginfo.c (init_reg_sets_1): Likewise.
10057         * regrename.c (rename_chains): Likewise.
10058         * reload1.c (reload): Likewise.
10059         (eliminate_regs_in_insn): Likewise.
10060         * resource.c (mark_referenced_resources): Likewise.
10061         (init_resource_info): Likewise.
10063 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10065         * defaults.h (MASK_RETURN_ADDR): New definition.
10066         * except.c (expand_builtin_extract_return_addr): Remove ifdef
10067         MASK_RETURN_ADDR.
10069 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10071         * defaults.h (RETURN_ADDR_OFFSET): New definition.
10072         * except.c (expand_builtin_extract_return_addr): Remove ifdef
10073         RETURN_ADDR_OFFSET.
10074         (expand_builtin_frob_return_addr): Likewise.
10076 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10078         * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
10079         (try_redirect_by_replacing_jump): Likewise.
10080         (rtl_tidy_fallthru_edge): Likewise.
10081         * combine.c (insn_a_feeds_b): Likewise.
10082         (find_split_point): Likewise.
10083         (simplify_set): Likewise.
10084         * cprop.c (cprop_jump): Likewise.
10085         * cse.c (cse_extended_basic_block): Likewise.
10086         * df-problems.c (can_move_insns_across): Likewise.
10087         * function.c (emit_use_return_register_into_block): Likewise.
10088         * haifa-sched.c (sched_init): Likewise.
10089         * ira.c (find_moveable_pseudos): Likewise.
10090         * loop-invariant.c (find_invariant_insn): Likewise.
10091         * lra-constraints.c (curr_insn_transform): Likewise.
10092         * postreload.c (reload_combine_recognize_const_pattern):
10093         * Likewise.
10094         * reload.c (find_reloads): Likewise.
10095         * reorg.c (delete_scheduled_jump): Likewise.
10096         (steal_delay_list_from_target): Likewise.
10097         (steal_delay_list_from_fallthrough): Likewise.
10098         (redundant_insn): Likewise.
10099         (fill_simple_delay_slots): Likewise.
10100         (fill_slots_from_thread): Likewise.
10101         (delete_computation): Likewise.
10102         * sched-rgn.c (add_branch_dependences): Likewise.
10104 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10106         * genconfig.c (main): Always define HAVE_cc0.
10107         * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
10108         HAVE_cc0.
10109         * cfgcleanup.c (flow_find_cross_jump): Likewise.
10110         (flow_find_head_matching_sequence): Likewise.
10111         (try_head_merge_bb): Likewise.
10112         * cfgrtl.c (rtl_merge_blocks): Likewise.
10113         (try_redirect_by_replacing_jump): Likewise.
10114         (rtl_tidy_fallthru_edge): Likewise.
10115         * combine.c (do_SUBST_MODE): Likewise.
10116         (insn_a_feeds_b): Likewise.
10117         (combine_instructions): Likewise.
10118         (can_combine_p): Likewise.
10119         (try_combine): Likewise.
10120         (find_split_point): Likewise.
10121         (subst): Likewise.
10122         (simplify_set): Likewise.
10123         (distribute_notes): Likewise.
10124         * cprop.c (cprop_jump): Likewise.
10125         * cse.c (cse_extended_basic_block): Likewise.
10126         * df-problems.c (can_move_insns_across): Likewise.
10127         * final.c (final): Likewise.
10128         (final_scan_insn): Likewise.
10129         * function.c (emit_use_return_register_into_block): Likewise.
10130         * gcse.c (insert_insn_end_basic_block): Likewise.
10131         * haifa-sched.c (sched_init): Likewise.
10132         * ira.c (find_moveable_pseudos): Likewise.
10133         * loop-invariant.c (find_invariant_insn): Likewise.
10134         * lra-constraints.c (curr_insn_transform): Likewise.
10135         * optabs.c (prepare_cmp_insn): Likewise.
10136         * postreload.c (reload_combine_recognize_const_pattern):
10137         * Likewise.
10138         * reload.c (find_reloads): Likewise.
10139         (find_reloads_address_1): Likewise.
10140         * reorg.c (delete_scheduled_jump): Likewise.
10141         (steal_delay_list_from_target): Likewise.
10142         (steal_delay_list_from_fallthrough): Likewise.
10143         (try_merge_delay_insns): Likewise.
10144         (redundant_insn): Likewise.
10145         (fill_simple_delay_slots): Likewise.
10146         (fill_slots_from_thread): Likewise.
10147         (delete_computation): Likewise.
10148         (relax_delay_slots): Likewise.
10149         * sched-deps.c (sched_analyze_2): Likewise.
10150         * sched-rgn.c (add_branch_dependences): Likewise.
10152 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10154         * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
10155         that is trivially ded on non cc0 targets.
10156         (simplify_set): Likewise.
10157         (mark_used_regs_combine): Likewise.
10158         * cse.c (new_basic_block): Likewise.
10159         (fold_rtx): Likewise.
10160         (cse_insn): Likewise.
10161         (cse_extended_basic_block): Likewise.
10162         (set_live_p): Likewise.
10163         * rtlanal.c (canonicalize_condition): Likewise.
10164         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
10166 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10168         * conditions.h: Define macros even if HAVE_cc0 is undefined.
10169         * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
10170         * final.c: Likewise.
10171         * jump.c: Likewise.
10172         * recog.c: Likewise.
10173         * recog.h: Declare functions even when HAVE_cc0 is undefined.
10174         * sched-deps.c (sched_analyze_2): Always compile case for cc0.
10176 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10178         * defaults.h: New definition of EH_RETURN_DATA_REGNO.
10179         * except.c: Remove definition of EH_RETURN_DATA_REGNO.
10180         * builtins.c (expand_builtin): Remove check if
10181         EH_RETURN_DATA_REGNO is defined.
10182         * df-scan.c (df_bb_refs_collect): Likewise.
10183         (df_get_exit_block_use_set): Likewise.
10184         * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
10185         * ira-lives.c (process_bb_node_lives): Likewise.
10186         * lra-lives.c (process_bb_lives): Likewise.
10188 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
10190         * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
10191         FIRST_PSEUDO_REG): New.
10192         * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
10193         (ARG_POINTER_REGNUM): Define to ARGP_REG.
10194         (FRAME_POINTER_REGNUM): Define to FRAME_REG.
10195         (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
10196         (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
10197         (FIRST_INT_REG): New.
10198         (LAST_INT_REG): New.
10199         (FIRST_*_REG): Define using *_REG.
10200         (LAST_*_REG): Ditto.
10201         (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
10202         (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
10203         (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
10205 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10207         * expmed.c: (synth_mult): Only assume overlapping
10208         shift with previous steps in alg_sub_t_m2 case.
10210 2015-04-21  Richard Biener  <rguenther@suse.de>
10212         PR tree-optimization/65650
10213         * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
10214         transitions involving copies.
10215         (set_lattice_value): Adjust for copy lattice state.
10216         (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
10217         if that doesn't dominate the merge point.
10218         (bit_value_unop): Adjust what we treat as varying mask.
10219         (bit_value_binop): Likewise.
10220         (bit_value_assume_aligned): Likewise.
10221         (evaluate_stmt): When we simplified to a SSA name record a copy
10222         instead of dropping to varying.
10223         (visit_assignment): Simplify.
10225         * gimple-match.h (gimple_simplify): Add another callback.
10226         * gimple-fold.c (fold_stmt_1): Adjust caller.
10227         (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
10228         for the 2nd callback.
10229         * gimple-match-head.c (gimple_simplify): Add a callback that is
10230         used to valueize the stmt operands and use it that way.
10232 2015-04-21  Richard Biener  <rguenther@suse.de>
10234         PR tree-optimization/65788
10235         * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
10237 2015-04-21  Richard Biener  <rguenther@suse.de>
10239         * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
10240         vec_construct cost by vec_stmt_cost.
10242 2015-04-21  Richard Biener  <rguenther@suse.de>
10244         * cfghooks.h (create_basic_block): Replace with two overloads
10245         for RTL and GIMPLE.
10246         (split_block): Likewise.
10247         * cfghooks.c (split_block): Rename to ...
10248         (split_block_1): ... this.
10249         (split_block): Add two type-safe overloads for RTL and GIMPLE.
10250         (split_block_after_labels): Call split_block_1.
10251         (create_basic_block): Rename to ...
10252         (create_basic_block_1): ... this.
10253         (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
10254         (create_empty_bb): Call create_basic_block_1.
10255         * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
10256         split_block_after_labels.
10257         * omp-low.c (expand_parallel_call): Likewise.
10258         (expand_omp_target): Likewise.
10259         (simd_clone_adjust): Likewise.
10260         * tree-chkp.c (chkp_get_entry_block): Likewise.
10261         * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
10262         create_basic_block overload.
10263         (cgraph_node::expand_thunk): Likewise.
10264         * tree-cfg.c (make_blocks): Likewise.
10265         (handle_abnormal_edges): Likewise.
10266         * tree-inline.c (copy_bb): Likewise.
10268 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10270         * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
10271         New pattern.
10272         (*xor_one_cmplsidi3_ze): Likewise.
10274 2015-04-21  Thomas Preud'homme  <thomas.preudhomme@arm.com>
10276         * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
10277         use df_remove_problem rather than manually removing problems, leaving
10278         holes in df->problems_in_order[].
10280 2015-04-21  Tom de Vries  <tom@codesourcery.com>
10282         PR tree-optimization/65802
10283         * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
10285 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10287         * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
10288         Increase to 128.
10289         (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
10290         at '.'.  Assert that there's enough space for everything.
10292 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
10294         PR tree-optimization/64950
10295         Revert:
10296         2010-08-02  Uros Bizjak  <ubizjak@gmail.com>
10298         PR target/41089
10299         * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
10300         as volatile.
10302 2015-04-20  Shiva Chen  <shiva0217@gmail.com>
10304         PR rtl-optimization/64916
10305         * cfgcleanup.c (values_equal_p): New function.
10306         (can_replace_by): Use it.
10308 2015-04-20  Paolo Carlini  <paolo.carlini@oracle.com>
10310         PR c++/65801
10311         * doc/invoke.texi ([-Wnarrowing]): Update.
10313 2015-04-20  Jeff Law  <law@redhat.com>
10315         PR tree-optimization/65658
10316         * tree-ssa-threadupdate.c (redirection_block_p): Remove
10317         redundant test for GIMPLE_ASSIGN in last change.
10319 2015-04-20  Uros Bizjak  <ubizjak@gmail.com>
10321         * config/i386/i386.c (set_pic_reg_ever_live): Remove.
10322         (legitimize_pic_address): Do not call set_pic_reg_ever_live.
10323         (legitimize_tls_address): Ditto.
10324         (ix86_expand_move): Ditto.
10325         (ix86_expand_binary_operator): Remove reload_in_progress checks.
10326         (ix86_expand_unary_operator): Ditto.
10327         * config/i386/predicates.md (index_register_operand): Ditto.
10329 2015-04-20  Selim Belbachir  <selim.belbachir@fr.thalesgroup.com>
10331         * reorg.c (try_merge_delay_insns): Improve correctness checking
10332         for targets with multiple delay slots.
10334 2015-04-20  Jeff Law  <law@redhat.com>
10336         PR tree-optimization/65658
10337         * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
10338         statements too.
10340 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
10342         * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
10343         * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
10344         Delete.
10346 2015-04-20  Jakub Jelinek  <jakub@redhat.com>
10348         PR debug/65807
10349         * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
10351 2015-04-20  Richard Biener  <rguenther@suse.de>
10353         * gimple-fold.h (gimple_build): Remove optional valueize arguments.
10354         * gimple-fold.c (gimple_build_valueize): New function.
10355         (gimple_build): Always use gimple_build_valueize as valueize hook.
10357 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
10359         PR target/64134
10360         * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
10361         and overwrite variable parts if <= 1/2 the elements are variable.
10363 2015-04-19  Vladimir Makarov  <vmakarov@redhat.com>
10365         PR rtl-optimization/65805
10366         * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
10367         Don't use difference of offset and previous offset if
10368         update_sp_offset is non-zero.
10369         (eliminate_regs_in_insn): Ditto.
10370         * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
10371         lra_eliminate_regs_1 call.
10372         * lra-constraints.c (get_equiv_with_elimination): Ditto.
10374 2015-04-18  Trevor Saunders  <tsaunders@mozilla.com>
10376         * hash-table.h: Remove version of hash_table that stored value_type *.
10377         * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
10378         config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
10379         config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
10380         dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
10381         gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
10382         hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
10383         ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
10384         loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
10385         reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
10386         tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
10387         tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
10388         tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
10389         tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
10390         tree-ssa-structalias.c, tree-ssa-tail-merge.c,
10391         tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
10392         valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
10394 2015-04-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10395             Jakub Jelinek  <jakub@redhat.com>
10397         PR target/65787
10398         * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
10399         subsequent SH_NONE operand does not overwrite an existing *special
10400         value.
10401         (adjust_extract): Handle case where a vec_extract operation is
10402         wrapped in a PARALLEL.
10404 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
10406         PR target/65780
10407         * config/i386/i386.c (ix86_binds_local_p): Define only if
10408         TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
10410 2015-04-17  Jeff Law  <law@redhat.com>
10412         PR tree-optimization/47679
10413         * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
10414         * tree-ssa-scopedtables.c: New file.
10415         * tree-ssa-scopedtables.h: New file.
10416         * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
10417         (const_and_copies): Change name/type.
10418         (record_const_or_copy): Move into tree-ssa-scopedtables.c
10419         (record_const_or_copy_1): Similarly.
10420         (restore_vars_to_original_value): Similarly.
10421         (pass_dominator::execute): Create and destroy const_and_copies table.
10422         (thread_across_edge): Update passing of const_and_copies.
10423         (record_temporary_equivalence): Use method calls rather than
10424         manipulating const_and_copies directly.
10425         (record_equality, cprop_into_successor_phis): Similarly.
10426         (dom_opt_dom_walker::before_dom_children): Similarly.
10427         (dom_opt_dom_walker::after_dom_children): Similarly.
10428         (eliminate_redundant_computations): Similarly.
10429         * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
10430         (record_temporary_equivalence): Likewise.
10431         (invalidate_equivalences): Likewise.
10432         (record_temporary_equivalences_from_phis): Update due to type
10433         change of const_and_copies.  Use method calls rather than
10434         manipulating the stack directly.
10435         (record_temporary_equivalences_from_stmts_at_dest): Likewise.
10436         (thread_through_normal_block, thread_across_edge): Likewise.
10437         (thread_across_edge): Likewise.
10438         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
10439         * tree-vrp.c: Include tree-ssa-scopedtables.h.  Change type
10440         of equiv_stack.
10441         (identify_jump_threads): Update due to type change of equiv_stack.
10442         (finalize_jump_threads): Delete the equiv_stack when complete.
10444 2015-04-17  Uros Bizjak  <ubizjak@gmail.com>
10446         * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
10447         * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
10448         * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
10450 2015-04-17  Andreas Tobler  <andreast@gcc.gnu.org>
10452         PR target/65535
10453         * config.gcc: Exit with a comment when we do not have a major version
10454         number for the FreeBSD target.
10456 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
10458         PR target/65689
10459         * genpreds.c (struct constraint_data): Add maybe_allows_reg and
10460         maybe_allows_mem bitfields.
10461         (maybe_allows_none_start, maybe_allows_none_end,
10462         maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
10463         maybe_allows_mem_end): New variables.
10464         (compute_maybe_allows): New function.
10465         (add_constraint): Use it to initialize maybe_allows_reg and
10466         maybe_allows_mem fields.
10467         (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
10468         is_address constraints such that those that allow neither mem nor
10469         reg come first, then those that only allow reg but not mem, then
10470         those that only allow mem but not reg, then the rest.
10471         (write_allows_reg_mem_function): New function.
10472         (write_tm_preds_h): Call it.
10473         * stmt.c (parse_output_constraint, parse_input_constraint): Use
10474         the generated insn_extra_constraint_allows_reg_mem function
10475         instead of always setting *allows_reg = true; *allows_mem = true;
10476         for unknown extra constraints.
10478 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
10480         PR target/65780
10481         * output.h (default_binds_local_p_3): New.
10482         * varasm.c (default_binds_local_p_3): Make it public.  Take an
10483         argument to indicate if common symbol may be local.  If common
10484         symbol may be local, treat non-external variable as defined
10485         locally.
10486         (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
10487         (default_binds_local_p_1): Pass false to default_binds_local_p_3.
10488         * config/i386/i386.c (ix86_binds_local_p): New.
10489         (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
10490         ix86_binds_local_p.
10492 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
10494         PR debug/65771
10495         * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
10496         trying mem_loc_descriptor on XEXP (rtl, 0).
10498 2015-04-17  Martin Liska  <mliska@suse.cz>
10500         * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
10501         Release symbol_compare_collection.
10502         * ipa-reference.c: Add TODO that a vector should be released.
10504 2015-04-17  Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
10506         PR target/65296
10507         * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
10508         to new AVR-LibC file layout (bug #44574).
10509         (*avrlibc_devicelib): Same.
10510         * config/avr/avr-mcus.def: Adjust comments.
10511         * config/avr/avr.opt (nodevicelib): Adjust help.
10513 2015-04-17  Alan Lawrence  <alan.lawrence@arm.com>
10515         * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
10517 2015-04-17  Patrick Palka  <ppalka@gcc.gnu.org>
10519         PR c++/64527
10520         * gimplify.c (gimplify_init_constructor): Always emit a
10521         side-effecting constructor.
10523 2015-04-17  Tom de Vries  <tom@codesourcery.com>
10525         PR tree-optimization/64950
10526         * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
10527         in cfun->curr_properties.
10528         (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
10529         if we generate an IFN_VA_ARG.
10530         * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
10531         function if PROP_gimple_lva is not set in src function.
10533 2015-04-17  Tom de Vries  <tom@codesourcery.com>
10534             Michael Matz  <matz@suse.de>
10536         PR tree-optimization/64950
10537         * gimple-iterator.c (update_modified_stmts): Remove static.
10538         * gimple-iterator.h (update_modified_stmts): Declare.
10539         * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
10540         (gimplify_va_arg_internal): New function.
10541         (gimplify_va_arg_expr): Use IFN_VA_ARG.
10542         * gimplify.h (gimplify_va_arg_internal): Declare.
10543         * internal-fn.c (expand_VA_ARG): New unreachable function.
10544         * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
10545         * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
10546         (expand_ifn_va_arg): New function.
10547         (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
10548         (pass_stdarg::execute): Call expand_ifn_va_arg.
10549         (pass_data_lower_vaarg): New pass_data.
10550         (pass_lower_vaarg): New gimple_opt_pass.
10551         (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
10552         (make_pass_lower_vaarg): New function.
10553         * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
10554         properties_required field.
10555         * passes.def (all_passes): Add pass_lower_vaarg.
10556         * tree-pass.h (PROP_gimple_lva): Add define.
10557         (make_pass_lower_vaarg): Declare.
10559 2015-04-17  Tom de Vries  <tom@codesourcery.com>
10561         * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
10562         * calls.c (call_expr_flags): Same.
10564 2015-04-17  Tom de Vries  <tom@codesourcery.com>
10566         * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
10567         (pass_stdarg::execute): ... here.
10569 2015-04-17  Tom de Vries  <tom@codesourcery.com>
10570             Michael Matz  <matz@suse.de>
10572         * tree-cfg.c (make_blocks_1): Factor out of ...
10573         (make_blocks): ... here.
10574         (make_edges_bb): Factor out of ...
10575         (make_edges): ... here.
10576         (gimple_find_sub_bbs): New function.
10577         * tree-cfg.h (gimple_find_sub_bbs): Declare.
10579 2015-04-17  Tom de Vries  <tom@codesourcery.com>
10581         * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
10583 2015-04-17  Yury Gribov  <y.gribov@samsung.com>
10585         * asan.c (set_sanitized_sections): New function.
10586         (section_sanitized_p): Ditto.
10587         (asan_protect_global): Optionally sanitize user-defined
10588         sections.
10589         * asan.h (set_sanitized_sections): Declare new function.
10590         * common.opt (fsanitize-sections): New option.
10591         * doc/invoke.texi (-fsanitize-sections): Document new option.
10592         * opts-global.c (handle_common_deferred_options): Handle new
10593         option.
10595 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
10597         PR debug/65771
10598         * dwarf2out.c (loc_list_from_tree): Return NULL
10599         for DEBUG_EXPR_DECL.
10601 2015-04-17  Christian Bruel  <christian.bruel@st.com>
10603         * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
10604         same attributes.
10606 2015-04-16  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
10608         * ira-color.c (setup_left_conflict_sizes_p): Do not process
10609         node itself when computing left conflict subnode size.
10611 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
10613         * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
10614         * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
10615         *fop_<mode>_1_sse using enabled attribute.  Use
10616         register_mixssei387nonimm_operand operand 1 predicate. Change
10617         alternative 3 constraints from "x" to "v".
10619 2015-04-16  Richard Biener  <rguenther@suse.de>
10621         PR tree-optimization/65774
10622         * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
10623         bit-value tracking on.
10625 2015-04-16  Richard Biener  <rguenther@suse.de>
10627         PR tree-optimization/64277
10628         * tree-vrp.c (check_array_ref): Fix anti-range handling,
10629         simplify upper bound handling.
10630         (search_for_addr_array): Simplify.
10631         (check_array_bounds): Handle ADDR_EXPRs here.
10632         (check_all_array_refs): Simplify.
10634 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
10636         * config/i386/i386.c (print_reg): Rewrite function.
10638 2015-04-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10640         * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
10641         Invert the condition.
10643 2015-04-16  Renlin Li  <renlin.li@arm.com>
10645         * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
10646         simplifications for UNSIGNED_FLOAT.
10648 2015-04-16  Nick Clifton  <nickc@redhat.com>
10650         * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
10651         MUL_UNINIT.
10652         (enum rl78_cpu_type): New.
10653         * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
10654         (umulhi3_shift_virt): Remove m constraint from operand 1.
10655         (umulqihi3_virt): Likewise.
10656         * config/rl78/rl78.c (rl78_option_override): Add code to process
10657         -mcpu and -mmul options.
10658         (rl78_alloc_physical_registers): Add code to handle divhi and
10659         divsi valloc attributes.
10660         (set_origin): Likewise.
10661         * config/rl78/rl78.h (RL78_MUL_G14): Define.
10662         (TARGET_G10, TARGET_G13, TARGET_G14): Define.
10663         (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
10664         __RL78_Gxx__.
10665         (ASM_SPEC): Pass -mcpu on to assembler.
10666         * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
10667         (mulqi3_rl78): Likewise.
10668         (mulhi3_g13): Likewise.
10669         (mulhi3): Generate the G13 or G14 versions of the insn directly.
10670         (mulsi3): Likewise.
10671         (mulhi3_g14): Add clobbers of AX and BC.
10672         (mulsi3_g14): Likewise.
10673         (mulsi3_g13): Likewise.
10674         (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
10675         (udivmodsi4_g14, udivmodsi4_g13): New patterns.
10676         * config/rl78/rl78.opt (mmul): Initialise value to
10677         RL78_MUL_UNINIT.
10678         (mcpu): New option.
10679         (m13, m14, mrl78): New option aliases.
10680         * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
10681         (MULTILIB_DIRNAMES): Add g13 and g14.
10682         * doc/invoke.texi: Document -mcpu and -mmul options.
10684 2015-04-16  Richard Biener  <rguenther@suse.de>
10686         * tree-ssa-ccp.c (likely_value): See if we have operands that
10687         are marked as never simulate again and return CONSTANT in this
10688         case.
10689         * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
10690         not have any operands that will be simulated again as
10691         not being simulated again.
10693 2015-04-15  Uros Bizjak  <ubizjak@gmail.com>
10695         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
10696         Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
10697         (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
10698         attribute.
10699         (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
10700         enabled attribute.
10701         (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
10702         *float<SWI48:mode><MODEF:mode>2_sse.
10703         (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
10704         enabled attribute.
10705         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
10706         enabled attribute.
10708 2015-04-15  Tom de Vries  <tom@codesourcery.com>
10710         PR other/65487
10711         * function.c (push_dummy_function): New function.
10712         (init_dummy_function_start): Use push_dummy_function.
10713         (pop_dummy_function): New function.  Factored out of ...
10714         (expand_dummy_function_end): ... here.
10715         * function.h (push_dummy_function, pop_dummy_function): Declare.
10716         * passes.c (pass_manager::dump_passes): Use push_dummy_function and
10717         pop_dummy_function.
10718         * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
10720 2015-04-15  Jeff Law  <law@redhat.com>
10722         PR tree-optimization/47679
10723         * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
10724         need for forward declaration in upcoming changes.
10725         (record_conditions, record_edge_info): Likewise.
10727         PR rtl-optimization/42522
10728         * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
10729         SIGN_EXTRACT as a whole object rather than simplifying
10730         its operand.
10732 2015-04-15  Jakub Jelinek  <jakub@redhat.com>
10734         PR ipa/65765
10735         * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
10736         and GIMPLE_PREDICT use break instead of return true. For
10737         GIMPLE_EH_DISPATCH, compare dispatch region.
10739 2015-04-14  Matthew Wahab  <matthew.wahab@arm.com>
10741         * doc/extend.texi (__sync Builtins): Simplify some text.  Update
10742         details about the implementation.  Make clear preference for
10743         __atomic builtins.  Reduce possibility of future change.
10745 2015-04-15  Nick Clifton  <nickc@redhat.com>
10747         * config/rx/rx.opt (mallow-string-insns): New option.
10748         * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
10749         builtin if string instructions are denied.
10750         * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
10751         __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
10752         appropriate.
10753         (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
10754         * config/rx/rx.md (movstr): Enable pattern only if string
10755         instructions are allowed.
10756         (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
10757         (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
10758         * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
10759         (MULTILIB_DIRNAMES): Add no-strings.
10760         * doc/invoke.texi: Document -mno-allow-string-insns.
10762 2015-04-15  Alan Modra  <amodra@gmail.com>
10764         PR target/65408
10765         PR target/58744
10766         PR middle-end/36043
10767         * calls.c (load_register_parameters): Don't load past end of
10768         mem unless suitably aligned.
10770 2015-04-15  Nick Clifton  <nickc@redhat.com>
10772         * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
10773         decrement instruction as being frame related.
10774         (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
10775         based addresses.
10776         If zero extending a function address enclose the operation in
10777         %code(...).
10778         (rl78_preferred_reload_class): New function.
10779         (TARGET_PREFERRED_RELOAD_CLASS): Define.
10780         * config/rl78/rl78.md: Remove useless constraints in expanders.
10781         (mulqi3_rl78): Remove + qualifier on input-only operand 1.
10782         (mulhi3_rl78): Likewise.
10783         (mulhi3_g13): Likewise.
10784         (mulsi3_rl78): Likewise.
10785         (es_addr): Move to before the multiply patterns.
10787 2015-04-15  Alan Modra  <amodra@gmail.com>
10789         * function.h (struct emit_status): Delete x_first_insn, x_last_insn
10790         and sequence_stack.  Add seq.
10791         (seq_stack): Delete.
10792         * function.c (prepare_function_start): Don't access x_last_insn.
10793         * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
10794         (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
10795         * emit_rtl.c (start_sequence, push_topmost_sequence,
10796         pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
10797         sequence accessors.
10798         (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
10799         remove_insn): Likewise.  Simplify.
10800         * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
10801         and pop_topmost_sequence.
10802         (m32c_function_needs_enter): Use get_topmost_sequence.  Ignore
10803         debug insns.
10804         * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
10806 2015-04-14  Yvan Roux  <yvan.roux@linaro.org>
10808         PR target/65729
10809         * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
10810         the assertiion.
10812 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
10814         * config/i386/i386.h (LEGACY_INT_REG_P): New define.
10815         (LEGACY_INT_REGNO_P): Ditto.
10816         (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
10817         (ANY_MASK_REG_P): Remove.
10818         (BND_REG_P): Rename from ANY_BND_REG_P.
10819         * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
10820         legacy integer registers.  Do not handle MMX_REG_P in a special way.
10821         Merge 64byte and 32byte SSE handling.
10823 2015-04-14  Nick Clifton  <nickc@redhat.com>
10825         * expr.c (expand_assignment): Force an address offset computation
10826         into a register before changing its mode.
10827         (expand_expr_real_1): Likewise.
10829 2015-04-14  Alan Lawrence  <alan.lawrence@arm.com>
10831         * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
10832         vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
10833         vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
10834         vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
10835         vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
10836         vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
10837         vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
10838         and __aarch64_vget_lane_any.
10840 2015-04-14  Jakub Jelinek  <jakub@redhat.com>
10842         PR rtl-optimization/65761
10843         * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
10844         get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
10846 2015-04-14  Richard Biener  <rguenther@suse.de>
10848         * graphite-scop-detection.c: Do not include cp/cp-tree.h.
10849         (graphite_can_represent_scev): Use POINTER_TYPE_P.
10851 2015-04-14  Richard Biener  <rguenther@suse.de>
10853         PR tree-optimization/65758
10854         * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
10855         against -1.
10856         (ccp_lattice_meet): Likewise.
10857         (bit_value_unop): Likewise.
10858         (bit_value_binop): Likewise.
10859         (bit_value_assume_aligned): Likewise.
10861 2015-04-14  Christian Bruel  <christian.bruel@st.com>
10863         * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
10864         function.
10866 2015-04-14  Marc Glisse  <marc.glisse@inria.fr>
10868         PR tree-optimization/63387
10869         * match.pd ((x unord x) | (y unord y) -> (x unord y),
10870         (x unord x) | (x unord y) -> (x unord y)): New simplifications.
10872 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
10874         * config/i386/predicates.md (any_QIreg_operand): Rename from
10875         q_regs_operand.  Do not process subregs.
10876         (QIreg_operand): Use QI_REGNO_P predicate.
10877         (ext_QIreg_operand): Ditto.
10878         (ext_register_operand): Ditto.
10879         * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
10880         (AND splitters): Ditto.
10881         (AND with -65536 splitter): Add SWI48 mode for operand 0.
10882         (AND with -256 splitter): Use any_QIreg_operand predicate and
10883         SWI248 mode for operand 0.
10884         (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
10885         mode for operand 0.
10886         (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
10888 2015-04-13  Gerald Pfeifer  <gerald@pfeifer.com>
10890         * doc/plugins.texi: Rewrite first introductory paragraph.
10892 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
10894         * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
10895         (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
10897 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
10899         * ipa-profie.c (ipa_profile): Check number of parameters
10900         and possible polymorphic call targets before
10901         devirtualizing.
10903 2015-04-13  Uros Bizjak  <ubizjak@gmail.com>
10905         * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
10906         *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
10908 2015-04-13  Richard Biener  <rguenther@suse.de>
10910         PR tree-optimization/65204
10911         * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
10912         takens for bit-CCP.
10914 2015-04-13  Richard Biener  <rguenther@suse.de>
10916         PR target/65660
10917         * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
10918         and cond_not_taken_branch_cost to 4 and 2.
10919         (bdver2_cost): Likewise.
10920         (bdver3_cost): Likewise.
10921         (bdver4_cost): Likewise.
10923 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
10925         * hash-table.h (hash_table constructor): Add mem stats.
10926         (alloc_entries): Likewise.
10928 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
10930         * ipa-cp.c (ipcp_driver): Relase prev_edge.
10931         * passes.c (execute_one_pass): Only add transform if pass has one.
10933 2015-04-12  Joseph Myers  <joseph@codesourcery.com>
10935         * config/i386/i386.c (ix86_option_override_internal): Don't set
10936         -fprefetch-loop-arrays if optimizing for size.
10938 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
10939             Gerald Pfeifer  <gerald@pfeifer.com>
10941         * doc/contrib.texi (Contributors): Add Martin Jambor and
10942         Michael Matz.
10944 2015-04-12  Jakub Jelinek  <jakub@redhat.com>
10946         * BASE-VER: Set to 6.0.0.
10948         PR tree-optimization/65747
10949         * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
10950         rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
10952 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
10954         * doc/invoke.texi (-Wmemset-transposed-args): Break a long
10955         sentence.  Improve grammar.
10957 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
10959         * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
10961 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
10963         PR ipa/65743
10964         * ipa-inline-transform.c (speculation_removed): Remove static var.
10965         (check_speculations): New function.
10966         (clone_inlined_nodes): Do not check spculations.
10967         (inline_call): Call check_speculations.
10968         * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
10969         consider non-invariants.
10971 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
10972             Martin Liska  <mliska@suse.cz>
10974         PR ipa/65722
10975         * ipa-icf.c (sem_item::compare_cgraph_references): function and
10976         variable can not match.
10977         (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
10978         (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
10980 2015-04-11  Jakub Jelinek  <jakub@redhat.com>
10982         PR tree-optimization/65735
10983         * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
10984         Remove visited_phis argument, add visited_bbs, avoid recursing into the
10985         same bb rather than just into the same phi node.
10986         (thread_through_normal_block): Adjust caller.
10988 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
10990         * doc/contrib.texi (Contributors): Add Ira Rosen.
10992 2015-04-11  Benno Schulenberg  <bensberg@justemail.net>
10994         * gcov.c (find_source): Fix miswording in error message.
10995         * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
10996         (ix86_expand_sse_comi_round): Fix typo in error message.
10998 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
11000         * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
11002 2015-04-10  Gerald Pfeifer  <gerald@pfeifer.com>
11004         * doc/contrib.texi (Contributors): Update Joe Buck's entry.
11006 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
11008         PR target/65710
11009         * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
11010         Print bad_spills_num and insn_pseudos_num.
11012 2015-04-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11014         PR target/65694
11015         * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
11016         when creating +1 values for SImode.
11018 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
11020         PR target/65729
11021         * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
11022         assert.
11024 2015-04-10  Jakub Jelinek  <jakub@redhat.com>
11025             Iain Sandoe  <iain@codesourcery.com>
11027         PR target/65351
11028         * configure: Regenerate.
11030 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
11032         PR target/65671
11033         * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
11035 2015-04-09  Gerald Pfeifer  <gerald@pfeifer.com>
11037         * doc/contrib.texi (Contributors): Add John Marino.
11039 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
11041         PR tree-optimization/65709
11042         * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
11043         TREE_TYPE (TREE_TYPE (t)).
11045 2015-04-09  Vladimir Makarov  <vmakarov@redhat.com>
11047         PR target/65710
11048         * lra-int.h (lra_bad_spill_regno_start): New.
11049         * lra.c (lra_bad_spill_regno_start): New.
11050         (lra): Set up lra_bad_spill_regno_start.  Set up
11051         lra_constraint_new_regno_start unconditionally.
11052         * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
11053         spill preferences.
11055 2015-04-09  Marek Polacek  <polacek@redhat.com>
11056             Jakub Jelinek  <jakub@redhat.com>
11058         PR middle-end/65554
11059         * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
11060         (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
11061         of STRIP_NOPS.
11063 2015-04-09  Segher Boessenkool  <segher@kernel.crashing.org>
11065         PR rtl-optimization/65693
11066         * combine.c (is_parallel_of_n_reg_sets): Move outside of
11067         #ifndef HAVE_cc0.
11069 2015-04-09  Georg-Johann Lay  <avr@gjlay.de>
11071         PR target/65296
11072         * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
11073         device specs file if "device-specs%s" didn't resolve to a path.
11075 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
11077         PR target/65676
11078         * config/i386/i386.c (fixup_modeless_constant): New.
11079         (ix86_expand_args_builtin): Fixup modeless constant operand.
11080         (ix86_expand_round_builtin): Ditto.
11081         (ix86_expand_special_args_builtin): Ditto.
11082         (ix86_expand_builtin): Ditto.
11084 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
11086         PR target/65693
11087         * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
11088         any pow2 integer in between 2 and 0x80000000U inclusive.
11090 2015-04-08  Segher Boessenkool  <segher@kernel.crashing.org>
11092         PR rtl-optimization/65693
11093         * combine.c (is_parallel_of_n_reg_sets): Change first argument
11094         from an rtx_insn * to an rtx.
11095         (try_combine): Adjust both callers.  Use it once more.
11097 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
11099         * tree-chkp.c (chkp_find_const_bounds_var): Remove.
11100         (chkp_make_static_const_bounds): Search existing
11101         symbol by assembler name.  Use make_decl_one_only.
11102         (chkp_get_zero_bounds_var): Remove node search which
11103         is now performed in chkp_make_static_const_bounds.
11104         (chkp_get_none_bounds_var): Likewise.
11106 2015-04-08  Michael Witten  <mfwitten@gmail.com>
11108         * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
11109         to an example.
11111 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
11113         * tree.h (CONVERT_EXPR_P): Commentary typo fix.
11115 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
11117         * doc/extend.texi (__sync Builtins): Fix grammar.
11119 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
11121         * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
11123 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
11125         * varasm.c (emit_local): Move definition of align.
11127 2015-04-08  Julian Brown  <julian@codesourcery.com>
11129         * config/nvptx/mkoffload.c (process): Support variable mapping.
11131 2015-03-27  Trevor Saunders  <tbsaunde@tbsaunde.org>
11133         * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
11134         alpha_links **.
11135         (alpha_write_one_linkage): Correct typo.
11137 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
11139         * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
11141 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
11143         * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
11145 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
11147         * tree-chkp.h (chkp_insert_retbnd_call): New.
11148         * tree-chkp.c (chkp_insert_retbnd_call): New.
11149         * ipa-split.c (insert_bndret_call_after): Remove.
11150         (split_function): Use chkp_insert_retbnd_call.
11151         * cgraphunit.c (cgraph_node::expand_thunk): Build returned
11152         bounds for instrumented functions.
11154 2015-04-07  Jan Hubicka  <hubicka@ucw.cz>
11156         PR ipa/65540
11157         * calls.c (initialize_argument_information): When producing tail
11158         call also turn SSA_NAMES passed by references to original PARM_DECLs
11160 2015-04-07  Vladimir Makarov  <vmakarov@redhat.com>
11162         PR target/65648
11163         * lra-remat.c (do_remat): Process input and non-input insn
11164         registers separately.
11166 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
11168         PR debug/65678
11169         * valtrack.c (debug_lowpart_subreg): New function.
11170         (dead_debug_insert_temp): Use it.
11172         PR middle-end/65680
11173         * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
11174         into signed HOST_WIDE_INT the same as negative bit_offset.
11176 2015-04-07  Ilya Enkovich  <ilya.enkovich@intel.com>
11178         * ipa-comdats.c (ipa_comdats): Visit all thunks
11179         to set proper comdat group.
11181 2015-04-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11183         PR target/65489
11184         * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
11185         on constants for NEON VSTRUCT modes.
11187 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
11188             Iain Sandoe  <iain@codesourcery.com>
11190         PR target/65351
11191         * configure: Regenerate.
11193 2015-04-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
11195         PR target/65614
11196         * config/rs6000/rs6000.c (struct processor_costs): Add cost field
11197         for SF->DF conversions to make FLOAT_EXTEND more expensive, so
11198         that LFD is used to load double constants instead of LFS.  Add
11199         defaults for all costs structures.  Add comments for missing
11200         initialization fields.
11201         (size32_cost): Likewise.
11202         (size64_cost): Likewise.
11203         (rs64a_cost): Likewise.
11204         (mpccore_cost): Likewise.
11205         (ppc403_cost): Likewise.
11206         (ppc405_cost): Likewise.
11207         (ppc440_cost): Likewise.
11208         (ppc476_cost): Likewise.
11209         (ppc601_cost): Likewise.
11210         (ppc603_cost): Likewise.
11211         (ppc604_cost): Likewise.
11212         (ppc604e_cost): Likewise.
11213         (ppc620_cost): Likewise.
11214         (ppc630_cost): Likewise.
11215         (ppccell_cost): Likewise.
11216         (ppc750_cost): Likewise.
11217         (ppc7450_cost): Likewise.
11218         (ppc8540_cost): Likewise.
11219         (ppce300c2c3_cost): Likewise.
11220         (ppce500mc_cost): Likewise.
11221         (ppce500mc64_cost): Likewise.
11222         (ppce5500_cost): Likewise.
11223         (ppce6500_cost): Likewise.
11224         (titan_cost): Likewise.
11225         (power4_cost): Likewise.
11226         (power6_cost): Likewise.
11227         (power7_cost): Likewise.
11228         (power8_cost): Likewise.
11229         (ppca2_cost): Likewise.
11230         (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
11232         * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
11233         instead of XXLOR to copy SFmode to clear out dirty bits created
11234         when SFmode denormals are generated.
11235         (mov<mode>_hardfloat, FMOVE32 case): Likewise.
11236         (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
11238 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
11240         * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
11241         * config/aarch64/aarch64-cores.def (exynos-m1): New core.
11242         * config/aarch64/aarch64-tune.md: Regenerate.
11244 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
11246         * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
11247         * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
11248         * config/arm/arm-cores.def (exynos-m1): New core.
11249         * config/arm/arm-tune.md: Regenerate.
11250         * config/arm/arm-tables.opt: Add entry for "exynos-m1".
11251         * config/arm/bpabi.h: Likewise.
11253 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
11255         * ipa-cp (set_single_call_flag): Remove too
11256         restrictive assert.
11258 2015-04-06  Ilya Verbin  <ilya.verbin@intel.com>
11260         * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
11261         GOMP_offload_unregister from the destructor.
11263 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
11265         * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
11266         flags for instrumentation thunk.
11267         (chkp_produce_thunks): Likewise.
11269 2015-04-05  Martin Liska  <mliska@suse.cz>
11271         PR ipa/65665
11272         * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
11273         has computed data structure.
11274         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
11276 2015-04-04  Jan Hubicka  <hubicka@ucw.cz>
11278         * invoke.texi (inline-unit-growth): Increase growth to 20%
11279         * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
11281 2015-04-04  Vladimir Makarov  <vmakarov@redhat.com>
11283         PR target/65647
11284         * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New.  Add its
11285         value checking.
11286         (lra_rematerialization_iter): New.
11287         * lra.c (lra): Initialize lra_rematerialization_iter.
11288         Stop updating lra_constraint_new_regno_start after switching of
11289         inheritance and rematerialization.
11290         * lra-remat.c (lra_rematerialization_iter): New.
11291         (lra_remat): Add printing pass iteration.  Do rematerialization
11292         only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
11294 2015-04-04  Richard Biener  <rguenther@suse.de>
11296         PR tree-optimization/64909
11297         PR tree-optimization/65660
11298         * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
11299         to take a cost vector for scalar iteration cost.
11300         (vect_get_single_scalar_iteration_cost): Likewise.
11301         * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
11302         Compute the scalar iteration cost into a cost vector.
11303         (vect_get_known_peeling_cost): Use the scalar cost vector to
11304         account for the cost of the peeled iterations.
11305         (vect_estimate_min_profitable_iters): Likewise.
11306         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
11307         Likewise.
11309 2015-04-04  Alan Modra  <amodra@gmail.com>
11311         PR target/65576
11312         PR target/65240
11313         * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
11314         0.0 constant unless TARGET_VSX.
11315         * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
11316         alternative.
11318 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
11320         PR ipa/65654
11321         * ipa-inline-transform.c (inline_call): Skip sanity check to work
11322         around the ICE
11324 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
11326         PR ipa/65655
11327         * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
11328         speculative indirect edges to avoid ordering issue.
11330 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
11332         PR ipa/65076
11333         * ipa-inline.c (edge_badness): Add combined size to the denominator.
11335 2015-04-03  Jakub Jelinek  <jakub@redhat.com>
11337         * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
11338         TYPE_ARTIFICIAL on the .omp_data* types.
11340 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
11342         * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
11343         instrumentation thunks.
11345 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
11347         * config/i386/i386.c (ix86_expand_call): Avoid nested
11348         PARALLEL in returned call value.
11350 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
11352         * lto-cgraph.c (input_cgraph_1): Always link instrumented
11353         assembler name with original one.
11355 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
11357         * config/i386/i386.c (ix86_register_priority): Use AX_REG.
11359 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
11361         Revert parts of r216820.
11362         * config/i386/i386.md (movqi_internal): Correct type calculation
11363         for alternatives 3 and 5.
11365 2015-04-02  Jakub Jelinek  <jakub@redhat.com>
11367         PR preprocessor/61977
11368         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
11369         predefine __vector/__bool/__pixel macros nor context sensitive
11370         macros for CLK_ASM.
11371         * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
11373 2015-04-02  John David Anglin  <danglin@gcc.gnu.org>
11375         * config/pa/pa.c (pa_output_move_double): Directly handle register
11376         indexed memory operand.  Simplify handling of scaled register indexed
11377         memory operands.
11379 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
11381         PR driver/65444
11382         * config/i386/linux-common.h (MPX_SPEC): New.
11383         (CHKP_SPEC): Add MPX_SPEC.
11384         * doc/invoke.texi (-fcheck-pointer-boudns): Document
11385         possible issues with '-z bndplt' support in linker.
11387 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
11389         * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
11390         (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
11391         (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
11392         * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
11393         (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
11395 2015-04-01  Uros Bizjak  <ubizjak@gmail.com>
11397         * config/i386/sync.md (UNSPEC_MOVA): Remove.
11398         (atomic_load<mode>): Change operand 0 predicate to
11399         nonimmediate_operand and fix up the destination when needed.
11400         Use UNSPEC_LDA.
11401         (atomic_loaddi_fpu): Use UNSPEC_LDA.
11402         (atomic_store<mode>): Change operand 1 predicate to
11403         nonimmendate_operand and move the source to register when needed.
11404         Use UNSPEC_STA.
11405         (atomic_store<mode>_1): Use UNSPEC_STA.
11406         (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
11407         Fix moves from memory operand.  Use UNSPEC_STA.
11409 2015-04-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
11411         * expmed.c (strict_volatile_bitfield_p): Check that the access will
11412         not cross a MODESIZE boundary.
11413         (store_bit_field, extract_bit_field): Added assertions in the
11414         strict volatile bitfields code path.
11416 2015-04-01  Max Ostapenko  <m.ostapenko@partner.samsung.com>
11418         PR target/65624
11419         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
11420         Increase args array size by one to avoid buffer overflow.
11422 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
11424         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
11425         split_part.
11426         * ipa-inline.c (edge_badness): Add wrapper penalty.
11427         (sum_callers): Move up.
11428         (inline_small_functions): Set single_caller.
11429         * ipa-inline.h (inline_summary): Add single_caller.
11430         * ipa-split.c (split_function): Set split_part.
11431         (cgraph_node::create_clone): Do not shadow decl; copy split_part.
11432         * cgraph.h (cgraph_node): Add split_part.
11434 2015-03-31  Uros Bizjak  <ubizjak@gmail.com>
11436         PR target/58945
11437         * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
11438         Do not split operands 0 and operands 2 to halfmode.
11439         (atomic_compare_and_swap<mode>): Update for
11440         atomic_compare_and_swap<dwi>_doubleword changes.
11442 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
11444         * tree.c (need_assembler_name_p): Artificial types have no ODR names.
11445         * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
11446         no caching is done.
11448 2015-03-31  Martin Liska  <mliska@suse.cz>
11450         PR ipa/65557
11451         * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
11452         has already filled up function summary.
11453         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
11455 2015-03-31  Richard Biener  <rguenther@suse.de>
11457         * tree-sra.c (create_access_replacement): Drop under-/over-alignment
11458         of types.
11460 2015-03-31  Dominik Vogt  <vogt@linux.vnet.ibm.com>
11462         * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
11463         nested functions.
11464         (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
11465         (s390_asm_output_function_label): Adapt to new signature of
11466         s390_function_num_hotpatch_hw
11467         Optimise the code generating assembler output.
11468         Add comments to assembler file.
11470 2015-03-31  Richard Biener  <rguenther@suse.de>
11472         PR middle-end/65626
11473         * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
11474         of the noreturn call so it is last and cleanup_control_flow_bb
11475         can do the CFG part.
11477 2015-03-31  Ilya Enkovich  <ilya.enkovich@intel.com>
11479         PR target/65531
11480         * ipa-chkp.c (chkp_maybe_create_clone): Don't set
11481         same_comdat_group for external symbols.
11482         * symtab.c (symtab_node::verify_symtab_nodes): Avoid
11483         infinite same_comdat_group traversal loop.
11485 2015-03-31  Jakub Jelinek  <jakub@redhat.com>
11487         PR plugins/61176
11488         * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
11489         automatically to $headers.
11491 2015-03-30  Jakub Jelinek  <jakub@redhat.com>
11493         PR ipa/65610
11494         * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
11495         * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
11496         function.
11497         (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
11498         Use it.
11499         * ipa-prop.c (param_type_may_change_p): Likewise.
11500         * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
11501         (remove_unused_scope_block_p): Add in_ctor_dtor_block
11502         argument.  Before inlining, preserve
11503         inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
11504         with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them.  Adjust
11505         recursive calls.
11506         (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
11508 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
11510         PR ipa/65076
11511         * ipa-inline.c (edge_badness): Base denominator on callee's
11512         grwoth squared.
11514 2015-03-27  Martin Jambor  <mjambor@suse.cz>
11516         PR ipa/65478
11517         * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
11518         (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
11519         * ipa-prop.h (ipa_node_params): New flags node_within_scc and
11520         node_calling_single_call.
11521         * ipa-cp.c (count_callers): New function.
11522         (set_single_call_flag): Likewise.
11523         (initialize_node_lattices): Count callers and set single_flag_call if
11524         necessary.
11525         (incorporate_penalties): New function.
11526         (good_cloning_opportunity_p): Use it, dump new flags.
11527         (propagate_constants_topo): Set node_within_scc flag if appropriate.
11528         * doc/invoke.texi (ipa-cp-recursion-penalty,
11529         ipa-cp-single-call-pentalty): Document.
11531 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
11533         PR ipa/65588
11534         * symtab.c (symtab_node::get_partitioning_class): Register vars
11535         are duplicated.
11536         * varpool.c (symbol_table::output_variables) Do not assemble unefined
11537         decls for non-symbols.
11539 2015-03-27  H.J. Lu  <hongjiu.lu@intel.com>
11541         PR target/65248
11542         * output.h (default_binds_local_p_2): New.
11543         * varasm.c (default_binds_local_p_2): Renamed to ...
11544         (default_binds_local_p_3): This.  Don't return true on protected
11545         data symbol if protected data may be external.
11546         (default_binds_local_p): Use default_binds_local_p_3.
11547         (default_binds_local_p_1): Likewise.
11548         (default_binds_local_p_2): New.
11549         * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
11550         default_binds_local_p_2 if TARGET_MACHO is undefined.
11552 2015-03-27  Jakub Jelinek  <jakub@redhat.com>
11554         PR target/65593
11555         * config/i386/i386.c (legitimize_pic_address): If base
11556         is SYMBOL_REF or LABEL_REF using %rip addressing, force
11557         it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
11559 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
11561         PR target/65531
11562         * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
11563         comdat groups.
11565 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
11567         PR ipa/65600
11568         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
11569         of optimized out indirect call.
11570         (redirect_to_unreachable): Always build symbol table node for
11571         BUILT_IN_UNREACHABLE
11573 2015-03-27  Vladimir Makarov  <vmakarov@redhat.com>
11575         PR target/65407
11576         * ira-costs.c (record_reg_classes): Process all constraint string
11577         containing 0-9.
11579 2015-03-27  Bernd Schmidt  <bernds@codesourcery.com>
11581         * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
11582         memory_operand.
11584         PR target/65052
11585         * config/c6x/constraints.md (S3): New constraint.
11586         * config/c6x/c6x.md (real_jump): Use it.
11588 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
11590         PR middle-end/65595
11591         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
11592         do redirection if the call is not optimized out.
11594 2015-03-27  Ilya Enkovich  <ilya.enkovich@intel.com>
11596         PR target/65495
11597         * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
11598         (fchkp-check-incomplete-type): Add LTO.
11599         (fchkp-zero-input-bounds-for-main): Likewise.
11600         (fchkp-first-field-has-own-bounds): Likewise.
11601         (fchkp-narrow-bounds): Likewise.
11602         (fchkp-narrow-to-innermost-array): Likewise.
11603         (fchkp-use-static-bounds): Likewise.
11604         (fchkp-use-static-const-bounds): Likewise.
11605         (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
11607 2015-03-27  Marek Polacek  <polacek@redhat.com>
11609         * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
11611 2015-03-27  Marek Polacek  <polacek@redhat.com>
11613         PR sanitizer/65583
11614         * ubsan.c (ubsan_create_edge): New function.
11615         (instrument_bool_enum_load): Call it.
11616         (instrument_nonnull_arg): Likewise.
11617         (instrument_nonnull_return): Likewise.
11618         (instrument_object_size): Likewise.
11620 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
11622         * lto-streamer.h (class lto_location_cache): Turn loc_cache into
11623         auto_vec.
11625 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
11627         PR lto/65536
11628         * lto-streamer.h (class lto_location_cache): New.
11629         (struct data_in): Add location_cache.
11630         (lto_input_location): Update prototype.
11631         (stream_input_location_now): New.
11632         * streamer-hooks.h (struct streamer_hooks): Make input_location to take
11633         pointer to location.
11634         (stream_input_location): Update.
11635         * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
11636         (warn_odr): Apply location cache before warning.
11637         (lto_input_location): Update prototype.
11638         * gimple-streamer-in.c (input_phi, input_gimple_stmt):
11639         Use stream_input_location_now.
11640         * lto-streamer-in.c (lto_location_cache::current_cache): New static
11641         variable.
11642         (lto_location_cache::cmp_loc): New function.
11643         (lto_location_cache::apply_location_cache): New function.
11644         (lto_location_cache::accept_location_cache): New function.
11645         (lto_location_cache::revert_location_cache): New function.
11646         (lto_location_cache::input_location): New function.
11647         (lto_input_location): Do location caching.
11648         (stream_input_location_now): New function.
11649         (input_eh_region, input_struct_function_base): Use
11650         stream_input_location_now.
11651         (lto_data_in_create): use new.
11652         (lto_data_in_delete): Use delete.
11653         * tree-streamer-in.c (unpack_ts_block_value_fields,
11654         unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
11655         lto_input_ts_exp_tree_pointers): Update for cached location api.
11657 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
11659         PR ipa/65076
11660         * passes.def: Add pass_nothrow.
11661         * ipa-pure-const.c: (pass_data_nothrow): New.
11662         (pass_nothrow): New.
11663         (pass_nothrow::execute): New.
11664         (make_pass_nothrow): New.
11665         * tree-pass.h (make_pass_nothrow): Declare.
11667 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
11669         * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
11670         edge to change by speculation resolution or redirection.
11671         (edge_set_predicate): Likewise.
11672         (inline_summary_t::duplicate): Likewise.
11673         (remap_edge_summaries): Likewise.
11675 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
11677         * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
11678         New macros.
11679         (can_inline_edge_p): Relax option matching for always inline functions.
11681 2015-03-26  Uros Bizjak  <ubizjak@gmail.com>
11683         PR target/65561
11684         * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
11685         Check operand 4 and operand 0 for equality.
11686         (avx512f_vextract<shuffletype>32x4_1_maskm):
11687         Check operand 6 and operand 0 for equality.
11688         (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
11689         for equality.
11690         (vec_extract_hi_<mode>_maskm): Ditto.
11692 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
11694         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
11695         dead calls back to live.
11696         (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
11697         cross check to ...
11698         (cgraph_node::verify_node): ... here; verify only callee edges,
11699         not caller.
11700         * cif-code.def (CILK_SPAWN): New code.
11702 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
11704         * ipa-inline-analysis.c (redirect_to_unreachable): New function.
11705         (edge_set_predicate): Use it to mark unreachable edges.
11706         (inline_summary_t::duplicate): Remove unnecesary code.
11707         (remap_edge_summaries): Likewise.
11708         (dump_inline_summary): Report contains_cilk_spawn.
11709         (compute_inline_parameters): Compute contains_cilk_spawn.
11710         (inline_read_section, inline_write_summary): Stream
11711         contains_cilk_spawn.
11712         * ipa-inline.c (can_inline_edge_p): Do not touch
11713         DECL_STRUCT_FUNCTION that may not be available;
11714         use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
11715         remove check for callee_fun->can_throw_non_call_exceptions and
11716         replace it by optimization attribute check; check for flag_exceptions.
11717         * ipa-inline-transform.c (inline_call): Maintain
11718         DECL_FUNCTION_PERSONALITY
11719         * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
11721 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
11723         PR tree-optimization/65551
11724         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
11725         TYPE_PRECISION only for INTEGRAL_TYPE_P types.
11727 2015-03-26  Richard Biener  <rguenther@suse.de>
11729         PR middle-end/65555
11730         * tree-cfg.c (verify_gimple_call): Do not require a call to
11731         have no LHS if it wasn't recognized as control altering yet.
11733 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
11735         PR tree-optimization/64715
11736         * passes.def: Add another instance of pass_object_sizes before ccp1.
11737         * tree-object-size.c (pass_object_sizes::execute): In
11738         first_pass_instance, only handle __bos (, 1) and __bos (, 3)
11739         calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
11740         __bos result and the computed constant.  Remove redundant
11741         checks, obsoleted by gimple_call_builtin_p test.
11743         * var-tracking.c (variable_tracking_main_1): Don't track
11744         variables for targetm.no_register_allocation targets.
11746 2015-03-26  Oleg Endo  <olegendo@gcc.gnu.org>
11748         * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
11749         * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
11751 2015-03-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
11753         PR target/65569
11754         * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
11755         XXLXOR to create 0.0.  On pre-VSX systems make sure the constant
11756         0.0 is correctly setup.
11757         (extenddftf2_internal): Likewise.
11759 2015-03-25  Sebastian Pop  <s.pop@samsung.com>
11761         PR tree-optimization/65177
11762         * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
11763         (bb_in_bbs): New.
11764         (duplicate_seme_region): Renamed duplicate_thread_path.  Redirect all
11765         edges not adjacent on the path to the original code.
11767 2015-03-25  Uros Bizjak  <ubizjak@gmail.com>
11769         PR bootstrap/65537
11770         * doc/install.texi (Building a native compiler): Document new
11771         bootstrap-lto-noplugin configuration.  Mention that bootstrap-lto
11772         configuration assumes that the host supports the linker plugin.
11774 2015-03-25  Ilya Enkovich  <ilya.enkovich@intel.com>
11776         PR target/65508
11777         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
11778         chain for generated call.
11780 2015-03-25  Richard Biener  <rguenther@suse.de>
11782         * passes.c (pass_manager::execute_early_local_passes): Guard
11783         execution of pass_chkp_instrumentation_passes with
11784         flag_check_pointer_bounds.
11785         (pass_chkp_instrumentation_passes::gate): Likewise.
11787 2015-03-25  Martin Liska  <mliska@suse.cz>
11789         PR tree-optimization/65538
11790         * symbol-summary.h (function_summary::~function_summary):
11791         Relese memory for allocated summaries.
11792         (function_summary::release): New function.
11794 2015-03-25  Jakub Jelinek  <jakub@redhat.com>
11796         PR lto/65515
11797         * lto-streamer-out.c (DFS::worklist): New struct.
11798         (DFS::worklist_vec): New data member.
11799         (DFS::next_dfs_num): Remove.
11800         (DFS::DFS): Rewritten using worklist instead of recursion,
11801         using most of code from DFS::DFS_write_tree.
11802         (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
11803         pass it to DFS_write_tree calls.
11804         (DFS::DFS_write_tree): Remove SINGLE_P argument, after
11805         quick initial checks push it into worklist_vec and return.
11807 2015-03-25  Richard Biener  <rguenther@suse.de>
11809         PR middle-end/65519
11810         * genmatch.c (expr::gen_transform): Re-write to avoid
11811         using gimple_build.
11813 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
11815         * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
11817 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
11819         * config/arm/arm.opt (print_tune_info): New option.
11820         * config/arm/arm.c (arm_print_tune_info): New function.
11821         (arm_file_start): Call arm_print_tune_info.
11822         * config/arm/arm-protos.h (struct tune_params): Add comment.
11823         * doc/invoke.texi (@item -mprint-tune-info): New item.
11824         (-mtune): mention it in ARM Option Summary.
11826 2015-03-25  DJ Delorie  <dj@redhat.com>
11828         * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
11829         correct clause.
11831 2015-03-24  Jan Hubicka  <hubicka@ucw.cz>
11832             Martin Liska  <mliska@suse.cz>
11834         * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
11835         * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
11836         (sem_item::add_type): New function.
11837         (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
11838         (sem_function::compare_polymorphic_p): Do not consider indirect calls.
11839         (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
11840         (sem_function::equals_wpa): Fix typo.
11841         * ipa-icf.h (sem_item::add_type): New function.
11842         (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
11843         order.
11845 2015-03-24  Jakub Jelinek  <jakub@redhat.com>
11847         PR tree-optimization/65533
11848         * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
11849         with swapped operands, call vect_free_slp_tree on
11850         SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
11851         vector.
11853 2015-03-24  Richard Biener  <rguenther@suse.de>
11855         PR middle-end/65517
11856         * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
11857         for fixup if necessary.
11859 2015-03-23  Sandra Loosemore  <sandra@codesourcery.com>
11861         * doc/extend.texi (Function Attributes): Add @cindex entries
11862         for all attributes and regularize their format.  Delete text
11863         about long-obsolete 68HC11 and 68HC12 targets.  Move misplaced
11864         information about "eightbit_data", "tiny_data", and "model"
11865         variable attributes to the Variable Attributes section.  Fix
11866         some obvious typos and copy-editing issues.
11867         (Variable Attributes, Type Attributes): Likewise add/fix
11868         @cindex entries for all attributes.
11870 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
11872         PR target/65523
11873         * tree-chkp.c (chkp_build_returned_bound): Ignore
11874         ERF_RETURNS_ARG calls if they have fewer than needed arguments.
11876 2015-03-23  Oleg Endo  <olegendo@gcc.gnu.org>
11878         PR target/65505
11879         * config/sh/predicates.md (simple_mem_operand,
11880         displacement_mem_operand): Add test for reg.
11881         (short_displacement_mem_operand): Test for displacement_mem_operand
11882         before invoking sh_disp_addr_displacement.
11883         * config/sh/constraints.md (Sdd, Sra): Simplify.
11884         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
11885         Remove redundant displacement_mem_operand tests.
11887 2015-03-23  Georg-Johann Lay  <avr@gjlay.de>
11889         PR target/65296
11890         * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
11891         the same -mmcu=MCU more than once.
11893 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
11895         PR bootstrap/65522
11896         * ipa-devirt.c: Remove duplicate demangle.h include.
11898         PR target/65504
11899         * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
11900         on the pseudo.
11901         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
11902         REG_POINTER on *destptr after adjusting it for prologue size.
11904         PR ipa/65521
11905         * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
11906         ultimate_alias_target ()->order ints instead of
11907         ultimate_alias_target () pointers.
11909 2015-03-23  Richard Biener  <rguenther@suse.de>
11911         PR tree-optimization/65518
11912         * tree-vect-stmts.c (vectorizable_load): Reject single-element
11913         interleaving cases we generate absymal code for.
11915 2015-03-23  Richard Biener  <rguenther@suse.de>
11917         PR tree-optimization/65494
11918         * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
11919         matches here.
11920         (vect_analyze_slp_instance): But do that here, always and once.
11922 2015-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11924         * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
11925         adding T or multiplying by T+1 and subracting T.
11927 2015-03-22  Jeff Law  <law@redhat.com>
11929         PR rtl-optimization/64317
11930         * Makefile.in (OBJS): Add gcse-common.c
11931         * gcse.c: Include gcse-common.h
11932         (struct modify_pair_s): Move structure definition to gcse-common.h
11933         (compute_transp): Move function to gcse-common.c.
11934         (canon_list_insert): Similarly.
11935         (record_last_mem_set_info): Break out some code and put it into
11936         gcse-common.c.  Call into the new common code.
11937         (compute_local_properties): Pass additional arguments to compute_transp.
11938         * postreload-gcse.c: Include gcse-common.h and df.h
11939         (modify_mem_list_set, blocks_with_calls): New variables.
11940         (modify_mem_list, canon_modify_mem_list, transp): Likewise.
11941         (get_bb_avail_insn): Pass in the expression index too.
11942         (alloc_mem): Allocate memory for the new bitmaps and lists.
11943         (free_mem): Free memory for the new bitmaps and lists.
11944         (insert_expr_in_table): Record a bitmap index for each entry we
11945         add to the table.
11946         (record_last_mem_set_info): Call into common code in gcse-common.c.
11947         (get_bb_avail_insn): If no available insn was found in the requested
11948         BB.  If BB has a single predecessor, see if the expression is
11949         transparent in BB and available in that single predecessor.
11950         (compute_expr_transp): New wrapper for compute_transp.
11951         (eliminate_partially_redundant_load): Pass expression's bitmap_index
11952         to get_bb_avail_insn.  Compute next_pred_bb_end a bit later.
11953         (gcse_after_reload_main): If there are elements in the hash table,
11954         then compute transparency for all the elements in the hash table.
11955         * gcse-common.h: New file.
11956         * gcse-common.c: New file.
11958 2015-03-22  Sandra Loosemore  <sandra@codesourcery.com>
11960         * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
11961         as an adjective.
11962         (System Headers): Likewise.
11963         (Ifdef): Likewise.
11964         (Traditional macros): Likewise.
11965         (Invocation): Likewise.
11966         (Option Index): Likewise.
11967         * doc/cppopts.texi (-M): Likewise.
11968         (-finput-charset): Likewise.
11969         (--help): Likewise.
11970         * doc.invoke.texi (AVR Options): Likewise.
11971         (V850 Options): Likewise.
11973 2015-03-22  Jan Hubicka  <hubicka@ucw.cz>
11975         PR ipa/65475
11976         * ipa-devirt.c: Include demangle.h
11977         (odr_type_d): Add field rtti_broken.
11978         (odr_subtypes_equivalent_p): Do not require name to match.
11979         (compare_virtual_tables): Fix typo; if type already has ODR violation,
11980         bypass the tests; be ready for function referneces in vtables that are
11981         not DECL_VIRTUAL; make warnings to be OPT_Wodr.
11982         (warn_odr): Give up for nameless types.
11983         (warn_types_mismatch): Report mismatch in mangled names;
11984         report mismatch in anonymous namespaces; look into component types to
11985         give useful error; report when mismatch is dragged in from other ODR
11986         type.
11987         (odr_types_equivalent_p): Match types for being polymorphic; avoid
11988         duplicated diagnostics.
11989         (add_type_duplicate): Reorder checks so more informative ones come
11990         first; fix typo; do not output "the extra base is defined here" when
11991         we did not warn.
11992         (BINFO_N_BASE_BINFOS): Relax sanity check.
11994 2015-03-22  Martin Liska  <mliska@suse.cz>
11995             Jakub Jelinek  <jakub@redhat.com>
11997         * config/i386/i386.c (def_builtin): Set deferred_isa_values for
11998         masks that can potentially include a builtin.
11999         (ix86_add_new_builtins): Introduce fast filter for isa values
12000         that cannot trigger builtin inclusion.
12002 2015-03-22  Martin Liska  <mliska@suse.cz>
12004         * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
12005         (sem_item::update_hash_by_local_refs): Likewise.
12006         (sem_variable::get_hash): Empty line is fixed.
12007         (sem_item_optimizer::execute): Include adding of hash references.
12008         (sem_item_optimizer::update_hash_by_addr_refs): New function.
12009         (sem_item_optimizer::build_hash_based_classes): Use local hash.
12010         * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
12011         (sem_item::update_hash_by_local_refs): Likewise.
12013 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
12015         PR ipa/65502
12016         * ipa-comdats.c (enqueue_references): Walk through thunks.
12017         (ipa_comdats): Likewise.
12018         (set_comdat_group_1): New function.
12020 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
12022         PR ipa/65475
12023         * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
12024         non-polymorphic
12026 2015-03-22  Dave Korn  <dave.korn.cygwin@gmail.com>
12027             Gerald Pfeifer  <gerald@pfeifer.com>
12029         * doc/contrib.texi (Contributors): Update entry for Danny Smith.
12031 2015-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
12032             Sandra Loosemore  <sandra@codesourcery.com>
12034         * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
12035         function parameter declaration.
12036         * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
12037         Update arguments to nios2_adjust_call_address().
12038         (sibcall_internal): Rename from *sibcall.
12039         (sibcall_value_internal): Rename from *sibcall_value.
12040         * config/nios2/nios2.c (nios2_emit_add_constant): New function.
12041         (nios2_large_got_address): Add target temp reg parameter.
12042         (nios2_got_address): Adjust call to nios2_large_got_address, add
12043         force_reg around it.
12044         (nios2_load_pic_address): Add target temp reg parameter, replace call
12045         to nios2_got_address with corresponding code.
12046         (nios2_legitimize_constant_address): Update call to
12047         nios2_load_pic_address.
12048         (nios2_adjust_call_address): Add temp reg parameter, update PIC case
12049         to use temp reg for PIC loading purposes.
12050         (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
12051         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
12052         (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
12054 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
12056         * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
12057         usage of "the @option{...}".
12058         (-Wopenmp-simd): Likewise.
12059         (-fsanitize-recover): Likewise.
12060         (-fsanitize-undefined-trap-on-error): Likewise.
12061         (-flto): Likewise.
12062         (tracer-dynamic-coverage-feedback): Likewise.
12063         (reorder-block-duplicate-feedback): Likewise.
12064         (loop-unroll-jam-size): Likewise.
12065         (-B): Likewise.
12066         (-I-): Likewise.
12067         (-mabs=legacy): Likewise.
12068         (-mupper-regs-df): Likewise.
12069         (-mupper-regs-sf): Likewise.
12070         (-mpointers-to-nested-functions): Likewise.
12072 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
12074         * doc/extend.texi (Cilk Plus Builtins): Add markup.
12076 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
12078         * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
12079         additional index entries and cross-references.
12080         (-fchkp-check-incomplete-type): Likewise.
12081         (-fchkp-first-field-has-own-bounds): Likewise.
12082         (-fchkp-narrow-to-innermost-array): Likewise.
12083         (-fchkp-use-fast-string-functions): Likewise.
12084         (-fchkp-use-nochk-string-functions): Likewise.
12085         (-fchkp-use-static-const-bounds): Likewise.
12086         (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
12087         (-fchkp-instrument-marked-only): Likewise.
12088         (-fchkp-use-wrappers): Likewise.
12089         (-static-libmpx): Likewise.
12090         (-static-libmpxwrappers): Likewise.
12091         * doc/extend.texi (bnd_legacy): Likewise.
12092         (bnd_instrument): Likewise.
12093         (bnd_variable_size): Likewise.
12094         (Pointer Bounds Checker builtins): Likewise.
12096 2015-03-21  Tom de Vries  <tom@codesourcery.com>
12098         PR tree-optimization/65458
12099         * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
12100         * cgraph.h (cgraph_node): Add parallelized_function field.
12101         * lto-cgraph.c (lto_output_node): Write parallelized_function field.
12102         (input_overwrite_node): Read parallelized_function field.
12103         * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
12104         parallelized_function on cgraph_node for child_fn.
12105         * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
12106         Remove include of gt-tree-parloops.h.
12107         (parallelized_functions): Remove static variable.
12108         (parallelized_function_p): Rewrite using parallelized_function field of
12109         cgraph_node.
12110         (create_loop_fn): Remove adding to parallelized_functions.
12111         * Makefile.in (GTFILES): Remove tree-parloops.c
12113 2015-03-20  Vladimir Makarov  <vmakarov@redhat.com>
12115         PR rtl-optimization/64366
12116         * lra.c (lra_update_insn_regno_info): Consider regs in
12117         CALL_INSN_FUNCTION_USAGE memory.
12119 2015-03-20  Richard Biener  <rguenther@suse.de>
12121         PR middle-end/64715
12122         * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
12123         for type comparison and gcc_checking_assert.
12124         (chrec_fold_plus_poly_poly): Likewise.
12125         (chrec_fold_multiply_poly_poly): Likewise.
12126         (chrec_convert_1): Likewise.
12127         * gimplify.c (gimplify_expr): Remove premature folding of
12128         &X + CST to &MEM[&X, CST].
12130 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
12132         * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
12133         already is final.
12134         (ipa_inline): Recompute inline_failed codes.
12135         * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
12136         USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
12137         CIF_FINAL_ERROR.
12139 2015-03-20  Uros Bizjak  <ubizjak@gmail.com>
12141         PR rtl-optimization/60851
12142         * recog.c (constrain_operands): Accept a pseudo register before reload
12143         for LRA enabled targets.
12145 2015-03-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
12147         PR target/65240
12148         * config/rs6000/predicates.md (easy_fp_constant): Remove special
12149         -ffast-math handling that kept non-0 constants live in the RTL
12150         until reload.  Remove logic testing the number of instructions it
12151         took to create a constant in a GPR that was never used, due to a
12152         test for soft-float earlier.
12153         (memory_fp_constant): Delete, no longer used.
12155         * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
12156         alternatives for loading non-0 constants into GPRs for hard
12157         floating point that is no longer needed due to changes in
12158         easy_fp_constant.  Add support for loading 0.0 into GPRs.
12159         (mov<mode>_hardfloat32): Likewise.
12160         (mov<mode>_hardfloat64): Likewise.
12161         (mov<mode>_64bit_dm): Likewise.
12162         (movtd_64bit_nodm): Likewise.
12163         (pre-reload move FP constant define_split): Delete define_split,
12164         since it is no longer used.
12165         (extenddftf2_internal): Remove GHF constraints that are not valid
12166         for extenddftf2.
12168 2015-03-19  Vladimir Makarov  <vmakarov@redhat.com>
12170         PR rtl-optimization/63491
12171         * lra-constraints.c (check_and_process_move): Use src instead of
12172         sreg.  Remove some dead code.
12174 2015-03-19  Jan Hubicka  <hubicka@ucw.cz>
12176         PR ipa/65380
12177         * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
12178         (sem_variable::merge): Likewise.
12180 2015-03-19  Martin Liska  <mliska@suse.cz>
12182         PR ipa/65465
12183         * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
12184         all fields of cgraph_thunk_info.
12186 2015-03-19  Ilya Enkovich  <ilya.enkovich@intel.com>
12188         * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
12189         clone instrumented thunks.
12191 2015-03-19  Richard Biener  <rguenther@suse.de>
12193         Revert
12194         2015-03-10  Richard Biener  <rguenther@suse.de>
12196         PR middle-end/63155
12197         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
12198         * tree-ssa-coalesce.c: Include timevar.h.
12199         (attempt_coalesce): Handle graph being NULL.
12200         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
12201         Split out abnormal coalescing to ...
12202         (perform_abnormal_coalescing): ... this function.
12203         (coalesce_ssa_name): Perform abnormal coalescing without computing
12204         live/conflict.
12205         (verify_ssa_coalescing_worker): New function.
12206         (verify_ssa_coalescing): Likewise.
12208 2015-03-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
12209             Jakub Jelinek  <jakub@redhat.com>
12211         PR sanitizer/65400
12212         * tsan.c (instrument_gimple): Clear tail call flag on
12213         calls.
12215 2015-03-19  Jakub Jelinek  <jakub@redhat.com>
12217         PR sanitizer/65400
12218         * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
12219         call in the return bb.
12220         (find_split_points): Add RETURN_BB argument, don't call
12221         find_return_bb.
12222         (split_function): Likewise.  Add ADD_TSAN_FUNC_EXIT argument,
12223         if true append TSAN_FUNC_EXIT internal call after the call to
12224         the split off function.
12225         (execute_split_functions): Call find_return_bb here.
12226         Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
12227         Adjust find_split_points and split_function calls.
12229 2015-03-18  DJ Delorie  <dj@redhat.com>
12231         * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
12232         (iorqi3_virt): Likewise.
12234 2015-03-18  Tom de Vries  <tom@codesourcery.com>
12236         * tree-parloops.c (parallelize_loops): Make static.
12237         * tree-parloops.h (parallelize_loops): Remove extern declaration.
12239 2015-03-18  Andrew Stubbs  <ams@codesourcery.com>
12241         PR middle-end/64491
12242         Revert:
12243         2014-11-20  Andrew Stubbs  <ams@codesourcery.com>
12245         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
12246         condition would be removed due to undefined behaviour.
12248 2015-03-18  Martin Liska  <mliska@suse.cz>
12250         PR ipa/65432
12251         * cgraph.c (cgraph_node::get_create): Remove unnecessary
12252         xstrdup_for_dump wrapper.
12253         * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
12254         sem_item::name.
12255         (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
12256         with xstrdup_for_dump.
12257         (sem_variable::equals): Likewise.
12258         (sem_item_optimizer::read_section): Use symtab_node::name instead of
12259         sem_item::name.
12260         (sem_item_optimizer::parse_funcs_and_vars): Likewise.
12261         (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
12262         symtab_node::asm_name with xstrdup_for_dump.
12263         (congruence_class::dump): Use symtab_node::name instead of
12264         sem_item::name.
12265         * ipa-icf.h (symtab_node::name): Remove.
12266         (symtab_node::asm_name): Likewise.
12268 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
12270         PR tree-optimization/65450
12271         * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
12272         function.
12273         (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
12274         it instead of duplicate_ssa_name_ptr_info.
12276         PR target/65222
12277         * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
12279 2015-03-18  Richard Biener  <rguenther@suse.de>
12281         * tree-data-ref.h (struct access_matrix): Remove.
12282         (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
12283         AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
12284         AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
12285         (am_vector_index_for_loop): Likewise.
12286         (struct data_reference): Remove access_matrix member.
12287         (DR_ACCESS_MATRIX): Remove.
12288         (lambda_vector_new): Add comment.
12289         (lambda_matrix_new): Use XOBNEWVEC.
12291 2015-03-18  Richard Biener  <rguenther@suse.de>
12293         * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
12294         (pass_ch::execute): Cleanup the CFG only if we did sth.
12295         * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
12297 2015-03-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12299         * expmed.c (synth_mult): Use std::swap instead of manually
12300         swapping algorithms.
12302 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
12304         PR target/65078
12305         * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
12307 2015-03-16  Georg-Johann Lay  <avr@gjlay.de>
12309         PR target/65296
12310         * config/avr/avr.opt (-nodevicelib): New option.
12311         * doc/invoke.texi (AVR Options): Document it.
12312         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
12313         libgcc.a, libc.a, libm.a.
12314         * config/avr/specs.h: Same.
12315         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
12316         which don't (directly) depend on the device.  Print more help.
12317         (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
12318         (*cpp): Don't define __AVR_DEV_LIB_NAME__.
12319         * config/avr/driver-avr.c: Remove -nodevicelib from option list in
12320         case of an error.
12321         (avr_devicespecs_file): Use suffix "%s" instead of absolute path
12322         for specs file name.
12323         * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
12324         * config/avr/avr-mcus.def: Adjust initializers and comments.
12326 2015-03-16  Jan Hubicka  <hubicka@ucw.cz>
12328         * tree-sra.c (ipa_sra_preliminary_function_checks): Use
12329         DECL_ONE_ONLY to check if decl is one only.
12330         * ipa-split.c (consider_split): Limit splitt of one only functions.
12332 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
12334         PR tree-optimization/65427
12335         * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
12336         functions.
12337         (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
12339 2015-03-16  Marek Polacek  <polacek@redhat.com>
12341         * cgraph.h (add_new_static_var): Remove declaration.
12342         * varpool.c (add_new_static_var): Remove function.
12344 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
12346         * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
12347         instead of vec<tree> * with vec_alloc and release for args.
12348         Adjust all users.
12350         PR middle-end/65431
12351         * omp-low.c (delete_omp_context): Only splay_tree_delete
12352         reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
12353         is_gimple_omp_oacc contexts.  Don't look at ctx->outer.
12355 2015-03-16  Max Ostapenko  <m.ostapenko@partner.samsung.com>
12357         PR sanitizer/64820
12358         * cfgexpand.c (align_base): New function.
12359         (alloc_stack_frame_space): Call it.
12360         (expand_stack_vars): Align prev_frame to be sure
12361         data->asan_vec elements aligned properly.
12363 2015-03-16  Eric Botcazou  <ebotcazou@adacore.com>
12365         PR middle-end/65409
12366         * expr.c (store_field): Do not do a direct block copy if the source is
12367         a PARALLEL with BLKmode.
12369 2015-03-16  Tom de Vries  <tom@codesourcery.com>
12371         PR middle-end/65414
12372         Revert:
12373         2015-03-12  Tom de Vries  <tom@codesourcery.com>
12375         PR rtl-optimization/64895
12376         * lra-lives.c (check_pseudos_live_through_calls): Use
12377         actual_call_used_reg_set instead of call_used_reg_set, if available.
12379 2015-03-16  Alan Modra  <amodra@gmail.com>
12381         PR target/63150
12382         * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
12383         Modify Z->r bswapdi splitter to use dest in place of scratch.
12384         In r->Z and Z->r bswapdi splitter rename word_high, word_low
12385         to word1, word2 and rearrange logic to suit.
12386         (bswapdi2_64bit): Remove early clobber on Z->r alternative.
12387         (bswapdi2_ldbrx): Likewise.  Remove '??' on r->r.
12388         (bswapdi2_32bit): Remove early clobber on Z->r alternative.
12389         Add one '?' on r->r.  Modify Z->r splitter to avoid need for
12390         early clobber.
12392 2015-03-14  Jakub Jelinek  <jakub@redhat.com>
12394         PR tree-optimization/65369
12395         * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
12396         Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
12397         (vs - 1) * TYPE_SIZE_UNIT (elem_type).
12399         PR tree-optimization/65418
12400         * tree-ssa-reassoc.c (extract_bit_test_mask): If there
12401         are casts in the first PLUS_EXPR operand, ensure tbias and
12402         *totallowp are in the inner type.
12404         PR rtl-optimization/65401
12405         * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
12406         argument.  If true, adjust_address_nv of x with big-endian
12407         correction for the mode widening to GET_MODE (y).
12408         (make_field_assignment): Don't do MEM mode widening here.
12409         Use MEM_P instead of GET_CODE == MEM.
12411 2015-03-13  Ilya Verbin  <ilya.verbin@intel.com>
12413         * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
12414         the external decls.
12416 2015-03-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12418         PR target/64600
12419         * config/arm/arm.c (arm_gen_constant, AND case): Use
12420         ARM_SIGN_EXTEND when constructing AND mask.
12422 2015-03-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
12424         * graph.c (print_graph_cfg): Make function names visible and append
12425         parenthesis to it.  Also make groups of basic blocks belonging to the
12426         same function visible.
12428 2015-03-12  Richard Biener  <rguenther@suse.de>
12430         PR middle-end/44563
12431         * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
12432         to avoid quadratic behavior with inline expansion splitting blocks.
12433         * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
12434         with the successor if the predecessor will be merged with it.
12435         * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
12436         entry block with its successor.
12438 2015-03-13  Richard Biener  <rguenther@suse.de>
12440         PR middle-end/44563
12441         * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
12442         (cleanup_tree_cfg_1): Do not call it.
12443         (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
12444         (fixup_noreturn_call): Mark the stmt as control altering.
12445         * tree-cfg.c (execute_fixup_cfg): Do not dump the function
12446         here.
12447         (pass_data_fixup_cfg): Produce a dump file.
12448         * tree-ssa-dom.c: Include tree-cfgcleanup.h.
12449         (need_noreturn_fixup): New global.
12450         (pass_dominator::execute): Fixup queued noreturn calls.
12451         (optimize_stmt): Queue calls that became noreturn for fixup.
12452         * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
12453         * tree-ssa-pre.c: Include tree-cfgcleanup.h.
12454         (el_to_fixup): New global.
12455         (eliminate_dom_walker::before_dom_childre): Queue calls that
12456         became noreturn for fixup.
12457         (eliminate): Fixup queued noreturn calls.
12458         * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
12459         (substitute_and_fold_dom_walker): New member stmts_to_fixup.
12460         (substitute_and_fold_dom_walker::before_dom_children): Queue
12461         alls that became noreturn for fixup.
12462         (substitute_and_fold): Fixup queued noreturn calls.
12464 2015-03-12  Jan Hubicka  <hubicka@ucw.cz>
12466         * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
12467         and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
12468         are building; for methods check ODR type of class they belong to if
12469         they may lead to a polymorphic call.
12470         (sem_function::compare_polymorphic_p): Be bit smarter about testing
12471         when function may lead to a polymorphic call.
12472         (sem_function::compare_type_list): Remove.
12473         (sem_variable::equals): Update use of compatible_types_p.
12474         (sem_variable::parse_tree_refs): Remove.
12475         (sem_item_optimizer::filter_removed_items): Do not filter out CXX
12476         cdtor.
12477         * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
12478         matching here.
12479         (func_checker::compatible_polymorphic_types_p): Break out from ...
12480         (unc_checker::compatible_types_p): ... here.
12481         * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
12482         Declare.
12483         (unc_checker::compatible_types_p): Update.
12484         * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
12485         Remove.
12487 2015-03-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12489         PR rtl-optimization/65235
12490         * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
12491         When first element of vec_concat is const_int, calculate its size
12492         using second element.
12494 2015-03-12  Richard Biener  <rguenther@suse.de>
12496         PR middle-end/65270
12497         * fold-const.c (operand_equal_p): Fix ordering of resetting
12498         OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
12500 2015-03-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
12502         * config/s390/s390.c (s390_reorg): Move code to output nops after label
12503         to s390_reorg ().
12504         (s390_asm_output_function_label): Likewise.
12505         * config/s390/s390.c (s390_asm_output_function_label):
12506         Fix function label alignment with -mhtopatch.
12507         * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
12508         UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
12509         ("nop_2_byte"): New define_insn.
12510         ("nop_4_byte"): Likewise.
12511         ("nop_6_byte"): Likewise.
12512         * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
12513         * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
12515 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
12517         PR target/65103
12518         * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
12519         register.
12521 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
12523         PR target/65044
12524         * toplev.c (process_options): Restrict Pointer Bounds Checker
12525         usage with Address Sanitizer.
12527 2015-03-12  Richard Biener  <rguenther@suse.de>
12529         * tree-cfg.c (gimple_split_block): Remove loop finding stmt
12530         to split on.
12531         * omp-low.c (expand_omp_taskreg): Split block before removing
12532         the stmt.
12533         (expand_omp_target): Likewise.
12534         * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
12535         * tree-parloops.c (create_call_for_reduction_1): Pass a proper
12536         stmt to split_block.
12538 2015-03-12  Tom de Vries  <tom@codesourcery.com>
12540         PR rtl-optimization/64895
12541         * lra-lives.c (check_pseudos_live_through_calls): Use
12542         actual_call_used_reg_set instead of call_used_reg_set, if available.
12544 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
12546         * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
12547         (cgraph_node::remove): Likewise.
12548         (cgraph_node::get_untransformed_body): Likewise.
12549         * varpool.c (varpool_node::remove): Likewise.
12550         (varpool_node::get_constructor): Add sanity check.
12552 2015-03-11  Sandra Loosemore  <sandra@codesourcery.com>
12554         * doc/invoke.texi (-fgnu89-inline): Remove discussion about
12555         old GCC versions.
12556         (-fabi-compat-version): Likewise.
12557         (-ffriend-injection): Likewise.
12558         (-Wdeclaration-after-statement): Likewise.
12559         (-fomit-frame-pointer): Likewise.
12560         (-ftree-coalesce-inlined-vars): Likewise.
12561         (-fvisibility=): Likewise.
12562         * doc/extend.texi (Typeof): Likewise.
12563         (Zero Length): Likewise.
12564         (Escaped Newlines): Likewise.
12565         (Compound Literals): Likewise.
12566         (Function Attributes): Likewise.
12567         (Label Attributes): Likewise.
12568         (Type Attributes): Likewise.
12569         (Function Names): Likewise.
12570         (Other Builtins): Likewise.
12571         (Function Specific Option Pragmas): Likewise.
12572         (C++ Interface): Likewise.
12574 2015-03-11  Thomas Schwinge  <thomas@codesourcery.com>
12576         * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
12578 2015-03-11  Marek Polacek  <polacek@redhat.com>
12580         PR tree-optimization/65388
12581         * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
12583 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
12585         PR target/65296
12586         * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
12587         * configure: Regenerate.
12588         * config.in: Regenerate.
12589         * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
12590         [-mn-flash]: Document it.
12591         [__AVR_ARCH__]: Document avrtiny.
12593         * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
12594         (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
12595         (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
12597 2015-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12599         * doc/invoke.texi: Add missing cpu values (z196, zEC12).
12601 2015-03-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
12603         PR target/65242
12604         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
12605         allow reloads of PLUS in floating point/VSX registers.
12607 2015-03-11  Junmo Park  <junmoz.park@samsung.com>
12609         * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
12610         crypto_sha256_fast.
12611         (cortex_a57_crypto_complex): Add crypto_sha256_slow.
12613 2015-03-11  Richard Biener  <rguenther@suse.de>
12615         PR tree-optimization/65310
12616         * tree-sra.c (build_ref_for_offset): Also preserve larger
12617         alignment.
12619 2015-03-11  Marat Zakirov  <m.zakirov@samsung.com>
12621         * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
12623 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
12625         PR target/65368
12626         * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
12627         new define_expand.
12628         (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
12630 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
12632         * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
12633         (sem_function::equals_wpa): ... here.
12635 2015-03-10  Marek Polacek  <polacek@redhat.com>
12636             Jakub Jelinek  <jakub@redhat.com>
12638         PR sanitizer/65367
12639         * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
12640         when only removing the statement.  Handle expanding UBSAN_OBJECT_SIZE
12641         separately.
12643 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
12645         PR target/65286
12646         * config/rs6000/t-linux: For powerpc64* target set
12647         MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
12649 2015-03-10  Richard Biener  <rguenther@suse.de>
12651         PR middle-end/44563
12652         * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
12653         for redirect_all_calls.
12655 2015-03-10  Marek Polacek  <polacek@redhat.com>
12657         * gdbinit.in (pcfun): Define and document.
12659 2015-03-10  Ilya Verbin  <ilya.verbin@intel.com>
12661         * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
12662         of libgomp-plugin.h.
12663         (find_target_compiler): Support a case when the path to gcc is
12664         specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
12665         (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
12666         intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
12667         libgomp-plugin.h.
12668         (main): Use GCC_INSTALL_NAME as target_driver_name.
12669         * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
12670         define.
12671         (mkoffload.o): Remove obsolete include path and defines.
12672         (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
12674 2015-03-10  Richard Biener  <rguenther@suse.de>
12676         PR middle-end/63155
12677         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
12678         * tree-ssa-coalesce.c: Include timevar.h.
12679         (attempt_coalesce): Handle graph being NULL.
12680         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
12681         Split out abnormal coalescing to ...
12682         (perform_abnormal_coalescing): ... this function.
12683         (coalesce_ssa_name): Perform abnormal coalescing without computing
12684         live/conflict.
12685         (verify_ssa_coalescing_worker): New function.
12686         (verify_ssa_coalescing): Likewise.
12688 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
12690         PR target/65296
12691         * config.gcc (extra_options) [avr]: Remove.
12692         (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
12693         (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
12694         (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
12696         * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
12697         (-mmcu=): Add Var and MissingArgError properties.
12698         (-march=): Remove.
12699         * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
12700         * config/avr/t-multilib: Regenerate.
12701         * config/avr/specs.h: New file.
12702         * config/avr/driver-avr.c: New file.
12703         * config/avr/genopt.sh: Remove file.
12704         * config/avr/avr-tables.opt: Remove file.
12705         * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
12706         * config/avr/avr-c.c: Same.
12707         * avr-arch.h: Same.
12708         (avr_current_device): Remove proto.
12709         * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
12710         (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
12711         (EXTRA_SPEC_FUNCTIONS): Define.
12712         (avr_devicespecs_file): New specs function proto.
12713         (DRIVER_SELF_SPECS): Use device-specs-file spec function.
12714         * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
12715         (avr_current_device): Remove definition and usage.
12716         (avr_set_core_architecture): New static function.
12717         (avr_option_override): Use it.
12718         * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
12719         (mcu_name): New static array.
12720         (comparator, avr_archs_str, avr_mcus_str): New static functions.
12721         (avr_inform_devices, avr_inform_core_architectures): New functions.
12722         * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
12723         (avrlibc.h) [WITH_AVRLIBC]: Include.
12724         (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
12725         (print_mcu): Rewrite from scratch.
12726         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
12727         Forward to avr-specific specs defined in device-specs file.
12728         * config/avr/t-avr (driver-avr.o): New rule.
12729         (avr-devices.o): Depend on avr-arch.h.
12730         (avr-mcus): No more depend on avr-tables.opt.
12731         (avr-tables.opt): Remove rule.
12732         (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
12734 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
12736         * c-family/c.opt (fchkp-use-wrappers): New.
12737         * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
12738         (chkp_wrap_function): New.
12739         (chkp_build_instrumented_fndecl): Support wrapped
12740         functions.
12741         * doc/invoke.texi (-fcheck-pointer-bounds): New.
12742         (-fchkp-check-incomplete-type): New.
12743         (-fchkp-first-field-has-own-bounds): New.
12744         (-fchkp-narrow-bounds): New.
12745         (-fchkp-narrow-to-innermost-array): New.
12746         (-fchkp-optimize): New.
12747         (-fchkp-use-fast-string-functions): New.
12748         (-fchkp-use-nochk-string-functions): New.
12749         (-fchkp-use-static-bounds): New.
12750         (-fchkp-use-static-const-bounds): New.
12751         (-fchkp-treat-zero-dynamic-size-as-infinite): New.
12752         (-fchkp-check-read): New.
12753         (-fchkp-check-write): New.
12754         (-fchkp-store-bounds): New.
12755         (-fchkp-instrument-calls): New.
12756         (-fchkp-instrument-marked-only): New.
12757         (-fchkp-use-wrappers): New.
12758         (-static-libmpx): New.
12759         (-static-libmpxwrappers): New.
12761 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
12763         * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
12764         (CHKP_SPEC): Add wrappers library.
12765         * c-family/c.opt (static-libmpxwrappers): New.
12767 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
12769         * config/i386/linux-common.h (LIBMPX_LIBS): New.
12770         (LIBMPX_SPEC): New.
12771         (CHKP_SPEC): New.
12772         * gcc.c (CHKP_SPEC): New.
12773         (LINK_COMMAND_SPEC): Add CHKP_SPEC.
12774         * c-family/c.opt (static-libmpx): New.
12776 2015-03-10  Richard Biener  <rguenther@suse.de>
12778         PR middle-end/44563
12779         * cgraph.h (struct cgraph_edge_hasher): Add hash overload
12780         for compare_type.
12781         * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
12782         (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
12783         (cgraph_add_edge_to_call_site_hash): Likewise.
12784         (cgraph_node::get_edge): Likewise.
12785         (cgraph_edge::set_call_stmt): Likewise.
12786         (cgraph_edge::remove_caller): Likewise.
12788 2015-03-10  Chung-Ju Wu  <jasonwucj@gmail.com>
12790         * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
12791         (callee_saved_gpr_regs_size): ... this.
12792         (callee_saved_regs_first_regno): Rename to ...
12793         (callee_saved_first_gpr_regno): ... this.
12794         (callee_saved_regs_last_regno) Rename to ...
12795         (callee_saved_last_gpr_regno): ... this.
12796         * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
12797         variables.
12798         (nds32_initial_elimination_offset): Likewise.
12799         (nds32_expand_prologue): Likewise.
12800         (nds32_expand_epilogue): Likewise.
12801         (nds32_expand_prologue_v3push): Likewise.
12802         (nds32_expand_epilogue_v3pop): Likewise.
12803         * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
12804         Adjust renamed variables.
12805         (nds32_output_stack_pop): Likewise.
12807 2015-03-10  Thomas Preud'homme  <thomas.preudhomme@arm.com>
12809         * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
12810         code in comment.
12812 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
12814         PR rtl-optimization/65321
12815         * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
12816         than shift mode.
12817         * var-tracking.c (use_narrower_mode): Likewise.
12819 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
12821         PR tree-optimization/65355
12822         * varasm.c (notice_global_symbol): Do not produce RTL.
12823         * symtab.c (symtab_node::can_increase_alignment_p): Check for section
12824         anchor.
12825         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
12826         check for section anchors.
12828 2015-03-10  Alan Modra  <amodra@gmail.com>
12830         PR target/65286
12831         * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
12832         to be single-arch by default.  Set cpu_is_64bit for powerpc64
12833         given --with-cpu=native.
12834         * config/rs6000/t-fprules: Do not set default MULTILIB vars.
12835         * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
12836         and powerpc64le.
12837         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
12838         rs6000_isa_flags rather than TARGET_64BIT.
12840 2015-03-09  Yoshinori Sato  <ysato@users.sourceforge.jp>
12841             Kaz Kojima  <kkojima@gcc.gnu.org>
12843         * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
12845 2015-03-09  Jakub Jelinek  <jakub@redhat.com>
12847         PR lto/65361
12848         * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
12849         on a TREE_BINFO, instead use BINFO_TYPE.
12851 2015-03-09  Richard Biener  <rguenther@suse.de>
12853         PR middle-end/65270
12854         * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
12855         * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
12856         operand set OEP_ADDRESS_OF.  Clear it when recursing to non-bases
12857         of that.  When comparing dereferences compare alignment.
12858         When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
12860 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
12862         * ipa-inline-analysis.c (check_callers): Check
12863         node->can_remove_if_no_direct_calls_and_refs_p.
12864         (growth_likely_positive): Reorganize to call
12865         can_remove_if_no_direct_calls_p later.
12866         * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
12867         will_be_removed_from_program_if_no_direct_calls_p): Add
12868         will_inline parameter.
12869         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
12870         cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
12871         Handle inliner case correctly.
12873 2015-03-09  Thomas Preud'homme  <thomas.preudhomme@arm.com>
12875         PR tree-optimization/63743
12876         * cfgexpand.c (reorder_operands): Also reorder if only second operand
12877         had its definition forwarded by TER.
12879 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
12881         PR lto/65316
12882         * ipa-utils.h (types_odr_comparable): Add strict argument.
12883         * ipa-devirt.c: Fix whitespace;
12884         (odr_hasher): Remove.
12885         (odr_name_hasher, odr_vtable_hasher): New hashers.
12886         (can_be_name_hashed_p): New predicate.
12887         (hash_type_name): remove.
12888         (hash_odr_name): New.
12889         (odr_name_hasher::hash): new.
12890         (can_be_vtable_hashed_p): New.
12891         (hash_odr_vtable): New.
12892         (odr_vtable_hasher::hash): New.
12893         (types_same_for_odr): Add strict parameter.
12894         (types_odr_comparable): Likewise.
12895         (odr_name_hasher::equal): New.
12896         (odr_vtable_hasher::equal): New.
12897         (odr_name_hasher::remove): New.
12898         (odr_hash_type): Change to hash_table<odr_name_hasher>.
12899         (odr_vtable_hash_type): New.
12900         (odr_vtable_hash): New.
12901         (odr_subtypes_equivalent_p): Do strict comparsion.
12902         (add_type_duplicate): Merge type names; cleanup; avoid type
12903         duplicates.
12904         (register_odr_type): Initialize vtable hash.
12905         (build_type_inheritance_graph): Likewise
12906         (get_odr_type): Reorg to use two hashes.
12907         (dump_possible_polymorphic_call_targets): Move sanity check after debug
12908         output.
12909         (ipa_devirt): Dump type_inheritance_graph.
12910         (types_same_for_odr): Add strict mode.
12912 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
12914         PR ipa/65334
12915         * cgraph.h (symtab_node): Add definition_alignment,
12916         can_increase_alignment_p and increase_alignment.
12917         * symtab.c (symtab_node::can_increase_alignment_p,
12918         increase_alignment_1, symtab_node::increase_alignment,
12919         symtab_node::definition_alignment): New.
12920         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
12921         can_increase_alignment_p.
12922         * tree-vectorizer.c (increase_alignment): Use increase_alignment.
12923         * tree-vect-stmts.c (ensure_base_align): Likewise.
12924         * varasm.c (function_section_1): Use definition_alignment.
12925         (assemble_start_function): Likewise.
12926         (emit_local): likewise.
12927         (build_constant_desc): Likewsie.
12928         (output_constant_def_contents): Likewise.
12929         (place_block_symbol): Likewise.
12930         (output_object_block): Likewise.
12932 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
12934         PR ipa/65316
12935         * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
12936         when outputting debug.
12938 2015-03-07  Marek Polacek  <polacek@redhat.com>
12939             Martin Uecker  <uecker@eecs.berkeley.edu>
12941         PR sanitizer/65280
12942         * doc/invoke.texi: Update description of -fsanitize=bounds.
12944 2015-03-06  Wilco Dijkstra  <wilco.dijkstra@arm.com>
12946         * tree-ssa-phiopt.c (neg_replacement): Remove.
12947         (tree_ssa_phiopt_worker): Remove negate optimization.
12949 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
12951         PR ipa/65302
12952         * value-prof.c (gimple_ic): Pure dead eh edges when needed.
12954 2015-03-06  Richard Biener  <rguenther@suse.de>
12956         PR middle-end/64928
12957         * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
12958         and liveout_obstack members.
12959         (calculate_live_on_exit): Remove.
12960         (calculate_live_ranges): Change declaration.
12961         * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
12962         (new_tree_live_info): Adjust.
12963         (calculate_live_ranges): Delete livein when not wanted.
12964         (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
12965         Deal with partly deleted live info.
12966         (loe_visit_block): Remove temporary bitmap by using
12967         bitmap_ior_and_compl_into.
12968         (live_worklist): Adjust accordingly.
12969         (calculate_live_on_exit): Make static.
12970         * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
12971         we do not need livein.
12973 2015-03-06  Jonathan Wakely  <jwakely@redhat.com>
12975         * real.c (real_from_string): Fix typo in assertion.
12977 2015-03-06  Alex Velenko  <alex.velenko@arm.com>
12979         * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
12980         the patch.
12982 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
12984         * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
12986 2015-03-05  Vladimir Makarov  <vmakarov@redhat.com>
12988         PR target/64342
12989         * lra-assigns.c (find_hard_regno_for): Rename to
12990         find_hard_regno_for_1.  Add a new parameter.
12991         (find_hard_regno_for): New function using find_hard_regno_for_1.
12993 2015-03-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
12995         PR rtl-optimization/65067
12996         * expmed.c (store_bit_field, extract_bit_field): Reworked the
12997         strict volatile bitfield handling.
12999 2015-03-05  Martin Liska  <mliska@suse.cz>
13001         PR ipa/65318
13002         * ipa-icf.c (sem_variable::equals): Compare variables types.
13004 2015-03-05  Richard Henderson  <rth@redhat.com>
13006         PR target/65121
13007         * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
13008         correctly check weak symbol binding.
13010 2015-03-05  Steve Ellcey  <sellcey@imgtec.com>
13012         PR middle-end/65315
13013         * cfgexpand.c (expand_stack_vars): Update large_align to maximum
13014         needed alignment.
13016 2015-03-05  Martin Liska  <mliska@suse.cz>
13018         * ipa-inline.c (inline_small_functions): Set default value to
13019         prevent warning during bootstrap.
13020         * tree.h: Add pragma guard that ignores false positives during
13021         bootstrap.
13023 2015-03-05  Richard Biener  <rguenther@suse.de>
13025         PR tree-optimization/65310
13026         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
13027         Properly preserve alignment of the base of the access.
13029 2015-03-05  Richard Biener  <rguenther@suse.de>
13031         PR ipa/65270
13032         * ipa-icf-gimple.c (func_checker::compare_memory_operand):
13033         Compare dependence info.
13035 2015-03-05  Richard Biener  <rguenther@suse.de>
13037         PR middle-end/65233
13038         * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
13039         tree-into-ssa.h.
13040         (walk_ssa_copies): Revert last chage.  Instead do not walk
13041         SSA names registered for SSA update.
13043 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
13045         PR ipa/65270
13046         * ipa-icf.c (sem_item::compare_cgraph_references): Compare
13047         vtable references for their containing type.
13048         (sem_function::equals_wpa): Compare TYPE_RESTRICT
13049         and type attributes.
13051 2015-03-04  Eric Botcazou  <ebotcazou@adacore.com>
13053         * fold-const.c (round_up_loc): Cast divisor to signed on all paths
13054         before negating it.
13055         * stor-layout.c (finalize_record_size): Revert latest change.
13057 2015-03-04  Andreas Tobler  <andreast@gcc.gnu.org>
13059         * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
13061 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
13063         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
13064         for correct comdat handling.
13065         (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
13066         Likewise.
13067         * cgraph.h (call_for_symbol_and_aliases): Fix formating.
13068         (used_from_object_file_p_worker): Remove.
13069         (cgraph_node::only_called_directly_or_alised): Add
13070         used_from_object_file_p.
13071         * ipa-inline-analysis.c (growth_likely_positive): Optimie.
13072         * ipa-inline-transform.c (can_remove_node_now_p_1): Use
13073         can_remove_if_no_direct_calls_and_refs_p.
13075 2015-03-04  Nick Clifton  <nickc@redhat.com>
13077         * config/rl78/rl78.h (enum reg_class): Remove real registers from
13078         General register class.
13079         * config/rl78/rl78-real.md: Replace general register constraints
13080         with real+virtual register constraints.
13082 2015-03-04  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13084         * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
13085         from checking for -mhtm option.
13087 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
13089         * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
13090         (struct ipa_sra_check_caller_data): Add has_thunk field.
13091         (ipa_sra_check_caller): Check for thunk.
13092         (ipa_sra_preliminary_function_checks): Give up on function with
13093         thunks.
13094         (ipa_early_sra): Use call_for_symbol_and_aliases.
13096 2015-03-03  Kaz Kojima  <kkojima@gcc.gnu.org>
13098         PR target/65249
13099         * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
13100         called for __stack_chk_guard symbol.
13102 2015-03-03  DJ Delorie  <dj@redhat.com>
13104         * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
13105         inc/dec.
13106         (*addhi3_real): Likewise.
13107         * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
13108         pattern to match incrementing memory.
13109         * config/rl78/predicates.md (rl78_1_2_operand): New.
13110         * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
13111         it's the same and only mem.
13112         (rl78_alloc_physical_registers_op2): If there's effectively only
13113         one MEM, transcode it into HL.
13114         (rl78_far_p): Reject addresses that aren't legitimate.
13116 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
13118         * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
13119         negating it.
13121         * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
13123 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
13125         Implement call0 ABI for xtensa
13126         * config/xtensa/constraints.md ("a" constraint): Include stack
13127         pointer in case of call0 ABI.
13128         ("q" constraint): Make empty in case of call0 ABI.
13129         ("D" constraint): Include stack pointer in case of call0 ABI.
13130         * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
13131         xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
13132         prototypes.
13133         * config/xtensa/xtensa.c (xtensa_callee_save_size): New
13134         variable.
13135         (xtensa_regno_to_class): Make it a local variable in the
13136         function xtensa_regno_to_class.
13137         (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
13138         macro, function prototype and implementation.
13139         (reg_nonleaf_alloc_order): Make it a local variable in the
13140         function order_regs_for_local_alloc.
13141         (xtensa_conditional_register_usage): New function.
13142         (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
13143         (xtensa_valid_move): Allow direct moves to stack pointer
13144         register in call0 ABI.
13145         (xtensa_setup_frame_addresses): Only spill register windows in
13146         windowed ABI.
13147         (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
13148         call0 ABI respectively.
13149         (xtensa_function_arg_1): Only mark a7 register for copying in
13150         windowed ABI.
13151         (xtensa_call_save_reg): New function.
13152         (compute_frame_size): Add space for callee saved register
13153         storage to the frame size in call0 ABI.
13154         (xtensa_expand_prologue): Generate code to set up stack frame
13155         and save callee-saved registers in call0 ABI.
13156         (xtensa_expand_epilogue): New function.
13157         (xtensa_set_return_address): New function.
13158         (xtensa_return_addr): Calculate return address in call0 ABI.
13159         (xtensa_builtin_saveregs): Only mark a7 register for copying and
13160         emit copying code in windowed ABI.
13161         (order_regs_for_local_alloc): Add preferred register allocation
13162         order for non-leaf function in call0 ABI.
13163         (xtensa_static_chain): Add atatic chain passing for call0 ABI.
13164         (xtensa_asm_trampoline_template): Add trampoline generation for
13165         call0 ABI.
13166         (xtensa_trampoline_init): Add trampoline initialization for
13167         call0 ABI.
13168         (xtensa_conditional_register_usage, xtensa_regno_to_class): New
13169         functions.
13170         * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
13171         (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
13172         (CALL_USED_REGISTERS): Modify to encode both windowed and call0
13173         ABI call-used registers.
13174         (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
13175         (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
13176         call0 ABI.
13177         (REG_CLASS_CONTENTS): Include all registers into the preferred
13178         reload registers set, adjust the set in the
13179         xtensa_conditional_register_usage.
13180         (xtensa_regno_to_class): Drop variable declaration.
13181         (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
13182         function.
13183         (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
13184         respectively.
13185         (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
13186         (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
13187         (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
13188         (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
13189         location in call0 ABI.
13190         (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
13191         stack adjustment size when handling exception.
13192         (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
13193         * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
13194         definitions.
13195         ("return" pattern): Generate ret.n/ret in call0 ABI.
13196         ("epilogue" pattern): Expand epilogue.
13197         ("nonlocal_goto" pattern): Use default in call0 ABI.
13198         ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
13199         emit eh_set_a0_* depending on ABI.
13200         ("eh_set_a0_windowed" pattern): Former eh_return pattern.
13201         ("eh_set_a0_call0", "blockage"): New patterns.
13203 2015-03-03  Martin Liska  <mliska@suse.cz>
13205         PR ipa/65287
13206         * ipa-icf.c (sem_variable::parse): Skip all alias variables.
13208 2015-03-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
13210         PR 65138/target
13211         * config/rs6000/rs6000-tables.opt: Regenerate table.
13213 2015-03-03  Renlin Li  <renlin.li@arm.com>
13215         * doc/md.texi (@item ^): Change ? into ^.
13217 2015-03-03  H.J. Lu  <hongjiu.lu@intel.com>
13219         * doc/tm.texi: Regenerated.
13221 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
13223         * builtins.c (expand_builtin_return_addr): Add
13224         RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
13225         surrounding #ifdef.
13226         * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
13227         definition to 1.
13228         * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
13229         Likewise.
13230         * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
13231         undefined.
13232         * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
13233         paragraph.
13235 2015-03-03  Martin Jambor  <mjambor@suse.cz>
13236             Eric Botcazou  <ebotcazou@adacore.com>
13238         * tree-sra.c (ipa_sra_check_caller_data): New type.
13239         (has_caller_p): Removed.
13240         (ipa_sra_check_caller): New function.
13241         (ipa_sra_preliminary_function_checks): Use it.
13243 2015-03-03  Martin Liska  <mliska@suse.cz>
13245         * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
13246         instead of if branch.
13248 2015-03-03  Martin Liska  <mliska@suse.cz>
13250         PR ipa/65282
13251         * ipa-icf.c (sem_variable::equals): Fix wrong condition.
13253 2015-03-23  Jeff Law  <law@redhat.com>
13255         PR tree-optimization/65241
13256         * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
13257         hash table if INSERT is true.
13259 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
13261         PR target/65296
13262         * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
13264 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
13266         PR target/64331
13267         * config/avr/avr.c (context.h, tree-pass.h): Include them.
13268         (avr_pass_data_recompute_notes): New static variable.
13269         (avr_pass_recompute_notes): New class.
13270         (avr_register_passes): New static function.
13271         (avr_option_override): Call it.
13273 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
13275         Fix various problems with specs file generation.
13277         PR target/65296
13278         * config.gcc (extra_gcc_objs) [avr]: Remove.
13279         * config/avr/driver-avr.c: Remove file.
13280         * config/avr/t-avr (driver-avr.o): Remove rule.
13281         (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
13282         INCLUDES to build.  Depend on TM_H.
13283         * config/avr/gen-avr-mmcu-specs.c: Tidy up code.  Fix various
13284         build warnings.  Fix non-matching types and non-existing %-codes.
13285         (tm.h): Include.
13286         (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
13287         (*libgcc) [WITH_AVRLIBC]: Add "-lm".
13288         * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
13289         * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
13290         (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
13291         (LIBGCC_SPEC): Remove definitions.
13293 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
13295         * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
13296         to create a register in testing mode.
13298 2015-03-03  Martin Liska  <mliska@suse.cz>
13299             Jan Hubicka  <hubicka@ucw.cz>
13301         PR ipa/65263
13302         * cgraph.c (cgraph_node::has_thunk_p): New function.
13303         * cgraph.h (cgraph_node::has_thunk_p: Likewise.
13304         * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
13305         (sem_function::merge): Assert is changed.
13307 2015-03-03  Martin Liska  <mliska@suse.cz>
13308             Martin Jambor  <mjambor@suse.cz>
13310         PR ipa/65087
13311         * ipa-icf.c (sem_item_optimizer::execute): Change function
13312         return value to boolean.
13313         (sem_item_optimizer::merge_classes): Likewise.
13314         (ipa_icf_driver): Return TODO_remove_functions in case there's
13315         a merge operation processed.
13316         * ipa-icf.h: Change function return value to boolean.
13318 2015-03-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
13320         PR 65138/target
13321         * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
13322         processor type for 64-bit little endian PowerPC.
13324         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
13325         -mdebug=reg, print TARGET_DEFAULT.  Fix logic to use
13326         TARGET_DEFAULT if there is no default cpu.  Fix -mdebug=reg
13327         printing built-in mask so it does not pass NULL pointers.
13329         * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
13330         -mcpu=powerpc64le.
13332 2015-03-02  Steve Ellcey  <sellcey@imgtec.com>
13334         PR target/58158
13335         * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
13336         !ISA_HAS_FP_CONDMOVE.
13338 2015-03-02  Aldy Hernandez  <aldyh@redhat.com>
13340         * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
13341         reload_completed.
13343 2015-03-02  Ulrich Drepper  <drepper@gmail.com>
13345         * doc/invoke.texi (Options for Code Generation Conventions):
13346         Fix URL of DSO paper.
13348 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
13350         PR ipa/65130
13351         * ipa-inline.c (check_callers): Looks for recursion.
13352         (inline_to_all_callers): Give up on uninlinable or recursive edges.
13353         * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
13354         summary of inline clones.
13355         (do_estimate_growth_1): Fix recursion check.
13357 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
13359         PR ipa/64988
13360         * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
13361         comdat groups.
13363 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
13364             Aldy Hernandez  <aldyh@redhat.com>
13366         PR lto/65276
13367         * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
13368         when checking TYPE_BINFO.
13370 2015-03-02  Richard Biener  <rguenther@suse.de>
13372         PR ipa/65270
13373         * ipa-icf-gimple.c: Include builtins.h.
13374         (func_checker::compare_memory_operand): Compare base alignment.
13376 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
13378         PR target/65184
13379         * gcc/config/i386/i386.c (ix86_pass_by_reference) Bounds
13380         are never passed by reference.
13382 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
13384         PR target/65183
13385         * tree-chkp.c (chkp_check_lower): Don't check against
13386         zero bounds for already instrumented functions.
13387         (chkp_check_upper): Likewise.
13388         (chkp_fini): Clean pass local data to avoid wrong reusage.
13390 2015-02-28  Martin Liska  <mliska@suse.cz>
13391             Jan Hubicka  <hubicka@ucw.cz>
13393         * ipa-icf.c (sem_variable::equals): Improve debug output;
13394         get variable constructor.
13395         (sem_variable::parse): Do not filter out too early; give up on
13396         volatile and register vars.
13397         (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
13398         variables.
13399         * ipa-icf.h (sem_variable::init): Do not set ctor.
13400         (sem_variable::ctor): Remove.
13402 2015-03-01  Aldy Hernandez  <aldyh@redhat.com>
13404         PR middle-end/65233
13405         * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
13407 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
13409         * ipa-icf.c: Include stor-layout.h
13410         (sem_function::compare_cgraph_references): Rename to ...
13411         (sem_item::compare_cgraph_references): ... this one.
13412         (sem_variable::equals_wpa): New function
13413         (sem_variable::equals): Do not check stuff already verified by
13414         equals_wpa.
13415         (sem_variable::equals): Reorg based on varasm.c:compare_constant.
13416         * ipa-icf.h (sem_item): Add compare_cgraph_references.
13417         (sem_function): Remove compare_cgraph_references.
13418         (sem_variable): Turns equals_wpa into non-inline.
13420 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
13422         * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
13423         (sem_item::add_expr): New function.
13424         (sem_function::hash_stmt): Handle operands of most statements.
13425         (sem_variable::get_hash): Hash the actual constructor.
13426         * ipa-icf.h (sem_item): Add add_expr.
13427         (sem_function): Update prototype of hash_stmt
13429 2015-02-28  Martin Liska  <mliska@suse.cz>
13430             Jan Hubicka  <hubicka@ucw.cz>
13432         PR ipa/65245
13433         * ipa-icf-gimple.c (func_checker::compare_function_decl):
13434         Remove.
13435         (func_checker::compare_variable_decl): Skip symtab vars.
13436         (func_checker::compare_cst_or_decl): Update.
13437         * ipa-icf.c (sem_function::parse): Do not consider aliases.
13438         (sem_function::compare_cgraph_references): Add ADDRESS parameter;
13439         use correct symtab predicates.
13440         (sem_function::equals_wpa): Update uses of compare_cgraph_references.
13441         (sem_variable::parse):  Update comment.
13442         (sem_item_optimizer::build_graph): Consider ultimate aliases
13443         for references.
13445 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
13447         * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
13448         of OBJ_TYPE_REF.
13450 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
13452         * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
13453         (sem_variable::merge) Likewise.
13455 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
13457         * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
13458         target; also match flag_ipa_devirt.
13460 2015-03-01  Martin Liska  <mliska@suse.cz>
13461             Jan Hubicka  <hubicka@ucw.cz>
13463         * ipa-icf-gimple.c (func_checker::compare_variable_decl):
13464         Validate variable alignment.
13465         * ipa-icf.c (sem_function::equals_private): Be more precise
13466         about non-common function attributes.
13467         (sem_variable::equals): Likewise.
13469 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
13471         PR ipa/65237
13472         * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
13473         across COMDAT group boundary.
13475 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
13477         PR ipa/65232
13478         * ipa-icf.c (clear_decl_rtl): New function.
13479         (sem_function::merge): Clear RTL before forming alias.
13480         (sem_variable::merge): Clear RTL before forming alias.
13482 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
13484         PR ipa/65236
13485         * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
13487 2015-02-28  Xingxing Pan  <xxingpan@marvell.com>
13489         * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
13490         to neon_to_gp<q>.
13492 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
13494         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
13495         a typo in the description.
13497 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
13499         PR target/64317
13500         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
13501         * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
13502         * lra-constraints.c: Include "params.h".
13503         (EBB_PROBABILITY_CUTOFF): Use
13504         LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
13505         (lra_inheritance): Use '<' instead of '<=' for
13506         EBB_PROBABILITY_CUTOFF.
13507         * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
13508         Document change.
13510 2015-02-27  Martin Liska  <mliska@suse.cz>
13512         * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
13513         vector length condition.
13515 2015-02-27  Sandra Loosemore  <sandra@codesourcery.com>
13517         * doc/extend.texi (x86 transactional memory intrinsics):
13518         Reorganize discussion of _xbegin.  Clarify that the return
13519         value is a bit mask.  Expand example and move to end of section.
13521 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
13522             Aldy Hernandez  <aldyh@redhat.com>
13524         PR rtl-optimization/65220
13525         * config/i386/i386.md (*udivmod<mode>4_pow2): New.
13527 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
13529         PR target/65032
13530         * lra-remat.c (update_scratch_ops): New.
13531         (do_remat): Call it.
13532         * lra.c (lra_register_new_scratch_op): New. Take code from ...
13533         (remove_scratches): ... here.
13534         * lra-int.h (lra_register_new_scratch_op): New prototype.
13536 2015-02-27  Marek Polacek  <polacek@redhat.com>
13538         PR c/65040
13539         * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
13540         -Wformat-signedness anymore.
13542 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13544         * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
13545         function.
13546         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
13548 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13550         * config/s390/s390.c (enum s390_builtin):
13551         Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
13552         (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
13553         (s390_init_builtins): Generate new builtin functions.
13554         * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
13555         (s390_sfpc, s390_efpc): New pattern definitions.
13557 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13559         * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
13560         Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
13561         (s390_builtin_decls): New array.
13562         (s390_init_builtins): Put builtin decls into s390_builtin_decls.
13563         (s390_builtin_decl): New function.
13564         (TARGET_BUILTIN_DECL): Define macro.
13566 2015-02-27  Richard Biener  <rguenther@suse.de>
13568         PR middle-end/63175
13569         * builtins.c (get_object_alignment_2): Make sure to re-apply
13570         the ANDed mask after recursing to its operand gets us a new
13571         misalignment bit position.
13573 2015-02-26  Jan Hubicka  <hubicka@ucw.cz>
13574             Martin Liska  <mliska@suse.cz>
13576         PR bootstrap/65150
13577         * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
13578         Use address_matters_p.
13579         (redirect_all_callers, set_addressable): New functions.
13580         (sem_function::merge): Reorganize and fix merging issues.
13581         (sem_variable::merge): Likewise.
13582         (sem_variable::compare_sections): Remove.
13583         * common.opt (fmerge-all-constants, fmerge-constants): Remove
13584         Optimization flag.
13585         * symtab.c (symtab_node::resolve_alias): When alias has aliases,
13586         redirect them.
13587         (symtab_node::make_decl_local): Set ADDRESSABLE bit when
13588         decl is used.
13589         (address_matters_1): New function.
13590         (symtab_node::address_matters_p): New function.
13591         * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
13592         check for merged flag.
13593         * cgraph.h (address_matters_p): Declare.
13594         (symtab_node::address_taken_from_non_vtable_p): Remove.
13595         (symtab_node::address_can_be_compared_p): New method.
13596         (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
13597         * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
13598         Remove.
13599         (comdat_can_be_unshared_p_1) Use address_matters_p.
13600         (update_vtable_references): Fix formating.
13601         * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
13602         * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
13603         * cgraphclones.c: Preserve merged and icf_merged flags.
13605 2015-02-26  Sandra Loosemore  <sandra@codesourcery.com>
13607         * doc/extend.texi (Function Attributes): Fix spelling and typos.
13608         (Label Attributes): Likewise.
13609         (Cilk Plus Builtins): Likewise.
13610         (ARC SIMD Built-in Functions): Likewise.
13611         (ARM C Language Extensions (ACLE)): Likewise.
13612         (PowerPC Built-in Functions): Likewise.
13613         (PowerPC Hardware Transactional Memory Built-in Functions):
13614         Likewise.
13616 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
13618         PR tree-optimization/65216
13619         * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
13620         new stmt and new SSA_NAME for lhs whenever the arguments have
13621         changed and weren't just swapped.  Fix comment typo.
13623         PR tree-optimization/65215
13624         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
13625         for PDP endian targets.
13626         (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
13627         Fix up formatting issues.
13628         (bswap_replace): Likewise.  For BYTES_BIG_ENDIAN, if the final access
13629         size is smaller than the original, adjust MEM_REF offset by the
13630         difference of sizes.  Use is_gimple_mem_ref_addr instead of
13631         is_gimple_min_invariant test to avoid adding address temporaries.
13633 2015-02-26  Martin Liska  <mliska@suse.cz>
13634             Jan Hubicka  <hubicka@ucw.cz>
13636         PR ipa/64693
13637         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
13638         (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
13639         (sem_item_optimizer::process_cong_reduction): Include division by
13640         sensitive references.
13641         * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
13642         * ipa-ref.c (ipa_ref::address_matters_p): New function.
13643         * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
13645 2015-02-26  Georg-Johann Lay  <avr@gjlay.de>
13647         PR target/65192
13648         * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
13649         Remove.
13650         * config/avr/avr.c: Same.
13651         (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
13652         Refuse any constant address not in 0..0xbf.
13653         * config/avr/avr.md (*mov<mode>, *movsf): Remove
13654         tiny_valid_direct_memory_access_range from insn conditions.
13655         (mov<mode>): Don't special-case expansion of avrtiny addresses.
13657 2015-02-26  Oleg Endo  <olegendo@gcc.gnu.org>
13659         PR target/61142
13660         * config/sh/sh.c (sh_check_add_incdec_notes): New function.
13661         * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
13662         * config/sh/predicates.md (const_logical_operand): New predicate.
13663         * config/sh/sh.md: Add new peephole2 patterns.
13665 2015-02-26  Marek Polacek  <polacek@redhat.com>
13667         PR ipa/65008
13668         * ipa-inline.c (early_inliner): Recompute inline parameters.
13670 2015-02-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13672         PR target/65171
13673         * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
13674         instructions with TImode operands are included in the analysis.
13676 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
13678         * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
13679         of an EDGE_FSM_THREAD.
13681 2015-02-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13683         * config/rs6000/htm.md (tcheck): Fix assembly encoding.
13685 2015-02-25  Aldy Hernandez  <aldyh@redhat.com>
13687         PR debug/46102
13688         * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
13690 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
13692         PR tree-optimization/65048
13693         * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
13694         (thread_through_all_blocks): Call valid_jump_thread_path.
13695         Remove invalid FSM jump-thread paths.
13697 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
13699         * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
13700         (ipa_write_optimization_summaries): Likewise.
13701         * tree-streamer.h: Include data-streamer.h.
13702         (streamer_mode_table): Declare extern variable.
13703         (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
13704         * lto-streamer-out.c (lto_output_init_mode_table,
13705         lto_write_mode_table): New functions.
13706         (produce_asm_for_decls): Call lto_write_mode_table when streaming
13707         offloading LTO.
13708         * lto-section-in.c (lto_section_name): Add "mode_table" entry.
13709         (lto_create_simple_input_block): Add mode_table argument to the
13710         lto_input_block constructors.
13711         * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
13712         Likewise.
13713         * data-streamer-in.c (string_for_index): Likewise.
13714         * ipa-inline-analysis.c (inline_read_section): Likewise.
13715         * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
13716         * lto-cgraph.c (input_cgraph_opt_section): Likewise.
13717         * lto-streamer-in.c (lto_read_body_or_constructor,
13718         lto_input_toplevel_asms): Likewise.
13719         (lto_input_mode_table): New function.
13720         * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
13721         pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
13722         Use bp_pack_machine_mode.
13723         * real.h (struct real_format): Add name field.
13724         * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
13725         (class lto_input_block): Add mode_table member.
13726         (lto_input_block::lto_input_block): Add mode_table_ argument,
13727         initialize mode_table.
13728         (struct lto_file_decl_data): Add mode_table field.
13729         (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
13730         * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
13731         unpack_ts_decl_common_value_fields,
13732         unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
13733         * tree-streamer.c (streamer_mode_table): New variable.
13734         * real.c (ieee_single_format, mips_single_format,
13735         motorola_single_format, spu_single_format, ieee_double_format,
13736         mips_double_format, motorola_double_format,
13737         ieee_extended_motorola_format, ieee_extended_intel_96_format,
13738         ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
13739         ibm_extended_format, mips_extended_format, ieee_quad_format,
13740         mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
13741         decimal_single_format, decimal_double_format, decimal_quad_format,
13742         ieee_half_format, arm_half_format, real_internal_format): Add name
13743         field.
13744         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
13746 2015-02-26  Yuri Rumyantsev  <ysrumyan@gmail.com>
13748         PR target/65161
13749         * config/i386/i386.c (ix86_sched_reorder): Skip instruction
13750         reordering for selective scheduling.
13752 2015-02-26  Terry Guo  <terry.guo@arm.com>
13754         * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
13755         * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
13756         (arm_arch_no_volatile_ce): Declare new global variable.
13757         * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
13758         (arm_option_override): Assign value to arm_arch_no_volatile_ce.
13759         * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
13760         (TARGET_NO_VOLATILE_CE): New macro.
13761         * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
13762         volatile memory access in IT block
13764 2015-02-25  Kai Tietz  <ktietz@redhat.com>
13766         PR tree-optimization/61917
13767         * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
13768         that reduc_def_stmt is null.
13770 2015-02-25  Martin Liska  <mliska@suse.cz>
13772         * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
13773         hard register variables.
13775 2015-02-25  Kai Tietz  <ktietz@redhat.com>
13777         PR target/64212
13778         * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
13779         (symtab::noninterposable_alias): Likewise.
13781 2015-02-25  Ilya Enkovich  <ilya.enkovich@intel.com>
13783         PR target/65167
13784         * gcc/config/i386/i386.c (ix86_function_arg_regno_p): Support
13785         bounds registers.
13786         (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
13788 2015-02-25  Alan Lawrence  <alan.lawrence@arm.com>
13790         PR target/64997
13791         * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
13792         as split condition; force split via '#' in output pattern.
13794 2015-02-25  Richard Biener  <rguenther@suse.de>
13795             Kai Tietz  <ktietz@redhat.com>
13797         PR tree-optimization/61917
13798         * tree-vect-loop.c (vectorizable_reduction): Allow
13799         vect_internal_def without reduction to exit graceful.
13801 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
13803         PR target/65196
13804         * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
13805         only with NONDEBUG_INSN_P.
13807 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
13809         Use variadic macros with avr-log.c.
13811         * config/avr/avr-protos.h (avr_vdump): New prototype.
13812         (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
13813         (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
13814         * config/avr/avr-log.c: Adjust comments.
13815         (avr_vdump): New function.
13816         (avr_vadump): Pass caller as 2nd argument instead of format string.
13817         (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
13818         (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
13820 2015-02-25  Jakub Jelinek  <jakub@redhat.com>
13822         PR lto/64374
13823         * target.def (target_option_stream_in): New target hook.
13824         * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
13825         targetm.target_option.post_stream_in if non-NULL.
13826         * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
13827         * doc/tm.texi: Updated.
13828         * config/i386/i386.c (ix86_function_specific_post_stream_in): New
13829         function.
13830         (TARGET_OPTION_POST_STREAM_IN): Redefine.
13832 2015-02-24  Jeff Law  <law@redhat.com>
13834         PR target/65117
13835         * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
13836         of operand 0 and operand 2.
13837         (zero_cost_loop_end, loop_end): Similarly.
13839 2015-02-24  Aldy Hernandez  <aldyh@redhat.com>
13841         * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
13842         CXX_MEM_STAT_INFO.
13844 2015-02-24  DJ Delorie  <dj@redhat.com>
13846         * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
13847         * config/rl78/rl78-expand.md (movsf): New, same as movsi.
13848         * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
13849         instead of hardcoding SImode.
13851 2015-02-24  Bernd Schmidt  <bernds@codesourcery.com>
13853         * omp-low.c (create_omp_child_function): Tag entrypoint
13854         functions with a special attribute.
13856 2015-02-24  Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
13858         PR target/65058
13859         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
13861 2015-02-24  Vladimir Makarov  <vmakarov@redhat.com>
13863         PR rtl-optimization/65123
13864         * lra-remat.c (operand_to_remat): Check hard regs in insn
13865         definition too.
13867 2015-02-24  Nick Clifton  <nickc@redhat.com>
13869         * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
13870         to the assembler.
13872 2015-02-24  Thomas Schwinge  <thomas@codesourcery.com>
13874         PR libgomp/64625
13875         * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
13876         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
13877         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
13878         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
13879         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
13880         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
13881         (BUILT_IN_GOACC_PARALLEL): Specify as
13882         BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
13883         BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
13884         * builtin-types.def
13885         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
13886         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
13887         Remove function types.
13888         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
13889         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
13890         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
13891         New function types.
13893 2015-02-24  Georg-Johann Lay  <avr@gjlay.de>
13895         * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
13897 2015-02-24  Jakub Jelinek  <jakub@redhat.com>
13899         PR tree-optimization/65170
13900         * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
13901         if val[1] < 0, clear also val[2] and return 3.
13903 2015-02-24  Alan Modra  <amodra@gmail.com>
13905         PR target/65172
13906         * config/rs6000/rs6000.c (get_memref_parts): Only return true
13907         when *base is a reg.  Handle nested plus addresses.  Simplify
13908         pre_modify test.
13910 2015-02-22  Max Filippov  <jcmvbkbc@gmail.com>
13912         * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
13913         use natural alignment when optimizing for size.
13915 2015-02-23  Kaz Kojima  <kkojima@gcc.gnu.org>
13917         PR target/65153
13918         * config/sh/sh.md (movsicc_true+3): Remove peephole.
13919         * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
13920         * config/sh/sh.c (replace_n_hard_rtx): Remove.
13922 2015-02-23  Richard Sandiford  <richard.sandiford@arm.com>
13924         PR fortran/63427
13925         * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
13926         too big for a wide_int.  Implement missing wrapping operation.
13928 2015-02-23  Oleg Endo  <olegendo@gcc.gnu.org>
13930         PR target/65163
13931         * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
13932         instead of const_int 4294901760.
13934 2015-02-23  Georg-Johann Lay  <avr@gjlay.de>
13936         * config/avr/t-avr: Fix typo in comment.
13938 2015-02-21  Richard Sandiford  <richard.sandiford@arm.com>
13940         * doc/rtl.texi (fma): Clarify documentation.
13942 2015-02-20  Aldy Hernandez  <aldyh@redhat.com>
13944         PR debug/58123
13945         * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
13946         over input_location.
13948 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
13950         * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
13951         unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
13952         restrict alignments to absolute_biggest_alignment.
13953         * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
13954         Define.
13955         * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
13956         * doc/tm.texi: Regenerate.
13957         * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
13959 2015-02-20  Vladimir Makarov  <vmakarov@redhat.com>
13961         PR target/64172
13962         * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
13964 2015-02-20  Richard Biener  <rguenther@suse.de>
13966         PR tree-optimization/65136
13967         * tree-ssa-propagate.c: Include cfgloop.h.
13968         (replace_phi_args_in): Avoid replacing loop latch edge PHI
13969         arguments with constants.
13971 2015-02-20  Jakub Jelinek  <jakub@redhat.com>
13972             Martin Liska  <mliska@suse.cz>
13974         PR target/63892
13975         * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
13976         don't try to create_thunk if stdarg_p.  If
13977         !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
13978         redirect_callers if possible.
13979         (sem_item_optimizer::execute): Call unregister_hooks here...
13980         (ipa_icf_driver): ... instead of here.
13982 2015-02-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13984         * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
13985         Mark operand 0 as earlyclobber in 2nd alternative.
13986         (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
13987         Write negated shift amount into QI lowpart operand 0 and use it
13988         in the shift step.
13989         (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
13991 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
13993         * cgraph.h (clone_function_name_1): Declare.
13994         * cgraphclones.c (clone_function_name_1): New function.
13995         (clone_function_name): Use it.
13996         * lto-partition.c: Include "stringpool.h".
13997         (must_not_rename, maybe_rewrite_identifier)
13998         (validize_symbol_for_target): New static functions.
13999         (privatize_symbol_name): Use must_not_rename.
14000         (promote_symbol): Call validize_symbol_for_target.
14001         (lto_promote_cross_file_statics): Likewise.
14002         (lto_promote_statics_nonwpa): Likewise.
14004 2015-02-20  Georg-Johann Lay  <avr@gjlay.de>
14006         PR target/64452
14007         * config/avr/avr.md (pushhi_insn): New insn.
14008         (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
14010 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
14011             Jakub Jelinek  <jakub@redhat.com>
14013         * tree-streamer.c (preload_common_nodes): Don't preload
14014         TI_VA_LIST* for offloading.
14015         * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
14016         in_lto_p.
14018 2015-02-19  John David Anglin  <danlgin@gcc.gnu.org>
14020         * config/pa/pa.c (pa_emit_move_sequence): Always force
14021         (const (plus (symbol) (const_int))) to const mem.  Put REG_EQUAL
14022         note on insn.
14024         * config/pa/pa.c (pa_reloc_rw_mask): New function.
14025         (TARGET_ASM_RELOC_RW_MASK): Define.
14026         (pa_cannot_force_const_mem): Revert previous change.
14028 2015-02-19  Martin Jambor  <mjmabor@suse.cz>
14029             Jan Hubicka  <hubicka@ucw.cz>
14031         PR ipa/65028
14032         * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
14033         across jump functions.
14035 2015-02-19  Uros Bizjak  <ubizjak@gmail.com>
14037         * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
14039 2015-02-19  Sandra Loosemore  <sandra@codesourcery.com>
14041         * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
14043 2015-02-19  Richard Henderson  <rth@redhat.com>
14045         PR middle-end/65074
14046         * varasm.c (default_binds_local_p_2): Don't test node->definition;
14047         test DECL_EXTERNAL independent of symtab_node.
14049 2015-02-19  Jakub Jelinek  <jakub@redhat.com>
14051         PR lto/65012
14052         * varpool.c (varpool_node::get_constructor): Return early
14053         if this->lto_file_data is NULL.
14055 2015-02-19  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
14057         * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
14058         (rank_for_schedule_debug): Update.
14059         (ready_sort): Make static.  Move sorting logic to ...
14060         (ready_sort_debug, ready_sort_real): New static functions.
14061         (schedule_block): Sort both debug insns and real insns in preparation
14062         for ready list trimming.  Improve debug output.
14063         * sched-int.h (ready_sort): Remove global declaration.
14065 2015-02-18  Trevor Saunders  <tsaunders@mozilla.com>
14067         * ipa-icf.c (sem_function::equals_private): Adjust.
14068         (sem_function::bb_dict_test): Take a vec<int> * instead of
14069         auto_vec<int>.
14070         * ipa-icf.h (bb_dict_test): Likewise.
14072 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
14074         PR gcov-profile/64634
14075         * tree-eh.c (frob_into_branch_around): Fix up typos
14076         in function comment.
14077         (lower_catch): Put eh_seq resulting from EH lowering of
14078         the cleanup sequence after the cleanup rather than before it.
14080 2015-02-18  Tom de Vries  <tom@codesourcery.com>
14082         * common.opt (fstdarg-opt): New option.
14083         * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
14084         * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
14085         (@item -fstdarg-opt): New item.
14087 2015-02-18  H.J. Lu  <hongjiu.lu@intel.com>
14089         PR target/65064
14090         * config/ia64/predicates.md (sdata_symbolic_operand): Return false
14091         for common symbols.
14093 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
14095         * config/i386/t-intelmic (mkoffload.o): Remove dependency on
14096         insn-modes.h.
14097         (ALL_HOST_OBJS): Add mkoffload.o.
14098         * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
14100 2015-02-18  Jan Hubicka  <hubicka@ucw.cz>
14102         * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
14103         (compare_virtual_tables): Be smarter about skipping typeinfos;
14104         do sane output on virtual table table mismatch.
14105         (warn_odr): Be ready for forward declarations of enums;
14106         output sane info on base mismatch and virtual table mismatch.
14107         (add_type_duplicate): Fix code choosing prevailing type; do not ICE
14108         when only one type is polymorphic.
14109         (get_odr_type): Fix hashtable corruption.
14110         (dump_odr_type): Dump mangled names.
14112 2015-02-18  Richard Biener  <rguenther@suse.de>
14114         PR tree-optimization/65063
14115         * tree-predcom.c (determine_unroll_factor): Return 1 if we
14116         have replaced looparound PHIs.
14118 2015-02-18  Martin Liska  <mliska@suse.cz>
14120         * lto-streamer.c (lto_streamer_init): Encapsulate
14121         streamer_check_handled_ts_structures with checking macro.
14123 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
14125         PR ipa/65087
14126         * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
14127         section if !implicit_section.
14128         (cgraph_node::create_version_clone_with_body): Likewise.
14129         * trans-mem.c (ipa_tm_create_version): Likewise.
14131 2015-02-18  Richard Biener  <rguenther@suse.de>
14133         PR tree-optimization/62217
14134         * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
14135         into BIVs.
14137 2015-02-18  Marek Polacek  <polacek@redhat.com>
14139         PR sanitizer/65081
14140         * ubsan.c (OBJSZ_MAX_OFFSET): Define.
14141         (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
14142         is in range [-16K, -1].  Don't issue run-time error if
14143         (ptr > ptr + offset).
14145 2015-02-18  Thomas Schwinge  <thomas@codesourcery.com>
14147         * doc/install.texi (nvptx-*-none): New section.
14148         * doc/invoke.texi (Nvidia PTX Options): Likewise.
14149         * config/nvptx/nvptx.opt: Update.
14151         * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
14152         (access_check): New functions, copied from
14153         config/i386/intelmic-mkoffload.c.
14154         (main): For non-installed testing, look in all COMPILER_PATHs for
14155         GCC_INSTALL_NAME.
14157         * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
14159 2015-02-18  Andrew Pinski  <apinski@cavium.com>
14160             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
14162         * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
14163         Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
14165 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
14167         * ipa-visibility.c (function_and_variable_visibility): Only
14168         check locality if node is not already local.
14169         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
14170         call_for_symbol_and_aliases instead of
14171         call_for_symbol_thunks_and_aliases.
14172         (ipa_inline): Likewise.
14173         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
14174         first walk aliases.
14175         * ipa.c (symbol_table::remove_unreachable_nodes): Use
14176         call_for_symbol_and_aliases.
14177         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
14178         (ipa_propagate_frequency_1): Use it; use opt_for_fn
14179         (ipa_propagate_frequency): Update.
14180         (ipa_profile): Add opt_for_fn gueards.
14182 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
14184         * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
14185         * doc/invoke.texi (SH options): Document it.
14186         * config/sh/sh.c (sh_insn_length_adjustment): Check
14187         TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
14189 2015-02-17  H.J. Lu  <hongjiu.lu@intel.com>
14191         * common.opt (fipa-cp-alignment): New.
14192         * ipa-cp.c (ipcp_store_alignment_results): Check
14193         flag_ipa_cp_alignment.
14194         * opts.c (default_options_table): Enable -fipa-cp-alignment for
14195         -O2.
14196         (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
14197         * doc/invoke.texi: Document -fipa-cp-alignment.
14199 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
14201         PR target/64793
14202         * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
14203         to nil.  Adjust comments.
14205 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
14207         * ipa-visibility.c (function_and_variable_visibility): Only
14208         check locality if node is not already local.
14209         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
14210         call_for_symbol_and_aliases instead of
14211         call_for_symbol_thunks_and_aliases.
14212         (ipa_inline): Likewise.
14213         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
14214         first walk aliases.
14215         * ipa.c (symbol_table::remove_unreachable_nodes): Use
14216         call_for_symbol_and_aliases.
14217         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
14218         (ipa_propagate_frequency_1): Use it; use opt_for_fn
14219         (ipa_propagate_frequency): Update.
14220         (ipa_profile): Add opt_for_fn guards.
14222 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
14224         * config/nvptx/mkoffload.c (parse_file): Fix logic error in
14225         skipping of "strange" tokens.
14227 2015-02-17  Jeff Law  <law@redhat.com>
14229         * tree-vrp.c (identify_jump_threads): Use last_stmt.  Remove
14230         obsolete comment.
14232 2015-02-17  James Greenhalgh  <james.greenhalgh@arm.com>
14234         * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
14235         as forcing a HARD_DEP between instructions, thereby
14236         disallowing rewriting to break dependencies.
14238 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
14240         * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
14241         * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
14242         variables in boundary that have no inlitalizer encoded and are
14243         not aliases.
14244         * varasm.c (default_binds_local_p_2): External definitions do not
14245         count as definitions here.
14247 2015-02-16  Jeff Law  <law@redhat.com>
14249         PR tree-optimization/64823
14250         * tree-vrp.c (identify_jump_threads): Handle blocks with no real
14251         statements.
14252         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
14253         threading through blocks with PHIs, but no statements.
14254         (thread_through_normal_block): Distinguish between blocks where
14255         we did not process all the statements and blocks with no statements.
14257 2015-02-16  Jakub Jelinek  <jakub@redhat.com>
14258             James Greenhalgh  <james.greenhalgh@arm.com>
14260         PR ipa/64963
14261         * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
14262         section if not linkonce.  Fix up formatting.
14263         (cgraph_node::create_version_clone_with_body): Copy section.
14264         * trans-mem.c (ipa_tm_create_version): Likewise.
14266 2015-02-16  Richard Biener  <rguenther@suse.de>
14268         PR tree-optimization/65077
14269         * tree-ssa-structalias.c (get_constraint_for_1): Handle
14270         IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
14271         (find_func_aliases): Allow float values to carry pointers again.
14273 2015-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
14275         * doc/install.texi (Specific): Reorder targets list to put
14276         aarch64 in alphabetical order.  Add a link to aarch64*-*-*
14277         from the top menu.
14279 2015-02-16  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
14280             David Edelsohn  <dje.gcc@gmail.com>
14282         PR target/65058
14283         * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
14284         mapping class to external variable or function reference.
14285         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
14286         mapping class.
14288 2015-02-16  David Eelsohn  <dje.gcc@gmail.com>
14290         PR target/53348
14291         * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
14292         ASM_WEAKEN_DECL if defined.
14294 2015-02-16  Richard Biener  <rguenther@suse.de>
14296         PR lto/65015
14297         * varasm.c (default_file_start): For LTO produced units
14298         emit <artificial> as file directive.
14300 2015-02-16  Richard Biener  <rguenther@suse.de>
14302         PR tree-optimization/63593
14303         * tree-predcom.c (execute_pred_commoning_chain): Delay removing
14304         stmts and releasing SSA names until...
14305         (execute_pred_commoning): ... after processing all chains.
14307 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
14309         PR ipa/65059
14310         * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
14311         external functions.
14313 2015-02-15  Sandra Loosemore  <sandra@codesourcery.com>
14315         * doc/bugreport.texi: Adjust section titles throughout the file
14316         to use "Title Case".
14317         * doc/extend.texi: Likewise.
14318         * doc/gcov.texi: Likewise.
14319         * doc/implement-c.texi: Likewise.
14320         * doc/implement-cxx.texi: Likewise.
14321         * doc/invoke.texi: Likewise.
14322         * doc/objc.texi: Likewise.
14323         * doc/standards.texi: Likewise.
14324         * doc/trouble.texi: Likewise.
14326 2015-02-15  Jan Hubicka  <hubicka@ucw.cz>
14328         * cgraph.h (symtab_node::has_aliases_p): Simplify.
14329         (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
14330         * tree.c (lookup_binfo_at_offset): Make static.
14331         (get_binfo_at_offset): Do not shadow offset; add explanatory
14332         comment.
14334 2015-02-15  John David Anglin  <danglin@gcc.gnu.org>
14336         * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
14337         for all floading point loads and stores except those using a register
14338         index address.
14339         * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
14340         to a register.
14342 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
14344         * ipa-inline-analysis.c (growth_data): Add uninlinable field.
14345         (do_estimate_growth_1): Record if any uninlinable edge was seen.
14346         (estimate_growth): Handle uninlinable edges correctly.
14347         (check_callers): New.
14348         (growth_likely_positive): Handle aliases correctly.
14350 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
14352         * ipa-chkp.c: Use iterate_direct_aliases.
14353         * symtab.c (resolution_used_from_other_file_p): Move inline.
14354         (symtab_node::create_reference): Fix formating.
14355         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
14356         (symtab_node::iterate_reference): Move inline.
14357         (symtab_node::iterate_referring): Move inline.
14358         (symtab_node::iterate_direct_aliases): Move inline.
14359         (symtab_node::used_from_object_file_p_worker): Inline into ...
14360         (symtab_node::used_from_object_file_p): ... this one; move inline.
14361         (symtab_node::call_for_symbol_and_aliases): Move inline;
14362         use iterate_direct_aliases.
14363         (symtab_node::call_for_symbol_and_aliases_1): New method.
14364         (cgraph_node::call_for_symbol_and_aliases): Move inline;
14365         use iterate_direct_aliases.
14366         (cgraph_node::call_for_symbol_and_aliases_1): New method.
14367         (varpool_node::call_for_node_and_aliases): Rename to ...
14368         (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
14369         use iterate_direct_aliases.
14370         (varpool_node::call_for_symbol_and_aliases_1): New method.
14371         * ipa.c (ipa_single_use): Use iterate_direct_aliases.
14372         (ipa_discover_readonly_nonaddressable_var): Update.
14373         * ipa-devirt.c: Fix formating.
14374         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
14375         Move inline.
14376         (cgraph_node::call_for_symbol_and_aliases): Move inline.
14377         (cgraph_node::call_for_symbol_and_aliases_1): New function..
14378         * cgraph.h (used_from_object_file_p_worker): Remove.
14379         (resolution_used_from_other_file_p): Move inline.
14380         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
14381         (symtab_node::iterate_reference): Move inline.
14382         (symtab_node::iterate_referring): Move inline.
14383         (symtab_node::iterate_direct_aliases): Move inline.
14384         (symtab_node::used_from_object_file_p_worker): Inline into ...
14385         (symtab_node::used_from_object_file_p): Move inline.
14386         * tree-emutls.c (ipa_lower_emutls): Update.
14387         * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
14388         (varpool_node::call_for_node_and_aliases): Remove.
14390 2015-02-14  Jakub Jelinek  <jakub@redhat.com>
14392         PR tree-optimization/62209
14393         * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
14394         op == range->exp, insert seq and gimplified code after labels
14395         instead of after the phi.
14397 2015-02-13  Jeff Law  <law@redhat.com>
14399         PR bootstrap/65060
14400         Revert my change for tree-optimization/64823.
14402 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
14404         PR tree-optimization/65053
14405         * tree-ssa-phiopt.c (value_replacement): When moving assign before
14406         cond, either reset VR on lhs or set it to phi result VR.
14408 2015-02-13  Jeff Law  <law@redhat.com>
14410         PR tree-optimization/64823
14411         * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
14412         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
14413         threading through blocks with PHIs, but no statements.
14414         (thread_through_normal_block): Distinguish between blocks where
14415         we did not process all the statements and blocks with no statements.
14417         PR rtl-optimization/47477
14418         * match.pd (convert (plus/minus (convert @0) (convert @1): New
14419         simplifier to narrow arithmetic.
14421 2015-02-13  Jan Hubicka  <hubicka@ucw.cz>
14423         PR ipa/65028
14424         * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
14425         polymorphic call info when type is not known to be preserved.
14427 2015-02-13  Maritn Jambor  <mjambor@suse.cz>
14429         PR ipa/65028
14430         * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
14431         (inline_call): Use it.
14433 2015-02-13  Thomas Schwinge  <thomas@codesourcery.com>
14435         * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
14436         GOMP_DEVICE_NVIDIA_PTX.
14438 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
14440         PR ipa/65034
14441         * stmt.c (emit_case_nodes): Use void_type_node instead of
14442         NULL_TREE as LABEL_DECL type.
14444 2015-02-13  John David Anglin  <danglin@gcc.gnu.org>
14446         * config/pa/constraints.md: Change "Q" and "T" constraints to memory
14447         constraints.
14448         * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
14449         symbolic references to data to be forced to constant memory on the
14450         SOM target.
14452 2015-02-13  Ilya Enkovich  <ilya.enkovich@intel.com>
14454         PR tree-optimization/65002
14455         * tree-cfg.c (pass_data_fixup_cfg): Don't update
14456         SSA on start.
14457         * tree-sra.c (some_callers_have_no_vuse_p): New.
14458         (ipa_early_sra): Reject functions whose callers
14459         assume function is read only.
14461 2015-02-13  Richard Biener  <rguenther@suse.de>
14463         PR lto/65015
14464         * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
14465         for LTO produced CUs.
14467 2015-02-13  Bin Cheng  <bin.cheng@arm.com>
14469         PR tree-optimization/64705
14470         * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
14471         * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
14472         * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
14473         (find_bivs, find_givs_in_stmt_scev): Pass new argument to
14474         expand_simple_operations.
14476 2015-02-13  H.J. Lu  <hongjiu.lu@intel.com>
14477             Richard Henderson  <rth@redhat.com>
14479         PR rtl/32219
14480         * cgraphunit.c (cgraph_node::finalize_function): Set definition
14481         before notice_global_symbol.
14482         (varpool_node::finalize_decl): Likewise.
14483         * varasm.c (default_binds_local_p_2): Rename from
14484         default_binds_local_p_1, add weak_dominate argument.  Use direct
14485         returns instead of assigning to local variable.  Unify varpool and
14486         cgraph paths via symtab_node.  Reject undef weak variables before
14487         testing visibility.  Reorder tests for simplicity.
14488         (default_binds_local_p): Use default_binds_local_p_2.
14489         (default_binds_local_p_1): Likewise.
14490         (decl_binds_to_current_def_p): Unify varpool and cgraph paths
14491         via symtab_node.
14492         (default_elf_asm_output_external): Emit visibility when specified.
14494 2015-02-13  Alan Modra  <amodra@gmail.com>
14496         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
14497         code setting up r11 for out-of-line fp restore.
14499 2015-02-13  Eric Botcazou  <ebotcazou@adacore.com>
14501         * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
14502         (muser-mode): Likewise.
14504 2015-02-13  Alan Modra  <amodra@gmail.com>
14506         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
14507         or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
14509 2015-02-12  David Howells  <dhowells@redhat.com>
14511         * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
14512         warning.
14513         * tree-ssa-uninit.c (dump_predicates): Likewise.
14514         * opts.c (print_filtered_help): Likewise.
14516 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
14518         * dwarf2out.c (output_die): Use "%s", name instead of name to
14519         avoid -Wformat-security warning.
14521         * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
14522         if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
14523         * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
14524         only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
14526 2015-02-12  Jason Merrill  <jason@redhat.com>
14528         * common.opt (-flifetime-dse): New.
14530 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
14532         PR sanitizer/65019
14533         * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
14535         PR tree-optimization/65014
14536         * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
14537         use original second operand of arg0 or arg1 instead of
14538         that adjusted by STRIP_NOPS.
14540 2015-02-11  Jeff Law  <law@redhat.com>
14542         PR target/63347
14543         * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
14544         that needs to be queued, just queue it for a single cycle.
14546 2015-02-11  Jan Hubicka  <hubicka@ucw.cz>
14548         * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
14549         bodies of thunks; comment on why.
14550         * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
14551         symbols are extern.
14553 2015-02-11  Richard Henderson  <rth@redhat.com>
14555         PR sanitize/65000
14556         * tree-eh.c (mark_reachable_handlers): Mark source and destination
14557         regions of __builtin_eh_copy_values.
14559 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
14561         PR middle-end/65003
14562         * varasm.c (place_block_symbol): Assert that DECL_RTL of the
14563         ultimate alias is MEM with SYMBOL_REF satisfying
14564         SYMBOL_REF_HAS_BLOCK_INFO_P as its operand.  Don't pass the MEM
14565         to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
14567 2015-02-11  Thomas Schwinge  <thomas@codesourcery.com>
14569         * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
14570         "diagnostic-core.h".
14571         (main): Initialize progname, and call diagnostic_initialize.
14573         * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
14574         instead of __OPENMP_TARGET__.
14576         * config/nvptx/mkoffload.c: Include "gomp-constants.h".
14577         (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
14578         hard-coding PTX_ID.
14580 2015-02-11  H.J. Lu  <hongjiu.lu@intel.com>
14582         * doc/sourcebuild.texi (pie_enabled): Document.
14584 2015-02-11  Martin Liska  <mliska@suse.cz>
14586         PR ipa/64813
14587         * cgraphunit.c (cgraph_node::expand_thunk): Do not create
14588         a return value for call to a function that is noreturn.
14590 2015-02-11  Richard Biener  <rguenther@suse.de>
14592         PR lto/65015
14593         * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
14594         and -fresolution.
14596 2015-02-11  Andrew Pinski  <apinski@cavium.com>
14598         PR target/64893
14599         * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
14600         Change the first argument type to size_type_node and add another
14601         size_type_node.
14602         (aarch64_simd_expand_builtin): Handle the new argument to
14603         AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
14604         print an out when the first two arguments are not
14605         nonzero integer constants.
14606         * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
14607         Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
14609 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
14611         PR target/61925
14612         * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
14613         (ix86_reset_previous_fndecl): Restore it here, unconditionally.
14614         (ix86_set_current_function): Rewritten.
14615         (ix86_add_new_builtins): Temporarily clear current_target_pragma
14616         when creating builtin fndecls.
14618 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
14620         PR ipa/65005
14621         * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
14622         function.
14623         * symtab.c (symtab_node::verify_base): Remove check that non-definitions
14624         have no comdat group.
14625         * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
14626         (lto_output_varpool_node): Always output alias info.
14627         (output_refs): Output refs of boundary aliases, too.
14628         (compute_ltrans_boundary): Add alias and thunk target into boundaries.
14629         (output_symtab): Output call eges in thunks in boundary.
14630         (get_alias_symbol): Remove.
14631         (input_node, input_varpool_node): Do not special case weakrefs.
14632         * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
14633         alias and thunks targets in the boundary; do not take removed symbols
14634         from their comdat groups.
14635         * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
14636         (cgraph_node::global_info): Remove.
14637         (cgraph_node::rtl_info): Look through aliases and thunks.
14638         * cgrpah.h (global_info): Remove.
14639         (non_local_p): Remove.
14641 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
14642             Sandra Loosemore  <sandra@codesourcery.com>
14644         * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
14645         to inline asm.  List dialects in proper order.
14647 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
14648             Sandra Loosemore  <sandra@codesourcery.com>
14650         * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
14652 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
14654         * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
14655         modified) reference to Solaris.
14657 2015-02-10  Sandra Loosemore  <sandra@codesourcery.com>
14659         * doc/extend.texi (Extended Asm): Fix typos.
14661 2015-02-10  Jakub Jelinek  <jakub@redhat.com>
14663         PR sanitizer/65004
14664         * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
14666 2015-02-10  Oleg Endo  <olegendo@gcc.gnu.org>
14668         PR target/64661
14669         * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
14670         TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
14671         TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
14672         * config/sh/constraints.md (Ara, Add): New constraints.
14673         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
14674         predicates.
14675         (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
14676         atomic_mem_operand_0.  Don't use force_reg on the memory address.
14677         (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
14678         Sra constraint.  Convert to insn_and_split.  Add workaround for
14679         PR 64974.
14680         (atomic_compare_and_swap<mode>_hard): Copy to
14681         atomic_compare_and_swap<mode>_hard_1.  Convert to insn_and_split.
14682         Use atomic_mem_operand_0 predicate.
14683         (atomic_compare_and_swap<mode>_soft_gusa,
14684         atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
14685         AraAdd constraints.
14686         (atomic_compare_and_swap<mode>_soft_tcb,
14687         atomic_compare_and_swap<mode>_soft_imask,
14688         atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
14689         atomic_mem_operand_0 predicate and SraSdd constraints.
14690         (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
14691         constraint.
14692         (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
14693         Convert to insn_and_split.  Use atomic_mem_operand_0 predicate.
14694         (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
14695         atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1.  Don't use
14696         force_reg on the memory address.
14697         (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
14698         atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
14699         atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
14700         atomic_mem_operand_1 predicate and Sra constraint.
14701         (atomic_fetch_<fetchop_name><mode>_hard): Copy to
14702         atomic_fetch_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
14703         Use atomic_mem_operand_1 predicate.
14704         (atomic_<fetchop_name><mode>_hard): Copy to
14705         atomic_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
14706         Use atomic_mem_operand_1 predicate.
14707         (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
14708         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
14709         (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1.  Convert to
14710         insn_and_split.  Use atomic_mem_operand_1 predicate.
14711         (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
14712         atomic_<fetchop_name>_fetch<mode>_hard_1.  Convert to insn_and_split.
14713         Use atomic_mem_operand_1 predicate.
14714         (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
14715         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
14716         (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
14717         in generated insn with original mem operand before emitting the insn.
14718         (atomic_fetch_<fetchop_name><mode>_soft_gusa,
14719         atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
14720         atomic_<fetchop_name>_fetch<mode>_soft_gusa,
14721         atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
14722         Use atomic_mem_operand_1 predicate and AraAdd constraints.
14723         (atomic_fetch_<fetchop_name><mode>_soft_tcb,
14724         atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
14725         atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
14726         atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
14727         atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
14728         atomic_<fetchop_name>_fetch<mode>_soft_tcb,
14729         atomic_not_fetch<mode>_soft_tcb,
14730         atomic_<fetchop_name>_fetch<mode>_soft_imask,
14731         atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
14732         atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
14733         Use atomic_mem_operand_1 predicate and SraSdd constraints.
14735 2015-02-10  Uros Bizjak  <ubizjak@gmail.com>
14737         * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
14738         and 3 earlyclobber operands.
14740 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
14742         * common.opt (fstack-reuse): Mark as optimization.
14744 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
14746         PR ipa/64982
14747         * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
14749 2015-02-10  Trevor Saunders  <tsaunders@mozilla.com>
14751         PR tree-optimization/64326
14752         * cfghooks.c (make_forwarder_block): Cap frequency of created block.
14754 2015-02-10  Rainer Emrich  <rainer@emrich-ebersheim.de>
14756         PR gcov-profile/61889
14757         * gcov-tool.c: Remove wrong #if !defined(_WIN32)
14759 2015-02-10  Richard Biener  <rguenther@suse.de>
14761         PR tree-optimization/64995
14762         * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
14763         value we use is final.
14764         (visit_reference_op_store): Always valueize op.
14765         (visit_use): Properly valueize vuses.
14767 2015-02-10  Richard Biener  <rguenther@suse.de>
14769         PR tree-optimization/64909
14770         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
14771         pass a scalar-stmt count estimate to the cost model.
14772         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
14774 2015-02-10  Alexander Monakov  <amonakov@ispras.ru>
14776         * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
14777         enabled by default together with var-tracking.
14779 2015-02-10  Nick Clifton  <nickc@redhat.com>
14781         * config/rl78/rl78.c: Remove DIV attribute code accidentally
14782         included in previous rl78 commit.
14784 2015-02-10  Richard Biener  <rguenther@suse.de>
14786         * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
14787         * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
14788         return the bitpack.
14790 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
14792         PR gcov-profile/61889
14793         * config.in: regenerate.
14794         * configure.in: Likewise.
14795         * configure.ac: Check for ftw.h.
14796         * gcov-tool.c: Check for ftw.h before using nftw.
14798 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
14800         PR lto/64076
14801         * ipa-visibility.c (update_visibility_by_resolution_info): Only
14802         assert when not in lto mode.
14804 2015-02-09  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
14806         * ira-color.c (setup_left_conflict_sizes_p): Simplify
14807         initialization/assignment of conflict_size.
14809 2015-02-09  Jan Hubicka  <hubicka@ucw.cz>
14811         PR ipa/64978
14812         * ipa-cp.c (gather_caller_stats): Skip thunks.
14813         (propagate_constants_topo): Skip aliases.
14815 2015-02-09  Kaz Kojima  <kkojima@gcc.gnu.org>
14817         PR target/64761
14818         * config/sh/sh.c (sh_option_override): Don't change
14819         -freorder-blocks-and-partition to -freorder-blocks even when
14820         unwinding is enabled.
14821         (sh_can_follow_jump): Return false if the followee jump is
14822         a crossing jump when -freorder-blocks-and-partition is specified.
14823         * config/sh/sh.md (*jump_compact_crossing): New insn.
14825 2015-02-09  Joern Rennecke  <joern.rennecke@embecosm.com>
14826             Kaz Kojima  <kkojima@gcc.gnu.org>
14828         PR target/64761
14829         * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
14830         * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
14831         (sh_can_redirect_branch): Rename to ...
14832         (sh_can_follow_jump): ... this.  Constify argument types.
14833         * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
14834         * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
14835         * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
14836         * doc/tm.texi: Regenerate.
14838 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
14840         PR sanitizer/64981
14841         * builtins.c (expand_builtin): Call targetm.expand_builtin
14842         for BUILT_IN_MD builtins regardless of asan_intercepted_p.
14844 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
14846         PR ipa/61548
14847         * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
14849 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
14851         PR ipa/63566
14852         * ipa-icf.c (set_local): New function.
14853         (sem_function::merge): Use it.
14855 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
14857         * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
14858         (add_type_duplicate): Fix comparison of BINFOs.
14860 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
14862         * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
14863         on getting VOID pointer.
14865 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
14867         PR target/64979
14868         * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
14869         va_list escapes.
14871 2015-02-09  Richard Biener  <rguenther@suse.de>
14873         * genmatch.c (replace_id): Copy expr_type.
14875 2015-02-09  Richard Biener  <rguenther@suse.de>
14877         * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
14878         (streamer_write_tree_bitfields): Declare.
14879         * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
14880         properly unpack padding.
14881         (unpack_value_fields): Inline ...
14882         (streamer_read_tree_bitfields): ... here.
14883         * tree-streamer-out.c (pack_ts_base_value_fields): Inline
14884         and properly add padding bits.
14885         (streamer_pack_tree_bitfields): Fold into ...
14886         (streamer_write_tree_bitfields): ... this new function,
14887         exposing the bitpack object.
14888         * lto-streamer-out.c (lto_write_tree_1): Call
14889         streamer_write_tree_bitfields.
14891 2015-02-09  Richard Biener  <rguenther@suse.de>
14893         PR tree-optimization/54000
14894         * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
14895         (struct ivopts_data): Add loop_loc member.
14896         (tree_ssa_iv_optimize_loop): Dump loop location.
14897         (create_new_ivs): Likewise, also dump number of IVs generated.
14899 2015-02-09  Martin Liska  <mliska@suse.cz>
14901         * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
14902         just if not yet registered.
14903         (ipa_icf_generate_summary): Register callgraph hooks.
14905 2015-02-08  Andrew Pinski  <apinski@cavium.com>
14907         * config/aarch64/aarch64.c (gty_dummy): Delete.
14909 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
14911         PR ipa/63566
14912         * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
14913         (cgraph_node::local_p): Remove thunk related FIXME.
14915 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
14917         PR ipa/63566
14918         * i386.c (ix86_function_regparm): Look through aliases to see if callee
14919         is local and optimized.
14920         (ix86_function_sseregparm): Likewise; also use target's SSE math
14921         settings; error out instead of silently generating wrong code
14922         on mismatches.
14923         (init_cumulative_args): Look through aliases.
14925 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
14927         PR ipa/63566
14928         * ipa-split.c (execute_split_functions): Split if function has aliases.
14930 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
14932         PR ipa/63566
14933         * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
14934         aliases before trying to expand it.
14935         (cgraph_node::expand_thunk): Fix formating.
14937 2015-02-07  Sandra Loosemore  <sandra@codesourcery.com>
14939         * doc/extend.texi (Function Attributes [naked]): Copy-edit.
14940         (Using Assembly Language with C): Expand introduction.
14941         (Basic Asm): Copy-edit.  Add more information about uses of
14942         basic asm.
14943         (Extended Asm): Copy-edit.  Document new escape syntax and
14944         %l[label] syntax.
14945         (Global Reg Vars): Copy-edit.
14946         (Local Reg Vars): Likewise.
14948 2015-02-06  David Edelsohn  <dje.gcc@gmail.com>
14950         PR debug/2714
14951         PR bootstrap/64256
14952         * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
14953         (DBX_CONTIN_CHAR): Define.
14955 2015-02-06  Sebastian Pop  <s.pop@samsung.com>
14956             Brian Rzycki  <b.rzycki@samsung.com>
14958         PR tree-optimization/64878
14959         * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
14960         (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
14961         Stop recursion at loop phi nodes after having visited a loop phi node.
14963 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
14965         * toplev.c (process_options): Change flag_ipa_ra before creating
14966         optimization_{default,current}_node.
14968         PR ipa/64896
14969         * cgraphunit.c (cgraph_node::expand_thunk): If
14970         restype is not is_gimple_reg_type nor the thunk_fndecl
14971         returns aggregate_value_p, set restmp to a temporary variable
14972         instead of resdecl.
14974 2015-02-06  Vladimir Makarov  <vmakarov@redhat.com>
14976         * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
14978 2015-02-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
14980         PR target/64205
14981         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
14982         add a general secondary reload handler for SDmode, unless we have
14983         both read/write support for SDmode.
14985 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
14987         PR middle-end/64937
14988         * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
14989         Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
14990         or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
14991         1 before, push it to abstract_vec.
14992         (dwarf2out_abstract_function): Adjust caller.  Don't call
14993         set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
14994         DECL_ABSTRACT_P flags for all abstract_vec elts.
14996 2015-02-06  Renlin Li  <renlin.li@arm.com>
14998         * tree-ssa-forwprop.c (execute): Keep location info while rewrite
14999         complex gimple.
15000         * tree-ssa.c (execute_update_addresses_taken): Likewise.
15002 2015-02-06  Jeff Law  <law@redhat.com>
15004         PR target/64889
15005         * config/h8300/h8300.c (push): New argument "in_prologue".
15006         Pass "in_prologue" along to "F".
15007         (h8300_push_pop): Corresponding changes.
15008         (h8300_expand_prologue): Likewise.
15009         (h8300_swap_into_er6): Likewise.  Do not set RTX_FRAME_RELATED_P.
15011 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
15013         PR rtl-optimization/64957
15014         PR debug/64817
15015         * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
15016         IOR rather than for AND.
15018 2015-02-06  Eric Botcazou  <ebotcazou@adacore.com>
15020         PR target/62631
15021         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
15022         of shift-add and (add + shift) operations.  Rename local variable.
15024 2015-02-05  Jeff Law  <law@redhat.com>
15026         PR target/17306
15027         * config/h8300/constraints.md (U): Correctly dectect
15028         "eightbit_data" memory addresses.
15029         * config/h8300/h8300.c (eightbit_constant_address_p): Also
15030         handle (const (plus (symbol_ref (x)))) where x is declared
15031         as an 8-bit data memory address.
15032         * config/h8300/h8300.md (call, call_value): Correctly detect
15033         "funcvec" functions.
15035         PR target/43264
15036         * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
15037         24 to 28 bits for the H8/300.
15039 2015-02-06  Alan Modra  <amodra@gmail.com>
15041         PR target/64876
15042         * config/rs6000/rs6000.c (chain_already_loaded): New function.
15043         (rs6000_call_aix): Use it.
15045 2015-02-05  Jan Hubicka <hubicka@ucw.cz>
15047         * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
15048         check.
15050 2015-02-05  Joern Rennecke  <joern.rennecke@embecosm.com>
15052         * config/h8300/constraints.md ("U" constraint): Use strict
15053         variant of REG_OK_FOR_BASE_P after reload has started.
15055 2015-02-04  Mantas Mikaitis  <mantas.mikaitis@arm.com>
15057         * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
15058         define to zero if !TARGET_NEON.
15059         (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
15061 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
15062             Trevor Saunders  <tsaunders@mozilla.com>
15064         PR ipa/61548
15065         * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
15067 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
15069         PR ipa/61548
15070         * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
15071         when removing varpool nodes.
15073 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
15075         PR ipa/61548
15076         * varpool.c (varpool_node::remove): Fix order of variables.
15078 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
15080         PR ipa/64686
15081         * ipa-inline.c (inline_small_functions): Fix ordering issue between
15082         speculation resolution and key updates.
15084 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
15086         * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
15087         about not letting any speculative edges unupdated.
15089 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
15091         PR gcov/64123
15092         * gcov-io.c (gcov_var): Export.
15094 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
15096         PR middle-end/64922
15097         * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
15098         edges that become speculative.
15100 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
15102         * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
15103         or DW_LANG_Fortran08.
15104         (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
15105         DW_LANG_Fortran08.
15106         (gen_compile_unit_die): Handle "GNU Fortran2003" and
15107         "GNU Fortran2008" language strings.
15108         * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
15109         * langhooks.h (lang_GNU_Fortran): New prototype.
15110         * langhooks.c (lang_GNU_Fortran): New function.
15111         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
15112         lang_GNU_Fortran.
15114 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
15116         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
15117         (RTX_OK_FOR_OLO10_P): Likewise.
15119 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
15121         * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
15123 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
15125         PR middle-end/64922
15126         * gimple.c: Include gimple-ssa.h.
15127         (maybe_remove_unused_call_args): New function.
15128         * gimple.h (maybe_remove_unused_call_args): Declare.
15129         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
15130         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
15131         * gimple-fold.c (gimple_fold_call): Likewise.
15133 2015-02-04  H.J. Lu  <hongjiu.lu@intel.com>
15135         PR rtl-optimization/64905
15136         * lra-eliminations.c (setup_can_eliminate): Clear hard frame
15137         pointer alignment if it isn't needed.
15139 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
15141         * config/aarch64/aarch64-cores.def: Add cortex-a72 and
15142         cortex-a72.cortex-a53.
15143         * config/aarch64/aarch64-tune.md: Regenerate.
15144         * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
15146 2015-02-04  Nick Clifton  <nickc@redhat.com>
15148         * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
15149         inside a MEM.
15151 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
15153         * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
15154         (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
15155         (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
15156         of DEF_BUILTIN.
15157         (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
15158         BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
15159         DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
15160         (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
15161         BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
15162         BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
15163         DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
15164         * tree-core.h (enum built_in_function): In between
15165         BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
15166         for builtins that use DEF_BUILTIN_CHKP macro.
15168 2015-02-04  Alexandre Oliva <aoliva@redhat.com>
15170         PR debug/64817
15171         * cfgexpand.c (expand_debug_expr): Compute unsignedp from
15172         operands for tcc_comparison exprs.  Fix typos.
15174         PR debug/64817
15175         * simplify-rtx.c (simplify_binary_operation_1): Simplify one
15176         of two XORs that have an intervening AND or IOR.
15178         PR debug/64817
15179         * simplify-rtx.c (simplify_binary_operation_1): Rewrite
15180         simplification of XOR of AND to not allocate new rtx before
15181         committing to a simplification.
15183 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15185         * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
15186         manual swaps in all peepholes.
15188 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15190         * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
15191         of manual swapping implementation.
15192         (aarch64_expand_vec_perm_const_1): Likewise.
15194 2015-02-04  James Greenhalgh <james.greenhalgh@arm.com>
15196         * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
15197         (generic_addrcost_table): Remove NAMED_PARAM.
15198         (cortexa57_addrcost_table): Likewise.
15199         (xgene1_addrcost_table): Likewise.
15200         (generic_regmove_table): Likewise.
15201         (cortexa53_regmove_table): Likewise.
15202         (xgene1_regmove_table): Likewise.
15203         (generic_vector_table): Likewise.
15204         (cortexa57_vector_table): Likewise.
15205         (xgene1_vector_table): Likewise.
15206         (generic_tunings): Likewise.
15207         (cortexa53_tunings): Likewise.
15208         (cortexa57_tunings): Likewise.
15209         (xgene1_tunings): Likewise.
15211 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
15213         * config/arm/arm-cores.def: Add cortex-a72 and
15214         cortex-a72.cortex-a53.
15215         * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
15216         * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
15217         * config/arm/arm-tune.md: Regenerate.
15218         * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
15219         "cortex-a72.cortex-a53".
15220         * doc/invoke.texi (ARM Options/-mtune): Likewise.
15222 2015-02-04  Nick Clifton  <nickc@redhat.com>
15224         PR target/64408
15225         * config/fr30/predicates.md (di_operand): Add SUBREG to the list
15226         of accepted codes.
15227         (nonimmediate_di_operand): Likewise.
15229         * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
15230         prefixes of known F5 using MSP430 MCUs.
15232 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15234         * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
15235         * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
15236         instead of __builtin_sqrt.
15238 2015-02-04  Ilya Enkovich  <ilya.enkovich@intel.com>
15240         * varasm.c (do_assemble_alias): Follow transparent alias
15241         chain for target.
15242         (default_assemble_visibility): Follow transparent alias
15243         chain for decl name.
15245 2015-02-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
15247         PR middle-end/62103
15248         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
15249         to compute size of referenced value in the constant case.
15251 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
15253         PR rtl-optimization/64756
15254         * cse.c (invalidate_dest): New function.
15255         (cse_insn): Use it.  If dest != SET_DEST (sets[i].rtl) and
15256         HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
15257         invalidate and do not record it.
15259 2015-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
15261         PR target/64660
15262         * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
15263         atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
15264         atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
15265         atomic_nand<mode>_soft_tcb): New insns.
15266         (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
15267         Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
15268         (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
15269         Split into atomic_not_fetchsi_hard if operands[0] is unused.
15270         (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
15271         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
15272         (atomic_fetch_not<mode>_hard): Convert to insn_and_split.  Split into
15273         atomic_not<mode>_hard if operands[0] is unused.
15274         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
15275         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
15276         if operands[0] is unused.
15277         (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split.  Split
15278         into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
15279         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
15280         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
15281         unused.
15282         (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split.  Split
15283         into atomic_not<mode>_soft_tcb if operands[0] is unused.
15284         (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
15285         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
15286         if operands[0] is unused.
15287         (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split.  Split
15288         into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
15289         (atomic_fetch_nandsi_hard): Convert to insn_and_split.  Split into
15290         atomic_nand_fetchsi_hard if operands[0] is unused.
15291         (atomic_fetch_nand<mode>_hard): Convert to insn_and_split.  Split into
15292         atomic_nand<mode>_hard if operands[0] is unused.
15293         (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split.  Split
15294         into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
15295         (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split.  Split
15296         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
15297         (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split.  Split
15298         into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
15299         (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
15300         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
15301         (atomic_not_fetch<mode>_hard): Convert to insn_and_split.  Split into
15302         atomic_not<mode>_hard if operands[0] is unused.
15303         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
15304         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
15305         unused.
15306         (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
15307         into atomic_not<mode>_soft_tcb if operands[0] is unused.
15308         (atomic_nand_fetch<mode>_hard): Convert to insn_and_split.  Split into
15309         atomic_nand<mode>_hard if operands[0] is unused.
15310         (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
15311         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
15313 2015-02-03  David Malcolm  <dmalcolm@redhat.com>
15315         PR jit/64810
15316         * Makefile.in (GCC_OBJS): Add gcc-main.o.
15317         * gcc-main.c: New file, containing "main" taken from gcc.c.
15318         * gcc.c (do_self_spec): Free decoded_options.
15319         (class driver): Move declaration to gcc.h.
15320         (main): Move declaration and implementation to new file
15321         gcc-main.c.
15322         (driver_get_configure_time_options): New function.
15323         * gcc.h (class driver): Move this declaration here, from
15324         gcc.c.
15325         (driver_get_configure_time_options): New declaration.
15327 2015-02-03  Jan Hubicka  <hubicka@ucw.cz>
15329         * ipa-inline-analysis.c (simple_edge_hints): Fix check for
15330         cross-module inlining.
15331         * cgraph.h (cgraph_node): Add flag merged.
15332         * ipa-icf.c (sem_function::merge): Maintain it.
15334 2015-02-03  Richard Sandiford  <richard.sandiford@arm.com>
15336         * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
15337         instead of OBJECT_P.
15339 2015-02-03  Eric Botcazou  <ebotcazou@adacore.com>
15341         PR target/62631
15342         * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
15343         (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
15344         * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
15345         int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
15347 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
15349         PR other/63504
15350         * combine.c (reg_n_sets_max): New variable.
15351         (can_change_dest_mode, reg_nonzero_bits_for_combine,
15352         reg_num_sign_bit_copies_for_combine, get_last_value_validate,
15353         get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
15354         (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
15355         (rest_of_handle_combine): Initialize reg_n_sets_max.
15357 2015-02-02  Jan Hubicka  <hubicka@ucw.cz>
15359         * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
15360         if some always_inline was inlined, apply changes before inlining
15361         heuristically.
15363 2015-02-02  David Malcolm  <dmalcolm@redhat.com>
15365         PR jit/64810
15366         * config/arm/arm.c (arm_option_override): Set
15367         arm_selected_arch/cpu/tune to NULL on entry.
15369 2015-02-02  Tejas Belagod  <tejas.belagod@arm.com>
15370             Andrew Pinski  <pinskia@gcc.gnu.org>
15371             Jakub Jelinek  <jakub@gcc.gnu.org>
15373         PR target/64231
15374         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
15375         integer typing for small model. Use IN_RANGE.
15377 2015-02-02  Richard Biener  <rguenther@suse.de>
15379         * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
15380         * tree-vrp.c (vrp_valueize_1): Likewise.
15382 2015-02-02  Alan Modra  <amodra@gmail.com>
15384         * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
15385         than mem for toc_restore.
15386         * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
15387         (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
15388         (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
15390 2015-02-01  David Edelsohn  <dje.gcc@gmail.com>
15392         PR target/64047
15393         * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
15394         explicit default options.
15396 2015-02-01  Jan Hubicka  <hubicka@ucw.cz>
15398         PR ipa/64872
15399         * ipa-utils.c (ipa_merge_profiles): Add release argument.
15400         * ipa-icf.c (sem_function::merge): Do not release body when merging.
15401         * ipa-utils.h (ipa_merge_profiles): Update prototype.
15403 2015-02-01  Jakub Jelinek  <jakub@redhat.com>
15405         PR debug/64817
15406         * cfgexpand.c (deep_ter_debug_map): New variable.
15407         (avoid_deep_ter_for_debug): New function.
15408         (expand_debug_expr): If TERed SSA_NAME is in
15409         deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
15410         instead of trying to expand SSA_NAME's def stmt.
15411         (expand_debug_locations): When expanding debug bind
15412         of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
15413         temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
15414         value.
15415         (pass_expand::execute): Call avoid_deep_ter_for_debug on
15416         all debug bind stmts.  Delete deep_ter_debug_map after
15417         expand_debug_location if non-NULL and clear it.
15419 2015-02-01  Oleg Endo  <olegendo@gcc.gnu.org>
15421         PR target/64851
15422         * config/sh/sync.md (atomic_fetch_notsi_hard,
15423         atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
15424         atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
15425         atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
15426         atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
15427         atomic_not_fetch<mode>_soft_imask): New insns.
15429 2015-02-01  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
15431         * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
15432         (rank_for_schedule_debug): Split from ...
15433         (rank_for_schedule): ... this.
15434         (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
15435         * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
15437 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
15439         * doc/md.texi (Machine Constraints): Alphabetize table by target.
15440         * doc/extend.texi (x86 Variable Attributes): Move section to
15441         correct alphabetization after renaming.
15442         (x86 Type Attributes): Likewise.
15443         (Target Builtins): Re-alphabetize menu.
15444         (x86 Built-in Functions): Move section to correct alphabetization
15445         after renaming.
15446         (x86 transactional memory intrinsics): Likewise.
15447         * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
15448         and x86 Windows Options in table and menu.
15449         (x86 Options): Move section to correct alphabetization after
15450         renaming.
15451         (x86 Windows Options): Likewise.
15453 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
15455         * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
15456         preferred names of the architecture and its 32- and 64-bit
15457         variants.
15458         * doc/invoke.texi: Likewise.
15459         * doc/md.texi: Likewise.
15461 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
15463         PR target/64882
15464         * config/i386/predicates.md (address_no_seg_operand): Reject
15465         non-CONST_INT_P operands in invalid mode.
15467 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
15469         * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
15470         address_operand 0.  Rename from *prefetch_prefetchwt1_<mode>.
15471         * config/i386/predicates.md (address_no_seg_operand): Call
15472         address_operand with VOIDmode.
15473         (vsib_address_operand): Ditto.
15474         (address_mpx_no_base_operand): Ditto.
15475         (address_mpx_no_index_operand): Ditto.
15477 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
15479         PR target/64688
15480         * lra-constraints.c (original_subreg_reg_mode): New.
15481         (simplify_operand_subreg): Try to simplify subreg of const.  Use
15482         original_subreg_reg_mode for it.
15483         (swap_operands): Update original_subreg_reg_mode.
15484         (curr_insn_transform): Set up original_subreg_reg_mode.
15486 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
15488         PR target/64617
15489         * lra-constraints.c (prohibited_class_reg_set_mode_p): New
15490         function.
15491         (process_alt_operands): Use it.
15492         (curr_insn_transform): Check the optional reload pseudo class is
15493         ok for the mode.
15495 2015-01-30  Joseph Myers  <joseph@codesourcery.com>
15497         * diagnostic.c (fatal_error (const char *, ...)): Remove function.
15498         * diagnostic-core.h (fatal_error (const char *, ...)): Remove
15499         prototype.
15500         * toplev.h (init_asm_output): Update comment on use of
15501         UNKNOWN_LOCATION with fatal_error.
15502         * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
15503         config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
15504         config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
15505         config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
15506         config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
15507         config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
15508         config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
15509         ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
15510         lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
15511         lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
15512         tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
15513         fatal_error changed to pass input_location as first argument.
15515 2015-01-30  Martin Liska  <mliska@suse.cz>
15517         * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
15518         in #pragma GCC diagnostic guards.
15520 2015-01-30  Richard Biener  <rguenther@suse.de>
15522         PR tree-optimization/64829
15523         * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
15524         not add a widening conversion pattern but hand off extra
15525         widenings to callers.
15526         (vect_recog_widen_mult_pattern): Handle extra widening produced
15527         by vect_handle_widen_op_by_const.
15528         (vect_recog_widen_shift_pattern): Likewise.
15529         (vect_pattern_recog_1): Remove excess vertical space in dumping.
15530         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
15531         (vect_init_vector_1): Likewise.
15532         (vect_get_vec_def_for_operand): Likewise.
15533         (vect_finish_stmt_generation): Likewise.
15534         (vectorizable_load): Likewise.
15535         (vect_analyze_stmt): Likewise.
15536         (vect_is_simple_use): Likewise.
15538 2015-01-29  Jeff Law  <law@redhat.com>
15540         * combine.c (try_combine): Fix typo in comment.
15542 2015-01-29  Segher Boessenkool  <segher@kernel.crashing.org>
15544         PR target/64580
15545         * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
15546         (rs6000_stack_info): Add assert.
15547         (rs6000_output_savres_externs): New function, split off from...
15548         (rs6000_output_function_prologue): ... here.  Do not call it for
15549         thunks.
15551 2015-01-29  Jeff Law  <law@redhat.com>
15553         PR target/15184
15554         * combine.c (try_combine): If I0 is a memory load and I3 a store
15555         to a related address, increase the "goodness" of doing a 4-insn
15556         combination with I0-I3.
15557         (make_field_assignment): Handle SUBREGs in the ior+and case.
15559 2015-01-29  Yuri Rumyantsev  <ysrumyan@gmail.com>
15561         PR tree-optimization/64746
15562         * tree-if-conv.c (mask_exists): New function.
15563         (predicate_mem_writes): Save created mask with given size for further
15564         use.
15565         (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
15566         (ifcvt_repair_bool_pattern): Collect all statements that are root
15567         of bool pattern and use iterative algorithm to remove multiple uses
15568         of predicates, display number of required iterations.
15570 2015-01-29  Richard Biener  <rguenther@suse.de>
15572         PR tree-optimization/64853
15573         * tree-vrp.c (vrp_valueize_1): Do not return anything if the
15574         stmt will get simulated again.
15575         * tree-ssa-ccp.c (valueize_op_1): Likewise.
15577 2015-01-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15579         * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
15580         return_in_pc.  Remove redundant assignments.
15581         (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
15582         (arm_expand_epilogue): Don't compare boolean with true in if condition.
15584 2015-01-29  Uros Bizjak  <ubizjak@gmail.com>
15586         * config/i386/i386.c (ix86_mode_after): Make static.
15588 2015-01-29  Richard Biener  <rguenther@suse.de>
15590         PR tree-optimization/64844
15591         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
15592         dump cost model analysis.
15593         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
15594         Do not register adjusted load/store costs here.
15596 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
15597             Uros Bizjak  <ubizjak@gmail.com>
15599         * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
15600         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
15601         using x86_use_pseudo_pic_reg.
15602         * config/i386/i386.c (ix86_conditional_register_usage): Remove
15603         support for fixed PIC register.
15604         (ix86_use_pseudo_pic_reg): Not static any more.
15606 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
15608         PR middle-end/64805
15609         * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
15610         to avoid error in cgraph node verification.
15612 2015-01-29  Marek Polacek  <polacek@redhat.com>
15614         * doc/standards.texi: Reflect that the default for C is gnu11.
15616 2015-01-29  Kaz Kojima  <kkojima@gcc.gnu.org>
15618         PR target/64761
15619         * reorg.c (switch_text_sections_between_p): New function.
15620         (relax_delay_slots): Call it when testing if the jump insn
15621         is removable.  Use targetm.can_follow_jump when testing if
15622         the conditional branch can follow an unconditional jump.
15624 2015-01-27  Caroline Tice  <cmtice@google.com>
15626         Committing VTV Cywin/Ming patch for Patrick Wollgast
15627         * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
15628         if -fvtable-verify=preinit/std is used.
15629         * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
15630         * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
15631         * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
15632         if -fvtable-verify=preinit/std is used.
15633         * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
15634         * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
15635         if -fvtable-verify=preinit/std is used.
15636         * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
15637         * config/i386/mingw32.h (LIB_SPEC): Likewise.
15638         * varasm.c (assemble_variable): Add code to properly set the comdat
15639         section and name for the .vtable_map_vars section in case the
15640         target is PE or COFF.
15642 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
15644         PR ipa/64801
15645         * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
15646         make sane BB profile.
15647         (cgraph_node::expand_thunk): Make sane BB profile.
15648         (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
15649         * cgraph.h (init_lowered_empty_function): Update prototype.
15650         * config/i386/i386.c (make_resolver_func): Update call.
15651         * predict.c (gate): Disable branch prediction pass if
15652         profile is already there.
15654 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
15656         * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
15657         * opth-gen.awk: Likewise.
15658         * common.opt: Mark flag_fp_contract_mode as Optimization.
15660 2015-01-29  Bernd Edlinger  <bernd.edlinger@hotmail.de>
15662         * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
15663         * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
15665 2015-01-28  Oleg Endo  <olegendo@gcc.gnu.org>
15667         PR target/64659
15668         * config/sh/predicates.md (atomic_arith_operand,
15669         atomic_logical_operand): Remove.
15670         * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
15671         (atomic_arith_operand_0): New predicate.
15672         (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
15673         Use atomic_arith_operand_0 for input values.
15674         (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
15675         atomic_compare_and_swap<mode>_soft_gusa,
15676         atomic_compare_and_swap<mode>_soft_tcb,
15677         atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
15678         arith_reg_operand instead of register_operand.
15679         (atomic_exchange<mode>): Use arith_reg_dest for output value.  Use
15680         atomic_arith_operand_0 for newval input.
15681         (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
15682         atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
15683         atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
15684         arith_reg_operand instead of register_operand.
15685         (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
15686         fetchop_predicate_1, fetchop_constraint_1_llcs,
15687         fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
15688         fetchop_constraint_1_imask): New code iterator attributes.
15689         (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
15690         register_operand.  Use fetchop_predicate_1.
15691         (atomic_fetch_<fetchop_name>si_hard,
15692         atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
15693         register_operand.  Use fetchop_predicate_1, fetchop_constraint_1_llcs.
15694         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
15695         and arith_reg_operand instead of register_operand.  Use
15696         fetchop_predicate_1, fetchop_constraint_1_gusa.
15697         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
15698         and arith_reg_operand instead of register_operand.  Use
15699         fetchop_predicate_1, fetchop_constraint_1_tcb.  Adjust asm sequence
15700         to allow R0 usage.
15701         (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
15702         and arith_reg_operand instead of register_operand.  Use
15703         fetchop_predicate_1, fetchop_constraint_1_imask.  Adjust asm sequence
15704         to allow R0 usage.
15705         (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
15706         register_operand.  Use atomic_logical_operand_1.
15707         (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
15708         atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
15709         arith_reg_operand instead of register_operand.
15710         (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
15711         Use arith_reg_dest and arith_reg_operand instead of register_operand.
15712         Use logical_operand and rK08.  Adjust asm sequence to allow R0 usage.
15713         (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
15714         register_operand.  Use fetchop_predicate_1.
15715         (atomic_<fetchop_name>_fetchsi_hard,
15716         atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
15717         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
15718         fetchop_constraint_1_llcs.
15719         (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
15720         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
15721         fetchop_constraint_1_gusa.
15722         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
15723         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
15724         fetchop_constraint_1_tcb.  Adjust asm sequence to allow R0 usage.
15725         (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
15726         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
15727         fetchop_constraint_1_imask.  Adjust asm sequence to allow R0 usage.
15728         (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
15729         register_operand.  Use atomic_logical_operand_1.
15730         (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
15731         atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
15732         arith_reg_operand instead of register_operand.
15733         (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
15734         arith_reg_operand instead of register_operand.  Use logical_operand
15735         and K08.  Adjust asm sequence to allow R0 usage.
15736         (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
15737         arith_reg_operand instead of register_operand.  Use logical_operand
15738         and K08.
15740 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
15742         PR other/63504
15743         * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
15744         Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
15745         (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
15746         only get_full_len HOST_WIDE_INTs from get_val () array rather than
15747         all bits in *val_wide.
15749 2015-01-28  Jan Hubicka  <hubicka@ucw.cz>
15751         * varpool.c (tls_model_names): Fix names.
15752         (varpool_node::dump): Dump tls- prefix for tls models.
15754 2015-01-28  Thomas Schwinge  <thomas@codesourcery.com>
15755             Bernd Schmidt  <bernds@codesourcery.com>
15756             Nathan Sidwell  <nathan@codesourcery.com>
15758         * config/nvptx/mkoffload.c: New file.
15759         * config/nvptx/t-nvptx: Add build rules for it.
15760         * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
15761         (extra_programs): Add mkoffload.
15762         * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
15763         function.
15764         (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
15766 2015-01-28  Yuri Rumyantsev  <ysrumyan@gmail.com>
15768         PR middle-end/64809
15769         * cfgexpand.c (reorder_operands): Skip debug gimples.
15771 2015-01-28  Ilya Enkovich  <ilya.enkovich@intel.com>
15773         PR tree-optimization/64277
15774         * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
15775         range info when possible to refine estimation.
15777 2015-01-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
15779         PR tree-optimization/64718
15780         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
15781         be a 16bit unsigned integer when n->range is 16.
15782         (bswap_replace): Convert src to that type if necessary for all bswap
15783         sizes.  Fix rotation right notation in nearby comment.  Use bswap_type
15784         set in pass_optimize_bswap::execute ().
15786 2015-01-28  James Greenhalgh  <james.greenhalgh@arm.com>
15788         * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
15789         * config/aarch64/aarch64-simd-builtins.def (abs): Split by
15790         integer and floating point variants.
15791         * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
15793 2015-01-28  Robert Suchanek  <robert.suchanek@imgtec.com>
15795         * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
15796         for all vector modes.
15798 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
15800         PR bootstrap/64612
15801         * doc/sourcebuild.texi (comdat_group): Document.
15803 2015-01-28  Terry Guo  <terry.guo@arm.com>
15805         * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
15807 2015-01-27  David Malcolm  <dmalcolm@redhat.com>
15809         * toplev.c (print_version): Add param "show_global_state", and
15810         only print GGC and plugin information if it is true.
15811         (init_asm_output): Pass in "true" for the new param when calling
15812         print_version.
15813         (process_options): Likewise.
15814         (toplev::main): Likewise.
15815         * toplev.h (print_version): Add new param to decl.
15817 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
15819         PR ipa/60871
15820         PR ipa/64139
15821         * tree.c (lookup_binfo_at_offset): New function.
15822         (get_binfo_at_offset): Use it.
15824 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
15826         PR ipa/64282
15827         * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
15828         on vtable being vtable.
15830 2015-01-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
15832         * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
15833         * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
15834         -mhotpatch= option.
15835         * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
15836         -mno-hotpatch options.  Change syntax of -mhotpatch= option.
15837         * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
15838         Renamed.
15839         (s390_hotpatch_trampoline_halfwords_max): Renamed.
15840         (s390_hotpatch_hw_max): New name.
15841         (s390_hotpatch_trampoline_halfwords): Renamed.
15842         (s390_hotpatch_hw_before_label): New name.
15843         (get_hotpatch_attribute): Removed.
15844         (s390_hotpatch_hw_after_label): New name.
15845         (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
15846         attribute.
15847         (s390_attribute_table): Ditto.
15848         (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
15849         (s390_function_num_hotpatch_hw): New name.
15850         Remove special handling of inline functions and hotpatching.
15851         Return number of nops before and after the function label.
15852         (s390_can_inline_p): Removed.
15853         (s390_asm_output_function_label): Emit a configurable number of nops
15854         after the function label.
15855         (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
15856         (TARGET_CAN_INLINE_P) Removed.
15857         (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
15859 2015-01-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
15860             Jiong Wang  <jiong.wang@arm.com>
15862         * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
15863         of scratch reg.
15864         (cb<optab><mode>1): Likewise.
15865         * config/aarch64/iterators.md (bcond): New define_code_attr.
15867 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15869         * config/s390/s390.c (s390_memory_move_cost): Increase costs for
15870         memory accesses.
15872 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15874         * config/s390/s390.c (s390_register_move_cost): Increase costs for
15875         FPR->GPR moves.
15877 2015-01-27  Richard Biener  <rguenther@suse.de>
15879         * tree-vrp.c (update_value_range): Intersect the range with
15880         old recorded SSA name range information.
15882 2015-01-27  Nick Clifton  <nickc@redhat.com>
15884         * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
15885         BC, DE and HL registers directly, not via AX.
15886         When decrementing the stack pointer by a large amount, transfer SP
15887         into AX and perform the subtraction there.
15888         (rl78_expand_epilogue): Perform the inverse of the above
15889         enhancements.
15891 2015-01-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15893         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
15895 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
15896             Yury Gribov  <y.gribov@samsung.com>
15898         PR ubsan/64741
15899         * ubsan.c (ubsan_source_location): Refactor code.
15900         (ubsan_type_descriptor): Update type size. Refactor code.
15902 2015-01-27  Richard Biener  <rguenther@suse.de>
15904         PR tree-optimization/56273
15905         PR tree-optimization/59124
15906         PR tree-optimization/64277
15907         * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
15908         from the first VRP pass.
15910 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
15912         PR ipa/64776
15913         * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
15914         handle the first argument in the same loop as all the other arguments.
15916         PR rtl-optimization/61058
15917         * jump.c (cleanup_barriers): Update basic block boundaries
15918         if BLOCK_FOR_INSN is non-NULL on PREV.
15920 2015-01-27  Ilya Enkovich  <ilya.enkovich@intel.com>
15922         * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
15923         bounds narrowing, already instrumented calls and calls to
15924         not instrumentable functions.
15926 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
15928         PR tree-optimization/64807
15929         * wide-int.cc (wi::divmod_internal): Clear
15930         b_dividend[dividend_blocks_needed].
15932 2015-01-26  DJ Delorie  <dj@redhat.com>
15934         * config/rl78/rl78.c (move_elim_pass): Don't optimize away
15935         volatile memory references.
15937 2015-01-26  Oleg Endo  <olegendo@gcc.gnu.org>
15939         PR target/49263
15940         * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
15941         remove_insn.
15942         * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
15943         shifts if it already fits into K08.
15945 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
15947         PR ipa/64730
15948         * ipa-inline.c (inline_small_functions): Print "unknown" even
15949         if edge->call_stmt is non-NULL, but has builtins or unknown
15950         location.
15952         PR middle-end/64421
15953         * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
15954         with asterisk, skip the first character.
15956 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
15958         PR target/64806
15959         * config/i386/i386 (feature_priority): Revert the last P_POPCNT
15960         order change.
15962 2015-01-26  Uros Bizjak  <ubizjak@gmail.com>
15964         PR target/64795
15965         * config/i386/i386.md (*movdi_internal): Also check operand 0
15966         to determine TYPE_LEA operand.
15967         (*movsi_internal): Ditto.
15969 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
15971         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
15972         OPTION_MASK_QUAD_MEMORY_ATOMIC.
15974 2015-01-26  Renlin Li  <renlin.li@arm.com>
15976         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
15977         the comment.
15978         * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
15979         for higher part.
15981 2015-01-26  Richard Biener  <rguenther@suse.de>
15983         PR middle-end/64764
15984         * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
15985         combining two BIT_AND_EXPR predicates.
15987 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
15989         PR bootstrap/64754
15990         * tree-ssa-structalias.c (new_var_info): Initialize ruid.
15992 2015-01-26  Terry Guo  <terry.guo@arm.com>
15994         * config/arm/arm.c (arm_file_start): Update the assignment of
15995         Tag_ABI_HardFP_use.
15997 2015-01-25  James Greenhalgh  <james.greenhalgh@arm.com>
15999         * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
16000         pipeline model.
16001         config/arm/arm.md: Include the new Cortex-A57 model.
16002         (generic_sched): Don't use generic_sched when tuning for
16003         Cortex-A57.
16005 2015-01-25  Allan Sandfeld Jensen  <sandfeld@kde.org>
16006             Uros Bizjak  <ubizjak@gmail.com>
16008         * config/i386/i386.c (get_builtin_code_for_version): Add
16009         support for BMI and BMI2 multiversion functions.
16011 2015-01-25  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
16013         * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
16014         (extract_bit_field): Likewise.
16015         (extract_low_bits): Likewise.
16016         (expand_mult): Likewise.
16017         (expand_mult_highpart_adjust): Likewise.
16019 2015-01-24  H.J. Lu  <hongjiu.lu@intel.com>
16021         * config/i386/driver-i386.c (host_detect_local_cpu): Check new
16022         Silvermont, Haswell, Broadwell and Knights Landing model numbers.
16023         * config/i386/i386.c (processor_model): Add
16024         M_INTEL_COREI7_BROADWELL.
16025         (arch_names_table): Add "broadwell".
16027 2015-01-24  Oleg Endo  <olegendo@gcc.gnu.org>
16029         PR target/49263
16030         PR target/53987
16031         PR target/64345
16032         PR target/59533
16033         PR target/52933
16034         PR target/54236
16035         PR target/51244
16036         * config/sh/sh-protos.h
16037         (sh_extending_set_of_reg::can_use_as_unextended_reg,
16038         sh_extending_set_of_reg::use_as_unextended_reg,
16039         sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
16040         sh_is_movrt_insn, sh_insn_operands_modified_between_p,
16041         sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
16042         sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
16043         (sh_treg_insns): New class.
16044         * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
16045         (scope_counter): New class.
16046         (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
16047         sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
16048         sh_extending_set_of_reg::can_use_as_unextended_reg,
16049         sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
16050         sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
16051         sh_split_treg_set_expr): New functions.
16052         (addsubcosts): Handle treg_set_expr.
16053         (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
16054         (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
16055         (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
16056         (sh_insn_operands_modified_between_p): Make non-static.
16057         * config/sh/predicates.md (zero_extend_movu_operand): Allow
16058         simple_mem_operand in addition to displacement_mem_operand.
16059         (zero_extend_operand): Don't allow zero_extend_movu_operand.
16060         (treg_set_expr, treg_set_expr_not_const01,
16061         arith_reg_or_treg_set_expr): New predicates.
16062         * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
16063         arith_or_int_operand instead of logical_operand.  Convert to
16064         insn_and_split.  Try to optimize constant operand in splitter.
16065         (tsthi_t, tstqi_t): Fold into *tst<mode>_t.  Convert to insn_and_split.
16066         (*tstqi_t_zero): Delete.
16067         (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
16068         (tstsi_t_and_not): Delete.
16069         (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
16070         Convert to insn_and_split.
16071         (unnamed split, tstsi_t_zero_extract_xor,
16072         tstsi_t_zero_extract_subreg_xor_little,
16073         tstsi_t_zero_extract_subreg_xor_big): Delete.
16074         (*tstsi_t_shift_mask): New insn_and_split.
16075         (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
16076         to recombine with surrounding insns when splitting.
16077         (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
16078         (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
16079         (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
16080         *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
16081         (*cbranch_div0s: Delete.
16082         (*addc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
16083         Try to recombine with surrounding insns when splitting.  Add operand
16084         order variants.
16085         (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
16086         (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
16087         *addc_r_r_msb, *addc_2r_msb): Delete.
16088         (*addc_2r_lsb): Rename to *addc_2r_t.  Use treg_set_expr.  Add operand
16089         order variant.
16090         (*addc_negreg_t): New insn_and_split.
16091         (*subc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
16092         Try to recombine with surrounding insns when splitting.
16093         Add operand order variants.
16094         (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
16095         insn_and_split patterns.
16096         (*rotcr): Use arith_reg_or_treg_set_expr.  Try to recombine with
16097         surrounding insns when splitting.
16098         (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
16099         (*rotcl): Likewise.  Add zero_extract variant.
16100         (*ashrsi2_31): New insn_and_split.
16101         (*negc): Convert to insn_and_split.  Use treg_set_expr.
16102         (*zero_extend<mode>si2_disp_mem): Update comment.
16103         (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
16104         condition.
16105         (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr.  Try to recombine
16106         with surrounding insns when splitting.
16107         (any_treg_expr_to_reg): New insn_and_split.
16108         (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
16109         *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
16110         *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
16111         *zero_extract_2): New single bit zero extract patterns.
16112         (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
16113         (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
16114         *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
16115         *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
16116         set destination.
16117         (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
16118         register_operand for set source.
16120 2015-01-23  Jan Hubicka  <hubicka@ucw.cz>
16122         * i386.opt (prefetch_sse): New targetsave.
16123         * i386.c (ix86_function_specific_save): Save prefetch_sse.
16124         (ix86_function_specific_restore): Restore prefetch_sse and initialize
16125         ix86_cost/ix86_tune_cost.
16127 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
16129         * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
16130         Support the JIT by using 0 as the language type.
16132 2015-01-23  Vladimir Makarov  <vmakarov@redhat.com>
16134         PR target/64317
16135         * lra-lives.c (make_hard_regno_born): Add parameter.  Don't make
16136         REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
16137         (mark_regno_live, process_bb_lives): Pass new parameter value to
16138         make_hard_regno_born.
16140 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
16142         PR rtl-optimization/63637
16143         PR rtl-optimization/60663
16144         * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
16145         if elt->cost is MAX_COST for ASM_OPERANDS.
16146         (find_sets_in_insn): Fix up comment typo.
16147         (cse_insn): Don't set src_volatile for all non-volatile
16148         ASM_OPERANDS in PARALLELs, but just those with multiple outputs
16149         or with "memory" clobber.  Set elt->cost to MAX_COST
16150         for ASM_OPERANDS in PARALLEL.  Set src_elt->cost to MAX_COST
16151         if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
16153 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
16155         * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
16156         alternative 1.
16158 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
16160         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
16161         libgcc/config/i386/elf-lib.h.
16163 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
16165         PR driver/64737
16166         * gcc.c (print_configuration): Don't print a blank line at the end
16167         here...
16168         (run_attempt): ... but here unstead.
16170         PR middle-end/64734
16171         * omp-low.c (scan_sharing_clauses): Don't ignore
16172         OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
16173         on target data/update constructs.
16175 2015-01-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
16177         PR target/50928
16178         * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
16179         (DEBUG_RELOAD): Removed define.
16180         (m32c_limit_reload_class): Enable traces with if DEBUG0.
16181         (m32c_function_arg): Added a type cast.
16182         (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
16183         * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
16184         * config/m32c/bitops.md (andqi3_16): Likewise.
16185         * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
16186         (push_a01_l): Likewise.
16188 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
16190         PR jit/64721
16191         * main.c (main): Construct toplev instances with init_signals=true.
16192         * toplev.c (general_init): Add param "init_signals", and use it to
16193         conditionalize the calls to signal and host_hooks.extra_signals.
16194         (toplev::toplev): Add param "init_signals".
16195         (toplev::main): When invoking general_init, pass m_init_signals
16196         to control whether signal-handlers are installed.
16197         * toplev.h (toplev::toplev): Add param "init_signals".
16198         (toplev::m_init_signals): New field.
16200 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
16202         PR jit/64722
16203         * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
16204         NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
16205         latter may be affected by the former (e.g. on i686).
16207 2015-01-23  Martin Liska  <mliska@suse.cz>
16209         * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
16210         false positive during profiledbootstrap.
16212 2015-01-23  Tom de Vries  <tom@codesourcery.com>
16214         PR libgomp/64672
16215         * lto-opts.c (lto_write_options): Output non-explicit conservative
16216         -fno-openacc.
16217         * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
16218         (append_compiler_options): Pass -fopenacc through.
16220 2015-01-23  Tom de Vries  <tom@codesourcery.com>
16222         PR libgomp/64707
16223         * lto-opts.c (lto_write_options): Output non-explicit conservative
16224         -fno-openmp.
16225         * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
16226         (append_compiler_options): Pass -fopenmp through.
16228 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
16230         PR debug/64511
16231         * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
16232         GTY markup.
16234         * diagnostic-core.h (internal_error_no_backtrace): New prototype.
16235         * diagnostic.def (DK_ICE_NOBT): New kind.
16236         * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
16237         like DK_ICE, but never print backtrace.
16238         (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
16239         (internal_error_no_backtrace): New function.
16240         * gcc.c (execute): Use internal_error_no_backtrace instead of
16241         internal_error.
16243 2015-01-22  Jeff Law  <law@redhat.com>
16245         PR target/52076
16246         * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
16247         improve code density for small immediate to memory case.
16248         (insv): Better handle bitfield assignments when the field is
16249         being set to all ones.
16250         * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
16251         operand predicate.
16253 2015-01-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16254             Jakub Jelinek  <jakub@redhat.com>
16256         PR middle-end/64729
16257         * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
16258         for !TARGET_LIBC_PROVIDES_SSP version and
16259         -fstack-protector-{all,strong,explicit} otherwise.
16260         * config/freebsd.h (LINK_SSP_SPEC): Handle
16261         -fstack-protector-{strong,explicit}.
16263 2015-01-22  Jan Hubicka  <hubicka@ucw.cz>
16264             H.J. Lu  <hongjiu.lu@intel.com>
16266         PR ipa/64694
16267         * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
16268         heap.
16270 2015-01-22  Wei Mi  <wmi@google.com>
16272         PR rtl-optimization/64557
16273         * dse.c (record_store): Call get_addr for mem_addr.
16274         (check_mem_read_rtx): Likewise.
16276 2015-01-22  Eric Botcazou  <ebotcazou@adacore.com>
16278         * fold-const.c (const_binop): Add early return for non-tcc_binary.
16280 2015-01-22  Chen Gang  <gang.chen.5i5j@gmail.com>
16282         * toplev.c (init_local_tick): Process the failure when read
16283         fails for random_seed.
16285         * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
16286         'pretty_name' to avoid memory overflow.
16288 2015-01-22  Richard Biener  <rguenther@suse.de>
16290         PR middle-end/64728
16291         * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
16292         abnormal coalescing on undefined SSA names.
16294 2015-22-01  Uros Bizjak  <ubizjak@gmail.com>
16296         PR target/64688
16297         PR target/64477
16298         * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
16299         for alternative 3.
16300         (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
16302 2015-01-22  Trevor Saunders  <tsaunders@mozilla.com>
16304         PR middle-end/63325
16305         * fold-const.c (fold_checksum_tree): Don't include value of
16306         expr->decl_with_vis.symtab_node in the checksum.
16308 2015-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16310         * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
16312 2015-01-22  Max Ostapenko  <m.ostapenko@partner.samsung.com>
16314         PR driver/64690
16315         * gcc.c (insert_comments): New function.
16316         (try_generate_repro): Call it.
16317         (append_text): Removed.
16319 2015-01-22  Richard Biener  <rguenther@suse.de>
16321         * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
16322         with IL incompatible options.  Properly honor user optimize
16323         attributes.
16325 2015-01-21  Segher Boessenkool  <segher@kernel.crashing.org>
16327         PR rtl-optimization/64682
16328         * combine.c (distribute_notes): When moving a death note for
16329         a register that is set in the new I2, make sure to put it
16330         before that new I2.
16332 2015-01-21  David Edelsohn  <dje.gcc@gmail.com>
16334         * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
16335         not TARGET_DEFAULT.
16337 2015-01-21  Jakub Jelinek  <jakub@redhat.com>
16339         PR debug/64511
16340         * simplify-rtx.c (simplify_relational_operation_1): Don't try to
16341         optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
16342         into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
16344         PR sanitizer/64706
16345         * doc/invoke.texi (-fsanitize=vptr): Document.
16347         PR rtl-optimization/62078
16348         * dse.c: Include cfgcleanup.h.
16349         (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
16350         anything call purge_all_dead_edges and cleanup_cfg at the end
16351         of the pass.
16353 2015-01-21  Jan Hubicka  <hubicka@ucw.cz>
16355         * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
16356         edges.
16358 2015-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
16360         * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
16361         decl attribute.
16363 2015-01-21  David Sherwood  <david.sherwood@arm.com>
16364             Tejas Belagod <Tejas.Belagod@arm.com>
16366         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
16367         * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
16368         * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
16369         Removed.
16371 2015-01-21  David Sherwood  <david.sherwood@arm.com>
16372             Tejas Belagod <Tejas.Belagod@arm.com>
16374         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
16375         (aarch64_reverse_mask): New decls.
16376         * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
16377         (insn_count): New mode_attr.
16378         * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
16379         (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
16380         (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
16381         (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
16382         (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
16383         (aarch64_simd_st4): New patterns.
16384         * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
16385         (aarch64_reverse_mask): New functions.
16387 2015-01-21  Richard Sandiford  <richard.sandiford@arm.com>
16389         * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
16390         Declare.
16391         * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
16392         addressing modes for BE.
16393         (aarch64_print_operand): Add 'R' specifier.
16394         (aarch64_simd_disambiguate_copy): Delete.
16395         (aarch64_simd_emit_reg_reg_move): New function.
16396         * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
16397         in define_splits for structural moves.
16398         (mov<mode>): Use less restrictive predicates.
16399         (*aarch64_mov<mode>): Simplify and only allow for LE.
16400         (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
16402 2015-01-21  Alan Hayward  <alan.hayward@arm.com>
16404         * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
16406 2015-01-21  Richard Henderson  <rth@redhat.com>
16408         PR target/64669
16409         * ccmp.c (used_in_cond_stmt_p): Remove.
16410         (expand_ccmp_expr): Don't use it.
16412 2015-01-21  Nick Clifton  <nickc@redhat.com>
16414         * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
16415         PARALLELs.
16417 2015-01-21  Richard Biener  <rguenther@suse.de>
16419         PR middle-end/64313
16420         * tree-core.h (builtin_info, builtin_info_type): Turn from
16421         an object with two arrays into an array of an object with
16422         decl and two flags, implicit_p and declared_p.
16423         * tree.h (builtin_decl_explicit, builtin_decl_implicit,
16424         set_builtin_decl, set_builtin_decl_implicit_p,
16425         builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
16426         (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
16427         * builtins.c (builtin_info): Adjust.
16428         * gimplify.c (gimplify_addr_expr): References to builtins
16429         that have been declared by the user makes them eligible for
16430         use by the compiler.  Call set_builtin_decl_implicit_p on them.
16432 2015-01-20  Jeff Law  <law@redhat.com>
16434         PR target/59946
16435         * config/m68k/m68k.md (Comparison expanders and patterns): Do not
16436         allow pc-relative addresses in operand predicates or constraints.
16438 2015-01-21  Bin Cheng  <bin.cheng@arm.com>
16440         * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
16441         neon on aarch32 processors for stringops.
16443 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
16445         PR ipa/63576
16446         * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
16448 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
16450         PR lto/45375
16451         * ipa-inline.c: Include lto-streamer.h
16452         (report_inline_failed_reason): Output source file differences and
16453         flags on optimization/target node mismatch.
16454         (can_inline_edge_p): Consider caller to be the outer inline function;
16455         be less restrictive about matching opimize and optimize_size attributes.
16456         (inline_account_function_p): Break out from ...
16457         (inline_small_functions): ... here.
16458         * ipa-inline-transform.c (clone_inlined_nodes): Use
16459         inline_account_function_p.
16460         (inline_call): Use optimize attribution; use inline_account_function_p.
16461         (inline_transform): Use opt_for_fn.
16462         * ipa-inline.h (inline_account_function_p): Declare.
16464 2015-01-20  Jakub Jelinek  <jakub@redhat.com>
16466         PR debug/64663
16467         * dwarf2out.c (decl_piece_node): Don't put bitsize into
16468         mode if bitsize <= 0.
16469         (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
16470         dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
16471         sizes and positions.
16473 2015-01-20  Chung-Lin Tang  <cltang@codesourcery.com>
16475         * config/nios2/nios2.c (nios2_asm_file_end): Implement
16476         TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
16477         needed.
16478         (TARGET_ASM_FILE_END): Define.
16480 2015-01-20  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
16482         * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
16483         (struct tune_params): Use the enum.
16484         * arm.c (arm_*_tune): Update.
16485         (arm_option_override): Update.
16487 2015-01-20  Richard Biener  <rguenther@suse.de>
16489         PR ipa/64684
16490         * ipa-reference.c (add_static_var): Inline ...
16491         (analyze_function): ... here after splitting out from ...
16492         (is_proper_for_analysis): ... this.
16494 2015-01-20  Matthew Wahab  <matthew.wahab@arm.com>
16496         PR target/64149
16497         * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
16498         * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
16499         replace the conditional with it's true branch.
16500         * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
16501         (arm_lra_p): Remove.
16503 2015-01-20  Eric Botcazou  <ebotcazou@adacore.com>
16505         * config/visium/visium.h (LIB_SPEC): Adjust in default case.
16507 2015-01-20  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
16509         * config/tilegx/mul-tables.c: Move symtab.h include after
16510         coretypes.h include.
16511         * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
16512         vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
16513         flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
16514         wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
16515         explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
16517 2015-01-20  Igor Zamyatin  <igor.zamyatin@intel.com>
16519         PR bootstrap/64676
16520         Revert:
16521         2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
16523         PR rtl-optimization/64081
16524         * loop-iv.c (def_pred_latch_p): New function.
16525         (latch_dominating_def): Allow specific cases with non-single
16526         definitions.
16527         (iv_get_reaching_def): Likewise.
16528         (check_complex_exit_p): New function.
16529         (check_simple_exit): Use check_complex_exit_p to allow certain cases
16530         with exits not executing on any iteration.
16532 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
16534         PR lto/45375
16535         * i386.c (ix86_option_override_internal): Use ix86_tune_cost
16536         to set branch cost.
16538 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
16540         PR lto/45375
16541         * i386.c (gate): Check flag_expensive_optimizations and
16542         optimize_size.
16543         (ix86_option_override_internal): Drop optimize_size condition
16544         on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
16545         MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
16546         MASK_PREFER_AVX128.
16547         (ix86_avx256_split_vector_move_misalign,
16548         ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
16549         * sse.md (all uses of TARGET_PREFER_AVX128): Add
16550         optimize_insn_for_speed_p check.
16552 2015-01-19  Matthew Fortune  <matthew.fortune@imgtec.com>
16554         * config/mips/mips.h (FP_ASM_SPEC): New define.
16555         (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
16556         instead.
16558 2015-01-19  Oleg Endo  <olegendo@gcc.gnu.org>
16560         PR target/53988
16561         * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
16562         nullptr for insn when reaching the first insn.
16563         * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
16564         (sh_insn_operands_modified_between_p): Add nullptr check.
16565         (sh_find_extending_set_of_reg): Fix log message.  Don't accept
16566         sign extending mem load if the insn contains any UNSPEC or
16567         UNSPEC_VOLATILE.
16569 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
16571         * params.def (inline-unit-growth): Drop to 15%.
16572         * invoke.texi (inline-unit-growth): Document change.
16574 2015-01-19  Martin Liska  <mliska@suse.cz>
16576         PR ipa/64668
16577         * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
16578         function for second argument of OBJ_TYPE_REF.
16580 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
16582         PR ipa/64218
16583         * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
16584         whether function is an alias.
16586 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
16588         * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
16589         cases.
16591 2015-01-19  Vladimir Makarov  <vmakarov@redhat.com>
16593         PR rtl-optimization/64671
16594         * lra-remat.c (operand_to_remat): Don't consider jump and call
16595         insns.
16597 2015-01-19  David Edelsohn  <dje.gcc@gmail.com>
16599         PR target/59828
16600         * config/rs6000/default64.h: Include rs6000-cpus.def.
16601         (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
16602         (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
16603         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
16604         and POWER8.
16605         * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
16606         POWER8.
16607         * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
16608         pseudo-op to specify assembler dialect.
16610 2015-01-19  Martin Liska  <mliska@suse.cz>
16612         PR ipa/64664
16613         * ipa-icf.c (sem_item_optimizer::filter_removed_items):
16614         Handle safe potentially removed nodes during filtering.
16616 2015-01-19  Martin Liska  <mliska@suse.cz>
16618         * doc/extend.texi (no_icf): Add new attribute description.
16619         * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
16620         where the pass attempts to merge a function with no_icf attribute.
16622 2015-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
16624         PR target/64532
16625         * doc/md.texi (ARM Options): Document register constraints.
16627 2015-01-19  Jiong Wang  <jiong.wang@arm.com>
16628             Andrew Pinski  <apinski@cavium.com>
16630         PR target/64304
16631         * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
16632         (ashl<mode>3): Don't expand if operands[2] is not constant.
16634 2015-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16636         PR target/64448
16637         * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
16638         Match xor-and-xor RTL pattern.
16640 2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
16642         PR rtl-optimization/64081
16643         * loop-iv.c (def_pred_latch_p): New function.
16644         (latch_dominating_def): Allow specific cases with non-single
16645         definitions.
16646         (iv_get_reaching_def): Likewise.
16647         (check_complex_exit_p): New function.
16648         (check_simple_exit): Use check_complex_exit_p to allow certain cases
16649         with exits not executing on any iteration.
16651 2015-01-19  Jakub Jelinek  <jakub@redhat.com>
16653         * common.opt (fgraphite): Fix a typo.
16655 2015-01-19  Felix Yang  <felix.yang@huawei.com>
16657         * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
16658         pattern.
16659         * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
16660         uminp, smax_nanp, smin_nanp): New builtins.
16661         * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
16662         vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
16663         vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
16664         vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
16665         vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
16666         vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
16667         vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
16668         vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
16669         vpminnms_f32): Rewrite using builtin functions.
16671 2015-01-19  Thomas Schwinge  <thomas@codesourcery.com>
16673         PR libgomp/64625
16674         * omp-low.c (offload_symbol_decl): Remove variable.
16675         (get_offload_symbol_decl): Remove function.
16676         (expand_omp_target): For BUILT_IN_GOMP_TARGET,
16677         BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
16678         instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
16679         BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
16680         BUILT_IN_GOACC_UPDATE don't pass it at all.
16682 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
16684         * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
16685         callers.
16687 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
16689         * ipa-chkp.c (chkp_produce_thunks): Add early param
16690         to split thunks production into two passes.  Keep
16691         'always_inline' function bodies after the first pass.
16692         (pass_data_ipa_chkp_early_produce_thunks): New.
16693         (pass_ipa_chkp_early_produce_thunks): New.
16694         (pass_ipa_chkp_produce_thunks::execute): Adjust to new
16695         chkp_produce_thunks signature.
16696         (make_pass_ipa_chkp_early_produce_thunks): New.
16697         * passes.def (pass_ipa_chkp_early_produce_thunks): New.
16698         (pass_ipa_chkp_produce_thunks): Move after local optimizations.
16699         * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
16701 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
16703         * cgraph.c (cgraph_node::dump): Dump profile flags.
16705 2015-01-18  Oleg Endo  <olegendo@gcc.gnu.org>
16707         PR target/64652
16708         * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
16709         reg appear first in the parallel.
16711 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
16713         * ipa-reference.c (set_reference_optimization_summary,
16714         ipa_reference_get_not_written_global): Do nothing if ipa-reference is
16715         disabled.
16716         (ignore_module_statics): New static var.
16717         (propagate_bits): If ipa-reference is disabled, do not look into local
16718         properties.
16719         (analyze_function): Disable analysis when ipa_reference is disabled.
16720         (generate_summary): Do not dump when reference is disabled;
16721         collect vars accessed from functions with ipa-reference disabled.
16722         (get_read_write_all_from_node): When ipa-reference is disabled, use the
16723         node flags.
16724         (gate): Enable for LTO.
16725         (ignore_edge_p): New function.
16726         (propagate): Skip functions w/o ipa-reference analysis.
16727         * optc-save-gen.awk: Handle optimize_debug correctly.
16728         * opth-gen.awk: Likewise.
16729         * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
16730         fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
16731         fira-share-save-slots, fira-share-spill-slots,
16732         fmodulo-sched-allow-regmoves, fpartial-inlining,
16733         sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
16734         ftracer, ftree-parallelize-loops, fassociative-math,
16735         freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
16736         Optimization
16737         (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
16738         ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
16739         Optimization.
16740         * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
16741         Fix for IPA.
16743 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
16745         PR ipa/64378
16746         * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
16747         flag correctly.
16748         * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
16750 2015-01-18  Sandra Loosemore  <sandra@codesourcery.com>
16752         * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
16753         Remove duplicate option listings.
16755 2015-01-18  Felix Yang  <felix.yang@huawei.com>
16757         * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
16758         (autofdo_source_profile::get_callsite_total_count,
16759         function_instance::get_function_instance_by_decl,
16760         string_table::get_index, string_table::get_index_by_decl,
16761         afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
16762         Fix comment typos. Reformatting and minor code rearrangement.
16764 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
16766         * config/rs6000/rs6000.md (probe_stack): Delete.
16767         (probe_stack_address): New.
16769 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
16771         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
16772         to test for 32-bit ABIs, not !TARGET_POWERPC64.
16774 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
16776         * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
16777         (rs6000_function_value): Use it.  Handle SCmode and TCmode as well,
16778         for TARGET_32BIT && TARGET_POWERPC64.  Fix another BITS_PER_WORD
16779         snafu.
16780         (rs6000_libcall_value): Use the new function.
16782 2015-01-17  Sandra Loosemore  <sandra@codesourcery.com>
16784         * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
16786 2015-01-17  Eric Botcazou  <ebotcazou@adacore.com>
16788         * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
16789         implement a more precise life analysis for it during backward scan.
16791 2015-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
16793         * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
16795 2015-01-17  Bernd Schmidt  <bernds@codesourcery.com>
16797         PR rtl-optimization/52773
16798         * calls.c (emit_library_call_value): When pushing arguments use
16799         stack_pointer_rtx rather than virtual_outgoing_args_rtx in
16800         CALL_INSN_FUNCTION_USAGE.  Only emit one of use of the magic
16801         stack pointer reference into CALL_INSN_FUNCTION_USAGE.
16803 2015-01-17  Jeff Law  <law@redhat.com>
16805         PR rtl-optimization/32790
16806         * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
16807         not ZERO_EXTEND in SET_DESTs.
16809 2015-01-17  Alan Modra  <amodra@gmail.com>
16811         * cprop.c (do_local_cprop): Revert last change.
16813 2015-01-16  DJ Delorie  <dj@redhat.com>
16814             Nick Clifton  <nickc@redhat.com>
16816         * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
16817         (addhi3_real): Likewise.  Fix [HL+0] syntax.
16818         (subqi3_real): Likewise.
16819         (subhi3_real): Likewise.
16820         (cbranchqi4_real): Likewise.  Allow saddr,#imm.
16821         (cbranchhi4_real): Likewise.
16822         (cbranchhi4_real_inverted): Likewise.
16823         (cbranchsi4_real_lt): Likewise.
16824         (cbranchsi4_real_ge): Likewise.
16825         (cbranchsi4_real_ge): Likewise.
16826         * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
16827         (sub<mode>3_virt): Likewise.
16828         (cbranchqi4_virt): Likewise.
16829         (cbranchhi4_virt): Likewise.
16830         * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
16831         always use '[reg+imm]' even when imm is zero.
16832         * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
16833         (rl78_general_operand): New.
16834         (rl78_nonimmediate_operand): New.
16835         (rl78_nonfar_operand): Use them.
16836         (rl78_nonfar_nonimm_operand): Likewise.
16837         (rl78_stack_based_mem): Fix.
16838         * config/rl78/constraints.md (Ibqi): New.
16839         (IBqi): New.
16840         (Wsa): New.
16841         (Wsf): New.
16842         (Cs1): Fix.
16843         * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
16844         (iorqi3): Likewise.
16845         (xorqi3): Likewise.
16846         * config/rl78/rl78-protos.h (rl78_sfr_p): New.
16848         * config/rl78/constrains (Qs8): New constraint.
16849         * config/rl78/rl78.c (rl78_flags_already_set): New function.
16850         * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
16851         * config/rl78/rl78-real.md (update_Z): New attribute.
16852         Update patterns to set it.
16853         (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
16854         shorter compare and branch sequence can be used.
16855         (cbranchhi4_real): Likewise.
16856         (cbranchhi4_real_inverted): Likewise.
16858         * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
16859         * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
16860         address space.
16861         * config/rl78/rl78.c (rl78_get_name_encoding): New.
16862         (rl78_option_override): Allow -mes0 only if C.
16863         (characterize_address): Support subregs of symbol_refs.
16864         (rl78_addr_space_address_mode): Move.  Add __near.
16865         (rl78_far_p): Likewise.
16866         (rl78_addr_space_pointer_mode): Likewise.
16867         (rl78_as_legitimate_address): Likewise.
16868         (rl78_addr_space_subset_p): Likewise.
16869         (rl78_addr_space_convert): Likewise.
16870         (rl78_print_operand_1): Support 16-bit addressing of 32-bit
16871         symbols with -mes0.
16872         (transcode_memory_rtx): Don't copy ES if -mes0.  Allow symbol[BC]
16873         addressing.
16874         (rl78_alloc_physical_registers_op1): Change logic to prefer
16875         symbol[BC] addressing.
16876         (frodata_section): New.
16877         (rl78_asm_init_sections): Initialize it.
16878         (rl78_select_section): Put __far readonly symbols in .frodata.
16879         (rl78_make_type_far): New.
16880         (rl78_insert_attributes): Force all readonly symbols to be
16881         __far when -mes0.
16882         (rl78_asm_out_integer): New.
16883         * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
16884         * config/rl78/rl78.opt (-mes0): New.
16886         * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
16887         (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
16888         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
16889         * config/rl78/rl78-protos.h (rl78_output_labelref): New.
16890         (rl78_saddr_p): New.
16891         (rl78_output_aligned_common): New.
16892         * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
16893         (rl78_handle_saddr_attribute): New.
16894         (rl78_handle_naked_attribute): New.
16895         (rl78_attribute_table): Add saddr.
16896         (rl78_print_operand_1): Don't print '!' on saddr operands.
16897         (rl78_print_operand_1): Strip encodings.
16898         (rl78_sfr_p): New.
16899         (rl78_strip_name_encoding): New.
16900         (rl78_attrlist_to_encoding): New.
16901         (rl78_encode_section_info): New.
16902         (rl78_asm_init_sections): New.
16903         (rl78_select_section): New.
16904         (rl78_output_labelref): New.
16905         (rl78_output_aligned_common): New.
16906         (rl78_asm_out_integer): New.
16907         (rl78_asm_ctor_dtor): New.
16908         (rl78_asm_constructor): New.
16909         (rl78_asm_destructor): New.
16911         * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
16912         * config/rl78/rl78.c (rl78_expand_epilogue): Update.
16913         (transcode_memory_rtx): Update.
16914         (rl78_expand_epilogue): Use A_REG instead of 0.
16916 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
16918         * config/arm/arm-protos.h (struct tune_params): New field
16919         sched_autopref_queue_depth.
16920         * config/arm/arm.c (sched-int.h): Include header.
16921         (arm_first_cycle_multipass_dfa_lookahead_guard,)
16922         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
16923         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
16924         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
16925         (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
16926         (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
16927         (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
16928         (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
16929         Specify sched_autopref_queue_depth value.  Enabled for A15 and A57.
16930         * config/arm/t-arm (arm.o): Update.
16931         * haifa-sched.c (update_insn_after_change): Update.
16932         (rank_for_schedule): Use auto-prefetcher model, if requested.
16933         (autopref_multipass_init): New static function.
16934         (autopref_rank_for_schedule): New rank_for_schedule heuristic.
16935         (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
16936         variable for debug dumps.
16937         (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
16938         (autopref_multipass_dfa_lookahead_guard): New global function that
16939         implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
16940         (init_h_i_d): Update.
16941         * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
16942         * sched-int.h (enum autopref_multipass_data_status): New const enum.
16943         (autopref_multipass_data_): Structure for auto-prefetcher data.
16944         (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
16945         (struct _haifa_insn_data:autopref_multipass_data): New field.
16946         (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
16947         (autopref_multipass_dfa_lookahead_guard): Declare.
16949 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
16951         * rtlanal.c (get_base_term): Handle SCRATCH.
16953 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
16955         * config/aarch64/aarch64.c
16956         (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
16957         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
16958         * config/arm/arm.c
16959         (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
16960         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
16962 2015-01-17  Alan Modra  <amodra@gmail.com>
16964         * cprop.c (do_local_cprop): Disallow replacement of fixed
16965         hard registers.
16967 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16969         PR target/62066
16970         * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
16971         early return 0.
16973 2015-01-16  Bernd Edlinger  <bernd.edlinger@hotmail.de>
16975         * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
16976         * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
16978 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16980         * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
16981         * config/arm/thumb1.md: ... Here.
16983 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
16985         * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
16986         TImode for TARGET_32BIT.
16988 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
16990         * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
16991         TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
16992         as ...
16993         (rs6000_abi_word_mode): New function.
16995 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
16997         * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
16998         instead of UNITS_PER_WORD to describe the size of stack slots.
17000 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
17002         * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
17003         as rs6000_promote_function_mode.  Move comment to there.
17004         (rs6000_promote_function_mode): New function.
17006 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
17008         * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
17009         -mpowerpc64 is active.
17011 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
17013         PR middle-end/64353
17014         * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
17015         virtuals on start.
17017 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
17019         * config/arm/cortex-a57.md: Remove duplicate of file accidentally
17020         introduced in revision 219724.
17022 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17023             Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17025         PR target/64263
17026         * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
17027         destination is not a GP reg.
17028         (*movdi_aarch64): Likewise.
17030 2015-01-16  David Edelsohn  <dje.gcc@gmail.com>
17032         PR target/64623
17033         * config/rs6000/default64.h: Revert ISA change.
17035 2015-01-16  Richard Biener  <rguenther@suse.de>
17037         PR middle-end/64614
17038         * tree-ssa-uninit.c: Include tree-cfg.h.
17039         (MAX_SWITCH_CASES): New define.
17040         (convert_control_dep_chain_into_preds): Handle switch statements.
17041         (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
17042         (normalize_one_pred_1): Do not split bit-manipulations.
17043         Record (x & CST).
17045 2015-01-16  Richard Biener  <rguenther@suse.de>
17047         PR tree-optimization/64568
17048         * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
17049         complex load rewriting for TARGET_MEM_REFs.
17051 2015-01-16  Uros Bizjak  <ubizjak@gmail.com>
17053         * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
17055 2015-01-16  Matthew Wahab  <matthew.wahab@arm.com>
17057         PR target/64149
17058         * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
17059         variable.
17060         * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
17061         (aarch64_lra_p): Remove.
17063 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
17065         PR target/64363
17066         * ipa-chkp.h (chkp_instrumentable_p): New.
17067         * ipa-chkp.c: Include tree-inline.h.
17068         (chkp_instrumentable_p): New.
17069         (chkp_maybe_create_clone): Use chkp_instrumentable_p.
17070         Fix processing of not instrumentable functions.
17071         (chkp_versioning): Use chkp_instrumentable_p. Warn about
17072         not instrumentable functions.
17073         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
17074         chkp_instrumentable_p.
17075         * tree-inline.h (copy_forbidden): New.
17076         * tree-inline.c (copy_forbidden): Not static anymore.
17078 2015-01-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17080         * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
17081         ptr1, ptr2 unused.
17083 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
17085         * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
17086         type OP_OUT to OP_INOUT.
17088 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
17090         * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
17091         (high x) y) to y if x and y have the same base.
17093 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
17095         * config/arm/cortex-a57.md: New.
17096         * config/aarch64/aarch64.md: Include it.
17097         * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
17098         * config/aarch64/aarch64-tune.md: Regenerate.
17100 2015-01-16  Zhenqiang Chen  <zhenqiang.chen@arm.com>
17102         PR target/64015
17103         * ccmp.c (expand_ccmp_next): New function.
17104         (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
17105         and compare insn sequence.
17106         * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
17107         aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
17108         (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
17109         * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
17110         (*ccmp_ior): Changed to ccmp_ior<mode>.
17111         (cmp<mode>): New pattern.
17112         * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
17113         parameters.
17114         * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
17116 2015-01-16  Ilya Tocar  <ilya.tocar@intel.com>
17118         * config/i386/avx2intrin.h (_mm256_bslli_epi128,
17119         _mm256_bsrli_epi128): New.
17120         * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
17122 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
17124         * expmed.c (store_bit_field_using_insv): Improve warning message.
17125         Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
17127 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
17129         PR rtl-optimization/64011
17130         * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
17131         there is partial overflow.
17133 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
17135         * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
17136         prototype.
17137         (nds32_expand_epilogue_v3pop): Likewise.
17138         * config/nds32/nds32.md (sibcall): Define this for sibling call
17139         optimization.
17140         (sibcall_register): Likewise.
17141         (sibcall_immediate): Likewise.
17142         (sibcall_value): Likewise.
17143         (sibcall_value_register): Likewise.
17144         (sibcall_value_immediate): Likewise.
17145         (sibcall_epilogue): Likewise.
17146         (epilogue): Pass false to indicate this is not a sibcall epilogue.
17147         * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
17148         (nds32_expand_epilogue_v3pop): Likewise.
17150 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
17152         * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
17153         * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
17154         (return_internal): New.
17155         (return): Define this named pattern.
17156         (simple_return): Define this named pattern.
17157         * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
17158         pattern instead of unspec_volatile_func_return.
17159         (nds32_expand_epilogue_v3pop): Likewise.
17160         (nds32_can_use_return_insn): New function.
17162 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
17164         * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
17165         * config/nds32/nds32.md (pop25return): New.
17166         * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
17167         pop25return pattern.
17169 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
17171         * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
17172         -mforbid-fp-as-gp, and -mex9 options.
17174 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
17176         * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
17177         remove -mgp-direct option.
17179 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
17181         * doc/invoke.texi (--param early-inlining-insns): Update default value.
17182         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
17184 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
17186         * ipa-inline.c (inline_small_functions): Work around hints
17187         cache issue.
17189 2015-01-15  Sandra Loosemore  <sandra@codesourcery.com>
17191         PR target/59710
17192         * doc/invoke.texi (Option Summary): Document new Nios II
17193         -mgpopt= syntax.
17194         (Nios II Options): Likewise.
17195         * config/nios2/nios2.opt: Add -mgpopt= option support.
17196         Modify existing -mgpopt and -mno-gpopt options to be aliases.
17197         * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
17198         * config/nios2/nios2.c (nios2_option_override): Adjust
17199         -mgpopt defaulting.
17200         (nios2_in_small_data_p): Return true for explicit small data
17201         sections even with -G0.
17202         (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
17203         option choices.
17205 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
17207         PR ipa/64612
17208         * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
17209         of comdat locals.
17210         (inline_call): Fix removal of aliases.
17212 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
17214         * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
17215         include SANITIZE_VPTR in SANITIZE_UNDEFINED.
17216         * opts.c (common_handle_option): Add -fsanitize=vptr.
17217         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
17218         BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
17219         * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
17220         UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
17221         (ubsan_expand_vptr_ifn): New prototype.
17222         * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
17223         expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
17224         expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
17225         expand_LOOP_VECTORIZED): Make argument nameless, remove
17226         ATTRIBUTE_UNUSED.
17227         (expand_UBSAN_VPTR): New function.
17228         * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
17229         in fn spec.
17230         (UBSAN_VPTR): New internal function.
17231         * sanopt.c (tree_map_traits): Renamed to ...
17232         (sanopt_tree_map_traits): ... this.
17233         (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
17234         (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
17235         to sanopt_tree_map_traits renaming.  Add vptr_check_map field.
17236         (maybe_optimize_ubsan_vptr_ifn): New function.
17237         (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
17238         (pass_sanopt::execute): Likewise.  Call sanopt_optimize even for
17239         -fsanitize=vptr.
17240         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
17241         internal calls like pure functions for aliasing, even when they
17242         have other side-effects that prevent making them ECF_PURE.
17243         * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
17244         (ubsan_expand_vptr_ifn): New function.
17246 2015-01-15  Vladimir Makarov  <vmakarov@redhat.com>
17248         PR rtl-optimization/64110
17249         * stmt.c (parse_output_constraint): Process '^' and '$'.
17250         (parse_input_constraint): Ditto.
17251         * lra-constraints.c (process_alt_operands): Process the new
17252         constraints.
17253         * ira-costs.c (record_reg_classes): Process the new constraint
17254         '^'.
17255         * genoutput.c (indep_constraints): Add '^' and '$'.
17256         * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
17257         * doc/md.texi: Add description of the new constraints.
17259 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
17260             Bernd Schmidt  <bernds@codesourcery.com>
17261             Cesar Philippidis  <cesar@codesourcery.com>
17262             James Norris  <jnorris@codesourcery.com>
17263             Tom de Vries  <tom@codesourcery.com>
17264             Ilmir Usmanov  <i.usmanov@samsung.com>
17265             Dmitry Bocharnikov  <dmitry.b@samsung.com>
17266             Evgeny Gavrin  <e.gavrin@samsung.com>
17267             Jakub Jelinek  <jakub@redhat.com>
17269         * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
17270         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
17271         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
17272         New function types.
17273         * builtins.c: Include "gomp-constants.h".
17274         (expand_builtin_acc_on_device): New function.
17275         (expand_builtin, is_inexpensive_builtin): Handle
17276         BUILT_IN_ACC_ON_DEVICE.
17277         * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
17278         New macros.
17279         * cgraph.c (cgraph_node::create): Consider flag_openacc next to
17280         flag_openmp.
17281         * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
17282         <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
17283         i386/intelmic-offload.h.
17284         * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
17285         to libgomp and its dependencies.
17286         * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
17287         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
17288         * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
17289         * config/ia64/hpux.h (LIB_SPEC): Likewise.
17290         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
17291         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
17292         * doc/generic.texi: Update for OpenACC changes.
17293         * doc/gimple.texi: Likewise.
17294         * doc/invoke.texi: Likewise.
17295         * doc/sourcebuild.texi: Likewise.
17296         * gimple-pretty-print.c (dump_gimple_omp_for): Handle
17297         GF_OMP_FOR_KIND_OACC_LOOP.
17298         (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
17299         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
17300         GF_OMP_TARGET_KIND_OACC_UPDATE,
17301         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
17302         Dump more data.
17303         * gimple.c: Update comments for OpenACC changes.
17304         * gimple.def: Likewise.
17305         * gimple.h: Likewise.
17306         (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
17307         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
17308         GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
17309         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
17310         (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
17311         appropriate place.
17312         (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
17313         * gimplify.c: Include "gomp-constants.h".
17314         Update comments for OpenACC changes.
17315         (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
17316         OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
17317         OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
17318         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
17319         OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
17320         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
17321         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
17322         OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
17323         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
17324         OMP_CLAUSE_SEQ.
17325         (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
17326         GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
17327         OMP_CLAUSE_SET_MAP_KIND.
17328         (gimplify_oacc_cache): New function.
17329         (gimplify_omp_for): Handle OACC_LOOP.
17330         (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
17331         OACC_DATA.
17332         (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
17333         OACC_EXIT_DATA, OACC_UPDATE.
17334         (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
17335         OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
17336         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
17337         (gimplify_body): Consider flag_openacc next to flag_openmp.
17338         * lto-streamer-out.c: Include "gomp-constants.h".
17339         * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
17340         (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
17341         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
17342         (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
17343         (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
17344         (BUILT_IN_ACC_ON_DEVICE): New builtins.
17345         * omp-low.c: Include "gomp-constants.h".
17346         Update comments for OpenACC changes.
17347         (struct omp_context): Add reduction_map, gwv_below, gwv_this
17348         members.
17349         (extract_omp_for_data, use_pointer_for_field, install_var_field)
17350         (new_omp_context, delete_omp_context, scan_sharing_clauses)
17351         (create_omp_child_function, scan_omp_for, scan_omp_target)
17352         (check_omp_nesting_restrictions, lower_reduction_clauses)
17353         (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
17354         Update for OpenACC changes.
17355         (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
17356         OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
17357         OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
17358         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
17359         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
17360         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ.  Use GOMP_MAP_* instead of
17361         OMP_CLAUSE_MAP_*.
17362         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
17363         Handle GF_OMP_FOR_KIND_OACC_LOOP.
17364         (expand_omp_target, lower_omp_target): Handle
17365         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
17366         GF_OMP_TARGET_KIND_OACC_UPDATE,
17367         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
17368         GF_OMP_TARGET_KIND_OACC_DATA.
17369         (pass_expand_omp::execute, execute_lower_omp)
17370         (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
17371         flag_openmp.
17372         (offload_symbol_decl): New variable.
17373         (oacc_get_reduction_array_id, oacc_max_threads)
17374         (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
17375         (maybe_lookup_oacc_reduction, enclosing_target_ctx)
17376         (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
17377         (oacc_gimple_assign, oacc_initialize_reduction_data)
17378         (oacc_finalize_reduction_data, oacc_process_reduction_data): New
17379         functions.
17380         (is_targetreg_ctx): Remove function.
17381         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
17382         OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
17383         OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
17384         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
17385         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
17386         OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
17387         * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
17388         * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
17389         (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
17390         (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
17391         (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
17392         (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
17393         * tree-core.h: Update comments for OpenACC changes.
17394         (enum omp_clause_map_kind): Remove.
17395         (struct tree_omp_clause): Change type of map_kind member from enum
17396         omp_clause_map_kind to unsigned char.
17397         * tree-inline.c: Update comments for OpenACC changes.
17398         * tree-nested.c: Likewise.  Include "gomp-constants.h".
17399         (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
17400         (convert_tramp_reference_stmt, convert_gimple_call): Update for
17401         OpenACC changes.  Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
17402         OMP_CLAUSE_SET_MAP_KIND.
17403         * tree-pretty-print.c: Include "gomp-constants.h".
17404         (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
17405         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
17406         OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
17407         OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
17408         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
17409         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT.  Use GOMP_MAP_*
17410         instead of OMP_CLAUSE_MAP_*.
17411         (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
17412         OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
17413         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
17414         * tree-streamer-in.c: Include "gomp-constants.h".
17415         (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
17416         OMP_CLAUSE_MAP_*.  Use OMP_CLAUSE_SET_MAP_KIND.
17417         * tree-streamer-out.c: Include "gomp-constants.h".
17418         (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
17419         OMP_CLAUSE_MAP_*.
17420         * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
17421         (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
17422         (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
17423         * tree.c (omp_clause_num_ops): Update accordingly.
17424         * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
17425         Likewise.
17426         (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
17427         (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
17428         (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
17429         (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
17430         (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
17431         (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
17432         * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
17433         (OMP_CLAUSE_SET_MAP_KIND): New macro.
17434         * varpool.c (varpool_node::get_create): Consider flag_openacc next
17435         to flag_openmp.
17436         * config/i386/intelmic-offload.h: New file.
17437         * config/nvptx/offload.h: Likewise.
17439 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
17441         * explow.h: Remove duplicate contents.
17442         * dojump.h: Likewise.
17444 2015-01-15  Richard Earnshaw  <rearnsha@arm.com>
17446         * arm.c (arm_xgene_tune): Add default initializer for instruction
17447         fusion.
17449 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
17451         PR ipa/64068
17452         PR ipa/64559
17453         * ipa.c (symbol_table::remove_unreachable_nodes):
17454         Do not put abstract origins into boundary.
17456 2015-01-15  Evgeny Stupachenko  <evstupac@gmail.com>
17458         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
17459         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
17461 2015-01-15  Steve Ellcey  <sellcey@mips.com>
17463         * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
17464         cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
17465         builtins.def, and chkp-builtins.def.
17467 2015-01-15  David Edelsohn  <dje.gcc@gmail.com>
17469         * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
17470         ISA 2.7 (POWER8).
17472 2015-01-15  Richard Biener  <rguenther@suse.de>
17474         PR tree-optimization/61743
17475         * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
17476         information on PHIs for some simple cases.
17478 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
17480         * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
17481         Include xgene1.md.
17482         * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
17483         * config/arm/arm-cores.def (xgene1): New entry.
17484         * config/arm/arm-tables.opt: Regenerate.
17485         * config/arm/arm-tune.md: Regenerate.
17486         * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
17488 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
17490         * tree-if-conv.c: Include hash-map.h.
17491         (aggressive_if_conv): New variable.
17492         (fold_build_cond_expr): Add simplification of non-zero condition.
17493         (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
17494         destination block is not always executed.
17495         (if_convertible_phi_p): Fix commentary, allow phi nodes have more
17496         than two predecessors if AGGRESSIVE_IF_CONV is true.
17497         (if_convertible_stmt_p): Fix commentary.
17498         (all_preds_critical_p): New function.
17499         (has_pred_critical_p): New function.
17500         (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
17501         BB can have more than two predecessors and all incoming edges can be
17502         critical.
17503         (predicate_bbs): Skip predication for loop exit block, use build2_loc
17504         to compute predicate for true edge.
17505         (find_phi_replacement_condition): Delete this function.
17506         (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
17507         Allow interchange PHI arguments if EXTENDED is false.
17508         Change check that block containing reduction statement candidate
17509         is predecessor of phi-block since phi may have more than two arguments.
17510         (phi_args_hash_traits): New helper structure.
17511         (struct phi_args_hash_traits): New type.
17512         (phi_args_hash_traits::hash): New function.
17513         (phi_args_hash_traits::equal_keys): New function.
17514         (gen_phi_arg_condition): New function.
17515         (predicate_scalar_phi): Add handling of phi nodes with more than two
17516         arguments, delete COND and TRUE_BB arguments, insert body of
17517         find_phi_replacement_condition to predicate ordinary phi nodes.
17518         (predicate_all_scalar_phis): Skip blocks with the only predecessor,
17519         delete call of find_phi_replacement_condition and invoke
17520         predicate_scalar_phi with two arguments.
17521         (insert_gimplified_predicates): Add assert that non-predicated block
17522         don't have statements to insert.
17523         (ifcvt_split_critical_edges): New function.
17524         (ifcvt_split_def_stmt): Likewise.
17525         (ifcvt_walk_pattern_tree): Likewise.
17526         (stmt_is_root_of_bool_pattern): Likewise.
17527         (ifcvt_repair_bool_pattern): Likewise.
17528         (ifcvt_local_dce): Likewise.
17529         (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
17530         is copy of inner or outer loop force_vectorize field, invoke
17531         ifcvt_split_critical_edges, ifcvt_local_dce and
17532         ifcvt_repair_bool_pattern for aggressive if-conversion.
17534 2015-01-15  Philipp Tomsich  <ptomsich@theobroma-systems.com>
17536         * config/aarch64/aarch64.md: Include xgene1.md.
17537         * config/aarch64/xgene1.md: New file.
17539 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
17541         * config/aarch64/aarch64-cores.def (xgene1): Update/add the
17542         xgene1 (APM XGene-1) core definition.
17543         * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
17544         * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
17545         * doc/invoke.texi: Document -mcpu=xgene1.
17547 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
17549         * dojump.h: New header file.
17550         * explow.h: Likewise.
17551         * expr.h: Remove includes.
17552         Move expmed.c prototypes to expmed.h.
17553         Move dojump.c prototypes to dojump.h.
17554         Move alias.c prototypes to alias.h.
17555         Move explow.c prototypes to explow.h.
17556         Move calls.c prototypes to calls.h.
17557         Move emit-rtl.c prototypes to emit-rtl.h.
17558         Move varasm.c prototypes to varasm.h.
17559         Move stmt.c prototypes to stmt.h.
17560         (saved_pending_stack_adjust): Move to dojump.h.
17561         (adjust_address): Move to explow.h.
17562         (adjust_address_nv): Move to emit-rtl.h.
17563         (adjust_bitfield_address): Likewise.
17564         (adjust_bitfield_address_size): Likewise.
17565         (adjust_bitfield_address_nv): Likewise.
17566         (adjust_automodify_address_nv): Likewise.
17567         * explow.c (expr_size): Move to expr.c.
17568         (int_expr_size): Likewise.
17569         (tree_expr_size): Likewise.
17570         Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17571         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
17572         * genemit.c (main): Generate includes statistics.h, real.h,
17573         fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
17574         stmt.h.
17575         * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
17576         function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
17577         explow.h, emit-rtl.h, stmt.h.
17578         * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
17579         fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
17580         * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
17581         real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
17582         emit-rtl.h, varasm.h, stmt.h.
17583         * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
17584         hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
17585         function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
17586         fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
17587         expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
17588         * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
17589         double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
17590         function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
17591         insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
17592         tm.h tree.h varasm.h vec.h wide-int.h.
17593         * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
17594         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
17595         hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
17596         real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
17597         * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
17598         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
17599         insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
17600         * loop-iv.c: Likewise.
17601         * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
17602         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
17603         statistics.h stmt.h tree.h varasm.h wide-int.h.
17604         * lra-constraints.c: Likewise.
17605         * lra-eliminations.c: Likewise.
17606         * lra-lives.c: Likewise.
17607         * lra-remat.c: Likewise.
17608         * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
17609         explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
17610         statistics.h stmt.h tree.h varasm.h wide-int.h.
17611         * hw-doloop.c: Likewise.
17612         * ira-color.c: Likewise.
17613         * ira-emit.c: Likewise.
17614         * loop-doloop.c: Likewise.
17615         * loop-invariant.c: Likewise.
17616         * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
17617         explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
17618         statistics.h stmt.h tree.h varasm.h wide-int.h.
17619         * caller-save.c: Include alias.h calls.h dojump.h double-int.h
17620         emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
17621         statistics.h stmt.h tree.h varasm.h wide-int.h.
17622         * combine-stack-adj.c: Likewise.
17623         * cse.c: Likewise.
17624         * ddg.c: Likewise.
17625         * ifcvt.c: Likewise.
17626         * ira-costs.c: Likewise.
17627         * jump.c: Likewise.
17628         * lra-coalesce.c: Likewise.
17629         * lra-spills.c: Likewise.
17630         * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
17631         explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
17632         stmt.h varasm.h wide-int.h.
17633         * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
17634         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
17635         varasm.h.
17636         * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
17637         double-int.h explow.h expmed.h fixed-value.h flags.h real.h
17638         statistics.h stmt.h varasm.h wide-int.h.
17639         * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
17640         expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
17641         varasm.h wide-int.h.
17642         * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
17643         expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
17644         * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
17645         emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
17646         statistics.h stmt.h.
17647         * config/tilepro/tilepro.c: Likewise.
17648         * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
17649         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
17650         * config/pdp11/pdp11.c: Likewise.
17651         * config/xtensa/xtensa.c: Likewise.
17652         * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
17653         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
17654         varasm.h.
17655         * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17656         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
17657         insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
17658         * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17659         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
17660         insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
17661         * rtl-chkp.c: Likewise.
17662         * tree-chkp-opt.c: Likewise.
17663         * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
17664         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
17665         hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
17666         * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17667         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
17668         statistics.h stmt.h.
17669         * tree-vect-data-refs.c: Likewise.
17670         * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
17671         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
17672         rtl.h statistics.h stmt.h varasm.h.
17673         * internal-fn.c: Likewise.
17674         * ipa-icf-gimple.c: Likewise.
17675         * lto-section-out.c: Likewise.
17676         * tree-data-ref.c: Likewise.
17677         * tree-nested.c: Likewise.
17678         * tree-outof-ssa.c: Likewise.
17679         * tree-predcom.c: Likewise.
17680         * tree-pretty-print.c: Likewise.
17681         * tree-scalar-evolution.c: Likewise.
17682         * tree-ssa-strlen.c: Likewise.
17683         * tree-vect-loop.c: Likewise.
17684         * tree-vect-patterns.c: Likewise.
17685         * tree-vect-slp.c: Likewise.
17686         * tree-vect-stmts.c: Likewise.
17687         * tsan.c: Likewise.
17688         * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17689         fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
17690         stmt.h.
17691         * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
17692         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
17693         statistics.h stmt.h varasm.h.
17694         * loop-unroll.c: Likewise.
17695         * ubsan.c: Likewise.
17696         * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
17697         expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
17698         stmt.h varasm.h.
17699         * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17700         fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
17701         * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
17702         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
17703         statistics.h stmt.h.
17704         * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
17705         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
17706         statistics.h stmt.h varasm.h.
17707         * gimple-match-head.c: Likewise.
17708         * lto-cgraph.c: Likewise.
17709         * lto-section-in.c: Likewise.
17710         * lto-streamer-in.c: Likewise.
17711         * lto-streamer-out.c: Likewise.
17712         * tree-affine.c: Likewise.
17713         * tree-cfg.c: Likewise.
17714         * tree-cfgcleanup.c: Likewise.
17715         * tree-if-conv.c: Likewise.
17716         * tree-into-ssa.c: Likewise.
17717         * tree-ssa-alias.c: Likewise.
17718         * tree-ssa-copyrename.c: Likewise.
17719         * tree-ssa-dse.c: Likewise.
17720         * tree-ssa-forwprop.c: Likewise.
17721         * tree-ssa-live.c: Likewise.
17722         * tree-ssa-math-opts.c: Likewise.
17723         * tree-ssa-pre.c: Likewise.
17724         * tree-ssa-sccvn.c: Likewise.
17725         * tree-tailcall.c: Likewise.
17726         * tree-vect-generic.c: Likewise.
17727         * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17728         fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
17729         * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17730         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
17731         * varasm.c: Likewise.
17732         * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17733         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
17734         varasm.h.
17735         * init-regs.c: Likewise.
17736         * ira.c: Likewise.
17737         * omp-low.c: Likewise.
17738         * stack-ptr-mod.c: Likewise.
17739         * tree-ssa-reassoc.c: Likewise.
17740         * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17741         fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
17742         varasm.h.
17743         * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17744         fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
17745         * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17746         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
17747         * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17748         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
17749         * tree-ssa-phiopt.c: Likewise.
17750         * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17751         fixed-value.h hashtab.h real.h statistics.h stmt.h.
17752         * config/fr30/fr30.c: Likewise.
17753         * config/frv/frv.c: Likewise.
17754         * expr.c: Likewise.
17755         * final.c: Likewise.
17756         * optabs.c: Likewise.
17757         * passes.c: Likewise.
17758         * simplify-rtx.c: Likewise.
17759         * stmt.c: Likewise.
17760         * toplev.c: Likewise.
17761         * var-tracking.c: Likewise.
17762         * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17763         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
17764         * lower-subreg.c: Likewise.
17765         * postreload-gcse.c: Likewise.
17766         * ree.c: Likewise.
17767         * reginfo.c: Likewise.
17768         * store-motion.c: Likewise.
17769         * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17770         fixed-value.h hashtab.h real.h stmt.h varasm.h.
17771         * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17772         fixed-value.h hashtab.h statistics.h stmt.h.
17773         * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17774         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
17775         * except.c: Likewise.
17776         * explow.c: Likewise.
17777         * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17778         fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
17779         varasm.h.
17780         * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17781         fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
17782         * tree-ssa-structalias.c: Likewise.
17783         * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17784         fixed-value.h insn-config.h real.h statistics.h.
17785         * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17786         fixed-value.h insn-config.h real.h statistics.h stmt.h.
17787         * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17788         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
17789         * cfgbuild.c: Likewise.
17790         * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17791         fixed-value.h real.h rtl.h statistics.h stmt.h.
17792         * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17793         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
17794         * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17795         fixed-value.h real.h statistics.h stmt.h.
17796         * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17797         fixed-value.h real.h statistics.h stmt.h varasm.h.
17798         * cprop.c: Likewise.
17799         * modulo-sched.c: Likewise.
17800         * postreload.c: Likewise.
17801         * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
17802         flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
17803         statistics.h stmt.h varasm.h.
17804         * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
17805         explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
17806         rtl.h statistics.h stmt.h varasm.h.
17807         * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
17808         fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
17809         varasm.h.
17810         * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
17811         function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
17812         varasm.h.
17813         * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
17814         fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
17815         varasm.h.
17816         * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
17817         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
17818         * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
17819         function.h real.h statistics.h stmt.h varasm.h.
17820         * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
17821         insn-config.h real.h statistics.h stmt.h.
17822         * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
17823         statistics.h stmt.h.
17824         * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
17825         fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
17826         statistics.h stmt.h varasm.h.
17827         * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
17828         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
17829         * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
17830         flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
17831         * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
17832         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
17833         statistics.h stmt.h varasm.h.
17834         * ipa-polymorphic-call.c: Likewise.
17835         * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
17836         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
17837         statistics.h stmt.h.
17838         * config/c6x/c6x.c: Likewise.
17839         * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
17840         explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
17841         statistics.h stmt.h varasm.h.
17842         * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
17843         fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
17844         stmt.h varasm.h.
17845         * ipa-split.c: Likewise.
17846         * tree-eh.c: Likewise.
17847         * tree-ssa-dce.c: Likewise.
17848         * tree-ssa-loop-niter.c: Likewise.
17849         * tree-vrp.c: Likewise.
17850         * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
17851         expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
17852         stmt.h.
17853         * config/nds32/nds32-fp-as-gp.c: Likewise.
17854         * config/nds32/nds32-intrinsic.c: Likewise.
17855         * config/nds32/nds32-isr.c: Likewise.
17856         * config/nds32/nds32-md-auxiliary.c: Likewise.
17857         * config/nds32/nds32-memory-manipulation.c: Likewise.
17858         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
17859         * config/nds32/nds32-predicates.c: Likewise.
17860         * config/nds32/nds32.c: Likewise.
17861         * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
17862         fixed-value.h hashtab.h real.h statistics.h.
17863         * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
17864         fixed-value.h hashtab.h real.h statistics.h stmt.h.
17865         * config/arm/arm.c: Likewise.
17866         * config/avr/avr.c: Likewise.
17867         * config/bfin/bfin.c: Likewise.
17868         * config/h8300/h8300.c: Likewise.
17869         * config/i386/i386.c: Likewise.
17870         * config/ia64/ia64.c: Likewise.
17871         * config/iq2000/iq2000.c: Likewise.
17872         * config/m32c/m32c.c: Likewise.
17873         * config/m32r/m32r.c: Likewise.
17874         * config/m68k/m68k.c: Likewise.
17875         * config/mcore/mcore.c: Likewise.
17876         * config/mep/mep.c: Likewise.
17877         * config/mips/mips.c: Likewise.
17878         * config/mn10300/mn10300.c: Likewise.
17879         * config/moxie/moxie.c: Likewise.
17880         * config/pa/pa.c: Likewise.
17881         * config/rl78/rl78.c: Likewise.
17882         * config/rx/rx.c: Likewise.
17883         * config/s390/s390.c: Likewise.
17884         * config/sh/sh.c: Likewise.
17885         * config/sparc/sparc.c: Likewise.
17886         * config/spu/spu.c: Likewise.
17887         * config/stormy16/stormy16.c: Likewise.
17888         * config/v850/v850.c: Likewise.
17889         * config/vax/vax.c: Likewise.
17890         * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
17891         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
17892         * config/msp430/msp430.c: Likewise.
17893         * predict.c: Likewise.
17894         * value-prof.c: Likewise.
17895         * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
17896         expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
17897         * config/microblaze/microblaze.c: Likewise.
17898         * config/nios2/nios2.c: Likewise.
17899         * config/rs6000/rs6000.c: Likewise.
17900         * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
17901         insn-config.h real.h rtl.h statistics.h stmt.h.
17902         * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
17903         insn-config.h real.h statistics.h stmt.h.
17904         * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
17905         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
17906         * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
17907         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
17908         * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
17909         fixed-value.h real.h statistics.h stmt.h.
17910         * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
17911         fixed-value.h statistics.h stmt.h.
17912         * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
17913         stmt.h.
17915 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
17917         * gengtype.c (create_user_defined_type): Workaround
17918         -Wmaybe-uninitialized false positives.
17919         * cse.c (fold_rtx): Likewise.
17920         * loop-invariant.c (gain_for_invariant): Likewise.
17922 2015-01-15  Eric Botcazou  <ebotcazou@adacore.com>
17924         * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
17925         set the memory attributes in all cases but clear MEM_EXPR if need be.
17927 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
17929         PR tree-optimization/64434
17930         * cfgexpand.c (reorder_operands): New function.
17931         (expand_gimple_basic_block): Insert call of reorder_operands if
17932         optimized is true.
17934 2015-01-15  Matthew Fortune  <matthew.fortune@imgtec.com>
17936         * config/mips/micromips.md (*swp): Remove explicit parallel.
17937         (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
17938         * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
17939         (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
17940         (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
17941         (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
17942         (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
17943         (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
17944         (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
17945         (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
17946         (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
17947         (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
17948         (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
17949         (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
17950         (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
17951         (mips_wrdsp): Likewise.
17952         * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
17953         parallel.
17954         (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
17955         (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
17956         (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
17957         (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
17958         (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
17959         (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
17960         * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
17961         (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
17962         (ssmaddsqdq4, ssmsubsqdq4): Likewise.
17964 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
17966         * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
17967         (mips_print_operand): Support 'y' to print exact log2 in decimal
17968         of a const_int.
17969         * config/mips/mips.h (ISA_HAS_LSA): New define.
17970         (ISA_HAS_DLSA): Likewise.
17971         * config/mips/mips.md (<GPR:d>lsa): New define_insn.
17972         * config/mips/predicates.md (const_immlsa_operand): New predicate.
17974 2015-01-15  Martin Liska  <mliska@suse.cz>
17976         PR target/64377
17977         * optc-save-gen.awk: Add support for array types.
17979 2015-01-15  Richard Biener  <rguenther@suse.de>
17981         PR middle-end/64365
17982         * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
17983         for MEM_REF access functions with the same base can never partially
17984         overlap.
17986 2015-01-14  Marcos Diaz <marcos.diaz@tallertechnologies.com>
17988         * common.opt: New option -fstack-protector-explicit.
17989         * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
17990         (stack_protect_decl_phase): Handle stack_protect attribute for
17991         explicit stack protection requests.
17992         (expand_used_vars): Similarly.
17993         * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
17994         * doc/extend.texi: Add documentation for "stack_protect" attribute.
17995         * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
17997 2015-01-14  Oleg Endo  <olegendo@gcc.gnu.org>
17999         PR target/53988
18000         * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
18001         reg-reg copies.
18002         (sh_extending_set_of_reg): New struct.
18003         (sh_find_extending_set_of_reg, sh_split_tst_subregs,
18004         sh_remove_reg_dead_or_unused_notes): New Declarations.
18005         * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
18006         sh_find_extending_set_of_reg, sh_split_tst_subregs,
18007         sh_extending_set_of_reg::use_as_extended_reg): New functions.
18008         * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
18009         convert to insn_and_split and use new function sh_split_tst_subregs.
18011 2015-01-14  Sandra Loosemore  <sandra@codesourcery.com>
18013         * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
18014         option.
18015         (Optimization Options): Move -fuse-ld documentation to...
18016         (Link Options): ...here.
18018 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
18020         * config/mips/constraints.md (ZC): Add support for R6 LL/SC
18021         offsets.
18022         (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
18023         * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
18024         (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
18025         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
18026         instead of ZR for the memory operand of LL/SC.
18027         (compare_and_swap_12, sync_add<mode>): Likewise.
18028         (sync_<optab>_12, sync_old_<optab>_12): Likewise.
18029         (sync_new_<optab>_12, sync_nand_12): Likewise.
18030         (sync_old_nand_12, sync_new_nand_12): Likewise.
18031         (sync_sub<mode>, sync_old_add<mode>): Likewise.
18032         (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
18033         (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
18034         (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
18035         (sync_nand<mode>, sync_old_nand<mode>): Likewise.
18036         (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
18037         (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
18038         (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
18039         * doc/md.texi (ZC): Update description.
18041 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
18043         * builtins.c (expand_builtin_atomic_exchange): Remove error when
18044         memory model is CONSUME.
18045         (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
18046         expand_builtin_atomic_store): Change invalid memory model errors to
18047         warnings.
18048         (expand_builtin_atomic_clear): Change invalid model errors to warnings
18049         and issue warning for CONSUME.
18051 2015-01-14  Aldy Hernandez  <aldyh@redhat.com>
18053         * lto-cgraph: Update function comments for
18054         lto_symtab_encoder_encode_*.
18056 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
18058         * Makefile.in (site.exp): Do not set ENABLE_LTO.
18060 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
18062         * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
18063         * lto-cgraph.c (select_what_to_stream): Remove argument, use
18064         lto_stream_offload_p instead.
18065         * lto-streamer.h (select_what_to_stream): Remove argument.
18066         * passes.c (ipa_write_summaries): Likewise.
18067         * tree-pass.h (ipa_write_summaries): Likewise.
18069 2015-01-14  Richard Biener  <rguenther@suse.de>
18071         PR tree-optimization/59354
18072         * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
18073         groups larger than the slp group size as having gaps.
18075 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
18077         PR middle-end/59448
18078         * builtins.c (get_memmodel): Promote consume to acquire always.
18080 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
18082         PR target/64386
18083         * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
18084         V32HImode.
18086 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
18088         PR target/64393
18089         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
18090         Enable AVX512BW.
18091         (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
18092         * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
18093         AVX512VBMI, as it implies AVX512BW.
18095 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
18097         PR target/64387
18098         * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
18099         (vec_unpacks_hi_v16sf): Ditto.
18101 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18103         * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
18104         is not available.
18106 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18108         * doc/invoke.texi (mapcs): Mention deprecation.
18109         (mapcs-frame): Likewise.
18111 2015-01-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
18113         PR target/64453
18114         * config/arm/arm.c (callee_saved_reg_p): Define.
18115         (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
18116         register is callee saved instead of !call_used_regs[reg].
18117         (thumb1_compute_save_reg_mask): Likewise.
18119 2015-01-14  Hale Wang  <hale.wang@arm.com>
18121         * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
18122         Cortex-M7.
18124 2015-01-14  Richard Biener  <rguenther@suse.de>
18126         PR lto/64415
18127         * tree-inline.c (insert_debug_decl_map): Check destination
18128         function MAY_HAVE_DEBUG_STMTS.
18129         (insert_init_debug_bind): Likewise.
18130         (insert_init_stmt): Remove redundant check.
18131         (remap_gimple_stmt): Drop debug stmts if the destination
18132         function has var-tracking assignments disabled.
18134 2015-01-14  Martin Liska  <mliska@suse.cz>
18136         * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
18137         IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
18139 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18141         PR target/64460
18142         * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
18143         (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
18145 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
18147         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
18148         level from an ARCH; do not inject the default.
18149         (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
18150         MIPS_ISA_LEVEL_SPEC.
18151         (MIPS_ISA_NAN2008_SPEC): Update comment.
18152         (BASE_DRIVER_SELF_SPECS): Likewise.
18153         * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
18154         MIPS_DEFAULT_ISA_LEVEL_SPEC.
18155         * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
18156         * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
18157         * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
18159 2015-01-14  Richard Biener  <rguenther@suse.de>
18161         PR tree-optimization/64493
18162         PR tree-optimization/64495
18163         * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
18164         assign the proper vectorized PHI to the inner loop exit PHIs.
18166 2015-01-14  Joey Ye  <joey.ye@arm.com>
18168         * config/arm/arm.c (arm_compute_save_reg_mask):
18169         Do not save lr in case of tail call.
18170         * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
18172 2015-01-14  Martin Uecker <uecker@eecs.berkeley.edu>
18174         * tree-vrp.c (check_array_ref): Emit more warnings
18175         for warn_array_bounds >= 2.
18176         * common.opt: New option -Warray-bounds=.
18177         * doc/invoke.texi: Document -Warray-bounds=.
18179 2015-01-14  Chung-Ju Wu  <jasonwucj@gmail.com>
18181         * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
18182         (mforbid-fp-as-gp): Remove.
18183         (mex9): Remove.
18184         * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
18185         (nds32_symbol_load_store_p): Remove.
18186         (nds32_fp_as_gp_check_available): Clean up implementation.
18187         * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
18188         cases.
18189         * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
18190         fp-as-gp and ex9 cases.
18192 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
18194         * tree-profile.c (init_ic_make_global_vars): Drop workaround
18195         for bintuils bug 14342.
18196         (init_ic_make_global_vars): Likewise.
18197         (gimple_init_edge_profiler): Likewise.
18198         (gimple_gen_ic_func_profiler): Likewise.
18200 2015-01-13  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
18202         * ipa-inline.c (inline_small_functions): Swap the operands in
18203         enum.
18205 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
18207         PR ipa/64481
18208         * ipa-inline-analysis.c (node_growth_cache): Remove.
18209         (initialize_growth_caches): Do not initialize it.
18210         (free_growth_caches): Do not free it.
18211         (do_estimate_growth): Rename to ...
18212         (estimate_growth): ... this one; drop growth cache code.
18213         (growth_likely_positive): Always go the heuristics way.
18214         * ipa-inline.c (can_inline_edge_p): Walk through aliases.
18215         (reset_edge_caches): Do not reset node growth.
18216         (heap_edge_removal_hook): Do not maintain cache.
18217         (inline_small_functions): Likewise; strenghten sanity check.
18218         (ipa_inline): Do not maintain caches.
18219         * ipa-inline.h (node_growth_cache): Remove.
18220         (do_estimate_growth): Remove to ...
18221         (estimate_growth): this one; remove inline version.
18222         (reset_node_growth_cache): Remove.
18224 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
18226         PR ipa/64565
18227         * ipa-inline.c (inline_small_functions): Update callee keys after
18228         resolving speculation
18229         (inline_small_functions): Always check monotonicity of the queue.
18231 2015-01-13  Marek Polacek  <polacek@redhat.com>
18233         PR middle-end/64391
18234         * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
18236 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
18238         PR rtl-optimization/64286
18239         * ree.c (combine_reaching_defs): Move part of comment earlier,
18240         remove !SCALAR_INT_MODE_P check.
18241         (add_removable_extension): Don't add vector mode
18242         extensions if all uses of the source register aren't the same
18243         vector extensions.
18245 2015-01-13  Renlin Li  <renlin.li@arm.com>
18247         * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
18248         (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
18250 2015-01-13  Martin Liska  <mliska@suse.cz>
18252         * ipa-icf.c (sem_function::equals_private): Call new functions
18253         cl_target_option_print_diff and cl_optimization_print_diff.
18254         * optc-save-gen.awk (cl_target_option_print_diff): New function.
18255         (cl_optimization_print_diff): Likewise.
18256         * opth-gen.awk: Likewise.
18258 2015-01-13  Richard Sandiford  <richard.sandiford@arm.com>
18260         * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
18261         (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
18262         (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
18263         (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
18264         (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
18265         (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
18267 2015-01-13  Andrew Pinski  <apinski@cavium.com>
18269         * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
18270         instead of src mode.
18272 2015-01-13  Richard Biener  <rguenther@suse.de>
18274         PR lto/64373
18275         * lto-streamer-out.c (tree_is_indexable): Guard for NULL
18276         DECL_CONTEXT.
18278 2015-01-13  Andrew Pinski  <apinski@cavium.com>
18280         * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
18281         volatile mems.
18282         (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
18284 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
18286         PR middle-end/63974
18287         * cfgexpand.c (expand_computed_goto): Don't call
18288         convert_memory_address here.
18290 2015-01-13  Richard Biener  <rguenther@suse.de>
18292         PR tree-optimization/64406
18293         * tree-loop-distibution.c (pass_loop_distribution::execute):
18294         Reset the SCEV hashtable if we distributed anything.
18296 2015-01-13  Richard Biener  <rguenther@suse.de>
18298         PR tree-optimization/64404
18299         * tree-vect-stmts.c (vectorizable_load): Reject conflicting
18300         SLP types for CSEd loads.
18302 2015-01-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
18304         PR tree-optimization/64436
18305         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
18306         merge of two symbolic numbers for a bitwise OR to ...
18307         (perform_symbolic_merge): This. Also fix computation of the range and
18308         end of the symbolic number corresponding to the result of a bitwise OR.
18310 2015-01-13  Richard Biener  <rguenther@suse.de>
18312         PR tree-optimization/64568
18313         * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
18314         release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
18316 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
18318         * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
18319         TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
18321 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
18323         * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
18324         target-specific symbol_ref flag.
18325         (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
18326         resides in rodata section.
18327         * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
18328         (nds32_encode_section_info): New function.
18330 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
18332         * config/nds32/nds32.md (call): Use pseudo instruction bal which
18333         clobbers TA_REGNUM if large code model is specified.
18334         (call_register): Likewise.
18335         (call_immediate): Likewise.
18336         (call_value): Likewise.
18337         (call_value_register): Likewise.
18338         (call_value_immediate): Likewise.
18340 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
18342         * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
18343         (TARGET_CMODEL_MEDIUM): New macro.
18344         (TARGET_CMODEL_LARGE): New macro.
18345         * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
18346         code model setting in assembly code.
18348 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
18350         * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
18351         Remove MASK_GP_DIRECT flag.
18352         * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
18353         one of the multilib default options.
18354         * config/nds32/nds32.opt (mgp-direct): Remove.
18355         * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
18356         -mgp-direct.  We also remove unnecessary -mlittle-endian/-mbig-endian.
18358 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
18360         * config/nds32/nds32.opt (mcmodel): Add new option.
18361         * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
18362         to describe code model.
18364 2015-01-13  Oleg Endo  <olegendo@gcc.gnu.org>
18366         PR target/64479
18367         * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
18369 2015-01-12  Kaz Kojima  <kkojima@gcc.gnu.org>
18371         * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
18372         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
18373         (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
18374         (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
18375         __builtin_sh_set_fpscr.
18377 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
18379         * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
18380         after a funtion name just to indicate it is a function.
18381         ([-fsanitize-undefined-trap-on-error]): Likewise.
18382         ([-fdbg-cnt=]): Likewise.
18383         ([-mmemcpy]): Likewise.
18384         ([-mflush-func]): Likewise.
18385         ([-msynci]): Likewise.
18387 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
18389         * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
18390         example.
18392 2015-01-12  Jakub Jelinek  <jakub@redhat.com>
18394         PR tree-optimization/64563
18395         * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
18396         instead of != VR_VARYING.
18398         PR target/64513
18399         * config/i386/i386.c (ix86_expand_prologue): Add
18400         REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
18402         PR tree-optimization/64454
18403         * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
18404         op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
18405         for signed or [0, op1 - 1] for unsigned modulo.
18406         (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
18407         even if op1 does not satisfy integer_pow2p.
18409         PR other/64370
18410         * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
18412 2015-01-12  Jeff Law  <law@redhat.com>
18414         PR target/64461
18415         * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
18416         (trunchiqi2, truncsihi2): Similarly.
18418         * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
18419         rather than calling F.
18421 2015-01-12  Bernd Edlinger  <bernd.edlinger@hotmail.de>
18423         * tsan.c (instrument_expr): Use force_gimple_operand.
18424         Use may_be_nonaddressable_p instead of is_gimple_addressable.
18426 2015-01-12  Richard Biener  <rguenther@suse.de>
18428         PR tree-optimization/64530
18429         * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
18430         back dr1.
18432 2015-01-12  Richard Biener  <rguenther@suse.de>
18434         PR middle-end/64357
18435         * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
18436         latches properly.
18438 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18440         * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
18441         Cortex-A17 tuning parameters.
18442         * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
18444 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18446         * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
18447         * config/arm/arm.c (arm_macro_fusion_p): New function.
18448         (arm_macro_fusion_pair_p): Likewise.
18449         (TARGET_SCHED_MACRO_FUSION_P): Define.
18450         (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
18451         (ARM_FUSE_NOTHING): Likewise.
18452         (ARM_FUSE_MOVW_MOVT): Likewise.
18453         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
18454         arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
18455         arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
18456         arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
18457         arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
18458         arm_cortex_a5_tune): Specify fuseable_ops value.
18460 2015-01-12  H.J. Lu  <hongjiu.lu@intel.com>
18462         PR bootstrap/64561
18463         * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
18464         test for PIE with copy reloc.
18465         * configure: Regenerated.
18467 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18469         * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
18470         in gen_rtx_REG.
18471         (arm_tls_descseq_addr): Likewise.
18472         (arm_gen_movmemqi): Likewise.
18473         (arm_expand_epilogue_apcs_frame): Likewise.
18474         (arm_expand_epilogue): Likewise.
18475         (arm_expand_prologue): Likewise.  Use R1_REGNUM instead of constant 1
18476         in gen_rtx_REG.
18478 2015-01-12  Martin Liska  <mliska@suse.cz>
18480         PR ipa/64550
18481         * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
18482         volatility for correct operands.
18484 2015-01-12  Martin Liska  <mliska@suse.cz>
18486         * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
18487         indication that a function is not leaf.
18488         (sem_function::compare_polymorphic_p): Likewise.
18490 2015-01-12  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
18492         * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
18493         machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
18494         fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
18495         fold-const.h, tree-check.h.
18497 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
18499         PR ipa/63967
18500         PR ipa/64425
18501         * ipa-inline.c (compute_uninlined_call_time,
18502         compute_inlined_call_time): Use counts for extra precision when
18503         needed possible.
18504         (big_speedup_p): Fix formating.
18505         (RELATIVE_TIME_BENEFIT_RANGE): Remove.
18506         (relative_time_benefit): Remove.
18507         (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
18508         merge guessed and read profile paths.
18509         (inline_small_functions): Count only !optimize_size functions into
18510         initial size; be more lax about sanity check when profile is used;
18511         be sure to update inlined function profile when profile is read.
18513 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
18515         PR ipa/63470
18516         * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
18517         cost when edge becomes direct.
18518         * ipa-prop.c (make_edge_direct): Do not adjust when speculation
18519         is resolved or when introducing new speculation.
18521 2015-01-12  Chen Gang  <gang.chen.5i5j@gmail.com>
18523         PR ipa/64551
18524         PR ipa/64552
18525         * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
18526         '||' to fix typo issue.
18528         * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
18529         accept and return NULL.
18531 2015-01-12  Martin Liska  <mliska@suse.cz>
18533         * cgraph.c (cgraph_edge::remove_callee): Move function to header
18534         file for being inlined.
18535         (cgraph_set_edge_callee): Delete.
18536         (cgraph_edge::redirect_callee): Move function to header file
18537         for being inlined.
18538         (cgraph_edge::make_direct): Use new function.
18539         (cgraph_edge::dump_edge_flags): New function created from
18540         static dump_edge_flags function.
18541         (cgraph_node::dump): Use new function.
18542         (cgraph_edge::verify_count_and_frequency): New function created
18543         from verify_edge_count_and_frequency.
18544         (cgraph_edge::verify_corresponds_to_fndecl): New function created
18545         from verify_edge_corresponds_to_fndecl.
18546         (verify_edge_corresponds_to_fndecl): Delete.
18547         (cgraph_node::verify_node): Use new function.
18548         * cgraph.h (cgraph_edge::set_callee): New function.
18549         (cgraph_edge::dump_edge_flags): Likewise.
18550         (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
18552 2015-01-11  Jan Hubicka  <hubicka@ucw.cz>
18554         * ipa-utils.c (estimate_function_body_sizes): Do not
18555         free node params when called late with early=true.
18557 2015-01-11  James Greenhalgh  <james.greenhalgh@arm.com>
18559         * doc/md.texi (Instruction Patterns): Rewrite text for
18560         clarity.
18561         (Example): Likewise.
18563 2015-01-10  Sandra Loosemore  <sandra@codesourcery.com>
18565         * doc/invoke.texi (Option Summary): Break long lines.
18566         [(-fdiagnostics-color)]: Put long literal in @smallexample
18567         instead of inline.
18568         [(-fsanitize-recover)]: Likewise.
18569         [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
18570         [(-ffast-math)]: Likewise.
18571         [(--param max-inline-insns-recursive)]: Likewise.
18572         [(--param max-inline-recursive-depth)]: Likewise.
18573         [(-mno-text-section-literals)]: Likewise.
18575 2015-01-10  Thomas Schwinge  <thomas@codesourcery.com>
18577         * doc/install.texi: Update for libgomp being renamed from "GNU
18578         OpenMP Runtime Library" to "GNU Offloading and Multi Processing
18579         Runtime Library".
18580         * doc/sourcebuild.texi: Likewise.
18582 2015-01-10  Anthony Green  <green@moxielogic.com>
18584         * config/moxie/moxie.c (moxie_option_override): Fix forcing of
18585         mul.x availability for moxiebox configuration.
18587 2015-01-09  Anthony Green  <green@moxielogic.com>
18589         * config/moxie/moxie.md: Tabify assembly output.
18591 2015-01-09  Anthony Green  <green@moxielogic.com>
18593         * config/moxie/moxie.md (CC_REG): Correct register definition.
18595 2015-01-09  Sandra Loosemore  <sandra@codesourcery.com>
18597         * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
18598         ([-fvtv-debug], [-fvtv-counts]): Likewise.  Correct location
18599         of log files.
18601 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
18603         * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
18605 2015-01-09  Bernd Schmidt  <bernds@codesourcery.com>
18606             Jakub Jelinek  <jakub@redhat.com>
18608         PR middle-end/64412
18609         * lto-streamer.h (lto_stream_offload_p): New declaration.
18610         * lto-streamer.c (lto_stream_offload_p): New variable.
18611         * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
18612         at the same time as section_name_prefix.
18613         * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
18614         if lto_stream_offload_p.
18615         * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
18616         stream TREE_TARGET_OPTION if lto_stream_offload_p.
18617         (write_ts_function_decl_tree_pointers): Don't
18618         stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
18619         * tree-streamer-in.c (unpack_value_fields): Don't stream
18620         TREE_TARGET_OPTION in if ACCEL_COMPILER.
18621         (lto_input_ts_function_decl_tree_pointers): Don't stream
18622         DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
18623         * lto-opts.c (lto_write_options): Use lto_stream_offload_p
18624         instead of section_name_prefix string comparisons.
18626 2015-01-09  Jakub Jelinek  <jakub@redhat.com>
18628         PR rtl-optimization/64536
18629         * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
18630         tablejumps.
18632 2015-01-09  Michael Collison  <michael.collison@linaro.org>
18634         PR tree-optimization/64322
18635         * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
18636         range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
18638 2015-01-09  Tom de Vries  <tom@codesourcery.com>
18640         PR rtl-optimization/64539
18641         * regcprop.c (kill_clobbered_values): Factor out of ...
18642         (copyprop_hardreg_forward_1): ... here.  Use kill_clobbered_values
18643         instead of note_stores with kill_clobbered_value.
18645 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
18647          * ginclude/unwind-arm-common.h: Revert previous commit.
18649 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
18651         * config.gcc (arm*-*-freebsd*): New configuration.
18652         * config/arm/freebsd.h: New file.
18653         * config.host: Add extra components for arm*-*-freebsd*.
18654         * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
18655         * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
18657 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
18659         * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
18660         for -mcpu=e6500.
18661         * config/rs6000/t-rtems: Add e6500 multilibs.
18663 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
18665         * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
18666         MPC8540.
18668 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
18670         * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
18671         MULTILIB_EXCEPTIONS.
18673 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
18675         * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
18676         MULTILIB_EXCEPTIONS.
18678 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
18680         * config/arm/t-rtems-eabi: Rename to...
18681         * config/arm/t-rtems: ...this.
18682         * config/arm/rtems-eabi.h: Rename to...
18683         * config/arm/rtems.h: ...this.
18684         * config.gcc (arm*-*-rtems*): Reflect changes above.
18686 2015-01-09  Richard Biener  <rguenther@suse.de>
18688         PR tree-optimization/64410
18689         * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
18690         on the LHS.
18691         (execute_update_addresses_taken): Deal with that.
18692         * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
18693         loads/stores for complex variables.
18695 2015-01-09  Martin Liska  <mliska@suse.cz>
18697         * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
18698         name comparison.
18699         (func_checker::compare_memory_operand): New function.
18700         (func_checker::compare_operand): Split case to newly
18701         added functions.
18702         (func_checker::compare_cst_or_decl): New function.
18703         (func_checker::compare_gimple_call): Identify
18704         memory operands.
18705         (func_checker::compare_gimple_assign): Likewise.
18706         * ipa-icf-gimple.h: New function.
18708 2015-01-09  Martin Liska  <mliska@suse.cz>
18710         PR ipa/64503
18711         * sreal.c (sreal::dump): Change unsigned format to signed for
18712         m_exp value.
18713         (sreal::to_double): Replace exp2 with scalbln.
18715 2015-01-09  Martin Liska  <mliska@suse.cz>
18717         * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
18718         * ipa-icf.c (sem_function::equals_private): Add support for target and
18719         (sem_item_optimizer::merge_classes): Remove redundant function
18720         optimization flags comparison.
18721         * tree.h (target_opts_for_fn): New function.
18723 2015-01-09  Tom de Vries  <tom@codesourcery.com>
18725         * omp-low.c (expand_omp_for_static_chunk): Fix assert.
18727 2015-01-09  Kito Cheng  <kito@0xlab.org>
18729         PR rtl-optimization/64348
18730         * lra-constraints.c (split_reg): Fix caller-save store/restore
18731         instruction generation.
18733 2015-01-08  John David Anglin  <danglin@gcc.gnu.org>
18735         PR gcov-profile/61790
18736         * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
18737         long long.  Fallback to int64_t if host doesn't have long long and
18738         use strtol if int64_t is long.  Otherwise, use sscanf for conversion.
18740 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
18742         PR tree-optimization/63989
18743         * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
18744         from 1000 to 10000.
18745         * tree-ssa-strlen.c (get_strinfo): Moved earlier.
18746         (get_stridx): If we don't have a record for certain SSA_NAME,
18747         but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
18748         constant offset, call get_stridx_plus_constant.
18749         (get_stridx_plus_constant): New function.
18750         (zero_length_string): Don't use get_stridx here.
18752         PR target/55023
18753         PR middle-end/64388
18754         * dse.c (struct insn_info): Mention frame_read set also
18755         before reload for tail calls on some targets.
18756         (scan_insn): Revert 2014-12-22 change.  Set frame_read
18757         also before reload for tail calls if
18758         HARD_FRAME_POINTER_IS_ARG_POINTER.  Call add_wild_read
18759         instead of add_non_frame_wild_read for non-const/memset
18760         tail calls after reload.
18762 2015-01-08  Jason Merrill  <jason@redhat.com>
18764         * ubsan.c (do_ubsan_in_current_function): New.
18765         (pass_ubsan::gate): Use it.
18766         * ubsan.h: Declare it.
18767         * convert.c (convert_to_integer): Use it.
18769 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
18771         PR target/64338
18772         * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
18773         compare_code when it is unconditionally overwritten afterwards.
18774         Use ix86_reverse_condition instead of reverse_condition.  Don't
18775         change code if *reverse_condition* returned UNKNOWN and don't
18776         swap ct/cf and negate diff in that case.
18778 2015-01-08  Mike Stump  <mikestump@comcast.net>
18780         * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
18781         (pass_tsan_O0::gate): Likewise.
18782         * extend.texi (Function Attributes): Add no_sanitize_thread
18783         documentation.
18785 2015-01-08  Thomas Schwinge  <thomas@codesourcery.com>
18787         * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
18788         for registering builtins.
18789         * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
18790         add -fopenmp to the argv_obstack used when invoking
18791         compile_for_target.
18793         * config/i386/intelmic-mkoffload.c (compile_for_target): Always
18794         add "-m32" or "-m64" to argv_obstack.
18795         (generate_host_descr_file): Likewise, when invoking host_compiler.
18796         (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
18797         ld.
18799 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
18801         * config/sh/sh-mem.cc: Use constant as second operand when emitting
18802         tstsi_t insns.
18804 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
18806         PR target/55212
18807         * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
18808         constant load if constant operand fits into I08.
18810 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
18812         PR sanitizer/64336
18813         * tree.c (build2_stat): Fix up initialization of TREE_READONLY
18814         and TREE_THIS_VOLATILE for MEM_REFs.
18815         (build5_stat): Fix up initialization of TREE_READONLY and
18816         TREE_THIS_VOLATILE for TARGET_MEM_REFs.
18818 2015-01-08  Kaz Kojima  <kkojima@gcc.gnu.org>
18820         PR target/64533
18821         * config/sh/sh.md (*addsi3_compact): Use u constraint instead
18822         of r for the second alternative of the destination operand.
18824 2015-01-07  Segher Boessenkool  <segher@kernel.crashing.org>
18826         PR target/36557
18827         * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
18829 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
18831         * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
18832         keywords.
18833         ([-fivar-visibility], [-fvisibility]): Likewise.
18835 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
18837         * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
18838         the file where @code, @command, etc is more appropriate.
18840 2015-01-06  Sandra Loosemore  <sandra@codesourcery.com>
18842         * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
18843         of -mrecip= documentation.
18845 2015-01-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
18847         PR target/64505
18848         * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
18849         correct reload handler if -m32 -mpowerpc64 is used.
18851 2015-01-06  Tom de Vries  <tom@codesourcery.com>
18853         * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
18855 2015-01-08  Christian Bruel  <christian.bruel@st.com>
18857         PR target/64507
18858         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
18860 2015-01-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
18862         PR tree-optimization/63259
18863         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
18864         if optab exists for 16bit byteswap.
18866 2015-01-06  Jakub Jelinek  <jakub@redhat.com>
18868         * opts.c (common_handle_option): Add support for
18869         -fno-sanitize=all and -f{,no-}sanitize-recover=all.
18870         * doc/invoke.texi: Document -fno-sanitize=all,
18871         -f{,no-}sanitize-recover=all.  Document that
18872         -fsanitize=float-cast-overflow is not enabled
18873         by -fsanitize=undefined.  Fix up documentation
18874         of -f{,no-}sanitize-recover.
18876 2015-01-06  Eric Botcazou  <ebotcazou@adacore.com>
18878         * config.gcc: Add Visium support.
18879         * configure.ac: Likewise.
18880         * configure: Regenerate.
18881         * doc/extend.texi (interrupt attribute): Add Visium.
18882         * doc/invoke.texi: Document Visium options.
18883         * doc/install.texi: Document Visium target.
18884         * doc/md.texi: Document Visium constraints.
18885         * common/config/visium: New directory.
18886         * config/visium: Likewise.
18888 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
18890         * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
18891         for the "(and X (ior (not X) Y) -> (and X Y)" transform.
18893 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
18895         * combine.c (combine_validate_cost): Do not count the cost of a
18896         split I2 twice.  Do not display it twice in the dump, either.
18898 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
18900         Revert parts of r219199.
18901         * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
18902         <inttypes.h>.
18903         ([-Wtraditional]): Restore markup on <limits.h>.
18905 2015-01-05  Trevor Saunders  <tsaunders@mozilla.com>
18907         PR c++/31397
18908         * doc/invoke.texi: Document -Wsuggest-override.
18910 2015-01-05  Radovan Obradovic  <radovan.obradovic@imgtec.com>
18912         PR rtl-optimization/64287
18913         * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
18914         (process_options): Disable flag_ipa_ra if profiling.
18916 2015-01-05  Eric Botcazou  <ebotcazou@adacore.com>
18918         * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
18920 2015-01-05  Max Filippov  <jcmvbkbc@gmail.com>
18922         * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
18923         hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
18924         put under #if TARGET_LOOPS guard.
18926 2015-01-05  Uros Bizjak  <ubizjak@gmail.com>
18928         * config/i386/i386.c (output_387_binary_op): Use std::swap.
18930 2015-01-05  Oleg Endo  <olegendo@gcc.gnu.org>
18932         * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
18933         * rtl.h (refers_to_regno_p): Add overload.
18934         * cse.c: Use it.
18935         * bt-load.c: Likewise.
18936         * combine.c: Likewise.
18937         * df-scan.c: Likewise.
18938         * sched-deps.c: Likewise.
18939         * config/s390/s390.c: Likewise.
18940         * config/m32r/m32r.c: Likewise.
18941         * config/rs6000/spe.md: Likewise.
18942         * config/rs6000/rs6000.c: Likewise.
18943         * config/pa/pa.c: Likewise.
18944         * config/stormy16/stormy16.c: Likewise.
18945         * config/cris/cris.c: Likewise.
18946         * config/arc/arc.md: Likewise.
18947         * config/arc/arc.c: Likewise.
18948         * config/sh/sh.md: Likewise.
18949         * config/sh/sh.c: Likewise.
18950         * config/frv/frv.c: Likewise.
18952 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
18954         PR sanitizer/64265
18955         * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
18956         call as cleanup of the whole body.
18957         * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
18958         * tsan.c (replace_func_exit): New function.
18959         (instrument_func_exit): Moved earlier.
18960         (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
18961         Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
18962         been found.
18963         (tsan_pass): Don't call instrument_func_exit.
18964         * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
18965         * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
18966         inlining.
18968         PR sanitizer/64344
18969         * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
18970         * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
18971         it to libubsan handler instead of EXPR.  Fold comparisons earlier,
18972         if the result is integer_zerop, return NULL_TREE.
18973         * convert.c (convert_to_integer): Pass expr as ARG.
18975         PR tree-optimization/64465
18976         * tree-inline.c (redirect_all_calls): During inlining
18977         clean up EH stmts and EH edges if redirect_call_stmt_to_callee
18978         changed the stmt to a non-throwing call.
18980 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
18982         * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
18983         etc markup throughout the file.
18985 2015-01-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
18987         Enable experimental TSAN support for Ada.
18988         * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
18990 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
18992         PR tree-optimization/64494
18993         * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
18994         clear SSA_NAME_ANTI_RANGE_P flag.
18996 2015-01-05  Marek Polacek  <polacek@redhat.com>
18998         * doc/extend.texi (Arrays of Length Zero): Add missing comma.
19000 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
19002         Update copyright years.
19004         * gcc.c (process_command): Update copyright notice dates.
19005         * gcov-dump.c: Ditto.
19006         * gcov.c: Ditto.
19007         * doc/cpp.texi: Bump @copying's copyright year.
19008         * doc/cppinternals.texi: Ditto.
19009         * doc/gcc.texi: Ditto.
19010         * doc/gccint.texi: Ditto.
19011         * doc/gcov.texi: Ditto.
19012         * doc/install.texi: Ditto.
19013         * doc/invoke.texi: Ditto.
19015         * auto-profile.c, auto-profile.h: Fix up Copyright line.
19017 2015-01-04  Sandra Loosemore  <sandra@codesourcery.com>
19019         * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
19020         verb tense, etc.
19021         ([-fvtable-verify], [-fvtv-debug]): Likewise.
19022         ([-Wabi]): Likewise.
19023         ([-fmessage-length]): Likewise.
19024         ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
19025         ([-Wno-discarded-qualifiers]): Likewise.
19026         ([-Wnodiscarded-array-qualifiers]): Likewise.
19027         ([-Wno-virtual-move-assign]): Likewise.
19028         ([-fsanitize=address], [-fsanitize=thread]): Likewise.
19029         ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
19030         ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
19031         ([-fsanitize-undefined-trap-on-error]): Likewise.
19032         ([-floop-interchange]): Likewise.
19033         ([-ftree-coalesce-inlined-vars]): Likewise.
19034         ([-fvect-cost-model]): Likewise.
19035         ([-flto]): Likewise.
19036         ([--param]): Likewise.
19037         (Spec Files): Likewise.
19038         ([-mstrict-align]): Likewise.
19039         ([-mfix-cortex-a53-835769]): Likewise.
19040         ([-march], [-mtune]): Likewise.
19041         ([-mpic-register]): Likewise.
19042         ([-munaligned-access]): Likewise.
19043         ([-msp8]): Likewise.
19044         (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
19045         (AVR Built-in Macros): Likewise.
19046         ([-mpreferred-stack-boundary]): Likewise.
19047         ([-mtune-crtl]): Likewise.
19048         ([-mashf]): Likewise.
19049         ([-mmcu=]): Likewise.
19050         ([-minrt]): Likewise.
19051         ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
19052         ([-mupper-regs]): Likewise.
19053         ([-matomic-model]): Likewise.
19054         ([-mdiv]): Likewise.
19055         ([-mzdcbranch]): Likewise.
19056         ([-mdisable-callt]): Likewise.
19057         ([-msoft-float]): Likewise.
19058         ([-m8byte-align]): Likewise.
19059         ([-fstack-reuse]): Likewise.
19061 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
19063         * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
19064         Fix markup, light copy-editing.
19065         ([-fauto-profile]): Rewrite to fix formatting and content
19066         problems.
19068 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
19070         * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
19071         Copy-edit description.
19072         ([-fisolate-erroneous-paths-attribute]): Likewise.
19073         * common.opt (fisolate-erroneous-paths-dereference):
19074         Copy-edit description.
19075         (fisolate-erroneous-paths-attribute): Likewise.
19077 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
19079         * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
19080         tidy grammar.
19082 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
19084         * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
19085         ([-fvtv-debug]): Likewise.
19086         ([-Wc++-compat]): Likewise.
19087         ([-Wc++11-compat]): Likewise.
19088         ([-Wc++14-compat]): Likewise.
19089         ([-Wno-sized-deallocation]): Likewise.
19090         ([-femit-class-debug-always]): Likewise.
19091         ([-femit-struct-debug-detailed]): Likewise.
19092         ([-fno-keep-inline-dllexport]): Likewise.
19093         ([-fira-algorithm]): Likewise.
19094         ([-fira-region]): Likewise.
19095         ([-flra-remat]): Likewise.
19096         ([-fipa-ra]): Likewise.
19097         ([-fhoist-adjacent-loads]): Likewise.
19098         ([-fisolate-erroneous-paths-dereference]): Likewise.
19099         ([-fisolate-erroneous-paths-attribute]): Likewise.
19100         ([-ftree-switch-conversion]): Likewise.
19101         ([-ftree-tail-merge]): Likewise.
19102         ([-ftree-loop-if-convert]): Likewise.
19103         ([-ftree-loop-if-convert-stores]): Likewise.
19104         ([-ftree-loop-distribution]): Likewise.
19105         ([-ftree-loop-distribute-patterns]): Likewise.
19106         ([-flto-compression-level]): Likewise.
19107         ([-flto-report]): Likewise.
19108         ([-flto-report-wpa]): Likewise.
19109         ([-fuse-linker-plugin]): Likewise.
19110         ([-mfix-cortex-a53-835769]): Likewise.
19111         ([-mno-fix-cortex-a53-835769]): Likewise.
19112         ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
19113         explicit listing; add a note to the discussion indicating they
19114         exist.  Reorder table to group similar options.  Add missing
19115         @opindex entries.  Add @need commands throughout the table to
19116         allow it to be split across multiple pages.
19117         ([-m8bit-idiv]): Fix @opindex.
19118         ([-mavx256-split-unaligned-load]): Likewise.
19119         ([-mavx256-split-unaligned-store]): Likewise.
19120         ([-mstack-protector-guard]): Likewise.
19121         ([-mcpu=]): Likewise.
19122         ([-mcpu]): Likewise.
19123         ([-mpointer-size=]): Likewise.
19125 2015-01-03  John David Anglin  <danglin@gcc.gnu.org>
19127         * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
19128         instead of `m' constraint.  Likewise for unnamed movb comparison
19129         patterns using reg_before_reload_operand predicate.
19130         * config/pa/predicates.md (reg_before_reload_operand): Tighten
19131         predicate to reject register index and LO_SUM DLT memory forms
19132         after reload.
19134 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
19136         * doc/invoke.texi (Option Summary): Fix spelling of
19137         -fdevirtualize-at-ltrans.
19138         ([-fdevirtualize]): Fix markup.
19139         ([-fdevirtualize-speculatively]): Fix typo.
19140         ([-fdevirtualize-at-ltrans]): Likewise.  Make description less
19141         implementor-speaky.
19142         * common.opt (fdevirtualize-at-ltrans): Likewise.
19143         * ipa-devirt.c: Fix typos in comments throughout the file.
19144         (ipa_devirt): Fix typos in format strings for dump output.
19146 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
19148         * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
19149         discussion of defaults, light copy-editing.
19151 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
19153         * tsan.c (instrument_expr): corrected previous checkin.
19155 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
19157         Instrument bit field and unaligned accesses for TSAN.
19158         * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
19159         (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
19160         * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
19161         Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
19162         unaligned memory regions.
19164 2015-01-01  Anthony Green  <green@moxielogic.com>
19166         * config/moxie/predicates.md (moxie_general_movsrc_operand):
19167         Restrict move source register offsets to 16 bits.
19169 Copyright (C) 2015 Free Software Foundation, Inc.
19171 Copying and distribution of this file, with or without modification,
19172 are permitted in any medium without royalty provided the copyright
19173 notice and this notice are preserved.