2016-02-10 Vladimir Makarov <vmakarov@redhat.com>
[official-gcc.git] / gcc / ChangeLog
blobb4495d868c2f02471ba3e1dbf28fa6e137e2ff63
1 2016-02-10  Vladimir Makarov  <vmakarov@redhat.com>
3         PR target/69148
4         * lra-constraints.c (curr_insn_transform): Find in/out operands
5         for secondary memory moves.  Update dups.
7 2016-02-10  Yuri Rumyantsev  <ysrumyan@gmail.com>
9         PR tree-optimization/69652
10         * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
11         to nested loop, did source re-formatting, skip debug statements,
12         add check on statement with volatile operand, remove dead scalar
13         statements.
15 2016-02-10  Jakub Jelinek  <jakub@redhat.com>
16             Patrick Palka  <ppalka@gcc.gnu.org>
18         PR ipa/69241
19         PR c++/69649
20         * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
21         calls if the return type is TREE_ADDRESSABLE.
22         * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
23         * ipa-split.c (split_function): Fix doubled "we" in comment.
24         Use void return type for the split part even if
25         !split_point->split_part_set_retval.
27 2016-02-10  Bin Cheng  <bin.cheng@arm.com>
29         PR tree-optimization/68021
30         * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
31         when computing the value of biv cand by itself.
33 2016-02-10  Wilco Dijkstra  <wdijkstr@arm.com>
35         * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
36         (cortexa57_tunings): Likewise.
37         (cortexa72_tunings): Likewise.
38         (arch_macro_fusion_pair_p): Add support for AES fusion.
39         * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
40         * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
41         Allow virtual registers before reload so early scheduling works.
42         * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
43         correct latency and pipeline.
44         (cortex_a57_crypto_complex): Likewise.
45         (cortex_a57_crypto_xor): Likewise.
46         (define_bypass): Add AES bypass.
48 2016-02-10  Richard Biener  <rguenther@suse.de>
50         PR tree-optimization/69726
51         * passes.def: Add DCE pass before late uninit.
52         * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
53         really fixup if-conversions job.
55 2016-02-10  Wilco Dijkstra  <wdijkstr@arm.com>
57         * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
58         (arm_cortex_a57_tune): Likewise.
59         (aarch_macro_fusion_pair_p): Add support for AES fusion.
60         * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
62 2016-02-10  Eric Botcazou  <ebotcazou@adacore.com>
64         * timevar.def (TV_PHASE_DBGINFO): Delete.
65         (TV_PHASE_CHECK_DBGINFO): Likewise.
66         * varpool.c (varpool_node::assemble_decl): Do not change timevar.
68 2016-02-10  Richard Biener  <rguenther@suse.de>
70         PR tree-optimization/69719
71         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
72         Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
74 2016-02-09  Andrew Pinski  <apinski@cavium.com>
76         PR tree-opt/69282
77         * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
78         get_vcond_mask_icode returns false.
80 2016-02-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
82         PR target/68404
83         * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
84         an ADDIS that adds a pointer to a large constant that sets the
85         upper16 bits with a load operation.
87 2016-02-09  Charles Baylis  <charles.baylis@linaro.org>
89         PR target/68532
90         * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
91         order.
92         * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
93         endian.
94         (vzipq_s16): Likewise.
95         (vzipq_s32): Likewise.
96         (vzipq_f32): Likewise.
97         (vzipq_u8): Likewise.
98         (vzipq_u16): Likewise.
99         (vzipq_u32): Likewise.
100         (vzipq_p8): Likewise.
101         (vzipq_p16): Likewise.
103 2016-02-09  Charles Baylis  <charles.baylis@linaro.org>
105         PR target/68532
106         * config/arm/arm.c (neon_endian_lane_map): New function.
107         (neon_vector_pair_endian_lane_map): New function.
108         (arm_evpc_neon_vuzp): Allow for big endian lane order.
109         * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
110         endian.
111         (vuzpq_s16): Likewise.
112         (vuzpq_s32): Likewise.
113         (vuzpq_f32): Likewise.
114         (vuzpq_u8): Likewise.
115         (vuzpq_u16): Likewise.
116         (vuzpq_u32): Likewise.
117         (vuzpq_p8): Likewise.
118         (vuzpq_p16): Likewise.
120 2016-02-11  Alexandre Oliva  <aoliva@redhat.com>
122         PR target/69634
123         * regstat.c (regstat_bb_compute_calls_crossed): Disregard
124         debug insns.
126 2016-02-09  Uros Bizjak  <ubizjak@gmail.com>
128         * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
129         truncate const_int operand 1 to QImode.
131 2016-02-09  Eric Botcazou  <ebotcazou@adacore.com>
133         * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
134         corresponding to an abnormal edge.
136 2016-02-09  Tom de Vries  <tom@codesourcery.com>
138         PR tree-optimization/69599
139         * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
140         function.
141         (find_func_aliases_for_builtin_call, find_func_clobbers)
142         (ipa_pta_execute):  Handle case that foo and foo._0 are not in same lto
143         partition.
145 2016-02-09  Richard Biener  <rguenther@suse.de>
147         PR tree-optimization/69715
148         * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
149         LHS on calls as non-rewritable.
151 2016-02-09  Tom de Vries  <tom@codesourcery.com>
153         PR lto/69707
154         * lto-wrapper.c (append_diag_options): New function.
155         (compile_offload_image): Call append_diag_options.
157 2016-02-08  Sandra Loosemore <sandra@codesourcery.com>
159         PR other/69722
160         * doc/extend.texi (Flag Output Operands): Correct sectioning.
161         Minor copy-edit to fix verb tenses.
163 2016-02-08  Jakub Jelinek  <jakub@redhat.com>
165         PR tree-optimization/69209
166         * ipa-split.c (split_function): If split part is not
167         returning retval, retval has gimple type but is not
168         gimple value, force it into a SSA_NAME first.
170 2016-02-08  Nicklas Bo Jensen  <nbjensen@gmail.com>
172         * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
173         outdated section.
175 2016-02-08  Jason Merrill  <jason@redhat.com>
177         PR c++/69631
178         * convert.c (convert_to_integer_1): Check dofold on truncation
179         distribution.
180         (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
181         (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
182         Rename from *_nofold.
183         * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
184         (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
186 2016-02-08  Bernd Schmidt  <bschmidt@redhat.com>
188         PR target/60410
189         * tree.c (build_common_tree_nodes): Remove short_double argument.
190         All callers changed.
191         * tree.h (build_common_tree_nodes): Adjust declaration.
192         * doc/invoke.texi (-fshort-double): Remove documentation.
193         * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
194         MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
195         * lto-wrapper.c (merge_and_complain, append_compiler_options)
196         (append_linker_options): Don't handle OPT_fshort_double.
198         PR rtl-optimization/68730
199         * lra-remat.c (insn_to_cand_activation): New static variable.
200         (lra_remat): Allocate and free it.
201         (create_cand): New arg activation. Initialize a field in
202         insn_to_cand_activation if it is nonnull.
203         (create_cands): Pass the activation insn to create_cand when making
204         a candidate involving an output reload.  Reorganize code a little.
205         (do_remat): Keep track of active status of candidates in a separate
206         bitmap.
208 2016-02-08  Richard Biener  <rguenther@suse.de>
210         PR tree-optimization/69719
211         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
212         Properly use absolute of the difference of the two offsets to
213         compare or adjust the segment length.
215 2016-02-08  Richard Biener  <rguenther@suse.de>
216             Jeff Law  <law@redhat.com>
218         PR target/68273
219         * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
220         types for anonymous SSA names.
222 2016-02-08   Richard Biener  <rguenther@suse.de>
224         PR rtl-optimization/69274
225         * ira.c (ira_setup_alts): Do not change recog_data.operand order.
227 2016-02-08  Jeff Law  <law@redhat.com>
229         PR tree-optimization/65917
230         * tree-ssa-dom.c (record_temporary_equivalences): Record both
231         equivalences from if (x == y) style conditionals.
232         (loop_depth_of_name): Remove.
233         (record_equality): Remove loop depth check.
234         * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
235         (const_and_copies::record_const_or_copy_raw): New member function.
236         * tree-ssa-scopedtables.c
237         (const_and_copies::record_const_or_copy_raw): New, factored out of
238         (const_and_copies::record_const_or_copy): Call new member function.
240 2016-02-05  Jeff Law  <law@redhat.com>
242         PR tree-optimization/68541
243         * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
244         (count_stmts_in_block): New function.
245         (poor_ifcvt_candidate_code): Likewise.
246         (is_feasible_trace): Add some heuristics to determine when path
247         splitting is profitable.
248         (find_block_to_duplicate_for_splitting_paths): Make sure the graph
249         is a diamond with a single exit.
251 2016-02-05  Martin Sebor  <msebor@redhat.com>
253         PR c++/69662
254         * doc/invoke.texi: Update -Wplacement-new to take an optional
255         argument.
257 2016-02-06  Richard Henderson  <rth@redhat.com>
259         PR c/69643
260         * tree.c (tree_nop_conversion_p): Do not strip casts into or
261         out of non-standard address spaces.
263 2016-02-05  Jakub Jelinek  <jakub@redhat.com>
265         PR rtl-optimization/69691
266         * lra-eliminations.c (move_plus_up): Don't add the addend twice.
268 2016-02-05  Pat Haugen  <pthaugen@us.ibm.com>
270         * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
271         * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
272         (*ieee128_mfvsrd_64bit): Likewise.
273         (*ieee128_mfvsrd_32bit): Likewise.
275 2016-02-05  Ilya Enkovich  <enkovich.gnu@gmail.com>
277         PR target/69369
278         Revert r232560:
279         2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
281         * cgraphunit.c (cgraph_node::reset): Clear thunk info and
282         instrumented_version.
284 2016-01-05  Jeremy Bennett  <jeremy.bennett@embecosm.com>
286         * doc/invoke.texi (Optimize Options): In table of --param options
287         rename second occurrence of tracer-min-branch-ratio to
288         tracer-min-branch-probability, rename
289         tracer-min-branch-ratio-feedback to
290         tracer-min-branch-probability-feedback and clarify description,
291         rename sched-spec-state-edge-prob-cutoff to
292         sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
293         to selsched-insns-to-rename, rename lto-minpartition to
294         lto-min-partition, delete reorder-blocks-duplicate and
295         reorder-blocks-duplicate-feedback.
297 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
299         * config/s390/s390.c (s390_register_info_set_ranges): Remove
300         superfluous loops.
302 2016-02-05  Dominik Vogt  <vogt@linux.vnet.ibm.com>
304         * doc/extend.texi: S/390: Correct some typos.
306 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
308         * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
310 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
312         PR target/69625
313         * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
314         (s390_register_info_gprtofpr): Use new macros above.
315         (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
316         its name.
317         (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
318         its name.  Adjust restore and save gpr ranges.
319         (s390_register_info_set_ranges): New function.
320         (s390_register_info): Use new macros above.  Call
321         s390_register_info_set_ranges.
322         (s390_optimize_register_info): Likewise.
323         (s390_hard_regno_rename_ok): Use new macros.
324         (s390_hard_regno_scratch_ok): Likewise.
325         (s390_emit_epilogue): Likewise.
326         (s390_can_use_return_insn): Likewise.
327         (s390_optimize_prologue): Likewise.
328         * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
330 2016-02-05  Jakub Jelinek  <jakub@redhat.com>
332         PR bootstrap/69677
333         * config/i386/i386.c (convert_scalars_to_vector): Readd stack
334         alignment fixes.
335         (ix86_option_override_internal): Disable TARGET_STV even for
336         -m{incoming,preferred}-stack-boundary=3.
338 2016-02-03  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
340         * config.gcc: Mark deprecated rtems targets as obsolete.
342 2016-02-04  Segher Boessenkool  <segher@kernel.crashing.org>
344         PR rtl-optimization/64682
345         PR rtl-optimization/69567
346         * combine.c (distribute_notes) <REG_DEAD>: Place the death note
347         before I2 only if the register is both used and set in I2.
349 2016-02-04  DJ Delorie  <dj@redhat.com>
351         * config/msp430/msp430.c (msp430_start_function): Add function type.
353 2016-02-04  Jakub Jelinek  <jakub@redhat.com>
355         PR fortran/69368
356         * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
358 2016-02-04  Uros Bizjak  <ubizjak@gmail.com>
360         PR rtl-optimization/69577
361         Revert:
362         2015-10-29  Richard Henderson  <rth@redhat.com>
364         PR target/68124
365         PR rtl-opt/67609
366         * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
367         sse check to the exact conditions of PR 67609.
369 2016-02-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
371         PR target/69667
372         * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
373         instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
374         not allowed into the traditional Altivec registers.
375         (movtd_64bit_nodm): Likewise.
376         (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
378 2016-02-04  David Malcolm  <dmalcolm@redhat.com>
380         * config/aarch64/cortex-a57-fma-steering.c
381         (aarch64_register_fma_steering): Remove "static" from arguments
382         to register_pass.
384 2016-02-04  Wilco Dijkstra  <wdijkstr@arm.com>
386         PR target/69619
387         * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
388         twice when complex.
390 2016-02-04  Mike Frysinger  <vapier@gentoo.org>
392         * doc/invoke.texi: Delete -mno-fma4.
394 2016-02-04  Richard Sandiford  <richard.sandiford@arm.com>
396         PR rtl-optimization/69577
397         * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
398         (find_subregs_of_mode): Update accordingly.  Iterate over partial
399         definitions.
401 2016-02-04  Alan Lawrence  <alan.lawrence@arm.com>
403         * config/arm/arm-protos.h (neon_reinterpret): Remove.
404         * config/arm/arm.c (neon_reinterpret): Remove.
405         * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
406         vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
407         vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
408         vreinterpretti): Remove.
409         * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
410         neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
411         neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
412         neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
413         neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
414         neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
415         * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
416         vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
417         vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
418         vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
419         vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
420         vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
421         vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
422         vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
423         vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
424         vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
425         vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
426         vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
427         vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
428         vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
429         vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
430         vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
431         vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
432         vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
433         vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
434         vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
435         vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
436         vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
437         vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
438         vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
439         vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
440         vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
441         vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
442         vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
443         vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
444         vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
445         vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
446         vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
447         vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
448         vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
449         vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
450         vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
451         vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
452         vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
453         vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
454         vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
455         vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
456         vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
457         vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
458         vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
459         vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
460         vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
461         vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
462         vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
463         vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
464         vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
465         vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
466         vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
467         vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
468         vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
469         vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
470         vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
471         vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
472         vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
473         vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
474         vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
475         vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
476         vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
477         vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
478         vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
479         vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
480         vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
481         vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
482         vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
483         vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
484         vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
485         vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
486         vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
487         vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
488         vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
489         vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
490         vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
491         vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
492         vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
493         vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
494         vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
495         vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
496         vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
497         vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
498         vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
499         vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
500         vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
501         vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
502         vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
503         vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
504         vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
505         vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
506         vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
507         vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
508         vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
509         vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
510         vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
511         vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
513 2016-02-04  Martin Liska  <mliska@suse.cz>
515         PR sanitizer/69276
516         * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
517         that are gimple_store_p.
518         (maybe_instrument_call): Likewise.
520 2016-02-04  Bin Cheng  <bin.cheng@arm.com>
522         * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
523         register scaling out of memory reference and comment why.
525 2016-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
527         PR target/65932
528         PR target/67714
529         * cse.c (cse_insn): Pass NULL to fold_rtx when initially
530         folding the source of a SET.
532 2016-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
534         PR target/65932
535         PR target/67714
536         * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
537         the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
539 2016-02-04  Jim Wilson  <jim.wilson@linaro.org>
541         PR target/65932
542         PR target/67714
543         * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
544         HImode.
546 2016-02-04  Christian Bruel  <christian.bruel@st.com>
548         * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
549         * config/arm/arm.c (arm_set_current_function): Likewise.
551 2016-02-04  Jakub Jelinek  <jakub@redhat.com>
552             Ilya Enkovich  <enkovich.gnu@gmail.com>
553             H.J. Lu  <hongjiu.lu@intel.com>
555         PR target/69454
556         * config/i386/i386.c (convert_scalars_to_vector): Remove
557         stack alignment fixes.
558         (ix86_option_override_internal): Disable TARGET_STV if stack
559         might not be aligned enough.
560         (ix86_minimum_alignment): Assert that TARGET_STV is false.
562 2016-02-04  Victoria Stepanyan  <victoria.stepanyan@amd.com>
564         * gcc/config/i386/x86-tune.def: Disable default prefetching
565         for -march=znver1.
567 2016-02-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
568             Vladimir Makarov  <vmakarov@redhat.com>
570         PR target/69461
571         * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
572         in validating fused toc addresses.
574 2016-02-03  Jakub Jelinek  <jakub@redhat.com>
576         PR c/69627
577         * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
578         range->m_caret fields if range->m_show_caret_p is false.
580         PR target/69644
581         * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
582         Force oldval into register if it does not satisfy reg_or_short_operand
583         predicate.  Fix up formatting.
585 2016-02-03  Vladimir Makarov  <vmakarov@redhat.com>
586             Alexandre Oliva  <aoliva@redhat.com>
588         PR target/69461
589         * lra-constraints.c (simplify_operand_subreg): Check additionally
590         address validity after potential reloading.
591         (process_address_1): Check insns validity.  In case of failure do
592         nothing.
594 2016-02-03  Kirill Yukhin  <kirill.yukhin@intel.com>
596         PR target/69118
597         * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
598         Fix target.
600 2016-02-02  Jakub Jelinek  <jakub@redhat.com>
602         * wide-int.cc (canonize_uhwi): New function.
603         (wi::divmod_internal): Use it.
605 2016-02-02  James Norris  <jnorris@codesourcery.com
607         * gimplify.c (omp_notice_variable): Add usage check.
609 2016-02-02  Alexander Monakov  <amonakov@ispras.ru>
611         * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
612         like LE, GE, LT, GT when emitting relational operator.
614 2016-02-02  Wilco Dijkstra  <wdijkstr@arm.com>
616         * ira-costs.c (find_costs_and_classes): Add extra argument.
617         * target.def (ira_change_pseudo_allocno_class): Add parameter.
618         * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
619         * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
620         * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
621         Add best_class parameter, and return it if not ALL_REGS.
622         * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
623         Add parameter.
624         * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
625         Update target hook.
627 2016-02-02  Wilco Dijkstra  <wdijkstr@arm.com>
629         * config/aarch64/aarch64.c
630         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
631         (aarch64_ira_change_pseudo_allocno_class): New function.
633 2016-02-02  Uros Bizjak  <ubizjak@gmail.com>
635         PR target/67032
636         * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
638 2016-02-02  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
640         * config/avr/avr.c (avr_option_override): Set
641         PARAM_ALLOW_STORE_DATA_RACES to 1.
643 2016-02-02  Richard Biener  <rguenther@suse.de>
645         PR tree-optimization/69595
646         * match.pd: Add range test simplifications to true/false.
648 2016-02-02  Thomas Schwinge  <thomas@codesourcery.com>
650         * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
651         * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
652         instead.
654 2016-02-02  Richard Biener  <rguenther@suse.de>
656         PR tree-optimization/69606
657         * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
658         info on the result before moving a stmt.
660 2016-02-02  Yuri Rumyantsev  <ysrumyan@gmail.com>
662         PR middle-end/68542
663         * config/i386/i386.c (ix86_expand_branch): Add support for conditional
664         branch with vector comparison.
665         * config/i386/sse.md (VI48_AVX): New mode iterator.
666         (define_expand "cbranch<mode>4): Add support for conditional branch
667         with vector comparison.
668         * tree-vect-loop.c (optimize_mask_stores): New function.
669         * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
670         has_mask_store field of vect_info.
671         * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
672         vectorized loops having masked stores after vec_info destroy.
673         * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
674         correspondent macros.
675         (optimize_mask_stores): Add prototype.
677 2016-02-02  Alan Modra  <amodra@gmail.com>
679         PR target/69548
680         * config/rs6000/predicates.md (quad_int_reg_operand): Don't
681         allow subregs.
683 2016-02-02  Alan Modra  <amodra@gmail.com>
685         PR target/68662
686         * config/rs6000/rs6000.c (need_toc_init): New var, set it
687         whenever toc_label_name used.
688         (rs6000_file_start): Don't set up toc section here,
689         (rs6000_output_function_epilogue): do so here instead,
690         (rs6000_xcoff_file_start): and here.
691         * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
692         (load_toc_aix_di): Likewise.
694 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
696         PR rtl-optimization/69592
697         * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
698         (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
699         (num_sign_bit_copies_binary_arith_p): New inline function.
700         (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
702 2016-02-01  Jeff Law  <law@redhat.com>
704         PR tree-optimization/69580
705         * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
706         * tree-ssa-threadbackward.c
707         (fsm_find_control_statement_thread_paths): Do not try to walk
708         through large PHI nodes.
710 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
712         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
713         when count is incremented above limit, don't analyze further
714         insns afterwards.
716         * omp-low.c (oacc_parse_default_dims): Avoid
717         -Wsign-compare warning, make sure value fits into int
718         rather than just unsigned int.
720 2016-02-01  Bin Cheng  <bin.cheng@arm.com>
722         PR tree-optimization/67921
723         * fold-const.c (split_tree): New parameters.  Convert pointer
724         type variable part to proper type before negating.
725         (fold_binary_loc): Pass new arguments to split_tree.
727 2016-02-01  Nathan Sidwell  <nathan@codesourcery.com>
729         * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
730         (nvptx_goacc_validate_dims): Extend to handle global defaults.
731         * target.def (OACC_VALIDATE_DIMS): Extend documentation.
732         * doc/tm.texti: Rebuilt.
733         * doc/invoke.texi (fopenacc-dim): Document.
734         * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
735         (append_compiler_options): Likewise.
736         * omp-low.c (oacc_default_dims, oacc_min_dims): New.
737         (oacc_parse_default_dims): New.
738         (oacc_validate_dims): Add USED arg.  Select non-unity default when
739         possible.
740         (oacc_loop_fixed_partitions): Return mask of used partitions.
741         (oacc_loop_auto_partitions): Emit dump info.
742         (oacc_loop_partition): Return mask of used partitions.
743         (execute_oacc_device_lower): Parse default dimension arg.  Adjust
744         loop partitioning and validation calls.
746 2016-02-01  Richard Biener  <rguenther@suse.de>
748         PR middle-end/69556
749         * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
751 2016-02-01  Richard Biener  <rguenther@suse.de>
753         PR tree-optimization/69574
754         * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
755         of asserting return chrec_dont_know.
757 2016-02-01  Martin Liska  <mliska@suse.cz>
759         * mem-stats-traits.h: Add copyright header.
760         * mem-stats.h: Likewise.
762 2016-02-01  Richard Biener  <rguenther@suse.de>
764         PR tree-optimization/69579
765         * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
766         Do not propagate through abnormal PHI results.
768 2016-02-01  Eric Botcazou  <ebotcazou@adacore.com>
770         * postreload.c (reload_cse_simplify): Remove dead code.
772 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
774         PR rtl-optimization/69570
775         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
776         if there is more than one set, not if there is a single set.
778 2016-02-01  Richard Henderson  <rth@redhat.com>
780         PR rtl-opt/69535
781         * combine.c (make_compound_operation): When looking through a
782         subreg, make sure to re-extend to the width of the outer mode.
784 2016-01-30  Jakub Jelinek  <jakub@redhat.com>
786         PR tree-optimization/69546
787         * wide-int.cc (wi::divmod_internal): For unsigned division
788         where both operands fit into uhwi, if o1 is 1 and o0 has
789         msb set, if divident_prec is larger than bits per hwi,
790         clear another quotient word and return 2 instead of 1.
791         Similarly for remainder with msb in HWI set, if dividend_prec
792         is larger than bits per hwi.
794 2016-01-29  Martin Jambor  <mjambor@suse.cz>
796         * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
797         Use short lowercase names.
798         (get_memory_order): Mask with MEMMODEL_BASE_MASK.  Support
799         MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
800         acq_rel one.  Protect warning agains segfaults if
801         get_memory_order_name returns NULL.
802         (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
803         with release semantics.  Do not warn if get_memory_order already did.
804         (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
805         semantics.  Fix check for relaxed or acquire semantics.  Do not warn
806         if get_memory_order already did.
808 2016-01-29  Sebastian Pop  <s.pop@samsung.com>
810         * doc/install.texi: Document that isl-0.16 is supported.
812 2016-01-29  Vladimir Makarov  <vmakarov@redhat.com>
814         PR target/69299
815         * config/i386/constraints.md (Bm): Describe as special memory
816         constraint.
817         * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
818         * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
819         * genpreds.c (struct constraint_data): Add is_special_memory.
820         (have_special_memory_constraints, special_memory_start): New
821         static vars.
822         (special_memory_end): Ditto.
823         (add_constraint): Add new arg is_special_memory.  Add code to
824         process its true value.  Update have_special_memory_constraints.
825         (process_define_constraint): Pass the new arg.
826         (process_define_register_constraint): Ditto.
827         (choose_enum_order): Process special memory.
828         (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
829         function insn_extra_special_memory_constraint.
830         (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
831         * gensupport.c (process_rtx): Process
832         DEFINE_SPECIAL_MEMORY_CONSTRAINT.
833         * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
834         * ira-lives.c (single_reg_class): Use
835         insn_extra_special_memory_constraint.
836         * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
837         * lra-constraints.c (process_alt_operands): Ditto.
838         (curr_insn_transform): Use insn_extra_special_memory_constraint.
839         * recog.c (asm_operand_ok, preprocess_constraints): Process
840         CT_SPECIAL_MEMORY.
841         * reload.c (find_reloads): Ditto.
842         * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
843         * stmt.c (parse_input_constraint): Use
844         insn_extra_special_memory_constraint.
846 2016-01-29  H.J. Lu  <hongjiu.lu@intel.com>
848         PR target/69530
849         * lra-splill.c (lra_final_code_change): Revert r229087 by
850         removing all sub-registers.
852 2016-01-29  Steve Ellcey  <sellcey@imgtec.com>
854         PR target/65604
855         * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
857 2016-01-29  Jakub Jelinek  <jakub@redhat.com>
859         PR target/69551
860         * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
861         SSE1, copy target into the temporary reg first before recursing
862         on it.
864 2016-01-29  H.J. Lu  <hongjiu.lu@intel.com>
866         * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
867         with vm.
869 2016-01-29  Jonathan Wakely  <jwakely@redhat.com>
871         * ginclude/stdarg.h: Test __cplusplus instead of
872         __GXX_EXPERIMENTAL_CXX0X__.
874 2016-01-29  Richard Biener  <rguenther@suse.de>
876         PR tree-optimization/69547
877         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
878         Do not mark clobbers necessary.
879         (mark_all_reaching_defs_necessary_1): Likewise.
881 2016-01-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
883         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
884         declaration name with %qs and print it in both error messages.
885         Also fix indentation.
887 2016-01-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
889         PR other/69006
890         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
891         trailing blank line from error message.
893 2016-01-29  Jonathan Wakely  <jwakely@redhat.com>
895         PR c++/69462
896         * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
897         for C++-11.
899 2016-01-29  Richard Biener  <rguenther@suse.de>
901         PR middle-end/69537
902         * match.pd: Allow all integral types when simplifying a
903         widening or sign-changing conversion.
905 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
907         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
908         back to setting codegen_error to fail codegen.
910 2016-01-28  Uros Bizjak  <ubizjak@gmail.com>
912         PR target/69459
913         * config/i386/constraints.md (C): Only accept constant zero operand.
914         (BC): New constraint.
915         * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
916         instead of C constraint.
917         * doc/md.texi (Machine Constraints): Update description
918         of C constraint.
920 2016-01-28  Steve Ellcey  <sellcey@imgtec.com>
922         PR target/68400
923         * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
925 2016-01-28  Jakub Jelinek  <jakub@redhat.com>
927         PR middle-end/69542
928         * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
929         non-debug insns.
931 2016-01-28  Pat Haugen  <pthaugen@us.ibm.com>
933         * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
934         branches if using guessed profile.
936 2016-01-28  H.J. Lu  <hongjiu.lu@intel.com>
938         * graphite-optimize-isl.c (optimize_isl): Fix dump.
940 2016-01-28  Richard Henderson  <rth@redhat.com>
942         PR target/69305
943         * config/aarch64/aarch64-modes.def (CC_Cmode): New
944         * config/aarch64/aarch64-protos.h: Update.
945         * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
946         (aarch64_select_cc_mode): Add check for use of CC_Cmode.
947         (aarch64_get_condition_code_1): Handle CC_Cmode.
948         * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
949         (*add<mode>3_compareC_cconly_imm): New.
950         (*add<mode>3_compareC_cconly): New.
951         (*add<mode>3_compareC_imm): New.
952         (add<mode>3_compareC): New.
953         (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
954         to be first.  Use aarch64_carry_operation.
955         (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
956         (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
957         (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
958         (subti3): Use subdi3_compare1.
959         (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
960         (sub<mode>3_compare1): New.
961         (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
962         (*sub<mode>3_carryin): Use aarch64_borrow_operation.
963         (*subsi3_carryin_uxtw): Likewise.
964         (*ngc<mode>, *ngcsi_uxtw): Likewise.
965         (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
966         * config/aarch64/iterators.md (DWI): New.
967         * config/aarch64/predicates.md (aarch64_carry_operation): New.
968         (aarch64_borrow_operation): New.
970 2016-01-28  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
972         * graphite-optimize-isl.c (optimize_isl): Print a different debug
973         message when isl does not return a valid schedule.
975 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
977         * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
978         Remove comments from class declarations: they are already in the code
979         close by the defs.
981 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
983         * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
984         codegen_error_p.
985         (ternary_op_to_tree): Same.
986         (unary_op_to_tree): Same.
987         (nary_op_to_tree): Same.
988         (gcc_expression_from_isl_expr_op): Same.
989         (gcc_expression_from_isl_expression): Same.
990         (graphite_create_new_loop): Same.
991         (graphite_create_new_loop_guard): Same.
992         (build_iv_mapping): Same.
993         (graphite_create_new_guard): Same.
994         (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
995         (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
997 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
999         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
1000         instead of setting codegen_error to fail codegen.
1002 2016-01-28  Jason Merrill  <jason@redhat.com>
1004         * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
1006 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
1008         * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
1009         Remove CONST_INT_P check in CCMP cost calculation.
1011 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
1013         * config/aarch64/aarch64.c (generic_vector_cost):
1014         Set vec_permute_cost.
1015         (cortexa57_vector_cost): Likewise.
1016         (exynosm1_vector_cost): Likewise.
1017         (xgene1_vector_cost): Likewise.
1018         (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
1019         * config/aarch64/aarch64-protos.h (cpu_vector_cost):
1020         Add vec_permute_cost entry.
1022 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
1024         * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
1025         immediate as %1.
1026         (add<mode>3_compare0): Likewise.
1027         (addsi3_compare0_uxtw): Likewise.
1028         (add<mode>3nr_compare0): Likewise.
1029         (compare_neg<mode>): Likewise.
1030         (<optab><mode>3): Likewise.
1032 2016-01-28  Ilya Enkovich  <enkovich.gnu@gmail.com>
1034         * tree-vect-stmts.c (vectorizable_comparison): Add
1035         NULL check for vectype.
1037 2016-01-28  Richard Biener  <rguenther@suse.de>
1039         PR tree-optimization/69466
1040         * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
1041         Account for PHIs we couldn't duplicate.
1043 2016-01-28  Martin Liska  <mliska@suse.cz>
1045         PR pch/68758
1046         * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
1047         instead of ENABLE_VALGRIND_CHECKING.
1049 2016-01-27  Richard Henderson  <rth@redhat.com>
1051         PR rtl-opt/69447
1052         * lra-remat.c (subreg_regs): New.
1053         (dump_candidates_and_remat_bb_data): Dump it.
1054         (operand_to_remat): Reject if operand in subreg_regs.
1055         (set_bb_regs): Collect subreg_regs.
1056         (lra_remat): Init and free subreg_regs.  Compute
1057         calculate_local_reg_remat_bb_data before create_cands.
1059 2016-01-27  H.J. Lu  <hongjiu.lu@intel.com>
1061         PR target/68986
1062         * config/i386/i386.c (ix86_update_stack_boundary): Don't
1063         change stack_alignment_needed for __tls_get_addr call.
1065 2016-01-27  Segher Boessenkool  <segher@kernel.crashing.org>
1067         * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
1069 2016-01-27  Jeff Law  <law@redhat.com>
1071         PR tree-optimization/68398
1072         PR tree-optimization/69196
1073         * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
1074         (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
1075         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
1076         Only count PHIs in the last block in the path.  The others will
1077         const/copy propagate away.  Add heuristic to allow more irreducible
1078         subloops to be created when it is likely profitable to do so.
1080         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
1081         Fix typo in comment.  Use gsi_after_labels and remove the GIMPLE_LABEL
1082         check from within the loop.  Use gsi_next_nondebug rather than gsi_next.
1084 2016-01-27  Jakub Jelinek  <jakub@redhat.com>
1086         PR lto/69254
1087         * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
1088         END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
1089         * asan.c (DEF_BUILTIN_STUB): Temporarily define.
1090         * tree-streamer-in.c: Include asan.h.
1091         (streamer_get_builtin_tree): For builtins in sanitizer
1092         range call initialize_sanitizer_builtins and retry.
1094 2016-01-27  Ian Lance Taylor  <iant@google.com>
1096         * common.opt (fkeep-gc-roots-live): New undocumented option.
1097         * tree-ssa-loop-ivopts.c (add_candidate_1): If
1098         -fkeep-gc-roots-live, skip pointers.
1099         (add_iv_candidate_for_biv): Handle add_candidate_1 returning
1100         NULL.
1102 2016-01-27  Uros Bizjak  <ubizjak@gmail.com>
1104         PR target/69512
1105         * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
1106         (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
1108 2016-01-27  Thomas Klausner  <wiz@NetBSD.org>
1110         PR target/68380
1111         * configure.ac: NetBSD provides SSP in its C library.
1112         * configure: Updated.
1114 2016-01-27  Richard Biener  <rguenther@suse.de>
1116         PR tree-optimization/69166
1117         * tree-vect-loop.c (vect_is_simple_reduction): Always check
1118         reduction code for commutativity / associativity.
1120 2016-01-27  Martin Jambor  <mjambor@suse.cz>
1122         PR tree-optimization/69355
1123         * tree-sra.c (analyze_access_subtree): Correct hole detection when
1124         total_scalarization fails.
1126 2016-01-27  David Edelsohn  <dje.gcc@gmail.com>
1128         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
1129         power9.
1131 2016-01-27  Christian Bruel  <christian.bruel@st.com>
1133         PR target/69245
1134         * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
1135         Move arm_reset_previous_fndecl and set_target_option_current_node in
1136         the conditional part.  Call save_restore_target_globals.
1137         * config/arm/arm.c (arm_set_current_function):
1138         Refactor to better support #pragma target and attribute mix.
1139         Call save_restore_target_globals.
1140         * config/arm/arm-protos.h (save_restore_target_globals): New function.
1142 2016-01-27  Martin Liska  <mliska@suse.cz>
1144         * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
1145         reference for an HSA kernel and its host function.
1147 2016-01-27  Jakub Jelinek  <jakub@redhat.com>
1149         PR tree-optimization/69399
1150         * wide-int.h (wi::lrshift): For larger precisions, only
1151         use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
1153 2016-01-27  Claudiu Zissulescu  <claziss@synopsys.com>
1155         * config/arc/predicates.md (proper_comparison_operator): Reject
1156         constant-constant comparison.
1158 2016-01-26  Tom de Vries  <tom@codesourcery.com>
1160         PR tree-optimization/69110
1161         * tree-data-ref.c (initialize_data_dependence_relation): Handle
1162         DR_NUM_DIMENSIONS == 0.
1164 2016-01-26  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
1165             Sebastian Pop  <s.pop@samsung.com>
1167         * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
1168         isl_ast_op_cond and isl_ast_op_select.
1169         (gcc_expression_from_isl_expr_op): Same.
1171 2016-01-26  Jason Merrill  <jason@redhat.com>
1173         PR c++/68782
1174         * tree.c (recompute_constructor_flags): Split out from
1175         build_constructor.
1176         (verify_constructor_flags): New.
1177         * tree.h: Declare them.
1179 2016-01-26  Iain Buclaw  <ibuclaw@gdcproject.org>
1181         PR rtl-optimization/69217
1182         * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
1183         are no TYPE_FIELDS set for the record type.
1185 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
1187         PR target/68662
1188         * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
1189         toc_label_name unconditionally.
1190         (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
1191         SYMBOL_REF string.  Use toc_label_name instead of constructing
1192         LCTOC1.
1193         (rs6000_elf_declare_function_name): Use toc_label_name instead of
1194         constructing LCTOC1.
1196 2016-01-26  Martin Sebor  <msebor@redhat.com>
1198         PR other/69477
1199         * doc/extend.texi (Common Type Attributes): Move text that talks about
1200         attribute packed from attribute aligned to the section discussing
1201         the former attribute for clarity.
1203 2016-01-26  Richard Henderson  <rth@redhat.com>
1205         PR middle-end/60908
1206         * trans-mem.c (tm_region_init): Mark entry block as visited.
1208 2016-01-26  David Malcolm  <dmalcolm@redhat.com>
1210         PR other/69006
1211         * diagnostic-show-locus.c (layout::print_source_line): Replace
1212         call to pp_newline with call to layout::print_newline.
1213         (layout::print_annotation_line): Likewise.
1214         (layout::move_to_column): Likewise.
1215         (layout::print_any_fixits): After printing any fixits, print a
1216         trailing newline, if necessary.
1217         (layout::print_newline): New method, resetting any colorization
1218         before a newline.
1219         (diagnostic_show_locus): Move the pp_newline to before the
1220         early bailout.  Remove dummy block enclosing the layout instance.
1221         * diagnostic.c (default_diagnostic_finalizer): Replace invocation
1222         of pp_newline_and_flush with pp_flush.
1223         (diagnostic_append_note): Delete use of pp_newline.
1224         (diagnostic_append_note_at_rich_loc): Delete.
1225         * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
1226         * pretty-print.h (output_buffer_append_r): Reset buff->line_length
1227         when newline characters are added to the buffer.
1229 2016-01-26  Michael Matz  <matz@suse.de>
1231         * configure.ac (ac_cv_std_swap_in_utility): New test.
1232         * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
1233         * configure: Regenerate.
1234         * config.in: Regenerate.
1236 2016-01-26  Claudiu Zissulescu  <claziss@synopsys.com>
1238         * config/arc/arc.md (cstoresi4): Force operand into register.
1239         (arcset<code>): Fix predicate.
1240         (arcsetltu): Likewise.
1241         (arcsetgeu): Likewise.
1242         (arcsethi): Likewise.
1243         (arcsetls): Likewise.
1245 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
1247         PR tree-optimization/69483
1248         * gimple-fold.c (canonicalize_constructor_val): Return NULL
1249         if base has error_mark_node type.
1251 2016-01-26  Christophe Lyon  <christophe.lyon@linaro.org>
1253         PR target/68620
1254         * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
1255         * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
1256         New helper macros.
1257         (vget_lane_f16): Handle big-endian.
1258         (vgetq_lane_f16): Likewise.
1259         (vset_lane_f16): Likewise.
1260         (vsetq_lane_f16): Likewise.
1261         * config/arm/iterators.md (VQXMOV): Add V8HF.
1262         (VDQ): Add V4HF and V8HF.
1263         (V_reg): Handle V4HF and V8HF.
1264         (Is_float_mode): Likewise.
1265         * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
1266         neon_vdup_nv8hf): New patterns.
1267         (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
1268         Use VD_LANE iterator.
1269         (neon_vld1_dup<mode>): Use VQ2 iterator.
1271 2016-01-26  Nathan Sidwell  <nathan@acm.org>
1273         * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
1274         (set_oacc_fn_attrib): Add IS_KERNEL arg.
1275         * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
1276         (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
1277         (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
1278         (oacc_validate_dims): Add LEVEL arg, don't return level.
1279         (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
1280         oacc_validate_dims.
1281         (execute_oacc_device_lower): Adjust, add more dump output.
1282         * tree-ssa-loop.c (gate_oacc_kernels): Use
1283         oacc_fn_attrib_kernels_p.
1284         * tree-parloops.c (create_parallel_loop): Adjust
1285         set_oacc_fn_attrib call.
1287 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
1289         PR lto/69254
1290         * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
1291         (append_compiler_options): Handle -fcilkplus.
1292         (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
1294 2016-01-26  Nick Clifton  <nickc@redhat.com>
1296         PR target/66655
1297         * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
1298         been marked as DECL_ONE_ONLY but we do not the means to make it
1299         so, then do not allow it to bind locally.
1301 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
1303         PR lto/69254
1304         * opts.h (parse_sanitizer_options): New prototype.
1305         * opts.c (sanitizer_opts): New array.
1306         (parse_sanitizer_options): New function.
1307         (common_handle_option): Use parse_sanitizer_options.
1309 2016-01-26  H.J. Lu  <hongjiu.lu@intel.com>
1311         PR target/68986
1312         * config/i386/i386.c (ix86_compute_frame_layout): Move stack
1313         alignment adjustment to ...
1314         (ix86_update_stack_boundary): Here.  Don't over-align stack for
1315         __tls_get_addr.
1316         (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
1317         if __tls_get_addr is called.
1319 2016-01-26  Christian Bruel  <christian.bruel@st.com>
1321         * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
1323 2016-01-26  Eric Botcazou  <ebotcazou@adacore.com>
1325         * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
1327 2016-01-26  Richard Biener  <rguenther@suse.de>
1329         PR middle-end/69467
1330         * match.pd: Guard X * CST CMP 0 pattern with single_use.
1332 2016-01-26  Richard Biener  <rguenther@suse.de>
1334         PR tree-optimization/69452
1335         * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
1336         (move_computations_dom_walker::before_dom_children): Rename
1337         to ...
1338         (move_computations_worker): This.
1339         (move_computations): Perform an RPO rather than a DOM walk.
1341 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
1343         PR target/69442
1344         * combine.c (combine_instructions): For REG_EQUAL note with
1345         SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
1346         to the underlying register.
1347         * doc/rtl.texi (REG_EQUAL): Document the behavior of
1348         REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
1350 2016-01-26  Roger Ferrer Ibáñez  <rofirrim@gmail.com>
1352         PR target/67896
1353         * config/aarch64/aarch64-builtins.c
1354         (aarch64_init_simd_builtin_types): Do not set structural
1355         equality to __Poly{8,16,64,128}_t types.
1357 2016-01-26  Richard Sandiford  <richard.sandiford@arm.com>
1359         PR tree-optimization/69400
1360         * wide-int.cc (wi_pack): Take the precision as argument and
1361         perform canonicalization here rather than in the callers.
1362         Use the main loop to handle all full-width HWIs.  Add a
1363         zero HWI if in_len isn't a full result.
1364         (wi::divmod_internal): Update accordingly.
1365         (wi::mul_internal): Likewise.  Simplify.
1367 2016-01-25  Aditya Kumar  <aditya.k7@samsung.com>
1368             Sebastian Pop  <s.pop@samsung.com>
1370         * graphite-poly.c (apply_poly_transforms): Simplify.
1371         (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
1372         (print_isl_map): Same.
1373         (print_isl_union_map): Same.
1374         (print_isl_schedule): New.
1375         (debug_isl_schedule): New.
1376         * graphite-dependences.c (scop_get_reads): Do not call
1377         isl_union_map_add_map that is undocumented isl functionality.
1378         (scop_get_must_writes): Same.
1379         (scop_get_may_writes): Same.
1380         (scop_get_original_schedule): Remove.
1381         (scop_get_dependences): Do not call isl_union_map_compute_flow that
1382         is deprecated in isl 0.15.  Instead, use isl_union_access_* interface.
1383         (compute_deps): Remove.
1384         * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
1385         (debug_schedule_ast): New.
1386         (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
1387         set_separate_option.
1388         (graphite_regenerate_ast_isl): Add dump.
1389         (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
1390         from scop->transformed_schedule.
1391         (graphite_regenerate_ast_isl): Add more dump.
1392         * graphite-optimize-isl.c (optimize_isl): Set
1393         scop->transformed_schedule.  Check whether schedules are equal.
1394         (apply_poly_transforms): Move here.
1395         * graphite-poly.c (apply_poly_transforms): ... from here.
1396         (free_poly_bb): Static.
1397         (free_scop): Static.
1398         (pbb_number_of_iterations_at_time): Remove.
1399         (print_isl_ast): New.
1400         (debug_isl_ast): New.
1401         (debug_scop_pbb): New.
1402         * graphite-scop-detection.c (print_edge): Move.
1403         (print_sese): Move.
1404         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
1405         (build_scop_scattering): Remove.
1406         (create_pw_aff_from_tree): Assert instead of bailing out.
1407         (add_condition_to_pbb): Remove unused code, do not fail.
1408         (add_conditions_to_domain): Same.
1409         (add_conditions_to_constraints): Remove.
1410         (build_scop_context): New.
1411         (add_iter_domain_dimension): New.
1412         (build_iteration_domains): Initialize pbb->iterators.
1413         Call add_conditions_to_domain.
1414         (nested_in): New.
1415         (loop_at): New.
1416         (index_outermost_in_loop): New.
1417         (index_pbb_in_loop): New.
1418         (outermost_pbb_in): New.
1419         (add_in_sequence): New.
1420         (add_outer_projection): New.
1421         (outer_projection_mupa): New.
1422         (add_loop_schedule): New.
1423         (build_schedule_pbb): New.
1424         (build_schedule_loop): New.
1425         (embed_in_surrounding_loops): New.
1426         (build_schedule_loop_nest): New.
1427         (build_original_schedule): New.
1428         (build_poly_scop): Call build_original_schedule.
1429         * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
1430         (free_poly_dr): Remove.
1431         (struct poly_bb): Add iterators.  Remove schedule, transformed, saved.
1432         (free_poly_bb): Remove.
1433         (debug_loop_vec): Remove.
1434         (print_isl_ast): Declare.
1435         (debug_isl_ast): Declare.
1436         (scop_do_interchange): Remove.
1437         (scop_do_strip_mine): Remove.
1438         (scop_do_block): Remove.
1439         (flatten_all_loops): Remove.
1440         (optimize_isl): Remove.
1441         (pbb_number_of_iterations_at_time): Remove.
1442         (debug_scop_pbb): Declare.
1443         (print_schedule_ast): Declare.
1444         (debug_schedule_ast): Declare.
1445         (struct scop): Remove schedule.  Add original_schedule,
1446         transformed_schedule.
1447         (free_gimple_poly_bb): Remove.
1448         (print_generated_program): Remove.
1449         (debug_generated_program): Remove.
1450         (unify_scattering_dimensions): Remove.
1451         * sese.c (print_edge): ... here.
1452         (print_sese): ... here.
1453         (debug_edge): ... here.
1454         (debug_sese): ... here.
1455         * sese.h (print_edge): Declare.
1456         (print_sese): Declare.
1457         (dump_edge): Declare.
1458         (dump_sese): Declare.
1460 2016-01-25  Aditya Kumar  <aditya.k7@samsung.com>
1461             Sebastian Pop  <s.pop@samsung.com>
1463         * Makefile.in: Set ISLVER in site.exp.
1465 2016-01-25  Jakub Jelinek  <jakub@redhat.com>
1467         * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
1468         DECL_VALUE_EXPR of new_var even for the non-array case.  Look
1469         through DECL_VALUE_EXPR for expansion.
1471 2016-01-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1473         * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
1474         the frame info after reload completed.
1476 2016-01-25  Jeff Law  <law@redhat.com>
1478         PR tree-optimization/69196
1479         PR tree-optimization/68398
1480         * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
1481         tree-ssa-threadupdate.c.
1482         (determine_bb_domination_status): Prototype
1483         * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
1484         (determine_bb_domination_status): No longer static.
1485         (valid_jump_thread_path): Remove code to detect characteristics
1486         of the jump thread path not associated with correctness.
1487         * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
1488         Correct test for thread path length.  Count PHIs for real operands as
1489         statements that need to be copied.  Do not count ASSERT_EXPRs.
1490         Look at all the blocks in the thread path.  Compute and selectively
1491         filter thread paths based on threading through the latch, threading
1492         a multiway branch or crossing a multiway branch.
1494 2016-01-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1496         * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled):  Add
1497         decl with __attribute__ ((unused)) annotation.
1499 2016-01-25  Ilya Enkovich  <enkovich.gnu@gmail.com>
1501         PR target/69421
1502         * tree-vect-stmts.c (vectorizable_condition): Check vectype
1503         of operands is compatible with a statement vectype.
1505 2016-01-25  Eric Botcazou  <ebotcazou@adacore.com>
1507         * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
1508         improve wording for mixed storage order support.
1510 2016-01-25  Bilyan Borisov  <bilyan.borisov@arm.com>
1512         * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
1513         (vcvt_u64_f64): Likewise.
1514         (vcvta_s64_f64): Likewise.
1515         (vcvta_u64_f64): Likewise.
1516         (vcvtm_s64_f64): Likewise.
1517         (vcvtm_u64_f64): Likewise.
1518         (vcvtn_s64_f64): Likewise.
1519         (vcvtn_u64_f64): Likewise.
1520         (vcvtp_s64_f64): Likewise.
1521         (vcvtp_u64_f64): Likewise.
1523 2016-01-25  Claudiu Zissulescu  <claziss@synopsys.com>
1525         * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
1526         (arc_init): Check validity mll64 option.
1527         (arc_save_restore): Use double load/store instruction.
1528         (arc_expand_movmem): Likewise.
1529         (arc_split_move): Don't split if we have double load/store
1530         instructions. Returns a boolean.
1531         (arc_process_double_reg_moves): Change function to return boolean
1532         instead of a sequence of instructions.
1533         (arc_dwarf_register_span): New function.
1534         * config/arc/arc-protos.h (arc_split_move): Change prototype.
1535         * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
1536         * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
1537         (*movdf_insn): Likewise.
1538         * config/arc/arc.opt (mll64): New option.
1539         * config/arc/predicates.md (even_register_operand): New predicate.
1540         * doc/invoke.texi (ARC Options): Add mll64 documentation.
1542 2016-01-25  Richard Biener  <rguenther@suse.de>
1544         PR lto/69393
1545         * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
1546         * tree-streamer-out.c (pack_ts_base_value_fields): Stream
1547         DECL_NAMELESS.
1548         * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
1550 2016-01-25  Richard Biener  <rguenther@suse.de>
1552         PR tree-optimization/69376
1553         * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
1554         flag.
1555         (VN_INFO_ANTI_RANGE_P): New inline.
1556         (VN_INFO_RANGE_TYPE): Likewise.
1557         * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
1558         SSA_NAME_ANTI_RANGE_P.
1559         (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
1560         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
1561         Properly query VN_INFO_RANGE_TYPE.
1563 2016-01-25  Nick Clifton  <nickc@redhat.com>
1565         PR target/66655
1566         * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
1568 2016-01-23  Tom de Vries  <tom@codesourcery.com>
1570         PR tree-optimization/69426
1571         * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
1572         removed clobber.
1574 2016-01-23  Jakub Jelinek  <jakub@redhat.com>
1576         * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
1577         "the the" with "the" in the comments.
1578         * ipa-devirt.c (build_type_inheritance_graph,
1579         update_type_inheritance_graph): Likewise.
1580         * tree.c (build_function_type_list_1): Likewise.
1581         * cfgloopmanip.c (scale_loop_profile): Likewise.
1582         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
1583         * gimple-ssa-split-paths.c
1584         (find_block_to_duplicate_for_splitting_paths): Likewise.
1585         * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
1586         * expr.c (convert_move): Likewise.
1587         * var-tracking.c (vt_stack_adjustments): Likewise.
1588         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
1589         * tree-vrp.c (test_for_singularity): Likewise.
1591         * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
1592         directly instead of building a temporary tree.
1594         PR bootstrap/69434
1595         * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
1596         remove <algorithm> include.
1598 2016-01-22  Jakub Jelinek  <jakub@redhat.com>
1600         PR target/69432
1601         * config/i386/i386.c: Include dojump.h.
1602         (expand_small_movmem_or_setmem,
1603         expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
1604         fixes.
1605         (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
1606         if dynamic_check != -1.
1608 2016-01-21  Jeff Law  <law@redhat.com>
1610         PR middle-end/69347
1611         * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
1612         record_temporary_equivalences.  Rewritten to avoid unnecessary calls
1613         into dominated_by_p.
1614         (cprop_into_successor_phis): Avoid unnecessary tests.
1616 2016-01-22  Richard Henderson  <rth@redhat.com>
1618         PR target/69416
1619         * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
1620         (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
1622 2016-01-22  Michael Matz  <matz@suse.de>
1624         * system.h (string, algorithm): Include only conditionally.
1625         (new): Include always under C++.
1626         * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
1627         * final.c (toplevel): Ditto.
1628         * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
1629         * genconditions.c (write_header): Make gencondmd.c define
1630         INCLUDE_STRING.
1631         * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
1633         * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
1634         * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
1636 2016-01-22  Christian Bruel  <christian.bruel@st.com>
1638         PR target/68674
1639         * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
1641 2016-01-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1643         PR target/69403
1644         * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
1645         define_insn_and_split.  Ensure operands[1] and operands[0] do not
1646         get assigned the same register.
1648 2016-01-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
1650         * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
1652 2016-01-22  Christian Bruel  <christian.bruel@st.com>
1654         * config/arm/arm-c.c (arm_pragma_target_parse):
1655         Remove warn_builtin_macro_redefined overwrite.
1657 2016-01-22  Eric Botcazou  <ebotcazou@adacore.com>
1659         * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
1660         flag_non_call_exceptions compatibility.
1662 2016-01-22  Jakub Jelinek  <jakub@redhat.com>
1664         PR debug/66668
1665         * dwarf2out.c (add_child_die_after): New function.
1666         (dwarf_qual_info_t): New type.
1667         (dwarf_qual_info): New variable.
1668         (qualified_die_p): New function.
1669         (modified_type_die): For -fdebug-types-section, ensure
1670         canonical order of qualifiers.  Put qualified DIEs adjacent
1671         to the corresponding non-qualified type DIE and search there
1672         for existing qualified DIEs.
1674 2016-01-22  Eric Botcazou  <ebotcazou@adacore.com>
1676         * doc/extend.texi (scalar_storage_order type attribute): Document
1677         restriction on type punning and aliasing, and remove future tense.
1679 2016-01-21  Roman Zhuykov  <zhroma@ispras.ru>
1681         PR target/69252
1682         * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
1683         first stage.
1685 2016-01-21  Jeff Law  <law@redhat.com>
1687         PR middle-end/69347
1688         * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
1689         useless call to record_temporary_equivalences.
1690         * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
1691         allocate 10 slots in the bb_path vector and let it grow as needed.
1692         (fsm_find_control_statement_thread_paths): Similarly for the next_path
1693         vector.
1695 2016-01-21  David Edelsohn  <dje.gcc@gmail.com>
1697         * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
1698         Detangle.
1699         * configure: Regenerate.
1701 2016-01-21  Pat Haugen  <pthaugen@us.ibm.com>
1703         * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
1704         * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
1706 2016-01-21  Bernd Schmidt  <bschmidt@redhat.com>
1708         PR middle-end/66178
1709         * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
1710         drop EXPAND_INITIALIZER.
1711         * rtl.h (contains_symbolic_reference_p): Declare.
1712         * rtlanal.c (contains_symbolic_reference_p): New function.
1713         * simplify-rtx.c (simplify_binary_operation_1): Don't turn
1714         a subtraction into a NOT if symbolic constants are involved.
1716 2016-01-21  Anton Blanchard  <anton@samba.org>
1717             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1719         PR target/63354
1720         * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
1721         #define.
1722         * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
1723         function.
1725 2016-01-21  Ajit Agarwal  <ajitkum@xilinx.com>
1727         * config/microblaze/microblaze.c
1728         (get_branch_target): New.
1729         (insert_wic_for_ilb_runout): New.
1730         (insert_wic): New.
1731         (microblaze_machine_dependent_reorg): New.
1732         (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
1733         * config/microblaze/microblaze.md
1734         (UNSPEC_IPREFETCH): Define.
1735         (iprefetch): New pattern
1736         * config/microblaze/microblaze.opt
1737         (mxl-prefetch): New flag.
1739 2016-01-21  Ajit Agarwal  <ajitkum@xilinx.com>
1741         * config/microblaze/microblaze.h
1742         (FIXED_REGISTERS): Update in macro.
1743         (CALL_USED_REGISTERS): Update in macro.
1745 2016-01-21  Yuri Rumyantsev  <ysrumyan@gmail.com>
1747         PR rtl-optimization/68920
1748         * ifcvt.c (cond_move_process_if_block): Limit number of conditional
1749         moves.
1751 2016-01-21  Vladimir Makarov  <vmakarov@redhat.com>
1753         PR rtl-optimization/68990
1754         * lra-coalesce.c (lra_coalesce): Invalidate value for the result
1755         pseudo instead of inheritance ones.
1757 2016-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1758             Nick Clifton  <nickc@redhat.com>
1760         PR target/69129
1761         PR target/69012
1762         * config/mips/mips.c (mips_compute_frame_info): Initialise
1763         args_size and hard_frame_pointer_offset fields of the frame
1764         structure before calling mips_global_pointer.
1766 2016-01-21  David Edelsohn  <dje.gcc@gmail.com>
1768         * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
1769         label reference.
1770         * configure: Regenerate.
1772 2016-01-21  Richard Biener  <rguenther@suse.de>
1774         * graphite-optimize-isl.c (get_schedule_map): Fix typo.
1776 2016-01-21  Marcin Kościelnicki  <koriakin@0x04.net>
1778         * config/s390/s390.c (s390_asm_declare_function_size): Add code
1779         to actually emit the .size directive.
1781 2016-01-21   Stefan Sørensen  <stefan.sorensen@spectralink.com>
1782              Jakub Jelinek  <jakub@redhat.com>
1784         PR target/69187
1785         PR target/65624
1786         * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
1787         args array size by one to avoid buffer overflow.
1789 2016-01-21  Marcin Kościelnicki  <koriakin@0x04.net>
1791         * config/s390/s390.md (pool_section_start): Use switch_to_section
1792         to select proper read-only data section instead of hardcoding
1793         .rodata.
1794         (pool_section_end): Use switch_to_section to match the above.
1796 2016-01-21  Richard Biener  <rguenther@suse.de>
1798         PR tree-optimization/69378
1799         * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
1800         (set_ssa_val_to): Use it for dominance checks taking into
1801         account not executable edges.
1803 2016-01-21  Jakub Jelinek  <jakub@redhat.com>
1805         PR c++/69355
1806         * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
1807         for bitsize instead of GET_MODE_PRECISION (mode).
1809 2016-01-20  Martin Sebor  <msebor@redhat.com>
1811         PR c/52291
1812         * extend.texi (__sync Builtins): Clarify the semantics of
1813         __sync_fetch_and_OP built-ins on pointers.
1814         (__atomic Builtins): Same.
1816 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
1817             Sebastian Pop  <s.pop@samsung.com>
1819         * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
1820         (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
1821         (is_valid_rename): Same.
1822         (translate_isl_ast_to_gimple::get_rename): Same.
1823         (translate_isl_ast_to_gimple::rename_all_uses): Same.
1824         (translate_isl_ast_to_gimple::rename_uses): Same.
1825         (get_new_name): Check for close_phi nodes.
1826         (copy_loop_phi_args): Use phi_node_kind.
1827         (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
1828         (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
1830 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
1831             Sebastian Pop  <s.pop@samsung.com>
1833         Revert commit r229783.
1834         * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
1835         Remove use of parameter_rename_map.
1836         (copy_def): Remove.
1837         (copy_internal_parameters): Remove.
1838         (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
1839         * sese.c (new_sese_info): Do not initialize parameter_rename_map.
1840         (free_sese_info): Do not free parameter_rename_map.
1841         (set_rename): Do not use parameter_rename_map.
1842         (rename_uses): Update call to set_rename.
1843         (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
1844         * sese.h (parameter_rename_map_t): Remove.
1845         (struct sese_info_t): Remove field parameter_rename_map.
1847 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
1848             Sebastian Pop  <s.pop@samsung.com>
1850         * graphite-isl-ast-to-gimple.c: Fix comment.
1851         * graphite-scop-detection.c (defined_in_loop_p): New.
1852         (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
1853         names defined in loop.
1855 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
1856             Sebastian Pop  <s.pop@samsung.com>
1858         * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
1859         Discard unstructured if-then-else regions.
1861 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
1862             Sebastian Pop  <s.pop@samsung.com>
1864         * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
1865         (cleanup_loop_iter_dom): Remove.
1866         (build_loop_iteration_domains): Remove.
1867         (build_scop_context): Remove.
1868         (build_scop_iteration_domain): Remove.
1869         (add_loop_constraints): New.
1870         (build_iteration_domains): New.
1871         (build_poly_scop): Call build_iteration_domains.
1873 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
1874             Sebastian Pop  <s.pop@samsung.com>
1876         * graphite-scop-detection.c
1877         (scop_detection::harmful_loop_in_region): Free dom and loops.
1878         (scop_detection::loop_body_is_valid_scop): Free bbs.
1880 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
1881             Sebastian Pop  <s.pop@samsung.com>
1883         * graphite-scop-detection.c (record_loop_in_sese): New.
1884         (gather_bbs::before_dom_children): Call record_loop_in_sese.
1885         (build_scops): Remove call to build_sese_loop_nests.
1886         * sese.c (sese_record_loop): Remove.
1887         (build_sese_loop_nests): Remove.
1888         (new_sese_info): Remove region->loops.
1889         (free_sese_info): Same.
1890         * sese.h (sese_contains_loop): Same.
1891         (build_sese_loop_nests): Remove.
1892         (sese_contains_loop): Remove.
1894 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
1895             Sebastian Pop  <s.pop@samsung.com>
1897         * graphite-scop-detection.c (loop_is_valid_scop): Renamed
1898         loop_is_valid_in_scop.
1899         (scop_detection::harmful_stmt_in_region): Renamed
1900         harmful_loop_in_region.
1901         Call loop_is_valid_in_scop.
1903 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
1904             Sebastian Pop  <s.pop@samsung.com>
1906         * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
1907         isl_ast_node_mark.
1909 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
1910             Sebastian Pop  <s.pop@samsung.com>
1912         * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
1913         * graphite.h (struct poly_bb): Remove field is_reduction.
1914         (PBB_IS_REDUCTION): Remove.
1916 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
1917             Sebastian Pop  <s.pop@samsung.com>
1919         * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
1920         (add_pdr_constraints): Same.
1921         (scop_get_reads): Same.
1922         (scop_get_must_writes): Same.
1923         (scop_get_may_writes): Same.
1924         (scop_get_original_schedule): Same.
1925         (extend_schedule): Same.
1926         (apply_schedule_on_deps): Same.
1927         (carries_deps): Same.
1928         (compute_deps): Same.
1929         (scop_get_dependences): Same.
1930         * graphite-isl-ast-to-gimple.c
1931         (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
1932         * graphite-optimize-isl.c (get_schedule_for_band): Same.
1933         (get_schedule_for_band_list): Same.
1934         (get_schedule_map): Same.
1935         (apply_schedule_map_to_scop): Same.
1936         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
1937         (build_loop_iteration_domains): Same.
1938         (add_condition_to_pbb): Same.
1939         (add_param_constraints): Same.
1940         (pdr_add_memory_accesses): Same.
1941         (pdr_add_data_dimensions): Same.
1943 2016-01-20  Sandra Loosemore <sandra@codesourcery.com>
1945         * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
1946         requirements.
1948 2016-01-20  Sandra Loosemore <sandra@codesourcery.com>
1950         * common.opt (feliminate-dwarf2-dups): Replace references to
1951         "DWARF 2" with just "DWARF".
1952         * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
1953         * doc/extend.texi: Likewise.
1954         * doc/cpp.texi: Likewise.
1955         * doc/invoke.texi: Likewise.
1956         (Option Summary): Add -gdwarf to list of Debugging Options.
1957         (Debugging Options): Document -gdwarf.
1958         * doc/contrib.texi: Spell "DWARF" like that.
1960 2016-01-21  Jakub Jelinek  <jakub@redhat.com>
1962         * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
1963         warning.  Fix up formatting.
1965         PR middle-end/67653
1966         * gimplify.c (gimplify_asm_expr): Warn if it is too late to
1967         attempt to mark memory input operand addressable and
1968         call prepare_gimple_addressable in that case.  Don't adjust
1969         input_location for diagnostics, use error_at instead.
1971 2016-01-20  Peter Bergner  <bergner@vnet.ibm.com>
1973         * config/rs6000/ppc-auxv.h: New file.
1974         * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
1975         (cpu_is): Likewise.
1976         (cpu_supports): Likewise.
1977         * config/rs6000/rs6000.c: include "ppc-auxv.h".
1978         (cpu_is_info): New variable.
1979         (cpu_supports_info): Likewise.
1980         (tcb_verification_symbol): Likewise.
1981         (cpu_builtin_p): Likewise.
1982         (cpu_expand_builtin): New function.
1983         (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
1984         (rs6000_init_builtins): Likewise.
1985         (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
1986         * config/rs6000/rs6000.h (TLS_REGNUM): New define.
1987         * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
1988         * configure: Regenerate.
1989         * config.in: Likewise.
1990         * doc/extend.texi (PowerPC Built-in Functions): Document
1991         __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
1993 2016-01-20  David Edelsohn  <dje.gcc@gmail.com>
1995         PR target/68609
1996         * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
1997         domain check.
1998         * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
1999         for V4SFmode.
2001 2016-01-20  Richard Henderson  <rth@redhat.com>
2003         PR bootstrap/69343
2004         PR bootstrap/69339
2005         PR tree-opt/68964
2006         Revert:
2007         * tree.c (tm_define_builtin): New.
2008         (find_tm_vector_type): New.
2009         (build_tm_vector_builtins): New.
2010         (build_common_builtin_nodes): Call it.
2012 2016-01-20  Christophe Lyon  <christophe.lyon@linaro.org>
2014         * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
2015         (arm_fp_ok): Likewise.
2016         (arm_fp): Likewise.
2017         (arm_crypto): Likewise.
2019 2016-01-20  Ilya Enkovich  <enkovich.gnu@gmail.com>
2020             Richard Biener  <rguenther@suse.de>
2022         PR tree-optimization/69328
2023         * tree-vect-stmts.c (vect_is_simple_cond): Check compared
2024         vectors have same number of elements.
2025         (vectorizable_condition): Fix masked version recognition.
2027 2016-01-20  Richard Biener  <rguenther@suse.de>
2029         PR tree-optimization/69345
2030         * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
2031         (VN_INFO_PTR_INFO): Likewise.
2032         * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
2033         info when it is equal between non-dominating SSA names.
2034         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
2035         Make sure to look at original SSA infos.
2037 2016-01-20  Jeff Law  <law@redhat.com>
2039         PR target/25114
2040         * config/m68k/predicates.md (pow2_m1_operand): New predicate
2041         extracted from ...
2042         (reg_or_pow2_m1_operand): Call pow2_m1_operand.
2043         (pc_or_label_operand): New predicate.
2044         * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
2045         tests for small integers that are 2^n - 1.
2047 2016-01-20  Jonathan Wakely  <jwakely@redhat.com>
2049         * doc/invoke.texi (Options Summary): Add '.' after @xref.
2051 2016-01-19  Jeff Law  <law@redhat.com>
2053         PR middle-end/69347
2054         * tree-ssa-threadbackwards.c
2055         (fsm_find_control_statement_thread_paths): Do not try to lookup
2056         FSM paths for SSA_NAMEs appearing in abnormal PHIs.
2058 2016-01-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
2060         * doc/lto.texi: Remove text that says only Gold has linker plugin
2061         support.
2063 2016-01-19  Eric Botcazou  <ebotcazou@adacore.com>
2065         * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
2066         (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
2067         the DIE accordingly.
2068         (modified_type_die): Add REVERSE parameter and pass it recursively,
2069         as well as to base_type_die.  Adjust presence check accordingly.
2070         (base_type_for_mode): Adjust call to modified_type_die.
2071         (add_type_attribute): Add REVERSE parameter and pass it to
2072         modified_type_die.
2073         (generic_parameter_die): Adjust call to add_type_attribute.
2074         (add_scalar_info): Likewise.
2075         (add_subscript_info): Likewise.
2076         (gen_array_type_die): Likewise.
2077         (gen_descr_array_type_die): Likewise.
2078         (gen_entry_point_die): Likewise.
2079         (gen_enumeration_type_die): Likewise.
2080         (gen_formal_parameter_die): Likewise.
2081         (gen_subprogram_die): Likewise.
2082         (gen_variable_die ): Likewise.
2083         (gen_const_die): Likewise.
2084         (gen_field_die): Likewise.
2085         (gen_pointer_type_die): Likewise.
2086         (gen_reference_type_die): Likewise.
2087         (gen_ptr_to_mbr_type_die): Likewise.
2088         (gen_inheritance_die): Likewise.
2089         (gen_subroutine_type_die): Likewise.
2090         (gen_typedef_die): Likewise.
2091         (force_type_die): Adjust call to modified_type_die.
2093 2016-01-19  Sandra Loosemore <sandra@codesourcery.com>
2095         * doc/standards.texi: Copy-editing for grammar, markup, and sentence
2096         flow throughout the file.  Fix broken link to Objective-C 2.0
2097         documentation.
2098         * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
2099         errors.
2101 2016-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
2103         * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
2105 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
2107         PR ipa/66223
2108         * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
2109         (maybe_record_node): Record cxa_pure_virtual as the only possible
2110         target if there are not ohter candidates.
2111         (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
2113 2016-01-19  Richard Biener  <rguenther@suse.de>
2115         * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
2116         (get_memory_order): Likewise.
2118 2016-01-19  Kirill Yukhin  <kirill.yukhin@intel.com>
2120         * tree-vect-stmts.c (vectorizable_store): Check
2121         rhs vectype.
2123 2016-01-19  David Malcolm  <dmalcolm@redhat.com>
2125         PR jit/68446
2126         * gcc.c (driver::decode_argv): Add call to
2127         init_opts_obstack before init_options_struct.
2128         * opts.c (init_opts_obstack): Remove idempotency.
2129         (init_options_struct): Replace call to init_opts_obstack
2130         with a gcc_assert to verify that it has already been called.
2131         * toplev.c (toplev::main): Add call to init_opts_obstack before
2132         calls to init_options_struct.
2133         (toplev::finalize): Move cleanup of opts_obstack next to
2134         cleanup of save_decoded_options, clearing the latter, and
2135         save_decoded_options_count.
2137 2016-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2139         PR target/69135
2140         * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
2141         attribute to unconditional.  Remove %? from output template.
2143 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
2144             Jiong Wang  <jiong.wang@arm.com>
2146         * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
2147         generated from different expand order.
2149 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
2151         * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
2152         Add support for CCMP costing.
2154 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
2156         * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
2157         * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
2158         (fccmpe<mode>): Likewise.
2159         (fcmp): Rename to fcmp and globalize pattern.
2160         (fcmpe): Likewise.
2161         * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
2162         (aarch64_gen_ccmp_next): Add FP support.
2164 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
2166         * target.def (gen_ccmp_first): Update documentation.
2167         (gen_ccmp_next): Likewise.
2168         * doc/tm.texi (gen_ccmp_first): Update documentation.
2169         (gen_ccmp_next): Likewise.
2170         * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
2171         expand_ccmp_expr_1.  Improve comments.
2172         * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
2173         (ccmp_ior<mode>): Remove pattern.
2174         (cmp<mode>): Remove expand.
2175         (cmp): Globalize pattern.
2176         (cstorecc4): Use cc_register.
2177         (mov<mode>cc): Remove ccmp_cc_register check.
2178         * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
2179         Simplify after removal of CC_DNE/* modes.
2180         (aarch64_ccmp_mode_to_code): Remove.
2181         (aarch64_print_operand): Remove 'K' case.  Merge 'm' and 'M' cases.
2182         In 'k' case use integer as condition.
2183         (aarch64_nzcv_codes): Remove inverted cases.
2184         (aarch64_code_to_ccmode): Remove.
2185         (aarch64_gen_ccmp_first): Use cmp pattern directly.  Return the correct
2186         comparison with CC register to be used in folowing CCMP/branch/CSEL.
2187         (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
2188         pattern.  Return the comparison with CC register.  Invert conditions
2189         when bitcode is OR.
2190         * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
2191         * config/aarch64/predicates.md (ccmp_cc_register): Remove.
2193 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
2195         * cgraphunit.c (cgraph_node::reset): Clear thunk info and
2196         instrumented_version.
2198 2016-01-19  Richard Biener  <rguenther@suse.de>
2200         PR tree-optimization/69336
2201         * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
2202         handled components with get_ref_base_and_extent.
2203         (equal_mem_array_ref_p): Adjust.
2205 2016-01-19  Jakub Jelinek  <jakub@redhat.com>
2207         PR debug/65779
2208         * shrink-wrap.c: Include valtrack.h.
2209         (move_insn_for_shrink_wrap): Add DEBUG argument.  If
2210         MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
2211         in between insn and where it will be moved to.  Call
2212         dead_debug_insert_temp.
2213         (prepare_shrink_wrap): Adjust caller.  Call dead_debug_local_init
2214         first and dead_debug_local_finish at the end.
2215         For uses and defs bitmap, handle all regs in between REGNO and
2216         END_REGNO, not just the first one.
2218 2016-01-19  Richard Biener  <rguenther@suse.de>
2220         PR tree-optimization/69352
2221         * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
2222         (equal_mem_array_ref_p): Constrain size and max size properly.
2223         Compare the reverse flag.
2225 2016-01-19  Bernd Schmidt  <bschmidt@redhat.com>
2227         * ira.c (ira): Update regstat data if we deleted insns.
2229 2016-01-19  Jakub Jelinek  <jakub@redhat.com>
2231         PR rtl-optimization/68955
2232         PR rtl-optimization/64557
2233         * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
2234         here.  Fix up formatting.
2235         * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
2237 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
2239         PR lto/69133
2240         * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
2241         assume that the node has body.
2242         * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
2243         check.
2245 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
2247         * lto-streamer-out.c (lto_output): Do not stream instrumentation
2248         thunks.
2250 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
2252         * symtab.c (symtab_node::asm_name): Do not call printable name directly.
2253         (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
2255 2016-01-19  Martin Jambor  <mjambor@suse.cz>
2256             Martin Liska  <mliska@suse.cz>
2257             Michael Matz <matz@suse.de>
2259         * Makefile.in (OBJS): Add new source files.
2260         (GTFILES): Add hsa.c.
2261         * common.opt (disable_hsa): New variable.
2262         (-Whsa): New warning.
2263         * config.in (ENABLE_HSA): New.
2264         * configure.ac: Treat hsa differently from other accelerators.
2265         (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
2266         $enable_offloading.
2267         (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
2268         * doc/install.texi (Configuration): Document --with-hsa-runtime,
2269         --with-hsa-runtime-include, --with-hsa-runtime-lib and
2270         --with-hsa-kmt-lib.
2271         * doc/invoke.texi (-Whsa): Document.
2272         (hsa-gen-debug-stores): Likewise.
2273         * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
2274         to invoke offload compiler for hsa acclerator.
2275         * opts.c (common_handle_option): Determine whether HSA offloading
2276         should be performed.
2277         * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
2278         * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
2279         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
2280         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
2281         * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
2282         * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
2283         GF_OMP_FOR_KIND_GRID_LOOP.
2284         (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
2285         (pp_gimple_stmt_1): Likewise.
2286         * gimple-walk.c (walk_gimple_stmt): Likewise.
2287         * gimple.c (gimple_build_omp_grid_body): New function.
2288         (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
2289         * gimple.def (GIMPLE_OMP_GRID_BODY): New.
2290         * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
2291         GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
2292         GF_OMP_TEAMS_GRID_PHONY.
2293         (gimple_statement_omp_single_layout): Updated comments.
2294         (gimple_build_omp_grid_body): New function.
2295         (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
2296         (gimple_omp_for_grid_phony): New function.
2297         (gimple_omp_for_set_grid_phony): Likewise.
2298         (gimple_omp_parallel_grid_phony): Likewise.
2299         (gimple_omp_parallel_set_grid_phony): Likewise.
2300         (gimple_omp_teams_grid_phony): Likewise.
2301         (gimple_omp_teams_set_grid_phony): Likewise.
2302         (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
2303         * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
2304         (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
2305         (BUILT_IN_GOMP_TARGET): Updated type.
2306         * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
2307         (adjust_for_condition): New function.
2308         (get_omp_for_step_from_incr): Likewise.
2309         (extract_omp_for_data): Moved parts to adjust_for_condition and
2310         get_omp_for_step_from_incr.
2311         (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
2312         (fixup_child_record_type): Bail out if receiver_decl is NULL.
2313         (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
2314         (scan_omp_parallel): Do not create child functions for phony
2315         constructs.
2316         (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
2317         (scan_omp_1_op): Checking assert we are not remapping to
2318         ERROR_MARK.  Also also handle GIMPLE_OMP_GRID_BODY.
2319         (parallel_needs_hsa_kernel_p): New function.
2320         (expand_parallel_call): Register apprpriate parallel child
2321         functions as HSA kernels.
2322         (grid_launch_attributes_trees): New type.
2323         (grid_attr_trees): New variable.
2324         (grid_create_kernel_launch_attr_types): New function.
2325         (grid_insert_store_range_dim): Likewise.
2326         (grid_get_kernel_launch_attributes): Likewise.
2327         (get_target_argument_identifier_1): Likewise.
2328         (get_target_argument_identifier): Likewise.
2329         (get_target_argument_value): Likewise.
2330         (push_target_argument_according_to_value): Likewise.
2331         (get_target_arguments): Likewise.
2332         (expand_omp_target): Call get_target_arguments instead of looking
2333         up for teams and thread limit.
2334         (grid_expand_omp_for_loop): New function.
2335         (grid_arg_decl_map): New type.
2336         (grid_remap_kernel_arg_accesses): New function.
2337         (grid_expand_target_kernel_body): New function.
2338         (expand_omp): Call it.
2339         (lower_omp_for): Do not emit phony constructs.
2340         (lower_omp_taskreg): Do not emit phony constructs but create for them
2341         a temporary variable receiver_decl.
2342         (lower_omp_taskreg): Do not emit phony constructs.
2343         (lower_omp_teams): Likewise.
2344         (lower_omp_grid_body): New function.
2345         (lower_omp_1): Call it.
2346         (grid_reg_assignment_to_local_var_p): New function.
2347         (grid_seq_only_contains_local_assignments): Likewise.
2348         (grid_find_single_omp_among_assignments_1): Likewise.
2349         (grid_find_single_omp_among_assignments): Likewise.
2350         (grid_find_ungridifiable_statement): Likewise.
2351         (grid_target_follows_gridifiable_pattern): Likewise.
2352         (grid_remap_prebody_decls): Likewise.
2353         (grid_copy_leading_local_assignments): Likewise.
2354         (grid_process_kernel_body_copy): Likewise.
2355         (grid_attempt_target_gridification): Likewise.
2356         (grid_gridify_all_targets_stmt): Likewise.
2357         (grid_gridify_all_targets): Likewise.
2358         (execute_lower_omp): Call grid_gridify_all_targets.
2359         (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
2360         * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
2361         (tree_omp_clause): Added union field dimension.
2362         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
2363         * tree.c (omp_clause_num_ops): Added number of arguments of
2364         OMP_CLAUSE__GRIDDIM_.
2365         (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
2366         (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
2367         * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
2368         (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
2369         (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
2370         (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
2371         * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
2372         * tree-pass.h (make_pass_gen_hsail): Declare.
2373         (make_pass_ipa_hsa): Likewise.
2374         * ipa-hsa.c: New file.
2375         * lto-section-in.c (lto_section_name): Add hsa section name.
2376         * lto-streamer.h (lto_section_type): Add hsa section.
2377         * timevar.def (TV_IPA_HSA): New.
2378         * hsa-brig-format.h: New file.
2379         * hsa-brig.c: New file.
2380         * hsa-dump.c: Likewise.
2381         * hsa-gen.c: Likewise.
2382         * hsa.c: Likewise.
2383         * hsa.h: Likewise.
2384         * toplev.c (compile_file): Call hsa_output_brig.
2385         * hsa-regalloc.c: New file.
2387 2016-01-18  Jeff Law  <law@redhat.com>
2389         PR tree-optimization/69320
2390         * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
2391         ranged object, do nothing if the RHS constant is not [0..1].
2392         (optimize_stmt): Comparing a boolean ranged object against a
2393         constant outside [0..1] results in a compile-time constant.
2395         * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
2396         test.
2398 2016-01-18  Sandra Loosemore <sandra@codesourcery.com>
2400         * doc/invoke.texi (Invoking GCC): Add new section to menu.
2401         (Option Summary): Update to reflect new section and moved options.
2402         (C++ Dialect Options): Move -fstats to new section.
2403         (Debugging Options): Move all dump, statistics, and other GCC
2404         developer options to new section.  Rewrite section introduction
2405         and re-order remaining options to put the more basic ones first.
2406         (Optimization Options): Move -fira-verbose and -flto-report* to
2407         new section.
2408         (Developer Options): New section incorporating moved options.
2409         * doc/cppopts.texi (-dM): Update cross-reference.
2411 2016-01-18  Richard Henderson  <rth@redhat.com>
2413         PR target/69176
2414         * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
2415         operands to pseudo only if CSE is expected.  Split long immediate
2416         operands only after reload, and for the stack pointer.
2417         (*add<GPI>3_pluslong): Remove.
2418         (*addsi3_aarch64, *adddi3_aarch64): Merge into...
2419         (*add<GPI>3_aarch64): ... here.  Add r/rk/Upl alternative.
2420         (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
2421         (*add<GPI>3 peepholes): New.
2422         (*add<GPI>3 splitters): New.
2423         * config/aarch64/constraints.md (Upl): New.
2424         * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
2426 2016-01-18  Richard Biener  <rguenther@suse.de>
2428         PR tree-optimization/69297
2429         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
2430         stmt at most once.
2431         (vect_bb_vectorization_profitable_p): Clear visited flag again.
2433 2016-01-18  Yuri Rumyantsev  <ysrumyan@gmail.com>
2435         PR middle-end/68542
2436         * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
2437         of mixind vector and scalar types.
2438         (fold_relational_const): Add handling of vector
2439         comparison with boolean result.
2440         * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
2441         comparison of vector operands with boolean result for EQ/NE only.
2442         (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
2443         (verify_gimple_cond): Likewise.
2444         * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
2445         valid type of VAL.
2447 2016-01-18  Joseph Myers  <joseph@codesourcery.com>
2449         * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
2450         !TARGET_OCTEON.
2452 2016-01-18  Richard Biener  <rguenther@suse.de>
2454         PR middle-end/69308
2455         * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
2457 2016-01-18  Tom de Vries  <tom@codesourcery.com>
2459         * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
2461 2016-01-18  Tom de Vries  <tom@codesourcery.com>
2463         * omp-low.c (set_oacc_fn_attrib): Make extern.
2464         * omp-low.h (set_oacc_fn_attrib): Declare.
2465         * tree-parloops.c (struct reduction_info): Add reduc_addr field.
2466         (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
2467         (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
2468         Add and handle function parameter oacc_kernels_p.
2469         (find_reduc_addr, get_omp_data_i_param): New function.
2470         (ref_conflicts_with_region, oacc_entry_exit_ok_1)
2471         (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
2472         (parallelize_loops): Add and handle function parameter oacc_kernels_p.
2473         Calculate dominance info.  Skip loops that are not in a kernels region
2474         in oacc_kernels_p mode.  Skip inner loops of parallelized loops.
2475         (pass_parallelize_loops::execute): Call parallelize_loops with
2476         oacc_kernels_p argument.
2477         (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
2478         New member function.
2479         (pass_parallelize_loops::bool oacc_kernels_p): New member var.
2480         * passes.def: Add argument to pass_parallelize_loops instantation.
2482 2016-01-18  Tom de Vries  <tom@codesourcery.com>
2484         * tree-parloops.c (pass_parallelize_loops::execute): Allow
2485         pass_parallelize_loops to be run outside the loop pipeline.
2487 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
2489         * tree-scalar-evolution.c (follow_copies_to_constant): New.
2490         (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
2492 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
2494         PR target/63679
2495         * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
2496         using get_ref_base_and_extent.
2497         (equal_mem_array_ref_p): New.
2498         (hashable_expr_equal_p): Add call to previous.
2500 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
2502         PR target/63679
2503         * tree-sra.c (disqualified_constants, constant_decl_p): New.
2504         (sra_initialize): Allocate disqualified_constants.
2505         (sra_deinitialize): Free disqualified_constants.
2506         (disqualify_candidate): Update disqualified_constants when appropriate.
2507         (create_access): Scan for constant-pool entries as we go along.
2508         (scalarizable_type_p): Add check against type_contains_placeholder_p.
2509         (maybe_add_sra_candidate): Allow constant-pool entries.
2510         (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
2511         (initialize_constant_pool_replacements): New.
2512         (sra_modify_assign): Avoid mangling assignments created by previous,
2513         and don't generate writes into constant pool.
2514         (sra_modify_function_body): Call initialize_constant_pool_replacements.
2516 2016-01-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
2518         * config/i386/i386.c (scalar_to_vector_candidate_p): Support
2519         andnot instruction.
2520         (scalar_chain::convert_op): Likewise.
2521         * config/i386/i386.md (*andndi3_doubleword): New.
2523 2016-01-18  Richard Biener  <rguenther@suse.de>
2525         PR tree-optimization/69170
2526         * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
2527         building a vector from scalar results of a pattern stmt.
2529 2016-01-18  Jakub Jelinek  <jakub@redhat.com>
2531         * haifa-sched.c (autopref_multipass_init): Work around
2532         -Wmaybe-uninitialized warning.
2534 2016-01-18  Thomas Preud'homme  <thomas.preudhomme@arm.com>
2536         * config/arm/arm.c (thumb1_reorg): Check that the comparison is
2537         against the constant 0.
2539 2016-01-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2541         PR tree-optimization/68799
2542         * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
2543         look up phi candidates in the statement-candidate map.
2544         (phi_add_costs): Likewise.
2545         (record_phi_increments): Likewise.
2546         (phi_incr_cost): Likewise.
2547         (ncd_with_phi): Likewise.
2548         (all_phi_incrs_profitable): Likewise.
2550 2016-01-17  Jakub Jelinek  <jakub@redhat.com>
2552         * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
2553         -Wmaybe-uninitialized warning.
2555 2016-01-16  Sandra Loosemore  <sandra@codesourcery.com>
2557         * doc/invoke.texi (Invoking GCC): Add new section to menu.
2558         (Option Summary): Update to reflect new section and moved options.
2559         (C++ Dialect Options): Move -fvtable-verify and related options.
2560         (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
2561         and profiling-related options.
2562         (Optimization Options): Move profile generation options and
2563         -fstack-protector and related options.
2564         (Instrumentation Options): New section incorporating moved options.
2565         (Code Generation Options): Move -finstrument-functions and
2566         related options, -fstack-check, -fstack-limit*, and -fbounds-check.
2568 2016-01-16  Tom de Vries  <tom@codesourcery.com>
2570         * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
2572 2016-01-16  Tom de Vries  <tom@codesourcery.com>
2574         * omp-low.c (expand_omp_atomic_fetch_op):  Release defs of update stmt.
2576 2016-01-16  Richard Sandiford  <richard.sandiford@arm.com>
2578         * hash-table.h (hash_table::empty): Turn into an inline wrapper
2579         that checks whether the table is already empty.  Rename the
2580         original implementation to...
2581         (hash_table::empty_slot): ...this new private function.
2583 2016-01-15  David Malcolm  <dmalcolm@redhat.com>
2585         PR diagnostic/68899
2586         * diagnostic-show-locus.c (layout::print_source_line): Move x
2587         offset of line until after call to
2588         get_line_width_without_trailing_whitespace.
2590 2016-01-15  Jeff Law  <law@redhat.com>
2592         PR tree-optimization/69270
2593         * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
2594         tree-ssa-dom.c.  Improve test for [0..1] ranve from VRP.
2595         * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
2596         * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
2597         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
2598         ssa_name_has_boolean_range and constant_boolean_node.
2600 2016-01-15  Vladimir Makarov  <vmakarov@redhat.com>
2602         PR rtl-optimization/69030
2603         * lra-spills.c (remove_pseudos): Check nrefs and make the function
2604         returning bool.
2605         (spill_pseudos): Delete debug insn for dead pseudo.
2606         (lra_spill): Initiate spill_hard_reg and slots memory separately.
2608 2016-01-15  Jiong Wang  <jiong.wang@arm.com>
2610         * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
2611         New.
2612         (TYPES_UNOPUS): Likewise.
2613         * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
2614         builtin type, from UNOP to UNOPUS.
2615         (lbtruncuv4sf): Likewise.
2616         (lbtruncuv2df): Likewise.
2617         (lrounduv2sf): Likewise.
2618         (lrounduv4sf): Likewise.
2619         (lrounduv2df): Likewise.
2620         (lroundusf): Likewise.
2621         (lroundusf): Likewise.
2622         (lceiluv2sf): Likewise.
2623         (lceiluv4sf): Likewise.
2624         (lceiluv2df): Likewise.
2625         (lceilusf): Likewise.
2626         (lceiludf): Likewise.
2627         (lflooruv2sf): Likewise.
2628         (lflooruv4sf): Likewise.
2629         (lflooruv2df): Likewise.
2630         (lfloorusf): Likewise.
2631         (lfloorudf): Likewise.
2632         (lfrintnuv2sf): Likewise.
2633         (lfrintnuv4sf): Likewise.
2634         (lfrintnuv2df): Likewise.
2635         (lfrintnusf): Likewise.
2636         (lfrintnudf): Likewise.
2637         * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
2638         conversion.
2639         (vcvtq_u32_f32): Likewise.
2640         (vcvtq_u64_f64): Likewise.
2641         (vcvta_u32_f32): Likewise.
2642         (vcvtaq_u32_f32): Likewise.
2643         (vcvtaq_u64_f64): Likewise.
2644         (vcvtm_u32_f32): Likewise.
2645         (vcvtmq_u32_f32): Likewise.
2646         (vcvtmq_u64_f64): Likewise.
2647         (vcvtn_u32_f32): Likwise.
2648         (vcvtnq_u32_f32): Likewise.
2649         (vcvtnq_u64_f64): Likewise.
2650         (vcvtp_u32_f32): Likewise.
2651         (vcvtpq_u32_f32): Likewise.
2652         (vcvtpq_u64_f64): Likewise.
2653         (vcvtmd_u64_f64): Likewise.
2654         (vcvtms_u32_f32): Likewise.
2655         (vcvtad_u64_f64): Likewise.
2656         (vcvtas_u32_f32): Likewise.
2657         (vcvtnd_u64_f64): Likewise.
2658         (vcvtns_u32_f32): Likewise.
2659         (vcvtpd_u64_f64): Likewise.
2660         (vcvtps_u32_f32): Likewise.
2662 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2664         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
2665         CSEL of zero_extended registers.
2667 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2669         * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
2670         Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
2672 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2674         * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
2675         false when argument string is not found in the attributes table
2676         at all.
2678 2016-01-15  David Edelsohn  <dje.gcc@gmail.com>
2680         PR target/68609
2681         * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
2682         (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
2683         * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
2684         precision estimate.
2686 2016-01-15  Richard Biener  <rguenther@suse.de>
2688         PR tree-optimization/66856
2689         * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
2690         * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
2691         (vect_create_new_slp_node): Increment stmt reference count.
2692         (vect_get_and_check_slp_defs): Make sure stmts are nor already in
2693         an SLP tree before swapping operands.
2694         (vect_build_slp_tree): Likewise.
2695         (destroy_bb_vec_info): Free stmt info after SLP instances.
2696         * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
2697         * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
2698         (STMT_VINFO_NUM_SLP_USES): New macro.
2700 2016-01-15  Richard Biener  <rguenther@suse.de>
2702         PR debug/69137
2703         * dwarf2out.c (add_linkage_name_raw): New function split out from ...
2704         (add_linkage_name): ... here.
2705         (gen_typedef_die): Use add_linkage_name_raw instead of
2706         add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
2707         if necessary.
2709 2016-01-15  Cesar Philippidis  <cesar@codesourcery.com>
2711         * gimplify.c (oacc_default_clause): Decode reference and pointer
2712         types for both kernels and parallel regions.
2714 2016-01-15  Richard Sandiford  <richard.sandiford@arm.com>
2716         PR middle-end/69246
2717         * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
2719 2016-01-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
2721         * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
2722         (convert_scalars_to_vector): Likewise.
2724 2016-01-15  Jonathan Wakely  <jwakely@redhat.com>
2726         * doc/extend.texi (Type Traits): Fix grammar.
2728 2016-01-15  Martin Jambor  <mjambor@suse.cz>
2730         * tree-inline.c (remap_decl): Use existing dclarations if
2731         remapping a type and prevent_decl_creation_for_types.
2732         (replace_locals_stmt): Do an initial remapping of non-VLA typed
2733         decls first.  Do real remapping with
2734         prevent_decl_creation_for_types set.
2735         * tree-inline.h (copy_body_data): New field
2736         prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
2737         padding.
2739 2016-01-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>
2741         * config/s390/s390.opt (mmvcle): More verbose help text.
2743 2016-01-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>
2745         * config/s390/s390.opt: Add period to -mzvector option text.
2747 2016-01-15  Richard Biener  <rguenther@suse.de>
2749         PR tree-optimization/68961
2750         * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
2751         of invariants in stores again.
2753 2016-01-15  Sebastian Huber  <sebastian.huber@embedded-brains.de>
2755         * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
2757 2016-01-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
2759         * config/i386/i386.c (ix86_expand_branch): Don't split
2760         DI mode xor instruction to SI mode.
2762 2016-01-15  Jan Hubicka  <hubicka@ucw.cz>
2764         PR ipa/68148
2765         * ipa-icf.c (sem_function::merge): Virtual functions may become
2766         reachable even if they address is not taken and there are no
2767         idrect calls.
2769 2016-01-15  Jan Hubicka  <hubicka@ucw.cz>
2771         * lto-streamer-out.c (subtract_estimated_size): New function.
2772         (get_symbol_initial_value): Use it.
2774 2016-01-15  Christian Bruel  <christian.bruel@st.com>
2776         PR target/65837
2777         * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
2778         (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
2779         (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
2780         use add_builtin_function_ext_scope instead of add_builtin_function.
2781         (neon_set_p, neon_crypto_set_p): Remove.
2782         (arm_init_builtins): Always call arm_init_neon_builtins and
2783         arm_init_crypto_builtins.
2784         (arm_expand_builtin): Check that builtins are allowed for the arch.
2785         * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
2786         * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
2787         arm_init_neon_builtins call.
2789 2016-01-15  Richard Biener  <rguenther@suse.de>
2791         PR tree-optimization/69117
2792         * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
2793         * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
2794         of the leader conservatively.
2795         (free_scc_vn): Restore original SSA name infos.
2797 2016-01-14  Jeff Law  <law@redhat.com>
2799         PR tree-optimization/69270
2800         * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
2801         single bit of precision, verify it's also unsigned.
2802         (record_edge_info): Use constant_boolean_node rather than fold_convert
2803         to convert boolean_true/boolean_false to the right type.
2805 2016-01-14  Richard Henderson  <rth@redhat.com>
2807         PR rtl-opt/69014
2808         * loop-doloop.c (record_reg_sets): New.
2809         (doloop_optimize): Reject the transform if the sequence
2810         clobbers registers live at the end of the loop block.
2811         (doloop_optimize_loops): Enable df_live if needed.
2813 2016-01-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
2815         * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
2816         * gcc/config/rs6000/rs6000.c: Likewise.
2817         * gcc/config/rs6000/rs6000.h: Likewise.
2818         * gcc/config/rs6000/rs6000.md: Likewise.
2819         * gcc/doc/extend.texi: Likewsie.
2821 2016-01-14  Jeff Law  <law@redhat.com>
2823         * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
2824         typo.
2826 2016-01-14  Richard Henderson  <rth@redhat.com>
2828         PR c/69272
2829         PR tree-opt/68964
2830         * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
2831         * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
2832         instead of builtin_decl_declared_p to test for declaration.
2834 2016-01-14  Nicklas Bo Jensen  <nbjensen@gmail.com>
2836         * doc/loop.texi (Loop Analysis and Representation): Document
2837         loop_depth function.
2839 2016-01-14  Tom de Vries  <tom@codesourcery.com>
2841         PR tree-optimization/68773
2842         * omp-low.c (expand_omp_target): Don't set force_output.
2843         * varpool.c (varpool_node::get_create): Same.
2844         * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
2845         offload_funcs with force_output.
2847 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
2849         PR debug/69244
2850         * lra-eliminations.c (move_plus_up): Don't change anything if either
2851         the outer or inner subreg mode is not MODE_INT.
2852         * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
2853         integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
2855 2016-01-14  Alan Lawrence  <alan.lawrence@arm.com>
2857         * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
2858         reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
2859         reduc_uplus_@var{m}): Remove.
2860         * expr.c (expand_expr_real_2): Remove expansion path for
2861         reduc_[us](min|max|plus) optabs.
2862         * optabs-tree.c (scalar_reduc_to_vector): Remove.
2863         * optabs-tree.h (scalar_reduc_to_vector): Remove.
2864         * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
2865         reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
2866         * tree-vect-loop.c (vectorizable_reduction): Remove test for
2867         reduc_[us](min|max|plus) optabs.
2869 2016-01-14  Alan Lawrence  <alan.lawrence@arm.com>
2871         * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
2872         (reduc_plus_scal_v2sf): New.
2873         (reduc_smax_v2sf): Rename to...
2874         (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
2875         (reduc_smin_v2sf): Rename to...
2876         (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
2878 2016-01-14  Jan Hubicka  <hubicka@ucw.cz>
2880         * alias.c (compare_base_symbol_refs): New function.
2881         (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
2882         it.
2884 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
2886         PR middle-end/68146
2887         PR tree-optimization/69155
2888         * tree-complex.c: Include cfganal.h.
2889         (phis_to_revisit): New variable.
2890         (extract_component): Add phiarg_p argument.  Assert that returned
2891         SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
2892         (update_phi_components): Partly rewrite to use loop over real/imag
2893         components instead of code duplication.  If extract_component returns
2894         SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
2895         create_tmp_reg into the PHI node instead, and mention the phi triplet
2896         in phis_to_revisit.
2897         (tree_lower_complex): Walk bbs in rpo order.  Adjust phis recorded
2898         in phis_to_revisit at the end.
2900 2016-01-14  Richard Biener  <rguenther@suse.de>
2902         PR tree-optimization/68060
2903         * tree-vect-loop.c (vect_is_simple_reduction): Check the
2904         outer loop reduction is only used in the inner loop before
2905         detecting a double reduction.
2907 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
2909         PR target/68269
2910         * combine.c (expand_field_assignment): Punt if compute_mode is
2911         unsupported scalar mode.
2913 2016-01-14  Richard Biener  <rguenther@suse.de>
2915         PR tree-optimization/66856
2916         * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
2917         SLP node only if it built successfully.
2918         (vect_analyze_slp_instance): Adjust.
2920 2016-01-14  Jeff Law  <law@redhat.com>
2922         PR tree-optimization/69270
2923         * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
2924         (record_edge_info): Use it.  Convert boolean_{true,false}_node
2925         to the type of op0.
2927 2016-01-13  Jan Hubicka  <hubicka@ucw.cz>
2929         PR ipa/66487
2930         * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
2931         use block_ultimate_origin
2932         (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
2934 2016-01-13  Sandra Loosemore <sandra@codesourcery.com>
2936         * doc/invoke.texi (Submodel Options): Rename section to
2937         "Machine-Dependent Options" to better reflect its content.
2938         Rewrite introductory text to remove archaic CPU names.
2939         Update references.
2941 2016-01-13  Sandra Loosemore <sandra@codesourcery.com>
2943         * doc/invoke.texi (Code Gen Options): Move section up in file,
2944         before target-specific options.  Update menu and option summary
2945         to reflect the new section ordering.
2947 2016-01-13  Jonathan Wakely  <jwakely@redhat.com>
2949         * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
2950         (C++ Dialect Options): Add cross-reference to -std option.
2951         * doc/standards.texi (C++ Language): Document C++14 support.
2953 2016-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
2955         * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
2956         for pack/unpack functions for __ibm128.
2957         (PACK_IF): Likewise.
2958         (UNPACK_IF): Likewise.
2960         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
2961         support for __ibm128 pack/unpack functions.
2962         (rs6000_invalid_builtin): Likewise.
2963         (rs6000_init_builtins): Likewise.
2964         (rs6000_opt_masks): Likewise.
2966         * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
2967         (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
2968         functions
2969         (RS6000_BTM_COMMON): Likewise.
2971         * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
2972         (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
2973         disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
2974         128-bit floating point.  Add support for the double values to be
2975         in Altivec registers for TF/IF packing and unpacking, but restrict
2976         TD packing sub-fields to be FPR registers.  Don't allow overlapped
2977         register support for packing.  Allow pack inputs to be memory
2978         locations.  Don't build generator functions for unpack<mode>_dm
2979         and unpack<mode>_nodm.
2980         (unpack<mode>_dm): Likewise.
2981         (unpack<mode>_nodm): Likewise.
2982         (pack<mode>): Likewise.
2984         * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
2985         built-in functions to pack/unpack explicit __ibm128 values.
2986         (__builtin_unpack_ibm128): Likewise.
2988         * doc/extend.texi (PowerPC Built-in Functions): Document
2989         __builtin_pack_ibm128 and __builtin_unpack_ibm128.
2991 2016-01-13  Bernd Schmidt  <bschmidt@redhat.com>
2993         PR c/66208
2994         * c-common.c (check_function_nonnull): Remove unnecessary declaration.
2995         Add new arg loc and pass it down as context.
2996         (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
2997         to the location to use for the warning.
2998         (check_function_arguments): New arg loc.  All callers changed.  Pass
2999         it to check_function_nonnull.
3000         * c-common.h (check_function_arguments): Adjust declaration.
3002 2016-01-13  Jakub Jelinek  <jakub@redhat.com>
3004         PR tree-optimization/69156
3005         * gimple.c (validate_type): Removed.
3006         (gimple_builtin_call_types_compatible_p): Use
3007         useless_type_conversion_p instead of validate_type.
3008         * value-prof.c (gimple_stringop_fixed_value): Fold
3009         icall_size to correct type.
3011 2016-01-13  Jonathan Wakely  <jwakely@redhat.com>
3013         * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
3014         effects.
3016 2016-01-13  Richard Henderson  <rth@redhat.com>
3018         PR tree-opt/68964
3019         * target.def (builtin_tm_load, builtin_tm_store): Remove.
3020         * config/i386/i386.c (ix86_builtin_tm_load): Remove.
3021         (ix86_builtin_tm_store): Remove.
3022         (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
3023         (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
3024         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
3025         (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
3026         * doc/tm.texi: Rebuild.
3028         * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
3029         (BUILT_IN_TM_MEMCPY_RTWN): New.
3030         * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
3031         fallback from vector to integer helpers.
3032         (build_tm_load): Handle vector types directly, instead of
3033         via target hook.
3034         (build_tm_store): Likewise.
3035         (expand_assign_tm): Prepare for register types not handled by
3036         the above.  Copy them to memory and use memcpy.
3037         * tree.c (tm_define_builtin): New.
3038         (find_tm_vector_type): New.
3039         (build_tm_vector_builtins): New.
3040         (build_common_builtin_nodes): Call it.
3042 2016-01-13  Uros Bizjak  <ubizjak@gmail.com>
3044         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
3045         TARGET_SSE_MATH without TARGET_SSE2.  Rewrite.
3047 2016-01-13  Tom de Vries  <tom@codesourcery.com>
3049         PR tree-optimization/69169
3050         * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
3051         handled_struct_type param.
3052         (create_variable_info_for, intra_create_variable_infos): Call
3053         create_variable_info_for_1 with extra arg.
3055 2016-01-13  Yvan Roux  <yvan.roux@linaro.org>
3057         * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
3058         and "armv8.1-a+crc" entries.
3060 2016-01-13  Alexander Fomin  <alexander.fomin@intel.com>
3062         PR target/69228
3063         * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
3064         Change first operand predicate from register_or_constm1_operand
3065         to register_operand.
3066         (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
3067         (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
3068         (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
3069         (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
3070         (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
3071         (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
3072         (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
3073         * config/i386/i386.c (ix86_expand_builtin): Remove first operand
3074         comparison with constm1_rtx from vec_prefetch_gen part.
3076 2016-01-13  Richard Biener  <rguenther@suse.de>
3078         PR tree-optimization/69013
3079         * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
3080         Exchange assert for a test.
3082 2016-01-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3084         PR target/69247
3085         * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
3087 2016-01-13  Richard Biener  <rguenther@suse.de>
3089         PR tree-optimization/69242
3090         * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
3091         assert with a check.
3093 2016-01-13  Richard Biener  <rguenther@suse.de>
3095         PR tree-optimization/69186
3096         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
3097         Properly guard vect_update_misalignment_for_peel call.
3099 2016-01-12  Jeff Law  <law@redhat.com>
3101         PR tree-optimization/pr67755
3102         * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
3103         "need_profile_correction".
3104         (thread_block_1): Initialize new field to false by default.  If we
3105         have multiple thread paths through a common joiner to different
3106         final targets, then set new field to true.
3107         (compute_path_counts): Only do count adjustment when it's really
3108         needed.
3110 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
3112         * doc/invoke.texi (Spec Files): Move section down in file, past
3113         all command-line option descriptions.
3115 2016-01-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3117         PR middle-end/54809
3118         * doc/gty.texi: Remove documentation of mark_hook.
3119         * gengtype.c (struct write_types_data): Remove code to support
3120         mark_hook attribute.
3121         (walk_type): Likewise.
3122         (write_func_for_structure): Likewise.
3124 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
3126         * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
3127         Directory Options, and -specs= to Overall Options.
3128         (Overall Options): Adjust similarly.  Reorder to group related
3129         options together.  Make -specs= cross-reference the spec file details.
3130         (Directory Options): Adjust similarly.
3132 2016-01-12  Jeff Law  <law@redhat.com>
3134         * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
3136 2016-01-12  Olivier Hainque  <hainque@adacore.com>
3138         * gcc.c (spec_undefvar_allowed): New global.
3139         (process_command): Set to true when running for --version or --help,
3140         alone or together.
3141         (getenv_spec_function): When the variable is not defined, use the
3142         variable name as the variable value if we're allowed not to issue
3143         a fatal error.
3145 2016-01-12  Bin Cheng  <bin.cheng@arm.com>
3147         PR tree-optimization/68911
3148         * tree-vrp.c (adjust_range_with_scev): Check overflow in range
3149         information computed for expression "init + nit * step".
3151 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
3153         * doc/invoke.texi (Invoking GCC): Copy-edit.  Incorporate information
3154         about name of GCC executable.  Remove deleted node from menu.
3155         (Directory Options) <-B>: Remove cross-reference to deleted node.
3156         (Target Options): Delete section.
3158 2016-01-12  Christian Bruel  <christian.bruel@st.com>
3160         PR target/69180
3161         * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
3162         for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
3164 2016-01-12  Jakub Jelinek  <jakub@redhat.com>
3166         PR target/69198
3167         * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
3168         aligned_mem is properly set for AVX512-VL floating point masked
3169         stores.
3171         PR target/69175
3172         * ifcvt.c (cond_exec_process_if_block): When removing the last
3173         insn from then_bb, remove also any possible barriers that follow it.
3175 2016-01-12  H.J. Lu  <hongjiu.lu@intel.com>
3177         PR target/68456
3178         PR target/69226
3179         * config/i386/iamcu.h (SIZE_TYPE): New macro.
3180         (PTRDIFF_TYPE): Likewise.
3181         (WCHAR_TYPE): Likewise.
3182         (WCHAR_TYPE_SIZE): Likewise.
3183         (STDINT_LONG32): Likewise.
3185 2016-01-12  Richard Biener  <rguenther@suse.de>
3187         PR tree-optimization/69053
3188         * tree-vect-loop.c (get_initial_def_for_reduction): Properly
3189         convert initial value for cond reductions.
3191 2016-01-12  Richard Biener  <rguenther@suse.de>
3193         PR tree-optimization/69007
3194         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
3195         widen_sum after dot_prod and sad.
3197 2016-01-12  Richard Biener  <rguenther@suse.de>
3199         PR tree-optimization/69168
3200         * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
3201         pattern stmt SLP type.
3202         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
3203         end up unused so cope with that case.
3205 2016-01-12  Richard Biener  <rguenther@suse.de>
3207         PR tree-optimization/69157
3208         * tree-vect-stmts.c (vectorizable_mask_load_store): Check
3209         stmts def type only during analyze phase.
3210         (vectorizable_call): Likewise.
3211         (vectorizable_simd_clone_call): Likewise.
3212         (vectorizable_conversion): Likewise.
3213         (vectorizable_assignment): Likewise.
3214         (vectorizable_shift): Likewise.
3215         (vectorizable_operation): Likewise.
3216         (vectorizable_store): Likewise.
3217         (vectorizable_load): Likewise.
3219 2016-01-12  Richard Biener  <rguenther@suse.de>
3221         PR tree-optimization/69174
3222         * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
3223         space.
3224         (vectorizable_load): Properly compute the number of loads needed
3225         for permuted strided SLP loads and do not spuriously assign
3226         to SLP_TREE_VEC_STMTS.
3228 2016-01-12  Andris Pavenis  <andris.pavenis@iki.fi>
3230         * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
3231         (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
3232         (MD_EXEC_PREFIX): Remove.
3233         (MD_STARTFILE_PREFIX) Removee.
3234         (FILE_NAME_ABSOLUTE_P): Remove.
3235         (CPP_SPEC): Do not read macros from sys/version.h.
3236         (LINK_COMMAND_SPEC): Remove.
3237         (LOCAL_INCLUDE_DIR): Remove.
3238         (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
3239         (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
3240         (POST_LINK_SPEC): Define to invoke stubify after linker
3241         (LIBSTDCXX): Remove define
3242         (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
3243         (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
3244         (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
3245         (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
3246         (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
3247         (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
3248         (i386_djgpp_asm_named_section): Add propotype of new procedure
3250         * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
3251         (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
3252         (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
3253         in config/i386/djgpp.h).
3254         (STANDARD_STARTFILE_PREFIX_2): Define identical to
3255         STANDARD_STARTFILE_PREFIX_1.
3256         (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
3257         (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
3258         installation errors.
3259         (MAX_OFILE_ALIGNMENT): Define to 128.
3260         (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
3262         * config/i386/djgpp.c: New file. Add implementation of
3263         i386_djgpp_asm_named_section.
3265         * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
3267         * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
3268         Add rule for building djgpp.o.
3270 2016-01-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3272         * config/rs6000/rs6000.c (v2df_reduction_p): New function.
3273         (rtx_is_swappable_p): Reductions are swappable.
3274         (insn_is_swappable_p): V2DF reductions are swappable.
3276 2016-01-11  John David Anglin  <danglin@gcc.gnu.org>
3278         * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
3279         reloads for other unsupported memory operands.
3281 2016-01-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
3282             Jim Wilson  <jim.wilson@linaro.org>
3284         PR target/69194
3285         * config/arm/arm-builtins.c (arm_expand_neon_args): Call
3286         copy_to_mode_reg instead of force_reg.
3288 2016-01-11  H.J. Lu  <hongjiu.lu@intel.com>
3290         PR target/69225
3291         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
3292         TARGET_80387 is true.
3294 2016-01-11  Jakub Jelinek  <jakub@redhat.com>
3296         PR target/69071
3297         * lra-eliminations.c (move_plus_up): Only move plus up
3298         if subreg of the constant can be simplified into constant
3299         and use the simplified subreg of the constant instead of
3300         the original constant.
3302         * fold-const.c (fold_convertible_p): Don't return true
3303         for conversion of VECTOR_TYPE to same sized integral type.
3304         (fold_convert_loc): Fix up formatting.  Fold conversion of
3305         VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
3306         instead of NOP_EXPR.
3308         PR tree-optimization/69214
3309         * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
3310         innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
3311         Formatting fix.
3313         PR tree-optimization/69207
3314         * tree-vect-slp.c (vect_get_constant_vectors): For
3315         VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
3316         fold_convertible_p to vector_type's element type, and always
3317         use VCE for non-VECTOR_BOOLEAN_TYPE_P.
3319 2016-01-11  Richard Biener  <rguenther@suse.de>
3321         PR tree-optimization/69173
3322         * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
3323         fixup the cycle if all stmts are in a pattern.
3325 2016-01-11  Uros Bizjak  <ubizjak@gmail.com>
3327         PR middle-end/68999
3328         * alias.c (base_alias_check): Move check for addresses with
3329         alignment ANDs before the call for compare_base_decls.
3330         (memrefs_conflict_p): Return -1 for different decls
3331         that went through alignment adjustments.
3333 2016-01-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3335         PR rtl-optimization/68796
3336         * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
3337         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
3338         and QImode comparisons against zero with CC_NZmode.
3339         * config/aarch64/iterators.md (short_mask): New mode_attr.
3341 2016-01-11  H.J. Lu  <hongjiu.lu@intel.com>
3343         * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
3344         (<avx512>_store<mode>_mask): Likewise.
3346 2016-01-11  Bernd Schmidt  <bschmidt@redhat.com>
3347             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3349         PR rtl-optimization/68841
3350         * ifcvt.c (struct noce_if_info): Add orig_x field.
3351         (bbs_ok_for_cmove_arith): Add to_rename parameter.
3352         Don't record conflicts on to_rename if it's present.
3353         Allow memory destinations in sets.
3354         (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
3355         blocks, passing orig_x to the checks.
3356         (noce_process_if_block): Set if_info->orig_x appropriately.
3358 2016-01-11  Tom de Vries  <tom@codesourcery.com>
3360         PR tree-optimization/69069
3361         * tree-parloops.c (create_parallel_loop): Add missing phi args.
3363 2016-01-11  Yuri Rumyantsev  <ysrumyan@gmail.com>
3365         PR rtl-optimization/68920
3366         * config/i386/i386.c (ix86_option_override_internal): Restrict number
3367         of conditional moves for  RTL if-conversion to 1 for
3368         TARGET_ONE_IF_CONV_INSN.
3369         * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
3370         * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
3371         * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
3372         parameter to restirct number of conditional moves for
3373         RTL if-conversion.
3374         * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
3375         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
3376         conditionl moves.
3378 2016-01-11  Alexandre Oliva  <aoliva@redhat.com>
3380         PR bootstrap/69123
3381         * var-tracking.c (drop_overlapping_mem_locs): Operate on all
3382         onepart vars.  Fix typo in comment.  Fix reversed condition in
3383         unshare test.
3384         (dataflow_set_remove_mem_locs): Operate on all onepart vars.
3386         PR bootstrap/69123
3387         * var-tracking.c (dump_onepart_variable_differences): New.
3388         (dataflow_set_different): If a detailed dump is requested,
3389         delay early returns and dump differences between onepart
3390         variables present before and after, and added variables.
3392 2016-01-11  Ilya Enkovich  <enkovich.gnu@gmail.com>
3394         PR target/69010
3395         * expr.c (expand_expr_real_1): For boolean vector constants
3396         with a scalar mode use const_scalar_mask_from_tree.
3397         (const_scalar_mask_from_tree): New.
3398         * optabs.c (expand_vec_cond_mask_expr): Use mask mode
3399         assigned to a mask type to handle constants.
3401 2016-01-11  Martin Jambor  <mjambor@suse.cz>
3403         PR ipa/69044
3404         * ipa-cp.c (estimate_local_effects): Do not clone for removal of
3405         useless parameters if we cannot change function signature.
3407 2016-01-11  Martin Jambor  <mjambor@suse.cz>
3409         PR ipa/66616
3410         * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
3411         flag.
3413 2016-01-11  Tom de Vries  <tom@codesourcery.com>
3415         PR tree-optimization/69109
3416         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
3417         latch with phi.
3419 2016-01-11  Tom de Vries  <tom@codesourcery.com>
3421         PR tree-optimization/69108
3422         * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
3423         res is not used in a phi.
3425 2016-01-11  Yury Gribov  <y.gribov@samsung.com>
3427         PR 67425
3428         * common.opt (frandom-seed): Fix parameter name.
3429         * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
3431 2016-01-11  Tom de Vries  <tom@codesourcery.com>
3433         PR tree-optimization/69058
3434         * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
3435         not supported.
3437 2016-01-11  Andrew Burgess  <andrew.burgess@embecosm.com>
3439         * config/arc/arc.opt (mdiv-rem): Add period to the end.
3440         (mcode-density): Likewise.
3442 2016-01-10  Tom de Vries  <tom@codesourcery.com>
3444         PR tree-optimization/69062
3445         * tree-parloops.c (loop_has_phi_with_address_arg): New function.
3446         (parallelize_loops): Don't paralelize loop that has phi with address
3447         arg.
3449 2016-01-10  Tom de Vries  <tom@codesourcery.com>
3451         PR tree-optimization/69039
3452         * tree-parloops.c (try_create_reduction_list): Only allow single exit
3453         phi for reduction.
3455 2016-01-09  John David Anglin  <danglin@gcc.gnu.org>
3457         PR middle-end/68743
3458         * match.pd: Require target has function_c99_misc before doing
3459         truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
3461 2016-01-09  Gerald Pfeifer  <gerald@pfeifer.com>
3463         * configure.ac (isl_options_set_schedule_serialize_sccs): Also
3464         use GMPINC.
3465         * configure: Regenerate.
3467 2016-01-09  Jakub Jelinek  <jakub@redhat.com>
3469         PR middle-end/50865
3470         PR tree-optimization/69097
3471         * fold-const.h (expr_not_equal_to): New prototype.
3472         * fold-const.c: Include stringpool.h and tree-ssanames.h.
3473         (expr_not_equal_to): New function.
3474         * match.pd (X % -Y is the same as X % Y): Don't optimize
3475         unless X is known not to be equal to minimum or Y is known
3476         not to be equal to -1.
3477         * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
3478         fold TRUNC_MOD_EXPR if the second argument is not a power of two.
3479         (simplify_stmt_using_ranges): Adjust caller.
3480         (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
3481         substitute_and_fold.
3483 2016-01-09  Jan Hubicka  <hubicka@ucw.cz>
3485         * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
3486         w/o DECL_NAME.
3488 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
3490         PR tree-optimization/69167
3491         * gimple-fold.c (replace_stmt_with_simplification): Also punt if
3492         new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
3493         ops[0] comparison.
3494         * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
3496 2016-01-08  Alan Lawrence  <alan.lawrence@arm.com>
3497             Richard Biener  <rguenther@suse.de>
3499         PR tree-optimization/68707
3500         * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
3501         instances that can be handled via vect_load_lanes.
3503 2016-01-08  Uros Bizjak  <ubizjak@gmail.com>
3505         * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
3506         if we can't determine address equivalence.
3507         * alias.c (compare_base_decl): Update for changed return value of
3508         symtab_node::equal_address_to.
3510 2016-01-08  Jason Merrill  <jason@redhat.com>
3512         PR c++/68983
3513         PR c++/67557
3514         * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
3515         * expr.c (store_field): Not here.
3516         * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
3517         call with TREE_ADDRESSABLE type.
3518         * tree-cfg.c (verify_gimple_call): Adjust.
3520 2016-01-08  Olivier Hainque  <hainque@adacore.com>
3522         * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
3523         libc_internal.
3525 2016-01-08  Alan Lawrence  <alan.lawrence@arm.com>
3527         * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
3528         (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
3529         (reduc_smin_v2sf): Rename to...
3530         (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
3531         (reduc_splus_v2sf): Rename to...
3532         (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
3534 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
3536         PR tree-optimization/69162
3537         * gimplify.c (gimplify_va_arg_expr): Encode original type of
3538         valist argument in another argument.
3539         (gimplify_modify_expr): Adjust for the above change.  Cleanup.
3540         * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
3541         to determine the va_list type, build a MEM_REF instead of
3542         build_fold_indirect_ref.
3544         PR tree-optimization/69172
3545         * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
3546         gimple_build.
3548 2016-01-08  Thomas Preud'homme  <thomas.preudhomme@arm.com>
3550         PR tree-optimization/67781
3551         * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
3552         and cmpnop in two steps: first the ones not accessed in original
3553         gimple expression in a endian independent way and then the ones not
3554         accessed in the final result in an endian-specific way.
3556 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
3558         PR tree-optimization/69083
3559         * tree-vect-slp.c (vect_get_constant_vectors): For
3560         VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
3561         element type.  If op is fold_convertible_p to vector_type's element
3562         type, use NOP_EXPR instead of VCE.
3564 2016-01-08  Segher Boessenkool  <segher@kernel.crashing.org>
3566         PR rtl-optimization/67778
3567         PR rtl-optimization/68634
3568         PR rtl-optimization/68909
3569         * shrink-wrap.c (try_shrink_wrapping): Add comment.  Don't pop
3570         block from the stack until done with it.  Remove a superfluous
3571         bitmap set.  Remove a superfluous bitmap test.
3573 2016-01-07  Martin Sebor  <msebor@redhat.com>
3575         PR c/68966
3576         * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
3577         constraint on the type of arguments.
3579 2016-01-07  Andreas Tobler  <andreast@gcc.gnu.org>
3581         * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
3582         SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
3583         unaligned_access on the gcc_options set.
3584         * config/arm/arm.c (arm_option_override_internal): Use
3585         SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
3587 2016-01-07  Uros Bizjak  <ubizjak@gmail.com>
3589         PR target/69140
3590         * config/i386/i386.c (ix86_frame_pointer_required): Enable
3591         frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
3593 2016-01-07  Uros Bizjak  <ubizjak@gmail.com>
3595         Revert
3596         2016-01-06  Uros Bizjak  <ubizjak@gmail.com>
3598         PR target/69140
3599         * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
3600         depending on frame_pointer_needed before remaining integer and SSE
3601         registers are saved.
3603 2016-01-07  Sandra Loosemore  <sandra@codesourcery.com>
3605         PR 1078
3606         * doc/extend.texi (Nvidia PDX Function Attributes): New section.
3608 2016-01-07  H.J. Lu  <hongjiu.lu@intel.com>
3610         PR target/69171
3611         * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
3612         Use the "xBm" constraint.
3613         (float<sseintvecmodelower><mode>2<mask_name><round_name):
3614         Likewise.
3615         (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
3616         (sse_cvtsi2ssq<round_name>): Likewise.
3617         (sse_cvtss2si<round_name>): Likewise.
3618         (sse_cvtss2siq<round_name>): Likewise.
3619         (sse2_cvtsi2sdq<round_name>): Likewise.
3620         (sse2_cvtsd2si<round_name>): Likewise.
3621         (sse2_cvtsd2siq<round_name>): Likewise.
3622         * config/i386/subst.md (round_nimm_scalar_predicate): New
3623         predicate.
3625 2015-12-15  Bernd Schmidt  <bschmidt@redhat.com>
3627         PR middle-end/67639
3628         * varasm.c (make_decl_rtl): Mark invalid register vars as
3629         DECL_EXTERNAL.
3631         PR rtl-optimization/66206
3632         * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
3633         All callers changed.
3635 2016-01-07  Jakub Jelinek  <jakub@redhat.com>
3637         PR tree-optimization/69141
3638         * tree-ssa-pre.c: Include langhooks.h.
3639         (eliminate_dom_walker::before_dom_children): Use
3640         lang_hooks.decl_printable_name instead of
3641         cgraph_node::get ()->name ().
3643         PR middle-end/68960
3644         * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
3645         it and DECL_ALIGN too.
3647 2016-01-06  Robert Suchanek  <robert.suchanek@imgtec.com>
3649         * config/mips/mips-ftypes.def: Sort to lexicographical order.
3651 2016-01-06  Uros Bizjak  <ubizjak@gmail.com>
3653         PR target/69140
3654         * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
3655         depending on frame_pointer_needed before remaining integer and SSE
3656         registers are saved.
3658 2015-01-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3660         * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
3661         mode iterator with VSX_M2.
3662         (*p9_vecstore_<mode>): Likewise.
3663         (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
3664         (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
3665         (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
3666         (define_split for VSX_LE128 stores): Likewise.
3667         (define_peephole2 for TImode LE swaps): Likewise.
3668         (define_split for VSX_LE128 post-reload stores): Likewise.
3670 2016-01-06  Marek Polacek  <polacek@redhat.com>
3672         PR sanitizer/69099
3673         * convert.c (convert_to_integer_1): Adjust call to
3674         ubsan_instrument_float_cast.  Use NULL_TREE instead of NULL.
3675         * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter.  Use
3676         EXPR instead of ARG.
3677         * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
3679 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
3681         PR 1078
3682         * doc/extend.texi (RL78 Variable Attributes): New section.
3684 2016-01-05  Marek Polacek  <polacek@redhat.com>
3686         PR c/69104
3687         * builtins.c (get_memmodel): Use expansion point location rather than
3688         the input location.  Call warning_at rather than warning.
3689         (expand_builtin_atomic_compare_exchange): Likewise.
3690         (expand_builtin_atomic_load): Likewise.
3691         (expand_builtin_atomic_store): Likewise.
3692         (expand_builtin_atomic_clear): Likewise.
3694 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
3696         PR target/68991
3697         * config/i386/i386.c (ix86_expand_vector_logical_operator):
3698         Replace nonimmediate_operand with vector_operand.
3699         * config/i386/predicates.md (vector_operand): New predicate.
3700         (general_vector_operand): Replace nonimmediate_operand with
3701         vector_operand.
3702         * config/i386/sse.md: Replace nonimmediate_operand with
3703         vector_operand and m constraint with Bm constraint on SSE
3704         patterns with 16-byte memory operand.
3705         * config/i386/subst.md (round_nimm_predicate): Replace
3706         nonimmediate_operand with vector_operand.
3707         (round_saeonly_nimm_predicate): Likewise.
3708         (round_saeonly_nimm_scalar_predicate): New.
3710 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
3712         PR target/68991
3713         * config/i386/constraints.md (Bm): New constraint.
3714         * config/i386/predicates.md (vector_memory_operand): New
3715         predicate.
3716         * config/i386/sse.md: Replace xm with xBm in plusminus and
3717         any_logic patterns.
3719 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
3721         PR 1078
3722         * doc/extend.texi (V850 Function Attributes): New section.
3723         (V850 Variable Attributes): New section.
3725 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
3727         PR 1078
3728         * doc/extend.texi (MicroBlaze Function Attributes): Document
3729         interrupt_handler and fast_interrupt attributes.
3731 2016-01-05  Sergei Trofimovich  <siarheit@google.com>
3733         PR other/60465
3734         * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
3735         for local symbolic operands.
3736         * config/ia64/predicates.md (local_symbolic_operand64): New
3737         predicate.
3739 2016-01-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3741         PR rtl-optimization/68651
3742         * combine.c (combine_simplify_rtx): Canonicalize x + x into
3743         x << 1.
3745 2016-01-05  Nathan Sidwell  <nathan@acm.org>
3747         * alias.c (compare_base_decls): Use symtab_node::get.
3749 2016-01-05  Nick Clifton  <nickc@redhat.com>
3751         PR target/68770
3752         * ira-costs.c (copy_cost): Initialise the t_icode field of the
3753         secondary_reload_info structure.
3755         PR target/66655
3756         * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
3757         decls if weak support is available.
3759 2016-01-04  Martin Sebor  <msebor@redhat.com>
3761         * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
3763 2016-01-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
3765         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
3766         OPTION_MASK_P9_DFORM.
3768         * config/rs6000/constraints.md (wo constraint): New constraint for
3769         ISA 3.0 (power9).
3771         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
3772         for wo constraint.
3773         (rs6000_init_hard_regno_mode_ok): Likewise.
3775         * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
3776         wo constraint.
3778         * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
3779         expanders not to have constraints.  Add support for ISA 3.0 xxperm
3780         instruction.  Add support for fusing xxlor with xxperm.
3781         (altivec_vperm_<mode>_internal): Likewise.
3782         (altivec_vperm_v8hiv16qi): Likewise.
3783         (altivec_vperm_<mode>v16q): Likewise.
3784         (altivec_vperm_<mode>_uns): Likewise.
3785         (vperm_v8hiv4si): Likewise.
3786         (vperm_v16qiv8hi): Likewise.
3788         * doc/md.texi (RS/6000 constraints): Document wo constraint.
3790 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
3792         Update copyright years.
3794         * gcc.c (process_command): Update copyright notice dates.
3795         * gcov-dump.c (print_version): Ditto.
3796         * gcov.c (print_version): Ditto.
3797         * gcov-tool.c (print_version): Ditto.
3798         * gengtype.c (create_file): Ditto.
3799         * doc/cpp.texi: Bump @copying's copyright year.
3800         * doc/cppinternals.texi: Ditto.
3801         * doc/gcc.texi: Ditto.
3802         * doc/gccint.texi: Ditto.
3803         * doc/gcov.texi: Ditto.
3804         * doc/install.texi: Ditto.
3805         * doc/invoke.texi: Ditto.
3807 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
3809         * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
3810         modes larger than TImode as TImode if NEON is not enabled.
3812 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
3814         PR target/69100
3815         * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
3816         mode for %f0-%f31 only if TARGET_FPU.
3818 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
3820         PR target/69072
3821         * config/sparc/sparc.c (scan_record_type): Take into account subfields
3822         to compute the PACKED_P predicate.
3823         (function_arg_record_value): Minor tweaks.
3825 2016-01-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
3827         * doc/install.texi (--with-multilib-list): Describe the meaning of the
3828         option for arm*-*-* targets.
3830 2016-01-03  Sandra Loosemore  <sandra@codesourcery.com>
3832         * doc/extend.texi (Common Function Attributes): Move docs for
3833         MSP430-specific attributes to....
3834         (MSP430 Function Attributes): ...here.  Delete the redundant
3835         entries and copy-edit the remaining text.
3836         (MSP430 Variable Attributes): Use uniform format for index
3837         entries and add a cross-reference to the corresponding function
3838         attribute docs.
3840 2016-01-03  Vladimír Čunát  <vcunat@gmail.com>
3842         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
3843         -finite-math typo.
3844         (x86 Options): Likewise.
3846 2016-01-01  Sandra Loosemore  <sandra@codesourcery.com>
3848         PR 1078
3850         * extend.texi (Common Function Attributes) <no_stack_limit>: New.
3851         * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
3852         to corresponding attribute.
3854 2016-01-01  Sandra Loosemore  <sandra@codesourcery.com>
3856         * doc/extend.texi (Common Function Attributes) <noplt>: Move
3857         to correct alphabetization of table.  Copy-edit and correct
3858         markup.
3859         <stack_protect>: Likewise.
3860         <target_clones>: Likewise.
3861         <simd>: Likewise.
3862         * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
3863         Correct punctuation.
3864         (Code Gen Options) <-fno-plt>: Copy-edit.
3866 2016-01-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3868         PR target/68917
3869         * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
3870         SI values.  Explicitly convert SI to DI and vice-versa.
3872 2016-01-01  Jakub Jelinek  <jakub@redhat.com>
3874         PR tree-optimization/69070
3875         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
3876         REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
3878         PR sanitizer/69055
3879         * ubsan.c (ubsan_instrument_float_cast): Call
3880         initialize_sanitizer_builtins.
3882         PR target/69015
3883         * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
3885 Copyright (C) 2016 Free Software Foundation, Inc.
3887 Copying and distribution of this file, with or without modification,
3888 are permitted in any medium without royalty provided the copyright
3889 notice and this notice are preserved.