PR tree-optimization/66718
[official-gcc.git] / gcc / ChangeLog
blob13f9ba75dc47b634e44cf01ad6df95498dc5d05d
1 2015-07-05  Jakub Jelinek  <jakub@redhat.com>
3         PR tree-optimization/66718
4         * tree-vect-stmts.c (vectorizable_call): Replace uses of
5         GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
7         PR tree-optimization/66718
8         * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
9         vectorizable_load, vectorizable_condition): Move vectype,
10         nunits, ncopies computation after checking what kind of statement
11         stmt is.
13 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
15         * target-insns.def (extv, extzv, insv): New targetm instruction
16         patterns.
17         * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
18         interface.
19         * recog.c (simplify_while_replacing): Likewise.
21 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
23         * target-insns.def (doloop_begin, doloop_end): New targetm
24         instruction patterns.
25         * loop-init.c: Include target.h.
26         (pass_loop2::gate): Use the new targetm patterns instead of
27         HAVE_*/gen_* interface.
28         (pass_rtl_doloop::gate): Likewise.
29         (pass_rtl_doloop::execute): Remove preprocessor condition.
30         * hw-doloop.c: Build unconditionally.
31         * loop-doloop.c: Likewise.
32         (doloop_optimize): Use the new targetm patterns instead of
33         HAVE_*/gen_* interface.
34         (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
35         * modulo-sched.c (doloop_register_get): Likewise.
37 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
39         * target-insns.def (clear_cache): New targetm instruction pattern.
40         * builtins.c (expand_builtin___clear_cache): Use it instead of
41         HAVE_*/gen_* interface.
43 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
45         * target-insns.def (allocate_stack, check_stack, probe_stack)
46         (probe_stack_address, split_stack_prologue, split_stack_space_check):
47         New targetm instruction patterns.
48         * explow.c (allocate_dynamic_stack_space): Use them instead of
49         HAVE_*/gen_* interface.
50         (emit_stack_probe): Likewise.
51         (probe_stack_range): Likewise.
52         * function.c (thread_prologue_and_epilogue_insns): Likewise.
54 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
56         * target-insns.def (stack_protect_set, stack_protect_test): New
57         targetm instruction patterns.
58         * cfgexpand.c (stack_protect_prologue): Use them instead of
59         HAVE_*/gen_* interface.
60         * function.c (stack_protect_epilogue): Likewise.
62 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
64         * expr.h (gen_move_insn_uncast): Delete.
65         * expr.c (gen_move_insn_uncast): Delete.
67 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
69         * target-insns.def (restore_stack_block, restore_stack_function)
70         (restore_stack_nonlocal, save_stack_block, save_stack_function)
71         (save_stack_nonlocal): New targetm instruction patterns.
72         * builtins.c (expand_builtin_apply): Use them instead of
73         HAVE_*/gen_* interface.
74         * explow.c (emit_stack_save, emit_stack_restore): Likewise.
76 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
78         * target-insns.def (trap): New targetm instruction pattern.
79         * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
80         interface.
81         * explow.c (allocate_dynamic_stack_space): Likewise.
82         * ifcvt.c (find_if_header): Likewise.
84 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
86         * target-insns.def (prefetch): New targetm instruction pattern.
87         * tree-ssa-loop-prefetch.c: Include targeth.
88         (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
89         of HAVE_*/gen_* interface.
90         * builtins.c (expand_builtin_prefetch): Likewise.
91         * toplev.c (process_options): Likewise.
93 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
95         * target-insns.def (untyped_call, untyped_return): New targetm
96         instruction patterns.
97         * builtins.c (expand_builtin_apply): Use them instead of
98         HAVE_*/gen_* interface.
99         (result_vector): Define unconditionally.
101 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
103         * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
104         (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
105         (nonlocal_goto_receiver): New targetm instruction patterns.
106         * builtins.c (expand_builtin_setjmp_setup): Use them instead
107         of HAVE_*/gen_* interface.
108         (expand_builtin_setjmp_receiver): Likewise.
109         (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
110         * except.c (expand_dw2_landing_pad_for_region): Likewise.
112 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
114         * target.def: Add code_for_* hooks.
115         * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
116         * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
117         * target-insns.def (casesi, tablejump): New targetm instruction
118         patterns.
119         * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
120         (do_tablejump): Likewise.
121         * stmt.c (expand_switch_as_decision_tree_p): Likewise.
122         (expand_sjlj_dispatch_table): Likewise.
123         * targhooks.c (default_case_values_threshold): Likewise.
125 2015-07-04  Sandra Loosemore  <sandra@codesourcery.com>
127         * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
128         Use rtx_insn * instead of rtx.
129         (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
130         (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
131         (nios2_call_tls_get_addr): Likewise.
132         (nios2_emit_expensive_div): Likewise.
133         (nios2_emit_move_sequence): Change return type to bool.
134         * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
135         Change return type to bool.
137 2015-07-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
139         PR target/66747
140         * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
142 2015-07-04  John David Anglin  <danglin@gcc.gnu.org>
144         PR target/66114
145         * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
146         of register_operand.  Remove constraint.
148 2015-07-04  Marc Glisse  <marc.glisse@inria.fr>
150         * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
151         the first argument.
153 2015-07-03  Paolo Carlini  <paolo.carlini@oracle.com>
155         * attribs.c (decl_attributes): Guard inform with the return value
156         of the preceding warning.
158 2015-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
160         * doc/invoke.texi (moverride): Move to correct section.
162 2015-07-03  Richard Biener  <rguenther@suse.de>
164         * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
165         Copy from tree.c
166         (dt_operand::gen_gimple_expr): After valueizing operands
167         re-canonicalize operand order for commutative tree codes.
169 2015-07-03  H.J. Lu  <hongjiu.lu@intel.com>
171         PR target/66746.
172         * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
173         is defined.
174         (__crc32w): Likewise.
175         (__crc32d): Likewise.
176         (__rdpmc): Likewise.
177         (__rdtscp): Likewise.
178         (_rdpmc): Likewise.
179         (_rdtscp): Likewise.
180         * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
181         is defined.
183 2015-07-03  Richard Biener  <rguenther@suse.de>
185         * fold-const.c (fold_mathfn_compare): Remove.
186         (fold_inf_compare): Likewise.
187         (fold_comparison): Move floating point comparison simplifications...
188         * match.pd: ... to patterns here.  Introduce simple_comparisons
189         operator list and use it for patterns formerly in fold_comparison.
191 2015-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
193         PR tree-optimization/66119
194         * toplev.c (process_options): Don't set up default values for
195         the sra_max_scalarization_size_{speed,size} parameters.
196         * tree-sra (analyze_all_variable_accesses): If no values
197         have been set for the sra_max_scalarization_size_{speed,size}
198         parameters, call get_move_ratio to get target defaults.
200 2015-07-03  Richard Biener  <rguenther@suse.de>
202         * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
203         * match.pd: ... here.
205 2015-07-03  Gerald Pfeifer  <gerald@pfeifer.com>
207         PR target/37072
208         * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
209         is not actually the default on FreeBSD.
211 2015-07-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
213         * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
214         definition.
215         (CMPGE_8HI): Likewise.
216         (CMPGE_4SI): Likewise.
217         (CMPGE_2DI): Likewise.
218         (CMPGE_U16QI): Likewise.
219         (CMPGE_U8HI): Likewise.
220         (CMPGE_U4SI): Likewise.
221         (CMPGE_U2DI): Likewise.
222         (CMPLE_16QI): Likewise.
223         (CMPLE_8HI): Likewise.
224         (CMPLE_4SI): Likewise.
225         (CMPLE_2DI): Likewise.
226         (CMPLE_U16QI): Likewise.
227         (CMPLE_U8HI): Likewise.
228         (CMPLE_U4SI): Likewise.
229         (CMPLE_U2DI): Likewise.
230         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
231         overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
232         ALTIVEC_BUILTIN_VEC_CMPLE.
233         * config/rs6000/vector.md (vector_ge<mode>): Restrict to
234         floating-point vector modes.
235         (vector_nlt<mode>): New define_expand.
236         (vector_nltu<mode>): Likewise.
237         (vector_ngt<mode>): Likewise.
238         (vector_ngtu<mode>): Likewise.
240 2015-07-02  Segher Boessenkool  <segher@kernel.crashing.org>
242         PR rtl-optimization/66706
243         * combine.c (make_compound_operation): If an AND of SUBREG of
244         LSHIFTRT does not simplify, see if just the AND of SUBREG does.
246 2015-07-02  Alan Lawrence  <alan.lawrence@arm.com>
248         * tree-pass.h (make_pass_ch_vect): New.
249         * passes.def: Add pass_ch_vect just before pass_if_conversion.
251         * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
252         pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
253         make_pass_ch_vect): New.
254         (pass_ch): Extend ch_base.
256         (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
257         (ch_base::copy_headers): ...here.
259 2015-07-02  Richard Biener  <rguenther@suse.de>
261         * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
262         * fold-const.c (get_pointer_modulus_and_residue): Remove.
263         (fold_binary_loc): Implement (T)ptr & CST in terms of
264         get_pointer_alignment_1.
265         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
266         Make sure to build the alignment test on a SSA name without
267         final alignment info valid only after the prologue.
269 2015-07-02  Hans-Peter Nilsson  <hp@axis.com>
271         * config/cris/cris.md ("epilogue"): Remove condition.
272         ("prologue"): Ditto.
274 2015-07-02  Richard Biener  <rguenther@suse.de>
276         * tree-ssa-dom.c (build_and_record_new_cond): Add optional
277         parameter to record a condition that is false.
278         (record_conditions): When recording an extra NE_EXPR that is
279         true also record a EQ_EXPR that is false.
281 2015-07-02  Bin Cheng  <bin.cheng@arm.com>
283         * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
284         (tree_ssa_iv_optimize_init): Initialize iv_obstack.
285         (alloc_iv): New parameter.  Allocate struct iv using obstack_alloc.
286         (set_iv, find_interesting_uses_address, add_candidate_1): New
287         argument to alloc_iv.
288         (find_interesting_uses_op, find_interesting_uses_cond): Don't
289         duplicate struct iv.
290         (free_loop_data): Don't free struct iv explicitly.
291         (tree_ssa_iv_optimize_finalize): Free iv_obstack.
293 2015-07-01  DJ Delorie  <dj@redhat.com>
295         * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
296         (LIB_SPEC): Add.
297         (SUPPORTS_DISCRIMINATOR): Define.
299 2015-07-01  Richard Sandiford  <richard.sandiford@arm.com>
301         PR bootstrap/66685
302         * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
303         there are no CALLs in the same pattern.
305 2015-07-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
307         PR rtl-optimization/61047
308         * rtlanal.c (get_initial_register_offset): New function.
309         (rtx_addr_can_trap_p_1): Check offsets of stack references.
311 2015-07-01  Richard Biener  <rguenther@suse.de>
313         * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
314         X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
315         ~X CMP C -> X CMP' ~C to ...
316         * match.pd: ... patterns here.
318 2015-07-01  Nick Clifton  <nickc@redhat.com>
320         * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
321         a 16-bit value into a 20-bit memory slot.
323 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
325         * doc/sourcebuild.texi (AArch64-specific attributes): Document
326         "aarch64_tiny", "aarch64_small", "aarch64_large",
327         "aarch64_little_endian", "aarch64_big_endian".
329 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
331         * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
332         Document "aarch64_small_fpic".
334 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
336         * configure.ac: Add check for aarch64 assembler -fpic relocation
337         modifier support.
338         * configure: Regenerate.
339         * config.in: Regenerate.
340         * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
341         to -fPIC if not support of -fpic relocation modifier in assembler.
343 2015-07-01  Richard Sandiford  <richard.sandiford@arm.com>
345         PR bootstrap/66685
346         * rtl.c (classify_insn): Handle returns in PARALLELs.
348 2015-07-01  Eric Botcazou  <ebotcazou@adacore.com>
350         PR middle-end/66633
351         * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
352         to true if the function is nested and if not optimizing.
353         (convert_local_omp_clauses): Initialize need_frame to true if the
354         function contains nested functions and if not optimizing.
356 2015-07-01  Richard Biener  <rguenther@suse.de>
358         * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
359         (X & Y) ^ Y -> ~X & Y transforms to ...
360         * match.pd: ... here.
362 2015-07-01  Richard Biener <rguenther@suse.de>
364         * genmatch.c (expr::gen_transform): Shortcut re-simplifying
365         of converts to avoid uninteresting noise from the conversion
366         simplifying patterns.
368 2015-06-30  Sandra Loosemore <sandra@codesourcery.com>
370         * config/c6x/c6x.c (try_rename_operands): Do not depend on
371         gcc_assert evaluating its argument for side-effect.
373 2015-06-30  Kaz Kojima  <kkojima@gcc.gnu.org>
375         PR target/64833
376         * config/sh/sh.md (casesi_worker_1): Set length to 8 when
377         flag_pic is set.
379 2015-06-30  Eric Botcazou  <ebotcazou@adacore.com>
381         * lto-streamer-out.c (class DFS): Adjust hash_scc method.
382         (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
383         (hash_scc): Add this_ref_p and ref_p parameters and pass them
384         to the inner DFS walk.
386 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
388         * target-insns.def (jump): New targetm instruction pattern.
389         * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
390         instead of gen_jump.
391         (fix_up_crossing_landing_pad): Likewise.
392         (add_labels_and_missing_jumps): Likewise.
393         (fix_crossing_conditional_branches): Likewise.
394         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
395         (force_nonfallthru_and_redirect): Likewise.
396         * cse.c (cse_insn): Likewise.
397         * expmed.c (expand_divmod): Likewise.
398         * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
399         * haifa-sched.c (init_before_recovery): Likewise.
400         (sched_create_recovery_edges): Likewise.
401         * ifcvt.c (find_cond_trap): Likewise.
402         * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
403         (expand_float, expand_fix): Likewise.
404         * stmt.c (emit_jump): Likewise.
406 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
408         * defaults.h (HAVE_load_multiple, gen_load_multiple)
409         (HAVE_store_multiple, gen_store_multiple): Delete.
410         * target-insns.def (load_multiple, store_multiple): New targetm
411         instruction patterns.
412         * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
413         of HAVE_*/gen_* interface.
415 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
417         * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
418         (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
419         (gen_mem_signal_fence): Delete.
420         * target-insns.def (mem_signal_fence, mem_thread_fence)
421         (memory_barrier): New targetm instruction patterns.
422         * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
423         interface.
424         (expand_mem_signal_fence): Likewise.
426 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
428         * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
429         * target-insns.def (epilogue, prologue, sibcall_prologue): New
430         targetm instruction patterns.
431         * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
432         interface.
433         * calls.c (expand_call): Likewise.
434         * cfgrtl.c (cfg_layout_finalize): Likewise.
435         * df-scan.c (df_get_entry_block_def_set): Likewise.
436         (df_get_exit_block_use_set): Likewise.
437         * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
438         * final.c (final_start_function): Likewise.
439         * function.c (thread_prologue_and_epilogue_insns): Likewise.
440         (reposition_prologue_and_epilogue_notes): Likewise.
441         * reorg.c (find_end_label): Likewise.
442         * toplev.c (process_options): Likewise.
444 2015-06-30  David Malcolm  <dmalcolm@redhat.com>
446         * typed-splay-tree.h: New file.
448 2015-06-30  Vladimir Makarov  <vmakarov@redhat.com>
450         PR debug/66691
451         * lra-int.h (lra_substitute_pseudo): Add a parameter.
452         (lra_substitute_pseudo_within_insn): Ditto.
453         * lra.c (lra_substitute_pseudo): Add a parameter.  Simplify subreg
454         of constant.
455         (lra_substitute_pseudo_within_insn): Add a parameter.  Transfer it
456         to lra_substitute_pseudo.
457         * lra-lives.c (process_bb_lives): Add an argument to
458         lra_substitute_pseudo_within_insn call.
459         * lra-constraints.c (inherit_reload_reg, split_reg): Add an
460         argument to lra_substitute_pseudo and
461         lra_substitute_pseudo_within_insn calls.
462         (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
464 2015-06-30  H.J. Lu  <hongjiu.lu@intel.com>
466         * configure: Regenerated.
468 2015-06-30  H.J. Lu  <hongjiu.lu@intel.com>
470         * config.gcc: Support i[34567]86-*-elfiamcu target.
471         * config/i386/iamcu.h: New.
472         * config/i386/i386.opt: Add -miamcu.
473         * doc/invoke.texi: Document -miamcu.
474         * common/config/i386/i386-common.c  (ix86_handle_option): Turn
475         off x87/MMX/SSE/AVX codegen for -miamcu.
476         * config/i386/i386-c.c (ix86_target_macros_internal): Define
477         __iamcu/__iamcu__ for -miamcu.
478         * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
479         to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
480         (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
481         * config/i386/i386.c (ix86_option_override_internal): Ignore and
482         warn -mregparm for Intel MCU.  Turn on -mregparm=3 for Intel
483         MCU by default.  Default long double to 64-bit for Intel MCU.
484         Turn on -freg-struct-return for Intel MCU.  Issue an error when
485         -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
486         AVX is turned on.
487         (function_arg_advance_32): Pass value whose size is no larger
488         than 8 bytes in registers for Intel MCU.
489         (function_arg_32): Likewise.
490         (ix86_return_in_memory): Return value whose size is no larger
491         than 8 bytes in registers for Intel MCU.
492         (iamcu_alignment): New function.
493         (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
494         true.
495         (ix86_local_alignment): Don't increase alignment for Intel MCU.
496         (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
497         true.
499 2015-06-30  Marek Polacek  <polacek@redhat.com>
501         * match.pd (X - (X / Y) * Y): Use convert1 and convert2.  Convert
502         both operands of the resulting expression.      
504         * match.pd (~x | x): Don't use tree_nop_conversion_p.  Build
505         the final expression with the operand's type and then convert
506         it to the type of the expression.
508 2015-06-30  Richard Biener  <rguenther@suse.de>
510         * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
511         ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
512         (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
513         * match.pd: ... to patterns here.
515 2015-06-30  Richard Biener  <rguenther@suse.de>
517         PR tree-optimization/66704
518         * tree-vect-data-refs.c (vect_setup_realignment): Use
519         make_ssa_name for non-SSA name source.
521 2015-06-30  Jakub Jelinek  <jakub@redhat.com>
523         PR middle-end/66702
524         * omp-low.c (simd_clone_adjust): Handle addressable linear
525         or uniform parameters or non-gimple type uniform parameters.
527 2015-06-30  Richard Biener  <rguenther@suse.de>
529         * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
530         ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
531         ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
532         * match.pd: ... here.
533         Add a few cases of A - B -> A + (-B) when B "easily" negates.
534         Move (x & y) | x -> x and friends before
535         (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
537 2015-06-30  Eric Botcazou  <ebotcazou@adacore.com>
539         * config/sparc/leon.md (leon_load): Enable for all LEON variants if
540         -mfix-ut699 is not specified.
541         (leon3_load): Rename into...
542         (ut699_load): ...this.  Enable for all LEON variants if -mfix-ut699
543         is specified.
545 2015-06-30  Marek Polacek  <polacek@redhat.com>
547         * fold-const.c (fold_binary_loc): Move ~X | X folding ...
548         * match.pd: ... here.
550 2015-06-30  Richard Biener  <rguenther@suse.de>
552         * target-insns.def (canonicalize_funcptr_for_compare): Add.
553         * fold-const.c (build_range_check): Replace uses of
554         HAVE_canonicalize_funcptr_for_compare.
555         (fold_widened_comparison): Likewise.
556         (fold_sign_changed_comparison): Likewise.
557         * dojump.c: Include "target.h".
558         (do_compare_and_jump): Replace uses of
559         HAVE_canonicalize_funcptr_for_compare and
560         gen_canonicalize_funcptr_for_compare.
561         * expr.c (do_store_flag): Likewise.
563 2015-06-30  Tom de Vries  <tom@codesourcery.com>
565         PR tree-optimization/66652
566         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
567         max_loop_iterations to determine if nit + 1 overflows.
569 2015-06-30  Richard Biener  <rguenther@suse.de>
571         * tree-vrp.c (register_edge_assert_for_2): Also register
572         asserts for dominating conversion results.
574 2015-06-30  Bin Cheng  <bin.cheng@arm.com>
576         * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
577         field in struct iv.
579 2015-06-29  Jack Howarth  <howarth.at.gcc@gmail.com>
581         PR target/66509
582         * configure.ac: Fix filds and fildq test for 64-bit.
583         * configure: Regenerated.
585 2015-06-29  Nathan Sidwell  <nathan@codesourcery.com>
587         * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
588         (nvptx_reorg): Here.  Keep the non-subreg pieces.
590 2015-06-29  H.J. Lu  <hongjiu.lu@intel.com>
592         * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
593         PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
595 2015-06-29  Uros Bizjak  <ubizjak@gmail.com>
597         * config/i386/i386.md (*jcc_1): Use %! in asm template.
598         Set attribute "length_nobnd" instead of "length".
599         (*jcc_2): Ditto.
600         (jump): Ditto.
601         (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
603 2015-06-29  Sandra Loosemore  <sandra@codesourcery.com>
605         * config/nios2/nios2.c (nios2_delegitimize_address): Make
606         assert less restrictive.
608 2015-06-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
610         PR fortran/66605
611         * cgraphunit.c (cgraph_node::finalize_function): Do not call
612         do_warn_unused_parameter.
613         * function.c (do_warn_unused_parameter): Move from here.
614         * function.h (do_warn_unused_parameter): Do not declare.
616 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
618         PR target/65697
619         * gcc.target/arm/armv-sync-comp-swap.c: New.
620         * gcc.target/arm/armv-sync-op-acquire.c: New.
621         * gcc.target/arm/armv-sync-op-full.c: New.
622         * gcc.target/arm/armv-sync-op-release.c: New.
624 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
626         PR target/65697
627         * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
628         initial acquire barrier with final barrier.
630 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
632         PR target/65697
633         * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
634         initial acquire barrier with final barrier.
636 2015-06-29  Richard Henderson  <rth@redhat.com>
638         * config/i386/constraints.md (Bf): New constraint.
639         * config/i386/i386-c.c (ix86_target_macros): Define
640         __GCC_ASM_FLAG_OUTPUTS__.
641         * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
642         as flags outputs.
643         * doc/extend.texi (FlagOutputOperands): Document them.
645 2015-06-29  Jiong Wang  <jiong.wang@arm.com>
647         * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
648         * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
649         unspec name.
650         (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
651         * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
652         SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
653         (aarch64_symbol_context): Ditto.
654         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
655         and use new pattern name.
656         (aarch64_expand_mov_immediate): Ditto.
657         (aarch64_print_operand): Ditto.
658         (aarch64_classify_tls_symbol): Ditto.
660 2015-06-29  Marek Polacek  <polacek@redhat.com>
661             Marc Glisse  <marc.glisse@inria.fr>
663         * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
664         * match.pd: ... pattern here.
666 2015-06-29  Tom de Vries  <tom@codesourcery.com>
668         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
669         function structure.
671 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
673         * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
674         feature description, split out the native option, add a link to
675         the feature documentation, rearrange and slightly rewrite text.
676         (Aarch64 options, -mcpu): Likewise.
677         (Aarch64 options, Feature Modifiers): Add an anchor.  Mention
678         +rdma implies Adv. SIMD.
680 2015-06-29  Marek Polacek  <polacek@redhat.com>
682         PR c/66322
683         * function.c (stack_protect_epilogue): Remove a cast to int.
684         * doc/invoke.texi: Update -Wswitch-bool description.
686 2015-06-29  Richard Biener  <rguenther@suse.de>
688         * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
689         * fold-const.c (fold_binary_loc): Move &A - &B simplification
690         via ptr_difference_const ...
691         * match.pd: ... here.
692         When matching (X ^ Y) == Y also match with swapped operands.
694 2015-06-29  Richard Biener  <rguenther@suse.de>
696         * lto-streamer.h (LTO_major_version): Bump to 5.
698 2015-06-29  Richard Biener  <rguenther@suse.de>
700         PR tree-optimization/66677
701         * tree-vect-stmts.c (vect_transform_stmt): Make assert about
702         STMT_VINFO_VEC_STMT clobbering less strict.
704 2015-06-29  Kugan Vivekanandarajah  <kuganv@linaro.org>
706         PR middle-end/64130
707         * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
708         division, compute max and min when value ranges for dividend and
709         divisor are available.
711 2015-06-28  Chung-Lin Tang <cltang@codesourcery.com>
712             Sandra Loosemore <sandra@codesourcery.com>
714         * regrename.h (regrename_do_replace): Change to return bool.
715         * regrename.c (rename_chains): Check return value of
716         regname_do_replace.
717         (regrename_do_replace): Re-validate the modified insns and
718         return bool status.
719         * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
720         Update to match rename_chains changes.
721         * config/c6x/c6x.c (try_rename_operands): Assert that
722         regrename_do_replace returns true.
724 2015-06-28  Uros Bizjak  <ubizjak@gmail.com>
726         * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
727         operand 2 here.  Use copy_addr_to_reg to copy non-index
728         register operand 2 to a temporary.
729         (<mode>_stx): Ditto for operand 1.
730         (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
731         * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
732         (ix86_store_bounds): Ditto.
734 2015-06-27  Patrick Palka  <ppalka@gcc.gnu.org>
736         * print-tree.c (print_node) [TREE_VEC]: Print its length.
738 2015-06-26  Andrew MacLeod  <amacleod@redhat.com>
740         * gimple.c (gimple_call_set_fndecl): Remove.
741         * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
742         build1_loc directly instead of build_fold_addr_expr_loc.
744 2015-06-26  Richard Sandiford  <richard.sandiford@arm.com>
746         * hash-map.h (hash_map::traverse): Use the definition of the
747         Key typedef rather than the typedef itself.
749 2015-06-26  Martin Jambor  <mjambor@suse.cz>
751         PR debug/66301
752         * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
753         NULL instead of calling dump_enabled_p.
755 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
757         * config/aarch64/aarch64.opt: (override): New.
758         * doc/invoke.texi (override): Document.
759         * config/aarch64/aarch64.c (aarch64_flag_desc): New
760         (aarch64_fusible_pairs): Likewise.
761         (aarch64_tuning_flags): Likewise.
762         (aarch64_tuning_override_function): Likewise.
763         (aarch64_tuning_override_functions): Likewise.
764         (aarch64_parse_one_option_token): Likewise.
765         (aarch64_parse_boolean_options): Likewise.
766         (aarch64_parse_fuse_string): Likewise.
767         (aarch64_parse_tune_string): Likewise.
768         (aarch64_parse_one_override_token): Likewise.
769         (aarch64_parse_override_string): Likewise.
770         (aarch64_override_options): Parse the -override string if it
771         is present.
773 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
775         * config/aarch64/aarch64-protos.h (tune_params): Remove
776         const from members.
777         (aarch64_tune_params): Remove const, change to no longer be
778         a pointer.
779         * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
780         change to no longer be a pointer, initialize to generic_tunings.
781         (aarch64_min_divisions_for_recip_mul): Change dereference of
782         aarch64_tune_params to member access.
783         (aarch64_reassociation_width): Likewise.
784         (aarch64_rtx_mult_cost): Likewise.
785         (aarch64_address_cost): Likewise.
786         (aarch64_branch_cost): Likewise.
787         (aarch64_rtx_costs): Likewise.
788         (aarch64_register_move_cost): Likewise.
789         (aarch64_memory_move_cost): Likewise.
790         (aarch64_sched_issue_rate): Likewise.
791         (aarch64_builtin_vectorization_cost): Likewise.
792         (aarch64_override_options): Take a copy of the selected tuning
793         struct in to aarch64_tune_params, rather than just setting
794         a pointer, change dereferences of aarch64_tune_params to member
795         accesses.
796         (aarch64_override_options_after_change): Change dereferences of
797         aarch64_tune_params to member access.
798         (aarch64_macro_fusion_p): Likewise.
799         (aarch_macro_fusion_pair_p): Likewise.
800         * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
802 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
804         * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
805         (aarch64_tune_flags): Likewise.
806         (AARCH64_TUNE_FMA_STEERING): Likewise.
807         * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
808         to AARCH64_FL_USE_FMA_STEERING_PASS.
809         (cortex-a57.cortex-a53): Likewise.
810         (cortex-a72): Use cortexa72_tunings.
811         (cortex-a72.cortex-a53): Likewise.
812         (exynos-m1): Likewise.
813         * config/aarch64/aarch64-protos.h (tune_params): Add
814         a field: extra_tuning_flags.
815         * config/aarch64/aarch64-tuning-flags.def: New.
816         * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
817         (aarch64_extra_tuning_flags): Likewise.
818         (aarch64_tune_params): Declare here.
819         * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
820         (cortexa53_tunings): Likewise.
821         (cortexa57_tunings): Likewise.
822         (thunderx_tunings): Likewise.
823         (xgene1_tunings): Likewise.
824         (cortexa72_tunings): New.
825         * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
826          (gate): Check against aarch64_tune_params.
827         * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
828         aarch64-protos.h.
830 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
832         * config/aarch64/aarch64-fusion-pairs.def: New.
833         * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
834         * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
835         aarch64_fusion_pairs.
836         (AARCH64_FUSE_MOV_MOVK): Likewise.
837         (AARCH64_FUSE_ADRP_ADD): Likewise.
838         (AARCH64_FUSE_MOVK_MOVK): Likewise.
839         (AARCH64_FUSE_ADRP_LDR): Likewise.
840         (AARCH64_FUSE_CMP_BRANCH): Likewise.
842 2015-06-26  Jiong Wang  <jiong.wang@arm.com>
844         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
845         SYMBOL_SMALL_GOT_28K.
846         * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
847         relocation modifiers.
848         (unspec): New enum "UNSPEC_GOTMALLPIC28K.
849         (ldr_got_small_28k_<mode>): New.
850         (ldr_got_small_28k_sidi): New.
851         * config/aarch64/iterators.md (got_modifier): New mode iterator.
852         * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
853         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
854         SYMBOL_SMALL_GOT_28K.
855         (aarch64_rtx_costs): Add costs for new instruction sequences.
856         (initialize_aarch64_code_model): Initialize new model.
857         (aarch64_classify_symbol): Recognize new model and new symbol classification.
858         (aarch64_asm_preferred_eh_data_format): Support new model.
859         (aarch64_load_symref_appropriately): Generate new instruction
860         sequences for -fpic.
861         (TARGET_USE_PSEUDO_PIC_REG): New definition.
862         (aarch64_use_pseudo_pic_reg): New function.
864 2015-06-26  Jiong Wang  <jiong.wang@arm.com>
866         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
867         SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
868         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
869         (aarch64_expand_mov_immediate): Ditto.
870         (aarch64_print_operand): Ditto.
871         (aarch64_classify_symbol): Ditto.
873 2015-06-26  Nathan Sidwell  <nathan@codesourcery.com>
875         * config/nvptx/nvptx.md (call_operation): Remove unused variables.
877 2015-06-26  Bin Cheng  <bin.cheng@arm.com>
879         PR bootstrap/66638
880         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
881         assertion failed.  Remove assertion itself.
883 2015-06-26  Richard Biener  <rguenther@suse.de>
885         * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
886         and -A CMP CST -> A CMP -CST which is redundant with a pattern
887         in match.pd.
888         Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
889         (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
890         (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
891         * match.pd: ... patterns here.
893 2015-06-26  Marek Polacek  <polacek@redhat.com>
895         * match.pd ((x | y) & ~(x & y) -> x ^ y,
896         (x | y) & (~x ^ y) -> x & y): New patterns.
898 2015-06-26  Richard Sandiford  <richard.sandiford@arm.com>
900         * rtl.h (emit): Add an optional boolean parameter to control
901         whether barriers are emitted.
902         * emit-rtl.c (emit): Likewise.
903         * gensupport.c (get_emit_function): Return null rather than "emit".
904         * genemit.c (gen_emit_seq): Handle the null return value.
905         Don't emit barriers after the final instruction in the sequence.
906         * gentarget-def.c (main): Don't emit barriers after the instruction.
908 2015-06-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
910         * config/arm/arm.c (arm_output_multireg_pop): Fix use of
911         TARGET_UNIFIED_ASM.
913 2015-06-26  Richard Biener  <rguenther@suse.de>
915         * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
917 2015-06-26  Richard Biener  <rguenther@suse.de>
919         * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
920         irrespective on whether the inner operation has a single use
921         of both off are constant.
923 2015-06-26  Uros Bizjak  <ubizjak@gmail.com>
924             Segher Boessenkool  <segher@kernel.crashing.org>
926         PR target/66412
927         * config/i386/i386.md (various splitters): Use shallow_copy_rtx
928         before doing PUT_MODE or PUT_CODE on operands to avoid
929         in-place RTX modification.
931 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
933         * gentarget-def.c (def_target_insn): Cast return of strtol to
934         unsigned int.
936 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
938         * gimple.h (gimple_call_set_fn): Move inline function.
939         * gimple.c (gimple_call_set_fn): Relocate here.
941 2015-06-25  Oleg Endo  <olegendo@gcc.gnu.org>
943         PR target/65979
944         PR target/66611
945         * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
946         the replacement insn will work.
948 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
950         * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
951         by default.
953 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
955         * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
956         * cgraph.h: Include ipa-ref.h and plugin-api.h.
957         (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
958         (symtab_node::address_can_be_compared_p): Move function.
959         * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
960         definition here.
961         * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
962         * auto-profile.c: Likewise.
963         * bb-reorder.c: Likewise.
964         * builtins.c: Likewise.
965         * calls.c: Likewise.
966         * cfgexpand.c: Likewise.
967         * cgraphbuild.c: Likewise.
968         * cgraphclones.c: Likewise.
969         * cgraphunit.c: Likewise.
970         * combine.c: Likewise.
971         * coverage.c: Likewise.
972         * data-streamer-in.c: Likewise.
973         * data-streamer-out.c: Likewise.
974         * data-streamer.c: Likewise.
975         * dbxout.c: Likewise.
976         * dwarf2out.c: Likewise.
977         * except.c: Likewise.
978         * expr.c: Likewise.
979         * final.c: Likewise.
980         * fold-const.c: Likewise.
981         * ggc-page.c: Likewise.
982         * gimple-fold.c: Likewise.
983         * gimple-iterator.c: Likewise.
984         * gimple-pretty-print.c: Likewise.
985         * gimple-streamer-in.c: Likewise.
986         * gimple-streamer-out.c: Likewise.
987         * gimple.c: Likewise.
988         * gimplify.c: Likewise.
989         * ipa-chkp.c: Likewise.
990         * ipa-comdats.c: Likewise.
991         * ipa-cp.c: Likewise.
992         * ipa-devirt.c: Likewise.
993         * ipa-icf-gimple.c: Likewise.
994         * ipa-icf.c: Likewise.
995         * ipa-inline-analysis.c: Likewise.
996         * ipa-inline-transform.c: Likewise.
997         * ipa-inline.c: Likewise.
998         * ipa-polymorphic-call.c: Likewise.
999         * ipa-profile.c: Likewise.
1000         * ipa-prop.c: Likewise.
1001         * ipa-pure-const.c: Likewise.
1002         * ipa-ref.c: Likewise.
1003         * ipa-reference.c: Likewise.
1004         * ipa-split.c: Likewise.
1005         * ipa-utils.c: Likewise.
1006         * ipa-visibility.c: Likewise.
1007         * ipa.c: Likewise.
1008         * langhooks.c: Likewise.
1009         * lto-cgraph.c: Likewise.
1010         * lto-compress.c: Likewise.
1011         * lto-opts.c: Likewise.
1012         * lto-section-in.c: Likewise.
1013         * lto-section-out.c: Likewise.
1014         * lto-streamer-in.c: Likewise.
1015         * lto-streamer-out.c: Likewise.
1016         * lto-streamer.c: Likewise.
1017         * omp-low.c: Likewise.
1018         * opts-global.c: Likewise.
1019         * passes.c: Likewise.
1020         * predict.c: Likewise.
1021         * print-tree.c: Likewise.
1022         * profile.c: Likewise.
1023         * ree.c: Likewise.
1024         * sanopt.c: Likewise.
1025         * stor-layout.c: Likewise.
1026         * symtab.c: Likewise.
1027         * toplev.c: Likewise.
1028         * trans-mem.c: Likewise.
1029         * tree-cfg.c: Likewise.
1030         * tree-chkp.c: Likewise.
1031         * tree-eh.c: Likewise.
1032         * tree-emutls.c: Likewise.
1033         * tree-inline.c: Likewise.
1034         * tree-nested.c: Likewise.
1035         * tree-parloops.c: Likewise.
1036         * tree-pretty-print.c: Likewise.
1037         * tree-profile.c: Likewise.
1038         * tree-sra.c: Likewise.
1039         * tree-ssa-alias.c: Likewise.
1040         * tree-ssa-live.c: Likewise.
1041         * tree-ssa-loop-ivcanon.c: Likewise.
1042         * tree-ssa-loop-ivopts.c: Likewise.
1043         * tree-ssa-pre.c: Likewise.
1044         * tree-ssa-sccvn.c: Likewise.
1045         * tree-ssa-strlen.c: Likewise.
1046         * tree-ssa-structalias.c: Likewise.
1047         * tree-streamer-in.c: Likewise.
1048         * tree-streamer-out.c: Likewise.
1049         * tree-streamer.c: Likewise.
1050         * tree-switch-conversion.c: Likewise.
1051         * tree-tailcall.c: Likewise.
1052         * tree-vect-data-refs.c: Likewise.
1053         * tree-vect-stmts.c: Likewise.
1054         * tree-vectorizer.c: Likewise.
1055         * tree.c: Likewise.
1056         * tsan.c: Likewise.
1057         * ubsan.c: Likewise.
1058         * value-prof.c: Likewise.
1059         * varasm.c: Likewise.
1060         * varpool.c: Likewise.
1061         * config/arm/arm.c: Likewise.
1062         * config/bfin/bfin.c: Likewise.
1063         * config/c6x/c6x.c: Likewise.
1064         * config/cris/cris.c: Likewise.
1065         * config/darwin-c.c: Likewise.
1066         * config/darwin.c: Likewise.
1067         * config/i386/i386.c: Likewise.
1068         * config/i386/winnt.c: Likewise.
1069         * config/microblaze/microblaze.c: Likewise.
1070         * config/mips/mips.c: Likewise.
1071         * config/rs6000/rs6000.c: Likewise.
1072         * config/rx/rx.c: Likewise.
1073         * config/s390/s390.c: Likewise.
1074         * config/tilegx/mul-tables.c: Likewise.
1076 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
1078         * config/aarch64/aarch64.c, config/alpha/alpha.c,
1079         config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
1080         config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
1081         config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
1082         config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
1083         config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
1084         config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
1085         config/microblaze/microblaze.c, config/mips/mips.c,
1086         config/mmix/mmix.c, config/mn10300/mn10300.c,
1087         config/moxie/moxie.c, config/msp430/msp430.c,
1088         config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
1089         config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
1090         config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
1091         config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
1092         config/stormy16/stormy16.c, config/tilegx/tilegx.c,
1093         config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
1094         config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
1095         target-def.h include.
1096         * config/ft32/ft32.c: Likewise.  Fix misapplied hunk.
1098 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
1100         * Makefile.in (TARGET_DEF): Add target-insns.def.
1101         (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
1102         (build/gentarget-def.o): New rule.
1103         (genprogrtl): Add target-def.
1104         * target-insns.def, gentarget-def.c: New files.
1105         * target.def: Add targetm.have_* and targetm.gen_* hooks,
1106         based on the contents of target-insns.def.
1107         * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
1108         (HAVE_return, gen_return): Delete.
1109         * target-def.h: Include insn-target-def.h.
1110         * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
1111         instead of direct calls.  Rely on them to do the appropriate assertions.
1112         * function.c (gen_return_pattern): Likewise.  Return an rtx_insn *.
1113         (convert_jumps_to_returns): Use targetm interface instead of
1114         direct calls.
1115         (thread_prologue_and_epilogue_insns): Likewise.
1116         * reorg.c (find_end_label, dbr_schedule): Likewise.
1117         * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
1118         * shrink-wrap.c (convert_to_simple_return): Likewise.
1119         (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
1121 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
1123         * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
1124         config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
1125         config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
1126         config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
1127         config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
1128         config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
1129         config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
1130         config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
1131         config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
1132         config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
1133         config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
1134         config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
1135         config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
1136         config/stormy16/stormy16.c, config/tilegx/tilegx.c,
1137         config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
1138         config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
1139         includes to end.
1141 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
1143         * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
1144         (unbounded_int_hashmap_traits::key_type): Likewise.
1145         * hash-map.h (hash_map): Get the key type from the traits.
1146         * hash-traits.h (default_hash_traits): By default, inherit from the
1147         template parameter.
1148         * alias.c (alias_set_traits): Delete.
1149         (alias_set_entry_d::children): Use alias_set_hash as the first
1150         template parameter.
1151         (record_alias_subset): Update accordingly.
1152         * except.c (tree_hash_traits): Delete.
1153         (type_to_runtime_map): Use tree_hash as the first template parameter.
1154         (init_eh): Update accordingly.
1155         * genmatch.c (capture_id_map_hasher): Delete.
1156         (cid_map_t): Use nofree_string_hash as first template parameter.
1157         * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
1158         * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
1159         Use symbol_compare_hash as the first template parameter in
1160         subdivide_hash_map.
1161         * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
1162         (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
1163         template parameter.
1164         * passes.c (pass_registry_hasher): Delete.
1165         (name_to_pass_map): Use nofree_string_hash as the first template
1166         parameter.
1167         (register_pass_name): Update accordingly.
1168         * sanopt.c (sanopt_tree_map_traits): Delete.
1169         (sanopt_tree_triplet_map_traits): Delete.
1170         (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
1171         template parameter.
1172         (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
1173         the first template parameter.
1174         * sese.c (rename_map_hasher): Delete.
1175         (rename_map_type): Use tree_ssa_name_hash as the first template
1176         parameter.
1177         * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
1178         (function_summary::m_map): Use map_hash as the first template
1179         parameter.
1180         (function_summary::release): Update accordingly.
1181         * tree-if-conv.c (phi_args_hash_traits): Delete.
1182         (predicate_scalar_phi): Use tree_operand_hash as the first template
1183         parameter to phi_arg_map.
1184         * tree-inline.h (dependence_hasher): Delete.
1185         (copy_body_data::dependence_map): Use dependence_hash as the first
1186         template parameter.
1187         * tree-inline.c (remap_dependence_clique): Update accordingly.
1188         * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
1189         (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
1190         parameter.
1191         (addr_stridxptr): Update accordingly.
1192         * value-prof.c (profile_id_traits): Delete.
1193         (cgraph_node_map): Use profile_id_hash as the first template
1194         parameter.
1195         (init_node_map): Update accordingly.
1196         * config/alpha/alpha.c (string_traits): Delete.
1197         (machine_function::links): Use nofree_string_hash as the first
1198         template parameter.
1199         (alpha_use_linkage, alpha_write_linkage): Update accordingly.
1200         * config/m32c/m32c.c (pragma_traits): Delete.
1201         (pragma_htab): Use nofree_string_hash as the first template parameter.
1202         (m32c_note_pragma_address): Update accordingly.
1203         * config/mep/mep.c (pragma_traits): Delete.
1204         (pragma_htab): Use nofree_string_hash as the first template parameter.
1205         (mep_note_pragma_flag): Update accordingly.
1206         * config/mips/mips.c (mips16_flip_traits): Delete.
1207         (mflip_mips16_htab): Use nofree_string_hash as the first template
1208         parameter.
1209         (mflip_mips16_use_mips16_p): Update accordingly.
1210         (local_alias_traits): Delete.
1211         (mips16_local_aliases): Use nofree_string_hash as the first template
1212         parameter.
1213         (mips16_local_alias): Update accordingly.
1215 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
1217         * hash-map-traits.h (default_hashmap_traits): Delete.
1219 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
1221         * hash-map-traits.h (unbounded_hashmap_traits): New class.
1222         (unbounded_int_hashmap_traits): Likewise.
1223         * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
1225 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
1227         * ipa-icf.h (symbol_compare_hash): New class.
1228         (symbol_compare_hashmap_traits): Use it.
1229         * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
1230         (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
1231         (mem_alloc_description::reverse_mem_map_t): Remove redundant
1232         default_hashmap_traits.
1233         * sanopt.c (sanopt_tree_triplet_hash): New class.
1234         (sanopt_tree_triplet_map_traits): Use it.
1236 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
1238         * gengtype-parse.c (require_template_declaration): Allow '+' in
1239         template parameters.  Consolidate cases.
1240         * hash-traits.h (int_hash): New class.
1241         * alias.c (alias_set_hash): New structure.
1242         (alias_set_traits): Use it.
1243         * symbol-summary.h (function_summary::map_hash): New class.
1244         (function_summary::summary_hashmap_traits): Use it.
1245         * tree-inline.h (dependence_hash): New class.
1246         (dependence_hasher): Use it.
1247         * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
1248         * value-prof.c (profile_id_hash): New class.
1249         (profile_id_traits): Use it.
1251 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
1253         * config/mips/mips.c (mips16_flip_traits): Use it.
1254         (local_alias_traits, mips16_local_aliases): Convert from a map of
1255         rtxes to a map of symbol names.
1256         (mips16_local_alias): Update accordingly.
1258 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
1260         * hash-traits.h (string_hash, nofree_string_hash): New classes.
1261         * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
1262         * passes.c (pass_registry_hasher): Likewise.
1263         * config/alpha/alpha.c (string_traits): Likewise.
1264         * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
1265         * config/m32c/m32c.c (pragma_traits): Likewise.
1266         * config/mep/mep.c (pragma_traits): Likewise.
1268 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
1270         * tree-hash-traits.h (tree_hash): New class.
1271         * except.c: Include tree-hash-traits.h.
1272         (tree_hash_traits): Use tree_hash.
1274 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
1276         * tree-hash-traits.h (tree_ssa_name_hasher): New class.
1277         * sese.c: Include tree-hash-traits.h.
1278         (rename_map_hasher): Use tree_ssa_name_hasher.
1280 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
1282         * tree-hash-traits.h (tree_decl_hash): New class.
1283         * tree-ssa-strlen.c: Include tree-hash-traits.h.
1284         (stridxlist_hash_traits): Use tree_decl_hash.
1286 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
1288         * tree-hash-traits.h: New file.
1289         (tree_operand_hash): New class.
1290         * sanopt.c: Include tree-hash-traits.h.
1291         (sanopt_tree_map_traits): Use tree_operand_hash.
1292         * tree-if-conv.c: Include tree-hash-traits.h.
1293         (phi_args_hash_traits): Use tree_operand_hash.
1294         * tree-ssa-uncprop.c: Include tree-hash-traits.h.
1295         (val_ssa_equiv_hash_traits): Use tree_operand_hash.
1297 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
1299         * hash-map-traits.h: Include hash-traits.h.
1300         (simple_hashmap_traits): New class.
1301         * mem-stats.h (hash_map): Change the default traits to
1302         simple_hashmap_traits<default_hash_traits<Key> >.
1304 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
1306         * hash-table.h: Update comments.
1308 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
1310         * hash-traits.h (default_hash_traits): New structure.
1311         * hash-set.h (default_hashset_traits): Delete.
1312         (hash_set): Use default_hash_traits<Key> instead of
1313         default_hashset_traits.  Delete hash_entry type and use Key directly.
1314         * ipa-devirt.c (pair_traits): Delete.
1315         (default_hash_traits <type_pair>): Override.
1316         (odr_subtypes_equivalent_p): Remove pair_types template parameter.
1317         (odr_types_equivalent_p, add_type_duplicate): Likewise.
1319 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
1321         * hash-traits.h (typed_noop_remove): Don't require a pointer type.
1323 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
1325         * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
1326         (has_is_empty, is_empty_helper): Delete.
1327         (has_mark_deleted, mark_deleted_helper): Delete.
1328         (has_mark_empty, mark_empty_helper): Delete.
1329         (hash_table::is_deleted): Call the Descriptor unconditionally.
1330         (hash_table::is_empty): Likewise.
1331         (hash_table::mark_deleted): Likewise.
1332         (hash_table::mark_empty): Likewise.
1334 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
1336         * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash.  Remove
1337         redundant typedefs and members.
1338         * coverage.c (counts_entry): Inherit from pointer_hash.  Remove
1339         redundant typedefs.
1340         * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
1341         * ipa-devirt.c (odr_name_hasher): Likewise.
1342         (polymorphic_call_target_hasher): Likewise.
1343         * ira-costs.c (cost_classes_hasher): Likewise.
1344         * statistics.c (stats_counter_hasher): Likewise.
1345         * trans-mem.c (log_entry_hasher): Likewise.
1346         * tree-ssa-dom.c (expr_elt_hasher): Likewise.
1347         * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
1348         * tree-ssa-tail-merge.c (same_succ_def): Likewise.
1349         * var-tracking.c (variable_hasher): Likewise.
1350         * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
1351         Remove redundant typedefs and members.
1353 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
1355         * hash-traits.h (ggc_cache_hasher): Rename to...
1356         (ggc_cache_remove): ...this and remove typedefs.
1357         (ggc_cache_ptr_hash): New class.
1358         * hash-table.h: Update commentary.
1359         * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
1360         rather than ggc_cache_hasher.
1361         (const_wide_int_hasher, reg_attr_hasher): Likewise.
1362         (const_double_hasher, const_fixed_hasher): Likewise.
1363         * function.c (insn_cache_hasher): Likewise.
1364         * trans-mem.c (tm_wrapper_hasher): Likewise.
1365         * tree.h (tree_decl_map_cache_hasher): Likewise.
1366         * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
1367         (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
1368         * ubsan.c (tree_type_map_cache_hasher): Likewise.
1369         * varasm.c (tm_clone_hasher): Likewise.
1370         * config/i386/i386.c (dllimport_hasher): Likewise.
1371         * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
1372         (tree_hasher): Likewise.
1374 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
1376         * hash-traits.h (ggc_hasher): Rename to...
1377         (ggc_remover): ...this and remove typedefs.
1378         (ggc_cache_hasher): Update accordingly.  Add typedefs.
1379         (ggc_ptr_hash): New class.
1380         * hash-table.h: Update comment.
1381         * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
1382         ggc_hasher.
1383         * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
1384         (tree_descriptor_hasher): Likewise.
1385         * cgraph.c (function_version_hasher): Likewise.
1386         * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
1387         (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
1388         (dw_loc_list_hasher, addr_hasher): Likewise.
1389         * function.h (used_type_hasher): Likewise.
1390         * function.c (temp_address_hasher): Likewise.
1391         * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
1392         * libfuncs.h (libfunc_hasher): Likewise.
1393         * lto-streamer.h (decl_state_hasher): Likewise.
1394         * optabs.c (libfunc_decl_hasher): Likewise.
1395         * tree-scalar-evolution.c (scev_info_hasher): Likewise.
1396         * varasm.c (section_hasher, object_block_hasher): Likewise.
1397         (const_rtx_desc_hasher): Likewise.
1398         * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
1399         * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
1401 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
1403         * hash-traits.h (free_ptr_hash): New class.
1404         * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
1405         rather than typed_free_remove.  Remove redudant typedefs.
1406         (external_ref_hasher): Likewise.
1407         * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
1408         (ehspec_hasher): Likewise.
1409         * ggc-common.c (saving_hasher): Likewise.
1410         * gimplify.c (gimplify_hasher): Likewise.
1411         * haifa-sched.c (delay_i2_hasher): Likewise.
1412         * loop-invariant.c (invariant_expr_hasher): Likewise.
1413         * loop-iv.c (biv_entry_hasher): Likewise.
1414         * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
1415         * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
1416         * tree-cfg.c (locus_discrim_hasher): Likewise.
1417         * tree-eh.c (finally_tree_hasher): Likewise.
1418         * tree-into-ssa.c (var_info_hasher): Likewise.
1419         * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
1420         * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
1421         * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
1422         * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
1423         * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
1424         * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
1425         (shared_bitmap_hasher): Likewise.
1426         * tree-ssa-threadupdate.c (redirection_data): Likewise.
1427         * tree-vectorizer.h (peel_info_hasher): Likewise.
1428         * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
1429         * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
1431 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
1433         * hash-table.h: Update comments.
1434         * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
1435         (nofree_ptr_hash): New class.
1436         * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
1437         than typed_noop_remove.  Remove redudant typedefs.
1438         * attribs.c (attribute_hasher): Likewise.
1439         * cfg.c (bb_copy_hasher): Likewise.
1440         * cselib.c (cselib_hasher): Likewise.
1441         * dse.c (invariant_group_base_hasher): Likewise.
1442         * dwarf2cfi.c (trace_info_hasher): Likewise.
1443         * dwarf2out.c (macinfo_entry_hasher): Likewise.
1444         (comdat_type_hasher, loc_list_hasher): Likewise.
1445         * gcse.c (pre_ldst_expr_hasher): Likewise.
1446         * genmatch.c (id_base): Likewise.
1447         * genrecog.c (test_pattern_hasher): Likewise.
1448         * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
1449         * haifa-sched.c (delay_i1_hasher): Likewise.
1450         * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
1451         * ipa-icf.h (congruence_class_group_hash): Likewise.
1452         * ipa-profile.c (histogram_hash): Likewise.
1453         * ira-color.c (allocno_hard_regs_hasher): Likewise.
1454         * lto-streamer.h (string_slot_hasher): Likewise.
1455         * lto-streamer.c (tree_entry_hasher): Likewise.
1456         * plugin.c (event_hasher): Likewise.
1457         * postreload-gcse.c (expr_hasher): Likewise.
1458         * store-motion.c (st_expr_hasher): Likewise.
1459         * tree-sra.c (uid_decl_hasher): Likewise.
1460         * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
1461         (ssa_name_var_hash): Likewise.
1462         * tree-ssa-live.c (tree_int_map_hasher): Likewise.
1463         * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
1464         * tree-ssa-pre.c (pre_expr_d): Likewise.
1465         * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
1466         * vtable-verify.h (registration_hasher): Likewise.
1467         * vtable-verify.c (vtbl_map_hasher): Likewise.
1468         * config/arm/arm.c (libcall_hasher): Likewise.
1469         * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
1470         * config/ia64/ia64.c (bundle_state_hasher): Likewise.
1471         * config/sol2.c (comdat_entry_hasher): Likewise.
1472         * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
1473         (print_fold_checksum, fold_checksum_tree): Likewise.
1474         (debug_fold_checksum, fold_build1_stat_loc): Likewise.
1475         (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
1476         (fold_build_call_array_loc): Likewise.
1477         * tree-ssa-ccp.c (gimple_htab): Likewise.
1478         * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
1479         rather than pointer_type.
1481 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
1483         * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
1484         (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
1486 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
1488         * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
1489         (ggc_hasher::ggc_mx): Likewise.
1490         (ggc_cache_hasher): Inherit from ggc_hasher.  Remove definitions
1491         that duplicate ggc_hasher ones.
1493 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
1495         * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
1496         (gt_cleare_cache): Check here for deleted and empty entries.
1497         Replace handle_cache_entry with a call to keep_cache_entry.
1498         * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
1499         (ggc_cache_hasher::keep_cache_entry): New function.
1500         * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
1501         (tm_wrapper_hasher::keep_cache_entry): New function.
1502         * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
1503         (tree_vec_map_cache_hasher::keep_cache_entry): New function.
1504         * tree.c (type_cache_hasher::handle_cache_entry): Delete.
1505         (type_cache_hasher::keep_cache_entry): New function.
1506         (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
1507         (tree_vec_map_cache_hasher::keep_cache_entry): New function.
1508         * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
1509         (tree_type_map_cache_hasher::keep_cache_entry): New function.
1510         * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
1511         (tm_clone_hasher::keep_cache_entry): New function.
1512         * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
1513         (dllimport_hasher::keep_cache_entry): New function.
1515 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
1517         * hash-table.h: Include hash-traits.h.
1518         (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
1519         (ggc_cache_hasher): Move to...
1520         * hash-traits.h: ...this new file.
1522 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
1524         * tree-core.h (struct tree_optimization_option): Make opts a pointer to
1525         struct cl_optimization.
1526         * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
1527         * tree.c (make_node_stat): Allocate cl_optimization struct.
1528         (copy_node_stat): Allocate and copy cl_optimization struct.
1530 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
1532         * function.h (struct incoming_args): Move struct.
1533         (pass_by_reference, reference_callee_copied): Remove prototypes.
1534         * emit-rtl.h (struct incoming_args): Relocate struct here.
1535         * calls.h (pass_by_reference, reference_callee_copied): Relocate
1536         prototypes here.
1537         * function.c (pass_by_reference, reference_callee_copied): Move.
1538         * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
1539         * cfgloop.h: Don't include tm.h or hard-reg-set.h.
1540         * ipa-chkp.c: Include calls.h.
1542 2015-06-25  Andrew Macleod  <amacleod@redhat.com>
1544         * alias.h (alias_set_type): Move typedef.
1545         * coretypes.h (alias_set_type): Relocate typedef here.
1546         * rtl.h: Don't include alias.h.
1548 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
1550         * cgraph.h (cgraph_rtl_info): Move to rtl.h
1551         (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
1552         and instance.
1553         * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
1554         * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
1555         doesn't exist.
1556         * calls.c: Include hard-reg-set.h before rtl.h.
1557         * ira.c: Likewise.
1559 2015-06-25  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
1560             Vladimir Makarov  <vmakarov@redhat.com>
1562         * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
1563         Add assert.
1565 2015-06-25  Richard Biener  <rguenther@suse.de>
1567         * fold-const.c (fold_binary_loc): Move simplification of
1568         (X <<>> C1) & C2 ...
1569         * match.pd: ... here.
1571 2015-06-25  Eric Botcazou  <ebotcazou@adacore.com>
1573         * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
1575 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
1577         * match.pd: Add patterns for vec_conds between 1 and 0.
1579 2015-06-25  Richard Biener  <rguenther@suse.de>
1581         * tree-vect-stmts.c (vectorizable_conversion): Do not set
1582         STMT_VINFO_VEC_STMT for SLP.
1583         (vectorizable_store): Likewise.
1584         (vectorizable_load): Likewise.
1585         (vect_transform_stmt): Catch SLP vectorization clobbering
1586         STMT_VINFO_VEC_STMT.
1588 2015-06-25  Richard Biener  <rguenther@suse.de>
1590         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
1591         dumping.
1592         (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
1593         cleanup resulting dead code and parameters.
1594         (vect_transform_slp_perm_load): Adjust.
1596 2015-06-25  Nick Clifton  <nickc@redhat.com>
1598         * config/bfin/bfin.c (bfin_expand_prologue): Set
1599         current_function_static_stack_size if flag_stack_usage_info is
1600         set.
1601         * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
1602         * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
1603         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
1604         * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
1606 2015-06-25  Tom de Vries  <tom@codesourcery.com>
1608         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
1609         comment that the generated IV is unsigned.
1611 2015-06-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1613         PR target/29693
1614         * config/arm/arm.c (arm_dbx_register_number): Return
1615         DWARF_FRAME_REGISTERS by default.
1617 2015-06-25  Tom de Vries  <tom@codesourcery.com>
1619         * dominance.c (calculate_dominance_info): Fix verify_dominators call
1620         argument.  Call verify_dominator when reusing dominator info.
1622 2015-06-24  Kaz Kojima  <kkojima@gcc.gnu.org>
1624         PR target/66563
1625         * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
1626         an additional element of the unspec vector.  Modify indices
1627         of operands.
1628         (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
1629         * config/sh/sh.c (prepare_move_operands): Pass incremented
1630         const_int to gen_GOTaddr2picreg.
1631         (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
1633 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
1635         * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
1636         Condition on TARGET_FLOAT.
1638 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
1640         * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
1641         and (no)crypto.
1643 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
1645         * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
1647         * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
1648         aarch64_err_no_fpadvsimd.
1650         * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
1651         (aarch64_layout_arg, aarch64_init_cumulative_args): Use
1652         aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
1653         (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
1654         Turn error into assert, test TARGET_FLOAT.
1655         (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
1656         TARGET_FLOAT.
1658 2015-06-24  Aldy Hernandez  <aldyh@redhat.com>
1660         PR debug/66482
1661         * dwarf2out.c (gen_formal_parameter_die): Remove assert.
1663 2015-06-24  Ilya Enkovich  <enkovich.gnu@gmail.com>
1665         * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
1667 2015-06-24 Renlin Li <renlin.li@arm.com>
1669         * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
1670         __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
1672 2015-06-24  Richard Biener  <rguenther@suse.de>
1674         * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
1675         (main): Likewise.
1676         (lower_opt_convert): Support lowering of conditional view_convert.
1677         (parser::parse_operation): Likewise.
1678         (parser::parse_for): Likewise.
1680 2015-06-24  Renlin Li  <renlin.li@arm.com>
1682         * varasm.c (emit_local): Use unsigned int for align variable.
1684 2015-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1686         PR target/63408
1687         * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
1688         for negative numbers.
1690 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1692         PR rtl-optimization/66306
1693         * reload.c (find_reloads): Swap the match_dup info for
1694         commutative operands.
1696 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1698         * config/s390/vx-builtins.md
1699         ("vec_scatter_element<mode>_<non_vec_int>")
1700         ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
1701         attribute with bhfgq.
1703 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1705         * config/s390/s390-builtins.def: Fix vpopct instruction comments.
1707 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1709         * config/s390/s390-builtin-types.def: Add flag to indicate the
1710         options under which the function type is needed.
1711         * config/s390/s390-builtins.def: Add flag to indicate the options
1712         under which the builtin is enabled.
1713         * config/s390/s390-builtins.h: Add flags parameter to macro
1714         definitions.
1715         (bflags_for_builtin): New function.
1716         (flags_for_builtin): Renamed to ...
1717         (opflags_for_builtin): ... this.
1718         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
1719         flags_for_builtin to bflags_for_builtin and
1720         flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
1721         * config/s390/s390.c: Add initialization of bflags_builtin and
1722         opflags_builtin arrays.
1723         Remove code for flags_builtin.
1724         (s390_init_builtins): Only create builtin function types if one of
1725         their flags is active.
1726         Only create builtins if all of their flags are active.
1727         (s390_expand_builtin): Rename flags_for_builtin to
1728         opflags_for_builtin.
1730 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1732         * config/s390/vecintrin.h: Remove internal builtins.
1734 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1736         * config/s390/s390.c (s390_secondary_reload): Fix check for
1737         GENERAL_REGS register class.
1739 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1741         * config/s390/s390.c (s390_support_vector_misalignment): Call
1742         default implementation for !TARGET_VX.
1744 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1746         * config/s390/s390.c (s390_legitimate_constant_p): Add
1747         TARGET_VX check.
1749 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1751         * config/s390/s390.c (s390_vector_abi): New variable definition.
1752         (s390_check_type_for_vector_abi): New function.
1753         (TARGET_ASM_FILE_END): New macro definition.
1754         (s390_asm_file_end): New function.
1755         (s390_function_arg): Call s390_check_type_for_vector_abi.
1756         (s390_gimplify_va_arg): Likewise.
1757         * configure: Regenerate.
1758         * configure.ac: Check for .gnu_attribute Binutils feature.
1760 2015-06-23  Chen Gang  <gang.chen.5i5j@gmail.com>
1762         PR target/65803
1763         * config/bfin/bfin.c (hwloop_optimize): Initialize
1764         JUMP_LABEL for newly created jump.
1766 2015-06-23  Tristan Gingold  <gingold@adacore.com>
1768         * collect-utils.c (collect_wait): Unlink the response file here
1769         instead of...
1770         (do_wait): ...here.
1771         (utils_cleanup): ...and here.
1773 2015-06-23  Richard Sandiford  <richard.sandiford@arm.com>
1775         * df-scan.c: Don't include target-def.h.
1776         * targhooks.c: Likewise.
1777         * config/arm/arm-c.c: Likewise.
1778         * config/i386/i386-c.c: Likewise.
1779         * config/nds32/nds32-cost.c: Likewise.
1780         * config/nds32/nds32-fp-as-gp.c: Likewise.
1781         * config/nds32/nds32-intrinsic.c: Likewise.
1782         * config/nds32/nds32-isr.c: Likewise.
1783         * config/nds32/nds32-md-auxiliary.c: Likewise.
1784         * config/nds32/nds32-memory-manipulation.c: Likewise.
1785         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
1786         * config/nds32/nds32-predicates.c: Likewise.
1788 2015-06-23  Richard Biener  <rguenther@suse.de>
1790         PR tree-optimization/66636
1791         * tree-vect-stmts.c (vectorizable_store): Properly compute the
1792         def type for further defs for strided stores.
1794 2015-06-23  Nathan Sidwell  <nathan@codesourcery.com>
1796         * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
1797         conditional selects.
1798         (setcc_int<mode>, setcc_float<mode>): Reformat.
1800 2015-06-23  Marek Polacek  <polacek@redhat.com>
1802         * match.pd ((x + y) - (x | y) -> x & y,
1803         (x + y) - (x & y) -> x | y): New patterns.
1805 2015-06-23  Ludovic Courtès  <ludo@gnu.org>
1807         PR 65711
1808         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
1809         '-dynamic-linker' within %{!shared: ...}.
1811 2015-06-23  Uros Bizjak  <ubizjak@gmail.com>
1813         PR target/66560
1814         * config/i386/predicates.md (addsub_vm_operator): New predicate.
1815         (addsub_vs_operator): Ditto.
1816         (addsub_vs_parallel): Ditto.
1817         * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
1818         (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
1819         Put minus RTX before plus and adjust vec_merge selector.
1820         (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
1821         (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
1822         (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
1823         (addsub vec_merge splitters): New combiner splitters.
1824         (addsub vec_select/vec_concat splitters): Ditto.
1826 2015-06-23  Bin Cheng  <bin.cheng@arm.com>
1828         PR tree-optimization/66449
1829         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
1830         POINTER_PLUS_EXPR for pointers.
1832 2015-06-23  Alan Modra  <amodra@gmail.com>
1834         * rtlanal.c (commutative_operand_precedence): Correct comments.
1835         * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
1836         declaration.  Return an int.  Distinguish REG,REG return from
1837         others.
1838         (struct simplify_plus_minus_op_data): Make local to function.
1839         (simplify_plus_minus): Don't set canonicalized if merely sorting
1840         registers.  Avoid packing ops if nothing changes.  White space fixes.
1842 2015-06-22  Pierre-Marie de Rodat  <derodat@adacore.com>
1844         * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
1845         -fdump-ada-spec is passed but not if -fsyntax-only is.
1847 2015-06-22  Vladimir Makarov  <vmakarov@redhat.com>
1849         PR bootstrap/63740
1850         * lra-lives.c (process_bb_lives): Check insn copying the same
1851         reload pseudo and don't create a copy for it.
1853 2015-06-22  Tom de Vries  <tom@codesourcery.com>
1855         * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
1856         for cond_stmt.
1858 2015-06-22  Tom de Vries  <tom@codesourcery.com>
1860         * builtins.def (DEF_GOMP_BUILTIN): Test
1861         'flag_tree_parallelize_loops > 1' instead of
1862         'flag_tree_parallelize_loops'.  Test flag_cilkplus.
1864 2015-06-22  Tom de Vries  <tom@codesourcery.com>
1866         * dominance.c (calculate_dominance_info): Verify dominators if
1867         early-out.
1869 2015-06-22  Marek Polacek  <polacek@redhat.com>
1871         * match.pd ((x ^ y) ^ (x | y) -> x & y,
1872         (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
1873         (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
1874         (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
1876 2015-06-22  Uros Bizjak  <ubizjak@gmail.com>
1878         PR target/65871
1879         * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
1880         cost of embedded comparison.
1882 2015-06-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1884         PR target/65914
1885         * config/rs6000/predicates.md (altivec_register_operand): Permit
1886         virtual stack registers.
1887         (vsx_register_operand): Likewise.
1888         (vfloat_operand): Likewise.
1889         (vint_operand): Likewise.
1890         (vlogical_operand): Likewise.
1892 2015-06-22  Richard Biener  <rguenther@suse.de>
1894         * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
1895         and single_scalar_iteration_cost members.
1896         (LOOP_VINFO_SCALAR_ITERATION_COST): New.
1897         (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
1898         (vect_get_single_scalar_iteration_cost): Remove.
1899         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
1900         Use LOOP_VINFO_SCALAR_ITERATION_COST.
1901         * tree-vect-loop.c (destroy_loop_vec_info): Free
1902         scalar_cost_vec.
1903         (vect_get_single_scalar_iteration_cost): Compute result into
1904         LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
1905         LOOP_VINFO_SCALAR_ITERATION_COST.  Make static.
1906         (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
1907         (vect_estimate_min_profitable_iters): Use them.
1909 2015-06-22  Christian Bruel  <christian.bruel@st.com>
1911         PR target/52144
1912         * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
1913         (TARGET_INSERT_ATTRIBUTES): Define.
1914         (thumb_flipper): New var.
1915         * config/arm/arm.opt (-mflip-thumb): New switch.
1917 2015-06-22  Jan Hubicka  <hubicka@ucw.cz>
1918             Martin Liska  <mliska@suse.cz>
1920         PR ipa/65908
1921         * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
1922         construction of arg_types.
1923         (sem_function::sem_function): Likewise.
1924         (sem_function::~sem_function): Remove destruction of arg_types.
1925         (sem_function::compatible_parm_types_p): New function.
1926         (sem_function::equals_wpa): Reorg matching of return values
1927         and parameter types.
1928         (sem_function::equals_private): Reorg mathcing of argument types.
1929         (sem_function::parse_tree_args): Remove.
1930         * ipa-icf.h (init_wpa): Do not call it.
1931         (parse_tree_args): Remove.
1932         (compatible_parm_types_p): Declare.
1933         (result_type): Remove.
1934         (arg_types): Remove.
1936 2015-06-22  Jan Hubicka  <hubicka@ucw.cz>
1938         PR ipa/66351
1939         * ipa-polymorphic-call.c
1940         (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
1941         initializing alias oracle; fix formating; set base_alias_set if it
1942         is known.
1944 2015-06-22  Mikhail Maltsev  <maltsevm@gmail.com>
1946         * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
1947         (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
1948         (find_inc): Likewise.
1949         * combine.c (combine_simplify_rtx): Use std::swap instead of manually
1950         swapping.
1951         * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
1952         * df-scan.c (df_swap_refs): Remove.
1953         (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
1954         * dominance.c (link_roots): Use std::swap instead of manually swapping.
1955         * expr.c (expand_expr_real_2, do_store_flag): Likewise.
1956         * fold-const.c (fold_relational_const): Likewise.
1957         * genattrtab.c (simplify_test_exp): Likewise.
1958         * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
1959         gimple_simplify): Likewise.
1960         * ifcvt.c (noce_try_abs, find_if_header): Likewise.
1961         * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
1962         * ipa-devirt.c (add_type_duplicate): Likewise.
1963         * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
1964         * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
1965         * lra.c (lra_create_copy): Likewise.
1966         * lto-streamer-out.c (DFS::DFS): Likewise.
1967         * modulo-sched.c (get_sched_window): Likewise.
1968         * omega.c (omega_pretty_print_problem): Likewise.
1969         * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
1970         * reload1.c (reloads_unique_chain_p): Likewise.
1971         * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
1972         (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
1973         use std::swap.
1974         * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
1975         manually swapping.
1976         * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
1977         predicate_mem_writes): Likewise.
1978         * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
1979         * tree-predcom.c (combine_chains): Likewise.
1980         * tree-ssa-alias.c (nonoverlapping_component_refs_p,
1981         refs_may_alias_p_1): Likewise.
1982         * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
1983         * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
1984         * tree-ssa-loop-niter.c (refine_bounds_using_guard,
1985         number_of_iterations_cond): Likewise.
1986         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
1987         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
1988         * tree-vect-slp.c (vect_build_slp_tree): Likewise.
1989         * tree-vect-stmts.c (supportable_widening_operation): Likewise.
1990         * tree-vrp.c (extract_range_from_binary_expr_1,
1991         extract_range_from_unary_expr_1): Likewise.
1993 2015-06-20  Marek Polacek  <polacek@redhat.com>
1995         * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
1997 2015-06-19  Kaz Kojima  <kkojima@gcc.gnu.org>
1999         PR target/66591
2000         * config/sh/sh.c (prepare_move_operands): Replace subreg
2001         index term with R0 for base and index addressing.
2003 2015-06-19  Jim Wilson  <jim.wilson@linaro.org>
2005         * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
2006         op1 is an fp zero.
2007         (movsf_aarch64): Change condition from register_operand to
2008         aarch64_reg_or_fp_zero for op1.  Change type for alternative 6 to
2009         load1.  Change type for alternative 7 to store1.
2010         (movdf_aarch64): Likewise.
2012 2015-06-19  James Greenhalgh  <james.greenhalgh@arm.com>
2014         * config/vax/vax.md: Adjust sign/zero extend patterns to
2015         handle SUBREGs in operands[1].
2017 2015-06-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2019         * config/i386/i386.c (ix86_function_versions): Use std::swap instead
2020         of manually swapping.
2021         (expand_vec_perm_interleave2): Likewise.
2023 2015-06-19  Ilya Enkovich  <enkovich.gnu@gmail.com>
2025         * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
2026         reuse bounds created for abnormal ssa names.
2028 2015-06-19  Jakub Jelinek  <jakub@redhat.com>
2030         * config/nvptx/nvptx.md (allocate_stack): Rename to...
2031         (allocate_stack_<mode>): ... this, and add :P on both
2032         match_operand and unspec.
2033         (allocate_stack): New expander.
2035 2015-06-19  Christian Bruel  <christian.bruel@st.com>
2037         PR target/66541
2038         PR target/52144
2039         * config/arm/arm.c (arm_set_current_function): Handle
2040         explicit default options.
2042 2015-06-18  Uros Bizjak  <ubizjak@gmail.com>
2044         * config/i386/i386.md (*movsicc_noc_zext): New insn.
2045         (zero-extended cmove with mem peephole2): New pattern.
2046         (cmove with mem peephole2): Merge patterns.
2048 2015-06-18  Segher Boessenkool  <segher@kernel.crashing.org>
2050         * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
2052 2015-06-18  Steve Ellcey  <sellcey@imgtec.com>
2054         * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
2055         * config/mips/mips.md (*madd4<mode>): Ditto.
2056         (*nmadd3<mode>) Ditto.
2057         (*nmadd4<mode>_fastmath): Ditto.
2058         (*nmadd3<mode>_fastmath): Ditto.
2059         (*nmsub4<mode>): Ditto.
2060         (*nmsub3<mode>): Ditto.
2061         (*nmsub4<mode>_fastmath): Ditto.
2062         (*nmsub3<mode>_fastmath): Ditto.
2064 2015-06-18  Michael Matz  <matz@suse.de>
2066         PR middle-end/66253
2067         * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
2068         grouped strided stores.
2069         (vectorizable_load): Don't use the DR from first_stmt in
2070         the non-SLP grouped strided case.
2072 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
2074         PR target/66569
2075         * function.c (assign_bounds): Add arguments assign_regs,
2076         assign_special, assign_bt.
2077         (assign_parms): For vararg functions handle bounds in BT
2078         and special slots after incoming vararg bounds.
2080 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
2082         PR middle-end/66568
2083         * cfgexpand.c (expand_return): Handle missing bounds.
2084         (expand_gimple_stmt_1): Likewise.
2085         * tree-chkp.c (chkp_expand_zero_bounds): New.
2086         * tree-chkp.h (chkp_expand_zero_bounds): New.
2088 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
2090         PR middle-end/66567
2091         * ipa-chkp.c (chkp_maybe_create_clone): Require
2092         functions to be instrumentable.
2093         * tree-chkp.c (chkp_replace_function_pointer): Use
2094         chkp_instrumentable_p instead of attribute check.
2096 2015-06-18  Richard Biener  <rguenther@suse.de>
2098         PR tree-optimization/66510
2099         * tree-vect-stmts.c (vectorizable_load): Properly compute the
2100         number of vector loads for SLP permuted loads.
2101         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
2102         check the stride for loop vectorization.
2103         (vect_enhance_data_refs_alignment): Deal with SLP adjusted
2104         vectorization factor.
2105         (vect_analyze_group_access): If the group size is not a power
2106         of two require a epilogue loop.
2107         * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
2108         compute and optimizing and alias test pruning after final
2109         vectorization factor computation.
2110         * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
2111         vector alignment.
2112         (vect_transform_slp_perm_load): Properly compute the original
2113         number of vector load stmts.
2115 2015-06-18  Uros Bizjak  <ubizjak@gmail.com>
2117         * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
2118         "unlikely character , in @var" warning.
2120 2015-06-17  Uros Bizjak  <ubizjak@gmail.com>
2122         * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
2123         (ix86_function_arg_advance): Ditto.
2124         (ix86_pass_by_reference): Ditto.  Rewrite MS_ABI part.
2126 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
2128         * function.h (struct rtl_data): Remove struct and accessor macros.
2129         * emit-rtl.h (struct rtl_data): Relocate to here.
2130         * Makefile.in (GTFILES): Add emit-rtl.h.
2131         * df-core.c: Include emit-rtl.h.
2132         * genattrtab.c: Likewise.
2133         * genconditions.c: Likewise.
2134         * genpreds.c: Likewise.
2135         * genrecog.c: Likewise.
2136         * regcprop.c: Likewise.
2137         * resource.c: Likewise.
2138         * sched-rgn.c: Likewise.
2139         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
2140         * config/i386/winnt.c: Likewise.
2142 2015-06-17  Jakub Jelinek  <jakub@redhat.com>
2144         PR middle-end/66429
2145         * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
2146         instead of DECL_STRUCT_FUNCTION (child_fn).  Or in has_simduid_loops
2147         and has_force_vectorize_loops flags from cfun into
2148         child_cfun.
2149         (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
2150         if simduid is non-NULL.
2151         * tree-pass.h (make_pass_simduid_cleanup): New prototype.
2152         * passes.def (pass_simduid_cleanup): Add new pass after loop
2153         passes.
2154         * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
2155         indirection from htab argument's type.
2156         (shrink_simd_arrays): New function.
2157         (vectorize_loops): Use it.  Adjust adjust_simduid_builtins caller.
2158         Don't call adjust_simduid_builtins if there are no loops.
2159         (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
2160         (pass_simduid_cleanup::execute): New method.
2161         (make_pass_simduid_cleanup): New function.
2163 2017-06-17  Andrew MacLeod  <amacleod@redhat.com>
2165         * tree-core.h (tree_target_option): Make opts field a pointer to a
2166         cl_target_option instead of an instance of the struct.
2167         * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
2168         the structure.
2169         * tree.c (make_node_stat ): Allocate a cl_target_option struct for
2170         TARGET_OPTION_NODE.
2171         (copy_node_stat): Allocate and copy struct cl_target_option.
2173 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
2175         * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
2176         Remove conditional exposure of prototypes.
2177         (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
2178         * tree.c (anon_aggrname_format, anon_aggrname_p): New.  Replace macro
2179         definitions in tree.h with functions.
2180         * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
2181         anon_aggrname_p.
2182         * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
2184 2015-06-17  Segher Boessenkool  <segher@kernel.crashing.org>
2186         * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
2187         (*cmp<mode>_signed): ... this.
2188         (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
2189         (*cmp<mode>_unsigned): ... this.  Remove %b.
2191 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
2193         * coretypes.h: Include input.h and as-a.h.
2194         * rtl.h: Include input.h and as-a.h for generator files.
2195         * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
2196         * vec.c: Don't include diagnostic-core.h.
2197         * alias.c: Do not include input.h, line-map.h or is-a.h.
2198         * asan.c: Likewise.
2199         * attribs.c: Likewise.
2200         * auto-inc-dec.c: Likewise.
2201         * auto-profile.c: Likewise.
2202         * bb-reorder.c: Likewise.
2203         * bt-load.c: Likewise.
2204         * builtins.c: Likewise.
2205         * caller-save.c: Likewise.
2206         * calls.c: Likewise.
2207         * ccmp.c: Likewise.
2208         * cfg.c: Likewise.
2209         * cfganal.c: Likewise.
2210         * cfgbuild.c: Likewise.
2211         * cfgcleanup.c: Likewise.
2212         * cfgexpand.c: Likewise.
2213         * cfghooks.c: Likewise.
2214         * cfgloop.c: Likewise.
2215         * cfgloop.h: Likewise.
2216         * cfgloopanal.c: Likewise.
2217         * cfgloopmanip.c: Likewise.
2218         * cfgrtl.c: Likewise.
2219         * cgraph.c: Likewise.
2220         * cgraphbuild.c: Likewise.
2221         * cgraphclones.c: Likewise.
2222         * cgraphunit.c: Likewise.
2223         * cilk-common.c: Likewise.
2224         * combine-stack-adj.c: Likewise.
2225         * combine.c: Likewise.
2226         * compare-elim.c: Likewise.
2227         * convert.c: Likewise.
2228         * coverage.c: Likewise.
2229         * cppbuiltin.c: Likewise.
2230         * cprop.c: Likewise.
2231         * cse.c: Likewise.
2232         * cselib.c: Likewise.
2233         * data-streamer-in.c: Likewise.
2234         * data-streamer-out.c: Likewise.
2235         * data-streamer.c: Likewise.
2236         * dbxout.c: Likewise.
2237         * dce.c: Likewise.
2238         * ddg.c: Likewise.
2239         * debug.c: Likewise.
2240         * df-core.c: Likewise.
2241         * df-problems.c: Likewise.
2242         * df-scan.c: Likewise.
2243         * df.h: Likewise.
2244         * dfp.c: Likewise.
2245         * diagnostic-core.h: Likewise.
2246         * diagnostic.c: Likewise.
2247         * dojump.c: Likewise.
2248         * dominance.c: Likewise.
2249         * domwalk.c: Likewise.
2250         * double-int.c: Likewise.
2251         * dse.c: Likewise.
2252         * dumpfile.c: Likewise.
2253         * dumpfile.h: Likewise.
2254         * dwarf2asm.c: Likewise.
2255         * dwarf2cfi.c: Likewise.
2256         * dwarf2out.c: Likewise.
2257         * emit-rtl.c: Likewise.
2258         * et-forest.c: Likewise.
2259         * except.c: Likewise.
2260         * explow.c: Likewise.
2261         * expmed.c: Likewise.
2262         * expr.c: Likewise.
2263         * final.c: Likewise.
2264         * fixed-value.c: Likewise.
2265         * fold-const.c: Likewise.
2266         * function.c: Likewise.
2267         * fwprop.c: Likewise.
2268         * gcc-plugin.h: Likewise.
2269         * gcse.c: Likewise.
2270         * generic-match-head.c: Likewise.
2271         * ggc-page.c: Likewise.
2272         * gimple-builder.c: Likewise.
2273         * gimple-expr.c: Likewise.
2274         * gimple-fold.c: Likewise.
2275         * gimple-iterator.c: Likewise.
2276         * gimple-low.c: Likewise.
2277         * gimple-match-head.c: Likewise.
2278         * gimple-pretty-print.c: Likewise.
2279         * gimple-ssa-isolate-paths.c: Likewise.
2280         * gimple-ssa-strength-reduction.c: Likewise.
2281         * gimple-streamer-in.c: Likewise.
2282         * gimple-streamer-out.c: Likewise.
2283         * gimple-streamer.h: Likewise.
2284         * gimple-walk.c: Likewise.
2285         * gimple.c: Likewise.
2286         * gimplify-me.c: Likewise.
2287         * gimplify.c: Likewise.
2288         * godump.c: Likewise.
2289         * graph.c: Likewise.
2290         * graphite-blocking.c: Likewise.
2291         * graphite-dependences.c: Likewise.
2292         * graphite-interchange.c: Likewise.
2293         * graphite-isl-ast-to-gimple.c: Likewise.
2294         * graphite-optimize-isl.c: Likewise.
2295         * graphite-poly.c: Likewise.
2296         * graphite-scop-detection.c: Likewise.
2297         * graphite-sese-to-poly.c: Likewise.
2298         * graphite.c: Likewise.
2299         * haifa-sched.c: Likewise.
2300         * hw-doloop.c: Likewise.
2301         * ifcvt.c: Likewise.
2302         * init-regs.c: Likewise.
2303         * input.c: Likewise.
2304         * internal-fn.c: Likewise.
2305         * ipa-chkp.c: Likewise.
2306         * ipa-comdats.c: Likewise.
2307         * ipa-cp.c: Likewise.
2308         * ipa-devirt.c: Likewise.
2309         * ipa-icf-gimple.c: Likewise.
2310         * ipa-icf.c: Likewise.
2311         * ipa-inline-analysis.c: Likewise.
2312         * ipa-inline-transform.c: Likewise.
2313         * ipa-inline.c: Likewise.
2314         * ipa-polymorphic-call.c: Likewise.
2315         * ipa-profile.c: Likewise.
2316         * ipa-prop.c: Likewise.
2317         * ipa-pure-const.c: Likewise.
2318         * ipa-ref.c: Likewise.
2319         * ipa-reference.c: Likewise.
2320         * ipa-split.c: Likewise.
2321         * ipa-utils.c: Likewise.
2322         * ipa-visibility.c: Likewise.
2323         * ipa.c: Likewise.
2324         * ira-build.c: Likewise.
2325         * ira-color.c: Likewise.
2326         * ira-conflicts.c: Likewise.
2327         * ira-costs.c: Likewise.
2328         * ira-emit.c: Likewise.
2329         * ira-lives.c: Likewise.
2330         * ira.c: Likewise.
2331         * jump.c: Likewise.
2332         * langhooks.c: Likewise.
2333         * lcm.c: Likewise.
2334         * loop-doloop.c: Likewise.
2335         * loop-init.c: Likewise.
2336         * loop-invariant.c: Likewise.
2337         * loop-iv.c: Likewise.
2338         * loop-unroll.c: Likewise.
2339         * lower-subreg.c: Likewise.
2340         * lra-assigns.c: Likewise.
2341         * lra-coalesce.c: Likewise.
2342         * lra-constraints.c: Likewise.
2343         * lra-eliminations.c: Likewise.
2344         * lra-lives.c: Likewise.
2345         * lra-remat.c: Likewise.
2346         * lra-spills.c: Likewise.
2347         * lra.c: Likewise.
2348         * lto-cgraph.c: Likewise.
2349         * lto-compress.c: Likewise.
2350         * lto-opts.c: Likewise.
2351         * lto-section-in.c: Likewise.
2352         * lto-section-out.c: Likewise.
2353         * lto-streamer-in.c: Likewise.
2354         * lto-streamer-out.c: Likewise.
2355         * lto-streamer.c: Likewise.
2356         * mcf.c: Likewise.
2357         * mode-switching.c: Likewise.
2358         * modulo-sched.c: Likewise.
2359         * omega.c: Likewise.
2360         * omp-low.c: Likewise.
2361         * optabs.c: Likewise.
2362         * opts-global.c: Likewise.
2363         * opts.h: Likewise.
2364         * passes.c: Likewise.
2365         * plugin.c: Likewise.
2366         * postreload-gcse.c: Likewise.
2367         * postreload.c: Likewise.
2368         * predict.c: Likewise.
2369         * pretty-print.h: Likewise.
2370         * print-rtl.c: Likewise.
2371         * print-tree.c: Likewise.
2372         * profile.c: Likewise.
2373         * real.c: Likewise.
2374         * realmpfr.c: Likewise.
2375         * recog.c: Likewise.
2376         * ree.c: Likewise.
2377         * reg-stack.c: Likewise.
2378         * regcprop.c: Likewise.
2379         * reginfo.c: Likewise.
2380         * regrename.c: Likewise.
2381         * regstat.c: Likewise.
2382         * reload.c: Likewise.
2383         * reload1.c: Likewise.
2384         * reorg.c: Likewise.
2385         * resource.c: Likewise.
2386         * rtl-chkp.c: Likewise.
2387         * rtl-error.c: Likewise.
2388         * rtlanal.c: Likewise.
2389         * rtlhooks.c: Likewise.
2390         * sanopt.c: Likewise.
2391         * sched-deps.c: Likewise.
2392         * sched-ebb.c: Likewise.
2393         * sched-rgn.c: Likewise.
2394         * sched-vis.c: Likewise.
2395         * sdbout.c: Likewise.
2396         * sel-sched-dump.c: Likewise.
2397         * sel-sched-ir.c: Likewise.
2398         * sel-sched.c: Likewise.
2399         * sese.c: Likewise.
2400         * shrink-wrap.c: Likewise.
2401         * simplify-rtx.c: Likewise.
2402         * stack-ptr-mod.c: Likewise.
2403         * statistics.c: Likewise.
2404         * stmt.c: Likewise.
2405         * stor-layout.c: Likewise.
2406         * store-motion.c: Likewise.
2407         * streamer-hooks.c: Likewise.
2408         * stringpool.c: Likewise.
2409         * symtab.c: Likewise.
2410         * target-globals.c: Likewise.
2411         * targhooks.c: Likewise.
2412         * toplev.c: Likewise.
2413         * tracer.c: Likewise.
2414         * trans-mem.c: Likewise.
2415         * tree-affine.c: Likewise.
2416         * tree-browser.c: Likewise.
2417         * tree-call-cdce.c: Likewise.
2418         * tree-cfg.c: Likewise.
2419         * tree-cfgcleanup.c: Likewise.
2420         * tree-chkp-opt.c: Likewise.
2421         * tree-chkp.c: Likewise.
2422         * tree-chrec.c: Likewise.
2423         * tree-complex.c: Likewise.
2424         * tree-data-ref.c: Likewise.
2425         * tree-dfa.c: Likewise.
2426         * tree-diagnostic.c: Likewise.
2427         * tree-dump.c: Likewise.
2428         * tree-eh.c: Likewise.
2429         * tree-emutls.c: Likewise.
2430         * tree-if-conv.c: Likewise.
2431         * tree-inline.c: Likewise.
2432         * tree-into-ssa.c: Likewise.
2433         * tree-iterator.c: Likewise.
2434         * tree-loop-distribution.c: Likewise.
2435         * tree-nested.c: Likewise.
2436         * tree-nrv.c: Likewise.
2437         * tree-object-size.c: Likewise.
2438         * tree-outof-ssa.c: Likewise.
2439         * tree-parloops.c: Likewise.
2440         * tree-phinodes.c: Likewise.
2441         * tree-predcom.c: Likewise.
2442         * tree-pretty-print.c: Likewise.
2443         * tree-profile.c: Likewise.
2444         * tree-scalar-evolution.c: Likewise.
2445         * tree-sra.c: Likewise.
2446         * tree-ssa-address.c: Likewise.
2447         * tree-ssa-alias.c: Likewise.
2448         * tree-ssa-ccp.c: Likewise.
2449         * tree-ssa-coalesce.c: Likewise.
2450         * tree-ssa-copy.c: Likewise.
2451         * tree-ssa-copyrename.c: Likewise.
2452         * tree-ssa-dce.c: Likewise.
2453         * tree-ssa-dom.c: Likewise.
2454         * tree-ssa-dse.c: Likewise.
2455         * tree-ssa-forwprop.c: Likewise.
2456         * tree-ssa-ifcombine.c: Likewise.
2457         * tree-ssa-live.c: Likewise.
2458         * tree-ssa-loop-ch.c: Likewise.
2459         * tree-ssa-loop-im.c: Likewise.
2460         * tree-ssa-loop-ivcanon.c: Likewise.
2461         * tree-ssa-loop-ivopts.c: Likewise.
2462         * tree-ssa-loop-manip.c: Likewise.
2463         * tree-ssa-loop-niter.c: Likewise.
2464         * tree-ssa-loop-prefetch.c: Likewise.
2465         * tree-ssa-loop-unswitch.c: Likewise.
2466         * tree-ssa-loop.c: Likewise.
2467         * tree-ssa-math-opts.c: Likewise.
2468         * tree-ssa-operands.c: Likewise.
2469         * tree-ssa-phiopt.c: Likewise.
2470         * tree-ssa-phiprop.c: Likewise.
2471         * tree-ssa-pre.c: Likewise.
2472         * tree-ssa-propagate.c: Likewise.
2473         * tree-ssa-reassoc.c: Likewise.
2474         * tree-ssa-sccvn.c: Likewise.
2475         * tree-ssa-scopedtables.c: Likewise.
2476         * tree-ssa-sink.c: Likewise.
2477         * tree-ssa-strlen.c: Likewise.
2478         * tree-ssa-structalias.c: Likewise.
2479         * tree-ssa-tail-merge.c: Likewise.
2480         * tree-ssa-ter.c: Likewise.
2481         * tree-ssa-threadedge.c: Likewise.
2482         * tree-ssa-threadupdate.c: Likewise.
2483         * tree-ssa-uncprop.c: Likewise.
2484         * tree-ssa-uninit.c: Likewise.
2485         * tree-ssa.c: Likewise.
2486         * tree-ssanames.c: Likewise.
2487         * tree-stdarg.c: Likewise.
2488         * tree-streamer-in.c: Likewise.
2489         * tree-streamer-out.c: Likewise.
2490         * tree-streamer.c: Likewise.
2491         * tree-switch-conversion.c: Likewise.
2492         * tree-tailcall.c: Likewise.
2493         * tree-vect-data-refs.c: Likewise.
2494         * tree-vect-generic.c: Likewise.
2495         * tree-vect-loop-manip.c: Likewise.
2496         * tree-vect-loop.c: Likewise.
2497         * tree-vect-patterns.c: Likewise.
2498         * tree-vect-slp.c: Likewise.
2499         * tree-vect-stmts.c: Likewise.
2500         * tree-vectorizer.c: Likewise.
2501         * tree-vrp.c: Likewise.
2502         * tree.c: Likewise.
2503         * tsan.c: Likewise.
2504         * ubsan.c: Likewise.
2505         * valtrack.c: Likewise.
2506         * value-prof.c: Likewise.
2507         * var-tracking.c: Likewise.
2508         * varasm.c: Likewise.
2509         * varpool.c: Likewise.
2510         * vmsdbgout.c: Likewise.
2511         * vtable-verify.c: Likewise.
2512         * web.c: Likewise.
2513         * wide-int.cc: Likewise.
2514         * xcoffout.c: Likewise.
2515         * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
2516         * common/common-targhooks.c: Likewise.
2517         * config/aarch64/aarch64-builtins.c: Likewise.
2518         * config/aarch64/aarch64.c: Likewise.
2519         * config/alpha/alpha.c: Likewise.
2520         * config/arc/arc.c: Likewise.
2521         * config/arm/aarch-common.c: Likewise.
2522         * config/arm/arm-builtins.c: Likewise.
2523         * config/arm/arm-c.c: Likewise.
2524         * config/arm/arm.c: Likewise.
2525         * config/avr/avr-c.c: Likewise.
2526         * config/avr/avr-log.c: Likewise.
2527         * config/avr/avr.c: Likewise.
2528         * config/bfin/bfin.c: Likewise.
2529         * config/c6x/c6x.c: Likewise.
2530         * config/cr16/cr16.c: Likewise.
2531         * config/cris/cris.c: Likewise.
2532         * config/darwin-c.c: Likewise.
2533         * config/darwin.c: Likewise.
2534         * config/default-c.c: Likewise.
2535         * config/epiphany/epiphany.c: Likewise.
2536         * config/epiphany/mode-switch-use.c: Likewise.
2537         * config/epiphany/resolve-sw-modes.c: Likewise.
2538         * config/fr30/fr30.c: Likewise.
2539         * config/frv/frv.c: Likewise.
2540         * config/ft32/ft32.c: Likewise.
2541         * config/glibc-c.c: Likewise.
2542         * config/h8300/h8300.c: Likewise.
2543         * config/i386/i386-c.c: Likewise.
2544         * config/i386/i386.c: Likewise.
2545         * config/i386/msformat-c.c: Likewise.
2546         * config/i386/winnt-cxx.c: Likewise.
2547         * config/i386/winnt-stubs.c: Likewise.
2548         * config/i386/winnt.c: Likewise.
2549         * config/ia64/ia64-c.c: Likewise.
2550         * config/ia64/ia64.c: Likewise.
2551         * config/iq2000/iq2000.c: Likewise.
2552         * config/lm32/lm32.c: Likewise.
2553         * config/m32c/m32c-pragma.c: Likewise.
2554         * config/m32c/m32c.c: Likewise.
2555         * config/m32r/m32r.c: Likewise.
2556         * config/m68k/m68k.c: Likewise.
2557         * config/mcore/mcore.c: Likewise.
2558         * config/mep/mep-pragma.c: Likewise.
2559         * config/mep/mep.c: Likewise.
2560         * config/microblaze/microblaze-c.c: Likewise.
2561         * config/microblaze/microblaze.c: Likewise.
2562         * config/mips/mips.c: Likewise.
2563         * config/mmix/mmix.c: Likewise.
2564         * config/mn10300/mn10300.c: Likewise.
2565         * config/moxie/moxie.c: Likewise.
2566         * config/msp430/msp430-c.c: Likewise.
2567         * config/msp430/msp430.c: Likewise.
2568         * config/nds32/nds32-cost.c: Likewise.
2569         * config/nds32/nds32-fp-as-gp.c: Likewise.
2570         * config/nds32/nds32-intrinsic.c: Likewise.
2571         * config/nds32/nds32-isr.c: Likewise.
2572         * config/nds32/nds32-md-auxiliary.c: Likewise.
2573         * config/nds32/nds32-memory-manipulation.c: Likewise.
2574         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
2575         * config/nds32/nds32-predicates.c: Likewise.
2576         * config/nds32/nds32.c: Likewise.
2577         * config/nios2/nios2.c: Likewise.
2578         * config/nvptx/nvptx.c: Likewise.
2579         * config/pa/pa.c: Likewise.
2580         * config/pdp11/pdp11.c: Likewise.
2581         * config/rl78/rl78-c.c: Likewise.
2582         * config/rl78/rl78.c: Likewise.
2583         * config/rs6000/rs6000-c.c: Likewise.
2584         * config/rs6000/rs6000.c: Likewise.
2585         * config/rx/rx.c: Likewise.
2586         * config/s390/s390-c.c: Likewise.
2587         * config/s390/s390.c: Likewise.
2588         * config/sh/sh-c.c: Likewise.
2589         * config/sh/sh-mem.cc: Likewise.
2590         * config/sh/sh.c: Likewise.
2591         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
2592         * config/sh/sh_treg_combine.cc: Likewise.
2593         * config/sol2-c.c: Likewise.
2594         * config/sol2-cxx.c: Likewise.
2595         * config/sol2-stubs.c: Likewise.
2596         * config/sol2.c: Likewise.
2597         * config/sparc/sparc-c.c: Likewise.
2598         * config/sparc/sparc.c: Likewise.
2599         * config/spu/spu-c.c: Likewise.
2600         * config/spu/spu.c: Likewise.
2601         * config/stormy16/stormy16.c: Likewise.
2602         * config/tilegx/mul-tables.c: Likewise.
2603         * config/tilegx/tilegx-c.c: Likewise.
2604         * config/tilegx/tilegx.c: Likewise.
2605         * config/tilepro/mul-tables.c: Likewise.
2606         * config/tilepro/tilepro-c.c: Likewise.
2607         * config/tilepro/tilepro.c: Likewise.
2608         * config/v850/v850-c.c: Likewise.
2609         * config/v850/v850.c: Likewise.
2610         * config/vax/vax.c: Likewise.
2611         * config/visium/visium.c: Likewise.
2612         * config/vms/vms-c.c: Likewise.
2613         * config/vms/vms.c: Likewise.
2614         * config/vxworks.c: Likewise.
2615         * config/winnt-c.c: Likewise.
2616         * config/xtensa/xtensa.c: Likewise.
2618 2015-06-17  Robert Suchanek  <robert.suchanek@imgtec.com>
2620         * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
2621         function.
2622         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
2624 2015-06-17  Richard Biener  <rguenther@suse.de>
2626         PR tree-optimization/66251
2627         * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
2628         stmts for SLP strided stores.
2630         Revert
2631         2015-05-22  Richard Biener  <rguenther@suse.de>
2633         PR tree-optimization/66251
2634         * tree-vect-stmts.c (vectorizable_conversion): Properly
2635         set STMT_VINFO_VEC_STMT even for the SLP case.
2637         2015-05-26  Michael Matz  <matz@suse.de>
2639         PR middle-end/66251
2640         * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
2641         STMT_VINFO_VEC_STMT, also with SLP.
2643 2015-06-16  Uros Bizjak  <ubizjak@gmail.com>
2645         PR target/56766
2646         * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
2647         (*avx_addsubv4df3_1s): Ditto.
2648         (*sse3_addsubv2df3_1): Ditto.
2649         (*sse3_addsubv2df3_1s): Ditto.
2650         (*avx_addsubv8sf3_1): Ditto.
2651         (*avx_addsubv8sf3_1s): Ditto.
2652         (*sse3_addsubv4sf3_1): Ditto.
2653         (*sse3_addsubv4sf3_1s): Ditto.
2655 2015-06-16  Steve Ellcey  <sellcey@imgtec.com>
2657         * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
2658         (SYSROOT_SUFFIX_SPEC): Update.
2659         (SYSROOT_HEADERS_SUFFIX_SPEC): New.
2660         (STARTFILE_PREFIX_SPEC): Update.
2661         * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
2662         (MULTILIB_REQUIRED): New.
2663         (MULTILIB_OSDIRNAMES): New.
2664         * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
2665         (MULTILIB_REQUIRED): New.
2666         (MULTILIB_OSDIRNAMES): New.
2668 2015-06-16  Matthew Wahab  <matthew.wahab@arm.com>
2670         * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
2671         * config/aarch64/aarch64-options-extensions.def: Update "fP",
2672         "simd" and "crypto".  Add "lse", "pan", "lor" and "rdma".
2673         * gcc/config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
2674         (AARCH64_FL_PAN): New.
2675         (AARCH64_FL_LOR): New.
2676         (AARCH64_FL_RDMA): New.
2677         (AARCH64_FL_FOR_ARCH8_1): New.
2678         * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
2679         -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
2681 2015-06-16  Martin Liska  <mliska@suse.cz>
2683         * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
2684         * hash-table.c (void dump_hash_table_loc_statistics): Add missing
2685         guard.
2687 2015-06-16  Richard Biener  <rguenther@suse.de>
2689         * tree-vect-stmts.c (vectorizable_store): Adjust.
2690         (vectorizable_load): Likewise.
2691         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
2692         Simplify.
2693         (vect_create_data_ref_ptr): Likewise.
2694         (bump_vector_ptr): Adjust.
2696 2015-06-16  Richard Biener  <rguenther@suse.de>
2698         * tree-vect-stmts.c (vectorizable_load): Properly start loads
2699         with the first element if this is grouped loads.
2701 2015-06-16  James Greenhalgh  <james.greenhalgh@arm.com>
2703         * config/arm/arm-protos.h (struct tune_params): Rename
2704         log_op_non_sc to log_op_non_short_circuit, and rename enum
2705         values to expand SC to SHORT_CIRCUIT.
2706         * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
2707         to LOG_OP_NON_SHORT_CIRCUIT.
2708         (arm_fastmul_tune):Likewise
2709         (arm_strongarm_tune): Likewise.
2710         (arm_xscale_tune): Likewise.
2711         (arm_9e_tune): Likewise.
2712         (arm_marvell_pj4_tune): Likewise.
2713         (arm_v6t2_tune): Likewise.
2714         (arm_cortex_tune): Likewise.
2715         (arm_cortex_a8_tune): Likewise.
2716         (arm_cortex_a7_tune): Likewise.
2717         (arm_cortex_a15_tune): Likewise.
2718         (arm_cortex_a53_tune): Likewise.
2719         (arm_cortex_a57_tune): Likewise.
2720         (arm_xgene1_tune): Likewise.
2721         (arm_cortex_a5_tune): Likewise.
2722         (arm_cortex_a9_tune): Likewise.
2723         (arm_cortex_a12_tune): Likewise.
2724         (arm_v7m_tune): Likewise.
2725         (arm_cortex_m7_tune): Likewise.
2726         (arm_v6m_tune): Likewise.
2727         (arm_fa726te_tune): Likewise.
2729 2015-06-15  David Edelsohn  <dje.gcc@gmail.com>
2731         * altivec.md: Delete UNSPEC_VMLADDUHM.
2732         (mulv4si3_p8): New pattern.
2733         (mulv4si3): Use it for POWER8.
2734         (mulv8hi3): Use vmladduhm with zero addend.
2735         (altivec_vmladduhm): Descriptive RTL.
2737 2015-06-15  Jim Wilson  <jim.wilson@linaro.org>
2739         * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
2740         to use neon_move instead of mov_imm.
2741         (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
2742         (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
2744         * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
2745         aarch64_float_const_zero_rtx_p check before TFmode check.
2746         * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
2747         an fp zero.
2748         (movtf_aarch64): Separate ?rY alternative into two.  Adjust assembly
2749         code and attributes to match.  Change condition from register_operand
2750         to aarch64_reg_or_fp_zero for op1.  Change type for ldp from
2751         neon_load1_2reg to load2.  Change type for stp from neon_store1_2reg
2752         to store2.
2754 2015-06-15  Aldy Hernandez  <aldyh@redhat.com>
2756         PR debug/66535
2757         * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
2758         there is no parent.
2760 2015-06-14  Shiva Chen  <shiva0217@gmail.com>
2762         * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
2763         HOST_WIDE_INT parameter.
2765 2015-06-14  Jan Hubicka  <hubicka@ucw.cz>
2767         PR ipa/66181
2768         * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
2769         * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
2770         TYPE_NO_FORCE_BLK.
2771         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
2773 2015-06-14  Richard Sandiford  <richard.sandiford@arm.com>
2775         * rtl.h (classify_insn): Declare.
2776         * emit-rtl.c (classify_insn): Move to...
2777         * rtl.c: ...here and add generator support.
2778         * gensupport.h (get_emit_function, needs_barrier_p): Declare.
2779         * gensupport.c (get_emit_function, needs_barrier_p): New functions.
2780         * genemit.c (gen_emit_seq): New function.
2781         (gen_expand, gen_split): Use it.
2783 2015-06-13  Patrick Palka  <ppalka@gcc.gnu.org>
2785         * tree.c (make_vector_stat): Fix comment to state that the
2786         function returns a VECTOR_CST.
2788 2015-06-13  Richard Sandiford  <richard.sandiford@arm.com>
2790         * gensupport.h (add_implicit_parallel): Declare.
2791         * genrecog.c (add_implicit_parallel): Move to...
2792         * gensupport.c (add_implicit_parallel): ...here.
2793         (process_one_cond_exec): Use it.
2794         * genemit.c (gen_insn): Likewise.
2796 2015-06-13  Iain Sandoe  <iain@codesourcery.com>
2798         PR bootstrap/66448
2799         * passes.c (rest_of_decl_compilation): Do not register globals for
2800         early debug if they are declared in built-ins.
2802 2015-06-12  Aldy Hernandez  <aldyh@redhat.com>
2804         * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
2806 2015-06-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2808         * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
2809         manually swapping.
2810         (noce_try_cmove_arith): Likewise.
2811         (noce_get_alt_condition): Likewise.
2813 2015-06-12  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
2815         * common/config/i386/i386-common.c
2816         (OPTION_MASK_ISA_MWAITX_SET): New.
2817         (ix86_handle_option): Handle mwaitx.
2818         * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
2819         (x86_64-*-*): Likewise.
2820         * config/i386/mwaitxintrin.h: New header.
2821         * config/i386/cpuid.h (bit_MWAITX):  Define.
2822         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
2823         MWAITX support.
2824         * config/i386/i386.opt (mwaitx): New.
2825         * config/i386/i386-builtin-types.def
2826         (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
2827         * config/i386/i386-c.c: Define __MWAITX__ if needed.
2828         * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
2829         (PTA_MWAITX): New.
2830         (ix86_option_override_internal): Handle new option.
2831         (processor_alias_table): Added PTA_MWAITX.
2832         (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
2833         (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
2834         (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
2835         IX86_BUILTIN_MONITORX  built-ins.
2836         * config/i386/i386.h (TARGET_MWAITX): New.
2837         * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
2838         UNSPEC_MONITORX.
2839         (mwaitx):  New pattern.
2840         (monitorx_<mode>): New pattern.
2841         * config/i386/x86intrin.h: Include mwaitxintrin.h.
2842         * doc/extend.texi: Document monitorx and mwaitx builtins.
2843         * doc/invoke.texi: Document -mmwaitx option.
2845 2015-06-12  Uros Bizjak  <ubizjak@gmail.com>
2847         * emit-rtl.c (need_atomic_barrier_p): Mask model with
2848         MEMMODEL_BASE_MASK.  Remove MEMMODEL_SYNC_* cases.
2850 2015-06-11  David Edelsohn  <dje.gcc@gmail.com>
2852         * dbxout.c (xcoff_debug_hooks): Provide a function for
2853         register_main_translation_unit hook.
2855 2015-06-11  David Edelsohn  <dje.gcc@gmail.com>
2857         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
2858         variants cases from switch.
2859         (rs6000_post_atomic_barrier): Same.
2860         (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
2861         (rs6000_expand_atomic_exchange): Same.
2862         (rs6000_expand_atomic_op): Same.
2863         * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
2864         SYNC variants cases from switch.
2865         (atomic_load): Same.
2866         (atomic_store): Same.
2868 2015-06-11  John David Anglin  <danglin@gcc.gnu.org>
2870         * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
2871         CONST_INT for goto.
2873 2015-06-11  Aldy Hernandez  <aldyh@redhat.com>
2875         PR bootstrap/66448
2876         * dwarf2out.c (check_die): Check for common duplicate attributes.
2877         (add_location_or_const_value_attribute): Do not add duplicate
2878         attributes.
2879         (gen_formal_parameter_die): Do not add DW_AT_artificial the second
2880         time around.
2881         (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
2882         (gen_type_die_with_usage): Call check_die.
2883         (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
2885 2015-06-11  Jason Merrill  <jason@redhat.com>
2887         * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
2888         dies.
2890 2015-06-11  Marek Polacek  <polacek@redhat.com>
2892         * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
2894 2015-06-11  Eric Botcazou  <ebotcazou@adacore.com>
2896         PR bootstrap/66252
2897         * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
2898         * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
2899         (*addx_extend_sp32): Fix pasto.
2900         (*subx_extend): Rename into...
2901         (*subx_extend_sp32): ...this.
2902         (*adddi3_extend_sp32): Add earlyclobber.
2903         (*subdi3_insn_sp32): Likewise.
2904         (*subdi3_extend_sp32): Likewise.
2905         (*and_not_di_sp32): Likewise.
2906         (*or_not_di_sp32): Likewise.
2907         (*xor_not_di_sp32): Likewise.
2908         (*negdi2_sp32): Likewise.
2909         (*one_cmpldi2_sp32): Likewise.
2911 2015-06-11  Pierre-Marie de Rodat  <derodat@adacore.com>
2913         * debug.h (struct gcc_debug_hooks): Add a
2914         register_main_translation_unit hook.
2915         * debug.c (do_nothing_debug_hooks): Provide a function for this
2916         new hook.
2917         * dbxout.c (dbx_debug_hooks): Likewise.
2918         * sdbout.c (sdb_debug_hooks): Likewise.
2919         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
2920         * dwarf2out.c (main_translation_unit): New global variable.
2921         (dwarf2out_register_main_translation_unit): New function
2922         implementing the new hook.
2923         (dwarf2_debug_hooks): Assign
2924         dwarf2out_register_main_translation_unit to this new hook.
2925         (dwarf2out_init): Associate any main translation unit to
2926         comp_unit_die ().
2928 2015-06-11  Marek Polacek  <polacek@redhat.com>
2930         * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
2932 2015-06-11  Marek Polacek  <polacek@redhat.com>
2934         * match.pd: Use single_use throughout.
2936 2015-06-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2938         * config/arm/arm.c (arm_option_params_internal): When optimising
2939         for speed set max_insns_skipped when arm_restrict_it.
2941 2015-06-11  Christian Bruel  <christian.bruel@st.com>
2943         PR target/52144
2944         * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
2945          macros in ...
2946         (arm_cpu_builtins): New function.
2947         (arm_pragma_target_parse): Call arm_cpu_builtins.
2948         * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
2949         (arm_register_target_pragmas): Likewise.
2950         * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
2951          Call arm_register_target_pragmas.
2952         * config/arm/arm-c.c (arm_register_target_pragmas): New function.
2953         (arm_pragma_target_parse): Likewise.
2955 2015-06-10  Kaz Kojima  <kkojima@gcc.gnu.org>
2957         * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
2958         of the second operand.
2960 2015-06-10  Uros Bizjak  <ubizjak@gmail.com>
2962         PR target/66473
2963         * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
2964         to prepare mask operand for AVX512 modes.
2966 2015-06-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
2968         PR target/66474
2969         * doc/md.texi (Machine Constraints): Document that on the PowerPC
2970         if you use a constraint that targets a VSX register, you must use
2971         %x<n> in the template.
2973 2015-06-10  Max Filippov  <jcmvbkbc@gmail.com>
2975         * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
2976         * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
2977         (define_insn "trap"): New definition.
2979 2015-06-10  Richard Biener  <rguenther@suse.de>
2981         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
2982         out from ...
2983         (vect_supported_load_permutation_p): ... here.  Handle
2984         supportable permutations in reductions.
2985         * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
2986         for vectorizing strided group loads.
2988 2015-06-10  Jakub Jelinek  <jakub@redhat.com>
2990         PR target/66470
2991         * config/i386/i386.c (ix86_split_long_move): For collisions
2992         involving direct tls segment refs, move the UNSPEC_TP possibly
2993         wrapped in ZERO_EXTEND out of the address for lea, to each of
2994         the memory loads.
2996 2015-06-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2998         * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
2999         dmb sy. Adjust tabs.
3001 2015-06-10  Tom de Vries  <tom@codesourcery.com>
3003         * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
3005 2015-06-10  Martin Liska  <mliska@suse.cz>
3007         PR bootstrap/66471
3008         * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
3009         all enum values in mem_alloc_origin.
3010         * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
3011         name.
3012         * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
3013         * bitmap.c (bitmap_register): Likewise.
3014         (dump_bitmap_statistics): Likewise.
3015         * ggc-common.c (dump_ggc_loc_statistics): Likewise.
3016         (ggc_record_overhead): Likewise.
3017         * hash-map.h: Likewise.
3018         * hash-set.h: Likewise.
3019         * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
3020         * hash-table.h: Likewise.
3021         * vec.c (vec_prefix::register_overhead): Likewise.
3022         (vec_prefix::release_overhead): Likewise.
3023         (dump_vec_loc_statistics): Likewise.
3025 2015-06-09  Christian Bruel  <christian.bruel@st.com>
3027         PR target/52144
3028         * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
3029         * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
3030         (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
3031         * config/arm/arm.h (SWITCHABLE_TARGET): Define.
3032         * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
3033         (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
3034         (arm_valid_target_attribute_p): Likewise.
3035         (arm_set_current_function, arm_can_inline_p): Likewise.
3036         (arm_valid_target_attribute_rec): Likewise.
3037         (arm_previous_fndecl): New variable.
3038         (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
3039         (TARGET_CAN_INLINE_P): Define.
3040         (arm_asm_trampoline_template): Emit mode.
3041         (arm_file_start): Don't set unified syntax.
3042         (arm_declare_function_name): Set unified syntax and mode.
3043         (arm_option_override): Init target_option_default_node.
3044         and target_option_current_node.
3045         * config/arm/arm.md (*call_value_symbol): Set mode when possible.
3046         (*call_symbol): Likewise.
3047         * doc/extend.texi: Document ARM/Thumb target attribute.
3048         * doc/invoke.texi: Likewise.
3050 2015-06-09  Alexandre Oliva <aoliva@redhat.com>
3052         Revert:
3053         2015-06-09  Alexandre Oliva <aoliva@redhat.com>
3054         PR rtl-optimization/64164
3055         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
3056         * tree-ssa-copyrename.c: Removed.
3057         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
3058         -ftree-coalesce-vars.
3059         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
3060         * common.opt (ftree-copyrename): Ignore.
3061         (ftree-coalesce-inlined-vars): Likewise.
3062         * doc/invoke.texi: Remove the ignored options above.
3063         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
3064         * tree-ssa-coalesce.h: ... here.
3065         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
3066         headers required by it.
3067         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
3068         across variables when flag_tree_coalesce_vars.  Check register
3069         use and promoted modes to allow coalescing.  Moved to
3070         tree-ssa-coalesce.c.
3071         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
3072         with its member functions to tree-ssa-coalesce.c.
3073         (var_map_base_init): Likewise.  Renamed to
3074         compute_samebase_partition_bases.
3075         (partition_view_normal): Drop want_bases parameter.
3076         (partition_view_bitmap): Likewise.
3077         * tree-ssa-live.h: Adjust declarations.
3078         * tree-ssa-coalesce.c: Include explow.h.
3079         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
3080         default defs at the entry point.
3081         (dump_part_var_map): New.
3082         (compute_optimized_partition_bases): New, called by...
3083         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
3084         of compute_samebase_partition_bases.  Adjust.
3085         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
3086         * cfgexpand.c (leader_merge): New.
3087         (get_rtl_for_parm_ssa_default_def): New.
3088         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
3089         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
3090         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
3091         redundant MEM attr setting.
3092         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
3093         from...
3094         (expand_one_stack_var): ... this.  New wrapper to check and
3095         skip already expanded SSA partitions.
3096         (record_alignment_for_reg_var): New, factored out of...
3097         (expand_one_var): ... this.
3098         (expand_one_ssa_partition): New.
3099         (adjust_one_expanded_partition_var): New.
3100         (expand_one_register_var): Check and skip already expanded SSA
3101         partitions.
3102         (expand_used_vars): Don't create DECLs for anonymous SSA
3103         names.  Expand all SSA partitions, then adjust all SSA names.
3104         (pass::execute): Replace the loops that set
3105         SA.partition_to_pseudo from partition leaders and cleared
3106         DECL_RTL for multi-location variables, and that which used to
3107         rename vars and set attrs, with one that clears DECL_RTL and
3108         checks that PARMs and RESULTs default_defs match DECL_RTL.
3109         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
3110         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
3111         * explow.c (promote_ssa_mode): New.
3112         * explow.h (promote_ssa_mode): Declare.
3113         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
3114         * function.c: Include cfgexpand.h.
3115         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
3116         (use_register_for_parm_decl): Wrapper for the above to
3117         special-case the result_ptr.
3118         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
3119         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
3120         multiple locations.
3121         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
3122         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
3123         (assign_parm_setup_block): Prefer SSA-assigned location.
3124         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
3125         if stack_parm is NULL.
3126         (assign_parm_setup_stack): Prefer SSA-assigned location.
3127         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
3128         rtl before testing for pointer bounds.  Special-case result_ptr.
3129         (expand_function_start): Maybe reset DECL_RTL of result.
3130         Prefer SSA-assigned location for result and static chain.
3131         Factor out DECL_RESULT and SET_DECL_RTL.
3132         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
3133         anonymous SSA names.  Use promote_ssa_mode.
3134         (get_temp_reg): Likewise.
3135         (remove_ssa_form): Adjust.
3136         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
3137         and get its reg_usage for reg invalidation.
3138         (compute_bb_dataflow): Pass it insn.
3139         (emit_notes_in_bb): Likewise.
3140         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
3141         fail assert on conversion between unsigned types.
3143 2015-06-09  Tom de Vries  <tom@codesourcery.com>
3145         PR tree-optimization/65460
3146         * omp-low.c (expand_omp_target): Set parallelized_function on
3147         cgraph_node for child_fn.
3149 2015-06-09  Tom de Vries  <tom@codesourcery.com>
3151         * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
3152         parallelized_function before add_new_function.
3154 2015-06-09  Andrew MacLeod  <amacleod@redhat.com>
3156         * gcc-plugin.h: Move decls to plugin.h and include it.
3157         * plugin.h: Relocate decls from gcc-plugin.h
3158         * ggc-page.c: Include required header files.
3159         * passes.c: Likewise.
3160         * cgraphunit.c: Likewise.
3162 2015-06-09  Tom de Vries  <tom@codesourcery.com>
3164         * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
3166 2015-06-09  Jason Merrill  <jason@redhat.com>
3168         PR bootstrap/66448
3169         * toplev.c (check_global_declaration): Don't warn about a clone.
3171 2015-06-09  Marek Polacek  <polacek@redhat.com>
3173         PR tree-optimization/66299
3174         * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
3175         ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
3176         patterns.
3178 2015-06-09  Richard Biener  <rguenther@suse.de>
3180         * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
3181         (vect_analyze_slp_instance): Instead do not falsely drop
3182         load permutations.
3184 2015-06-09  Richard Biener  <rguenther@suse.de>
3186         PR middle-end/66423
3187         * match.pd: Handle A % (unsigned)(1 << B).
3189 2015-06-09  Aldy Hernandez  <aldyh@redhat.com>
3191         * varasm.c (output_object_block_htab): Remove.
3192         (output_object_block_compare): New.
3193         (output_object_blocks): Sort named object_blocks before outputting
3194         them.
3196 2015-06-09  Richard Biener  <rguenther@suse.de>
3198         PR tree-optimization/66419
3199         * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
3200         consider GROUP_GAP when detecting a perfect subchain.
3202 2015-06-09  Nick Clifton  <nickc@redhat.com>
3204         * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
3205         place read only data in the .frodata section.
3207 2015-06-09  Shiva Chen  <shiva0217@gmail.com>
3209         * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
3210         (atomic_store<mode>): Likewise.
3212 2015-06-09  Richard Biener  <rguenther@suse.de>
3214         * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
3216 2015-06-09  Richard Biener  <rguenther@suse.de>
3218         PR middle-end/66413
3219         * tree-inline.c (insert_init_debug_bind): Unshare value.
3221 2015-06-09  Richard Biener  <rguenther@suse.de>
3223         PR tree-optimization/66396
3224         * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
3225         Rename virtual operands.
3227 2015-06-09  Tom de Vries  <tom@codesourcery.com>
3229         * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
3230         always return false.
3232 2015-06-09  Alexandre Oliva <aoliva@redhat.com>
3234         PR rtl-optimization/64164
3235         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
3236         * tree-ssa-copyrename.c: Removed.
3237         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
3238         -ftree-coalesce-vars.
3239         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
3240         * common.opt (ftree-copyrename): Ignore.
3241         (ftree-coalesce-inlined-vars): Likewise.
3242         * doc/invoke.texi: Remove the ignored options above.
3243         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
3244         * tree-ssa-coalesce.h: ... here.
3245         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
3246         headers required by it.
3247         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
3248         across variables when flag_tree_coalesce_vars.  Check register
3249         use and promoted modes to allow coalescing.  Moved to
3250         tree-ssa-coalesce.c.
3251         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
3252         with its member functions to tree-ssa-coalesce.c.
3253         (var_map_base_init): Likewise.  Renamed to
3254         compute_samebase_partition_bases.
3255         (partition_view_normal): Drop want_bases parameter.
3256         (partition_view_bitmap): Likewise.
3257         * tree-ssa-live.h: Adjust declarations.
3258         * tree-ssa-coalesce.c: Include explow.h.
3259         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
3260         default defs at the entry point.
3261         (dump_part_var_map): New.
3262         (compute_optimized_partition_bases): New, called by...
3263         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
3264         of compute_samebase_partition_bases.  Adjust.
3265         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
3266         * cfgexpand.c (leader_merge): New.
3267         (get_rtl_for_parm_ssa_default_def): New.
3268         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
3269         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
3270         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
3271         redundant MEM attr setting.
3272         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
3273         from...
3274         (expand_one_stack_var): ... this.  New wrapper to check and
3275         skip already expanded SSA partitions.
3276         (record_alignment_for_reg_var): New, factored out of...
3277         (expand_one_var): ... this.
3278         (expand_one_ssa_partition): New.
3279         (adjust_one_expanded_partition_var): New.
3280         (expand_one_register_var): Check and skip already expanded SSA
3281         partitions.
3282         (expand_used_vars): Don't create DECLs for anonymous SSA
3283         names.  Expand all SSA partitions, then adjust all SSA names.
3284         (pass::execute): Replace the loops that set
3285         SA.partition_to_pseudo from partition leaders and cleared
3286         DECL_RTL for multi-location variables, and that which used to
3287         rename vars and set attrs, with one that clears DECL_RTL and
3288         checks that PARMs and RESULTs default_defs match DECL_RTL.
3289         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
3290         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
3291         * explow.c (promote_ssa_mode): New.
3292         * explow.h (promote_ssa_mode): Declare.
3293         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
3294         * function.c: Include cfgexpand.h.
3295         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
3296         (use_register_for_parm_decl): Wrapper for the above to
3297         special-case the result_ptr.
3298         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
3299         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
3300         multiple locations.
3301         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
3302         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
3303         (assign_parm_setup_block): Prefer SSA-assigned location.
3304         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
3305         if stack_parm is NULL.
3306         (assign_parm_setup_stack): Prefer SSA-assigned location.
3307         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
3308         rtl before testing for pointer bounds.  Special-case result_ptr.
3309         (expand_function_start): Maybe reset DECL_RTL of result.
3310         Prefer SSA-assigned location for result and static chain.
3311         Factor out DECL_RESULT and SET_DECL_RTL.
3312         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
3313         anonymous SSA names.  Use promote_ssa_mode.
3314         (get_temp_reg): Likewise.
3315         (remove_ssa_form): Adjust.
3316         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
3317         and get its reg_usage for reg invalidation.
3318         (compute_bb_dataflow): Pass it insn.
3319         (emit_notes_in_bb): Likewise.
3320         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
3321         fail assert on conversion between unsigned types.
3323 2015-06-09  Alexandre Oliva <aoliva@redhat.com>
3325         PR debug/58315
3326         * tree-inline.c (reset_debug_binding): New.
3327         (reset_debug_bindings): Likewise.
3328         (expand_call_inline): Call it.
3330 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
3332         * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
3333         TYPE_STRING_FLAG.
3335 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
3337         * lto-streamer-out.c (lto_output_location): Stream
3338         reserved locations correctly.
3339         * lto-streamer-in.c (lto_output_location): Likewise.
3341 2015-06-08  Andrew MacLeod  <amacleod@redhat.com>
3343         * coretypes.h: Include hash-table.h and hash-set.h for host files.
3344         * ggc.h: Don't include statistics.h>
3345         * hash-map.h: Remove all includes.
3346         * hash-set.h: Likewise.
3347         * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
3348         the include list. Remove <new>.
3349         * inchash.h: Remove all includes.
3350         * mem-stats.h: Likewise.
3351         * vec.h: No special processing for generators or ggc.  
3352         * alias.c : Adjust include files.
3353         * alloc-pool.c : Likewise.
3354         * alloc-pool.h : Likewise.
3355         * asan.c : Likewise.
3356         * attribs.c : Likewise.
3357         * auto-inc-dec.c : Likewise.
3358         * auto-profile.c : Likewise.
3359         * bb-reorder.c : Likewise.
3360         * bitmap.c : Likewise.
3361         * bitmap.h : Likewise.
3362         * bt-load.c : Likewise.
3363         * builtins.c : Likewise.
3364         * caller-save.c : Likewise.
3365         * calls.c : Likewise.
3366         * ccmp.c : Likewise.
3367         * cfg.c : Likewise.
3368         * cfganal.c : Likewise.
3369         * cfgbuild.c : Likewise.
3370         * cfgcleanup.c : Likewise.
3371         * cfgexpand.c : Likewise.
3372         * cfghooks.c : Likewise.
3373         * cfgloop.c : Likewise.
3374         * cfgloop.h : Likewise.
3375         * cfgloopanal.c : Likewise.
3376         * cfgloopmanip.c : Likewise.
3377         * cfgrtl.c : Likewise.
3378         * cgraph.c : Likewise.
3379         * cgraphbuild.c : Likewise.
3380         * cgraphclones.c : Likewise.
3381         * cgraphunit.c : Likewise.
3382         * cilk-common.c : Likewise.
3383         * combine-stack-adj.c : Likewise.
3384         * combine.c : Likewise.
3385         * compare-elim.c : Likewise.
3386         * context.c : Likewise.
3387         * convert.c : Likewise.
3388         * coverage.c : Likewise.
3389         * cppbuiltin.c : Likewise.
3390         * cprop.c : Likewise.
3391         * cse.c : Likewise.
3392         * cselib.c : Likewise.
3393         * data-streamer-in.c : Likewise.
3394         * data-streamer-out.c : Likewise.
3395         * data-streamer.c : Likewise.
3396         * data-streamer.h : Likewise.
3397         * dbxout.c : Likewise.
3398         * dce.c : Likewise.
3399         * ddg.c : Likewise.
3400         * debug.c : Likewise.
3401         * df-core.c : Likewise.
3402         * df-problems.c : Likewise.
3403         * df-scan.c : Likewise.
3404         * df.h : Likewise.
3405         * dfp.c : Likewise.
3406         * dojump.c : Likewise.
3407         * dominance.c : Likewise.
3408         * domwalk.c : Likewise.
3409         * double-int.c : Likewise.
3410         * dse.c : Likewise.
3411         * dumpfile.c : Likewise.
3412         * dwarf2asm.c : Likewise.
3413         * dwarf2cfi.c : Likewise.
3414         * dwarf2out.c : Likewise.
3415         * emit-rtl.c : Likewise.
3416         * et-forest.c : Likewise.
3417         * except.c : Likewise.
3418         * except.h : Likewise.
3419         * explow.c : Likewise.
3420         * expmed.c : Likewise.
3421         * expr.c : Likewise.
3422         * final.c : Likewise.
3423         * fixed-value.c : Likewise.
3424         * fold-const.c : Likewise.
3425         * function.c : Likewise.
3426         * fwprop.c : Likewise.
3427         * gcc-plugin.h : Likewise.
3428         * gcc.c : Likewise.
3429         * gcse-common.c : Likewise.
3430         * gcse.c : Likewise.
3431         * genattrtab.c : Likewise.
3432         * genautomata.c : Likewise.
3433         * genconditions.c : Likewise.
3434         * genemit.c : Likewise.
3435         * generic-match-head.c : Likewise.
3436         * genextract.c : Likewise.
3437         * gengtype-state.c : Likewise.
3438         * gengtype.c : Likewise.
3439         * genhooks.c : Likewise.
3440         * genmatch.c : Likewise.
3441         * genmodes.c : Likewise.
3442         * genrecog.c : Likewise.
3443         * gensupport.c : Likewise.
3444         * ggc-common.c : Likewise.
3445         * ggc-internal.h : Likewise.
3446         * ggc-none.c : Likewise.
3447         * ggc-page.c : Likewise.
3448         * gimple-builder.c : Likewise.
3449         * gimple-expr.c : Likewise.
3450         * gimple-fold.c : Likewise.
3451         * gimple-iterator.c : Likewise.
3452         * gimple-low.c : Likewise.
3453         * gimple-match-head.c : Likewise.
3454         * gimple-pretty-print.c : Likewise.
3455         * gimple-ssa-isolate-paths.c : Likewise.
3456         * gimple-ssa-strength-reduction.c : Likewise.
3457         * gimple-ssa.h : Likewise.
3458         * gimple-streamer-in.c : Likewise.
3459         * gimple-streamer-out.c : Likewise.
3460         * gimple-streamer.h : Likewise.
3461         * gimple-walk.c : Likewise.
3462         * gimple.c : Likewise.
3463         * gimplify-me.c : Likewise.
3464         * gimplify.c : Likewise.
3465         * godump.c : Likewise.
3466         * graph.c : Likewise.
3467         * graphds.c : Likewise.
3468         * graphite-blocking.c : Likewise.
3469         * graphite-dependences.c : Likewise.
3470         * graphite-interchange.c : Likewise.
3471         * graphite-isl-ast-to-gimple.c : Likewise.
3472         * graphite-optimize-isl.c : Likewise.
3473         * graphite-poly.c : Likewise.
3474         * graphite-scop-detection.c : Likewise.
3475         * graphite-sese-to-poly.c : Likewise.
3476         * graphite.c : Likewise.
3477         * haifa-sched.c : Likewise.
3478         * hard-reg-set.h : Likewise.
3479         * hw-doloop.c : Likewise.
3480         * ifcvt.c : Likewise.
3481         * inchash.c : Likewise.
3482         * incpath.c : Likewise.
3483         * init-regs.c : Likewise.
3484         * input.c : Likewise.
3485         * internal-fn.c : Likewise.
3486         * ipa-chkp.c : Likewise.
3487         * ipa-comdats.c : Likewise.
3488         * ipa-cp.c : Likewise.
3489         * ipa-devirt.c : Likewise.
3490         * ipa-icf-gimple.c : Likewise.
3491         * ipa-icf.c : Likewise.
3492         * ipa-inline-analysis.c : Likewise.
3493         * ipa-inline-transform.c : Likewise.
3494         * ipa-inline.c : Likewise.
3495         * ipa-polymorphic-call.c : Likewise.
3496         * ipa-profile.c : Likewise.
3497         * ipa-prop.c : Likewise.
3498         * ipa-pure-const.c : Likewise.
3499         * ipa-ref.c : Likewise.
3500         * ipa-reference.c : Likewise.
3501         * ipa-split.c : Likewise.
3502         * ipa-utils.c : Likewise.
3503         * ipa-visibility.c : Likewise.
3504         * ipa.c : Likewise.
3505         * ira-build.c : Likewise.
3506         * ira-color.c : Likewise.
3507         * ira-conflicts.c : Likewise.
3508         * ira-costs.c : Likewise.
3509         * ira-emit.c : Likewise.
3510         * ira-lives.c : Likewise.
3511         * ira.c : Likewise.
3512         * jump.c : Likewise.
3513         * langhooks.c : Likewise.
3514         * lcm.c : Likewise.
3515         * libfuncs.h : Likewise.
3516         * lists.c : Likewise.
3517         * loop-doloop.c : Likewise.
3518         * loop-init.c : Likewise.
3519         * loop-invariant.c : Likewise.
3520         * loop-iv.c : Likewise.
3521         * loop-unroll.c : Likewise.
3522         * lower-subreg.c : Likewise.
3523         * lra-assigns.c : Likewise.
3524         * lra-coalesce.c : Likewise.
3525         * lra-constraints.c : Likewise.
3526         * lra-eliminations.c : Likewise.
3527         * lra-lives.c : Likewise.
3528         * lra-remat.c : Likewise.
3529         * lra-spills.c : Likewise.
3530         * lra.c : Likewise.
3531         * lto-cgraph.c : Likewise.
3532         * lto-compress.c : Likewise.
3533         * lto-opts.c : Likewise.
3534         * lto-section-in.c : Likewise.
3535         * lto-section-out.c : Likewise.
3536         * lto-streamer-in.c : Likewise.
3537         * lto-streamer-out.c : Likewise.
3538         * lto-streamer.c : Likewise.
3539         * lto-streamer.h : Likewise.
3540         * mcf.c : Likewise.
3541         * mode-switching.c : Likewise.
3542         * modulo-sched.c : Likewise.
3543         * omega.c : Likewise.
3544         * omp-low.c : Likewise.
3545         * optabs.c : Likewise.
3546         * opts-global.c : Likewise.
3547         * opts.h : Likewise.
3548         * passes.c : Likewise.
3549         * plugin.c : Likewise.
3550         * postreload-gcse.c : Likewise.
3551         * postreload.c : Likewise.
3552         * predict.c : Likewise.
3553         * print-rtl.c : Likewise.
3554         * print-tree.c : Likewise.
3555         * profile.c : Likewise.
3556         * read-md.c : Likewise.
3557         * read-md.h : Likewise.
3558         * read-rtl.c : Likewise.
3559         * real.c : Likewise.
3560         * realmpfr.c : Likewise.
3561         * recog.c : Likewise.
3562         * ree.c : Likewise.
3563         * reg-stack.c : Likewise.
3564         * regcprop.c : Likewise.
3565         * reginfo.c : Likewise.
3566         * regrename.c : Likewise.
3567         * regstat.c : Likewise.
3568         * reload.c : Likewise.
3569         * reload1.c : Likewise.
3570         * reorg.c : Likewise.
3571         * resource.c : Likewise.
3572         * rtl-chkp.c : Likewise.
3573         * rtl.c : Likewise.
3574         * rtl.h : Likewise.
3575         * rtlanal.c : Likewise.
3576         * rtlhash.c : Likewise.
3577         * rtlhash.h : Likewise.
3578         * rtlhooks.c : Likewise.
3579         * sanopt.c : Likewise.
3580         * sched-deps.c : Likewise.
3581         * sched-ebb.c : Likewise.
3582         * sched-rgn.c : Likewise.
3583         * sched-vis.c : Likewise.
3584         * sdbout.c : Likewise.
3585         * sel-sched-dump.c : Likewise.
3586         * sel-sched-ir.c : Likewise.
3587         * sel-sched-ir.h : Likewise.
3588         * sel-sched.c : Likewise.
3589         * sese.c : Likewise.
3590         * shrink-wrap.c : Likewise.
3591         * shrink-wrap.h : Likewise.
3592         * simplify-rtx.c : Likewise.
3593         * stack-ptr-mod.c : Likewise.
3594         * statistics.c : Likewise.
3595         * stmt.c : Likewise.
3596         * stor-layout.c : Likewise.
3597         * store-motion.c : Likewise.
3598         * stringpool.c : Likewise.
3599         * symtab.c : Likewise.
3600         * target-globals.c : Likewise.
3601         * targhooks.c : Likewise.
3602         * tlink.c : Likewise.
3603         * toplev.c : Likewise.
3604         * tracer.c : Likewise.
3605         * trans-mem.c : Likewise.
3606         * tree-affine.c : Likewise.
3607         * tree-affine.h : Likewise.
3608         * tree-browser.c : Likewise.
3609         * tree-call-cdce.c : Likewise.
3610         * tree-cfg.c : Likewise.
3611         * tree-cfgcleanup.c : Likewise.
3612         * tree-chkp-opt.c : Likewise.
3613         * tree-chkp.c : Likewise.
3614         * tree-chrec.c : Likewise.
3615         * tree-complex.c : Likewise.
3616         * tree-data-ref.c : Likewise.
3617         * tree-dfa.c : Likewise.
3618         * tree-diagnostic.c : Likewise.
3619         * tree-dump.c : Likewise.
3620         * tree-eh.c : Likewise.
3621         * tree-eh.h : Likewise.
3622         * tree-emutls.c : Likewise.
3623         * tree-hasher.h : Likewise.
3624         * tree-if-conv.c : Likewise.
3625         * tree-inline.c : Likewise.
3626         * tree-inline.h : Likewise.
3627         * tree-into-ssa.c : Likewise.
3628         * tree-iterator.c : Likewise.
3629         * tree-loop-distribution.c : Likewise.
3630         * tree-nested.c : Likewise.
3631         * tree-nrv.c : Likewise.
3632         * tree-object-size.c : Likewise.
3633         * tree-outof-ssa.c : Likewise.
3634         * tree-parloops.c : Likewise.
3635         * tree-phinodes.c : Likewise.
3636         * tree-predcom.c : Likewise.
3637         * tree-pretty-print.c : Likewise.
3638         * tree-profile.c : Likewise.
3639         * tree-scalar-evolution.c : Likewise.
3640         * tree-sra.c : Likewise.
3641         * tree-ssa-address.c : Likewise.
3642         * tree-ssa-alias.c : Likewise.
3643         * tree-ssa-ccp.c : Likewise.
3644         * tree-ssa-coalesce.c : Likewise.
3645         * tree-ssa-copy.c : Likewise.
3646         * tree-ssa-copyrename.c : Likewise.
3647         * tree-ssa-dce.c : Likewise.
3648         * tree-ssa-dom.c : Likewise.
3649         * tree-ssa-dse.c : Likewise.
3650         * tree-ssa-forwprop.c : Likewise.
3651         * tree-ssa-ifcombine.c : Likewise.
3652         * tree-ssa-live.c : Likewise.
3653         * tree-ssa-loop-ch.c : Likewise.
3654         * tree-ssa-loop-im.c : Likewise.
3655         * tree-ssa-loop-ivcanon.c : Likewise.
3656         * tree-ssa-loop-ivopts.c : Likewise.
3657         * tree-ssa-loop-manip.c : Likewise.
3658         * tree-ssa-loop-niter.c : Likewise.
3659         * tree-ssa-loop-prefetch.c : Likewise.
3660         * tree-ssa-loop-unswitch.c : Likewise.
3661         * tree-ssa-loop.c : Likewise.
3662         * tree-ssa-math-opts.c : Likewise.
3663         * tree-ssa-operands.c : Likewise.
3664         * tree-ssa-phiopt.c : Likewise.
3665         * tree-ssa-phiprop.c : Likewise.
3666         * tree-ssa-pre.c : Likewise.
3667         * tree-ssa-propagate.c : Likewise.
3668         * tree-ssa-reassoc.c : Likewise.
3669         * tree-ssa-sccvn.c : Likewise.
3670         * tree-ssa-scopedtables.c : Likewise.
3671         * tree-ssa-sink.c : Likewise.
3672         * tree-ssa-strlen.c : Likewise.
3673         * tree-ssa-structalias.c : Likewise.
3674         * tree-ssa-tail-merge.c : Likewise.
3675         * tree-ssa-ter.c : Likewise.
3676         * tree-ssa-threadedge.c : Likewise.
3677         * tree-ssa-threadupdate.c : Likewise.
3678         * tree-ssa-uncprop.c : Likewise.
3679         * tree-ssa-uninit.c : Likewise.
3680         * tree-ssa.c : Likewise.
3681         * tree-ssanames.c : Likewise.
3682         * tree-stdarg.c : Likewise.
3683         * tree-streamer-in.c : Likewise.
3684         * tree-streamer-out.c : Likewise.
3685         * tree-streamer.c : Likewise.
3686         * tree-streamer.h : Likewise.
3687         * tree-switch-conversion.c : Likewise.
3688         * tree-tailcall.c : Likewise.
3689         * tree-vect-data-refs.c : Likewise.
3690         * tree-vect-generic.c : Likewise.
3691         * tree-vect-loop-manip.c : Likewise.
3692         * tree-vect-loop.c : Likewise.
3693         * tree-vect-patterns.c : Likewise.
3694         * tree-vect-slp.c : Likewise.
3695         * tree-vect-stmts.c : Likewise.
3696         * tree-vectorizer.c : Likewise.
3697         * tree-vectorizer.h : Likewise.
3698         * tree-vrp.c : Likewise.
3699         * tree.c : Likewise.
3700         * tsan.c : Likewise.
3701         * ubsan.c : Likewise.
3702         * valtrack.c : Likewise.
3703         * valtrack.h : Likewise.
3704         * value-prof.c : Likewise.
3705         * var-tracking.c : Likewise.
3706         * varasm.c : Likewise.
3707         * varpool.c : Likewise.
3708         * vec.c: Likewise.
3709         * vmsdbgout.c : Likewise.
3710         * vtable-verify.c : Likewise.
3711         * vtable-verify.h : Likewise.
3712         * web.c : Likewise.
3713         * wide-int.cc : Likewise.
3714         * xcoffout.c : Likewise.
3715         * config/aarch64/aarch64-builtins.c : Likewise.
3716         * config/aarch64/aarch64.c : Likewise.
3717         * config/aarch64/cortex-a57-fma-steering.c : Likewise.
3718         * config/alpha/alpha.c : Likewise.
3719         * config/arc/arc.c : Likewise.
3720         * config/arm/aarch-common.c : Likewise.
3721         * config/arm/arm-builtins.c : Likewise.
3722         * config/arm/arm-c.c : Likewise.
3723         * config/arm/arm.c : Likewise.
3724         * config/avr/avr-c.c : Likewise.
3725         * config/avr/avr-log.c : Likewise.
3726         * config/avr/avr.c : Likewise.
3727         * config/bfin/bfin.c : Likewise.
3728         * config/c6x/c6x.c : Likewise.
3729         * config/cr16/cr16.c : Likewise.
3730         * config/cris/cris.c : Likewise.
3731         * config/darwin-c.c : Likewise.
3732         * config/darwin.c : Likewise.
3733         * config/default-c.c : Likewise.
3734         * config/epiphany/epiphany.c : Likewise.
3735         * config/epiphany/mode-switch-use.c : Likewise.
3736         * config/epiphany/resolve-sw-modes.c : Likewise.
3737         * config/fr30/fr30.c : Likewise.
3738         * config/frv/frv.c : Likewise.
3739         * config/ft32/ft32.c : Likewise.
3740         * config/glibc-c.c : Likewise.
3741         * config/h8300/h8300.c : Likewise.
3742         * config/i386/i386-c.c : Likewise.
3743         * config/i386/i386.c : Likewise.
3744         * config/i386/msformat-c.c : Likewise.
3745         * config/i386/winnt-cxx.c : Likewise.
3746         * config/i386/winnt-stubs.c : Likewise.
3747         * config/i386/winnt.c : Likewise.
3748         * config/ia64/ia64-c.c : Likewise.
3749         * config/ia64/ia64.c : Likewise.
3750         * config/iq2000/iq2000.c : Likewise.
3751         * config/lm32/lm32.c : Likewise.
3752         * config/m32c/m32c-pragma.c : Likewise.
3753         * config/m32c/m32c.c : Likewise.
3754         * config/m32r/m32r.c : Likewise.
3755         * config/m68k/m68k.c : Likewise.
3756         * config/mcore/mcore.c : Likewise.
3757         * config/mep/mep-pragma.c : Likewise.
3758         * config/mep/mep.c : Likewise.
3759         * config/microblaze/microblaze-c.c : Likewise.
3760         * config/microblaze/microblaze.c : Likewise.
3761         * config/mips/mips.c : Likewise.
3762         * config/mmix/mmix.c : Likewise.
3763         * config/mn10300/mn10300.c : Likewise.
3764         * config/moxie/moxie.c : Likewise.
3765         * config/msp430/msp430-c.c : Likewise.
3766         * config/msp430/msp430.c : Likewise.
3767         * config/nds32/nds32-cost.c : Likewise.
3768         * config/nds32/nds32-fp-as-gp.c : Likewise.
3769         * config/nds32/nds32-intrinsic.c : Likewise.
3770         * config/nds32/nds32-isr.c : Likewise.
3771         * config/nds32/nds32-md-auxiliary.c : Likewise.
3772         * config/nds32/nds32-memory-manipulation.c : Likewise.
3773         * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
3774         * config/nds32/nds32-predicates.c : Likewise.
3775         * config/nds32/nds32.c : Likewise.
3776         * config/nios2/nios2.c : Likewise.
3777         * config/nvptx/nvptx.c : Likewise.
3778         * config/pa/pa.c : Likewise.
3779         * config/pdp11/pdp11.c : Likewise.
3780         * config/rl78/rl78-c.c : Likewise.
3781         * config/rl78/rl78.c : Likewise.
3782         * config/rs6000/rs6000-c.c : Likewise.
3783         * config/rs6000/rs6000.c : Likewise.
3784         * config/rx/rx.c : Likewise.
3785         * config/s390/s390-c.c : Likewise.
3786         * config/s390/s390.c : Likewise.
3787         * config/sh/sh-c.c : Likewise.
3788         * config/sh/sh-mem.cc : Likewise.
3789         * config/sh/sh.c : Likewise.
3790         * config/sh/sh_optimize_sett_clrt.cc : Likewise.
3791         * config/sh/sh_treg_combine.cc : Likewise.
3792         * config/sol2-c.c : Likewise.
3793         * config/sol2-cxx.c : Likewise.
3794         * config/sol2-stubs.c : Likewise.
3795         * config/sol2.c : Likewise.
3796         * config/sparc/sparc-c.c : Likewise.
3797         * config/sparc/sparc.c : Likewise.
3798         * config/spu/spu-c.c : Likewise.
3799         * config/spu/spu.c : Likewise.
3800         * config/stormy16/stormy16.c : Likewise.
3801         * config/tilegx/mul-tables.c : Likewise.
3802         * config/tilegx/tilegx-c.c : Likewise.
3803         * config/tilegx/tilegx.c : Likewise.
3804         * config/tilepro/mul-tables.c : Likewise.
3805         * config/tilepro/tilepro-c.c : Likewise.
3806         * config/tilepro/tilepro.c : Likewise.
3807         * config/v850/v850-c.c : Likewise.
3808         * config/v850/v850.c : Likewise.
3809         * config/vax/vax.c : Likewise.
3810         * config/visium/visium.c : Likewise.
3811         * config/vms/vms-c.c : Likewise.
3812         * config/vms/vms.c : Likewise.
3813         * config/vxworks.c : Likewise.
3814         * config/winnt-c.c : Likewise.
3815         * config/xtensa/xtensa.c : Likewise.
3817 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
3819         PR lto/65378
3820         * ipa-utils.h (warn_types_mismatch): Update prototype.
3821         * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
3822         parameters.
3823         (type_mismatch_p): New function.
3824         (warn_types_mismatch): Reorg to work better on non-C++ types.
3825         (odr_types_equivalent_p): Add loc1/loc2 parameters.
3826         (add_type_duplicate): Update.
3828 2015-06-08  Tom de Vries  <tom@codesourcery.com>
3830         PR rtl-optimization/66444
3831         * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
3832         call_used_regs.
3834 2015-06-08  Richard Biener  <rguenther@suse.de>
3836         PR tree-optimization/66422
3837         * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
3838         block after inserted gcc_unreachable.
3840 2015-06-08  Nick Clifton  <nickc@redhat.com>
3842         * config/rx/rx.c (rx_function_value): Do not promote vector types.
3843         (rx_promote_function_mode): Likewise.
3844         * config/rx/rx.h (LIBCALL_VALUE): Likewise.
3846 2015-06-08  Jakub Jelinek  <jakub@redhat.com>
3848         * genattrtab.c (insn_alternatives): Change type from int *
3849         to uint64_t *.
3850         (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
3851         (get_attr_value): Change type of num_alt to uint64_t.
3852         (compute_alternative_mask): Change return type from
3853         int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
3854         (make_alternative_compare, mk_attr_alt): Change argument type
3855         from int to uint64_t.
3856         (simplify_test_exp): Change type of i from int to uint64_t.
3857         Shift ((uint64_t) 1) instead of 1 up.
3858         (main): Adjust oballocvec first argument from int to uint64_t.
3859         Shift ((uint64_t) 1) instead of 1 up.
3861 2015-06-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
3863         PR other/65366
3864         * gdbhooks.py: Import sys.
3865         (intptr): New function.  Replace int(...) by intptr(...).
3867 2015-06-08  Richard Biener  <rguenther@suse.de>
3869         * tree-vect-stmts.c (vectorizable_load): Compute the pointer
3870         adjustment for gaps at the end of a SLP load group properly.
3871         * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
3872         all permutations we can generate.
3873         (vect_transform_slp_perm_load): Use the correct group-size.
3875 2015-06-08  Marc Glisse  <marc.glisse@inria.fr>
3877         * genmatch.c (expr::gen_transform): For conditions, guess the type
3878         from the second operand.
3880 2015-06-08  Tom de Vries  <tom@codesourcery.com>
3882         PR tree-optimization/66442
3883         * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
3884         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
3885         if the loop latch is not a singleton.  Use
3886         gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
3888 2015-06-08  Marek Polacek  <polacek@redhat.com>
3890         PR sanitizer/66452
3891         * toplev.c (check_global_declaration): Don't warn about artificial
3892         decls.
3894 2015-06-08  Tom de Vries  <tom@codesourcery.com>
3896         PR tree-optimization/66436
3897         * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
3898         dump file.
3899         * gimplify.c: Add tree-dump.h include.
3900         (gimplify_function_tree): Dump function to gimple dump file.
3901         * stor-layout.c (finalize_size_functions): Don't dump function to gimple
3902         dump file.
3904 2015-06-08  Tom de Vries  <tom@codesourcery.com>
3906         PR tree-optimization/66435
3907         * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
3908         function.
3910 2015-06-06  Jan Hubicka  <hubicka@ucw.cz>
3912         * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
3913         of ptr_type_node to not be ptr_to_node.
3914         * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
3915         TREE_TYPE of pointers.
3916         * gimple-expr.c (useless_type_conversion): Reorder the check for
3917         function pointers and TYPE_CANONICAL.
3919 2015-06-06  John David Anglin  <danglin@gcc.gnu.org>
3921         PR bootstrap/66319
3922         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
3923         defines.  Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
3924         Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
3925         later.
3926         * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
3927         Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
3928         _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
3929         _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
3930         and non iso if unix2003.
3932 2015-06-06  Aldy Hernandez  <aldyh@redhat.com>
3934         * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
3936 2015-06-06  Richard Sandiford  <richard.sandiford@arm.com>
3938         * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
3939         rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
3940         cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
3941         except.c, final.c, function.c, gcse-common.c, genemit.c,
3942         haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
3943         lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
3944         sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
3945         shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
3946         more derived ones.
3948 2015-06-06  Mikhail Maltsev  <maltsevm@gmail.com>
3950         * combine.c (combine_split_insns): Remove cast.
3951         * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
3952         * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
3953         * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
3954         * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
3955         * genemit.c (gen_split): Change return type of generated functions to
3956         rtx_insn.
3957         * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
3958         (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
3959         gen_peephole2_* functions.
3960         (print_subroutine, main): Likewise.
3961         * recog.c (peephole2_optimize): Remove cast.
3962         (peep2_next_insn): Promote return type to rtx_insn.
3963         * recog.h (peep2_next_insn): Fix prototype.
3964         * rtl.h (try_split, split_insns): Likewise.
3966 2015-06-06  DJ Delorie  <dj@redhat.com>
3968         * config/msp430/msp430.c (msp430_asm_integer): Support addition
3969         and subtraction too.
3971 2015-06-05  Kaz Kojima  <kkojima@gcc.gnu.org>
3973         PR target/66410
3974         * config/sh/constraints.md (Sid, Ssd): New memory constraints.
3975         * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
3976         instead of Snd.  Disparage Sid/z alternative with '^'.
3978 2015-06-05  Aldy Hernandez  <aldyh@redhat.com>
3980         * dwarf2out.c: Remove deferred_locations*.
3981         (dwarf2_debug_hooks): Add early_finish hook.
3982         Remove global_decl hook.
3983         Add early_global_decl and late_global_decl hook.
3984         New global early_dwarf.
3985         New structure set_early_dwarf.
3986         (output_die): Indicate whether a DIE was generated early
3987         when generating assembly with -dA.
3988         (struct limbo_die_struct): Document created_for field.
3989         Remove file_table_last_lookup.
3990         (remove_AT): Return TRUE if successful.
3991         (remove_child_TAG): Clear die_parent.
3992         (reparent_child): New function abstracted from...
3993         (splice_child_die): ...here.
3994         (new_die): ICE if a DIE ends up in limbo too late.
3995         (check_die): New.
3996         (defer_location): Remove.
3997         (add_subscript_info): Reuse DW_TAG_subrange_type if available.
3998         (fill_variable_array_bounds): New.
3999         (decl_start_label): Call fill_variable_array_bounds.
4000         (gen_formal_parameter_die): Rewrite to reuse previously generated
4001         DIEs.
4002         (gen_subprogram_die): Same.
4003         (gen_variable_die): Same.
4004         (gen_const_die): Same.
4005         (gen_label_die): Same.
4006         (gen_lexical_block_die): Same.
4007         (decl_will_get_specification_p): New.
4008         (local_function_static): New.
4009         (gen_struct_or_union_type_die): Fill in variable-length fields.
4010         (gen_typedef_die): Fill in variable-length typedefs.
4011         (gen_tagged_type_die): Gracefully return on error_mark_node.
4012         Handle re-entrancy.
4013         (gen_type_die_with_usage): Handle variable-length types.
4014         Remove duplicate code for ARRAY_TYPE case.
4015         (process_scope_var): Only process imported modules during early
4016         dwarf.
4017         (dwarf2out_early_global_decl): New.
4018         (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
4019         (dwarf2out_type_decl): Set early_dwarf while calling
4020         dwarf2out_decl.
4021         (dwarf2out_decl): Verify that we did not recreate a previously
4022         generated DIE.
4023         Do not return on DECL_EXTERNALs in VAR_DECLs.
4024         Abstract some code to local_function_static.
4025         (lookup_filename): Remove use of file_table_last_lookup.
4026         Gracefully exit on missing file_name.
4027         (dwarf2out_finish): Verify limbo list.
4028         Remove deferred_locations_list use.
4029         Move deferred_asm_name and limbo flushing to...
4030         (dwarf2out_early_finish): ...here.  New.
4031         (dwarf2out_c_finalize): Remove set of deferred_location_list,
4032         deferred_asm_name, and file_table_last_lookup.
4033         * cgraph.h (referred_to_p): Add default argument.
4034         * cgraphunit.c (referred_to_p): Add and handle include_self
4035         argument.
4036         (analyze_functions): Add first_time argument.
4037         Call check_global_declaration for all symbols.
4038         Call late_global_decl for nodes for moribund nodes.
4039         (finalize_compilation_unit): Add new argument to
4040         analyze_functions.
4041         Call early_global_decl for functions.
4042         Call early_finish debug hook.
4043         * dbxout.c (dbxout_early_global_decl): New.
4044         (dbxout_late_global_decl): New.  Adapted from dbxout_global_decl.
4045         (dbx_debug_hooks): Add new hooks.
4046         (xcoff_debug_hooks): Same.
4047         * debug.c (do_nothing_debug_hooks): Add early_finish field.
4048         Add early and late debug hooks.
4049         Remove global_decl hook.
4050         * debug.h (struct gcc_debug_hooks): Add early_finish,
4051         early_global_decl, and late_global_decl fields.
4052         Remove global_decl field.
4053         Document gcc_debug_hooks.
4054         * gengtype.c (output_typename): Remove.
4055         * godump.c (go_early_global_decl): New.
4056         (go_late_global_decl): New.
4057         (go_global_decl): Remove.
4058         (dump_go_spec_init): Remove global_decl.  Add
4059         {early,late}_global_decl.
4060         * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
4061         (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
4062         * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
4063         (write_global_declarations): Remove.
4064         (global_decl_processing): New.
4065         * langhooks.h (struct lang_hooks_for_decls): Remove
4066         final_write_globals field.
4067         Add post_compilation_parsing_cleanups field.
4068         * passes.c (rest_of_decl_compilation): Call early_global_decl.
4069         * sdbout.c: Add early and late_global_decl hooks.  Remove
4070         sdbout_global_decl hook.
4071         Add early_finish field for sdb_debug_hooks.
4072         (sdbout_global_decl): Remove.
4073         (sdbout_early_global_decl): New.
4074         (sdbout_late_global_decl): New.
4075         * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
4076         * toplev.c (check_global_declaration): Rename from
4077         check_global_declaration_1.
4078         Adapt to use symtab infrastructure.
4079         (check_global_declarations): Remove.
4080         (emit_debug_global_declarations): Remove.
4081         (compile_file): Remove call to final_write_globals langhook.
4082         Run the actual compilation process.
4083         Perform any post compilation parser cleanups.
4084         Generate late debug info.
4085         * toplev.h (check_global_declaration): New.
4086         (check_global_declaration_1): Remove.
4087         (check_global_declarations): Remove.
4088         (write_global_declarations): Remove.
4089         (emit_debug_global_declarations): Remove.
4090         (global_decl_processing): New.
4091         * tree-core.h (struct tree_block): Add DIE field.
4092         * tree.h (BLOCK_DIE): New.
4093         * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
4094         throughout.
4095         (vmsdbgout_early_global_decl): New.
4096         (vmsdbgout_late_global_decl): New.
4097         Add early_finish debug hook field to vmsdbg_debug_hooks.
4098         Remove vmsdbgout_decl to vmsdbgout_function_decl.
4099         Add early and late_global_decl debug hooks.
4101 2015-06-05  Julian Brown  <julian@codesourcery.com>
4102             Sandra Loosemore  <sandra@codesourcery.com>
4104         * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
4105         * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
4106         to print-sysroot-suffix.sh script.
4108 2015-06-05  Tom de Vries  <tom@codesourcery.com>
4110         merge from gomp4 branch:
4111         2015-05-28  Tom de Vries  <tom@codesourcery.com>
4113         PR tree-optimization/65443
4114         * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
4115         (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
4116         (try_transform_to_exit_first_loop_alt): New function.
4117         (transform_to_exit_first_loop): Use
4118         try_transform_to_exit_first_loop_alt.
4120 2015-06-05  James Greenhalgh  <james.greenhalgh@arm.com>
4122         * builtins.c (expand_builtin_atomic_compare_exchange): Call
4123         emit_cmp_and_jump_insns with the mode of target.
4125 2015-06-05  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
4127         * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
4129 2015-06-04  DJ Delorie  <dj@redhat.com>
4131         * config/msp430/msp430.md (movsi_s): New.  Special case for
4132         storing a 20-bit symbol into a 32-bit register.
4133         * config/msp430/msp430.c (msp430_subreg): Add support for it.
4134         * config/msp430/predicates.md (msp430_symbol_operand): New.
4136 2015-06-04  Sriraman Tallam  <tmsriram@google.com>
4138         * c-family/c-common.c (noplt): New attribute.
4139         (handle_noplt_attribute): New handler.
4140         * calls.c (prepare_call_address): Check for noplt
4141         attribute.
4142         * config/i386/i386.c (ix86_expand_call): Check
4143         for noplt attribute.
4144         (ix86_nopic_noplt_attribute_p): New function.
4145         (ix86_output_call_insn): Output indirect call for non-pic
4146         no plt calls.
4147         * doc/extend.texi (noplt): Document new attribute.
4148         * doc/invoke.texi: Document new attribute.
4150 2015-06-04  Andrew MacLeod  <amacleod@redhat.com>
4152         * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
4153         real.h, and fixed-value.h when included in host source files.
4154         * double-int.h: Remove redundant #includes listed above.
4155         * fixed-value.h: Likewise.
4156         * real.h: Likewise.
4157         * wide-int.h: Likewise.
4158         * inchash.h: Likewise.
4159         * rtl.h: Add some include files When included from a generator file.
4160         * target.h: Remove wide-int.h and insn-modes.h from the include list.
4161         * internal-fn.h: Don't include coretypes.h.
4162         * alias.c: Adjust includes for restructured coretypes.h.
4163         * asan.c: Likewise.
4164         * attribs.c: Likewise.
4165         * auto-inc-dec.c: Likewise.
4166         * auto-profile.c: Likewise.
4167         * bb-reorder.c: Likewise.
4168         * bt-load.c: Likewise.
4169         * builtins.c: Likewise.
4170         * caller-save.c: Likewise.
4171         * calls.c: Likewise.
4172         * ccmp.c: Likewise.
4173         * cfg.c: Likewise.
4174         * cfganal.c: Likewise.
4175         * cfgbuild.c: Likewise.
4176         * cfgcleanup.c: Likewise.
4177         * cfgexpand.c: Likewise.
4178         * cfghooks.c: Likewise.
4179         * cfgloop.c: Likewise.
4180         * cfgloop.h: Likewise.
4181         * cfgloopanal.c: Likewise.
4182         * cfgloopmanip.c: Likewise.
4183         * cfgrtl.c: Likewise.
4184         * cgraph.c: Likewise.
4185         * cgraphbuild.c: Likewise.
4186         * cgraphclones.c: Likewise.
4187         * cgraphunit.c: Likewise.
4188         * cilk-common.c: Likewise.
4189         * combine-stack-adj.c: Likewise.
4190         * combine.c: Likewise.
4191         * compare-elim.c: Likewise.
4192         * convert.c: Likewise.
4193         * coverage.c: Likewise.
4194         * cppbuiltin.c: Likewise.
4195         * cprop.c: Likewise.
4196         * cse.c: Likewise.
4197         * cselib.c: Likewise.
4198         * data-streamer-in.c: Likewise.
4199         * data-streamer-out.c: Likewise.
4200         * data-streamer.c: Likewise.
4201         * dbxout.c: Likewise.
4202         * dce.c: Likewise.
4203         * ddg.c: Likewise.
4204         * debug.c: Likewise.
4205         * df-core.c: Likewise.
4206         * df-problems.c: Likewise.
4207         * df-scan.c: Likewise.
4208         * df.h: Likewise.
4209         * dfp.c: Likewise.
4210         * dojump.c: Likewise.
4211         * dominance.c: Likewise.
4212         * domwalk.c: Likewise.
4213         * double-int.c: Likewise.
4214         * dse.c: Likewise.
4215         * dumpfile.c: Likewise.
4216         * dwarf2asm.c: Likewise.
4217         * dwarf2cfi.c: Likewise.
4218         * dwarf2out.c: Likewise.
4219         * dwarf2out.h: Likewise.
4220         * emit-rtl.c: Likewise.
4221         * et-forest.c: Likewise.
4222         * except.c: Likewise.
4223         * explow.c: Likewise.
4224         * expmed.c: Likewise.
4225         * expr.c: Likewise.
4226         * final.c: Likewise.
4227         * fixed-value.c: Likewise.
4228         * fold-const.c: Likewise.
4229         * function.c: Likewise.
4230         * fwprop.c: Likewise.
4231         * gcc-plugin.h: Likewise.
4232         * gcse.c: Likewise.
4233         * generic-match-head.c: Likewise.
4234         * ggc-page.c: Likewise.
4235         * gimple-builder.c: Likewise.
4236         * gimple-expr.c: Likewise.
4237         * gimple-fold.c: Likewise.
4238         * gimple-iterator.c: Likewise.
4239         * gimple-low.c: Likewise.
4240         * gimple-match-head.c: Likewise.
4241         * gimple-pretty-print.c: Likewise.
4242         * gimple-ssa-isolate-paths.c: Likewise.
4243         * gimple-ssa-strength-reduction.c: Likewise.
4244         * gimple-streamer-in.c: Likewise.
4245         * gimple-streamer-out.c: Likewise.
4246         * gimple-streamer.h: Likewise.
4247         * gimple-walk.c: Likewise.
4248         * gimple.c: Likewise.
4249         * gimplify-me.c: Likewise.
4250         * gimplify.c: Likewise.
4251         * godump.c: Likewise.
4252         * graph.c: Likewise.
4253         * graphite-blocking.c: Likewise.
4254         * graphite-dependences.c: Likewise.
4255         * graphite-interchange.c: Likewise.
4256         * graphite-isl-ast-to-gimple.c: Likewise.
4257         * graphite-optimize-isl.c: Likewise.
4258         * graphite-poly.c: Likewise.
4259         * graphite-scop-detection.c: Likewise.
4260         * graphite-sese-to-poly.c: Likewise.
4261         * graphite.c: Likewise.
4262         * haifa-sched.c: Likewise.
4263         * hooks.h: Likewise.
4264         * hw-doloop.c: Likewise.
4265         * ifcvt.c: Likewise.
4266         * incpath.c: Likewise.
4267         * init-regs.c: Likewise.
4268         * internal-fn.c: Likewise.
4269         * ipa-chkp.c: Likewise.
4270         * ipa-comdats.c: Likewise.
4271         * ipa-cp.c: Likewise.
4272         * ipa-devirt.c: Likewise.
4273         * ipa-icf-gimple.c: Likewise.
4274         * ipa-icf.c: Likewise.
4275         * ipa-inline-analysis.c: Likewise.
4276         * ipa-inline-transform.c: Likewise.
4277         * ipa-inline.c: Likewise.
4278         * ipa-polymorphic-call.c: Likewise.
4279         * ipa-profile.c: Likewise.
4280         * ipa-prop.c: Likewise.
4281         * ipa-pure-const.c: Likewise.
4282         * ipa-ref.c: Likewise.
4283         * ipa-reference.c: Likewise.
4284         * ipa-split.c: Likewise.
4285         * ipa-utils.c: Likewise.
4286         * ipa-visibility.c: Likewise.
4287         * ipa.c: Likewise.
4288         * ira-build.c: Likewise.
4289         * ira-color.c: Likewise.
4290         * ira-conflicts.c: Likewise.
4291         * ira-costs.c: Likewise.
4292         * ira-emit.c: Likewise.
4293         * ira-lives.c: Likewise.
4294         * ira.c: Likewise.
4295         * jump.c: Likewise.
4296         * langhooks.c: Likewise.
4297         * lcm.c: Likewise.
4298         * loop-doloop.c: Likewise.
4299         * loop-init.c: Likewise.
4300         * loop-invariant.c: Likewise.
4301         * loop-iv.c: Likewise.
4302         * loop-unroll.c: Likewise.
4303         * lower-subreg.c: Likewise.
4304         * lra-assigns.c: Likewise.
4305         * lra-coalesce.c: Likewise.
4306         * lra-constraints.c: Likewise.
4307         * lra-eliminations.c: Likewise.
4308         * lra-lives.c: Likewise.
4309         * lra-remat.c: Likewise.
4310         * lra-spills.c: Likewise.
4311         * lra.c: Likewise.
4312         * lto-cgraph.c: Likewise.
4313         * lto-compress.c: Likewise.
4314         * lto-opts.c: Likewise.
4315         * lto-section-in.c: Likewise.
4316         * lto-section-out.c: Likewise.
4317         * lto-streamer-in.c: Likewise.
4318         * lto-streamer-out.c: Likewise.
4319         * lto-streamer.c: Likewise.
4320         * mcf.c: Likewise.
4321         * mode-switching.c: Likewise.
4322         * modulo-sched.c: Likewise.
4323         * omega.c: Likewise.
4324         * omp-low.c: Likewise.
4325         * optabs.c: Likewise.
4326         * opts-global.c: Likewise.
4327         * passes.c: Likewise.
4328         * plugin.c: Likewise.
4329         * postreload-gcse.c: Likewise.
4330         * postreload.c: Likewise.
4331         * predict.c: Likewise.
4332         * print-rtl.c: Likewise.
4333         * print-tree.c: Likewise.
4334         * profile.c: Likewise.
4335         * real.c: Likewise.
4336         * realmpfr.c: Likewise.
4337         * realmpfr.h: Likewise.
4338         * recog.c: Likewise.
4339         * ree.c: Likewise.
4340         * reg-stack.c: Likewise.
4341         * regcprop.c: Likewise.
4342         * reginfo.c: Likewise.
4343         * regrename.c: Likewise.
4344         * regs.h: Likewise.
4345         * regstat.c: Likewise.
4346         * reload.c: Likewise.
4347         * reload1.c: Likewise.
4348         * reorg.c: Likewise.
4349         * resource.c: Likewise.
4350         * rtl-chkp.c: Likewise.
4351         * rtlanal.c: Likewise.
4352         * rtlhooks.c: Likewise.
4353         * sanopt.c: Likewise.
4354         * sched-deps.c: Likewise.
4355         * sched-ebb.c: Likewise.
4356         * sched-rgn.c: Likewise.
4357         * sched-vis.c: Likewise.
4358         * sdbout.c: Likewise.
4359         * sel-sched-dump.c: Likewise.
4360         * sel-sched-ir.c: Likewise.
4361         * sel-sched.c: Likewise.
4362         * sese.c: Likewise.
4363         * shrink-wrap.c: Likewise.
4364         * shrink-wrap.h: Likewise.
4365         * simplify-rtx.c: Likewise.
4366         * stack-ptr-mod.c: Likewise.
4367         * statistics.c: Likewise.
4368         * stmt.c: Likewise.
4369         * stor-layout.c: Likewise.
4370         * store-motion.c: Likewise.
4371         * stringpool.c: Likewise.
4372         * symtab.c: Likewise.
4373         * target-globals.c: Likewise.
4374         * targhooks.c: Likewise.
4375         * toplev.c: Likewise.
4376         * tracer.c: Likewise.
4377         * trans-mem.c: Likewise.
4378         * tree-affine.c: Likewise.
4379         * tree-affine.h: Likewise.
4380         * tree-browser.c: Likewise.
4381         * tree-call-cdce.c: Likewise.
4382         * tree-cfg.c: Likewise.
4383         * tree-cfgcleanup.c: Likewise.
4384         * tree-chkp-opt.c: Likewise.
4385         * tree-chkp.c: Likewise.
4386         * tree-chrec.c: Likewise.
4387         * tree-complex.c: Likewise.
4388         * tree-data-ref.c: Likewise.
4389         * tree-dfa.c: Likewise.
4390         * tree-diagnostic.c: Likewise.
4391         * tree-dump.c: Likewise.
4392         * tree-eh.c: Likewise.
4393         * tree-emutls.c: Likewise.
4394         * tree-if-conv.c: Likewise.
4395         * tree-inline.c: Likewise.
4396         * tree-into-ssa.c: Likewise.
4397         * tree-iterator.c: Likewise.
4398         * tree-loop-distribution.c: Likewise.
4399         * tree-nested.c: Likewise.
4400         * tree-nrv.c: Likewise.
4401         * tree-object-size.c: Likewise.
4402         * tree-outof-ssa.c: Likewise.
4403         * tree-parloops.c: Likewise.
4404         * tree-phinodes.c: Likewise.
4405         * tree-predcom.c: Likewise.
4406         * tree-pretty-print.c: Likewise.
4407         * tree-pretty-print.h: Likewise.
4408         * tree-profile.c: Likewise.
4409         * tree-scalar-evolution.c: Likewise.
4410         * tree-sra.c: Likewise.
4411         * tree-ssa-address.c: Likewise.
4412         * tree-ssa-alias.c: Likewise.
4413         * tree-ssa-ccp.c: Likewise.
4414         * tree-ssa-coalesce.c: Likewise.
4415         * tree-ssa-copy.c: Likewise.
4416         * tree-ssa-copyrename.c: Likewise.
4417         * tree-ssa-dce.c: Likewise.
4418         * tree-ssa-dom.c: Likewise.
4419         * tree-ssa-dse.c: Likewise.
4420         * tree-ssa-forwprop.c: Likewise.
4421         * tree-ssa-ifcombine.c: Likewise.
4422         * tree-ssa-live.c: Likewise.
4423         * tree-ssa-loop-ch.c: Likewise.
4424         * tree-ssa-loop-im.c: Likewise.
4425         * tree-ssa-loop-ivcanon.c: Likewise.
4426         * tree-ssa-loop-ivopts.c: Likewise.
4427         * tree-ssa-loop-manip.c: Likewise.
4428         * tree-ssa-loop-niter.c: Likewise.
4429         * tree-ssa-loop-prefetch.c: Likewise.
4430         * tree-ssa-loop-unswitch.c: Likewise.
4431         * tree-ssa-loop.c: Likewise.
4432         * tree-ssa-loop.h: Likewise.
4433         * tree-ssa-math-opts.c: Likewise.
4434         * tree-ssa-operands.c: Likewise.
4435         * tree-ssa-phiopt.c: Likewise.
4436         * tree-ssa-phiprop.c: Likewise.
4437         * tree-ssa-pre.c: Likewise.
4438         * tree-ssa-propagate.c: Likewise.
4439         * tree-ssa-reassoc.c: Likewise.
4440         * tree-ssa-sccvn.c: Likewise.
4441         * tree-ssa-scopedtables.c: Likewise.
4442         * tree-ssa-sink.c: Likewise.
4443         * tree-ssa-strlen.c: Likewise.
4444         * tree-ssa-structalias.c: Likewise.
4445         * tree-ssa-tail-merge.c: Likewise.
4446         * tree-ssa-ter.c: Likewise.
4447         * tree-ssa-threadedge.c: Likewise.
4448         * tree-ssa-threadupdate.c: Likewise.
4449         * tree-ssa-uncprop.c: Likewise.
4450         * tree-ssa-uninit.c: Likewise.
4451         * tree-ssa.c: Likewise.
4452         * tree-ssanames.c: Likewise.
4453         * tree-stdarg.c: Likewise.
4454         * tree-streamer-in.c: Likewise.
4455         * tree-streamer-out.c: Likewise.
4456         * tree-streamer.c: Likewise.
4457         * tree-switch-conversion.c: Likewise.
4458         * tree-tailcall.c: Likewise.
4459         * tree-vect-data-refs.c: Likewise.
4460         * tree-vect-generic.c: Likewise.
4461         * tree-vect-loop-manip.c: Likewise.
4462         * tree-vect-loop.c: Likewise.
4463         * tree-vect-patterns.c: Likewise.
4464         * tree-vect-slp.c: Likewise.
4465         * tree-vect-stmts.c: Likewise.
4466         * tree-vectorizer.c: Likewise.
4467         * tree-vrp.c: Likewise.
4468         * tree.c: Likewise.
4469         * tsan.c: Likewise.
4470         * ubsan.c: Likewise.
4471         * valtrack.c: Likewise.
4472         * value-prof.c: Likewise.
4473         * var-tracking.c: Likewise.
4474         * varasm.c: Likewise.
4475         * varpool.c: Likewise.
4476         * vmsdbgout.c: Likewise.
4477         * vtable-verify.c: Likewise.
4478         * web.c: Likewise.
4479         * wide-int-print.cc: Likewise.
4480         * wide-int-print.h: Likewise.
4481         * wide-int.cc: Likewise.
4482         * xcoffout.c: Likewise.
4483         * config/aarch64/aarch64-builtins.c: Likewise.
4484         * config/aarch64/aarch64.c: Likewise.
4485         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
4486         * config/alpha/alpha.c: Likewise.
4487         * config/arc/arc.c: Likewise.
4488         * config/arm/aarch-common.c: Likewise.
4489         * config/arm/arm-builtins.c: Likewise.
4490         * config/arm/arm-c.c: Likewise.
4491         * config/arm/arm.c: Likewise.
4492         * config/avr/avr-c.c: Likewise.
4493         * config/avr/avr-log.c: Likewise.
4494         * config/avr/avr.c: Likewise.
4495         * config/bfin/bfin.c: Likewise.
4496         * config/c6x/c6x.c: Likewise.
4497         * config/cr16/cr16.c: Likewise.
4498         * config/cris/cris.c: Likewise.
4499         * config/darwin-c.c: Likewise.
4500         * config/darwin.c: Likewise.
4501         * config/default-c.c: Likewise.
4502         * config/epiphany/epiphany.c: Likewise.
4503         * config/epiphany/mode-switch-use.c: Likewise.
4504         * config/epiphany/resolve-sw-modes.c: Likewise.
4505         * config/fr30/fr30.c: Likewise.
4506         * config/frv/frv.c: Likewise.
4507         * config/ft32/ft32.c: Likewise.
4508         * config/glibc-c.c: Likewise.
4509         * config/h8300/h8300.c: Likewise.
4510         * config/i386/i386-c.c: Likewise.
4511         * config/i386/i386.c: Likewise.
4512         * config/i386/msformat-c.c: Likewise.
4513         * config/i386/winnt-cxx.c: Likewise.
4514         * config/i386/winnt-stubs.c: Likewise.
4515         * config/i386/winnt.c: Likewise.
4516         * config/ia64/ia64-c.c: Likewise.
4517         * config/ia64/ia64.c: Likewise.
4518         * config/iq2000/iq2000.c: Likewise.
4519         * config/lm32/lm32.c: Likewise.
4520         * config/m32c/m32c-pragma.c: Likewise.
4521         * config/m32c/m32c.c: Likewise.
4522         * config/m32r/m32r.c: Likewise.
4523         * config/m68k/m68k.c: Likewise.
4524         * config/mcore/mcore.c: Likewise.
4525         * config/mep/mep-pragma.c: Likewise.
4526         * config/mep/mep.c: Likewise.
4527         * config/microblaze/microblaze-c.c: Likewise.
4528         * config/microblaze/microblaze.c: Likewise.
4529         * config/mips/mips.c: Likewise.
4530         * config/mmix/mmix.c: Likewise.
4531         * config/mn10300/mn10300.c: Likewise.
4532         * config/moxie/moxie.c: Likewise.
4533         * config/msp430/msp430-c.c: Likewise.
4534         * config/msp430/msp430.c: Likewise.
4535         * config/nds32/nds32-cost.c: Likewise.
4536         * config/nds32/nds32-fp-as-gp.c: Likewise.
4537         * config/nds32/nds32-intrinsic.c: Likewise.
4538         * config/nds32/nds32-isr.c: Likewise.
4539         * config/nds32/nds32-md-auxiliary.c: Likewise.
4540         * config/nds32/nds32-memory-manipulation.c: Likewise.
4541         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
4542         * config/nds32/nds32-predicates.c: Likewise.
4543         * config/nds32/nds32.c: Likewise.
4544         * config/nios2/nios2.c: Likewise.
4545         * config/nvptx/nvptx.c: Likewise.
4546         * config/pa/pa.c: Likewise.
4547         * config/pdp11/pdp11.c: Likewise.
4548         * config/rl78/rl78-c.c: Likewise.
4549         * config/rl78/rl78.c: Likewise.
4550         * config/rs6000/rs6000-c.c: Likewise.
4551         * config/rs6000/rs6000.c: Likewise.
4552         * config/rx/rx.c: Likewise.
4553         * config/s390/s390-c.c: Likewise.
4554         * config/s390/s390.c: Likewise.
4555         * config/sh/sh-c.c: Likewise.
4556         * config/sh/sh-mem.cc: Likewise.
4557         * config/sh/sh.c: Likewise.
4558         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
4559         * config/sh/sh_treg_combine.cc: Likewise.
4560         * config/sol2-c.c: Likewise.
4561         * config/sol2-cxx.c: Likewise.
4562         * config/sol2-stubs.c: Likewise.
4563         * config/sol2.c: Likewise.
4564         * config/sparc/sparc-c.c: Likewise.
4565         * config/sparc/sparc.c: Likewise.
4566         * config/spu/spu-c.c: Likewise.
4567         * config/spu/spu.c: Likewise.
4568         * config/stormy16/stormy16.c: Likewise.
4569         * config/tilegx/mul-tables.c: Likewise.
4570         * config/tilegx/tilegx-c.c: Likewise.
4571         * config/tilegx/tilegx.c: Likewise.
4572         * config/tilepro/mul-tables.c: Likewise.
4573         * config/tilepro/tilepro-c.c: Likewise.
4574         * config/tilepro/tilepro.c: Likewise.
4575         * config/v850/v850-c.c: Likewise.
4576         * config/v850/v850.c: Likewise.
4577         * config/vax/vax.c: Likewise.
4578         * config/visium/visium.c: Likewise.
4579         * config/vms/vms-c.c: Likewise.
4580         * config/vms/vms.c: Likewise.
4581         * config/vxworks.c: Likewise.
4582         * config/winnt-c.c: Likewise.
4583         * config/xtensa/xtensa.c: Likewise.
4584         * common/config/bfin/bfin-common.c: Likewise.
4586 2015-06-04  Jan Hubicka  <hubicka@ucw.cz>
4588         * tree.h (tree_code_for_canonical_type_merging): New function.
4589         * tree.c (gimple_canonical_types_compatible_p): Use
4590         tree_code_for_canonical_type_merging..
4592 2015-06-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4594         PR c++/66192
4595         PR target/66200
4596         * doc/tm.texi: Regenerate.
4597         * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
4598         * target.def (TARGET_RELAXED_ORDERING): Likewise.
4599         * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
4600         * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
4601         * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
4602         * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
4603         * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
4604         * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
4605         * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
4607 2015-06-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4609         * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
4610         register fma steering pass.
4611         * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
4612         AARCH64_TUNE_FMA_STEERING.
4614 2015-06-03  Jan Hubicka  <hubicka@ucw.cz>
4616         * tree.c (verify_type_variant): Verify that type and variant is
4617         compatible.
4618         (gimple_canonical_types_compatible_p): Look for main variants.
4620 2015-06-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
4622         * config.gcc (powerpc*-*-*): Add support for a new configure
4623         option --with-advance-toolchain=<xxx> which overrides using the
4624         default header files, libraries and dynamic linker.
4626         * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
4627         specs to support the configure --with-advance-toolchain=<xxx>
4628         option.
4629         (INCLUDE_EXTRA_SPEC): Likewise.
4630         (LINK_OS_EXTRA_SPEC32): Likewise.
4631         (LINK_OK_EXTRA_SPEC64): Likewise.
4632         (LINK_OS_NEW_DTAGS_SPEC): Likewise.
4633         (DYNAMIC_LINKER_PREFIX): Likewise.
4634         (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
4635         toolchain support.
4636         (GLIBC_DYNAMIC_LINKER32): Likewise.
4637         (GLIBC_DYNAMIC_LINKER64): Likewise.
4638         (LINK_OS_LINUX_SPEC32): Likewise.
4639         (LINK_OS_LINUX_SPEC64): Likewise.
4641         * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
4642         configuration option.
4644 2015-06-03  Uros Bizjak  <ubizjak@gmail.com>
4646         PR target/66275
4647         * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
4648         to determine current function ABI.
4649         (ix86_function_value_regno_p): Ditto.
4651 2015-06-03  Martin Liska  <mliska@suse.cz>
4653         * alloc-pool.h (struct pool_usage): Correct GNU coding style.
4654         * bitmap.h (struct bitmap_usage): Likewise.
4655         * ggc-common.c (struct ggc_usage): Likewise.
4656         * mem-stats.h (struct mem_location): Likewise.
4657         (struct mem_usage): Likewise.
4658         * vec.c (struct vec_usage): Likewise.
4660 2015-06-03  Benigno B. Junior  <bbj@gentoo.org>
4662         * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
4663         -Bsymbolic.
4665 2015-06-02  Andres Tiraboschi  <andres.tiraboschi@tallertechnologies.com>
4667         * doc/plugins.texi (enum plugin_event): New event.
4668         * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
4669         and PLUGIN_FINISH_FUNCTION.
4670         * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
4671         (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
4673 2015-06-03  Richard Biener  <rguenther@suse.de>
4675         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
4676         compute GROUP_GAP for the first element.
4677         * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
4678         on in-group gaps.
4680 2015-06-03  Nick Clifton  <nickc@redhat.com>
4682         * config/rl78/rl78-real.md: Add peepholes to avoid a register
4683         copy when calling a function.
4684         * config/rl78/rl78.c (need_to_save): Do not push the frame
4685         pointer in an interrupt handler prologue if it is never used.
4687 2015-06-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4689         * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
4691 2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
4693         * ipa-chkp.c (chkp_maybe_create_clone): Create alias
4694         reference when cloning alias node.
4696 2015-06-03  Martin Liska  <mliska@suse.cz>
4698         * alloc-pool.h (struct pool_usage): Correct space padding.
4699         * ggc-page.c (ggc_print_statistics): Align columns in a report.
4700         * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
4701         * tree.c (dump_tree_statistics): Align columns in a report.
4703 2015-06-03  Martin Liska  <mliska@suse.cz>
4705         * alloc-pool.c (allocate_pool_descriptor): Remove.
4706         (struct pool_output_info): Likewise.
4707         (print_alloc_pool_statistics): Likewise.
4708         (dump_alloc_pool_statistics): Likewise.
4709         * alloc-pool.h (struct pool_usage): New struct.
4710         (pool_allocator::initialize): Change usage of memory statistics
4711         to a new interface.
4712         (pool_allocator::release): Likewise.
4713         (pool_allocator::allocate): Likewise.
4714         (pool_allocator::remove): Likewise.
4715         * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
4716         for a pool allocator.
4717         * mem-stats.h (struct mem_location): Add new ctor.
4718         (struct mem_usage): Add counter for number of
4719         instances.
4720         (mem_alloc_description::register_descriptor): New overload of
4721         * mem-stats.h (mem_location::to_string): New function.
4722         * bitmap.h (struct bitmap_usage): Use this new function.
4723         * ggc-common.c (struct ggc_usage): Likewise.
4724         the function.
4726 2015-06-03  Richard Sandiford  <richard.sandiford@arm.com>
4728         * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
4729         of GCC_INSN_FLAGS_H block.
4731 2015-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
4733         * explow.c (plus_constant): Update check after force_const_mem call
4734         to see if the value returned is not a NULL_RTX.
4736 2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
4738         * ipa.c (symbol_table::remove_unreachable_nodes): Don't
4739         remove instumentation thunks calling reachable functions.
4740         * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
4741         * lto/lto-partition.c (privatize_symbol_name_1): New.
4742         (privatize_symbol_name): Privatize both decl and orig_decl
4743         names for instrumented functions.
4744         * cgraph.c (cgraph_node::verify_node): Add transparent
4745         alias chain check for instrumented node.
4747 2015-06-03  Marek Polacek  <polacek@redhat.com>
4749         PR c/64223
4750         PR c/29358
4751         * tree.c (attribute_value_equal): Handle attribute format.
4752         (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
4754 2015-06-03  Richard Biener  <rguenther@suse.de>
4756         PR tree-optimization/63916
4757         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
4758         Forward-propagate non-invariant addresses by splicing their
4759         reference ops if the result isn't going to be used by PRE.
4760         (vn_reference_lookup_3): Remove pointless assert.
4762 2015-06-03  Richard Biener  <rguenther@suse.de>
4764         PR tree-optimization/66375
4765         * tree-scalar-evolution.c (follow_ssa_edge_binary): First
4766         add to the evolution before following SSA edges.
4768 2015-06-03  Bin Cheng  <bin.cheng@arm.com>
4770         * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
4771         (dump_use, dump_cand, find_induction_variables): Pass new argument
4772         to dump_iv.
4773         (record_use): Preserve the ssa name information in IV.
4775 2015-06-03  Richard Sandiford  <richard.sandiford@arm.com>
4777         * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
4778         NO_MODE_TEST.
4779         (add_mode_tests): Don't add mode tests if the predicate only
4780         accepts scalar constant integers.  Otherwise, allow the mode
4781         of "op" to be VOIDmode if the predicate does accept such integers.
4783 2015-06-02  Jim Wilson  <jim.wilson@linaro.org>
4785         PR target/66258
4786         * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
4787         !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
4788         (aarch64_secondary_reload): Likewise
4789         (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
4790         to !TARGET_FLOAT.
4791         (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
4792         Likewise.
4794 2015-06-03  Kugan Vivekanandarajah  <kuganv@linaro.org>
4795             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
4797         PR target/65768
4798         * cprop.c (try_replace_reg): Check cost of constants before propagating.
4800 2015-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
4802         * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
4803         provide access to the IBM extended double floating point mode if
4804         long double is IEEE 128-bit floating point.
4805         (KFmode): Define KFmode to provide access to IEEE 128-bit floating
4806         point if long double is the IBM extended double type.
4808         * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
4809         enable adding IEEE 128-bit floating point support.
4810         (-mfloat128-software): Likewise.
4811         (-mfloat128-sw): Likewise.
4813         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
4814         128-bit floating point types to occupy any register if
4815         -mlong-double-64.  Do not allow use of IFmode/KFmode unless
4816         -mfloat128-software is enabled.
4817         (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
4818         support.
4819         (rs6000_option_override_internal): Add -mfloat128-* support.
4820         (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
4822         * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
4823         and float128 type nodes.
4824         (ieee128_float_type_node): Likewise.
4825         (ibm128_float_type_node): Likewise.
4827 2015-06-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4829         PR target/66136
4830         * config/aarch64/geniterators.sh: Rewrite in awk.
4832 2015-06-02  Martin Liska  <mliska@suse.cz>
4834         * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
4835         values to avoid -Wmaybe-uninitialized errors.
4837 2015-06-02  Richard Biener  <rguenther@suse.de>
4839         PR debug/65549
4840         * dwarf2out.c (lookup_context_die): New function.
4841         (resolve_addr): Avoid forcing a full DIE for the
4842         target of a DW_TAG_GNU_call_site during late compilation.
4843         Instead create a stub DIE without a type if we have a
4844         context DIE present.
4846 2015-06-02  Uros Bizjak  <ubizjak@gmail.com>
4848         * df-scan.c (df_scan_start_dump): Add space between regno and regname.
4850 2015-06-02  Bin Cheng  <bin.cheng@arm.com>
4852         PR tree-optimization/48052
4853         * cfgloop.h (struct control_iv): New.
4854         (struct loop): New field control_ivs.
4855         * tree-ssa-loop-niter.c : Include "stor-layout.h".
4856         (number_of_iterations_lt): Set no_overflow information.
4857         (number_of_iterations_exit): Init control iv in niter struct.
4858         (record_control_iv): New.
4859         (estimate_numbers_of_iterations_loop): Call record_control_iv.
4860         (loop_exits_before_overflow): New.  Interface factored out of
4861         scev_probably_wraps_p.
4862         (scev_probably_wraps_p): Factor loop niter related code into
4863         loop_exits_before_overflow.
4864         (free_numbers_of_iterations_estimates_loop): Free control ivs.
4865         * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
4867 2015-06-02  Eric Botcazou  <ebotcazou@adacore.com>
4869         * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
4870         the target doesn't belong to the current function.
4872 2015-06-02  Marek Polacek  <polacek@redhat.com>
4874         PR middle-end/66345
4875         * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
4876         get_maxval_strlen does not produce an INTEGER_CST.
4878 2015-06-02  Richard Sandiford  <richard.sandiford@arm.com>
4880         * config/arc/constraints.md: Use lower-case names in match_code.
4881         * config/mmix/constraints.md: Likewise.
4883 2015-06-02  Richard Biener  <rguenther@suse.de>
4885         PR tree-optimization/65961
4886         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
4887         check and clarify dump message.
4888         (vect_build_slp_tree): If all children are built up from scalars
4889         build up the parent from scalars instead.
4890         * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
4892 2015-06-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
4894         PR other/65366
4895         * gdbhooks.py: Use int(...) instead of long(...).  Use print(...)
4896         instead of print ... .
4898 2015-06-02  Alan Modra  <amodra@gmail.com>
4900         * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
4901         2014-08-11 change.
4903 2015-06-02  Bin Cheng  <bin.cheng@arm.com>
4905         PR tree-optimization/52563
4906         PR tree-optimization/62173
4907         * tree-ssa-loop-ivopts.c (struct iv): New field.  Reorder fields.
4908         (alloc_iv, set_iv): New parameter.
4909         (determine_biv_step): Delete.
4910         (find_bivs): Inline original determine_biv_step.  Pass new
4911         argument to set_iv.
4912         (idx_find_step): Use no_overflow information for conversion.
4913         * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
4914         resolve_mixers handle folded_casts.
4915         (instantiate_scev_name): Change bool parameter to bool pointer.
4916         (instantiate_scev_poly, instantiate_scev_binary): Ditto.
4917         (instantiate_array_ref, instantiate_scev_not): Ditto.
4918         (instantiate_scev_3, instantiate_scev_2): Ditto.
4919         (instantiate_scev_1, instantiate_scev_r): Ditto.
4920         (instantiate_scev_convert, ): Change parameter.  Pass argument
4921         to chrec_convert_aggressive.
4922         (instantiate_scev): Change argument.
4923         (resolve_mixers): New parameter and set it.
4924         (scev_const_prop): New argument.
4925         * tree-scalar-evolution.h (resolve_mixers): New parameter.
4926         * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
4927         of chrec_conert_1.
4928         (chrec_convert): New parameter.  Move definition below.
4929         (chrec_convert_aggressive): New parameter and set it.  Call
4930         convert_affine_scev.
4931         * tree-chrec.h (chrec_convert): New parameter.
4932         (chrec_convert_aggressive): Ditto.
4934 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
4936         * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
4937         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
4938         the LHS of a no-return call if its type has variable size.
4939         * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
4940         * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
4942 2015-06-01  Andreas Tobler  <andreast@gcc.gnu.org>
4944         * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
4945         * config.in: Regenerate.
4947 2015-06-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
4949         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
4950         consecutive accesses within outer-loop with force_vectorize
4951         for references with zero step in inner-loop.
4953 2015-06-01  Vidya Praveen  <vidyapraveen@arm.com>
4955         * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
4956         rather than from gcc/build directory.
4958 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
4960         PR target/65697
4961         * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
4962         for __sync memory models, emit initial loads and final barriers as
4963         appropriate.
4965 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
4967         PR target/65697
4968         * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
4969         (aarch64_split_atomic_op): Check for __sync memory models, emit
4970         appropriate initial loads and final barriers.
4972 2015-06-01  Vidya Praveen  <vidyapraveen@arm.com>
4974         * Makefile.in: Fix gcov dependencies that should
4975         not point to a build folder.
4977 2015-06-01  Richard Biener  <rguenther@suse.de>
4979         Revert
4980         2015-05-29  Richard Biener  <rguenther@suse.de>
4982         PR tree-optimization/66314
4983         * tree-ssa-threadupdate.c (create_block_for_threading): Add
4984         parameter that says which loop the new block belongs to.
4985         (ssa_create_duplicates): Blocks duplicated for the threaded
4986         path belong to the loop of the thread destination.
4988 2015-06-01  Martin Liska  <mliska@suse.cz>
4990         * sched-deps.c: Include pool-alloc.h before
4991         cselib.h header file is included.
4993 2015-06-01  Richard Biener  <rguenther@suse.de>
4995         * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
4996         functions.
4998 2015-06-01  Martin Liska  <mliska@suse.cz>
5000         * alloc-pool.h: Add ATTRIBUTE_UNUSED for
5001         a function local variable.
5003 2015-06-01  Martin Liska  <mliska@suse.cz>
5005         * alloc-pool.c (create_alloc_pool): Remove.
5006         (empty_alloc_pool): Likewise.
5007         (free_alloc_pool): Likewise.
5008         (free_alloc_pool_if_empty): Likewise.
5009         (pool_alloc): Likewise.
5010         (pool_free): Likewise.
5011         * alloc-pool.h: Remove old declarations.
5013 2015-06-01  Martin Liska  <mliska@suse.cz>
5015         * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
5016         (ira_create_object): Likewise.
5017         (ira_create_allocno): Likewise.
5018         (ira_create_live_range): Likewise.
5019         (copy_live_range): Likewise.
5020         (ira_finish_live_range): Likewise.
5021         (ira_free_allocno_costs): Likewise.
5022         (finish_allocno): Likewise.
5023         (finish_allocnos): Likewise.
5024         (initiate_prefs): Likewise.
5025         (ira_create_pref): Likewise.
5026         (finish_pref): Likewise.
5027         (finish_prefs): Likewise.
5028         (initiate_copies): Likewise.
5029         (ira_create_copy): Likewise.
5030         (finish_copy): Likewise.
5031         (finish_copies): Likewise.
5032         (finish_prefs): Likewise.
5034 2015-06-01  Martin Liska  <mliska@suse.cz>
5036         * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
5037         (allocate_and_init_ipcp_value): Likewise.
5038         (ipcp_lattice::add_value): Likewise.
5039         (merge_agg_lats_step): Likewise.
5040         (ipcp_driver): Likewise.
5041         * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
5042         (ipa_free_all_structures_after_iinln): Likewise.
5043         * ipa-prop.h: Likewise.
5045 2015-06-01  Martin Liska  <mliska@suse.cz>
5047         * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
5048         pool allocator.
5049         (set_hint_predicate): Likewise.
5050         (inline_summary_alloc): Likewise.
5051         (reset_inline_edge_summary): Likewise.
5052         (reset_inline_summary): Likewise.
5053         (set_cond_stmt_execution_predicate): Likewise.
5054         (set_switch_stmt_execution_predicate): Likewise.
5055         (compute_bb_predicates): Likewise.
5056         (estimate_function_body_sizes): Likewise.
5057         (inline_free_summary): Likewise.
5059 2015-06-01  Martin Liska  <mliska@suse.cz>
5061         * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
5062         (ipa_edge_duplication_hook): Likewise.
5063         (ipa_free_all_structures_after_ipa_cp): Likewise.
5064         (ipa_free_all_structures_after_iinln): Likewise.
5066 2015-06-01  Martin Liska  <mliska@suse.cz>
5068         * ipa-profile.c (account_time_size): Use new type-based pool allocator.
5069         (ipa_profile_generate_summary): Likewise.
5070         (ipa_profile_read_summary): Likewise.
5071         (ipa_profile): Likewise.
5073 2015-06-01  Martin Liska  <mliska@suse.cz>
5075         * tree-ssa-structalias.c (new_var_info): Use new type-based
5076         pool allocator.
5077         (new_constraint): Likewise.
5078         (init_alias_vars): Likewise.
5079         (delete_points_to_sets): Likewise.
5081 2015-06-01  Martin Liska  <mliska@suse.cz>
5083         * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
5084         (free_strinfo): Likewise.
5085         (pass_strlen::execute): Likewise.
5087 2015-06-01  Martin Liska  <mliska@suse.cz>
5089         * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
5090         pool allocator.
5091         (vn_reference_insert_pieces): Likewise.
5092         (vn_phi_insert): Likewise.
5093         (visit_reference_op_call): Likewise.
5094         (copy_phi): Likewise.
5095         (copy_reference): Likewise.
5096         (process_scc): Likewise.
5097         (allocate_vn_table): Likewise.
5098         (free_vn_table): Likewise.
5100 2015-06-01  Martin Liska  <mliska@suse.cz>
5102         * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
5103         pool allocator.
5104         (add_repeat_to_ops_vec): Likewise.
5105         (get_ops): Likewise.
5106         (maybe_optimize_range_tests): Likewise.
5107         (init_reassoc): Likewise.
5108         (fini_reassoc): Likewise.
5110 2015-06-01  Martin Liska  <mliska@suse.cz>
5112         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
5113         pool allocator.
5114         (bitmap_set_new): Likewise.
5115         (get_or_alloc_expr_for_constant): Likewise.
5116         (get_or_alloc_expr_for): Likewise.
5117         (phi_translate_1): Likewise.
5118         (compute_avail): Likewise.
5119         (init_pre): Likewise.
5120         (fini_pre): Likewise.
5122 2015-06-01  Martin Liska  <mliska@suse.cz>
5124         * sched-deps.c (create_dep_node): Use new type-based pool allocator.
5125         (delete_dep_node): Likewise.
5126         (create_deps_list): Likewise.
5127         (free_deps_list): Likewise.
5128         (sched_deps_init): Likewise.
5129         (sched_deps_finish): Likewise.
5131 2015-06-01  Martin Liska  <mliska@suse.cz>
5133         * regcprop.c (free_debug_insn_changes): Use new type-based
5134         pool allocator.
5135         (replace_oldest_value_reg): Likewise.
5136         (pass_cprop_hardreg::execute): Likewise.
5138 2015-06-01  Martin Liska  <mliska@suse.cz>
5140         * ira-build.c (initiate_cost_vectors): Use new type-based
5141         pool allocator.
5142         (ira_allocate_cost_vector): Likewise.
5143         (ira_free_cost_vector): Likewise.
5144         (finish_cost_vectors): Likewise.
5146 2015-06-01  Martin Liska  <mliska@suse.cz>
5148         * sel-sched-ir.c (alloc_sched_pools): Use new type-based
5149         pool allocator.
5150         (free_sched_pools): Likewise.
5151         * sel-sched-ir.h (_list_alloc): Likewise.
5152         (_list_remove): Likewise.
5154 2015-06-01  Martin Liska  <mliska@suse.cz>
5156         * stmt.c (add_case_node): Use new type-based pool allocator.
5157         (expand_case): Likewise.
5158         (expand_sjlj_dispatch_table): Likewise.
5160 2015-06-01  Martin Liska  <mliska@suse.cz>
5162         * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
5163         (free_bb): Likewise.
5164         (pass_cse_reciprocals::execute): Likewise.
5166 2015-06-01  Martin Liska  <mliska@suse.cz>
5168         * tree-sra.c (sra_initialize): Use new type-based pool allocator.
5169         (sra_deinitialize) Likewise.
5170         (create_access_1) Likewise.
5171         (build_accesses_from_assign) Likewise.
5172         (create_artificial_child_access) Likewise.
5174 2015-06-01  Martin Liska  <mliska@suse.cz>
5176         * dse.c (get_group_info):Use new type-based pool allocator.
5177         (dse_step0) Likewise.
5178         (free_store_info) Likewise.
5179         (delete_dead_store_insn) Likewise.
5180         (free_read_records) Likewise.
5181         (record_store) Likewise.
5182         (replace_read) Likewise.
5183         (check_mem_read_rtx) Likewise.
5184         (scan_insn) Likewise.
5185         (dse_step1) Likewise.
5186         (dse_step7) Likewise.
5188 2015-06-01  Martin Liska  <mliska@suse.cz>
5190         * df-scan.c (struct df_scan_problem_data):Use new type-based
5191         pool allocator.
5192         (df_scan_free_internal) Likewise.
5193         (df_scan_alloc) Likewise.
5194         (df_grow_reg_info) Likewise.
5195         (df_free_ref) Likewise.
5196         (df_insn_create_insn_record) Likewise.
5197         (df_mw_hardreg_chain_delete) Likewise.
5198         (df_insn_info_delete) Likewise.
5199         (df_free_collection_rec) Likewise.
5200         (df_mw_hardreg_chain_delete_eq_uses) Likewise.
5201         (df_sort_and_compress_mws) Likewise.
5202         (df_ref_create_structure) Likewise.
5203         (df_ref_record) Likewise.
5205 2015-06-01  Martin Liska  <mliska@suse.cz>
5207         * df-problems.c (df_chain_create):Use new type-based pool allocator.
5208         (df_chain_unlink_1) Likewise.
5209         (df_chain_unlink) Likewise.
5210         (df_chain_remove_problem) Likewise.
5211         (df_chain_alloc) Likewise.
5212         (df_chain_free) Likewise.
5213         * df.h (struct dataflow) Likewise.
5215 2015-06-01  Martin Liska  <mliska@suse.cz>
5217         * cselib.c (new_elt_list):Use new type-based pool allocator.
5218         (new_elt_loc_list) Likewise.
5219         (unchain_one_elt_list) Likewise.
5220         (unchain_one_elt_loc_list) Likewise.
5221         (unchain_one_value) Likewise.
5222         (new_cselib_val) Likewise.
5223         (cselib_init) Likewise.
5224         (cselib_finish) Likewise.
5226 2015-06-01  Martin Liska  <mliska@suse.cz>
5228         * config/sh/sh.c (add_constant):Use new type-based pool allocator.
5229         (sh_reorg) Likewise.
5231 2015-06-01  Martin Liska  <mliska@suse.cz>
5233         * cfg.c (initialize_original_copy_tables):Use new type-based
5234         pool allocator.
5235         (free_original_copy_tables) Likewise.
5236         (copy_original_table_clear) Likewise.
5237         (copy_original_table_set) Likewise.
5239 2015-06-01  Martin Liska  <mliska@suse.cz>
5241         * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
5242         pool allocator.
5243         (asan_mem_ref_new) Likewise.
5244         (free_mem_ref_resources) Likewise.
5246 2015-06-01  Martin Liska  <mliska@suse.cz>
5248         * var-tracking.c (variable_htab_free):Use new type-based
5249         pool allocator.
5250         (attrs_list_clear) Likewise.
5251         (attrs_list_insert) Likewise.
5252         (attrs_list_copy) Likewise.
5253         (shared_hash_unshare) Likewise.
5254         (shared_hash_destroy) Likewise.
5255         (unshare_variable) Likewise.
5256         (var_reg_delete_and_set) Likewise.
5257         (var_reg_delete) Likewise.
5258         (var_regno_delete) Likewise.
5259         (drop_overlapping_mem_locs) Likewise.
5260         (variable_union) Likewise.
5261         (insert_into_intersection) Likewise.
5262         (canonicalize_values_star) Likewise.
5263         (variable_merge_over_cur) Likewise.
5264         (dataflow_set_merge) Likewise.
5265         (remove_duplicate_values) Likewise.
5266         (variable_post_merge_new_vals) Likewise.
5267         (dataflow_set_preserve_mem_locs) Likewise.
5268         (dataflow_set_remove_mem_locs) Likewise.
5269         (variable_from_dropped) Likewise.
5270         (variable_was_changed) Likewise.
5271         (set_slot_part) Likewise.
5272         (clobber_slot_part) Likewise.
5273         (delete_slot_part) Likewise.
5274         (loc_exp_insert_dep) Likewise.
5275         (notify_dependents_of_changed_value) Likewise.
5276         (emit_notes_for_differences_1) Likewise.
5277         (vt_emit_notes) Likewise.
5278         (vt_initialize) Likewise.
5279         (vt_finalize) Likewise.
5281 2015-06-01  Martin Liska  <mliska@suse.cz>
5283         * ira-color.c (init_update_cost_records):Use new type-based
5284         pool allocator.
5285         (get_update_cost_record) Likewise.
5286         (free_update_cost_record_list) Likewise.
5287         (finish_update_cost_records) Likewise.
5288         (initiate_cost_update) Likewise.
5290 2015-06-01  Martin Liska  <mliska@suse.cz>
5292         * lra.c (init_insn_regs): Use new type-based pool allocator.
5293         (new_insn_reg) Likewise.
5294         (free_insn_reg) Likewise.
5295         (free_insn_regs) Likewise.
5296         (finish_insn_regs) Likewise.
5297         (init_insn_recog_data) Likewise.
5298         (init_reg_info) Likewise.
5299         (finish_reg_info) Likewise.
5300         (lra_free_copies) Likewise.
5301         (lra_create_copy) Likewise.
5302         (invalidate_insn_data_regno_info) Likewise.
5304 2015-06-01  Martin Liska  <mliska@suse.cz>
5306         * lra-lives.c (free_live_range): Use new type-based pool allocator.
5307         (free_live_range_list) Likewise.
5308         (create_live_range) Likewise.
5309         (copy_live_range) Likewise.
5310         (lra_merge_live_ranges) Likewise.
5311         (remove_some_program_points_and_update_live_ranges) Likewise.
5312         (lra_live_ranges_init) Likewise.
5313         (lra_live_ranges_finish) Likewise.
5315 2015-06-01  Martin Liska  <mliska@suse.cz>
5317         * et-forest.c (et_new_occ): Use new type-based pool allocator.
5318         (et_new_tree): Likewise.
5319         (et_free_tree): Likewise.
5320         (et_free_tree_force): Likewise.
5321         (et_free_pools): Likewise.
5322         (et_split): Likewise.
5324 2015-06-01  Martin Liska  <mliska@suse.cz>
5326         * alloc-pool.c (struct alloc_pool_descriptor): Move definition
5327         to header file.
5328         * alloc-pool.h (pool_allocator::pool_allocator): New function.
5329         (pool_allocator::release): Likewise.
5330         (inline pool_allocator::release_if_empty): Likewise.
5331         (inline pool_allocator::~pool_allocator): Likewise.
5332         (pool_allocator::allocate): Likewise.
5333         (pool_allocator::remove): Likewise.
5335 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
5337         * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
5338         in comment.
5340 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
5342         * gcc/config/arm/arm-protos.h (tune_params): Rename fuseable_ops
5343         to fusible_ops.
5344         * gcc/config/arm/arm.c (arm_print_tune_info): Likewise.
5345         (arm_macro_fusion_p): Likewise.
5346         (arm_macro_fusion_pair_p): Likewise.
5348 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
5350         * config/aarch64/aarch64-protos.h (tune_params): Rename
5351         fuseable_ops to fusible_ops.
5352         * config/aarch64/aarch64.c (generic_tunings): Rename
5353         fuseable_ops to fusible_ops.
5354         (cortexa53_tunings): Likewise.
5355         (cortexa57_tunings): Likewise.
5356         (thunderx_tunings): Likewise.
5357         (xgene1_tunings): Likewise.
5358         (aarch64_macro_fusion_p): Likewise.
5359         (aarch64_macro_fusion_pair_p): Likewise.
5361 2015-06-01  Dominik Vogt  <vogt@linux.vnet.ibm.com>
5363         * config/s390/driver-native.c: New file.
5364         * config/s390/x-native: New file.
5365         * config.host: Add new files for s390.
5366         * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
5367         and -march=native
5368         * config.gcc: Likewise.
5369         * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
5370         * config/s390/s390-opts.h (enum processor_type): Ditto.
5371         * config/s390/s390.c (s390_option_override): Catch unhandled
5372         PROCESSOR_NATIVE
5374 2015-06-01  Ilya Enkovich  <ilya.enkovich@intel.com>
5376         PR target/65527
5377         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
5378         redirection for instrumented calls.
5379         * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
5380         (append_compiler_options): Append -fcheck-pointer-bounds.
5381         * tree-chkp.h (chkp_copy_call_skip_bounds): New.
5382         (chkp_redirect_edge): New.
5383         * tree-chkp.c (chkp_copy_call_skip_bounds): New.
5384         (chkp_redirect_edge): New.
5386 2015-06-01  Richard Biener  <rguenther@suse.de>
5388         PR tree-optimization/66280
5389         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
5390         def-use walking.
5392 2015-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5394         * config/aarch64/aarch64.md
5395         (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
5396         logic_shift_imm.
5398 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
5400         * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
5401         Remove obsolete kludge.
5403 2015-06-01  Richard Biener  <rguenther@suse.de>
5405         * tree-ssa-reassoc.c (get_rank): Simplify.
5407 2015-05-31  H.J. Lu  <hongjiu.lu@intel.com>
5409         * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
5410         * configure: Regenerated.
5412 2015-05-31  Mikhail Maltsev  <maltsevm@gmail.com>
5414         * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
5415         issue (add space between string literal and macro).
5416         * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
5418 2015-05-30  Andreas Schwab  <schwab@linux-m68k.org>
5420         * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
5421         implict or explicit -fPIE or -fpie.
5423 2015-05-30  Mike Frysinger  <vapier@gentoo.org>
5425         * gcc/config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
5427 2015-05-28  DJ Delorie  <dj@redhat.com>
5429         * expmed.c (extract_bit_field_1): Avoid clobbering a
5430         yet-to-be-used base/index register.
5432 2015-05-30  Jan Hubicka  <hubicka@ucw.cz>
5434         * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
5435         (alias_stats): Add num_universal.
5436         (alias_set_subset_of): Special case pointers; be ready for NULL
5437         children.
5438         (alias_sets_conflict_p): Special case pointers; be ready for NULL
5439         children.
5440         (init_alias_set_entry): Break out from ...
5441         (record_alias_subset): ... here; propagate new fields;
5442         allocate children only when really needed.
5443         (get_alias_set): Do less generous pointer globbing.
5444         (dump_alias_stats_in_alias_c): Update statistics.
5446 2015-05-30  Alan Modra  <amodra@gmail.com>
5448         * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
5449         correct block for use of r12.
5450         (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
5452 2015-05-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
5454         PR target/66215
5455         * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
5456         with -mhotpatch=.
5458 2015-05-29  Jakub Jelinek  <jakub@redhat.com>
5460         PR tree-optimization/66142
5461         * tree-if-conv.c (if_convertible_phi_p): Don't give up on
5462         virtual phis that feed themselves.
5464 2015-05-29  Richard Biener  <rguenther@suse.de>
5466         PR tree-optimization/66314
5467         * tree-ssa-threadupdate.c (create_block_for_threading): Add
5468         parameter that says which loop the new block belongs to.
5469         (ssa_create_duplicates): Blocks duplicated for the threaded
5470         path belong to the loop of the thread destination.
5472 2015-05-29  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
5474         * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
5475         to cleanup-saved-temps.
5476         * doc/sourcebuild.texi (Clean up generated test files): Expand
5477         introduction.
5478         (dg-keep-saved-temps): Document new proc.
5479         (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
5480         cleanup-saved-temps): Remove.
5482 2015-05-28  Andreas Tobler  <andreast@gcc.gnu.org>
5484         * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
5485         gcc_AC_CHECK_DECLS.
5486         * configure: Regenerate.
5488 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
5490         * config/nios2/linux.h (CPP_SPEC): Define.
5492 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
5494         * config/microblaze/linux.h (CPP_SPEC): Define.
5496 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
5498         * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
5499         -pthread is specified.
5501 2015-05-28  Richard Biener  <rguenther@suse.de>
5503         * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
5504         (vect_fixup_scalar_cycles_with_patterns): Likewise.
5505         (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
5506         after pattern recog.
5507         (vect_create_epilog_for_reduction): Properly handle reductions
5508         with patterns.
5509         (vectorizable_reduction): Likewise.
5510         * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
5511         reduction chains.
5512         (vect_get_constant_vectors): Create the correct number of
5513         initial values for reductions.
5514         (vect_schedule_slp_instance): Handle reduction chains that are
5515         type changing properly.
5516         * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
5518 2015-05-28  Richard Biener  <rguenther@suse.de>
5520         PR tree-optimization/66142
5521         * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
5522         values better in memcpy destination handling.  Handle non-aliasing
5523         we discover here.
5525 2015-05-28  Lawrence Velázquez  <vq@larryv.me>
5527         PR target/63810
5528         * config/darwin-c.c (version_components): New global enum.
5529         (parse_version, version_as_legacy_macro)
5530         (version_as_modern_macro, macosx_version_as_macro): New functions.
5531         (version_as_macro): Remove.
5532         (darwin_cpp_builtins): Use new function.
5534 2015-05-28  H.J. Lu  <hongjiu.lu@intel.com>
5536         * builtins.c (expand_builtin_acc_on_device): Mark parameters
5537         with ATTRIBUTE_UNUSED.
5539 2015-05-28  Julian Brown  <julian@codesourcery.com>
5541         PR libgomp/65742
5543         * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
5544         sequence for !ACCEL_COMPILER.
5546 2015-05-28  Nick Clifton  <nickc@redhat.com>
5548         * config/rx/rx.c (push_regs): New function.  Extracts code from...
5549         (rx_expand_prologue): ... here.  Use push_regs to push even small
5550         spans of registers.
5551         (pop_regs): New function.
5552         (rx_expand_epilogue):  Use pop_regs to pop even small spans of
5553         registers.
5555 2015-05-28  Richard Biener  <rguenther@suse.de>
5557         * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
5558         member.
5559         (SLP_INSTANCE_BODY_COST_VEC): Remove.
5560         (vect_update_slp_costs_according_to_vf): Likewise.
5561         (vect_slp_analyze_operations): Update prototype.
5562         * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
5563         vect_update_slp_costs_according_to_vf, adjust.
5564         * tree-vect-slp.c (vect_free_slp_instance): Adjust.
5565         (vect_analyze_slp_cost_1): Likewise.
5566         (vect_analyze_slp_cost): Likewise.  Properly deal with
5567         widening reduction ops.  Commit body costs.
5568         (vect_analyze_slp_instance): Adjust.  Do not analyze SLP
5569         cost for loops from here.
5570         (vect_slp_analyze_operations): But do it from here when
5571         the vectorization factor is known and stmts are analyzed.
5572         (vect_bb_vectorization_profitable_p): Simplify.
5573         (vect_slp_analyze_bb_1): Do not compute SLP cost here.
5574         (vect_update_slp_costs_according_to_vf): Remove.
5576 2015-05-27  Magnus Granberg  <zorry@gentoo.org>
5577             H.J. Lu  <hongjiu.lu@intel.com>
5579         * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
5580         (BUILD_CFLAGS): Likewise.
5581         (BUILD_CXXFLAGS): Likewise.
5582         (LINKER): Add @NO_PIE_FLAG@.
5583         (BUILD_LDFLAGS): Likewise.
5584         (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
5585         --enable-default-pie.
5586         * common.opt (fPIE): Initialize to -1.
5587         (fpie): Likewise.
5588         (no-pie): New option.
5589         (pie): Replace "Negative(shared)" with "Negative(no-pie)".
5590         * configure.ac: Add --enable-default-pie.
5591         (NO_PIE_CFLAGS): New.  Check if -fno-PIE works.  AC_SUBST.
5592         (NO_PIE_FLAG): New.  Check if -no-pie works.  AC_SUBST.
5593         * defaults.h (DEFAULT_FLAG_PIE): New.  Default PIE to -fPIE.
5594         * gcc.c (NO_PIE_SPEC): New.
5595         (PIE_SPEC): Likewise.
5596         (NO_FPIE1_SPEC): Likewise.
5597         (FPIE1_SPEC): Likewise.
5598         (NO_FPIE2_SPEC): Likewise.
5599         (FPIE2_SPEC): Likewise.
5600         (NO_FPIE2_SPEC): Likewise.
5601         (FPIE_SPEC): Likewise.
5602         (NO_FPIE_SPEC): Likewise.
5603         (NO_FPIC1_SPEC): Likewise.
5604         (FPIC1_SPEC): Likewise.
5605         (NO_FPIC2_SPEC): Likewise.
5606         (FPIC2_SPEC): Likewise.
5607         (NO_FPIC2_SPEC): Likewise.
5608         (FPIC_SPEC): Likewise.
5609         (NO_FPIC_SPEC): Likewise.
5610         (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
5611         (FPIE1_OR_FPIC1_SPEC): Likewise.
5612         (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
5613         (FPIE2_OR_FPIC2_SPEC): Likewise.
5614         (NO_FPIE_AND_FPIC_SPEC): Likewise.
5615         (FPIE_OR_FPIC_SPEC): Likewise.
5616         (LD_PIE_SPEC): Likewise.
5617         (LINK_PIE_SPEC): Handle -no-pie.  Use PIE_SPEC and LD_PIE_SPEC.
5618         * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
5619         * config/darwin.h (PIE_SPEC): Renamed to ...
5620         (DARWIN_PIE_SPEC): This.
5621         (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
5622         * config/darwin9.h (PIE_SPEC): Renamed to ...
5623         (DARWIN_PIE_SPEC): This.
5624         * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
5625         PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
5626         * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
5627         FPIE2_OR_FPIC2_SPEC.
5628         * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
5629         * config/m68k/openbsd.h (ASM_SPEC): Likewise.
5630         * gcc/config/sol2.h (ASM_PIC_SPEC): Likewise.
5631         * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
5632         * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
5633         * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
5634         * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
5635         * config/m32r/m32r.h (ASM_SPEC): Likewise.
5636         * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
5637         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
5638         * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
5639         * config/sparc/freebsd.h (ASM_SPEC): Likewise.
5640         * config/sparc/linux.h (ASM_SPEC): Likewise.
5641         * config/sparc/linux64.h (ASM_SPEC): Likewise.
5642         * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
5643         * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
5644         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
5645         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
5646         * config/sparc/sparc.h (ASM_SPEC): Likewise.
5647         * config/sparc/sysv4.h (ASM_SPEC): Likewise.
5648         * config/sparc/vxworks.h (ASM_SPEC): Likewise.
5649         * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
5650         FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
5651         * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
5652         * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
5653         NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
5654         (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
5655         * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
5656         * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
5657         * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
5658         * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
5659         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
5660         * config/vax/linux.h (ASM_SPEC): Likewise.
5661         * doc/install.texi: Document --enable-default-pie.
5662         * doc/invoke.texi: Document -no-pie.
5663         * config.in: Regenerated.
5664         * configure: Likewise.
5666 2015-05-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
5668         PR rtl-optimization/66168
5669         * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
5670         can_move_invariant_reg.
5672 2015-05-27  John David Anglin  <danglin@gcc.gnu.org>
5674         PR target/66148
5675         * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
5676         REG_EQUAL note when doing insert.
5678         * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
5679         instead of "%d" for 'o' operand.
5681 2015-05-27  Nathan Sidwell  <nathan@acm.org>
5683         PR c++/66270
5684         * tree.c (build_pointer_type_for_mode): Canonical type does not
5685         inherit can_alias_all.
5686         (build_reference_type_for_mode): Likewise.
5688 2015-05-27  Eric Botcazou  <ebotcazou@adacore.com>
5690         * expr.h (array_at_struct_end_p): Move to...
5691         (array_ref_element_size): Likewise.
5692         (component_ref_field_offset): Likewise.
5693         * tree.h (array_ref_element_size): ...here.
5694         (array_at_struct_end_p): Likewise.
5695         (component_ref_field_offset): Likewise.
5696         * expr.c (array_ref_element_size): Move to...
5697         (array_ref_low_bound): Likewise.
5698         (array_at_struct_end_p): Likewise.
5699         (array_ref_up_bound): Likewise.
5700         (component_ref_field_offset): Likewise.
5701         * tree.c (array_ref_element_size): ...here.
5702         (array_ref_low_bound): Likewise.
5703         (array_ref_up_bound): Likewise.
5704         (array_at_struct_end_p): Likewise.
5705         (component_ref_field_offset): Likewise.
5707 2015-05-27  Gregor Richards  <gregor.richards@uwaterloo.ca>
5708             Szabolcs Nagy  <szabolcs.nagy@arm.com>
5710         * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
5712 2015-05-27  Jason Merrill  <jason@redhat.com>
5714         PR bootstrap/66304
5715         * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
5716         ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
5717         ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
5719 2015-05-22  Aditya Kumar  <hiraditya@msn.com>
5721         * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
5722         is true.
5724         * statistics.c (statistics_fini_pass): Print pass name.
5726 2015-05-27  Richard Biener  <rguenther@suse.de>
5728         PR tree-optimization/66272
5729         Revert parts of
5730         2014-08-15  Richard Biener  <rguenther@suse.de>
5732         PR tree-optimization/62031
5733         * tree-data-ref.c (dr_analyze_indices): Do not set
5734         DR_UNCONSTRAINED_BASE.
5735         (dr_may_alias_p): All indirect accesses have to go the
5736         formerly DR_UNCONSTRAINED_BASE path.
5737         * tree-data-ref.h (struct indices): Remove
5738         unconstrained_base member.
5739         (DR_UNCONSTRAINED_BASE): Remove.
5741 2015-05-27  Aldy Hernandez  <aldyh@redhat.com>
5743         * dwarf2out.c: Remove block_map.
5744         (gen_call_site_die): Replace block_map use with BLOCK_DIE.
5745         (gen_lexical_block_die): Same.
5746         (dwarf2out_function_decl): Remove block_map use.
5747         (dwarf2out_c_finalize): Same.
5748         * tree-core.h (struct tree_block): Add die field.
5749         * tree.h (BLOCK_DIE): New.
5751 2015-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5753         PR target/65358
5754         * expr.c (memory_load_overlap): New function.
5755         (emit_push_insn): When pushing partial args to the stack would
5756         clobber the register part load the overlapping part into a pseudo
5757         and put it into the hard reg after pushing.  Change return type
5758         to bool.  Add bool argument.
5759         * expr.h (emit_push_insn): Change return type to bool.
5760         Add bool argument.
5761         * calls.c (expand_call): Cancel sibcall optimization when encountering
5762         partial argument on targets with ARGS_GROW_DOWNWARD and
5763         !STACK_GROWS_DOWNWARD.
5764         (emit_library_call_value_1): Update callsite of emit_push_insn.
5765         (store_one_arg): Likewise.
5767 2015-05-27  Gregor Richards  <gregor.richards@uwaterloo.ca>
5769         * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
5771 2015-05-27  Martin Liska  <mliska@suse.cz>
5773         * Makefile.in: Add additional dependencies related to memory report
5774         enhancement.
5775         * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
5776         * bitmap.c (struct bitmap_descriptor_d): Remove.
5777         (struct loc): Likewise.
5778         (struct bitmap_desc_hasher): Likewise.
5779         (bitmap_desc_hasher::hash): Likewise.
5780         (bitmap_desc_hasher::equal): Likewise.
5781         (get_bitmap_descriptor): Likewise.
5782         (bitmap_register): User new memory descriptor API.
5783         (register_overhead): Likewise.
5784         (bitmap_find_bit): Register nsearches and search_iter statistics.
5785         (struct bitmap_output_info): Remove.
5786         (print_statistics): Likewise.
5787         (dump_bitmap_statistics): Use new memory descriptor.
5788         * bitmap.h (struct bitmap_usage): New class.
5789         * genmatch.c: Extend header file inclusion.
5790         * genpreds.c: Likewise.
5791         * ggc-common.c (struct ggc_usage): New class.
5792         (struct ggc_loc_desc_hasher): Remove.
5793         (ggc_loc_desc_hasher::hash): Likewise.
5794         (ggc_loc_desc_hasher::equal): Likewise.
5795         (struct ggc_ptr_hash_entry): Likewise.
5796         (struct ptr_hash_hasher): Likewise.
5797         (ptr_hash_hasher::hash): Likewise.
5798         (ptr_hash_hasher::equal): Likewise.
5799         (make_loc_descriptor): Likewise.
5800         (ggc_prune_ptr): Likewise.
5801         (dump_ggc_loc_statistics): Use new memory descriptor.
5802         (ggc_record_overhead): Likewise.
5803         (ggc_free_overhead): Likewise.
5804         (final_cmp_statistic): Remove.
5805         (cmp_statistic): Likewise.
5806         (ggc_add_statistics): Liekwise.
5807         (ggc_prune_overhead_list): Likewise.
5808         * hash-map-traits.h: New file.
5809         * hash-map.h (struct default_hashmap_traits): Move the traits to a
5810         separate header file.
5811         * hash-set.h: Pass memory statistics info to ctor.
5812         * hash-table.c (void dump_hash_table_loc_statistics): New function.
5813         * hash-table.h (hash_table::hash_table): Add new ctor arguments.
5814         (hash_table::~hash_table): Register memory release operation.
5815         (hash_table::alloc_entries): Handle memory allocation operation.
5816         (hash_table::expand): Likewise.
5817         * inchash.c (iterative_hash_hashval_t): Move implementation to header
5818         file.
5819         (iterative_hash_host_wide_int): Likewise.
5820         * inchash.h (class hash): Likewise.
5821         * mem-stats-traits.h: New file.
5822         * mem-stats.h: New file.
5823         (mem_location): Add new class.
5824         (mem_usage): Likewise.
5825         (mem_alloc_description): Likewise.
5826         * sese.c: Add new header file inclusision.
5827         * toplev.c (dump_memory_report): Add report for hash_table, hash_map
5828         and hash_set.
5829         * tree-sra.c: Add new header file inclusision.
5830         * vec.c (struct vec_descriptor): Remove.
5831         (hash_descriptor): Likewise.
5832         (struct vec_usage): Likewise.
5833         (struct ptr_hash_entry): Likewise.
5834         (hash_ptr): Likewise.
5835         (eq_ptr): Likewise.
5836         (vec_prefix::register_overhead): Use new memory descriptor API.
5837         (vec_prefix::release_overhead): Likewise.
5838         (add_statistics): Remove.
5839         (dump_vec_loc_statistics): Use new memory descriptor API.
5840         * vec.h (struct vec_prefix): Likewise.
5841         (va_heap::reserve): Likewise.
5842         (va_heap::release): Likewise.
5843         * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
5845 2015-05-27  Richard Biener  <rguenther@suse.de>
5847         * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
5848         earlier and remove ??? comment.
5849         (vect_analyze_stmt): If we are analyzing a pure SLP stmt
5850         and got called from loop analysis bail out.  Always pass the SLP
5851         node to the vectorizable_* functions.
5852         * tree-vect-loop.c (vect_analyze_loop_operations): Remove
5853         the premature SLP check here.
5854         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
5855         detected SLP stmts.
5856         (vect_detect_hybrid_slp_1): Likewise.
5858 2015-05-26  Jeff Law  <law@redhat.com>
5860         * combine.c (find_split_point): Verify that the shift count is a
5861         constant when choosing (plus (ashift ...)) as a split point.
5863         * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
5864         No functional changes.
5866 2015-05-26  Jan Hubicka  <hubicka@ucw.cz>
5868         * ipa-polymorphic-call.c
5869         (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
5870         case when call target is already known.
5872 2015-05-26  Oleg Endo  <olegendo@gcc.gnu.org>
5874         PR target/65979
5875         * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
5876         take into account the case that operands[1] and operands[2]
5877         are the same register.
5879 2015-05-26  Michael Matz  <matz@suse.de>
5881         PR middle-end/66251
5883         * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
5884         stores.
5885         (vect_create_vectorized_demotion_stmts): Always set
5886         STMT_VINFO_VEC_STMT, also with SLP.
5887         (vectorizable_store): Handle strided group stores.
5889 2015-05-26  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
5891         PR target/66049
5892         * config/aarch64/aarch64.md
5893         (*adds_shift_imm_<mode>):  New pattern.
5894         (*subs_shift_imm_<mode>):  Likewise.
5895         (*adds_<optab><ALLX:mode>_shift_<GPI:mode>):  Likewise.
5896         (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
5897         (*add_uxt<mode>_shift2): Likewise.
5898         (*add_uxtsi_shift2_uxtw): Likewise.
5899         (*sub_uxt<mode>_shift2): Likewise.
5900         (*sub_uxtsi_shift2_uxtw): Likewise.
5902 2015-05-26  David Edelsohn  <dje.gcc@gmail.com>
5904         * config/rs6000/constraints.md (Y, U): Use match_test.
5906 2015-05-26  Christian Bruel  <christian.bruel@st.com>
5908         PR target/52144
5909         * config/arm/arm.c (arm_option_check_internal)
5910         (arm_option_params_internal): Check opts->target_flags to set macros.
5911         (TREE_TARGET_ARM, TREE_TARGET_THUMB)
5912         (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
5913         (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
5914         (builtin_define): Replaced with def_or_undef_macro.
5915         * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
5916         TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
5917         (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
5918         (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
5919         (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
5920         (TARGET_ARM_FEATURE_LDREX_P)
5921         (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
5922         * config/arm/arm-c.c (def_or_undef_macro): New function.
5923         (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
5925 2015-05-26  Christian Bruel  <christian.bruel@st.com>
5927         * c-common.h (builtin_define_with_int_value)
5928         (builtin_define_type_sizeof): Declare.
5929         * c-cppbuiltin.c (builtin_define_with_int_value)
5930         (builtin_define_type_sizeof): Externalize.
5931         (builtin_define_std): Cleanup declaration.
5932         * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
5933         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
5934         * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
5935         (builtin_define, builtin_assert): New macros.
5937 2015-05-26  Richard Biener  <rguenther@suse.de>
5939         PR tree-optimization/66142
5940         * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
5941         MEM_REFs for the same base address.
5943 2015-05-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5945         PR ipa/66181
5946         * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
5948 2015-05-26  Jason Merrill  <jason@redhat.com>
5950         * configure.ac: Set CXXFLAGS for ISL test.
5951         * configure: Regenerate.
5953         * configure.ac: Use C++ for all tests.  Use AC_CHECK_DECLS for
5954         strstr and basename.
5955         * configure: Regenerate.
5957 2015-05-26  Richard Biener  <rguenther@suse.de>
5959         * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
5960         X % C -> X & (C - 1) for C being a power-of two to ...
5961         * match.pd: ... patterns.
5963 2015-05-26  Marc Glisse  <marc.glisse@inria.fr>
5965         * match.pd (swapped_tcc_comparison): New operator list.
5966         (-A CMP -B): New simplification.
5967         * fold-const.c (fold_comparison): Remove corresponding code.
5969 2015-05-26  Richard Sandiford  <richard.sandiford@arm.com>
5971         * caller-save.c (init_caller_save): Base temporary register numbers
5972         on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
5973         * cfgloopanal.c (init_set_costs): Likewise.
5974         * dojump.c (prefer_and_bit_test): Likewise.
5975         * expr.c (init_expr_target): Likewise.
5976         * ira.c (setup_prohibited_mode_move_regs): Likewise.
5977         * lower-subreg.c (init_lower_subreg): Likewise.
5978         * postreload.c (reload_cse_regs_1): Likewise.
5980 2015-05-26  Richard Sandiford  <richard.sandiford@arm.com>
5982         * gensupport.h (compute_test_codes): Declare.
5983         * gensupport.c (compute_predicate_codes): Rename to...
5984         (compute_test_codes): ...this.  Generalize error message.
5985         (process_define_predicate): Update accordingly.
5986         * genpreds.c (compute_maybe_allows): Delete.
5987         (add_constraint): Use compute_test_codes to determine whether
5988         something can accept a SUBREG, REG or MEM.
5990 2015-05-26  Torvald Riegel  <triegel@redhat.com>
5992         * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
5993         'memory model' to align with C++11; fix description of memory orders;
5994         fix a few typos.
5996 2015-05-26  Richard Biener  <rguenther@suse.de>
5998         * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
5999         (vect_analyze_loop_operations): ... here.  Remove slp parameter,
6000         detect whether we apply SLP.  Remove call to
6001         vect_update_slp_costs_according_to_vf.
6002         (vect_analyze_loop_2): Call vect_update_vf_for_slp and
6003         vect_update_slp_costs_according_to_vf from here.  Dispatch
6004         to vect_slp_analyze_operations to analyze SLP stmts.
6005         * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
6006         unused bb_vec_info parameter, adjust assert.
6007         (vect_slp_analyze_operations): Pass in the slp instance tree
6008         instead of bb_vec_info.
6009         (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
6010         * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
6012 2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
6014         * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
6015         Q_REGS.  Expand comment.
6016         (REG_CLASS_NAMES): Ditto.
6017         (REG_CLASS_CONTENTS): Ditto.
6019 2015-05-25  Uros Bizjak  <ubizjak@gmail.com>
6021         PR target/66274
6022         * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
6023         when LEGACY_INT_REGNO_P is processed.
6025 2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
6027         * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
6029 2015-05-25  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
6031         * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
6032         register if not marked dead/unused, before return.
6034 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
6036         PR lto/66180
6037         * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
6038         is set; check for assembler name at LTO time.
6039         (type_in_anonymous_namespace): Remove hacks, check that all
6040         anonymous types are called "<anon>"
6041         (odr_type_p): Simplify; add check for "<anon>"
6042         (odr_subtypes_equivalent): Add odr_type_p check.
6043         * tree.c (need_assembler_name_p): Even anonymous namespace needs
6044         assembler name.
6046 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
6048         * ipa-utils.h (method_class_type): Remove.
6049         * cgraphunit.c (walk_polymorphic_call_targets): Use
6050         TYPE_METHOD_BASETYPE.
6051         * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
6052         on main variants only.
6053         (method_class_type): Remove.
6054         (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
6055         (build_type_inheritance_graph): Likewise.
6056         * ipa-icf.c (sem_function::equals_wpa): Likewise.
6057         * pa-polymorphic-call.c (decl_maybe_in_construction_p,
6058         check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
6060 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
6062         * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
6063         is_typedef_decl, typedef_variant_p): Constify.
6064         * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
6065         is_typedef_decl, typedef_variant_p): Constify.
6067 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6069         * defaults.h (gen_tablejump): New function.
6070         (HAVE_tablejump): Add default value.
6071         * expr.c: Adjust.
6072         * stmt.c: Likewise.
6074 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6076         * defaults.h (gen_store_multiple): New function.
6077         (HAVE_store_multiple): Add default value.
6078         * expr.c (move_block_from_reg): Adjust.
6080 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6082         * defaults.h (gen_load_multiple): New function.
6083         (HAVE_load_multiple): Add default value.
6084         * expr.c (move_block_to_reg): Adjust.
6086 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6088         * defaults.h (gen_mem_signal_fence): New function.
6089         (HAVE_mem_signal_fence): Add default value.
6090         * optabs.c: Adjust.
6092 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6094         * defaults.h (gen_memory_barrier): New function.
6095         (HAVE_memory_barrier): Add default value.
6096         * optabs.c: Adjust.
6098 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6100         * defaults.h (gen_mem_thread_fence): New function.
6101         (HAVE_mem_thread_fence): Add default definition.
6102         * optabs.c: Adjust.
6104 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6106         * combine.c (find_split_point): Check the value of HAVE_lo_sum
6107         instead of if it is defined.
6108         (combine_simplify_rtx): Likewise.
6109         * lra-constraints.c (process_address_1): Likewise.
6110         * config/darwin.c: Adjust.
6111         * genconfig.c (main): Always define HAVE_lo_sum.
6113 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
6115         * genmatch.c (parser::parse_operation): Reject expanding
6116         operator-list inside 'for'.
6118 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
6120         * genmatch.c (parser::parse_for): Reject iterator if used as
6121         operator-list.
6123 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
6125         * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
6126         after end of id-list.
6128 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
6130         * tree.c (gimple_canonical_types_compatible_p): Sanity check that
6131         we do not try to compute canonical type for type that does not need
6132         alias set.
6133         (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
6134         FUNCITON_TYPE.
6135         * tree.h (type_with_alias_set_p): New.
6137 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
6139         * tree.c (gimple_canonical_types_compatible_p):  Do not compare
6140         function attributes.
6141         (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
6143 2015-05-22  Jim Wilson  <jim.wilson@linaro.org>
6145         * Makefile.in (check_gcc_parallelize): Delete.
6146         (lang_checks_parallelized): Update comment.
6148 2015-05-22  Mikhail Maltsev  <maltsevm@gmail.com>
6150         PR rtl-optimization/66237
6151         * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
6152         location of an "as_a" cast.
6154 2015-05-22  Jeff Law  <law@redhat.com>
6156         * config/pa/pa.md (non-canonical shift-add insns): Remove.
6157         (peepholes with non-canonical RTL sources): Remove.
6158         (peepholes for indexed stores of FP regs in integer modes): Match and
6159         generate canonical RTL.
6161 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
6163         PR tree-optimization/63387
6164         * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
6165         ((x ord x) & (y ord y) -> (x ord y),
6166         (x ord x) & (x ord y) -> (x ord y)): New simplifications.
6167         * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
6168         vectors like scalars.
6170 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
6172         * convert.c (convert_to_integer, convert_to_vector): Include the
6173         types in the error message.
6175 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
6177         * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
6178         simplifications.
6180 2015-05-22  Jeff Law  <law@redhat.com>
6182         * config/pa/pa.md (integer_indexed_store splitters): Use
6183         mem_shadd_operand.  Use ASHIFT rather than MULT in the resulting
6184         insns -- adjusting the constant 2nd operand accordingly.
6186         * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
6187         (plus (ashift X log2) Y) if it is a split point.
6189         * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
6190         out of hppa_legitimize_address to handle both forms of a multiply
6191         by 2, 4 or 8.
6192         (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
6193         Always generate the ASHIFT variant as the result is not directly
6194         used in a MEM.  Update comments and refactor slightly to improve
6195         readability.
6197 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6199         PR target/65491
6200         * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
6201         aarch64_composite_type_p.  Remove check for aarch64_composite_type_p.
6202         (aarch64_composite_type_p): Return false if given type and mode are
6203         for a short vector.
6205 2015-05-22  Richard Biener  <rguenther@suse.de>
6207         * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
6208         member.
6209         * tree-vect-loop.c (vect_analyze_loop_operations): Look at
6210         patterns when determining whether SLP is pure.
6211         (vect_is_slp_reduction): Remove check for pattern stmts.
6212         (vect_is_simple_reduction_1): Remove dead code.
6213         * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
6214         (vect_get_and_check_slp_defs): Pass in the stmt number.
6215         Allow the first def in a reduction to be not a pattern stmt when
6216         the rest of the stmts def are patterns.
6217         (vect_build_slp_tree_1): Allow tcc_expression codes like
6218         SAD_EXPR and DOT_PROD_EXPR.
6219         (vect_build_slp_tree): Adjust.
6220         (vect_analyze_slp): Refactor and move BB vect error message ...
6221         (vect_slp_analyze_bb_1): ... here.
6223 2015-05-22  Aldy Hernandez  <aldyh@redhat.com>
6225         * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
6226         for CSWTCH temporary.
6228 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6230         * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
6231         (arm_unspec_cost): Allow UNSPEC_VOLATILE.  Do not recurse inside
6232         unknown unspecs.
6234 2015-05-22  Richard Biener  <rguenther@suse.de>
6236         PR tree-optimization/66251
6237         * tree-vect-stmts.c (vectorizable_conversion): Properly
6238         set STMT_VINFO_VEC_STMT even for the SLP case.
6240 2015-05-22  Marek Polacek  <polacek@redhat.com>
6242         * doc/extend.texi: Use @pxref instead of @xref.
6244 2015-05-22  hiraditya  <hiraditya@msn.com>
6246         * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
6247         redundant if.
6249 2015-05-22  Richard Biener  <rguenther@suse.de>
6251         PR tree-optimization/65701
6252         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
6253         Move peeling cost models into one place.  Peel for alignment
6254         for single loads only if an aligned load is cheaper than
6255         an unaligned load.
6257 2015-05-22  Marek Polacek  <polacek@redhat.com>
6259         PR c/47043
6260         * doc/extend.texi (Enumerator Attributes): New section.
6261         Document syntax of enumerator attributes.
6263 2015-05-22  Richard Biener  <rguenther@suse.de>
6265         * tree-vect-loop.c (get_reduction_op): New function.
6266         (vect_model_reduction_cost): Use it, add reduc_index parameter.
6267         Make ready for BB reductions.
6268         (vect_create_epilog_for_reduction): Use get_reduction_op.
6269         (vectorizable_reduction): Init reduc_index to a valid value.
6270         Adjust vect_model_reduction_cost call.
6271         * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
6272         operand for reduction defaults.  Add SAD_EXPR support.
6273         Assert we have a neutral op for SLP reductions.
6274         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
6275         walking pattern stmt ops only recurse to SSA names.
6277 2015-05-22  Richard Biener  <rguenther@suse.de>
6279         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
6280         assert with guard, remove check on detected reduction.
6281         (vect_recog_sad_pattern): Likewise.
6282         (vect_recog_widen_sum_pattern): Likewise.
6284 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6286         * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
6287         __always_inline__ attribute.
6288         (vaesdq_u8): Likewise.
6289         (vaesmcq_u8): Likewise.
6290         (vaesimcq_u8): Likewise.
6291         (vsha1cq_u32): Likewise.
6292         (vsha1mq_u32): Likewise.
6293         (vsha1pq_u32): Likewise.
6294         (vsha1h_u32): Likewise.
6295         (vsha1su0q_u32): Likewise.
6296         (vsha1su1q_u32): Likewise.
6297         (vsha256hq_u32): Likewise.
6298         (vsha256h2q_u32): Likewise.
6299         (vsha256su0q_u32): Likewise.
6300         (vsha256su1q_u32): Likewise.
6301         (vmull_p64): Likewise.
6302         (vmull_high_p64): Likewise.
6304 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6306         * final.c (final_scan_insn): Don't check HAVE_peephole with the
6307         preprocessor.
6308         * output.h: Likewise.
6309         * genconfig.c (main): Alwways define HAVE_peephole.
6310         * genpeep.c: Don't emit checks of HAVE_peephole.
6312 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6314         * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
6315         check HAVE_conditional_move with the preprocessor.
6317 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6319         * genconfig.c (main): Always define HAVE_conditional_move.
6320         * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
6321         toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
6322         is defined.
6324 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6326         * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
6327         reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
6328         and FRAME_POINTER_REGNUM with the preprocessor.
6330 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6332         * defaults.h: Add default for STACK_PUSH_CODE.
6333         * expr.c: Don't redefine STACK_PUSH_CODE.
6334         * recog.c: Likewise.
6336 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6338         * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
6339         sched-deps.c: Use if instead of preprocessor checks with
6340         STACK_GROWS_DOWNWARD.
6342 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6344         * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
6345         is defined.
6346         * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
6347         * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
6348         * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
6349         * doc/tm.texi: Regenerate.
6351 2015-05-21  H.J. Lu  <hongjiu.lu@intel.com>
6353         PR target/66232
6354         * config/i386/constraints.md (Bg): New constraint for GOT memory
6355         operand.
6356         * config/i386/i386.md (*call_got_x32): New pattern.
6357         (*call_value_got_x32): Likewise.
6358         * config/i386/predicates.md (GOT_memory_operand): New predicate.
6360 2015-05-21  Jakub Jelinek  <jakub@redhat.com>
6362         PR tree-optimization/66233
6363         * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
6364         Simplify.
6366 2015-05-21  Jeff Law  <law@redhat.com>
6368         * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
6369         than MULT for shadd sequences.
6371 2015-05-08  Jan Hubicka  <hubicka@ucw.cz>
6373         * alias.c (alias_stats): New static var.
6374         (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
6375         (dump_alias_stats_in_alias_c): New function.
6376         * alias.h (dump_alias_stats_in_alias_c): Declare.
6377         * tree-ssa-alias.c (dump_alias_stats): Call it.
6379 2015-05-08  Michael Matz  <matz@suse.de>
6381         * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
6382         to strided_p.
6383         (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
6384         (STMT_VINFO_STRIDED_P): ... this.
6385         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
6386         (vect_verify_datarefs_alignment): Likewise.
6387         (vect_enhance_data_refs_alignment): Likewise.
6388         (vect_analyze_data_ref_access): Likewise.
6389         (vect_analyze_data_refs): Accept strided stores.
6390         * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
6391         (vect_model_load_cost): Adjust for macro rename.
6392         (vectorizable_mask_load_store): Likewise.
6393         (vectorizable_load): Likewise.
6394         (vectorizable_store): Open code strided stores.
6396 2015-05-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6398         * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
6399         Document sqrt_insn.
6401 2015-05-21  Richard Biener  <rguenther@suse.de>
6403         PR c++/66211
6404         * match.pd: Guard pattern optimzing (int)(float)int
6405         conversions to apply only on GIMPLE.
6407 2015-05-21  Jeff Law  <law@redhat.com>
6409         * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
6410         multiply-accumulate/shift-add insn generation.
6412 2015-05-21  Oleg Endo  <olegendo@gcc.gnu.org>
6414         PR target/54236
6415         * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
6416         operands[1] are the same.
6418 2015-05-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
6420         PR middle-end/66221
6421         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
6422         build_distinct_type_copy to copy bounds.
6424 2015-05-21  Thomas Schwinge  <thomas@codesourcery.com>
6426         * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
6427         Change to unsigned int.
6429 2015-05-20  Jeff Law  <law@redhat.com>
6431         * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
6432         (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
6433         (pa_shadd_constant_p): Allow constants for shadd insns rather
6434         than valid scaling constants for memory addresses.
6435         * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
6436         * config/pa/predicates.md (mem_shadd_operand): New predicate.
6437         * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
6438         (shift-add insns using ASHIFT): New patterns.
6440 2015-05-20  Mikhail Maltsev  <maltsevm@gmail.com>
6442         * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
6443         feasible.
6444         (fix_up_fall_thru_edges): Likewise.
6445         (fix_crossing_conditional_branches): Likewise. Promote jump targets
6446         from to rtx_insn to rtx_code_label where feasible.
6447         * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
6448         gen_move_insn (returned type changed to rtx_insn).
6449         * builtins.c (expand_errno_check): Fix arguments of
6450         do_compare_rtx_and_jump (now expects rtx_code_label).
6451         (expand_builtin_acc_on_device): Likewise.
6452         * cfgcleanup.c (try_simplify_condjump): Add cast when calling
6453         invert_jump (now exprects rtx_jump_insn).
6454         * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
6455         (construct_init_block): Use rtx_code_label.
6456         * cfgrtl.c (block_label): Promote return type to rtx_code_label.
6457         (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
6458         calling redirect_jump.
6459         (patch_jump_insn): Likewise.
6460         (redirect_branch_edge): Likewise.
6461         (force_nonfallthru_and_redirect): Likewise.
6462         (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
6463         when suitable.
6464         (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
6465         * cfgrtl.h: Promote return type of block_label to rtx_code_label.
6466         * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
6467         * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
6468         to store the value retured by gen_label_rtx.
6469         * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
6470         rtx_jump_insn.
6471         * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
6472         (split_branches): Fix calls of redirect_jump.
6473         * dojump.c (jumpifnot): Promote argument type from rtx to
6474         rtx_code_label.
6475         (jumpifnot_1): Likewise.
6476         (jumpif): Likewise.
6477         (jumpif_1): Likewise.
6478         (do_jump_1): Likewise.
6479         (do_jump): Likewise. Use rtx_code_label when feasible.
6480         (do_jump_by_parts_greater_rtx): Likewise.
6481         (do_jump_by_parts_zero_rtx): Likewise.
6482         (do_jump_by_parts_equality_rtx): Likewise.
6483         (do_compare_rtx_and_jump): Likewise.
6484         * dojump.h: Update function prototypes.
6485         * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
6486         returns rtx_insn).
6487         * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
6488         rtx_jump_insn.
6489         (emit_label_before): Likewise.
6490         (emit_jump_insn_after_noloc): Likewise.
6491         (emit_jump_insn_after_setloc): Likewise.
6492         (emit_jump_insn_after): Likewise
6493         (emit_jump_insn_before_setloc): Likewise.
6494         (emit_jump_insn_before): Likewise.
6495         (emit_label_before): Promote return type to rtx_code_label.
6496         (emit_label): Likewise.
6497         * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
6498         * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
6499         gen_move_insn.
6500         (emit_stack_restore): Likewise.
6501         * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
6502         (do_cmp_and_jump): Likewise.
6503         * expr.c (expand_expr_real_2): Likewise. Promote some local variables
6504         from rtx to rtx_code_label.
6505         (gen_move_insn_uncast): New function.
6506         * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
6507         * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
6508         * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
6509         * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
6510         invert_jump_1 and redirect_jump_1.
6511         * internal-fn.c (expand_arith_overflow_result_store): Fix call of
6512         do_compare_rtx_and_jump.
6513         (expand_addsub_overflow): Likewise.
6514         (expand_neg_overflow): Likewise.
6515         (expand_mul_overflow): Likewise.
6516         * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
6517         return value of gen_move_insn.
6518         * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
6519         * loop-doloop.c (add_test): Use rtx_code_label.
6520         (doloop_modify): Likewise.
6521         (doloop_optimize): Likewise.
6522         * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
6523         * lra-constraints.c (emit_spill_move): Remove cast of value returned
6524         by gen_move_insn.
6525         (inherit_reload_reg): Add cast when calling dump_insn_slim.
6526         (split_reg): Likewise.
6527         * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
6528         gen_move_insn.
6529         * optabs.c (expand_binop_directly): Remove casts of values returned by
6530         maybe_gen_insn.
6531         (expand_unop_direct): Likewise.
6532         (expand_abs): Likewise.
6533         (maybe_emit_unop_insn): Likewise.
6534         (maybe_gen_insn): Promote return type to rtx_insn.
6535         * optabs.h: Update prototype of maybe_gen_insn.
6536         * postreload-gcse.c (eliminate_partially_redundant_load): Remove
6537         redundant cast.
6538         * recog.c (struct peep2_insn_data): Promote type of insn field to
6539         rtx_insn.
6540         (peep2_reinit_state): Use NULL instead of NULL_RTX.
6541         (peep2_attempt): Remove casts of insn in peep2_insn_data.
6542         (peep2_fill_buffer): Promote argument from rtx to rtx_insn
6543         * recog.h (struct insn_gen_fn): Promote return types of function
6544         pointers and operator ().from rtx to rtx_insn.
6545         * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
6546         (fill_eager_delay_slots): Likewise.
6547         (relax_delay_slots): Likewise.
6548         (make_return_insns): Likewise.
6549         (dbr_schedule): Likewise.
6550         (optimize_skips): Likewise.
6551         (reorg_redirect_jump): Likewise.
6552         (fill_slots_from_thread): Likewise.
6553         * reorg.h: Update prototypes.
6554         * resource.c (find_dead_or_set_registers): Use dyn_cast to
6555         rtx_jump_insn instead of check.  Use it's jump_target method.
6556         * rtl.h (rtx_jump_insn::jump_label): Define new method.
6557         (rtx_jump_insn::jump_target): Define new method.
6558         (rtx_jump_insn::set_jump_target): Define new method.
6559         * rtlanal.c (tablejump_p): Promote type of one local variable.
6560         * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
6561         (sched_analyze_insn): Likewise.
6562         * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
6563         (print_insn): Likewise.
6564         * stmt.c (label_rtx): Promote return type to rtx_insn.
6565         (force_label_rtx): Likewise.
6566         (jump_target_rtx): Define new function.
6567         (expand_label): Use it, get rid of one cast.
6568         (expand_naked_return): Promote rtx to rtx_code_label.
6569         (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
6570         (expand_case): Use rtx_code_label instread of rtx where feasible.
6571         (expand_sjlj_dispatch_table): Likewise.
6572         (emit_case_nodes): Likewise.
6573         * stmt.h: Declare jump_target_rtx.  Update prototypes.  Fix comments.
6574         * store-motion.c (insert_store): Make use of new return type of
6575         gen_move_insn and remove a cast.
6576         (replace_store_insn): Likewise.
6578 2015-05-20  Max Filippov  <jcmvbkbc@gmail.com>
6580         * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
6581         by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
6583 2015-05-20  Jeff Law  <law@redhat.com>
6585         * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
6586         dispose of the jump thread path when the jump threading
6587         opportunity is cancelled.
6589 2015-05-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6591         * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
6592         when printing the caret character.
6594 2015-05-20  Marek Polacek  <polacek@redhat.com>
6596         * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
6598 2015-05-20  Marek Polacek  <polacek@redhat.com>
6600         * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
6601         * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
6602         * gimple-fold.c (canonicalize_bool): Likewise.
6603         (same_bool_result_p): Likewise.
6604         * tree-if-conv.c (parse_predicate): Likewise.
6606 2015-05-20  Marek Polacek  <polacek@redhat.com>
6608         * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
6609         * gimplify.c (gimplify_modify_expr_rhs): Likewise.
6611 2015-05-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6613         * config/aarch64/aarch64.c (aarch64_class_max_nregs):
6614         Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
6615         values.
6617 2015-05-20  Robert Suchanek  <robert.suchanek@imgtec.com>
6619         * config/mips/mips.h (micromips_globals): Declare.
6621 2015-05-20  David Malcolm  <dmalcolm@redhat.com>
6623         * timevar.def (TV_INITIALIZE_RTL): New.
6624         * toplev.c (initialize_rtl): Use an auto_timevar to account this
6625         function's time to TV_INITIALIZE_RTL.
6627 2015-05-20  Ilya Enkovich  <enkovich.gnu@gmail.com>
6629         * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
6630         gimple_build_nop calls.
6631         (chkp_find_bounds_for_elem): Likewise.
6632         (chkp_get_zero_bounds): Likewise.
6633         (chkp_get_none_bounds): Likewise.
6634         (chkp_get_bounds_by_definition): Likewise.
6635         (chkp_generate_extern_var_bounds): Likewise.
6636         (chkp_get_bounds_for_decl_addr): Likewise.
6637         (chkp_get_bounds_for_string_cst): Likewise.
6639 2015-05-20  Bin Cheng  <bin.cheng@arm.com>
6641         PR tree-optimization/65447
6642         * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
6643         (dump_use, dump_uses): Support to dump sub use.
6644         (record_use): New parameters to support sub use.  Remove call to
6645         dump_use.
6646         (record_sub_use, record_group_use): New functions.
6647         (compute_max_addr_offset, split_all_small_groups): New functions.
6648         (group_address_uses, rewrite_use_address): New functions.
6649         (strip_offset): New declaration.
6650         (find_interesting_uses_address): Call record_group_use.
6651         (add_candidate): New assertion.
6652         (infinite_cost_p): Move definition forward.
6653         (add_costs): Check INFTY cost and return immediately.
6654         (get_computation_cost_at): Clear setup cost and dependent bitmap
6655         for sub uses.
6656         (determine_use_iv_cost_address): Compute cost for sub uses.
6657         (rewrite_use_address_1): Rename from old rewrite_use_address.
6658         (free_loop_data): Free sub uses.
6659         (tree_ssa_iv_optimize_loop): Call group_address_uses.
6661 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
6662             Jim Wilson  <jim.wilson@linaro.org>
6664         * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
6665         new  fields loadv and storev.
6666         * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
6667         Initialize loadv and storev.
6668         * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
6669         (cortexa53_extra_costs): Likewise.
6670         (cortexa57_extra_costs): Likewise.
6671         (xgene1_extra_costs): Likewise.
6672         * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
6673         rtx_costs.
6675 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
6677         * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
6678          storev.
6679         (cortexa8_extra_costs): Likewise.
6680         (cortexa5_extra_costs): Likewise.
6681         (cortexa7_extra_costs): Likewise.
6682         (cortexa12_extra_costs): Likewise.
6683         (cortexa15_extra_costs): Likewise.
6684         (v7m_extra_costs): Likewise.
6686 2015-05-20  Jeff Law  <law@redhat.com>
6688         * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
6689         instead of open-coded version.  Also delete the jump thread created
6690         within this function.
6692 2015-05-20  Alan Modra  <amodra@gmail.com>
6694         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
6695         stack adjusting insn.  Formatting.
6696         (rs6000_emit_prologue): Track stack adjusting insn, and use of
6697         r12.  If possible, emit first -fsplit-stack arg pointer insn
6698         before stack adjust.  Don't use r12 to save cr if split-stack.
6700 2015-05-20  Alan Modra  <amodra@gmail.com>
6702         * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
6703         Define.
6704         (rs6000_supports_split_stack): New function.
6705         * gcc/config/rs6000/rs6000.c (machine_function): Add
6706         split_stack_arg_pointer.
6707         (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
6708         (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
6709         rather than virtual_incoming_args_rtx.
6710         (rs6000_va_start): Likewise.
6711         (split_stack_arg_pointer_used_p): New function.
6712         (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
6713         (morestack_ref): New var.
6714         (gen_add3_const, rs6000_expand_split_stack_prologue,
6715         rs6000_internal_arg_pointer, rs6000_live_on_entry,
6716         rs6000_split_stack_space_check): New functions.
6717         (rs6000_elf_file_end): Call file_end_indicate_split_stack.
6718         * gcc/config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
6719         (UNSPECV_SPLIT_STACK_RETURN): Define.
6720         (split_stack_prologue, load_split_stack_limit,
6721         load_split_stack_limit_di, load_split_stack_limit_si,
6722         split_stack_return, split_stack_space_check): New expands and insns.
6723         * gcc/config/rs6000/rs6000-protos.h
6724         (rs6000_expand_split_stack_prologue): Declare.
6725         (rs6000_split_stack_space_check): Declare.
6727 2015-05-20  Alan Modra  <amodra@gmail.com>
6729         * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
6730         (rs6000_stack_info): Don't zero offsets when not saving registers.
6731         (debug_stack_info): Adjust to omit printing unused offsets,
6732         as before.
6733         (direct_return): Test vrsave_size rather than vrsave_mask.
6734         (rs6000_emit_prologue): Likewise.  Remove redundant altivec tests.
6735         (rs6000_emit_epilogue): Likewise.
6737 2015-05-20  Alan Modra  <amodra@gmail.com>
6739         * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
6740         when not saving registers.
6741         (debug_stack_info): Adjust to omit printing unused offsets,
6742         as before.
6743         (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
6744         expression.
6746 2015-05-19  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6748         PR c++/65835
6749         * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
6750         value_type to const char *.
6752 2015-05-19  Sandra Loosemore  <sandra@codesourcery.com>
6754         * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
6755         to build a biarch toolchain again.
6757 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
6759         * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
6760         or implicit declarations.
6761         (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
6762         into it.
6763         (get_odr_type): Check type has linkage before adding bases.
6764         (register_odr_type): Check that type has linkage before adding it.
6765         (type_known_to_have_no_deriavations_p): Rename to ..
6766         (type_known_to_have_no_derivations_p): This one.
6767         * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
6768         (type_known_to_have_no_derivations_p): This one.
6769         * ipa-polymorphic-call.c
6770         (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
6771         type has linkage.
6773 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
6775         * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
6776         (layout_type): Use RECORD_OR_UNION_TYPE_P.
6778 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6780         * config/s390/s390.c (s390_vector_bool_type_p): New function.
6781         (s390_invalid_binary_op): New function.
6782         (TARGET_INVALID_BINARY_OP): Define macro.
6784 2015-05-19  David Sherwood  <david.sherwood@arm.com>
6786         * loop-invariant.c (create_new_invariant): Don't calculate address cost
6787         if mode is not a scalar integer.
6788         (get_inv_cost): Increase computational cost for unused invariants.
6790 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6792         * config.gcc: Add vecintrin.h to extra_headers.  Add s390-c.o to
6793         c_target_objs and cxx_target_objs.  Add t-s390 to tmake_file.
6794         * config/s390/s390-builtin-types.def: New file.
6795         * config/s390/s390-builtins.def: New file.
6796         * config/s390/s390-builtins.h: New file.
6797         * config/s390/s390-c.c: New file.
6798         * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
6799         CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
6800         * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
6801         (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
6802         prototypes.
6803         * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
6804         Include.
6805         (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
6806         (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
6807         variable definitions.
6808         (s390_const_operand_ok): New function.
6809         (s390_expand_builtin): Rewrite.
6810         (s390_init_builtins): New function.
6811         (s390_handle_vectorbool_attribute): New function.
6812         (s390_attribute_table): Add s390_vector_bool attribute.
6813         (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
6814         (s390_branch_condition_mask): Generate masks for new modes.
6815         (s390_expand_vec_compare_cc): New function.
6816         (s390_mangle_type): Add mangling for vector bool types.
6817         (enum s390_builtin): Remove.
6818         (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
6819         efpc builtins.
6820         * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
6821         s390_cpu_cpp_builtins.
6822         (REGISTER_TARGET_PRAGMAS): New macro.
6823         * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
6824         (insn_cmp mode attribute): Add new CC modes.
6825         (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
6826         (lcbb): New pattern definition.
6827         * config/s390/s390intrin.h: Include vecintrin.h.
6828         * config/s390/t-s390: New file.
6829         * config/s390/vecintrin.h: New file.
6830         * config/s390/vector.md: Include vx-builtins.md.
6831         * config/s390/vx-builtins.md: New file.S/390 zvector builtin
6832         support.
6834 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6836         * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
6837         CCVFHE.
6838         * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
6839         (s390_select_ccmode): Likewise.
6840         (s390_canonicalize_comparison): Swap operands if necessary.
6841         (s390_expand_vec_compare_scalar): Expand DFmode compare using
6842         single element vector instructions.
6843         (s390_emit_compare): Call s390_expand_vec_compare_scalar.
6844         (s390_branch_condition_mask): Generate CC masks for the new modes.
6845         * config/s390/s390.md (v0, vf, vd): New mode attributes.
6846         (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
6847         (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
6848         (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
6849         (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
6850         (*extend<DSF:mode><BFP:mode>2): New insn definition.
6851         (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
6852         (extend<DSF:mode><BFP:mode>2): Turn into expander.
6853         (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
6854         (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
6855         (sqrt<mode>2): Add vector instruction.
6857 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6859         * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
6860         constraints.
6861         * config/s390/predicates.md (const0_operand, constm1_operand)
6862         (constable_operand): Accept vector operands.
6863         * config/s390/s390-modes.def: Add supported vector modes.
6864         * config/s390/s390-protos.h (s390_cannot_change_mode_class)
6865         (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
6866         (s390_bytemask_vector_p, s390_expand_vec_strlen)
6867         (s390_expand_vec_compare, s390_expand_vcond)
6868         (s390_expand_vec_init): Add prototypes.
6869         * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
6870         (s390_vector_mode_supported_p): New function.
6871         (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
6872         (s390_contiguous_bitmask_vector_p): New function.
6873         (s390_bytemask_vector_p): New function.
6874         (s390_split_ok_p): Vector regs don't work either.
6875         (regclass_map): Add VEC_REGS.
6876         (s390_legitimate_constant_p): Handle vector constants.
6877         (s390_cannot_force_const_mem): Handle CONST_VECTOR.
6878         (legitimate_reload_vector_constant_p): New function.
6879         (s390_preferred_reload_class): Handle CONST_VECTOR.
6880         (s390_reload_symref_address):  Likewise.
6881         (s390_secondary_reload): Vector memory instructions only support
6882         short displacements.  Rename reload*_nonoffmem* to reload*_la*.
6883         (s390_emit_ccraw_jump): New function.
6884         (s390_expand_vec_strlen): New function.
6885         (s390_expand_vec_compare): New function.
6886         (s390_expand_vcond): New function.
6887         (s390_expand_vec_init): New function.
6888         (s390_dwarf_frame_reg_mode): New function.
6889         (print_operand): Handle addresses with 'O' and 'R' constraints.
6890         (NR_C_MODES, constant_modes): Add vector modes.
6891         (s390_output_pool_entry): Handle vector constants.
6892         (s390_hard_regno_mode_ok): Handle vector registers.
6893         (s390_class_max_nregs): Likewise.
6894         (s390_cannot_change_mode_class): New function.
6895         (s390_invalid_arg_for_unprototyped_fn): New function.
6896         (s390_function_arg_vector): New function.
6897         (s390_function_arg_float): Remove size variable.
6898         (s390_pass_by_reference): Handle vector arguments.
6899         (s390_function_arg_advance): Likewise.
6900         (s390_function_arg): Likewise.
6901         (s390_return_in_memory): Vector values are returned in a VR if
6902         possible.
6903         (s390_function_and_libcall_value): Handle vector arguments.
6904         (s390_gimplify_va_arg): Likewise.
6905         (s390_call_saved_register_used): Consider the arguments named.
6906         (s390_conditional_register_usage): Disable v16-v31 for non-vec
6907         targets.
6908         (s390_preferred_simd_mode): New function.
6909         (s390_support_vector_misalignment): New function.
6910         (s390_vector_alignment): New function.
6911         (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
6912         (TARGET_VECTOR_MODE_SUPPORTED_P)
6913         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
6914         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
6915         (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
6916         (TARGET_VECTOR_ALIGNMENT): Define target macro.
6917         * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
6918         (FIRST_PSEUDO_REGISTER): Increase value.
6919         (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
6920         (VECTOR_REG_P): Define macros.
6921         (FIXED_REGISTERS, CALL_USED_REGISTERS)
6922         (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
6923         (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
6924         (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
6925         Add vector registers.
6926         (CANNOT_CHANGE_MODE_CLASS): Call C function.
6927         (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
6928         (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
6929         memory.
6930         (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
6931         (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
6932         * config/s390/s390.md (UNSPEC_VEC_*): New constants.
6933         (VR*_REGNUM): New constants.
6934         (ALL): New mode iterator.
6935         (INTALL): Remove mode iterator.
6936         Include vector.md.
6937         (movti): Implement TImode moves for VRs.
6938         Disable TImode splitter for VR targets.
6939         Implement splitting TImode GPR<->VR moves.
6940         (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
6941         (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
6942         reload<mode>_la_in, reload<mode>_la_out.
6943         (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
6944         (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
6945         (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
6946         (mov<mode> SF SD): Prefer lder, lde for loading.
6947         Add lrl and strl instructions.
6948         Add vector instructions.
6949         (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
6950         Call s390_expand_vec_strlen on z13.
6951         (*cc_to_int): Change predicate to nonimmediate_operand.
6952         (addti3): Rename to *addti3.  New expander.
6953         (subti3): Rename to *subti3.  New expander.
6954         * config/s390/vector.md: New file.
6956 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6958         * common/config/s390/s390-common.c (processor_flags_table): Add
6959         z13.
6960         * config.gcc: Add z13.
6961         * config/s390/s390-opts.h (enum processor_type): Add
6962         PROCESSOR_2964_Z13.
6963         * config/s390/s390.c (s390_adjust_priority): Check for
6964         PROCESSOR_2964_Z13.
6965         (s390_reorg): Likewise.
6966         (s390_sched_reorder): Likewise.
6967         (s390_sched_variable_issue): Likewise.
6968         (s390_loop_unroll_adjust): Likewise.
6969         (s390_option_override): Likewise. Default to -mvx when available.
6970         * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
6971         (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
6972         (TARGET_VX_ABI): Define macros.
6973         macros.
6974         (TARGET_DEFAULT): Add MASK_OPT_VX.
6975         * config/s390/s390.md ("cpu" attribute): Add z13.
6976         ("cpu_facility" attribute): Add vec.
6977         * config/s390/s390.opt (processor_type): Add z13.
6978         (mvx): New options.
6979         * doc/invoke.texi: Add z13 option for -march.
6981 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6983         * config/s390/predicates.md (shift_count_or_setmem_operand): Add
6984         mode check to make sure that only scalar integer values are
6985         accepted.
6987 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
6989         * tree.c (verify_type_variant): Fix #undef.
6990         (gimple_canonical_types_compatible_p): Move here from lto.c
6991         (verify_type): Verify TYPE_CANONICAL compatibility.
6992         * tree.h (gimple_canonical_types_compatible_p): Declare.
6994 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
6996         PR middle-end/66199
6997         * tree.h (OMP_TEAMS_COMBINED): Define.
6998         * gimplify.c (enum gimplify_omp_var_data): Add
6999         GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
7000         (enum omp_region_type): Add ORT_COMBINED_TEAMS.
7001         (omp_notice_variable): Accept both ORT_TEAMS
7002         and ORT_COMBINED_TEAMS.  Don't recurse if
7003         GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
7004         GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
7005         GOVD_FIRSTPRIVATE.
7006         (omp_no_lastprivate): New function.
7007         (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
7008         and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
7009         notice_outer and set appropriate bits, otherwise make
7010         sure default(none) combined constructs won't complain.
7011         (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
7012         outer special casing, for OMP_CLAUSE_LASTPRIVATE if
7013         omp_no_lastprivate either remove the clause or turn it
7014         into OMP_CLAUSE_PRIVATE.
7015         (gimplify_omp_for): Fix up handling of implicit
7016         lastprivate or linear iterators.
7017         (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
7018         ORT_COMBINED_TEAMS.
7019         * omp-low.c (lower_omp_for_lastprivate): For combined
7020         for simd use fd.loop.n2 from the for rather than simd.
7022 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
7024         * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
7025         instead of gen_rtx_raw_REG.
7026         (cris_expand_epilogue): Likewise.
7027         * config/microblaze/microblaze.c (microblaze_classify_address):
7028         Likewise.
7029         * config/sparc/sparc.md: Likewise.
7031 2015-05-19  Uros Bizjak  <ubizjak@gmail.com>
7033         * config/alpha/alpha.c (alpha_legitimize_reload_address)
7034         (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
7035         CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
7036         (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
7037         Use CASE_CONST_SCALAR_INT.
7038         (print_operand) <case 'M'>: Use mode_width_operand to check the
7039         value of the constant.
7040         * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
7041         * config/alpha/predicates.md (input_operand): Use general_operand
7042         instead of match_code as operand check.
7043         (symbolic_operand): Use match_code with subexpression digits.
7044         * config/alpha/constraints.md (Q): Ditto.
7046 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7048         * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
7050 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7052         * config/s390/s390.c (s390_secondary_reload): Fix check for
7053         load/store relative.
7055 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7057         * recog.h: Increase MAX_RECOG_ALTERNATIVES.  Change type of
7058         alternative_mask to uint64_t.
7060 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
7062         PR tree-optimization/66187
7063         * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
7064         Pass TYPE_SIGN to tree_int_cst_min_precision.  If
7065         !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
7067 2015-05-19  David Malcolm  <dmalcolm@redhat.com>
7069         * diagnostic.c (diagnostic_report_current_module): Strengthen
7070         local "new_map" from const line_map * to
7071         const line_map_ordinary *.
7072         * genmatch.c (error_cb): Likewise for local "map".
7073         (output_line_directive): Likewise for local "map".
7074         * input.c (expand_location_1): Likewise for local "map".
7075         Pass NULL rather than &map to
7076         linemap_unwind_to_first_non_reserved_loc, since the value is never
7077         read from there, and the value written back not read from here.
7078         (is_location_from_builtin_token): Strengthen local "map" from
7079         const line_map * to const line_map_ordinary *.
7080         (dump_location_info): Strengthen locals "map" from
7081         line_map *, one to const line_map_ordinary *, the other
7082         to const line_map_macro *.
7083         * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
7084         const line_map * to const line_map_macro *.
7085         (maybe_unwind_expanded_macro_loc): Add a call to
7086         linemap_check_macro when writing to the "map" field of the
7087         loc_map_pair.
7088         Introduce local const line_map_ordinary * "ord_map", using it in
7089         place of "map" in the part of the function where we know we have
7090         an ordinary map.  Strengthen local "m" from const line_map * to
7091         const line_map_ordinary *.
7093 2015-05-19  Nick Clifton  <nickc@redhat.com>
7095         PR target/66156
7096         * config/msp430/msp430.md (zero_extendhisi2): Add support for
7097         separate source and destination registers.
7099 2015-05-19  Richard Biener  <rguenther@suse.de>
7101         PR tree-optimization/66165
7102         * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
7103         for no load permutation.
7105         PR tree-optimization/66185
7106         * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
7107         when building the SLP node from scalars.
7109 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
7110             Tristan Gingold  <gingold@adacore.com>
7112         * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
7113         * builtins.c (expand_builtin_update_setjmp_buf): Make global.
7114         (expand_stack_restore): Call record_new_stack_level.
7115         (expand_stack_save): Do not call do_pending_stack_adjust.
7116         * builtins.h (expand_builtin_update_setjmp_buf): Declare.
7117         * calls.c (expand_call): Call record_new_stack_level for alloca.
7118         * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
7119         wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
7120         (update_sjlj_context): New global function.
7121         * except.h (update_sjlj_context): Declare.
7122         * explow.c (record_new_stack_level): New global function.
7123         (allocate_dynamic_stack_space): Call record_new_stack_level.
7124         * explow.h (record_new_stack_level): Declare.
7125         * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
7126         * cfgrtl.c (duplicate_insn_chain): Likewise.
7128 2015-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7130         * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
7131         (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
7132         STACK_GROWS_DOWNWARD as normal if.
7133         (expand_call): Likewise.
7135 2015-05-19  Oleg Endo  <olegendo@gcc.gnu.org>
7137         PR target/54236
7138         * config/sh/sh.md (*round_int_even): New insn_and_split and
7139         accompanying new unnamed split.
7141 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
7143         * bitmap.c (bitmap_set_range): Handle count==1 specially.
7144         (bitmap_clear_range): Likewise.
7145         * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
7146         bitmap_set_range unconditionally.
7147         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
7148         * df-scan.c (df_mark_reg): Likewise.
7149         * haifa-sched.c (setup_ref_regs): Likewise.
7150         * sched-rgn.c (update_live_1): Likewise.
7152 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
7154         * regs.h (END_HARD_REGNO): Delete.
7155         (END_REGNO): Move to...
7156         * rtl.h: ...here.
7157         * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
7158         * caller-save.c (mark_set_regs): Likewise.
7159         * combine.c (move_deaths, distribute_notes): Likewise.
7160         * cse.c (invalidate, invalidate_for_call): Likewise.
7161         * df-scan.c (df_ref_record): Likewise.
7162         * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
7163         (record_last_reg_set_info): Likewise.
7164         * reg-stack.c (convert_regs_exit): Likewise.
7165         * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
7166         * resource.c (update_live_status): Likewise.
7167         * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
7169 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
7171         * rtl.h (reg_info): Add an nregs field.
7172         (REG_NREGS): Use it.
7173         (SET_REGNO_RAW): Delete.
7174         (set_regno_raw): New function.
7175         * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
7176         (END_REGNO): Redefine in terms of REG_NREGS.
7177         * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
7178         SET_REGNO_RAW.
7179         * emit-rtl.c (set_mode_and_regno): Likewise.
7180         * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
7181         instead of SET_REGNO_RAW.
7183 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
7185         * rtl.h (PUT_MODE_RAW): New macro.
7186         (PUT_REG_NOTE_KIND): Use it.
7187         (set_mode_and_regno): Declare.
7188         (gen_raw_REG): Change regno to "unsigned int".
7189         (gen_rtx_REG): Change "unsigned" to "unsigned int".
7190         (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
7191         use set_mode_and_regno to change the mode of registers.
7192         * gengenrtl.c (gendef): Use PUT_MODE_RAW.
7193         * emit-rtl.c (set_mode_and_regno): New function.
7194         (gen_raw_REG): Change regno to unsigned int.  Use set_mode_and_regno.
7195         * caller-save.c (reg_save_code): Use set_mode_and_regno.
7196         * expr.c (init_expr_target): Likewise.
7197         * ira.c (setup_prohibited_mode_move_regs): Likewise.
7198         * postreload.c (reload_cse_simplify_operands): Likewise.
7200 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
7202         * caller-save.c (init_caller_save): Use word_mode and
7203         FIRST_PSEUDO_REGISTER when creating temporary rtxes.
7204         * expr.c (init_expr_target): Likewise.
7205         * ira.c (setup_prohibited_mode_move_regs): Likewise.
7206         * postreload.c (reload_cse_regs_1): Likewise.
7208 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
7210         * rtl.def (REG): Change format to "r".
7211         * rtl.h (rtunion): Remove rt_reg.
7212         (reg_info): New structure.
7213         (rtx_def): Add reg field to main union.
7214         (X0REGATTR): Delete.
7215         (REG_CHECK): New macro.
7216         (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
7217         * rtl.c (rtx_format): Document "r".
7218         (rtx_code_size): Handle REG specially.
7219         * gengenrtl.c (special_format): Return true for formats
7220         that include 'r'.
7221         * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
7222         Deal with REG_ATTRS after the field loop.
7223         * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
7224         * expmed.c (init_expmed): Call gen_raw_REG instead of
7225         gen_rtx_raw_REG.
7226         * expr.c (init_expr_target): Likewise.
7227         * regcprop.c (maybe_mode_change): Likewise.
7228         * varasm.c (make_decl_rtl): Likewise.
7229         * final.c (leaf_renumber_regs_insn): Return early after
7230         handling REGs.
7231         * genemit.c (gen_exp): Handle 'r' fields.
7232         * genpeep.c (match_rtx): Likewise.
7233         * gensupport.c (subst_pattern_match): Likewise.
7234         (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
7235         (alter_constraints, subst_dup): Likewise.
7236         * read-rtl.c (read_rtx_code): Likewise.
7237         * print-rtl.c (print_rtx): Likewise.
7238         * genrecog.c (find_operand, find_matching_operand): Likewise.
7239         (validate_pattern, match_pattern_2): Likewise.
7240         (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
7241         (rtx_test::regno_field): New function.
7242         (operator ==, safe_to_hoist_p, transition_parameter_type)
7243         (parameter_type_string, print_parameter_value)
7244         (print_nonbool_test, print_test): Handle new enum values.
7245         * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
7246         * lra-constraints.c (operands_match_p): Likewise.
7248 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
7250         * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
7251         Change type of new_regno to unsigned int.
7252         * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
7253         new_regno to unsigned int.
7254         (df_ref_change_reg_with_loc): Remove old_regno parameter.
7255         Change type of new_regno to unsigned int.  Use SET_REGNO_RAW.
7256         * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
7257         (SET_REGNO_RAW): Add space after ",".
7259 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
7261         * rtl.h (REG_NREGS): New macro
7262         * alias.c (record_set): Use it.
7263         * cfgcleanup.c (mark_effect): Likewise.
7264         * combine.c (likely_spilled_retval_1): Likewise.
7265         (likely_spilled_retval_p, can_change_dest_mode): Likewise.
7266         (move_deaths, distribute_notes): Likewise.
7267         * cselib.c (cselib_record_set): Likewise.
7268         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
7269         * df-scan.c (df_mark_reg): Likewise.
7270         * dse.c (look_for_hardregs): Likewise.
7271         * dwarf2out.c (reg_loc_descriptor): Likewise.
7272         (multiple_reg_loc_descriptor): Likewise.
7273         * expr.c (write_complex_part, read_complex_part): Likewise.
7274         (emit_move_complex): Likewise.
7275         * haifa-sched.c (setup_ref_regs): Likewise.
7276         * ira-lives.c (mark_hard_reg_live): Likewise.
7277         * lra.c (lra_set_insn_recog_data): Likewise.
7278         * mode-switching.c (create_pre_exit): Likewise.
7279         * postreload.c (reload_combine_recognize_const_pattern): Likewise.
7280         (reload_combine_recognize_pattern): Likewise.
7281         (reload_combine_note_use, move2add_record_mode): Likewise.
7282         (reload_cse_move2add): Likewise.
7283         * reg-stack.c (subst_stack_regs_pat): Likewise.
7284         * regcprop.c (kill_value, copy_value): Likewise.
7285         (copyprop_hardreg_forward_1): Likewise.
7286         * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
7287         (build_def_use): Likewise.
7288         * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
7289         (deps_analyze_insn): Likewise.
7290         * sched-rgn.c (check_live_1, update_live_1): Likewise.
7291         * sel-sched.c (count_occurrences_equiv): Likewise.
7292         * valtrack.c (dead_debug_insert_temp): Likewise.
7294 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
7296         * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
7297         * dse.c (note_add_store): Likewise.
7298         * ira-lives.c (mark_hard_reg_dead): Likewise.
7299         * loop-invariant.c (mark_reg_store): Likewise.
7300         (mark_reg_death): Likewise.
7301         * postreload.c (reload_combine): Likewise.
7302         (reload_combine_note_store): Likewise.
7303         (reload_combine_note_use): Likewise.
7304         * recog.c (peep2_reg_dead_p): Likewise.
7306 2015-05-19  Alan Modra  <amodra@gmail.com>
7308         * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
7309         hard registers numbered greater or equal to ARG_POINTER_REGNUM.
7310         (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
7311         unused predicates.
7312         * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
7313         Use altivec_register_operand.  Make insn predicate TARGET_ALTIVEC.
7314         * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
7315         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
7317 2015-05-19  Sameera Deshpande  <Sameera.Deshpande@imgtec.com>
7319         * config/mips/mips.md (JOIN_MODE): New mode iterator.
7320         (join2_load_Store<JOIN_MODE:mode>): New pattern.
7321         (join2_loadhi): Likewise.
7322         (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
7323         load-load and store-stores.
7324         * config/mips/mips.opt (mload-store-pairs): New option.
7325         (TARGET_LOAD_STORE_PAIRS): New macro.
7326         * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
7327         * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
7328         * config/mips/mips.c (mips_load_store_bonding_p): New function.
7330 2015-05-19  Mikhail Maltsev  <maltsevm@gmail.com>
7332         * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
7333         explicit swaps.
7334         * dojump.c (do_compare_rtx_and_jump): Likewise.
7335         * expmed.c (emit_store_flag_1): Likewise.
7336         * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
7337         * final.c (sprint_ul): Use std::reverse for reversing a string.
7338         * fold-const.c (extract_muldiv_1): Use std::swap.
7339         * genmodes.c (emit_mode_int_n): Likewise.
7340         * ifcvt.c (dead_or_predicable): Likewise.
7341         * ira-build.c (ira_merge_live_ranges): Likewise.
7342         (swap_allocno_copy_ends_if_necessary): Likewise.
7343         * ira.c (ira_setup_alts): Likewise.
7344         * loop-iv.c (iv_analyze_expr): Likewise.
7345         (implies_p): Likewise.
7346         (canon_condition): Likewise.
7347         * lra-constraints.c (swap_operands): Likewise.
7348         * lra-lives.c (lra_merge_live_ranges): Likewise.
7349         * omega.c (swap): Remove.
7350         (bswap): Remove.
7351         (omega_unprotect_1): Use std::swap.
7352         (omega_solve_geq): Likewise.
7353         * optabs.c (expand_binop_directly): Likewise.
7354         (expand_binop): Likewise.
7355         (emit_conditional_move): Likewise.
7356         (emit_conditional_add): Likewise.
7357         * postreload.c (reload_cse_simplify_operands): Likewise.
7358         * reg-stack.c (emit_swap_insn): Likewise.
7359         (swap_to_top): Likewise.
7360         (compare_for_stack_reg): Likewise.
7361         (subst_asm_stack_regs): Likewise.
7362         * reload.c (find_reloads): Likewise.
7363         * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
7364         * sel-sched.c (invoke_reorder_hooks): Likewise.
7365         (create_block_for_bookkeeping): Likewise.
7366         * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
7367         (lambda_matrix_right_hermite): Use std::swap.
7368         * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
7369         * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
7370         * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
7371         * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
7372         * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
7373         * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
7374         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
7375         * tree-vrp.c (compare_ranges): Likewise.
7376         * var-tracking.c (add_with_sets): Likewise.
7377         (vt_find_locations): Likewise.
7379 2015-05-18  Andreas Tobler  <andreast@gcc.gnu.org>
7381         * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
7382         pie executables.
7383         (FBSD_ENDFILE_SPEC): Likewise.
7384         * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
7385         config/freebsd-spec.h.
7386         (ENDFILE_SPEC): Likewise.
7388 2015-05-18  Uros Bizjak  <ubizjak@gmail.com>
7389             Richard Henderson  <rth@redhat.com>
7391         PR target/57032
7392         * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
7393         Check for a memory location that is not a reference (using an AND)
7394         to an unaligned location here.
7395         * config/alpha/predicates.md (normal_memory_operand): Remove.
7397 2015-05-18  Alex Velenko  <Alex.Velenko@arm.com>
7399         * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
7400         (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
7402 2015-05-18  Robert Suchanek  <robert.suchanek@imgtec.com>
7404         * config/mips/mips.c (micromips_globals): New variable.
7405         (mips_set_compression_mode): Save and reinitialize target-dependent
7406         state for microMIPS.
7408 2015-05-18  Martin Liska  <mliska@suse.cz>
7410         * dbgcnt.def: Add new counter.
7411         * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
7413 2015-05-18  Martin Liska  <mliska@suse.cz>
7415         * dbgcnt.def: Sort counters.
7416         * opts.c (common_handle_option): Do not compile if
7417         -fdbg-cnt-list is enabled.
7419 2015-05-18  Tom de Vries  <tom@codesourcery.com>
7421         * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
7422         (gimplify_va_arg_expr): Remove do_deref handling.  Remove adding of
7423         address operator to va_list operand.
7424         * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
7425         unconditionally.
7426         * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
7427         operand.
7428         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
7429         * config/s390/s390.c (s390_gimplify_va_arg): Same.
7430         * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
7432 2015-05-18  Tom de Vries  <tom@codesourcery.com>
7434         * tree-ssa-tail-merge.c: Fix whitespace.
7436 2015-05-17  Jim Wilson  <jim.wilson@linaro.org>
7438         * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
7439         cortex-a17, and cortex-a17.cortex-a7.
7441 2015-05-17  Oleg Endo  <olegendo@gcc.gnu.org>
7443         PR target/54236
7444         * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
7446 2015-05-17  Uros Bizjak  <ubizjak@gmail.com>
7448         PR target/66174
7449         * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
7450         QImode inner modes for TARGET_AVX512BW.  Force mask operand
7451         to a register for AVX512F modes.
7453 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
7455         * toplev.c (emit_debug_global_declarations): Do not output debug info
7456         when doing slim LTO objects.
7458 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
7460         * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
7461         odr_types_equivalent_p): Declare.
7462         (odr_type_p): Use gcc_checking_assert.
7463         (type_in_anonymous_namespace_p) Declare.
7464         (type_with_linkage_p): Declare.
7465         * common.opt (Wlto-type-mismatch): New warning.
7466         * ipa-devirt.c (compound_type_base): New function.
7467         (odr_or_derived_type_p): New function.
7468         (odr_types_equivalent_p): New function.
7469         (add_type_duplicate): Simplify.
7470         (type_with_linkage_p): Add hack to prevent false positives on C types
7471         (type_in_anonymous_namespace_p): Likewise.
7472         * tree.c (need_assembler_name_p): Use type_with_linkage.
7473         * tree.h (type_in_anonymous_namespace_p): Remove.
7474         * doc/invoke.texi (-Wlto-type-mismatch): Document
7476 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
7478         * tree.c (verify_type_variant): Verify tree_base and type_common flags.
7479         (verify_type): Verify STRING_FLAG.
7481 2015-05-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7483         PR fortran/44054
7484         * tree-pretty-print.c (percent_K_format): Replace locus pointer
7485         with accessor function.
7486         * tree-diagnostic.c (diagnostic_report_current_function): Use
7487         diagnostic_location function.
7488         (maybe_unwind_expanded_macro_loc): Likewise.
7489         (virt_loc_aware_diagnostic_finalizer): Likewise.
7490         (default_tree_printer): Replace locus pointer with accessor function.
7491         * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
7492         (diagnostic_set_info_translated): Initialize second location.
7493         (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
7494         (diagnostic_show_locus): Handle two locations. Call
7495         diagnostic_print_caret_line.
7496         (diagnostic_print_caret_line): New.
7497         (default_diagnostic_starter): Use diagnostic_location function.
7498         (diagnostic_report_diagnostic): Use diagnostic_location function.
7499         (verbatim): Do not set text.locus.
7500         * diagnostic.h (struct diagnostic_info): Remove location field.
7501         (struct diagnostic_context): Make caret_chars an array of two.
7502         (diagnostic_location): New inline.
7503         (diagnostic_expand_location): Handle two locations.
7504         (diagnostic_same_line): New inline.
7505         (diagnostic_print_caret_line): Declare.
7506         (CARET_LINE_MARGIN): New constant.
7507         * pretty-print.c (pp_printf): Do not set text.locus.
7508         (pp_verbatim): Do not set text.locus.
7509         * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
7510         (struct text_info): Replace locus pointer with locations
7511         array. Add accessor functions.
7513 2015-05-16  Kugan Vivekanandarajah  <kuganv@linaro.org>
7514             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
7516         PR target/65768
7517         * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
7518         * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
7519          large constants in register instead of splitting them.
7521 2015-05-16  Uros Bizjak  <ubizjak@gmail.com>
7523         PR target/66140
7524         * config/alpha/alpha.c (get_aligned_mem): Also look for reload
7525         replacements in memory addresses.
7526         (get_unaligned_address): Ditto.
7528 2015-05-16  James Bowman  <james.bowman@ftdichip.com>
7530         * config/ft32/*: New files for FT32 port.
7531         * doc/install.texi: Add FT32 information.
7532         * doc/invoke.texi: Add FT32 information.
7533         * doc/md.texi: Add FT32 information.
7534         * doc/contrib.texi: Self added.
7536 2015-05-15  Marc Glisse  <marc.glisse@inria.fr>
7538         PR tree-optimization/64454
7539         * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
7540         (-1 - A -> ~A): Remove unnecessary condition.
7542 2015-05-15  Gregor Richards  <gregor.richards@uwaterloo.ca>
7544         * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
7545         * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
7546         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
7548 2015-05-15  Ilya Enkovich  <ilya.enkovich@intel.com>
7550         * ipa-chkp.h (chkp_wrap_function): New.
7551         * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
7552         (chkp_wrap_function_name): New.
7553         (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
7554         to get wrapper name.
7555         * lto-cgraph.c: Include ipa-chkp.h.
7556         (input_cgraph_1): Avoid alias chain for wrappers.
7558 2015-05-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
7560         PR middle-end/66134
7561         * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
7562         (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
7564 2015-05-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7566         * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
7567         (AARCH64_FL_SLOWMUL): Delete.
7568         (AARCH64_FL_CRC): Redefine to 1<<3.
7569         (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
7571 2015-05-15  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7573         * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
7574         casting.
7576 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
7578         * config/alpha/alpha.md (extendqidi2): Use general_operand
7579         instead of some_operand for operand[1] predicate.
7580         (extendhidi2): Ditto.
7581         (cbranchdi4): Use general_operand instead of some_operand
7582         for operand[1] and operands[2] predicates.
7583         (cstoredi4): Ditto.
7584         * config/alpha/predicates.md (some_operand): Remove unused predicate.
7585         (some_ni_operand): Ditto.
7587 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
7589         * config/alpha/alpha.c (alpha_extract_integer): Do not handle
7590         CONST_WIDE_INT and CONST_DOUBLE.  Assert CONST_INT_P (x).
7591         (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
7592         low part of the constant using alpha_emit_set_const_1.
7593         (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
7595 2015-05-14  Rohit Arul Raj  <rohitrulraj@freescale.com>
7597         * varasm.c (output_constant_pool_1): Pass down alignment from
7598         constant pool entry's descriptor to output_constant_pool_2.
7599         (output_object_block): Add comment prior to call to
7600         output_constant_pool_1.
7602 2015-05-14  Vladimir Makarov  <vmakarov@redhat.com>
7604         PR rtl-optimization/65862
7605         * target.def (ira_change_pseudo_allocno_class): New hook.
7606         * targhooks.c (default_ira_change_pseudo_allocno_class): Default
7607         value of the hook.
7608         * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
7609         * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
7610         hook.
7611         * ira-costs.c (find_costs_and_classes): Call the hook and change
7612         classes when it is necessary.
7613         * doc/tm.texi: Update.
7615 2015-05-14  Alexander Monakov  <amonakov@ispras.ru>
7617         * config/i386/i386.md (sibcall_memory): Check that register with
7618         callee address is not also used as one of the arguments, instead
7619         of checking that it is not live after the sibcall.
7620         (sibcall_pop_memory): Ditto.
7621         (sibcall_value_memory): Ditto.
7622         (sibcall_value_pop_memory): Ditto.
7624 2015-05-14  Marc Glisse  <marc.glisse@inria.fr>
7626         * generic-match-head.c (types_match): Handle non-types.
7627         * gimple-match-head.c (types_match): Likewise.
7628         * match.pd: Remove unnecessary TREE_TYPE for types_match.
7630 2015-05-14  Wilco Dijkstra  <wdijkstr@arm.com>
7632         * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
7633         (csneg3<mode>_insn): Enable expansion of pattern.
7635 2015-05-14  Nick Clifton  <nickc@redhat.com>
7637         * config/rl78/rl78.c (rl78_select_section): Select the correct
7638         default section based upon the category of the decl.
7640 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
7642         PR rtl-optimization/30967
7643         * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
7644         destination mode for the cost of scc patterns.
7646 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
7648         * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
7649         using SWIM248 mode iterator.
7650         (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
7651         (*mulvhi4): mark operand[1] as commutative.  Use nonimmediate_operand
7652         for operand[2] constraint.
7653         (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
7655 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
7657         PR middle-end/66133
7658         * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
7659         make sure it is never noreturn, even when the task body does not
7660         return.
7661         (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
7662         right before GIMPLE_OMP_RETURN.
7663         (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
7664         for GIMPLE_OMP_TASK.  For GIMPLE_OMP_RETURN corresponding to
7665         GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
7667 2015-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7669         * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
7670         * tree-ssa-math-opts.c: Include params.h
7671         (pow_synth_sqrt_info): New struct.
7672         (representable_as_half_series_p): New function.
7673         (get_fn_chain): Likewise.
7674         (print_nested_fn): Likewise.
7675         (dump_fractional_sqrt_sequence): Likewise.
7676         (dump_integer_part): Likewise.
7677         (expand_pow_as_sqrts): Likewise.
7678         (gimple_expand_builtin_pow): Use above to attempt to expand
7679         pow as series of square roots.  Removed now unused variables.
7681 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
7683         * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
7684         (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
7685         Remove *p0 and *p1 arguments.  Rewrite function.
7686         (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
7687         (alpha_split_const_mov): Update calls to alpha_extract_integer and
7688         alpha_emit_set_long_const.
7689         (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
7690         (alpha_output_mi_thunk_osf): Ditto.
7691         * config/alpha/alpha.md (movti): Do not check operands[1]
7692         for CONST_DOUBLE.
7694 2015-05-13  Richard Biener  <rguenther@suse.de>
7696         PR tree-optimization/66129
7697         * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
7698         commutative.
7699         (vect_schedule_slp_instance): Fix typo.
7701 2015-05-13  David Malcolm  <dmalcolm@redhat.com>
7703         * common.opt (fdump-internal-locations): New option.
7704         * input.c: Include diagnostic-core.h.
7705         (get_end_location): New function.
7706         (write_digit): New function.
7707         (write_digit_row): New function.
7708         (dump_location_range): New function.
7709         (dump_labelled_location_range): New function.
7710         (dump_location_info): New function.
7711         * input.h (dump_location_info): New prototype.
7712         * toplev.c (compile_file): Handle flag_dump_locations.
7714 2015-05-13  Eric Botcazou  <ebotcazou@adacore.com>
7716         * gimple-expr.h (is_gimple_constant): Reorder.
7717         * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
7719 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
7721         * combine.c (simplify_set): When generating a CC set, if the
7722         source already is in the correct mode, do not wrap it in a
7723         compare.  Simplify the rest of that code.
7725 2015-05-13  Richard Biener  <rguenther@suse.de>
7727         PR tree-optimization/66123
7728         * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
7729         a taken edge.
7731 2015-05-13  Richard Biener  <rguenther@suse.de>
7733         PR middle-end/66110
7734         * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
7735         specially.
7736         * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
7738 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
7740         * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
7741         * aclocal.m4: Regenerated with automake-1.11.6.
7743 2015-05-13  Tom de Vries  <tom@codesourcery.com>
7745         PR tree-optimization/66010
7746         * gimplify.h (gimplify_va_arg_internal): Remove declaration.
7747         * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
7748         * tree-stdarg.c (expand_ifn_va_arg_1): ... here.  Choose between lval
7749         and rval based on do_deref.
7751 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
7753         PR target/65103
7754         * config/i386/i386.c (ix86_rtx_costs): We want to propagate
7755         link time constants into adress expressions and therefore set
7756         their cost to 0.
7758 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
7760         PR target/66112
7761         * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
7762         Use SWI248 iterator instead of SWI.
7763         (*mulv<mode>4_1): Use SWI48 instead of SWI.  Simplify output template.
7764         Use eq_attr "alternative" "0" instead of match_test in
7765         length_immediate attribute computation.
7766         (*mulvhi4, *mulvhi4_1): New define_insns.
7768         PR target/66112
7769         * internal-fn.c (get_min_precision): Use UNSIGNED instead of
7770         SIGNED to get precision of non-negative value.
7772 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
7774         PR target/66048
7775         * function.c (diddle_return_value_1): Process bounds first.
7776         * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
7777         register.
7779 2015-05-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
7781         PR rtl-optimization/64616
7782         * loop-invariant.c (can_move_invariant_reg): New.
7783         (move_invariant_reg): Call above new function to decide whether
7784         instruction can just be moved, skipping creation of temporary
7785         register.
7787 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
7789         PR target/pr66047.c
7790         * i386.c (ix86_function_sseregparm): Only return -1 if local function
7791         with implied regparm is called from -mno-sse function.
7792         (init_cumulative_args): Output error if ix86_function_sseregparm
7793         return -1 and SSE register would be needed.
7794         (function_arg_advance_32): Likewise.
7795         (function_arg_32): Likewise.
7796         * i386.h (ix86_args): Add decl field.
7798 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
7800         PR ipa/65873
7801         * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
7802         inlines across optimization boundary.
7804 2015-05-12  Jason Merrill  <jason@redhat.com>
7806         * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
7807         string literal and macro name.
7809 2015-05-12  Steve Ellcey  <sellcey@imgtec.com>
7811         * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
7812         * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
7813         * config/mips/predicates.md (const_immlsa_operand): Remove log call.
7815 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
7817         * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
7818         (-Wmisleading-indentation): New option.
7819         * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
7821 2015-05-12  Uros Bizjak  <ubizjak@gmail.com>
7823         * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
7824         * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
7825         (alpha_extract_integer): Ditto.
7826         (alpha_legitimate_constant_p): Ditto.
7827         (alpha_split_tmode_pair): Ditto.
7828         (alpha_preferred_reload_class): Add CONST_WIDE_INT.
7829         (alpha_expand_mov): Ditto.
7830         (print_operand): Remove handling of 'H' modifier.
7831         <case 'm'>: Remove CONST_DOUBLE handling.
7832         (summarize_insn): Handle CONST_WIDE_INT.
7833         * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
7834         (anddi3): Ditto.
7835         (movti): Handle CONST_WIDE_INT.
7836         * config/alpha/constraints.md ('H'): Remove constraint definition.
7837         ('G'): Do not match MODE_FLOAT class.
7838         * config/alpha/predicates.md (const0_operand): Also match
7839         const_wide_int.
7840         (non_add_const_operand): Ditto.
7841         (non_zero_const_operand): Ditto.
7842         (some_operand): Ditto.
7843         (input_operand): Ditto.  Handle CONST_WIDE_INT.
7844         (and_operand): Do not match const_double.
7845         * config/alpha/sync.md (fetchop_constr): Remove H constraint.
7847 2015-05-12  Andrew MacLeod  <amacleod@redhat.com>
7849         PR target/65697
7850         * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
7851         (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
7852         * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
7853         is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
7854         is_mm_seq_cst, is_mm_sync): New accessor functions.
7855         * builtins.c (expand_builtin_sync_operation,
7856         expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
7857         (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
7858         (get_memmodel,  expand_builtin_atomic_compare_exchange,
7859         expand_builtin_atomic_load, expand_builtin_atomic_store,
7860         expand_builtin_atomic_clear): Use new accessor routines.
7861         (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
7862         * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
7863         (maybe_emit_sync_lock_test_and_set): Use new accessors and
7864         MEMMODEL_SYNC_ACQUIRE.
7865         (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
7866         (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
7867         expand_atomic_store): Use new accessors.
7868         * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
7869         * tsan.c (instrument_builtin_call): Update check for memory model beyond
7870         final enum to use MEMMODEL_LAST.
7871         * c-family/c-common.c: Use new accessor for memmodel_base.
7872         * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
7873         accessors.
7874         * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
7875         arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
7876         mem_thread_fence, *dmb): Likewise.
7877         * config/alpha/alpha.c (alpha_split_compare_and_swap,
7878         alpha_split_compare_and_swap_12): Likewise.
7879         * config/arm/arm.c (arm_expand_compare_and_swap,
7880         arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
7881         * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
7882         atomic_loaddi): Likewise.
7883         * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
7884         Likewise.
7885         * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
7886         * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
7887         use new accessors.
7888         * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
7889         atomic_store<mode>, atomic_compare_and_swap<mode>,
7890         atomic_exchange<mode>): Use new accessors.
7891         * config/mips/mips.c (mips_process_sync_loop): Likewise.
7892         * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
7893         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
7894         rs6000_post_atomic_barrier): Add new cases.
7895         (rs6000_expand_atomic_compare_and_swap): Use new accessors.
7896         * config/rs6000/sync.md (mem_thread_fence): Add new cases.
7897         (atomic_load<mode>): Add new cases and use new accessors.
7898         (store_quadpti): Add new cases.
7899         * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
7900         accessors.
7901         * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
7902         * doc/extend.texi: Update docs to indicate 16 bits are used for memory
7903         model, not 8.
7905 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
7907         * ipa-devirt.c (type_with_linkage_p): New function.
7908         (type_in_anonymous_namespace_p): Move here from tree.c; assert that
7909         type has linkage.
7910         (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
7911         (can_be_name_hashed_p): Simplify.
7912         (hash_odr_name): Check that type has linkage before checking if it is
7913         anonymous.
7914         (types_same_for_odr): Likewise.
7915         (odr_name_hasher::equal): Likewise.
7916         (odr_subtypes_equivalent_p): Likewise.
7917         (warn_types_mismatch): Likewise.
7918         (get_odr_type): Likewise.
7919         (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
7920         * ipa-utils.h (odr_type_p): Move offline.
7921         * tree.c (need_assembler_name_p): Fix handling of types
7922         without linkages.
7923         (type_in_anonymous_namespace_p): Move to ipa-devirt.c
7925 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
7927         * timevar.c (timevar_enable): Delete in favor of...
7928         (g_timer): New global.
7929         (struct timevar_def): Move to timevar.h inside class timer.
7930         (struct timevar_stack_def): Likewise.
7931         (timevars): Delete global in favor of field "m_timevars" within
7932         class timer in timevar.h
7933         (stack): Likewise, in favor of field "m_stack".
7934         (unused_stack_instances): Likewise, in favor of field
7935         "m_unused_stack_instances".
7936         (start_time): Likewise, in favor of field "m_start_time".
7937         (get_time): Eliminate check for timevar_enable.
7938         (timer::timer): New function, built from part of timevar_init.
7939         (timevar_init): Rewrite idempotency test from using
7940         "timevar_enable" bool to using dynamic allocation of "g_timer".
7941         Move rest of implementation into timer's constructor.
7942         (timevar_push_1): Rename to...
7943         (timer::push): ...this, adding "m_" prefixes to variables that
7944         are now fields of timer.
7945         (timevar_pop_1): Likewise, rename to...
7946         (timer::pop): ...this, and add "m_" prefixes.
7947         (timevar_start): Replace test for "timevar_enable" with one for
7948         "g_timer", and move bulk of implementation to...
7949         (timer::start): ...here, adding "m_" prefixes.
7950         (timevar_stop): Likewise, from here...
7951         (timer::stop): ...to here.
7952         (timevar_cond_start): Likewise, from here...
7953         (timer::cond_start): ...to here.
7954         (timevar_cond_stop): Likewise, from here...
7955         (timer::cond_stop): ...to here.
7956         (validate_phases): Rename to...
7957         (timer::validate_phases): ...this, and add "m_" prefixes.  Make
7958         locals "total" and "tv" const.
7959         (timevar_print): Rename to...
7960         (timer::print): ...this, and add "m_" prefixes.  Make locals
7961         "total" and "tv" const.  Eliminate test for timevar_enable.
7962         * timevar.h (timevar_enable): Eliminate.
7963         (g_timer): New declaration.
7964         (timevar_push_1): Eliminate.
7965         (timevar_pop_1): Eliminate.
7966         (timevar_print): Eliminate.
7967         (class timer): New class.
7968         (timevar_push): Rewrite to use g_timer.
7969         (timevar_pop): Likewise.
7970         * toplev.c (toplev::~toplev): Likewise.
7972 2015-05-12  Richard Earnshaw  <rearnsha@arm.com>
7974         * arm-protos.h (arm_sched_autopref): Delete.
7975         (tune_params): Re-organize, use enums for flag values.
7976         (FUSE_OPS): New macro.
7977         * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
7978         (ARM_PREFETCH_BENEFICIAL): Likewise.
7979         (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
7980         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
7981         (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
7982         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
7983         (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
7984         (arm_cortex_a57_tune,  arm_xgene1_tune, arm_cortex_a5_tune)
7985         (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
7986         (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
7987         format.
7988         (arm_option_override, thumb2_reorg, arm_print_tune_info)
7989         (aarch_macro_fusion_pair_p): Update uses of current_tune.
7990         * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
7992 2015-05-12  Sandra Loosemore  <sandra@codesourcery.com>
7994         * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
7995         "break".
7997 2015-05-12  Chung-Lin Tang  <cltang@codesourcery.com>
7998             Sandra Loosemore <sandra@codesourcery.com>
8000         * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
8001         value.
8002         (REG_CLASS_NAMES): Add "IJMP_REGS".
8003         (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
8004         * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
8005         use new "c" register constraint.
8006         * config/nios2/constraint.md (c): New register constraint
8007         corresponding to IJMP_REGS.
8009 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
8011         * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
8012         *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
8013         define_splits): Delete, revamp, transmogrify into ...
8014         (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
8015         *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
8016         *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
8017         New.
8019 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
8021         * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
8022         gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
8024 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
8026         * config/rs6000/rs6000.md (extzv): FAIL for SImode.
8027         (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
8028         *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
8029         *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
8030         *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
8031         *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
8032         *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
8033         *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
8034         *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
8035         *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
8036         *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
8037         *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
8038         *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
8039         *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
8040         *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
8041         *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
8042         and 30 corresponding splitters): Delete.
8044 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
8046         * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
8047         zero_extract.
8049 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
8051         * combine.c (recog_for_combine_1): New function, factored out
8052         from recog_for_combine.
8053         (change_zero_ext): New function.
8054         (recog_for_combine): If recog fails, try again with the pattern
8055         modified by change_zero_ext; if that still fails, restore the
8056         pattern.
8058 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
8060         * combine.c (get_undo_marker): New function.
8061         (undo_to_marker): New function, largely factored out from ...
8062         (undo_all): ... this.  Adjust.
8064 2015-05-12  Richard Biener  <rguenther@suse.de>
8066         PR tree-optimization/66101
8067         * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
8068         fixup if we turn a loop exit edge to a fallthru edge.
8070 2015-05-12  Richard Biener  <rguenther@suse.de>
8072         PR tree-optimization/37021
8073         * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
8074         (SLP_TREE_TWO_OPERATORS): New define.
8075         * tree-vect-slp.c (vect_create_new_slp_node): Initialize
8076         SLP_TREE_TWO_OPERATORS.
8077         (vect_build_slp_tree_1): Allow two mixing plus/minus in an
8078         SLP node.
8079         (vect_build_slp_tree): Adjust.
8080         (vect_analyze_slp_cost_1): Likewise.
8081         (vect_schedule_slp_instance): Vectorize mixing plus/minus by
8082         emitting two vector stmts and mixing the results.
8084 2015-05-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
8086         * call.c (print_z_candidates): Remove dead code.
8088 2015-05-12  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8090         * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
8091         and zEC12_simple_fp.
8092         * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
8093         to 1.
8095 2015-05-12  Tom de Vries  <tom@codesourcery.com>
8097         PR tree-optimization/66010
8098         * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
8099         ifn_va_arg.
8100         * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
8101         (gimplify_va_arg_internal): Remove loc parameter.  Assert no array-typed
8102         va_lists are passed, and remove corresponding handling.
8103         (gimplify_va_arg_expr): Only take address of ap if necessary.  Add
8104         do_deref argument to ifn_va_arg.
8105         * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
8106         ifn_va_arg.
8108 2015-05-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8110         PR target/65955
8111         * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
8112         REG before taking its REGNO.
8114 2015-05-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
8116         * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
8117         rsp->sign_bit_copies and rsp->nonzero_bits into ...
8118         (update_rsp_from_reg_equal): This.  Also use REG_EQUAL note on src if
8119         present to get more accurate information about the number of sign bit
8120         copies and non zero bits.
8122 2015-05-12  Richard Biener  <rguenther@suse.de>
8124         * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
8125         do not allow unrolling.
8127 2015-05-11  Richard Henderson  <rth@redhat.com>
8129         * config/i386/i386-modes.def (CCP): New.
8130         * config/i386/i386.c (put_condition_code): Handle it.
8131         (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
8133 2015-05-11  Richard Henderson  <rth@redhat.com>
8135         * target.def (md_asm_clobbers): Replace with...
8136         (md_asm_adjust): this.
8137         * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
8138         (TARGET_MD_ASM_ADJUST): New.
8139         * tm.texi: Rebuild.
8140         * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
8141         * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
8142         * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
8144         * cfgexpand.c (check_operand_nalternatives): Accept vector of
8145         constraints instead of lists of outputs and inputs.
8146         (expand_asm_stmt): Save and restore input_location around the
8147         body of the function.  Move asm data into vectors instead of
8148         building tree lists.  Generate cleanup sequences as needed,
8149         rather than waiting til the end.  Use new md_asm_adjust hook.
8151         * config/vxworks.c: Include vec.h before target.h.
8152         * gimple.c: Likewise.
8153         * incpath.c: Likewise.
8154         * mode-switching.c: Likewise.
8156         * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
8157         (cris_md_asm_adjust): this.
8158         (TARGET_MD_ASM_CLOBBERS): Remove.
8159         (TARGET_MD_ASM_ADJUST): New.
8160         * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
8161         (ix86_md_asm_adjust): this.
8162         (TARGET_MD_ASM_CLOBBERS): Remove.
8163         (TARGET_MD_ASM_ADJUST): New.
8164         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
8165         (mn10300_md_asm_adjust): this.
8166         (TARGET_MD_ASM_CLOBBERS): Remove.
8167         (TARGET_MD_ASM_ADJUST): New.
8168         * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
8169         (rs6000_md_asm_adjust): this.
8170         (TARGET_MD_ASM_CLOBBERS): Remove.
8171         (TARGET_MD_ASM_ADJUST): New.
8172         * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
8173         (visium_md_asm_adjust): this.
8174         (TARGET_MD_ASM_CLOBBERS): Remove.
8175         (TARGET_MD_ASM_ADJUST): New.
8177 2015-05-11  Richard Henderson  <rth@redhat.com>
8179         * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
8180         if noutputs is zero.
8181         * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
8183         * cfgexpand.c (expand_asm_operands): Merge into...
8184         (expand_asm_stmt): ... here.
8186         * cfgexpand.c (expand_asm_operands): Don't call
8187         resolve_asm_operand_names.
8188         * stmt.c (resolve_asm_operand_names): Clarify block comment.
8190 2015-05-11  Jan Hubicka  <hubicka@ucw.cz>
8192         * dwarf2out.c (gen_member_die): Sanity check that we access
8193         TYPE_MAIN_VARIANT for TYPE_METHODS.
8194         * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
8195         checking TYPE_METHODS.
8196         * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
8197         if non-null.
8198         (build_distinct_type_copy): Clear TYPE_METHODS.
8199         (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
8200         (verify_type): Allow TYPE_METHODS to be error_mark_node.
8201         * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
8203 2015-05-11  Eric Botcazou  <ebotcazou@adacore.com>
8205         * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
8206         (emit_pattern_before_setloc): Likewise.
8208 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
8210         * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
8211         for define_peephole2s.
8212         (get_peephole2_pattern): New function.
8213         (main): Use it.  Call validate_pattern.
8215 2015-05-11  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
8217         * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
8218         LAST_CALLEE_SAVED_REG instead of hard-coded register number.
8219         (Last callee saved reg is different for AVR_TINY architecture)
8221 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
8223         * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
8224         when looking for memory references.
8226 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
8228         PR target/65753
8229         * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
8230         via function pointers.
8232 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
8234         * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
8235         indirect call by forcing address into a pseudo with -fno-plt.
8236         * common.opt (flag_plt): New option.
8237         * doc/invoke.texi (Code Generation Options): Add -fno-plt.
8238         ([-fno-plt]): Document.
8240 2015-05-11  Markus Trippelsdorf  <markus@trippelsdorf.de>
8242         PR bootstrap/66105
8243         * config/rs6000/option-defaults.h: Add space between string literal
8244         and macro name.
8246 2015-05-11  Thomas Preud'homme  <thomas.preudhomme@arm.com>
8248         * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
8249         accross ARM targets.
8251 2015-05-11  Christian Bruel  <christian.bruel@st.com>
8253         * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
8254         * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
8256 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
8258         PR rtl-optimization/66076
8259         * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
8260         Don't grow the heap array if it is already big enough from a
8261         previous iteration.
8263 2015-05-11  Christian Bruel  <christian.bruel@st.com>
8265         * config/arm/arm-protos.h (arm_declare_function_name): Declare.
8266         (is_called_in_ARM_mode): Remove.
8267         * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
8268         (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
8269         * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
8270          arm_declare_function_name.
8272 2015-05-11  Christian Bruel  <christian.bruel@st.com>
8274         * config/arm/arm.c (arm_option_override): Reoganized and split into :
8275         (arm_option_params_internal); New function.
8276         (arm_option_check_internal): New function.
8277         (arm_option_override_internal): New function.
8278         (thumb_code, thumb1_code): Remove.
8279         * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
8280         (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
8281         (thumb_code, thumb1_code): Remove.
8282         * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
8284 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
8286         * config/alpha/alpha.c (alpha_emit_set_const_1)
8287         (alpha_emit_set_long_const, alpha_extract_integer)
8288         (alpha_legitimate_constant_p, alpha_split_const_mov)
8289         (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
8290         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
8291         (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
8292         HOST_WIDE_INT_1U.
8293         * config/alpha/predicates.md (mode_mask_operand): Do not match
8294         const_double RTX.
8295         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
8296         * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
8297         Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
8298         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
8299         (*negtf_internal): Use gen_int_mode instead of immed_double_const.
8301 2015-05-11  Jakub Jelinek  <jakub@redhat.com>
8303         PR target/65780
8304         * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
8305         default_binds_local_p_2.
8306         * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
8307         * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
8309 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
8311         * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
8313 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
8315         Patch by Richard Biener
8316         * coverage.c (coverage_obj_init): Delay building of type variant
8317         until the type is finished.
8319 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
8321         * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
8322         mismatch between C and C++ type; compoare correctly ARG_TYPES
8323         for non-prototypes and output correctly parameter index for METHOD_TYPE.
8324         (odr_types_equivalent_p): Fix wording of warning about attributes;
8325         it is OK to match prototype and non-prototype.
8327 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
8329         * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
8330         TYPE_ARG_TYPES list.
8331         (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
8332         * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
8334 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
8336         * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
8337         * tree.h (is_lang_specific): Constify.
8339 2015-05-09  Marc Glisse  <marc.glisse@inria.fr>
8341         PR tree-optimization/64454
8342         * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
8343         Rewrite.
8345 2015-05-08  Jason Merrill  <jason@redhat.com>
8347         * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
8348         config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
8349         config/darwin.h, config/darwin9.h, config/elfos.h,
8350         config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
8351         config/microblaze/microblaze.h, config/mips/mips.h,
8352         config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
8353         config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
8354         config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
8355         config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
8356         config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
8357         cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
8358         dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
8359         ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
8360         ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
8361         modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
8362         tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
8363         between string literal and macro name.
8365 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8367         * jump.c: Change argument types to rtx_insn *.
8368         * rtl.h: Adjust.
8370 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8372         * lra-constraints.c: Change argument type to rtx_insn *.
8374 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8376         * df-problems.c: Change argument type to rtx_insn *.
8378 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8380         * combine.c: Change argument type to rtx_insn *.
8382 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8384         * rtl.h: Adjust.
8385         * rtlanal.c: Change argument type to rtx_insn *.
8387 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8389         * sched-deps.c: Change argument types to rtx_insn *.
8390         * sched-int.h: Adjust.
8392 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8394         * dwarf2cfi.c: Change argument type to rtx_insn *.
8396 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8398         * ira.c (decrease_live_ranges_number): Changetype of local
8399         variable to rtx_insn *.
8400         * recog.c: Change argument types to rtx_insn *.
8401         * recog.h: Adjust.
8403 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8405         * reorg.c: Change argument types to rtx_insn *.
8407 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8409         * ira-color.c: Change argument types to rtx_insn *.
8410         * lra-eliminations.c: Likewise.
8411         * ira.h: Adjust.
8413 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8415         * gcse.c: Change argument types to rtx_insn *.
8417 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8419         * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
8421 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8423         * emit-rtl.c (emit_debug_insn_before): Change argument type to
8424         rtx_insn *.
8425         * rtl.h: Adjust.
8427 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8429         * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
8430         * rtl.h: Adjust.
8432 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8434         * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
8435         * rtl.h: Adjust.
8437 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8439         * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
8440         * rtl.h: Adjust.
8442 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8444         * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
8445         * rtl.h: Adjust.
8447 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8449         * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
8450         to rtx_insn *.
8451         * rtl.h: Adjust.
8453 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8455         * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
8456         to rtx_insn *.
8457         * rtl.h: Likewise.
8459 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8461         * except.c (can_nonlocal_goto): Change type of argument to
8462         rtx_insn *.
8463         * rtl.h: Adjust.
8465 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8467         * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
8468         * rtl.h: Adjust.
8470 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8472         * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
8473         * cfgrtl.c (can_delete_label_p): Adjust.
8474         * rtl.h: likewise.
8476 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8478         * reorg.c (stop_search_p): Change argument to rtx_insn *.
8480 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8482         * except.c (make_reg_eh_region_note): Change argument to
8483         rtx_insn *.
8484         (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
8485         * except.h: Adjust.
8487 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8489         * mode-switching.c (commit_mode_sets): Change type of local
8490         variable from rtx to rtx_insn *.
8492 2015-05-08  Jim Wilson  <jim.wilson@linaro.org>
8494         * doc/install.texi (--enable-languages): Add missing jit and lto info.
8495         Add ^ to grep command.
8496         * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
8497         arg to last gimple_simplify declaration.  Add missing gimple_build
8498         declaration for built-in function case with four tree args.
8500 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
8501             Szabolcs Nagy  <szabolcs.nagy@arm.com>
8503         * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
8504         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
8505         (GNU_USER_DYNAMIC_LINKERN32): Update.
8507 2015-05-08  Richard Biener  <rguenther@suse.de>
8509         PR tree-optimization/66036
8510         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
8511         Handle strided group loads.
8512         (vect_verify_datarefs_alignment): Likewise.
8513         (vect_enhance_data_refs_alignment): Likewise.
8514         (vect_analyze_group_access): Likewise.
8515         (vect_analyze_data_ref_access): Likewise.
8516         (vect_analyze_data_ref_accesses): Likewise.
8517         * tree-vect-stmts.c (vect_model_load_cost): Likewise.
8518         (vectorizable_load): Likewise.
8520 2015-05-08  Segher Boessenkool  <segher@kernel.crashing.org>
8522         * config/rs6000/rs6000.md: Require operand inequality in one
8523         of the peepholes.
8525 2015-05-08  Richard Sandiford  <richard.sandiford@arm.com>
8526             Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
8528         * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
8529         from (set ...).
8530         * config/rx/rx.md (movdi, movdf): Likewise.
8531         Likewise for define_peephole2s.
8533 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
8535         * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
8536         vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
8537         vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
8538         vtst_u64): Rewrite using gcc vector extensions.
8540 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
8542         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
8543         vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
8545 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
8547         * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
8549 2015-05-08  Szabolcs Nagy  <szabolcs.nagy@arm.com>
8551         * config/glibc-stdint.h (OPTION_MUSL): Define.
8552         (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
8553         Change the definition based on OPTION_MUSL for 64 bit targets.
8554         * config/linux.h (OPTION_MUSL): Redefine.
8555         * config/alpha/linux.h (OPTION_MUSL): Redefine.
8556         * config/rs6000/linux.h (OPTION_MUSL): Redefine.
8557         * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
8559 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
8560             Szabolcs Nagy  <szabolcs.nagy@arm.com>
8562         * config.gcc (LIBC_MUSL): New tm_defines macro.
8563         * config/linux.h (OPTION_MUSL): Define.
8564         (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
8565         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
8566         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
8567         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
8568         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
8569         * config/linux.opt (mmusl): New option.
8570         * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
8571         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
8572         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
8573         * configure: Regenerate.
8575 2015-05-08  H.J. Lu  <hongjiu.lu@intel.com>
8576             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
8578         PR target/48904
8579         * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
8580         * config/i386/knetbsd-gnu64.h: New file.
8582 2015-05-08  Marek Polacek  <polacek@redhat.com>
8584         PR c/64918
8585         * doc/invoke.texi: Document -Woverride-init-side-effects.
8587 2015-05-07  Marek Polacek  <polacek@redhat.com>
8589         PR c/65179
8590         * doc/invoke.texi: Document -Wshift-negative-value.
8592 2015-05-06  Aditya Kumar  <hiraditya@msn.com>
8594         * gcov-tool.c (do_merge): Refactore to remove int ret.
8595         * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
8596         !type == FUNC to type != FUNC.
8597         * reload.h (struct target_reload): Changee to type of
8598         x_spill_indirect_levels from bool to unsigned char.
8600 2015-05-07  Richard Sandiford  <richard.sandiford@arm.com>
8602         * rtl.h (always_void_p): New function.
8603         * gengenrtl.c (always_void_p): Likewise.
8604         (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
8605         with code foo are always VOIDmode.
8606         * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
8607         * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
8608         compare-elim.c, config/aarch64/aarch64.c,
8609         config/aarch64/aarch64.md, config/alpha/alpha.c,
8610         config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
8611         config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
8612         config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
8613         config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
8614         config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
8615         config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
8616         config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
8617         config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
8618         config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
8619         config/ia64/vect.md, config/iq2000/iq2000.c,
8620         config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
8621         config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
8622         config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
8623         config/mep/mep.c, config/microblaze/microblaze.c,
8624         config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
8625         config/mn10300/mn10300.c, config/msp430/msp430.c,
8626         config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
8627         config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
8628         config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
8629         config/rs6000/altivec.md, config/rs6000/rs6000.c,
8630         config/rs6000/rs6000.md, config/rs6000/vector.md,
8631         config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
8632         config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
8633         config/sh/sh.md, config/sh/sh_treg_combine.cc,
8634         config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
8635         config/spu/spu.md, config/stormy16/stormy16.c,
8636         config/tilegx/tilegx.c, config/tilegx/tilegx.md,
8637         config/tilepro/tilepro.c, config/tilepro/tilepro.md,
8638         config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
8639         config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
8640         expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
8641         lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
8642         reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
8643         var-tracking.c: Update calls accordingly.
8645 2015-05-07  Segher Boessenkool  <segher@kernel.crashing.org>
8647         PR middle-end/192
8648         PR middle-end/54303
8649         * varasm.c (function_mergeable_rodata_prefix): New function.
8650         (mergeable_string_section): Use it.
8651         (mergeable_constant_section): Use it.
8653 2015-05-07  Jeff Law  <law@redhat.com>
8655         PR target/39726
8656         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
8657         simplifier to narrow arithmetic.
8658         * generic-match-head.c: (types_match, single_use): New functions.
8659         * gimple-match-head.c: (types_match, single_use): New functions.
8661 2015-05-07  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
8663         * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
8664         rtx type.
8666 2015-05-07  Richard Biener  <rguenther@suse.de>
8668         PR tree-optimization/66002
8669         * passes.def: Schedule another pass_merge_phi after ifcombine, right
8670         before phiopt.
8672 2015-05-07  Marek Polacek  <polacek@redhat.com>
8673             Martin Uecker  <uecker@eecs.berkeley.edu>
8675         * doc/invoke.texi: Document -fsanitize=bounds-strict.
8676         * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
8677         into SANITIZE_NONDEFAULT.
8678         * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
8680 2015-05-07  Uros Bizjak  <ubizjak@gmail.com>
8682         PR target/66015
8683         * config/alpha/alpha.c (alpha_override_options_after_change): New.
8684         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
8685         (alpha_override_options): Move align_loops, align_jumps and
8686         align_functions handling into alpha_override_options_after_change.
8688 2015-05-06  Sandra Loosemore  <sandra@codesourcery.com>
8689             Chris Jones  <chrisj@nvidia.com>
8690             Joshua Conner  <jconner@nvidia.com>
8692         * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
8693         linking of crtfastmath.o.
8694         * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
8696 2015-05-06  Segher Boessenkool  <segher@kernel.crashing.org>
8698         * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
8699         (cstore<mode>4_unsigned_imm): New expander.
8700         (cstore<mode>4): Remove empty constraint strings.  Use the new
8701         expanders.
8703 2015-05-06  Yvan Roux  <yvan.roux@linaro.org>
8705         PR target/64208
8706         * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
8707         alternatives.
8709 2015-05-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
8711         * config/aarch64/geniterators.sh: Use standard BRE in sed.
8713 2015-05-06  Alan Modra  <amodra@gmail.com>
8715         PR target/66033
8716         * config/rs6000/rs6000.md (nop): Use an unspec pattern.
8717         (UNSPEC_NOP): Define.
8718         (reload_vsx_from_gpr<mode>): Add missing DONE.
8719         (reload_gpr_from_vsx<mode>): Likewise.
8720         * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
8721         (vsx_div_v2di, vsx_udiv_v2di): Likewise.
8723 2015-05-06  Christian Bruel  <christian.bruel@st.com>
8725         PR target/66015
8726         * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
8727         align_jumps, align_functions into aarch64_override_options_after_change.
8729 2015-05-06  Richard Biener  <rguenther@suse.de>
8731         * tree-vect-slp.c (vect_supported_load_permutation_p): Use
8732         vect_transform_slp_perm_load to check if we support a permutation
8733         for basic-block vectorization.
8735 2015-05-06  Nick Clifton  <nickc@redhat.com>
8737         * config/rl78/rl78.c (need_to_save): Save register 22 if it is
8738         used, even if it is not being used as a frame pointer.
8740 2015-05-05  Jason Merrill  <jason@redhat.com>
8742         * dwarf2out.c (gen_member_die): Don't emit anything for an
8743         anonymous class constructor.
8745 2015-05-05  David Malcolm  <dmalcolm@redhat.com>
8747         * auto-profile.c (afdo_find_equiv_class): Fix indentation so
8748         that it reflects the block structure.
8749         (afdo_propagate_edge): Likewise.
8750         (afdo_calculate_branch_prob): Likewise.
8751         (afdo_annotate_cfg): Likewise.
8752         * cfgcleanup.c (equal_different_set_p): Likewise.
8753         (try_crossjump_to_edge): Likewise.
8754         * cgraph.c (cgraph_node::verify_node): Likewise.
8755         * cgraphunit.c (expand_all_functions): Likewise.
8756         * config/i386/i386.c (ix86_expand_copysign): Likewise.
8757         (exact_dependency_1): Likewise.
8758         * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
8759         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
8760         * gensupport.c (process_define_subst): Likewise.
8761         * lto-wrapper.c (merge_and_complain): Likewise.
8762         * tree-if-conv.c (if_convertible_bb_p): Likewise.
8763         * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
8764         * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
8765         * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
8766         * tree-vect-loop.c (vectorizable_reduction): Likewise.
8767         * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
8768         * tree-vect-stmts.c (vectorizable_shift): Likewise.
8769         * tree-vrp.c (vrp_finalize): Likewise.
8770         * tree.c (variably_modified_type_p): Likewise.
8772 2015-05-05  Jack Howarth  <howarth.at.gcc@gmail.com>
8774         * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
8775         on darwin12 and later.
8776         * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
8777         file to pass -rdynamic on darwin12 and later.
8778         * config/darwin.opt (rdynamic): Add.
8780 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
8782         * doc/extend.texi (C Extensions): Update menu for moved Variable
8783         Attributes and Type Attributes sections.
8785 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
8787         PR target/65990
8788         * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
8789         if rep_8byte stringop strategy was specified for 32-bit target.
8791 2015-05-05  Ilya Tocar  <ilya.tocar@intel.com>
8793         PR target/65915
8794         * config/i386/i386.md (vector convert to float spltiter): Check for
8795         xmm16+, when splitting scalar float conversion.
8796         * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
8798 2015-05-05  Nick Clifton  <nickc@redhat.com>
8800         * config/msp430/msp430-opts.h (enum msp430_regions): New.
8801         * config/msp430/msp430.c (msp430_override_options): Complain if
8802         -mcode-region or -mdata-region is used on a non MSP430X.
8803         (msp430_section_attr): New function.  Checks lower, upper and
8804         either attributes.
8805         (msp430_attribute_table): Add lower, upper and either.
8806         (gen_prefix): New function.  Generates a prefix for a section
8807         name.
8808         (msp430_select_section): New function - handles the choice of
8809         section for an object.  Takes into account memory region
8810         attributes and options.
8811         (msp430_function_section): Use gen_prefix.
8812         (TARGET_SECTION_TYPE_FLAGS): Define.
8813         (msp430_section_type_flags): New function.
8814         (TARGET_ASM_UNIQUE_SECTION): Define.
8815         (msp430_unique_section): New function.
8816         (msp430_output_aligned_decl_common): New function.
8817         (msp430_do_not_relax_short_jumps): New function.
8818         * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
8819         Define.
8820         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
8821         * config/msp430/msp430-protos.h
8822         (msp430_do_not_relax_short_jumps): New prototype.
8823         (msp430_output_aligned_decl_common): New prototype.
8824         * config/msp430/msp430.md (length): New attribute.
8825         (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
8826         then use a long code sequence for short jumps.
8827         * config/msp430/msp430.opt (mcode-region): New.
8828         (mdata-region): New.
8829         * doc/invoke.texi: Document new options.
8830         * doc/extend.texi: Document new attributes.
8832 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
8834         * gcc/config/aarch64-protos.h (struct cpu_branch_cost): New.
8835         (tune_params): Add field branch_costs.
8836         (aarch64_branch_cost): Declare.
8837         * gcc/config/aarch64.c (generic_branch_cost): New.
8838         (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
8839         (cortexa53_tunings): Likewise.
8840         (cortexa57_tunings): Likewise.
8841         (thunderx_tunings): Likewise.
8842         (xgene1_tunings): Likewise.
8843         (aarch64_branch_cost): Define.
8844         * gcc/config/aarch64/aarch64.h (BRANCH_COST): Redefine.
8846 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
8848         * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
8849         and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
8850         * config/i386/i386.md: Ditto.
8851         * config/i386/winnt.c: Ditto.
8853 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
8855         * doc/extend.texi (__atomic Builtins): Move implementation details
8856         to the end of the description, rewrite opening paragraphs, state
8857         difference with __sync builtins, state C11/C++11 assumptions,
8858         weaken itemized descriptions, add explanation of memory model
8859         behaviour, expand description of compare-exchange, simplify text.
8861 2015-05-05  Renlin Li  <renlin.li@arm.com>
8863         * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
8865 2015-05-05  Yvan Roux  <yvan.roux@linaro.org>
8867         * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
8868         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
8869         * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
8870         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
8871         * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
8872         * configure: Regenerate.
8873         * configure.ac: Add --enable-fix-cortex-a53-843419 option.
8874         * doc/install.texi (aarch64*-*-*): Document new
8875         --enable-fix-cortex-a53-843419 option.
8876         * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
8877         and -mno-fix-cortex-a53-843419 options.
8879 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
8881         PR target/65871
8882         * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
8884 2015-05-04  Jan Hubicka  <hubicka@ucw.cz>
8886         * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
8887         fix overactive TYPE_MIN_VALUE check and add FIXME for type
8888         compatibility problems.
8890 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
8892         * config/microblaze/microblaze.md (cbranchsi4): Added immediate
8893         constraints.
8894         (cbranchsi4_reg): New.
8895         * config/microblaze/microblaze.c
8896         (microblaze_expand_conditional_branch_reg): New.
8897         * config/microblaze/microblaze-protos.h
8898         (microblaze_expand_conditional_branch_reg): New prototype.
8900 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
8902         * config/microblaze/microblaze.md (peephole2): New.
8904 2015-05-04  Jeff Law  <law@redhat.com>
8906         Revert:
8907         2015-05-04  Jeff Law  <law@redhat.com>
8909         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
8910         simplifier to narrow arithmetic.
8911         * generic-match-head.c: (types_match, single_use): New functions.
8912         * gimple-match-head.c: (types_match, single_use): New functions.
8914 2015-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
8916         PR target/65987
8917         * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
8918         (split_branches): Likewise.
8920 2015-05-04  Sandra Loosemore  <sandra@codesourcery.com>
8922         * common.opt (fdelete-null-pointer-checks): Init to -1.
8923         * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
8924         override flag_delete_null_pointer_checks default.
8925         * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
8926         behavior re address zero.  Better document target-specific behavior.
8927         (-fisolate-errneous-paths-dereference): Mention relationship to
8928         -fdelete-null-pointer-checks.
8930 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
8932         PR tree-optimization/65984
8933         * ubsan.c: Include tree-cfg.h.
8934         (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
8935         stmt_could_throw_p test, rename can_throw variable to ends_bb.
8937 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
8939         * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
8940         to CONST_DOUBLE_P predicate.
8941         (standard_sse_constant_p): Return 0 for !TARGET_SSE.
8942         (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
8943         allow only operands that satisfy standard_sse_constant_p predicate.
8944         * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
8945         to CONST_DOUBLE_P predicate.
8947 2015-05-04  Jeff Law  <law@redhat.com>
8949         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
8950         simplifier to narrow arithmetic.
8951         * generic-match-head.c: (types_match, single_use): New functions.
8952         * gimple-match-head.c: (types_match, single_use): New functions.
8954 2015-05-04  Andreas Tobler  <andreast@gcc.gnu.org>
8956         * config/arm/arm.c: Restore bootstrap.
8958 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
8960         * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
8961         * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
8962         as CONST_WIDE_INT, not CONST_DOUBLE.
8963         (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
8964         (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
8965         (ix86_find_base_term): Do not check for CONST_DOUBLE.
8966         (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
8967         (ix86_build_signbit_mask): Rewrite using wide ints.
8968         (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
8969         (ix86_rtx_costs): Handle CONST_WIDE_INT.
8970         (find_constant): Ditto.
8971         * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
8972         using gen_int_mode.
8973         * config/i386/predicates.md (x86_64_immediate_operand)
8974         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
8975         (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
8976         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
8977         (const0_operand): Also match const_wide_int.
8978         (constm1_operand): Ditto.
8979         (const1_operand): Ditto.
8981 2015-05-04  Richard Biener  <rguenther@suse.de>
8983         PR tree-optimization/65965
8984         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
8985         store groups at gaps.
8987 2015-05-04  Richard Biener  <rguenther@suse.de>
8989         PR tree-optimization/65935
8990         * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
8991         then make sure to apply that swapping to the IL.
8993 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
8995         * Makefile.in (PATCHLEVEL_c): New variable.
8996         (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
8997         expand the same way as if DEVPHASE_c was non-empty.
8999 2015-05-04  Kai Tietz  <ktietz@redhat.com>
9001         PR target/65559
9002         * lto-wrapper.c (run_gcc): Open filename
9003         in binary-mode.
9005 2015-05-03  Sandra Loosemore  <sandra@codesourcery.com>
9007         * doc/extend.texi (Variable Attributes, Type Attributes):  Move
9008         sections up in file, to immediately after the Function Attributes
9009         section.
9011 2015-05-02  Jan Hubicka  <hubicka@ucw.cz>
9013         * tree.c (verify_type): Check various uses of TYPE_MINVAL.
9015 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9017         * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
9018         (insert_partition_copy_on_edge): Adjust.
9019         (insert_rtx_to_part_on_edge): Likewise.
9020         (insert_part_to_rtx_on_edge): Likewise.
9022 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9024         * function.c (set_return_jump_label): Change type of argument to
9025         rtx_insn *.
9026         * function.h (set_return_jump_label): Adjust.
9028 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9030         * reload.h (struct reg_equivs_t): Change type of init to
9031         rtx_insn *.
9032         * ira.c (fix_reg_equiv_init): Adjust.
9033         * reload1.c (eliminate_regs_1): Likewise.
9034         (init_eliminable_invariants): Likewise.
9036 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9038         * cselib.c (fp_setter_insn): Take a rtx_insn *.
9039         * cselib.h (fp_setter_insn): Adjust.
9041 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9043         * recog.c (struct validate_replace_src_data): Change type of
9044         insn field to rtx_insn *.
9045         (validate_replace_src_group): Change type of argument to rtx_insn *.
9046         * recog.h (validate_replace_src_group): Adjust.
9048 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9050         * haifa-sched.c: Change the type of some variables to rtx_insn *.
9051         * sched-deps.c: Likewise.
9052         * sched-int.h: Likewise.
9053         * sched-rgn.c: Likewise.
9054         * sel-sched.c: Likewise.
9056 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9058         to rtx_insn *.
9059         * config/i386/i386.c: Change the type of some arguments to
9060         rtx_insn *.
9061         * config/arm/arm.c: Likewise.
9063 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9065         * lra-constraints.c: Change type of some arguments to rtx_insn *.
9067 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9069         * regcprop.c (kill_autoinc_value): Change type of argument to
9070         rtx_insn *.
9072 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9074         * genrecog.c (print_subroutine): Adjust.
9075         * recog.c (get_bool_attr_mask_uncached): Likewise.
9076         * recog.h (struct recog_data_d): Change the type of insn to
9077         rtx_insn *.
9079 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9081         * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
9083 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9085         * df-problems.c (df_set_note): Change type of argument to
9086         rtx_insn *.
9088 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9090         * builtins.c (expand_builtin_trap): Change type of local
9091         variable to rtx_insn *.
9092         (add_sched_insns_for_speculation): Likewise.
9093         (ix86_emit_save_regs): Likewise.
9094         (get_scratch_register_on_entry): Likewise.
9095         (ix86_emit_restore_reg_using_pop): Likewise.
9096         (ix86_emit_leave): Likewise.
9097         (ix86_emit_restore_regs_using_mov): Likewise.
9098         (ix86_expand_epilogue): Likewise.
9099         Likewise.
9100         (rl78_alloc_physical_registers_umul): Likewise.
9101         * cselib.c (discard_useless_locs): Likewise.
9102         (cselib_invalidate_regno): Likewise.
9103         (cselib_invalidate_mem): Likewise.
9104         * function.c (expand_function_start): Likewise.
9105         (emit_use_return_register_into_block): Likewise.
9106         * gcse.c: Likewise.
9107         * haifa-sched.c (ok_for_early_queue_removal): Likewise.
9108         * ifcvt.c (noce_get_alt_condition): Likewise.
9109         * loop-doloop.c (doloop_condition_get): Likewise.
9110         * lra-constraints.c (inherit_in_ebb): Likewise.
9111         * modulo-sched.c (sms_schedule_by_order): Likewise.
9112         * recog.c (next_insn_tests_no_inequality): Likewise.
9113         * reorg.c (emit_delay_sequence): Likewise.
9114         (update_reg_dead_notes): Likewise.
9115         (fix_reg_dead_note): Likewise.
9116         (fill_slots_from_thread): Likewise.
9117         (delete_computation): Likewise.
9119 2015-05-01  Sandra Loosemore  <sandra@codesourcery.com>
9121         * doc/extend.texi (Variable Attributes): Add menu and proper
9122         @nodes to subsections.  Move Microsoft Windows attributes to
9123         their own subsection.
9124         (Type Attributes): Reorganize introduction to remove duplicate
9125         list of attributes.  Add menu and proper @nodes to subsections.
9126         Alphabetize the main table of common attributes.
9128 2015-05-01  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
9130         * match.pd: New simplification patterns.
9131         (x + (x & 1))  -> ((x + 1) & ~1)
9132         (x & ~(x & y)) -> ((x & ~y))
9133         (x | ~(x | y)) -> ((x | ~y))
9135 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9137         * target.def (attribute_table): Mention that struct attribute_spec
9138         is defined in tree-core.h rather than tree.h
9139         * doc/tm.texi: Regenerate.
9141 2015-05-01  Richard Sandiford  <richard.sandiford@arm.com>
9143         * genrecog.c (test): Rename to rtx_test.  Update rest of file
9144         accordingly.
9146 2015-05-01  Andreas Schwab  <schwab@linux-m68k.org>
9148         PR translation/65959
9149         * params.h (DEFPARAM): Rename msgid to nocmsgid.
9151 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
9153         * gcc/config/aarch64/aarch64-protos.h (tune_params):
9154         Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
9155         * gcc/config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
9156         Return value depending on target.
9157         (generic_tunings): Initialize new target settings.
9158         (cortexa53_tunings): Likewise.
9159         (cortexa57_tunings): Likewise.
9160         (thunderx_tunings): Likewise.
9161         (xgene1_tunings): Likewise.
9163 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
9165         * gcc/config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
9166         Make Cortex-A53 shift costs more accurate.
9168 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9170         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
9171         UNSIGNED_FLOAT.
9173 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
9175         * gcc/config/aarch64/aarch64.c (aarch64_rtx_costs):
9176         Calculate cost of op0 and op1 in PLUS and MINUS cases.
9178 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9180         * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
9181         Add cost of op0 in the compare-with-fpzero case.
9183 2015-04-30  David Malcolm  <dmalcolm@redhat.com>
9185         * builtins.c (fold_builtin_1): Remove spurious second
9186         semicolon.
9187         * cgraph.h (symtab_node::get_availability): Likewise.
9188         * opts.c (common_handle_option): Remove spurious second semicolon.
9189         * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
9190         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
9192 2015-04-30  Caroline Tice  <cmtice@google.com>
9194         PR gcov-profile/65929
9195         * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
9196         (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
9197         * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
9198         (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
9199         * doc/tm.texi: Regenerate.
9200         * final.c (final_scan_insn):  Use ASM_DECLARE_COLD_FUNCTION_NAME
9201         instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
9202         * varasm.c (assemble_end_function):  Use ASM_DECLARE_COLD_FUNCTION_SIZE
9203         instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
9205 2015-04-30  Marek Polacek  <polacek@redhat.com>
9207         * varasm.c (handle_cache_entry): Fix logic.
9209 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9211         * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
9212         (*extrsi5_insn_uxtw_alt): Likewise.
9213         * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
9214         (aarch64_rtx_costs, IOR case): Use above to properly cost extr
9215         operations.
9217 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9219         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
9220         fabd in ABS case.
9222 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9224         * config/aarch64/aarch64.md
9225         (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
9226         (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
9227         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
9228         appropriately.  Handle alternative EON form.
9230 2015-04-30  Renlin Li  <renlin.li@arm.com>
9232         * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
9233         * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
9235 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
9237         PR ipa/65873
9238         * ipa-inline.c (can_inline_edge_p): It is safe to inline across
9239         -fstrict-aliasing boundaries.
9241 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9243         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
9244         and [SU]MNEGL patterns.
9246 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9248         * config/aarch64/aarch64.c (aarch64_shift_p): New function.
9249         (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
9250         combined arithmetic-shift ops.  Properly handle all shift and extend
9251         operations that can occur in combination with PLUS/MINUS.
9252         Rename maybe_fma to compound_p.
9253         (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
9254         arithmetic and shift operations.
9256 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9258         * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
9259         rather than arith_shift cost when costing ADD/MINUS of an
9260         extended value.
9262 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
9264         PR lto/65948
9265         * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
9266         to itself.
9268 2015-04-30  Richard Sandiford  <richard.sandiford@arm.com>
9270         * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
9271         are for the same position.
9273 2015-04-29  Aditya Kumar  <hiraditya@hotmail.com>
9275         * tree-vectorizer.c (set_uid_loop_bbs): New.  Factored out of
9276         vectorize_loops.
9277         (vectorize_loops): Use it.
9279 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
9281         * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
9282         for aggregate types.
9283         (register_odr_type): Be ready for MAIN_VARIANT of ODR type
9284         type to be non_ODR.
9285         * tree.c (need_assembler_name_p): Compute mangled name for
9286         non-fundamental types and integer types.
9288 2015-04-29  Mikhail Maltsev  <maltsevm@gmail.com>
9290         * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
9291         manual swaps.
9292         * expr.c (expand_expr_real_2): Likewise.
9294 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
9296         * tree.c (build_common_builtin_nodes): Do not build
9297         __builtin_alloca_with_align as equivalent of library alloca.
9299 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
9301         * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
9302         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
9303         bugus variants.
9304         * tree.c: Include print-tree.h and ipa-utils.h
9305         (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
9306         (free_lang_data_in_cgraph): Call verify_type.
9307         (verify_type_variant): New function.
9308         (verify_type): New function.
9309         * tree.h (verify_type): Declare.
9311 2015-04-29  Steve Ellcey  <sellcey@imgtec.com>
9313         * config/mips/mips-cpus.def: (mips4): Change default processor
9314         from PROCESSOR_R8000 to PROCESSOR_R10000.
9316 2015-04-29  Petar Jovanovic  <petar.jovanovic@rt-rk.com>
9318         * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
9319         la/jalr instead of jal.
9321 2015-04-29  Uros Bizjak  <ubizjak@gmail.com>
9323         PR target/65871
9324         * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
9325         (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
9326         (setcc+movzbl peephole2): Check also clobbered reg.
9327         (setcc+andl peephole2): Ditto.
9329 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
9331         PR libgomp/65099
9332         * config/nvptx/mkoffload.c (target_ilp32): New variable.
9333         (main): Set it depending on "-foffload-abi=[...]".
9334         (compile_native, main): Use it to pass "-m32" or "-m64" to the
9335         compiler.
9337 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
9339         PR target/65770
9340         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
9341         vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
9342         Flip lane index back at assembly time for bigendian.
9344 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
9346         * tree.h (OMP_STANDALONE_CLAUSES): New macro.
9347         * gimplify.c (gimplify_omp_workshare): Use it.
9349 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
9351         * Makefile.in (build/genrecog.o): Depend on inchash.h.
9352         (build/genrecog$(build_exeext): Depend on build/hash-table.o and
9353         build/inchash.o
9354         * genrecog.c: Rewrite most of the code except for the third page.
9356 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
9358         * inchash.h, inchash.c: Include bconfig.h for build objects.
9359         * Makefile.in (build/inchash.o): New rule.
9361 2015-04-29  Yvan Roux  <yvan.roux@linaro.org>
9363         PR target/65924
9364         * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
9365         number in type attribute expression.
9367 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
9369         * loop-iv.c (canon_condition): Generalize to all types of integer
9370         constant.
9372 2015-04-29  Bernhard Reuther-Fischer  <aldot@gcc.gnu.org>
9374         * gimple-walk.c: Prune duplicate or unneeded includes.
9375         (walk_gimple_asm): Only call parse_input_constraint or
9376         parse_output_constraint if their findings are used.
9377         Honour parse_input_constraint and parse_output_constraint
9378         result.
9380 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
9382         * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
9384 2015-04-29  Tom de Vries  <tom@codesourcery.com>
9386         PR tree-optimization/65893
9387         * passes.def (pass_all_optimizations): Move pass_stdarg to after
9388         pass_dce.
9390 2015-04-29  Richard Biener  <rguenther@suse.de>
9392         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
9393         compute GROUP_SIZE for basic-block SLP.
9394         * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
9395         take into account gaps.
9396         (vect_get_mask_element): Properly reject references to previous
9397         vectors.
9398         (vect_transform_slp_perm_load): Likewise.
9400 2015-04-29  Christian Bruel  <christian.bruel@st.com>
9402         PR target/64835
9403         * config/i386/i386.c (ix86_default_align): New function.
9404         (ix86_override_options_after_change): Call ix86_default_align.
9405         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
9406         (ix86_override_options_after_change): New function.
9408 2015-04-28  Jeff Law  <law@redhat.com>
9410         * tree-ssa-dom.c (record_equality); Fix comment typos.
9412 2015-04-28  Tom de Vries  <tom@codesourcery.com>
9414         PR tree-optimization/65887
9415         * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
9417 2015-04-28  Sandra Loosemore  <sandra@codesourcery.com>
9419         * doc/extend.texi (Declaring Attributes of Functions): Split into
9420         subsections by target.  Alphabetize the table of common attributes.
9421         Rewrite some of the introductory text to reflect the new structure.
9422         Update some cross-references to point to the new subsections.
9423         (Attribute Syntax): Put paragraph about "__" naming here.  Remove
9424         duplicate copies in the discussion of function, label, and type
9425         attributes.
9427 2015-04-28  Dominique d'Humieres  <dominiq@lps.ens.fr>
9429         PR bootstrap/65910
9430         * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
9432 2015-04-28  Jason Merrill  <jason@redhat.com>
9434         PR c++/65734
9435         * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
9436         (finalize_type_size): Respect TYPE_USER_ALIGN.
9437         (layout_type) [ARRAY_TYPE]: Likewise.
9439 2015-04-28  Yvan Roux  <yvan.roux@linaro.org>
9441         * config/arm/arm.md (*arm_movt): Fix type attribute.
9442         (*cmpsi_shiftsi): Likewise.
9443         (*cmpsi_shiftsi_swp): Likewise.
9444         (*movsicc_insn): Likewise.
9445         (*cond_move): Likewise.
9446         (*if_plus_move): Likewise.
9447         (*if_move_plus): Likewise.
9448         (*if_arith_move): Likewise.
9449         (*if_move_arith): Likewise.
9450         (*if_shift_move): Likewise.
9451         (*if_move_shift): Likewise.
9452         (*arm_movtas_ze): Likewise.
9453         * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
9454         redundancy and type attribute.
9455         (*thumb2_movsi_insn): Fix type attribute.
9456         (*thumb2_addsi_short): Likewise.
9457         (thumb2_addsi3_compare0): Likewise.
9458         (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
9459         attributes accordingly.
9461 2015-04-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
9463         PR other/65911
9464         * function.c (pad_to_arg_alignment): Add parentheses.
9466 2015-04-28  Uros Bizjak  <ubizjak@gmail.com>
9468         * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
9469         libgcc/config/frv/elf-lib.h.
9471 2015-04-28  Tom de Vries  <tom@codesourcery.com>
9473         * tree-call-cdce.c: Fix example in header comment.
9475 2015-04-28  Richard Biener  <rguenther@suse.de>
9477         PR tree-optimization/62283
9478         * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
9479         fails fatally and we are vectorizing a basic-block simply
9480         cause the child to be constructed piecewise.
9481         (vect_analyze_slp_cost_1): Adjust.
9482         (vect_detect_hybrid_slp_stmts): Likewise.
9483         (vect_bb_slp_scalar_cost): Likewise.
9484         (vect_get_constant_vectors): For piecewise constructed
9485         constants place them after the last def.
9486         (vect_get_slp_defs): Adjust.
9487         * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
9488         externals for basic-block vectorization.
9490 2015-04-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
9492         PR target/63503
9493         * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
9494         aarch64-*-*.
9495         * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
9496         * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
9497         (AARCH64_TUNE_FMA_STEERING): Likewise.
9498         * config/aarch64/aarch64-cores.def: Set
9499         AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
9500         FMUL/FMADD instructions.
9501         * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
9502         (aarch64_override_options): Include cortex-a57-fma-steering.h.  Call
9503         aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
9504         * config/aarch64/cortex-a57-fma-steering.h: New file.
9505         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
9507 2015-04-28  Richard Sandiford  <richard.sandiford@arm.com>
9509         * gensupport.c (std_preds): Add missing codes to address_operand entry.
9511 2015-04-28  Richard Biener  <rguenther@suse.de>
9513         PR tree-optimization/65851
9514         * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
9515         changing CONSTANT to CONSTANT non-copy.  Get new_val by reference.
9516         (ccp_lattice_meet): Remove stray argument.  Use operand_equal_p
9517         rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
9518         (ccp_visit_phi_node): Adjust.
9519         (evaluate_stmt): For simplifications to SSA names return its
9520         lattice value if that isn't VARYING.  Return immediately when
9521         simplified to a constant.
9522         (visit_assignment): Adjust.
9523         (ccp_visit_stmt): Likewise.
9525 2015-04-28  Tom de Vries  <tom@codesourcery.com>
9527         PR tree-optimization/65818
9528         * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
9529         evaluated.
9531 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9533         * calls.c (save_fixed_argument_area): Don't check
9534         ARGS_GROW_DOWNWARD with the preprocessor.
9535         (restore_fixed_argument_area): Likewise.
9536         (mem_overlaps_already_clobbered_arg_p): Likewise.
9537         (check_sibcall_argument_overlap): Likewise.
9538         (expand_call): Likewise.
9539         (emit_library_call_value_1): Likewise.
9540         (store_one_arg): Likewise.
9541         * function.c (assign_parms): Likewise.
9542         (locate_and_pad_parm): Likewise.
9543         (pad_to_arg_alignment): Likewise.
9544         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
9546 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9548         * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
9549         * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
9550         * calls.c (save_fixed_argument_area): Don't chekc if
9551         ARGS_GROW_DOWNWARD is defined.
9552         (restore_fixed_argument_area): Likewise.
9553         (mem_overlaps_already_clobbered_arg_p): Likewise.
9554         (check_sibcall_argument_overlap): Likewise.
9555         (expand_call): Likewise.
9556         (emit_library_call_value_1): Likewise.
9557         (store_one_arg): Likewise.
9558         * function.c (assign_parms): Likewise.
9559         (locate_and_pad_parm): Likewise.
9560         (pad_to_arg_alignment): Likewise.
9561         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
9563 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9565         * defaults.h (gen_epilogue): New function.
9566         * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
9567         defined.
9568         * cfgrtl.c (cfg_layout_finalize): Likewise.
9569         * df-scan.c: Likewise.
9570         * function.c (thread_prologue_and_epilogue_insns): Likewise.
9571         (reposition_prologue_and_epilogue_notes): Likewise.
9572         * reorg.c (find_end_label): Likewise.
9573         * toplev.c: Likewise.
9575 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9577         * bb-reorder.c (HAVE_return): Don't check if its undefined.
9578         * defaults.h (gen_simple_return): New function.
9579         (gen_simple_return): Likewise.
9580         (HAVE_return): Add default definition to false.
9581         (HAVE_simple_return): Likewise.
9582         * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
9583         HAVE_return and HAVE_simple_return are defined.
9584         * function.c (gen_return_pattern): Likewise.
9585         (convert_jumps_to_returns): Likewise.
9586         (thread_prologue_and_epilogue_insns): Likewise.
9587         * reorg.c (find_end_label): Likewise.
9588         (dbr_schedule): Likewise.
9589         * shrink-wrap.c: Likewise.
9590         * shrink-wrap.h: Likewise.
9592 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9594         * defaults.h (EPILOGUE_USES): Add default definition of false.
9595         * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
9596         * resource.c (init_resource_info): Likewise.
9598 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9600         * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
9601         to false.
9602         * dwarf2out.c (field_byte_offset): REmove check if
9603         PCC_BITFIELD_TYPE_MATTERS is defined.
9604         * stor-layout.c (layout_decl): Likewise.
9605         (update_alignment_for_field): Likewise.
9606         (place_field): Likewise.
9608 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9610         * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
9611         true.
9612         * regrename.c (check_new_reg_p): Remove check if
9613         HARD_REGNO_RENAME_OK is defined.
9614         * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
9616 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9618         * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
9619         * cse.c (fold_rtx): Likewise.
9620         * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
9621         * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
9622         * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
9623         * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
9624         * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
9625         * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
9626         * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
9627         * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
9628         * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
9629         * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
9630         * Likewise.
9631         * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
9632         * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
9633         * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
9634         * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
9635         * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
9636         * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
9637         * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
9638         * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
9639         * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
9640         * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
9641         * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
9642         * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
9643         * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
9644         * doc/tm.texi: Regenerate.
9645         * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
9646         either true or false.
9648 2015-04-27  Jeff Law  <law@redhat.com>
9650         PR tree-optimization/65217
9651         * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
9652         of them has a single use, make sure it is the LHS of the implied
9653         copy.
9655 2015-04-28  Alan Modra  <amodra@gmail.com>
9657         PR target/65810
9658         * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
9659         (offsettable_ok_by_alignment): Use minimum of decl and toc
9660         pointer alignment.  Replace dead code with assertion.
9661         (use_toc_relative_ref): Add mode arg.  Return false in -mcmodel=medium
9662         case if size exceeds toc pointer alignment.
9663         (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
9664         (rs6000_emit_move): Likewise.
9665         * configure.ac: Add linker toc pointer alignment check.
9666         * configure: Regenerate.
9667         * config.in: Regenerate.
9669 2015-04-27  Yoshinori Sato <ysato@users.sourceforge.jp>
9671         * config.gcc: Add h8300-*-linux.
9672         * config/h8300/linux.h: New.
9673         * config/h8300/t-linux: New.
9674         * config/h8300/h8300.c (h8300_option_override): Normal mode
9675         is not supported for h8300-*-linux.
9676         (h8300_file_start): Target priority change.
9677         (get_shift_alg): Likewise.
9678         (h8300_shift_need_scratch_p): Likewise.
9679         * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
9680         * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
9682 2015-04-27  Caroline Tice  <cmtice@google.com>
9684         * final.c (final_scan_insn):  Output cold_function_name as function
9685         type.
9686         * varasm.c (cold_function_name):  Make global.
9687         (assemble_start_function):  Re-set cold_function_name.
9688         (assemble_end_function): Output cold partition size.
9689         * varasm.h (cold_function_name):  Declare global.
9691 2015-04-27  Ilya Tocar  <ilya.tocar@intel.com>
9693         * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
9694         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
9695         constraint.
9696         (*movxi_internal_avx512f): Ditto.
9697         (define_split): Check for xmm16+, when splitting scalar float_extend.
9698         (*extendsfdf2_mixed): Use "v" constraint.
9699         (define_split): Check for xmm16+, when splitting scalar float_truncate.
9700         (*truncdfsf_fast_sse): Use "v" constraint.
9701         (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
9702         (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
9703         (define_peephole2): Check for xmm16+, when converting scalar
9704         float_truncate.
9705         (define_peephole2): Check for xmm16+, when converting scalar
9706         float_extend.
9707         (*fop_<mode>_comm_mixed): Use "v" constraint.
9708         (*fop_<mode>_comm_sse): Ditto.
9709         (*fop_<mode>_1_mixed): Ditto.
9710         (*sqrt<mode>2_sse): Ditto.
9711         (*ieee_s<ieee_maxmin><mode>3): Ditto.
9713 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9715         * combine.c (simplify_if_then_else): Use std::swap instead
9716         of manually swapping.
9717         (known_cond): Likewise.
9718         (simplify_comparison): Likewise.
9720 2015-04-27  Peter Bergner  <bergner@vnet.ibm.com>
9722         PR target/64579
9723         * config/rs6000/htm.md: Remove all define_expands.
9724         (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
9725         UNSPECV_HTM_TABORTWCI): Remove.
9726         (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
9727         (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
9728         trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
9729         (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
9730         (tabortdc_internal, tabortdci_internal, tabortwc_internal,
9731         tabortwci_internal): Remove define_insns.
9732         (tabort<wd>c, tabort<wd>ci): New define_insns.
9733         (tabort): Use gpc_reg_operand.
9734         (tcheck): Remove operand.
9735         (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
9736         * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
9737         expected value.
9738         * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
9739         (BU_HTM_SPR1): Rename to BU_HTM_V1.  Remove use of RS6000_BTC_SPR.
9740         (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
9741         tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
9742         tsr, ttest): Pass in the RS6000_BTC_CR attribute.
9743         (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
9744         get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
9745         (tcheck): Remove builtin argument.
9746         * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
9747         not TARGET_64BIT.
9748         (htm_expand_builtin): Fix usage of expandedp.  Disallow usage of the
9749         tabortdc and tabortdci builtins when not in 64-bit mode.
9750         Modify code to handle the loss of the HTM define_expands.
9751         Emit code to copy the CR register to TARGET.
9752         (htm_init_builtins): Modify code to handle the loss of the HTM
9753         define_expands.
9754         * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
9755         (RS6000_BTC_64BIT): Likewise.
9756         (RS6000_BTC_CR): New macro.
9757         * doc/extend.texi: Update documentation for htm builtins.
9759 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9761         * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
9762         of manually swapping.
9763         (simplify_associative_operation): Likewise.
9764         (simplify_binary_operation): Likewise.
9765         (simplify_plus_minus): Likewise.
9766         (simplify_relational_operation): Likewise.
9767         (simplify_ternary_operation): Likewise.
9769 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
9771         * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
9772         (xs_hi_nonmemory_operand): Remove error.
9773         * config/stormy16/stormy16.md (movhi, movhi_internal): Use
9774         general_operand rather than xs_hi_general_operand.
9776 2015-04-27  Richard Biener  <rguenther@suse.de>
9778         * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
9779         (record_equivalences_from_stmt): Valueize rhs.
9780         (record_equality): Canonicalize x and y order via
9781         tree_swap_operands_p.  Do not swap operands for same loop depth.
9783 2015-04-27  Georg-Johann Lay  <avr@gjlay.de>
9785         PR target/65296
9786         PR target/65895
9787         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
9788         Add hint how to use own spec file.
9790 2015-04-27  Jakub Jelinek  <jakub@redhat.com>
9792         PR tree-optimization/65875
9793         * tree-vrp.c (update_value_range): If in is_new case setting
9794         old_vr to VR_VARYING, also set new_vr to it.  Remove
9795         old_vr->type == VR_VARYING test.
9796         (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
9797         SSA_PROP_INTERESTING if update_value_range returned true,
9798         but new range is VR_VARYING.
9800 2015-04-27  Thomas Preud'homme  <thomas.preudhomme@arm.com>
9802         * combine.c (sign_extend_short_imm): New.
9803         (set_nonzero_bits_and_sign_copies): Use above new function for sign
9804         extension of src short immediate.
9805         (reg_nonzero_bits_for_combine): Likewise for tem.
9807 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
9809         * stor-layout.c (self_referential_component_ref_p): New predicate.
9810         (copy_self_referential_tree_r): Use it.
9811         (self_referential_size): Punt for simple operations directly involving
9812         self-referential component references.
9813         * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
9815 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
9817         * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
9819 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
9821         * vec.h (vec): Make splice arguments const.  Update definitions
9822         accordingly.
9824 2015-04-27  Yvan Roux  <yvan.roux@linaro.org>
9826         * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
9827         alternatives.
9829 2015-04-26  Tom de Vries  <tom@codesourcery.com>
9831         PR tree-optimization/65826
9832         * internal-fn.def: Mark VA_ARG with ECF_LEAF.
9834 2015-04-24  Steve Ellcey  <sellcey@imgtec.com>
9836         * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
9837         (*madd3<mode>): Ditto.
9838         (*msub4<mode>): Ditto.
9839         (*msub3<mode>): Ditto.
9840         (*nmadd4<mode>): Ditto.
9841         (*nmadd3<mode>): Ditto.
9842         (*nmadd4<mode>_fastmath): Ditto.
9843         (*nmadd3<mode>_fastmath): Ditto.
9844         (*nmsub4<mode>): Ditto.
9845         (*nmsub3<mode>): Ditto.
9846         (*nmsub4<mode>_fastmath): Ditto.
9847         (*nmsub3<mode>_fastmath): Ditto.
9849 2015-04-24  Jason Merrill  <jason@redhat.com>
9851         PR c++/50800
9852         * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
9853         down when building TYPE_CANONICAL.
9854         (build_pointer_type_for_mode): Likewise.
9856 2015-04-24  Chen Gang  <gang.chen.5i5j@gmail.com>
9858         * genrecog.c (validate_pattern): Check matching constraint refers
9859         to a lower numbered operand.
9861 2015-04-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
9863         PR target/65849
9864         * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
9865         save to independent variables use the Save attribute.  This will
9866         allow these options to be modified with the #pragma/attribute
9867         target support.
9868         (-mallow-movmisalign): Likewise.
9869         (-mallow-df-permute): Likewise.
9870         (-msched-groups): Likewise.
9871         (-malways-hint): Likewise.
9872         (-malign-branch-targets): Likewise.
9873         (-mvectorize-builtins): Likewise.
9874         (-msave-toc-indirect): Likewise.
9876         * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
9877         can be set via the #pragma/attribute target support.
9878         (rs6000_opt_vars): Likewise.
9879         (rs6000_inner_target_options): If VSX was set, also set
9880         -mno-avoid-indexed-addresses.
9882 2015-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9884         * config/arm/iterators.md (shiftable_ops): Rename to...
9885         (SHIFTABLE_OPS): ... This.  Update use in comments.
9886         (ior_xor): Rename to...
9887         (IOR_XOR): ... This.
9888         (vqh_ops): Rename to...
9889         (VQH_OPS): ... This.
9890         (vqhs_ops): Rename to...
9891         (VQHS_OPS): ... This.
9892         (rshifts): Rename to...
9893         (RSHIFTS): ... This.
9894         (returns): Rename to...
9895         (RETURNS): ... This.
9896         * config/arm/arm.md: Update uses of the above.
9897         * config/arm/neon.md: Likewise.
9899 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9901         * config.host (case ${host}): Add aarch64*-*-linux case.
9902         * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
9903         fields to all the cores.
9904         * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
9905         Add MCPU_MTUNE_NATIVE_SPECS.
9906         * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
9907         field to all extensions.
9908         * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
9909         * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
9910         Adjust definition of AARCH64_OPT_EXTENSION.
9911         * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
9912         (MCPU_MTUNE_NATIVE_SPECS): Define.
9913         * config/aarch64/driver-aarch64.c: New file.
9914         * config/aarch64/x-arch64: New file.
9915         * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
9916         -mtune and -march.
9918 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
9919             Wei Mi  <wmi@google.com>
9921         * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
9922         * config/i386/i386.c (extract_base_offset_in_addr): New function.
9923         (ix86_operands_ok_for_move_multiple): Ditto.
9924         * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
9925         (movlpd/movhpd to movupd peephole2): Ditto.
9927 2015-04-24  Marek Polacek  <polacek@redhat.com>
9929         PR c/61534
9930         * input.h (from_macro_expansion_at): Define.
9932         PR c/63357
9933         * doc/invoke.texi: Update description of -Wlogical-op.
9935 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
9937         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
9938         ternary operator in fprintf and harmonize spacing.
9940 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
9942         * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
9943         Mark operand1 commutative.
9945 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
9947         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
9948         input operands in memory.
9949         (*vec_concatv2si_sse4_1): Ditto.
9950         (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
9951         (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
9952         register_operand.
9953         (vec_extract_hi_v32hi): Ditto.
9954         (vec_extract_hi_v64hi): Ditto.
9955         (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
9957 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
9958             Steven Bosscher <steven@gcc.gnu.org>
9960         PR rtl-optimization/34503
9961         * cprop.c (cprop_reg_p): New.
9962         (hash_scan_set): Use above function to check if register can be
9963         propagated.
9964         (find_avail_set): Return up to two sets, one whose source is a
9965         register and one whose source is a constant.  Sets are returned in an
9966         array passed as parameter rather than as a return value.
9967         (cprop_insn): Use a do while loop rather than a goto.  Try each of the
9968         sets returned by find_avail_set, starting with the one whose source is
9969         a constant. Use cprop_reg_p to check if register can be propagated.
9970         (do_local_cprop): Use cprop_reg_p to check if register can be
9971         propagated.
9972         (implicit_set_cond_p): Likewise.
9974 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
9976         * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
9977         (sem_function::equals): IGNORED_NODES parameter is now unused;
9978         update call of equals_private.
9979         (sem_function::equals_private): Do not call equals_wpa; skip
9980         gimple body matching if there is no body.
9981         (sem_function::init): Add logic to hash tthunk info.
9982         (sem_function::parse): Also parse thunks.
9983         * ipa-icf.h (equals_private): Update declaration.
9985 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9987         * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
9988         asterisk from name so this can be generated directly.
9989         (*altivec_stvx_<mode>_internal): Likewise.
9990         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
9991         that this is never called during or after reload/lra.
9992         (rs6000_frame_related): Remove split_reg
9993         argument and logic that references it.
9994         (emit_frame_save): Remove last parameter from call to
9995         rs6000_frame_related.
9996         (rs6000_emit_prologue): Remove last parameter from eight calls to
9997         rs6000_frame_related.  Force generation of stvx instruction for
9998         Altivec register saves.  Remove split_reg handling, which is no
9999         longer needed.
10000         (rs6000_emit_epilogue):  Force generation of lvx instruction for
10001         Altivec register restores.
10003 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10005         * config/rs6000/rs6000.opt (mcrypto): Change option description to
10006         match category changes in ISA 2.07B.
10008 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10010         * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
10011         iterators.
10012         (cmp_op, cmp_type): New code attributes.
10013         (NEON_VCMP, NEON_VACMP): New int iterators.
10014         (cmp_op_unsp): New int attribute.
10015         * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
10016         (neon_vceq<mode>): Delete.
10017         (neon_vc<cmp_op><mode>_insn): New pattern.
10018         (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
10019         (neon_vcgeu<mode>): Delete.
10020         (neon_vcle<mode>): Likewise.
10021         (neon_vclt<mode>: Likewise.
10022         (neon_vcage<mode>): Likewise.
10023         (neon_vcagt<mode>): Likewise.
10024         (neon_vca<cmp_op><mode>): New define_expand.
10025         (neon_vca<cmp_op><mode>_insn): New pattern.
10026         (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
10028 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
10030         * tree.h (attribute_value_equal): Declare.
10031         * tree.c (attribute_value_equal): Export.
10033 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
10035         * ipa-icf.c (sem_item::compare_attributes): New function.
10036         (sem_item::compare_referenced_symbol_properties): Compare variable
10037         attributes.
10038         (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
10039         (sem_function::param_used_p): New function.
10040         (sem_function::equals_wpa): Fix attribute comparsion; match
10041         parameter type codes; do not compare paremter flags when
10042         they are not used; compare edge flags; compare indirect calls.
10043         (sem_item::update_hash_by_addr_refs): Hash reference type.
10044         (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
10045         (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
10046         reference use type.
10047         (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
10048         * ipa-icf.h (compare_attributes, param_used_p): Declare.
10050 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
10052         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
10053         cleanup.
10054         (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
10055         DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
10056         (sem_item::compare_referenced_symbol_properties): New.
10057         (sem_item::hash_referenced_symbol_properties): New.
10058         (sem_item::compare_cgraph_references): Rename to ...
10059         (sem_item::compare_symbol_references): ... this one; use
10060         compare_referenced_symbol_properties.
10061         (sem_function::equals_wpa): Do not compare
10062         DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
10063         DECL_IS_OPERATOR_NEW; compare pointer sizes.
10064         (sem_item::update_hash_by_addr_refs): Call
10065         hash_referenced_symbol_properties.
10066         (sem_item::update_hash_by_local_refs): Cleanup.
10067         (sem_function::merge): Do not mix up symbol properties.
10068         (sem_variable::equals_wpa): Use compare_symbol_references.
10069         * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
10070         (sem_item::hash_referenced_symbol_properties): New.
10071         (sem_item::compare_symbol_references): New.
10072         (sem_item::compare_cgraph_references): Remove.
10074 2015-04-23  Kwok Cheung Yeung  <kcy@codesourcery.com>
10076         PR target/26702
10077         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
10078         Emit size of local.
10080 2015-04-23  Nick Clifton  <nickc@redhat.com>
10082         * config/rl78/rl78.c (rl78_preferred_reload_class): Add
10083         ATTRIBUTE_UNUSED to x parameter.
10084         * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
10086 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10088         * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
10089         TARGET_CRYPTO to TARGET_P8_VECTOR>
10090         (crypto_vpermxor_<mode>): Likewise.
10091         * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
10092         (BU_CRYPTO_3A): Likewise.
10093         (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
10094         (BU_CRYPTO_OVERLOAD_3A): New #define.
10095         (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
10096         (VPMSUMH): Likewise.
10097         (VPMSUMW): Likewise.
10098         (VPMSUMD): Likewise.
10099         (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
10100         (VPERMXOR_V4SI): Likewise.
10101         (VPERMXOR_V8HI): Likewise.
10102         (VPERMXOR_V16QI): Likewise.
10103         (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
10104         BU_CRYPTO_OVERLOAD_2A.
10105         (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
10106         BU_CRYPTO_OVERLOAD_3A.
10107         * config/rs6000/rs6000.opt (mcrypto): Change description of
10108         option.
10110 2015-04-23  Richard Biener  <rguenther@suse.de>
10112         * passes.def: Remove copy propagation passes run directly after CCP.
10113         * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
10114         SSA names.
10115         (ccp_visit_phi_node): Rework to handle first executable edge
10116         specially.
10118 2015-04-23  Matthew Wahab  <matthew.wahab@arm.com>
10120         * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
10121         (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
10122         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
10123         * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
10124         (thumb_legimitimize_reload_address): Remove.
10125         * config/arm/arm-protos.h (arm_legimitimize_reload_address):
10126         Remove.
10127         (thumb_legimitimize_reload_address): Remove.
10129 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10131         * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
10133 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10135         * config/arm/arm.md (load_multiple): Reject operand 2 greater than
10136         MAX_LDM_STM_OPS.
10137         (store_multiple): Likewise.
10139 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10141         * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
10142         * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
10143         arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
10144         arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
10145         arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
10146         arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
10147         arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
10148         Specify issue_rate value.
10149         (arm_issue_rate): Look up issue rate from tuning structs. Remove
10150         large switch statement.
10151         (arm_marvell_pj4_tune): New struct.
10152         * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
10153         struct.
10155 2015-04-23  Richard Biener  <rguenther@suse.de>
10157         * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
10158         (vect_find_last_store_in_slp_instance): Rename to ...
10159         (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
10160         (vect_analyze_slp_cost_1): Use vector_load for constant defs
10161         and vec_construct for external defs when estimating prologue cost.
10162         (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
10163         Compute costs here only when vectorizing loops.
10164         (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
10165         have been determined.
10166         (vect_schedule_slp_instance): Simplify vectorized code placement
10167         and prepare for in-BB external defs.
10168         * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
10169         (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
10170         * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
10171         guard.
10172         (vect_model_load_cost): Likewise.
10173         (vectorizable_store): Instead add it here.
10174         (vectorizable_load): Likewise.
10175         (vect_is_simple_use): Dump def type textually.
10177 2015-04-23  Richard Biener  <rguenther@suse.de>
10179         * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
10180         * cfgloop.c (verify_loop_structure): Verify the root loop node.
10181         * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
10182         instead of get_eh_region_from_lp_number.
10183         * loop-init.c (fix_loop_structure): If we removed a loop, reset
10184         the SCEV cache.
10186 2015-04-23  Anton Blanchard  <anton@samba.org>
10188         * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
10189         need for -mprofile-kernel to save LR to stack.
10191 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10193         * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
10194         adjustments.
10195         (insn_is_swappable_p): Return 1 for a convert from double to
10196         single precision when all of its uses are splats of BE element
10197         zero.
10199 2015-04-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
10201         * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
10203 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10205         PR target/65456
10206         * config/rs6000/rs6000.c (rs6000_option_override_internal):  For
10207         VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
10208         TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
10209         option.
10210         (rs6000_builtin_mask_for_load): Return 0 for targets with
10211         efficient unaligned VSX accesses so that the vectorizer will use
10212         direct unaligned loads.
10213         (rs6000_builtin_support_vector_misalignment): Always return true
10214         for targets with efficient unaligned VSX accesses.
10215         (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
10216         stores on targets with efficient unaligned VSX accesses is almost
10217         always the same as the cost of an aligned load or store, so model
10218         it that way.
10219         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
10220         unaligned vectors if we have efficient unaligned VSX accesses.
10221         * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
10222         undocumented option.
10224 2015-04-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10226         Revert:
10227         2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
10229         * config.gcc (LIBC_MUSL): New tm_defines macro.
10230         * config/linux.h (OPTION_MUSL): Define.
10231         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
10232         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
10233         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
10235         * config/linux.opt (mmusl): New option.
10236         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
10237         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
10239         * configure: Regenerate.
10241 2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
10243         * config.gcc (LIBC_MUSL): New tm_defines macro.
10244         * config/linux.h (OPTION_MUSL): Define.
10245         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
10246         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
10247         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
10249         * config/linux.opt (mmusl): New option.
10250         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
10251         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
10253         * configure: Regenerate.
10255 2015-04-22  Yury Gribov  <y.gribov@samsung.com>
10257         * doc/invoke.texi (-fsanitize-sections): Update description.
10258         * asan.c (set_sanitized_sections): Parse incoming arg.
10259         (section_sanitized_p): Support wildcards.
10261 2015-04-22  Tom de Vries  <tom@codesourcery.com>
10263         PR tree-optimization/65823
10264         * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
10265         equality between ap_copy and ap.
10267 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
10269         PR target/47098
10270         * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
10272 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
10274         PR target/47122
10275         * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
10277 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
10279         PR target/55144
10280         * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
10281         remove already contained t-files.
10283 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
10285         * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
10286         Remove unneeded forward declarations.
10287         (suitable_for_tail_call_opt_p): Commentary typo fix.
10289 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
10291         * varasm.c (emit_bss): Remove redundant guard.
10293 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
10295         * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
10297 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
10299         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
10301 2015-04-22  Hale Wang  <hale.wang@arm.com>
10302             Terry Guo  <terry.guo@arm.com>
10304         PR rtl-optimization/64818
10305         * combine.c (can_combine_p): Don't combine user-specified
10306         register if it is in an asm input.
10308 2015-04-21  Jan Hubicka  <hubicka@ucw.cz>
10310         PR ipa/65076
10311         * passes.def (early_optimizations): Add pass_dse.
10313 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10315         * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
10316         * reorg.c (redundant_insn): Remove ifdef
10317         INSN_REFERENCES_ARE_DELAYED.
10318         * resource.c (mark_referenced_resources): Likewise.
10320 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10322         * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
10323         * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
10324         * resource.c (mark_set_resources): Likewise.
10326 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10328         * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
10329         * cfgcleanup.c (flow_find_cross_jump): Likewise.
10330         (flow_find_head_matching_sequence): Likewise.
10331         (try_head_merge_bb): Likewise.
10332         * combine.c (can_combine_p): Likewise.
10333         (try_combine): Likewise.
10334         (distribute_notes): Likewise.
10335         * df-problems.c (can_move_insns_across): Likewise.
10336         * final.c (final): Likewise.
10337         * gcse.c (insert_insn_end_basic_block): Likewise.
10338         * ira.c (find_moveable_pseudos): Likewise.
10339         * reorg.c (try_merge_delay_insns): Likewise.
10340         (fill_simple_delay_slots): Likewise.
10341         (fill_slots_from_thread): Likewise.
10342         * sched-deps.c (sched_analyze_2): Likewise.
10344 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10346         * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
10347         PIC_OFFSET_TABLE_REGNUM.
10349 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10351         * alias.c (init_alias_target): Remove ifdef
10352         * HARD_FRAME_POINTER_IS_FRAME_POINTER.
10353         * df-scan.c (df_insn_refs_collect): Likewise.
10354         (df_get_regular_block_artificial_uses): Likewise.
10355         (df_get_eh_block_artificial_uses): Likewise.
10356         (df_get_entry_block_def_set): Likewise.
10357         (df_get_exit_block_use_set): Likewise.
10358         * emit-rtl.c (gen_rtx_REG): Likewise.
10359         * ira.c (ira_setup_eliminable_regset): Likewise.
10360         * reginfo.c (init_reg_sets_1): Likewise.
10361         * regrename.c (rename_chains): Likewise.
10362         * reload1.c (reload): Likewise.
10363         (eliminate_regs_in_insn): Likewise.
10364         * resource.c (mark_referenced_resources): Likewise.
10365         (init_resource_info): Likewise.
10367 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10369         * defaults.h (MASK_RETURN_ADDR): New definition.
10370         * except.c (expand_builtin_extract_return_addr): Remove ifdef
10371         MASK_RETURN_ADDR.
10373 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10375         * defaults.h (RETURN_ADDR_OFFSET): New definition.
10376         * except.c (expand_builtin_extract_return_addr): Remove ifdef
10377         RETURN_ADDR_OFFSET.
10378         (expand_builtin_frob_return_addr): Likewise.
10380 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10382         * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
10383         (try_redirect_by_replacing_jump): Likewise.
10384         (rtl_tidy_fallthru_edge): Likewise.
10385         * combine.c (insn_a_feeds_b): Likewise.
10386         (find_split_point): Likewise.
10387         (simplify_set): Likewise.
10388         * cprop.c (cprop_jump): Likewise.
10389         * cse.c (cse_extended_basic_block): Likewise.
10390         * df-problems.c (can_move_insns_across): Likewise.
10391         * function.c (emit_use_return_register_into_block): Likewise.
10392         * haifa-sched.c (sched_init): Likewise.
10393         * ira.c (find_moveable_pseudos): Likewise.
10394         * loop-invariant.c (find_invariant_insn): Likewise.
10395         * lra-constraints.c (curr_insn_transform): Likewise.
10396         * postreload.c (reload_combine_recognize_const_pattern):
10397         * Likewise.
10398         * reload.c (find_reloads): Likewise.
10399         * reorg.c (delete_scheduled_jump): Likewise.
10400         (steal_delay_list_from_target): Likewise.
10401         (steal_delay_list_from_fallthrough): Likewise.
10402         (redundant_insn): Likewise.
10403         (fill_simple_delay_slots): Likewise.
10404         (fill_slots_from_thread): Likewise.
10405         (delete_computation): Likewise.
10406         * sched-rgn.c (add_branch_dependences): Likewise.
10408 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10410         * genconfig.c (main): Always define HAVE_cc0.
10411         * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
10412         HAVE_cc0.
10413         * cfgcleanup.c (flow_find_cross_jump): Likewise.
10414         (flow_find_head_matching_sequence): Likewise.
10415         (try_head_merge_bb): Likewise.
10416         * cfgrtl.c (rtl_merge_blocks): Likewise.
10417         (try_redirect_by_replacing_jump): Likewise.
10418         (rtl_tidy_fallthru_edge): Likewise.
10419         * combine.c (do_SUBST_MODE): Likewise.
10420         (insn_a_feeds_b): Likewise.
10421         (combine_instructions): Likewise.
10422         (can_combine_p): Likewise.
10423         (try_combine): Likewise.
10424         (find_split_point): Likewise.
10425         (subst): Likewise.
10426         (simplify_set): Likewise.
10427         (distribute_notes): Likewise.
10428         * cprop.c (cprop_jump): Likewise.
10429         * cse.c (cse_extended_basic_block): Likewise.
10430         * df-problems.c (can_move_insns_across): Likewise.
10431         * final.c (final): Likewise.
10432         (final_scan_insn): Likewise.
10433         * function.c (emit_use_return_register_into_block): Likewise.
10434         * gcse.c (insert_insn_end_basic_block): Likewise.
10435         * haifa-sched.c (sched_init): Likewise.
10436         * ira.c (find_moveable_pseudos): Likewise.
10437         * loop-invariant.c (find_invariant_insn): Likewise.
10438         * lra-constraints.c (curr_insn_transform): Likewise.
10439         * optabs.c (prepare_cmp_insn): Likewise.
10440         * postreload.c (reload_combine_recognize_const_pattern):
10441         * Likewise.
10442         * reload.c (find_reloads): Likewise.
10443         (find_reloads_address_1): Likewise.
10444         * reorg.c (delete_scheduled_jump): Likewise.
10445         (steal_delay_list_from_target): Likewise.
10446         (steal_delay_list_from_fallthrough): Likewise.
10447         (try_merge_delay_insns): Likewise.
10448         (redundant_insn): Likewise.
10449         (fill_simple_delay_slots): Likewise.
10450         (fill_slots_from_thread): Likewise.
10451         (delete_computation): Likewise.
10452         (relax_delay_slots): Likewise.
10453         * sched-deps.c (sched_analyze_2): Likewise.
10454         * sched-rgn.c (add_branch_dependences): Likewise.
10456 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10458         * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
10459         that is trivially ded on non cc0 targets.
10460         (simplify_set): Likewise.
10461         (mark_used_regs_combine): Likewise.
10462         * cse.c (new_basic_block): Likewise.
10463         (fold_rtx): Likewise.
10464         (cse_insn): Likewise.
10465         (cse_extended_basic_block): Likewise.
10466         (set_live_p): Likewise.
10467         * rtlanal.c (canonicalize_condition): Likewise.
10468         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
10470 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10472         * conditions.h: Define macros even if HAVE_cc0 is undefined.
10473         * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
10474         * final.c: Likewise.
10475         * jump.c: Likewise.
10476         * recog.c: Likewise.
10477         * recog.h: Declare functions even when HAVE_cc0 is undefined.
10478         * sched-deps.c (sched_analyze_2): Always compile case for cc0.
10480 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10482         * defaults.h: New definition of EH_RETURN_DATA_REGNO.
10483         * except.c: Remove definition of EH_RETURN_DATA_REGNO.
10484         * builtins.c (expand_builtin): Remove check if
10485         EH_RETURN_DATA_REGNO is defined.
10486         * df-scan.c (df_bb_refs_collect): Likewise.
10487         (df_get_exit_block_use_set): Likewise.
10488         * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
10489         * ira-lives.c (process_bb_node_lives): Likewise.
10490         * lra-lives.c (process_bb_lives): Likewise.
10492 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
10494         * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
10495         FIRST_PSEUDO_REG): New.
10496         * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
10497         (ARG_POINTER_REGNUM): Define to ARGP_REG.
10498         (FRAME_POINTER_REGNUM): Define to FRAME_REG.
10499         (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
10500         (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
10501         (FIRST_INT_REG): New.
10502         (LAST_INT_REG): New.
10503         (FIRST_*_REG): Define using *_REG.
10504         (LAST_*_REG): Ditto.
10505         (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
10506         (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
10507         (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
10509 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10511         * expmed.c: (synth_mult): Only assume overlapping
10512         shift with previous steps in alg_sub_t_m2 case.
10514 2015-04-21  Richard Biener  <rguenther@suse.de>
10516         PR tree-optimization/65650
10517         * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
10518         transitions involving copies.
10519         (set_lattice_value): Adjust for copy lattice state.
10520         (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
10521         if that doesn't dominate the merge point.
10522         (bit_value_unop): Adjust what we treat as varying mask.
10523         (bit_value_binop): Likewise.
10524         (bit_value_assume_aligned): Likewise.
10525         (evaluate_stmt): When we simplified to a SSA name record a copy
10526         instead of dropping to varying.
10527         (visit_assignment): Simplify.
10529         * gimple-match.h (gimple_simplify): Add another callback.
10530         * gimple-fold.c (fold_stmt_1): Adjust caller.
10531         (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
10532         for the 2nd callback.
10533         * gimple-match-head.c (gimple_simplify): Add a callback that is
10534         used to valueize the stmt operands and use it that way.
10536 2015-04-21  Richard Biener  <rguenther@suse.de>
10538         PR tree-optimization/65788
10539         * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
10541 2015-04-21  Richard Biener  <rguenther@suse.de>
10543         * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
10544         vec_construct cost by vec_stmt_cost.
10546 2015-04-21  Richard Biener  <rguenther@suse.de>
10548         * cfghooks.h (create_basic_block): Replace with two overloads
10549         for RTL and GIMPLE.
10550         (split_block): Likewise.
10551         * cfghooks.c (split_block): Rename to ...
10552         (split_block_1): ... this.
10553         (split_block): Add two type-safe overloads for RTL and GIMPLE.
10554         (split_block_after_labels): Call split_block_1.
10555         (create_basic_block): Rename to ...
10556         (create_basic_block_1): ... this.
10557         (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
10558         (create_empty_bb): Call create_basic_block_1.
10559         * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
10560         split_block_after_labels.
10561         * omp-low.c (expand_parallel_call): Likewise.
10562         (expand_omp_target): Likewise.
10563         (simd_clone_adjust): Likewise.
10564         * tree-chkp.c (chkp_get_entry_block): Likewise.
10565         * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
10566         create_basic_block overload.
10567         (cgraph_node::expand_thunk): Likewise.
10568         * tree-cfg.c (make_blocks): Likewise.
10569         (handle_abnormal_edges): Likewise.
10570         * tree-inline.c (copy_bb): Likewise.
10572 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10574         * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
10575         New pattern.
10576         (*xor_one_cmplsidi3_ze): Likewise.
10578 2015-04-21  Thomas Preud'homme  <thomas.preudhomme@arm.com>
10580         * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
10581         use df_remove_problem rather than manually removing problems, leaving
10582         holes in df->problems_in_order[].
10584 2015-04-21  Tom de Vries  <tom@codesourcery.com>
10586         PR tree-optimization/65802
10587         * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
10589 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10591         * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
10592         Increase to 128.
10593         (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
10594         at '.'.  Assert that there's enough space for everything.
10596 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
10598         PR tree-optimization/64950
10599         Revert:
10600         2010-08-02  Uros Bizjak  <ubizjak@gmail.com>
10602         PR target/41089
10603         * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
10604         as volatile.
10606 2015-04-20  Shiva Chen  <shiva0217@gmail.com>
10608         PR rtl-optimization/64916
10609         * cfgcleanup.c (values_equal_p): New function.
10610         (can_replace_by): Use it.
10612 2015-04-20  Paolo Carlini  <paolo.carlini@oracle.com>
10614         PR c++/65801
10615         * doc/invoke.texi ([-Wnarrowing]): Update.
10617 2015-04-20  Jeff Law  <law@redhat.com>
10619         PR tree-optimization/65658
10620         * tree-ssa-threadupdate.c (redirection_block_p): Remove
10621         redundant test for GIMPLE_ASSIGN in last change.
10623 2015-04-20  Uros Bizjak  <ubizjak@gmail.com>
10625         * config/i386/i386.c (set_pic_reg_ever_live): Remove.
10626         (legitimize_pic_address): Do not call set_pic_reg_ever_live.
10627         (legitimize_tls_address): Ditto.
10628         (ix86_expand_move): Ditto.
10629         (ix86_expand_binary_operator): Remove reload_in_progress checks.
10630         (ix86_expand_unary_operator): Ditto.
10631         * config/i386/predicates.md (index_register_operand): Ditto.
10633 2015-04-20  Selim Belbachir  <selim.belbachir@fr.thalesgroup.com>
10635         * reorg.c (try_merge_delay_insns): Improve correctness checking
10636         for targets with multiple delay slots.
10638 2015-04-20  Jeff Law  <law@redhat.com>
10640         PR tree-optimization/65658
10641         * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
10642         statements too.
10644 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
10646         * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
10647         * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
10648         Delete.
10650 2015-04-20  Jakub Jelinek  <jakub@redhat.com>
10652         PR debug/65807
10653         * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
10655 2015-04-20  Richard Biener  <rguenther@suse.de>
10657         * gimple-fold.h (gimple_build): Remove optional valueize arguments.
10658         * gimple-fold.c (gimple_build_valueize): New function.
10659         (gimple_build): Always use gimple_build_valueize as valueize hook.
10661 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
10663         PR target/64134
10664         * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
10665         and overwrite variable parts if <= 1/2 the elements are variable.
10667 2015-04-19  Vladimir Makarov  <vmakarov@redhat.com>
10669         PR rtl-optimization/65805
10670         * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
10671         Don't use difference of offset and previous offset if
10672         update_sp_offset is non-zero.
10673         (eliminate_regs_in_insn): Ditto.
10674         * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
10675         lra_eliminate_regs_1 call.
10676         * lra-constraints.c (get_equiv_with_elimination): Ditto.
10678 2015-04-18  Trevor Saunders  <tsaunders@mozilla.com>
10680         * hash-table.h: Remove version of hash_table that stored value_type *.
10681         * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
10682         config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
10683         config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
10684         dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
10685         gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
10686         hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
10687         ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
10688         loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
10689         reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
10690         tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
10691         tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
10692         tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
10693         tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
10694         tree-ssa-structalias.c, tree-ssa-tail-merge.c,
10695         tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
10696         valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
10698 2015-04-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10699             Jakub Jelinek  <jakub@redhat.com>
10701         PR target/65787
10702         * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
10703         subsequent SH_NONE operand does not overwrite an existing *special
10704         value.
10705         (adjust_extract): Handle case where a vec_extract operation is
10706         wrapped in a PARALLEL.
10708 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
10710         PR target/65780
10711         * config/i386/i386.c (ix86_binds_local_p): Define only if
10712         TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
10714 2015-04-17  Jeff Law  <law@redhat.com>
10716         PR tree-optimization/47679
10717         * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
10718         * tree-ssa-scopedtables.c: New file.
10719         * tree-ssa-scopedtables.h: New file.
10720         * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
10721         (const_and_copies): Change name/type.
10722         (record_const_or_copy): Move into tree-ssa-scopedtables.c
10723         (record_const_or_copy_1): Similarly.
10724         (restore_vars_to_original_value): Similarly.
10725         (pass_dominator::execute): Create and destroy const_and_copies table.
10726         (thread_across_edge): Update passing of const_and_copies.
10727         (record_temporary_equivalence): Use method calls rather than
10728         manipulating const_and_copies directly.
10729         (record_equality, cprop_into_successor_phis): Similarly.
10730         (dom_opt_dom_walker::before_dom_children): Similarly.
10731         (dom_opt_dom_walker::after_dom_children): Similarly.
10732         (eliminate_redundant_computations): Similarly.
10733         * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
10734         (record_temporary_equivalence): Likewise.
10735         (invalidate_equivalences): Likewise.
10736         (record_temporary_equivalences_from_phis): Update due to type
10737         change of const_and_copies.  Use method calls rather than
10738         manipulating the stack directly.
10739         (record_temporary_equivalences_from_stmts_at_dest): Likewise.
10740         (thread_through_normal_block, thread_across_edge): Likewise.
10741         (thread_across_edge): Likewise.
10742         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
10743         * tree-vrp.c: Include tree-ssa-scopedtables.h.  Change type
10744         of equiv_stack.
10745         (identify_jump_threads): Update due to type change of equiv_stack.
10746         (finalize_jump_threads): Delete the equiv_stack when complete.
10748 2015-04-17  Uros Bizjak  <ubizjak@gmail.com>
10750         * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
10751         * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
10752         * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
10754 2015-04-17  Andreas Tobler  <andreast@gcc.gnu.org>
10756         PR target/65535
10757         * config.gcc: Exit with a comment when we do not have a major version
10758         number for the FreeBSD target.
10760 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
10762         PR target/65689
10763         * genpreds.c (struct constraint_data): Add maybe_allows_reg and
10764         maybe_allows_mem bitfields.
10765         (maybe_allows_none_start, maybe_allows_none_end,
10766         maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
10767         maybe_allows_mem_end): New variables.
10768         (compute_maybe_allows): New function.
10769         (add_constraint): Use it to initialize maybe_allows_reg and
10770         maybe_allows_mem fields.
10771         (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
10772         is_address constraints such that those that allow neither mem nor
10773         reg come first, then those that only allow reg but not mem, then
10774         those that only allow mem but not reg, then the rest.
10775         (write_allows_reg_mem_function): New function.
10776         (write_tm_preds_h): Call it.
10777         * stmt.c (parse_output_constraint, parse_input_constraint): Use
10778         the generated insn_extra_constraint_allows_reg_mem function
10779         instead of always setting *allows_reg = true; *allows_mem = true;
10780         for unknown extra constraints.
10782 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
10784         PR target/65780
10785         * output.h (default_binds_local_p_3): New.
10786         * varasm.c (default_binds_local_p_3): Make it public.  Take an
10787         argument to indicate if common symbol may be local.  If common
10788         symbol may be local, treat non-external variable as defined
10789         locally.
10790         (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
10791         (default_binds_local_p_1): Pass false to default_binds_local_p_3.
10792         * config/i386/i386.c (ix86_binds_local_p): New.
10793         (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
10794         ix86_binds_local_p.
10796 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
10798         PR debug/65771
10799         * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
10800         trying mem_loc_descriptor on XEXP (rtl, 0).
10802 2015-04-17  Martin Liska  <mliska@suse.cz>
10804         * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
10805         Release symbol_compare_collection.
10806         * ipa-reference.c: Add TODO that a vector should be released.
10808 2015-04-17  Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
10810         PR target/65296
10811         * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
10812         to new AVR-LibC file layout (bug #44574).
10813         (*avrlibc_devicelib): Same.
10814         * config/avr/avr-mcus.def: Adjust comments.
10815         * config/avr/avr.opt (nodevicelib): Adjust help.
10817 2015-04-17  Alan Lawrence  <alan.lawrence@arm.com>
10819         * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
10821 2015-04-17  Patrick Palka  <ppalka@gcc.gnu.org>
10823         PR c++/64527
10824         * gimplify.c (gimplify_init_constructor): Always emit a
10825         side-effecting constructor.
10827 2015-04-17  Tom de Vries  <tom@codesourcery.com>
10829         PR tree-optimization/64950
10830         * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
10831         in cfun->curr_properties.
10832         (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
10833         if we generate an IFN_VA_ARG.
10834         * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
10835         function if PROP_gimple_lva is not set in src function.
10837 2015-04-17  Tom de Vries  <tom@codesourcery.com>
10838             Michael Matz  <matz@suse.de>
10840         PR tree-optimization/64950
10841         * gimple-iterator.c (update_modified_stmts): Remove static.
10842         * gimple-iterator.h (update_modified_stmts): Declare.
10843         * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
10844         (gimplify_va_arg_internal): New function.
10845         (gimplify_va_arg_expr): Use IFN_VA_ARG.
10846         * gimplify.h (gimplify_va_arg_internal): Declare.
10847         * internal-fn.c (expand_VA_ARG): New unreachable function.
10848         * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
10849         * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
10850         (expand_ifn_va_arg): New function.
10851         (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
10852         (pass_stdarg::execute): Call expand_ifn_va_arg.
10853         (pass_data_lower_vaarg): New pass_data.
10854         (pass_lower_vaarg): New gimple_opt_pass.
10855         (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
10856         (make_pass_lower_vaarg): New function.
10857         * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
10858         properties_required field.
10859         * passes.def (all_passes): Add pass_lower_vaarg.
10860         * tree-pass.h (PROP_gimple_lva): Add define.
10861         (make_pass_lower_vaarg): Declare.
10863 2015-04-17  Tom de Vries  <tom@codesourcery.com>
10865         * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
10866         * calls.c (call_expr_flags): Same.
10868 2015-04-17  Tom de Vries  <tom@codesourcery.com>
10870         * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
10871         (pass_stdarg::execute): ... here.
10873 2015-04-17  Tom de Vries  <tom@codesourcery.com>
10874             Michael Matz  <matz@suse.de>
10876         * tree-cfg.c (make_blocks_1): Factor out of ...
10877         (make_blocks): ... here.
10878         (make_edges_bb): Factor out of ...
10879         (make_edges): ... here.
10880         (gimple_find_sub_bbs): New function.
10881         * tree-cfg.h (gimple_find_sub_bbs): Declare.
10883 2015-04-17  Tom de Vries  <tom@codesourcery.com>
10885         * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
10887 2015-04-17  Yury Gribov  <y.gribov@samsung.com>
10889         * asan.c (set_sanitized_sections): New function.
10890         (section_sanitized_p): Ditto.
10891         (asan_protect_global): Optionally sanitize user-defined
10892         sections.
10893         * asan.h (set_sanitized_sections): Declare new function.
10894         * common.opt (fsanitize-sections): New option.
10895         * doc/invoke.texi (-fsanitize-sections): Document new option.
10896         * opts-global.c (handle_common_deferred_options): Handle new
10897         option.
10899 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
10901         PR debug/65771
10902         * dwarf2out.c (loc_list_from_tree): Return NULL
10903         for DEBUG_EXPR_DECL.
10905 2015-04-17  Christian Bruel  <christian.bruel@st.com>
10907         * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
10908         same attributes.
10910 2015-04-16  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
10912         * ira-color.c (setup_left_conflict_sizes_p): Do not process
10913         node itself when computing left conflict subnode size.
10915 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
10917         * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
10918         * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
10919         *fop_<mode>_1_sse using enabled attribute.  Use
10920         register_mixssei387nonimm_operand operand 1 predicate. Change
10921         alternative 3 constraints from "x" to "v".
10923 2015-04-16  Richard Biener  <rguenther@suse.de>
10925         PR tree-optimization/65774
10926         * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
10927         bit-value tracking on.
10929 2015-04-16  Richard Biener  <rguenther@suse.de>
10931         PR tree-optimization/64277
10932         * tree-vrp.c (check_array_ref): Fix anti-range handling,
10933         simplify upper bound handling.
10934         (search_for_addr_array): Simplify.
10935         (check_array_bounds): Handle ADDR_EXPRs here.
10936         (check_all_array_refs): Simplify.
10938 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
10940         * config/i386/i386.c (print_reg): Rewrite function.
10942 2015-04-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10944         * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
10945         Invert the condition.
10947 2015-04-16  Renlin Li  <renlin.li@arm.com>
10949         * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
10950         simplifications for UNSIGNED_FLOAT.
10952 2015-04-16  Nick Clifton  <nickc@redhat.com>
10954         * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
10955         MUL_UNINIT.
10956         (enum rl78_cpu_type): New.
10957         * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
10958         (umulhi3_shift_virt): Remove m constraint from operand 1.
10959         (umulqihi3_virt): Likewise.
10960         * config/rl78/rl78.c (rl78_option_override): Add code to process
10961         -mcpu and -mmul options.
10962         (rl78_alloc_physical_registers): Add code to handle divhi and
10963         divsi valloc attributes.
10964         (set_origin): Likewise.
10965         * config/rl78/rl78.h (RL78_MUL_G14): Define.
10966         (TARGET_G10, TARGET_G13, TARGET_G14): Define.
10967         (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
10968         __RL78_Gxx__.
10969         (ASM_SPEC): Pass -mcpu on to assembler.
10970         * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
10971         (mulqi3_rl78): Likewise.
10972         (mulhi3_g13): Likewise.
10973         (mulhi3): Generate the G13 or G14 versions of the insn directly.
10974         (mulsi3): Likewise.
10975         (mulhi3_g14): Add clobbers of AX and BC.
10976         (mulsi3_g14): Likewise.
10977         (mulsi3_g13): Likewise.
10978         (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
10979         (udivmodsi4_g14, udivmodsi4_g13): New patterns.
10980         * config/rl78/rl78.opt (mmul): Initialise value to
10981         RL78_MUL_UNINIT.
10982         (mcpu): New option.
10983         (m13, m14, mrl78): New option aliases.
10984         * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
10985         (MULTILIB_DIRNAMES): Add g13 and g14.
10986         * doc/invoke.texi: Document -mcpu and -mmul options.
10988 2015-04-16  Richard Biener  <rguenther@suse.de>
10990         * tree-ssa-ccp.c (likely_value): See if we have operands that
10991         are marked as never simulate again and return CONSTANT in this
10992         case.
10993         * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
10994         not have any operands that will be simulated again as
10995         not being simulated again.
10997 2015-04-15  Uros Bizjak  <ubizjak@gmail.com>
10999         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
11000         Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
11001         (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
11002         attribute.
11003         (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
11004         enabled attribute.
11005         (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
11006         *float<SWI48:mode><MODEF:mode>2_sse.
11007         (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
11008         enabled attribute.
11009         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
11010         enabled attribute.
11012 2015-04-15  Tom de Vries  <tom@codesourcery.com>
11014         PR other/65487
11015         * function.c (push_dummy_function): New function.
11016         (init_dummy_function_start): Use push_dummy_function.
11017         (pop_dummy_function): New function.  Factored out of ...
11018         (expand_dummy_function_end): ... here.
11019         * function.h (push_dummy_function, pop_dummy_function): Declare.
11020         * passes.c (pass_manager::dump_passes): Use push_dummy_function and
11021         pop_dummy_function.
11022         * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
11024 2015-04-15  Jeff Law  <law@redhat.com>
11026         PR tree-optimization/47679
11027         * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
11028         need for forward declaration in upcoming changes.
11029         (record_conditions, record_edge_info): Likewise.
11031         PR rtl-optimization/42522
11032         * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
11033         SIGN_EXTRACT as a whole object rather than simplifying
11034         its operand.
11036 2015-04-15  Jakub Jelinek  <jakub@redhat.com>
11038         PR ipa/65765
11039         * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
11040         and GIMPLE_PREDICT use break instead of return true. For
11041         GIMPLE_EH_DISPATCH, compare dispatch region.
11043 2015-04-14  Matthew Wahab  <matthew.wahab@arm.com>
11045         * doc/extend.texi (__sync Builtins): Simplify some text.  Update
11046         details about the implementation.  Make clear preference for
11047         __atomic builtins.  Reduce possibility of future change.
11049 2015-04-15  Nick Clifton  <nickc@redhat.com>
11051         * config/rx/rx.opt (mallow-string-insns): New option.
11052         * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
11053         builtin if string instructions are denied.
11054         * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
11055         __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
11056         appropriate.
11057         (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
11058         * config/rx/rx.md (movstr): Enable pattern only if string
11059         instructions are allowed.
11060         (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
11061         (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
11062         * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
11063         (MULTILIB_DIRNAMES): Add no-strings.
11064         * doc/invoke.texi: Document -mno-allow-string-insns.
11066 2015-04-15  Alan Modra  <amodra@gmail.com>
11068         PR target/65408
11069         PR target/58744
11070         PR middle-end/36043
11071         * calls.c (load_register_parameters): Don't load past end of
11072         mem unless suitably aligned.
11074 2015-04-15  Nick Clifton  <nickc@redhat.com>
11076         * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
11077         decrement instruction as being frame related.
11078         (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
11079         based addresses.
11080         If zero extending a function address enclose the operation in
11081         %code(...).
11082         (rl78_preferred_reload_class): New function.
11083         (TARGET_PREFERRED_RELOAD_CLASS): Define.
11084         * config/rl78/rl78.md: Remove useless constraints in expanders.
11085         (mulqi3_rl78): Remove + qualifier on input-only operand 1.
11086         (mulhi3_rl78): Likewise.
11087         (mulhi3_g13): Likewise.
11088         (mulsi3_rl78): Likewise.
11089         (es_addr): Move to before the multiply patterns.
11091 2015-04-15  Alan Modra  <amodra@gmail.com>
11093         * function.h (struct emit_status): Delete x_first_insn, x_last_insn
11094         and sequence_stack.  Add seq.
11095         (seq_stack): Delete.
11096         * function.c (prepare_function_start): Don't access x_last_insn.
11097         * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
11098         (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
11099         * emit_rtl.c (start_sequence, push_topmost_sequence,
11100         pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
11101         sequence accessors.
11102         (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
11103         remove_insn): Likewise.  Simplify.
11104         * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
11105         and pop_topmost_sequence.
11106         (m32c_function_needs_enter): Use get_topmost_sequence.  Ignore
11107         debug insns.
11108         * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
11110 2015-04-14  Yvan Roux  <yvan.roux@linaro.org>
11112         PR target/65729
11113         * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
11114         the assertiion.
11116 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
11118         * config/i386/i386.h (LEGACY_INT_REG_P): New define.
11119         (LEGACY_INT_REGNO_P): Ditto.
11120         (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
11121         (ANY_MASK_REG_P): Remove.
11122         (BND_REG_P): Rename from ANY_BND_REG_P.
11123         * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
11124         legacy integer registers.  Do not handle MMX_REG_P in a special way.
11125         Merge 64byte and 32byte SSE handling.
11127 2015-04-14  Nick Clifton  <nickc@redhat.com>
11129         * expr.c (expand_assignment): Force an address offset computation
11130         into a register before changing its mode.
11131         (expand_expr_real_1): Likewise.
11133 2015-04-14  Alan Lawrence  <alan.lawrence@arm.com>
11135         * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
11136         vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
11137         vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
11138         vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
11139         vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
11140         vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
11141         vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
11142         and __aarch64_vget_lane_any.
11144 2015-04-14  Jakub Jelinek  <jakub@redhat.com>
11146         PR rtl-optimization/65761
11147         * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
11148         get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
11150 2015-04-14  Richard Biener  <rguenther@suse.de>
11152         * graphite-scop-detection.c: Do not include cp/cp-tree.h.
11153         (graphite_can_represent_scev): Use POINTER_TYPE_P.
11155 2015-04-14  Richard Biener  <rguenther@suse.de>
11157         PR tree-optimization/65758
11158         * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
11159         against -1.
11160         (ccp_lattice_meet): Likewise.
11161         (bit_value_unop): Likewise.
11162         (bit_value_binop): Likewise.
11163         (bit_value_assume_aligned): Likewise.
11165 2015-04-14  Christian Bruel  <christian.bruel@st.com>
11167         * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
11168         function.
11170 2015-04-14  Marc Glisse  <marc.glisse@inria.fr>
11172         PR tree-optimization/63387
11173         * match.pd ((x unord x) | (y unord y) -> (x unord y),
11174         (x unord x) | (x unord y) -> (x unord y)): New simplifications.
11176 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
11178         * config/i386/predicates.md (any_QIreg_operand): Rename from
11179         q_regs_operand.  Do not process subregs.
11180         (QIreg_operand): Use QI_REGNO_P predicate.
11181         (ext_QIreg_operand): Ditto.
11182         (ext_register_operand): Ditto.
11183         * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
11184         (AND splitters): Ditto.
11185         (AND with -65536 splitter): Add SWI48 mode for operand 0.
11186         (AND with -256 splitter): Use any_QIreg_operand predicate and
11187         SWI248 mode for operand 0.
11188         (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
11189         mode for operand 0.
11190         (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
11192 2015-04-13  Gerald Pfeifer  <gerald@pfeifer.com>
11194         * doc/plugins.texi: Rewrite first introductory paragraph.
11196 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
11198         * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
11199         (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
11201 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
11203         * ipa-profie.c (ipa_profile): Check number of parameters
11204         and possible polymorphic call targets before
11205         devirtualizing.
11207 2015-04-13  Uros Bizjak  <ubizjak@gmail.com>
11209         * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
11210         *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
11212 2015-04-13  Richard Biener  <rguenther@suse.de>
11214         PR tree-optimization/65204
11215         * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
11216         takens for bit-CCP.
11218 2015-04-13  Richard Biener  <rguenther@suse.de>
11220         PR target/65660
11221         * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
11222         and cond_not_taken_branch_cost to 4 and 2.
11223         (bdver2_cost): Likewise.
11224         (bdver3_cost): Likewise.
11225         (bdver4_cost): Likewise.
11227 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
11229         * hash-table.h (hash_table constructor): Add mem stats.
11230         (alloc_entries): Likewise.
11232 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
11234         * ipa-cp.c (ipcp_driver): Relase prev_edge.
11235         * passes.c (execute_one_pass): Only add transform if pass has one.
11237 2015-04-12  Joseph Myers  <joseph@codesourcery.com>
11239         * config/i386/i386.c (ix86_option_override_internal): Don't set
11240         -fprefetch-loop-arrays if optimizing for size.
11242 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
11243             Gerald Pfeifer  <gerald@pfeifer.com>
11245         * doc/contrib.texi (Contributors): Add Martin Jambor and
11246         Michael Matz.
11248 2015-04-12  Jakub Jelinek  <jakub@redhat.com>
11250         * BASE-VER: Set to 6.0.0.
11252         PR tree-optimization/65747
11253         * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
11254         rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
11256 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
11258         * doc/invoke.texi (-Wmemset-transposed-args): Break a long
11259         sentence.  Improve grammar.
11261 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
11263         * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
11265 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
11267         PR ipa/65743
11268         * ipa-inline-transform.c (speculation_removed): Remove static var.
11269         (check_speculations): New function.
11270         (clone_inlined_nodes): Do not check spculations.
11271         (inline_call): Call check_speculations.
11272         * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
11273         consider non-invariants.
11275 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
11276             Martin Liska  <mliska@suse.cz>
11278         PR ipa/65722
11279         * ipa-icf.c (sem_item::compare_cgraph_references): function and
11280         variable can not match.
11281         (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
11282         (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
11284 2015-04-11  Jakub Jelinek  <jakub@redhat.com>
11286         PR tree-optimization/65735
11287         * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
11288         Remove visited_phis argument, add visited_bbs, avoid recursing into the
11289         same bb rather than just into the same phi node.
11290         (thread_through_normal_block): Adjust caller.
11292 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
11294         * doc/contrib.texi (Contributors): Add Ira Rosen.
11296 2015-04-11  Benno Schulenberg  <bensberg@justemail.net>
11298         * gcov.c (find_source): Fix miswording in error message.
11299         * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
11300         (ix86_expand_sse_comi_round): Fix typo in error message.
11302 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
11304         * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
11306 2015-04-10  Gerald Pfeifer  <gerald@pfeifer.com>
11308         * doc/contrib.texi (Contributors): Update Joe Buck's entry.
11310 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
11312         PR target/65710
11313         * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
11314         Print bad_spills_num and insn_pseudos_num.
11316 2015-04-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11318         PR target/65694
11319         * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
11320         when creating +1 values for SImode.
11322 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
11324         PR target/65729
11325         * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
11326         assert.
11328 2015-04-10  Jakub Jelinek  <jakub@redhat.com>
11329             Iain Sandoe  <iain@codesourcery.com>
11331         PR target/65351
11332         * configure: Regenerate.
11334 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
11336         PR target/65671
11337         * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
11339 2015-04-09  Gerald Pfeifer  <gerald@pfeifer.com>
11341         * doc/contrib.texi (Contributors): Add John Marino.
11343 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
11345         PR tree-optimization/65709
11346         * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
11347         TREE_TYPE (TREE_TYPE (t)).
11349 2015-04-09  Vladimir Makarov  <vmakarov@redhat.com>
11351         PR target/65710
11352         * lra-int.h (lra_bad_spill_regno_start): New.
11353         * lra.c (lra_bad_spill_regno_start): New.
11354         (lra): Set up lra_bad_spill_regno_start.  Set up
11355         lra_constraint_new_regno_start unconditionally.
11356         * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
11357         spill preferences.
11359 2015-04-09  Marek Polacek  <polacek@redhat.com>
11360             Jakub Jelinek  <jakub@redhat.com>
11362         PR middle-end/65554
11363         * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
11364         (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
11365         of STRIP_NOPS.
11367 2015-04-09  Segher Boessenkool  <segher@kernel.crashing.org>
11369         PR rtl-optimization/65693
11370         * combine.c (is_parallel_of_n_reg_sets): Move outside of
11371         #ifndef HAVE_cc0.
11373 2015-04-09  Georg-Johann Lay  <avr@gjlay.de>
11375         PR target/65296
11376         * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
11377         device specs file if "device-specs%s" didn't resolve to a path.
11379 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
11381         PR target/65676
11382         * config/i386/i386.c (fixup_modeless_constant): New.
11383         (ix86_expand_args_builtin): Fixup modeless constant operand.
11384         (ix86_expand_round_builtin): Ditto.
11385         (ix86_expand_special_args_builtin): Ditto.
11386         (ix86_expand_builtin): Ditto.
11388 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
11390         PR target/65693
11391         * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
11392         any pow2 integer in between 2 and 0x80000000U inclusive.
11394 2015-04-08  Segher Boessenkool  <segher@kernel.crashing.org>
11396         PR rtl-optimization/65693
11397         * combine.c (is_parallel_of_n_reg_sets): Change first argument
11398         from an rtx_insn * to an rtx.
11399         (try_combine): Adjust both callers.  Use it once more.
11401 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
11403         * tree-chkp.c (chkp_find_const_bounds_var): Remove.
11404         (chkp_make_static_const_bounds): Search existing
11405         symbol by assembler name.  Use make_decl_one_only.
11406         (chkp_get_zero_bounds_var): Remove node search which
11407         is now performed in chkp_make_static_const_bounds.
11408         (chkp_get_none_bounds_var): Likewise.
11410 2015-04-08  Michael Witten  <mfwitten@gmail.com>
11412         * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
11413         to an example.
11415 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
11417         * tree.h (CONVERT_EXPR_P): Commentary typo fix.
11419 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
11421         * doc/extend.texi (__sync Builtins): Fix grammar.
11423 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
11425         * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
11427 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
11429         * varasm.c (emit_local): Move definition of align.
11431 2015-04-08  Julian Brown  <julian@codesourcery.com>
11433         * config/nvptx/mkoffload.c (process): Support variable mapping.
11435 2015-03-27  Trevor Saunders  <tbsaunde@tbsaunde.org>
11437         * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
11438         alpha_links **.
11439         (alpha_write_one_linkage): Correct typo.
11441 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
11443         * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
11445 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
11447         * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
11449 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
11451         * tree-chkp.h (chkp_insert_retbnd_call): New.
11452         * tree-chkp.c (chkp_insert_retbnd_call): New.
11453         * ipa-split.c (insert_bndret_call_after): Remove.
11454         (split_function): Use chkp_insert_retbnd_call.
11455         * cgraphunit.c (cgraph_node::expand_thunk): Build returned
11456         bounds for instrumented functions.
11458 2015-04-07  Jan Hubicka  <hubicka@ucw.cz>
11460         PR ipa/65540
11461         * calls.c (initialize_argument_information): When producing tail
11462         call also turn SSA_NAMES passed by references to original PARM_DECLs
11464 2015-04-07  Vladimir Makarov  <vmakarov@redhat.com>
11466         PR target/65648
11467         * lra-remat.c (do_remat): Process input and non-input insn
11468         registers separately.
11470 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
11472         PR debug/65678
11473         * valtrack.c (debug_lowpart_subreg): New function.
11474         (dead_debug_insert_temp): Use it.
11476         PR middle-end/65680
11477         * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
11478         into signed HOST_WIDE_INT the same as negative bit_offset.
11480 2015-04-07  Ilya Enkovich  <ilya.enkovich@intel.com>
11482         * ipa-comdats.c (ipa_comdats): Visit all thunks
11483         to set proper comdat group.
11485 2015-04-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11487         PR target/65489
11488         * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
11489         on constants for NEON VSTRUCT modes.
11491 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
11492             Iain Sandoe  <iain@codesourcery.com>
11494         PR target/65351
11495         * configure: Regenerate.
11497 2015-04-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
11499         PR target/65614
11500         * config/rs6000/rs6000.c (struct processor_costs): Add cost field
11501         for SF->DF conversions to make FLOAT_EXTEND more expensive, so
11502         that LFD is used to load double constants instead of LFS.  Add
11503         defaults for all costs structures.  Add comments for missing
11504         initialization fields.
11505         (size32_cost): Likewise.
11506         (size64_cost): Likewise.
11507         (rs64a_cost): Likewise.
11508         (mpccore_cost): Likewise.
11509         (ppc403_cost): Likewise.
11510         (ppc405_cost): Likewise.
11511         (ppc440_cost): Likewise.
11512         (ppc476_cost): Likewise.
11513         (ppc601_cost): Likewise.
11514         (ppc603_cost): Likewise.
11515         (ppc604_cost): Likewise.
11516         (ppc604e_cost): Likewise.
11517         (ppc620_cost): Likewise.
11518         (ppc630_cost): Likewise.
11519         (ppccell_cost): Likewise.
11520         (ppc750_cost): Likewise.
11521         (ppc7450_cost): Likewise.
11522         (ppc8540_cost): Likewise.
11523         (ppce300c2c3_cost): Likewise.
11524         (ppce500mc_cost): Likewise.
11525         (ppce500mc64_cost): Likewise.
11526         (ppce5500_cost): Likewise.
11527         (ppce6500_cost): Likewise.
11528         (titan_cost): Likewise.
11529         (power4_cost): Likewise.
11530         (power6_cost): Likewise.
11531         (power7_cost): Likewise.
11532         (power8_cost): Likewise.
11533         (ppca2_cost): Likewise.
11534         (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
11536         * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
11537         instead of XXLOR to copy SFmode to clear out dirty bits created
11538         when SFmode denormals are generated.
11539         (mov<mode>_hardfloat, FMOVE32 case): Likewise.
11540         (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
11542 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
11544         * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
11545         * config/aarch64/aarch64-cores.def (exynos-m1): New core.
11546         * config/aarch64/aarch64-tune.md: Regenerate.
11548 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
11550         * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
11551         * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
11552         * config/arm/arm-cores.def (exynos-m1): New core.
11553         * config/arm/arm-tune.md: Regenerate.
11554         * config/arm/arm-tables.opt: Add entry for "exynos-m1".
11555         * config/arm/bpabi.h: Likewise.
11557 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
11559         * ipa-cp (set_single_call_flag): Remove too
11560         restrictive assert.
11562 2015-04-06  Ilya Verbin  <ilya.verbin@intel.com>
11564         * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
11565         GOMP_offload_unregister from the destructor.
11567 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
11569         * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
11570         flags for instrumentation thunk.
11571         (chkp_produce_thunks): Likewise.
11573 2015-04-05  Martin Liska  <mliska@suse.cz>
11575         PR ipa/65665
11576         * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
11577         has computed data structure.
11578         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
11580 2015-04-04  Jan Hubicka  <hubicka@ucw.cz>
11582         * invoke.texi (inline-unit-growth): Increase growth to 20%
11583         * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
11585 2015-04-04  Vladimir Makarov  <vmakarov@redhat.com>
11587         PR target/65647
11588         * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New.  Add its
11589         value checking.
11590         (lra_rematerialization_iter): New.
11591         * lra.c (lra): Initialize lra_rematerialization_iter.
11592         Stop updating lra_constraint_new_regno_start after switching of
11593         inheritance and rematerialization.
11594         * lra-remat.c (lra_rematerialization_iter): New.
11595         (lra_remat): Add printing pass iteration.  Do rematerialization
11596         only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
11598 2015-04-04  Richard Biener  <rguenther@suse.de>
11600         PR tree-optimization/64909
11601         PR tree-optimization/65660
11602         * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
11603         to take a cost vector for scalar iteration cost.
11604         (vect_get_single_scalar_iteration_cost): Likewise.
11605         * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
11606         Compute the scalar iteration cost into a cost vector.
11607         (vect_get_known_peeling_cost): Use the scalar cost vector to
11608         account for the cost of the peeled iterations.
11609         (vect_estimate_min_profitable_iters): Likewise.
11610         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
11611         Likewise.
11613 2015-04-04  Alan Modra  <amodra@gmail.com>
11615         PR target/65576
11616         PR target/65240
11617         * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
11618         0.0 constant unless TARGET_VSX.
11619         * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
11620         alternative.
11622 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
11624         PR ipa/65654
11625         * ipa-inline-transform.c (inline_call): Skip sanity check to work
11626         around the ICE
11628 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
11630         PR ipa/65655
11631         * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
11632         speculative indirect edges to avoid ordering issue.
11634 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
11636         PR ipa/65076
11637         * ipa-inline.c (edge_badness): Add combined size to the denominator.
11639 2015-04-03  Jakub Jelinek  <jakub@redhat.com>
11641         * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
11642         TYPE_ARTIFICIAL on the .omp_data* types.
11644 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
11646         * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
11647         instrumentation thunks.
11649 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
11651         * config/i386/i386.c (ix86_expand_call): Avoid nested
11652         PARALLEL in returned call value.
11654 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
11656         * lto-cgraph.c (input_cgraph_1): Always link instrumented
11657         assembler name with original one.
11659 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
11661         * config/i386/i386.c (ix86_register_priority): Use AX_REG.
11663 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
11665         Revert parts of r216820.
11666         * config/i386/i386.md (movqi_internal): Correct type calculation
11667         for alternatives 3 and 5.
11669 2015-04-02  Jakub Jelinek  <jakub@redhat.com>
11671         PR preprocessor/61977
11672         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
11673         predefine __vector/__bool/__pixel macros nor context sensitive
11674         macros for CLK_ASM.
11675         * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
11677 2015-04-02  John David Anglin  <danglin@gcc.gnu.org>
11679         * config/pa/pa.c (pa_output_move_double): Directly handle register
11680         indexed memory operand.  Simplify handling of scaled register indexed
11681         memory operands.
11683 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
11685         PR driver/65444
11686         * config/i386/linux-common.h (MPX_SPEC): New.
11687         (CHKP_SPEC): Add MPX_SPEC.
11688         * doc/invoke.texi (-fcheck-pointer-boudns): Document
11689         possible issues with '-z bndplt' support in linker.
11691 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
11693         * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
11694         (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
11695         (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
11696         * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
11697         (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
11699 2015-04-01  Uros Bizjak  <ubizjak@gmail.com>
11701         * config/i386/sync.md (UNSPEC_MOVA): Remove.
11702         (atomic_load<mode>): Change operand 0 predicate to
11703         nonimmediate_operand and fix up the destination when needed.
11704         Use UNSPEC_LDA.
11705         (atomic_loaddi_fpu): Use UNSPEC_LDA.
11706         (atomic_store<mode>): Change operand 1 predicate to
11707         nonimmendate_operand and move the source to register when needed.
11708         Use UNSPEC_STA.
11709         (atomic_store<mode>_1): Use UNSPEC_STA.
11710         (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
11711         Fix moves from memory operand.  Use UNSPEC_STA.
11713 2015-04-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
11715         * expmed.c (strict_volatile_bitfield_p): Check that the access will
11716         not cross a MODESIZE boundary.
11717         (store_bit_field, extract_bit_field): Added assertions in the
11718         strict volatile bitfields code path.
11720 2015-04-01  Max Ostapenko  <m.ostapenko@partner.samsung.com>
11722         PR target/65624
11723         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
11724         Increase args array size by one to avoid buffer overflow.
11726 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
11728         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
11729         split_part.
11730         * ipa-inline.c (edge_badness): Add wrapper penalty.
11731         (sum_callers): Move up.
11732         (inline_small_functions): Set single_caller.
11733         * ipa-inline.h (inline_summary): Add single_caller.
11734         * ipa-split.c (split_function): Set split_part.
11735         (cgraph_node::create_clone): Do not shadow decl; copy split_part.
11736         * cgraph.h (cgraph_node): Add split_part.
11738 2015-03-31  Uros Bizjak  <ubizjak@gmail.com>
11740         PR target/58945
11741         * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
11742         Do not split operands 0 and operands 2 to halfmode.
11743         (atomic_compare_and_swap<mode>): Update for
11744         atomic_compare_and_swap<dwi>_doubleword changes.
11746 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
11748         * tree.c (need_assembler_name_p): Artificial types have no ODR names.
11749         * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
11750         no caching is done.
11752 2015-03-31  Martin Liska  <mliska@suse.cz>
11754         PR ipa/65557
11755         * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
11756         has already filled up function summary.
11757         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
11759 2015-03-31  Richard Biener  <rguenther@suse.de>
11761         * tree-sra.c (create_access_replacement): Drop under-/over-alignment
11762         of types.
11764 2015-03-31  Dominik Vogt  <vogt@linux.vnet.ibm.com>
11766         * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
11767         nested functions.
11768         (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
11769         (s390_asm_output_function_label): Adapt to new signature of
11770         s390_function_num_hotpatch_hw
11771         Optimise the code generating assembler output.
11772         Add comments to assembler file.
11774 2015-03-31  Richard Biener  <rguenther@suse.de>
11776         PR middle-end/65626
11777         * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
11778         of the noreturn call so it is last and cleanup_control_flow_bb
11779         can do the CFG part.
11781 2015-03-31  Ilya Enkovich  <ilya.enkovich@intel.com>
11783         PR target/65531
11784         * ipa-chkp.c (chkp_maybe_create_clone): Don't set
11785         same_comdat_group for external symbols.
11786         * symtab.c (symtab_node::verify_symtab_nodes): Avoid
11787         infinite same_comdat_group traversal loop.
11789 2015-03-31  Jakub Jelinek  <jakub@redhat.com>
11791         PR plugins/61176
11792         * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
11793         automatically to $headers.
11795 2015-03-30  Jakub Jelinek  <jakub@redhat.com>
11797         PR ipa/65610
11798         * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
11799         * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
11800         function.
11801         (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
11802         Use it.
11803         * ipa-prop.c (param_type_may_change_p): Likewise.
11804         * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
11805         (remove_unused_scope_block_p): Add in_ctor_dtor_block
11806         argument.  Before inlining, preserve
11807         inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
11808         with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them.  Adjust
11809         recursive calls.
11810         (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
11812 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
11814         PR ipa/65076
11815         * ipa-inline.c (edge_badness): Base denominator on callee's
11816         grwoth squared.
11818 2015-03-27  Martin Jambor  <mjambor@suse.cz>
11820         PR ipa/65478
11821         * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
11822         (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
11823         * ipa-prop.h (ipa_node_params): New flags node_within_scc and
11824         node_calling_single_call.
11825         * ipa-cp.c (count_callers): New function.
11826         (set_single_call_flag): Likewise.
11827         (initialize_node_lattices): Count callers and set single_flag_call if
11828         necessary.
11829         (incorporate_penalties): New function.
11830         (good_cloning_opportunity_p): Use it, dump new flags.
11831         (propagate_constants_topo): Set node_within_scc flag if appropriate.
11832         * doc/invoke.texi (ipa-cp-recursion-penalty,
11833         ipa-cp-single-call-pentalty): Document.
11835 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
11837         PR ipa/65588
11838         * symtab.c (symtab_node::get_partitioning_class): Register vars
11839         are duplicated.
11840         * varpool.c (symbol_table::output_variables) Do not assemble unefined
11841         decls for non-symbols.
11843 2015-03-27  H.J. Lu  <hongjiu.lu@intel.com>
11845         PR target/65248
11846         * output.h (default_binds_local_p_2): New.
11847         * varasm.c (default_binds_local_p_2): Renamed to ...
11848         (default_binds_local_p_3): This.  Don't return true on protected
11849         data symbol if protected data may be external.
11850         (default_binds_local_p): Use default_binds_local_p_3.
11851         (default_binds_local_p_1): Likewise.
11852         (default_binds_local_p_2): New.
11853         * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
11854         default_binds_local_p_2 if TARGET_MACHO is undefined.
11856 2015-03-27  Jakub Jelinek  <jakub@redhat.com>
11858         PR target/65593
11859         * config/i386/i386.c (legitimize_pic_address): If base
11860         is SYMBOL_REF or LABEL_REF using %rip addressing, force
11861         it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
11863 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
11865         PR target/65531
11866         * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
11867         comdat groups.
11869 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
11871         PR ipa/65600
11872         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
11873         of optimized out indirect call.
11874         (redirect_to_unreachable): Always build symbol table node for
11875         BUILT_IN_UNREACHABLE
11877 2015-03-27  Vladimir Makarov  <vmakarov@redhat.com>
11879         PR target/65407
11880         * ira-costs.c (record_reg_classes): Process all constraint string
11881         containing 0-9.
11883 2015-03-27  Bernd Schmidt  <bernds@codesourcery.com>
11885         * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
11886         memory_operand.
11888         PR target/65052
11889         * config/c6x/constraints.md (S3): New constraint.
11890         * config/c6x/c6x.md (real_jump): Use it.
11892 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
11894         PR middle-end/65595
11895         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
11896         do redirection if the call is not optimized out.
11898 2015-03-27  Ilya Enkovich  <ilya.enkovich@intel.com>
11900         PR target/65495
11901         * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
11902         (fchkp-check-incomplete-type): Add LTO.
11903         (fchkp-zero-input-bounds-for-main): Likewise.
11904         (fchkp-first-field-has-own-bounds): Likewise.
11905         (fchkp-narrow-bounds): Likewise.
11906         (fchkp-narrow-to-innermost-array): Likewise.
11907         (fchkp-use-static-bounds): Likewise.
11908         (fchkp-use-static-const-bounds): Likewise.
11909         (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
11911 2015-03-27  Marek Polacek  <polacek@redhat.com>
11913         * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
11915 2015-03-27  Marek Polacek  <polacek@redhat.com>
11917         PR sanitizer/65583
11918         * ubsan.c (ubsan_create_edge): New function.
11919         (instrument_bool_enum_load): Call it.
11920         (instrument_nonnull_arg): Likewise.
11921         (instrument_nonnull_return): Likewise.
11922         (instrument_object_size): Likewise.
11924 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
11926         * lto-streamer.h (class lto_location_cache): Turn loc_cache into
11927         auto_vec.
11929 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
11931         PR lto/65536
11932         * lto-streamer.h (class lto_location_cache): New.
11933         (struct data_in): Add location_cache.
11934         (lto_input_location): Update prototype.
11935         (stream_input_location_now): New.
11936         * streamer-hooks.h (struct streamer_hooks): Make input_location to take
11937         pointer to location.
11938         (stream_input_location): Update.
11939         * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
11940         (warn_odr): Apply location cache before warning.
11941         (lto_input_location): Update prototype.
11942         * gimple-streamer-in.c (input_phi, input_gimple_stmt):
11943         Use stream_input_location_now.
11944         * lto-streamer-in.c (lto_location_cache::current_cache): New static
11945         variable.
11946         (lto_location_cache::cmp_loc): New function.
11947         (lto_location_cache::apply_location_cache): New function.
11948         (lto_location_cache::accept_location_cache): New function.
11949         (lto_location_cache::revert_location_cache): New function.
11950         (lto_location_cache::input_location): New function.
11951         (lto_input_location): Do location caching.
11952         (stream_input_location_now): New function.
11953         (input_eh_region, input_struct_function_base): Use
11954         stream_input_location_now.
11955         (lto_data_in_create): use new.
11956         (lto_data_in_delete): Use delete.
11957         * tree-streamer-in.c (unpack_ts_block_value_fields,
11958         unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
11959         lto_input_ts_exp_tree_pointers): Update for cached location api.
11961 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
11963         PR ipa/65076
11964         * passes.def: Add pass_nothrow.
11965         * ipa-pure-const.c: (pass_data_nothrow): New.
11966         (pass_nothrow): New.
11967         (pass_nothrow::execute): New.
11968         (make_pass_nothrow): New.
11969         * tree-pass.h (make_pass_nothrow): Declare.
11971 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
11973         * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
11974         edge to change by speculation resolution or redirection.
11975         (edge_set_predicate): Likewise.
11976         (inline_summary_t::duplicate): Likewise.
11977         (remap_edge_summaries): Likewise.
11979 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
11981         * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
11982         New macros.
11983         (can_inline_edge_p): Relax option matching for always inline functions.
11985 2015-03-26  Uros Bizjak  <ubizjak@gmail.com>
11987         PR target/65561
11988         * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
11989         Check operand 4 and operand 0 for equality.
11990         (avx512f_vextract<shuffletype>32x4_1_maskm):
11991         Check operand 6 and operand 0 for equality.
11992         (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
11993         for equality.
11994         (vec_extract_hi_<mode>_maskm): Ditto.
11996 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
11998         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
11999         dead calls back to live.
12000         (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
12001         cross check to ...
12002         (cgraph_node::verify_node): ... here; verify only callee edges,
12003         not caller.
12004         * cif-code.def (CILK_SPAWN): New code.
12006 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
12008         * ipa-inline-analysis.c (redirect_to_unreachable): New function.
12009         (edge_set_predicate): Use it to mark unreachable edges.
12010         (inline_summary_t::duplicate): Remove unnecesary code.
12011         (remap_edge_summaries): Likewise.
12012         (dump_inline_summary): Report contains_cilk_spawn.
12013         (compute_inline_parameters): Compute contains_cilk_spawn.
12014         (inline_read_section, inline_write_summary): Stream
12015         contains_cilk_spawn.
12016         * ipa-inline.c (can_inline_edge_p): Do not touch
12017         DECL_STRUCT_FUNCTION that may not be available;
12018         use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
12019         remove check for callee_fun->can_throw_non_call_exceptions and
12020         replace it by optimization attribute check; check for flag_exceptions.
12021         * ipa-inline-transform.c (inline_call): Maintain
12022         DECL_FUNCTION_PERSONALITY
12023         * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
12025 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
12027         PR tree-optimization/65551
12028         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
12029         TYPE_PRECISION only for INTEGRAL_TYPE_P types.
12031 2015-03-26  Richard Biener  <rguenther@suse.de>
12033         PR middle-end/65555
12034         * tree-cfg.c (verify_gimple_call): Do not require a call to
12035         have no LHS if it wasn't recognized as control altering yet.
12037 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
12039         PR tree-optimization/64715
12040         * passes.def: Add another instance of pass_object_sizes before ccp1.
12041         * tree-object-size.c (pass_object_sizes::execute): In
12042         first_pass_instance, only handle __bos (, 1) and __bos (, 3)
12043         calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
12044         __bos result and the computed constant.  Remove redundant
12045         checks, obsoleted by gimple_call_builtin_p test.
12047         * var-tracking.c (variable_tracking_main_1): Don't track
12048         variables for targetm.no_register_allocation targets.
12050 2015-03-26  Oleg Endo  <olegendo@gcc.gnu.org>
12052         * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
12053         * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
12055 2015-03-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
12057         PR target/65569
12058         * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
12059         XXLXOR to create 0.0.  On pre-VSX systems make sure the constant
12060         0.0 is correctly setup.
12061         (extenddftf2_internal): Likewise.
12063 2015-03-25  Sebastian Pop  <s.pop@samsung.com>
12065         PR tree-optimization/65177
12066         * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
12067         (bb_in_bbs): New.
12068         (duplicate_seme_region): Renamed duplicate_thread_path.  Redirect all
12069         edges not adjacent on the path to the original code.
12071 2015-03-25  Uros Bizjak  <ubizjak@gmail.com>
12073         PR bootstrap/65537
12074         * doc/install.texi (Building a native compiler): Document new
12075         bootstrap-lto-noplugin configuration.  Mention that bootstrap-lto
12076         configuration assumes that the host supports the linker plugin.
12078 2015-03-25  Ilya Enkovich  <ilya.enkovich@intel.com>
12080         PR target/65508
12081         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
12082         chain for generated call.
12084 2015-03-25  Richard Biener  <rguenther@suse.de>
12086         * passes.c (pass_manager::execute_early_local_passes): Guard
12087         execution of pass_chkp_instrumentation_passes with
12088         flag_check_pointer_bounds.
12089         (pass_chkp_instrumentation_passes::gate): Likewise.
12091 2015-03-25  Martin Liska  <mliska@suse.cz>
12093         PR tree-optimization/65538
12094         * symbol-summary.h (function_summary::~function_summary):
12095         Relese memory for allocated summaries.
12096         (function_summary::release): New function.
12098 2015-03-25  Jakub Jelinek  <jakub@redhat.com>
12100         PR lto/65515
12101         * lto-streamer-out.c (DFS::worklist): New struct.
12102         (DFS::worklist_vec): New data member.
12103         (DFS::next_dfs_num): Remove.
12104         (DFS::DFS): Rewritten using worklist instead of recursion,
12105         using most of code from DFS::DFS_write_tree.
12106         (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
12107         pass it to DFS_write_tree calls.
12108         (DFS::DFS_write_tree): Remove SINGLE_P argument, after
12109         quick initial checks push it into worklist_vec and return.
12111 2015-03-25  Richard Biener  <rguenther@suse.de>
12113         PR middle-end/65519
12114         * genmatch.c (expr::gen_transform): Re-write to avoid
12115         using gimple_build.
12117 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
12119         * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
12121 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
12123         * config/arm/arm.opt (print_tune_info): New option.
12124         * config/arm/arm.c (arm_print_tune_info): New function.
12125         (arm_file_start): Call arm_print_tune_info.
12126         * config/arm/arm-protos.h (struct tune_params): Add comment.
12127         * doc/invoke.texi (@item -mprint-tune-info): New item.
12128         (-mtune): mention it in ARM Option Summary.
12130 2015-03-25  DJ Delorie  <dj@redhat.com>
12132         * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
12133         correct clause.
12135 2015-03-24  Jan Hubicka  <hubicka@ucw.cz>
12136             Martin Liska  <mliska@suse.cz>
12138         * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
12139         * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
12140         (sem_item::add_type): New function.
12141         (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
12142         (sem_function::compare_polymorphic_p): Do not consider indirect calls.
12143         (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
12144         (sem_function::equals_wpa): Fix typo.
12145         * ipa-icf.h (sem_item::add_type): New function.
12146         (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
12147         order.
12149 2015-03-24  Jakub Jelinek  <jakub@redhat.com>
12151         PR tree-optimization/65533
12152         * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
12153         with swapped operands, call vect_free_slp_tree on
12154         SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
12155         vector.
12157 2015-03-24  Richard Biener  <rguenther@suse.de>
12159         PR middle-end/65517
12160         * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
12161         for fixup if necessary.
12163 2015-03-23  Sandra Loosemore  <sandra@codesourcery.com>
12165         * doc/extend.texi (Function Attributes): Add @cindex entries
12166         for all attributes and regularize their format.  Delete text
12167         about long-obsolete 68HC11 and 68HC12 targets.  Move misplaced
12168         information about "eightbit_data", "tiny_data", and "model"
12169         variable attributes to the Variable Attributes section.  Fix
12170         some obvious typos and copy-editing issues.
12171         (Variable Attributes, Type Attributes): Likewise add/fix
12172         @cindex entries for all attributes.
12174 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
12176         PR target/65523
12177         * tree-chkp.c (chkp_build_returned_bound): Ignore
12178         ERF_RETURNS_ARG calls if they have fewer than needed arguments.
12180 2015-03-23  Oleg Endo  <olegendo@gcc.gnu.org>
12182         PR target/65505
12183         * config/sh/predicates.md (simple_mem_operand,
12184         displacement_mem_operand): Add test for reg.
12185         (short_displacement_mem_operand): Test for displacement_mem_operand
12186         before invoking sh_disp_addr_displacement.
12187         * config/sh/constraints.md (Sdd, Sra): Simplify.
12188         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
12189         Remove redundant displacement_mem_operand tests.
12191 2015-03-23  Georg-Johann Lay  <avr@gjlay.de>
12193         PR target/65296
12194         * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
12195         the same -mmcu=MCU more than once.
12197 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
12199         PR bootstrap/65522
12200         * ipa-devirt.c: Remove duplicate demangle.h include.
12202         PR target/65504
12203         * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
12204         on the pseudo.
12205         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
12206         REG_POINTER on *destptr after adjusting it for prologue size.
12208         PR ipa/65521
12209         * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
12210         ultimate_alias_target ()->order ints instead of
12211         ultimate_alias_target () pointers.
12213 2015-03-23  Richard Biener  <rguenther@suse.de>
12215         PR tree-optimization/65518
12216         * tree-vect-stmts.c (vectorizable_load): Reject single-element
12217         interleaving cases we generate absymal code for.
12219 2015-03-23  Richard Biener  <rguenther@suse.de>
12221         PR tree-optimization/65494
12222         * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
12223         matches here.
12224         (vect_analyze_slp_instance): But do that here, always and once.
12226 2015-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12228         * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
12229         adding T or multiplying by T+1 and subracting T.
12231 2015-03-22  Jeff Law  <law@redhat.com>
12233         PR rtl-optimization/64317
12234         * Makefile.in (OBJS): Add gcse-common.c
12235         * gcse.c: Include gcse-common.h
12236         (struct modify_pair_s): Move structure definition to gcse-common.h
12237         (compute_transp): Move function to gcse-common.c.
12238         (canon_list_insert): Similarly.
12239         (record_last_mem_set_info): Break out some code and put it into
12240         gcse-common.c.  Call into the new common code.
12241         (compute_local_properties): Pass additional arguments to compute_transp.
12242         * postreload-gcse.c: Include gcse-common.h and df.h
12243         (modify_mem_list_set, blocks_with_calls): New variables.
12244         (modify_mem_list, canon_modify_mem_list, transp): Likewise.
12245         (get_bb_avail_insn): Pass in the expression index too.
12246         (alloc_mem): Allocate memory for the new bitmaps and lists.
12247         (free_mem): Free memory for the new bitmaps and lists.
12248         (insert_expr_in_table): Record a bitmap index for each entry we
12249         add to the table.
12250         (record_last_mem_set_info): Call into common code in gcse-common.c.
12251         (get_bb_avail_insn): If no available insn was found in the requested
12252         BB.  If BB has a single predecessor, see if the expression is
12253         transparent in BB and available in that single predecessor.
12254         (compute_expr_transp): New wrapper for compute_transp.
12255         (eliminate_partially_redundant_load): Pass expression's bitmap_index
12256         to get_bb_avail_insn.  Compute next_pred_bb_end a bit later.
12257         (gcse_after_reload_main): If there are elements in the hash table,
12258         then compute transparency for all the elements in the hash table.
12259         * gcse-common.h: New file.
12260         * gcse-common.c: New file.
12262 2015-03-22  Sandra Loosemore  <sandra@codesourcery.com>
12264         * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
12265         as an adjective.
12266         (System Headers): Likewise.
12267         (Ifdef): Likewise.
12268         (Traditional macros): Likewise.
12269         (Invocation): Likewise.
12270         (Option Index): Likewise.
12271         * doc/cppopts.texi (-M): Likewise.
12272         (-finput-charset): Likewise.
12273         (--help): Likewise.
12274         * doc.invoke.texi (AVR Options): Likewise.
12275         (V850 Options): Likewise.
12277 2015-03-22  Jan Hubicka  <hubicka@ucw.cz>
12279         PR ipa/65475
12280         * ipa-devirt.c: Include demangle.h
12281         (odr_type_d): Add field rtti_broken.
12282         (odr_subtypes_equivalent_p): Do not require name to match.
12283         (compare_virtual_tables): Fix typo; if type already has ODR violation,
12284         bypass the tests; be ready for function referneces in vtables that are
12285         not DECL_VIRTUAL; make warnings to be OPT_Wodr.
12286         (warn_odr): Give up for nameless types.
12287         (warn_types_mismatch): Report mismatch in mangled names;
12288         report mismatch in anonymous namespaces; look into component types to
12289         give useful error; report when mismatch is dragged in from other ODR
12290         type.
12291         (odr_types_equivalent_p): Match types for being polymorphic; avoid
12292         duplicated diagnostics.
12293         (add_type_duplicate): Reorder checks so more informative ones come
12294         first; fix typo; do not output "the extra base is defined here" when
12295         we did not warn.
12296         (BINFO_N_BASE_BINFOS): Relax sanity check.
12298 2015-03-22  Martin Liska  <mliska@suse.cz>
12299             Jakub Jelinek  <jakub@redhat.com>
12301         * config/i386/i386.c (def_builtin): Set deferred_isa_values for
12302         masks that can potentially include a builtin.
12303         (ix86_add_new_builtins): Introduce fast filter for isa values
12304         that cannot trigger builtin inclusion.
12306 2015-03-22  Martin Liska  <mliska@suse.cz>
12308         * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
12309         (sem_item::update_hash_by_local_refs): Likewise.
12310         (sem_variable::get_hash): Empty line is fixed.
12311         (sem_item_optimizer::execute): Include adding of hash references.
12312         (sem_item_optimizer::update_hash_by_addr_refs): New function.
12313         (sem_item_optimizer::build_hash_based_classes): Use local hash.
12314         * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
12315         (sem_item::update_hash_by_local_refs): Likewise.
12317 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
12319         PR ipa/65502
12320         * ipa-comdats.c (enqueue_references): Walk through thunks.
12321         (ipa_comdats): Likewise.
12322         (set_comdat_group_1): New function.
12324 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
12326         PR ipa/65475
12327         * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
12328         non-polymorphic
12330 2015-03-22  Dave Korn  <dave.korn.cygwin@gmail.com>
12331             Gerald Pfeifer  <gerald@pfeifer.com>
12333         * doc/contrib.texi (Contributors): Update entry for Danny Smith.
12335 2015-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
12336             Sandra Loosemore  <sandra@codesourcery.com>
12338         * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
12339         function parameter declaration.
12340         * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
12341         Update arguments to nios2_adjust_call_address().
12342         (sibcall_internal): Rename from *sibcall.
12343         (sibcall_value_internal): Rename from *sibcall_value.
12344         * config/nios2/nios2.c (nios2_emit_add_constant): New function.
12345         (nios2_large_got_address): Add target temp reg parameter.
12346         (nios2_got_address): Adjust call to nios2_large_got_address, add
12347         force_reg around it.
12348         (nios2_load_pic_address): Add target temp reg parameter, replace call
12349         to nios2_got_address with corresponding code.
12350         (nios2_legitimize_constant_address): Update call to
12351         nios2_load_pic_address.
12352         (nios2_adjust_call_address): Add temp reg parameter, update PIC case
12353         to use temp reg for PIC loading purposes.
12354         (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
12355         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
12356         (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
12358 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
12360         * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
12361         usage of "the @option{...}".
12362         (-Wopenmp-simd): Likewise.
12363         (-fsanitize-recover): Likewise.
12364         (-fsanitize-undefined-trap-on-error): Likewise.
12365         (-flto): Likewise.
12366         (tracer-dynamic-coverage-feedback): Likewise.
12367         (reorder-block-duplicate-feedback): Likewise.
12368         (loop-unroll-jam-size): Likewise.
12369         (-B): Likewise.
12370         (-I-): Likewise.
12371         (-mabs=legacy): Likewise.
12372         (-mupper-regs-df): Likewise.
12373         (-mupper-regs-sf): Likewise.
12374         (-mpointers-to-nested-functions): Likewise.
12376 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
12378         * doc/extend.texi (Cilk Plus Builtins): Add markup.
12380 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
12382         * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
12383         additional index entries and cross-references.
12384         (-fchkp-check-incomplete-type): Likewise.
12385         (-fchkp-first-field-has-own-bounds): Likewise.
12386         (-fchkp-narrow-to-innermost-array): Likewise.
12387         (-fchkp-use-fast-string-functions): Likewise.
12388         (-fchkp-use-nochk-string-functions): Likewise.
12389         (-fchkp-use-static-const-bounds): Likewise.
12390         (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
12391         (-fchkp-instrument-marked-only): Likewise.
12392         (-fchkp-use-wrappers): Likewise.
12393         (-static-libmpx): Likewise.
12394         (-static-libmpxwrappers): Likewise.
12395         * doc/extend.texi (bnd_legacy): Likewise.
12396         (bnd_instrument): Likewise.
12397         (bnd_variable_size): Likewise.
12398         (Pointer Bounds Checker builtins): Likewise.
12400 2015-03-21  Tom de Vries  <tom@codesourcery.com>
12402         PR tree-optimization/65458
12403         * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
12404         * cgraph.h (cgraph_node): Add parallelized_function field.
12405         * lto-cgraph.c (lto_output_node): Write parallelized_function field.
12406         (input_overwrite_node): Read parallelized_function field.
12407         * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
12408         parallelized_function on cgraph_node for child_fn.
12409         * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
12410         Remove include of gt-tree-parloops.h.
12411         (parallelized_functions): Remove static variable.
12412         (parallelized_function_p): Rewrite using parallelized_function field of
12413         cgraph_node.
12414         (create_loop_fn): Remove adding to parallelized_functions.
12415         * Makefile.in (GTFILES): Remove tree-parloops.c
12417 2015-03-20  Vladimir Makarov  <vmakarov@redhat.com>
12419         PR rtl-optimization/64366
12420         * lra.c (lra_update_insn_regno_info): Consider regs in
12421         CALL_INSN_FUNCTION_USAGE memory.
12423 2015-03-20  Richard Biener  <rguenther@suse.de>
12425         PR middle-end/64715
12426         * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
12427         for type comparison and gcc_checking_assert.
12428         (chrec_fold_plus_poly_poly): Likewise.
12429         (chrec_fold_multiply_poly_poly): Likewise.
12430         (chrec_convert_1): Likewise.
12431         * gimplify.c (gimplify_expr): Remove premature folding of
12432         &X + CST to &MEM[&X, CST].
12434 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
12436         * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
12437         already is final.
12438         (ipa_inline): Recompute inline_failed codes.
12439         * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
12440         USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
12441         CIF_FINAL_ERROR.
12443 2015-03-20  Uros Bizjak  <ubizjak@gmail.com>
12445         PR rtl-optimization/60851
12446         * recog.c (constrain_operands): Accept a pseudo register before reload
12447         for LRA enabled targets.
12449 2015-03-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
12451         PR target/65240
12452         * config/rs6000/predicates.md (easy_fp_constant): Remove special
12453         -ffast-math handling that kept non-0 constants live in the RTL
12454         until reload.  Remove logic testing the number of instructions it
12455         took to create a constant in a GPR that was never used, due to a
12456         test for soft-float earlier.
12457         (memory_fp_constant): Delete, no longer used.
12459         * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
12460         alternatives for loading non-0 constants into GPRs for hard
12461         floating point that is no longer needed due to changes in
12462         easy_fp_constant.  Add support for loading 0.0 into GPRs.
12463         (mov<mode>_hardfloat32): Likewise.
12464         (mov<mode>_hardfloat64): Likewise.
12465         (mov<mode>_64bit_dm): Likewise.
12466         (movtd_64bit_nodm): Likewise.
12467         (pre-reload move FP constant define_split): Delete define_split,
12468         since it is no longer used.
12469         (extenddftf2_internal): Remove GHF constraints that are not valid
12470         for extenddftf2.
12472 2015-03-19  Vladimir Makarov  <vmakarov@redhat.com>
12474         PR rtl-optimization/63491
12475         * lra-constraints.c (check_and_process_move): Use src instead of
12476         sreg.  Remove some dead code.
12478 2015-03-19  Jan Hubicka  <hubicka@ucw.cz>
12480         PR ipa/65380
12481         * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
12482         (sem_variable::merge): Likewise.
12484 2015-03-19  Martin Liska  <mliska@suse.cz>
12486         PR ipa/65465
12487         * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
12488         all fields of cgraph_thunk_info.
12490 2015-03-19  Ilya Enkovich  <ilya.enkovich@intel.com>
12492         * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
12493         clone instrumented thunks.
12495 2015-03-19  Richard Biener  <rguenther@suse.de>
12497         Revert
12498         2015-03-10  Richard Biener  <rguenther@suse.de>
12500         PR middle-end/63155
12501         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
12502         * tree-ssa-coalesce.c: Include timevar.h.
12503         (attempt_coalesce): Handle graph being NULL.
12504         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
12505         Split out abnormal coalescing to ...
12506         (perform_abnormal_coalescing): ... this function.
12507         (coalesce_ssa_name): Perform abnormal coalescing without computing
12508         live/conflict.
12509         (verify_ssa_coalescing_worker): New function.
12510         (verify_ssa_coalescing): Likewise.
12512 2015-03-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
12513             Jakub Jelinek  <jakub@redhat.com>
12515         PR sanitizer/65400
12516         * tsan.c (instrument_gimple): Clear tail call flag on
12517         calls.
12519 2015-03-19  Jakub Jelinek  <jakub@redhat.com>
12521         PR sanitizer/65400
12522         * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
12523         call in the return bb.
12524         (find_split_points): Add RETURN_BB argument, don't call
12525         find_return_bb.
12526         (split_function): Likewise.  Add ADD_TSAN_FUNC_EXIT argument,
12527         if true append TSAN_FUNC_EXIT internal call after the call to
12528         the split off function.
12529         (execute_split_functions): Call find_return_bb here.
12530         Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
12531         Adjust find_split_points and split_function calls.
12533 2015-03-18  DJ Delorie  <dj@redhat.com>
12535         * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
12536         (iorqi3_virt): Likewise.
12538 2015-03-18  Tom de Vries  <tom@codesourcery.com>
12540         * tree-parloops.c (parallelize_loops): Make static.
12541         * tree-parloops.h (parallelize_loops): Remove extern declaration.
12543 2015-03-18  Andrew Stubbs  <ams@codesourcery.com>
12545         PR middle-end/64491
12546         Revert:
12547         2014-11-20  Andrew Stubbs  <ams@codesourcery.com>
12549         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
12550         condition would be removed due to undefined behaviour.
12552 2015-03-18  Martin Liska  <mliska@suse.cz>
12554         PR ipa/65432
12555         * cgraph.c (cgraph_node::get_create): Remove unnecessary
12556         xstrdup_for_dump wrapper.
12557         * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
12558         sem_item::name.
12559         (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
12560         with xstrdup_for_dump.
12561         (sem_variable::equals): Likewise.
12562         (sem_item_optimizer::read_section): Use symtab_node::name instead of
12563         sem_item::name.
12564         (sem_item_optimizer::parse_funcs_and_vars): Likewise.
12565         (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
12566         symtab_node::asm_name with xstrdup_for_dump.
12567         (congruence_class::dump): Use symtab_node::name instead of
12568         sem_item::name.
12569         * ipa-icf.h (symtab_node::name): Remove.
12570         (symtab_node::asm_name): Likewise.
12572 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
12574         PR tree-optimization/65450
12575         * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
12576         function.
12577         (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
12578         it instead of duplicate_ssa_name_ptr_info.
12580         PR target/65222
12581         * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
12583 2015-03-18  Richard Biener  <rguenther@suse.de>
12585         * tree-data-ref.h (struct access_matrix): Remove.
12586         (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
12587         AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
12588         AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
12589         (am_vector_index_for_loop): Likewise.
12590         (struct data_reference): Remove access_matrix member.
12591         (DR_ACCESS_MATRIX): Remove.
12592         (lambda_vector_new): Add comment.
12593         (lambda_matrix_new): Use XOBNEWVEC.
12595 2015-03-18  Richard Biener  <rguenther@suse.de>
12597         * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
12598         (pass_ch::execute): Cleanup the CFG only if we did sth.
12599         * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
12601 2015-03-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12603         * expmed.c (synth_mult): Use std::swap instead of manually
12604         swapping algorithms.
12606 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
12608         PR target/65078
12609         * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
12611 2015-03-16  Georg-Johann Lay  <avr@gjlay.de>
12613         PR target/65296
12614         * config/avr/avr.opt (-nodevicelib): New option.
12615         * doc/invoke.texi (AVR Options): Document it.
12616         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
12617         libgcc.a, libc.a, libm.a.
12618         * config/avr/specs.h: Same.
12619         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
12620         which don't (directly) depend on the device.  Print more help.
12621         (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
12622         (*cpp): Don't define __AVR_DEV_LIB_NAME__.
12623         * config/avr/driver-avr.c: Remove -nodevicelib from option list in
12624         case of an error.
12625         (avr_devicespecs_file): Use suffix "%s" instead of absolute path
12626         for specs file name.
12627         * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
12628         * config/avr/avr-mcus.def: Adjust initializers and comments.
12630 2015-03-16  Jan Hubicka  <hubicka@ucw.cz>
12632         * tree-sra.c (ipa_sra_preliminary_function_checks): Use
12633         DECL_ONE_ONLY to check if decl is one only.
12634         * ipa-split.c (consider_split): Limit splitt of one only functions.
12636 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
12638         PR tree-optimization/65427
12639         * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
12640         functions.
12641         (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
12643 2015-03-16  Marek Polacek  <polacek@redhat.com>
12645         * cgraph.h (add_new_static_var): Remove declaration.
12646         * varpool.c (add_new_static_var): Remove function.
12648 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
12650         * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
12651         instead of vec<tree> * with vec_alloc and release for args.
12652         Adjust all users.
12654         PR middle-end/65431
12655         * omp-low.c (delete_omp_context): Only splay_tree_delete
12656         reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
12657         is_gimple_omp_oacc contexts.  Don't look at ctx->outer.
12659 2015-03-16  Max Ostapenko  <m.ostapenko@partner.samsung.com>
12661         PR sanitizer/64820
12662         * cfgexpand.c (align_base): New function.
12663         (alloc_stack_frame_space): Call it.
12664         (expand_stack_vars): Align prev_frame to be sure
12665         data->asan_vec elements aligned properly.
12667 2015-03-16  Eric Botcazou  <ebotcazou@adacore.com>
12669         PR middle-end/65409
12670         * expr.c (store_field): Do not do a direct block copy if the source is
12671         a PARALLEL with BLKmode.
12673 2015-03-16  Tom de Vries  <tom@codesourcery.com>
12675         PR middle-end/65414
12676         Revert:
12677         2015-03-12  Tom de Vries  <tom@codesourcery.com>
12679         PR rtl-optimization/64895
12680         * lra-lives.c (check_pseudos_live_through_calls): Use
12681         actual_call_used_reg_set instead of call_used_reg_set, if available.
12683 2015-03-16  Alan Modra  <amodra@gmail.com>
12685         PR target/63150
12686         * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
12687         Modify Z->r bswapdi splitter to use dest in place of scratch.
12688         In r->Z and Z->r bswapdi splitter rename word_high, word_low
12689         to word1, word2 and rearrange logic to suit.
12690         (bswapdi2_64bit): Remove early clobber on Z->r alternative.
12691         (bswapdi2_ldbrx): Likewise.  Remove '??' on r->r.
12692         (bswapdi2_32bit): Remove early clobber on Z->r alternative.
12693         Add one '?' on r->r.  Modify Z->r splitter to avoid need for
12694         early clobber.
12696 2015-03-14  Jakub Jelinek  <jakub@redhat.com>
12698         PR tree-optimization/65369
12699         * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
12700         Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
12701         (vs - 1) * TYPE_SIZE_UNIT (elem_type).
12703         PR tree-optimization/65418
12704         * tree-ssa-reassoc.c (extract_bit_test_mask): If there
12705         are casts in the first PLUS_EXPR operand, ensure tbias and
12706         *totallowp are in the inner type.
12708         PR rtl-optimization/65401
12709         * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
12710         argument.  If true, adjust_address_nv of x with big-endian
12711         correction for the mode widening to GET_MODE (y).
12712         (make_field_assignment): Don't do MEM mode widening here.
12713         Use MEM_P instead of GET_CODE == MEM.
12715 2015-03-13  Ilya Verbin  <ilya.verbin@intel.com>
12717         * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
12718         the external decls.
12720 2015-03-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12722         PR target/64600
12723         * config/arm/arm.c (arm_gen_constant, AND case): Use
12724         ARM_SIGN_EXTEND when constructing AND mask.
12726 2015-03-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
12728         * graph.c (print_graph_cfg): Make function names visible and append
12729         parenthesis to it.  Also make groups of basic blocks belonging to the
12730         same function visible.
12732 2015-03-12  Richard Biener  <rguenther@suse.de>
12734         PR middle-end/44563
12735         * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
12736         to avoid quadratic behavior with inline expansion splitting blocks.
12737         * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
12738         with the successor if the predecessor will be merged with it.
12739         * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
12740         entry block with its successor.
12742 2015-03-13  Richard Biener  <rguenther@suse.de>
12744         PR middle-end/44563
12745         * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
12746         (cleanup_tree_cfg_1): Do not call it.
12747         (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
12748         (fixup_noreturn_call): Mark the stmt as control altering.
12749         * tree-cfg.c (execute_fixup_cfg): Do not dump the function
12750         here.
12751         (pass_data_fixup_cfg): Produce a dump file.
12752         * tree-ssa-dom.c: Include tree-cfgcleanup.h.
12753         (need_noreturn_fixup): New global.
12754         (pass_dominator::execute): Fixup queued noreturn calls.
12755         (optimize_stmt): Queue calls that became noreturn for fixup.
12756         * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
12757         * tree-ssa-pre.c: Include tree-cfgcleanup.h.
12758         (el_to_fixup): New global.
12759         (eliminate_dom_walker::before_dom_childre): Queue calls that
12760         became noreturn for fixup.
12761         (eliminate): Fixup queued noreturn calls.
12762         * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
12763         (substitute_and_fold_dom_walker): New member stmts_to_fixup.
12764         (substitute_and_fold_dom_walker::before_dom_children): Queue
12765         alls that became noreturn for fixup.
12766         (substitute_and_fold): Fixup queued noreturn calls.
12768 2015-03-12  Jan Hubicka  <hubicka@ucw.cz>
12770         * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
12771         and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
12772         are building; for methods check ODR type of class they belong to if
12773         they may lead to a polymorphic call.
12774         (sem_function::compare_polymorphic_p): Be bit smarter about testing
12775         when function may lead to a polymorphic call.
12776         (sem_function::compare_type_list): Remove.
12777         (sem_variable::equals): Update use of compatible_types_p.
12778         (sem_variable::parse_tree_refs): Remove.
12779         (sem_item_optimizer::filter_removed_items): Do not filter out CXX
12780         cdtor.
12781         * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
12782         matching here.
12783         (func_checker::compatible_polymorphic_types_p): Break out from ...
12784         (unc_checker::compatible_types_p): ... here.
12785         * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
12786         Declare.
12787         (unc_checker::compatible_types_p): Update.
12788         * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
12789         Remove.
12791 2015-03-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12793         PR rtl-optimization/65235
12794         * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
12795         When first element of vec_concat is const_int, calculate its size
12796         using second element.
12798 2015-03-12  Richard Biener  <rguenther@suse.de>
12800         PR middle-end/65270
12801         * fold-const.c (operand_equal_p): Fix ordering of resetting
12802         OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
12804 2015-03-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
12806         * config/s390/s390.c (s390_reorg): Move code to output nops after label
12807         to s390_reorg ().
12808         (s390_asm_output_function_label): Likewise.
12809         * config/s390/s390.c (s390_asm_output_function_label):
12810         Fix function label alignment with -mhtopatch.
12811         * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
12812         UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
12813         ("nop_2_byte"): New define_insn.
12814         ("nop_4_byte"): Likewise.
12815         ("nop_6_byte"): Likewise.
12816         * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
12817         * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
12819 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
12821         PR target/65103
12822         * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
12823         register.
12825 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
12827         PR target/65044
12828         * toplev.c (process_options): Restrict Pointer Bounds Checker
12829         usage with Address Sanitizer.
12831 2015-03-12  Richard Biener  <rguenther@suse.de>
12833         * tree-cfg.c (gimple_split_block): Remove loop finding stmt
12834         to split on.
12835         * omp-low.c (expand_omp_taskreg): Split block before removing
12836         the stmt.
12837         (expand_omp_target): Likewise.
12838         * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
12839         * tree-parloops.c (create_call_for_reduction_1): Pass a proper
12840         stmt to split_block.
12842 2015-03-12  Tom de Vries  <tom@codesourcery.com>
12844         PR rtl-optimization/64895
12845         * lra-lives.c (check_pseudos_live_through_calls): Use
12846         actual_call_used_reg_set instead of call_used_reg_set, if available.
12848 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
12850         * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
12851         (cgraph_node::remove): Likewise.
12852         (cgraph_node::get_untransformed_body): Likewise.
12853         * varpool.c (varpool_node::remove): Likewise.
12854         (varpool_node::get_constructor): Add sanity check.
12856 2015-03-11  Sandra Loosemore  <sandra@codesourcery.com>
12858         * doc/invoke.texi (-fgnu89-inline): Remove discussion about
12859         old GCC versions.
12860         (-fabi-compat-version): Likewise.
12861         (-ffriend-injection): Likewise.
12862         (-Wdeclaration-after-statement): Likewise.
12863         (-fomit-frame-pointer): Likewise.
12864         (-ftree-coalesce-inlined-vars): Likewise.
12865         (-fvisibility=): Likewise.
12866         * doc/extend.texi (Typeof): Likewise.
12867         (Zero Length): Likewise.
12868         (Escaped Newlines): Likewise.
12869         (Compound Literals): Likewise.
12870         (Function Attributes): Likewise.
12871         (Label Attributes): Likewise.
12872         (Type Attributes): Likewise.
12873         (Function Names): Likewise.
12874         (Other Builtins): Likewise.
12875         (Function Specific Option Pragmas): Likewise.
12876         (C++ Interface): Likewise.
12878 2015-03-11  Thomas Schwinge  <thomas@codesourcery.com>
12880         * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
12882 2015-03-11  Marek Polacek  <polacek@redhat.com>
12884         PR tree-optimization/65388
12885         * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
12887 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
12889         PR target/65296
12890         * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
12891         * configure: Regenerate.
12892         * config.in: Regenerate.
12893         * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
12894         [-mn-flash]: Document it.
12895         [__AVR_ARCH__]: Document avrtiny.
12897         * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
12898         (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
12899         (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
12901 2015-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12903         * doc/invoke.texi: Add missing cpu values (z196, zEC12).
12905 2015-03-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
12907         PR target/65242
12908         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
12909         allow reloads of PLUS in floating point/VSX registers.
12911 2015-03-11  Junmo Park  <junmoz.park@samsung.com>
12913         * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
12914         crypto_sha256_fast.
12915         (cortex_a57_crypto_complex): Add crypto_sha256_slow.
12917 2015-03-11  Richard Biener  <rguenther@suse.de>
12919         PR tree-optimization/65310
12920         * tree-sra.c (build_ref_for_offset): Also preserve larger
12921         alignment.
12923 2015-03-11  Marat Zakirov  <m.zakirov@samsung.com>
12925         * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
12927 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
12929         PR target/65368
12930         * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
12931         new define_expand.
12932         (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
12934 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
12936         * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
12937         (sem_function::equals_wpa): ... here.
12939 2015-03-10  Marek Polacek  <polacek@redhat.com>
12940             Jakub Jelinek  <jakub@redhat.com>
12942         PR sanitizer/65367
12943         * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
12944         when only removing the statement.  Handle expanding UBSAN_OBJECT_SIZE
12945         separately.
12947 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
12949         PR target/65286
12950         * config/rs6000/t-linux: For powerpc64* target set
12951         MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
12953 2015-03-10  Richard Biener  <rguenther@suse.de>
12955         PR middle-end/44563
12956         * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
12957         for redirect_all_calls.
12959 2015-03-10  Marek Polacek  <polacek@redhat.com>
12961         * gdbinit.in (pcfun): Define and document.
12963 2015-03-10  Ilya Verbin  <ilya.verbin@intel.com>
12965         * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
12966         of libgomp-plugin.h.
12967         (find_target_compiler): Support a case when the path to gcc is
12968         specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
12969         (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
12970         intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
12971         libgomp-plugin.h.
12972         (main): Use GCC_INSTALL_NAME as target_driver_name.
12973         * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
12974         define.
12975         (mkoffload.o): Remove obsolete include path and defines.
12976         (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
12978 2015-03-10  Richard Biener  <rguenther@suse.de>
12980         PR middle-end/63155
12981         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
12982         * tree-ssa-coalesce.c: Include timevar.h.
12983         (attempt_coalesce): Handle graph being NULL.
12984         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
12985         Split out abnormal coalescing to ...
12986         (perform_abnormal_coalescing): ... this function.
12987         (coalesce_ssa_name): Perform abnormal coalescing without computing
12988         live/conflict.
12989         (verify_ssa_coalescing_worker): New function.
12990         (verify_ssa_coalescing): Likewise.
12992 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
12994         PR target/65296
12995         * config.gcc (extra_options) [avr]: Remove.
12996         (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
12997         (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
12998         (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
13000         * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
13001         (-mmcu=): Add Var and MissingArgError properties.
13002         (-march=): Remove.
13003         * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
13004         * config/avr/t-multilib: Regenerate.
13005         * config/avr/specs.h: New file.
13006         * config/avr/driver-avr.c: New file.
13007         * config/avr/genopt.sh: Remove file.
13008         * config/avr/avr-tables.opt: Remove file.
13009         * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
13010         * config/avr/avr-c.c: Same.
13011         * avr-arch.h: Same.
13012         (avr_current_device): Remove proto.
13013         * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
13014         (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
13015         (EXTRA_SPEC_FUNCTIONS): Define.
13016         (avr_devicespecs_file): New specs function proto.
13017         (DRIVER_SELF_SPECS): Use device-specs-file spec function.
13018         * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
13019         (avr_current_device): Remove definition and usage.
13020         (avr_set_core_architecture): New static function.
13021         (avr_option_override): Use it.
13022         * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
13023         (mcu_name): New static array.
13024         (comparator, avr_archs_str, avr_mcus_str): New static functions.
13025         (avr_inform_devices, avr_inform_core_architectures): New functions.
13026         * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
13027         (avrlibc.h) [WITH_AVRLIBC]: Include.
13028         (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
13029         (print_mcu): Rewrite from scratch.
13030         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
13031         Forward to avr-specific specs defined in device-specs file.
13032         * config/avr/t-avr (driver-avr.o): New rule.
13033         (avr-devices.o): Depend on avr-arch.h.
13034         (avr-mcus): No more depend on avr-tables.opt.
13035         (avr-tables.opt): Remove rule.
13036         (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
13038 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
13040         * c-family/c.opt (fchkp-use-wrappers): New.
13041         * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
13042         (chkp_wrap_function): New.
13043         (chkp_build_instrumented_fndecl): Support wrapped
13044         functions.
13045         * doc/invoke.texi (-fcheck-pointer-bounds): New.
13046         (-fchkp-check-incomplete-type): New.
13047         (-fchkp-first-field-has-own-bounds): New.
13048         (-fchkp-narrow-bounds): New.
13049         (-fchkp-narrow-to-innermost-array): New.
13050         (-fchkp-optimize): New.
13051         (-fchkp-use-fast-string-functions): New.
13052         (-fchkp-use-nochk-string-functions): New.
13053         (-fchkp-use-static-bounds): New.
13054         (-fchkp-use-static-const-bounds): New.
13055         (-fchkp-treat-zero-dynamic-size-as-infinite): New.
13056         (-fchkp-check-read): New.
13057         (-fchkp-check-write): New.
13058         (-fchkp-store-bounds): New.
13059         (-fchkp-instrument-calls): New.
13060         (-fchkp-instrument-marked-only): New.
13061         (-fchkp-use-wrappers): New.
13062         (-static-libmpx): New.
13063         (-static-libmpxwrappers): New.
13065 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
13067         * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
13068         (CHKP_SPEC): Add wrappers library.
13069         * c-family/c.opt (static-libmpxwrappers): New.
13071 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
13073         * config/i386/linux-common.h (LIBMPX_LIBS): New.
13074         (LIBMPX_SPEC): New.
13075         (CHKP_SPEC): New.
13076         * gcc.c (CHKP_SPEC): New.
13077         (LINK_COMMAND_SPEC): Add CHKP_SPEC.
13078         * c-family/c.opt (static-libmpx): New.
13080 2015-03-10  Richard Biener  <rguenther@suse.de>
13082         PR middle-end/44563
13083         * cgraph.h (struct cgraph_edge_hasher): Add hash overload
13084         for compare_type.
13085         * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
13086         (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
13087         (cgraph_add_edge_to_call_site_hash): Likewise.
13088         (cgraph_node::get_edge): Likewise.
13089         (cgraph_edge::set_call_stmt): Likewise.
13090         (cgraph_edge::remove_caller): Likewise.
13092 2015-03-10  Chung-Ju Wu  <jasonwucj@gmail.com>
13094         * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
13095         (callee_saved_gpr_regs_size): ... this.
13096         (callee_saved_regs_first_regno): Rename to ...
13097         (callee_saved_first_gpr_regno): ... this.
13098         (callee_saved_regs_last_regno) Rename to ...
13099         (callee_saved_last_gpr_regno): ... this.
13100         * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
13101         variables.
13102         (nds32_initial_elimination_offset): Likewise.
13103         (nds32_expand_prologue): Likewise.
13104         (nds32_expand_epilogue): Likewise.
13105         (nds32_expand_prologue_v3push): Likewise.
13106         (nds32_expand_epilogue_v3pop): Likewise.
13107         * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
13108         Adjust renamed variables.
13109         (nds32_output_stack_pop): Likewise.
13111 2015-03-10  Thomas Preud'homme  <thomas.preudhomme@arm.com>
13113         * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
13114         code in comment.
13116 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
13118         PR rtl-optimization/65321
13119         * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
13120         than shift mode.
13121         * var-tracking.c (use_narrower_mode): Likewise.
13123 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
13125         PR tree-optimization/65355
13126         * varasm.c (notice_global_symbol): Do not produce RTL.
13127         * symtab.c (symtab_node::can_increase_alignment_p): Check for section
13128         anchor.
13129         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
13130         check for section anchors.
13132 2015-03-10  Alan Modra  <amodra@gmail.com>
13134         PR target/65286
13135         * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
13136         to be single-arch by default.  Set cpu_is_64bit for powerpc64
13137         given --with-cpu=native.
13138         * config/rs6000/t-fprules: Do not set default MULTILIB vars.
13139         * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
13140         and powerpc64le.
13141         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
13142         rs6000_isa_flags rather than TARGET_64BIT.
13144 2015-03-09  Yoshinori Sato  <ysato@users.sourceforge.jp>
13145             Kaz Kojima  <kkojima@gcc.gnu.org>
13147         * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
13149 2015-03-09  Jakub Jelinek  <jakub@redhat.com>
13151         PR lto/65361
13152         * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
13153         on a TREE_BINFO, instead use BINFO_TYPE.
13155 2015-03-09  Richard Biener  <rguenther@suse.de>
13157         PR middle-end/65270
13158         * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
13159         * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
13160         operand set OEP_ADDRESS_OF.  Clear it when recursing to non-bases
13161         of that.  When comparing dereferences compare alignment.
13162         When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
13164 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
13166         * ipa-inline-analysis.c (check_callers): Check
13167         node->can_remove_if_no_direct_calls_and_refs_p.
13168         (growth_likely_positive): Reorganize to call
13169         can_remove_if_no_direct_calls_p later.
13170         * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
13171         will_be_removed_from_program_if_no_direct_calls_p): Add
13172         will_inline parameter.
13173         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
13174         cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
13175         Handle inliner case correctly.
13177 2015-03-09  Thomas Preud'homme  <thomas.preudhomme@arm.com>
13179         PR tree-optimization/63743
13180         * cfgexpand.c (reorder_operands): Also reorder if only second operand
13181         had its definition forwarded by TER.
13183 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
13185         PR lto/65316
13186         * ipa-utils.h (types_odr_comparable): Add strict argument.
13187         * ipa-devirt.c: Fix whitespace;
13188         (odr_hasher): Remove.
13189         (odr_name_hasher, odr_vtable_hasher): New hashers.
13190         (can_be_name_hashed_p): New predicate.
13191         (hash_type_name): remove.
13192         (hash_odr_name): New.
13193         (odr_name_hasher::hash): new.
13194         (can_be_vtable_hashed_p): New.
13195         (hash_odr_vtable): New.
13196         (odr_vtable_hasher::hash): New.
13197         (types_same_for_odr): Add strict parameter.
13198         (types_odr_comparable): Likewise.
13199         (odr_name_hasher::equal): New.
13200         (odr_vtable_hasher::equal): New.
13201         (odr_name_hasher::remove): New.
13202         (odr_hash_type): Change to hash_table<odr_name_hasher>.
13203         (odr_vtable_hash_type): New.
13204         (odr_vtable_hash): New.
13205         (odr_subtypes_equivalent_p): Do strict comparsion.
13206         (add_type_duplicate): Merge type names; cleanup; avoid type
13207         duplicates.
13208         (register_odr_type): Initialize vtable hash.
13209         (build_type_inheritance_graph): Likewise
13210         (get_odr_type): Reorg to use two hashes.
13211         (dump_possible_polymorphic_call_targets): Move sanity check after debug
13212         output.
13213         (ipa_devirt): Dump type_inheritance_graph.
13214         (types_same_for_odr): Add strict mode.
13216 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
13218         PR ipa/65334
13219         * cgraph.h (symtab_node): Add definition_alignment,
13220         can_increase_alignment_p and increase_alignment.
13221         * symtab.c (symtab_node::can_increase_alignment_p,
13222         increase_alignment_1, symtab_node::increase_alignment,
13223         symtab_node::definition_alignment): New.
13224         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
13225         can_increase_alignment_p.
13226         * tree-vectorizer.c (increase_alignment): Use increase_alignment.
13227         * tree-vect-stmts.c (ensure_base_align): Likewise.
13228         * varasm.c (function_section_1): Use definition_alignment.
13229         (assemble_start_function): Likewise.
13230         (emit_local): likewise.
13231         (build_constant_desc): Likewsie.
13232         (output_constant_def_contents): Likewise.
13233         (place_block_symbol): Likewise.
13234         (output_object_block): Likewise.
13236 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
13238         PR ipa/65316
13239         * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
13240         when outputting debug.
13242 2015-03-07  Marek Polacek  <polacek@redhat.com>
13243             Martin Uecker  <uecker@eecs.berkeley.edu>
13245         PR sanitizer/65280
13246         * doc/invoke.texi: Update description of -fsanitize=bounds.
13248 2015-03-06  Wilco Dijkstra  <wilco.dijkstra@arm.com>
13250         * tree-ssa-phiopt.c (neg_replacement): Remove.
13251         (tree_ssa_phiopt_worker): Remove negate optimization.
13253 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
13255         PR ipa/65302
13256         * value-prof.c (gimple_ic): Pure dead eh edges when needed.
13258 2015-03-06  Richard Biener  <rguenther@suse.de>
13260         PR middle-end/64928
13261         * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
13262         and liveout_obstack members.
13263         (calculate_live_on_exit): Remove.
13264         (calculate_live_ranges): Change declaration.
13265         * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
13266         (new_tree_live_info): Adjust.
13267         (calculate_live_ranges): Delete livein when not wanted.
13268         (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
13269         Deal with partly deleted live info.
13270         (loe_visit_block): Remove temporary bitmap by using
13271         bitmap_ior_and_compl_into.
13272         (live_worklist): Adjust accordingly.
13273         (calculate_live_on_exit): Make static.
13274         * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
13275         we do not need livein.
13277 2015-03-06  Jonathan Wakely  <jwakely@redhat.com>
13279         * real.c (real_from_string): Fix typo in assertion.
13281 2015-03-06  Alex Velenko  <alex.velenko@arm.com>
13283         * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
13284         the patch.
13286 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
13288         * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
13290 2015-03-05  Vladimir Makarov  <vmakarov@redhat.com>
13292         PR target/64342
13293         * lra-assigns.c (find_hard_regno_for): Rename to
13294         find_hard_regno_for_1.  Add a new parameter.
13295         (find_hard_regno_for): New function using find_hard_regno_for_1.
13297 2015-03-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
13299         PR rtl-optimization/65067
13300         * expmed.c (store_bit_field, extract_bit_field): Reworked the
13301         strict volatile bitfield handling.
13303 2015-03-05  Martin Liska  <mliska@suse.cz>
13305         PR ipa/65318
13306         * ipa-icf.c (sem_variable::equals): Compare variables types.
13308 2015-03-05  Richard Henderson  <rth@redhat.com>
13310         PR target/65121
13311         * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
13312         correctly check weak symbol binding.
13314 2015-03-05  Steve Ellcey  <sellcey@imgtec.com>
13316         PR middle-end/65315
13317         * cfgexpand.c (expand_stack_vars): Update large_align to maximum
13318         needed alignment.
13320 2015-03-05  Martin Liska  <mliska@suse.cz>
13322         * ipa-inline.c (inline_small_functions): Set default value to
13323         prevent warning during bootstrap.
13324         * tree.h: Add pragma guard that ignores false positives during
13325         bootstrap.
13327 2015-03-05  Richard Biener  <rguenther@suse.de>
13329         PR tree-optimization/65310
13330         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
13331         Properly preserve alignment of the base of the access.
13333 2015-03-05  Richard Biener  <rguenther@suse.de>
13335         PR ipa/65270
13336         * ipa-icf-gimple.c (func_checker::compare_memory_operand):
13337         Compare dependence info.
13339 2015-03-05  Richard Biener  <rguenther@suse.de>
13341         PR middle-end/65233
13342         * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
13343         tree-into-ssa.h.
13344         (walk_ssa_copies): Revert last chage.  Instead do not walk
13345         SSA names registered for SSA update.
13347 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
13349         PR ipa/65270
13350         * ipa-icf.c (sem_item::compare_cgraph_references): Compare
13351         vtable references for their containing type.
13352         (sem_function::equals_wpa): Compare TYPE_RESTRICT
13353         and type attributes.
13355 2015-03-04  Eric Botcazou  <ebotcazou@adacore.com>
13357         * fold-const.c (round_up_loc): Cast divisor to signed on all paths
13358         before negating it.
13359         * stor-layout.c (finalize_record_size): Revert latest change.
13361 2015-03-04  Andreas Tobler  <andreast@gcc.gnu.org>
13363         * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
13365 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
13367         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
13368         for correct comdat handling.
13369         (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
13370         Likewise.
13371         * cgraph.h (call_for_symbol_and_aliases): Fix formating.
13372         (used_from_object_file_p_worker): Remove.
13373         (cgraph_node::only_called_directly_or_alised): Add
13374         used_from_object_file_p.
13375         * ipa-inline-analysis.c (growth_likely_positive): Optimie.
13376         * ipa-inline-transform.c (can_remove_node_now_p_1): Use
13377         can_remove_if_no_direct_calls_and_refs_p.
13379 2015-03-04  Nick Clifton  <nickc@redhat.com>
13381         * config/rl78/rl78.h (enum reg_class): Remove real registers from
13382         General register class.
13383         * config/rl78/rl78-real.md: Replace general register constraints
13384         with real+virtual register constraints.
13386 2015-03-04  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13388         * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
13389         from checking for -mhtm option.
13391 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
13393         * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
13394         (struct ipa_sra_check_caller_data): Add has_thunk field.
13395         (ipa_sra_check_caller): Check for thunk.
13396         (ipa_sra_preliminary_function_checks): Give up on function with
13397         thunks.
13398         (ipa_early_sra): Use call_for_symbol_and_aliases.
13400 2015-03-03  Kaz Kojima  <kkojima@gcc.gnu.org>
13402         PR target/65249
13403         * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
13404         called for __stack_chk_guard symbol.
13406 2015-03-03  DJ Delorie  <dj@redhat.com>
13408         * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
13409         inc/dec.
13410         (*addhi3_real): Likewise.
13411         * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
13412         pattern to match incrementing memory.
13413         * config/rl78/predicates.md (rl78_1_2_operand): New.
13414         * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
13415         it's the same and only mem.
13416         (rl78_alloc_physical_registers_op2): If there's effectively only
13417         one MEM, transcode it into HL.
13418         (rl78_far_p): Reject addresses that aren't legitimate.
13420 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
13422         * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
13423         negating it.
13425         * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
13427 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
13429         Implement call0 ABI for xtensa
13430         * config/xtensa/constraints.md ("a" constraint): Include stack
13431         pointer in case of call0 ABI.
13432         ("q" constraint): Make empty in case of call0 ABI.
13433         ("D" constraint): Include stack pointer in case of call0 ABI.
13434         * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
13435         xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
13436         prototypes.
13437         * config/xtensa/xtensa.c (xtensa_callee_save_size): New
13438         variable.
13439         (xtensa_regno_to_class): Make it a local variable in the
13440         function xtensa_regno_to_class.
13441         (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
13442         macro, function prototype and implementation.
13443         (reg_nonleaf_alloc_order): Make it a local variable in the
13444         function order_regs_for_local_alloc.
13445         (xtensa_conditional_register_usage): New function.
13446         (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
13447         (xtensa_valid_move): Allow direct moves to stack pointer
13448         register in call0 ABI.
13449         (xtensa_setup_frame_addresses): Only spill register windows in
13450         windowed ABI.
13451         (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
13452         call0 ABI respectively.
13453         (xtensa_function_arg_1): Only mark a7 register for copying in
13454         windowed ABI.
13455         (xtensa_call_save_reg): New function.
13456         (compute_frame_size): Add space for callee saved register
13457         storage to the frame size in call0 ABI.
13458         (xtensa_expand_prologue): Generate code to set up stack frame
13459         and save callee-saved registers in call0 ABI.
13460         (xtensa_expand_epilogue): New function.
13461         (xtensa_set_return_address): New function.
13462         (xtensa_return_addr): Calculate return address in call0 ABI.
13463         (xtensa_builtin_saveregs): Only mark a7 register for copying and
13464         emit copying code in windowed ABI.
13465         (order_regs_for_local_alloc): Add preferred register allocation
13466         order for non-leaf function in call0 ABI.
13467         (xtensa_static_chain): Add atatic chain passing for call0 ABI.
13468         (xtensa_asm_trampoline_template): Add trampoline generation for
13469         call0 ABI.
13470         (xtensa_trampoline_init): Add trampoline initialization for
13471         call0 ABI.
13472         (xtensa_conditional_register_usage, xtensa_regno_to_class): New
13473         functions.
13474         * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
13475         (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
13476         (CALL_USED_REGISTERS): Modify to encode both windowed and call0
13477         ABI call-used registers.
13478         (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
13479         (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
13480         call0 ABI.
13481         (REG_CLASS_CONTENTS): Include all registers into the preferred
13482         reload registers set, adjust the set in the
13483         xtensa_conditional_register_usage.
13484         (xtensa_regno_to_class): Drop variable declaration.
13485         (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
13486         function.
13487         (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
13488         respectively.
13489         (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
13490         (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
13491         (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
13492         (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
13493         location in call0 ABI.
13494         (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
13495         stack adjustment size when handling exception.
13496         (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
13497         * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
13498         definitions.
13499         ("return" pattern): Generate ret.n/ret in call0 ABI.
13500         ("epilogue" pattern): Expand epilogue.
13501         ("nonlocal_goto" pattern): Use default in call0 ABI.
13502         ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
13503         emit eh_set_a0_* depending on ABI.
13504         ("eh_set_a0_windowed" pattern): Former eh_return pattern.
13505         ("eh_set_a0_call0", "blockage"): New patterns.
13507 2015-03-03  Martin Liska  <mliska@suse.cz>
13509         PR ipa/65287
13510         * ipa-icf.c (sem_variable::parse): Skip all alias variables.
13512 2015-03-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
13514         PR 65138/target
13515         * config/rs6000/rs6000-tables.opt: Regenerate table.
13517 2015-03-03  Renlin Li  <renlin.li@arm.com>
13519         * doc/md.texi (@item ^): Change ? into ^.
13521 2015-03-03  H.J. Lu  <hongjiu.lu@intel.com>
13523         * doc/tm.texi: Regenerated.
13525 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
13527         * builtins.c (expand_builtin_return_addr): Add
13528         RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
13529         surrounding #ifdef.
13530         * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
13531         definition to 1.
13532         * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
13533         Likewise.
13534         * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
13535         undefined.
13536         * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
13537         paragraph.
13539 2015-03-03  Martin Jambor  <mjambor@suse.cz>
13540             Eric Botcazou  <ebotcazou@adacore.com>
13542         * tree-sra.c (ipa_sra_check_caller_data): New type.
13543         (has_caller_p): Removed.
13544         (ipa_sra_check_caller): New function.
13545         (ipa_sra_preliminary_function_checks): Use it.
13547 2015-03-03  Martin Liska  <mliska@suse.cz>
13549         * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
13550         instead of if branch.
13552 2015-03-03  Martin Liska  <mliska@suse.cz>
13554         PR ipa/65282
13555         * ipa-icf.c (sem_variable::equals): Fix wrong condition.
13557 2015-03-23  Jeff Law  <law@redhat.com>
13559         PR tree-optimization/65241
13560         * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
13561         hash table if INSERT is true.
13563 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
13565         PR target/65296
13566         * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
13568 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
13570         PR target/64331
13571         * config/avr/avr.c (context.h, tree-pass.h): Include them.
13572         (avr_pass_data_recompute_notes): New static variable.
13573         (avr_pass_recompute_notes): New class.
13574         (avr_register_passes): New static function.
13575         (avr_option_override): Call it.
13577 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
13579         Fix various problems with specs file generation.
13581         PR target/65296
13582         * config.gcc (extra_gcc_objs) [avr]: Remove.
13583         * config/avr/driver-avr.c: Remove file.
13584         * config/avr/t-avr (driver-avr.o): Remove rule.
13585         (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
13586         INCLUDES to build.  Depend on TM_H.
13587         * config/avr/gen-avr-mmcu-specs.c: Tidy up code.  Fix various
13588         build warnings.  Fix non-matching types and non-existing %-codes.
13589         (tm.h): Include.
13590         (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
13591         (*libgcc) [WITH_AVRLIBC]: Add "-lm".
13592         * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
13593         * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
13594         (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
13595         (LIBGCC_SPEC): Remove definitions.
13597 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
13599         * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
13600         to create a register in testing mode.
13602 2015-03-03  Martin Liska  <mliska@suse.cz>
13603             Jan Hubicka  <hubicka@ucw.cz>
13605         PR ipa/65263
13606         * cgraph.c (cgraph_node::has_thunk_p): New function.
13607         * cgraph.h (cgraph_node::has_thunk_p: Likewise.
13608         * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
13609         (sem_function::merge): Assert is changed.
13611 2015-03-03  Martin Liska  <mliska@suse.cz>
13612             Martin Jambor  <mjambor@suse.cz>
13614         PR ipa/65087
13615         * ipa-icf.c (sem_item_optimizer::execute): Change function
13616         return value to boolean.
13617         (sem_item_optimizer::merge_classes): Likewise.
13618         (ipa_icf_driver): Return TODO_remove_functions in case there's
13619         a merge operation processed.
13620         * ipa-icf.h: Change function return value to boolean.
13622 2015-03-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
13624         PR 65138/target
13625         * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
13626         processor type for 64-bit little endian PowerPC.
13628         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
13629         -mdebug=reg, print TARGET_DEFAULT.  Fix logic to use
13630         TARGET_DEFAULT if there is no default cpu.  Fix -mdebug=reg
13631         printing built-in mask so it does not pass NULL pointers.
13633         * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
13634         -mcpu=powerpc64le.
13636 2015-03-02  Steve Ellcey  <sellcey@imgtec.com>
13638         PR target/58158
13639         * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
13640         !ISA_HAS_FP_CONDMOVE.
13642 2015-03-02  Aldy Hernandez  <aldyh@redhat.com>
13644         * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
13645         reload_completed.
13647 2015-03-02  Ulrich Drepper  <drepper@gmail.com>
13649         * doc/invoke.texi (Options for Code Generation Conventions):
13650         Fix URL of DSO paper.
13652 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
13654         PR ipa/65130
13655         * ipa-inline.c (check_callers): Looks for recursion.
13656         (inline_to_all_callers): Give up on uninlinable or recursive edges.
13657         * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
13658         summary of inline clones.
13659         (do_estimate_growth_1): Fix recursion check.
13661 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
13663         PR ipa/64988
13664         * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
13665         comdat groups.
13667 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
13668             Aldy Hernandez  <aldyh@redhat.com>
13670         PR lto/65276
13671         * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
13672         when checking TYPE_BINFO.
13674 2015-03-02  Richard Biener  <rguenther@suse.de>
13676         PR ipa/65270
13677         * ipa-icf-gimple.c: Include builtins.h.
13678         (func_checker::compare_memory_operand): Compare base alignment.
13680 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
13682         PR target/65184
13683         * gcc/config/i386/i386.c (ix86_pass_by_reference) Bounds
13684         are never passed by reference.
13686 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
13688         PR target/65183
13689         * tree-chkp.c (chkp_check_lower): Don't check against
13690         zero bounds for already instrumented functions.
13691         (chkp_check_upper): Likewise.
13692         (chkp_fini): Clean pass local data to avoid wrong reusage.
13694 2015-02-28  Martin Liska  <mliska@suse.cz>
13695             Jan Hubicka  <hubicka@ucw.cz>
13697         * ipa-icf.c (sem_variable::equals): Improve debug output;
13698         get variable constructor.
13699         (sem_variable::parse): Do not filter out too early; give up on
13700         volatile and register vars.
13701         (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
13702         variables.
13703         * ipa-icf.h (sem_variable::init): Do not set ctor.
13704         (sem_variable::ctor): Remove.
13706 2015-03-01  Aldy Hernandez  <aldyh@redhat.com>
13708         PR middle-end/65233
13709         * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
13711 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
13713         * ipa-icf.c: Include stor-layout.h
13714         (sem_function::compare_cgraph_references): Rename to ...
13715         (sem_item::compare_cgraph_references): ... this one.
13716         (sem_variable::equals_wpa): New function
13717         (sem_variable::equals): Do not check stuff already verified by
13718         equals_wpa.
13719         (sem_variable::equals): Reorg based on varasm.c:compare_constant.
13720         * ipa-icf.h (sem_item): Add compare_cgraph_references.
13721         (sem_function): Remove compare_cgraph_references.
13722         (sem_variable): Turns equals_wpa into non-inline.
13724 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
13726         * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
13727         (sem_item::add_expr): New function.
13728         (sem_function::hash_stmt): Handle operands of most statements.
13729         (sem_variable::get_hash): Hash the actual constructor.
13730         * ipa-icf.h (sem_item): Add add_expr.
13731         (sem_function): Update prototype of hash_stmt
13733 2015-02-28  Martin Liska  <mliska@suse.cz>
13734             Jan Hubicka  <hubicka@ucw.cz>
13736         PR ipa/65245
13737         * ipa-icf-gimple.c (func_checker::compare_function_decl):
13738         Remove.
13739         (func_checker::compare_variable_decl): Skip symtab vars.
13740         (func_checker::compare_cst_or_decl): Update.
13741         * ipa-icf.c (sem_function::parse): Do not consider aliases.
13742         (sem_function::compare_cgraph_references): Add ADDRESS parameter;
13743         use correct symtab predicates.
13744         (sem_function::equals_wpa): Update uses of compare_cgraph_references.
13745         (sem_variable::parse):  Update comment.
13746         (sem_item_optimizer::build_graph): Consider ultimate aliases
13747         for references.
13749 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
13751         * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
13752         of OBJ_TYPE_REF.
13754 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
13756         * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
13757         (sem_variable::merge) Likewise.
13759 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
13761         * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
13762         target; also match flag_ipa_devirt.
13764 2015-03-01  Martin Liska  <mliska@suse.cz>
13765             Jan Hubicka  <hubicka@ucw.cz>
13767         * ipa-icf-gimple.c (func_checker::compare_variable_decl):
13768         Validate variable alignment.
13769         * ipa-icf.c (sem_function::equals_private): Be more precise
13770         about non-common function attributes.
13771         (sem_variable::equals): Likewise.
13773 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
13775         PR ipa/65237
13776         * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
13777         across COMDAT group boundary.
13779 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
13781         PR ipa/65232
13782         * ipa-icf.c (clear_decl_rtl): New function.
13783         (sem_function::merge): Clear RTL before forming alias.
13784         (sem_variable::merge): Clear RTL before forming alias.
13786 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
13788         PR ipa/65236
13789         * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
13791 2015-02-28  Xingxing Pan  <xxingpan@marvell.com>
13793         * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
13794         to neon_to_gp<q>.
13796 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
13798         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
13799         a typo in the description.
13801 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
13803         PR target/64317
13804         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
13805         * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
13806         * lra-constraints.c: Include "params.h".
13807         (EBB_PROBABILITY_CUTOFF): Use
13808         LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
13809         (lra_inheritance): Use '<' instead of '<=' for
13810         EBB_PROBABILITY_CUTOFF.
13811         * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
13812         Document change.
13814 2015-02-27  Martin Liska  <mliska@suse.cz>
13816         * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
13817         vector length condition.
13819 2015-02-27  Sandra Loosemore  <sandra@codesourcery.com>
13821         * doc/extend.texi (x86 transactional memory intrinsics):
13822         Reorganize discussion of _xbegin.  Clarify that the return
13823         value is a bit mask.  Expand example and move to end of section.
13825 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
13826             Aldy Hernandez  <aldyh@redhat.com>
13828         PR rtl-optimization/65220
13829         * config/i386/i386.md (*udivmod<mode>4_pow2): New.
13831 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
13833         PR target/65032
13834         * lra-remat.c (update_scratch_ops): New.
13835         (do_remat): Call it.
13836         * lra.c (lra_register_new_scratch_op): New. Take code from ...
13837         (remove_scratches): ... here.
13838         * lra-int.h (lra_register_new_scratch_op): New prototype.
13840 2015-02-27  Marek Polacek  <polacek@redhat.com>
13842         PR c/65040
13843         * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
13844         -Wformat-signedness anymore.
13846 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13848         * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
13849         function.
13850         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
13852 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13854         * config/s390/s390.c (enum s390_builtin):
13855         Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
13856         (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
13857         (s390_init_builtins): Generate new builtin functions.
13858         * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
13859         (s390_sfpc, s390_efpc): New pattern definitions.
13861 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13863         * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
13864         Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
13865         (s390_builtin_decls): New array.
13866         (s390_init_builtins): Put builtin decls into s390_builtin_decls.
13867         (s390_builtin_decl): New function.
13868         (TARGET_BUILTIN_DECL): Define macro.
13870 2015-02-27  Richard Biener  <rguenther@suse.de>
13872         PR middle-end/63175
13873         * builtins.c (get_object_alignment_2): Make sure to re-apply
13874         the ANDed mask after recursing to its operand gets us a new
13875         misalignment bit position.
13877 2015-02-26  Jan Hubicka  <hubicka@ucw.cz>
13878             Martin Liska  <mliska@suse.cz>
13880         PR bootstrap/65150
13881         * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
13882         Use address_matters_p.
13883         (redirect_all_callers, set_addressable): New functions.
13884         (sem_function::merge): Reorganize and fix merging issues.
13885         (sem_variable::merge): Likewise.
13886         (sem_variable::compare_sections): Remove.
13887         * common.opt (fmerge-all-constants, fmerge-constants): Remove
13888         Optimization flag.
13889         * symtab.c (symtab_node::resolve_alias): When alias has aliases,
13890         redirect them.
13891         (symtab_node::make_decl_local): Set ADDRESSABLE bit when
13892         decl is used.
13893         (address_matters_1): New function.
13894         (symtab_node::address_matters_p): New function.
13895         * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
13896         check for merged flag.
13897         * cgraph.h (address_matters_p): Declare.
13898         (symtab_node::address_taken_from_non_vtable_p): Remove.
13899         (symtab_node::address_can_be_compared_p): New method.
13900         (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
13901         * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
13902         Remove.
13903         (comdat_can_be_unshared_p_1) Use address_matters_p.
13904         (update_vtable_references): Fix formating.
13905         * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
13906         * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
13907         * cgraphclones.c: Preserve merged and icf_merged flags.
13909 2015-02-26  Sandra Loosemore  <sandra@codesourcery.com>
13911         * doc/extend.texi (Function Attributes): Fix spelling and typos.
13912         (Label Attributes): Likewise.
13913         (Cilk Plus Builtins): Likewise.
13914         (ARC SIMD Built-in Functions): Likewise.
13915         (ARM C Language Extensions (ACLE)): Likewise.
13916         (PowerPC Built-in Functions): Likewise.
13917         (PowerPC Hardware Transactional Memory Built-in Functions):
13918         Likewise.
13920 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
13922         PR tree-optimization/65216
13923         * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
13924         new stmt and new SSA_NAME for lhs whenever the arguments have
13925         changed and weren't just swapped.  Fix comment typo.
13927         PR tree-optimization/65215
13928         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
13929         for PDP endian targets.
13930         (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
13931         Fix up formatting issues.
13932         (bswap_replace): Likewise.  For BYTES_BIG_ENDIAN, if the final access
13933         size is smaller than the original, adjust MEM_REF offset by the
13934         difference of sizes.  Use is_gimple_mem_ref_addr instead of
13935         is_gimple_min_invariant test to avoid adding address temporaries.
13937 2015-02-26  Martin Liska  <mliska@suse.cz>
13938             Jan Hubicka  <hubicka@ucw.cz>
13940         PR ipa/64693
13941         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
13942         (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
13943         (sem_item_optimizer::process_cong_reduction): Include division by
13944         sensitive references.
13945         * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
13946         * ipa-ref.c (ipa_ref::address_matters_p): New function.
13947         * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
13949 2015-02-26  Georg-Johann Lay  <avr@gjlay.de>
13951         PR target/65192
13952         * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
13953         Remove.
13954         * config/avr/avr.c: Same.
13955         (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
13956         Refuse any constant address not in 0..0xbf.
13957         * config/avr/avr.md (*mov<mode>, *movsf): Remove
13958         tiny_valid_direct_memory_access_range from insn conditions.
13959         (mov<mode>): Don't special-case expansion of avrtiny addresses.
13961 2015-02-26  Oleg Endo  <olegendo@gcc.gnu.org>
13963         PR target/61142
13964         * config/sh/sh.c (sh_check_add_incdec_notes): New function.
13965         * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
13966         * config/sh/predicates.md (const_logical_operand): New predicate.
13967         * config/sh/sh.md: Add new peephole2 patterns.
13969 2015-02-26  Marek Polacek  <polacek@redhat.com>
13971         PR ipa/65008
13972         * ipa-inline.c (early_inliner): Recompute inline parameters.
13974 2015-02-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13976         PR target/65171
13977         * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
13978         instructions with TImode operands are included in the analysis.
13980 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
13982         * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
13983         of an EDGE_FSM_THREAD.
13985 2015-02-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13987         * config/rs6000/htm.md (tcheck): Fix assembly encoding.
13989 2015-02-25  Aldy Hernandez  <aldyh@redhat.com>
13991         PR debug/46102
13992         * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
13994 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
13996         PR tree-optimization/65048
13997         * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
13998         (thread_through_all_blocks): Call valid_jump_thread_path.
13999         Remove invalid FSM jump-thread paths.
14001 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
14003         * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
14004         (ipa_write_optimization_summaries): Likewise.
14005         * tree-streamer.h: Include data-streamer.h.
14006         (streamer_mode_table): Declare extern variable.
14007         (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
14008         * lto-streamer-out.c (lto_output_init_mode_table,
14009         lto_write_mode_table): New functions.
14010         (produce_asm_for_decls): Call lto_write_mode_table when streaming
14011         offloading LTO.
14012         * lto-section-in.c (lto_section_name): Add "mode_table" entry.
14013         (lto_create_simple_input_block): Add mode_table argument to the
14014         lto_input_block constructors.
14015         * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
14016         Likewise.
14017         * data-streamer-in.c (string_for_index): Likewise.
14018         * ipa-inline-analysis.c (inline_read_section): Likewise.
14019         * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
14020         * lto-cgraph.c (input_cgraph_opt_section): Likewise.
14021         * lto-streamer-in.c (lto_read_body_or_constructor,
14022         lto_input_toplevel_asms): Likewise.
14023         (lto_input_mode_table): New function.
14024         * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
14025         pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
14026         Use bp_pack_machine_mode.
14027         * real.h (struct real_format): Add name field.
14028         * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
14029         (class lto_input_block): Add mode_table member.
14030         (lto_input_block::lto_input_block): Add mode_table_ argument,
14031         initialize mode_table.
14032         (struct lto_file_decl_data): Add mode_table field.
14033         (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
14034         * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
14035         unpack_ts_decl_common_value_fields,
14036         unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
14037         * tree-streamer.c (streamer_mode_table): New variable.
14038         * real.c (ieee_single_format, mips_single_format,
14039         motorola_single_format, spu_single_format, ieee_double_format,
14040         mips_double_format, motorola_double_format,
14041         ieee_extended_motorola_format, ieee_extended_intel_96_format,
14042         ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
14043         ibm_extended_format, mips_extended_format, ieee_quad_format,
14044         mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
14045         decimal_single_format, decimal_double_format, decimal_quad_format,
14046         ieee_half_format, arm_half_format, real_internal_format): Add name
14047         field.
14048         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
14050 2015-02-26  Yuri Rumyantsev  <ysrumyan@gmail.com>
14052         PR target/65161
14053         * config/i386/i386.c (ix86_sched_reorder): Skip instruction
14054         reordering for selective scheduling.
14056 2015-02-26  Terry Guo  <terry.guo@arm.com>
14058         * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
14059         * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
14060         (arm_arch_no_volatile_ce): Declare new global variable.
14061         * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
14062         (arm_option_override): Assign value to arm_arch_no_volatile_ce.
14063         * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
14064         (TARGET_NO_VOLATILE_CE): New macro.
14065         * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
14066         volatile memory access in IT block
14068 2015-02-25  Kai Tietz  <ktietz@redhat.com>
14070         PR tree-optimization/61917
14071         * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
14072         that reduc_def_stmt is null.
14074 2015-02-25  Martin Liska  <mliska@suse.cz>
14076         * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
14077         hard register variables.
14079 2015-02-25  Kai Tietz  <ktietz@redhat.com>
14081         PR target/64212
14082         * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
14083         (symtab::noninterposable_alias): Likewise.
14085 2015-02-25  Ilya Enkovich  <ilya.enkovich@intel.com>
14087         PR target/65167
14088         * gcc/config/i386/i386.c (ix86_function_arg_regno_p): Support
14089         bounds registers.
14090         (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
14092 2015-02-25  Alan Lawrence  <alan.lawrence@arm.com>
14094         PR target/64997
14095         * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
14096         as split condition; force split via '#' in output pattern.
14098 2015-02-25  Richard Biener  <rguenther@suse.de>
14099             Kai Tietz  <ktietz@redhat.com>
14101         PR tree-optimization/61917
14102         * tree-vect-loop.c (vectorizable_reduction): Allow
14103         vect_internal_def without reduction to exit graceful.
14105 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
14107         PR target/65196
14108         * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
14109         only with NONDEBUG_INSN_P.
14111 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
14113         Use variadic macros with avr-log.c.
14115         * config/avr/avr-protos.h (avr_vdump): New prototype.
14116         (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
14117         (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
14118         * config/avr/avr-log.c: Adjust comments.
14119         (avr_vdump): New function.
14120         (avr_vadump): Pass caller as 2nd argument instead of format string.
14121         (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
14122         (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
14124 2015-02-25  Jakub Jelinek  <jakub@redhat.com>
14126         PR lto/64374
14127         * target.def (target_option_stream_in): New target hook.
14128         * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
14129         targetm.target_option.post_stream_in if non-NULL.
14130         * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
14131         * doc/tm.texi: Updated.
14132         * config/i386/i386.c (ix86_function_specific_post_stream_in): New
14133         function.
14134         (TARGET_OPTION_POST_STREAM_IN): Redefine.
14136 2015-02-24  Jeff Law  <law@redhat.com>
14138         PR target/65117
14139         * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
14140         of operand 0 and operand 2.
14141         (zero_cost_loop_end, loop_end): Similarly.
14143 2015-02-24  Aldy Hernandez  <aldyh@redhat.com>
14145         * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
14146         CXX_MEM_STAT_INFO.
14148 2015-02-24  DJ Delorie  <dj@redhat.com>
14150         * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
14151         * config/rl78/rl78-expand.md (movsf): New, same as movsi.
14152         * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
14153         instead of hardcoding SImode.
14155 2015-02-24  Bernd Schmidt  <bernds@codesourcery.com>
14157         * omp-low.c (create_omp_child_function): Tag entrypoint
14158         functions with a special attribute.
14160 2015-02-24  Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
14162         PR target/65058
14163         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
14165 2015-02-24  Vladimir Makarov  <vmakarov@redhat.com>
14167         PR rtl-optimization/65123
14168         * lra-remat.c (operand_to_remat): Check hard regs in insn
14169         definition too.
14171 2015-02-24  Nick Clifton  <nickc@redhat.com>
14173         * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
14174         to the assembler.
14176 2015-02-24  Thomas Schwinge  <thomas@codesourcery.com>
14178         PR libgomp/64625
14179         * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
14180         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
14181         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
14182         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
14183         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
14184         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
14185         (BUILT_IN_GOACC_PARALLEL): Specify as
14186         BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
14187         BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
14188         * builtin-types.def
14189         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
14190         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
14191         Remove function types.
14192         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
14193         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
14194         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
14195         New function types.
14197 2015-02-24  Georg-Johann Lay  <avr@gjlay.de>
14199         * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
14201 2015-02-24  Jakub Jelinek  <jakub@redhat.com>
14203         PR tree-optimization/65170
14204         * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
14205         if val[1] < 0, clear also val[2] and return 3.
14207 2015-02-24  Alan Modra  <amodra@gmail.com>
14209         PR target/65172
14210         * config/rs6000/rs6000.c (get_memref_parts): Only return true
14211         when *base is a reg.  Handle nested plus addresses.  Simplify
14212         pre_modify test.
14214 2015-02-22  Max Filippov  <jcmvbkbc@gmail.com>
14216         * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
14217         use natural alignment when optimizing for size.
14219 2015-02-23  Kaz Kojima  <kkojima@gcc.gnu.org>
14221         PR target/65153
14222         * config/sh/sh.md (movsicc_true+3): Remove peephole.
14223         * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
14224         * config/sh/sh.c (replace_n_hard_rtx): Remove.
14226 2015-02-23  Richard Sandiford  <richard.sandiford@arm.com>
14228         PR fortran/63427
14229         * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
14230         too big for a wide_int.  Implement missing wrapping operation.
14232 2015-02-23  Oleg Endo  <olegendo@gcc.gnu.org>
14234         PR target/65163
14235         * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
14236         instead of const_int 4294901760.
14238 2015-02-23  Georg-Johann Lay  <avr@gjlay.de>
14240         * config/avr/t-avr: Fix typo in comment.
14242 2015-02-21  Richard Sandiford  <richard.sandiford@arm.com>
14244         * doc/rtl.texi (fma): Clarify documentation.
14246 2015-02-20  Aldy Hernandez  <aldyh@redhat.com>
14248         PR debug/58123
14249         * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
14250         over input_location.
14252 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
14254         * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
14255         unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
14256         restrict alignments to absolute_biggest_alignment.
14257         * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
14258         Define.
14259         * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
14260         * doc/tm.texi: Regenerate.
14261         * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
14263 2015-02-20  Vladimir Makarov  <vmakarov@redhat.com>
14265         PR target/64172
14266         * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
14268 2015-02-20  Richard Biener  <rguenther@suse.de>
14270         PR tree-optimization/65136
14271         * tree-ssa-propagate.c: Include cfgloop.h.
14272         (replace_phi_args_in): Avoid replacing loop latch edge PHI
14273         arguments with constants.
14275 2015-02-20  Jakub Jelinek  <jakub@redhat.com>
14276             Martin Liska  <mliska@suse.cz>
14278         PR target/63892
14279         * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
14280         don't try to create_thunk if stdarg_p.  If
14281         !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
14282         redirect_callers if possible.
14283         (sem_item_optimizer::execute): Call unregister_hooks here...
14284         (ipa_icf_driver): ... instead of here.
14286 2015-02-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14288         * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
14289         Mark operand 0 as earlyclobber in 2nd alternative.
14290         (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
14291         Write negated shift amount into QI lowpart operand 0 and use it
14292         in the shift step.
14293         (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
14295 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
14297         * cgraph.h (clone_function_name_1): Declare.
14298         * cgraphclones.c (clone_function_name_1): New function.
14299         (clone_function_name): Use it.
14300         * lto-partition.c: Include "stringpool.h".
14301         (must_not_rename, maybe_rewrite_identifier)
14302         (validize_symbol_for_target): New static functions.
14303         (privatize_symbol_name): Use must_not_rename.
14304         (promote_symbol): Call validize_symbol_for_target.
14305         (lto_promote_cross_file_statics): Likewise.
14306         (lto_promote_statics_nonwpa): Likewise.
14308 2015-02-20  Georg-Johann Lay  <avr@gjlay.de>
14310         PR target/64452
14311         * config/avr/avr.md (pushhi_insn): New insn.
14312         (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
14314 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
14315             Jakub Jelinek  <jakub@redhat.com>
14317         * tree-streamer.c (preload_common_nodes): Don't preload
14318         TI_VA_LIST* for offloading.
14319         * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
14320         in_lto_p.
14322 2015-02-19  John David Anglin  <danlgin@gcc.gnu.org>
14324         * config/pa/pa.c (pa_emit_move_sequence): Always force
14325         (const (plus (symbol) (const_int))) to const mem.  Put REG_EQUAL
14326         note on insn.
14328         * config/pa/pa.c (pa_reloc_rw_mask): New function.
14329         (TARGET_ASM_RELOC_RW_MASK): Define.
14330         (pa_cannot_force_const_mem): Revert previous change.
14332 2015-02-19  Martin Jambor  <mjmabor@suse.cz>
14333             Jan Hubicka  <hubicka@ucw.cz>
14335         PR ipa/65028
14336         * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
14337         across jump functions.
14339 2015-02-19  Uros Bizjak  <ubizjak@gmail.com>
14341         * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
14343 2015-02-19  Sandra Loosemore  <sandra@codesourcery.com>
14345         * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
14347 2015-02-19  Richard Henderson  <rth@redhat.com>
14349         PR middle-end/65074
14350         * varasm.c (default_binds_local_p_2): Don't test node->definition;
14351         test DECL_EXTERNAL independent of symtab_node.
14353 2015-02-19  Jakub Jelinek  <jakub@redhat.com>
14355         PR lto/65012
14356         * varpool.c (varpool_node::get_constructor): Return early
14357         if this->lto_file_data is NULL.
14359 2015-02-19  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
14361         * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
14362         (rank_for_schedule_debug): Update.
14363         (ready_sort): Make static.  Move sorting logic to ...
14364         (ready_sort_debug, ready_sort_real): New static functions.
14365         (schedule_block): Sort both debug insns and real insns in preparation
14366         for ready list trimming.  Improve debug output.
14367         * sched-int.h (ready_sort): Remove global declaration.
14369 2015-02-18  Trevor Saunders  <tsaunders@mozilla.com>
14371         * ipa-icf.c (sem_function::equals_private): Adjust.
14372         (sem_function::bb_dict_test): Take a vec<int> * instead of
14373         auto_vec<int>.
14374         * ipa-icf.h (bb_dict_test): Likewise.
14376 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
14378         PR gcov-profile/64634
14379         * tree-eh.c (frob_into_branch_around): Fix up typos
14380         in function comment.
14381         (lower_catch): Put eh_seq resulting from EH lowering of
14382         the cleanup sequence after the cleanup rather than before it.
14384 2015-02-18  Tom de Vries  <tom@codesourcery.com>
14386         * common.opt (fstdarg-opt): New option.
14387         * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
14388         * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
14389         (@item -fstdarg-opt): New item.
14391 2015-02-18  H.J. Lu  <hongjiu.lu@intel.com>
14393         PR target/65064
14394         * config/ia64/predicates.md (sdata_symbolic_operand): Return false
14395         for common symbols.
14397 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
14399         * config/i386/t-intelmic (mkoffload.o): Remove dependency on
14400         insn-modes.h.
14401         (ALL_HOST_OBJS): Add mkoffload.o.
14402         * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
14404 2015-02-18  Jan Hubicka  <hubicka@ucw.cz>
14406         * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
14407         (compare_virtual_tables): Be smarter about skipping typeinfos;
14408         do sane output on virtual table table mismatch.
14409         (warn_odr): Be ready for forward declarations of enums;
14410         output sane info on base mismatch and virtual table mismatch.
14411         (add_type_duplicate): Fix code choosing prevailing type; do not ICE
14412         when only one type is polymorphic.
14413         (get_odr_type): Fix hashtable corruption.
14414         (dump_odr_type): Dump mangled names.
14416 2015-02-18  Richard Biener  <rguenther@suse.de>
14418         PR tree-optimization/65063
14419         * tree-predcom.c (determine_unroll_factor): Return 1 if we
14420         have replaced looparound PHIs.
14422 2015-02-18  Martin Liska  <mliska@suse.cz>
14424         * lto-streamer.c (lto_streamer_init): Encapsulate
14425         streamer_check_handled_ts_structures with checking macro.
14427 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
14429         PR ipa/65087
14430         * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
14431         section if !implicit_section.
14432         (cgraph_node::create_version_clone_with_body): Likewise.
14433         * trans-mem.c (ipa_tm_create_version): Likewise.
14435 2015-02-18  Richard Biener  <rguenther@suse.de>
14437         PR tree-optimization/62217
14438         * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
14439         into BIVs.
14441 2015-02-18  Marek Polacek  <polacek@redhat.com>
14443         PR sanitizer/65081
14444         * ubsan.c (OBJSZ_MAX_OFFSET): Define.
14445         (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
14446         is in range [-16K, -1].  Don't issue run-time error if
14447         (ptr > ptr + offset).
14449 2015-02-18  Thomas Schwinge  <thomas@codesourcery.com>
14451         * doc/install.texi (nvptx-*-none): New section.
14452         * doc/invoke.texi (Nvidia PTX Options): Likewise.
14453         * config/nvptx/nvptx.opt: Update.
14455         * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
14456         (access_check): New functions, copied from
14457         config/i386/intelmic-mkoffload.c.
14458         (main): For non-installed testing, look in all COMPILER_PATHs for
14459         GCC_INSTALL_NAME.
14461         * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
14463 2015-02-18  Andrew Pinski  <apinski@cavium.com>
14464             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
14466         * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
14467         Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
14469 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
14471         * ipa-visibility.c (function_and_variable_visibility): Only
14472         check locality if node is not already local.
14473         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
14474         call_for_symbol_and_aliases instead of
14475         call_for_symbol_thunks_and_aliases.
14476         (ipa_inline): Likewise.
14477         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
14478         first walk aliases.
14479         * ipa.c (symbol_table::remove_unreachable_nodes): Use
14480         call_for_symbol_and_aliases.
14481         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
14482         (ipa_propagate_frequency_1): Use it; use opt_for_fn
14483         (ipa_propagate_frequency): Update.
14484         (ipa_profile): Add opt_for_fn gueards.
14486 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
14488         * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
14489         * doc/invoke.texi (SH options): Document it.
14490         * config/sh/sh.c (sh_insn_length_adjustment): Check
14491         TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
14493 2015-02-17  H.J. Lu  <hongjiu.lu@intel.com>
14495         * common.opt (fipa-cp-alignment): New.
14496         * ipa-cp.c (ipcp_store_alignment_results): Check
14497         flag_ipa_cp_alignment.
14498         * opts.c (default_options_table): Enable -fipa-cp-alignment for
14499         -O2.
14500         (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
14501         * doc/invoke.texi: Document -fipa-cp-alignment.
14503 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
14505         PR target/64793
14506         * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
14507         to nil.  Adjust comments.
14509 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
14511         * ipa-visibility.c (function_and_variable_visibility): Only
14512         check locality if node is not already local.
14513         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
14514         call_for_symbol_and_aliases instead of
14515         call_for_symbol_thunks_and_aliases.
14516         (ipa_inline): Likewise.
14517         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
14518         first walk aliases.
14519         * ipa.c (symbol_table::remove_unreachable_nodes): Use
14520         call_for_symbol_and_aliases.
14521         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
14522         (ipa_propagate_frequency_1): Use it; use opt_for_fn
14523         (ipa_propagate_frequency): Update.
14524         (ipa_profile): Add opt_for_fn guards.
14526 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
14528         * config/nvptx/mkoffload.c (parse_file): Fix logic error in
14529         skipping of "strange" tokens.
14531 2015-02-17  Jeff Law  <law@redhat.com>
14533         * tree-vrp.c (identify_jump_threads): Use last_stmt.  Remove
14534         obsolete comment.
14536 2015-02-17  James Greenhalgh  <james.greenhalgh@arm.com>
14538         * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
14539         as forcing a HARD_DEP between instructions, thereby
14540         disallowing rewriting to break dependencies.
14542 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
14544         * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
14545         * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
14546         variables in boundary that have no inlitalizer encoded and are
14547         not aliases.
14548         * varasm.c (default_binds_local_p_2): External definitions do not
14549         count as definitions here.
14551 2015-02-16  Jeff Law  <law@redhat.com>
14553         PR tree-optimization/64823
14554         * tree-vrp.c (identify_jump_threads): Handle blocks with no real
14555         statements.
14556         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
14557         threading through blocks with PHIs, but no statements.
14558         (thread_through_normal_block): Distinguish between blocks where
14559         we did not process all the statements and blocks with no statements.
14561 2015-02-16  Jakub Jelinek  <jakub@redhat.com>
14562             James Greenhalgh  <james.greenhalgh@arm.com>
14564         PR ipa/64963
14565         * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
14566         section if not linkonce.  Fix up formatting.
14567         (cgraph_node::create_version_clone_with_body): Copy section.
14568         * trans-mem.c (ipa_tm_create_version): Likewise.
14570 2015-02-16  Richard Biener  <rguenther@suse.de>
14572         PR tree-optimization/65077
14573         * tree-ssa-structalias.c (get_constraint_for_1): Handle
14574         IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
14575         (find_func_aliases): Allow float values to carry pointers again.
14577 2015-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
14579         * doc/install.texi (Specific): Reorder targets list to put
14580         aarch64 in alphabetical order.  Add a link to aarch64*-*-*
14581         from the top menu.
14583 2015-02-16  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
14584             David Edelsohn  <dje.gcc@gmail.com>
14586         PR target/65058
14587         * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
14588         mapping class to external variable or function reference.
14589         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
14590         mapping class.
14592 2015-02-16  David Eelsohn  <dje.gcc@gmail.com>
14594         PR target/53348
14595         * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
14596         ASM_WEAKEN_DECL if defined.
14598 2015-02-16  Richard Biener  <rguenther@suse.de>
14600         PR lto/65015
14601         * varasm.c (default_file_start): For LTO produced units
14602         emit <artificial> as file directive.
14604 2015-02-16  Richard Biener  <rguenther@suse.de>
14606         PR tree-optimization/63593
14607         * tree-predcom.c (execute_pred_commoning_chain): Delay removing
14608         stmts and releasing SSA names until...
14609         (execute_pred_commoning): ... after processing all chains.
14611 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
14613         PR ipa/65059
14614         * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
14615         external functions.
14617 2015-02-15  Sandra Loosemore  <sandra@codesourcery.com>
14619         * doc/bugreport.texi: Adjust section titles throughout the file
14620         to use "Title Case".
14621         * doc/extend.texi: Likewise.
14622         * doc/gcov.texi: Likewise.
14623         * doc/implement-c.texi: Likewise.
14624         * doc/implement-cxx.texi: Likewise.
14625         * doc/invoke.texi: Likewise.
14626         * doc/objc.texi: Likewise.
14627         * doc/standards.texi: Likewise.
14628         * doc/trouble.texi: Likewise.
14630 2015-02-15  Jan Hubicka  <hubicka@ucw.cz>
14632         * cgraph.h (symtab_node::has_aliases_p): Simplify.
14633         (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
14634         * tree.c (lookup_binfo_at_offset): Make static.
14635         (get_binfo_at_offset): Do not shadow offset; add explanatory
14636         comment.
14638 2015-02-15  John David Anglin  <danglin@gcc.gnu.org>
14640         * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
14641         for all floading point loads and stores except those using a register
14642         index address.
14643         * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
14644         to a register.
14646 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
14648         * ipa-inline-analysis.c (growth_data): Add uninlinable field.
14649         (do_estimate_growth_1): Record if any uninlinable edge was seen.
14650         (estimate_growth): Handle uninlinable edges correctly.
14651         (check_callers): New.
14652         (growth_likely_positive): Handle aliases correctly.
14654 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
14656         * ipa-chkp.c: Use iterate_direct_aliases.
14657         * symtab.c (resolution_used_from_other_file_p): Move inline.
14658         (symtab_node::create_reference): Fix formating.
14659         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
14660         (symtab_node::iterate_reference): Move inline.
14661         (symtab_node::iterate_referring): Move inline.
14662         (symtab_node::iterate_direct_aliases): Move inline.
14663         (symtab_node::used_from_object_file_p_worker): Inline into ...
14664         (symtab_node::used_from_object_file_p): ... this one; move inline.
14665         (symtab_node::call_for_symbol_and_aliases): Move inline;
14666         use iterate_direct_aliases.
14667         (symtab_node::call_for_symbol_and_aliases_1): New method.
14668         (cgraph_node::call_for_symbol_and_aliases): Move inline;
14669         use iterate_direct_aliases.
14670         (cgraph_node::call_for_symbol_and_aliases_1): New method.
14671         (varpool_node::call_for_node_and_aliases): Rename to ...
14672         (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
14673         use iterate_direct_aliases.
14674         (varpool_node::call_for_symbol_and_aliases_1): New method.
14675         * ipa.c (ipa_single_use): Use iterate_direct_aliases.
14676         (ipa_discover_readonly_nonaddressable_var): Update.
14677         * ipa-devirt.c: Fix formating.
14678         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
14679         Move inline.
14680         (cgraph_node::call_for_symbol_and_aliases): Move inline.
14681         (cgraph_node::call_for_symbol_and_aliases_1): New function..
14682         * cgraph.h (used_from_object_file_p_worker): Remove.
14683         (resolution_used_from_other_file_p): Move inline.
14684         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
14685         (symtab_node::iterate_reference): Move inline.
14686         (symtab_node::iterate_referring): Move inline.
14687         (symtab_node::iterate_direct_aliases): Move inline.
14688         (symtab_node::used_from_object_file_p_worker): Inline into ...
14689         (symtab_node::used_from_object_file_p): Move inline.
14690         * tree-emutls.c (ipa_lower_emutls): Update.
14691         * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
14692         (varpool_node::call_for_node_and_aliases): Remove.
14694 2015-02-14  Jakub Jelinek  <jakub@redhat.com>
14696         PR tree-optimization/62209
14697         * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
14698         op == range->exp, insert seq and gimplified code after labels
14699         instead of after the phi.
14701 2015-02-13  Jeff Law  <law@redhat.com>
14703         PR bootstrap/65060
14704         Revert my change for tree-optimization/64823.
14706 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
14708         PR tree-optimization/65053
14709         * tree-ssa-phiopt.c (value_replacement): When moving assign before
14710         cond, either reset VR on lhs or set it to phi result VR.
14712 2015-02-13  Jeff Law  <law@redhat.com>
14714         PR tree-optimization/64823
14715         * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
14716         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
14717         threading through blocks with PHIs, but no statements.
14718         (thread_through_normal_block): Distinguish between blocks where
14719         we did not process all the statements and blocks with no statements.
14721         PR rtl-optimization/47477
14722         * match.pd (convert (plus/minus (convert @0) (convert @1): New
14723         simplifier to narrow arithmetic.
14725 2015-02-13  Jan Hubicka  <hubicka@ucw.cz>
14727         PR ipa/65028
14728         * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
14729         polymorphic call info when type is not known to be preserved.
14731 2015-02-13  Maritn Jambor  <mjambor@suse.cz>
14733         PR ipa/65028
14734         * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
14735         (inline_call): Use it.
14737 2015-02-13  Thomas Schwinge  <thomas@codesourcery.com>
14739         * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
14740         GOMP_DEVICE_NVIDIA_PTX.
14742 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
14744         PR ipa/65034
14745         * stmt.c (emit_case_nodes): Use void_type_node instead of
14746         NULL_TREE as LABEL_DECL type.
14748 2015-02-13  John David Anglin  <danglin@gcc.gnu.org>
14750         * config/pa/constraints.md: Change "Q" and "T" constraints to memory
14751         constraints.
14752         * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
14753         symbolic references to data to be forced to constant memory on the
14754         SOM target.
14756 2015-02-13  Ilya Enkovich  <ilya.enkovich@intel.com>
14758         PR tree-optimization/65002
14759         * tree-cfg.c (pass_data_fixup_cfg): Don't update
14760         SSA on start.
14761         * tree-sra.c (some_callers_have_no_vuse_p): New.
14762         (ipa_early_sra): Reject functions whose callers
14763         assume function is read only.
14765 2015-02-13  Richard Biener  <rguenther@suse.de>
14767         PR lto/65015
14768         * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
14769         for LTO produced CUs.
14771 2015-02-13  Bin Cheng  <bin.cheng@arm.com>
14773         PR tree-optimization/64705
14774         * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
14775         * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
14776         * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
14777         (find_bivs, find_givs_in_stmt_scev): Pass new argument to
14778         expand_simple_operations.
14780 2015-02-13  H.J. Lu  <hongjiu.lu@intel.com>
14781             Richard Henderson  <rth@redhat.com>
14783         PR rtl/32219
14784         * cgraphunit.c (cgraph_node::finalize_function): Set definition
14785         before notice_global_symbol.
14786         (varpool_node::finalize_decl): Likewise.
14787         * varasm.c (default_binds_local_p_2): Rename from
14788         default_binds_local_p_1, add weak_dominate argument.  Use direct
14789         returns instead of assigning to local variable.  Unify varpool and
14790         cgraph paths via symtab_node.  Reject undef weak variables before
14791         testing visibility.  Reorder tests for simplicity.
14792         (default_binds_local_p): Use default_binds_local_p_2.
14793         (default_binds_local_p_1): Likewise.
14794         (decl_binds_to_current_def_p): Unify varpool and cgraph paths
14795         via symtab_node.
14796         (default_elf_asm_output_external): Emit visibility when specified.
14798 2015-02-13  Alan Modra  <amodra@gmail.com>
14800         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
14801         code setting up r11 for out-of-line fp restore.
14803 2015-02-13  Eric Botcazou  <ebotcazou@adacore.com>
14805         * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
14806         (muser-mode): Likewise.
14808 2015-02-13  Alan Modra  <amodra@gmail.com>
14810         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
14811         or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
14813 2015-02-12  David Howells  <dhowells@redhat.com>
14815         * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
14816         warning.
14817         * tree-ssa-uninit.c (dump_predicates): Likewise.
14818         * opts.c (print_filtered_help): Likewise.
14820 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
14822         * dwarf2out.c (output_die): Use "%s", name instead of name to
14823         avoid -Wformat-security warning.
14825         * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
14826         if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
14827         * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
14828         only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
14830 2015-02-12  Jason Merrill  <jason@redhat.com>
14832         * common.opt (-flifetime-dse): New.
14834 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
14836         PR sanitizer/65019
14837         * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
14839         PR tree-optimization/65014
14840         * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
14841         use original second operand of arg0 or arg1 instead of
14842         that adjusted by STRIP_NOPS.
14844 2015-02-11  Jeff Law  <law@redhat.com>
14846         PR target/63347
14847         * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
14848         that needs to be queued, just queue it for a single cycle.
14850 2015-02-11  Jan Hubicka  <hubicka@ucw.cz>
14852         * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
14853         bodies of thunks; comment on why.
14854         * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
14855         symbols are extern.
14857 2015-02-11  Richard Henderson  <rth@redhat.com>
14859         PR sanitize/65000
14860         * tree-eh.c (mark_reachable_handlers): Mark source and destination
14861         regions of __builtin_eh_copy_values.
14863 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
14865         PR middle-end/65003
14866         * varasm.c (place_block_symbol): Assert that DECL_RTL of the
14867         ultimate alias is MEM with SYMBOL_REF satisfying
14868         SYMBOL_REF_HAS_BLOCK_INFO_P as its operand.  Don't pass the MEM
14869         to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
14871 2015-02-11  Thomas Schwinge  <thomas@codesourcery.com>
14873         * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
14874         "diagnostic-core.h".
14875         (main): Initialize progname, and call diagnostic_initialize.
14877         * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
14878         instead of __OPENMP_TARGET__.
14880         * config/nvptx/mkoffload.c: Include "gomp-constants.h".
14881         (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
14882         hard-coding PTX_ID.
14884 2015-02-11  H.J. Lu  <hongjiu.lu@intel.com>
14886         * doc/sourcebuild.texi (pie_enabled): Document.
14888 2015-02-11  Martin Liska  <mliska@suse.cz>
14890         PR ipa/64813
14891         * cgraphunit.c (cgraph_node::expand_thunk): Do not create
14892         a return value for call to a function that is noreturn.
14894 2015-02-11  Richard Biener  <rguenther@suse.de>
14896         PR lto/65015
14897         * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
14898         and -fresolution.
14900 2015-02-11  Andrew Pinski  <apinski@cavium.com>
14902         PR target/64893
14903         * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
14904         Change the first argument type to size_type_node and add another
14905         size_type_node.
14906         (aarch64_simd_expand_builtin): Handle the new argument to
14907         AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
14908         print an out when the first two arguments are not
14909         nonzero integer constants.
14910         * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
14911         Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
14913 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
14915         PR target/61925
14916         * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
14917         (ix86_reset_previous_fndecl): Restore it here, unconditionally.
14918         (ix86_set_current_function): Rewritten.
14919         (ix86_add_new_builtins): Temporarily clear current_target_pragma
14920         when creating builtin fndecls.
14922 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
14924         PR ipa/65005
14925         * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
14926         function.
14927         * symtab.c (symtab_node::verify_base): Remove check that non-definitions
14928         have no comdat group.
14929         * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
14930         (lto_output_varpool_node): Always output alias info.
14931         (output_refs): Output refs of boundary aliases, too.
14932         (compute_ltrans_boundary): Add alias and thunk target into boundaries.
14933         (output_symtab): Output call eges in thunks in boundary.
14934         (get_alias_symbol): Remove.
14935         (input_node, input_varpool_node): Do not special case weakrefs.
14936         * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
14937         alias and thunks targets in the boundary; do not take removed symbols
14938         from their comdat groups.
14939         * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
14940         (cgraph_node::global_info): Remove.
14941         (cgraph_node::rtl_info): Look through aliases and thunks.
14942         * cgrpah.h (global_info): Remove.
14943         (non_local_p): Remove.
14945 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
14946             Sandra Loosemore  <sandra@codesourcery.com>
14948         * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
14949         to inline asm.  List dialects in proper order.
14951 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
14952             Sandra Loosemore  <sandra@codesourcery.com>
14954         * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
14956 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
14958         * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
14959         modified) reference to Solaris.
14961 2015-02-10  Sandra Loosemore  <sandra@codesourcery.com>
14963         * doc/extend.texi (Extended Asm): Fix typos.
14965 2015-02-10  Jakub Jelinek  <jakub@redhat.com>
14967         PR sanitizer/65004
14968         * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
14970 2015-02-10  Oleg Endo  <olegendo@gcc.gnu.org>
14972         PR target/64661
14973         * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
14974         TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
14975         TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
14976         * config/sh/constraints.md (Ara, Add): New constraints.
14977         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
14978         predicates.
14979         (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
14980         atomic_mem_operand_0.  Don't use force_reg on the memory address.
14981         (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
14982         Sra constraint.  Convert to insn_and_split.  Add workaround for
14983         PR 64974.
14984         (atomic_compare_and_swap<mode>_hard): Copy to
14985         atomic_compare_and_swap<mode>_hard_1.  Convert to insn_and_split.
14986         Use atomic_mem_operand_0 predicate.
14987         (atomic_compare_and_swap<mode>_soft_gusa,
14988         atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
14989         AraAdd constraints.
14990         (atomic_compare_and_swap<mode>_soft_tcb,
14991         atomic_compare_and_swap<mode>_soft_imask,
14992         atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
14993         atomic_mem_operand_0 predicate and SraSdd constraints.
14994         (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
14995         constraint.
14996         (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
14997         Convert to insn_and_split.  Use atomic_mem_operand_0 predicate.
14998         (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
14999         atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1.  Don't use
15000         force_reg on the memory address.
15001         (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
15002         atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
15003         atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
15004         atomic_mem_operand_1 predicate and Sra constraint.
15005         (atomic_fetch_<fetchop_name><mode>_hard): Copy to
15006         atomic_fetch_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
15007         Use atomic_mem_operand_1 predicate.
15008         (atomic_<fetchop_name><mode>_hard): Copy to
15009         atomic_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
15010         Use atomic_mem_operand_1 predicate.
15011         (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
15012         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
15013         (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1.  Convert to
15014         insn_and_split.  Use atomic_mem_operand_1 predicate.
15015         (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
15016         atomic_<fetchop_name>_fetch<mode>_hard_1.  Convert to insn_and_split.
15017         Use atomic_mem_operand_1 predicate.
15018         (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
15019         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
15020         (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
15021         in generated insn with original mem operand before emitting the insn.
15022         (atomic_fetch_<fetchop_name><mode>_soft_gusa,
15023         atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
15024         atomic_<fetchop_name>_fetch<mode>_soft_gusa,
15025         atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
15026         Use atomic_mem_operand_1 predicate and AraAdd constraints.
15027         (atomic_fetch_<fetchop_name><mode>_soft_tcb,
15028         atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
15029         atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
15030         atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
15031         atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
15032         atomic_<fetchop_name>_fetch<mode>_soft_tcb,
15033         atomic_not_fetch<mode>_soft_tcb,
15034         atomic_<fetchop_name>_fetch<mode>_soft_imask,
15035         atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
15036         atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
15037         Use atomic_mem_operand_1 predicate and SraSdd constraints.
15039 2015-02-10  Uros Bizjak  <ubizjak@gmail.com>
15041         * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
15042         and 3 earlyclobber operands.
15044 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
15046         * common.opt (fstack-reuse): Mark as optimization.
15048 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
15050         PR ipa/64982
15051         * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
15053 2015-02-10  Trevor Saunders  <tsaunders@mozilla.com>
15055         PR tree-optimization/64326
15056         * cfghooks.c (make_forwarder_block): Cap frequency of created block.
15058 2015-02-10  Rainer Emrich  <rainer@emrich-ebersheim.de>
15060         PR gcov-profile/61889
15061         * gcov-tool.c: Remove wrong #if !defined(_WIN32)
15063 2015-02-10  Richard Biener  <rguenther@suse.de>
15065         PR tree-optimization/64995
15066         * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
15067         value we use is final.
15068         (visit_reference_op_store): Always valueize op.
15069         (visit_use): Properly valueize vuses.
15071 2015-02-10  Richard Biener  <rguenther@suse.de>
15073         PR tree-optimization/64909
15074         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
15075         pass a scalar-stmt count estimate to the cost model.
15076         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
15078 2015-02-10  Alexander Monakov  <amonakov@ispras.ru>
15080         * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
15081         enabled by default together with var-tracking.
15083 2015-02-10  Nick Clifton  <nickc@redhat.com>
15085         * config/rl78/rl78.c: Remove DIV attribute code accidentally
15086         included in previous rl78 commit.
15088 2015-02-10  Richard Biener  <rguenther@suse.de>
15090         * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
15091         * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
15092         return the bitpack.
15094 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
15096         PR gcov-profile/61889
15097         * config.in: regenerate.
15098         * configure.in: Likewise.
15099         * configure.ac: Check for ftw.h.
15100         * gcov-tool.c: Check for ftw.h before using nftw.
15102 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
15104         PR lto/64076
15105         * ipa-visibility.c (update_visibility_by_resolution_info): Only
15106         assert when not in lto mode.
15108 2015-02-09  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
15110         * ira-color.c (setup_left_conflict_sizes_p): Simplify
15111         initialization/assignment of conflict_size.
15113 2015-02-09  Jan Hubicka  <hubicka@ucw.cz>
15115         PR ipa/64978
15116         * ipa-cp.c (gather_caller_stats): Skip thunks.
15117         (propagate_constants_topo): Skip aliases.
15119 2015-02-09  Kaz Kojima  <kkojima@gcc.gnu.org>
15121         PR target/64761
15122         * config/sh/sh.c (sh_option_override): Don't change
15123         -freorder-blocks-and-partition to -freorder-blocks even when
15124         unwinding is enabled.
15125         (sh_can_follow_jump): Return false if the followee jump is
15126         a crossing jump when -freorder-blocks-and-partition is specified.
15127         * config/sh/sh.md (*jump_compact_crossing): New insn.
15129 2015-02-09  Joern Rennecke  <joern.rennecke@embecosm.com>
15130             Kaz Kojima  <kkojima@gcc.gnu.org>
15132         PR target/64761
15133         * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
15134         * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
15135         (sh_can_redirect_branch): Rename to ...
15136         (sh_can_follow_jump): ... this.  Constify argument types.
15137         * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
15138         * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
15139         * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
15140         * doc/tm.texi: Regenerate.
15142 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
15144         PR sanitizer/64981
15145         * builtins.c (expand_builtin): Call targetm.expand_builtin
15146         for BUILT_IN_MD builtins regardless of asan_intercepted_p.
15148 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
15150         PR ipa/61548
15151         * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
15153 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
15155         PR ipa/63566
15156         * ipa-icf.c (set_local): New function.
15157         (sem_function::merge): Use it.
15159 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
15161         * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
15162         (add_type_duplicate): Fix comparison of BINFOs.
15164 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
15166         * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
15167         on getting VOID pointer.
15169 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
15171         PR target/64979
15172         * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
15173         va_list escapes.
15175 2015-02-09  Richard Biener  <rguenther@suse.de>
15177         * genmatch.c (replace_id): Copy expr_type.
15179 2015-02-09  Richard Biener  <rguenther@suse.de>
15181         * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
15182         (streamer_write_tree_bitfields): Declare.
15183         * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
15184         properly unpack padding.
15185         (unpack_value_fields): Inline ...
15186         (streamer_read_tree_bitfields): ... here.
15187         * tree-streamer-out.c (pack_ts_base_value_fields): Inline
15188         and properly add padding bits.
15189         (streamer_pack_tree_bitfields): Fold into ...
15190         (streamer_write_tree_bitfields): ... this new function,
15191         exposing the bitpack object.
15192         * lto-streamer-out.c (lto_write_tree_1): Call
15193         streamer_write_tree_bitfields.
15195 2015-02-09  Richard Biener  <rguenther@suse.de>
15197         PR tree-optimization/54000
15198         * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
15199         (struct ivopts_data): Add loop_loc member.
15200         (tree_ssa_iv_optimize_loop): Dump loop location.
15201         (create_new_ivs): Likewise, also dump number of IVs generated.
15203 2015-02-09  Martin Liska  <mliska@suse.cz>
15205         * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
15206         just if not yet registered.
15207         (ipa_icf_generate_summary): Register callgraph hooks.
15209 2015-02-08  Andrew Pinski  <apinski@cavium.com>
15211         * config/aarch64/aarch64.c (gty_dummy): Delete.
15213 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
15215         PR ipa/63566
15216         * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
15217         (cgraph_node::local_p): Remove thunk related FIXME.
15219 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
15221         PR ipa/63566
15222         * i386.c (ix86_function_regparm): Look through aliases to see if callee
15223         is local and optimized.
15224         (ix86_function_sseregparm): Likewise; also use target's SSE math
15225         settings; error out instead of silently generating wrong code
15226         on mismatches.
15227         (init_cumulative_args): Look through aliases.
15229 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
15231         PR ipa/63566
15232         * ipa-split.c (execute_split_functions): Split if function has aliases.
15234 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
15236         PR ipa/63566
15237         * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
15238         aliases before trying to expand it.
15239         (cgraph_node::expand_thunk): Fix formating.
15241 2015-02-07  Sandra Loosemore  <sandra@codesourcery.com>
15243         * doc/extend.texi (Function Attributes [naked]): Copy-edit.
15244         (Using Assembly Language with C): Expand introduction.
15245         (Basic Asm): Copy-edit.  Add more information about uses of
15246         basic asm.
15247         (Extended Asm): Copy-edit.  Document new escape syntax and
15248         %l[label] syntax.
15249         (Global Reg Vars): Copy-edit.
15250         (Local Reg Vars): Likewise.
15252 2015-02-06  David Edelsohn  <dje.gcc@gmail.com>
15254         PR debug/2714
15255         PR bootstrap/64256
15256         * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
15257         (DBX_CONTIN_CHAR): Define.
15259 2015-02-06  Sebastian Pop  <s.pop@samsung.com>
15260             Brian Rzycki  <b.rzycki@samsung.com>
15262         PR tree-optimization/64878
15263         * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
15264         (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
15265         Stop recursion at loop phi nodes after having visited a loop phi node.
15267 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
15269         * toplev.c (process_options): Change flag_ipa_ra before creating
15270         optimization_{default,current}_node.
15272         PR ipa/64896
15273         * cgraphunit.c (cgraph_node::expand_thunk): If
15274         restype is not is_gimple_reg_type nor the thunk_fndecl
15275         returns aggregate_value_p, set restmp to a temporary variable
15276         instead of resdecl.
15278 2015-02-06  Vladimir Makarov  <vmakarov@redhat.com>
15280         * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
15282 2015-02-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
15284         PR target/64205
15285         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
15286         add a general secondary reload handler for SDmode, unless we have
15287         both read/write support for SDmode.
15289 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
15291         PR middle-end/64937
15292         * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
15293         Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
15294         or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
15295         1 before, push it to abstract_vec.
15296         (dwarf2out_abstract_function): Adjust caller.  Don't call
15297         set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
15298         DECL_ABSTRACT_P flags for all abstract_vec elts.
15300 2015-02-06  Renlin Li  <renlin.li@arm.com>
15302         * tree-ssa-forwprop.c (execute): Keep location info while rewrite
15303         complex gimple.
15304         * tree-ssa.c (execute_update_addresses_taken): Likewise.
15306 2015-02-06  Jeff Law  <law@redhat.com>
15308         PR target/64889
15309         * config/h8300/h8300.c (push): New argument "in_prologue".
15310         Pass "in_prologue" along to "F".
15311         (h8300_push_pop): Corresponding changes.
15312         (h8300_expand_prologue): Likewise.
15313         (h8300_swap_into_er6): Likewise.  Do not set RTX_FRAME_RELATED_P.
15315 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
15317         PR rtl-optimization/64957
15318         PR debug/64817
15319         * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
15320         IOR rather than for AND.
15322 2015-02-06  Eric Botcazou  <ebotcazou@adacore.com>
15324         PR target/62631
15325         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
15326         of shift-add and (add + shift) operations.  Rename local variable.
15328 2015-02-05  Jeff Law  <law@redhat.com>
15330         PR target/17306
15331         * config/h8300/constraints.md (U): Correctly dectect
15332         "eightbit_data" memory addresses.
15333         * config/h8300/h8300.c (eightbit_constant_address_p): Also
15334         handle (const (plus (symbol_ref (x)))) where x is declared
15335         as an 8-bit data memory address.
15336         * config/h8300/h8300.md (call, call_value): Correctly detect
15337         "funcvec" functions.
15339         PR target/43264
15340         * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
15341         24 to 28 bits for the H8/300.
15343 2015-02-06  Alan Modra  <amodra@gmail.com>
15345         PR target/64876
15346         * config/rs6000/rs6000.c (chain_already_loaded): New function.
15347         (rs6000_call_aix): Use it.
15349 2015-02-05  Jan Hubicka <hubicka@ucw.cz>
15351         * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
15352         check.
15354 2015-02-05  Joern Rennecke  <joern.rennecke@embecosm.com>
15356         * config/h8300/constraints.md ("U" constraint): Use strict
15357         variant of REG_OK_FOR_BASE_P after reload has started.
15359 2015-02-04  Mantas Mikaitis  <mantas.mikaitis@arm.com>
15361         * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
15362         define to zero if !TARGET_NEON.
15363         (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
15365 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
15366             Trevor Saunders  <tsaunders@mozilla.com>
15368         PR ipa/61548
15369         * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
15371 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
15373         PR ipa/61548
15374         * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
15375         when removing varpool nodes.
15377 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
15379         PR ipa/61548
15380         * varpool.c (varpool_node::remove): Fix order of variables.
15382 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
15384         PR ipa/64686
15385         * ipa-inline.c (inline_small_functions): Fix ordering issue between
15386         speculation resolution and key updates.
15388 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
15390         * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
15391         about not letting any speculative edges unupdated.
15393 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
15395         PR gcov/64123
15396         * gcov-io.c (gcov_var): Export.
15398 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
15400         PR middle-end/64922
15401         * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
15402         edges that become speculative.
15404 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
15406         * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
15407         or DW_LANG_Fortran08.
15408         (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
15409         DW_LANG_Fortran08.
15410         (gen_compile_unit_die): Handle "GNU Fortran2003" and
15411         "GNU Fortran2008" language strings.
15412         * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
15413         * langhooks.h (lang_GNU_Fortran): New prototype.
15414         * langhooks.c (lang_GNU_Fortran): New function.
15415         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
15416         lang_GNU_Fortran.
15418 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
15420         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
15421         (RTX_OK_FOR_OLO10_P): Likewise.
15423 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
15425         * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
15427 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
15429         PR middle-end/64922
15430         * gimple.c: Include gimple-ssa.h.
15431         (maybe_remove_unused_call_args): New function.
15432         * gimple.h (maybe_remove_unused_call_args): Declare.
15433         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
15434         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
15435         * gimple-fold.c (gimple_fold_call): Likewise.
15437 2015-02-04  H.J. Lu  <hongjiu.lu@intel.com>
15439         PR rtl-optimization/64905
15440         * lra-eliminations.c (setup_can_eliminate): Clear hard frame
15441         pointer alignment if it isn't needed.
15443 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
15445         * config/aarch64/aarch64-cores.def: Add cortex-a72 and
15446         cortex-a72.cortex-a53.
15447         * config/aarch64/aarch64-tune.md: Regenerate.
15448         * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
15450 2015-02-04  Nick Clifton  <nickc@redhat.com>
15452         * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
15453         inside a MEM.
15455 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
15457         * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
15458         (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
15459         (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
15460         of DEF_BUILTIN.
15461         (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
15462         BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
15463         DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
15464         (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
15465         BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
15466         BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
15467         DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
15468         * tree-core.h (enum built_in_function): In between
15469         BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
15470         for builtins that use DEF_BUILTIN_CHKP macro.
15472 2015-02-04  Alexandre Oliva <aoliva@redhat.com>
15474         PR debug/64817
15475         * cfgexpand.c (expand_debug_expr): Compute unsignedp from
15476         operands for tcc_comparison exprs.  Fix typos.
15478         PR debug/64817
15479         * simplify-rtx.c (simplify_binary_operation_1): Simplify one
15480         of two XORs that have an intervening AND or IOR.
15482         PR debug/64817
15483         * simplify-rtx.c (simplify_binary_operation_1): Rewrite
15484         simplification of XOR of AND to not allocate new rtx before
15485         committing to a simplification.
15487 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15489         * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
15490         manual swaps in all peepholes.
15492 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15494         * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
15495         of manual swapping implementation.
15496         (aarch64_expand_vec_perm_const_1): Likewise.
15498 2015-02-04  James Greenhalgh <james.greenhalgh@arm.com>
15500         * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
15501         (generic_addrcost_table): Remove NAMED_PARAM.
15502         (cortexa57_addrcost_table): Likewise.
15503         (xgene1_addrcost_table): Likewise.
15504         (generic_regmove_table): Likewise.
15505         (cortexa53_regmove_table): Likewise.
15506         (xgene1_regmove_table): Likewise.
15507         (generic_vector_table): Likewise.
15508         (cortexa57_vector_table): Likewise.
15509         (xgene1_vector_table): Likewise.
15510         (generic_tunings): Likewise.
15511         (cortexa53_tunings): Likewise.
15512         (cortexa57_tunings): Likewise.
15513         (xgene1_tunings): Likewise.
15515 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
15517         * config/arm/arm-cores.def: Add cortex-a72 and
15518         cortex-a72.cortex-a53.
15519         * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
15520         * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
15521         * config/arm/arm-tune.md: Regenerate.
15522         * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
15523         "cortex-a72.cortex-a53".
15524         * doc/invoke.texi (ARM Options/-mtune): Likewise.
15526 2015-02-04  Nick Clifton  <nickc@redhat.com>
15528         PR target/64408
15529         * config/fr30/predicates.md (di_operand): Add SUBREG to the list
15530         of accepted codes.
15531         (nonimmediate_di_operand): Likewise.
15533         * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
15534         prefixes of known F5 using MSP430 MCUs.
15536 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15538         * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
15539         * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
15540         instead of __builtin_sqrt.
15542 2015-02-04  Ilya Enkovich  <ilya.enkovich@intel.com>
15544         * varasm.c (do_assemble_alias): Follow transparent alias
15545         chain for target.
15546         (default_assemble_visibility): Follow transparent alias
15547         chain for decl name.
15549 2015-02-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
15551         PR middle-end/62103
15552         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
15553         to compute size of referenced value in the constant case.
15555 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
15557         PR rtl-optimization/64756
15558         * cse.c (invalidate_dest): New function.
15559         (cse_insn): Use it.  If dest != SET_DEST (sets[i].rtl) and
15560         HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
15561         invalidate and do not record it.
15563 2015-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
15565         PR target/64660
15566         * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
15567         atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
15568         atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
15569         atomic_nand<mode>_soft_tcb): New insns.
15570         (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
15571         Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
15572         (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
15573         Split into atomic_not_fetchsi_hard if operands[0] is unused.
15574         (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
15575         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
15576         (atomic_fetch_not<mode>_hard): Convert to insn_and_split.  Split into
15577         atomic_not<mode>_hard if operands[0] is unused.
15578         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
15579         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
15580         if operands[0] is unused.
15581         (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split.  Split
15582         into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
15583         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
15584         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
15585         unused.
15586         (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split.  Split
15587         into atomic_not<mode>_soft_tcb if operands[0] is unused.
15588         (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
15589         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
15590         if operands[0] is unused.
15591         (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split.  Split
15592         into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
15593         (atomic_fetch_nandsi_hard): Convert to insn_and_split.  Split into
15594         atomic_nand_fetchsi_hard if operands[0] is unused.
15595         (atomic_fetch_nand<mode>_hard): Convert to insn_and_split.  Split into
15596         atomic_nand<mode>_hard if operands[0] is unused.
15597         (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split.  Split
15598         into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
15599         (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split.  Split
15600         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
15601         (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split.  Split
15602         into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
15603         (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
15604         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
15605         (atomic_not_fetch<mode>_hard): Convert to insn_and_split.  Split into
15606         atomic_not<mode>_hard if operands[0] is unused.
15607         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
15608         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
15609         unused.
15610         (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
15611         into atomic_not<mode>_soft_tcb if operands[0] is unused.
15612         (atomic_nand_fetch<mode>_hard): Convert to insn_and_split.  Split into
15613         atomic_nand<mode>_hard if operands[0] is unused.
15614         (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
15615         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
15617 2015-02-03  David Malcolm  <dmalcolm@redhat.com>
15619         PR jit/64810
15620         * Makefile.in (GCC_OBJS): Add gcc-main.o.
15621         * gcc-main.c: New file, containing "main" taken from gcc.c.
15622         * gcc.c (do_self_spec): Free decoded_options.
15623         (class driver): Move declaration to gcc.h.
15624         (main): Move declaration and implementation to new file
15625         gcc-main.c.
15626         (driver_get_configure_time_options): New function.
15627         * gcc.h (class driver): Move this declaration here, from
15628         gcc.c.
15629         (driver_get_configure_time_options): New declaration.
15631 2015-02-03  Jan Hubicka  <hubicka@ucw.cz>
15633         * ipa-inline-analysis.c (simple_edge_hints): Fix check for
15634         cross-module inlining.
15635         * cgraph.h (cgraph_node): Add flag merged.
15636         * ipa-icf.c (sem_function::merge): Maintain it.
15638 2015-02-03  Richard Sandiford  <richard.sandiford@arm.com>
15640         * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
15641         instead of OBJECT_P.
15643 2015-02-03  Eric Botcazou  <ebotcazou@adacore.com>
15645         PR target/62631
15646         * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
15647         (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
15648         * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
15649         int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
15651 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
15653         PR other/63504
15654         * combine.c (reg_n_sets_max): New variable.
15655         (can_change_dest_mode, reg_nonzero_bits_for_combine,
15656         reg_num_sign_bit_copies_for_combine, get_last_value_validate,
15657         get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
15658         (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
15659         (rest_of_handle_combine): Initialize reg_n_sets_max.
15661 2015-02-02  Jan Hubicka  <hubicka@ucw.cz>
15663         * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
15664         if some always_inline was inlined, apply changes before inlining
15665         heuristically.
15667 2015-02-02  David Malcolm  <dmalcolm@redhat.com>
15669         PR jit/64810
15670         * config/arm/arm.c (arm_option_override): Set
15671         arm_selected_arch/cpu/tune to NULL on entry.
15673 2015-02-02  Tejas Belagod  <tejas.belagod@arm.com>
15674             Andrew Pinski  <pinskia@gcc.gnu.org>
15675             Jakub Jelinek  <jakub@gcc.gnu.org>
15677         PR target/64231
15678         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
15679         integer typing for small model. Use IN_RANGE.
15681 2015-02-02  Richard Biener  <rguenther@suse.de>
15683         * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
15684         * tree-vrp.c (vrp_valueize_1): Likewise.
15686 2015-02-02  Alan Modra  <amodra@gmail.com>
15688         * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
15689         than mem for toc_restore.
15690         * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
15691         (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
15692         (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
15694 2015-02-01  David Edelsohn  <dje.gcc@gmail.com>
15696         PR target/64047
15697         * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
15698         explicit default options.
15700 2015-02-01  Jan Hubicka  <hubicka@ucw.cz>
15702         PR ipa/64872
15703         * ipa-utils.c (ipa_merge_profiles): Add release argument.
15704         * ipa-icf.c (sem_function::merge): Do not release body when merging.
15705         * ipa-utils.h (ipa_merge_profiles): Update prototype.
15707 2015-02-01  Jakub Jelinek  <jakub@redhat.com>
15709         PR debug/64817
15710         * cfgexpand.c (deep_ter_debug_map): New variable.
15711         (avoid_deep_ter_for_debug): New function.
15712         (expand_debug_expr): If TERed SSA_NAME is in
15713         deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
15714         instead of trying to expand SSA_NAME's def stmt.
15715         (expand_debug_locations): When expanding debug bind
15716         of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
15717         temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
15718         value.
15719         (pass_expand::execute): Call avoid_deep_ter_for_debug on
15720         all debug bind stmts.  Delete deep_ter_debug_map after
15721         expand_debug_location if non-NULL and clear it.
15723 2015-02-01  Oleg Endo  <olegendo@gcc.gnu.org>
15725         PR target/64851
15726         * config/sh/sync.md (atomic_fetch_notsi_hard,
15727         atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
15728         atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
15729         atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
15730         atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
15731         atomic_not_fetch<mode>_soft_imask): New insns.
15733 2015-02-01  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
15735         * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
15736         (rank_for_schedule_debug): Split from ...
15737         (rank_for_schedule): ... this.
15738         (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
15739         * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
15741 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
15743         * doc/md.texi (Machine Constraints): Alphabetize table by target.
15744         * doc/extend.texi (x86 Variable Attributes): Move section to
15745         correct alphabetization after renaming.
15746         (x86 Type Attributes): Likewise.
15747         (Target Builtins): Re-alphabetize menu.
15748         (x86 Built-in Functions): Move section to correct alphabetization
15749         after renaming.
15750         (x86 transactional memory intrinsics): Likewise.
15751         * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
15752         and x86 Windows Options in table and menu.
15753         (x86 Options): Move section to correct alphabetization after
15754         renaming.
15755         (x86 Windows Options): Likewise.
15757 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
15759         * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
15760         preferred names of the architecture and its 32- and 64-bit
15761         variants.
15762         * doc/invoke.texi: Likewise.
15763         * doc/md.texi: Likewise.
15765 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
15767         PR target/64882
15768         * config/i386/predicates.md (address_no_seg_operand): Reject
15769         non-CONST_INT_P operands in invalid mode.
15771 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
15773         * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
15774         address_operand 0.  Rename from *prefetch_prefetchwt1_<mode>.
15775         * config/i386/predicates.md (address_no_seg_operand): Call
15776         address_operand with VOIDmode.
15777         (vsib_address_operand): Ditto.
15778         (address_mpx_no_base_operand): Ditto.
15779         (address_mpx_no_index_operand): Ditto.
15781 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
15783         PR target/64688
15784         * lra-constraints.c (original_subreg_reg_mode): New.
15785         (simplify_operand_subreg): Try to simplify subreg of const.  Use
15786         original_subreg_reg_mode for it.
15787         (swap_operands): Update original_subreg_reg_mode.
15788         (curr_insn_transform): Set up original_subreg_reg_mode.
15790 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
15792         PR target/64617
15793         * lra-constraints.c (prohibited_class_reg_set_mode_p): New
15794         function.
15795         (process_alt_operands): Use it.
15796         (curr_insn_transform): Check the optional reload pseudo class is
15797         ok for the mode.
15799 2015-01-30  Joseph Myers  <joseph@codesourcery.com>
15801         * diagnostic.c (fatal_error (const char *, ...)): Remove function.
15802         * diagnostic-core.h (fatal_error (const char *, ...)): Remove
15803         prototype.
15804         * toplev.h (init_asm_output): Update comment on use of
15805         UNKNOWN_LOCATION with fatal_error.
15806         * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
15807         config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
15808         config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
15809         config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
15810         config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
15811         config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
15812         config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
15813         ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
15814         lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
15815         lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
15816         tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
15817         fatal_error changed to pass input_location as first argument.
15819 2015-01-30  Martin Liska  <mliska@suse.cz>
15821         * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
15822         in #pragma GCC diagnostic guards.
15824 2015-01-30  Richard Biener  <rguenther@suse.de>
15826         PR tree-optimization/64829
15827         * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
15828         not add a widening conversion pattern but hand off extra
15829         widenings to callers.
15830         (vect_recog_widen_mult_pattern): Handle extra widening produced
15831         by vect_handle_widen_op_by_const.
15832         (vect_recog_widen_shift_pattern): Likewise.
15833         (vect_pattern_recog_1): Remove excess vertical space in dumping.
15834         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
15835         (vect_init_vector_1): Likewise.
15836         (vect_get_vec_def_for_operand): Likewise.
15837         (vect_finish_stmt_generation): Likewise.
15838         (vectorizable_load): Likewise.
15839         (vect_analyze_stmt): Likewise.
15840         (vect_is_simple_use): Likewise.
15842 2015-01-29  Jeff Law  <law@redhat.com>
15844         * combine.c (try_combine): Fix typo in comment.
15846 2015-01-29  Segher Boessenkool  <segher@kernel.crashing.org>
15848         PR target/64580
15849         * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
15850         (rs6000_stack_info): Add assert.
15851         (rs6000_output_savres_externs): New function, split off from...
15852         (rs6000_output_function_prologue): ... here.  Do not call it for
15853         thunks.
15855 2015-01-29  Jeff Law  <law@redhat.com>
15857         PR target/15184
15858         * combine.c (try_combine): If I0 is a memory load and I3 a store
15859         to a related address, increase the "goodness" of doing a 4-insn
15860         combination with I0-I3.
15861         (make_field_assignment): Handle SUBREGs in the ior+and case.
15863 2015-01-29  Yuri Rumyantsev  <ysrumyan@gmail.com>
15865         PR tree-optimization/64746
15866         * tree-if-conv.c (mask_exists): New function.
15867         (predicate_mem_writes): Save created mask with given size for further
15868         use.
15869         (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
15870         (ifcvt_repair_bool_pattern): Collect all statements that are root
15871         of bool pattern and use iterative algorithm to remove multiple uses
15872         of predicates, display number of required iterations.
15874 2015-01-29  Richard Biener  <rguenther@suse.de>
15876         PR tree-optimization/64853
15877         * tree-vrp.c (vrp_valueize_1): Do not return anything if the
15878         stmt will get simulated again.
15879         * tree-ssa-ccp.c (valueize_op_1): Likewise.
15881 2015-01-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15883         * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
15884         return_in_pc.  Remove redundant assignments.
15885         (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
15886         (arm_expand_epilogue): Don't compare boolean with true in if condition.
15888 2015-01-29  Uros Bizjak  <ubizjak@gmail.com>
15890         * config/i386/i386.c (ix86_mode_after): Make static.
15892 2015-01-29  Richard Biener  <rguenther@suse.de>
15894         PR tree-optimization/64844
15895         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
15896         dump cost model analysis.
15897         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
15898         Do not register adjusted load/store costs here.
15900 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
15901             Uros Bizjak  <ubizjak@gmail.com>
15903         * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
15904         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
15905         using x86_use_pseudo_pic_reg.
15906         * config/i386/i386.c (ix86_conditional_register_usage): Remove
15907         support for fixed PIC register.
15908         (ix86_use_pseudo_pic_reg): Not static any more.
15910 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
15912         PR middle-end/64805
15913         * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
15914         to avoid error in cgraph node verification.
15916 2015-01-29  Marek Polacek  <polacek@redhat.com>
15918         * doc/standards.texi: Reflect that the default for C is gnu11.
15920 2015-01-29  Kaz Kojima  <kkojima@gcc.gnu.org>
15922         PR target/64761
15923         * reorg.c (switch_text_sections_between_p): New function.
15924         (relax_delay_slots): Call it when testing if the jump insn
15925         is removable.  Use targetm.can_follow_jump when testing if
15926         the conditional branch can follow an unconditional jump.
15928 2015-01-27  Caroline Tice  <cmtice@google.com>
15930         Committing VTV Cywin/Ming patch for Patrick Wollgast
15931         * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
15932         if -fvtable-verify=preinit/std is used.
15933         * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
15934         * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
15935         * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
15936         if -fvtable-verify=preinit/std is used.
15937         * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
15938         * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
15939         if -fvtable-verify=preinit/std is used.
15940         * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
15941         * config/i386/mingw32.h (LIB_SPEC): Likewise.
15942         * varasm.c (assemble_variable): Add code to properly set the comdat
15943         section and name for the .vtable_map_vars section in case the
15944         target is PE or COFF.
15946 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
15948         PR ipa/64801
15949         * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
15950         make sane BB profile.
15951         (cgraph_node::expand_thunk): Make sane BB profile.
15952         (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
15953         * cgraph.h (init_lowered_empty_function): Update prototype.
15954         * config/i386/i386.c (make_resolver_func): Update call.
15955         * predict.c (gate): Disable branch prediction pass if
15956         profile is already there.
15958 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
15960         * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
15961         * opth-gen.awk: Likewise.
15962         * common.opt: Mark flag_fp_contract_mode as Optimization.
15964 2015-01-29  Bernd Edlinger  <bernd.edlinger@hotmail.de>
15966         * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
15967         * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
15969 2015-01-28  Oleg Endo  <olegendo@gcc.gnu.org>
15971         PR target/64659
15972         * config/sh/predicates.md (atomic_arith_operand,
15973         atomic_logical_operand): Remove.
15974         * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
15975         (atomic_arith_operand_0): New predicate.
15976         (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
15977         Use atomic_arith_operand_0 for input values.
15978         (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
15979         atomic_compare_and_swap<mode>_soft_gusa,
15980         atomic_compare_and_swap<mode>_soft_tcb,
15981         atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
15982         arith_reg_operand instead of register_operand.
15983         (atomic_exchange<mode>): Use arith_reg_dest for output value.  Use
15984         atomic_arith_operand_0 for newval input.
15985         (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
15986         atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
15987         atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
15988         arith_reg_operand instead of register_operand.
15989         (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
15990         fetchop_predicate_1, fetchop_constraint_1_llcs,
15991         fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
15992         fetchop_constraint_1_imask): New code iterator attributes.
15993         (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
15994         register_operand.  Use fetchop_predicate_1.
15995         (atomic_fetch_<fetchop_name>si_hard,
15996         atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
15997         register_operand.  Use fetchop_predicate_1, fetchop_constraint_1_llcs.
15998         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
15999         and arith_reg_operand instead of register_operand.  Use
16000         fetchop_predicate_1, fetchop_constraint_1_gusa.
16001         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
16002         and arith_reg_operand instead of register_operand.  Use
16003         fetchop_predicate_1, fetchop_constraint_1_tcb.  Adjust asm sequence
16004         to allow R0 usage.
16005         (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
16006         and arith_reg_operand instead of register_operand.  Use
16007         fetchop_predicate_1, fetchop_constraint_1_imask.  Adjust asm sequence
16008         to allow R0 usage.
16009         (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
16010         register_operand.  Use atomic_logical_operand_1.
16011         (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
16012         atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
16013         arith_reg_operand instead of register_operand.
16014         (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
16015         Use arith_reg_dest and arith_reg_operand instead of register_operand.
16016         Use logical_operand and rK08.  Adjust asm sequence to allow R0 usage.
16017         (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
16018         register_operand.  Use fetchop_predicate_1.
16019         (atomic_<fetchop_name>_fetchsi_hard,
16020         atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
16021         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
16022         fetchop_constraint_1_llcs.
16023         (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
16024         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
16025         fetchop_constraint_1_gusa.
16026         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
16027         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
16028         fetchop_constraint_1_tcb.  Adjust asm sequence to allow R0 usage.
16029         (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
16030         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
16031         fetchop_constraint_1_imask.  Adjust asm sequence to allow R0 usage.
16032         (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
16033         register_operand.  Use atomic_logical_operand_1.
16034         (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
16035         atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
16036         arith_reg_operand instead of register_operand.
16037         (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
16038         arith_reg_operand instead of register_operand.  Use logical_operand
16039         and K08.  Adjust asm sequence to allow R0 usage.
16040         (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
16041         arith_reg_operand instead of register_operand.  Use logical_operand
16042         and K08.
16044 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
16046         PR other/63504
16047         * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
16048         Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
16049         (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
16050         only get_full_len HOST_WIDE_INTs from get_val () array rather than
16051         all bits in *val_wide.
16053 2015-01-28  Jan Hubicka  <hubicka@ucw.cz>
16055         * varpool.c (tls_model_names): Fix names.
16056         (varpool_node::dump): Dump tls- prefix for tls models.
16058 2015-01-28  Thomas Schwinge  <thomas@codesourcery.com>
16059             Bernd Schmidt  <bernds@codesourcery.com>
16060             Nathan Sidwell  <nathan@codesourcery.com>
16062         * config/nvptx/mkoffload.c: New file.
16063         * config/nvptx/t-nvptx: Add build rules for it.
16064         * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
16065         (extra_programs): Add mkoffload.
16066         * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
16067         function.
16068         (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
16070 2015-01-28  Yuri Rumyantsev  <ysrumyan@gmail.com>
16072         PR middle-end/64809
16073         * cfgexpand.c (reorder_operands): Skip debug gimples.
16075 2015-01-28  Ilya Enkovich  <ilya.enkovich@intel.com>
16077         PR tree-optimization/64277
16078         * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
16079         range info when possible to refine estimation.
16081 2015-01-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
16083         PR tree-optimization/64718
16084         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
16085         be a 16bit unsigned integer when n->range is 16.
16086         (bswap_replace): Convert src to that type if necessary for all bswap
16087         sizes.  Fix rotation right notation in nearby comment.  Use bswap_type
16088         set in pass_optimize_bswap::execute ().
16090 2015-01-28  James Greenhalgh  <james.greenhalgh@arm.com>
16092         * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
16093         * config/aarch64/aarch64-simd-builtins.def (abs): Split by
16094         integer and floating point variants.
16095         * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
16097 2015-01-28  Robert Suchanek  <robert.suchanek@imgtec.com>
16099         * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
16100         for all vector modes.
16102 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
16104         PR bootstrap/64612
16105         * doc/sourcebuild.texi (comdat_group): Document.
16107 2015-01-28  Terry Guo  <terry.guo@arm.com>
16109         * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
16111 2015-01-27  David Malcolm  <dmalcolm@redhat.com>
16113         * toplev.c (print_version): Add param "show_global_state", and
16114         only print GGC and plugin information if it is true.
16115         (init_asm_output): Pass in "true" for the new param when calling
16116         print_version.
16117         (process_options): Likewise.
16118         (toplev::main): Likewise.
16119         * toplev.h (print_version): Add new param to decl.
16121 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
16123         PR ipa/60871
16124         PR ipa/64139
16125         * tree.c (lookup_binfo_at_offset): New function.
16126         (get_binfo_at_offset): Use it.
16128 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
16130         PR ipa/64282
16131         * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
16132         on vtable being vtable.
16134 2015-01-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
16136         * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
16137         * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
16138         -mhotpatch= option.
16139         * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
16140         -mno-hotpatch options.  Change syntax of -mhotpatch= option.
16141         * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
16142         Renamed.
16143         (s390_hotpatch_trampoline_halfwords_max): Renamed.
16144         (s390_hotpatch_hw_max): New name.
16145         (s390_hotpatch_trampoline_halfwords): Renamed.
16146         (s390_hotpatch_hw_before_label): New name.
16147         (get_hotpatch_attribute): Removed.
16148         (s390_hotpatch_hw_after_label): New name.
16149         (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
16150         attribute.
16151         (s390_attribute_table): Ditto.
16152         (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
16153         (s390_function_num_hotpatch_hw): New name.
16154         Remove special handling of inline functions and hotpatching.
16155         Return number of nops before and after the function label.
16156         (s390_can_inline_p): Removed.
16157         (s390_asm_output_function_label): Emit a configurable number of nops
16158         after the function label.
16159         (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
16160         (TARGET_CAN_INLINE_P) Removed.
16161         (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
16163 2015-01-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
16164             Jiong Wang  <jiong.wang@arm.com>
16166         * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
16167         of scratch reg.
16168         (cb<optab><mode>1): Likewise.
16169         * config/aarch64/iterators.md (bcond): New define_code_attr.
16171 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16173         * config/s390/s390.c (s390_memory_move_cost): Increase costs for
16174         memory accesses.
16176 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16178         * config/s390/s390.c (s390_register_move_cost): Increase costs for
16179         FPR->GPR moves.
16181 2015-01-27  Richard Biener  <rguenther@suse.de>
16183         * tree-vrp.c (update_value_range): Intersect the range with
16184         old recorded SSA name range information.
16186 2015-01-27  Nick Clifton  <nickc@redhat.com>
16188         * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
16189         BC, DE and HL registers directly, not via AX.
16190         When decrementing the stack pointer by a large amount, transfer SP
16191         into AX and perform the subtraction there.
16192         (rl78_expand_epilogue): Perform the inverse of the above
16193         enhancements.
16195 2015-01-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16197         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
16199 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
16200             Yury Gribov  <y.gribov@samsung.com>
16202         PR ubsan/64741
16203         * ubsan.c (ubsan_source_location): Refactor code.
16204         (ubsan_type_descriptor): Update type size. Refactor code.
16206 2015-01-27  Richard Biener  <rguenther@suse.de>
16208         PR tree-optimization/56273
16209         PR tree-optimization/59124
16210         PR tree-optimization/64277
16211         * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
16212         from the first VRP pass.
16214 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
16216         PR ipa/64776
16217         * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
16218         handle the first argument in the same loop as all the other arguments.
16220         PR rtl-optimization/61058
16221         * jump.c (cleanup_barriers): Update basic block boundaries
16222         if BLOCK_FOR_INSN is non-NULL on PREV.
16224 2015-01-27  Ilya Enkovich  <ilya.enkovich@intel.com>
16226         * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
16227         bounds narrowing, already instrumented calls and calls to
16228         not instrumentable functions.
16230 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
16232         PR tree-optimization/64807
16233         * wide-int.cc (wi::divmod_internal): Clear
16234         b_dividend[dividend_blocks_needed].
16236 2015-01-26  DJ Delorie  <dj@redhat.com>
16238         * config/rl78/rl78.c (move_elim_pass): Don't optimize away
16239         volatile memory references.
16241 2015-01-26  Oleg Endo  <olegendo@gcc.gnu.org>
16243         PR target/49263
16244         * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
16245         remove_insn.
16246         * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
16247         shifts if it already fits into K08.
16249 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
16251         PR ipa/64730
16252         * ipa-inline.c (inline_small_functions): Print "unknown" even
16253         if edge->call_stmt is non-NULL, but has builtins or unknown
16254         location.
16256         PR middle-end/64421
16257         * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
16258         with asterisk, skip the first character.
16260 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
16262         PR target/64806
16263         * config/i386/i386 (feature_priority): Revert the last P_POPCNT
16264         order change.
16266 2015-01-26  Uros Bizjak  <ubizjak@gmail.com>
16268         PR target/64795
16269         * config/i386/i386.md (*movdi_internal): Also check operand 0
16270         to determine TYPE_LEA operand.
16271         (*movsi_internal): Ditto.
16273 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
16275         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
16276         OPTION_MASK_QUAD_MEMORY_ATOMIC.
16278 2015-01-26  Renlin Li  <renlin.li@arm.com>
16280         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
16281         the comment.
16282         * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
16283         for higher part.
16285 2015-01-26  Richard Biener  <rguenther@suse.de>
16287         PR middle-end/64764
16288         * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
16289         combining two BIT_AND_EXPR predicates.
16291 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
16293         PR bootstrap/64754
16294         * tree-ssa-structalias.c (new_var_info): Initialize ruid.
16296 2015-01-26  Terry Guo  <terry.guo@arm.com>
16298         * config/arm/arm.c (arm_file_start): Update the assignment of
16299         Tag_ABI_HardFP_use.
16301 2015-01-25  James Greenhalgh  <james.greenhalgh@arm.com>
16303         * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
16304         pipeline model.
16305         config/arm/arm.md: Include the new Cortex-A57 model.
16306         (generic_sched): Don't use generic_sched when tuning for
16307         Cortex-A57.
16309 2015-01-25  Allan Sandfeld Jensen  <sandfeld@kde.org>
16310             Uros Bizjak  <ubizjak@gmail.com>
16312         * config/i386/i386.c (get_builtin_code_for_version): Add
16313         support for BMI and BMI2 multiversion functions.
16315 2015-01-25  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
16317         * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
16318         (extract_bit_field): Likewise.
16319         (extract_low_bits): Likewise.
16320         (expand_mult): Likewise.
16321         (expand_mult_highpart_adjust): Likewise.
16323 2015-01-24  H.J. Lu  <hongjiu.lu@intel.com>
16325         * config/i386/driver-i386.c (host_detect_local_cpu): Check new
16326         Silvermont, Haswell, Broadwell and Knights Landing model numbers.
16327         * config/i386/i386.c (processor_model): Add
16328         M_INTEL_COREI7_BROADWELL.
16329         (arch_names_table): Add "broadwell".
16331 2015-01-24  Oleg Endo  <olegendo@gcc.gnu.org>
16333         PR target/49263
16334         PR target/53987
16335         PR target/64345
16336         PR target/59533
16337         PR target/52933
16338         PR target/54236
16339         PR target/51244
16340         * config/sh/sh-protos.h
16341         (sh_extending_set_of_reg::can_use_as_unextended_reg,
16342         sh_extending_set_of_reg::use_as_unextended_reg,
16343         sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
16344         sh_is_movrt_insn, sh_insn_operands_modified_between_p,
16345         sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
16346         sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
16347         (sh_treg_insns): New class.
16348         * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
16349         (scope_counter): New class.
16350         (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
16351         sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
16352         sh_extending_set_of_reg::can_use_as_unextended_reg,
16353         sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
16354         sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
16355         sh_split_treg_set_expr): New functions.
16356         (addsubcosts): Handle treg_set_expr.
16357         (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
16358         (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
16359         (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
16360         (sh_insn_operands_modified_between_p): Make non-static.
16361         * config/sh/predicates.md (zero_extend_movu_operand): Allow
16362         simple_mem_operand in addition to displacement_mem_operand.
16363         (zero_extend_operand): Don't allow zero_extend_movu_operand.
16364         (treg_set_expr, treg_set_expr_not_const01,
16365         arith_reg_or_treg_set_expr): New predicates.
16366         * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
16367         arith_or_int_operand instead of logical_operand.  Convert to
16368         insn_and_split.  Try to optimize constant operand in splitter.
16369         (tsthi_t, tstqi_t): Fold into *tst<mode>_t.  Convert to insn_and_split.
16370         (*tstqi_t_zero): Delete.
16371         (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
16372         (tstsi_t_and_not): Delete.
16373         (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
16374         Convert to insn_and_split.
16375         (unnamed split, tstsi_t_zero_extract_xor,
16376         tstsi_t_zero_extract_subreg_xor_little,
16377         tstsi_t_zero_extract_subreg_xor_big): Delete.
16378         (*tstsi_t_shift_mask): New insn_and_split.
16379         (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
16380         to recombine with surrounding insns when splitting.
16381         (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
16382         (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
16383         (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
16384         *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
16385         (*cbranch_div0s: Delete.
16386         (*addc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
16387         Try to recombine with surrounding insns when splitting.  Add operand
16388         order variants.
16389         (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
16390         (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
16391         *addc_r_r_msb, *addc_2r_msb): Delete.
16392         (*addc_2r_lsb): Rename to *addc_2r_t.  Use treg_set_expr.  Add operand
16393         order variant.
16394         (*addc_negreg_t): New insn_and_split.
16395         (*subc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
16396         Try to recombine with surrounding insns when splitting.
16397         Add operand order variants.
16398         (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
16399         insn_and_split patterns.
16400         (*rotcr): Use arith_reg_or_treg_set_expr.  Try to recombine with
16401         surrounding insns when splitting.
16402         (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
16403         (*rotcl): Likewise.  Add zero_extract variant.
16404         (*ashrsi2_31): New insn_and_split.
16405         (*negc): Convert to insn_and_split.  Use treg_set_expr.
16406         (*zero_extend<mode>si2_disp_mem): Update comment.
16407         (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
16408         condition.
16409         (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr.  Try to recombine
16410         with surrounding insns when splitting.
16411         (any_treg_expr_to_reg): New insn_and_split.
16412         (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
16413         *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
16414         *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
16415         *zero_extract_2): New single bit zero extract patterns.
16416         (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
16417         (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
16418         *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
16419         *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
16420         set destination.
16421         (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
16422         register_operand for set source.
16424 2015-01-23  Jan Hubicka  <hubicka@ucw.cz>
16426         * i386.opt (prefetch_sse): New targetsave.
16427         * i386.c (ix86_function_specific_save): Save prefetch_sse.
16428         (ix86_function_specific_restore): Restore prefetch_sse and initialize
16429         ix86_cost/ix86_tune_cost.
16431 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
16433         * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
16434         Support the JIT by using 0 as the language type.
16436 2015-01-23  Vladimir Makarov  <vmakarov@redhat.com>
16438         PR target/64317
16439         * lra-lives.c (make_hard_regno_born): Add parameter.  Don't make
16440         REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
16441         (mark_regno_live, process_bb_lives): Pass new parameter value to
16442         make_hard_regno_born.
16444 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
16446         PR rtl-optimization/63637
16447         PR rtl-optimization/60663
16448         * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
16449         if elt->cost is MAX_COST for ASM_OPERANDS.
16450         (find_sets_in_insn): Fix up comment typo.
16451         (cse_insn): Don't set src_volatile for all non-volatile
16452         ASM_OPERANDS in PARALLELs, but just those with multiple outputs
16453         or with "memory" clobber.  Set elt->cost to MAX_COST
16454         for ASM_OPERANDS in PARALLEL.  Set src_elt->cost to MAX_COST
16455         if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
16457 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
16459         * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
16460         alternative 1.
16462 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
16464         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
16465         libgcc/config/i386/elf-lib.h.
16467 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
16469         PR driver/64737
16470         * gcc.c (print_configuration): Don't print a blank line at the end
16471         here...
16472         (run_attempt): ... but here unstead.
16474         PR middle-end/64734
16475         * omp-low.c (scan_sharing_clauses): Don't ignore
16476         OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
16477         on target data/update constructs.
16479 2015-01-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
16481         PR target/50928
16482         * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
16483         (DEBUG_RELOAD): Removed define.
16484         (m32c_limit_reload_class): Enable traces with if DEBUG0.
16485         (m32c_function_arg): Added a type cast.
16486         (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
16487         * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
16488         * config/m32c/bitops.md (andqi3_16): Likewise.
16489         * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
16490         (push_a01_l): Likewise.
16492 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
16494         PR jit/64721
16495         * main.c (main): Construct toplev instances with init_signals=true.
16496         * toplev.c (general_init): Add param "init_signals", and use it to
16497         conditionalize the calls to signal and host_hooks.extra_signals.
16498         (toplev::toplev): Add param "init_signals".
16499         (toplev::main): When invoking general_init, pass m_init_signals
16500         to control whether signal-handlers are installed.
16501         * toplev.h (toplev::toplev): Add param "init_signals".
16502         (toplev::m_init_signals): New field.
16504 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
16506         PR jit/64722
16507         * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
16508         NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
16509         latter may be affected by the former (e.g. on i686).
16511 2015-01-23  Martin Liska  <mliska@suse.cz>
16513         * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
16514         false positive during profiledbootstrap.
16516 2015-01-23  Tom de Vries  <tom@codesourcery.com>
16518         PR libgomp/64672
16519         * lto-opts.c (lto_write_options): Output non-explicit conservative
16520         -fno-openacc.
16521         * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
16522         (append_compiler_options): Pass -fopenacc through.
16524 2015-01-23  Tom de Vries  <tom@codesourcery.com>
16526         PR libgomp/64707
16527         * lto-opts.c (lto_write_options): Output non-explicit conservative
16528         -fno-openmp.
16529         * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
16530         (append_compiler_options): Pass -fopenmp through.
16532 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
16534         PR debug/64511
16535         * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
16536         GTY markup.
16538         * diagnostic-core.h (internal_error_no_backtrace): New prototype.
16539         * diagnostic.def (DK_ICE_NOBT): New kind.
16540         * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
16541         like DK_ICE, but never print backtrace.
16542         (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
16543         (internal_error_no_backtrace): New function.
16544         * gcc.c (execute): Use internal_error_no_backtrace instead of
16545         internal_error.
16547 2015-01-22  Jeff Law  <law@redhat.com>
16549         PR target/52076
16550         * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
16551         improve code density for small immediate to memory case.
16552         (insv): Better handle bitfield assignments when the field is
16553         being set to all ones.
16554         * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
16555         operand predicate.
16557 2015-01-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16558             Jakub Jelinek  <jakub@redhat.com>
16560         PR middle-end/64729
16561         * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
16562         for !TARGET_LIBC_PROVIDES_SSP version and
16563         -fstack-protector-{all,strong,explicit} otherwise.
16564         * config/freebsd.h (LINK_SSP_SPEC): Handle
16565         -fstack-protector-{strong,explicit}.
16567 2015-01-22  Jan Hubicka  <hubicka@ucw.cz>
16568             H.J. Lu  <hongjiu.lu@intel.com>
16570         PR ipa/64694
16571         * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
16572         heap.
16574 2015-01-22  Wei Mi  <wmi@google.com>
16576         PR rtl-optimization/64557
16577         * dse.c (record_store): Call get_addr for mem_addr.
16578         (check_mem_read_rtx): Likewise.
16580 2015-01-22  Eric Botcazou  <ebotcazou@adacore.com>
16582         * fold-const.c (const_binop): Add early return for non-tcc_binary.
16584 2015-01-22  Chen Gang  <gang.chen.5i5j@gmail.com>
16586         * toplev.c (init_local_tick): Process the failure when read
16587         fails for random_seed.
16589         * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
16590         'pretty_name' to avoid memory overflow.
16592 2015-01-22  Richard Biener  <rguenther@suse.de>
16594         PR middle-end/64728
16595         * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
16596         abnormal coalescing on undefined SSA names.
16598 2015-22-01  Uros Bizjak  <ubizjak@gmail.com>
16600         PR target/64688
16601         PR target/64477
16602         * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
16603         for alternative 3.
16604         (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
16606 2015-01-22  Trevor Saunders  <tsaunders@mozilla.com>
16608         PR middle-end/63325
16609         * fold-const.c (fold_checksum_tree): Don't include value of
16610         expr->decl_with_vis.symtab_node in the checksum.
16612 2015-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16614         * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
16616 2015-01-22  Max Ostapenko  <m.ostapenko@partner.samsung.com>
16618         PR driver/64690
16619         * gcc.c (insert_comments): New function.
16620         (try_generate_repro): Call it.
16621         (append_text): Removed.
16623 2015-01-22  Richard Biener  <rguenther@suse.de>
16625         * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
16626         with IL incompatible options.  Properly honor user optimize
16627         attributes.
16629 2015-01-21  Segher Boessenkool  <segher@kernel.crashing.org>
16631         PR rtl-optimization/64682
16632         * combine.c (distribute_notes): When moving a death note for
16633         a register that is set in the new I2, make sure to put it
16634         before that new I2.
16636 2015-01-21  David Edelsohn  <dje.gcc@gmail.com>
16638         * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
16639         not TARGET_DEFAULT.
16641 2015-01-21  Jakub Jelinek  <jakub@redhat.com>
16643         PR debug/64511
16644         * simplify-rtx.c (simplify_relational_operation_1): Don't try to
16645         optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
16646         into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
16648         PR sanitizer/64706
16649         * doc/invoke.texi (-fsanitize=vptr): Document.
16651         PR rtl-optimization/62078
16652         * dse.c: Include cfgcleanup.h.
16653         (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
16654         anything call purge_all_dead_edges and cleanup_cfg at the end
16655         of the pass.
16657 2015-01-21  Jan Hubicka  <hubicka@ucw.cz>
16659         * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
16660         edges.
16662 2015-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
16664         * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
16665         decl attribute.
16667 2015-01-21  David Sherwood  <david.sherwood@arm.com>
16668             Tejas Belagod <Tejas.Belagod@arm.com>
16670         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
16671         * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
16672         * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
16673         Removed.
16675 2015-01-21  David Sherwood  <david.sherwood@arm.com>
16676             Tejas Belagod <Tejas.Belagod@arm.com>
16678         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
16679         (aarch64_reverse_mask): New decls.
16680         * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
16681         (insn_count): New mode_attr.
16682         * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
16683         (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
16684         (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
16685         (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
16686         (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
16687         (aarch64_simd_st4): New patterns.
16688         * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
16689         (aarch64_reverse_mask): New functions.
16691 2015-01-21  Richard Sandiford  <richard.sandiford@arm.com>
16693         * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
16694         Declare.
16695         * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
16696         addressing modes for BE.
16697         (aarch64_print_operand): Add 'R' specifier.
16698         (aarch64_simd_disambiguate_copy): Delete.
16699         (aarch64_simd_emit_reg_reg_move): New function.
16700         * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
16701         in define_splits for structural moves.
16702         (mov<mode>): Use less restrictive predicates.
16703         (*aarch64_mov<mode>): Simplify and only allow for LE.
16704         (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
16706 2015-01-21  Alan Hayward  <alan.hayward@arm.com>
16708         * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
16710 2015-01-21  Richard Henderson  <rth@redhat.com>
16712         PR target/64669
16713         * ccmp.c (used_in_cond_stmt_p): Remove.
16714         (expand_ccmp_expr): Don't use it.
16716 2015-01-21  Nick Clifton  <nickc@redhat.com>
16718         * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
16719         PARALLELs.
16721 2015-01-21  Richard Biener  <rguenther@suse.de>
16723         PR middle-end/64313
16724         * tree-core.h (builtin_info, builtin_info_type): Turn from
16725         an object with two arrays into an array of an object with
16726         decl and two flags, implicit_p and declared_p.
16727         * tree.h (builtin_decl_explicit, builtin_decl_implicit,
16728         set_builtin_decl, set_builtin_decl_implicit_p,
16729         builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
16730         (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
16731         * builtins.c (builtin_info): Adjust.
16732         * gimplify.c (gimplify_addr_expr): References to builtins
16733         that have been declared by the user makes them eligible for
16734         use by the compiler.  Call set_builtin_decl_implicit_p on them.
16736 2015-01-20  Jeff Law  <law@redhat.com>
16738         PR target/59946
16739         * config/m68k/m68k.md (Comparison expanders and patterns): Do not
16740         allow pc-relative addresses in operand predicates or constraints.
16742 2015-01-21  Bin Cheng  <bin.cheng@arm.com>
16744         * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
16745         neon on aarch32 processors for stringops.
16747 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
16749         PR ipa/63576
16750         * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
16752 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
16754         PR lto/45375
16755         * ipa-inline.c: Include lto-streamer.h
16756         (report_inline_failed_reason): Output source file differences and
16757         flags on optimization/target node mismatch.
16758         (can_inline_edge_p): Consider caller to be the outer inline function;
16759         be less restrictive about matching opimize and optimize_size attributes.
16760         (inline_account_function_p): Break out from ...
16761         (inline_small_functions): ... here.
16762         * ipa-inline-transform.c (clone_inlined_nodes): Use
16763         inline_account_function_p.
16764         (inline_call): Use optimize attribution; use inline_account_function_p.
16765         (inline_transform): Use opt_for_fn.
16766         * ipa-inline.h (inline_account_function_p): Declare.
16768 2015-01-20  Jakub Jelinek  <jakub@redhat.com>
16770         PR debug/64663
16771         * dwarf2out.c (decl_piece_node): Don't put bitsize into
16772         mode if bitsize <= 0.
16773         (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
16774         dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
16775         sizes and positions.
16777 2015-01-20  Chung-Lin Tang  <cltang@codesourcery.com>
16779         * config/nios2/nios2.c (nios2_asm_file_end): Implement
16780         TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
16781         needed.
16782         (TARGET_ASM_FILE_END): Define.
16784 2015-01-20  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
16786         * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
16787         (struct tune_params): Use the enum.
16788         * arm.c (arm_*_tune): Update.
16789         (arm_option_override): Update.
16791 2015-01-20  Richard Biener  <rguenther@suse.de>
16793         PR ipa/64684
16794         * ipa-reference.c (add_static_var): Inline ...
16795         (analyze_function): ... here after splitting out from ...
16796         (is_proper_for_analysis): ... this.
16798 2015-01-20  Matthew Wahab  <matthew.wahab@arm.com>
16800         PR target/64149
16801         * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
16802         * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
16803         replace the conditional with it's true branch.
16804         * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
16805         (arm_lra_p): Remove.
16807 2015-01-20  Eric Botcazou  <ebotcazou@adacore.com>
16809         * config/visium/visium.h (LIB_SPEC): Adjust in default case.
16811 2015-01-20  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
16813         * config/tilegx/mul-tables.c: Move symtab.h include after
16814         coretypes.h include.
16815         * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
16816         vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
16817         flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
16818         wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
16819         explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
16821 2015-01-20  Igor Zamyatin  <igor.zamyatin@intel.com>
16823         PR bootstrap/64676
16824         Revert:
16825         2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
16827         PR rtl-optimization/64081
16828         * loop-iv.c (def_pred_latch_p): New function.
16829         (latch_dominating_def): Allow specific cases with non-single
16830         definitions.
16831         (iv_get_reaching_def): Likewise.
16832         (check_complex_exit_p): New function.
16833         (check_simple_exit): Use check_complex_exit_p to allow certain cases
16834         with exits not executing on any iteration.
16836 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
16838         PR lto/45375
16839         * i386.c (ix86_option_override_internal): Use ix86_tune_cost
16840         to set branch cost.
16842 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
16844         PR lto/45375
16845         * i386.c (gate): Check flag_expensive_optimizations and
16846         optimize_size.
16847         (ix86_option_override_internal): Drop optimize_size condition
16848         on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
16849         MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
16850         MASK_PREFER_AVX128.
16851         (ix86_avx256_split_vector_move_misalign,
16852         ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
16853         * sse.md (all uses of TARGET_PREFER_AVX128): Add
16854         optimize_insn_for_speed_p check.
16856 2015-01-19  Matthew Fortune  <matthew.fortune@imgtec.com>
16858         * config/mips/mips.h (FP_ASM_SPEC): New define.
16859         (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
16860         instead.
16862 2015-01-19  Oleg Endo  <olegendo@gcc.gnu.org>
16864         PR target/53988
16865         * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
16866         nullptr for insn when reaching the first insn.
16867         * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
16868         (sh_insn_operands_modified_between_p): Add nullptr check.
16869         (sh_find_extending_set_of_reg): Fix log message.  Don't accept
16870         sign extending mem load if the insn contains any UNSPEC or
16871         UNSPEC_VOLATILE.
16873 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
16875         * params.def (inline-unit-growth): Drop to 15%.
16876         * invoke.texi (inline-unit-growth): Document change.
16878 2015-01-19  Martin Liska  <mliska@suse.cz>
16880         PR ipa/64668
16881         * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
16882         function for second argument of OBJ_TYPE_REF.
16884 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
16886         PR ipa/64218
16887         * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
16888         whether function is an alias.
16890 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
16892         * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
16893         cases.
16895 2015-01-19  Vladimir Makarov  <vmakarov@redhat.com>
16897         PR rtl-optimization/64671
16898         * lra-remat.c (operand_to_remat): Don't consider jump and call
16899         insns.
16901 2015-01-19  David Edelsohn  <dje.gcc@gmail.com>
16903         PR target/59828
16904         * config/rs6000/default64.h: Include rs6000-cpus.def.
16905         (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
16906         (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
16907         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
16908         and POWER8.
16909         * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
16910         POWER8.
16911         * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
16912         pseudo-op to specify assembler dialect.
16914 2015-01-19  Martin Liska  <mliska@suse.cz>
16916         PR ipa/64664
16917         * ipa-icf.c (sem_item_optimizer::filter_removed_items):
16918         Handle safe potentially removed nodes during filtering.
16920 2015-01-19  Martin Liska  <mliska@suse.cz>
16922         * doc/extend.texi (no_icf): Add new attribute description.
16923         * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
16924         where the pass attempts to merge a function with no_icf attribute.
16926 2015-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
16928         PR target/64532
16929         * doc/md.texi (ARM Options): Document register constraints.
16931 2015-01-19  Jiong Wang  <jiong.wang@arm.com>
16932             Andrew Pinski  <apinski@cavium.com>
16934         PR target/64304
16935         * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
16936         (ashl<mode>3): Don't expand if operands[2] is not constant.
16938 2015-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16940         PR target/64448
16941         * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
16942         Match xor-and-xor RTL pattern.
16944 2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
16946         PR rtl-optimization/64081
16947         * loop-iv.c (def_pred_latch_p): New function.
16948         (latch_dominating_def): Allow specific cases with non-single
16949         definitions.
16950         (iv_get_reaching_def): Likewise.
16951         (check_complex_exit_p): New function.
16952         (check_simple_exit): Use check_complex_exit_p to allow certain cases
16953         with exits not executing on any iteration.
16955 2015-01-19  Jakub Jelinek  <jakub@redhat.com>
16957         * common.opt (fgraphite): Fix a typo.
16959 2015-01-19  Felix Yang  <felix.yang@huawei.com>
16961         * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
16962         pattern.
16963         * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
16964         uminp, smax_nanp, smin_nanp): New builtins.
16965         * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
16966         vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
16967         vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
16968         vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
16969         vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
16970         vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
16971         vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
16972         vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
16973         vpminnms_f32): Rewrite using builtin functions.
16975 2015-01-19  Thomas Schwinge  <thomas@codesourcery.com>
16977         PR libgomp/64625
16978         * omp-low.c (offload_symbol_decl): Remove variable.
16979         (get_offload_symbol_decl): Remove function.
16980         (expand_omp_target): For BUILT_IN_GOMP_TARGET,
16981         BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
16982         instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
16983         BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
16984         BUILT_IN_GOACC_UPDATE don't pass it at all.
16986 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
16988         * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
16989         callers.
16991 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
16993         * ipa-chkp.c (chkp_produce_thunks): Add early param
16994         to split thunks production into two passes.  Keep
16995         'always_inline' function bodies after the first pass.
16996         (pass_data_ipa_chkp_early_produce_thunks): New.
16997         (pass_ipa_chkp_early_produce_thunks): New.
16998         (pass_ipa_chkp_produce_thunks::execute): Adjust to new
16999         chkp_produce_thunks signature.
17000         (make_pass_ipa_chkp_early_produce_thunks): New.
17001         * passes.def (pass_ipa_chkp_early_produce_thunks): New.
17002         (pass_ipa_chkp_produce_thunks): Move after local optimizations.
17003         * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
17005 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
17007         * cgraph.c (cgraph_node::dump): Dump profile flags.
17009 2015-01-18  Oleg Endo  <olegendo@gcc.gnu.org>
17011         PR target/64652
17012         * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
17013         reg appear first in the parallel.
17015 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
17017         * ipa-reference.c (set_reference_optimization_summary,
17018         ipa_reference_get_not_written_global): Do nothing if ipa-reference is
17019         disabled.
17020         (ignore_module_statics): New static var.
17021         (propagate_bits): If ipa-reference is disabled, do not look into local
17022         properties.
17023         (analyze_function): Disable analysis when ipa_reference is disabled.
17024         (generate_summary): Do not dump when reference is disabled;
17025         collect vars accessed from functions with ipa-reference disabled.
17026         (get_read_write_all_from_node): When ipa-reference is disabled, use the
17027         node flags.
17028         (gate): Enable for LTO.
17029         (ignore_edge_p): New function.
17030         (propagate): Skip functions w/o ipa-reference analysis.
17031         * optc-save-gen.awk: Handle optimize_debug correctly.
17032         * opth-gen.awk: Likewise.
17033         * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
17034         fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
17035         fira-share-save-slots, fira-share-spill-slots,
17036         fmodulo-sched-allow-regmoves, fpartial-inlining,
17037         sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
17038         ftracer, ftree-parallelize-loops, fassociative-math,
17039         freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
17040         Optimization
17041         (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
17042         ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
17043         Optimization.
17044         * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
17045         Fix for IPA.
17047 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
17049         PR ipa/64378
17050         * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
17051         flag correctly.
17052         * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
17054 2015-01-18  Sandra Loosemore  <sandra@codesourcery.com>
17056         * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
17057         Remove duplicate option listings.
17059 2015-01-18  Felix Yang  <felix.yang@huawei.com>
17061         * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
17062         (autofdo_source_profile::get_callsite_total_count,
17063         function_instance::get_function_instance_by_decl,
17064         string_table::get_index, string_table::get_index_by_decl,
17065         afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
17066         Fix comment typos. Reformatting and minor code rearrangement.
17068 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
17070         * config/rs6000/rs6000.md (probe_stack): Delete.
17071         (probe_stack_address): New.
17073 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
17075         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
17076         to test for 32-bit ABIs, not !TARGET_POWERPC64.
17078 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
17080         * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
17081         (rs6000_function_value): Use it.  Handle SCmode and TCmode as well,
17082         for TARGET_32BIT && TARGET_POWERPC64.  Fix another BITS_PER_WORD
17083         snafu.
17084         (rs6000_libcall_value): Use the new function.
17086 2015-01-17  Sandra Loosemore  <sandra@codesourcery.com>
17088         * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
17090 2015-01-17  Eric Botcazou  <ebotcazou@adacore.com>
17092         * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
17093         implement a more precise life analysis for it during backward scan.
17095 2015-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
17097         * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
17099 2015-01-17  Bernd Schmidt  <bernds@codesourcery.com>
17101         PR rtl-optimization/52773
17102         * calls.c (emit_library_call_value): When pushing arguments use
17103         stack_pointer_rtx rather than virtual_outgoing_args_rtx in
17104         CALL_INSN_FUNCTION_USAGE.  Only emit one of use of the magic
17105         stack pointer reference into CALL_INSN_FUNCTION_USAGE.
17107 2015-01-17  Jeff Law  <law@redhat.com>
17109         PR rtl-optimization/32790
17110         * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
17111         not ZERO_EXTEND in SET_DESTs.
17113 2015-01-17  Alan Modra  <amodra@gmail.com>
17115         * cprop.c (do_local_cprop): Revert last change.
17117 2015-01-16  DJ Delorie  <dj@redhat.com>
17118             Nick Clifton  <nickc@redhat.com>
17120         * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
17121         (addhi3_real): Likewise.  Fix [HL+0] syntax.
17122         (subqi3_real): Likewise.
17123         (subhi3_real): Likewise.
17124         (cbranchqi4_real): Likewise.  Allow saddr,#imm.
17125         (cbranchhi4_real): Likewise.
17126         (cbranchhi4_real_inverted): Likewise.
17127         (cbranchsi4_real_lt): Likewise.
17128         (cbranchsi4_real_ge): Likewise.
17129         (cbranchsi4_real_ge): Likewise.
17130         * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
17131         (sub<mode>3_virt): Likewise.
17132         (cbranchqi4_virt): Likewise.
17133         (cbranchhi4_virt): Likewise.
17134         * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
17135         always use '[reg+imm]' even when imm is zero.
17136         * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
17137         (rl78_general_operand): New.
17138         (rl78_nonimmediate_operand): New.
17139         (rl78_nonfar_operand): Use them.
17140         (rl78_nonfar_nonimm_operand): Likewise.
17141         (rl78_stack_based_mem): Fix.
17142         * config/rl78/constraints.md (Ibqi): New.
17143         (IBqi): New.
17144         (Wsa): New.
17145         (Wsf): New.
17146         (Cs1): Fix.
17147         * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
17148         (iorqi3): Likewise.
17149         (xorqi3): Likewise.
17150         * config/rl78/rl78-protos.h (rl78_sfr_p): New.
17152         * config/rl78/constrains (Qs8): New constraint.
17153         * config/rl78/rl78.c (rl78_flags_already_set): New function.
17154         * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
17155         * config/rl78/rl78-real.md (update_Z): New attribute.
17156         Update patterns to set it.
17157         (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
17158         shorter compare and branch sequence can be used.
17159         (cbranchhi4_real): Likewise.
17160         (cbranchhi4_real_inverted): Likewise.
17162         * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
17163         * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
17164         address space.
17165         * config/rl78/rl78.c (rl78_get_name_encoding): New.
17166         (rl78_option_override): Allow -mes0 only if C.
17167         (characterize_address): Support subregs of symbol_refs.
17168         (rl78_addr_space_address_mode): Move.  Add __near.
17169         (rl78_far_p): Likewise.
17170         (rl78_addr_space_pointer_mode): Likewise.
17171         (rl78_as_legitimate_address): Likewise.
17172         (rl78_addr_space_subset_p): Likewise.
17173         (rl78_addr_space_convert): Likewise.
17174         (rl78_print_operand_1): Support 16-bit addressing of 32-bit
17175         symbols with -mes0.
17176         (transcode_memory_rtx): Don't copy ES if -mes0.  Allow symbol[BC]
17177         addressing.
17178         (rl78_alloc_physical_registers_op1): Change logic to prefer
17179         symbol[BC] addressing.
17180         (frodata_section): New.
17181         (rl78_asm_init_sections): Initialize it.
17182         (rl78_select_section): Put __far readonly symbols in .frodata.
17183         (rl78_make_type_far): New.
17184         (rl78_insert_attributes): Force all readonly symbols to be
17185         __far when -mes0.
17186         (rl78_asm_out_integer): New.
17187         * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
17188         * config/rl78/rl78.opt (-mes0): New.
17190         * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
17191         (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
17192         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
17193         * config/rl78/rl78-protos.h (rl78_output_labelref): New.
17194         (rl78_saddr_p): New.
17195         (rl78_output_aligned_common): New.
17196         * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
17197         (rl78_handle_saddr_attribute): New.
17198         (rl78_handle_naked_attribute): New.
17199         (rl78_attribute_table): Add saddr.
17200         (rl78_print_operand_1): Don't print '!' on saddr operands.
17201         (rl78_print_operand_1): Strip encodings.
17202         (rl78_sfr_p): New.
17203         (rl78_strip_name_encoding): New.
17204         (rl78_attrlist_to_encoding): New.
17205         (rl78_encode_section_info): New.
17206         (rl78_asm_init_sections): New.
17207         (rl78_select_section): New.
17208         (rl78_output_labelref): New.
17209         (rl78_output_aligned_common): New.
17210         (rl78_asm_out_integer): New.
17211         (rl78_asm_ctor_dtor): New.
17212         (rl78_asm_constructor): New.
17213         (rl78_asm_destructor): New.
17215         * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
17216         * config/rl78/rl78.c (rl78_expand_epilogue): Update.
17217         (transcode_memory_rtx): Update.
17218         (rl78_expand_epilogue): Use A_REG instead of 0.
17220 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
17222         * config/arm/arm-protos.h (struct tune_params): New field
17223         sched_autopref_queue_depth.
17224         * config/arm/arm.c (sched-int.h): Include header.
17225         (arm_first_cycle_multipass_dfa_lookahead_guard,)
17226         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
17227         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
17228         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
17229         (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
17230         (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
17231         (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
17232         (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
17233         Specify sched_autopref_queue_depth value.  Enabled for A15 and A57.
17234         * config/arm/t-arm (arm.o): Update.
17235         * haifa-sched.c (update_insn_after_change): Update.
17236         (rank_for_schedule): Use auto-prefetcher model, if requested.
17237         (autopref_multipass_init): New static function.
17238         (autopref_rank_for_schedule): New rank_for_schedule heuristic.
17239         (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
17240         variable for debug dumps.
17241         (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
17242         (autopref_multipass_dfa_lookahead_guard): New global function that
17243         implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
17244         (init_h_i_d): Update.
17245         * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
17246         * sched-int.h (enum autopref_multipass_data_status): New const enum.
17247         (autopref_multipass_data_): Structure for auto-prefetcher data.
17248         (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
17249         (struct _haifa_insn_data:autopref_multipass_data): New field.
17250         (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
17251         (autopref_multipass_dfa_lookahead_guard): Declare.
17253 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
17255         * rtlanal.c (get_base_term): Handle SCRATCH.
17257 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
17259         * config/aarch64/aarch64.c
17260         (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
17261         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
17262         * config/arm/arm.c
17263         (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
17264         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
17266 2015-01-17  Alan Modra  <amodra@gmail.com>
17268         * cprop.c (do_local_cprop): Disallow replacement of fixed
17269         hard registers.
17271 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17273         PR target/62066
17274         * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
17275         early return 0.
17277 2015-01-16  Bernd Edlinger  <bernd.edlinger@hotmail.de>
17279         * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
17280         * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
17282 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17284         * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
17285         * config/arm/thumb1.md: ... Here.
17287 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
17289         * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
17290         TImode for TARGET_32BIT.
17292 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
17294         * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
17295         TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
17296         as ...
17297         (rs6000_abi_word_mode): New function.
17299 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
17301         * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
17302         instead of UNITS_PER_WORD to describe the size of stack slots.
17304 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
17306         * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
17307         as rs6000_promote_function_mode.  Move comment to there.
17308         (rs6000_promote_function_mode): New function.
17310 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
17312         * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
17313         -mpowerpc64 is active.
17315 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
17317         PR middle-end/64353
17318         * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
17319         virtuals on start.
17321 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
17323         * config/arm/cortex-a57.md: Remove duplicate of file accidentally
17324         introduced in revision 219724.
17326 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17327             Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17329         PR target/64263
17330         * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
17331         destination is not a GP reg.
17332         (*movdi_aarch64): Likewise.
17334 2015-01-16  David Edelsohn  <dje.gcc@gmail.com>
17336         PR target/64623
17337         * config/rs6000/default64.h: Revert ISA change.
17339 2015-01-16  Richard Biener  <rguenther@suse.de>
17341         PR middle-end/64614
17342         * tree-ssa-uninit.c: Include tree-cfg.h.
17343         (MAX_SWITCH_CASES): New define.
17344         (convert_control_dep_chain_into_preds): Handle switch statements.
17345         (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
17346         (normalize_one_pred_1): Do not split bit-manipulations.
17347         Record (x & CST).
17349 2015-01-16  Richard Biener  <rguenther@suse.de>
17351         PR tree-optimization/64568
17352         * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
17353         complex load rewriting for TARGET_MEM_REFs.
17355 2015-01-16  Uros Bizjak  <ubizjak@gmail.com>
17357         * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
17359 2015-01-16  Matthew Wahab  <matthew.wahab@arm.com>
17361         PR target/64149
17362         * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
17363         variable.
17364         * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
17365         (aarch64_lra_p): Remove.
17367 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
17369         PR target/64363
17370         * ipa-chkp.h (chkp_instrumentable_p): New.
17371         * ipa-chkp.c: Include tree-inline.h.
17372         (chkp_instrumentable_p): New.
17373         (chkp_maybe_create_clone): Use chkp_instrumentable_p.
17374         Fix processing of not instrumentable functions.
17375         (chkp_versioning): Use chkp_instrumentable_p. Warn about
17376         not instrumentable functions.
17377         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
17378         chkp_instrumentable_p.
17379         * tree-inline.h (copy_forbidden): New.
17380         * tree-inline.c (copy_forbidden): Not static anymore.
17382 2015-01-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17384         * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
17385         ptr1, ptr2 unused.
17387 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
17389         * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
17390         type OP_OUT to OP_INOUT.
17392 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
17394         * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
17395         (high x) y) to y if x and y have the same base.
17397 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
17399         * config/arm/cortex-a57.md: New.
17400         * config/aarch64/aarch64.md: Include it.
17401         * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
17402         * config/aarch64/aarch64-tune.md: Regenerate.
17404 2015-01-16  Zhenqiang Chen  <zhenqiang.chen@arm.com>
17406         PR target/64015
17407         * ccmp.c (expand_ccmp_next): New function.
17408         (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
17409         and compare insn sequence.
17410         * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
17411         aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
17412         (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
17413         * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
17414         (*ccmp_ior): Changed to ccmp_ior<mode>.
17415         (cmp<mode>): New pattern.
17416         * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
17417         parameters.
17418         * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
17420 2015-01-16  Ilya Tocar  <ilya.tocar@intel.com>
17422         * config/i386/avx2intrin.h (_mm256_bslli_epi128,
17423         _mm256_bsrli_epi128): New.
17424         * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
17426 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
17428         * expmed.c (store_bit_field_using_insv): Improve warning message.
17429         Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
17431 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
17433         PR rtl-optimization/64011
17434         * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
17435         there is partial overflow.
17437 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
17439         * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
17440         prototype.
17441         (nds32_expand_epilogue_v3pop): Likewise.
17442         * config/nds32/nds32.md (sibcall): Define this for sibling call
17443         optimization.
17444         (sibcall_register): Likewise.
17445         (sibcall_immediate): Likewise.
17446         (sibcall_value): Likewise.
17447         (sibcall_value_register): Likewise.
17448         (sibcall_value_immediate): Likewise.
17449         (sibcall_epilogue): Likewise.
17450         (epilogue): Pass false to indicate this is not a sibcall epilogue.
17451         * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
17452         (nds32_expand_epilogue_v3pop): Likewise.
17454 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
17456         * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
17457         * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
17458         (return_internal): New.
17459         (return): Define this named pattern.
17460         (simple_return): Define this named pattern.
17461         * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
17462         pattern instead of unspec_volatile_func_return.
17463         (nds32_expand_epilogue_v3pop): Likewise.
17464         (nds32_can_use_return_insn): New function.
17466 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
17468         * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
17469         * config/nds32/nds32.md (pop25return): New.
17470         * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
17471         pop25return pattern.
17473 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
17475         * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
17476         -mforbid-fp-as-gp, and -mex9 options.
17478 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
17480         * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
17481         remove -mgp-direct option.
17483 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
17485         * doc/invoke.texi (--param early-inlining-insns): Update default value.
17486         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
17488 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
17490         * ipa-inline.c (inline_small_functions): Work around hints
17491         cache issue.
17493 2015-01-15  Sandra Loosemore  <sandra@codesourcery.com>
17495         PR target/59710
17496         * doc/invoke.texi (Option Summary): Document new Nios II
17497         -mgpopt= syntax.
17498         (Nios II Options): Likewise.
17499         * config/nios2/nios2.opt: Add -mgpopt= option support.
17500         Modify existing -mgpopt and -mno-gpopt options to be aliases.
17501         * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
17502         * config/nios2/nios2.c (nios2_option_override): Adjust
17503         -mgpopt defaulting.
17504         (nios2_in_small_data_p): Return true for explicit small data
17505         sections even with -G0.
17506         (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
17507         option choices.
17509 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
17511         PR ipa/64612
17512         * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
17513         of comdat locals.
17514         (inline_call): Fix removal of aliases.
17516 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
17518         * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
17519         include SANITIZE_VPTR in SANITIZE_UNDEFINED.
17520         * opts.c (common_handle_option): Add -fsanitize=vptr.
17521         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
17522         BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
17523         * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
17524         UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
17525         (ubsan_expand_vptr_ifn): New prototype.
17526         * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
17527         expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
17528         expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
17529         expand_LOOP_VECTORIZED): Make argument nameless, remove
17530         ATTRIBUTE_UNUSED.
17531         (expand_UBSAN_VPTR): New function.
17532         * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
17533         in fn spec.
17534         (UBSAN_VPTR): New internal function.
17535         * sanopt.c (tree_map_traits): Renamed to ...
17536         (sanopt_tree_map_traits): ... this.
17537         (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
17538         (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
17539         to sanopt_tree_map_traits renaming.  Add vptr_check_map field.
17540         (maybe_optimize_ubsan_vptr_ifn): New function.
17541         (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
17542         (pass_sanopt::execute): Likewise.  Call sanopt_optimize even for
17543         -fsanitize=vptr.
17544         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
17545         internal calls like pure functions for aliasing, even when they
17546         have other side-effects that prevent making them ECF_PURE.
17547         * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
17548         (ubsan_expand_vptr_ifn): New function.
17550 2015-01-15  Vladimir Makarov  <vmakarov@redhat.com>
17552         PR rtl-optimization/64110
17553         * stmt.c (parse_output_constraint): Process '^' and '$'.
17554         (parse_input_constraint): Ditto.
17555         * lra-constraints.c (process_alt_operands): Process the new
17556         constraints.
17557         * ira-costs.c (record_reg_classes): Process the new constraint
17558         '^'.
17559         * genoutput.c (indep_constraints): Add '^' and '$'.
17560         * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
17561         * doc/md.texi: Add description of the new constraints.
17563 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
17564             Bernd Schmidt  <bernds@codesourcery.com>
17565             Cesar Philippidis  <cesar@codesourcery.com>
17566             James Norris  <jnorris@codesourcery.com>
17567             Tom de Vries  <tom@codesourcery.com>
17568             Ilmir Usmanov  <i.usmanov@samsung.com>
17569             Dmitry Bocharnikov  <dmitry.b@samsung.com>
17570             Evgeny Gavrin  <e.gavrin@samsung.com>
17571             Jakub Jelinek  <jakub@redhat.com>
17573         * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
17574         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
17575         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
17576         New function types.
17577         * builtins.c: Include "gomp-constants.h".
17578         (expand_builtin_acc_on_device): New function.
17579         (expand_builtin, is_inexpensive_builtin): Handle
17580         BUILT_IN_ACC_ON_DEVICE.
17581         * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
17582         New macros.
17583         * cgraph.c (cgraph_node::create): Consider flag_openacc next to
17584         flag_openmp.
17585         * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
17586         <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
17587         i386/intelmic-offload.h.
17588         * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
17589         to libgomp and its dependencies.
17590         * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
17591         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
17592         * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
17593         * config/ia64/hpux.h (LIB_SPEC): Likewise.
17594         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
17595         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
17596         * doc/generic.texi: Update for OpenACC changes.
17597         * doc/gimple.texi: Likewise.
17598         * doc/invoke.texi: Likewise.
17599         * doc/sourcebuild.texi: Likewise.
17600         * gimple-pretty-print.c (dump_gimple_omp_for): Handle
17601         GF_OMP_FOR_KIND_OACC_LOOP.
17602         (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
17603         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
17604         GF_OMP_TARGET_KIND_OACC_UPDATE,
17605         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
17606         Dump more data.
17607         * gimple.c: Update comments for OpenACC changes.
17608         * gimple.def: Likewise.
17609         * gimple.h: Likewise.
17610         (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
17611         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
17612         GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
17613         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
17614         (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
17615         appropriate place.
17616         (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
17617         * gimplify.c: Include "gomp-constants.h".
17618         Update comments for OpenACC changes.
17619         (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
17620         OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
17621         OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
17622         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
17623         OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
17624         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
17625         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
17626         OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
17627         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
17628         OMP_CLAUSE_SEQ.
17629         (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
17630         GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
17631         OMP_CLAUSE_SET_MAP_KIND.
17632         (gimplify_oacc_cache): New function.
17633         (gimplify_omp_for): Handle OACC_LOOP.
17634         (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
17635         OACC_DATA.
17636         (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
17637         OACC_EXIT_DATA, OACC_UPDATE.
17638         (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
17639         OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
17640         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
17641         (gimplify_body): Consider flag_openacc next to flag_openmp.
17642         * lto-streamer-out.c: Include "gomp-constants.h".
17643         * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
17644         (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
17645         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
17646         (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
17647         (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
17648         (BUILT_IN_ACC_ON_DEVICE): New builtins.
17649         * omp-low.c: Include "gomp-constants.h".
17650         Update comments for OpenACC changes.
17651         (struct omp_context): Add reduction_map, gwv_below, gwv_this
17652         members.
17653         (extract_omp_for_data, use_pointer_for_field, install_var_field)
17654         (new_omp_context, delete_omp_context, scan_sharing_clauses)
17655         (create_omp_child_function, scan_omp_for, scan_omp_target)
17656         (check_omp_nesting_restrictions, lower_reduction_clauses)
17657         (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
17658         Update for OpenACC changes.
17659         (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
17660         OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
17661         OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
17662         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
17663         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
17664         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ.  Use GOMP_MAP_* instead of
17665         OMP_CLAUSE_MAP_*.
17666         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
17667         Handle GF_OMP_FOR_KIND_OACC_LOOP.
17668         (expand_omp_target, lower_omp_target): Handle
17669         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
17670         GF_OMP_TARGET_KIND_OACC_UPDATE,
17671         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
17672         GF_OMP_TARGET_KIND_OACC_DATA.
17673         (pass_expand_omp::execute, execute_lower_omp)
17674         (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
17675         flag_openmp.
17676         (offload_symbol_decl): New variable.
17677         (oacc_get_reduction_array_id, oacc_max_threads)
17678         (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
17679         (maybe_lookup_oacc_reduction, enclosing_target_ctx)
17680         (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
17681         (oacc_gimple_assign, oacc_initialize_reduction_data)
17682         (oacc_finalize_reduction_data, oacc_process_reduction_data): New
17683         functions.
17684         (is_targetreg_ctx): Remove function.
17685         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
17686         OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
17687         OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
17688         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
17689         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
17690         OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
17691         * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
17692         * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
17693         (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
17694         (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
17695         (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
17696         (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
17697         * tree-core.h: Update comments for OpenACC changes.
17698         (enum omp_clause_map_kind): Remove.
17699         (struct tree_omp_clause): Change type of map_kind member from enum
17700         omp_clause_map_kind to unsigned char.
17701         * tree-inline.c: Update comments for OpenACC changes.
17702         * tree-nested.c: Likewise.  Include "gomp-constants.h".
17703         (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
17704         (convert_tramp_reference_stmt, convert_gimple_call): Update for
17705         OpenACC changes.  Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
17706         OMP_CLAUSE_SET_MAP_KIND.
17707         * tree-pretty-print.c: Include "gomp-constants.h".
17708         (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
17709         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
17710         OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
17711         OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
17712         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
17713         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT.  Use GOMP_MAP_*
17714         instead of OMP_CLAUSE_MAP_*.
17715         (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
17716         OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
17717         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
17718         * tree-streamer-in.c: Include "gomp-constants.h".
17719         (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
17720         OMP_CLAUSE_MAP_*.  Use OMP_CLAUSE_SET_MAP_KIND.
17721         * tree-streamer-out.c: Include "gomp-constants.h".
17722         (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
17723         OMP_CLAUSE_MAP_*.
17724         * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
17725         (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
17726         (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
17727         * tree.c (omp_clause_num_ops): Update accordingly.
17728         * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
17729         Likewise.
17730         (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
17731         (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
17732         (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
17733         (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
17734         (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
17735         (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
17736         * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
17737         (OMP_CLAUSE_SET_MAP_KIND): New macro.
17738         * varpool.c (varpool_node::get_create): Consider flag_openacc next
17739         to flag_openmp.
17740         * config/i386/intelmic-offload.h: New file.
17741         * config/nvptx/offload.h: Likewise.
17743 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
17745         * explow.h: Remove duplicate contents.
17746         * dojump.h: Likewise.
17748 2015-01-15  Richard Earnshaw  <rearnsha@arm.com>
17750         * arm.c (arm_xgene_tune): Add default initializer for instruction
17751         fusion.
17753 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
17755         PR ipa/64068
17756         PR ipa/64559
17757         * ipa.c (symbol_table::remove_unreachable_nodes):
17758         Do not put abstract origins into boundary.
17760 2015-01-15  Evgeny Stupachenko  <evstupac@gmail.com>
17762         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
17763         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
17765 2015-01-15  Steve Ellcey  <sellcey@mips.com>
17767         * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
17768         cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
17769         builtins.def, and chkp-builtins.def.
17771 2015-01-15  David Edelsohn  <dje.gcc@gmail.com>
17773         * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
17774         ISA 2.7 (POWER8).
17776 2015-01-15  Richard Biener  <rguenther@suse.de>
17778         PR tree-optimization/61743
17779         * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
17780         information on PHIs for some simple cases.
17782 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
17784         * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
17785         Include xgene1.md.
17786         * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
17787         * config/arm/arm-cores.def (xgene1): New entry.
17788         * config/arm/arm-tables.opt: Regenerate.
17789         * config/arm/arm-tune.md: Regenerate.
17790         * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
17792 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
17794         * tree-if-conv.c: Include hash-map.h.
17795         (aggressive_if_conv): New variable.
17796         (fold_build_cond_expr): Add simplification of non-zero condition.
17797         (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
17798         destination block is not always executed.
17799         (if_convertible_phi_p): Fix commentary, allow phi nodes have more
17800         than two predecessors if AGGRESSIVE_IF_CONV is true.
17801         (if_convertible_stmt_p): Fix commentary.
17802         (all_preds_critical_p): New function.
17803         (has_pred_critical_p): New function.
17804         (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
17805         BB can have more than two predecessors and all incoming edges can be
17806         critical.
17807         (predicate_bbs): Skip predication for loop exit block, use build2_loc
17808         to compute predicate for true edge.
17809         (find_phi_replacement_condition): Delete this function.
17810         (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
17811         Allow interchange PHI arguments if EXTENDED is false.
17812         Change check that block containing reduction statement candidate
17813         is predecessor of phi-block since phi may have more than two arguments.
17814         (phi_args_hash_traits): New helper structure.
17815         (struct phi_args_hash_traits): New type.
17816         (phi_args_hash_traits::hash): New function.
17817         (phi_args_hash_traits::equal_keys): New function.
17818         (gen_phi_arg_condition): New function.
17819         (predicate_scalar_phi): Add handling of phi nodes with more than two
17820         arguments, delete COND and TRUE_BB arguments, insert body of
17821         find_phi_replacement_condition to predicate ordinary phi nodes.
17822         (predicate_all_scalar_phis): Skip blocks with the only predecessor,
17823         delete call of find_phi_replacement_condition and invoke
17824         predicate_scalar_phi with two arguments.
17825         (insert_gimplified_predicates): Add assert that non-predicated block
17826         don't have statements to insert.
17827         (ifcvt_split_critical_edges): New function.
17828         (ifcvt_split_def_stmt): Likewise.
17829         (ifcvt_walk_pattern_tree): Likewise.
17830         (stmt_is_root_of_bool_pattern): Likewise.
17831         (ifcvt_repair_bool_pattern): Likewise.
17832         (ifcvt_local_dce): Likewise.
17833         (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
17834         is copy of inner or outer loop force_vectorize field, invoke
17835         ifcvt_split_critical_edges, ifcvt_local_dce and
17836         ifcvt_repair_bool_pattern for aggressive if-conversion.
17838 2015-01-15  Philipp Tomsich  <ptomsich@theobroma-systems.com>
17840         * config/aarch64/aarch64.md: Include xgene1.md.
17841         * config/aarch64/xgene1.md: New file.
17843 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
17845         * config/aarch64/aarch64-cores.def (xgene1): Update/add the
17846         xgene1 (APM XGene-1) core definition.
17847         * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
17848         * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
17849         * doc/invoke.texi: Document -mcpu=xgene1.
17851 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
17853         * dojump.h: New header file.
17854         * explow.h: Likewise.
17855         * expr.h: Remove includes.
17856         Move expmed.c prototypes to expmed.h.
17857         Move dojump.c prototypes to dojump.h.
17858         Move alias.c prototypes to alias.h.
17859         Move explow.c prototypes to explow.h.
17860         Move calls.c prototypes to calls.h.
17861         Move emit-rtl.c prototypes to emit-rtl.h.
17862         Move varasm.c prototypes to varasm.h.
17863         Move stmt.c prototypes to stmt.h.
17864         (saved_pending_stack_adjust): Move to dojump.h.
17865         (adjust_address): Move to explow.h.
17866         (adjust_address_nv): Move to emit-rtl.h.
17867         (adjust_bitfield_address): Likewise.
17868         (adjust_bitfield_address_size): Likewise.
17869         (adjust_bitfield_address_nv): Likewise.
17870         (adjust_automodify_address_nv): Likewise.
17871         * explow.c (expr_size): Move to expr.c.
17872         (int_expr_size): Likewise.
17873         (tree_expr_size): Likewise.
17874         Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17875         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
17876         * genemit.c (main): Generate includes statistics.h, real.h,
17877         fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
17878         stmt.h.
17879         * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
17880         function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
17881         explow.h, emit-rtl.h, stmt.h.
17882         * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
17883         fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
17884         * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
17885         real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
17886         emit-rtl.h, varasm.h, stmt.h.
17887         * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
17888         hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
17889         function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
17890         fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
17891         expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
17892         * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
17893         double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
17894         function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
17895         insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
17896         tm.h tree.h varasm.h vec.h wide-int.h.
17897         * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
17898         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
17899         hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
17900         real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
17901         * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
17902         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
17903         insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
17904         * loop-iv.c: Likewise.
17905         * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
17906         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
17907         statistics.h stmt.h tree.h varasm.h wide-int.h.
17908         * lra-constraints.c: Likewise.
17909         * lra-eliminations.c: Likewise.
17910         * lra-lives.c: Likewise.
17911         * lra-remat.c: Likewise.
17912         * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
17913         explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
17914         statistics.h stmt.h tree.h varasm.h wide-int.h.
17915         * hw-doloop.c: Likewise.
17916         * ira-color.c: Likewise.
17917         * ira-emit.c: Likewise.
17918         * loop-doloop.c: Likewise.
17919         * loop-invariant.c: Likewise.
17920         * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
17921         explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
17922         statistics.h stmt.h tree.h varasm.h wide-int.h.
17923         * caller-save.c: Include alias.h calls.h dojump.h double-int.h
17924         emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
17925         statistics.h stmt.h tree.h varasm.h wide-int.h.
17926         * combine-stack-adj.c: Likewise.
17927         * cse.c: Likewise.
17928         * ddg.c: Likewise.
17929         * ifcvt.c: Likewise.
17930         * ira-costs.c: Likewise.
17931         * jump.c: Likewise.
17932         * lra-coalesce.c: Likewise.
17933         * lra-spills.c: Likewise.
17934         * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
17935         explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
17936         stmt.h varasm.h wide-int.h.
17937         * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
17938         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
17939         varasm.h.
17940         * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
17941         double-int.h explow.h expmed.h fixed-value.h flags.h real.h
17942         statistics.h stmt.h varasm.h wide-int.h.
17943         * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
17944         expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
17945         varasm.h wide-int.h.
17946         * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
17947         expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
17948         * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
17949         emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
17950         statistics.h stmt.h.
17951         * config/tilepro/tilepro.c: Likewise.
17952         * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
17953         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
17954         * config/pdp11/pdp11.c: Likewise.
17955         * config/xtensa/xtensa.c: Likewise.
17956         * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
17957         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
17958         varasm.h.
17959         * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17960         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
17961         insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
17962         * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17963         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
17964         insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
17965         * rtl-chkp.c: Likewise.
17966         * tree-chkp-opt.c: Likewise.
17967         * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
17968         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
17969         hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
17970         * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17971         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
17972         statistics.h stmt.h.
17973         * tree-vect-data-refs.c: Likewise.
17974         * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
17975         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
17976         rtl.h statistics.h stmt.h varasm.h.
17977         * internal-fn.c: Likewise.
17978         * ipa-icf-gimple.c: Likewise.
17979         * lto-section-out.c: Likewise.
17980         * tree-data-ref.c: Likewise.
17981         * tree-nested.c: Likewise.
17982         * tree-outof-ssa.c: Likewise.
17983         * tree-predcom.c: Likewise.
17984         * tree-pretty-print.c: Likewise.
17985         * tree-scalar-evolution.c: Likewise.
17986         * tree-ssa-strlen.c: Likewise.
17987         * tree-vect-loop.c: Likewise.
17988         * tree-vect-patterns.c: Likewise.
17989         * tree-vect-slp.c: Likewise.
17990         * tree-vect-stmts.c: Likewise.
17991         * tsan.c: Likewise.
17992         * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
17993         fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
17994         stmt.h.
17995         * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
17996         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
17997         statistics.h stmt.h varasm.h.
17998         * loop-unroll.c: Likewise.
17999         * ubsan.c: Likewise.
18000         * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
18001         expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
18002         stmt.h varasm.h.
18003         * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
18004         fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
18005         * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
18006         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
18007         statistics.h stmt.h.
18008         * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
18009         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
18010         statistics.h stmt.h varasm.h.
18011         * gimple-match-head.c: Likewise.
18012         * lto-cgraph.c: Likewise.
18013         * lto-section-in.c: Likewise.
18014         * lto-streamer-in.c: Likewise.
18015         * lto-streamer-out.c: Likewise.
18016         * tree-affine.c: Likewise.
18017         * tree-cfg.c: Likewise.
18018         * tree-cfgcleanup.c: Likewise.
18019         * tree-if-conv.c: Likewise.
18020         * tree-into-ssa.c: Likewise.
18021         * tree-ssa-alias.c: Likewise.
18022         * tree-ssa-copyrename.c: Likewise.
18023         * tree-ssa-dse.c: Likewise.
18024         * tree-ssa-forwprop.c: Likewise.
18025         * tree-ssa-live.c: Likewise.
18026         * tree-ssa-math-opts.c: Likewise.
18027         * tree-ssa-pre.c: Likewise.
18028         * tree-ssa-sccvn.c: Likewise.
18029         * tree-tailcall.c: Likewise.
18030         * tree-vect-generic.c: Likewise.
18031         * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
18032         fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
18033         * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
18034         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
18035         * varasm.c: Likewise.
18036         * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
18037         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
18038         varasm.h.
18039         * init-regs.c: Likewise.
18040         * ira.c: Likewise.
18041         * omp-low.c: Likewise.
18042         * stack-ptr-mod.c: Likewise.
18043         * tree-ssa-reassoc.c: Likewise.
18044         * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
18045         fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
18046         varasm.h.
18047         * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
18048         fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
18049         * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
18050         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
18051         * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
18052         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
18053         * tree-ssa-phiopt.c: Likewise.
18054         * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
18055         fixed-value.h hashtab.h real.h statistics.h stmt.h.
18056         * config/fr30/fr30.c: Likewise.
18057         * config/frv/frv.c: Likewise.
18058         * expr.c: Likewise.
18059         * final.c: Likewise.
18060         * optabs.c: Likewise.
18061         * passes.c: Likewise.
18062         * simplify-rtx.c: Likewise.
18063         * stmt.c: Likewise.
18064         * toplev.c: Likewise.
18065         * var-tracking.c: Likewise.
18066         * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
18067         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
18068         * lower-subreg.c: Likewise.
18069         * postreload-gcse.c: Likewise.
18070         * ree.c: Likewise.
18071         * reginfo.c: Likewise.
18072         * store-motion.c: Likewise.
18073         * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
18074         fixed-value.h hashtab.h real.h stmt.h varasm.h.
18075         * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
18076         fixed-value.h hashtab.h statistics.h stmt.h.
18077         * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
18078         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
18079         * except.c: Likewise.
18080         * explow.c: Likewise.
18081         * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
18082         fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
18083         varasm.h.
18084         * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
18085         fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
18086         * tree-ssa-structalias.c: Likewise.
18087         * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
18088         fixed-value.h insn-config.h real.h statistics.h.
18089         * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
18090         fixed-value.h insn-config.h real.h statistics.h stmt.h.
18091         * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
18092         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
18093         * cfgbuild.c: Likewise.
18094         * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
18095         fixed-value.h real.h rtl.h statistics.h stmt.h.
18096         * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
18097         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
18098         * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
18099         fixed-value.h real.h statistics.h stmt.h.
18100         * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
18101         fixed-value.h real.h statistics.h stmt.h varasm.h.
18102         * cprop.c: Likewise.
18103         * modulo-sched.c: Likewise.
18104         * postreload.c: Likewise.
18105         * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
18106         flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
18107         statistics.h stmt.h varasm.h.
18108         * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
18109         explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
18110         rtl.h statistics.h stmt.h varasm.h.
18111         * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
18112         fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
18113         varasm.h.
18114         * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
18115         function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
18116         varasm.h.
18117         * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
18118         fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
18119         varasm.h.
18120         * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
18121         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
18122         * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
18123         function.h real.h statistics.h stmt.h varasm.h.
18124         * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
18125         insn-config.h real.h statistics.h stmt.h.
18126         * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
18127         statistics.h stmt.h.
18128         * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
18129         fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
18130         statistics.h stmt.h varasm.h.
18131         * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
18132         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
18133         * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
18134         flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
18135         * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
18136         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
18137         statistics.h stmt.h varasm.h.
18138         * ipa-polymorphic-call.c: Likewise.
18139         * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
18140         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
18141         statistics.h stmt.h.
18142         * config/c6x/c6x.c: Likewise.
18143         * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
18144         explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
18145         statistics.h stmt.h varasm.h.
18146         * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
18147         fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
18148         stmt.h varasm.h.
18149         * ipa-split.c: Likewise.
18150         * tree-eh.c: Likewise.
18151         * tree-ssa-dce.c: Likewise.
18152         * tree-ssa-loop-niter.c: Likewise.
18153         * tree-vrp.c: Likewise.
18154         * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
18155         expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
18156         stmt.h.
18157         * config/nds32/nds32-fp-as-gp.c: Likewise.
18158         * config/nds32/nds32-intrinsic.c: Likewise.
18159         * config/nds32/nds32-isr.c: Likewise.
18160         * config/nds32/nds32-md-auxiliary.c: Likewise.
18161         * config/nds32/nds32-memory-manipulation.c: Likewise.
18162         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
18163         * config/nds32/nds32-predicates.c: Likewise.
18164         * config/nds32/nds32.c: Likewise.
18165         * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
18166         fixed-value.h hashtab.h real.h statistics.h.
18167         * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
18168         fixed-value.h hashtab.h real.h statistics.h stmt.h.
18169         * config/arm/arm.c: Likewise.
18170         * config/avr/avr.c: Likewise.
18171         * config/bfin/bfin.c: Likewise.
18172         * config/h8300/h8300.c: Likewise.
18173         * config/i386/i386.c: Likewise.
18174         * config/ia64/ia64.c: Likewise.
18175         * config/iq2000/iq2000.c: Likewise.
18176         * config/m32c/m32c.c: Likewise.
18177         * config/m32r/m32r.c: Likewise.
18178         * config/m68k/m68k.c: Likewise.
18179         * config/mcore/mcore.c: Likewise.
18180         * config/mep/mep.c: Likewise.
18181         * config/mips/mips.c: Likewise.
18182         * config/mn10300/mn10300.c: Likewise.
18183         * config/moxie/moxie.c: Likewise.
18184         * config/pa/pa.c: Likewise.
18185         * config/rl78/rl78.c: Likewise.
18186         * config/rx/rx.c: Likewise.
18187         * config/s390/s390.c: Likewise.
18188         * config/sh/sh.c: Likewise.
18189         * config/sparc/sparc.c: Likewise.
18190         * config/spu/spu.c: Likewise.
18191         * config/stormy16/stormy16.c: Likewise.
18192         * config/v850/v850.c: Likewise.
18193         * config/vax/vax.c: Likewise.
18194         * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
18195         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
18196         * config/msp430/msp430.c: Likewise.
18197         * predict.c: Likewise.
18198         * value-prof.c: Likewise.
18199         * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
18200         expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
18201         * config/microblaze/microblaze.c: Likewise.
18202         * config/nios2/nios2.c: Likewise.
18203         * config/rs6000/rs6000.c: Likewise.
18204         * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
18205         insn-config.h real.h rtl.h statistics.h stmt.h.
18206         * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
18207         insn-config.h real.h statistics.h stmt.h.
18208         * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
18209         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
18210         * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
18211         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
18212         * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
18213         fixed-value.h real.h statistics.h stmt.h.
18214         * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
18215         fixed-value.h statistics.h stmt.h.
18216         * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
18217         stmt.h.
18219 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
18221         * gengtype.c (create_user_defined_type): Workaround
18222         -Wmaybe-uninitialized false positives.
18223         * cse.c (fold_rtx): Likewise.
18224         * loop-invariant.c (gain_for_invariant): Likewise.
18226 2015-01-15  Eric Botcazou  <ebotcazou@adacore.com>
18228         * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
18229         set the memory attributes in all cases but clear MEM_EXPR if need be.
18231 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
18233         PR tree-optimization/64434
18234         * cfgexpand.c (reorder_operands): New function.
18235         (expand_gimple_basic_block): Insert call of reorder_operands if
18236         optimized is true.
18238 2015-01-15  Matthew Fortune  <matthew.fortune@imgtec.com>
18240         * config/mips/micromips.md (*swp): Remove explicit parallel.
18241         (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
18242         * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
18243         (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
18244         (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
18245         (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
18246         (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
18247         (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
18248         (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
18249         (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
18250         (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
18251         (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
18252         (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
18253         (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
18254         (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
18255         (mips_wrdsp): Likewise.
18256         * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
18257         parallel.
18258         (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
18259         (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
18260         (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
18261         (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
18262         (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
18263         (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
18264         * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
18265         (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
18266         (ssmaddsqdq4, ssmsubsqdq4): Likewise.
18268 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
18270         * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
18271         (mips_print_operand): Support 'y' to print exact log2 in decimal
18272         of a const_int.
18273         * config/mips/mips.h (ISA_HAS_LSA): New define.
18274         (ISA_HAS_DLSA): Likewise.
18275         * config/mips/mips.md (<GPR:d>lsa): New define_insn.
18276         * config/mips/predicates.md (const_immlsa_operand): New predicate.
18278 2015-01-15  Martin Liska  <mliska@suse.cz>
18280         PR target/64377
18281         * optc-save-gen.awk: Add support for array types.
18283 2015-01-15  Richard Biener  <rguenther@suse.de>
18285         PR middle-end/64365
18286         * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
18287         for MEM_REF access functions with the same base can never partially
18288         overlap.
18290 2015-01-14  Marcos Diaz <marcos.diaz@tallertechnologies.com>
18292         * common.opt: New option -fstack-protector-explicit.
18293         * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
18294         (stack_protect_decl_phase): Handle stack_protect attribute for
18295         explicit stack protection requests.
18296         (expand_used_vars): Similarly.
18297         * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
18298         * doc/extend.texi: Add documentation for "stack_protect" attribute.
18299         * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
18301 2015-01-14  Oleg Endo  <olegendo@gcc.gnu.org>
18303         PR target/53988
18304         * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
18305         reg-reg copies.
18306         (sh_extending_set_of_reg): New struct.
18307         (sh_find_extending_set_of_reg, sh_split_tst_subregs,
18308         sh_remove_reg_dead_or_unused_notes): New Declarations.
18309         * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
18310         sh_find_extending_set_of_reg, sh_split_tst_subregs,
18311         sh_extending_set_of_reg::use_as_extended_reg): New functions.
18312         * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
18313         convert to insn_and_split and use new function sh_split_tst_subregs.
18315 2015-01-14  Sandra Loosemore  <sandra@codesourcery.com>
18317         * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
18318         option.
18319         (Optimization Options): Move -fuse-ld documentation to...
18320         (Link Options): ...here.
18322 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
18324         * config/mips/constraints.md (ZC): Add support for R6 LL/SC
18325         offsets.
18326         (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
18327         * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
18328         (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
18329         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
18330         instead of ZR for the memory operand of LL/SC.
18331         (compare_and_swap_12, sync_add<mode>): Likewise.
18332         (sync_<optab>_12, sync_old_<optab>_12): Likewise.
18333         (sync_new_<optab>_12, sync_nand_12): Likewise.
18334         (sync_old_nand_12, sync_new_nand_12): Likewise.
18335         (sync_sub<mode>, sync_old_add<mode>): Likewise.
18336         (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
18337         (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
18338         (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
18339         (sync_nand<mode>, sync_old_nand<mode>): Likewise.
18340         (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
18341         (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
18342         (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
18343         * doc/md.texi (ZC): Update description.
18345 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
18347         * builtins.c (expand_builtin_atomic_exchange): Remove error when
18348         memory model is CONSUME.
18349         (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
18350         expand_builtin_atomic_store): Change invalid memory model errors to
18351         warnings.
18352         (expand_builtin_atomic_clear): Change invalid model errors to warnings
18353         and issue warning for CONSUME.
18355 2015-01-14  Aldy Hernandez  <aldyh@redhat.com>
18357         * lto-cgraph: Update function comments for
18358         lto_symtab_encoder_encode_*.
18360 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
18362         * Makefile.in (site.exp): Do not set ENABLE_LTO.
18364 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
18366         * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
18367         * lto-cgraph.c (select_what_to_stream): Remove argument, use
18368         lto_stream_offload_p instead.
18369         * lto-streamer.h (select_what_to_stream): Remove argument.
18370         * passes.c (ipa_write_summaries): Likewise.
18371         * tree-pass.h (ipa_write_summaries): Likewise.
18373 2015-01-14  Richard Biener  <rguenther@suse.de>
18375         PR tree-optimization/59354
18376         * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
18377         groups larger than the slp group size as having gaps.
18379 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
18381         PR middle-end/59448
18382         * builtins.c (get_memmodel): Promote consume to acquire always.
18384 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
18386         PR target/64386
18387         * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
18388         V32HImode.
18390 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
18392         PR target/64393
18393         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
18394         Enable AVX512BW.
18395         (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
18396         * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
18397         AVX512VBMI, as it implies AVX512BW.
18399 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
18401         PR target/64387
18402         * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
18403         (vec_unpacks_hi_v16sf): Ditto.
18405 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18407         * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
18408         is not available.
18410 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18412         * doc/invoke.texi (mapcs): Mention deprecation.
18413         (mapcs-frame): Likewise.
18415 2015-01-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
18417         PR target/64453
18418         * config/arm/arm.c (callee_saved_reg_p): Define.
18419         (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
18420         register is callee saved instead of !call_used_regs[reg].
18421         (thumb1_compute_save_reg_mask): Likewise.
18423 2015-01-14  Hale Wang  <hale.wang@arm.com>
18425         * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
18426         Cortex-M7.
18428 2015-01-14  Richard Biener  <rguenther@suse.de>
18430         PR lto/64415
18431         * tree-inline.c (insert_debug_decl_map): Check destination
18432         function MAY_HAVE_DEBUG_STMTS.
18433         (insert_init_debug_bind): Likewise.
18434         (insert_init_stmt): Remove redundant check.
18435         (remap_gimple_stmt): Drop debug stmts if the destination
18436         function has var-tracking assignments disabled.
18438 2015-01-14  Martin Liska  <mliska@suse.cz>
18440         * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
18441         IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
18443 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18445         PR target/64460
18446         * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
18447         (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
18449 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
18451         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
18452         level from an ARCH; do not inject the default.
18453         (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
18454         MIPS_ISA_LEVEL_SPEC.
18455         (MIPS_ISA_NAN2008_SPEC): Update comment.
18456         (BASE_DRIVER_SELF_SPECS): Likewise.
18457         * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
18458         MIPS_DEFAULT_ISA_LEVEL_SPEC.
18459         * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
18460         * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
18461         * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
18463 2015-01-14  Richard Biener  <rguenther@suse.de>
18465         PR tree-optimization/64493
18466         PR tree-optimization/64495
18467         * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
18468         assign the proper vectorized PHI to the inner loop exit PHIs.
18470 2015-01-14  Joey Ye  <joey.ye@arm.com>
18472         * config/arm/arm.c (arm_compute_save_reg_mask):
18473         Do not save lr in case of tail call.
18474         * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
18476 2015-01-14  Martin Uecker <uecker@eecs.berkeley.edu>
18478         * tree-vrp.c (check_array_ref): Emit more warnings
18479         for warn_array_bounds >= 2.
18480         * common.opt: New option -Warray-bounds=.
18481         * doc/invoke.texi: Document -Warray-bounds=.
18483 2015-01-14  Chung-Ju Wu  <jasonwucj@gmail.com>
18485         * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
18486         (mforbid-fp-as-gp): Remove.
18487         (mex9): Remove.
18488         * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
18489         (nds32_symbol_load_store_p): Remove.
18490         (nds32_fp_as_gp_check_available): Clean up implementation.
18491         * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
18492         cases.
18493         * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
18494         fp-as-gp and ex9 cases.
18496 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
18498         * tree-profile.c (init_ic_make_global_vars): Drop workaround
18499         for bintuils bug 14342.
18500         (init_ic_make_global_vars): Likewise.
18501         (gimple_init_edge_profiler): Likewise.
18502         (gimple_gen_ic_func_profiler): Likewise.
18504 2015-01-13  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
18506         * ipa-inline.c (inline_small_functions): Swap the operands in
18507         enum.
18509 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
18511         PR ipa/64481
18512         * ipa-inline-analysis.c (node_growth_cache): Remove.
18513         (initialize_growth_caches): Do not initialize it.
18514         (free_growth_caches): Do not free it.
18515         (do_estimate_growth): Rename to ...
18516         (estimate_growth): ... this one; drop growth cache code.
18517         (growth_likely_positive): Always go the heuristics way.
18518         * ipa-inline.c (can_inline_edge_p): Walk through aliases.
18519         (reset_edge_caches): Do not reset node growth.
18520         (heap_edge_removal_hook): Do not maintain cache.
18521         (inline_small_functions): Likewise; strenghten sanity check.
18522         (ipa_inline): Do not maintain caches.
18523         * ipa-inline.h (node_growth_cache): Remove.
18524         (do_estimate_growth): Remove to ...
18525         (estimate_growth): this one; remove inline version.
18526         (reset_node_growth_cache): Remove.
18528 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
18530         PR ipa/64565
18531         * ipa-inline.c (inline_small_functions): Update callee keys after
18532         resolving speculation
18533         (inline_small_functions): Always check monotonicity of the queue.
18535 2015-01-13  Marek Polacek  <polacek@redhat.com>
18537         PR middle-end/64391
18538         * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
18540 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
18542         PR rtl-optimization/64286
18543         * ree.c (combine_reaching_defs): Move part of comment earlier,
18544         remove !SCALAR_INT_MODE_P check.
18545         (add_removable_extension): Don't add vector mode
18546         extensions if all uses of the source register aren't the same
18547         vector extensions.
18549 2015-01-13  Renlin Li  <renlin.li@arm.com>
18551         * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
18552         (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
18554 2015-01-13  Martin Liska  <mliska@suse.cz>
18556         * ipa-icf.c (sem_function::equals_private): Call new functions
18557         cl_target_option_print_diff and cl_optimization_print_diff.
18558         * optc-save-gen.awk (cl_target_option_print_diff): New function.
18559         (cl_optimization_print_diff): Likewise.
18560         * opth-gen.awk: Likewise.
18562 2015-01-13  Richard Sandiford  <richard.sandiford@arm.com>
18564         * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
18565         (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
18566         (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
18567         (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
18568         (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
18569         (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
18571 2015-01-13  Andrew Pinski  <apinski@cavium.com>
18573         * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
18574         instead of src mode.
18576 2015-01-13  Richard Biener  <rguenther@suse.de>
18578         PR lto/64373
18579         * lto-streamer-out.c (tree_is_indexable): Guard for NULL
18580         DECL_CONTEXT.
18582 2015-01-13  Andrew Pinski  <apinski@cavium.com>
18584         * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
18585         volatile mems.
18586         (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
18588 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
18590         PR middle-end/63974
18591         * cfgexpand.c (expand_computed_goto): Don't call
18592         convert_memory_address here.
18594 2015-01-13  Richard Biener  <rguenther@suse.de>
18596         PR tree-optimization/64406
18597         * tree-loop-distibution.c (pass_loop_distribution::execute):
18598         Reset the SCEV hashtable if we distributed anything.
18600 2015-01-13  Richard Biener  <rguenther@suse.de>
18602         PR tree-optimization/64404
18603         * tree-vect-stmts.c (vectorizable_load): Reject conflicting
18604         SLP types for CSEd loads.
18606 2015-01-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
18608         PR tree-optimization/64436
18609         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
18610         merge of two symbolic numbers for a bitwise OR to ...
18611         (perform_symbolic_merge): This. Also fix computation of the range and
18612         end of the symbolic number corresponding to the result of a bitwise OR.
18614 2015-01-13  Richard Biener  <rguenther@suse.de>
18616         PR tree-optimization/64568
18617         * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
18618         release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
18620 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
18622         * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
18623         TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
18625 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
18627         * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
18628         target-specific symbol_ref flag.
18629         (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
18630         resides in rodata section.
18631         * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
18632         (nds32_encode_section_info): New function.
18634 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
18636         * config/nds32/nds32.md (call): Use pseudo instruction bal which
18637         clobbers TA_REGNUM if large code model is specified.
18638         (call_register): Likewise.
18639         (call_immediate): Likewise.
18640         (call_value): Likewise.
18641         (call_value_register): Likewise.
18642         (call_value_immediate): Likewise.
18644 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
18646         * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
18647         (TARGET_CMODEL_MEDIUM): New macro.
18648         (TARGET_CMODEL_LARGE): New macro.
18649         * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
18650         code model setting in assembly code.
18652 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
18654         * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
18655         Remove MASK_GP_DIRECT flag.
18656         * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
18657         one of the multilib default options.
18658         * config/nds32/nds32.opt (mgp-direct): Remove.
18659         * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
18660         -mgp-direct.  We also remove unnecessary -mlittle-endian/-mbig-endian.
18662 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
18664         * config/nds32/nds32.opt (mcmodel): Add new option.
18665         * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
18666         to describe code model.
18668 2015-01-13  Oleg Endo  <olegendo@gcc.gnu.org>
18670         PR target/64479
18671         * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
18673 2015-01-12  Kaz Kojima  <kkojima@gcc.gnu.org>
18675         * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
18676         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
18677         (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
18678         (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
18679         __builtin_sh_set_fpscr.
18681 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
18683         * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
18684         after a funtion name just to indicate it is a function.
18685         ([-fsanitize-undefined-trap-on-error]): Likewise.
18686         ([-fdbg-cnt=]): Likewise.
18687         ([-mmemcpy]): Likewise.
18688         ([-mflush-func]): Likewise.
18689         ([-msynci]): Likewise.
18691 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
18693         * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
18694         example.
18696 2015-01-12  Jakub Jelinek  <jakub@redhat.com>
18698         PR tree-optimization/64563
18699         * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
18700         instead of != VR_VARYING.
18702         PR target/64513
18703         * config/i386/i386.c (ix86_expand_prologue): Add
18704         REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
18706         PR tree-optimization/64454
18707         * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
18708         op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
18709         for signed or [0, op1 - 1] for unsigned modulo.
18710         (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
18711         even if op1 does not satisfy integer_pow2p.
18713         PR other/64370
18714         * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
18716 2015-01-12  Jeff Law  <law@redhat.com>
18718         PR target/64461
18719         * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
18720         (trunchiqi2, truncsihi2): Similarly.
18722         * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
18723         rather than calling F.
18725 2015-01-12  Bernd Edlinger  <bernd.edlinger@hotmail.de>
18727         * tsan.c (instrument_expr): Use force_gimple_operand.
18728         Use may_be_nonaddressable_p instead of is_gimple_addressable.
18730 2015-01-12  Richard Biener  <rguenther@suse.de>
18732         PR tree-optimization/64530
18733         * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
18734         back dr1.
18736 2015-01-12  Richard Biener  <rguenther@suse.de>
18738         PR middle-end/64357
18739         * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
18740         latches properly.
18742 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18744         * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
18745         Cortex-A17 tuning parameters.
18746         * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
18748 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18750         * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
18751         * config/arm/arm.c (arm_macro_fusion_p): New function.
18752         (arm_macro_fusion_pair_p): Likewise.
18753         (TARGET_SCHED_MACRO_FUSION_P): Define.
18754         (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
18755         (ARM_FUSE_NOTHING): Likewise.
18756         (ARM_FUSE_MOVW_MOVT): Likewise.
18757         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
18758         arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
18759         arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
18760         arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
18761         arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
18762         arm_cortex_a5_tune): Specify fuseable_ops value.
18764 2015-01-12  H.J. Lu  <hongjiu.lu@intel.com>
18766         PR bootstrap/64561
18767         * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
18768         test for PIE with copy reloc.
18769         * configure: Regenerated.
18771 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18773         * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
18774         in gen_rtx_REG.
18775         (arm_tls_descseq_addr): Likewise.
18776         (arm_gen_movmemqi): Likewise.
18777         (arm_expand_epilogue_apcs_frame): Likewise.
18778         (arm_expand_epilogue): Likewise.
18779         (arm_expand_prologue): Likewise.  Use R1_REGNUM instead of constant 1
18780         in gen_rtx_REG.
18782 2015-01-12  Martin Liska  <mliska@suse.cz>
18784         PR ipa/64550
18785         * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
18786         volatility for correct operands.
18788 2015-01-12  Martin Liska  <mliska@suse.cz>
18790         * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
18791         indication that a function is not leaf.
18792         (sem_function::compare_polymorphic_p): Likewise.
18794 2015-01-12  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
18796         * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
18797         machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
18798         fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
18799         fold-const.h, tree-check.h.
18801 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
18803         PR ipa/63967
18804         PR ipa/64425
18805         * ipa-inline.c (compute_uninlined_call_time,
18806         compute_inlined_call_time): Use counts for extra precision when
18807         needed possible.
18808         (big_speedup_p): Fix formating.
18809         (RELATIVE_TIME_BENEFIT_RANGE): Remove.
18810         (relative_time_benefit): Remove.
18811         (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
18812         merge guessed and read profile paths.
18813         (inline_small_functions): Count only !optimize_size functions into
18814         initial size; be more lax about sanity check when profile is used;
18815         be sure to update inlined function profile when profile is read.
18817 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
18819         PR ipa/63470
18820         * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
18821         cost when edge becomes direct.
18822         * ipa-prop.c (make_edge_direct): Do not adjust when speculation
18823         is resolved or when introducing new speculation.
18825 2015-01-12  Chen Gang  <gang.chen.5i5j@gmail.com>
18827         PR ipa/64551
18828         PR ipa/64552
18829         * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
18830         '||' to fix typo issue.
18832         * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
18833         accept and return NULL.
18835 2015-01-12  Martin Liska  <mliska@suse.cz>
18837         * cgraph.c (cgraph_edge::remove_callee): Move function to header
18838         file for being inlined.
18839         (cgraph_set_edge_callee): Delete.
18840         (cgraph_edge::redirect_callee): Move function to header file
18841         for being inlined.
18842         (cgraph_edge::make_direct): Use new function.
18843         (cgraph_edge::dump_edge_flags): New function created from
18844         static dump_edge_flags function.
18845         (cgraph_node::dump): Use new function.
18846         (cgraph_edge::verify_count_and_frequency): New function created
18847         from verify_edge_count_and_frequency.
18848         (cgraph_edge::verify_corresponds_to_fndecl): New function created
18849         from verify_edge_corresponds_to_fndecl.
18850         (verify_edge_corresponds_to_fndecl): Delete.
18851         (cgraph_node::verify_node): Use new function.
18852         * cgraph.h (cgraph_edge::set_callee): New function.
18853         (cgraph_edge::dump_edge_flags): Likewise.
18854         (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
18856 2015-01-11  Jan Hubicka  <hubicka@ucw.cz>
18858         * ipa-utils.c (estimate_function_body_sizes): Do not
18859         free node params when called late with early=true.
18861 2015-01-11  James Greenhalgh  <james.greenhalgh@arm.com>
18863         * doc/md.texi (Instruction Patterns): Rewrite text for
18864         clarity.
18865         (Example): Likewise.
18867 2015-01-10  Sandra Loosemore  <sandra@codesourcery.com>
18869         * doc/invoke.texi (Option Summary): Break long lines.
18870         [(-fdiagnostics-color)]: Put long literal in @smallexample
18871         instead of inline.
18872         [(-fsanitize-recover)]: Likewise.
18873         [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
18874         [(-ffast-math)]: Likewise.
18875         [(--param max-inline-insns-recursive)]: Likewise.
18876         [(--param max-inline-recursive-depth)]: Likewise.
18877         [(-mno-text-section-literals)]: Likewise.
18879 2015-01-10  Thomas Schwinge  <thomas@codesourcery.com>
18881         * doc/install.texi: Update for libgomp being renamed from "GNU
18882         OpenMP Runtime Library" to "GNU Offloading and Multi Processing
18883         Runtime Library".
18884         * doc/sourcebuild.texi: Likewise.
18886 2015-01-10  Anthony Green  <green@moxielogic.com>
18888         * config/moxie/moxie.c (moxie_option_override): Fix forcing of
18889         mul.x availability for moxiebox configuration.
18891 2015-01-09  Anthony Green  <green@moxielogic.com>
18893         * config/moxie/moxie.md: Tabify assembly output.
18895 2015-01-09  Anthony Green  <green@moxielogic.com>
18897         * config/moxie/moxie.md (CC_REG): Correct register definition.
18899 2015-01-09  Sandra Loosemore  <sandra@codesourcery.com>
18901         * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
18902         ([-fvtv-debug], [-fvtv-counts]): Likewise.  Correct location
18903         of log files.
18905 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
18907         * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
18909 2015-01-09  Bernd Schmidt  <bernds@codesourcery.com>
18910             Jakub Jelinek  <jakub@redhat.com>
18912         PR middle-end/64412
18913         * lto-streamer.h (lto_stream_offload_p): New declaration.
18914         * lto-streamer.c (lto_stream_offload_p): New variable.
18915         * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
18916         at the same time as section_name_prefix.
18917         * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
18918         if lto_stream_offload_p.
18919         * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
18920         stream TREE_TARGET_OPTION if lto_stream_offload_p.
18921         (write_ts_function_decl_tree_pointers): Don't
18922         stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
18923         * tree-streamer-in.c (unpack_value_fields): Don't stream
18924         TREE_TARGET_OPTION in if ACCEL_COMPILER.
18925         (lto_input_ts_function_decl_tree_pointers): Don't stream
18926         DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
18927         * lto-opts.c (lto_write_options): Use lto_stream_offload_p
18928         instead of section_name_prefix string comparisons.
18930 2015-01-09  Jakub Jelinek  <jakub@redhat.com>
18932         PR rtl-optimization/64536
18933         * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
18934         tablejumps.
18936 2015-01-09  Michael Collison  <michael.collison@linaro.org>
18938         PR tree-optimization/64322
18939         * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
18940         range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
18942 2015-01-09  Tom de Vries  <tom@codesourcery.com>
18944         PR rtl-optimization/64539
18945         * regcprop.c (kill_clobbered_values): Factor out of ...
18946         (copyprop_hardreg_forward_1): ... here.  Use kill_clobbered_values
18947         instead of note_stores with kill_clobbered_value.
18949 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
18951          * ginclude/unwind-arm-common.h: Revert previous commit.
18953 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
18955         * config.gcc (arm*-*-freebsd*): New configuration.
18956         * config/arm/freebsd.h: New file.
18957         * config.host: Add extra components for arm*-*-freebsd*.
18958         * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
18959         * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
18961 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
18963         * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
18964         for -mcpu=e6500.
18965         * config/rs6000/t-rtems: Add e6500 multilibs.
18967 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
18969         * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
18970         MPC8540.
18972 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
18974         * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
18975         MULTILIB_EXCEPTIONS.
18977 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
18979         * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
18980         MULTILIB_EXCEPTIONS.
18982 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
18984         * config/arm/t-rtems-eabi: Rename to...
18985         * config/arm/t-rtems: ...this.
18986         * config/arm/rtems-eabi.h: Rename to...
18987         * config/arm/rtems.h: ...this.
18988         * config.gcc (arm*-*-rtems*): Reflect changes above.
18990 2015-01-09  Richard Biener  <rguenther@suse.de>
18992         PR tree-optimization/64410
18993         * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
18994         on the LHS.
18995         (execute_update_addresses_taken): Deal with that.
18996         * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
18997         loads/stores for complex variables.
18999 2015-01-09  Martin Liska  <mliska@suse.cz>
19001         * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
19002         name comparison.
19003         (func_checker::compare_memory_operand): New function.
19004         (func_checker::compare_operand): Split case to newly
19005         added functions.
19006         (func_checker::compare_cst_or_decl): New function.
19007         (func_checker::compare_gimple_call): Identify
19008         memory operands.
19009         (func_checker::compare_gimple_assign): Likewise.
19010         * ipa-icf-gimple.h: New function.
19012 2015-01-09  Martin Liska  <mliska@suse.cz>
19014         PR ipa/64503
19015         * sreal.c (sreal::dump): Change unsigned format to signed for
19016         m_exp value.
19017         (sreal::to_double): Replace exp2 with scalbln.
19019 2015-01-09  Martin Liska  <mliska@suse.cz>
19021         * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
19022         * ipa-icf.c (sem_function::equals_private): Add support for target and
19023         (sem_item_optimizer::merge_classes): Remove redundant function
19024         optimization flags comparison.
19025         * tree.h (target_opts_for_fn): New function.
19027 2015-01-09  Tom de Vries  <tom@codesourcery.com>
19029         * omp-low.c (expand_omp_for_static_chunk): Fix assert.
19031 2015-01-09  Kito Cheng  <kito@0xlab.org>
19033         PR rtl-optimization/64348
19034         * lra-constraints.c (split_reg): Fix caller-save store/restore
19035         instruction generation.
19037 2015-01-08  John David Anglin  <danglin@gcc.gnu.org>
19039         PR gcov-profile/61790
19040         * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
19041         long long.  Fallback to int64_t if host doesn't have long long and
19042         use strtol if int64_t is long.  Otherwise, use sscanf for conversion.
19044 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
19046         PR tree-optimization/63989
19047         * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
19048         from 1000 to 10000.
19049         * tree-ssa-strlen.c (get_strinfo): Moved earlier.
19050         (get_stridx): If we don't have a record for certain SSA_NAME,
19051         but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
19052         constant offset, call get_stridx_plus_constant.
19053         (get_stridx_plus_constant): New function.
19054         (zero_length_string): Don't use get_stridx here.
19056         PR target/55023
19057         PR middle-end/64388
19058         * dse.c (struct insn_info): Mention frame_read set also
19059         before reload for tail calls on some targets.
19060         (scan_insn): Revert 2014-12-22 change.  Set frame_read
19061         also before reload for tail calls if
19062         HARD_FRAME_POINTER_IS_ARG_POINTER.  Call add_wild_read
19063         instead of add_non_frame_wild_read for non-const/memset
19064         tail calls after reload.
19066 2015-01-08  Jason Merrill  <jason@redhat.com>
19068         * ubsan.c (do_ubsan_in_current_function): New.
19069         (pass_ubsan::gate): Use it.
19070         * ubsan.h: Declare it.
19071         * convert.c (convert_to_integer): Use it.
19073 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
19075         PR target/64338
19076         * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
19077         compare_code when it is unconditionally overwritten afterwards.
19078         Use ix86_reverse_condition instead of reverse_condition.  Don't
19079         change code if *reverse_condition* returned UNKNOWN and don't
19080         swap ct/cf and negate diff in that case.
19082 2015-01-08  Mike Stump  <mikestump@comcast.net>
19084         * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
19085         (pass_tsan_O0::gate): Likewise.
19086         * extend.texi (Function Attributes): Add no_sanitize_thread
19087         documentation.
19089 2015-01-08  Thomas Schwinge  <thomas@codesourcery.com>
19091         * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
19092         for registering builtins.
19093         * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
19094         add -fopenmp to the argv_obstack used when invoking
19095         compile_for_target.
19097         * config/i386/intelmic-mkoffload.c (compile_for_target): Always
19098         add "-m32" or "-m64" to argv_obstack.
19099         (generate_host_descr_file): Likewise, when invoking host_compiler.
19100         (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
19101         ld.
19103 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
19105         * config/sh/sh-mem.cc: Use constant as second operand when emitting
19106         tstsi_t insns.
19108 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
19110         PR target/55212
19111         * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
19112         constant load if constant operand fits into I08.
19114 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
19116         PR sanitizer/64336
19117         * tree.c (build2_stat): Fix up initialization of TREE_READONLY
19118         and TREE_THIS_VOLATILE for MEM_REFs.
19119         (build5_stat): Fix up initialization of TREE_READONLY and
19120         TREE_THIS_VOLATILE for TARGET_MEM_REFs.
19122 2015-01-08  Kaz Kojima  <kkojima@gcc.gnu.org>
19124         PR target/64533
19125         * config/sh/sh.md (*addsi3_compact): Use u constraint instead
19126         of r for the second alternative of the destination operand.
19128 2015-01-07  Segher Boessenkool  <segher@kernel.crashing.org>
19130         PR target/36557
19131         * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
19133 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
19135         * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
19136         keywords.
19137         ([-fivar-visibility], [-fvisibility]): Likewise.
19139 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
19141         * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
19142         the file where @code, @command, etc is more appropriate.
19144 2015-01-06  Sandra Loosemore  <sandra@codesourcery.com>
19146         * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
19147         of -mrecip= documentation.
19149 2015-01-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
19151         PR target/64505
19152         * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
19153         correct reload handler if -m32 -mpowerpc64 is used.
19155 2015-01-06  Tom de Vries  <tom@codesourcery.com>
19157         * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
19159 2015-01-08  Christian Bruel  <christian.bruel@st.com>
19161         PR target/64507
19162         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
19164 2015-01-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
19166         PR tree-optimization/63259
19167         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
19168         if optab exists for 16bit byteswap.
19170 2015-01-06  Jakub Jelinek  <jakub@redhat.com>
19172         * opts.c (common_handle_option): Add support for
19173         -fno-sanitize=all and -f{,no-}sanitize-recover=all.
19174         * doc/invoke.texi: Document -fno-sanitize=all,
19175         -f{,no-}sanitize-recover=all.  Document that
19176         -fsanitize=float-cast-overflow is not enabled
19177         by -fsanitize=undefined.  Fix up documentation
19178         of -f{,no-}sanitize-recover.
19180 2015-01-06  Eric Botcazou  <ebotcazou@adacore.com>
19182         * config.gcc: Add Visium support.
19183         * configure.ac: Likewise.
19184         * configure: Regenerate.
19185         * doc/extend.texi (interrupt attribute): Add Visium.
19186         * doc/invoke.texi: Document Visium options.
19187         * doc/install.texi: Document Visium target.
19188         * doc/md.texi: Document Visium constraints.
19189         * common/config/visium: New directory.
19190         * config/visium: Likewise.
19192 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
19194         * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
19195         for the "(and X (ior (not X) Y) -> (and X Y)" transform.
19197 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
19199         * combine.c (combine_validate_cost): Do not count the cost of a
19200         split I2 twice.  Do not display it twice in the dump, either.
19202 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
19204         Revert parts of r219199.
19205         * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
19206         <inttypes.h>.
19207         ([-Wtraditional]): Restore markup on <limits.h>.
19209 2015-01-05  Trevor Saunders  <tsaunders@mozilla.com>
19211         PR c++/31397
19212         * doc/invoke.texi: Document -Wsuggest-override.
19214 2015-01-05  Radovan Obradovic  <radovan.obradovic@imgtec.com>
19216         PR rtl-optimization/64287
19217         * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
19218         (process_options): Disable flag_ipa_ra if profiling.
19220 2015-01-05  Eric Botcazou  <ebotcazou@adacore.com>
19222         * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
19224 2015-01-05  Max Filippov  <jcmvbkbc@gmail.com>
19226         * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
19227         hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
19228         put under #if TARGET_LOOPS guard.
19230 2015-01-05  Uros Bizjak  <ubizjak@gmail.com>
19232         * config/i386/i386.c (output_387_binary_op): Use std::swap.
19234 2015-01-05  Oleg Endo  <olegendo@gcc.gnu.org>
19236         * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
19237         * rtl.h (refers_to_regno_p): Add overload.
19238         * cse.c: Use it.
19239         * bt-load.c: Likewise.
19240         * combine.c: Likewise.
19241         * df-scan.c: Likewise.
19242         * sched-deps.c: Likewise.
19243         * config/s390/s390.c: Likewise.
19244         * config/m32r/m32r.c: Likewise.
19245         * config/rs6000/spe.md: Likewise.
19246         * config/rs6000/rs6000.c: Likewise.
19247         * config/pa/pa.c: Likewise.
19248         * config/stormy16/stormy16.c: Likewise.
19249         * config/cris/cris.c: Likewise.
19250         * config/arc/arc.md: Likewise.
19251         * config/arc/arc.c: Likewise.
19252         * config/sh/sh.md: Likewise.
19253         * config/sh/sh.c: Likewise.
19254         * config/frv/frv.c: Likewise.
19256 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
19258         PR sanitizer/64265
19259         * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
19260         call as cleanup of the whole body.
19261         * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
19262         * tsan.c (replace_func_exit): New function.
19263         (instrument_func_exit): Moved earlier.
19264         (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
19265         Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
19266         been found.
19267         (tsan_pass): Don't call instrument_func_exit.
19268         * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
19269         * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
19270         inlining.
19272         PR sanitizer/64344
19273         * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
19274         * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
19275         it to libubsan handler instead of EXPR.  Fold comparisons earlier,
19276         if the result is integer_zerop, return NULL_TREE.
19277         * convert.c (convert_to_integer): Pass expr as ARG.
19279         PR tree-optimization/64465
19280         * tree-inline.c (redirect_all_calls): During inlining
19281         clean up EH stmts and EH edges if redirect_call_stmt_to_callee
19282         changed the stmt to a non-throwing call.
19284 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
19286         * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
19287         etc markup throughout the file.
19289 2015-01-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
19291         Enable experimental TSAN support for Ada.
19292         * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
19294 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
19296         PR tree-optimization/64494
19297         * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
19298         clear SSA_NAME_ANTI_RANGE_P flag.
19300 2015-01-05  Marek Polacek  <polacek@redhat.com>
19302         * doc/extend.texi (Arrays of Length Zero): Add missing comma.
19304 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
19306         Update copyright years.
19308         * gcc.c (process_command): Update copyright notice dates.
19309         * gcov-dump.c: Ditto.
19310         * gcov.c: Ditto.
19311         * doc/cpp.texi: Bump @copying's copyright year.
19312         * doc/cppinternals.texi: Ditto.
19313         * doc/gcc.texi: Ditto.
19314         * doc/gccint.texi: Ditto.
19315         * doc/gcov.texi: Ditto.
19316         * doc/install.texi: Ditto.
19317         * doc/invoke.texi: Ditto.
19319         * auto-profile.c, auto-profile.h: Fix up Copyright line.
19321 2015-01-04  Sandra Loosemore  <sandra@codesourcery.com>
19323         * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
19324         verb tense, etc.
19325         ([-fvtable-verify], [-fvtv-debug]): Likewise.
19326         ([-Wabi]): Likewise.
19327         ([-fmessage-length]): Likewise.
19328         ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
19329         ([-Wno-discarded-qualifiers]): Likewise.
19330         ([-Wnodiscarded-array-qualifiers]): Likewise.
19331         ([-Wno-virtual-move-assign]): Likewise.
19332         ([-fsanitize=address], [-fsanitize=thread]): Likewise.
19333         ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
19334         ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
19335         ([-fsanitize-undefined-trap-on-error]): Likewise.
19336         ([-floop-interchange]): Likewise.
19337         ([-ftree-coalesce-inlined-vars]): Likewise.
19338         ([-fvect-cost-model]): Likewise.
19339         ([-flto]): Likewise.
19340         ([--param]): Likewise.
19341         (Spec Files): Likewise.
19342         ([-mstrict-align]): Likewise.
19343         ([-mfix-cortex-a53-835769]): Likewise.
19344         ([-march], [-mtune]): Likewise.
19345         ([-mpic-register]): Likewise.
19346         ([-munaligned-access]): Likewise.
19347         ([-msp8]): Likewise.
19348         (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
19349         (AVR Built-in Macros): Likewise.
19350         ([-mpreferred-stack-boundary]): Likewise.
19351         ([-mtune-crtl]): Likewise.
19352         ([-mashf]): Likewise.
19353         ([-mmcu=]): Likewise.
19354         ([-minrt]): Likewise.
19355         ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
19356         ([-mupper-regs]): Likewise.
19357         ([-matomic-model]): Likewise.
19358         ([-mdiv]): Likewise.
19359         ([-mzdcbranch]): Likewise.
19360         ([-mdisable-callt]): Likewise.
19361         ([-msoft-float]): Likewise.
19362         ([-m8byte-align]): Likewise.
19363         ([-fstack-reuse]): Likewise.
19365 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
19367         * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
19368         Fix markup, light copy-editing.
19369         ([-fauto-profile]): Rewrite to fix formatting and content
19370         problems.
19372 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
19374         * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
19375         Copy-edit description.
19376         ([-fisolate-erroneous-paths-attribute]): Likewise.
19377         * common.opt (fisolate-erroneous-paths-dereference):
19378         Copy-edit description.
19379         (fisolate-erroneous-paths-attribute): Likewise.
19381 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
19383         * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
19384         tidy grammar.
19386 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
19388         * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
19389         ([-fvtv-debug]): Likewise.
19390         ([-Wc++-compat]): Likewise.
19391         ([-Wc++11-compat]): Likewise.
19392         ([-Wc++14-compat]): Likewise.
19393         ([-Wno-sized-deallocation]): Likewise.
19394         ([-femit-class-debug-always]): Likewise.
19395         ([-femit-struct-debug-detailed]): Likewise.
19396         ([-fno-keep-inline-dllexport]): Likewise.
19397         ([-fira-algorithm]): Likewise.
19398         ([-fira-region]): Likewise.
19399         ([-flra-remat]): Likewise.
19400         ([-fipa-ra]): Likewise.
19401         ([-fhoist-adjacent-loads]): Likewise.
19402         ([-fisolate-erroneous-paths-dereference]): Likewise.
19403         ([-fisolate-erroneous-paths-attribute]): Likewise.
19404         ([-ftree-switch-conversion]): Likewise.
19405         ([-ftree-tail-merge]): Likewise.
19406         ([-ftree-loop-if-convert]): Likewise.
19407         ([-ftree-loop-if-convert-stores]): Likewise.
19408         ([-ftree-loop-distribution]): Likewise.
19409         ([-ftree-loop-distribute-patterns]): Likewise.
19410         ([-flto-compression-level]): Likewise.
19411         ([-flto-report]): Likewise.
19412         ([-flto-report-wpa]): Likewise.
19413         ([-fuse-linker-plugin]): Likewise.
19414         ([-mfix-cortex-a53-835769]): Likewise.
19415         ([-mno-fix-cortex-a53-835769]): Likewise.
19416         ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
19417         explicit listing; add a note to the discussion indicating they
19418         exist.  Reorder table to group similar options.  Add missing
19419         @opindex entries.  Add @need commands throughout the table to
19420         allow it to be split across multiple pages.
19421         ([-m8bit-idiv]): Fix @opindex.
19422         ([-mavx256-split-unaligned-load]): Likewise.
19423         ([-mavx256-split-unaligned-store]): Likewise.
19424         ([-mstack-protector-guard]): Likewise.
19425         ([-mcpu=]): Likewise.
19426         ([-mcpu]): Likewise.
19427         ([-mpointer-size=]): Likewise.
19429 2015-01-03  John David Anglin  <danglin@gcc.gnu.org>
19431         * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
19432         instead of `m' constraint.  Likewise for unnamed movb comparison
19433         patterns using reg_before_reload_operand predicate.
19434         * config/pa/predicates.md (reg_before_reload_operand): Tighten
19435         predicate to reject register index and LO_SUM DLT memory forms
19436         after reload.
19438 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
19440         * doc/invoke.texi (Option Summary): Fix spelling of
19441         -fdevirtualize-at-ltrans.
19442         ([-fdevirtualize]): Fix markup.
19443         ([-fdevirtualize-speculatively]): Fix typo.
19444         ([-fdevirtualize-at-ltrans]): Likewise.  Make description less
19445         implementor-speaky.
19446         * common.opt (fdevirtualize-at-ltrans): Likewise.
19447         * ipa-devirt.c: Fix typos in comments throughout the file.
19448         (ipa_devirt): Fix typos in format strings for dump output.
19450 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
19452         * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
19453         discussion of defaults, light copy-editing.
19455 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
19457         * tsan.c (instrument_expr): corrected previous checkin.
19459 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
19461         Instrument bit field and unaligned accesses for TSAN.
19462         * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
19463         (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
19464         * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
19465         Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
19466         unaligned memory regions.
19468 2015-01-01  Anthony Green  <green@moxielogic.com>
19470         * config/moxie/predicates.md (moxie_general_movsrc_operand):
19471         Restrict move source register offsets to 16 bits.
19473 Copyright (C) 2015 Free Software Foundation, Inc.
19475 Copying and distribution of this file, with or without modification,
19476 are permitted in any medium without royalty provided the copyright
19477 notice and this notice are preserved.