3a9b3d5a2c73059fda5786e1b6abc28486aadf09
[platform/upstream/gcc.git] / gcc / ChangeLog
1 2016-03-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2
3         * tree-ssa-math-opts.c: Fix typo in comment.
4
5 2016-03-08  Jakub Jelinek  <jakub@redhat.com>
6
7         PR target/70110
8         * config/i386/i386.c (scalar_chain::make_vector_copies,
9         scalar_chain::convert_reg): Call end_sequence in between
10         get_insns and emit_conversion_insns rather than after both
11         calls.
12
13 2016-03-07  Uros Bizjak  <ubizjak@gmail.com>
14
15         PR target/70064
16         * config/i386/i386.h (machine_function): Add
17         pc_thunk_call_expanded flag.
18         (ix86_pc_thunk_call_expanded): New define.
19         * config/i386/i386.md (set_got, set_got_labelled): New expanders.
20         (*set_got): Rename insn pattern from set_got.
21         (*set_got_labelled): Rename inst pattern from set_got_labelled.
22         * config/i386/i386.c (ix86_compute_frame_layout): Use
23         ix86_pc_thunk_call_expanded to prevent red-zone.
24
25 2016-03-07  Martin Jambor  <mjambor@suse.cz>
26
27         * hsa.h (hsa_get_ctor_statements): Declare.
28         (hsa_get_dtor_statements): Likewise.
29         (hsa_get_kernel_dispatch_type): Likewise.
30         * hsa.c (hsa_get_ctor_statements): New function.
31         (hsa_get_dtor_statements): Likewise.
32         (hsa_get_kernel_dispatch_type): Likewise.
33         * hsa-brig.c (hsa_cdtor_statements): Removed.
34         (hsa_output_libgomp_mapping): Use hsa_get_ctor_statements and
35         hsa_get_dtor_statements.
36         * hsa-gen.c (hsa_kernel_dispatch_type): Removed.
37         (get_hsa_kernel_dispatch_offset): Use hsa_get_kernel_dispatch_type.
38
39 2016-03-07  Andre Vieira  <andre.simoesdiasvieira@arm.com>
40
41         * config/arm/arm-cores.def (cortex-r8): New.
42         * config/arm/arm-tables.opt (cortex-r8): Regenerate.
43         * config/arm/arm-tune.md: Likewise.
44         * gcc/doc/invoke.texi: Add cortex-r8 to list of cpu values.
45
46 2016-03-07  Martin Sebor  <msebor@redhat.com>
47
48         PR rtl-optimization/19705
49         * doc/invoke.texi (Options That Control Optimization): Clarify
50         -fno-branch-count-reg.
51
52 2016-02-26  Richard Biener  <rguenther@suse.de>
53             Jeff Law  <law@redhat.com>
54
55         PR tree-optimization/69740
56         * cfghooks.c (remove_edge): Request loop fixups if we delete
57         an edge that might turn an irreducible loop into a natural
58         loop.
59         * cfgloop.h (check_verify_loop_structure): Clear LOOPS_NEED_FIXUP.
60         Move after definition of loops_state_clear.
61
62 2016-03-07  Bin Cheng  <bin.cheng@arm.com>
63
64         PR rtl-optimization/69052
65         * rtlanal.c (commutative_operand_precedence): Set higher precedence
66         to CONST_WIDE_INT.
67
68 2016-03-07  Tom de Vries  <tom@codesourcery.com>
69
70         PR tree-optimization/70116
71         * tree-ssa-tail-merge.c (merge_stmts_p): New function, handling
72         is_tm_ending stmts and ubsan/asan internal functions.
73         (find_duplicate): Use it.  Don't test is_tm_ending here.
74
75 2016-03-07  Richard Biener  <rguenther@suse.de>
76
77         PR tree-optimization/70115
78         * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Remove.
79         (propagate_constants_for_unrolling): Use replace_uses_by.
80
81 2016-03-07  Nathan Sidwell  <nathan@codesourcery.com>
82
83         PR middle-end/69916
84         * omp-low.c (struct oacc_loop): Add ifns.
85         (new_oacc_loop_raw): Initialize it.
86         (finish_oacc_loop): Clear mask & flags if no ifns.
87         (oacc_loop_discover_walk): Count IFN_GOACC_LOOP calls.
88         (oacc_loop_xform_loop): Add ifns arg & adjust.
89         (oacc_loop_process): Adjust oacc_loop_xform_loop call.
90
91 2016-03-07  Richard Henderson  <rth@redhat.com>
92
93         PR rtl-opt/70061
94         * tree-outofssa.c (emit_partition_copy): Flush pending stack adjust.
95         (insert_value_copy_on_edge): Likewise.
96
97 2016-03-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
98
99         * config/arm/arm_neon.h: Show error if using with soft-float ABI.
100
101 2016-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
102
103         PR target/62281
104         * config/i386/sol2.h (STACK_REALIGN_DEFAULT): Define.
105
106 2016-03-05  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
107
108         * config/i386/i386.c (znver1_cost): Fix Multiply cost.
109
110 2016-03-05  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
111
112         Fix sseimul type attribute.
113         * config/i386/znver1.md
114         (znver1_sseimul, znver1_sseimul_avx256, znver1_sseimul_load,
115         znver1_sseimul_avx256_load) : Fix the type attribute.
116         (znver1_sseimul_di, znver1_sseimul_load_di): Fix type attribute,
117         pipe usage and latency.
118
119 2016-03-05  Jakub Jelinek  <jakub@redhat.com>
120
121         PR c++/70084
122         * tree-inline.c (copy_tree_body_r): When cancelling ADDR_EXPR
123         of INDIRECT_REF and ADDR_EXPR changed type, fold_convert it
124         to the right type.
125
126 2016-03-04  Bernd Schmidt  <bschmidt@redhat.com>
127
128         PR c/69973
129         * targhooks.c (default_vector_alignment): Limit to MAX_OFILE_ALIGNMENT.
130
131         PR rtl-optimization/69941
132         * postreload.c (reload_combine_recognize_pattern): Ensure all uses of
133         the reg share its mode.
134
135 2016-03-04  Jeff Law  <law@redhat.com>
136
137         PR tree-optimization/69196
138         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
139         If the both SSA_NAMEs are anonymous, then consider them unassociated
140         and include the PHI in the statement count.
141
142 2016-03-05  Tom de Vries  <tom@codesourcery.com>
143
144         * omp-low.c (check_omp_nesting_restrictions): Check for non-oacc
145         construct in oacc routine.  Check for oacc region in oacc routine.
146
147 2016-03-04  Jakub Jelinek  <jakub@redhat.com>
148
149         PR target/70062
150         * config/i386/i386.c (decide_alg): Add RECUR argument.  Revert
151         2016-02-22 changes, instead don't recurse if RECUR is already true.
152         Don't change *dynamic_check if RECUR.  Adjust recursive caller
153         to pass true to the new argument.
154         (ix86_expand_set_or_movmem): Adjust decide_alg caller.
155
156         PR target/70059
157         * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
158         <extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask): Formatting
159         fixes.
160         (vec_set_hi_<mode><mask_name>): Likewise.  Swap VEC_CONCAT operands.
161
162 2016-03-04  Bernd Schmidt  <bschmidt@redhat.com>
163
164         PR rtl-optimization/57676
165         * lra-assigns.c (lra_assign): Guard test for maximum iterations
166         with flag_checking.
167
168 2016-03-04  Ilya Enkovich  <enkovich.gnu@gmail.com>
169
170         * tree-vect-patterns.c (search_type_for_mask): Handle
171         comparison of booleans.
172
173 2016-03-04  Jakub Jelinek  <jakub@redhat.com>
174
175         * doc/extend.texi (__builtin_alloca, __builtin_alloca_with_align):
176         Fix @xref usage.
177
178         PR debug/69947
179         * dwarf2out.c (prune_unused_types_walk_loc_descr): Handle
180         all other ops that have dw_val_class_die_ref operands,
181         and DW_OP_GNU_entry_value.
182
183 2016-03-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
184
185         PR rtl-optimization/69904
186         * config/arm/arm.c (arm_cannot_copy_insn_p):
187         Return true for load-exclusive instructions.
188
189 2016-03-03  Jakub Jelinek  <jakub@redhat.com>
190
191         PR target/70021
192         * tree-vect-stmts.c (vect_mark_relevant): Remove USED_IN_PATTERN
193         argument, if STMT_VINFO_IN_PATTERN_P (stmt_info), always mark
194         the pattern no matter if it is used just by non-pattern, pattern
195         or mix thereof.
196         (process_use, vect_mark_stmts_to_be_vectorized): Adjust callers.
197         * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
198         oprnd1 def_stmt is in pattern, don't look through it.
199
200 2016-03-03  Marek Polacek  <polacek@redhat.com>
201
202         PR middle-end/70050
203         * match.pd (X % -Y): Add INTEGRAL_TYPE_P check.
204
205 2016-03-03  Martin Liska  <mliska@suse.cz>
206
207         PR tree-optimization/70043
208         * tree-vect-loop.c (optimize_mask_stores): Move iterator to
209         previous statement if we see a debug statement.
210
211 2016-03-03  Richard Biener  <rguenther@suse.de>
212
213         PR tree-optimization/55936
214         * tree-vrp.c (compare_name_with_value): Add use_equiv_p
215         parameter and guard unsafe equivalence use.
216         (vrp_evaluate_conditional_warnv_with_ops): Always use
217         safe equivalences but not via the quadratic compare_names
218         helper.
219
220 2016-03-03  Michael Collison  <michael.collison@linaro.org>
221
222         PR target/70014
223         * config/arm/arm.md (*subsi3_carryin_const): Change predicate
224         for operand 1 to s_register_operand. Change predicate for operand
225         2 to arm_not_immediate_operand.
226
227 2016-03-02  H.J. Lu  <hongjiu.lu@intel.com>
228
229         * doc/tm.texi: Regenerated.
230
231 2016-03-02  Richard Henderson  <rth@redhat.com>
232
233         PR rtl-opt/67145
234         * simplify-rtx.c (simplify_plus_minus): Allow reassoc without
235         simplification when all args are positive non-fixed registers.
236
237 2016-03-02  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
238
239         * target.def (lra_p): Specify that new ports should use LRA.
240
241 2016-03-02  Jakub Jelinek  <jakub@redhat.com>
242
243         PR libgomp/69555
244         * gimplify.c (gimplify_decl_expr): For decls with REFERENCE_TYPE, also
245         gimplify_type_sizes the type they refer to.
246         (omp_notice_variable): Handle reference vars to VLAs.
247         * omp-low.c (lower_omp_target): Emit setup of OMP_CLAUSE_PRIVATE
248         reference to VLA decls in the second pass instead of first pass.
249
250 2016-03-02  Tom de Vries  <tom@codesourcery.com>
251
252         PR tree-optimization/68659
253         * graphite-isl-ast-to-gimple.c (collect_all_ssa_names): Handle
254         new_expr == NULL_TREE.
255         (get_new_name): Handle ADDR_EXPR.
256
257 2016-03-02  Bin Cheng  <bin.cheng@arm.com>
258
259         PR rtl-optimization/69052
260         * loop-invariant.c (canonicalize_address): New function.
261         (inv_can_prop_to_addr_use): Check validity of address expression
262         which is canonicalized by above function.
263
264 2016-03-02  Alan Modra  <amodra@gmail.com>
265
266         PR ipa/69990
267         * ipa-icf.c (sem_variable::merge): Do not merge an alias with
268         larger alignment.
269
270 2016-03-02  Jakub Jelinek  <jakub@redhat.com>
271
272         PR target/70028
273         * config/i386/i386.md (kmovw): Move m constraint to 2nd alternative.
274         (*movhi_internal): Put mask moves from and to memory separately
275         from moves from/to GPRs.
276
277 2016-03-02  Richard Biener  <rguenther@suse.de>
278
279         * genmatch.c (dt_node::gen_kids): Fix match code-gen for embedded
280         GENERIC expressions in GIMPLE.
281
282 2016-03-02  Richard Biener  <rguenther@suse.de>
283
284         * config/i386/i386.c (type_natural_mode): Fix typo.
285
286 2016-03-02  Nick Clifton  <nickc@redhat.com>
287
288         * config.gcc (mep-*-elf): Add newlib-stdint.h to tm_file.
289
290 2016-03-02  Richard Biener  <rguenther@suse.de>
291             Uros Bizjak  <ubizjak@gmail.com>
292
293         PR target/67278
294         * config/i386/i386.c (type_natural_mode): Handle XFmode vectors.
295
296 2016-03-02  Richard Biener  <rguenther@suse.de>
297
298         PR middle-end/67278
299         * tree-cfg.c (verify_expr): Adjust BIT_FIELD_REF case.
300
301 2016-03-02  Marek Polacek  <polacek@redhat.com>
302
303         PR c/67854
304         * gimplify.c (gimplify_va_arg_expr): Use expanded location for the
305         "is promoted to" warning.
306
307 2016-03-01  DJ Delorie  <dj@redhat.com>
308
309         * config.gcc: Deprecate mep-*.
310
311 2016-03-01  Vladimir Makarov  <vmakarov@redhat.com>
312
313         PR middle-end/70025
314         * lra-constraints.c (regno_val_use_in): New.
315         (match_reload): Use it instead of regno_use_in.
316
317 2016-03-01  Eric Botcazou  <ebotcazou@adacore.com>
318
319         PR rtl-optimization/70007
320         * gcse.c (compute_ld_motion_mems): Tidy up and also invalidate memory
321         references present in REG_EQUAL notes attached to non-SET patterns.
322
323 2016-03-01  Jeff Law  <law@redhat.com>
324
325         PR tree-optimization/69196
326         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
327         Appropriately clamp the number of statements to copy when the
328         thread path does not traverse a loop backedge.
329
330         PR tree-optimization/69196
331         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
332         Do count some PHIs in the thread path against the insn count.  Decrease
333         final statement count by one as the control statement in the last
334         block will get removed.  Remove special cased code for handling PHIs
335         in the last block.
336
337 2016-03-01  Uros Bizjak  <ubizjak@gmail.com>
338
339         PR target/70027
340         * config/i386/i386.c (ix86_output_call_insn): Add -masm=intel
341         asm dialect alternatives to explicit GOTPCREL calls.
342
343 2016-03-01  Eric Botcazou  <ebotcazou@adacore.com>
344
345         PR ada/70017
346         * ira.c (do_reload): Issue warning for generic stack checking here...
347         * reload1.c (reload): ...instead of here and streamline it.
348
349 2016-03-01  Nick Clifton  <nickc@redhat.com>
350
351         * config.gcc (cr16-*-elf): Add newlib-stdint.h to tm_file.
352
353 2016-03-01  Richard Biener  <rguenther@suse.de>
354
355         PR tree-optimization/69983
356         * tree-chrec.c (eq_evolutions_p): Handle conversions, compare
357         types and fall back to operand_equal_p.
358
359 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
360
361         Revert
362         2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
363
364         * config/s390/constraints.md ("jm8"): New constraint.
365         * config/s390/predicates.md ("const_int_8bitset_operand"): New
366         predicate.
367         * config/s390/s390.md ("*setmem_long", "*setmem_long_and"): Merge
368         into ...
369         ("*setmem_long<setmem_and>"): New pattern.
370         ("*setmem_long_31z", "*setmem_long_and_31z"): Merge
371         into ...
372         ("*setmem_long_31z<setmem_and>"): New pattern.
373         * config/s390/subst.md ("setmem_31z_subst", "setmem_and_subst"):
374         New substitution rules with the required attributes.
375
376
377 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
378
379         Revert
380         2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
381
382         * gensupport.c (process_substs_on_one_elem): Split loop to
383         complete mark_operands_used_in_match_dup on all expressions in the
384         vector first.
385         (adjust_operands_numbers): Inline into process_substs_on_one_elem
386         and remove function.
387
388 2016-03-01  Richard Biener  <rguenther@suse.de>
389
390         PR middle-end/70022
391         * fold-const.c (fold_indirect_ref_1): Fix range checking for
392         vector BIT_FIELD_REF extract.
393
394 2016-03-01  Richard Biener  <rguenther@suse.de>
395
396         PR tree-optimization/69994
397         * tree-ssa-reassoc.c (ops_equal_values_p): Handle missing case.
398
399 2016-03-01  Ilya Enkovich  <enkovich.gnu@gmail.com>
400
401         PR tree-optimization/69956
402         * tree-vect-stmts.c (supportable_widening_operation): Support
403         multi-step conversion of boolean vectors.
404         (supportable_narrowing_operation): Likewise.
405
406 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
407
408         * config/s390/s390.c (s390_decompose_address): Don't accept SImode
409         anymore.
410
411 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
412
413         * config/s390/subst.md (DSI_VI): New mode iterator.
414         ("addr_style_op_subst"): Use DSI_VI instead of DSI.
415         * config/s390/vector.md ("vec_set<mode>"): Move expander before
416         the insn definition.
417         ("*vec_set<mode>"): Change predicate and add alternative to
418         support only either register or const_int operands as element
419         selector.
420         ("*vec_set<mode>_plus"): New pattern to support reg + const_int
421         operands.
422         ("vec_extract<mode>"): New expander.
423         ("*vec_extract<mode>"): New insn definition supporting reg and
424         const_int element selectors.
425         ("*vec_extract<mode>_plus"): New insn definition supporting
426         reg+const_int element selectors.
427         ("rotl<mode>3", "ashl<mode>3", "ashr<mode>3"): Merge into the
428         following expander+insn definition.
429         ("<vec_shifts_name><mode>3"): New expander.
430         ("*<vec_shifts_name><mode>3<addr_style_op>"): New insn definition.
431
432 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
433
434         * config/s390/s390.md ("*tabort_1"): Change predicate to
435         nonmemory_operand.  Add a second alternative to cover
436         register as well as const int operands.
437         ("*tabort_1_plus"): New pattern definition.
438
439 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
440
441         * config/s390/s390.md ("*ashrdi3_cc_31")
442         ("*ashrdi3_cconly_31""*ashrdi3_cc_31_and")
443         ("*ashrdi3_cconly_31_and", "*ashrdi3_31_and", "*ashrdi3_31"):
444         Merge insn definitions into ...
445         ("*ashrdi3_31<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
446         New pattern definition.
447         ("*ashr<mode>3_cc", "*ashr<mode>3_cconly", "ashr<mode>3", )
448         ("*ashr<mode>3_cc_and", "*ashr<mode>3_cconly_and")
449         ("*ashr<mode>3_and"): Merge insn definitions into ...
450         ("*ashr<mode>3<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
451         New pattern definition.
452         * config/s390/subst.md ("addr_style_op_cc_subst")
453         ("masked_op_cc_subst", "setcc_subst", "cconly_subst"): New
454         substitutions patterns plus attributes.
455         Add ashiftrt to SUBST iterator.
456
457 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
458
459         * config/s390/s390.md ("<shift><mode>3"): Change predicate of
460         op2 to nonmemory_operand.
461         ("*<shift>di3_31", "*<shift>di3_31_and"):
462         Merge into single pattern definition ...
463         ("*<shift>di3_31<addr_style_op><masked_op>"): New pattern.
464         ("*<shift><mode>3", "*<shift><mode>3_and"): Merge into single
465         pattern definition ...
466         ("*<shift><mode>3<addr_style_op><masked_op>"): New pattern.
467         * config/s390/subst.md: Add ashift and lshiftrt to SUBST
468         iterator.
469
470 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
471
472         * config/s390/predicates.md (const_int_6bitset_operand): New
473         predicate.
474         * config/s390/s390.md: Include subst.md.
475         ("rotl<mode>3"): New expander.
476         ("rotl<mode>3", "*rotl<mode>3_and"): Merge insn definitions into
477         ...
478         ("*rotl<mode>3<addr_style_op><masked_op>"): New insn definition.
479         * config/s390/subst.md: New file.
480
481 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
482
483         * config/s390/s390.md ("op_type", "atype", "length" attributes):
484         Remove RRR type.  It doesn't really exist.
485         ("RRer", "f0", "v0", "vf", "vd", "op1", "Rf"): Remove mode
486         attributes.
487         ("BFP", "DFP", "nDSF", "nDFDI"): Add mode attributes.
488         ("*cmp<mode>_ccs", "floatdi<mode>2", "add<mode>3")
489         ("*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3")
490         ("*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3")
491         ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2")
492         ("*abs<mode>2", "*negabs<mode>2", "sqrt<mode>2"): Override
493         `enabled' attribute.
494
495 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
496
497         * gensupport.c (process_substs_on_one_elem): Split loop to
498         complete mark_operands_used_in_match_dup on all expressions in the
499         vector first.
500         (adjust_operands_numbers): Inline into process_substs_on_one_elem
501         and remove function.
502
503 2016-02-29  Eric Botcazou  <ebotcazou@adacore.com>
504
505         PR target/69706
506         * config/sparc/sparc.c (NWORDS_UP): Rename to...
507         (CEIL_NWORDS): ...this.  Use CEIL macro.
508         (compute_fp_layout): Adjust to above renaming.
509         (function_arg_union_value): Likewise.
510         (sparc_arg_partial_bytes): Likewise.
511         (sparc_function_arg_advance): Likewise.
512
513 2016-02-29  Jeff Law  <law@redhat.com>
514
515         PR tree-optimization/70005
516         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Handle case
517         where an object with a boolean range is compared against a value
518         outside [0..1].
519
520         PR tree-optimization/69999
521         * gimple-ssa-split-paths.c (split_paths): When duplicating a block
522         with an outgoing edge marked with EDGE_IRREDUCIBLE_LOOP, schedule
523         loop cleanups.
524
525 2016-02-29  Richard Biener  <rguenther@suse.de>
526
527         PR tree-optimization/69994
528         * tree-ssa-reassoc.c (gimple_nop_conversion_p): New function.
529         (get_unary_op): Look through nop conversions.
530         (ops_equal_values_p): New function, look for equality diregarding
531         nop conversions.
532         (eliminate_plus_minus_pair): Use ops_equal_values_p
533         (repropagate_negates): Do not use get_unary_op here.
534
535 2016-02-29  Martin Liska  <mliska@suse.cz>
536
537         * system.h: Poison ENABLE_CHECKING macro.
538
539 2016-02-29  Martin Liska  <mliska@suse.cz>
540
541         * hsa-gen.c (gen_body_from_gimple): Dump only if TDF_DETAILS
542         is presented in dump flags.
543         * hsa-regalloc.c (linear_scan_regalloc): Likewise.
544         (hsa_regalloc): Likewise.
545
546 2016-02-19  Richard Biener  <rguenther@suse.de>
547
548         PR tree-optimization/69980
549         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Update
550         permutation of those we need to keep.
551
552 2016-02-29  Eric Botcazou  <ebotcazou@adacore.com>
553
554         PR target/69706
555         * config/sparc/sparc.c (ROUND_ADVANCE): Rename to...
556         (NWORDS_UP): ...this
557         (init_cumulative_args): Minor tweaks.
558         (sparc_promote_function_mode): Likewise.
559         (scan_record_type): Delete.
560         (traverse_record_type): New function template.
561         (classify_data_t): New structure type.
562         (classify_registers): New inline function.
563         (function_arg_slotno): In 64-bit mode, bail out early if FP slots are
564         exhausted.  Instantiate traverse_record_type on classify_registers and
565         deal with the case of a structure passed in slot #15 with no FP field
566         in the first word.
567         (assign_data_t): New structure type.
568         (compute_int_layout): New static function.
569         (compute_fp_layout): Likewise.
570         (count_registers): New inline function.
571         (assign_int_registers): New static function.
572         (assign_fp_registers): Likewise.
573         (assign_registers): New inline function.
574         (function_arg_record_value_1): Delete.
575         (function_arg_record_value_2): Likewise.
576         (function_arg_record_value_3): Likewise.
577         (function_arg_record_value): Adjust to above changes.  Instantiate
578         traverse_record_type on count_registers to first count the number of
579         registers to be used and then on assign_registers to assign them.
580         (function_arg_union_value): Adjust to above renaming.
581         (sparc_function_arg_1); Minor tweaks.  Remove commented out code.
582         (sparc_arg_partial_bytes): Adjust to above renaming.  Deal with the
583         case of a structure passed in slot #15
584         (sparc_function_arg_advance): Likewise.
585         (function_arg_padding): Minor tweak.
586
587 2016-02-29  Richard Biener  <rguenther@suse.de>
588
589         PR tree-optimization/69720
590         * tree-vect-loop.c (get_initial_def_for_reduction): Avoid
591         the adjustment_def path for possibly vectorized defs.
592         (vect_create_epilog_for_reduction): Handle vectorized initial
593         defs properly.
594
595 2016-02-28  Eric Botcazou  <ebotcazou@adacore.com>
596
597         * config/i386/cygming.h (STACK_REALIGN_DEFAULT): Define.
598
599 2016-02-27  Jeff Law  <law@redhat.com>
600
601         Revert
602         2016-02-26  Richard Biener  <rguenther@suse.de>
603                     Jeff Law  <law@redhat.com>
604
605         PR tree-optimization/69740
606         * cfghooks.c (remove_edge): Request loop fixups if we delete
607         an edge that might turn an irreducible loop into a natural
608         loop.
609
610 2016-02-27  Jakub Jelinek  <jakub@redhat.com>
611
612         PR rtl-optimization/69896
613         * tree-vect-generic.c (get_compute_type): Avoid single element
614         vector types.
615
616 2016-02-26  Evandro Menezes  <e.menezes@samsung.com>
617
618         Rename the AArch64 tuning option and related functions to enable the
619         Newton series for the reciprocal square root to reflect its
620         approximative characteristic.
621
622         * config/aarch64/aarch64-protos.h (aarch64_emit_swrsqrt): Rename
623         function to "aarch64_emit_approx_rsqrt".
624         * config/aarch64/aarch64-tuning-flags.def: Rename tuning flag to
625         AARCH64_EXTRA_TUNE_APPROX_RSQRT.
626         * config/aarch64/aarch64.c (exynosm1_tunigs): Use new flag name.
627         (xgene1_tunings): Likewise.
628         (use_rsqrt_p): Likewise.
629         (aarch64_emit_swrsqrt): Use new function name.
630         * config/aarch64/aarch64-simd.md (aarch64_rsqrts_*): Likewise.
631         * config/aarch64/aarch64.opt (mlow-precision-recip-sqrt): Reword the
632         text explaining this option.
633         * doc/invoke.texi (-mlow-precision-recip-sqrt): Likewise.
634
635 2016-02-26  Jakub Jelinek  <jakub@redhat.com>
636
637         PR target/69969
638         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
639         complain about -mallow-movmisalign without -mvsx if
640         TARGET_ALLOW_MOVMISALIGN was not set explicitly.
641
642 2016-02-26  Joel Sherrill  <joel@rtems.org>
643
644         * config.gcc: Add x86_64-*-rtems*.
645         * gcc/config/i386/rtems-64.h: New file.
646
647 2016-02-26  Joel Sherrill  <joel@rtems.org>
648
649         * config.gcc: Add aarch64-*-rtems*.
650         * gcc/config/aarch64/rtems.h: New file.
651
652 2016-02-26  Segher Boessenkool  <segher@kernel.crashing.org>
653
654         PR target/69946
655         * config/rs6000/rs6000.c (rs6000_insn_for_shift_mask): Print rlwinm
656         shift amount using %h.  Add comment.
657
658 2016-02-26  Richard Biener  <rguenther@suse.de>
659             Jeff Law  <law@redhat.com>
660
661         PR tree-optimization/69740
662         * cfghooks.c (remove_edge): Request loop fixups if we delete
663         an edge that might turn an irreducible loop into a natural
664         loop.
665
666 2016-02-26  Martin Jambor  <mjambor@suse.cz>
667
668         PR middle-end/69920
669         * tree-sra.c (sra_modify_assign): Do not remove loads of
670         uninitialized aggregates to SSA_NAMEs.
671
672 2016-02-26  Richard Henderson  <rth@redhat.com>
673
674         PR target/69709
675         * config/s390/s390.md (risbg and risbgn splitters): Allocate new
676         pseudo in case the target rtx matches the source of the left
677         shift.
678
679 2016-02-26  Martin Jambor  <mjambor@suse.cz>
680
681         PR hsa/69568
682         * hsa.h (hsa_type_packed_p): Declare.
683         * hsa.c (hsa_type_packed_p): New function.
684         * hsa-gen.c (mem_type_for_type): Use unsigned type for packed
685         loads.
686         (gen_hsa_insns_for_store): Use hsa_type_packed_p.
687         * hsa-brig.c (emit_basic_insn): Likewise.
688
689 2016-02-26  Martin Jambor  <mjambor@suse.cz>
690
691         pr hsa/69674
692         * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Use proper hsa type for
693         pointers.
694         (gen_hsa_addr): Allow integer constants in TMR_INDEX2.
695
696 2016-02-26  Martin Jambor  <mjambor@suse.cz>
697
698         * hsa.h (is_a_helper): New overload for hsa_op_immed for
699         hsa_op_with_type operands.
700         (hsa_unsigned_type_for_type): Declare.
701         * hsa.c (hsa_unsigned_type_for_type): New function.
702         * hsa-gen.c (gen_hsa_binary_operation): Use hsa_unsigned_type_for_type.
703         (gen_hsa_insns_for_operation_assignment): Satisfy constrains of
704         the finalizer.  Do not emit extra move.
705
706 2016-02-26  Martin Jambor  <mjambor@suse.cz>
707
708         * hsa-gen.c (gen_hsa_ternary_atomic_for_builtin): Fail in presence of
709         atomic operations in private segment.
710
711 2016-02-26  Martin Jambor  <mjambor@suse.cz>
712
713         * omp-low.c (grid_find_ungridifiable_statement): Store problematic
714         statements to wi->info.  Also disallow omp simd constructs.
715         (grid_target_follows_gridifiable_pattern): Use wi.info to dump reason
716         for not gridifying.  Dump special string for omp_for.
717
718 2016-02-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
719
720         PR target/69245
721         * config/aarch64/aarch64.c (aarch64_set_current_function):
722         Save/restore target globals when switching to
723         target_option_default_node.
724
725 2016-02-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
726
727         PR target/69613
728         * config/aarch64/aarch64.c (aarch64_shift_truncation_mask):
729         Return 0 if !SHIFT_COUNT_TRUNCATED.
730
731 2016-02-26  Jakub Jelinek  <jakub@redhat.com>
732             Eric Botcazou  <ebotcazou@adacore.com>
733
734         PR rtl-optimization/69891
735         * dse.c (scan_insn): If we can't figure out memset arguments
736         or they are non-constant, call clear_rhs_from_active_local_stores.
737
738 2016-02-26  Martin Liska  <mliska@suse.cz>
739
740         * doc/extend.texi: Mention clog10, clog10f an clog10l
741         in Builtins section.
742
743 2016-02-26  Martin Liska  <mliska@suse.cz>
744
745         * dwarf2out.c (new_loc_descr): Replace ENABLE_CHECKING with
746         CHECKING_P.
747         (resolve_args_picking_1): Likewise.
748         * dwarf2out.h (struct GTY): Likewise.
749
750 2016-02-26  Martin Liska  <mliska@suse.cz>
751
752         * hsa-gen.c (generate_hsa): Replace ENABLE_CHECKING macro
753         with flag_checking.
754         * hsa-regalloc.c (linear_scan_regalloc): Likewise.
755
756 2016-02-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
757             Martin Liska  <mliska@suse.cz>
758
759         * doc/install.texi: Mention --enable-valgrind-annotations.
760
761 2016-02-26  Richard Biener  <rguenther@suse.de>
762
763         PR tree-optimization/69551
764         * tree-ssa-structalias.c (get_constraint_for_ssa_var): When
765         looking through aliases adjust DECL_PT_UID to refer to the
766         ultimate alias target.
767
768 2016-02-25  Martin Liska  <mliska@suse.cz>
769
770         PR middle-end/69919
771         * alloc-pool.c (after_memory_report): New variable.
772         * alloc-pool.h (base_pool_allocator ::release): Do not use
773         the infrastructure if after_memory_report.
774         * toplev.c (toplev::main): Mark after memory report.
775
776 2016-02-25  Richard Biener  <rguenther@suse.de>
777
778         PR tree-optimization/48795
779         * tree-vrp.c (check_array_ref): Use array_at_struct_end_p.
780
781 2016-02-25  Ilya Verbin  <ilya.verbin@intel.com>
782
783         PR driver/68463
784         * config/gnu-user.h (CRTOFFLOADBEGIN): Define.  Add crtoffloadbegin.o if
785         offloading is enabled and -fopenacc or -fopenmp is specified.
786         (CRTOFFLOADEND): Likewise.
787         (GNU_USER_TARGET_STARTFILE_SPEC): Add CRTOFFLOADBEGIN.
788         (GNU_USER_TARGET_ENDFILE_SPEC): Add CRTOFFLOADEND.
789         * lto-wrapper.c (offloadbegin, offloadend): Remove static vars.
790         (offload_objects_file_name): New static var.
791         (tool_cleanup): Remove offload_objects_file_name file.
792         (find_offloadbeginend): Replace with ...
793         (find_crtoffloadtable): ... this.
794         (run_gcc): Remove offload_argc and offload_argv.
795         Get offload_objects_file_name from -foffload-objects=... option.
796         Read names of object files with offload from this file, pass them to
797         compile_images_for_offload_targets.  Don't call find_offloadbeginend and
798         don't pass offloadbegin and offloadend to the linker.  Don't pass
799         offload non-LTO files to the linker, because now they're not claimed.
800
801 2016-02-25  Jan Hubicka  <hubicka@ucw.cz>
802
803         PR ipa/69630
804         * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
805         on builtin_unreachable.
806
807 2016-02-25  Jakub Jelinek  <jakub@redhat.com>
808
809         PR rtl-optimization/69896
810         * regcprop.c: Include cfgrtl.h.
811         (copyprop_hardreg_forward_1): If noop_p insn uses narrower
812         than remembered mode, either delete it (if noop_move_p), or
813         treat like copy_p but not noop_p instruction.
814
815 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
816
817         PR debug/69705
818         * dwarf2out.c (gen_variable_die): Work around buggy LTO
819         - allow NULL decl for Fortran DW_TAG_common_block variables.
820
821 2016-02-24  Jason Merrill  <jason@redhat.com>
822
823         * common.opt (flifetime-dse): Add -flifetime-dse=1.
824
825 2016-02-24  Richard Biener  <rguenther@suse.de>
826             Jakub Jelinek  <jakub@redhat.com>
827
828         PR middle-end/69760
829         * tree-scalar-evolution.c (interpret_rhs_expr): Re-write
830         conditionally executed ops to well-defined overflow behavior.
831
832 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
833
834         PR middle-end/69915
835         * tree.c (build_vector_from_ctor): Fix handling of VECTOR_CST
836         elements.
837
838 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
839
840         PR rtl-optimization/69886
841         * gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode
842         argument.  Use it when checking validity of set instructions.
843         (want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p.
844         (compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p
845         callsite.
846         * rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype.
847         * store-motion.c (find_moveable_store): Update
848         can_assign_to_reg_without_clobbers_p callsite.
849
850 2016-02-24  Richard Biener  <rguenther@suse.de>
851
852         PR middle-end/68963
853         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix
854         bogus check.
855         (record_nonwrapping_iv): Do not fall back to the low/high bound
856         for non-constant IV bases if the stmt is not always executed.
857
858 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
859
860         * config/arm/arm-cores.def (cortex-a32): New entry.
861         * config/arm/arm-tables.opt: Regenerate.
862         * config/arm/arm-tune.md: Regenerate.
863         * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a32.
864         * config/arm/t-aprofile: Handle mcpu=cortex-a32.
865         * doc/invoke.texi (ARM Options): Document cortex-a32 as value
866         for -mcpu and -mtune.
867
868 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
869
870         PR target/69875
871         * config/arm/arm.h (TARGET_HAVE_LPAE): Define.
872         * config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value.
873         * config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern.
874         (atomic_loaddi_1): Delete.
875         (atomic_loaddi): Rewrite expander using the above changes.
876
877 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
878
879         PR c/69918
880         * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): Bump default from
881         2 to 3.
882
883 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
884             Richard Biener  <rguenth@suse.de>
885
886         PR middle-end/69909
887         * expr.c (expand_expr_real_1) <normal_inner_ref>: Avoid
888         set_mem_attributes if tem is SSA_NAME which got expanded
889         as a MEM.
890
891 2016-02-24  Richard Biener  <rguenther@suse.de>
892
893         PR tree-optimization/69907
894         * tree-vect-stmts.c (vectorizable_load): Check for gaps at the
895         end of permutations for BB vectorization.
896
897 2016-02-24  Christian Bruel  <christian.bruel@st.com>
898
899         * config/arm/arm-c.c (arm_option_override): Initialize
900         target_option_current_node.
901         * config/arm/arm.c (arm_pragma_target_parse): Replace
902         build_target_option_node call by target_option_current_node.
903         Set target_option_current_node.
904         Fix comments.
905
906 2016-02-23  David Edelsohn  <dje.gcc@gmail.com>
907
908         PR target/69810
909         * config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from
910         define_insn_and_split to define_insn.
911         (zero_extendqi<mode>2_dot2): Same.
912         (extendqi<mode>2_dot): Same.
913         (extendqi<mode>2_dot2): Same.
914
915 2016-02-23  Evandro Menezes  <e.menezes@samsung.com>
916
917         * config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores
918         and add bypass for AES{D,E} and AESMC pairs.
919         * config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E}
920         and AESMC pairs.
921
922 2016-02-23  Evandro Menezes  <e.menezes@samsung.com>
923
924         * config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
925         series for reciprocal square root in Exynos M1.
926
927 2016-02-23  Martin Sebor  <msebor@redhat.com>
928
929         PR c/69759
930         * doc/extend.texi (Other Builtins): Document __builtin_alloca and
931         __builtin_alloca_with_align.
932
933 2016-02-23  Richard Henderson  <rth@redhat.com>
934
935         * config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS.
936         (ix86_register_pragmas): Remove __seg_tls.
937         * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove.
938         * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it.
939         (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove.
940         (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove.
941         (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove.
942         * doc/extend.texi (__seg_tls): Remove item.
943
944 2016-02-23  Richard Biener  <rguenther@suse.de>
945
946         * alloc-pool.h (struct allocation_object): Make id member
947         conditional on CHECKING_P again.
948         (get_instance): Adjust.
949         (base_pool_allocator): Likewise.
950
951 2016-02-23  Thomas Schwinge  <thomas@codesourcery.com>
952
953         * tree-parloops.c (create_parallel_loop, gen_parallel_loop)
954         (parallelize_loops): In OpenACC kernels mode, set n_threads to
955         zero.
956         (pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
957         flag_openacc.
958         * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
959
960 2016-02-23  Richard Biener  <rguenther@suse.de>
961
962         * mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
963         * bitmap.h (struct bitmap_usage): Likewise.
964         (bitmap_move): Declare.
965         * bitmap.c (register_overhead): Take size_t argument.
966         (bitmap_move): New function.
967         * df-problems.c (df_rd_transfer_function): Use bitmap_move
968         to properly account overhead.
969         * tree.c (free_node): Use tree_size.
970
971 2016-02-23  Jakub Jelinek  <jakub@redhat.com>
972
973         PR c++/69902
974         * fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
975         when inverting comparison.
976
977         PR c/69900
978         * common.opt (Wunreachable-code): Add Warning flag.
979
980 2016-02-23  Mark Wielaard  <mjw@redhat.com>
981             Jakub Jelinek  <jakub@redhat.com>
982
983         PR c/69911
984         * cgraphunit.c (check_global_declaration): Check main_input_filename
985         and DECL_SOURCE_FILE are not NULL.
986
987 2016-02-23  Martin Jambor  <mjambor@suse.cz>
988
989         PR tree-optimization/69666
990         * tree-sra.c (sra_modify_assign): Do not attempt to create
991         default_def replacements for unscalarizable regions.
992
993 2016-02-20  Mark Wielaard  <mjw@redhat.com>
994
995         PR c/28901
996         * cgraphunit.c (check_global_declaration): Check level of
997         warn_unused_const_variable and main_input_filename.
998         * doc/invoke.texi (Warning Options): Add -Wunused-const-variable=.
999         (-Wunused-variable): For C implies -Wunused-const-variable=1.
1000         (-Wunused-const-variable): Explain levels 1 and 2.
1001
1002 2016-02-22  Jakub Jelinek  <jakub@redhat.com>
1003
1004         PR target/69888
1005         * config/i386/i386.c (decide_alg): Ensure we don't recurse with
1006         identical arguments.  Formatting and spelling fixes.
1007
1008         PR target/69885
1009         * doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
1010         be specified.
1011
1012         PR target/69894
1013         PR target/69895
1014         * config/m68k/t-opts (OPTIONS_H_EXTRA): Add m68k-microarchs.def
1015         and m68k-devices.def.
1016         * config/c6x/t-c6x (OPTIONS_H_EXTRA): Add c6x-isas.def.
1017         * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add aarch64-arches.def.
1018
1019 2016-02-22  Cesar Philippidis  <cesar@codesourcery.com>
1020
1021         * config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode
1022         and HImode registers.
1023
1024 2016-02-22  Richard Biener  <rguenther@suse.de>
1025
1026         PR tree-optimization/69882
1027         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly
1028         preserve permutations present because of gaps.
1029         (vect_supported_load_permutation_p): Always continue checking
1030         permutations after vect_attempt_slp_rearrange_stmts.
1031
1032 2016-02-22  Bin Cheng  <bin.cheng@arm.com>
1033
1034         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
1035         min_profitable_estimate, rather than min_profitable_iters.
1036
1037 2016-02-22  Jakub Jelinek  <jakub@redhat.com>
1038
1039         PR target/69885
1040         * config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
1041         SImode for last match_operand.
1042
1043 2016-02-22  Martin Liska  <mliska@suse.cz>
1044
1045         * hsa-gen.c (gen_hsa_clrsb): In case of zero value,
1046         return bitsize - 1 as the return value.
1047
1048 2016-02-22  Oleg Endo  <olegendo@gcc.gnu.org>
1049
1050         PR target/69806
1051         PR target/54089
1052         * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p):
1053         Handle negative shift counts.
1054         * config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use
1055         force_reg on the shift constant.
1056         (lshrsi3): Likewise.  Expand into lshrsi3_n* instead of lshrsi3_d.
1057         (lshrsi3_d): Handle negative shift counts.
1058
1059 2016-02-22  Richard Biener  <rguenther@suse.de>
1060             Tom de Vries  <tom@codesourcery.com>
1061
1062         * graph.c: Include dumpfile.h.
1063         (print_graph_cfg): Split into three overloads.
1064         * gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn.
1065
1066 2016-02-22  Tom de Vries  <tom@codesourcery.com>
1067
1068         * gdbhooks.py (class DumpFn): Add and instantiate, adding command
1069         dump-fn.
1070
1071 2016-02-22  Richard Biener  <rguenther@suse.de>
1072
1073         PR ipa/37448
1074         * ipa-inline-transform.c (inline_call): When not updating
1075         overall summaries adjust self size by the growth estimate.
1076         * ipa-inline.c (inline_to_all_callers_1): Add to the callers
1077         hash-set, do not update overall summaries here.  Renamed from ...
1078         (inline_to_all_callers): ... this which is now wrapping the
1079         above and performing delayed overall summary update.
1080         (early_inline_small_functions): Delay updating of the overall
1081         summary.
1082
1083 2016-02-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
1084
1085         * tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
1086         variable.
1087
1088 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
1089
1090         PR driver/69805
1091         * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use
1092         :%* in %:gt() argument.
1093         (greater_than_spec_func): Adjust for expecting only numbers,
1094         if there are more than two numbers, compare the last two.
1095
1096 2016-02-19  Jonathan Wakely  <jwakely@redhat.com>
1097
1098         * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
1099         -Wnarrowing with -std.
1100
1101 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
1102
1103         PR c++/69851
1104         * expr.c (store_field): Don't use bit-field path if exp is
1105         COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
1106         different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
1107         and the assignment can be performed by bitwise copy.  Formatting
1108         fix.
1109
1110         PR middle-end/69838
1111         * lra.c (lra_process_new_insns): If non-call exceptions are enabled,
1112         call copy_reg_eh_region_note_forward on before and/or after sequences
1113         and remove note from insn if it no longer can throw.
1114
1115         PR target/69820
1116         * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
1117         if TARGET_AVX512BW.
1118
1119 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1120
1121         * config/s390/vector.md: Add missing commutative operand markers
1122         to the patterns which qualify for one.
1123         * config/s390/vx-builtins.md: Likewise.
1124
1125 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1126
1127         * config/s390/vector.md (VI, VI_QHS): Add single element vector
1128         types to mode iterators.
1129         (vec_double): ... and mode attribute.
1130         * config/s390/vx-builtins.md (non_vec_int): Likewise.
1131
1132 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1133
1134         * config/s390/vector.md ("<ti*>add<mode>3", "<ti*>sub<mode>3"):
1135         Change the predicate of op2 from nonimmediate to general and let
1136         reload fix it if necessary.
1137
1138 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1139
1140         * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
1141
1142 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1143
1144         * config/s390/s390.c (s390_expand_vcond): Use the compare operand
1145         mode.
1146
1147 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1148
1149         * config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
1150         * config/s390/s390.c (s390_expand_vec_movstr): New function.
1151         * config/s390/s390.md ("movstr<P:mode>"): Call
1152         s390_expand_vec_movstr.
1153
1154 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1155
1156         * config/s390/s390.md: Add missing output modifier for operand 1
1157         to print it as address properly.
1158
1159 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1160
1161         * config/s390/2827.md: Rename ooo_* insn attributes to zEC12_*.
1162         * config/s390/2964.md: New file.
1163         * config/s390/s390.c (s390_get_sched_attrmask): Use the right set
1164         of insn grouping attributes depending on the CPU level.
1165         (s390_get_unit_mask): New function.
1166         (s390_sched_score): Remove the OOO from the scheduling macros.
1167         Add loop to calculate a score for the instruction mix.
1168         (s390_sched_reorder): Likewise plus improve debug output.
1169         (s390_sched_variable_issue): Rename macros as above.  Calculate
1170         the unit distances after actually scheduling an insn.  Improve
1171         debug output.
1172         (s390_sched_init): Clear last_scheduled_unit_distance array.
1173         * config/s390/s390.md: Include 2964.md.
1174
1175 2016-02-18  Jakub Jelinek  <jakub@redhat.com>
1176
1177         PR target/69671
1178         * config/i386/sse.md (*<floatsuffix>floatv2div2sf2_mask_1,
1179         *avx512vl_<code>v2div2qi2_mask_1, *avx512vl_<code><mode>v4qi2_mask_1,
1180         *avx512vl_<code><mode>v8qi2_mask_1, *avx512vl_<code><mode>v4hi2_mask_1,
1181         *avx512vl_<code>v2div2hi2_mask_1, *avx512vl_<code>v2div2si2_mask_1,
1182         *avx512f_<code>v8div16qi2_mask_1): New insns.
1183
1184 2016-02-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
1185
1186         PR target/68404
1187         * config/rs6000/predicates.md (fusion_gpr_addis): Revert
1188         2016-02-09 change.
1189
1190         * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
1191         earlyclobber from target.  Use wF constraint for fused memory
1192         address.
1193         (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
1194
1195 2016-02-18  Jakub Jelinek  <jakub@redhat.com>
1196             Martin Liska  <mliska@suse.cz>
1197
1198         PR sanitizer/69863
1199         * cfgexpand.c (asan_sanitize_stack_p): New function.
1200         (partition_stack_vars): Use the function.
1201         (expand_stack_vars): Likewise.
1202         (defer_stack_allocation): Likewise.
1203         (expand_used_vars): Likewise.
1204
1205 2016-02-18  Richard Biener  <rguenther@suse.de>
1206
1207         PR middle-end/69553
1208         * fold-const.c (operand_equal_p): Properly compare offsets for
1209         IMAGPART_EXPR and ARRAY_REF.
1210
1211 2016-02-18  Nick Clifton  <nickc@redhat.com>
1212
1213         PR target/62254
1214         PR target/69610
1215         * config/arm/arm.c (arm_option_override_internal): Disable
1216         interworking if the target does not support thumb instructions.
1217         (arm_reload_in_hi): Handle the case where a register to register
1218         move needs reloading because there is no simple pattern to handle
1219         it.
1220         (arm_reload_out_hi): Likewise.
1221
1222 2016-02-18  Richard Biener  <rguenther@suse.de>
1223
1224         PR middle-end/69854
1225         * match.pd: Don't use fold_binary or fold_unary for folding
1226         constants.
1227
1228 2016-02-17  Jakub Jelinek  <jakub@redhat.com>
1229
1230         PR c++/69850
1231         * gimplify.c (gimplify_cond_expr): Call gimple_set_no_warning
1232         on the cond_stmt from TREE_NO_WARNING on COND_EXPR_COND.
1233         * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Don't
1234         warn on gimple_no_warning_p statements.
1235
1236 2016-02-17  Jonathan Wakely  <jwakely@redhat.com>
1237
1238         * doc/extend.texi (C++ Attributes): Correct description of
1239         warn_unused type attribute.
1240
1241 2016-02-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1242
1243         * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
1244         correct instruction.
1245
1246 2016-02-17  Richard Biener  <rguenther@suse.de>
1247
1248         PR rtl-optimization/69609
1249         * bb-reorder.c (struct bbro_basic_block_data): Add priority member.
1250         (find_traces_1_round): When ending a trace update cached priority
1251         of successors.
1252         (bb_to_key): Use cached priority when available.
1253         (copy_bb): Initialize cached priority.
1254         (reorder_basic_blocks_software_trace_cache): Likewise.
1255
1256 2016-02-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1257
1258         PR target/69161
1259         * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
1260         New predicate.
1261         (aarch64_comparison_operator): Break overly long line into two.
1262         (aarch64_comparison_operation): Likewise.
1263         * config/aarch64/aarch64.md (cstorecc4): Use
1264         aarch64_comparison_operator_mode instead of
1265         aarch64_comparison_operator.
1266         (cstore<mode>4): Likewise.
1267         (aarch64_cstore<mode>): Likewise.
1268         (*cstoresi_insn_uxtw): Likewise.
1269         (cstore<mode>_neg): Likewise.
1270         (*cstoresi_neg_uxtw): Likewise.
1271
1272 2016-02-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1273
1274         PR target/69161
1275         * config/arm/predicates.md (arm_comparison_operator_mode):
1276         New predicate.
1277         * config/arm/arm.md (*mov_scc): Use arm_comparison_operator_mode
1278         instead of arm_comparison_operator.
1279         (*mov_negscc): Likewise.
1280         (*mov_notscc): Likewise.
1281         * config/arm/thumb2.md (*thumb2_mov_scc): Likewise.
1282         (*thumb2_mov_negscc): Likewise.
1283         (*thumb2_mov_negscc_strict_it): Likewise.
1284         (*thumb2_mov_notscc): Likewise.
1285         (*thumb2_mov_notscc_strict_it): Likewise.
1286
1287 2016-02-17  Wilco Dijkstra  <wdijkstr@arm.com>
1288
1289         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
1290         Add missing return.
1291
1292 2016-02-17  Eric Botcazou  <ebotcazou@adacore.com>
1293
1294         * config/visium/visium.c (machine_libfunc_index): New enum.
1295         (machine_libfuncs): New structure.
1296         (visium_libfuncs): New static variable.
1297         (TARGET_INIT_LIBFUNCS): Define to...
1298         (visium_init_libfuncs): ...this.  New function.
1299         (expand_block_move_4): Use the appropriate libfunc.
1300         (expand_block_move_2): Likewise.
1301         (expand_block_move_1): Likewise.
1302         (expand_block_set_4): Likewise.
1303         (expand_block_set_2): Likewise.
1304         (expand_block_set_1): Likewise.
1305         (visium_trampoline_init): Likewise.
1306
1307 2016-02-17  Nick Clifton  <nickc@redhat.com>
1308
1309         * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
1310         TI's devices.csv file as of March 2016.
1311
1312 2016-02-16  Kelvin Nilsen  <kelvin@gcc.gnu.org>
1313
1314         PR Target/48344
1315         * opts-global.c (handle_common_deferred_options): Introduce and
1316         initialize two global variables to remember command-line options
1317         specifying a stack-limiting register.
1318         * opts.h: Add extern declarations of the two new global variables.
1319         * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx
1320         variable based on the values of the two new global variables.
1321
1322 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
1323
1324         PR c/69835
1325         * common.opt (Wnonnull-compare): New warning.
1326         * doc/invoke.texi (-Wnonnull): Remove text about comparison
1327         of arguments against NULL.
1328         (-Wnonnull-compare): Document.
1329         * Makefile.in (OBJS): Add gimple-ssa-nonnull-compare.o.
1330         * tree-pass.h (make_pass_warn_nonnull_compare): Declare.
1331         * passes.def (pass_warn_nonnull_compare): Add.
1332         * gimple-ssa-nonnull-compare.c: New file.
1333
1334 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
1335
1336         * config/aarch64/aarch64.c (cortexa57_tunings): Remove
1337         AARCH64_EXTRA_TUNE_RECIP_SQRT.
1338
1339 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
1340
1341         * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
1342         reciprocal sqrt for -mlow-precision-recip-sqrt.
1343
1344 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
1345             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1346
1347         * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
1348         always use lane loads to construct non-constant vectors.
1349
1350 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
1351
1352         * config/aarch64/aarch64.md
1353         (arch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Fix register
1354         constraints for operand 3.
1355         (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
1356
1357 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
1358             Richard Biener  <rguenther@suse.de>
1359
1360         PR tree-optimization/69820
1361         * tree-vect-patterns.c (type_conversion_p): Return false if
1362         *orig_type is unsigned single precision or boolean.
1363         (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern):
1364         Formatting fix.
1365
1366 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
1367
1368         PR rtl-optimization/69764
1369         PR rtl-optimization/69771
1370         * optabs.c (expand_binop): Ensure for shift optabs invalid CONST_INT
1371         op1 is valid for GET_MODE_INNER (mode) and force it into a reg.
1372
1373 2016-02-16  Richard Biener  <rguenther@suse.de>
1374
1375         PR tree-optimization/69776
1376         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
1377         sets from caller.
1378         (indirect_refs_may_alias_p): Likewise.
1379         (refs_may_alias_p_1): Pass alias sets as from ao_ref.
1380         * tree-ssa-sccvn.c (vn_reference_lookup): Also adjust vr alias-set
1381         according to tbaa_p.
1382         * tree-ssa-dom.c (lookup_avail_expr): Add tbaa_p flag.
1383         (optimize_stmt): For redundant store discovery do not allow tbaa.
1384
1385 2016-02-16  Bernd Schmidt  <bschmidt@redhat.com>
1386
1387         PR tree-optimization/69714
1388         * tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
1389         Return NULL if we have irrelevant high bytes on BIG_ENDIAN.
1390
1391 2016-02-16  Claudiu Zissulescu  <claziss@synopsys.com>
1392
1393         * config/arc/arc-modes.def (CC_FPU, CC_FPU_UNEQ): New modes.
1394         * config/arc/arc-opts.h (FPU_SP, FPU_SF, FPU_SC, FPU_SD, FPU_DP)
1395         (FPU_DF, FPU_DC, FPU_DD, FXP_DP): Define.
1396         * config/arc/arc.c (arc_init): Check FPU options.
1397         (get_arc_condition_code): Handle new CC_FPU* modes.
1398         (arc_select_cc_mode): Likewise.
1399         (arc_conditional_register_usage): Allow 64 bit datum into even-odd
1400         register pair only. Allow access for ARCv2 accumulator.
1401         (gen_compare_reg): Whenever we have FPU support use FPU compare
1402         instructions.
1403         (arc_reorg): Don't generate brcc insns when FPU compare
1404         instructions are involved.
1405         * config/arc/arc.h (TARGET_DPFP): Add TARGET_FP_DPAX condition.
1406         (TARGET_OPTFPE): Add condition when ARC EM can use optimized
1407         floating point emulation.
1408         (ACC_REG_FIRST, ACC_REG_LAST, ACCL_REGNO, ACCH_REGNO): Define.
1409         (REVERSE_CONDITION): Add new CC_FPU* modes.
1410         (TARGET_FP_SP_BASE): Define.
1411         (TARGET_FP_DP_BASE): Likewise.
1412         (TARGET_FP_SP_FUSED): Likewise.
1413         (TARGET_FP_DP_FUSED): Likewise.
1414         (TARGET_FP_SP_CONV): Likewise.
1415         (TARGET_FP_DP_CONV): Likewise.
1416         (TARGET_FP_SP_SQRT): Likewise.
1417         (TARGET_FP_DP_SQRT): Likewise.
1418         (TARGET_FP_DP_AX): Likewise.
1419         * config/arc/arc.md (ARCV2_ACC): New constant.
1420         (type): New fpu type attribute.
1421         (SDF): Conditional iterator.
1422         (cstore<mode>, cbranch<mode>): Change expand condition.
1423         (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3): New expands,
1424         handles FPU/FPX cases as well.
1425         * config/arc/arc.opt (mfpu): New option.
1426         * config/arc/fpx.md (addsf3_fpx, subsf3_fpx, mulsf3_fpx):
1427         Renamed.
1428         (adddf3, muldf3, subdf3): Removed.
1429         * config/arc/predicates.md (proper_comparison_operator): Recognize
1430         CC_FPU* modes.
1431         * config/arc/fpu.md: New file.
1432         * doc/invoke.texi (ARC Options): Document mfpu option.
1433
1434 2016-02-16  Richard Biener  <rguenther@suse.de>
1435
1436         PR rtl-optimization/69291
1437         * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
1438         noce_operand_ok check.
1439
1440 2016-02-16  Tom de Vries  <tom@codesourcery.com>
1441
1442         PR lto/67709
1443         * omp-low.c (simd_clone_create): Remove call to
1444         symtab->call_cgraph_insertion_hooks.
1445
1446 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
1447
1448         PR tree-optimization/69802
1449         * tree-ssa-reassoc.c (update_range_test): If op is
1450         SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
1451         op == 1 test of precision 1 integral op, otherwise handle
1452         that case as op itself.  Fix up formatting.
1453         (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
1454         up formatting.
1455
1456 2016-02-16  Richard Biener  <rguenther@suse.de>
1457
1458         PR tree-optimization/69586
1459         * tree-vrp.c (register_edge_assert_for_2): Handle all integral
1460         types for conversion sources.
1461
1462 2016-02-16  Richard Biener  <rguenther@suse.de>
1463
1464         PR middle-end/69801
1465         * fold-const.c (operand_equal_p): For COND_EXPR zero operand
1466         mask OEP_ADDRESS_OF.
1467
1468 2016-02-16  Alan Modra  <amodra@gmail.com>
1469
1470         PR target/68973
1471         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
1472         (p8_mtvsrd_df, p8_mtvsrd_sf): New.
1473         (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
1474         (p8_mtvsrwz): New.
1475         (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
1476         (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
1477         (p8_fmrgow_<mode>): Likewise.
1478         (reload_vsx_from_gpr<mode>): Make clobber IF.  Adjust for above
1479         changes.
1480         (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
1481         (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
1482         to use movdi_internal64.  Remove op0_di.
1483         * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
1484
1485 2016-02-15  Evandro Menezes  <e.menezes@samsung.com>
1486
1487         Add support for the FCCMP insn types
1488
1489         * config/aarch64/aarch64.md (fccmp): Change insn type.
1490         (fccmpe): Likewise.
1491         * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
1492         * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
1493         * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
1494         * config/arm/xgene1.md (xgene1_fcmp): Likewise.
1495         * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
1496         * config/arm/types.md (fccmps): Add new insn type.
1497         (fccmpd): Likewise.
1498
1499 2016-02-15  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1500
1501         * alias.c (get_alias_set): Fix a typo in comment.
1502
1503 2016-02-15  Richard Biener  <rguenther@suse.de>
1504
1505         PR tree-optimization/69595
1506         * match.pd: Complete range test simplification to true.
1507
1508 2016-02-15  Bernd Schmidt  <bschmidt@redhat.com>
1509
1510         PR rtl-optimization/69648
1511         * lra-constraints.c (update_ebb_live_info): Don't remove sets of
1512         pic_offset_table_rtx.
1513
1514         PR rtl-optimization/69752
1515         * ira.c (update_equiv_regs): When looking for more than a single SET,
1516         also take other side effects into account.
1517
1518 2016-02-15  Marcin Kościelnicki  <koriakin@0x04.net>
1519
1520         * config/s390/s390.c (s390_function_profiler): Add a new sequence
1521         for z900+ CPUs in 31-bit mode.
1522
1523 2016-02-15  Marcin Kościelnicki  <koriakin@0x04.net>
1524
1525         * common/config/s390/s390-common.c (s390_supports_split_stack):
1526         New function.
1527         (TARGET_SUPPORTS_SPLIT_STACK): New macro.
1528         * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
1529         * config/s390/s390.c (struct machine_function): New field
1530         split_stack_varargs_pointer.
1531         (s390_register_info): Mark r12 as clobbered if it'll be used as temp
1532         in s390_emit_prologue.
1533         (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
1534         vararg pointer.
1535         (morestack_ref): New global.
1536         (SPLIT_STACK_AVAILABLE): New macro.
1537         (s390_expand_split_stack_prologue): New function.
1538         (s390_live_on_entry): New function.
1539         (s390_va_start): Use split-stack vararg pointer if appropriate.
1540         (s390_asm_file_end): Emit the split-stack note sections.
1541         (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
1542         * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
1543         (UNSPECV_SPLIT_STACK_CALL): New unspec.
1544         (UNSPECV_SPLIT_STACK_DATA): New unspec.
1545         (split_stack_prologue): New expand.
1546         (split_stack_space_check): New expand.
1547         (split_stack_data): New insn.
1548         (split_stack_call): New expand.
1549         (split_stack_call_*): New insn.
1550         (split_stack_cond_call): New expand.
1551         (split_stack_cond_call_*): New insn.
1552
1553 2016-02-15  Richard Biener  <rguenther@suse.de>
1554
1555         PR tree-optimization/69783
1556         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
1557         Add trivially correct cases.
1558
1559 2016-02-15  Tom de Vries  <tom@codesourcery.com>
1560
1561         PR lto/69655
1562         * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
1563         do_force_output.
1564         * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
1565
1566 2016-02-15  Richard Biener  <rguenther@suse.de>
1567
1568         PR tree-optimization/69776
1569         * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
1570         * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
1571         indicate whether we can use TBAA to disambiguate against stores.
1572         Use alias-set zero if not.
1573         (visit_reference_op_store): Do not use TBAA when looking up
1574         redundant stores.
1575         * tree-ssa-pre.c (compute_avail): Use TBAA here.
1576         (eliminate_dom_walker::before_dom_children): But not when looking
1577         up redundant stores.
1578
1579 2016-02-14  John David Anglin  <danglin@gcc.gnu.org>
1580
1581         * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
1582
1583 2016-02-14  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
1584
1585         *  config/i386/znver1.md
1586         (znver1_pop, znver1_pop_mem,
1587         znver1_load_imov_double_store,
1588         znver1_load_imov_direct_store,
1589         znver1_load_imov_direct_load,
1590         znver1_load_imov_double_load): Add new.
1591         (znver1_insn, znver1_insn_load): Add icmov type.
1592         (znver1_sseavx_fma,
1593         znver1_sseavx_fma_load,
1594         znver1_avx256_fma,
1595         znver1_avx256_fma_load): Fix pipe usage.
1596
1597 2016-02-14  Alan Modra  <amodra@gmail.com>
1598
1599         PR target/68973
1600         * reloads.c (find_reloads_address_1): For pre/post-inc/dec
1601         with an invalid hard reg, reload just the reg not the entire
1602         pre/post-inc/dec address expression.
1603
1604 2016-02-13  Oleg Endo  <olegendo@gcc.gnu.org>
1605
1606         PR target/67260
1607         * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
1608         fixed R1_REG scratch reg.
1609         (sibcall_value_pcrel_fdpic): Likewise.
1610
1611 2016-02-13  Oleg Endo  <olegendo@gcc.gnu.org>
1612
1613         PR target/67636
1614         PR target/64345
1615         * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
1616
1617 2016-02-12  Walter Lee  <walt@tilera.com>
1618
1619         * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
1620         * config/tilegx/t-tilegx: Likewise.
1621
1622 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
1623
1624         PR other/69554
1625         * diagnostic-show-locus.c (struct line_span): New struct.
1626         (layout::get_first_line): Delete.
1627         (layout::get_last_line): Delete.
1628         (layout::get_num_line_spans): New member function.
1629         (layout::get_line_span): Likewise.
1630         (layout::print_heading_for_line_span_index_p): Likewise.
1631         (layout::get_expanded_location): Likewise.
1632         (layout::calculate_line_spans): Likewise.
1633         (layout::m_first_line): Delete.
1634         (layout::m_last_line): Delete.
1635         (layout::m_line_spans): New field.
1636         (layout::layout): Update comment.  Replace m_first_line and
1637         m_last_line with m_line_spans, replacing their initialization
1638         with a call to calculate_line_spans.
1639         (diagnostic_show_locus): When printing source lines and
1640         annotations, rather than looping over a single span
1641         of lines, instead loop over each line_span within
1642         the layout, with an inner loop over the lines within them.
1643         Call the context's start_span callback when changing line spans.
1644         * diagnostic.c (diagnostic_initialize): Initialize start_span.
1645         (diagnostic_build_prefix): Break out the building of the location
1646         part of the string into...
1647         (diagnostic_get_location_text): ...this new function, rewriting
1648         it from nested ternary expressions to a sequence of "if"
1649         statements.
1650         (default_diagnostic_start_span_fn): New function.
1651         * diagnostic.h (diagnostic_start_span_fn): New typedef.
1652         (diagnostic_context::start_span): New field.
1653         (default_diagnostic_start_span_fn): New prototype.
1654
1655 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
1656
1657         PR driver/69779
1658         * gcc.c (driver::finalize): Fix cleanup of "specs".
1659
1660 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
1661
1662         PR driver/69265
1663         PR driver/69453
1664         * gcc.c (driver::driver): Initialize m_option_suggestions.
1665         (driver::~driver): Clean up m_option_suggestions.
1666         (suggest_option): Convert to...
1667         (driver::suggest_option): ...this, and split out into
1668         driver::build_option_suggestions and find_closest_string.
1669         (driver::build_option_suggestions): New function, from
1670         first half of suggest_option.  Special-case
1671         OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
1672         the sanitizer_opts array.  For options of enum types, add the
1673         various enum values to the candidate strings.
1674         (driver::handle_unrecognized_options): Remove "const".
1675         * gcc.h (driver::handle_unrecognized_options): Likewise.
1676         (driver::build_option_suggestions): New decl.
1677         (driver::suggest_option): New decl.
1678         (driver::m_option_suggestions): New field.
1679         * opts-common.c (add_misspelling_candidates): New function.
1680         * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
1681         and make non-static.
1682         * opts.h (sanitizer_opts): New array decl.
1683         (add_misspelling_candidates): New function decl.
1684         * spellcheck.c (find_closest_string): New function.
1685         * spellcheck.h (find_closest_string): New function decl.
1686
1687 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
1688
1689         PR rtl-optimization/69764
1690         PR rtl-optimization/69771
1691         * optabs.c (expand_binop_directly): For shift_optab_p, force
1692         convert_modes with VOIDmode if xop1 has VOIDmode.
1693
1694 2016-02-12  Ilya Enkovich  <enkovich.gnu@gmail.com>
1695
1696         PR target/69729
1697         * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
1698         to correctly determine instrumentation thunks.
1699
1700 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
1701
1702         PR ipa/69241
1703         * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
1704         type by reference, force lhs on the call.
1705
1706         PR ipa/68672
1707         * ipa-split.c (split_function): Don't compute/use main_part_return_p.
1708         Compute retval and retbnd early in all cases if split_part_return_p
1709         and return_bb is not EXIT.  Remove all clobber stmts and reset
1710         all debug stmts that refer to SSA_NAMEs defined in split part,
1711         except if it is retval, in that case replace the old retval with the
1712         lhs of the call to the split part.
1713
1714 2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
1715
1716         revert:
1717         2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
1718
1719         PR middle-end/66726
1720         * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
1721         whose result is used in PHI.
1722         (maybe_optimize_range_tests): Likewise.
1723         (final_range_test_p): Likweise.
1724
1725 2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
1726
1727         PR middle-end/66726
1728         * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
1729         whose result is used in PHI.
1730         (maybe_optimize_range_tests): Likewise.
1731         (final_range_test_p): Likweise.
1732
1733 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
1734
1735         * cgraph.c: Spelling fixes - behaviour -> behavior and
1736         neighbour -> neighbor.
1737         * target.def: Likewise.
1738         * sel-sched.c: Likewise.
1739         * config/mips/mips.c: Likewise.
1740         * config/arc/arc.md: Likewise.
1741         * config/arm/cortex-a57.md: Likewise.
1742         * config/arm/arm.c: Likewise.
1743         * config/arm/neon.md: Likewise.
1744         * config/arm/arm-c.c: Likewise.
1745         * config/vms/vms-c.c: Likewise.
1746         * config/s390/s390.c: Likewise.
1747         * config/i386/znver1.md: Likewise.
1748         * config/i386/i386.c: Likewise.
1749         * config/ia64/hpux-unix2003.h: Likewise.
1750         * config/msp430/msp430.md: Likewise.
1751         * config/rx/rx.c: Likewise.
1752         * config/rx/rx.md: Likewise.
1753         * config/aarch64/aarch64-simd.md: Likewise.
1754         * config/aarch64/aarch64.c: Likewise.
1755         * config/nvptx/nvptx.c: Likewise.
1756         * config/bfin/bfin.c: Likewise.
1757         * config/cris/cris.opt: Likewise.
1758         * config/rs6000/rs6000.c: Likewise.
1759         * target.h: Likewise.
1760         * spellcheck.c: Likewise.
1761         * ira-build.c: Likewise.
1762         * tree-inline.c: Likewise.
1763         * builtins.c: Likewise.
1764         * lra-constraints.c: Likewise.
1765         * explow.c: Likewise.
1766         * hwint.h: Likewise.
1767         * targhooks.c: Likewise.
1768         * tree-vect-data-refs.c: Likewise.
1769         * expr.c: Likewise.
1770         * doc/tm.texi: Likewise.
1771         * doc/extend.texi: Likewise.
1772         * doc/install.texi: Likewise.
1773         * doc/md.texi: Likewise.
1774         * tree-ssa-tail-merge.c: Likewise.
1775         * sched-int.h: Likewise.
1776         * match.pd: Likewise.
1777         * sched-ebb.c: Likewise.
1778         * target.def (omit_struct_return_reg): Likewise.
1779         * gimple-ssa-isolate-paths.c: Likewise.
1780         (find_implicit_erroneous_behaviour): Renamed to...
1781         (find_implicit_erroneous_behavior): ... this.
1782         (find_explicit_erroneous_behaviour): Renamed to...
1783         (find_explicit_erroneous_behavior): ... this.
1784         (gimple_ssa_isolate_erroneous_paths): Adjust caller.
1785
1786 2016-02-11  Segher Boessenkool  <segher@kernel.crashing.org>
1787
1788         PR rtl-optimization/64682
1789         PR rtl-optimization/69567
1790         PR rtl-optimization/69737
1791         * combine.c (distribute_notes) <REG_DEAD>: If the register is set
1792         in I2 as well, just lose it.
1793
1794 2016-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1795
1796         * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
1797         New variable.
1798         (aarch64_last_printed_tune_string): Likewise.
1799         (aarch64_declare_function_name): Only output .arch assembler
1800         directive if it will be different from the previously output
1801         directive.  Same for .tune comment but only if -dA is set.
1802         (aarch64_start_file): New function.
1803         (TARGET_ASM_FILE_START): Define.
1804
1805 2016-02-11  David Malcolm  <dmalcolm@redhat.com>
1806
1807         PR plugins/69758
1808         * Makefile.in (PLUGIN_HEADERS): Add params.list.
1809
1810 2016-02-11  Jakub Jelinek  <jakub@redhat.com>
1811
1812         PR target/65313
1813         * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
1814         -Wmaybe-uninitialized warning.
1815
1816 2016-02-11  Oleg Endo  <olegendo@gcc.gnu.org>
1817
1818         PR target/69713
1819         * config/sh/sh.md (casesi_worker_0): Add T_REG use.
1820
1821 2016-02-11  Richard Biener  <rguenther@suse.de>
1822
1823         PR rtl-optimization/69291
1824         * ifcvt.c (noce_try_store_flag_constants): Do not allow
1825         subexpressions affected by changing the result.
1826
1827 2016-02-10  Vladimir Makarov  <vmakarov@redhat.com>
1828
1829         PR target/69148
1830         * lra-constraints.c (curr_insn_transform): Find in/out operands
1831         for secondary memory moves.  Update dups.
1832
1833 2016-02-10  Yuri Rumyantsev  <ysrumyan@gmail.com>
1834
1835         PR tree-optimization/69652
1836         * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
1837         to nested loop, did source re-formatting, skip debug statements,
1838         add check on statement with volatile operand, remove dead scalar
1839         statements.
1840
1841 2016-02-10  Jakub Jelinek  <jakub@redhat.com>
1842             Patrick Palka  <ppalka@gcc.gnu.org>
1843
1844         PR ipa/69241
1845         PR c++/69649
1846         * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
1847         calls if the return type is TREE_ADDRESSABLE.
1848         * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
1849         * ipa-split.c (split_function): Fix doubled "we" in comment.
1850         Use void return type for the split part even if
1851         !split_point->split_part_set_retval.
1852
1853 2016-02-10  Bin Cheng  <bin.cheng@arm.com>
1854
1855         PR tree-optimization/68021
1856         * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
1857         when computing the value of biv cand by itself.
1858
1859 2016-02-10  Wilco Dijkstra  <wdijkstr@arm.com>
1860
1861         * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
1862         (cortexa57_tunings): Likewise.
1863         (cortexa72_tunings): Likewise.
1864         (arch_macro_fusion_pair_p): Add support for AES fusion.
1865         * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
1866         * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
1867         Allow virtual registers before reload so early scheduling works.
1868         * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
1869         correct latency and pipeline.
1870         (cortex_a57_crypto_complex): Likewise.
1871         (cortex_a57_crypto_xor): Likewise.
1872         (define_bypass): Add AES bypass.
1873
1874 2016-02-10  Richard Biener  <rguenther@suse.de>
1875
1876         PR tree-optimization/69726
1877         * passes.def: Add DCE pass before late uninit.
1878         * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
1879         really fixup if-conversions job.
1880
1881 2016-02-10  Wilco Dijkstra  <wdijkstr@arm.com>
1882
1883         * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
1884         (arm_cortex_a57_tune): Likewise.
1885         (aarch_macro_fusion_pair_p): Add support for AES fusion.
1886         * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
1887
1888 2016-02-10  Eric Botcazou  <ebotcazou@adacore.com>
1889
1890         * timevar.def (TV_PHASE_DBGINFO): Delete.
1891         (TV_PHASE_CHECK_DBGINFO): Likewise.
1892         * varpool.c (varpool_node::assemble_decl): Do not change timevar.
1893
1894 2016-02-10  Richard Biener  <rguenther@suse.de>
1895
1896         PR tree-optimization/69719
1897         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
1898         Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
1899
1900 2016-02-09  Andrew Pinski  <apinski@cavium.com>
1901
1902         PR tree-opt/69282
1903         * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
1904         get_vcond_mask_icode returns false.
1905
1906 2016-02-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
1907
1908         PR target/68404
1909         * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
1910         an ADDIS that adds a pointer to a large constant that sets the
1911         upper16 bits with a load operation.
1912
1913 2016-02-09  Charles Baylis  <charles.baylis@linaro.org>
1914
1915         PR target/68532
1916         * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
1917         order.
1918         * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
1919         endian.
1920         (vzipq_s16): Likewise.
1921         (vzipq_s32): Likewise.
1922         (vzipq_f32): Likewise.
1923         (vzipq_u8): Likewise.
1924         (vzipq_u16): Likewise.
1925         (vzipq_u32): Likewise.
1926         (vzipq_p8): Likewise.
1927         (vzipq_p16): Likewise.
1928
1929 2016-02-09  Charles Baylis  <charles.baylis@linaro.org>
1930
1931         PR target/68532
1932         * config/arm/arm.c (neon_endian_lane_map): New function.
1933         (neon_vector_pair_endian_lane_map): New function.
1934         (arm_evpc_neon_vuzp): Allow for big endian lane order.
1935         * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
1936         endian.
1937         (vuzpq_s16): Likewise.
1938         (vuzpq_s32): Likewise.
1939         (vuzpq_f32): Likewise.
1940         (vuzpq_u8): Likewise.
1941         (vuzpq_u16): Likewise.
1942         (vuzpq_u32): Likewise.
1943         (vuzpq_p8): Likewise.
1944         (vuzpq_p16): Likewise.
1945
1946 2016-02-11  Alexandre Oliva  <aoliva@redhat.com>
1947
1948         PR target/69634
1949         * regstat.c (regstat_bb_compute_calls_crossed): Disregard
1950         debug insns.
1951
1952 2016-02-09  Uros Bizjak  <ubizjak@gmail.com>
1953
1954         * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
1955         truncate const_int operand 1 to QImode.
1956
1957 2016-02-09  Eric Botcazou  <ebotcazou@adacore.com>
1958
1959         * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
1960         corresponding to an abnormal edge.
1961
1962 2016-02-09  Tom de Vries  <tom@codesourcery.com>
1963
1964         PR tree-optimization/69599
1965         * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
1966         function.
1967         (find_func_aliases_for_builtin_call, find_func_clobbers)
1968         (ipa_pta_execute):  Handle case that foo and foo._0 are not in same lto
1969         partition.
1970
1971 2016-02-09  Richard Biener  <rguenther@suse.de>
1972
1973         PR tree-optimization/69715
1974         * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
1975         LHS on calls as non-rewritable.
1976
1977 2016-02-09  Tom de Vries  <tom@codesourcery.com>
1978
1979         PR lto/69707
1980         * lto-wrapper.c (append_diag_options): New function.
1981         (compile_offload_image): Call append_diag_options.
1982
1983 2016-02-08  Sandra Loosemore  <sandra@codesourcery.com>
1984
1985         PR other/69722
1986         * doc/extend.texi (Flag Output Operands): Correct sectioning.
1987         Minor copy-edit to fix verb tenses.
1988
1989 2016-02-08  Jakub Jelinek  <jakub@redhat.com>
1990
1991         PR tree-optimization/69209
1992         * ipa-split.c (split_function): If split part is not
1993         returning retval, retval has gimple type but is not
1994         gimple value, force it into a SSA_NAME first.
1995
1996 2016-02-08  Nicklas Bo Jensen  <nbjensen@gmail.com>
1997
1998         * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
1999         outdated section.
2000
2001 2016-02-08  Jason Merrill  <jason@redhat.com>
2002
2003         PR c++/69631
2004         * convert.c (convert_to_integer_1): Check dofold on truncation
2005         distribution.
2006         (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
2007         (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
2008         Rename from *_nofold.
2009         * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
2010         (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
2011
2012 2016-02-08  Bernd Schmidt  <bschmidt@redhat.com>
2013
2014         PR target/60410
2015         * tree.c (build_common_tree_nodes): Remove short_double argument.
2016         All callers changed.
2017         * tree.h (build_common_tree_nodes): Adjust declaration.
2018         * doc/invoke.texi (-fshort-double): Remove documentation.
2019         * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
2020         MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
2021         * lto-wrapper.c (merge_and_complain, append_compiler_options)
2022         (append_linker_options): Don't handle OPT_fshort_double.
2023
2024         PR rtl-optimization/68730
2025         * lra-remat.c (insn_to_cand_activation): New static variable.
2026         (lra_remat): Allocate and free it.
2027         (create_cand): New arg activation. Initialize a field in
2028         insn_to_cand_activation if it is nonnull.
2029         (create_cands): Pass the activation insn to create_cand when making
2030         a candidate involving an output reload.  Reorganize code a little.
2031         (do_remat): Keep track of active status of candidates in a separate
2032         bitmap.
2033
2034 2016-02-08  Richard Biener  <rguenther@suse.de>
2035
2036         PR tree-optimization/69719
2037         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
2038         Properly use absolute of the difference of the two offsets to
2039         compare or adjust the segment length.
2040
2041 2016-02-08  Richard Biener  <rguenther@suse.de>
2042             Jeff Law  <law@redhat.com>
2043
2044         PR target/68273
2045         * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
2046         types for anonymous SSA names.
2047
2048 2016-02-08   Richard Biener  <rguenther@suse.de>
2049
2050         PR rtl-optimization/69274
2051         * ira.c (ira_setup_alts): Do not change recog_data.operand order.
2052
2053 2016-02-08  Jeff Law  <law@redhat.com>
2054
2055         PR tree-optimization/65917
2056         * tree-ssa-dom.c (record_temporary_equivalences): Record both
2057         equivalences from if (x == y) style conditionals.
2058         (loop_depth_of_name): Remove.
2059         (record_equality): Remove loop depth check.
2060         * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
2061         (const_and_copies::record_const_or_copy_raw): New member function.
2062         * tree-ssa-scopedtables.c
2063         (const_and_copies::record_const_or_copy_raw): New, factored out of
2064         (const_and_copies::record_const_or_copy): Call new member function.
2065
2066 2016-02-05  Jeff Law  <law@redhat.com>
2067
2068         PR tree-optimization/68541
2069         * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
2070         (count_stmts_in_block): New function.
2071         (poor_ifcvt_candidate_code): Likewise.
2072         (is_feasible_trace): Add some heuristics to determine when path
2073         splitting is profitable.
2074         (find_block_to_duplicate_for_splitting_paths): Make sure the graph
2075         is a diamond with a single exit.
2076
2077 2016-02-05  Martin Sebor  <msebor@redhat.com>
2078
2079         PR c++/69662
2080         * doc/invoke.texi: Update -Wplacement-new to take an optional
2081         argument.
2082
2083 2016-02-06  Richard Henderson  <rth@redhat.com>
2084
2085         PR c/69643
2086         * tree.c (tree_nop_conversion_p): Do not strip casts into or
2087         out of non-standard address spaces.
2088
2089 2016-02-05  Jakub Jelinek  <jakub@redhat.com>
2090
2091         PR rtl-optimization/69691
2092         * lra-eliminations.c (move_plus_up): Don't add the addend twice.
2093
2094 2016-02-05  Pat Haugen  <pthaugen@us.ibm.com>
2095
2096         * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
2097         * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
2098         (*ieee128_mfvsrd_64bit): Likewise.
2099         (*ieee128_mfvsrd_32bit): Likewise.
2100
2101 2016-02-05  Ilya Enkovich  <enkovich.gnu@gmail.com>
2102
2103         PR target/69369
2104         Revert r232560:
2105         2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
2106
2107         * cgraphunit.c (cgraph_node::reset): Clear thunk info and
2108         instrumented_version.
2109
2110 2016-01-05  Jeremy Bennett  <jeremy.bennett@embecosm.com>
2111
2112         * doc/invoke.texi (Optimize Options): In table of --param options
2113         rename second occurrence of tracer-min-branch-ratio to
2114         tracer-min-branch-probability, rename
2115         tracer-min-branch-ratio-feedback to
2116         tracer-min-branch-probability-feedback and clarify description,
2117         rename sched-spec-state-edge-prob-cutoff to
2118         sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
2119         to selsched-insns-to-rename, rename lto-minpartition to
2120         lto-min-partition, delete reorder-blocks-duplicate and
2121         reorder-blocks-duplicate-feedback.
2122
2123 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2124
2125         * config/s390/s390.c (s390_register_info_set_ranges): Remove
2126         superfluous loops.
2127
2128 2016-02-05  Dominik Vogt  <vogt@linux.vnet.ibm.com>
2129
2130         * doc/extend.texi: S/390: Correct some typos.
2131
2132 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2133
2134         * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
2135
2136 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2137
2138         PR target/69625
2139         * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
2140         (s390_register_info_gprtofpr): Use new macros above.
2141         (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
2142         its name.
2143         (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
2144         its name.  Adjust restore and save gpr ranges.
2145         (s390_register_info_set_ranges): New function.
2146         (s390_register_info): Use new macros above.  Call
2147         s390_register_info_set_ranges.
2148         (s390_optimize_register_info): Likewise.
2149         (s390_hard_regno_rename_ok): Use new macros.
2150         (s390_hard_regno_scratch_ok): Likewise.
2151         (s390_emit_epilogue): Likewise.
2152         (s390_can_use_return_insn): Likewise.
2153         (s390_optimize_prologue): Likewise.
2154         * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
2155
2156 2016-02-05  Jakub Jelinek  <jakub@redhat.com>
2157
2158         PR bootstrap/69677
2159         * config/i386/i386.c (convert_scalars_to_vector): Readd stack
2160         alignment fixes.
2161         (ix86_option_override_internal): Disable TARGET_STV even for
2162         -m{incoming,preferred}-stack-boundary=3.
2163
2164 2016-02-03  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2165
2166         * config.gcc: Mark deprecated rtems targets as obsolete.
2167
2168 2016-02-04  Segher Boessenkool  <segher@kernel.crashing.org>
2169
2170         PR rtl-optimization/64682
2171         PR rtl-optimization/69567
2172         * combine.c (distribute_notes) <REG_DEAD>: Place the death note
2173         before I2 only if the register is both used and set in I2.
2174
2175 2016-02-04  DJ Delorie  <dj@redhat.com>
2176
2177         * config/msp430/msp430.c (msp430_start_function): Add function type.
2178
2179 2016-02-04  Jakub Jelinek  <jakub@redhat.com>
2180
2181         PR fortran/69368
2182         * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
2183
2184 2016-02-04  Uros Bizjak  <ubizjak@gmail.com>
2185
2186         PR rtl-optimization/69577
2187         Revert:
2188         2015-10-29  Richard Henderson  <rth@redhat.com>
2189
2190         PR target/68124
2191         PR rtl-opt/67609
2192         * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
2193         sse check to the exact conditions of PR 67609.
2194
2195 2016-02-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
2196
2197         PR target/69667
2198         * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
2199         instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
2200         not allowed into the traditional Altivec registers.
2201         (movtd_64bit_nodm): Likewise.
2202         (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
2203
2204 2016-02-04  David Malcolm  <dmalcolm@redhat.com>
2205
2206         * config/aarch64/cortex-a57-fma-steering.c
2207         (aarch64_register_fma_steering): Remove "static" from arguments
2208         to register_pass.
2209
2210 2016-02-04  Wilco Dijkstra  <wdijkstr@arm.com>
2211
2212         PR target/69619
2213         * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
2214         twice when complex.
2215
2216 2016-02-04  Mike Frysinger  <vapier@gentoo.org>
2217
2218         * doc/invoke.texi: Delete -mno-fma4.
2219
2220 2016-02-04  Richard Sandiford  <richard.sandiford@arm.com>
2221
2222         PR rtl-optimization/69577
2223         * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
2224         (find_subregs_of_mode): Update accordingly.  Iterate over partial
2225         definitions.
2226
2227 2016-02-04  Alan Lawrence  <alan.lawrence@arm.com>
2228
2229         * config/arm/arm-protos.h (neon_reinterpret): Remove.
2230         * config/arm/arm.c (neon_reinterpret): Remove.
2231         * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
2232         vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
2233         vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
2234         vreinterpretti): Remove.
2235         * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
2236         neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
2237         neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
2238         neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
2239         neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
2240         neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
2241         * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
2242         vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
2243         vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
2244         vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
2245         vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
2246         vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
2247         vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
2248         vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
2249         vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
2250         vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
2251         vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
2252         vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
2253         vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
2254         vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
2255         vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
2256         vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
2257         vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
2258         vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
2259         vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
2260         vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
2261         vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
2262         vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
2263         vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
2264         vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
2265         vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
2266         vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
2267         vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
2268         vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
2269         vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
2270         vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
2271         vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
2272         vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
2273         vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
2274         vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
2275         vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
2276         vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
2277         vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
2278         vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
2279         vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
2280         vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
2281         vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
2282         vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
2283         vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
2284         vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
2285         vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
2286         vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
2287         vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
2288         vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
2289         vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
2290         vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
2291         vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
2292         vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
2293         vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
2294         vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
2295         vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
2296         vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
2297         vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
2298         vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
2299         vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
2300         vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
2301         vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
2302         vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
2303         vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
2304         vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
2305         vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
2306         vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
2307         vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
2308         vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
2309         vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
2310         vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
2311         vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
2312         vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
2313         vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
2314         vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
2315         vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
2316         vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
2317         vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
2318         vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
2319         vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
2320         vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
2321         vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
2322         vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
2323         vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
2324         vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
2325         vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
2326         vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
2327         vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
2328         vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
2329         vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
2330         vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
2331         vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
2332         vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
2333         vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
2334         vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
2335         vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
2336         vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
2337         vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
2338
2339 2016-02-04  Martin Liska  <mliska@suse.cz>
2340
2341         PR sanitizer/69276
2342         * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
2343         that are gimple_store_p.
2344         (maybe_instrument_call): Likewise.
2345
2346 2016-02-04  Bin Cheng  <bin.cheng@arm.com>
2347
2348         * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
2349         register scaling out of memory reference and comment why.
2350
2351 2016-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2352
2353         PR target/65932
2354         PR target/67714
2355         * cse.c (cse_insn): Pass NULL to fold_rtx when initially
2356         folding the source of a SET.
2357
2358 2016-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2359
2360         PR target/65932
2361         PR target/67714
2362         * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
2363         the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
2364
2365 2016-02-04  Jim Wilson  <jim.wilson@linaro.org>
2366
2367         PR target/65932
2368         PR target/67714
2369         * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
2370         HImode.
2371
2372 2016-02-04  Christian Bruel  <christian.bruel@st.com>
2373
2374         * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
2375         * config/arm/arm.c (arm_set_current_function): Likewise.
2376
2377 2016-02-04  Jakub Jelinek  <jakub@redhat.com>
2378             Ilya Enkovich  <enkovich.gnu@gmail.com>
2379             H.J. Lu  <hongjiu.lu@intel.com>
2380
2381         PR target/69454
2382         * config/i386/i386.c (convert_scalars_to_vector): Remove
2383         stack alignment fixes.
2384         (ix86_option_override_internal): Disable TARGET_STV if stack
2385         might not be aligned enough.
2386         (ix86_minimum_alignment): Assert that TARGET_STV is false.
2387
2388 2016-02-04  Victoria Stepanyan  <victoria.stepanyan@amd.com>
2389
2390         * gcc/config/i386/x86-tune.def: Disable default prefetching
2391         for -march=znver1.
2392
2393 2016-02-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
2394             Vladimir Makarov  <vmakarov@redhat.com>
2395
2396         PR target/69461
2397         * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
2398         in validating fused toc addresses.
2399
2400 2016-02-03  Jakub Jelinek  <jakub@redhat.com>
2401
2402         PR c/69627
2403         * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
2404         range->m_caret fields if range->m_show_caret_p is false.
2405
2406         PR target/69644
2407         * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
2408         Force oldval into register if it does not satisfy reg_or_short_operand
2409         predicate.  Fix up formatting.
2410
2411 2016-02-03  Vladimir Makarov  <vmakarov@redhat.com>
2412             Alexandre Oliva  <aoliva@redhat.com>
2413
2414         PR target/69461
2415         * lra-constraints.c (simplify_operand_subreg): Check additionally
2416         address validity after potential reloading.
2417         (process_address_1): Check insns validity.  In case of failure do
2418         nothing.
2419
2420 2016-02-03  Kirill Yukhin  <kirill.yukhin@intel.com>
2421
2422         PR target/69118
2423         * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
2424         Fix target.
2425
2426 2016-02-02  Jakub Jelinek  <jakub@redhat.com>
2427
2428         * wide-int.cc (canonize_uhwi): New function.
2429         (wi::divmod_internal): Use it.
2430
2431 2016-02-02  James Norris  <jnorris@codesourcery.com
2432
2433         * gimplify.c (omp_notice_variable): Add usage check.
2434
2435 2016-02-02  Alexander Monakov  <amonakov@ispras.ru>
2436
2437         * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
2438         like LE, GE, LT, GT when emitting relational operator.
2439
2440 2016-02-02  Wilco Dijkstra  <wdijkstr@arm.com>
2441
2442         * ira-costs.c (find_costs_and_classes): Add extra argument.
2443         * target.def (ira_change_pseudo_allocno_class): Add parameter.
2444         * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
2445         * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
2446         * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
2447         Add best_class parameter, and return it if not ALL_REGS.
2448         * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
2449         Add parameter.
2450         * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
2451         Update target hook.
2452
2453 2016-02-02  Wilco Dijkstra  <wdijkstr@arm.com>
2454
2455         * config/aarch64/aarch64.c
2456         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
2457         (aarch64_ira_change_pseudo_allocno_class): New function.
2458
2459 2016-02-02  Uros Bizjak  <ubizjak@gmail.com>
2460
2461         PR target/67032
2462         * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
2463
2464 2016-02-02  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
2465
2466         * config/avr/avr.c (avr_option_override): Set
2467         PARAM_ALLOW_STORE_DATA_RACES to 1.
2468
2469 2016-02-02  Richard Biener  <rguenther@suse.de>
2470
2471         PR tree-optimization/69595
2472         * match.pd: Add range test simplifications to true/false.
2473
2474 2016-02-02  Thomas Schwinge  <thomas@codesourcery.com>
2475
2476         * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
2477         * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
2478         instead.
2479
2480 2016-02-02  Richard Biener  <rguenther@suse.de>
2481
2482         PR tree-optimization/69606
2483         * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
2484         info on the result before moving a stmt.
2485
2486 2016-02-02  Yuri Rumyantsev  <ysrumyan@gmail.com>
2487
2488         PR middle-end/68542
2489         * config/i386/i386.c (ix86_expand_branch): Add support for conditional
2490         branch with vector comparison.
2491         * config/i386/sse.md (VI48_AVX): New mode iterator.
2492         (define_expand "cbranch<mode>4): Add support for conditional branch
2493         with vector comparison.
2494         * tree-vect-loop.c (optimize_mask_stores): New function.
2495         * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
2496         has_mask_store field of vect_info.
2497         * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
2498         vectorized loops having masked stores after vec_info destroy.
2499         * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
2500         correspondent macros.
2501         (optimize_mask_stores): Add prototype.
2502
2503 2016-02-02  Alan Modra  <amodra@gmail.com>
2504
2505         PR target/69548
2506         * config/rs6000/predicates.md (quad_int_reg_operand): Don't
2507         allow subregs.
2508
2509 2016-02-02  Alan Modra  <amodra@gmail.com>
2510
2511         PR target/68662
2512         * config/rs6000/rs6000.c (need_toc_init): New var, set it
2513         whenever toc_label_name used.
2514         (rs6000_file_start): Don't set up toc section here,
2515         (rs6000_output_function_epilogue): do so here instead,
2516         (rs6000_xcoff_file_start): and here.
2517         * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
2518         (load_toc_aix_di): Likewise.
2519
2520 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
2521
2522         PR rtl-optimization/69592
2523         * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
2524         (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
2525         (num_sign_bit_copies_binary_arith_p): New inline function.
2526         (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
2527
2528 2016-02-01  Jeff Law  <law@redhat.com>
2529
2530         PR tree-optimization/69580
2531         * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
2532         * tree-ssa-threadbackward.c
2533         (fsm_find_control_statement_thread_paths): Do not try to walk
2534         through large PHI nodes.
2535
2536 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
2537
2538         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
2539         when count is incremented above limit, don't analyze further
2540         insns afterwards.
2541
2542         * omp-low.c (oacc_parse_default_dims): Avoid
2543         -Wsign-compare warning, make sure value fits into int
2544         rather than just unsigned int.
2545
2546 2016-02-01  Bin Cheng  <bin.cheng@arm.com>
2547
2548         PR tree-optimization/67921
2549         * fold-const.c (split_tree): New parameters.  Convert pointer
2550         type variable part to proper type before negating.
2551         (fold_binary_loc): Pass new arguments to split_tree.
2552
2553 2016-02-01  Nathan Sidwell  <nathan@codesourcery.com>
2554
2555         * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
2556         (nvptx_goacc_validate_dims): Extend to handle global defaults.
2557         * target.def (OACC_VALIDATE_DIMS): Extend documentation.
2558         * doc/tm.texti: Rebuilt.
2559         * doc/invoke.texi (fopenacc-dim): Document.
2560         * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
2561         (append_compiler_options): Likewise.
2562         * omp-low.c (oacc_default_dims, oacc_min_dims): New.
2563         (oacc_parse_default_dims): New.
2564         (oacc_validate_dims): Add USED arg.  Select non-unity default when
2565         possible.
2566         (oacc_loop_fixed_partitions): Return mask of used partitions.
2567         (oacc_loop_auto_partitions): Emit dump info.
2568         (oacc_loop_partition): Return mask of used partitions.
2569         (execute_oacc_device_lower): Parse default dimension arg.  Adjust
2570         loop partitioning and validation calls.
2571
2572 2016-02-01  Richard Biener  <rguenther@suse.de>
2573
2574         PR middle-end/69556
2575         * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
2576
2577 2016-02-01  Richard Biener  <rguenther@suse.de>
2578
2579         PR tree-optimization/69574
2580         * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
2581         of asserting return chrec_dont_know.
2582
2583 2016-02-01  Martin Liska  <mliska@suse.cz>
2584
2585         * mem-stats-traits.h: Add copyright header.
2586         * mem-stats.h: Likewise.
2587
2588 2016-02-01  Richard Biener  <rguenther@suse.de>
2589
2590         PR tree-optimization/69579
2591         * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
2592         Do not propagate through abnormal PHI results.
2593
2594 2016-02-01  Eric Botcazou  <ebotcazou@adacore.com>
2595
2596         * postreload.c (reload_cse_simplify): Remove dead code.
2597
2598 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
2599
2600         PR rtl-optimization/69570
2601         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
2602         if there is more than one set, not if there is a single set.
2603
2604 2016-02-01  Richard Henderson  <rth@redhat.com>
2605
2606         PR rtl-opt/69535
2607         * combine.c (make_compound_operation): When looking through a
2608         subreg, make sure to re-extend to the width of the outer mode.
2609
2610 2016-01-30  Jakub Jelinek  <jakub@redhat.com>
2611
2612         PR tree-optimization/69546
2613         * wide-int.cc (wi::divmod_internal): For unsigned division
2614         where both operands fit into uhwi, if o1 is 1 and o0 has
2615         msb set, if divident_prec is larger than bits per hwi,
2616         clear another quotient word and return 2 instead of 1.
2617         Similarly for remainder with msb in HWI set, if dividend_prec
2618         is larger than bits per hwi.
2619
2620 2016-01-29  Martin Jambor  <mjambor@suse.cz>
2621
2622         * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
2623         Use short lowercase names.
2624         (get_memory_order): Mask with MEMMODEL_BASE_MASK.  Support
2625         MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
2626         acq_rel one.  Protect warning agains segfaults if
2627         get_memory_order_name returns NULL.
2628         (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
2629         with release semantics.  Do not warn if get_memory_order already did.
2630         (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
2631         semantics.  Fix check for relaxed or acquire semantics.  Do not warn
2632         if get_memory_order already did.
2633
2634 2016-01-29  Sebastian Pop  <s.pop@samsung.com>
2635
2636         * doc/install.texi: Document that isl-0.16 is supported.
2637
2638 2016-01-29  Vladimir Makarov  <vmakarov@redhat.com>
2639
2640         PR target/69299
2641         * config/i386/constraints.md (Bm): Describe as special memory
2642         constraint.
2643         * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
2644         * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
2645         * genpreds.c (struct constraint_data): Add is_special_memory.
2646         (have_special_memory_constraints, special_memory_start): New
2647         static vars.
2648         (special_memory_end): Ditto.
2649         (add_constraint): Add new arg is_special_memory.  Add code to
2650         process its true value.  Update have_special_memory_constraints.
2651         (process_define_constraint): Pass the new arg.
2652         (process_define_register_constraint): Ditto.
2653         (choose_enum_order): Process special memory.
2654         (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
2655         function insn_extra_special_memory_constraint.
2656         (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
2657         * gensupport.c (process_rtx): Process
2658         DEFINE_SPECIAL_MEMORY_CONSTRAINT.
2659         * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
2660         * ira-lives.c (single_reg_class): Use
2661         insn_extra_special_memory_constraint.
2662         * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
2663         * lra-constraints.c (process_alt_operands): Ditto.
2664         (curr_insn_transform): Use insn_extra_special_memory_constraint.
2665         * recog.c (asm_operand_ok, preprocess_constraints): Process
2666         CT_SPECIAL_MEMORY.
2667         * reload.c (find_reloads): Ditto.
2668         * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
2669         * stmt.c (parse_input_constraint): Use
2670         insn_extra_special_memory_constraint.
2671
2672 2016-01-29  H.J. Lu  <hongjiu.lu@intel.com>
2673
2674         PR target/69530
2675         * lra-splill.c (lra_final_code_change): Revert r229087 by
2676         removing all sub-registers.
2677
2678 2016-01-29  Steve Ellcey  <sellcey@imgtec.com>
2679
2680         PR target/65604
2681         * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
2682
2683 2016-01-29  Jakub Jelinek  <jakub@redhat.com>
2684
2685         PR target/69551
2686         * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
2687         SSE1, copy target into the temporary reg first before recursing
2688         on it.
2689
2690 2016-01-29  H.J. Lu  <hongjiu.lu@intel.com>
2691
2692         * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
2693         with vm.
2694
2695 2016-01-29  Jonathan Wakely  <jwakely@redhat.com>
2696
2697         * ginclude/stdarg.h: Test __cplusplus instead of
2698         __GXX_EXPERIMENTAL_CXX0X__.
2699
2700 2016-01-29  Richard Biener  <rguenther@suse.de>
2701
2702         PR tree-optimization/69547
2703         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
2704         Do not mark clobbers necessary.
2705         (mark_all_reaching_defs_necessary_1): Likewise.
2706
2707 2016-01-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
2708
2709         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
2710         declaration name with %qs and print it in both error messages.
2711         Also fix indentation.
2712
2713 2016-01-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
2714
2715         PR other/69006
2716         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
2717         trailing blank line from error message.
2718
2719 2016-01-29  Jonathan Wakely  <jwakely@redhat.com>
2720
2721         PR c++/69462
2722         * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
2723         for C++-11.
2724
2725 2016-01-29  Richard Biener  <rguenther@suse.de>
2726
2727         PR middle-end/69537
2728         * match.pd: Allow all integral types when simplifying a
2729         widening or sign-changing conversion.
2730
2731 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
2732
2733         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
2734         back to setting codegen_error to fail codegen.
2735
2736 2016-01-28  Uros Bizjak  <ubizjak@gmail.com>
2737
2738         PR target/69459
2739         * config/i386/constraints.md (C): Only accept constant zero operand.
2740         (BC): New constraint.
2741         * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
2742         instead of C constraint.
2743         * doc/md.texi (Machine Constraints): Update description
2744         of C constraint.
2745
2746 2016-01-28  Steve Ellcey  <sellcey@imgtec.com>
2747
2748         PR target/68400
2749         * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
2750
2751 2016-01-28  Jakub Jelinek  <jakub@redhat.com>
2752
2753         PR middle-end/69542
2754         * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
2755         non-debug insns.
2756
2757 2016-01-28  Pat Haugen  <pthaugen@us.ibm.com>
2758
2759         * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
2760         branches if using guessed profile.
2761
2762 2016-01-28  H.J. Lu  <hongjiu.lu@intel.com>
2763
2764         * graphite-optimize-isl.c (optimize_isl): Fix dump.
2765
2766 2016-01-28  Richard Henderson  <rth@redhat.com>
2767
2768         PR target/69305
2769         * config/aarch64/aarch64-modes.def (CC_Cmode): New
2770         * config/aarch64/aarch64-protos.h: Update.
2771         * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
2772         (aarch64_select_cc_mode): Add check for use of CC_Cmode.
2773         (aarch64_get_condition_code_1): Handle CC_Cmode.
2774         * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
2775         (*add<mode>3_compareC_cconly_imm): New.
2776         (*add<mode>3_compareC_cconly): New.
2777         (*add<mode>3_compareC_imm): New.
2778         (add<mode>3_compareC): New.
2779         (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
2780         to be first.  Use aarch64_carry_operation.
2781         (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
2782         (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
2783         (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
2784         (subti3): Use subdi3_compare1.
2785         (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
2786         (sub<mode>3_compare1): New.
2787         (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
2788         (*sub<mode>3_carryin): Use aarch64_borrow_operation.
2789         (*subsi3_carryin_uxtw): Likewise.
2790         (*ngc<mode>, *ngcsi_uxtw): Likewise.
2791         (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
2792         * config/aarch64/iterators.md (DWI): New.
2793         * config/aarch64/predicates.md (aarch64_carry_operation): New.
2794         (aarch64_borrow_operation): New.
2795
2796 2016-01-28  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
2797
2798         * graphite-optimize-isl.c (optimize_isl): Print a different debug
2799         message when isl does not return a valid schedule.
2800
2801 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
2802
2803         * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
2804         Remove comments from class declarations: they are already in the code
2805         close by the defs.
2806
2807 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
2808
2809         * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
2810         codegen_error_p.
2811         (ternary_op_to_tree): Same.
2812         (unary_op_to_tree): Same.
2813         (nary_op_to_tree): Same.
2814         (gcc_expression_from_isl_expr_op): Same.
2815         (gcc_expression_from_isl_expression): Same.
2816         (graphite_create_new_loop): Same.
2817         (graphite_create_new_loop_guard): Same.
2818         (build_iv_mapping): Same.
2819         (graphite_create_new_guard): Same.
2820         (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
2821         (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
2822
2823 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
2824
2825         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
2826         instead of setting codegen_error to fail codegen.
2827
2828 2016-01-28  Jason Merrill  <jason@redhat.com>
2829
2830         * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
2831
2832 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
2833
2834         * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
2835         Remove CONST_INT_P check in CCMP cost calculation.
2836
2837 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
2838
2839         * config/aarch64/aarch64.c (generic_vector_cost):
2840         Set vec_permute_cost.
2841         (cortexa57_vector_cost): Likewise.
2842         (exynosm1_vector_cost): Likewise.
2843         (xgene1_vector_cost): Likewise.
2844         (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
2845         * config/aarch64/aarch64-protos.h (cpu_vector_cost):
2846         Add vec_permute_cost entry.
2847
2848 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
2849
2850         * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
2851         immediate as %1.
2852         (add<mode>3_compare0): Likewise.
2853         (addsi3_compare0_uxtw): Likewise.
2854         (add<mode>3nr_compare0): Likewise.
2855         (compare_neg<mode>): Likewise.
2856         (<optab><mode>3): Likewise.
2857
2858 2016-01-28  Ilya Enkovich  <enkovich.gnu@gmail.com>
2859
2860         * tree-vect-stmts.c (vectorizable_comparison): Add
2861         NULL check for vectype.
2862
2863 2016-01-28  Richard Biener  <rguenther@suse.de>
2864
2865         PR tree-optimization/69466
2866         * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
2867         Account for PHIs we couldn't duplicate.
2868
2869 2016-01-28  Martin Liska  <mliska@suse.cz>
2870
2871         PR pch/68758
2872         * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
2873         instead of ENABLE_VALGRIND_CHECKING.
2874
2875 2016-01-27  Richard Henderson  <rth@redhat.com>
2876
2877         PR rtl-opt/69447
2878         * lra-remat.c (subreg_regs): New.
2879         (dump_candidates_and_remat_bb_data): Dump it.
2880         (operand_to_remat): Reject if operand in subreg_regs.
2881         (set_bb_regs): Collect subreg_regs.
2882         (lra_remat): Init and free subreg_regs.  Compute
2883         calculate_local_reg_remat_bb_data before create_cands.
2884
2885 2016-01-27  H.J. Lu  <hongjiu.lu@intel.com>
2886
2887         PR target/68986
2888         * config/i386/i386.c (ix86_update_stack_boundary): Don't
2889         change stack_alignment_needed for __tls_get_addr call.
2890
2891 2016-01-27  Segher Boessenkool  <segher@kernel.crashing.org>
2892
2893         * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
2894
2895 2016-01-27  Jeff Law  <law@redhat.com>
2896
2897         PR tree-optimization/68398
2898         PR tree-optimization/69196
2899         * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
2900         (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
2901         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
2902         Only count PHIs in the last block in the path.  The others will
2903         const/copy propagate away.  Add heuristic to allow more irreducible
2904         subloops to be created when it is likely profitable to do so.
2905
2906         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
2907         Fix typo in comment.  Use gsi_after_labels and remove the GIMPLE_LABEL
2908         check from within the loop.  Use gsi_next_nondebug rather than gsi_next.
2909
2910 2016-01-27  Jakub Jelinek  <jakub@redhat.com>
2911
2912         PR lto/69254
2913         * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
2914         END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
2915         * asan.c (DEF_BUILTIN_STUB): Temporarily define.
2916         * tree-streamer-in.c: Include asan.h.
2917         (streamer_get_builtin_tree): For builtins in sanitizer
2918         range call initialize_sanitizer_builtins and retry.
2919
2920 2016-01-27  Ian Lance Taylor  <iant@google.com>
2921
2922         * common.opt (fkeep-gc-roots-live): New undocumented option.
2923         * tree-ssa-loop-ivopts.c (add_candidate_1): If
2924         -fkeep-gc-roots-live, skip pointers.
2925         (add_iv_candidate_for_biv): Handle add_candidate_1 returning
2926         NULL.
2927
2928 2016-01-27  Uros Bizjak  <ubizjak@gmail.com>
2929
2930         PR target/69512
2931         * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
2932         (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
2933
2934 2016-01-27  Thomas Klausner  <wiz@NetBSD.org>
2935
2936         PR target/68380
2937         * configure.ac: NetBSD provides SSP in its C library.
2938         * configure: Updated.
2939
2940 2016-01-27  Richard Biener  <rguenther@suse.de>
2941
2942         PR tree-optimization/69166
2943         * tree-vect-loop.c (vect_is_simple_reduction): Always check
2944         reduction code for commutativity / associativity.
2945
2946 2016-01-27  Martin Jambor  <mjambor@suse.cz>
2947
2948         PR tree-optimization/69355
2949         * tree-sra.c (analyze_access_subtree): Correct hole detection when
2950         total_scalarization fails.
2951
2952 2016-01-27  David Edelsohn  <dje.gcc@gmail.com>
2953
2954         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
2955         power9.
2956
2957 2016-01-27  Christian Bruel  <christian.bruel@st.com>
2958
2959         PR target/69245
2960         * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
2961         Move arm_reset_previous_fndecl and set_target_option_current_node in
2962         the conditional part.  Call save_restore_target_globals.
2963         * config/arm/arm.c (arm_set_current_function):
2964         Refactor to better support #pragma target and attribute mix.
2965         Call save_restore_target_globals.
2966         * config/arm/arm-protos.h (save_restore_target_globals): New function.
2967
2968 2016-01-27  Martin Liska  <mliska@suse.cz>
2969
2970         * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
2971         reference for an HSA kernel and its host function.
2972
2973 2016-01-27  Jakub Jelinek  <jakub@redhat.com>
2974
2975         PR tree-optimization/69399
2976         * wide-int.h (wi::lrshift): For larger precisions, only
2977         use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
2978
2979 2016-01-27  Claudiu Zissulescu  <claziss@synopsys.com>
2980
2981         * config/arc/predicates.md (proper_comparison_operator): Reject
2982         constant-constant comparison.
2983
2984 2016-01-26  Tom de Vries  <tom@codesourcery.com>
2985
2986         PR tree-optimization/69110
2987         * tree-data-ref.c (initialize_data_dependence_relation): Handle
2988         DR_NUM_DIMENSIONS == 0.
2989
2990 2016-01-26  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
2991             Sebastian Pop  <s.pop@samsung.com>
2992
2993         * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
2994         isl_ast_op_cond and isl_ast_op_select.
2995         (gcc_expression_from_isl_expr_op): Same.
2996
2997 2016-01-26  Jason Merrill  <jason@redhat.com>
2998
2999         PR c++/68782
3000         * tree.c (recompute_constructor_flags): Split out from
3001         build_constructor.
3002         (verify_constructor_flags): New.
3003         * tree.h: Declare them.
3004
3005 2016-01-26  Iain Buclaw  <ibuclaw@gdcproject.org>
3006
3007         PR rtl-optimization/69217
3008         * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
3009         are no TYPE_FIELDS set for the record type.
3010
3011 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
3012
3013         PR target/68662
3014         * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
3015         toc_label_name unconditionally.
3016         (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
3017         SYMBOL_REF string.  Use toc_label_name instead of constructing
3018         LCTOC1.
3019         (rs6000_elf_declare_function_name): Use toc_label_name instead of
3020         constructing LCTOC1.
3021
3022 2016-01-26  Martin Sebor  <msebor@redhat.com>
3023
3024         PR other/69477
3025         * doc/extend.texi (Common Type Attributes): Move text that talks about
3026         attribute packed from attribute aligned to the section discussing
3027         the former attribute for clarity.
3028
3029 2016-01-26  Richard Henderson  <rth@redhat.com>
3030
3031         PR middle-end/60908
3032         * trans-mem.c (tm_region_init): Mark entry block as visited.
3033
3034 2016-01-26  David Malcolm  <dmalcolm@redhat.com>
3035
3036         PR other/69006
3037         * diagnostic-show-locus.c (layout::print_source_line): Replace
3038         call to pp_newline with call to layout::print_newline.
3039         (layout::print_annotation_line): Likewise.
3040         (layout::move_to_column): Likewise.
3041         (layout::print_any_fixits): After printing any fixits, print a
3042         trailing newline, if necessary.
3043         (layout::print_newline): New method, resetting any colorization
3044         before a newline.
3045         (diagnostic_show_locus): Move the pp_newline to before the
3046         early bailout.  Remove dummy block enclosing the layout instance.
3047         * diagnostic.c (default_diagnostic_finalizer): Replace invocation
3048         of pp_newline_and_flush with pp_flush.
3049         (diagnostic_append_note): Delete use of pp_newline.
3050         (diagnostic_append_note_at_rich_loc): Delete.
3051         * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
3052         * pretty-print.h (output_buffer_append_r): Reset buff->line_length
3053         when newline characters are added to the buffer.
3054
3055 2016-01-26  Michael Matz  <matz@suse.de>
3056
3057         * configure.ac (ac_cv_std_swap_in_utility): New test.
3058         * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
3059         * configure: Regenerate.
3060         * config.in: Regenerate.
3061
3062 2016-01-26  Claudiu Zissulescu  <claziss@synopsys.com>
3063
3064         * config/arc/arc.md (cstoresi4): Force operand into register.
3065         (arcset<code>): Fix predicate.
3066         (arcsetltu): Likewise.
3067         (arcsetgeu): Likewise.
3068         (arcsethi): Likewise.
3069         (arcsetls): Likewise.
3070
3071 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
3072
3073         PR tree-optimization/69483
3074         * gimple-fold.c (canonicalize_constructor_val): Return NULL
3075         if base has error_mark_node type.
3076
3077 2016-01-26  Christophe Lyon  <christophe.lyon@linaro.org>
3078
3079         PR target/68620
3080         * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
3081         * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
3082         New helper macros.
3083         (vget_lane_f16): Handle big-endian.
3084         (vgetq_lane_f16): Likewise.
3085         (vset_lane_f16): Likewise.
3086         (vsetq_lane_f16): Likewise.
3087         * config/arm/iterators.md (VQXMOV): Add V8HF.
3088         (VDQ): Add V4HF and V8HF.
3089         (V_reg): Handle V4HF and V8HF.
3090         (Is_float_mode): Likewise.
3091         * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
3092         neon_vdup_nv8hf): New patterns.
3093         (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
3094         Use VD_LANE iterator.
3095         (neon_vld1_dup<mode>): Use VQ2 iterator.
3096
3097 2016-01-26  Nathan Sidwell  <nathan@acm.org>
3098
3099         * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
3100         (set_oacc_fn_attrib): Add IS_KERNEL arg.
3101         * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
3102         (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
3103         (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
3104         (oacc_validate_dims): Add LEVEL arg, don't return level.
3105         (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
3106         oacc_validate_dims.
3107         (execute_oacc_device_lower): Adjust, add more dump output.
3108         * tree-ssa-loop.c (gate_oacc_kernels): Use
3109         oacc_fn_attrib_kernels_p.
3110         * tree-parloops.c (create_parallel_loop): Adjust
3111         set_oacc_fn_attrib call.
3112
3113 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
3114
3115         PR lto/69254
3116         * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
3117         (append_compiler_options): Handle -fcilkplus.
3118         (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
3119
3120 2016-01-26  Nick Clifton  <nickc@redhat.com>
3121
3122         PR target/66655
3123         * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
3124         been marked as DECL_ONE_ONLY but we do not the means to make it
3125         so, then do not allow it to bind locally.
3126
3127 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
3128
3129         PR lto/69254
3130         * opts.h (parse_sanitizer_options): New prototype.
3131         * opts.c (sanitizer_opts): New array.
3132         (parse_sanitizer_options): New function.
3133         (common_handle_option): Use parse_sanitizer_options.
3134
3135 2016-01-26  H.J. Lu  <hongjiu.lu@intel.com>
3136
3137         PR target/68986
3138         * config/i386/i386.c (ix86_compute_frame_layout): Move stack
3139         alignment adjustment to ...
3140         (ix86_update_stack_boundary): Here.  Don't over-align stack for
3141         __tls_get_addr.
3142         (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
3143         if __tls_get_addr is called.
3144
3145 2016-01-26  Christian Bruel  <christian.bruel@st.com>
3146
3147         * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
3148
3149 2016-01-26  Eric Botcazou  <ebotcazou@adacore.com>
3150
3151         * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
3152
3153 2016-01-26  Richard Biener  <rguenther@suse.de>
3154
3155         PR middle-end/69467
3156         * match.pd: Guard X * CST CMP 0 pattern with single_use.
3157
3158 2016-01-26  Richard Biener  <rguenther@suse.de>
3159
3160         PR tree-optimization/69452
3161         * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
3162         (move_computations_dom_walker::before_dom_children): Rename
3163         to ...
3164         (move_computations_worker): This.
3165         (move_computations): Perform an RPO rather than a DOM walk.
3166
3167 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
3168
3169         PR target/69442
3170         * combine.c (combine_instructions): For REG_EQUAL note with
3171         SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
3172         to the underlying register.
3173         * doc/rtl.texi (REG_EQUAL): Document the behavior of
3174         REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
3175
3176 2016-01-26  Roger Ferrer Ibáñez  <rofirrim@gmail.com>
3177
3178         PR target/67896
3179         * config/aarch64/aarch64-builtins.c
3180         (aarch64_init_simd_builtin_types): Do not set structural
3181         equality to __Poly{8,16,64,128}_t types.
3182
3183 2016-01-26  Richard Sandiford  <richard.sandiford@arm.com>
3184
3185         PR tree-optimization/69400
3186         * wide-int.cc (wi_pack): Take the precision as argument and
3187         perform canonicalization here rather than in the callers.
3188         Use the main loop to handle all full-width HWIs.  Add a
3189         zero HWI if in_len isn't a full result.
3190         (wi::divmod_internal): Update accordingly.
3191         (wi::mul_internal): Likewise.  Simplify.
3192
3193 2016-01-25  Aditya Kumar  <aditya.k7@samsung.com>
3194             Sebastian Pop  <s.pop@samsung.com>
3195
3196         * graphite-poly.c (apply_poly_transforms): Simplify.
3197         (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
3198         (print_isl_map): Same.
3199         (print_isl_union_map): Same.
3200         (print_isl_schedule): New.
3201         (debug_isl_schedule): New.
3202         * graphite-dependences.c (scop_get_reads): Do not call
3203         isl_union_map_add_map that is undocumented isl functionality.
3204         (scop_get_must_writes): Same.
3205         (scop_get_may_writes): Same.
3206         (scop_get_original_schedule): Remove.
3207         (scop_get_dependences): Do not call isl_union_map_compute_flow that
3208         is deprecated in isl 0.15.  Instead, use isl_union_access_* interface.
3209         (compute_deps): Remove.
3210         * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
3211         (debug_schedule_ast): New.
3212         (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
3213         set_separate_option.
3214         (graphite_regenerate_ast_isl): Add dump.
3215         (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
3216         from scop->transformed_schedule.
3217         (graphite_regenerate_ast_isl): Add more dump.
3218         * graphite-optimize-isl.c (optimize_isl): Set
3219         scop->transformed_schedule.  Check whether schedules are equal.
3220         (apply_poly_transforms): Move here.
3221         * graphite-poly.c (apply_poly_transforms): ... from here.
3222         (free_poly_bb): Static.
3223         (free_scop): Static.
3224         (pbb_number_of_iterations_at_time): Remove.
3225         (print_isl_ast): New.
3226         (debug_isl_ast): New.
3227         (debug_scop_pbb): New.
3228         * graphite-scop-detection.c (print_edge): Move.
3229         (print_sese): Move.
3230         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
3231         (build_scop_scattering): Remove.
3232         (create_pw_aff_from_tree): Assert instead of bailing out.
3233         (add_condition_to_pbb): Remove unused code, do not fail.
3234         (add_conditions_to_domain): Same.
3235         (add_conditions_to_constraints): Remove.
3236         (build_scop_context): New.
3237         (add_iter_domain_dimension): New.
3238         (build_iteration_domains): Initialize pbb->iterators.
3239         Call add_conditions_to_domain.
3240         (nested_in): New.
3241         (loop_at): New.
3242         (index_outermost_in_loop): New.
3243         (index_pbb_in_loop): New.
3244         (outermost_pbb_in): New.
3245         (add_in_sequence): New.
3246         (add_outer_projection): New.
3247         (outer_projection_mupa): New.
3248         (add_loop_schedule): New.
3249         (build_schedule_pbb): New.
3250         (build_schedule_loop): New.
3251         (embed_in_surrounding_loops): New.
3252         (build_schedule_loop_nest): New.
3253         (build_original_schedule): New.
3254         (build_poly_scop): Call build_original_schedule.
3255         * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
3256         (free_poly_dr): Remove.
3257         (struct poly_bb): Add iterators.  Remove schedule, transformed, saved.
3258         (free_poly_bb): Remove.
3259         (debug_loop_vec): Remove.
3260         (print_isl_ast): Declare.
3261         (debug_isl_ast): Declare.
3262         (scop_do_interchange): Remove.
3263         (scop_do_strip_mine): Remove.
3264         (scop_do_block): Remove.
3265         (flatten_all_loops): Remove.
3266         (optimize_isl): Remove.
3267         (pbb_number_of_iterations_at_time): Remove.
3268         (debug_scop_pbb): Declare.
3269         (print_schedule_ast): Declare.
3270         (debug_schedule_ast): Declare.
3271         (struct scop): Remove schedule.  Add original_schedule,
3272         transformed_schedule.
3273         (free_gimple_poly_bb): Remove.
3274         (print_generated_program): Remove.
3275         (debug_generated_program): Remove.
3276         (unify_scattering_dimensions): Remove.
3277         * sese.c (print_edge): ... here.
3278         (print_sese): ... here.
3279         (debug_edge): ... here.
3280         (debug_sese): ... here.
3281         * sese.h (print_edge): Declare.
3282         (print_sese): Declare.
3283         (dump_edge): Declare.
3284         (dump_sese): Declare.
3285
3286 2016-01-25  Aditya Kumar  <aditya.k7@samsung.com>
3287             Sebastian Pop  <s.pop@samsung.com>
3288
3289         * Makefile.in: Set ISLVER in site.exp.
3290
3291 2016-01-25  Jakub Jelinek  <jakub@redhat.com>
3292
3293         * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
3294         DECL_VALUE_EXPR of new_var even for the non-array case.  Look
3295         through DECL_VALUE_EXPR for expansion.
3296
3297 2016-01-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3298
3299         * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
3300         the frame info after reload completed.
3301
3302 2016-01-25  Jeff Law  <law@redhat.com>
3303
3304         PR tree-optimization/69196
3305         PR tree-optimization/68398
3306         * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
3307         tree-ssa-threadupdate.c.
3308         (determine_bb_domination_status): Prototype
3309         * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
3310         (determine_bb_domination_status): No longer static.
3311         (valid_jump_thread_path): Remove code to detect characteristics
3312         of the jump thread path not associated with correctness.
3313         * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
3314         Correct test for thread path length.  Count PHIs for real operands as
3315         statements that need to be copied.  Do not count ASSERT_EXPRs.
3316         Look at all the blocks in the thread path.  Compute and selectively
3317         filter thread paths based on threading through the latch, threading
3318         a multiway branch or crossing a multiway branch.
3319
3320 2016-01-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3321
3322         * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled):  Add
3323         decl with __attribute__ ((unused)) annotation.
3324
3325 2016-01-25  Ilya Enkovich  <enkovich.gnu@gmail.com>
3326
3327         PR target/69421
3328         * tree-vect-stmts.c (vectorizable_condition): Check vectype
3329         of operands is compatible with a statement vectype.
3330
3331 2016-01-25  Eric Botcazou  <ebotcazou@adacore.com>
3332
3333         * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
3334         improve wording for mixed storage order support.
3335
3336 2016-01-25  Bilyan Borisov  <bilyan.borisov@arm.com>
3337
3338         * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
3339         (vcvt_u64_f64): Likewise.
3340         (vcvta_s64_f64): Likewise.
3341         (vcvta_u64_f64): Likewise.
3342         (vcvtm_s64_f64): Likewise.
3343         (vcvtm_u64_f64): Likewise.
3344         (vcvtn_s64_f64): Likewise.
3345         (vcvtn_u64_f64): Likewise.
3346         (vcvtp_s64_f64): Likewise.
3347         (vcvtp_u64_f64): Likewise.
3348
3349 2016-01-25  Claudiu Zissulescu  <claziss@synopsys.com>
3350
3351         * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
3352         (arc_init): Check validity mll64 option.
3353         (arc_save_restore): Use double load/store instruction.
3354         (arc_expand_movmem): Likewise.
3355         (arc_split_move): Don't split if we have double load/store
3356         instructions. Returns a boolean.
3357         (arc_process_double_reg_moves): Change function to return boolean
3358         instead of a sequence of instructions.
3359         (arc_dwarf_register_span): New function.
3360         * config/arc/arc-protos.h (arc_split_move): Change prototype.
3361         * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
3362         * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
3363         (*movdf_insn): Likewise.
3364         * config/arc/arc.opt (mll64): New option.
3365         * config/arc/predicates.md (even_register_operand): New predicate.
3366         * doc/invoke.texi (ARC Options): Add mll64 documentation.
3367
3368 2016-01-25  Richard Biener  <rguenther@suse.de>
3369
3370         PR lto/69393
3371         * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
3372         * tree-streamer-out.c (pack_ts_base_value_fields): Stream
3373         DECL_NAMELESS.
3374         * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
3375
3376 2016-01-25  Richard Biener  <rguenther@suse.de>
3377
3378         PR tree-optimization/69376
3379         * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
3380         flag.
3381         (VN_INFO_ANTI_RANGE_P): New inline.
3382         (VN_INFO_RANGE_TYPE): Likewise.
3383         * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
3384         SSA_NAME_ANTI_RANGE_P.
3385         (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
3386         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
3387         Properly query VN_INFO_RANGE_TYPE.
3388
3389 2016-01-25  Nick Clifton  <nickc@redhat.com>
3390
3391         PR target/66655
3392         * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
3393
3394 2016-01-23  Tom de Vries  <tom@codesourcery.com>
3395
3396         PR tree-optimization/69426
3397         * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
3398         removed clobber.
3399
3400 2016-01-23  Jakub Jelinek  <jakub@redhat.com>
3401
3402         * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
3403         "the the" with "the" in the comments.
3404         * ipa-devirt.c (build_type_inheritance_graph,
3405         update_type_inheritance_graph): Likewise.
3406         * tree.c (build_function_type_list_1): Likewise.
3407         * cfgloopmanip.c (scale_loop_profile): Likewise.
3408         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
3409         * gimple-ssa-split-paths.c
3410         (find_block_to_duplicate_for_splitting_paths): Likewise.
3411         * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
3412         * expr.c (convert_move): Likewise.
3413         * var-tracking.c (vt_stack_adjustments): Likewise.
3414         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
3415         * tree-vrp.c (test_for_singularity): Likewise.
3416
3417         * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
3418         directly instead of building a temporary tree.
3419
3420         PR bootstrap/69434
3421         * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
3422         remove <algorithm> include.
3423
3424 2016-01-22  Jakub Jelinek  <jakub@redhat.com>
3425
3426         PR target/69432
3427         * config/i386/i386.c: Include dojump.h.
3428         (expand_small_movmem_or_setmem,
3429         expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
3430         fixes.
3431         (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
3432         if dynamic_check != -1.
3433
3434 2016-01-21  Jeff Law  <law@redhat.com>
3435
3436         PR middle-end/69347
3437         * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
3438         record_temporary_equivalences.  Rewritten to avoid unnecessary calls
3439         into dominated_by_p.
3440         (cprop_into_successor_phis): Avoid unnecessary tests.
3441
3442 2016-01-22  Richard Henderson  <rth@redhat.com>
3443
3444         PR target/69416
3445         * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
3446         (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
3447
3448 2016-01-22  Michael Matz  <matz@suse.de>
3449
3450         * system.h (string, algorithm): Include only conditionally.
3451         (new): Include always under C++.
3452         * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
3453         * final.c (toplevel): Ditto.
3454         * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
3455         * genconditions.c (write_header): Make gencondmd.c define
3456         INCLUDE_STRING.
3457         * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
3458
3459         * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
3460         * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
3461
3462 2016-01-22  Christian Bruel  <christian.bruel@st.com>
3463
3464         PR target/68674
3465         * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
3466
3467 2016-01-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3468
3469         PR target/69403
3470         * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
3471         define_insn_and_split.  Ensure operands[1] and operands[0] do not
3472         get assigned the same register.
3473
3474 2016-01-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
3475
3476         * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
3477
3478 2016-01-22  Christian Bruel  <christian.bruel@st.com>
3479
3480         * config/arm/arm-c.c (arm_pragma_target_parse):
3481         Remove warn_builtin_macro_redefined overwrite.
3482
3483 2016-01-22  Eric Botcazou  <ebotcazou@adacore.com>
3484
3485         * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
3486         flag_non_call_exceptions compatibility.
3487
3488 2016-01-22  Jakub Jelinek  <jakub@redhat.com>
3489
3490         PR debug/66668
3491         * dwarf2out.c (add_child_die_after): New function.
3492         (dwarf_qual_info_t): New type.
3493         (dwarf_qual_info): New variable.
3494         (qualified_die_p): New function.
3495         (modified_type_die): For -fdebug-types-section, ensure
3496         canonical order of qualifiers.  Put qualified DIEs adjacent
3497         to the corresponding non-qualified type DIE and search there
3498         for existing qualified DIEs.
3499
3500 2016-01-22  Eric Botcazou  <ebotcazou@adacore.com>
3501
3502         * doc/extend.texi (scalar_storage_order type attribute): Document
3503         restriction on type punning and aliasing, and remove future tense.
3504
3505 2016-01-21  Roman Zhuykov  <zhroma@ispras.ru>
3506
3507         PR target/69252
3508         * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
3509         first stage.
3510
3511 2016-01-21  Jeff Law  <law@redhat.com>
3512
3513         PR middle-end/69347
3514         * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
3515         useless call to record_temporary_equivalences.
3516         * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
3517         allocate 10 slots in the bb_path vector and let it grow as needed.
3518         (fsm_find_control_statement_thread_paths): Similarly for the next_path
3519         vector.
3520
3521 2016-01-21  David Edelsohn  <dje.gcc@gmail.com>
3522
3523         * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
3524         Detangle.
3525         * configure: Regenerate.
3526
3527 2016-01-21  Pat Haugen  <pthaugen@us.ibm.com>
3528
3529         * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
3530         * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
3531
3532 2016-01-21  Bernd Schmidt  <bschmidt@redhat.com>
3533
3534         PR middle-end/66178
3535         * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
3536         drop EXPAND_INITIALIZER.
3537         * rtl.h (contains_symbolic_reference_p): Declare.
3538         * rtlanal.c (contains_symbolic_reference_p): New function.
3539         * simplify-rtx.c (simplify_binary_operation_1): Don't turn
3540         a subtraction into a NOT if symbolic constants are involved.
3541
3542 2016-01-21  Anton Blanchard  <anton@samba.org>
3543             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3544
3545         PR target/63354
3546         * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
3547         #define.
3548         * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
3549         function.
3550
3551 2016-01-21  Ajit Agarwal  <ajitkum@xilinx.com>
3552
3553         * config/microblaze/microblaze.c
3554         (get_branch_target): New.
3555         (insert_wic_for_ilb_runout): New.
3556         (insert_wic): New.
3557         (microblaze_machine_dependent_reorg): New.
3558         (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
3559         * config/microblaze/microblaze.md
3560         (UNSPEC_IPREFETCH): Define.
3561         (iprefetch): New pattern
3562         * config/microblaze/microblaze.opt
3563         (mxl-prefetch): New flag.
3564
3565 2016-01-21  Ajit Agarwal  <ajitkum@xilinx.com>
3566
3567         * config/microblaze/microblaze.h
3568         (FIXED_REGISTERS): Update in macro.
3569         (CALL_USED_REGISTERS): Update in macro.
3570
3571 2016-01-21  Yuri Rumyantsev  <ysrumyan@gmail.com>
3572
3573         PR rtl-optimization/68920
3574         * ifcvt.c (cond_move_process_if_block): Limit number of conditional
3575         moves.
3576
3577 2016-01-21  Vladimir Makarov  <vmakarov@redhat.com>
3578
3579         PR rtl-optimization/68990
3580         * lra-coalesce.c (lra_coalesce): Invalidate value for the result
3581         pseudo instead of inheritance ones.
3582
3583 2016-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3584             Nick Clifton  <nickc@redhat.com>
3585
3586         PR target/69129
3587         PR target/69012
3588         * config/mips/mips.c (mips_compute_frame_info): Initialise
3589         args_size and hard_frame_pointer_offset fields of the frame
3590         structure before calling mips_global_pointer.
3591
3592 2016-01-21  David Edelsohn  <dje.gcc@gmail.com>
3593
3594         * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
3595         label reference.
3596         * configure: Regenerate.
3597
3598 2016-01-21  Richard Biener  <rguenther@suse.de>
3599
3600         * graphite-optimize-isl.c (get_schedule_map): Fix typo.
3601
3602 2016-01-21  Marcin Kościelnicki  <koriakin@0x04.net>
3603
3604         * config/s390/s390.c (s390_asm_declare_function_size): Add code
3605         to actually emit the .size directive.
3606
3607 2016-01-21   Stefan Sørensen  <stefan.sorensen@spectralink.com>
3608              Jakub Jelinek  <jakub@redhat.com>
3609
3610         PR target/69187
3611         PR target/65624
3612         * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
3613         args array size by one to avoid buffer overflow.
3614
3615 2016-01-21  Marcin Kościelnicki  <koriakin@0x04.net>
3616
3617         * config/s390/s390.md (pool_section_start): Use switch_to_section
3618         to select proper read-only data section instead of hardcoding
3619         .rodata.
3620         (pool_section_end): Use switch_to_section to match the above.
3621
3622 2016-01-21  Richard Biener  <rguenther@suse.de>
3623
3624         PR tree-optimization/69378
3625         * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
3626         (set_ssa_val_to): Use it for dominance checks taking into
3627         account not executable edges.
3628
3629 2016-01-21  Jakub Jelinek  <jakub@redhat.com>
3630
3631         PR c++/69355
3632         * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
3633         for bitsize instead of GET_MODE_PRECISION (mode).
3634
3635 2016-01-20  Martin Sebor  <msebor@redhat.com>
3636
3637         PR c/52291
3638         * extend.texi (__sync Builtins): Clarify the semantics of
3639         __sync_fetch_and_OP built-ins on pointers.
3640         (__atomic Builtins): Same.
3641
3642 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
3643             Sebastian Pop  <s.pop@samsung.com>
3644
3645         * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
3646         (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
3647         (is_valid_rename): Same.
3648         (translate_isl_ast_to_gimple::get_rename): Same.
3649         (translate_isl_ast_to_gimple::rename_all_uses): Same.
3650         (translate_isl_ast_to_gimple::rename_uses): Same.
3651         (get_new_name): Check for close_phi nodes.
3652         (copy_loop_phi_args): Use phi_node_kind.
3653         (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
3654         (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
3655
3656 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
3657             Sebastian Pop  <s.pop@samsung.com>
3658
3659         Revert commit r229783.
3660         * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
3661         Remove use of parameter_rename_map.
3662         (copy_def): Remove.
3663         (copy_internal_parameters): Remove.
3664         (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
3665         * sese.c (new_sese_info): Do not initialize parameter_rename_map.
3666         (free_sese_info): Do not free parameter_rename_map.
3667         (set_rename): Do not use parameter_rename_map.
3668         (rename_uses): Update call to set_rename.
3669         (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
3670         * sese.h (parameter_rename_map_t): Remove.
3671         (struct sese_info_t): Remove field parameter_rename_map.
3672
3673 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
3674             Sebastian Pop  <s.pop@samsung.com>
3675
3676         * graphite-isl-ast-to-gimple.c: Fix comment.
3677         * graphite-scop-detection.c (defined_in_loop_p): New.
3678         (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
3679         names defined in loop.
3680
3681 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
3682             Sebastian Pop  <s.pop@samsung.com>
3683
3684         * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
3685         Discard unstructured if-then-else regions.
3686
3687 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
3688             Sebastian Pop  <s.pop@samsung.com>
3689
3690         * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
3691         (cleanup_loop_iter_dom): Remove.
3692         (build_loop_iteration_domains): Remove.
3693         (build_scop_context): Remove.
3694         (build_scop_iteration_domain): Remove.
3695         (add_loop_constraints): New.
3696         (build_iteration_domains): New.
3697         (build_poly_scop): Call build_iteration_domains.
3698
3699 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
3700             Sebastian Pop  <s.pop@samsung.com>
3701
3702         * graphite-scop-detection.c
3703         (scop_detection::harmful_loop_in_region): Free dom and loops.
3704         (scop_detection::loop_body_is_valid_scop): Free bbs.
3705
3706 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
3707             Sebastian Pop  <s.pop@samsung.com>
3708
3709         * graphite-scop-detection.c (record_loop_in_sese): New.
3710         (gather_bbs::before_dom_children): Call record_loop_in_sese.
3711         (build_scops): Remove call to build_sese_loop_nests.
3712         * sese.c (sese_record_loop): Remove.
3713         (build_sese_loop_nests): Remove.
3714         (new_sese_info): Remove region->loops.
3715         (free_sese_info): Same.
3716         * sese.h (sese_contains_loop): Same.
3717         (build_sese_loop_nests): Remove.
3718         (sese_contains_loop): Remove.
3719
3720 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
3721             Sebastian Pop  <s.pop@samsung.com>
3722
3723         * graphite-scop-detection.c (loop_is_valid_scop): Renamed
3724         loop_is_valid_in_scop.
3725         (scop_detection::harmful_stmt_in_region): Renamed
3726         harmful_loop_in_region.
3727         Call loop_is_valid_in_scop.
3728
3729 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
3730             Sebastian Pop  <s.pop@samsung.com>
3731
3732         * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
3733         isl_ast_node_mark.
3734
3735 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
3736             Sebastian Pop  <s.pop@samsung.com>
3737
3738         * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
3739         * graphite.h (struct poly_bb): Remove field is_reduction.
3740         (PBB_IS_REDUCTION): Remove.
3741
3742 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
3743             Sebastian Pop  <s.pop@samsung.com>
3744
3745         * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
3746         (add_pdr_constraints): Same.
3747         (scop_get_reads): Same.
3748         (scop_get_must_writes): Same.
3749         (scop_get_may_writes): Same.
3750         (scop_get_original_schedule): Same.
3751         (extend_schedule): Same.
3752         (apply_schedule_on_deps): Same.
3753         (carries_deps): Same.
3754         (compute_deps): Same.
3755         (scop_get_dependences): Same.
3756         * graphite-isl-ast-to-gimple.c
3757         (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
3758         * graphite-optimize-isl.c (get_schedule_for_band): Same.
3759         (get_schedule_for_band_list): Same.
3760         (get_schedule_map): Same.
3761         (apply_schedule_map_to_scop): Same.
3762         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
3763         (build_loop_iteration_domains): Same.
3764         (add_condition_to_pbb): Same.
3765         (add_param_constraints): Same.
3766         (pdr_add_memory_accesses): Same.
3767         (pdr_add_data_dimensions): Same.
3768
3769 2016-01-20  Sandra Loosemore  <sandra@codesourcery.com>
3770
3771         * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
3772         requirements.
3773
3774 2016-01-20  Sandra Loosemore  <sandra@codesourcery.com>
3775
3776         * common.opt (feliminate-dwarf2-dups): Replace references to
3777         "DWARF 2" with just "DWARF".
3778         * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
3779         * doc/extend.texi: Likewise.
3780         * doc/cpp.texi: Likewise.
3781         * doc/invoke.texi: Likewise.
3782         (Option Summary): Add -gdwarf to list of Debugging Options.
3783         (Debugging Options): Document -gdwarf.
3784         * doc/contrib.texi: Spell "DWARF" like that.
3785
3786 2016-01-21  Jakub Jelinek  <jakub@redhat.com>
3787
3788         * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
3789         warning.  Fix up formatting.
3790
3791         PR middle-end/67653
3792         * gimplify.c (gimplify_asm_expr): Warn if it is too late to
3793         attempt to mark memory input operand addressable and
3794         call prepare_gimple_addressable in that case.  Don't adjust
3795         input_location for diagnostics, use error_at instead.
3796
3797 2016-01-20  Peter Bergner  <bergner@vnet.ibm.com>
3798
3799         * config/rs6000/ppc-auxv.h: New file.
3800         * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
3801         (cpu_is): Likewise.
3802         (cpu_supports): Likewise.
3803         * config/rs6000/rs6000.c: include "ppc-auxv.h".
3804         (cpu_is_info): New variable.
3805         (cpu_supports_info): Likewise.
3806         (tcb_verification_symbol): Likewise.
3807         (cpu_builtin_p): Likewise.
3808         (cpu_expand_builtin): New function.
3809         (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
3810         (rs6000_init_builtins): Likewise.
3811         (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
3812         * config/rs6000/rs6000.h (TLS_REGNUM): New define.
3813         * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
3814         * configure: Regenerate.
3815         * config.in: Likewise.
3816         * doc/extend.texi (PowerPC Built-in Functions): Document
3817         __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
3818
3819 2016-01-20  David Edelsohn  <dje.gcc@gmail.com>
3820
3821         PR target/68609
3822         * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
3823         domain check.
3824         * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
3825         for V4SFmode.
3826
3827 2016-01-20  Richard Henderson  <rth@redhat.com>
3828
3829         PR bootstrap/69343
3830         PR bootstrap/69339
3831         PR tree-opt/68964
3832         Revert:
3833         * tree.c (tm_define_builtin): New.
3834         (find_tm_vector_type): New.
3835         (build_tm_vector_builtins): New.
3836         (build_common_builtin_nodes): Call it.
3837
3838 2016-01-20  Christophe Lyon  <christophe.lyon@linaro.org>
3839
3840         * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
3841         (arm_fp_ok): Likewise.
3842         (arm_fp): Likewise.
3843         (arm_crypto): Likewise.
3844
3845 2016-01-20  Ilya Enkovich  <enkovich.gnu@gmail.com>
3846             Richard Biener  <rguenther@suse.de>
3847
3848         PR tree-optimization/69328
3849         * tree-vect-stmts.c (vect_is_simple_cond): Check compared
3850         vectors have same number of elements.
3851         (vectorizable_condition): Fix masked version recognition.
3852
3853 2016-01-20  Richard Biener  <rguenther@suse.de>
3854
3855         PR tree-optimization/69345
3856         * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
3857         (VN_INFO_PTR_INFO): Likewise.
3858         * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
3859         info when it is equal between non-dominating SSA names.
3860         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
3861         Make sure to look at original SSA infos.
3862
3863 2016-01-20  Jeff Law  <law@redhat.com>
3864
3865         PR target/25114
3866         * config/m68k/predicates.md (pow2_m1_operand): New predicate
3867         extracted from ...
3868         (reg_or_pow2_m1_operand): Call pow2_m1_operand.
3869         (pc_or_label_operand): New predicate.
3870         * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
3871         tests for small integers that are 2^n - 1.
3872
3873 2016-01-20  Jonathan Wakely  <jwakely@redhat.com>
3874
3875         * doc/invoke.texi (Options Summary): Add '.' after @xref.
3876
3877 2016-01-19  Jeff Law  <law@redhat.com>
3878
3879         PR middle-end/69347
3880         * tree-ssa-threadbackwards.c
3881         (fsm_find_control_statement_thread_paths): Do not try to lookup
3882         FSM paths for SSA_NAMEs appearing in abnormal PHIs.
3883
3884 2016-01-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
3885
3886         * doc/lto.texi: Remove text that says only Gold has linker plugin
3887         support.
3888
3889 2016-01-19  Eric Botcazou  <ebotcazou@adacore.com>
3890
3891         * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
3892         (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
3893         the DIE accordingly.
3894         (modified_type_die): Add REVERSE parameter and pass it recursively,
3895         as well as to base_type_die.  Adjust presence check accordingly.
3896         (base_type_for_mode): Adjust call to modified_type_die.
3897         (add_type_attribute): Add REVERSE parameter and pass it to
3898         modified_type_die.
3899         (generic_parameter_die): Adjust call to add_type_attribute.
3900         (add_scalar_info): Likewise.
3901         (add_subscript_info): Likewise.
3902         (gen_array_type_die): Likewise.
3903         (gen_descr_array_type_die): Likewise.
3904         (gen_entry_point_die): Likewise.
3905         (gen_enumeration_type_die): Likewise.
3906         (gen_formal_parameter_die): Likewise.
3907         (gen_subprogram_die): Likewise.
3908         (gen_variable_die ): Likewise.
3909         (gen_const_die): Likewise.
3910         (gen_field_die): Likewise.
3911         (gen_pointer_type_die): Likewise.
3912         (gen_reference_type_die): Likewise.
3913         (gen_ptr_to_mbr_type_die): Likewise.
3914         (gen_inheritance_die): Likewise.
3915         (gen_subroutine_type_die): Likewise.
3916         (gen_typedef_die): Likewise.
3917         (force_type_die): Adjust call to modified_type_die.
3918
3919 2016-01-19  Sandra Loosemore  <sandra@codesourcery.com>
3920
3921         * doc/standards.texi: Copy-editing for grammar, markup, and sentence
3922         flow throughout the file.  Fix broken link to Objective-C 2.0
3923         documentation.
3924         * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
3925         errors.
3926
3927 2016-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
3928
3929         * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
3930
3931 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
3932
3933         PR ipa/66223
3934         * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
3935         (maybe_record_node): Record cxa_pure_virtual as the only possible
3936         target if there are not ohter candidates.
3937         (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
3938
3939 2016-01-19  Richard Biener  <rguenther@suse.de>
3940
3941         * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
3942         (get_memory_order): Likewise.
3943
3944 2016-01-19  Kirill Yukhin  <kirill.yukhin@intel.com>
3945
3946         * tree-vect-stmts.c (vectorizable_store): Check
3947         rhs vectype.
3948
3949 2016-01-19  David Malcolm  <dmalcolm@redhat.com>
3950
3951         PR jit/68446
3952         * gcc.c (driver::decode_argv): Add call to
3953         init_opts_obstack before init_options_struct.
3954         * opts.c (init_opts_obstack): Remove idempotency.
3955         (init_options_struct): Replace call to init_opts_obstack
3956         with a gcc_assert to verify that it has already been called.
3957         * toplev.c (toplev::main): Add call to init_opts_obstack before
3958         calls to init_options_struct.
3959         (toplev::finalize): Move cleanup of opts_obstack next to
3960         cleanup of save_decoded_options, clearing the latter, and
3961         save_decoded_options_count.
3962
3963 2016-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3964
3965         PR target/69135
3966         * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
3967         attribute to unconditional.  Remove %? from output template.
3968
3969 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
3970             Jiong Wang  <jiong.wang@arm.com>
3971
3972         * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
3973         generated from different expand order.
3974
3975 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
3976
3977         * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
3978         Add support for CCMP costing.
3979
3980 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
3981
3982         * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
3983         * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
3984         (fccmpe<mode>): Likewise.
3985         (fcmp): Rename to fcmp and globalize pattern.
3986         (fcmpe): Likewise.
3987         * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
3988         (aarch64_gen_ccmp_next): Add FP support.
3989
3990 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
3991
3992         * target.def (gen_ccmp_first): Update documentation.
3993         (gen_ccmp_next): Likewise.
3994         * doc/tm.texi (gen_ccmp_first): Update documentation.
3995         (gen_ccmp_next): Likewise.
3996         * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
3997         expand_ccmp_expr_1.  Improve comments.
3998         * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
3999         (ccmp_ior<mode>): Remove pattern.
4000         (cmp<mode>): Remove expand.
4001         (cmp): Globalize pattern.
4002         (cstorecc4): Use cc_register.
4003         (mov<mode>cc): Remove ccmp_cc_register check.
4004         * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
4005         Simplify after removal of CC_DNE/* modes.
4006         (aarch64_ccmp_mode_to_code): Remove.
4007         (aarch64_print_operand): Remove 'K' case.  Merge 'm' and 'M' cases.
4008         In 'k' case use integer as condition.
4009         (aarch64_nzcv_codes): Remove inverted cases.
4010         (aarch64_code_to_ccmode): Remove.
4011         (aarch64_gen_ccmp_first): Use cmp pattern directly.  Return the correct
4012         comparison with CC register to be used in folowing CCMP/branch/CSEL.
4013         (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
4014         pattern.  Return the comparison with CC register.  Invert conditions
4015         when bitcode is OR.
4016         * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
4017         * config/aarch64/predicates.md (ccmp_cc_register): Remove.
4018
4019 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
4020
4021         * cgraphunit.c (cgraph_node::reset): Clear thunk info and
4022         instrumented_version.
4023
4024 2016-01-19  Richard Biener  <rguenther@suse.de>
4025
4026         PR tree-optimization/69336
4027         * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
4028         handled components with get_ref_base_and_extent.
4029         (equal_mem_array_ref_p): Adjust.
4030
4031 2016-01-19  Jakub Jelinek  <jakub@redhat.com>
4032
4033         PR debug/65779
4034         * shrink-wrap.c: Include valtrack.h.
4035         (move_insn_for_shrink_wrap): Add DEBUG argument.  If
4036         MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
4037         in between insn and where it will be moved to.  Call
4038         dead_debug_insert_temp.
4039         (prepare_shrink_wrap): Adjust caller.  Call dead_debug_local_init
4040         first and dead_debug_local_finish at the end.
4041         For uses and defs bitmap, handle all regs in between REGNO and
4042         END_REGNO, not just the first one.
4043
4044 2016-01-19  Richard Biener  <rguenther@suse.de>
4045
4046         PR tree-optimization/69352
4047         * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
4048         (equal_mem_array_ref_p): Constrain size and max size properly.
4049         Compare the reverse flag.
4050
4051 2016-01-19  Bernd Schmidt  <bschmidt@redhat.com>
4052
4053         * ira.c (ira): Update regstat data if we deleted insns.
4054
4055 2016-01-19  Jakub Jelinek  <jakub@redhat.com>
4056
4057         PR rtl-optimization/68955
4058         PR rtl-optimization/64557
4059         * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
4060         here.  Fix up formatting.
4061         * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
4062
4063 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
4064
4065         PR lto/69133
4066         * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
4067         assume that the node has body.
4068         * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
4069         check.
4070
4071 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
4072
4073         * lto-streamer-out.c (lto_output): Do not stream instrumentation
4074         thunks.
4075
4076 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
4077
4078         * symtab.c (symtab_node::asm_name): Do not call printable name directly.
4079         (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
4080
4081 2016-01-19  Martin Jambor  <mjambor@suse.cz>
4082             Martin Liska  <mliska@suse.cz>
4083             Michael Matz  <matz@suse.de>
4084
4085         * Makefile.in (OBJS): Add new source files.
4086         (GTFILES): Add hsa.c.
4087         * common.opt (disable_hsa): New variable.
4088         (-Whsa): New warning.
4089         * config.in (ENABLE_HSA): New.
4090         * configure.ac: Treat hsa differently from other accelerators.
4091         (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
4092         $enable_offloading.
4093         (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
4094         * doc/install.texi (Configuration): Document --with-hsa-runtime,
4095         --with-hsa-runtime-include, --with-hsa-runtime-lib and
4096         --with-hsa-kmt-lib.
4097         * doc/invoke.texi (-Whsa): Document.
4098         (hsa-gen-debug-stores): Likewise.
4099         * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
4100         to invoke offload compiler for hsa acclerator.
4101         * opts.c (common_handle_option): Determine whether HSA offloading
4102         should be performed.
4103         * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
4104         * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
4105         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
4106         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
4107         * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
4108         * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
4109         GF_OMP_FOR_KIND_GRID_LOOP.
4110         (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
4111         (pp_gimple_stmt_1): Likewise.
4112         * gimple-walk.c (walk_gimple_stmt): Likewise.
4113         * gimple.c (gimple_build_omp_grid_body): New function.
4114         (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
4115         * gimple.def (GIMPLE_OMP_GRID_BODY): New.
4116         * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
4117         GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
4118         GF_OMP_TEAMS_GRID_PHONY.
4119         (gimple_statement_omp_single_layout): Updated comments.
4120         (gimple_build_omp_grid_body): New function.
4121         (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
4122         (gimple_omp_for_grid_phony): New function.
4123         (gimple_omp_for_set_grid_phony): Likewise.
4124         (gimple_omp_parallel_grid_phony): Likewise.
4125         (gimple_omp_parallel_set_grid_phony): Likewise.
4126         (gimple_omp_teams_grid_phony): Likewise.
4127         (gimple_omp_teams_set_grid_phony): Likewise.
4128         (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
4129         * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
4130         (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
4131         (BUILT_IN_GOMP_TARGET): Updated type.
4132         * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
4133         (adjust_for_condition): New function.
4134         (get_omp_for_step_from_incr): Likewise.
4135         (extract_omp_for_data): Moved parts to adjust_for_condition and
4136         get_omp_for_step_from_incr.
4137         (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
4138         (fixup_child_record_type): Bail out if receiver_decl is NULL.
4139         (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
4140         (scan_omp_parallel): Do not create child functions for phony
4141         constructs.
4142         (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
4143         (scan_omp_1_op): Checking assert we are not remapping to
4144         ERROR_MARK.  Also also handle GIMPLE_OMP_GRID_BODY.
4145         (parallel_needs_hsa_kernel_p): New function.
4146         (expand_parallel_call): Register apprpriate parallel child
4147         functions as HSA kernels.
4148         (grid_launch_attributes_trees): New type.
4149         (grid_attr_trees): New variable.
4150         (grid_create_kernel_launch_attr_types): New function.
4151         (grid_insert_store_range_dim): Likewise.
4152         (grid_get_kernel_launch_attributes): Likewise.
4153         (get_target_argument_identifier_1): Likewise.
4154         (get_target_argument_identifier): Likewise.
4155         (get_target_argument_value): Likewise.
4156         (push_target_argument_according_to_value): Likewise.
4157         (get_target_arguments): Likewise.
4158         (expand_omp_target): Call get_target_arguments instead of looking
4159         up for teams and thread limit.
4160         (grid_expand_omp_for_loop): New function.
4161         (grid_arg_decl_map): New type.
4162         (grid_remap_kernel_arg_accesses): New function.
4163         (grid_expand_target_kernel_body): New function.
4164         (expand_omp): Call it.
4165         (lower_omp_for): Do not emit phony constructs.
4166         (lower_omp_taskreg): Do not emit phony constructs but create for them
4167         a temporary variable receiver_decl.
4168         (lower_omp_taskreg): Do not emit phony constructs.
4169         (lower_omp_teams): Likewise.
4170         (lower_omp_grid_body): New function.
4171         (lower_omp_1): Call it.
4172         (grid_reg_assignment_to_local_var_p): New function.
4173         (grid_seq_only_contains_local_assignments): Likewise.
4174         (grid_find_single_omp_among_assignments_1): Likewise.
4175         (grid_find_single_omp_among_assignments): Likewise.
4176         (grid_find_ungridifiable_statement): Likewise.
4177         (grid_target_follows_gridifiable_pattern): Likewise.
4178         (grid_remap_prebody_decls): Likewise.
4179         (grid_copy_leading_local_assignments): Likewise.
4180         (grid_process_kernel_body_copy): Likewise.
4181         (grid_attempt_target_gridification): Likewise.
4182         (grid_gridify_all_targets_stmt): Likewise.
4183         (grid_gridify_all_targets): Likewise.
4184         (execute_lower_omp): Call grid_gridify_all_targets.
4185         (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
4186         * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
4187         (tree_omp_clause): Added union field dimension.
4188         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
4189         * tree.c (omp_clause_num_ops): Added number of arguments of
4190         OMP_CLAUSE__GRIDDIM_.
4191         (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
4192         (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
4193         * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
4194         (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
4195         (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
4196         (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
4197         * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
4198         * tree-pass.h (make_pass_gen_hsail): Declare.
4199         (make_pass_ipa_hsa): Likewise.
4200         * ipa-hsa.c: New file.
4201         * lto-section-in.c (lto_section_name): Add hsa section name.
4202         * lto-streamer.h (lto_section_type): Add hsa section.
4203         * timevar.def (TV_IPA_HSA): New.
4204         * hsa-brig-format.h: New file.
4205         * hsa-brig.c: New file.
4206         * hsa-dump.c: Likewise.
4207         * hsa-gen.c: Likewise.
4208         * hsa.c: Likewise.
4209         * hsa.h: Likewise.
4210         * toplev.c (compile_file): Call hsa_output_brig.
4211         * hsa-regalloc.c: New file.
4212
4213 2016-01-18  Jeff Law  <law@redhat.com>
4214
4215         PR tree-optimization/69320
4216         * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
4217         ranged object, do nothing if the RHS constant is not [0..1].
4218         (optimize_stmt): Comparing a boolean ranged object against a
4219         constant outside [0..1] results in a compile-time constant.
4220
4221         * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
4222         test.
4223
4224 2016-01-18  Sandra Loosemore  <sandra@codesourcery.com>
4225
4226         * doc/invoke.texi (Invoking GCC): Add new section to menu.
4227         (Option Summary): Update to reflect new section and moved options.
4228         (C++ Dialect Options): Move -fstats to new section.
4229         (Debugging Options): Move all dump, statistics, and other GCC
4230         developer options to new section.  Rewrite section introduction
4231         and re-order remaining options to put the more basic ones first.
4232         (Optimization Options): Move -fira-verbose and -flto-report* to
4233         new section.
4234         (Developer Options): New section incorporating moved options.
4235         * doc/cppopts.texi (-dM): Update cross-reference.
4236
4237 2016-01-18  Richard Henderson  <rth@redhat.com>
4238
4239         PR target/69176
4240         * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
4241         operands to pseudo only if CSE is expected.  Split long immediate
4242         operands only after reload, and for the stack pointer.
4243         (*add<GPI>3_pluslong): Remove.
4244         (*addsi3_aarch64, *adddi3_aarch64): Merge into...
4245         (*add<GPI>3_aarch64): ... here.  Add r/rk/Upl alternative.
4246         (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
4247         (*add<GPI>3 peepholes): New.
4248         (*add<GPI>3 splitters): New.
4249         * config/aarch64/constraints.md (Upl): New.
4250         * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
4251
4252 2016-01-18  Richard Biener  <rguenther@suse.de>
4253
4254         PR tree-optimization/69297
4255         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
4256         stmt at most once.
4257         (vect_bb_vectorization_profitable_p): Clear visited flag again.
4258
4259 2016-01-18  Yuri Rumyantsev  <ysrumyan@gmail.com>
4260
4261         PR middle-end/68542
4262         * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
4263         of mixind vector and scalar types.
4264         (fold_relational_const): Add handling of vector
4265         comparison with boolean result.
4266         * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
4267         comparison of vector operands with boolean result for EQ/NE only.
4268         (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
4269         (verify_gimple_cond): Likewise.
4270         * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
4271         valid type of VAL.
4272
4273 2016-01-18  Joseph Myers  <joseph@codesourcery.com>
4274
4275         * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
4276         !TARGET_OCTEON.
4277
4278 2016-01-18  Richard Biener  <rguenther@suse.de>
4279
4280         PR middle-end/69308
4281         * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
4282
4283 2016-01-18  Tom de Vries  <tom@codesourcery.com>
4284
4285         * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
4286
4287 2016-01-18  Tom de Vries  <tom@codesourcery.com>
4288
4289         * omp-low.c (set_oacc_fn_attrib): Make extern.
4290         * omp-low.h (set_oacc_fn_attrib): Declare.
4291         * tree-parloops.c (struct reduction_info): Add reduc_addr field.
4292         (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
4293         (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
4294         Add and handle function parameter oacc_kernels_p.
4295         (find_reduc_addr, get_omp_data_i_param): New function.
4296         (ref_conflicts_with_region, oacc_entry_exit_ok_1)
4297         (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
4298         (parallelize_loops): Add and handle function parameter oacc_kernels_p.
4299         Calculate dominance info.  Skip loops that are not in a kernels region
4300         in oacc_kernels_p mode.  Skip inner loops of parallelized loops.
4301         (pass_parallelize_loops::execute): Call parallelize_loops with
4302         oacc_kernels_p argument.
4303         (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
4304         New member function.
4305         (pass_parallelize_loops::bool oacc_kernels_p): New member var.
4306         * passes.def: Add argument to pass_parallelize_loops instantation.
4307
4308 2016-01-18  Tom de Vries  <tom@codesourcery.com>
4309
4310         * tree-parloops.c (pass_parallelize_loops::execute): Allow
4311         pass_parallelize_loops to be run outside the loop pipeline.
4312
4313 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
4314
4315         * tree-scalar-evolution.c (follow_copies_to_constant): New.
4316         (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
4317
4318 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
4319
4320         PR target/63679
4321         * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
4322         using get_ref_base_and_extent.
4323         (equal_mem_array_ref_p): New.
4324         (hashable_expr_equal_p): Add call to previous.
4325
4326 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
4327
4328         PR target/63679
4329         * tree-sra.c (disqualified_constants, constant_decl_p): New.
4330         (sra_initialize): Allocate disqualified_constants.
4331         (sra_deinitialize): Free disqualified_constants.
4332         (disqualify_candidate): Update disqualified_constants when appropriate.
4333         (create_access): Scan for constant-pool entries as we go along.
4334         (scalarizable_type_p): Add check against type_contains_placeholder_p.
4335         (maybe_add_sra_candidate): Allow constant-pool entries.
4336         (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
4337         (initialize_constant_pool_replacements): New.
4338         (sra_modify_assign): Avoid mangling assignments created by previous,
4339         and don't generate writes into constant pool.
4340         (sra_modify_function_body): Call initialize_constant_pool_replacements.
4341
4342 2016-01-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
4343
4344         * config/i386/i386.c (scalar_to_vector_candidate_p): Support
4345         andnot instruction.
4346         (scalar_chain::convert_op): Likewise.
4347         * config/i386/i386.md (*andndi3_doubleword): New.
4348
4349 2016-01-18  Richard Biener  <rguenther@suse.de>
4350
4351         PR tree-optimization/69170
4352         * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
4353         building a vector from scalar results of a pattern stmt.
4354
4355 2016-01-18  Jakub Jelinek  <jakub@redhat.com>
4356
4357         * haifa-sched.c (autopref_multipass_init): Work around
4358         -Wmaybe-uninitialized warning.
4359
4360 2016-01-18  Thomas Preud'homme  <thomas.preudhomme@arm.com>
4361
4362         * config/arm/arm.c (thumb1_reorg): Check that the comparison is
4363         against the constant 0.
4364
4365 2016-01-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4366
4367         PR tree-optimization/68799
4368         * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
4369         look up phi candidates in the statement-candidate map.
4370         (phi_add_costs): Likewise.
4371         (record_phi_increments): Likewise.
4372         (phi_incr_cost): Likewise.
4373         (ncd_with_phi): Likewise.
4374         (all_phi_incrs_profitable): Likewise.
4375
4376 2016-01-17  Jakub Jelinek  <jakub@redhat.com>
4377
4378         * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
4379         -Wmaybe-uninitialized warning.
4380
4381 2016-01-16  Sandra Loosemore  <sandra@codesourcery.com>
4382
4383         * doc/invoke.texi (Invoking GCC): Add new section to menu.
4384         (Option Summary): Update to reflect new section and moved options.
4385         (C++ Dialect Options): Move -fvtable-verify and related options.
4386         (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
4387         and profiling-related options.
4388         (Optimization Options): Move profile generation options and
4389         -fstack-protector and related options.
4390         (Instrumentation Options): New section incorporating moved options.
4391         (Code Generation Options): Move -finstrument-functions and
4392         related options, -fstack-check, -fstack-limit*, and -fbounds-check.
4393
4394 2016-01-16  Tom de Vries  <tom@codesourcery.com>
4395
4396         * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
4397
4398 2016-01-16  Tom de Vries  <tom@codesourcery.com>
4399
4400         * omp-low.c (expand_omp_atomic_fetch_op):  Release defs of update stmt.
4401
4402 2016-01-16  Richard Sandiford  <richard.sandiford@arm.com>
4403
4404         * hash-table.h (hash_table::empty): Turn into an inline wrapper
4405         that checks whether the table is already empty.  Rename the
4406         original implementation to...
4407         (hash_table::empty_slot): ...this new private function.
4408
4409 2016-01-15  David Malcolm  <dmalcolm@redhat.com>
4410
4411         PR diagnostic/68899
4412         * diagnostic-show-locus.c (layout::print_source_line): Move x
4413         offset of line until after call to
4414         get_line_width_without_trailing_whitespace.
4415
4416 2016-01-15  Jeff Law  <law@redhat.com>
4417
4418         PR tree-optimization/69270
4419         * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
4420         tree-ssa-dom.c.  Improve test for [0..1] ranve from VRP.
4421         * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
4422         * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
4423         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
4424         ssa_name_has_boolean_range and constant_boolean_node.
4425
4426 2016-01-15  Vladimir Makarov  <vmakarov@redhat.com>
4427
4428         PR rtl-optimization/69030
4429         * lra-spills.c (remove_pseudos): Check nrefs and make the function
4430         returning bool.
4431         (spill_pseudos): Delete debug insn for dead pseudo.
4432         (lra_spill): Initiate spill_hard_reg and slots memory separately.
4433
4434 2016-01-15  Jiong Wang  <jiong.wang@arm.com>
4435
4436         * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
4437         New.
4438         (TYPES_UNOPUS): Likewise.
4439         * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
4440         builtin type, from UNOP to UNOPUS.
4441         (lbtruncuv4sf): Likewise.
4442         (lbtruncuv2df): Likewise.
4443         (lrounduv2sf): Likewise.
4444         (lrounduv4sf): Likewise.
4445         (lrounduv2df): Likewise.
4446         (lroundusf): Likewise.
4447         (lroundusf): Likewise.
4448         (lceiluv2sf): Likewise.
4449         (lceiluv4sf): Likewise.
4450         (lceiluv2df): Likewise.
4451         (lceilusf): Likewise.
4452         (lceiludf): Likewise.
4453         (lflooruv2sf): Likewise.
4454         (lflooruv4sf): Likewise.
4455         (lflooruv2df): Likewise.
4456         (lfloorusf): Likewise.
4457         (lfloorudf): Likewise.
4458         (lfrintnuv2sf): Likewise.
4459         (lfrintnuv4sf): Likewise.
4460         (lfrintnuv2df): Likewise.
4461         (lfrintnusf): Likewise.
4462         (lfrintnudf): Likewise.
4463         * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
4464         conversion.
4465         (vcvtq_u32_f32): Likewise.
4466         (vcvtq_u64_f64): Likewise.
4467         (vcvta_u32_f32): Likewise.
4468         (vcvtaq_u32_f32): Likewise.
4469         (vcvtaq_u64_f64): Likewise.
4470         (vcvtm_u32_f32): Likewise.
4471         (vcvtmq_u32_f32): Likewise.
4472         (vcvtmq_u64_f64): Likewise.
4473         (vcvtn_u32_f32): Likwise.
4474         (vcvtnq_u32_f32): Likewise.
4475         (vcvtnq_u64_f64): Likewise.
4476         (vcvtp_u32_f32): Likewise.
4477         (vcvtpq_u32_f32): Likewise.
4478         (vcvtpq_u64_f64): Likewise.
4479         (vcvtmd_u64_f64): Likewise.
4480         (vcvtms_u32_f32): Likewise.
4481         (vcvtad_u64_f64): Likewise.
4482         (vcvtas_u32_f32): Likewise.
4483         (vcvtnd_u64_f64): Likewise.
4484         (vcvtns_u32_f32): Likewise.
4485         (vcvtpd_u64_f64): Likewise.
4486         (vcvtps_u32_f32): Likewise.
4487
4488 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4489
4490         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
4491         CSEL of zero_extended registers.
4492
4493 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4494
4495         * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
4496         Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
4497
4498 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4499
4500         * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
4501         false when argument string is not found in the attributes table
4502         at all.
4503
4504 2016-01-15  David Edelsohn  <dje.gcc@gmail.com>
4505
4506         PR target/68609
4507         * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
4508         (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
4509         * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
4510         precision estimate.
4511
4512 2016-01-15  Richard Biener  <rguenther@suse.de>
4513
4514         PR tree-optimization/66856
4515         * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
4516         * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
4517         (vect_create_new_slp_node): Increment stmt reference count.
4518         (vect_get_and_check_slp_defs): Make sure stmts are nor already in
4519         an SLP tree before swapping operands.
4520         (vect_build_slp_tree): Likewise.
4521         (destroy_bb_vec_info): Free stmt info after SLP instances.
4522         * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
4523         * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
4524         (STMT_VINFO_NUM_SLP_USES): New macro.
4525
4526 2016-01-15  Richard Biener  <rguenther@suse.de>
4527
4528         PR debug/69137
4529         * dwarf2out.c (add_linkage_name_raw): New function split out from ...
4530         (add_linkage_name): ... here.
4531         (gen_typedef_die): Use add_linkage_name_raw instead of
4532         add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
4533         if necessary.
4534
4535 2016-01-15  Cesar Philippidis  <cesar@codesourcery.com>
4536
4537         * gimplify.c (oacc_default_clause): Decode reference and pointer
4538         types for both kernels and parallel regions.
4539
4540 2016-01-15  Richard Sandiford  <richard.sandiford@arm.com>
4541
4542         PR middle-end/69246
4543         * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
4544
4545 2016-01-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
4546
4547         * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
4548         (convert_scalars_to_vector): Likewise.
4549
4550 2016-01-15  Jonathan Wakely  <jwakely@redhat.com>
4551
4552         * doc/extend.texi (Type Traits): Fix grammar.
4553
4554 2016-01-15  Martin Jambor  <mjambor@suse.cz>
4555
4556         * tree-inline.c (remap_decl): Use existing dclarations if
4557         remapping a type and prevent_decl_creation_for_types.
4558         (replace_locals_stmt): Do an initial remapping of non-VLA typed
4559         decls first.  Do real remapping with
4560         prevent_decl_creation_for_types set.
4561         * tree-inline.h (copy_body_data): New field
4562         prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
4563         padding.
4564
4565 2016-01-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>
4566
4567         * config/s390/s390.opt (mmvcle): More verbose help text.
4568
4569 2016-01-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>
4570
4571         * config/s390/s390.opt: Add period to -mzvector option text.
4572
4573 2016-01-15  Richard Biener  <rguenther@suse.de>
4574
4575         PR tree-optimization/68961
4576         * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
4577         of invariants in stores again.
4578
4579 2016-01-15  Sebastian Huber  <sebastian.huber@embedded-brains.de>
4580
4581         * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
4582
4583 2016-01-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
4584
4585         * config/i386/i386.c (ix86_expand_branch): Don't split
4586         DI mode xor instruction to SI mode.
4587
4588 2016-01-15  Jan Hubicka  <hubicka@ucw.cz>
4589
4590         PR ipa/68148
4591         * ipa-icf.c (sem_function::merge): Virtual functions may become
4592         reachable even if they address is not taken and there are no
4593         idrect calls.
4594
4595 2016-01-15  Jan Hubicka  <hubicka@ucw.cz>
4596
4597         * lto-streamer-out.c (subtract_estimated_size): New function.
4598         (get_symbol_initial_value): Use it.
4599
4600 2016-01-15  Christian Bruel  <christian.bruel@st.com>
4601
4602         PR target/65837
4603         * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
4604         (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
4605         (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
4606         use add_builtin_function_ext_scope instead of add_builtin_function.
4607         (neon_set_p, neon_crypto_set_p): Remove.
4608         (arm_init_builtins): Always call arm_init_neon_builtins and
4609         arm_init_crypto_builtins.
4610         (arm_expand_builtin): Check that builtins are allowed for the arch.
4611         * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
4612         * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
4613         arm_init_neon_builtins call.
4614
4615 2016-01-15  Richard Biener  <rguenther@suse.de>
4616
4617         PR tree-optimization/69117
4618         * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
4619         * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
4620         of the leader conservatively.
4621         (free_scc_vn): Restore original SSA name infos.
4622
4623 2016-01-14  Jeff Law  <law@redhat.com>
4624
4625         PR tree-optimization/69270
4626         * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
4627         single bit of precision, verify it's also unsigned.
4628         (record_edge_info): Use constant_boolean_node rather than fold_convert
4629         to convert boolean_true/boolean_false to the right type.
4630
4631 2016-01-14  Richard Henderson  <rth@redhat.com>
4632
4633         PR rtl-opt/69014
4634         * loop-doloop.c (record_reg_sets): New.
4635         (doloop_optimize): Reject the transform if the sequence
4636         clobbers registers live at the end of the loop block.
4637         (doloop_optimize_loops): Enable df_live if needed.
4638
4639 2016-01-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
4640
4641         * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
4642         * gcc/config/rs6000/rs6000.c: Likewise.
4643         * gcc/config/rs6000/rs6000.h: Likewise.
4644         * gcc/config/rs6000/rs6000.md: Likewise.
4645         * gcc/doc/extend.texi: Likewsie.
4646
4647 2016-01-14  Jeff Law  <law@redhat.com>
4648
4649         * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
4650         typo.
4651
4652 2016-01-14  Richard Henderson  <rth@redhat.com>
4653
4654         PR c/69272
4655         PR tree-opt/68964
4656         * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
4657         * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
4658         instead of builtin_decl_declared_p to test for declaration.
4659
4660 2016-01-14  Nicklas Bo Jensen  <nbjensen@gmail.com>
4661
4662         * doc/loop.texi (Loop Analysis and Representation): Document
4663         loop_depth function.
4664
4665 2016-01-14  Tom de Vries  <tom@codesourcery.com>
4666
4667         PR tree-optimization/68773
4668         * omp-low.c (expand_omp_target): Don't set force_output.
4669         * varpool.c (varpool_node::get_create): Same.
4670         * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
4671         offload_funcs with force_output.
4672
4673 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
4674
4675         PR debug/69244
4676         * lra-eliminations.c (move_plus_up): Don't change anything if either
4677         the outer or inner subreg mode is not MODE_INT.
4678         * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
4679         integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
4680
4681 2016-01-14  Alan Lawrence  <alan.lawrence@arm.com>
4682
4683         * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
4684         reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
4685         reduc_uplus_@var{m}): Remove.
4686         * expr.c (expand_expr_real_2): Remove expansion path for
4687         reduc_[us](min|max|plus) optabs.
4688         * optabs-tree.c (scalar_reduc_to_vector): Remove.
4689         * optabs-tree.h (scalar_reduc_to_vector): Remove.
4690         * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
4691         reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
4692         * tree-vect-loop.c (vectorizable_reduction): Remove test for
4693         reduc_[us](min|max|plus) optabs.
4694
4695 2016-01-14  Alan Lawrence  <alan.lawrence@arm.com>
4696
4697         * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
4698         (reduc_plus_scal_v2sf): New.
4699         (reduc_smax_v2sf): Rename to...
4700         (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
4701         (reduc_smin_v2sf): Rename to...
4702         (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
4703
4704 2016-01-14  Jan Hubicka  <hubicka@ucw.cz>
4705
4706         * alias.c (compare_base_symbol_refs): New function.
4707         (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
4708         it.
4709
4710 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
4711
4712         PR middle-end/68146
4713         PR tree-optimization/69155
4714         * tree-complex.c: Include cfganal.h.
4715         (phis_to_revisit): New variable.
4716         (extract_component): Add phiarg_p argument.  Assert that returned
4717         SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
4718         (update_phi_components): Partly rewrite to use loop over real/imag
4719         components instead of code duplication.  If extract_component returns
4720         SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
4721         create_tmp_reg into the PHI node instead, and mention the phi triplet
4722         in phis_to_revisit.
4723         (tree_lower_complex): Walk bbs in rpo order.  Adjust phis recorded
4724         in phis_to_revisit at the end.
4725
4726 2016-01-14  Richard Biener  <rguenther@suse.de>
4727
4728         PR tree-optimization/68060
4729         * tree-vect-loop.c (vect_is_simple_reduction): Check the
4730         outer loop reduction is only used in the inner loop before
4731         detecting a double reduction.
4732
4733 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
4734
4735         PR target/68269
4736         * combine.c (expand_field_assignment): Punt if compute_mode is
4737         unsupported scalar mode.
4738
4739 2016-01-14  Richard Biener  <rguenther@suse.de>
4740
4741         PR tree-optimization/66856
4742         * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
4743         SLP node only if it built successfully.
4744         (vect_analyze_slp_instance): Adjust.
4745
4746 2016-01-14  Jeff Law  <law@redhat.com>
4747
4748         PR tree-optimization/69270
4749         * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
4750         (record_edge_info): Use it.  Convert boolean_{true,false}_node
4751         to the type of op0.
4752
4753 2016-01-13  Jan Hubicka  <hubicka@ucw.cz>
4754
4755         PR ipa/66487
4756         * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
4757         use block_ultimate_origin
4758         (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
4759
4760 2016-01-13  Sandra Loosemore  <sandra@codesourcery.com>
4761
4762         * doc/invoke.texi (Submodel Options): Rename section to
4763         "Machine-Dependent Options" to better reflect its content.
4764         Rewrite introductory text to remove archaic CPU names.
4765         Update references.
4766
4767 2016-01-13  Sandra Loosemore  <sandra@codesourcery.com>
4768
4769         * doc/invoke.texi (Code Gen Options): Move section up in file,
4770         before target-specific options.  Update menu and option summary
4771         to reflect the new section ordering.
4772
4773 2016-01-13  Jonathan Wakely  <jwakely@redhat.com>
4774
4775         * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
4776         (C++ Dialect Options): Add cross-reference to -std option.
4777         * doc/standards.texi (C++ Language): Document C++14 support.
4778
4779 2016-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
4780
4781         * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
4782         for pack/unpack functions for __ibm128.
4783         (PACK_IF): Likewise.
4784         (UNPACK_IF): Likewise.
4785
4786         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
4787         support for __ibm128 pack/unpack functions.
4788         (rs6000_invalid_builtin): Likewise.
4789         (rs6000_init_builtins): Likewise.
4790         (rs6000_opt_masks): Likewise.
4791
4792         * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
4793         (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
4794         functions
4795         (RS6000_BTM_COMMON): Likewise.
4796
4797         * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
4798         (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
4799         disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
4800         128-bit floating point.  Add support for the double values to be
4801         in Altivec registers for TF/IF packing and unpacking, but restrict
4802         TD packing sub-fields to be FPR registers.  Don't allow overlapped
4803         register support for packing.  Allow pack inputs to be memory
4804         locations.  Don't build generator functions for unpack<mode>_dm
4805         and unpack<mode>_nodm.
4806         (unpack<mode>_dm): Likewise.
4807         (unpack<mode>_nodm): Likewise.
4808         (pack<mode>): Likewise.
4809
4810         * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
4811         built-in functions to pack/unpack explicit __ibm128 values.
4812         (__builtin_unpack_ibm128): Likewise.
4813
4814         * doc/extend.texi (PowerPC Built-in Functions): Document
4815         __builtin_pack_ibm128 and __builtin_unpack_ibm128.
4816
4817 2016-01-13  Bernd Schmidt  <bschmidt@redhat.com>
4818
4819         PR c/66208
4820         * c-common.c (check_function_nonnull): Remove unnecessary declaration.
4821         Add new arg loc and pass it down as context.
4822         (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
4823         to the location to use for the warning.
4824         (check_function_arguments): New arg loc.  All callers changed.  Pass
4825         it to check_function_nonnull.
4826         * c-common.h (check_function_arguments): Adjust declaration.
4827
4828 2016-01-13  Jakub Jelinek  <jakub@redhat.com>
4829
4830         PR tree-optimization/69156
4831         * gimple.c (validate_type): Removed.
4832         (gimple_builtin_call_types_compatible_p): Use
4833         useless_type_conversion_p instead of validate_type.
4834         * value-prof.c (gimple_stringop_fixed_value): Fold
4835         icall_size to correct type.
4836
4837 2016-01-13  Jonathan Wakely  <jwakely@redhat.com>
4838
4839         * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
4840         effects.
4841
4842 2016-01-13  Richard Henderson  <rth@redhat.com>
4843
4844         PR tree-opt/68964
4845         * target.def (builtin_tm_load, builtin_tm_store): Remove.
4846         * config/i386/i386.c (ix86_builtin_tm_load): Remove.
4847         (ix86_builtin_tm_store): Remove.
4848         (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
4849         (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
4850         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
4851         (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
4852         * doc/tm.texi: Rebuild.
4853
4854         * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
4855         (BUILT_IN_TM_MEMCPY_RTWN): New.
4856         * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
4857         fallback from vector to integer helpers.
4858         (build_tm_load): Handle vector types directly, instead of
4859         via target hook.
4860         (build_tm_store): Likewise.
4861         (expand_assign_tm): Prepare for register types not handled by
4862         the above.  Copy them to memory and use memcpy.
4863         * tree.c (tm_define_builtin): New.
4864         (find_tm_vector_type): New.
4865         (build_tm_vector_builtins): New.
4866         (build_common_builtin_nodes): Call it.
4867
4868 2016-01-13  Uros Bizjak  <ubizjak@gmail.com>
4869
4870         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
4871         TARGET_SSE_MATH without TARGET_SSE2.  Rewrite.
4872
4873 2016-01-13  Tom de Vries  <tom@codesourcery.com>
4874
4875         PR tree-optimization/69169
4876         * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
4877         handled_struct_type param.
4878         (create_variable_info_for, intra_create_variable_infos): Call
4879         create_variable_info_for_1 with extra arg.
4880
4881 2016-01-13  Yvan Roux  <yvan.roux@linaro.org>
4882
4883         * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
4884         and "armv8.1-a+crc" entries.
4885
4886 2016-01-13  Alexander Fomin  <alexander.fomin@intel.com>
4887
4888         PR target/69228
4889         * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
4890         Change first operand predicate from register_or_constm1_operand
4891         to register_operand.
4892         (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
4893         (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
4894         (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
4895         (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
4896         (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
4897         (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
4898         (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
4899         * config/i386/i386.c (ix86_expand_builtin): Remove first operand
4900         comparison with constm1_rtx from vec_prefetch_gen part.
4901
4902 2016-01-13  Richard Biener  <rguenther@suse.de>
4903
4904         PR tree-optimization/69013
4905         * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
4906         Exchange assert for a test.
4907
4908 2016-01-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4909
4910         PR target/69247
4911         * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
4912
4913 2016-01-13  Richard Biener  <rguenther@suse.de>
4914
4915         PR tree-optimization/69242
4916         * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
4917         assert with a check.
4918
4919 2016-01-13  Richard Biener  <rguenther@suse.de>
4920
4921         PR tree-optimization/69186
4922         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
4923         Properly guard vect_update_misalignment_for_peel call.
4924
4925 2016-01-12  Jeff Law  <law@redhat.com>
4926
4927         PR tree-optimization/pr67755
4928         * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
4929         "need_profile_correction".
4930         (thread_block_1): Initialize new field to false by default.  If we
4931         have multiple thread paths through a common joiner to different
4932         final targets, then set new field to true.
4933         (compute_path_counts): Only do count adjustment when it's really
4934         needed.
4935
4936 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
4937
4938         * doc/invoke.texi (Spec Files): Move section down in file, past
4939         all command-line option descriptions.
4940
4941 2016-01-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4942
4943         PR middle-end/54809
4944         * doc/gty.texi: Remove documentation of mark_hook.
4945         * gengtype.c (struct write_types_data): Remove code to support
4946         mark_hook attribute.
4947         (walk_type): Likewise.
4948         (write_func_for_structure): Likewise.
4949
4950 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
4951
4952         * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
4953         Directory Options, and -specs= to Overall Options.
4954         (Overall Options): Adjust similarly.  Reorder to group related
4955         options together.  Make -specs= cross-reference the spec file details.
4956         (Directory Options): Adjust similarly.
4957
4958 2016-01-12  Jeff Law  <law@redhat.com>
4959
4960         * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
4961
4962 2016-01-12  Olivier Hainque  <hainque@adacore.com>
4963
4964         * gcc.c (spec_undefvar_allowed): New global.
4965         (process_command): Set to true when running for --version or --help,
4966         alone or together.
4967         (getenv_spec_function): When the variable is not defined, use the
4968         variable name as the variable value if we're allowed not to issue
4969         a fatal error.
4970
4971 2016-01-12  Bin Cheng  <bin.cheng@arm.com>
4972
4973         PR tree-optimization/68911
4974         * tree-vrp.c (adjust_range_with_scev): Check overflow in range
4975         information computed for expression "init + nit * step".
4976
4977 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
4978
4979         * doc/invoke.texi (Invoking GCC): Copy-edit.  Incorporate information
4980         about name of GCC executable.  Remove deleted node from menu.
4981         (Directory Options) <-B>: Remove cross-reference to deleted node.
4982         (Target Options): Delete section.
4983
4984 2016-01-12  Christian Bruel  <christian.bruel@st.com>
4985
4986         PR target/69180
4987         * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
4988         for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
4989
4990 2016-01-12  Jakub Jelinek  <jakub@redhat.com>
4991
4992         PR target/69198
4993         * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
4994         aligned_mem is properly set for AVX512-VL floating point masked
4995         stores.
4996
4997         PR target/69175
4998         * ifcvt.c (cond_exec_process_if_block): When removing the last
4999         insn from then_bb, remove also any possible barriers that follow it.
5000
5001 2016-01-12  H.J. Lu  <hongjiu.lu@intel.com>
5002
5003         PR target/68456
5004         PR target/69226
5005         * config/i386/iamcu.h (SIZE_TYPE): New macro.
5006         (PTRDIFF_TYPE): Likewise.
5007         (WCHAR_TYPE): Likewise.
5008         (WCHAR_TYPE_SIZE): Likewise.
5009         (STDINT_LONG32): Likewise.
5010
5011 2016-01-12  Richard Biener  <rguenther@suse.de>
5012
5013         PR tree-optimization/69053
5014         * tree-vect-loop.c (get_initial_def_for_reduction): Properly
5015         convert initial value for cond reductions.
5016
5017 2016-01-12  Richard Biener  <rguenther@suse.de>
5018
5019         PR tree-optimization/69007
5020         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
5021         widen_sum after dot_prod and sad.
5022
5023 2016-01-12  Richard Biener  <rguenther@suse.de>
5024
5025         PR tree-optimization/69168
5026         * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
5027         pattern stmt SLP type.
5028         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
5029         end up unused so cope with that case.
5030
5031 2016-01-12  Richard Biener  <rguenther@suse.de>
5032
5033         PR tree-optimization/69157
5034         * tree-vect-stmts.c (vectorizable_mask_load_store): Check
5035         stmts def type only during analyze phase.
5036         (vectorizable_call): Likewise.
5037         (vectorizable_simd_clone_call): Likewise.
5038         (vectorizable_conversion): Likewise.
5039         (vectorizable_assignment): Likewise.
5040         (vectorizable_shift): Likewise.
5041         (vectorizable_operation): Likewise.
5042         (vectorizable_store): Likewise.
5043         (vectorizable_load): Likewise.
5044
5045 2016-01-12  Richard Biener  <rguenther@suse.de>
5046
5047         PR tree-optimization/69174
5048         * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
5049         space.
5050         (vectorizable_load): Properly compute the number of loads needed
5051         for permuted strided SLP loads and do not spuriously assign
5052         to SLP_TREE_VEC_STMTS.
5053
5054 2016-01-12  Andris Pavenis  <andris.pavenis@iki.fi>
5055
5056         * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
5057         (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
5058         (MD_EXEC_PREFIX): Remove.
5059         (MD_STARTFILE_PREFIX) Removee.
5060         (FILE_NAME_ABSOLUTE_P): Remove.
5061         (CPP_SPEC): Do not read macros from sys/version.h.
5062         (LINK_COMMAND_SPEC): Remove.
5063         (LOCAL_INCLUDE_DIR): Remove.
5064         (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
5065         (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
5066         (POST_LINK_SPEC): Define to invoke stubify after linker
5067         (LIBSTDCXX): Remove define
5068         (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
5069         (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
5070         (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
5071         (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
5072         (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
5073         (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
5074         (i386_djgpp_asm_named_section): Add propotype of new procedure
5075
5076         * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
5077         (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
5078         (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
5079         in config/i386/djgpp.h).
5080         (STANDARD_STARTFILE_PREFIX_2): Define identical to
5081         STANDARD_STARTFILE_PREFIX_1.
5082         (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
5083         (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
5084         installation errors.
5085         (MAX_OFILE_ALIGNMENT): Define to 128.
5086         (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
5087
5088         * config/i386/djgpp.c: New file. Add implementation of
5089         i386_djgpp_asm_named_section.
5090
5091         * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
5092
5093         * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
5094         Add rule for building djgpp.o.
5095
5096 2016-01-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5097
5098         * config/rs6000/rs6000.c (v2df_reduction_p): New function.
5099         (rtx_is_swappable_p): Reductions are swappable.
5100         (insn_is_swappable_p): V2DF reductions are swappable.
5101
5102 2016-01-11  John David Anglin  <danglin@gcc.gnu.org>
5103
5104         * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
5105         reloads for other unsupported memory operands.
5106
5107 2016-01-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
5108             Jim Wilson  <jim.wilson@linaro.org>
5109
5110         PR target/69194
5111         * config/arm/arm-builtins.c (arm_expand_neon_args): Call
5112         copy_to_mode_reg instead of force_reg.
5113
5114 2016-01-11  H.J. Lu  <hongjiu.lu@intel.com>
5115
5116         PR target/69225
5117         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
5118         TARGET_80387 is true.
5119
5120 2016-01-11  Jakub Jelinek  <jakub@redhat.com>
5121
5122         PR target/69071
5123         * lra-eliminations.c (move_plus_up): Only move plus up
5124         if subreg of the constant can be simplified into constant
5125         and use the simplified subreg of the constant instead of
5126         the original constant.
5127
5128         * fold-const.c (fold_convertible_p): Don't return true
5129         for conversion of VECTOR_TYPE to same sized integral type.
5130         (fold_convert_loc): Fix up formatting.  Fold conversion of
5131         VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
5132         instead of NOP_EXPR.
5133
5134         PR tree-optimization/69214
5135         * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
5136         innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
5137         Formatting fix.
5138
5139         PR tree-optimization/69207
5140         * tree-vect-slp.c (vect_get_constant_vectors): For
5141         VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
5142         fold_convertible_p to vector_type's element type, and always
5143         use VCE for non-VECTOR_BOOLEAN_TYPE_P.
5144
5145 2016-01-11  Richard Biener  <rguenther@suse.de>
5146
5147         PR tree-optimization/69173
5148         * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
5149         fixup the cycle if all stmts are in a pattern.
5150
5151 2016-01-11  Uros Bizjak  <ubizjak@gmail.com>
5152
5153         PR middle-end/68999
5154         * alias.c (base_alias_check): Move check for addresses with
5155         alignment ANDs before the call for compare_base_decls.
5156         (memrefs_conflict_p): Return -1 for different decls
5157         that went through alignment adjustments.
5158
5159 2016-01-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5160
5161         PR rtl-optimization/68796
5162         * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
5163         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
5164         and QImode comparisons against zero with CC_NZmode.
5165         * config/aarch64/iterators.md (short_mask): New mode_attr.
5166
5167 2016-01-11  H.J. Lu  <hongjiu.lu@intel.com>
5168
5169         * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
5170         (<avx512>_store<mode>_mask): Likewise.
5171
5172 2016-01-11  Bernd Schmidt  <bschmidt@redhat.com>
5173             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5174
5175         PR rtl-optimization/68841
5176         * ifcvt.c (struct noce_if_info): Add orig_x field.
5177         (bbs_ok_for_cmove_arith): Add to_rename parameter.
5178         Don't record conflicts on to_rename if it's present.
5179         Allow memory destinations in sets.
5180         (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
5181         blocks, passing orig_x to the checks.
5182         (noce_process_if_block): Set if_info->orig_x appropriately.
5183
5184 2016-01-11  Tom de Vries  <tom@codesourcery.com>
5185
5186         PR tree-optimization/69069
5187         * tree-parloops.c (create_parallel_loop): Add missing phi args.
5188
5189 2016-01-11  Yuri Rumyantsev  <ysrumyan@gmail.com>
5190
5191         PR rtl-optimization/68920
5192         * config/i386/i386.c (ix86_option_override_internal): Restrict number
5193         of conditional moves for  RTL if-conversion to 1 for
5194         TARGET_ONE_IF_CONV_INSN.
5195         * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
5196         * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
5197         * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
5198         parameter to restirct number of conditional moves for
5199         RTL if-conversion.
5200         * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
5201         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
5202         conditionl moves.
5203
5204 2016-01-11  Alexandre Oliva  <aoliva@redhat.com>
5205
5206         PR bootstrap/69123
5207         * var-tracking.c (drop_overlapping_mem_locs): Operate on all
5208         onepart vars.  Fix typo in comment.  Fix reversed condition in
5209         unshare test.
5210         (dataflow_set_remove_mem_locs): Operate on all onepart vars.
5211
5212         PR bootstrap/69123
5213         * var-tracking.c (dump_onepart_variable_differences): New.
5214         (dataflow_set_different): If a detailed dump is requested,
5215         delay early returns and dump differences between onepart
5216         variables present before and after, and added variables.
5217
5218 2016-01-11  Ilya Enkovich  <enkovich.gnu@gmail.com>
5219
5220         PR target/69010
5221         * expr.c (expand_expr_real_1): For boolean vector constants
5222         with a scalar mode use const_scalar_mask_from_tree.
5223         (const_scalar_mask_from_tree): New.
5224         * optabs.c (expand_vec_cond_mask_expr): Use mask mode
5225         assigned to a mask type to handle constants.
5226
5227 2016-01-11  Martin Jambor  <mjambor@suse.cz>
5228
5229         PR ipa/69044
5230         * ipa-cp.c (estimate_local_effects): Do not clone for removal of
5231         useless parameters if we cannot change function signature.
5232
5233 2016-01-11  Martin Jambor  <mjambor@suse.cz>
5234
5235         PR ipa/66616
5236         * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
5237         flag.
5238
5239 2016-01-11  Tom de Vries  <tom@codesourcery.com>
5240
5241         PR tree-optimization/69109
5242         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
5243         latch with phi.
5244
5245 2016-01-11  Tom de Vries  <tom@codesourcery.com>
5246
5247         PR tree-optimization/69108
5248         * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
5249         res is not used in a phi.
5250
5251 2016-01-11  Yury Gribov  <y.gribov@samsung.com>
5252
5253         PR 67425
5254         * common.opt (frandom-seed): Fix parameter name.
5255         * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
5256
5257 2016-01-11  Tom de Vries  <tom@codesourcery.com>
5258
5259         PR tree-optimization/69058
5260         * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
5261         not supported.
5262
5263 2016-01-11  Andrew Burgess  <andrew.burgess@embecosm.com>
5264
5265         * config/arc/arc.opt (mdiv-rem): Add period to the end.
5266         (mcode-density): Likewise.
5267
5268 2016-01-10  Tom de Vries  <tom@codesourcery.com>
5269
5270         PR tree-optimization/69062
5271         * tree-parloops.c (loop_has_phi_with_address_arg): New function.
5272         (parallelize_loops): Don't paralelize loop that has phi with address
5273         arg.
5274
5275 2016-01-10  Tom de Vries  <tom@codesourcery.com>
5276
5277         PR tree-optimization/69039
5278         * tree-parloops.c (try_create_reduction_list): Only allow single exit
5279         phi for reduction.
5280
5281 2016-01-09  John David Anglin  <danglin@gcc.gnu.org>
5282
5283         PR middle-end/68743
5284         * match.pd: Require target has function_c99_misc before doing
5285         truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
5286
5287 2016-01-09  Gerald Pfeifer  <gerald@pfeifer.com>
5288
5289         * configure.ac (isl_options_set_schedule_serialize_sccs): Also
5290         use GMPINC.
5291         * configure: Regenerate.
5292
5293 2016-01-09  Jakub Jelinek  <jakub@redhat.com>
5294
5295         PR middle-end/50865
5296         PR tree-optimization/69097
5297         * fold-const.h (expr_not_equal_to): New prototype.
5298         * fold-const.c: Include stringpool.h and tree-ssanames.h.
5299         (expr_not_equal_to): New function.
5300         * match.pd (X % -Y is the same as X % Y): Don't optimize
5301         unless X is known not to be equal to minimum or Y is known
5302         not to be equal to -1.
5303         * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
5304         fold TRUNC_MOD_EXPR if the second argument is not a power of two.
5305         (simplify_stmt_using_ranges): Adjust caller.
5306         (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
5307         substitute_and_fold.
5308
5309 2016-01-09  Jan Hubicka  <hubicka@ucw.cz>
5310
5311         * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
5312         w/o DECL_NAME.
5313
5314 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
5315
5316         PR tree-optimization/69167
5317         * gimple-fold.c (replace_stmt_with_simplification): Also punt if
5318         new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
5319         ops[0] comparison.
5320         * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
5321
5322 2016-01-08  Alan Lawrence  <alan.lawrence@arm.com>
5323             Richard Biener  <rguenther@suse.de>
5324
5325         PR tree-optimization/68707
5326         * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
5327         instances that can be handled via vect_load_lanes.
5328
5329 2016-01-08  Uros Bizjak  <ubizjak@gmail.com>
5330
5331         * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
5332         if we can't determine address equivalence.
5333         * alias.c (compare_base_decl): Update for changed return value of
5334         symtab_node::equal_address_to.
5335
5336 2016-01-08  Jason Merrill  <jason@redhat.com>
5337
5338         PR c++/68983
5339         PR c++/67557
5340         * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
5341         * expr.c (store_field): Not here.
5342         * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
5343         call with TREE_ADDRESSABLE type.
5344         * tree-cfg.c (verify_gimple_call): Adjust.
5345
5346 2016-01-08  Olivier Hainque  <hainque@adacore.com>
5347
5348         * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
5349         libc_internal.
5350
5351 2016-01-08  Alan Lawrence  <alan.lawrence@arm.com>
5352
5353         * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
5354         (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
5355         (reduc_smin_v2sf): Rename to...
5356         (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
5357         (reduc_splus_v2sf): Rename to...
5358         (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
5359
5360 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
5361
5362         PR tree-optimization/69162
5363         * gimplify.c (gimplify_va_arg_expr): Encode original type of
5364         valist argument in another argument.
5365         (gimplify_modify_expr): Adjust for the above change.  Cleanup.
5366         * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
5367         to determine the va_list type, build a MEM_REF instead of
5368         build_fold_indirect_ref.
5369
5370         PR tree-optimization/69172
5371         * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
5372         gimple_build.
5373
5374 2016-01-08  Thomas Preud'homme  <thomas.preudhomme@arm.com>
5375
5376         PR tree-optimization/67781
5377         * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
5378         and cmpnop in two steps: first the ones not accessed in original
5379         gimple expression in a endian independent way and then the ones not
5380         accessed in the final result in an endian-specific way.
5381
5382 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
5383
5384         PR tree-optimization/69083
5385         * tree-vect-slp.c (vect_get_constant_vectors): For
5386         VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
5387         element type.  If op is fold_convertible_p to vector_type's element
5388         type, use NOP_EXPR instead of VCE.
5389
5390 2016-01-08  Segher Boessenkool  <segher@kernel.crashing.org>
5391
5392         PR rtl-optimization/67778
5393         PR rtl-optimization/68634
5394         PR rtl-optimization/68909
5395         * shrink-wrap.c (try_shrink_wrapping): Add comment.  Don't pop
5396         block from the stack until done with it.  Remove a superfluous
5397         bitmap set.  Remove a superfluous bitmap test.
5398
5399 2016-01-07  Martin Sebor  <msebor@redhat.com>
5400
5401         PR c/68966
5402         * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
5403         constraint on the type of arguments.
5404
5405 2016-01-07  Andreas Tobler  <andreast@gcc.gnu.org>
5406
5407         * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
5408         SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
5409         unaligned_access on the gcc_options set.
5410         * config/arm/arm.c (arm_option_override_internal): Use
5411         SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
5412
5413 2016-01-07  Uros Bizjak  <ubizjak@gmail.com>
5414
5415         PR target/69140
5416         * config/i386/i386.c (ix86_frame_pointer_required): Enable
5417         frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
5418
5419 2016-01-07  Uros Bizjak  <ubizjak@gmail.com>
5420
5421         Revert
5422         2016-01-06  Uros Bizjak  <ubizjak@gmail.com>
5423
5424         PR target/69140
5425         * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
5426         depending on frame_pointer_needed before remaining integer and SSE
5427         registers are saved.
5428
5429 2016-01-07  Sandra Loosemore  <sandra@codesourcery.com>
5430
5431         PR 1078
5432         * doc/extend.texi (Nvidia PDX Function Attributes): New section.
5433
5434 2016-01-07  H.J. Lu  <hongjiu.lu@intel.com>
5435
5436         PR target/69171
5437         * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
5438         Use the "xBm" constraint.
5439         (float<sseintvecmodelower><mode>2<mask_name><round_name):
5440         Likewise.
5441         (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
5442         (sse_cvtsi2ssq<round_name>): Likewise.
5443         (sse_cvtss2si<round_name>): Likewise.
5444         (sse_cvtss2siq<round_name>): Likewise.
5445         (sse2_cvtsi2sdq<round_name>): Likewise.
5446         (sse2_cvtsd2si<round_name>): Likewise.
5447         (sse2_cvtsd2siq<round_name>): Likewise.
5448         * config/i386/subst.md (round_nimm_scalar_predicate): New
5449         predicate.
5450
5451 2015-12-15  Bernd Schmidt  <bschmidt@redhat.com>
5452
5453         PR middle-end/67639
5454         * varasm.c (make_decl_rtl): Mark invalid register vars as
5455         DECL_EXTERNAL.
5456
5457         PR rtl-optimization/66206
5458         * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
5459         All callers changed.
5460
5461 2016-01-07  Jakub Jelinek  <jakub@redhat.com>
5462
5463         PR tree-optimization/69141
5464         * tree-ssa-pre.c: Include langhooks.h.
5465         (eliminate_dom_walker::before_dom_children): Use
5466         lang_hooks.decl_printable_name instead of
5467         cgraph_node::get ()->name ().
5468
5469         PR middle-end/68960
5470         * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
5471         it and DECL_ALIGN too.
5472
5473 2016-01-06  Robert Suchanek  <robert.suchanek@imgtec.com>
5474
5475         * config/mips/mips-ftypes.def: Sort to lexicographical order.
5476
5477 2016-01-06  Uros Bizjak  <ubizjak@gmail.com>
5478
5479         PR target/69140
5480         * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
5481         depending on frame_pointer_needed before remaining integer and SSE
5482         registers are saved.
5483
5484 2015-01-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5485
5486         * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
5487         mode iterator with VSX_M2.
5488         (*p9_vecstore_<mode>): Likewise.
5489         (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
5490         (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
5491         (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
5492         (define_split for VSX_LE128 stores): Likewise.
5493         (define_peephole2 for TImode LE swaps): Likewise.
5494         (define_split for VSX_LE128 post-reload stores): Likewise.
5495
5496 2016-01-06  Marek Polacek  <polacek@redhat.com>
5497
5498         PR sanitizer/69099
5499         * convert.c (convert_to_integer_1): Adjust call to
5500         ubsan_instrument_float_cast.  Use NULL_TREE instead of NULL.
5501         * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter.  Use
5502         EXPR instead of ARG.
5503         * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
5504
5505 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
5506
5507         PR 1078
5508         * doc/extend.texi (RL78 Variable Attributes): New section.
5509
5510 2016-01-05  Marek Polacek  <polacek@redhat.com>
5511
5512         PR c/69104
5513         * builtins.c (get_memmodel): Use expansion point location rather than
5514         the input location.  Call warning_at rather than warning.
5515         (expand_builtin_atomic_compare_exchange): Likewise.
5516         (expand_builtin_atomic_load): Likewise.
5517         (expand_builtin_atomic_store): Likewise.
5518         (expand_builtin_atomic_clear): Likewise.
5519
5520 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
5521
5522         PR target/68991
5523         * config/i386/i386.c (ix86_expand_vector_logical_operator):
5524         Replace nonimmediate_operand with vector_operand.
5525         * config/i386/predicates.md (vector_operand): New predicate.
5526         (general_vector_operand): Replace nonimmediate_operand with
5527         vector_operand.
5528         * config/i386/sse.md: Replace nonimmediate_operand with
5529         vector_operand and m constraint with Bm constraint on SSE
5530         patterns with 16-byte memory operand.
5531         * config/i386/subst.md (round_nimm_predicate): Replace
5532         nonimmediate_operand with vector_operand.
5533         (round_saeonly_nimm_predicate): Likewise.
5534         (round_saeonly_nimm_scalar_predicate): New.
5535
5536 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
5537
5538         PR target/68991
5539         * config/i386/constraints.md (Bm): New constraint.
5540         * config/i386/predicates.md (vector_memory_operand): New
5541         predicate.
5542         * config/i386/sse.md: Replace xm with xBm in plusminus and
5543         any_logic patterns.
5544
5545 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
5546
5547         PR 1078
5548         * doc/extend.texi (V850 Function Attributes): New section.
5549         (V850 Variable Attributes): New section.
5550
5551 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
5552
5553         PR 1078
5554         * doc/extend.texi (MicroBlaze Function Attributes): Document
5555         interrupt_handler and fast_interrupt attributes.
5556
5557 2016-01-05  Sergei Trofimovich  <siarheit@google.com>
5558
5559         PR other/60465
5560         * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
5561         for local symbolic operands.
5562         * config/ia64/predicates.md (local_symbolic_operand64): New
5563         predicate.
5564
5565 2016-01-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5566
5567         PR rtl-optimization/68651
5568         * combine.c (combine_simplify_rtx): Canonicalize x + x into
5569         x << 1.
5570
5571 2016-01-05  Nathan Sidwell  <nathan@acm.org>
5572
5573         * alias.c (compare_base_decls): Use symtab_node::get.
5574
5575 2016-01-05  Nick Clifton  <nickc@redhat.com>
5576
5577         PR target/68770
5578         * ira-costs.c (copy_cost): Initialise the t_icode field of the
5579         secondary_reload_info structure.
5580
5581         PR target/66655
5582         * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
5583         decls if weak support is available.
5584
5585 2016-01-04  Martin Sebor  <msebor@redhat.com>
5586
5587         * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
5588
5589 2016-01-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
5590
5591         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
5592         OPTION_MASK_P9_DFORM.
5593
5594         * config/rs6000/constraints.md (wo constraint): New constraint for
5595         ISA 3.0 (power9).
5596
5597         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
5598         for wo constraint.
5599         (rs6000_init_hard_regno_mode_ok): Likewise.
5600
5601         * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
5602         wo constraint.
5603
5604         * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
5605         expanders not to have constraints.  Add support for ISA 3.0 xxperm
5606         instruction.  Add support for fusing xxlor with xxperm.
5607         (altivec_vperm_<mode>_internal): Likewise.
5608         (altivec_vperm_v8hiv16qi): Likewise.
5609         (altivec_vperm_<mode>v16q): Likewise.
5610         (altivec_vperm_<mode>_uns): Likewise.
5611         (vperm_v8hiv4si): Likewise.
5612         (vperm_v16qiv8hi): Likewise.
5613
5614         * doc/md.texi (RS/6000 constraints): Document wo constraint.
5615
5616 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
5617
5618         Update copyright years.
5619
5620         * gcc.c (process_command): Update copyright notice dates.
5621         * gcov-dump.c (print_version): Ditto.
5622         * gcov.c (print_version): Ditto.
5623         * gcov-tool.c (print_version): Ditto.
5624         * gengtype.c (create_file): Ditto.
5625         * doc/cpp.texi: Bump @copying's copyright year.
5626         * doc/cppinternals.texi: Ditto.
5627         * doc/gcc.texi: Ditto.
5628         * doc/gccint.texi: Ditto.
5629         * doc/gcov.texi: Ditto.
5630         * doc/install.texi: Ditto.
5631         * doc/invoke.texi: Ditto.
5632
5633 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
5634
5635         * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
5636         modes larger than TImode as TImode if NEON is not enabled.
5637
5638 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
5639
5640         PR target/69100
5641         * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
5642         mode for %f0-%f31 only if TARGET_FPU.
5643
5644 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
5645
5646         PR target/69072
5647         * config/sparc/sparc.c (scan_record_type): Take into account subfields
5648         to compute the PACKED_P predicate.
5649         (function_arg_record_value): Minor tweaks.
5650
5651 2016-01-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
5652
5653         * doc/install.texi (--with-multilib-list): Describe the meaning of the
5654         option for arm*-*-* targets.
5655
5656 2016-01-03  Sandra Loosemore  <sandra@codesourcery.com>
5657
5658         * doc/extend.texi (Common Function Attributes): Move docs for
5659         MSP430-specific attributes to....
5660         (MSP430 Function Attributes): ...here.  Delete the redundant
5661         entries and copy-edit the remaining text.
5662         (MSP430 Variable Attributes): Use uniform format for index
5663         entries and add a cross-reference to the corresponding function
5664         attribute docs.
5665
5666 2016-01-03  Vladimír Čunát  <vcunat@gmail.com>
5667
5668         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
5669         -finite-math typo.
5670         (x86 Options): Likewise.
5671
5672 2016-01-01  Sandra Loosemore  <sandra@codesourcery.com>
5673
5674         PR 1078
5675
5676         * extend.texi (Common Function Attributes) <no_stack_limit>: New.
5677         * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
5678         to corresponding attribute.
5679
5680 2016-01-01  Sandra Loosemore  <sandra@codesourcery.com>
5681
5682         * doc/extend.texi (Common Function Attributes) <noplt>: Move
5683         to correct alphabetization of table.  Copy-edit and correct
5684         markup.
5685         <stack_protect>: Likewise.
5686         <target_clones>: Likewise.
5687         <simd>: Likewise.
5688         * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
5689         Correct punctuation.
5690         (Code Gen Options) <-fno-plt>: Copy-edit.
5691
5692 2016-01-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5693
5694         PR target/68917
5695         * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
5696         SI values.  Explicitly convert SI to DI and vice-versa.
5697
5698 2016-01-01  Jakub Jelinek  <jakub@redhat.com>
5699
5700         PR tree-optimization/69070
5701         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
5702         REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
5703
5704         PR sanitizer/69055
5705         * ubsan.c (ubsan_instrument_float_cast): Call
5706         initialize_sanitizer_builtins.
5707
5708         PR target/69015
5709         * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
5710 \f
5711 Copyright (C) 2016 Free Software Foundation, Inc.
5712
5713 Copying and distribution of this file, with or without modification,
5714 are permitted in any medium without royalty provided the copyright
5715 notice and this notice are preserved.