[ARM] Remove neon_reinterpret, use casts
[official-gcc.git] / gcc / ChangeLog
blobccad37874bc6c2aef7663bd9228ddc4e6e892582
1 2016-02-04  Alan Lawrence  <alan.lawrence@arm.com>
3         * config/arm/arm-protos.h (neon_reinterpret): Remove.
4         * config/arm/arm.c (neon_reinterpret): Remove.
5         * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
6         vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
7         vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
8         vreinterpretti): Remove.
9         * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
10         neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
11         neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
12         neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
13         neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
14         neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
15         * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
16         vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
17         vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
18         vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
19         vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
20         vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
21         vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
22         vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
23         vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
24         vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
25         vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
26         vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
27         vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
28         vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
29         vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
30         vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
31         vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
32         vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
33         vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
34         vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
35         vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
36         vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
37         vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
38         vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
39         vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
40         vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
41         vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
42         vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
43         vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
44         vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
45         vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
46         vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
47         vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
48         vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
49         vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
50         vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
51         vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
52         vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
53         vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
54         vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
55         vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
56         vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
57         vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
58         vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
59         vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
60         vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
61         vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
62         vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
63         vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
64         vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
65         vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
66         vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
67         vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
68         vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
69         vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
70         vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
71         vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
72         vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
73         vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
74         vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
75         vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
76         vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
77         vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
78         vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
79         vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
80         vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
81         vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
82         vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
83         vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
84         vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
85         vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
86         vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
87         vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
88         vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
89         vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
90         vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
91         vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
92         vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
93         vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
94         vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
95         vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
96         vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
97         vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
98         vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
99         vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
100         vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
101         vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
102         vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
103         vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
104         vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
105         vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
106         vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
107         vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
108         vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
109         vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
110         vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
111         vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
113 2016-02-04  Martin Liska  <mliska@suse.cz>
115         PR sanitizer/69276
116         * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
117         that are gimple_store_p.
118         (maybe_instrument_call): Likewise.
120 2016-02-04  Bin Cheng  <bin.cheng@arm.com>
122         * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
123         register scaling out of memory reference and comment why.
125 2016-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
127         PR target/65932
128         PR target/67714
129         * cse.c (cse_insn): Pass NULL to fold_rtx when initially
130         folding the source of a SET.
132 2016-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
134         PR target/65932
135         PR target/67714
136         * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
137         the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
139 2016-02-04  Jim Wilson  <jim.wilson@linaro.org>
141         PR target/65932
142         PR target/67714
143         * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
144         HImode.
146 2016-02-04  Christian Bruel  <christian.bruel@st.com>
148         * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
149         * config/arm/arm.c (arm_set_current_function): Likewise.
151 2016-02-04  Jakub Jelinek  <jakub@redhat.com>
152             Ilya Enkovich  <enkovich.gnu@gmail.com>
153             H.J. Lu  <hongjiu.lu@intel.com>
155         PR target/69454
156         * config/i386/i386.c (convert_scalars_to_vector): Remove
157         stack alignment fixes.
158         (ix86_option_override_internal): Disable TARGET_STV if stack
159         might not be aligned enough.
160         (ix86_minimum_alignment): Assert that TARGET_STV is false.
162 2016-02-04  Victoria Stepanyan  <victoria.stepanyan@amd.com>
164         * gcc/config/i386/x86-tune.def: Disable default prefetching
165         for -march=znver1.
167 2016-02-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
168             Vladimir Makarov  <vmakarov@redhat.com>
170         PR target/69461
171         * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
172         in validating fused toc addresses.
174 2016-02-03  Jakub Jelinek  <jakub@redhat.com>
176         PR c/69627
177         * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
178         range->m_caret fields if range->m_show_caret_p is false.
180         PR target/69644
181         * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
182         Force oldval into register if it does not satisfy reg_or_short_operand
183         predicate.  Fix up formatting.
185 2016-02-03  Vladimir Makarov  <vmakarov@redhat.com>
186             Alexandre Oliva  <aoliva@redhat.com>
188         PR target/69461
189         * lra-constraints.c (simplify_operand_subreg): Check additionally
190         address validity after potential reloading.
191         (process_address_1): Check insns validity.  In case of failure do
192         nothing.
194 2016-02-03  Kirill Yukhin  <kirill.yukhin@intel.com>
196         PR target/69118
197         * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
198         Fix target.
200 2016-02-02  Jakub Jelinek  <jakub@redhat.com>
202         * wide-int.cc (canonize_uhwi): New function.
203         (wi::divmod_internal): Use it.
205 2016-02-02  James Norris  <jnorris@codesourcery.com
207         * gimplify.c (omp_notice_variable): Add usage check.
209 2016-02-02  Alexander Monakov  <amonakov@ispras.ru>
211         * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
212         like LE, GE, LT, GT when emitting relational operator.
214 2016-02-02  Wilco Dijkstra  <wdijkstr@arm.com>
216         * ira-costs.c (find_costs_and_classes): Add extra argument.
217         * target.def (ira_change_pseudo_allocno_class): Add parameter.
218         * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
219         * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
220         * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
221         Add best_class parameter, and return it if not ALL_REGS.
222         * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
223         Add parameter.
224         * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
225         Update target hook.
227 2016-02-02  Wilco Dijkstra  <wdijkstr@arm.com>
229         * config/aarch64/aarch64.c
230         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
231         (aarch64_ira_change_pseudo_allocno_class): New function.
233 2016-02-02  Uros Bizjak  <ubizjak@gmail.com>
235         PR target/67032
236         * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
238 2016-02-02  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
240         * config/avr/avr.c (avr_option_override): Set
241         PARAM_ALLOW_STORE_DATA_RACES to 1.
243 2016-02-02  Richard Biener  <rguenther@suse.de>
245         PR tree-optimization/69595
246         * match.pd: Add range test simplifications to true/false.
248 2016-02-02  Thomas Schwinge  <thomas@codesourcery.com>
250         * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
251         * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
252         instead.
254 2016-02-02  Richard Biener  <rguenther@suse.de>
256         PR tree-optimization/69606
257         * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
258         info on the result before moving a stmt.
260 2016-02-02  Yuri Rumyantsev  <ysrumyan@gmail.com>
262         PR middle-end/68542
263         * config/i386/i386.c (ix86_expand_branch): Add support for conditional
264         branch with vector comparison.
265         * config/i386/sse.md (VI48_AVX): New mode iterator.
266         (define_expand "cbranch<mode>4): Add support for conditional branch
267         with vector comparison.
268         * tree-vect-loop.c (optimize_mask_stores): New function.
269         * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
270         has_mask_store field of vect_info.
271         * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
272         vectorized loops having masked stores after vec_info destroy.
273         * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
274         correspondent macros.
275         (optimize_mask_stores): Add prototype.
277 2016-02-02  Alan Modra  <amodra@gmail.com>
279         PR target/69548
280         * config/rs6000/predicates.md (quad_int_reg_operand): Don't
281         allow subregs.
283 2016-02-02  Alan Modra  <amodra@gmail.com>
285         PR target/68662
286         * config/rs6000/rs6000.c (need_toc_init): New var, set it
287         whenever toc_label_name used.
288         (rs6000_file_start): Don't set up toc section here,
289         (rs6000_output_function_epilogue): do so here instead,
290         (rs6000_xcoff_file_start): and here.
291         * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
292         (load_toc_aix_di): Likewise.
294 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
296         PR rtl-optimization/69592
297         * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
298         (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
299         (num_sign_bit_copies_binary_arith_p): New inline function.
300         (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
302 2016-02-01  Jeff Law  <law@redhat.com>
304         PR tree-optimization/69580
305         * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
306         * tree-ssa-threadbackward.c
307         (fsm_find_control_statement_thread_paths): Do not try to walk
308         through large PHI nodes.
310 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
312         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
313         when count is incremented above limit, don't analyze further
314         insns afterwards.
316         * omp-low.c (oacc_parse_default_dims): Avoid
317         -Wsign-compare warning, make sure value fits into int
318         rather than just unsigned int.
320 2016-02-01  Bin Cheng  <bin.cheng@arm.com>
322         PR tree-optimization/67921
323         * fold-const.c (split_tree): New parameters.  Convert pointer
324         type variable part to proper type before negating.
325         (fold_binary_loc): Pass new arguments to split_tree.
327 2016-02-01  Nathan Sidwell  <nathan@codesourcery.com>
329         * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
330         (nvptx_goacc_validate_dims): Extend to handle global defaults.
331         * target.def (OACC_VALIDATE_DIMS): Extend documentation.
332         * doc/tm.texti: Rebuilt.
333         * doc/invoke.texi (fopenacc-dim): Document.
334         * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
335         (append_compiler_options): Likewise.
336         * omp-low.c (oacc_default_dims, oacc_min_dims): New.
337         (oacc_parse_default_dims): New.
338         (oacc_validate_dims): Add USED arg.  Select non-unity default when
339         possible.
340         (oacc_loop_fixed_partitions): Return mask of used partitions.
341         (oacc_loop_auto_partitions): Emit dump info.
342         (oacc_loop_partition): Return mask of used partitions.
343         (execute_oacc_device_lower): Parse default dimension arg.  Adjust
344         loop partitioning and validation calls.
346 2016-02-01  Richard Biener  <rguenther@suse.de>
348         PR middle-end/69556
349         * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
351 2016-02-01  Richard Biener  <rguenther@suse.de>
353         PR tree-optimization/69574
354         * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
355         of asserting return chrec_dont_know.
357 2016-02-01  Martin Liska  <mliska@suse.cz>
359         * mem-stats-traits.h: Add copyright header.
360         * mem-stats.h: Likewise.
362 2016-02-01  Richard Biener  <rguenther@suse.de>
364         PR tree-optimization/69579
365         * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
366         Do not propagate through abnormal PHI results.
368 2016-02-01  Eric Botcazou  <ebotcazou@adacore.com>
370         * postreload.c (reload_cse_simplify): Remove dead code.
372 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
374         PR rtl-optimization/69570
375         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
376         if there is more than one set, not if there is a single set.
378 2016-02-01  Richard Henderson  <rth@redhat.com>
380         PR rtl-opt/69535
381         * combine.c (make_compound_operation): When looking through a
382         subreg, make sure to re-extend to the width of the outer mode.
384 2016-01-30  Jakub Jelinek  <jakub@redhat.com>
386         PR tree-optimization/69546
387         * wide-int.cc (wi::divmod_internal): For unsigned division
388         where both operands fit into uhwi, if o1 is 1 and o0 has
389         msb set, if divident_prec is larger than bits per hwi,
390         clear another quotient word and return 2 instead of 1.
391         Similarly for remainder with msb in HWI set, if dividend_prec
392         is larger than bits per hwi.
394 2016-01-29  Martin Jambor  <mjambor@suse.cz>
396         * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
397         Use short lowercase names.
398         (get_memory_order): Mask with MEMMODEL_BASE_MASK.  Support
399         MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
400         acq_rel one.  Protect warning agains segfaults if
401         get_memory_order_name returns NULL.
402         (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
403         with release semantics.  Do not warn if get_memory_order already did.
404         (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
405         semantics.  Fix check for relaxed or acquire semantics.  Do not warn
406         if get_memory_order already did.
408 2016-01-29  Sebastian Pop  <s.pop@samsung.com>
410         * doc/install.texi: Document that isl-0.16 is supported.
412 2016-01-29  Vladimir Makarov  <vmakarov@redhat.com>
414         PR target/69299
415         * config/i386/constraints.md (Bm): Describe as special memory
416         constraint.
417         * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
418         * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
419         * genpreds.c (struct constraint_data): Add is_special_memory.
420         (have_special_memory_constraints, special_memory_start): New
421         static vars.
422         (special_memory_end): Ditto.
423         (add_constraint): Add new arg is_special_memory.  Add code to
424         process its true value.  Update have_special_memory_constraints.
425         (process_define_constraint): Pass the new arg.
426         (process_define_register_constraint): Ditto.
427         (choose_enum_order): Process special memory.
428         (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
429         function insn_extra_special_memory_constraint.
430         (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
431         * gensupport.c (process_rtx): Process
432         DEFINE_SPECIAL_MEMORY_CONSTRAINT.
433         * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
434         * ira-lives.c (single_reg_class): Use
435         insn_extra_special_memory_constraint.
436         * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
437         * lra-constraints.c (process_alt_operands): Ditto.
438         (curr_insn_transform): Use insn_extra_special_memory_constraint.
439         * recog.c (asm_operand_ok, preprocess_constraints): Process
440         CT_SPECIAL_MEMORY.
441         * reload.c (find_reloads): Ditto.
442         * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
443         * stmt.c (parse_input_constraint): Use
444         insn_extra_special_memory_constraint.
446 2016-01-29  H.J. Lu  <hongjiu.lu@intel.com>
448         PR target/69530
449         * lra-splill.c (lra_final_code_change): Revert r229087 by
450         removing all sub-registers.
452 2016-01-29  Steve Ellcey  <sellcey@imgtec.com>
454         PR target/65604
455         * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
457 2016-01-29  Jakub Jelinek  <jakub@redhat.com>
459         PR target/69551
460         * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
461         SSE1, copy target into the temporary reg first before recursing
462         on it.
464 2016-01-29  H.J. Lu  <hongjiu.lu@intel.com>
466         * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
467         with vm.
469 2016-01-29  Jonathan Wakely  <jwakely@redhat.com>
471         * ginclude/stdarg.h: Test __cplusplus instead of
472         __GXX_EXPERIMENTAL_CXX0X__.
474 2016-01-29  Richard Biener  <rguenther@suse.de>
476         PR tree-optimization/69547
477         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
478         Do not mark clobbers necessary.
479         (mark_all_reaching_defs_necessary_1): Likewise.
481 2016-01-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
483         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
484         declaration name with %qs and print it in both error messages.
485         Also fix indentation.
487 2016-01-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
489         PR other/69006
490         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
491         trailing blank line from error message.
493 2016-01-29  Jonathan Wakely  <jwakely@redhat.com>
495         PR c++/69462
496         * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
497         for C++-11.
499 2016-01-29  Richard Biener  <rguenther@suse.de>
501         PR middle-end/69537
502         * match.pd: Allow all integral types when simplifying a
503         widening or sign-changing conversion.
505 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
507         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
508         back to setting codegen_error to fail codegen.
510 2016-01-28  Uros Bizjak  <ubizjak@gmail.com>
512         PR target/69459
513         * config/i386/constraints.md (C): Only accept constant zero operand.
514         (BC): New constraint.
515         * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
516         instead of C constraint.
517         * doc/md.texi (Machine Constraints): Update description
518         of C constraint.
520 2016-01-28  Steve Ellcey  <sellcey@imgtec.com>
522         PR target/68400
523         * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
525 2016-01-28  Jakub Jelinek  <jakub@redhat.com>
527         PR middle-end/69542
528         * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
529         non-debug insns.
531 2016-01-28  Pat Haugen  <pthaugen@us.ibm.com>
533         * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
534         branches if using guessed profile.
536 2016-01-28  H.J. Lu  <hongjiu.lu@intel.com>
538         * graphite-optimize-isl.c (optimize_isl): Fix dump.
540 2016-01-28  Richard Henderson  <rth@redhat.com>
542         PR target/69305
543         * config/aarch64/aarch64-modes.def (CC_Cmode): New
544         * config/aarch64/aarch64-protos.h: Update.
545         * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
546         (aarch64_select_cc_mode): Add check for use of CC_Cmode.
547         (aarch64_get_condition_code_1): Handle CC_Cmode.
548         * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
549         (*add<mode>3_compareC_cconly_imm): New.
550         (*add<mode>3_compareC_cconly): New.
551         (*add<mode>3_compareC_imm): New.
552         (add<mode>3_compareC): New.
553         (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
554         to be first.  Use aarch64_carry_operation.
555         (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
556         (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
557         (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
558         (subti3): Use subdi3_compare1.
559         (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
560         (sub<mode>3_compare1): New.
561         (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
562         (*sub<mode>3_carryin): Use aarch64_borrow_operation.
563         (*subsi3_carryin_uxtw): Likewise.
564         (*ngc<mode>, *ngcsi_uxtw): Likewise.
565         (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
566         * config/aarch64/iterators.md (DWI): New.
567         * config/aarch64/predicates.md (aarch64_carry_operation): New.
568         (aarch64_borrow_operation): New.
570 2016-01-28  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
572         * graphite-optimize-isl.c (optimize_isl): Print a different debug
573         message when isl does not return a valid schedule.
575 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
577         * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
578         Remove comments from class declarations: they are already in the code
579         close by the defs.
581 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
583         * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
584         codegen_error_p.
585         (ternary_op_to_tree): Same.
586         (unary_op_to_tree): Same.
587         (nary_op_to_tree): Same.
588         (gcc_expression_from_isl_expr_op): Same.
589         (gcc_expression_from_isl_expression): Same.
590         (graphite_create_new_loop): Same.
591         (graphite_create_new_loop_guard): Same.
592         (build_iv_mapping): Same.
593         (graphite_create_new_guard): Same.
594         (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
595         (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
597 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
599         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
600         instead of setting codegen_error to fail codegen.
602 2016-01-28  Jason Merrill  <jason@redhat.com>
604         * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
606 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
608         * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
609         Remove CONST_INT_P check in CCMP cost calculation.
611 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
613         * config/aarch64/aarch64.c (generic_vector_cost):
614         Set vec_permute_cost.
615         (cortexa57_vector_cost): Likewise.
616         (exynosm1_vector_cost): Likewise.
617         (xgene1_vector_cost): Likewise.
618         (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
619         * config/aarch64/aarch64-protos.h (cpu_vector_cost):
620         Add vec_permute_cost entry.
622 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
624         * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
625         immediate as %1.
626         (add<mode>3_compare0): Likewise.
627         (addsi3_compare0_uxtw): Likewise.
628         (add<mode>3nr_compare0): Likewise.
629         (compare_neg<mode>): Likewise.
630         (<optab><mode>3): Likewise.
632 2016-01-28  Ilya Enkovich  <enkovich.gnu@gmail.com>
634         * tree-vect-stmts.c (vectorizable_comparison): Add
635         NULL check for vectype.
637 2016-01-28  Richard Biener  <rguenther@suse.de>
639         PR tree-optimization/69466
640         * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
641         Account for PHIs we couldn't duplicate.
643 2016-01-28  Martin Liska  <mliska@suse.cz>
645         PR pch/68758
646         * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
647         instead of ENABLE_VALGRIND_CHECKING.
649 2016-01-27  Richard Henderson  <rth@redhat.com>
651         PR rtl-opt/69447
652         * lra-remat.c (subreg_regs): New.
653         (dump_candidates_and_remat_bb_data): Dump it.
654         (operand_to_remat): Reject if operand in subreg_regs.
655         (set_bb_regs): Collect subreg_regs.
656         (lra_remat): Init and free subreg_regs.  Compute
657         calculate_local_reg_remat_bb_data before create_cands.
659 2016-01-27  H.J. Lu  <hongjiu.lu@intel.com>
661         PR target/68986
662         * config/i386/i386.c (ix86_update_stack_boundary): Don't
663         change stack_alignment_needed for __tls_get_addr call.
665 2016-01-27  Segher Boessenkool  <segher@kernel.crashing.org>
667         * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
669 2016-01-27  Jeff Law  <law@redhat.com>
671         PR tree-optimization/68398
672         PR tree-optimization/69196
673         * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
674         (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
675         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
676         Only count PHIs in the last block in the path.  The others will
677         const/copy propagate away.  Add heuristic to allow more irreducible
678         subloops to be created when it is likely profitable to do so.
680         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
681         Fix typo in comment.  Use gsi_after_labels and remove the GIMPLE_LABEL
682         check from within the loop.  Use gsi_next_nondebug rather than gsi_next.
684 2016-01-27  Jakub Jelinek  <jakub@redhat.com>
686         PR lto/69254
687         * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
688         END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
689         * asan.c (DEF_BUILTIN_STUB): Temporarily define.
690         * tree-streamer-in.c: Include asan.h.
691         (streamer_get_builtin_tree): For builtins in sanitizer
692         range call initialize_sanitizer_builtins and retry.
694 2016-01-27  Ian Lance Taylor  <iant@google.com>
696         * common.opt (fkeep-gc-roots-live): New undocumented option.
697         * tree-ssa-loop-ivopts.c (add_candidate_1): If
698         -fkeep-gc-roots-live, skip pointers.
699         (add_iv_candidate_for_biv): Handle add_candidate_1 returning
700         NULL.
702 2016-01-27  Uros Bizjak  <ubizjak@gmail.com>
704         PR target/69512
705         * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
706         (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
708 2016-01-27  Thomas Klausner  <wiz@NetBSD.org>
710         PR target/68380
711         * configure.ac: NetBSD provides SSP in its C library.
712         * configure: Updated.
714 2016-01-27  Richard Biener  <rguenther@suse.de>
716         PR tree-optimization/69166
717         * tree-vect-loop.c (vect_is_simple_reduction): Always check
718         reduction code for commutativity / associativity.
720 2016-01-27  Martin Jambor  <mjambor@suse.cz>
722         PR tree-optimization/69355
723         * tree-sra.c (analyze_access_subtree): Correct hole detection when
724         total_scalarization fails.
726 2016-01-27  David Edelsohn  <dje.gcc@gmail.com>
728         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
729         power9.
731 2016-01-27  Christian Bruel  <christian.bruel@st.com>
733         PR target/69245
734         * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
735         Move arm_reset_previous_fndecl and set_target_option_current_node in
736         the conditional part.  Call save_restore_target_globals.
737         * config/arm/arm.c (arm_set_current_function):
738         Refactor to better support #pragma target and attribute mix.
739         Call save_restore_target_globals.
740         * config/arm/arm-protos.h (save_restore_target_globals): New function.
742 2016-01-27  Martin Liska  <mliska@suse.cz>
744         * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
745         reference for an HSA kernel and its host function.
747 2016-01-27  Jakub Jelinek  <jakub@redhat.com>
749         PR tree-optimization/69399
750         * wide-int.h (wi::lrshift): For larger precisions, only
751         use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
753 2016-01-27  Claudiu Zissulescu  <claziss@synopsys.com>
755         * config/arc/predicates.md (proper_comparison_operator): Reject
756         constant-constant comparison.
758 2016-01-26  Tom de Vries  <tom@codesourcery.com>
760         PR tree-optimization/69110
761         * tree-data-ref.c (initialize_data_dependence_relation): Handle
762         DR_NUM_DIMENSIONS == 0.
764 2016-01-26  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
765             Sebastian Pop  <s.pop@samsung.com>
767         * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
768         isl_ast_op_cond and isl_ast_op_select.
769         (gcc_expression_from_isl_expr_op): Same.
771 2016-01-26  Jason Merrill  <jason@redhat.com>
773         PR c++/68782
774         * tree.c (recompute_constructor_flags): Split out from
775         build_constructor.
776         (verify_constructor_flags): New.
777         * tree.h: Declare them.
779 2016-01-26  Iain Buclaw  <ibuclaw@gdcproject.org>
781         PR rtl-optimization/69217
782         * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
783         are no TYPE_FIELDS set for the record type.
785 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
787         PR target/68662
788         * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
789         toc_label_name unconditionally.
790         (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
791         SYMBOL_REF string.  Use toc_label_name instead of constructing
792         LCTOC1.
793         (rs6000_elf_declare_function_name): Use toc_label_name instead of
794         constructing LCTOC1.
796 2016-01-26  Martin Sebor  <msebor@redhat.com>
798         PR other/69477
799         * doc/extend.texi (Common Type Attributes): Move text that talks about
800         attribute packed from attribute aligned to the section discussing
801         the former attribute for clarity.
803 2016-01-26  Richard Henderson  <rth@redhat.com>
805         PR middle-end/60908
806         * trans-mem.c (tm_region_init): Mark entry block as visited.
808 2016-01-26  David Malcolm  <dmalcolm@redhat.com>
810         PR other/69006
811         * diagnostic-show-locus.c (layout::print_source_line): Replace
812         call to pp_newline with call to layout::print_newline.
813         (layout::print_annotation_line): Likewise.
814         (layout::move_to_column): Likewise.
815         (layout::print_any_fixits): After printing any fixits, print a
816         trailing newline, if necessary.
817         (layout::print_newline): New method, resetting any colorization
818         before a newline.
819         (diagnostic_show_locus): Move the pp_newline to before the
820         early bailout.  Remove dummy block enclosing the layout instance.
821         * diagnostic.c (default_diagnostic_finalizer): Replace invocation
822         of pp_newline_and_flush with pp_flush.
823         (diagnostic_append_note): Delete use of pp_newline.
824         (diagnostic_append_note_at_rich_loc): Delete.
825         * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
826         * pretty-print.h (output_buffer_append_r): Reset buff->line_length
827         when newline characters are added to the buffer.
829 2016-01-26  Michael Matz  <matz@suse.de>
831         * configure.ac (ac_cv_std_swap_in_utility): New test.
832         * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
833         * configure: Regenerate.
834         * config.in: Regenerate.
836 2016-01-26  Claudiu Zissulescu  <claziss@synopsys.com>
838         * config/arc/arc.md (cstoresi4): Force operand into register.
839         (arcset<code>): Fix predicate.
840         (arcsetltu): Likewise.
841         (arcsetgeu): Likewise.
842         (arcsethi): Likewise.
843         (arcsetls): Likewise.
845 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
847         PR tree-optimization/69483
848         * gimple-fold.c (canonicalize_constructor_val): Return NULL
849         if base has error_mark_node type.
851 2016-01-26  Christophe Lyon  <christophe.lyon@linaro.org>
853         PR target/68620
854         * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
855         * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
856         New helper macros.
857         (vget_lane_f16): Handle big-endian.
858         (vgetq_lane_f16): Likewise.
859         (vset_lane_f16): Likewise.
860         (vsetq_lane_f16): Likewise.
861         * config/arm/iterators.md (VQXMOV): Add V8HF.
862         (VDQ): Add V4HF and V8HF.
863         (V_reg): Handle V4HF and V8HF.
864         (Is_float_mode): Likewise.
865         * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
866         neon_vdup_nv8hf): New patterns.
867         (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
868         Use VD_LANE iterator.
869         (neon_vld1_dup<mode>): Use VQ2 iterator.
871 2016-01-26  Nathan Sidwell  <nathan@acm.org>
873         * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
874         (set_oacc_fn_attrib): Add IS_KERNEL arg.
875         * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
876         (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
877         (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
878         (oacc_validate_dims): Add LEVEL arg, don't return level.
879         (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
880         oacc_validate_dims.
881         (execute_oacc_device_lower): Adjust, add more dump output.
882         * tree-ssa-loop.c (gate_oacc_kernels): Use
883         oacc_fn_attrib_kernels_p.
884         * tree-parloops.c (create_parallel_loop): Adjust
885         set_oacc_fn_attrib call.
887 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
889         PR lto/69254
890         * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
891         (append_compiler_options): Handle -fcilkplus.
892         (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
894 2016-01-26  Nick Clifton  <nickc@redhat.com>
896         PR target/66655
897         * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
898         been marked as DECL_ONE_ONLY but we do not the means to make it
899         so, then do not allow it to bind locally.
901 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
903         PR lto/69254
904         * opts.h (parse_sanitizer_options): New prototype.
905         * opts.c (sanitizer_opts): New array.
906         (parse_sanitizer_options): New function.
907         (common_handle_option): Use parse_sanitizer_options.
909 2016-01-26  H.J. Lu  <hongjiu.lu@intel.com>
911         PR target/68986
912         * config/i386/i386.c (ix86_compute_frame_layout): Move stack
913         alignment adjustment to ...
914         (ix86_update_stack_boundary): Here.  Don't over-align stack for
915         __tls_get_addr.
916         (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
917         if __tls_get_addr is called.
919 2016-01-26  Christian Bruel  <christian.bruel@st.com>
921         * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
923 2016-01-26  Eric Botcazou  <ebotcazou@adacore.com>
925         * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
927 2016-01-26  Richard Biener  <rguenther@suse.de>
929         PR middle-end/69467
930         * match.pd: Guard X * CST CMP 0 pattern with single_use.
932 2016-01-26  Richard Biener  <rguenther@suse.de>
934         PR tree-optimization/69452
935         * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
936         (move_computations_dom_walker::before_dom_children): Rename
937         to ...
938         (move_computations_worker): This.
939         (move_computations): Perform an RPO rather than a DOM walk.
941 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
943         PR target/69442
944         * combine.c (combine_instructions): For REG_EQUAL note with
945         SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
946         to the underlying register.
947         * doc/rtl.texi (REG_EQUAL): Document the behavior of
948         REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
950 2016-01-26  Roger Ferrer Ibáñez  <rofirrim@gmail.com>
952         PR target/67896
953         * config/aarch64/aarch64-builtins.c
954         (aarch64_init_simd_builtin_types): Do not set structural
955         equality to __Poly{8,16,64,128}_t types.
957 2016-01-26  Richard Sandiford  <richard.sandiford@arm.com>
959         PR tree-optimization/69400
960         * wide-int.cc (wi_pack): Take the precision as argument and
961         perform canonicalization here rather than in the callers.
962         Use the main loop to handle all full-width HWIs.  Add a
963         zero HWI if in_len isn't a full result.
964         (wi::divmod_internal): Update accordingly.
965         (wi::mul_internal): Likewise.  Simplify.
967 2016-01-25  Aditya Kumar  <aditya.k7@samsung.com>
968             Sebastian Pop  <s.pop@samsung.com>
970         * graphite-poly.c (apply_poly_transforms): Simplify.
971         (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
972         (print_isl_map): Same.
973         (print_isl_union_map): Same.
974         (print_isl_schedule): New.
975         (debug_isl_schedule): New.
976         * graphite-dependences.c (scop_get_reads): Do not call
977         isl_union_map_add_map that is undocumented isl functionality.
978         (scop_get_must_writes): Same.
979         (scop_get_may_writes): Same.
980         (scop_get_original_schedule): Remove.
981         (scop_get_dependences): Do not call isl_union_map_compute_flow that
982         is deprecated in isl 0.15.  Instead, use isl_union_access_* interface.
983         (compute_deps): Remove.
984         * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
985         (debug_schedule_ast): New.
986         (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
987         set_separate_option.
988         (graphite_regenerate_ast_isl): Add dump.
989         (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
990         from scop->transformed_schedule.
991         (graphite_regenerate_ast_isl): Add more dump.
992         * graphite-optimize-isl.c (optimize_isl): Set
993         scop->transformed_schedule.  Check whether schedules are equal.
994         (apply_poly_transforms): Move here.
995         * graphite-poly.c (apply_poly_transforms): ... from here.
996         (free_poly_bb): Static.
997         (free_scop): Static.
998         (pbb_number_of_iterations_at_time): Remove.
999         (print_isl_ast): New.
1000         (debug_isl_ast): New.
1001         (debug_scop_pbb): New.
1002         * graphite-scop-detection.c (print_edge): Move.
1003         (print_sese): Move.
1004         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
1005         (build_scop_scattering): Remove.
1006         (create_pw_aff_from_tree): Assert instead of bailing out.
1007         (add_condition_to_pbb): Remove unused code, do not fail.
1008         (add_conditions_to_domain): Same.
1009         (add_conditions_to_constraints): Remove.
1010         (build_scop_context): New.
1011         (add_iter_domain_dimension): New.
1012         (build_iteration_domains): Initialize pbb->iterators.
1013         Call add_conditions_to_domain.
1014         (nested_in): New.
1015         (loop_at): New.
1016         (index_outermost_in_loop): New.
1017         (index_pbb_in_loop): New.
1018         (outermost_pbb_in): New.
1019         (add_in_sequence): New.
1020         (add_outer_projection): New.
1021         (outer_projection_mupa): New.
1022         (add_loop_schedule): New.
1023         (build_schedule_pbb): New.
1024         (build_schedule_loop): New.
1025         (embed_in_surrounding_loops): New.
1026         (build_schedule_loop_nest): New.
1027         (build_original_schedule): New.
1028         (build_poly_scop): Call build_original_schedule.
1029         * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
1030         (free_poly_dr): Remove.
1031         (struct poly_bb): Add iterators.  Remove schedule, transformed, saved.
1032         (free_poly_bb): Remove.
1033         (debug_loop_vec): Remove.
1034         (print_isl_ast): Declare.
1035         (debug_isl_ast): Declare.
1036         (scop_do_interchange): Remove.
1037         (scop_do_strip_mine): Remove.
1038         (scop_do_block): Remove.
1039         (flatten_all_loops): Remove.
1040         (optimize_isl): Remove.
1041         (pbb_number_of_iterations_at_time): Remove.
1042         (debug_scop_pbb): Declare.
1043         (print_schedule_ast): Declare.
1044         (debug_schedule_ast): Declare.
1045         (struct scop): Remove schedule.  Add original_schedule,
1046         transformed_schedule.
1047         (free_gimple_poly_bb): Remove.
1048         (print_generated_program): Remove.
1049         (debug_generated_program): Remove.
1050         (unify_scattering_dimensions): Remove.
1051         * sese.c (print_edge): ... here.
1052         (print_sese): ... here.
1053         (debug_edge): ... here.
1054         (debug_sese): ... here.
1055         * sese.h (print_edge): Declare.
1056         (print_sese): Declare.
1057         (dump_edge): Declare.
1058         (dump_sese): Declare.
1060 2016-01-25  Aditya Kumar  <aditya.k7@samsung.com>
1061             Sebastian Pop  <s.pop@samsung.com>
1063         * Makefile.in: Set ISLVER in site.exp.
1065 2016-01-25  Jakub Jelinek  <jakub@redhat.com>
1067         * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
1068         DECL_VALUE_EXPR of new_var even for the non-array case.  Look
1069         through DECL_VALUE_EXPR for expansion.
1071 2016-01-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1073         * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
1074         the frame info after reload completed.
1076 2016-01-25  Jeff Law  <law@redhat.com>
1078         PR tree-optimization/69196
1079         PR tree-optimization/68398
1080         * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
1081         tree-ssa-threadupdate.c.
1082         (determine_bb_domination_status): Prototype
1083         * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
1084         (determine_bb_domination_status): No longer static.
1085         (valid_jump_thread_path): Remove code to detect characteristics
1086         of the jump thread path not associated with correctness.
1087         * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
1088         Correct test for thread path length.  Count PHIs for real operands as
1089         statements that need to be copied.  Do not count ASSERT_EXPRs.
1090         Look at all the blocks in the thread path.  Compute and selectively
1091         filter thread paths based on threading through the latch, threading
1092         a multiway branch or crossing a multiway branch.
1094 2016-01-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1096         * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled):  Add
1097         decl with __attribute__ ((unused)) annotation.
1099 2016-01-25  Ilya Enkovich  <enkovich.gnu@gmail.com>
1101         PR target/69421
1102         * tree-vect-stmts.c (vectorizable_condition): Check vectype
1103         of operands is compatible with a statement vectype.
1105 2016-01-25  Eric Botcazou  <ebotcazou@adacore.com>
1107         * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
1108         improve wording for mixed storage order support.
1110 2016-01-25  Bilyan Borisov  <bilyan.borisov@arm.com>
1112         * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
1113         (vcvt_u64_f64): Likewise.
1114         (vcvta_s64_f64): Likewise.
1115         (vcvta_u64_f64): Likewise.
1116         (vcvtm_s64_f64): Likewise.
1117         (vcvtm_u64_f64): Likewise.
1118         (vcvtn_s64_f64): Likewise.
1119         (vcvtn_u64_f64): Likewise.
1120         (vcvtp_s64_f64): Likewise.
1121         (vcvtp_u64_f64): Likewise.
1123 2016-01-25  Claudiu Zissulescu  <claziss@synopsys.com>
1125         * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
1126         (arc_init): Check validity mll64 option.
1127         (arc_save_restore): Use double load/store instruction.
1128         (arc_expand_movmem): Likewise.
1129         (arc_split_move): Don't split if we have double load/store
1130         instructions. Returns a boolean.
1131         (arc_process_double_reg_moves): Change function to return boolean
1132         instead of a sequence of instructions.
1133         (arc_dwarf_register_span): New function.
1134         * config/arc/arc-protos.h (arc_split_move): Change prototype.
1135         * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
1136         * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
1137         (*movdf_insn): Likewise.
1138         * config/arc/arc.opt (mll64): New option.
1139         * config/arc/predicates.md (even_register_operand): New predicate.
1140         * doc/invoke.texi (ARC Options): Add mll64 documentation.
1142 2016-01-25  Richard Biener  <rguenther@suse.de>
1144         PR lto/69393
1145         * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
1146         * tree-streamer-out.c (pack_ts_base_value_fields): Stream
1147         DECL_NAMELESS.
1148         * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
1150 2016-01-25  Richard Biener  <rguenther@suse.de>
1152         PR tree-optimization/69376
1153         * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
1154         flag.
1155         (VN_INFO_ANTI_RANGE_P): New inline.
1156         (VN_INFO_RANGE_TYPE): Likewise.
1157         * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
1158         SSA_NAME_ANTI_RANGE_P.
1159         (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
1160         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
1161         Properly query VN_INFO_RANGE_TYPE.
1163 2016-01-25  Nick Clifton  <nickc@redhat.com>
1165         PR target/66655
1166         * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
1168 2016-01-23  Tom de Vries  <tom@codesourcery.com>
1170         PR tree-optimization/69426
1171         * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
1172         removed clobber.
1174 2016-01-23  Jakub Jelinek  <jakub@redhat.com>
1176         * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
1177         "the the" with "the" in the comments.
1178         * ipa-devirt.c (build_type_inheritance_graph,
1179         update_type_inheritance_graph): Likewise.
1180         * tree.c (build_function_type_list_1): Likewise.
1181         * cfgloopmanip.c (scale_loop_profile): Likewise.
1182         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
1183         * gimple-ssa-split-paths.c
1184         (find_block_to_duplicate_for_splitting_paths): Likewise.
1185         * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
1186         * expr.c (convert_move): Likewise.
1187         * var-tracking.c (vt_stack_adjustments): Likewise.
1188         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
1189         * tree-vrp.c (test_for_singularity): Likewise.
1191         * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
1192         directly instead of building a temporary tree.
1194         PR bootstrap/69434
1195         * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
1196         remove <algorithm> include.
1198 2016-01-22  Jakub Jelinek  <jakub@redhat.com>
1200         PR target/69432
1201         * config/i386/i386.c: Include dojump.h.
1202         (expand_small_movmem_or_setmem,
1203         expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
1204         fixes.
1205         (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
1206         if dynamic_check != -1.
1208 2016-01-21  Jeff Law  <law@redhat.com>
1210         PR middle-end/69347
1211         * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
1212         record_temporary_equivalences.  Rewritten to avoid unnecessary calls
1213         into dominated_by_p.
1214         (cprop_into_successor_phis): Avoid unnecessary tests.
1216 2016-01-22  Richard Henderson  <rth@redhat.com>
1218         PR target/69416
1219         * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
1220         (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
1222 2016-01-22  Michael Matz  <matz@suse.de>
1224         * system.h (string, algorithm): Include only conditionally.
1225         (new): Include always under C++.
1226         * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
1227         * final.c (toplevel): Ditto.
1228         * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
1229         * genconditions.c (write_header): Make gencondmd.c define
1230         INCLUDE_STRING.
1231         * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
1233         * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
1234         * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
1236 2016-01-22  Christian Bruel  <christian.bruel@st.com>
1238         PR target/68674
1239         * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
1241 2016-01-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1243         PR target/69403
1244         * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
1245         define_insn_and_split.  Ensure operands[1] and operands[0] do not
1246         get assigned the same register.
1248 2016-01-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
1250         * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
1252 2016-01-22  Christian Bruel  <christian.bruel@st.com>
1254         * config/arm/arm-c.c (arm_pragma_target_parse):
1255         Remove warn_builtin_macro_redefined overwrite.
1257 2016-01-22  Eric Botcazou  <ebotcazou@adacore.com>
1259         * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
1260         flag_non_call_exceptions compatibility.
1262 2016-01-22  Jakub Jelinek  <jakub@redhat.com>
1264         PR debug/66668
1265         * dwarf2out.c (add_child_die_after): New function.
1266         (dwarf_qual_info_t): New type.
1267         (dwarf_qual_info): New variable.
1268         (qualified_die_p): New function.
1269         (modified_type_die): For -fdebug-types-section, ensure
1270         canonical order of qualifiers.  Put qualified DIEs adjacent
1271         to the corresponding non-qualified type DIE and search there
1272         for existing qualified DIEs.
1274 2016-01-22  Eric Botcazou  <ebotcazou@adacore.com>
1276         * doc/extend.texi (scalar_storage_order type attribute): Document
1277         restriction on type punning and aliasing, and remove future tense.
1279 2016-01-21  Roman Zhuykov  <zhroma@ispras.ru>
1281         PR target/69252
1282         * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
1283         first stage.
1285 2016-01-21  Jeff Law  <law@redhat.com>
1287         PR middle-end/69347
1288         * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
1289         useless call to record_temporary_equivalences.
1290         * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
1291         allocate 10 slots in the bb_path vector and let it grow as needed.
1292         (fsm_find_control_statement_thread_paths): Similarly for the next_path
1293         vector.
1295 2016-01-21  David Edelsohn  <dje.gcc@gmail.com>
1297         * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
1298         Detangle.
1299         * configure: Regenerate.
1301 2016-01-21  Pat Haugen  <pthaugen@us.ibm.com>
1303         * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
1304         * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
1306 2016-01-21  Bernd Schmidt  <bschmidt@redhat.com>
1308         PR middle-end/66178
1309         * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
1310         drop EXPAND_INITIALIZER.
1311         * rtl.h (contains_symbolic_reference_p): Declare.
1312         * rtlanal.c (contains_symbolic_reference_p): New function.
1313         * simplify-rtx.c (simplify_binary_operation_1): Don't turn
1314         a subtraction into a NOT if symbolic constants are involved.
1316 2016-01-21  Anton Blanchard  <anton@samba.org>
1317             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1319         PR target/63354
1320         * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
1321         #define.
1322         * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
1323         function.
1325 2016-01-21  Ajit Agarwal  <ajitkum@xilinx.com>
1327         * config/microblaze/microblaze.c
1328         (get_branch_target): New.
1329         (insert_wic_for_ilb_runout): New.
1330         (insert_wic): New.
1331         (microblaze_machine_dependent_reorg): New.
1332         (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
1333         * config/microblaze/microblaze.md
1334         (UNSPEC_IPREFETCH): Define.
1335         (iprefetch): New pattern
1336         * config/microblaze/microblaze.opt
1337         (mxl-prefetch): New flag.
1339 2016-01-21  Ajit Agarwal  <ajitkum@xilinx.com>
1341         * config/microblaze/microblaze.h
1342         (FIXED_REGISTERS): Update in macro.
1343         (CALL_USED_REGISTERS): Update in macro.
1345 2016-01-21  Yuri Rumyantsev  <ysrumyan@gmail.com>
1347         PR rtl-optimization/68920
1348         * ifcvt.c (cond_move_process_if_block): Limit number of conditional
1349         moves.
1351 2016-01-21  Vladimir Makarov  <vmakarov@redhat.com>
1353         PR rtl-optimization/68990
1354         * lra-coalesce.c (lra_coalesce): Invalidate value for the result
1355         pseudo instead of inheritance ones.
1357 2016-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1358             Nick Clifton  <nickc@redhat.com>
1360         PR target/69129
1361         PR target/69012
1362         * config/mips/mips.c (mips_compute_frame_info): Initialise
1363         args_size and hard_frame_pointer_offset fields of the frame
1364         structure before calling mips_global_pointer.
1366 2016-01-21  David Edelsohn  <dje.gcc@gmail.com>
1368         * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
1369         label reference.
1370         * configure: Regenerate.
1372 2016-01-21  Richard Biener  <rguenther@suse.de>
1374         * graphite-optimize-isl.c (get_schedule_map): Fix typo.
1376 2016-01-21  Marcin Kościelnicki  <koriakin@0x04.net>
1378         * config/s390/s390.c (s390_asm_declare_function_size): Add code
1379         to actually emit the .size directive.
1381 2016-01-21   Stefan Sørensen  <stefan.sorensen@spectralink.com>
1382              Jakub Jelinek  <jakub@redhat.com>
1384         PR target/69187
1385         PR target/65624
1386         * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
1387         args array size by one to avoid buffer overflow.
1389 2016-01-21  Marcin Kościelnicki  <koriakin@0x04.net>
1391         * config/s390/s390.md (pool_section_start): Use switch_to_section
1392         to select proper read-only data section instead of hardcoding
1393         .rodata.
1394         (pool_section_end): Use switch_to_section to match the above.
1396 2016-01-21  Richard Biener  <rguenther@suse.de>
1398         PR tree-optimization/69378
1399         * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
1400         (set_ssa_val_to): Use it for dominance checks taking into
1401         account not executable edges.
1403 2016-01-21  Jakub Jelinek  <jakub@redhat.com>
1405         PR c++/69355
1406         * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
1407         for bitsize instead of GET_MODE_PRECISION (mode).
1409 2016-01-20  Martin Sebor  <msebor@redhat.com>
1411         PR c/52291
1412         * extend.texi (__sync Builtins): Clarify the semantics of
1413         __sync_fetch_and_OP built-ins on pointers.
1414         (__atomic Builtins): Same.
1416 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
1417             Sebastian Pop  <s.pop@samsung.com>
1419         * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
1420         (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
1421         (is_valid_rename): Same.
1422         (translate_isl_ast_to_gimple::get_rename): Same.
1423         (translate_isl_ast_to_gimple::rename_all_uses): Same.
1424         (translate_isl_ast_to_gimple::rename_uses): Same.
1425         (get_new_name): Check for close_phi nodes.
1426         (copy_loop_phi_args): Use phi_node_kind.
1427         (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
1428         (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
1430 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
1431             Sebastian Pop  <s.pop@samsung.com>
1433         Revert commit r229783.
1434         * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
1435         Remove use of parameter_rename_map.
1436         (copy_def): Remove.
1437         (copy_internal_parameters): Remove.
1438         (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
1439         * sese.c (new_sese_info): Do not initialize parameter_rename_map.
1440         (free_sese_info): Do not free parameter_rename_map.
1441         (set_rename): Do not use parameter_rename_map.
1442         (rename_uses): Update call to set_rename.
1443         (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
1444         * sese.h (parameter_rename_map_t): Remove.
1445         (struct sese_info_t): Remove field parameter_rename_map.
1447 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
1448             Sebastian Pop  <s.pop@samsung.com>
1450         * graphite-isl-ast-to-gimple.c: Fix comment.
1451         * graphite-scop-detection.c (defined_in_loop_p): New.
1452         (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
1453         names defined in loop.
1455 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
1456             Sebastian Pop  <s.pop@samsung.com>
1458         * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
1459         Discard unstructured if-then-else regions.
1461 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
1462             Sebastian Pop  <s.pop@samsung.com>
1464         * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
1465         (cleanup_loop_iter_dom): Remove.
1466         (build_loop_iteration_domains): Remove.
1467         (build_scop_context): Remove.
1468         (build_scop_iteration_domain): Remove.
1469         (add_loop_constraints): New.
1470         (build_iteration_domains): New.
1471         (build_poly_scop): Call build_iteration_domains.
1473 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
1474             Sebastian Pop  <s.pop@samsung.com>
1476         * graphite-scop-detection.c
1477         (scop_detection::harmful_loop_in_region): Free dom and loops.
1478         (scop_detection::loop_body_is_valid_scop): Free bbs.
1480 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
1481             Sebastian Pop  <s.pop@samsung.com>
1483         * graphite-scop-detection.c (record_loop_in_sese): New.
1484         (gather_bbs::before_dom_children): Call record_loop_in_sese.
1485         (build_scops): Remove call to build_sese_loop_nests.
1486         * sese.c (sese_record_loop): Remove.
1487         (build_sese_loop_nests): Remove.
1488         (new_sese_info): Remove region->loops.
1489         (free_sese_info): Same.
1490         * sese.h (sese_contains_loop): Same.
1491         (build_sese_loop_nests): Remove.
1492         (sese_contains_loop): Remove.
1494 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
1495             Sebastian Pop  <s.pop@samsung.com>
1497         * graphite-scop-detection.c (loop_is_valid_scop): Renamed
1498         loop_is_valid_in_scop.
1499         (scop_detection::harmful_stmt_in_region): Renamed
1500         harmful_loop_in_region.
1501         Call loop_is_valid_in_scop.
1503 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
1504             Sebastian Pop  <s.pop@samsung.com>
1506         * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
1507         isl_ast_node_mark.
1509 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
1510             Sebastian Pop  <s.pop@samsung.com>
1512         * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
1513         * graphite.h (struct poly_bb): Remove field is_reduction.
1514         (PBB_IS_REDUCTION): Remove.
1516 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
1517             Sebastian Pop  <s.pop@samsung.com>
1519         * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
1520         (add_pdr_constraints): Same.
1521         (scop_get_reads): Same.
1522         (scop_get_must_writes): Same.
1523         (scop_get_may_writes): Same.
1524         (scop_get_original_schedule): Same.
1525         (extend_schedule): Same.
1526         (apply_schedule_on_deps): Same.
1527         (carries_deps): Same.
1528         (compute_deps): Same.
1529         (scop_get_dependences): Same.
1530         * graphite-isl-ast-to-gimple.c
1531         (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
1532         * graphite-optimize-isl.c (get_schedule_for_band): Same.
1533         (get_schedule_for_band_list): Same.
1534         (get_schedule_map): Same.
1535         (apply_schedule_map_to_scop): Same.
1536         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
1537         (build_loop_iteration_domains): Same.
1538         (add_condition_to_pbb): Same.
1539         (add_param_constraints): Same.
1540         (pdr_add_memory_accesses): Same.
1541         (pdr_add_data_dimensions): Same.
1543 2016-01-20  Sandra Loosemore <sandra@codesourcery.com>
1545         * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
1546         requirements.
1548 2016-01-20  Sandra Loosemore <sandra@codesourcery.com>
1550         * common.opt (feliminate-dwarf2-dups): Replace references to
1551         "DWARF 2" with just "DWARF".
1552         * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
1553         * doc/extend.texi: Likewise.
1554         * doc/cpp.texi: Likewise.
1555         * doc/invoke.texi: Likewise.
1556         (Option Summary): Add -gdwarf to list of Debugging Options.
1557         (Debugging Options): Document -gdwarf.
1558         * doc/contrib.texi: Spell "DWARF" like that.
1560 2016-01-21  Jakub Jelinek  <jakub@redhat.com>
1562         * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
1563         warning.  Fix up formatting.
1565         PR middle-end/67653
1566         * gimplify.c (gimplify_asm_expr): Warn if it is too late to
1567         attempt to mark memory input operand addressable and
1568         call prepare_gimple_addressable in that case.  Don't adjust
1569         input_location for diagnostics, use error_at instead.
1571 2016-01-20  Peter Bergner  <bergner@vnet.ibm.com>
1573         * config/rs6000/ppc-auxv.h: New file.
1574         * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
1575         (cpu_is): Likewise.
1576         (cpu_supports): Likewise.
1577         * config/rs6000/rs6000.c: include "ppc-auxv.h".
1578         (cpu_is_info): New variable.
1579         (cpu_supports_info): Likewise.
1580         (tcb_verification_symbol): Likewise.
1581         (cpu_builtin_p): Likewise.
1582         (cpu_expand_builtin): New function.
1583         (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
1584         (rs6000_init_builtins): Likewise.
1585         (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
1586         * config/rs6000/rs6000.h (TLS_REGNUM): New define.
1587         * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
1588         * configure: Regenerate.
1589         * config.in: Likewise.
1590         * doc/extend.texi (PowerPC Built-in Functions): Document
1591         __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
1593 2016-01-20  David Edelsohn  <dje.gcc@gmail.com>
1595         PR target/68609
1596         * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
1597         domain check.
1598         * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
1599         for V4SFmode.
1601 2016-01-20  Richard Henderson  <rth@redhat.com>
1603         PR bootstrap/69343
1604         PR bootstrap/69339
1605         PR tree-opt/68964
1606         Revert:
1607         * tree.c (tm_define_builtin): New.
1608         (find_tm_vector_type): New.
1609         (build_tm_vector_builtins): New.
1610         (build_common_builtin_nodes): Call it.
1612 2016-01-20  Christophe Lyon  <christophe.lyon@linaro.org>
1614         * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
1615         (arm_fp_ok): Likewise.
1616         (arm_fp): Likewise.
1617         (arm_crypto): Likewise.
1619 2016-01-20  Ilya Enkovich  <enkovich.gnu@gmail.com>
1620             Richard Biener  <rguenther@suse.de>
1622         PR tree-optimization/69328
1623         * tree-vect-stmts.c (vect_is_simple_cond): Check compared
1624         vectors have same number of elements.
1625         (vectorizable_condition): Fix masked version recognition.
1627 2016-01-20  Richard Biener  <rguenther@suse.de>
1629         PR tree-optimization/69345
1630         * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
1631         (VN_INFO_PTR_INFO): Likewise.
1632         * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
1633         info when it is equal between non-dominating SSA names.
1634         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
1635         Make sure to look at original SSA infos.
1637 2016-01-20  Jeff Law  <law@redhat.com>
1639         PR target/25114
1640         * config/m68k/predicates.md (pow2_m1_operand): New predicate
1641         extracted from ...
1642         (reg_or_pow2_m1_operand): Call pow2_m1_operand.
1643         (pc_or_label_operand): New predicate.
1644         * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
1645         tests for small integers that are 2^n - 1.
1647 2016-01-20  Jonathan Wakely  <jwakely@redhat.com>
1649         * doc/invoke.texi (Options Summary): Add '.' after @xref.
1651 2016-01-19  Jeff Law  <law@redhat.com>
1653         PR middle-end/69347
1654         * tree-ssa-threadbackwards.c
1655         (fsm_find_control_statement_thread_paths): Do not try to lookup
1656         FSM paths for SSA_NAMEs appearing in abnormal PHIs.
1658 2016-01-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
1660         * doc/lto.texi: Remove text that says only Gold has linker plugin
1661         support.
1663 2016-01-19  Eric Botcazou  <ebotcazou@adacore.com>
1665         * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
1666         (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
1667         the DIE accordingly.
1668         (modified_type_die): Add REVERSE parameter and pass it recursively,
1669         as well as to base_type_die.  Adjust presence check accordingly.
1670         (base_type_for_mode): Adjust call to modified_type_die.
1671         (add_type_attribute): Add REVERSE parameter and pass it to
1672         modified_type_die.
1673         (generic_parameter_die): Adjust call to add_type_attribute.
1674         (add_scalar_info): Likewise.
1675         (add_subscript_info): Likewise.
1676         (gen_array_type_die): Likewise.
1677         (gen_descr_array_type_die): Likewise.
1678         (gen_entry_point_die): Likewise.
1679         (gen_enumeration_type_die): Likewise.
1680         (gen_formal_parameter_die): Likewise.
1681         (gen_subprogram_die): Likewise.
1682         (gen_variable_die ): Likewise.
1683         (gen_const_die): Likewise.
1684         (gen_field_die): Likewise.
1685         (gen_pointer_type_die): Likewise.
1686         (gen_reference_type_die): Likewise.
1687         (gen_ptr_to_mbr_type_die): Likewise.
1688         (gen_inheritance_die): Likewise.
1689         (gen_subroutine_type_die): Likewise.
1690         (gen_typedef_die): Likewise.
1691         (force_type_die): Adjust call to modified_type_die.
1693 2016-01-19  Sandra Loosemore <sandra@codesourcery.com>
1695         * doc/standards.texi: Copy-editing for grammar, markup, and sentence
1696         flow throughout the file.  Fix broken link to Objective-C 2.0
1697         documentation.
1698         * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
1699         errors.
1701 2016-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
1703         * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
1705 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
1707         PR ipa/66223
1708         * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
1709         (maybe_record_node): Record cxa_pure_virtual as the only possible
1710         target if there are not ohter candidates.
1711         (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
1713 2016-01-19  Richard Biener  <rguenther@suse.de>
1715         * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
1716         (get_memory_order): Likewise.
1718 2016-01-19  Kirill Yukhin  <kirill.yukhin@intel.com>
1720         * tree-vect-stmts.c (vectorizable_store): Check
1721         rhs vectype.
1723 2016-01-19  David Malcolm  <dmalcolm@redhat.com>
1725         PR jit/68446
1726         * gcc.c (driver::decode_argv): Add call to
1727         init_opts_obstack before init_options_struct.
1728         * opts.c (init_opts_obstack): Remove idempotency.
1729         (init_options_struct): Replace call to init_opts_obstack
1730         with a gcc_assert to verify that it has already been called.
1731         * toplev.c (toplev::main): Add call to init_opts_obstack before
1732         calls to init_options_struct.
1733         (toplev::finalize): Move cleanup of opts_obstack next to
1734         cleanup of save_decoded_options, clearing the latter, and
1735         save_decoded_options_count.
1737 2016-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1739         PR target/69135
1740         * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
1741         attribute to unconditional.  Remove %? from output template.
1743 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
1744             Jiong Wang  <jiong.wang@arm.com>
1746         * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
1747         generated from different expand order.
1749 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
1751         * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
1752         Add support for CCMP costing.
1754 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
1756         * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
1757         * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
1758         (fccmpe<mode>): Likewise.
1759         (fcmp): Rename to fcmp and globalize pattern.
1760         (fcmpe): Likewise.
1761         * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
1762         (aarch64_gen_ccmp_next): Add FP support.
1764 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
1766         * target.def (gen_ccmp_first): Update documentation.
1767         (gen_ccmp_next): Likewise.
1768         * doc/tm.texi (gen_ccmp_first): Update documentation.
1769         (gen_ccmp_next): Likewise.
1770         * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
1771         expand_ccmp_expr_1.  Improve comments.
1772         * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
1773         (ccmp_ior<mode>): Remove pattern.
1774         (cmp<mode>): Remove expand.
1775         (cmp): Globalize pattern.
1776         (cstorecc4): Use cc_register.
1777         (mov<mode>cc): Remove ccmp_cc_register check.
1778         * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
1779         Simplify after removal of CC_DNE/* modes.
1780         (aarch64_ccmp_mode_to_code): Remove.
1781         (aarch64_print_operand): Remove 'K' case.  Merge 'm' and 'M' cases.
1782         In 'k' case use integer as condition.
1783         (aarch64_nzcv_codes): Remove inverted cases.
1784         (aarch64_code_to_ccmode): Remove.
1785         (aarch64_gen_ccmp_first): Use cmp pattern directly.  Return the correct
1786         comparison with CC register to be used in folowing CCMP/branch/CSEL.
1787         (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
1788         pattern.  Return the comparison with CC register.  Invert conditions
1789         when bitcode is OR.
1790         * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
1791         * config/aarch64/predicates.md (ccmp_cc_register): Remove.
1793 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
1795         * cgraphunit.c (cgraph_node::reset): Clear thunk info and
1796         instrumented_version.
1798 2016-01-19  Richard Biener  <rguenther@suse.de>
1800         PR tree-optimization/69336
1801         * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
1802         handled components with get_ref_base_and_extent.
1803         (equal_mem_array_ref_p): Adjust.
1805 2016-01-19  Jakub Jelinek  <jakub@redhat.com>
1807         PR debug/65779
1808         * shrink-wrap.c: Include valtrack.h.
1809         (move_insn_for_shrink_wrap): Add DEBUG argument.  If
1810         MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
1811         in between insn and where it will be moved to.  Call
1812         dead_debug_insert_temp.
1813         (prepare_shrink_wrap): Adjust caller.  Call dead_debug_local_init
1814         first and dead_debug_local_finish at the end.
1815         For uses and defs bitmap, handle all regs in between REGNO and
1816         END_REGNO, not just the first one.
1818 2016-01-19  Richard Biener  <rguenther@suse.de>
1820         PR tree-optimization/69352
1821         * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
1822         (equal_mem_array_ref_p): Constrain size and max size properly.
1823         Compare the reverse flag.
1825 2016-01-19  Bernd Schmidt  <bschmidt@redhat.com>
1827         * ira.c (ira): Update regstat data if we deleted insns.
1829 2016-01-19  Jakub Jelinek  <jakub@redhat.com>
1831         PR rtl-optimization/68955
1832         PR rtl-optimization/64557
1833         * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
1834         here.  Fix up formatting.
1835         * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
1837 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
1839         PR lto/69133
1840         * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
1841         assume that the node has body.
1842         * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
1843         check.
1845 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
1847         * lto-streamer-out.c (lto_output): Do not stream instrumentation
1848         thunks.
1850 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
1852         * symtab.c (symtab_node::asm_name): Do not call printable name directly.
1853         (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
1855 2016-01-19  Martin Jambor  <mjambor@suse.cz>
1856             Martin Liska  <mliska@suse.cz>
1857             Michael Matz <matz@suse.de>
1859         * Makefile.in (OBJS): Add new source files.
1860         (GTFILES): Add hsa.c.
1861         * common.opt (disable_hsa): New variable.
1862         (-Whsa): New warning.
1863         * config.in (ENABLE_HSA): New.
1864         * configure.ac: Treat hsa differently from other accelerators.
1865         (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
1866         $enable_offloading.
1867         (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
1868         * doc/install.texi (Configuration): Document --with-hsa-runtime,
1869         --with-hsa-runtime-include, --with-hsa-runtime-lib and
1870         --with-hsa-kmt-lib.
1871         * doc/invoke.texi (-Whsa): Document.
1872         (hsa-gen-debug-stores): Likewise.
1873         * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
1874         to invoke offload compiler for hsa acclerator.
1875         * opts.c (common_handle_option): Determine whether HSA offloading
1876         should be performed.
1877         * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
1878         * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
1879         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
1880         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
1881         * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
1882         * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
1883         GF_OMP_FOR_KIND_GRID_LOOP.
1884         (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
1885         (pp_gimple_stmt_1): Likewise.
1886         * gimple-walk.c (walk_gimple_stmt): Likewise.
1887         * gimple.c (gimple_build_omp_grid_body): New function.
1888         (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
1889         * gimple.def (GIMPLE_OMP_GRID_BODY): New.
1890         * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
1891         GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
1892         GF_OMP_TEAMS_GRID_PHONY.
1893         (gimple_statement_omp_single_layout): Updated comments.
1894         (gimple_build_omp_grid_body): New function.
1895         (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
1896         (gimple_omp_for_grid_phony): New function.
1897         (gimple_omp_for_set_grid_phony): Likewise.
1898         (gimple_omp_parallel_grid_phony): Likewise.
1899         (gimple_omp_parallel_set_grid_phony): Likewise.
1900         (gimple_omp_teams_grid_phony): Likewise.
1901         (gimple_omp_teams_set_grid_phony): Likewise.
1902         (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
1903         * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
1904         (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
1905         (BUILT_IN_GOMP_TARGET): Updated type.
1906         * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
1907         (adjust_for_condition): New function.
1908         (get_omp_for_step_from_incr): Likewise.
1909         (extract_omp_for_data): Moved parts to adjust_for_condition and
1910         get_omp_for_step_from_incr.
1911         (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
1912         (fixup_child_record_type): Bail out if receiver_decl is NULL.
1913         (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
1914         (scan_omp_parallel): Do not create child functions for phony
1915         constructs.
1916         (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
1917         (scan_omp_1_op): Checking assert we are not remapping to
1918         ERROR_MARK.  Also also handle GIMPLE_OMP_GRID_BODY.
1919         (parallel_needs_hsa_kernel_p): New function.
1920         (expand_parallel_call): Register apprpriate parallel child
1921         functions as HSA kernels.
1922         (grid_launch_attributes_trees): New type.
1923         (grid_attr_trees): New variable.
1924         (grid_create_kernel_launch_attr_types): New function.
1925         (grid_insert_store_range_dim): Likewise.
1926         (grid_get_kernel_launch_attributes): Likewise.
1927         (get_target_argument_identifier_1): Likewise.
1928         (get_target_argument_identifier): Likewise.
1929         (get_target_argument_value): Likewise.
1930         (push_target_argument_according_to_value): Likewise.
1931         (get_target_arguments): Likewise.
1932         (expand_omp_target): Call get_target_arguments instead of looking
1933         up for teams and thread limit.
1934         (grid_expand_omp_for_loop): New function.
1935         (grid_arg_decl_map): New type.
1936         (grid_remap_kernel_arg_accesses): New function.
1937         (grid_expand_target_kernel_body): New function.
1938         (expand_omp): Call it.
1939         (lower_omp_for): Do not emit phony constructs.
1940         (lower_omp_taskreg): Do not emit phony constructs but create for them
1941         a temporary variable receiver_decl.
1942         (lower_omp_taskreg): Do not emit phony constructs.
1943         (lower_omp_teams): Likewise.
1944         (lower_omp_grid_body): New function.
1945         (lower_omp_1): Call it.
1946         (grid_reg_assignment_to_local_var_p): New function.
1947         (grid_seq_only_contains_local_assignments): Likewise.
1948         (grid_find_single_omp_among_assignments_1): Likewise.
1949         (grid_find_single_omp_among_assignments): Likewise.
1950         (grid_find_ungridifiable_statement): Likewise.
1951         (grid_target_follows_gridifiable_pattern): Likewise.
1952         (grid_remap_prebody_decls): Likewise.
1953         (grid_copy_leading_local_assignments): Likewise.
1954         (grid_process_kernel_body_copy): Likewise.
1955         (grid_attempt_target_gridification): Likewise.
1956         (grid_gridify_all_targets_stmt): Likewise.
1957         (grid_gridify_all_targets): Likewise.
1958         (execute_lower_omp): Call grid_gridify_all_targets.
1959         (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
1960         * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
1961         (tree_omp_clause): Added union field dimension.
1962         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
1963         * tree.c (omp_clause_num_ops): Added number of arguments of
1964         OMP_CLAUSE__GRIDDIM_.
1965         (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
1966         (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
1967         * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
1968         (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
1969         (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
1970         (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
1971         * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
1972         * tree-pass.h (make_pass_gen_hsail): Declare.
1973         (make_pass_ipa_hsa): Likewise.
1974         * ipa-hsa.c: New file.
1975         * lto-section-in.c (lto_section_name): Add hsa section name.
1976         * lto-streamer.h (lto_section_type): Add hsa section.
1977         * timevar.def (TV_IPA_HSA): New.
1978         * hsa-brig-format.h: New file.
1979         * hsa-brig.c: New file.
1980         * hsa-dump.c: Likewise.
1981         * hsa-gen.c: Likewise.
1982         * hsa.c: Likewise.
1983         * hsa.h: Likewise.
1984         * toplev.c (compile_file): Call hsa_output_brig.
1985         * hsa-regalloc.c: New file.
1987 2016-01-18  Jeff Law  <law@redhat.com>
1989         PR tree-optimization/69320
1990         * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
1991         ranged object, do nothing if the RHS constant is not [0..1].
1992         (optimize_stmt): Comparing a boolean ranged object against a
1993         constant outside [0..1] results in a compile-time constant.
1995         * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
1996         test.
1998 2016-01-18  Sandra Loosemore <sandra@codesourcery.com>
2000         * doc/invoke.texi (Invoking GCC): Add new section to menu.
2001         (Option Summary): Update to reflect new section and moved options.
2002         (C++ Dialect Options): Move -fstats to new section.
2003         (Debugging Options): Move all dump, statistics, and other GCC
2004         developer options to new section.  Rewrite section introduction
2005         and re-order remaining options to put the more basic ones first.
2006         (Optimization Options): Move -fira-verbose and -flto-report* to
2007         new section.
2008         (Developer Options): New section incorporating moved options.
2009         * doc/cppopts.texi (-dM): Update cross-reference.
2011 2016-01-18  Richard Henderson  <rth@redhat.com>
2013         PR target/69176
2014         * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
2015         operands to pseudo only if CSE is expected.  Split long immediate
2016         operands only after reload, and for the stack pointer.
2017         (*add<GPI>3_pluslong): Remove.
2018         (*addsi3_aarch64, *adddi3_aarch64): Merge into...
2019         (*add<GPI>3_aarch64): ... here.  Add r/rk/Upl alternative.
2020         (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
2021         (*add<GPI>3 peepholes): New.
2022         (*add<GPI>3 splitters): New.
2023         * config/aarch64/constraints.md (Upl): New.
2024         * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
2026 2016-01-18  Richard Biener  <rguenther@suse.de>
2028         PR tree-optimization/69297
2029         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
2030         stmt at most once.
2031         (vect_bb_vectorization_profitable_p): Clear visited flag again.
2033 2016-01-18  Yuri Rumyantsev  <ysrumyan@gmail.com>
2035         PR middle-end/68542
2036         * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
2037         of mixind vector and scalar types.
2038         (fold_relational_const): Add handling of vector
2039         comparison with boolean result.
2040         * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
2041         comparison of vector operands with boolean result for EQ/NE only.
2042         (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
2043         (verify_gimple_cond): Likewise.
2044         * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
2045         valid type of VAL.
2047 2016-01-18  Joseph Myers  <joseph@codesourcery.com>
2049         * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
2050         !TARGET_OCTEON.
2052 2016-01-18  Richard Biener  <rguenther@suse.de>
2054         PR middle-end/69308
2055         * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
2057 2016-01-18  Tom de Vries  <tom@codesourcery.com>
2059         * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
2061 2016-01-18  Tom de Vries  <tom@codesourcery.com>
2063         * omp-low.c (set_oacc_fn_attrib): Make extern.
2064         * omp-low.h (set_oacc_fn_attrib): Declare.
2065         * tree-parloops.c (struct reduction_info): Add reduc_addr field.
2066         (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
2067         (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
2068         Add and handle function parameter oacc_kernels_p.
2069         (find_reduc_addr, get_omp_data_i_param): New function.
2070         (ref_conflicts_with_region, oacc_entry_exit_ok_1)
2071         (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
2072         (parallelize_loops): Add and handle function parameter oacc_kernels_p.
2073         Calculate dominance info.  Skip loops that are not in a kernels region
2074         in oacc_kernels_p mode.  Skip inner loops of parallelized loops.
2075         (pass_parallelize_loops::execute): Call parallelize_loops with
2076         oacc_kernels_p argument.
2077         (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
2078         New member function.
2079         (pass_parallelize_loops::bool oacc_kernels_p): New member var.
2080         * passes.def: Add argument to pass_parallelize_loops instantation.
2082 2016-01-18  Tom de Vries  <tom@codesourcery.com>
2084         * tree-parloops.c (pass_parallelize_loops::execute): Allow
2085         pass_parallelize_loops to be run outside the loop pipeline.
2087 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
2089         * tree-scalar-evolution.c (follow_copies_to_constant): New.
2090         (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
2092 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
2094         PR target/63679
2095         * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
2096         using get_ref_base_and_extent.
2097         (equal_mem_array_ref_p): New.
2098         (hashable_expr_equal_p): Add call to previous.
2100 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
2102         PR target/63679
2103         * tree-sra.c (disqualified_constants, constant_decl_p): New.
2104         (sra_initialize): Allocate disqualified_constants.
2105         (sra_deinitialize): Free disqualified_constants.
2106         (disqualify_candidate): Update disqualified_constants when appropriate.
2107         (create_access): Scan for constant-pool entries as we go along.
2108         (scalarizable_type_p): Add check against type_contains_placeholder_p.
2109         (maybe_add_sra_candidate): Allow constant-pool entries.
2110         (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
2111         (initialize_constant_pool_replacements): New.
2112         (sra_modify_assign): Avoid mangling assignments created by previous,
2113         and don't generate writes into constant pool.
2114         (sra_modify_function_body): Call initialize_constant_pool_replacements.
2116 2016-01-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
2118         * config/i386/i386.c (scalar_to_vector_candidate_p): Support
2119         andnot instruction.
2120         (scalar_chain::convert_op): Likewise.
2121         * config/i386/i386.md (*andndi3_doubleword): New.
2123 2016-01-18  Richard Biener  <rguenther@suse.de>
2125         PR tree-optimization/69170
2126         * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
2127         building a vector from scalar results of a pattern stmt.
2129 2016-01-18  Jakub Jelinek  <jakub@redhat.com>
2131         * haifa-sched.c (autopref_multipass_init): Work around
2132         -Wmaybe-uninitialized warning.
2134 2016-01-18  Thomas Preud'homme  <thomas.preudhomme@arm.com>
2136         * config/arm/arm.c (thumb1_reorg): Check that the comparison is
2137         against the constant 0.
2139 2016-01-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2141         PR tree-optimization/68799
2142         * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
2143         look up phi candidates in the statement-candidate map.
2144         (phi_add_costs): Likewise.
2145         (record_phi_increments): Likewise.
2146         (phi_incr_cost): Likewise.
2147         (ncd_with_phi): Likewise.
2148         (all_phi_incrs_profitable): Likewise.
2150 2016-01-17  Jakub Jelinek  <jakub@redhat.com>
2152         * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
2153         -Wmaybe-uninitialized warning.
2155 2016-01-16  Sandra Loosemore  <sandra@codesourcery.com>
2157         * doc/invoke.texi (Invoking GCC): Add new section to menu.
2158         (Option Summary): Update to reflect new section and moved options.
2159         (C++ Dialect Options): Move -fvtable-verify and related options.
2160         (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
2161         and profiling-related options.
2162         (Optimization Options): Move profile generation options and
2163         -fstack-protector and related options.
2164         (Instrumentation Options): New section incorporating moved options.
2165         (Code Generation Options): Move -finstrument-functions and
2166         related options, -fstack-check, -fstack-limit*, and -fbounds-check.
2168 2016-01-16  Tom de Vries  <tom@codesourcery.com>
2170         * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
2172 2016-01-16  Tom de Vries  <tom@codesourcery.com>
2174         * omp-low.c (expand_omp_atomic_fetch_op):  Release defs of update stmt.
2176 2016-01-16  Richard Sandiford  <richard.sandiford@arm.com>
2178         * hash-table.h (hash_table::empty): Turn into an inline wrapper
2179         that checks whether the table is already empty.  Rename the
2180         original implementation to...
2181         (hash_table::empty_slot): ...this new private function.
2183 2016-01-15  David Malcolm  <dmalcolm@redhat.com>
2185         PR diagnostic/68899
2186         * diagnostic-show-locus.c (layout::print_source_line): Move x
2187         offset of line until after call to
2188         get_line_width_without_trailing_whitespace.
2190 2016-01-15  Jeff Law  <law@redhat.com>
2192         PR tree-optimization/69270
2193         * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
2194         tree-ssa-dom.c.  Improve test for [0..1] ranve from VRP.
2195         * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
2196         * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
2197         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
2198         ssa_name_has_boolean_range and constant_boolean_node.
2200 2016-01-15  Vladimir Makarov  <vmakarov@redhat.com>
2202         PR rtl-optimization/69030
2203         * lra-spills.c (remove_pseudos): Check nrefs and make the function
2204         returning bool.
2205         (spill_pseudos): Delete debug insn for dead pseudo.
2206         (lra_spill): Initiate spill_hard_reg and slots memory separately.
2208 2016-01-15  Jiong Wang  <jiong.wang@arm.com>
2210         * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
2211         New.
2212         (TYPES_UNOPUS): Likewise.
2213         * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
2214         builtin type, from UNOP to UNOPUS.
2215         (lbtruncuv4sf): Likewise.
2216         (lbtruncuv2df): Likewise.
2217         (lrounduv2sf): Likewise.
2218         (lrounduv4sf): Likewise.
2219         (lrounduv2df): Likewise.
2220         (lroundusf): Likewise.
2221         (lroundusf): Likewise.
2222         (lceiluv2sf): Likewise.
2223         (lceiluv4sf): Likewise.
2224         (lceiluv2df): Likewise.
2225         (lceilusf): Likewise.
2226         (lceiludf): Likewise.
2227         (lflooruv2sf): Likewise.
2228         (lflooruv4sf): Likewise.
2229         (lflooruv2df): Likewise.
2230         (lfloorusf): Likewise.
2231         (lfloorudf): Likewise.
2232         (lfrintnuv2sf): Likewise.
2233         (lfrintnuv4sf): Likewise.
2234         (lfrintnuv2df): Likewise.
2235         (lfrintnusf): Likewise.
2236         (lfrintnudf): Likewise.
2237         * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
2238         conversion.
2239         (vcvtq_u32_f32): Likewise.
2240         (vcvtq_u64_f64): Likewise.
2241         (vcvta_u32_f32): Likewise.
2242         (vcvtaq_u32_f32): Likewise.
2243         (vcvtaq_u64_f64): Likewise.
2244         (vcvtm_u32_f32): Likewise.
2245         (vcvtmq_u32_f32): Likewise.
2246         (vcvtmq_u64_f64): Likewise.
2247         (vcvtn_u32_f32): Likwise.
2248         (vcvtnq_u32_f32): Likewise.
2249         (vcvtnq_u64_f64): Likewise.
2250         (vcvtp_u32_f32): Likewise.
2251         (vcvtpq_u32_f32): Likewise.
2252         (vcvtpq_u64_f64): Likewise.
2253         (vcvtmd_u64_f64): Likewise.
2254         (vcvtms_u32_f32): Likewise.
2255         (vcvtad_u64_f64): Likewise.
2256         (vcvtas_u32_f32): Likewise.
2257         (vcvtnd_u64_f64): Likewise.
2258         (vcvtns_u32_f32): Likewise.
2259         (vcvtpd_u64_f64): Likewise.
2260         (vcvtps_u32_f32): Likewise.
2262 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2264         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
2265         CSEL of zero_extended registers.
2267 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2269         * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
2270         Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
2272 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2274         * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
2275         false when argument string is not found in the attributes table
2276         at all.
2278 2016-01-15  David Edelsohn  <dje.gcc@gmail.com>
2280         PR target/68609
2281         * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
2282         (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
2283         * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
2284         precision estimate.
2286 2016-01-15  Richard Biener  <rguenther@suse.de>
2288         PR tree-optimization/66856
2289         * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
2290         * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
2291         (vect_create_new_slp_node): Increment stmt reference count.
2292         (vect_get_and_check_slp_defs): Make sure stmts are nor already in
2293         an SLP tree before swapping operands.
2294         (vect_build_slp_tree): Likewise.
2295         (destroy_bb_vec_info): Free stmt info after SLP instances.
2296         * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
2297         * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
2298         (STMT_VINFO_NUM_SLP_USES): New macro.
2300 2016-01-15  Richard Biener  <rguenther@suse.de>
2302         PR debug/69137
2303         * dwarf2out.c (add_linkage_name_raw): New function split out from ...
2304         (add_linkage_name): ... here.
2305         (gen_typedef_die): Use add_linkage_name_raw instead of
2306         add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
2307         if necessary.
2309 2016-01-15  Cesar Philippidis  <cesar@codesourcery.com>
2311         * gimplify.c (oacc_default_clause): Decode reference and pointer
2312         types for both kernels and parallel regions.
2314 2016-01-15  Richard Sandiford  <richard.sandiford@arm.com>
2316         PR middle-end/69246
2317         * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
2319 2016-01-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
2321         * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
2322         (convert_scalars_to_vector): Likewise.
2324 2016-01-15  Jonathan Wakely  <jwakely@redhat.com>
2326         * doc/extend.texi (Type Traits): Fix grammar.
2328 2016-01-15  Martin Jambor  <mjambor@suse.cz>
2330         * tree-inline.c (remap_decl): Use existing dclarations if
2331         remapping a type and prevent_decl_creation_for_types.
2332         (replace_locals_stmt): Do an initial remapping of non-VLA typed
2333         decls first.  Do real remapping with
2334         prevent_decl_creation_for_types set.
2335         * tree-inline.h (copy_body_data): New field
2336         prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
2337         padding.
2339 2016-01-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>
2341         * config/s390/s390.opt (mmvcle): More verbose help text.
2343 2016-01-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>
2345         * config/s390/s390.opt: Add period to -mzvector option text.
2347 2016-01-15  Richard Biener  <rguenther@suse.de>
2349         PR tree-optimization/68961
2350         * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
2351         of invariants in stores again.
2353 2016-01-15  Sebastian Huber  <sebastian.huber@embedded-brains.de>
2355         * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
2357 2016-01-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
2359         * config/i386/i386.c (ix86_expand_branch): Don't split
2360         DI mode xor instruction to SI mode.
2362 2016-01-15  Jan Hubicka  <hubicka@ucw.cz>
2364         PR ipa/68148
2365         * ipa-icf.c (sem_function::merge): Virtual functions may become
2366         reachable even if they address is not taken and there are no
2367         idrect calls.
2369 2016-01-15  Jan Hubicka  <hubicka@ucw.cz>
2371         * lto-streamer-out.c (subtract_estimated_size): New function.
2372         (get_symbol_initial_value): Use it.
2374 2016-01-15  Christian Bruel  <christian.bruel@st.com>
2376         PR target/65837
2377         * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
2378         (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
2379         (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
2380         use add_builtin_function_ext_scope instead of add_builtin_function.
2381         (neon_set_p, neon_crypto_set_p): Remove.
2382         (arm_init_builtins): Always call arm_init_neon_builtins and
2383         arm_init_crypto_builtins.
2384         (arm_expand_builtin): Check that builtins are allowed for the arch.
2385         * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
2386         * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
2387         arm_init_neon_builtins call.
2389 2016-01-15  Richard Biener  <rguenther@suse.de>
2391         PR tree-optimization/69117
2392         * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
2393         * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
2394         of the leader conservatively.
2395         (free_scc_vn): Restore original SSA name infos.
2397 2016-01-14  Jeff Law  <law@redhat.com>
2399         PR tree-optimization/69270
2400         * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
2401         single bit of precision, verify it's also unsigned.
2402         (record_edge_info): Use constant_boolean_node rather than fold_convert
2403         to convert boolean_true/boolean_false to the right type.
2405 2016-01-14  Richard Henderson  <rth@redhat.com>
2407         PR rtl-opt/69014
2408         * loop-doloop.c (record_reg_sets): New.
2409         (doloop_optimize): Reject the transform if the sequence
2410         clobbers registers live at the end of the loop block.
2411         (doloop_optimize_loops): Enable df_live if needed.
2413 2016-01-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
2415         * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
2416         * gcc/config/rs6000/rs6000.c: Likewise.
2417         * gcc/config/rs6000/rs6000.h: Likewise.
2418         * gcc/config/rs6000/rs6000.md: Likewise.
2419         * gcc/doc/extend.texi: Likewsie.
2421 2016-01-14  Jeff Law  <law@redhat.com>
2423         * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
2424         typo.
2426 2016-01-14  Richard Henderson  <rth@redhat.com>
2428         PR c/69272
2429         PR tree-opt/68964
2430         * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
2431         * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
2432         instead of builtin_decl_declared_p to test for declaration.
2434 2016-01-14  Nicklas Bo Jensen  <nbjensen@gmail.com>
2436         * doc/loop.texi (Loop Analysis and Representation): Document
2437         loop_depth function.
2439 2016-01-14  Tom de Vries  <tom@codesourcery.com>
2441         PR tree-optimization/68773
2442         * omp-low.c (expand_omp_target): Don't set force_output.
2443         * varpool.c (varpool_node::get_create): Same.
2444         * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
2445         offload_funcs with force_output.
2447 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
2449         PR debug/69244
2450         * lra-eliminations.c (move_plus_up): Don't change anything if either
2451         the outer or inner subreg mode is not MODE_INT.
2452         * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
2453         integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
2455 2016-01-14  Alan Lawrence  <alan.lawrence@arm.com>
2457         * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
2458         reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
2459         reduc_uplus_@var{m}): Remove.
2460         * expr.c (expand_expr_real_2): Remove expansion path for
2461         reduc_[us](min|max|plus) optabs.
2462         * optabs-tree.c (scalar_reduc_to_vector): Remove.
2463         * optabs-tree.h (scalar_reduc_to_vector): Remove.
2464         * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
2465         reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
2466         * tree-vect-loop.c (vectorizable_reduction): Remove test for
2467         reduc_[us](min|max|plus) optabs.
2469 2016-01-14  Alan Lawrence  <alan.lawrence@arm.com>
2471         * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
2472         (reduc_plus_scal_v2sf): New.
2473         (reduc_smax_v2sf): Rename to...
2474         (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
2475         (reduc_smin_v2sf): Rename to...
2476         (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
2478 2016-01-14  Jan Hubicka  <hubicka@ucw.cz>
2480         * alias.c (compare_base_symbol_refs): New function.
2481         (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
2482         it.
2484 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
2486         PR middle-end/68146
2487         PR tree-optimization/69155
2488         * tree-complex.c: Include cfganal.h.
2489         (phis_to_revisit): New variable.
2490         (extract_component): Add phiarg_p argument.  Assert that returned
2491         SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
2492         (update_phi_components): Partly rewrite to use loop over real/imag
2493         components instead of code duplication.  If extract_component returns
2494         SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
2495         create_tmp_reg into the PHI node instead, and mention the phi triplet
2496         in phis_to_revisit.
2497         (tree_lower_complex): Walk bbs in rpo order.  Adjust phis recorded
2498         in phis_to_revisit at the end.
2500 2016-01-14  Richard Biener  <rguenther@suse.de>
2502         PR tree-optimization/68060
2503         * tree-vect-loop.c (vect_is_simple_reduction): Check the
2504         outer loop reduction is only used in the inner loop before
2505         detecting a double reduction.
2507 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
2509         PR target/68269
2510         * combine.c (expand_field_assignment): Punt if compute_mode is
2511         unsupported scalar mode.
2513 2016-01-14  Richard Biener  <rguenther@suse.de>
2515         PR tree-optimization/66856
2516         * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
2517         SLP node only if it built successfully.
2518         (vect_analyze_slp_instance): Adjust.
2520 2016-01-14  Jeff Law  <law@redhat.com>
2522         PR tree-optimization/69270
2523         * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
2524         (record_edge_info): Use it.  Convert boolean_{true,false}_node
2525         to the type of op0.
2527 2016-01-13  Jan Hubicka  <hubicka@ucw.cz>
2529         PR ipa/66487
2530         * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
2531         use block_ultimate_origin
2532         (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
2534 2016-01-13  Sandra Loosemore <sandra@codesourcery.com>
2536         * doc/invoke.texi (Submodel Options): Rename section to
2537         "Machine-Dependent Options" to better reflect its content.
2538         Rewrite introductory text to remove archaic CPU names.
2539         Update references.
2541 2016-01-13  Sandra Loosemore <sandra@codesourcery.com>
2543         * doc/invoke.texi (Code Gen Options): Move section up in file,
2544         before target-specific options.  Update menu and option summary
2545         to reflect the new section ordering.
2547 2016-01-13  Jonathan Wakely  <jwakely@redhat.com>
2549         * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
2550         (C++ Dialect Options): Add cross-reference to -std option.
2551         * doc/standards.texi (C++ Language): Document C++14 support.
2553 2016-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
2555         * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
2556         for pack/unpack functions for __ibm128.
2557         (PACK_IF): Likewise.
2558         (UNPACK_IF): Likewise.
2560         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
2561         support for __ibm128 pack/unpack functions.
2562         (rs6000_invalid_builtin): Likewise.
2563         (rs6000_init_builtins): Likewise.
2564         (rs6000_opt_masks): Likewise.
2566         * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
2567         (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
2568         functions
2569         (RS6000_BTM_COMMON): Likewise.
2571         * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
2572         (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
2573         disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
2574         128-bit floating point.  Add support for the double values to be
2575         in Altivec registers for TF/IF packing and unpacking, but restrict
2576         TD packing sub-fields to be FPR registers.  Don't allow overlapped
2577         register support for packing.  Allow pack inputs to be memory
2578         locations.  Don't build generator functions for unpack<mode>_dm
2579         and unpack<mode>_nodm.
2580         (unpack<mode>_dm): Likewise.
2581         (unpack<mode>_nodm): Likewise.
2582         (pack<mode>): Likewise.
2584         * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
2585         built-in functions to pack/unpack explicit __ibm128 values.
2586         (__builtin_unpack_ibm128): Likewise.
2588         * doc/extend.texi (PowerPC Built-in Functions): Document
2589         __builtin_pack_ibm128 and __builtin_unpack_ibm128.
2591 2016-01-13  Bernd Schmidt  <bschmidt@redhat.com>
2593         PR c/66208
2594         * c-common.c (check_function_nonnull): Remove unnecessary declaration.
2595         Add new arg loc and pass it down as context.
2596         (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
2597         to the location to use for the warning.
2598         (check_function_arguments): New arg loc.  All callers changed.  Pass
2599         it to check_function_nonnull.
2600         * c-common.h (check_function_arguments): Adjust declaration.
2602 2016-01-13  Jakub Jelinek  <jakub@redhat.com>
2604         PR tree-optimization/69156
2605         * gimple.c (validate_type): Removed.
2606         (gimple_builtin_call_types_compatible_p): Use
2607         useless_type_conversion_p instead of validate_type.
2608         * value-prof.c (gimple_stringop_fixed_value): Fold
2609         icall_size to correct type.
2611 2016-01-13  Jonathan Wakely  <jwakely@redhat.com>
2613         * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
2614         effects.
2616 2016-01-13  Richard Henderson  <rth@redhat.com>
2618         PR tree-opt/68964
2619         * target.def (builtin_tm_load, builtin_tm_store): Remove.
2620         * config/i386/i386.c (ix86_builtin_tm_load): Remove.
2621         (ix86_builtin_tm_store): Remove.
2622         (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
2623         (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
2624         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
2625         (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
2626         * doc/tm.texi: Rebuild.
2628         * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
2629         (BUILT_IN_TM_MEMCPY_RTWN): New.
2630         * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
2631         fallback from vector to integer helpers.
2632         (build_tm_load): Handle vector types directly, instead of
2633         via target hook.
2634         (build_tm_store): Likewise.
2635         (expand_assign_tm): Prepare for register types not handled by
2636         the above.  Copy them to memory and use memcpy.
2637         * tree.c (tm_define_builtin): New.
2638         (find_tm_vector_type): New.
2639         (build_tm_vector_builtins): New.
2640         (build_common_builtin_nodes): Call it.
2642 2016-01-13  Uros Bizjak  <ubizjak@gmail.com>
2644         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
2645         TARGET_SSE_MATH without TARGET_SSE2.  Rewrite.
2647 2016-01-13  Tom de Vries  <tom@codesourcery.com>
2649         PR tree-optimization/69169
2650         * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
2651         handled_struct_type param.
2652         (create_variable_info_for, intra_create_variable_infos): Call
2653         create_variable_info_for_1 with extra arg.
2655 2016-01-13  Yvan Roux  <yvan.roux@linaro.org>
2657         * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
2658         and "armv8.1-a+crc" entries.
2660 2016-01-13  Alexander Fomin  <alexander.fomin@intel.com>
2662         PR target/69228
2663         * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
2664         Change first operand predicate from register_or_constm1_operand
2665         to register_operand.
2666         (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
2667         (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
2668         (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
2669         (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
2670         (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
2671         (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
2672         (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
2673         * config/i386/i386.c (ix86_expand_builtin): Remove first operand
2674         comparison with constm1_rtx from vec_prefetch_gen part.
2676 2016-01-13  Richard Biener  <rguenther@suse.de>
2678         PR tree-optimization/69013
2679         * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
2680         Exchange assert for a test.
2682 2016-01-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2684         PR target/69247
2685         * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
2687 2016-01-13  Richard Biener  <rguenther@suse.de>
2689         PR tree-optimization/69242
2690         * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
2691         assert with a check.
2693 2016-01-13  Richard Biener  <rguenther@suse.de>
2695         PR tree-optimization/69186
2696         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
2697         Properly guard vect_update_misalignment_for_peel call.
2699 2016-01-12  Jeff Law  <law@redhat.com>
2701         PR tree-optimization/pr67755
2702         * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
2703         "need_profile_correction".
2704         (thread_block_1): Initialize new field to false by default.  If we
2705         have multiple thread paths through a common joiner to different
2706         final targets, then set new field to true.
2707         (compute_path_counts): Only do count adjustment when it's really
2708         needed.
2710 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
2712         * doc/invoke.texi (Spec Files): Move section down in file, past
2713         all command-line option descriptions.
2715 2016-01-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2717         PR middle-end/54809
2718         * doc/gty.texi: Remove documentation of mark_hook.
2719         * gengtype.c (struct write_types_data): Remove code to support
2720         mark_hook attribute.
2721         (walk_type): Likewise.
2722         (write_func_for_structure): Likewise.
2724 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
2726         * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
2727         Directory Options, and -specs= to Overall Options.
2728         (Overall Options): Adjust similarly.  Reorder to group related
2729         options together.  Make -specs= cross-reference the spec file details.
2730         (Directory Options): Adjust similarly.
2732 2016-01-12  Jeff Law  <law@redhat.com>
2734         * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
2736 2016-01-12  Olivier Hainque  <hainque@adacore.com>
2738         * gcc.c (spec_undefvar_allowed): New global.
2739         (process_command): Set to true when running for --version or --help,
2740         alone or together.
2741         (getenv_spec_function): When the variable is not defined, use the
2742         variable name as the variable value if we're allowed not to issue
2743         a fatal error.
2745 2016-01-12  Bin Cheng  <bin.cheng@arm.com>
2747         PR tree-optimization/68911
2748         * tree-vrp.c (adjust_range_with_scev): Check overflow in range
2749         information computed for expression "init + nit * step".
2751 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
2753         * doc/invoke.texi (Invoking GCC): Copy-edit.  Incorporate information
2754         about name of GCC executable.  Remove deleted node from menu.
2755         (Directory Options) <-B>: Remove cross-reference to deleted node.
2756         (Target Options): Delete section.
2758 2016-01-12  Christian Bruel  <christian.bruel@st.com>
2760         PR target/69180
2761         * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
2762         for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
2764 2016-01-12  Jakub Jelinek  <jakub@redhat.com>
2766         PR target/69198
2767         * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
2768         aligned_mem is properly set for AVX512-VL floating point masked
2769         stores.
2771         PR target/69175
2772         * ifcvt.c (cond_exec_process_if_block): When removing the last
2773         insn from then_bb, remove also any possible barriers that follow it.
2775 2016-01-12  H.J. Lu  <hongjiu.lu@intel.com>
2777         PR target/68456
2778         PR target/69226
2779         * config/i386/iamcu.h (SIZE_TYPE): New macro.
2780         (PTRDIFF_TYPE): Likewise.
2781         (WCHAR_TYPE): Likewise.
2782         (WCHAR_TYPE_SIZE): Likewise.
2783         (STDINT_LONG32): Likewise.
2785 2016-01-12  Richard Biener  <rguenther@suse.de>
2787         PR tree-optimization/69053
2788         * tree-vect-loop.c (get_initial_def_for_reduction): Properly
2789         convert initial value for cond reductions.
2791 2016-01-12  Richard Biener  <rguenther@suse.de>
2793         PR tree-optimization/69007
2794         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
2795         widen_sum after dot_prod and sad.
2797 2016-01-12  Richard Biener  <rguenther@suse.de>
2799         PR tree-optimization/69168
2800         * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
2801         pattern stmt SLP type.
2802         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
2803         end up unused so cope with that case.
2805 2016-01-12  Richard Biener  <rguenther@suse.de>
2807         PR tree-optimization/69157
2808         * tree-vect-stmts.c (vectorizable_mask_load_store): Check
2809         stmts def type only during analyze phase.
2810         (vectorizable_call): Likewise.
2811         (vectorizable_simd_clone_call): Likewise.
2812         (vectorizable_conversion): Likewise.
2813         (vectorizable_assignment): Likewise.
2814         (vectorizable_shift): Likewise.
2815         (vectorizable_operation): Likewise.
2816         (vectorizable_store): Likewise.
2817         (vectorizable_load): Likewise.
2819 2016-01-12  Richard Biener  <rguenther@suse.de>
2821         PR tree-optimization/69174
2822         * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
2823         space.
2824         (vectorizable_load): Properly compute the number of loads needed
2825         for permuted strided SLP loads and do not spuriously assign
2826         to SLP_TREE_VEC_STMTS.
2828 2016-01-12  Andris Pavenis  <andris.pavenis@iki.fi>
2830         * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
2831         (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
2832         (MD_EXEC_PREFIX): Remove.
2833         (MD_STARTFILE_PREFIX) Removee.
2834         (FILE_NAME_ABSOLUTE_P): Remove.
2835         (CPP_SPEC): Do not read macros from sys/version.h.
2836         (LINK_COMMAND_SPEC): Remove.
2837         (LOCAL_INCLUDE_DIR): Remove.
2838         (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
2839         (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
2840         (POST_LINK_SPEC): Define to invoke stubify after linker
2841         (LIBSTDCXX): Remove define
2842         (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
2843         (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
2844         (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
2845         (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
2846         (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
2847         (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
2848         (i386_djgpp_asm_named_section): Add propotype of new procedure
2850         * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
2851         (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
2852         (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
2853         in config/i386/djgpp.h).
2854         (STANDARD_STARTFILE_PREFIX_2): Define identical to
2855         STANDARD_STARTFILE_PREFIX_1.
2856         (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
2857         (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
2858         installation errors.
2859         (MAX_OFILE_ALIGNMENT): Define to 128.
2860         (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
2862         * config/i386/djgpp.c: New file. Add implementation of
2863         i386_djgpp_asm_named_section.
2865         * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
2867         * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
2868         Add rule for building djgpp.o.
2870 2016-01-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2872         * config/rs6000/rs6000.c (v2df_reduction_p): New function.
2873         (rtx_is_swappable_p): Reductions are swappable.
2874         (insn_is_swappable_p): V2DF reductions are swappable.
2876 2016-01-11  John David Anglin  <danglin@gcc.gnu.org>
2878         * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
2879         reloads for other unsupported memory operands.
2881 2016-01-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
2882             Jim Wilson  <jim.wilson@linaro.org>
2884         PR target/69194
2885         * config/arm/arm-builtins.c (arm_expand_neon_args): Call
2886         copy_to_mode_reg instead of force_reg.
2888 2016-01-11  H.J. Lu  <hongjiu.lu@intel.com>
2890         PR target/69225
2891         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
2892         TARGET_80387 is true.
2894 2016-01-11  Jakub Jelinek  <jakub@redhat.com>
2896         PR target/69071
2897         * lra-eliminations.c (move_plus_up): Only move plus up
2898         if subreg of the constant can be simplified into constant
2899         and use the simplified subreg of the constant instead of
2900         the original constant.
2902         * fold-const.c (fold_convertible_p): Don't return true
2903         for conversion of VECTOR_TYPE to same sized integral type.
2904         (fold_convert_loc): Fix up formatting.  Fold conversion of
2905         VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
2906         instead of NOP_EXPR.
2908         PR tree-optimization/69214
2909         * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
2910         innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
2911         Formatting fix.
2913         PR tree-optimization/69207
2914         * tree-vect-slp.c (vect_get_constant_vectors): For
2915         VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
2916         fold_convertible_p to vector_type's element type, and always
2917         use VCE for non-VECTOR_BOOLEAN_TYPE_P.
2919 2016-01-11  Richard Biener  <rguenther@suse.de>
2921         PR tree-optimization/69173
2922         * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
2923         fixup the cycle if all stmts are in a pattern.
2925 2016-01-11  Uros Bizjak  <ubizjak@gmail.com>
2927         PR middle-end/68999
2928         * alias.c (base_alias_check): Move check for addresses with
2929         alignment ANDs before the call for compare_base_decls.
2930         (memrefs_conflict_p): Return -1 for different decls
2931         that went through alignment adjustments.
2933 2016-01-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2935         PR rtl-optimization/68796
2936         * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
2937         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
2938         and QImode comparisons against zero with CC_NZmode.
2939         * config/aarch64/iterators.md (short_mask): New mode_attr.
2941 2016-01-11  H.J. Lu  <hongjiu.lu@intel.com>
2943         * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
2944         (<avx512>_store<mode>_mask): Likewise.
2946 2016-01-11  Bernd Schmidt  <bschmidt@redhat.com>
2947             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2949         PR rtl-optimization/68841
2950         * ifcvt.c (struct noce_if_info): Add orig_x field.
2951         (bbs_ok_for_cmove_arith): Add to_rename parameter.
2952         Don't record conflicts on to_rename if it's present.
2953         Allow memory destinations in sets.
2954         (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
2955         blocks, passing orig_x to the checks.
2956         (noce_process_if_block): Set if_info->orig_x appropriately.
2958 2016-01-11  Tom de Vries  <tom@codesourcery.com>
2960         PR tree-optimization/69069
2961         * tree-parloops.c (create_parallel_loop): Add missing phi args.
2963 2016-01-11  Yuri Rumyantsev  <ysrumyan@gmail.com>
2965         PR rtl-optimization/68920
2966         * config/i386/i386.c (ix86_option_override_internal): Restrict number
2967         of conditional moves for  RTL if-conversion to 1 for
2968         TARGET_ONE_IF_CONV_INSN.
2969         * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
2970         * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
2971         * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
2972         parameter to restirct number of conditional moves for
2973         RTL if-conversion.
2974         * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
2975         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
2976         conditionl moves.
2978 2016-01-11  Alexandre Oliva  <aoliva@redhat.com>
2980         PR bootstrap/69123
2981         * var-tracking.c (drop_overlapping_mem_locs): Operate on all
2982         onepart vars.  Fix typo in comment.  Fix reversed condition in
2983         unshare test.
2984         (dataflow_set_remove_mem_locs): Operate on all onepart vars.
2986         PR bootstrap/69123
2987         * var-tracking.c (dump_onepart_variable_differences): New.
2988         (dataflow_set_different): If a detailed dump is requested,
2989         delay early returns and dump differences between onepart
2990         variables present before and after, and added variables.
2992 2016-01-11  Ilya Enkovich  <enkovich.gnu@gmail.com>
2994         PR target/69010
2995         * expr.c (expand_expr_real_1): For boolean vector constants
2996         with a scalar mode use const_scalar_mask_from_tree.
2997         (const_scalar_mask_from_tree): New.
2998         * optabs.c (expand_vec_cond_mask_expr): Use mask mode
2999         assigned to a mask type to handle constants.
3001 2016-01-11  Martin Jambor  <mjambor@suse.cz>
3003         PR ipa/69044
3004         * ipa-cp.c (estimate_local_effects): Do not clone for removal of
3005         useless parameters if we cannot change function signature.
3007 2016-01-11  Martin Jambor  <mjambor@suse.cz>
3009         PR ipa/66616
3010         * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
3011         flag.
3013 2016-01-11  Tom de Vries  <tom@codesourcery.com>
3015         PR tree-optimization/69109
3016         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
3017         latch with phi.
3019 2016-01-11  Tom de Vries  <tom@codesourcery.com>
3021         PR tree-optimization/69108
3022         * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
3023         res is not used in a phi.
3025 2016-01-11  Yury Gribov  <y.gribov@samsung.com>
3027         PR 67425
3028         * common.opt (frandom-seed): Fix parameter name.
3029         * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
3031 2016-01-11  Tom de Vries  <tom@codesourcery.com>
3033         PR tree-optimization/69058
3034         * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
3035         not supported.
3037 2016-01-11  Andrew Burgess  <andrew.burgess@embecosm.com>
3039         * config/arc/arc.opt (mdiv-rem): Add period to the end.
3040         (mcode-density): Likewise.
3042 2016-01-10  Tom de Vries  <tom@codesourcery.com>
3044         PR tree-optimization/69062
3045         * tree-parloops.c (loop_has_phi_with_address_arg): New function.
3046         (parallelize_loops): Don't paralelize loop that has phi with address
3047         arg.
3049 2016-01-10  Tom de Vries  <tom@codesourcery.com>
3051         PR tree-optimization/69039
3052         * tree-parloops.c (try_create_reduction_list): Only allow single exit
3053         phi for reduction.
3055 2016-01-09  John David Anglin  <danglin@gcc.gnu.org>
3057         PR middle-end/68743
3058         * match.pd: Require target has function_c99_misc before doing
3059         truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
3061 2016-01-09  Gerald Pfeifer  <gerald@pfeifer.com>
3063         * configure.ac (isl_options_set_schedule_serialize_sccs): Also
3064         use GMPINC.
3065         * configure: Regenerate.
3067 2016-01-09  Jakub Jelinek  <jakub@redhat.com>
3069         PR middle-end/50865
3070         PR tree-optimization/69097
3071         * fold-const.h (expr_not_equal_to): New prototype.
3072         * fold-const.c: Include stringpool.h and tree-ssanames.h.
3073         (expr_not_equal_to): New function.
3074         * match.pd (X % -Y is the same as X % Y): Don't optimize
3075         unless X is known not to be equal to minimum or Y is known
3076         not to be equal to -1.
3077         * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
3078         fold TRUNC_MOD_EXPR if the second argument is not a power of two.
3079         (simplify_stmt_using_ranges): Adjust caller.
3080         (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
3081         substitute_and_fold.
3083 2016-01-09  Jan Hubicka  <hubicka@ucw.cz>
3085         * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
3086         w/o DECL_NAME.
3088 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
3090         PR tree-optimization/69167
3091         * gimple-fold.c (replace_stmt_with_simplification): Also punt if
3092         new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
3093         ops[0] comparison.
3094         * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
3096 2016-01-08  Alan Lawrence  <alan.lawrence@arm.com>
3097             Richard Biener  <rguenther@suse.de>
3099         PR tree-optimization/68707
3100         * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
3101         instances that can be handled via vect_load_lanes.
3103 2016-01-08  Uros Bizjak  <ubizjak@gmail.com>
3105         * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
3106         if we can't determine address equivalence.
3107         * alias.c (compare_base_decl): Update for changed return value of
3108         symtab_node::equal_address_to.
3110 2016-01-08  Jason Merrill  <jason@redhat.com>
3112         PR c++/68983
3113         PR c++/67557
3114         * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
3115         * expr.c (store_field): Not here.
3116         * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
3117         call with TREE_ADDRESSABLE type.
3118         * tree-cfg.c (verify_gimple_call): Adjust.
3120 2016-01-08  Olivier Hainque  <hainque@adacore.com>
3122         * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
3123         libc_internal.
3125 2016-01-08  Alan Lawrence  <alan.lawrence@arm.com>
3127         * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
3128         (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
3129         (reduc_smin_v2sf): Rename to...
3130         (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
3131         (reduc_splus_v2sf): Rename to...
3132         (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
3134 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
3136         PR tree-optimization/69162
3137         * gimplify.c (gimplify_va_arg_expr): Encode original type of
3138         valist argument in another argument.
3139         (gimplify_modify_expr): Adjust for the above change.  Cleanup.
3140         * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
3141         to determine the va_list type, build a MEM_REF instead of
3142         build_fold_indirect_ref.
3144         PR tree-optimization/69172
3145         * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
3146         gimple_build.
3148 2016-01-08  Thomas Preud'homme  <thomas.preudhomme@arm.com>
3150         PR tree-optimization/67781
3151         * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
3152         and cmpnop in two steps: first the ones not accessed in original
3153         gimple expression in a endian independent way and then the ones not
3154         accessed in the final result in an endian-specific way.
3156 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
3158         PR tree-optimization/69083
3159         * tree-vect-slp.c (vect_get_constant_vectors): For
3160         VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
3161         element type.  If op is fold_convertible_p to vector_type's element
3162         type, use NOP_EXPR instead of VCE.
3164 2016-01-08  Segher Boessenkool  <segher@kernel.crashing.org>
3166         PR rtl-optimization/67778
3167         PR rtl-optimization/68634
3168         PR rtl-optimization/68909
3169         * shrink-wrap.c (try_shrink_wrapping): Add comment.  Don't pop
3170         block from the stack until done with it.  Remove a superfluous
3171         bitmap set.  Remove a superfluous bitmap test.
3173 2016-01-07  Martin Sebor  <msebor@redhat.com>
3175         PR c/68966
3176         * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
3177         constraint on the type of arguments.
3179 2016-01-07  Andreas Tobler  <andreast@gcc.gnu.org>
3181         * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
3182         SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
3183         unaligned_access on the gcc_options set.
3184         * config/arm/arm.c (arm_option_override_internal): Use
3185         SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
3187 2016-01-07  Uros Bizjak  <ubizjak@gmail.com>
3189         PR target/69140
3190         * config/i386/i386.c (ix86_frame_pointer_required): Enable
3191         frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
3193 2016-01-07  Uros Bizjak  <ubizjak@gmail.com>
3195         Revert
3196         2016-01-06  Uros Bizjak  <ubizjak@gmail.com>
3198         PR target/69140
3199         * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
3200         depending on frame_pointer_needed before remaining integer and SSE
3201         registers are saved.
3203 2016-01-07  Sandra Loosemore  <sandra@codesourcery.com>
3205         PR 1078
3206         * doc/extend.texi (Nvidia PDX Function Attributes): New section.
3208 2016-01-07  H.J. Lu  <hongjiu.lu@intel.com>
3210         PR target/69171
3211         * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
3212         Use the "xBm" constraint.
3213         (float<sseintvecmodelower><mode>2<mask_name><round_name):
3214         Likewise.
3215         (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
3216         (sse_cvtsi2ssq<round_name>): Likewise.
3217         (sse_cvtss2si<round_name>): Likewise.
3218         (sse_cvtss2siq<round_name>): Likewise.
3219         (sse2_cvtsi2sdq<round_name>): Likewise.
3220         (sse2_cvtsd2si<round_name>): Likewise.
3221         (sse2_cvtsd2siq<round_name>): Likewise.
3222         * config/i386/subst.md (round_nimm_scalar_predicate): New
3223         predicate.
3225 2015-12-15  Bernd Schmidt  <bschmidt@redhat.com>
3227         PR middle-end/67639
3228         * varasm.c (make_decl_rtl): Mark invalid register vars as
3229         DECL_EXTERNAL.
3231         PR rtl-optimization/66206
3232         * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
3233         All callers changed.
3235 2016-01-07  Jakub Jelinek  <jakub@redhat.com>
3237         PR tree-optimization/69141
3238         * tree-ssa-pre.c: Include langhooks.h.
3239         (eliminate_dom_walker::before_dom_children): Use
3240         lang_hooks.decl_printable_name instead of
3241         cgraph_node::get ()->name ().
3243         PR middle-end/68960
3244         * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
3245         it and DECL_ALIGN too.
3247 2016-01-06  Robert Suchanek  <robert.suchanek@imgtec.com>
3249         * config/mips/mips-ftypes.def: Sort to lexicographical order.
3251 2016-01-06  Uros Bizjak  <ubizjak@gmail.com>
3253         PR target/69140
3254         * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
3255         depending on frame_pointer_needed before remaining integer and SSE
3256         registers are saved.
3258 2015-01-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3260         * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
3261         mode iterator with VSX_M2.
3262         (*p9_vecstore_<mode>): Likewise.
3263         (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
3264         (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
3265         (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
3266         (define_split for VSX_LE128 stores): Likewise.
3267         (define_peephole2 for TImode LE swaps): Likewise.
3268         (define_split for VSX_LE128 post-reload stores): Likewise.
3270 2016-01-06  Marek Polacek  <polacek@redhat.com>
3272         PR sanitizer/69099
3273         * convert.c (convert_to_integer_1): Adjust call to
3274         ubsan_instrument_float_cast.  Use NULL_TREE instead of NULL.
3275         * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter.  Use
3276         EXPR instead of ARG.
3277         * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
3279 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
3281         PR 1078
3282         * doc/extend.texi (RL78 Variable Attributes): New section.
3284 2016-01-05  Marek Polacek  <polacek@redhat.com>
3286         PR c/69104
3287         * builtins.c (get_memmodel): Use expansion point location rather than
3288         the input location.  Call warning_at rather than warning.
3289         (expand_builtin_atomic_compare_exchange): Likewise.
3290         (expand_builtin_atomic_load): Likewise.
3291         (expand_builtin_atomic_store): Likewise.
3292         (expand_builtin_atomic_clear): Likewise.
3294 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
3296         PR target/68991
3297         * config/i386/i386.c (ix86_expand_vector_logical_operator):
3298         Replace nonimmediate_operand with vector_operand.
3299         * config/i386/predicates.md (vector_operand): New predicate.
3300         (general_vector_operand): Replace nonimmediate_operand with
3301         vector_operand.
3302         * config/i386/sse.md: Replace nonimmediate_operand with
3303         vector_operand and m constraint with Bm constraint on SSE
3304         patterns with 16-byte memory operand.
3305         * config/i386/subst.md (round_nimm_predicate): Replace
3306         nonimmediate_operand with vector_operand.
3307         (round_saeonly_nimm_predicate): Likewise.
3308         (round_saeonly_nimm_scalar_predicate): New.
3310 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
3312         PR target/68991
3313         * config/i386/constraints.md (Bm): New constraint.
3314         * config/i386/predicates.md (vector_memory_operand): New
3315         predicate.
3316         * config/i386/sse.md: Replace xm with xBm in plusminus and
3317         any_logic patterns.
3319 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
3321         PR 1078
3322         * doc/extend.texi (V850 Function Attributes): New section.
3323         (V850 Variable Attributes): New section.
3325 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
3327         PR 1078
3328         * doc/extend.texi (MicroBlaze Function Attributes): Document
3329         interrupt_handler and fast_interrupt attributes.
3331 2016-01-05  Sergei Trofimovich  <siarheit@google.com>
3333         PR other/60465
3334         * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
3335         for local symbolic operands.
3336         * config/ia64/predicates.md (local_symbolic_operand64): New
3337         predicate.
3339 2016-01-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3341         PR rtl-optimization/68651
3342         * combine.c (combine_simplify_rtx): Canonicalize x + x into
3343         x << 1.
3345 2016-01-05  Nathan Sidwell  <nathan@acm.org>
3347         * alias.c (compare_base_decls): Use symtab_node::get.
3349 2016-01-05  Nick Clifton  <nickc@redhat.com>
3351         PR target/68770
3352         * ira-costs.c (copy_cost): Initialise the t_icode field of the
3353         secondary_reload_info structure.
3355         PR target/66655
3356         * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
3357         decls if weak support is available.
3359 2016-01-04  Martin Sebor  <msebor@redhat.com>
3361         * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
3363 2016-01-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
3365         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
3366         OPTION_MASK_P9_DFORM.
3368         * config/rs6000/constraints.md (wo constraint): New constraint for
3369         ISA 3.0 (power9).
3371         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
3372         for wo constraint.
3373         (rs6000_init_hard_regno_mode_ok): Likewise.
3375         * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
3376         wo constraint.
3378         * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
3379         expanders not to have constraints.  Add support for ISA 3.0 xxperm
3380         instruction.  Add support for fusing xxlor with xxperm.
3381         (altivec_vperm_<mode>_internal): Likewise.
3382         (altivec_vperm_v8hiv16qi): Likewise.
3383         (altivec_vperm_<mode>v16q): Likewise.
3384         (altivec_vperm_<mode>_uns): Likewise.
3385         (vperm_v8hiv4si): Likewise.
3386         (vperm_v16qiv8hi): Likewise.
3388         * doc/md.texi (RS/6000 constraints): Document wo constraint.
3390 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
3392         Update copyright years.
3394         * gcc.c (process_command): Update copyright notice dates.
3395         * gcov-dump.c (print_version): Ditto.
3396         * gcov.c (print_version): Ditto.
3397         * gcov-tool.c (print_version): Ditto.
3398         * gengtype.c (create_file): Ditto.
3399         * doc/cpp.texi: Bump @copying's copyright year.
3400         * doc/cppinternals.texi: Ditto.
3401         * doc/gcc.texi: Ditto.
3402         * doc/gccint.texi: Ditto.
3403         * doc/gcov.texi: Ditto.
3404         * doc/install.texi: Ditto.
3405         * doc/invoke.texi: Ditto.
3407 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
3409         * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
3410         modes larger than TImode as TImode if NEON is not enabled.
3412 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
3414         PR target/69100
3415         * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
3416         mode for %f0-%f31 only if TARGET_FPU.
3418 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
3420         PR target/69072
3421         * config/sparc/sparc.c (scan_record_type): Take into account subfields
3422         to compute the PACKED_P predicate.
3423         (function_arg_record_value): Minor tweaks.
3425 2016-01-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
3427         * doc/install.texi (--with-multilib-list): Describe the meaning of the
3428         option for arm*-*-* targets.
3430 2016-01-03  Sandra Loosemore  <sandra@codesourcery.com>
3432         * doc/extend.texi (Common Function Attributes): Move docs for
3433         MSP430-specific attributes to....
3434         (MSP430 Function Attributes): ...here.  Delete the redundant
3435         entries and copy-edit the remaining text.
3436         (MSP430 Variable Attributes): Use uniform format for index
3437         entries and add a cross-reference to the corresponding function
3438         attribute docs.
3440 2016-01-03  Vladimír Čunát  <vcunat@gmail.com>
3442         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
3443         -finite-math typo.
3444         (x86 Options): Likewise.
3446 2016-01-01  Sandra Loosemore  <sandra@codesourcery.com>
3448         PR 1078
3450         * extend.texi (Common Function Attributes) <no_stack_limit>: New.
3451         * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
3452         to corresponding attribute.
3454 2016-01-01  Sandra Loosemore  <sandra@codesourcery.com>
3456         * doc/extend.texi (Common Function Attributes) <noplt>: Move
3457         to correct alphabetization of table.  Copy-edit and correct
3458         markup.
3459         <stack_protect>: Likewise.
3460         <target_clones>: Likewise.
3461         <simd>: Likewise.
3462         * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
3463         Correct punctuation.
3464         (Code Gen Options) <-fno-plt>: Copy-edit.
3466 2016-01-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3468         PR target/68917
3469         * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
3470         SI values.  Explicitly convert SI to DI and vice-versa.
3472 2016-01-01  Jakub Jelinek  <jakub@redhat.com>
3474         PR tree-optimization/69070
3475         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
3476         REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
3478         PR sanitizer/69055
3479         * ubsan.c (ubsan_instrument_float_cast): Call
3480         initialize_sanitizer_builtins.
3482         PR target/69015
3483         * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
3485 Copyright (C) 2016 Free Software Foundation, Inc.
3487 Copying and distribution of this file, with or without modification,
3488 are permitted in any medium without royalty provided the copyright
3489 notice and this notice are preserved.