This patch improves the accuracy of the Cortex-A53 integer scheduler...
[platform/upstream/gcc.git] / gcc / ChangeLog
1 2016-07-06  Wilco Dijkstra  <wdijkstr@arm.com>
2
3         * config/arm/cortex-a53.md: Use final_presence_set for in-order.
4         (cortex_a53_shift): Add mov_shift.
5         (cortex_a53_shift_reg): Add new reservation for register shifts.
6         (cortex_a53_alu): Remove bfm.
7         (cortex_a53_alu_shift): Add bfm, remove mov_shift.
8         (cortex_a53_alu_extr): Add new reservation for EXTR.
9         (bypasses): Improve bypass modelling.
10
11 2016-07-06  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
12
13         PR target/50739 
14         * config/avr/avr.c (avr_asm_select_section): Strip off
15         SECTION_DECLARED from flags when calling get_section.
16
17 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
18
19         * tree-vectorizer.h (vect_memory_access_type): Add
20         VMAT_INVARIANT, VMAT_CONTIGUOUS_DOWN and VMAT_CONTIGUOUS_REVERSED.
21         * tree-vect-stmts.c (compare_step_with_zero): New function.
22         (perm_mask_for_reverse): Move further up file.
23         (get_group_load_store_type): Stick to VMAT_ELEMENTWISE if the
24         step is negative.
25         (get_negative_load_store_type): New function.
26         (get_load_store_type): Call it.  Add an ncopies argument.
27         (vectorizable_mask_load_store): Update call accordingly and
28         remove tests for negative steps.
29         (vectorizable_store, vectorizable_load): Likewise.  Handle new
30         memory_access_types.
31
32 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
33
34         * tree-vectorizer.h (vect_memory_access_type): New enum.
35         (_stmt_vec_info): Add a memory_access_type field.
36         (STMT_VINFO_MEMORY_ACCESS_TYPE): New macro.
37         (vect_model_store_cost): Take an access type instead of a boolean.
38         (vect_model_load_cost): Likewise.
39         * tree-vect-slp.c (vect_analyze_slp_cost_1): Update calls to
40         vect_model_store_cost and vect_model_load_cost.
41         * tree-vect-stmts.c (vec_load_store_type): New enum.
42         (vect_model_store_cost): Take an access type instead of a
43         store_lanes_p boolean.  Simplify tests.
44         (vect_model_load_cost): Likewise, but for load_lanes_p.
45         (get_group_load_store_type, get_load_store_type): New functions.
46         (vectorizable_store): Use get_load_store_type.  Record the access
47         type in STMT_VINFO_MEMORY_ACCESS_TYPE.
48         (vectorizable_load): Likewise.
49         (vectorizable_mask_load_store): Likewise.  Replace is_store
50         variable with vls_type.
51
52 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
53
54         * tree-vectorizer.h (vect_grouped_load_supported): Add a
55         single_element_p parameter.
56         * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
57         Check the PR65518 case here rather than in vectorizable_load.
58         * tree-vect-loop.c (vect_analyze_loop_2): Update call accordignly.
59         * tree-vect-stmts.c (vectorizable_load): Likewise.
60
61 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
62
63         * tree-vectorizer.h (gather_scatter_info): New structure.
64         (vect_check_gather_scatter): Return a bool rather than a decl.
65         Replace return-by-pointer arguments with a single
66         gather_scatter_info *.
67         * tree-vect-data-refs.c (vect_check_gather_scatter): Likewise.
68         (vect_analyze_data_refs): Update call accordingly.
69         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
70         (vectorizable_mask_load_store): Likewise.  Also record the
71         offset dt and vectype in the gather_scatter_info.
72         (vectorizable_store): Likewise.
73         (vectorizable_load): Likewise.
74
75 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
76
77         * tree-vect-stmts.c (vect_model_store_cost): For non-SLP
78         strided groups, use the cost of N scalar accesses instead
79         of ncopies vector accesses.
80         (vect_model_load_cost): Likewise.
81
82 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
83
84         * tree-vect-stmts.c (vect_cost_group_size): Delete.
85         (vect_model_store_cost): Avoid calling it.  Use first_stmt_p
86         variable to indicate when once-per-group costs are being used.
87         (vect_model_load_cost): Likewise.  Fix comment and misindented code.
88
89 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
90
91         * tree-vect-stmts.c (vectorizable_load): Remove unnecessary
92         peeling-for-gaps condition.
93
94 2016-07-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
95
96         * config/s390/s390.c (s390_expand_vec_init): Force initializer
97         element to register if it doesn't match general_operand.
98
99 2016-07-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
100             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
101
102         * config/rs6000/rs6000-protos.h (rs6000_split_signbit): New
103         prototype.
104         * config/rs6000/rs6000.c (rs6000_split_signbit): New function.
105         * config/rs6000/rs6000.md (UNSPEC_SIGNBIT): New constant.
106         (SIGNBIT): New mode iterator.
107         (Fsignbit): New mode attribute.
108         (signbit<mode>2): Change operand1 to match FLOAT128 instead of
109         IBM128; dispatch to gen_signbit{kf,tf}2_dm for __float128
110         when direct moves are available.
111         (signbit<mode>2_dm): New define_insn_and_split).
112         (signbit<mode>2_dm2): New define_insn.
113
114 2016-07-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
115
116         PR rtl-optimization/71594
117         * ifcvt.c (noce_convert_multiple_sets): Wrap new_val or old_val
118         into subregs of appropriate mode before trying to emit a conditional
119         move.
120
121 2016-07-05  Jan Hubicka  <jh@suse.cz>
122
123         * tree-scalar-evolution.c (iv_can_overflow_p): New function.
124         (simple_iv): Use it.
125
126 2016-07-05  Jan Hubicka  <jh@suse.cz>
127
128         * tree-ssa-loop-niter.c (nowrap_type_p): Use ANY_INTEGRAL_TYPE_P.
129
130 2016-07-05  Jiong Wang  <jiong.wang@arm.com>
131
132         * lra-constraints.c (process_alt_operands): Don't add spilling cost for
133         "offmemok".
134
135 2016-07-05  Jan Hubicka  <jh@suse.cz>
136
137         * tree-scalar-evoluiton.c (simple_iv): Use nowrap_type to check if
138         IV can overflow.
139
140 2016-07-05  Richard Biener  <rguenther@suse.de>
141
142         * gimple-ssa-split-paths.c (find_block_to_duplicate_for_splitting_pa):
143         Handle empty else block.
144         (is_feasible_trace): Likewise.
145         (split_paths): Likewise.
146
147 2016-07-05  Richard Biener  <rguenther@suse.de>
148
149         * tree-loop-distribution.c (distribute_loop): Fix issue with
150         the cost model loop.
151
152 2016-07-05  Christophe Lyon  <christophe.lyon@linaro.org>
153
154         * config/arm/neon-testgen.ml: Delete.
155         * config/arm/neon.ml: Delete.
156
157 2016-07-04  Jakub Jelinek  <jakub@redhat.com>
158
159         PR c++/71739
160         * tree.c (attribute_value_equal): Use get_attribute_name instead of
161         directly using TREE_PURPOSE.
162
163 2016-07-04  Jiong Wang  <jiong.wang@arm.com>
164
165         * config/aarch64/aarch64.h: Rename "ARMv8.1" to "ARMv8.1-A".
166         * config/aarch64/aarch64_neon.h: Likewise.
167         * config/aarch64/arm_neon.h: Likewise.
168         * config/aarch64/atomics.md: Likewise.
169         * config/aarch64/aarch64-simd-builtins.def: Likewise.
170         * doc/invoke.texi: Likewise.
171
172 2016-07-04  Dominik Vogt  <vogt@linux.vnet.ibm.com>
173
174         * config/s390/s390.md: Add "z13" cpu_facility.
175         ("*mov<mode>cc"): Add support for z13 instructions lochi and locghi.
176         * config/s390/predicates.md ("loc_operand"): New predicate for "load on
177         condition" type instructions.
178
179 2016-07-04  Dominik Vogt  <vogt@linux.vnet.ibm.com>
180             Jeff Law  <law@redhat.com>
181
182         * explow.c (allocate_dynamic_stack_space): Simplify knowing that
183         MUST_ALIGN was always true and extra_align ist always BITS_PER_UNIT.
184
185 2016-07-04  Yuri Rumyantsev  <ysrumyan@gmail.com>
186
187         * config/i386/i386.c (ix86_expand_vec_perm): Add handle one-operand
188         permutation for TARGET_AVX512F.
189         (ix86_expand_vec_one_operand_perm_avx512): New function.
190         (expand_vec_perm_1): Invoke introduced function.
191         * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
192         it may be not valid after vectorization.
193
194 2016-07-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
195
196         PR target/63874
197         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix
198         typo in comment.  Only force to memory if it is a weak
199         external reference.
200
201 2016-07-04  Matthew Wahab  <matthew.wahab@arm.com>
202             Jiong Wang  <jiong.wang@arm.com>
203
204         * config/aarch64/aarch64-arches.def: Add "armv8.2-a".
205         * config/aarch64/aarch64.h (AARCH64_FL_V8_2): New.
206         (AARCH64_FL_F16): New.
207         (AARCH64_FL_FOR_ARCH8_2): New.
208         (AARCH64_ISA_8_2): New.
209         (AARCH64_ISA_F16): New.
210         (TARGET_FP_F16INST): New.
211         (TARGET_SIMD_F16INST): New.
212         * config/aarch64/aarch64-option-extensions.def ("fp16"): New entry.
213         ("fp"): Disabling "fp" also disables "fp16".
214         * config/aarch64/aarch64-c.c (arch64_update_cpp_builtins): Conditionally define
215         __ARM_FEATURE_FP16_SCALAR_ARITHMETIC and __ARM_FEATURE_FP16_VECTOR_ARITHMETIC.
216         * doc/invoke.texi (AArch64 Options): Document "armv8.2-a" and "fp16".
217
218 2016-07-04  Jan Beulich  <jbeulich@suse.com>
219
220         * gcc.c (default_compilers["@c-header"]): Conditionalize "-o".
221
222 2016-07-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
223
224         PR target/71720
225         * config/rs6000/vsx.md (vsx_splat_v4sf_internal): When splitting
226         the insns, use an insn form that does not adjust the offset on
227         little endian systems.
228
229 2016-07-01  Jan Beulich  <jbeulich@suse.com>
230
231         * varasm.c (get_variable_section): Validate initializer in
232         named .bss-like sections.
233
234 2016-07-01  Kelvin Nilsen  <kelvin@gcc.gnu.org>
235
236         * config/rs6000/altivec.md (*altivec_vpermr_<mode>_internal):
237         Exchange the order of the second and third operands in the vpermr
238         instruction tmeplate.
239
240 2016-07-01  Peter Bergner  <bergner@vnet.ibm.com>
241
242         PR target/71698
243         * config/rs6000/rs6000.c (rs6000_secondary_reload_simple_move): Disallow
244         TDmode values.
245
246 2016-07-01  Alan Modra  <amodra@gmail.com>
247
248         PR rtl-optimization/71709
249         * ira-lives.c (find_call_crossed_cheap_reg): Exit loop on arg reg
250         being set, not referenced.
251
252 2016-07-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
253
254         PR tree-optimization/70729
255         * tree-vectorizer.c (adjust_simduid_builtins): Nullify safelen field
256         of loop since it can be not valid after transformation.
257
258 2016-07-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
259
260         * config/arm/arm.c (thumb_reload_in_hi): Delete.
261         * config/arm/arm-protos.h (thumb_reload_in_hi): Delete prototype.
262
263 2016-07-01  Eric Botcazou  <ebotcazou@adacore.com>
264
265         * config/arm/arm.c (arm_function_ok_for_sibcall): Add another check
266         for NULL decl.
267
268 2016-06-30  Michael Meissner  <meissner@linux.vnet.ibm.com>
269
270         PR target/71677
271         * config/rs6000/constraints.md (wY constraint): New constraint to
272         match the requirements for the LXSD and STXSD instructions.
273         * config/rs6000/predicates.md (offsettable_mem_14bit_operand): New
274         predicate to match the requirements for the LXSD and STXSD
275         instructions.
276         * config/rs6000/rs6000.md (mov<mode>_hardfloat32, FMOVE64 case):
277         Use constaint wY for LXSD/STXSD instructions instead of 'o' or 'Y'
278         to make sure that the bottom 2 bits of offset are 0, the address
279         form is offsettable, and no updating is done in the address mode.
280         (mov<mode>_hardfloat64, FMOVE64 case): Likewise.
281         (movdi_internal32): Likewise
282         (movdi_internal64): Likewise.
283
284 2016-06-30  Jakub Jelinek  <jakub@redhat.com>
285
286         PR tree-optimization/71707
287         * tree-ssa-strlen.c (get_stridx_plus_constant): Handle already present
288         strinfo even for ADDR_EXPR ptr.
289
290 2016-06-30  Kelvin Nilsen  <kelvin@gcc.gnu.org>
291
292         * config/rs6000/altivec.md (darn_32): Change the condition to
293         TARGET_P9_MISC instead of TARGET_MODULO.
294         (darn_raw): Replace TARGET_MODULO with TARGET_P9_MISC in the
295         condition expression.
296         (darn): Replace TARGET_MODULO with TARGET_P9_MISC in the
297         condition expression.
298         * config/rs6000/dfp.md (UNSPEC_DTSTSFI): New unspec constant.
299         (DFP_TEST): New code iterator.
300         (dfptstsfi_<code>_mode>): New define_expand.
301         (*dfp_sgnfcnc_<mode>): New define_insn.
302         * config/rs6000/rs6000-builtin.def (BU_P9_MISC_0): Move this macro
303         definition next to BU_P9_MISC_1 definition and change the MASK
304         value to RS6000_BTM_P9_MISC.
305         (BU_P9_MISC_1): Change the MASK value to RS6000_BTM_P9_MISC.
306         (BU_P9_64BIT_MISC_0): Likewise.
307         (BU_P9_DFP_MISC_0): New macro definition.
308         (BU_P9_DFP_MISC_1): New macro definition.
309         (BU_P9_DFP_MISC_2): New macro definition.
310         (BU_P9_DFP_OVERLOAD_1): New macro definition.
311         (BU_P9_DFP_OVERLOAD_2): New macro definition.
312         (BU_P9_DFP_OVERLOAD_3): New macro definition.
313         (TSTSFI_LT_DD): New BU_P9_DFP_MISC_2.
314         (TSTSFI_LT_TD): Likewise.
315         (TSTSFI_EQ_DD): Likewise.
316         (TSTSFI_EQ_TD): Likewise.
317         (TSTSFI_GT_DD): Likewise.
318         (TSTSFI_GT_TD): Likewise.
319         (TSTSFI_OV_DD): Likewise.
320         (TSTSFI_OV_TD): Likewise.
321         (TSTSFI_LT): New BU_P9_DFP_OVERLOAD_2.
322         (TSTSFI_LT_DD): Likewise.
323         (TSTSFI_LT_TD): Likewise.
324         (TSTSFI_EQ): Likewise.
325         (TSTSFI_EQ_DD): Likewise.
326         (TSTSFI_EQ_TD): Likewise.
327         (TSTSFI_GT): Likewise.
328         (TSTSFI_GT_DD): Likewise.
329         (TSTSFI_GT_TD): Likewise.
330         (TSTSFI_OV): Likewise.
331         (TSTSFI_OV_DD): Likewise.
332         (TSTSFI_OV_TD): Likewise.
333         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
334         overloaded test significance functions.
335         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
336         OPTION_MASK_P9_MISC into the representation of this mask.
337         (POWERPC_MASKS): Add OPTION_MASK_P9_MISC into the representation
338         of this mask.
339         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Set the
340         RS6000_BTM_P9_MISC flag in the return value if TARGET_P9_MISC is
341         non-zero.
342         (rs6000_expand_binop_builtin): Enforce that argument 0 of the exp
343         argument is a 6-bit unsigned literal value if the icode argument
344         represents a DFP test significance built-in call.
345         (rs6000_invalid_builtin): Add support for the RS6000_BTM_P9_MISC
346         flag used independently and in combination with the
347         RS6000_BTM_64BIT flag.
348         (rs6000_opt_masks): Add entry for power9-misc command-line option.
349         (rs6000_builtin_mask_names): Add entry for power9-misc
350         command-line option.
351         * config/rs6000/rs6000.h: Redefine TARGET_P9_MISC as 0 if
352         HAVE_AS_POWER9 is not a defined macro.  Define MASK_P9_MISC and
353         RS6000_BTM_P9_MISC macros.
354         * config/rs6000/rs6000.opt: Add support for the -mpower9-misc
355         option and change the description of the -mpower9-vector option to
356         enable only vector instructions, removing its erroneously claimed
357         support for scalar instructions.
358         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
359         the ISA 3.0 digital floating point test significance built-in
360         functions.
361
362 2016-06-30  Wilco Dijkstra  <wdijkstr@arm.com>
363
364         * config/aarch64/aarch64.c (cortexa35_tunings):
365         Enable AES fusion.  Use cortexa57_branch_cost.
366         (cortexa53_tunings): Use cortexa57_branch_cost.
367         (cortexa72_tunings): Use cortexa57_branch_cost.
368         Use AUTOPREFETCHER_WEAK.
369         (cortexa73_tunings): Use cortexa57_branch_cost.
370
371 2016-06-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
372             James Greenhalgh  <james.greenhalgh@arm.com>
373
374         * config/aarch64/arm_neon.h (vcopyq_lane_f32, vcopyq_lane_f64,
375         vcopyq_lane_p8, vcopyq_lane_p16, vcopyq_lane_s8, vcopyq_lane_s16,
376         vcopyq_lane_s32, vcopyq_lane_s64, vcopyq_lane_u8, vcopyq_lane_u16,
377         vcopyq_lane_u32, vcopyq_lane_u64): Reimplement in C.
378         (vcopy_lane_f32, vcopy_lane_f64, vcopy_lane_p8, vcopy_lane_p16,
379         vcopy_lane_s8, vcopy_lane_s16, vcopy_lane_s32, vcopy_lane_s64,
380         vcopy_lane_u8, vcopy_lane_u16, vcopy_lane_u32, vcopy_lane_u64,
381         vcopy_laneq_f32, vcopy_laneq_f64, vcopy_laneq_p8, vcopy_laneq_p16,
382         vcopy_laneq_s8, vcopy_laneq_s16, vcopy_laneq_s32, vcopy_laneq_s64,
383         vcopy_laneq_u8, vcopy_laneq_u16, vcopy_laneq_u32, vcopy_laneq_u64,
384         vcopyq_laneq_f32, vcopyq_laneq_f64, vcopyq_laneq_p8, vcopyq_laneq_p16,
385         vcopyq_laneq_s8, vcopyq_laneq_s16, vcopyq_laneq_s32, vcopyq_laneq_s64,
386         vcopyq_laneq_u8, vcopyq_laneq_u16, vcopyq_laneq_u32, vcopyq_laneq_u64):
387         New intrinsics.
388
389 2016-06-30  James Greenhalgh  <james.greenhalgh@arm.com>
390             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
391
392         * config/aarch64/aarch64-simd.md (*aarch64_simd_vec_copy_lane<mode>):
393         New define_insn.
394         (*aarch64_simd_vec_copy_lane_<vswap_width_name><mode>): Likewise.
395
396 2016-06-30  David Malcolm  <dmalcolm@redhat.com>
397
398         PR driver/71651
399         * gcc.c (driver::build_option_suggestions): Pass "option" to
400         add_misspelling_candidates.
401         * opts-common.c (add_misspelling_candidates): Add "option" param;
402         use it to avoid adding negated forms for options marked with
403         RejectNegative.
404         * opts.h (add_misspelling_candidates): Add "option" param.
405
406 2016-06-30  Jakub Jelinek  <jakub@redhat.com>
407
408         PR middle-end/71693
409         * fold-const.c (fold_binary_loc) <case RROTATE_EXPR>: Cast
410         TREE_OPERAND (arg0, 0) and TREE_OPERAND (arg0, 1) to type
411         first when permuting bitwise operation with rotate.  Cast
412         TREE_OPERAND (arg0, 0) to type when cancelling two rotations.
413
414 2016-06-29  David Malcolm  <dmalcolm@redhat.com>
415
416         * opts.c (handle_param): Use find_param_fuzzy to offer suggestions
417         for misspelled param names.
418         * params.c: Include spellcheck.h.
419         (find_param_fuzzy): New function.
420         * params.h (find_param_fuzzy): New prototype.
421         * spellcheck.c (struct edit_distance_traits<const char *>): Move
422         to...
423         * spellcheck.h (struct edit_distance_traits<const char *>):
424         ...here.
425
426 2016-06-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
427
428         * config/rs6000/predicates.md (const_0_to_7_operand): New
429         predicate, recognize 0..7.
430         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
431         support for doing extracts from V16QImode, V8HImode, V4SImode
432         under ISA 3.0.
433         * config/rs6000/vsx.md (VSX_EXTRACT_I): Mode iterator for ISA 3.0
434         vector extract support.
435         (VSX_EXTRACT_PREDICATE): Mode attribute to validate element number
436         for ISA 3.0 vector extract.
437         (VSX_EX): Constraints to use for ISA 3.0 vector extract.
438         (vsx_extract_<mode>, VSX_EXTRACT_I): Add support for doing
439         extracts of a constant element number from small integer vectors
440         on 64-bit ISA 3.0 systems.
441         (vsx_extract_<mode>_di): Likewise.
442         * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): New target macro to
443         say when we can do ISA 3.0 vector extracts.
444         * config/rs6000/rs6000.md (stfiwx): Allow DImode in Altivec
445         registers, using the stxsiwx instruction.
446
447 2016-06-29  Jim Wilson  <jim.wilson@linaro.org>
448
449         * config/aarch64/aarch64-cores.def (qdf24xx): Use qdf24xx tuning.
450         * config/aarch64/aarch64.c (qdf24xx_addrcost_table,
451         qdf24xx_regmove_cost, qdf24xx_tunings): New.
452         * config/arm/aarch64-cost-tables.h (qdf24xx_extra_costs): New.
453         * config/arm/arm-cores.def (qdf24xx): Use qdf24xx tuning.
454         * config/arm/arm.c (arm_qdf24xx_tune): New.
455
456 2016-06-29  Wilco Dijkstra  <wdijkstr@arm.com>
457
458         * config/aarch64/aarch64.c (cortexa53_tunings):
459         Increase loop alignment to 8.  Set function alignment to 16.
460         (cortexa35_tunings): Likewise.
461         (cortexa57_tunings): Increase loop alignment to 8.
462         (cortexa72_tunings): Likewise.
463         (cortexa73_tunings): Likewise.
464
465 2016-06-29  Matthew Wahab  <matthew.wahab@arm.com>
466
467         * doc/sourcebuild.texi (Effective-Target keywords): Add entries
468         for arm_fp16_ok and arm_fp16_hw.
469         (Add Options): Add entries for arm_fp16, arm_fp16_ieee and
470         arm_fp16_alternative.
471
472 2016-06-29  Ilya Enkovich  <ilya.enkovich@intel.com>
473
474         PR tree-optimization/71655
475         * tree-vect-stmts.c (vectorizable_comparison): Swap definition
476         types when swapping operands.
477
478 2016-06-29  Martin Liska  <mliska@suse.cz>
479
480         PR middle-end/71585
481         * common.opt (flag_stack_protect): Mark the flag as optimization
482         flag.
483         * ipa-inline-transform.c (inline_call): Remove unnecessary call
484         of build_optimization_node.
485
486 2016-06-29  Yuri Rumyantsev  <ysrumyan@gmail.com>
487
488         PR tree-optimization/70729
489         * tree-ssa-loop-im.c (ref_indep_loop_p_1): Consider memory reference as
490         independent in loops having positive safelen value.
491         * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
492         it may be not valid after vectorization.
493
494 2016-06-29  Jakub Jelinek  <jakub@redhat.com>
495
496         PR tree-optimization/71625
497         * tree-ssa-strlen.c (get_addr_stridx): Add PTR argument.  Assume list
498         is sorted by ascending list->offset.  If PTR is non-NULL and there is
499         previous strinfo, call get_stridx_plus_constant.
500         (get_stridx): Pass exp as second argument to get_addr_stridx.
501         (addr_stridxptr): Add missing list = list->next, so that there can be
502         more than one entries in the list.  Bump limit from 16 to 32.  Ensure
503         the list is sorted by ascending list->offset.
504         (get_stridx_plus_constant): Adjust so that it can be also called with
505         ADDR_EXPR instead of SSA_NAME as PTR.
506         (handle_char_store): Pass NULL_TREE as second argument to
507         get_addr_stridx.
508
509 2016-06-29  Richard Biener  <rguenther@suse.de>
510
511         PR rtl-optimization/68961
512         * simplify-rtx.c (simplify_subreg): Handle VEC_CONCAT like CONCAT.
513
514 2016-06-29  Richard Biener  <rguenther@suse.de>
515
516         PR middle-end/71002
517         * alias.c (component_uses_parent_alias_set_from): Handle
518         type punning through union accesses by using the union alias set.
519         * gimple.c (gimple_get_alias_set): Remove union type punning case.
520
521 2016-07-29  Richard Biener  <rguenther@suse.de>
522
523         * match.pd ((T)(T2)x -> (T)x): Remove restriction on final
524         precision not matching mode precision.
525
526 2016-06-28  John David Anglin  <danglin@gcc.gnu.org>
527
528         * config/pa/pa.md (call_symref_64bit_post_reload): Don't call
529         pa_output_arg_descriptor.
530         (call_val_symref_64bit_post_reload): Likewise.
531         (call_val_powf_64bit_post_reload): Likewise.
532         (sibcall_internal_symref_64bit): Likewise.
533         (sibcall_value_internal_symref_64bit): Likewise.
534
535 2016-06-28  Jakub Jelinek  <jakub@redhat.com>
536
537         PR middle-end/71626
538         * config/i386/i386.c (ix86_expand_vector_move): For SUBREG of
539         a constant, force its SUBREG_REG into memory or register instead
540         of whole op1.
541
542 2016-06-28  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
543
544         PR target/58655
545         * config/avr/avr.opt (-mfract-convert-truncate): Update description.
546         * doc/invoke.texi (AVR Options): Document it.
547
548 2016-06-28  Walter Lee  <walt@tilera.com>
549
550         * config/tilegx/linux.h: Do not include arch/icache.h
551         (CLEAR_INSN_CACHE): Provide inlined definition directly.
552         * config/tilepro/linux.h: Do not include arch/icache.h
553         (CLEAR_INSN_CACHE): Provide inlined definition directly.
554
555 2016-06-28  Wilco Dijkstra  <wdijkstr@arm.com>
556
557         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adjust bitnumbering
558         for big-endian BIT_FIELD_REF.
559
560 2016-06-28  Pat Haugen  <pthaugen@us.ibm.com>
561
562         * config/rs6000/rs6000.md ('type' attribute): Add htmsimple/dfp types.
563         ('size' attribute): Add '128'.
564         Include power9.md.
565         (*mov<mode>_hardfloat32, *mov<mode>_hardfloat64, *movdi_internal32,
566         *movdi_internal64, *movdf_update1): Set size attribute to '64'.
567         (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3, sqrt<mode>2,
568         copysign<mode>3, neg<mode>2_hw, abs<mode>2_hw, *nabs<mode>2_hw,
569         *fma<mode>4_hw, *fms<mode>4_hw, *nfma<mode>4_hw, *nfms<mode>4_hw,
570         extend<SFDF:mode><IEEE128:mode>2_hw, trunc<mode>df2_hw,
571         *xscvqp<su>wz_<mode>, *xscvqp<su>dz_<mode>, *xscv<su>dqp_<mode>,
572         *trunc<mode>df2_odd): Set size attribute to '128'.
573         (*cmp<mode>_hw): Change type to veccmp and set size attribute to '128'.
574         * config/rs6000/power6.md (power6-fp): Include dfp type.
575         * config/rs6000/power7.md (power7-fp): Likewise.
576         * config/rs6000/power8.md (power8-fp): Likewise.
577         * config/rs6000/power9.md: New file.
578         * config/rs6000/t-rs6000 (MD_INCLUDES): Add power9.md.
579         * config/rs6000/htm.md (*tabort, *tabort<wd>c, *tabort<wd>ci,
580         *trechkpt, *treclaim, *tsr, *ttest): Change type attribute to
581         htmsimple.
582         * config/rs6000/dfp.md (extendsddd2, truncddsd2, extendddtd2,
583         trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
584         divtd3, *cmpdd_internal1, *cmptd_internal1, floatdidd2, floatditd2,
585         ftruncdd2, fixdddi2, ftrunctd2, fixtddi2, dfp_ddedpd_<mode>,
586         dfp_denbcd_<mode>, dfp_dxex_<mode>, dfp_diex_<mode>, dfp_dscli_<mode>,
587         dfp_dscri_<mode>): Change type attribute to dfp.
588         * config/rs6000/crypto.md (crypto_vshasigma<CR_char>): Change type
589         attribute to vecsimple.
590         * config/rs6000/rs6000.c (power9_cost): Update costs, cache size
591         and prefetch streams.
592         (rs6000_option_override_internal): Remove temporary code setting
593         tuning to power8.  Don't set rs6000_sched_groups for power9.
594         (last_scheduled_insn): Change to rtx_insn *.
595         (divide_cnt, vec_load_pendulum): New variables.
596         (rs6000_adjust_cost): Add Power9 to test for store->load separation.
597         (rs6000_issue_rate): Set issue rate for Power9.
598         (is_power9_pairable_vec_type): New.
599         (power9_sched_reorder2): New.
600         (rs6000_sched_reorder2): Call new function for Power9 specific
601         reordering.
602         (insn_must_be_first_in_group): Remove Power9.
603         (insn_must_be_last_in_group): Likewise.
604         (force_new_group): Likewise.
605         (rs6000_sched_init): Fix initialization of last_scheduled_insn.
606         Initialize divide_cnt/vec_load_pendulum.
607         (_rs6000_sched_context, rs6000_init_sched_context,
608         rs6000_set_sched_context): Handle context save/restore of new
609         variables.
610
611 2016-06-28  Richard Biener  <rguenther@suse.de>
612
613         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
614         Properly handle DECL_BIT_FIELD_REPRESENTATIVE occuring as
615         COMPONENT_REF operand.
616         (nonoverlapping_component_refs_p): Likewise.
617         * stor-layout.c (start_bitfield_representative): Mark
618         DECL_BIT_FIELD_REPRESENTATIVE as DECL_NONADDRESSABLE_P.
619
620 2016-06-28  Jakub Jelinek  <jakub@redhat.com>
621
622         * Makefile.in: Don't cat ../stage_current if it does not exist.
623
624         * doc/extend.texi (__builtin_add_overflow_p): Clarify behavior when
625         last argument is a bit-field.
626
627         PR rtl-optimization/71673
628         * internal-fn.c (expand_arith_overflow_result_store): Use
629         OPTAB_LIB_WIDEN instead of OPTAB_DIRECT as last argument to
630         expand_simple_binop.
631
632         PR middle-end/66867
633         * builtins.c (expand_ifn_atomic_compare_exchange_into_call,
634         expand_ifn_atomic_compare_exchange): New functions.
635         * internal-fn.c (expand_ATOMIC_COMPARE_EXCHANGE): New function.
636         * tree.h (build_call_expr_internal_loc): Rename to ...
637         (build_call_expr_internal_loc_array): ... this.  Fix up type of
638         last argument.
639         * internal-fn.def (ATOMIC_COMPARE_EXCHANGE): New internal fn.
640         * predict.c (expr_expected_value_1): Handle IMAGPART_EXPR of
641         ATOMIC_COMPARE_EXCHANGE result.
642         * builtins.h (expand_ifn_atomic_compare_exchange): New prototype.
643         * gimple-fold.h (optimize_atomic_compare_exchange_p,
644         fold_builtin_atomic_compare_exchange): New prototypes.
645         * gimple-fold.c (optimize_atomic_compare_exchange_p,
646         fold_builtin_atomic_compare_exchange): New functions..
647         * tree-ssa.c (execute_update_addresses_taken): If
648         optimize_atomic_compare_exchange_p, ignore &var in 2nd argument
649         of call when finding addressable vars, and if such var becomes
650         non-addressable, call fold_builtin_atomic_compare_exchange.
651
652 2016-06-27  Segher Boessenkool  <segher@kernel.crashing.org>
653
654         PR target/71670
655         * config/rs6000/rs6000.md (ashdi3_extswsli_dot): Use
656         gen_ashdi3_extswsli_dot2 instead of gen_ashdi3_extswsli_dot.
657
658 2016-06-27  Pat Haugen  <pthaugen@us.ibm.com>
659
660         * config/rs6000/rs6000.md ('type' attribute): Add
661         veclogical,veccmpfx,vecexts,vecmove insn types.
662         (*abs<mode>2_fpr, *nabs<mode>2_fpr, *neg<mode>2_fpr, *extendsfdf2_fpr,
663         copysign<mode>3_fcpsgn, trunc<mode>df2_internal1, neg<mode>2_internal,
664         p8_fmrgow_<mode>, pack<mode>): Change type to fpsimple.
665         (*xxsel<mode>, copysign<mode>3_hard, neg<mode>2_hw, abs<mode>2_hw,
666         *nabs<mode>2_hw): Change type to vecmove.
667         (*and<mode>3_internal, *bool<mode>3_internal, *boolc<mode>3_internal,
668         *boolcc<mode>3_internal, *eqv<mode>3_internal,
669         *one_cmpl<mode>3_internal, *ieee_128bit_vsx_neg<mode>2_internal,
670         *ieee_128bit_vsx_abs<mode>2_internal,
671         *ieee_128bit_vsx_nabs<mode>2_internal, extendkftf2, trunctfkf2,
672         *ieee128_mfvsrd_64bit, *ieee128_mfvsrd_32bit, *ieee128_mtvsrd_64bit,
673         *ieee128_mtvsrd_32bit): Change type to veclogical.
674         (mov<mode>_hardfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
675         *movdi_internal32, *movdi_internal64): Update insn types.
676         * config/rs6000/vsx.md (*vsx_le_undo_permute_<mode>,
677         vsx_extract_<mode>): Change type to veclogical.
678         (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns): Change type to vecmove.
679         (vsx_sign_extend_qi_<mode>, *vsx_sign_extend_hi_<mode>,
680         *vsx_sign_extend_si_v2di): Change type to vecexts.
681         * config/rs6000/altivec.md (*altivec_mov<mode>, *altivec_movti): Change
682         type to veclogical.
683         (*altivec_eq<mode>, *altivec_gt<mode>, *altivec_gtu<mode>,
684         *altivec_vcmpequ<VI_char>_p, *altivec_vcmpgts<VI_char>_p,
685         *altivec_vcmpgtu<VI_char>_p): Change type to veccmpfx.
686         (*altivec_vsel<mode>, *altivec_vsel<mode>_uns): Change type to vecmove.
687         * config/rs6000/dfp.md (*negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
688         negtd2, *abstd2_fpr, *nabstd2_fpr): Change type to fpsimple.
689         * config/rs6000/40x.md (ppc405-float): Add fpsimple.
690         * config/rs6000/440.md (ppc440-fp): Add fpsimple.
691         * config/rs6000/476.md (ppc476-fp): Add fpsimple.
692         * config/rs6000/601.md (ppc601-fp): Add fpsimple.
693         * config/rs6000/603.md (ppc603-fp): Add fpsimple.
694         * config/rs6000/6xx.md (ppc604-fp): Add fpsimple.
695         * config/rs6000/7xx.md (ppc750-fp): Add fpsimple.
696         (ppc7400-vecsimple): Add veclogical, vecmove, veccmpfx.
697         * config/rs6000/7450.md (ppc7450-fp): Add fpsimple.
698         (ppc7450-vecsimple): Add veclogical, vecmove.
699         (ppc7450-veccmp): Add veccmpfx.
700         * config/rs6000/8540.md (ppc8540_simple_vector): Add veclogical,
701         vecmove.
702         (ppc8540_vector_compare): Add veccmpfx.
703         * config/rs6000/a2.md (ppca2-fp): Add fpsimple.
704         * config/rs6000/cell.md (cell-fp): Add fpsimple.
705         (cell-vecsimple): Add veclogical, vecmove.
706         (cell-veccmp): Add veccmpfx.
707         * config/rs6000/e300c2c3.md (ppce300c3_fp): Add fpsimple.
708         * config/rs6000/e6500.md (e6500_vecsimple): Add veclogical, vecmove,
709         veccmpfx.
710         * config/rs6000/mpc.md (mpccore-fp): Add fpsimple.
711         * config/rs6000/power4.md (power4-fp): Add fpsimple.
712         (power4-vecsimple): Add veclogical, vecmove.
713         (power4-veccmp): Add veccmpfx.
714         * config/rs6000/power5.md (power5-fp): Add fpsimple.
715         * config/rs6000/power6.md (power6-fp): Add fpsimple.
716         (power6-vecsimple): Add veclogical, vecmove.
717         (power6-veccmp): Add veccmpfx.
718         * config/rs6000/power7.md (power7-fp): Add fpsimple.
719         (power7-vecsimple): Add veclogical, vecmove, veccmpfx.
720         * config/rs6000/power8.md (power8-fp): Add fpsimple.
721         (power8-vecsimple): Add veclogical, vecmove, veccmpfx.
722         * config/rs6000/rs64.md (rs64a-fp): Add fpsimple.
723         * config/rs6000/titan.md (titan_fp): Add fpsimple.
724         * config/rs6000/xfpu.md (fp-default, fp-addsub-s, fp-addsub-d): Add
725         fpsimple.
726         * config/rs6000/rs6000.c (rs6000_adjust_cost): Add TYPE_FPSIMPLE.
727
728 2016-06-27  Peter Bergner  <bergner@vnet.ibm.com>
729
730         PR target/71656
731         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
732         OPTION_MASK_P9_DFORM_VECTOR.
733         * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
734         disable -mpower9-dform-vector when using reload.
735         (quad_address_p): Remove 'gpr_p' argument and all associated code.
736         New 'strict' argument.  Update all callers.  Add strict addressing
737         support.
738         (rs6000_legitimate_offset_address_p): Remove call to
739         virtual_stack_registers_memory_p.
740         (rs6000_legitimize_reload_address): Add quad address support.
741         (rs6000_legitimate_address_p): Move call to quad_address_p above
742         call to virtual_stack_registers_memory_p.  Adjust quad_address_p args
743         to account for new strict usage.
744         (rs6000_output_move_128bit): Adjust quad_address_p args to account
745         for new strict usage.
746         * config/rs6000/predicates.md (quad_memory_operand): Likewise.
747
748 2016-06-26  Uros Bizjak  <ubizjak@gmail.com>
749
750         PR target/70902
751         PR target/71453
752         PR target/71555
753         PR target/71596
754         PR target/71657
755         * config/i386/i386.c (ix86_spill_class): Disable condition to
756         always return NO_REGS.
757
758 2016-06-26  Jan Hubicka  <hubicka@ucw.cz>
759
760         * predict.c: Include gimple-pretty-print.h
761         (predicted_by_loop_heuristics_p): Check also
762         PRED_LOOP_EXIT_WITH_RECURSION
763         (predict_loops): Find self recursive calls and use special purpose
764         predictors for them; dump log about decisions.
765         (pass_profile::execute): Dump info about #of iterations.
766         * predict.def (PRED_LOOP_EXIT_WITH_RECURSION,
767         (PRED_LOOP_GUARD_WITH_RECURSION): New predictors.
768
769 2016-06-26  John David Anglin  <danglin@gcc.gnu.org>
770
771         * config/pa/pa.c (pa_output_indirect_call): Rework to combine
772         output_asm_insn calls and shorten long lines.  Output .CALL
773         argument descriptor using pa_output_arg_descriptor.  Add various
774         inline $$dyncall and other optimizations.
775         (pa_attr_length_indirect_call): Adjust ordering and lengths.
776
777 2016-06-25  Jakub Jelinek  <jakub@redhat.com>
778
779         PR tree-optimization/71643
780         * tree-ssa-tail-merge.c (find_clusters_1): Ignore basic blocks with
781         EH preds.
782
783         * tree-ssa-tail-merge.c (deps_ok_for_redirect_from_bb_to_bb): Don't
784         leak a bitmap if dep_bb is NULL.
785
786         PR tree-optimization/71631
787         * tree-ssa-reassoc.c (reassociate_bb): Pass true as last argument
788         to rewrite_expr_tree even if negate_result, move new_lhs var
789         declaration and initialization earlier, for powi_result set afterwards
790         new_lhs to lhs.  For negate_result, use new_lhs instead of tmp
791         if new_lhs != lhs, and don't shadow gsi var.
792
793 2016-06-24  Jan Hubicka  <hubicka@ucw.cz>
794
795         * predict.c (predict_paths_leading_to, predict_paths_leading_to_edge):
796         Add in_loop parameter.
797         (predict_loops): Add loop guard heuristics.
798         * predict.def (PRED_LOOP_GUARD): New heuristics.
799
800 2016-06-24  Jan Hubicka  <hubicka@ucw.cz>
801
802         * predict.c: Include ipa-utils.h
803         (tree_bb_level_prediction): Predict recursive calls.
804         (tree_estimate_probability_bb): Skip inexpensive calls for call
805         predictor.
806         * predict.def (PRED_RECURSIVE_CALL): New.
807
808 2016-06-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
809
810         * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): New #define.
811         (BU_FLOAT128_1): Likewise.
812         (FABSQ): Likewise.
813         (COPYSIGNQ): Likewise.
814         (RS6000_BUILTIN_NANQ): Likewise.
815         (RS6000_BUILTIN_NANSQ): Likewise.
816         (RS6000_BUILTIN_INFQ): Likewise.
817         (RS6000_BUILTIN_HUGE_VALQ): Likewise.
818         * config/rs6000/rs6000.c (rs6000_fold_builtin): New prototype.
819         (TARGET_FOLD_BUILTIN): New #define.
820         (rs6000_builtin_mask_calculate): Add TARGET_FLOAT128 entry.
821         (rs6000_invalid_builtin): Add handling for RS6000_BTM_FLOAT128.
822         (rs6000_fold_builtin): New target hook implementation, handling
823         folding of 128-bit NaNs and infinities.
824         (rs6000_init_builtins): Initialize const_str_type_node; ensure all
825         entries are filled in to avoid problems during bootstrap
826         self-test; define builtins for 128-bit NaNs and infinities.
827         (rs6000_opt_mask): Add entry for float128.
828         * config/rs6000/rs6000.h (RS6000_BTM_FLOAT128): New #define.
829         (RS6000_BTM_COMMON): Include RS6000_BTM_FLOAT128.
830         (rs6000_builtin_type_index): Add RS6000_BTI_const_str.
831         (const_str_type_node): New #define.
832         * config/rs6000/rs6000.md (copysign<mode>3 for IEEE128): Convert
833         to a define_expand that dispatches to either copysign<mode>3_soft
834         or copysign<mode>3_hard.
835         (copysign<mode>3_hard): Rename from copysign<mode>3.
836         (copysign<mode>3_soft): New define_insn.
837         * doc/extend.texi: Document new builtins.
838
839 2016-06-24  Jakub Jelinek  <jakub@redhat.com>
840
841         * cfgloop.c (flow_loop_dump): Cast nit to uint64_t and print it using
842         PRIu64 instead of lu.
843
844 2016-06-24  Eric Botcazou  <ebotcazou@adacore.com>
845
846         PR debug/71642
847         * tree-inline.c (remap_decl): When fixing up DECL_ORIGINAL_TYPE, just
848         copy the type name.
849
850 2016-06-24  Jakub Jelinek  <jakub@redhat.com>
851
852         PR tree-optimization/71647
853         * omp-low.c (lower_rec_input_clauses): Convert
854         omp_clause_aligned_alignment (c) to size_type_node for the
855         last argument of __builtin_assume_aligned.
856
857 2016-06-24  H.J. Lu  <hongjiu.lu@intel.com>
858
859         * configure.ac (calling ___tls_get_addr via GOT): New
860         assembler/linker check.
861         (HAVE_AS_IX86_TLS_GET_ADDR_GOT): New.  Defined to 1 if 32-bit
862         assembler and linker supports calling ___tls_get_addr via GOT.
863         Otherise, defined to 0.
864         * config.in: Regenerated.
865         * configure: Likewise.
866         * config/i386/constraints.md (Yb): New constraint.
867         * config/i386/i386.h (reg_class): Add TLS_GOTBASE_REGS.
868         (REG_CLASS_NAMES): Likewise.
869         (REG_CLASS_CONTENTS): Likewise.
870         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Replace
871         the b constraint with the Yb constraint.  Call ___tls_get_addr
872         via GOT for GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT
873         is 1.
874         (*tls_local_dynamic_base_32_gnu): Likewise.
875         (*tls_global_dynamic_64_<mode>): Call _tls_get_addr via GOT for
876         GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT is 1.
877         (*tls_local_dynamic_base_64_<mode>): Likewise.
878
879 2016-06-24  Martin Liska  <mliska@suse.cz>
880
881         * cfgloop.c (flow_loop_dump): Dump average number of loop iterations.
882         * cfgloop.h: Change 'struct loop' to 'const struct loop' for a
883         few functions.
884         * cfgloopanal.c (expected_loop_iterations_unbounded): Set a new
885         argument to true if the expected number of iterations is
886         loop-based.
887
888 2016-06-24  Uros Bizjak  <ubizjak@gmail.com>
889
890         * configure.ac (HAVE_AS_GOTOF_IN_DATA): Use $as_ix86_gas_32_opt to
891         assemble for 32bit target.
892         (HAVE_AS_IX86_TLSGDPLT): Use $as_ix86_gas_32_opt to assemble
893         and $ld_ix86_gld_32_opt to link for 32bit target.
894         (HAVE_AS_IX86_TLSLDMPLT): Ditto.
895         * configure: Regenerate.
896
897 2016-06-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
898
899         * config/arm/arm.c (int_log2): Delete definition and prototype.
900         (shift_op): Use exact_log2 instead of int_log2.
901         (vfp3_const_double_for_fract_bits): Likewise.
902
903 2016-06-24  Jakub Jelinek  <jakub@redhat.com>
904
905         * internal-fn.c (expand_arith_set_overflow): New function.
906         (expand_addsub_overflow, expand_neg_overflow, expand_mul_overflow):
907         Use it.
908         (expand_arith_overflow_result_store): Likewise.  Handle precision
909         smaller than mode precision.
910         * tree-vrp.c (extract_range_basic): For imag part, handle
911         properly signed 1-bit precision result.
912         * doc/extend.texi (__builtin_add_overflow): Document that last
913         argument can't be pointer to enumerated or boolean type.
914         (__builtin_add_overflow_p): Document that last argument can't
915         have enumerated or boolean type.
916
917 2016-06-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
918             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
919
920         * config/rs6000/predicates.md (splat_input_operand): Rework.
921         Don't allow constants, since the insns that use this predicate
922         don't support constants.  Constants are handled by other insns
923         that are created via combine.  During and after register
924         allocation, only allow indexed or indirect addresses, and not
925         general addresses.  Only allow modes supported by the hardware.
926         * config/rs6000/rs6000.c (xxsplitb_constant_p): Update usage
927         comment.  Move check for using VSPLTIS<x> to a common location,
928         instead of doing it in two different places.
929
930 2016-06-23  Jocelyn Mayer  <l_indien@magic.fr>
931
932         * config/i386/driver-i386.c (host_detect_local_cpu): Set
933         PROCESSOR_PENTIUMPRO for signature_CENTAUR_ebx family >= 9.
934         <case PROCESSOR_PENTIMUMPRO>: Pass c7 or nehemiah for
935         signature_CENTAUR_ebx.
936
937 2016-06-23  H.J. Lu  <hongjiu.lu@intel.com>
938
939         PR target/66232
940         PR target/67400
941         * configure.ac (as_ix86_tls_ldm_opt): Renamed to ...
942         (as_ix86_gas_32_opt): This.
943         (ld_ix86_tls_ldm_opt): Renamed to ...
944         (ld_ix86_gld_32_opt): This.
945         (R_386_TLS_LDM reloc): Updated.
946         (R_386_GOT32X reloc): New assembler/linker check.
947         (HAVE_AS_IX86_GOT32X): New.  Defined to 1 if 32-bit assembler and
948         linker support "jmp *_start@GOT" and "cmpl $0, bar@GOT".  Otherise,
949         defined to 0.
950         * config.in: Regenerated.
951         * configure: Likewise.
952         * config/i386/i386.c (ix86_force_load_from_GOT_p): Return
953         true if HAVE_AS_IX86_GOT32X is 1 in 32-bit mode.
954         (ix86_legitimate_address_p): Allow UNSPEC_GOT for -fno-plt
955         if ix86_force_load_from_GOT_p returns true.
956         (ix86_print_operand_address_as): Also support UNSPEC_GOT if
957         ix86_force_load_from_GOT_p returns true.
958         (ix86_expand_move): Generate UNSPEC_GOT in 32-bit mode to load
959         the external function address via the GOT slot.
960         (ix86_nopic_noplt_attribute_p): Check both TARGET_64BIT and
961         HAVE_AS_IX86_GOT32X before returning false.
962         (ix86_output_call_insn): Generate "%!jmp/call\t*%p0@GOT" in
963         32-bit mode if ix86_nopic_noplt_attribute_p returns true.
964
965 2016-06-23  Eric Botcazou  <ebotcazou@adacore.com>
966
967         * tree-inline.c (remap_decl): Preserve DECL_ORIGINAL_TYPE invariant.
968
969 2016-06-23  Andi Kleen  <ak@linux.intel.com>
970
971         * Makefile.in: Regenerate.
972         * doc/install.texi: Document autoprofiledbootstrap.
973
974 2016-06-23  Andi Kleen  <ak@linux.intel.com>
975
976         * config/i386/gcc-auto-profile: New file.
977
978 2016-06-23  Martin Liska  <mliska@suse.cz>
979
980         PR middle-end/71619
981         * predict.c (predict_loops): Revert the hunk that was removed
982         in r237103.
983
984 2016-06-23  Jakub Sejdak  <jakub.sejdak@phoesys.com>
985
986         * config.gcc: Add support for arm*-*-phoenix* targets.
987         * config/arm/t-phoenix: New.
988         * config/phoenix.h: New.
989
990 2016-06-23  Uros Bizjak  <ubizjak@gmail.com>
991             H.J. Lu  <hongjiu.lu@intel.com>
992
993         PR target/67400
994         * config/i386/i386-protos.h (ix86_force_load_from_GOT_p): New.
995         * config/i386/i386.c (ix86_force_load_from_GOT_p): New function.
996         (ix86_legitimate_constant_p): Do not allow UNSPEC_GOTPCREL if
997         ix86_force_load_from_GOT_p returns true.
998         (ix86_legitimate_address_p): Allow UNSPEC_GOTPCREL if
999         ix86_force_load_from_GOT_p returns true.
1000         (ix86_print_operand_address_as): Support UNSPEC_GOTPCREL if
1001         ix86_force_load_from_GOT_p returns true.
1002         (ix86_expand_move): Load the external function address via the
1003         GOT slot if ix86_force_load_from_GOT_p returns true.
1004         * config/i386/predicates.md (x86_64_immediate_operand): Return
1005         false for SYMBOL_REFs where ix86_force_load_from_GOT_p returns true.
1006         (x86_64_zext_immediate_operand): Ditto.
1007
1008 2016-06-22  Uros Bizjak  <ubizjak@gmail.com>
1009
1010         * config/i386/i386.c (ix86_expand_move): Simplify SYMBOL_REF handling.
1011
1012 2016-06-22  David Malcolm  <dmalcolm@redhat.com>
1013
1014         PR c/70339
1015         * diagnostic-core.h (pedwarn_at_rich_loc): New prototype.
1016         * diagnostic.c (pedwarn_at_rich_loc): New function.
1017         * spellcheck.h (best_match::best_match): Add a
1018         "best_distance_so_far" optional parameter.
1019         (best_match::set_best_so_far): New method.
1020         (best_match::get_best_distance): New accessor.
1021         (best_match::get_best_candidate_length): New accessor.
1022
1023 2016-06-22  Nick Clifton  <nickc@redhat.com>
1024
1025         * dwarf2out.c (scompare_loc_descriptor): Use SCALAR_INT_MODE_P() in
1026         place of GET_MODE_CLASS() == MODE_INT, so that partial integer
1027         modes are accepted as well.
1028         (ucompare_loc_descriptor): Likewise.
1029         (minmax_loc_descriptor): Likewise.
1030         (clz_loc_descriptor): Likewise.
1031         (popcount_loc_descriptor): Likewise.
1032         (bswap_loc_descriptor): Likewise.
1033         (rotate_loc_descriptor): Likewise.
1034         (mem_loc_descriptor): Likewise.
1035         (loc_descriptor): Likewise.
1036
1037 2016-06-22  David Malcolm  <dmalcolm@redhat.com>
1038
1039         * common.opt (fdiagnostics-parseable-fixits): New option.
1040         * diagnostic.c: Include "selftest.h".
1041         (print_escaped_string): New function.
1042         (print_parseable_fixits): New function.
1043         (diagnostic_report_diagnostic): Call print_parseable_fixits.
1044         (selftest::assert_print_escaped_string): New function.
1045         (ASSERT_PRINT_ESCAPED_STRING_STREQ): New macro.
1046         (selftest::test_print_escaped_string): New function.
1047         (selftest::test_print_parseable_fixits_none): New function.
1048         (selftest::test_print_parseable_fixits_insert): New function.
1049         (selftest::test_print_parseable_fixits_remove): New function.
1050         (selftest::test_print_parseable_fixits_replace): New function.
1051         (selftest::diagnostic_c_tests): New function.
1052         * diagnostic.h (struct diagnostic_context): Add field
1053         "parseable_fixits_p".
1054         * doc/invoke.texi (Diagnostic Message Formatting Options): Add
1055         -fdiagnostics-parseable-fixits.
1056         (-fdiagnostics-parseable-fixits): New option.
1057         * opts.c (common_handle_option): Handle
1058         -fdiagnostics-parseable-fixits.
1059         * selftest-run-tests.c (selftest::run_tests): Call
1060         selftest::diagnostic_c_tests.
1061         * selftest.h (selftest::diagnostic_c_tests): New prototype.
1062
1063 2016-06-22  Ilya Enkovich  <ilya.enkovich@intel.com>
1064
1065         PR tree-optimization/71488
1066         * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Support
1067         comparison of boolean vectors.
1068         * tree-vect-stmts.c (vectorizable_comparison): Vectorize comparison
1069         of boolean vectors using bitwise operations.
1070
1071 2016-06-22  Andreas Schwab  <schwab@suse.de>
1072
1073         * config/aarch64/aarch64-protos.h (aarch64_elf_asm_named_section):
1074         Remove declaration.
1075
1076 2016-06-22  Eric Botcazou  <ebotcazou@adacore.com>
1077
1078         * function.c (assign_parm_setup_reg): Prevent sharing in another case.
1079
1080 2016-06-22  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1081
1082         * config/i386/i386.c (print_reg): Emit an error message on attempt to
1083         print FLAGS_REG.
1084
1085 2016-06-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1086
1087         * config/arm/arm.c (arm_cortex_a73_tune): New struct.
1088         * config/arm/arm-cores.def (cortex-a73): New entry.
1089         (cortex-a73.cortex-a35): Likewise.
1090         (cortex-a73.cortex-a53): Likewise.
1091         * config/arm/arm-tables.opt: Regenerate.
1092         * config/arm/arm-tune.md: Likewise.
1093         * config/arm/bpabi.h (BE8_LINK_SPEC): Handle mcpu=cortex-a73,
1094         mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
1095         * config/arm/t-aprofile: Handle mcpu=cortex-a73,
1096         mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
1097         * doc/invoke.texi (ARM Options): Document cortex-a73,
1098         cortex-a73.cortex-a35 and cortex-a73.cortex-a53.
1099
1100 2016-06-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1101
1102         * config/aarch64/aarch64.c (cortexa73_tunings): New struct.
1103         * config/aarch64/aarch64-cores.def (cortex-a73): New entry.
1104         (cortex-a73.cortex-a35): Likewise.
1105         (cortex-a73.cortex-a53): Likewise.
1106         * config/aarch64/aarch64-tune.md: Regenerate.
1107         * doc/invoke.texi (AArch64 Options): Document cortex-a73,
1108         cortex-a73.cortex-a35 and cortex-a73.cortex-a53 arguments to
1109         -mcpu and -mtune.
1110
1111 2016-06-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1112
1113         * configure.ac (gcc_cv_as_compress_debug): Remove
1114         --compress-debug-sections as extra as switch.
1115         Handle gas --compress-debug-sections=type.
1116         (gcc_cv_ld_compess_debug): Remove bogus ld_date check.
1117         Handle gld --compress-debug-sections=type.
1118         * configure: Regenerate.
1119
1120 2016-06-21  Andrew Burgess  <andrew.burgess@embecosm.com>
1121
1122         * bb-reorder.c (pass_partition_blocks::gate): Update comment.
1123
1124 2016-06-21  John David Anglin  <danglin@gcc.gnu.org>
1125
1126         * gcov-tool.c (profile_rewrite): Use int64_t instead of long long.
1127         (do_rewrite): likewise.
1128
1129 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1130
1131         * common/config/mep/mep-common.c: Remove.
1132         * config.gcc: Remove mep-* support.
1133         * config/mep/constraints.md: Remove.
1134         * config/mep/default.h: Remove.
1135         * config/mep/intrinsics.h: Remove.
1136         * config/mep/intrinsics.md: Remove.
1137         * config/mep/ivc2-template.h: Remove.
1138         * config/mep/mep-c5.cpu: Remove.
1139         * config/mep/mep-core.cpu: Remove.
1140         * config/mep/mep-default.cpu: Remove.
1141         * config/mep/mep-ext-cop.cpu: Remove.
1142         * config/mep/mep-intrin.h: Remove.
1143         * config/mep/mep-ivc2.cpu: Remove.
1144         * config/mep/mep-pragma.c: Remove.
1145         * config/mep/mep-protos.h: Remove.
1146         * config/mep/mep.c: Remove.
1147         * config/mep/mep.cpu: Remove.
1148         * config/mep/mep.h: Remove.
1149         * config/mep/mep.md: Remove.
1150         * config/mep/mep.opt: Remove.
1151         * config/mep/predicates.md: Remove.
1152         * config/mep/t-mep: Remove.
1153         * doc/install.texi: Remove mep-* documentation.
1154         * doc/md.texi: Likewise.
1155
1156 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1157
1158         * config.gcc: Remove support for avr-rtems.
1159         * config/avr/gen-avr-mmcu-specs.c: Likewise.
1160         * config/avr/rtems.h: Remove.
1161         * config/avr/t-rtems: Remove.
1162
1163 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1164
1165         * config.gcc: Remove m32r-rtems support.
1166         * config/m32r/rtems.h: Remove.
1167
1168 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1169
1170         * config.gcc: Remove h8300-rtems support.
1171         * config/h8300/rtems.h: Remove.
1172         * config/h8300/t-rtems: Remove.
1173
1174 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1175
1176         * config.gcc: Remove support for knetbsd.
1177         * configure.ac: Likewise.
1178         * config/i386/knetbsd-gnu.h: Remove.  * config/i386/knetbsd-gnu64.h: Remove.
1179         * config/knetbsd-gnu.h: Remove.
1180         * configure: Regenerate.
1181
1182 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1183
1184         * config.gcc: Remove support for openbsd 2 and 3.
1185         * config/openbsd-oldgas.h: Remove.
1186
1187 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1188
1189         * config.gcc: Remove interix support.
1190         * config/i386/i386-interix.h: Remove.
1191         * config/i386/interix.opt: Remove.
1192         * config/i386/t-interix: Remove.
1193         * configure: Regenerate.
1194         * configure.ac: Remove interix support.
1195         * doc/install.texi: Remove interix documentation.
1196
1197 2016-06-21  Kelvin Nilsen  <kelvin@gcc.gnu.org>
1198
1199         * config/rs6000/rs6000.h: Add conditional preprocessing directives
1200         to disable Power9-specific compiler features if HAVE_AS_POWER9 is
1201         not defined.
1202
1203 2016-06-21  Eric Botcazou  <ebotcazou@adacore.com>
1204
1205         * tree.c (verify_type_variant): Skip TYPE_SIZE and TYPE_SIZE_UNIT if
1206         they are both PLACEHOLDER_EXPRs.
1207
1208 2016-06-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
1209
1210         * stor-layout.c (layout_type): Move setting complex MODE to
1211         layout_type, instead of setting it ahead of time by the caller.
1212         * tree.c (build_complex_type): Likewise.
1213
1214 2016-06-21  Martin Liska  <mliska@suse.cz>
1215
1216         * predict.c (force_edge_cold): Replace imposisble with
1217         impossible.
1218
1219 2016-06-21  Ilya Verbin  <ilya.verbin@intel.com>
1220
1221         * config/i386/i386.c (ix86_emit_swsqrtsf): Emit vrsqrt28ps.
1222         * config/i386/sse.md (define_expand "rsqrtv16sf2"): New.
1223
1224 2016-06-21  Ilya Verbin  <ilya.verbin@intel.com>
1225
1226         * config/i386/i386.c (ix86_emit_swdivsf): Emit vrcp28ps.
1227
1228 2016-06-21  H.J. Lu  <hongjiu.lu@intel.com>
1229             Ilya Enkovich  <ilya.enkovich@intel.com>
1230
1231         PR target/71549
1232         * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
1233         New member function to convert V1TImode register to SUBREG
1234         TImode in debug insn.
1235         (timode_scalar_chain::convert_insn): Call fix_debug_reg_uses
1236         after changing register mode to V1TImode.
1237
1238 2016-06-21  Virendra Pathak  <virendra.pathak@broadcom.com>
1239
1240         * config/aarch64/aarch64-cores.def (vulcan): New core.
1241         * config/aarch64/aarch64-tune.md: Regenerate.
1242         * doc/invoke.texi: Document vulcan as an available option.
1243
1244 2016-06-21  Eric Botcazou  <ebotcazou@adacore.com>
1245
1246         * cse.c (canon_asm_operands): New function extracted from...
1247         (canonicalize_insn): ...here.  Call it to canonicalize an ASM_OPERANDS
1248         either standalone or member of a PARALLEL.
1249
1250 2016-06-21  Georg-Johann Lay  <avr@gjlay.de>
1251
1252         PR target/30417
1253         * config/avr/gen-avr-mmcu-specs.c (print_mcu):
1254         [*link_data_start]: Wrap -Tdata into %{!Tdata:...}.
1255         [*link_text_start]: Wrap -Ttext into %{!Ttext:...}.
1256
1257 2016-06-21  Georg-Johann Lay  <avr@gjlay.de>
1258
1259         PR target/71103
1260         * config/avr/avr.md (movqi): Only handle loading subreg:qi of
1261         constant addresses if can_create_pseudo_p.
1262
1263 2016-06-21  Jakub Jelinek  <jakub@redhat.com>
1264
1265         PR tree-optimization/71588
1266         * tree-ssa-strlen.c (valid_builtin_call): New function.
1267         (adjust_last_stmt, handle_builtin_memset, strlen_optimize_stmt): Use
1268         it.
1269
1270 2016-06-20  Jakub Jelinek  <jakub@redhat.com>
1271
1272         PR middle-end/71581
1273         * tree-ssa-uninit.c (warn_uninit): If EXPR and VAR are NULL,
1274         see if T isn't anonymous SSA_NAME with COMPLEX_EXPR created
1275         for conversion of scalar user var to complex type and use the
1276         underlying SSA_NAME_VAR in that case.  If EXPR is still NULL,
1277         punt.
1278
1279         PR rtl-optimization/71591
1280         * toplev.c (toplev::run_self_tests): If no_backend, complain and
1281         don't run any tests.
1282
1283 2016-06-20  Hans-Peter Nilsson  <hp@axis.com>
1284
1285         PR target/71571
1286         * config/cris/cris.c (cris_asm_output_mi_thunk): Add missing "ba"
1287         delay-slot "nop" for PIC with CRIS v32.  Also add missing leading
1288         space for PIC with non-v32 and the common non-PIC "jump".
1289
1290 2016-06-20  Jakub Jelinek  <jakub@redhat.com>
1291
1292         PR target/71559
1293         * config/i386/i386.c (ix86_fp_cmp_code_to_pcmp_immediate): Fix up
1294         returned values and add UN*/LTGT/*ORDERED cases with values matching
1295         D operand modifier on vcmp for AVX.
1296
1297 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
1298
1299         * config/aarch64/aarch64.opt
1300         (mpc-relative-literal-loads): Rename internal option name.
1301         * config/aarch64/aarch64.c
1302         (aarch64_nopcrelative_literal_loads): Rename to
1303         aarch64_pcrelative_literal_loads.
1304         (aarch64_expand_mov_immediate): Likewise.
1305         (aarch64_secondary_reload): Likewise.
1306         (aarch64_can_use_per_function_literal_pools_p): Likewise.
1307         (aarch64_override_options_after_change_1): Rename and simplify logic.
1308         (aarch64_classify_symbol): Merge large model checks into switch,
1309         remove pc-relative load check.
1310
1311 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
1312
1313         * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): Make FP
1314         costs relative to the cost of a register move.
1315
1316 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
1317
1318         * config/aarch64/arm_neon.h (vcvt_n_f64_s64): New.
1319         (vcvt_n_f64_u64): Likewise.
1320         (vcvt_n_s64_f64): Likewise.
1321         (vcvt_n_u64_f64): Likewise.
1322         (vcvt_f64_s64): Likewise.
1323         (vrecpe_f64): Likewise.
1324         (vcvt_f64_u64): Likewise.
1325         (vrecps_f64): Likewise.
1326
1327 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
1328
1329         * config/aarch64/aarch64.md
1330         (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3): Add attributes to
1331         iterators.
1332         (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>3): Likewise.  Correct
1333         attributes.
1334         * config/aarch64/aarch64-builtins.c
1335         (aarch64_types_binop_uss_qualifiers): Delete.
1336         (TYPES_BINOP_USS): Likewise.
1337         (aarch64_types_binop_sus_qualifiers): Likewise.
1338         (TYPES_BINOP_SUS): Likewise.
1339         (aarch64_types_fcvt_from_unsigned_qualifiers): New.
1340         (TYPES_FCVTIMM_SUS): Likewise.
1341         * config/aarch64/aarch64-simd-builtins.def (scvtf): Use SHIFTIMM
1342         rather than BINOP.
1343         (ucvtf): Use FCVTIMM_SUS rather than BINOP_SUS.
1344         (fcvtzs): Use SHIFTIMM rather than BINOP.
1345         (fcvtzu): Use SHIFTIMM_USS rather than BINOP_USS.
1346
1347 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
1348
1349         * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): Make FP
1350         costs relative to the cost of a register move.
1351
1352 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
1353
1354         * config/aarch64/aarch64.c (aarch64_modes_tieable_p):
1355         Allow scalar/single vector modes to be tieable.
1356
1357 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
1358
1359         * config/arm/cortex-a57.md (cortex_a57_fp_cpys): Add fcsel.
1360
1361 2016-06-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1362
1363         * params.def (PARAM_ALIGN_LOOP_ITERATIONS): Use "alignment" instead of
1364         "alignement".
1365         * tree.h (TYPE_ALIGN): Likewise.
1366
1367 2016-06-20  Georg-Johann Lay  <avr@gjlay.de>
1368
1369         PR target/71103
1370         * config/avr/avr.md (movqi): Handle loading subreg:qi (const).
1371
1372 2016-06-20  Georg-Johann Lay  <avr@gjlay.de>
1373
1374         * config/avr/avr.c (avr_print_operand): Fix "format not a string
1375         literal" build warnings.
1376         (avr_print_operand_address): Dito.
1377
1378 2016-06-19  David Edelsohn  <dje.gcc@gmail.com>
1379
1380         PR target/71375
1381         * config/rs6000/aix51.h (TARGET_EXTRA_BUILTINS): Define as 0.
1382         * config/rs6000/aix43.h (TARGET_EXTRA_BUILTINS): Same.
1383
1384 2016-06-18  John David Anglin  <danglin@gcc.gnu.org>
1385
1386         * config/pa/pa.h (TARGET_LONG_PIC_PCREL_CALL): Remove.
1387
1388 2016-06-18  Eric Botcazou  <ebotcazou@adacore.com>
1389
1390         PR bootstrap/71435
1391         * reload1.c (reload): Pass 0 to finish_spills when called because
1392         update_eliminables_and_spill returns true and remove did_spill.
1393         (finish_spills): Adjust comment and document GLOBAL parameter.
1394
1395 2016-06-17  DJ Delorie  <dj@redhat.com>
1396
1397         PR target/71338
1398         * config/rl78/rl78-expand.c (umulqihi3): Enable for G10.
1399         * config/rl78/rl78-virtual.c (umulhi3_shift_virt): Likewise.
1400         (umulqihi3_virt): Likewise.
1401         * config/rl78/rl78-real.c (umulhi3_shift_real): Likewise.
1402         (umulqihi3_real): Likewise.
1403
1404 2016-06-17  Martin Liska  <mliska@suse.cz>
1405
1406         * tree-ssa-reassoc.c (transform_add_to_multiply): Use auto_vec.
1407
1408 2016-06-17  Martin Liska  <mliska@suse.cz>
1409
1410         * predict.def: PRED_LOOP_EXIT from 92 to 85.
1411
1412 2016-06-17  James Greenhalgh  <james.greenhalgh@arm.com>
1413
1414         * config/arm/arm_neon.h (vadd_f32): replace __FAST_MATH with
1415         __FAST_MATH__.
1416         (vaddq_f32): Likewise.
1417         (vmul_f32): Likewise.
1418         (vmulq_f32): Likewise.
1419         (vsub_f32): Likewise.
1420         (vsubq_f32): Likewise.
1421
1422 2016-06-17  Bin Cheng  <bin.cheng@arm.com>
1423
1424         PR tree-optimization/71347
1425         * tree-ssa-loop-ivopts.c (determine_group_iv_cost_address): Compute
1426         cost for all uses in group.
1427
1428 2016-06-17 Bin Cheng  <bin.cheng@arm.com>
1429
1430         * tree-vect-loop.c (vect_create_epilog_for_reduction): Only
1431         insert gimple seq if it's not empty.
1432
1433 2016-06-17  Bin Cheng  <bin.cheng@arm.com>
1434
1435         * tree-vectorizer.h (struct dr_with_seg_len): Remove class
1436         member OFFSET.
1437         * tree-vect-data-refs.c (operator ==): Handle DR_OFFSET directly,
1438         rather than OFFSET.
1439         (comp_dr_with_seg_len_pair): Ditto.
1440         (vect_prune_runtime_alias_test_list): Ditto.  Also Canonicalize
1441         struct dr_with_seg_len_pair against DR_OFFSET.
1442         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Handle
1443         DR_OFFSET directly.
1444
1445 2016-06-17  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1446
1447         * config/aarch64/geniterators.sh: Handle parenthesised conditions.
1448
1449 2016-06-16  John David Anglin  <danglin@gcc.gnu.org>
1450
1451         * config/pa/pa.c (pa_output_pic_pcrel_sequence): New.
1452         (pa_output_lbranch): Use pa_output_pic_pcrel_sequence.
1453         (pa_output_millicode_call): Likewise.
1454         (pa_output_call): Likewise.
1455         (pa_output_indirect_call): Likewise.
1456         (pa_asm_output_mi_thunk): Likewise.
1457
1458 2016-06-16  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
1459
1460         * doc/invoke.texi (x86 Options): Fix -mno-fp-ret-in-387 typo.
1461
1462 2016-06-16  Martin Liska  <mliska@suse.cz>
1463
1464         * predict.c (combine_predictions_for_insn): When we find a first
1465         match predictor, we should consider just predictors with
1466         PRED_FLAG_FIRST_MATCH.  Print either first match (if any) or
1467         DS theory predictor.
1468         (combine_predictions_for_bb): Likewise.
1469
1470 2016-06-16  Jakub Jelinek  <jakub@redhat.com>
1471
1472         * gimplify.c (gimplify_scan_omp_clauses): Handle COMPONENT_REFs
1473         with base of reference to struct.
1474
1475 2016-06-16  Uros Bizjak  <ubizjak@gmail.com>
1476
1477         * doc/invoke.texi (x86 Options): Document -m80387 and -mhard-float.
1478
1479 2016-06-16  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
1480
1481         PR target/71151
1482         * config/avr/avr.c (avr_asm_init_sections): Remove setup of
1483         progmem_swtable_section.
1484         (progmem_swtable_section): Remove.
1485         (avr_asm_function_rodata_section): Remove.
1486         (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
1487         * config/avr/avr.h (JUMP_TABLES_IN_TEXT_SECTION: Define to 1.
1488
1489 2016-06-16  Jocelyn Mayer  <l_indien@magic.fr>
1490
1491         * config/i386/driver-i386.c (host_detect_local_cpu): Set
1492         PROCESSOR_K8 for signature_CENTAUR_ebx with has_longmode.
1493         <case PROCESSOR_K8>: Pass nano-3000, nano, eden-x2 or k8 for
1494         signature_CENTAUR_ebx.
1495         * config/i386/i386.c (ix86_option_override_internal): Add
1496         definitions for VIA c7, samuel-2, nehemiah, esther, eden-x2, eden-x4,
1497         nano, nano-1000, nano-2000, nano-3000, nano-x2 and nano-x4.
1498         * doc/invoke.texi (x86 Options): Document new VIA -march entries.
1499
1500 2016-06-16  Martin Liska  <mliska@suse.cz>
1501
1502         * predict.def: Add fortran loop preheader predictor.
1503         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Properly
1504         fold IFN_BUILTIN_EXPECT with a known constant argument.
1505
1506 2016-06-16  Martin Liska  <mliska@suse.cz>
1507
1508         * predict.def: Add 'Fortran' to display text of all
1509         PRED_FORTRAN_* predictors.
1510
1511 2016-06-16  Uros Bizjak  <ubizjak@gmail.com>
1512
1513         PR target/71242
1514         * config/ia64/ia64.c (enum ia64_builtins) [IA64_BUILTIN_NANQ]: New.
1515         [IA64_BUILTIN_NANSQ]: Ditto.
1516         (ia64_fold_builtin): New function.
1517         (TARGET_FOLD_BUILTIN): New define.
1518         (ia64_init_builtins) Declare const_string_type node.
1519         Add __builtin_nanq and __builtin_nansq builtin functions.
1520         (ia64_expand_builtin): Handle IA64_BUILTIN_NANQ and IA64_BUILTIN_NANSQ.
1521
1522 2016-06-16  Nick Clifton  <nickc@redhat.com>
1523
1524         * config/msp430/msp430-opts.h (msp430_hwmult_types): Add
1525         MSP430_HWMULT_ prefix to enum values.
1526         (msp430_regions): Add MSP430_REGION_ prefix to enum values.
1527         * config/msp430/msp430.c: Update use of enum values.
1528         * config/msp430/msp430.md: Likewise.
1529         * config/msp430/msp430.opt: Likewise.
1530
1531 2016-06-16  Jan Hubicka  <hubicka@ucw.cz>
1532
1533         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Fix estimation
1534         of comparsions in the last iteration.
1535
1536 2016-06-16  Claudiu Zissulescu  <claziss@synopsys.com>
1537             Joern Rennecke  <joern.rennecke@embecosm.com>
1538
1539         * config/arc/arc.c (arc_print_operand_address): Handle pc-relative
1540         addresses.
1541         (arc_needs_pcl_p): Add GOTOFFPC.
1542         (arc_legitimate_pic_addr_p): Likewise.
1543         (arc_output_pic_addr_const): Likewise.
1544         (arc_legitimize_pic_address): Generate a pc-relative address using
1545         GOTOFFPC.
1546         (arc_output_libcall): Use @pcl syntax.
1547         (arc_delegitimize_address_0): Delegitimize ARC_UNSPEC_GOTOFFPC.
1548         * config/arc/arc.md ("unspec"): Add ARC_UNSPEC_GOTOFFPC.
1549         (*movsi_insn): Use @pcl syntax.
1550         (doloop_begin_i): Likewise.
1551
1552 2016-06-16  Martin Liska  <mliska@suse.cz>
1553
1554         * predict.def: Define a new predictor.
1555
1556 2016-06-16  Claudiu Zissulescu  <claziss@synopsys.com>
1557
1558         * config/arc/arc.opt (mtp-regno): Update text.
1559
1560 2016-06-16  Renlin Li  <renlin.li@arm.com>
1561
1562         * config/aarch64/aarch64.c (aarch64_legitimize_address): Fix a typo.
1563
1564 2016-06-16  Jakub Jelinek  <jakub@redhat.com>
1565
1566         PR target/71554
1567         * config/i386/i386.md (setcc + movzbl peephole2): Use reg_set_p.
1568         (setcc + and peephole2): Likewise.
1569
1570         PR rtl-optimization/71532
1571         * cse.c (cse_insn): For const/pure calls, invalidate argument passing
1572         memory slots.
1573
1574 2016-06-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
1575
1576         * config/rs6000/vsx.md (VSINT_84): Add DImode to enable loading
1577         DImode constants with XXSPLTIB in vector registers.
1578         (vsx_extract_<mode>, V2DImode/V2DFmode): Combine both
1579         vsx_extract_<mode>_internal{1,2} into a single insn that handles
1580         direct move (both ISA 2.07 and ISA 3.0 versions), and optimizes
1581         extraction of the element at the top of the register as a scalar
1582         value.
1583         (vsx_extract_<mode>_internal1): Likewise.
1584         (vsx_extract_<mode>_internal2): Likewise.
1585         * config/rs6000/constraints.md (wi constraint): Remove a comment
1586         about DImode not being allowed in Altivec registers.
1587         (wB constraint): New constraint for constants that can be
1588         generated in Altivec registers with VSPLTISW/VUPKHSW.
1589         * config/rs6000/predicates.md (xxspltib_constant_split): Update
1590         comments.
1591         (xxspltib_constant_nosplit): Likewise.
1592         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Add
1593         support for -mupper-regs-di to enable DImode to go into Altivec
1594         registers.
1595         (POWERPC_MASKS): Likewise.
1596         (power7 cpu): Likewise.
1597         * config/rs6000/rs6000.opt (-mupper-regs-di): Likewise.
1598         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
1599         for DImode being allowed in Altivec registers.  Update wi/wj
1600         constraints.  Set scalar_in_vmx_p flag.
1601         (rs6000_option_override_internal): Add checks for -mupper-regs-di.
1602         (xxspltib_constant_p): Allow CONST_INT's with VOIDmode.  Don't
1603         return true if we could use VSPLTISW/VUPKHSW instead of XXSPLTIB.
1604         (rs6000_opt_masks): Add -mupper-regs-di.
1605         * config/rs6000/rs6000.md (lfiwax): Update clobbers that don't use
1606         direct move to use wi and not wj.
1607         (lfiwzx): Likewise.
1608         (floatsi<mode>2_lfiwax_mem): Combine alternatives into a single
1609         alternative.
1610         (floatunssi<mode>2_lfiwzx_mem): Likewise.
1611         (fix_trunc<mode>di2_fctidz): Change second alternative to allow
1612         any VSX register, instead of just Altivec registers, to allow
1613         either operand to be an Altivec register or both.
1614         (fixuns_trunc<mode>di2_fctiduz): Likewise.
1615         (movdi_internal32): Add support for -mupper-regs-di.  Add support
1616         to load constants via XXSPLTIB or VSPLTISW.  Add spacing to allow
1617         the alternatives and attributes to be lined up to be easier to
1618         read.
1619         (movdi_internal64): Likewise.
1620         (64-bit DImode splitters): Change predicates to only split loading
1621         up GPR registers.  Add splits for using XXSPLTIB or VSPLTISW to
1622         load constants in ISA 3.0 or ISA 2.07 respectively.
1623         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
1624         -mupper-regs-di.  Update -mupper-regs-df and -mupper-regs-sf to
1625         mention -mcpu=power9 sets these options.
1626         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document the
1627         wB constraint.
1628
1629 2016-06-15  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
1630
1631         PR target/67353
1632         * config/avr/avr.c (avr_set_current_function): Warn misspelled
1633         interrupt/ signal handler if -Wmisspelled-isr flag is enabled.
1634         * config/avr/avr.opt (Wmisspelled-isr): New warning flag. Enabled
1635         by default to warn misspelled interrupt/ signal handler.
1636         * doc/invoke.texi (AVR Options): Document it. Update description
1637         for -nodevicelib option.
1638
1639 2016-06-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1640
1641         * config/aarch64/aarch64-simd.md (aarch64_<sur>shll_n<mode>): Clean
1642         up parentheses.  Use GET_MODE_UNIT_BITSIZE.
1643         (aarch64_<sur>shll2_n<mode>): Likewise.
1644
1645 2016-06-15  Ilya Enkovich  <ilya.enkovich@intel.com>
1646
1647         PR middle-end/71529
1648         * ipa-chkp.c (chkp_build_instrumented_fndecl): Fix
1649         DECL_CONTEXT for copied arguments.
1650
1651 2016-06-15  Alan Hayward  <alan.hayward@arm.com>
1652
1653         PR tree-optimization/71483
1654         * tree-vect-loop.c (vectorizable_live_operation): Pick correct index
1655         for slp
1656
1657 2016-06-15  Martin Liska  <mliska@suse.cz>
1658
1659         * predict.c (tree_predict_by_opcode): Call predict_edge_def
1660         instead of predict_edge w/o a probability.
1661
1662 2016-06-15  Alan Hayward  <alan.hayward@arm.com>
1663
1664         PR tree-optimization/71439
1665         * tree-vect-loop.c (vect_analyze_loop_operations): Additional check for
1666         live PHIs.
1667
1668 2016-06-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1669
1670         * ifcvt.c (bb_ok_for_noce_multiple_sets): Allow simple lowpart
1671         register subregs in SET_SRC.
1672
1673 2016-06-15  Richard Biener  <rguenther@suse.de>
1674
1675         * tree-vect-stmts.c (vectorizable_store): Remove strided grouped
1676         store restrictions.
1677
1678 2016-06-15  Richard Biener  <rguenther@suse.de>
1679
1680         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Do
1681         not consider dependences between accesses that belong to the
1682         same group.
1683         (vect_analyze_data_ref_dependences): Do not analyze read-read
1684         or self-dependences.
1685
1686 2016-06-14  David Malcolm  <dmalcolm@redhat.com>
1687
1688         * spellcheck-tree.c: Include spellcheck-tree.h rather than
1689         spellcheck.h.
1690         (find_closest_identifier): Reimplement in terms of
1691         best_match<tree,tree>.
1692         * spellcheck-tree.h: New file.
1693         * spellcheck.c (struct edit_distance_traits<const char *>): New
1694         struct.
1695         (find_closest_string): Reimplement in terms of
1696         best_match<const char *, const char *>.
1697         * spellcheck.h (levenshtein_distance): Move prototype of tree-based
1698         overload to spellcheck-tree.h.
1699         (find_closest_identifier): Likewise.
1700         (struct edit_distance_traits<T>): New template.
1701         (class best_match): New class.
1702
1703 2016-06-14  David Malcolm  <dmalcolm@redhat.com>
1704
1705         * selftest-run-tests.c (selftest::run_tests): Call
1706         selftest::spellcheck_tree_c_tests.
1707         * selftest.h (selftest::spellcheck_tree_c_tests): New decl.
1708         * spellcheck-tree.c: Include selftest.h and stringpool.h.
1709         (selftest::test_find_closest_identifier): New function.
1710         (selftest::spellcheck_tree_c_tests): New function.
1711         * spellcheck.c (selftest::test_find_closest_string): Verify that
1712         the order of the vec does not affect the results for this case.
1713         (selftest::test_data): New array.
1714         (selftest::test_metric_conditions): New function.
1715         (selftest::spellcheck_c_tests): Add a test of case-comparison.
1716         Call selftest::test_metric_conditions.
1717
1718 2016-06-14  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1719
1720         * config/rs6000/rs6000-builtin.def (commentary): Typo.
1721         (BU_P9_MISC_1): Likewise.
1722         (BU_P9_64BIT_MISC_0): Likewise.
1723         (BU_P9_MISC_0): Likewise.
1724
1725 2016-06-14  David Malcolm  <dmalcolm@redhat.com>
1726
1727         * gcc-rich-location.c
1728         (gcc_rich_location::add_fixit_misspelled_id): New method.
1729         * gcc-rich-location.h
1730         (gcc_rich_location::add_fixit_misspelled_id): Add decl.
1731
1732 2016-06-14  Andreas Tobler  <andreast@gcc.gnu.org>
1733
1734         * config/arm/freebsd.h: Only enable unaligned access for armv6 on
1735         FreeBSD 11 and above.
1736
1737 2016-06-14  Uros Bizjak  <ubizjak@gmail.com>
1738
1739         * config/i386/i386.md (signbittf2): Emit sse_movmskps for TARGET_SSE.
1740
1741 2016-06-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1742
1743         * expmed.h: Close parenthesis in "at your option" in copyright
1744         boilerplate.
1745         * lower-subreg.h: Likewise.
1746
1747 2016-06-14  Richard Biener  <rguenther@suse.de>
1748
1749         PR middle-end/71526
1750         * genmatch.c (expr::gen_transform): Use in_type for comparisons
1751         if available.
1752
1753 2015-06-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1754
1755         * config/aarch64/aarch64.c (aarch64_mask_and_shift_for_ubfiz_p):
1756         New function.
1757         (aarch64_rtx_costs): Use it.  Rewrite CONST_INT_P (op1) case to handle
1758         mask+shift version.
1759         * config/aarch64/aarch64-protos.h (aarch64_mask_and_shift_for_ubfiz_p):
1760         New prototype.
1761         * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Replace
1762         matching condition with aarch64_mask_and_shift_for_ubfiz_p.
1763
1764 2016-06-14  Richard Biener  <rguenther@suse.de>
1765
1766         PR tree-optimization/71522
1767         * tree-ssa.c (non_rewritable_lvalue_p): Do not rewrite non-float
1768         copying into float copying.
1769
1770 2016-06-14  Jakub Jelinek  <jakub@redhat.com>
1771
1772         PR tree-optimization/71520
1773         * tree-ssa-tail-merge.c (find_duplicate): Handle labels.
1774         (replace_block_by): Move user labels from bb1 to bb2.
1775
1776 2016-06-14  Richard Biener  <rguenther@suse.de>
1777
1778         PR middle-end/71310
1779         PR bootstrap/71510
1780         * expr.h (get_bit_range): Declare.
1781         * expr.c (get_bit_range): Export.
1782         * fold-const.c (optimize_bit_field_compare): Use get_bit_range and
1783         word_mode again to constrain the bitfield access.
1784
1785 2016-06-14  Richard Biener  <rguenther@suse.de>
1786
1787         PR tree-optimization/71521
1788         * tree-vrp.c (extract_range_from_binary_expr_1): Guard
1789         division int_const_binop against zero divisor.
1790
1791 2016-06-13  Uros Bizjak  <ubizjak@gmail.com>
1792
1793         * config/i386/i386.md (signbittf2): New expander.
1794         * config/i386/sse.md (ptesttf2): New insn pattern.
1795
1796 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
1797
1798         PR bootstrap/71481
1799         * input.c (selftest::test_reading_source_line): Avoid reading from
1800         __FILE__ by creating a tempfile with known content and reading
1801         from that instead.
1802
1803 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
1804
1805         * pretty-print.c (assert_pp_format_colored): Skip the test if
1806         GCC_COLORS is set.
1807         (test_pp_format): Remove comment about GCC_COLORS.
1808
1809 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
1810
1811         * input.c (test_reading_source_line): Use SELFTEST_LOCATION.
1812         * pretty-print.c (assert_pp_format_va): Add location param and use
1813         it with ASSERT_STREQ_AT.
1814         (assert_pp_format): Add location param and pass it to
1815         assert_pp_format_va.
1816         (assert_pp_format_colored): Likewise.
1817         (ASSERT_PP_FORMAT_1): New.
1818         (ASSERT_PP_FORMAT_2): New.
1819         (ASSERT_PP_FORMAT_3): New.
1820         (test_pp_format): Provide SELFTEST_LOCATION throughout, either
1821         explicitly, or implicitly via the above macros.
1822         * selftest.c (selftest::pass): Use a selftest::location rather
1823         than file and line.
1824         (selftest::fail): Likewise.  Print the function name.
1825         (selftest::fail_formatted): Likewise.
1826         (selftest::assert_streq): Use a selftest::location rather than
1827         file and line.
1828         * selftest.h (selftest::location): New struct.
1829         (SELFTEST_LOCATION): New macro.
1830         (selftest::pass): Accept a const location & rather than file
1831         and line.
1832         (selftest::fail): Likewise.
1833         (selftest::fail_formatted): Likewise.
1834         (selftest::assert_streq): Likewise.
1835         (ASSERT_TRUE): Update for above changes, using SELFTEST_LOCATION.
1836         (ASSERT_FALSE): Likewise.
1837         (ASSERT_EQ): Likewise.
1838         (ASSERT_NE): Likewise.
1839         (ASSERT_STREQ): Likewise.
1840         (ASSERT_PRED1): Likewise.
1841         (ASSERT_STREQ_AT): New macro.
1842
1843 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
1844
1845         * selftest.c (selftest::fail_formatted): New function.
1846         (selftest::assert_streq): New function.
1847         * selftest.h (selftests::fail_formatted): New decl.
1848         (selftest::assert_streq): New decl.
1849         (ASSERT_STREQ): Reimplement in terms of selftest::assert_streq.
1850
1851 2016-06-13  Jeff Law  <law@redhat.com>
1852
1853         PR tree-optimization/71403
1854         * tree-ssa-threadbackward.c
1855         (convert_and_register_jump_thread_path): No longer accept reference
1856         to path.  Do not pop items off the path anymore.
1857         (fsm_find_control_statement_thread_paths): Do not allow threading
1858         to a deeper loop nest.  Pop the last item off the path here rather
1859         than in convert_and_register_jump_thread_path.
1860
1861 2016-06-13  Evandro Menezes  <e.menezes@samsung.com>
1862             Wilco Dijkstra  <Wilco.Dijkstra@arm.com>
1863
1864         [AArch64] Emit division using the Newton series
1865
1866         * config/aarch64/aarch64-protos.h
1867         (cpu_approx_modes): Add new member "division".
1868         (aarch64_emit_approx_div): Declare new function.
1869         * config/aarch64/aarch64.c
1870         (generic_approx_modes): New member "division".
1871         (exynosm1_approx_modes): Likewise.
1872         (xgene1_approx_modes): Likewise.
1873         (aarch64_emit_approx_div): Define new function.
1874         * config/aarch64/aarch64.md ("div<mode>3"): New expansion.
1875         * config/aarch64/aarch64-simd.md ("div<mode>3"): Likewise.
1876         * config/aarch64/aarch64.opt (-mlow-precision-div): Add new option.
1877         * doc/invoke.texi (-mlow-precision-div): Describe new option.
1878
1879 2016-06-13  Evandro Menezes  <e.menezes@samsung.com>
1880             Wilco Dijkstra  <wilco.dijkstra@arm.com>
1881
1882         [AArch64] Emit square root using the Newton series
1883
1884         * config/aarch64/aarch64-protos.h
1885         (aarch64_emit_approx_rsqrt): Replace with new function
1886         "aarch64_emit_approx_sqrt".
1887         (cpu_approx_modes): New member "sqrt".
1888         * config/aarch64/aarch64.c
1889         (generic_approx_modes): New member "sqrt".
1890         (exynosm1_approx_modes): Likewise.
1891         (xgene1_approx_modes): Likewise.
1892         (aarch64_emit_approx_rsqrt): Replace with new function
1893         "aarch64_emit_approx_sqrt".
1894         (aarch64_override_options_after_change_1): Handle new option.
1895         * config/aarch64/aarch64-simd.md
1896         (rsqrt<mode>2): Use new function instead.
1897         (sqrt<mode>2): New expansion and insn definitions.
1898         * config/aarch64/aarch64.md: Likewise.
1899         * config/aarch64/aarch64.opt
1900         (mlow-precision-sqrt): Add new option description.
1901         * doc/invoke.texi (mlow-precision-sqrt): Likewise.
1902
1903 2016-06-13  Evandro Menezes  <e.menezes@samsung.com>
1904
1905         [AArch64] Add more choices for the reciprocal square root approximation
1906
1907         Allow a target to prefer such operation depending on the operation mode.
1908
1909         * config/aarch64/aarch64-protos.h
1910         (AARCH64_APPROX_MODE): New macro.
1911         (AARCH64_APPROX_{NONE,ALL}): Likewise.
1912         (cpu_approx_modes): New structure.
1913         (tune_params): New member "approx_modes".
1914         * config/aarch64/aarch64-tuning-flags.def
1915         (AARCH64_EXTRA_TUNE_APPROX_RSQRT): Remove macro.
1916         * config/aarch64/aarch64.c
1917         (generic_approx_modes): New core "cpu_approx_modes" structure.
1918         (exynosm1_approx_modes): Likewise.
1919         (xgene1_approx_modes): Likewise.
1920         (generic_tunings): New member "approx_modes".
1921         (cortexa35_tunings): Likewise.
1922         (cortexa53_tunings): Likewise.
1923         (cortexa57_tunings): Likewise.
1924         (cortexa72_tunings): Likewise.
1925         (exynosm1_tunings): Likewise.
1926         (thunderx_tunings): Likewise.
1927         (xgene1_tunings): Likewise.
1928         (use_rsqrt_p): New argument for the mode and use new member from
1929         "tune_params".
1930         (aarch64_builtin_reciprocal): Devise mode from builtin.
1931         (aarch64_optab_supported_p): New argument for the mode.
1932         * doc/invoke.texi (-mlow-precision-recip-sqrt): Reword description.
1933
1934 2016-06-13  Kelvin Nilsen  <kelvin@gcc.gnu.org>
1935
1936         * config/rs6000/rs6000.h (RS6000_BTM_COMMON): Add the
1937         RS6000_BTM_MODULO flag into the set of flags that are considered
1938         to be part of the common configuration.
1939
1940 2016-06-13  Kelvin Nilsen  <kelvin@gcc.gnu.org>
1941
1942         * config/rs6000/altivec.h (vec_absd): New macro for vector absolute
1943         difference unsigned.
1944         (vec_absdb): New macro for vector absolute difference unsigned
1945         byte.
1946         (vec_absdh): New macro for vector absolute difference unsigned
1947         half-word.
1948         (vec_absdw): New macro for vector absolute difference unsigned word.
1949         * config/rs6000/altivec.md (UNSPEC_VADU): New value.
1950         (vadu<mode>3): New insn.
1951         (*p9_vadu<mode>3): New insn.
1952         * config/rs6000/rs6000-builtin.def (vadub): New built-in
1953         definition.
1954         (vaduh): New built-in definition.
1955         (vaduw): New built-in definition.
1956         (vadu): New overloaded built-in definition.
1957         (vadub): New overloaded built-in definition.
1958         (vaduh): New overloaded built-in definition.
1959         (vaduw): New overloaded built-in definition.
1960         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
1961         overloaded vector absolute difference unsigned functions.
1962         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
1963         the ISA 3.0 vector absolute difference unsigned built-in functions.
1964
1965 2016-06-13  Eric Botcazou  <ebotcazou@adacore.com>
1966
1967         * tree-ssa-sccvn.c (vn_reference_lookup_3): Use a uniform test and
1968         update shared_lookup_references only once after changing operands.
1969
1970 2016-06-13  Thomas Schwinge  <thomas@codesourcery.com>
1971
1972         PR middle-end/71373
1973         * tree-nested.c (convert_nonlocal_omp_clauses)
1974         (convert_local_omp_clauses): Document missing OMP_CLAUSE_*.
1975
1976         * tree-cfg.c (edge_to_cases_cleanup): Fix CASE_CHAIN typo.
1977         * tree.def (CASE_LABEL_EXPR): Likewise.
1978
1979 2016-06-13  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1980
1981         PR bootstrap/71481
1982         * input.c (test_builtins): Fix an assertion.
1983
1984 2016-06-13  Uros Bizjak  <ubizjak@gmail.com>
1985
1986         * config/i386/i386.md (paritydi2): Use ix86_expand_setcc.
1987         (paritysi2): Ditto.
1988         (isinfxf2): Ditto.
1989         (isinf<mode>2): Ditto.
1990
1991 2016-06-13  Uros Bizjak  <ubizjak@gmail.com>
1992
1993         * ggc-tests.c (test_finalization): Only test need_finalization_p
1994         for GCC_VERSION >= 4003.
1995
1996 2016-06-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1997
1998         * config/s390/vecintrin.h: Fix file description in comment.
1999
2000 2016-06-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2001
2002         * config/s390/s390-builtin-types.def: Change builtin type naming
2003         scheme to match builtin-types.def.
2004
2005 2016-06-13  Marc Glisse  <marc.glisse@inria.fr>
2006
2007         * fold-const.c (optimize_minmax_comparison): Remove.
2008         (fold_comparison): Remove call to the above.
2009         * match.pd (MIN (X, Y) == X, MIN (X, 5) == 0, MIN (X, C1) < C2):
2010         New transformations.
2011
2012 2016-06-13  Alan Hayward  <alan.hayward@arm.com>
2013
2014         PR tree-optimization/71416
2015         * tree-vect-loop.c (vectorizable_live_operation): Let worklist have
2016         multiple entries
2017
2018 2016-06-13  Martin Liska  <mliska@suse.cz>
2019
2020         * predict.c (enum predictor_reason): Prefix enum with REASON_.
2021         (combine_predictions_for_insn): Likewise.
2022         (prune_predictions_for_bb): Likewise.
2023         (combine_predictions_for_bb): Likewise.
2024
2025 2016-06-13  Richard Biener  <rguenther@suse.de>
2026
2027         PR tree-optimization/71505
2028         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Make
2029         assert match comment.
2030
2031 2016-06-13  Marek Polacek  <polacek@redhat.com>
2032
2033         PR middle-end/71476
2034         * gimplify.c (maybe_warn_switch_unreachable): Factored out of
2035         gimplify_switch_expr.
2036         (warn_switch_unreachable_r): New function.
2037
2038 2016-06-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2039
2040         PR target/71379
2041         * config/s390/s390.c (s390_expand_builtin): Increase MAX_ARGS by
2042         one.
2043
2044 2016-06-13  Richard Biener  <rguenther@suse.de>
2045
2046         PR middle-end/64516
2047         * fold-const.c (fold_unary_loc): Preserve alignment when
2048         folding a VIEW_CONVERT_EXPR into a MEM_REF.
2049
2050 2016-06-13  Martin Liska  <mliska@suse.cz>
2051
2052         PR sanitizer/71458
2053         * toplev.c (process_options): Do not enable -fcheck-pointer-bounds
2054         w/ -fsanitize=bounds.
2055
2056 2016-06-12  Uros Bizjak  <ubizjak@gmail.com>
2057
2058         * config/i386/i386.c (ix86_init_builtins): Calculate
2059         FLOAT128_FTYPE_CONST_STRING function type only once.
2060         * doc/extend.texi (x86 Built-in Functions): Update text, __float128
2061         built-in functions are available for x86-32 and x86-64 targets.
2062
2063 2016-06-12  Uros Bizjak  <ubizjak@gmail.com>
2064
2065         PR target/71241
2066         * config/i386/i386.i386-builtin-types.def (CONST_STRING):
2067         New primitive type.
2068         (FLOAT128_FTYPE_CONST_STRING): New function type.
2069         * config/i386/i386.c (enum ix86_builtins) [IX86_BUILTIN_NANQ]: New.
2070         [IX86_BUILTIN_NANSQ]: Ditto.
2071         (ix86_fold_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
2072         (ix86_init_builtin_types): Declare const_string_type_node.
2073         (ix86_init_builtins): Add __builtin_nanq and __builtin_nansq
2074         builtin functions.
2075         (ix86_expand_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
2076         * doc/extend.texi (x86 Built-in Functions): Document
2077         __builtin_nanq and __builtin_nansq.
2078
2079 2016-06-11  Jiong Wang  <jiong.wang@arm.com>
2080
2081         PR target/71061
2082         * config/arm/arm-protos.h (arm_attr_length_pop_multi): New declaration.
2083         * config/arm/arm.c (arm_attr_length_pop_multi): New function to return
2084         length for pop patterns.
2085         (arm_attr_length_push_multi): Update comments.
2086         * config/arm/arm.md (*load_multiple_with_writeback): Set "length"
2087         attribute.
2088         (*pop_multiple_with_writeback_and_return): Likewise.
2089         (*pop_multiple_with_return): Likewise.
2090
2091 2016-06-11  Segher Boessenkool  <segher@kernel.crashing.org>
2092
2093         PR middle-end/71310
2094         * fold-const.c (optimize_bit_field_compare): Don't try to use
2095         word_mode unconditionally for reading the bit field, look at
2096         DECL_BIT_FIELD_REPRESENTATIVE instead.
2097
2098 2016-06-11  Kugan Vivekanandarajah  <kuganv@linaro.org>
2099
2100         PR middle-end/71478
2101         * tree-ssa-reassoc.c (reassociate_bb): Remove (-1) from ops list for
2102         vector integer type.
2103
2104 2016-06-10  Jakub Jelinek  <jakub@redhat.com>
2105
2106         PR middle-end/71494
2107         * tree-nested.c (convert_nonlocal_reference_stmt): For GIMPLE_GOTO
2108         without LABEL_DECL, set *handled_ops_p to false instead of true.
2109
2110 2016-06-10  Martin Sebor  <msebor@redhat.com>
2111
2112         PR c/71392
2113         * builtin-attrs.def (ATTR_NOTHROW_NONNULL_LEAF_LIST): New macro.
2114         (ATTR_NOTHROW_NONNULL_TYPEGENERIC_LEAF): Same.
2115         * builtins.def (BUILT_IN_SADD_OVERFLOW, BUILT_IN_SADDL_OVERFLOW): Use
2116         them.
2117         (BUILT_IN_SADDLL_OVERFLOW, BUILT_IN_SSUB_OVERFLOW): Same.
2118         (BUILT_IN_SSUBL_OVERFLOW, BUILT_IN_SSUBLL_OVERFLOW): Same.
2119         (BUILT_IN_SMUL_OVERFLOW, BUILT_IN_SMULL_OVERFLOW): Same.
2120         (BUILT_IN_SMULLL_OVERFLOW, BUILT_IN_UADD_OVERFLOW): Same.
2121         (BUILT_IN_UADDL_OVERFLOW, BUILT_IN_UADDLL_OVERFLOW): Same.
2122         (BUILT_IN_USUB_OVERFLOW, BUILT_IN_USUBL_OVERFLOW): Same.
2123         (BUILT_IN_USUBLL_OVERFLOW, BUILT_IN_UMUL_OVERFLOW): Same.
2124         (BUILT_IN_UMULL_OVERFLOW, BUILT_IN_UMULLL_OVERFLOW): Same.
2125
2126 2016-06-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2127
2128         * config/arm/arm.h (pool_vector_label,
2129         return_used_this_function): Remove.
2130
2131 2016-06-10  Jeff Law  <law@redhat.com>
2132
2133         PR tree-optimization/71335
2134         * tree-ssa-threadbackward.c (profitable_jump_thread_path): Filter out
2135         zero length paths here.
2136         (convert_and_register_jump_thread_path): Remove hacks related to
2137         duplicated blocks in the jump thread path.
2138         (fsm_find_control_statement_thread_paths): Avoid putting the same
2139         block on the thread path twice, but ensure the thread path is
2140         unchanged from the caller's point of view.
2141
2142 2016-06-10  Jan Hubicka  <hubicka@ucw.cz>
2143
2144         * predict.c (predict_loops): Remove PRED_LOOP_BRANCH.
2145         * predict.def (PRED_LOOP_BRANCH): Remove.
2146
2147 2016-06-10  David Malcolm  <dmalcolm@redhat.com>
2148
2149         * Makefile.in (OBJS): Add ggc-tests.o.
2150         (GTFILES): Add ggc-tests.c.
2151         * ggc-tests.c: New file.
2152         * selftest-run-tests.c (selftest::run_tests): Call
2153         selftest::ggc_tests_c_tests.
2154         * selftest.h (selftest::ggc_tests_c_tests): New prototype.
2155
2156 2016-06-10  Alexander Monakov  <amonakov@ispras.ru>
2157
2158         * match.pd (-1 / B < A): Use :c to avoid pattern duplication.
2159
2160 2016-06-10  Maxim Ostapenko  <m.ostapenko@samsung.com>
2161
2162         PR sanitizer/71480
2163         * varasm.c (place_block_symbol): Adjust alignment for asan protected
2164         STRING_CSTs even if TREE_CONSTANT_POOL_ADDRESS_P.
2165
2166 2016-06-10  Jan Hubicka  <hubicka@ucw.cz>
2167
2168         * profile.c: Include cfgloop.h.
2169         (branch_prob): Compute estimated number of iterations.
2170         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Do not
2171         recompute estimate number of iterations from profile.
2172
2173 2016-06-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2174
2175         PR inline-asm/68843
2176         * reg-stack.c (check_asm_stack_operands): Explicit input arguments
2177         must be grouped on top of stack.  Don't force early clobber
2178         on ordinary reg outputs.
2179
2180 2016-06-10  Richard Biener  <rguenther@suse.de>
2181
2182         * targhooks.c (default_builtin_vectorization_cost): Adjust
2183         vec_construct cost.
2184
2185 2016-06-10  Richard Biener  <rguenther@suse.de>
2186
2187         * gimple-fold.c (gimple_fold_builtin_memory_op): Make sure
2188         to fold the RHS to a constant if possible.
2189
2190 2016-06-10  Thomas Schwinge  <thomas@codesourcery.com>
2191
2192         PR middle-end/71373
2193         * tree-nested.c (convert_nonlocal_omp_clauses)
2194         (convert_local_omp_clauses): Handle OMP_CLAUSE_ASYNC,
2195         OMP_CLAUSE_WAIT, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
2196         OMP_CLAUSE__CACHE_, OMP_CLAUSE_TILE.
2197
2198         * gimplify.c (gimplify_adjust_omp_clauses): Discard
2199         OMP_CLAUSE_TILE.
2200         * omp-low.c (scan_sharing_clauses): Don't expect OMP_CLAUSE_TILE.
2201
2202         * omp-low.c (scan_sharing_clauses): Don't expect
2203         OMP_CLAUSE__CACHE_.
2204
2205 2016-06-10  Alan Hayward  <alan.hayward@arm.com>
2206
2207         PR tree-optimization/71407
2208         PR tree-optimization/71416
2209         * tree-vect-loop.c (vectorizable_live_operation): Use vectype for
2210         BIT_FIELD_REF type.
2211
2212 2016-06-10  Richard Biener  <rguenther@suse.de>
2213
2214         PR middle-end/71477
2215         * cfgloop.c (alloc_loop): Initialize nb_iterations_likely_upper_bound.
2216
2217 2016-06-09  Eric Botcazou  <ebotcazou@adacore.com>
2218
2219         * df-problems.c (df_note_bb_compute): Guard use of DF_INSN_INFO_GET.
2220
2221 2016-06-09  Vladimir Makarov  <vmakarov@redhat.com>
2222             Jiong Wang  <jiong.wang@arm.com>
2223
2224         PR rtl-optimization/70751
2225         * lra-constraints.c (process_alt_operands): Recognize Non-pseudo
2226         spilled into memory.
2227
2228 2016-06-09  Jonathan Yong  <10walls@gmail.com>
2229
2230         Revert:
2231         2015-09-21  Jonathan Yong  <10walls@gmail.com>
2232
2233         * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
2234         sysroot/usr/lib/32api for additional win32 libraries,
2235         fixes failing Cygwin bootstrapping.
2236
2237 2016-06-09  Marcin Baczyński  <marbacz@gmail.com>
2238
2239         * diagnostic.h (diagnostic_line_cutoff, diagnostic_flush_buffer):
2240         Delete.
2241
2242 2016-06-09  David Malcolm  <dmalcolm@redhat.com>
2243
2244         PR bootstrap/71471
2245         * pretty-print.c (pp_indent): Specify that %p is printed in a
2246         host-dependent manner.
2247         (test_pp_format): Remove the test for %p.
2248
2249 2016-06-09  Maciej W. Rozycki  <macro@imgtec.com>
2250
2251         * config/mips/mips.c (mips_output_jump): Fix formatting.
2252
2253 2016-06-09  Richard Biener  <rguenther@suse.de>
2254
2255         PR tree-optimization/71462
2256         * tree-ssa-loop-manip.c (find_uses_to_rename): Guard against
2257         removed blocks.
2258
2259 2016-06-09  Martin Liska  <mliska@suse.cz>
2260
2261         * predict.c (dump_prediction): Add new argument.
2262         (enum predictor_reason): New enum.
2263         (struct predictor_hash): New struct.
2264         (predictor_hash::hash): New function.
2265         (predictor_hash::equal): Likewise.
2266         (not_removed_prediction_p): New function.
2267         (prune_predictions_for_bb): Likewise.
2268         (combine_predictions_for_bb): Prune predictions.
2269
2270 2016-06-09  Martin Liska  <mliska@suse.cz>
2271
2272         * predict.c (filter_predictions): New function.
2273         (remove_predictions_associated_with_edge): Use the filter
2274         function.
2275         (equal_edge_p): New function.
2276
2277 2016-06-09  Stefan Bruens  <stefan.bruens@rwth-aachen.de>
2278
2279         * doc/invoke.texi (ARM Options): Use lexicographical ordering.
2280         Correct usage of @samp vs @option, add @samp where appropriate.
2281         Add -march={armv6k,armv6z,arm6zk}, remove -march=ep9312.
2282         Add armv6s-m and document it, as it is no official ARM name.
2283
2284 2016-06-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2285
2286         * ifcvt.c (struct noce_if_info): Add transform_name field.
2287         (noce_try_move): Set if_info->transform_name to the function name.
2288         (noce_try_ifelse_collapse): Likewise.
2289         (noce_try_store_flag): Likewise.
2290         (noce_try_inverse_constants): Likewise.
2291         (noce_try_store_flag_constants): Likewise.
2292         (noce_try_addcc): Likewise.
2293         (noce_try_store_flag_mask): Likewise.
2294         (noce_try_cmove): Likewise.
2295         (noce_try_cmove_arith): Likewise.
2296         (noce_try_minmax): Likewise.
2297         (noce_try_abs): Likewise.
2298         (noce_try_sign_mask): Likewise.
2299         (noce_try_bitop): Likewise.
2300         (noce_convert_multiple_sets): Likewise.
2301         (noce_process_if_block): Print if_info->transform_name to
2302         dump_file if transformation succeeded.
2303
2304 2016-06-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2305
2306         * config/arm/cortex-a57.md (cortex_a57_alu):
2307         Handle csel type.
2308
2309 2016-06-08  Martin Sebor  <msebor@redhat.com>
2310             Jakub Jelinek  <jakub@redhat.com>
2311
2312         PR c++/70507
2313         PR c/68120
2314         * builtins.def (BUILT_IN_ADD_OVERFLOW_P, BUILT_IN_SUB_OVERFLOW_P,
2315         BUILT_IN_MUL_OVERFLOW_P): New builtins.
2316         * builtins.c: Include gimple-fold.h.
2317         (fold_builtin_arith_overflow): Handle
2318         BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
2319         (fold_builtin_3): Likewise.
2320         * doc/extend.texi (Integer Overflow Builtins): Document
2321         __builtin_{add,sub,mul}_overflow_p.
2322
2323 2016-06-08  Jose E. Marchesi  <jose.marchesi@oracle.com>
2324
2325         * config/sparc/driver-sparc.c (cpu_names): Fix the entry for the
2326         SPARC-M7 and add an entry for SPARC-S7 cpus (Sonoma).
2327
2328 2016-06-08  Alan Lawrence  <alan.lawrence@arm.com>
2329
2330         * config/aarch64/aarch64.c (aarch64_function_arg_alignment):
2331         Rewrite, looking one level down for records and arrays.
2332
2333 2016-06-08  David Malcolm  <dmalcolm@redhat.com>
2334
2335         * pretty-print.c: Include "selftest.h".
2336         (pp_format): Fix comment.
2337         (identifier_to_locale): Likewise.
2338         (selftest::test_basic_printing): New function.
2339         (selftest::assert_pp_format): New function.
2340         (selftest::test_pp_format): New function.
2341         (selftest::pretty_print_c_tests): New function.
2342         * selftest-run-tests.c (selftest::run_tests): Call
2343         selftest::pretty_print_c_tests.
2344         * selftest.h (pretty_print_c_tests): New declaration.
2345
2346 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
2347
2348         * invoke.texi (max-loop-headers-insns): Document.
2349         * params.def (PARAM_MAX_LOOP_HEADER_INSNS): New.
2350         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Update comment.
2351         (ch_base::copy_headers): Use PARAM_MAX_LOOP_HEADER_INSNS.
2352
2353 2016-06-08  Richard Biener  <rguenther@suse.de>
2354
2355         * tree-vect-stmts.c (vectorizable_load): Remove restrictions
2356         on strided SLP loads and fall back to scalar loads in case
2357         we can't chunk them.
2358
2359 2016-06-08  Richard Biener  <rguenther@suse.de>
2360
2361         PR tree-optimization/71452
2362         * tree-ssa.c (non_rewritable_lvalue_p): Make sure that the
2363         type used for the SSA rewrite has enough precision to cover
2364         the dynamic type of the location.
2365
2366 2016-06-08  Jakub Jelinek  <jakub@redhat.com>
2367             Richard Biener  <rguenther@suse.de>
2368
2369         PR c++/71448
2370         * fold-const.c (fold_comparison): Handle CONSTANT_CLASS_P (base0)
2371         the same as DECL_P (base0) for indirect_base0.  Use equality_code
2372         in one further place.
2373
2374 2016-06-08  Richard Sandiford  <richard.sandiford@arm.com>
2375
2376         * expmed.c (store_bit_field_1): Do not restrict a multiword op0
2377         to one word if the field is known to overlap other words.
2378         (extract_bit_field_1): Likewise.
2379         (store_split_bit_field): Remove compensating code.
2380         (extract_split_bit_field): Likewise.
2381
2382 2016-06-08  Bernd Schmidt  <bschmidt@redhat.com>
2383
2384         PR debug/71432
2385         PR ada/71413
2386         * tree-ssa-strlen.c (handle_builtin_memcmp): Ignore debug insns.
2387
2388 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
2389
2390         * config/aarch64/aarch64-builtins.def (faddp): New builtins for modes in
2391         VDQF.
2392         * config/aarch64/aarch64-simd.md (aarch64_faddp<mode>): New.
2393         (arch64_addpv4sf): Delete.
2394         (reduc_plus_scal_v4sf): Use "gen_aarch64_faddpv4sf" instead of
2395         "gen_aarch64_addpv4sf".
2396         * config/aarch64/arm_neon.h (vpadd_f32): Remove inline assembly.  Use
2397         builtin.
2398         (vpadds_f32): Likewise.
2399         (vpaddq_f32): Likewise.
2400         (vpaddq_f64): Likewise.
2401
2402 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
2403
2404         * config/aarch64/aarch64-builtins.def (fabd): New builtins for modes
2405         VALLF.
2406         * config/aarch64/aarch64-simd.md (fabd<mode>_3): Extend modes from VDQF
2407         to VALLF.  Rename to "fabd<mode>3".
2408         "*fabd_scalar<mode>3): Delete.
2409         * config/aarch64/arm_neon.h (vabds_f32): Remove inline assembly.
2410         Use builtin.
2411         (vabdd_f64): Likewise.
2412         (vabd_f32): Likewise.
2413         (vabd_f64): Likewise.
2414         (vabdq_f32): Likewise.
2415         (vabdq_f64): Likewise.
2416
2417 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
2418
2419         * config/aarch64/aarch64-builtins.def (rsqrts): New builtins for modes
2420         VALLF.
2421         * config/aarch64/aarch64-simd.md (aarch64_rsqrts_<mode>3): Rename to
2422         "aarch64_rsqrts<mode>".
2423         * config/aarch64/aarch64.c (get_rsqrts_type): Update gen* name.
2424         * config/aarch64/arm_neon.h (vrsqrtss_f32): Remove inline assembly.  Use
2425         builtin.
2426         (vrsqrtsd_f64): Likewise.
2427         (vrsqrts_f32): Likewise.
2428         (vrsqrts_f64): Likewise.
2429         (vrsqrtsq_f32): Likewise.
2430         (vrsqrtsq_f64): Likewise.
2431
2432 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
2433
2434         * config/aarch64/aarch64-builtins.def (rsqrte): New builtins for modes
2435         VALLF.
2436         * config/aarch64/aarch64-simd.md (aarch64_rsqrte_<mode>2): Rename to
2437         "aarch64_rsqrte<mode>".
2438         * config/aarch64/aarch64.c (get_rsqrte_type): Update gen* name.
2439         * config/aarch64/arm_neon.h (vrsqrts_f32): Remove inline assembly.  Use
2440         builtin.
2441         (vrsqrted_f64): Likewise.
2442         (vrsqrte_f32): Likewise.
2443         (vrsqrte_f64): Likewise.
2444         (vrsqrteq_f32): Likewise.
2445         (vrsqrteq_f64): Likewise.
2446
2447 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
2448
2449         * config/aarch64/aarch64-builtins.def (scvtf): Register vector modes.
2450         (ucvtf): Likewise.
2451         (fcvtzs): Likewise.
2452         (fcvtzu): Likewise.
2453         * config/aarch64/aarch64-simd.md
2454         (<FCVT_F2FIXED:fcvt_fixed_insn><VDQF:mode>3): New.
2455         (<FCVT_FIXED2F:fcvt_fixed_insn><VDQ_SDI:mode>3): Likewise.
2456         * config/aarch64/arm_neon.h (vcvt_n_f32_s32): Remove inline assembly.
2457         Use builtin.
2458         (vcvt_n_f32_u32): Likewise.
2459         (vcvt_n_s32_f32): Likewise.
2460         (vcvt_n_u32_f32): Likewise.
2461         (vcvtq_n_f32_s32): Likewise.
2462         (vcvtq_n_f32_u32): Likewise.
2463         (vcvtq_n_f64_s64): Likewise.
2464         (vcvtq_n_f64_u64): Likewise.
2465         (vcvtq_n_s32_f32): Likewise.
2466         (vcvtq_n_s64_f64): Likewise.
2467         (vcvtq_n_u32_f32): Likewise.
2468         (vcvtq_n_u64_f64): Likewise.
2469         * config/aarch64/iterators.md (VDQ_SDI): New mode iterator.
2470         (VSDQ_SDI): Likewise.
2471         (fcvt_target): Support V4DI, V4SI and V2SI.
2472         (FCVT_TARGET): Likewise.
2473
2474 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
2475
2476         * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New
2477         (TYPES_BINOP_SUS): Likewise.
2478         (aarch64_simd_builtin_data): Update include file name.
2479         (aarch64_builtins): Likewise.
2480         * config/aarch64/aarch64-simd-builtins.def (scvtf): New entries
2481         for conversion between scalar float-point and fixed-point.
2482         (ucvtf): Likewise.
2483         (fcvtzs): Likewise.
2484         (fcvtzu): Likewise.
2485         * config/aarch64/aarch64.md
2486         (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3: New
2487         pattern for conversion between scalar float to fixed-pointer.
2488         (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>: Likewise.
2489         (UNSPEC_FCVTZS): New UNSPEC enumeration.
2490         (UNSPEC_FCVTZU): Likewise.
2491         (UNSPEC_SCVTF): Likewise.
2492         (UNSPEC_UCVTF): Likewise.
2493         * config/aarch64/arm_neon.h (vcvtd_n_f64_s64): Remove inline assembly.
2494         Use builtin.
2495         (vcvtd_n_f64_u64): Likewise.
2496         (vcvtd_n_s64_f64): Likewise.
2497         (vcvtd_n_u64_f64): Likewise.
2498         (vcvtd_n_f32_s32): Likewise.
2499         (vcvts_n_f32_u32): Likewise.
2500         (vcvtd_n_s32_f32): Likewise.
2501         (vcvts_n_u32_f32): Likewise.
2502         * config/aarch64/iterators.md (fcvt_target): Support integer to float
2503         mapping.
2504         (FCVT_TARGET): Likewise.
2505         (FCVT_FIXED2F): New iterator.
2506         (FCVT_F2FIXED): Likewise.
2507         (fcvt_fixed_insn): New define_int_attr.
2508
2509 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
2510
2511         * predict.c (pass_strip_predict_hints::execute): Cleanup CFG if
2512         some statements was removed.
2513
2514 2016-06-08  Alan Hayward  <alan.hayward@arm.com>
2515
2516         * tree-vect-data-refs.c (vect_analyze_data_refs): Remove debug newline.
2517         * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): likewise.
2518         (vect_can_advance_ivs_p): likewise.
2519         (vect_update_ivs_after_vectorizer): likewise.
2520         * tree-vect-loop.c (vect_determine_vectorization_factor): likewise.
2521         (vect_analyze_scalar_cycles_1): likewise.
2522         (vect_analyze_loop_operations): likewise.
2523         (report_vect_op): likewise.
2524         (vect_is_slp_reduction): likewise.
2525         (vect_is_simple_reduction): likewise.
2526         (get_initial_def_for_induction): likewise.
2527         (vect_transform_loop): likewise.
2528         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): likewise.
2529         (vect_recog_sad_pattern): likewise.
2530         (vect_recog_widen_sum_pattern): likewise.
2531         (vect_recog_widening_pattern): likewise.
2532         (vect_recog_divmod_pattern): likewise.
2533         * tree-vect-slp.c (vect-build-slp_tree_1): likewise.
2534         (vect_analyze_slp_instance): likewise.
2535         (vect_transform_slp_perm_load): likewise.
2536         (vect_schedule_slp_instance): likewise.
2537
2538 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
2539
2540         * predict.c (predict_iv_comparison): Mention that heuristics is broken.
2541         (return_prediction): PRED_CONST_RETURN predict return as not taken.
2542         * predict.def (PRED_CONTINUE): Change hitrate 50->67
2543         (PRED_LOOP_BRANCH): Document predictor as broken.
2544         (PRED_LOOP_EXIT): Change hitrate 91->92.
2545         (PRED_LOOP_EXTRA_EXIT): Change hitrate 91->83.
2546         (PRED_POINTER, PRED_TREE_POINTER): Change hitrate 85->70.
2547         (PRED_OPCODE_POSITIVE): Change hitrate 79->64.
2548         (PRED_OPCODE_NONEQUAL): Change hitrate 91->66.
2549         (PRED_TREE_OPCODE_POSITIVE): Change hitrate 73->64
2550         (PRED_TREE_OPCODE_NONEQUAL): Chnage hitrate 72->66
2551         (PRED_CALL): Chane hitrate 71->67.
2552         (PRED_TREE_EARLY_RETURN): Document issues, change hitrate 61->54.
2553         (PRED_GOTO): Document as unused right now.
2554         (PRED_CONST_RETURN): Change hitrate 67->69
2555         (PRED_NEGATIVE_RETURN): Change hitrate 96->98
2556         (PRED_NULL_RETURN): Change hitrate 91->90.
2557         (PRED_LOOP_IV_COMPARE_GUESS): Change hitrate to 98.
2558         (PRED_FORTRAN_FAIL_ALLOC): Change hitrate to 62; document issues.
2559         (PRED_FORTRAN_SIZE_ZERO): Change hitrate to 99.
2560
2561 2016-06-07  Bill Seurer  <seurer@linux.vnet.ibm.com>
2562
2563         * config/rs6000/altivec.h: Add __builtin_vec_mul.
2564         * config/rs6000/rs6000-builtin.def (vec_mul): Change vec_mul to a
2565         special case Altivec builtin.
2566         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
2567         VSX_BUILTIN_VEC_MUL (replaced with special case code).
2568         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
2569         code for ALTIVEC_BUILTIN_VEC_MUL.
2570         * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
2571         for __builtin_vec_mul.
2572
2573 2016-06-07  Peter Bergner  <bergner@vnet.ibm.com>
2574
2575         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mhtm and
2576         -mno-htm.
2577
2578 2016-06-07  David Malcolm  <dmalcolm@redhat.com>
2579
2580         * spellcheck.c (selftest::test_find_closest_string): New function.
2581         (spellcheck_c_tests): Call the above.
2582
2583 2016-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2584
2585         * simplify-rtx.c (simplify_cond_clz_ctz): Delete 'mode' local variable.
2586
2587 2016-06-07  Jakub Jelinek  <jakub@redhat.com>
2588
2589         * config/i386/sse.md (avx_vec_concat<mode>): Add v=v,vm and
2590         Yv=Yv,C alternatives.
2591
2592 2016-06-07  Richard Biener  <rguenther@suse.de>
2593
2594         PR c/61564
2595         * common.opt (ffast-math): Make Optimization.
2596
2597 2016-06-07  Simon Dardis  <simon.dardis@imgtec.com>
2598             Prachi Godbole  <prachi.godbole@imgtec.com>
2599
2600         * config/mips/p5600.md (p5600_fpu_fadd): Remove checking for
2601         `fabs' and `fneg' type attributes.
2602         (p5600_fpu_fabs): Add `fmove' to the comment.
2603
2604 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
2605
2606         * gimple.c: Include builtins.h
2607         (gimple_inexpensive_call_p): New function.
2608         * gimple.h (gimple_inexpensive_call_p): Declare.
2609         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use it.
2610         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise;
2611         fix formatting.
2612
2613 2016-06-07  Paolo Carlini  <paolo.carlini@oracle.com>
2614
2615         * diagnostic.c (diagnostic_impl, diagnostic_n_impl): New.
2616         (inform, inform_at_rich_loc, inform_n, warning, warning_at,
2617         warning_at_rich_loc, warning_n, pedwarn, permerror,
2618         permerror_at_rich_loc, error, error_n, error_at, error_at_rich_loc,
2619         sorry, fatal_error, internal_error, internal_error_no_backtrace):
2620         Use the above.
2621
2622 2016-06-07  Richard Biener  <rguenther@suse.de>
2623
2624         PR tree-optimization/71428
2625         * tree-ssa-math-opts.c (perform_symbolic_merge): Properly distinguish
2626         BIT_FIELD_REF op vs. load.
2627
2628 2016-06-07  Richard Biener  <rguenther@suse.de>
2629
2630         PR middle-end/71423
2631         * match.pd ((X | ~Y) -> Y <= X): Properly invert the comparison
2632         for signed ops.
2633
2634 2016-06-06  John David Anglin  <danglin@gcc.gnu.org>
2635
2636         * config/pa/pa.md (call): Generate indirect long calls to non-local
2637         functions on TARGET_64BIT.
2638         (call_value): Likewise.
2639
2640 2016-06-06  John David Anglin  <danglin@gcc.gnu.org>
2641
2642         * config/pa/pa.md (call_val_reg_64bit): Remove "reg: DI " clobber from
2643         pattern and subsequent splitters.
2644         (call_val_reg_64bit_post_reload): Likewise.
2645
2646 2016-06-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
2647
2648         PR middle-end/71408
2649         * tree-ssa-reassoc.c (zero_one_operation): Fix NEGATE_EXPR operand for
2650         propagate_op_to_single_use.
2651
2652 2016-06-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
2653
2654         PR middle-end/71281
2655         * tree-ssa-reassoc.c (reassociate_bb): Set uid for negate stmt.
2656
2657 2016-06-07  Uros Bizjak  <ubizjak@gmail.com>
2658
2659         * config/i386/i386.h (enum ix86_enitity): Add X86_DIRFLAG.
2660         (enum x86_dirflag_state): New enum.
2661         (NUM_MODES_FOR_MODE_SWITCHING): Add X86_DIRFLAG_ANY.
2662         (machine_function): Remove needs_cld.
2663         (ix86_current_function_needs_cld): Remove.
2664         * config/i386/i386.c (ix86_set_func_type): Set
2665         ix86_optimize_mode_switching[X86_DIRFLAG] to 1.
2666         (ix86_expand_prologue): Do not emit CLD here.
2667         (ix86_dirflag_mode_needed): New function.
2668         (ix86_dirflag_mode_entry): Ditto.
2669         (ix86_mode_needed): Handle X86_DIRFLAG entity.
2670         (ix86_mode_after): Ditto.
2671         (ix86_mode_entry): Ditto.
2672         (ix86_mode_exit): Ditto.
2673         (ix86_emit_mode_set): Ditto.
2674         * config/i386/i386.md (strmov_singleop): Set
2675         ix86_optimize_mode_switching[X86_DIRFLAG] to 1 for TARGET_CLD.
2676         Do not set ix86_current_function_needs_cld.
2677         (rep_mov): Ditto.
2678         (strset_singleop): Ditto.
2679         (rep_stos): Ditto.
2680         (cmpstrnqi_nz_1): Ditto.
2681         (cmpstrnqi_1): Ditto.
2682         (strlenqi_1): Ditto.
2683
2684 2016-06-06  Jakub Jelinek  <jakub@redhat.com>
2685
2686         PR tree-optimization/71259
2687         * tree-vect-slp.c (vect_get_constant_vectors): For
2688         VECTOR_BOOLEAN_TYPE_P, return all ones constant instead of
2689         one for constant op, and use COND_EXPR for non-constant.
2690
2691 2016-06-06  David Malcolm  <dmalcolm@redhat.com>
2692
2693         * Makefile.in (OBJS): Add function-tests.o,
2694         hash-map-tests.o, hash-set-tests.o, rtl-tests.o,
2695         selftest-run-tests.o.
2696         (OBJS-libcommon): Add selftest.o.
2697         (OBJS-libcommon-target): Add selftest.o.
2698         (all.internal): Add "selftest".
2699         (all.cross): Likewise.
2700         (selftest): New phony target.
2701         (s-selftest): New target.
2702         (selftest-gdb): New phony target.
2703         (COLLECT2_OBJS): Add selftest.o.
2704         * bitmap.c: Include "selftest.h".
2705         (selftest::test_gc_alloc): New function.
2706         (selftest::test_set_range): New function.
2707         (selftest::test_clear_bit_in_middle): New function.
2708         (selftest::test_copying): New function.
2709         (selftest::test_bitmap_single_bit_set_p): New function.
2710         (selftest::bitmap_c_tests): New function.
2711         * common.opt (fself-test): New.
2712         * diagnostic-show-locus.c: Include "selftest.h".
2713         (make_range): New function.
2714         (test_range_contains_point_for_single_point): New function.
2715         (test_range_contains_point_for_single_line): New function.
2716         (test_range_contains_point_for_multiple_lines): New function.
2717         (assert_eq): New function.
2718         (test_get_line_width_without_trailing_whitespace): New function.
2719         (selftest::diagnostic_show_locus_c_tests): New function.
2720         * et-forest.c: Include "selftest.h".
2721         (selftest::test_single_node): New function.
2722         (selftest::test_simple_tree): New function.
2723         (selftest::test_disconnected_nodes): New function.
2724         (selftest::et_forest_c_tests): New function.
2725         * fold-const.c: Include "selftest.h".
2726         (selftest::assert_binop_folds_to_const): New function.
2727         (selftest::assert_binop_folds_to_nonlvalue): New function.
2728         (selftest::test_arithmetic_folding): New function.
2729         (selftest::fold_const_c_tests): New function.
2730         * function-tests.c: New file.
2731         * gimple.c: Include "selftest.h".
2732         Include "gimple-pretty-print.h".
2733         (selftest::verify_gimple_pp): New function.
2734         (selftest::test_assign_single): New function.
2735         (selftest::test_assign_binop): New function.
2736         (selftest::test_nop_stmt): New function.
2737         (selftest::test_return_stmt): New function.
2738         (selftest::test_return_without_value): New function.
2739         (selftest::gimple_c_tests): New function.
2740         * hash-map-tests.c: New file.
2741         * hash-set-tests.c: New file.
2742         * input.c: Include "selftest.h".
2743         (selftest::assert_loceq): New function.
2744         (selftest::test_accessing_ordinary_linemaps): New function.
2745         (selftest::test_unknown_location): New function.
2746         (selftest::test_builtins): New function.
2747         (selftest::test_reading_source_line): New function.
2748         (selftest::input_c_tests): New function.
2749         * rtl-tests.c: New file.
2750         * selftest-run-tests.c: New file.
2751         * selftest.c: New file.
2752         * selftest.h: New file.
2753         * spellcheck.c: Include "selftest.h".
2754         (selftest::levenshtein_distance_unit_test_oneway): New function,
2755         adapted from testsuite/gcc.dg/plugin/levenshtein_plugin.c.
2756         (selftest::levenshtein_distance_unit_test): Likewise.
2757         (selftest::spellcheck_c_tests): Likewise.
2758         * toplev.c: Include selftest.h.
2759         (toplev::run_self_tests): New.
2760         (toplev::main): Handle -fself-test.
2761         * toplev.h (toplev::run_self_tests): New.
2762         * tree.c: Include "selftest.h".
2763         (selftest::test_integer_constants): New function.
2764         (selftest::test_identifiers): New function.
2765         (selftest::test_labels): New function.
2766         (selftest::tree_c_tests): New function.
2767         * tree-cfg.c: Include "selftest.h".
2768         (selftest::push_fndecl): New function.
2769         (selftest::test_linear_chain): New function.
2770         (selftest::test_diamond): New function.
2771         (selftest::test_fully_connected): New function.
2772         (selftest::tree_cfg_c_tests): New function.
2773         * vec.c: Include "selftest.h".
2774         (selftest::safe_push_range): New function.
2775         (selftest::test_quick_push): New function.
2776         (selftest::test_safe_push): New function.
2777         (selftest::test_truncate): New function.
2778         (selftest::test_safe_grow_cleared): New function.
2779         (selftest::test_pop): New function.
2780         (selftest::test_safe_insert): New function.
2781         (selftest::test_ordered_remove): New function.
2782         (selftest::test_unordered_remove): New function.
2783         (selftest::test_block_remove): New function.
2784         (selftest::reverse_cmp): New function.
2785         (selftest::test_qsort): New function.
2786         (selftest::vec_c_tests): New function.c.
2787         * wide-int.cc: Include selftest.h and wide-int-print.h.
2788         (selftest::from_int <wide_int>): New function.
2789         (selftest::from_int <offset_int>): New function.
2790         (selftest::from_int <widest_int>): New function.
2791         (selftest::assert_deceq): New function.
2792         (selftest::assert_hexeq): New function.
2793         (selftest::test_printing <VALUE_TYPE>): New function template.
2794         (selftest::test_ops <VALUE_TYPE>): New function template.
2795         (selftest::test_comparisons <VALUE_TYPE>): New function template.
2796         (selftest::run_all_wide_int_tests <VALUE_TYPE>): New function
2797         template.
2798         (selftest::wide_int_cc_tests): New function.
2799
2800 2016-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2801
2802         PR middle-end/37780
2803         * ifcvt.c (noce_try_ifelse_collapse): New function.
2804         Declare prototype.
2805         (noce_process_if_block): Call noce_try_ifelse_collapse.
2806         * simplify-rtx.c (simplify_cond_clz_ctz): New function.
2807         (simplify_ternary_operation): Use the above to simplify
2808         conditional CLZ/CTZ expressions.
2809
2810 2016-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2811
2812         PR middle-end/37780
2813         * config/aarch64/aarch64.md (ctz<mode>2): Convert to
2814         define_insn_and_split.
2815
2816 2016-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2817
2818         PR middle-end/37780
2819         * config/arm/arm.md (ctzsi2): Convert to define_insn_and_split.
2820
2821 2016-06-06  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2822
2823         PR c/24414
2824         * cfgexpand.c (expand_asm_loc): Remove handling for ADDR_EXPR.
2825         Implicitly clobber memory for basic asm with non-empty assembler
2826         string.  Use targetm.md_asm_adjust also here.
2827         * compare-elim.c (arithmetic_flags_clobber_p): Use asm_noperands here.
2828         * final.c (final_scan_insn): Handle basic asm in PARALLEL block.
2829         * gimple.c (gimple_asm_clobbers_memory_p): Handle basic asm with
2830         non-empty assembler string.
2831         * ira.c (compute_regs_asm_clobbered): Use asm_noperands here.
2832         * recog.c (asm_noperands): Handle basic asm in PARALLEL block.
2833         (decode_asm_operands): Handle basic asm in PARALLEL block.
2834         (extract_insn): Handle basic asm in PARALLEL block.
2835         * doc/extend.texi: Mention new behavior of basic asm.
2836         * config/ia64/ia64 (rtx_needs_barrier): Handle ASM_INPUT here.
2837         * config/pa/pa.c (branch_to_delay_slot_p, branch_needs_nop_p,
2838         branch_needs_nop_p): Use asm_noperands.
2839
2840 2016-06-06  Jose E. Marchesi  <jose.marchesi@oracle.com>
2841
2842         * config/sparc/sparc.md (cpu): Add niagara7 cpu type.
2843         Include the M7 SPARC DFA scheduler.
2844         New attribute v3pipe.
2845         Annotate insns with v3pipe where appropriate.
2846         Define cpu_feature vis4.
2847         Add lzd instruction type and set it on clzdi_sp64 and clzsi_sp64.
2848         Add (V8QI "8") to vbits.
2849         Add insns {add,sub}v8qi3
2850         Add insns ss{add,sub}v8qi3
2851         Add insns us{add,sub}{v8qi,v4hi}3
2852         Add insns {min,max}{v8qi,v4hi,v2si}3
2853         Add insns {minu,maxu}{v8qi,v4hi,v2si}3
2854         Add insns fpcmp{le,gt,ule,ug,ule,ugt}{8,16,32}_vis.
2855         * config/sparc/niagara4.md: Add a comment explaining the
2856         discrepancy between the documented latenty numbers and the
2857         implemented ones.
2858         * config/sparc/niagara7.md: New file.
2859         * configure.ac (HAVE_AS_SPARC5_VIS4): Define if the assembler
2860         supports SPARC5 and VIS 4.0 instructions.
2861         * configure: Regenerate.
2862         * config.in: Likewise.
2863         * config.gcc: niagara7 is a supported cpu in sparc*-*-* targets.
2864         * config/sparc/sol2.h (ASM_CPU32_DEFAUILT_SPEC): Set for
2865         TARGET_CPU_niagara7.
2866         (ASM_CPU64_DEFAULT_SPEC): Likewise.
2867         (CPP_CPU_SPEC): Handle niagara7.
2868         (ASM_CPU_SPEC): Likewise.
2869         * config/sparc/sparc-opts.h (processor_type): Add
2870         PROCESSOR_NIAGARA7.
2871         (mvis4): New option.
2872         * config/sparc/sparc.h (TARGET_CPU_niagara7): Define.
2873         (AS_NIAGARA7_FLAG): Define.
2874         (ASM_CPU64_DEFAULT_SPEC): Set for niagara7.
2875         (CPP_CPU64_DEFAULT_SPEC): Likewise.
2876         (CPP_CPU_SPEC): Handle niagara7.
2877         (ASM_CPU_SPEC): Likewise.
2878         * config/sparc/sparc.c (niagara7_costs): Define.
2879         (sparc_option_override): Handle niagara7 and adjust cache-related
2880         parameters with better values for niagara cpus.  Also support VIS4.
2881         (sparc32_initialize_trampoline): Likewise.
2882         (sparc_use_sched_lookahead): Likewise.
2883         (sparc_issue_rate): Likewise.
2884         (sparc_register_move_cost): Likewise.
2885         (dump_target_flag_bits): Support VIS4.
2886         (sparc_vis_init_builtins): Likewise.
2887         (sparc_builtins): Likewise.
2888         * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__ for
2889         VIS4 4.0.
2890         * config/sparc/driver-sparc.c (cpu_names): Add SPARC-M7 and
2891         UltraSparc M7.
2892         * config/sparc/sparc.opt (sparc_processor_type): New value
2893         niagara7.
2894         * config/sparc/visintrin.h (__attribute__): Prototypes for the
2895         VIS4 builtins.
2896         * doc/invoke.texi (SPARC Options): Document -mcpu=niagara7 and
2897         -mvis4.
2898         * doc/extend.texi (SPARC VIS Built-in Functions): Document the
2899         VIS4 builtins.
2900
2901 2016-06-06  Jonathan Wakely  <jwakely@redhat.com>
2902
2903         * doc/sourcebuild.texi (Directives): Remove extra closing braces.
2904
2905 2016-06-06  Richard Biener  <rguenther@suse.de>
2906
2907         PR tree-optimization/71398
2908         * tree-ssa-loop-ivcanon.c (unloop_loops): First unloop, then
2909         remove edges.
2910
2911 2016-06-05  James Bowman  <james.bowman@ftdichip.com>
2912
2913         * config/ft32/ft32.c (ft32_setup_incoming_varargs,
2914         ft32_expand_prolog, ft32_expand_epilogue):
2915         Handle pretend_args.
2916         * config/ft32/ft32.h: Remove OUTGOING_REG_PARM_STACK_SPACE.
2917         * config/ft32/ft32.md: Add pretend_returner.
2918
2919 2016-06-06  Uros Bizjak  <ubizjak@gmail.com>
2920
2921         PR target/71389
2922         * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
2923         Copy op1 RTX to avoid invalid sharing.
2924         (ix86_expand_vector_move_misalign): Ditto.
2925
2926 2016-06-05  John David Anglin  <danglin@gcc.gnu.org>
2927
2928         * expr.c (move_by_pieces_d::generate): Mark mode parameter with
2929         ATTRIBUTE_UNUSED.
2930
2931 2016-06-05  Jan Hubicka  <hubicka@ucw.cz>
2932
2933         * predict.c (predicted_by_loop_heuristics_p): New function.
2934         (predict_iv_comparison): Use it.
2935         (predict_loops): Walk from innermost loops; do not predict edges
2936         leaving multiple loops multiple times; implement
2937         PRED_LOOP_ITERATIONS_MAX heuristics.
2938         * predict.def (PRED_LOOP_ITERATIONS_MAX): New predictor.
2939
2940 2016-06-05  Jan Hubicka  <hubicka@ucw.cz>
2941
2942         * cfg.c (check_bb_profile): Do not report mismatched profiles when
2943         only edges out of BB are EH edges.
2944
2945 2016-06-04  Martin Sebor  <msebor@redhat.com>
2946             Marcin Baczyński  <marbacz@gmail.com>
2947
2948         PR c/48116
2949         * doc/invoke.texi (-Wreturn-type): Mention not warning on return with
2950         a void expression in a void function.
2951
2952 2016-06-03  Jan Hubicka  <hubicka@ucw.cz>
2953
2954         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Do not check
2955         aux; dump reasons of decisions.
2956         (should_duplicate_loop_header_p): Likewise.
2957         (do_while_loop_p): Likewise.
2958         (ch_base::copy_headers): Dump asi num insns duplicated.
2959
2960 2016-06-04  Jakub Jelinek  <jakub@redhat.com>
2961
2962         PR tree-optimization/71405
2963         * tree-ssa.c (execute_update_addresses_taken): For clobber with
2964         incompatible type, build a new clobber with the right type instead
2965         of building a VIEW_CONVERT_EXPR around it.
2966
2967 2016-06-04  Oleg Endo  <olegendo@gcc.gnu.org>
2968
2969         PR tree-optimization/52171
2970         * config/sh/sh.c (sh_use_by_pieces_infrastructure_p): Use
2971         by_pieces_ninsns instead of move_by_pieces_ninsns.
2972
2973 2016-06-04  Oleg Endo  <olegendo@gcc.gnu.org>
2974
2975         * config/sh/sh.c (sh_print_operand_address): Don't use hardcoded 'r0'
2976         for reg+reg addressing mode.
2977
2978 2016-06-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2979
2980         * rs6000-c.c (c/c-tree.h): Add #include.
2981         (altivec_resolve_overloaded_builtin): Handle ARRAY_TYPE arguments
2982         in C++ when found in the base position of vec_ld or vec_st.
2983
2984 2016-06-03  Jan Hubicka  <hubicka@ucw.cz>
2985
2986         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Avoid
2987         use of profile unless profile status is PROFILE_READ.
2988         * profile.c (compute_branch_probabilities): Set profile status
2989         only after reporting predictor hitrates.
2990
2991 2016-06-03  Joseph Myers  <joseph@codesourcery.com>
2992
2993         PR target/71276
2994         PR target/71277
2995         * common.opt (ffp-int-builtin-inexact): New option.
2996         * doc/invoke.texi (-fno-fp-int-builtin-inexact): Document.
2997         * doc/md.texi (floor@var{m}2, btrunc@var{m}2, round@var{m}2)
2998         (ceil@var{m}2): Document dependence on this option.
2999         * ipa-inline-transform.c (inline_call): Handle
3000         flag_fp_int_builtin_inexact.
3001         * ipa-inline.c (can_inline_edge_p): Likewise.
3002         * config/i386/i386.md (rintxf2): Do not test
3003         flag_unsafe_math_optimizations.
3004         (rint<mode>2_frndint): New define_insn.
3005         (rint<mode>2): Do not test flag_unsafe_math_optimizations for 387
3006         or !flag_trapping_math for SSE.  Just use gen_rint<mode>2_frndint
3007         for 387 instead of extending and truncating.
3008         (frndintxf2_<rounding>): Test flag_fp_int_builtin_inexact ||
3009         !flag_trapping_math instead of flag_unsafe_math_optimizations.
3010         Change to frndint<mode>2_<rounding>.
3011         (frndintxf2_<rounding>_i387): Likewise.  Change to
3012         frndint<mode>2_<rounding>_i387.
3013         (<rounding_insn>xf2): Likewise.
3014         (<rounding_insn><mode>2): Test flag_fp_int_builtin_inexact ||
3015         !flag_trapping_math instead of flag_unsafe_math_optimizations for
3016         x87.  Test TARGET_ROUND || !flag_trapping_math ||
3017         flag_fp_int_builtin_inexact instead of !flag_trapping_math for
3018         SSE.  Use ROUND_NO_EXC in constant operand of
3019         gen_sse4_1_round<mode>2.  Just use gen_frndint<mode>2_<rounding>
3020         for 387 instead of extending and truncating.
3021
3022 2016-06-03  H.J. Lu  <hongjiu.lu@intel.com>
3023             Julia Koval  <julia.koval@intel.com>
3024
3025         PR target/66960
3026         PR target/67630
3027         PR target/67634
3028         PR target/67841
3029         PR target/68037
3030         PR target/68618
3031         PR target/68661
3032         PR target/69575
3033         PR target/69596
3034         PR target/69734
3035         * config/i386/i386-protos.h (ix86_epilogue_uses): New prototype.
3036         * config/i386/i386.c (ix86_conditional_register_usage): Preserve
3037         all registers, except for function return registers if there are
3038         no caller-saved registers.
3039         (ix86_set_func_type): New function.
3040         (ix86_set_current_function): Call ix86_set_func_type to set
3041         no_caller_saved_registers and func_type.  Call reinit_regs if
3042         caller-saved registers are changed.  Don't allow MPX, SSE, MMX
3043         nor x87 instructions in interrupt handler nor function with
3044         no_caller_saved_registers attribute.
3045         (ix86_function_ok_for_sibcall): Return false if there are no
3046         caller-saved registers.
3047         (type_natural_mode): Don't warn ABI change for MMX in interrupt
3048         handler.
3049         (ix86_function_arg_advance): Skip for callee in interrupt handler.
3050         (ix86_function_arg): Return special arguments in interrupt handler.
3051         (ix86_promote_function_mode): Promote pointer to word_mode only
3052         for normal functions.
3053         (ix86_can_use_return_insn_p): Don't use `ret' instruction in
3054         interrupt handler.
3055         (ix86_epilogue_uses): New function.
3056         (ix86_hard_regno_scratch_ok): Likewise.
3057         (ix86_save_reg): Preserve all registers in interrupt handler
3058         after reload.  Preserve all registers, except for function return
3059         registers, if there are no caller-saved registers after reload.
3060         (find_drap_reg): Always use callee-saved register if there are
3061         no caller-saved registers.
3062         (ix86_minimum_incoming_stack_boundary): Return MIN_STACK_BOUNDARY
3063         for interrupt handler.
3064         (ix86_expand_prologue): Don't allow DRAP in interrupt handler.
3065         Emit cld instruction if stringops are used in interrupt handler
3066         or interrupt handler isn't a leaf function.
3067         (ix86_expand_epilogue): Generate interrupt return for interrupt
3068         handler and pop the 'ERROR_CODE' off the stack before interrupt
3069         return in exception handler.
3070         (ix86_expand_call): Disallow calling interrupt handler directly.
3071         If there are no caller-saved registers, mark all registers that
3072         are clobbered by the call which returns as clobbered.
3073         (ix86_handle_no_caller_saved_registers_attribute): New function.
3074         (ix86_handle_interrupt_attribute): Likewise.
3075         (ix86_attribute_table): Add interrupt and no_caller_saved_registers
3076         attributes.
3077         (TARGET_HARD_REGNO_SCRATCH_OK): Likewise.
3078         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use argument
3079         accumulation in interrupt function if stack may be realigned to
3080         avoid DRAP.
3081         (EPILOGUE_USES): New.
3082         (function_type): New enum.
3083         (machine_function): Add func_type and no_caller_saved_registers.
3084         * config/i386/i386.md (UNSPEC_INTERRUPT_RETURN): New.
3085         (interrupt_return): New pattern.
3086         * doc/extend.texi: Document x86 interrupt and
3087         no_caller_saved_registers attributes.
3088
3089 2016-06-03  Bernd Schmidt  <bschmidt@redhat.com>
3090
3091         PR tree-optimization/52171
3092         * builtins.c (expand_cmpstrn_or_cmpmem): Delete, moved elsewhere.
3093         (expand_builtin_memcmp): New arg RESULT_EQ.  All callers changed.
3094         Look for constant strings.  Move some code to emit_block_cmp_hints
3095         and use it.
3096         * builtins.def (BUILT_IN_MEMCMP_EQ): New.
3097         * defaults.h (COMPARE_MAX_PIECES): New macro.
3098         * expr.c (move_by_pieces_d, store_by_pieces_d): Remove old structs.
3099         (move_by_pieces_1, store_by_pieces_1, store_by_pieces_2): Remvoe.
3100         (clear_by_pieces_1): Don't declare.  Move definition before use.
3101         (can_do_by_pieces): New static function.
3102         (can_move_by_pieces): Use it.  Return bool.
3103         (by_pieces_ninsns): Renamed from move_by_pieces_ninsns.  New arg
3104         OP.  All callers changed.  Handle COMPARE_BY_PIECES.
3105         (class pieces_addr); New.
3106         (pieces_addr::pieces_addr, pieces_addr::decide_autoinc,
3107         pieces_addr::adjust, pieces_addr::increment_address,
3108         pieces_addr::maybe_predec, pieces_addr::maybe_postinc): New member
3109         functions for it.
3110         (class op_by_pieces_d): New.
3111         (op_by_pieces_d::op_by_pieces_d, op_by_pieces_d::run): New member
3112         functions for it.
3113         (class move_by_pieces_d, class compare_by_pieces_d,
3114         class store_by_pieces_d): New subclasses of op_by_pieces_d.
3115         (move_by_pieces_d::prepare_mode, move_by_pieces_d::generate,
3116         move_by_pieces_d::finish_endp, store_by_pieces_d::prepare_mode,
3117         store_by_pieces_d::generate, store_by_pieces_d::finish_endp,
3118         compare_by_pieces_d::generate, compare_by_pieces_d::prepare_mode,
3119         compare_by_pieces_d::finish_mode): New member functions.
3120         (compare_by_pieces, emit_block_cmp_via_cmpmem): New static
3121         functions.
3122         (expand_cmpstrn_or_cmpmem): Moved here from builtins.c.
3123         (emit_block_cmp_hints): New function.
3124         (move_by_pieces, store_by_pieces, clear_by_pieces): Rewrite to just
3125         use the newly defined classes.
3126         * expr.h (by_pieces_constfn): New typedef.
3127         (can_store_by_pieces, store_by_pieces): Use it in arg declarations.
3128         (emit_block_cmp_hints, expand_cmpstrn_or_cmpmem): Declare.
3129         (move_by_pieces_ninsns): Don't declare.
3130         (can_move_by_pieces): Change return value to bool.
3131         * target.def (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): Update docs.
3132         (compare_by_pieces_branch_ratio): New hook.
3133         * target.h (enum by_pieces_operation): Add COMPARE_BY_PIECES.
3134         (by_pieces_ninsns): Declare.
3135         * targethooks.c (default_use_by_pieces_infrastructure_p): Handle
3136         COMPARE_BY_PIECES.
3137         (default_compare_by_pieces_branch_ratio): New function.
3138         * targhooks.h (default_compare_by_pieces_branch_ratio): Declare.
3139         * doc/tm.texi.in (STORE_MAX_PIECES, COMPARE_MAX_PIECES): Document.
3140         * doc/tm.texi: Regenerate.
3141         * tree-ssa-strlen.c: Include "builtins.h".
3142         (handle_builtin_memcmp): New static function.
3143         (strlen_optimize_stmt): Call it for BUILT_IN_MEMCMP.
3144         * tree.c (build_common_builtin_nodes): Create __builtin_memcmp_eq.
3145
3146 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
3147
3148         * tree-vect-stmts.c (vect_stmt_relevant_p): Do not vectorize non live
3149         relevant stmts which are simple and invariant.
3150         * tree-vect-loop.c (vectorizable_live_operation): Check relevance
3151         instead of simple and invariant
3152
3153 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
3154
3155         * tree-vect-loop.c (vect_analyze_loop_operations): Allow live stmts.
3156         (vectorizable_reduction): Check for new relevant state.
3157         (vectorizable_live_operation): vectorize live stmts using
3158         BIT_FIELD_REF.  Remove special case for gimple assigns stmts.
3159         * tree-vect-stmts.c (is_simple_and_all_uses_invariant): New function.
3160         (vect_stmt_relevant_p): Check for stmts which are only used live.
3161         (process_use): Use of a stmt does not inherit it's live value.
3162         (vect_mark_stmts_to_be_vectorized): Simplify relevance inheritance.
3163         (vect_analyze_stmt): Check for new relevant state.
3164         * tree-vectorizer.h (vect_relevant): New entry for a stmt which is used
3165         outside the loop, but not inside it.
3166
3167 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
3168
3169         * tree-vectorizer.h (vect_get_vec_def_for_operand_1): New.
3170         * tree-vect-stmts.c (vect_get_vec_def_for_operand_1): New.
3171         (vect_get_vec_def_for_operand): Split out code.
3172
3173 2016-06-03  Segher Boessenkool  <segher@kernel.crashing.org>
3174
3175         * config/rs6000/rs6000.md (define_peepholes for two mfcr's): Delete.
3176
3177 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
3178
3179         * tree-vect-stmts.c (vectorizable_call) Remove GOMP_SIMD_LANE code.
3180
3181 2016-06-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3182
3183         * config/arm/thumb1.md (*thumb1_mulsi3): Fix typos in comment.
3184
3185 2016-06-03  Jakub Jelinek  <jakub@redhat.com>
3186
3187         PR middle-end/71387
3188         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): If redirecting
3189         to noreturn e->callee->decl that has void return type and void
3190         arguments, adjust gimple_call_fntype and remove lhs even if it had
3191         previously addressable type.
3192
3193 2016-06-02  Jeff Law  <law@redhat.com>
3194
3195         PR tree-optimization/71328
3196         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix off-by-one
3197         error when checking for a jump back onto the copied path.
3198
3199 2016-06-02  David Malcolm  <dmalcolm@redhat.com>
3200
3201         * config/microblaze/microblaze.c (get_branch_target): Add return
3202         NULL_RTX for the non-CALL_P case.
3203         (insert_wic_for_ilb_runout): Remove unused local "wic_addr1".
3204         (insert_wic): Remove unused local "j".
3205
3206 2016-06-02  Martin Liska  <mliska@suse.cz>
3207
3208         * predict.def: Fix typo in PRED_FORTRAN_FAIL_IO display name.
3209
3210 2016-06-02  H.J. Lu  <hongjiu.lu@intel.com>
3211             Julia Koval  <julia.koval@intel.com>
3212
3213         * function.c (assign_parm_setup_stack): Force source into a
3214         register if needed.
3215         * target.def (function_incoming_arg): Update documentation to
3216         allow arbitrary address computation based on hard register.
3217         * doc/tm.texi: Regenerated.
3218
3219 2016-06-02  Martin Liska  <mliska@suse.cz>
3220
3221         * predict.c (combine_predictions_for_bb): Fix first match in
3222         cases where a first predictor contains more than one occurence
3223         in list of predictors.  Take the best value in such case.
3224
3225 2016-06-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3226
3227         PR rtl-optimization/71295
3228         * rtlanal.c (subreg_get_info): If taking a subreg at the requested
3229         offset would go over the size of the inner mode reject it.
3230
3231 2016-06-02  Jakub Jelinek  <jakub@redhat.com>
3232
3233         * config/i386/sse.md (*vec_concatv4si): Use v=v,v instead of
3234         x=x,x and v=v,m instead of x=x,m.
3235
3236         * config/i386/sse.md (*vec_concatv2si_sse4_1): Add avx512dq v=Yv,rm
3237         alternative.  Change x=x,x alternative to v=Yv,Yv and x=rm,C
3238         alternative to v=rm,C.
3239
3240         * config/i386/sse.md (*vec_concatv2di): Add x86_avx512dq v=Yv,rm
3241         alternative.  Change x=xm,C alternative to v=vm,C, x=x,x alternative
3242         to v=Yv,Yv and x=x,m to v=v,m.  Use maybe_evex prefix attribute
3243         instead of vex for the last two above mentioned alternatives.
3244
3245 2016-06-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3246
3247         PR target/70830
3248         * config/arm/arm.c (arm_output_multireg_pop): Guard "pop" on update.
3249
3250 2016-06-02  Segher Boessenkool  <segher@kernel.crashing.org>
3251
3252         * config/rs6000/dfp.md (trunctddd2): Correct the "length" attribute.
3253
3254 2016-06-01  David Malcolm  <dmalcolm@redhat.com>
3255
3256         * config/rl78/rl78.c (rl78_expand_prologue): Convert local
3257         from int to unsigned.
3258
3259 2016-05-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
3260
3261         * config/rs6000/vsx.md (vsx_splat_<mode>, V2DI/V2DF): Simplify
3262         alternatives, eliminating preferred register class.  Add support
3263         for the MTVSRDD instruction in ISA 3.0.
3264         (vsx_splat_v4si_internal): Use splat_input_operand instead of
3265         reg_or_indexed_operand.
3266         (vsx_splat_v4sf_internal): Likewise.
3267
3268 2016-05-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
3269
3270         PR target/71186
3271         * config/rs6000/vsx.md (xxspltib_<mode>_nosplit): Add alternatives
3272         for loading up all 0's or all 1's.
3273
3274 2016-06-01  Thomas Preud'homme  <thomas.preudhomme@arm.com>
3275
3276         * doc/sourcebuild.texi (arm_acq_rel): Document new effective target.
3277
3278 2016-06-01  Eduard Sanou  <dhole@openmailbox.org>
3279
3280         * doc/cppenv.texi: Note that the `%s` in `date` is a non-standard
3281         extension.
3282         * gcc.c (driver_handle_option): Call set_source_date_epoch_envvar.
3283         * gcc.c (set_source_date_epoch_envvar): New function, sets
3284         the SOURCE_DATE_EPOCH environment variable to the current time.
3285
3286 2016-06-01  Eric Botcazou  <ebotcazou@adacore.com>
3287
3288         * tree-vect-loop.c (vect_determine_vectorization_factor): Also compute
3289         the factor for live Phi nodes.
3290
3291 2016-06-01  Jan Hubicka  <hubicka@ucw.cz>
3292
3293         * loop-dolop.c (doloop_optimize): Us likely max iteration bound.
3294         * tree-parloops.c (parallelize_loops): likewise.
3295         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop,
3296         tree_unswitch_outer_loop): likewise.
3297
3298 2016-06-01  Jakub Jelinek  <jakub@redhat.com>
3299
3300         PR middle-end/71371
3301         * gimplify.c (gimplify_omp_for): Temporarily clear gimplify_omp_ctxp
3302         around creation of the temporary.
3303
3304 2016-06-01  Richard Biener  <rguenther@suse.de>
3305
3306         PR tree-optimization/71366
3307         * tree-ssa-loop-ivcanon.c (edges_to_remove): New global.
3308         (unloop_loops): Move removing edges here ...
3309         (try_unroll_loop_completely): ... from here.
3310         (try_peel_loop): ... and here.
3311         (tree_unroll_loops_completely_1): Track parent loops via
3312         bitmap of header BBs.
3313         (tree_unroll_loops_completely): Adjust for that.
3314
3315 2016-06-01  Kelvin Nilsen  <kelvin@gcc.gnu.org>
3316
3317         * config/rs6000/altivec.h (vec_slv): New macro.
3318         (vec_srv): New macro.
3319         * config/rs6000/altivec.md (UNSPEC_VSLV): New value.
3320         (UNSPEC_VSRV): New value.
3321         (vslv): New insn.
3322         (vsrv): New insn.
3323         * config/rs6000/rs6000-builtin.def (vslv): New builtin definition.
3324         (vsrv): New builtin definition.
3325         * config/rs6000/rs6000-c.c (P9V_BUILTIN_VSLV): Macro expansion to
3326         define argument types for new builtin.
3327         (P9V_BUILTIN_VSRV): Macro expansion to define argument types for
3328         new builtin.
3329         * doc/extend.texi: Document the new vec_vslv and vec_srv built-in
3330         functions.
3331
3332 2016-06-01  Uros Bizjak  <ubizjak@gmail.com>
3333             Jocelyn Mayer  <l_indien@magic.fr>
3334
3335         PR target/67310
3336         * config/i386/driver-i386.c (host_detect_local_cpu): Correctly
3337         detect processor family for signature_CENTAUR_ebx.
3338         <case PROCESSOR_I486>: Pass c3, winchip2 or winchip-c6 for
3339         signature_CENTAUR_ebx.
3340         <case PROCESSOR _PENTIUMPRO>: Pass c3-2 for signature_CENTAUR_ebx.
3341         <default>: Pass x86-64 for has_longmode.
3342
3343 2016-06-01  Nathan Sidwell  <nathan@acm.org>
3344
3345         * config/nvptx/nvptx.c (nvptx_assemble_undefined_decl): Reject
3346         undefined weak.
3347
3348 2016-06-01  Richard Biener  <rguenther@suse.de>
3349
3350         PR tree-optimization/71261
3351         * tree-vect-patterns.c (check_bool_pattern): Gather a hash-set
3352         of stmts successfully put in the bool pattern.  Remove
3353         single-use restriction.
3354         (adjust_bool_pattern_cast): Add cast at the use site via the
3355         pattern def sequence.
3356         (adjust_bool_pattern): Remove recursion, maintain a hash-map
3357         of patterned defs.  Use the pattern def seqence instead of
3358         multiple independent patterns.
3359         (sort_after_uid): New qsort compare function.
3360         (adjust_bool_stmts): New function to process stmts in the bool
3361         pattern in IL order.
3362         (vect_recog_bool_pattern): Adjust.
3363         * tree-if-conv.c (ifcvt_split_def_stmt): Remove.
3364         (ifcvt_walk_pattern_tree): Likewise.
3365         (stmt_is_root_of_bool_pattern): Likewise.
3366         (ifcvt_repair_bool_pattern): Likewise.
3367         (tree_if_conversion): Do not call ifcvt_repair_bool_pattern.
3368
3369 2016-06-01  Jan Hubicka  <hubicka@ucw.cz>
3370
3371         * loop-unroll.c (decide_unroll_constant_iterations,
3372         decide_unroll_runtime_iterations, decide_unroll_stupid): Use
3373         likely upper bounds.
3374         * loop-iv.c (find_simple_exit): Dump likely upper bounds.
3375
3376 2016-06-01  Thomas Schwinge  <thomas@codesourcery.com>
3377
3378         * tree-core.h (enum omp_clause_code): Remove
3379         OMP_CLAUSE_DEVICE_RESIDENT.  Adjust all users.
3380
3381 2016-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3382
3383         * config/arm/sync.md (arm_store_exclusive<mode>):
3384         Use 'H' output modifier on operands[2] rather than creating a new
3385         entry in out-of-bounds memory of the operands array.
3386         (arm_store_release_exclusivedi): Likewise.
3387
3388 2016-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3389
3390         * config/arm/arm.c (arm_fusion_enabled_p): New function.
3391         * config/arm/arm-protos.h (arm_fusion_enabled_p): Declare prototype.
3392         * config/arm/crypto.md (crypto_<crypto_pattern>, CRYPTO_UNARY):
3393         Add "=w,0" alternative.  Enable it when AES/AESMC fusion is enabled.
3394
3395 2016-06-01  Eric Botcazou  <ebotcazou@adacore.com>
3396
3397         * tree-vect-loop.c (vect_determine_vectorization_factor): Also take
3398         into account live statements for mask producers.
3399
3400 2016-06-01  Richard Biener  <rguenther@suse.de>
3401
3402         PR tree-optimization/71311
3403         * match.pd (@0 < @1 && @0 < @2 -> @0 < min(@1,@2)): Add :c and
3404         restrict to non-INTEGER_CST @0.
3405
3406 2016-06-01  Richard Biener  <rguenther@suse.de>
3407
3408         * match.pd ((A & B) - (A & ~B) -> B - (A ^ B)): Add missing :c.
3409         (relational patterns): Use :c to avoid pattern duplications.
3410
3411 2016-06-01  Richard Biener  <rguenther@suse.de>
3412
3413         * genmatch.c (comparison_code_p): New predicate.
3414         (swap_tree_comparison): New function.
3415         (commutate): Add for_vec parameter to append new for entries.
3416         Support commutating relational operators by swapping it alongside
3417         operands.
3418         (lower_commutative): Adjust.
3419         (dt_simplify::gen): Do not pass artificial operators to gen
3420         functions.
3421         (decision_tree::gen): Do not add artificial operators as parameters.
3422         (parser::parse_expr): Verify operator commutativity when :c is
3423         applied.  Allow :C to override this.
3424         * match.pd: Adjust patterns to use :C instead of :c where required.
3425
3426 2016-06-01  Patrick Palka  <ppalka@gcc.gnu.org>
3427
3428         PR tree-optimization/71077
3429         * tree-ssa-threadedge.c (simplify_control_stmt_condition_1): In
3430         the combining step, use boolean_false_node and boolean_true_node
3431         as the designated false/true return values.
3432
3433 2016-05-31  Jan Hubicka  <hubicka@ucw.cz>
3434
3435         * predict.def (PRED_LOOP_EXTRA_EXIT): Define.
3436         * predict.c (predict_iv_comparison): Also check PRED_LOOP_EXTRA_EXIT.
3437         (predict_extra_loop_exits): Use PRED_LOOP_EXTRA_EXIT instead of
3438         PRED_LOOP_EXIT.
3439
3440 2016-05-31  Jan Hubicka  <hubicka@ucw.cz>
3441
3442         * doc/invoke.texi (-frename-registers): Drop -fpeel-loops from list
3443         of flags impliying the register renaming.
3444         * toplev.c (process_options): Do not imply flag_rename_registers with
3445         loop peeling.
3446
3447 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
3448
3449         * config/sh/sh.h (ASM_OUTPUT_SYMBOL_REF): Remove macro and use the
3450         default implementation.
3451
3452 2016-05-31  Nathan Sidwell  <nathan@acm.org>
3453
3454         * dwarf2out.c (cur_line_info_table): Add GTY marker.
3455
3456 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
3457
3458         * config/sh/constraints.md (b): Remove constraint.
3459         * config/sh/predicates.md (arith_reg_operand): Remove
3460         TARGET_REGISTER_P.
3461         * config/sh/sh-modes.def (PDI): Remove.
3462         * config/sh/sh.c (sh_target_reg_class,
3463         sh_optimize_target_register_callee_saved): Remove functions.
3464         (sh_option_override): Don't set MASK_SAVE_ALL_TARGET_REGS.
3465         (sh_expand_epilogue): Update comment.
3466         (sh_hard_regno_mode_ok, sh_register_move_cost, calc_live_regs,
3467         sh_secondary_reload): Remove TARGET_REGS related code.
3468         * config/sh/sh.h (FIRST_TARGET_REG, LAST_TARGET_REG,
3469         TARGET_REGISTER_P): Remove macros.
3470         (SH_DBX_REGISTER_NUMBER, REG_ALLOC_ORDER): Remove target regs.
3471         * config/sh/sh.md (PR_MEDIA_REG, T_MEDIA_REG, FR23_REG, TR0_REG,
3472         TR1_REG, TR2_REG): Remove constants.
3473         * config/sh/sh.opt (SAVE_ALL_TARGET_REGS): Remove.
3474
3475 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
3476
3477         * config/sh/sh.md (adddi3, subdi3, negdi2, abs<mode>2): Remove
3478         define_expand patterns.
3479         (adddi3_compact): Rename to adddi3.
3480         (subdi3_compact): Rename to subdi3.
3481         (*negdi2): Rename to negdi2.
3482         (*abs<mode>2): Rename to abs<mode>2.
3483
3484 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
3485
3486         * config/rx/rx.md (FETCHOP_NO_MINUS): New code iterator.
3487         (atomic_<fetchop_name>_fetchsi): Extract minus operator into ...
3488         (atomic_sub_fetchsi): ... this new pattern.
3489         (mvtc): Add CC_REG clobber.
3490
3491 2016-05-31  Marek Polacek  <polacek@redhat.com>
3492
3493         * gimplify.c (gimplify_switch_expr): Also handle GIMPLE_TRY.
3494
3495 2016-05-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3496
3497         * config/aarch64/aarch64.c (aarch_macro_fusion_pair_p): Use
3498         aarch64_fusion_enabled_p to check for fusion capabilities.
3499
3500 2016-05-31  Richard Biener  <rguenther@suse.de>
3501
3502         PR tree-optimization/71352
3503         * tree-ssa-reassoc.c (zero_one_operation): Handle op equal to
3504         minus one and a negate.
3505
3506 2016-05-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3507
3508         * config/aarch64/aarch64.c (aarch64_simd_attr_length_move): Delete.
3509         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
3510         Delete prototype.
3511         * config/aarch64/iterators.md (insn_count): Add descriptive comment.
3512         * config/aarch64/aarch64-simd.md (*aarch64_mov<mode>, VSTRUCT modes):
3513         Remove use of aarch64_simd_attr_length_move, set length attribute
3514         directly.
3515         (*aarch64_be_movoi): Likewise.
3516         (*aarch64_be_movci): Likewise.
3517         (*aarch64_be_movxi): Likewise.
3518
3519 2016-05-31  Jan Hubicka  <hubicka@ucw.cz>
3520
3521         * loop-init.c (gate): Do not enale RTL loop unroller with -fpeel-loops.
3522         It no longer does that.
3523         * toplev.c (process_options): Do not enable flag_web with -fpeel-loops.
3524
3525 2016-05-31  Wladimir J. van der Laan  <laanwj@gmail.com>
3526
3527         * config/aarch64/arm_neon.h (vdupb_laneq_s8): Remove spurious
3528         attribute __unused__.
3529
3530 2016-05-31  Thomas Preud'homme  <thomas.preudhomme@arm.com>
3531
3532         * config/arm/arm-protos.h (arm_arch_thumb1): Declare.
3533         * config/arm/arm.c (arm_arch_thumb1): Define.
3534         (arm_option_override): Initialize arm_arch_thumb1.
3535         * config/arm/arm.h (arm_arch_thumb1): Declare.
3536         (TARGET_ARM_ARCH_ISA_THUMB): Use arm_arch_thumb to determine if target
3537         support Thumb-1 ISA.
3538
3539 2016-05-31  Kirill Yukhin  <kirill.yukhin@intel.com>
3540
3541         PR target/71346
3542         * config/i386/sse.md (define_insn_and_split "*vec_extractv4sf_0"): Use
3543         `Yv' for scalar operand.
3544
3545 2016-05-31  Tom de Vries  <tom@codesourcery.com>
3546
3547         PR tree-optimization/69068
3548         * graphite-isl-ast-to-gimple.c (copy_bb_and_scalar_dependences): Handle
3549         phis with more than two args.
3550
3551 2016-05-30  Andreas Tobler  <andreast@gcc.gnu.org>
3552
3553         * config.gcc: Move hard float support for arm*hf*-*-freebsd* into
3554         armv6*-*-freebsd* for FreeBSD 11. Eliminate the arm*hf*-*-freebsd*
3555         target.
3556
3557 2016-05-30  Jose E. Marchesi  <jose.marchesi@oracle.com>
3558
3559         * config.gcc (sparc*-*-*): Support cpu_32, cpu_64, tune_32 and
3560         tune_64.
3561         * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
3562         support on SPARC.
3563         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Add entries for
3564         cpu_32, cpu_64, tune_32 and tune_64.
3565         * config/sparc/sol2.h (OPTION_DEFAULT_SPECS): Likewise.
3566
3567 2016-05-30  Uros Bizjak  <ubizjak@gmail.com>
3568
3569         * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
3570
3571 2016-05-30  Andi Kleen  <ak@linux.intel.com>
3572
3573         * auto-profile.c (read_profile): Replace asserts with errors
3574         when file does not exist.
3575         * gcov-io.c (gcov_read_words): Dito.
3576
3577 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
3578
3579         * tree-cfg.c (print_loop): Print likely upper bounds.
3580
3581 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
3582
3583         * doc/invoke.texi (-fpeel-loops,-O3): Update documentation.
3584         * opts.c (default_options): Enable peel loops at -O3.
3585         * tree-ssa-loop-ivcanon.c (peeled_loops): New static var.
3586         (try_peel_loop): Do not re-peel already peeled loops;
3587         use likely upper bounds; fix profile updating.
3588         (pass_complete_unroll::execute): Initialize peeled_loops.
3589
3590 2016-05-30  Martin Liska  <mliska@suse.cz>
3591
3592         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Scale
3593         computed costs by frequency of BB they belong to.
3594         (get_scaled_computation_cost_at): New function.
3595
3596 2016-05-30  Alexander Monakov  <amonakov@ispras.ru>
3597             Marc Glisse  <marc.glisse@inria.fr>
3598
3599         PR tree-optimization/71289
3600         * match.pd (-1 / B < A, A > -1 / B): New transformations.
3601
3602 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
3603
3604         * tree-vect-loop.c (vect_transform_loop): Update likely bounds.
3605
3606 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
3607
3608         * tree-ssa-loop-ivcanon.c (try_peel_loop): Correctly set wont_exit
3609         for peeled copies; avoid underflow when updating estimates; correctly
3610         scale loop profile.
3611
3612 2016-05-30  Kugan Vivekanandarajah  <kuganv@linaro.org>
3613
3614         * tree-ssa-reassoc.ci (swap_ops_for_binary_stmt): Fix typo from commit
3615         r236875. Corrected oe3 to oe2 as obvious.
3616
3617 2016-05-30  Kugan Vivekanandarajah  <kuganv@linaro.org>
3618
3619         PR middle-end/71269
3620         PR middle-end/71252
3621         * tree-ssa-reassoc.c (insert_stmt_before_use): Use find_insert_point so
3622         that inserted stmt will not dominate stmts that defines its operand.
3623         (rewrite_expr_tree): Add stmt_to_insert before adding the use stmt.
3624         (rewrite_expr_tree_parallel): Likewise.
3625
3626 2016-05-30  Kugan Vivekanandarajah  <kuganv@linaro.org>
3627
3628         PR middle-end/71252
3629         * tree-ssa-reassoc.c (swap_ops_for_binary_stmt): Fix swap such that
3630         all fields including stmt_to_insert are swapped.
3631
3632 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
3633
3634         * predict.h (force_edge_cold): Declare.
3635         * predict.c (force_edge_cold): New function.
3636         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Fix profile
3637         updating.
3638         (canonicalize_loop_induction_variables): Fix formating.
3639
3640 2016-05-30  Eric Botcazou  <ebotcazou@adacore.com>
3641
3642         * config/visium/visium.c (visium_split_double_add): Minor tweaks.
3643         (visium_expand_copysign): Use gen_int_mode directly.
3644         (visium_compute_frame_size): Minor tweaks.
3645
3646 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
3647
3648         * tree-vect-loop.c (vect_analyze_loop_2): Use
3649         likely_max_stmt_executions_int.
3650
3651 2016-05-30  Tom de Vries  <tom@codesourcery.com>
3652
3653         PR tree-optimization/69067
3654         * graphite-isl-ast-to-gimple.c (get_def_bb_for_const): Remove assert.
3655
3656 2016-05-29  Uros Bizjak  <ubizjak@gmail.com>
3657
3658         PR target/71245
3659         * config/i386/sync.md (define_peephole2 atomic_storedi_fpu):
3660         New peepholes to remove unneeded fild/fistp pairs.
3661         (define_peephole2 atomic_loaddi_fpu): Ditto.
3662
3663 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
3664
3665         * predict.c (maybe_hot_frequency_p): Avoid division.
3666
3667 2016-05-28  Gerald Pfeifer  <gerald@pfeifer.com>
3668
3669         * doc/install.texi: Use https for shop.fsf.org.
3670
3671 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
3672
3673         * tree-ssa-loop-ivopts.c (estimated_stmt_executions_int): Use
3674         likely_max_stmt_executions_int.
3675
3676 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
3677
3678         * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Use
3679         likely_max_stmt_executions_int.
3680
3681 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
3682
3683         * profile.c (compute_branch_probabilities): Do not report hitrates
3684         here.
3685         (branch_prob): Report hitrates here.
3686         * predict.c (gimple_predict_edge): Do not assert profile status;
3687         fix formatting issues.
3688
3689 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
3690
3691         * predict.c (edge_predicted_by_p): New function.
3692         (predict_paths_for_bb): Do not put multiple predictions of the same type
3693         on one edge.
3694
3695 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
3696
3697         * tree-ssa-loop-niter.c (number_of_iterations_exit): Revert accidental
3698         commit.
3699
3700 2016-05-28  Alan Modra  <amodra@gmail.com>
3701
3702         * dominance.c (verify_dominators): Don't segfault on NULL imm_bb.
3703
3704 2016-05-28  Alan Modra  <amodra@gmail.com>
3705
3706         PR rtl-optimization/71275
3707         * ira.c (ira): Free dominance info.
3708
3709 2016-05-27  Gerald Pfeifer  <gerald@pfeifer.com>
3710
3711         * doc/sourcebuild.texi: New address for upstream Go repository.
3712
3713 2016-05-27  Thomas Preud'homme  <thomas.preudhomme@arm.com>
3714
3715         * config/arm/arm.h (TARGET_ARM_V6M): Remove.
3716         (TARGET_ARM_V7M): Likewise.
3717
3718 2016-05-26  Jeff Law  <law@redhat.com>
3719
3720         * tree-ssa-threadedge.c: Remove include of tree-ssa-threadbackward.h.
3721         (thread_across_edge): Remove calls to find_jump_threads_backwards.
3722         * passes.def: Add jump threading passes before DOM/VRP.
3723         * tree-ssa-threadbackward.c (find_jump_threads_backwards): Change
3724         argument to a basic block from an edge.  Remove tests which are
3725         handled elsewhere.
3726         (pass_data_thread_jumps, class pass_thread_jumps): New.
3727         (pass_thread_jumps::gate, pass_thread_jumps::execute): New.
3728         (make_pass_thread_jumps): Likewise.
3729         * tree-pass.h (make_pass_thread_jumps): Declare.
3730
3731 2016-05-27  Eric Botcazou  <ebotcazou@adacore.com>
3732
3733         * config/visium/visium-protos.h (split_double_move): Rename into...
3734         (visium_split_double_move): ...this.
3735         (visium_split_double_add): Declare.
3736         * config/visium/visium.c (split_double_move): Rename into...
3737         (visium_split_double_move): ...this.
3738         (visium_split_double_add): New function.
3739         (visium_expand_copysign): Renumber operands for consistency.
3740         * config/visium/visium.md (DImode move splitter): Adjust to renaming.
3741         (DFmode move splitter): Likewise.
3742         (*addi3_insn): Split by means of visium_split_double_add.
3743         (*adddi3_insn_flags): Delete.
3744         (*plus_plus_sltu<subst_arith>): New insn.
3745         (*subdi3_insn): Split by means of visium_split_double_add.
3746         (subdi3_insn_flags): Delete.
3747         (*minus_minus_sltu<subst_arith>): New insn.
3748         (*negdi2_insn): Split by means of visium_split_double_add.
3749         (*negdi2_insn_flags): Delete.
3750
3751 2016-05-27  Ulrich Weigand  <uweigand@de.ibm.com>
3752
3753         * configure.ac: Treat a --with-headers option without argument
3754         the same as the default (i.e. consult sys-include directory).
3755         * configure: Regenerate.
3756
3757 2016-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3758
3759         * config/aarch64/aarch64.c (aarch64_fusion_enabled_p): New function.
3760         * config/aarch64/aarch64-protos.h (aarch64_fusion_enabled_p): Declare
3761         prototype.
3762         * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aesmc_op>v16qi):
3763         Add "=w,0" alternative.  Enable it when AES/AESMC fusion is enabled.
3764
3765 2016-05-27  Jiong Wang  <jiong.wang@arm.com>
3766
3767         PR target/63596
3768         * config/aarch64/aarch64.c (aarch64_expand_builtin_va_start): Honor
3769         tree-stdarg analysis results.
3770         (aarch64_setup_incoming_varargs): Likewise.
3771
3772 2016-05-27  Jiong Wang  <jiong.wang@arm.com>
3773
3774         * config/aarch64/aarch64.c (aarch64_build_builtin_va_list): Initialize
3775         va_list_gpr_counter_field and va_list_fpr_counter_field.
3776
3777 2016-05-27  Wilco Dijkstra  <wdijkstr@arm.com>
3778
3779         PR67609
3780         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Remove.
3781         * config/aarch64/aarch64.c
3782         (aarch64_cannot_change_mode_class): Remove function.
3783         * config/aarch64/aarch64-protos.h
3784         (aarch64_cannot_change_mode_class): Remove.
3785
3786 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
3787
3788         * cfgloop.c (record_niter_bound): Record likely upper bounds.
3789         (likely_max_stmt_executions_int, get_likely_max_loop_iterations,
3790         get_likely_max_loop_iterations_int): New.
3791         * cfgloop.h (struct loop): Add nb_iterations_likely_upper_bound,
3792         any_likely_upper_bound.
3793         (get_likely_max_loop_iterations_int, get_likely_max_loop_iterations):
3794         Declare.
3795         * cfgloopmanip.c (copy_loop_info): Copy likely upper bounds.
3796         * loop-unroll.c (unroll_loop_constant_iterations): Update likely
3797         upper bound.
3798         (unroll_loop_constant_iterations): Likewise.
3799         (unroll_loop_runtime_iterations): Likewise.
3800         * lto-streamer-in.c (input_cfg): Stream likely upper bounds.
3801         * lto-streamer-out.c (output_cfg): Likewise.
3802         * tree-ssa-loop-ivcanon.c (try_peel_loop): Update likely upper
3803         bounds.
3804         (canonicalize_loop_induction_variables): Dump likely upper bounds.
3805         * tree-ssa-loop-niter.c (record_estimate): Record likely upper bounds.
3806         (likely_max_loop_iterations): New.
3807         (likely_max_loop_iterations_int): New.
3808         (likely_max_stmt_executions): New.
3809         * tree-ssa-loop-niter.h (likely_max_loop_iterations,
3810         likely_max_loop_iterations_int, likely_max_stmt_executions_int,
3811         likely_max_stmt_executions): Declare.
3812
3813 2016-05-27  Marek Polacek  <polacek@redhat.com>
3814
3815         PR middle-end/71308
3816         * gimple-fold.c (gimple_fold_call): Check that LHS is not null.
3817
3818 2016-05-27  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3819
3820         * config/s390/s390.md (2x risbg splitters): Use
3821         reg_overlap_mentioned_p instead of rtx_equal_p.
3822
3823 2016-05-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
3824
3825         * combine.c (make_compound_operation): Take known zero bits into
3826         account when checking for possible zero_extend.
3827
3828 2016-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3829
3830         * config/aarch64/aarch64.md (ashl<mode>3, SHORT modes):
3831         Use const_int_operand for operand 2 predicate.  Simplify expand code
3832         as a result.
3833
3834 2016-05-27  Ilya Enkovich  <ilya.enkovich@intel.com>
3835
3836         PR middle-end/71279
3837         * fold-const.c (fold_ternary_loc): Don't fold VEC_COND_EXPR
3838         into comparison.
3839
3840 2016-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3841
3842         * config/aarch64/aarch64-modes.def (CC_ZESWP, CC_SESWP): Delete.
3843         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Remove condition
3844         that returns CC_SESWPmode and CC_ZESWPmode.
3845         (aarch64_get_condition_code_1): Remove handling of CC_SESWPmode
3846         and CC_SESWPmode.
3847         (aarch64_rtx_costs): Likewise.
3848
3849 2016-05-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
3850
3851         * config/rs6000/rs6000.c (rs6000_emit_p9_fp_minmax): New function
3852         for ISA 3.0 min/max support.
3853         (rs6000_emit_p9_fp_cmove): New function for ISA 3.0 floating point
3854         conditional move support.
3855         (rs6000_emit_cmove): Call rs6000_emit_p9_fp_minmax and
3856         rs6000_emit_p9_fp_cmove if the ISA 3.0 instructions are
3857         available.
3858         * config/rs6000/rs6000.md (SFDF2): New iterator to allow doing
3859         conditional moves where the comparison type is different from move
3860         type.
3861         (fp_minmax): New code iterator for smin/smax.
3862         (minmax): New code attributes for min/max.
3863         (SMINMAX): Likewise.
3864         (smax<mode>3): Combine min, max insns into one insn using the
3865         fp_minmax code iterator.  Add support for ISA 3.0 min/max
3866         instructions that don't need -ffast-math.
3867         (s<minmax><mode>3): Likewise.
3868         (smax<mode>3_vsx): Likewise.
3869         (smin<mode>3): Likewise.
3870         (s<minmax><mode>3_vsx): Likewise.
3871         (smin<mode>3_vsx): Likewise.
3872         (pre-VSX min/max splitters): Likewise.
3873         (s<minmax><mode>3_fpr): Likewise.
3874         (movsfcc): Rewrite floating point conditional moves to combine
3875         SFmode/DFmode into a single insn.
3876         (mov<mode>cc): Likewise.
3877         (movdfcc): Likewise.
3878         (fselsfsf4): Combine FSEL cases into a single insn, using SFDF and
3879         SFDF2 iterators to handle all combinations.
3880         (fseldfsf4): Likewise.
3881         (fsel<SFDF:mode><SFDF2:mode>4): Likewise.
3882         (fseldfdf4): Likewise.
3883         (fselsfdf4): Likewise.
3884         (mov<SFDF:mode><SFDF2:mode>cc_p9): Add support for the ISA 3.0
3885         comparison instructions that set a 0/-1 mask, and use it for
3886         floating point conditional move via XXSEL.
3887         (fpmask<mode>): Likewise.
3888         (xxsel<mode>): Likewise.
3889         * config/rs6000/predicates.md (min_max_operator): Delete, no
3890         longer used.
3891         (fpmask_comparison_operaton): New insn for ISA 3.0 comparison
3892         instructions that generate a 0/-1 mask for use with XXSEL.
3893         * config/rs6000/rs6000.h (TARGET_MINMAX_SF): New helper macros to
3894         say whether floating point min/max is available, either through
3895         FSEL, ISA 2.06 min/max, and ISA 3.0 min/max instrucitons.
3896         (TARGET_MINMAX_DF): Likewise.
3897
3898 2016-05-27  Alan Modra  <amodra@gmail.com>
3899
3900         PR rtl-optimization/71275
3901         * ira.c (ira): Call loop_optimizer_init to set up bb_loop_depth
3902         for update_equiv_regs and combine_and_move_insns.
3903
3904 2016-05-26  Uros Bizjak  <ubizjak@gmail.com>
3905
3906         * config/i386/i386.md (*movqi_internal) <attr "isa">: Use
3907         if_then_else or cond RTXes to calculate attribute value.
3908         * config/i386/mmx.md (*vec_extractv2sf_1) <attr "prefix_rep">: Ditto.
3909         <attr "length_immediate>: Ditto.
3910         (*vec_extractv2sf_1) <attr "length_immediate">: Ditto.
3911         * config/i386/sse.md (sse_loadlps) <attr "length_immediate">: Ditto.
3912         (*vec_concatv2sf_sse4_1) <attr "isa">: Ditto.
3913         <attr "type">: Ditto.
3914         <attr "prefix_data16">: Ditto.
3915         <attr "prefix_extra">: Ditto.
3916         <attr "length_immediate">: Ditto.
3917         <attr "prefix">: Ditto.
3918         (vec_set<mode>_0) <attr "isa">: Ditto.
3919         <attr "prefix_extra">: Ditto.
3920         <attr "length_immediate">: Ditto.
3921         <attr "prefix">: Ditto.
3922         (*vec_interleave_highv2df) <attr "prefix_data16">: Ditto.
3923         (*vec_interleave_lowv2df) <attr "prefix_data16">: Ditto.
3924         (sse2_storelpd) <attr "prefix_data16">: Ditto.
3925         (sse2_loadhpd) <attr "prefix_data16">: Ditto.
3926         (sse2_loadlpd) <attr "prefix_data16">: Ditto.
3927         <attr "length_immediate">: Ditto.
3928         <attr "prefix">: Ditto.
3929         (sse2_movsd) <attr "length_immediate">: Ditto.
3930         <attr "prefix">: Ditto.
3931         (vec_concatv2df)  <attr "isa">: Ditto.
3932         <attr "prefix">: Ditto.
3933         (*vec_extractv4si) <attr "prefix_extra">: Ditto.
3934         (*vec_extractv2di_1) <attr "isa">: Ditto.
3935         <attr "type">: Ditto.
3936         <attr "length_immediate">: Ditto.
3937         <attr "prefix_rex">: Ditto.
3938         <attr "prefix_extra">: Ditto.
3939         (*vec_concatv2si_sse4_1) <attr "type">: Ditto.
3940         <attr "prefix_extra">: Ditto.
3941         <attr "length_immediate">: Ditto.
3942         (vec_concatv2di) <attr "isa">: Ditto.
3943         <attr "prefix_extra">: Ditto.
3944         <attr "length_immediate">: Ditto.
3945         <attr "prefix">: Ditto.
3946
3947 2016-05-26  Martin Liska  <mliska@suse.cz>
3948
3949         * tree-ssa-loop-ivopts.c (comp_cost::infinite_cost_p): New
3950         function.
3951         (operator+): Likewise.
3952         (operator-): Likewise.
3953         (comp_cost::operator+=): Likewise.
3954         (comp_cost::operator-=): Likewise.
3955         (comp_cost::operator/=): Likewise.
3956         (comp_cost::operator*=): Likewise.
3957         (operator<): Likewise.
3958         (operator==): Likewise.
3959         (operator<=): Likewise.
3960         (new_cost): Remove.
3961         (infinite_cost_p): Likewise.
3962         (add_costs): Likewise.
3963         (sub_costs): Likewise.
3964         (compare_costs): Likewise.
3965         (set_group_iv_cost): Use the newly introduced functions.
3966         (get_address_cost): Likewise.
3967         (get_shiftadd_cost): Likewise.
3968         (force_expr_to_var_cost): Likewise.
3969         (split_address_cost): Likewise.
3970         (ptr_difference_cost): Likewise.
3971         (difference_cost): Likewise.
3972         (get_computation_cost_at): Likewise.
3973         (determine_group_iv_cost_generic): Likewise.
3974         (determine_group_iv_cost_address): Likewise.
3975         (determine_group_iv_cost_cond): Likewise.
3976         (autoinc_possible_for_pair): Likewise.
3977         (determine_group_iv_costs): Likewise.
3978         (cheaper_cost_pair): Likewise.
3979         (iv_ca_recount_cost): Likewise.
3980         (iv_ca_set_no_cp): Likewise.
3981         (iv_ca_set_cp): Likewise.
3982         (iv_ca_cost): Likewise.
3983         (iv_ca_new): Likewise.
3984         (iv_ca_dump): Likewise.
3985         (iv_ca_narrow): Likewise.
3986         (iv_ca_prune): Likewise.
3987         (iv_ca_replace): Likewise.
3988         (try_add_cand_for): Likewise.
3989         (try_improve_iv_set): Likewise.
3990         (find_optimal_iv_set): Likewise.
3991
3992 2016-05-26  Richard Sandiford  <richard.sandiford@arm.com>
3993
3994         * tree-ssa-loop-ivopts.c (loop_body_includes_call): Don't assume
3995         that internal functions will clobber all caller-saved registers.
3996
3997 2016-05-26  Wilco Dijkstra  <wdijkstr@arm.com>
3998
3999         * config/aarch64/aarch64.c (aarch64_case_values_threshold):
4000         Return a better case_values_threshold when optimizing.
4001
4002 2016-05-26  Wilco Dijkstra  <wdijkstr@arm.com>
4003
4004         * config/aarch64/aarch64-simd.md (aarch64_combinez):
4005         Add ? to integer variant.
4006         (aarch64_combinez_be): Likewise.
4007
4008 2016-05-26  Jakub Jelinek  <jakub@redhat.com>
4009
4010         * config/i386/sse.md (*vcvtps2ph_store<mask_name>): Use v constraint
4011         instead of x constraint.
4012         (vcvtps2ph256<mask_name>): Likewise.
4013
4014         * config/i386/sse.md (*ssse3_palignr<mode>_perm): Add avx512bw
4015         alternative.  Formatting fix.
4016
4017         * config/i386/sse.md
4018         (<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Rename
4019         to ...
4020         (avx512vl_shuf_<shuffletype>32x4_1<mask_name>): ... this.
4021         (*avx_vperm_broadcast_v4sf): Use v constraint instead of x.  Use
4022         maybe_evex prefix instead of vex.
4023         (*avx_vperm_broadcast_<mode>): Use v constraint instead of x.  Handle
4024         EXT_REX_SSE_REG_P (op0) case in the splitter.
4025
4026 2016-05-25  Jeff Law  <law@redhat.com>
4027
4028         PR tree-optimization/71272
4029         * tree-ssa-threadbackward.c (convert_and_register_jump_thread_path):
4030         Update comments.  Add test for empty path.
4031
4032 2016-05-25  Bill Seurer  <seurer@linux.vnet.ibm.com>
4033
4034         * config/rs6000/altivec.h (vec_cmpne): Add #define for vec_cmpne.
4035         * config/rs6000/rs6000-builtin.def (vec_cmpne): Add vec_cmpne as a
4036         special case builtin.
4037         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
4038         code for ALTIVEC_BUILTIN_VEC_CMPNE.
4039         * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
4040         for __builtin_vec_cmpne.
4041
4042 2016-05-25  Eric Botcazou  <ebotcazou@adacore.com>
4043
4044         * tree-ssa-phiopt.c (factor_out_conditional_conversion): Remove
4045         redundant test and bail out if the type of the new operand is not
4046         a GIMPLE register type after stripping a VIEW_CONVERT_EXPR.
4047
4048 2016-05-25  Uros Bizjak  <ubizjak@gmail.com>
4049
4050         * config/i386/i386.opt (ix86_target_flags_explicit): Remove.
4051         (x_ix86_target_flags_explicit): Remove.
4052         * config/i386/i386.c (ix86_function_specific_save): Do not copy
4053         x_ix86_target_flags_explicit.
4054         (ix86_function_specific_restore): Ditto.
4055
4056 2016-05-25  Uros Bizjak  <ubizjak@gmail.com>
4057             H.J. Lu  <hongjiu.lu@intel.com>
4058
4059         PR target/70738
4060         * common/config/i386/i386-common.c
4061         (OPTION_MASK_ISA_GENERAL_REGS_ONLY_UNSET): New.
4062         (ix86_handle_option) <case OPT_mgeneral_regs_only>: Disable
4063         MPX, MMX, SSE and x87 instructions for -mgeneral-regs-only.
4064         * config/i386/i386.opt (ix86_target_flags): Add new Variable.
4065         (-mgeneral-regs-only): Add new option.
4066         * config/i386/i386.c (ix86_option_override_internal): Don't enable
4067         x87 instructions if only general registers are allowed.
4068         (ix86_target_string): Add ix86_flags argument. Handle additional
4069         flags options through ix86_flags argument.  Update all callers.
4070         * doc/invoke.texi (x86 Options): Document -mgeneral-regs-only.
4071
4072 2016-05-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4073
4074         PR rtl-optimization/66940
4075         * ifcvt.c (noce_get_alt_condition): Check that incrementing or
4076         decrementing desired_val will not overflow before performing these
4077         operations.
4078
4079 2016-05-25  Ilya Verbin  <ilya.verbin@intel.com>
4080
4081         * config/i386/i386-builtin-types.def: Add V16SI_FTYPE_V16SF,
4082         V8DF_FTYPE_V8DF_ROUND, V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND.
4083         * config/i386/i386.c (enum ix86_builtins): Add
4084         IX86_BUILTIN_CVTPS2DQ512_MASK, IX86_BUILTIN_FLOORPS512,
4085         IX86_BUILTIN_FLOORPD512, IX86_BUILTIN_CEILPS512, IX86_BUILTIN_CEILPD512,
4086         IX86_BUILTIN_TRUNCPS512, IX86_BUILTIN_TRUNCPD512,
4087         IX86_BUILTIN_CVTPS2DQ512, IX86_BUILTIN_VEC_PACK_SFIX512,
4088         IX86_BUILTIN_FLOORPS_SFIX512, IX86_BUILTIN_CEILPS_SFIX512,
4089         IX86_BUILTIN_ROUNDPS_AZ_SFIX512.
4090         (builtin_description bdesc_args): Add __builtin_ia32_floorps512,
4091         __builtin_ia32_ceilps512, __builtin_ia32_truncps512,
4092         __builtin_ia32_floorpd512, __builtin_ia32_ceilpd512,
4093         __builtin_ia32_truncpd512, __builtin_ia32_cvtps2dq512,
4094         __builtin_ia32_vec_pack_sfix512, __builtin_ia32_roundps_az_sfix512,
4095         __builtin_ia32_floorps_sfix512, __builtin_ia32_ceilps_sfix512.
4096         Change IX86_BUILTIN_CVTPS2DQ512 to IX86_BUILTIN_CVTPS2DQ512_MASK for
4097         __builtin_ia32_cvtps2dq512_mask.
4098         (ix86_expand_args_builtin): Handle V8DF_FTYPE_V8DF_ROUND,
4099         V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF.
4100         (ix86_builtin_vectorized_function): Handle builtins mentioned above.
4101         * config/i386/sse.md
4102         (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name><round_name>):
4103         Rename to ...
4104         (avx512f_fix_notruncv16sfv16si<mask_name><round_name>): ... this.
4105         (<mask_codefor>avx512f_cvtpd2dq512<mask_name><round_name>): Rename
4106         to ...
4107         (avx512f_cvtpd2dq512<mask_name><round_name>): ... this.
4108         (avx512f_vec_pack_sfix_v8df): New define_expand.
4109         (avx512f_roundpd512): Rename to ...
4110         (avx512f_round<castmode>512): ... this.  Change iterator.
4111         (avx512f_roundps512_sfix): New define_expand.
4112         (round<mode>2_sfix): Change iterator.
4113
4114 2016-05-25  Nick Clifton  <nickc@redhat.com>
4115
4116         * config/msp430/msp430.c (msp430_attr): Produce an error if a
4117         static interrupt handler is detected.
4118         * config/msp430/msp430.h (LIB_SPEC): Do not use msp430.ld as the
4119         default linker script.
4120         * config/msp430/msp430.md (movpsihi2_lo): New pattern for loading
4121         the low part of a symbolic pointer.
4122
4123 2016-05-25  Richard Biener  <rguenther@suse.de>
4124
4125         PR tree-optimization/71261
4126         * tree-if-conv.c (ifcvt_split_def_stmt): Walk uses on the
4127         interesting stmt instead of immediate uses when looking
4128         for the use operand to replace.
4129
4130 2016-05-25  Martin Liska  <mliska@suse.cz>
4131
4132         * ipa-inline.c (edge_badness): Use 'w/' instead of 'w'.
4133
4134 2016-05-25  Richard Biener  <rguenther@suse.de>
4135
4136         PR tree-optimization/71264
4137         * tree-vect-stmts.c (vect_init_vector): Properly deal with
4138         vector type val.
4139
4140 2016-05-25  Martin Liska  <mliska@suse.cz>
4141
4142         PR tree-optimization/71239
4143         * tree.c (array_at_struct_end_p): Do not call operand_equal_p
4144         if DECL_SIZE is NULL.
4145
4146 2016-05-25  Richard Biener  <rguenther@suse.de>
4147
4148         * timevar.def (TV_TREE_LOOP_IFCVT): Add.
4149         * tree-if-conv.c (pass_data_if_conversion): Use it.
4150
4151 2016-05-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
4152
4153         * cgraph.c (cgraph_node::get_availability): Fix typo in comment.
4154         * symtab.c (symtab_node::binds_to_current_def_p): Likewise.
4155         * varpool.c (varpool_node::get_availability): Likewise.
4156
4157 2016-05-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
4158
4159         * config/rs6000/altivec.md (VNEG iterator): New iterator for
4160         VNEGW/VNEGD instructions.
4161         (p9_neg<mode>2): New insns for ISA 3.0 VNEGW/VNEGD.
4162         (neg<mode>2): Add expander for V2DImode added in ISA 2.07, and
4163         support for ISA 3.0 VNEGW/VNEGD instructions.
4164
4165 2016-05-24  Cesar Philippidis  <cesar@codesourcery.com>
4166
4167         * gimplify.c (omp_notice_variable): Use zero-length arrays for data
4168         pointers inside OACC_DATA regions.
4169         (gimplify_scan_omp_clauses): Prune firstprivate clause associated
4170         with OACC_DATA, OACC_ENTER_DATA and OACC_EXIT data regions.
4171         (gimplify_adjust_omp_clauses): Fix typo in comment.
4172
4173 2016-05-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
4174
4175         * config/rs6000/altivec.md (VParity): New mode iterator for vector
4176         parity built-in functions.
4177         (p9v_ctz<mode>2): Add support for ISA 3.0 vector count trailing
4178         zeros.
4179         (p9v_parity<mode>2): Likewise.
4180         * config/rs6000/vector.md (VEC_IP): New mode iterator for vector
4181         parity.
4182         (ctz<mode>2): ISA 3.0 expander for vector count trailing zeros.
4183         (parity<mode>2): ISA 3.0 expander for vector parity.
4184         * config/rs6000/rs6000-builtin.def (BU_P9_MISC_1): New macros for
4185         power9 built-ins.
4186         (BU_P9_64BIT_MISC_0): Likewise.
4187         (BU_P9_MISC_0): Likewise.
4188         (BU_P9V_AV_1): Likewise.
4189         (BU_P9V_AV_2): Likewise.
4190         (BU_P9V_AV_3): Likewise.
4191         (BU_P9V_AV_P): Likewise.
4192         (BU_P9V_VSX_1): Likewise.
4193         (BU_P9V_OVERLOAD_1): Likewise.
4194         (BU_P9V_OVERLOAD_2): Likewise.
4195         (BU_P9V_OVERLOAD_3): Likewise.
4196         (VCTZB): Add vector count trailing zeros support.
4197         (VCTZH): Likewise.
4198         (VCTZW): Likewise.
4199         (VCTZD): Likewise.
4200         (VPRTYBD): Add vector parity support.
4201         (VPRTYBQ): Likewise.
4202         (VPRTYBW): Likewise.
4203         (VCTZ): Add overloaded vector count trailing zeros support.
4204         (VPRTYB): Add overloaded vector parity support.
4205         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
4206         overloaded vector count trailing zeros and parity instructions.
4207         * config/rs6000/rs6000.md (wd mode attribute): Add V1TI and TI for
4208         vector parity support.
4209         * config/rs6000/altivec.h (vec_vctz): Add ISA 3.0 vector count
4210         trailing zeros support.
4211         (vec_cntlz): Likewise.
4212         (vec_vctzb): Likewise.
4213         (vec_vctzd): Likewise.
4214         (vec_vctzh): Likewise.
4215         (vec_vctzw): Likewise.
4216         (vec_vprtyb): Add ISA 3.0 vector parity support.
4217         (vec_vprtybd): Likewise.
4218         (vec_vprtybw): Likewise.
4219         (vec_vprtybq): Likewise.
4220         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
4221         the ISA 3.0 vector count trailing zeros and vector parity built-in
4222         functions.
4223
4224 2016-05-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
4225
4226         * tree-ssa-reassoc.c (sort_by_operand_rank): Skip checking gimple_bb
4227         when there is stmt_to_insert.
4228
4229 2016-05-24  Martin Sebor  <msebor@redhat.com>
4230
4231         PR c++/71147
4232         * tree.h (complete_or_array_type_p): New inline function.
4233
4234 2016-05-24  Jakub Jelinek  <jakub@redhat.com>
4235
4236         * config/i386/i386.h (TARGET_AVOID_4BYTE_PREFIXES): Define.
4237         * config/i386/constraints.md (Yr): Test TARGET_AVOID_4BYTE_PREFIXES
4238         rather than X86_TUNE_AVOID_4BYTE_PREFIXES.
4239
4240         * config/i386/sse.md (<sse4_1>_round<ssemodesuffix><avxsizesuffix>):
4241         Limit 1st alternative to noavx isa, split 2nd alternative into one
4242         noavx and one avx alternative, use *x and Bm in the former and
4243         x and m in the latter.
4244
4245         * config/i386/sse.md (vec_set<mode>_0): Use sse4_noavx isa instead
4246         of sse4 for the first alternative, drop %v from the template
4247         and d operand modifier.  Split second alternative into one sse4_noavx
4248         and one avx alternative, use *x instead of *v in the former and v
4249         instead of *v in the latter.
4250         (*sse4_1_extractps): Use noavx isa instead of * for the first
4251         alternative, drop %v from the template.  Split second alternative into
4252         one noavx and one avx alternative, use *x instead of *v in the
4253         former and v instead of *v in the latter.
4254         (<vi8_sse4_1_avx2_avx512>_movntdqa): Guard the first 2 alternatives
4255         with noavx and the last one with avx.
4256         (sse4_1_phminposuw): Guard first alternative with noavx isa,
4257         split the second one into one noavx and one avx alternative,
4258         use *x and Bm in the former and x and m in the latter one.
4259         (<sse4_1>_ptest<mode>): Use noavx instead of * for the first two
4260         alternatives.
4261
4262         * config/i386/sse.md (sse4_1_<code>v8qiv8hi2<mask_name>): Limit
4263         first two alternatives to noavx, use *x instead of *v in the second
4264         one, add avx alternative without *.
4265         (sse4_1_<code>v4qiv4si2<mask_name>, sse4_1_<code>v4hiv4si2<mask_name>,
4266         sse4_1_<code>v2qiv2di2<mask_name>, sse4_1_<code>v2hiv2di2<mask_name>,
4267         sse4_1_<code>v2siv2di2<mask_name>): Likewise.
4268
4269 2016-05-24  Jeff Law  <law@redhat.com>
4270
4271         * tree-ssa-threadbackwards.c (convert_and_register_jump_thread_path):
4272         New function, extracted from...
4273         (fsm_find_control_statement_thread_paths): Here.  Use the new function.
4274         Allow simple copies and constant initializations in the SSA chain.
4275
4276 2016-05-24  Marek Polacek  <polacek@redhat.com>
4277
4278         PR c/71249
4279         * gimplify.c (gimplify_switch_expr): Look into the innermost lexical
4280         scope.
4281
4282 2016-05-24  Jakub Jelinek  <jakub@redhat.com>
4283
4284         PR c++/71257
4285         * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
4286         SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
4287         SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.  Add
4288         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP and
4289         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP cases explicitly.
4290
4291 2016-05-24  Richard Biener  <rguenther@suse.de>
4292
4293         PR tree-optimization/71240
4294         * tree-ssa-math-opts.c (init_symbolic_number): Verify the source
4295         has integral type.
4296
4297 2016-05-24  Richard Biener  <rguenther@suse.de>
4298
4299         PR tree-optimization/71230
4300         * tree-ssa-reassoc.c (zero_one_operation): Handle negate special ops.
4301
4302 2016-05-24  Richard Sandiford  <richard.sandiford@arm.com>
4303
4304         * tree-vectorizer.h (vectorizable_comparison): Delete.
4305         * tree-vect-loop.c (vectorizable_reduction): Remove redundant
4306         PURE_SLP_STMT check.
4307         * tree-vect-stmts.c (vectorizable_call): Likewise.
4308         (vectorizable_simd_clone_call): Likewise.
4309         (vectorizable_conversion): Likewise.
4310         (vectorizable_assignment): Likewise.
4311         (vectorizable_shift): Likewise.
4312         (vectorizable_operation): Likewise.
4313         (vectorizable_load): Likewise.
4314         (vectorizable_condition): Likewise.
4315         (vectorizable_store): Likewise.  Assert that we don't have
4316         hybrid SLP.
4317         (vectorizable_comparison): Make static.  Remove redundant
4318         PURE_SLP_STMT check.
4319         (vect_transform_stmt): Assert that we always have an slp_node
4320         if PURE_SLP_STMT.
4321
4322 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4323
4324         * config/arm/neon.md (ashldi3_neon):  Replace comparison of INTVAL of
4325         operands[2] against 1 with comparison against CONST1_RTX.
4326         (<shift>di3_neon): Likewise.
4327         * config/arm/predicates.md (const0_operand): Replace with comparison
4328         against CONST0_RTX.
4329
4330 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4331
4332         * config/arm/arm.md (ashldi3): Replace comparison of INTVAL of
4333         operands[2] against 1 with comparison against CONST1_RTX.
4334         (ashrdi3): Likewise.
4335         (lshrdi3): Likewise.
4336         (ashlsi3): Replace cast of INTVAL to unsigned HOST_WIDE_INT with
4337         UINTVAL.
4338         (ashrsi3): Likewise.
4339         (lshrsi3): Likewise.
4340         (rotrsi3): Likewise.
4341         (define_split above *compareqi_eq0): Likewise.
4342         (define_split above "prologue"): Likewise.
4343         * config/arm/arm.c (thumb1_size_rtx_costs): Likewise.
4344         * config/arm/predicates.md (shift_operator): Likewise.
4345         (shift_nomul_operator): Likewise.
4346         (sat_shift_operator): Likewise.
4347         (thumb1_cmp_operand): Likewise.
4348         (const_neon_scalar_shift_amount_operand): Replace manual range
4349         check with IN_RANGE.
4350         * config/arm/thumb1.md (define_peephole2 above *thumb_subdi3):
4351         Replace cast of INTVAL to unsigned HOST_WIDE_INT with UINTVAL.
4352
4353 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4354
4355         * config/arm/arm.md (andsi3): Replace cast of 1 to HOST_WIDE_INT
4356         with HOST_WIDE_INT_1.
4357         (insv): Likewise.
4358         * config/arm/arm.c (optimal_immediate_sequence): Replace cast of
4359         1 to unsigned HOST_WIDE_INT with HOST_WIDE_INT_1U.
4360         (arm_canonicalize_comparison): Likewise.
4361         (thumb1_rtx_costs): Replace cast of 1 to HOST_WIDE_INT with
4362         HOST_WIDE_INT_1.
4363         (thumb1_size_rtx_costs): Likewise.
4364         (vfp_const_double_index): Replace cast of 1 to unsigned
4365         HOST_WIDE_INT with HOST_WIDE_INT_1U.
4366         (get_jump_table_size): Replace cast of 1 to HOST_WIDE_INT with
4367         HOST_WIDE_INT_1.
4368         (arm_asan_shadow_offset): Replace cast of 1 to unsigned
4369         HOST_WIDE_INT with HOST_WIDE_INT_1U.
4370         * config/arm/neon.md (vec_set<mode>): Replace cast of 1 to
4371         HOST_WIDE_INT with HOST_WIDE_INT_1.
4372
4373 2016-05-24  Marek Polacek  <polacek@redhat.com>
4374
4375         * tree-cfg.h (should_remove_lhs_p): New predicate.
4376         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
4377         * gimplify.c (gimplify_modify_expr): Likewise.
4378         * tree-cfg.c (verify_gimple_call): Likewise.
4379         * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
4380         * gimple-fold.c: Include "tree-cfg.h".
4381         (gimple_fold_call): Use should_remove_lhs_p.
4382
4383 2016-05-24  Richard Biener  <rguenther@suse.de>
4384
4385         PR tree-optimization/71253
4386         * cfganal.h (control_dependences): Make robust against edge
4387         and BB removal.
4388         (control_dependences::control_dependences): Remove edge_list argument.
4389         (control_dependences::get_edge): Remove.
4390         (control_dependences::get_edge_src): Add.
4391         (control_dependences::get_edge_dest): Likewise.
4392         (control_dependences::m_el): Make a vector of edge src/dest index.
4393         * cfganal.c (control_dependences::find_control_dependence): Adjust.
4394         (control_dependences::control_dependences): Likewise.
4395         (control_dependences::~control_dependence): Likewise.
4396         (control_dependences::get_edge): Remove.
4397         (control_dependences::get_edge_src): Add.
4398         (control_dependences::get_edge_dest): Likewise.
4399         * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Use
4400         get_edge_src.
4401         (perform_tree_ssa_dce): Adjust.
4402         * tree-loop-distribution.c (create_edge_for_control_dependence): Use
4403         get_edge_src.
4404         (pass_loop_distribution::execute): Adjust.  Do loop destroying
4405         conditional on changed.
4406
4407 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4408
4409         PR target/69857
4410         * config/arm/arm.c (gen_operands_ldrd_strd): Remove bogus early
4411         return.  Reindent transformation comment and mention the ARM state
4412         behavior.
4413
4414 2016-05-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
4415
4416         PR middle-end/71252
4417         * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Add stmt_to_insert
4418         after build_and_add_sum creates new use stmt.
4419
4420 2016-05-24  Richard Sandiford  <richard.sandiford@arm.com>
4421
4422         * tree-vect-stmts.c (vectorizable_load): Reorder checks so that
4423         load_lanes/grouped_load classification comes first.  Don't check
4424         whether the vectorization factor is a multiple of the group size
4425         for load_lanes.
4426
4427 2016-05-24  Richard Sandiford  <richard.sandiford@arm.com>
4428
4429         * tree-vect-data-refs.c (vect_analyze_group_access_1): Set
4430         GROUP_GAP for single-element interleaving.
4431         * tree-vect-stmts.c (vectorizable_load): Remove force_peeling
4432         variable.
4433
4434 2016-05-24  Richard Biener  <rguenther@suse.de>
4435
4436         PR middle-end/70434
4437         PR c/69504
4438         * tree-ssa.c (non_rewritable_mem_ref_base): Make sure to mark
4439         bases which are accessed with non-invariant indices.
4440         * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Re-write
4441         constant index ARRAY_REFs of vectors into BIT_FIELD_REFs.
4442
4443 2016-05-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
4444
4445         PR middle-end/71170
4446         * tree-ssa-reassoc.c (struct operand_entry): Add field stmt_to_insert.
4447         (add_to_ops_vec): Add stmt_to_insert.
4448         (add_repeat_to_ops_vec): Init stmt_to_insert.
4449         (insert_stmt_before_use): New.
4450         (transform_add_to_multiply): Remove mult_stmt insertion and add it
4451         to ops vector.
4452         (get_ops): Init stmt_to_insert.
4453         (maybe_optimize_range_tests): Likewise.
4454         (rewrite_expr_tree): Insert stmt_to_insert before use stmt.
4455         (rewrite_expr_tree_parallel): Likewise.
4456         (reassociate_bb): Likewise.
4457
4458 2016-05-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
4459
4460         PR target/71201
4461         * config/rs6000/altivec.md (altivec_vperm_<mode>_internal): Drop
4462         ISA 3.0 xxperm fusion alternative.
4463         (altivec_vperm_v8hiv16qi): Likewise.
4464         (altivec_vperm_<mode>_uns_internal): Likewise.
4465         (vperm_v8hiv4si): Likewise.
4466         (vperm_v16qiv8hi): Likewise.
4467
4468 2016-05-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
4469             Kelvin Nilsen  <kelvin@gcc.gnu.org>
4470
4471         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate
4472         vpermr/xxpermr on ISA 3.0.
4473         (altivec_expand_vec_perm_le): Likewise.
4474         * config/rs6000/altivec.md (UNSPEC_VPERMR): New unspec.
4475         (altivec_vpermr_<mode>_internal): Add VPERMR/XXPERMR support for
4476         ISA 3.0.
4477
4478 2016-05-23  Uros Bizjak  <ubizjak@gmail.com>
4479
4480         * config/i386/i386.h (IS_STACK_MODE): Enable for
4481         TARGET_MIX_SSE_I387.  Rewrite using X87_FLOAT_MODE_P and
4482         SSE_FLOAT_MODE_P macros.
4483         * config/i386/i386.c (ix86_preferred_reload_class): Use
4484         IS_STACK_MODE, INTEGER_CLASS_P, FLOAT_CLASS_P and Q_CLASS_P macros.
4485         Cleanup regclass processing for CONST_DOUBLE_P.
4486         (ix86_preferred_output_reload_class): Use IS_STACK_MODE macro.
4487         (ix86_rtx_costs): Remove redundant TARGET_80387 check
4488         with IS_STACK_MODE macro.
4489         * config/i386/i386.md: Replace SSE_FLOAT_MODE_P (DFmode)
4490         with TARGET_SSE2.
4491         (*movdf_internal): Use IS_STACK_MODE macro.
4492         (*movsf_internal): Ditto.
4493
4494 2016-05-23  Marc Glisse  <marc.glisse@inria.fr>
4495
4496         * match.pd (a * (1 << b), ~x & ~y, ~X ^ ~Y, (X ^ Y) ^ Y, ~ (-A),
4497         ~ (A - 1), ~(~X >> Y), ~(~X >>r Y)): Relax constraints.
4498
4499 2016-05-23  Jeff Law  <law@redhat.com>
4500
4501         * tree-ssa-threadbackward.c (profitable_jump_thread_path): New function
4502         extracted from ...
4503         (fsm_find_control_statement_thread_paths): Call it.
4504
4505 2016-05-23  Martin Jambor  <mjambor@suse.cz>
4506
4507         PR ipa/71234
4508         * ipa-cp.c (ipa_get_indirect_edge_target_1): Only check value of
4509         from_global_constant if t is not NULL.
4510
4511 2016-05-23  Marek Polacek  <polacek@redhat.com>
4512
4513         PR c/49859
4514         * common.opt (Wswitch-unreachable): New option.
4515         * doc/invoke.texi: Document -Wswitch-unreachable.
4516         * gimplify.c (gimplify_switch_expr): Implement the -Wswitch-unreachable
4517         warning.
4518
4519 2016-05-23  Bin Cheng  <bin.cheng@arm.com>
4520
4521         * tree-ssa-address.c (copy_ref_info): Check NULL TMR_STEP when
4522         TMR_INDEX is non-NULL.
4523
4524 2016-05-23  Richard Biener  <rguenther@suse.de>
4525
4526         PR tree-optimization/71230
4527         * tree-ssa-reassoc.c (acceptable_pow_call): Move initial condition...
4528         (try_special_add_to_ops): ... here.  Always test for single-use.
4529
4530 2016-05-23  Martin Jambor  <mjambor@suse.cz>
4531
4532         * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Create an empty
4533         default block if a PHI node in the original one would be resized.
4534
4535 2016-05-23  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
4536
4537         PR tree-optimization/58135
4538         * tree-vect-slp.c: When group size is not multiple
4539         of vector size, allow splitting of store group at
4540         vector boundary.
4541
4542 2016-05-23  Christophe Lyon  <christophe.lyon@linaro.org>
4543
4544         * config/arm/arm_neon.h (vtst_p16, vtstq_p16): New.
4545
4546 2016-05-22  Jakub Jelinek  <jakub@redhat.com>
4547
4548         * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
4549         vec_set_hi_<mode><mask_name>): Add && <mask_avx512dq_condition>
4550         condition.  For !TARGET_AVX512DQ, emit 32x4 instruction instead
4551         of 64x2.
4552
4553         * config/i386/sse.md (vec_set_lo_v16hi, vec_set_hi_v16hi,
4554         vec_set_lo_v32qi, vec_set_hi_v32qi): Add alternative with
4555         v constraint instead of x and vinserti32x4 insn.
4556
4557         * config/i386/sse.md (i128vldq): New mode iterator.
4558         (avx2_vbroadcasti128_<mode>, avx_vbroadcastf128_<mode>): Add
4559         avx512dq and avx512vl alternatives.
4560
4561         * config/i386/sse.md (avx2_vec_dupv4df): Use v instead of x
4562         constraint, use maybe_evex prefix instead of vex.
4563         (vec_dupv4sf): Use v constraint instead of x for output
4564         operand except for noavx alternative, use Yv constraint
4565         instead of x for input.  Use maybe_evex prefix instead of vex.
4566         (*vec_dupv4si): Likewise.
4567         (*vec_dupv2di): Likewise.
4568
4569 2016-05-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
4570
4571         PR middle-end/40921
4572         * tree-ssa-reassoc.c (try_special_add_to_ops): New.
4573         (linearize_expr_tree): Call try_special_add_to_ops.
4574         (reassociate_bb): Convert MULT_EXPR by (-1) to NEGATE_EXPR.
4575
4576 2016-05-21  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
4577
4578         * config/avr/avr.c (avr_expand_prologue): Add INCOMING_FRAME_SP_OFFSET
4579         to computed stack_usage.
4580
4581 2016-05-21  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
4582
4583         PR target/71103
4584         * config/avr/avr.md (define_expand "mov<mode>"): If the source
4585         operand is subreg (symbol_ref) then move the symbol ref to register.
4586
4587 2016-05-21  Jan Hubicka  <hubicka@ucw.cz>
4588
4589         * tree.c (array_at_struct_end_p): Look through MEM_REF.
4590
4591 2016-05-21  Kugan Vivekanandarajah  <kuganv@linaro.org>
4592
4593         PR middle-end/71179
4594         * tree-ssa-reassoc.c (transform_add_to_multiply): Disallow float
4595         VECTOR type.
4596
4597 2016-05-20  Eric Botcazou  <ebotcazou@adacore.com>
4598
4599         * tree-vrp.c (compare_values_warnv): Simplify handling of symbolic
4600         ranges by calling get_single_symbol and tidy up.  Look more closely
4601         into NAME + CST1 vs CST2 comparisons if type overflow is undefined.
4602
4603 2016-05-20  Jeff Law  <law@redhat.com>
4604
4605         * bitmap.c (bitmap_find_bit): Remove useless test.
4606
4607 2016-05-20  Segher Boessenkool  <segher@kernel.crashing.org>
4608
4609         * function.c (thread_prologue_and_epilogue_insns): Commit the
4610         insertion of the epilogue.
4611
4612 2016-05-20  Martin Jambor  <mjambor@suse.cz>
4613
4614         PR tree-optimization/70884
4615         * tree-sra.c (initialize_constant_pool_replacements): Do not check
4616         should_scalarize_away_bitmap and cannot_scalarize_away_bitmap bits.
4617         (sort_and_splice_var_accesses): Do not consider multiple scalar reads
4618         of constant pool data as a reason for scalarization.
4619
4620 2016-05-20  Eric Botcazou  <ebotcazou@adacore.com>
4621
4622         * config/arm/arm.c (arm_expand_prologue): Set the stack usage to 0
4623         for naked functions.
4624         (thumb1_expand_prologue): Likewise.
4625
4626 2016-05-20  Nathan Sidwell  <nathan@acm.org>
4627
4628         * config/nvptx/nptx.c (nvptx_option_override): Only set
4629         flag_toplevel_reorder, if not explicitly specified.  Set
4630         flag_no_common, unless explicitly specified.
4631
4632 2016-05-20  David Malcolm  <dmalcolm@redhat.com>
4633
4634         * calls.c (can_implement_as_sibling_call_p): Mark param
4635         reg_parm_stack_space with ATTRIBUTE_UNUSED.
4636
4637 2016-05-20  Uros Bizjak  <ubizjak@gmail.com>
4638
4639         * config/i386/i386.c (ix86_rtx_costs) <case CONST_DOUBLE>:
4640         Use IS_STACK_MODE when calculating cost of standard 80387 constants.
4641         Fallthru to CONST_VECTOR case to calculate cost of standard SSE
4642         constants.
4643         <case CONST_WIDE_INT>: Calculate cost of (MEM (SYMBOL_REF)).
4644         (ix86_legitimate_constant_p): Use CASE_CONST_SCALAR_INT
4645         and CASE_CONST_ANY.
4646
4647 2016-05-20  Cesar Philippidis  <cesar@codesourcery.com>
4648
4649         * config/nvptx/nvptx.md (sincossf3): New pattern.
4650
4651 2016-05-20  David Malcolm  <dmalcolm@redhat.com>
4652
4653         * calls.c (maybe_complain_about_tail_call): New function.
4654         (initialize_argument_information): Call
4655         maybe_complain_about_tail_call when clearing *may_tailcall.
4656         (can_implement_as_sibling_call_p): Call
4657         maybe_complain_about_tail_call when returning false.
4658         (expand_call): Read CALL_EXPR_MUST_TAIL_CALL and, if set,
4659         ensure try_tail_call is set.  Call maybe_complain_about_tail_call
4660         if tail-call optimization fails.
4661         * cfgexpand.c (expand_call_stmt): Initialize
4662         CALL_EXPR_MUST_TAIL_CALL from gimple_call_must_tail_p.
4663         * gimple-pretty-print.c (dump_gimple_call): Dump
4664         gimple_call_must_tail_p.
4665         * gimple.c (gimple_build_call_from_tree): Call
4666         gimple_call_set_must_tail with the value of
4667         CALL_EXPR_MUST_TAIL_CALL.
4668         * gimple.h (enum gf_mask): Add GF_CALL_MUST_TAIL_CALL.
4669         (gimple_call_set_must_tail): New function.
4670         (gimple_call_must_tail_p): New function.
4671         * print-tree.c (print_node): Update printing of TREE_STATIC
4672         to reflect its use for CALL_EXPR_MUST_TAIL_CALL.
4673         * tree-core.h (struct tree_base): Add MUST_TAIL_CALL to the
4674         trailing comment listing applicable flags.
4675         * tree.h (CALL_EXPR_MUST_TAIL_CALL): New macro.
4676
4677 2016-05-20  David Malcolm  <dmalcolm@redhat.com>
4678
4679         * calls.c (expand_call): Move "Rest of purposes for tail call
4680         optimizations to fail" to...
4681         (can_implement_as_sibling_call_p): ...this new function, and
4682         split into multiple "if" statements.
4683
4684 2016-05-20  Jan Hubicka  <hubicka@ucw.cz>
4685
4686         * cfgloop.h (expected_loop_iterations_unbounded,
4687         expected_loop_iterations): Unconstify.
4688         * cfgloopanal.c (expected_loop_iterations_unbounded): Sanity check the
4689         profile with known upper bound; return 3 when profile is absent.
4690         (expected_loop_iterations): Update.
4691
4692 2016-05-20  Jan Hubicka  <hubicka@ucw.cz>
4693
4694         * loop-doloop.c (doloop_optimize): Use get_estimated_loop_iterations_int
4695         and get_max_loop_iterations_int.
4696
4697 2016-05-20  Jan Hubicka  <hubicka@ucw.cz>
4698
4699         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can not produce
4700         realistic upper bounds here.
4701
4702 2016-05-20  Jakub Jelinek  <jakub@redhat.com>
4703
4704         PR c++/71210
4705         * gimple-fold.c (gimple_fold_call): Do not remove lhs of noreturn
4706         calls if the LHS is variable length or has addressable type.
4707         If targets[0]->decl is a noreturn call with void return type and
4708         zero arguments, adjust fntype and remove lhs in that case.
4709
4710 2016-05-20  Marc Glisse  <marc.glisse@inria.fr>
4711
4712         PR tree-optimization/71079
4713         PR tree-optimization/71206
4714         * match.pd ((X ^ Y) ^ (X ^ Z)): Convert the arguments.
4715
4716 2016-05-20  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
4717
4718         * tree-vectorizer.c (get_vec_alignment_for_decl): New static function.
4719         (get_vec_alignment_for_array_decl): Likewise.
4720         (get_vec_alignment_for_record_decl): Likewise.
4721         (increase_alignment::execute): Move code to find alignment to
4722         get_vec_alignment_for_array_decl and call get_vec_alignment_for_decl.
4723         (type_align_map): New hash_map.
4724
4725 2016-05-20  Richard Guenther  <rguenther@suse.de>
4726
4727         PR tree-optimization/29756
4728         * tree.def (BIT_INSERT_EXPR): New tcc_expression tree code.
4729         * expr.c (expand_expr_real_2): Handle BIT_INSERT_EXPR.
4730         * fold-const.c (operand_equal_p): Likewise.
4731         (fold_ternary_loc): Add constant folding of BIT_INSERT_EXPR.
4732         * gimplify.c (gimplify_expr): Handle BIT_INSERT_EXPR.
4733         * tree-inline.c (estimate_operator_cost): Likewise.
4734         * tree-pretty-print.c (dump_generic_node): Likewise.
4735         * tree-ssa-operands.c (get_expr_operands): Likewise.
4736         * cfgexpand.c (expand_debug_expr): Likewise.
4737         * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
4738         * gimple.c (get_gimple_rhs_num_ops): Handle BIT_INSERT_EXPR.
4739         * tree-cfg.c (verify_gimple_assign_ternary): Verify BIT_INSERT_EXPR.
4740         * tree-ssa.c (non_rewritable_lvalue_p): We can rewrite
4741         vector inserts using BIT_FIELD_REF or MEM_REF on the lhs.
4742         (execute_update_addresses_taken): Do it.
4743
4744 2016-05-20  Richard Biener  <rguenther@suse.de>
4745
4746         PR tree-optimization/71185
4747         * tree-ssa-loop-prefetch.c (gather_memory_references): Drop
4748         register operations.
4749
4750 2016-05-20  Richard Biener  <rguenther@suse.de>
4751
4752         * tree-if-conv.c (add_bb_predicate_gimplified_stmts): Use
4753         gimple_seq_add_seq_without_update.
4754         (release_bb_predicate): Assert we have no operands to free.
4755         (if_convertible_loop_p_1): Calculate post dominators later.
4756         Do not free BB predicates here.
4757         (combine_blocks): Do not recompute BB predicates.
4758         (version_loop_for_if_conversion): Save BB predicates around
4759         loop versioning.
4760
4761 2016-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
4762
4763         * function.c (make_epilogue_seq): Remove epilogue_end parameter.
4764         (thread_prologue_and_epilogue_insns): Remove bb_flags.  Restructure
4765         code.  Ignore sibcalls on EDGE_IGNORE edges.
4766         * shrink-wrap.c (handle_simple_exit): New function.  Set EDGE_IGNORE
4767         on edges for sibcalls that run without prologue.  The rest of the
4768         function is combined from...
4769         (fix_fake_fallthrough_edge): ... this, and ...
4770         (try_shrink_wrapping): ... a part of this.  Remove the bb_with
4771         function argument, make it a local variable.
4772
4773 2016-05-19  Sandra Loosemore  <sandra@codesourcery.com>
4774
4775         * config/i386/cygming.h (DWARF2_UNWIND_INFO): Allow
4776         --disable-sjlj-exceptions for TARGET_BI_ARCH to select DWARF-2 EH
4777         for 32-bit mode and SEH for 64-bit.
4778         * config/i386/mingw32.h (SHARED_LIBGCC_UNDEFS_SPEC): Handle
4779         TARGET_64BIT_DEFAULT.
4780
4781 2016-05-19  Ryan Burn  <contact@rnburn.com>
4782
4783         * Makefile.in (GTFILES): Add cilk.h and cilk-common.c.
4784         * gengtype.c (open_base_files): Add cilk.h to ifiles.
4785
4786 2016-05-19  Uros Bizjak  <ubizjak@gmail.com>
4787
4788         * sched-deps.c (sched_analyze_2) <case TRAP_IF>: Also
4789         force pending loads from memory.
4790
4791 2016-05-19  Kelvin Nilsen  <kelvin@gcc.gnu.org>
4792
4793         * config/rs6000/altivec.md (UNSPEC_DARN): New unspec constant.
4794         (UNSPEC_DARN_32): New unspec constant.
4795         (UNSPEC_DARN_RAW): New unspec constant.
4796         (darn_32): New instruction.
4797         (darn_raw): New instruction.
4798         (darn): New instruction.
4799         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_0): Add
4800         support and documentation for this macro.
4801         (BU_P9_MISC_1): New macro definition.
4802         (BU_P9_64BIT_MISC_0): New macro definition.
4803         (BU_P9_MISC_0): New macro definition.
4804         (darn_32): New builtin definition.
4805         (darn_raw): New builtin definition.
4806         (darn): New builtin definition.
4807         * config/rs6000/rs6000.c: Add #define RS6000_BUILTIN_0 and #undef
4808         RS6000_BUILTIN_0 directives to surround each occurrence of
4809         #include "rs6000-builtin.def".
4810         (rs6000_builtin_mask_calculate): Add in the RS6000_BTM_MODULO and
4811         RS6000_BTM_64BIT flags to the returned mask, depending on
4812         configuration.
4813         (def_builtin): Correct an error in the assignments made to the
4814         debugging variable attr_string.
4815         (rs6000_expand_builtin): Add support for no-operand built-in
4816         functions.
4817         (builtin_function_type): Remove fatal_error assertion that is no
4818         longer valid.
4819         (rs6000_common_init_builtins): Add support for no-operand built-in
4820         functions.
4821         * config/rs6000/rs6000.h (RS6000_BTM_MODULO): New macro
4822         definition.
4823         (RS6000_BTM_PURE): Enhance comment to clarify intent of this flag
4824         definition.
4825         (RS6000_BTM_64BIT): New macro definition.
4826         * doc/extend.texi: Document __builtin_darn (void),
4827         __builtin_darn_raw (void), and __builtin_darn_32 (void) built-in
4828         functions.
4829
4830 2016-05-19  Jan Hubicka  <hubicka@ucw.cz>
4831
4832         * tree-vect-loop.c (vect_analyze_loop_2): Use also
4833         max_loop_iterations_int.
4834
4835 2016-05-19  Marek Polacek  <polacek@redhat.com>
4836
4837         PR tree-optimization/71031
4838         * tree-vrp.c (extract_range_from_binary_expr_1): Turn assert into a
4839         condition and adjust the code a bit.
4840
4841 2016-05-19  Martin Liska  <mliska@suse.cz>
4842
4843         * tree-vect-stmts.c (vectorizable_simd_clone_call): Utilize
4844         auto_vec instead of vec.
4845
4846 2016-05-19  Martin Liska  <mliska@suse.cz>
4847
4848         * tree-parloops.c (oacc_entry_exit_ok): Release a vector.
4849
4850 2016-05-19  Martin Liska  <mliska@suse.cz>
4851
4852         * tree-if-conv.c (ifcvt_repair_bool_pattern): Utilize auto_vecs.
4853
4854 2016-05-19  Martin Liska  <mliska@suse.cz>
4855
4856         * ipa-pure-const.c (set_function_state): Remove an existing
4857         funct_state.
4858         (remove_node_data): Do not free it as it's released
4859         in set_function_state.
4860
4861 2016-05-19  Martin Liska  <mliska@suse.cz>
4862
4863         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Release
4864         bitmap.
4865
4866 2016-05-19  Martin Liska  <mliska@suse.cz>
4867
4868         * omp-simd-clone.c (simd_clone_adjust): Release vector.
4869
4870 2016-05-19  Martin Liska  <mliska@suse.cz>
4871
4872         * tree-ssa-reassoc.c (eliminate_duplicate_pair): Truncate
4873         an auto_vec instead of re-creating it.
4874
4875 2016-05-19  Martin Liska  <mliska@suse.cz>
4876
4877         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Use
4878         auto_vec instead of vec.
4879
4880 2016-05-19  Martin Liska  <mliska@suse.cz>
4881
4882         * lto-section-in.c (lto_get_section_data): Call
4883         lto_check_version with additional argument.
4884         * lto-streamer.c (lto_check_version): Add new argument.
4885         * lto-streamer.h (lto_check_version): Likewise.
4886
4887 2016-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4888
4889         * config/arm/arm.c (arm_new_rtx_costs, SIGN_EXTEND case):
4890         Don't add cost of inner memory when handling sign-extended loads.
4891
4892 2016-05-19  Ilya Enkovich  <ilya.enkovich@intel.com>
4893
4894         PR rtl-optimization/71148
4895         * cse.c (cse_main): Free dominance info.
4896         (rest_of_handle_cse): Don't free dominance info.
4897         (rest_of_handle_cse2): Likewise.
4898         (rest_of_handle_cse_after_global_opts): Likewise.
4899
4900 2016-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4901
4902         PR target/71056
4903         * config/arm/arm-builtins.c (arm_builtin_vectorized_function): Return
4904         NULL_TREE early if NEON is not available.  Remove now redundant check
4905         in ARM_CHECK_BUILTIN_MODE.
4906
4907 2016-05-19  Maxim Ostapenko  <m.ostapenko@samsung.com>
4908
4909         PR sanitizer/64354
4910         * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Add new
4911         builtin __SANITIZE_THREAD__ macros for fsanitize=thread switch.
4912         * doc/cpp.texi: Document new macros.
4913
4914 2016-05-19 Bin Cheng  <bin.cheng@arm.com>
4915
4916         PR tree-optimization/69848
4917         * tree-vect-loop.c (vectorizable_reduction): Don't factor
4918         comparison expr out of VEC_COND_EXPR for COND_REDUCTION.
4919
4920 2016-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
4921
4922         * function.c (thread_prologue_and_epilogue_insn): Move the
4923         "goto epilogue_done" one block later.
4924
4925 2016-05-19  Richard Biener  <rguenther@suse.de>
4926
4927         PR tree-optimization/70729
4928         * passes.def: Move LIM pass before PRE.  Remove no longer
4929         required copyprop and move first DCE out of the loop pipeline.
4930
4931 2016-05-18  David Malcolm  <dmalcolm@redhat.com>
4932
4933         PR driver/69265
4934         * Makefile.in (GCC_OBJS): Move spellcheck.o to...
4935         (OBJS-libcommon-target): ...here.
4936         * opts-common.c: Include spellcheck.h.
4937         (cmdline_handle_error): Build a vec of valid options and use it
4938         to suggest provide hints for misspelled arguments.
4939
4940 2016-05-18  Jakub Jelinek  <jakub@redhat.com>
4941
4942         PR c++/71100
4943         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Don't drop
4944         lhs if it has TREE_ADDRESSABLE type.
4945
4946 2016-05-18  Uros Bizjak  <ubizjak@gmail.com>
4947
4948         PR target/71145
4949         * config/alpha/alpha.md (trap): Add (use (reg:DI 29)).
4950         (*exception_receiver_1): Return "#" for TARGET_EXPLICIT_RELOCS.
4951
4952 2016-05-18  Martin Jambor  <mjambor@suse.cz>
4953
4954         PR ipa/69708
4955         * ipa-cp.c (ipa_get_jf_pass_through_result): Allow non-ip constant
4956         input for NOP_EXPR pass-through functions.
4957         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Allow
4958         aggregate global constant VAR_DECLs in constant jump functions.
4959
4960 2016-05-18  Martin Jambor  <mjambor@suse.cz>
4961
4962         PR ipa/69708
4963         * ipa-prop.c (parm_preserved_before_stmt_p): Return true for loads
4964         from TREE_READONLY parameters.
4965
4966 2016-05-18  Martin Jambor  <mjambor@suse.cz>
4967
4968         PR ipa/69708
4969         * cgraph.h (cgraph_indirect_call_info): New field
4970         guaranteed_unmodified.
4971         * ipa-cp.c (ipa_get_indirect_edge_target_1): Also pass parameter value
4972         to ipa_find_agg_cst_for_param, check guaranteed_unmodified when
4973         appropriate.
4974         * ipa-inline-analysis.c (evaluate_conditions_for_known_args): Also
4975         pass the parameter value to ipa_find_agg_cst_for_param.
4976         * ipa-prop.c (ipa_load_from_parm_agg): New parameter
4977         guaranteed_unmodified, store AA results there instead of bailing out
4978         if present.
4979         (ipa_note_param_call): Also initialize guaranteed_unmodified flag.
4980         (ipa_analyze_indirect_call_uses): Also set guaranteed_unmodified flag.
4981         (find_constructor_constant_at_offset): New function.
4982         (ipa_find_agg_cst_from_init): Likewise.
4983         (ipa_find_agg_cst_for_param): Also seearch for aggregate values in
4984         static initializers of contants, report back through a new paameter
4985         from_global_constant if that was the case.
4986         (try_make_edge_direct_simple_call): Also pass parameter value to
4987         ipa_find_agg_cst_for_param, check guaranteed_unmodified when
4988         appropriate.
4989         (ipa_write_indirect_edge_info): Stream new flag guaranteed_unmodified.
4990         (ipa_read_indirect_edge_info): Likewise.
4991         * ipa-prop.h (ipa_find_agg_cst_for_param): Update declaration.
4992         (ipa_load_from_parm_agg): Likewise.
4993
4994 2016-05-18  Jiong Wang  <jiong.wang@arm.com>
4995
4996         PR rtl-optimization/71150
4997         * lra-constraint (process_addr_reg): Guard "in_class_p" with REG_P
4998         check.
4999
5000 2016-05-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
5001
5002         PR target/70915
5003         * config/rs6000/constraints.md (wE constraint): New constraint
5004         for a vector constant that can be loaded with XXSPLTIB.
5005         (wM constraint): New constraint for a vector constant of a 1's.
5006         (wS constraint): New constraint for a vector constant that can be
5007         loaded with XXSPLTIB and a vector sign extend instruction.
5008         * config/rs6000/predicates.md (xxspltib_constant_split): New
5009         predicates for wE/wS constraints.
5010         (xxspltib_constant_nosplit): Likewise.
5011         (easy_vector_constant): Add support for constants that can be
5012         loaded via XXSPLTIB.
5013         (all_ones_constant): New predicate for vector constant with all
5014         1's set.
5015         (splat_input_operand): Add support for ISA 3.0 word splat operations.
5016         * config/rs6000/rs6000.c (xxspltib_constant_p): New function to
5017         return if a constant can be loaded with the ISA 3.0 XXSPLTIB
5018         instruction and possibly with a sign extension.
5019         (output_vec_const_move): Add support for XXSPLTIB. If we are
5020         loading up 0/-1 into Altivec registers, prefer using VSPLTISW
5021         instead of XXLXOR/XXLORC.
5022         (rs6000_expand_vector_init): Add support for ISA 3.0 word splat
5023         operations.
5024         (rs6000_legitimize_reload_address): Likewise.
5025         (rs6000_output_move_128bit): Use output_vec_const_move to emit
5026         constants.
5027         * config/rs6000/vsx.md (VSX_M): Add TImode (if -mvsx-timode) and
5028         combine VSX_M and VSX_M2 into one iterator.
5029         (VSX_M2): Likewise.
5030         (VSINT_84): New iterators for loading constants with XXSPLTIB.
5031         (VSINT_842): Likewise.
5032         (UNSPEC_VSX_SIGN_EXTEND): New UNSPEC.
5033         (xxspltib_v16qi): New insns to load up constants with the ISA 3.0
5034         XXSPLTIB instruction.
5035         (xxspltib_<mode>_nosplit): Likewise.
5036         (xxspltib_<mode>_split): New insn to load up constants with
5037         XXSPLTIB and a sign extend instruction.
5038         (vsx_mov<mode>): Replace single move that handled all vector types
5039         with separate 32-bit and 64-bit moves.  Combine the movti_<bit>
5040         moves (when -mvsx-timode is in effect) into the main vector
5041         moves.  Eliminate separate moves for <VSr> <VSa>, where the
5042         preferred register class (<VSr>) is listed first, and the
5043         secondary register class (<VSa>) is listed second with a '?' to
5044         discourage use.  Prefer loading 0/-1 in any VSX register for ISA
5045         3.0, and Altivec registers for ISA 2.06/2.07 (PR target/70915) so
5046         that if the register was involved in a slow operation, the
5047         clear/set operation does not wait for the slow operation to
5048         finish.  Adjust the length attributes for 32-bit mode.  Use
5049         rs6000_output_move_128bit and drop the use of the string
5050         instructions for 32-bit movti when -mvsx-timode is in effect.  Use
5051         spacing so that the alternatives and attributes don't generate
5052         long lines, and put things in columns, so that it is easier to
5053         match up the operands and attributes with the insn alternatives.
5054         (vsx_mov<mode>_64bit): Likewise.
5055         (vsx_mov<mode>_32bit): Likewise.
5056         (vsx_movti_64bit): Fold movti into normal vector moves.
5057         (vsx_movti_32bit): Likewise.
5058         (vsx_splat_<mode>, V4SI/V4SF modes): Add support for ISA 3.0 word
5059         splat instructions.
5060         (vsx_splat_v4si_internal): Likewise.
5061         (vsx_splat_v4sf_internal): Likewise.
5062         (vector fusion peepholes): Use VSX_M instead of VSX_M2.
5063         (vsx_sign_extend_qi_<mode>): New ISA 3.0 instructions to sign
5064         extend vector elements.
5065         (vsx_sign_extend_hi_<mode>): Likewise.
5066         (vsx_sign_extend_si_v2di): Likewise.
5067         * config/rs6000/rs6000-protos.h (xxspltib_constant_p): Add
5068         declaration.
5069         * doc/md.texi (PowerPC constraints): Document the wE, wM, and wS
5070         constraints.  Add trailing period to wL documentation.
5071
5072 2016-05-18  Richard Sandiford  <richard.sandiford@arm.com>
5073
5074         PR middle-end/71020
5075         * tree-dfa.h (replace_abnormal_ssa_names): Declare.
5076         * tree-dfa.c (replace_abnormal_ssa_names): New function.
5077         * tree-call-cdce.c: Include tree-dfa.h.
5078         (can_guard_call_p): New function, extracted from...
5079         (can_use_internal_fn): ...here.
5080         (shrink_wrap_one_built_in_call_with_conds): Remove failure path
5081         and return void.
5082         (shrink_wrap_one_built_in_call): Likewise.
5083         (use_internal_fn): Likewise.
5084         (shrink_wrap_conditional_dead_built_in_calls): Update accordingly
5085         and return void.  Call replace_abnormal_ssa_names.
5086         (pass_call_cdce::execute): Check can_guard_call_p during the
5087         initial walk.  Assume shrink_wrap_conditional_dead_built_in_calls
5088         will always change something.
5089
5090 2016-05-18  Martin Jambor  <mjambor@suse.cz>
5091
5092         PR ipa/70646
5093         * ipa-prop.c (determine_locally_known_aggregate_parts): Bail out early
5094         if parameter PARAM_IPA_MAX_AGG_ITEMS is zero.
5095
5096 2016-05-18  Martin Jambor  <mjambor@suse.cz>
5097
5098         PR ipa/70646
5099         * ipa-inline.h (condition): New field size.
5100         * ipa-inline-analysis.c (add_condition): New parameter SIZE, use it
5101         for comaprison and store it into the new condition.
5102         (evaluate_conditions_for_known_args): Use condition size to check
5103         access sizes for all but CHANGED conditions.
5104         (unmodified_parm_1): New parameter size_p, store access size into it.
5105         (unmodified_parm): Likewise.
5106         (unmodified_parm_or_parm_agg_item): Likewise.
5107         (eliminated_by_inlining_prob): Pass NULL to unmodified_parm as size_p.
5108         (set_cond_stmt_execution_predicate): Extract access sizes and store
5109         them to conditions.
5110         (set_switch_stmt_execution_predicate): Likewise.
5111         (will_be_nonconstant_expr_predicate): Likewise.
5112         (will_be_nonconstant_predicate): Likewise.
5113         (inline_read_section): Stream condition size.
5114         (inline_write_summary): Likewise.
5115
5116 2016-05-18  Richard Biener  <rguenther@suse.de>
5117
5118         * tree-ssa-loop-im.c (determine_max_movement): Properly add
5119         condition cost to PHI cost instead of total_cost.
5120
5121 2016-05-18  Martin Liska  <mliska@suse.cz>
5122
5123         PR fortran/70856
5124         * ipa-icf.c (sem_variable::merge): Set DECL_PT_UID for
5125         merged variables.
5126
5127 2016-05-18  Richard Biener  <rguenther@suse.de>
5128
5129         * lto-streamer.h (LTO_major_version): Bump to 6.
5130
5131 2016-05-18  Segher Boessenkool  <segher@kernel.crashing.org>
5132
5133         * function.c (make_split_prologue_seq, make_prologue_seq,
5134         make_epilogue_seq): New functions, factored out from...
5135         (thread_prologue_and_epilogue_insns): Here.
5136
5137 2016-05-18  Segher Boessenkool  <segher@kernel.crashing.org>
5138
5139         * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
5140         cleanup_cfg with CLEANUP_EXPENSIVE after shrink-wrapping instead
5141         of before.  Add a comment.
5142
5143 2016-05-18 Bin Cheng  <bin.cheng@arm.com>
5144
5145         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check invariant
5146         expression pointer, not pointer to the pointer.
5147
5148 2016-05-18  Jakub Jelinek  <jakub@redhat.com>
5149
5150         * config/i386/sse.md (pbroadcast_evex_isa): New mode attr.
5151         (avx2_pbroadcast<mode>): Add another alternative with v instead
5152         of x constraints in it, using <pbroadcast_evex_isa> isa.
5153         (avx2_pbroadcast<mode>_1): Similarly, add two such alternatives.
5154
5155         * config/i386/sse.md (<ssse3_avx2>_palignr<mode>): Use
5156         constraint x instead of v in second alternative, add avx512bw
5157         alternative.
5158
5159         * config/i386/sse.md (<ssse3_avx2>_pshufb<mode>3<mask_name>): Use
5160         constraint x instead of v in second alternative, add avx512bw
5161         alternative.
5162
5163         * config/i386/sse.md (*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>): Use
5164         constraint x instead of v in second alternative, add avx512bw
5165         alternative.
5166
5167         * config/i386/sse.md (avx2_pmaddubsw256, ssse3_pmaddubsw128): Add
5168         avx512bw alternative.
5169
5170 2016-05-18  Kirill Yukhin  <kirill.yukhin@intel.com>
5171
5172         * config/i386/sse.md (define_insn "*andnot<mode>3"): Extend static
5173         array to 128 chars.
5174         (define_insn "*andnottf3"): Ditto.
5175         (define_insn "*<code><mode>3"/any_logic): Ditto.
5176         (define_insn "*<code>tf3"/any_logic): Ditto.
5177         (define_insn "sse2_storehpd"): Use Yv constraint for scalar
5178         operand to block AVX-512VL insn variant emit when it is not enabled.
5179
5180 2016-05-18  Kirill Yukhin  <kirill.yukhin@intel.com>
5181
5182         * config/i386/sse.md (define_insn "*vec_concatv2sf_sse4_1"): Use 'Yv'
5183         constraint fot SF mode.
5184
5185 2016-05-18  Petr Murzin  <petr.murzin@intel.com>
5186             Kirill Yukhin  <kirill.yukhin@intel.com>
5187
5188         * config/i386/sse.md (define_insn "srcp14<mode>"): Use proper operand
5189         modifiers.
5190         (define_insn "rsqrt14<mode>"): Ditto.
5191         (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
5192         (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
5193         (define_insn "avx512f_<code>v8div16qi2_mask_store"): Ditto.
5194         (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
5195         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"):
5196         Ditto.
5197         (define_insn "*avx512f_gatherdi<mode>"): Ditto.
5198         (define_insn "*avx512f_scatterdi<mode>"): Ditto.
5199         * config/i386/i386.c (ix86_print_operand): Expand check for size
5200         override codes for Intel syntax.
5201
5202 2016-05-18  Richard Biener  <rguenther@suse.de>
5203
5204         PR tree-optimization/71168
5205         * tree-loop-distribution.c (distribute_loop): Move *destroy_p
5206         initialization earlier.
5207
5208 2016-05-18  James Greenhalgh  <james.greenhalgh@arm.com>
5209
5210         * config/aarch64/aarch64-simd.md
5211         (aarch64_reduc_plus_internal<mode>): Rename to...
5212         (reduc_plus_scal): ...This, and remove previous implementation.
5213
5214 2016-05-18  Richard Biener  <rguenther@suse.de>
5215
5216         * passes.def: Put late dse and cd_dce in canonical order.
5217
5218 2016-05-17  Jan Hubicka  <hubicka@ucw.cz>
5219
5220         * ipa-inline-transform.c (preserve_function_body_p): Look for
5221         first non-thunk clone.
5222         (save_function_body): Save into first non-thunk.
5223         * lto-cgraph.c (lto_output_edge): When streaming thunk do not look
5224         up call stmt id.
5225         (lto_output_node): Inline thunks don't need body in every
5226         partition.
5227         * lto-streamer-in.c: Do not fixup thunk clones.
5228         * cgraphclones.c (cgraph_node::create_edge_including_clone): Skip
5229         thunks.
5230         * tree-inline.c (copy_bb): Be prepared for target node to be new after
5231         folding suceeds.
5232
5233 2016-05-17  Kugan Vivekanandarajah  <kuganv@linaro.org>
5234
5235         PR middle-end/63586
5236         * tree-ssa-reassoc.c (transform_add_to_multiply): New.
5237         (reassociate_bb): Call transform_add_to_multiply.
5238
5239 2016-05-17  Kugan Vivekanandarajah  <kuganv@linaro.org>
5240
5241         * config/aarch64/aarch64.c (all_extensions): Removed unused
5242         static variable.
5243
5244 2016-05-17  Nathan Sidwell  <nathan@acm.org>
5245
5246         * config/nvptx/nvptx.c (nvptx_function_arg_boundary): New.
5247         (TARGET_FUNCTION_ARG_BOUNDARY): Override.
5248
5249 2016-05-17  Mikhail Maltsev  <maltsevm@gmail.com>
5250
5251         PR tree-optimization/54579
5252         PR middle-end/55299
5253         * match.pd (~(~X >> Y), ~(~X >>r Y), ~(~X <<r Y)): New patterns.
5254
5255 2016-05-17  Marek Polacek  <polacek@redhat.com>
5256
5257         PR ipa/71146
5258         * tree-inline.c (expand_call_inline): Call
5259         maybe_remove_unused_call_args.
5260
5261 2016-05-17  Jim Wilson  <jim.wilson@linaro.org>
5262
5263         * doc/cpp.texi (__GNUC__): Major version changes are no longer rare.
5264         * doc/invoke.texi (-mnan=2008): Change signalling to signaling.
5265         * doc/md.texi (fmin@var{m}3): Likewise.
5266
5267 2016-05-17  Marc Glisse  <marc.glisse@inria.fr>
5268
5269         * match.pd (X & C): New transformation.
5270
5271 2016-05-17  Marc Glisse  <marc.glisse@inria.fr>
5272
5273         * match.pd (~X & Y): New transformation.
5274
5275 2016-05-17  Marc Glisse  <marc.glisse@inria.fr>
5276
5277         * tree-vrp.c (simplify_truth_ops_using_ranges): Set range
5278         information for new SSA_NAME.
5279         (simplify_conversion_using_ranges): Get range through get_range_info
5280         instead of get_value_range.
5281
5282 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
5283
5284         * config/aarch64/arm_neon.h (vmvn_s8): Reimplement using C operator.
5285         Remove inline assembly.
5286         (vmvn_s16): Likewise.
5287         (vmvn_s32): Likewise.
5288         (vmvn_u8): Likewise.
5289         (vmvn_u16): Likewise.
5290         (vmvn_u32): Likewise.
5291         (vmvnq_s8): Likewise.
5292         (vmvnq_s16): Likewise.
5293         (vmvnq_s32): Likewise.
5294         (vmvnq_u8): Likewise.
5295         (vmvnq_u16): Likewise.
5296         (vmvnq_u32): Likewise.
5297         (vmvn_p8): Likewise.
5298         (vmvnq_p16): Likewise.
5299
5300 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
5301
5302         * config/aarch64/aarch64-simd.md (vmul_n_f32): Remove inline assembly.
5303         Use builtin.
5304         (vmul_n_s16): Likewise.
5305         (vmul_n_s32): Likewise.
5306         (vmul_n_u16): Likewise.
5307         (vmul_n_u32): Likewise.
5308         (vmulq_n_f32): Likewise.
5309         (vmulq_n_f64): Likewise.
5310         (vmulq_n_s16): Likewise.
5311         (vmulq_n_s32): Likewise.
5312         (vmulq_n_u16): Likewise.
5313         (vmulq_n_u32): Likewise.
5314
5315 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
5316
5317         * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt_to_128df): Extend
5318         to all supported modes.  Rename to "*aarch64_mul3_elt_from_dup".
5319
5320 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
5321
5322         * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_to_128df): Rename
5323         to *aarch64_fma4_elt_from_dup<mode>.
5324         (*aarch64_fnma4_elt_to_128df): Rename to
5325         *aarch64_fnma4_elt_from_dup<mode>.
5326         * config/aarch64/arm_neon.h (vfma_n_f64): New.
5327         (vfms_n_f32): Likewise.
5328         (vfms_n_f64): Likewise.
5329         (vfmsq_n_f32): Likewise.
5330         (vfmsq_n_f64): Likewise.
5331
5332 2016-05-17  Gerald Pfeifer  <gerald@pfeifer.com>
5333
5334         * wide-int.h: Change fixed_wide_int_storage from class to struct.
5335
5336 2016-05-17  Richard Biener  <rguenther@suse.de>
5337
5338         PR tree-optimization/71132
5339         * tree-loop-distribution.c (create_rdg_cd_edges): Pass in loop.
5340         Only add control dependences for blocks in the loop.
5341         (build_rdg): Adjust.
5342         (generate_code_for_partition): Return whether loop should
5343         be destroyed and delay that.
5344         (distribute_loop): Likewise.
5345         (pass_loop_distribution::execute): Record loops to be destroyed
5346         and perform delayed destroying of loops.
5347
5348 2016-05-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5349
5350         PR target/70809
5351         * config/aarch64/aarch64-simd.md (aarch64_vmls<mode>): Delete.
5352
5353 2016-05-17  James Greenhalgh  <james.greenhalgh@arm.com>
5354
5355         * config/aarch64/aarch64-elf.h (ASM_OUTPUT_DEF): Delete.
5356
5357 2016-05-17  Ilya Enkovich  <ilya.enkovich@intel.com>
5358
5359         PR target/71114
5360         * config/i386/i386.c (dimode_scalar_chain::convert_op): Fix
5361         insertion point for instructions generated by validize_mem.
5362
5363 2016-05-17  James Greenhalgh  <james.greenhalgh@arm.com>
5364
5365         * config/aarch64/aarch64.c (SHIFT_COUNT_TRUNCATED): Wrap definition
5366         in brackets.
5367
5368 2016-05-17  James Greenhalgh  <james.greenhalgh@arm.com>
5369
5370         * config/aarch64/aarch64.c
5371         (aarch64_output_simd_mov_immediate): Make "buf_size" a variable
5372         rather than a macro.
5373
5374 2016-05-16  Wilco Dijkstra  <wdijkstr@arm.com>
5375
5376         * doc/invoke.texi (AArch64 Options): Various updates.
5377
5378 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
5379
5380         * ipa-inline-analysis.c (compute_inline_parameters): Disable inlinig
5381         into instrumentation thunks.
5382         * cif-code.def (CIF_CHKP): New.
5383
5384 2016-05-16  Uros Bizjak  <ubizjak@gmail.com>
5385
5386         * config/i386/xopintrin.h: Correct "unsinged" typo in the comments.
5387
5388 2016-05-16  Martin Jambor  <mjambor@suse.cz>
5389
5390         * hsa-gen.c (fillup_for_decl): Increase alignment to natural one.
5391         (get_symbol_for_decl): Sorry if a global symbol in under-aligned.
5392
5393 2016-05-16  Marek Polacek  <polacek@redhat.com>
5394
5395         * gimple.c (maybe_remove_unused_call_args): Fix typos in the
5396         commentary.
5397
5398 2016-05-16  Martin Jambor  <mjambor@suse.cz>
5399
5400         PR hsa/70857
5401         * omp-low.c (grid_expand_target_grid_body): Copy RESULT_DECL of
5402         the outlined kernel function.
5403
5404 2016-05-16  Robert Suchanek  <robert.suchanek@imgtec.com>
5405
5406         * config/mips/mips.h (ISA_HAS_LSA): Enable for -mmsa.
5407         (ISA_HAS_DLSA): Ditto.
5408
5409 2016-05-16  Matthew Fortune  <matthew.fortune@imgtec.com>
5410
5411         * config/mips/m5100.md (m51_int_load): Update the latency to 2.
5412
5413 2016-05-16  Nathan Sidwell  <nathan@acm.org>
5414
5415         * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): Revert.
5416         (nvptx_name_replacement): Restore.  Add comment.
5417         (write_fn_proto, write_fn_proto_from_insn,
5418         nvptx_output_call_insn): Restore
5419         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Delete.
5420
5421 2016-05-16  Wilco Dijkstra  <wdijkstr@arm.com>
5422
5423         * config/aarch64/aarch64.md
5424         (add<mode>3_compareC_cconly_imm): Remove use of %w.
5425         (add<mode>3_compareC_imm): Likewise.
5426         (<optab>si3_uxtw): Split into register and immediate variants.
5427         (andsi3_compare0_uxtw): Likewise.
5428         (and<mode>3_compare0): Likewise.
5429         (and<mode>3nr_compare0): Likewise.
5430         (stack_protect_test_<mode>): Don't use %x for memory operands.
5431
5432 2016-05-16  Matthew Fortune  <matthew.fortune@imgtec.com>
5433
5434         * config/mips/mips-cpus.def (p5600): Add multi-line brackets.
5435
5436 2016-05-16  Wilco Dijkstra  <wdijkstr@arm.com>
5437
5438         * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
5439         Split integer shifts into shift_reg and bfm.
5440         (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
5441         (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
5442         (ror<mode>3_insn): Likewise.
5443         (<optab>si3_insn_uxtw): Likewise.
5444         (<optab><mode>3_insn): Change to rotate_imm.
5445         (extr<mode>5_insn_alt): Likewise.
5446         (extrsi5_insn_uxtw): Likewise.
5447         (extrsi5_insn_uxtw_alt): Likewise.
5448
5449 2016-05-16  Matthew Wahab  <matthew.wahab@arm.com>
5450
5451         * doc/tm.texi: Regenerate.
5452         * doc/tm.texi.in (TARGET_INVALID_PARAMETER_TYPE): Remove.
5453         (TARGET_INVALID_RETURN_TYPE): Remove.
5454         * system.h: Poison TARGET_INVALID_PARAMETER_TYPE and
5455         TARGET_INVALID_RETURN_TYPE.
5456         * target.def (invalid_parameter_type): Remove.
5457         (invalid_return_type): Remove.
5458
5459 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
5460
5461         * ipa-inline-analysis.c (compute_inline_parameters): Be more reailistic
5462         on estimating thunk bodies; do not set inline_failed to CIF_THUNK for
5463         calls from thunk.
5464         * ipa-inline-transform.c (inline_call): When inlining into thunk produce
5465         gimple body.
5466         (preserve_function_body_p): No need to preserve function body
5467         * cif-codes.def (CIF_THUNK): Remove.
5468         * cgraphclones.c (duplicate_thunk_for_node): Thunks calls are inlinable.
5469
5470 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
5471
5472         * tree-inline.c (expand_call_inline): recurse after inlining thunk.
5473
5474 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
5475
5476         * tree.c (free_lang_data_in_decl): Also set target/optimization flags
5477         for thunks.
5478
5479 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
5480
5481         * ipa-inline.c (report_inline_failed_reason): Look into thunks, too
5482         (inline_small_functions): Do not look for function symbol when
5483         resetting caches.
5484
5485 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
5486
5487         * lto-cgraph.c (compute_ltrans_boundary, output_symtab): Fix handling
5488         of inline thunks
5489
5490 2016-05-16  Matthew Wahab  <matthew.wahab@arm.com>
5491             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5492             Jiong Wang  <jiong.wang@arm.com>
5493
5494         * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
5495         for __ARM_FP16_FORMAT_IEEE and __ARM_FP16_FORMAT_ALTERNATIVE.
5496         Define __ARM_FP16_ARGS when appropriate.
5497         * config/arm/arm.c (arm_invalid_parameter_type): Remove
5498         declaration.
5499         (arm_invalid_return_type): Likewise.
5500         (TARGET_INVALID_PARAMETER_TYPE): Remove.
5501         (TARGET_INVALID_RETURN_TYPE): Remove.
5502         (aapcs_vfp_sub_candidate): Allow HFmode.
5503         (aapcs_vfp_allocate): Add comment.  Support HFmode.
5504         (aapcs_vfp_allocate_return_reg): Likewise.
5505         (struct aapcs_cp_arg_layout): Slightly reword comments for
5506         is_return_candidate and allocate_return_reg.
5507         (output_mov_vfp): Update assert.
5508         (arm_hard_regno_mode_ok): Remove comment, update HF-mode
5509         condition.
5510         (arm_invalid_parameter_type): Remove.
5511         (amr_invalid_return_type): Remove.
5512         * config/arm/arm.h (TARGET_NEON_FP16): Fix definition.
5513         * config/arm/arm.md (*arm32_movhf): Disable for TARGET_VFP.
5514         * config/arm/vfp.md (*movhf_vfp): Enable for TARGET_VFP.
5515
5516 2016-05-16  Matthew Wahab  <matthew.wahab@arm.com>
5517
5518         * config/aarch64/aarch64.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
5519         * config/aarch64/arch64-protos.h
5520         (aarch64_legitimize_reload_address): Remove.
5521         * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
5522         Remove.
5523
5524 2016-05-16  Eric Botcazou  <ebotcazou@adacore.com>
5525
5526         * configure.ac: Add ACX_NONCANONICAL_HOST.
5527         * configure: Regenerate.
5528         * Makefile.in: Set host_noncanonical.
5529
5530 2016-05-14  Uros Bizjak  <ubizjak@gmail.com>
5531
5532         PR target/71097
5533         * config/i386/i386.md (*movtf_internal): Before register allocation,
5534         do not allow FP constants for CM_MEDIUM memory model, allow only
5535         standard FP constants for CM_LARGE and CM_LARGE_PIC models.
5536         (*movxf_internal): Ditto.
5537         (*movdf_internal): Ditto.
5538         (*movsf_internal): Ditto.
5539
5540 2016-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
5541
5542         PR rtl-optimization/67483
5543         * combine.c (make_compound_operation): Don't call extract_left_shift
5544         with negative shift amounts.
5545
5546 2016-05-13  Jakub Jelinek  <jakub@redhat.com>
5547
5548         PR bootstrap/71071
5549         * fold-const.c (fold_checksum_tree): Allow modification
5550         of TYPE_ALIAS_SET during folding.
5551
5552         * config/i386/i386.c (ix86_compute_frame_layout, ix86_expand_prologue,
5553         ix86_expand_split_stack_prologue): Use HOST_WIDE_INT_C macro.
5554         (ix86_split_to_parts): Likewise.  Fix up formatting.
5555
5556 2016-05-13  H.J. Lu  <hongjiu.lu@intel.com>
5557
5558         * tree-ssa-loop-ivopts.c (create_new_ivs): Cast to
5559         unsigned HOST_WIDE_INT with HOST_WIDE_INT_PRINT_UNSIGNED in
5560         printf format.
5561
5562 2016-05-13  Nathan Sidwell  <nathan@acm.org>
5563
5564         * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): New.
5565         (nvptx_name_replacement): Delete.
5566         (write_fn_proto, write_fn_proto_from_insn,
5567         nvptx_output_call_insn): Remove nvptx_name_replacement call.
5568         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Override.
5569         * langhooks.c (add_builtin_funcction_common): Call
5570         targetm.mangle_decl_assembler_name.
5571
5572         * config/nvptx/nvptx.c (write_fn_proto): Handle
5573         BUILT_IN_ATOMIC_COMPARE_EXCHANGE_n oddity.
5574
5575 2016-05-13  Martin Liska  <mliska@suse.cz>
5576
5577         * tree-ssa-loop-ivopts.c (create_new_ivs): Use HOST_WIDE_INT_PRINT_DEC
5578         and PRIu64 in printf format.
5579
5580 2016-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5581
5582         * tree-ssa-loop-ivanon.c (try_unroll_loop_completely): Typo fix in
5583         comment.
5584
5585 2016-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5586
5587         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
5588         Change --param max-completely-peeled-times to
5589         --param max-completely-peel-times in dump file printing.
5590
5591 2016-05-13  Richard Biener  <rguenther@suse.de>
5592
5593         PR tree-optimization/42587
5594         * tree-ssa-math-opts.c (perform_symbolic_merge): Handle BIT_FIELD_REF.
5595         (find_bswap_or_nop_1): Likewise.
5596         (bswap_replace): Likewise.
5597
5598 2016-05-13  Martin Liska  <mliska@suse.cz>
5599
5600         * tree-vect-patterns.c (vect_recog_mask_conversion_pattern):
5601         Initialize a variable with default value.
5602
5603 2016-05-13  Martin Liska  <mliska@suse.cz>
5604
5605         * doc/invoke.texi: Enhance explanation of error recovery
5606         of sanitizers.
5607
5608 2016-05-13  Martin Liska  <mliska@suse.cz>
5609
5610         * tree-ssa-loop-ivopts.c (avg_loop_niter): Fix coding style.
5611         (struct cost_pair): Change inv_expr_id (int) to inv_expr
5612         (iv_inv_expr_ent *).
5613         (struct iv_inv_expr_ent): Comment struct fields.
5614         (sort_iv_inv_expr_ent): New function.
5615         (struct ivopts_data): Rename inv_expr_id to max_inv_expr_id.
5616         (struct iv_ca): Replace used_inv_expr and num_used_inv_expr with
5617         a hash_map between iv_inv_expr_ent and number of usages.
5618         (niter_for_exit): Fix coding style.
5619         (tree_ssa_iv_optimize_init): Use renamed variable.
5620         (determine_base_object): Fix coding style.
5621         (alloc_iv): Likewise.
5622         (find_interesting_uses_outside): Likewise.
5623         (add_candidate_1): Likewise.
5624         (add_standard_iv_candidates): Likewise.
5625         (set_group_iv_cost): Replace inv_expr_id with inv_expr.
5626         (prepare_decl_rtl): Fix coding style.
5627         (get_address_cost): Likewise.
5628         (get_shiftadd_cost): Likewise.
5629         (force_expr_to_var_cost): Likewise.
5630         (compare_aff_trees): Likewise.
5631         (get_expr_id): Restructure the function.
5632         (get_loop_invariant_expr_id): Renamed to
5633         get_loop_invariant_expr.
5634         (get_computation_cost_at): Replace usage of inv_expr_id with
5635         inv_expr.
5636         (get_computation_cost): Likewise.
5637         (determine_group_iv_cost_generic): Likewise.
5638         (determine_group_iv_cost_address): Likewise.
5639         (iv_period): Fix coding style.
5640         (iv_elimination_compare_lt): Likewise.
5641         (may_eliminate_iv): Likewise.
5642         (determine_group_iv_cost_cond):  Replace usage of inv_expr_id with
5643         inv_expr.
5644         (determine_group_iv_costs): Dump invariant expressions.
5645         (iv_ca_recount_cost): Use the newly added hash_map.
5646         (iv_ca_set_remove_invariants): Fix coding style.
5647         (iv_ca_set_add_invariants): Fix coding style.
5648         (iv_ca_set_no_cp): Utilize the newly added hash_map for used
5649         invariants.
5650         (iv_ca_set_cp): Likewise.
5651         (iv_ca_new): Initialize the newly added hash_map and remove
5652         initialization of fields.
5653         (iv_ca_free): Delete the hash_map.
5654         (iv_ca_dump): Dump invariant expressions.
5655         (iv_ca_extend): Fix coding style.
5656         (try_add_cand_for): Likewise.
5657         (create_new_ivs): Dump information about # of avg iterations and
5658         # of used invariant expressions.
5659         (rewrite_use_compare): Fix coding style.
5660         (free_loop_data): Set default value for max_inv_expr_id.
5661
5662 2016-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
5663
5664         * cse.c (rest_of_handle_cse): Use cleanup_cfg
5665         returned value cse_cfg_altered computation.
5666         (rest_of_handle_cse2): Likewise.
5667         (rest_of_handle_cse_after_global_opts): Likewise.
5668
5669 2016-05-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5670
5671         PR target/53440
5672         * config/arm/arm.c (arm32_output_mi_thunk): New.
5673         (arm_output_mi_thunk): Rename to arm_thumb1_mi_thunk. Rework
5674         to split Thumb1 vs TARGET_32BIT functionality.
5675         (arm_thumb1_mi_thunk): New.
5676
5677 2016-05-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5678
5679         * config/aarch64/aarch64.c (TARGET_OMIT_STRUCT_RETURN_REG): Set
5680         to true.
5681
5682 2016-05-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5683
5684         PR target/71080
5685         * config/i386/i386.c (ix86_in_large_data_p): Guard against NULL exp.
5686
5687 2016-05-13  Eric Botcazou  <ebotcazou@adacore.com>
5688
5689         * builtins.c (expand_builtin_memcmp): Do not emit the call here.
5690         (expand_builtin_trap): Emit a regular call.
5691         (set_builtin_user_assembler_name): Remove obsolete cases.
5692         * dse.c (scan_insn): Adjust.
5693         * except.c: Include calls.h.
5694         (sjlj_emit_function_enter): If DONT_USE_BUILTIN_SETJMP is defined,
5695         emit a regular call to setjmp.
5696         * expr.c (emit_block_move_hints): Call emit_block_copy_via_libcall.
5697         (block_move_libcall_safe_for_call_parm): Use memcpy builtin.
5698         (emit_block_move_via_libcall): Delete.
5699         (block_move_fn): Delete.
5700         (init_block_move_fn): Likewise.
5701         (emit_block_move_libcall_fn): Likewise.
5702         (emit_block_op_via_libcall): New function.
5703         (set_storage_via_libcall): Tidy up and use memset builtin.
5704         (block_clear_fn): Delete.
5705         (init_block_clear_fn): Likewise.
5706         (clear_storage_libcall_fn): Likewise.
5707         (expand_assignment): Call emit_block_move_via_libcall.
5708         Do not include gt-expr.h.
5709         * expr.h (emit_block_op_via_libcall): Declare.
5710         (emit_block_copy_via_libcall): New inline function.
5711         (emit_block_move_via_libcall): Likewise.
5712         (emit_block_comp_via_libcall): Likewise.
5713         (block_clear_fn): Delete.
5714         (init_block_move_fn): Likewise.
5715         (init_block_clear_fn): Likewise.
5716         (emit_block_move_via_libcall): Likewise.
5717         (set_storage_via_libcall): Add default parameter value.
5718         * libfuncs.h (enum libfunc_index): Remove obsolete values.
5719         (abort_libfunc): Delete.
5720         (memcpy_libfunc): Likewise.
5721         (memmove_libfunc): Likewise.
5722         (memcmp_libfunc): Likewise.
5723         (memset_libfunc): Likewise.
5724         (setbits_libfunc): Likewise.
5725         (setjmp_libfunc): Likewise.
5726         (longjmp_libfunc): Likewise.
5727         (profile_function_entry_libfunc): Likewise.
5728         (profile_function_exit_libfunc): Likewise.
5729         (gcov_flush_libfunc): Likewise.
5730         * optabs-libfuncs.c (build_libfunc_function): Set DECL_ARTIFICIAL
5731         and DECL_VISIBILITY on the declaration.
5732         (init_optabs): Do not initialize obsolete libfuncs.
5733         * optabs.c (prepare_cmp_insn): Call emit_block_comp_via_libcall.
5734         * tree-core.h (ECF_RET1): Define.
5735         (ECF_TM_PURE): Adjust.
5736         (ECF_TM_BUILTIN): Likewise.
5737         * tree.c (set_call_expr_flags): Deal with ECF_RET1.
5738         (build_common_builtin_nodes): Initialize abort builtin.
5739         Add ECF_RET1 on memcpy, memmove and memset builtins.
5740         Pass final flags for alloca and alloca_with_align builtins.
5741         * config/alpha/alpha.c (alpha_init_libfuncs): Do not initialize
5742         obsolete builtins.
5743         * config/ia64/ia64.c (ia64_vms_init_libfuncs): Likewise.
5744         * config/i386/i386.c (ix86_expand_set_or_movmem): Adjust call to
5745         set_storage_via_libcall and call emit_block_copy_via_libcall.
5746
5747 2016-05-12  Uros Bizjak  <ubizjak@gmail.com>
5748
5749         * config/i386/i386.md (*call_got_x32): Change operand 0 to
5750         DImode before it is passed to ix86_output_call_operand.
5751         (*call_value_got_x32): Ditto for operand 1.
5752
5753 2016-05-12  Jiong Wang  <jiong.wang@arm.com>
5754
5755         PR rtl-optimization/70904
5756         * lra-constraint.c (process_addr_reg): Relax the restriction on subreg
5757         reload for wide mode.
5758
5759 2016-05-12  Marek Polacek  <polacek@redhat.com>
5760
5761         PR c/70756
5762         * langhooks-def.h (lhd_incomplete_type_error): Adjust declaration.
5763         * langhooks.c (lhd_incomplete_type_error): Add location parameter.
5764         * langhooks.h (incomplete_type_error): Likewise.
5765         * tree.c (size_in_bytes_loc): Renamed from size_in_bytes.  Add location
5766         parameter, pass it down to incomplete_type_error.
5767         * tree.h (size_in_bytes): New inline overload.
5768         (size_in_bytes_loc): Renamed from size_in_bytes.
5769
5770 2016-05-12  Richard Biener  <rguenther@suse.de>
5771
5772         PR tree-optimization/71059
5773         * tree-ssa-pre.c (phi_translate_1): Fully fold translated
5774         nary before looking up or entering the expression into the VN
5775         hashes.
5776         * tree-ssa-sccvn.c (vn_nary_build_or_lookup): Fix comment typo.
5777         Make sure to re-use NARYs without result as inserted by
5778         phi-translation.
5779
5780 2016-05-12  Richard Biener  <rguenther@suse.de>
5781
5782         PR tree-optimization/71062
5783         * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
5784         field.
5785         * tree-ssa-structalias.c (set_uids_in_ptset): Set
5786         vars_contains_restrict if the var is a restrict tag.
5787         * tree-ssa-alias.c (ptrs_compare_unequal): If vars_contains_restrict
5788         do not disambiguate pointers against it.
5789         (dump_points_to_solution): Re-structure and adjust for new
5790         vars_contains_restrict flag.
5791         * gimple-pretty-print.c (pp_points_to_solution): Likewise.
5792
5793 2016-05-12  Martin Liska  <mliska@suse.cz>
5794
5795         * doc/invoke.texi: Explain connection between
5796         -fsanitize-recover=address and ASAN_OPTIONS="halt_on_error=1".
5797
5798 2016-05-12  Ilya Enkovich  <ilya.enkovich@intel.com>
5799
5800         PR tree-optimization/71006
5801         * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
5802         consider COND_EXPR as a mask producer.
5803
5804 2016-05-12  Marek Polacek  <polacek@redhat.com>
5805
5806         PR driver/71063
5807         * opts.c (common_handle_option): Detect missing argument for --help^.
5808
5809 2016-05-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5810
5811         PR target/70830
5812         * config/arm/arm.c (arm_output_multireg_pop): Avoid POP instruction
5813         when popping the PC and within an interrupt handler routine.
5814         Add missing tab to output of "ldmfd".
5815         (output_return_instruction): Output LDMFD with SP update rather
5816         than POP when returning from interrupt handler.
5817
5818 2016-05-12  Jakub Jelinek  <jakub@redhat.com>
5819
5820         * config/i386/i386.md (isa): Add x64_avx512dq, enable if
5821         TARGET_64BIT && TARGET_AVX512DQ.
5822         * config/i386/sse.md (*vec_extract<mode>): Add avx512bw alternatives.
5823         (*vec_extract<PEXTR_MODE12:mode>_zext): Add avx512bw alternative.
5824         (*vec_extract<ssevecmodelower>_0, *vec_extractv4si_0_zext,
5825         *vec_extractv2di_0_sse): Use v constraint instead of x constraint.
5826         (*vec_extractv4si): Add avx512dq and avx512bw alternatives.
5827         (*vec_extractv4si_zext): Add avx512dq alternative.
5828         (*vec_extractv2di_1): Add x64_avx512dq and avx512bw alternatives,
5829         use v instead of x constraint in other alternatives where possible.
5830
5831         * config/i386/sse.md (sse2_loadld): Use v instead of x
5832         constraint in alternatives 0,1,4.
5833
5834         * config/i386/sse.md (pinsr_evex_isa): New mode attr.
5835         (<sse2p4_1>_pinsr<ssemodesuffix>): Add 2 alternatives with
5836         v constraints instead of x and <pinsr_evex_isa> isa attribute.
5837
5838         PR target/71019
5839         * config/i386/sse.md (<sse2_avx2>_packssdw<mask_name>,
5840         <sse4_1_avx2>_packusdw<mask_name>): Make sure EVEX encoded insn
5841         is not emitted unless TARGET_AVX512BW.
5842         (<sse2_avx2>_packuswb<mask_name>, <sse2_avx2>_packsswb<mask_name>):
5843         Likewise.  For TARGET_AVX512BW, use "=v" constraint instead of "=x"
5844         for the result operand.
5845
5846         * config/i386/sse.md (*vec_setv4sf_sse4_1, sse4_1_insertps): Use v
5847         constraint instead of x in avx alternatives.  Use maybe_evex instead
5848         of vex prefix.
5849
5850         * config/i386/constraints.md (Yv): New constraint.
5851         * config/i386/i386.h (VALID_AVX512VL_128_REG_MODE): Allow
5852         TFmode and V1TImode in xmm16+ registers for TARGET_AVX512VL.
5853         * config/i386/i386.md (avx512fvecmode): New mode attr.
5854         (*pushtf): Use v constraint instead of x.
5855         (*movtf_internal): Likewise.  For TARGET_AVX512VL and
5856         xmm16+ registers, use vmovdqu64 or vmovdqa64 instructions.
5857         (*absneg<mode>2): Use Yv constraint instead of x constraint.
5858         (*absnegtf2_sse): Likewise.
5859         (copysign<mode>3_const, copysign<mode>3_var): Likewise.
5860         * config/i386/sse.md (*andnot<mode>3): Add avx512vl and
5861         avx512f alternatives.
5862         (*andnottf3, *<code><mode>3, *<code>tf3): Likewise.
5863
5864 2016-05-12  Richard Biener  <rguenther@suse.de>
5865
5866         PR tree-optimization/71060
5867         * tree-data-ref.c (initialize_data_dependence_relation): Do not
5868         require exact match of DR_BASE_OBJECT but only matching address and
5869         type.
5870
5871 2016-05-12  Richard Biener  <rguenther@suse.de>
5872
5873         PR tree-optimization/70986
5874         * cfganal.c: Include cfgloop.h.
5875         (dfs_find_deadend): Prefer to take edges exiting loops.
5876
5877 2016-05-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5878
5879         * gcc.target/powerpc/pr70963.c: Require at least power8 at both
5880         compile and run time.
5881
5882 2016-05-11  Mikhail Maltsev  <maltsevm@gmail.com>
5883
5884         PR c/43651
5885         * doc/invoke.texi (Wduplicate-decl-specifier): Document new option.
5886
5887 2016-05-11  Uros Bizjak  <ubizjak@gmail.com>
5888
5889         * config/i386/i386.c (legitimize_pic_address): Use
5890         copy_to_suggested_reg instead of gen_movsi.
5891
5892 2016-05-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
5893
5894         * config/rs6000/predicates.md (quad_memory_operand): Move most of
5895         the code into quad_address_p and call it to share code with
5896         vsx_quad_dform_memory_operand.
5897         (vsx_quad_dform_memory_operand): New predicate for ISA 3.0 vector
5898         d-form support.
5899         * config/rs6000/rs6000.opt (-mlra): Switch to being an option mask
5900         bit instead of being a separate word.  Split -mpower9-dform into
5901         two switches, -mpower9-dform-scalar and -mpower9-dform-vector.
5902         * config/rs6000/rs6000.c (RELOAD_REG_QUAD_OFFSET): New addr_mask
5903         for the register class supporting 128-bit quad word memory offsets.
5904         (mode_supports_vsx_dform_quad): Helper function to return if the
5905         register class uses quad word memory offsets.
5906         (rs6000_debug_addr_mask): Add support for quad word memory offsets.
5907         (rs6000_debug_reg_global): Always print if we are using LRA or not.
5908         (rs6000_setup_reg_addr_masks): If ISA 3.0 vector d-form
5909         instructions are enabled, set up the appropriate addr_masks for
5910         128-bit types.
5911         (rs6000_init_hard_regno_mode_ok): wb constraint is now based on
5912         -mpower9-dform-scalar, instead of -mpower9-dform.
5913         (rs6000_option_override_internal): Split -mpower9-dform into two
5914         switches, -mpower9-dform-scalar and -mpower9-dform-vector.  The
5915         -mpower9-dform switch sets or clears both.  If we are not using
5916         the LRA register allocator, do not enable -mpower9-dform-vector by
5917         default.  If we are using LRA, enable -mpower9-dform-vector and
5918         -mvsx-timode if it is appropriate.  Issue a warning if either
5919         -mpower9-dform-vector or -mvsx-timode are explicitly used without
5920         enabling LRA.
5921         (quad_address_offset_p): New helper function to return if the
5922         offset is legal for quad word memory instructions.
5923         (quad_address_p): New function to determin if GPR or vector
5924         register quad word memory addresses are legal.
5925         (mem_operand_gpr): Validate quad word address offsets.
5926         (reg_offset_addressing_ok_p): Add support for ISA 3.0 vector
5927         d-form (register + offset) instructions.
5928         (offsettable_ok_by_alignment): Likewise.
5929         (rs6000_legitimate_offset_address_p): Likewise.
5930         (legitimate_lo_sum_address_p): Likewise.
5931         (rs6000_legitimize_address): Likewise.
5932         (rs6000_legitimize_reload_address): Add more debug statements for
5933         -mdebug=addr.
5934         (rs6000_legitimate_address_p): Add support for ISA 3.0 vector
5935         d-form instructions.
5936         (rs6000_secondary_reload_memory): Add support for ISA 3.0 vector
5937         d-form instructions.  Distinguish different cases in debug
5938         output. (rs6000_secondary_reload_inner): Add support for ISA 3.0 vector
5939         d-form instructions.
5940         (rs6000_preferred_reload_class): Likewise.
5941         (rs6000_output_move_128bit): Add support for ISA 3.0 d-form
5942         instructions.  If ISA 3.0 is available, generate lxvx/stxvx instead
5943         of the ISA 2.06 indexed memory instructions.
5944         (rs6000_emit_prologue): If we have ISA 3.0 d-form instructions,
5945         use them to save/restore the saved vector registers instead of
5946         using Altivec instructions.
5947         (rs6000_emit_epilogue): Likewise.
5948         (rs6000_lra_p): Use TARGET_LRA instead of the old option word.
5949         (rs6000_opt_masks): Split -mpower9-dform into
5950         -mpower9-dform-scalar and -mpower9-dform-vector.
5951         (rs6000_print_options_internal): Print -mno-<switch> if <switch>
5952         was not selected.
5953         * config/rs6000/vsx.md (p9_vecload_<mode>): Delete hack to emit
5954         ISA 3.0 vector indexed memory instructions, and fold the code into
5955         the normal mov<mode> patterns.
5956         (p9_vecstore_<mode>): Likewise.
5957         (vsx_mov<mode>): Add support for ISA 3.0 vector d-form
5958         instructions.
5959         (vsx_movti_64bit): Likewise.
5960         (vsx_movti_32bit): Likewise.
5961         * config/rs6000/constraints.md (wO constraint): New constraint for
5962         ISA 3.0 vector d-form support.
5963         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Use
5964         -mpower9-dform-scalar instead of -mpower9-dform.  Add note not to
5965         include -mpower9-dform-vector until we switch over to LRA.
5966         (POWERPC_MASKS): Add -mlra. Split -mpower9-dform into two.
5967         switches, -mpower9-dform-scalar and -mpower9-dform-vector.
5968         * config/rs6000/rs6000-protos.h (quad_address_p): Add declaration.
5969         * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
5970         for -mpower9-dform and -mlra.
5971         * doc/md.texi (wO constraint): Document wO constraint.
5972
5973 2016-05-11  Alexander Monakov  <amonakov@ispras.ru>
5974
5975         * genattr.c (main): Change 'rtx' to 'rtx_insn *' in prototypes of
5976         'insn_latency', 'maximal_insn_latency', 'min_insn_conflict_delay'.
5977         * genautomata.c (output_internal_insn_code_evaluation): Simplify.
5978         Move handling of non-insn arguments inline into the sole user:
5979         (output_trans_func): ...here.
5980         (output_min_insn_conflict_delay_func): Change 'rtx' to 'rtx_insn *'
5981         in emitted function prototype.
5982         (output_internal_insn_latency_func): Ditto.  Simplify.
5983         (output_internal_maximal_insn_latency_func): Ditto.  Delete
5984         always-unused argument.
5985         (output_insn_latency_func): Ditto.
5986         (output_maximal_insn_latency_func): Ditto.
5987
5988 2016-05-11  Richard Biener  <rguenther@suse.de>
5989
5990         PR tree-optimization/71055
5991         * tree-ssa-sccvn.c (vn_reference_lookup_3): When native-interpreting
5992         sth with precision not equal to access size verify we don't chop
5993         off bits.
5994
5995 2016-05-11  Richard Biener  <rguenther@suse.de>
5996
5997         PR debug/71057
5998         * dwarf2out.c (retry_incomplete_types): Set early_dwarf.
5999         (dwarf2out_finish): Move retry_incomplete_types call ...
6000         (dwarf2out_early_finish): ... here.
6001
6002 2016-05-11  Richard Biener  <rguenther@suse.de>
6003
6004         PR middle-end/71002
6005         * alias.c (reference_alias_ptr_type): Preserve alias-set zero
6006         if the langhook insists on it.
6007         * fold-const.c (make_bit_field_ref): Add arg for the original
6008         reference and preserve its alias-set.
6009         (decode_field_reference): Take exp by reference and adjust it
6010         to the original memory reference.
6011         (optimize_bit_field_compare): Adjust callers.
6012         (fold_truth_andor_1): Likewise.
6013         * gimplify.c (gimplify_expr): Adjust in-SSA form test.
6014
6015 2016-05-11  Ilya Enkovich  <ilya.enkovich@intel.com>
6016
6017         PR middle-end/70807
6018         * cfgrtl.h (delete_insn_and_edges): Now return bool.
6019         * cfgrtl.c (delete_insn_and_edges): Likewise.
6020         * config/i386/i386.c (convert_scalars_to_vector): Remove
6021         redundant code.
6022         * cse.c (cse_insn): Compute cse_cfg_altered.
6023         (delete_trivially_dead_insns): Likewise.
6024         (cse_cc_succs): Likewise.
6025         (rest_of_handle_cse): Free dominance info if required.
6026         (rest_of_handle_cse2): Likewise.
6027         (rest_of_handle_cse_after_global_opts): Likewise.
6028
6029 2016-05-11  Alan Modra  <amodra@gmail.com>
6030
6031         * config/rs6000/rs6000.c (is_complex_IBM_long_double,
6032         abi_v4_pass_in_fpr): New functions.
6033         (rs6000_function_arg_boundary): Exclude complex IBM long double
6034         from 64-bit alignment when ABI_V4.
6035         (rs6000_function_arg, rs6000_function_arg_advance_1,
6036         rs6000_gimplify_va_arg): Use abi_v4_pass_in_fpr.
6037
6038 2016-05-10  Segher Boessenkool  <segher@kernel.crashing.org>
6039
6040         PR rtl-optimization/71028
6041         * cfgcleanup.c (try_optimize_cfg): Do not flip a conditional
6042         jump with just a return in the fallthrough block if the branch
6043         block contains just a return as well.
6044
6045 2016-05-10  Marc Glisse  <marc.glisse@inria.fr>
6046
6047         * fold-const.c (fold_binary_loc) [(X ^ Y) & Y]: Remove and merge with...
6048         * match.pd ((X & Y) ^ Y): ... this.
6049         ((X & Y) & Y, (X | Y) | Y, (X ^ Y) ^ Y, (X & Y) & (X & Z), (X | Y)
6050         | (X | Z), (X ^ Y) ^ (X ^ Z)): New transformations.
6051
6052 2016-05-10  David Malcolm  <dmalcolm@redhat.com>
6053
6054         * read-md.c (require_char_ws): New function.
6055         (read_string): Simplify using require_char_ws.
6056         (handle_constants): Likewise.
6057         (handle_enum): Likewise.
6058         (handle_file): Likewise.
6059         * read-md.h (require_char_ws): New declaration.
6060         * read-rtl.c (read_conditions): Simplify using require_char_ws.
6061         (read_mapping): Likewise.
6062         (read_rtx_code): Likewise.
6063         (read_nested_rtx): Likewise.
6064
6065 2016-05-10  James Norris  <jnorris@codesourcery.com>
6066
6067         * config/rs6000/sysv4.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o
6068         if offloading is enabled and -fopenacc or -fopenmp is specified.
6069         (CRTOFFLOADEND): Likewise.
6070         (STARTFILE_LINUX_SPEC): Add CRTOFFLOADBEGIN.
6071         (ENDFILE_LINUX_SPEC): Add CRTOFFLOADEND.
6072
6073 2016-05-10  Uros Bizjak  <ubizjak@gmail.com>
6074
6075         * config/i386/i386.c (legitimize_pic_address): Merge 64-bit and 32-bit
6076         gotoff_operand code paths.  Use copy_to_suggested_regs and
6077         expand_simple_binop where appropriate.  Cleanup.
6078
6079 2016-05-10  Ilya Enkovich  <ilya.enkovich@intel.com>
6080
6081         PR target/70799
6082         * config/i386/i386.c (dimode_scalar_to_vector_candidate_p): Allow
6083         integer constants.
6084         (dimode_scalar_chain::vector_const_cost): New.
6085         (dimode_scalar_chain::compute_convert_gain): Handle constants.
6086         (dimode_scalar_chain::convert_op): Likewise.
6087         (dimode_scalar_chain::convert_insn): Likewise.
6088
6089 2016-05-10  Pierre-Marie de Rodat  <derodat@adacore.com>
6090
6091         * dwarf2out.c (resolve_args_picking_1): Consider DW_OP_neg as an
6092         unary operation, not a binary one.
6093
6094 2016-05-10  Ilya Enkovich  <ilya.enkovich@intel.com>
6095
6096         PR middle-end/70877
6097         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Handle
6098         calls with type casted fndecl.
6099
6100 2016-05-10  Ilya Enkovich  <ilya.enkovich@intel.com>
6101
6102         PR tree-optimization/70786
6103         * tree-chkp.c (chkp_find_bounds_1): Support WITH_SIZE_EXPR.
6104         * calls.c (initialize_argument_information): Bind bounds
6105         with corresponding args passed by reference.
6106
6107 2016-05-10  Jakub Jelinek  <jakub@redhat.com>
6108
6109         PR target/70927
6110         * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>),
6111         *<code><mode>3<mask_name>): For !TARGET_AVX512DQ and EVEX encoding,
6112         use vp*[dq] instead of v*p[sd] instructions and adjust mode attribute
6113         accordingly.
6114
6115 2016-05-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6116
6117         PR target/70963
6118         * config/rs6000/vsx.md (vsx_xvcvdpsxds_scale): Generate correct
6119         code for a zero scale factor.
6120         (vsx_xvcvdpuxds_scale): Likewise.
6121
6122 2016-05-10  David Malcolm  <dmalcolm@redhat.com>
6123
6124         * diagnostic-show-locus.c (layout::layout): Call show_ruler
6125         if show_ruler_p was set on the context.
6126         (layout::show_ruler): New method.
6127         * diagnostic.h (struct diagnostic_context): Add field
6128         "show_ruler_p".
6129
6130 2016-05-10  Richard Biener  <rguenther@suse.de>
6131
6132         PR tree-optimization/71039
6133         * tree-ssa-phiprop.c: Include tree-ssa-loop.h.
6134         (chk_uses): New function.
6135         (propagate_with_phi): Verify we can safely replicate the lhs of an
6136         aggregate assignment on all incoming edges.
6137
6138 2016-05-10  Oleg Endo  <olegendo@gcc.gnu.org>
6139
6140         * config/rx/rx-protos.h (is_interrupt_func, is_fast_interrupt_func):
6141         Forward declare.
6142         (rx_atomic_sequence): New class.
6143         * config/rx/rx.c (rx_print_operand): Use symbolic names for PSW bits.
6144         (is_interrupt_func, is_fast_interrupt_func): Make non-static and
6145         non-inline.
6146         (rx_atomic_sequence::rx_atomic_sequence,
6147         rx_atomic_sequence::~rx_atomic_sequence): New functions.
6148         * config/rx/rx.md (CTRLREG_PSW, CTRLREG_USP, CTRLREG_FPSW, CTRLREG_CPEN,
6149         CTRLREG_BPSW, CTRLREG_BPC, CTRLREG_ISP, CTRLREG_FINTV,
6150         CTRLREG_INTB): New constants.
6151         (FETCHOP): New code iterator.
6152         (fethcop_name, fetchop_name2): New iterator code attributes.
6153         (QIHI): New mode iterator.
6154         (atomic_exchange<mode>, atomic_exchangesi, xchg_mem<mode>,
6155         atomic_fetch_<fetchop_name>si, atomic_fetch_nandsi,
6156         atomic_<fetchop_name>_fetchsi, atomic_nand_fetchsi): New patterns.
6157
6158 2016-05-10  Martin Liska  <mliska@suse.cz>
6159
6160         * tree-inline.c (remap_dependence_clique): Do not remap
6161         debugging statements.
6162
6163 2016-05-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6164
6165         * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly")
6166         ("*fixuns_truncdfdi2_z13")
6167         ("*fixuns_trunc<FP:mode><GPR:mode>2_z196")
6168         ("*fix_truncdfdi2_bfp_z13", "*floatunsdidf2_z13")
6169         ("*extendsfdf2_z13"): Replace TARGET_Z13 with TARGET_VX.
6170
6171 2016-05-10  Richard Biener  <rguenther@suse.de>
6172
6173         PR tree-optimization/70497
6174         PR tree-optimization/28367
6175         * tree-ssa-sccvn.c (vn_nary_build_or_lookup): New function
6176         split out from ...
6177         (visit_reference_op_load): ... here.
6178         (vn_reference_lookup_3): Use it to handle subreg-like accesses
6179         with simplified BIT_FIELD_REFs.
6180         * tree-ssa-pre.c (eliminate_insert): Handle inserting BIT_FIELD_REFs.
6181         * tree-complex.c (extract_component): Handle BIT_FIELD_REFs
6182         correctly.
6183
6184 2016-05-10  Pierre-Marie de Rodat  <derodat@adacore.com>
6185
6186         * dwarf2out.c (add_abstract_origin_attribute): Adjust
6187         documentation comment.  For BLOCK nodes, add a
6188         DW_AT_abstract_origin attribute that points to the DIE generated
6189         for the origin BLOCK.
6190         (gen_lexical_block_die): Call add_abstract_origin_attribute for
6191         blocks from inlined functions.
6192
6193 2016-05-10  Alan Modra  <amodra@gmail.com>
6194
6195         PR target/70947
6196         * config/rs6000/rs6000.c (rs6000_expand_split_stack_prologue): Stop
6197         regrename modifying insns saving lr before __morestack call.
6198         * config/rs6000/rs6000.md (split_stack_return): Similarly for
6199         insns restoring lr after __morestack call.
6200
6201 2016-05-09  Jakub Jelinek  <jakub@redhat.com>
6202
6203         * config/i386/i386.md (set_got, set_got_labelled, lwp_llwpcb,
6204         lwp_lwpval<mode>3, lwp_lwpins<mode>3): Remove constraints from
6205         expanders.
6206         * config/i386/sse.md (vec_interleave_high<mode>,
6207         vec_interleave_low<mode>, <avx512>_vpermi2var<mode>3_maskz,
6208         <avx512>_vpermt2var<mode>3_maskz): Likewise.
6209
6210 2016-05-04  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
6211
6212         * config/rs6000/rs6000.c (rs6000_reassociation_width): Add
6213         function for TARGET_SCHED_REASSOCIATION_WIDTH to enable
6214         parallel reassociation for power8 and forward.
6215
6216 2016-05-09  Uros Bizjak  <ubizjak@gmail.com>
6217
6218         * config/i386/i386.md (absneg splitters with general regs): Use
6219         general_reg_operand predicate.
6220         (btsq peephole2): Use x86_64_immediate_operand to check if new
6221         value is suitable for immediate operand.  Generate emitted insn
6222         using RTL expressions.
6223         (btcq peephole2): Ditto.
6224         (btrq peephole2): Ditto.  Generate correct immediate operand
6225         for AND masking.
6226
6227 2016-05-09  Richard Sandiford  <richard.sandiford@arm.com>
6228
6229         * cfgexpand.c (expand_debug_expr): Fix address offset for negative
6230         bitpos.
6231
6232 2016-05-09  Richard Sandiford  <richard.sandiford@arm.com>
6233
6234         * tree-affine.c (wide_int_constant_multiple_p): Add missing
6235         pointer dereference.
6236
6237 2016-05-09  Richard Biener  <rguenther@suse.de>
6238
6239         PR tree-optimization/70985
6240         * match.pd (BIT_FIELD_REF -> (type)): Disable on GIMPLE when
6241         op0 isn't a gimple register.
6242
6243 2016-05-09  Prachi Godbole  <prachi.godbole@imgtec.com>
6244
6245         * config/mips/i6400.md (i6400_fpu_intadd, i6400_fpu_logic)
6246         (i6400_fpu_div, i6400_fpu_cmp, i6400_fpu_float, i6400_fpu_store)
6247         (i6400_fpu_long_pipe, i6400_fpu_logic_l, i6400_fpu_float_l)
6248         (i6400_fpu_mult): New cpu units.
6249         (i6400_msa_add_d, i6400_msa_int_add, i6400_msa_short_logic3)
6250         (i6400_msa_short_logic2, i6400_msa_short_logic, i6400_msa_move)
6251         (i6400_msa_cmp, i6400_msa_short_float2, i6400_msa_div_d)
6252         (i6400_msa_div_w, i6400_msa_div_h, i6400_msa_div_b)
6253         (i6400_msa_copy, i6400_msa_branch, i6400_fpu_msa_store)
6254         (i6400_fpu_msa_load, i6400_fpu_msa_move, i6400_msa_long_logic1)
6255         (i6400_msa_long_logic2, i6400_msa_mult, i6400_msa_long_float2)
6256         (i6400_msa_long_float4, i6400_msa_long_float5)
6257         (i6400_msa_long_float8, i6400_msa_fdiv_df)
6258         (i6400_msa_fdiv_sf): New reservations.
6259         * config/mips/p5600.md (p5600_fpu_intadd, p5600_fpu_cmp)
6260         (p5600_fpu_float, p5600_fpu_logic_a, p5600_fpu_logic_b)
6261         (p5600_fpu_div, p5600_fpu_logic, p5600_fpu_float_a)
6262         (p5600_fpu_float_b, p5600_fpu_float_c, p5600_fpu_float_d)
6263         (p5600_fpu_mult, p5600_fpu_fdiv, p5600_fpu_load): New cpu units.
6264         (msa_short_int_add, msa_short_logic, msa_short_logic_move_v)
6265         (msa_short_cmp, msa_short_float2, msa_short_logic3)
6266         (msa_short_store4, msa_long_load, msa_short_store)
6267         (msa_long_logic, msa_long_float2, msa_long_float4)
6268         (msa_long_float5, msa_long_float8, msa_long_mult)
6269         (msa_long_fdiv, msa_long_div): New reservations.
6270
6271 2016-05-09  Robert Suchanek  <robert.suchanek@imgtec.com>
6272             Sameera Deshpande  <sameera.deshpande@imgtec.com>
6273             Matthew Fortune  <matthew.fortune@imgtec.com>
6274             Graham Stott  <graham.stott@imgtec.com>
6275             Chao-ying Fu  <chao-ying.fu@imgtec.com>
6276
6277         * config.gcc: Add MSA header file for mips*-*-* target.
6278         * config/mips/constraints.md (YI, YC, YZ, Unv5, Uuv5, Usv5, Uuv6)
6279         (Ubv8i, Urv8):  New constraints.
6280         * config/mips/mips-ftypes.def: Add function types for MSA
6281         builtins.
6282         * config/mips/mips-modes.def (V16QI, V8HI, V4SI, V2DI, V4SF)
6283         (V2DF, V32QI, V16HI, V8SI, V4DI, V8SF, V4DF): New modes.
6284         * config/mips/mips-msa.md: New file.
6285         * config/mips/mips-protos.h
6286         (mips_split_128bit_const_insns): New prototype.
6287         (mips_msa_idiv_insns): Likewise.
6288         (mips_split_128bit_move): Likewise.
6289         (mips_split_128bit_move_p): Likewise.
6290         (mips_split_msa_copy_d): Likewise.
6291         (mips_split_msa_insert_d): Likewise.
6292         (mips_split_msa_fill_d): Likewise.
6293         (mips_expand_msa_branch): Likewise.
6294         (mips_const_vector_same_val_p): Likewise.
6295         (mips_const_vector_same_bytes_p): Likewise.
6296         (mips_const_vector_same_int_p): Likewise.
6297         (mips_const_vector_shuffle_set_p): Likewise.
6298         (mips_const_vector_bitimm_set_p): Likewise.
6299         (mips_const_vector_bitimm_clr_p): Likewise.
6300         (mips_msa_vec_parallel_const_half): Likewise.
6301         (mips_msa_output_division): Likewise.
6302         (mips_ldst_scaled_shift): Likewise.
6303         (mips_expand_vec_cond_expr): Likewise.
6304         * config/mips/mips.c (enum mips_builtin_type): Add
6305         MIPS_BUILTIN_MSA_TEST_BRANCH.
6306         (mips_gen_const_int_vector_shuffle): New prototype.
6307         (mips_const_vector_bitimm_set_p): New function.
6308         (mips_const_vector_bitimm_clr_p): Likewise.
6309         (mips_const_vector_same_val_p): Likewise.
6310         (mips_const_vector_same_bytes_p): Likewise.
6311         (mips_const_vector_same_int_p): Likewise.
6312         (mips_const_vector_shuffle_set_p): Likewise.
6313         (mips_symbol_insns): Forbid loading symbols via immediate for
6314         MSA.
6315         (mips_valid_offset_p): Limit offset to 10-bit for MSA loads and
6316         stores.
6317         (mips_valid_lo_sum_p): Forbid loadings symbols via %lo(base) for
6318         MSA.
6319         (mips_lx_address_p): Add support load indexed address for MSA.
6320         (mips_address_insns): Add calculation of instructions needed for
6321         stores and loads for MSA.
6322         (mips_const_insns): Move CONST_DOUBLE below CONST_VECTOR.  Handle
6323         CONST_VECTOR for MSA and let it fall through.
6324         (mips_ldst_scaled_shift): New function.
6325         (mips_subword_at_byte): Likewise.
6326         (mips_msa_idiv_insns): Likewise.
6327         (mips_legitimize_move): Validate MSA moves.
6328         (mips_rtx_costs): Add UNGE, UNGT, UNLE, UNLT cases.  Add
6329         calculation of costs for MSA division.
6330         (mips_split_move_p): Check if MSA moves need splitting.
6331         (mips_split_move): Split MSA moves if necessary.
6332         (mips_split_128bit_move_p): New function.
6333         (mips_split_128bit_move): Likewise.
6334         (mips_split_msa_copy_d): Likewise.
6335         (mips_split_msa_insert_d): Likewise.
6336         (mips_split_msa_fill_d): Likewise.
6337         (mips_output_move): Handle MSA moves.
6338         (mips_expand_msa_branch): New function.
6339         (mips_print_operand): Add 'E', 'B', 'w', 'v' and 'V' modifiers.
6340         Reinstate 'y' modifier.
6341         (mips_file_start): Add MSA .gnu_attribute.
6342         (mips_hard_regno_mode_ok_p): Allow TImode and 128-bit vectors in
6343         FPRs.
6344         (mips_hard_regno_nregs): Always return 1 for MSA supported mode.
6345         (mips_class_max_nregs): Add register size for MSA supported mode.
6346         (mips_cannot_change_mode_class): Allow conversion between MSA
6347         vector modes and TImode.
6348         (mips_mode_ok_for_mov_fmt_p): Allow MSA to use move.v
6349         instruction.
6350         (mips_secondary_reload_class): Force MSA loads/stores via memory.
6351         (mips_preferred_simd_mode): Add preffered modes for MSA.
6352         (mips_vector_mode_supported_p): Add MSA supported modes.
6353         (mips_autovectorize_vector_sizes): New function.
6354         (mips_msa_output_division): Likewise.
6355         (MSA_BUILTIN, MIPS_BUILTIN_DIRECT_NO_TARGET)
6356         (MSA_NO_TARGET_BUILTIN, MSA_BUILTIN_TEST_BRANCH): New macros.
6357         (CODE_FOR_msa_adds_s_b, CODE_FOR_msa_adds_s_h)
6358         (CODE_FOR_msa_adds_s_w, CODE_FOR_msa_adds_s_d)
6359         (CODE_FOR_msa_adds_u_b, CODE_FOR_msa_adds_u_h)
6360         (CODE_FOR_msa_adds_u_w, CODE_FOR_msa_adds_u_du
6361         (CODE_FOR_msa_addv_b, CODE_FOR_msa_addv_h, CODE_FOR_msa_addv_w)
6362         (CODE_FOR_msa_addv_d, CODE_FOR_msa_and_v, CODE_FOR_msa_bmnz_v)
6363         (CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bmz_v, CODE_FOR_msa_bmzi_b)
6364         (CODE_FOR_msa_bnz_v, CODE_FOR_msa_bz_v, CODE_FOR_msa_bsel_v)
6365         (CODE_FOR_msa_bseli_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w)
6366         (CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b)
6367         (CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w)
6368         (CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clti_u_b)
6369         (CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w)
6370         (CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_s_b)
6371         (CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w)
6372         (CODE_FOR_msa_clei_s_d, CODE_FOR_msa_clei_u_b)
6373         (CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w)
6374         (CODE_FOR_msa_clei_u_d, CODE_FOR_msa_div_s_b)
6375         (CODE_FOR_msa_div_s_h, CODE_FOR_msa_div_s_w)
6376         (CODE_FOR_msa_div_s_d, CODE_FOR_msa_div_u_b)
6377         (CODE_FOR_msa_div_u_h, CODE_FOR_msa_div_u_w)
6378         (CODE_FOR_msa_div_u_d, CODE_FOR_msa_fadd_w, CODE_FOR_msa_fadd_d)
6379         (CODE_FOR_msa_fexdo_w, CODE_FOR_msa_ftrunc_s_w)
6380         (CODE_FOR_msa_ftrunc_s_d, CODE_FOR_msa_ftrunc_u_w)
6381         (CODE_FOR_msa_ftrunc_u_d, CODE_FOR_msa_ffint_s_w)
6382         (CODE_FOR_msa_ffint_s_d, CODE_FOR_msa_ffint_u_w)
6383         (CODE_FOR_msa_ffint_u_d, CODE_FOR_msa_fsub_w)
6384         (CODE_FOR_msa_fsub_d, CODE_FOR_msa_fmsub_d, CODE_FOR_msa_fmadd_w)
6385         (CODE_FOR_msa_fmadd_d, CODE_FOR_msa_fmsub_w, CODE_FOR_msa_fmul_w)
6386         (CODE_FOR_msa_fmul_d, CODE_FOR_msa_fdiv_w, CODE_FOR_msa_fdiv_d)
6387         (CODE_FOR_msa_fmax_w, CODE_FOR_msa_fmax_d, CODE_FOR_msa_fmax_a_w)
6388         (CODE_FOR_msa_fmax_a_d, CODE_FOR_msa_fmin_w, CODE_FOR_msa_fmin_d)
6389         (CODE_FOR_msa_fmin_a_w, CODE_FOR_msa_fmin_a_d)
6390         (CODE_FOR_msa_fsqrt_w, CODE_FOR_msa_fsqrt_d)
6391         (CODE_FOR_msa_max_s_b, CODE_FOR_msa_max_s_h)
6392         (CODE_FOR_msa_max_s_w, CODE_FOR_msa_max_s_d)
6393         (CODE_FOR_msa_max_u_b, CODE_FOR_msa_max_u_h)
6394         (CODE_FOR_msa_max_u_w, CODE_FOR_msa_max_u_d)
6395         (CODE_FOR_msa_min_s_b, CODE_FOR_msa_min_s_h)
6396         (CODE_FOR_msa_min_s_w, CODE_FOR_msa_min_s_d)
6397         (CODE_FOR_msa_min_u_b, CODE_FOR_msa_min_u_h)
6398         (CODE_FOR_msa_min_u_w, CODE_FOR_msa_min_u_d)
6399         (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
6400         (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
6401         (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
6402         (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
6403         (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
6404         (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
6405         (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
6406         (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
6407         (CODE_FOR_msa_mulv_b, CODE_FOR_msa_mulv_h, CODE_FOR_msa_mulv_w)
6408         (CODE_FOR_msa_mulv_d, CODE_FOR_msa_nlzc_b, CODE_FOR_msa_nlzc_h)
6409         (CODE_FOR_msa_nlzc_w, CODE_FOR_msa_nlzc_d, CODE_FOR_msa_nor_v)
6410         (CODE_FOR_msa_or_v, CODE_FOR_msa_ori_b, CODE_FOR_msa_nori_b)
6411         (CODE_FOR_msa_pcnt_b, CODE_FOR_msa_pcnt_h, CODE_FOR_msa_pcnt_w)
6412         (CODE_FOR_msa_pcnt_d, CODE_FOR_msa_xor_v, CODE_FOR_msa_xori_b)
6413         (CODE_FOR_msa_sll_b, CODE_FOR_msa_sll_h, CODE_FOR_msa_sll_w)
6414         (CODE_FOR_msa_sll_d, CODE_FOR_msa_slli_b, CODE_FOR_msa_slli_h)
6415         (CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d, CODE_FOR_msa_sra_b)
6416         (CODE_FOR_msa_sra_h, CODE_FOR_msa_sra_w, CODE_FOR_msa_sra_d)
6417         (CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w)
6418         (CODE_FOR_msa_srai_d, CODE_FOR_msa_srl_b, CODE_FOR_msa_srl_h)
6419         (CODE_FOR_msa_srl_w, CODE_FOR_msa_srl_d, CODE_FOR_msa_srli_b)
6420         (CODE_FOR_msa_srli_h, CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d)
6421         (CODE_FOR_msa_subv_b, CODE_FOR_msa_subv_h, CODE_FOR_msa_subv_w)
6422         (CODE_FOR_msa_subv_d, CODE_FOR_msa_subvi_b, CODE_FOR_msa_subvi_h)
6423         (CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d, CODE_FOR_msa_move_v)
6424         (CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h, CODE_FOR_msa_vshf_w)
6425         (CODE_FOR_msa_vshf_d, CODE_FOR_msa_ilvod_d, CODE_FOR_msa_ilvev_d)
6426         (CODE_FOR_msa_pckod_d, CODE_FOR_msa_pckdev_d, CODE_FOR_msa_ldi_b)
6427         (CODE_FOR_msa_ldi_hi, CODE_FOR_msa_ldi_w)
6428         (CODE_FOR_msa_ldi_d): New code_aliasing macros.
6429         (mips_builtins): Add MSA sll_b, sll_h, sll_w, sll_d, slli_b,
6430         slli_h, slli_w, slli_d, sra_b, sra_h, sra_w, sra_d, srai_b,
6431         srai_h, srai_w, srai_d, srar_b, srar_h, srar_w, srar_d, srari_b,
6432         srari_h, srari_w, srari_d, srl_b, srl_h, srl_w, srl_d, srli_b,
6433         srli_h, srli_w, srli_d, srlr_b, srlr_h, srlr_w, srlr_d, srlri_b,
6434         srlri_h, srlri_w, srlri_d, bclr_b, bclr_h, bclr_w, bclr_d,
6435         bclri_b, bclri_h, bclri_w, bclri_d, bset_b, bset_h, bset_w,
6436         bset_d, bseti_b, bseti_h, bseti_w, bseti_d, bneg_b, bneg_h,
6437         bneg_w, bneg_d, bnegi_b, bnegi_h, bnegi_w, bnegi_d, binsl_b,
6438         binsl_h, binsl_w, binsl_d, binsli_b, binsli_h, binsli_w,
6439         binsli_d, binsr_b, binsr_h, binsr_w, binsr_d, binsri_b, binsri_h,
6440         binsri_w, binsri_d, addv_b, addv_h, addv_w, addv_d, addvi_b,
6441         addvi_h, addvi_w, addvi_d, subv_b, subv_h, subv_w, subv_d,
6442         subvi_b, subvi_h, subvi_w, subvi_d, max_s_b, max_s_h, max_s_w,
6443         max_s_d, maxi_s_b, maxi_s_h, maxi_s_w, maxi_s_d, max_u_b,
6444         max_u_h, max_u_w, max_u_d, maxi_u_b, maxi_u_h, maxi_u_w,
6445         maxi_u_d, min_s_b, min_s_h, min_s_w, min_s_d, mini_s_b, mini_s_h,
6446         mini_s_w, mini_s_d, min_u_b, min_u_h, min_u_w, min_u_d, mini_u_b,
6447         mini_u_h, mini_u_w, mini_u_d, max_a_b, max_a_h, max_a_w, max_a_d,
6448         min_a_b, min_a_h, min_a_w, min_a_d, ceq_b, ceq_h, ceq_w, ceq_d,
6449         ceqi_b, ceqi_h, ceqi_w, ceqi_d, clt_s_b, clt_s_h, clt_s_w,
6450         clt_s_d, clti_s_b, clti_s_h, clti_s_w, clti_s_d, clt_u_b,
6451         clt_u_h, clt_u_w, clt_u_d, clti_u_b, clti_u_h, clti_u_w,
6452         clti_u_d, cle_s_b, cle_s_h, cle_s_w, cle_s_d, clei_s_b, clei_s_h,
6453         clei_s_w, clei_s_d, cle_u_b, cle_u_h, cle_u_w, cle_u_d, clei_u_b,
6454         clei_u_h, clei_u_w, clei_u_d, ld_b, ld_h, ld_w, ld_d, st_b, st_h,
6455         st_w, st_d, sat_s_b, sat_s_h, sat_s_w, sat_s_d, sat_u_b, sat_u_h,
6456         sat_u_w, sat_u_d, add_a_b, add_a_h, add_a_w, add_a_d, adds_a_b,
6457         adds_a_h, adds_a_w, adds_a_d, adds_s_b, adds_s_h, adds_s_w,
6458         adds_s_d, adds_u_b, adds_u_h, adds_u_w, adds_u_d, ave_s_b,
6459         ave_s_h, ave_s_w, ave_s_d, ave_u_b, ave_u_h, ave_u_w, ave_u_d,
6460         aver_s_b, aver_s_h, aver_s_w, aver_s_d, aver_u_b, aver_u_h,
6461         aver_u_w, aver_u_d, subs_s_b, subs_s_h, subs_s_w, subs_s_d,
6462         subs_u_b, subs_u_h, subs_u_w, subs_u_d, subsuu_s_b, subsuu_s_h,
6463         subsuu_s_w, subsuu_s_d, subsus_u_b, subsus_u_h, subsus_u_w,
6464         subsus_u_d, asub_s_b, asub_s_h, asub_s_w, asub_s_d, asub_u_b,
6465         asub_u_h, asub_u_w, asub_u_d, mulv_b, mulv_h, mulv_w, mulv_d,
6466         maddv_b, maddv_h, maddv_w, maddv_d, msubv_b, msubv_h, msubv_w,
6467         msubv_d, div_s_b, div_s_h, div_s_w, div_s_d, div_u_b, div_u_h,
6468         div_u_w, div_u_d, hadd_s_h, hadd_s_w, hadd_s_d, hadd_u_h,
6469         hadd_u_w, hadd_u_d, hsub_s_h, hsub_s_w, hsub_s_d, hsub_u_h,
6470         hsub_u_w, hsub_u_d, mod_s_b, mod_s_h, mod_s_w, mod_s_d, mod_u_b,
6471         mod_u_h, mod_u_w, mod_u_d, dotp_s_h, dotp_s_w, dotp_s_d,
6472         dotp_u_h, dotp_u_w, dotp_u_d, dpadd_s_h, dpadd_s_w, dpadd_s_d,
6473         dpadd_u_h, dpadd_u_w, dpadd_u_d, dpsub_s_h, dpsub_s_w, dpsub_s_d,
6474         dpsub_u_h, dpsub_u_w, dpsub_u_d, sld_b, sld_h, sld_w, sld_d,
6475         sldi_b, sldi_h, sldi_w, sldi_d, splat_b, splat_h, splat_w,
6476         splat_d, splati_b, splati_h, splati_w, splati_d, pckev_b,
6477         pckev_h, pckev_w, pckev_d, pckod_b, pckod_h, pckod_w, pckod_d,
6478         ilvl_b, ilvl_h, ilvl_w, ilvl_d, ilvr_b, ilvr_h, ilvr_w, ilvr_d,
6479         ilvev_b, ilvev_h, ilvev_w, ilvev_d, ilvod_b, ilvod_h, ilvod_w,
6480         ilvod_d, vshf_b, vshf_h, vshf_w, vshf_d, and_v, andi_b, or_v,
6481         ori_b, nor_v, nori_b, xor_v, xori_b, bmnz_v, bmnzi_b, bmz_v,
6482         bmzi_b, bsel_v, bseli_b, shf_b, shf_h, shf_w, bnz_v, bz_v,
6483         fill_b, fill_h, fill_w, fill_d, pcnt_b, pcnt_h, pcnt_w,
6484         pcnt_d, nloc_b, nloc_h, nloc_w, nloc_d, nlzc_b, nlzc_h, nlzc_w,
6485         nlzc_d, copy_s_b, copy_s_h, copy_s_w, copy_s_d, copy_u_b,
6486         copy_u_h, copy_u_w, copy_u_d, insert_b, insert_h, insert_w,
6487         insert_d, insve_b, insve_h, insve_w, insve_d, bnz_b, bnz_h,
6488         bnz_w, bnz_d, bz_b, bz_h, bz_w, bz_d, ldi_b, ldi_h, ldi_w, ldi_d,
6489         fcaf_w, fcaf_d, fcor_w, fcor_d, fcun_w, fcun_d, fcune_w, fcune_d,
6490         fcueq_w, fcueq_d, fceq_w, fceq_d, fcne_w, fcne_d, fclt_w, fclt_d,
6491         fcult_w, fcult_d, fcle_w, fcle_d, fcule_w, fcule_d, fsaf_w,
6492         fsaf_d, fsor_w, fsor_d, fsun_w, fsun_d, fsune_w, fsune_d,
6493         fsueq_w, fsueq_d, fseq_w, fseq_d, fsne_w, fsne_d, fslt_w,
6494         fslt_d, fsult_w, fsult_d, fsle_w, fsle_d, fsule_w, fsule_d,
6495         fadd_w, fadd_d, fsub_w, fsub_d, fmul_w, fmul_d, fdiv_w, fdiv_d,
6496         fmadd_w, fmadd_d, fmsub_w, fmsub_d, fexp2_w, fexp2_d, fexdo_h,
6497         fexdo_w, ftq_h, ftq_w, fmin_w, fmin_d, fmin_a_w, fmin_a_d,
6498         fmax_w, fmax_d, fmax_a_w, fmax_a_d, mul_q_h, mul_q_w, mulr_q_h,
6499         mulr_q_w, madd_q_h, madd_q_w, maddr_q_h, maddr_q_w, msub_q_h,
6500         msub_q_w, msubr_q_h, msubr_q_w, fclass_w, fclass_d, fsqrt_w,
6501         fsqrt_d, frcp_w, frcp_d, frint_w, frint_d, frsqrt_w, frsqrt_d,
6502         flog2_w, flog2_d, fexupl_w, fexupl_d, fexupr_w, fexupr_d, ffql_w,
6503         ffql_d, ffqr_w, ffqr_d, ftint_s_w, ftint_s_d, ftint_u_w,
6504         ftint_u_d, ftrunc_s_w, ftrunc_s_d, ftrunc_u_w, ftrunc_u_d,
6505         ffint_s_w, ffint_s_d, ffint_u_w, ffint_u_d, ctcmsa, cfcmsa,
6506         move_v builtins.
6507         (mips_get_builtin_decl_index): New array.
6508         (MIPS_ATYPE_QI, MIPS_ATYPE_HI, MIPS_ATYPE_V2DI, MIPS_ATYPE_V4SI)
6509         (MIPS_ATYPE_V8HI, MIPS_ATYPE_V16QI, MIPS_ATYPE_V2DF)
6510         (MIPS_ATYPE_V4SF, MIPS_ATYPE_UV2DI, MIPS_ATYPE_UV4SI)
6511         (MIPS_ATYPE_UV8HI, MIPS_ATYPE_UV16QI): New.
6512         (mips_init_builtins): Initialize mips_get_builtin_decl_index
6513         array.
6514         (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
6515         hook.
6516         (mips_expand_builtin_insn): Prepare operands for
6517         CODE_FOR_msa_addvi_b, CODE_FOR_msa_addvi_h, CODE_FOR_msa_addvi_w,
6518         CODE_FOR_msa_addvi_d, CODE_FOR_msa_clti_u_b,
6519         CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w,
6520         CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_u_b,
6521         CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w,
6522         CODE_FOR_msa_clei_u_d, CODE_FOR_msa_maxi_u_b,
6523         CODE_FOR_msa_maxi_u_h, CODE_FOR_msa_maxi_u_w,
6524         CODE_FOR_msa_maxi_u_d, CODE_FOR_msa_mini_u_b,
6525         CODE_FOR_msa_mini_u_h, CODE_FOR_msa_mini_u_w,
6526         CODE_FOR_msa_mini_u_d, CODE_FOR_msa_subvi_b,
6527         CODE_FOR_msa_subvi_h, CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d,
6528         CODE_FOR_msa_ceqi_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w,
6529         CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b,
6530         CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w,
6531         CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clei_s_b,
6532         CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w,
6533         CODE_FOR_msa_clei_s_d, CODE_FOR_msa_maxi_s_b,
6534         CODE_FOR_msa_maxi_s_h, CODE_FOR_msa_maxi_s_w,
6535         CODE_FOR_msa_maxi_s_d, CODE_FOR_msa_mini_s_b,
6536         CODE_FOR_msa_mini_s_h, CODE_FOR_msa_mini_s_w,
6537         CODE_FOR_msa_mini_s_d, CODE_FOR_msa_andi_b, CODE_FOR_msa_ori_b,
6538         CODE_FOR_msa_nori_b, CODE_FOR_msa_xori_b, CODE_FOR_msa_bmzi_b,
6539         CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bseli_b, CODE_FOR_msa_fill_b,
6540         CODE_FOR_msa_fill_h, CODE_FOR_msa_fill_w, CODE_FOR_msa_fill_d,
6541         CODE_FOR_msa_ilvl_b, CODE_FOR_msa_ilvl_h, CODE_FOR_msa_ilvl_w,
6542         CODE_FOR_msa_ilvl_d, CODE_FOR_msa_ilvr_b, CODE_FOR_msa_ilvr_h,
6543         CODE_FOR_msa_ilvr_w, CODE_FOR_msa_ilvr_d, CODE_FOR_msa_ilvev_b,
6544         CODE_FOR_msa_ilvev_h, CODE_FOR_msa_ilvev_w, CODE_FOR_msa_ilvod_b,
6545         CODE_FOR_msa_ilvod_h, CODE_FOR_msa_ilvod_w, CODE_FOR_msa_pckev_b,
6546         CODE_FOR_msa_pckev_h, CODE_FOR_msa_pckev_w, CODE_FOR_msa_pckod_b,
6547         CODE_FOR_msa_pckod_h, CODE_FOR_msa_pckod_w, CODE_FOR_msa_slli_b,
6548         CODE_FOR_msa_slli_h, CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d,
6549         CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w,
6550         CODE_FOR_msa_srai_d, CODE_FOR_msa_srli_b, CODE_FOR_msa_srli_h,
6551         CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d, CODE_FOR_msa_insert_b,
6552         CODE_FOR_msa_insert_h, CODE_FOR_msa_insert_w,
6553         CODE_FOR_msa_insert_d, CODE_FOR_msa_insve_b,
6554         CODE_FOR_msa_insve_h, CODE_FOR_msa_insve_w, CODE_FOR_msa_insve_d,
6555         CODE_FOR_msa_shf_b, CODE_FOR_msa_shf_h, CODE_FOR_msa_shf_w,
6556         CODE_FOR_msa_shf_w_f, CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h,
6557         CODE_FOR_msa_vshf_w, CODE_FOR_msa_vshf_d.
6558         (mips_expand_builtin): Add case for MIPS_BULTIN_MSA_TEST_BRANCH.
6559         (mips_set_compression_mode): Disallow MSA with MIPS16 code.
6560         (mips_option_override): -mmsa requires -mfp64 and -mhard-float.
6561         These are set implicitly and an error is reported if overridden.
6562         (mips_expand_builtin_msa_test_branch): New function.
6563         (mips_expand_msa_shuffle): Likewise.
6564         (MAX_VECT_LEN): Increase maximum length of a vector to 16 bytes.
6565         (TARGET_SCHED_REASSOCIATION_WIDTH): Define target hook.
6566         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Likewise.
6567         (mips_expand_vec_unpack): Add support for MSA.
6568         (mips_expand_vector_init): Likewise.
6569         (mips_expand_vi_constant): Use CONST0_RTX (element_mode)
6570         instead of const0_rtx.
6571         (mips_msa_vec_parallel_const_half): New function.
6572         (mips_gen_const_int_vector): Likewise.
6573         (mips_gen_const_int_vector_shuffle): Likewise.
6574         (mips_expand_msa_cmp): Likewise.
6575         (mips_expand_vec_cond_expr): Likewise.
6576         * config/mips/mips.h
6577         (TARGET_CPU_CPP_BUILTINS): Add __mips_msa and __mips_msa_width.
6578         (OPTION_DEFAULT_SPECS): Ignore --with-fp-32 if -mmsa is
6579         specified.
6580         (ASM_SPEC): Pass mmsa and mno-msa to the assembler.
6581         (ISA_HAS_MSA): New macro.
6582         (UNITS_PER_MSA_REG): Likewise.
6583         (BITS_PER_MSA_REG): Likewise.
6584         (BIGGEST_ALIGNMENT): Redefine using ISA_HAS_MSA.
6585         (MSA_REG_FIRST): New macro.
6586         (MSA_REG_LAST): Likewise.
6587         (MSA_REG_NUM): Likewise.
6588         (MSA_REG_P): Likewise.
6589         (MSA_REG_RTX_P): Likewise.
6590         (MSA_SUPPORTED_MODE_P): Likewise.
6591         (HARD_REGNO_CALL_PART_CLOBBERED): Redefine using TARGET_MSA.
6592         (ADDITIONAL_REGISTER_NAMES): Add named registers $w0-$w31.
6593         * config/mips/mips.md: Include mips-msa.md.
6594         (alu_type): Add simd_add.
6595         (mode): Add V2DI, V4SI, V8HI, V16QI, V2DF, V4SF.
6596         (type): Add simd_div, simd_fclass, simd_flog2, simd_fadd,
6597         simd_fcvt, simd_fmul, simd_fmadd, simd_fdiv, simd_bitins,
6598         simd_bitmov, simd_insert, simd_sld, simd_mul, simd_fcmp,
6599         simd_fexp2, simd_int_arith, simd_bit, simd_shift, simd_splat,
6600         simd_fill, simd_permute, simd_shf, simd_sat, simd_pcnt,
6601         simd_copy, simd_branch, simd_cmsa, simd_fminmax, simd_logic,
6602         simd_move, simd_load, simd_store.  Choose "multi" for moves
6603         for "qword_mode".
6604         (qword_mode): New attribute.
6605         (insn_count): Add instruction count for quad moves.
6606         Increase the count for MIPS SIMD division.
6607         (UNITMODE): Add UNITMODEs for vector types.
6608         (addsub): New code iterator.
6609         * config/mips/mips.opt (mmsa): New option.
6610         * config/mips/msa.h: New file.
6611         * config/mips/mti-elf.h: Don't infer -mfpxx if -mmsa is
6612         specified.
6613         * config/mips/mti-linux.h: Likewise.
6614         * config/mips/predicates.md
6615         (const_msa_branch_operand): New constraint.
6616         (const_uimm3_operand): Likewise.
6617         (const_uimm4_operand): Likewise.
6618         (const_uimm5_operand): Likewise.
6619         (const_uimm8_operand): Likewise.
6620         (const_imm5_operand): Likewise.
6621         (aq10b_operand): Likewise.
6622         (aq10h_operand): Likewise.
6623         (aq10w_operand): Likewise.
6624         (aq10d_operand): Likewise.
6625         (const_m1_operand): Likewise.
6626         (reg_or_m1_operand): Likewise.
6627         (const_exp_2_operand): Likewise.
6628         (const_exp_4_operand): Likewise.
6629         (const_exp_8_operand): Likewise.
6630         (const_exp_16_operand): Likewise.
6631         (const_vector_same_val_operand): Likewise.
6632         (const_vector_same_simm5_operand): Likewise.
6633         (const_vector_same_uimm5_operand): Likewise.
6634         (const_vector_same_uimm6_operand): Likewise.
6635         (const_vector_same_uimm8_operand): Likewise.
6636         (par_const_vector_shf_set_operand): Likewise.
6637         (reg_or_vector_same_val_operand): Likewise.
6638         (reg_or_vector_same_simm5_operand): Likewise.
6639         (reg_or_vector_same_uimm6_operand): Likewise.
6640         * doc/extend.texi (MIPS SIMD Architecture Functions): New
6641         section.
6642         * doc/invoke.texi (-mmsa): Document new option.
6643
6644 2016-05-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6645
6646         * configure.ac (enable_vtable_verify): Handle --enable-vtable-verify.
6647         * configure: Regenerate.
6648         * config.in: Regenerate.
6649         * gcc.c (VTABLE_VERIFICATION_SPEC) [!ENABLE_VTABLE_VERIFY]: Error
6650         on -fvtable-verify.
6651         * config/sol2.h [!ENABLE_VTABLE_VERIFY] (STARTFILE_VTV_SPEC): Define.
6652         (ENDFILE_VTV_SPEC): Define.
6653
6654 2016-05-09  Kaushik Phatak  <kaushik.phatak@kpit.com>
6655
6656         * config/rl78/rl78.c (rl78_expand_prologue): Save the MDUC related
6657         registers in all interrupt handlers if necessary.
6658         (rl78_option_override): Add warning.
6659         (MUST_SAVE_MDUC_REGISTERS): New macro.
6660         (rl78_expand_epilogue): Restore the MDUC registers if necessary.
6661         * config/rl78/rl78.c (check_mduc_usage): New function.
6662         (mduc_regs): New structure to hold MDUC register data.
6663         * config/rl78/rl78.md (is_g13_muldiv_insn): New attribute.
6664         (mulsi3_g13): Add is_g13_muldiv_insn attribute.
6665         (udivmodsi4_g13): Add is_g13_muldiv_insn attribute.
6666         (mulhi3_g13): Add is_g13_muldiv_insn attribute.
6667         * config/rl78/rl78.opt (msave-mduc-in-interrupts): New option.
6668         * doc/invoke.texi (RL78 Options): Add -msave-mduc-in-interrupts.
6669
6670 2016-05-09  Bin Cheng  <bin.cheng@arm.com>
6671
6672         * tree-if-conv.c (tree-ssa-loop.h): Include header file.
6673         (tree-ssa-loop-niter.h): Ditto.
6674         (idx_within_array_bound, ref_within_array_bound): New functions.
6675         (ifcvt_memrefs_wont_trap): Check if array ref is within bound.
6676         Factor out check on writable base object to ...
6677         (base_object_writable): ... here.
6678
6679 2016-05-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6680
6681         * config/arm/arm.md (probe_stack): Add modes to set source
6682         and destination.
6683
6684 2016-05-09  Bernd Schmidt  <bschmidt@redhat.com>
6685
6686         * regrename.c (base_reg_class_for_rename): New static function.
6687         (scan_rtx_address, scan_rtx): Use it instead of base_reg_class.
6688
6689 2016-05-08  Jan Hubicka  <hubicka@ucw.cz>
6690
6691         * cgraph.c (thunk_adjust): Export.
6692         * cgraphclones.c (cgraph_node::create_clone): Clone thunk info.
6693         * cgraphunit.c (thunk_adjust): Export.
6694         (cgraph_node::assemble_thunks_and_aliases): Do not assemble inlined
6695         thunks.
6696         * ipa-inline-analyssi.c (compute_inline_parameters): Thunks are
6697         inlinable.
6698         * tree-inline.c (expand_call_inline): Expand thunks inline.
6699
6700 2016-05-08  Uros Bizjak  <ubizjak@gmail.com>
6701
6702         PR target/70998
6703         * config/i386/sse.md (*sse2_vd_cvtsd2ss): New insn pattern.
6704         (*sse2_vd_cvtss2sd): Ditto.
6705         * config/i386/i386.md
6706         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf splitter):
6707         Generate *sse2_vd_cvtsd2ss pattern.
6708         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df splitter):
6709         Generate *sse2_vd_cvtss2sd pattern.
6710
6711 2016-05-08  Oleg Endo  <olegendo@gcc.gnu.org>
6712
6713         * config/sh/sh.h (GET_SH_ARG_CLASS): Convert macro into ...
6714         * config/sh/sh.c (get_sh_arg_class): ... this new function.  Update its
6715         users.
6716
6717 2016-05-08  Oleg Endo  <olegendo@gcc.gnu.org>
6718
6719         * config/sh/sh-protos.h (sh_media_register_for_return): Remove.
6720         * config/sh/sh.c: Define and declare variables on first use throughout
6721         the file.
6722         (current_function_interrupt): Change to bool type.
6723         (frame_insn): Rename to emit_frame_insn and update users.
6724         (push_regs): Use bool for 'interrupt_handler' argument.
6725         (save_schedule_s): Remove.
6726         (TARGET_ASM_UNALIGNED_DI_OP, TARGET_ASM_ALIGNED_DI_OP): Remove.
6727         (sh_option_override): Don't nullify targetm.asm_out.aligned_op.di and
6728         targetm.asm_out.unaligned_op.di.
6729         (gen_far_branch): Remove redundant forward declaration.
6730         (sh_media_register_for_return, MAX_SAVED_REGS, save_entry_s, save_entry,
6731         MAX_TEMPS, save_schedule_ssave_schedule): Remove.
6732         (sh_set_return_address, sh_function_ok_for_sibcall,
6733         scavenge_reg): Update comments.
6734         (sh_builtin_saveregs): Use TRAGET_FPU_ANY condition.
6735         (sh2a_get_function_vector_number, sh2a_function_vector_p): Use for loop.
6736         (sh_attr_renesas_p): Remove unnecessary parentheses.
6737         (branch_dest): Simplify.
6738         * config/sh/sh.h (sh_args): Remove byref, byref_regs, stack_regs fields.
6739         Change force_mem, prototype_p, outgoing, renesas_abi fields to bool.
6740         (CUMULATIVE_ARGS): Change macro to typedef.
6741         (current_function_interrupt): Change to bool type.
6742         (sh_arg_class, sh_args, CUMULATIVE_ARGS, current_function_interrupt):
6743         Surround with __cplusplus ifdef.
6744         (sh_compare_op0, sh_compare_op1): Remove.
6745         (EPILOGUE_USES): Use TARGET_FPU_ANY condition.
6746
6747 2016-05-07  Jim Wilson  <jim.wilson@linaro.org>
6748
6749         * config/arm/arm.md: (arch): Add neon.
6750         (arch_enabled): Return yes for arch neon when TARGET_NEON.
6751         * config/arm/vfp.md (movdf_vfp): Add w/G as alternative 3.  Add
6752         neon_move as type for alt 3.  Add arch attr enabling alt 3 for neon.
6753         Emit vmov.i64 for alt 3.  Renumber alternatives 3 to 8.  Adjust
6754         attributes for alt renumbering.  Mark alt 3 as non-predicable.
6755         (thumb2_movdf_vfp): Likewise.
6756
6757 2016-05-07  Uros Bizjak  <ubizjak@gmail.com>
6758
6759         * config/i386/i386.md (*addqi_1): Add preferred_for_speed attribute
6760         to disparage alternatives 3 and 4 for TARGET_PARTIAL_REG_STALL targets.
6761         (*andqi_1): Add preferred_for_speed attribute to disparage
6762         alternative 2 for TARGET_PARTIAL_REG_STALL targets.
6763         (*<code>qi_1): Ditto.
6764         (*one_cmplqi2_1): Add preferred_for_speed attribute to disparage
6765         alternative 1 for TARGET_PARTIAL_REG_STALL targets.
6766         (*ashlqi3_1): Ditto.
6767         (*swap<mode>): Merge from *swap<mode>_1 and *swap<mode>_2 patterns.
6768         Add preferred_for_size attribute to disparage alternative 0 and
6769         preferred_for_speed attribute to disparage alternative 1 for
6770         TARGET_PARTIAL_REG_STALL targets.
6771
6772 2016-05-07  Tom de Vries  <tom@codesourcery.com>
6773
6774         PR tree-optimization/70956
6775         * graphite-scop-detection.c (build_cross_bb_scalars_def): Handle NULL
6776         def.
6777
6778 2016-05-07  Oleg Endo  <olegendo@gcc.gnu.org>
6779
6780         * config/sh/sh-protos.h (sh_cbranch_distance): Declare new function.
6781         * config/sh/sh.c (sh_cbranch_distance): Implement it.
6782         * config/sh/sh.md (branch_zero): Remove define_attr.
6783         (define_delay): Disable delay slot if branch distance is one insn.
6784
6785 2016-05-06  Uros Bizjak  <ubizjak@gmail.com>
6786
6787         * config/i386/i386.md (LEAMODE): New mode attribute.
6788         (plus to LEA splitter): Rewrite splitter using LEAMODE mode attribute.
6789         (ashift to LEA splitter): Rewrte splitter using SWI mode iterator
6790         and LEAMODE mode attribute.  Use VOIDmode const_0_to_3_operand as
6791         operand 2 predicate.
6792         (*lea<mode>_general_2): Use VOIDmode for const248_operand.
6793         (*lea<mode>_general_3): Ditto.
6794         (*lea<mode>_general_4): Use VOIDmode for const_0_to_3_operand.
6795
6796 2016-05-06  Jakub Jelinek  <jakub@redhat.com>
6797
6798         * genmddump.c (main): Convert argv from char ** to const char **.
6799
6800 2016-05-06  David Malcolm  <dmalcolm@redhat.com>
6801
6802         * coretypes.h (OVERRIDE): New macro.
6803         (FINAL): New macro.
6804
6805 2016-05-06  Eric Botcazou  <ebotcazou@adacore.com>
6806
6807         * tree-ssa-coalesce.c (gimple_can_coalesce_p): In the optimized case,
6808         allow coalescing if the types are compatible.
6809
6810 2016-05-06  David Malcolm  <dmalcolm@redhat.com>
6811
6812         * pass_manager.h (pass_manager::register_pass_name): New method.
6813         (pass_manager::get_pass_by_name): New method.
6814         (pass_manager::create_pass_tab): New method.
6815         (pass_manager::m_name_to_pass_map): New field.
6816         * passes.c (name_to_pass_map): Delete global in favor of field
6817         "m_name_to_pass_map" of pass_manager.
6818         (register_pass_name): Rename from a function to...
6819         (pass_manager::register_pass_name): ...this method, updating
6820         for renaming of global "name_to_pass_map" to field
6821         "m_name_to_pass_map".
6822         (create_pass_tab): Rename from a function to...
6823         (pass_manager::create_pass_tab): ...this method, updating
6824         for renaming of global "name_to_pass_map" to field.
6825         (get_pass_by_name): Rename from a function to...
6826         (pass_manager::get_pass_by_name): ...this method.
6827         (enable_disable_pass): Convert use of get_pass_by_name to
6828         a method call, locating the pass_manager singleton.
6829
6830 2016-05-06  David Malcolm  <dmalcolm@redhat.com>
6831
6832         * genattr-common.c (main): Convert argv from char ** to const char **.
6833         * genattr.c (main): Likewise.
6834         * genattrtab.c (main): Likewise.
6835         * genautomata.c (initiate_automaton_gen): Likewise.
6836         (main): Likewise.
6837         * gencodes.c (main): Likewise.
6838         * genconditions.c (main): Likewise.
6839         * genconfig.c (main): Likewise.
6840         * genconstants.c (main): Likewise.
6841         * genemit.c (main): Likewise.
6842         * genenums.c (main): Likewise.
6843         * genextract.c (main): Likewise.
6844         * genflags.c (main): Likewise.
6845         * genmddeps.c (main): Likewise.
6846         * genopinit.c (main): Likewise.
6847         * genoutput.c (main): Likewise.
6848         * genpeep.c (main): Likewise.
6849         * genpreds.c (main): Likewise.
6850         * genrecog.c (main): Likewise.
6851         * gensupport.c (init_rtx_reader_args_cb): Likewise.
6852         (init_rtx_reader_args): Likewise.
6853         * gensupport.h (init_rtx_reader_args_cb): Likewise.
6854         (init_rtx_reader_args): Likewise.
6855         * gentarget-def.c (main): Likewise.
6856         * read-md.c (read_md_files): Likewise.
6857         * read-md.h (read_md_files): Likewise.
6858
6859 2016-05-06  Uros Bizjak  <ubizjak@gmail.com>
6860
6861         * config/i386/i386.md (int cmove peephole2s): Use general_reg_operand
6862         instead of register_and_not_any_fp_reg_operand as operand 0 predicate.
6863         * config/i386/predicates.md (register_and_not_any_fp_reg_operand):
6864         Remove unused predicate.
6865         (register_and_not_fp_reg_operand): Ditto.
6866
6867 2016-05-06  Martin Liska  <mliska@suse.cz>
6868
6869         * tree-if-conv.c (ifcvt_split_critical_edges): Use auto_vec
6870         instead of vec as the vector is local to the function.
6871
6872 2016-05-06  Jakub Jelinek  <jakub@redhat.com>
6873
6874         * config/i386/sse.md (*<code>v8hi3, *<code>v16qi3): Add
6875         avx512bw alternative.
6876
6877         * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>): Move
6878         before the ashr<mode>3 pattern.
6879
6880         * config/i386/sse.md (*avx2_pmaddwd, *sse2_pmaddwd): Use
6881         v instead of x in vex or maybe_vex alternatives, use
6882         maybe_evex instead of vex in prefix.
6883
6884         * config/i386/sse.md (*vec_extractv4sf_0, *sse4_1_extractps,
6885         *vec_extractv4sf_mem, vec_extract_lo_v16hi, vec_extract_hi_v16hi,
6886         vec_extract_lo_v32qi, vec_extract_hi_v32qi): Use v instead of x
6887         in vex or maybe_vex alternatives, use maybe_evex instead of vex
6888         in prefix.
6889
6890         * config/i386/sse.md (*vec_concatv2sf_sse4_1, *vec_concatv4sf): Use
6891         v instead of x in vex or maybe_vex alternatives, use
6892         maybe_evex instead of vex in prefix.
6893
6894         * config/i386/sse.md (sse_shufps_<mode>, sse_storehps, sse_loadhps,
6895         sse_storelps, sse_movss, avx2_vec_dup<mode>, avx2_vec_dupv8sf_1,
6896         sse2_shufpd_<mode>, sse2_storehpd, sse2_storelpd, sse2_loadhpd,
6897         sse2_loadlpd, sse2_movsd): Use v instead of x in vex or maybe_vex
6898         alternatives, use maybe_evex instead of vex in prefix.
6899
6900         * config/i386/sse.md (vec_interleave_lowv4sf,
6901         *vec_interleave_highv2df, *vec_interleave_lowv2df): Use
6902         v instead of x in vex or maybe_vex alternatives, use
6903         maybe_evex instead of vex in prefix.
6904
6905         * config/i386/sse.md (sse_movhlps, sse_movlhps): Use
6906         v instead of x in vex or maybe_vex alternatives, use
6907         maybe_evex instead of vex in prefix.
6908
6909         * config/i386/sse.md (*avx_cvtpd2dq256_2, *avx_cvtps2pd256_2): Use
6910         v constraint instead of x.
6911
6912 2016-05-06  Nathan Sidwell  <nathan@codesourcery.com>
6913
6914         * gimple.c (gimple_call_same_target_p): Unique functions are eq.
6915         * tree-ssa-tail-merge.c (same_succ::equal): Check pointer eq
6916         equality first.
6917
6918 2016-05-06  Richard Biener  <rguenther@suse.de>
6919
6920         PR tree-optimization/70948
6921         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
6922         Properly clobber all fields of va_list for __builtin_va_start.
6923
6924 2016-05-06  Yuri Rumyantsev  <ysrumyan@gmail.com>
6925
6926         PR debug/70935
6927         * tree-ssa-loop-unswitch.c (find_loop_guard): Reject guard edge with
6928         loop latch destination.
6929
6930 2016-05-06  Martin Liska  <mliska@suse.cz>
6931
6932         * tree-ssa-uninit.c: Apply manual changes
6933         to the GNU coding style.
6934         (prune_uninit_phi_opnds): Rename from
6935         prune_uninit_phi_opnds_in_unrealizable_paths.
6936
6937 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
6938
6939         * config/sh/sh.opt (madjust-unroll, minvalid-symbols, msoft-atomic,
6940         mspace): Remove deprecated options.
6941         * doc/invoke.texi (SH options): Remove -mspace.
6942
6943 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
6944
6945         * config/sh/sh.md (ic_invalidate_line_sh4a): Fix insn length.
6946
6947 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
6948
6949         * config/sh/sh.md (*cmpeqsi_t): Remove combine insn pattern and similar
6950         corresponding combine split pattern.
6951
6952 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
6953
6954         PR target/58219
6955         * config/sh/predicates.md (long_displacement_mem_operand): New.
6956         * config/sh/sh.md (movsi_i): Allow for SH2A, disallow for any FPU.
6957         Add movi20, movi20s alternatives.  Adjust length attribute for
6958         alternatives.
6959         (movsi_ie): Allow for any FPU.  Adjust length attribute for
6960         alternatives.
6961         (movsi_i_lowpart): Add movi20, movi20s alternatives.  Adjust length
6962         attribute for alternatives.
6963         (*mov<mode>): Use long_displacement_mem_operand for length attribute.
6964         (*movdi_i, movdf_k, movdf_i4, movsf_i, movsf_ie, movsf_ie_ra): Adjust
6965         length attribute for alternatives.
6966
6967 2016-05-06  Richard Biener  <rguenther@suse.de>
6968
6969         PR tree-optimization/70960
6970         * tree-if-conv.c (ifcvt_walk_pattern_tree): Handle non-SSA ops.
6971
6972 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
6973
6974         PR target/52933
6975         * config/sh/sh.md (*cmp_div0s_7, *cmp_div0s_8): Add div0s variants.
6976         * config/sh/sh.c (sh_rtx_costs): Add another div0s case.
6977
6978 2016-05-06  Marek Polacek  <polacek@redhat.com>
6979
6980         PR sanitizer/70875
6981         * ubsan.c (get_ubsan_type_info_for_type): Remove assert.
6982
6983 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
6984
6985         PR target/54089
6986         * config/sh/sh.md (*rotcr): Add another variant.
6987
6988 2016-05-06  Richard Biener  <rguenther@suse.de>
6989
6990         PR middle-end/70931
6991         * dwarf2out.c (native_encode_initializer): Skip zero-sized fields.
6992
6993 2016-05-06  Richard Biener  <rguenther@suse.de>
6994
6995         PR middle-end/70941
6996         * fold-const.c (split_tree): Always convert to the original type
6997         before negating.
6998
6999 2016-05-06  Richard Biener  <rguenther@suse.de>
7000
7001         * fwprop.c (fwprop): Remove duplicate cleanup_cfg call.
7002         (fwprop_addr): Likewise.
7003
7004 2016-05-06  Uros Bizjak  <ubizjak@gmail.com>
7005
7006         PR target/70873
7007         * config/i386/i386-protos.h (ix86_standard_x87sse_constant_load_p):
7008         New prototype.
7009         * config/i386/i386.c (ix86_standard_x87sse_constant_load_p): New.
7010         * config/i386/i386.md (push mem splitter): Use find_constant_src in
7011         the splitter condition.
7012         (FP load splitter): Use ix86_standard_x87sse_constant_load_p in
7013         the splitter condition.
7014         (FP float_extend load splitter): Ditto.
7015
7016 2016-05-05  Uros Bizjak  <ubizjak@gmail.com>
7017
7018         * config/i386/i386.md (peehole2 patterns): Change true_regnum
7019         to REGNO in all peephole2 patterns.
7020         (post-reload splitters): Change true_regnum to REGNO in
7021         post-reload splitters.
7022         (zero_extend splitters): Use general_reg_operand and
7023         nonimmediate_gr_operand predicates.
7024
7025 2016-05-05  Jakub Jelinek  <jakub@redhat.com>
7026
7027         * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>): Use
7028         v constraint instead of x.
7029
7030 2016-05-05  Alan Modra  <amodra@gmail.com>
7031
7032         PR target/68662
7033         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't
7034         set OPTION_MASK_RELOCATABLE when flag_pic == 2.  Set
7035         TARGET_NO_FP_IN_TOC for -mrelocatable.
7036         (MINIMAL_TOC_SECTION_ASM_OP): Remove redundant
7037         TARGET_RELOCATABLE test.
7038         (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
7039         (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
7040         * config/rs6000/linux64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
7041         (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
7042         (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
7043         * config/rs6000/freebsd64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
7044         (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
7045         (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
7046         * config/rs6000/predicates.md (easy_fp_constant): Likewise.
7047         * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
7048         Likewise.
7049         (rs6000_assemble_integer): Update TARGET_RELOCATABLE test.
7050         (rs6000_stack_info): Likewise.
7051         (rs6000_elf_asm_out_constructor): Likewise.
7052         (rs6000_elf_asm_out_destructor): Likewise.
7053         (rs6000_elf_declare_function_name): Likewise.
7054         * config/rs6000/rs6000.md (load_toc_aix_di): Likewise.
7055         * config/rs6000/rs6000.h (MASK_RELOCATABLE, MASK_MINIMAL_TOC):
7056         Don't define.
7057
7058 2016-05-05  Alan Modra  <amodra@gmail.com>
7059
7060         * config/rs6000/rs6000.c (rs6000_frame_related): Rewrite.
7061
7062 2016-05-05  Alan Modra  <amodra@gmail.com>
7063
7064         * config/rs6000/rs6000.c (rs6000_savres_strategy): Don't use
7065         out-of-line gpr restore for one or two regs if that would add
7066         a save of lr.
7067
7068 2016-05-04  Uros Bizjak  <ubizjak@gmail.com>
7069
7070         PR target/70873
7071         * config/i386/i386.md
7072         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df peephole2):
7073         Change to post-epilogue_completed late splitter.  Use sse_reg_operand
7074         as operand 0 predicate.
7075         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf peephole2):
7076         Ditto.
7077         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float {si,di}->{sf,df} peephole2):
7078         Ditto.  Emit the pattern using RTX.
7079
7080         (TARGET_USE_VECTOR_FP_CONVERTS float_extend sf->df splitter):
7081         Use sse_reg_opreand as operand 0 predicate.  Do not use true_regnum in
7082         the post-reload splitter.  Use lowpart_subreg instead of gen_rtx_REG.
7083         (TARGET_USE_VECTOR_FP_CONVERTS float_truncate df->sf splitter):
7084         Ditto.
7085         (TARGET_USE_VECTOR_CONVERTS float si->{sf,df} splitter): Use
7086         sse_reg_operand as operand 0 predicate.
7087
7088         (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_extend sf->df peephole2):
7089         Use sse_reg_opreand as operand 0 predicate.  Use lowpart_subreg
7090         instead of gen_rtx_REG.
7091         (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_truncate sf->df peephole2):
7092         Ditto.
7093
7094 2016-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
7095
7096         * function.c (emit_use_return_register_into_block): Delete.
7097         (gen_return_pattern): Delete.
7098         (emit_return_into_block): Delete.
7099         (active_insn_between): Delete.
7100         (convert_jumps_to_returns): Delete.
7101         (emit_return_for_exit): Delete.
7102         (thread_prologue_and_epilogue_insns): Delete all code dealing with
7103         simple_return for shrink-wrapped blocks.
7104         * shrink-wrap.c (try_shrink_wrapping): Insert simple_return at the
7105         end of blocks that need one.
7106         (get_unconverted_simple_return): Delete.
7107         (convert_to_simple_return): Delete.
7108         * shrink-wrap.c (get_unconverted_simple_return): Delete declaration.
7109         (convert_to_simple_return): Ditto.
7110
7111 2016-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
7112
7113         * cfgcleanup.c (bb_is_just_return): New function.
7114         (try_optimize_cfg): Simplify jumps to return, branches to return,
7115         and branches around return.
7116
7117 2016-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
7118
7119         * cfgcleanup.c (try_simplify_condjump): Don't try to simplify a
7120         branch to a return.
7121
7122 2016-05-04  Jakub Jelinek  <jakub@redhat.com>
7123
7124         PR c++/70906
7125         PR c++/70933
7126         * tree-core.h (enum operand_equal_flag): Add OEP_HASH_CHECK.
7127         * tree.c (inchash::add_expr): If !IS_EXPR_CODE_CLASS (tclass),
7128         assert flags & OEP_HASH_CHECK, instead of asserting it
7129         never happens.  Handle TARGET_EXPR.
7130         * fold-const.c (operand_equal_p): For hash verification,
7131         or in OEP_HASH_CHECK into flags.
7132
7133 2016-05-04  Eric Botcazou  <ebotcazou@adacore.com>
7134
7135         * tree-ssa-coalesce.c (gimple_can_coalesce_p): Fix reference in head
7136         comment.
7137         (compute_samebase_partition_bases): Fix typo.
7138
7139 2016-05-04  Jakub Jelinek  <jakub@redhat.com>
7140
7141         * config/i386/sse.md (vec_interleave_highv8sf,
7142         vec_interleave_lowv8sf, vec_interleave_highv4df,
7143         vec_interleave_lowv4df): Remove constraints from expanders.
7144
7145         * config/i386/sse.md (sse2_movq128): Use v constraint instead of x.
7146
7147 2016-05-04  Jan Hubicka  <hubicka@ucw.cz>
7148
7149         * tree-inline.c (expand_call_inline): Fix path dealing with
7150         making lhs of call statement undefined.
7151
7152 2016-05-04  Jan Hubicka  <hubicka@ucw.cz>
7153
7154         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
7155         Check availability on NODE, too.
7156         * cgraph.h (symtab_node::call_for_symbol_and_aliases): Likewise.
7157         (cgraph_node::call_for_symbol_and_aliases): Likewise.
7158         (varpool_node::call_for_symbol_and_aliase): Likewise.
7159         * ipa-pure-const.c (add_new_function): Analyze all bodies.
7160         (propagate_pure_const): Propagate across interposable functions, too.
7161         (skip_function_for_local_pure_const): Do not skip interposable bodies
7162         with aliases.
7163         (pass_local_pure_const::execute): Update.
7164
7165 2016-05-04  Marek Polacek  <polacek@redhat.com>
7166
7167         * doc/invoke.texi: Document -Wdangling-else.
7168
7169 2016-05-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
7170
7171         * config.gcc: Error out when conflicting multilib is detected.  Do not
7172         loop over multilibs since no combination is legal.
7173
7174 2016-05-04  Alan Modra  <amodra@gmail.com>
7175
7176         * config/rs6000/rs6000.h (PIC_OFFSET_TABLE_REGNUM): Correct.
7177         * config/rs6000/sysv4.h (TARGET_TOC): Simplify.
7178         * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
7179         Align .toc.
7180
7181 2016-05-04  Matthew Fortune  <matthew.fortune@imgtec.com>
7182
7183         * config/mips/mips-cpus.def (p5600): Avoid IMADD by default.
7184         Clean up p5600 comments.
7185
7186 2016-05-04  Richard Biener  <rguenther@suse.de>
7187
7188         * match.pd: Add BIT_FIELD_REF canonicalizations and vector
7189         constructor simplifications.
7190         * fold-const.c (fold_ternary_loc): Remove duplicate functionality here.
7191
7192 2016-05-04  Oleg Endo  <olegendo@gcc.gnu.org>
7193
7194         * config/sh/predicates (post_inc_mem, pre_dec_mem): New predicates.
7195         * config/sh/sh-protos.h (sh_find_set_of_reg): Return null result if
7196         result.set_rtx is null instead of aborting.
7197         * config/sh/sh.h (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT):
7198         Always enable.
7199         (USE_LOAD_PRE_DECREMENT, USE_STORE_POST_INCREMENT): Enable for SH2A.
7200         * config/sh/sh.md (*extend<mode>si2_predec, *mov<mode>_load_predec,
7201         *mov<mode>_store_postinc): New patterns.
7202
7203 2016-05-04  Marc Glisse  <marc.glisse@inria.fr>
7204
7205         * match.pd ((A | B) & (A | C)): Generalize to BIT_XOR_EXPR.  Mark
7206         as commutative.  Check both conversions are NOP.
7207         ((A & B) OP (C & B)): Remove.
7208
7209 2016-05-04  Alan Modra  <amodra@gmail.com>
7210
7211         * combine.c (simplify_set): Correct WORD_REGISTER_OPERATIONS test.
7212
7213 2016-05-04  Alan Modra  <amodra@gmail.com>
7214
7215         PR target/70866
7216         * config/rs6000/rs6000.c (rs6000_stack_info): Don't set cr_save_p
7217         when cr2,3,4 are all fixed regs.
7218
7219 2016-05-04  Bernd Schmidt  <bschmidt@redhat.com>
7220
7221         PR rtl-optimization/57193
7222         * opts.c (default_options_table): Revert OPT_frename_registers change.
7223         * doc/invoke.texi (-frename-registers, -O2): Likewise.
7224
7225 2016-05-03  Martin Sebor  <msebor@redhat.com>
7226
7227         PR c++/66561
7228         * builtins.c (fold_builtin_FILE): New function.
7229         (fold_builtin_FUNCTION, fold_builtin_LINE): New functions.
7230         (fold_builtin_0): Call them.
7231         * gimplify.c (gimplify_call_expr): Remove the handling of
7232         BUILT_IN_FILE, BUILT_IN_FUNCTION, and BUILT_IN_LINE.
7233
7234         PR c++/66561
7235         * doc/extend.texi (Other Builtins): Update __builtin_FILE,
7236         __builtin_FUNCTION, and __builtin_LINE to reflect they yield
7237         constants.
7238
7239         PR c++/66639
7240         * doc/extend.texi (Function Names as Strings): Update __func__,
7241         __FUNCTION__, __PRETTY_FUNCTION__ to reflect they evaluate to
7242         constants.
7243
7244 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
7245             Richard Biener  <rguenther@suse.de>
7246
7247         PR tree-optimization/70916
7248         * tree-if-conv.c: Include cfganal.h.
7249         (pass_if_conversion::execute): Call connect_infinite_loops_to_exit
7250         and remove_fake_exit_edges around the optimization pass.
7251
7252 2016-05-03  Jan Hubicka  <hubicka@ucw.cz>
7253
7254         * cgraph.c (symbol_table::create_edge): Set inline_failed.
7255         (cgraph_edge::make_direct): Likewise.
7256         (cgraph_edge::dump_edge_flags): Dump call_stmt_cannot_inline_p.
7257         * cgraphclones.c (duplicate_thunk_for_node): Set inline_failed.
7258         * cif-code.def (CIF_LTO_MISMATCHED_DECLARATIONS): New code
7259         (CIF_THUNK): New code.
7260         * ipa-inline-analysis.c (initialize_inline_failed): Preserve
7261         CIF_FINAL_ERROR codes; do not deal with call_stmt_cannot_inline_p.
7262         (compute_inline_parameters): Set inline_failed for thunks.
7263         (inline_analyze_function): Cleanup.
7264         * ipa-inline.c (can_inline_edge_p): Do not deal with
7265         call_stmt_cannot_inline_p.
7266         (can_early_inline_edge_p): Likewise.
7267         (early_inliner): Initialize inline_failed.
7268         * lto-cgraph.c (lto_output_edge): Sanity check inline_failed.
7269
7270 2016-05-03  Uros Bizjak  <ubizjak@gmail.com>
7271
7272         * config/i386/predicates.md (x87nonimm_ssenomem_operand): Rename
7273         from nonimm_ssenomem_operand.
7274         (nonimm_ssenomem_operand): New predicate.
7275         * config/i386/i386.md (extendsfdf2): Use nonimm_ssenomem_operand
7276         as operand 0 predicate.
7277         (*extendsfdf2): Merge from *extendsfdf2_mixed and *extendsfdf2_i387.
7278         Disable unsupported alternatives using "enabled" attribute.
7279         Use register_ssemem_operand as operand 0 predicate.
7280         (*fop_<mode>_1): Use x87nonimm_ssenomem_operand as operand 1 predicate.
7281
7282 2016-05-03  Marek Polacek  <polacek@redhat.com>
7283
7284         PR c/70859
7285         * input.c (expansion_point_location): New function.
7286         * input.h (expansion_point_location): Declare.
7287
7288 2016-05-03  Pierre-Marie de Rodat  <derodat@adacore.com>
7289
7290         * dwarf2out.c (resolve_args_picking_1): Replace the frame_offset
7291         occurence with frame_offset_ ones.
7292
7293 2016-05-03  Alan Modra  <amodra@gmail.com>
7294
7295         PR rtl-optimization/70890
7296         * ira.c (combine_and_move_insns): When moving def_insn, remove
7297         equivs on use_insn.
7298
7299 2016-05-03  Dominik Vogt  <vogt@linux.vnet.ibm.com>
7300
7301         * config/s390/s390.md ("*r<noxa>sbg_<mode>_sll")
7302         ("*r<noxa>sbg_<mode>_srl"): New define_insns.
7303         ("*r<noxa>sbg_<mode>_srl_bitmask"): Rename by adding "_bitmask".
7304         ("*r<noxa>sbg_<mode>_sll_bitmask"): Likewise.
7305
7306 2016-05-03  Alan Modra  <amodra@gmail.com>
7307
7308         * config/rs6000/rs6000.c (rs6000_savres_strategy): Correct condition
7309         for SAVE_MULTIPLE/STORE_MULTIPLE.
7310
7311 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
7312
7313         * config/i386/i386.md (*truncdfsf_mixed, *truncdfsf_i387,
7314         *truncxfsf2_mixed, *truncxfdf2_mixed): Use v constraint instead of x.
7315
7316 2016-05-03  Richard Biener  <rguenther@suse.de>
7317
7318         * gimplify.h (get_initialized_tmp_var): Add allow_ssa parameter
7319         default true.
7320         (gimplify_arg): Likewise.
7321         * gimplify.c (gimplify_expr): Add overload with allow_ssa parameter,
7322         re-writing the result to a decl if required.
7323         (internal_get_tmp_var): Add allow_ssa parameter
7324         and override into_ssa with it.
7325         (get_formal_tmp_var): Adjust.
7326         (get_initialized_tmp_var): Add allow_ssa parameter.
7327         (gimplify_arg): Add allow_ssa parameter and avoid generating
7328         SSA names for the result false.
7329         (gimplify_call_expr): If the call may return twice do not
7330         gimplify parameters into SSA.
7331         (prepare_gimple_addressable): Do not allow an SSA name as temporary.
7332         (gimplify_modify_expr): Adjust assert.  For noreturn calls
7333         with a SSA name LHS adjust its def.
7334         (gimplify_save_expr): Do not allow an SSA name as save-expr result.
7335         (gimplify_one_sizepos): Do not allow an SSA name as a sizepos.
7336         (gimplify_body): Init GIMPLE SSA data structures and gimplify into-SSA.
7337         (gimplify_scan_omp_clauses): Make sure OMP_CLAUSE_SIZE is not
7338         an SSA name.  Likewise for OMP_CLAUSE_REDUCTION operands.
7339         (gimplify_omp_for): Likewise for OMP_CLAUSE_DECL.  Likewise
7340         for OMP_FOR_COND,  OMP_FOR_INCR and OMP_CLAUSE_LINEAR_STEP.
7341         (optimize_target_teams): Do not allow SSA names for clause operands.
7342         (gimplify_expr): Likewise for where we mark the result addressable.
7343         * passes.def (pass_init_datastructures): Remove.
7344         * tree-into-ssa.c (mark_def_sites): Ignore existing SSA names.
7345         (rewrite_stmt): Likewise.
7346         * tree-inline.c (initialize_cfun): Properly transfer SSA state.
7347         (replace_locals_op): Replace SSA names.
7348         (copy_gimple_seq_and_replace_locals): Init src_cfun.
7349         * gimple-low.c (lower_builtin_setjmp): Deal with SSA.
7350         * cgraph.c (release_function_body): Free CFG annotations only
7351         when we have a CFG.  Simplify.
7352         * gimple-fold.c (gimplify_and_update_call_from_tree): Use
7353         force_gimple_operand instead of get_initialized_tmp_var.
7354         * tree-pass.h (make_pass_init_datastructures): Remove.
7355         * tree-ssa.c (execute_init_datastructures): Remove.
7356         (pass_data_init_datastructures): Likewise.
7357         (class pass_init_datastructures): Likewise.
7358         (make_pass_init_datastructures): Likewise.
7359         * omp-low.c (create_omp_child_function): Init SSA data structures.
7360         (grid_expand_target_grid_body): Likewise.
7361         * tree-cfg.c (move_block_to_fn): Double-check the DEF is an SSA
7362         name before adding it to names_to_release.
7363         (remove_bb): Always release SSA defs.
7364         * tree-ssa-ccp.c (get_default_value): Check SSA_NAME_VAR
7365         before dereferencing it.
7366         * cgraphunit.c (init_lowered_empty_function): Always
7367         int SSA data structures.
7368         * tree-ssanames.c (release_defs): Remove assert that we are in
7369         SSA form.
7370         * trans-mem.c (diagnose_tm_1): Handle SSA name function.
7371
7372 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
7373             Uros Bizjak  <ubizjak@gmail.com>
7374
7375         PR rtl-optimization/70467
7376         * config/i386/predicates.md (x86_64_hilo_int_operand,
7377         x86_64_hilo_general_operand): New predicates.
7378         * config/i386/constraints.md (Wd): New constraint.
7379         * config/i386/i386.md (mode attr di): Use Wd instead of e.
7380         (general_hilo_operand): New mode attr.
7381         (add<mode>3, sub<mode>3): Use <general_hilo_operand>
7382         instead of <general_operand>.
7383         (*add<dwi>3_doubleword, *sub<dwi>3_doubleword): Use
7384         x86_64_hilo_general_operand instead of <general_operand>.
7385
7386 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
7387
7388         PR tree-optimization/70916
7389         * tree-if-conv.c (constant_or_ssa_name): Removed.
7390         (fold_build_cond_expr): Use is_gimple_val instead of
7391         constant_or_ssa_name.
7392
7393         PR tree-optimization/70916
7394         * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Give up
7395         if COND_EXPR rhs1 is neither SSA_NAME nor COMPARISON_CLASS_P.
7396
7397         PR target/49244
7398         * tree-ssa-ccp.c: Include stor-layout.h and optabs-query.h.
7399         (optimize_atomic_bit_test_and): New function.
7400         (pass_fold_builtins::execute): Use it.
7401         * optabs.def (atomic_bit_test_and_set_optab,
7402         atomic_bit_test_and_complement_optab,
7403         atomic_bit_test_and_reset_optab): New optabs.
7404         * internal-fn.def (ATOMIC_BIT_TEST_AND_SET,
7405         ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_BIT_TEST_AND_RESET): New ifns.
7406         * builtins.h (expand_ifn_atomic_bit_test_and): New prototype.
7407         * builtins.c (expand_ifn_atomic_bit_test_and): New function.
7408         * internal-fn.c (expand_ATOMIC_BIT_TEST_AND_SET,
7409         expand_ATOMIC_BIT_TEST_AND_COMPLEMENT,
7410         expand_ATOMIC_BIT_TEST_AND_RESET): New functions.
7411         * doc/md.texi (atomic_bit_test_and_set@var{mode},
7412         atomic_bit_test_and_complement@var{mode},
7413         atomic_bit_test_and_reset@var{mode}): Document.
7414         * config/i386/sync.md (atomic_bit_test_and_set<mode>,
7415         atomic_bit_test_and_complement<mode>,
7416         atomic_bit_test_and_reset<mode>): New expanders.
7417         (atomic_bit_test_and_set<mode>_1,
7418         atomic_bit_test_and_complement<mode>_1,
7419         atomic_bit_test_and_reset<mode>_1): New insns.
7420
7421 2016-05-03  Richard Sandiford  <richard.sandiford@arm.com>
7422
7423         PR rtl-optimization/70687
7424         * combine.c (change_zero_ext): Check for scalar modes.  Use wide_int
7425         instead of unsigned HOST_WIDE_INT.
7426
7427 2016-05-03  Bernd Schmidt  <bschmidt@redhat.com>
7428
7429         PR rtl-optimization/44281
7430         * hard-reg-set.h (struct target_hard_regs): New field
7431         x_fixed_nonglobal_reg_set.
7432         (fixed_nonglobal_reg_set): New macro.
7433         * reginfo.c (init_reg_sets_1): Initialize it.
7434         * ira.c (setup_alloc_regs): Use fixed_nonglobal_reg_set instead
7435         of fixed_reg_set.
7436         * df-scan.c (df_insn_refs_collect): Asms may reference global regs.
7437
7438 2016-05-03  Bin Cheng  <bin.cheng@arm.com>
7439
7440         PR tree-optimization/56541
7441         * doc/invoke.texi (@item max-tree-if-conversion-phi-args): New item.
7442         * params.def (PARAM_MAX_TREE_IF_CONVERSION_PHI_ARGS): new param.
7443         * tree-if-conv.c (MAX_PHI_ARG_NUM): new macro.
7444         (any_complicated_phi): new static variable.
7445         (aggressive_if_conv): delete.
7446         (if_convertible_phi_p): support phis with more than two arguments.
7447         (if_convertible_bb_p): remvoe check on aggressive_if_conv and
7448         critical pred edges.
7449         (ifcvt_split_critical_edges): support phis with more than two
7450         arguments by checking new parameter.  only split critical edges
7451         if needed.
7452         (tree_if_conversion): handle simd pragma marked loop using new
7453         local variable aggressive_if_conv.  check any_complicated_phi.
7454
7455 2016-05-03  Bin Cheng  <bin.cheng@arm.com>
7456
7457         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check depends_on
7458         before using it.
7459
7460 2016-05-03  Bin Cheng  <bin.cheng@arm.com>
7461
7462         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Don't clobber
7463         cbase.
7464
7465 2016-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
7466
7467         * config/sh/sh.md (udivsi3, divsi3, mulsi3): Simplify.
7468         (mulhisi3, umulhisi3, (smulsi3_highpart, umulsi3_highpart): Convert to
7469         define_insn_and_split.
7470         (mulsi3_i): New define_insn_and_split.
7471         (mulsi3_call): Convert to define_insn.
7472         (mulsidi3, mulsidi3_compact, umulsidi3, umulsidi3_compact):
7473         Remove constraints.
7474
7475 2016-05-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
7476
7477         * machmode.h (mode_complex): Add support to give the complex mode
7478         for a given mode.
7479         (GET_MODE_COMPLEX_MODE): Likewise.
7480         * stor-layout.c (layout_type): For COMPLEX_TYPE, use the mode
7481         stored by build_complex_type and gfc_build_complex_type instead of
7482         trying to figure out the appropriate mode based on the size. Raise
7483         an assertion error, if the type was not set.
7484         * genmodes.c (struct mode_data): Add field for the complex type of
7485         the given type.
7486         (blank_mode): Likewise.
7487         (make_complex_modes): Remember the complex mode created in the
7488         base type.
7489         (emit_mode_complex): Write out the mode_complex array to map a
7490         type mode to the complex version.
7491         (emit_insn_modes_c): Likewise.
7492         * tree.c (build_complex_type): Set the complex type to use before
7493         calling layout_type.
7494         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Add
7495         support for __float128 complex datatypes.
7496         (rs6000_hard_regno_mode_ok): Likewise.
7497         (rs6000_setup_reg_addr_masks): Likewise.
7498         (rs6000_complex_function_value): Likewise.
7499         * config/rs6000/rs6000.h (FLOAT128_IEEE_P): Likewise.
7500         __float128 and __ibm128 complex.
7501         (FLOAT128_IBM_P): Likewise.
7502         (ALTIVEC_ARG_MAX_RETURN): Likewise.
7503         * doc/extend.texi (Additional Floating Types): Document that
7504         -mfloat128 must be used to enable __float128.  Document complex
7505         __float128 and __ibm128 support.
7506
7507 2016-05-02  Jakub Jelinek  <jakub@redhat.com>
7508
7509         PR target/49244
7510         * gimple.c (gimple_builtin_call_types_compatible_p): Allow
7511         char/short arguments promoted to int because of promote_prototypes.
7512
7513 2016-05-02  Uros Bizjak  <ubizjak@gmail.com>
7514
7515         * config/i386/predicates.md (register_ssemem_operand): New predicate.
7516         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>): Merge from
7517         *cmpi<FPCMP:unord><MODEF:mode>_mixed and
7518         *cmpi<FPCMP:unord><X87MODEF:mode>_i387.  Disable unsupported
7519         alternatives using "enabled" attribute.  Use register_ssemem_operand
7520         as operand 1 predicate.
7521         (*cmpi<unord>xf_i387): Split XFmode pattern from
7522         *cmpi<FPCMP:unord><X87MODEF:mode>_i387.
7523         (*absneg<mode>2): Merge from *absneg<mode>2_mixed and
7524         *absneg<mode>2_i387.  Disable unsupported alternatives using
7525         "enabled" attribute.
7526         (*absnegxf2_i387): Split XFmode pattern from *absneg<mode>2_i387.
7527
7528 2016-05-02  Nathan Sidwell  <nathan@codesourcery.com>
7529
7530         * omp-low.c (lower_oacc_head_tail): Assert there is at least one
7531         marker.
7532         (oacc_loop_process): Check mask for loop termination.
7533
7534 2016-05-02  Jan Hubicka  <hubicka@ucw.cz>
7535
7536         * cif-code.def (CIF_THUNK): Add.
7537         * ipa-inline-analsysis.c (evaluate_conditions_for_known_args): Revert
7538         accidental change.
7539
7540 2016-05-02  Jan Hubicka  <hubicka@ucw.cz>
7541
7542         * ipa-inline-analysis.c (reset_inline_summary): Clear fp_expressions
7543         (dump_inline_summary): Dump it.
7544         (fp_expression_p): New predicate.
7545         (estimate_function_body_sizes): Use it.
7546         (inline_merge_summary): Merge fp_expressions.
7547         (inline_read_section): Read fp_expressions.
7548         (inline_write_summary): Write fp_expressions.
7549         * ipa-inline.c (can_inline_edge_p): Permit inlining across fp math
7550         codegen boundary if either caller or callee is !fp_expressions.
7551         * ipa-inline.h (inline_summary): Add fp_expressions.
7552         * ipa-inline-transform.c (inline_call): When inlining !fp_expressions
7553         to fp_expressions be sure the fp generation flags are updated.
7554
7555 2016-05-02  Jakub Jelinek  <jakub@redhat.com>
7556
7557         PR rtl-optimization/70467
7558         * cse.c (cse_insn): Handle no-op MEM moves after folding.
7559
7560         PR rtl-optimization/70467
7561         * ipa-pure-const.c (check_call): Handle internal calls even in
7562         ipa mode like in local mode.
7563
7564 2016-05-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7565
7566         * doc/install.texi: Document supported in-tree gmp/mpfr/mpc versions.
7567
7568 2016-05-02  Marc Glisse  <marc.glisse@inria.fr>
7569
7570         * match.pd (X u< X, X u> X): New transformations.
7571
7572 2016-05-02  Marc Glisse  <marc.glisse@inria.fr>
7573
7574         * flag-types.h (enum warn_strict_overflow_code): Move ...
7575         * coretypes.h: ... here.
7576         * fold-const.h (fold_overflow_warning): Declare.
7577         * fold-const.c (fold_overflow_warning): Make non-static.
7578         (fold_comparison): Move the transformation of X +- C1 CMP C2
7579         into X CMP C2 -+ C1 ...
7580         * match.pd: ... here.
7581         * gimple-fold.c (fold_stmt_1): Protect with
7582         fold_defer_overflow_warnings.
7583
7584 2016-05-02  Nathan Sidwell  <nathan@codesourcery.com>
7585
7586         * omp-low.c (struct oacc_loop): Add 'inner' field.
7587         (new_oacc_loop_raw): Initialize it to zero.
7588         (oacc_loop_fixed_partitions): Initialize it.
7589         (oacc_loop_auto_partitions): Partition outermost loop to outermost
7590         available partitioning.
7591
7592 2016-05-02  Claudiu Zissulescu  <claziss@synopsys.com>
7593
7594         * config/arc/arc.md (mulsidi3): Change operand 0 predicate to
7595         register_operand.
7596         (umulsidi3): Likewise.
7597         (indirect_jump): Fix jump instruction assembly patterns.
7598
7599 2016-05-02  Thomas Schwinge  <thomas@codesourcery.com>
7600
7601         PR target/70860
7602         * config/nvptx/nvptx.c (nvptx_libcall_value): Handle NULL cfun.
7603         (nvptx_function_value): Assert non-NULL cfun.
7604
7605 2016-05-02  Eric Botcazou  <ebotcazou@adacore.com>
7606
7607         PR rtl-optimization/70886
7608         * sched-deps.c (estimate_dep_weak): Canonicalize cselib values.
7609
7610         * cselib.h (rtx_equal_for_cselib_1): Declare.
7611         (rtx_equal_for_cselib_p: New inline function.
7612         * cselib.c (rtx_equal_for_cselib_p): Delete.
7613         (rtx_equal_for_cselib_1): Make public.
7614
7615 2016-05-02  Uros Bizjak  <ubizjak@gmail.com>
7616
7617         * config/i386/predicates.md (nonimm_ssenomem_operand): New predicate.
7618         (register_mixssei387nonimm_operand): Remove predicate.
7619         * config/i386/i386.md (*fop_<mode>_comm): Merge from
7620         *fop_<mode>_comm_mixed and *fop_<mode>_comm_i387.  Disable unsupported
7621         alternatives using "enabled" attribute.  Also check X87_ENABLE_ARITH
7622         for TARGET_MIX_SSE_I387 alternatives.
7623         (*fop_<mode>_1): Merge from *fop_<mode>_1_mixed and *fop_<mode>_1_i387.
7624         Disable unsupported alternatives using "enabled" attribute.  Use
7625         nonimm_ssenomem_operand as operand 1 predicate.  Also check
7626         X87_ENABLE_ARITH for TARGET_MIX_SSE_I387 alternatives.
7627
7628 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
7629
7630         * tree.c (cst_and_fits_in_hwi): Simplify.
7631
7632 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
7633
7634         * tree.h (wi::to_wide): New function.
7635         * expr.c (expand_expr_real_1): Use wi::to_wide.
7636         * fold-const.c (int_const_binop_1): Likewise.
7637         (extract_muldiv_1): Likewise.
7638
7639 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
7640
7641         * wide-int.h: Update offset_int and widest_int documentation.
7642         (WI_SIGNED_SHIFT_RESULT): New macro.
7643         (wi::binary_shift): Define signed_shift_result_type for
7644         shifts on offset_int- and widest_int-like types.
7645         (generic_wide_int): Support <<= and >>= if << and >> are supported.
7646         * tree.h (int_bit_position): Use shift operators instead of wi::
7647          shifts.
7648         * alias.c (adjust_offset_for_component_ref): Likewise.
7649         * expr.c (get_inner_reference): Likewise.
7650         * fold-const.c (fold_comparison): Likewise.
7651         * gimple-fold.c (fold_nonarray_ctor_reference): Likewise.
7652         * gimple-ssa-strength-reduction.c (restructure_reference): Likewise.
7653         * tree-dfa.c (get_ref_base_and_extent): Likewise.
7654         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
7655         (stmt_kills_ref_p): Likewise.
7656         * tree-ssa-ccp.c (bit_value_binop_1): Likewise.
7657         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Likewise.
7658         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
7659         (ao_ref_init_from_vn_reference): Likewise.
7660
7661 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
7662
7663         * wide-int.h: Update offset_int and widest_int documentation.
7664         (WI_SIGNED_BINARY_PREDICATE_RESULT): New macro.
7665         (wi::binary_traits): Allow ordered comparisons between offset_int and
7666         offset_int, between widest_int and widest_int, and between either
7667         of these types and basic C types.
7668         (operator <, <=, >, >=): Define for the same combinations.
7669         * tree.h (tree_int_cst_lt): Use comparison operators instead
7670         of wi:: comparisons.
7671         (tree_int_cst_le): Likewise.
7672         * gimple-fold.c (fold_array_ctor_reference): Likewise.
7673         (fold_nonarray_ctor_reference): Likewise.
7674         * gimple-ssa-strength-reduction.c (record_increment): Likewise.
7675         * tree-affine.c (aff_comb_cannot_overlap_p): Likewise.
7676         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Likewise.
7677         * tree-sra.c (completely_scalarize): Likewise.
7678         * tree-ssa-alias.c (stmt_kills_ref_p): Likewise.
7679         * tree-ssa-reassoc.c (extract_bit_test_mask): Likewise.
7680         * tree-vrp.c (extract_range_from_binary_expr_1): Likewise.
7681         (check_for_binary_op_overflow): Likewise.
7682         (search_for_addr_array): Likewise.
7683         * ubsan.c (ubsan_expand_objsize_ifn): Likewise.
7684
7685 2016-05-02  Claudiu Zissulescu  <claziss@synopsys.com>
7686
7687         * config/arc/arc.c (arc_preferred_simd_mode): Remove enum keyword.
7688         (arc_save_restore): Likewise.
7689         (arc_dwarf_register_span): Likewise.
7690         (arc_output_pic_addr_const): Initialize suffix variable.
7691
7692 2016-05-02  Martin Liska  <mliska@suse.cz>
7693
7694         * symbol-summary.h (function_summary::function_summary):
7695         Remove checking assert for all cgraph nodes.
7696         (function_summary::get): Check summary_uid.
7697         (symtab_insertion): Check summary_uid.
7698
7699 2016-05-02  Claudiu Zissulescu  <claziss@synopsys.com>
7700
7701         * config/arc/arc-protos.h (compact_memory_operand_p): Declare.
7702         * config/arc/arc.c (arc_output_commutative_cond_exec): Consider
7703         bmaskn instruction.
7704         (arc_dwarf_register_span): Remove enum keyword.
7705         (compact_memory_operand_p): New function.
7706         * config/arc/arc.h (reg_class): Add code density register classes.
7707         (REG_CLASS_NAMES): Likewise.
7708         (REG_CLASS_CONTENTS): Likewise.
7709         * config/arc/arc.md (*movqi_insn): Add code density instructions.
7710         (*movhi_insn, *movsi_insn, *movsf_insn): Likewise.
7711         (*extendhisi2_i, andsi3_i, cmpsi_cc_insn_mixed): Likewise.
7712         (*cmpsi_cc_c_insn, *movsi_ne): Likewise.
7713         * config/arc/constraints.md (C2p, Uts, Cm1, Cm3, Ucd): New
7714         constraints.
7715         (h, Rcd, Rsd, Rzd): New register constraints.
7716         (T): Use compact_memory_operand_p function.
7717         * config/arc/predicates.md (compact_load_memory_operand): Remove.
7718
7719 2016-05-02  Oleg Endo  <olegendo@gcc.gnu.org>
7720
7721         * config/sh/sh.md (*negnegt, *movtt): Remove.
7722
7723 2016-05-02  Marek Polacek  <polacek@redhat.com>
7724             Tom de Vries  <tom@codesourcery.com>
7725
7726         PR tree-optimization/70700
7727         * tree-ssa-structalias.c (dump_pred_graph): Fix getting varinfo for ids
7728         bigger than FIRST_REF_NODE.
7729
7730 2016-05-02  Oleg Endo  <olegendo@gcc.gnu.org>
7731
7732         PR target/52898
7733         * config/sh/sh.c (sh_option_override): Remove TARGET_CBRANCHDI4,
7734         TARGET_CMPEQDI_T.
7735         (prepare_cbranch_operands): Don't use scratch register.  Assume that
7736         function is used when pseudos can be created.
7737         (expand_cbranchdi4): Likewise.  Remove unused TARGET_CMPEQDI_T paths.
7738         * config/sh/sh.md (cbranchsi4): Allow only when pseudos can be created.
7739         (cbranchdi4, cbranchdi4_i): Simplify to single cbranchdi4
7740         define_expand.  Allow it only when pseudos can be created.
7741         * config/sh/sh.opt (mcbranchdi, mcmpeqdi): Delete.
7742
7743 2016-05-01  Uros Bizjak  <ubizjak@gmail.com>
7744
7745         * config/i386/constraints.md (BC): Only allow -1 operands.
7746         * config/i386/sse.md (mov<mode>_internal): Add (v,C) alternative.
7747         Add "enabled" attribute.  Update XI mode attribute calculation.
7748         * config/i386/i386.md (*movxi_internal_avx512f): Add (v,C) alternative.
7749         (*movoi_internal_avx): Update XI mode attribute calculation.
7750         (*movti_internal): Ditto.
7751
7752 2016-05-01  Oleg Endo  <olegendo@gcc.gnu.org>
7753
7754         * config/sh/sh.md (push, pop, ic_invalidate_line, cstoresi4, cstoredi4,
7755         cstoresf4, cstoredf4, fix_truncsfsi2): Remove constraints.
7756
7757 2016-05-01  Eric Botcazou  <ebotcazou@adacore.com>
7758
7759         * config/rs6000/rs6000.c (altivec_expand_lv_builtin): Do not use switch
7760         statement on instruction code.  Remove trailing spaces.
7761         (altivec_expand_stv_builtin): Likewise.
7762
7763 2016-05-01  Oleg Endo  <olegendo@gcc.gnu.org>
7764
7765         * config/sh/sh.h (TARGET_SH4): Remove and use default implementation.
7766         (TARGET_FPU_DOUBLE): Simplify.
7767         (BASE_ARG_REG, DOUBLE_TYPE_SIZE, OPTIMIZE_MODE_SWITCHING): Replace
7768         'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions with 'TARGET_FPU_DOUBLE'.
7769         * config/sh/sh.c: Replace 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions
7770         with 'TARGET_FPU_DOUBLE'.
7771         * config/sh/sh.md: Likewise.
7772
7773 2016-05-01  Yoshinori Sato  <ysato@users.sourceforge.jp>
7774
7775         * config/sh/linux.h (SH_DIV_STRATEGY_DEFAULT,
7776         SH_DIV_STR_FOR_SIZE): Remove.
7777         * config/sh/netbsd-elf.h (SH_DIV_STRATEGY_DEFAULT,
7778         SH_DIV_STR_FOR_SIZE): Remove.
7779
7780 2016-05-01  Oleg Endo  <olegendo@gcc.gnu.org>
7781
7782         * config/sh/predicates.md (any_register_operand, zero_extend_operand,
7783         logical_reg_operand): Delete.
7784         (arith_operand, arith_reg_dest, arith_or_int_operand, cmpsi_operand,
7785         arith_reg_or_0_operand, arith_reg_or_0_or_1_operand, logical_operand,
7786         logical_and_operand, movsrc_no_disp_mem_operand): Rewrite using
7787         match_operand and match_test.
7788         (sh_const_vec, sh_1el_vec): Remove redundant checks.  Declare local
7789         variables on their first use.  Return bool values.
7790         * config/sh/sh.h (LOAD_EXTEND_OP): Update comment.
7791         * config/sh/sh.md (andsi3, iorsi3): Use arith_reg_dest for result and
7792         arith_reg_operand for input operand.  Remove empty constraints.
7793         (xorsi3): Delete.
7794         (*xorsi3_compact): Rename to xorsi3.
7795         (zero_extend<mode>si2): Use arith_reg_operand for input operand.
7796         (*zero_extend<mode>si2_disp_mem): Update comment.
7797         (mov_nop): Delete.
7798
7799 2016-04-30  Oleg Endo  <olegendo@gcc.gnu.org>
7800
7801         * config/sh/t-sh: Remove SH5 support.
7802         * config.gcc: Likewise.
7803         * configure: Likewise.
7804
7805 2016-04-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7806
7807         * config/darwin.h (LINK_COMMAND_SPEC_A): Handle -fcilkplus.
7808
7809 2016-04-30  Oleg Endo  <olegendo@gcc.gnu.org>
7810
7811         * config/sh/sh.c (register_sh_passes, sh_option_override,
7812         sh_print_operand, prepare_move_operands,
7813         sh_can_follow_jump): Remove TARGET_SH1 checks.
7814         * config/sh/sh.h (TARGET_VARARGS_PRETEND_ARGS, VALID_REGISTER_P,
7815         PROMOTE_MODE): Likewise.
7816         * config/sh/sh.md (adddi3, addsi3, subdi3, subsi3, andsi3,
7817         movdi): Likewise.
7818
7819 2016-04-30  Alan Modra  <amodra@gmail.com>
7820
7821         * config/rs6000/rs6000.c (rs6000_savres_strategy): Force inline
7822         restoring when fixed_reg_p, but allow out-of-line or stmw save.
7823         Check for user regs later to avoid unnecessary looping over regs.
7824         Merge user reg check with non-saved reg check.  Don't force
7825         inline VR restore when static chain used.
7826         (rs6000_frame_related): Omit eh_frame info for user regs when
7827         saving.
7828         (fixed_regs_p): Delete.
7829
7830 2016-04-30  Alan Modra  <amodra@gmail.com>
7831
7832         * config/rs6000/rs6000.c (SAVRES_MULTIPLE): Replace with..
7833         (SAVE_STRATEGY, REST_STRATEGY): ..this.  Renumber and sort enum.
7834         Update all uses.
7835
7836 2016-04-30  Alan Modra  <amodra@gmail.com>
7837
7838         PR target/69645
7839         * config/rs6000/rs6000.c (fixed_reg_p): New function.
7840         (fixed_regs_p): Rename from global_regs_p.  Call fixed_reg_p.
7841         Update all uses.
7842
7843 2016-04-30  Alan Modra  <amodra@gmail.com>
7844
7845         * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
7846         Remove redundant PIC_OFFSET_TABLE_REGNUM test.  Replace with
7847         flag_pic test for Darwin.
7848
7849 2016-04-30  Alan Modra  <amodra@gmail.com>
7850
7851         * regs.h (struct reg_info_t): Delete freq_calls_crossed and
7852         throw_calls_crossed.
7853         (REG_FREQ_CALLS_CROSSED): Delete.
7854         (REG_N_THROWING_CALLS_CROSSED): Delete.
7855         * regstat.c (regstat_bb_compute_ri): Don't calculate
7856         REG_FREQ_CALLS_CROSSED and REG_N_THROWING_CALLS_CROSSED.
7857         (dump_reg_info): Don't print call cross frequency.
7858         * ira.c (combine_and_move_insns): Don't set REG_FREQ_CALLS_CROSSED
7859         and REG_N_THROWING_CALLS_CROSSED.
7860
7861 2016-04-30  Alan Modra  <amodra@gmail.com>
7862
7863         * regs.h (struct reg_info_t): Delete live_length.
7864         (REG_LIVE_LENGTH): Delete macro.
7865         * regstat.c (regstat_bb_compute_ri): Delete artificial_uses,
7866         local_live, local_processed and local_live_last_luid params.
7867         Replace bb_index param with bb.  Don't set REG_LIVE_LENGTH.
7868         Formatting fixes.
7869         (regstat_compute_ri): Adjust for above.  Don't set
7870         REG_LIVE_LENGTH.
7871         (dump_reg_info): Don't print live length.
7872         * ira.c (update_equiv_regs): Replace test of REG_LIVE_LENGTH
7873         with test of setjmp_crosses.  Don't set REG_LIVE_LENGTH.
7874         Localize loop_depth var.
7875
7876 2016-04-30  Alan Modra  <amodra@gmail.com>
7877
7878         * ira.c (enum valid_equiv): New.
7879         (validate_equiv_mem): Return enum.
7880         (update_equiv_mem): Create replacement in more cases.
7881         (add_store_equivs): Update validate_equiv_mem call.
7882
7883 2016-04-30  Alan Modra  <amodra@gmail.com>
7884
7885         * ira.c (combine_and_move_insns): Rather than scanning insns,
7886         use DF infrastucture to find use and def insns.
7887
7888 2016-04-30  Alan Modra  <amodra@gmail.com>
7889
7890         ira.c (combine_and_move_insns): Move invariant conditions..
7891         (ira.c): ..to here.  Call combine_and_move_insns before
7892         add_store_equivs.  Call grow_reg_equivs later.  Allocate
7893         req_equiv later using max_reg_num() rather than global max_regno.
7894         (contains_replace_regs): Delete.
7895         (add_store_equivs): Remove contains_replace_regs test.
7896
7897 2016-04-30  Alan Modra  <amodra@gmail.com>
7898
7899         * ira.c (struct equiv_mem_data): New.
7900         (equiv_mem, equiv_mem_modified): Delete static vars.
7901         (validate_equiv_mem_from_store): Use "data" param to communicate..
7902         (validate_equiv_mem): ..from here.
7903
7904 2016-04-30  Alan Modra  <amodra@gmail.com>
7905
7906         * ira.c (add_store_equivs, combine_and_move_insns): New functions,
7907         split out from..
7908         (update_reg_equivs): ..here.  Move allocation and freeing of
7909         reg_equiv, and calls to grow_reg_equivs, init_alias_analysis,
7910         end_alias_analysis to..
7911         (ira): ..here.
7912
7913 2016-04-30  Alan Modra  <amodra@gmail.com>
7914
7915         * ira.c (pdx_subregs): Delete.
7916         (struct equivalence): Add pdx_subregs field.
7917         (set_paradoxical_subreg): Remove pdx_subregs param.  Update
7918         pdx_subregs access.
7919         (update_equiv_regs): Don't create or free pdx_subregs.  Update
7920         pdx_subregs access.
7921
7922 2016-04-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7923
7924         * config/rs6000/altivec.h: Change definitions of vec_xl and
7925         vec_xst.
7926         * config/rs6000/rs6000-builtin.def (LD_ELEMREV_V2DF): New.
7927         (LD_ELEMREV_V2DI): New.
7928         (LD_ELEMREV_V4SF): New.
7929         (LD_ELEMREV_V4SI): New.
7930         (LD_ELEMREV_V8HI): New.
7931         (LD_ELEMREV_V16QI): New.
7932         (ST_ELEMREV_V2DF): New.
7933         (ST_ELEMREV_V2DI): New.
7934         (ST_ELEMREV_V4SF): New.
7935         (ST_ELEMREV_V4SI): New.
7936         (ST_ELEMREV_V8HI): New.
7937         (ST_ELEMREV_V16QI): New.
7938         (XL): New.
7939         (XST): New.
7940         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
7941         descriptions for VSX_BUILTIN_VEC_XL and VSX_BUILTIN_VEC_XST.
7942         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Map from
7943         TARGET_P9_VECTOR to RS6000_BTM_P9_VECTOR.
7944         (altivec_expand_builtin): Add handling for
7945         VSX_BUILTIN_ST_ELEMREV_<MODE> and VSX_BUILTIN_LD_ELEMREV_<MODE>.
7946         (rs6000_invalid_builtin): Add error-checking for
7947         RS6000_BTM_P9_VECTOR.
7948         (altivec_init_builtins): Define builtins used to implement vec_xl
7949         and vec_xst.
7950         (rs6000_builtin_mask_names): Define power9-vector.
7951         * config/rs6000/rs6000.h (MASK_P9_VECTOR): Define.
7952         (RS6000_BTM_P9_VECTOR): Define.
7953         (RS6000_BTM_COMMON): Include RS6000_BTM_P9_VECTOR.
7954         * config/rs6000/vsx.md (vsx_ld_elemrev_v2di): New define_insn.
7955         (vsx_ld_elemrev_v2df): Likewise.
7956         (vsx_ld_elemrev_v4sf): Likewise.
7957         (vsx_ld_elemrev_v4si): Likewise.
7958         (vsx_ld_elemrev_v8hi): Likewise.
7959         (vsx_ld_elemrev_v16qi): Likewise.
7960         (vsx_st_elemrev_v2df): Likewise.
7961         (vsx_st_elemrev_v2di): Likewise.
7962         (vsx_st_elemrev_v4sf): Likewise.
7963         (vsx_st_elemrev_v4si): Likewise.
7964         (vsx_st_elemrev_v8hi): Likewise.
7965         (vsx_st_elemrev_v16qi): Likewise.
7966         * doc/extend.texi: Add prototypes for vec_xl and vec_xst.  Correct
7967         grammar.
7968
7969 2016-04-29  Patrick Palka  <ppalka@gcc.gnu.org>
7970
7971         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Split
7972         out into ...
7973         (simplify_control_stmt_condition_1): ... here.  Recurse into
7974         BIT_AND_EXPRs and BIT_IOR_EXPRs.
7975
7976 2016-04-29  David Edelsohn  <dje.gcc@gmail.com>
7977
7978         PR target/69810
7979         * config/rs6000/rs6000.md (EXTQI): Don't allow extension to HImode.
7980         (zero_extendqi<mode>2_dot): Revert earlier conversion from
7981         define_insn_and_split to define_insn.
7982         (zero_extendqi<mode>2_dot2): Same.
7983         (extendqi<mode>2_dot): Same.
7984         (extendqi<mode>2_dot2): Same.
7985
7986 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
7987
7988         * config/i386/i386.md (unspec): Add UNSPEC_PROBE_STACK.
7989         (probe_stack): New expander.
7990         (probe_stack_<mode>): New insn pattern.
7991
7992 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
7993
7994         * config/i386/i386.md
7995         (operations with memory inputs setting flags peephole2):
7996         Remove uneeded REG_P checks.  Cleanup pattern generation.
7997
7998 2016-04-29  Ilya Enkovich  <ilya.enkovich@intel.com>
7999
8000         * tree-vect-loop.c (vect_transform_loop): Fix
8001         nb_iterations_upper_bound computation for vectorized loop.
8002
8003 2016-04-29  Marek Polacek  <polacek@redhat.com>
8004             Jakub Jelinek  <jakub@redhat.com>
8005
8006         PR sanitizer/70342
8007         * fold-const.c (tree_single_nonzero_warnv_p): For TARGET_EXPR, use
8008         TARGET_EXPR_SLOT as a base.
8009
8010 2016-04-29  Andrew Burgess  <andrew.burgess@embecosm.com>
8011
8012         * config/arc/arc.md (*loadqi_update): Replace use of 'rI' constraint
8013         with 'rCm2' constraints to limit possible immediate size.
8014         (*load_zeroextendqisi_update): Likewise.
8015         (*load_signextendqisi_update): Likewise.
8016         (*loadhi_update): Likewise.
8017         (*load_zeroextendhisi_update): Likewise.
8018         (*load_signextendhisi_update): Likewise.
8019         (*loadsi_update): Likewise.
8020         (*loadsf_update): Likewise.
8021
8022 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
8023
8024         * config/i386/predicates.md (constm1_operand): Fix comparison.
8025
8026 2016-04-29  Claudiu Zissulescu  <claziss@synopsys.com>
8027
8028         * testsuite/gcc.target/arc/ieee_eq.c: New test.
8029
8030 2016-04-29  Oleg Endo  <olegendo@gcc.gnu.org>
8031
8032         * common/config/sh/sh-common.c (sh_option_optimization_table): Remove
8033         remaining SH5 related settings.
8034         * config/sh/sh-protos.h (shmedia_cleanup_truncate,
8035         shmedia_prepare_call_address): Delete.
8036         * config/sh/sh.c (sh_print_operand, output_stack_adjust,
8037         DWARF_CIE_DATA_ALIGNMENT, LOCAL_ALIGNMENT): Update comments.
8038         * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC,
8039         UNSUPPORTED_SH2A): Remove m5 checks.
8040         (sh_divide_strategy_e): Remove SH5 division strategies.
8041         (TARGET_PTRMEMFUNC_VBIT_LOCATION): Remove and use default.
8042         * config/sh/sh.md (divsf3): Reinstate define_expand pattern.
8043
8044 2016-04-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
8045
8046         * config/s390/s390.c (s390_rtx_costs): Update documentation.
8047
8048 2016-04-29  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8049
8050         * config/s390/2964.md ("z13_unit_fxu", "z13_0"): Remove lder.
8051         * config/s390/s390.md ("movsi_larl", "*movsi_esa", "mov<mode>"):
8052         Change lder to ldr.
8053         * config/s390/vector.md ("mov<mode>"): Likewise.
8054
8055 2016-04-29  Ulrich Weigand  <uweigand@de.ibm.com>
8056
8057         * config/s390/constraints.md ("U", "W"): Invoke
8058         s390_mem_constraint with "ZR" and "ZT".
8059         * config/s390/s390.c (s390_check_qrst_address): Reject invalid
8060         addresses when using LRA.  Accept also short displacements for S
8061         and T constraints.  Do not check for long displacement target for
8062         S and T constraints.
8063         (s390_mem_constraint): Remove handling of U and W constraints.
8064         * config/s390/s390.md (various patterns): Remove the short
8065         displacement constraints (Q and R) if a long displacement
8066         constraint is present.  Add longdisp as required CPU capability.
8067         * config/s390/vector.md: Likewise.
8068         * config/s390/vx-builtins.md: Likewise.
8069
8070 2016-04-29  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
8071
8072         PR target/60040
8073         * reload1.c (reload): Call finish_spills before
8074         restarting reload loop. Skip select_reload_regs
8075         if update_eliminables_and_spill returns true.
8076
8077 2016-04-29  Claudiu Zissulescu  <claziss@synopsys.com>
8078
8079         * config/arc/arc.h (UNSIGNED_INT12, UNSIGNED_INT16): Define.
8080         * config/arc/arc.md (umulhisi3): Use arc_short_operand predicate.
8081         (umulhisi3_imm): Update predicates and constraint letters.
8082         (umulhisi3_reg): Declare instruction as commutative.
8083         * config/arc/constraints.md (J12, J16): New constraints.
8084         * config/arc/predicates.md (short_unsigned_const_operand): New
8085         predicate.
8086         (arc_short_operand): Likewise.
8087         * testsuite/gcc.target/arc/umulsihi3_z.c: New file.
8088
8089 2016-04-29  Richard Biener  <rguenther@suse.de>
8090
8091         PR tree-optimization/13962
8092         PR tree-optimization/65686
8093         * tree-ssa-alias.h (ptrs_compare_unequal): Declare.
8094         * tree-ssa-alias.c (ptrs_compare_unequal): New function
8095         using PTA to compare pointers.
8096         * match.pd: Add pattern for pointer equality compare simplification
8097         using ptrs_compare_unequal.
8098
8099 2016-04-29  Richard Biener  <rguenther@suse.de>
8100
8101         * stor-layout.c (layout_type): Do not build a pointer-to-element
8102         type for arrays.
8103
8104 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
8105
8106         * config/i386/i386.md (Load+RegOp to Mov+MemOp peephole2):
8107         Use SWI mode iterator.  Use general_reg_operand predicate.
8108         (Load+RegOp to Mov+MemOp peephole2 with vector regs): Split
8109         peephole to MMX and SSE part.  Use mmx_reg_operand and sse_reg_operand
8110         predicates.
8111
8112 2016-04-29  Jakub Jelinek  <jakub@redhat.com>
8113
8114         PR middle-end/70843
8115         * fold-const.c (operand_equal_p): Don't verify hash value equality
8116         if arg0 == arg1.
8117         * tree.c (inchash::add_expr): Handle STATEMENT_LIST.  Ignore BLOCK
8118         and OMP_CLAUSE.
8119
8120 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
8121
8122         PR target/70858
8123         * config/i386/i386.c (bdesc_special_args): Add | OPTION_MASK_ISA_64BIT
8124         to __builtin_ia32_lwpval64 and __builtin_ia32_lwpins64.
8125         (bdesc_args): Add | OPTION_MASK_ISA_64BIT to __builtin_ia32_bextr_u64,
8126         __builtin_ia32_bextri_u64, __builtin_ia32_bzhi_di,
8127         __builtin_ia32_pdep_di and __builtin_ia32_pext_di.
8128
8129 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
8130
8131         * config/rs6000/rs6000.c (compute_save_world_info): Rename info_ptr
8132         to info.  Don't initialize separate fields to 0.  Clean up
8133         formatting a bit.
8134
8135 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
8136
8137         * config/i386/i386.md (peephole2s for operations with memory inputs):
8138         Use SWI mode iterator.
8139         (peephole2s for operations with memory outputs): Ditto.
8140         Do not check for stack checking probe.
8141
8142         (probe_stack): Remove expander.
8143
8144 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
8145             Andrew Burgess  <andrew.burgess@embecosm.com>
8146
8147         * config/arc/arc.c (arc_print_operand): Print integer 'H' / 'L'
8148         operands as 32-bits.
8149
8150 2016-04-28  Jason Merrill  <jason@redhat.com>
8151
8152         * gdbinit.in: Skip line-map.h.
8153
8154 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
8155             Andrew Burgess  <andrew.burgess@embecosm.com>
8156
8157         * config/arc/arc.c (arc_conditional_register_usage): Take
8158         TARGET_RRQ_CLASS into account.
8159         (arc_print_operand): Support printing 'p' and 's' operands.
8160         * config/arc/arc.h (TARGET_NPS_BITOPS_DEFAULT): Provide default
8161         as 0.
8162         (TARGET_RRQ_CLASS): Define.
8163         (IS_POWEROF2_OR_0_P): Define.
8164         * config/arc/arc.md (*movsi_insn): Add w/Clo, w/Chi, and w/Cbi
8165         alternatives.
8166         (*tst_movb): New define_insn.
8167         (*tst): Avoid recognition if it could prevent '*tst_movb'
8168         combination; replace c/CnL with c/Chs alternative.
8169         (*tst_bitfield_tst): New define_insn.
8170         (*tst_bitfield_asr): New define_insn.
8171         (*tst_bitfield): New define_insn.
8172         (andsi3_i): Add Rrq variant.
8173         (extzv): New define_expand.
8174         (insv): New define_expand.
8175         (*insv_i): New define_insn.
8176         (*movb): New define_insn.
8177         (*movb_signed): New define_insn.
8178         (*movb_high): New define_insn.
8179         (*movb_high_signed): New define_insn.
8180         (*movb_high_signed + 1): New define_split pattern.
8181         (*mrgb): New define_insn.
8182         (*mrgb + 1): New define_peephole2 pattern.
8183         (*mrgb + 2): New define_peephole2 pattern.
8184         * config/arc/arc.opt (mbitops): New option for nps400, uses
8185         TARGET_NPS_BITOPS_DEFAULT.
8186         * config/arc/constraints.md (q): Make register class conditional.
8187         (Rrq): New register constraint.
8188         (Chs): New constraint.
8189         (Clo): New constraint.
8190         (Chi): New constraint.
8191         (Cbf): New constraint.
8192         (Cbn): New constraint.
8193         (C18): New constraint.
8194         (Cbi): New constraint.
8195
8196 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
8197
8198         * cfganal.c (bitmap_intersection_of_succs): Delete assert checking
8199         dst->popcount.
8200         (bitmap_intersection_of_preds): Ditto.
8201         (bitmap_union_of_succs): Ditto.
8202         (bitmap_union_of_preds): Ditto.
8203         * sbitmap.c (do_popcount): Delete.
8204         (BITMAP_DEBUGGING): Delete.
8205         (sbitmap_verify_popcount): Delete.
8206         (sbitmap_alloc): Don't initialize the popcount field.
8207         (sbitmap_alloc_with_popcount): Delete.
8208         (sbitmap_resize): Don't resize the popcount array.
8209         (sbitmap_vector_alloc): Don't initialize the popcount field.
8210         (bitmap_copy): Don't copy the popcount array.
8211         (bitmap_clear): Don't clear the popcount array.
8212         (bitmap_clear): Delete the popcount array handling.
8213         (bitmap_ior_and_compl): Delete the popcount assert.
8214         (bitmap_not): Ditto.
8215         (bitmap_and_compl): Ditto.
8216         (bitmap_and): Delete the popcount array handling.
8217         (bitmap_xor): Ditto.
8218         (bitmap_ior): Ditto.
8219         (bitmap_or_and): Delete the popcount assert.
8220         (bitmap_and_or): Ditto.
8221         (popcount_table): Delete.
8222         (sbitmap_elt_popcount): Delete.
8223         * sbitmap.h (simple_bitmap_def): Delete the popcount field.
8224         (bitmap_set_bit): Delete the popcount assert.
8225         (bitmap_clear_bit): Ditto.
8226         (sbitmap_free): Don't free the popcount array.
8227         (sbitmap_alloc_with_popcount): Delete declaration.
8228         (sbitmap_popcount): Ditto.
8229
8230 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
8231             Andrew Burgess  <andrew.burgess@embecosm.com>
8232
8233         * config/arc/arc.h (SYMBOL_FLAG_CMEM): Define.
8234         (TARGET_NPS_CMEM_DEFAULT): Provide default definition.
8235         * config/arc/arc.c (arc_address_cost): Return 0 for cmem_address.
8236         (arc_encode_section_info): Set SYMBOL_FLAG_CMEM where indicated.
8237         * config/arc/arc.opt (mcmem): New option.
8238         * config/arc/arc.md (*extendqihi2_i): Add r/Uex alternative,
8239         supply length for r/m alternative.
8240         (*extendqisi2_ac): Likewise.
8241         (*extendhisi2_i): Add r/Uex alternative, supply length for r/m and
8242         r/Uex alternative.
8243         (movqi_insn): Add r/Ucm and Ucm/?Rac alternatives.
8244         (movhi_insn): Likewise.
8245         (movsi_insn): Add r/Ucm,Ucm/w alternatives.
8246         (*zero_extendqihi2_i): Add r/Ucm alternative.
8247         (*zero_extendqisi2_ac): Likewise.
8248         (*zero_extendhisi2_i): Likewise.
8249         * config/arc/constraints.md (Uex): New memory constraint.
8250         (Ucm): New define_constraint.
8251         * config/arc/predicates.md (long_immediate_loadstore_operand):
8252         Return 0 for MEM with cmem_address address.
8253         (cmem_address_0): New predicates.
8254         (cmem_address_1): Likewise.
8255         (cmem_address_2): Likewise.
8256         (cmem_address): Likewise.
8257
8258 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
8259
8260         * config/rs6000/rs6000.c (machine_function): Rename
8261         insn_chain_scanned_p to spe_insn_chain_scanned_p.
8262         (rs6000_stack_info): Adjust.
8263
8264 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
8265             Andrew Burgess  <andrew.burgess@embecosm.com>
8266
8267         * config/arc/constraints.md (Usd): Convert to define_constraint.
8268         (Us<): Likewise.
8269         (Us>): Likewise.
8270
8271 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
8272
8273         PR target/70821
8274         * config/i386/sync.md (define_peephole2 *atomic_fetch_add_cmp<mode>):
8275         Add new peephole2 where the first insn is *mov<mode>_or instead of
8276         *mov<mode>_internal.
8277
8278 2016-04-28  Segher Boesssenkool  <segher@kernel.crashing.org>
8279
8280         * tracer.c (bb_seen): Make static.
8281
8282 2016-04-28  Andrew Burgess  <andrew.burgess@embecosm.com>
8283
8284         * common/config/arc/arc-common.c (arc_handle_option): Add NPS400
8285         support, setup defaults.
8286         * config/arc/arc-opts.h (enum processor_type): Add NPS400.
8287         * config/arc/arc.c (arc_init): Add NPS400 support.
8288         * config/arc/arc.h (CPP_SPEC): Add NPS400 defines.
8289         (TARGET_ARC700): NPS400 is also an ARC700.
8290         * config/arc/arc.opt: Add NPS400 options to -mcpu=.
8291
8292 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
8293
8294         PR target/70668
8295         * config/nds32/nds32.md (casesi): Don't access the operands array
8296         out of bounds.
8297
8298 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
8299
8300         * config/i386/i386.md (zeroing peephole2): Use general_reg_operand.
8301         (or $-1,reg peephole2): Ditto.
8302         (strict_low_part zeroing peephole2): Use SWI12 mode iterator.
8303
8304 2016-04-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
8305
8306         * doc/extend.texi (Common Function Attributes) [optimize]:
8307         Discourage use of the optimize attribute.
8308
8309 2016-04-28  Bill Seurer  <seurer@linux.vnet.ibm.com>
8310
8311         * config/rs6000/rs6000-builtin.def (vec_adde): Change vec_adde to a
8312         special case builtin.
8313         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
8314         ALTIVEC_BUILTIN_VEC_ADDE.
8315         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
8316         support for ALTIVEC_BUILTIN_VEC_ADDE.
8317         * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
8318         for __builtin_vec_adde.
8319
8320 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
8321
8322         * config/i386/i386.md (sse4_1_round<mode>2): Add avx512f alternative.
8323         * config/i386/sse.md (sse4_1_round<ssescalarmodesuffix>): Likewise.
8324
8325 2016-04-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8326
8327         PR testsuite/70595
8328         * doc/sourcebuild.texi (Effective-Target Keywords, Other
8329         attributes): Document cilkplus_runtime.
8330
8331 2016-04-28  Martin Jambor  <mjambor@suse.cz>
8332
8333         * tree-cfg.c (verify_expr): Verify that local declarations belong to
8334         this function.  Call verify_expr on MEM_REFs and bases of other
8335         handled_components.
8336
8337 2016-04-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8338
8339         * internal-fn.c (expand_arith_overflow): Convert preprocessor check
8340         for WORD_REGISTER_OPERATIONS to runtime check.
8341
8342 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
8343
8344         * config/arc/arc.h (ASM_SPEC): Pass mfpuda to assembler.
8345
8346 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
8347
8348         * config/arc/arc.c (arc_process_double_reg_moves): Fix for
8349         big-endian compilation.
8350         * config/arc/arc.md (addf3): Likewise.
8351         (subdf3): Likewise.
8352         (muldf3): Likewise.
8353
8354 2016-04-28  Richard Biener  <rguenther@suse.de>
8355
8356         PR tree-optimization/70840
8357         * match.pd: powi(-x, y) and powi(|x|,y) -> powi(x,y) if y is even;
8358         Fix pow(copysign(x, y), z) -> pow(x, z) and add powi variant;
8359         Mark x * pow(x,c) -> pow(x,c+1) commutative.
8360         Add powi(x,y) * powi(z,y) -> powi(x*z,y).
8361
8362 2015-04-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8363
8364         * config/aarch64/aarch64.h (WORD_REGISTER_OPERATIONS): Define to 0
8365         and explain why in a comment.
8366
8367 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
8368
8369         * config/arc/arc.md (cpu_facility): Add fpx variant.
8370         (subdf3): Prohibit use reverse sub when assist operations option
8371         is enabled.
8372         * config/arc/fpx.md (subdf3_insn, *dsubh_peep2_insn): Allow drsub
8373         instructions only when FPX is enabled.
8374         * testsuite/gcc.target/arc/trsub.c: New test.
8375
8376 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
8377
8378         * config/i386/i386.md (*fop_<mode>_1_mixed): Do not check for
8379         mult_operator when calculating "type" attribute.
8380         (*fop_<mode>_1_i387): Ditto.
8381         (*fop_xf_1_i387): Ditto.
8382         (x87 stack loads peephole2): Add "reg = op (mem, reg)" peephole2.
8383         Use std::swap to swap operands.  Use RTL expressions to generate
8384         converted pattern.
8385
8386 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
8387             Joern Rennecke  <joern.rennecke@embecosm.com>
8388
8389         * config/arc/arc-protos.h (arc_legitimize_pic_address): Remove
8390         declaration.
8391         (emit_pic_move): Remove.
8392         (arc_eh_uses, insn_is_tls_gd_dispatch): Declare.
8393         * config/arc/arc.c (emit_pic_move): Removed.
8394         (TARGET_HAVE_TLS): Define.
8395         (arc_conditional_register_usage): Test for arc_tp_regno.
8396         (arc_print_operand, arc_print_operand_address): Handle TLS
8397         unspecs.
8398         (arc_needs_pcl_p): New function.
8399         (arc_legitimate_pc_offset_p): Use arc_needs_pcl_p.
8400         (arc_legitimate_pic_addr_p): Handle TLS unspecs.
8401         (arc_raw_symbolic_reference_mentioned_p): Likewise.
8402         (arc_get_tp, arc_emit_call_tls_get_addr): New function.
8403         (arc_legitimize_tls_address): Likewise.
8404         (DTPOFF_ZERO_SYM): Define.
8405         (arc_legitimize_pic_address): Make it static, handle TLS cases.
8406         (arc_output_pic_addr_const): Print TLS unspecs.
8407         (prepare_pic_move): New function, replaces emit_pic_move.
8408         (arc_legitimate_constant_p): Handle TLS unspecs.
8409         (arc_legitimate_address_p): Likewise.
8410         (arc_rewrite_small_data_p): Use assert for TLS constants.
8411         (prepare_move_operands): Use prepare_pic_move.
8412         (arc_legitimize_address): Legitimize tls addresses.
8413         (arc_epilogue_uses): Check for arc_tp_regno.
8414         (arc_eh_uses, insn_is_tls_gd_dispatch): New function.
8415         * config/arc/arc.h [DEFAULT_LIBC != LIBC_UCLIBC] (EXTRA_SPECS):
8416         Define.
8417         [DEFAULT_LIBC != LIBC_UCLIBC] (ARC_TLS_EXTRA_START_SPEC):
8418         Likewise.
8419         [DEFAULT_LIBC != LIBC_UCLIBC] (STARTFILE_SPEC): Add
8420         %(arc_tls_extra_start_spec).
8421         (TARGET_CPU_CPP_BUILTINS): Define __ARC_TLS_REGNO__.
8422         (REGNO_OK_FOR_BASE_P): Check for arc_tp_regno.
8423         (EH_USES): Define.
8424         (INSN_REFERENCES_ARE_DELAYED): Use insn_is_tls_gd_dispatch.
8425         * config/arc/arc.md (UNSPEC_TLS_GD, UNSPEC_TLS_LD, UNSPEC_TLS_IE)
8426         (UNSPEC_TLS_OFF): Add.
8427         (R10_REG): Define.
8428         (tls_load_tp_soft, tls_gd_load, tls_gd_get_addr, tls_gd_dispatch)
8429         (get_thread_pointersi): New patterns.
8430         * config/arc/arc.opt (mtp-regno): New option.
8431         * config/arc/predicates.md (move_src_operand): Handle TLS symbols.
8432         (move_dest_operand): Likewise.
8433         * configure: Regenerate.
8434         * configure.ac: Add arc*-*-* case to test for tls.
8435         * doc/invoke.texi (ARC options): Document mtp-regno.
8436
8437 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
8438
8439         * config/arc/arc.c (arc_vector_mode_supported_p): Add support for
8440         the new ARC HS SIMD instructions.
8441         (arc_preferred_simd_mode): New function.
8442         (arc_autovectorize_vector_sizes): Likewise.
8443         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
8444         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
8445         (arc_init_reg_tables): Accept new ARC HS SIMD modes.
8446         (arc_init_builtins): Add new SIMD builtin types.
8447         (arc_split_move): Handle 64 bit vector moves.
8448         * config/arc/arc.h (TARGET_PLUS_DMPY, TARGET_PLUS_MACD)
8449         (TARGET_PLUS_QMACW): Define.
8450         * config/arc/builtins.def (QMACH, QMACHU, QMPYH, QMPYHU, DMACH)
8451         (DMACHU, DMPYH, DMPYHU, DMACWH, DMACWHU, VMAC2H, VMAC2HU, VMPY2H)
8452         (VMPY2HU, VADDSUB2H, VSUBADD2H, VADDSUB, VSUBADD, VADDSUB4H)
8453         (VSUBADD4H): New builtins.
8454         * config/arc/simdext.md: Add new ARC HS SIMD instructions.
8455         * testsuite/gcc.target/arc/builtin_simdarc.c: New file.
8456
8457 2016-04-28  Eduard Sanou  <dhole@openmailbox.org>
8458             Matthias Klose  <doko@debian.org>
8459
8460         * doc/cppenv.texi: Document SOURCE_DATE_EPOCH environment variable.
8461
8462 2016-04-28  Richard Biener  <rguenther@suse.de>
8463
8464         PR middle-end/70777
8465         * fold-const.c (fold_binary_loc): Remove x*x to pow(x,2.0)
8466         canonicalization.
8467
8468 2016-04-28  Oleg Endo  <olegendo@gcc.gnu.org>
8469
8470         * common/config/sh/sh-common.c: Remove SH5 support.
8471         * config/sh/constraints.md: Likewise.
8472         * config/sh/config/sh/elf.h: Likewise.
8473         * config/sh/linux.h: Likewise.
8474         * config/sh/netbsd-elf.h: Likewise.
8475         * config/sh/predicates.md: Likewise.
8476         * config/sh/sh-c.c: Likewise.
8477         * config/sh/sh-protos.h: Likewise.
8478         * config/sh/sh.c: Likewise.
8479         * config/sh/sh.h: Likewise.
8480         * config/sh/sh.md: Likewise.
8481         * config/sh/sh.opt: Likewise.
8482         * config/sh/sync.md: Likewise.
8483         * config/sh/sh64.h: Delete.
8484         * config/sh/shmedia.h: Likewise.
8485         * config/sh/shmedia.md: Likewise.
8486         * config/sh/sshmedia.h: Likewise.
8487         * config/sh/t-netbsd-sh5-64: Likewise.
8488         * config/sh/t-sh64: Likewise.
8489         * config/sh/ushmedia.h: Likewise.
8490
8491 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
8492
8493         * config/i386/i386.md (sign_extend to memory peephole2s): Use
8494         general_reg_operand instead of register_operand predicate.
8495
8496 2016-04-27  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
8497
8498         * params.def (MIN_PARTITION_SIZE): Set default value to 10000.
8499
8500 2016-04-27  Marc Glisse  <marc.glisse@inria.fr>
8501
8502         * match.pd (A - B > A, A + B < A): New transformations.
8503
8504 2016-04-27  Patrick Palka  <ppalka@gcc.gnu.org>
8505
8506         * genattrtab.c (write_test_expr): New parameter EMIT_PARENS
8507         which defaults to true.  Emit an outer pair of parentheses only if
8508         EMIT_PARENS.  When continuing a chain of && or || (or & or |),
8509         don't emit parentheses for the right-hand operand.
8510
8511 2016-04-27  Jeff Law  <law@redhat.com>
8512
8513         * tree-ssa-dom.c (record_temporary_equivalences): Fix typo in comment.
8514
8515 2016-04-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8516
8517         * config/rs6000/altivec.md (altivec_lvx_<mode>): Remove.
8518         (altivec_lvx_<mode>_internal): Document.
8519         (altivec_lvx_<mode>_2op): New define_insn.
8520         (altivec_lvx_<mode>_1op): Likewise.
8521         (altivec_lvx_<mode>_2op_si): Likewise.
8522         (altivec_lvx_<mode>_1op_si): Likewise.
8523         (altivec_stvx_<mode>): Remove.
8524         (altivec_stvx_<mode>_internal): Document.
8525         (altivec_stvx_<mode>_2op): New define_insn.
8526         (altivec_stvx_<mode>_1op): Likewise.
8527         (altivec_stvx_<mode>_2op_si): Likewise.
8528         (altivec_stvx_<mode>_1op_si): Likewise.
8529         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
8530         Expand vec_ld and vec_st during parsing.
8531         * config/rs6000/rs6000.c (altivec_expand_lvx_be): Commentary
8532         changes.
8533         (altivec_expand_stvx_be): Likewise.
8534         (altivec_expand_lv_builtin): Expand lvx built-ins to expose the
8535         address-masking behavior in RTL.
8536         (altivec_expand_stv_builtin): Expand stvx built-ins to expose the
8537         address-masking behavior in RTL.
8538         (altivec_expand_builtin): Change builtin code arguments for calls
8539         to altivec_expand_stv_builtin and altivec_expand_lv_builtin.
8540         (insn_is_swappable_p): Avoid incorrect swap optimization in the
8541         presence of lvx/stvx patterns.
8542         (alignment_with_canonical_addr): New function.
8543         (alignment_mask): Likewise.
8544         (find_alignment_op): Likewise.
8545         (recombine_lvx_pattern): Likewise.
8546         (recombine_stvx_pattern): Likewise.
8547         (recombine_lvx_stvx_patterns): Likewise.
8548         (rs6000_analyze_swaps): Perform a pre-pass to recognize lvx and
8549         stvx patterns from expand.
8550         * config/rs6000/vector.md (vector_altivec_load_<mode>): Use new
8551         expansions.
8552         (vector_altivec_store_<mode>): Likewise.
8553
8554 2016-04-26  Evandro Menezes  <e.menezes@samsung.com>
8555
8556         * config/aarch64/aarch64.md
8557         (*movhf_aarch64): Add "movi %0, #0" to zero up register and
8558         remove the "fp" attributes.
8559         (*movsf_aarch64): Add "movi %0, #0" to zero up register and
8560         add the "simd" attributes.
8561         (*movdf_aarch64): Likewise.
8562         (*movtf_aarch64): Remove the "fp" attributes.
8563         * testsuite/gcc.target/aarch64/fmovf-zero-reg.c: Update accordingly.
8564         * testsuite/gcc.target/aarch64/fmovd-zero-reg.c: Likewise.
8565
8566 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
8567
8568         * emit-rtl.c (maybe_set_first_label_num): Strengthen param from
8569         rtx to rtx_code_label *.
8570         * rtl.h (maybe_set_first_label_num): Likewise.
8571
8572 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
8573
8574         * df-core.c (df_add_problem): Make the problem param be const.
8575         (df_remove_problem): Make local "problem" be const.
8576         * df-problems.c (problem_RD): Make const.
8577         (problem_LR): Likewise.
8578         (problem_LIVE): Likewise.
8579         (problem_MIR): Likewise.
8580         (problem_CHAIN): Likewise.
8581         (problem_WORD_LR): Likewise.
8582         (problem_NOTE): Likewise.
8583         (problem_MD): Likewise.
8584         * df-scan.c (problem_SCAN): Likewise.
8585         * df.h (struct df_problem): Make field "dependent_problem" be
8586         const.
8587         (struct dataflow): Likewise for field "problem".
8588         (df_add_problem): Make param const.
8589
8590 2016-04-27  Uros Bizjak  <ubizjak@gmail.com>
8591
8592         * config/i386/i386.c (ix86_spill_class): Enable for TARGET_SSE2 when
8593         inter-unit moves to/from vector registers are enabled.  Do not disable
8594         for TARGET_MMX.
8595
8596 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
8597
8598         * df.h (DF_SCAN, DF_LR, DF_LIVE, DF_RD, DF_CHAIN, DF_WORD_LR,
8599         DF_NOTE, DF_MD, DF_MIR, DF_LAST_PROBLEM_PLUS1): Convert from
8600         #define to...
8601         (enum df_problem_id): ...this new enum.
8602         (struct df_problem): Convert field "id" from "int" to
8603         enum df_problem_id.
8604
8605 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
8606
8607         * rtl.def: Update comment for "things in the instruction chain" to
8608         reflect the removal of the leading "i" field for INSN_UID in
8609         r210360.  Fix bogus apostrophe.
8610
8611 2016-04-27  Uros Bizjak  <ubizjak@gmail.com>
8612
8613         * config/i386/i386.md
8614         (lea arith with mem operand + setcc peephole2): Set operator mode.
8615
8616 2016-04-27  H.J. Lu  <hongjiu.lu@intel.com>
8617
8618         PR target/70155
8619         * config/i386/i386.c (scalar_to_vector_candidate_p): Renamed to ...
8620         (dimode_scalar_to_vector_candidate_p): This.
8621         (timode_scalar_to_vector_candidate_p): New function.
8622         (scalar_to_vector_candidate_p): Likewise.
8623         (timode_check_non_convertible_regs): Likewise.
8624         (timode_remove_non_convertible_regs): Likewise.
8625         (remove_non_convertible_regs): Likewise.
8626         (remove_non_convertible_regs): Renamed to ...
8627         (dimode_remove_non_convertible_regs): This.
8628         (scalar_chain::~scalar_chain): Make it virtual.
8629         (scalar_chain::compute_convert_gain): Make it pure virtual.
8630         (scalar_chain::mark_dual_mode_def): Likewise.
8631         (scalar_chain::convert_insn): Likewise.
8632         (scalar_chain::convert_registers): Likewise.
8633         (scalar_chain::add_to_queue): Make it protected.
8634         (scalar_chain::emit_conversion_insns): Likewise.
8635         (scalar_chain::replace_with_subreg): Likewise.
8636         (scalar_chain::replace_with_subreg_in_insn): Likewise.
8637         (scalar_chain::convert_op): Likewise.
8638         (scalar_chain::convert_reg): Likewise.
8639         (scalar_chain::make_vector_copies): Likewise.
8640         (scalar_chain::convert_registers): New pure virtual function.
8641         (class dimode_scalar_chain): New class.
8642         (class timode_scalar_chain): Likewise.
8643         (scalar_chain::mark_dual_mode_def): Renamed to ...
8644         (dimode_scalar_chain::mark_dual_mode_def): This.
8645         (timode_scalar_chain::mark_dual_mode_def): New function.
8646         (timode_scalar_chain::convert_insn): Likewise.
8647         (dimode_scalar_chain::convert_registers): Likewise.
8648         (scalar_chain::compute_convert_gain): Renamed to ...
8649         (dimode_scalar_chain::compute_convert_gain): This.
8650         (scalar_chain::replace_with_subreg): Renamed to ...
8651         (dimode_scalar_chain::replace_with_subreg): This.
8652         (scalar_chain::replace_with_subreg_in_insn): Renamed to ...
8653         (dimode_scalar_chain::replace_with_subreg_in_insn): This.
8654         (scalar_chain::make_vector_copies): Renamed to ...
8655         (dimode_scalar_chain::make_vector_copies): This.
8656         (scalar_chain::convert_reg): Renamed to ...
8657         (dimode_scalar_chain::convert_reg ): This.
8658         (scalar_chain::convert_op): Renamed to ...
8659         (dimode_scalar_chain::convert_op): This.
8660         (scalar_chain::convert_insn): Renamed to ...
8661         (dimode_scalar_chain::convert_insn): This.
8662         (scalar_chain::convert): Call convert_registers.
8663         (convert_scalars_to_vector): Change to scalar_chain pointer to
8664         use timode_scalar_chain in 64-bit mode and dimode_scalar_chain
8665         in 32-bit mode.  Delete scalar_chain pointer.  Call
8666         free_dominance_info in 64-bit mode.
8667         (pass_stv::gate): Remove TARGET_64BIT check.
8668         (ix86_option_override): Put the 64-bit STV pass before the CSE
8669         pass.
8670
8671 2016-04-27  Pierre-Marie de Rodat  <derodat@adacore.com>
8672
8673         * dwarf2out.h (struct dw_loc_descr_node): Remove the
8674         dw_loc_frame_offset field.
8675         * dwarf2out.c (new_loc_descr): Likewise.
8676         (resolve_args_picking_1): Turn the VISITED hash set into a
8677         FRAME_OFFSET hash map. Use it to associate a frame offset to
8678         visited nodes. Remove uses of the CHECKING_P macro.
8679         (resolve_args_picking): Update call to resolve_args_picking_1.
8680
8681 2016-04-27  Martin Liska  <mliska@suse.cz>
8682
8683         * tree-ssa-loop-ivopts.c (iv_ca_dump): Fix level of indentation.
8684         (free_loop_data): Release vuses of groups.
8685
8686 2016-04-27  Bin Cheng  <bin.cheng@arm.com>
8687
8688         * tree-ssa-loop-ivopts.c (struct iv): Use pointer to struct iv_use
8689         instead of redundant use_id and boolean have_use_for.
8690         (struct iv_use): Change sub_id into group_id.  Remove field next.
8691         Move fields: related_cands, n_map_members, cost_map and selected
8692         to ...
8693         (struct iv_group): ... here.  New structure.
8694         (struct iv_common_cand): Use structure declaration directly.
8695         (struct ivopts_data, iv_ca, iv_ca_delta): Rename fields.
8696         (MAX_CONSIDERED_USES): Rename macro to ...
8697         (MAX_CONSIDERED_GROUPS): ... here.
8698         (n_iv_uses, iv_use, n_iv_cands, iv_cand): Delete.
8699         (dump_iv, dump_use, dump_cand): Refactor format of dump information.
8700         (dump_uses): Rename to ...
8701         (dump_groups): ... here.  Update all uses.
8702         (tree_ssa_iv_optimize_init, alloc_iv): Update all uses.
8703         (find_induction_variables): Refactor format of dump information.
8704         (record_sub_use): Delete.
8705         (record_use): Update all uses.
8706         (record_group): New function.
8707         (record_group_use, find_interesting_uses_op): Call above functions.
8708         Update all uses.
8709         (find_interesting_uses_cond): Ditto.
8710         (group_compare_offset): New function.
8711         (split_all_small_groups): Rename to ...
8712         (split_small_address_groups_p): ... here.  Update all uses.
8713         (split_address_groups):  Update all uses.
8714         (find_interesting_uses): Refactor format of dump information.
8715         (add_candidate_1): Update all uses.  Remove redundant check on iv,
8716         base and step.
8717         (add_candidate, record_common_cand): Remove redundant assert.
8718         (add_iv_candidate_for_biv): Update use.
8719         (add_iv_candidate_derived_from_uses): Update all uses.
8720         (add_iv_candidate_for_groups, record_important_candidates): Ditto.
8721         (alloc_use_cost_map): Ditto.
8722         (set_use_iv_cost, get_use_iv_cost): Rename to ...
8723         (set_group_iv_cost, get_group_iv_cost): ... here.  Update all uses.
8724         (determine_use_iv_cost_generic): Ditto.
8725         (determine_group_iv_cost_generic): Ditto.
8726         (determine_use_iv_cost_address): Ditto.
8727         (determine_group_iv_cost_address): Ditto.
8728         (determine_use_iv_cost_condition): Ditto.
8729         (determine_group_iv_cost_cond): Ditto.
8730         (determine_use_iv_cost): Ditto.
8731         (determine_group_iv_cost): Ditto.
8732         (set_autoinc_for_original_candidates): Update all uses.
8733         (find_iv_candidates): Update all uses.  Refactor dump information.
8734         (determine_use_iv_costs): Ditto.
8735         (determine_iv_costs): Ditto.
8736         (iv_ca_cand_for_use): Rename to ...
8737         (iv_ca_cand_for_group): ... here.  Update all uses.
8738         (iv_ca_add_use, iv_ca_add_group): Ditto.
8739         (iv_ca_set_cp, iv_ca_cost, iv_ca_delta_add): Update all uses.
8740         (iv_ca_delta_join, iv_ca_delta_reverse, iv_ca_delta_free): Ditto.
8741         (iv_ca_new, iv_ca_dump, iv_ca_extend, iv_ca_narrow): Ditto.
8742         (iv_ca_prune, cheaper_cost_with_cand, iv_ca_replace): Ditto.
8743         (try_add_cand_for, try_improve_iv_set, find_optimal_iv_set): Ditto.
8744         (create_new_iv, adjust_iv_update_pos): Ditto.
8745         (rewrite_use_address): Delete.
8746         (rewrite_use_address_1): Rename to ...
8747         (rewrite_use_address): ... here.
8748         (rewrite_use_compare): Update all uses.
8749         (rewrite_use): Delete.
8750         (rewrite_uses): Rename to ...
8751         (rewrite_groups): ... here.  Update all uses.
8752         (remove_unused_ivs, free_loop_data): Update all uses.
8753         (tree_ssa_iv_optimize_finalize, tree_ssa_iv_optimize_loop): Ditto.
8754
8755 2016-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8756
8757         * rtlanal.c (nonzero_bits1): Convert preprocessor check
8758         for WORD_REGISTER_OPERATIONS to runtime check.
8759
8760 2016-04-27  Richard Biener  <rguenther@suse.de>
8761
8762         PR ipa/70760
8763         * tree-ssa-structalias.c (find_func_aliases_for_call): Use
8764         aggregate_value_p to determine if a function result is
8765         returned by reference.
8766         (ipa_pta_execute): Functions having their address taken are
8767         not automatically nonlocal.
8768
8769 2016-04-27  Jakub Jelinek  <jakub@redhat.com>
8770
8771         PR sanitizer/70683
8772         * tree-core.h (enum operand_equal_flag): Add OEP_NO_HASH_CHECK.
8773         * fold-const.c (operand_equal_p): If flag_checking and
8774         OEP_NO_HASH_CHECK is not set in flag, recurse with OEP_NO_HASH_CHECK
8775         and if it returns non-zero, assert iterative_hash_expr on both
8776         args is the same.
8777
8778 2016-04-27  Bernd Schmidt  <bschmidt@redhat.com>
8779
8780         * doc/invoke.texi (-frename-registers): Also enabled at -Os.
8781
8782 2016-04-27  Nick Clifton  <nickc@redhat.com>
8783
8784         PR middle-end/49889
8785         * varasm.c (merge_weak): Generate an error if an attempt is made
8786         to convert a non-weak static function into a weak, public function.
8787
8788 2016-04-27  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
8789
8790         * params.def (MAX_PARTITION_SIZE): New param.
8791         * doc/invoke.texi: Document lto-max-partition.
8792
8793 2016-04-27  Richard Biener  <rguenther@suse.de>
8794
8795         PR ipa/70785
8796         * tree-ssa-structalias.c (refered_from_nonlocal_fn): New
8797         function cummulating used_from_other_partition, externally_visible
8798         and force_output from aliases.
8799         (refered_from_nonlocal_var): Likewise.
8800         (ipa_pta_execute): Use call_for_symbol_and_aliases to cummulate
8801         node flags properly.
8802
8803 2016-04-27  Bernd Schmidt  <bschmidt@redhat.com>
8804
8805         * doc/invoke.texi (Warning Options): Add -Wmemset-elt-size.
8806         (-Wmemset-elt-size): New item.
8807
8808 2016-04-27  Eric Botcazou  <ebotcazou@adacore.com>
8809
8810         PR ada/70759
8811         * stor-layout.h (internal_reference_types): Delete.
8812         * stor-layout.c (reference_types_internal): Likewise.
8813         (internal_reference_types): Likewise.
8814         (layout_type) <REFERENCE_TYPE>: Adjust.
8815
8816 2016-04-27  Jakub Jelinek  <jakub@redhat.com>
8817
8818         PR sanitizer/70683
8819         * tree.h (inchash::add_expr): Add FLAGS argument.
8820         * tree.c (inchash::add_expr): Likewise.  If not OEP_ADDRESS_OF,
8821         use STRIP_NOPS first.  For INTEGER_CST assert not OEP_ADDRESS_OF.
8822         For REAL_CST and !HONOR_SIGNED_ZEROS (t) hash +/- 0 the same.
8823         Formatting fix.  Adjust recursive calls.  For tcc_comparison,
8824         if swap_tree_comparison (code) is smaller than code, hash that
8825         and arguments in the other order.  Hash CONVERT_EXPR the same
8826         as NOP_EXPR.  For OEP_ADDRESS_OF hash MEM_REF with 0 offset
8827         of ADDR_EXPR of decl as the decl itself.  Add or remove
8828         OEP_ADDRESS_OF from recursive flags as needed.  For
8829         FMA_EXPR, WIDEN_MULT_{PLUS,MINUS}_EXPR hash the first two
8830         operands commutatively and only the third one normally.
8831         For internal CALL_EXPR hash in CALL_EXPR_IFN.
8832
8833 2016-04-27  Sebastian Huber  <sebastian.huber@embedded-brains.de>
8834
8835         * config/rtems.h (LIB_SPEC): Add -latomic.
8836
8837 2016-04-27  Joel Sherrill  <joel@rtems.org>
8838
8839         * config/microblaze/rtems.h: Redefine LINK_SPEC to avoid
8840         xilink.ld and flags not relevant to RTEMS.
8841
8842 2016-04-26  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
8843
8844         * toplev.c (backend_init_target): Avoid calling init_reload when using
8845         LRA.
8846
8847 2016-04-26  Jakub Jelinek  <jakub@redhat.com>
8848
8849         * reorg.c (try_merge_delay_insns): Declare i and j inside the
8850         for loops rather than one for the whole function.
8851
8852 2016-04-26  Marc Glisse  <marc.glisse@inria.fr>
8853
8854         * match.pd (X + CST CMP X): New transformation.
8855
8856 2016-04-26  Marc Glisse  <marc.glisse@inria.fr>
8857
8858         * genmatch.c (write_predicate): Add ATTRIBUTE_UNUSED.
8859         * fold-const.c (fold_binary_loc): Remove 2 transformations
8860         superseded by match.pd.
8861         * match.pd (x+x -> x*2): Generalize to integers.
8862
8863 2016-04-26  Bernd Schmidt  <bschmidt@redhat.com>
8864
8865         * config/i386/i386.md (operation on memory peephole): Duplicate an
8866         existing peephole and adapt it to match lea rather than an operation
8867         that clobbers CC.
8868
8869         PR rtl-optimization/57193
8870         * opts.c (default_options_table): Add OPT_frename_registers at -O2
8871         and above.
8872         * doc/invoke.texi (-frename-registers, -O2): Update documentation.
8873
8874 2016-04-26  Bin Cheng  <bin.cheng@arm.com>
8875
8876         * tree-if-conv.c (any_pred_load_store): New static variable.
8877         (if_convertible_gimple_assign_stmt_p): Remove parameter.  Use
8878         any_pred_load_store instead of and_mask_load_store.
8879         (if_convertible_stmt_p, if_convertible_loop_p_1): Ditto.
8880         (if_convertible_loop_p, insert_gimplified_predicates): Ditto.
8881         (combine_blocks, tree_if_conversion): Ditto.
8882
8883 2016-04-26  Bin Cheng  <bin.cheng@arm.com>
8884
8885         PR tree-optimization/70771
8886         PR tree-optimization/70775
8887         * tree-if-conv.c (if_convertible_phi_p): Remove check on special
8888         virtual PHI nodes.  Delete parameter.
8889         (if_convertible_loop_p_1): Delete argument to above function.
8890         (predicate_all_scalar_phis): Delete code handling single-argument
8891         PHIs.
8892         (tree_if_conversion): Mark and update virtual SSA.
8893
8894 2016-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8895
8896         PR target/61821
8897         * config/i386/i386.c (LARGECOMM_SECTION_ASM_OP): Define default.
8898         (x86_elf_aligned_common): Rename to ...
8899         (x86_elf_aligned_decl_common): ... this.
8900         Add decl arg.  Switch to .lbss for largecomm object.  Use
8901         LARGECOMM_SECTION_ASM_OP.
8902         * config/i386/i386-protos.h (x86_elf_aligned_common): Reflect
8903         renaming.
8904         * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_COMMON): Rename to ...
8905         (ASM_OUTPUT_ALIGNED_DECL_COMMON): ... this.
8906         Pass new decl arg.
8907         * config/i386/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
8908         [!USE_GAS] (LARGECOMM_SECTION_ASM_OP): Define.
8909
8910 2016-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8911
8912         PR target/59407
8913         * config/i386/i386.c (SECTION_LARGE): Define.
8914         (x86_64_elf_select_section): Set it for large data/bss sections.
8915         Only clear SECTION_WRITE for .lrodata.
8916         (x86_64_elf_section_type_flags): Set SECTION_LARGE for large
8917         data/bss sections.
8918         * config/i386/sol2.h (MACH_DEP_SECTION_ASM_FLAG): Define.
8919         * varasm.c (default_elf_asm_named_section): Grow flagchars.
8920         [MACH_DEP_SECTION_ASM_FLAG] Emit MACH_DEP_SECTION_ASM_FLAG for
8921         SECTION_MACH_DEP.
8922         * doc/tm.texi.in (Sections, MACH_DEP_SECTION_ASM_FLAG): Describe.
8923         * doc/tm.texi: Regenerate.
8924
8925 2016-04-26  Jakub Jelinek  <jakub@redhat.com>
8926
8927         PR bootstrap/70704
8928         * configure.ac (--enable-checking): Document extra flag, for
8929         non-release builds default to --enable-checking=yes,extra.
8930         If misc checking and extra checking, define CHECKING_P to 2 instead
8931         of 1.
8932         * common.opt (fchecking=): Add.
8933         * doc/invoke.texi (-fchecking=): Document.
8934         * doc/install.texi: Document --enable-checking changes.
8935         * configure: Regenerated.
8936         * config.in: Regenerated.
8937
8938 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
8939
8940         * config/i386/i386.md (*movxi_internal_avx512f): Use insn type
8941         attribute instead of which_alternative.
8942         * config/i386/sse.md (*mov<mode>_internal): Ditto.
8943         Use EXT_REX_SSE_REG_P where appropriate.
8944
8945 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
8946
8947         * config/i386/predicates.md (const0_operand): Do not match
8948         const_wide_int code.
8949         (const1_operand): Ditto.
8950
8951 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
8952
8953         * config/i386/i386.md (*movoi_internal_avx): Set mode attribute to XI
8954         for SSE constm1 operands and TARGET_AVX512VL.
8955         (*movti_internal): Ditto.
8956         (*mov<mode>_or): Use constm1_operand predicate.
8957         * config/i386/sse.md (*mov<mode>_internal): Set mode attribute to XI
8958         for SSE vector_all_ones operands and TARGET_AVX512VL.
8959         * config/i386/predicates.md (constm1_operand): New predicate.
8960         * config/i386/i386.c (standard_sse_constant_opcode): Simplify
8961         emission of constant -1 load.
8962
8963 2016-04-25  Jason Merrill  <jason@redhat.com>
8964
8965         * gdbinit.in: Skip is-a.h.
8966
8967         * attribs.c (register_scoped_attributes): Fix logic.
8968         * attribs.h: Declare register_scoped_attributes.
8969
8970 2016-04-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8971
8972         * config/rs6000/rs6000-builtin.def: Correct pasto error for
8973         stxvd2x and stxvw4x built-in functions.
8974
8975 2016-04-25  DJ Delorie  <dj@redhat.com>
8976
8977         * config/msp430/msp430.md (ashlhi3): Optimize one bit shifts.
8978         (ashrhi3): Likewise.
8979         (lshrhi3): Likewise.
8980
8981 2016-04-25  Richard Biener  <rguenther@suse.de>
8982
8983         PR tree-optimization/70780
8984         * tree-ssa-pre.c (compute_antic_aux): Also return true if the block
8985         wasn't visited yet.
8986         (compute_antic): Mark blocks with abnormal preds as visited as
8987         they have a final empty antic-in solution already.
8988
8989 2016-04-25  Michael Collison  <michael.collison@linaro.org>
8990
8991         * ChangeLog(2016-04-25): Fix ChangeLog formatting.
8992
8993 2016-04-25  Michael Collison  <michael.collison@linaro.org>
8994
8995         * config/arm/neon.md (widen_<us>sum<mode>): New patterns where
8996         mode is VQI to improve mixed mode vectorization.
8997         * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3): New
8998         define_insn to match low half of signed vaddw.
8999         * config/arm/neon.md (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): New
9000         define_insn to match high half of signed vaddw.
9001         * config/arm/neon.md (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): New
9002         define_insn to match low half of unsigned vaddw.
9003         * config/arm/neon.md (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): New
9004         define_insn to match high half of unsigned vaddw.
9005         * config/arm/arm.c (arm_simd_vect_par_cnst_half): New function.
9006         (arm_simd_check_vect_par_cnst_half_p): Likewise.
9007         * config/arm/arm-protos.h (arm_simd_vect_par_cnst_half): Prototype
9008         for new function.
9009         (arm_simd_check_vect_par_cnst_half_p): Likewise.
9010         * config/arm/predicates.md (vect_par_constant_high): Support
9011         big endian and simplify by calling
9012         arm_simd_check_vect_par_cnst_half
9013         (vect_par_constant_low): Likewise.
9014
9015 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
9016
9017         * config/i386/i386.md (*lea<mode>_general_4): Use const_0_to_3_operand
9018         predicate for operand 2.
9019
9020 2016-04-24  Uros Bizjak  <ubizjak@gmail.com>
9021             H.J. Lu  <hongjiu.lu@intel.com>
9022
9023         * config/i386/i386-protos.h (standard_sse_constant_p): Add
9024         machine_mode argument.
9025         * config/i386/i386.c (standard_sse_constant_p): Return 2 for
9026         constm1_rtx operands.  For VOIDmode constants, get mode from
9027         pred_mode.  Check mode size if the mode is supported by ABI.
9028         (standard_sse_constant_opcode): Do not use standard_constant_p.
9029         Strictly check ABI support for all-ones operands.
9030         (ix86_legitimate_constant_p): Handle TImode, OImode and XImode
9031         immediates. Update calls to standard_sse_constant_p.
9032         (ix86_expand_vector_move): Update calls to standard_sse_constant_p.
9033         (ix86_rtx_costs): Ditto.
9034         * config/i386/i386.md (*movxi_internal_avx512f): Use
9035         nonimmediate_or_sse_const_operand instead of vector_move_operand.
9036         Use (v,BC) alternative instead of (v,C). Use register_operand
9037         checks instead of MEM_P.
9038         (*movoi_internal_avx): Use nonimmediate_or_sse_const_operand instead
9039         of vector_move_operand.  Add (v,BC) alternative and corresponding avx2
9040         isa attribute.  Use register_operand checks instead of MEM_P.
9041         (*movti_internal): Use nonimmediate_or_sse_const_operand for
9042         TARGET_SSE.  Improve TARGET_SSE insn constraint.  Add (v,BC)
9043         alternative and corresponding sse2 isa attribute.
9044         (*movtf_internal, *movdf_internal, *movsf_interal): Update calls
9045         to standard_sse_constant_p.
9046         (FP constant splitters): Ditto.
9047         * config/i386/constraints.md (BC): Do not use standard_sse_constant_p.
9048         (C): Ditto.
9049         * config/i386/predicates.md (constm1_operand): Remove.
9050         (nonimmediate_or_sse_const_operand): Rewrite using RTX.
9051         * config/i386/sse.md (*<avx512>_cvtmask2<ssemodesuffix><mode>): Use
9052         vector_all_ones_operand instead of constm1_operand.
9053
9054 2016-04-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9055
9056         * print-rtl.c (print_rtx_insn_vec): New function.
9057         * print-rtl.h: New prototype.
9058         * store-motion.c (struct st_expr): Make avail_stores a vector.
9059         (st_expr_entry): Adjust.
9060         (free_st_expr_entry): Likewise.
9061         (print_store_motion_mems): Likewise.
9062         (find_moveable_store): Likewise.
9063         (compute_store_table): Likewise.
9064         (delete_store): Likewise.
9065         (build_store_vectors): Likewise.
9066
9067 2016-04-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9068
9069         * reorg.c (try_merge_delay_insns): Make merged_insns a vector.
9070
9071 2016-04-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9072
9073         * vec.h (vec_safe_contains): New function.
9074         (vec::contains): Likewise.
9075         (vec::begin): Likewise.
9076         (vec::end): Likewise.
9077
9078 2016-04-23  Jakub Jelinek  <jakub@redhat.com>
9079
9080         PR sanitizer/70712
9081         * cfgexpand.c (expand_stack_vars): Fix typo.
9082
9083 2016-04-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
9084
9085         * system.h (list, map, set, vector): Include conditionally.
9086         * auto-profile.c (INCLUDE_MAP, INCLUDE_SET): Define.
9087         * graphite-isl-ast-to-gimple.c (INCLUDE_MAP): Define.
9088         * ipa-icf.c (INCLUDE_LIST): Define.
9089         * config/aarch64/cortex-a57-fma-steering.c (INCLUDE_LIST): Define.
9090         * config/sh/sh.c (INCLUDE_VECTOR): Define.
9091         * config/sh/sh_treg_combine.cc (INCLUDE_ALGORITHM): Define.
9092         (INCLUDE_LIST, INCLUDE_VECTOR): Define.
9093         * cp/logic.cc (INCLUDE_LIST): Define.
9094         * fortran/trans-common.c (INCLUDE_MAP): Define.
9095
9096 2016-04-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
9097
9098         * auto-profile.c: Remove <string.h> include.
9099         * ipa-icf-gimple.c: Remove <list> include.
9100         * diagnostic.c: Remove <new> include.
9101         * genmatch.c: Likewise.
9102         * pretty-print.c: Likewise.
9103         * toplev.c: Likewise
9104         * c/c-objc-common.c: Likewise.
9105         * cp/error.c: Likewise.
9106         * fortran/error.c: Likewise.
9107
9108 2016-04-22  Richard Biener  <rguenther@suse.de>
9109
9110         * lto-streamer-in.c (input_ssa_names): Do not allocate
9111         GIMPLE_NOP for all SSA names.
9112         * lto-streamer-out.c (output_ssa_names): Do not output
9113         SSA names that should have been released.
9114
9115 2016-04-22  Richard Biener  <rguenther@suse.de>
9116
9117         PR tree-optimization/70740
9118         * tree-ssa-phiprop.c (propagate_with_phi): Handle inserted
9119         VDEF.
9120
9121 2016-04-21  H.J. Lu  <hongjiu.lu@intel.com>
9122
9123         PR target/70750
9124         * config/i386/predicates.md (call_insn_operand): Replace
9125         sibcall_memory_operand with memory_operand.
9126
9127 2016-04-21  Patrick Palka  <ppalka@gcc.gnu.org>
9128
9129         * tree-vrp.c (register_edge_assert_for_2): Remove redundant
9130         has_single_use() tests.
9131         (register_edge_assert_for_1): Likewise.
9132         (find_assert_locations_1): Check the liveness bitmap instead of
9133         checking has_single_use().
9134
9135 2016-04-21  Kirill Yukhin  <kirill.yukhin@intel.com>
9136
9137         PR target/70728
9138         * config/i386/sse.md (define_insn "<shift_insn><mode>3<mask_name>"):
9139         Extract AVX-512BW constraint from AVX.
9140
9141 2016-04-21  Richard Biener  <rguenther@suse.de>
9142
9143         PR tree-optimization/70725
9144         * tree-if-conv.c (if_convertible_phi_p): Adjust guard
9145         for phi_convertible_by_degenerating_args.
9146         (predicate_all_scalar_phis): Handle single-argument PHIs.
9147
9148 2016-04-21  Richard Biener  <rguenther@suse.de>
9149
9150         PR middle-end/70747
9151         * fold-const.c (fold_comparison): Return properly typed
9152         constant boolean.
9153
9154 2016-04-21  Bin Cheng  <bin.cheng@arm.com>
9155
9156         PR tree-optimization/70715
9157         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
9158         after expanding BASE using expand_simple_operations.
9159
9160 2016-04-21  Marc Glisse  <marc.glisse@inria.fr>
9161
9162         * match.pd (min(-x, -y), max(-x, -y), min(~x, ~y), max(~x, ~y)):
9163         New transformations.
9164
9165 2016-04-21  Marc Glisse  <marc.glisse@inria.fr>
9166
9167         * match.pd (min(int_max, x), max(int_min, x)): New transformations.
9168
9169 2016-04-20  Jan Hubicka  <jh@suse.cz>
9170
9171         * ipa-inline.c (can_inline_edge_p): Pass caller info to
9172         ultiimate_alias_target.
9173         (update_callee_keys): Likewise.
9174         (lookup_recursive_calls): Likewise.
9175         (speculation_useful_p): Likewise.
9176
9177 2016-04-20  Jan Hubicka  <jh@suse.cz>
9178
9179         PR ipa/70018
9180         * cgraph.c (cgraph_set_nothrow_flag_1): Rename to ...
9181         (set_nothrow_flag_1): ... this; handle interposition correctly;
9182         recurse on aliases and thunks.
9183         (cgraph_node::set_nothrow_flag): New.
9184         * ipa-pure-const.c (ignore_edge_for_nothrow): Ignore calls to
9185         functions compiled with non-call exceptions that binds to current
9186         def.
9187         (propagate_nothrow): Be safe WRT interposition.
9188         * cgraph.h (set_nothrow_flag): Update prototype.
9189
9190 2016-04-18  Jan Hubicka  <jh@suse.cz>
9191
9192         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
9193         max_loop_iterations_int.
9194         (tree_unswitch_outer_loop): Likewise.
9195
9196 2016-04-20  Bin Cheng  <bin.cheng@arm.com>
9197
9198         PR tree-optimization/69489
9199         * tree-if-conv.c (phi_convertible_by_degenerating_args): New.
9200         (if_convertible_phi_p): Call phi_convertible_by_degenerating_args.
9201         Revise dump message.
9202         (if_convertible_bb_p): Remove check on edge count of basic block's
9203         predecessors.
9204
9205 2016-04-20  Bin Cheng  <bin.cheng@arm.com>
9206
9207         PR tree-optimization/56625
9208         PR tree-optimization/69489
9209         * tree-data-ref.h (DR_INNERMOST): New macro.
9210         * tree-if-conv.c (innermost_loop_behavior_hash): New class for
9211         hashing struct innermost_loop_behavior.
9212         (ref_DR_map): Remove.
9213         (innermost_DR_map): New map.
9214         (baseref_DR_map): Revise comment.
9215         (hash_memrefs_baserefs_and_store_DRs_read_written_info): Store DR
9216         to innermost_DR_map accroding to its innermost loop behavior.
9217         (ifcvt_memrefs_wont_trap): Get DR from innermost_DR_map according
9218         to its innermost loop behavior.
9219         (if_convertible_loop_p_1): Remove intialization for ref_DR_map.
9220         Add initialization for innermost_DR_map.  Record memory reference
9221         in DR_BASE_ADDRESS if the reference is compound one or it doesn't
9222         have innermost loop behavior.
9223         (if_convertible_loop_p): Remove release for ref_DR_map.  Release
9224         innermost_DR_map.
9225
9226 2016-04-20  Uros Bizjak  <ubizjak@gmail.com>
9227
9228         * config/i386/i386.md (*lea<mode>_general_1): Rename from
9229         *lea_general_1.  Use explicit SWI12 mode interator.
9230         (*lea<mode>_general_2): Rename from *lea_general_2.
9231         Use explicit SWI12 mode interator.
9232         (*lea<mode>_general_3): Rename from *lea_general_3.
9233         Use explicit SWI12 mode interator.
9234         (*lea<SWI12:mode>_general_4): Split from *lea_general_4.
9235         Use explicit SWI12 mode interator.
9236         (*lea<SWI48:mode>_general_4): Split from *lea_general_4.
9237         Use explicit SWI48 mode interator.
9238
9239 2016-04-20  H.J. Lu  <hongjiu.lu@intel.com>
9240
9241         * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
9242         Short-cut unaligned load and store cases.  Handle all integer
9243         vector modes.
9244         (ix86_expand_vector_move_misalign): Short-cut unaligned load
9245         and store cases.  Call ix86_avx256_split_vector_move_misalign
9246         directly without checking mode class.
9247
9248 2016-04-20  Andrew Pinski  <apinski@cavium.com>
9249             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9250
9251         PR target/64971
9252         * config/aarch64/aarch64.md (sibcall): Force call
9253         address to be DImode for ILP32.
9254         (sibcall_value): Likewise.
9255
9256 2016-04-20  H.J. Lu  <hongjiu.lu@intel.com>
9257
9258         * doc/invoke.texi: Replace -skip-rax-setup with -mskip-rax-setup.
9259
9260 2016-04-20  Richard Biener  <rguenther@suse.de>
9261
9262         * gimple-match.h (maybe_build_generic_op): Adjust prototype.
9263         * gimple-match-head.c (maybe_build_generic_op): Pass all ops
9264         by reference, clear op1 and op2 when GENERICizing BIT_FIELD_REF.
9265         (maybe_push_res_to_seq): Adjust.
9266         * gimple-fold.c (maybe_build_generic_op): Likewise.
9267
9268 2016-04-20  Marek Polacek  <polacek@redhat.com>
9269
9270         * tree-if-conv.c (is_false_predicate): For NULL_TREE return false
9271         rather than true.
9272
9273 2016-04-20  Ilya Enkovich  <ilya.enkovich@intel.com>
9274
9275         * config/i386/sse.md (vec_unpacks_lo_hi): Always
9276         use kmovw to support AVX512F target.
9277
9278 2016-04-20  Bin Cheng  <bin.cheng@arm.com>
9279
9280         * tree-scalar-evolution.c (interpret_rhs_expr): Handle BIT_AND_EXPR.
9281
9282 2016-04-20  Marek Polacek  <polacek@redhat.com>
9283
9284         PR tree-optimization/70725
9285         * tree-if-conv.c (is_false_predicate): New function.
9286         (predicate_mem_writes): Use it.
9287
9288 2016-04-20  Richard Biener  <rguenther@suse.de>
9289
9290         PR tree-optimization/70726
9291         * tree-vect-stmts.c (vectorizable_shift): Do not use scalar
9292         shift amounts from a pattern stmt operand.
9293
9294 2016-04-20  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9295
9296         PR target/70674
9297         * config/s390/s390.c (s390_restore_gprs_from_fprs): Pick the new
9298         stack_restore_from_fpr pattern when restoring r15.
9299         (s390_optimize_prologue): Strip away the memory barrier in the
9300         parallel when trying to get rid of restore insns.
9301         * config/s390/s390.md ("stack_restore_from_fpr"): New insn
9302         definition for loading the stack pointer from an FPR.  Compared to
9303         the normal move insn this pattern includes a full memory barrier.
9304
9305 2016-04-19  Jakub Jelinek  <jakub@redhat.com>
9306
9307         PR middle-end/70680
9308         * gimplify.c (gimplify_omp_for): Call omp_notice_variable for
9309         implicitly linear or lastprivate iterator on the outer context.
9310
9311 2016-04-19  H.J. Lu  <hongjiu.lu@intel.com>
9312
9313         * config/i386/i386.c (ix86_legitimate_combined_insn): Remove
9314         alignment check.
9315         * config/i386/i386.md (ssememalign): Removed.
9316         * config/i386/sse.md: Remove ssememalign attribute from patterns.
9317
9318 2016-04-19  H.J. Lu  <hongjiu.lu@intel.com>
9319
9320         PR target/69201
9321         * config/i386/avx512bwintrin.h (_mm512_mask_loadu_epi16): Pass
9322         const short * to __builtin_ia32_loaddquhi512_mask.
9323         (_mm512_maskz_loadu_epi16): Likewise.
9324         (_mm512_mask_storeu_epi16): Pass short * to
9325         __builtin_ia32_storedquhi512_mask.
9326         (_mm512_mask_loadu_epi8): Pass const char * to
9327         __builtin_ia32_loaddquqi512_mask.
9328         (_mm512_maskz_loadu_epi8): Likewise.
9329         (_mm512_mask_storeu_epi8): Pass char * to
9330         __builtin_ia32_storedquqi512_mask.
9331         * config/i386/avx512fintrin.h (_mm512_loadu_pd): Pass
9332         const double * to __builtin_ia32_loadupd512_mask.
9333         (_mm512_mask_loadu_pd): Likewise.
9334         (_mm512_maskz_loadu_pd): Likewise.
9335         (_mm512_storeu_pd): Pass double * to
9336         __builtin_ia32_storeupd512_mask.
9337         (_mm512_mask_storeu_pd): Likewise.
9338         (_mm512_loadu_ps): Pass const float * to
9339         __builtin_ia32_loadups512_mask.
9340         (_mm512_mask_loadu_ps): Likewise.
9341         (_mm512_maskz_loadu_ps): Likewise.
9342         (_mm512_storeu_ps): Pass float * to
9343         __builtin_ia32_storeups512_mask.
9344         (_mm512_mask_storeu_ps): Likewise.
9345         (_mm512_mask_loadu_epi64): Pass const long long * to
9346         __builtin_ia32_loaddqudi512_mask.
9347         (_mm512_maskz_loadu_epi64): Likewise.
9348         (_mm512_mask_storeu_epi64): Pass long long *
9349         to __builtin_ia32_storedqudi512_mask.
9350         (_mm512_loadu_si512): Pass const int * to
9351         __builtin_ia32_loaddqusi512_mask.
9352         (_mm512_mask_loadu_epi32): Likewise.
9353         (_mm512_maskz_loadu_epi32): Likewise.
9354         (_mm512_storeu_si512): Pass int * to
9355         __builtin_ia32_storedqusi512_mask.
9356         (_mm512_mask_storeu_epi32): Likewise.
9357         * config/i386/avx512vlbwintrin.h (_mm256_mask_storeu_epi8): Pass
9358         char * to __builtin_ia32_storedquqi256_mask.
9359         (_mm_mask_storeu_epi8): Likewise.
9360         (_mm256_mask_loadu_epi16): Pass const short * to
9361         __builtin_ia32_loaddquhi256_mask.
9362         (_mm256_maskz_loadu_epi16): Likewise.
9363         (_mm_mask_loadu_epi16): Pass const short * to
9364         __builtin_ia32_loaddquhi128_mask.
9365         (_mm_maskz_loadu_epi16): Likewise.
9366         (_mm256_mask_loadu_epi8): Pass const char * to
9367         __builtin_ia32_loaddquqi256_mask.
9368         (_mm256_maskz_loadu_epi8): Likewise.
9369         (_mm_mask_loadu_epi8): Pass const char * to
9370         __builtin_ia32_loaddquqi128_mask.
9371         (_mm_maskz_loadu_epi8): Likewise.
9372         (_mm256_mask_storeu_epi16): Pass short * to.
9373         __builtin_ia32_storedquhi256_mask.
9374         (_mm_mask_storeu_epi16): Pass short * to.
9375         __builtin_ia32_storedquhi128_mask.
9376         * config/i386/avx512vlintrin.h (_mm256_mask_loadu_pd): Pass
9377         const double * to __builtin_ia32_loadupd256_mask.
9378         (_mm256_maskz_loadu_pd): Likewise.
9379         (_mm_mask_loadu_pd): Pass onst double * to
9380         __builtin_ia32_loadupd128_mask.
9381         (_mm_maskz_loadu_pd): Likewise.
9382         (_mm256_mask_storeu_pd): Pass double * to
9383         __builtin_ia32_storeupd256_mask.
9384         (_mm_mask_storeu_pd): Pass double * to
9385         __builtin_ia32_storeupd128_mask.
9386         (_mm256_mask_loadu_ps): Pass const float * to
9387         __builtin_ia32_loadups256_mask.
9388         (_mm256_maskz_loadu_ps): Likewise.
9389         (_mm_mask_loadu_ps): Pass const float * to
9390         __builtin_ia32_loadups128_mask.
9391         (_mm_maskz_loadu_ps): Likewise.
9392         (_mm256_mask_storeu_ps): Pass float * to
9393         __builtin_ia32_storeups256_mask.
9394         (_mm_mask_storeu_ps): ass float * to
9395         __builtin_ia32_storeups128_mask.
9396         (_mm256_mask_loadu_epi64): Pass const long long * to
9397         __builtin_ia32_loaddqudi256_mask.
9398         (_mm256_maskz_loadu_epi64): Likewise.
9399         (_mm_mask_loadu_epi64): Pass const long long * to
9400         __builtin_ia32_loaddqudi128_mask.
9401         (_mm_maskz_loadu_epi64): Likewise.
9402         (_mm256_mask_storeu_epi64): Pass long long * to
9403         __builtin_ia32_storedqudi256_mask.
9404         (_mm_mask_storeu_epi64): Pass long long * to
9405         __builtin_ia32_storedqudi128_mask.
9406         (_mm256_mask_loadu_epi32): Pass const int * to
9407         __builtin_ia32_loaddqusi256_mask.
9408         (_mm256_maskz_loadu_epi32): Likewise.
9409         (_mm_mask_loadu_epi32): Pass const int * to
9410         __builtin_ia32_loaddqusi128_mask.
9411         (_mm_maskz_loadu_epi32): Likewise.
9412         (_mm256_mask_storeu_epi32): Pass int * to
9413         __builtin_ia32_storedqusi256_mask.
9414         (_mm_mask_storeu_epi32): Pass int * to
9415         __builtin_ia32_storedqusi128_mask.
9416         * config/i386/i386-builtin-types.def (PCSHORT): New.
9417         (PINT64): Likewise.
9418         (V64QI_FTYPE_PCCHAR_V64QI_UDI): Likewise.
9419         (V32HI_FTYPE_PCSHORT_V32HI_USI): Likewise.
9420         (V32QI_FTYPE_PCCHAR_V32QI_USI): Likewise.
9421         (V16SF_FTYPE_PCFLOAT_V16SF_UHI): Likewise.
9422         (V8DF_FTYPE_PCDOUBLE_V8DF_UQI): Likewise.
9423         (V16SI_FTYPE_PCINT_V16SI_UHI): Likewise.
9424         (V16HI_FTYPE_PCSHORT_V16HI_UHI): Likewise.
9425         (V16QI_FTYPE_PCCHAR_V16QI_UHI): Likewise.
9426         (V8SF_FTYPE_PCFLOAT_V8SF_UQI): Likewise.
9427         (V8DI_FTYPE_PCINT64_V8DI_UQI): Likewise.
9428         (V8SI_FTYPE_PCINT_V8SI_UQI): Likewise.
9429         (V8HI_FTYPE_PCSHORT_V8HI_UQI): Likewise.
9430         (V4DF_FTYPE_PCDOUBLE_V4DF_UQI): Likewise.
9431         (V4SF_FTYPE_PCFLOAT_V4SF_UQI): Likewise.
9432         (V4DI_FTYPE_PCINT64_V4DI_UQI): Likewise.
9433         (V4SI_FTYPE_PCINT_V4SI_UQI): Likewise.
9434         (V2DF_FTYPE_PCDOUBLE_V2DF_UQI): Likewise.
9435         (V2DI_FTYPE_PCINT64_V2DI_UQI): Likewise.
9436         (VOID_FTYPE_PDOUBLE_V8DF_UQI): Likewise.
9437         (VOID_FTYPE_PDOUBLE_V4DF_UQI): Likewise.
9438         (VOID_FTYPE_PDOUBLE_V2DF_UQI): Likewise.
9439         (VOID_FTYPE_PFLOAT_V16SF_UHI): Likewise.
9440         (VOID_FTYPE_PFLOAT_V8SF_UQI): Likewise.
9441         (VOID_FTYPE_PFLOAT_V4SF_UQI): Likewise.
9442         (VOID_FTYPE_PINT64_V8DI_UQI): Likewise.
9443         (VOID_FTYPE_PINT64_V4DI_UQI): Likewise.
9444         (VOID_FTYPE_PINT64_V2DI_UQI): Likewise.
9445         (VOID_FTYPE_PINT_V16SI_UHI): Likewise.
9446         (VOID_FTYPE_PINT_V8SI_UHI): Likewise.
9447         (VOID_FTYPE_PINT_V4SI_UHI): Likewise.
9448         (VOID_FTYPE_PSHORT_V32HI_USI): Likewise.
9449         (VOID_FTYPE_PSHORT_V16HI_UHI): Likewise.
9450         (VOID_FTYPE_PSHORT_V8HI_UQI): Likewise.
9451         (VOID_FTYPE_PCHAR_V64QI_UDI): Likewise.
9452         (VOID_FTYPE_PCHAR_V32QI_USI): Likewise.
9453         (VOID_FTYPE_PCHAR_V16QI_UHI): Likewise.
9454         (V64QI_FTYPE_PCV64QI_V64QI_UDI): Removed.
9455         (V32HI_FTYPE_PCV32HI_V32HI_USI): Likewise.
9456         (V32QI_FTYPE_PCV32QI_V32QI_USI): Likewise.
9457         (V16HI_FTYPE_PCV16HI_V16HI_UHI): Likewise.
9458         (V16QI_FTYPE_PCV16QI_V16QI_UHI): Likewise.
9459         (V8HI_FTYPE_PCV8HI_V8HI_UQI): Likewise.
9460         (VOID_FTYPE_PV32HI_V32HI_USI): Likewise.
9461         (VOID_FTYPE_PV16HI_V16HI_UHI): Likewise.
9462         (VOID_FTYPE_PV8HI_V8HI_UQI): Likewise.
9463         (VOID_FTYPE_PV64QI_V64QI_UDI): Likewise.
9464         (VOID_FTYPE_PV32QI_V32QI_USI): Likewise.
9465         (VOID_FTYPE_PV16QI_V16QI_UHI): Likewise.
9466         * config/i386/i386.c (ix86_emit_save_reg_using_mov): Don't
9467         use UNSPEC_STOREU.
9468         (ix86_emit_restore_sse_regs_using_mov): Don't use UNSPEC_LOADU.
9469         (ix86_avx256_split_vector_move_misalign): Don't use unaligned
9470         load nor store.
9471         (ix86_expand_vector_move_misalign): Likewise.
9472         (bdesc_special_args): Use CODE_FOR_movvNXY_internal and pointer
9473         to scalar function prototype for unaligned load/store builtins.
9474         (ix86_expand_special_args_builtin): Updated.
9475         * config/i386/sse.md (UNSPEC_LOADU): Removed.
9476         (UNSPEC_STOREU): Likewise.
9477         (VI_ULOADSTORE_BW_AVX512VL): Likewise.
9478         (VI_ULOADSTORE_F_AVX512VL): Likewise.
9479         (ssescalarsize): Handle V4TI, V2TI and V1TI.
9480         (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
9481         (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
9482         (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Likewise.
9483         (<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask): Likewise.
9484         (<sse2_avx_avx512f>_loaddqu<mode><mask_name>): Likewise.
9485         (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"): Likewise.
9486         (sse2_avx_avx512f>_storedqu<mode>): Likewise.
9487         (<avx512>_storedqu<mode>_mask): Likewise.
9488         (*sse4_2_pcmpestr_unaligned): Likewise.
9489         (*sse4_2_pcmpistr_unaligned): Likewise.
9490         (*mov<mode>_internal): Renamed to ...
9491         (mov<mode>_internal): This.  Remove check of AVX and IAMCU on
9492         misaligned operand.  Replace vmovdqu64 with vmovdqu<ssescalarsize>.
9493         (movsd/movhpd to movupd peephole): Don't use UNSPEC_LOADU.
9494         (movlpd/movhpd to movupd peephole): Don't use UNSPEC_STOREU.
9495
9496 2016-04-19  Richard Biener  <rguenther@suse.de>
9497
9498         PR tree-optimization/70171
9499         * tree-ssa-phiprop.c: Include stor-layout.h.
9500         (phiprop_insert_phi): Handle the aggregate copy case.
9501         (propagate_with_phi): Likewise.
9502
9503 2016-04-19  Uros Bizjak  <ubizjak@gmail.com>
9504
9505         * config/i386/i386.c (ix86_decompose_address): Use lowpart_subreg
9506         instead of simplify_gen_subreg (... , 0).
9507         (ix86_delegitimize_address): Ditto.
9508         (ix86_split_divmod): Ditto.
9509         (ix86_split_copysign_const): Ditto.
9510         (ix86_split_copysign_var): Ditto.
9511         (ix86_expand_args_builtin): Ditto.
9512         (ix86_expand_round_builtin): Ditto.
9513         (ix86_expand_special_args_builtin): Ditto.
9514         * config/i386/i386.md (TARGET_USE_VECTOR_FP_CONVERTS splitters): Ditto.
9515         (TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters and peephole2s): Ditto.
9516         (udivmodqi4): Ditto.
9517         (absneg splitters): Ditto.
9518         (*jcc_bt<mode>_1): Ditto.
9519
9520 2016-04-19  Richard Biener  <rguenther@suse.de>
9521
9522         PR tree-optimization/70724
9523         * tree-ssa-sccvn.c (scc_vn_restore_ssa_info): Split SSA info
9524         restoring out from ...
9525         (free_scc_vn): ... here.
9526         * tree-ssa-sccvn.h (scc_vn_restore_ssa_info): Declare.
9527         * tres-ssa-pre.c (pass_pre::execute): Restore SSA info before
9528         tail merging.
9529         (pass_fre::execute): Restore SSA info.
9530
9531 2016-04-19  Richard Biener  <rguenther@suse.de>
9532
9533         * gimple-walk.h (struct walk_stmt_info): Add stmt member.
9534         * gimple-walk.c (walk_gimple_op): Initialize it.
9535         (walk_gimple_asm): Set wi->is_lhs before each callback invocation.
9536         * tree-inline.c (remap_gimple_op_r): Set SSA_NAME_DEF_STMT when
9537         remapping SSA names of defs.
9538         (copy_bb): Remove walk over all SSA defs and SSA_NAME_DEF_STMT
9539         adjustment.
9540
9541 2016-04-18  Vladimir Makarov  <vmakarov@redhat.com>
9542
9543         PR middle-end/70689
9544         * lra-constraints.c (equiv_substition_p): New.
9545         (process_alt_operands): Use it.
9546         (swap_operands): Swap it.
9547         (curr_insn_transform): Update it.
9548
9549 2016-04-18  Michael Matz  <matz@suse.de>
9550
9551         * tree.h (TYPE_ALIGN, DECL_ALIGN): Return shifted amount.
9552         (SET_TYPE_ALIGN, SET_DECL_ALIGN): New.
9553         * tree-core.h (tree_type_common.align): Use bit-field.
9554         (tree_type_common.spare): New.
9555         (tree_decl_common.off_align): Make smaller.
9556         (tree_decl_common.align): Use bit-field.
9557
9558         * expr.c (expand_expr_addr_expr_1): Use SET_TYPE_ALIGN.
9559         * omp-low.c (install_var_field): Use SET_DECL_ALIGN.
9560         (scan_sharing_clauses): Ditto.
9561         (finish_taskreg_scan): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
9562         (omp_finish_file): Ditto.
9563         * stor-layout.c (do_type_align): Use SET_DECL_ALIGN.
9564         (layout_decl): Ditto.
9565         (relayout_decl): Ditto.
9566         (finalize_record_size): Use SET_TYPE_ALIGN.
9567         (finalize_type_size): Ditto.
9568         (finish_builtin_struct): Ditto.
9569         (layout_type): Ditto.
9570         (initialize_sizetypes): Ditto.
9571         * targhooks.c (std_gimplify_va_arg_expr): Use SET_TYPE_ALIGN.
9572         * tree-nested.c (insert_field_into_struct): Use SET_TYPE_ALIGN.
9573         (lookup_field_for_decl): Use SET_DECL_ALIGN.
9574         (get_chain_field): Ditto.
9575         (get_trampoline_type): Ditto.
9576         (get_nl_goto_field): Ditto.
9577         * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
9578         SET_DECL_ALIGN.
9579         (unpack_ts_type_common_value_fields): Use SET_TYPE_ALIGN.
9580         * gimple-expr.c (copy_var_decl): Use SET_DECL_ALIGN.
9581         * tree.c (make_node_stat): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
9582         (build_qualified_type): Use SET_TYPE_ALIGN.
9583         (build_aligned_type, build_range_type_1): Ditto.
9584         (build_atomic_base): Ditto.
9585         (build_common_tree_nodes): Ditto.
9586         * cfgexpand.c (align_local_variable): Use SET_DECL_ALIGN.
9587         (expand_one_stack_var_at): Ditto.
9588         * coverage.c (build_var): Use SET_DECL_ALIGN.
9589         * except.c (init_eh): Ditto.
9590         * function.c (assign_parm_setup_block): Ditto.
9591         * symtab.c (increase_alignment_1): Ditto.
9592         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Ditto.
9593         * tree-vect-stmts.c (ensure_base_align): Ditto.
9594         * varasm.c (align_variable): Ditto.
9595         (assemble_variable): Ditto.
9596         (build_constant_desc): Ditto.
9597         (output_constant_def_contents): Ditto.
9598
9599         * config/arm/arm.c (arm_relayout_function): Use SET_DECL_ALIGN.
9600         * config/avr/avr.c (avr_adjust_type_node): Use SET_TYPE_ALIGN.
9601         * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Ditto.
9602         * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Ditto.
9603         * config/spu/spu.c (spu_build_builtin_va_list): Use SET_DECL_ALIGN.
9604
9605 2016-04-18  H.J. Lu  <hongjiu.lu@intel.com>
9606
9607         PR target/70708
9608         * config/i386/sse.md (sse2_loadlpd): Accept load from "xm" and
9609         replace %vmovsd with "%vmovq".
9610         (vec_concatv2df): Likewise.
9611
9612 2016-04-18  Uros Bizjak  <ubizjak@gmail.com>
9613
9614         * config/i386/mmx.md (*vec_extractv2sf_0): Use gen_lowpart.
9615         (*vec_extractv2si_0): Ditto.
9616         * config/i386/sse.md (*vec_extractv4sf_0): Ditto.
9617         (zero_extended_scalar_load_operand splitters): Ditto.
9618         (vec_extract splitters): Ditto.
9619         (*vec_extractv4si_0_zext): Ditto.
9620         (avx_<castmode><avxsizesuffix>_<castmode>): Use gen_lowpart
9621         and lowpart_subreg.
9622         (avx512f_<castmode><avxsizesuffix>_<castmode>): Ditto.
9623         (avx512f_<castmode><avxsizesuffix>_256<castmode>): Ditto.
9624         (*sse4_1_extractps): Use lowpart_subreg.
9625         * config/i386/i386.md (x87 floatsplitter): Use gen_lowpart.
9626
9627 2016-04-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9628
9629         * doc/install.texi (Specific, i?86-*-solaris2.10): Update gas and
9630         gld requirements.
9631         (Specific, *-*-solaris2*): Update Solaris 11 bundled gcc versions.
9632         Mention Solaris 11 packaging changes.
9633         Update gas and gld requirements.
9634         Remove reference to pre-Solaris 10 bug.
9635         (Specific, sparc-sun-solaris2*): Remove reference to pre-Solaris 10
9636         systems and bugs.
9637         (Specific, sparc64-*-solaris2*): Remove reference to bootstrap
9638         with cc.
9639
9640 2016-04-17  Jan Hubicka  <jh@suse.cz>
9641
9642         * tree-ssa-loop-ivopts.c (avg_loop_niter): Use also
9643         max_loop_iterations_int.
9644
9645 2016-04-18  Richard Biener  <rguenther@suse.de>
9646
9647         PR tree-optimization/43434
9648         * tree-ssa-structalias.c (struct vls_data): New.
9649         (visit_loadstore): Handle all pointer-based accesses.
9650         (compute_dependence_clique): Compute a bitmap of restrict tags
9651         assigned bases and pass it to visit_loadstore.
9652
9653 2016-04-18  Matthew Wahab  <matthew.wahab@arm.com>
9654
9655         PR target/70711
9656         * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for armv8+crc,
9657         armv8.1-a and armv8.1-a+crc.
9658
9659 2016-04-18  Richard Biener  <rguenther@suse.de>
9660
9661         PR tree-optimization/70701
9662         * tree-ssa-sccvn.c (vn_reference_lookup_3): Resolve fully constant
9663         references after translating through a memcpy.
9664
9665 2016-04-18  Richard Biener  <rguenther@suse.de>
9666
9667         * tree-ssa-pre.c (postorder, postorder_num): Make locals ...
9668         (compute_antic): ... here.  For partial antic use regular
9669         postorder and scrap iteration.
9670         (compute_partial_antic_aux): Remove unused return value.
9671         (init_pre): Do not allocate postorder.
9672         (fini_pre): Do not free postorder.
9673
9674 2016-04-18  Richard Biener  <rguenther@suse.de>
9675
9676         PR middle-end/37870
9677         * expmed.c (extract_bit_field_1): Remove broken case
9678         using a wider MODE_INT mode.
9679
9680 2016-04-18  Segher Boessenkool  <segher@kernel.crashing.org>
9681
9682         * has-brig.c (lendian16): Don't try to use __builtin_bswap16
9683         unless compiling with at least GCC-4.8.
9684
9685 2016-04-17  Jan Hubicka  <jh@suse.cz>
9686
9687         PR bootstrap/70706
9688         * graphite.c (graphite_finalize): Update call to
9689         tree_estimate_probability.
9690         * predict.h (tree_estimate_probability): Update prototype.
9691
9692 2016-04-17  Jan Hubicka  <jh@suse.cz>
9693
9694         * predict.c (combine_predictions_for_bb): Add dry_run parmaeter.
9695         (tree_estimate_probability): Likewise.
9696         (pass_profile::execute): Update.
9697         (report_predictor_hitrates): New function.
9698         * profile.c (compute_branch_probabilities): Use it.
9699         * predict.h (report_predictor_hitrates): Declare.
9700
9701 2016-04-17  Jan Hubicka  <jh@suse.cz>
9702
9703         PR ipa/70018
9704         * cgraph.h (cgraph_node::set_const_flag,
9705         cgraph_node::set_pure_flag): Update prototype to return bool;
9706         update comment.
9707         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases): Thunks
9708         of interposable symbol are interposable, too.
9709         (cgraph_set_const_flag_1): Rename to ...
9710         (set_const_flag_1): ... this one; change to self recursive function
9711         instead of call_for_symbol_thunks_and_aliases. Handle correctly
9712         clearnig the flag in all variants and also virtual thunks of const
9713         functions are pure; track if any change was done.
9714         (cgraph_node::set_const_flag): Update.
9715         (struct set_pure_flag_info): New struct.
9716         (cgraph_set_pure_flag_1): Rename to ...
9717         (set_pure_flag_1): ... this one; take set_pure_flag_info parameter
9718         rather than pointer encoded flags; track if any changes was done;
9719         handle correctly clearning flag and setting flag of aliases already
9720         declared const.
9721         (cgraph_node::set_pure_flag): Update.
9722         (cgraph_node::set_nothrow_flag): Handle correctly clearning the flag.
9723
9724 2016-04-17  Tom de Vries  <tom@codesourcery.com>
9725
9726         PR other/70433
9727         * pretty-print.c (pp_write_text_as_dot_label_to_stream): Escape
9728         backslash in label.
9729
9730 2016-04-17  Tom de Vries  <tom@codesourcery.com>
9731
9732         * pretty-print.c (pp_write_text_as_dot_label_to_stream): Classify chars
9733         '{}<> ' as escape-for-record.
9734
9735 2016-04-17  Tom de Vries  <tom@codesourcery.com>
9736
9737         * pretty-print.c (pp_write_text_as_dot_label_to_stream): Simplify loop
9738         structure.
9739
9740 2016-04-17  Tom de Vries  <tom@codesourcery.com>
9741
9742         PR other/70185
9743         * tree-pass.h (class opt_pass): Remove graph_dump_initialized member.
9744         * dumpfile.h (struct dump_file_info): Add graph_dump_initialized field.
9745         * dumpfile.c (dump_files): Initialize graph_dump_initialized field.
9746         * passes.c (finish_optimization_passes): Only call
9747         finish_graph_dump_file if dfi->graph_dump_initialized.
9748         (execute_function_dump, pass_init_dump_file): Use
9749         dfi->graph_dump_initialized instead of pass->graph_dump_initialized.
9750
9751 2016-04-17  Tom de Vries  <tom@codesourcery.com>
9752
9753         PR tree-optimization/70256
9754         * tree-ssa-structalias.c (dump_varinfo, debug_varinfo, dump_varmap)
9755         (debug_varmap): New function.
9756
9757 2016-04-17  Tom de Vries  <tom@codesourcery.com>
9758
9759         PR other/70183
9760         * passes.c (pass_manager::register_pass): Propagate pflags.
9761
9762 2016-04-17  Tom de Vries  <tom@codesourcery.com>
9763
9764         PR other/68875
9765         * pass_manager.h (TERMINATE_PASS_LIST): Add pass argument.
9766         * passes.c (pass_manager::pass_manager): Declare and init p_start in
9767         INSERT_PASSES_AFTER.  Add pass parameter to TERMINATE_PASS_LIST, and
9768         check if it's equal to p_start.
9769         * passes.def: Add arguments to TERMINATE_PASS_LISTs.
9770
9771 2016-04-15  Jan Hubicka  <jh@suse.cz>
9772
9773         PR ipa/70018
9774         * cgraph.c (cgraph_set_const_flag_1): Only set as pure if
9775         function does not bind to current def.
9776         * ipa-pure-const.c (worse_state): Add FROM and TO parameters;
9777         handle conservatively calls to functions that does not need to bind
9778         to current def.
9779         (check_call): Update call of worse_state.
9780         (ignore_edge_for_nothrow): Update.
9781         (ignore_edge_for_pure_const): Likewise.
9782         (propagate_pure_const): Update calls to worse_state.
9783         (skip_function_for_local_pure_const): Reformat comments.
9784
9785 2016-04-15  Jan Hubicka  <jh@suse.cz>
9786
9787         PR ipa/70018
9788         * cgraph.c (cgraph_node::get_availability): Add REF parameter.
9789         (cgraph_node::function_symbol): Likewise.
9790         (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
9791         * cgraph.h (symtab_node::get_availabbility): Add REF parameter.
9792         (symtab_node::ultimate_alias_target): Add REF parameter.
9793         (symtab_node::binds_to_current_def_p): Declare.
9794         (symtab_node;:ultimate_alias_target_1): Add REF parameter.
9795         (cgraph_node::function_symbol): Likewise.
9796         (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
9797         (cgraph_node::get_availability): Likewise.
9798         (cgraph_edge::binds_to_current_def_p): New inline function.
9799         (varpool_node::get_availability): Add REF parameter.
9800         (varpool_node::ultimate_alias_target): Likewise.
9801         * symtab.c (symtab_node::ultimate_alias_target_1): Likewise.
9802         (symtab_node::binds_to_current_def_p): Likewise.
9803         * varpool.c (varpool_node::get_availability): Likewise.
9804
9805 2016-04-15  Kirill Yukhin  <kirill.yukhin@intel.com>
9806
9807         PR target/70662
9808         * config/i386/sse.md(define_insn "<avx512>_vec_dup<mode><mask_name>"):
9809         Fix mode size check.
9810
9811 2016-04-15  Jakub Jelinek  <jakub@redhat.com>
9812
9813         * BASE-VER: Set to 7.0.0.
9814
9815 2016-04-15  Alexander Monakov  <amonakov@ispras.ru>
9816
9817         * config/nvptx/nvptx.opt (moptimize): Add a period at end of help text.
9818
9819 2016-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9820
9821         * doc/invoke.texi (ARM Options): Add note on deprecation of pre-ARMv4T
9822         architecture revisions.
9823
9824 2016-04-15  Bernd Schmidt  <bschmidt@redhat.com>
9825
9826         * config/i386/i386-protos.h (ix86_using_red_zone): Declare.
9827         * config/i386/i386.c (ix86_using_red_zone): No longer static.
9828         * config/i386/i386.md (stack decrement to push peepholes): Guard
9829         with !x86_using_red_zone ().
9830
9831 2016-04-15  Jakub Jelinek  <jakub@redhat.com>
9832
9833         PR c++/70675
9834         * tree-pretty-print.c (do_niy): Add FLAGS argument, pass it down
9835         to dump_generic_node.
9836         (NIY): Pass also flags to do_niy.
9837
9838 2016-04-15  Thomas Schwinge  <thomas@codesourcery.com>
9839
9840         * omp-low.c (simd_clone_struct_alloc, simd_clone_struct_copy)
9841         (simd_clone_vector_of_formal_parm_types)
9842         (simd_clone_clauses_extract, simd_clone_compute_base_data_type)
9843         (simd_clone_mangle, simd_clone_create)
9844         (simd_clone_adjust_return_type, create_tmp_simd_array)
9845         (simd_clone_adjust_argument_types, simd_clone_init_simd_arrays)
9846         (struct modify_stmt_info, ipa_simd_modify_stmt_ops)
9847         (ipa_simd_modify_function_body, simd_clone_linear_addend)
9848         (simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone)
9849         (pass_data_omp_simd_clone, class pass_omp_simd_clone)
9850         (pass_omp_simd_clone::gate, make_pass_omp_simd_clone): Move into...
9851         * omp-simd-clone.c: ... this new file.
9852         (simd_clone_vector_of_formal_parm_types): Make it static.
9853         * Makefile.in (OBJS): Add omp-simd-clone.o.
9854
9855 2016-04-15  Kirill Yukhin  <kirill.yukhin@intel.com>
9856
9857         PR target/70662
9858         * config/i386/sse.md: Use proper memory operand modifiers.
9859
9860
9861 2016-04-15  Richard Biener  <rguenther@suse.de>
9862         Alan Modra  <amodra@gmail.com>
9863
9864         PR tree-optimization/70130
9865         * tree-vect-data-refs.c (vect_supportable_dr_alignment): Detect
9866         when alignment stays not the same and no not use the realign
9867         scheme then.
9868
9869 2016-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
9870
9871         PR target/70669
9872         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
9873         direct move handlers for KFmode. Change TFmode handlers test from
9874         FLOAT128_IEEE_P to FLOAT128_VECTOR_P.
9875
9876 2016-04-14  Jakub Jelinek  <jakub@redhat.com>
9877
9878         PR c++/70594
9879         * ipa-utils.h (polymorphic_ctor_dtor_p): New prototype.
9880         * ipa-polymorphic-call.c (polymorphic_ctor_dtor_p): New function.
9881         (inlined_polymorphic_ctor_dtor_block_p): Use it.
9882         * tree-ssa-live.c (remove_unused_scope_block_p): When
9883         in_ctor_dtor_block, avoid discarding not just BLOCKs with
9884         BLOCK_ABSTRACT_ORIGIN being FUNCTION_DECL, but even when
9885         block_ultimate_origin is FUNCTION_DECL.
9886         (remove_unused_locals): If current_function_decl is
9887         polymorphic_ctor_dtor_p, pass initial true to
9888         remove_unused_scope_block_p' is_ctor_dtor_block.
9889
9890 2016-04-14  Martin Sebor  <msebor@redhat.com>
9891
9892         PR c++/69517
9893         PR c++/70019
9894         PR c++/70588
9895         * doc/extend.texi (Variable Length): Revert.
9896
9897 2016-04-14  Marek Polacek  <polacek@redhat.com>
9898             Jan Hubicka  <hubicka@ucw.cz>
9899
9900         PR c++/70029
9901         * tree.c (verify_type): Disable the canonical type of main variant
9902         check.
9903
9904 2016-04-14  Jason Merrill  <jason@redhat.com>
9905
9906         * cfgexpand.c, expr.c: Revert previous change.
9907
9908 2016-04-14  Cesar Philippidis  <cesar@codesourcery.com>
9909
9910         PR middle-end/70643
9911         * omp-low.c (lower_oacc_reductions): Check for TREE_CONSTANT
9912         when building a mem ref for the incoming reduction variable.
9913
9914 2016-04-14  Richard Biener  <rguenther@suse.de>
9915
9916         PR tree-optimization/70614
9917         * tree-scalar-evolution.c (analyze_evolution_in_loop): Terminate
9918         loop if the evolution dropped to chrec_dont_know.
9919         (interpret_condition_phi): Likewise.
9920
9921 2016-04-14  Richard Biener  <rguenther@suse.de>
9922
9923         PR tree-optimization/70623
9924         * tree-ssa-pre.c (changed_blocks): Make global ...
9925         (compute_antic): ... local here.  Move and fix worklist
9926         handling here.  Do not clear EDGE_DFS_BACK or call mark_dfs_back_edges.
9927         (compute_antic_aux): Add dumping for MAX assumed succs.  Remove
9928         worklist handling, dump when ANTIC_IN changed.
9929         (compute_partial_antic_aux): Remove worklist handling.
9930         (init_pre): Do not compute post dominators.  Add a comment about
9931         the CFG order chosen.
9932         (fini_pre): Do not free post dominators.
9933
9934 2016-04-13  Martin Sebor  <msebor@redhat.com>
9935
9936         PR c++/69517
9937         PR c++/70019
9938         PR c++/70588
9939         * doc/extend.texi (Variable Length): Document C++ specifics.
9940
9941 2016-04-13  Jakub Jelinek  <jakub@redhat.com>
9942
9943         PR c++/70641
9944         * ipa-pure-const.c (pass_nothrow::execute): Call maybe_clean_eh_stmt
9945         on all recursive call stmts.  Return TODO_cleanup_cfg if any dead
9946         eh edges have been purged.
9947
9948         PR c++/70594
9949         * tree-sra.c (create_access_replacement,
9950         get_replaced_param_substitute): Set DECL_NAMELESS on repl if it
9951         gets fancy name.
9952         * tree-pretty-print.c (dump_fancy_name): New function.
9953         (dump_decl_name, dump_generic_node): Use it.
9954
9955 2016-04-13  Jason Merrill  <jason@redhat.com>
9956
9957         * cfgexpand.c (pass_expand::execute): Handle attribute "abi warning".
9958         * expr.c (expand_expr_real_1): Likewise.
9959
9960 2016-04-13  Ilya Enkovich  <ilya.enkovich@intel.com>
9961
9962         * config/i386/i386.md (kunpckhi): Swap operands.
9963         (kunpcksi): Likewise.
9964         (kunpckdi): Likewise.
9965         * config/i386/sse.md (vec_pack_trunc_qi): Likewise.
9966         (vec_pack_trunc_<mode>): Likewise.
9967
9968 2016-04-13  Jakub Jelinek  <jakub@redhat.com>
9969
9970         PR debug/70628
9971         * explow.c (convert_memory_address_addr_space_1): Formatting fix.
9972
9973         PR middle-end/70633
9974         * gimplify.c (gimplify_init_constructor): Clear TREE_STATIC if
9975         gimplification turns some element into non-constant.
9976
9977         PR debug/70628
9978         * rtl.h (convert_memory_address_addr_space_1): New prototype.
9979         * explow.c (convert_memory_address_addr_space_1): No longer static,
9980         add NO_EMIT argument and don't call convert_modes if true, pass
9981         it down recursively, remove break after return.
9982         (convert_memory_address_addr_space): Adjust caller.
9983         * simplify-rtx.c (simplify_unary_operation_1): Call
9984         convert_memory_address_addr_space_1 instead of convert_memory_address,
9985         if it returns NULL, don't simplify.
9986
9987 2016-04-12  Eric Botcazou  <ebotcazou@adacore.com>
9988
9989         PR target/70630
9990         * config/sparc/sparc.c (sparc_compute_frame_size): Add parentheses.
9991
9992 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
9993
9994         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
9995         Bump the upper SIMDLEN limits, so that if the return type or
9996         characteristic type if the return type is void can be passed in
9997         all available SSE2/AVX/AVX2/AVX512-F registers, the SIMDLEN is
9998         allowed.
9999
10000 2016-04-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
10001
10002         PR target/70640
10003         * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2_internal):
10004         Do not use "=" constraint on an input constraint.
10005         (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
10006         (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
10007         (ieee_128bit_vsx_nabs<mode>2): Correct splitter so that it
10008         generates (neg (abs ...)) instead of (abs ...).
10009
10010 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
10011
10012         PR rtl-optimization/70596
10013         * lra-spills.c (spill_pseudos): Don't delete debug insns, instead
10014         just invalidate LRA data and reset them.  Adjust dump wording.
10015
10016 2016-04-12  Martin Liska  <mliska@suse.cz>
10017
10018         Revert
10019         2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
10020
10021         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
10022         estimates here.
10023         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
10024         max_loop_iterations_int.
10025         (tree_unswitch_outer_loop): Likewise.
10026         * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
10027         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
10028
10029 2016-04-12  Tom de Vries  <tom@codesourcery.com>
10030
10031         PR tree-optimization/68756
10032         * graphite-isl-ast-to-gimple.c (copy_cond_phi_args): Use new_expr
10033         instead of new_name.
10034
10035 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
10036
10037         PR tree-optimization/70602
10038         * tree-sra.c (generate_subtree_copies): Don't write anything into
10039         constant pool decls.
10040
10041         * omp-low.c (lower_omp_target): Use GOMP_MAP_FIRSTPRIVATE_INT
10042         regardless whether there are depend clauses or not.
10043
10044 2016-04-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
10045
10046         PR target/70381
10047         * config/rs6000/rs6000.c (rs6000_opt_masks): Disable using the
10048         target attribute and pragma from changing the -mfloat128
10049         and -mfloat128-hardware options.
10050
10051         * doc/extend.texi (Additional Floating Types): Document PowerPC
10052         __float128 restrictions.
10053
10054 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
10055
10056         PR target/70133
10057         * config/aarch64/driver-aarch64.c
10058         (aarch64_get_extension_string_for_isa_flags): New.
10059         (arch_extension): Rename to...
10060         (aarch64_arch_extension): ...This.
10061         (ext_to_feat_string): Rename to...
10062         (aarch64_extensions): ...This.
10063         (aarch64_core_data): Keep track of architecture extension flags.
10064         (cpu_data): Rename to...
10065         (aarch64_cpu_data): ...This.
10066         (aarch64_arch_driver_info): Keep track of architecture extension
10067         flags.
10068         (get_arch_name_from_id): Rename to...
10069         (get_arch_from_id): ...This, change return type.
10070         (host_detect_local_cpu): Update and reformat for renames, handle
10071         extensions through common infrastructure.
10072
10073 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
10074
10075         PR target/70133
10076         * config/aarch64/aarch64-common.c (aarch64_option_extension): Keep
10077         track of a canonical flag name.
10078         (all_extensions): Likewise.
10079         (arch_to_arch_name): Also track extension flags enabled by the arch.
10080         (all_architectures): Likewise.
10081         (aarch64_parse_extension): Move to here.
10082         (aarch64_get_extension_string_for_isa_flags): Take a new argument,
10083         rework.
10084         (aarch64_rewrite_selected_cpu): Update for above change.
10085         * config/aarch64/aarch64-option-extensions.def: Rework the way flags
10086         are handled, such that the single explicit value enabled by an
10087         extension is kept seperate from the implicit values it also enables.
10088         * config/aarch64/aarch64-protos.h (aarch64_parse_opt_result): Move
10089         to here.
10090         (aarch64_parse_extension): New.
10091         * config/aarch64/aarch64.c (aarch64_parse_opt_result): Move from
10092         here to config/aarch64/aarch64-protos.h.
10093         (aarch64_parse_extension): Move from here to
10094         common/config/aarch64/aarch64-common.c.
10095         (aarch64_option_print): Update.
10096         (aarch64_declare_function_name): Likewise.
10097         (aarch64_start_file): Likewise.
10098         * config/aarch64/driver-aarch64.c (arch_extension): Keep track of
10099         the canonical flag for extensions.
10100         * config.gcc (aarch64*-*-*): Extend regex for capturing extension
10101         flags.
10102
10103 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
10104
10105         * config/aarch64/aarch64.h (AARCH64_FL_FOR_ARCH8_1): Also add
10106         AARCH64_FL_CRC.
10107
10108 2016-04-09  Tom de Vries  <tom@codesourcery.com>
10109
10110         PR tree-optimization/68953
10111         * graphite-sese-to-poly.c (pdr_add_memory_accesses): Order accesses from
10112         first to last subscript.
10113
10114 2016-04-09  Jakub Jelinek  <jakub@redhat.com>
10115
10116         PR tree-optimization/70586
10117         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Return false
10118         for any calls.
10119
10120 2016-04-08  Cesar Philippidis  <cesar@codesourcery.com>
10121
10122         PR lto/70289
10123         PR ipa/70348
10124         PR tree-optimization/70373
10125         PR middle-end/70533
10126         PR middle-end/70534
10127         PR middle-end/70535
10128         * gimplify.c (gimplify_adjust_omp_clauses): Add or adjust data
10129         clauses for acc parallel reductions as necessary.  Error on those
10130         that are private.
10131         * omp-low.c (scan_sharing_clauses): Don't install variables which
10132         are used in acc parallel reductions.
10133         (lower_rec_input_clauses): Remove dead code.
10134         (lower_oacc_reductions): Add support for reference reductions.
10135         (lower_reduction_clauses): Remove dead code.
10136         (lower_omp_target): Don't remap variables appearing in acc parallel
10137         reductions.
10138         * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): New macro.
10139
10140 2016-04-08  Jakub Jelinek  <jakub@redhat.com>
10141
10142         PR middle-end/70593
10143         * tree-ssa-coalesce.c (build_ssa_conflict_graph): For stmt
10144         with multiple SSA_NAME defs, force the outputs other than first
10145         to be live before calling live_track_process_def on each output.
10146
10147         PR rtl-optimization/70574
10148         * fwprop.c (forward_propagate_and_simplify): Don't add
10149         REG_EQUAL note if DF_REF_REG (use) is a paradoxical subreg.
10150         (try_fwprop_subst): Don't add REG_EQUAL note if there are any
10151         paradoxical subregs within *loc.
10152
10153 2016-04-08  Thomas Schwinge  <thomas@codesourcery.com>
10154
10155         * config/arc/arc.h (LINK_COMMAND_SPEC): Use gt to ignore
10156         -ftree-parallelize-loops={0,1}.
10157         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
10158         * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
10159         * config/ia64/hpux.h (LIB_SPEC): Likewise.
10160         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
10161         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
10162
10163 2016-04-08  Maxim Ostapenko  <m.ostapenko@samsung.com>
10164
10165         PR sanitizer/70541
10166         * asan.c (instrument_derefs): If we get unknown location, extract it
10167         with EXPR_LOCATION.
10168         (maybe_instrument_call): Instrument gimple_call's arguments if needed.
10169
10170 2016-04-08  Tom de Vries  <tom@codesourcery.com>
10171
10172         * omp-low.c (lower_omp_target): Set TREE_NO_WARNING for oacc
10173         implicit firstprivate clause.
10174
10175 2016-04-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10176
10177         PR target/70566
10178         * config/arm/thumb2.md (tst + branch-> lsls + branch
10179         peephole below *orsi_not_shiftsi_si): Require that condition
10180         register is dead after the peephole.
10181         (second peephole after the above): Likewise.
10182
10183 2016-04-08  Alan Modra  <amodra@gmail.com>
10184
10185         PR target/70117
10186         * builtins.c (fold_builtin_classify): For IBM extended precision,
10187         look at just the high-order double to test for NaN.
10188         (fold_builtin_interclass_mathfn): Similarly for Inf.  For isnormal
10189         test just the high double for Inf but both doubles for subnormal
10190         limit.
10191
10192 2016-04-07  Jakub Jelinek  <jakub@redhat.com>
10193
10194         * cgraph.h (struct cgraph_simd_clone): Add mask_mode field.
10195         * omp-low.c (simd_clone_init_simd_arrays, simd_clone_adjust): Handle
10196         node->simdclone->mask_mode != VOIDmode masks.
10197         (simd_clone_adjust_argument_types): Likewise.  Move sc var definition
10198         earlier, use it instead of node->simdclone.
10199         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
10200         Set clonei->mask_mode.
10201
10202 2016-04-06  Patrick Palka  <ppalka@gcc.gnu.org>
10203
10204         PR c/70436
10205         * parser.c (cp_parser_iteration_statement): New parameter IF_P.
10206         Pass it through to cp_parser_already_scoped_statement.
10207         (cp_parser_already_scoped_statement): New parameter IF_P.  Pass
10208         it through to cp_parser_statement.
10209         (cp_parser_statement): Pass IF_P through to
10210         cp_parser_iteration_statement.
10211         (cp_parser_pragma): Adjust call to
10212         cp_parser_iteration_statement.
10213
10214 2016-04-06  Patrick Palka  <ppalka@gcc.gnu.org>
10215
10216         PR c/70436
10217         * gimplify.c (gimplify_omp_ordered): Add explicit braces to
10218         resolve a future -Wparentheses warning.
10219         * omp-low.c (scan_sharing_clauses): Likewise.
10220         * tree-parloops.c (eliminate_local_variables): Likewise.
10221
10222 2016-04-06  Vladimir Makarov  <vmakarov@redhat.com>
10223
10224         PR rtl-optimization/70398
10225         * lra-constraints.c (process_address_1): Check zero scale and code
10226         for reloading with zero scale.
10227
10228 2016-04-06  Uros Bizjak  <ubizjak@gmail.com>
10229
10230         * config/i386/sse.md (shuffletype): Add V32HI and V4TI modes.
10231         (ssescalarsize): Add V8SF, V4SF, V4DF and V2DF modes.
10232
10233 2016-04-06  Jakub Jelinek  <jakub@redhat.com>
10234
10235         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
10236         Add support for AVX512F clones, include them by default for
10237         exported OpenMP declare simd functions.  For AVX2 allow simdlen 32
10238         and use it if charasteric type is 8-bit, for AVX512F allow simdlen
10239         up to 128.
10240
10241         PR middle-end/70550
10242         * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT): Define.
10243         * gimplify.c (gimplify_adjust_omp_clauses_1): Set it for implicit
10244         firstprivate clauses.
10245         * omp-low.c (lower_send_clauses): Set TREE_NO_WARNING for
10246         OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT !by_ref vars in task contexts.
10247         (lower_omp_target): Set TREE_NO_WARNING for
10248         non-addressable possibly uninitialized vars which are copied into
10249         addressable temporaries or copied for GOMP_MAP_FIRSTPRIVATE_INT.
10250
10251 2016-04-05  John David Anglin  <danglin@gcc.gnu.org>
10252
10253         * config/pa/predicates.md (integer_store_memory_operand): Accept
10254         REG+D operands with a large offset when reload_in_progress is true.
10255         (floating_point_store_memory_operand): Likewise.
10256
10257 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
10258
10259         PR c++/70336
10260         * match.pd (nested int casts): Limit to GIMPLE.
10261
10262 2016-04-05  Jan Hubicka  <hubicka@ucw.cz>
10263
10264         PR ipa/66223
10265         * ipa-devirt.c (maybe_record_node): Fix comment; use
10266         SANITIZE_UNREACHABLE instead of SANITIZE_UNDEFINED.
10267
10268 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
10269
10270         PR rtl-optimization/70542
10271         * ree.c (add_removable_extension): For VECTOR_MODE_P punt
10272         if there are any uses other than insn or debug insns.
10273
10274 2016-04-05  Marc Glisse  <marc.glisse@inria.fr>
10275             Jakub Jelinek  <jakub@redhat.com>
10276
10277         PR tree-optimization/70509
10278         * simplify-rtx.c (simplify_binary_operation_1) <case VEC_SELECT>:
10279         Shift HOST_WIDE_INT_1U instead of 1.
10280
10281 2016-04-05  Zdenek Sojka  <zsojka@seznam.cz>
10282
10283         PR tree-optimization/70509
10284         * tree-ssa-forwprop.c (simplify_bitfield_ref): Use bitsize_int instead
10285         of the vector base type for index.
10286
10287 2016-04-05  Uros Bizjak  <ubizjak@gmail.com>
10288
10289         PR target/70510
10290         * config/i386/sse.md (iptr): Add V64QI, V32HI, V16SI and V8DI modes.
10291
10292 2016-04-05  Richard Biener  <rguenther@suse.de>
10293
10294         PR tree-optimization/70526
10295         * tree-sra.c (build_ref_for_offset): Use prev_base to
10296         extract the alias pointer type.
10297
10298 2016-04-05  Richard Biener  <rguenther@suse.de>
10299
10300         * dse.c (struct store_info): Remove alias_set member.
10301         (struct read_info_type): Likewise.
10302         (clear_alias_group, clear_alias_mode_table, clear_alias_mode_holder,
10303         spill_deleted, clear_alias_set_lookup): Remove.
10304         (get_group_info): Remove dead base == NULL_RTX case.
10305         (dse_step0): Remove initialization of removed variables.
10306         (delete_dead_store_insn): Reomve alias set dumping.
10307         (free_read_records): Remove alias_set handling.
10308         (canon_address): Remove alias_set_out parameter.
10309         (record_store): Remove spill_alias_set, it's always zero.
10310         (check_mem_read_rtx): Likewise.
10311         (dse_step2): Rename from ...
10312         (dse_step2_nospill): ... this.  Adjust.
10313         (scan_stores): Rename from ...
10314         (scan_stores_nospill): ... this.
10315         (scan_reads): Rename from ...
10316         (scan_reads_nospill): ... this.
10317         (scan_stores_spill, scan_reads_spill): Remove.
10318         (dse_step3_scan): Remove for_spills argument which is always false.
10319         (dse_step3): Likewise.
10320         (dse_step5): Rename from ...
10321         (dse_step5_nospill): ... this.  Remove alias_set handling.
10322         (rest_of_handle_dse): Adjust.
10323
10324 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
10325
10326         PR target/70525
10327         * config/i386/sse.md (*andnot<mode>3): Simplify assertions.
10328         Use vpandn<ssemodesuffix> for V16SI/V8DImode, vpandnq for
10329         V32HI/V64QImode, don't use <mask_operand3_1>, fix up formatting.
10330         (*andnot<mode>3_mask): Remove insn with VI12_AVX512VL iterator.
10331
10332 2016-04-05  Richard Biener  <rguenther@suse.de>
10333
10334         PR middle-end/70499
10335         * gimplify-me.c (gimple_regimplify_operands): Do not rewrite
10336         non-register type temporaries into SSA.
10337
10338 2016-04-04  Jan Hubicka  <hubicka@ucw.cz>
10339
10340         PR ipa/66223
10341         * ipa-devirt.c (maybe_record_node): Do not optimize cxa_pure_virtual
10342         calls when sanitizing.
10343         (possible_polymorphic_call_target_p): Fix formatting.
10344
10345 2016-04-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10346             Jakub Jelinek <jakub@redhat.com>
10347
10348         PR middle-end/70457
10349         * tree-inline.c (estimate_num_insn): Use gimple_call_builtin_p
10350         to ensure a call statement is compatible with a built-in's
10351         prototype.
10352         * tree-ssa-math-opts.c (pass_optimize_windening_mul::execute):
10353         Likewise.
10354
10355 2016-04-04  Richard Biener  <rguenther@suse.de>
10356
10357         PR rtl-optimization/70484
10358         * rtl.h (canon_output_dependence): Declare.
10359         * alias.c (canon_output_dependence): New function.
10360         * dse.c (record_store): Use canon_output_dependence rather
10361         than canon_true_dependence.
10362
10363 2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
10364
10365         PR ipa/68881
10366         * cgraph.h (symtab_node::copy_visibility_from): New function.
10367         * symtab.c (symtab_node::copy_visibility_from): New function.
10368         * ipa-visibility.c (optimize_weakref): New function.
10369         (function_and_variable_visibility): Use it.
10370
10371 2016-04-04  Martin Liska  <mliska@suse.cz>
10372
10373         PR hsa/70402
10374         * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Guard index
10375         value that is really in range handled by SBR instruction.
10376         * hsa-brig.c (emit_switch_insn): Do not emit unconditional jump.
10377         * hsa-dump.c (dump_hsa_insn_1): Do not dump default BB.
10378         * hsa.h (hsa_insn_sbr::m_default_bb): Remove field.
10379
10380 2016-04-03  Oleg Endo  <olegendo@gcc.gnu.org>
10381
10382         PR target/70416
10383         PR target/67391
10384         * config/sh/sh.md (*addsi3): Allow pattern when reload_in_progress is
10385         set, but not for SP_REG operands.
10386
10387 2016-04-02  Martin Sebor  <msebor@redhat.com>
10388
10389         PR c++/67376
10390         * fold-const.c (maybe_nonzero_address): New function.
10391         (fold_comparison): Call it.  Fold equality and relational
10392         expressions involving null pointers.
10393         (tree_single_nonzero_warnv_p): Call maybe_nonzero_address.
10394
10395 2016-03-31  Evandro Menezes  <e.menezes@samsung.com>
10396
10397         Fix the predicate "aarch64_simd_reg_or_zero" to correctly validate
10398         the "Y" constraint (scalar FP 0.0 immediate).
10399
10400         * config/aarch64/predicates.md (aarch64_simd_reg_or_zero):
10401         Add the "const_double" to the list of operand constraints.
10402
10403 2016-04-01  Jakub Jelinek  <jakub@redhat.com>
10404
10405         PR rtl-optimization/70467
10406         * config/i386/i386.md (*add<dwi>3_doubleword, *sub<dwi>3_doubleword):
10407         If low word of the last operand is 0, just emit addition/subtraction
10408         for the high word.
10409
10410 2016-04-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10411
10412         PR target/70404
10413         * config/s390/s390.c (s390_expand_insv): Check for everything
10414         constant instead of just VOIDmode stuff.
10415
10416 2016-04-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10417
10418         PR target/70496
10419         * config/arm/arm.h (ASM_APP_OFF): Handle TARGET_ARM and TARGET_THUMB.
10420
10421 2016-04-01  Nathan Sidwell  <nathan@acm.org>
10422
10423         * tree.def (TRY_CATCH_EXPR): Correct documentation.
10424
10425 2016-03-31  Vladimir Makarov  <vmakarov@redhat.com>
10426
10427         PR rtl-optimization/70461
10428         * ira-color.c (allocno_copy_cost_saving): Use allocno class if it
10429         is necessary.
10430
10431 2016-03-31  Martin Liska  <mliska@suse.cz>
10432
10433         PR hsa/70399
10434         * hsa-brig.c (hsa_op_immed::emit_to_buffer): Emit either
10435         a tree value or an immediate integer value to a buffer
10436         that is eventually copied to a BRIG section.
10437         (emit_immediate_operand): Call the function here.
10438         * hsa-dump.c (dump_hsa_immed): Remove checking assert.
10439         * hsa-gen.c (hsa_op_immed::hsa_op_immed): Remove initialization
10440         of class' fields that are removed.
10441         (hsa_op_immed::~hsa_op_immed): Remove deinitialization.
10442         * hsa.h (class hsa_op_immed): Remove m_brig_repr and
10443         m_brig_repr_size fields.
10444
10445 2016-03-31  Martin Liska  <mliska@suse.cz>
10446
10447         PR hsa/70391
10448         * hsa-gen.c (hsa_function_representation::update_dominance): New
10449         function.
10450         (convert_addr_to_flat_segment): Likewise.
10451         (gen_hsa_memory_set): New alignment argument.
10452         (gen_hsa_ctor_assignment): Likewise.
10453         (gen_hsa_insns_for_single_assignment): Provide alignment
10454         to gen_hsa_ctor_assignment.
10455         (gen_hsa_insns_for_direct_call): Add new argument.
10456         (expand_lhs_of_string_op): New function.
10457         (expand_string_operation_builtin): Likewise.
10458         (expand_memory_copy): New function.
10459         (expand_memory_set): New function.
10460         (gen_hsa_insns_for_call): Use HOST_WIDE_INT.
10461         (convert_switch_statements): Change signature.
10462         (generate_hsa): Use a return value of the function.
10463         (pass_gen_hsail::execute): Do not call
10464         convert_switch_statements here.
10465         * hsa-regalloc.c (hsa_regalloc): Call update_dominance.
10466         * hsa.h (hsa_function_representation::m_modified_cfg): New flag.
10467         (hsa_function_representation::update_dominance): New function.
10468
10469 2016-03-31  Martin Liska  <mliska@suse.cz>
10470
10471         PR hsa/70391
10472         * hsa-brig.c (emit_directive_variable): Emit alignment
10473         according to hsa_symbol::m_align.
10474         * hsa-dump.c (hsa_byte_alignment): Move the function to another file.
10475         (dump_hsa_symbol): Dump alignment of HSA symbols.
10476         * hsa-gen.c (get_symbol_for_decl): Set-up alignment of a symbol.
10477         (gen_hsa_addr_with_align): New function.
10478         (hsa_bitmemref_alignment): Use newly added function.
10479         (gen_hsa_insns_for_load): Likewise.
10480         (gen_hsa_insns_for_store): Likewise.
10481         (gen_hsa_memory_copy): New argument added.
10482         (gen_hsa_insns_for_single_assignment): Respect
10483         alignment for assignments processed via gen_hsa_memory_copy.
10484         (gen_hsa_insns_for_direct_call): Likewise.
10485         (gen_hsa_insns_for_return): Likewise.
10486         (gen_function_def_parameters): Set default alignment.
10487         * hsa.c (hsa_object_alignment): New function.
10488         (hsa_byte_alignment): Pasted function.
10489         * hsa.h (hsa_symbol::m_align): New field.
10490
10491 2016-03-31  Bin Cheng  <bin.cheng@arm.com>
10492
10493         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Initialize
10494         scratch field for goto case.
10495
10496 2016-03-31  James Greenhalgh  <james.greenhalgh@arm.com>
10497
10498         * config/arm/linux-elf.h (ASM_OUTPUT_DEF): Delete.
10499
10500 2016-03-31  Ilya Enkovich  <enkovich.gnu@gmail.com>
10501
10502         PR target/70442
10503         * config/i386/i386.c (scalar_chain::convert_op): Fix description.
10504         (scalar_chain::convert_insn): Call convert_op for reg
10505         moves to handle undefined registers.
10506
10507 2016-03-31  Nathan Sidwell  <nathan@acm.org>
10508
10509         PR c++/70393
10510         * varasm.c (output_constructor_regular_field): Flush bitfield earlier.
10511         Assert we don't want to move backwards.
10512
10513 2016-03-31  Kirill Yukhin  <kirill.yukhin@intel.com>
10514
10515         PR target/70453
10516         * config/i386/sse.md (define_mode_attr shuffletype): Fix typo.
10517
10518 2016-03-31  Jakub Jelinek  <jakub@redhat.com>
10519
10520         PR rtl-optimization/70460
10521         * ira.c (indirect_jump_optimize): Don't substitute LABEL_REF
10522         with operand from REG_LABEL_OPERAND, instead substitute
10523         SET_SRC or REG_EQUAL note content if it is a LABEL_REF.
10524         Don't do anything for REG_NON_LOCAL_GOTO jumps.
10525
10526 2016-03-31  Martin Liska  <mliska@suse.cz>
10527
10528         * passes.c (execute_one_pass): Do not call
10529         todo_after for a discarded function.
10530
10531 2016-03-31  Bin Cheng  <bin.cheng@arm.com>
10532
10533         * tree-ssa-loop-ivopts.c (struct comp_cost): New scrach field.
10534         (no_cost, infinite_cost): Initialize the new field.
10535         (get_computation_cost_at): Record setup cost.
10536         (determine_use_iv_cost_address): Skip cost computation for sub
10537         uses if we can estimate it without losing accuracy.
10538
10539 2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
10540
10541         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
10542         estimates here.
10543         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
10544         max_loop_iterations_int.
10545         (tree_unswitch_outer_loop): Likewise.
10546         * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
10547         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
10548
10549 2016-03-30  Richard Biener  <rguenther@suse.de>
10550
10551         PR middle-end/70450
10552         * fold-const.c (extract_muldiv_1): Fix thinko in wide_int::from usage.
10553
10554 2016-03-30  Jakub Jelinek  <jakub@redhat.com>
10555
10556         PR target/70421
10557         * config/i386/i386.c (ix86_expand_vector_set): Fix up argument order
10558         in gen_blendm expander.
10559
10560 2016-03-30  Nick Clifton  <nickc@redhat.com>
10561
10562         PR target/62254
10563         * config/arm/arm.c (arm_reload_out_hi): Add code to handle the
10564         case where we are already provided with an SImode SUBREG.
10565
10566 2016-03-30  H.J. Lu  <hongjiu.lu@intel.com>
10567
10568         PR target/70439
10569         * config/i386/i386.c (ix86_expand_epilogue): Properly check
10570         conflict between DRAP register and __builtin_eh_return.
10571
10572 2016-03-30  Michael Matz  <matz@suse.de>
10573             Richard Biener  <rguenther@suse.de>
10574
10575         PR ipa/12392
10576         * ipa-polymorphic-call.c (struct type_change_info): Change
10577         speculative to an unsigned allowing to limit the work we do.
10578         (csftc_abort_walking_p): New inline function..
10579         (check_stmt_for_type_change): Limit the number of may-defs
10580         skipped for speculative devirtualization to
10581         max-speculative-devirt-maydefs.
10582         * params.def (max-speculative-devirt-maydefs): New param.
10583         * doc/invoke.texi (--param max-speculative-devirt-maydefs): Document.
10584
10585 2016-03-30  Mike Stump  <mrs@gcc.gnu.org>
10586
10587         PR target/63890
10588         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use when profiling
10589         and TARGET_MACHO.
10590
10591 2016-03-30  Patrick Palka  <ppalka@gcc.gnu.org>
10592
10593         PR tree-optimization/59124
10594         * tree-vrp.c (register_edge_assert_for_2): For NAME != CST1
10595         where NAME = A +- CST2 add the assertion A != (CST1 -+ CST2).
10596
10597 2016-03-29  Jeff Law  <law@redhat.com>
10598
10599         * tree-ssa-coalesce.c (struct ssa_conflicts): Fix typo in comment.
10600
10601 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
10602
10603         * tree-ssa-loop-ivcanon.c (try_peel_loop): Change type of peel
10604         to HOST_WIDE_INT.
10605
10606 2016-03-29  Thomas Schwinge  <thomas@codesourcery.com>
10607
10608         * config/gnu.h (CPP_SPEC, LIB_SPEC): Don't override.
10609         * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt1.o instead of
10610         gcrt0.o if linking dynamically.
10611
10612 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
10613
10614         PR ipa/70283
10615         * ipa-devirt.c (methods_equal_p): New function.
10616         (compare_virtual_tables): Use it.
10617         * cgraph.h (symbol_table::symbol_suffix_separator): Declare.
10618         * cgraphclones.c (clone_function_name_1): Use
10619         symbol_table::symbol_suffix_separator.
10620         * coverage.c (build_var): Likewise.
10621         * symtab.c (symbol_table::symbol_suffix_separator): New.
10622
10623 2016-03-29  Jakub Jelinek  <jakub@redhat.com>
10624
10625         PR rtl-optimization/70429
10626         * combine.c (simplify_shift_const_1): For ASHIFTRT don't optimize
10627         (cst1 >> count) >> cst2 into (cst1 >> cst2) >> count if
10628         mode != result_mode.
10629
10630         PR c++/70353
10631         * tree-inline.c (remap_decls): Don't add_local_decl if cfun is null.
10632
10633         PR tree-optimization/70405
10634         * ssa-iterators.h (num_imm_uses): Add missing braces.
10635
10636 2016-03-29  Vladimir Makarov  <vmakarov@redhat.com>
10637
10638         PR rtl-optimization/68695
10639         * ira-color.c (allocno_copy_cost_saving): New.
10640         (improve_allocation): Use it.
10641
10642 2016-03-29  Richard Henderson  <rth@redhat.com>
10643
10644         PR middle-end/70355
10645         * lower-subreg.c (simplify_subreg_concatn): Reject paradoxical subregs.
10646
10647 2016-03-29  Richard Biener  <rguenther@suse.de>
10648
10649         PR middle-end/70424
10650         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Always
10651         use alignment returned by get_pointer_alignment_1 if it is
10652         bigger than BITS_PER_UNIT.
10653         * builtins.c (get_pointer_alignment_1): Do not return true
10654         for alignment extracted from SSA info.
10655
10656 2016-03-28  James Bowman  <james.bowman@ftdichip.com>
10657
10658         * config/ft32/ft32.opt (mnodiv): New.
10659         * config/ft32/ft32.md (*divsi3, *modsi3): Qualify with TARGET_NODIV.
10660         * doc/invoke.texi (FT32 Options -mnodiv): New.
10661
10662 2016-03-28  Kirill Yukhin  <kirill.yukhin@intel.com>
10663
10664         PR target/70406
10665         * config/i386/i386.md (define_split, andn): Fix modes.
10666
10667 2016-03-26  Richard Biener  <rguenther@suse.de>
10668             Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
10669
10670         PR ipa/70366
10671         * ipa-inline-transform.c (inline_call): Pass opts_for_fn (to->decl)
10672         instead of
10673         TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (to->decl))
10674         as 2nd argument to cl_optimization_restore().
10675
10676 2016-03-25  Richard Henderson  <rth@redhat.com>
10677
10678         PR target/70120
10679         * config/aarch64/aarch64.c (aarch64_asm_output_pool_epilogue): New.
10680         * config/aarch64/aarch64-protos.h: Declare it.
10681         * config/aarch64/aarch64.h (ASM_OUTPUT_POOL_EPILOGUE): New.
10682
10683 2016-03-25  Alan Modra  <amodra@gmail.com>
10684
10685         PR target/70052
10686         * config/rs6000/constraints.md (j): Simplify.
10687         * config/rs6000/predicates.md (easy_fp_constant): Exclude
10688         decimal float 0.D.
10689         * config/rs6000/rs6000.md (zero_fp): New mode_attr.
10690         (mov<mode>_hardfloat, mov<mode>_hardfloat32, mov<mode>_hardfloat64,
10691          mov<mode>_64bit_dm, mov<mode>_32bit): Use zero_fp in place of j
10692         in all constraint alternatives.
10693         (movtd_64bit_nodm): Delete "j" constraint alternative.
10694
10695 2016-03-24  Aldy Hernandez  <aldyh@redhat.com>
10696
10697         * tree-ssa-propagate.c: Enhance docs for
10698         SSA_PROP_NOT_INTERESTING.
10699
10700 2016-03-24  Aldy Hernandez  <aldyh@redhat.com>
10701
10702         * doc/extend.texi: Fix typo in documentation to pure attribute.
10703
10704 2016-03-24  John David Anglin  <danglin@gcc.gnu.org>
10705
10706         PR target/70319
10707         * config/pa/pa.md (bswapdi2): Use a scratch register.
10708
10709 2016-03-24  Richard Henderson  <rth@redhat.com>
10710
10711         PR middle-end/69845
10712         * fold-const.c (extract_muldiv_1): Correct test for multiplication
10713         overflow.
10714
10715 2016-03-24  Uros Bizjak  <ubizjak@gmail.com>
10716
10717         * config/i386/i386.md (*anddi3_doubleword): Generate AND insn
10718         using ix86_expand_binary_operator instead of gen_andsi3.
10719
10720 2016-03-24  Richard Biener  <rguenther@suse.de>
10721
10722         PR tree-optimization/70396
10723         * tree-vect-stmts.c (vectorizable_comparison): Use
10724         get_vectype_for_scalar_type.
10725
10726 2016-03-24  Richard Biener  <rguenther@suse.de>
10727
10728         PR middle-end/70370
10729         * gimplify.c (gimplify_asm_expr): Handle !allows_mem outputs
10730         with register bases.
10731
10732 2016-03-24  Richard Biener  <rguenther@suse.de>
10733
10734         PR tree-optimization/70372
10735         * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Use
10736         build_all_ones_cst to also handle vector types correctly.
10737
10738 2016-03-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
10739
10740         PR target/70381
10741         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Do not set
10742         -mfloat128 here.
10743
10744 2016-03-23  Marek Polacek  <polacek@redhat.com>
10745
10746         PR c++/69884
10747         * doc/invoke.texi: Document -Wignored-attributes.
10748
10749 2016-03-23  Bin Cheng  <bin.cheng@arm.com>
10750
10751         PR tree-optimization/69042
10752         * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND): Increase the
10753         parameter from 30 to 40.
10754
10755 2016-03-23  Bin Cheng  <bin.cheng@arm.com>
10756
10757         PR tree-optimization/69042
10758         * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Add IV cand
10759         for use with constant offset stripped in base.
10760
10761 2016-03-23  Richard Biener  <rguenther@suse.de>
10762
10763         PR middle-end/70251
10764         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Adjust
10765         mode compatibility check.
10766         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
10767
10768 2016-03-23  Jeff Law  <law@redhat.com>
10769
10770         PR tree-optimization/64058
10771         * tree-ssa-coalesce.c (struct coalesce_pair): Add new field
10772         CONFLICT_COUNT.
10773         (struct ssa_conflicts): Move up earlier in the file.
10774         (conflicts_, var_map_): New static variables.
10775         (initialize_conflict_count): New function to initialize the
10776         CONFLICT_COUNT field for each conflict pair.
10777         (compare_pairs): Lazily initialize the conflict count and use it
10778         as the first tie-breaker.
10779         (sort_coalesce_list): Add new arguments conflicts, map.  Initialize
10780         and wipe conflicts_ and map_ around the call to qsort.  Remove
10781         special case for 2 coalesce pairs.
10782         * bitmap.c (bitmap_count_unique_bits): New function.
10783         (bitmap_count_bits_in_word): New function, extracted from
10784         bitmap_count_bits.
10785         (bitmap_count_bits): Use bitmap_count_bits_in_word.
10786         * bitmap.h (bitmap_count_unique_bits): Declare it.
10787
10788 2016-03-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
10789
10790         PR target/69917
10791         * config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Follow
10792         transparent alias chain for decl assembler name.
10793         * config/sol2.c (solaris_assemble_visibility): Likewise.
10794
10795 2016-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10796
10797         * config/arm/arm1020e.md (1020call_op): Reduce reservation
10798         duration.
10799         (v10_fdivs): Likewise.
10800         (v10_fdivd): Likewise.
10801
10802 2016-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10803
10804         PR driver/70132
10805         * config/arm/driver-arm.c (host_detect_local_cpu): Reorder exit logic
10806         to not call fclose twice on file.
10807
10808 2016-03-23  Jakub Jelinek  <jakub@redhat.com>
10809
10810         PR tree-optimization/70354
10811         * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
10812         oprnd0 is wider than oprnd1 and there is a cast from the wider
10813         type to oprnd1, mask it with the mask of the narrower type.
10814
10815         PR target/70321
10816         * config/i386/i386.md (*anddi3_doubleword, *<code>di3_doubleword):
10817         Optimize TARGET_STV splitters, if high or low word of last argument
10818         is 0 or -1.
10819
10820 2016-03-22  Jeff Law  <law@redhat.com>
10821
10822         PR target/70232
10823         tree-ssa-threadbackward.c
10824         (fsm_find_control_statement_thread_paths): Correctly distinguish
10825         between old style jump threads vs FSM jump threads.
10826
10827 2016-03-22  Ilya Enkovich  <enkovich.gnu@gmail.com>
10828
10829         PR target/70302
10830         * config/i386/i386.c (scalar_chain::convert_op): Support
10831         uninitialized register usage case.
10832
10833 2016-03-22  Richard Biener  <rguenther@suse.de>
10834
10835         PR middle-end/70251
10836         * genmatch.c (gen_transform): Adjust last parameter to a three-state
10837         int...
10838         (capture::gen_transform): ... to change behavior when substituting
10839         a condition into cond or not-cond expr context.
10840         (dt_simplify::gen_1): Adjust.
10841         * gimple-match-head.c: Include gimplify.h for unshare_expr.
10842         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Revert
10843         last change and instead change to
10844         A + (B vcmp C ? 1 : 0) -> A - (B vcmp C ? -1 : 0).
10845         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
10846
10847 2016-03-22  Anthony Green  <green@moxielogic.com>
10848
10849         * config/moxie/moxiebox.h (CC1_SPEC): Define.  Fix endianness
10850         issue for moxiebox targets.
10851         (CC1PLUS_SPEC): Ditto.
10852
10853 2016-03-22  Richard Biener  <rguenther@suse.de>
10854
10855         PR middle-end/70333
10856         * fold-const.c (extract_muldiv_1): Properly perform multiplication
10857         in the wide type.
10858
10859 2016-03-22  Kirill Yukhin  <kirill.yukhin@intel.com>
10860
10861         * config/i386/i386.c (def_builtin): Remove duplicated functionality.
10862
10863 2016-03-22  Kirill Yukhin  <kirill.yukhin@intel.com>
10864
10865         PR target/70325
10866         * config/i386/i386.c (def_builtin): Handle
10867         OPTION_MASK_ISA_AVX512VL to be and-ed with other
10868         bits.
10869         (const struct builtin_description bdesc_special_args[]):
10870         Remove duplicate ISA bits.
10871
10872 2016-03-22  Jakub Jelinek  <jakub@redhat.com>
10873
10874         PR target/70329
10875         * config/i386/i386.c (ix86_expand_vecop_qihi): Don't bother computing
10876         d.perm[i] for i >= d.nelt.  If not full_interleave, compute d.perm[i]
10877         in a way that works also for AVX512BW.
10878
10879         PR target/70300
10880         * config/i386/i386.md (cvtsd2ss splitter): Unpack in destination
10881         instead of source if operands[1] is xmm16 and above and
10882         !TARGET_AVX512VL.  Use avx512f_vec_dupv16sf_1 instead of
10883         vec_interleave_lowv4sf if we need to unpack xmm16 and above.
10884
10885         PR c++/70295
10886         * gimplify.c (gimplify_modify_expr): Call gimple_set_no_warning
10887         on assign if (*from_p) is a comparison, set it to
10888         TREE_NO_WARNING (*from_p).
10889
10890 2016-03-21  Jakub Jelinek  <jakub@redhat.com>
10891
10892         PR middle-end/70326
10893         * lra.c (restore_scratches): Ignore deleted insns.
10894
10895 2016-03-21  Marc Glisse  <marc.glisse@inria.fr>
10896             Jakub Jelinek  <jakub@redhat.com>
10897
10898         PR tree-optimization/70317
10899         * match.pd (cmp @0 @0): Pass @0 instead of TYPE_MODE (TREE_TYPE (@0))
10900         to HONOR_NANS.
10901
10902 2016-03-21  Uros Bizjak  <ubizjak@gmail.com>
10903
10904         PR target/70327
10905         * config/i386/i386.md (movxi): Use ix86_expand_vector_move instead
10906         of ix86_expand_move.
10907         (movoi): Ditto.
10908         (movti): Use general_operand for operand 1 predicate.
10909
10910 2016-03-21  Martin Liska  <mliska@suse.cz>
10911
10912         * hsa-dump.c (dump_hsa_insn_1): dump default branch of SBR
10913         insns.
10914         (dump_hsa_symbol): Dump BRIG offset of hsa_symbols.
10915
10916 2016-03-21  Martin Liska  <mliska@suse.cz>
10917
10918         PR ipa/70306
10919         * ipa-icf.c (sem_function::parse): Skip static
10920         constructors and destructors.
10921
10922 2016-03-21  Jakub Jelinek  <jakub@redhat.com>
10923
10924         PR target/70296
10925         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If IDENT is
10926         function-like macro, peek following token(s) if it is followed
10927         by CPP_OPEN_PAREN token with optional padding in between, and
10928         if not, don't treat it like a macro.
10929
10930 2016-03-21  Thomas Schwinge  <thomas@codesourcery.com>
10931             Alexander Monakov  <amonakov@ispras.ru>
10932
10933         * config/nvptx/nvptx.c (nvptx_option_override): Don't emit sorry
10934         for the stabs debug format.
10935
10936 2016-03-21  Richard Biener  <rguenther@suse.de>
10937
10938         PR tree-optimization/70310
10939         * tree-vect-generic.c (expand_vector_condition): Fold the built
10940         condition.
10941
10942 2016-03-21  Kirill Yukhin  <kirill.yukhin@intel.com>
10943
10944         PR target/70293
10945         * config/i386/sse.md: (define_insn "*vec_dup<mode>"/AVX2):
10946         Block third alternative for AVX-512VL target,
10947
10948 2016-03-21  Martin Liska  <mliska@suse.cz>
10949
10950         PR hsa/70234
10951         * hsa-brig.c (emit_function_directives): Mark unemitted
10952         global variables for emission.
10953         * hsa-gen.c (hsa_symbol::hsa_symbol): Initialize a new flag.
10954         (get_symbol_for_decl): Likewise.
10955         * hsa.h (struct hsa_symbol): New flag.
10956
10957 2016-03-21  Richard Biener  <rguenther@suse.de>
10958
10959         PR tree-optimization/70288
10960         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Make sure
10961         we do not estimate unsimplified all-constant conditionals or
10962         switches as optimized away.
10963
10964 2016-03-21  Andrey Belevantsev  <abel@ispras.ru>
10965
10966         PR rtl-optimization/69102
10967         * sched-deps.c (sched_analyze_insn): Do not set last_args_size field
10968         when we have a readonly dependency context.
10969
10970 2016-03-18  Jeff Law  <law@redhat.com>
10971
10972         PR rtl-optimization/70263
10973         * ira.c (memref_used_between_p): Assert we found END in the insn chain.
10974         (update_equiv_regs): When trying to move a store to after the insn
10975         that sets the source of the store, make sure the store occurs after
10976         the insn that sets the source of the store.  When successful note
10977         the REG_EQUIV note created in the dump file.
10978
10979 2016-03-16  David Wohlferd  <dw@LimeGreenSocks.com>
10980             Bernd Schmidt  <bschmidt@redhat.com>
10981
10982         * doc/extend.texi: Document more potential problems with basic asms.
10983
10984 2016-03-18  Bernd Schmidt  <bschmidt@redhat.com>
10985
10986         PR rtl-optimization/70278
10987         * lra-constraints.c (split_reg): Handle the case where biggest_mode is
10988         VOIDmode.
10989
10990 2016-03-18  Jason Merrill  <jason@redhat.com>
10991
10992         * calls.c (load_register_parameters): Fix zero size sibcall logic.
10993
10994 2016-03-18  Kirill Yukhin  <kirill.yukhin@intel.com>
10995
10996         * config/i386/sse.md: Use vpbroadcastq for broadcasting DF
10997         values to 128b regs.
10998
10999 2016-03-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
11000
11001         PR tree-optimization/70252
11002         * tree-vect-stmts.c (supportable_widening_operation): Check resulting
11003         boolean vector has a proper number of elements.
11004         (supportable_narrowing_operation): Likewise.
11005
11006 2016-03-18  Tom de Vries  <tom@codesourcery.com>
11007
11008         PR ipa/70269
11009         * cgraph.c (cgraph_node::get_body): Set dump_file to NULL after save.
11010
11011 2016-03-18  Jakub Jelinek  <jakub@redhat.com>
11012
11013         * reload1.c (emit_input_reload_insns): Use simplify_replace_rtx
11014         instead of replace_rtx for DEBUG_INSNs.
11015
11016 2016-03-18  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
11017
11018         * config/i386/znver1.md : Fix latencies of FP/SSE/AVX
11019         load type reservations.
11020
11021 2016-03-17  John David Anglin  <danglin@gcc.gnu.org>
11022
11023         PR target/70188
11024         * config/pa/constraints.md: Revert 2015-02-13 change.  Use
11025         define_constraint for "Q" and "T" constraints.
11026
11027 2016-03-17  Evandro Menezes  <e.menezes@samsung.com>
11028
11029         Tweak the pipeline model for Exynos M1
11030
11031         * config/aarch64/aarch64.c (exynosm1_tunings):  Enable weak prefetching
11032         model.
11033
11034 2016-03-17  David Malcolm  <dmalcolm@redhat.com>
11035
11036         PR c/70264
11037         * diagnostic-show-locus.c (compatible_locations_p): Handle the case
11038         where one or both locations aren't within a line_map.
11039
11040 2016-03-17  H.J. Lu  <hongjiu.lu@intel.com>
11041
11042         PR driver/70192
11043         * opts.c (finish_options): Don't set flag_pie to the default if
11044         -fpic, -fPIC, -fno-pic or -fno-PIC is used.  Set flag_pic to 0
11045         if it is -1.
11046
11047 2016-03-17  Joern Rennecke  <joern.rennecke@embecosm.com>
11048
11049         * config/i386/i386.md (*movv4qicc_insn+1..36): Pass
11050         true as ALL_REGS argument to replace_rtx.
11051
11052 2016-03-17  Richard Biener  <rguenther@suse.de>
11053
11054         PR debug/70271
11055         * dwarf2out.c (dwarf2out_early_finish): Process deferred_asm_name
11056         last.
11057
11058 2016-03-17  Jakub Jelinek  <jakub@redhat.com>
11059
11060         PR target/70245
11061         * rtl.h (replace_rtx): Add ALL_REGS argument.
11062         * rtlanal.c (replace_rtx): Likewise.  If true, use REGNO
11063         equality and assert mode is the same, instead of just rtx pointer
11064         equality.
11065         * config/i386/i386.md (mov + arithmetics with load peephole): Pass
11066         true as ALL_REGS argument to replace_rtx.
11067
11068 2016-03-17  Ilya Enkovich  <enkovich.gnu@gmail.com>
11069
11070         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Apply
11071         for boolean vector with vector mode only.
11072         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
11073
11074 2016-03-17  Nick Clifton  <nickc@redhat.com>
11075
11076         PR target/70162
11077         * config/rx/rx.c (rx_print_integer): Print negative constants in
11078         decimal.
11079
11080 2016-03-17  Jakub Jelinek  <jakub@redhat.com>
11081
11082         PR target/70261
11083         * rtlanal.c (replace_rtx): Revert 2016-03-16 change.
11084
11085 2016-03-16  Richard Henderson  <rth@redhat.com>
11086             Richard Biener  <rguenth@suse.de>
11087
11088         PR middle-end/70240
11089         PR middle-end/68215
11090         PR tree-opt/68714
11091         * gimplify.c (gimplify_expr) [VEC_COND_EXPR]: Gimplify the
11092         first operand as is_gimple_condexpr.
11093
11094         PR middle-end/70240
11095         PR middle-end/68215
11096         Revert r231575
11097         2015-12-11  Eric Botcazou  <ebotcazou@adacore.com>
11098         * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
11099         Do not gimplify the result.
11100         (do_unop): Adjust call to tree_vec_extract.
11101         (do_binop): Likewise.
11102         (do_compare): Likewise.
11103         (do_plus_minus): Likewise.
11104         (do_negate): Likewise.
11105         (expand_vector_condition): Likewise.
11106         (do_cond): Likewise.
11107
11108 2016-03-16  Richard Henderson  <rth@redhat.com>
11109
11110         PR target/70048
11111         * config/aarch64/aarch64.c (virt_or_elim_regno_p): New.
11112         (aarch64_classify_address): Use it.
11113         (aarch64_legitimize_address): Force all subexpressions of PLUS
11114         into registers.  Simplify as (sfp+const)+reg or (reg+reg)+const.
11115
11116 2016-03-16  Jakub Jelinek  <jakub@redhat.com>
11117             Richard Biener  <rguenth@suse.de>
11118
11119         PR target/70245
11120         * rtlanal.c (replace_rtx): For REG, if from is a REG,
11121         return to even if only REGNO is equal, and assert
11122         mode is the same.
11123
11124 2016-03-11  Jeff Law  <law@redhat.com>
11125
11126         PR rtl-optimization/70224
11127         * reorg.c (relax_delay_slots): Pass right argument to CROSSING_JUMP_P.
11128
11129 2016-03-16  Richard Henderson  <rth@redhat.com>
11130
11131         PR middle-end/70199
11132         * function.h (struct function): Add has_forced_label_in_static.
11133         * gimplify.c (force_labels_r): Set it.
11134         * lto-streamer-in.c (input_struct_function_base): Read it.
11135         * lto-streamer-out.c (output_struct_function_base): Write it.
11136         * tree-inline.c (has_label_address_in_static_1): Remove.
11137         (copy_forbidden): Remove fndecl parameter; test
11138         has_forced_label_in_static.
11139         (inline_forbidden_p): Update call to copy_forbidden.
11140         (tree_versionable_function_p): Likewise.
11141         * ipa-chkp.c (chkp_instrumentable_p): Likewise.
11142         (chkp_versioning): Likewise.
11143         * tree-inline.h (copy_forbidden): Update decl.
11144
11145 2016-03-16  Marek Polacek  <polacek@redhat.com>
11146
11147         PR c/70093
11148         * cgraphunit.c (cgraph_node::expand_thunk): Also build call to the
11149         function being thunked if the result type doesn't have fixed size.
11150         * gimplify.c (gimplify_modify_expr): Also set LHS if the result type
11151         doesn't have fixed size.
11152
11153 2016-03-16  Bin Cheng  <bin.cheng@arm.com>
11154
11155         * tree-vect-loop.c (vect_analyze_loop_2): Fix wrong dump info by
11156         reporting malformed loop nest.
11157
11158 2016-03-16  Tom de Vries  <tom@codesourcery.com>
11159
11160         PR lto/70187
11161         * ipa-devirt.c (possible_polymorphic_call_targets): Move
11162         nodes.length () == 1 test to before first nodes[0] access.
11163
11164 2016-03-16  Tom de Vries  <tom@codesourcery.com>
11165
11166         PR tree-optimization/68715
11167         * graphite-scop-detection.c (scop_detection::merge_sese): Add missing
11168         single_pred_p test.
11169
11170 2016-03-16  Tom de Vries  <tom@codesourcery.com>
11171
11172         PR tree-optimization/68809
11173         * graphite-scop-detection.c (same_close_phi_node): Test if result types
11174         are the same.
11175
11176 2016-03-16  Carlos O'Donell  <carlos@redhat.com>
11177             Sandra Loosemore  <sandra@codesourcery.com>
11178
11179         * doc/extend.texi (Common Function Attributes): Describe ifunc impact
11180         on leaf attribute. Mention ELF interposition problems.
11181
11182 2016-03-16  Alan Modra  <amodra@gmail.com>
11183
11184         PR rtl-optimization/69195
11185         PR rtl-optimization/47992
11186         * ira.c (indirect_jump_optimize): Ignore artificial defs.
11187         Add comments.
11188
11189 2016-03-15  Eric Botcazou  <ebotcazou@adacore.com>
11190
11191         PR bootstrap/69513
11192         * dwarf2out.c (flush_limbo_die_list): Really flush the limbo list.
11193
11194 2016-03-15  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
11195
11196         * config/avr/avr.md (rotl<mode>3): Set mode for operand 2.
11197
11198 2016-03-15  Jakub Jelinek  <jakub@redhat.com>
11199
11200         PR rtl-optimization/70222
11201         * combine.c (simplify_shift_const_1): For A >> B >> C LSHIFTRT
11202         optimization if mode is different from result_mode, queue up masking
11203         of the result in outer_op.  Formatting fix.
11204
11205         PR middle-end/70239
11206         * tree-ssa-sccvn.c (VN_INFO_GET): Use safe_grow_cleared instead
11207         of safe_grow.
11208
11209 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
11210
11211         PR rtl-optimization/69032
11212         * sel-sched-ir.c (get_seqno_by_preds): Include both insn and head when
11213         looping backwards over basic block insns.
11214
11215 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
11216
11217         PR target/66660
11218         * sel-sched-ir.c (merge_expr): Avoid changing the speculative pattern
11219         to non-speculative when propagating trap bits.
11220
11221 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
11222
11223         PR rtl-optimization/63384
11224         * sel-sched.c (invoke_aftermath_hooks): Do not decrease issue_more on
11225         DEBUG_INSN_P insns.
11226
11227 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
11228
11229         PR target/64411
11230         * sched-deps.c (get_implicit_reg_pending_clobbers): New function,
11231         factored out from ...
11232         (sched_analyze_insn): ... here.
11233         * sched-int.h (get_implicit_reg_pending_clobbers): Declare it.
11234         * sel-sched-ir.c (setup_id_implicit_regs): New function, use
11235         get_implicit_reg_pending_clobbers in it.
11236         (setup_id_reg_sets): Use setup_id_implicit_regs.
11237         (deps_init_id): Ditto.
11238
11239 2016-03-15  Tom de Vries  <tom@codesourcery.com>
11240
11241         PR ipa/70161
11242         * cgraph.c (cgraph_node::get_body): Save, reset and restore
11243         dump_file_name.
11244         * passes.c (execute_one_ipa_transform_pass): Add missing argument to
11245         execute_function_dump.
11246         (execute_one_pass): Don't dump function if it will be dumped after ipa
11247         transform.
11248
11249 2016-03-15  Segher Boessenkool  <segher@kernel.crashing.org>
11250
11251         * genrecog.c (match_pattern_2): If pred is NULL don't call
11252         safe_predicate_mode on it.
11253
11254 2016-03-14  Jakub Jelinek  <jakub@redhat.com>
11255
11256         PR middle-end/70219
11257         * lra-constraints.c (delete_move_and_clobber): Change assertion
11258         to also allow dregno == 0.
11259
11260 2016-03-14  Richard Henderson  <rth@redhat.com>
11261
11262         PR tree-opt/68714
11263         * tree-ssa-reassoc.c (ovce_extract_ops, optimize_vec_cond_expr): New.
11264         (can_reassociate_p): Allow ANY_INTEGRAL_TYPE_P.
11265         (reassociate_bb): Use optimize_vec_cond_expr; avoid
11266         optimize_range_tests, attempt_builtin_copysign and attempt_builtin_powi
11267         on vectors.
11268
11269 2016-03-14  Bernd Schmidt  <bschmidt@redhat.com>
11270
11271         PR target/70083
11272         * lra-lives.c (process_bb_lives): Also update biggest mode for hard
11273         regs.
11274         (lra_create_live_ranges_1): initialize hard register biggest_mode to
11275         VOIDmode.
11276         * lra-constraints.c (split_reg): For hard regs, try to find the
11277         biggest single-register mode used in the function.
11278
11279 2016-03-14  Richard Biener  <rguenther@suse.de>
11280
11281         PR tree-optimization/56365
11282         * tree-ssa-phiopt.c (minmax_replacement): Handle alternate
11283         constants to compare against.
11284
11285 2016-03-14  Segher Boessenkool  <segher@kernel.crashing.org>
11286
11287         PR target/70098
11288         * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
11289         *ctr<mode>_internal5, *ctr<mode>_internal6): Also allow "d" as output.
11290         (define_split for the GPR case): Use int_reg_operand instead of
11291         gpc_reg_operand for the output.
11292
11293 2016-03-14  Tom de Vries  <tom@codesourcery.com>
11294
11295         PR tree-optimization/70045
11296         * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard): Unshare
11297         create_empty_if_region_on_edge argument.
11298
11299 2016-03-13  Eric Botcazou  <ebotcazou@adacore.com>
11300
11301         * config/arm/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Define.
11302         (STACK_CHECK_PROTECT): Likewise.
11303         * config/i386/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
11304         (STACK_CHECK_PROTECT): Likewise.
11305         * config/rs6000/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
11306         (STACK_CHECK_PROTECT): Likewise.
11307         * config/rs6000/vxworksae.h (STACK_CHECK_PROTECT): Likewise.
11308         * config/sparc/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
11309         (STACK_CHECK_PROTECT): Likewise.
11310
11311 2016-03-12  Andrey Belevantsev  <abel@ispras.ru>
11312
11313         PR rtl-optimization/69307
11314         * sel-sched.c (choose_best_pseudo_reg): Properly check for hard
11315         registers in modes that span more than one register.
11316
11317 2016-03-12  Vladimir Makarov  <vmakarov@redhat.com>
11318
11319         PR target/69614
11320         * lra-constraints.c (delete_move_and_clobber): New.
11321         (remove_inheritance_pseudos): Use it.
11322
11323 2016-03-12  Eric Botcazou  <ebotcazou@adacore.com>
11324
11325         PR ada/70017
11326         * calls.c (emit_library_call_value_1): Clear the ECF_NOTHROW flag if
11327         the libcall is LCT_THROW.
11328         * explow.c (probe_stack_range): Pass LCT_THROW to emit_library_call
11329         for the checking routine.
11330
11331 2016-03-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
11332
11333         PR target/70131
11334         * config/rs6000/rs6000.md (round32<mode>2_fprs): Do not do the
11335         optimization if we have direct move.
11336         (roundu32<mode>2_fprs): Likewise.
11337
11338 2016-03-11  Bernd Schmidt  <bschmidt@redhat.com>
11339
11340         PR target/70123
11341         * lra-remat.c (operand_to_remat): Disallow hard regs in the value t
11342         be rematerialized.
11343         (reg_overlap_for_remat_p): Renamed from input_regno_present_p.
11344         Arguments swapped.  All callers changed.  Take reg_renumber into
11345         account, and Calculate and compare register ranges for hard regs.
11346
11347 2016-03-11  Jeff Law  <law@redhat.com>
11348
11349         PR tree-optimization/70190
11350         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
11351         Handle cases where we can not extract the taken edge, even though we
11352         found a constant value.
11353
11354         PR tree-optimization/64058
11355         * tree-ssa-coalesce.c (struct coalesce_pair): Add new field INDEX.
11356         (num_coalesce_pairs): Move up earlier in file.
11357         (find_coalesce_pair): Initialize the INDEX field for each pair
11358         discovered.
11359         (compare_pairs): No longer sort on the elements in each pair.
11360         Instead break ties with the index of the coalesce pair.
11361
11362 2016-03-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11363
11364         PR target/70002
11365         * config/aarch64/aarch64-protos.h
11366         (aarch64_save_restore_target_globals): New prototype.
11367         * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse):
11368         Call the above when popping pragma.
11369         * config/aarch64/aarch64.c (aarch64_save_restore_target_globals):
11370         New function.
11371         (aarch64_set_current_function): Rewrite using the above.
11372
11373 2016-03-11  Jakub Jelinek  <jakub@redhat.com>
11374
11375         PR tree-optimization/70177
11376         * gimple-expr.h (extract_ops_from_tree_1): Renamed to ...
11377         (extract_ops_from_tree): ... this.  In the 2 argument
11378         overload remove _1 suffix.
11379         * gimple-expr.c (extract_ops_from_tree_1): Renamed to ...
11380         (extract_ops_from_tree): ... this.
11381         * gimple.c (gimple_build_assign, gimple_assign_set_rhs_from_tree):
11382         Adjust callers.
11383         * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
11384         * tree-ssa-forwprop.c (defcodefor_name): Call 3 operand
11385         extract_ops_from_tree instead of 2 operand one.
11386
11387 2016-03-11  Alan Lawrence  <alan.lawrence@arm.com>
11388
11389         PR tree-optimization/70013
11390         * tree-sra.c (analyze_access_subtree): Also set grp_unscalarized_data
11391         for constant-pool entries.
11392
11393 2016-03-11  Jakub Jelinek  <jakub@redhat.com>
11394
11395         PR rtl-optimization/70174
11396         * expmed.c (store_bit_field_using_insv): Use gen_lowpart_if_possible
11397         followed by gen_lowpart on force_reg instead of just gen_lowpart.
11398
11399         PR tree-optimization/70169
11400         * tree-ssa-loop.c (gen_lsm_tmp_name): Handle FUNCTION_DECL and
11401         LABEL_DECL like VAR_DECL.  Emit nothing instead of gcc_unreachable
11402         for unknown codes.
11403
11404 2016-03-11  Ilya Enkovich  <enkovich.gnu@gmail.com>
11405             Jakub Jelinek  <jakub@redhat.com>
11406
11407         PR target/70160
11408         * config/i386/i386.c (scalar_chain::convert_reg): Skip uses
11409         of uninitialized values.
11410
11411 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11412
11413         * config/s390/s390.md ("trunctddd2"): Turn former define_insn into
11414         define_expand.
11415         ("*trunctddd2"): New pattern definition.
11416         ("trunctdsd2"): Set prep_for_short_prec rounding mode for the
11417         TD->DD truncation.
11418
11419 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11420
11421         * config/s390/s390.md (BFP_RND_*, DFP_RND_*): Add new constant
11422         definitions for BFP and DFP rounding modes.
11423         ("fixuns_truncdddi2", "fixuns_trunctddi2")
11424         ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2")
11425         ("fix_trunc<DSF:mode><GPR:mode>2", "fix_trunc<mode>di2")
11426         ("fix_trunctf<mode>2"): Use the new constants instead of magic
11427         numbers.
11428
11429 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11430
11431         * config/s390/constraints.md: Adjust comment.
11432         ("Y"): Adjust comment.  Rename s390_decompose_shift_count to
11433         s390_decompose_addrstyle_without_index.
11434         * config/s390/predicates.md (shift_count_or_setmem_operand):
11435         Rename to setmem_operand.
11436         * config/s390/s390-protos.h
11437         (s390_decompose_shift_count): Rename to
11438         s390_decompose_addrstyle_without_index.
11439         * config/s390/s390.c (s390_decompose_shift_count)
11440         (s390_mem_constraint, print_shift_count_operand)
11441         (print_operand_address, print_operand): Rename
11442         s390_decompose_shift_count to
11443         s390_decompose_addrstyle_without_index and rename
11444         print_shift_count_operand to print_addrstyle_operand troughout the
11445         file.
11446         * config/s390/s390.md ("setmem_long_<P:mode>", "*setmem_long")
11447         ("*setmem_long_and", "*setmem_long_31z", "*setmem_long_and_31z"):
11448         Rename shift_count_or_setmem_operand to setmem_operand.
11449         * config/s390/vx-builtins.md ("vec_insert<mode>")
11450         ("vec_promote<mode>"): Replace shift_count_or_setmem_operand with
11451         nonmemory_operand.
11452
11453 2016-03-10  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11454
11455         PR target/70168
11456         * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
11457         Handle overlapping retval and newval.
11458
11459 2016-03-10  Nick Clifton  <nickc@redhat.com>
11460
11461         PR target/7044
11462         * config/aarch64/aarch64.c
11463         (aarch64_override_options_after_change_1): When forcing
11464         flag_omit_frame_pointer to be true, use a special value that can
11465         be detected if this function is called again, thus preventing
11466         flag_omit_leaf_frame_pointer from being forced to be false.
11467
11468 2016-03-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11469
11470         * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
11471         Set x_flag_omit_leaf_frame_pointer when handling
11472         -momit-leaf-frame-pointer.
11473
11474 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
11475
11476         PR lto/69589
11477         * cgraph.c (cgraph_node::dump): Dump split_part and
11478         indirect_call_target.
11479         * cgraph.h (cgraph_node): Add indirect_call_target flag.
11480         * ipa.c (has_addr_references_p): Cleanup.
11481         (is_indirect_call_target_p): New.
11482         (walk_polymorphic_call_targets): Do not mark virtuals that may be
11483         called indirectly as local.
11484         (symbol_table::remove_unreachable_nodes): Compute indirect_call_target.
11485
11486 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
11487
11488         PR ipa/69630
11489         * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
11490         on cxa_pure_virtual.
11491
11492 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
11493
11494         PR lto/69589
11495         * tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL.
11496
11497 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
11498
11499         PR lto/69589
11500         * tree.c (need_assembler_name_p): Only record main variant type names.
11501
11502 2016-03-10  Christophe Lyon  <christophe.lyon@linaro.org>
11503
11504         PR target/70113.
11505         * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_843419_DEFAULT):
11506         Always define to 0 or 1.
11507         (TARGET_FIX_ERR_A53_843419): New macro.
11508         * config/aarch64/aarch64-elf-raw.h
11509         (TARGET_FIX_ERR_A53_843419_DEFAULT): Update for above changes.
11510         * config/aarch64/aarch64-linux.h: Likewise.
11511         * config/aarch64/aarch64.c
11512         (aarch64_override_options_after_change_1): Do not default
11513         aarch64_nopcrelative_literal_loads to true if Cortex-A53 erratum
11514         843419 is on.
11515         (aarch64_attributes): Handle fix-cortex-a53-843419.
11516         (aarch64_can_inline_p): Likewise.
11517         * config/aarch64/aarch64.opt (aarch64_fix_a53_err843419): Save.
11518
11519 2016-03-10  Alan Lawrence  <alan.lawrence@arm.com>
11520         Jakub Jelinek <jakub@redhat.com>
11521
11522         * common.opt (funconstrained-commons, flag_unconstrained_commons): New.
11523         * tree.c (array_at_struct_end_p): Do not limit to size of decl for
11524         DECL_COMMONS if flag_unconstrained_commons is set.
11525         * tree-dfa.c (get_ref_base_and_extent): Likewise.
11526         * doc/invoke.texi (Optimize Options): Add -funconstrained-commons.
11527         (funconstrained-commons): Document.
11528
11529 2016-03-10  Christophe Lyon  <christophe.lyon@linaro.org>
11530
11531         * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add
11532         aarch64-fusion-pairs.def and aarch64-tuning-flags.def
11533
11534 2016-03-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
11535
11536         * tree-vect-stmts.c (vectorizable_mask_load_store): Check mask
11537         has a proper number of elements.
11538
11539 2016-03-10  Alan Modra  <amodra@gmail.com>
11540
11541         PR rtl-optimization/69195
11542         PR rtl-optimization/47992
11543         * ira.c (recorded_label_ref): Delete.
11544         (update_equiv_regs): Return void.
11545         (indirect_jump_optimize): New function.
11546         (ira): Call indirect_jump_optimize and delete_trivially_dead_insns
11547         before regstat_compute_ri.  Don't rebuild_jump_labels here.
11548         Delete update_regstat.
11549
11550 2016-03-10  Richard Biener  <rguenther@suse.de>
11551
11552         PR tree-optimization/70128
11553         * tree-ssa-structalias.c (set_uids_in_ptset): Set
11554         vars_contains_nonlocal for any FUNCTION_DECL or LABEL_DECL.
11555
11556 2016-03-09  Jakub Jelinek  <jakub@redhat.com>
11557
11558         PR tree-optimization/70152
11559         * tree-sra.c (replace_removed_params_ssa_names): Copy over
11560         SSA_NAME_OCCURS_IN_ABNORMAL_PHI from old_name to new_name.
11561
11562         PR target/70086
11563         * config/i386/i386.md (truncdfsf2 splitter): Use gen_vec_concatv2df
11564         instead of gen_sse2_loadlpd.
11565         * config/i386/sse.md (*vec_concatv2df): Rename to...
11566         (vec_concatv2df): ... this.
11567
11568         PR tree-optimization/70127
11569         * fold-const.c (operand_equal_p): Revert the 2015-10-28 change.
11570
11571 2016-03-09  David Malcolm  <dmalcolm@redhat.com>
11572
11573         PR c/68473
11574         PR c++/70105
11575         * diagnostic-show-locus.c (compatible_locations_p): New function.
11576         (layout::layout): Sanitize ranges using compatible_locations_p.
11577
11578 2016-03-09  David Malcolm  <dmalcolm@redhat.com>
11579
11580         PR c/68473
11581         PR c++/70105
11582         * diagnostic-show-locus.c (layout_range::layout_range): Replace
11583         location_range param with three const expanded_locations * and a
11584         bool.
11585         (layout::layout): Replace call to
11586         rich_location::lazily_expand_location with get_expanded_location.
11587         Extract the range and perform location expansion here, passing
11588         the results to the layout_range ctor.
11589         * diagnostic.c (source_range::debug): Delete.
11590         * diagnostic.h (diagnostic_expand_location): Reimplement in terms
11591         of rich_location::get_expanded_location.
11592         * gcc-rich-location.c (get_range_for_expr): Delete.
11593         (gcc_rich_location::add_expr): Reimplement to avoid the
11594         rich_location::add_range overload that took a location_range,
11595         passing a location_t instead.
11596
11597 2016-03-09  Richard Biener  <rguenther@suse.de>
11598         Jakub Jelinek  <jakub@redhat.com>
11599
11600         PR tree-optimization/70138
11601         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
11602         Also skip vect_double_reduction_def.
11603
11604 2016-03-09  Jakub Jelinek  <jakub@redhat.com>
11605
11606         PR target/70049
11607         * config/i386/sse.md (*vec_extract<mode>): Use %0 instead of %k0
11608         if the operand is "m".
11609
11610 2016-03-09  Nathan Sidwell  <nathan@acm.org>
11611
11612         * config/nvptx/nvptx.c (nvptx_option_override): Don't kill debug level.
11613
11614 2016-03-09  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
11615
11616         * config/i386/i386.c (processor_target_table): Fix cost table
11617         intialization order for znver1.
11618
11619 2016-03-08  Jakub Jelinek  <jakub@redhat.com>
11620
11621         * ipa-polymorphic-call.c (walk_ssa_copies): Fix spelling
11622         - becuase -> because.
11623         * ipa-reference.c (ignore_module_statics): Likewise.
11624         * cgraph.c (cgraph_node::get_body): Likewise.
11625         * ipa-inline.c (early_inliner): Likewise.
11626         * ipa-devirt.c (types_same_for_odr): Likewise.
11627         * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
11628         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Likewise.
11629
11630 2016-03-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11631
11632         * tree-ssa-math-opts.c: Fix typo in comment.
11633
11634 2016-03-08  Jakub Jelinek  <jakub@redhat.com>
11635
11636         PR target/70110
11637         * config/i386/i386.c (scalar_chain::make_vector_copies,
11638         scalar_chain::convert_reg): Call end_sequence in between
11639         get_insns and emit_conversion_insns rather than after both
11640         calls.
11641
11642 2016-03-07  Uros Bizjak  <ubizjak@gmail.com>
11643
11644         PR target/70064
11645         * config/i386/i386.h (machine_function): Add
11646         pc_thunk_call_expanded flag.
11647         (ix86_pc_thunk_call_expanded): New define.
11648         * config/i386/i386.md (set_got, set_got_labelled): New expanders.
11649         (*set_got): Rename insn pattern from set_got.
11650         (*set_got_labelled): Rename inst pattern from set_got_labelled.
11651         * config/i386/i386.c (ix86_compute_frame_layout): Use
11652         ix86_pc_thunk_call_expanded to prevent red-zone.
11653
11654 2016-03-07  Martin Jambor  <mjambor@suse.cz>
11655
11656         * hsa.h (hsa_get_ctor_statements): Declare.
11657         (hsa_get_dtor_statements): Likewise.
11658         (hsa_get_kernel_dispatch_type): Likewise.
11659         * hsa.c (hsa_get_ctor_statements): New function.
11660         (hsa_get_dtor_statements): Likewise.
11661         (hsa_get_kernel_dispatch_type): Likewise.
11662         * hsa-brig.c (hsa_cdtor_statements): Removed.
11663         (hsa_output_libgomp_mapping): Use hsa_get_ctor_statements and
11664         hsa_get_dtor_statements.
11665         * hsa-gen.c (hsa_kernel_dispatch_type): Removed.
11666         (get_hsa_kernel_dispatch_offset): Use hsa_get_kernel_dispatch_type.
11667
11668 2016-03-07  Andre Vieira  <andre.simoesdiasvieira@arm.com>
11669
11670         * config/arm/arm-cores.def (cortex-r8): New.
11671         * config/arm/arm-tables.opt (cortex-r8): Regenerate.
11672         * config/arm/arm-tune.md: Likewise.
11673         * doc/invoke.texi: Add cortex-r8 to list of cpu values.
11674
11675 2016-03-07  Martin Sebor  <msebor@redhat.com>
11676
11677         PR rtl-optimization/19705
11678         * doc/invoke.texi (Options That Control Optimization): Clarify
11679         -fno-branch-count-reg.
11680
11681 2016-02-26  Richard Biener  <rguenther@suse.de>
11682             Jeff Law  <law@redhat.com>
11683
11684         PR tree-optimization/69740
11685         * cfghooks.c (remove_edge): Request loop fixups if we delete
11686         an edge that might turn an irreducible loop into a natural
11687         loop.
11688         * cfgloop.h (check_verify_loop_structure): Clear LOOPS_NEED_FIXUP.
11689         Move after definition of loops_state_clear.
11690
11691 2016-03-07  Bin Cheng  <bin.cheng@arm.com>
11692
11693         PR rtl-optimization/69052
11694         * rtlanal.c (commutative_operand_precedence): Set higher precedence
11695         to CONST_WIDE_INT.
11696
11697 2016-03-07  Tom de Vries  <tom@codesourcery.com>
11698
11699         PR tree-optimization/70116
11700         * tree-ssa-tail-merge.c (merge_stmts_p): New function, handling
11701         is_tm_ending stmts and ubsan/asan internal functions.
11702         (find_duplicate): Use it.  Don't test is_tm_ending here.
11703
11704 2016-03-07  Richard Biener  <rguenther@suse.de>
11705
11706         PR tree-optimization/70115
11707         * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Remove.
11708         (propagate_constants_for_unrolling): Use replace_uses_by.
11709
11710 2016-03-07  Nathan Sidwell  <nathan@codesourcery.com>
11711
11712         PR middle-end/69916
11713         * omp-low.c (struct oacc_loop): Add ifns.
11714         (new_oacc_loop_raw): Initialize it.
11715         (finish_oacc_loop): Clear mask & flags if no ifns.
11716         (oacc_loop_discover_walk): Count IFN_GOACC_LOOP calls.
11717         (oacc_loop_xform_loop): Add ifns arg & adjust.
11718         (oacc_loop_process): Adjust oacc_loop_xform_loop call.
11719
11720 2016-03-07  Richard Henderson  <rth@redhat.com>
11721
11722         PR rtl-opt/70061
11723         * tree-outofssa.c (emit_partition_copy): Flush pending stack adjust.
11724         (insert_value_copy_on_edge): Likewise.
11725
11726 2016-03-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11727
11728         * config/arm/arm_neon.h: Show error if using with soft-float ABI.
11729
11730 2016-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11731
11732         PR target/62281
11733         * config/i386/sol2.h (STACK_REALIGN_DEFAULT): Define.
11734
11735 2016-03-05  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
11736
11737         * config/i386/i386.c (znver1_cost): Fix Multiply cost.
11738
11739 2016-03-05  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
11740
11741         Fix sseimul type attribute.
11742         * config/i386/znver1.md
11743         (znver1_sseimul, znver1_sseimul_avx256, znver1_sseimul_load,
11744         znver1_sseimul_avx256_load) : Fix the type attribute.
11745         (znver1_sseimul_di, znver1_sseimul_load_di): Fix type attribute,
11746         pipe usage and latency.
11747
11748 2016-03-05  Jakub Jelinek  <jakub@redhat.com>
11749
11750         PR c++/70084
11751         * tree-inline.c (copy_tree_body_r): When cancelling ADDR_EXPR
11752         of INDIRECT_REF and ADDR_EXPR changed type, fold_convert it
11753         to the right type.
11754
11755 2016-03-04  Bernd Schmidt  <bschmidt@redhat.com>
11756
11757         PR c/69973
11758         * targhooks.c (default_vector_alignment): Limit to MAX_OFILE_ALIGNMENT.
11759
11760         PR rtl-optimization/69941
11761         * postreload.c (reload_combine_recognize_pattern): Ensure all uses of
11762         the reg share its mode.
11763
11764 2016-03-04  Jeff Law  <law@redhat.com>
11765
11766         PR tree-optimization/69196
11767         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
11768         If the both SSA_NAMEs are anonymous, then consider them unassociated
11769         and include the PHI in the statement count.
11770
11771 2016-03-05  Tom de Vries  <tom@codesourcery.com>
11772
11773         * omp-low.c (check_omp_nesting_restrictions): Check for non-oacc
11774         construct in oacc routine.  Check for oacc region in oacc routine.
11775
11776 2016-03-04  Jakub Jelinek  <jakub@redhat.com>
11777
11778         PR target/70062
11779         * config/i386/i386.c (decide_alg): Add RECUR argument.  Revert
11780         2016-02-22 changes, instead don't recurse if RECUR is already true.
11781         Don't change *dynamic_check if RECUR.  Adjust recursive caller
11782         to pass true to the new argument.
11783         (ix86_expand_set_or_movmem): Adjust decide_alg caller.
11784
11785         PR target/70059
11786         * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
11787         <extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask): Formatting
11788         fixes.
11789         (vec_set_hi_<mode><mask_name>): Likewise.  Swap VEC_CONCAT operands.
11790
11791 2016-03-04  Bernd Schmidt  <bschmidt@redhat.com>
11792
11793         PR rtl-optimization/57676
11794         * lra-assigns.c (lra_assign): Guard test for maximum iterations
11795         with flag_checking.
11796
11797 2016-03-04  Ilya Enkovich  <enkovich.gnu@gmail.com>
11798
11799         * tree-vect-patterns.c (search_type_for_mask): Handle
11800         comparison of booleans.
11801
11802 2016-03-04  Jakub Jelinek  <jakub@redhat.com>
11803
11804         * doc/extend.texi (__builtin_alloca, __builtin_alloca_with_align):
11805         Fix @xref usage.
11806
11807         PR debug/69947
11808         * dwarf2out.c (prune_unused_types_walk_loc_descr): Handle
11809         all other ops that have dw_val_class_die_ref operands,
11810         and DW_OP_GNU_entry_value.
11811
11812 2016-03-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11813
11814         PR rtl-optimization/69904
11815         * config/arm/arm.c (arm_cannot_copy_insn_p):
11816         Return true for load-exclusive instructions.
11817
11818 2016-03-03  Jakub Jelinek  <jakub@redhat.com>
11819
11820         PR target/70021
11821         * tree-vect-stmts.c (vect_mark_relevant): Remove USED_IN_PATTERN
11822         argument, if STMT_VINFO_IN_PATTERN_P (stmt_info), always mark
11823         the pattern no matter if it is used just by non-pattern, pattern
11824         or mix thereof.
11825         (process_use, vect_mark_stmts_to_be_vectorized): Adjust callers.
11826         * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
11827         oprnd1 def_stmt is in pattern, don't look through it.
11828
11829 2016-03-03  Marek Polacek  <polacek@redhat.com>
11830
11831         PR middle-end/70050
11832         * match.pd (X % -Y): Add INTEGRAL_TYPE_P check.
11833
11834 2016-03-03  Martin Liska  <mliska@suse.cz>
11835
11836         PR tree-optimization/70043
11837         * tree-vect-loop.c (optimize_mask_stores): Move iterator to
11838         previous statement if we see a debug statement.
11839
11840 2016-03-03  Richard Biener  <rguenther@suse.de>
11841
11842         PR tree-optimization/55936
11843         * tree-vrp.c (compare_name_with_value): Add use_equiv_p
11844         parameter and guard unsafe equivalence use.
11845         (vrp_evaluate_conditional_warnv_with_ops): Always use
11846         safe equivalences but not via the quadratic compare_names
11847         helper.
11848
11849 2016-03-03  Michael Collison  <michael.collison@linaro.org>
11850
11851         PR target/70014
11852         * config/arm/arm.md (*subsi3_carryin_const): Change predicate
11853         for operand 1 to s_register_operand. Change predicate for operand
11854         2 to arm_not_immediate_operand.
11855
11856 2016-03-02  H.J. Lu  <hongjiu.lu@intel.com>
11857
11858         * doc/tm.texi: Regenerated.
11859
11860 2016-03-02  Richard Henderson  <rth@redhat.com>
11861
11862         PR rtl-opt/67145
11863         * simplify-rtx.c (simplify_plus_minus): Allow reassoc without
11864         simplification when all args are positive non-fixed registers.
11865
11866 2016-03-02  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
11867
11868         * target.def (lra_p): Specify that new ports should use LRA.
11869
11870 2016-03-02  Jakub Jelinek  <jakub@redhat.com>
11871
11872         PR libgomp/69555
11873         * gimplify.c (gimplify_decl_expr): For decls with REFERENCE_TYPE, also
11874         gimplify_type_sizes the type they refer to.
11875         (omp_notice_variable): Handle reference vars to VLAs.
11876         * omp-low.c (lower_omp_target): Emit setup of OMP_CLAUSE_PRIVATE
11877         reference to VLA decls in the second pass instead of first pass.
11878
11879 2016-03-02  Tom de Vries  <tom@codesourcery.com>
11880
11881         PR tree-optimization/68659
11882         * graphite-isl-ast-to-gimple.c (collect_all_ssa_names): Handle
11883         new_expr == NULL_TREE.
11884         (get_new_name): Handle ADDR_EXPR.
11885
11886 2016-03-02  Bin Cheng  <bin.cheng@arm.com>
11887
11888         PR rtl-optimization/69052
11889         * loop-invariant.c (canonicalize_address): New function.
11890         (inv_can_prop_to_addr_use): Check validity of address expression
11891         which is canonicalized by above function.
11892
11893 2016-03-02  Alan Modra  <amodra@gmail.com>
11894
11895         PR ipa/69990
11896         * ipa-icf.c (sem_variable::merge): Do not merge an alias with
11897         larger alignment.
11898
11899 2016-03-02  Jakub Jelinek  <jakub@redhat.com>
11900
11901         PR target/70028
11902         * config/i386/i386.md (kmovw): Move m constraint to 2nd alternative.
11903         (*movhi_internal): Put mask moves from and to memory separately
11904         from moves from/to GPRs.
11905
11906 2016-03-02  Richard Biener  <rguenther@suse.de>
11907
11908         * genmatch.c (dt_node::gen_kids): Fix match code-gen for embedded
11909         GENERIC expressions in GIMPLE.
11910
11911 2016-03-02  Richard Biener  <rguenther@suse.de>
11912
11913         * config/i386/i386.c (type_natural_mode): Fix typo.
11914
11915 2016-03-02  Nick Clifton  <nickc@redhat.com>
11916
11917         * config.gcc (mep-*-elf): Add newlib-stdint.h to tm_file.
11918
11919 2016-03-02  Richard Biener  <rguenther@suse.de>
11920             Uros Bizjak  <ubizjak@gmail.com>
11921
11922         PR target/67278
11923         * config/i386/i386.c (type_natural_mode): Handle XFmode vectors.
11924
11925 2016-03-02  Richard Biener  <rguenther@suse.de>
11926
11927         PR middle-end/67278
11928         * tree-cfg.c (verify_expr): Adjust BIT_FIELD_REF case.
11929
11930 2016-03-02  Marek Polacek  <polacek@redhat.com>
11931
11932         PR c/67854
11933         * gimplify.c (gimplify_va_arg_expr): Use expanded location for the
11934         "is promoted to" warning.
11935
11936 2016-03-01  DJ Delorie  <dj@redhat.com>
11937
11938         * config.gcc: Deprecate mep-*.
11939
11940 2016-03-01  Vladimir Makarov  <vmakarov@redhat.com>
11941
11942         PR middle-end/70025
11943         * lra-constraints.c (regno_val_use_in): New.
11944         (match_reload): Use it instead of regno_use_in.
11945
11946 2016-03-01  Eric Botcazou  <ebotcazou@adacore.com>
11947
11948         PR rtl-optimization/70007
11949         * gcse.c (compute_ld_motion_mems): Tidy up and also invalidate memory
11950         references present in REG_EQUAL notes attached to non-SET patterns.
11951
11952 2016-03-01  Jeff Law  <law@redhat.com>
11953
11954         PR tree-optimization/69196
11955         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
11956         Appropriately clamp the number of statements to copy when the
11957         thread path does not traverse a loop backedge.
11958
11959         PR tree-optimization/69196
11960         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
11961         Do count some PHIs in the thread path against the insn count.  Decrease
11962         final statement count by one as the control statement in the last
11963         block will get removed.  Remove special cased code for handling PHIs
11964         in the last block.
11965
11966 2016-03-01  Uros Bizjak  <ubizjak@gmail.com>
11967
11968         PR target/70027
11969         * config/i386/i386.c (ix86_output_call_insn): Add -masm=intel
11970         asm dialect alternatives to explicit GOTPCREL calls.
11971
11972 2016-03-01  Eric Botcazou  <ebotcazou@adacore.com>
11973
11974         PR ada/70017
11975         * ira.c (do_reload): Issue warning for generic stack checking here...
11976         * reload1.c (reload): ...instead of here and streamline it.
11977
11978 2016-03-01  Nick Clifton  <nickc@redhat.com>
11979
11980         * config.gcc (cr16-*-elf): Add newlib-stdint.h to tm_file.
11981
11982 2016-03-01  Richard Biener  <rguenther@suse.de>
11983
11984         PR tree-optimization/69983
11985         * tree-chrec.c (eq_evolutions_p): Handle conversions, compare
11986         types and fall back to operand_equal_p.
11987
11988 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11989
11990         Revert
11991         2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11992
11993         * config/s390/constraints.md ("jm8"): New constraint.
11994         * config/s390/predicates.md ("const_int_8bitset_operand"): New
11995         predicate.
11996         * config/s390/s390.md ("*setmem_long", "*setmem_long_and"): Merge
11997         into ...
11998         ("*setmem_long<setmem_and>"): New pattern.
11999         ("*setmem_long_31z", "*setmem_long_and_31z"): Merge
12000         into ...
12001         ("*setmem_long_31z<setmem_and>"): New pattern.
12002         * config/s390/subst.md ("setmem_31z_subst", "setmem_and_subst"):
12003         New substitution rules with the required attributes.
12004
12005
12006 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12007
12008         Revert
12009         2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12010
12011         * gensupport.c (process_substs_on_one_elem): Split loop to
12012         complete mark_operands_used_in_match_dup on all expressions in the
12013         vector first.
12014         (adjust_operands_numbers): Inline into process_substs_on_one_elem
12015         and remove function.
12016
12017 2016-03-01  Richard Biener  <rguenther@suse.de>
12018
12019         PR middle-end/70022
12020         * fold-const.c (fold_indirect_ref_1): Fix range checking for
12021         vector BIT_FIELD_REF extract.
12022
12023 2016-03-01  Richard Biener  <rguenther@suse.de>
12024
12025         PR tree-optimization/69994
12026         * tree-ssa-reassoc.c (ops_equal_values_p): Handle missing case.
12027
12028 2016-03-01  Ilya Enkovich  <enkovich.gnu@gmail.com>
12029
12030         PR tree-optimization/69956
12031         * tree-vect-stmts.c (supportable_widening_operation): Support
12032         multi-step conversion of boolean vectors.
12033         (supportable_narrowing_operation): Likewise.
12034
12035 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12036
12037         * config/s390/s390.c (s390_decompose_address): Don't accept SImode
12038         anymore.
12039
12040 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12041
12042         * config/s390/subst.md (DSI_VI): New mode iterator.
12043         ("addr_style_op_subst"): Use DSI_VI instead of DSI.
12044         * config/s390/vector.md ("vec_set<mode>"): Move expander before
12045         the insn definition.
12046         ("*vec_set<mode>"): Change predicate and add alternative to
12047         support only either register or const_int operands as element
12048         selector.
12049         ("*vec_set<mode>_plus"): New pattern to support reg + const_int
12050         operands.
12051         ("vec_extract<mode>"): New expander.
12052         ("*vec_extract<mode>"): New insn definition supporting reg and
12053         const_int element selectors.
12054         ("*vec_extract<mode>_plus"): New insn definition supporting
12055         reg+const_int element selectors.
12056         ("rotl<mode>3", "ashl<mode>3", "ashr<mode>3"): Merge into the
12057         following expander+insn definition.
12058         ("<vec_shifts_name><mode>3"): New expander.
12059         ("*<vec_shifts_name><mode>3<addr_style_op>"): New insn definition.
12060
12061 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12062
12063         * config/s390/s390.md ("*tabort_1"): Change predicate to
12064         nonmemory_operand.  Add a second alternative to cover
12065         register as well as const int operands.
12066         ("*tabort_1_plus"): New pattern definition.
12067
12068 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12069
12070         * config/s390/s390.md ("*ashrdi3_cc_31")
12071         ("*ashrdi3_cconly_31""*ashrdi3_cc_31_and")
12072         ("*ashrdi3_cconly_31_and", "*ashrdi3_31_and", "*ashrdi3_31"):
12073         Merge insn definitions into ...
12074         ("*ashrdi3_31<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
12075         New pattern definition.
12076         ("*ashr<mode>3_cc", "*ashr<mode>3_cconly", "ashr<mode>3", )
12077         ("*ashr<mode>3_cc_and", "*ashr<mode>3_cconly_and")
12078         ("*ashr<mode>3_and"): Merge insn definitions into ...
12079         ("*ashr<mode>3<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
12080         New pattern definition.
12081         * config/s390/subst.md ("addr_style_op_cc_subst")
12082         ("masked_op_cc_subst", "setcc_subst", "cconly_subst"): New
12083         substitutions patterns plus attributes.
12084         Add ashiftrt to SUBST iterator.
12085
12086 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12087
12088         * config/s390/s390.md ("<shift><mode>3"): Change predicate of
12089         op2 to nonmemory_operand.
12090         ("*<shift>di3_31", "*<shift>di3_31_and"):
12091         Merge into single pattern definition ...
12092         ("*<shift>di3_31<addr_style_op><masked_op>"): New pattern.
12093         ("*<shift><mode>3", "*<shift><mode>3_and"): Merge into single
12094         pattern definition ...
12095         ("*<shift><mode>3<addr_style_op><masked_op>"): New pattern.
12096         * config/s390/subst.md: Add ashift and lshiftrt to SUBST
12097         iterator.
12098
12099 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12100
12101         * config/s390/predicates.md (const_int_6bitset_operand): New
12102         predicate.
12103         * config/s390/s390.md: Include subst.md.
12104         ("rotl<mode>3"): New expander.
12105         ("rotl<mode>3", "*rotl<mode>3_and"): Merge insn definitions into
12106         ...
12107         ("*rotl<mode>3<addr_style_op><masked_op>"): New insn definition.
12108         * config/s390/subst.md: New file.
12109
12110 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12111
12112         * config/s390/s390.md ("op_type", "atype", "length" attributes):
12113         Remove RRR type.  It doesn't really exist.
12114         ("RRer", "f0", "v0", "vf", "vd", "op1", "Rf"): Remove mode
12115         attributes.
12116         ("BFP", "DFP", "nDSF", "nDFDI"): Add mode attributes.
12117         ("*cmp<mode>_ccs", "floatdi<mode>2", "add<mode>3")
12118         ("*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3")
12119         ("*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3")
12120         ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2")
12121         ("*abs<mode>2", "*negabs<mode>2", "sqrt<mode>2"): Override
12122         `enabled' attribute.
12123
12124 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12125
12126         * gensupport.c (process_substs_on_one_elem): Split loop to
12127         complete mark_operands_used_in_match_dup on all expressions in the
12128         vector first.
12129         (adjust_operands_numbers): Inline into process_substs_on_one_elem
12130         and remove function.
12131
12132 2016-02-29  Eric Botcazou  <ebotcazou@adacore.com>
12133
12134         PR target/69706
12135         * config/sparc/sparc.c (NWORDS_UP): Rename to...
12136         (CEIL_NWORDS): ...this.  Use CEIL macro.
12137         (compute_fp_layout): Adjust to above renaming.
12138         (function_arg_union_value): Likewise.
12139         (sparc_arg_partial_bytes): Likewise.
12140         (sparc_function_arg_advance): Likewise.
12141
12142 2016-02-29  Jeff Law  <law@redhat.com>
12143
12144         PR tree-optimization/70005
12145         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Handle case
12146         where an object with a boolean range is compared against a value
12147         outside [0..1].
12148
12149         PR tree-optimization/69999
12150         * gimple-ssa-split-paths.c (split_paths): When duplicating a block
12151         with an outgoing edge marked with EDGE_IRREDUCIBLE_LOOP, schedule
12152         loop cleanups.
12153
12154 2016-02-29  Richard Biener  <rguenther@suse.de>
12155
12156         PR tree-optimization/69994
12157         * tree-ssa-reassoc.c (gimple_nop_conversion_p): New function.
12158         (get_unary_op): Look through nop conversions.
12159         (ops_equal_values_p): New function, look for equality diregarding
12160         nop conversions.
12161         (eliminate_plus_minus_pair): Use ops_equal_values_p
12162         (repropagate_negates): Do not use get_unary_op here.
12163
12164 2016-02-29  Martin Liska  <mliska@suse.cz>
12165
12166         * system.h: Poison ENABLE_CHECKING macro.
12167
12168 2016-02-29  Martin Liska  <mliska@suse.cz>
12169
12170         * hsa-gen.c (gen_body_from_gimple): Dump only if TDF_DETAILS
12171         is presented in dump flags.
12172         * hsa-regalloc.c (linear_scan_regalloc): Likewise.
12173         (hsa_regalloc): Likewise.
12174
12175 2016-02-19  Richard Biener  <rguenther@suse.de>
12176
12177         PR tree-optimization/69980
12178         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Update
12179         permutation of those we need to keep.
12180
12181 2016-02-29  Eric Botcazou  <ebotcazou@adacore.com>
12182
12183         PR target/69706
12184         * config/sparc/sparc.c (ROUND_ADVANCE): Rename to...
12185         (NWORDS_UP): ...this
12186         (init_cumulative_args): Minor tweaks.
12187         (sparc_promote_function_mode): Likewise.
12188         (scan_record_type): Delete.
12189         (traverse_record_type): New function template.
12190         (classify_data_t): New structure type.
12191         (classify_registers): New inline function.
12192         (function_arg_slotno): In 64-bit mode, bail out early if FP slots are
12193         exhausted.  Instantiate traverse_record_type on classify_registers and
12194         deal with the case of a structure passed in slot #15 with no FP field
12195         in the first word.
12196         (assign_data_t): New structure type.
12197         (compute_int_layout): New static function.
12198         (compute_fp_layout): Likewise.
12199         (count_registers): New inline function.
12200         (assign_int_registers): New static function.
12201         (assign_fp_registers): Likewise.
12202         (assign_registers): New inline function.
12203         (function_arg_record_value_1): Delete.
12204         (function_arg_record_value_2): Likewise.
12205         (function_arg_record_value_3): Likewise.
12206         (function_arg_record_value): Adjust to above changes.  Instantiate
12207         traverse_record_type on count_registers to first count the number of
12208         registers to be used and then on assign_registers to assign them.
12209         (function_arg_union_value): Adjust to above renaming.
12210         (sparc_function_arg_1); Minor tweaks.  Remove commented out code.
12211         (sparc_arg_partial_bytes): Adjust to above renaming.  Deal with the
12212         case of a structure passed in slot #15
12213         (sparc_function_arg_advance): Likewise.
12214         (function_arg_padding): Minor tweak.
12215
12216 2016-02-29  Richard Biener  <rguenther@suse.de>
12217
12218         PR tree-optimization/69720
12219         * tree-vect-loop.c (get_initial_def_for_reduction): Avoid
12220         the adjustment_def path for possibly vectorized defs.
12221         (vect_create_epilog_for_reduction): Handle vectorized initial
12222         defs properly.
12223
12224 2016-02-28  Eric Botcazou  <ebotcazou@adacore.com>
12225
12226         * config/i386/cygming.h (STACK_REALIGN_DEFAULT): Define.
12227
12228 2016-02-27  Jeff Law  <law@redhat.com>
12229
12230         Revert
12231         2016-02-26  Richard Biener  <rguenther@suse.de>
12232                     Jeff Law  <law@redhat.com>
12233
12234         PR tree-optimization/69740
12235         * cfghooks.c (remove_edge): Request loop fixups if we delete
12236         an edge that might turn an irreducible loop into a natural
12237         loop.
12238
12239 2016-02-27  Jakub Jelinek  <jakub@redhat.com>
12240
12241         PR rtl-optimization/69896
12242         * tree-vect-generic.c (get_compute_type): Avoid single element
12243         vector types.
12244
12245 2016-02-26  Evandro Menezes  <e.menezes@samsung.com>
12246
12247         Rename the AArch64 tuning option and related functions to enable the
12248         Newton series for the reciprocal square root to reflect its
12249         approximative characteristic.
12250
12251         * config/aarch64/aarch64-protos.h (aarch64_emit_swrsqrt): Rename
12252         function to "aarch64_emit_approx_rsqrt".
12253         * config/aarch64/aarch64-tuning-flags.def: Rename tuning flag to
12254         AARCH64_EXTRA_TUNE_APPROX_RSQRT.
12255         * config/aarch64/aarch64.c (exynosm1_tunigs): Use new flag name.
12256         (xgene1_tunings): Likewise.
12257         (use_rsqrt_p): Likewise.
12258         (aarch64_emit_swrsqrt): Use new function name.
12259         * config/aarch64/aarch64-simd.md (aarch64_rsqrts_*): Likewise.
12260         * config/aarch64/aarch64.opt (mlow-precision-recip-sqrt): Reword the
12261         text explaining this option.
12262         * doc/invoke.texi (-mlow-precision-recip-sqrt): Likewise.
12263
12264 2016-02-26  Jakub Jelinek  <jakub@redhat.com>
12265
12266         PR target/69969
12267         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
12268         complain about -mallow-movmisalign without -mvsx if
12269         TARGET_ALLOW_MOVMISALIGN was not set explicitly.
12270
12271 2016-02-26  Joel Sherrill  <joel@rtems.org>
12272
12273         * config.gcc: Add x86_64-*-rtems*.
12274         * config/i386/rtems-64.h: New file.
12275
12276 2016-02-26  Joel Sherrill  <joel@rtems.org>
12277
12278         * config.gcc: Add aarch64-*-rtems*.
12279         * config/aarch64/rtems.h: New file.
12280
12281 2016-02-26  Segher Boessenkool  <segher@kernel.crashing.org>
12282
12283         PR target/69946
12284         * config/rs6000/rs6000.c (rs6000_insn_for_shift_mask): Print rlwinm
12285         shift amount using %h.  Add comment.
12286
12287 2016-02-26  Richard Biener  <rguenther@suse.de>
12288             Jeff Law  <law@redhat.com>
12289
12290         PR tree-optimization/69740
12291         * cfghooks.c (remove_edge): Request loop fixups if we delete
12292         an edge that might turn an irreducible loop into a natural
12293         loop.
12294
12295 2016-02-26  Martin Jambor  <mjambor@suse.cz>
12296
12297         PR middle-end/69920
12298         * tree-sra.c (sra_modify_assign): Do not remove loads of
12299         uninitialized aggregates to SSA_NAMEs.
12300
12301 2016-02-26  Richard Henderson  <rth@redhat.com>
12302
12303         PR target/69709
12304         * config/s390/s390.md (risbg and risbgn splitters): Allocate new
12305         pseudo in case the target rtx matches the source of the left
12306         shift.
12307
12308 2016-02-26  Martin Jambor  <mjambor@suse.cz>
12309
12310         PR hsa/69568
12311         * hsa.h (hsa_type_packed_p): Declare.
12312         * hsa.c (hsa_type_packed_p): New function.
12313         * hsa-gen.c (mem_type_for_type): Use unsigned type for packed
12314         loads.
12315         (gen_hsa_insns_for_store): Use hsa_type_packed_p.
12316         * hsa-brig.c (emit_basic_insn): Likewise.
12317
12318 2016-02-26  Martin Jambor  <mjambor@suse.cz>
12319
12320         pr hsa/69674
12321         * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Use proper hsa type for
12322         pointers.
12323         (gen_hsa_addr): Allow integer constants in TMR_INDEX2.
12324
12325 2016-02-26  Martin Jambor  <mjambor@suse.cz>
12326
12327         * hsa.h (is_a_helper): New overload for hsa_op_immed for
12328         hsa_op_with_type operands.
12329         (hsa_unsigned_type_for_type): Declare.
12330         * hsa.c (hsa_unsigned_type_for_type): New function.
12331         * hsa-gen.c (gen_hsa_binary_operation): Use hsa_unsigned_type_for_type.
12332         (gen_hsa_insns_for_operation_assignment): Satisfy constrains of
12333         the finalizer.  Do not emit extra move.
12334
12335 2016-02-26  Martin Jambor  <mjambor@suse.cz>
12336
12337         * hsa-gen.c (gen_hsa_ternary_atomic_for_builtin): Fail in presence of
12338         atomic operations in private segment.
12339
12340 2016-02-26  Martin Jambor  <mjambor@suse.cz>
12341
12342         * omp-low.c (grid_find_ungridifiable_statement): Store problematic
12343         statements to wi->info.  Also disallow omp simd constructs.
12344         (grid_target_follows_gridifiable_pattern): Use wi.info to dump reason
12345         for not gridifying.  Dump special string for omp_for.
12346
12347 2016-02-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12348
12349         PR target/69245
12350         * config/aarch64/aarch64.c (aarch64_set_current_function):
12351         Save/restore target globals when switching to
12352         target_option_default_node.
12353
12354 2016-02-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12355
12356         PR target/69613
12357         * config/aarch64/aarch64.c (aarch64_shift_truncation_mask):
12358         Return 0 if !SHIFT_COUNT_TRUNCATED.
12359
12360 2016-02-26  Jakub Jelinek  <jakub@redhat.com>
12361             Eric Botcazou  <ebotcazou@adacore.com>
12362
12363         PR rtl-optimization/69891
12364         * dse.c (scan_insn): If we can't figure out memset arguments
12365         or they are non-constant, call clear_rhs_from_active_local_stores.
12366
12367 2016-02-26  Martin Liska  <mliska@suse.cz>
12368
12369         * doc/extend.texi: Mention clog10, clog10f an clog10l
12370         in Builtins section.
12371
12372 2016-02-26  Martin Liska  <mliska@suse.cz>
12373
12374         * dwarf2out.c (new_loc_descr): Replace ENABLE_CHECKING with
12375         CHECKING_P.
12376         (resolve_args_picking_1): Likewise.
12377         * dwarf2out.h (struct GTY): Likewise.
12378
12379 2016-02-26  Martin Liska  <mliska@suse.cz>
12380
12381         * hsa-gen.c (generate_hsa): Replace ENABLE_CHECKING macro
12382         with flag_checking.
12383         * hsa-regalloc.c (linear_scan_regalloc): Likewise.
12384
12385 2016-02-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
12386             Martin Liska  <mliska@suse.cz>
12387
12388         * doc/install.texi: Mention --enable-valgrind-annotations.
12389
12390 2016-02-26  Richard Biener  <rguenther@suse.de>
12391
12392         PR tree-optimization/69551
12393         * tree-ssa-structalias.c (get_constraint_for_ssa_var): When
12394         looking through aliases adjust DECL_PT_UID to refer to the
12395         ultimate alias target.
12396
12397 2016-02-25  Martin Liska  <mliska@suse.cz>
12398
12399         PR middle-end/69919
12400         * alloc-pool.c (after_memory_report): New variable.
12401         * alloc-pool.h (base_pool_allocator ::release): Do not use
12402         the infrastructure if after_memory_report.
12403         * toplev.c (toplev::main): Mark after memory report.
12404
12405 2016-02-25  Richard Biener  <rguenther@suse.de>
12406
12407         PR tree-optimization/48795
12408         * tree-vrp.c (check_array_ref): Use array_at_struct_end_p.
12409
12410 2016-02-25  Ilya Verbin  <ilya.verbin@intel.com>
12411
12412         PR driver/68463
12413         * config/gnu-user.h (CRTOFFLOADBEGIN): Define.  Add crtoffloadbegin.o if
12414         offloading is enabled and -fopenacc or -fopenmp is specified.
12415         (CRTOFFLOADEND): Likewise.
12416         (GNU_USER_TARGET_STARTFILE_SPEC): Add CRTOFFLOADBEGIN.
12417         (GNU_USER_TARGET_ENDFILE_SPEC): Add CRTOFFLOADEND.
12418         * lto-wrapper.c (offloadbegin, offloadend): Remove static vars.
12419         (offload_objects_file_name): New static var.
12420         (tool_cleanup): Remove offload_objects_file_name file.
12421         (find_offloadbeginend): Replace with ...
12422         (find_crtoffloadtable): ... this.
12423         (run_gcc): Remove offload_argc and offload_argv.
12424         Get offload_objects_file_name from -foffload-objects=... option.
12425         Read names of object files with offload from this file, pass them to
12426         compile_images_for_offload_targets.  Don't call find_offloadbeginend and
12427         don't pass offloadbegin and offloadend to the linker.  Don't pass
12428         offload non-LTO files to the linker, because now they're not claimed.
12429
12430 2016-02-25  Jan Hubicka  <hubicka@ucw.cz>
12431
12432         PR ipa/69630
12433         * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
12434         on builtin_unreachable.
12435
12436 2016-02-25  Jakub Jelinek  <jakub@redhat.com>
12437
12438         PR rtl-optimization/69896
12439         * regcprop.c: Include cfgrtl.h.
12440         (copyprop_hardreg_forward_1): If noop_p insn uses narrower
12441         than remembered mode, either delete it (if noop_move_p), or
12442         treat like copy_p but not noop_p instruction.
12443
12444 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
12445
12446         PR debug/69705
12447         * dwarf2out.c (gen_variable_die): Work around buggy LTO
12448         - allow NULL decl for Fortran DW_TAG_common_block variables.
12449
12450 2016-02-24  Jason Merrill  <jason@redhat.com>
12451
12452         * common.opt (flifetime-dse): Add -flifetime-dse=1.
12453
12454 2016-02-24  Richard Biener  <rguenther@suse.de>
12455             Jakub Jelinek  <jakub@redhat.com>
12456
12457         PR middle-end/69760
12458         * tree-scalar-evolution.c (interpret_rhs_expr): Re-write
12459         conditionally executed ops to well-defined overflow behavior.
12460
12461 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
12462
12463         PR middle-end/69915
12464         * tree.c (build_vector_from_ctor): Fix handling of VECTOR_CST
12465         elements.
12466
12467 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12468
12469         PR rtl-optimization/69886
12470         * gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode
12471         argument.  Use it when checking validity of set instructions.
12472         (want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p.
12473         (compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p
12474         callsite.
12475         * rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype.
12476         * store-motion.c (find_moveable_store): Update
12477         can_assign_to_reg_without_clobbers_p callsite.
12478
12479 2016-02-24  Richard Biener  <rguenther@suse.de>
12480
12481         PR middle-end/68963
12482         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix
12483         bogus check.
12484         (record_nonwrapping_iv): Do not fall back to the low/high bound
12485         for non-constant IV bases if the stmt is not always executed.
12486
12487 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12488
12489         * config/arm/arm-cores.def (cortex-a32): New entry.
12490         * config/arm/arm-tables.opt: Regenerate.
12491         * config/arm/arm-tune.md: Regenerate.
12492         * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a32.
12493         * config/arm/t-aprofile: Handle mcpu=cortex-a32.
12494         * doc/invoke.texi (ARM Options): Document cortex-a32 as value
12495         for -mcpu and -mtune.
12496
12497 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12498
12499         PR target/69875
12500         * config/arm/arm.h (TARGET_HAVE_LPAE): Define.
12501         * config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value.
12502         * config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern.
12503         (atomic_loaddi_1): Delete.
12504         (atomic_loaddi): Rewrite expander using the above changes.
12505
12506 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
12507
12508         PR c/69918
12509         * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): Bump default from
12510         2 to 3.
12511
12512 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
12513             Richard Biener  <rguenth@suse.de>
12514
12515         PR middle-end/69909
12516         * expr.c (expand_expr_real_1) <normal_inner_ref>: Avoid
12517         set_mem_attributes if tem is SSA_NAME which got expanded
12518         as a MEM.
12519
12520 2016-02-24  Richard Biener  <rguenther@suse.de>
12521
12522         PR tree-optimization/69907
12523         * tree-vect-stmts.c (vectorizable_load): Check for gaps at the
12524         end of permutations for BB vectorization.
12525
12526 2016-02-24  Christian Bruel  <christian.bruel@st.com>
12527
12528         * config/arm/arm-c.c (arm_option_override): Initialize
12529         target_option_current_node.
12530         * config/arm/arm.c (arm_pragma_target_parse): Replace
12531         build_target_option_node call by target_option_current_node.
12532         Set target_option_current_node.
12533         Fix comments.
12534
12535 2016-02-23  David Edelsohn  <dje.gcc@gmail.com>
12536
12537         PR target/69810
12538         * config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from
12539         define_insn_and_split to define_insn.
12540         (zero_extendqi<mode>2_dot2): Same.
12541         (extendqi<mode>2_dot): Same.
12542         (extendqi<mode>2_dot2): Same.
12543
12544 2016-02-23  Evandro Menezes  <e.menezes@samsung.com>
12545
12546         * config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores
12547         and add bypass for AES{D,E} and AESMC pairs.
12548         * config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E}
12549         and AESMC pairs.
12550
12551 2016-02-23  Evandro Menezes  <e.menezes@samsung.com>
12552
12553         * config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
12554         series for reciprocal square root in Exynos M1.
12555
12556 2016-02-23  Martin Sebor  <msebor@redhat.com>
12557
12558         PR c/69759
12559         * doc/extend.texi (Other Builtins): Document __builtin_alloca and
12560         __builtin_alloca_with_align.
12561
12562 2016-02-23  Richard Henderson  <rth@redhat.com>
12563
12564         * config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS.
12565         (ix86_register_pragmas): Remove __seg_tls.
12566         * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove.
12567         * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it.
12568         (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove.
12569         (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove.
12570         (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove.
12571         * doc/extend.texi (__seg_tls): Remove item.
12572
12573 2016-02-23  Richard Biener  <rguenther@suse.de>
12574
12575         * alloc-pool.h (struct allocation_object): Make id member
12576         conditional on CHECKING_P again.
12577         (get_instance): Adjust.
12578         (base_pool_allocator): Likewise.
12579
12580 2016-02-23  Thomas Schwinge  <thomas@codesourcery.com>
12581
12582         * tree-parloops.c (create_parallel_loop, gen_parallel_loop)
12583         (parallelize_loops): In OpenACC kernels mode, set n_threads to
12584         zero.
12585         (pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
12586         flag_openacc.
12587         * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
12588
12589 2016-02-23  Richard Biener  <rguenther@suse.de>
12590
12591         * mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
12592         * bitmap.h (struct bitmap_usage): Likewise.
12593         (bitmap_move): Declare.
12594         * bitmap.c (register_overhead): Take size_t argument.
12595         (bitmap_move): New function.
12596         * df-problems.c (df_rd_transfer_function): Use bitmap_move
12597         to properly account overhead.
12598         * tree.c (free_node): Use tree_size.
12599
12600 2016-02-23  Jakub Jelinek  <jakub@redhat.com>
12601
12602         PR c++/69902
12603         * fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
12604         when inverting comparison.
12605
12606         PR c/69900
12607         * common.opt (Wunreachable-code): Add Warning flag.
12608
12609 2016-02-23  Mark Wielaard  <mjw@redhat.com>
12610             Jakub Jelinek  <jakub@redhat.com>
12611
12612         PR c/69911
12613         * cgraphunit.c (check_global_declaration): Check main_input_filename
12614         and DECL_SOURCE_FILE are not NULL.
12615
12616 2016-02-23  Martin Jambor  <mjambor@suse.cz>
12617
12618         PR tree-optimization/69666
12619         * tree-sra.c (sra_modify_assign): Do not attempt to create
12620         default_def replacements for unscalarizable regions.
12621
12622 2016-02-20  Mark Wielaard  <mjw@redhat.com>
12623
12624         PR c/28901
12625         * cgraphunit.c (check_global_declaration): Check level of
12626         warn_unused_const_variable and main_input_filename.
12627         * doc/invoke.texi (Warning Options): Add -Wunused-const-variable=.
12628         (-Wunused-variable): For C implies -Wunused-const-variable=1.
12629         (-Wunused-const-variable): Explain levels 1 and 2.
12630
12631 2016-02-22  Jakub Jelinek  <jakub@redhat.com>
12632
12633         PR target/69888
12634         * config/i386/i386.c (decide_alg): Ensure we don't recurse with
12635         identical arguments.  Formatting and spelling fixes.
12636
12637         PR target/69885
12638         * doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
12639         be specified.
12640
12641         PR target/69894
12642         PR target/69895
12643         * config/m68k/t-opts (OPTIONS_H_EXTRA): Add m68k-microarchs.def
12644         and m68k-devices.def.
12645         * config/c6x/t-c6x (OPTIONS_H_EXTRA): Add c6x-isas.def.
12646         * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add aarch64-arches.def.
12647
12648 2016-02-22  Cesar Philippidis  <cesar@codesourcery.com>
12649
12650         * config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode
12651         and HImode registers.
12652
12653 2016-02-22  Richard Biener  <rguenther@suse.de>
12654
12655         PR tree-optimization/69882
12656         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly
12657         preserve permutations present because of gaps.
12658         (vect_supported_load_permutation_p): Always continue checking
12659         permutations after vect_attempt_slp_rearrange_stmts.
12660
12661 2016-02-22  Bin Cheng  <bin.cheng@arm.com>
12662
12663         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
12664         min_profitable_estimate, rather than min_profitable_iters.
12665
12666 2016-02-22  Jakub Jelinek  <jakub@redhat.com>
12667
12668         PR target/69885
12669         * config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
12670         SImode for last match_operand.
12671
12672 2016-02-22  Martin Liska  <mliska@suse.cz>
12673
12674         * hsa-gen.c (gen_hsa_clrsb): In case of zero value,
12675         return bitsize - 1 as the return value.
12676
12677 2016-02-22  Oleg Endo  <olegendo@gcc.gnu.org>
12678
12679         PR target/69806
12680         PR target/54089
12681         * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p):
12682         Handle negative shift counts.
12683         * config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use
12684         force_reg on the shift constant.
12685         (lshrsi3): Likewise.  Expand into lshrsi3_n* instead of lshrsi3_d.
12686         (lshrsi3_d): Handle negative shift counts.
12687
12688 2016-02-22  Richard Biener  <rguenther@suse.de>
12689             Tom de Vries  <tom@codesourcery.com>
12690
12691         * graph.c: Include dumpfile.h.
12692         (print_graph_cfg): Split into three overloads.
12693         * gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn.
12694
12695 2016-02-22  Tom de Vries  <tom@codesourcery.com>
12696
12697         * gdbhooks.py (class DumpFn): Add and instantiate, adding command
12698         dump-fn.
12699
12700 2016-02-22  Richard Biener  <rguenther@suse.de>
12701
12702         PR ipa/37448
12703         * ipa-inline-transform.c (inline_call): When not updating
12704         overall summaries adjust self size by the growth estimate.
12705         * ipa-inline.c (inline_to_all_callers_1): Add to the callers
12706         hash-set, do not update overall summaries here.  Renamed from ...
12707         (inline_to_all_callers): ... this which is now wrapping the
12708         above and performing delayed overall summary update.
12709         (early_inline_small_functions): Delay updating of the overall
12710         summary.
12711
12712 2016-02-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
12713
12714         * tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
12715         variable.
12716
12717 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
12718
12719         PR driver/69805
12720         * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use
12721         :%* in %:gt() argument.
12722         (greater_than_spec_func): Adjust for expecting only numbers,
12723         if there are more than two numbers, compare the last two.
12724
12725 2016-02-19  Jonathan Wakely  <jwakely@redhat.com>
12726
12727         * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
12728         -Wnarrowing with -std.
12729
12730 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
12731
12732         PR c++/69851
12733         * expr.c (store_field): Don't use bit-field path if exp is
12734         COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
12735         different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
12736         and the assignment can be performed by bitwise copy.  Formatting
12737         fix.
12738
12739         PR middle-end/69838
12740         * lra.c (lra_process_new_insns): If non-call exceptions are enabled,
12741         call copy_reg_eh_region_note_forward on before and/or after sequences
12742         and remove note from insn if it no longer can throw.
12743
12744         PR target/69820
12745         * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
12746         if TARGET_AVX512BW.
12747
12748 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12749
12750         * config/s390/vector.md: Add missing commutative operand markers
12751         to the patterns which qualify for one.
12752         * config/s390/vx-builtins.md: Likewise.
12753
12754 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12755
12756         * config/s390/vector.md (VI, VI_QHS): Add single element vector
12757         types to mode iterators.
12758         (vec_double): ... and mode attribute.
12759         * config/s390/vx-builtins.md (non_vec_int): Likewise.
12760
12761 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12762
12763         * config/s390/vector.md ("<ti*>add<mode>3", "<ti*>sub<mode>3"):
12764         Change the predicate of op2 from nonimmediate to general and let
12765         reload fix it if necessary.
12766
12767 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12768
12769         * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
12770
12771 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12772
12773         * config/s390/s390.c (s390_expand_vcond): Use the compare operand
12774         mode.
12775
12776 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12777
12778         * config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
12779         * config/s390/s390.c (s390_expand_vec_movstr): New function.
12780         * config/s390/s390.md ("movstr<P:mode>"): Call
12781         s390_expand_vec_movstr.
12782
12783 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12784
12785         * config/s390/s390.md: Add missing output modifier for operand 1
12786         to print it as address properly.
12787
12788 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12789
12790         * config/s390/2827.md: Rename ooo_* insn attributes to zEC12_*.
12791         * config/s390/2964.md: New file.
12792         * config/s390/s390.c (s390_get_sched_attrmask): Use the right set
12793         of insn grouping attributes depending on the CPU level.
12794         (s390_get_unit_mask): New function.
12795         (s390_sched_score): Remove the OOO from the scheduling macros.
12796         Add loop to calculate a score for the instruction mix.
12797         (s390_sched_reorder): Likewise plus improve debug output.
12798         (s390_sched_variable_issue): Rename macros as above.  Calculate
12799         the unit distances after actually scheduling an insn.  Improve
12800         debug output.
12801         (s390_sched_init): Clear last_scheduled_unit_distance array.
12802         * config/s390/s390.md: Include 2964.md.
12803
12804 2016-02-18  Jakub Jelinek  <jakub@redhat.com>
12805
12806         PR target/69671
12807         * config/i386/sse.md (*<floatsuffix>floatv2div2sf2_mask_1,
12808         *avx512vl_<code>v2div2qi2_mask_1, *avx512vl_<code><mode>v4qi2_mask_1,
12809         *avx512vl_<code><mode>v8qi2_mask_1, *avx512vl_<code><mode>v4hi2_mask_1,
12810         *avx512vl_<code>v2div2hi2_mask_1, *avx512vl_<code>v2div2si2_mask_1,
12811         *avx512f_<code>v8div16qi2_mask_1): New insns.
12812
12813 2016-02-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
12814
12815         PR target/68404
12816         * config/rs6000/predicates.md (fusion_gpr_addis): Revert
12817         2016-02-09 change.
12818
12819         * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
12820         earlyclobber from target.  Use wF constraint for fused memory
12821         address.
12822         (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
12823
12824 2016-02-18  Jakub Jelinek  <jakub@redhat.com>
12825             Martin Liska  <mliska@suse.cz>
12826
12827         PR sanitizer/69863
12828         * cfgexpand.c (asan_sanitize_stack_p): New function.
12829         (partition_stack_vars): Use the function.
12830         (expand_stack_vars): Likewise.
12831         (defer_stack_allocation): Likewise.
12832         (expand_used_vars): Likewise.
12833
12834 2016-02-18  Richard Biener  <rguenther@suse.de>
12835
12836         PR middle-end/69553
12837         * fold-const.c (operand_equal_p): Properly compare offsets for
12838         IMAGPART_EXPR and ARRAY_REF.
12839
12840 2016-02-18  Nick Clifton  <nickc@redhat.com>
12841
12842         PR target/62254
12843         PR target/69610
12844         * config/arm/arm.c (arm_option_override_internal): Disable
12845         interworking if the target does not support thumb instructions.
12846         (arm_reload_in_hi): Handle the case where a register to register
12847         move needs reloading because there is no simple pattern to handle
12848         it.
12849         (arm_reload_out_hi): Likewise.
12850
12851 2016-02-18  Richard Biener  <rguenther@suse.de>
12852
12853         PR middle-end/69854
12854         * match.pd: Don't use fold_binary or fold_unary for folding
12855         constants.
12856
12857 2016-02-17  Jakub Jelinek  <jakub@redhat.com>
12858
12859         PR c++/69850
12860         * gimplify.c (gimplify_cond_expr): Call gimple_set_no_warning
12861         on the cond_stmt from TREE_NO_WARNING on COND_EXPR_COND.
12862         * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Don't
12863         warn on gimple_no_warning_p statements.
12864
12865 2016-02-17  Jonathan Wakely  <jwakely@redhat.com>
12866
12867         * doc/extend.texi (C++ Attributes): Correct description of
12868         warn_unused type attribute.
12869
12870 2016-02-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12871
12872         * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
12873         correct instruction.
12874
12875 2016-02-17  Richard Biener  <rguenther@suse.de>
12876
12877         PR rtl-optimization/69609
12878         * bb-reorder.c (struct bbro_basic_block_data): Add priority member.
12879         (find_traces_1_round): When ending a trace update cached priority
12880         of successors.
12881         (bb_to_key): Use cached priority when available.
12882         (copy_bb): Initialize cached priority.
12883         (reorder_basic_blocks_software_trace_cache): Likewise.
12884
12885 2016-02-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12886
12887         PR target/69161
12888         * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
12889         New predicate.
12890         (aarch64_comparison_operator): Break overly long line into two.
12891         (aarch64_comparison_operation): Likewise.
12892         * config/aarch64/aarch64.md (cstorecc4): Use
12893         aarch64_comparison_operator_mode instead of
12894         aarch64_comparison_operator.
12895         (cstore<mode>4): Likewise.
12896         (aarch64_cstore<mode>): Likewise.
12897         (*cstoresi_insn_uxtw): Likewise.
12898         (cstore<mode>_neg): Likewise.
12899         (*cstoresi_neg_uxtw): Likewise.
12900
12901 2016-02-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12902
12903         PR target/69161
12904         * config/arm/predicates.md (arm_comparison_operator_mode):
12905         New predicate.
12906         * config/arm/arm.md (*mov_scc): Use arm_comparison_operator_mode
12907         instead of arm_comparison_operator.
12908         (*mov_negscc): Likewise.
12909         (*mov_notscc): Likewise.
12910         * config/arm/thumb2.md (*thumb2_mov_scc): Likewise.
12911         (*thumb2_mov_negscc): Likewise.
12912         (*thumb2_mov_negscc_strict_it): Likewise.
12913         (*thumb2_mov_notscc): Likewise.
12914         (*thumb2_mov_notscc_strict_it): Likewise.
12915
12916 2016-02-17  Wilco Dijkstra  <wdijkstr@arm.com>
12917
12918         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
12919         Add missing return.
12920
12921 2016-02-17  Eric Botcazou  <ebotcazou@adacore.com>
12922
12923         * config/visium/visium.c (machine_libfunc_index): New enum.
12924         (machine_libfuncs): New structure.
12925         (visium_libfuncs): New static variable.
12926         (TARGET_INIT_LIBFUNCS): Define to...
12927         (visium_init_libfuncs): ...this.  New function.
12928         (expand_block_move_4): Use the appropriate libfunc.
12929         (expand_block_move_2): Likewise.
12930         (expand_block_move_1): Likewise.
12931         (expand_block_set_4): Likewise.
12932         (expand_block_set_2): Likewise.
12933         (expand_block_set_1): Likewise.
12934         (visium_trampoline_init): Likewise.
12935
12936 2016-02-17  Nick Clifton  <nickc@redhat.com>
12937
12938         * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
12939         TI's devices.csv file as of March 2016.
12940
12941 2016-02-16  Kelvin Nilsen  <kelvin@gcc.gnu.org>
12942
12943         PR Target/48344
12944         * opts-global.c (handle_common_deferred_options): Introduce and
12945         initialize two global variables to remember command-line options
12946         specifying a stack-limiting register.
12947         * opts.h: Add extern declarations of the two new global variables.
12948         * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx
12949         variable based on the values of the two new global variables.
12950
12951 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
12952
12953         PR c/69835
12954         * common.opt (Wnonnull-compare): New warning.
12955         * doc/invoke.texi (-Wnonnull): Remove text about comparison
12956         of arguments against NULL.
12957         (-Wnonnull-compare): Document.
12958         * Makefile.in (OBJS): Add gimple-ssa-nonnull-compare.o.
12959         * tree-pass.h (make_pass_warn_nonnull_compare): Declare.
12960         * passes.def (pass_warn_nonnull_compare): Add.
12961         * gimple-ssa-nonnull-compare.c: New file.
12962
12963 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
12964
12965         * config/aarch64/aarch64.c (cortexa57_tunings): Remove
12966         AARCH64_EXTRA_TUNE_RECIP_SQRT.
12967
12968 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
12969
12970         * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
12971         reciprocal sqrt for -mlow-precision-recip-sqrt.
12972
12973 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
12974             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12975
12976         * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
12977         always use lane loads to construct non-constant vectors.
12978
12979 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
12980
12981         * config/aarch64/aarch64.md
12982         (arch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Fix register
12983         constraints for operand 3.
12984         (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
12985
12986 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
12987             Richard Biener  <rguenther@suse.de>
12988
12989         PR tree-optimization/69820
12990         * tree-vect-patterns.c (type_conversion_p): Return false if
12991         *orig_type is unsigned single precision or boolean.
12992         (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern):
12993         Formatting fix.
12994
12995 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
12996
12997         PR rtl-optimization/69764
12998         PR rtl-optimization/69771
12999         * optabs.c (expand_binop): Ensure for shift optabs invalid CONST_INT
13000         op1 is valid for GET_MODE_INNER (mode) and force it into a reg.
13001
13002 2016-02-16  Richard Biener  <rguenther@suse.de>
13003
13004         PR tree-optimization/69776
13005         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
13006         sets from caller.
13007         (indirect_refs_may_alias_p): Likewise.
13008         (refs_may_alias_p_1): Pass alias sets as from ao_ref.
13009         * tree-ssa-sccvn.c (vn_reference_lookup): Also adjust vr alias-set
13010         according to tbaa_p.
13011         * tree-ssa-dom.c (lookup_avail_expr): Add tbaa_p flag.
13012         (optimize_stmt): For redundant store discovery do not allow tbaa.
13013
13014 2016-02-16  Bernd Schmidt  <bschmidt@redhat.com>
13015
13016         PR tree-optimization/69714
13017         * tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
13018         Return NULL if we have irrelevant high bytes on BIG_ENDIAN.
13019
13020 2016-02-16  Claudiu Zissulescu  <claziss@synopsys.com>
13021
13022         * config/arc/arc-modes.def (CC_FPU, CC_FPU_UNEQ): New modes.
13023         * config/arc/arc-opts.h (FPU_SP, FPU_SF, FPU_SC, FPU_SD, FPU_DP)
13024         (FPU_DF, FPU_DC, FPU_DD, FXP_DP): Define.
13025         * config/arc/arc.c (arc_init): Check FPU options.
13026         (get_arc_condition_code): Handle new CC_FPU* modes.
13027         (arc_select_cc_mode): Likewise.
13028         (arc_conditional_register_usage): Allow 64 bit datum into even-odd
13029         register pair only. Allow access for ARCv2 accumulator.
13030         (gen_compare_reg): Whenever we have FPU support use FPU compare
13031         instructions.
13032         (arc_reorg): Don't generate brcc insns when FPU compare
13033         instructions are involved.
13034         * config/arc/arc.h (TARGET_DPFP): Add TARGET_FP_DPAX condition.
13035         (TARGET_OPTFPE): Add condition when ARC EM can use optimized
13036         floating point emulation.
13037         (ACC_REG_FIRST, ACC_REG_LAST, ACCL_REGNO, ACCH_REGNO): Define.
13038         (REVERSE_CONDITION): Add new CC_FPU* modes.
13039         (TARGET_FP_SP_BASE): Define.
13040         (TARGET_FP_DP_BASE): Likewise.
13041         (TARGET_FP_SP_FUSED): Likewise.
13042         (TARGET_FP_DP_FUSED): Likewise.
13043         (TARGET_FP_SP_CONV): Likewise.
13044         (TARGET_FP_DP_CONV): Likewise.
13045         (TARGET_FP_SP_SQRT): Likewise.
13046         (TARGET_FP_DP_SQRT): Likewise.
13047         (TARGET_FP_DP_AX): Likewise.
13048         * config/arc/arc.md (ARCV2_ACC): New constant.
13049         (type): New fpu type attribute.
13050         (SDF): Conditional iterator.
13051         (cstore<mode>, cbranch<mode>): Change expand condition.
13052         (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3): New expands,
13053         handles FPU/FPX cases as well.
13054         * config/arc/arc.opt (mfpu): New option.
13055         * config/arc/fpx.md (addsf3_fpx, subsf3_fpx, mulsf3_fpx):
13056         Renamed.
13057         (adddf3, muldf3, subdf3): Removed.
13058         * config/arc/predicates.md (proper_comparison_operator): Recognize
13059         CC_FPU* modes.
13060         * config/arc/fpu.md: New file.
13061         * doc/invoke.texi (ARC Options): Document mfpu option.
13062
13063 2016-02-16  Richard Biener  <rguenther@suse.de>
13064
13065         PR rtl-optimization/69291
13066         * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
13067         noce_operand_ok check.
13068
13069 2016-02-16  Tom de Vries  <tom@codesourcery.com>
13070
13071         PR lto/67709
13072         * omp-low.c (simd_clone_create): Remove call to
13073         symtab->call_cgraph_insertion_hooks.
13074
13075 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
13076
13077         PR tree-optimization/69802
13078         * tree-ssa-reassoc.c (update_range_test): If op is
13079         SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
13080         op == 1 test of precision 1 integral op, otherwise handle
13081         that case as op itself.  Fix up formatting.
13082         (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
13083         up formatting.
13084
13085 2016-02-16  Richard Biener  <rguenther@suse.de>
13086
13087         PR tree-optimization/69586
13088         * tree-vrp.c (register_edge_assert_for_2): Handle all integral
13089         types for conversion sources.
13090
13091 2016-02-16  Richard Biener  <rguenther@suse.de>
13092
13093         PR middle-end/69801
13094         * fold-const.c (operand_equal_p): For COND_EXPR zero operand
13095         mask OEP_ADDRESS_OF.
13096
13097 2016-02-16  Alan Modra  <amodra@gmail.com>
13098
13099         PR target/68973
13100         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
13101         (p8_mtvsrd_df, p8_mtvsrd_sf): New.
13102         (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
13103         (p8_mtvsrwz): New.
13104         (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
13105         (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
13106         (p8_fmrgow_<mode>): Likewise.
13107         (reload_vsx_from_gpr<mode>): Make clobber IF.  Adjust for above
13108         changes.
13109         (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
13110         (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
13111         to use movdi_internal64.  Remove op0_di.
13112         * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
13113
13114 2016-02-15  Evandro Menezes  <e.menezes@samsung.com>
13115
13116         Add support for the FCCMP insn types
13117
13118         * config/aarch64/aarch64.md (fccmp): Change insn type.
13119         (fccmpe): Likewise.
13120         * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
13121         * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
13122         * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
13123         * config/arm/xgene1.md (xgene1_fcmp): Likewise.
13124         * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
13125         * config/arm/types.md (fccmps): Add new insn type.
13126         (fccmpd): Likewise.
13127
13128 2016-02-15  Bernd Edlinger  <bernd.edlinger@hotmail.de>
13129
13130         * alias.c (get_alias_set): Fix a typo in comment.
13131
13132 2016-02-15  Richard Biener  <rguenther@suse.de>
13133
13134         PR tree-optimization/69595
13135         * match.pd: Complete range test simplification to true.
13136
13137 2016-02-15  Bernd Schmidt  <bschmidt@redhat.com>
13138
13139         PR rtl-optimization/69648
13140         * lra-constraints.c (update_ebb_live_info): Don't remove sets of
13141         pic_offset_table_rtx.
13142
13143         PR rtl-optimization/69752
13144         * ira.c (update_equiv_regs): When looking for more than a single SET,
13145         also take other side effects into account.
13146
13147 2016-02-15  Marcin Kościelnicki  <koriakin@0x04.net>
13148
13149         * config/s390/s390.c (s390_function_profiler): Add a new sequence
13150         for z900+ CPUs in 31-bit mode.
13151
13152 2016-02-15  Marcin Kościelnicki  <koriakin@0x04.net>
13153
13154         * common/config/s390/s390-common.c (s390_supports_split_stack):
13155         New function.
13156         (TARGET_SUPPORTS_SPLIT_STACK): New macro.
13157         * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
13158         * config/s390/s390.c (struct machine_function): New field
13159         split_stack_varargs_pointer.
13160         (s390_register_info): Mark r12 as clobbered if it'll be used as temp
13161         in s390_emit_prologue.
13162         (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
13163         vararg pointer.
13164         (morestack_ref): New global.
13165         (SPLIT_STACK_AVAILABLE): New macro.
13166         (s390_expand_split_stack_prologue): New function.
13167         (s390_live_on_entry): New function.
13168         (s390_va_start): Use split-stack vararg pointer if appropriate.
13169         (s390_asm_file_end): Emit the split-stack note sections.
13170         (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
13171         * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
13172         (UNSPECV_SPLIT_STACK_CALL): New unspec.
13173         (UNSPECV_SPLIT_STACK_DATA): New unspec.
13174         (split_stack_prologue): New expand.
13175         (split_stack_space_check): New expand.
13176         (split_stack_data): New insn.
13177         (split_stack_call): New expand.
13178         (split_stack_call_*): New insn.
13179         (split_stack_cond_call): New expand.
13180         (split_stack_cond_call_*): New insn.
13181
13182 2016-02-15  Richard Biener  <rguenther@suse.de>
13183
13184         PR tree-optimization/69783
13185         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
13186         Add trivially correct cases.
13187
13188 2016-02-15  Tom de Vries  <tom@codesourcery.com>
13189
13190         PR lto/69655
13191         * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
13192         do_force_output.
13193         * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
13194
13195 2016-02-15  Richard Biener  <rguenther@suse.de>
13196
13197         PR tree-optimization/69776
13198         * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
13199         * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
13200         indicate whether we can use TBAA to disambiguate against stores.
13201         Use alias-set zero if not.
13202         (visit_reference_op_store): Do not use TBAA when looking up
13203         redundant stores.
13204         * tree-ssa-pre.c (compute_avail): Use TBAA here.
13205         (eliminate_dom_walker::before_dom_children): But not when looking
13206         up redundant stores.
13207
13208 2016-02-14  John David Anglin  <danglin@gcc.gnu.org>
13209
13210         * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
13211
13212 2016-02-14  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
13213
13214         *  config/i386/znver1.md
13215         (znver1_pop, znver1_pop_mem,
13216         znver1_load_imov_double_store,
13217         znver1_load_imov_direct_store,
13218         znver1_load_imov_direct_load,
13219         znver1_load_imov_double_load): Add new.
13220         (znver1_insn, znver1_insn_load): Add icmov type.
13221         (znver1_sseavx_fma,
13222         znver1_sseavx_fma_load,
13223         znver1_avx256_fma,
13224         znver1_avx256_fma_load): Fix pipe usage.
13225
13226 2016-02-14  Alan Modra  <amodra@gmail.com>
13227
13228         PR target/68973
13229         * reloads.c (find_reloads_address_1): For pre/post-inc/dec
13230         with an invalid hard reg, reload just the reg not the entire
13231         pre/post-inc/dec address expression.
13232
13233 2016-02-13  Oleg Endo  <olegendo@gcc.gnu.org>
13234
13235         PR target/67260
13236         * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
13237         fixed R1_REG scratch reg.
13238         (sibcall_value_pcrel_fdpic): Likewise.
13239
13240 2016-02-13  Oleg Endo  <olegendo@gcc.gnu.org>
13241
13242         PR target/67636
13243         PR target/64345
13244         * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
13245
13246 2016-02-12  Walter Lee  <walt@tilera.com>
13247
13248         * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
13249         * config/tilegx/t-tilegx: Likewise.
13250
13251 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
13252
13253         PR other/69554
13254         * diagnostic-show-locus.c (struct line_span): New struct.
13255         (layout::get_first_line): Delete.
13256         (layout::get_last_line): Delete.
13257         (layout::get_num_line_spans): New member function.
13258         (layout::get_line_span): Likewise.
13259         (layout::print_heading_for_line_span_index_p): Likewise.
13260         (layout::get_expanded_location): Likewise.
13261         (layout::calculate_line_spans): Likewise.
13262         (layout::m_first_line): Delete.
13263         (layout::m_last_line): Delete.
13264         (layout::m_line_spans): New field.
13265         (layout::layout): Update comment.  Replace m_first_line and
13266         m_last_line with m_line_spans, replacing their initialization
13267         with a call to calculate_line_spans.
13268         (diagnostic_show_locus): When printing source lines and
13269         annotations, rather than looping over a single span
13270         of lines, instead loop over each line_span within
13271         the layout, with an inner loop over the lines within them.
13272         Call the context's start_span callback when changing line spans.
13273         * diagnostic.c (diagnostic_initialize): Initialize start_span.
13274         (diagnostic_build_prefix): Break out the building of the location
13275         part of the string into...
13276         (diagnostic_get_location_text): ...this new function, rewriting
13277         it from nested ternary expressions to a sequence of "if"
13278         statements.
13279         (default_diagnostic_start_span_fn): New function.
13280         * diagnostic.h (diagnostic_start_span_fn): New typedef.
13281         (diagnostic_context::start_span): New field.
13282         (default_diagnostic_start_span_fn): New prototype.
13283
13284 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
13285
13286         PR driver/69779
13287         * gcc.c (driver::finalize): Fix cleanup of "specs".
13288
13289 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
13290
13291         PR driver/69265
13292         PR driver/69453
13293         * gcc.c (driver::driver): Initialize m_option_suggestions.
13294         (driver::~driver): Clean up m_option_suggestions.
13295         (suggest_option): Convert to...
13296         (driver::suggest_option): ...this, and split out into
13297         driver::build_option_suggestions and find_closest_string.
13298         (driver::build_option_suggestions): New function, from
13299         first half of suggest_option.  Special-case
13300         OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
13301         the sanitizer_opts array.  For options of enum types, add the
13302         various enum values to the candidate strings.
13303         (driver::handle_unrecognized_options): Remove "const".
13304         * gcc.h (driver::handle_unrecognized_options): Likewise.
13305         (driver::build_option_suggestions): New decl.
13306         (driver::suggest_option): New decl.
13307         (driver::m_option_suggestions): New field.
13308         * opts-common.c (add_misspelling_candidates): New function.
13309         * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
13310         and make non-static.
13311         * opts.h (sanitizer_opts): New array decl.
13312         (add_misspelling_candidates): New function decl.
13313         * spellcheck.c (find_closest_string): New function.
13314         * spellcheck.h (find_closest_string): New function decl.
13315
13316 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
13317
13318         PR rtl-optimization/69764
13319         PR rtl-optimization/69771
13320         * optabs.c (expand_binop_directly): For shift_optab_p, force
13321         convert_modes with VOIDmode if xop1 has VOIDmode.
13322
13323 2016-02-12  Ilya Enkovich  <enkovich.gnu@gmail.com>
13324
13325         PR target/69729
13326         * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
13327         to correctly determine instrumentation thunks.
13328
13329 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
13330
13331         PR ipa/69241
13332         * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
13333         type by reference, force lhs on the call.
13334
13335         PR ipa/68672
13336         * ipa-split.c (split_function): Don't compute/use main_part_return_p.
13337         Compute retval and retbnd early in all cases if split_part_return_p
13338         and return_bb is not EXIT.  Remove all clobber stmts and reset
13339         all debug stmts that refer to SSA_NAMEs defined in split part,
13340         except if it is retval, in that case replace the old retval with the
13341         lhs of the call to the split part.
13342
13343 2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
13344
13345         revert:
13346         2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
13347
13348         PR middle-end/66726
13349         * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
13350         whose result is used in PHI.
13351         (maybe_optimize_range_tests): Likewise.
13352         (final_range_test_p): Likweise.
13353
13354 2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
13355
13356         PR middle-end/66726
13357         * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
13358         whose result is used in PHI.
13359         (maybe_optimize_range_tests): Likewise.
13360         (final_range_test_p): Likweise.
13361
13362 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
13363
13364         * cgraph.c: Spelling fixes - behaviour -> behavior and
13365         neighbour -> neighbor.
13366         * target.def: Likewise.
13367         * sel-sched.c: Likewise.
13368         * config/mips/mips.c: Likewise.
13369         * config/arc/arc.md: Likewise.
13370         * config/arm/cortex-a57.md: Likewise.
13371         * config/arm/arm.c: Likewise.
13372         * config/arm/neon.md: Likewise.
13373         * config/arm/arm-c.c: Likewise.
13374         * config/vms/vms-c.c: Likewise.
13375         * config/s390/s390.c: Likewise.
13376         * config/i386/znver1.md: Likewise.
13377         * config/i386/i386.c: Likewise.
13378         * config/ia64/hpux-unix2003.h: Likewise.
13379         * config/msp430/msp430.md: Likewise.
13380         * config/rx/rx.c: Likewise.
13381         * config/rx/rx.md: Likewise.
13382         * config/aarch64/aarch64-simd.md: Likewise.
13383         * config/aarch64/aarch64.c: Likewise.
13384         * config/nvptx/nvptx.c: Likewise.
13385         * config/bfin/bfin.c: Likewise.
13386         * config/cris/cris.opt: Likewise.
13387         * config/rs6000/rs6000.c: Likewise.
13388         * target.h: Likewise.
13389         * spellcheck.c: Likewise.
13390         * ira-build.c: Likewise.
13391         * tree-inline.c: Likewise.
13392         * builtins.c: Likewise.
13393         * lra-constraints.c: Likewise.
13394         * explow.c: Likewise.
13395         * hwint.h: Likewise.
13396         * targhooks.c: Likewise.
13397         * tree-vect-data-refs.c: Likewise.
13398         * expr.c: Likewise.
13399         * doc/tm.texi: Likewise.
13400         * doc/extend.texi: Likewise.
13401         * doc/install.texi: Likewise.
13402         * doc/md.texi: Likewise.
13403         * tree-ssa-tail-merge.c: Likewise.
13404         * sched-int.h: Likewise.
13405         * match.pd: Likewise.
13406         * sched-ebb.c: Likewise.
13407         * target.def (omit_struct_return_reg): Likewise.
13408         * gimple-ssa-isolate-paths.c: Likewise.
13409         (find_implicit_erroneous_behaviour): Renamed to...
13410         (find_implicit_erroneous_behavior): ... this.
13411         (find_explicit_erroneous_behaviour): Renamed to...
13412         (find_explicit_erroneous_behavior): ... this.
13413         (gimple_ssa_isolate_erroneous_paths): Adjust caller.
13414
13415 2016-02-11  Segher Boessenkool  <segher@kernel.crashing.org>
13416
13417         PR rtl-optimization/64682
13418         PR rtl-optimization/69567
13419         PR rtl-optimization/69737
13420         * combine.c (distribute_notes) <REG_DEAD>: If the register is set
13421         in I2 as well, just lose it.
13422
13423 2016-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13424
13425         * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
13426         New variable.
13427         (aarch64_last_printed_tune_string): Likewise.
13428         (aarch64_declare_function_name): Only output .arch assembler
13429         directive if it will be different from the previously output
13430         directive.  Same for .tune comment but only if -dA is set.
13431         (aarch64_start_file): New function.
13432         (TARGET_ASM_FILE_START): Define.
13433
13434 2016-02-11  David Malcolm  <dmalcolm@redhat.com>
13435
13436         PR plugins/69758
13437         * Makefile.in (PLUGIN_HEADERS): Add params.list.
13438
13439 2016-02-11  Jakub Jelinek  <jakub@redhat.com>
13440
13441         PR target/65313
13442         * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
13443         -Wmaybe-uninitialized warning.
13444
13445 2016-02-11  Oleg Endo  <olegendo@gcc.gnu.org>
13446
13447         PR target/69713
13448         * config/sh/sh.md (casesi_worker_0): Add T_REG use.
13449
13450 2016-02-11  Richard Biener  <rguenther@suse.de>
13451
13452         PR rtl-optimization/69291
13453         * ifcvt.c (noce_try_store_flag_constants): Do not allow
13454         subexpressions affected by changing the result.
13455
13456 2016-02-10  Vladimir Makarov  <vmakarov@redhat.com>
13457
13458         PR target/69148
13459         * lra-constraints.c (curr_insn_transform): Find in/out operands
13460         for secondary memory moves.  Update dups.
13461
13462 2016-02-10  Yuri Rumyantsev  <ysrumyan@gmail.com>
13463
13464         PR tree-optimization/69652
13465         * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
13466         to nested loop, did source re-formatting, skip debug statements,
13467         add check on statement with volatile operand, remove dead scalar
13468         statements.
13469
13470 2016-02-10  Jakub Jelinek  <jakub@redhat.com>
13471             Patrick Palka  <ppalka@gcc.gnu.org>
13472
13473         PR ipa/69241
13474         PR c++/69649
13475         * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
13476         calls if the return type is TREE_ADDRESSABLE.
13477         * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
13478         * ipa-split.c (split_function): Fix doubled "we" in comment.
13479         Use void return type for the split part even if
13480         !split_point->split_part_set_retval.
13481
13482 2016-02-10  Bin Cheng  <bin.cheng@arm.com>
13483
13484         PR tree-optimization/68021
13485         * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
13486         when computing the value of biv cand by itself.
13487
13488 2016-02-10  Wilco Dijkstra  <wdijkstr@arm.com>
13489
13490         * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
13491         (cortexa57_tunings): Likewise.
13492         (cortexa72_tunings): Likewise.
13493         (arch_macro_fusion_pair_p): Add support for AES fusion.
13494         * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
13495         * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
13496         Allow virtual registers before reload so early scheduling works.
13497         * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
13498         correct latency and pipeline.
13499         (cortex_a57_crypto_complex): Likewise.
13500         (cortex_a57_crypto_xor): Likewise.
13501         (define_bypass): Add AES bypass.
13502
13503 2016-02-10  Richard Biener  <rguenther@suse.de>
13504
13505         PR tree-optimization/69726
13506         * passes.def: Add DCE pass before late uninit.
13507         * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
13508         really fixup if-conversions job.
13509
13510 2016-02-10  Wilco Dijkstra  <wdijkstr@arm.com>
13511
13512         * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
13513         (arm_cortex_a57_tune): Likewise.
13514         (aarch_macro_fusion_pair_p): Add support for AES fusion.
13515         * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
13516
13517 2016-02-10  Eric Botcazou  <ebotcazou@adacore.com>
13518
13519         * timevar.def (TV_PHASE_DBGINFO): Delete.
13520         (TV_PHASE_CHECK_DBGINFO): Likewise.
13521         * varpool.c (varpool_node::assemble_decl): Do not change timevar.
13522
13523 2016-02-10  Richard Biener  <rguenther@suse.de>
13524
13525         PR tree-optimization/69719
13526         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
13527         Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
13528
13529 2016-02-09  Andrew Pinski  <apinski@cavium.com>
13530
13531         PR tree-opt/69282
13532         * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
13533         get_vcond_mask_icode returns false.
13534
13535 2016-02-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
13536
13537         PR target/68404
13538         * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
13539         an ADDIS that adds a pointer to a large constant that sets the
13540         upper16 bits with a load operation.
13541
13542 2016-02-09  Charles Baylis  <charles.baylis@linaro.org>
13543
13544         PR target/68532
13545         * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
13546         order.
13547         * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
13548         endian.
13549         (vzipq_s16): Likewise.
13550         (vzipq_s32): Likewise.
13551         (vzipq_f32): Likewise.
13552         (vzipq_u8): Likewise.
13553         (vzipq_u16): Likewise.
13554         (vzipq_u32): Likewise.
13555         (vzipq_p8): Likewise.
13556         (vzipq_p16): Likewise.
13557
13558 2016-02-09  Charles Baylis  <charles.baylis@linaro.org>
13559
13560         PR target/68532
13561         * config/arm/arm.c (neon_endian_lane_map): New function.
13562         (neon_vector_pair_endian_lane_map): New function.
13563         (arm_evpc_neon_vuzp): Allow for big endian lane order.
13564         * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
13565         endian.
13566         (vuzpq_s16): Likewise.
13567         (vuzpq_s32): Likewise.
13568         (vuzpq_f32): Likewise.
13569         (vuzpq_u8): Likewise.
13570         (vuzpq_u16): Likewise.
13571         (vuzpq_u32): Likewise.
13572         (vuzpq_p8): Likewise.
13573         (vuzpq_p16): Likewise.
13574
13575 2016-02-11  Alexandre Oliva  <aoliva@redhat.com>
13576
13577         PR target/69634
13578         * regstat.c (regstat_bb_compute_calls_crossed): Disregard
13579         debug insns.
13580
13581 2016-02-09  Uros Bizjak  <ubizjak@gmail.com>
13582
13583         * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
13584         truncate const_int operand 1 to QImode.
13585
13586 2016-02-09  Eric Botcazou  <ebotcazou@adacore.com>
13587
13588         * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
13589         corresponding to an abnormal edge.
13590
13591 2016-02-09  Tom de Vries  <tom@codesourcery.com>
13592
13593         PR tree-optimization/69599
13594         * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
13595         function.
13596         (find_func_aliases_for_builtin_call, find_func_clobbers)
13597         (ipa_pta_execute):  Handle case that foo and foo._0 are not in same lto
13598         partition.
13599
13600 2016-02-09  Richard Biener  <rguenther@suse.de>
13601
13602         PR tree-optimization/69715
13603         * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
13604         LHS on calls as non-rewritable.
13605
13606 2016-02-09  Tom de Vries  <tom@codesourcery.com>
13607
13608         PR lto/69707
13609         * lto-wrapper.c (append_diag_options): New function.
13610         (compile_offload_image): Call append_diag_options.
13611
13612 2016-02-08  Sandra Loosemore  <sandra@codesourcery.com>
13613
13614         PR other/69722
13615         * doc/extend.texi (Flag Output Operands): Correct sectioning.
13616         Minor copy-edit to fix verb tenses.
13617
13618 2016-02-08  Jakub Jelinek  <jakub@redhat.com>
13619
13620         PR tree-optimization/69209
13621         * ipa-split.c (split_function): If split part is not
13622         returning retval, retval has gimple type but is not
13623         gimple value, force it into a SSA_NAME first.
13624
13625 2016-02-08  Nicklas Bo Jensen  <nbjensen@gmail.com>
13626
13627         * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
13628         outdated section.
13629
13630 2016-02-08  Jason Merrill  <jason@redhat.com>
13631
13632         PR c++/69631
13633         * convert.c (convert_to_integer_1): Check dofold on truncation
13634         distribution.
13635         (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
13636         (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
13637         Rename from *_nofold.
13638         * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
13639         (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
13640
13641 2016-02-08  Bernd Schmidt  <bschmidt@redhat.com>
13642
13643         PR target/60410
13644         * tree.c (build_common_tree_nodes): Remove short_double argument.
13645         All callers changed.
13646         * tree.h (build_common_tree_nodes): Adjust declaration.
13647         * doc/invoke.texi (-fshort-double): Remove documentation.
13648         * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
13649         MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
13650         * lto-wrapper.c (merge_and_complain, append_compiler_options)
13651         (append_linker_options): Don't handle OPT_fshort_double.
13652
13653         PR rtl-optimization/68730
13654         * lra-remat.c (insn_to_cand_activation): New static variable.
13655         (lra_remat): Allocate and free it.
13656         (create_cand): New arg activation. Initialize a field in
13657         insn_to_cand_activation if it is nonnull.
13658         (create_cands): Pass the activation insn to create_cand when making
13659         a candidate involving an output reload.  Reorganize code a little.
13660         (do_remat): Keep track of active status of candidates in a separate
13661         bitmap.
13662
13663 2016-02-08  Richard Biener  <rguenther@suse.de>
13664
13665         PR tree-optimization/69719
13666         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
13667         Properly use absolute of the difference of the two offsets to
13668         compare or adjust the segment length.
13669
13670 2016-02-08  Richard Biener  <rguenther@suse.de>
13671             Jeff Law  <law@redhat.com>
13672
13673         PR target/68273
13674         * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
13675         types for anonymous SSA names.
13676
13677 2016-02-08   Richard Biener  <rguenther@suse.de>
13678
13679         PR rtl-optimization/69274
13680         * ira.c (ira_setup_alts): Do not change recog_data.operand order.
13681
13682 2016-02-08  Jeff Law  <law@redhat.com>
13683
13684         PR tree-optimization/65917
13685         * tree-ssa-dom.c (record_temporary_equivalences): Record both
13686         equivalences from if (x == y) style conditionals.
13687         (loop_depth_of_name): Remove.
13688         (record_equality): Remove loop depth check.
13689         * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
13690         (const_and_copies::record_const_or_copy_raw): New member function.
13691         * tree-ssa-scopedtables.c
13692         (const_and_copies::record_const_or_copy_raw): New, factored out of
13693         (const_and_copies::record_const_or_copy): Call new member function.
13694
13695 2016-02-05  Jeff Law  <law@redhat.com>
13696
13697         PR tree-optimization/68541
13698         * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
13699         (count_stmts_in_block): New function.
13700         (poor_ifcvt_candidate_code): Likewise.
13701         (is_feasible_trace): Add some heuristics to determine when path
13702         splitting is profitable.
13703         (find_block_to_duplicate_for_splitting_paths): Make sure the graph
13704         is a diamond with a single exit.
13705
13706 2016-02-05  Martin Sebor  <msebor@redhat.com>
13707
13708         PR c++/69662
13709         * doc/invoke.texi: Update -Wplacement-new to take an optional
13710         argument.
13711
13712 2016-02-06  Richard Henderson  <rth@redhat.com>
13713
13714         PR c/69643
13715         * tree.c (tree_nop_conversion_p): Do not strip casts into or
13716         out of non-standard address spaces.
13717
13718 2016-02-05  Jakub Jelinek  <jakub@redhat.com>
13719
13720         PR rtl-optimization/69691
13721         * lra-eliminations.c (move_plus_up): Don't add the addend twice.
13722
13723 2016-02-05  Pat Haugen  <pthaugen@us.ibm.com>
13724
13725         * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
13726         * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
13727         (*ieee128_mfvsrd_64bit): Likewise.
13728         (*ieee128_mfvsrd_32bit): Likewise.
13729
13730 2016-02-05  Ilya Enkovich  <enkovich.gnu@gmail.com>
13731
13732         PR target/69369
13733         Revert r232560:
13734         2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
13735
13736         * cgraphunit.c (cgraph_node::reset): Clear thunk info and
13737         instrumented_version.
13738
13739 2016-01-05  Jeremy Bennett  <jeremy.bennett@embecosm.com>
13740
13741         * doc/invoke.texi (Optimize Options): In table of --param options
13742         rename second occurrence of tracer-min-branch-ratio to
13743         tracer-min-branch-probability, rename
13744         tracer-min-branch-ratio-feedback to
13745         tracer-min-branch-probability-feedback and clarify description,
13746         rename sched-spec-state-edge-prob-cutoff to
13747         sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
13748         to selsched-insns-to-rename, rename lto-minpartition to
13749         lto-min-partition, delete reorder-blocks-duplicate and
13750         reorder-blocks-duplicate-feedback.
13751
13752 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13753
13754         * config/s390/s390.c (s390_register_info_set_ranges): Remove
13755         superfluous loops.
13756
13757 2016-02-05  Dominik Vogt  <vogt@linux.vnet.ibm.com>
13758
13759         * doc/extend.texi: S/390: Correct some typos.
13760
13761 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13762
13763         * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
13764
13765 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13766
13767         PR target/69625
13768         * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
13769         (s390_register_info_gprtofpr): Use new macros above.
13770         (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
13771         its name.
13772         (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
13773         its name.  Adjust restore and save gpr ranges.
13774         (s390_register_info_set_ranges): New function.
13775         (s390_register_info): Use new macros above.  Call
13776         s390_register_info_set_ranges.
13777         (s390_optimize_register_info): Likewise.
13778         (s390_hard_regno_rename_ok): Use new macros.
13779         (s390_hard_regno_scratch_ok): Likewise.
13780         (s390_emit_epilogue): Likewise.
13781         (s390_can_use_return_insn): Likewise.
13782         (s390_optimize_prologue): Likewise.
13783         * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
13784
13785 2016-02-05  Jakub Jelinek  <jakub@redhat.com>
13786
13787         PR bootstrap/69677
13788         * config/i386/i386.c (convert_scalars_to_vector): Readd stack
13789         alignment fixes.
13790         (ix86_option_override_internal): Disable TARGET_STV even for
13791         -m{incoming,preferred}-stack-boundary=3.
13792
13793 2016-02-03  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13794
13795         * config.gcc: Mark deprecated rtems targets as obsolete.
13796
13797 2016-02-04  Segher Boessenkool  <segher@kernel.crashing.org>
13798
13799         PR rtl-optimization/64682
13800         PR rtl-optimization/69567
13801         * combine.c (distribute_notes) <REG_DEAD>: Place the death note
13802         before I2 only if the register is both used and set in I2.
13803
13804 2016-02-04  DJ Delorie  <dj@redhat.com>
13805
13806         * config/msp430/msp430.c (msp430_start_function): Add function type.
13807
13808 2016-02-04  Jakub Jelinek  <jakub@redhat.com>
13809
13810         PR fortran/69368
13811         * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
13812
13813 2016-02-04  Uros Bizjak  <ubizjak@gmail.com>
13814
13815         PR rtl-optimization/69577
13816         Revert:
13817         2015-10-29  Richard Henderson  <rth@redhat.com>
13818
13819         PR target/68124
13820         PR rtl-opt/67609
13821         * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
13822         sse check to the exact conditions of PR 67609.
13823
13824 2016-02-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
13825
13826         PR target/69667
13827         * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
13828         instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
13829         not allowed into the traditional Altivec registers.
13830         (movtd_64bit_nodm): Likewise.
13831         (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
13832
13833 2016-02-04  David Malcolm  <dmalcolm@redhat.com>
13834
13835         * config/aarch64/cortex-a57-fma-steering.c
13836         (aarch64_register_fma_steering): Remove "static" from arguments
13837         to register_pass.
13838
13839 2016-02-04  Wilco Dijkstra  <wdijkstr@arm.com>
13840
13841         PR target/69619
13842         * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
13843         twice when complex.
13844
13845 2016-02-04  Mike Frysinger  <vapier@gentoo.org>
13846
13847         * doc/invoke.texi: Delete -mno-fma4.
13848
13849 2016-02-04  Richard Sandiford  <richard.sandiford@arm.com>
13850
13851         PR rtl-optimization/69577
13852         * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
13853         (find_subregs_of_mode): Update accordingly.  Iterate over partial
13854         definitions.
13855
13856 2016-02-04  Alan Lawrence  <alan.lawrence@arm.com>
13857
13858         * config/arm/arm-protos.h (neon_reinterpret): Remove.
13859         * config/arm/arm.c (neon_reinterpret): Remove.
13860         * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
13861         vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
13862         vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
13863         vreinterpretti): Remove.
13864         * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
13865         neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
13866         neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
13867         neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
13868         neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
13869         neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
13870         * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
13871         vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
13872         vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
13873         vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
13874         vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
13875         vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
13876         vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
13877         vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
13878         vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
13879         vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
13880         vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
13881         vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
13882         vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
13883         vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
13884         vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
13885         vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
13886         vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
13887         vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
13888         vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
13889         vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
13890         vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
13891         vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
13892         vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
13893         vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
13894         vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
13895         vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
13896         vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
13897         vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
13898         vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
13899         vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
13900         vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
13901         vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
13902         vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
13903         vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
13904         vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
13905         vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
13906         vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
13907         vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
13908         vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
13909         vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
13910         vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
13911         vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
13912         vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
13913         vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
13914         vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
13915         vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
13916         vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
13917         vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
13918         vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
13919         vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
13920         vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
13921         vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
13922         vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
13923         vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
13924         vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
13925         vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
13926         vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
13927         vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
13928         vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
13929         vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
13930         vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
13931         vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
13932         vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
13933         vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
13934         vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
13935         vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
13936         vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
13937         vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
13938         vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
13939         vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
13940         vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
13941         vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
13942         vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
13943         vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
13944         vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
13945         vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
13946         vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
13947         vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
13948         vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
13949         vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
13950         vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
13951         vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
13952         vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
13953         vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
13954         vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
13955         vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
13956         vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
13957         vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
13958         vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
13959         vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
13960         vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
13961         vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
13962         vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
13963         vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
13964         vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
13965         vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
13966         vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
13967
13968 2016-02-04  Martin Liska  <mliska@suse.cz>
13969
13970         PR sanitizer/69276
13971         * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
13972         that are gimple_store_p.
13973         (maybe_instrument_call): Likewise.
13974
13975 2016-02-04  Bin Cheng  <bin.cheng@arm.com>
13976
13977         * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
13978         register scaling out of memory reference and comment why.
13979
13980 2016-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13981
13982         PR target/65932
13983         PR target/67714
13984         * cse.c (cse_insn): Pass NULL to fold_rtx when initially
13985         folding the source of a SET.
13986
13987 2016-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13988
13989         PR target/65932
13990         PR target/67714
13991         * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
13992         the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
13993
13994 2016-02-04  Jim Wilson  <jim.wilson@linaro.org>
13995
13996         PR target/65932
13997         PR target/67714
13998         * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
13999         HImode.
14000
14001 2016-02-04  Christian Bruel  <christian.bruel@st.com>
14002
14003         * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
14004         * config/arm/arm.c (arm_set_current_function): Likewise.
14005
14006 2016-02-04  Jakub Jelinek  <jakub@redhat.com>
14007             Ilya Enkovich  <enkovich.gnu@gmail.com>
14008             H.J. Lu  <hongjiu.lu@intel.com>
14009
14010         PR target/69454
14011         * config/i386/i386.c (convert_scalars_to_vector): Remove
14012         stack alignment fixes.
14013         (ix86_option_override_internal): Disable TARGET_STV if stack
14014         might not be aligned enough.
14015         (ix86_minimum_alignment): Assert that TARGET_STV is false.
14016
14017 2016-02-04  Victoria Stepanyan  <victoria.stepanyan@amd.com>
14018
14019         * config/i386/x86-tune.def: Disable default prefetching
14020         for -march=znver1.
14021
14022 2016-02-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
14023             Vladimir Makarov  <vmakarov@redhat.com>
14024
14025         PR target/69461
14026         * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
14027         in validating fused toc addresses.
14028
14029 2016-02-03  Jakub Jelinek  <jakub@redhat.com>
14030
14031         PR c/69627
14032         * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
14033         range->m_caret fields if range->m_show_caret_p is false.
14034
14035         PR target/69644
14036         * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
14037         Force oldval into register if it does not satisfy reg_or_short_operand
14038         predicate.  Fix up formatting.
14039
14040 2016-02-03  Vladimir Makarov  <vmakarov@redhat.com>
14041             Alexandre Oliva  <aoliva@redhat.com>
14042
14043         PR target/69461
14044         * lra-constraints.c (simplify_operand_subreg): Check additionally
14045         address validity after potential reloading.
14046         (process_address_1): Check insns validity.  In case of failure do
14047         nothing.
14048
14049 2016-02-03  Kirill Yukhin  <kirill.yukhin@intel.com>
14050
14051         PR target/69118
14052         * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
14053         Fix target.
14054
14055 2016-02-02  Jakub Jelinek  <jakub@redhat.com>
14056
14057         * wide-int.cc (canonize_uhwi): New function.
14058         (wi::divmod_internal): Use it.
14059
14060 2016-02-02  James Norris  <jnorris@codesourcery.com
14061
14062         * gimplify.c (omp_notice_variable): Add usage check.
14063
14064 2016-02-02  Alexander Monakov  <amonakov@ispras.ru>
14065
14066         * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
14067         like LE, GE, LT, GT when emitting relational operator.
14068
14069 2016-02-02  Wilco Dijkstra  <wdijkstr@arm.com>
14070
14071         * ira-costs.c (find_costs_and_classes): Add extra argument.
14072         * target.def (ira_change_pseudo_allocno_class): Add parameter.
14073         * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
14074         * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
14075         * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
14076         Add best_class parameter, and return it if not ALL_REGS.
14077         * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
14078         Add parameter.
14079         * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
14080         Update target hook.
14081
14082 2016-02-02  Wilco Dijkstra  <wdijkstr@arm.com>
14083
14084         * config/aarch64/aarch64.c
14085         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
14086         (aarch64_ira_change_pseudo_allocno_class): New function.
14087
14088 2016-02-02  Uros Bizjak  <ubizjak@gmail.com>
14089
14090         PR target/67032
14091         * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
14092
14093 2016-02-02  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
14094
14095         * config/avr/avr.c (avr_option_override): Set
14096         PARAM_ALLOW_STORE_DATA_RACES to 1.
14097
14098 2016-02-02  Richard Biener  <rguenther@suse.de>
14099
14100         PR tree-optimization/69595
14101         * match.pd: Add range test simplifications to true/false.
14102
14103 2016-02-02  Thomas Schwinge  <thomas@codesourcery.com>
14104
14105         * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
14106         * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
14107         instead.
14108
14109 2016-02-02  Richard Biener  <rguenther@suse.de>
14110
14111         PR tree-optimization/69606
14112         * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
14113         info on the result before moving a stmt.
14114
14115 2016-02-02  Yuri Rumyantsev  <ysrumyan@gmail.com>
14116
14117         PR middle-end/68542
14118         * config/i386/i386.c (ix86_expand_branch): Add support for conditional
14119         branch with vector comparison.
14120         * config/i386/sse.md (VI48_AVX): New mode iterator.
14121         (define_expand "cbranch<mode>4): Add support for conditional branch
14122         with vector comparison.
14123         * tree-vect-loop.c (optimize_mask_stores): New function.
14124         * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
14125         has_mask_store field of vect_info.
14126         * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
14127         vectorized loops having masked stores after vec_info destroy.
14128         * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
14129         correspondent macros.
14130         (optimize_mask_stores): Add prototype.
14131
14132 2016-02-02  Alan Modra  <amodra@gmail.com>
14133
14134         PR target/69548
14135         * config/rs6000/predicates.md (quad_int_reg_operand): Don't
14136         allow subregs.
14137
14138 2016-02-02  Alan Modra  <amodra@gmail.com>
14139
14140         PR target/68662
14141         * config/rs6000/rs6000.c (need_toc_init): New var, set it
14142         whenever toc_label_name used.
14143         (rs6000_file_start): Don't set up toc section here,
14144         (rs6000_output_function_epilogue): do so here instead,
14145         (rs6000_xcoff_file_start): and here.
14146         * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
14147         (load_toc_aix_di): Likewise.
14148
14149 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
14150
14151         PR rtl-optimization/69592
14152         * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
14153         (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
14154         (num_sign_bit_copies_binary_arith_p): New inline function.
14155         (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
14156
14157 2016-02-01  Jeff Law  <law@redhat.com>
14158
14159         PR tree-optimization/69580
14160         * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
14161         * tree-ssa-threadbackward.c
14162         (fsm_find_control_statement_thread_paths): Do not try to walk
14163         through large PHI nodes.
14164
14165 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
14166
14167         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
14168         when count is incremented above limit, don't analyze further
14169         insns afterwards.
14170
14171         * omp-low.c (oacc_parse_default_dims): Avoid
14172         -Wsign-compare warning, make sure value fits into int
14173         rather than just unsigned int.
14174
14175 2016-02-01  Bin Cheng  <bin.cheng@arm.com>
14176
14177         PR tree-optimization/67921
14178         * fold-const.c (split_tree): New parameters.  Convert pointer
14179         type variable part to proper type before negating.
14180         (fold_binary_loc): Pass new arguments to split_tree.
14181
14182 2016-02-01  Nathan Sidwell  <nathan@codesourcery.com>
14183
14184         * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
14185         (nvptx_goacc_validate_dims): Extend to handle global defaults.
14186         * target.def (OACC_VALIDATE_DIMS): Extend documentation.
14187         * doc/tm.texti: Rebuilt.
14188         * doc/invoke.texi (fopenacc-dim): Document.
14189         * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
14190         (append_compiler_options): Likewise.
14191         * omp-low.c (oacc_default_dims, oacc_min_dims): New.
14192         (oacc_parse_default_dims): New.
14193         (oacc_validate_dims): Add USED arg.  Select non-unity default when
14194         possible.
14195         (oacc_loop_fixed_partitions): Return mask of used partitions.
14196         (oacc_loop_auto_partitions): Emit dump info.
14197         (oacc_loop_partition): Return mask of used partitions.
14198         (execute_oacc_device_lower): Parse default dimension arg.  Adjust
14199         loop partitioning and validation calls.
14200
14201 2016-02-01  Richard Biener  <rguenther@suse.de>
14202
14203         PR middle-end/69556
14204         * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
14205
14206 2016-02-01  Richard Biener  <rguenther@suse.de>
14207
14208         PR tree-optimization/69574
14209         * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
14210         of asserting return chrec_dont_know.
14211
14212 2016-02-01  Martin Liska  <mliska@suse.cz>
14213
14214         * mem-stats-traits.h: Add copyright header.
14215         * mem-stats.h: Likewise.
14216
14217 2016-02-01  Richard Biener  <rguenther@suse.de>
14218
14219         PR tree-optimization/69579
14220         * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
14221         Do not propagate through abnormal PHI results.
14222
14223 2016-02-01  Eric Botcazou  <ebotcazou@adacore.com>
14224
14225         * postreload.c (reload_cse_simplify): Remove dead code.
14226
14227 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
14228
14229         PR rtl-optimization/69570
14230         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
14231         if there is more than one set, not if there is a single set.
14232
14233 2016-02-01  Richard Henderson  <rth@redhat.com>
14234
14235         PR rtl-opt/69535
14236         * combine.c (make_compound_operation): When looking through a
14237         subreg, make sure to re-extend to the width of the outer mode.
14238
14239 2016-01-30  Jakub Jelinek  <jakub@redhat.com>
14240
14241         PR tree-optimization/69546
14242         * wide-int.cc (wi::divmod_internal): For unsigned division
14243         where both operands fit into uhwi, if o1 is 1 and o0 has
14244         msb set, if divident_prec is larger than bits per hwi,
14245         clear another quotient word and return 2 instead of 1.
14246         Similarly for remainder with msb in HWI set, if dividend_prec
14247         is larger than bits per hwi.
14248
14249 2016-01-29  Martin Jambor  <mjambor@suse.cz>
14250
14251         * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
14252         Use short lowercase names.
14253         (get_memory_order): Mask with MEMMODEL_BASE_MASK.  Support
14254         MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
14255         acq_rel one.  Protect warning agains segfaults if
14256         get_memory_order_name returns NULL.
14257         (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
14258         with release semantics.  Do not warn if get_memory_order already did.
14259         (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
14260         semantics.  Fix check for relaxed or acquire semantics.  Do not warn
14261         if get_memory_order already did.
14262
14263 2016-01-29  Sebastian Pop  <s.pop@samsung.com>
14264
14265         * doc/install.texi: Document that isl-0.16 is supported.
14266
14267 2016-01-29  Vladimir Makarov  <vmakarov@redhat.com>
14268
14269         PR target/69299
14270         * config/i386/constraints.md (Bm): Describe as special memory
14271         constraint.
14272         * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
14273         * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
14274         * genpreds.c (struct constraint_data): Add is_special_memory.
14275         (have_special_memory_constraints, special_memory_start): New
14276         static vars.
14277         (special_memory_end): Ditto.
14278         (add_constraint): Add new arg is_special_memory.  Add code to
14279         process its true value.  Update have_special_memory_constraints.
14280         (process_define_constraint): Pass the new arg.
14281         (process_define_register_constraint): Ditto.
14282         (choose_enum_order): Process special memory.
14283         (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
14284         function insn_extra_special_memory_constraint.
14285         (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
14286         * gensupport.c (process_rtx): Process
14287         DEFINE_SPECIAL_MEMORY_CONSTRAINT.
14288         * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
14289         * ira-lives.c (single_reg_class): Use
14290         insn_extra_special_memory_constraint.
14291         * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
14292         * lra-constraints.c (process_alt_operands): Ditto.
14293         (curr_insn_transform): Use insn_extra_special_memory_constraint.
14294         * recog.c (asm_operand_ok, preprocess_constraints): Process
14295         CT_SPECIAL_MEMORY.
14296         * reload.c (find_reloads): Ditto.
14297         * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
14298         * stmt.c (parse_input_constraint): Use
14299         insn_extra_special_memory_constraint.
14300
14301 2016-01-29  H.J. Lu  <hongjiu.lu@intel.com>
14302
14303         PR target/69530
14304         * lra-splill.c (lra_final_code_change): Revert r229087 by
14305         removing all sub-registers.
14306
14307 2016-01-29  Steve Ellcey  <sellcey@imgtec.com>
14308
14309         PR target/65604
14310         * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
14311
14312 2016-01-29  Jakub Jelinek  <jakub@redhat.com>
14313
14314         PR target/69551
14315         * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
14316         SSE1, copy target into the temporary reg first before recursing
14317         on it.
14318
14319 2016-01-29  H.J. Lu  <hongjiu.lu@intel.com>
14320
14321         * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
14322         with vm.
14323
14324 2016-01-29  Jonathan Wakely  <jwakely@redhat.com>
14325
14326         * ginclude/stdarg.h: Test __cplusplus instead of
14327         __GXX_EXPERIMENTAL_CXX0X__.
14328
14329 2016-01-29  Richard Biener  <rguenther@suse.de>
14330
14331         PR tree-optimization/69547
14332         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
14333         Do not mark clobbers necessary.
14334         (mark_all_reaching_defs_necessary_1): Likewise.
14335
14336 2016-01-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
14337
14338         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
14339         declaration name with %qs and print it in both error messages.
14340         Also fix indentation.
14341
14342 2016-01-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
14343
14344         PR other/69006
14345         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
14346         trailing blank line from error message.
14347
14348 2016-01-29  Jonathan Wakely  <jwakely@redhat.com>
14349
14350         PR c++/69462
14351         * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
14352         for C++-11.
14353
14354 2016-01-29  Richard Biener  <rguenther@suse.de>
14355
14356         PR middle-end/69537
14357         * match.pd: Allow all integral types when simplifying a
14358         widening or sign-changing conversion.
14359
14360 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
14361
14362         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
14363         back to setting codegen_error to fail codegen.
14364
14365 2016-01-28  Uros Bizjak  <ubizjak@gmail.com>
14366
14367         PR target/69459
14368         * config/i386/constraints.md (C): Only accept constant zero operand.
14369         (BC): New constraint.
14370         * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
14371         instead of C constraint.
14372         * doc/md.texi (Machine Constraints): Update description
14373         of C constraint.
14374
14375 2016-01-28  Steve Ellcey  <sellcey@imgtec.com>
14376
14377         PR target/68400
14378         * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
14379
14380 2016-01-28  Jakub Jelinek  <jakub@redhat.com>
14381
14382         PR middle-end/69542
14383         * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
14384         non-debug insns.
14385
14386 2016-01-28  Pat Haugen  <pthaugen@us.ibm.com>
14387
14388         * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
14389         branches if using guessed profile.
14390
14391 2016-01-28  H.J. Lu  <hongjiu.lu@intel.com>
14392
14393         * graphite-optimize-isl.c (optimize_isl): Fix dump.
14394
14395 2016-01-28  Richard Henderson  <rth@redhat.com>
14396
14397         PR target/69305
14398         * config/aarch64/aarch64-modes.def (CC_Cmode): New
14399         * config/aarch64/aarch64-protos.h: Update.
14400         * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
14401         (aarch64_select_cc_mode): Add check for use of CC_Cmode.
14402         (aarch64_get_condition_code_1): Handle CC_Cmode.
14403         * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
14404         (*add<mode>3_compareC_cconly_imm): New.
14405         (*add<mode>3_compareC_cconly): New.
14406         (*add<mode>3_compareC_imm): New.
14407         (add<mode>3_compareC): New.
14408         (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
14409         to be first.  Use aarch64_carry_operation.
14410         (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
14411         (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
14412         (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
14413         (subti3): Use subdi3_compare1.
14414         (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
14415         (sub<mode>3_compare1): New.
14416         (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
14417         (*sub<mode>3_carryin): Use aarch64_borrow_operation.
14418         (*subsi3_carryin_uxtw): Likewise.
14419         (*ngc<mode>, *ngcsi_uxtw): Likewise.
14420         (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
14421         * config/aarch64/iterators.md (DWI): New.
14422         * config/aarch64/predicates.md (aarch64_carry_operation): New.
14423         (aarch64_borrow_operation): New.
14424
14425 2016-01-28  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
14426
14427         * graphite-optimize-isl.c (optimize_isl): Print a different debug
14428         message when isl does not return a valid schedule.
14429
14430 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
14431
14432         * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
14433         Remove comments from class declarations: they are already in the code
14434         close by the defs.
14435
14436 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
14437
14438         * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
14439         codegen_error_p.
14440         (ternary_op_to_tree): Same.
14441         (unary_op_to_tree): Same.
14442         (nary_op_to_tree): Same.
14443         (gcc_expression_from_isl_expr_op): Same.
14444         (gcc_expression_from_isl_expression): Same.
14445         (graphite_create_new_loop): Same.
14446         (graphite_create_new_loop_guard): Same.
14447         (build_iv_mapping): Same.
14448         (graphite_create_new_guard): Same.
14449         (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
14450         (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
14451
14452 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
14453
14454         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
14455         instead of setting codegen_error to fail codegen.
14456
14457 2016-01-28  Jason Merrill  <jason@redhat.com>
14458
14459         * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
14460
14461 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
14462
14463         * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
14464         Remove CONST_INT_P check in CCMP cost calculation.
14465
14466 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
14467
14468         * config/aarch64/aarch64.c (generic_vector_cost):
14469         Set vec_permute_cost.
14470         (cortexa57_vector_cost): Likewise.
14471         (exynosm1_vector_cost): Likewise.
14472         (xgene1_vector_cost): Likewise.
14473         (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
14474         * config/aarch64/aarch64-protos.h (cpu_vector_cost):
14475         Add vec_permute_cost entry.
14476
14477 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
14478
14479         * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
14480         immediate as %1.
14481         (add<mode>3_compare0): Likewise.
14482         (addsi3_compare0_uxtw): Likewise.
14483         (add<mode>3nr_compare0): Likewise.
14484         (compare_neg<mode>): Likewise.
14485         (<optab><mode>3): Likewise.
14486
14487 2016-01-28  Ilya Enkovich  <enkovich.gnu@gmail.com>
14488
14489         * tree-vect-stmts.c (vectorizable_comparison): Add
14490         NULL check for vectype.
14491
14492 2016-01-28  Richard Biener  <rguenther@suse.de>
14493
14494         PR tree-optimization/69466
14495         * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
14496         Account for PHIs we couldn't duplicate.
14497
14498 2016-01-28  Martin Liska  <mliska@suse.cz>
14499
14500         PR pch/68758
14501         * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
14502         instead of ENABLE_VALGRIND_CHECKING.
14503
14504 2016-01-27  Richard Henderson  <rth@redhat.com>
14505
14506         PR rtl-opt/69447
14507         * lra-remat.c (subreg_regs): New.
14508         (dump_candidates_and_remat_bb_data): Dump it.
14509         (operand_to_remat): Reject if operand in subreg_regs.
14510         (set_bb_regs): Collect subreg_regs.
14511         (lra_remat): Init and free subreg_regs.  Compute
14512         calculate_local_reg_remat_bb_data before create_cands.
14513
14514 2016-01-27  H.J. Lu  <hongjiu.lu@intel.com>
14515
14516         PR target/68986
14517         * config/i386/i386.c (ix86_update_stack_boundary): Don't
14518         change stack_alignment_needed for __tls_get_addr call.
14519
14520 2016-01-27  Segher Boessenkool  <segher@kernel.crashing.org>
14521
14522         * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
14523
14524 2016-01-27  Jeff Law  <law@redhat.com>
14525
14526         PR tree-optimization/68398
14527         PR tree-optimization/69196
14528         * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
14529         (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
14530         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
14531         Only count PHIs in the last block in the path.  The others will
14532         const/copy propagate away.  Add heuristic to allow more irreducible
14533         subloops to be created when it is likely profitable to do so.
14534
14535         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
14536         Fix typo in comment.  Use gsi_after_labels and remove the GIMPLE_LABEL
14537         check from within the loop.  Use gsi_next_nondebug rather than gsi_next.
14538
14539 2016-01-27  Jakub Jelinek  <jakub@redhat.com>
14540
14541         PR lto/69254
14542         * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
14543         END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
14544         * asan.c (DEF_BUILTIN_STUB): Temporarily define.
14545         * tree-streamer-in.c: Include asan.h.
14546         (streamer_get_builtin_tree): For builtins in sanitizer
14547         range call initialize_sanitizer_builtins and retry.
14548
14549 2016-01-27  Ian Lance Taylor  <iant@google.com>
14550
14551         * common.opt (fkeep-gc-roots-live): New undocumented option.
14552         * tree-ssa-loop-ivopts.c (add_candidate_1): If
14553         -fkeep-gc-roots-live, skip pointers.
14554         (add_iv_candidate_for_biv): Handle add_candidate_1 returning
14555         NULL.
14556
14557 2016-01-27  Uros Bizjak  <ubizjak@gmail.com>
14558
14559         PR target/69512
14560         * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
14561         (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
14562
14563 2016-01-27  Thomas Klausner  <wiz@NetBSD.org>
14564
14565         PR target/68380
14566         * configure.ac: NetBSD provides SSP in its C library.
14567         * configure: Updated.
14568
14569 2016-01-27  Richard Biener  <rguenther@suse.de>
14570
14571         PR tree-optimization/69166
14572         * tree-vect-loop.c (vect_is_simple_reduction): Always check
14573         reduction code for commutativity / associativity.
14574
14575 2016-01-27  Martin Jambor  <mjambor@suse.cz>
14576
14577         PR tree-optimization/69355
14578         * tree-sra.c (analyze_access_subtree): Correct hole detection when
14579         total_scalarization fails.
14580
14581 2016-01-27  David Edelsohn  <dje.gcc@gmail.com>
14582
14583         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
14584         power9.
14585
14586 2016-01-27  Christian Bruel  <christian.bruel@st.com>
14587
14588         PR target/69245
14589         * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
14590         Move arm_reset_previous_fndecl and set_target_option_current_node in
14591         the conditional part.  Call save_restore_target_globals.
14592         * config/arm/arm.c (arm_set_current_function):
14593         Refactor to better support #pragma target and attribute mix.
14594         Call save_restore_target_globals.
14595         * config/arm/arm-protos.h (save_restore_target_globals): New function.
14596
14597 2016-01-27  Martin Liska  <mliska@suse.cz>
14598
14599         * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
14600         reference for an HSA kernel and its host function.
14601
14602 2016-01-27  Jakub Jelinek  <jakub@redhat.com>
14603
14604         PR tree-optimization/69399
14605         * wide-int.h (wi::lrshift): For larger precisions, only
14606         use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
14607
14608 2016-01-27  Claudiu Zissulescu  <claziss@synopsys.com>
14609
14610         * config/arc/predicates.md (proper_comparison_operator): Reject
14611         constant-constant comparison.
14612
14613 2016-01-26  Tom de Vries  <tom@codesourcery.com>
14614
14615         PR tree-optimization/69110
14616         * tree-data-ref.c (initialize_data_dependence_relation): Handle
14617         DR_NUM_DIMENSIONS == 0.
14618
14619 2016-01-26  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
14620             Sebastian Pop  <s.pop@samsung.com>
14621
14622         * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
14623         isl_ast_op_cond and isl_ast_op_select.
14624         (gcc_expression_from_isl_expr_op): Same.
14625
14626 2016-01-26  Jason Merrill  <jason@redhat.com>
14627
14628         PR c++/68782
14629         * tree.c (recompute_constructor_flags): Split out from
14630         build_constructor.
14631         (verify_constructor_flags): New.
14632         * tree.h: Declare them.
14633
14634 2016-01-26  Iain Buclaw  <ibuclaw@gdcproject.org>
14635
14636         PR rtl-optimization/69217
14637         * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
14638         are no TYPE_FIELDS set for the record type.
14639
14640 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
14641
14642         PR target/68662
14643         * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
14644         toc_label_name unconditionally.
14645         (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
14646         SYMBOL_REF string.  Use toc_label_name instead of constructing
14647         LCTOC1.
14648         (rs6000_elf_declare_function_name): Use toc_label_name instead of
14649         constructing LCTOC1.
14650
14651 2016-01-26  Martin Sebor  <msebor@redhat.com>
14652
14653         PR other/69477
14654         * doc/extend.texi (Common Type Attributes): Move text that talks about
14655         attribute packed from attribute aligned to the section discussing
14656         the former attribute for clarity.
14657
14658 2016-01-26  Richard Henderson  <rth@redhat.com>
14659
14660         PR middle-end/60908
14661         * trans-mem.c (tm_region_init): Mark entry block as visited.
14662
14663 2016-01-26  David Malcolm  <dmalcolm@redhat.com>
14664
14665         PR other/69006
14666         * diagnostic-show-locus.c (layout::print_source_line): Replace
14667         call to pp_newline with call to layout::print_newline.
14668         (layout::print_annotation_line): Likewise.
14669         (layout::move_to_column): Likewise.
14670         (layout::print_any_fixits): After printing any fixits, print a
14671         trailing newline, if necessary.
14672         (layout::print_newline): New method, resetting any colorization
14673         before a newline.
14674         (diagnostic_show_locus): Move the pp_newline to before the
14675         early bailout.  Remove dummy block enclosing the layout instance.
14676         * diagnostic.c (default_diagnostic_finalizer): Replace invocation
14677         of pp_newline_and_flush with pp_flush.
14678         (diagnostic_append_note): Delete use of pp_newline.
14679         (diagnostic_append_note_at_rich_loc): Delete.
14680         * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
14681         * pretty-print.h (output_buffer_append_r): Reset buff->line_length
14682         when newline characters are added to the buffer.
14683
14684 2016-01-26  Michael Matz  <matz@suse.de>
14685
14686         * configure.ac (ac_cv_std_swap_in_utility): New test.
14687         * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
14688         * configure: Regenerate.
14689         * config.in: Regenerate.
14690
14691 2016-01-26  Claudiu Zissulescu  <claziss@synopsys.com>
14692
14693         * config/arc/arc.md (cstoresi4): Force operand into register.
14694         (arcset<code>): Fix predicate.
14695         (arcsetltu): Likewise.
14696         (arcsetgeu): Likewise.
14697         (arcsethi): Likewise.
14698         (arcsetls): Likewise.
14699
14700 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
14701
14702         PR tree-optimization/69483
14703         * gimple-fold.c (canonicalize_constructor_val): Return NULL
14704         if base has error_mark_node type.
14705
14706 2016-01-26  Christophe Lyon  <christophe.lyon@linaro.org>
14707
14708         PR target/68620
14709         * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
14710         * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
14711         New helper macros.
14712         (vget_lane_f16): Handle big-endian.
14713         (vgetq_lane_f16): Likewise.
14714         (vset_lane_f16): Likewise.
14715         (vsetq_lane_f16): Likewise.
14716         * config/arm/iterators.md (VQXMOV): Add V8HF.
14717         (VDQ): Add V4HF and V8HF.
14718         (V_reg): Handle V4HF and V8HF.
14719         (Is_float_mode): Likewise.
14720         * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
14721         neon_vdup_nv8hf): New patterns.
14722         (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
14723         Use VD_LANE iterator.
14724         (neon_vld1_dup<mode>): Use VQ2 iterator.
14725
14726 2016-01-26  Nathan Sidwell  <nathan@acm.org>
14727
14728         * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
14729         (set_oacc_fn_attrib): Add IS_KERNEL arg.
14730         * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
14731         (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
14732         (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
14733         (oacc_validate_dims): Add LEVEL arg, don't return level.
14734         (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
14735         oacc_validate_dims.
14736         (execute_oacc_device_lower): Adjust, add more dump output.
14737         * tree-ssa-loop.c (gate_oacc_kernels): Use
14738         oacc_fn_attrib_kernels_p.
14739         * tree-parloops.c (create_parallel_loop): Adjust
14740         set_oacc_fn_attrib call.
14741
14742 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
14743
14744         PR lto/69254
14745         * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
14746         (append_compiler_options): Handle -fcilkplus.
14747         (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
14748
14749 2016-01-26  Nick Clifton  <nickc@redhat.com>
14750
14751         PR target/66655
14752         * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
14753         been marked as DECL_ONE_ONLY but we do not the means to make it
14754         so, then do not allow it to bind locally.
14755
14756 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
14757
14758         PR lto/69254
14759         * opts.h (parse_sanitizer_options): New prototype.
14760         * opts.c (sanitizer_opts): New array.
14761         (parse_sanitizer_options): New function.
14762         (common_handle_option): Use parse_sanitizer_options.
14763
14764 2016-01-26  H.J. Lu  <hongjiu.lu@intel.com>
14765
14766         PR target/68986
14767         * config/i386/i386.c (ix86_compute_frame_layout): Move stack
14768         alignment adjustment to ...
14769         (ix86_update_stack_boundary): Here.  Don't over-align stack for
14770         __tls_get_addr.
14771         (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
14772         if __tls_get_addr is called.
14773
14774 2016-01-26  Christian Bruel  <christian.bruel@st.com>
14775
14776         * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
14777
14778 2016-01-26  Eric Botcazou  <ebotcazou@adacore.com>
14779
14780         * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
14781
14782 2016-01-26  Richard Biener  <rguenther@suse.de>
14783
14784         PR middle-end/69467
14785         * match.pd: Guard X * CST CMP 0 pattern with single_use.
14786
14787 2016-01-26  Richard Biener  <rguenther@suse.de>
14788
14789         PR tree-optimization/69452
14790         * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
14791         (move_computations_dom_walker::before_dom_children): Rename
14792         to ...
14793         (move_computations_worker): This.
14794         (move_computations): Perform an RPO rather than a DOM walk.
14795
14796 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
14797
14798         PR target/69442
14799         * combine.c (combine_instructions): For REG_EQUAL note with
14800         SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
14801         to the underlying register.
14802         * doc/rtl.texi (REG_EQUAL): Document the behavior of
14803         REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
14804
14805 2016-01-26  Roger Ferrer Ibáñez  <rofirrim@gmail.com>
14806
14807         PR target/67896
14808         * config/aarch64/aarch64-builtins.c
14809         (aarch64_init_simd_builtin_types): Do not set structural
14810         equality to __Poly{8,16,64,128}_t types.
14811
14812 2016-01-26  Richard Sandiford  <richard.sandiford@arm.com>
14813
14814         PR tree-optimization/69400
14815         * wide-int.cc (wi_pack): Take the precision as argument and
14816         perform canonicalization here rather than in the callers.
14817         Use the main loop to handle all full-width HWIs.  Add a
14818         zero HWI if in_len isn't a full result.
14819         (wi::divmod_internal): Update accordingly.
14820         (wi::mul_internal): Likewise.  Simplify.
14821
14822 2016-01-25  Aditya Kumar  <aditya.k7@samsung.com>
14823             Sebastian Pop  <s.pop@samsung.com>
14824
14825         * graphite-poly.c (apply_poly_transforms): Simplify.
14826         (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
14827         (print_isl_map): Same.
14828         (print_isl_union_map): Same.
14829         (print_isl_schedule): New.
14830         (debug_isl_schedule): New.
14831         * graphite-dependences.c (scop_get_reads): Do not call
14832         isl_union_map_add_map that is undocumented isl functionality.
14833         (scop_get_must_writes): Same.
14834         (scop_get_may_writes): Same.
14835         (scop_get_original_schedule): Remove.
14836         (scop_get_dependences): Do not call isl_union_map_compute_flow that
14837         is deprecated in isl 0.15.  Instead, use isl_union_access_* interface.
14838         (compute_deps): Remove.
14839         * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
14840         (debug_schedule_ast): New.
14841         (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
14842         set_separate_option.
14843         (graphite_regenerate_ast_isl): Add dump.
14844         (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
14845         from scop->transformed_schedule.
14846         (graphite_regenerate_ast_isl): Add more dump.
14847         * graphite-optimize-isl.c (optimize_isl): Set
14848         scop->transformed_schedule.  Check whether schedules are equal.
14849         (apply_poly_transforms): Move here.
14850         * graphite-poly.c (apply_poly_transforms): ... from here.
14851         (free_poly_bb): Static.
14852         (free_scop): Static.
14853         (pbb_number_of_iterations_at_time): Remove.
14854         (print_isl_ast): New.
14855         (debug_isl_ast): New.
14856         (debug_scop_pbb): New.
14857         * graphite-scop-detection.c (print_edge): Move.
14858         (print_sese): Move.
14859         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
14860         (build_scop_scattering): Remove.
14861         (create_pw_aff_from_tree): Assert instead of bailing out.
14862         (add_condition_to_pbb): Remove unused code, do not fail.
14863         (add_conditions_to_domain): Same.
14864         (add_conditions_to_constraints): Remove.
14865         (build_scop_context): New.
14866         (add_iter_domain_dimension): New.
14867         (build_iteration_domains): Initialize pbb->iterators.
14868         Call add_conditions_to_domain.
14869         (nested_in): New.
14870         (loop_at): New.
14871         (index_outermost_in_loop): New.
14872         (index_pbb_in_loop): New.
14873         (outermost_pbb_in): New.
14874         (add_in_sequence): New.
14875         (add_outer_projection): New.
14876         (outer_projection_mupa): New.
14877         (add_loop_schedule): New.
14878         (build_schedule_pbb): New.
14879         (build_schedule_loop): New.
14880         (embed_in_surrounding_loops): New.
14881         (build_schedule_loop_nest): New.
14882         (build_original_schedule): New.
14883         (build_poly_scop): Call build_original_schedule.
14884         * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
14885         (free_poly_dr): Remove.
14886         (struct poly_bb): Add iterators.  Remove schedule, transformed, saved.
14887         (free_poly_bb): Remove.
14888         (debug_loop_vec): Remove.
14889         (print_isl_ast): Declare.
14890         (debug_isl_ast): Declare.
14891         (scop_do_interchange): Remove.
14892         (scop_do_strip_mine): Remove.
14893         (scop_do_block): Remove.
14894         (flatten_all_loops): Remove.
14895         (optimize_isl): Remove.
14896         (pbb_number_of_iterations_at_time): Remove.
14897         (debug_scop_pbb): Declare.
14898         (print_schedule_ast): Declare.
14899         (debug_schedule_ast): Declare.
14900         (struct scop): Remove schedule.  Add original_schedule,
14901         transformed_schedule.
14902         (free_gimple_poly_bb): Remove.
14903         (print_generated_program): Remove.
14904         (debug_generated_program): Remove.
14905         (unify_scattering_dimensions): Remove.
14906         * sese.c (print_edge): ... here.
14907         (print_sese): ... here.
14908         (debug_edge): ... here.
14909         (debug_sese): ... here.
14910         * sese.h (print_edge): Declare.
14911         (print_sese): Declare.
14912         (dump_edge): Declare.
14913         (dump_sese): Declare.
14914
14915 2016-01-25  Aditya Kumar  <aditya.k7@samsung.com>
14916             Sebastian Pop  <s.pop@samsung.com>
14917
14918         * Makefile.in: Set ISLVER in site.exp.
14919
14920 2016-01-25  Jakub Jelinek  <jakub@redhat.com>
14921
14922         * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
14923         DECL_VALUE_EXPR of new_var even for the non-array case.  Look
14924         through DECL_VALUE_EXPR for expansion.
14925
14926 2016-01-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
14927
14928         * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
14929         the frame info after reload completed.
14930
14931 2016-01-25  Jeff Law  <law@redhat.com>
14932
14933         PR tree-optimization/69196
14934         PR tree-optimization/68398
14935         * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
14936         tree-ssa-threadupdate.c.
14937         (determine_bb_domination_status): Prototype
14938         * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
14939         (determine_bb_domination_status): No longer static.
14940         (valid_jump_thread_path): Remove code to detect characteristics
14941         of the jump thread path not associated with correctness.
14942         * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
14943         Correct test for thread path length.  Count PHIs for real operands as
14944         statements that need to be copied.  Do not count ASSERT_EXPRs.
14945         Look at all the blocks in the thread path.  Compute and selectively
14946         filter thread paths based on threading through the latch, threading
14947         a multiway branch or crossing a multiway branch.
14948
14949 2016-01-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14950
14951         * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled):  Add
14952         decl with __attribute__ ((unused)) annotation.
14953
14954 2016-01-25  Ilya Enkovich  <enkovich.gnu@gmail.com>
14955
14956         PR target/69421
14957         * tree-vect-stmts.c (vectorizable_condition): Check vectype
14958         of operands is compatible with a statement vectype.
14959
14960 2016-01-25  Eric Botcazou  <ebotcazou@adacore.com>
14961
14962         * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
14963         improve wording for mixed storage order support.
14964
14965 2016-01-25  Bilyan Borisov  <bilyan.borisov@arm.com>
14966
14967         * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
14968         (vcvt_u64_f64): Likewise.
14969         (vcvta_s64_f64): Likewise.
14970         (vcvta_u64_f64): Likewise.
14971         (vcvtm_s64_f64): Likewise.
14972         (vcvtm_u64_f64): Likewise.
14973         (vcvtn_s64_f64): Likewise.
14974         (vcvtn_u64_f64): Likewise.
14975         (vcvtp_s64_f64): Likewise.
14976         (vcvtp_u64_f64): Likewise.
14977
14978 2016-01-25  Claudiu Zissulescu  <claziss@synopsys.com>
14979
14980         * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
14981         (arc_init): Check validity mll64 option.
14982         (arc_save_restore): Use double load/store instruction.
14983         (arc_expand_movmem): Likewise.
14984         (arc_split_move): Don't split if we have double load/store
14985         instructions. Returns a boolean.
14986         (arc_process_double_reg_moves): Change function to return boolean
14987         instead of a sequence of instructions.
14988         (arc_dwarf_register_span): New function.
14989         * config/arc/arc-protos.h (arc_split_move): Change prototype.
14990         * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
14991         * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
14992         (*movdf_insn): Likewise.
14993         * config/arc/arc.opt (mll64): New option.
14994         * config/arc/predicates.md (even_register_operand): New predicate.
14995         * doc/invoke.texi (ARC Options): Add mll64 documentation.
14996
14997 2016-01-25  Richard Biener  <rguenther@suse.de>
14998
14999         PR lto/69393
15000         * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
15001         * tree-streamer-out.c (pack_ts_base_value_fields): Stream
15002         DECL_NAMELESS.
15003         * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
15004
15005 2016-01-25  Richard Biener  <rguenther@suse.de>
15006
15007         PR tree-optimization/69376
15008         * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
15009         flag.
15010         (VN_INFO_ANTI_RANGE_P): New inline.
15011         (VN_INFO_RANGE_TYPE): Likewise.
15012         * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
15013         SSA_NAME_ANTI_RANGE_P.
15014         (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
15015         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
15016         Properly query VN_INFO_RANGE_TYPE.
15017
15018 2016-01-25  Nick Clifton  <nickc@redhat.com>
15019
15020         PR target/66655
15021         * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
15022
15023 2016-01-23  Tom de Vries  <tom@codesourcery.com>
15024
15025         PR tree-optimization/69426
15026         * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
15027         removed clobber.
15028
15029 2016-01-23  Jakub Jelinek  <jakub@redhat.com>
15030
15031         * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
15032         "the the" with "the" in the comments.
15033         * ipa-devirt.c (build_type_inheritance_graph,
15034         update_type_inheritance_graph): Likewise.
15035         * tree.c (build_function_type_list_1): Likewise.
15036         * cfgloopmanip.c (scale_loop_profile): Likewise.
15037         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
15038         * gimple-ssa-split-paths.c
15039         (find_block_to_duplicate_for_splitting_paths): Likewise.
15040         * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
15041         * expr.c (convert_move): Likewise.
15042         * var-tracking.c (vt_stack_adjustments): Likewise.
15043         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
15044         * tree-vrp.c (test_for_singularity): Likewise.
15045
15046         * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
15047         directly instead of building a temporary tree.
15048
15049         PR bootstrap/69434
15050         * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
15051         remove <algorithm> include.
15052
15053 2016-01-22  Jakub Jelinek  <jakub@redhat.com>
15054
15055         PR target/69432
15056         * config/i386/i386.c: Include dojump.h.
15057         (expand_small_movmem_or_setmem,
15058         expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
15059         fixes.
15060         (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
15061         if dynamic_check != -1.
15062
15063 2016-01-21  Jeff Law  <law@redhat.com>
15064
15065         PR middle-end/69347
15066         * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
15067         record_temporary_equivalences.  Rewritten to avoid unnecessary calls
15068         into dominated_by_p.
15069         (cprop_into_successor_phis): Avoid unnecessary tests.
15070
15071 2016-01-22  Richard Henderson  <rth@redhat.com>
15072
15073         PR target/69416
15074         * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
15075         (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
15076
15077 2016-01-22  Michael Matz  <matz@suse.de>
15078
15079         * system.h (string, algorithm): Include only conditionally.
15080         (new): Include always under C++.
15081         * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
15082         * final.c (toplevel): Ditto.
15083         * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
15084         * genconditions.c (write_header): Make gencondmd.c define
15085         INCLUDE_STRING.
15086         * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
15087
15088         * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
15089         * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
15090
15091 2016-01-22  Christian Bruel  <christian.bruel@st.com>
15092
15093         PR target/68674
15094         * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
15095
15096 2016-01-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15097
15098         PR target/69403
15099         * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
15100         define_insn_and_split.  Ensure operands[1] and operands[0] do not
15101         get assigned the same register.
15102
15103 2016-01-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
15104
15105         * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
15106
15107 2016-01-22  Christian Bruel  <christian.bruel@st.com>
15108
15109         * config/arm/arm-c.c (arm_pragma_target_parse):
15110         Remove warn_builtin_macro_redefined overwrite.
15111
15112 2016-01-22  Eric Botcazou  <ebotcazou@adacore.com>
15113
15114         * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
15115         flag_non_call_exceptions compatibility.
15116
15117 2016-01-22  Jakub Jelinek  <jakub@redhat.com>
15118
15119         PR debug/66668
15120         * dwarf2out.c (add_child_die_after): New function.
15121         (dwarf_qual_info_t): New type.
15122         (dwarf_qual_info): New variable.
15123         (qualified_die_p): New function.
15124         (modified_type_die): For -fdebug-types-section, ensure
15125         canonical order of qualifiers.  Put qualified DIEs adjacent
15126         to the corresponding non-qualified type DIE and search there
15127         for existing qualified DIEs.
15128
15129 2016-01-22  Eric Botcazou  <ebotcazou@adacore.com>
15130
15131         * doc/extend.texi (scalar_storage_order type attribute): Document
15132         restriction on type punning and aliasing, and remove future tense.
15133
15134 2016-01-21  Roman Zhuykov  <zhroma@ispras.ru>
15135
15136         PR target/69252
15137         * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
15138         first stage.
15139
15140 2016-01-21  Jeff Law  <law@redhat.com>
15141
15142         PR middle-end/69347
15143         * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
15144         useless call to record_temporary_equivalences.
15145         * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
15146         allocate 10 slots in the bb_path vector and let it grow as needed.
15147         (fsm_find_control_statement_thread_paths): Similarly for the next_path
15148         vector.
15149
15150 2016-01-21  David Edelsohn  <dje.gcc@gmail.com>
15151
15152         * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
15153         Detangle.
15154         * configure: Regenerate.
15155
15156 2016-01-21  Pat Haugen  <pthaugen@us.ibm.com>
15157
15158         * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
15159         * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
15160
15161 2016-01-21  Bernd Schmidt  <bschmidt@redhat.com>
15162
15163         PR middle-end/66178
15164         * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
15165         drop EXPAND_INITIALIZER.
15166         * rtl.h (contains_symbolic_reference_p): Declare.
15167         * rtlanal.c (contains_symbolic_reference_p): New function.
15168         * simplify-rtx.c (simplify_binary_operation_1): Don't turn
15169         a subtraction into a NOT if symbolic constants are involved.
15170
15171 2016-01-21  Anton Blanchard  <anton@samba.org>
15172             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15173
15174         PR target/63354
15175         * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
15176         #define.
15177         * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
15178         function.
15179
15180 2016-01-21  Ajit Agarwal  <ajitkum@xilinx.com>
15181
15182         * config/microblaze/microblaze.c
15183         (get_branch_target): New.
15184         (insert_wic_for_ilb_runout): New.
15185         (insert_wic): New.
15186         (microblaze_machine_dependent_reorg): New.
15187         (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
15188         * config/microblaze/microblaze.md
15189         (UNSPEC_IPREFETCH): Define.
15190         (iprefetch): New pattern
15191         * config/microblaze/microblaze.opt
15192         (mxl-prefetch): New flag.
15193
15194 2016-01-21  Ajit Agarwal  <ajitkum@xilinx.com>
15195
15196         * config/microblaze/microblaze.h
15197         (FIXED_REGISTERS): Update in macro.
15198         (CALL_USED_REGISTERS): Update in macro.
15199
15200 2016-01-21  Yuri Rumyantsev  <ysrumyan@gmail.com>
15201
15202         PR rtl-optimization/68920
15203         * ifcvt.c (cond_move_process_if_block): Limit number of conditional
15204         moves.
15205
15206 2016-01-21  Vladimir Makarov  <vmakarov@redhat.com>
15207
15208         PR rtl-optimization/68990
15209         * lra-coalesce.c (lra_coalesce): Invalidate value for the result
15210         pseudo instead of inheritance ones.
15211
15212 2016-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
15213             Nick Clifton  <nickc@redhat.com>
15214
15215         PR target/69129
15216         PR target/69012
15217         * config/mips/mips.c (mips_compute_frame_info): Initialise
15218         args_size and hard_frame_pointer_offset fields of the frame
15219         structure before calling mips_global_pointer.
15220
15221 2016-01-21  David Edelsohn  <dje.gcc@gmail.com>
15222
15223         * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
15224         label reference.
15225         * configure: Regenerate.
15226
15227 2016-01-21  Richard Biener  <rguenther@suse.de>
15228
15229         * graphite-optimize-isl.c (get_schedule_map): Fix typo.
15230
15231 2016-01-21  Marcin Kościelnicki  <koriakin@0x04.net>
15232
15233         * config/s390/s390.c (s390_asm_declare_function_size): Add code
15234         to actually emit the .size directive.
15235
15236 2016-01-21   Stefan Sørensen  <stefan.sorensen@spectralink.com>
15237              Jakub Jelinek  <jakub@redhat.com>
15238
15239         PR target/69187
15240         PR target/65624
15241         * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
15242         args array size by one to avoid buffer overflow.
15243
15244 2016-01-21  Marcin Kościelnicki  <koriakin@0x04.net>
15245
15246         * config/s390/s390.md (pool_section_start): Use switch_to_section
15247         to select proper read-only data section instead of hardcoding
15248         .rodata.
15249         (pool_section_end): Use switch_to_section to match the above.
15250
15251 2016-01-21  Richard Biener  <rguenther@suse.de>
15252
15253         PR tree-optimization/69378
15254         * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
15255         (set_ssa_val_to): Use it for dominance checks taking into
15256         account not executable edges.
15257
15258 2016-01-21  Jakub Jelinek  <jakub@redhat.com>
15259
15260         PR c++/69355
15261         * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
15262         for bitsize instead of GET_MODE_PRECISION (mode).
15263
15264 2016-01-20  Martin Sebor  <msebor@redhat.com>
15265
15266         PR c/52291
15267         * extend.texi (__sync Builtins): Clarify the semantics of
15268         __sync_fetch_and_OP built-ins on pointers.
15269         (__atomic Builtins): Same.
15270
15271 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
15272             Sebastian Pop  <s.pop@samsung.com>
15273
15274         * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
15275         (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
15276         (is_valid_rename): Same.
15277         (translate_isl_ast_to_gimple::get_rename): Same.
15278         (translate_isl_ast_to_gimple::rename_all_uses): Same.
15279         (translate_isl_ast_to_gimple::rename_uses): Same.
15280         (get_new_name): Check for close_phi nodes.
15281         (copy_loop_phi_args): Use phi_node_kind.
15282         (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
15283         (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
15284
15285 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
15286             Sebastian Pop  <s.pop@samsung.com>
15287
15288         Revert commit r229783.
15289         * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
15290         Remove use of parameter_rename_map.
15291         (copy_def): Remove.
15292         (copy_internal_parameters): Remove.
15293         (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
15294         * sese.c (new_sese_info): Do not initialize parameter_rename_map.
15295         (free_sese_info): Do not free parameter_rename_map.
15296         (set_rename): Do not use parameter_rename_map.
15297         (rename_uses): Update call to set_rename.
15298         (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
15299         * sese.h (parameter_rename_map_t): Remove.
15300         (struct sese_info_t): Remove field parameter_rename_map.
15301
15302 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
15303             Sebastian Pop  <s.pop@samsung.com>
15304
15305         * graphite-isl-ast-to-gimple.c: Fix comment.
15306         * graphite-scop-detection.c (defined_in_loop_p): New.
15307         (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
15308         names defined in loop.
15309
15310 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
15311             Sebastian Pop  <s.pop@samsung.com>
15312
15313         * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
15314         Discard unstructured if-then-else regions.
15315
15316 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
15317             Sebastian Pop  <s.pop@samsung.com>
15318
15319         * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
15320         (cleanup_loop_iter_dom): Remove.
15321         (build_loop_iteration_domains): Remove.
15322         (build_scop_context): Remove.
15323         (build_scop_iteration_domain): Remove.
15324         (add_loop_constraints): New.
15325         (build_iteration_domains): New.
15326         (build_poly_scop): Call build_iteration_domains.
15327
15328 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
15329             Sebastian Pop  <s.pop@samsung.com>
15330
15331         * graphite-scop-detection.c
15332         (scop_detection::harmful_loop_in_region): Free dom and loops.
15333         (scop_detection::loop_body_is_valid_scop): Free bbs.
15334
15335 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
15336             Sebastian Pop  <s.pop@samsung.com>
15337
15338         * graphite-scop-detection.c (record_loop_in_sese): New.
15339         (gather_bbs::before_dom_children): Call record_loop_in_sese.
15340         (build_scops): Remove call to build_sese_loop_nests.
15341         * sese.c (sese_record_loop): Remove.
15342         (build_sese_loop_nests): Remove.
15343         (new_sese_info): Remove region->loops.
15344         (free_sese_info): Same.
15345         * sese.h (sese_contains_loop): Same.
15346         (build_sese_loop_nests): Remove.
15347         (sese_contains_loop): Remove.
15348
15349 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
15350             Sebastian Pop  <s.pop@samsung.com>
15351
15352         * graphite-scop-detection.c (loop_is_valid_scop): Renamed
15353         loop_is_valid_in_scop.
15354         (scop_detection::harmful_stmt_in_region): Renamed
15355         harmful_loop_in_region.
15356         Call loop_is_valid_in_scop.
15357
15358 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
15359             Sebastian Pop  <s.pop@samsung.com>
15360
15361         * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
15362         isl_ast_node_mark.
15363
15364 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
15365             Sebastian Pop  <s.pop@samsung.com>
15366
15367         * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
15368         * graphite.h (struct poly_bb): Remove field is_reduction.
15369         (PBB_IS_REDUCTION): Remove.
15370
15371 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
15372             Sebastian Pop  <s.pop@samsung.com>
15373
15374         * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
15375         (add_pdr_constraints): Same.
15376         (scop_get_reads): Same.
15377         (scop_get_must_writes): Same.
15378         (scop_get_may_writes): Same.
15379         (scop_get_original_schedule): Same.
15380         (extend_schedule): Same.
15381         (apply_schedule_on_deps): Same.
15382         (carries_deps): Same.
15383         (compute_deps): Same.
15384         (scop_get_dependences): Same.
15385         * graphite-isl-ast-to-gimple.c
15386         (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
15387         * graphite-optimize-isl.c (get_schedule_for_band): Same.
15388         (get_schedule_for_band_list): Same.
15389         (get_schedule_map): Same.
15390         (apply_schedule_map_to_scop): Same.
15391         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
15392         (build_loop_iteration_domains): Same.
15393         (add_condition_to_pbb): Same.
15394         (add_param_constraints): Same.
15395         (pdr_add_memory_accesses): Same.
15396         (pdr_add_data_dimensions): Same.
15397
15398 2016-01-20  Sandra Loosemore  <sandra@codesourcery.com>
15399
15400         * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
15401         requirements.
15402
15403 2016-01-20  Sandra Loosemore  <sandra@codesourcery.com>
15404
15405         * common.opt (feliminate-dwarf2-dups): Replace references to
15406         "DWARF 2" with just "DWARF".
15407         * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
15408         * doc/extend.texi: Likewise.
15409         * doc/cpp.texi: Likewise.
15410         * doc/invoke.texi: Likewise.
15411         (Option Summary): Add -gdwarf to list of Debugging Options.
15412         (Debugging Options): Document -gdwarf.
15413         * doc/contrib.texi: Spell "DWARF" like that.
15414
15415 2016-01-21  Jakub Jelinek  <jakub@redhat.com>
15416
15417         * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
15418         warning.  Fix up formatting.
15419
15420         PR middle-end/67653
15421         * gimplify.c (gimplify_asm_expr): Warn if it is too late to
15422         attempt to mark memory input operand addressable and
15423         call prepare_gimple_addressable in that case.  Don't adjust
15424         input_location for diagnostics, use error_at instead.
15425
15426 2016-01-20  Peter Bergner  <bergner@vnet.ibm.com>
15427
15428         * config/rs6000/ppc-auxv.h: New file.
15429         * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
15430         (cpu_is): Likewise.
15431         (cpu_supports): Likewise.
15432         * config/rs6000/rs6000.c: include "ppc-auxv.h".
15433         (cpu_is_info): New variable.
15434         (cpu_supports_info): Likewise.
15435         (tcb_verification_symbol): Likewise.
15436         (cpu_builtin_p): Likewise.
15437         (cpu_expand_builtin): New function.
15438         (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
15439         (rs6000_init_builtins): Likewise.
15440         (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
15441         * config/rs6000/rs6000.h (TLS_REGNUM): New define.
15442         * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
15443         * configure: Regenerate.
15444         * config.in: Likewise.
15445         * doc/extend.texi (PowerPC Built-in Functions): Document
15446         __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
15447
15448 2016-01-20  David Edelsohn  <dje.gcc@gmail.com>
15449
15450         PR target/68609
15451         * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
15452         domain check.
15453         * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
15454         for V4SFmode.
15455
15456 2016-01-20  Richard Henderson  <rth@redhat.com>
15457
15458         PR bootstrap/69343
15459         PR bootstrap/69339
15460         PR tree-opt/68964
15461         Revert:
15462         * tree.c (tm_define_builtin): New.
15463         (find_tm_vector_type): New.
15464         (build_tm_vector_builtins): New.
15465         (build_common_builtin_nodes): Call it.
15466
15467 2016-01-20  Christophe Lyon  <christophe.lyon@linaro.org>
15468
15469         * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
15470         (arm_fp_ok): Likewise.
15471         (arm_fp): Likewise.
15472         (arm_crypto): Likewise.
15473
15474 2016-01-20  Ilya Enkovich  <enkovich.gnu@gmail.com>
15475             Richard Biener  <rguenther@suse.de>
15476
15477         PR tree-optimization/69328
15478         * tree-vect-stmts.c (vect_is_simple_cond): Check compared
15479         vectors have same number of elements.
15480         (vectorizable_condition): Fix masked version recognition.
15481
15482 2016-01-20  Richard Biener  <rguenther@suse.de>
15483
15484         PR tree-optimization/69345
15485         * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
15486         (VN_INFO_PTR_INFO): Likewise.
15487         * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
15488         info when it is equal between non-dominating SSA names.
15489         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
15490         Make sure to look at original SSA infos.
15491
15492 2016-01-20  Jeff Law  <law@redhat.com>
15493
15494         PR target/25114
15495         * config/m68k/predicates.md (pow2_m1_operand): New predicate
15496         extracted from ...
15497         (reg_or_pow2_m1_operand): Call pow2_m1_operand.
15498         (pc_or_label_operand): New predicate.
15499         * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
15500         tests for small integers that are 2^n - 1.
15501
15502 2016-01-20  Jonathan Wakely  <jwakely@redhat.com>
15503
15504         * doc/invoke.texi (Options Summary): Add '.' after @xref.
15505
15506 2016-01-19  Jeff Law  <law@redhat.com>
15507
15508         PR middle-end/69347
15509         * tree-ssa-threadbackwards.c
15510         (fsm_find_control_statement_thread_paths): Do not try to lookup
15511         FSM paths for SSA_NAMEs appearing in abnormal PHIs.
15512
15513 2016-01-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
15514
15515         * doc/lto.texi: Remove text that says only Gold has linker plugin
15516         support.
15517
15518 2016-01-19  Eric Botcazou  <ebotcazou@adacore.com>
15519
15520         * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
15521         (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
15522         the DIE accordingly.
15523         (modified_type_die): Add REVERSE parameter and pass it recursively,
15524         as well as to base_type_die.  Adjust presence check accordingly.
15525         (base_type_for_mode): Adjust call to modified_type_die.
15526         (add_type_attribute): Add REVERSE parameter and pass it to
15527         modified_type_die.
15528         (generic_parameter_die): Adjust call to add_type_attribute.
15529         (add_scalar_info): Likewise.
15530         (add_subscript_info): Likewise.
15531         (gen_array_type_die): Likewise.
15532         (gen_descr_array_type_die): Likewise.
15533         (gen_entry_point_die): Likewise.
15534         (gen_enumeration_type_die): Likewise.
15535         (gen_formal_parameter_die): Likewise.
15536         (gen_subprogram_die): Likewise.
15537         (gen_variable_die ): Likewise.
15538         (gen_const_die): Likewise.
15539         (gen_field_die): Likewise.
15540         (gen_pointer_type_die): Likewise.
15541         (gen_reference_type_die): Likewise.
15542         (gen_ptr_to_mbr_type_die): Likewise.
15543         (gen_inheritance_die): Likewise.
15544         (gen_subroutine_type_die): Likewise.
15545         (gen_typedef_die): Likewise.
15546         (force_type_die): Adjust call to modified_type_die.
15547
15548 2016-01-19  Sandra Loosemore  <sandra@codesourcery.com>
15549
15550         * doc/standards.texi: Copy-editing for grammar, markup, and sentence
15551         flow throughout the file.  Fix broken link to Objective-C 2.0
15552         documentation.
15553         * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
15554         errors.
15555
15556 2016-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
15557
15558         * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
15559
15560 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
15561
15562         PR ipa/66223
15563         * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
15564         (maybe_record_node): Record cxa_pure_virtual as the only possible
15565         target if there are not ohter candidates.
15566         (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
15567
15568 2016-01-19  Richard Biener  <rguenther@suse.de>
15569
15570         * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
15571         (get_memory_order): Likewise.
15572
15573 2016-01-19  Kirill Yukhin  <kirill.yukhin@intel.com>
15574
15575         * tree-vect-stmts.c (vectorizable_store): Check
15576         rhs vectype.
15577
15578 2016-01-19  David Malcolm  <dmalcolm@redhat.com>
15579
15580         PR jit/68446
15581         * gcc.c (driver::decode_argv): Add call to
15582         init_opts_obstack before init_options_struct.
15583         * opts.c (init_opts_obstack): Remove idempotency.
15584         (init_options_struct): Replace call to init_opts_obstack
15585         with a gcc_assert to verify that it has already been called.
15586         * toplev.c (toplev::main): Add call to init_opts_obstack before
15587         calls to init_options_struct.
15588         (toplev::finalize): Move cleanup of opts_obstack next to
15589         cleanup of save_decoded_options, clearing the latter, and
15590         save_decoded_options_count.
15591
15592 2016-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15593
15594         PR target/69135
15595         * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
15596         attribute to unconditional.  Remove %? from output template.
15597
15598 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
15599             Jiong Wang  <jiong.wang@arm.com>
15600
15601         * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
15602         generated from different expand order.
15603
15604 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
15605
15606         * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
15607         Add support for CCMP costing.
15608
15609 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
15610
15611         * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
15612         * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
15613         (fccmpe<mode>): Likewise.
15614         (fcmp): Rename to fcmp and globalize pattern.
15615         (fcmpe): Likewise.
15616         * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
15617         (aarch64_gen_ccmp_next): Add FP support.
15618
15619 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
15620
15621         * target.def (gen_ccmp_first): Update documentation.
15622         (gen_ccmp_next): Likewise.
15623         * doc/tm.texi (gen_ccmp_first): Update documentation.
15624         (gen_ccmp_next): Likewise.
15625         * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
15626         expand_ccmp_expr_1.  Improve comments.
15627         * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
15628         (ccmp_ior<mode>): Remove pattern.
15629         (cmp<mode>): Remove expand.
15630         (cmp): Globalize pattern.
15631         (cstorecc4): Use cc_register.
15632         (mov<mode>cc): Remove ccmp_cc_register check.
15633         * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
15634         Simplify after removal of CC_DNE/* modes.
15635         (aarch64_ccmp_mode_to_code): Remove.
15636         (aarch64_print_operand): Remove 'K' case.  Merge 'm' and 'M' cases.
15637         In 'k' case use integer as condition.
15638         (aarch64_nzcv_codes): Remove inverted cases.
15639         (aarch64_code_to_ccmode): Remove.
15640         (aarch64_gen_ccmp_first): Use cmp pattern directly.  Return the correct
15641         comparison with CC register to be used in folowing CCMP/branch/CSEL.
15642         (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
15643         pattern.  Return the comparison with CC register.  Invert conditions
15644         when bitcode is OR.
15645         * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
15646         * config/aarch64/predicates.md (ccmp_cc_register): Remove.
15647
15648 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
15649
15650         * cgraphunit.c (cgraph_node::reset): Clear thunk info and
15651         instrumented_version.
15652
15653 2016-01-19  Richard Biener  <rguenther@suse.de>
15654
15655         PR tree-optimization/69336
15656         * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
15657         handled components with get_ref_base_and_extent.
15658         (equal_mem_array_ref_p): Adjust.
15659
15660 2016-01-19  Jakub Jelinek  <jakub@redhat.com>
15661
15662         PR debug/65779
15663         * shrink-wrap.c: Include valtrack.h.
15664         (move_insn_for_shrink_wrap): Add DEBUG argument.  If
15665         MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
15666         in between insn and where it will be moved to.  Call
15667         dead_debug_insert_temp.
15668         (prepare_shrink_wrap): Adjust caller.  Call dead_debug_local_init
15669         first and dead_debug_local_finish at the end.
15670         For uses and defs bitmap, handle all regs in between REGNO and
15671         END_REGNO, not just the first one.
15672
15673 2016-01-19  Richard Biener  <rguenther@suse.de>
15674
15675         PR tree-optimization/69352
15676         * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
15677         (equal_mem_array_ref_p): Constrain size and max size properly.
15678         Compare the reverse flag.
15679
15680 2016-01-19  Bernd Schmidt  <bschmidt@redhat.com>
15681
15682         * ira.c (ira): Update regstat data if we deleted insns.
15683
15684 2016-01-19  Jakub Jelinek  <jakub@redhat.com>
15685
15686         PR rtl-optimization/68955
15687         PR rtl-optimization/64557
15688         * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
15689         here.  Fix up formatting.
15690         * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
15691
15692 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
15693
15694         PR lto/69133
15695         * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
15696         assume that the node has body.
15697         * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
15698         check.
15699
15700 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
15701
15702         * lto-streamer-out.c (lto_output): Do not stream instrumentation
15703         thunks.
15704
15705 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
15706
15707         * symtab.c (symtab_node::asm_name): Do not call printable name directly.
15708         (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
15709
15710 2016-01-19  Martin Jambor  <mjambor@suse.cz>
15711             Martin Liska  <mliska@suse.cz>
15712             Michael Matz  <matz@suse.de>
15713
15714         * Makefile.in (OBJS): Add new source files.
15715         (GTFILES): Add hsa.c.
15716         * common.opt (disable_hsa): New variable.
15717         (-Whsa): New warning.
15718         * config.in (ENABLE_HSA): New.
15719         * configure.ac: Treat hsa differently from other accelerators.
15720         (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
15721         $enable_offloading.
15722         (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
15723         * doc/install.texi (Configuration): Document --with-hsa-runtime,
15724         --with-hsa-runtime-include, --with-hsa-runtime-lib and
15725         --with-hsa-kmt-lib.
15726         * doc/invoke.texi (-Whsa): Document.
15727         (hsa-gen-debug-stores): Likewise.
15728         * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
15729         to invoke offload compiler for hsa acclerator.
15730         * opts.c (common_handle_option): Determine whether HSA offloading
15731         should be performed.
15732         * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
15733         * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
15734         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
15735         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
15736         * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
15737         * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
15738         GF_OMP_FOR_KIND_GRID_LOOP.
15739         (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
15740         (pp_gimple_stmt_1): Likewise.
15741         * gimple-walk.c (walk_gimple_stmt): Likewise.
15742         * gimple.c (gimple_build_omp_grid_body): New function.
15743         (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
15744         * gimple.def (GIMPLE_OMP_GRID_BODY): New.
15745         * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
15746         GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
15747         GF_OMP_TEAMS_GRID_PHONY.
15748         (gimple_statement_omp_single_layout): Updated comments.
15749         (gimple_build_omp_grid_body): New function.
15750         (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
15751         (gimple_omp_for_grid_phony): New function.
15752         (gimple_omp_for_set_grid_phony): Likewise.
15753         (gimple_omp_parallel_grid_phony): Likewise.
15754         (gimple_omp_parallel_set_grid_phony): Likewise.
15755         (gimple_omp_teams_grid_phony): Likewise.
15756         (gimple_omp_teams_set_grid_phony): Likewise.
15757         (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
15758         * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
15759         (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
15760         (BUILT_IN_GOMP_TARGET): Updated type.
15761         * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
15762         (adjust_for_condition): New function.
15763         (get_omp_for_step_from_incr): Likewise.
15764         (extract_omp_for_data): Moved parts to adjust_for_condition and
15765         get_omp_for_step_from_incr.
15766         (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
15767         (fixup_child_record_type): Bail out if receiver_decl is NULL.
15768         (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
15769         (scan_omp_parallel): Do not create child functions for phony
15770         constructs.
15771         (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
15772         (scan_omp_1_op): Checking assert we are not remapping to
15773         ERROR_MARK.  Also also handle GIMPLE_OMP_GRID_BODY.
15774         (parallel_needs_hsa_kernel_p): New function.
15775         (expand_parallel_call): Register apprpriate parallel child
15776         functions as HSA kernels.
15777         (grid_launch_attributes_trees): New type.
15778         (grid_attr_trees): New variable.
15779         (grid_create_kernel_launch_attr_types): New function.
15780         (grid_insert_store_range_dim): Likewise.
15781         (grid_get_kernel_launch_attributes): Likewise.
15782         (get_target_argument_identifier_1): Likewise.
15783         (get_target_argument_identifier): Likewise.
15784         (get_target_argument_value): Likewise.
15785         (push_target_argument_according_to_value): Likewise.
15786         (get_target_arguments): Likewise.
15787         (expand_omp_target): Call get_target_arguments instead of looking
15788         up for teams and thread limit.
15789         (grid_expand_omp_for_loop): New function.
15790         (grid_arg_decl_map): New type.
15791         (grid_remap_kernel_arg_accesses): New function.
15792         (grid_expand_target_kernel_body): New function.
15793         (expand_omp): Call it.
15794         (lower_omp_for): Do not emit phony constructs.
15795         (lower_omp_taskreg): Do not emit phony constructs but create for them
15796         a temporary variable receiver_decl.
15797         (lower_omp_taskreg): Do not emit phony constructs.
15798         (lower_omp_teams): Likewise.
15799         (lower_omp_grid_body): New function.
15800         (lower_omp_1): Call it.
15801         (grid_reg_assignment_to_local_var_p): New function.
15802         (grid_seq_only_contains_local_assignments): Likewise.
15803         (grid_find_single_omp_among_assignments_1): Likewise.
15804         (grid_find_single_omp_among_assignments): Likewise.
15805         (grid_find_ungridifiable_statement): Likewise.
15806         (grid_target_follows_gridifiable_pattern): Likewise.
15807         (grid_remap_prebody_decls): Likewise.
15808         (grid_copy_leading_local_assignments): Likewise.
15809         (grid_process_kernel_body_copy): Likewise.
15810         (grid_attempt_target_gridification): Likewise.
15811         (grid_gridify_all_targets_stmt): Likewise.
15812         (grid_gridify_all_targets): Likewise.
15813         (execute_lower_omp): Call grid_gridify_all_targets.
15814         (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
15815         * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
15816         (tree_omp_clause): Added union field dimension.
15817         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
15818         * tree.c (omp_clause_num_ops): Added number of arguments of
15819         OMP_CLAUSE__GRIDDIM_.
15820         (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
15821         (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
15822         * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
15823         (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
15824         (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
15825         (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
15826         * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
15827         * tree-pass.h (make_pass_gen_hsail): Declare.
15828         (make_pass_ipa_hsa): Likewise.
15829         * ipa-hsa.c: New file.
15830         * lto-section-in.c (lto_section_name): Add hsa section name.
15831         * lto-streamer.h (lto_section_type): Add hsa section.
15832         * timevar.def (TV_IPA_HSA): New.
15833         * hsa-brig-format.h: New file.
15834         * hsa-brig.c: New file.
15835         * hsa-dump.c: Likewise.
15836         * hsa-gen.c: Likewise.
15837         * hsa.c: Likewise.
15838         * hsa.h: Likewise.
15839         * toplev.c (compile_file): Call hsa_output_brig.
15840         * hsa-regalloc.c: New file.
15841
15842 2016-01-18  Jeff Law  <law@redhat.com>
15843
15844         PR tree-optimization/69320
15845         * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
15846         ranged object, do nothing if the RHS constant is not [0..1].
15847         (optimize_stmt): Comparing a boolean ranged object against a
15848         constant outside [0..1] results in a compile-time constant.
15849
15850         * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
15851         test.
15852
15853 2016-01-18  Sandra Loosemore  <sandra@codesourcery.com>
15854
15855         * doc/invoke.texi (Invoking GCC): Add new section to menu.
15856         (Option Summary): Update to reflect new section and moved options.
15857         (C++ Dialect Options): Move -fstats to new section.
15858         (Debugging Options): Move all dump, statistics, and other GCC
15859         developer options to new section.  Rewrite section introduction
15860         and re-order remaining options to put the more basic ones first.
15861         (Optimization Options): Move -fira-verbose and -flto-report* to
15862         new section.
15863         (Developer Options): New section incorporating moved options.
15864         * doc/cppopts.texi (-dM): Update cross-reference.
15865
15866 2016-01-18  Richard Henderson  <rth@redhat.com>
15867
15868         PR target/69176
15869         * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
15870         operands to pseudo only if CSE is expected.  Split long immediate
15871         operands only after reload, and for the stack pointer.
15872         (*add<GPI>3_pluslong): Remove.
15873         (*addsi3_aarch64, *adddi3_aarch64): Merge into...
15874         (*add<GPI>3_aarch64): ... here.  Add r/rk/Upl alternative.
15875         (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
15876         (*add<GPI>3 peepholes): New.
15877         (*add<GPI>3 splitters): New.
15878         * config/aarch64/constraints.md (Upl): New.
15879         * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
15880
15881 2016-01-18  Richard Biener  <rguenther@suse.de>
15882
15883         PR tree-optimization/69297
15884         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
15885         stmt at most once.
15886         (vect_bb_vectorization_profitable_p): Clear visited flag again.
15887
15888 2016-01-18  Yuri Rumyantsev  <ysrumyan@gmail.com>
15889
15890         PR middle-end/68542
15891         * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
15892         of mixind vector and scalar types.
15893         (fold_relational_const): Add handling of vector
15894         comparison with boolean result.
15895         * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
15896         comparison of vector operands with boolean result for EQ/NE only.
15897         (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
15898         (verify_gimple_cond): Likewise.
15899         * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
15900         valid type of VAL.
15901
15902 2016-01-18  Joseph Myers  <joseph@codesourcery.com>
15903
15904         * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
15905         !TARGET_OCTEON.
15906
15907 2016-01-18  Richard Biener  <rguenther@suse.de>
15908
15909         PR middle-end/69308
15910         * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
15911
15912 2016-01-18  Tom de Vries  <tom@codesourcery.com>
15913
15914         * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
15915
15916 2016-01-18  Tom de Vries  <tom@codesourcery.com>
15917
15918         * omp-low.c (set_oacc_fn_attrib): Make extern.
15919         * omp-low.h (set_oacc_fn_attrib): Declare.
15920         * tree-parloops.c (struct reduction_info): Add reduc_addr field.
15921         (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
15922         (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
15923         Add and handle function parameter oacc_kernels_p.
15924         (find_reduc_addr, get_omp_data_i_param): New function.
15925         (ref_conflicts_with_region, oacc_entry_exit_ok_1)
15926         (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
15927         (parallelize_loops): Add and handle function parameter oacc_kernels_p.
15928         Calculate dominance info.  Skip loops that are not in a kernels region
15929         in oacc_kernels_p mode.  Skip inner loops of parallelized loops.
15930         (pass_parallelize_loops::execute): Call parallelize_loops with
15931         oacc_kernels_p argument.
15932         (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
15933         New member function.
15934         (pass_parallelize_loops::bool oacc_kernels_p): New member var.
15935         * passes.def: Add argument to pass_parallelize_loops instantation.
15936
15937 2016-01-18  Tom de Vries  <tom@codesourcery.com>
15938
15939         * tree-parloops.c (pass_parallelize_loops::execute): Allow
15940         pass_parallelize_loops to be run outside the loop pipeline.
15941
15942 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
15943
15944         * tree-scalar-evolution.c (follow_copies_to_constant): New.
15945         (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
15946
15947 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
15948
15949         PR target/63679
15950         * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
15951         using get_ref_base_and_extent.
15952         (equal_mem_array_ref_p): New.
15953         (hashable_expr_equal_p): Add call to previous.
15954
15955 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
15956
15957         PR target/63679
15958         * tree-sra.c (disqualified_constants, constant_decl_p): New.
15959         (sra_initialize): Allocate disqualified_constants.
15960         (sra_deinitialize): Free disqualified_constants.
15961         (disqualify_candidate): Update disqualified_constants when appropriate.
15962         (create_access): Scan for constant-pool entries as we go along.
15963         (scalarizable_type_p): Add check against type_contains_placeholder_p.
15964         (maybe_add_sra_candidate): Allow constant-pool entries.
15965         (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
15966         (initialize_constant_pool_replacements): New.
15967         (sra_modify_assign): Avoid mangling assignments created by previous,
15968         and don't generate writes into constant pool.
15969         (sra_modify_function_body): Call initialize_constant_pool_replacements.
15970
15971 2016-01-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
15972
15973         * config/i386/i386.c (scalar_to_vector_candidate_p): Support
15974         andnot instruction.
15975         (scalar_chain::convert_op): Likewise.
15976         * config/i386/i386.md (*andndi3_doubleword): New.
15977
15978 2016-01-18  Richard Biener  <rguenther@suse.de>
15979
15980         PR tree-optimization/69170
15981         * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
15982         building a vector from scalar results of a pattern stmt.
15983
15984 2016-01-18  Jakub Jelinek  <jakub@redhat.com>
15985
15986         * haifa-sched.c (autopref_multipass_init): Work around
15987         -Wmaybe-uninitialized warning.
15988
15989 2016-01-18  Thomas Preud'homme  <thomas.preudhomme@arm.com>
15990
15991         * config/arm/arm.c (thumb1_reorg): Check that the comparison is
15992         against the constant 0.
15993
15994 2016-01-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15995
15996         PR tree-optimization/68799
15997         * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
15998         look up phi candidates in the statement-candidate map.
15999         (phi_add_costs): Likewise.
16000         (record_phi_increments): Likewise.
16001         (phi_incr_cost): Likewise.
16002         (ncd_with_phi): Likewise.
16003         (all_phi_incrs_profitable): Likewise.
16004
16005 2016-01-17  Jakub Jelinek  <jakub@redhat.com>
16006
16007         * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
16008         -Wmaybe-uninitialized warning.
16009
16010 2016-01-16  Sandra Loosemore  <sandra@codesourcery.com>
16011
16012         * doc/invoke.texi (Invoking GCC): Add new section to menu.
16013         (Option Summary): Update to reflect new section and moved options.
16014         (C++ Dialect Options): Move -fvtable-verify and related options.
16015         (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
16016         and profiling-related options.
16017         (Optimization Options): Move profile generation options and
16018         -fstack-protector and related options.
16019         (Instrumentation Options): New section incorporating moved options.
16020         (Code Generation Options): Move -finstrument-functions and
16021         related options, -fstack-check, -fstack-limit*, and -fbounds-check.
16022
16023 2016-01-16  Tom de Vries  <tom@codesourcery.com>
16024
16025         * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
16026
16027 2016-01-16  Tom de Vries  <tom@codesourcery.com>
16028
16029         * omp-low.c (expand_omp_atomic_fetch_op):  Release defs of update stmt.
16030
16031 2016-01-16  Richard Sandiford  <richard.sandiford@arm.com>
16032
16033         * hash-table.h (hash_table::empty): Turn into an inline wrapper
16034         that checks whether the table is already empty.  Rename the
16035         original implementation to...
16036         (hash_table::empty_slot): ...this new private function.
16037
16038 2016-01-15  David Malcolm  <dmalcolm@redhat.com>
16039
16040         PR diagnostic/68899
16041         * diagnostic-show-locus.c (layout::print_source_line): Move x
16042         offset of line until after call to
16043         get_line_width_without_trailing_whitespace.
16044
16045 2016-01-15  Jeff Law  <law@redhat.com>
16046
16047         PR tree-optimization/69270
16048         * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
16049         tree-ssa-dom.c.  Improve test for [0..1] ranve from VRP.
16050         * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
16051         * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
16052         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
16053         ssa_name_has_boolean_range and constant_boolean_node.
16054
16055 2016-01-15  Vladimir Makarov  <vmakarov@redhat.com>
16056
16057         PR rtl-optimization/69030
16058         * lra-spills.c (remove_pseudos): Check nrefs and make the function
16059         returning bool.
16060         (spill_pseudos): Delete debug insn for dead pseudo.
16061         (lra_spill): Initiate spill_hard_reg and slots memory separately.
16062
16063 2016-01-15  Jiong Wang  <jiong.wang@arm.com>
16064
16065         * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
16066         New.
16067         (TYPES_UNOPUS): Likewise.
16068         * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
16069         builtin type, from UNOP to UNOPUS.
16070         (lbtruncuv4sf): Likewise.
16071         (lbtruncuv2df): Likewise.
16072         (lrounduv2sf): Likewise.
16073         (lrounduv4sf): Likewise.
16074         (lrounduv2df): Likewise.
16075         (lroundusf): Likewise.
16076         (lroundusf): Likewise.
16077         (lceiluv2sf): Likewise.
16078         (lceiluv4sf): Likewise.
16079         (lceiluv2df): Likewise.
16080         (lceilusf): Likewise.
16081         (lceiludf): Likewise.
16082         (lflooruv2sf): Likewise.
16083         (lflooruv4sf): Likewise.
16084         (lflooruv2df): Likewise.
16085         (lfloorusf): Likewise.
16086         (lfloorudf): Likewise.
16087         (lfrintnuv2sf): Likewise.
16088         (lfrintnuv4sf): Likewise.
16089         (lfrintnuv2df): Likewise.
16090         (lfrintnusf): Likewise.
16091         (lfrintnudf): Likewise.
16092         * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
16093         conversion.
16094         (vcvtq_u32_f32): Likewise.
16095         (vcvtq_u64_f64): Likewise.
16096         (vcvta_u32_f32): Likewise.
16097         (vcvtaq_u32_f32): Likewise.
16098         (vcvtaq_u64_f64): Likewise.
16099         (vcvtm_u32_f32): Likewise.
16100         (vcvtmq_u32_f32): Likewise.
16101         (vcvtmq_u64_f64): Likewise.
16102         (vcvtn_u32_f32): Likwise.
16103         (vcvtnq_u32_f32): Likewise.
16104         (vcvtnq_u64_f64): Likewise.
16105         (vcvtp_u32_f32): Likewise.
16106         (vcvtpq_u32_f32): Likewise.
16107         (vcvtpq_u64_f64): Likewise.
16108         (vcvtmd_u64_f64): Likewise.
16109         (vcvtms_u32_f32): Likewise.
16110         (vcvtad_u64_f64): Likewise.
16111         (vcvtas_u32_f32): Likewise.
16112         (vcvtnd_u64_f64): Likewise.
16113         (vcvtns_u32_f32): Likewise.
16114         (vcvtpd_u64_f64): Likewise.
16115         (vcvtps_u32_f32): Likewise.
16116
16117 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16118
16119         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
16120         CSEL of zero_extended registers.
16121
16122 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16123
16124         * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
16125         Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
16126
16127 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16128
16129         * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
16130         false when argument string is not found in the attributes table
16131         at all.
16132
16133 2016-01-15  David Edelsohn  <dje.gcc@gmail.com>
16134
16135         PR target/68609
16136         * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
16137         (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
16138         * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
16139         precision estimate.
16140
16141 2016-01-15  Richard Biener  <rguenther@suse.de>
16142
16143         PR tree-optimization/66856
16144         * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
16145         * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
16146         (vect_create_new_slp_node): Increment stmt reference count.
16147         (vect_get_and_check_slp_defs): Make sure stmts are nor already in
16148         an SLP tree before swapping operands.
16149         (vect_build_slp_tree): Likewise.
16150         (destroy_bb_vec_info): Free stmt info after SLP instances.
16151         * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
16152         * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
16153         (STMT_VINFO_NUM_SLP_USES): New macro.
16154
16155 2016-01-15  Richard Biener  <rguenther@suse.de>
16156
16157         PR debug/69137
16158         * dwarf2out.c (add_linkage_name_raw): New function split out from ...
16159         (add_linkage_name): ... here.
16160         (gen_typedef_die): Use add_linkage_name_raw instead of
16161         add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
16162         if necessary.
16163
16164 2016-01-15  Cesar Philippidis  <cesar@codesourcery.com>
16165
16166         * gimplify.c (oacc_default_clause): Decode reference and pointer
16167         types for both kernels and parallel regions.
16168
16169 2016-01-15  Richard Sandiford  <richard.sandiford@arm.com>
16170
16171         PR middle-end/69246
16172         * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
16173
16174 2016-01-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
16175
16176         * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
16177         (convert_scalars_to_vector): Likewise.
16178
16179 2016-01-15  Jonathan Wakely  <jwakely@redhat.com>
16180
16181         * doc/extend.texi (Type Traits): Fix grammar.
16182
16183 2016-01-15  Martin Jambor  <mjambor@suse.cz>
16184
16185         * tree-inline.c (remap_decl): Use existing dclarations if
16186         remapping a type and prevent_decl_creation_for_types.
16187         (replace_locals_stmt): Do an initial remapping of non-VLA typed
16188         decls first.  Do real remapping with
16189         prevent_decl_creation_for_types set.
16190         * tree-inline.h (copy_body_data): New field
16191         prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
16192         padding.
16193
16194 2016-01-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>
16195
16196         * config/s390/s390.opt (mmvcle): More verbose help text.
16197
16198 2016-01-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>
16199
16200         * config/s390/s390.opt: Add period to -mzvector option text.
16201
16202 2016-01-15  Richard Biener  <rguenther@suse.de>
16203
16204         PR tree-optimization/68961
16205         * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
16206         of invariants in stores again.
16207
16208 2016-01-15  Sebastian Huber  <sebastian.huber@embedded-brains.de>
16209
16210         * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
16211
16212 2016-01-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
16213
16214         * config/i386/i386.c (ix86_expand_branch): Don't split
16215         DI mode xor instruction to SI mode.
16216
16217 2016-01-15  Jan Hubicka  <hubicka@ucw.cz>
16218
16219         PR ipa/68148
16220         * ipa-icf.c (sem_function::merge): Virtual functions may become
16221         reachable even if they address is not taken and there are no
16222         idrect calls.
16223
16224 2016-01-15  Jan Hubicka  <hubicka@ucw.cz>
16225
16226         * lto-streamer-out.c (subtract_estimated_size): New function.
16227         (get_symbol_initial_value): Use it.
16228
16229 2016-01-15  Christian Bruel  <christian.bruel@st.com>
16230
16231         PR target/65837
16232         * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
16233         (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
16234         (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
16235         use add_builtin_function_ext_scope instead of add_builtin_function.
16236         (neon_set_p, neon_crypto_set_p): Remove.
16237         (arm_init_builtins): Always call arm_init_neon_builtins and
16238         arm_init_crypto_builtins.
16239         (arm_expand_builtin): Check that builtins are allowed for the arch.
16240         * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
16241         * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
16242         arm_init_neon_builtins call.
16243
16244 2016-01-15  Richard Biener  <rguenther@suse.de>
16245
16246         PR tree-optimization/69117
16247         * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
16248         * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
16249         of the leader conservatively.
16250         (free_scc_vn): Restore original SSA name infos.
16251
16252 2016-01-14  Jeff Law  <law@redhat.com>
16253
16254         PR tree-optimization/69270
16255         * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
16256         single bit of precision, verify it's also unsigned.
16257         (record_edge_info): Use constant_boolean_node rather than fold_convert
16258         to convert boolean_true/boolean_false to the right type.
16259
16260 2016-01-14  Richard Henderson  <rth@redhat.com>
16261
16262         PR rtl-opt/69014
16263         * loop-doloop.c (record_reg_sets): New.
16264         (doloop_optimize): Reject the transform if the sequence
16265         clobbers registers live at the end of the loop block.
16266         (doloop_optimize_loops): Enable df_live if needed.
16267
16268 2016-01-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
16269
16270         * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
16271         * config/rs6000/rs6000.c: Likewise.
16272         * config/rs6000/rs6000.h: Likewise.
16273         * config/rs6000/rs6000.md: Likewise.
16274         * doc/extend.texi: Likewsie.
16275
16276 2016-01-14  Jeff Law  <law@redhat.com>
16277
16278         * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
16279         typo.
16280
16281 2016-01-14  Richard Henderson  <rth@redhat.com>
16282
16283         PR c/69272
16284         PR tree-opt/68964
16285         * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
16286         * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
16287         instead of builtin_decl_declared_p to test for declaration.
16288
16289 2016-01-14  Nicklas Bo Jensen  <nbjensen@gmail.com>
16290
16291         * doc/loop.texi (Loop Analysis and Representation): Document
16292         loop_depth function.
16293
16294 2016-01-14  Tom de Vries  <tom@codesourcery.com>
16295
16296         PR tree-optimization/68773
16297         * omp-low.c (expand_omp_target): Don't set force_output.
16298         * varpool.c (varpool_node::get_create): Same.
16299         * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
16300         offload_funcs with force_output.
16301
16302 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
16303
16304         PR debug/69244
16305         * lra-eliminations.c (move_plus_up): Don't change anything if either
16306         the outer or inner subreg mode is not MODE_INT.
16307         * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
16308         integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
16309
16310 2016-01-14  Alan Lawrence  <alan.lawrence@arm.com>
16311
16312         * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
16313         reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
16314         reduc_uplus_@var{m}): Remove.
16315         * expr.c (expand_expr_real_2): Remove expansion path for
16316         reduc_[us](min|max|plus) optabs.
16317         * optabs-tree.c (scalar_reduc_to_vector): Remove.
16318         * optabs-tree.h (scalar_reduc_to_vector): Remove.
16319         * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
16320         reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
16321         * tree-vect-loop.c (vectorizable_reduction): Remove test for
16322         reduc_[us](min|max|plus) optabs.
16323
16324 2016-01-14  Alan Lawrence  <alan.lawrence@arm.com>
16325
16326         * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
16327         (reduc_plus_scal_v2sf): New.
16328         (reduc_smax_v2sf): Rename to...
16329         (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
16330         (reduc_smin_v2sf): Rename to...
16331         (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
16332
16333 2016-01-14  Jan Hubicka  <hubicka@ucw.cz>
16334
16335         * alias.c (compare_base_symbol_refs): New function.
16336         (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
16337         it.
16338
16339 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
16340
16341         PR middle-end/68146
16342         PR tree-optimization/69155
16343         * tree-complex.c: Include cfganal.h.
16344         (phis_to_revisit): New variable.
16345         (extract_component): Add phiarg_p argument.  Assert that returned
16346         SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
16347         (update_phi_components): Partly rewrite to use loop over real/imag
16348         components instead of code duplication.  If extract_component returns
16349         SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
16350         create_tmp_reg into the PHI node instead, and mention the phi triplet
16351         in phis_to_revisit.
16352         (tree_lower_complex): Walk bbs in rpo order.  Adjust phis recorded
16353         in phis_to_revisit at the end.
16354
16355 2016-01-14  Richard Biener  <rguenther@suse.de>
16356
16357         PR tree-optimization/68060
16358         * tree-vect-loop.c (vect_is_simple_reduction): Check the
16359         outer loop reduction is only used in the inner loop before
16360         detecting a double reduction.
16361
16362 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
16363
16364         PR target/68269
16365         * combine.c (expand_field_assignment): Punt if compute_mode is
16366         unsupported scalar mode.
16367
16368 2016-01-14  Richard Biener  <rguenther@suse.de>
16369
16370         PR tree-optimization/66856
16371         * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
16372         SLP node only if it built successfully.
16373         (vect_analyze_slp_instance): Adjust.
16374
16375 2016-01-14  Jeff Law  <law@redhat.com>
16376
16377         PR tree-optimization/69270
16378         * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
16379         (record_edge_info): Use it.  Convert boolean_{true,false}_node
16380         to the type of op0.
16381
16382 2016-01-13  Jan Hubicka  <hubicka@ucw.cz>
16383
16384         PR ipa/66487
16385         * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
16386         use block_ultimate_origin
16387         (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
16388
16389 2016-01-13  Sandra Loosemore  <sandra@codesourcery.com>
16390
16391         * doc/invoke.texi (Submodel Options): Rename section to
16392         "Machine-Dependent Options" to better reflect its content.
16393         Rewrite introductory text to remove archaic CPU names.
16394         Update references.
16395
16396 2016-01-13  Sandra Loosemore  <sandra@codesourcery.com>
16397
16398         * doc/invoke.texi (Code Gen Options): Move section up in file,
16399         before target-specific options.  Update menu and option summary
16400         to reflect the new section ordering.
16401
16402 2016-01-13  Jonathan Wakely  <jwakely@redhat.com>
16403
16404         * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
16405         (C++ Dialect Options): Add cross-reference to -std option.
16406         * doc/standards.texi (C++ Language): Document C++14 support.
16407
16408 2016-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
16409
16410         * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
16411         for pack/unpack functions for __ibm128.
16412         (PACK_IF): Likewise.
16413         (UNPACK_IF): Likewise.
16414
16415         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
16416         support for __ibm128 pack/unpack functions.
16417         (rs6000_invalid_builtin): Likewise.
16418         (rs6000_init_builtins): Likewise.
16419         (rs6000_opt_masks): Likewise.
16420
16421         * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
16422         (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
16423         functions
16424         (RS6000_BTM_COMMON): Likewise.
16425
16426         * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
16427         (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
16428         disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
16429         128-bit floating point.  Add support for the double values to be
16430         in Altivec registers for TF/IF packing and unpacking, but restrict
16431         TD packing sub-fields to be FPR registers.  Don't allow overlapped
16432         register support for packing.  Allow pack inputs to be memory
16433         locations.  Don't build generator functions for unpack<mode>_dm
16434         and unpack<mode>_nodm.
16435         (unpack<mode>_dm): Likewise.
16436         (unpack<mode>_nodm): Likewise.
16437         (pack<mode>): Likewise.
16438
16439         * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
16440         built-in functions to pack/unpack explicit __ibm128 values.
16441         (__builtin_unpack_ibm128): Likewise.
16442
16443         * doc/extend.texi (PowerPC Built-in Functions): Document
16444         __builtin_pack_ibm128 and __builtin_unpack_ibm128.
16445
16446 2016-01-13  Bernd Schmidt  <bschmidt@redhat.com>
16447
16448         PR c/66208
16449         * c-common.c (check_function_nonnull): Remove unnecessary declaration.
16450         Add new arg loc and pass it down as context.
16451         (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
16452         to the location to use for the warning.
16453         (check_function_arguments): New arg loc.  All callers changed.  Pass
16454         it to check_function_nonnull.
16455         * c-common.h (check_function_arguments): Adjust declaration.
16456
16457 2016-01-13  Jakub Jelinek  <jakub@redhat.com>
16458
16459         PR tree-optimization/69156
16460         * gimple.c (validate_type): Removed.
16461         (gimple_builtin_call_types_compatible_p): Use
16462         useless_type_conversion_p instead of validate_type.
16463         * value-prof.c (gimple_stringop_fixed_value): Fold
16464         icall_size to correct type.
16465
16466 2016-01-13  Jonathan Wakely  <jwakely@redhat.com>
16467
16468         * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
16469         effects.
16470
16471 2016-01-13  Richard Henderson  <rth@redhat.com>
16472
16473         PR tree-opt/68964
16474         * target.def (builtin_tm_load, builtin_tm_store): Remove.
16475         * config/i386/i386.c (ix86_builtin_tm_load): Remove.
16476         (ix86_builtin_tm_store): Remove.
16477         (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
16478         (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
16479         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
16480         (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
16481         * doc/tm.texi: Rebuild.
16482
16483         * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
16484         (BUILT_IN_TM_MEMCPY_RTWN): New.
16485         * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
16486         fallback from vector to integer helpers.
16487         (build_tm_load): Handle vector types directly, instead of
16488         via target hook.
16489         (build_tm_store): Likewise.
16490         (expand_assign_tm): Prepare for register types not handled by
16491         the above.  Copy them to memory and use memcpy.
16492         * tree.c (tm_define_builtin): New.
16493         (find_tm_vector_type): New.
16494         (build_tm_vector_builtins): New.
16495         (build_common_builtin_nodes): Call it.
16496
16497 2016-01-13  Uros Bizjak  <ubizjak@gmail.com>
16498
16499         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
16500         TARGET_SSE_MATH without TARGET_SSE2.  Rewrite.
16501
16502 2016-01-13  Tom de Vries  <tom@codesourcery.com>
16503
16504         PR tree-optimization/69169
16505         * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
16506         handled_struct_type param.
16507         (create_variable_info_for, intra_create_variable_infos): Call
16508         create_variable_info_for_1 with extra arg.
16509
16510 2016-01-13  Yvan Roux  <yvan.roux@linaro.org>
16511
16512         * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
16513         and "armv8.1-a+crc" entries.
16514
16515 2016-01-13  Alexander Fomin  <alexander.fomin@intel.com>
16516
16517         PR target/69228
16518         * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
16519         Change first operand predicate from register_or_constm1_operand
16520         to register_operand.
16521         (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
16522         (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
16523         (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
16524         (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
16525         (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
16526         (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
16527         (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
16528         * config/i386/i386.c (ix86_expand_builtin): Remove first operand
16529         comparison with constm1_rtx from vec_prefetch_gen part.
16530
16531 2016-01-13  Richard Biener  <rguenther@suse.de>
16532
16533         PR tree-optimization/69013
16534         * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
16535         Exchange assert for a test.
16536
16537 2016-01-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16538
16539         PR target/69247
16540         * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
16541
16542 2016-01-13  Richard Biener  <rguenther@suse.de>
16543
16544         PR tree-optimization/69242
16545         * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
16546         assert with a check.
16547
16548 2016-01-13  Richard Biener  <rguenther@suse.de>
16549
16550         PR tree-optimization/69186
16551         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
16552         Properly guard vect_update_misalignment_for_peel call.
16553
16554 2016-01-12  Jeff Law  <law@redhat.com>
16555
16556         PR tree-optimization/pr67755
16557         * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
16558         "need_profile_correction".
16559         (thread_block_1): Initialize new field to false by default.  If we
16560         have multiple thread paths through a common joiner to different
16561         final targets, then set new field to true.
16562         (compute_path_counts): Only do count adjustment when it's really
16563         needed.
16564
16565 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
16566
16567         * doc/invoke.texi (Spec Files): Move section down in file, past
16568         all command-line option descriptions.
16569
16570 2016-01-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16571
16572         PR middle-end/54809
16573         * doc/gty.texi: Remove documentation of mark_hook.
16574         * gengtype.c (struct write_types_data): Remove code to support
16575         mark_hook attribute.
16576         (walk_type): Likewise.
16577         (write_func_for_structure): Likewise.
16578
16579 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
16580
16581         * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
16582         Directory Options, and -specs= to Overall Options.
16583         (Overall Options): Adjust similarly.  Reorder to group related
16584         options together.  Make -specs= cross-reference the spec file details.
16585         (Directory Options): Adjust similarly.
16586
16587 2016-01-12  Jeff Law  <law@redhat.com>
16588
16589         * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
16590
16591 2016-01-12  Olivier Hainque  <hainque@adacore.com>
16592
16593         * gcc.c (spec_undefvar_allowed): New global.
16594         (process_command): Set to true when running for --version or --help,
16595         alone or together.
16596         (getenv_spec_function): When the variable is not defined, use the
16597         variable name as the variable value if we're allowed not to issue
16598         a fatal error.
16599
16600 2016-01-12  Bin Cheng  <bin.cheng@arm.com>
16601
16602         PR tree-optimization/68911
16603         * tree-vrp.c (adjust_range_with_scev): Check overflow in range
16604         information computed for expression "init + nit * step".
16605
16606 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
16607
16608         * doc/invoke.texi (Invoking GCC): Copy-edit.  Incorporate information
16609         about name of GCC executable.  Remove deleted node from menu.
16610         (Directory Options) <-B>: Remove cross-reference to deleted node.
16611         (Target Options): Delete section.
16612
16613 2016-01-12  Christian Bruel  <christian.bruel@st.com>
16614
16615         PR target/69180
16616         * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
16617         for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
16618
16619 2016-01-12  Jakub Jelinek  <jakub@redhat.com>
16620
16621         PR target/69198
16622         * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
16623         aligned_mem is properly set for AVX512-VL floating point masked
16624         stores.
16625
16626         PR target/69175
16627         * ifcvt.c (cond_exec_process_if_block): When removing the last
16628         insn from then_bb, remove also any possible barriers that follow it.
16629
16630 2016-01-12  H.J. Lu  <hongjiu.lu@intel.com>
16631
16632         PR target/68456
16633         PR target/69226
16634         * config/i386/iamcu.h (SIZE_TYPE): New macro.
16635         (PTRDIFF_TYPE): Likewise.
16636         (WCHAR_TYPE): Likewise.
16637         (WCHAR_TYPE_SIZE): Likewise.
16638         (STDINT_LONG32): Likewise.
16639
16640 2016-01-12  Richard Biener  <rguenther@suse.de>
16641
16642         PR tree-optimization/69053
16643         * tree-vect-loop.c (get_initial_def_for_reduction): Properly
16644         convert initial value for cond reductions.
16645
16646 2016-01-12  Richard Biener  <rguenther@suse.de>
16647
16648         PR tree-optimization/69007
16649         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
16650         widen_sum after dot_prod and sad.
16651
16652 2016-01-12  Richard Biener  <rguenther@suse.de>
16653
16654         PR tree-optimization/69168
16655         * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
16656         pattern stmt SLP type.
16657         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
16658         end up unused so cope with that case.
16659
16660 2016-01-12  Richard Biener  <rguenther@suse.de>
16661
16662         PR tree-optimization/69157
16663         * tree-vect-stmts.c (vectorizable_mask_load_store): Check
16664         stmts def type only during analyze phase.
16665         (vectorizable_call): Likewise.
16666         (vectorizable_simd_clone_call): Likewise.
16667         (vectorizable_conversion): Likewise.
16668         (vectorizable_assignment): Likewise.
16669         (vectorizable_shift): Likewise.
16670         (vectorizable_operation): Likewise.
16671         (vectorizable_store): Likewise.
16672         (vectorizable_load): Likewise.
16673
16674 2016-01-12  Richard Biener  <rguenther@suse.de>
16675
16676         PR tree-optimization/69174
16677         * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
16678         space.
16679         (vectorizable_load): Properly compute the number of loads needed
16680         for permuted strided SLP loads and do not spuriously assign
16681         to SLP_TREE_VEC_STMTS.
16682
16683 2016-01-12  Andris Pavenis  <andris.pavenis@iki.fi>
16684
16685         * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
16686         (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
16687         (MD_EXEC_PREFIX): Remove.
16688         (MD_STARTFILE_PREFIX) Removee.
16689         (FILE_NAME_ABSOLUTE_P): Remove.
16690         (CPP_SPEC): Do not read macros from sys/version.h.
16691         (LINK_COMMAND_SPEC): Remove.
16692         (LOCAL_INCLUDE_DIR): Remove.
16693         (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
16694         (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
16695         (POST_LINK_SPEC): Define to invoke stubify after linker
16696         (LIBSTDCXX): Remove define
16697         (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
16698         (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
16699         (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
16700         (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
16701         (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
16702         (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
16703         (i386_djgpp_asm_named_section): Add propotype of new procedure
16704
16705         * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
16706         (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
16707         (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
16708         in config/i386/djgpp.h).
16709         (STANDARD_STARTFILE_PREFIX_2): Define identical to
16710         STANDARD_STARTFILE_PREFIX_1.
16711         (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
16712         (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
16713         installation errors.
16714         (MAX_OFILE_ALIGNMENT): Define to 128.
16715         (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
16716
16717         * config/i386/djgpp.c: New file. Add implementation of
16718         i386_djgpp_asm_named_section.
16719
16720         * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
16721
16722         * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
16723         Add rule for building djgpp.o.
16724
16725 2016-01-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16726
16727         * config/rs6000/rs6000.c (v2df_reduction_p): New function.
16728         (rtx_is_swappable_p): Reductions are swappable.
16729         (insn_is_swappable_p): V2DF reductions are swappable.
16730
16731 2016-01-11  John David Anglin  <danglin@gcc.gnu.org>
16732
16733         * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
16734         reloads for other unsupported memory operands.
16735
16736 2016-01-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
16737             Jim Wilson  <jim.wilson@linaro.org>
16738
16739         PR target/69194
16740         * config/arm/arm-builtins.c (arm_expand_neon_args): Call
16741         copy_to_mode_reg instead of force_reg.
16742
16743 2016-01-11  H.J. Lu  <hongjiu.lu@intel.com>
16744
16745         PR target/69225
16746         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
16747         TARGET_80387 is true.
16748
16749 2016-01-11  Jakub Jelinek  <jakub@redhat.com>
16750
16751         PR target/69071
16752         * lra-eliminations.c (move_plus_up): Only move plus up
16753         if subreg of the constant can be simplified into constant
16754         and use the simplified subreg of the constant instead of
16755         the original constant.
16756
16757         * fold-const.c (fold_convertible_p): Don't return true
16758         for conversion of VECTOR_TYPE to same sized integral type.
16759         (fold_convert_loc): Fix up formatting.  Fold conversion of
16760         VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
16761         instead of NOP_EXPR.
16762
16763         PR tree-optimization/69214
16764         * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
16765         innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
16766         Formatting fix.
16767
16768         PR tree-optimization/69207
16769         * tree-vect-slp.c (vect_get_constant_vectors): For
16770         VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
16771         fold_convertible_p to vector_type's element type, and always
16772         use VCE for non-VECTOR_BOOLEAN_TYPE_P.
16773
16774 2016-01-11  Richard Biener  <rguenther@suse.de>
16775
16776         PR tree-optimization/69173
16777         * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
16778         fixup the cycle if all stmts are in a pattern.
16779
16780 2016-01-11  Uros Bizjak  <ubizjak@gmail.com>
16781
16782         PR middle-end/68999
16783         * alias.c (base_alias_check): Move check for addresses with
16784         alignment ANDs before the call for compare_base_decls.
16785         (memrefs_conflict_p): Return -1 for different decls
16786         that went through alignment adjustments.
16787
16788 2016-01-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16789
16790         PR rtl-optimization/68796
16791         * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
16792         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
16793         and QImode comparisons against zero with CC_NZmode.
16794         * config/aarch64/iterators.md (short_mask): New mode_attr.
16795
16796 2016-01-11  H.J. Lu  <hongjiu.lu@intel.com>
16797
16798         * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
16799         (<avx512>_store<mode>_mask): Likewise.
16800
16801 2016-01-11  Bernd Schmidt  <bschmidt@redhat.com>
16802             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16803
16804         PR rtl-optimization/68841
16805         * ifcvt.c (struct noce_if_info): Add orig_x field.
16806         (bbs_ok_for_cmove_arith): Add to_rename parameter.
16807         Don't record conflicts on to_rename if it's present.
16808         Allow memory destinations in sets.
16809         (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
16810         blocks, passing orig_x to the checks.
16811         (noce_process_if_block): Set if_info->orig_x appropriately.
16812
16813 2016-01-11  Tom de Vries  <tom@codesourcery.com>
16814
16815         PR tree-optimization/69069
16816         * tree-parloops.c (create_parallel_loop): Add missing phi args.
16817
16818 2016-01-11  Yuri Rumyantsev  <ysrumyan@gmail.com>
16819
16820         PR rtl-optimization/68920
16821         * config/i386/i386.c (ix86_option_override_internal): Restrict number
16822         of conditional moves for  RTL if-conversion to 1 for
16823         TARGET_ONE_IF_CONV_INSN.
16824         * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
16825         * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
16826         * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
16827         parameter to restirct number of conditional moves for
16828         RTL if-conversion.
16829         * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
16830         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
16831         conditionl moves.
16832
16833 2016-01-11  Alexandre Oliva  <aoliva@redhat.com>
16834
16835         PR bootstrap/69123
16836         * var-tracking.c (drop_overlapping_mem_locs): Operate on all
16837         onepart vars.  Fix typo in comment.  Fix reversed condition in
16838         unshare test.
16839         (dataflow_set_remove_mem_locs): Operate on all onepart vars.
16840
16841         PR bootstrap/69123
16842         * var-tracking.c (dump_onepart_variable_differences): New.
16843         (dataflow_set_different): If a detailed dump is requested,
16844         delay early returns and dump differences between onepart
16845         variables present before and after, and added variables.
16846
16847 2016-01-11  Ilya Enkovich  <enkovich.gnu@gmail.com>
16848
16849         PR target/69010
16850         * expr.c (expand_expr_real_1): For boolean vector constants
16851         with a scalar mode use const_scalar_mask_from_tree.
16852         (const_scalar_mask_from_tree): New.
16853         * optabs.c (expand_vec_cond_mask_expr): Use mask mode
16854         assigned to a mask type to handle constants.
16855
16856 2016-01-11  Martin Jambor  <mjambor@suse.cz>
16857
16858         PR ipa/69044
16859         * ipa-cp.c (estimate_local_effects): Do not clone for removal of
16860         useless parameters if we cannot change function signature.
16861
16862 2016-01-11  Martin Jambor  <mjambor@suse.cz>
16863
16864         PR ipa/66616
16865         * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
16866         flag.
16867
16868 2016-01-11  Tom de Vries  <tom@codesourcery.com>
16869
16870         PR tree-optimization/69109
16871         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
16872         latch with phi.
16873
16874 2016-01-11  Tom de Vries  <tom@codesourcery.com>
16875
16876         PR tree-optimization/69108
16877         * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
16878         res is not used in a phi.
16879
16880 2016-01-11  Yury Gribov  <y.gribov@samsung.com>
16881
16882         PR 67425
16883         * common.opt (frandom-seed): Fix parameter name.
16884         * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
16885
16886 2016-01-11  Tom de Vries  <tom@codesourcery.com>
16887
16888         PR tree-optimization/69058
16889         * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
16890         not supported.
16891
16892 2016-01-11  Andrew Burgess  <andrew.burgess@embecosm.com>
16893
16894         * config/arc/arc.opt (mdiv-rem): Add period to the end.
16895         (mcode-density): Likewise.
16896
16897 2016-01-10  Tom de Vries  <tom@codesourcery.com>
16898
16899         PR tree-optimization/69062
16900         * tree-parloops.c (loop_has_phi_with_address_arg): New function.
16901         (parallelize_loops): Don't paralelize loop that has phi with address
16902         arg.
16903
16904 2016-01-10  Tom de Vries  <tom@codesourcery.com>
16905
16906         PR tree-optimization/69039
16907         * tree-parloops.c (try_create_reduction_list): Only allow single exit
16908         phi for reduction.
16909
16910 2016-01-09  John David Anglin  <danglin@gcc.gnu.org>
16911
16912         PR middle-end/68743
16913         * match.pd: Require target has function_c99_misc before doing
16914         truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
16915
16916 2016-01-09  Gerald Pfeifer  <gerald@pfeifer.com>
16917
16918         * configure.ac (isl_options_set_schedule_serialize_sccs): Also
16919         use GMPINC.
16920         * configure: Regenerate.
16921
16922 2016-01-09  Jakub Jelinek  <jakub@redhat.com>
16923
16924         PR middle-end/50865
16925         PR tree-optimization/69097
16926         * fold-const.h (expr_not_equal_to): New prototype.
16927         * fold-const.c: Include stringpool.h and tree-ssanames.h.
16928         (expr_not_equal_to): New function.
16929         * match.pd (X % -Y is the same as X % Y): Don't optimize
16930         unless X is known not to be equal to minimum or Y is known
16931         not to be equal to -1.
16932         * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
16933         fold TRUNC_MOD_EXPR if the second argument is not a power of two.
16934         (simplify_stmt_using_ranges): Adjust caller.
16935         (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
16936         substitute_and_fold.
16937
16938 2016-01-09  Jan Hubicka  <hubicka@ucw.cz>
16939
16940         * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
16941         w/o DECL_NAME.
16942
16943 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
16944
16945         PR tree-optimization/69167
16946         * gimple-fold.c (replace_stmt_with_simplification): Also punt if
16947         new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
16948         ops[0] comparison.
16949         * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
16950
16951 2016-01-08  Alan Lawrence  <alan.lawrence@arm.com>
16952             Richard Biener  <rguenther@suse.de>
16953
16954         PR tree-optimization/68707
16955         * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
16956         instances that can be handled via vect_load_lanes.
16957
16958 2016-01-08  Uros Bizjak  <ubizjak@gmail.com>
16959
16960         * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
16961         if we can't determine address equivalence.
16962         * alias.c (compare_base_decl): Update for changed return value of
16963         symtab_node::equal_address_to.
16964
16965 2016-01-08  Jason Merrill  <jason@redhat.com>
16966
16967         PR c++/68983
16968         PR c++/67557
16969         * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
16970         * expr.c (store_field): Not here.
16971         * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
16972         call with TREE_ADDRESSABLE type.
16973         * tree-cfg.c (verify_gimple_call): Adjust.
16974
16975 2016-01-08  Olivier Hainque  <hainque@adacore.com>
16976
16977         * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
16978         libc_internal.
16979
16980 2016-01-08  Alan Lawrence  <alan.lawrence@arm.com>
16981
16982         * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
16983         (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
16984         (reduc_smin_v2sf): Rename to...
16985         (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
16986         (reduc_splus_v2sf): Rename to...
16987         (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
16988
16989 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
16990
16991         PR tree-optimization/69162
16992         * gimplify.c (gimplify_va_arg_expr): Encode original type of
16993         valist argument in another argument.
16994         (gimplify_modify_expr): Adjust for the above change.  Cleanup.
16995         * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
16996         to determine the va_list type, build a MEM_REF instead of
16997         build_fold_indirect_ref.
16998
16999         PR tree-optimization/69172
17000         * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
17001         gimple_build.
17002
17003 2016-01-08  Thomas Preud'homme  <thomas.preudhomme@arm.com>
17004
17005         PR tree-optimization/67781
17006         * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
17007         and cmpnop in two steps: first the ones not accessed in original
17008         gimple expression in a endian independent way and then the ones not
17009         accessed in the final result in an endian-specific way.
17010
17011 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
17012
17013         PR tree-optimization/69083
17014         * tree-vect-slp.c (vect_get_constant_vectors): For
17015         VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
17016         element type.  If op is fold_convertible_p to vector_type's element
17017         type, use NOP_EXPR instead of VCE.
17018
17019 2016-01-08  Segher Boessenkool  <segher@kernel.crashing.org>
17020
17021         PR rtl-optimization/67778
17022         PR rtl-optimization/68634
17023         PR rtl-optimization/68909
17024         * shrink-wrap.c (try_shrink_wrapping): Add comment.  Don't pop
17025         block from the stack until done with it.  Remove a superfluous
17026         bitmap set.  Remove a superfluous bitmap test.
17027
17028 2016-01-07  Martin Sebor  <msebor@redhat.com>
17029
17030         PR c/68966
17031         * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
17032         constraint on the type of arguments.
17033
17034 2016-01-07  Andreas Tobler  <andreast@gcc.gnu.org>
17035
17036         * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
17037         SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
17038         unaligned_access on the gcc_options set.
17039         * config/arm/arm.c (arm_option_override_internal): Use
17040         SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
17041
17042 2016-01-07  Uros Bizjak  <ubizjak@gmail.com>
17043
17044         PR target/69140
17045         * config/i386/i386.c (ix86_frame_pointer_required): Enable
17046         frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
17047
17048 2016-01-07  Uros Bizjak  <ubizjak@gmail.com>
17049
17050         Revert
17051         2016-01-06  Uros Bizjak  <ubizjak@gmail.com>
17052
17053         PR target/69140
17054         * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
17055         depending on frame_pointer_needed before remaining integer and SSE
17056         registers are saved.
17057
17058 2016-01-07  Sandra Loosemore  <sandra@codesourcery.com>
17059
17060         PR 1078
17061         * doc/extend.texi (Nvidia PDX Function Attributes): New section.
17062
17063 2016-01-07  H.J. Lu  <hongjiu.lu@intel.com>
17064
17065         PR target/69171
17066         * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
17067         Use the "xBm" constraint.
17068         (float<sseintvecmodelower><mode>2<mask_name><round_name):
17069         Likewise.
17070         (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
17071         (sse_cvtsi2ssq<round_name>): Likewise.
17072         (sse_cvtss2si<round_name>): Likewise.
17073         (sse_cvtss2siq<round_name>): Likewise.
17074         (sse2_cvtsi2sdq<round_name>): Likewise.
17075         (sse2_cvtsd2si<round_name>): Likewise.
17076         (sse2_cvtsd2siq<round_name>): Likewise.
17077         * config/i386/subst.md (round_nimm_scalar_predicate): New
17078         predicate.
17079
17080 2015-12-15  Bernd Schmidt  <bschmidt@redhat.com>
17081
17082         PR middle-end/67639
17083         * varasm.c (make_decl_rtl): Mark invalid register vars as
17084         DECL_EXTERNAL.
17085
17086         PR rtl-optimization/66206
17087         * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
17088         All callers changed.
17089
17090 2016-01-07  Jakub Jelinek  <jakub@redhat.com>
17091
17092         PR tree-optimization/69141
17093         * tree-ssa-pre.c: Include langhooks.h.
17094         (eliminate_dom_walker::before_dom_children): Use
17095         lang_hooks.decl_printable_name instead of
17096         cgraph_node::get ()->name ().
17097
17098         PR middle-end/68960
17099         * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
17100         it and DECL_ALIGN too.
17101
17102 2016-01-06  Robert Suchanek  <robert.suchanek@imgtec.com>
17103
17104         * config/mips/mips-ftypes.def: Sort to lexicographical order.
17105
17106 2016-01-06  Uros Bizjak  <ubizjak@gmail.com>
17107
17108         PR target/69140
17109         * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
17110         depending on frame_pointer_needed before remaining integer and SSE
17111         registers are saved.
17112
17113 2015-01-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17114
17115         * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
17116         mode iterator with VSX_M2.
17117         (*p9_vecstore_<mode>): Likewise.
17118         (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
17119         (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
17120         (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
17121         (define_split for VSX_LE128 stores): Likewise.
17122         (define_peephole2 for TImode LE swaps): Likewise.
17123         (define_split for VSX_LE128 post-reload stores): Likewise.
17124
17125 2016-01-06  Marek Polacek  <polacek@redhat.com>
17126
17127         PR sanitizer/69099
17128         * convert.c (convert_to_integer_1): Adjust call to
17129         ubsan_instrument_float_cast.  Use NULL_TREE instead of NULL.
17130         * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter.  Use
17131         EXPR instead of ARG.
17132         * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
17133
17134 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
17135
17136         PR 1078
17137         * doc/extend.texi (RL78 Variable Attributes): New section.
17138
17139 2016-01-05  Marek Polacek  <polacek@redhat.com>
17140
17141         PR c/69104
17142         * builtins.c (get_memmodel): Use expansion point location rather than
17143         the input location.  Call warning_at rather than warning.
17144         (expand_builtin_atomic_compare_exchange): Likewise.
17145         (expand_builtin_atomic_load): Likewise.
17146         (expand_builtin_atomic_store): Likewise.
17147         (expand_builtin_atomic_clear): Likewise.
17148
17149 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
17150
17151         PR target/68991
17152         * config/i386/i386.c (ix86_expand_vector_logical_operator):
17153         Replace nonimmediate_operand with vector_operand.
17154         * config/i386/predicates.md (vector_operand): New predicate.
17155         (general_vector_operand): Replace nonimmediate_operand with
17156         vector_operand.
17157         * config/i386/sse.md: Replace nonimmediate_operand with
17158         vector_operand and m constraint with Bm constraint on SSE
17159         patterns with 16-byte memory operand.
17160         * config/i386/subst.md (round_nimm_predicate): Replace
17161         nonimmediate_operand with vector_operand.
17162         (round_saeonly_nimm_predicate): Likewise.
17163         (round_saeonly_nimm_scalar_predicate): New.
17164
17165 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
17166
17167         PR target/68991
17168         * config/i386/constraints.md (Bm): New constraint.
17169         * config/i386/predicates.md (vector_memory_operand): New
17170         predicate.
17171         * config/i386/sse.md: Replace xm with xBm in plusminus and
17172         any_logic patterns.
17173
17174 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
17175
17176         PR 1078
17177         * doc/extend.texi (V850 Function Attributes): New section.
17178         (V850 Variable Attributes): New section.
17179
17180 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
17181
17182         PR 1078
17183         * doc/extend.texi (MicroBlaze Function Attributes): Document
17184         interrupt_handler and fast_interrupt attributes.
17185
17186 2016-01-05  Sergei Trofimovich  <siarheit@google.com>
17187
17188         PR other/60465
17189         * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
17190         for local symbolic operands.
17191         * config/ia64/predicates.md (local_symbolic_operand64): New
17192         predicate.
17193
17194 2016-01-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17195
17196         PR rtl-optimization/68651
17197         * combine.c (combine_simplify_rtx): Canonicalize x + x into
17198         x << 1.
17199
17200 2016-01-05  Nathan Sidwell  <nathan@acm.org>
17201
17202         * alias.c (compare_base_decls): Use symtab_node::get.
17203
17204 2016-01-05  Nick Clifton  <nickc@redhat.com>
17205
17206         PR target/68770
17207         * ira-costs.c (copy_cost): Initialise the t_icode field of the
17208         secondary_reload_info structure.
17209
17210         PR target/66655
17211         * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
17212         decls if weak support is available.
17213
17214 2016-01-04  Martin Sebor  <msebor@redhat.com>
17215
17216         * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
17217
17218 2016-01-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
17219
17220         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
17221         OPTION_MASK_P9_DFORM.
17222
17223         * config/rs6000/constraints.md (wo constraint): New constraint for
17224         ISA 3.0 (power9).
17225
17226         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
17227         for wo constraint.
17228         (rs6000_init_hard_regno_mode_ok): Likewise.
17229
17230         * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
17231         wo constraint.
17232
17233         * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
17234         expanders not to have constraints.  Add support for ISA 3.0 xxperm
17235         instruction.  Add support for fusing xxlor with xxperm.
17236         (altivec_vperm_<mode>_internal): Likewise.
17237         (altivec_vperm_v8hiv16qi): Likewise.
17238         (altivec_vperm_<mode>v16q): Likewise.
17239         (altivec_vperm_<mode>_uns): Likewise.
17240         (vperm_v8hiv4si): Likewise.
17241         (vperm_v16qiv8hi): Likewise.
17242
17243         * doc/md.texi (RS/6000 constraints): Document wo constraint.
17244
17245 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
17246
17247         Update copyright years.
17248
17249         * gcc.c (process_command): Update copyright notice dates.
17250         * gcov-dump.c (print_version): Ditto.
17251         * gcov.c (print_version): Ditto.
17252         * gcov-tool.c (print_version): Ditto.
17253         * gengtype.c (create_file): Ditto.
17254         * doc/cpp.texi: Bump @copying's copyright year.
17255         * doc/cppinternals.texi: Ditto.
17256         * doc/gcc.texi: Ditto.
17257         * doc/gccint.texi: Ditto.
17258         * doc/gcov.texi: Ditto.
17259         * doc/install.texi: Ditto.
17260         * doc/invoke.texi: Ditto.
17261
17262 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
17263
17264         * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
17265         modes larger than TImode as TImode if NEON is not enabled.
17266
17267 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
17268
17269         PR target/69100
17270         * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
17271         mode for %f0-%f31 only if TARGET_FPU.
17272
17273 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
17274
17275         PR target/69072
17276         * config/sparc/sparc.c (scan_record_type): Take into account subfields
17277         to compute the PACKED_P predicate.
17278         (function_arg_record_value): Minor tweaks.
17279
17280 2016-01-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
17281
17282         * doc/install.texi (--with-multilib-list): Describe the meaning of the
17283         option for arm*-*-* targets.
17284
17285 2016-01-03  Sandra Loosemore  <sandra@codesourcery.com>
17286
17287         * doc/extend.texi (Common Function Attributes): Move docs for
17288         MSP430-specific attributes to....
17289         (MSP430 Function Attributes): ...here.  Delete the redundant
17290         entries and copy-edit the remaining text.
17291         (MSP430 Variable Attributes): Use uniform format for index
17292         entries and add a cross-reference to the corresponding function
17293         attribute docs.
17294
17295 2016-01-03  Vladimír Čunát  <vcunat@gmail.com>
17296
17297         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
17298         -finite-math typo.
17299         (x86 Options): Likewise.
17300
17301 2016-01-01  Sandra Loosemore  <sandra@codesourcery.com>
17302
17303         PR 1078
17304
17305         * extend.texi (Common Function Attributes) <no_stack_limit>: New.
17306         * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
17307         to corresponding attribute.
17308
17309 2016-01-01  Sandra Loosemore  <sandra@codesourcery.com>
17310
17311         * doc/extend.texi (Common Function Attributes) <noplt>: Move
17312         to correct alphabetization of table.  Copy-edit and correct
17313         markup.
17314         <stack_protect>: Likewise.
17315         <target_clones>: Likewise.
17316         <simd>: Likewise.
17317         * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
17318         Correct punctuation.
17319         (Code Gen Options) <-fno-plt>: Copy-edit.
17320
17321 2016-01-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
17322
17323         PR target/68917
17324         * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
17325         SI values.  Explicitly convert SI to DI and vice-versa.
17326
17327 2016-01-01  Jakub Jelinek  <jakub@redhat.com>
17328
17329         PR tree-optimization/69070
17330         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
17331         REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
17332
17333         PR sanitizer/69055
17334         * ubsan.c (ubsan_instrument_float_cast): Call
17335         initialize_sanitizer_builtins.
17336
17337         PR target/69015
17338         * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
17339 \f
17340 Copyright (C) 2016 Free Software Foundation, Inc.
17341
17342 Copying and distribution of this file, with or without modification,
17343 are permitted in any medium without royalty provided the copyright
17344 notice and this notice are preserved.