1 2016-08-24 Michael Collison <michael.collison@linaro.org>
2 Michael Collison <michael.collison@arm.com>
4 * config/arm/arm-modes.def: Add new condition code mode CC_V
5 to represent the overflow bit.
6 * config/arm/arm.c (maybe_get_arm_condition_code):
7 Add support for CC_Vmode.
8 (arm_gen_unlikely_cbranch): New function to generate common
9 rtl conditional branches for overflow patterns.
10 * config/arm/arm-protos.h: Add prototype for
11 arm_gen_unlikely_cbranch.
12 * config/arm/arm.md (addv<mode>4, add<mode>3_compareV,
13 addsi3_compareV_upper): New patterns to support signed
14 builtin overflow add operations.
15 (uaddv<mode>4, add<mode>3_compareC, addsi3_compareV_upper):
16 New patterns to support unsigned builtin add overflow operations.
17 (subv<mode>4, sub<mode>3_compare1): New patterns to support signed
18 builtin overflow subtract operations,
19 (usubv<mode>4): New patterns to support unsigned builtin subtract
21 (negvsi3, negvdi3, negdi2_compare, negsi2_carryin_compare): New patterns
22 to support builtin overflow negate operations.
24 2016-08-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
29 * explow.c (get_dynamic_stack_size): Take known alignment of stack
30 pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
33 2016-08-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
35 * doc/fragments.texi (MULTILIB_REUSE): Mention that only options in
36 MULTILIB_OPTIONS should be used. Small wording fixes.
37 * genmultilib: Memorize set of all option combinations in
38 combination_space. Detect if RHS of MULTILIB_REUSE uses an option not
39 found in MULTILIB_OPTIONS by checking if option set is listed in
40 combination_space. Output new and existing error message to stderr.
42 2016-08-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
44 * config/arm/t-aprofile (MULTILIB_MATCHES): Add mapping for
45 -mcpu=cortex-a7, -mfpu=neon-fp16, -mfpu=fpv5-d16 and -mfpu=fp-armv8.
46 Fix typo in -mfpu=vfpv3-d16-fp16 mapping.
47 (MULTILIB_REUSE): Remove reuse rules for option set including
48 -mfpu=fp-armv8 and -mfpu=vfpv4
50 2016-08-24 Sebastian Huber <sebastian.huber@embedded-brains.de>
52 * config/arm/t-rtems: Add vfp multilib.
54 2016-08-23 Ian Lance Taylor <iant@golang.org>
56 * config/s390/s390.c (s390_asm_file_start): Call
59 2016-08-23 Michael Meissner <meissner@linux.vnet.ibm.com>
61 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Set
62 initialization of all 0's to the 0 constant, instead of directly
63 generating XOR. Add support for V4SImode vector initialization on
64 64-bit systems with direct move, and rework the ISA 3.0 V4SImode
65 initialization. Change variables used in V4SFmode vector
66 intialization. For V4SFmode vector splat on ISA 3.0, make sure
67 any memory addresses are in index form. Add support for using
68 VSPLTH/VSPLTB to initialize vector short and vector char vectors
69 with all of the same element.
70 (regno_or_subregno): New helper function to return a register
71 number for either REG or SUBREG.
72 (rs6000_adjust_vec_address): Do not generate ADDI <reg>,R0,<num>.
73 Use regno_or_subregno where possible.
74 (rs6000_split_v4si_init_di_reg): New helper function to build up a
75 DImode value from two SImode values in order to generate V4SImode
76 vector initialization on 64-bit systems with direct move.
77 (rs6000_split_v4si_init): Split up the insns for a V4SImode vector
79 (rtx_is_swappable_p): V4SImode vector initialization insn is not
81 * config/rs6000/rs6000-protos.h (rs6000_split_v4si_init): Add
83 * config/rs6000/vsx.md (VSX_SPLAT_I): New mode iterators and
84 attributes to initialize V8HImode and V16QImode vectors with the
86 (VSX_SPLAT_COUNT): Likewise.
87 (VSX_SPLAT_SUFFIX): Likewise.
88 (UNSPEC_VSX_VEC_INIT): New unspec.
89 (vsx_concat_v2sf): Eliminate using 'preferred' register classes.
90 Allow SFmode values to come from Altivec registers.
91 (vsx_init_v4si): New insn/split for V4SImode vector initialization
92 on 64-bit systems with direct move.
93 (vsx_splat_<mode>, VSX_W iterator): Rework V4SImode and V4SFmode
94 vector initializations, to allow V4SImode vector initializations
95 on 64-bit systems with direct move.
96 (vsx_splat_v4si): Likewise.
97 (vsx_splat_v4si_di): Likewise.
98 (vsx_splat_v4sf): Likewise.
99 (vsx_splat_v4sf_internal): Likewise.
100 (vsx_xxspltw_<mode>, VSX_W iterator): Eliminate using 'preferred'
102 (vsx_xxspltw_<mode>_direct, VSX_W iterator): Likewise.
103 (vsx_vsplt<VSX_SPLAT_SUFFIX>_di): New insns to support
104 initializing V8HImode and V16QImode vectors with the same
106 * config/rs6000/rs6000.h (TARGET_DIRECT_MOVE_64BIT): Disallow
107 optimization if -maltivec=be.
109 2016-08-23 Christophe Lyon <christophe.lyon@linaro.org>
111 * config/arm/arm.md (arm_movqi_insn): Swap predicable_short_it
112 attribute for alternatives 3 and 4.
114 2016-08-23 David Malcolm <dmalcolm@redhat.com>
116 * selftest.c (selftest::assert_str_contains): New function.
117 (selftest::test_assertions): Verify ASSERT_STR_CONTAINS.
118 * selftest.h (selftest::assert_str_contains): New decl.
119 (ASSERT_STR_CONTAINS): New macro.
121 2016-08-23 Richard Biener <rguenther@suse.de>
123 PR tree-optimization/77286
124 * tree-vect-loop.c (vect_analyze_loop_form_1): Do not modify
126 (vect_transform_loop): Split exit edges of loop and scalar
127 loop if required and at the appropriate time.
129 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
131 * explow.c (get_dynamic_stack_size): Take known alignment of stack
132 pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
134 Correct a typo in a comment.
136 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
138 * config/s390/s390.md ("*andc_split"): New splitter for and with
141 2016-08-23 Richard Biener <rguenther@suse.de>
143 PR tree-optimization/27336
144 * tree-vrp.c (infer_value_range): Handle stmts that can throw
145 by looking for a non-EH edge.
146 (process_assert_insertions_for): Likewise.
148 2016-08-23 Richard Biener <rguenther@suse.de>
151 * statistics.c (statistics_counter_event): Robustify against
154 2016-08-23 Venkataramanan Kumar
156 * config/i386/i386.c (processor_alias_table): Enable PTA_PRFCHW
157 for targets amdfam10 and barcelona.
159 2016-08-22 Uros Bizjak <ubizjak@gmail.com>
161 * config/i386/i386.md (*zero_extendsidi2): Add (*r,*k) alternative.
162 (zero_extend<mode>di2): Ditto.
163 (*zero_extend<mode>si2): Ditto.
164 (*zero_extendqihi2): Ditto.
166 2016-08-22 Joseph Myers <joseph@codesourcery.com>
169 * builtins.c (fold_builtin_classify): Use builtin_decl_explicit
170 (BUILT_IN_SIGNBIT) to expand __builtin_isinf_sign.
172 2016-08-22 Patrick Palka <ppalka@gcc.gnu.org>
174 * print-tree.c (print_node) [VECTOR_CST]: Coalesce the output of
175 identical consecutive elements.
176 [SSA_NAME]: Print the name's def stmt on its own line. When printing
177 the node's def stmt, avoid printing an unwanted trailing newline by
178 replacing the call to print_gimple_stmt() with its inlined body and
179 adjusting it to not set pp_needs_newline and to call pp_flush()
180 instead of pp_newline_and_flush().
182 2016-08-22 Joseph Myers <joseph@codesourcery.com>
184 * tree.h (CASE_FLT_FN_FLOATN_NX, float16_type_node)
185 (float32_type_node, float64_type_node, float32x_type_node)
186 (float128x_type_node): New macros.
187 * builtin-types.def (BT_FLOAT16, BT_FLOAT32, BT_FLOAT64)
188 (BT_FLOAT128, BT_FLOAT32X, BT_FLOAT64X, BT_FLOAT128X)
189 (BT_FN_FLOAT16, BT_FN_FLOAT32, BT_FN_FLOAT64, BT_FN_FLOAT128)
190 (BT_FN_FLOAT32X, BT_FN_FLOAT64X, BT_FN_FLOAT128X)
191 (BT_FN_FLOAT16_FLOAT16, BT_FN_FLOAT32_FLOAT32)
192 (BT_FN_FLOAT64_FLOAT64, BT_FN_FLOAT128_FLOAT128)
193 (BT_FN_FLOAT32X_FLOAT32X, BT_FN_FLOAT64X_FLOAT64X)
194 (BT_FN_FLOAT128X_FLOAT128X, BT_FN_FLOAT16_CONST_STRING)
195 (BT_FN_FLOAT32_CONST_STRING, BT_FN_FLOAT64_CONST_STRING)
196 (BT_FN_FLOAT128_CONST_STRING, BT_FN_FLOAT32X_CONST_STRING)
197 (BT_FN_FLOAT64X_CONST_STRING, BT_FN_FLOAT128X_CONST_STRING)
198 (BT_FN_FLOAT16_FLOAT16_FLOAT16, BT_FN_FLOAT32_FLOAT32_FLOAT32)
199 (BT_FN_FLOAT64_FLOAT64_FLOAT64, BT_FN_FLOAT128_FLOAT128_FLOAT128)
200 (BT_FN_FLOAT32X_FLOAT32X_FLOAT32X)
201 (BT_FN_FLOAT64X_FLOAT64X_FLOAT64X)
202 (BT_FN_FLOAT128X_FLOAT128X_FLOAT128X): New type definitions.
203 * builtins.def (DEF_GCC_FLOATN_NX_BUILTINS): New macro.
204 (copysign, fabs, huge_val, inf, nan, nans): Use it.
205 * builtins.c (expand_builtin): Use CASE_FLT_FN_FLOATN_NX for fabs
207 (fold_builtin_0): Use CASE_FLT_FN_FLOATN_NX for inf and huge_val.
208 (fold_builtin_1): Use CASE_FLT_FN_FLOATN_NX for fabs.
209 * doc/extend.texi (Other Builtins): Document these built-in
211 * fold-const-call.c (fold_const_call): Use CASE_FLT_FN_FLOATN_NX
214 2016-08-22 Gerald Pfeifer <gerald@pfeifer.com>
216 * doc/install.texi (Binaries): www.opencsw.org now uses https.
218 2016-08-22 Richard Biener <rguenther@suse.de>
220 * tree-ssa-forwprop.c (pass_forwprop::execute): Use RPO order.
222 2016-08-21 Uros Bizjak <ubizjak@gmail.com>
225 * config/i386/i386.md (prefetch): When TARGET_PRFCHW or
226 TARGET_PREFETCHWT1 are disabled, emit 3dNOW! write prefetches for
227 non-SSE2 athlons only, otherwise prefer SSE prefetches.
229 2016-08-20 Kugan Vivekanandarajah <kuganv@linaro.org>
231 * tree-vrp.c (vrp_visit_assignment_or_call): Changed to Return VR.
232 (vrp_visit_cond_stmt): Just sets TAKEN_EDGE_P.
233 (vrp_visit_switch_stmt): Likewise.
234 (extract_range_from_stmt): Factored out from vrp_visit_stmt.
235 (extract_range_from_phi_node): Factored out from vrp_visit_phi_stmt.
236 (vrp_visit_stmt): Use extract_range_from_stmt.
237 (vrp_visit_phi_node): Use extract_range_from_phi_node.
239 2016-08-20 Kugan Vivekanandarajah <kuganv@linaro.org>
241 * Makefile.in: Add tree-vrp.h to GTFILES.
242 * gengtype.c (open_base_files): Add tree-vrp.h.
243 * asan.c: Add tree-vrp.h which now has the definition value_range_type.
244 * builtins.c: Likewise.
245 * fold-const.c: Likewise.
246 * gimple-builder.c: Likewise.
247 * gimple-laddress.c: Likewise.
248 * hsa-gen.c: Likewise.
249 * internal-fn.c: Likewise.
251 * targhooks.c: Liewise,
252 * tree-ssa-address.c: Likewise.
253 * tree-ssanames.h (value_range_type: Move to tree-vrp.h.
254 * tree-vrp.c (struct value_range): Move to tree-vrp.h
255 * tree-vrp.h: New file.
257 2016-08-20 Kugan Vivekanandarajah <kuganv@linaro.org>
259 PR tree-optimization/61839
260 * tree-vrp.c (two_valued_val_range_p): New.
261 (simplify_stmt_using_ranges): Convert CST BINOP VAR where VAR is
262 two-valued to VAR == VAL1 ? (CST BINOP VAL1) : (CST BINOP VAL2).
263 Also Convert VAR BINOP CST where VAR is two-valued to
264 VAR == VAL1 ? (VAL1 BINOP CST) : (VAL2 BINOP CST).
266 2016-08-19 David Malcolm <dmalcolm@redhat.com>
268 * diagnostic-show-locus.c
269 (layout::annotation_line_showed_range_p): New method.
270 (layout::print_any_fixits): Remove case fixit_hint::REMOVE.
271 Reimplement case fixit_hint::REPLACE to cover removals, and
272 replacements where the range of the replacement isn't one
273 of the ranges in the rich_location.
274 (test_one_liner_fixit_replace): Likewise.
275 (selftest::test_one_liner_fixit_replace_non_equal_range): New
277 (selftest::test_one_liner_fixit_replace_equal_secondary_range):
279 (selftest::test_diagnostic_show_locus_one_liner): Call the new
281 * diagnostic.c (print_parseable_fixits): Remove case
284 2016-08-19 Uros Bizjak <ubizjak@gmail.com>
287 * config/i386/i386.c (ix86_option_override_internal): Remove
288 PTA_PRFCHW from entries that also have PTA_3DNOW flag.
289 Enable SSE prefetch also for TARGET_PREFETCHWT1.
290 Do not try to enable TARGET_PRFCHW ISA flag here.
291 * config/i386/i386.md (prefetch): Enable also for TARGET_3DNOW.
292 Rewrite expander function body.
293 (*prefetch_3dnow): Enable for TARGET_3DNOW and TARGET_PREFETCHWT1.
295 2016-08-19 Joseph Myers <joseph@codesourcery.com>
298 * tree-core.h (TI_COMPLEX_FLOAT16_TYPE)
299 (TI_COMPLEX_FLOATN_NX_TYPE_FIRST, TI_COMPLEX_FLOAT32_TYPE)
300 (TI_COMPLEX_FLOAT64_TYPE, TI_COMPLEX_FLOAT128_TYPE)
301 (TI_COMPLEX_FLOAT32X_TYPE, TI_COMPLEX_FLOAT64X_TYPE)
302 (TI_COMPLEX_FLOAT128X_TYPE, TI_FLOAT16_TYPE, TI_FLOATN_TYPE_FIRST)
303 (TI_FLOATN_NX_TYPE_FIRST, TI_FLOAT32_TYPE, TI_FLOAT64_TYPE)
304 (TI_FLOAT128_TYPE, TI_FLOATN_TYPE_LAST, TI_FLOAT32X_TYPE)
305 (TI_FLOATNX_TYPE_FIRST, TI_FLOAT64X_TYPE, TI_FLOAT128X_TYPE)
306 (TI_FLOATNX_TYPE_LAST, TI_FLOATN_NX_TYPE_LAST): New enum
308 (NUM_FLOATN_TYPES, NUM_FLOATNX_TYPES, NUM_FLOATN_NX_TYPES): New
310 (struct floatn_type_info): New structure type.
311 (floatn_nx_types): New variable declaration.
312 * tree.h (FLOATN_TYPE_NODE, FLOATN_NX_TYPE_NODE)
313 (FLOATNX_TYPE_NODE, float128_type_node, float64x_type_node)
314 (COMPLEX_FLOATN_NX_TYPE_NODE): New macros.
315 * tree.c (floatn_nx_types): New variable.
316 (build_common_tree_nodes): Initialize _FloatN, _FloatNx and
317 corresponding complex types.
318 * target.def (floatn_mode): New hook.
319 * targhooks.c: Include "real.h".
320 (default_floatn_mode): New function.
321 * targhooks.h (default_floatn_mode): New prototype.
322 * doc/extend.texi (Floating Types): Document _FloatN and _FloatNx
324 * doc/sourcebuild.texi (float@var{n}, float@var{n}x): Document new
325 effective-target and dg-add-options keywords.
326 (float@var{n}_runtime, float@var{n}x_runtime, floatn_nx_runtime):
327 Document new effective-target keywords.
328 * doc/tm.texi.in (TARGET_FLOATN_MODE): New @hook.
329 * doc/tm.texi: Regenerate.
330 * ginclude/float.h (LDBL_DECIMAL_DIG): Define to
331 __LDBL_DECIMAL_DIG__, not __DECIMAL_DIG__.
332 [__STDC_WANT_IEC_60559_TYPES_EXT__]: Define macros from TS
334 * real.h (struct real_format): Add field ieee_bits.
335 * real.c (ieee_single_format, mips_single_format)
336 (motorola_single_format, spu_single_format, ieee_double_format)
337 (mips_double_format, motorola_double_format)
338 (ieee_extended_motorola_format, ieee_extended_intel_96_format)
339 (ieee_extended_intel_128_format)
340 (ieee_extended_intel_96_round_53_format, ibm_extended_format)
341 (mips_extended_format, ieee_quad_format, mips_quad_format)
342 (vax_f_format, vax_d_format, vax_g_format, decimal_single_format)
343 (decimal_double_format, decimal_quad_format, ieee_half_format)
344 (arm_half_format, real_internal_format: Initialize ieee_bits
346 * config/i386/i386.c (ix86_init_builtin_types): Do not initialize
347 float128_type_node. Set float80_type_node to float64x_type_node
348 if appropriate and long_double_type_node not appropriate.
349 * config/ia64/ia64.c (ia64_init_builtins): Likewise.
350 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format):
351 Initialize ieee_bits field.
352 * config/rs6000/rs6000.c (TARGET_FLOATN_MODE): New macro.
353 (rs6000_init_builtins): Set ieee128_float_type_node to
355 (rs6000_floatn_mode): New function.
357 2016-08-19 Jakub Jelinek <jakub@redhat.com>
359 * config/i386/rdseedintrin.h (_rdseed16_step, _rdseed32_step,
360 _rdseed64_step): Uglify argument names and/or local variable names
362 * config/i386/rtmintrin.h (_xabort): Likewise.
363 * config/i386/avx512vlintrin.h (_mm256_ternarylogic_epi64,
364 _mm256_mask_ternarylogic_epi64, _mm256_maskz_ternarylogic_epi64,
365 _mm256_ternarylogic_epi32, _mm256_mask_ternarylogic_epi32,
366 _mm256_maskz_ternarylogic_epi32, _mm_ternarylogic_epi64,
367 _mm_mask_ternarylogic_epi64, _mm_maskz_ternarylogic_epi64,
368 _mm_ternarylogic_epi32, _mm_mask_ternarylogic_epi32,
369 _mm_maskz_ternarylogic_epi32): Likewise.
370 * config/i386/lwpintrin.h (__llwpcb, __lwpval32, __lwpval64,
371 __lwpins32, __lwpins64): Likewise.
372 * config/i386/avx2intrin.h (_mm_i32gather_pd, _mm_mask_i32gather_pd,
373 _mm256_i32gather_pd, _mm256_mask_i32gather_pd, _mm_i64gather_pd,
374 _mm_mask_i64gather_pd, _mm256_i64gather_pd, _mm256_mask_i64gather_pd,
375 _mm_i32gather_ps, _mm_mask_i32gather_ps, _mm256_i32gather_ps,
376 _mm256_mask_i32gather_ps, _mm_i64gather_ps, _mm_mask_i64gather_ps,
377 _mm256_i64gather_ps, _mm256_mask_i64gather_ps, _mm_i32gather_epi64,
378 _mm_mask_i32gather_epi64, _mm256_i32gather_epi64,
379 _mm256_mask_i32gather_epi64, _mm_i64gather_epi64,
380 _mm_mask_i64gather_epi64, _mm256_i64gather_epi64,
381 _mm256_mask_i64gather_epi64, _mm_i32gather_epi32,
382 _mm_mask_i32gather_epi32, _mm256_i32gather_epi32,
383 _mm256_mask_i32gather_epi32, _mm_i64gather_epi32,
384 _mm_mask_i64gather_epi32, _mm256_i64gather_epi32,
385 _mm256_mask_i64gather_epi32): Likewise.
386 * config/i386/pmm_malloc.h (_mm_malloc, _mm_free): Likewise.
387 * config/i386/ia32intrin.h (__writeeflags): Likewise.
388 * config/i386/pkuintrin.h (_wrpkru): Likewise.
389 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd,
390 _mm512_mask_prefetch_i32gather_ps, _mm512_mask_prefetch_i64gather_pd,
391 _mm512_mask_prefetch_i64gather_ps, _mm512_prefetch_i32scatter_pd,
392 _mm512_prefetch_i32scatter_ps, _mm512_mask_prefetch_i32scatter_pd,
393 _mm512_mask_prefetch_i32scatter_ps, _mm512_prefetch_i64scatter_pd,
394 _mm512_prefetch_i64scatter_ps, _mm512_mask_prefetch_i64scatter_pd,
395 _mm512_mask_prefetch_i64scatter_ps): Likewise.
396 * config/i386/gmm_malloc.h (_mm_malloc, _mm_free): Likewise.
397 * config/i386/avx512fintrin.h (_mm512_ternarylogic_epi64,
398 _mm512_mask_ternarylogic_epi64, _mm512_maskz_ternarylogic_epi64,
399 _mm512_ternarylogic_epi32, _mm512_mask_ternarylogic_epi32,
400 _mm512_maskz_ternarylogic_epi32, _mm512_i32gather_ps,
401 _mm512_mask_i32gather_ps, _mm512_i32gather_pd, _mm512_i64gather_ps,
402 _mm512_i64gather_pd, _mm512_i32gather_epi32, _mm512_i32gather_epi64,
403 _mm512_i64gather_epi32, _mm512_i64gather_epi64): Likewise.
405 * config/i386/fxsrintrin.h (_fxsave): Remove return keyword in inlines
407 (_fxrstor, _fxsave64, _fxrstor64): Likewise.
408 * config/i386/xsaveintrin.h (_xsave, _xrstor, _xsave64, _xrstor64):
410 * config/i386/xsaveoptintrin.h (_xsaveopt, _xsaveopt64): Likewise.
411 * config/i386/pkuintrin.h (_wrpkru): Likewise. Add space after
413 (_rdpkru_u32): Add space after function name.
415 * config/i386/t-i386 (i386-c.o): Don't depend on
416 i386-builtin-types.inc.
417 (i386.o): Depend on i386-builtin-types.inc.
419 2016-08-19 Matthew Wahab <matthew.wahab@arm.com>
422 * config/arm/arm.c (neon_valid_immediate): Delete declaration.
423 Use const_vec_duplicate to check for duplicated elements.
425 2016-08-19 Richard Biener <rguenther@suse.de>
427 PR tree-optimization/77290
428 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
429 Fix flag_tree_parallelize_loops check.
431 2016-08-19 Richard Biener <rguenther@suse.de>
433 * match.pd (x | 0 -> x): Add.
435 2016-08-19 Richard Biener <rguenther@suse.de>
437 PR tree-optimization/77286
438 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
439 Deal with virtual PHIs being out-of-order.
441 2016-08-18 David Malcolm <dmalcolm@redhat.com>
443 * doc/invoke.texi (fverbose-asm): Note that source code lines
444 are emitted, and provide an example.
445 * final.c (asm_show_source): New function.
446 (final_scan_insn): Call asm_show_source.
448 2016-08-18 David Malcolm <dmalcolm@redhat.com>
450 * diagnostic-show-locus.c (colorizer::colorizer): Replace diagnostic
451 param with diagnostic_kind.
452 (class colorizer): Similarly replace field m_diagnostic with
454 (colorizer::colorizer): Replace diagnostic
455 param with diagnostic_kind.
456 (colorizer::begin_state): Update for above field change.
457 (layout::layout): Replace diagnostic param with rich_location *
459 (diagnostic_show_locus): Replace diagnostic param with richloc
461 (class selftest::test_diagnostic_context): New class.
462 (selftest::test_diagnostic_show_locus_unknown_location): New
464 (selftest::test_one_liner_simple_caret): New function.
465 (selftest::test_one_liner_caret_and_range): New function.
466 (selftest::test_one_liner_multiple_carets_and_ranges): New
468 (selftest::test_one_liner_fixit_remove): New function.
469 (selftest::test_one_liner_fixit_replace): New function.
470 (selftest::test_diagnostic_show_locus_one_liner): New function.
471 (selftest::diagnostic_show_locus_c_tests): Call the new test
473 * diagnostic.c (diagnostic_initialize): Initialize
474 colorize_source_p, show_ruler_p and parseable_fixits_p.
475 (default_diagnostic_finalizer): Update for change to
476 diagnostic_show_locus.
477 (diagnostic_append_note): Likewise.
478 * diagnostic.h (diagnostic_show_locus): Replace
479 const diagnostic_info * param with location * and diagnostic_t.
481 2016-08-18 David Malcolm <dmalcolm@redhat.com>
483 * input.c (saved_line_table): New global.
484 (class selftest::temp_line_table): Rename to line_table_test and
485 move declaration to selftest.h, and drop field m_old_line_table.
486 (selftest::temp_line_table::temp_line_table): Rename ctor to...
487 (selftest::line_table_test::line_table_test): ...this. Add a
488 default ctor. Store current value of line_table within
490 (selftest::temp_line_table::~temp_line_table): Rename dtor to...
491 (selftest::line_table_test::~line_table_test): ...this, and
492 restore line_table from the saved_line_table, rather than
494 (selftest::test_accessing_ordinary_linemaps): Update for above
496 (selftest::test_lexer): Likewise.
497 (struct selftest::lexer_test): Likewise.
498 (selftest::lexer_test::lexer_test): Likewise.
499 (selftest::input_c_tests): Move the looping over test cases from
501 (selftest::for_each_line_table_case): New function.
502 * input.h (saved_line_table): New decl.
503 * selftest.h (struct selftest::line_table_case): New forward decl.
504 (class selftest::line_table_test): New class, moved here from
505 selftest::temp_line_table in input.c, and renamed.
506 (selftest::for_each_line_table_case): New decl.
508 2015-08-18 H.J. Lu <hongjiu.lu@intel.com>
511 * config/i386/i386.c (lakemont_cost): Set MOVE_RATIO to 17.
513 2016-08-18 Chung-Lin Tang <cltang@codesourcery.com>
516 * gimplify.c (omp_add_variable): Adjust/add variable mapping on
517 enclosing parallel construct for reduction variables on OpenACC loop
520 2016-08-18 Pierre-Marie de Rodat <derodat@adacore.com>
522 * dwarf2out.c (copy_dwarf_procedure): Remove obsolete comment.
523 (new_dwarf_proc_die): Emit DW_TAG_dwarf_procedure DIEs even for
525 (function_to_dwarf_procedure): Update comment.
527 2016-08-18 David Malcolm <dmalcolm@redhat.com>
529 * input.c (diagnostics_file_cache_forcibly_evict_file): New
531 * input.h (diagnostics_file_cache_forcibly_evict_file): New
533 * selftest.c (selftest::temp_source_file::~temp_source_file):
534 Evict m_filename from the diagnostic file cache.
536 2016-08-18 Richard Biener <rguenther@suse.de>
538 * tree-pass.h (make_pass_materialize_all_clones): Declare.
539 * ipa.c (pass_data_materialize_all_clones, pass_materialize_all_clones,
540 make_pass_materialize_all_clones): New simple IPA pass encapsulating
541 clone materialization.
542 * passes.def (all_late_ipa_passes): Start with
543 pass_materialize_all_clones.
544 * cgraphunit.c (symbol_table::compile): Remove call to
545 materialize_all_clones.
546 * tree-into-ssa.c: Include statistics.h.
547 (update_ssa): Count number of times we do incremental/rewrite
550 2016-08-18 Richard Biener <rguenther@suse.de>
552 PR tree-optimization/77282
553 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
554 When doing auto-parallelizing also prevent use of PHIs that
555 carry dependences across loop backedges.
557 2016-08-18 Tamar Christina <tamar.christina@arm.com>
558 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
560 * varasm.c (default_use_anchors_for_symbol_p): Reject too large decls.
562 2016-08-18 Richard Biener <rguenther@suse.de>
564 * ssa-iterators.h (ssa_vuse_operand): New inline.
565 * tree-if-conv.c (ifc_temp_var): Update virtual operand.
566 (predicate_all_scalar_phis): Use remove_phi_node to remove
567 phi nodes predicated. Delay removing virtual PHIs.
568 (predicate_mem_writes): Update virtual operands.
569 (combine_blocks): Likewise. Propagate out remaining virtual PHIs.
570 (tree_if_conversion): Do not rewrite virtual SSA form.
571 * tree-phinodes.c (release_phi_node): Make static.
572 * tree-phinodes.h (release_phi_node): Remove.
574 2016-08-18 Jakub Jelinek <jakub@redhat.com>
576 * config/i386/i386.c (enum ix86_builtins): Remove IX86_BUILTIN_*
577 codes that appear in bdesc_* arrays, instead include i386-builtin.def
578 twice to define those.
579 (bdesc_comi, bdesc_pcmpestr, bdesc_pcmpistr, bdesc_special_args,
580 bdesc_args, bdesc_round_args, bdesc_mpx, bdesc_mpx_const,
581 bdesc_multi_arg): Define by including i386-builtin.def the third time.
582 * config/i386/i386-builtin.def: New file.
584 2016-08-17 David Malcolm <dmalcolm@redhat.com>
586 * input.c (get_source_range_for_char): Rename to...
587 (selftest::get_source_range_for_char): ...this, and move within
588 the #if CHECKING_P guard.
589 (get_num_source_ranges_for_substring): Rename to...
590 (selftest::get_num_source_ranges_for_substring): ...this, move
591 within the #if CHECKING_P guard, and make static.
592 (selftest::assert_num_substring_ranges): Initialize
595 2016-08-18 Alan Modra <amodra@gmail.com>
597 PR rtl-optimization/72771
598 * reload.c (find_reloads): Don't assume that a subreg mem is OK
599 when find_reloads_toplev returns address_reloaded==-1.
600 (alternative_allows_const_pool_ref): Update comment.
602 2015-08-17 Alan Hayward <alan.hayward@arm.com>
604 PR tree-optimization/71752
605 * tree-vect-loop.c (vectorizable_reduction): Keep SLP operand ordering.
606 * tree-vect-slp.c (vect_get_slp_defs): Handle null operands.
608 2016-08-17 Jakub Jelinek <jakub@redhat.com>
610 * gimple-fold.c (gimple_fold_call): Use gimple_call_noreturn_p
611 instead of testing ECF_NORETURN bit in gimple_call_flags.
612 * tree-cfg.c (make_edges_bb, execute_fixup_cfg): Likewise.
613 * predict.c (tree_bb_level_predictions): Likewise.
614 * gimple-low.c (gimple_stmt_may_fallthru): Likewise.
617 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): If
618 turning a call into __builtin_unreachable-like noreturn call, adjust
619 gimple_call_set_fntype.
620 * tree-cfgcleanup.c (fixup_noreturn_call): Remove lhs also if
621 gimple_call_fntype has void return type.
623 2016-08-17 Chung-Lin Tang <cltang@codesourcery.com>
625 * omp-low.c (lower_oacc_reductions): Adjust variable lookup to use
626 maybe_lookup_decl, to handle nested acc loop directives.
628 2016-08-17 Richard Biener <rguenther@suse.de>
630 PR tree-optimization/76490
631 * tree-vrp.c (update_value_range): Preserve overflow infinities
632 when intersecting with ranges from get_range_info.
633 (operand_less_p): Handle overflow infinities correctly.
634 (value_range_constant_singleton): Use vrp_operand_equal_p
635 to handle overflow max/min correctly.
636 (vrp_valueize): Likewise.
637 (union_ranges): Likewise.
638 (intersect_ranges): Likewise.
639 (vrp_visit_phi_node): Improve iteration limitation to only
640 apply when we'll possibly re-visit the PHI via a changed argument
643 2016-08-17 Thomas Preud'homme <thomas.preudhomme@arm.com>
645 * config/arm/t-aprofile (MULTILIB_EXCEPTIONS): Rewrite into ...
646 (MULTILIB_REQUIRED): This by specifying multilib needing to be built
647 rather than those that should not be built.
649 2016-08-17 Stanislaw Halik <sthalik@misaki.pl>
652 * config/i386/xm-mingw32.h (HOST_BITS_PER_PTR): Define if __x86_64__.
654 2016-08-17 Richard Biener <rguenther@suse.de>
656 * tree-ssa.c: Include tree-cfg.h and tree-dfa.h.
657 (verify_vssa): New function verifying virtual SSA form.
658 (verify_ssa): Call it.
659 * tree-ssa-loop-manip.c (slpeel_update_phi_nodes_for_guard2):
660 Do not apply loop-closed SSA handling to virtuals.
661 * ssa-iterators.h (op_iter_init): Handle GIMPLE_TRANSACTION.
662 * tree-into-ssa.c (prepare_use_sites_for): Skip virtual SSA names
663 when rewriting their symbol.
664 (prepare_def_site_for): Likewise.
665 * tree-chkp-opt.c (chkp_reduce_bounds_lifetime): Clear virtual
666 operands of moved stmts.
668 2016-08-17 Richard Biener <rguenther@suse.de>
670 PR tree-optimization/23855
671 * tree-ssa-loop-unswitch.c: Include tree-ssa-loop-manip.h.
672 (tree_unswitch_outer_loop): Iterate find_loop_guard as long as we
673 find guards to hoist. Do not update SSA form but rewrite virtuals
674 into loop closed SSA.
675 (find_loop_guard): Adjust to skip already hoisted guards. Do
676 not mark virtuals for renaming or update SSA form.
678 2016-08-17 Martin Liska <mliska@suse.cz>
680 * coverage.c (get_gcov_type): Replace GCOV_TYPE_SIZE with
681 a LONG_LONG_TYPE_SIZE comparison.
682 * gcov-io.h: Remove macro definitions.
683 * tree-profile.c (gimple_gen_edge_profiler): Replace usage
684 of GCOV_TYPE_ATOMIC_FETCH_ADD with a LONG_LONG_TYPE_SIZE
687 2016-08-16 Jakub Jelinek <jakub@redhat.com>
689 * config/i386/i386.c (enum ix86_builtins): Reorder enumerators, so
690 that builtins not mentioned in bdesc_* arrays come first, then
691 the ones mentioned in bdesc_* arrays in the order they appear in
692 the arrays in between IX86_BUILTIN__BDESC_*_FIRST and
693 IX86_BUILTIN__BDESC_*_LAST enumerator.
694 (bdesc_mpx): Fix up a comment typo.
695 (bdesc_multi_arg): Remove __builtin_ia32_vpcomne[bwdq] and
696 __builtin_ia32_vpcomneu[bwdq] builtins.
697 (BDESC_VERIFY, BDESC_VERIFYS): Define.
698 (ix86_init_mmx_sse_builtins, ix86_init_mpx_builtins): Verify
699 enum ix86_builtins ordering.
700 (ix86_expand_builtin): Use enum ix86_builtins ordering assumption
701 for direct bdesc_* array member access instead of searching all the
702 arrays until an fcode match is found.
704 2016-08-16 Uros Bizjak <ubizjak@gmail.com>
706 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite define_insn
707 pattern as define_insn_and_split. Split insn before reload to
709 (*<shift_insn><mode>3_mask): Ditto. Split insn before reload to
710 <shift_insn><mode>3_1.
711 (*<rotate_insn><mode>3_mask): Ditto. Split insn before reload to
712 <rotate_insn><mode>3_1.
714 2016-08-16 David Malcolm <dmalcolm@redhat.com>
717 * input.c (get_source_range_for_substring): Rename to...
718 (get_source_location_for_substring): ...this, adding param
719 "caret_idx", and converting output param from source_range * to
721 (get_source_range_for_char): New function.
722 (get_num_source_ranges_for_substring): Update comment to reflect
724 (assert_char_at_range): Update to use get_source_range_for_char
725 rather than get_source_range_for_substring.
726 (test_lexer_string_locations_concatenation_2): Likewise.
727 * substring-locations.h (get_source_range_for_substring): Rename
729 (get_source_location_for_substring): ...this, and adding param
730 "caret_idx", and converting output param from source_range * to
733 2016-08-16 David Malcolm <dmalcolm@redhat.com>
735 * input.c (class selftest::temp_source_file): Move to
737 (selftest::temp_source_file::temp_source_file): Move to
739 (selftest::temp_source_file::~temp_source_file): Likewise.
740 * selftest.c (selftest::temp_source_file::temp_source_file): Move
742 (selftest::temp_source_file::~temp_source_file): Likewise.
743 * selftest.h (class selftest::temp_source_file): Move here from
746 2016-08-16 Jakub Jelinek <jakub@redhat.com>
749 * tree-cfg.c (execute_fixup_cfg): Add node variable, use it. Before
750 inlining, add cgraph edge for the added __builtin_unreachable call.
753 * expmed.c (expand_mult_const): Change val_so_far's type to UHWI,
754 only cast it to SHWI for the final comparison.
756 2016-08-16 Martin Liska <mliska@suse.cz>
758 PR gcov-profile/36412
759 * doc/gcov.texi: Document --hash-filenames(-x).
760 * gcov.c (print_usage): Add the option.
761 (process_args): Process the option, sort options alphabetically.
762 (md5sum_to_hex): New function.
763 (make_gcov_file_name): Do the md5sum and append it to a
766 2016-08-16 Bin Cheng <bin.cheng@arm.com>
768 PR tree-optimization/69848
769 * config/aarch64/aarch64-simd.md (vcond<mode><mode>): Invert NE
770 and swtich operands to avoid additional NOT instruction.
771 (vcond<v_cmp_mixed><mode>): Ditto.
772 (vcondu<mode><mode>, vcondu<mode><v_cmp_mixed>): Ditto.
774 2016-08-16 Eric Botcazou <ebotcazou@adacore.com>
776 * doc/install.texi (*-*-solaris2*): Adjust latest change.
778 2016-08-16 Richard Biener <rguenther@suse.de>
780 PR tree-optimization/76783
781 * tree-ssa-propagate.c (ssa_prop_init): Use RPO order. Clear
782 BB visited flags at start.
784 2016-08-16 Bin Cheng <bin.cheng@arm.com>
786 PR tree-optimization/72817
787 PR tree-optimization/73450
788 * tree-ssa-loop-niter.c (number_of_iterations_ne): Check
789 multiple_of_p for adjusted IV.base.
791 2016-08-15 Uros Bizjak <ubizjak@gmail.com>
794 * config/i386/sse.md (<code><mode>3<mask_name><round_saeonly_name>):
795 Emit ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>
796 for !flag_finite_math_only or flag_signed_zeros.
797 (*<code><mode>3<mask_name><round_saeonly_name>): Rename from
798 *<code><mode>3_finite<mask_name><round_saeonly_name>. Do not
799 depend on flag_finite_math_only.
800 (ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>):
802 (*<code><mode>3<mask_name><round_saeonly_name>): Remove.
803 (*ieee_smin<mode>3): Ditto.
804 (*ieee_smax<mode>3): Ditto.
805 * config/i386/mmx.md (mmx_<code>v2sf3): Emit
806 mmx_ieee_<ieee_maxmin>v2sf3 for !flag_finite_math_only or
808 (*mmx_<code>v2sf3): Rename from *mmx_<code>v2sf3_finite. Do not
809 depend on flag_finite_math_only.
810 (mmx_ieee_<ieee_maxmin>v2sf3): New insn pattern.
811 (*mmx_<code>v2sf3): Remove.
812 * config/i386/subst.md (round_saeonly_mask_arg3): New subst attribute.
813 * config/i386/i386.c (ix86_expand_sse_fp_mimnax): Check
814 flag_signed_zeros instead of !flag_unsafe_math_optimizations.
816 2016-08-15 Segher Boessenkool <segher@kernel.crashing.org>
818 PR rtl-optimization/73650
819 * lra-constraints.c (simple_move_p): If the insn is multiple_sets
820 it is not a simple move.
822 2016-08-15 Martin Liska <mliska@suse.cz>
825 * gcc.c (do_spec_1): Call save_string with the right size.
826 (save_string): Do an assert about string we copy.
828 2016-08-15 Richard Biener <rguenther@suse.de>
830 * ree.c (rest_of_handle_ree): Remove redundant timevar push/pop.
831 * config/i386/i386.c (pass_data_insert_vzeroupper): Account to
833 (pass_data_stv): Likewise.
835 2016-08-15 Richard Biener <rguenther@suse.de>
837 PR tree-optimization/73434
838 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Preserve
839 TBAA info on the base when forwarding a non-invariant address.
841 2016-08-15 Jakub Jelinek <jakub@redhat.com>
843 * dwarf2out.c (struct checksum_attributes): Add
844 at_string_length_bit_size and at_string_length_byte_size fields.
845 (collect_checksum_attributes): Handle DW_AT_string_length_bit_size
846 and DW_AT_string_length_byte_size.
847 (die_checksum_ordered): Handle at_string_length_bit_size and
848 at_string_length_byte_size.
849 (gen_array_type_die): For dwarf_version >= 5 emit
850 DW_AT_string_length_byte_size instead of DW_AT_byte_size.
851 (adjust_string_types): For dwarf_version >= 5 remove
852 DW_AT_string_length_byte_size instead of DW_AT_byte_size.
853 (resolve_addr): Likewise.
856 * dwarf2out.c (string_types): New variable.
857 (gen_array_type_die): Change early_dwarf handling of
858 DW_AT_string_length, create DW_OP_call4 referencing the
859 length var temporarily. Handle parameters that are pointers
861 (adjust_string_types): New function.
862 (gen_subprogram_die): Temporarily set string_types to local var,
863 call adjust_string_types if needed.
864 (non_dwarf_expression, copy_deref_exprloc, optimize_string_length):
866 (resolve_addr): Adjust DW_AT_string_length if it is DW_OP_call4.
868 2016-08-15 Eric Botcazou <ebotcazou@adacore.com>
870 * doc/install.texi (*-*-solaris2*): Fix version number and document
871 requirement on GNU make for building libjava with the Solaris linker.
873 2016-08-15 Martin Liska <mliska@suse.cz>
874 Jakub Jelinek <jakub@redhat.com>
876 PR tree-optimization/72824
877 * tree-loop-distribution.c (const_with_all_bytes_same)
878 <case VECTOR_CST>: Fix a typo.
880 2016-08-14 Uros Bizjak <ubizjak@gmail.com>
883 * config/i386/avx512fintrin.h (_mm512_undefined_epi32):
884 Renamed from _mm512_undefined_si512.
885 (_mm_undefined_si512): New definition.
887 2016-08-13 Richard Biener <rguenther@suse.de>
889 * tree-ssa-forwprop.c (pass_forwprop::execute): Propagate
890 into PHIs and update the lattice for its def.
892 2016-08-12 Jakub Jelinek <jakub@redhat.com>
895 * ubsan.c (instrument_si_overflow): Pass true instead of false
897 (pass_ubsan::execute): Call gimple_purge_dead_eh_edges at the end
898 of bbs. Return TODO_cleanup_cfg if any returned true.
900 2016-08-12 Michael Meissner <meissner@linux.vnet.ibm.com>
902 * config/rs6000/vsx.md (vsx_concat_<mode>): Add support for the
903 ISA 3.0 MTVSRDD instruction.
904 (vsx_splat_<mode>): Change cpu type of MTVSRDD instruction to
907 2016-08-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
909 PR tree-optimization/71083
910 * tree-predcom.c (ref_at_iteration): Use a COMPONENT_REF for the
911 bitfield access when possible.
913 2016-08-12 Patrick Palka <ppalka@gcc.gnu.org>
916 * match.pd ((T)A CMP (T)B -> A CMP B): Allow (T)A to be a
917 sign-changing cast from a shorter unsigned type to a wider
920 2016-08-12 Jakub Jelinek <jakub@redhat.com>
922 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm,
923 vec_extract_hi_<mode>_mask, vec_extract_lo_<mode>_mask,
924 vec_extract_hi_<mode>_mask): Use Yk constraint instead of k.
926 2016-08-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
928 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
929 Correct costs for vec_construct.
931 2016-08-12 Bin Cheng <bin.cheng@arm.com>
933 PR tree-optimization/69848
934 * tree-vectorizer.h (enum vect_def_type): New condition reduction
935 type CONST_COND_REDUCTION.
936 * tree-vect-loop.c (vectorizable_reduction): Support new condition
937 reudction type CONST_COND_REDUCTION.
939 2016-08-12 Richard Biener <rguenther@suse.de>
941 PR tree-optimization/57326
942 * tree-ssa-pre.c (fully_constant_expression): Handle simplification
943 returning an SSA name.
944 (phi_translate_1): When fully_constant_expression returns a NAME
945 make sure we have a leader for it.
947 2016-08-12 Martin Liska <mliska@suse.cz>
948 Adam Fineman <afineman@afineman.com>
950 * gcov.c (process_file): Create .gcov file when .gcda
953 2016-08-12 Marek Polacek <polacek@redhat.com>
956 * alias.c (find_base_value): Adjust fall through comment.
957 * cfgexpand.c (expand_debug_expr): Likewise.
958 * combine.c (find_split_point): Likewise.
959 (expand_compound_operation): Likewise. Add FALLTHRU.
960 (make_compound_operation): Adjust fall through comment.
961 (canon_reg_for_combine): Add FALLTHRU.
962 (force_to_mode): Adjust fall through comment.
963 (simplify_shift_const_1): Likewise.
964 (simplify_comparison): Likewise.
965 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Add
967 * config/aarch64/predicates.md: Likewise.
968 * config/i386/i386.c (function_arg_advance_32): Likewise.
969 (ix86_gimplify_va_arg): Likewise.
970 (print_reg): Likewise.
971 (ix86_print_operand): Likewise.
972 (ix86_build_const_vector): Likewise.
973 (ix86_expand_branch): Likewise.
974 (ix86_sched_init_global): Adjust fall through comment.
975 (ix86_expand_args_builtin): Add FALLTHRU.
976 (ix86_expand_builtin): Likewise.
977 (ix86_expand_vector_init_one_var): Likewise.
978 * config/rs6000/rs6000.c (rs6000_emit_vector_compare_inner): Likewise.
979 (rs6000_adjust_cost): Likewise.
980 (insn_must_be_first_in_group): Likewise.
981 * config/rs6000/rs6000.md: Likewise. Adjust fall through comment.
982 * dbxout.c (dbxout_symbol): Adjust fall through comment.
983 * df-scan.c (df_uses_record): Likewise.
984 * dojump.c (do_jump): Add FALLTHRU.
985 * dwarf2out.c (mem_loc_descriptor): Likewise. Adjust fall through
987 (resolve_args_picking_1): Adjust fall through comment.
988 (loc_list_from_tree_1): Likewise.
989 * expmed.c (make_tree): Likewise.
990 * expr.c (expand_expr_real_2): Add FALLTHRU.
991 (expand_expr_real_1): Likewise. Adjust fall through comment.
992 * fold-const.c (const_binop): Adjust fall through comment.
993 (fold_truth_not_expr): Likewise.
994 (fold_cond_expr_with_comparison): Add FALLTHRU.
995 (fold_binary_loc): Likewise.
996 (contains_label_1): Adjust fall through comment.
997 (multiple_of_p): Likewise.
998 * gcov-tool.c (process_args): Add FALLTHRU.
999 * genattrtab.c (check_attr_test): Likewise.
1000 (write_test_expr): Likewise.
1001 * genconfig.c (walk_insn_part): Likewise.
1002 * genpreds.c (validate_exp): Adjust fall through comment.
1003 (needs_variable): Likewise.
1004 * gensupport.c (get_alternatives_number): Add FALLTHRU.
1005 (subst_dup): Likewise.
1006 * gimple-pretty-print.c (dump_gimple_assign): Likewise.
1007 * gimplify.c (gimplify_addr_expr): Adjust fall through comment.
1008 (gimplify_scan_omp_clauses): Add FALLTHRU.
1009 (goa_stabilize_expr): Likewise.
1010 * graphite-isl-ast-to-gimple.c (substitute_ssa_name): Adjust fall
1012 * hsa-gen.c (get_address_from_value): Likewise.
1013 * ipa-icf.c (sem_function::hash_stmt): Likewise.
1014 * ira.c (ira_setup_alts): Add FALLTHRU.
1015 * lra-eliminations.c (lra_eliminate_regs_1): Adjust fall through
1017 * lto-streamer-out.c (lto_output_tree_ref): Add FALLTHRU.
1018 * opts.c (common_handle_option): Likewise.
1019 * read-rtl.c (read_rtx_code): Likewise.
1020 * real.c (round_for_format): Likewise.
1021 * recog.c (asm_operand_ok): Likewise.
1022 * reginfo.c (reg_scan_mark_refs): Adjust fall through comment.
1023 * reload1.c (set_label_offsets): Likewise.
1024 (eliminate_regs_1): Likewise.
1025 (reload_reg_reaches_end_p): Likewise.
1026 * rtlanal.c (commutative_operand_precedence): Add FALLTHRU.
1027 (rtx_cost): Likewise.
1028 * sched-rgn.c (is_exception_free): Likewise.
1029 * simplify-rtx.c (simplify_rtx): Adjust fall through comment.
1030 * stor-layout.c (int_mode_for_mode): Likewise.
1031 * toplev.c (print_to_asm_out_file): Likewise.
1032 (print_to_stderr): Likewise.
1033 * tree-cfg.c (gimple_verify_flow_info): Likewise.
1034 * tree-chrec.c (chrec_fold_plus_1): Add FALLTHRU.
1035 (chrec_fold_multiply): Likewise.
1036 (evolution_function_is_invariant_rec_p): Likewise.
1037 (for_each_scev_op): Likewise.
1038 * tree-data-ref.c (siv_subscript_p): Likewise.
1039 (get_references_in_stmt): Likewise.
1040 * tree.c (find_placeholder_in_expr): Adjust fall through comment.
1041 (substitute_in_expr): Likewise.
1042 (type_cache_hasher::equal): Likewise.
1043 (walk_type_fields): Likewise.
1044 * var-tracking.c (adjust_mems): Add FALLTHRU.
1045 (set_dv_changed): Adjust fall through comment.
1046 * varasm.c (default_function_section): Add FALLTHRU.
1048 2016-08-12 Marek Polacek <polacek@redhat.com>
1051 * tree-complex.c (expand_complex_division): Add missing break.
1053 2016-08-12 Richard Biener <rguenther@suse.de>
1055 * passes.c (execute_todo): Do not push/pop TV_TODO.
1056 (execute_one_ipa_transform_pass): Move timevar push/pop TODO execution.
1057 (execute_one_pass): Likewise.
1058 * common.opt (ftime-report-details): New switch.
1059 * doc/invoke.texi (ftime-report-details): Document.
1060 * timevar.h (timer::print_row): Adjust signature.
1061 (timer::all_zero): New static helper.
1062 (timer::child_map_t): New typedef.
1063 (timer::time_var_def): Add children field.
1064 * timevar.c (timer::named_items::print): Adjust.
1065 (timer::~timer): Free timevar recorded children.
1066 (timer::pop_internal): When -ftime-report-details record
1067 time spent in sub-timevars.
1068 (timer::print_row): Adjust.
1069 (timer::print): Print sub-timevar stats, use all_zero.
1070 * timevar.def (TV_TODO): Remove.
1072 2016-08-12 Richard Biener <rguenther@suse.de>
1074 PR tree-optimization/72851
1075 * tree-ssa-propagate.c: Include cfganal.h. Rewrite block and stmt
1076 worklists to use bitmaps indexed in execution order.
1077 (executable_blocks, cfg_blocks_num, cfg_blocks_tail, cfg_blocks_head,
1078 bb_in_list, interesting_ssa_edges, varying_ssa_edges): Remove.
1079 (cfg_blocks): Make a bitmap.
1080 (bb_to_cfg_order, cfg_order_to_bb, ssa_edge_worklist, uid_to_stmt):
1082 (cfg_blocks_empty_p): Adjust.
1083 (cfg_blocks_add): Likewise.
1084 (cfg_blocks_get): Likewise.
1085 (add_ssa_edge): Likewise.
1086 (add_control_edge): Likewise.
1087 (simulate_stmt): Likewise.
1088 (process_ssa_edge_worklist): Likewise.
1089 (simulate_block): Likewise.
1090 (ssa_prop_init): Compute PRE order and stmt UIDs.
1091 (ssa_prop_fini): Adjust.
1092 (ssa_propagate): Adjust.
1094 2016-08-12 Richard Biener <rguenther@suse.de>
1096 * tree-vrp.c (vrp_visit_phi_node): Allow a last iteration if
1097 the currently executable edges have fixed ranges. Always
1098 go through update_value_range.
1100 2016-08-12 Alexandre Oliva <aoliva@redhat.com>
1104 (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Const_tree-ify.
1105 (LANG_HOOKS_FUNCTION_DECL_DELETED_P): Likewise.
1106 (LANG_HOOKS_FUNCTION_DECL_DEFAULTED): Set default.
1107 (LANG_HOOKS_DECLS): Add it.
1108 * langhooks.h (struct lang_hooks_for_decls): Add
1109 function_decl_defaulted. Const_tree-ify
1110 function_decl_explicit_p and function_decl_deleted_p.
1111 * dwarf2out.c (gen_subprogram_die): Add DW_AT_defaulted
1112 attribute. Add DW_AT_deleted instead of DW_AT_GNU_deleted,
1113 also at strict DWARF v5.
1116 * dwarf2out.c (decl_quals): Don't map TREE_READONLY to
1117 TYPE_QUAL_CONST in reference-typed decls.
1120 * dwarf2out.c (loc_list_from_tree_1): Expand some CONSTRUCTORs
1121 in DW_OP_pieces, just enough to handle pointers to member
1123 (gen_remaining_tmpl_value_param_die_attribute): Use a location
1124 expression on DWARFv5 if a constant value doesn't work.
1126 2016-08-11 David Malcolm <dmalcolm@redhat.com>
1128 * selftest-run-tests.c (selftest::run_tests): Call selftest_c_tests.
1129 * selftest.c (selftest::test_assertions): New function.
1130 (selftest::selftest_c_tests): New function.
1131 * selftest.h (selftest::selftest_c_tests): New declaration.
1133 2016-08-11 Richard Biener <rguenther@suse.de>
1134 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1136 PR rtl-optimization/72855
1137 * df-core.c (df_verify): Turn off DF_VERIFY_SCHEDULED at end.
1139 2016-08-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1142 * vsx.md (vsx_load_<mode>): For P8LE, emit swaps at expand time.
1143 (vsx_store_<mode>): Likewise.
1145 2015-08-11 H.J. Lu <hongjiu.lu@intel.com>
1147 * config/i386/i386.c (timode_scalar_to_vector_candidate_p): Allow
1148 TImode CONST_WIDE_INT store.
1149 (timode_scalar_chain::convert_insn): Handle CONST_WIDE_INT store.
1151 2015-08-11 H.J. Lu <hongjiu.lu@intel.com>
1153 * config/i386/i386.h (MOVE_MAX_PIECES): Use TImode in 64-bit
1154 mode if unaligned SSE load and store are optimal.
1156 2016-08-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
1158 PR tree-optimization/71083
1159 * tree-predcom.c (ref_at_iteration): Correctly align the
1162 2016-08-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1164 * config/s390/s390-builtin-types.def: Add INT128 types.
1165 * config/s390/s390-builtins.def: Add INT128 variants for the add
1166 sub low-level builtins dealing with TImode.
1167 * config/s390/s390.c (s390_expand_builtin): Allow mode conversions
1168 via subreg when expanding a builtin.
1169 * config/s390/s390.md: Remove UNSPEC_VEC_ADDC_U128,
1170 UNSPEC_VEC_SUB_U128, and UNSPEC_VEC_SUBC_U128 constants.
1172 * config/s390/vecintrin.h: Adjust builtin names accordingly.
1173 * config/s390/vx-builtins.md ("vec_add_u128"): Remove expander.
1174 ("vec_addc<mode>", "vec_addc_u128"): Merge to
1175 "vacc<bhfgq>_<mode>".
1176 ("vec_adde_u128"): Rename to "vacq". Change mode to TImode.
1177 ("vec_addec_u128"): Rename to "vacccq". Change mode to TImode.
1178 ("vec_subc<mode>", "vec_subc_u128"): Merge to
1179 "vscbi<bhfgq>_<mode>".
1180 ("vec_sube_u128"): Rename to "vsbiq". Change mode to TImode.
1181 ("vec_subec_u128"): Rename to "vsbcbiq". Change mode to TImode.
1183 2016-08-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1185 * config/s390/s390-builtins.def: Mark last operand of s390_vlvg*
1187 2016-08-11 Bin Cheng <bin.cheng@arm.com>
1189 * config/aarch64/aarch64-simd.md (vcond<mode><mode>): Delete
1191 (vcond<v_cmp_mixed><mode>): Ditto.
1192 (vcondu<mode><mode>, vcondu<mode><v_cmp_mixed>): Ditto.
1194 2016-08-11 Bin Cheng <bin.cheng@arm.com>
1196 * config/aarch64/aarch64-simd.md (vec_cmp<mode><v_cmp_result>): Init
1197 variable explicitly, also assert on it before use.
1199 2016-08-11 Richard Biener <rguenther@suse.de>
1201 PR tree-optimization/72772
1202 * cfgloopmanip.c (create_preheader): Use split_edge if there
1203 is a single loop entry, avoiding degenerate PHIs.
1205 2016-08-11 Richard Biener <rguenther@suse.de>
1207 * tree-ssa-threadbackward.c (pass_data_thread_jumps): Remove
1208 unconditional TODO_cleanup_cfg.
1209 (pass_thread_jumps::execute): Initialize loops, perform a CFG
1210 cleanup only if we threaded a jump.
1212 2016-08-11 Alan Modra <amodra@gmail.com>
1215 * lra-constraints.c (simplify_operand_subreg): Allow subreg
1216 mode for mem when SLOW_UNALIGNED_ACCESS if inner mode is also
1217 slow. Emit two reloads for slow mem case, first loading in
1218 fast innermode, then converting to required mode.
1220 2016-08-10 Kelvin Nilsen <kelvin@gcc.gnu.org>
1222 * config/rs6000/altivec.h (vec_extract_exp): New macro.
1223 (vec_extract_sig): New macro.
1224 (vec_insert_exp): New macro.
1225 (vec_test_data_class): New macro.
1226 (scalar_extract_exp): New macro.
1227 (scalar_extract_sig): New macro.
1228 (scalar_insert_exp): New macro.
1229 (scalar_test_data_class): New macro.
1230 (scalar_test_neg): New macro.
1231 (scalar_cmp_exp_gt): New macro.
1232 (scalar_cmp_exp_lt): New macro.
1233 (scalar_cmp_exp_eq): New macro.
1234 (scalar_cmp_exp_unordered): New macro.
1235 * config/rs6000/predicates.md (u7bit_cint_operand): New predicate
1236 to enforce constraint that operand is a 7-bit unsigned literal.
1237 * config/rs6000/rs6000-builtin.def (BU_P9V_64BIT_VSX_1): New macro
1238 for power9 built-ins.
1239 (BU_P9V_VSX_2): Likewise.
1240 (BU_P9V_64BIT_VSX_2): Likewise.
1241 (VSEEDP): Add scalar extract exponent support.
1242 (VSEESP): Add scalar extract signature support.
1243 (VSTDCNDP): Add scalar test negative support.
1244 (VSTDCNSP): Likewise.
1245 (VSIEDP): Add scalar insert exponent support.
1246 (VSCEDPGT): Add scalar compare exponent greater than support.
1247 (VSCEDPLT): Add scalar compare exponent less than support.
1248 (VSCEDPEQ): Add scalar compare exponent test-for-equality support.
1249 (VSCEDPUO): Add scalar compare exponent test-for-unordered support.
1250 (VSTDCDP): Add scalar test data class support.
1251 (VSTDCSP): Likewise.
1252 (VSEEDP): Add overload support for scalar extract exponent
1254 (VSESDP): Add overload support for scalar extract signature
1256 (VSTDCN): Add overload support for scalar test negative
1258 (VSTDCNDP): Add overload support for scalar test negative
1260 (VSTDCNSP): Add overload support for scalar test negative
1262 (VSIEDP): Add overload support for scalar insert exponent
1264 (VSTDC): Add overload support for scalar test data class
1266 (VSTDCDP): Add overload support for scalar test data class
1268 (VSTDCSP): Add overload support for scalar test data class
1270 (VSCEDPGT): Add overload support for scalar compare exponent
1271 greater than operation.
1272 (VSCEDPLT): Add overload support for scalar compare exponent
1273 less than operation.
1274 (VSCEDPEQ): Add overload support for scalar compare exponent
1275 test-for-equality operation.
1276 (VSCEDPUO): Add overload support for scalar compare exponent
1277 test-for-unordered operation.
1278 (VEEDP): Add vector extract exponent support.
1280 (VESDP): Add vector extract significand support.
1282 (VIEDP): Add vector insert exponent support.
1284 (VTDCDP): Add vector test data class support.
1286 (VES): Add overload support for vector extract significand operation.
1289 (VEE): Add overload support for vector extract exponent operation.
1292 (VTDC): Add overload support for vector test data class operation.
1295 (VIE): Add overload support for vector insert exponent operation.
1298 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
1299 overloaded binary floating point functions.
1300 (altivec_resolve_overloaded_builtin): Improve error messages to
1301 distinguish between functions not supported in the current
1302 compiler configuration and functions that were invoked with an
1303 invalid parameter combination, and include the built-in function
1304 name in both error messages.
1305 * config/rs6000/rs6000-protos.h (rs6000_overloaded_builtin_name):
1307 * config/rs6000/rs6000.c (rs6000_overloaded_builtin_name): New
1309 (rs6000_expand_binop_builtin): Add check to enforce that argument
1310 2 of the test data class operations is a 7-bit unsigned literal.
1311 (rs6000_invalid_builtin): Add code to issue an error message if a
1312 built-in function that requires the power9_vector and -m32
1313 command-line options is compiled without these options.
1314 * config/rs6000/vsx.md (UNSPEC_VSX_SXEXPDP): New value.
1315 (UNSPEC_VSX_SXSIGDP): New value.
1316 (UNSPEC_VSX_SXSIGPDP): New value.
1317 (UNSPEC_VSX_SIEXPDP): New value.
1318 (UNSPEC_VSX_SCMPEXPDP): New value.
1319 (UNSPEC_VSX_STSTDC): New value.
1320 (UNSPEC_VSX_VXEXP): New value.
1321 (UNSPEC_VSX_VXSIG): New value.
1322 (UNSPEC_VSX_VIEXP): New value.
1323 (UNSPEC_VSX_VTSTDC): New value.
1324 (xsxexpdp): New insn for scalar extract exponent.
1325 (xsxsigdp): New insn for scalar extract significand.
1326 (xsiexpdp): New insn for scalar insert exponent.
1327 (xscmpexpdp_<code>): New expansion for scalar compare exponents.
1328 (*xscmpexpdp): New insn for scalar compare exponents.
1329 (xststdc<Fvsx): New expansion for both single- and
1330 double-precision scalar test data class operations.
1331 (xststdcneg<Fvsx>): New expansion for both single- and
1332 double-precision scalar test for negative value operations.
1333 (*xststdc<Fvsx>): New insn for scalar test data class
1335 (xvxexp<VSs>): New insn for single- and double-precision
1336 vector extract exponent operation.
1337 (xvxsig<VSs>): New insn for single- and double-precision
1338 vector extract significand operation.
1339 (xviexp<VSs>): New insn for single- and double-precision
1340 vector insert exponent operation.
1341 (xvtstdc<VSs>): New insn for single- and double-precision
1342 vector test data class operation.
1343 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
1344 built-in functions to represent the Power9 binary floating-point
1345 support instructions.
1347 2016-08-10 bin cheng <bin.cheng@arm.com>
1349 * doc/sourcebuild.texi (@item vect_cond_mixed): New item.
1351 2016-08-10 Alan Lawrence <alan.lawrence@arm.com>
1352 Renlin Li <renlin.li@arm.com>
1353 Bin Cheng <bin.cheng@arm.com>
1355 * config/aarch64/iterators.md (V_cmp_mixed, v_cmp_mixed): New.
1356 * config/aarch64/aarch64-simd.md (<su><maxmin>v2di3): Call
1357 gen_vcondv2div2di instead of gen_aarch64_vcond_internalv2div2di.
1358 (aarch64_vcond_internal<mode><mode>): Delete pattern.
1359 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): Ditto.
1360 (vcond<v_cmp_result><mode>): Ditto.
1361 (vcond<mode><mode>): Re-implement using vec_cmp and vcond_mask.
1362 (vcondu<mode><mode>): Ditto.
1363 (vcond<v_cmp_mixed><mode>): New pattern.
1364 (vcondu<mode><v_cmp_mixed>): New pattern.
1365 (aarch64_cmtst<mode>): Revise comment using aarch64_vcond instead
1366 of aarch64_vcond_internal.
1368 2016-08-10 Alan Lawrence <alan.lawrence@arm.com>
1369 Renlin Li <renlin.li@arm.com>
1370 Bin Cheng <bin.cheng@arm.com>
1372 * config/aarch64/aarch64-simd.md (vec_cmp<mode><mode>): New pattern.
1373 (vec_cmp<mode><v_cmp_result>): New pattern.
1374 (vec_cmpu<mode><mode>): New pattern.
1375 (vcond_mask_<mode><v_cmp_result>): New pattern.
1377 2016-08-10 Yuri Rumyantsev <ysrumyan@gmail.com>
1379 PR tree-optimization/71734
1380 * tree-ssa-loop-im.c (ref_indep_loop_p): Add new argument
1381 REF_LOOP, invoke ref_indep_loop_p_1.
1382 (outermost_indep_loop): Pass LOOP argumnet where REF was defined
1383 to ref_indep_loop_p.
1384 (ref_indep_loop_p_1): Fix commentary, add argument REF_LOOP,
1385 combine it with ref_indep_lopp_p_2, update SAFELEN if only REF
1386 is inside LOOP, do not cache dpendence value for loops with
1388 (ref_indep_loop_p_2): Delete function.
1389 (can_sm_ref_p): Pass LOOP as additional argument to
1392 2016-08-10 Michael Meissner <meissner@linux.vnet.ibm.com>
1395 * config/rs6000/rs6000.c (mem_operand_ds_form): Add check for op
1396 being an offsettable address.
1398 2016-08-10 Martin Liska <mliska@suse.cz>
1400 PR gcov-profile/58306
1401 * tree-profile.c (gimple_init_edge_profiler): Create conditionally
1402 atomic variants of profile update functions.
1404 2016-08-10 Martin Liska <mliska@suse.cz>
1406 Cherry picked (and modified) from google-4_7 branch
1407 2012-12-26 Rong Xu <xur@google.com>
1408 * common.opt (fprofile-update): Add new flag.
1409 * coretypes.h: Define enum profile_update.
1410 * doc/invoke.texi: Document -fprofile-update.
1411 * gcov-io.h: Declare GCOV_TYPE_ATOMIC_FETCH_ADD and
1412 GCOV_TYPE_ATOMIC_FETCH_ADD_FN.
1413 * tree-profile.c (gimple_init_edge_profiler): Generate
1414 also atomic profiler update.
1415 (gimple_gen_edge_profiler): Likewise.
1417 2016-08-10 David Malcolm <dmalcolm@redhat.com>
1419 * toplev.c (finalize): Set aux_info_file, asm_out_file, and
1420 stack_usage_file to NULL after fclose calls.
1422 2016-08-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
1425 * reload.c (push_reload): Compute subreg_in_class for
1426 subregs of constants and plus expressions. Remove special
1427 handling of SYMBOL_REFs.
1429 2016-08-10 Alan Modra <amodra@gmail.com>
1432 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Return
1433 SImode for TARGET_E500_DOUBLE when given SImode.
1435 2016-08-09 David Wohlferd <dw@LimeGreenSocks.com>
1437 * config/i3836/avx512fintrin.h (_mm512_cvtsepi64_epi32): Remove
1438 unused variable __O.
1440 2016-08-09 Martin Liska <mliska@suse.cz>
1442 * doc/gcov.texi: Change _gcov_dump to __gcov_dump and
1443 _gcov_reset to __gcov_reset.
1444 * doc/gcov-tool.texi: Fix typo.
1446 2016-08-09 Martin Liska <mliska@suse.cz>
1448 * value-prof.c (gimple_divmod_values_to_profile): Do not
1449 instrument MOD histogram if a value is not a SSA name.
1451 2016-08-09 Martin Liska <mliska@suse.cz>
1453 * value-prof.c (dump_histogram_value): Swap pow2 and non-pow2
1456 2016-08-09 Renlin Li <renlin.li@arm.com>
1459 * calls.c (prepare_call_address): Convert funexp to Pmode when
1461 * config/aarch64/aarch64.md (sibcall): Remove fix for PR 64971.
1462 (sibcall_value): Likewise.
1464 2016-08-09 Marek Polacek <polacek@redhat.com>
1467 * cselib.c (cselib_expand_value_rtx_1): Add return.
1468 * gengtype.c (dbgprint_count_type_at): Likewise.
1469 * hsa-gen.c (gen_hsa_insn_for_internal_fn_call): Likewise.
1470 * reg-stack.c (get_true_reg): Restructure to avoid fallthrough warning.
1472 2016-08-09 Martin Jambor <mjambor@suse.cz>
1475 * ipa-polymorphic-call.c (get_dynamic_type): Bail out gracefully
1476 if instance is a MEM_REF.
1478 2016-08-09 Uros Bizjak <ubizjak@gmail.com>
1481 * config/i386/i386.md (*movtf_internal): Use
1482 lra_in_progress || reload_completed instead of !can_create_pseudo_p
1483 in the insn constraint.
1484 (*movxf_internal): Ditto.
1485 (*movdf_internal): Ditto.
1486 (*movsf_internal): Ditto.
1488 2016-08-09 Bin Cheng <bin.cheng@arm.com>
1490 PR tree-optimization/72772
1491 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
1494 2016-08-09 Bin Cheng <bin.cheng@arm.com>
1496 PR tree-optimization/72772
1497 * tree-ssa-loop-niter.h (simplify_using_initial_conditions): Delete
1499 * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): Delete
1500 parameter STOP and update calls. Move expand_simple_operations
1501 function call from here...
1502 (simplify_using_initial_conditions): ...to here. Delete parameter
1504 (tree_simplify_using_condition): Delete parameter STOP.
1505 * tree-scalar-evolution.c (simple_iv_with_niters): Update call to
1506 simplify_using_initial_conditions.
1508 2016-08-09 Matthew Fortune <matthew.fortune@imgtec.com>
1511 * config/mips/mips.c (mips_atomic_assign_expand_fenv):
1512 Use create_tmp_var_raw instead of create_tmp_var.
1514 2016-08-09 Richard Biener <rguenther@suse.de>
1516 * tree-ssa-threadbackward.c (profitable_jump_thread_path):
1517 Treat same SSA names related.
1519 2016-08-09 Jakub Jelinek <jakub@redhat.com>
1521 PR tree-optimization/72824
1522 * tree-loop-distribution.c (const_with_all_bytes_same): Verify
1523 real_zerop is not negative.
1525 2016-08-09 Richard Biener <rguenther@suse.de>
1527 PR tree-optimization/71802
1528 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Make sure to catch
1529 all merge opportunities with the predecessor.
1531 2016-08-09 Richard Biener <rguenther@suse.de>
1534 * ipa-prop.c (ipa_modify_formal_parameters): Build
1535 parameter types with natural alignment also for the
1538 2016-08-08 Andi Kleen <ak@linux.intel.com>
1540 * tree-vrp.c (get_single_symbol): Always initialize inv and neg.
1542 2016-08-08 David Malcolm <dmalcolm@redhat.com>
1545 * langhooks-def.h (LANG_HOOKS_RUN_LANG_SELFTESTS): New default
1546 do-nothing langhook.
1547 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_RUN_LANG_SELFTESTS.
1548 * langhooks.h (struct lang_hooks): Add run_lang_selftests.
1549 * selftest-run-tests.c: Include "tree.h" and "langhooks.h".
1550 (selftest::run_tests): Call lang_hooks.run_lang_selftests.
1552 2016-08-08 David Malcolm <dmalcolm@redhat.com>
1555 * input.c: Ensure that HAVE_ICONV is defined.
1557 2016-08-08 Jakub Jelinek <jakub@redhat.com>
1560 * omp-low.c (lower_lastprivate_clauses): Set TREE_NO_WARNING on the
1561 private vars for lastprivate and for linear iterator.
1564 * omp-simd-clone.c: Include varasm.h.
1565 (simd_clone_create): Copy over DECL_COMDAT, DECL_WEAK, DECL_EXTERNAL,
1566 DECL_VISIBILITY, DECL_VISIBILITY_SPECIFIED, DECL_DLLIMPORT_P and for
1567 DECL_ONE_ONLY call make_decl_one_only. Fix up spelling in comment and
1568 update function name.
1570 2016-07-29 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
1572 * config/avr/driver-avr.c (specfiles_doc_url): Remove.
1573 (avr_diagnose_devicespecs_error): Remove.
1574 (avr_devicespecs_file): Remove composing absolute path for specfile
1575 and its verbose info. Remove conditions to check specs-file,
1577 2016-08-08 Jakub Jelinek <jakub@redhat.com>
1579 PR rtl-optimization/72821
1580 * lra-spills.c (regno_in_use_p): Don't use BLOCK_FOR_INSN on barriers,
1581 just return false for them.
1583 2016-08-08 Alan Modra <amodra@gmail.com>
1586 * config/rs6000/rs6000.c (toc_relative_expr_p): Allow (lo_sum (high))
1587 toc refs created during reload. Update function comment.
1589 2016-08-08 Alan Modra <amodra@gmail.com>
1592 * config/rs6000/rs6000.md (mov<mode>_hardfloat): Sort
1593 alternatives. Put loads first, then stores, and reg/reg moves
1594 within same class later. Delete attr length.
1596 2016-08-08 Alan Modra <amodra@gmail.com>
1599 * config/rs6000/rs6000.c (mem_operand_gpr): Remove vsx dform test.
1600 (mem_operand_ds_form): New predicate.
1601 * config/rs6000/rs6000-protos.h (mem_operand_ds_form): Declare.
1602 * config/rs6000/constraints.md (wY): Use mem_operand_df_form.
1603 * config/rs6000/predicates.md (offsettable_mem_14bit_operand): Delete.
1604 * config/rs6000/rs6000.md (f32_lm2, f32_sm2): Use wY for SF.
1605 (extendsfdf2_fpr): Replace o constraint with wY.
1607 2016-08-07 Jan Hubicka <hubicka@ucw.cz>
1609 * tree-ssa-threadbackward.c: Include tree-inline.h
1610 (profitable_jump_thread_path): Use estimate_num_insns to estimate
1611 size of copied block; for cold paths reduce duplication.
1612 (find_jump_threads_backwards): Remove redundant tests.
1613 (pass_thread_jumps::gate): Enable for -Os.
1615 2016-08-07 Jakub Jelinek <jakub@redhat.com>
1618 * stor-layout.c (layout_decl): Fix up formatting.
1619 (relayout_decl): Allow DECL to be FIELD_DECL.
1621 2016-08-07 Alan Modra <amodra@gmail.com>
1623 * config/rs6000/rs6000.md (fix_trunc<mode>si2): Fix mode of reg.
1625 2016-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
1627 * data-streamer-in.c (streamer_read_wide_int): New.
1628 (streamer_read_widest_int): Renamed function.
1629 * data-streamer-out.c (streamer_write_wide_int): New
1630 (streamer_write_widest_int): Renamed function.
1631 * lto-streamer-in.c (streamer_read_wi): Renamed and moved to
1633 (input_cfg): Call renamed function.
1634 * lto-streamer-out.c (streamer_write_wi): Renamed and moved to
1636 (output_cfg): Call renamed function.
1637 * data-streamer.h: Add declarations.
1639 2016-08-08 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1641 * tree-ssa-ccp.c (extend_mask): New param sgn.
1642 Remove ORing with wi::mask.
1643 (get_default_value): Adjust call to extend_mask to pass sign.
1644 (evaluate_stmt): Likewise.
1646 2016-08-06 Jakub Jelinek <jakub@redhat.com>
1648 * gcov.c (handle_cycle): Use INTTYPE_MAXIMUM (int64_t) instead of
1651 2016-08-06 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1653 * match.pd ((intptr_t) x eq/ne CST to x eq/ne (typeof x) cst): Disable
1654 transform if operand's type is pointer to function or method.
1656 2016-08-05 Patrick Palka <ppalka@gcc.gnu.org>
1658 PR tree-optimization/18046
1659 * tree-ssa-threadedge.c: Include cfganal.h.
1660 (simplify_control_statement_condition): If simplifying a
1661 GIMPLE_SWITCH, replace the index operand of the GIMPLE_SWITCH
1662 with the dominating ASSERT_EXPR before handing it off to VRP.
1663 Mention that a CASE_LABEL_EXPR may be returned.
1664 (thread_around_empty_blocks): Adjust to handle
1665 simplify_control_statement_condition() returning a
1667 (thread_through_normal_block): Likewise.
1668 * tree-vrp.c (simplify_stmt_for_jump_threading): Simplify
1669 a switch statement by trying to determine which case label
1672 2016-08-05 Vladimir Makarov <vmakarov@redhat.com>
1674 PR rtl-optimization/69847
1675 * lra-constraints.c (process_invariant_for_inheritance): Save
1676 pattern instead of src.
1677 (remove_inheritance_pseudos): Use the pattern. Add assert.
1679 2016-08-05 David Malcolm <dmalcolm@redhat.com>
1681 * input.c (string_concat::string_concat): New constructor.
1682 (string_concat_db::string_concat_db): New constructor.
1683 (string_concat_db::record_string_concatenation): New method.
1684 (string_concat_db::get_string_concatenation): New method.
1685 (string_concat_db::get_key_loc): New method.
1686 (class auto_cpp_string_vec): New class.
1687 (get_substring_ranges_for_loc): New function.
1688 (get_source_range_for_substring): New function.
1689 (get_num_source_ranges_for_substring): New function.
1690 (class selftest::lexer_test_options): New class.
1691 (struct selftest::lexer_test): New struct.
1692 (class selftest::ebcdic_execution_charset): New class.
1693 (selftest::ebcdic_execution_charset::s_singleton): New variable.
1694 (selftest::lexer_test::lexer_test): New constructor.
1695 (selftest::lexer_test::~lexer_test): New destructor.
1696 (selftest::lexer_test::get_token): New method.
1697 (selftest::assert_char_at_range): New function.
1698 (ASSERT_CHAR_AT_RANGE): New macro.
1699 (selftest::assert_num_substring_ranges): New function.
1700 (ASSERT_NUM_SUBSTRING_RANGES): New macro.
1701 (selftest::assert_has_no_substring_ranges): New function.
1702 (ASSERT_HAS_NO_SUBSTRING_RANGES): New macro.
1703 (selftest::test_lexer_string_locations_simple): New function.
1704 (selftest::test_lexer_string_locations_ebcdic): New function.
1705 (selftest::test_lexer_string_locations_hex): New function.
1706 (selftest::test_lexer_string_locations_oct): New function.
1707 (selftest::test_lexer_string_locations_letter_escape_1): New function.
1708 (selftest::test_lexer_string_locations_letter_escape_2): New function.
1709 (selftest::test_lexer_string_locations_ucn4): New function.
1710 (selftest::test_lexer_string_locations_ucn8): New function.
1711 (selftest::uint32_from_big_endian): New function.
1712 (selftest::test_lexer_string_locations_wide_string): New function.
1713 (selftest::uint16_from_big_endian): New function.
1714 (selftest::test_lexer_string_locations_string16): New function.
1715 (selftest::test_lexer_string_locations_string32): New function.
1716 (selftest::test_lexer_string_locations_u8): New function.
1717 (selftest::test_lexer_string_locations_utf8_source): New function.
1718 (selftest::test_lexer_string_locations_concatenation_1): New
1720 (selftest::test_lexer_string_locations_concatenation_2): New
1722 (selftest::test_lexer_string_locations_concatenation_3): New
1724 (selftest::test_lexer_string_locations_macro): New function.
1725 (selftest::test_lexer_string_locations_stringified_macro_argument):
1727 (selftest::test_lexer_string_locations_non_string): New function.
1728 (selftest::test_lexer_string_locations_long_line): New function.
1729 (selftest::test_lexer_char_constants): New function.
1730 (selftest::input_c_tests): Call the new test functions once per
1731 case within the line_table test matrix.
1732 * input.h (struct string_concat): New struct.
1733 (struct location_hash): New struct.
1734 (class string_concat_db): New class.
1735 * substring-locations.h: New header.
1737 2016-08-05 Patrick Palka <ppalka@gcc.gnu.org>
1739 PR tree-optimization/72810
1740 * tree-vrp.c (simplify_switch_using_ranges): Avoid changing
1741 the type of the case labels when truncating.
1743 2016-08-05 James Greenhalgh <james.greenhalgh@arm.com>
1746 * config/aarch64/aarch64.h (aarch64_fp16_type_node): Declare.
1747 (aarch64_fp16_ptr_type_node): Likewise.
1748 * config/aarch64/aarch64-simd-builtins.c
1749 (aarch64_fp16_ptr_type_node): Define.
1750 (aarch64_init_fp16_types): New, refactored out of...
1751 (aarch64_init_builtins): ...here, update to call
1752 aarch64_init_fp16_types.
1753 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Handle
1755 (aapcs_vfp_sub_candidate): Likewise.
1757 2016-08-05 Martin Liska <mliska@suse.cz>
1758 Joshua Cranmer <Pidgeot18@gmail.com>
1760 * gcov.c (line_t::has_block): New function.
1761 (enum loop_type): New enum.
1762 (handle_cycle): New function.
1763 (unblock): Likewise.
1764 (circuit): Likewise.
1765 (get_cycles_count): Likewise.
1766 (accumulate_line_counts): Use new loop detection algorithm.
1768 2016-08-05 Martin Liska <mliska@suse.cz>
1770 * gcov.c (output_intermediate_file): Rename
1771 function_info::line_next to next_file_fn.
1772 (process_file): Likewise.
1773 (read_graph_file): Likewise.
1774 (accumulate_line_counts): Likewise.
1775 (output_lines): Likewise.
1777 2016-08-05 Richard Biener <rguenther@suse.de>
1779 * tree-ssa-threadupdate.c (thread_block_1): Remove unnecessary
1780 restriction on threading to a loop header.
1782 2016-08-05 Richard Biener <rguenther@suse.de>
1784 * tree-cfgcleanup.c (tree_forwarder_block_p): Use bb_loop_header_p.
1785 * cfghooks.c (force_nonfallthru): If we ended up splitting a latch
1786 adjust loop info accordingly.
1788 2016-08-05 Kugan Vivekanandarajah <kuganv@linaro.org>
1790 * tree-vrp.c (extract_range_basic): Check cfun->after_inlining
1791 before folding call to __builtin_constant_p with parameters to false.
1793 2016-08-05 Alan Modra <amodra@gmail.com>
1795 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Delete
1796 code accidentally committed 2016-05-02 providing class when given
1799 2016-08-04 Patrick Palka <ppalka@gcc.gnu.org>
1801 * tree-vrp.c (simplify_switch_using_ranges): Try to truncate
1802 the case label ranges that partially overlap with OP's value
1805 2016-08-04 Uros Bizjak <ubizjak@gmail.com>
1808 * config/i386/avx512fintrin.h (_mm512_cmp_epi32_mask) [!__OPTIMIZE__]:
1809 Cast builtin function result to __mmask16 instead of __mmask8.
1810 (_mm512_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
1811 (_mm512_mask_cmp_epi32_mask) [!__OPTIMIZE__]: Ditto.
1812 (_mm512_mask_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
1814 2016-08-04 David Malcolm <dmalcolm@redhat.com>
1816 * selftest.h (ASSERT_TRUE): Reimplement in terms of...
1817 (ASSERT_TRUE_AT): New macro.
1818 (ASSERT_FALSE): Reimplement in terms of...
1819 (ASSERT_FALSE_AT): New macro.
1820 (ASSERT_STREQ_AT): Fix typo in comment.
1822 2016-08-04 Patrick Palka <ppalka@gcc.gnu.org>
1824 * gimple.c (preprocess_case_label_vec_for_gimple): When the case
1825 labels are exhaustive, designate the label with the widest
1826 range to be the default label.
1828 2016-08-04 Andrew Pinski <apinski@cavium.com>
1830 * config/aarch64/aarch64.c (thunderx_vector_cost): New variable.
1831 (thunderx_tunings): Use thunderx_vector_cost instead of
1832 generic_vector_cost.
1834 2016-08-04 Martin Liska <mliska@suse.cz>
1836 * gcov.c (main): Fix GNU coding style.
1837 (output_intermediate_file): Likewise.
1838 (process_file): Likewise.
1839 (generate_results): Likewise.
1840 (release_structures): Likewise.
1841 (create_file_names): Likewise.
1842 (find_source): Likewise.
1843 (read_graph_file): Likewise.
1844 (find_exception_blocks): Likewise.
1845 (canonicalize_name): Likewise.
1846 (make_gcov_file_name): Likewise.
1847 (mangle_name): Likewise.
1848 (accumulate_line_counts): Likewise.
1849 (output_branch_count): Likewise.
1850 (read_line): Likewise.
1852 2016-08-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
1854 PR rtl-optimization/71779
1855 * emit-rtl.c (set_reg_attrs_from_value): Only propagate REG_POINTER,
1856 if the value was sign-extended according to POINTERS_EXTEND_UNSIGNED
1857 or if it was truncated.
1859 PR rtl-optimization/70903
1860 * cse.c (cse_insn): If DEST is a paradoxical SUBREG, don't record DEST.
1862 2016-08-04 Kugan Vivekanandarajah <kuganv@linaro.org>
1864 * tree-inline.c (remap_ssa_name): Check for POINTER_TYPE_P before
1865 accessing SSA_NAME_PTR_INFO.
1867 2016-08-04 Georg-Johann Lay <avr@gjlay.de>
1870 * common/config/avr/avr-common.c (avr_option_optimization_table)
1871 [OPT_LEVELS_ALL]: Turn off -fcaller-saves.
1873 2016-08-04 Georg-Johann Lay <avr@gjlay.de>
1876 * config/avr/avr.md: New pattern to work around do_store_flag
1877 generating shift instructions for bit extractions.
1879 2016-08-04 Kugan Vivekanandarajah <kuganv@linaro.org>
1881 * tree-vrp.c (set_value_range): Use vrp_equiv_obstack with
1883 (add_equivalence): Likewise.
1884 (get_value_range): Allocate value range with vrp_value_range_pool.
1885 (vrp_initialize): Initialize vrp_equiv_obstack for equiv allocation.
1886 (vrp_finalize): Relase vrp_equiv_obstack and vrp_value_range_pool.
1888 2016-08-03 Peter Bergner <bergner@vnet.ibm.com>
1890 * config/rs6000/rs6000.c (rs6000_option_override_internal): Make LRA
1891 the default for the rs6000 port.
1893 2016-08-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
1896 * calls.c (special_function_p): Remove special handling of
1897 "setjmp_syscall", "qsetjmp", "longjmp", "siglongjmp" and the
1898 prefix "__x". Recognize "savectx", "vfork" and "getcontext" only
1899 without prefix. Remove potentially unsafe ECF_LEAF and ECF_NORETURN.
1901 2016-08-03 Vladimir Makarov <vmakarov@redhat.com>
1904 * lra-spills.c (regno_in_use_p): Check bb and regno modification.
1905 Don't stop on regular insns.
1907 2016-08-03 Nathan Sidwell <nathan@codesourcery.com>
1909 * config/nvptx/nvptx.c (nvptx_declare_function_name): Round frame
1910 size to DImode boundary.
1911 (nvptx_propagate): Likewise.
1913 2016-08-03 Alan Modra <amodra@gmail.com>
1915 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Make scalar
1916 float access depend on TARGET_EFFICIENT_UNALIGNED_VSX.
1917 * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Renamed
1918 from -mefficient-unaligned-vector. Note that this affects fp too.
1920 2016-08-03 Alan Modra <amodra@gmail.com>
1922 * config/rs6000/rs6000.c (rs6000_rtx_costs): Make unaligned mem
1925 2016-08-03 Alan Modra <amodra@gmail.com>
1927 * config/rs6000/rs6000.md (fix_trunc<mode>si2): Force source operand
1928 to a reg. Localize vars.
1930 2016-08-03 Alan Modra <amodra@gmail.com>
1932 * config/rs6000/rs6000.opt: Remove negatives from help strings
1935 2016-08-03 Alan Modra <amodra@gmail.com>
1937 * config/rs6000/rs6000.c (rs6000_secondary_reload_direct_move):
1938 Delete duplicated code.
1940 2016-08-02 Vladimir Makarov <vmakarov@redhat.com>
1943 * lra-spills.c (regno_in_use_p): New.
1944 (lra_final_code_change): Use it.
1946 2016-08-02 Vladimir Makarov <vmakarov@redhat.com>
1948 PR rtl-optimization/69847
1949 * lra-int.h (struct lra-reg): Use restore_rtx instead of
1951 (lra_rtx_hash): New.
1952 * lra.c (initialize_lra_reg_info_element): Use restore_rtx instead
1954 (lra_rtx_hash): Rename and move lra-remat.c::rtx_hash.
1955 * lra-remat.c (rtx_hash): Rename and Move to lra.c.
1956 * lra-spills.c (lra_final_code_change): Don't delete insn when the
1957 next insn is USE with the same reg as the current insn source.
1958 * lra-constraints.c (curr_insn_transform): Use restore_rtx instead
1960 (lra_constraints_init): Call initiate_invariants.
1961 (lra_constraints_finish): Call finish_invariants.
1962 (struct invariant, invariant_t, invariant_ptr_t): New.
1963 (const_invariant_ptr_t, invariants, invariants_pool): New.
1964 (invariant_table, invariant_hash, invariant_eq_p): New.
1965 (insert_invariant, initiate_invariants, finish_invariants): New.
1966 (clear_invariants, invalid_invariant_regs): New.
1967 (inherit_reload_reg, split_reg, fix_bb_live_info): Use restore_rtx
1968 instead of restore_regno.
1969 (invariant_p, process_invariant_for_inheritance): New.
1970 (inherit_in_ebb): Implement invariant inheritance.
1971 (lra_inheritance): Initialize and finalize invalid_invariant_regs.
1972 (remove_inheritance_pseudos): Implement undoing invariant
1974 (undo_optional_reloads, lra_undo_inheritance): Use restore_rtx
1975 instead of restore_regno.
1976 * lra-assigns.c (regno_live_length): New.
1977 (reload_pseudo_compare_func): Use regno_live_length.
1978 (assign_by_spills): Use restore_rtx instead of restore_regno.
1979 (lra_assign): Ditto. Initiate regno_live_length.
1981 2016-02-08 James Greenhalgh <james.greenhalgh@arm.com>
1983 * config/aarch64/arm_neon.h (vminnm_f64): Add back missing 'f' from
1984 __builtin_aarch64_fmindf.
1986 2016-08-02 Bin Cheng <bin.cheng@arm.com>
1988 PR tree-optimization/34114
1989 * tree-ssa-loop-niter.c (number_of_iterations_ne): Prove no-overflow
1990 information for more control IVs.
1992 2016-08-02 Bin Cheng <bin.cheng@arm.com>
1994 PR tree-optimization/34114
1995 * fold-const.c (multiple_of_p): Improve MULT_EXPR, PLUS_EXPR,
1996 PLUS_EXPR case. Handle SSA_NAME case.
1998 2016-08-02 Tamar Christina <tamar.christina@arm.com>
2000 * config/aarch64/aarch64-simd-builtins.def
2001 (__builtin_aarch64_fmindf): Change BUILTIN_VDQF to BUILTIN_VDQF_DF.
2002 (__builtin_aarch64_fmaxdf): Likewise.
2003 (__builtin_aarch64_smin_nandf): Likewise.
2004 (__builtin_aarch64_smax_nandf): Likewise.
2005 * config/aarch64/aarch64-simd.md (<fmaxmin><mode>3): Remove.
2006 * config/aarch64/aarch64.md (<fmaxmin><mode>3): Rename to...
2007 (<fmaxmin><mode>3): ...this.
2008 * config/aarch64/arm_neon.h (vmaxnm_f64): New.
2009 (vminnm_f64): Likewise.
2010 (vmin_f64): Likewise.
2011 (vmax_f64): Likewise.
2012 * config/aarch64/iterators.md (FMAXMIN): Merge with...
2013 (FMAXMIN_UNS): ...this.
2014 (fmaxmin): Merged with
2015 (fmaxmin_op): ...this...
2016 (maxmin_uns_op): ...in to this.
2018 2016-08-01 Michael Meissner <meissner@linux.vnet.ibm.com>
2020 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
2021 Add support for vec_extract on vector float, vector int, vector
2022 short, and vector char vector types.
2023 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
2024 vector float, vector int, vector short, and vector char
2025 optimizations on 64-bit ISA 2.07 systems for both constant and
2026 variable element numbers.
2027 (rs6000_split_vec_extract_var): Likewise.
2028 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): Allow SFmode to be
2029 Altivec registers on ISA 2.07 and above.
2030 (vsx_extract_v4sf): Delete alternative that hard coded element 0,
2031 which never was matched due to the split occuring before register
2032 allocation (and the code would not have worked on little endian
2033 systems if it did match). Allow extracts to go to the Altivec
2034 registers if ISA 2.07 (power8). Change from using "" around the
2035 C++ code to using {}'s.
2036 (vsx_extract_v4sf_<mode>_load): New insn to optimize vector float
2037 vec_extracts when the vector is in memory.
2038 (vsx_extract_v4sf_var): New insn to optimize vector float
2039 vec_extracts when the element number is variable on 64-bit ISA
2041 (vsx_extract_<mode>, VSX_EXTRACT_I iterator): Add optimizations
2042 for 64-bit ISA 2.07 as well as ISA 3.0.
2043 (vsx_extract_<mode>_p9, VSX_EXTRACT_I iterator): Likewise.
2044 (vsx_extract_<mode>_p8, VSX_EXTRACT_I iterator): Likewise.
2045 (vsx_extract_<mode>_load, VSX_EXTRACT_I iterator): New insn to
2046 optimize vector int, vector short, and vector char vec_extracts
2047 when the vector is in memory.
2048 (vsx_extract_<mode>_var, VSX_EXTRACT_I iterator): New insn to
2049 optimize vector int, vector short, and vector char vec_extracts
2050 when the element number is variable.
2052 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
2055 * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): Use a value that
2056 does not overlap with other symbol flags.
2058 2016-08-01 Wilco Dijkstra <wdijkstr@arm.com>
2060 * config/aarch64/aarch64.h (aarch64_frame):
2061 Remove padding0 and hardfp_offset. Add locals_offset,
2062 initial_adjust, callee_adjust, callee_offset and final_adjust.
2063 * config/aarch64/aarch64.c (aarch64_layout_frame):
2064 Remove unused padding0 and hardfp_offset initializations.
2065 Choose frame layout and set frame variables accordingly.
2066 Use INVALID_REGNUM instead of FIRST_PSEUDO_REGISTER.
2067 (aarch64_push_regs): Use INVALID_REGNUM, not FIRST_PSEUDO_REGISTER.
2068 (aarch64_pop_regs): Likewise.
2069 (aarch64_expand_prologue): Remove all decision code, just emit
2070 prolog according to frame variables.
2071 (aarch64_expand_epilogue): Remove all decision code, just emit
2072 epilog according to frame variables.
2073 (aarch64_initial_elimination_offset): Use offset to local/arg area.
2075 2015-08-01 H.J. Lu <hongjiu.lu@intel.com>
2078 * config/i386/i386.c (timode_scalar_chain::convert_insn): Call
2079 fix_debug_reg_uses after changing source register mode to
2080 V1TImode if source register is undefined.
2082 2015-08-01 Alan Hayward <alan.hayward@arm.com>
2084 PR tree-optimization/71818
2085 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Don't advance IVs
2086 with non invariant evolutions
2088 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
2091 * config/avr/avr.md (length) [branch]: Correct insn length
2092 attribute for forward branches.
2094 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
2096 * doc/extend.texi (AVR Built-in Functions): Document
2098 * config/avr/builtins.def (NOPS): New.
2099 * config/avr/avr.c (avr_expand_nops): New static function.
2100 (avr_expand_builtin): Use it to handle AVR_BUILTIN_NOPS.
2102 2016-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2104 * config/aarch64/aarch64.c (aarch64_classify_address): Use DImode when
2105 performing aarch64_offset_7bit_signed_scaled_p check for TImode LDP/STP
2108 2016-08-01 Virendra Pathak <virendra.pathak@broadcom.com>
2110 * config/aarch64/aarch64.c (vulcan_tunings): Update
2111 vulcan L1 cache_line_size.
2113 2016-07-30 Michael Meissner <meissner@linux.vnet.ibm.com>
2115 * config/rs6000/rs6000-protos.h (rs6000_adjust_vec_address): New
2116 function that takes a vector memory address, a hard register, an
2117 element number and a temporary base register, and recreates an
2118 address that points to the appropriate element within the vector.
2119 * config/rs6000/rs6000.c (rs6000_adjust_vec_address): Likewise.
2120 (rs6000_split_vec_extract_var): Add support for the target of a
2121 vec_extract with variable element number being a scalar memory
2123 (rtx_is_swappable_p): VLSO insns (UNSPEC_VSX_VSLOW) are not
2125 * config/rs6000/vsx.md (vsx_extract_<mode>_load): Replace
2126 vsx_extract_<mode>_load insn with a new insn that optimizes
2127 storing either element to a memory location, using scratch
2128 registers to pick apart the vector and reconstruct the address.
2129 (vsx_extract_<P:mode>_<VSX_D:mode>_load): Likewise.
2130 (vsx_extract_<mode>_store): Rework alternatives to more correctly
2131 support Altivec registers. Add support for ISA 3.0 Altivec d-form
2133 (vsx_extract_<mode>_var): Add support for extracting a variable
2134 element number from memory.
2136 2016-07-29 Georg-Johann Lay <avr@gjlay.de>
2138 * config/avr/avr.c (avr_out_compare): Use const0_rtx instead of 0
2139 when testing for compares against constants of the form 0xabab.
2141 2016-07-29 Bin Cheng <bin.cheng@arm.com>
2143 PR tree-optimization/57558
2144 * tree-vect-loop-manip.c (vect_create_cond_for_niters_checks): New
2146 (vect_loop_versioning): Support versioning with niter assumptions.
2147 * tree-vect-loop.c (tree-ssa-loop.h): Include header file.
2148 (vect_get_loop_niters): New parameter. Reimplement to support
2149 assumptions in loop niter info.
2150 (vect_analyze_loop_form_1, vect_analyze_loop_form): Ditto.
2151 (new_loop_vec_info): Init LOOP_VINFO_NITERS_ASSUMPTIONS.
2152 (vect_estimate_min_profitable_iters): Use LOOP_REQUIRES_VERSIONING.
2153 Support loop versioning for niters.
2154 * tree-vectorizer.c (tree-ssa-loop-niter.h): Include header file.
2155 (vect_free_loop_info_assumptions): New function.
2156 (vectorize_loops): Free loop niter info for loops with flag
2157 LOOP_F_ASSUMPTIONS set if vectorization failed.
2158 * tree-vectorizer.h (struct _loop_vec_info): New field
2159 num_iters_assumptions.
2160 (LOOP_VINFO_NITERS_ASSUMPTIONS): New macro.
2161 (LOOP_REQUIRES_VERSIONING_FOR_NITERS): New macro.
2162 (LOOP_REQUIRES_VERSIONING): New macro.
2163 (vect_free_loop_info_assumptions): New decl.
2165 2016-07-29 Bin Cheng <bin.cheng@arm.com>
2167 * cfgloop.h (struct loop): New field constraints.
2168 (LOOP_C_INFINITE, LOOP_C_FINITE): New macros.
2169 (loop_constraint_set, loop_constraint_clr, loop_constraint_set_p): New
2171 * cfgloop.c (alloc_loop): Initialize new field.
2172 * cfgloopmanip.c (copy_loop_info): Copy constraints.
2173 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions):
2174 Adjust niter analysis wrto loop constraints.
2175 * doc/loop.texi (@node Number of iterations): Add description for loop
2178 2016-07-29 Marek Polacek <polacek@redhat.com>
2181 * config/i386/i386.c (ix86_expand_args_builtin): Add break.
2182 (ix86_expand_round_builtin): Likewise.
2184 2016-07-29 Segher Boessenkool <segher@kernel.crashing.org>
2185 Georg-Johann Lay <avr@gjlay.de>
2187 PR rtl-optimization/71976
2188 * combine.c (get_last_value): Return 0 if the argument for which
2189 the function is called has a wider mode than the recorded value.
2191 2016-07-29 Marek Polacek <polacek@redhat.com>
2194 * config/rs6000/rs6000.c (altivec_expand_ld_builtin): Add break.
2195 (altivec_expand_st_builtin): Likewise.
2197 2016-07-29 Georg-Johann Lay <avr@gjlay.de>
2199 * config/avr/avr.md (addqi3) [cc]: Revert glitch in insn attribute
2200 introduced in r238381.
2202 2016-07-29 Kugan Vivekanandarajah <kuganv@linaro.org>
2205 * tree-vrp.c (extract_range_from_binary_expr_1): In case of signed
2206 & sign-bit-CST, generate [-INF, 0] instead of [-INF, INF].
2208 2016-07-28 Michael Meissner <meissner@linux.vnet.ibm.com>
2210 * config/rs6000/rs6000-protos.h (rs6000_split_vec_extract_var):
2212 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
2213 Add support for vec_extract of vector double or vector long having
2214 a variable element number on 64-bit ISA 2.07 systems or newer.
2215 * config/rs6000/rs6000.c (rs6000_expand_vector_extract):
2217 (rs6000_split_vec_extract_var): New function to split a
2218 vec_extract built-in function with variable element number.
2219 (rtx_is_swappable_p): Variable vec_extracts and shifts are not
2221 * config/rs6000/vsx.md (UNSPEC_VSX_VSLO): New unspec.
2222 (UNSPEC_VSX_EXTRACT): Likewise.
2223 (vsx_extract_<mode>, VSX_D iterator): Fix constraints to allow
2224 direct move instructions to be generated on 64-bit ISA 2.07
2225 systems and newer, and to take advantage of the ISA 3.0 MFVSRLD
2227 (vsx_vslo_<mode>): New insn to do VSLO on V2DFmode and V2DImode
2228 arguments for vec_extract variable element.
2229 (vsx_extract_<mode>_var, VSX_D iterator): New insn to support
2230 vec_extract with variable element on V2DFmode and V2DImode
2232 * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): Remove
2233 -mupper-regs-df requirement, since it isn't needed.
2234 (TARGET_DIRECT_MOVE_64BIT): New macro to say whether we can
2235 do direct moves on 64-bit systems, which allows optimization of
2236 vec_extract on 64-bit ISA 2.07 systems and newer.
2238 2016-07-28 Kristina Martsenko <kristina.martsenko@arm.com>
2239 2016-07-28 Wilco Dijkstra <wdijkstr@arm.com>
2241 * config/aarch64/aarch64.md
2242 (zero_extend<SHORT:mode><GPI:mode>2_aarch64): Change output
2244 (<optab>qihi2_aarch64): Likewise, and split into two.
2245 (extendqihi2_aarch64): New.
2246 (zero_extendqihi2_aarch64): New.
2247 * config/aarch64/iterators.md (ldrxt): Remove.
2248 * config/aarch64/aarch64.c (aarch64_rtx_costs): Change cost of
2251 2016-07-28 Kristina Martsenko <kristina.martsenko@arm.com>
2253 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix cost of zero extend.
2255 2016-07-28 Wilco Dijkstra <wdijkstr@arm.com>
2257 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg): Rename.
2258 (aarch64_push_reg): New function to push 1 or 2 registers.
2259 (aarch64_pop_reg): New function to pop 1 or 2 registers.
2260 (aarch64_expand_prologue): Use aarch64_push_regs.
2261 (aarch64_expand_epilogue): Use aarch64_pop_regs.
2263 2016-07-28 Yuri Rumyantsev <ysrumyan@gmail.com>
2265 PR tree-optimization/71734
2266 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Pass value of safelen
2267 attribute instead of REF_LOOP and use it.
2268 (ref_indep_loop_p_2): Use SAFELEN argument instead of REF_LOOP and
2269 set it for Loops having non-zero safelen attribute.
2270 (ref_indep_loop_p): Pass zero as initial value for safelen.
2272 2016-07-28 Ilya Enkovich <ilya.enkovich@intel.com>
2276 * tree-chkp.c (chkp_retbnd_call_by_val): Check for instrumentation
2277 call using chkp_gimple_call_builtin_p.
2278 (chkp_copy_bounds_for_assign): Likewise.
2280 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2282 * config/alpha/alpha.c (alpha_adjust_cost): Adjust.
2283 * config/arm/arm-protos.h (struct tune_params): Likewise.
2284 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
2285 (cortex_a9_sched_adjust_cost): Likewise.
2286 (fa726te_sched_adjust_cost): Likewise.
2287 (arm_adjust_cost): Likewise.
2288 * config/bfin/bfin.c (bfin_adjust_cost): Likewise.
2289 * config/c6x/c6x.c (c6x_adjust_cost): Likewise.
2290 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise.
2291 * config/i386/i386.c (ix86_adjust_cost): Likewise.
2292 * config/ia64/ia64.c: Likewise.
2293 * config/m68k/m68k.c: Likewise.
2294 * config/mep/mep.c (mep_adjust_cost): Likewise.
2295 * config/microblaze/microblaze.c (microblaze_adjust_cost):
2297 * config/mips/mips.c (mips_adjust_cost): Likewise.
2298 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost):
2300 * config/pa/pa.c (pa_adjust_cost): Likewise.
2301 * config/rs6000/rs6000.c (rs6000_adjust_cost): Likewise.
2302 (rs6000_debug_adjust_cost): Likewise.
2303 * config/sh/sh.c (sh_adjust_cost): Likewise.
2304 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise.
2305 (hypersparc_adjust_cost): Likewise.
2306 (sparc_adjust_cost): Likewise.
2307 * config/spu/spu.c (spu_sched_adjust_cost): Likewise.
2308 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Likewise.
2309 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost):
2311 * config/visium/visium.c (visium_adjust_cost): Likewise.
2312 * doc/tm.texi: Regenerate.
2313 * haifa-sched.c (dep_cost_1): Adjust.
2314 * target.def: Merge adjust_cost and adjust_cost_2.
2316 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2318 * haifa-sched.c (add_to_speculative_block): Make twins a vector.
2320 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2322 * store-motion.c (struct st_expr): Make pattern_regs a vector.
2323 (extract_mentioned_regs): Append to a vector instead of
2324 returning a rtx_expr_list.
2325 (st_expr_entry): Adjust.
2326 (free_st_expr_entry): Likewise.
2327 (store_ops_ok): Likewise.
2328 (store_killed_in_insn): Likewise.
2329 (find_moveable_store): Likewise.
2331 2016-07-28 Martin Liska <mliska@suse.cz>
2333 PR gcov-profile/68025
2334 * tree-profile.c (tree_profiling): Respect
2335 no_profile_instrument_function attribute.
2336 * doc/extend.texi: Document no_profile_instrument_function
2339 2016-07-28 Martin Liska <mliska@suse.cz>
2341 PR rtl-optimization/70944
2342 * combine.c (make_compound_operation):
2343 Do not allow make_compound_operation for vector mode
2345 2016-07-28 Kugan Vivekanandarajah <kuganv@linaro.org>
2348 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Check tcc_comparison
2349 before calling get_ops.
2351 2016-07-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
2353 * defaults.h (LOG2_BITS_PER_UNIT): Move from here...
2354 * tree.h (LOG2_BITS_PER_UNIT): ...to here.
2355 (BITS_PER_UNIT_LOG): Remove.
2356 (int_bit_position): Use LOG2_BITS_PER_UNIT instead of BITS_PER_UNIT_LOG.
2357 * expr.c (expand_assignment): Likewise.
2358 * stor-layout.c (initialize_sizetypes): Likewise.
2360 2016-07-27 Michael Meissner <meissner@linux.vnet.ibm.com>
2362 * config/rs6000/vector.md (vec_extract<mode>): Change the calling
2363 signature of rs6000_expand_vector_extract so that the element
2364 number is a RTX instead of a constant integer.
2365 * config/rs6000/rs6000-protos.h (rs6000_expand_vector_extract):
2367 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Likewise.
2368 (altivec_expand_vec_ext_builtin): Likewise.
2369 * config/rs6000/altivec.md (reduc_plus_scal_<mode>): Likewise.
2370 * config/rs6000/vsx.md (vsx_extract_<mode>): Fix spelling of the
2371 MFVSRLD instruction.
2373 2016-07-27 David Malcolm <dmalcolm@redhat.com>
2375 * input.c (get_pure_location): Move here from tree.c.
2376 (make_location): Likewise. Add header comment.
2377 (selftest::test_accessing_ordinary_linemaps): Verify
2378 pure_location_p, make_location, get_location_from_adhoc_loc and
2380 * input.h (get_pure_location): Move declaration here from tree.h.
2381 (get_finish): Likewise for inline function.
2382 (make_location): Likewise for declaration.
2383 * tree.c (get_pure_location): Move to input.c.
2384 (make_location): Likewise.
2385 * tree.h (get_pure_location): Move declaration to tree.h.
2386 (get_finish): Likewise for inline function.
2387 (make_location): Likewise for declaration.
2389 2016-07-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2392 * match.pd (x / abs(x) -> copysign(1.0, x)): New pattern.
2394 2016-07-27 David Malcolm <dmalcolm@redhat.com>
2396 * system.h (STATIC_ASSERT): Use static_assert if building
2399 2016-07-27 Richard Biener <rguenther@suse.de>
2401 PR tree-optimization/72517
2402 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
2403 Revert change to not compute read-read dependences.
2405 2016-07-27 Richard Biener <rguenther@suse.de>
2407 * predict.c (set_even_probabilities): Make nedges unsigned.
2409 2016-07-27 Martin Liska <mliska@suse.cz>
2411 * predict.c (set_even_probabilities): Handle unlikely edges.
2412 (combine_predictions_for_bb): Likewise.
2414 2016-07-26 Michael Meissner <meissner@linux.vnet.ibm.com>
2417 * config/rs6000/rs6000.c (rs6000_generate_compare): Rework
2418 __float128 support when we don't have hardware support, so that
2419 the IEEE built-in functions like isgreater, first call __unordkf3
2420 to make sure neither operand is a NaN, and if both operands are
2421 ordered, do the normal comparison.
2423 2016-07-26 Patrick Palka <ppalka@gcc.gnu.org>
2425 * tree-vrp.c (dump_asserts_for): Print loc->expr instead of
2427 (extract_code_and_val_from_cond_with_ops): Verify that name is
2428 either cond_op0 or cond_op1.
2430 2016-07-26 Patrick Palka <ppalka@gcc.gnu.org>
2432 PR tree-optimization/18046
2433 * genmodes.c (emit_mode_size_inline): Emit an assert that
2434 verifies that mode is a valid array index.
2435 (emit_mode_nuinits_inline): Likewise.
2436 (emit_mode_inner_inline): Likewise.
2437 (emit_mode_unit_size_inline): Likewise.
2438 (emit_mode_unit_precision_inline): Likewise.
2439 * tree-vrp.c: Include params.h.
2440 (find_switch_asserts): Register edge assertions for the default
2441 label which correspond to the anti-ranges of each case label.
2442 * params.def (PARAM_MAX_VRP_SWITCH_ASSERTIONS): New.
2443 * doc/invoke.texi: Document it.
2445 2016-07-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2447 * gimple-ssa-strength-reduction.c (slsr_process_phi): Remove dead
2448 and unnecessary call to gimple_bb.
2450 2016-07-26 Richard Biener <rguenther@suse.de>
2452 PR rtl-optimization/71984
2453 * simplify-rtx.c (simplify_subreg): Use GET_MODE_SIZE and prepare
2456 2016-07-26 Richard Biener <rguenther@suse.de>
2459 * expmed.c (extract_bit_field_1): Constrain the vector mode
2460 with element size matching the extraction mode size when
2461 choosing a better vector mode to do the extraction from.
2463 2016-07-26 Richard Biener <rguenther@suse.de>
2464 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2467 * match.pd ((intptr)x eq/ne CST to x eq/ne (typeof x) CST): New
2470 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2472 * tree-ssa-structalias.c (struct scc_info): Change types of
2473 members to auto_sbitmap and auto_vec.
2474 (scc_info::scc_info): New constructor.
2475 (scc_info::~scc_info): New destructor.
2476 (init_scc_info): Remove.
2477 (free_scc_info): Remove.
2478 (find_indirect_cycles): Adjust.
2479 (perform_var_substitution): Likewise.
2480 (free_var_substitution_info): Likewise.
2482 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2484 * tree-outof-ssa.c (struct elim_graph): Change type of members
2485 to auto_vec and auto_sbitmap.
2486 (elim_graph::elim_graph): New constructor.
2487 (delete_elim_graph): Remove.
2488 (expand_phi_nodes): Adjust.
2490 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2492 * tree-outof-ssa.c (struct elim_graph): Remove typedef.
2493 (new_elim_graph): Adjust.
2494 (clear_elim_graph): Likewise.
2495 (delete_elim_graph): Likewise.
2496 (elim_graph_size): Likewise.
2497 (elim_graph_add_node): Likewise.
2498 (elim_graph_add_edge): Likewise.
2499 (elim_graph_remove_succ_edge): Likewise.
2500 (eliminate_name): Likewise.
2501 (eliminate_build): Likewise.
2502 (elim_forward): Likewise.
2503 (elim_unvisited_predecessor): Likewise.
2504 (elim_backward): Likewise.
2505 (elim_create): Likewise.
2506 (eliminate_phi): Likewise.
2507 (expand_phi_nodes): Likewise.
2509 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2511 * bt-load.c (compute_out): Use auto_sbitmap class.
2512 (link_btr_uses): Likewise.
2513 * cfganal.c (mark_dfs_back_edges): Likewise.
2514 (post_order_compute): Likewise.
2515 (inverted_post_order_compute): Likewise.
2516 (pre_and_rev_post_order_compute_fn): Likewise.
2517 (single_pred_before_succ_order): Likewise.
2518 * cfgexpand.c (pass_expand::execute): Likewise.
2519 * cfgloop.c (verify_loop_structure): Likewise.
2520 * cfgloopmanip.c (fix_bb_placements): Likewise.
2521 (remove_path): Likewise.
2522 (update_dominators_in_loop): Likewise.
2523 * cfgrtl.c (break_superblocks): Likewise.
2524 * ddg.c (check_sccs): Likewise.
2525 (create_ddg_all_sccs): Likewise.
2526 * df-core.c (df_worklist_dataflow): Likewise.
2527 * dse.c (dse_step3): Likewise.
2528 * except.c (eh_region_outermost): Likewise.
2529 * function.c (thread_prologue_and_epilogue_insns): Likewise.
2530 * gcse.c (prune_expressions): Likewise.
2531 (prune_insertions_deletions): Likewise.
2532 * gimple-ssa-backprop.c (backprop::~backprop): Likewise.
2533 * graph.c (draw_cfg_nodes_no_loops): Likewise.
2534 * ira-lives.c (remove_some_program_points_and_update_live_ranges): Likewise.
2535 * lcm.c (compute_earliest): Likewise.
2536 (compute_farthest): Likewise.
2537 * loop-unroll.c (unroll_loop_constant_iterations): Likewise.
2538 (unroll_loop_runtime_iterations): Likewise.
2539 (unroll_loop_stupid): Likewise.
2540 * lower-subreg.c (decompose_multiword_subregs): Likewise.
2541 * lra-lives.c: Likewise.
2542 * lra.c (lra): Likewise.
2543 * modulo-sched.c (schedule_reg_moves): Likewise.
2544 (optimize_sc): Likewise.
2545 (get_sched_window): Likewise.
2546 (sms_schedule_by_order): Likewise.
2547 (check_nodes_order): Likewise.
2548 (order_nodes_of_sccs): Likewise.
2549 (order_nodes_in_scc): Likewise.
2550 * recog.c (split_all_insns): Likewise.
2551 * regcprop.c (pass_cprop_hardreg::execute): Likewise.
2552 * reload1.c (reload): Likewise.
2553 * sched-rgn.c (haifa_find_rgns): Likewise.
2554 (split_edges): Likewise.
2555 (compute_trg_info): Likewise.
2556 * sel-sched.c (init_seqno): Likewise.
2557 * store-motion.c (remove_reachable_equiv_notes): Likewise.
2558 * tree-into-ssa.c (update_ssa): Likewise.
2559 * tree-ssa-live.c (live_worklist): Likewise.
2560 * tree-ssa-loop-im.c (fill_always_executed_in): Likewise.
2561 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
2563 (try_peel_loop): Likewise.
2564 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop):
2566 * tree-ssa-pre.c (compute_antic): Likewise.
2567 * tree-ssa-reassoc.c (undistribute_ops_list): Likewise.
2568 * tree-stdarg.c (reachable_at_most_once): Likewise.
2569 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Likewise.
2570 * var-tracking.c (vt_find_locations): Likewise.
2572 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2574 * sbitmap.h (auto_sbitmap): New class.
2576 2016-07-26 Alan Modra <amodra@gmail.com>
2579 * config/rs6000/rs6000.c (rs6000_secondary_reload): Initialize
2582 2016-07-25 David Malcolm <dmalcolm@redhat.com>
2584 * input.c (selftest::temp_source_file::temp_source_file): Fix
2585 missing "%s" in fprintf.
2587 2016-07-25 John David Anglin <danglin@gcc.gnu.org>
2590 * cselib.c (cselib_process_insn): Invalidate argument slots for
2593 2016-07-25 Jiong Wang <jiong.wang@arm.com>
2595 * config/aarch64/arm_neon.h (vfmah_lane_f16, vfmah_laneq_f16,
2596 vfmsh_lane_f16, vfmsh_laneq_f16, vmulh_lane_f16, vmulh_laneq_f16,
2597 vmulxh_lane_f16, vmulxh_laneq_f16): New.
2599 2016-07-25 Jiong Wang <jiong.wang@arm.com>
2601 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
2602 * config/aarch64/aarch64.md (fma, fnma): Support HF.
2603 * config/aarch64/arm_fp16.h (vfmah_f16, vfmsh_f16): New.
2605 2016-07-25 Jiong Wang <jiong.wang@arm.com>
2607 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
2608 * config/aarch64/aarch64.md (<FCVT_F2FIXED:fcvt_fixed_insn>hf<mode>3):
2610 (<FCVT_FIXED2F:fcvt_fixed_insn><mode>hf3): Likewise.
2611 (add<mode>3): Likewise.
2612 (sub<mode>3): Likewise.
2613 (mul<mode>3): Likewise.
2614 (div<mode>3): Likewise.
2615 (*div<mode>3): Likewise.
2616 (<fmaxmin><mode>3): Extend to HF.
2617 * config/aarch64/aarch64-simd.md (aarch64_rsqrts<mode>): Likewise.
2618 (fabd<mode>3): Likewise.
2619 (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_HSDF:mode>3): Likewise.
2620 (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_HSDI:mode>3): Likewise.
2621 (aarch64_fmulx<mode>): Likewise.
2622 (aarch64_fac<optab><mode>): Likewise.
2623 (aarch64_frecps<mode>): Likewise.
2624 (<FCVT_F2FIXED:fcvt_fixed_insn>hfhi3): New.
2625 (<FCVT_FIXED2F:fcvt_fixed_insn>hihf3): Likewise.
2626 * config/aarch64/iterators.md (VHSDF_SDF): Delete.
2627 (VSDQ_HSDI): Support HI.
2628 (fcvt_target, FCVT_TARGET): Likewise.
2629 * config/aarch64/arm_fp16.h (vaddh_f16, vsubh_f16, vabdh_f16,
2630 vcageh_f16, vcagth_f16, vcaleh_f16, vcalth_f16, vceqh_f16, vcgeh_f16,
2631 vcgth_f16, vcleh_f16, vclth_f16, vcvth_n_f16_s16, vcvth_n_f16_s32,
2632 vcvth_n_f16_s64, vcvth_n_f16_u16, vcvth_n_f16_u32, vcvth_n_f16_u64,
2633 vcvth_n_s16_f16, vcvth_n_s32_f16, vcvth_n_s64_f16, vcvth_n_u16_f16,
2634 vcvth_n_u32_f16, vcvth_n_u64_f16, vdivh_f16, vmaxh_f16, vmaxnmh_f16,
2635 vminh_f16, vminnmh_f16, vmulh_f16, vmulxh_f16, vrecpsh_f16,
2638 2016-07-25 Jiong Wang <jiong.wang@arm.com>
2640 * config.gcc (aarch64*-*-*): Install arm_fp16.h.
2641 * config/aarch64/aarch64-builtins.c (hi_UP): New.
2642 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
2643 * config/aarch64/aarch64-simd.md (aarch64_frsqrte<mode>): Extend to HF
2645 (aarch64_frecp<FRECP:frecp_suffix><mode>): Likewise.
2646 (aarch64_cm<optab><mode>): Likewise.
2647 * config/aarch64/aarch64.md (<frint_pattern><mode>2): Likewise.
2648 (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Likewise.
2649 (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
2650 (sqrt<mode>2): Likewise.
2651 (*sqrt<mode>2): Likewise.
2652 (abs<mode>2): Likewise.
2653 (<optab><mode>hf2): New pattern for HF mode.
2654 (<optab>hihf2): Likewise.
2655 * config/aarch64/arm_neon.h: Include arm_fp16.h.
2656 * config/aarch64/iterators.md (GPF_F16, GPI_F16, VHSDF_HSDF): New.
2657 (w1, w2, v, s, q, Vmtype, V_cmp_result, fcvt_iesize, FCVT_IESIZE):
2659 * config/aarch64/arm_fp16.h: New file.
2660 (vabsh_f16, vceqzh_f16, vcgezh_f16, vcgtzh_f16, vclezh_f16, vcltzh_f16,
2661 vcvth_f16_s16, vcvth_f16_s32, vcvth_f16_s64, vcvth_f16_u16,
2662 vcvth_f16_u32, vcvth_f16_u64, vcvth_s16_f16, vcvth_s32_f16,
2663 vcvth_s64_f16, vcvth_u16_f16, vcvth_u32_f16, vcvth_u64_f16,
2664 vcvtah_s16_f16, vcvtah_s32_f16, vcvtah_s64_f16, vcvtah_u16_f16,
2665 vcvtah_u32_f16, vcvtah_u64_f16, vcvtmh_s16_f16, vcvtmh_s32_f16,
2666 vcvtmh_s64_f16, vcvtmh_u16_f16, vcvtmh_u32_f16, vcvtmh_u64_f16,
2667 vcvtnh_s16_f16, vcvtnh_s32_f16, vcvtnh_s64_f16, vcvtnh_u16_f16,
2668 vcvtnh_u32_f16, vcvtnh_u64_f16, vcvtph_s16_f16, vcvtph_s32_f16,
2669 vcvtph_s64_f16, vcvtph_u16_f16, vcvtph_u32_f16, vcvtph_u64_f16,
2670 vnegh_f16, vrecpeh_f16, vrecpxh_f16, vrndh_f16, vrndah_f16, vrndih_f16,
2671 vrndmh_f16, vrndnh_f16, vrndph_f16, vrndxh_f16, vrsqrteh_f16,
2674 2016-07-25 Jiong Wang <jiong.wang@arm.com>
2676 * config/aarch64/aarch64-simd-builtins.def (reduc_smax_scal_,
2677 reduc_smin_scal_): Use VDQIF_F16.
2678 (reduc_smax_nan_scal_, reduc_smin_nan_scal_): Use VHSDF.
2679 * config/aarch64/aarch64-simd.md (reduc_<maxmin_uns>_scal_<mode>):
2681 (aarch64_reduc_<maxmin_uns>_internal<mode>): Likewise.
2682 * config/aarch64/iterators.md (VDQIF_F16): New.
2683 (vp): Support HF modes.
2684 * config/aarch64/arm_neon.h (vmaxv_f16, vmaxvq_f16, vminv_f16,
2685 vminvq_f16, vmaxnmv_f16, vmaxnmvq_f16, vminnmv_f16, vminnmvq_f16): New.
2687 2016-07-25 Jiong Wang <jiong.wang@arm.com>
2689 * config/aarch64/aarch64-simd.md (*aarch64_mulx_elt_to_64v2df): Rename to
2690 "*aarch64_mulx_elt_from_dup<mode>".
2691 (*aarch64_mul3_elt<mode>): Update schedule type.
2692 (*aarch64_mul3_elt_from_dup<mode>): Likewise.
2693 (*aarch64_fma4_elt_from_dup<mode>): Likewise.
2694 (*aarch64_fnma4_elt_from_dup<mode>): Likewise.
2695 * config/aarch64/iterators.md (VMUL): Supprt half precision float modes.
2696 (f, fp): Support HF modes.
2697 * config/aarch64/arm_neon.h (vfma_lane_f16, vfmaq_lane_f16,
2698 vfma_laneq_f16, vfmaq_laneq_f16, vfma_n_f16, vfmaq_n_f16, vfms_lane_f16,
2699 vfmsq_lane_f16, vfms_laneq_f16, vfmsq_laneq_f16, vfms_n_f16,
2700 vfmsq_n_f16, vmul_lane_f16, vmulq_lane_f16, vmul_laneq_f16,
2701 vmulq_laneq_f16, vmul_n_f16, vmulq_n_f16, vmulx_lane_f16,
2702 vmulxq_lane_f16, vmulx_laneq_f16, vmulxq_laneq_f16): New.
2704 2016-07-25 Jiong Wang <jiong.wang@arm.com>
2706 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
2707 * config/aarch64/aarch64-simd.md (fma<mode>4, fnma<mode>4): Extend to HF
2709 * config/aarch64/arm_neon.h (vfma_f16, vfmaq_f16, vfms_f16,
2712 2016-07-25 Jiong Wang <jiong.wang@arm.com>
2714 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
2715 * config/aarch64/aarch64-simd.md
2716 (aarch64_rsqrts<mode>): Extend to HF modes.
2717 (fabd<mode>3): Likewise.
2718 (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_SDF:mode>3): Likewise.
2719 (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_SDI:mode>3): Likewise.
2720 (aarch64_<maxmin_uns>p<mode>): Likewise.
2721 (<su><maxmin><mode>3): Likewise.
2722 (<maxmin_uns><mode>3): Likewise.
2723 (<fmaxmin><mode>3): Likewise.
2724 (aarch64_faddp<mode>): Likewise.
2725 (aarch64_fmulx<mode>): Likewise.
2726 (aarch64_frecps<mode>): Likewise.
2727 (*aarch64_fac<optab><mode>): Rename to aarch64_fac<optab><mode>.
2728 (add<mode>3): Extend to HF modes.
2729 (sub<mode>3): Likewise.
2730 (mul<mode>3): Likewise.
2731 (div<mode>3): Likewise.
2732 (*div<mode>3): Likewise.
2733 * config/aarch64/aarch64.c (aarch64_emit_approx_div): Return false for
2735 * config/aarch64/iterators.md (VDQ_HSDI, VSDQ_HSDI): New mode iterator.
2736 * config/aarch64/arm_neon.h (vadd_f16, vaddq_f16, vabd_f16, vabdq_f16,
2737 vcage_f16, vcageq_f16, vcagt_f16, vcagtq_f16, vcale_f16, vcaleq_f16,
2738 vcalt_f16, vcaltq_f16, vceq_f16, vceqq_f16, vcge_f16, vcgeq_f16,
2739 vcgt_f16, vcgtq_f16, vcle_f16, vcleq_f16, vclt_f16, vcltq_f16,
2740 vcvt_n_f16_s16, vcvtq_n_f16_s16, vcvt_n_f16_u16, vcvtq_n_f16_u16,
2741 vcvt_n_s16_f16, vcvtq_n_s16_f16, vcvt_n_u16_f16, vcvtq_n_u16_f16,
2742 vdiv_f16, vdivq_f16, vdup_lane_f16, vdup_laneq_f16, vdupq_lane_f16,
2743 vdupq_laneq_f16, vdups_lane_f16, vdups_laneq_f16, vmax_f16, vmaxq_f16,
2744 vmaxnm_f16, vmaxnmq_f16, vmin_f16, vminq_f16, vminnm_f16, vminnmq_f16,
2745 vmul_f16, vmulq_f16, vmulx_f16, vmulxq_f16, vpadd_f16, vpaddq_f16,
2746 vpmax_f16, vpmaxq_f16, vpmaxnm_f16, vpmaxnmq_f16, vpmin_f16, vpminq_f16,
2747 vpminnm_f16, vpminnmq_f16, vrecps_f16, vrecpsq_f16, vrsqrts_f16,
2748 vrsqrtsq_f16, vsub_f16, vsubq_f16): New.
2750 2016-07-25 Jiong Wang <jiong.wang@arm.com>
2752 * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New.
2753 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
2754 * config/aarch64/aarch64-simd.md (aarch64_rsqrte<mode>): Extend to HF modes.
2755 (neg<mode>2): Likewise.
2756 (abs<mode>2): Likewise.
2757 (<frint_pattern><mode>2): Likewise.
2758 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): Likewise.
2759 (<optab><VDQF:mode><fcvt_target>2): Likewise.
2760 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): Likewise.
2761 (ftrunc<VDQF:mode>2): Likewise.
2762 (<optab><fcvt_target><VDQF:mode>2): Likewise.
2763 (sqrt<mode>2): Likewise.
2764 (*sqrt<mode>2): Likewise.
2765 (aarch64_frecpe<mode>): Likewise.
2766 (aarch64_cm<optab><mode>): Likewise.
2767 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Return false for
2769 * config/aarch64/iterators.md (VHSDF, VHSDF_DF, VHSDF_SDF): New.
2770 (VDQF_COND, fcvt_target, FCVT_TARGET, hcon): Extend mode attribute to HF modes.
2772 * config/aarch64/arm_neon.h (vdup_n_f16): New.
2773 (vdupq_n_f16): Likewise.
2774 (vld1_dup_f16): Use vdup_n_f16.
2775 (vld1q_dup_f16): Use vdupq_n_f16.
2776 (vabs_f16, vabsq_f16, vceqz_f16, vceqzq_f16, vcgez_f16, vcgezq_f16,
2777 vcgtz_f16, vcgtzq_f16, vclez_f16, vclezq_f16, vcltz_f16, vcltzq_f16,
2778 vcvt_f16_s16, vcvtq_f16_s16, vcvt_f16_u16, vcvtq_f16_u16, vcvt_s16_f16,
2779 vcvtq_s16_f16, vcvt_u16_f16, vcvtq_u16_f16, vcvta_s16_f16,
2780 vcvtaq_s16_f16, vcvta_u16_f16, vcvtaq_u16_f16, vcvtm_s16_f16,
2781 vcvtmq_s16_f16, vcvtm_u16_f16, vcvtmq_u16_f16, vcvtn_s16_f16,
2782 vcvtnq_s16_f16, vcvtn_u16_f16, vcvtnq_u16_f16, vcvtp_s16_f16,
2783 vcvtpq_s16_f16, vcvtp_u16_f16, vcvtpq_u16_f16, vneg_f16, vnegq_f16,
2784 vrecpe_f16, vrecpeq_f16, vrnd_f16, vrndq_f16, vrnda_f16, vrndaq_f16,
2785 vrndi_f16, vrndiq_f16, vrndm_f16, vrndmq_f16, vrndn_f16, vrndnq_f16,
2786 vrndp_f16, vrndpq_f16, vrndx_f16, vrndxq_f16, vrsqrte_f16, vrsqrteq_f16,
2787 vsqrt_f16, vsqrtq_f16): New.
2789 2016-07-25 Jiong Wang <jiong.wang@arm.com>
2791 * config/aarch64/aarch64-simd.md
2792 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Use VALL_F16.
2793 (aarch64_ext<mode>): Likewise.
2794 (aarch64_rev<REVERSE:rev_op><mode>): Likewise.
2795 * config/aarch64/aarch64.c (aarch64_evpc_trn, aarch64_evpc_uzp,
2796 aarch64_evpc_zip, aarch64_evpc_ext, aarch64_evpc_rev): Support V4HFmode
2798 * config/aarch64/arm_neon.h (__INTERLEAVE_LIST): Support float16x4_t,
2800 (__aarch64_vdup_lane_f16, __aarch64_vdup_laneq_f16,
2801 __aarch64_vdupq_lane_f16, __aarch64_vdupq_laneq_f16, vbsl_f16,
2802 vbslq_f16, vdup_n_f16, vdupq_n_f16, vdup_lane_f16, vdup_laneq_f16,
2803 vdupq_lane_f16, vdupq_laneq_f16, vduph_lane_f16, vduph_laneq_f16,
2804 vext_f16, vextq_f16, vmov_n_f16, vmovq_n_f16, vrev64_f16, vrev64q_f16,
2805 vtrn1_f16, vtrn1q_f16, vtrn2_f16, vtrn2q_f16, vtrn_f16, vtrnq_f16,
2806 vuzp1_f16, vuzp1q_f16, vuzp2_f16, vuzp2q_f16, vzip1_f16, vzip2q_f16):
2808 (vmov_n_f16): Reimplement using vdup_n_f16.
2809 (vmovq_n_f16): Reimplement using vdupq_n_f16..
2811 2016-07-25 Jiong Wang <jiong.wang@arm.com>
2813 * config/aarch64/aarch64.c (aarch64_add_constant): New parameter
2814 "frame_related_p". Generate CFA annotation when it's necessary.
2815 (aarch64_expand_prologue): Use aarch64_add_constant.
2816 (aarch64_expand_epilogue): Likewise.
2817 (aarch64_output_mi_thunk): Pass "false" when calling
2818 aarch64_add_constant.
2820 2016-07-25 Jiong Wang <jiong.wang@arm.com>
2822 * config/aarch64/aarch64.c (aarch64_add_constant): Optimize instruction
2825 2016-07-25 Jiong Wang <jiong.wang@arm.com>
2827 * config/aarch64/aarch64.c (aarch64_add_constant): New parameter "mode".
2828 Use aarch64_internal_mov_immediate instead of aarch64_build_constant.
2829 (aarch64_output_mi_thunk): Pass Pmode when calling aarch64_add_constant.
2830 (aarch64_build_constant): Delete.
2832 2016-07-25 Alexander Monakov <amonakov@ispras.ru>
2835 2016-07-20 Alexander Monakov <amonakov@ispras.ru>
2837 * config/nvptx/nvptx.c (nvptx_option_override): Do not set
2838 flag_toplevel_reorder.
2840 2016-07-25 Richard Biener <rguenther@suse.de>
2842 * cgraph.c (cgraph_node::verify_node): Compare against builtin
2843 by using DECL_BUILT_IN_CLASS and DECL_FUNCTION_CODE.
2844 * tree-chkp.c (chkp_gimple_call_builtin_p): Likewise.
2845 * tree-streamer.h (streamer_handle_as_builtin_p): Remove.
2846 (streamer_get_builtin_tree): Likewise.
2847 (streamer_write_builtin): Likewise.
2848 * lto-streamer.h (LTO_builtin_decl): Remove.
2849 * lto-streamer-in.c (lto_read_tree_1): Remove assert.
2850 (lto_input_scc): Remove LTO_builtin_decl handling.
2851 (lto_input_tree_1): Liekwise.
2852 * lto-streamer-out.c (lto_output_tree_1): Remove special
2853 handling of builtins.
2854 (DFS::DFS): Likewise.
2855 * tree-streamer-in.c (streamer_get_builtin_tree): Remove.
2856 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Remove
2858 (streamer_write_builtin): Remove.
2860 2016-07-25 Martin Liska <mliska@suse.cz>
2862 * lto-cgraph.c (input_symtab): Don't call get_working_sets
2863 if flag_auto_profile is set to true.
2865 2016-07-25 Martin Liska <mliska@suse.cz>
2867 PR gcov-profile/71868
2868 * cfgloopanal.c (expected_loop_iterations_unbounded): When we
2869 have a function with multiple latches, count them all.
2871 2016-07-25 Martin Liska <mliska@suse.cz>
2873 * tree-ssa-loop-niter.c (loop_only_exit_p): Release body array.
2875 2016-07-25 Martin Liska <mliska@suse.cz>
2877 PR tree-optimization/71987
2878 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Call get_ops
2879 just for SSA_NAMEs. Fix GNU coding style.
2881 2016-07-25 Martin Liska <mliska@suse.cz>
2883 PR gcov-profile/64874
2884 * gcov-io.h: Update command about file format.
2885 * gcov-iov.c (main): Adapt the numbering scheme.
2887 2016-07-24 Kugan Vivekanandarajah <kuganv@linaro.org>
2890 * tree-ssa-reassoc.c (optimize_vec_cond_expr): Handle tcc_compare stmt
2891 whose result is used in PHI.
2892 (final_range_test_p): Likewise.
2893 (maybe_optimize_range_tests): Likewise.
2895 2016-07-22 Michael Meissner <meissner@linux.vnet.ibm.com>
2897 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
2898 Reformat two multi-line strings.
2900 2016-07-22 Martin Sebor <msebor@redhat.com>
2902 * doc/extend.texi (Compound Literals): Add '@' missed in last commit.
2904 2016-07-22 Martin Sebor <msebor@redhat.com>
2907 * doc/extend.texi (Compound Literals): Correct and clarify.
2908 (Cast to Union): Same.
2910 2016-07-22 Kelvin Nilsen <kelvin@gcc.gnu.org>
2912 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
2913 comments to explain why certain error messages make mention of
2914 undocumented options.
2915 (rs6000_invalid_builtin): Change error messages to replace mention
2916 of undocumented options with mention of the -mcpu=power9 option
2917 that enables those undocumented options.
2918 * config/rs6000/rs6000.h (MASK_FLOAT128): New macro.
2919 (RS6000_BTM_FLOAT128): Use the new MASK_FLOAT128 macro in the
2920 definition of this macro to correct an existing error.
2921 * config/rs6000/rs6000.opt: Add the Undocumented qualifier to the
2922 mpower9-fusion, mpower9-vector, mpower9-dform, and mmodulo entries.
2923 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Modify
2924 descriptions of built-in functions so that they depend on
2925 -mcpu=power9 instead of on the corresponding undocumented flags.
2926 * doc/invoke.texi (Option Summary): Remove all mention of newly
2928 (IBM RS/6000 and PowerPC Options): Likewise.
2929 * doc/md.texi (Constraints for Particuliar Machines): Remove all
2930 mention of newly undocumented flags.
2932 2016-07-22 Evgeny Stupachenko <evstupac@gmail.com>
2934 * ipa-cp.c (determine_versionability): Do not create constprop clones,
2935 when target_clones attribute is set.
2937 2016-07-22 Bin Cheng <bin.cheng@arm.com>
2939 * common.opt (funsafe-loop-optimizations): Mark ignore.
2940 * doc/invoke.texi (funsafe-loop-optimizations): Remove.
2941 * loop-iv.c (get_simple_loop_desc): Remove unsafe-loop-optimizations
2943 * tree-ssa-loop-niter.c (finite_loop_p): Ditto.
2944 * config/bfin/bfin.c (bfin_can_use_doloop_p): Ditto.
2946 2016-07-22 Bin Cheng <bin.cheng@arm.com>
2948 * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
2950 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
2952 (number_of_iterations_exit): Warn missed loop optimization for
2953 possible infinite loops.
2955 2016-07-22 Segher Boessenkool <segher@kernel.crashing.org>
2958 * config/rs6000/rs6000.c (rs6000_file_start): Fix condition for
2959 when to emit a ".machine" pseudo-op.
2961 2016-07-22 Martin Liska <mliska@suse.cz>
2963 PR gcov-profile/69028
2964 PR gcov-profile/62047
2965 * coverage.c (coverage_compute_lineno_checksum): Do not
2966 calculate checksum for fns w/o xloc.file.
2967 (coverage_compute_profile_id): Likewise.
2969 2016-07-22 Georg-Johann Lay <avr@gjlay.de>
2971 * config/avr/avr.c (TARGET_SECONDARY_RELOAD): Remove hook define...
2972 (avr_secondary_reload): ...and implementation.
2973 (avr_adjust_insn_length) [ADJUST_LEN_LPM]: Remove handling.
2974 * config/avr/avr.md (reload_in<mode>): Remove insns.
2975 (adjust_len) [lpm]: Remove insn attribute value.
2976 * config/avr/predicates.md (flash_operand): Remove insn predicate.
2978 2016-07-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
2981 * builtin-attrs.def (ATTR_RT_NOTHROW_LEAF_LIST): New return twice
2983 * builtins.def (BUILT_IN_SETJMP): Use ATTR_RT_NOTHROW_LEAF_LIST here.
2984 * calls.c (special_function_p): Remove the special handling of the
2985 "__builtin_" prefix.
2987 2016-07-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
2990 * calls.c (gimple_maybe_alloca_call_p): New function. Return true
2991 if STMT may be an alloca call.
2992 (gimple_alloca_call_p, alloca_call_p): Return only true for the
2993 builtin alloca call.
2994 * calls.h (gimple_maybe_alloca_call_p): New function.
2995 * tree-inline.c (inline_forbidden_p_stmt): Use
2996 gimple_maybe_alloca_call_p here.
2998 2016-07-21 David Malcolm <dmalcolm@redhat.com>
3000 * spellcheck-tree.c (best_macro_match::best_macro_match):
3001 Explictly specify the template arguments when invoking the base
3002 class constructor, to help older C++ compilers.
3004 2016-07-21 Jakub Jelinek <jakub@redhat.com>
3007 * asan.c (asan_dynamic_init_call): Call asan_init_shadow_ptr_types
3008 before builtin_decl_implicit.
3010 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
3012 * optabs.c (emit_condiitonal_move): Short circuit for identical
3015 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
3017 * ifcvt.c (noce_if_info): New fields: speed_p, original_cost,
3018 max_seq_cost. Removed fields: then_cost, else_cost, branch_cost.
3019 (noce_conversion_profitable_p): New.
3020 (noce_try_store_flag_constants): Use it.
3021 (noce_try_addcc): Likewise.
3022 (noce_try_store_flag_mask): Likewise.
3023 (noce_try_cmove): Likewise.
3024 (noce_try_cmove_arith): Likewise.
3025 (bb_valid_for_noce_process_p): Add to the cost parameter rather than
3027 (noce_convert_multiple_sets): Move cost model to here, from...
3028 (bb_ok_for_noce_convert_multiple_sets) ...here.
3029 (noce_process_if_block): Update calls for above changes.
3030 (noce_find_if_block): Record new noce_if_info parameters.
3032 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
3034 * target.def (max_noce_ifcvt_seq_cost): New.
3035 * doc/tm.texi.in (TARGET_MAX_NOCE_IFCVT_SEQ_COST): Document it.
3036 * doc/tm.texi: Regenerate.
3037 * targhooks.h (default_max_noce_ifcvt_seq_cost): New.
3038 * targhooks.c (default_max_noce_ifcvt_seq_cost): New.
3039 * params.def (PARAM_MAX_RTL_IF_CONVERSION_PREDICTABLE_COST): New.
3040 (PARAM_MAX_RTL_IF_CONVERSION_UNPREDICTABLE_COST): Likewise.
3041 * doc/invoke.texi: Document new params.
3043 2016-07-21 Richard Biener <rguenther@suse.de>
3045 PR tree-optimization/71947
3046 * tree-vrp.c (extract_range_from_assert): Singleton symbolic
3047 ranges have useful limit_vr information.
3049 2016-07-21 Richard Biener <rguenther@suse.de>
3051 * function-tests.c (build_trivial_generic_function): Set
3052 BLOCK_SUPERCONTEXT of DECL_INITIAL.
3053 * omp-low.c (create_omp_child_function): Likewise.
3054 (grid_expand_target_grid_body): Likewise.
3055 * cgraphunit.c (init_lowered_empty_function): Likewise.
3056 (cgraph_node::expand_thunk): Likewise.
3057 * tree-parloops.c (create_loop_fn): Likewise.
3058 * ipa.c (cgraph_build_static_cdtor_1): Likewise.
3060 2016-07-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3062 * tree-ssa-strlen.c (strlen_dom_walker::before_dom_children): Fix typo
3065 2016-07-21 Georg-Johann Lay <avr@gjlay.de>
3067 * config/avr/avr.md (any_extract, any_shiftrt): New code iterators.
3068 (*insv.extract, *insv.shiftrt, *insv.not-bit.0, *insv.not-bit.7)
3069 (*insv.xor-extract, *insv.xor1-bit.0): New insns.
3070 (adjust_len) [insv_notbit, insv_notbit_0, insv_notbit_7]: New
3071 values for insn attribute.
3072 * config/avr/avr.c (avr_out_insert_notbit): New function.
3073 (avr_adjust_insn_length): Handle ADJUST_LEN_INSV_NOTBIT,
3074 ADJUST_LEN_INSV_NOTBIT_0/_7.
3075 * config/avr/avr-protos.h (avr_out_insert_notbit): New proto.
3077 2016-07-21 Bin Cheng <bin.cheng@arm.com>
3079 * tree-chrec.c (convert_affine_scev): New parameter. Pass new arg.
3080 (chrec_convert_1, chrec_convert): Ditto.
3081 * tree-chrec.h (chrec_convert, convert_affine_scev): New parameter.
3082 * tree-scalar-evolution.c (interpret_rhs_expr): Pass new arg.
3083 * tree-vrp.c (adjust_range_with_scev): Ditto.
3084 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): Ditto.
3085 (scev_var_range_cant_overflow): New function.
3086 (scev_probably_wraps_p): New parameter. Call above function.
3087 * tree-ssa-loop-niter.h (scev_probably_wraps_p): New parameter.
3089 2016-07-21 Bin Cheng <bin.cheng@arm.com>
3091 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Clean up
3092 by removing computation of may_be_zero.
3094 2016-07-21 Jakub Jelinek <jakub@redhat.com>
3096 * tree-object-size.c (unknown): Use HOST_WIDE_INT_M1U instead of -1.
3098 2016-07-21 Andrew Sutton <andrew.n.sutton@gmail.com>
3100 Improving concepts performance and diagnostics.
3101 * timevar.def (TV_CONSTRAINT_SAT, TV_CONSTRAINT_SUB): New time vars
3102 for constraint satisfaction and subsumption.
3103 * timevar.h (auto_timevar): New constructor that matches the push/pop
3104 pattern of usage in pt.c.
3106 2016-07-20 Uros Bizjak <ubizjak@gmail.com>
3108 * hwint.h (HOST_WIDE_INT_0): New define.
3109 (HOST_WIDE_INT_0U): Ditto.
3110 * double-int.c: Use HOST_WIDE_INT_0 instead of (HOST_WIDE_INT) 0.
3111 * dse.c: Use HOST_WIDE_INT_0U instead of (unsigned HOST_WIDE_INT) 0.
3112 * simplify-rtx.c: Ditto.
3113 * tree-object-size.c: Ditto.
3115 2016-07-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3117 * config/s390/s390.c (s390_encode_section_info): Remove mode size
3120 2016-07-20 Uros Bizjak <ubizjak@gmail.com>
3122 * cse.c: Use HOST_WIDE_INT_M1 instead of ~(HOST_WIDE_INT) 0.
3123 * combine.c: Use HOST_WIDE_INT_M1U instead of
3124 ~(unsigned HOST_WIDE_INT) 0.
3125 * double-int.h: Ditto.
3127 * dwarf2asm.c:Ditto.
3129 * genmodes.c: Ditto.
3131 * read-rtl.c: Ditto.
3132 * tree-ssa-loop-ivopts.c: Ditto.
3133 * tree-ssa-loop-prefetch.c: Ditto.
3134 * tree-vect-generic.c: Ditto.
3135 * tree-vect-patterns.c: Ditto.
3138 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
3140 * gcc/config/avr.c (avr_legitimize_address) [AVR_TINY]: Force
3141 constant addresses outside [0,0xc0] into a register.
3142 (avr_out_movhi_r_mr_reg_no_disp_tiny): Pass insn. And handle
3143 cases where the base address register is unused after.
3144 (avr_out_movhi_r_mr_reg_disp_tiny): Same.
3145 (avr_out_movhi_mr_r_reg_disp_tiny): Same.
3146 (avr_out_store_psi_reg_disp_tiny): Same.
3148 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
3150 Implement attribute progmem on reduced Tiny cores by adding
3151 flash offset 0x4000 to respective symbols.
3154 * doc/extend.texi (AVR Variable Attributes) [progmem]: Add
3155 documentation how it works on reduced Tiny cores.
3156 (AVR Named Address Spaces): No support for reduced Tiny.
3157 * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): New macro.
3158 (avr_address_tiny_pm_p): New static function.
3159 (avr_print_operand_address) [AVR_TINY]: Add AVR_TINY_PM_OFFSET
3160 if the address is in progmem.
3161 (avr_assemble_integer): Same.
3162 (avr_encode_section_info) [AVR_TINY]: Set AVR_SYMBOL_FLAG_TINY_PM
3163 for symbol_ref in progmem.
3164 * config/avr/avr.h (AVR_TINY_PM_OFFSET): New macro.
3165 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it instead of
3166 magic 0x4000 when built-in def'ing __AVR_TINY_PM_BASE_ADDRESS__.
3168 2016-07-20 Patrick Palka <ppalka@gcc.gnu.org>
3170 * configure.ac (thin_archive_support): New variable. AC_SUBST it.
3171 * configure: Regenerate.
3172 * Makefile.in (THIN_ARCHIVE_SUPPORT): New variable.
3173 (USE_THIN_ARCHIVES): New variable.
3174 (libbackend.a): If USE_THIN_ARCHIVES then pass T to ar to build
3175 this archive as a thin archive.
3177 2016-07-20 David Malcolm <dmalcolm@redhat.com>
3179 * diagnostic-show-locus.c (diagnostic_show_locus): If this is the
3180 same location as last time, don't skip if we have fix-it hints.
3181 Clarify the skipping logic by converting it from one "if" clause
3182 to repeated "if" clauses.
3183 * spellcheck-tree.c: Include "cpplib.h".
3184 (find_closest_macro_cpp_cb): Move here from c/c-decl.c.
3185 (best_macro_match::best_macro_match): New constructor.
3186 * spellcheck-tree.h (struct edit_distance_traits<cpp_hashnode *>):
3187 Move here from c/c-decl.c.
3188 (class best_macro_match): Move here from c/c-decl.c, converting
3189 from a typedef to a subclass, gaining a ctor.
3191 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
3193 * config/avr/avr-protos.h (avr_addr_space_supported_p): New prototype.
3194 * config/avr/avr.c (TARGET_ADDR_SPACE_DIAGNOSE_USAGE): New hook
3196 (avr_addr_space_diagnose_usage): ...and implementation.
3197 (avr_addr_space_supported_p): New function.
3198 (avr_nonconst_pointer_addrspace, avr_pgm_check_var_decl): Only
3199 report bad address space usage if that space is supported.
3200 (avr_insert_attributes): Same. No more complain about unsupported
3202 * config/avr/avr-c.c (tm_p.h): Include it.
3203 (avr_cpu_cpp_builtins): Only define addr-space related built-in
3204 macro if avr_addr_space_supported_p.
3206 2016-07-20 Alexander Monakov <amonakov@ispras.ru>
3208 * config/nvptx/nvptx.c (nvptx_option_override): Do not set
3209 flag_toplevel_reorder.
3211 2016-07-20 David Malcolm <dmalcolm@redhat.com>
3213 * gcc-rich-location.c
3214 (gcc_rich_location::add_fixit_misspelled_id): New overload, taking
3216 * gcc-rich-location.h
3217 (gcc_rich_location::add_fixit_misspelled_id): Likewise.
3219 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
3221 * target.def (addr_space): Add new diagnose_usage to hook vector.
3222 * targhooks.c (default_addr_space_diagnose_usage): Add default
3223 implementation and...
3224 * targhooks.h (default_addr_space_diagnose_usage): ... its prototype.
3225 * c/c-parser.c (c_lex_one_token) [CPP_NAME]: If the token
3226 is some address space, call targetm.addr_space.diagnose_usage.
3227 * doc/tm.texi.in (Named Address Spaces): Add anchor for
3228 TARGET_ADDR_SPACE_DIAGNOSE_USAGE documentation.
3229 * doc/tm.texi: Regenerate.
3231 2016-07-20 Martin Liska <mliska@suse.cz>
3234 * graphite-isl-ast-to-gimple.c (later_of_the_two):
3235 Properly handly PHI stmts.
3237 2016-07-20 Bin Cheng <bin.cheng@arm.com>
3239 PR tree-optimization/71503
3240 PR tree-optimization/71683
3241 * tree-if-conv.c (gen_phi_arg_condition): Record true predicate
3244 2016-07-20 Martin Liska <mliska@suse.cz>
3246 * doc/invoke.texi (-fipa-ra): Document when the option is
3247 disabled. Fix a typo.
3249 2016-07-20 Martin Liska <mliska@suse.cz>
3251 * Makefile.in: Include fibonacci_heap.c
3252 * fibonacci_heap.c: New file.
3253 * fibonacci_heap.h (fibonacci_heap::insert): Use insert_node.
3254 (fibonacci_heap::union_with): Fix deletion of the second heap.
3255 * selftest-run-tests.c (selftest::run_tests): Incorporate
3256 fibonacci heap tests.
3257 * selftest.h: Declare fibonacci_heap_c_tests.
3259 2016-07-20 Martin Liska <mliska@suse.cz>
3261 * selftest-run-tests.c (selftest::run_tests): New function.
3262 * selftest.h (sreal_c_tests): Declare.
3263 * sreal.c (sreal_verify_basics): New function.
3264 (verify_aritmetics): Likewise.
3265 (sreal_verify_arithmetics): Likewise.
3266 (verify_shifting): Likewise.
3267 (sreal_verify_shifting): Likewise.
3268 (void sreal_c_tests): Likewise.
3270 2016-07-19 Jakub Jelinek <jakub@redhat.com>
3272 PR rtl-optimization/71916
3273 * cfgrtl.c (contains_no_active_insn_p): Return false also for
3274 bb which have a single succ fake edge.
3276 2016-07-19 Aldy Hernandez <aldyh@redhat.com>
3279 * dwarf2out.c (gen_subprogram_die): Only call
3280 gen_unspecified_parameters_die while dumping early dwarf.
3282 2016-07-19 Jakub Jelinek <jakub@redhat.com>
3285 * gimple-fold.c (fold_builtin_memory_op): Use
3286 get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
3288 2016-07-19 Uros Bizjak <ubizjak@gmail.com>
3290 * builtins.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1,
3291 HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1,
3292 HOST_WIDE_INT_M1 instead of (HOST_WIDE_INT) -1 and
3293 HOST_WIDE_INT_M1U instead of (unsigned HOST_WIDE_INT) -1.
3297 * double-int.c: Ditto.
3299 * dwarf2out.c: Ditto.
3302 * fold-const.c: Ditto.
3303 * function.c: Ditto.
3305 * genmodes.c: Ditto.
3309 * loop-doloop.c: Ditto.
3310 * loop-invariant.c: Ditto.
3317 * simplify-rtx.c: Ditto.
3318 * stor-layout.c: Ditto.
3320 * tree-ssa-loop-ivopts.c: Ditto.
3321 * tree-vect-generic.c: Ditto.
3322 * tree-vect-patterns.c: Ditto.
3327 * wide-int-print.cc: Ditto.
3328 * wide-int.cc: Ditto.
3329 * wide-int.h: Ditto.
3331 2016-07-19 David Malcolm <dmalcolm@redhat.com>
3333 * selftest.c (selftest::assert_streq): Handle NULL values of
3334 val_actual and val_expected.
3336 2016-07-19 Martin Jambor <mjambor@suse.cz>
3339 * trans-decl.c (gfc_generate_function_code): Use cgraph_get_create_node
3340 rather than cgraph_create_node to get a call graph node.
3342 2016-07-19 Richard Biener <rguenther@suse.de>
3344 * gimple-fold.c (get_base_constructor): Add VIEW_CONVERT case,
3345 handle all tcc_constant bases and valueize SSA names.
3346 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Handle
3349 2016-07-19 David Malcolm <dmalcolm@redhat.com>
3351 * function-tests.c (selftest::verify_three_block_rtl_cfg): Verify
3352 the flags of the exit block and bb2, not just the entry block.
3354 2016-07-19 Richard Biener <rguenther@suse.de>
3356 PR tree-optimization/71901
3357 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
3358 align member, group stuff with the bitfield.
3359 (vn_ref_op_align_unit): New inline.
3360 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): For ARRAY_REFs
3361 record element alignment and operand 3 unchanged.
3362 (ao_ref_init_from_vn_reference): Adjust.
3363 (valueize_refs_1): Likewise.
3364 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
3366 2016-07-19 Richard Biener <rguenther@suse.de>
3368 PR tree-optimization/71908
3369 * tree-ssa-structalias.c (get_constraint_for_component_ref): Handle
3370 symbolic constants in a more reliable way.
3372 2016-07-19 Ilya Enkovich <ilya.enkovich@intel.com>
3374 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Update
3376 (vect_update_inits_of_drs): Likewise.
3377 (vect_create_cond_for_alias_checks): Likewise.
3378 * tree-vect-loop.c (vect_get_known_peeling_cost): Likewise.
3380 2016-07-19 Richard Biener <rguenther@suse.de>
3383 * lto-streamer-out.c (DFS::DFS_write_tree_body): For blocks
3384 with an abstract origin that is not an inlined function outer
3385 scope add a self-reference as abstract origin.
3386 * tree-streamer-out.c (write_ts_block_tree_pointers): Likewise.
3388 2016-07-18 Michael Meissner <meissner@linux.vnet.ibm.com>
3391 * config/rs6000/rs6000.c (rs6000_function_value): Fix
3392 unintentional System V.4 structure return breakage for structures
3393 with a single floating point element.
3395 2016-07-18 Yuri Rumyantsev <ysrumyan@gmail.com>
3397 PR tree-optimization/71734
3398 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Add REF_LOOP argument which
3399 contains REF, use it to check safelen, assume that safelen value
3400 must be greater 1, fix style.
3401 (ref_indep_loop_p_2): Add REF_LOOP argument.
3402 (ref_indep_loop_p): Pass LOOP as additional argument to
3405 2016-07-18 Dominik Vogt <vogt@linux.vnet.ibm.com>
3407 * cfgexpand.c (expand_stack_vars): Implement synamic stack space
3408 allocation in the prologue.
3409 * explow.c (get_dynamic_stack_base): New function to return an address
3410 expression for the dynamic stack base.
3411 (get_dynamic_stack_size): New function to do the required dynamic stack
3412 space size calculations.
3413 (allocate_dynamic_stack_space): Use new functions.
3414 (align_dynamic_address): Move some code from
3415 allocate_dynamic_stack_space to new function.
3416 * explow.h (get_dynamic_stack_base, get_dynamic_stack_size): Export.
3418 2016-07-18 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3420 * config/s390/s390.c (s390_encode_section_info): Always set
3421 notaligned marker if mode size is 0 or no MEM_ALIGN info could be
3424 2016-07-18 Richard Biener <rguenther@suse.de>
3426 PR tree-optimization/71893
3427 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Compensate
3428 for sizetype cast added by array_ref_element_size.
3429 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
3431 2016-07-16 John David Anglin <danglin@gcc.gnu.org>
3433 * config/pa/pa.c (hppa_profile_hook): Allocate stack space for
3434 register parameters. Remove code to initialize argument pointer
3435 on TARGET_64BIT. Optimize call to _mcount when it can be reached
3436 using a pc-relative branch. Cleanup conditional code.
3437 * config/pa/pa.md (call_mcount): New expander.
3438 (call_mcount_nonpic): New insn.
3439 (call_mcount_pic): New insn and split.
3440 (call_mcount_pic_post_reload): New insn.
3441 (call_mcount_64bit): New insn and split.
3442 (call_mcount_64bit_post_reload): New insn.
3444 2016-07-15 Georg-Johann Lay <avr@gjlay.de>
3446 * config/avr/predicates.md (const_m255_to_m1_operand): New.
3447 * config/avr/constraints.md (Cn8, Ca1, Co1, Yx2): New constraints.
3448 * config/avr/avr.md (add<mode>3) <ALL1>: Fix set_vzn for +/-2.
3449 (*cmphi.zero-extend.0, *cmphi.zero-extend.1)
3450 (*usum_widenqihi3, *udiff_widenqihi3)
3451 (*addhi3_zero_extend.const): New combiner insns.
3452 (andqi3, iorqi3): Provide "l" (NO_LD_REGS) alternative if
3453 just 1 bit is affected.
3454 * config/avr/avr.c (avr_out_bitop) <QImode>: Don't access xop[3].
3455 (avr_out_compare) [EQ,NE]: Tweak comparing d-regs against -1.
3457 2016-07-15 Cesar Philippidis <cesar@codesourcery.com>
3459 * omp-low.c (lower_omp_target): Mark data clauses with
3460 GOMP_MAP_FORCE_{PRESENT,TO,FROM,TOFROM} as potentially having
3461 zero-length subarrays.
3463 2016-07-15 Richard Biener <rguenther@suse.de>
3465 PR tree-optimization/71881
3466 * tree-loop-distribution.c (destroy_loop): Remove blocks in
3467 reverse DOM order to make debug temp generation happy.
3469 2016-07-15 Richard Biener <rguenther@suse.de>
3471 PR tree-optimization/71887
3472 * tree-ssa-phiopt.c (absorbing_element_p): Add rhs arg and
3473 verify it is not zero for division / modulo handling.
3474 (value_replacement): Adjust.
3476 2016-07-15 Virendra Pathak <virendra.pathak@broadcom.com>
3477 Julian Brown <julian@codesourcery.com>
3479 * config/aarch64/aarch64-cores.def: Update vulcan COSTS.
3480 * config/aarch64/aarch64-cost-tables.h
3481 (vulcan_extra_costs): New variable.
3482 * config/aarch64/aarch64.c
3483 (vulcan_addrcost_table): Likewise.
3484 (vulcan_regmove_cost): Likewise.
3485 (vulcan_vector_cost): Likewise.
3486 (vulcan_branch_cost): Likewise.
3487 (vulcan_tunings): Likewise.
3489 2016-07-15 Alexander Monakov <amonakov@ispras.ru>
3491 * cgraphunit.c (cgraph_order_sort_kind): New entry ORDER_VAR_UNDEF.
3492 (output_in_order): Loop over undefined variables too. Output them
3493 via assemble_undefined_decl. Skip variables that correspond to hard
3494 registers or have value-exprs.
3495 * varpool.c (symbol_table::output_variables): Handle undefined
3496 variables together with defined ones.
3498 2016-07-15 Richard Biener <rguenther@suse.de>
3500 * tree-ssa-pre.c (get_representative_for): Make sure to return
3501 the value number of SSA names.
3502 (phi_translate_1): get_representative_for cannot return NULL.
3503 (do_pre_regular_insertion): Remove redundant call to
3504 fully_constant_expression.
3505 (do_pre_partial_partial_insertion): Likewise.
3507 2016-07-15 Bin Cheng <bin.cheng@arm.com>
3509 * tree-scalar-evolution.c (simple_iv_with_niters): New funcion.
3510 (derive_simple_iv_with_niters): New function.
3511 (simple_iv): Rewrite using simple_iv_with_niters.
3512 * tree-scalar-evolution.h (simple_iv_with_niters): New decl.
3513 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
3515 (number_of_iterations_exit): Rewrite using above function.
3516 * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
3519 2016-07-15 Richard Biener <rguenther@suse.de>
3521 * config/i386/i386.c (ix86_builtin_vectorization_cost): Adjust
3524 2016-07-14 Jakub Jelinek <jakub@redhat.com>
3526 PR tree-optimization/71872
3527 * tree-data-ref.c (get_references_in_stmt): Ignore references
3528 with is_gimple_constant get_base_address.
3530 2016-07-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
3532 * config/arm/arm.h (TARGET_HAVE_LDACQ): Enable for ARMv8-M Mainline.
3533 (TARGET_HAVE_LDACQD): New macro.
3534 * config/arm/sync.md (atomic_loaddi): Use TARGET_HAVE_LDACQD rather
3535 than TARGET_HAVE_LDACQ.
3536 (arm_load_acquire_exclusivedi): Likewise.
3537 (arm_store_release_exclusivedi): Likewise.
3539 2016-07-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
3541 PR rtl-optimization/71878
3542 * lra-constraints.c (match_reload): Pass information about other
3543 output operands. Create new unique register value if matching input
3544 operand shares same register value as output operand being considered.
3545 (curr_insn_transform): Record output operands already processed.
3547 2016-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3550 PR tree-optimization/70923
3551 * tree-vect-patterns.c: Include mult-synthesis.h.
3552 (target_supports_mult_synth_alg): New function.
3553 (synth_lshift_by_additions): Likewise.
3554 (apply_binop_and_append_stmt): Likewise.
3555 (vect_synth_mult_by_constant): Likewise.
3556 (target_has_vecop_for_code): Likewise.
3557 (vect_recog_mult_pattern): Use above functions to synthesize vector
3558 multiplication by integer constants.
3560 2016-07-14 Alan Modra <amodra@gmail.com>
3562 * gcc/config/rs6000/altivec.md (altivec_mov<mode>): Disparage
3563 gpr alternatives. Correct '*' placement on Y,r alternative.
3564 Add '*' on operand 1 of r,r alternative.
3566 2016-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3568 * expmed.c (mult_variant, choose_mult_variant): Move declaration to...
3569 * expmed.h: ... Here.
3571 2016-07-14 Jan Hubicka <hubicka@ucw.cz>
3573 * gimple.h (stmt_can_terminate_bb_p): New function.
3574 * tree-cfg.c (need_fake_edge_p): Rename to ...
3575 (stmt_can_terminate_bb_p): ... this; return true if stmt can
3576 throw external; handle const and pure calls.
3577 * tree-ssa-loop-niter.c (loop_only_exit_p): Use it.
3579 2016-07-14 Richard Biener <rguenther@suse.de>
3581 PR tree-optimization/71866
3582 * tree-ssa-pre.c (get_constant_for_value_id): Remove.
3583 (do_hoist_insertion): Avoid endless recursion when we
3584 didn't insert anything because we managed to simplify
3585 things down to a constant or SSA name.
3586 (fully_constant_expression): Re-write in terms of ...
3587 * tree-ssa-sccvn.h (vn_nary_simplify): ... this. Declare.
3588 * tree-ssa-sccvn.c (vn_nary_simplify): New wrapper around
3589 vn_nary_build_or_lookup_1.
3590 (vn_nary_build_or_lookup_1): Added flag and renamed from ...
3591 (vn_nary_build_or_lookup): ... this which now wraps it.
3593 2016-07-14 Alan Modra <amodra@gmail.com>
3596 * config/rs6000/rs6000.c (rs6000_option_override_internal): Deal
3597 with p9_vector override before power9-dform override.
3599 2016-07-13 Andi Kleen <ak@linux.intel.com>
3601 * value-prof.c (gimple_value_profile_transformations): Don't run
3602 when auto_profile is on.
3604 2016-07-13 Andi Kleen <ak@linux.intel.com>
3606 * auto-profile.c (update_inlined_ind_target,
3607 afdo_indirect_call): Print information to dump file.
3609 2016-07-13 Andrew Burgess <andrew.burgess@embecosm.com>
3611 * genrecog.c (special_predicate_operand_p): New function.
3612 (predicate_name): Move function.
3613 (validate_pattern): Don't warn about missing mode for all
3614 define_special_predicate predicates.
3616 2016-07-13 Bin Cheng <bin.cheng@arm.com>
3618 * tree-vect-data-refs.c (vect_no_alias_p): New function.
3619 (vect_prune_runtime_alias_test_list): Call vect_no_alias_p to
3620 resolve alias checks which are known at compilation time.
3621 Truncate vector LOOP_VINFO_MAY_ALIAS_DDRS(loop_vinfo) if all
3622 alias checks are resolved. Move dump info for too many runtime
3623 alias checks to here...
3624 * tree-vect-loop.c (vect_analyze_loop_2): ...From here.
3626 2016-07-13 Richard Biener <rguenther@suse.de>
3628 PR tree-optimization/24574
3629 * tree-ssa-phiopt.c (absorbing_element_p): Pass in argument
3630 position and add shift, rotate, divison and modulo support
3632 (value_replacement): Pass in argument position to absorbing_element_p.
3634 2016-07-13 Ilya Enkovich <ilya.enkovich@intel.com>
3637 * ipa-inline-transform.c (inline_call): Support
3638 instrumented thunks.
3640 2016-07-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
3642 * config/arm/arm.h (TARGET_HAVE_CBZ): Define.
3643 (TARGET_IDIV): Set for all Thumb targets provided they have hardware
3645 * config/arm/arm.md (divsi3): New unpredicable alternative for ARMv8-M
3646 Baseline. Make initial alternative TARGET_32BIT only.
3647 (udivsi3): Likewise.
3648 * config/arm/thumb1.md (thumb1_cbz): New define_insn.
3649 * doc/sourcebuild.texi (arm_thumb1_cbz_ok): Document new effective
3652 2016-07-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
3654 * config/arm/arm.h (TARGET_HAVE_MOVT): Include ARMv8-M as having MOVT.
3655 * config/arm/arm.c (arm_arch_name): (const_ok_for_op): Check MOVT/MOVW
3656 availability with TARGET_HAVE_MOVT.
3657 (thumb_legitimate_constant_p): Strip the high part of a label_ref.
3658 (thumb1_rtx_costs): Also return 0 if setting a half word constant and
3659 MOVW is available and replace (unsigned HOST_WIDE_INT) INTVAL by
3661 (thumb1_size_rtx_costs): Make set of half word constant also cost 1
3662 extra instruction if MOVW is available. Use a cost variable
3663 incremented by COSTS_N_INSNS (1) when the condition match rather than
3664 returning an arithmetic expression based on COSTS_N_INSNS. Make
3665 constant with bottom half word zero cost 2 instruction if MOVW is
3667 * config/arm/arm.md (define_attr "arch"): Add v8mb.
3668 (define_attr "arch_enabled"): Set to yes if arch value is v8mb and
3669 target is ARMv8-M Baseline.
3670 (arm_movt): New unpredicable alternative for ARMv8-M Baseline.
3671 (arm_movtas_ze): Likewise.
3672 * config/arm/thumb1.md (thumb1_movdi_insn): Add ARMv8-M Baseline only
3673 alternative for constants satisfying j constraint.
3674 (thumb1_movsi_insn): Likewise.
3675 (movsi splitter for K alternative): Tighten condition to not trigger
3676 if movt is available and j constraint is satisfied.
3677 (Pe immediate splitter): Likewise.
3678 (thumb1_movhi_insn): Add ARMv8-M Baseline only alternative for
3679 constant fitting in an halfword to use MOVW.
3680 * doc/sourcebuild.texi (arm_thumb1_movt_ok): Document new ARM
3683 2016-07-13 Richard Biener <rguenther@suse.de>
3686 * gimplify.c (gimplify_modify_expr): Gimplify the RHS before
3687 gimplifying the LHS. Make sure to gimplify a returning twice
3688 call LHS without using SSA names.
3690 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3692 * tree-data-ref.c (find_data_references_in_stmt): Remove
3693 unnecessary call to vec::release.
3694 (graphite_find_data_references_in_stmt): Likewise.
3695 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Likewise.
3696 * tree-vect-stmts.c (vectorizable_condition): Likewise.
3698 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3700 * cfgexpand.c (expand_used_vars): Make the type of a local
3702 * genmatch.c (lower_for): Likewise.
3703 * haifa-sched.c (haifa_sched_init): Likewise.
3704 (add_to_speculative_block): Likewise.
3705 (create_check_block_twin): Likewise.
3706 * predict.c (handle_missing_profiles): Likewise.
3707 * tree-data-ref.c (loop_nest_has_data_refs): Likewise.
3708 * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Likewise.
3709 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
3711 (maybe_lower_iteration_bound): Likewise.
3712 * tree-ssa-sccvn.c (DFS): Likewise.
3713 * tree-stdarg.c (reachable_at_most_once): Likewise.
3714 * tree-vect-stmts.c (vectorizable_conversion): Likewise.
3715 (vectorizable_store): Likewise.
3717 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3719 * tree-ssa-sccvn.c (sccvn_dom_walker::~sccvn_dom_walker): remove.
3720 (sccvn_dom_walker): make cond_stack an auto_vec.
3722 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3724 * ree.c (struct ext_state): Make type of members auto_vec.
3725 (find_and_remove_re): Adjust.
3727 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3729 * cfgexpand.c (struct stack_vars_data): Make type of fields
3731 (expand_used_vars): Adjust.
3733 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3735 * ipa.c (record_cdtor_fn): Adjust.
3736 (build_cdtor_fns): Likewise.
3737 (ipa_cdtor_merge): Make static_ctors and static_dtors local
3740 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3742 * genextract.c (struct accum_extract): Add constructor and make
3746 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3748 * tree.c (struct free_lang_data_d): Add constructor and change
3749 types of members to ones that automatically manage resources.
3750 (fld_worklist_push): Adjust.
3751 (find_decls_types): Likewise.
3752 (find_decls_types_in_eh_region): Likewise.
3753 (free_lang_data_in_cgraph): Stop manually creating and
3754 destroying members of free_lang_data_d.
3756 2016-07-13 Uros Bizjak <ubizjak@gmail.com>
3758 PR rtl-optimization/68961
3759 * config/i386/sse.md (movsd/movhpd to movupd peephole2s): Add new
3760 peephole variant. Use sse_reg_operand predicates.
3762 2016-07-12 Uros Bizjak <ubizjak@gmail.com>
3764 * config/i386/predicates.md (x86_64_immediate_operand)
3765 <case CONST_INT>: Remove unneeded truncation to DImode.
3766 <case CONST>: Ditto.
3767 (x86_64_zext_immediate_operand) <case CONST>: Ditto.
3769 2016-07-12 Michael Meissner <meissner@linux.vnet.ibm.com>
3772 * config/rs6000/altivec.md (altivec_vperm_<mode>_internal):
3773 The xxperm and xxpermr instructions require that the 2nd input
3774 operand overlap with the output operand, and not the 1st.
3775 (altivec_vperm_v8hiv16qi): Likewise.
3776 (altivec_vperm_<mode>_uns_internal): Likewise.
3777 (altivec_vpermr_<mode>_internal): Likewise.
3778 (vperm_v8hiv4si): Likewise.
3779 (vperm_v16qiv8hi): Likewise.
3781 2016-07-12 Nathan Sidwell <nathan@acm.org>
3783 * config/arm/arm.c (arm_option_override): Set MASK_SINGLE_PIC_BASE
3784 when -mno-pic-data-is-text-relative is in effect, by default.
3785 * doc/invoke.texi (mpic-data-is-text-relative): Document new
3786 behavior and clarify.
3788 2016-07-12 Martin Liska <mliska@suse.cz>
3790 * params.def: Add avg-loop niter.
3791 * tree-ssa-loop-ivopts.c (avg_loop_niter): Use the param.
3792 * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
3793 * doc/invoke.texi: Document the new parameter.
3795 2016-07-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3798 * expr.c (store_constructor): Mask sign-extended bits when widening
3799 sub-word constructor element at the start of a word.
3801 2016-07-12 Martin Liska <mliska@suse.cz>
3803 * Makefile.in: Append rule for params-options.h.
3804 * params-options.h: New file.
3806 2016-07-12 Martin Liska <mliska@suse.cz>
3808 * ira-build.c (mark_loops_for_removal): Properly iterate
3811 2016-07-12 Steven Bosscher <steven@gcc.gnu.org>
3812 Richard Biener <rguenther@suse.de>
3814 PR tree-optimization/23286
3815 PR tree-optimization/70159
3816 * doc/invoke.texi: Document -fcode-hoisting.
3817 * common.opt (fcode-hoisting): New flag.
3818 * opts.c (default_options_table): Enable -fcode-hoisting at -O2+.
3819 * tree-ssa-pre.c (pre_stats): Add hoist_insert.
3820 (do_regular_insertion): Rename to ...
3821 (do_pre_regular_insertion): ... this and amend general comments
3822 on insertion strathegy.
3823 (do_partial_partial_insertion): Rename to ...
3824 (do_pre_partial_partial_insertion): ... this.
3825 (do_hoist_insertion): New function.
3826 (insert_aux): Take flags on whether to do PRE and/or hoist insertion
3827 and call do_hoist_insertion properly.
3829 (pass_pre::gate): Enable also if -fcode-hoisting is enabled.
3830 (pass_pre::execute): Register hoist_insert stats.
3832 2016-07-12 Jakub Jelinek <jakub@redhat.com>
3835 * gimple-fold.c (optimize_atomic_compare_exchange_p): Return false
3836 for SCALAR_FLOAT_TYPE_P type of expected var, or if TYPE_PRECISION
3837 is different from mode's bitsize. Small cleanup.
3839 2016-07-12 Richard Biener <rguenther@suse.de>
3841 PR rtl-optimization/68961
3842 * fwprop.c (propagate_rtx): Allow SUBREGs of VEC_CONCAT and CONCAT
3843 to simplify to a non-constant.
3845 2016-07-11 Jakub Jelinek <jakub@redhat.com>
3848 * omp-low.c (expand_omp_target): Gimplify device.
3850 PR tree-optimization/71823
3851 * tree-vect-stmts.c (vectorizable_operation): Use vect_get_vec_defs
3852 to get vec_oprnds2 from op2.
3854 2016-07-11 Uros Bizjak <ubizjak@gmail.com>
3856 * config/i386/predicates.md (x86_64_immediate_operand) <case CONST>:
3857 Hoist common subexpressions.
3858 (x86_64_zext_immediate_operand) <case CONST>: Ditto.
3860 2016-07-11 Pat Haugen <pthaugen@us.ibm.com>
3863 * config/rs6000/rs6000.md (stfiwx): Change constraint to 'wu' to
3864 prevent generation of 'stxsiwx' on pre Power8 hardware.
3866 2016-07-11 David Malcolm <dmalcolm@redhat.com>
3868 * input.c: Include cpplib.h.
3869 (selftest::temp_source_file): New class.
3870 (selftest::temp_source_file::temp_source_file): New ctor.
3871 (selftest::temp_source_file::~temp_source_file): New dtor.
3872 (selftest::should_have_column_data_p): New function.
3873 (selftest::test_should_have_column_data_p): New function.
3874 (selftest::temp_line_table): New class.
3875 (selftest::temp_line_table::temp_line_table): New ctor.
3876 (selftest::temp_line_table::~temp_line_table): New dtor.
3877 (selftest::test_accessing_ordinary_linemaps): Add case_ param; use
3878 it to create a temp_line_table.
3879 (selftest::assert_loceq): Only verify LOCATION_COLUMN for
3880 locations that are known to have column data.
3881 (selftest::line_table_case): New struct.
3882 (selftest::test_reading_source_line): Move tempfile handling
3883 to class temp_source_file.
3884 (ASSERT_TOKEN_AS_TEXT_EQ): New macro.
3885 (selftest::assert_token_loc_eq): New function.
3886 (ASSERT_TOKEN_LOC_EQ): New macro.
3887 (selftest::test_lexer): New function.
3888 (selftest::boundary_locations): New array.
3889 (selftest::input_c_tests): Call test_should_have_column_data_p.
3890 Loop over a test matrix of interesting values of location and
3891 default_range_bits, calling test_lexer on each case in the matrix.
3892 Move call to test_accessing_ordinary_linemaps into the matrix.
3893 * selftest.h (ASSERT_EQ): Reimplement in terms of...
3894 (ASSERT_EQ_AT): New macro.
3896 2016-07-11 H.J. Lu <hongjiu.lu@intel.com>
3899 * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
3900 Don't convert TImode in debug insn.
3902 2016-07-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
3904 Convert TYPE_ALIGN_OK to a TYPE_LANG_FLAG.
3905 * tree-core.h (tree_base::nothrow_flag): Adjust comment.
3906 (tree_type_common::lang_flag_7): New.
3907 (tree_type_common::spare): Reduce size.
3908 * tree.h (TYPE_ALIGN_OK): Remove.
3909 (TYPE_LANG_FLAG_7): New.
3910 (get_inner_reference): Adjust header.
3911 * print-tree.c (print_node): Adjust.
3912 * expr.c (get_inner_reference): Remove parameter keep_aligning.
3913 (get_bit_range, expand_assignment, expand_expr_addr_expr_1): Adjust
3914 calls to get_inner_reference.
3915 (expand_expr_real_1): Adjust call to get_inner_reference. Remove
3916 handling of TYPE_ALIGN_OK.
3917 * builtins.c (get_object_alignment_2): Adjust call to
3918 get_inner_reference. Remove handling of VIEW_CONVERT_EXPR.
3919 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove handling of
3921 * asan.c (instrument_derefs): Adjust calls to get_inner_reference.
3922 * cfgexpand.c (expand_debug_expr): Likewise.
3923 * dbxout.c (dbxout_expand_expr): Likewise.
3924 * dwarf2out.c (loc_list_for_address_of_addr_expr_of_indirect_ref,
3925 loc_list_from_tree, fortran_common): Likewise.
3926 * fold-const.c (optimize_bit_field_compare,
3927 decode_field_reference, fold_unary_loc, fold_comparison,
3928 split_address_to_core_and_offset): Likewise.
3929 * gimple-laddress.c (execute): Likewise.
3930 * gimple-ssa-strength-reduction.c (slsr_process_ref): Likewise.
3931 * gimplify.c (gimplify_scan_omp_clauses): Likewise.
3932 * hsa-gen.c (gen_hsa_addr): Likewise.
3933 * simplifx-rtx.c (delegitimize_mem_from_attrs): Likewise.
3934 * tsan.c (instrument_expr): Likewise.
3935 * ubsan.c (instrument_bool_enum_load, instrument_object_size): Likewise.
3936 * tree.c (verify_type_variant): Remove handling of TYPE_ALIGN_OK.
3937 * tree-affine.c (tree_to_aff_combination,
3938 get_inner_reference_aff): Adjust calls to get_inner_reference.
3939 * tree-data-ref.c (split_constant_offset_1,
3940 dr_analyze_innermost): Likewise.
3941 * tree-scalar-evolution.c (interpret_rhs_expr): Likewise.
3942 * tree-sra.c (ipa_sra_check_caller): Likewise.
3943 * tree-ssa-loop-ivopts.c (split_address_cost): Likewise.
3944 * tree-ssa-math-opts.c (find_bswap_or_nop_load,
3945 bswap_replace): Likewise.
3946 * tree-vect-data-refs.c (vect_check_gather,
3947 vect_analyze_data_refs): Likewise.
3948 * config/mips/mips.c (r10k_safe_mem_expr_p): Likewise.
3949 * config/pa/pa.c (pa_emit_move_sequence): Remove handling of
3952 2016-07-11 David Malcolm <dmalcolm@redhat.com>
3954 * Makefile.in (selftest-valgrind): New phony target.
3955 * function-tests.c (selftest::build_cfg): Delete pass instances
3956 created by the test.
3957 (selftest::convert_to_ssa): Likewise.
3958 (selftest::test_expansion_to_rtl): Likewise.
3959 * tree-cfg.c (selftest::test_linear_chain): Release dominator
3961 (selftest::test_diamond): Likewise.
3963 2016-07-11 Richard Biener <rguenther@suse.de>
3965 PR tree-optimization/71816
3966 * tree-ssa-pre.c (compute_avail): Adjust alignment of ref rather
3967 than replacing all of its operands.
3969 2016-07-11 Alan Modra <amodra@gmail.com>
3971 * config/rs6000/rs6000.md (UNSPEC_DOLOOP): New unspec.
3972 (ctr<mode>): Add unspec.
3973 (ctr<mode>_internal*): Likewise.
3975 2016-07-08 James Bowman <james.bowman@ftdichip.com>
3977 * config/ft32/ft32.c (ft32_elf_encode_section_info): New function.
3978 * config/ft32/ft32.h (ASM_OUTPUT_SYMBOL_REF): New function.
3980 2016-07-08 Vladimir Makarov <vmakarov@redhat.com>
3982 PR rtl-optimization/71621
3983 * lra-constraints.c (process_alt_operands): Check combination of
3986 2016-07-08 Jason Merrill <jason@redhat.com>
3987 Richard Biener <rguenther@suse.de>
3989 P0145: Refining Expression Order for C++.
3990 * gimplify.c (initial_rhs_predicate_for): New.
3991 (gimplfy_modify_expr): Gimplify RHS before LHS.
3993 2016-07-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3996 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
3997 Allow standard error handling to take over when a wrong number
3998 of arguments is presented to __builtin_vec_ld () or
3999 __builtin_vec_st ().
4001 2016-07-08 Jiong Wang <jiong.wang@arm.com>
4003 * config/aarch64/aarch64-simd-builtins.def (smax): Remove float
4008 * config/aarch64/arm_neon.h (vmaxnm_f32): Use
4009 __builtin_aarch64_fmaxv2sf.
4010 (vmaxnmq_f32): Likewise.
4011 (vmaxnmq_f64): Likewise.
4012 (vminnm_f32): Likewise.
4013 (vminnmq_f32): Likewise.
4014 (vminnmq_f64): Likewise.
4016 2016-07-08 Michael Meissner <meissner@linux.vnet.ibm.com>
4019 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Do not
4020 enable -mfloat128-hardware by default.
4021 (ISA_3_0_MASKS_IEEE): New macro to give all of the VSX options
4022 that IEEE 128-bit hardware support needs.
4023 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
4024 -mcpu=power9 -mfloat128, enable -mfloat128-hardware by default.
4025 Use ISA_3_0_MASKS_IEEE as the set of options that IEEE 128-bit
4026 floating point requires.
4027 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
4028 -mfloat128 and -mfloat128-hardware changes.
4030 2016-07-08 Alan Hayward <alan.hayward@arm.com>
4032 PR tree-optimization/71667
4033 * tree-vect-loop.c (vectorizable_live_operation): ignore DEBUG stmts
4035 2016-07-08 Martin Liska <mliska@suse.cz>
4038 * fold-const.c (fold_convertible_p): As COMPLEX_TYPE
4039 folding produces SAVE_EXPRs, thus return false for the type.
4041 2016-07-07 Martin Liska <mliska@suse.cz>
4043 * file-find.c (remove_prefix): New function.
4044 * file-find.h (remove_prefix): Declare the function.
4045 * gcc-ar.c (main): Skip a folder of the wrapper if
4046 a wrapped binary would point to the same file.
4048 2016-07-07 Jan Hubicka <jh@suse.cz>
4050 * tree-scalar-evolution.c (iv_can_overflow_p): export.
4051 * tree-scalar-evolution.h (iv_can_overflow_p): Declare.
4052 * tree-ssa-loop-ivopts.c (alloc_iv): Use it.
4054 2016-07-07 Ilya Enkovich <ilya.enkovich@intel.com>
4057 * ipa-inline-analysis.c (compute_inline_parameters): Set
4058 local.can_change_signature to false for intrumentation
4061 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
4063 * config/arm/arm.h (TARGET_USE_MOVT): Check MOVT/MOVW availability
4064 with TARGET_HAVE_MOVT.
4065 (TARGET_HAVE_MOVT): Define.
4066 * config/arm/arm.c (const_ok_for_op): Check MOVT/MOVW
4067 availability with TARGET_HAVE_MOVT.
4068 * config/arm/arm.md (arm_movt): Use TARGET_HAVE_MOVT to check MOVT
4070 (addsi splitter): Use TARGET_THUMB && TARGET_HAVE_MOVT rather than
4072 (symbol_refs movsi splitter): Remove TARGET_32BIT check.
4073 (arm_movtas_ze): Use TARGET_HAVE_MOVT to check MOVT availability.
4074 * config/arm/constraints.md (define_constraint "j"): Use
4075 TARGET_HAVE_MOVT to check MOVT availability.
4077 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
4079 * config/arm/arm-protos.h: Reindent FL_FOR_* macro definitions.
4081 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
4083 * config/arm/arm-arches.def (armv8-m.base): Define new architecture.
4084 (armv8-m.main): Likewise.
4085 (armv8-m.main+dsp): Likewise.
4086 * config/arm/arm-protos.h (FL_FOR_ARCH8M_BASE): Define.
4087 (FL_FOR_ARCH8M_MAIN): Likewise.
4088 * config/arm/arm-tables.opt: Regenerate.
4089 * config/arm/bpabi.h: Add armv8-m.base, armv8-m.main and
4090 armv8-m.main+dsp to BE8_LINK_SPEC.
4091 * config/arm/arm.h (TARGET_HAVE_LDACQ): Exclude ARMv8-M.
4092 (enum base_architecture): Add BASE_ARCH_8M_BASE and BASE_ARCH_8M_MAIN.
4093 * config/arm/arm.c (arm_arch_name): Increase size to work with ARMv8-M
4094 Baseline and Mainline.
4095 (arm_option_override_internal): Also disable arm_restrict_it when
4096 !arm_arch_notm. Update comment for -munaligned-access to also cover
4098 (arm_file_start): Increase buffer size for printing architecture name.
4099 * doc/invoke.texi: Document architectures armv8-m.base, armv8-m.main
4100 and armv8-m.main+dsp.
4101 (mno-unaligned-access): Clarify that this is disabled by default for
4102 ARMv8-M Baseline architectures as well.
4104 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
4106 * config/arm/elf.h: Use __ARM_ARCH_ISA_THUMB and __ARM_ARCH_ISA_ARM to
4107 decide whether to prevent some libgcc routines being included for some
4108 multilibs rather than __ARM_ARCH_6M__ and add comment to indicate the
4109 link between this condition and the one in
4110 libgcc/config/arm/lib1func.S.
4112 2016-07-07 Richard Biener <rguenther@suse.de>
4114 * tree-ssa-pre.c: Include alias.h.
4115 (compute_avail): If we have multiple VN_REFERENCEs with the
4116 same hashtable entry adjust that to make it a valid replacement
4117 for all of them with respect to alignment and aliasing
4118 when doing insertion.
4119 * tree-ssa-sccvn.h (vn_reference_operands_for_lookup): Declare.
4120 * tree-ssa-sccvn.c (vn_reference_operands_for_lookup): New function.
4122 2016-07-06 Segher Boessenkool <segher@kernel.crashing.org>
4126 * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
4127 *ctr<mode>_internal5, *ctr<mode>_internal6): Add *wi to the output
4130 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4132 * var-tracking.c (struct adjust_mem_data): Make side_effects a vector.
4133 (adjust_mems): Adjust.
4134 (adjust_insn): Likewise.
4135 (prepare_call_arguments): Likewise.
4137 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4139 * gcse.c (struct ls_expr): Make stores field a vector.
4140 (ldst_entry): Adjust.
4141 (free_ldst_entry): Likewise.
4142 (print_ldst_list): Likewise.
4143 (compute_ld_motion_mems): Likewise.
4144 (update_ld_motion_stores): Likewise.
4146 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4148 * gcse.c (struct ls_expr): Remove loads field.
4149 (ldst_entry): Adjust.
4150 (free_ldst_entry): Likewise.
4151 (print_ldst_list): Likewise.
4152 (compute_ld_motion_mems): Likewise.
4154 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4156 * store-motion.c (struct st_expr): Make antic_stores a vector.
4157 (st_expr_entry): Adjust.
4158 (free_st_expr_entry): Likewise.
4159 (print_store_motion_mems): Likewise.
4160 (find_moveable_store): Likewise.
4161 (compute_store_table): Likewise.
4162 (remove_reachable_equiv_notes): Likewise.
4163 (replace_store_insn): Likewise.
4164 (build_store_vectors): Likewise.
4166 2016-07-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4168 * config/arm/driver-arm.c (arm_cpu_table): Add entries for cortex-a32,
4169 cortex-a35, cortex-a53, cortex-a57, cortex-a72, cortex-a73.
4171 2016-07-06 Yuri Rumyantsev <ysrumyan@gmail.com>
4173 PR tree-optimization/71518
4174 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust
4175 misalign also for outer loops with negative step.
4177 2016-07-06 Wilco Dijkstra <wdijkstr@arm.com>
4179 * config/arm/cortex-a53.md: Use final_presence_set for in-order.
4180 (cortex_a53_shift): Add mov_shift.
4181 (cortex_a53_shift_reg): Add new reservation for register shifts.
4182 (cortex_a53_alu): Remove bfm.
4183 (cortex_a53_alu_shift): Add bfm, remove mov_shift.
4184 (cortex_a53_alu_extr): Add new reservation for EXTR.
4185 (bypasses): Improve bypass modelling.
4187 2016-07-06 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
4190 * config/avr/avr.c (avr_asm_select_section): Strip off
4191 SECTION_DECLARED from flags when calling get_section.
4193 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
4195 * tree-vectorizer.h (vect_memory_access_type): Add
4196 VMAT_INVARIANT, VMAT_CONTIGUOUS_DOWN and VMAT_CONTIGUOUS_REVERSED.
4197 * tree-vect-stmts.c (compare_step_with_zero): New function.
4198 (perm_mask_for_reverse): Move further up file.
4199 (get_group_load_store_type): Stick to VMAT_ELEMENTWISE if the
4201 (get_negative_load_store_type): New function.
4202 (get_load_store_type): Call it. Add an ncopies argument.
4203 (vectorizable_mask_load_store): Update call accordingly and
4204 remove tests for negative steps.
4205 (vectorizable_store, vectorizable_load): Likewise. Handle new
4206 memory_access_types.
4208 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
4210 * tree-vectorizer.h (vect_memory_access_type): New enum.
4211 (_stmt_vec_info): Add a memory_access_type field.
4212 (STMT_VINFO_MEMORY_ACCESS_TYPE): New macro.
4213 (vect_model_store_cost): Take an access type instead of a boolean.
4214 (vect_model_load_cost): Likewise.
4215 * tree-vect-slp.c (vect_analyze_slp_cost_1): Update calls to
4216 vect_model_store_cost and vect_model_load_cost.
4217 * tree-vect-stmts.c (vec_load_store_type): New enum.
4218 (vect_model_store_cost): Take an access type instead of a
4219 store_lanes_p boolean. Simplify tests.
4220 (vect_model_load_cost): Likewise, but for load_lanes_p.
4221 (get_group_load_store_type, get_load_store_type): New functions.
4222 (vectorizable_store): Use get_load_store_type. Record the access
4223 type in STMT_VINFO_MEMORY_ACCESS_TYPE.
4224 (vectorizable_load): Likewise.
4225 (vectorizable_mask_load_store): Likewise. Replace is_store
4226 variable with vls_type.
4228 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
4230 * tree-vectorizer.h (vect_grouped_load_supported): Add a
4231 single_element_p parameter.
4232 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
4233 Check the PR65518 case here rather than in vectorizable_load.
4234 * tree-vect-loop.c (vect_analyze_loop_2): Update call accordignly.
4235 * tree-vect-stmts.c (vectorizable_load): Likewise.
4237 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
4239 * tree-vectorizer.h (gather_scatter_info): New structure.
4240 (vect_check_gather_scatter): Return a bool rather than a decl.
4241 Replace return-by-pointer arguments with a single
4242 gather_scatter_info *.
4243 * tree-vect-data-refs.c (vect_check_gather_scatter): Likewise.
4244 (vect_analyze_data_refs): Update call accordingly.
4245 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
4246 (vectorizable_mask_load_store): Likewise. Also record the
4247 offset dt and vectype in the gather_scatter_info.
4248 (vectorizable_store): Likewise.
4249 (vectorizable_load): Likewise.
4251 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
4253 * tree-vect-stmts.c (vect_model_store_cost): For non-SLP
4254 strided groups, use the cost of N scalar accesses instead
4255 of ncopies vector accesses.
4256 (vect_model_load_cost): Likewise.
4258 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
4260 * tree-vect-stmts.c (vect_cost_group_size): Delete.
4261 (vect_model_store_cost): Avoid calling it. Use first_stmt_p
4262 variable to indicate when once-per-group costs are being used.
4263 (vect_model_load_cost): Likewise. Fix comment and misindented code.
4265 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
4267 * tree-vect-stmts.c (vectorizable_load): Remove unnecessary
4268 peeling-for-gaps condition.
4270 2016-07-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4272 * config/s390/s390.c (s390_expand_vec_init): Force initializer
4273 element to register if it doesn't match general_operand.
4275 2016-07-05 Michael Meissner <meissner@linux.vnet.ibm.com>
4276 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4278 * config/rs6000/rs6000-protos.h (rs6000_split_signbit): New
4280 * config/rs6000/rs6000.c (rs6000_split_signbit): New function.
4281 * config/rs6000/rs6000.md (UNSPEC_SIGNBIT): New constant.
4282 (SIGNBIT): New mode iterator.
4283 (Fsignbit): New mode attribute.
4284 (signbit<mode>2): Change operand1 to match FLOAT128 instead of
4285 IBM128; dispatch to gen_signbit{kf,tf}2_dm for __float128
4286 when direct moves are available.
4287 (signbit<mode>2_dm): New define_insn_and_split).
4288 (signbit<mode>2_dm2): New define_insn.
4290 2016-07-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4292 PR rtl-optimization/71594
4293 * ifcvt.c (noce_convert_multiple_sets): Wrap new_val or old_val
4294 into subregs of appropriate mode before trying to emit a conditional
4297 2016-07-05 Jan Hubicka <jh@suse.cz>
4299 * tree-scalar-evolution.c (iv_can_overflow_p): New function.
4300 (simple_iv): Use it.
4302 2016-07-05 Jan Hubicka <jh@suse.cz>
4304 * tree-ssa-loop-niter.c (nowrap_type_p): Use ANY_INTEGRAL_TYPE_P.
4306 2016-07-05 Jiong Wang <jiong.wang@arm.com>
4308 * lra-constraints.c (process_alt_operands): Don't add spilling cost for
4311 2016-07-05 Jan Hubicka <jh@suse.cz>
4313 * tree-scalar-evoluiton.c (simple_iv): Use nowrap_type to check if
4316 2016-07-05 Richard Biener <rguenther@suse.de>
4318 * gimple-ssa-split-paths.c (find_block_to_duplicate_for_splitting_pa):
4319 Handle empty else block.
4320 (is_feasible_trace): Likewise.
4321 (split_paths): Likewise.
4323 2016-07-05 Richard Biener <rguenther@suse.de>
4325 * tree-loop-distribution.c (distribute_loop): Fix issue with
4326 the cost model loop.
4328 2016-07-05 Christophe Lyon <christophe.lyon@linaro.org>
4330 * config/arm/neon-testgen.ml: Delete.
4331 * config/arm/neon.ml: Delete.
4333 2016-07-04 Jakub Jelinek <jakub@redhat.com>
4336 * tree.c (attribute_value_equal): Use get_attribute_name instead of
4337 directly using TREE_PURPOSE.
4339 2016-07-04 Jiong Wang <jiong.wang@arm.com>
4341 * config/aarch64/aarch64.h: Rename "ARMv8.1" to "ARMv8.1-A".
4342 * config/aarch64/aarch64_neon.h: Likewise.
4343 * config/aarch64/arm_neon.h: Likewise.
4344 * config/aarch64/atomics.md: Likewise.
4345 * config/aarch64/aarch64-simd-builtins.def: Likewise.
4346 * doc/invoke.texi: Likewise.
4348 2016-07-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
4350 * config/s390/s390.md: Add "z13" cpu_facility.
4351 ("*mov<mode>cc"): Add support for z13 instructions lochi and locghi.
4352 * config/s390/predicates.md ("loc_operand"): New predicate for "load on
4353 condition" type instructions.
4355 2016-07-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
4356 Jeff Law <law@redhat.com>
4358 * explow.c (allocate_dynamic_stack_space): Simplify knowing that
4359 MUST_ALIGN was always true and extra_align ist always BITS_PER_UNIT.
4361 2016-07-04 Yuri Rumyantsev <ysrumyan@gmail.com>
4363 * config/i386/i386.c (ix86_expand_vec_perm): Add handle one-operand
4364 permutation for TARGET_AVX512F.
4365 (ix86_expand_vec_one_operand_perm_avx512): New function.
4366 (expand_vec_perm_1): Invoke introduced function.
4367 * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
4368 it may be not valid after vectorization.
4370 2016-07-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4373 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix
4374 typo in comment. Only force to memory if it is a weak
4377 2016-07-04 Matthew Wahab <matthew.wahab@arm.com>
4378 Jiong Wang <jiong.wang@arm.com>
4380 * config/aarch64/aarch64-arches.def: Add "armv8.2-a".
4381 * config/aarch64/aarch64.h (AARCH64_FL_V8_2): New.
4382 (AARCH64_FL_F16): New.
4383 (AARCH64_FL_FOR_ARCH8_2): New.
4384 (AARCH64_ISA_8_2): New.
4385 (AARCH64_ISA_F16): New.
4386 (TARGET_FP_F16INST): New.
4387 (TARGET_SIMD_F16INST): New.
4388 * config/aarch64/aarch64-option-extensions.def ("fp16"): New entry.
4389 ("fp"): Disabling "fp" also disables "fp16".
4390 * config/aarch64/aarch64-c.c (arch64_update_cpp_builtins):
4391 Conditionally define __ARM_FEATURE_FP16_SCALAR_ARITHMETIC
4392 and __ARM_FEATURE_FP16_VECTOR_ARITHMETIC.
4393 * doc/invoke.texi (AArch64 Options): Document "armv8.2-a" and "fp16".
4395 2016-07-04 Jan Beulich <jbeulich@suse.com>
4397 * gcc.c (default_compilers["@c-header"]): Conditionalize "-o".
4399 2016-07-01 Michael Meissner <meissner@linux.vnet.ibm.com>
4402 * config/rs6000/vsx.md (vsx_splat_v4sf_internal): When splitting
4403 the insns, use an insn form that does not adjust the offset on
4404 little endian systems.
4406 2016-07-01 Jan Beulich <jbeulich@suse.com>
4408 * varasm.c (get_variable_section): Validate initializer in
4409 named .bss-like sections.
4411 2016-07-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
4413 * config/rs6000/altivec.md (*altivec_vpermr_<mode>_internal):
4414 Exchange the order of the second and third operands in the vpermr
4415 instruction tmeplate.
4417 2016-07-01 Peter Bergner <bergner@vnet.ibm.com>
4420 * config/rs6000/rs6000.c (rs6000_secondary_reload_simple_move):
4421 Disallow TDmode values.
4423 2016-07-01 Alan Modra <amodra@gmail.com>
4425 PR rtl-optimization/71709
4426 * ira-lives.c (find_call_crossed_cheap_reg): Exit loop on arg reg
4427 being set, not referenced.
4429 2016-07-01 Yuri Rumyantsev <ysrumyan@gmail.com>
4431 PR tree-optimization/70729
4432 * tree-vectorizer.c (adjust_simduid_builtins): Nullify safelen field
4433 of loop since it can be not valid after transformation.
4435 2016-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4437 * config/arm/arm.c (thumb_reload_in_hi): Delete.
4438 * config/arm/arm-protos.h (thumb_reload_in_hi): Delete prototype.
4440 2016-07-01 Eric Botcazou <ebotcazou@adacore.com>
4442 * config/arm/arm.c (arm_function_ok_for_sibcall): Add another check
4445 2016-06-30 Michael Meissner <meissner@linux.vnet.ibm.com>
4448 * config/rs6000/constraints.md (wY constraint): New constraint to
4449 match the requirements for the LXSD and STXSD instructions.
4450 * config/rs6000/predicates.md (offsettable_mem_14bit_operand): New
4451 predicate to match the requirements for the LXSD and STXSD
4453 * config/rs6000/rs6000.md (mov<mode>_hardfloat32, FMOVE64 case):
4454 Use constaint wY for LXSD/STXSD instructions instead of 'o' or 'Y'
4455 to make sure that the bottom 2 bits of offset are 0, the address
4456 form is offsettable, and no updating is done in the address mode.
4457 (mov<mode>_hardfloat64, FMOVE64 case): Likewise.
4458 (movdi_internal32): Likewise
4459 (movdi_internal64): Likewise.
4461 2016-06-30 Jakub Jelinek <jakub@redhat.com>
4463 PR tree-optimization/71707
4464 * tree-ssa-strlen.c (get_stridx_plus_constant): Handle already present
4465 strinfo even for ADDR_EXPR ptr.
4467 2016-06-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
4469 * config/rs6000/altivec.md (darn_32): Change the condition to
4470 TARGET_P9_MISC instead of TARGET_MODULO.
4471 (darn_raw): Replace TARGET_MODULO with TARGET_P9_MISC in the
4472 condition expression.
4473 (darn): Replace TARGET_MODULO with TARGET_P9_MISC in the
4474 condition expression.
4475 * config/rs6000/dfp.md (UNSPEC_DTSTSFI): New unspec constant.
4476 (DFP_TEST): New code iterator.
4477 (dfptstsfi_<code>_mode>): New define_expand.
4478 (*dfp_sgnfcnc_<mode>): New define_insn.
4479 * config/rs6000/rs6000-builtin.def (BU_P9_MISC_0): Move this macro
4480 definition next to BU_P9_MISC_1 definition and change the MASK
4481 value to RS6000_BTM_P9_MISC.
4482 (BU_P9_MISC_1): Change the MASK value to RS6000_BTM_P9_MISC.
4483 (BU_P9_64BIT_MISC_0): Likewise.
4484 (BU_P9_DFP_MISC_0): New macro definition.
4485 (BU_P9_DFP_MISC_1): New macro definition.
4486 (BU_P9_DFP_MISC_2): New macro definition.
4487 (BU_P9_DFP_OVERLOAD_1): New macro definition.
4488 (BU_P9_DFP_OVERLOAD_2): New macro definition.
4489 (BU_P9_DFP_OVERLOAD_3): New macro definition.
4490 (TSTSFI_LT_DD): New BU_P9_DFP_MISC_2.
4491 (TSTSFI_LT_TD): Likewise.
4492 (TSTSFI_EQ_DD): Likewise.
4493 (TSTSFI_EQ_TD): Likewise.
4494 (TSTSFI_GT_DD): Likewise.
4495 (TSTSFI_GT_TD): Likewise.
4496 (TSTSFI_OV_DD): Likewise.
4497 (TSTSFI_OV_TD): Likewise.
4498 (TSTSFI_LT): New BU_P9_DFP_OVERLOAD_2.
4499 (TSTSFI_LT_DD): Likewise.
4500 (TSTSFI_LT_TD): Likewise.
4501 (TSTSFI_EQ): Likewise.
4502 (TSTSFI_EQ_DD): Likewise.
4503 (TSTSFI_EQ_TD): Likewise.
4504 (TSTSFI_GT): Likewise.
4505 (TSTSFI_GT_DD): Likewise.
4506 (TSTSFI_GT_TD): Likewise.
4507 (TSTSFI_OV): Likewise.
4508 (TSTSFI_OV_DD): Likewise.
4509 (TSTSFI_OV_TD): Likewise.
4510 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
4511 overloaded test significance functions.
4512 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
4513 OPTION_MASK_P9_MISC into the representation of this mask.
4514 (POWERPC_MASKS): Add OPTION_MASK_P9_MISC into the representation
4516 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Set the
4517 RS6000_BTM_P9_MISC flag in the return value if TARGET_P9_MISC is
4519 (rs6000_expand_binop_builtin): Enforce that argument 0 of the exp
4520 argument is a 6-bit unsigned literal value if the icode argument
4521 represents a DFP test significance built-in call.
4522 (rs6000_invalid_builtin): Add support for the RS6000_BTM_P9_MISC
4523 flag used independently and in combination with the
4524 RS6000_BTM_64BIT flag.
4525 (rs6000_opt_masks): Add entry for power9-misc command-line option.
4526 (rs6000_builtin_mask_names): Add entry for power9-misc
4527 command-line option.
4528 * config/rs6000/rs6000.h: Redefine TARGET_P9_MISC as 0 if
4529 HAVE_AS_POWER9 is not a defined macro. Define MASK_P9_MISC and
4530 RS6000_BTM_P9_MISC macros.
4531 * config/rs6000/rs6000.opt: Add support for the -mpower9-misc
4532 option and change the description of the -mpower9-vector option to
4533 enable only vector instructions, removing its erroneously claimed
4534 support for scalar instructions.
4535 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
4536 the ISA 3.0 digital floating point test significance built-in
4539 2016-06-30 Wilco Dijkstra <wdijkstr@arm.com>
4541 * config/aarch64/aarch64.c (cortexa35_tunings):
4542 Enable AES fusion. Use cortexa57_branch_cost.
4543 (cortexa53_tunings): Use cortexa57_branch_cost.
4544 (cortexa72_tunings): Use cortexa57_branch_cost.
4545 Use AUTOPREFETCHER_WEAK.
4546 (cortexa73_tunings): Use cortexa57_branch_cost.
4548 2016-06-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4549 James Greenhalgh <james.greenhalgh@arm.com>
4551 * config/aarch64/arm_neon.h (vcopyq_lane_f32, vcopyq_lane_f64,
4552 vcopyq_lane_p8, vcopyq_lane_p16, vcopyq_lane_s8, vcopyq_lane_s16,
4553 vcopyq_lane_s32, vcopyq_lane_s64, vcopyq_lane_u8, vcopyq_lane_u16,
4554 vcopyq_lane_u32, vcopyq_lane_u64): Reimplement in C.
4555 (vcopy_lane_f32, vcopy_lane_f64, vcopy_lane_p8, vcopy_lane_p16,
4556 vcopy_lane_s8, vcopy_lane_s16, vcopy_lane_s32, vcopy_lane_s64,
4557 vcopy_lane_u8, vcopy_lane_u16, vcopy_lane_u32, vcopy_lane_u64,
4558 vcopy_laneq_f32, vcopy_laneq_f64, vcopy_laneq_p8, vcopy_laneq_p16,
4559 vcopy_laneq_s8, vcopy_laneq_s16, vcopy_laneq_s32, vcopy_laneq_s64,
4560 vcopy_laneq_u8, vcopy_laneq_u16, vcopy_laneq_u32, vcopy_laneq_u64,
4561 vcopyq_laneq_f32, vcopyq_laneq_f64, vcopyq_laneq_p8, vcopyq_laneq_p16,
4562 vcopyq_laneq_s8, vcopyq_laneq_s16, vcopyq_laneq_s32, vcopyq_laneq_s64,
4563 vcopyq_laneq_u8, vcopyq_laneq_u16, vcopyq_laneq_u32, vcopyq_laneq_u64):
4566 2016-06-30 James Greenhalgh <james.greenhalgh@arm.com>
4567 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4569 * config/aarch64/aarch64-simd.md (*aarch64_simd_vec_copy_lane<mode>):
4571 (*aarch64_simd_vec_copy_lane_<vswap_width_name><mode>): Likewise.
4573 2016-06-30 David Malcolm <dmalcolm@redhat.com>
4576 * gcc.c (driver::build_option_suggestions): Pass "option" to
4577 add_misspelling_candidates.
4578 * opts-common.c (add_misspelling_candidates): Add "option" param;
4579 use it to avoid adding negated forms for options marked with
4581 * opts.h (add_misspelling_candidates): Add "option" param.
4583 2016-06-30 Jakub Jelinek <jakub@redhat.com>
4586 * fold-const.c (fold_binary_loc) <case RROTATE_EXPR>: Cast
4587 TREE_OPERAND (arg0, 0) and TREE_OPERAND (arg0, 1) to type
4588 first when permuting bitwise operation with rotate. Cast
4589 TREE_OPERAND (arg0, 0) to type when cancelling two rotations.
4591 2016-06-29 David Malcolm <dmalcolm@redhat.com>
4593 * opts.c (handle_param): Use find_param_fuzzy to offer suggestions
4594 for misspelled param names.
4595 * params.c: Include spellcheck.h.
4596 (find_param_fuzzy): New function.
4597 * params.h (find_param_fuzzy): New prototype.
4598 * spellcheck.c (struct edit_distance_traits<const char *>): Move to...
4599 * spellcheck.h (struct edit_distance_traits<const char *>):
4602 2016-06-29 Michael Meissner <meissner@linux.vnet.ibm.com>
4604 * config/rs6000/predicates.md (const_0_to_7_operand): New
4605 predicate, recognize 0..7.
4606 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
4607 support for doing extracts from V16QImode, V8HImode, V4SImode
4609 * config/rs6000/vsx.md (VSX_EXTRACT_I): Mode iterator for ISA 3.0
4610 vector extract support.
4611 (VSX_EXTRACT_PREDICATE): Mode attribute to validate element number
4612 for ISA 3.0 vector extract.
4613 (VSX_EX): Constraints to use for ISA 3.0 vector extract.
4614 (vsx_extract_<mode>, VSX_EXTRACT_I): Add support for doing
4615 extracts of a constant element number from small integer vectors
4616 on 64-bit ISA 3.0 systems.
4617 (vsx_extract_<mode>_di): Likewise.
4618 * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): New target macro to
4619 say when we can do ISA 3.0 vector extracts.
4620 * config/rs6000/rs6000.md (stfiwx): Allow DImode in Altivec
4621 registers, using the stxsiwx instruction.
4623 2016-06-29 Jim Wilson <jim.wilson@linaro.org>
4625 * config/aarch64/aarch64-cores.def (qdf24xx): Use qdf24xx tuning.
4626 * config/aarch64/aarch64.c (qdf24xx_addrcost_table,
4627 qdf24xx_regmove_cost, qdf24xx_tunings): New.
4628 * config/arm/aarch64-cost-tables.h (qdf24xx_extra_costs): New.
4629 * config/arm/arm-cores.def (qdf24xx): Use qdf24xx tuning.
4630 * config/arm/arm.c (arm_qdf24xx_tune): New.
4632 2016-06-29 Wilco Dijkstra <wdijkstr@arm.com>
4634 * config/aarch64/aarch64.c (cortexa53_tunings):
4635 Increase loop alignment to 8. Set function alignment to 16.
4636 (cortexa35_tunings): Likewise.
4637 (cortexa57_tunings): Increase loop alignment to 8.
4638 (cortexa72_tunings): Likewise.
4639 (cortexa73_tunings): Likewise.
4641 2016-06-29 Matthew Wahab <matthew.wahab@arm.com>
4643 * doc/sourcebuild.texi (Effective-Target keywords): Add entries
4644 for arm_fp16_ok and arm_fp16_hw.
4645 (Add Options): Add entries for arm_fp16, arm_fp16_ieee and
4646 arm_fp16_alternative.
4648 2016-06-29 Ilya Enkovich <ilya.enkovich@intel.com>
4650 PR tree-optimization/71655
4651 * tree-vect-stmts.c (vectorizable_comparison): Swap definition
4652 types when swapping operands.
4654 2016-06-29 Martin Liska <mliska@suse.cz>
4657 * common.opt (flag_stack_protect): Mark the flag as optimization flag.
4658 * ipa-inline-transform.c (inline_call): Remove unnecessary call
4659 of build_optimization_node.
4661 2016-06-29 Yuri Rumyantsev <ysrumyan@gmail.com>
4663 PR tree-optimization/70729
4664 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Consider memory reference as
4665 independent in loops having positive safelen value.
4666 * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
4667 it may be not valid after vectorization.
4669 2016-06-29 Jakub Jelinek <jakub@redhat.com>
4671 PR tree-optimization/71625
4672 * tree-ssa-strlen.c (get_addr_stridx): Add PTR argument. Assume list
4673 is sorted by ascending list->offset. If PTR is non-NULL and there is
4674 previous strinfo, call get_stridx_plus_constant.
4675 (get_stridx): Pass exp as second argument to get_addr_stridx.
4676 (addr_stridxptr): Add missing list = list->next, so that there can be
4677 more than one entries in the list. Bump limit from 16 to 32. Ensure
4678 the list is sorted by ascending list->offset.
4679 (get_stridx_plus_constant): Adjust so that it can be also called with
4680 ADDR_EXPR instead of SSA_NAME as PTR.
4681 (handle_char_store): Pass NULL_TREE as second argument to
4684 2016-06-29 Richard Biener <rguenther@suse.de>
4686 PR rtl-optimization/68961
4687 * simplify-rtx.c (simplify_subreg): Handle VEC_CONCAT like CONCAT.
4689 2016-06-29 Richard Biener <rguenther@suse.de>
4692 * alias.c (component_uses_parent_alias_set_from): Handle
4693 type punning through union accesses by using the union alias set.
4694 * gimple.c (gimple_get_alias_set): Remove union type punning case.
4696 2016-07-29 Richard Biener <rguenther@suse.de>
4698 * match.pd ((T)(T2)x -> (T)x): Remove restriction on final
4699 precision not matching mode precision.
4701 2016-06-28 John David Anglin <danglin@gcc.gnu.org>
4703 * config/pa/pa.md (call_symref_64bit_post_reload): Don't call
4704 pa_output_arg_descriptor.
4705 (call_val_symref_64bit_post_reload): Likewise.
4706 (call_val_powf_64bit_post_reload): Likewise.
4707 (sibcall_internal_symref_64bit): Likewise.
4708 (sibcall_value_internal_symref_64bit): Likewise.
4710 2016-06-28 Jakub Jelinek <jakub@redhat.com>
4713 * config/i386/i386.c (ix86_expand_vector_move): For SUBREG of
4714 a constant, force its SUBREG_REG into memory or register instead
4717 2016-06-28 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
4720 * config/avr/avr.opt (-mfract-convert-truncate): Update description.
4721 * doc/invoke.texi (AVR Options): Document it.
4723 2016-06-28 Walter Lee <walt@tilera.com>
4725 * config/tilegx/linux.h: Do not include arch/icache.h
4726 (CLEAR_INSN_CACHE): Provide inlined definition directly.
4727 * config/tilepro/linux.h: Do not include arch/icache.h
4728 (CLEAR_INSN_CACHE): Provide inlined definition directly.
4730 2016-06-28 Wilco Dijkstra <wdijkstr@arm.com>
4732 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adjust bitnumbering
4733 for big-endian BIT_FIELD_REF.
4735 2016-06-28 Pat Haugen <pthaugen@us.ibm.com>
4737 * config/rs6000/rs6000.md ('type' attribute): Add htmsimple/dfp types.
4738 ('size' attribute): Add '128'.
4740 (*mov<mode>_hardfloat32, *mov<mode>_hardfloat64, *movdi_internal32,
4741 *movdi_internal64, *movdf_update1): Set size attribute to '64'.
4742 (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3, sqrt<mode>2,
4743 copysign<mode>3, neg<mode>2_hw, abs<mode>2_hw, *nabs<mode>2_hw,
4744 *fma<mode>4_hw, *fms<mode>4_hw, *nfma<mode>4_hw, *nfms<mode>4_hw,
4745 extend<SFDF:mode><IEEE128:mode>2_hw, trunc<mode>df2_hw,
4746 *xscvqp<su>wz_<mode>, *xscvqp<su>dz_<mode>, *xscv<su>dqp_<mode>,
4747 *trunc<mode>df2_odd): Set size attribute to '128'.
4748 (*cmp<mode>_hw): Change type to veccmp and set size attribute to '128'.
4749 * config/rs6000/power6.md (power6-fp): Include dfp type.
4750 * config/rs6000/power7.md (power7-fp): Likewise.
4751 * config/rs6000/power8.md (power8-fp): Likewise.
4752 * config/rs6000/power9.md: New file.
4753 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power9.md.
4754 * config/rs6000/htm.md (*tabort, *tabort<wd>c, *tabort<wd>ci,
4755 *trechkpt, *treclaim, *tsr, *ttest): Change type attribute to
4757 * config/rs6000/dfp.md (extendsddd2, truncddsd2, extendddtd2,
4758 trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
4759 divtd3, *cmpdd_internal1, *cmptd_internal1, floatdidd2, floatditd2,
4760 ftruncdd2, fixdddi2, ftrunctd2, fixtddi2, dfp_ddedpd_<mode>,
4761 dfp_denbcd_<mode>, dfp_dxex_<mode>, dfp_diex_<mode>, dfp_dscli_<mode>,
4762 dfp_dscri_<mode>): Change type attribute to dfp.
4763 * config/rs6000/crypto.md (crypto_vshasigma<CR_char>): Change type
4764 attribute to vecsimple.
4765 * config/rs6000/rs6000.c (power9_cost): Update costs, cache size
4766 and prefetch streams.
4767 (rs6000_option_override_internal): Remove temporary code setting
4768 tuning to power8. Don't set rs6000_sched_groups for power9.
4769 (last_scheduled_insn): Change to rtx_insn *.
4770 (divide_cnt, vec_load_pendulum): New variables.
4771 (rs6000_adjust_cost): Add Power9 to test for store->load separation.
4772 (rs6000_issue_rate): Set issue rate for Power9.
4773 (is_power9_pairable_vec_type): New.
4774 (power9_sched_reorder2): New.
4775 (rs6000_sched_reorder2): Call new function for Power9 specific
4777 (insn_must_be_first_in_group): Remove Power9.
4778 (insn_must_be_last_in_group): Likewise.
4779 (force_new_group): Likewise.
4780 (rs6000_sched_init): Fix initialization of last_scheduled_insn.
4781 Initialize divide_cnt/vec_load_pendulum.
4782 (_rs6000_sched_context, rs6000_init_sched_context,
4783 rs6000_set_sched_context): Handle context save/restore of new
4786 2016-06-28 Richard Biener <rguenther@suse.de>
4788 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
4789 Properly handle DECL_BIT_FIELD_REPRESENTATIVE occuring as
4790 COMPONENT_REF operand.
4791 (nonoverlapping_component_refs_p): Likewise.
4792 * stor-layout.c (start_bitfield_representative): Mark
4793 DECL_BIT_FIELD_REPRESENTATIVE as DECL_NONADDRESSABLE_P.
4795 2016-06-28 Jakub Jelinek <jakub@redhat.com>
4797 * Makefile.in: Don't cat ../stage_current if it does not exist.
4799 * doc/extend.texi (__builtin_add_overflow_p): Clarify behavior when
4800 last argument is a bit-field.
4802 PR rtl-optimization/71673
4803 * internal-fn.c (expand_arith_overflow_result_store): Use
4804 OPTAB_LIB_WIDEN instead of OPTAB_DIRECT as last argument to
4805 expand_simple_binop.
4808 * builtins.c (expand_ifn_atomic_compare_exchange_into_call,
4809 expand_ifn_atomic_compare_exchange): New functions.
4810 * internal-fn.c (expand_ATOMIC_COMPARE_EXCHANGE): New function.
4811 * tree.h (build_call_expr_internal_loc): Rename to ...
4812 (build_call_expr_internal_loc_array): ... this. Fix up type of
4814 * internal-fn.def (ATOMIC_COMPARE_EXCHANGE): New internal fn.
4815 * predict.c (expr_expected_value_1): Handle IMAGPART_EXPR of
4816 ATOMIC_COMPARE_EXCHANGE result.
4817 * builtins.h (expand_ifn_atomic_compare_exchange): New prototype.
4818 * gimple-fold.h (optimize_atomic_compare_exchange_p,
4819 fold_builtin_atomic_compare_exchange): New prototypes.
4820 * gimple-fold.c (optimize_atomic_compare_exchange_p,
4821 fold_builtin_atomic_compare_exchange): New functions..
4822 * tree-ssa.c (execute_update_addresses_taken): If
4823 optimize_atomic_compare_exchange_p, ignore &var in 2nd argument
4824 of call when finding addressable vars, and if such var becomes
4825 non-addressable, call fold_builtin_atomic_compare_exchange.
4827 2016-06-27 Segher Boessenkool <segher@kernel.crashing.org>
4830 * config/rs6000/rs6000.md (ashdi3_extswsli_dot): Use
4831 gen_ashdi3_extswsli_dot2 instead of gen_ashdi3_extswsli_dot.
4833 2016-06-27 Pat Haugen <pthaugen@us.ibm.com>
4835 * config/rs6000/rs6000.md ('type' attribute): Add
4836 veclogical,veccmpfx,vecexts,vecmove insn types.
4837 (*abs<mode>2_fpr, *nabs<mode>2_fpr, *neg<mode>2_fpr, *extendsfdf2_fpr,
4838 copysign<mode>3_fcpsgn, trunc<mode>df2_internal1, neg<mode>2_internal,
4839 p8_fmrgow_<mode>, pack<mode>): Change type to fpsimple.
4840 (*xxsel<mode>, copysign<mode>3_hard, neg<mode>2_hw, abs<mode>2_hw,
4841 *nabs<mode>2_hw): Change type to vecmove.
4842 (*and<mode>3_internal, *bool<mode>3_internal, *boolc<mode>3_internal,
4843 *boolcc<mode>3_internal, *eqv<mode>3_internal,
4844 *one_cmpl<mode>3_internal, *ieee_128bit_vsx_neg<mode>2_internal,
4845 *ieee_128bit_vsx_abs<mode>2_internal,
4846 *ieee_128bit_vsx_nabs<mode>2_internal, extendkftf2, trunctfkf2,
4847 *ieee128_mfvsrd_64bit, *ieee128_mfvsrd_32bit, *ieee128_mtvsrd_64bit,
4848 *ieee128_mtvsrd_32bit): Change type to veclogical.
4849 (mov<mode>_hardfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
4850 *movdi_internal32, *movdi_internal64): Update insn types.
4851 * config/rs6000/vsx.md (*vsx_le_undo_permute_<mode>,
4852 vsx_extract_<mode>): Change type to veclogical.
4853 (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns): Change type to vecmove.
4854 (vsx_sign_extend_qi_<mode>, *vsx_sign_extend_hi_<mode>,
4855 *vsx_sign_extend_si_v2di): Change type to vecexts.
4856 * config/rs6000/altivec.md (*altivec_mov<mode>, *altivec_movti): Change
4858 (*altivec_eq<mode>, *altivec_gt<mode>, *altivec_gtu<mode>,
4859 *altivec_vcmpequ<VI_char>_p, *altivec_vcmpgts<VI_char>_p,
4860 *altivec_vcmpgtu<VI_char>_p): Change type to veccmpfx.
4861 (*altivec_vsel<mode>, *altivec_vsel<mode>_uns): Change type to vecmove.
4862 * config/rs6000/dfp.md (*negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
4863 negtd2, *abstd2_fpr, *nabstd2_fpr): Change type to fpsimple.
4864 * config/rs6000/40x.md (ppc405-float): Add fpsimple.
4865 * config/rs6000/440.md (ppc440-fp): Add fpsimple.
4866 * config/rs6000/476.md (ppc476-fp): Add fpsimple.
4867 * config/rs6000/601.md (ppc601-fp): Add fpsimple.
4868 * config/rs6000/603.md (ppc603-fp): Add fpsimple.
4869 * config/rs6000/6xx.md (ppc604-fp): Add fpsimple.
4870 * config/rs6000/7xx.md (ppc750-fp): Add fpsimple.
4871 (ppc7400-vecsimple): Add veclogical, vecmove, veccmpfx.
4872 * config/rs6000/7450.md (ppc7450-fp): Add fpsimple.
4873 (ppc7450-vecsimple): Add veclogical, vecmove.
4874 (ppc7450-veccmp): Add veccmpfx.
4875 * config/rs6000/8540.md (ppc8540_simple_vector): Add veclogical,
4877 (ppc8540_vector_compare): Add veccmpfx.
4878 * config/rs6000/a2.md (ppca2-fp): Add fpsimple.
4879 * config/rs6000/cell.md (cell-fp): Add fpsimple.
4880 (cell-vecsimple): Add veclogical, vecmove.
4881 (cell-veccmp): Add veccmpfx.
4882 * config/rs6000/e300c2c3.md (ppce300c3_fp): Add fpsimple.
4883 * config/rs6000/e6500.md (e6500_vecsimple): Add veclogical, vecmove,
4885 * config/rs6000/mpc.md (mpccore-fp): Add fpsimple.
4886 * config/rs6000/power4.md (power4-fp): Add fpsimple.
4887 (power4-vecsimple): Add veclogical, vecmove.
4888 (power4-veccmp): Add veccmpfx.
4889 * config/rs6000/power5.md (power5-fp): Add fpsimple.
4890 * config/rs6000/power6.md (power6-fp): Add fpsimple.
4891 (power6-vecsimple): Add veclogical, vecmove.
4892 (power6-veccmp): Add veccmpfx.
4893 * config/rs6000/power7.md (power7-fp): Add fpsimple.
4894 (power7-vecsimple): Add veclogical, vecmove, veccmpfx.
4895 * config/rs6000/power8.md (power8-fp): Add fpsimple.
4896 (power8-vecsimple): Add veclogical, vecmove, veccmpfx.
4897 * config/rs6000/rs64.md (rs64a-fp): Add fpsimple.
4898 * config/rs6000/titan.md (titan_fp): Add fpsimple.
4899 * config/rs6000/xfpu.md (fp-default, fp-addsub-s, fp-addsub-d): Add
4901 * config/rs6000/rs6000.c (rs6000_adjust_cost): Add TYPE_FPSIMPLE.
4903 2016-06-27 Peter Bergner <bergner@vnet.ibm.com>
4906 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
4907 OPTION_MASK_P9_DFORM_VECTOR.
4908 * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
4909 disable -mpower9-dform-vector when using reload.
4910 (quad_address_p): Remove 'gpr_p' argument and all associated code.
4911 New 'strict' argument. Update all callers. Add strict addressing
4913 (rs6000_legitimate_offset_address_p): Remove call to
4914 virtual_stack_registers_memory_p.
4915 (rs6000_legitimize_reload_address): Add quad address support.
4916 (rs6000_legitimate_address_p): Move call to quad_address_p above
4917 call to virtual_stack_registers_memory_p. Adjust quad_address_p args
4918 to account for new strict usage.
4919 (rs6000_output_move_128bit): Adjust quad_address_p args to account
4920 for new strict usage.
4921 * config/rs6000/predicates.md (quad_memory_operand): Likewise.
4923 2016-06-26 Uros Bizjak <ubizjak@gmail.com>
4930 * config/i386/i386.c (ix86_spill_class): Disable condition to
4931 always return NO_REGS.
4933 2016-06-26 Jan Hubicka <hubicka@ucw.cz>
4935 * predict.c: Include gimple-pretty-print.h
4936 (predicted_by_loop_heuristics_p): Check also
4937 PRED_LOOP_EXIT_WITH_RECURSION
4938 (predict_loops): Find self recursive calls and use special purpose
4939 predictors for them; dump log about decisions.
4940 (pass_profile::execute): Dump info about #of iterations.
4941 * predict.def (PRED_LOOP_EXIT_WITH_RECURSION,
4942 (PRED_LOOP_GUARD_WITH_RECURSION): New predictors.
4944 2016-06-26 John David Anglin <danglin@gcc.gnu.org>
4946 * config/pa/pa.c (pa_output_indirect_call): Rework to combine
4947 output_asm_insn calls and shorten long lines. Output .CALL
4948 argument descriptor using pa_output_arg_descriptor. Add various
4949 inline $$dyncall and other optimizations.
4950 (pa_attr_length_indirect_call): Adjust ordering and lengths.
4952 2016-06-25 Jakub Jelinek <jakub@redhat.com>
4954 PR tree-optimization/71643
4955 * tree-ssa-tail-merge.c (find_clusters_1): Ignore basic blocks with
4958 * tree-ssa-tail-merge.c (deps_ok_for_redirect_from_bb_to_bb): Don't
4959 leak a bitmap if dep_bb is NULL.
4961 PR tree-optimization/71631
4962 * tree-ssa-reassoc.c (reassociate_bb): Pass true as last argument
4963 to rewrite_expr_tree even if negate_result, move new_lhs var
4964 declaration and initialization earlier, for powi_result set afterwards
4965 new_lhs to lhs. For negate_result, use new_lhs instead of tmp
4966 if new_lhs != lhs, and don't shadow gsi var.
4968 2016-06-24 Jan Hubicka <hubicka@ucw.cz>
4970 * predict.c (predict_paths_leading_to, predict_paths_leading_to_edge):
4971 Add in_loop parameter.
4972 (predict_loops): Add loop guard heuristics.
4973 * predict.def (PRED_LOOP_GUARD): New heuristics.
4975 2016-06-24 Jan Hubicka <hubicka@ucw.cz>
4977 * predict.c: Include ipa-utils.h
4978 (tree_bb_level_prediction): Predict recursive calls.
4979 (tree_estimate_probability_bb): Skip inexpensive calls for call
4981 * predict.def (PRED_RECURSIVE_CALL): New.
4983 2016-06-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4985 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): New #define.
4986 (BU_FLOAT128_1): Likewise.
4988 (COPYSIGNQ): Likewise.
4989 (RS6000_BUILTIN_NANQ): Likewise.
4990 (RS6000_BUILTIN_NANSQ): Likewise.
4991 (RS6000_BUILTIN_INFQ): Likewise.
4992 (RS6000_BUILTIN_HUGE_VALQ): Likewise.
4993 * config/rs6000/rs6000.c (rs6000_fold_builtin): New prototype.
4994 (TARGET_FOLD_BUILTIN): New #define.
4995 (rs6000_builtin_mask_calculate): Add TARGET_FLOAT128 entry.
4996 (rs6000_invalid_builtin): Add handling for RS6000_BTM_FLOAT128.
4997 (rs6000_fold_builtin): New target hook implementation, handling
4998 folding of 128-bit NaNs and infinities.
4999 (rs6000_init_builtins): Initialize const_str_type_node; ensure all
5000 entries are filled in to avoid problems during bootstrap
5001 self-test; define builtins for 128-bit NaNs and infinities.
5002 (rs6000_opt_mask): Add entry for float128.
5003 * config/rs6000/rs6000.h (RS6000_BTM_FLOAT128): New #define.
5004 (RS6000_BTM_COMMON): Include RS6000_BTM_FLOAT128.
5005 (rs6000_builtin_type_index): Add RS6000_BTI_const_str.
5006 (const_str_type_node): New #define.
5007 * config/rs6000/rs6000.md (copysign<mode>3 for IEEE128): Convert
5008 to a define_expand that dispatches to either copysign<mode>3_soft
5009 or copysign<mode>3_hard.
5010 (copysign<mode>3_hard): Rename from copysign<mode>3.
5011 (copysign<mode>3_soft): New define_insn.
5012 * doc/extend.texi: Document new builtins.
5014 2016-06-24 Jakub Jelinek <jakub@redhat.com>
5016 * cfgloop.c (flow_loop_dump): Cast nit to uint64_t and print it using
5017 PRIu64 instead of lu.
5019 2016-06-24 Eric Botcazou <ebotcazou@adacore.com>
5022 * tree-inline.c (remap_decl): When fixing up DECL_ORIGINAL_TYPE, just
5025 2016-06-24 Jakub Jelinek <jakub@redhat.com>
5027 PR tree-optimization/71647
5028 * omp-low.c (lower_rec_input_clauses): Convert
5029 omp_clause_aligned_alignment (c) to size_type_node for the
5030 last argument of __builtin_assume_aligned.
5032 2016-06-24 H.J. Lu <hongjiu.lu@intel.com>
5034 * configure.ac (calling ___tls_get_addr via GOT): New
5035 assembler/linker check.
5036 (HAVE_AS_IX86_TLS_GET_ADDR_GOT): New. Defined to 1 if 32-bit
5037 assembler and linker supports calling ___tls_get_addr via GOT.
5038 Otherise, defined to 0.
5039 * config.in: Regenerated.
5040 * configure: Likewise.
5041 * config/i386/constraints.md (Yb): New constraint.
5042 * config/i386/i386.h (reg_class): Add TLS_GOTBASE_REGS.
5043 (REG_CLASS_NAMES): Likewise.
5044 (REG_CLASS_CONTENTS): Likewise.
5045 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Replace
5046 the b constraint with the Yb constraint. Call ___tls_get_addr
5047 via GOT for GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT
5049 (*tls_local_dynamic_base_32_gnu): Likewise.
5050 (*tls_global_dynamic_64_<mode>): Call _tls_get_addr via GOT for
5051 GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT is 1.
5052 (*tls_local_dynamic_base_64_<mode>): Likewise.
5054 2016-06-24 Martin Liska <mliska@suse.cz>
5056 * cfgloop.c (flow_loop_dump): Dump average number of loop iterations.
5057 * cfgloop.h: Change 'struct loop' to 'const struct loop' for a
5059 * cfgloopanal.c (expected_loop_iterations_unbounded): Set a new
5060 argument to true if the expected number of iterations is
5063 2016-06-24 Uros Bizjak <ubizjak@gmail.com>
5065 * configure.ac (HAVE_AS_GOTOF_IN_DATA): Use $as_ix86_gas_32_opt to
5066 assemble for 32bit target.
5067 (HAVE_AS_IX86_TLSGDPLT): Use $as_ix86_gas_32_opt to assemble
5068 and $ld_ix86_gld_32_opt to link for 32bit target.
5069 (HAVE_AS_IX86_TLSLDMPLT): Ditto.
5070 * configure: Regenerate.
5072 2016-06-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5074 * config/arm/arm.c (int_log2): Delete definition and prototype.
5075 (shift_op): Use exact_log2 instead of int_log2.
5076 (vfp3_const_double_for_fract_bits): Likewise.
5078 2016-06-24 Jakub Jelinek <jakub@redhat.com>
5080 * internal-fn.c (expand_arith_set_overflow): New function.
5081 (expand_addsub_overflow, expand_neg_overflow, expand_mul_overflow):
5083 (expand_arith_overflow_result_store): Likewise. Handle precision
5084 smaller than mode precision.
5085 * tree-vrp.c (extract_range_basic): For imag part, handle
5086 properly signed 1-bit precision result.
5087 * doc/extend.texi (__builtin_add_overflow): Document that last
5088 argument can't be pointer to enumerated or boolean type.
5089 (__builtin_add_overflow_p): Document that last argument can't
5090 have enumerated or boolean type.
5092 2016-06-23 Michael Meissner <meissner@linux.vnet.ibm.com>
5093 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5095 * config/rs6000/predicates.md (splat_input_operand): Rework.
5096 Don't allow constants, since the insns that use this predicate
5097 don't support constants. Constants are handled by other insns
5098 that are created via combine. During and after register
5099 allocation, only allow indexed or indirect addresses, and not
5100 general addresses. Only allow modes supported by the hardware.
5101 * config/rs6000/rs6000.c (xxsplitb_constant_p): Update usage
5102 comment. Move check for using VSPLTIS<x> to a common location,
5103 instead of doing it in two different places.
5105 2016-06-23 Jocelyn Mayer <l_indien@magic.fr>
5107 * config/i386/driver-i386.c (host_detect_local_cpu): Set
5108 PROCESSOR_PENTIUMPRO for signature_CENTAUR_ebx family >= 9.
5109 <case PROCESSOR_PENTIMUMPRO>: Pass c7 or nehemiah for
5110 signature_CENTAUR_ebx.
5112 2016-06-23 H.J. Lu <hongjiu.lu@intel.com>
5116 * configure.ac (as_ix86_tls_ldm_opt): Renamed to ...
5117 (as_ix86_gas_32_opt): This.
5118 (ld_ix86_tls_ldm_opt): Renamed to ...
5119 (ld_ix86_gld_32_opt): This.
5120 (R_386_TLS_LDM reloc): Updated.
5121 (R_386_GOT32X reloc): New assembler/linker check.
5122 (HAVE_AS_IX86_GOT32X): New. Defined to 1 if 32-bit assembler and
5123 linker support "jmp *_start@GOT" and "cmpl $0, bar@GOT". Otherise,
5125 * config.in: Regenerated.
5126 * configure: Likewise.
5127 * config/i386/i386.c (ix86_force_load_from_GOT_p): Return
5128 true if HAVE_AS_IX86_GOT32X is 1 in 32-bit mode.
5129 (ix86_legitimate_address_p): Allow UNSPEC_GOT for -fno-plt
5130 if ix86_force_load_from_GOT_p returns true.
5131 (ix86_print_operand_address_as): Also support UNSPEC_GOT if
5132 ix86_force_load_from_GOT_p returns true.
5133 (ix86_expand_move): Generate UNSPEC_GOT in 32-bit mode to load
5134 the external function address via the GOT slot.
5135 (ix86_nopic_noplt_attribute_p): Check both TARGET_64BIT and
5136 HAVE_AS_IX86_GOT32X before returning false.
5137 (ix86_output_call_insn): Generate "%!jmp/call\t*%p0@GOT" in
5138 32-bit mode if ix86_nopic_noplt_attribute_p returns true.
5140 2016-06-23 Eric Botcazou <ebotcazou@adacore.com>
5142 * tree-inline.c (remap_decl): Preserve DECL_ORIGINAL_TYPE invariant.
5144 2016-06-23 Andi Kleen <ak@linux.intel.com>
5146 * Makefile.in: Regenerate.
5147 * doc/install.texi: Document autoprofiledbootstrap.
5149 2016-06-23 Andi Kleen <ak@linux.intel.com>
5151 * config/i386/gcc-auto-profile: New file.
5153 2016-06-23 Martin Liska <mliska@suse.cz>
5156 * predict.c (predict_loops): Revert the hunk that was removed
5159 2016-06-23 Jakub Sejdak <jakub.sejdak@phoesys.com>
5161 * config.gcc: Add support for arm*-*-phoenix* targets.
5162 * config/arm/t-phoenix: New.
5163 * config/phoenix.h: New.
5165 2016-06-23 Uros Bizjak <ubizjak@gmail.com>
5166 H.J. Lu <hongjiu.lu@intel.com>
5169 * config/i386/i386-protos.h (ix86_force_load_from_GOT_p): New.
5170 * config/i386/i386.c (ix86_force_load_from_GOT_p): New function.
5171 (ix86_legitimate_constant_p): Do not allow UNSPEC_GOTPCREL if
5172 ix86_force_load_from_GOT_p returns true.
5173 (ix86_legitimate_address_p): Allow UNSPEC_GOTPCREL if
5174 ix86_force_load_from_GOT_p returns true.
5175 (ix86_print_operand_address_as): Support UNSPEC_GOTPCREL if
5176 ix86_force_load_from_GOT_p returns true.
5177 (ix86_expand_move): Load the external function address via the
5178 GOT slot if ix86_force_load_from_GOT_p returns true.
5179 * config/i386/predicates.md (x86_64_immediate_operand): Return
5180 false for SYMBOL_REFs where ix86_force_load_from_GOT_p returns true.
5181 (x86_64_zext_immediate_operand): Ditto.
5183 2016-06-22 Uros Bizjak <ubizjak@gmail.com>
5185 * config/i386/i386.c (ix86_expand_move): Simplify SYMBOL_REF handling.
5187 2016-06-22 David Malcolm <dmalcolm@redhat.com>
5190 * diagnostic-core.h (pedwarn_at_rich_loc): New prototype.
5191 * diagnostic.c (pedwarn_at_rich_loc): New function.
5192 * spellcheck.h (best_match::best_match): Add a
5193 "best_distance_so_far" optional parameter.
5194 (best_match::set_best_so_far): New method.
5195 (best_match::get_best_distance): New accessor.
5196 (best_match::get_best_candidate_length): New accessor.
5198 2016-06-22 Nick Clifton <nickc@redhat.com>
5200 * dwarf2out.c (scompare_loc_descriptor): Use SCALAR_INT_MODE_P() in
5201 place of GET_MODE_CLASS() == MODE_INT, so that partial integer
5202 modes are accepted as well.
5203 (ucompare_loc_descriptor): Likewise.
5204 (minmax_loc_descriptor): Likewise.
5205 (clz_loc_descriptor): Likewise.
5206 (popcount_loc_descriptor): Likewise.
5207 (bswap_loc_descriptor): Likewise.
5208 (rotate_loc_descriptor): Likewise.
5209 (mem_loc_descriptor): Likewise.
5210 (loc_descriptor): Likewise.
5212 2016-06-22 David Malcolm <dmalcolm@redhat.com>
5214 * common.opt (fdiagnostics-parseable-fixits): New option.
5215 * diagnostic.c: Include "selftest.h".
5216 (print_escaped_string): New function.
5217 (print_parseable_fixits): New function.
5218 (diagnostic_report_diagnostic): Call print_parseable_fixits.
5219 (selftest::assert_print_escaped_string): New function.
5220 (ASSERT_PRINT_ESCAPED_STRING_STREQ): New macro.
5221 (selftest::test_print_escaped_string): New function.
5222 (selftest::test_print_parseable_fixits_none): New function.
5223 (selftest::test_print_parseable_fixits_insert): New function.
5224 (selftest::test_print_parseable_fixits_remove): New function.
5225 (selftest::test_print_parseable_fixits_replace): New function.
5226 (selftest::diagnostic_c_tests): New function.
5227 * diagnostic.h (struct diagnostic_context): Add field
5228 "parseable_fixits_p".
5229 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
5230 -fdiagnostics-parseable-fixits.
5231 (-fdiagnostics-parseable-fixits): New option.
5232 * opts.c (common_handle_option): Handle
5233 -fdiagnostics-parseable-fixits.
5234 * selftest-run-tests.c (selftest::run_tests): Call
5235 selftest::diagnostic_c_tests.
5236 * selftest.h (selftest::diagnostic_c_tests): New prototype.
5238 2016-06-22 Ilya Enkovich <ilya.enkovich@intel.com>
5240 PR tree-optimization/71488
5241 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Support
5242 comparison of boolean vectors.
5243 * tree-vect-stmts.c (vectorizable_comparison): Vectorize comparison
5244 of boolean vectors using bitwise operations.
5246 2016-06-22 Andreas Schwab <schwab@suse.de>
5248 * config/aarch64/aarch64-protos.h (aarch64_elf_asm_named_section):
5251 2016-06-22 Eric Botcazou <ebotcazou@adacore.com>
5253 * function.c (assign_parm_setup_reg): Prevent sharing in another case.
5255 2016-06-22 Bernd Edlinger <bernd.edlinger@hotmail.de>
5257 * config/i386/i386.c (print_reg): Emit an error message on attempt to
5260 2016-06-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5262 * config/arm/arm.c (arm_cortex_a73_tune): New struct.
5263 * config/arm/arm-cores.def (cortex-a73): New entry.
5264 (cortex-a73.cortex-a35): Likewise.
5265 (cortex-a73.cortex-a53): Likewise.
5266 * config/arm/arm-tables.opt: Regenerate.
5267 * config/arm/arm-tune.md: Likewise.
5268 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle mcpu=cortex-a73,
5269 mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
5270 * config/arm/t-aprofile: Handle mcpu=cortex-a73,
5271 mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
5272 * doc/invoke.texi (ARM Options): Document cortex-a73,
5273 cortex-a73.cortex-a35 and cortex-a73.cortex-a53.
5275 2016-06-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5277 * config/aarch64/aarch64.c (cortexa73_tunings): New struct.
5278 * config/aarch64/aarch64-cores.def (cortex-a73): New entry.
5279 (cortex-a73.cortex-a35): Likewise.
5280 (cortex-a73.cortex-a53): Likewise.
5281 * config/aarch64/aarch64-tune.md: Regenerate.
5282 * doc/invoke.texi (AArch64 Options): Document cortex-a73,
5283 cortex-a73.cortex-a35 and cortex-a73.cortex-a53 arguments to
5286 2016-06-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5288 * configure.ac (gcc_cv_as_compress_debug): Remove
5289 --compress-debug-sections as extra as switch.
5290 Handle gas --compress-debug-sections=type.
5291 (gcc_cv_ld_compess_debug): Remove bogus ld_date check.
5292 Handle gld --compress-debug-sections=type.
5293 * configure: Regenerate.
5295 2016-06-21 Andrew Burgess <andrew.burgess@embecosm.com>
5297 * bb-reorder.c (pass_partition_blocks::gate): Update comment.
5299 2016-06-21 John David Anglin <danglin@gcc.gnu.org>
5301 * gcov-tool.c (profile_rewrite): Use int64_t instead of long long.
5302 (do_rewrite): likewise.
5304 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5306 * common/config/mep/mep-common.c: Remove.
5307 * config.gcc: Remove mep-* support.
5308 * config/mep/constraints.md: Remove.
5309 * config/mep/default.h: Remove.
5310 * config/mep/intrinsics.h: Remove.
5311 * config/mep/intrinsics.md: Remove.
5312 * config/mep/ivc2-template.h: Remove.
5313 * config/mep/mep-c5.cpu: Remove.
5314 * config/mep/mep-core.cpu: Remove.
5315 * config/mep/mep-default.cpu: Remove.
5316 * config/mep/mep-ext-cop.cpu: Remove.
5317 * config/mep/mep-intrin.h: Remove.
5318 * config/mep/mep-ivc2.cpu: Remove.
5319 * config/mep/mep-pragma.c: Remove.
5320 * config/mep/mep-protos.h: Remove.
5321 * config/mep/mep.c: Remove.
5322 * config/mep/mep.cpu: Remove.
5323 * config/mep/mep.h: Remove.
5324 * config/mep/mep.md: Remove.
5325 * config/mep/mep.opt: Remove.
5326 * config/mep/predicates.md: Remove.
5327 * config/mep/t-mep: Remove.
5328 * doc/install.texi: Remove mep-* documentation.
5329 * doc/md.texi: Likewise.
5331 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5333 * config.gcc: Remove support for avr-rtems.
5334 * config/avr/gen-avr-mmcu-specs.c: Likewise.
5335 * config/avr/rtems.h: Remove.
5336 * config/avr/t-rtems: Remove.
5338 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5340 * config.gcc: Remove m32r-rtems support.
5341 * config/m32r/rtems.h: Remove.
5343 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5345 * config.gcc: Remove h8300-rtems support.
5346 * config/h8300/rtems.h: Remove.
5347 * config/h8300/t-rtems: Remove.
5349 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5351 * config.gcc: Remove support for knetbsd.
5352 * configure.ac: Likewise.
5353 * config/i386/knetbsd-gnu.h: Remove. * config/i386/knetbsd-gnu64.h: Remove.
5354 * config/knetbsd-gnu.h: Remove.
5355 * configure: Regenerate.
5357 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5359 * config.gcc: Remove support for openbsd 2 and 3.
5360 * config/openbsd-oldgas.h: Remove.
5362 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5364 * config.gcc: Remove interix support.
5365 * config/i386/i386-interix.h: Remove.
5366 * config/i386/interix.opt: Remove.
5367 * config/i386/t-interix: Remove.
5368 * configure: Regenerate.
5369 * configure.ac: Remove interix support.
5370 * doc/install.texi: Remove interix documentation.
5372 2016-06-21 Kelvin Nilsen <kelvin@gcc.gnu.org>
5374 * config/rs6000/rs6000.h: Add conditional preprocessing directives
5375 to disable Power9-specific compiler features if HAVE_AS_POWER9 is
5378 2016-06-21 Eric Botcazou <ebotcazou@adacore.com>
5380 * tree.c (verify_type_variant): Skip TYPE_SIZE and TYPE_SIZE_UNIT if
5381 they are both PLACEHOLDER_EXPRs.
5383 2016-06-21 Michael Meissner <meissner@linux.vnet.ibm.com>
5385 * stor-layout.c (layout_type): Move setting complex MODE to
5386 layout_type, instead of setting it ahead of time by the caller.
5387 * tree.c (build_complex_type): Likewise.
5389 2016-06-21 Martin Liska <mliska@suse.cz>
5391 * predict.c (force_edge_cold): Replace imposisble with
5394 2016-06-21 Ilya Verbin <ilya.verbin@intel.com>
5396 * config/i386/i386.c (ix86_emit_swsqrtsf): Emit vrsqrt28ps.
5397 * config/i386/sse.md (define_expand "rsqrtv16sf2"): New.
5399 2016-06-21 Ilya Verbin <ilya.verbin@intel.com>
5401 * config/i386/i386.c (ix86_emit_swdivsf): Emit vrcp28ps.
5403 2016-06-21 H.J. Lu <hongjiu.lu@intel.com>
5404 Ilya Enkovich <ilya.enkovich@intel.com>
5407 * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
5408 New member function to convert V1TImode register to SUBREG
5409 TImode in debug insn.
5410 (timode_scalar_chain::convert_insn): Call fix_debug_reg_uses
5411 after changing register mode to V1TImode.
5413 2016-06-21 Virendra Pathak <virendra.pathak@broadcom.com>
5415 * config/aarch64/aarch64-cores.def (vulcan): New core.
5416 * config/aarch64/aarch64-tune.md: Regenerate.
5417 * doc/invoke.texi: Document vulcan as an available option.
5419 2016-06-21 Eric Botcazou <ebotcazou@adacore.com>
5421 * cse.c (canon_asm_operands): New function extracted from...
5422 (canonicalize_insn): ...here. Call it to canonicalize an ASM_OPERANDS
5423 either standalone or member of a PARALLEL.
5425 2016-06-21 Georg-Johann Lay <avr@gjlay.de>
5428 * config/avr/gen-avr-mmcu-specs.c (print_mcu):
5429 [*link_data_start]: Wrap -Tdata into %{!Tdata:...}.
5430 [*link_text_start]: Wrap -Ttext into %{!Ttext:...}.
5432 2016-06-21 Georg-Johann Lay <avr@gjlay.de>
5435 * config/avr/avr.md (movqi): Only handle loading subreg:qi of
5436 constant addresses if can_create_pseudo_p.
5438 2016-06-21 Jakub Jelinek <jakub@redhat.com>
5440 PR tree-optimization/71588
5441 * tree-ssa-strlen.c (valid_builtin_call): New function.
5442 (adjust_last_stmt, handle_builtin_memset, strlen_optimize_stmt): Use
5445 2016-06-20 Jakub Jelinek <jakub@redhat.com>
5448 * tree-ssa-uninit.c (warn_uninit): If EXPR and VAR are NULL,
5449 see if T isn't anonymous SSA_NAME with COMPLEX_EXPR created
5450 for conversion of scalar user var to complex type and use the
5451 underlying SSA_NAME_VAR in that case. If EXPR is still NULL,
5454 PR rtl-optimization/71591
5455 * toplev.c (toplev::run_self_tests): If no_backend, complain and
5456 don't run any tests.
5458 2016-06-20 Hans-Peter Nilsson <hp@axis.com>
5461 * config/cris/cris.c (cris_asm_output_mi_thunk): Add missing "ba"
5462 delay-slot "nop" for PIC with CRIS v32. Also add missing leading
5463 space for PIC with non-v32 and the common non-PIC "jump".
5465 2016-06-20 Jakub Jelinek <jakub@redhat.com>
5468 * config/i386/i386.c (ix86_fp_cmp_code_to_pcmp_immediate): Fix up
5469 returned values and add UN*/LTGT/*ORDERED cases with values matching
5470 D operand modifier on vcmp for AVX.
5472 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
5474 * config/aarch64/aarch64.opt
5475 (mpc-relative-literal-loads): Rename internal option name.
5476 * config/aarch64/aarch64.c
5477 (aarch64_nopcrelative_literal_loads): Rename to
5478 aarch64_pcrelative_literal_loads.
5479 (aarch64_expand_mov_immediate): Likewise.
5480 (aarch64_secondary_reload): Likewise.
5481 (aarch64_can_use_per_function_literal_pools_p): Likewise.
5482 (aarch64_override_options_after_change_1): Rename and simplify logic.
5483 (aarch64_classify_symbol): Merge large model checks into switch,
5484 remove pc-relative load check.
5486 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
5488 * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): Make FP
5489 costs relative to the cost of a register move.
5491 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
5493 * config/aarch64/arm_neon.h (vcvt_n_f64_s64): New.
5494 (vcvt_n_f64_u64): Likewise.
5495 (vcvt_n_s64_f64): Likewise.
5496 (vcvt_n_u64_f64): Likewise.
5497 (vcvt_f64_s64): Likewise.
5498 (vrecpe_f64): Likewise.
5499 (vcvt_f64_u64): Likewise.
5500 (vrecps_f64): Likewise.
5502 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
5504 * config/aarch64/aarch64.md
5505 (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3): Add attributes to
5507 (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>3): Likewise. Correct
5509 * config/aarch64/aarch64-builtins.c
5510 (aarch64_types_binop_uss_qualifiers): Delete.
5511 (TYPES_BINOP_USS): Likewise.
5512 (aarch64_types_binop_sus_qualifiers): Likewise.
5513 (TYPES_BINOP_SUS): Likewise.
5514 (aarch64_types_fcvt_from_unsigned_qualifiers): New.
5515 (TYPES_FCVTIMM_SUS): Likewise.
5516 * config/aarch64/aarch64-simd-builtins.def (scvtf): Use SHIFTIMM
5518 (ucvtf): Use FCVTIMM_SUS rather than BINOP_SUS.
5519 (fcvtzs): Use SHIFTIMM rather than BINOP.
5520 (fcvtzu): Use SHIFTIMM_USS rather than BINOP_USS.
5522 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
5524 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): Make FP
5525 costs relative to the cost of a register move.
5527 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
5529 * config/aarch64/aarch64.c (aarch64_modes_tieable_p):
5530 Allow scalar/single vector modes to be tieable.
5532 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
5534 * config/arm/cortex-a57.md (cortex_a57_fp_cpys): Add fcsel.
5536 2016-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5538 * params.def (PARAM_ALIGN_LOOP_ITERATIONS): Use "alignment" instead of
5540 * tree.h (TYPE_ALIGN): Likewise.
5542 2016-06-20 Georg-Johann Lay <avr@gjlay.de>
5545 * config/avr/avr.md (movqi): Handle loading subreg:qi (const).
5547 2016-06-20 Georg-Johann Lay <avr@gjlay.de>
5549 * config/avr/avr.c (avr_print_operand): Fix "format not a string
5550 literal" build warnings.
5551 (avr_print_operand_address): Dito.
5553 2016-06-19 David Edelsohn <dje.gcc@gmail.com>
5556 * config/rs6000/aix51.h (TARGET_EXTRA_BUILTINS): Define as 0.
5557 * config/rs6000/aix43.h (TARGET_EXTRA_BUILTINS): Same.
5559 2016-06-18 John David Anglin <danglin@gcc.gnu.org>
5561 * config/pa/pa.h (TARGET_LONG_PIC_PCREL_CALL): Remove.
5563 2016-06-18 Eric Botcazou <ebotcazou@adacore.com>
5566 * reload1.c (reload): Pass 0 to finish_spills when called because
5567 update_eliminables_and_spill returns true and remove did_spill.
5568 (finish_spills): Adjust comment and document GLOBAL parameter.
5570 2016-06-17 DJ Delorie <dj@redhat.com>
5573 * config/rl78/rl78-expand.c (umulqihi3): Enable for G10.
5574 * config/rl78/rl78-virtual.c (umulhi3_shift_virt): Likewise.
5575 (umulqihi3_virt): Likewise.
5576 * config/rl78/rl78-real.c (umulhi3_shift_real): Likewise.
5577 (umulqihi3_real): Likewise.
5579 2016-06-17 Martin Liska <mliska@suse.cz>
5581 * tree-ssa-reassoc.c (transform_add_to_multiply): Use auto_vec.
5583 2016-06-17 Martin Liska <mliska@suse.cz>
5585 * predict.def: PRED_LOOP_EXIT from 92 to 85.
5587 2016-06-17 James Greenhalgh <james.greenhalgh@arm.com>
5589 * config/arm/arm_neon.h (vadd_f32): replace __FAST_MATH with
5591 (vaddq_f32): Likewise.
5592 (vmul_f32): Likewise.
5593 (vmulq_f32): Likewise.
5594 (vsub_f32): Likewise.
5595 (vsubq_f32): Likewise.
5597 2016-06-17 Bin Cheng <bin.cheng@arm.com>
5599 PR tree-optimization/71347
5600 * tree-ssa-loop-ivopts.c (determine_group_iv_cost_address): Compute
5601 cost for all uses in group.
5603 2016-06-17 Bin Cheng <bin.cheng@arm.com>
5605 * tree-vect-loop.c (vect_create_epilog_for_reduction): Only
5606 insert gimple seq if it's not empty.
5608 2016-06-17 Bin Cheng <bin.cheng@arm.com>
5610 * tree-vectorizer.h (struct dr_with_seg_len): Remove class
5612 * tree-vect-data-refs.c (operator ==): Handle DR_OFFSET directly,
5614 (comp_dr_with_seg_len_pair): Ditto.
5615 (vect_prune_runtime_alias_test_list): Ditto. Also Canonicalize
5616 struct dr_with_seg_len_pair against DR_OFFSET.
5617 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Handle
5620 2016-06-17 Szabolcs Nagy <szabolcs.nagy@arm.com>
5622 * config/aarch64/geniterators.sh: Handle parenthesised conditions.
5624 2016-06-16 John David Anglin <danglin@gcc.gnu.org>
5626 * config/pa/pa.c (pa_output_pic_pcrel_sequence): New.
5627 (pa_output_lbranch): Use pa_output_pic_pcrel_sequence.
5628 (pa_output_millicode_call): Likewise.
5629 (pa_output_call): Likewise.
5630 (pa_output_indirect_call): Likewise.
5631 (pa_asm_output_mi_thunk): Likewise.
5633 2016-06-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
5635 * doc/invoke.texi (x86 Options): Fix -mno-fp-ret-in-387 typo.
5637 2016-06-16 Martin Liska <mliska@suse.cz>
5639 * predict.c (combine_predictions_for_insn): When we find a first
5640 match predictor, we should consider just predictors with
5641 PRED_FLAG_FIRST_MATCH. Print either first match (if any) or
5642 DS theory predictor.
5643 (combine_predictions_for_bb): Likewise.
5645 2016-06-16 Jakub Jelinek <jakub@redhat.com>
5647 * gimplify.c (gimplify_scan_omp_clauses): Handle COMPONENT_REFs
5648 with base of reference to struct.
5650 2016-06-16 Uros Bizjak <ubizjak@gmail.com>
5652 * doc/invoke.texi (x86 Options): Document -m80387 and -mhard-float.
5654 2016-06-16 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
5657 * config/avr/avr.c (avr_asm_init_sections): Remove setup of
5658 progmem_swtable_section.
5659 (progmem_swtable_section): Remove.
5660 (avr_asm_function_rodata_section): Remove.
5661 (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
5662 * config/avr/avr.h (JUMP_TABLES_IN_TEXT_SECTION: Define to 1.
5664 2016-06-16 Jocelyn Mayer <l_indien@magic.fr>
5666 * config/i386/driver-i386.c (host_detect_local_cpu): Set
5667 PROCESSOR_K8 for signature_CENTAUR_ebx with has_longmode.
5668 <case PROCESSOR_K8>: Pass nano-3000, nano, eden-x2 or k8 for
5669 signature_CENTAUR_ebx.
5670 * config/i386/i386.c (ix86_option_override_internal): Add
5671 definitions for VIA c7, samuel-2, nehemiah, esther, eden-x2, eden-x4,
5672 nano, nano-1000, nano-2000, nano-3000, nano-x2 and nano-x4.
5673 * doc/invoke.texi (x86 Options): Document new VIA -march entries.
5675 2016-06-16 Martin Liska <mliska@suse.cz>
5677 * predict.def: Add fortran loop preheader predictor.
5678 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Properly
5679 fold IFN_BUILTIN_EXPECT with a known constant argument.
5681 2016-06-16 Martin Liska <mliska@suse.cz>
5683 * predict.def: Add 'Fortran' to display text of all
5684 PRED_FORTRAN_* predictors.
5686 2016-06-16 Uros Bizjak <ubizjak@gmail.com>
5689 * config/ia64/ia64.c (enum ia64_builtins) [IA64_BUILTIN_NANQ]: New.
5690 [IA64_BUILTIN_NANSQ]: Ditto.
5691 (ia64_fold_builtin): New function.
5692 (TARGET_FOLD_BUILTIN): New define.
5693 (ia64_init_builtins) Declare const_string_type node.
5694 Add __builtin_nanq and __builtin_nansq builtin functions.
5695 (ia64_expand_builtin): Handle IA64_BUILTIN_NANQ and IA64_BUILTIN_NANSQ.
5697 2016-06-16 Nick Clifton <nickc@redhat.com>
5699 * config/msp430/msp430-opts.h (msp430_hwmult_types): Add
5700 MSP430_HWMULT_ prefix to enum values.
5701 (msp430_regions): Add MSP430_REGION_ prefix to enum values.
5702 * config/msp430/msp430.c: Update use of enum values.
5703 * config/msp430/msp430.md: Likewise.
5704 * config/msp430/msp430.opt: Likewise.
5706 2016-06-16 Jan Hubicka <hubicka@ucw.cz>
5708 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Fix estimation
5709 of comparsions in the last iteration.
5711 2016-06-16 Claudiu Zissulescu <claziss@synopsys.com>
5712 Joern Rennecke <joern.rennecke@embecosm.com>
5714 * config/arc/arc.c (arc_print_operand_address): Handle pc-relative
5716 (arc_needs_pcl_p): Add GOTOFFPC.
5717 (arc_legitimate_pic_addr_p): Likewise.
5718 (arc_output_pic_addr_const): Likewise.
5719 (arc_legitimize_pic_address): Generate a pc-relative address using
5721 (arc_output_libcall): Use @pcl syntax.
5722 (arc_delegitimize_address_0): Delegitimize ARC_UNSPEC_GOTOFFPC.
5723 * config/arc/arc.md ("unspec"): Add ARC_UNSPEC_GOTOFFPC.
5724 (*movsi_insn): Use @pcl syntax.
5725 (doloop_begin_i): Likewise.
5727 2016-06-16 Martin Liska <mliska@suse.cz>
5729 * predict.def: Define a new predictor.
5731 2016-06-16 Claudiu Zissulescu <claziss@synopsys.com>
5733 * config/arc/arc.opt (mtp-regno): Update text.
5735 2016-06-16 Renlin Li <renlin.li@arm.com>
5737 * config/aarch64/aarch64.c (aarch64_legitimize_address): Fix a typo.
5739 2016-06-16 Jakub Jelinek <jakub@redhat.com>
5742 * config/i386/i386.md (setcc + movzbl peephole2): Use reg_set_p.
5743 (setcc + and peephole2): Likewise.
5745 PR rtl-optimization/71532
5746 * cse.c (cse_insn): For const/pure calls, invalidate argument passing
5749 2016-06-15 Michael Meissner <meissner@linux.vnet.ibm.com>
5751 * config/rs6000/vsx.md (VSINT_84): Add DImode to enable loading
5752 DImode constants with XXSPLTIB in vector registers.
5753 (vsx_extract_<mode>, V2DImode/V2DFmode): Combine both
5754 vsx_extract_<mode>_internal{1,2} into a single insn that handles
5755 direct move (both ISA 2.07 and ISA 3.0 versions), and optimizes
5756 extraction of the element at the top of the register as a scalar
5758 (vsx_extract_<mode>_internal1): Likewise.
5759 (vsx_extract_<mode>_internal2): Likewise.
5760 * config/rs6000/constraints.md (wi constraint): Remove a comment
5761 about DImode not being allowed in Altivec registers.
5762 (wB constraint): New constraint for constants that can be
5763 generated in Altivec registers with VSPLTISW/VUPKHSW.
5764 * config/rs6000/predicates.md (xxspltib_constant_split): Update
5766 (xxspltib_constant_nosplit): Likewise.
5767 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Add
5768 support for -mupper-regs-di to enable DImode to go into Altivec
5770 (POWERPC_MASKS): Likewise.
5771 (power7 cpu): Likewise.
5772 * config/rs6000/rs6000.opt (-mupper-regs-di): Likewise.
5773 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
5774 for DImode being allowed in Altivec registers. Update wi/wj
5775 constraints. Set scalar_in_vmx_p flag.
5776 (rs6000_option_override_internal): Add checks for -mupper-regs-di.
5777 (xxspltib_constant_p): Allow CONST_INT's with VOIDmode. Don't
5778 return true if we could use VSPLTISW/VUPKHSW instead of XXSPLTIB.
5779 (rs6000_opt_masks): Add -mupper-regs-di.
5780 * config/rs6000/rs6000.md (lfiwax): Update clobbers that don't use
5781 direct move to use wi and not wj.
5783 (floatsi<mode>2_lfiwax_mem): Combine alternatives into a single
5785 (floatunssi<mode>2_lfiwzx_mem): Likewise.
5786 (fix_trunc<mode>di2_fctidz): Change second alternative to allow
5787 any VSX register, instead of just Altivec registers, to allow
5788 either operand to be an Altivec register or both.
5789 (fixuns_trunc<mode>di2_fctiduz): Likewise.
5790 (movdi_internal32): Add support for -mupper-regs-di. Add support
5791 to load constants via XXSPLTIB or VSPLTISW. Add spacing to allow
5792 the alternatives and attributes to be lined up to be easier to
5794 (movdi_internal64): Likewise.
5795 (64-bit DImode splitters): Change predicates to only split loading
5796 up GPR registers. Add splits for using XXSPLTIB or VSPLTISW to
5797 load constants in ISA 3.0 or ISA 2.07 respectively.
5798 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
5799 -mupper-regs-di. Update -mupper-regs-df and -mupper-regs-sf to
5800 mention -mcpu=power9 sets these options.
5801 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document the
5804 2016-06-15 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
5807 * config/avr/avr.c (avr_set_current_function): Warn misspelled
5808 interrupt/ signal handler if -Wmisspelled-isr flag is enabled.
5809 * config/avr/avr.opt (Wmisspelled-isr): New warning flag. Enabled
5810 by default to warn misspelled interrupt/ signal handler.
5811 * doc/invoke.texi (AVR Options): Document it. Update description
5812 for -nodevicelib option.
5814 2016-06-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5816 * config/aarch64/aarch64-simd.md (aarch64_<sur>shll_n<mode>): Clean
5817 up parentheses. Use GET_MODE_UNIT_BITSIZE.
5818 (aarch64_<sur>shll2_n<mode>): Likewise.
5820 2016-06-15 Ilya Enkovich <ilya.enkovich@intel.com>
5823 * ipa-chkp.c (chkp_build_instrumented_fndecl): Fix
5824 DECL_CONTEXT for copied arguments.
5826 2016-06-15 Alan Hayward <alan.hayward@arm.com>
5828 PR tree-optimization/71483
5829 * tree-vect-loop.c (vectorizable_live_operation): Pick correct index
5832 2016-06-15 Martin Liska <mliska@suse.cz>
5834 * predict.c (tree_predict_by_opcode): Call predict_edge_def
5835 instead of predict_edge w/o a probability.
5837 2016-06-15 Alan Hayward <alan.hayward@arm.com>
5839 PR tree-optimization/71439
5840 * tree-vect-loop.c (vect_analyze_loop_operations): Additional check for
5843 2016-06-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5845 * ifcvt.c (bb_ok_for_noce_multiple_sets): Allow simple lowpart
5846 register subregs in SET_SRC.
5848 2016-06-15 Richard Biener <rguenther@suse.de>
5850 * tree-vect-stmts.c (vectorizable_store): Remove strided grouped
5853 2016-06-15 Richard Biener <rguenther@suse.de>
5855 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Do
5856 not consider dependences between accesses that belong to the
5858 (vect_analyze_data_ref_dependences): Do not analyze read-read
5859 or self-dependences.
5861 2016-06-14 David Malcolm <dmalcolm@redhat.com>
5863 * spellcheck-tree.c: Include spellcheck-tree.h rather than
5865 (find_closest_identifier): Reimplement in terms of
5866 best_match<tree,tree>.
5867 * spellcheck-tree.h: New file.
5868 * spellcheck.c (struct edit_distance_traits<const char *>): New
5870 (find_closest_string): Reimplement in terms of
5871 best_match<const char *, const char *>.
5872 * spellcheck.h (levenshtein_distance): Move prototype of tree-based
5873 overload to spellcheck-tree.h.
5874 (find_closest_identifier): Likewise.
5875 (struct edit_distance_traits<T>): New template.
5876 (class best_match): New class.
5878 2016-06-14 David Malcolm <dmalcolm@redhat.com>
5880 * selftest-run-tests.c (selftest::run_tests): Call
5881 selftest::spellcheck_tree_c_tests.
5882 * selftest.h (selftest::spellcheck_tree_c_tests): New decl.
5883 * spellcheck-tree.c: Include selftest.h and stringpool.h.
5884 (selftest::test_find_closest_identifier): New function.
5885 (selftest::spellcheck_tree_c_tests): New function.
5886 * spellcheck.c (selftest::test_find_closest_string): Verify that
5887 the order of the vec does not affect the results for this case.
5888 (selftest::test_data): New array.
5889 (selftest::test_metric_conditions): New function.
5890 (selftest::spellcheck_c_tests): Add a test of case-comparison.
5891 Call selftest::test_metric_conditions.
5893 2016-06-14 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5895 * config/rs6000/rs6000-builtin.def (commentary): Typo.
5896 (BU_P9_MISC_1): Likewise.
5897 (BU_P9_64BIT_MISC_0): Likewise.
5898 (BU_P9_MISC_0): Likewise.
5900 2016-06-14 David Malcolm <dmalcolm@redhat.com>
5902 * gcc-rich-location.c
5903 (gcc_rich_location::add_fixit_misspelled_id): New method.
5904 * gcc-rich-location.h
5905 (gcc_rich_location::add_fixit_misspelled_id): Add decl.
5907 2016-06-14 Andreas Tobler <andreast@gcc.gnu.org>
5909 * config/arm/freebsd.h: Only enable unaligned access for armv6 on
5910 FreeBSD 11 and above.
5912 2016-06-14 Uros Bizjak <ubizjak@gmail.com>
5914 * config/i386/i386.md (signbittf2): Emit sse_movmskps for TARGET_SSE.
5916 2016-06-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5918 * expmed.h: Close parenthesis in "at your option" in copyright
5920 * lower-subreg.h: Likewise.
5922 2016-06-14 Richard Biener <rguenther@suse.de>
5925 * genmatch.c (expr::gen_transform): Use in_type for comparisons
5928 2015-06-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5930 * config/aarch64/aarch64.c (aarch64_mask_and_shift_for_ubfiz_p):
5932 (aarch64_rtx_costs): Use it. Rewrite CONST_INT_P (op1) case to handle
5934 * config/aarch64/aarch64-protos.h (aarch64_mask_and_shift_for_ubfiz_p):
5936 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Replace
5937 matching condition with aarch64_mask_and_shift_for_ubfiz_p.
5939 2016-06-14 Richard Biener <rguenther@suse.de>
5941 PR tree-optimization/71522
5942 * tree-ssa.c (non_rewritable_lvalue_p): Do not rewrite non-float
5943 copying into float copying.
5945 2016-06-14 Jakub Jelinek <jakub@redhat.com>
5947 PR tree-optimization/71520
5948 * tree-ssa-tail-merge.c (find_duplicate): Handle labels.
5949 (replace_block_by): Move user labels from bb1 to bb2.
5951 2016-06-14 Richard Biener <rguenther@suse.de>
5955 * expr.h (get_bit_range): Declare.
5956 * expr.c (get_bit_range): Export.
5957 * fold-const.c (optimize_bit_field_compare): Use get_bit_range and
5958 word_mode again to constrain the bitfield access.
5960 2016-06-14 Richard Biener <rguenther@suse.de>
5962 PR tree-optimization/71521
5963 * tree-vrp.c (extract_range_from_binary_expr_1): Guard
5964 division int_const_binop against zero divisor.
5966 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
5968 * config/i386/i386.md (signbittf2): New expander.
5969 * config/i386/sse.md (ptesttf2): New insn pattern.
5971 2016-06-13 David Malcolm <dmalcolm@redhat.com>
5974 * input.c (selftest::test_reading_source_line): Avoid reading from
5975 __FILE__ by creating a tempfile with known content and reading
5978 2016-06-13 David Malcolm <dmalcolm@redhat.com>
5980 * pretty-print.c (assert_pp_format_colored): Skip the test if
5982 (test_pp_format): Remove comment about GCC_COLORS.
5984 2016-06-13 David Malcolm <dmalcolm@redhat.com>
5986 * input.c (test_reading_source_line): Use SELFTEST_LOCATION.
5987 * pretty-print.c (assert_pp_format_va): Add location param and use
5988 it with ASSERT_STREQ_AT.
5989 (assert_pp_format): Add location param and pass it to
5990 assert_pp_format_va.
5991 (assert_pp_format_colored): Likewise.
5992 (ASSERT_PP_FORMAT_1): New.
5993 (ASSERT_PP_FORMAT_2): New.
5994 (ASSERT_PP_FORMAT_3): New.
5995 (test_pp_format): Provide SELFTEST_LOCATION throughout, either
5996 explicitly, or implicitly via the above macros.
5997 * selftest.c (selftest::pass): Use a selftest::location rather
5999 (selftest::fail): Likewise. Print the function name.
6000 (selftest::fail_formatted): Likewise.
6001 (selftest::assert_streq): Use a selftest::location rather than
6003 * selftest.h (selftest::location): New struct.
6004 (SELFTEST_LOCATION): New macro.
6005 (selftest::pass): Accept a const location & rather than file
6007 (selftest::fail): Likewise.
6008 (selftest::fail_formatted): Likewise.
6009 (selftest::assert_streq): Likewise.
6010 (ASSERT_TRUE): Update for above changes, using SELFTEST_LOCATION.
6011 (ASSERT_FALSE): Likewise.
6012 (ASSERT_EQ): Likewise.
6013 (ASSERT_NE): Likewise.
6014 (ASSERT_STREQ): Likewise.
6015 (ASSERT_PRED1): Likewise.
6016 (ASSERT_STREQ_AT): New macro.
6018 2016-06-13 David Malcolm <dmalcolm@redhat.com>
6020 * selftest.c (selftest::fail_formatted): New function.
6021 (selftest::assert_streq): New function.
6022 * selftest.h (selftests::fail_formatted): New decl.
6023 (selftest::assert_streq): New decl.
6024 (ASSERT_STREQ): Reimplement in terms of selftest::assert_streq.
6026 2016-06-13 Jeff Law <law@redhat.com>
6028 PR tree-optimization/71403
6029 * tree-ssa-threadbackward.c
6030 (convert_and_register_jump_thread_path): No longer accept reference
6031 to path. Do not pop items off the path anymore.
6032 (fsm_find_control_statement_thread_paths): Do not allow threading
6033 to a deeper loop nest. Pop the last item off the path here rather
6034 than in convert_and_register_jump_thread_path.
6036 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
6037 Wilco Dijkstra <Wilco.Dijkstra@arm.com>
6039 [AArch64] Emit division using the Newton series
6041 * config/aarch64/aarch64-protos.h
6042 (cpu_approx_modes): Add new member "division".
6043 (aarch64_emit_approx_div): Declare new function.
6044 * config/aarch64/aarch64.c
6045 (generic_approx_modes): New member "division".
6046 (exynosm1_approx_modes): Likewise.
6047 (xgene1_approx_modes): Likewise.
6048 (aarch64_emit_approx_div): Define new function.
6049 * config/aarch64/aarch64.md ("div<mode>3"): New expansion.
6050 * config/aarch64/aarch64-simd.md ("div<mode>3"): Likewise.
6051 * config/aarch64/aarch64.opt (-mlow-precision-div): Add new option.
6052 * doc/invoke.texi (-mlow-precision-div): Describe new option.
6054 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
6055 Wilco Dijkstra <wilco.dijkstra@arm.com>
6057 [AArch64] Emit square root using the Newton series
6059 * config/aarch64/aarch64-protos.h
6060 (aarch64_emit_approx_rsqrt): Replace with new function
6061 "aarch64_emit_approx_sqrt".
6062 (cpu_approx_modes): New member "sqrt".
6063 * config/aarch64/aarch64.c
6064 (generic_approx_modes): New member "sqrt".
6065 (exynosm1_approx_modes): Likewise.
6066 (xgene1_approx_modes): Likewise.
6067 (aarch64_emit_approx_rsqrt): Replace with new function
6068 "aarch64_emit_approx_sqrt".
6069 (aarch64_override_options_after_change_1): Handle new option.
6070 * config/aarch64/aarch64-simd.md
6071 (rsqrt<mode>2): Use new function instead.
6072 (sqrt<mode>2): New expansion and insn definitions.
6073 * config/aarch64/aarch64.md: Likewise.
6074 * config/aarch64/aarch64.opt
6075 (mlow-precision-sqrt): Add new option description.
6076 * doc/invoke.texi (mlow-precision-sqrt): Likewise.
6078 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
6080 [AArch64] Add more choices for the reciprocal square root approximation
6082 Allow a target to prefer such operation depending on the operation mode.
6084 * config/aarch64/aarch64-protos.h
6085 (AARCH64_APPROX_MODE): New macro.
6086 (AARCH64_APPROX_{NONE,ALL}): Likewise.
6087 (cpu_approx_modes): New structure.
6088 (tune_params): New member "approx_modes".
6089 * config/aarch64/aarch64-tuning-flags.def
6090 (AARCH64_EXTRA_TUNE_APPROX_RSQRT): Remove macro.
6091 * config/aarch64/aarch64.c
6092 (generic_approx_modes): New core "cpu_approx_modes" structure.
6093 (exynosm1_approx_modes): Likewise.
6094 (xgene1_approx_modes): Likewise.
6095 (generic_tunings): New member "approx_modes".
6096 (cortexa35_tunings): Likewise.
6097 (cortexa53_tunings): Likewise.
6098 (cortexa57_tunings): Likewise.
6099 (cortexa72_tunings): Likewise.
6100 (exynosm1_tunings): Likewise.
6101 (thunderx_tunings): Likewise.
6102 (xgene1_tunings): Likewise.
6103 (use_rsqrt_p): New argument for the mode and use new member from
6105 (aarch64_builtin_reciprocal): Devise mode from builtin.
6106 (aarch64_optab_supported_p): New argument for the mode.
6107 * doc/invoke.texi (-mlow-precision-recip-sqrt): Reword description.
6109 2016-06-13 Kelvin Nilsen <kelvin@gcc.gnu.org>
6111 * config/rs6000/rs6000.h (RS6000_BTM_COMMON): Add the
6112 RS6000_BTM_MODULO flag into the set of flags that are considered
6113 to be part of the common configuration.
6115 2016-06-13 Kelvin Nilsen <kelvin@gcc.gnu.org>
6117 * config/rs6000/altivec.h (vec_absd): New macro for vector absolute
6118 difference unsigned.
6119 (vec_absdb): New macro for vector absolute difference unsigned
6121 (vec_absdh): New macro for vector absolute difference unsigned
6123 (vec_absdw): New macro for vector absolute difference unsigned word.
6124 * config/rs6000/altivec.md (UNSPEC_VADU): New value.
6125 (vadu<mode>3): New insn.
6126 (*p9_vadu<mode>3): New insn.
6127 * config/rs6000/rs6000-builtin.def (vadub): New built-in
6129 (vaduh): New built-in definition.
6130 (vaduw): New built-in definition.
6131 (vadu): New overloaded built-in definition.
6132 (vadub): New overloaded built-in definition.
6133 (vaduh): New overloaded built-in definition.
6134 (vaduw): New overloaded built-in definition.
6135 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
6136 overloaded vector absolute difference unsigned functions.
6137 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
6138 the ISA 3.0 vector absolute difference unsigned built-in functions.
6140 2016-06-13 Eric Botcazou <ebotcazou@adacore.com>
6142 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use a uniform test and
6143 update shared_lookup_references only once after changing operands.
6145 2016-06-13 Thomas Schwinge <thomas@codesourcery.com>
6148 * tree-nested.c (convert_nonlocal_omp_clauses)
6149 (convert_local_omp_clauses): Document missing OMP_CLAUSE_*.
6151 * tree-cfg.c (edge_to_cases_cleanup): Fix CASE_CHAIN typo.
6152 * tree.def (CASE_LABEL_EXPR): Likewise.
6154 2016-06-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
6157 * input.c (test_builtins): Fix an assertion.
6159 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
6161 * config/i386/i386.md (paritydi2): Use ix86_expand_setcc.
6164 (isinf<mode>2): Ditto.
6166 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
6168 * ggc-tests.c (test_finalization): Only test need_finalization_p
6169 for GCC_VERSION >= 4003.
6171 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6173 * config/s390/vecintrin.h: Fix file description in comment.
6175 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6177 * config/s390/s390-builtin-types.def: Change builtin type naming
6178 scheme to match builtin-types.def.
6180 2016-06-13 Marc Glisse <marc.glisse@inria.fr>
6182 * fold-const.c (optimize_minmax_comparison): Remove.
6183 (fold_comparison): Remove call to the above.
6184 * match.pd (MIN (X, Y) == X, MIN (X, 5) == 0, MIN (X, C1) < C2):
6185 New transformations.
6187 2016-06-13 Alan Hayward <alan.hayward@arm.com>
6189 PR tree-optimization/71416
6190 * tree-vect-loop.c (vectorizable_live_operation): Let worklist have
6193 2016-06-13 Martin Liska <mliska@suse.cz>
6195 * predict.c (enum predictor_reason): Prefix enum with REASON_.
6196 (combine_predictions_for_insn): Likewise.
6197 (prune_predictions_for_bb): Likewise.
6198 (combine_predictions_for_bb): Likewise.
6200 2016-06-13 Richard Biener <rguenther@suse.de>
6202 PR tree-optimization/71505
6203 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Make
6204 assert match comment.
6206 2016-06-13 Marek Polacek <polacek@redhat.com>
6209 * gimplify.c (maybe_warn_switch_unreachable): Factored out of
6210 gimplify_switch_expr.
6211 (warn_switch_unreachable_r): New function.
6213 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6216 * config/s390/s390.c (s390_expand_builtin): Increase MAX_ARGS by
6219 2016-06-13 Richard Biener <rguenther@suse.de>
6222 * fold-const.c (fold_unary_loc): Preserve alignment when
6223 folding a VIEW_CONVERT_EXPR into a MEM_REF.
6225 2016-06-13 Martin Liska <mliska@suse.cz>
6228 * toplev.c (process_options): Do not enable -fcheck-pointer-bounds
6229 w/ -fsanitize=bounds.
6231 2016-06-12 Uros Bizjak <ubizjak@gmail.com>
6233 * config/i386/i386.c (ix86_init_builtins): Calculate
6234 FLOAT128_FTYPE_CONST_STRING function type only once.
6235 * doc/extend.texi (x86 Built-in Functions): Update text, __float128
6236 built-in functions are available for x86-32 and x86-64 targets.
6238 2016-06-12 Uros Bizjak <ubizjak@gmail.com>
6241 * config/i386/i386.i386-builtin-types.def (CONST_STRING):
6243 (FLOAT128_FTYPE_CONST_STRING): New function type.
6244 * config/i386/i386.c (enum ix86_builtins) [IX86_BUILTIN_NANQ]: New.
6245 [IX86_BUILTIN_NANSQ]: Ditto.
6246 (ix86_fold_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
6247 (ix86_init_builtin_types): Declare const_string_type_node.
6248 (ix86_init_builtins): Add __builtin_nanq and __builtin_nansq
6250 (ix86_expand_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
6251 * doc/extend.texi (x86 Built-in Functions): Document
6252 __builtin_nanq and __builtin_nansq.
6254 2016-06-11 Jiong Wang <jiong.wang@arm.com>
6257 * config/arm/arm-protos.h (arm_attr_length_pop_multi): New declaration.
6258 * config/arm/arm.c (arm_attr_length_pop_multi): New function to return
6259 length for pop patterns.
6260 (arm_attr_length_push_multi): Update comments.
6261 * config/arm/arm.md (*load_multiple_with_writeback): Set "length"
6263 (*pop_multiple_with_writeback_and_return): Likewise.
6264 (*pop_multiple_with_return): Likewise.
6266 2016-06-11 Segher Boessenkool <segher@kernel.crashing.org>
6269 * fold-const.c (optimize_bit_field_compare): Don't try to use
6270 word_mode unconditionally for reading the bit field, look at
6271 DECL_BIT_FIELD_REPRESENTATIVE instead.
6273 2016-06-11 Kugan Vivekanandarajah <kuganv@linaro.org>
6276 * tree-ssa-reassoc.c (reassociate_bb): Remove (-1) from ops list for
6277 vector integer type.
6279 2016-06-10 Jakub Jelinek <jakub@redhat.com>
6282 * tree-nested.c (convert_nonlocal_reference_stmt): For GIMPLE_GOTO
6283 without LABEL_DECL, set *handled_ops_p to false instead of true.
6285 2016-06-10 Martin Sebor <msebor@redhat.com>
6288 * builtin-attrs.def (ATTR_NOTHROW_NONNULL_LEAF_LIST): New macro.
6289 (ATTR_NOTHROW_NONNULL_TYPEGENERIC_LEAF): Same.
6290 * builtins.def (BUILT_IN_SADD_OVERFLOW, BUILT_IN_SADDL_OVERFLOW): Use
6292 (BUILT_IN_SADDLL_OVERFLOW, BUILT_IN_SSUB_OVERFLOW): Same.
6293 (BUILT_IN_SSUBL_OVERFLOW, BUILT_IN_SSUBLL_OVERFLOW): Same.
6294 (BUILT_IN_SMUL_OVERFLOW, BUILT_IN_SMULL_OVERFLOW): Same.
6295 (BUILT_IN_SMULLL_OVERFLOW, BUILT_IN_UADD_OVERFLOW): Same.
6296 (BUILT_IN_UADDL_OVERFLOW, BUILT_IN_UADDLL_OVERFLOW): Same.
6297 (BUILT_IN_USUB_OVERFLOW, BUILT_IN_USUBL_OVERFLOW): Same.
6298 (BUILT_IN_USUBLL_OVERFLOW, BUILT_IN_UMUL_OVERFLOW): Same.
6299 (BUILT_IN_UMULL_OVERFLOW, BUILT_IN_UMULLL_OVERFLOW): Same.
6301 2016-06-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
6303 * config/arm/arm.h (pool_vector_label,
6304 return_used_this_function): Remove.
6306 2016-06-10 Jeff Law <law@redhat.com>
6308 PR tree-optimization/71335
6309 * tree-ssa-threadbackward.c (profitable_jump_thread_path): Filter out
6310 zero length paths here.
6311 (convert_and_register_jump_thread_path): Remove hacks related to
6312 duplicated blocks in the jump thread path.
6313 (fsm_find_control_statement_thread_paths): Avoid putting the same
6314 block on the thread path twice, but ensure the thread path is
6315 unchanged from the caller's point of view.
6317 2016-06-10 Jan Hubicka <hubicka@ucw.cz>
6319 * predict.c (predict_loops): Remove PRED_LOOP_BRANCH.
6320 * predict.def (PRED_LOOP_BRANCH): Remove.
6322 2016-06-10 David Malcolm <dmalcolm@redhat.com>
6324 * Makefile.in (OBJS): Add ggc-tests.o.
6325 (GTFILES): Add ggc-tests.c.
6326 * ggc-tests.c: New file.
6327 * selftest-run-tests.c (selftest::run_tests): Call
6328 selftest::ggc_tests_c_tests.
6329 * selftest.h (selftest::ggc_tests_c_tests): New prototype.
6331 2016-06-10 Alexander Monakov <amonakov@ispras.ru>
6333 * match.pd (-1 / B < A): Use :c to avoid pattern duplication.
6335 2016-06-10 Maxim Ostapenko <m.ostapenko@samsung.com>
6338 * varasm.c (place_block_symbol): Adjust alignment for asan protected
6339 STRING_CSTs even if TREE_CONSTANT_POOL_ADDRESS_P.
6341 2016-06-10 Jan Hubicka <hubicka@ucw.cz>
6343 * profile.c: Include cfgloop.h.
6344 (branch_prob): Compute estimated number of iterations.
6345 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Do not
6346 recompute estimate number of iterations from profile.
6348 2016-06-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
6351 * reg-stack.c (check_asm_stack_operands): Explicit input arguments
6352 must be grouped on top of stack. Don't force early clobber
6353 on ordinary reg outputs.
6355 2016-06-10 Richard Biener <rguenther@suse.de>
6357 * targhooks.c (default_builtin_vectorization_cost): Adjust
6360 2016-06-10 Richard Biener <rguenther@suse.de>
6362 * gimple-fold.c (gimple_fold_builtin_memory_op): Make sure
6363 to fold the RHS to a constant if possible.
6365 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
6368 * tree-nested.c (convert_nonlocal_omp_clauses)
6369 (convert_local_omp_clauses): Handle OMP_CLAUSE_ASYNC,
6370 OMP_CLAUSE_WAIT, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
6371 OMP_CLAUSE__CACHE_, OMP_CLAUSE_TILE.
6373 * gimplify.c (gimplify_adjust_omp_clauses): Discard
6375 * omp-low.c (scan_sharing_clauses): Don't expect OMP_CLAUSE_TILE.
6377 * omp-low.c (scan_sharing_clauses): Don't expect
6380 2016-06-10 Alan Hayward <alan.hayward@arm.com>
6382 PR tree-optimization/71407
6383 PR tree-optimization/71416
6384 * tree-vect-loop.c (vectorizable_live_operation): Use vectype for
6387 2016-06-10 Richard Biener <rguenther@suse.de>
6390 * cfgloop.c (alloc_loop): Initialize nb_iterations_likely_upper_bound.
6392 2016-06-09 Eric Botcazou <ebotcazou@adacore.com>
6394 * df-problems.c (df_note_bb_compute): Guard use of DF_INSN_INFO_GET.
6396 2016-06-09 Vladimir Makarov <vmakarov@redhat.com>
6397 Jiong Wang <jiong.wang@arm.com>
6399 PR rtl-optimization/70751
6400 * lra-constraints.c (process_alt_operands): Recognize Non-pseudo
6401 spilled into memory.
6403 2016-06-09 Jonathan Yong <10walls@gmail.com>
6406 2015-09-21 Jonathan Yong <10walls@gmail.com>
6408 * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
6409 sysroot/usr/lib/32api for additional win32 libraries,
6410 fixes failing Cygwin bootstrapping.
6412 2016-06-09 Marcin Baczyński <marbacz@gmail.com>
6414 * diagnostic.h (diagnostic_line_cutoff, diagnostic_flush_buffer):
6417 2016-06-09 David Malcolm <dmalcolm@redhat.com>
6420 * pretty-print.c (pp_indent): Specify that %p is printed in a
6421 host-dependent manner.
6422 (test_pp_format): Remove the test for %p.
6424 2016-06-09 Maciej W. Rozycki <macro@imgtec.com>
6426 * config/mips/mips.c (mips_output_jump): Fix formatting.
6428 2016-06-09 Richard Biener <rguenther@suse.de>
6430 PR tree-optimization/71462
6431 * tree-ssa-loop-manip.c (find_uses_to_rename): Guard against
6434 2016-06-09 Martin Liska <mliska@suse.cz>
6436 * predict.c (dump_prediction): Add new argument.
6437 (enum predictor_reason): New enum.
6438 (struct predictor_hash): New struct.
6439 (predictor_hash::hash): New function.
6440 (predictor_hash::equal): Likewise.
6441 (not_removed_prediction_p): New function.
6442 (prune_predictions_for_bb): Likewise.
6443 (combine_predictions_for_bb): Prune predictions.
6445 2016-06-09 Martin Liska <mliska@suse.cz>
6447 * predict.c (filter_predictions): New function.
6448 (remove_predictions_associated_with_edge): Use the filter
6450 (equal_edge_p): New function.
6452 2016-06-09 Stefan Bruens <stefan.bruens@rwth-aachen.de>
6454 * doc/invoke.texi (ARM Options): Use lexicographical ordering.
6455 Correct usage of @samp vs @option, add @samp where appropriate.
6456 Add -march={armv6k,armv6z,arm6zk}, remove -march=ep9312.
6457 Add armv6s-m and document it, as it is no official ARM name.
6459 2016-06-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6461 * ifcvt.c (struct noce_if_info): Add transform_name field.
6462 (noce_try_move): Set if_info->transform_name to the function name.
6463 (noce_try_ifelse_collapse): Likewise.
6464 (noce_try_store_flag): Likewise.
6465 (noce_try_inverse_constants): Likewise.
6466 (noce_try_store_flag_constants): Likewise.
6467 (noce_try_addcc): Likewise.
6468 (noce_try_store_flag_mask): Likewise.
6469 (noce_try_cmove): Likewise.
6470 (noce_try_cmove_arith): Likewise.
6471 (noce_try_minmax): Likewise.
6472 (noce_try_abs): Likewise.
6473 (noce_try_sign_mask): Likewise.
6474 (noce_try_bitop): Likewise.
6475 (noce_convert_multiple_sets): Likewise.
6476 (noce_process_if_block): Print if_info->transform_name to
6477 dump_file if transformation succeeded.
6479 2016-06-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6481 * config/arm/cortex-a57.md (cortex_a57_alu):
6484 2016-06-08 Martin Sebor <msebor@redhat.com>
6485 Jakub Jelinek <jakub@redhat.com>
6489 * builtins.def (BUILT_IN_ADD_OVERFLOW_P, BUILT_IN_SUB_OVERFLOW_P,
6490 BUILT_IN_MUL_OVERFLOW_P): New builtins.
6491 * builtins.c: Include gimple-fold.h.
6492 (fold_builtin_arith_overflow): Handle
6493 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
6494 (fold_builtin_3): Likewise.
6495 * doc/extend.texi (Integer Overflow Builtins): Document
6496 __builtin_{add,sub,mul}_overflow_p.
6498 2016-06-08 Jose E. Marchesi <jose.marchesi@oracle.com>
6500 * config/sparc/driver-sparc.c (cpu_names): Fix the entry for the
6501 SPARC-M7 and add an entry for SPARC-S7 cpus (Sonoma).
6503 2016-06-08 Alan Lawrence <alan.lawrence@arm.com>
6505 * config/aarch64/aarch64.c (aarch64_function_arg_alignment):
6506 Rewrite, looking one level down for records and arrays.
6508 2016-06-08 David Malcolm <dmalcolm@redhat.com>
6510 * pretty-print.c: Include "selftest.h".
6511 (pp_format): Fix comment.
6512 (identifier_to_locale): Likewise.
6513 (selftest::test_basic_printing): New function.
6514 (selftest::assert_pp_format): New function.
6515 (selftest::test_pp_format): New function.
6516 (selftest::pretty_print_c_tests): New function.
6517 * selftest-run-tests.c (selftest::run_tests): Call
6518 selftest::pretty_print_c_tests.
6519 * selftest.h (pretty_print_c_tests): New declaration.
6521 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
6523 * invoke.texi (max-loop-headers-insns): Document.
6524 * params.def (PARAM_MAX_LOOP_HEADER_INSNS): New.
6525 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Update comment.
6526 (ch_base::copy_headers): Use PARAM_MAX_LOOP_HEADER_INSNS.
6528 2016-06-08 Richard Biener <rguenther@suse.de>
6530 * tree-vect-stmts.c (vectorizable_load): Remove restrictions
6531 on strided SLP loads and fall back to scalar loads in case
6532 we can't chunk them.
6534 2016-06-08 Richard Biener <rguenther@suse.de>
6536 PR tree-optimization/71452
6537 * tree-ssa.c (non_rewritable_lvalue_p): Make sure that the
6538 type used for the SSA rewrite has enough precision to cover
6539 the dynamic type of the location.
6541 2016-06-08 Jakub Jelinek <jakub@redhat.com>
6542 Richard Biener <rguenther@suse.de>
6545 * fold-const.c (fold_comparison): Handle CONSTANT_CLASS_P (base0)
6546 the same as DECL_P (base0) for indirect_base0. Use equality_code
6547 in one further place.
6549 2016-06-08 Richard Sandiford <richard.sandiford@arm.com>
6551 * expmed.c (store_bit_field_1): Do not restrict a multiword op0
6552 to one word if the field is known to overlap other words.
6553 (extract_bit_field_1): Likewise.
6554 (store_split_bit_field): Remove compensating code.
6555 (extract_split_bit_field): Likewise.
6557 2016-06-08 Bernd Schmidt <bschmidt@redhat.com>
6561 * tree-ssa-strlen.c (handle_builtin_memcmp): Ignore debug insns.
6563 2016-06-08 Jiong Wang <jiong.wang@arm.com>
6565 * config/aarch64/aarch64-builtins.def (faddp): New builtins for modes in
6567 * config/aarch64/aarch64-simd.md (aarch64_faddp<mode>): New.
6568 (arch64_addpv4sf): Delete.
6569 (reduc_plus_scal_v4sf): Use "gen_aarch64_faddpv4sf" instead of
6570 "gen_aarch64_addpv4sf".
6571 * config/aarch64/arm_neon.h (vpadd_f32): Remove inline assembly. Use
6573 (vpadds_f32): Likewise.
6574 (vpaddq_f32): Likewise.
6575 (vpaddq_f64): Likewise.
6577 2016-06-08 Jiong Wang <jiong.wang@arm.com>
6579 * config/aarch64/aarch64-builtins.def (fabd): New builtins for modes
6581 * config/aarch64/aarch64-simd.md (fabd<mode>_3): Extend modes from VDQF
6582 to VALLF. Rename to "fabd<mode>3".
6583 "*fabd_scalar<mode>3): Delete.
6584 * config/aarch64/arm_neon.h (vabds_f32): Remove inline assembly.
6586 (vabdd_f64): Likewise.
6587 (vabd_f32): Likewise.
6588 (vabd_f64): Likewise.
6589 (vabdq_f32): Likewise.
6590 (vabdq_f64): Likewise.
6592 2016-06-08 Jiong Wang <jiong.wang@arm.com>
6594 * config/aarch64/aarch64-builtins.def (rsqrts): New builtins for modes
6596 * config/aarch64/aarch64-simd.md (aarch64_rsqrts_<mode>3): Rename to
6597 "aarch64_rsqrts<mode>".
6598 * config/aarch64/aarch64.c (get_rsqrts_type): Update gen* name.
6599 * config/aarch64/arm_neon.h (vrsqrtss_f32): Remove inline assembly. Use
6601 (vrsqrtsd_f64): Likewise.
6602 (vrsqrts_f32): Likewise.
6603 (vrsqrts_f64): Likewise.
6604 (vrsqrtsq_f32): Likewise.
6605 (vrsqrtsq_f64): Likewise.
6607 2016-06-08 Jiong Wang <jiong.wang@arm.com>
6609 * config/aarch64/aarch64-builtins.def (rsqrte): New builtins for modes
6611 * config/aarch64/aarch64-simd.md (aarch64_rsqrte_<mode>2): Rename to
6612 "aarch64_rsqrte<mode>".
6613 * config/aarch64/aarch64.c (get_rsqrte_type): Update gen* name.
6614 * config/aarch64/arm_neon.h (vrsqrts_f32): Remove inline assembly. Use
6616 (vrsqrted_f64): Likewise.
6617 (vrsqrte_f32): Likewise.
6618 (vrsqrte_f64): Likewise.
6619 (vrsqrteq_f32): Likewise.
6620 (vrsqrteq_f64): Likewise.
6622 2016-06-08 Jiong Wang <jiong.wang@arm.com>
6624 * config/aarch64/aarch64-builtins.def (scvtf): Register vector modes.
6628 * config/aarch64/aarch64-simd.md
6629 (<FCVT_F2FIXED:fcvt_fixed_insn><VDQF:mode>3): New.
6630 (<FCVT_FIXED2F:fcvt_fixed_insn><VDQ_SDI:mode>3): Likewise.
6631 * config/aarch64/arm_neon.h (vcvt_n_f32_s32): Remove inline assembly.
6633 (vcvt_n_f32_u32): Likewise.
6634 (vcvt_n_s32_f32): Likewise.
6635 (vcvt_n_u32_f32): Likewise.
6636 (vcvtq_n_f32_s32): Likewise.
6637 (vcvtq_n_f32_u32): Likewise.
6638 (vcvtq_n_f64_s64): Likewise.
6639 (vcvtq_n_f64_u64): Likewise.
6640 (vcvtq_n_s32_f32): Likewise.
6641 (vcvtq_n_s64_f64): Likewise.
6642 (vcvtq_n_u32_f32): Likewise.
6643 (vcvtq_n_u64_f64): Likewise.
6644 * config/aarch64/iterators.md (VDQ_SDI): New mode iterator.
6645 (VSDQ_SDI): Likewise.
6646 (fcvt_target): Support V4DI, V4SI and V2SI.
6647 (FCVT_TARGET): Likewise.
6649 2016-06-08 Jiong Wang <jiong.wang@arm.com>
6651 * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New
6652 (TYPES_BINOP_SUS): Likewise.
6653 (aarch64_simd_builtin_data): Update include file name.
6654 (aarch64_builtins): Likewise.
6655 * config/aarch64/aarch64-simd-builtins.def (scvtf): New entries
6656 for conversion between scalar float-point and fixed-point.
6660 * config/aarch64/aarch64.md
6661 (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3: New
6662 pattern for conversion between scalar float to fixed-pointer.
6663 (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>: Likewise.
6664 (UNSPEC_FCVTZS): New UNSPEC enumeration.
6665 (UNSPEC_FCVTZU): Likewise.
6666 (UNSPEC_SCVTF): Likewise.
6667 (UNSPEC_UCVTF): Likewise.
6668 * config/aarch64/arm_neon.h (vcvtd_n_f64_s64): Remove inline assembly.
6670 (vcvtd_n_f64_u64): Likewise.
6671 (vcvtd_n_s64_f64): Likewise.
6672 (vcvtd_n_u64_f64): Likewise.
6673 (vcvtd_n_f32_s32): Likewise.
6674 (vcvts_n_f32_u32): Likewise.
6675 (vcvtd_n_s32_f32): Likewise.
6676 (vcvts_n_u32_f32): Likewise.
6677 * config/aarch64/iterators.md (fcvt_target): Support integer to float
6679 (FCVT_TARGET): Likewise.
6680 (FCVT_FIXED2F): New iterator.
6681 (FCVT_F2FIXED): Likewise.
6682 (fcvt_fixed_insn): New define_int_attr.
6684 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
6686 * predict.c (pass_strip_predict_hints::execute): Cleanup CFG if
6687 some statements was removed.
6689 2016-06-08 Alan Hayward <alan.hayward@arm.com>
6691 * tree-vect-data-refs.c (vect_analyze_data_refs): Remove debug newline.
6692 * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): likewise.
6693 (vect_can_advance_ivs_p): likewise.
6694 (vect_update_ivs_after_vectorizer): likewise.
6695 * tree-vect-loop.c (vect_determine_vectorization_factor): likewise.
6696 (vect_analyze_scalar_cycles_1): likewise.
6697 (vect_analyze_loop_operations): likewise.
6698 (report_vect_op): likewise.
6699 (vect_is_slp_reduction): likewise.
6700 (vect_is_simple_reduction): likewise.
6701 (get_initial_def_for_induction): likewise.
6702 (vect_transform_loop): likewise.
6703 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): likewise.
6704 (vect_recog_sad_pattern): likewise.
6705 (vect_recog_widen_sum_pattern): likewise.
6706 (vect_recog_widening_pattern): likewise.
6707 (vect_recog_divmod_pattern): likewise.
6708 * tree-vect-slp.c (vect-build-slp_tree_1): likewise.
6709 (vect_analyze_slp_instance): likewise.
6710 (vect_transform_slp_perm_load): likewise.
6711 (vect_schedule_slp_instance): likewise.
6713 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
6715 * predict.c (predict_iv_comparison): Mention that heuristics is broken.
6716 (return_prediction): PRED_CONST_RETURN predict return as not taken.
6717 * predict.def (PRED_CONTINUE): Change hitrate 50->67
6718 (PRED_LOOP_BRANCH): Document predictor as broken.
6719 (PRED_LOOP_EXIT): Change hitrate 91->92.
6720 (PRED_LOOP_EXTRA_EXIT): Change hitrate 91->83.
6721 (PRED_POINTER, PRED_TREE_POINTER): Change hitrate 85->70.
6722 (PRED_OPCODE_POSITIVE): Change hitrate 79->64.
6723 (PRED_OPCODE_NONEQUAL): Change hitrate 91->66.
6724 (PRED_TREE_OPCODE_POSITIVE): Change hitrate 73->64
6725 (PRED_TREE_OPCODE_NONEQUAL): Chnage hitrate 72->66
6726 (PRED_CALL): Chane hitrate 71->67.
6727 (PRED_TREE_EARLY_RETURN): Document issues, change hitrate 61->54.
6728 (PRED_GOTO): Document as unused right now.
6729 (PRED_CONST_RETURN): Change hitrate 67->69
6730 (PRED_NEGATIVE_RETURN): Change hitrate 96->98
6731 (PRED_NULL_RETURN): Change hitrate 91->90.
6732 (PRED_LOOP_IV_COMPARE_GUESS): Change hitrate to 98.
6733 (PRED_FORTRAN_FAIL_ALLOC): Change hitrate to 62; document issues.
6734 (PRED_FORTRAN_SIZE_ZERO): Change hitrate to 99.
6736 2016-06-07 Bill Seurer <seurer@linux.vnet.ibm.com>
6738 * config/rs6000/altivec.h: Add __builtin_vec_mul.
6739 * config/rs6000/rs6000-builtin.def (vec_mul): Change vec_mul to a
6740 special case Altivec builtin.
6741 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
6742 VSX_BUILTIN_VEC_MUL (replaced with special case code).
6743 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
6744 code for ALTIVEC_BUILTIN_VEC_MUL.
6745 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
6746 for __builtin_vec_mul.
6748 2016-06-07 Peter Bergner <bergner@vnet.ibm.com>
6750 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mhtm and
6753 2016-06-07 David Malcolm <dmalcolm@redhat.com>
6755 * spellcheck.c (selftest::test_find_closest_string): New function.
6756 (spellcheck_c_tests): Call the above.
6758 2016-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6760 * simplify-rtx.c (simplify_cond_clz_ctz): Delete 'mode' local variable.
6762 2016-06-07 Jakub Jelinek <jakub@redhat.com>
6764 * config/i386/sse.md (avx_vec_concat<mode>): Add v=v,vm and
6765 Yv=Yv,C alternatives.
6767 2016-06-07 Richard Biener <rguenther@suse.de>
6770 * common.opt (ffast-math): Make Optimization.
6772 2016-06-07 Simon Dardis <simon.dardis@imgtec.com>
6773 Prachi Godbole <prachi.godbole@imgtec.com>
6775 * config/mips/p5600.md (p5600_fpu_fadd): Remove checking for
6776 `fabs' and `fneg' type attributes.
6777 (p5600_fpu_fabs): Add `fmove' to the comment.
6779 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
6781 * gimple.c: Include builtins.h
6782 (gimple_inexpensive_call_p): New function.
6783 * gimple.h (gimple_inexpensive_call_p): Declare.
6784 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use it.
6785 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise;
6788 2016-06-07 Paolo Carlini <paolo.carlini@oracle.com>
6790 * diagnostic.c (diagnostic_impl, diagnostic_n_impl): New.
6791 (inform, inform_at_rich_loc, inform_n, warning, warning_at,
6792 warning_at_rich_loc, warning_n, pedwarn, permerror,
6793 permerror_at_rich_loc, error, error_n, error_at, error_at_rich_loc,
6794 sorry, fatal_error, internal_error, internal_error_no_backtrace):
6797 2016-06-07 Richard Biener <rguenther@suse.de>
6799 PR tree-optimization/71428
6800 * tree-ssa-math-opts.c (perform_symbolic_merge): Properly distinguish
6801 BIT_FIELD_REF op vs. load.
6803 2016-06-07 Richard Biener <rguenther@suse.de>
6806 * match.pd ((X | ~Y) -> Y <= X): Properly invert the comparison
6809 2016-06-06 John David Anglin <danglin@gcc.gnu.org>
6811 * config/pa/pa.md (call): Generate indirect long calls to non-local
6812 functions on TARGET_64BIT.
6813 (call_value): Likewise.
6815 2016-06-06 John David Anglin <danglin@gcc.gnu.org>
6817 * config/pa/pa.md (call_val_reg_64bit): Remove "reg: DI " clobber from
6818 pattern and subsequent splitters.
6819 (call_val_reg_64bit_post_reload): Likewise.
6821 2016-06-07 Kugan Vivekanandarajah <kuganv@linaro.org>
6824 * tree-ssa-reassoc.c (zero_one_operation): Fix NEGATE_EXPR operand for
6825 propagate_op_to_single_use.
6827 2016-06-07 Kugan Vivekanandarajah <kuganv@linaro.org>
6830 * tree-ssa-reassoc.c (reassociate_bb): Set uid for negate stmt.
6832 2016-06-07 Uros Bizjak <ubizjak@gmail.com>
6834 * config/i386/i386.h (enum ix86_enitity): Add X86_DIRFLAG.
6835 (enum x86_dirflag_state): New enum.
6836 (NUM_MODES_FOR_MODE_SWITCHING): Add X86_DIRFLAG_ANY.
6837 (machine_function): Remove needs_cld.
6838 (ix86_current_function_needs_cld): Remove.
6839 * config/i386/i386.c (ix86_set_func_type): Set
6840 ix86_optimize_mode_switching[X86_DIRFLAG] to 1.
6841 (ix86_expand_prologue): Do not emit CLD here.
6842 (ix86_dirflag_mode_needed): New function.
6843 (ix86_dirflag_mode_entry): Ditto.
6844 (ix86_mode_needed): Handle X86_DIRFLAG entity.
6845 (ix86_mode_after): Ditto.
6846 (ix86_mode_entry): Ditto.
6847 (ix86_mode_exit): Ditto.
6848 (ix86_emit_mode_set): Ditto.
6849 * config/i386/i386.md (strmov_singleop): Set
6850 ix86_optimize_mode_switching[X86_DIRFLAG] to 1 for TARGET_CLD.
6851 Do not set ix86_current_function_needs_cld.
6853 (strset_singleop): Ditto.
6855 (cmpstrnqi_nz_1): Ditto.
6856 (cmpstrnqi_1): Ditto.
6857 (strlenqi_1): Ditto.
6859 2016-06-06 Jakub Jelinek <jakub@redhat.com>
6861 PR tree-optimization/71259
6862 * tree-vect-slp.c (vect_get_constant_vectors): For
6863 VECTOR_BOOLEAN_TYPE_P, return all ones constant instead of
6864 one for constant op, and use COND_EXPR for non-constant.
6866 2016-06-06 David Malcolm <dmalcolm@redhat.com>
6868 * Makefile.in (OBJS): Add function-tests.o,
6869 hash-map-tests.o, hash-set-tests.o, rtl-tests.o,
6870 selftest-run-tests.o.
6871 (OBJS-libcommon): Add selftest.o.
6872 (OBJS-libcommon-target): Add selftest.o.
6873 (all.internal): Add "selftest".
6874 (all.cross): Likewise.
6875 (selftest): New phony target.
6876 (s-selftest): New target.
6877 (selftest-gdb): New phony target.
6878 (COLLECT2_OBJS): Add selftest.o.
6879 * bitmap.c: Include "selftest.h".
6880 (selftest::test_gc_alloc): New function.
6881 (selftest::test_set_range): New function.
6882 (selftest::test_clear_bit_in_middle): New function.
6883 (selftest::test_copying): New function.
6884 (selftest::test_bitmap_single_bit_set_p): New function.
6885 (selftest::bitmap_c_tests): New function.
6886 * common.opt (fself-test): New.
6887 * diagnostic-show-locus.c: Include "selftest.h".
6888 (make_range): New function.
6889 (test_range_contains_point_for_single_point): New function.
6890 (test_range_contains_point_for_single_line): New function.
6891 (test_range_contains_point_for_multiple_lines): New function.
6892 (assert_eq): New function.
6893 (test_get_line_width_without_trailing_whitespace): New function.
6894 (selftest::diagnostic_show_locus_c_tests): New function.
6895 * et-forest.c: Include "selftest.h".
6896 (selftest::test_single_node): New function.
6897 (selftest::test_simple_tree): New function.
6898 (selftest::test_disconnected_nodes): New function.
6899 (selftest::et_forest_c_tests): New function.
6900 * fold-const.c: Include "selftest.h".
6901 (selftest::assert_binop_folds_to_const): New function.
6902 (selftest::assert_binop_folds_to_nonlvalue): New function.
6903 (selftest::test_arithmetic_folding): New function.
6904 (selftest::fold_const_c_tests): New function.
6905 * function-tests.c: New file.
6906 * gimple.c: Include "selftest.h".
6907 Include "gimple-pretty-print.h".
6908 (selftest::verify_gimple_pp): New function.
6909 (selftest::test_assign_single): New function.
6910 (selftest::test_assign_binop): New function.
6911 (selftest::test_nop_stmt): New function.
6912 (selftest::test_return_stmt): New function.
6913 (selftest::test_return_without_value): New function.
6914 (selftest::gimple_c_tests): New function.
6915 * hash-map-tests.c: New file.
6916 * hash-set-tests.c: New file.
6917 * input.c: Include "selftest.h".
6918 (selftest::assert_loceq): New function.
6919 (selftest::test_accessing_ordinary_linemaps): New function.
6920 (selftest::test_unknown_location): New function.
6921 (selftest::test_builtins): New function.
6922 (selftest::test_reading_source_line): New function.
6923 (selftest::input_c_tests): New function.
6924 * rtl-tests.c: New file.
6925 * selftest-run-tests.c: New file.
6926 * selftest.c: New file.
6927 * selftest.h: New file.
6928 * spellcheck.c: Include "selftest.h".
6929 (selftest::levenshtein_distance_unit_test_oneway): New function,
6930 adapted from testsuite/gcc.dg/plugin/levenshtein_plugin.c.
6931 (selftest::levenshtein_distance_unit_test): Likewise.
6932 (selftest::spellcheck_c_tests): Likewise.
6933 * toplev.c: Include selftest.h.
6934 (toplev::run_self_tests): New.
6935 (toplev::main): Handle -fself-test.
6936 * toplev.h (toplev::run_self_tests): New.
6937 * tree.c: Include "selftest.h".
6938 (selftest::test_integer_constants): New function.
6939 (selftest::test_identifiers): New function.
6940 (selftest::test_labels): New function.
6941 (selftest::tree_c_tests): New function.
6942 * tree-cfg.c: Include "selftest.h".
6943 (selftest::push_fndecl): New function.
6944 (selftest::test_linear_chain): New function.
6945 (selftest::test_diamond): New function.
6946 (selftest::test_fully_connected): New function.
6947 (selftest::tree_cfg_c_tests): New function.
6948 * vec.c: Include "selftest.h".
6949 (selftest::safe_push_range): New function.
6950 (selftest::test_quick_push): New function.
6951 (selftest::test_safe_push): New function.
6952 (selftest::test_truncate): New function.
6953 (selftest::test_safe_grow_cleared): New function.
6954 (selftest::test_pop): New function.
6955 (selftest::test_safe_insert): New function.
6956 (selftest::test_ordered_remove): New function.
6957 (selftest::test_unordered_remove): New function.
6958 (selftest::test_block_remove): New function.
6959 (selftest::reverse_cmp): New function.
6960 (selftest::test_qsort): New function.
6961 (selftest::vec_c_tests): New function.c.
6962 * wide-int.cc: Include selftest.h and wide-int-print.h.
6963 (selftest::from_int <wide_int>): New function.
6964 (selftest::from_int <offset_int>): New function.
6965 (selftest::from_int <widest_int>): New function.
6966 (selftest::assert_deceq): New function.
6967 (selftest::assert_hexeq): New function.
6968 (selftest::test_printing <VALUE_TYPE>): New function template.
6969 (selftest::test_ops <VALUE_TYPE>): New function template.
6970 (selftest::test_comparisons <VALUE_TYPE>): New function template.
6971 (selftest::run_all_wide_int_tests <VALUE_TYPE>): New function
6973 (selftest::wide_int_cc_tests): New function.
6975 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6978 * ifcvt.c (noce_try_ifelse_collapse): New function.
6980 (noce_process_if_block): Call noce_try_ifelse_collapse.
6981 * simplify-rtx.c (simplify_cond_clz_ctz): New function.
6982 (simplify_ternary_operation): Use the above to simplify
6983 conditional CLZ/CTZ expressions.
6985 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6988 * config/aarch64/aarch64.md (ctz<mode>2): Convert to
6989 define_insn_and_split.
6991 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6994 * config/arm/arm.md (ctzsi2): Convert to define_insn_and_split.
6996 2016-06-06 Bernd Edlinger <bernd.edlinger@hotmail.de>
6999 * cfgexpand.c (expand_asm_loc): Remove handling for ADDR_EXPR.
7000 Implicitly clobber memory for basic asm with non-empty assembler
7001 string. Use targetm.md_asm_adjust also here.
7002 * compare-elim.c (arithmetic_flags_clobber_p): Use asm_noperands here.
7003 * final.c (final_scan_insn): Handle basic asm in PARALLEL block.
7004 * gimple.c (gimple_asm_clobbers_memory_p): Handle basic asm with
7005 non-empty assembler string.
7006 * ira.c (compute_regs_asm_clobbered): Use asm_noperands here.
7007 * recog.c (asm_noperands): Handle basic asm in PARALLEL block.
7008 (decode_asm_operands): Handle basic asm in PARALLEL block.
7009 (extract_insn): Handle basic asm in PARALLEL block.
7010 * doc/extend.texi: Mention new behavior of basic asm.
7011 * config/ia64/ia64 (rtx_needs_barrier): Handle ASM_INPUT here.
7012 * config/pa/pa.c (branch_to_delay_slot_p, branch_needs_nop_p,
7013 branch_needs_nop_p): Use asm_noperands.
7015 2016-06-06 Jose E. Marchesi <jose.marchesi@oracle.com>
7017 * config/sparc/sparc.md (cpu): Add niagara7 cpu type.
7018 Include the M7 SPARC DFA scheduler.
7019 New attribute v3pipe.
7020 Annotate insns with v3pipe where appropriate.
7021 Define cpu_feature vis4.
7022 Add lzd instruction type and set it on clzdi_sp64 and clzsi_sp64.
7023 Add (V8QI "8") to vbits.
7024 Add insns {add,sub}v8qi3
7025 Add insns ss{add,sub}v8qi3
7026 Add insns us{add,sub}{v8qi,v4hi}3
7027 Add insns {min,max}{v8qi,v4hi,v2si}3
7028 Add insns {minu,maxu}{v8qi,v4hi,v2si}3
7029 Add insns fpcmp{le,gt,ule,ug,ule,ugt}{8,16,32}_vis.
7030 * config/sparc/niagara4.md: Add a comment explaining the
7031 discrepancy between the documented latenty numbers and the
7033 * config/sparc/niagara7.md: New file.
7034 * configure.ac (HAVE_AS_SPARC5_VIS4): Define if the assembler
7035 supports SPARC5 and VIS 4.0 instructions.
7036 * configure: Regenerate.
7037 * config.in: Likewise.
7038 * config.gcc: niagara7 is a supported cpu in sparc*-*-* targets.
7039 * config/sparc/sol2.h (ASM_CPU32_DEFAUILT_SPEC): Set for
7040 TARGET_CPU_niagara7.
7041 (ASM_CPU64_DEFAULT_SPEC): Likewise.
7042 (CPP_CPU_SPEC): Handle niagara7.
7043 (ASM_CPU_SPEC): Likewise.
7044 * config/sparc/sparc-opts.h (processor_type): Add
7046 (mvis4): New option.
7047 * config/sparc/sparc.h (TARGET_CPU_niagara7): Define.
7048 (AS_NIAGARA7_FLAG): Define.
7049 (ASM_CPU64_DEFAULT_SPEC): Set for niagara7.
7050 (CPP_CPU64_DEFAULT_SPEC): Likewise.
7051 (CPP_CPU_SPEC): Handle niagara7.
7052 (ASM_CPU_SPEC): Likewise.
7053 * config/sparc/sparc.c (niagara7_costs): Define.
7054 (sparc_option_override): Handle niagara7 and adjust cache-related
7055 parameters with better values for niagara cpus. Also support VIS4.
7056 (sparc32_initialize_trampoline): Likewise.
7057 (sparc_use_sched_lookahead): Likewise.
7058 (sparc_issue_rate): Likewise.
7059 (sparc_register_move_cost): Likewise.
7060 (dump_target_flag_bits): Support VIS4.
7061 (sparc_vis_init_builtins): Likewise.
7062 (sparc_builtins): Likewise.
7063 * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__ for
7065 * config/sparc/driver-sparc.c (cpu_names): Add SPARC-M7 and
7067 * config/sparc/sparc.opt (sparc_processor_type): New value
7069 * config/sparc/visintrin.h (__attribute__): Prototypes for the
7071 * doc/invoke.texi (SPARC Options): Document -mcpu=niagara7 and
7073 * doc/extend.texi (SPARC VIS Built-in Functions): Document the
7076 2016-06-06 Jonathan Wakely <jwakely@redhat.com>
7078 * doc/sourcebuild.texi (Directives): Remove extra closing braces.
7080 2016-06-06 Richard Biener <rguenther@suse.de>
7082 PR tree-optimization/71398
7083 * tree-ssa-loop-ivcanon.c (unloop_loops): First unloop, then
7086 2016-06-05 James Bowman <james.bowman@ftdichip.com>
7088 * config/ft32/ft32.c (ft32_setup_incoming_varargs,
7089 ft32_expand_prolog, ft32_expand_epilogue):
7090 Handle pretend_args.
7091 * config/ft32/ft32.h: Remove OUTGOING_REG_PARM_STACK_SPACE.
7092 * config/ft32/ft32.md: Add pretend_returner.
7094 2016-06-06 Uros Bizjak <ubizjak@gmail.com>
7097 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
7098 Copy op1 RTX to avoid invalid sharing.
7099 (ix86_expand_vector_move_misalign): Ditto.
7101 2016-06-05 John David Anglin <danglin@gcc.gnu.org>
7103 * expr.c (move_by_pieces_d::generate): Mark mode parameter with
7106 2016-06-05 Jan Hubicka <hubicka@ucw.cz>
7108 * predict.c (predicted_by_loop_heuristics_p): New function.
7109 (predict_iv_comparison): Use it.
7110 (predict_loops): Walk from innermost loops; do not predict edges
7111 leaving multiple loops multiple times; implement
7112 PRED_LOOP_ITERATIONS_MAX heuristics.
7113 * predict.def (PRED_LOOP_ITERATIONS_MAX): New predictor.
7115 2016-06-05 Jan Hubicka <hubicka@ucw.cz>
7117 * cfg.c (check_bb_profile): Do not report mismatched profiles when
7118 only edges out of BB are EH edges.
7120 2016-06-04 Martin Sebor <msebor@redhat.com>
7121 Marcin Baczyński <marbacz@gmail.com>
7124 * doc/invoke.texi (-Wreturn-type): Mention not warning on return with
7125 a void expression in a void function.
7127 2016-06-03 Jan Hubicka <hubicka@ucw.cz>
7129 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Do not check
7130 aux; dump reasons of decisions.
7131 (should_duplicate_loop_header_p): Likewise.
7132 (do_while_loop_p): Likewise.
7133 (ch_base::copy_headers): Dump asi num insns duplicated.
7135 2016-06-04 Jakub Jelinek <jakub@redhat.com>
7137 PR tree-optimization/71405
7138 * tree-ssa.c (execute_update_addresses_taken): For clobber with
7139 incompatible type, build a new clobber with the right type instead
7140 of building a VIEW_CONVERT_EXPR around it.
7142 2016-06-04 Oleg Endo <olegendo@gcc.gnu.org>
7144 PR tree-optimization/52171
7145 * config/sh/sh.c (sh_use_by_pieces_infrastructure_p): Use
7146 by_pieces_ninsns instead of move_by_pieces_ninsns.
7148 2016-06-04 Oleg Endo <olegendo@gcc.gnu.org>
7150 * config/sh/sh.c (sh_print_operand_address): Don't use hardcoded 'r0'
7151 for reg+reg addressing mode.
7153 2016-06-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7155 * rs6000-c.c (c/c-tree.h): Add #include.
7156 (altivec_resolve_overloaded_builtin): Handle ARRAY_TYPE arguments
7157 in C++ when found in the base position of vec_ld or vec_st.
7159 2016-06-03 Jan Hubicka <hubicka@ucw.cz>
7161 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Avoid
7162 use of profile unless profile status is PROFILE_READ.
7163 * profile.c (compute_branch_probabilities): Set profile status
7164 only after reporting predictor hitrates.
7166 2016-06-03 Joseph Myers <joseph@codesourcery.com>
7170 * common.opt (ffp-int-builtin-inexact): New option.
7171 * doc/invoke.texi (-fno-fp-int-builtin-inexact): Document.
7172 * doc/md.texi (floor@var{m}2, btrunc@var{m}2, round@var{m}2)
7173 (ceil@var{m}2): Document dependence on this option.
7174 * ipa-inline-transform.c (inline_call): Handle
7175 flag_fp_int_builtin_inexact.
7176 * ipa-inline.c (can_inline_edge_p): Likewise.
7177 * config/i386/i386.md (rintxf2): Do not test
7178 flag_unsafe_math_optimizations.
7179 (rint<mode>2_frndint): New define_insn.
7180 (rint<mode>2): Do not test flag_unsafe_math_optimizations for 387
7181 or !flag_trapping_math for SSE. Just use gen_rint<mode>2_frndint
7182 for 387 instead of extending and truncating.
7183 (frndintxf2_<rounding>): Test flag_fp_int_builtin_inexact ||
7184 !flag_trapping_math instead of flag_unsafe_math_optimizations.
7185 Change to frndint<mode>2_<rounding>.
7186 (frndintxf2_<rounding>_i387): Likewise. Change to
7187 frndint<mode>2_<rounding>_i387.
7188 (<rounding_insn>xf2): Likewise.
7189 (<rounding_insn><mode>2): Test flag_fp_int_builtin_inexact ||
7190 !flag_trapping_math instead of flag_unsafe_math_optimizations for
7191 x87. Test TARGET_ROUND || !flag_trapping_math ||
7192 flag_fp_int_builtin_inexact instead of !flag_trapping_math for
7193 SSE. Use ROUND_NO_EXC in constant operand of
7194 gen_sse4_1_round<mode>2. Just use gen_frndint<mode>2_<rounding>
7195 for 387 instead of extending and truncating.
7197 2016-06-03 H.J. Lu <hongjiu.lu@intel.com>
7198 Julia Koval <julia.koval@intel.com>
7210 * config/i386/i386-protos.h (ix86_epilogue_uses): New prototype.
7211 * config/i386/i386.c (ix86_conditional_register_usage): Preserve
7212 all registers, except for function return registers if there are
7213 no caller-saved registers.
7214 (ix86_set_func_type): New function.
7215 (ix86_set_current_function): Call ix86_set_func_type to set
7216 no_caller_saved_registers and func_type. Call reinit_regs if
7217 caller-saved registers are changed. Don't allow MPX, SSE, MMX
7218 nor x87 instructions in interrupt handler nor function with
7219 no_caller_saved_registers attribute.
7220 (ix86_function_ok_for_sibcall): Return false if there are no
7221 caller-saved registers.
7222 (type_natural_mode): Don't warn ABI change for MMX in interrupt
7224 (ix86_function_arg_advance): Skip for callee in interrupt handler.
7225 (ix86_function_arg): Return special arguments in interrupt handler.
7226 (ix86_promote_function_mode): Promote pointer to word_mode only
7227 for normal functions.
7228 (ix86_can_use_return_insn_p): Don't use `ret' instruction in
7230 (ix86_epilogue_uses): New function.
7231 (ix86_hard_regno_scratch_ok): Likewise.
7232 (ix86_save_reg): Preserve all registers in interrupt handler
7233 after reload. Preserve all registers, except for function return
7234 registers, if there are no caller-saved registers after reload.
7235 (find_drap_reg): Always use callee-saved register if there are
7236 no caller-saved registers.
7237 (ix86_minimum_incoming_stack_boundary): Return MIN_STACK_BOUNDARY
7238 for interrupt handler.
7239 (ix86_expand_prologue): Don't allow DRAP in interrupt handler.
7240 Emit cld instruction if stringops are used in interrupt handler
7241 or interrupt handler isn't a leaf function.
7242 (ix86_expand_epilogue): Generate interrupt return for interrupt
7243 handler and pop the 'ERROR_CODE' off the stack before interrupt
7244 return in exception handler.
7245 (ix86_expand_call): Disallow calling interrupt handler directly.
7246 If there are no caller-saved registers, mark all registers that
7247 are clobbered by the call which returns as clobbered.
7248 (ix86_handle_no_caller_saved_registers_attribute): New function.
7249 (ix86_handle_interrupt_attribute): Likewise.
7250 (ix86_attribute_table): Add interrupt and no_caller_saved_registers
7252 (TARGET_HARD_REGNO_SCRATCH_OK): Likewise.
7253 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use argument
7254 accumulation in interrupt function if stack may be realigned to
7256 (EPILOGUE_USES): New.
7257 (function_type): New enum.
7258 (machine_function): Add func_type and no_caller_saved_registers.
7259 * config/i386/i386.md (UNSPEC_INTERRUPT_RETURN): New.
7260 (interrupt_return): New pattern.
7261 * doc/extend.texi: Document x86 interrupt and
7262 no_caller_saved_registers attributes.
7264 2016-06-03 Bernd Schmidt <bschmidt@redhat.com>
7266 PR tree-optimization/52171
7267 * builtins.c (expand_cmpstrn_or_cmpmem): Delete, moved elsewhere.
7268 (expand_builtin_memcmp): New arg RESULT_EQ. All callers changed.
7269 Look for constant strings. Move some code to emit_block_cmp_hints
7271 * builtins.def (BUILT_IN_MEMCMP_EQ): New.
7272 * defaults.h (COMPARE_MAX_PIECES): New macro.
7273 * expr.c (move_by_pieces_d, store_by_pieces_d): Remove old structs.
7274 (move_by_pieces_1, store_by_pieces_1, store_by_pieces_2): Remvoe.
7275 (clear_by_pieces_1): Don't declare. Move definition before use.
7276 (can_do_by_pieces): New static function.
7277 (can_move_by_pieces): Use it. Return bool.
7278 (by_pieces_ninsns): Renamed from move_by_pieces_ninsns. New arg
7279 OP. All callers changed. Handle COMPARE_BY_PIECES.
7280 (class pieces_addr); New.
7281 (pieces_addr::pieces_addr, pieces_addr::decide_autoinc,
7282 pieces_addr::adjust, pieces_addr::increment_address,
7283 pieces_addr::maybe_predec, pieces_addr::maybe_postinc): New member
7285 (class op_by_pieces_d): New.
7286 (op_by_pieces_d::op_by_pieces_d, op_by_pieces_d::run): New member
7288 (class move_by_pieces_d, class compare_by_pieces_d,
7289 class store_by_pieces_d): New subclasses of op_by_pieces_d.
7290 (move_by_pieces_d::prepare_mode, move_by_pieces_d::generate,
7291 move_by_pieces_d::finish_endp, store_by_pieces_d::prepare_mode,
7292 store_by_pieces_d::generate, store_by_pieces_d::finish_endp,
7293 compare_by_pieces_d::generate, compare_by_pieces_d::prepare_mode,
7294 compare_by_pieces_d::finish_mode): New member functions.
7295 (compare_by_pieces, emit_block_cmp_via_cmpmem): New static
7297 (expand_cmpstrn_or_cmpmem): Moved here from builtins.c.
7298 (emit_block_cmp_hints): New function.
7299 (move_by_pieces, store_by_pieces, clear_by_pieces): Rewrite to just
7300 use the newly defined classes.
7301 * expr.h (by_pieces_constfn): New typedef.
7302 (can_store_by_pieces, store_by_pieces): Use it in arg declarations.
7303 (emit_block_cmp_hints, expand_cmpstrn_or_cmpmem): Declare.
7304 (move_by_pieces_ninsns): Don't declare.
7305 (can_move_by_pieces): Change return value to bool.
7306 * target.def (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): Update docs.
7307 (compare_by_pieces_branch_ratio): New hook.
7308 * target.h (enum by_pieces_operation): Add COMPARE_BY_PIECES.
7309 (by_pieces_ninsns): Declare.
7310 * targethooks.c (default_use_by_pieces_infrastructure_p): Handle
7312 (default_compare_by_pieces_branch_ratio): New function.
7313 * targhooks.h (default_compare_by_pieces_branch_ratio): Declare.
7314 * doc/tm.texi.in (STORE_MAX_PIECES, COMPARE_MAX_PIECES): Document.
7315 * doc/tm.texi: Regenerate.
7316 * tree-ssa-strlen.c: Include "builtins.h".
7317 (handle_builtin_memcmp): New static function.
7318 (strlen_optimize_stmt): Call it for BUILT_IN_MEMCMP.
7319 * tree.c (build_common_builtin_nodes): Create __builtin_memcmp_eq.
7321 2016-06-03 Alan Hayward <alan.hayward@arm.com>
7323 * tree-vect-stmts.c (vect_stmt_relevant_p): Do not vectorize non live
7324 relevant stmts which are simple and invariant.
7325 * tree-vect-loop.c (vectorizable_live_operation): Check relevance
7326 instead of simple and invariant
7328 2016-06-03 Alan Hayward <alan.hayward@arm.com>
7330 * tree-vect-loop.c (vect_analyze_loop_operations): Allow live stmts.
7331 (vectorizable_reduction): Check for new relevant state.
7332 (vectorizable_live_operation): vectorize live stmts using
7333 BIT_FIELD_REF. Remove special case for gimple assigns stmts.
7334 * tree-vect-stmts.c (is_simple_and_all_uses_invariant): New function.
7335 (vect_stmt_relevant_p): Check for stmts which are only used live.
7336 (process_use): Use of a stmt does not inherit it's live value.
7337 (vect_mark_stmts_to_be_vectorized): Simplify relevance inheritance.
7338 (vect_analyze_stmt): Check for new relevant state.
7339 * tree-vectorizer.h (vect_relevant): New entry for a stmt which is used
7340 outside the loop, but not inside it.
7342 2016-06-03 Alan Hayward <alan.hayward@arm.com>
7344 * tree-vectorizer.h (vect_get_vec_def_for_operand_1): New.
7345 * tree-vect-stmts.c (vect_get_vec_def_for_operand_1): New.
7346 (vect_get_vec_def_for_operand): Split out code.
7348 2016-06-03 Segher Boessenkool <segher@kernel.crashing.org>
7350 * config/rs6000/rs6000.md (define_peepholes for two mfcr's): Delete.
7352 2016-06-03 Alan Hayward <alan.hayward@arm.com>
7354 * tree-vect-stmts.c (vectorizable_call) Remove GOMP_SIMD_LANE code.
7356 2016-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7358 * config/arm/thumb1.md (*thumb1_mulsi3): Fix typos in comment.
7360 2016-06-03 Jakub Jelinek <jakub@redhat.com>
7363 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): If redirecting
7364 to noreturn e->callee->decl that has void return type and void
7365 arguments, adjust gimple_call_fntype and remove lhs even if it had
7366 previously addressable type.
7368 2016-06-02 Jeff Law <law@redhat.com>
7370 PR tree-optimization/71328
7371 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix off-by-one
7372 error when checking for a jump back onto the copied path.
7374 2016-06-02 David Malcolm <dmalcolm@redhat.com>
7376 * config/microblaze/microblaze.c (get_branch_target): Add return
7377 NULL_RTX for the non-CALL_P case.
7378 (insert_wic_for_ilb_runout): Remove unused local "wic_addr1".
7379 (insert_wic): Remove unused local "j".
7381 2016-06-02 Martin Liska <mliska@suse.cz>
7383 * predict.def: Fix typo in PRED_FORTRAN_FAIL_IO display name.
7385 2016-06-02 H.J. Lu <hongjiu.lu@intel.com>
7386 Julia Koval <julia.koval@intel.com>
7388 * function.c (assign_parm_setup_stack): Force source into a
7390 * target.def (function_incoming_arg): Update documentation to
7391 allow arbitrary address computation based on hard register.
7392 * doc/tm.texi: Regenerated.
7394 2016-06-02 Martin Liska <mliska@suse.cz>
7396 * predict.c (combine_predictions_for_bb): Fix first match in
7397 cases where a first predictor contains more than one occurence
7398 in list of predictors. Take the best value in such case.
7400 2016-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7402 PR rtl-optimization/71295
7403 * rtlanal.c (subreg_get_info): If taking a subreg at the requested
7404 offset would go over the size of the inner mode reject it.
7406 2016-06-02 Jakub Jelinek <jakub@redhat.com>
7408 * config/i386/sse.md (*vec_concatv4si): Use v=v,v instead of
7409 x=x,x and v=v,m instead of x=x,m.
7411 * config/i386/sse.md (*vec_concatv2si_sse4_1): Add avx512dq v=Yv,rm
7412 alternative. Change x=x,x alternative to v=Yv,Yv and x=rm,C
7413 alternative to v=rm,C.
7415 * config/i386/sse.md (*vec_concatv2di): Add x86_avx512dq v=Yv,rm
7416 alternative. Change x=xm,C alternative to v=vm,C, x=x,x alternative
7417 to v=Yv,Yv and x=x,m to v=v,m. Use maybe_evex prefix attribute
7418 instead of vex for the last two above mentioned alternatives.
7420 2016-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7423 * config/arm/arm.c (arm_output_multireg_pop): Guard "pop" on update.
7425 2016-06-02 Segher Boessenkool <segher@kernel.crashing.org>
7427 * config/rs6000/dfp.md (trunctddd2): Correct the "length" attribute.
7429 2016-06-01 David Malcolm <dmalcolm@redhat.com>
7431 * config/rl78/rl78.c (rl78_expand_prologue): Convert local
7432 from int to unsigned.
7434 2016-05-31 Michael Meissner <meissner@linux.vnet.ibm.com>
7436 * config/rs6000/vsx.md (vsx_splat_<mode>, V2DI/V2DF): Simplify
7437 alternatives, eliminating preferred register class. Add support
7438 for the MTVSRDD instruction in ISA 3.0.
7439 (vsx_splat_v4si_internal): Use splat_input_operand instead of
7440 reg_or_indexed_operand.
7441 (vsx_splat_v4sf_internal): Likewise.
7443 2016-05-31 Michael Meissner <meissner@linux.vnet.ibm.com>
7446 * config/rs6000/vsx.md (xxspltib_<mode>_nosplit): Add alternatives
7447 for loading up all 0's or all 1's.
7449 2016-06-01 Thomas Preud'homme <thomas.preudhomme@arm.com>
7451 * doc/sourcebuild.texi (arm_acq_rel): Document new effective target.
7453 2016-06-01 Eduard Sanou <dhole@openmailbox.org>
7455 * doc/cppenv.texi: Note that the `%s` in `date` is a non-standard
7457 * gcc.c (driver_handle_option): Call set_source_date_epoch_envvar.
7458 * gcc.c (set_source_date_epoch_envvar): New function, sets
7459 the SOURCE_DATE_EPOCH environment variable to the current time.
7461 2016-06-01 Eric Botcazou <ebotcazou@adacore.com>
7463 * tree-vect-loop.c (vect_determine_vectorization_factor): Also compute
7464 the factor for live Phi nodes.
7466 2016-06-01 Jan Hubicka <hubicka@ucw.cz>
7468 * loop-dolop.c (doloop_optimize): Us likely max iteration bound.
7469 * tree-parloops.c (parallelize_loops): likewise.
7470 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop,
7471 tree_unswitch_outer_loop): likewise.
7473 2016-06-01 Jakub Jelinek <jakub@redhat.com>
7476 * gimplify.c (gimplify_omp_for): Temporarily clear gimplify_omp_ctxp
7477 around creation of the temporary.
7479 2016-06-01 Richard Biener <rguenther@suse.de>
7481 PR tree-optimization/71366
7482 * tree-ssa-loop-ivcanon.c (edges_to_remove): New global.
7483 (unloop_loops): Move removing edges here ...
7484 (try_unroll_loop_completely): ... from here.
7485 (try_peel_loop): ... and here.
7486 (tree_unroll_loops_completely_1): Track parent loops via
7487 bitmap of header BBs.
7488 (tree_unroll_loops_completely): Adjust for that.
7490 2016-06-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
7492 * config/rs6000/altivec.h (vec_slv): New macro.
7493 (vec_srv): New macro.
7494 * config/rs6000/altivec.md (UNSPEC_VSLV): New value.
7495 (UNSPEC_VSRV): New value.
7498 * config/rs6000/rs6000-builtin.def (vslv): New builtin definition.
7499 (vsrv): New builtin definition.
7500 * config/rs6000/rs6000-c.c (P9V_BUILTIN_VSLV): Macro expansion to
7501 define argument types for new builtin.
7502 (P9V_BUILTIN_VSRV): Macro expansion to define argument types for
7504 * doc/extend.texi: Document the new vec_vslv and vec_srv built-in
7507 2016-06-01 Uros Bizjak <ubizjak@gmail.com>
7508 Jocelyn Mayer <l_indien@magic.fr>
7511 * config/i386/driver-i386.c (host_detect_local_cpu): Correctly
7512 detect processor family for signature_CENTAUR_ebx.
7513 <case PROCESSOR_I486>: Pass c3, winchip2 or winchip-c6 for
7514 signature_CENTAUR_ebx.
7515 <case PROCESSOR _PENTIUMPRO>: Pass c3-2 for signature_CENTAUR_ebx.
7516 <default>: Pass x86-64 for has_longmode.
7518 2016-06-01 Nathan Sidwell <nathan@acm.org>
7520 * config/nvptx/nvptx.c (nvptx_assemble_undefined_decl): Reject
7523 2016-06-01 Richard Biener <rguenther@suse.de>
7525 PR tree-optimization/71261
7526 * tree-vect-patterns.c (check_bool_pattern): Gather a hash-set
7527 of stmts successfully put in the bool pattern. Remove
7528 single-use restriction.
7529 (adjust_bool_pattern_cast): Add cast at the use site via the
7530 pattern def sequence.
7531 (adjust_bool_pattern): Remove recursion, maintain a hash-map
7532 of patterned defs. Use the pattern def seqence instead of
7533 multiple independent patterns.
7534 (sort_after_uid): New qsort compare function.
7535 (adjust_bool_stmts): New function to process stmts in the bool
7536 pattern in IL order.
7537 (vect_recog_bool_pattern): Adjust.
7538 * tree-if-conv.c (ifcvt_split_def_stmt): Remove.
7539 (ifcvt_walk_pattern_tree): Likewise.
7540 (stmt_is_root_of_bool_pattern): Likewise.
7541 (ifcvt_repair_bool_pattern): Likewise.
7542 (tree_if_conversion): Do not call ifcvt_repair_bool_pattern.
7544 2016-06-01 Jan Hubicka <hubicka@ucw.cz>
7546 * loop-unroll.c (decide_unroll_constant_iterations,
7547 decide_unroll_runtime_iterations, decide_unroll_stupid): Use
7548 likely upper bounds.
7549 * loop-iv.c (find_simple_exit): Dump likely upper bounds.
7551 2016-06-01 Thomas Schwinge <thomas@codesourcery.com>
7553 * tree-core.h (enum omp_clause_code): Remove
7554 OMP_CLAUSE_DEVICE_RESIDENT. Adjust all users.
7556 2016-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7558 * config/arm/sync.md (arm_store_exclusive<mode>):
7559 Use 'H' output modifier on operands[2] rather than creating a new
7560 entry in out-of-bounds memory of the operands array.
7561 (arm_store_release_exclusivedi): Likewise.
7563 2016-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7565 * config/arm/arm.c (arm_fusion_enabled_p): New function.
7566 * config/arm/arm-protos.h (arm_fusion_enabled_p): Declare prototype.
7567 * config/arm/crypto.md (crypto_<crypto_pattern>, CRYPTO_UNARY):
7568 Add "=w,0" alternative. Enable it when AES/AESMC fusion is enabled.
7570 2016-06-01 Eric Botcazou <ebotcazou@adacore.com>
7572 * tree-vect-loop.c (vect_determine_vectorization_factor): Also take
7573 into account live statements for mask producers.
7575 2016-06-01 Richard Biener <rguenther@suse.de>
7577 PR tree-optimization/71311
7578 * match.pd (@0 < @1 && @0 < @2 -> @0 < min(@1,@2)): Add :c and
7579 restrict to non-INTEGER_CST @0.
7581 2016-06-01 Richard Biener <rguenther@suse.de>
7583 * match.pd ((A & B) - (A & ~B) -> B - (A ^ B)): Add missing :c.
7584 (relational patterns): Use :c to avoid pattern duplications.
7586 2016-06-01 Richard Biener <rguenther@suse.de>
7588 * genmatch.c (comparison_code_p): New predicate.
7589 (swap_tree_comparison): New function.
7590 (commutate): Add for_vec parameter to append new for entries.
7591 Support commutating relational operators by swapping it alongside
7593 (lower_commutative): Adjust.
7594 (dt_simplify::gen): Do not pass artificial operators to gen
7596 (decision_tree::gen): Do not add artificial operators as parameters.
7597 (parser::parse_expr): Verify operator commutativity when :c is
7598 applied. Allow :C to override this.
7599 * match.pd: Adjust patterns to use :C instead of :c where required.
7601 2016-06-01 Patrick Palka <ppalka@gcc.gnu.org>
7603 PR tree-optimization/71077
7604 * tree-ssa-threadedge.c (simplify_control_stmt_condition_1): In
7605 the combining step, use boolean_false_node and boolean_true_node
7606 as the designated false/true return values.
7608 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
7610 * predict.def (PRED_LOOP_EXTRA_EXIT): Define.
7611 * predict.c (predict_iv_comparison): Also check PRED_LOOP_EXTRA_EXIT.
7612 (predict_extra_loop_exits): Use PRED_LOOP_EXTRA_EXIT instead of
7615 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
7617 * doc/invoke.texi (-frename-registers): Drop -fpeel-loops from list
7618 of flags impliying the register renaming.
7619 * toplev.c (process_options): Do not imply flag_rename_registers with
7622 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
7624 * config/sh/sh.h (ASM_OUTPUT_SYMBOL_REF): Remove macro and use the
7625 default implementation.
7627 2016-05-31 Nathan Sidwell <nathan@acm.org>
7629 * dwarf2out.c (cur_line_info_table): Add GTY marker.
7631 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
7633 * config/sh/constraints.md (b): Remove constraint.
7634 * config/sh/predicates.md (arith_reg_operand): Remove
7636 * config/sh/sh-modes.def (PDI): Remove.
7637 * config/sh/sh.c (sh_target_reg_class,
7638 sh_optimize_target_register_callee_saved): Remove functions.
7639 (sh_option_override): Don't set MASK_SAVE_ALL_TARGET_REGS.
7640 (sh_expand_epilogue): Update comment.
7641 (sh_hard_regno_mode_ok, sh_register_move_cost, calc_live_regs,
7642 sh_secondary_reload): Remove TARGET_REGS related code.
7643 * config/sh/sh.h (FIRST_TARGET_REG, LAST_TARGET_REG,
7644 TARGET_REGISTER_P): Remove macros.
7645 (SH_DBX_REGISTER_NUMBER, REG_ALLOC_ORDER): Remove target regs.
7646 * config/sh/sh.md (PR_MEDIA_REG, T_MEDIA_REG, FR23_REG, TR0_REG,
7647 TR1_REG, TR2_REG): Remove constants.
7648 * config/sh/sh.opt (SAVE_ALL_TARGET_REGS): Remove.
7650 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
7652 * config/sh/sh.md (adddi3, subdi3, negdi2, abs<mode>2): Remove
7653 define_expand patterns.
7654 (adddi3_compact): Rename to adddi3.
7655 (subdi3_compact): Rename to subdi3.
7656 (*negdi2): Rename to negdi2.
7657 (*abs<mode>2): Rename to abs<mode>2.
7659 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
7661 * config/rx/rx.md (FETCHOP_NO_MINUS): New code iterator.
7662 (atomic_<fetchop_name>_fetchsi): Extract minus operator into ...
7663 (atomic_sub_fetchsi): ... this new pattern.
7664 (mvtc): Add CC_REG clobber.
7666 2016-05-31 Marek Polacek <polacek@redhat.com>
7668 * gimplify.c (gimplify_switch_expr): Also handle GIMPLE_TRY.
7670 2016-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7672 * config/aarch64/aarch64.c (aarch_macro_fusion_pair_p): Use
7673 aarch64_fusion_enabled_p to check for fusion capabilities.
7675 2016-05-31 Richard Biener <rguenther@suse.de>
7677 PR tree-optimization/71352
7678 * tree-ssa-reassoc.c (zero_one_operation): Handle op equal to
7679 minus one and a negate.
7681 2016-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7683 * config/aarch64/aarch64.c (aarch64_simd_attr_length_move): Delete.
7684 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
7686 * config/aarch64/iterators.md (insn_count): Add descriptive comment.
7687 * config/aarch64/aarch64-simd.md (*aarch64_mov<mode>, VSTRUCT modes):
7688 Remove use of aarch64_simd_attr_length_move, set length attribute
7690 (*aarch64_be_movoi): Likewise.
7691 (*aarch64_be_movci): Likewise.
7692 (*aarch64_be_movxi): Likewise.
7694 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
7696 * loop-init.c (gate): Do not enale RTL loop unroller with -fpeel-loops.
7697 It no longer does that.
7698 * toplev.c (process_options): Do not enable flag_web with -fpeel-loops.
7700 2016-05-31 Wladimir J. van der Laan <laanwj@gmail.com>
7702 * config/aarch64/arm_neon.h (vdupb_laneq_s8): Remove spurious
7703 attribute __unused__.
7705 2016-05-31 Thomas Preud'homme <thomas.preudhomme@arm.com>
7707 * config/arm/arm-protos.h (arm_arch_thumb1): Declare.
7708 * config/arm/arm.c (arm_arch_thumb1): Define.
7709 (arm_option_override): Initialize arm_arch_thumb1.
7710 * config/arm/arm.h (arm_arch_thumb1): Declare.
7711 (TARGET_ARM_ARCH_ISA_THUMB): Use arm_arch_thumb to determine if target
7712 support Thumb-1 ISA.
7714 2016-05-31 Kirill Yukhin <kirill.yukhin@intel.com>
7717 * config/i386/sse.md (define_insn_and_split "*vec_extractv4sf_0"): Use
7718 `Yv' for scalar operand.
7720 2016-05-31 Tom de Vries <tom@codesourcery.com>
7722 PR tree-optimization/69068
7723 * graphite-isl-ast-to-gimple.c (copy_bb_and_scalar_dependences): Handle
7724 phis with more than two args.
7726 2016-05-30 Andreas Tobler <andreast@gcc.gnu.org>
7728 * config.gcc: Move hard float support for arm*hf*-*-freebsd* into
7729 armv6*-*-freebsd* for FreeBSD 11. Eliminate the arm*hf*-*-freebsd*
7732 2016-05-30 Jose E. Marchesi <jose.marchesi@oracle.com>
7734 * config.gcc (sparc*-*-*): Support cpu_32, cpu_64, tune_32 and
7736 * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
7738 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Add entries for
7739 cpu_32, cpu_64, tune_32 and tune_64.
7740 * config/sparc/sol2.h (OPTION_DEFAULT_SPECS): Likewise.
7742 2016-05-30 Uros Bizjak <ubizjak@gmail.com>
7744 * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
7746 2016-05-30 Andi Kleen <ak@linux.intel.com>
7748 * auto-profile.c (read_profile): Replace asserts with errors
7749 when file does not exist.
7750 * gcov-io.c (gcov_read_words): Dito.
7752 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
7754 * tree-cfg.c (print_loop): Print likely upper bounds.
7756 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
7758 * doc/invoke.texi (-fpeel-loops,-O3): Update documentation.
7759 * opts.c (default_options): Enable peel loops at -O3.
7760 * tree-ssa-loop-ivcanon.c (peeled_loops): New static var.
7761 (try_peel_loop): Do not re-peel already peeled loops;
7762 use likely upper bounds; fix profile updating.
7763 (pass_complete_unroll::execute): Initialize peeled_loops.
7765 2016-05-30 Martin Liska <mliska@suse.cz>
7767 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Scale
7768 computed costs by frequency of BB they belong to.
7769 (get_scaled_computation_cost_at): New function.
7771 2016-05-30 Alexander Monakov <amonakov@ispras.ru>
7772 Marc Glisse <marc.glisse@inria.fr>
7774 PR tree-optimization/71289
7775 * match.pd (-1 / B < A, A > -1 / B): New transformations.
7777 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
7779 * tree-vect-loop.c (vect_transform_loop): Update likely bounds.
7781 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
7783 * tree-ssa-loop-ivcanon.c (try_peel_loop): Correctly set wont_exit
7784 for peeled copies; avoid underflow when updating estimates; correctly
7787 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
7789 * tree-ssa-reassoc.ci (swap_ops_for_binary_stmt): Fix typo from commit
7790 r236875. Corrected oe3 to oe2 as obvious.
7792 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
7796 * tree-ssa-reassoc.c (insert_stmt_before_use): Use find_insert_point so
7797 that inserted stmt will not dominate stmts that defines its operand.
7798 (rewrite_expr_tree): Add stmt_to_insert before adding the use stmt.
7799 (rewrite_expr_tree_parallel): Likewise.
7801 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
7804 * tree-ssa-reassoc.c (swap_ops_for_binary_stmt): Fix swap such that
7805 all fields including stmt_to_insert are swapped.
7807 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
7809 * predict.h (force_edge_cold): Declare.
7810 * predict.c (force_edge_cold): New function.
7811 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Fix profile
7813 (canonicalize_loop_induction_variables): Fix formating.
7815 2016-05-30 Eric Botcazou <ebotcazou@adacore.com>
7817 * config/visium/visium.c (visium_split_double_add): Minor tweaks.
7818 (visium_expand_copysign): Use gen_int_mode directly.
7819 (visium_compute_frame_size): Minor tweaks.
7821 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
7823 * tree-vect-loop.c (vect_analyze_loop_2): Use
7824 likely_max_stmt_executions_int.
7826 2016-05-30 Tom de Vries <tom@codesourcery.com>
7828 PR tree-optimization/69067
7829 * graphite-isl-ast-to-gimple.c (get_def_bb_for_const): Remove assert.
7831 2016-05-29 Uros Bizjak <ubizjak@gmail.com>
7834 * config/i386/sync.md (define_peephole2 atomic_storedi_fpu):
7835 New peepholes to remove unneeded fild/fistp pairs.
7836 (define_peephole2 atomic_loaddi_fpu): Ditto.
7838 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
7840 * predict.c (maybe_hot_frequency_p): Avoid division.
7842 2016-05-28 Gerald Pfeifer <gerald@pfeifer.com>
7844 * doc/install.texi: Use https for shop.fsf.org.
7846 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
7848 * tree-ssa-loop-ivopts.c (estimated_stmt_executions_int): Use
7849 likely_max_stmt_executions_int.
7851 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
7853 * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Use
7854 likely_max_stmt_executions_int.
7856 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
7858 * profile.c (compute_branch_probabilities): Do not report hitrates
7860 (branch_prob): Report hitrates here.
7861 * predict.c (gimple_predict_edge): Do not assert profile status;
7862 fix formatting issues.
7864 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
7866 * predict.c (edge_predicted_by_p): New function.
7867 (predict_paths_for_bb): Do not put multiple predictions of the same type
7870 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
7872 * tree-ssa-loop-niter.c (number_of_iterations_exit): Revert accidental
7875 2016-05-28 Alan Modra <amodra@gmail.com>
7877 * dominance.c (verify_dominators): Don't segfault on NULL imm_bb.
7879 2016-05-28 Alan Modra <amodra@gmail.com>
7881 PR rtl-optimization/71275
7882 * ira.c (ira): Free dominance info.
7884 2016-05-27 Gerald Pfeifer <gerald@pfeifer.com>
7886 * doc/sourcebuild.texi: New address for upstream Go repository.
7888 2016-05-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
7890 * config/arm/arm.h (TARGET_ARM_V6M): Remove.
7891 (TARGET_ARM_V7M): Likewise.
7893 2016-05-26 Jeff Law <law@redhat.com>
7895 * tree-ssa-threadedge.c: Remove include of tree-ssa-threadbackward.h.
7896 (thread_across_edge): Remove calls to find_jump_threads_backwards.
7897 * passes.def: Add jump threading passes before DOM/VRP.
7898 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Change
7899 argument to a basic block from an edge. Remove tests which are
7901 (pass_data_thread_jumps, class pass_thread_jumps): New.
7902 (pass_thread_jumps::gate, pass_thread_jumps::execute): New.
7903 (make_pass_thread_jumps): Likewise.
7904 * tree-pass.h (make_pass_thread_jumps): Declare.
7906 2016-05-27 Eric Botcazou <ebotcazou@adacore.com>
7908 * config/visium/visium-protos.h (split_double_move): Rename into...
7909 (visium_split_double_move): ...this.
7910 (visium_split_double_add): Declare.
7911 * config/visium/visium.c (split_double_move): Rename into...
7912 (visium_split_double_move): ...this.
7913 (visium_split_double_add): New function.
7914 (visium_expand_copysign): Renumber operands for consistency.
7915 * config/visium/visium.md (DImode move splitter): Adjust to renaming.
7916 (DFmode move splitter): Likewise.
7917 (*addi3_insn): Split by means of visium_split_double_add.
7918 (*adddi3_insn_flags): Delete.
7919 (*plus_plus_sltu<subst_arith>): New insn.
7920 (*subdi3_insn): Split by means of visium_split_double_add.
7921 (subdi3_insn_flags): Delete.
7922 (*minus_minus_sltu<subst_arith>): New insn.
7923 (*negdi2_insn): Split by means of visium_split_double_add.
7924 (*negdi2_insn_flags): Delete.
7926 2016-05-27 Ulrich Weigand <uweigand@de.ibm.com>
7928 * configure.ac: Treat a --with-headers option without argument
7929 the same as the default (i.e. consult sys-include directory).
7930 * configure: Regenerate.
7932 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7934 * config/aarch64/aarch64.c (aarch64_fusion_enabled_p): New function.
7935 * config/aarch64/aarch64-protos.h (aarch64_fusion_enabled_p): Declare
7937 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aesmc_op>v16qi):
7938 Add "=w,0" alternative. Enable it when AES/AESMC fusion is enabled.
7940 2016-05-27 Jiong Wang <jiong.wang@arm.com>
7943 * config/aarch64/aarch64.c (aarch64_expand_builtin_va_start): Honor
7944 tree-stdarg analysis results.
7945 (aarch64_setup_incoming_varargs): Likewise.
7947 2016-05-27 Jiong Wang <jiong.wang@arm.com>
7949 * config/aarch64/aarch64.c (aarch64_build_builtin_va_list): Initialize
7950 va_list_gpr_counter_field and va_list_fpr_counter_field.
7952 2016-05-27 Wilco Dijkstra <wdijkstr@arm.com>
7955 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Remove.
7956 * config/aarch64/aarch64.c
7957 (aarch64_cannot_change_mode_class): Remove function.
7958 * config/aarch64/aarch64-protos.h
7959 (aarch64_cannot_change_mode_class): Remove.
7961 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
7963 * cfgloop.c (record_niter_bound): Record likely upper bounds.
7964 (likely_max_stmt_executions_int, get_likely_max_loop_iterations,
7965 get_likely_max_loop_iterations_int): New.
7966 * cfgloop.h (struct loop): Add nb_iterations_likely_upper_bound,
7967 any_likely_upper_bound.
7968 (get_likely_max_loop_iterations_int, get_likely_max_loop_iterations):
7970 * cfgloopmanip.c (copy_loop_info): Copy likely upper bounds.
7971 * loop-unroll.c (unroll_loop_constant_iterations): Update likely
7973 (unroll_loop_constant_iterations): Likewise.
7974 (unroll_loop_runtime_iterations): Likewise.
7975 * lto-streamer-in.c (input_cfg): Stream likely upper bounds.
7976 * lto-streamer-out.c (output_cfg): Likewise.
7977 * tree-ssa-loop-ivcanon.c (try_peel_loop): Update likely upper
7979 (canonicalize_loop_induction_variables): Dump likely upper bounds.
7980 * tree-ssa-loop-niter.c (record_estimate): Record likely upper bounds.
7981 (likely_max_loop_iterations): New.
7982 (likely_max_loop_iterations_int): New.
7983 (likely_max_stmt_executions): New.
7984 * tree-ssa-loop-niter.h (likely_max_loop_iterations,
7985 likely_max_loop_iterations_int, likely_max_stmt_executions_int,
7986 likely_max_stmt_executions): Declare.
7988 2016-05-27 Marek Polacek <polacek@redhat.com>
7991 * gimple-fold.c (gimple_fold_call): Check that LHS is not null.
7993 2016-05-27 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7995 * config/s390/s390.md (2x risbg splitters): Use
7996 reg_overlap_mentioned_p instead of rtx_equal_p.
7998 2016-05-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
8000 * combine.c (make_compound_operation): Take known zero bits into
8001 account when checking for possible zero_extend.
8003 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8005 * config/aarch64/aarch64.md (ashl<mode>3, SHORT modes):
8006 Use const_int_operand for operand 2 predicate. Simplify expand code
8009 2016-05-27 Ilya Enkovich <ilya.enkovich@intel.com>
8012 * fold-const.c (fold_ternary_loc): Don't fold VEC_COND_EXPR
8015 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8017 * config/aarch64/aarch64-modes.def (CC_ZESWP, CC_SESWP): Delete.
8018 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Remove condition
8019 that returns CC_SESWPmode and CC_ZESWPmode.
8020 (aarch64_get_condition_code_1): Remove handling of CC_SESWPmode
8022 (aarch64_rtx_costs): Likewise.
8024 2016-05-26 Michael Meissner <meissner@linux.vnet.ibm.com>
8026 * config/rs6000/rs6000.c (rs6000_emit_p9_fp_minmax): New function
8027 for ISA 3.0 min/max support.
8028 (rs6000_emit_p9_fp_cmove): New function for ISA 3.0 floating point
8029 conditional move support.
8030 (rs6000_emit_cmove): Call rs6000_emit_p9_fp_minmax and
8031 rs6000_emit_p9_fp_cmove if the ISA 3.0 instructions are
8033 * config/rs6000/rs6000.md (SFDF2): New iterator to allow doing
8034 conditional moves where the comparison type is different from move
8036 (fp_minmax): New code iterator for smin/smax.
8037 (minmax): New code attributes for min/max.
8038 (SMINMAX): Likewise.
8039 (smax<mode>3): Combine min, max insns into one insn using the
8040 fp_minmax code iterator. Add support for ISA 3.0 min/max
8041 instructions that don't need -ffast-math.
8042 (s<minmax><mode>3): Likewise.
8043 (smax<mode>3_vsx): Likewise.
8044 (smin<mode>3): Likewise.
8045 (s<minmax><mode>3_vsx): Likewise.
8046 (smin<mode>3_vsx): Likewise.
8047 (pre-VSX min/max splitters): Likewise.
8048 (s<minmax><mode>3_fpr): Likewise.
8049 (movsfcc): Rewrite floating point conditional moves to combine
8050 SFmode/DFmode into a single insn.
8051 (mov<mode>cc): Likewise.
8052 (movdfcc): Likewise.
8053 (fselsfsf4): Combine FSEL cases into a single insn, using SFDF and
8054 SFDF2 iterators to handle all combinations.
8055 (fseldfsf4): Likewise.
8056 (fsel<SFDF:mode><SFDF2:mode>4): Likewise.
8057 (fseldfdf4): Likewise.
8058 (fselsfdf4): Likewise.
8059 (mov<SFDF:mode><SFDF2:mode>cc_p9): Add support for the ISA 3.0
8060 comparison instructions that set a 0/-1 mask, and use it for
8061 floating point conditional move via XXSEL.
8062 (fpmask<mode>): Likewise.
8063 (xxsel<mode>): Likewise.
8064 * config/rs6000/predicates.md (min_max_operator): Delete, no
8066 (fpmask_comparison_operaton): New insn for ISA 3.0 comparison
8067 instructions that generate a 0/-1 mask for use with XXSEL.
8068 * config/rs6000/rs6000.h (TARGET_MINMAX_SF): New helper macros to
8069 say whether floating point min/max is available, either through
8070 FSEL, ISA 2.06 min/max, and ISA 3.0 min/max instrucitons.
8071 (TARGET_MINMAX_DF): Likewise.
8073 2016-05-27 Alan Modra <amodra@gmail.com>
8075 PR rtl-optimization/71275
8076 * ira.c (ira): Call loop_optimizer_init to set up bb_loop_depth
8077 for update_equiv_regs and combine_and_move_insns.
8079 2016-05-26 Uros Bizjak <ubizjak@gmail.com>
8081 * config/i386/i386.md (*movqi_internal) <attr "isa">: Use
8082 if_then_else or cond RTXes to calculate attribute value.
8083 * config/i386/mmx.md (*vec_extractv2sf_1) <attr "prefix_rep">: Ditto.
8084 <attr "length_immediate>: Ditto.
8085 (*vec_extractv2sf_1) <attr "length_immediate">: Ditto.
8086 * config/i386/sse.md (sse_loadlps) <attr "length_immediate">: Ditto.
8087 (*vec_concatv2sf_sse4_1) <attr "isa">: Ditto.
8088 <attr "type">: Ditto.
8089 <attr "prefix_data16">: Ditto.
8090 <attr "prefix_extra">: Ditto.
8091 <attr "length_immediate">: Ditto.
8092 <attr "prefix">: Ditto.
8093 (vec_set<mode>_0) <attr "isa">: Ditto.
8094 <attr "prefix_extra">: Ditto.
8095 <attr "length_immediate">: Ditto.
8096 <attr "prefix">: Ditto.
8097 (*vec_interleave_highv2df) <attr "prefix_data16">: Ditto.
8098 (*vec_interleave_lowv2df) <attr "prefix_data16">: Ditto.
8099 (sse2_storelpd) <attr "prefix_data16">: Ditto.
8100 (sse2_loadhpd) <attr "prefix_data16">: Ditto.
8101 (sse2_loadlpd) <attr "prefix_data16">: Ditto.
8102 <attr "length_immediate">: Ditto.
8103 <attr "prefix">: Ditto.
8104 (sse2_movsd) <attr "length_immediate">: Ditto.
8105 <attr "prefix">: Ditto.
8106 (vec_concatv2df) <attr "isa">: Ditto.
8107 <attr "prefix">: Ditto.
8108 (*vec_extractv4si) <attr "prefix_extra">: Ditto.
8109 (*vec_extractv2di_1) <attr "isa">: Ditto.
8110 <attr "type">: Ditto.
8111 <attr "length_immediate">: Ditto.
8112 <attr "prefix_rex">: Ditto.
8113 <attr "prefix_extra">: Ditto.
8114 (*vec_concatv2si_sse4_1) <attr "type">: Ditto.
8115 <attr "prefix_extra">: Ditto.
8116 <attr "length_immediate">: Ditto.
8117 (vec_concatv2di) <attr "isa">: Ditto.
8118 <attr "prefix_extra">: Ditto.
8119 <attr "length_immediate">: Ditto.
8120 <attr "prefix">: Ditto.
8122 2016-05-26 Martin Liska <mliska@suse.cz>
8124 * tree-ssa-loop-ivopts.c (comp_cost::infinite_cost_p): New
8126 (operator+): Likewise.
8127 (operator-): Likewise.
8128 (comp_cost::operator+=): Likewise.
8129 (comp_cost::operator-=): Likewise.
8130 (comp_cost::operator/=): Likewise.
8131 (comp_cost::operator*=): Likewise.
8132 (operator<): Likewise.
8133 (operator==): Likewise.
8134 (operator<=): Likewise.
8136 (infinite_cost_p): Likewise.
8137 (add_costs): Likewise.
8138 (sub_costs): Likewise.
8139 (compare_costs): Likewise.
8140 (set_group_iv_cost): Use the newly introduced functions.
8141 (get_address_cost): Likewise.
8142 (get_shiftadd_cost): Likewise.
8143 (force_expr_to_var_cost): Likewise.
8144 (split_address_cost): Likewise.
8145 (ptr_difference_cost): Likewise.
8146 (difference_cost): Likewise.
8147 (get_computation_cost_at): Likewise.
8148 (determine_group_iv_cost_generic): Likewise.
8149 (determine_group_iv_cost_address): Likewise.
8150 (determine_group_iv_cost_cond): Likewise.
8151 (autoinc_possible_for_pair): Likewise.
8152 (determine_group_iv_costs): Likewise.
8153 (cheaper_cost_pair): Likewise.
8154 (iv_ca_recount_cost): Likewise.
8155 (iv_ca_set_no_cp): Likewise.
8156 (iv_ca_set_cp): Likewise.
8157 (iv_ca_cost): Likewise.
8158 (iv_ca_new): Likewise.
8159 (iv_ca_dump): Likewise.
8160 (iv_ca_narrow): Likewise.
8161 (iv_ca_prune): Likewise.
8162 (iv_ca_replace): Likewise.
8163 (try_add_cand_for): Likewise.
8164 (try_improve_iv_set): Likewise.
8165 (find_optimal_iv_set): Likewise.
8167 2016-05-26 Richard Sandiford <richard.sandiford@arm.com>
8169 * tree-ssa-loop-ivopts.c (loop_body_includes_call): Don't assume
8170 that internal functions will clobber all caller-saved registers.
8172 2016-05-26 Wilco Dijkstra <wdijkstr@arm.com>
8174 * config/aarch64/aarch64.c (aarch64_case_values_threshold):
8175 Return a better case_values_threshold when optimizing.
8177 2016-05-26 Wilco Dijkstra <wdijkstr@arm.com>
8179 * config/aarch64/aarch64-simd.md (aarch64_combinez):
8180 Add ? to integer variant.
8181 (aarch64_combinez_be): Likewise.
8183 2016-05-26 Jakub Jelinek <jakub@redhat.com>
8185 * config/i386/sse.md (*vcvtps2ph_store<mask_name>): Use v constraint
8186 instead of x constraint.
8187 (vcvtps2ph256<mask_name>): Likewise.
8189 * config/i386/sse.md (*ssse3_palignr<mode>_perm): Add avx512bw
8190 alternative. Formatting fix.
8192 * config/i386/sse.md
8193 (<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Rename
8195 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>): ... this.
8196 (*avx_vperm_broadcast_v4sf): Use v constraint instead of x. Use
8197 maybe_evex prefix instead of vex.
8198 (*avx_vperm_broadcast_<mode>): Use v constraint instead of x. Handle
8199 EXT_REX_SSE_REG_P (op0) case in the splitter.
8201 2016-05-25 Jeff Law <law@redhat.com>
8203 PR tree-optimization/71272
8204 * tree-ssa-threadbackward.c (convert_and_register_jump_thread_path):
8205 Update comments. Add test for empty path.
8207 2016-05-25 Bill Seurer <seurer@linux.vnet.ibm.com>
8209 * config/rs6000/altivec.h (vec_cmpne): Add #define for vec_cmpne.
8210 * config/rs6000/rs6000-builtin.def (vec_cmpne): Add vec_cmpne as a
8211 special case builtin.
8212 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
8213 code for ALTIVEC_BUILTIN_VEC_CMPNE.
8214 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
8215 for __builtin_vec_cmpne.
8217 2016-05-25 Eric Botcazou <ebotcazou@adacore.com>
8219 * tree-ssa-phiopt.c (factor_out_conditional_conversion): Remove
8220 redundant test and bail out if the type of the new operand is not
8221 a GIMPLE register type after stripping a VIEW_CONVERT_EXPR.
8223 2016-05-25 Uros Bizjak <ubizjak@gmail.com>
8225 * config/i386/i386.opt (ix86_target_flags_explicit): Remove.
8226 (x_ix86_target_flags_explicit): Remove.
8227 * config/i386/i386.c (ix86_function_specific_save): Do not copy
8228 x_ix86_target_flags_explicit.
8229 (ix86_function_specific_restore): Ditto.
8231 2016-05-25 Uros Bizjak <ubizjak@gmail.com>
8232 H.J. Lu <hongjiu.lu@intel.com>
8235 * common/config/i386/i386-common.c
8236 (OPTION_MASK_ISA_GENERAL_REGS_ONLY_UNSET): New.
8237 (ix86_handle_option) <case OPT_mgeneral_regs_only>: Disable
8238 MPX, MMX, SSE and x87 instructions for -mgeneral-regs-only.
8239 * config/i386/i386.opt (ix86_target_flags): Add new Variable.
8240 (-mgeneral-regs-only): Add new option.
8241 * config/i386/i386.c (ix86_option_override_internal): Don't enable
8242 x87 instructions if only general registers are allowed.
8243 (ix86_target_string): Add ix86_flags argument. Handle additional
8244 flags options through ix86_flags argument. Update all callers.
8245 * doc/invoke.texi (x86 Options): Document -mgeneral-regs-only.
8247 2016-05-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8249 PR rtl-optimization/66940
8250 * ifcvt.c (noce_get_alt_condition): Check that incrementing or
8251 decrementing desired_val will not overflow before performing these
8254 2016-05-25 Ilya Verbin <ilya.verbin@intel.com>
8256 * config/i386/i386-builtin-types.def: Add V16SI_FTYPE_V16SF,
8257 V8DF_FTYPE_V8DF_ROUND, V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND.
8258 * config/i386/i386.c (enum ix86_builtins): Add
8259 IX86_BUILTIN_CVTPS2DQ512_MASK, IX86_BUILTIN_FLOORPS512,
8260 IX86_BUILTIN_FLOORPD512, IX86_BUILTIN_CEILPS512, IX86_BUILTIN_CEILPD512,
8261 IX86_BUILTIN_TRUNCPS512, IX86_BUILTIN_TRUNCPD512,
8262 IX86_BUILTIN_CVTPS2DQ512, IX86_BUILTIN_VEC_PACK_SFIX512,
8263 IX86_BUILTIN_FLOORPS_SFIX512, IX86_BUILTIN_CEILPS_SFIX512,
8264 IX86_BUILTIN_ROUNDPS_AZ_SFIX512.
8265 (builtin_description bdesc_args): Add __builtin_ia32_floorps512,
8266 __builtin_ia32_ceilps512, __builtin_ia32_truncps512,
8267 __builtin_ia32_floorpd512, __builtin_ia32_ceilpd512,
8268 __builtin_ia32_truncpd512, __builtin_ia32_cvtps2dq512,
8269 __builtin_ia32_vec_pack_sfix512, __builtin_ia32_roundps_az_sfix512,
8270 __builtin_ia32_floorps_sfix512, __builtin_ia32_ceilps_sfix512.
8271 Change IX86_BUILTIN_CVTPS2DQ512 to IX86_BUILTIN_CVTPS2DQ512_MASK for
8272 __builtin_ia32_cvtps2dq512_mask.
8273 (ix86_expand_args_builtin): Handle V8DF_FTYPE_V8DF_ROUND,
8274 V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF.
8275 (ix86_builtin_vectorized_function): Handle builtins mentioned above.
8276 * config/i386/sse.md
8277 (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name><round_name>):
8279 (avx512f_fix_notruncv16sfv16si<mask_name><round_name>): ... this.
8280 (<mask_codefor>avx512f_cvtpd2dq512<mask_name><round_name>): Rename
8282 (avx512f_cvtpd2dq512<mask_name><round_name>): ... this.
8283 (avx512f_vec_pack_sfix_v8df): New define_expand.
8284 (avx512f_roundpd512): Rename to ...
8285 (avx512f_round<castmode>512): ... this. Change iterator.
8286 (avx512f_roundps512_sfix): New define_expand.
8287 (round<mode>2_sfix): Change iterator.
8289 2016-05-25 Nick Clifton <nickc@redhat.com>
8291 * config/msp430/msp430.c (msp430_attr): Produce an error if a
8292 static interrupt handler is detected.
8293 * config/msp430/msp430.h (LIB_SPEC): Do not use msp430.ld as the
8294 default linker script.
8295 * config/msp430/msp430.md (movpsihi2_lo): New pattern for loading
8296 the low part of a symbolic pointer.
8298 2016-05-25 Richard Biener <rguenther@suse.de>
8300 PR tree-optimization/71261
8301 * tree-if-conv.c (ifcvt_split_def_stmt): Walk uses on the
8302 interesting stmt instead of immediate uses when looking
8303 for the use operand to replace.
8305 2016-05-25 Martin Liska <mliska@suse.cz>
8307 * ipa-inline.c (edge_badness): Use 'w/' instead of 'w'.
8309 2016-05-25 Richard Biener <rguenther@suse.de>
8311 PR tree-optimization/71264
8312 * tree-vect-stmts.c (vect_init_vector): Properly deal with
8315 2016-05-25 Martin Liska <mliska@suse.cz>
8317 PR tree-optimization/71239
8318 * tree.c (array_at_struct_end_p): Do not call operand_equal_p
8319 if DECL_SIZE is NULL.
8321 2016-05-25 Richard Biener <rguenther@suse.de>
8323 * timevar.def (TV_TREE_LOOP_IFCVT): Add.
8324 * tree-if-conv.c (pass_data_if_conversion): Use it.
8326 2016-05-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
8328 * cgraph.c (cgraph_node::get_availability): Fix typo in comment.
8329 * symtab.c (symtab_node::binds_to_current_def_p): Likewise.
8330 * varpool.c (varpool_node::get_availability): Likewise.
8332 2016-05-24 Michael Meissner <meissner@linux.vnet.ibm.com>
8334 * config/rs6000/altivec.md (VNEG iterator): New iterator for
8335 VNEGW/VNEGD instructions.
8336 (p9_neg<mode>2): New insns for ISA 3.0 VNEGW/VNEGD.
8337 (neg<mode>2): Add expander for V2DImode added in ISA 2.07, and
8338 support for ISA 3.0 VNEGW/VNEGD instructions.
8340 2016-05-24 Cesar Philippidis <cesar@codesourcery.com>
8342 * gimplify.c (omp_notice_variable): Use zero-length arrays for data
8343 pointers inside OACC_DATA regions.
8344 (gimplify_scan_omp_clauses): Prune firstprivate clause associated
8345 with OACC_DATA, OACC_ENTER_DATA and OACC_EXIT data regions.
8346 (gimplify_adjust_omp_clauses): Fix typo in comment.
8348 2016-05-24 Michael Meissner <meissner@linux.vnet.ibm.com>
8350 * config/rs6000/altivec.md (VParity): New mode iterator for vector
8351 parity built-in functions.
8352 (p9v_ctz<mode>2): Add support for ISA 3.0 vector count trailing
8354 (p9v_parity<mode>2): Likewise.
8355 * config/rs6000/vector.md (VEC_IP): New mode iterator for vector
8357 (ctz<mode>2): ISA 3.0 expander for vector count trailing zeros.
8358 (parity<mode>2): ISA 3.0 expander for vector parity.
8359 * config/rs6000/rs6000-builtin.def (BU_P9_MISC_1): New macros for
8361 (BU_P9_64BIT_MISC_0): Likewise.
8362 (BU_P9_MISC_0): Likewise.
8363 (BU_P9V_AV_1): Likewise.
8364 (BU_P9V_AV_2): Likewise.
8365 (BU_P9V_AV_3): Likewise.
8366 (BU_P9V_AV_P): Likewise.
8367 (BU_P9V_VSX_1): Likewise.
8368 (BU_P9V_OVERLOAD_1): Likewise.
8369 (BU_P9V_OVERLOAD_2): Likewise.
8370 (BU_P9V_OVERLOAD_3): Likewise.
8371 (VCTZB): Add vector count trailing zeros support.
8375 (VPRTYBD): Add vector parity support.
8376 (VPRTYBQ): Likewise.
8377 (VPRTYBW): Likewise.
8378 (VCTZ): Add overloaded vector count trailing zeros support.
8379 (VPRTYB): Add overloaded vector parity support.
8380 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
8381 overloaded vector count trailing zeros and parity instructions.
8382 * config/rs6000/rs6000.md (wd mode attribute): Add V1TI and TI for
8383 vector parity support.
8384 * config/rs6000/altivec.h (vec_vctz): Add ISA 3.0 vector count
8385 trailing zeros support.
8386 (vec_cntlz): Likewise.
8387 (vec_vctzb): Likewise.
8388 (vec_vctzd): Likewise.
8389 (vec_vctzh): Likewise.
8390 (vec_vctzw): Likewise.
8391 (vec_vprtyb): Add ISA 3.0 vector parity support.
8392 (vec_vprtybd): Likewise.
8393 (vec_vprtybw): Likewise.
8394 (vec_vprtybq): Likewise.
8395 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
8396 the ISA 3.0 vector count trailing zeros and vector parity built-in
8399 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
8401 * tree-ssa-reassoc.c (sort_by_operand_rank): Skip checking gimple_bb
8402 when there is stmt_to_insert.
8404 2016-05-24 Martin Sebor <msebor@redhat.com>
8407 * tree.h (complete_or_array_type_p): New inline function.
8409 2016-05-24 Jakub Jelinek <jakub@redhat.com>
8411 * config/i386/i386.h (TARGET_AVOID_4BYTE_PREFIXES): Define.
8412 * config/i386/constraints.md (Yr): Test TARGET_AVOID_4BYTE_PREFIXES
8413 rather than X86_TUNE_AVOID_4BYTE_PREFIXES.
8415 * config/i386/sse.md (<sse4_1>_round<ssemodesuffix><avxsizesuffix>):
8416 Limit 1st alternative to noavx isa, split 2nd alternative into one
8417 noavx and one avx alternative, use *x and Bm in the former and
8418 x and m in the latter.
8420 * config/i386/sse.md (vec_set<mode>_0): Use sse4_noavx isa instead
8421 of sse4 for the first alternative, drop %v from the template
8422 and d operand modifier. Split second alternative into one sse4_noavx
8423 and one avx alternative, use *x instead of *v in the former and v
8424 instead of *v in the latter.
8425 (*sse4_1_extractps): Use noavx isa instead of * for the first
8426 alternative, drop %v from the template. Split second alternative into
8427 one noavx and one avx alternative, use *x instead of *v in the
8428 former and v instead of *v in the latter.
8429 (<vi8_sse4_1_avx2_avx512>_movntdqa): Guard the first 2 alternatives
8430 with noavx and the last one with avx.
8431 (sse4_1_phminposuw): Guard first alternative with noavx isa,
8432 split the second one into one noavx and one avx alternative,
8433 use *x and Bm in the former and x and m in the latter one.
8434 (<sse4_1>_ptest<mode>): Use noavx instead of * for the first two
8437 * config/i386/sse.md (sse4_1_<code>v8qiv8hi2<mask_name>): Limit
8438 first two alternatives to noavx, use *x instead of *v in the second
8439 one, add avx alternative without *.
8440 (sse4_1_<code>v4qiv4si2<mask_name>, sse4_1_<code>v4hiv4si2<mask_name>,
8441 sse4_1_<code>v2qiv2di2<mask_name>, sse4_1_<code>v2hiv2di2<mask_name>,
8442 sse4_1_<code>v2siv2di2<mask_name>): Likewise.
8444 2016-05-24 Jeff Law <law@redhat.com>
8446 * tree-ssa-threadbackwards.c (convert_and_register_jump_thread_path):
8447 New function, extracted from...
8448 (fsm_find_control_statement_thread_paths): Here. Use the new function.
8449 Allow simple copies and constant initializations in the SSA chain.
8451 2016-05-24 Marek Polacek <polacek@redhat.com>
8454 * gimplify.c (gimplify_switch_expr): Look into the innermost lexical
8457 2016-05-24 Jakub Jelinek <jakub@redhat.com>
8460 * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
8461 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
8462 SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP. Add
8463 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP and
8464 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP cases explicitly.
8466 2016-05-24 Richard Biener <rguenther@suse.de>
8468 PR tree-optimization/71240
8469 * tree-ssa-math-opts.c (init_symbolic_number): Verify the source
8472 2016-05-24 Richard Biener <rguenther@suse.de>
8474 PR tree-optimization/71230
8475 * tree-ssa-reassoc.c (zero_one_operation): Handle negate special ops.
8477 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
8479 * tree-vectorizer.h (vectorizable_comparison): Delete.
8480 * tree-vect-loop.c (vectorizable_reduction): Remove redundant
8481 PURE_SLP_STMT check.
8482 * tree-vect-stmts.c (vectorizable_call): Likewise.
8483 (vectorizable_simd_clone_call): Likewise.
8484 (vectorizable_conversion): Likewise.
8485 (vectorizable_assignment): Likewise.
8486 (vectorizable_shift): Likewise.
8487 (vectorizable_operation): Likewise.
8488 (vectorizable_load): Likewise.
8489 (vectorizable_condition): Likewise.
8490 (vectorizable_store): Likewise. Assert that we don't have
8492 (vectorizable_comparison): Make static. Remove redundant
8493 PURE_SLP_STMT check.
8494 (vect_transform_stmt): Assert that we always have an slp_node
8497 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8499 * config/arm/neon.md (ashldi3_neon): Replace comparison of INTVAL of
8500 operands[2] against 1 with comparison against CONST1_RTX.
8501 (<shift>di3_neon): Likewise.
8502 * config/arm/predicates.md (const0_operand): Replace with comparison
8505 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8507 * config/arm/arm.md (ashldi3): Replace comparison of INTVAL of
8508 operands[2] against 1 with comparison against CONST1_RTX.
8509 (ashrdi3): Likewise.
8510 (lshrdi3): Likewise.
8511 (ashlsi3): Replace cast of INTVAL to unsigned HOST_WIDE_INT with
8513 (ashrsi3): Likewise.
8514 (lshrsi3): Likewise.
8515 (rotrsi3): Likewise.
8516 (define_split above *compareqi_eq0): Likewise.
8517 (define_split above "prologue"): Likewise.
8518 * config/arm/arm.c (thumb1_size_rtx_costs): Likewise.
8519 * config/arm/predicates.md (shift_operator): Likewise.
8520 (shift_nomul_operator): Likewise.
8521 (sat_shift_operator): Likewise.
8522 (thumb1_cmp_operand): Likewise.
8523 (const_neon_scalar_shift_amount_operand): Replace manual range
8524 check with IN_RANGE.
8525 * config/arm/thumb1.md (define_peephole2 above *thumb_subdi3):
8526 Replace cast of INTVAL to unsigned HOST_WIDE_INT with UINTVAL.
8528 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8530 * config/arm/arm.md (andsi3): Replace cast of 1 to HOST_WIDE_INT
8531 with HOST_WIDE_INT_1.
8533 * config/arm/arm.c (optimal_immediate_sequence): Replace cast of
8534 1 to unsigned HOST_WIDE_INT with HOST_WIDE_INT_1U.
8535 (arm_canonicalize_comparison): Likewise.
8536 (thumb1_rtx_costs): Replace cast of 1 to HOST_WIDE_INT with
8538 (thumb1_size_rtx_costs): Likewise.
8539 (vfp_const_double_index): Replace cast of 1 to unsigned
8540 HOST_WIDE_INT with HOST_WIDE_INT_1U.
8541 (get_jump_table_size): Replace cast of 1 to HOST_WIDE_INT with
8543 (arm_asan_shadow_offset): Replace cast of 1 to unsigned
8544 HOST_WIDE_INT with HOST_WIDE_INT_1U.
8545 * config/arm/neon.md (vec_set<mode>): Replace cast of 1 to
8546 HOST_WIDE_INT with HOST_WIDE_INT_1.
8548 2016-05-24 Marek Polacek <polacek@redhat.com>
8550 * tree-cfg.h (should_remove_lhs_p): New predicate.
8551 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
8552 * gimplify.c (gimplify_modify_expr): Likewise.
8553 * tree-cfg.c (verify_gimple_call): Likewise.
8554 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
8555 * gimple-fold.c: Include "tree-cfg.h".
8556 (gimple_fold_call): Use should_remove_lhs_p.
8558 2016-05-24 Richard Biener <rguenther@suse.de>
8560 PR tree-optimization/71253
8561 * cfganal.h (control_dependences): Make robust against edge
8563 (control_dependences::control_dependences): Remove edge_list argument.
8564 (control_dependences::get_edge): Remove.
8565 (control_dependences::get_edge_src): Add.
8566 (control_dependences::get_edge_dest): Likewise.
8567 (control_dependences::m_el): Make a vector of edge src/dest index.
8568 * cfganal.c (control_dependences::find_control_dependence): Adjust.
8569 (control_dependences::control_dependences): Likewise.
8570 (control_dependences::~control_dependence): Likewise.
8571 (control_dependences::get_edge): Remove.
8572 (control_dependences::get_edge_src): Add.
8573 (control_dependences::get_edge_dest): Likewise.
8574 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Use
8576 (perform_tree_ssa_dce): Adjust.
8577 * tree-loop-distribution.c (create_edge_for_control_dependence): Use
8579 (pass_loop_distribution::execute): Adjust. Do loop destroying
8580 conditional on changed.
8582 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8585 * config/arm/arm.c (gen_operands_ldrd_strd): Remove bogus early
8586 return. Reindent transformation comment and mention the ARM state
8589 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
8592 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Add stmt_to_insert
8593 after build_and_add_sum creates new use stmt.
8595 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
8597 * tree-vect-stmts.c (vectorizable_load): Reorder checks so that
8598 load_lanes/grouped_load classification comes first. Don't check
8599 whether the vectorization factor is a multiple of the group size
8602 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
8604 * tree-vect-data-refs.c (vect_analyze_group_access_1): Set
8605 GROUP_GAP for single-element interleaving.
8606 * tree-vect-stmts.c (vectorizable_load): Remove force_peeling
8609 2016-05-24 Richard Biener <rguenther@suse.de>
8613 * tree-ssa.c (non_rewritable_mem_ref_base): Make sure to mark
8614 bases which are accessed with non-invariant indices.
8615 * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Re-write
8616 constant index ARRAY_REFs of vectors into BIT_FIELD_REFs.
8618 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
8621 * tree-ssa-reassoc.c (struct operand_entry): Add field stmt_to_insert.
8622 (add_to_ops_vec): Add stmt_to_insert.
8623 (add_repeat_to_ops_vec): Init stmt_to_insert.
8624 (insert_stmt_before_use): New.
8625 (transform_add_to_multiply): Remove mult_stmt insertion and add it
8627 (get_ops): Init stmt_to_insert.
8628 (maybe_optimize_range_tests): Likewise.
8629 (rewrite_expr_tree): Insert stmt_to_insert before use stmt.
8630 (rewrite_expr_tree_parallel): Likewise.
8631 (reassociate_bb): Likewise.
8633 2016-05-23 Michael Meissner <meissner@linux.vnet.ibm.com>
8636 * config/rs6000/altivec.md (altivec_vperm_<mode>_internal): Drop
8637 ISA 3.0 xxperm fusion alternative.
8638 (altivec_vperm_v8hiv16qi): Likewise.
8639 (altivec_vperm_<mode>_uns_internal): Likewise.
8640 (vperm_v8hiv4si): Likewise.
8641 (vperm_v16qiv8hi): Likewise.
8643 2016-05-23 Michael Meissner <meissner@linux.vnet.ibm.com>
8644 Kelvin Nilsen <kelvin@gcc.gnu.org>
8646 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate
8647 vpermr/xxpermr on ISA 3.0.
8648 (altivec_expand_vec_perm_le): Likewise.
8649 * config/rs6000/altivec.md (UNSPEC_VPERMR): New unspec.
8650 (altivec_vpermr_<mode>_internal): Add VPERMR/XXPERMR support for
8653 2016-05-23 Uros Bizjak <ubizjak@gmail.com>
8655 * config/i386/i386.h (IS_STACK_MODE): Enable for
8656 TARGET_MIX_SSE_I387. Rewrite using X87_FLOAT_MODE_P and
8657 SSE_FLOAT_MODE_P macros.
8658 * config/i386/i386.c (ix86_preferred_reload_class): Use
8659 IS_STACK_MODE, INTEGER_CLASS_P, FLOAT_CLASS_P and Q_CLASS_P macros.
8660 Cleanup regclass processing for CONST_DOUBLE_P.
8661 (ix86_preferred_output_reload_class): Use IS_STACK_MODE macro.
8662 (ix86_rtx_costs): Remove redundant TARGET_80387 check
8663 with IS_STACK_MODE macro.
8664 * config/i386/i386.md: Replace SSE_FLOAT_MODE_P (DFmode)
8666 (*movdf_internal): Use IS_STACK_MODE macro.
8667 (*movsf_internal): Ditto.
8669 2016-05-23 Marc Glisse <marc.glisse@inria.fr>
8671 * match.pd (a * (1 << b), ~x & ~y, ~X ^ ~Y, (X ^ Y) ^ Y, ~ (-A),
8672 ~ (A - 1), ~(~X >> Y), ~(~X >>r Y)): Relax constraints.
8674 2016-05-23 Jeff Law <law@redhat.com>
8676 * tree-ssa-threadbackward.c (profitable_jump_thread_path): New function
8678 (fsm_find_control_statement_thread_paths): Call it.
8680 2016-05-23 Martin Jambor <mjambor@suse.cz>
8683 * ipa-cp.c (ipa_get_indirect_edge_target_1): Only check value of
8684 from_global_constant if t is not NULL.
8686 2016-05-23 Marek Polacek <polacek@redhat.com>
8689 * common.opt (Wswitch-unreachable): New option.
8690 * doc/invoke.texi: Document -Wswitch-unreachable.
8691 * gimplify.c (gimplify_switch_expr): Implement the -Wswitch-unreachable
8694 2016-05-23 Bin Cheng <bin.cheng@arm.com>
8696 * tree-ssa-address.c (copy_ref_info): Check NULL TMR_STEP when
8697 TMR_INDEX is non-NULL.
8699 2016-05-23 Richard Biener <rguenther@suse.de>
8701 PR tree-optimization/71230
8702 * tree-ssa-reassoc.c (acceptable_pow_call): Move initial condition...
8703 (try_special_add_to_ops): ... here. Always test for single-use.
8705 2016-05-23 Martin Jambor <mjambor@suse.cz>
8707 * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Create an empty
8708 default block if a PHI node in the original one would be resized.
8710 2016-05-23 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
8712 PR tree-optimization/58135
8713 * tree-vect-slp.c: When group size is not multiple
8714 of vector size, allow splitting of store group at
8717 2016-05-23 Christophe Lyon <christophe.lyon@linaro.org>
8719 * config/arm/arm_neon.h (vtst_p16, vtstq_p16): New.
8721 2016-05-22 Jakub Jelinek <jakub@redhat.com>
8723 * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
8724 vec_set_hi_<mode><mask_name>): Add && <mask_avx512dq_condition>
8725 condition. For !TARGET_AVX512DQ, emit 32x4 instruction instead
8728 * config/i386/sse.md (vec_set_lo_v16hi, vec_set_hi_v16hi,
8729 vec_set_lo_v32qi, vec_set_hi_v32qi): Add alternative with
8730 v constraint instead of x and vinserti32x4 insn.
8732 * config/i386/sse.md (i128vldq): New mode iterator.
8733 (avx2_vbroadcasti128_<mode>, avx_vbroadcastf128_<mode>): Add
8734 avx512dq and avx512vl alternatives.
8736 * config/i386/sse.md (avx2_vec_dupv4df): Use v instead of x
8737 constraint, use maybe_evex prefix instead of vex.
8738 (vec_dupv4sf): Use v constraint instead of x for output
8739 operand except for noavx alternative, use Yv constraint
8740 instead of x for input. Use maybe_evex prefix instead of vex.
8741 (*vec_dupv4si): Likewise.
8742 (*vec_dupv2di): Likewise.
8744 2016-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
8747 * tree-ssa-reassoc.c (try_special_add_to_ops): New.
8748 (linearize_expr_tree): Call try_special_add_to_ops.
8749 (reassociate_bb): Convert MULT_EXPR by (-1) to NEGATE_EXPR.
8751 2016-05-21 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
8753 * config/avr/avr.c (avr_expand_prologue): Add INCOMING_FRAME_SP_OFFSET
8754 to computed stack_usage.
8756 2016-05-21 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
8759 * config/avr/avr.md (define_expand "mov<mode>"): If the source
8760 operand is subreg (symbol_ref) then move the symbol ref to register.
8762 2016-05-21 Jan Hubicka <hubicka@ucw.cz>
8764 * tree.c (array_at_struct_end_p): Look through MEM_REF.
8766 2016-05-21 Kugan Vivekanandarajah <kuganv@linaro.org>
8769 * tree-ssa-reassoc.c (transform_add_to_multiply): Disallow float
8772 2016-05-20 Eric Botcazou <ebotcazou@adacore.com>
8774 * tree-vrp.c (compare_values_warnv): Simplify handling of symbolic
8775 ranges by calling get_single_symbol and tidy up. Look more closely
8776 into NAME + CST1 vs CST2 comparisons if type overflow is undefined.
8778 2016-05-20 Jeff Law <law@redhat.com>
8780 * bitmap.c (bitmap_find_bit): Remove useless test.
8782 2016-05-20 Segher Boessenkool <segher@kernel.crashing.org>
8784 * function.c (thread_prologue_and_epilogue_insns): Commit the
8785 insertion of the epilogue.
8787 2016-05-20 Martin Jambor <mjambor@suse.cz>
8789 PR tree-optimization/70884
8790 * tree-sra.c (initialize_constant_pool_replacements): Do not check
8791 should_scalarize_away_bitmap and cannot_scalarize_away_bitmap bits.
8792 (sort_and_splice_var_accesses): Do not consider multiple scalar reads
8793 of constant pool data as a reason for scalarization.
8795 2016-05-20 Eric Botcazou <ebotcazou@adacore.com>
8797 * config/arm/arm.c (arm_expand_prologue): Set the stack usage to 0
8798 for naked functions.
8799 (thumb1_expand_prologue): Likewise.
8801 2016-05-20 Nathan Sidwell <nathan@acm.org>
8803 * config/nvptx/nptx.c (nvptx_option_override): Only set
8804 flag_toplevel_reorder, if not explicitly specified. Set
8805 flag_no_common, unless explicitly specified.
8807 2016-05-20 David Malcolm <dmalcolm@redhat.com>
8809 * calls.c (can_implement_as_sibling_call_p): Mark param
8810 reg_parm_stack_space with ATTRIBUTE_UNUSED.
8812 2016-05-20 Uros Bizjak <ubizjak@gmail.com>
8814 * config/i386/i386.c (ix86_rtx_costs) <case CONST_DOUBLE>:
8815 Use IS_STACK_MODE when calculating cost of standard 80387 constants.
8816 Fallthru to CONST_VECTOR case to calculate cost of standard SSE
8818 <case CONST_WIDE_INT>: Calculate cost of (MEM (SYMBOL_REF)).
8819 (ix86_legitimate_constant_p): Use CASE_CONST_SCALAR_INT
8822 2016-05-20 Cesar Philippidis <cesar@codesourcery.com>
8824 * config/nvptx/nvptx.md (sincossf3): New pattern.
8826 2016-05-20 David Malcolm <dmalcolm@redhat.com>
8828 * calls.c (maybe_complain_about_tail_call): New function.
8829 (initialize_argument_information): Call
8830 maybe_complain_about_tail_call when clearing *may_tailcall.
8831 (can_implement_as_sibling_call_p): Call
8832 maybe_complain_about_tail_call when returning false.
8833 (expand_call): Read CALL_EXPR_MUST_TAIL_CALL and, if set,
8834 ensure try_tail_call is set. Call maybe_complain_about_tail_call
8835 if tail-call optimization fails.
8836 * cfgexpand.c (expand_call_stmt): Initialize
8837 CALL_EXPR_MUST_TAIL_CALL from gimple_call_must_tail_p.
8838 * gimple-pretty-print.c (dump_gimple_call): Dump
8839 gimple_call_must_tail_p.
8840 * gimple.c (gimple_build_call_from_tree): Call
8841 gimple_call_set_must_tail with the value of
8842 CALL_EXPR_MUST_TAIL_CALL.
8843 * gimple.h (enum gf_mask): Add GF_CALL_MUST_TAIL_CALL.
8844 (gimple_call_set_must_tail): New function.
8845 (gimple_call_must_tail_p): New function.
8846 * print-tree.c (print_node): Update printing of TREE_STATIC
8847 to reflect its use for CALL_EXPR_MUST_TAIL_CALL.
8848 * tree-core.h (struct tree_base): Add MUST_TAIL_CALL to the
8849 trailing comment listing applicable flags.
8850 * tree.h (CALL_EXPR_MUST_TAIL_CALL): New macro.
8852 2016-05-20 David Malcolm <dmalcolm@redhat.com>
8854 * calls.c (expand_call): Move "Rest of purposes for tail call
8855 optimizations to fail" to...
8856 (can_implement_as_sibling_call_p): ...this new function, and
8857 split into multiple "if" statements.
8859 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
8861 * cfgloop.h (expected_loop_iterations_unbounded,
8862 expected_loop_iterations): Unconstify.
8863 * cfgloopanal.c (expected_loop_iterations_unbounded): Sanity check the
8864 profile with known upper bound; return 3 when profile is absent.
8865 (expected_loop_iterations): Update.
8867 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
8869 * loop-doloop.c (doloop_optimize): Use get_estimated_loop_iterations_int
8870 and get_max_loop_iterations_int.
8872 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
8874 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can not produce
8875 realistic upper bounds here.
8877 2016-05-20 Jakub Jelinek <jakub@redhat.com>
8880 * gimple-fold.c (gimple_fold_call): Do not remove lhs of noreturn
8881 calls if the LHS is variable length or has addressable type.
8882 If targets[0]->decl is a noreturn call with void return type and
8883 zero arguments, adjust fntype and remove lhs in that case.
8885 2016-05-20 Marc Glisse <marc.glisse@inria.fr>
8887 PR tree-optimization/71079
8888 PR tree-optimization/71206
8889 * match.pd ((X ^ Y) ^ (X ^ Z)): Convert the arguments.
8891 2016-05-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8893 * tree-vectorizer.c (get_vec_alignment_for_decl): New static function.
8894 (get_vec_alignment_for_array_decl): Likewise.
8895 (get_vec_alignment_for_record_decl): Likewise.
8896 (increase_alignment::execute): Move code to find alignment to
8897 get_vec_alignment_for_array_decl and call get_vec_alignment_for_decl.
8898 (type_align_map): New hash_map.
8900 2016-05-20 Richard Guenther <rguenther@suse.de>
8902 PR tree-optimization/29756
8903 * tree.def (BIT_INSERT_EXPR): New tcc_expression tree code.
8904 * expr.c (expand_expr_real_2): Handle BIT_INSERT_EXPR.
8905 * fold-const.c (operand_equal_p): Likewise.
8906 (fold_ternary_loc): Add constant folding of BIT_INSERT_EXPR.
8907 * gimplify.c (gimplify_expr): Handle BIT_INSERT_EXPR.
8908 * tree-inline.c (estimate_operator_cost): Likewise.
8909 * tree-pretty-print.c (dump_generic_node): Likewise.
8910 * tree-ssa-operands.c (get_expr_operands): Likewise.
8911 * cfgexpand.c (expand_debug_expr): Likewise.
8912 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
8913 * gimple.c (get_gimple_rhs_num_ops): Handle BIT_INSERT_EXPR.
8914 * tree-cfg.c (verify_gimple_assign_ternary): Verify BIT_INSERT_EXPR.
8915 * tree-ssa.c (non_rewritable_lvalue_p): We can rewrite
8916 vector inserts using BIT_FIELD_REF or MEM_REF on the lhs.
8917 (execute_update_addresses_taken): Do it.
8919 2016-05-20 Richard Biener <rguenther@suse.de>
8921 PR tree-optimization/71185
8922 * tree-ssa-loop-prefetch.c (gather_memory_references): Drop
8923 register operations.
8925 2016-05-20 Richard Biener <rguenther@suse.de>
8927 * tree-if-conv.c (add_bb_predicate_gimplified_stmts): Use
8928 gimple_seq_add_seq_without_update.
8929 (release_bb_predicate): Assert we have no operands to free.
8930 (if_convertible_loop_p_1): Calculate post dominators later.
8931 Do not free BB predicates here.
8932 (combine_blocks): Do not recompute BB predicates.
8933 (version_loop_for_if_conversion): Save BB predicates around
8936 2016-05-19 Segher Boessenkool <segher@kernel.crashing.org>
8938 * function.c (make_epilogue_seq): Remove epilogue_end parameter.
8939 (thread_prologue_and_epilogue_insns): Remove bb_flags. Restructure
8940 code. Ignore sibcalls on EDGE_IGNORE edges.
8941 * shrink-wrap.c (handle_simple_exit): New function. Set EDGE_IGNORE
8942 on edges for sibcalls that run without prologue. The rest of the
8943 function is combined from...
8944 (fix_fake_fallthrough_edge): ... this, and ...
8945 (try_shrink_wrapping): ... a part of this. Remove the bb_with
8946 function argument, make it a local variable.
8948 2016-05-19 Sandra Loosemore <sandra@codesourcery.com>
8950 * config/i386/cygming.h (DWARF2_UNWIND_INFO): Allow
8951 --disable-sjlj-exceptions for TARGET_BI_ARCH to select DWARF-2 EH
8952 for 32-bit mode and SEH for 64-bit.
8953 * config/i386/mingw32.h (SHARED_LIBGCC_UNDEFS_SPEC): Handle
8954 TARGET_64BIT_DEFAULT.
8956 2016-05-19 Ryan Burn <contact@rnburn.com>
8958 * Makefile.in (GTFILES): Add cilk.h and cilk-common.c.
8959 * gengtype.c (open_base_files): Add cilk.h to ifiles.
8961 2016-05-19 Uros Bizjak <ubizjak@gmail.com>
8963 * sched-deps.c (sched_analyze_2) <case TRAP_IF>: Also
8964 force pending loads from memory.
8966 2016-05-19 Kelvin Nilsen <kelvin@gcc.gnu.org>
8968 * config/rs6000/altivec.md (UNSPEC_DARN): New unspec constant.
8969 (UNSPEC_DARN_32): New unspec constant.
8970 (UNSPEC_DARN_RAW): New unspec constant.
8971 (darn_32): New instruction.
8972 (darn_raw): New instruction.
8973 (darn): New instruction.
8974 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_0): Add
8975 support and documentation for this macro.
8976 (BU_P9_MISC_1): New macro definition.
8977 (BU_P9_64BIT_MISC_0): New macro definition.
8978 (BU_P9_MISC_0): New macro definition.
8979 (darn_32): New builtin definition.
8980 (darn_raw): New builtin definition.
8981 (darn): New builtin definition.
8982 * config/rs6000/rs6000.c: Add #define RS6000_BUILTIN_0 and #undef
8983 RS6000_BUILTIN_0 directives to surround each occurrence of
8984 #include "rs6000-builtin.def".
8985 (rs6000_builtin_mask_calculate): Add in the RS6000_BTM_MODULO and
8986 RS6000_BTM_64BIT flags to the returned mask, depending on
8988 (def_builtin): Correct an error in the assignments made to the
8989 debugging variable attr_string.
8990 (rs6000_expand_builtin): Add support for no-operand built-in
8992 (builtin_function_type): Remove fatal_error assertion that is no
8994 (rs6000_common_init_builtins): Add support for no-operand built-in
8996 * config/rs6000/rs6000.h (RS6000_BTM_MODULO): New macro
8998 (RS6000_BTM_PURE): Enhance comment to clarify intent of this flag
9000 (RS6000_BTM_64BIT): New macro definition.
9001 * doc/extend.texi: Document __builtin_darn (void),
9002 __builtin_darn_raw (void), and __builtin_darn_32 (void) built-in
9005 2016-05-19 Jan Hubicka <hubicka@ucw.cz>
9007 * tree-vect-loop.c (vect_analyze_loop_2): Use also
9008 max_loop_iterations_int.
9010 2016-05-19 Marek Polacek <polacek@redhat.com>
9012 PR tree-optimization/71031
9013 * tree-vrp.c (extract_range_from_binary_expr_1): Turn assert into a
9014 condition and adjust the code a bit.
9016 2016-05-19 Martin Liska <mliska@suse.cz>
9018 * tree-vect-stmts.c (vectorizable_simd_clone_call): Utilize
9019 auto_vec instead of vec.
9021 2016-05-19 Martin Liska <mliska@suse.cz>
9023 * tree-parloops.c (oacc_entry_exit_ok): Release a vector.
9025 2016-05-19 Martin Liska <mliska@suse.cz>
9027 * tree-if-conv.c (ifcvt_repair_bool_pattern): Utilize auto_vecs.
9029 2016-05-19 Martin Liska <mliska@suse.cz>
9031 * ipa-pure-const.c (set_function_state): Remove an existing
9033 (remove_node_data): Do not free it as it's released
9034 in set_function_state.
9036 2016-05-19 Martin Liska <mliska@suse.cz>
9038 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Release
9041 2016-05-19 Martin Liska <mliska@suse.cz>
9043 * omp-simd-clone.c (simd_clone_adjust): Release vector.
9045 2016-05-19 Martin Liska <mliska@suse.cz>
9047 * tree-ssa-reassoc.c (eliminate_duplicate_pair): Truncate
9048 an auto_vec instead of re-creating it.
9050 2016-05-19 Martin Liska <mliska@suse.cz>
9052 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Use
9053 auto_vec instead of vec.
9055 2016-05-19 Martin Liska <mliska@suse.cz>
9057 * lto-section-in.c (lto_get_section_data): Call
9058 lto_check_version with additional argument.
9059 * lto-streamer.c (lto_check_version): Add new argument.
9060 * lto-streamer.h (lto_check_version): Likewise.
9062 2016-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9064 * config/arm/arm.c (arm_new_rtx_costs, SIGN_EXTEND case):
9065 Don't add cost of inner memory when handling sign-extended loads.
9067 2016-05-19 Ilya Enkovich <ilya.enkovich@intel.com>
9069 PR rtl-optimization/71148
9070 * cse.c (cse_main): Free dominance info.
9071 (rest_of_handle_cse): Don't free dominance info.
9072 (rest_of_handle_cse2): Likewise.
9073 (rest_of_handle_cse_after_global_opts): Likewise.
9075 2016-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9078 * config/arm/arm-builtins.c (arm_builtin_vectorized_function): Return
9079 NULL_TREE early if NEON is not available. Remove now redundant check
9080 in ARM_CHECK_BUILTIN_MODE.
9082 2016-05-19 Maxim Ostapenko <m.ostapenko@samsung.com>
9085 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Add new
9086 builtin __SANITIZE_THREAD__ macros for fsanitize=thread switch.
9087 * doc/cpp.texi: Document new macros.
9089 2016-05-19 Bin Cheng <bin.cheng@arm.com>
9091 PR tree-optimization/69848
9092 * tree-vect-loop.c (vectorizable_reduction): Don't factor
9093 comparison expr out of VEC_COND_EXPR for COND_REDUCTION.
9095 2016-05-19 Segher Boessenkool <segher@kernel.crashing.org>
9097 * function.c (thread_prologue_and_epilogue_insn): Move the
9098 "goto epilogue_done" one block later.
9100 2016-05-19 Richard Biener <rguenther@suse.de>
9102 PR tree-optimization/70729
9103 * passes.def: Move LIM pass before PRE. Remove no longer
9104 required copyprop and move first DCE out of the loop pipeline.
9106 2016-05-18 David Malcolm <dmalcolm@redhat.com>
9109 * Makefile.in (GCC_OBJS): Move spellcheck.o to...
9110 (OBJS-libcommon-target): ...here.
9111 * opts-common.c: Include spellcheck.h.
9112 (cmdline_handle_error): Build a vec of valid options and use it
9113 to suggest provide hints for misspelled arguments.
9115 2016-05-18 Jakub Jelinek <jakub@redhat.com>
9118 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Don't drop
9119 lhs if it has TREE_ADDRESSABLE type.
9121 2016-05-18 Uros Bizjak <ubizjak@gmail.com>
9124 * config/alpha/alpha.md (trap): Add (use (reg:DI 29)).
9125 (*exception_receiver_1): Return "#" for TARGET_EXPLICIT_RELOCS.
9127 2016-05-18 Martin Jambor <mjambor@suse.cz>
9130 * ipa-cp.c (ipa_get_jf_pass_through_result): Allow non-ip constant
9131 input for NOP_EXPR pass-through functions.
9132 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Allow
9133 aggregate global constant VAR_DECLs in constant jump functions.
9135 2016-05-18 Martin Jambor <mjambor@suse.cz>
9138 * ipa-prop.c (parm_preserved_before_stmt_p): Return true for loads
9139 from TREE_READONLY parameters.
9141 2016-05-18 Martin Jambor <mjambor@suse.cz>
9144 * cgraph.h (cgraph_indirect_call_info): New field
9145 guaranteed_unmodified.
9146 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also pass parameter value
9147 to ipa_find_agg_cst_for_param, check guaranteed_unmodified when
9149 * ipa-inline-analysis.c (evaluate_conditions_for_known_args): Also
9150 pass the parameter value to ipa_find_agg_cst_for_param.
9151 * ipa-prop.c (ipa_load_from_parm_agg): New parameter
9152 guaranteed_unmodified, store AA results there instead of bailing out
9154 (ipa_note_param_call): Also initialize guaranteed_unmodified flag.
9155 (ipa_analyze_indirect_call_uses): Also set guaranteed_unmodified flag.
9156 (find_constructor_constant_at_offset): New function.
9157 (ipa_find_agg_cst_from_init): Likewise.
9158 (ipa_find_agg_cst_for_param): Also seearch for aggregate values in
9159 static initializers of contants, report back through a new paameter
9160 from_global_constant if that was the case.
9161 (try_make_edge_direct_simple_call): Also pass parameter value to
9162 ipa_find_agg_cst_for_param, check guaranteed_unmodified when
9164 (ipa_write_indirect_edge_info): Stream new flag guaranteed_unmodified.
9165 (ipa_read_indirect_edge_info): Likewise.
9166 * ipa-prop.h (ipa_find_agg_cst_for_param): Update declaration.
9167 (ipa_load_from_parm_agg): Likewise.
9169 2016-05-18 Jiong Wang <jiong.wang@arm.com>
9171 PR rtl-optimization/71150
9172 * lra-constraint (process_addr_reg): Guard "in_class_p" with REG_P
9175 2016-05-18 Michael Meissner <meissner@linux.vnet.ibm.com>
9178 * config/rs6000/constraints.md (wE constraint): New constraint
9179 for a vector constant that can be loaded with XXSPLTIB.
9180 (wM constraint): New constraint for a vector constant of a 1's.
9181 (wS constraint): New constraint for a vector constant that can be
9182 loaded with XXSPLTIB and a vector sign extend instruction.
9183 * config/rs6000/predicates.md (xxspltib_constant_split): New
9184 predicates for wE/wS constraints.
9185 (xxspltib_constant_nosplit): Likewise.
9186 (easy_vector_constant): Add support for constants that can be
9187 loaded via XXSPLTIB.
9188 (all_ones_constant): New predicate for vector constant with all
9190 (splat_input_operand): Add support for ISA 3.0 word splat operations.
9191 * config/rs6000/rs6000.c (xxspltib_constant_p): New function to
9192 return if a constant can be loaded with the ISA 3.0 XXSPLTIB
9193 instruction and possibly with a sign extension.
9194 (output_vec_const_move): Add support for XXSPLTIB. If we are
9195 loading up 0/-1 into Altivec registers, prefer using VSPLTISW
9196 instead of XXLXOR/XXLORC.
9197 (rs6000_expand_vector_init): Add support for ISA 3.0 word splat
9199 (rs6000_legitimize_reload_address): Likewise.
9200 (rs6000_output_move_128bit): Use output_vec_const_move to emit
9202 * config/rs6000/vsx.md (VSX_M): Add TImode (if -mvsx-timode) and
9203 combine VSX_M and VSX_M2 into one iterator.
9205 (VSINT_84): New iterators for loading constants with XXSPLTIB.
9206 (VSINT_842): Likewise.
9207 (UNSPEC_VSX_SIGN_EXTEND): New UNSPEC.
9208 (xxspltib_v16qi): New insns to load up constants with the ISA 3.0
9209 XXSPLTIB instruction.
9210 (xxspltib_<mode>_nosplit): Likewise.
9211 (xxspltib_<mode>_split): New insn to load up constants with
9212 XXSPLTIB and a sign extend instruction.
9213 (vsx_mov<mode>): Replace single move that handled all vector types
9214 with separate 32-bit and 64-bit moves. Combine the movti_<bit>
9215 moves (when -mvsx-timode is in effect) into the main vector
9216 moves. Eliminate separate moves for <VSr> <VSa>, where the
9217 preferred register class (<VSr>) is listed first, and the
9218 secondary register class (<VSa>) is listed second with a '?' to
9219 discourage use. Prefer loading 0/-1 in any VSX register for ISA
9220 3.0, and Altivec registers for ISA 2.06/2.07 (PR target/70915) so
9221 that if the register was involved in a slow operation, the
9222 clear/set operation does not wait for the slow operation to
9223 finish. Adjust the length attributes for 32-bit mode. Use
9224 rs6000_output_move_128bit and drop the use of the string
9225 instructions for 32-bit movti when -mvsx-timode is in effect. Use
9226 spacing so that the alternatives and attributes don't generate
9227 long lines, and put things in columns, so that it is easier to
9228 match up the operands and attributes with the insn alternatives.
9229 (vsx_mov<mode>_64bit): Likewise.
9230 (vsx_mov<mode>_32bit): Likewise.
9231 (vsx_movti_64bit): Fold movti into normal vector moves.
9232 (vsx_movti_32bit): Likewise.
9233 (vsx_splat_<mode>, V4SI/V4SF modes): Add support for ISA 3.0 word
9235 (vsx_splat_v4si_internal): Likewise.
9236 (vsx_splat_v4sf_internal): Likewise.
9237 (vector fusion peepholes): Use VSX_M instead of VSX_M2.
9238 (vsx_sign_extend_qi_<mode>): New ISA 3.0 instructions to sign
9239 extend vector elements.
9240 (vsx_sign_extend_hi_<mode>): Likewise.
9241 (vsx_sign_extend_si_v2di): Likewise.
9242 * config/rs6000/rs6000-protos.h (xxspltib_constant_p): Add
9244 * doc/md.texi (PowerPC constraints): Document the wE, wM, and wS
9245 constraints. Add trailing period to wL documentation.
9247 2016-05-18 Richard Sandiford <richard.sandiford@arm.com>
9250 * tree-dfa.h (replace_abnormal_ssa_names): Declare.
9251 * tree-dfa.c (replace_abnormal_ssa_names): New function.
9252 * tree-call-cdce.c: Include tree-dfa.h.
9253 (can_guard_call_p): New function, extracted from...
9254 (can_use_internal_fn): ...here.
9255 (shrink_wrap_one_built_in_call_with_conds): Remove failure path
9257 (shrink_wrap_one_built_in_call): Likewise.
9258 (use_internal_fn): Likewise.
9259 (shrink_wrap_conditional_dead_built_in_calls): Update accordingly
9260 and return void. Call replace_abnormal_ssa_names.
9261 (pass_call_cdce::execute): Check can_guard_call_p during the
9262 initial walk. Assume shrink_wrap_conditional_dead_built_in_calls
9263 will always change something.
9265 2016-05-18 Martin Jambor <mjambor@suse.cz>
9268 * ipa-prop.c (determine_locally_known_aggregate_parts): Bail out early
9269 if parameter PARAM_IPA_MAX_AGG_ITEMS is zero.
9271 2016-05-18 Martin Jambor <mjambor@suse.cz>
9274 * ipa-inline.h (condition): New field size.
9275 * ipa-inline-analysis.c (add_condition): New parameter SIZE, use it
9276 for comaprison and store it into the new condition.
9277 (evaluate_conditions_for_known_args): Use condition size to check
9278 access sizes for all but CHANGED conditions.
9279 (unmodified_parm_1): New parameter size_p, store access size into it.
9280 (unmodified_parm): Likewise.
9281 (unmodified_parm_or_parm_agg_item): Likewise.
9282 (eliminated_by_inlining_prob): Pass NULL to unmodified_parm as size_p.
9283 (set_cond_stmt_execution_predicate): Extract access sizes and store
9285 (set_switch_stmt_execution_predicate): Likewise.
9286 (will_be_nonconstant_expr_predicate): Likewise.
9287 (will_be_nonconstant_predicate): Likewise.
9288 (inline_read_section): Stream condition size.
9289 (inline_write_summary): Likewise.
9291 2016-05-18 Richard Biener <rguenther@suse.de>
9293 * tree-ssa-loop-im.c (determine_max_movement): Properly add
9294 condition cost to PHI cost instead of total_cost.
9296 2016-05-18 Martin Liska <mliska@suse.cz>
9299 * ipa-icf.c (sem_variable::merge): Set DECL_PT_UID for
9302 2016-05-18 Richard Biener <rguenther@suse.de>
9304 * lto-streamer.h (LTO_major_version): Bump to 6.
9306 2016-05-18 Segher Boessenkool <segher@kernel.crashing.org>
9308 * function.c (make_split_prologue_seq, make_prologue_seq,
9309 make_epilogue_seq): New functions, factored out from...
9310 (thread_prologue_and_epilogue_insns): Here.
9312 2016-05-18 Segher Boessenkool <segher@kernel.crashing.org>
9314 * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
9315 cleanup_cfg with CLEANUP_EXPENSIVE after shrink-wrapping instead
9316 of before. Add a comment.
9318 2016-05-18 Bin Cheng <bin.cheng@arm.com>
9320 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check invariant
9321 expression pointer, not pointer to the pointer.
9323 2016-05-18 Jakub Jelinek <jakub@redhat.com>
9325 * config/i386/sse.md (pbroadcast_evex_isa): New mode attr.
9326 (avx2_pbroadcast<mode>): Add another alternative with v instead
9327 of x constraints in it, using <pbroadcast_evex_isa> isa.
9328 (avx2_pbroadcast<mode>_1): Similarly, add two such alternatives.
9330 * config/i386/sse.md (<ssse3_avx2>_palignr<mode>): Use
9331 constraint x instead of v in second alternative, add avx512bw
9334 * config/i386/sse.md (<ssse3_avx2>_pshufb<mode>3<mask_name>): Use
9335 constraint x instead of v in second alternative, add avx512bw
9338 * config/i386/sse.md (*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>): Use
9339 constraint x instead of v in second alternative, add avx512bw
9342 * config/i386/sse.md (avx2_pmaddubsw256, ssse3_pmaddubsw128): Add
9343 avx512bw alternative.
9345 2016-05-18 Kirill Yukhin <kirill.yukhin@intel.com>
9347 * config/i386/sse.md (define_insn "*andnot<mode>3"): Extend static
9349 (define_insn "*andnottf3"): Ditto.
9350 (define_insn "*<code><mode>3"/any_logic): Ditto.
9351 (define_insn "*<code>tf3"/any_logic): Ditto.
9352 (define_insn "sse2_storehpd"): Use Yv constraint for scalar
9353 operand to block AVX-512VL insn variant emit when it is not enabled.
9355 2016-05-18 Kirill Yukhin <kirill.yukhin@intel.com>
9357 * config/i386/sse.md (define_insn "*vec_concatv2sf_sse4_1"): Use 'Yv'
9358 constraint fot SF mode.
9360 2016-05-18 Petr Murzin <petr.murzin@intel.com>
9361 Kirill Yukhin <kirill.yukhin@intel.com>
9363 * config/i386/sse.md (define_insn "srcp14<mode>"): Use proper operand
9365 (define_insn "rsqrt14<mode>"): Ditto.
9366 (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
9367 (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
9368 (define_insn "avx512f_<code>v8div16qi2_mask_store"): Ditto.
9369 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
9370 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"):
9372 (define_insn "*avx512f_gatherdi<mode>"): Ditto.
9373 (define_insn "*avx512f_scatterdi<mode>"): Ditto.
9374 * config/i386/i386.c (ix86_print_operand): Expand check for size
9375 override codes for Intel syntax.
9377 2016-05-18 Richard Biener <rguenther@suse.de>
9379 PR tree-optimization/71168
9380 * tree-loop-distribution.c (distribute_loop): Move *destroy_p
9381 initialization earlier.
9383 2016-05-18 James Greenhalgh <james.greenhalgh@arm.com>
9385 * config/aarch64/aarch64-simd.md
9386 (aarch64_reduc_plus_internal<mode>): Rename to...
9387 (reduc_plus_scal): ...This, and remove previous implementation.
9389 2016-05-18 Richard Biener <rguenther@suse.de>
9391 * passes.def: Put late dse and cd_dce in canonical order.
9393 2016-05-17 Jan Hubicka <hubicka@ucw.cz>
9395 * ipa-inline-transform.c (preserve_function_body_p): Look for
9396 first non-thunk clone.
9397 (save_function_body): Save into first non-thunk.
9398 * lto-cgraph.c (lto_output_edge): When streaming thunk do not look
9400 (lto_output_node): Inline thunks don't need body in every
9402 * lto-streamer-in.c: Do not fixup thunk clones.
9403 * cgraphclones.c (cgraph_node::create_edge_including_clone): Skip
9405 * tree-inline.c (copy_bb): Be prepared for target node to be new after
9408 2016-05-17 Kugan Vivekanandarajah <kuganv@linaro.org>
9411 * tree-ssa-reassoc.c (transform_add_to_multiply): New.
9412 (reassociate_bb): Call transform_add_to_multiply.
9414 2016-05-17 Kugan Vivekanandarajah <kuganv@linaro.org>
9416 * config/aarch64/aarch64.c (all_extensions): Removed unused
9419 2016-05-17 Nathan Sidwell <nathan@acm.org>
9421 * config/nvptx/nvptx.c (nvptx_function_arg_boundary): New.
9422 (TARGET_FUNCTION_ARG_BOUNDARY): Override.
9424 2016-05-17 Mikhail Maltsev <maltsevm@gmail.com>
9426 PR tree-optimization/54579
9428 * match.pd (~(~X >> Y), ~(~X >>r Y), ~(~X <<r Y)): New patterns.
9430 2016-05-17 Marek Polacek <polacek@redhat.com>
9433 * tree-inline.c (expand_call_inline): Call
9434 maybe_remove_unused_call_args.
9436 2016-05-17 Jim Wilson <jim.wilson@linaro.org>
9438 * doc/cpp.texi (__GNUC__): Major version changes are no longer rare.
9439 * doc/invoke.texi (-mnan=2008): Change signalling to signaling.
9440 * doc/md.texi (fmin@var{m}3): Likewise.
9442 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
9444 * match.pd (X & C): New transformation.
9446 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
9448 * match.pd (~X & Y): New transformation.
9450 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
9452 * tree-vrp.c (simplify_truth_ops_using_ranges): Set range
9453 information for new SSA_NAME.
9454 (simplify_conversion_using_ranges): Get range through get_range_info
9455 instead of get_value_range.
9457 2016-05-17 Jiong Wang <jiong.wang@arm.com>
9459 * config/aarch64/arm_neon.h (vmvn_s8): Reimplement using C operator.
9460 Remove inline assembly.
9461 (vmvn_s16): Likewise.
9462 (vmvn_s32): Likewise.
9463 (vmvn_u8): Likewise.
9464 (vmvn_u16): Likewise.
9465 (vmvn_u32): Likewise.
9466 (vmvnq_s8): Likewise.
9467 (vmvnq_s16): Likewise.
9468 (vmvnq_s32): Likewise.
9469 (vmvnq_u8): Likewise.
9470 (vmvnq_u16): Likewise.
9471 (vmvnq_u32): Likewise.
9472 (vmvn_p8): Likewise.
9473 (vmvnq_p16): Likewise.
9475 2016-05-17 Jiong Wang <jiong.wang@arm.com>
9477 * config/aarch64/aarch64-simd.md (vmul_n_f32): Remove inline assembly.
9479 (vmul_n_s16): Likewise.
9480 (vmul_n_s32): Likewise.
9481 (vmul_n_u16): Likewise.
9482 (vmul_n_u32): Likewise.
9483 (vmulq_n_f32): Likewise.
9484 (vmulq_n_f64): Likewise.
9485 (vmulq_n_s16): Likewise.
9486 (vmulq_n_s32): Likewise.
9487 (vmulq_n_u16): Likewise.
9488 (vmulq_n_u32): Likewise.
9490 2016-05-17 Jiong Wang <jiong.wang@arm.com>
9492 * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt_to_128df): Extend
9493 to all supported modes. Rename to "*aarch64_mul3_elt_from_dup".
9495 2016-05-17 Jiong Wang <jiong.wang@arm.com>
9497 * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_to_128df): Rename
9498 to *aarch64_fma4_elt_from_dup<mode>.
9499 (*aarch64_fnma4_elt_to_128df): Rename to
9500 *aarch64_fnma4_elt_from_dup<mode>.
9501 * config/aarch64/arm_neon.h (vfma_n_f64): New.
9502 (vfms_n_f32): Likewise.
9503 (vfms_n_f64): Likewise.
9504 (vfmsq_n_f32): Likewise.
9505 (vfmsq_n_f64): Likewise.
9507 2016-05-17 Gerald Pfeifer <gerald@pfeifer.com>
9509 * wide-int.h: Change fixed_wide_int_storage from class to struct.
9511 2016-05-17 Richard Biener <rguenther@suse.de>
9513 PR tree-optimization/71132
9514 * tree-loop-distribution.c (create_rdg_cd_edges): Pass in loop.
9515 Only add control dependences for blocks in the loop.
9516 (build_rdg): Adjust.
9517 (generate_code_for_partition): Return whether loop should
9518 be destroyed and delay that.
9519 (distribute_loop): Likewise.
9520 (pass_loop_distribution::execute): Record loops to be destroyed
9521 and perform delayed destroying of loops.
9523 2016-05-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9526 * config/aarch64/aarch64-simd.md (aarch64_vmls<mode>): Delete.
9528 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
9530 * config/aarch64/aarch64-elf.h (ASM_OUTPUT_DEF): Delete.
9532 2016-05-17 Ilya Enkovich <ilya.enkovich@intel.com>
9535 * config/i386/i386.c (dimode_scalar_chain::convert_op): Fix
9536 insertion point for instructions generated by validize_mem.
9538 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
9540 * config/aarch64/aarch64.c (SHIFT_COUNT_TRUNCATED): Wrap definition
9543 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
9545 * config/aarch64/aarch64.c
9546 (aarch64_output_simd_mov_immediate): Make "buf_size" a variable
9547 rather than a macro.
9549 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
9551 * doc/invoke.texi (AArch64 Options): Various updates.
9553 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
9555 * ipa-inline-analysis.c (compute_inline_parameters): Disable inlinig
9556 into instrumentation thunks.
9557 * cif-code.def (CIF_CHKP): New.
9559 2016-05-16 Uros Bizjak <ubizjak@gmail.com>
9561 * config/i386/xopintrin.h: Correct "unsinged" typo in the comments.
9563 2016-05-16 Martin Jambor <mjambor@suse.cz>
9565 * hsa-gen.c (fillup_for_decl): Increase alignment to natural one.
9566 (get_symbol_for_decl): Sorry if a global symbol in under-aligned.
9568 2016-05-16 Marek Polacek <polacek@redhat.com>
9570 * gimple.c (maybe_remove_unused_call_args): Fix typos in the
9573 2016-05-16 Martin Jambor <mjambor@suse.cz>
9576 * omp-low.c (grid_expand_target_grid_body): Copy RESULT_DECL of
9577 the outlined kernel function.
9579 2016-05-16 Robert Suchanek <robert.suchanek@imgtec.com>
9581 * config/mips/mips.h (ISA_HAS_LSA): Enable for -mmsa.
9582 (ISA_HAS_DLSA): Ditto.
9584 2016-05-16 Matthew Fortune <matthew.fortune@imgtec.com>
9586 * config/mips/m5100.md (m51_int_load): Update the latency to 2.
9588 2016-05-16 Nathan Sidwell <nathan@acm.org>
9590 * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): Revert.
9591 (nvptx_name_replacement): Restore. Add comment.
9592 (write_fn_proto, write_fn_proto_from_insn,
9593 nvptx_output_call_insn): Restore
9594 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Delete.
9596 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
9598 * config/aarch64/aarch64.md
9599 (add<mode>3_compareC_cconly_imm): Remove use of %w.
9600 (add<mode>3_compareC_imm): Likewise.
9601 (<optab>si3_uxtw): Split into register and immediate variants.
9602 (andsi3_compare0_uxtw): Likewise.
9603 (and<mode>3_compare0): Likewise.
9604 (and<mode>3nr_compare0): Likewise.
9605 (stack_protect_test_<mode>): Don't use %x for memory operands.
9607 2016-05-16 Matthew Fortune <matthew.fortune@imgtec.com>
9609 * config/mips/mips-cpus.def (p5600): Add multi-line brackets.
9611 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
9613 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
9614 Split integer shifts into shift_reg and bfm.
9615 (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
9616 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
9617 (ror<mode>3_insn): Likewise.
9618 (<optab>si3_insn_uxtw): Likewise.
9619 (<optab><mode>3_insn): Change to rotate_imm.
9620 (extr<mode>5_insn_alt): Likewise.
9621 (extrsi5_insn_uxtw): Likewise.
9622 (extrsi5_insn_uxtw_alt): Likewise.
9624 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
9626 * doc/tm.texi: Regenerate.
9627 * doc/tm.texi.in (TARGET_INVALID_PARAMETER_TYPE): Remove.
9628 (TARGET_INVALID_RETURN_TYPE): Remove.
9629 * system.h: Poison TARGET_INVALID_PARAMETER_TYPE and
9630 TARGET_INVALID_RETURN_TYPE.
9631 * target.def (invalid_parameter_type): Remove.
9632 (invalid_return_type): Remove.
9634 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
9636 * ipa-inline-analysis.c (compute_inline_parameters): Be more reailistic
9637 on estimating thunk bodies; do not set inline_failed to CIF_THUNK for
9639 * ipa-inline-transform.c (inline_call): When inlining into thunk produce
9641 (preserve_function_body_p): No need to preserve function body
9642 * cif-codes.def (CIF_THUNK): Remove.
9643 * cgraphclones.c (duplicate_thunk_for_node): Thunks calls are inlinable.
9645 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
9647 * tree-inline.c (expand_call_inline): recurse after inlining thunk.
9649 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
9651 * tree.c (free_lang_data_in_decl): Also set target/optimization flags
9654 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
9656 * ipa-inline.c (report_inline_failed_reason): Look into thunks, too
9657 (inline_small_functions): Do not look for function symbol when
9660 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
9662 * lto-cgraph.c (compute_ltrans_boundary, output_symtab): Fix handling
9665 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
9666 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9667 Jiong Wang <jiong.wang@arm.com>
9669 * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
9670 for __ARM_FP16_FORMAT_IEEE and __ARM_FP16_FORMAT_ALTERNATIVE.
9671 Define __ARM_FP16_ARGS when appropriate.
9672 * config/arm/arm.c (arm_invalid_parameter_type): Remove
9674 (arm_invalid_return_type): Likewise.
9675 (TARGET_INVALID_PARAMETER_TYPE): Remove.
9676 (TARGET_INVALID_RETURN_TYPE): Remove.
9677 (aapcs_vfp_sub_candidate): Allow HFmode.
9678 (aapcs_vfp_allocate): Add comment. Support HFmode.
9679 (aapcs_vfp_allocate_return_reg): Likewise.
9680 (struct aapcs_cp_arg_layout): Slightly reword comments for
9681 is_return_candidate and allocate_return_reg.
9682 (output_mov_vfp): Update assert.
9683 (arm_hard_regno_mode_ok): Remove comment, update HF-mode
9685 (arm_invalid_parameter_type): Remove.
9686 (amr_invalid_return_type): Remove.
9687 * config/arm/arm.h (TARGET_NEON_FP16): Fix definition.
9688 * config/arm/arm.md (*arm32_movhf): Disable for TARGET_VFP.
9689 * config/arm/vfp.md (*movhf_vfp): Enable for TARGET_VFP.
9691 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
9693 * config/aarch64/aarch64.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
9694 * config/aarch64/arch64-protos.h
9695 (aarch64_legitimize_reload_address): Remove.
9696 * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
9699 2016-05-16 Eric Botcazou <ebotcazou@adacore.com>
9701 * configure.ac: Add ACX_NONCANONICAL_HOST.
9702 * configure: Regenerate.
9703 * Makefile.in: Set host_noncanonical.
9705 2016-05-14 Uros Bizjak <ubizjak@gmail.com>
9708 * config/i386/i386.md (*movtf_internal): Before register allocation,
9709 do not allow FP constants for CM_MEDIUM memory model, allow only
9710 standard FP constants for CM_LARGE and CM_LARGE_PIC models.
9711 (*movxf_internal): Ditto.
9712 (*movdf_internal): Ditto.
9713 (*movsf_internal): Ditto.
9715 2016-05-13 Segher Boessenkool <segher@kernel.crashing.org>
9717 PR rtl-optimization/67483
9718 * combine.c (make_compound_operation): Don't call extract_left_shift
9719 with negative shift amounts.
9721 2016-05-13 Jakub Jelinek <jakub@redhat.com>
9724 * fold-const.c (fold_checksum_tree): Allow modification
9725 of TYPE_ALIAS_SET during folding.
9727 * config/i386/i386.c (ix86_compute_frame_layout, ix86_expand_prologue,
9728 ix86_expand_split_stack_prologue): Use HOST_WIDE_INT_C macro.
9729 (ix86_split_to_parts): Likewise. Fix up formatting.
9731 2016-05-13 H.J. Lu <hongjiu.lu@intel.com>
9733 * tree-ssa-loop-ivopts.c (create_new_ivs): Cast to
9734 unsigned HOST_WIDE_INT with HOST_WIDE_INT_PRINT_UNSIGNED in
9737 2016-05-13 Nathan Sidwell <nathan@acm.org>
9739 * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): New.
9740 (nvptx_name_replacement): Delete.
9741 (write_fn_proto, write_fn_proto_from_insn,
9742 nvptx_output_call_insn): Remove nvptx_name_replacement call.
9743 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Override.
9744 * langhooks.c (add_builtin_funcction_common): Call
9745 targetm.mangle_decl_assembler_name.
9747 * config/nvptx/nvptx.c (write_fn_proto): Handle
9748 BUILT_IN_ATOMIC_COMPARE_EXCHANGE_n oddity.
9750 2016-05-13 Martin Liska <mliska@suse.cz>
9752 * tree-ssa-loop-ivopts.c (create_new_ivs): Use HOST_WIDE_INT_PRINT_DEC
9753 and PRIu64 in printf format.
9755 2016-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9757 * tree-ssa-loop-ivanon.c (try_unroll_loop_completely): Typo fix in
9760 2016-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9762 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
9763 Change --param max-completely-peeled-times to
9764 --param max-completely-peel-times in dump file printing.
9766 2016-05-13 Richard Biener <rguenther@suse.de>
9768 PR tree-optimization/42587
9769 * tree-ssa-math-opts.c (perform_symbolic_merge): Handle BIT_FIELD_REF.
9770 (find_bswap_or_nop_1): Likewise.
9771 (bswap_replace): Likewise.
9773 2016-05-13 Martin Liska <mliska@suse.cz>
9775 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern):
9776 Initialize a variable with default value.
9778 2016-05-13 Martin Liska <mliska@suse.cz>
9780 * doc/invoke.texi: Enhance explanation of error recovery
9783 2016-05-13 Martin Liska <mliska@suse.cz>
9785 * tree-ssa-loop-ivopts.c (avg_loop_niter): Fix coding style.
9786 (struct cost_pair): Change inv_expr_id (int) to inv_expr
9787 (iv_inv_expr_ent *).
9788 (struct iv_inv_expr_ent): Comment struct fields.
9789 (sort_iv_inv_expr_ent): New function.
9790 (struct ivopts_data): Rename inv_expr_id to max_inv_expr_id.
9791 (struct iv_ca): Replace used_inv_expr and num_used_inv_expr with
9792 a hash_map between iv_inv_expr_ent and number of usages.
9793 (niter_for_exit): Fix coding style.
9794 (tree_ssa_iv_optimize_init): Use renamed variable.
9795 (determine_base_object): Fix coding style.
9796 (alloc_iv): Likewise.
9797 (find_interesting_uses_outside): Likewise.
9798 (add_candidate_1): Likewise.
9799 (add_standard_iv_candidates): Likewise.
9800 (set_group_iv_cost): Replace inv_expr_id with inv_expr.
9801 (prepare_decl_rtl): Fix coding style.
9802 (get_address_cost): Likewise.
9803 (get_shiftadd_cost): Likewise.
9804 (force_expr_to_var_cost): Likewise.
9805 (compare_aff_trees): Likewise.
9806 (get_expr_id): Restructure the function.
9807 (get_loop_invariant_expr_id): Renamed to
9808 get_loop_invariant_expr.
9809 (get_computation_cost_at): Replace usage of inv_expr_id with
9811 (get_computation_cost): Likewise.
9812 (determine_group_iv_cost_generic): Likewise.
9813 (determine_group_iv_cost_address): Likewise.
9814 (iv_period): Fix coding style.
9815 (iv_elimination_compare_lt): Likewise.
9816 (may_eliminate_iv): Likewise.
9817 (determine_group_iv_cost_cond): Replace usage of inv_expr_id with
9819 (determine_group_iv_costs): Dump invariant expressions.
9820 (iv_ca_recount_cost): Use the newly added hash_map.
9821 (iv_ca_set_remove_invariants): Fix coding style.
9822 (iv_ca_set_add_invariants): Fix coding style.
9823 (iv_ca_set_no_cp): Utilize the newly added hash_map for used
9825 (iv_ca_set_cp): Likewise.
9826 (iv_ca_new): Initialize the newly added hash_map and remove
9827 initialization of fields.
9828 (iv_ca_free): Delete the hash_map.
9829 (iv_ca_dump): Dump invariant expressions.
9830 (iv_ca_extend): Fix coding style.
9831 (try_add_cand_for): Likewise.
9832 (create_new_ivs): Dump information about # of avg iterations and
9833 # of used invariant expressions.
9834 (rewrite_use_compare): Fix coding style.
9835 (free_loop_data): Set default value for max_inv_expr_id.
9837 2016-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
9839 * cse.c (rest_of_handle_cse): Use cleanup_cfg
9840 returned value cse_cfg_altered computation.
9841 (rest_of_handle_cse2): Likewise.
9842 (rest_of_handle_cse_after_global_opts): Likewise.
9844 2016-05-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9847 * config/arm/arm.c (arm32_output_mi_thunk): New.
9848 (arm_output_mi_thunk): Rename to arm_thumb1_mi_thunk. Rework
9849 to split Thumb1 vs TARGET_32BIT functionality.
9850 (arm_thumb1_mi_thunk): New.
9852 2016-05-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9854 * config/aarch64/aarch64.c (TARGET_OMIT_STRUCT_RETURN_REG): Set
9857 2016-05-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9860 * config/i386/i386.c (ix86_in_large_data_p): Guard against NULL exp.
9862 2016-05-13 Eric Botcazou <ebotcazou@adacore.com>
9864 * builtins.c (expand_builtin_memcmp): Do not emit the call here.
9865 (expand_builtin_trap): Emit a regular call.
9866 (set_builtin_user_assembler_name): Remove obsolete cases.
9867 * dse.c (scan_insn): Adjust.
9868 * except.c: Include calls.h.
9869 (sjlj_emit_function_enter): If DONT_USE_BUILTIN_SETJMP is defined,
9870 emit a regular call to setjmp.
9871 * expr.c (emit_block_move_hints): Call emit_block_copy_via_libcall.
9872 (block_move_libcall_safe_for_call_parm): Use memcpy builtin.
9873 (emit_block_move_via_libcall): Delete.
9874 (block_move_fn): Delete.
9875 (init_block_move_fn): Likewise.
9876 (emit_block_move_libcall_fn): Likewise.
9877 (emit_block_op_via_libcall): New function.
9878 (set_storage_via_libcall): Tidy up and use memset builtin.
9879 (block_clear_fn): Delete.
9880 (init_block_clear_fn): Likewise.
9881 (clear_storage_libcall_fn): Likewise.
9882 (expand_assignment): Call emit_block_move_via_libcall.
9883 Do not include gt-expr.h.
9884 * expr.h (emit_block_op_via_libcall): Declare.
9885 (emit_block_copy_via_libcall): New inline function.
9886 (emit_block_move_via_libcall): Likewise.
9887 (emit_block_comp_via_libcall): Likewise.
9888 (block_clear_fn): Delete.
9889 (init_block_move_fn): Likewise.
9890 (init_block_clear_fn): Likewise.
9891 (emit_block_move_via_libcall): Likewise.
9892 (set_storage_via_libcall): Add default parameter value.
9893 * libfuncs.h (enum libfunc_index): Remove obsolete values.
9894 (abort_libfunc): Delete.
9895 (memcpy_libfunc): Likewise.
9896 (memmove_libfunc): Likewise.
9897 (memcmp_libfunc): Likewise.
9898 (memset_libfunc): Likewise.
9899 (setbits_libfunc): Likewise.
9900 (setjmp_libfunc): Likewise.
9901 (longjmp_libfunc): Likewise.
9902 (profile_function_entry_libfunc): Likewise.
9903 (profile_function_exit_libfunc): Likewise.
9904 (gcov_flush_libfunc): Likewise.
9905 * optabs-libfuncs.c (build_libfunc_function): Set DECL_ARTIFICIAL
9906 and DECL_VISIBILITY on the declaration.
9907 (init_optabs): Do not initialize obsolete libfuncs.
9908 * optabs.c (prepare_cmp_insn): Call emit_block_comp_via_libcall.
9909 * tree-core.h (ECF_RET1): Define.
9910 (ECF_TM_PURE): Adjust.
9911 (ECF_TM_BUILTIN): Likewise.
9912 * tree.c (set_call_expr_flags): Deal with ECF_RET1.
9913 (build_common_builtin_nodes): Initialize abort builtin.
9914 Add ECF_RET1 on memcpy, memmove and memset builtins.
9915 Pass final flags for alloca and alloca_with_align builtins.
9916 * config/alpha/alpha.c (alpha_init_libfuncs): Do not initialize
9918 * config/ia64/ia64.c (ia64_vms_init_libfuncs): Likewise.
9919 * config/i386/i386.c (ix86_expand_set_or_movmem): Adjust call to
9920 set_storage_via_libcall and call emit_block_copy_via_libcall.
9922 2016-05-12 Uros Bizjak <ubizjak@gmail.com>
9924 * config/i386/i386.md (*call_got_x32): Change operand 0 to
9925 DImode before it is passed to ix86_output_call_operand.
9926 (*call_value_got_x32): Ditto for operand 1.
9928 2016-05-12 Jiong Wang <jiong.wang@arm.com>
9930 PR rtl-optimization/70904
9931 * lra-constraint.c (process_addr_reg): Relax the restriction on subreg
9932 reload for wide mode.
9934 2016-05-12 Marek Polacek <polacek@redhat.com>
9937 * langhooks-def.h (lhd_incomplete_type_error): Adjust declaration.
9938 * langhooks.c (lhd_incomplete_type_error): Add location parameter.
9939 * langhooks.h (incomplete_type_error): Likewise.
9940 * tree.c (size_in_bytes_loc): Renamed from size_in_bytes. Add location
9941 parameter, pass it down to incomplete_type_error.
9942 * tree.h (size_in_bytes): New inline overload.
9943 (size_in_bytes_loc): Renamed from size_in_bytes.
9945 2016-05-12 Richard Biener <rguenther@suse.de>
9947 PR tree-optimization/71059
9948 * tree-ssa-pre.c (phi_translate_1): Fully fold translated
9949 nary before looking up or entering the expression into the VN
9951 * tree-ssa-sccvn.c (vn_nary_build_or_lookup): Fix comment typo.
9952 Make sure to re-use NARYs without result as inserted by
9955 2016-05-12 Richard Biener <rguenther@suse.de>
9957 PR tree-optimization/71062
9958 * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
9960 * tree-ssa-structalias.c (set_uids_in_ptset): Set
9961 vars_contains_restrict if the var is a restrict tag.
9962 * tree-ssa-alias.c (ptrs_compare_unequal): If vars_contains_restrict
9963 do not disambiguate pointers against it.
9964 (dump_points_to_solution): Re-structure and adjust for new
9965 vars_contains_restrict flag.
9966 * gimple-pretty-print.c (pp_points_to_solution): Likewise.
9968 2016-05-12 Martin Liska <mliska@suse.cz>
9970 * doc/invoke.texi: Explain connection between
9971 -fsanitize-recover=address and ASAN_OPTIONS="halt_on_error=1".
9973 2016-05-12 Ilya Enkovich <ilya.enkovich@intel.com>
9975 PR tree-optimization/71006
9976 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
9977 consider COND_EXPR as a mask producer.
9979 2016-05-12 Marek Polacek <polacek@redhat.com>
9982 * opts.c (common_handle_option): Detect missing argument for --help^.
9984 2016-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9987 * config/arm/arm.c (arm_output_multireg_pop): Avoid POP instruction
9988 when popping the PC and within an interrupt handler routine.
9989 Add missing tab to output of "ldmfd".
9990 (output_return_instruction): Output LDMFD with SP update rather
9991 than POP when returning from interrupt handler.
9993 2016-05-12 Jakub Jelinek <jakub@redhat.com>
9995 * config/i386/i386.md (isa): Add x64_avx512dq, enable if
9996 TARGET_64BIT && TARGET_AVX512DQ.
9997 * config/i386/sse.md (*vec_extract<mode>): Add avx512bw alternatives.
9998 (*vec_extract<PEXTR_MODE12:mode>_zext): Add avx512bw alternative.
9999 (*vec_extract<ssevecmodelower>_0, *vec_extractv4si_0_zext,
10000 *vec_extractv2di_0_sse): Use v constraint instead of x constraint.
10001 (*vec_extractv4si): Add avx512dq and avx512bw alternatives.
10002 (*vec_extractv4si_zext): Add avx512dq alternative.
10003 (*vec_extractv2di_1): Add x64_avx512dq and avx512bw alternatives,
10004 use v instead of x constraint in other alternatives where possible.
10006 * config/i386/sse.md (sse2_loadld): Use v instead of x
10007 constraint in alternatives 0,1,4.
10009 * config/i386/sse.md (pinsr_evex_isa): New mode attr.
10010 (<sse2p4_1>_pinsr<ssemodesuffix>): Add 2 alternatives with
10011 v constraints instead of x and <pinsr_evex_isa> isa attribute.
10014 * config/i386/sse.md (<sse2_avx2>_packssdw<mask_name>,
10015 <sse4_1_avx2>_packusdw<mask_name>): Make sure EVEX encoded insn
10016 is not emitted unless TARGET_AVX512BW.
10017 (<sse2_avx2>_packuswb<mask_name>, <sse2_avx2>_packsswb<mask_name>):
10018 Likewise. For TARGET_AVX512BW, use "=v" constraint instead of "=x"
10019 for the result operand.
10021 * config/i386/sse.md (*vec_setv4sf_sse4_1, sse4_1_insertps): Use v
10022 constraint instead of x in avx alternatives. Use maybe_evex instead
10025 * config/i386/constraints.md (Yv): New constraint.
10026 * config/i386/i386.h (VALID_AVX512VL_128_REG_MODE): Allow
10027 TFmode and V1TImode in xmm16+ registers for TARGET_AVX512VL.
10028 * config/i386/i386.md (avx512fvecmode): New mode attr.
10029 (*pushtf): Use v constraint instead of x.
10030 (*movtf_internal): Likewise. For TARGET_AVX512VL and
10031 xmm16+ registers, use vmovdqu64 or vmovdqa64 instructions.
10032 (*absneg<mode>2): Use Yv constraint instead of x constraint.
10033 (*absnegtf2_sse): Likewise.
10034 (copysign<mode>3_const, copysign<mode>3_var): Likewise.
10035 * config/i386/sse.md (*andnot<mode>3): Add avx512vl and
10036 avx512f alternatives.
10037 (*andnottf3, *<code><mode>3, *<code>tf3): Likewise.
10039 2016-05-12 Richard Biener <rguenther@suse.de>
10041 PR tree-optimization/71060
10042 * tree-data-ref.c (initialize_data_dependence_relation): Do not
10043 require exact match of DR_BASE_OBJECT but only matching address and
10046 2016-05-12 Richard Biener <rguenther@suse.de>
10048 PR tree-optimization/70986
10049 * cfganal.c: Include cfgloop.h.
10050 (dfs_find_deadend): Prefer to take edges exiting loops.
10052 2016-05-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10054 * gcc.target/powerpc/pr70963.c: Require at least power8 at both
10055 compile and run time.
10057 2016-05-11 Mikhail Maltsev <maltsevm@gmail.com>
10060 * doc/invoke.texi (Wduplicate-decl-specifier): Document new option.
10062 2016-05-11 Uros Bizjak <ubizjak@gmail.com>
10064 * config/i386/i386.c (legitimize_pic_address): Use
10065 copy_to_suggested_reg instead of gen_movsi.
10067 2016-05-11 Michael Meissner <meissner@linux.vnet.ibm.com>
10069 * config/rs6000/predicates.md (quad_memory_operand): Move most of
10070 the code into quad_address_p and call it to share code with
10071 vsx_quad_dform_memory_operand.
10072 (vsx_quad_dform_memory_operand): New predicate for ISA 3.0 vector
10074 * config/rs6000/rs6000.opt (-mlra): Switch to being an option mask
10075 bit instead of being a separate word. Split -mpower9-dform into
10076 two switches, -mpower9-dform-scalar and -mpower9-dform-vector.
10077 * config/rs6000/rs6000.c (RELOAD_REG_QUAD_OFFSET): New addr_mask
10078 for the register class supporting 128-bit quad word memory offsets.
10079 (mode_supports_vsx_dform_quad): Helper function to return if the
10080 register class uses quad word memory offsets.
10081 (rs6000_debug_addr_mask): Add support for quad word memory offsets.
10082 (rs6000_debug_reg_global): Always print if we are using LRA or not.
10083 (rs6000_setup_reg_addr_masks): If ISA 3.0 vector d-form
10084 instructions are enabled, set up the appropriate addr_masks for
10086 (rs6000_init_hard_regno_mode_ok): wb constraint is now based on
10087 -mpower9-dform-scalar, instead of -mpower9-dform.
10088 (rs6000_option_override_internal): Split -mpower9-dform into two
10089 switches, -mpower9-dform-scalar and -mpower9-dform-vector. The
10090 -mpower9-dform switch sets or clears both. If we are not using
10091 the LRA register allocator, do not enable -mpower9-dform-vector by
10092 default. If we are using LRA, enable -mpower9-dform-vector and
10093 -mvsx-timode if it is appropriate. Issue a warning if either
10094 -mpower9-dform-vector or -mvsx-timode are explicitly used without
10096 (quad_address_offset_p): New helper function to return if the
10097 offset is legal for quad word memory instructions.
10098 (quad_address_p): New function to determin if GPR or vector
10099 register quad word memory addresses are legal.
10100 (mem_operand_gpr): Validate quad word address offsets.
10101 (reg_offset_addressing_ok_p): Add support for ISA 3.0 vector
10102 d-form (register + offset) instructions.
10103 (offsettable_ok_by_alignment): Likewise.
10104 (rs6000_legitimate_offset_address_p): Likewise.
10105 (legitimate_lo_sum_address_p): Likewise.
10106 (rs6000_legitimize_address): Likewise.
10107 (rs6000_legitimize_reload_address): Add more debug statements for
10109 (rs6000_legitimate_address_p): Add support for ISA 3.0 vector
10110 d-form instructions.
10111 (rs6000_secondary_reload_memory): Add support for ISA 3.0 vector
10112 d-form instructions. Distinguish different cases in debug
10113 output. (rs6000_secondary_reload_inner): Add support for ISA 3.0 vector
10114 d-form instructions.
10115 (rs6000_preferred_reload_class): Likewise.
10116 (rs6000_output_move_128bit): Add support for ISA 3.0 d-form
10117 instructions. If ISA 3.0 is available, generate lxvx/stxvx instead
10118 of the ISA 2.06 indexed memory instructions.
10119 (rs6000_emit_prologue): If we have ISA 3.0 d-form instructions,
10120 use them to save/restore the saved vector registers instead of
10121 using Altivec instructions.
10122 (rs6000_emit_epilogue): Likewise.
10123 (rs6000_lra_p): Use TARGET_LRA instead of the old option word.
10124 (rs6000_opt_masks): Split -mpower9-dform into
10125 -mpower9-dform-scalar and -mpower9-dform-vector.
10126 (rs6000_print_options_internal): Print -mno-<switch> if <switch>
10128 * config/rs6000/vsx.md (p9_vecload_<mode>): Delete hack to emit
10129 ISA 3.0 vector indexed memory instructions, and fold the code into
10130 the normal mov<mode> patterns.
10131 (p9_vecstore_<mode>): Likewise.
10132 (vsx_mov<mode>): Add support for ISA 3.0 vector d-form
10134 (vsx_movti_64bit): Likewise.
10135 (vsx_movti_32bit): Likewise.
10136 * config/rs6000/constraints.md (wO constraint): New constraint for
10137 ISA 3.0 vector d-form support.
10138 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Use
10139 -mpower9-dform-scalar instead of -mpower9-dform. Add note not to
10140 include -mpower9-dform-vector until we switch over to LRA.
10141 (POWERPC_MASKS): Add -mlra. Split -mpower9-dform into two.
10142 switches, -mpower9-dform-scalar and -mpower9-dform-vector.
10143 * config/rs6000/rs6000-protos.h (quad_address_p): Add declaration.
10144 * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
10145 for -mpower9-dform and -mlra.
10146 * doc/md.texi (wO constraint): Document wO constraint.
10148 2016-05-11 Alexander Monakov <amonakov@ispras.ru>
10150 * genattr.c (main): Change 'rtx' to 'rtx_insn *' in prototypes of
10151 'insn_latency', 'maximal_insn_latency', 'min_insn_conflict_delay'.
10152 * genautomata.c (output_internal_insn_code_evaluation): Simplify.
10153 Move handling of non-insn arguments inline into the sole user:
10154 (output_trans_func): ...here.
10155 (output_min_insn_conflict_delay_func): Change 'rtx' to 'rtx_insn *'
10156 in emitted function prototype.
10157 (output_internal_insn_latency_func): Ditto. Simplify.
10158 (output_internal_maximal_insn_latency_func): Ditto. Delete
10159 always-unused argument.
10160 (output_insn_latency_func): Ditto.
10161 (output_maximal_insn_latency_func): Ditto.
10163 2016-05-11 Richard Biener <rguenther@suse.de>
10165 PR tree-optimization/71055
10166 * tree-ssa-sccvn.c (vn_reference_lookup_3): When native-interpreting
10167 sth with precision not equal to access size verify we don't chop
10170 2016-05-11 Richard Biener <rguenther@suse.de>
10173 * dwarf2out.c (retry_incomplete_types): Set early_dwarf.
10174 (dwarf2out_finish): Move retry_incomplete_types call ...
10175 (dwarf2out_early_finish): ... here.
10177 2016-05-11 Richard Biener <rguenther@suse.de>
10179 PR middle-end/71002
10180 * alias.c (reference_alias_ptr_type): Preserve alias-set zero
10181 if the langhook insists on it.
10182 * fold-const.c (make_bit_field_ref): Add arg for the original
10183 reference and preserve its alias-set.
10184 (decode_field_reference): Take exp by reference and adjust it
10185 to the original memory reference.
10186 (optimize_bit_field_compare): Adjust callers.
10187 (fold_truth_andor_1): Likewise.
10188 * gimplify.c (gimplify_expr): Adjust in-SSA form test.
10190 2016-05-11 Ilya Enkovich <ilya.enkovich@intel.com>
10192 PR middle-end/70807
10193 * cfgrtl.h (delete_insn_and_edges): Now return bool.
10194 * cfgrtl.c (delete_insn_and_edges): Likewise.
10195 * config/i386/i386.c (convert_scalars_to_vector): Remove
10197 * cse.c (cse_insn): Compute cse_cfg_altered.
10198 (delete_trivially_dead_insns): Likewise.
10199 (cse_cc_succs): Likewise.
10200 (rest_of_handle_cse): Free dominance info if required.
10201 (rest_of_handle_cse2): Likewise.
10202 (rest_of_handle_cse_after_global_opts): Likewise.
10204 2016-05-11 Alan Modra <amodra@gmail.com>
10206 * config/rs6000/rs6000.c (is_complex_IBM_long_double,
10207 abi_v4_pass_in_fpr): New functions.
10208 (rs6000_function_arg_boundary): Exclude complex IBM long double
10209 from 64-bit alignment when ABI_V4.
10210 (rs6000_function_arg, rs6000_function_arg_advance_1,
10211 rs6000_gimplify_va_arg): Use abi_v4_pass_in_fpr.
10213 2016-05-10 Segher Boessenkool <segher@kernel.crashing.org>
10215 PR rtl-optimization/71028
10216 * cfgcleanup.c (try_optimize_cfg): Do not flip a conditional
10217 jump with just a return in the fallthrough block if the branch
10218 block contains just a return as well.
10220 2016-05-10 Marc Glisse <marc.glisse@inria.fr>
10222 * fold-const.c (fold_binary_loc) [(X ^ Y) & Y]: Remove and merge with...
10223 * match.pd ((X & Y) ^ Y): ... this.
10224 ((X & Y) & Y, (X | Y) | Y, (X ^ Y) ^ Y, (X & Y) & (X & Z), (X | Y)
10225 | (X | Z), (X ^ Y) ^ (X ^ Z)): New transformations.
10227 2016-05-10 David Malcolm <dmalcolm@redhat.com>
10229 * read-md.c (require_char_ws): New function.
10230 (read_string): Simplify using require_char_ws.
10231 (handle_constants): Likewise.
10232 (handle_enum): Likewise.
10233 (handle_file): Likewise.
10234 * read-md.h (require_char_ws): New declaration.
10235 * read-rtl.c (read_conditions): Simplify using require_char_ws.
10236 (read_mapping): Likewise.
10237 (read_rtx_code): Likewise.
10238 (read_nested_rtx): Likewise.
10240 2016-05-10 James Norris <jnorris@codesourcery.com>
10242 * config/rs6000/sysv4.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o
10243 if offloading is enabled and -fopenacc or -fopenmp is specified.
10244 (CRTOFFLOADEND): Likewise.
10245 (STARTFILE_LINUX_SPEC): Add CRTOFFLOADBEGIN.
10246 (ENDFILE_LINUX_SPEC): Add CRTOFFLOADEND.
10248 2016-05-10 Uros Bizjak <ubizjak@gmail.com>
10250 * config/i386/i386.c (legitimize_pic_address): Merge 64-bit and 32-bit
10251 gotoff_operand code paths. Use copy_to_suggested_regs and
10252 expand_simple_binop where appropriate. Cleanup.
10254 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
10257 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p): Allow
10259 (dimode_scalar_chain::vector_const_cost): New.
10260 (dimode_scalar_chain::compute_convert_gain): Handle constants.
10261 (dimode_scalar_chain::convert_op): Likewise.
10262 (dimode_scalar_chain::convert_insn): Likewise.
10264 2016-05-10 Pierre-Marie de Rodat <derodat@adacore.com>
10266 * dwarf2out.c (resolve_args_picking_1): Consider DW_OP_neg as an
10267 unary operation, not a binary one.
10269 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
10271 PR middle-end/70877
10272 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Handle
10273 calls with type casted fndecl.
10275 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
10277 PR tree-optimization/70786
10278 * tree-chkp.c (chkp_find_bounds_1): Support WITH_SIZE_EXPR.
10279 * calls.c (initialize_argument_information): Bind bounds
10280 with corresponding args passed by reference.
10282 2016-05-10 Jakub Jelinek <jakub@redhat.com>
10285 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>),
10286 *<code><mode>3<mask_name>): For !TARGET_AVX512DQ and EVEX encoding,
10287 use vp*[dq] instead of v*p[sd] instructions and adjust mode attribute
10290 2016-05-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10293 * config/rs6000/vsx.md (vsx_xvcvdpsxds_scale): Generate correct
10294 code for a zero scale factor.
10295 (vsx_xvcvdpuxds_scale): Likewise.
10297 2016-05-10 David Malcolm <dmalcolm@redhat.com>
10299 * diagnostic-show-locus.c (layout::layout): Call show_ruler
10300 if show_ruler_p was set on the context.
10301 (layout::show_ruler): New method.
10302 * diagnostic.h (struct diagnostic_context): Add field
10305 2016-05-10 Richard Biener <rguenther@suse.de>
10307 PR tree-optimization/71039
10308 * tree-ssa-phiprop.c: Include tree-ssa-loop.h.
10309 (chk_uses): New function.
10310 (propagate_with_phi): Verify we can safely replicate the lhs of an
10311 aggregate assignment on all incoming edges.
10313 2016-05-10 Oleg Endo <olegendo@gcc.gnu.org>
10315 * config/rx/rx-protos.h (is_interrupt_func, is_fast_interrupt_func):
10317 (rx_atomic_sequence): New class.
10318 * config/rx/rx.c (rx_print_operand): Use symbolic names for PSW bits.
10319 (is_interrupt_func, is_fast_interrupt_func): Make non-static and
10321 (rx_atomic_sequence::rx_atomic_sequence,
10322 rx_atomic_sequence::~rx_atomic_sequence): New functions.
10323 * config/rx/rx.md (CTRLREG_PSW, CTRLREG_USP, CTRLREG_FPSW, CTRLREG_CPEN,
10324 CTRLREG_BPSW, CTRLREG_BPC, CTRLREG_ISP, CTRLREG_FINTV,
10325 CTRLREG_INTB): New constants.
10326 (FETCHOP): New code iterator.
10327 (fethcop_name, fetchop_name2): New iterator code attributes.
10328 (QIHI): New mode iterator.
10329 (atomic_exchange<mode>, atomic_exchangesi, xchg_mem<mode>,
10330 atomic_fetch_<fetchop_name>si, atomic_fetch_nandsi,
10331 atomic_<fetchop_name>_fetchsi, atomic_nand_fetchsi): New patterns.
10333 2016-05-10 Martin Liska <mliska@suse.cz>
10335 * tree-inline.c (remap_dependence_clique): Do not remap
10336 debugging statements.
10338 2016-05-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10340 * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly")
10341 ("*fixuns_truncdfdi2_z13")
10342 ("*fixuns_trunc<FP:mode><GPR:mode>2_z196")
10343 ("*fix_truncdfdi2_bfp_z13", "*floatunsdidf2_z13")
10344 ("*extendsfdf2_z13"): Replace TARGET_Z13 with TARGET_VX.
10346 2016-05-10 Richard Biener <rguenther@suse.de>
10348 PR tree-optimization/70497
10349 PR tree-optimization/28367
10350 * tree-ssa-sccvn.c (vn_nary_build_or_lookup): New function
10352 (visit_reference_op_load): ... here.
10353 (vn_reference_lookup_3): Use it to handle subreg-like accesses
10354 with simplified BIT_FIELD_REFs.
10355 * tree-ssa-pre.c (eliminate_insert): Handle inserting BIT_FIELD_REFs.
10356 * tree-complex.c (extract_component): Handle BIT_FIELD_REFs
10359 2016-05-10 Pierre-Marie de Rodat <derodat@adacore.com>
10361 * dwarf2out.c (add_abstract_origin_attribute): Adjust
10362 documentation comment. For BLOCK nodes, add a
10363 DW_AT_abstract_origin attribute that points to the DIE generated
10364 for the origin BLOCK.
10365 (gen_lexical_block_die): Call add_abstract_origin_attribute for
10366 blocks from inlined functions.
10368 2016-05-10 Alan Modra <amodra@gmail.com>
10371 * config/rs6000/rs6000.c (rs6000_expand_split_stack_prologue): Stop
10372 regrename modifying insns saving lr before __morestack call.
10373 * config/rs6000/rs6000.md (split_stack_return): Similarly for
10374 insns restoring lr after __morestack call.
10376 2016-05-09 Jakub Jelinek <jakub@redhat.com>
10378 * config/i386/i386.md (set_got, set_got_labelled, lwp_llwpcb,
10379 lwp_lwpval<mode>3, lwp_lwpins<mode>3): Remove constraints from
10381 * config/i386/sse.md (vec_interleave_high<mode>,
10382 vec_interleave_low<mode>, <avx512>_vpermi2var<mode>3_maskz,
10383 <avx512>_vpermt2var<mode>3_maskz): Likewise.
10385 2016-05-04 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
10387 * config/rs6000/rs6000.c (rs6000_reassociation_width): Add
10388 function for TARGET_SCHED_REASSOCIATION_WIDTH to enable
10389 parallel reassociation for power8 and forward.
10391 2016-05-09 Uros Bizjak <ubizjak@gmail.com>
10393 * config/i386/i386.md (absneg splitters with general regs): Use
10394 general_reg_operand predicate.
10395 (btsq peephole2): Use x86_64_immediate_operand to check if new
10396 value is suitable for immediate operand. Generate emitted insn
10397 using RTL expressions.
10398 (btcq peephole2): Ditto.
10399 (btrq peephole2): Ditto. Generate correct immediate operand
10402 2016-05-09 Richard Sandiford <richard.sandiford@arm.com>
10404 * cfgexpand.c (expand_debug_expr): Fix address offset for negative
10407 2016-05-09 Richard Sandiford <richard.sandiford@arm.com>
10409 * tree-affine.c (wide_int_constant_multiple_p): Add missing
10410 pointer dereference.
10412 2016-05-09 Richard Biener <rguenther@suse.de>
10414 PR tree-optimization/70985
10415 * match.pd (BIT_FIELD_REF -> (type)): Disable on GIMPLE when
10416 op0 isn't a gimple register.
10418 2016-05-09 Prachi Godbole <prachi.godbole@imgtec.com>
10420 * config/mips/i6400.md (i6400_fpu_intadd, i6400_fpu_logic)
10421 (i6400_fpu_div, i6400_fpu_cmp, i6400_fpu_float, i6400_fpu_store)
10422 (i6400_fpu_long_pipe, i6400_fpu_logic_l, i6400_fpu_float_l)
10423 (i6400_fpu_mult): New cpu units.
10424 (i6400_msa_add_d, i6400_msa_int_add, i6400_msa_short_logic3)
10425 (i6400_msa_short_logic2, i6400_msa_short_logic, i6400_msa_move)
10426 (i6400_msa_cmp, i6400_msa_short_float2, i6400_msa_div_d)
10427 (i6400_msa_div_w, i6400_msa_div_h, i6400_msa_div_b)
10428 (i6400_msa_copy, i6400_msa_branch, i6400_fpu_msa_store)
10429 (i6400_fpu_msa_load, i6400_fpu_msa_move, i6400_msa_long_logic1)
10430 (i6400_msa_long_logic2, i6400_msa_mult, i6400_msa_long_float2)
10431 (i6400_msa_long_float4, i6400_msa_long_float5)
10432 (i6400_msa_long_float8, i6400_msa_fdiv_df)
10433 (i6400_msa_fdiv_sf): New reservations.
10434 * config/mips/p5600.md (p5600_fpu_intadd, p5600_fpu_cmp)
10435 (p5600_fpu_float, p5600_fpu_logic_a, p5600_fpu_logic_b)
10436 (p5600_fpu_div, p5600_fpu_logic, p5600_fpu_float_a)
10437 (p5600_fpu_float_b, p5600_fpu_float_c, p5600_fpu_float_d)
10438 (p5600_fpu_mult, p5600_fpu_fdiv, p5600_fpu_load): New cpu units.
10439 (msa_short_int_add, msa_short_logic, msa_short_logic_move_v)
10440 (msa_short_cmp, msa_short_float2, msa_short_logic3)
10441 (msa_short_store4, msa_long_load, msa_short_store)
10442 (msa_long_logic, msa_long_float2, msa_long_float4)
10443 (msa_long_float5, msa_long_float8, msa_long_mult)
10444 (msa_long_fdiv, msa_long_div): New reservations.
10446 2016-05-09 Robert Suchanek <robert.suchanek@imgtec.com>
10447 Sameera Deshpande <sameera.deshpande@imgtec.com>
10448 Matthew Fortune <matthew.fortune@imgtec.com>
10449 Graham Stott <graham.stott@imgtec.com>
10450 Chao-ying Fu <chao-ying.fu@imgtec.com>
10452 * config.gcc: Add MSA header file for mips*-*-* target.
10453 * config/mips/constraints.md (YI, YC, YZ, Unv5, Uuv5, Usv5, Uuv6)
10454 (Ubv8i, Urv8): New constraints.
10455 * config/mips/mips-ftypes.def: Add function types for MSA
10457 * config/mips/mips-modes.def (V16QI, V8HI, V4SI, V2DI, V4SF)
10458 (V2DF, V32QI, V16HI, V8SI, V4DI, V8SF, V4DF): New modes.
10459 * config/mips/mips-msa.md: New file.
10460 * config/mips/mips-protos.h
10461 (mips_split_128bit_const_insns): New prototype.
10462 (mips_msa_idiv_insns): Likewise.
10463 (mips_split_128bit_move): Likewise.
10464 (mips_split_128bit_move_p): Likewise.
10465 (mips_split_msa_copy_d): Likewise.
10466 (mips_split_msa_insert_d): Likewise.
10467 (mips_split_msa_fill_d): Likewise.
10468 (mips_expand_msa_branch): Likewise.
10469 (mips_const_vector_same_val_p): Likewise.
10470 (mips_const_vector_same_bytes_p): Likewise.
10471 (mips_const_vector_same_int_p): Likewise.
10472 (mips_const_vector_shuffle_set_p): Likewise.
10473 (mips_const_vector_bitimm_set_p): Likewise.
10474 (mips_const_vector_bitimm_clr_p): Likewise.
10475 (mips_msa_vec_parallel_const_half): Likewise.
10476 (mips_msa_output_division): Likewise.
10477 (mips_ldst_scaled_shift): Likewise.
10478 (mips_expand_vec_cond_expr): Likewise.
10479 * config/mips/mips.c (enum mips_builtin_type): Add
10480 MIPS_BUILTIN_MSA_TEST_BRANCH.
10481 (mips_gen_const_int_vector_shuffle): New prototype.
10482 (mips_const_vector_bitimm_set_p): New function.
10483 (mips_const_vector_bitimm_clr_p): Likewise.
10484 (mips_const_vector_same_val_p): Likewise.
10485 (mips_const_vector_same_bytes_p): Likewise.
10486 (mips_const_vector_same_int_p): Likewise.
10487 (mips_const_vector_shuffle_set_p): Likewise.
10488 (mips_symbol_insns): Forbid loading symbols via immediate for
10490 (mips_valid_offset_p): Limit offset to 10-bit for MSA loads and
10492 (mips_valid_lo_sum_p): Forbid loadings symbols via %lo(base) for
10494 (mips_lx_address_p): Add support load indexed address for MSA.
10495 (mips_address_insns): Add calculation of instructions needed for
10496 stores and loads for MSA.
10497 (mips_const_insns): Move CONST_DOUBLE below CONST_VECTOR. Handle
10498 CONST_VECTOR for MSA and let it fall through.
10499 (mips_ldst_scaled_shift): New function.
10500 (mips_subword_at_byte): Likewise.
10501 (mips_msa_idiv_insns): Likewise.
10502 (mips_legitimize_move): Validate MSA moves.
10503 (mips_rtx_costs): Add UNGE, UNGT, UNLE, UNLT cases. Add
10504 calculation of costs for MSA division.
10505 (mips_split_move_p): Check if MSA moves need splitting.
10506 (mips_split_move): Split MSA moves if necessary.
10507 (mips_split_128bit_move_p): New function.
10508 (mips_split_128bit_move): Likewise.
10509 (mips_split_msa_copy_d): Likewise.
10510 (mips_split_msa_insert_d): Likewise.
10511 (mips_split_msa_fill_d): Likewise.
10512 (mips_output_move): Handle MSA moves.
10513 (mips_expand_msa_branch): New function.
10514 (mips_print_operand): Add 'E', 'B', 'w', 'v' and 'V' modifiers.
10515 Reinstate 'y' modifier.
10516 (mips_file_start): Add MSA .gnu_attribute.
10517 (mips_hard_regno_mode_ok_p): Allow TImode and 128-bit vectors in
10519 (mips_hard_regno_nregs): Always return 1 for MSA supported mode.
10520 (mips_class_max_nregs): Add register size for MSA supported mode.
10521 (mips_cannot_change_mode_class): Allow conversion between MSA
10522 vector modes and TImode.
10523 (mips_mode_ok_for_mov_fmt_p): Allow MSA to use move.v
10525 (mips_secondary_reload_class): Force MSA loads/stores via memory.
10526 (mips_preferred_simd_mode): Add preffered modes for MSA.
10527 (mips_vector_mode_supported_p): Add MSA supported modes.
10528 (mips_autovectorize_vector_sizes): New function.
10529 (mips_msa_output_division): Likewise.
10530 (MSA_BUILTIN, MIPS_BUILTIN_DIRECT_NO_TARGET)
10531 (MSA_NO_TARGET_BUILTIN, MSA_BUILTIN_TEST_BRANCH): New macros.
10532 (CODE_FOR_msa_adds_s_b, CODE_FOR_msa_adds_s_h)
10533 (CODE_FOR_msa_adds_s_w, CODE_FOR_msa_adds_s_d)
10534 (CODE_FOR_msa_adds_u_b, CODE_FOR_msa_adds_u_h)
10535 (CODE_FOR_msa_adds_u_w, CODE_FOR_msa_adds_u_du
10536 (CODE_FOR_msa_addv_b, CODE_FOR_msa_addv_h, CODE_FOR_msa_addv_w)
10537 (CODE_FOR_msa_addv_d, CODE_FOR_msa_and_v, CODE_FOR_msa_bmnz_v)
10538 (CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bmz_v, CODE_FOR_msa_bmzi_b)
10539 (CODE_FOR_msa_bnz_v, CODE_FOR_msa_bz_v, CODE_FOR_msa_bsel_v)
10540 (CODE_FOR_msa_bseli_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w)
10541 (CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b)
10542 (CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w)
10543 (CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clti_u_b)
10544 (CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w)
10545 (CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_s_b)
10546 (CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w)
10547 (CODE_FOR_msa_clei_s_d, CODE_FOR_msa_clei_u_b)
10548 (CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w)
10549 (CODE_FOR_msa_clei_u_d, CODE_FOR_msa_div_s_b)
10550 (CODE_FOR_msa_div_s_h, CODE_FOR_msa_div_s_w)
10551 (CODE_FOR_msa_div_s_d, CODE_FOR_msa_div_u_b)
10552 (CODE_FOR_msa_div_u_h, CODE_FOR_msa_div_u_w)
10553 (CODE_FOR_msa_div_u_d, CODE_FOR_msa_fadd_w, CODE_FOR_msa_fadd_d)
10554 (CODE_FOR_msa_fexdo_w, CODE_FOR_msa_ftrunc_s_w)
10555 (CODE_FOR_msa_ftrunc_s_d, CODE_FOR_msa_ftrunc_u_w)
10556 (CODE_FOR_msa_ftrunc_u_d, CODE_FOR_msa_ffint_s_w)
10557 (CODE_FOR_msa_ffint_s_d, CODE_FOR_msa_ffint_u_w)
10558 (CODE_FOR_msa_ffint_u_d, CODE_FOR_msa_fsub_w)
10559 (CODE_FOR_msa_fsub_d, CODE_FOR_msa_fmsub_d, CODE_FOR_msa_fmadd_w)
10560 (CODE_FOR_msa_fmadd_d, CODE_FOR_msa_fmsub_w, CODE_FOR_msa_fmul_w)
10561 (CODE_FOR_msa_fmul_d, CODE_FOR_msa_fdiv_w, CODE_FOR_msa_fdiv_d)
10562 (CODE_FOR_msa_fmax_w, CODE_FOR_msa_fmax_d, CODE_FOR_msa_fmax_a_w)
10563 (CODE_FOR_msa_fmax_a_d, CODE_FOR_msa_fmin_w, CODE_FOR_msa_fmin_d)
10564 (CODE_FOR_msa_fmin_a_w, CODE_FOR_msa_fmin_a_d)
10565 (CODE_FOR_msa_fsqrt_w, CODE_FOR_msa_fsqrt_d)
10566 (CODE_FOR_msa_max_s_b, CODE_FOR_msa_max_s_h)
10567 (CODE_FOR_msa_max_s_w, CODE_FOR_msa_max_s_d)
10568 (CODE_FOR_msa_max_u_b, CODE_FOR_msa_max_u_h)
10569 (CODE_FOR_msa_max_u_w, CODE_FOR_msa_max_u_d)
10570 (CODE_FOR_msa_min_s_b, CODE_FOR_msa_min_s_h)
10571 (CODE_FOR_msa_min_s_w, CODE_FOR_msa_min_s_d)
10572 (CODE_FOR_msa_min_u_b, CODE_FOR_msa_min_u_h)
10573 (CODE_FOR_msa_min_u_w, CODE_FOR_msa_min_u_d)
10574 (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
10575 (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
10576 (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
10577 (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
10578 (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
10579 (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
10580 (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
10581 (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
10582 (CODE_FOR_msa_mulv_b, CODE_FOR_msa_mulv_h, CODE_FOR_msa_mulv_w)
10583 (CODE_FOR_msa_mulv_d, CODE_FOR_msa_nlzc_b, CODE_FOR_msa_nlzc_h)
10584 (CODE_FOR_msa_nlzc_w, CODE_FOR_msa_nlzc_d, CODE_FOR_msa_nor_v)
10585 (CODE_FOR_msa_or_v, CODE_FOR_msa_ori_b, CODE_FOR_msa_nori_b)
10586 (CODE_FOR_msa_pcnt_b, CODE_FOR_msa_pcnt_h, CODE_FOR_msa_pcnt_w)
10587 (CODE_FOR_msa_pcnt_d, CODE_FOR_msa_xor_v, CODE_FOR_msa_xori_b)
10588 (CODE_FOR_msa_sll_b, CODE_FOR_msa_sll_h, CODE_FOR_msa_sll_w)
10589 (CODE_FOR_msa_sll_d, CODE_FOR_msa_slli_b, CODE_FOR_msa_slli_h)
10590 (CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d, CODE_FOR_msa_sra_b)
10591 (CODE_FOR_msa_sra_h, CODE_FOR_msa_sra_w, CODE_FOR_msa_sra_d)
10592 (CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w)
10593 (CODE_FOR_msa_srai_d, CODE_FOR_msa_srl_b, CODE_FOR_msa_srl_h)
10594 (CODE_FOR_msa_srl_w, CODE_FOR_msa_srl_d, CODE_FOR_msa_srli_b)
10595 (CODE_FOR_msa_srli_h, CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d)
10596 (CODE_FOR_msa_subv_b, CODE_FOR_msa_subv_h, CODE_FOR_msa_subv_w)
10597 (CODE_FOR_msa_subv_d, CODE_FOR_msa_subvi_b, CODE_FOR_msa_subvi_h)
10598 (CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d, CODE_FOR_msa_move_v)
10599 (CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h, CODE_FOR_msa_vshf_w)
10600 (CODE_FOR_msa_vshf_d, CODE_FOR_msa_ilvod_d, CODE_FOR_msa_ilvev_d)
10601 (CODE_FOR_msa_pckod_d, CODE_FOR_msa_pckdev_d, CODE_FOR_msa_ldi_b)
10602 (CODE_FOR_msa_ldi_hi, CODE_FOR_msa_ldi_w)
10603 (CODE_FOR_msa_ldi_d): New code_aliasing macros.
10604 (mips_builtins): Add MSA sll_b, sll_h, sll_w, sll_d, slli_b,
10605 slli_h, slli_w, slli_d, sra_b, sra_h, sra_w, sra_d, srai_b,
10606 srai_h, srai_w, srai_d, srar_b, srar_h, srar_w, srar_d, srari_b,
10607 srari_h, srari_w, srari_d, srl_b, srl_h, srl_w, srl_d, srli_b,
10608 srli_h, srli_w, srli_d, srlr_b, srlr_h, srlr_w, srlr_d, srlri_b,
10609 srlri_h, srlri_w, srlri_d, bclr_b, bclr_h, bclr_w, bclr_d,
10610 bclri_b, bclri_h, bclri_w, bclri_d, bset_b, bset_h, bset_w,
10611 bset_d, bseti_b, bseti_h, bseti_w, bseti_d, bneg_b, bneg_h,
10612 bneg_w, bneg_d, bnegi_b, bnegi_h, bnegi_w, bnegi_d, binsl_b,
10613 binsl_h, binsl_w, binsl_d, binsli_b, binsli_h, binsli_w,
10614 binsli_d, binsr_b, binsr_h, binsr_w, binsr_d, binsri_b, binsri_h,
10615 binsri_w, binsri_d, addv_b, addv_h, addv_w, addv_d, addvi_b,
10616 addvi_h, addvi_w, addvi_d, subv_b, subv_h, subv_w, subv_d,
10617 subvi_b, subvi_h, subvi_w, subvi_d, max_s_b, max_s_h, max_s_w,
10618 max_s_d, maxi_s_b, maxi_s_h, maxi_s_w, maxi_s_d, max_u_b,
10619 max_u_h, max_u_w, max_u_d, maxi_u_b, maxi_u_h, maxi_u_w,
10620 maxi_u_d, min_s_b, min_s_h, min_s_w, min_s_d, mini_s_b, mini_s_h,
10621 mini_s_w, mini_s_d, min_u_b, min_u_h, min_u_w, min_u_d, mini_u_b,
10622 mini_u_h, mini_u_w, mini_u_d, max_a_b, max_a_h, max_a_w, max_a_d,
10623 min_a_b, min_a_h, min_a_w, min_a_d, ceq_b, ceq_h, ceq_w, ceq_d,
10624 ceqi_b, ceqi_h, ceqi_w, ceqi_d, clt_s_b, clt_s_h, clt_s_w,
10625 clt_s_d, clti_s_b, clti_s_h, clti_s_w, clti_s_d, clt_u_b,
10626 clt_u_h, clt_u_w, clt_u_d, clti_u_b, clti_u_h, clti_u_w,
10627 clti_u_d, cle_s_b, cle_s_h, cle_s_w, cle_s_d, clei_s_b, clei_s_h,
10628 clei_s_w, clei_s_d, cle_u_b, cle_u_h, cle_u_w, cle_u_d, clei_u_b,
10629 clei_u_h, clei_u_w, clei_u_d, ld_b, ld_h, ld_w, ld_d, st_b, st_h,
10630 st_w, st_d, sat_s_b, sat_s_h, sat_s_w, sat_s_d, sat_u_b, sat_u_h,
10631 sat_u_w, sat_u_d, add_a_b, add_a_h, add_a_w, add_a_d, adds_a_b,
10632 adds_a_h, adds_a_w, adds_a_d, adds_s_b, adds_s_h, adds_s_w,
10633 adds_s_d, adds_u_b, adds_u_h, adds_u_w, adds_u_d, ave_s_b,
10634 ave_s_h, ave_s_w, ave_s_d, ave_u_b, ave_u_h, ave_u_w, ave_u_d,
10635 aver_s_b, aver_s_h, aver_s_w, aver_s_d, aver_u_b, aver_u_h,
10636 aver_u_w, aver_u_d, subs_s_b, subs_s_h, subs_s_w, subs_s_d,
10637 subs_u_b, subs_u_h, subs_u_w, subs_u_d, subsuu_s_b, subsuu_s_h,
10638 subsuu_s_w, subsuu_s_d, subsus_u_b, subsus_u_h, subsus_u_w,
10639 subsus_u_d, asub_s_b, asub_s_h, asub_s_w, asub_s_d, asub_u_b,
10640 asub_u_h, asub_u_w, asub_u_d, mulv_b, mulv_h, mulv_w, mulv_d,
10641 maddv_b, maddv_h, maddv_w, maddv_d, msubv_b, msubv_h, msubv_w,
10642 msubv_d, div_s_b, div_s_h, div_s_w, div_s_d, div_u_b, div_u_h,
10643 div_u_w, div_u_d, hadd_s_h, hadd_s_w, hadd_s_d, hadd_u_h,
10644 hadd_u_w, hadd_u_d, hsub_s_h, hsub_s_w, hsub_s_d, hsub_u_h,
10645 hsub_u_w, hsub_u_d, mod_s_b, mod_s_h, mod_s_w, mod_s_d, mod_u_b,
10646 mod_u_h, mod_u_w, mod_u_d, dotp_s_h, dotp_s_w, dotp_s_d,
10647 dotp_u_h, dotp_u_w, dotp_u_d, dpadd_s_h, dpadd_s_w, dpadd_s_d,
10648 dpadd_u_h, dpadd_u_w, dpadd_u_d, dpsub_s_h, dpsub_s_w, dpsub_s_d,
10649 dpsub_u_h, dpsub_u_w, dpsub_u_d, sld_b, sld_h, sld_w, sld_d,
10650 sldi_b, sldi_h, sldi_w, sldi_d, splat_b, splat_h, splat_w,
10651 splat_d, splati_b, splati_h, splati_w, splati_d, pckev_b,
10652 pckev_h, pckev_w, pckev_d, pckod_b, pckod_h, pckod_w, pckod_d,
10653 ilvl_b, ilvl_h, ilvl_w, ilvl_d, ilvr_b, ilvr_h, ilvr_w, ilvr_d,
10654 ilvev_b, ilvev_h, ilvev_w, ilvev_d, ilvod_b, ilvod_h, ilvod_w,
10655 ilvod_d, vshf_b, vshf_h, vshf_w, vshf_d, and_v, andi_b, or_v,
10656 ori_b, nor_v, nori_b, xor_v, xori_b, bmnz_v, bmnzi_b, bmz_v,
10657 bmzi_b, bsel_v, bseli_b, shf_b, shf_h, shf_w, bnz_v, bz_v,
10658 fill_b, fill_h, fill_w, fill_d, pcnt_b, pcnt_h, pcnt_w,
10659 pcnt_d, nloc_b, nloc_h, nloc_w, nloc_d, nlzc_b, nlzc_h, nlzc_w,
10660 nlzc_d, copy_s_b, copy_s_h, copy_s_w, copy_s_d, copy_u_b,
10661 copy_u_h, copy_u_w, copy_u_d, insert_b, insert_h, insert_w,
10662 insert_d, insve_b, insve_h, insve_w, insve_d, bnz_b, bnz_h,
10663 bnz_w, bnz_d, bz_b, bz_h, bz_w, bz_d, ldi_b, ldi_h, ldi_w, ldi_d,
10664 fcaf_w, fcaf_d, fcor_w, fcor_d, fcun_w, fcun_d, fcune_w, fcune_d,
10665 fcueq_w, fcueq_d, fceq_w, fceq_d, fcne_w, fcne_d, fclt_w, fclt_d,
10666 fcult_w, fcult_d, fcle_w, fcle_d, fcule_w, fcule_d, fsaf_w,
10667 fsaf_d, fsor_w, fsor_d, fsun_w, fsun_d, fsune_w, fsune_d,
10668 fsueq_w, fsueq_d, fseq_w, fseq_d, fsne_w, fsne_d, fslt_w,
10669 fslt_d, fsult_w, fsult_d, fsle_w, fsle_d, fsule_w, fsule_d,
10670 fadd_w, fadd_d, fsub_w, fsub_d, fmul_w, fmul_d, fdiv_w, fdiv_d,
10671 fmadd_w, fmadd_d, fmsub_w, fmsub_d, fexp2_w, fexp2_d, fexdo_h,
10672 fexdo_w, ftq_h, ftq_w, fmin_w, fmin_d, fmin_a_w, fmin_a_d,
10673 fmax_w, fmax_d, fmax_a_w, fmax_a_d, mul_q_h, mul_q_w, mulr_q_h,
10674 mulr_q_w, madd_q_h, madd_q_w, maddr_q_h, maddr_q_w, msub_q_h,
10675 msub_q_w, msubr_q_h, msubr_q_w, fclass_w, fclass_d, fsqrt_w,
10676 fsqrt_d, frcp_w, frcp_d, frint_w, frint_d, frsqrt_w, frsqrt_d,
10677 flog2_w, flog2_d, fexupl_w, fexupl_d, fexupr_w, fexupr_d, ffql_w,
10678 ffql_d, ffqr_w, ffqr_d, ftint_s_w, ftint_s_d, ftint_u_w,
10679 ftint_u_d, ftrunc_s_w, ftrunc_s_d, ftrunc_u_w, ftrunc_u_d,
10680 ffint_s_w, ffint_s_d, ffint_u_w, ffint_u_d, ctcmsa, cfcmsa,
10682 (mips_get_builtin_decl_index): New array.
10683 (MIPS_ATYPE_QI, MIPS_ATYPE_HI, MIPS_ATYPE_V2DI, MIPS_ATYPE_V4SI)
10684 (MIPS_ATYPE_V8HI, MIPS_ATYPE_V16QI, MIPS_ATYPE_V2DF)
10685 (MIPS_ATYPE_V4SF, MIPS_ATYPE_UV2DI, MIPS_ATYPE_UV4SI)
10686 (MIPS_ATYPE_UV8HI, MIPS_ATYPE_UV16QI): New.
10687 (mips_init_builtins): Initialize mips_get_builtin_decl_index
10689 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
10691 (mips_expand_builtin_insn): Prepare operands for
10692 CODE_FOR_msa_addvi_b, CODE_FOR_msa_addvi_h, CODE_FOR_msa_addvi_w,
10693 CODE_FOR_msa_addvi_d, CODE_FOR_msa_clti_u_b,
10694 CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w,
10695 CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_u_b,
10696 CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w,
10697 CODE_FOR_msa_clei_u_d, CODE_FOR_msa_maxi_u_b,
10698 CODE_FOR_msa_maxi_u_h, CODE_FOR_msa_maxi_u_w,
10699 CODE_FOR_msa_maxi_u_d, CODE_FOR_msa_mini_u_b,
10700 CODE_FOR_msa_mini_u_h, CODE_FOR_msa_mini_u_w,
10701 CODE_FOR_msa_mini_u_d, CODE_FOR_msa_subvi_b,
10702 CODE_FOR_msa_subvi_h, CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d,
10703 CODE_FOR_msa_ceqi_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w,
10704 CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b,
10705 CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w,
10706 CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clei_s_b,
10707 CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w,
10708 CODE_FOR_msa_clei_s_d, CODE_FOR_msa_maxi_s_b,
10709 CODE_FOR_msa_maxi_s_h, CODE_FOR_msa_maxi_s_w,
10710 CODE_FOR_msa_maxi_s_d, CODE_FOR_msa_mini_s_b,
10711 CODE_FOR_msa_mini_s_h, CODE_FOR_msa_mini_s_w,
10712 CODE_FOR_msa_mini_s_d, CODE_FOR_msa_andi_b, CODE_FOR_msa_ori_b,
10713 CODE_FOR_msa_nori_b, CODE_FOR_msa_xori_b, CODE_FOR_msa_bmzi_b,
10714 CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bseli_b, CODE_FOR_msa_fill_b,
10715 CODE_FOR_msa_fill_h, CODE_FOR_msa_fill_w, CODE_FOR_msa_fill_d,
10716 CODE_FOR_msa_ilvl_b, CODE_FOR_msa_ilvl_h, CODE_FOR_msa_ilvl_w,
10717 CODE_FOR_msa_ilvl_d, CODE_FOR_msa_ilvr_b, CODE_FOR_msa_ilvr_h,
10718 CODE_FOR_msa_ilvr_w, CODE_FOR_msa_ilvr_d, CODE_FOR_msa_ilvev_b,
10719 CODE_FOR_msa_ilvev_h, CODE_FOR_msa_ilvev_w, CODE_FOR_msa_ilvod_b,
10720 CODE_FOR_msa_ilvod_h, CODE_FOR_msa_ilvod_w, CODE_FOR_msa_pckev_b,
10721 CODE_FOR_msa_pckev_h, CODE_FOR_msa_pckev_w, CODE_FOR_msa_pckod_b,
10722 CODE_FOR_msa_pckod_h, CODE_FOR_msa_pckod_w, CODE_FOR_msa_slli_b,
10723 CODE_FOR_msa_slli_h, CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d,
10724 CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w,
10725 CODE_FOR_msa_srai_d, CODE_FOR_msa_srli_b, CODE_FOR_msa_srli_h,
10726 CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d, CODE_FOR_msa_insert_b,
10727 CODE_FOR_msa_insert_h, CODE_FOR_msa_insert_w,
10728 CODE_FOR_msa_insert_d, CODE_FOR_msa_insve_b,
10729 CODE_FOR_msa_insve_h, CODE_FOR_msa_insve_w, CODE_FOR_msa_insve_d,
10730 CODE_FOR_msa_shf_b, CODE_FOR_msa_shf_h, CODE_FOR_msa_shf_w,
10731 CODE_FOR_msa_shf_w_f, CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h,
10732 CODE_FOR_msa_vshf_w, CODE_FOR_msa_vshf_d.
10733 (mips_expand_builtin): Add case for MIPS_BULTIN_MSA_TEST_BRANCH.
10734 (mips_set_compression_mode): Disallow MSA with MIPS16 code.
10735 (mips_option_override): -mmsa requires -mfp64 and -mhard-float.
10736 These are set implicitly and an error is reported if overridden.
10737 (mips_expand_builtin_msa_test_branch): New function.
10738 (mips_expand_msa_shuffle): Likewise.
10739 (MAX_VECT_LEN): Increase maximum length of a vector to 16 bytes.
10740 (TARGET_SCHED_REASSOCIATION_WIDTH): Define target hook.
10741 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Likewise.
10742 (mips_expand_vec_unpack): Add support for MSA.
10743 (mips_expand_vector_init): Likewise.
10744 (mips_expand_vi_constant): Use CONST0_RTX (element_mode)
10745 instead of const0_rtx.
10746 (mips_msa_vec_parallel_const_half): New function.
10747 (mips_gen_const_int_vector): Likewise.
10748 (mips_gen_const_int_vector_shuffle): Likewise.
10749 (mips_expand_msa_cmp): Likewise.
10750 (mips_expand_vec_cond_expr): Likewise.
10751 * config/mips/mips.h
10752 (TARGET_CPU_CPP_BUILTINS): Add __mips_msa and __mips_msa_width.
10753 (OPTION_DEFAULT_SPECS): Ignore --with-fp-32 if -mmsa is
10755 (ASM_SPEC): Pass mmsa and mno-msa to the assembler.
10756 (ISA_HAS_MSA): New macro.
10757 (UNITS_PER_MSA_REG): Likewise.
10758 (BITS_PER_MSA_REG): Likewise.
10759 (BIGGEST_ALIGNMENT): Redefine using ISA_HAS_MSA.
10760 (MSA_REG_FIRST): New macro.
10761 (MSA_REG_LAST): Likewise.
10762 (MSA_REG_NUM): Likewise.
10763 (MSA_REG_P): Likewise.
10764 (MSA_REG_RTX_P): Likewise.
10765 (MSA_SUPPORTED_MODE_P): Likewise.
10766 (HARD_REGNO_CALL_PART_CLOBBERED): Redefine using TARGET_MSA.
10767 (ADDITIONAL_REGISTER_NAMES): Add named registers $w0-$w31.
10768 * config/mips/mips.md: Include mips-msa.md.
10769 (alu_type): Add simd_add.
10770 (mode): Add V2DI, V4SI, V8HI, V16QI, V2DF, V4SF.
10771 (type): Add simd_div, simd_fclass, simd_flog2, simd_fadd,
10772 simd_fcvt, simd_fmul, simd_fmadd, simd_fdiv, simd_bitins,
10773 simd_bitmov, simd_insert, simd_sld, simd_mul, simd_fcmp,
10774 simd_fexp2, simd_int_arith, simd_bit, simd_shift, simd_splat,
10775 simd_fill, simd_permute, simd_shf, simd_sat, simd_pcnt,
10776 simd_copy, simd_branch, simd_cmsa, simd_fminmax, simd_logic,
10777 simd_move, simd_load, simd_store. Choose "multi" for moves
10779 (qword_mode): New attribute.
10780 (insn_count): Add instruction count for quad moves.
10781 Increase the count for MIPS SIMD division.
10782 (UNITMODE): Add UNITMODEs for vector types.
10783 (addsub): New code iterator.
10784 * config/mips/mips.opt (mmsa): New option.
10785 * config/mips/msa.h: New file.
10786 * config/mips/mti-elf.h: Don't infer -mfpxx if -mmsa is
10788 * config/mips/mti-linux.h: Likewise.
10789 * config/mips/predicates.md
10790 (const_msa_branch_operand): New constraint.
10791 (const_uimm3_operand): Likewise.
10792 (const_uimm4_operand): Likewise.
10793 (const_uimm5_operand): Likewise.
10794 (const_uimm8_operand): Likewise.
10795 (const_imm5_operand): Likewise.
10796 (aq10b_operand): Likewise.
10797 (aq10h_operand): Likewise.
10798 (aq10w_operand): Likewise.
10799 (aq10d_operand): Likewise.
10800 (const_m1_operand): Likewise.
10801 (reg_or_m1_operand): Likewise.
10802 (const_exp_2_operand): Likewise.
10803 (const_exp_4_operand): Likewise.
10804 (const_exp_8_operand): Likewise.
10805 (const_exp_16_operand): Likewise.
10806 (const_vector_same_val_operand): Likewise.
10807 (const_vector_same_simm5_operand): Likewise.
10808 (const_vector_same_uimm5_operand): Likewise.
10809 (const_vector_same_uimm6_operand): Likewise.
10810 (const_vector_same_uimm8_operand): Likewise.
10811 (par_const_vector_shf_set_operand): Likewise.
10812 (reg_or_vector_same_val_operand): Likewise.
10813 (reg_or_vector_same_simm5_operand): Likewise.
10814 (reg_or_vector_same_uimm6_operand): Likewise.
10815 * doc/extend.texi (MIPS SIMD Architecture Functions): New
10817 * doc/invoke.texi (-mmsa): Document new option.
10819 2016-05-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10821 * configure.ac (enable_vtable_verify): Handle --enable-vtable-verify.
10822 * configure: Regenerate.
10823 * config.in: Regenerate.
10824 * gcc.c (VTABLE_VERIFICATION_SPEC) [!ENABLE_VTABLE_VERIFY]: Error
10825 on -fvtable-verify.
10826 * config/sol2.h [!ENABLE_VTABLE_VERIFY] (STARTFILE_VTV_SPEC): Define.
10827 (ENDFILE_VTV_SPEC): Define.
10829 2016-05-09 Kaushik Phatak <kaushik.phatak@kpit.com>
10831 * config/rl78/rl78.c (rl78_expand_prologue): Save the MDUC related
10832 registers in all interrupt handlers if necessary.
10833 (rl78_option_override): Add warning.
10834 (MUST_SAVE_MDUC_REGISTERS): New macro.
10835 (rl78_expand_epilogue): Restore the MDUC registers if necessary.
10836 * config/rl78/rl78.c (check_mduc_usage): New function.
10837 (mduc_regs): New structure to hold MDUC register data.
10838 * config/rl78/rl78.md (is_g13_muldiv_insn): New attribute.
10839 (mulsi3_g13): Add is_g13_muldiv_insn attribute.
10840 (udivmodsi4_g13): Add is_g13_muldiv_insn attribute.
10841 (mulhi3_g13): Add is_g13_muldiv_insn attribute.
10842 * config/rl78/rl78.opt (msave-mduc-in-interrupts): New option.
10843 * doc/invoke.texi (RL78 Options): Add -msave-mduc-in-interrupts.
10845 2016-05-09 Bin Cheng <bin.cheng@arm.com>
10847 * tree-if-conv.c (tree-ssa-loop.h): Include header file.
10848 (tree-ssa-loop-niter.h): Ditto.
10849 (idx_within_array_bound, ref_within_array_bound): New functions.
10850 (ifcvt_memrefs_wont_trap): Check if array ref is within bound.
10851 Factor out check on writable base object to ...
10852 (base_object_writable): ... here.
10854 2016-05-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10856 * config/arm/arm.md (probe_stack): Add modes to set source
10859 2016-05-09 Bernd Schmidt <bschmidt@redhat.com>
10861 * regrename.c (base_reg_class_for_rename): New static function.
10862 (scan_rtx_address, scan_rtx): Use it instead of base_reg_class.
10864 2016-05-08 Jan Hubicka <hubicka@ucw.cz>
10866 * cgraph.c (thunk_adjust): Export.
10867 * cgraphclones.c (cgraph_node::create_clone): Clone thunk info.
10868 * cgraphunit.c (thunk_adjust): Export.
10869 (cgraph_node::assemble_thunks_and_aliases): Do not assemble inlined
10871 * ipa-inline-analyssi.c (compute_inline_parameters): Thunks are
10873 * tree-inline.c (expand_call_inline): Expand thunks inline.
10875 2016-05-08 Uros Bizjak <ubizjak@gmail.com>
10878 * config/i386/sse.md (*sse2_vd_cvtsd2ss): New insn pattern.
10879 (*sse2_vd_cvtss2sd): Ditto.
10880 * config/i386/i386.md
10881 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf splitter):
10882 Generate *sse2_vd_cvtsd2ss pattern.
10883 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df splitter):
10884 Generate *sse2_vd_cvtss2sd pattern.
10886 2016-05-08 Oleg Endo <olegendo@gcc.gnu.org>
10888 * config/sh/sh.h (GET_SH_ARG_CLASS): Convert macro into ...
10889 * config/sh/sh.c (get_sh_arg_class): ... this new function. Update its
10892 2016-05-08 Oleg Endo <olegendo@gcc.gnu.org>
10894 * config/sh/sh-protos.h (sh_media_register_for_return): Remove.
10895 * config/sh/sh.c: Define and declare variables on first use throughout
10897 (current_function_interrupt): Change to bool type.
10898 (frame_insn): Rename to emit_frame_insn and update users.
10899 (push_regs): Use bool for 'interrupt_handler' argument.
10900 (save_schedule_s): Remove.
10901 (TARGET_ASM_UNALIGNED_DI_OP, TARGET_ASM_ALIGNED_DI_OP): Remove.
10902 (sh_option_override): Don't nullify targetm.asm_out.aligned_op.di and
10903 targetm.asm_out.unaligned_op.di.
10904 (gen_far_branch): Remove redundant forward declaration.
10905 (sh_media_register_for_return, MAX_SAVED_REGS, save_entry_s, save_entry,
10906 MAX_TEMPS, save_schedule_ssave_schedule): Remove.
10907 (sh_set_return_address, sh_function_ok_for_sibcall,
10908 scavenge_reg): Update comments.
10909 (sh_builtin_saveregs): Use TRAGET_FPU_ANY condition.
10910 (sh2a_get_function_vector_number, sh2a_function_vector_p): Use for loop.
10911 (sh_attr_renesas_p): Remove unnecessary parentheses.
10912 (branch_dest): Simplify.
10913 * config/sh/sh.h (sh_args): Remove byref, byref_regs, stack_regs fields.
10914 Change force_mem, prototype_p, outgoing, renesas_abi fields to bool.
10915 (CUMULATIVE_ARGS): Change macro to typedef.
10916 (current_function_interrupt): Change to bool type.
10917 (sh_arg_class, sh_args, CUMULATIVE_ARGS, current_function_interrupt):
10918 Surround with __cplusplus ifdef.
10919 (sh_compare_op0, sh_compare_op1): Remove.
10920 (EPILOGUE_USES): Use TARGET_FPU_ANY condition.
10922 2016-05-07 Jim Wilson <jim.wilson@linaro.org>
10924 * config/arm/arm.md: (arch): Add neon.
10925 (arch_enabled): Return yes for arch neon when TARGET_NEON.
10926 * config/arm/vfp.md (movdf_vfp): Add w/G as alternative 3. Add
10927 neon_move as type for alt 3. Add arch attr enabling alt 3 for neon.
10928 Emit vmov.i64 for alt 3. Renumber alternatives 3 to 8. Adjust
10929 attributes for alt renumbering. Mark alt 3 as non-predicable.
10930 (thumb2_movdf_vfp): Likewise.
10932 2016-05-07 Uros Bizjak <ubizjak@gmail.com>
10934 * config/i386/i386.md (*addqi_1): Add preferred_for_speed attribute
10935 to disparage alternatives 3 and 4 for TARGET_PARTIAL_REG_STALL targets.
10936 (*andqi_1): Add preferred_for_speed attribute to disparage
10937 alternative 2 for TARGET_PARTIAL_REG_STALL targets.
10938 (*<code>qi_1): Ditto.
10939 (*one_cmplqi2_1): Add preferred_for_speed attribute to disparage
10940 alternative 1 for TARGET_PARTIAL_REG_STALL targets.
10941 (*ashlqi3_1): Ditto.
10942 (*swap<mode>): Merge from *swap<mode>_1 and *swap<mode>_2 patterns.
10943 Add preferred_for_size attribute to disparage alternative 0 and
10944 preferred_for_speed attribute to disparage alternative 1 for
10945 TARGET_PARTIAL_REG_STALL targets.
10947 2016-05-07 Tom de Vries <tom@codesourcery.com>
10949 PR tree-optimization/70956
10950 * graphite-scop-detection.c (build_cross_bb_scalars_def): Handle NULL
10953 2016-05-07 Oleg Endo <olegendo@gcc.gnu.org>
10955 * config/sh/sh-protos.h (sh_cbranch_distance): Declare new function.
10956 * config/sh/sh.c (sh_cbranch_distance): Implement it.
10957 * config/sh/sh.md (branch_zero): Remove define_attr.
10958 (define_delay): Disable delay slot if branch distance is one insn.
10960 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
10962 * config/i386/i386.md (LEAMODE): New mode attribute.
10963 (plus to LEA splitter): Rewrite splitter using LEAMODE mode attribute.
10964 (ashift to LEA splitter): Rewrte splitter using SWI mode iterator
10965 and LEAMODE mode attribute. Use VOIDmode const_0_to_3_operand as
10966 operand 2 predicate.
10967 (*lea<mode>_general_2): Use VOIDmode for const248_operand.
10968 (*lea<mode>_general_3): Ditto.
10969 (*lea<mode>_general_4): Use VOIDmode for const_0_to_3_operand.
10971 2016-05-06 Jakub Jelinek <jakub@redhat.com>
10973 * genmddump.c (main): Convert argv from char ** to const char **.
10975 2016-05-06 David Malcolm <dmalcolm@redhat.com>
10977 * coretypes.h (OVERRIDE): New macro.
10978 (FINAL): New macro.
10980 2016-05-06 Eric Botcazou <ebotcazou@adacore.com>
10982 * tree-ssa-coalesce.c (gimple_can_coalesce_p): In the optimized case,
10983 allow coalescing if the types are compatible.
10985 2016-05-06 David Malcolm <dmalcolm@redhat.com>
10987 * pass_manager.h (pass_manager::register_pass_name): New method.
10988 (pass_manager::get_pass_by_name): New method.
10989 (pass_manager::create_pass_tab): New method.
10990 (pass_manager::m_name_to_pass_map): New field.
10991 * passes.c (name_to_pass_map): Delete global in favor of field
10992 "m_name_to_pass_map" of pass_manager.
10993 (register_pass_name): Rename from a function to...
10994 (pass_manager::register_pass_name): ...this method, updating
10995 for renaming of global "name_to_pass_map" to field
10996 "m_name_to_pass_map".
10997 (create_pass_tab): Rename from a function to...
10998 (pass_manager::create_pass_tab): ...this method, updating
10999 for renaming of global "name_to_pass_map" to field.
11000 (get_pass_by_name): Rename from a function to...
11001 (pass_manager::get_pass_by_name): ...this method.
11002 (enable_disable_pass): Convert use of get_pass_by_name to
11003 a method call, locating the pass_manager singleton.
11005 2016-05-06 David Malcolm <dmalcolm@redhat.com>
11007 * genattr-common.c (main): Convert argv from char ** to const char **.
11008 * genattr.c (main): Likewise.
11009 * genattrtab.c (main): Likewise.
11010 * genautomata.c (initiate_automaton_gen): Likewise.
11012 * gencodes.c (main): Likewise.
11013 * genconditions.c (main): Likewise.
11014 * genconfig.c (main): Likewise.
11015 * genconstants.c (main): Likewise.
11016 * genemit.c (main): Likewise.
11017 * genenums.c (main): Likewise.
11018 * genextract.c (main): Likewise.
11019 * genflags.c (main): Likewise.
11020 * genmddeps.c (main): Likewise.
11021 * genopinit.c (main): Likewise.
11022 * genoutput.c (main): Likewise.
11023 * genpeep.c (main): Likewise.
11024 * genpreds.c (main): Likewise.
11025 * genrecog.c (main): Likewise.
11026 * gensupport.c (init_rtx_reader_args_cb): Likewise.
11027 (init_rtx_reader_args): Likewise.
11028 * gensupport.h (init_rtx_reader_args_cb): Likewise.
11029 (init_rtx_reader_args): Likewise.
11030 * gentarget-def.c (main): Likewise.
11031 * read-md.c (read_md_files): Likewise.
11032 * read-md.h (read_md_files): Likewise.
11034 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
11036 * config/i386/i386.md (int cmove peephole2s): Use general_reg_operand
11037 instead of register_and_not_any_fp_reg_operand as operand 0 predicate.
11038 * config/i386/predicates.md (register_and_not_any_fp_reg_operand):
11039 Remove unused predicate.
11040 (register_and_not_fp_reg_operand): Ditto.
11042 2016-05-06 Martin Liska <mliska@suse.cz>
11044 * tree-if-conv.c (ifcvt_split_critical_edges): Use auto_vec
11045 instead of vec as the vector is local to the function.
11047 2016-05-06 Jakub Jelinek <jakub@redhat.com>
11049 * config/i386/sse.md (*<code>v8hi3, *<code>v16qi3): Add
11050 avx512bw alternative.
11052 * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>): Move
11053 before the ashr<mode>3 pattern.
11055 * config/i386/sse.md (*avx2_pmaddwd, *sse2_pmaddwd): Use
11056 v instead of x in vex or maybe_vex alternatives, use
11057 maybe_evex instead of vex in prefix.
11059 * config/i386/sse.md (*vec_extractv4sf_0, *sse4_1_extractps,
11060 *vec_extractv4sf_mem, vec_extract_lo_v16hi, vec_extract_hi_v16hi,
11061 vec_extract_lo_v32qi, vec_extract_hi_v32qi): Use v instead of x
11062 in vex or maybe_vex alternatives, use maybe_evex instead of vex
11065 * config/i386/sse.md (*vec_concatv2sf_sse4_1, *vec_concatv4sf): Use
11066 v instead of x in vex or maybe_vex alternatives, use
11067 maybe_evex instead of vex in prefix.
11069 * config/i386/sse.md (sse_shufps_<mode>, sse_storehps, sse_loadhps,
11070 sse_storelps, sse_movss, avx2_vec_dup<mode>, avx2_vec_dupv8sf_1,
11071 sse2_shufpd_<mode>, sse2_storehpd, sse2_storelpd, sse2_loadhpd,
11072 sse2_loadlpd, sse2_movsd): Use v instead of x in vex or maybe_vex
11073 alternatives, use maybe_evex instead of vex in prefix.
11075 * config/i386/sse.md (vec_interleave_lowv4sf,
11076 *vec_interleave_highv2df, *vec_interleave_lowv2df): Use
11077 v instead of x in vex or maybe_vex alternatives, use
11078 maybe_evex instead of vex in prefix.
11080 * config/i386/sse.md (sse_movhlps, sse_movlhps): Use
11081 v instead of x in vex or maybe_vex alternatives, use
11082 maybe_evex instead of vex in prefix.
11084 * config/i386/sse.md (*avx_cvtpd2dq256_2, *avx_cvtps2pd256_2): Use
11085 v constraint instead of x.
11087 2016-05-06 Nathan Sidwell <nathan@codesourcery.com>
11089 * gimple.c (gimple_call_same_target_p): Unique functions are eq.
11090 * tree-ssa-tail-merge.c (same_succ::equal): Check pointer eq
11093 2016-05-06 Richard Biener <rguenther@suse.de>
11095 PR tree-optimization/70948
11096 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
11097 Properly clobber all fields of va_list for __builtin_va_start.
11099 2016-05-06 Yuri Rumyantsev <ysrumyan@gmail.com>
11102 * tree-ssa-loop-unswitch.c (find_loop_guard): Reject guard edge with
11103 loop latch destination.
11105 2016-05-06 Martin Liska <mliska@suse.cz>
11107 * tree-ssa-uninit.c: Apply manual changes
11108 to the GNU coding style.
11109 (prune_uninit_phi_opnds): Rename from
11110 prune_uninit_phi_opnds_in_unrealizable_paths.
11112 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
11114 * config/sh/sh.opt (madjust-unroll, minvalid-symbols, msoft-atomic,
11115 mspace): Remove deprecated options.
11116 * doc/invoke.texi (SH options): Remove -mspace.
11118 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
11120 * config/sh/sh.md (ic_invalidate_line_sh4a): Fix insn length.
11122 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
11124 * config/sh/sh.md (*cmpeqsi_t): Remove combine insn pattern and similar
11125 corresponding combine split pattern.
11127 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
11130 * config/sh/predicates.md (long_displacement_mem_operand): New.
11131 * config/sh/sh.md (movsi_i): Allow for SH2A, disallow for any FPU.
11132 Add movi20, movi20s alternatives. Adjust length attribute for
11134 (movsi_ie): Allow for any FPU. Adjust length attribute for
11136 (movsi_i_lowpart): Add movi20, movi20s alternatives. Adjust length
11137 attribute for alternatives.
11138 (*mov<mode>): Use long_displacement_mem_operand for length attribute.
11139 (*movdi_i, movdf_k, movdf_i4, movsf_i, movsf_ie, movsf_ie_ra): Adjust
11140 length attribute for alternatives.
11142 2016-05-06 Richard Biener <rguenther@suse.de>
11144 PR tree-optimization/70960
11145 * tree-if-conv.c (ifcvt_walk_pattern_tree): Handle non-SSA ops.
11147 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
11150 * config/sh/sh.md (*cmp_div0s_7, *cmp_div0s_8): Add div0s variants.
11151 * config/sh/sh.c (sh_rtx_costs): Add another div0s case.
11153 2016-05-06 Marek Polacek <polacek@redhat.com>
11156 * ubsan.c (get_ubsan_type_info_for_type): Remove assert.
11158 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
11161 * config/sh/sh.md (*rotcr): Add another variant.
11163 2016-05-06 Richard Biener <rguenther@suse.de>
11165 PR middle-end/70931
11166 * dwarf2out.c (native_encode_initializer): Skip zero-sized fields.
11168 2016-05-06 Richard Biener <rguenther@suse.de>
11170 PR middle-end/70941
11171 * fold-const.c (split_tree): Always convert to the original type
11174 2016-05-06 Richard Biener <rguenther@suse.de>
11176 * fwprop.c (fwprop): Remove duplicate cleanup_cfg call.
11177 (fwprop_addr): Likewise.
11179 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
11182 * config/i386/i386-protos.h (ix86_standard_x87sse_constant_load_p):
11184 * config/i386/i386.c (ix86_standard_x87sse_constant_load_p): New.
11185 * config/i386/i386.md (push mem splitter): Use find_constant_src in
11186 the splitter condition.
11187 (FP load splitter): Use ix86_standard_x87sse_constant_load_p in
11188 the splitter condition.
11189 (FP float_extend load splitter): Ditto.
11191 2016-05-05 Uros Bizjak <ubizjak@gmail.com>
11193 * config/i386/i386.md (peehole2 patterns): Change true_regnum
11194 to REGNO in all peephole2 patterns.
11195 (post-reload splitters): Change true_regnum to REGNO in
11196 post-reload splitters.
11197 (zero_extend splitters): Use general_reg_operand and
11198 nonimmediate_gr_operand predicates.
11200 2016-05-05 Jakub Jelinek <jakub@redhat.com>
11202 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>): Use
11203 v constraint instead of x.
11205 2016-05-05 Alan Modra <amodra@gmail.com>
11208 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't
11209 set OPTION_MASK_RELOCATABLE when flag_pic == 2. Set
11210 TARGET_NO_FP_IN_TOC for -mrelocatable.
11211 (MINIMAL_TOC_SECTION_ASM_OP): Remove redundant
11212 TARGET_RELOCATABLE test.
11213 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
11214 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
11215 * config/rs6000/linux64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
11216 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
11217 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
11218 * config/rs6000/freebsd64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
11219 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
11220 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
11221 * config/rs6000/predicates.md (easy_fp_constant): Likewise.
11222 * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
11224 (rs6000_assemble_integer): Update TARGET_RELOCATABLE test.
11225 (rs6000_stack_info): Likewise.
11226 (rs6000_elf_asm_out_constructor): Likewise.
11227 (rs6000_elf_asm_out_destructor): Likewise.
11228 (rs6000_elf_declare_function_name): Likewise.
11229 * config/rs6000/rs6000.md (load_toc_aix_di): Likewise.
11230 * config/rs6000/rs6000.h (MASK_RELOCATABLE, MASK_MINIMAL_TOC):
11233 2016-05-05 Alan Modra <amodra@gmail.com>
11235 * config/rs6000/rs6000.c (rs6000_frame_related): Rewrite.
11237 2016-05-05 Alan Modra <amodra@gmail.com>
11239 * config/rs6000/rs6000.c (rs6000_savres_strategy): Don't use
11240 out-of-line gpr restore for one or two regs if that would add
11243 2016-05-04 Uros Bizjak <ubizjak@gmail.com>
11246 * config/i386/i386.md
11247 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df peephole2):
11248 Change to post-epilogue_completed late splitter. Use sse_reg_operand
11249 as operand 0 predicate.
11250 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf peephole2):
11252 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float {si,di}->{sf,df} peephole2):
11253 Ditto. Emit the pattern using RTX.
11255 (TARGET_USE_VECTOR_FP_CONVERTS float_extend sf->df splitter):
11256 Use sse_reg_opreand as operand 0 predicate. Do not use true_regnum in
11257 the post-reload splitter. Use lowpart_subreg instead of gen_rtx_REG.
11258 (TARGET_USE_VECTOR_FP_CONVERTS float_truncate df->sf splitter):
11260 (TARGET_USE_VECTOR_CONVERTS float si->{sf,df} splitter): Use
11261 sse_reg_operand as operand 0 predicate.
11263 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_extend sf->df peephole2):
11264 Use sse_reg_opreand as operand 0 predicate. Use lowpart_subreg
11265 instead of gen_rtx_REG.
11266 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_truncate sf->df peephole2):
11269 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
11271 * function.c (emit_use_return_register_into_block): Delete.
11272 (gen_return_pattern): Delete.
11273 (emit_return_into_block): Delete.
11274 (active_insn_between): Delete.
11275 (convert_jumps_to_returns): Delete.
11276 (emit_return_for_exit): Delete.
11277 (thread_prologue_and_epilogue_insns): Delete all code dealing with
11278 simple_return for shrink-wrapped blocks.
11279 * shrink-wrap.c (try_shrink_wrapping): Insert simple_return at the
11280 end of blocks that need one.
11281 (get_unconverted_simple_return): Delete.
11282 (convert_to_simple_return): Delete.
11283 * shrink-wrap.c (get_unconverted_simple_return): Delete declaration.
11284 (convert_to_simple_return): Ditto.
11286 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
11288 * cfgcleanup.c (bb_is_just_return): New function.
11289 (try_optimize_cfg): Simplify jumps to return, branches to return,
11290 and branches around return.
11292 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
11294 * cfgcleanup.c (try_simplify_condjump): Don't try to simplify a
11295 branch to a return.
11297 2016-05-04 Jakub Jelinek <jakub@redhat.com>
11301 * tree-core.h (enum operand_equal_flag): Add OEP_HASH_CHECK.
11302 * tree.c (inchash::add_expr): If !IS_EXPR_CODE_CLASS (tclass),
11303 assert flags & OEP_HASH_CHECK, instead of asserting it
11304 never happens. Handle TARGET_EXPR.
11305 * fold-const.c (operand_equal_p): For hash verification,
11306 or in OEP_HASH_CHECK into flags.
11308 2016-05-04 Eric Botcazou <ebotcazou@adacore.com>
11310 * tree-ssa-coalesce.c (gimple_can_coalesce_p): Fix reference in head
11312 (compute_samebase_partition_bases): Fix typo.
11314 2016-05-04 Jakub Jelinek <jakub@redhat.com>
11316 * config/i386/sse.md (vec_interleave_highv8sf,
11317 vec_interleave_lowv8sf, vec_interleave_highv4df,
11318 vec_interleave_lowv4df): Remove constraints from expanders.
11320 * config/i386/sse.md (sse2_movq128): Use v constraint instead of x.
11322 2016-05-04 Jan Hubicka <hubicka@ucw.cz>
11324 * tree-inline.c (expand_call_inline): Fix path dealing with
11325 making lhs of call statement undefined.
11327 2016-05-04 Jan Hubicka <hubicka@ucw.cz>
11329 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
11330 Check availability on NODE, too.
11331 * cgraph.h (symtab_node::call_for_symbol_and_aliases): Likewise.
11332 (cgraph_node::call_for_symbol_and_aliases): Likewise.
11333 (varpool_node::call_for_symbol_and_aliase): Likewise.
11334 * ipa-pure-const.c (add_new_function): Analyze all bodies.
11335 (propagate_pure_const): Propagate across interposable functions, too.
11336 (skip_function_for_local_pure_const): Do not skip interposable bodies
11338 (pass_local_pure_const::execute): Update.
11340 2016-05-04 Marek Polacek <polacek@redhat.com>
11342 * doc/invoke.texi: Document -Wdangling-else.
11344 2016-05-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
11346 * config.gcc: Error out when conflicting multilib is detected. Do not
11347 loop over multilibs since no combination is legal.
11349 2016-05-04 Alan Modra <amodra@gmail.com>
11351 * config/rs6000/rs6000.h (PIC_OFFSET_TABLE_REGNUM): Correct.
11352 * config/rs6000/sysv4.h (TARGET_TOC): Simplify.
11353 * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
11356 2016-05-04 Matthew Fortune <matthew.fortune@imgtec.com>
11358 * config/mips/mips-cpus.def (p5600): Avoid IMADD by default.
11359 Clean up p5600 comments.
11361 2016-05-04 Richard Biener <rguenther@suse.de>
11363 * match.pd: Add BIT_FIELD_REF canonicalizations and vector
11364 constructor simplifications.
11365 * fold-const.c (fold_ternary_loc): Remove duplicate functionality here.
11367 2016-05-04 Oleg Endo <olegendo@gcc.gnu.org>
11369 * config/sh/predicates (post_inc_mem, pre_dec_mem): New predicates.
11370 * config/sh/sh-protos.h (sh_find_set_of_reg): Return null result if
11371 result.set_rtx is null instead of aborting.
11372 * config/sh/sh.h (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT):
11374 (USE_LOAD_PRE_DECREMENT, USE_STORE_POST_INCREMENT): Enable for SH2A.
11375 * config/sh/sh.md (*extend<mode>si2_predec, *mov<mode>_load_predec,
11376 *mov<mode>_store_postinc): New patterns.
11378 2016-05-04 Marc Glisse <marc.glisse@inria.fr>
11380 * match.pd ((A | B) & (A | C)): Generalize to BIT_XOR_EXPR. Mark
11381 as commutative. Check both conversions are NOP.
11382 ((A & B) OP (C & B)): Remove.
11384 2016-05-04 Alan Modra <amodra@gmail.com>
11386 * combine.c (simplify_set): Correct WORD_REGISTER_OPERATIONS test.
11388 2016-05-04 Alan Modra <amodra@gmail.com>
11391 * config/rs6000/rs6000.c (rs6000_stack_info): Don't set cr_save_p
11392 when cr2,3,4 are all fixed regs.
11394 2016-05-04 Bernd Schmidt <bschmidt@redhat.com>
11396 PR rtl-optimization/57193
11397 * opts.c (default_options_table): Revert OPT_frename_registers change.
11398 * doc/invoke.texi (-frename-registers, -O2): Likewise.
11400 2016-05-03 Martin Sebor <msebor@redhat.com>
11403 * builtins.c (fold_builtin_FILE): New function.
11404 (fold_builtin_FUNCTION, fold_builtin_LINE): New functions.
11405 (fold_builtin_0): Call them.
11406 * gimplify.c (gimplify_call_expr): Remove the handling of
11407 BUILT_IN_FILE, BUILT_IN_FUNCTION, and BUILT_IN_LINE.
11410 * doc/extend.texi (Other Builtins): Update __builtin_FILE,
11411 __builtin_FUNCTION, and __builtin_LINE to reflect they yield
11415 * doc/extend.texi (Function Names as Strings): Update __func__,
11416 __FUNCTION__, __PRETTY_FUNCTION__ to reflect they evaluate to
11419 2016-05-03 Jakub Jelinek <jakub@redhat.com>
11420 Richard Biener <rguenther@suse.de>
11422 PR tree-optimization/70916
11423 * tree-if-conv.c: Include cfganal.h.
11424 (pass_if_conversion::execute): Call connect_infinite_loops_to_exit
11425 and remove_fake_exit_edges around the optimization pass.
11427 2016-05-03 Jan Hubicka <hubicka@ucw.cz>
11429 * cgraph.c (symbol_table::create_edge): Set inline_failed.
11430 (cgraph_edge::make_direct): Likewise.
11431 (cgraph_edge::dump_edge_flags): Dump call_stmt_cannot_inline_p.
11432 * cgraphclones.c (duplicate_thunk_for_node): Set inline_failed.
11433 * cif-code.def (CIF_LTO_MISMATCHED_DECLARATIONS): New code
11434 (CIF_THUNK): New code.
11435 * ipa-inline-analysis.c (initialize_inline_failed): Preserve
11436 CIF_FINAL_ERROR codes; do not deal with call_stmt_cannot_inline_p.
11437 (compute_inline_parameters): Set inline_failed for thunks.
11438 (inline_analyze_function): Cleanup.
11439 * ipa-inline.c (can_inline_edge_p): Do not deal with
11440 call_stmt_cannot_inline_p.
11441 (can_early_inline_edge_p): Likewise.
11442 (early_inliner): Initialize inline_failed.
11443 * lto-cgraph.c (lto_output_edge): Sanity check inline_failed.
11445 2016-05-03 Uros Bizjak <ubizjak@gmail.com>
11447 * config/i386/predicates.md (x87nonimm_ssenomem_operand): Rename
11448 from nonimm_ssenomem_operand.
11449 (nonimm_ssenomem_operand): New predicate.
11450 * config/i386/i386.md (extendsfdf2): Use nonimm_ssenomem_operand
11451 as operand 0 predicate.
11452 (*extendsfdf2): Merge from *extendsfdf2_mixed and *extendsfdf2_i387.
11453 Disable unsupported alternatives using "enabled" attribute.
11454 Use register_ssemem_operand as operand 0 predicate.
11455 (*fop_<mode>_1): Use x87nonimm_ssenomem_operand as operand 1 predicate.
11457 2016-05-03 Marek Polacek <polacek@redhat.com>
11460 * input.c (expansion_point_location): New function.
11461 * input.h (expansion_point_location): Declare.
11463 2016-05-03 Pierre-Marie de Rodat <derodat@adacore.com>
11465 * dwarf2out.c (resolve_args_picking_1): Replace the frame_offset
11466 occurence with frame_offset_ ones.
11468 2016-05-03 Alan Modra <amodra@gmail.com>
11470 PR rtl-optimization/70890
11471 * ira.c (combine_and_move_insns): When moving def_insn, remove
11472 equivs on use_insn.
11474 2016-05-03 Dominik Vogt <vogt@linux.vnet.ibm.com>
11476 * config/s390/s390.md ("*r<noxa>sbg_<mode>_sll")
11477 ("*r<noxa>sbg_<mode>_srl"): New define_insns.
11478 ("*r<noxa>sbg_<mode>_srl_bitmask"): Rename by adding "_bitmask".
11479 ("*r<noxa>sbg_<mode>_sll_bitmask"): Likewise.
11481 2016-05-03 Alan Modra <amodra@gmail.com>
11483 * config/rs6000/rs6000.c (rs6000_savres_strategy): Correct condition
11484 for SAVE_MULTIPLE/STORE_MULTIPLE.
11486 2016-05-03 Jakub Jelinek <jakub@redhat.com>
11488 * config/i386/i386.md (*truncdfsf_mixed, *truncdfsf_i387,
11489 *truncxfsf2_mixed, *truncxfdf2_mixed): Use v constraint instead of x.
11491 2016-05-03 Richard Biener <rguenther@suse.de>
11493 * gimplify.h (get_initialized_tmp_var): Add allow_ssa parameter
11495 (gimplify_arg): Likewise.
11496 * gimplify.c (gimplify_expr): Add overload with allow_ssa parameter,
11497 re-writing the result to a decl if required.
11498 (internal_get_tmp_var): Add allow_ssa parameter
11499 and override into_ssa with it.
11500 (get_formal_tmp_var): Adjust.
11501 (get_initialized_tmp_var): Add allow_ssa parameter.
11502 (gimplify_arg): Add allow_ssa parameter and avoid generating
11503 SSA names for the result false.
11504 (gimplify_call_expr): If the call may return twice do not
11505 gimplify parameters into SSA.
11506 (prepare_gimple_addressable): Do not allow an SSA name as temporary.
11507 (gimplify_modify_expr): Adjust assert. For noreturn calls
11508 with a SSA name LHS adjust its def.
11509 (gimplify_save_expr): Do not allow an SSA name as save-expr result.
11510 (gimplify_one_sizepos): Do not allow an SSA name as a sizepos.
11511 (gimplify_body): Init GIMPLE SSA data structures and gimplify into-SSA.
11512 (gimplify_scan_omp_clauses): Make sure OMP_CLAUSE_SIZE is not
11513 an SSA name. Likewise for OMP_CLAUSE_REDUCTION operands.
11514 (gimplify_omp_for): Likewise for OMP_CLAUSE_DECL. Likewise
11515 for OMP_FOR_COND, OMP_FOR_INCR and OMP_CLAUSE_LINEAR_STEP.
11516 (optimize_target_teams): Do not allow SSA names for clause operands.
11517 (gimplify_expr): Likewise for where we mark the result addressable.
11518 * passes.def (pass_init_datastructures): Remove.
11519 * tree-into-ssa.c (mark_def_sites): Ignore existing SSA names.
11520 (rewrite_stmt): Likewise.
11521 * tree-inline.c (initialize_cfun): Properly transfer SSA state.
11522 (replace_locals_op): Replace SSA names.
11523 (copy_gimple_seq_and_replace_locals): Init src_cfun.
11524 * gimple-low.c (lower_builtin_setjmp): Deal with SSA.
11525 * cgraph.c (release_function_body): Free CFG annotations only
11526 when we have a CFG. Simplify.
11527 * gimple-fold.c (gimplify_and_update_call_from_tree): Use
11528 force_gimple_operand instead of get_initialized_tmp_var.
11529 * tree-pass.h (make_pass_init_datastructures): Remove.
11530 * tree-ssa.c (execute_init_datastructures): Remove.
11531 (pass_data_init_datastructures): Likewise.
11532 (class pass_init_datastructures): Likewise.
11533 (make_pass_init_datastructures): Likewise.
11534 * omp-low.c (create_omp_child_function): Init SSA data structures.
11535 (grid_expand_target_grid_body): Likewise.
11536 * tree-cfg.c (move_block_to_fn): Double-check the DEF is an SSA
11537 name before adding it to names_to_release.
11538 (remove_bb): Always release SSA defs.
11539 * tree-ssa-ccp.c (get_default_value): Check SSA_NAME_VAR
11540 before dereferencing it.
11541 * cgraphunit.c (init_lowered_empty_function): Always
11542 int SSA data structures.
11543 * tree-ssanames.c (release_defs): Remove assert that we are in
11545 * trans-mem.c (diagnose_tm_1): Handle SSA name function.
11547 2016-05-03 Jakub Jelinek <jakub@redhat.com>
11548 Uros Bizjak <ubizjak@gmail.com>
11550 PR rtl-optimization/70467
11551 * config/i386/predicates.md (x86_64_hilo_int_operand,
11552 x86_64_hilo_general_operand): New predicates.
11553 * config/i386/constraints.md (Wd): New constraint.
11554 * config/i386/i386.md (mode attr di): Use Wd instead of e.
11555 (general_hilo_operand): New mode attr.
11556 (add<mode>3, sub<mode>3): Use <general_hilo_operand>
11557 instead of <general_operand>.
11558 (*add<dwi>3_doubleword, *sub<dwi>3_doubleword): Use
11559 x86_64_hilo_general_operand instead of <general_operand>.
11561 2016-05-03 Jakub Jelinek <jakub@redhat.com>
11563 PR tree-optimization/70916
11564 * tree-if-conv.c (constant_or_ssa_name): Removed.
11565 (fold_build_cond_expr): Use is_gimple_val instead of
11566 constant_or_ssa_name.
11568 PR tree-optimization/70916
11569 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Give up
11570 if COND_EXPR rhs1 is neither SSA_NAME nor COMPARISON_CLASS_P.
11573 * tree-ssa-ccp.c: Include stor-layout.h and optabs-query.h.
11574 (optimize_atomic_bit_test_and): New function.
11575 (pass_fold_builtins::execute): Use it.
11576 * optabs.def (atomic_bit_test_and_set_optab,
11577 atomic_bit_test_and_complement_optab,
11578 atomic_bit_test_and_reset_optab): New optabs.
11579 * internal-fn.def (ATOMIC_BIT_TEST_AND_SET,
11580 ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_BIT_TEST_AND_RESET): New ifns.
11581 * builtins.h (expand_ifn_atomic_bit_test_and): New prototype.
11582 * builtins.c (expand_ifn_atomic_bit_test_and): New function.
11583 * internal-fn.c (expand_ATOMIC_BIT_TEST_AND_SET,
11584 expand_ATOMIC_BIT_TEST_AND_COMPLEMENT,
11585 expand_ATOMIC_BIT_TEST_AND_RESET): New functions.
11586 * doc/md.texi (atomic_bit_test_and_set@var{mode},
11587 atomic_bit_test_and_complement@var{mode},
11588 atomic_bit_test_and_reset@var{mode}): Document.
11589 * config/i386/sync.md (atomic_bit_test_and_set<mode>,
11590 atomic_bit_test_and_complement<mode>,
11591 atomic_bit_test_and_reset<mode>): New expanders.
11592 (atomic_bit_test_and_set<mode>_1,
11593 atomic_bit_test_and_complement<mode>_1,
11594 atomic_bit_test_and_reset<mode>_1): New insns.
11596 2016-05-03 Richard Sandiford <richard.sandiford@arm.com>
11598 PR rtl-optimization/70687
11599 * combine.c (change_zero_ext): Check for scalar modes. Use wide_int
11600 instead of unsigned HOST_WIDE_INT.
11602 2016-05-03 Bernd Schmidt <bschmidt@redhat.com>
11604 PR rtl-optimization/44281
11605 * hard-reg-set.h (struct target_hard_regs): New field
11606 x_fixed_nonglobal_reg_set.
11607 (fixed_nonglobal_reg_set): New macro.
11608 * reginfo.c (init_reg_sets_1): Initialize it.
11609 * ira.c (setup_alloc_regs): Use fixed_nonglobal_reg_set instead
11611 * df-scan.c (df_insn_refs_collect): Asms may reference global regs.
11613 2016-05-03 Bin Cheng <bin.cheng@arm.com>
11615 PR tree-optimization/56541
11616 * doc/invoke.texi (@item max-tree-if-conversion-phi-args): New item.
11617 * params.def (PARAM_MAX_TREE_IF_CONVERSION_PHI_ARGS): new param.
11618 * tree-if-conv.c (MAX_PHI_ARG_NUM): new macro.
11619 (any_complicated_phi): new static variable.
11620 (aggressive_if_conv): delete.
11621 (if_convertible_phi_p): support phis with more than two arguments.
11622 (if_convertible_bb_p): remvoe check on aggressive_if_conv and
11623 critical pred edges.
11624 (ifcvt_split_critical_edges): support phis with more than two
11625 arguments by checking new parameter. only split critical edges
11627 (tree_if_conversion): handle simd pragma marked loop using new
11628 local variable aggressive_if_conv. check any_complicated_phi.
11630 2016-05-03 Bin Cheng <bin.cheng@arm.com>
11632 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check depends_on
11635 2016-05-03 Bin Cheng <bin.cheng@arm.com>
11637 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Don't clobber
11640 2016-05-03 Oleg Endo <olegendo@gcc.gnu.org>
11642 * config/sh/sh.md (udivsi3, divsi3, mulsi3): Simplify.
11643 (mulhisi3, umulhisi3, (smulsi3_highpart, umulsi3_highpart): Convert to
11644 define_insn_and_split.
11645 (mulsi3_i): New define_insn_and_split.
11646 (mulsi3_call): Convert to define_insn.
11647 (mulsidi3, mulsidi3_compact, umulsidi3, umulsidi3_compact):
11648 Remove constraints.
11650 2016-05-02 Michael Meissner <meissner@linux.vnet.ibm.com>
11652 * machmode.h (mode_complex): Add support to give the complex mode
11654 (GET_MODE_COMPLEX_MODE): Likewise.
11655 * stor-layout.c (layout_type): For COMPLEX_TYPE, use the mode
11656 stored by build_complex_type and gfc_build_complex_type instead of
11657 trying to figure out the appropriate mode based on the size. Raise
11658 an assertion error, if the type was not set.
11659 * genmodes.c (struct mode_data): Add field for the complex type of
11661 (blank_mode): Likewise.
11662 (make_complex_modes): Remember the complex mode created in the
11664 (emit_mode_complex): Write out the mode_complex array to map a
11665 type mode to the complex version.
11666 (emit_insn_modes_c): Likewise.
11667 * tree.c (build_complex_type): Set the complex type to use before
11668 calling layout_type.
11669 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Add
11670 support for __float128 complex datatypes.
11671 (rs6000_hard_regno_mode_ok): Likewise.
11672 (rs6000_setup_reg_addr_masks): Likewise.
11673 (rs6000_complex_function_value): Likewise.
11674 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): Likewise.
11675 __float128 and __ibm128 complex.
11676 (FLOAT128_IBM_P): Likewise.
11677 (ALTIVEC_ARG_MAX_RETURN): Likewise.
11678 * doc/extend.texi (Additional Floating Types): Document that
11679 -mfloat128 must be used to enable __float128. Document complex
11680 __float128 and __ibm128 support.
11682 2016-05-02 Jakub Jelinek <jakub@redhat.com>
11685 * gimple.c (gimple_builtin_call_types_compatible_p): Allow
11686 char/short arguments promoted to int because of promote_prototypes.
11688 2016-05-02 Uros Bizjak <ubizjak@gmail.com>
11690 * config/i386/predicates.md (register_ssemem_operand): New predicate.
11691 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>): Merge from
11692 *cmpi<FPCMP:unord><MODEF:mode>_mixed and
11693 *cmpi<FPCMP:unord><X87MODEF:mode>_i387. Disable unsupported
11694 alternatives using "enabled" attribute. Use register_ssemem_operand
11695 as operand 1 predicate.
11696 (*cmpi<unord>xf_i387): Split XFmode pattern from
11697 *cmpi<FPCMP:unord><X87MODEF:mode>_i387.
11698 (*absneg<mode>2): Merge from *absneg<mode>2_mixed and
11699 *absneg<mode>2_i387. Disable unsupported alternatives using
11700 "enabled" attribute.
11701 (*absnegxf2_i387): Split XFmode pattern from *absneg<mode>2_i387.
11703 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
11705 * omp-low.c (lower_oacc_head_tail): Assert there is at least one
11707 (oacc_loop_process): Check mask for loop termination.
11709 2016-05-02 Jan Hubicka <hubicka@ucw.cz>
11711 * cif-code.def (CIF_THUNK): Add.
11712 * ipa-inline-analsysis.c (evaluate_conditions_for_known_args): Revert
11715 2016-05-02 Jan Hubicka <hubicka@ucw.cz>
11717 * ipa-inline-analysis.c (reset_inline_summary): Clear fp_expressions
11718 (dump_inline_summary): Dump it.
11719 (fp_expression_p): New predicate.
11720 (estimate_function_body_sizes): Use it.
11721 (inline_merge_summary): Merge fp_expressions.
11722 (inline_read_section): Read fp_expressions.
11723 (inline_write_summary): Write fp_expressions.
11724 * ipa-inline.c (can_inline_edge_p): Permit inlining across fp math
11725 codegen boundary if either caller or callee is !fp_expressions.
11726 * ipa-inline.h (inline_summary): Add fp_expressions.
11727 * ipa-inline-transform.c (inline_call): When inlining !fp_expressions
11728 to fp_expressions be sure the fp generation flags are updated.
11730 2016-05-02 Jakub Jelinek <jakub@redhat.com>
11732 PR rtl-optimization/70467
11733 * cse.c (cse_insn): Handle no-op MEM moves after folding.
11735 PR rtl-optimization/70467
11736 * ipa-pure-const.c (check_call): Handle internal calls even in
11737 ipa mode like in local mode.
11739 2016-05-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
11741 * doc/install.texi: Document supported in-tree gmp/mpfr/mpc versions.
11743 2016-05-02 Marc Glisse <marc.glisse@inria.fr>
11745 * match.pd (X u< X, X u> X): New transformations.
11747 2016-05-02 Marc Glisse <marc.glisse@inria.fr>
11749 * flag-types.h (enum warn_strict_overflow_code): Move ...
11750 * coretypes.h: ... here.
11751 * fold-const.h (fold_overflow_warning): Declare.
11752 * fold-const.c (fold_overflow_warning): Make non-static.
11753 (fold_comparison): Move the transformation of X +- C1 CMP C2
11754 into X CMP C2 -+ C1 ...
11755 * match.pd: ... here.
11756 * gimple-fold.c (fold_stmt_1): Protect with
11757 fold_defer_overflow_warnings.
11759 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
11761 * omp-low.c (struct oacc_loop): Add 'inner' field.
11762 (new_oacc_loop_raw): Initialize it to zero.
11763 (oacc_loop_fixed_partitions): Initialize it.
11764 (oacc_loop_auto_partitions): Partition outermost loop to outermost
11765 available partitioning.
11767 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
11769 * config/arc/arc.md (mulsidi3): Change operand 0 predicate to
11771 (umulsidi3): Likewise.
11772 (indirect_jump): Fix jump instruction assembly patterns.
11774 2016-05-02 Thomas Schwinge <thomas@codesourcery.com>
11777 * config/nvptx/nvptx.c (nvptx_libcall_value): Handle NULL cfun.
11778 (nvptx_function_value): Assert non-NULL cfun.
11780 2016-05-02 Eric Botcazou <ebotcazou@adacore.com>
11782 PR rtl-optimization/70886
11783 * sched-deps.c (estimate_dep_weak): Canonicalize cselib values.
11785 * cselib.h (rtx_equal_for_cselib_1): Declare.
11786 (rtx_equal_for_cselib_p: New inline function.
11787 * cselib.c (rtx_equal_for_cselib_p): Delete.
11788 (rtx_equal_for_cselib_1): Make public.
11790 2016-05-02 Uros Bizjak <ubizjak@gmail.com>
11792 * config/i386/predicates.md (nonimm_ssenomem_operand): New predicate.
11793 (register_mixssei387nonimm_operand): Remove predicate.
11794 * config/i386/i386.md (*fop_<mode>_comm): Merge from
11795 *fop_<mode>_comm_mixed and *fop_<mode>_comm_i387. Disable unsupported
11796 alternatives using "enabled" attribute. Also check X87_ENABLE_ARITH
11797 for TARGET_MIX_SSE_I387 alternatives.
11798 (*fop_<mode>_1): Merge from *fop_<mode>_1_mixed and *fop_<mode>_1_i387.
11799 Disable unsupported alternatives using "enabled" attribute. Use
11800 nonimm_ssenomem_operand as operand 1 predicate. Also check
11801 X87_ENABLE_ARITH for TARGET_MIX_SSE_I387 alternatives.
11803 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
11805 * tree.c (cst_and_fits_in_hwi): Simplify.
11807 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
11809 * tree.h (wi::to_wide): New function.
11810 * expr.c (expand_expr_real_1): Use wi::to_wide.
11811 * fold-const.c (int_const_binop_1): Likewise.
11812 (extract_muldiv_1): Likewise.
11814 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
11816 * wide-int.h: Update offset_int and widest_int documentation.
11817 (WI_SIGNED_SHIFT_RESULT): New macro.
11818 (wi::binary_shift): Define signed_shift_result_type for
11819 shifts on offset_int- and widest_int-like types.
11820 (generic_wide_int): Support <<= and >>= if << and >> are supported.
11821 * tree.h (int_bit_position): Use shift operators instead of wi::
11823 * alias.c (adjust_offset_for_component_ref): Likewise.
11824 * expr.c (get_inner_reference): Likewise.
11825 * fold-const.c (fold_comparison): Likewise.
11826 * gimple-fold.c (fold_nonarray_ctor_reference): Likewise.
11827 * gimple-ssa-strength-reduction.c (restructure_reference): Likewise.
11828 * tree-dfa.c (get_ref_base_and_extent): Likewise.
11829 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
11830 (stmt_kills_ref_p): Likewise.
11831 * tree-ssa-ccp.c (bit_value_binop_1): Likewise.
11832 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Likewise.
11833 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
11834 (ao_ref_init_from_vn_reference): Likewise.
11836 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
11838 * wide-int.h: Update offset_int and widest_int documentation.
11839 (WI_SIGNED_BINARY_PREDICATE_RESULT): New macro.
11840 (wi::binary_traits): Allow ordered comparisons between offset_int and
11841 offset_int, between widest_int and widest_int, and between either
11842 of these types and basic C types.
11843 (operator <, <=, >, >=): Define for the same combinations.
11844 * tree.h (tree_int_cst_lt): Use comparison operators instead
11845 of wi:: comparisons.
11846 (tree_int_cst_le): Likewise.
11847 * gimple-fold.c (fold_array_ctor_reference): Likewise.
11848 (fold_nonarray_ctor_reference): Likewise.
11849 * gimple-ssa-strength-reduction.c (record_increment): Likewise.
11850 * tree-affine.c (aff_comb_cannot_overlap_p): Likewise.
11851 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Likewise.
11852 * tree-sra.c (completely_scalarize): Likewise.
11853 * tree-ssa-alias.c (stmt_kills_ref_p): Likewise.
11854 * tree-ssa-reassoc.c (extract_bit_test_mask): Likewise.
11855 * tree-vrp.c (extract_range_from_binary_expr_1): Likewise.
11856 (check_for_binary_op_overflow): Likewise.
11857 (search_for_addr_array): Likewise.
11858 * ubsan.c (ubsan_expand_objsize_ifn): Likewise.
11860 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
11862 * config/arc/arc.c (arc_preferred_simd_mode): Remove enum keyword.
11863 (arc_save_restore): Likewise.
11864 (arc_dwarf_register_span): Likewise.
11865 (arc_output_pic_addr_const): Initialize suffix variable.
11867 2016-05-02 Martin Liska <mliska@suse.cz>
11869 * symbol-summary.h (function_summary::function_summary):
11870 Remove checking assert for all cgraph nodes.
11871 (function_summary::get): Check summary_uid.
11872 (symtab_insertion): Check summary_uid.
11874 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
11876 * config/arc/arc-protos.h (compact_memory_operand_p): Declare.
11877 * config/arc/arc.c (arc_output_commutative_cond_exec): Consider
11878 bmaskn instruction.
11879 (arc_dwarf_register_span): Remove enum keyword.
11880 (compact_memory_operand_p): New function.
11881 * config/arc/arc.h (reg_class): Add code density register classes.
11882 (REG_CLASS_NAMES): Likewise.
11883 (REG_CLASS_CONTENTS): Likewise.
11884 * config/arc/arc.md (*movqi_insn): Add code density instructions.
11885 (*movhi_insn, *movsi_insn, *movsf_insn): Likewise.
11886 (*extendhisi2_i, andsi3_i, cmpsi_cc_insn_mixed): Likewise.
11887 (*cmpsi_cc_c_insn, *movsi_ne): Likewise.
11888 * config/arc/constraints.md (C2p, Uts, Cm1, Cm3, Ucd): New
11890 (h, Rcd, Rsd, Rzd): New register constraints.
11891 (T): Use compact_memory_operand_p function.
11892 * config/arc/predicates.md (compact_load_memory_operand): Remove.
11894 2016-05-02 Oleg Endo <olegendo@gcc.gnu.org>
11896 * config/sh/sh.md (*negnegt, *movtt): Remove.
11898 2016-05-02 Marek Polacek <polacek@redhat.com>
11899 Tom de Vries <tom@codesourcery.com>
11901 PR tree-optimization/70700
11902 * tree-ssa-structalias.c (dump_pred_graph): Fix getting varinfo for ids
11903 bigger than FIRST_REF_NODE.
11905 2016-05-02 Oleg Endo <olegendo@gcc.gnu.org>
11908 * config/sh/sh.c (sh_option_override): Remove TARGET_CBRANCHDI4,
11910 (prepare_cbranch_operands): Don't use scratch register. Assume that
11911 function is used when pseudos can be created.
11912 (expand_cbranchdi4): Likewise. Remove unused TARGET_CMPEQDI_T paths.
11913 * config/sh/sh.md (cbranchsi4): Allow only when pseudos can be created.
11914 (cbranchdi4, cbranchdi4_i): Simplify to single cbranchdi4
11915 define_expand. Allow it only when pseudos can be created.
11916 * config/sh/sh.opt (mcbranchdi, mcmpeqdi): Delete.
11918 2016-05-01 Uros Bizjak <ubizjak@gmail.com>
11920 * config/i386/constraints.md (BC): Only allow -1 operands.
11921 * config/i386/sse.md (mov<mode>_internal): Add (v,C) alternative.
11922 Add "enabled" attribute. Update XI mode attribute calculation.
11923 * config/i386/i386.md (*movxi_internal_avx512f): Add (v,C) alternative.
11924 (*movoi_internal_avx): Update XI mode attribute calculation.
11925 (*movti_internal): Ditto.
11927 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
11929 * config/sh/sh.md (push, pop, ic_invalidate_line, cstoresi4, cstoredi4,
11930 cstoresf4, cstoredf4, fix_truncsfsi2): Remove constraints.
11932 2016-05-01 Eric Botcazou <ebotcazou@adacore.com>
11934 * config/rs6000/rs6000.c (altivec_expand_lv_builtin): Do not use switch
11935 statement on instruction code. Remove trailing spaces.
11936 (altivec_expand_stv_builtin): Likewise.
11938 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
11940 * config/sh/sh.h (TARGET_SH4): Remove and use default implementation.
11941 (TARGET_FPU_DOUBLE): Simplify.
11942 (BASE_ARG_REG, DOUBLE_TYPE_SIZE, OPTIMIZE_MODE_SWITCHING): Replace
11943 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions with 'TARGET_FPU_DOUBLE'.
11944 * config/sh/sh.c: Replace 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions
11945 with 'TARGET_FPU_DOUBLE'.
11946 * config/sh/sh.md: Likewise.
11948 2016-05-01 Yoshinori Sato <ysato@users.sourceforge.jp>
11950 * config/sh/linux.h (SH_DIV_STRATEGY_DEFAULT,
11951 SH_DIV_STR_FOR_SIZE): Remove.
11952 * config/sh/netbsd-elf.h (SH_DIV_STRATEGY_DEFAULT,
11953 SH_DIV_STR_FOR_SIZE): Remove.
11955 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
11957 * config/sh/predicates.md (any_register_operand, zero_extend_operand,
11958 logical_reg_operand): Delete.
11959 (arith_operand, arith_reg_dest, arith_or_int_operand, cmpsi_operand,
11960 arith_reg_or_0_operand, arith_reg_or_0_or_1_operand, logical_operand,
11961 logical_and_operand, movsrc_no_disp_mem_operand): Rewrite using
11962 match_operand and match_test.
11963 (sh_const_vec, sh_1el_vec): Remove redundant checks. Declare local
11964 variables on their first use. Return bool values.
11965 * config/sh/sh.h (LOAD_EXTEND_OP): Update comment.
11966 * config/sh/sh.md (andsi3, iorsi3): Use arith_reg_dest for result and
11967 arith_reg_operand for input operand. Remove empty constraints.
11969 (*xorsi3_compact): Rename to xorsi3.
11970 (zero_extend<mode>si2): Use arith_reg_operand for input operand.
11971 (*zero_extend<mode>si2_disp_mem): Update comment.
11974 2016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
11976 * config/sh/t-sh: Remove SH5 support.
11977 * config.gcc: Likewise.
11978 * configure: Likewise.
11980 2016-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11982 * config/darwin.h (LINK_COMMAND_SPEC_A): Handle -fcilkplus.
11984 2016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
11986 * config/sh/sh.c (register_sh_passes, sh_option_override,
11987 sh_print_operand, prepare_move_operands,
11988 sh_can_follow_jump): Remove TARGET_SH1 checks.
11989 * config/sh/sh.h (TARGET_VARARGS_PRETEND_ARGS, VALID_REGISTER_P,
11990 PROMOTE_MODE): Likewise.
11991 * config/sh/sh.md (adddi3, addsi3, subdi3, subsi3, andsi3,
11994 2016-04-30 Alan Modra <amodra@gmail.com>
11996 * config/rs6000/rs6000.c (rs6000_savres_strategy): Force inline
11997 restoring when fixed_reg_p, but allow out-of-line or stmw save.
11998 Check for user regs later to avoid unnecessary looping over regs.
11999 Merge user reg check with non-saved reg check. Don't force
12000 inline VR restore when static chain used.
12001 (rs6000_frame_related): Omit eh_frame info for user regs when
12003 (fixed_regs_p): Delete.
12005 2016-04-30 Alan Modra <amodra@gmail.com>
12007 * config/rs6000/rs6000.c (SAVRES_MULTIPLE): Replace with..
12008 (SAVE_STRATEGY, REST_STRATEGY): ..this. Renumber and sort enum.
12011 2016-04-30 Alan Modra <amodra@gmail.com>
12014 * config/rs6000/rs6000.c (fixed_reg_p): New function.
12015 (fixed_regs_p): Rename from global_regs_p. Call fixed_reg_p.
12018 2016-04-30 Alan Modra <amodra@gmail.com>
12020 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
12021 Remove redundant PIC_OFFSET_TABLE_REGNUM test. Replace with
12022 flag_pic test for Darwin.
12024 2016-04-30 Alan Modra <amodra@gmail.com>
12026 * regs.h (struct reg_info_t): Delete freq_calls_crossed and
12027 throw_calls_crossed.
12028 (REG_FREQ_CALLS_CROSSED): Delete.
12029 (REG_N_THROWING_CALLS_CROSSED): Delete.
12030 * regstat.c (regstat_bb_compute_ri): Don't calculate
12031 REG_FREQ_CALLS_CROSSED and REG_N_THROWING_CALLS_CROSSED.
12032 (dump_reg_info): Don't print call cross frequency.
12033 * ira.c (combine_and_move_insns): Don't set REG_FREQ_CALLS_CROSSED
12034 and REG_N_THROWING_CALLS_CROSSED.
12036 2016-04-30 Alan Modra <amodra@gmail.com>
12038 * regs.h (struct reg_info_t): Delete live_length.
12039 (REG_LIVE_LENGTH): Delete macro.
12040 * regstat.c (regstat_bb_compute_ri): Delete artificial_uses,
12041 local_live, local_processed and local_live_last_luid params.
12042 Replace bb_index param with bb. Don't set REG_LIVE_LENGTH.
12044 (regstat_compute_ri): Adjust for above. Don't set
12046 (dump_reg_info): Don't print live length.
12047 * ira.c (update_equiv_regs): Replace test of REG_LIVE_LENGTH
12048 with test of setjmp_crosses. Don't set REG_LIVE_LENGTH.
12049 Localize loop_depth var.
12051 2016-04-30 Alan Modra <amodra@gmail.com>
12053 * ira.c (enum valid_equiv): New.
12054 (validate_equiv_mem): Return enum.
12055 (update_equiv_mem): Create replacement in more cases.
12056 (add_store_equivs): Update validate_equiv_mem call.
12058 2016-04-30 Alan Modra <amodra@gmail.com>
12060 * ira.c (combine_and_move_insns): Rather than scanning insns,
12061 use DF infrastucture to find use and def insns.
12063 2016-04-30 Alan Modra <amodra@gmail.com>
12065 ira.c (combine_and_move_insns): Move invariant conditions..
12066 (ira.c): ..to here. Call combine_and_move_insns before
12067 add_store_equivs. Call grow_reg_equivs later. Allocate
12068 req_equiv later using max_reg_num() rather than global max_regno.
12069 (contains_replace_regs): Delete.
12070 (add_store_equivs): Remove contains_replace_regs test.
12072 2016-04-30 Alan Modra <amodra@gmail.com>
12074 * ira.c (struct equiv_mem_data): New.
12075 (equiv_mem, equiv_mem_modified): Delete static vars.
12076 (validate_equiv_mem_from_store): Use "data" param to communicate..
12077 (validate_equiv_mem): ..from here.
12079 2016-04-30 Alan Modra <amodra@gmail.com>
12081 * ira.c (add_store_equivs, combine_and_move_insns): New functions,
12083 (update_reg_equivs): ..here. Move allocation and freeing of
12084 reg_equiv, and calls to grow_reg_equivs, init_alias_analysis,
12085 end_alias_analysis to..
12088 2016-04-30 Alan Modra <amodra@gmail.com>
12090 * ira.c (pdx_subregs): Delete.
12091 (struct equivalence): Add pdx_subregs field.
12092 (set_paradoxical_subreg): Remove pdx_subregs param. Update
12093 pdx_subregs access.
12094 (update_equiv_regs): Don't create or free pdx_subregs. Update
12095 pdx_subregs access.
12097 2016-04-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12099 * config/rs6000/altivec.h: Change definitions of vec_xl and
12101 * config/rs6000/rs6000-builtin.def (LD_ELEMREV_V2DF): New.
12102 (LD_ELEMREV_V2DI): New.
12103 (LD_ELEMREV_V4SF): New.
12104 (LD_ELEMREV_V4SI): New.
12105 (LD_ELEMREV_V8HI): New.
12106 (LD_ELEMREV_V16QI): New.
12107 (ST_ELEMREV_V2DF): New.
12108 (ST_ELEMREV_V2DI): New.
12109 (ST_ELEMREV_V4SF): New.
12110 (ST_ELEMREV_V4SI): New.
12111 (ST_ELEMREV_V8HI): New.
12112 (ST_ELEMREV_V16QI): New.
12115 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
12116 descriptions for VSX_BUILTIN_VEC_XL and VSX_BUILTIN_VEC_XST.
12117 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Map from
12118 TARGET_P9_VECTOR to RS6000_BTM_P9_VECTOR.
12119 (altivec_expand_builtin): Add handling for
12120 VSX_BUILTIN_ST_ELEMREV_<MODE> and VSX_BUILTIN_LD_ELEMREV_<MODE>.
12121 (rs6000_invalid_builtin): Add error-checking for
12122 RS6000_BTM_P9_VECTOR.
12123 (altivec_init_builtins): Define builtins used to implement vec_xl
12125 (rs6000_builtin_mask_names): Define power9-vector.
12126 * config/rs6000/rs6000.h (MASK_P9_VECTOR): Define.
12127 (RS6000_BTM_P9_VECTOR): Define.
12128 (RS6000_BTM_COMMON): Include RS6000_BTM_P9_VECTOR.
12129 * config/rs6000/vsx.md (vsx_ld_elemrev_v2di): New define_insn.
12130 (vsx_ld_elemrev_v2df): Likewise.
12131 (vsx_ld_elemrev_v4sf): Likewise.
12132 (vsx_ld_elemrev_v4si): Likewise.
12133 (vsx_ld_elemrev_v8hi): Likewise.
12134 (vsx_ld_elemrev_v16qi): Likewise.
12135 (vsx_st_elemrev_v2df): Likewise.
12136 (vsx_st_elemrev_v2di): Likewise.
12137 (vsx_st_elemrev_v4sf): Likewise.
12138 (vsx_st_elemrev_v4si): Likewise.
12139 (vsx_st_elemrev_v8hi): Likewise.
12140 (vsx_st_elemrev_v16qi): Likewise.
12141 * doc/extend.texi: Add prototypes for vec_xl and vec_xst. Correct
12144 2016-04-29 Patrick Palka <ppalka@gcc.gnu.org>
12146 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Split
12148 (simplify_control_stmt_condition_1): ... here. Recurse into
12149 BIT_AND_EXPRs and BIT_IOR_EXPRs.
12151 2016-04-29 David Edelsohn <dje.gcc@gmail.com>
12154 * config/rs6000/rs6000.md (EXTQI): Don't allow extension to HImode.
12155 (zero_extendqi<mode>2_dot): Revert earlier conversion from
12156 define_insn_and_split to define_insn.
12157 (zero_extendqi<mode>2_dot2): Same.
12158 (extendqi<mode>2_dot): Same.
12159 (extendqi<mode>2_dot2): Same.
12161 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
12163 * config/i386/i386.md (unspec): Add UNSPEC_PROBE_STACK.
12164 (probe_stack): New expander.
12165 (probe_stack_<mode>): New insn pattern.
12167 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
12169 * config/i386/i386.md
12170 (operations with memory inputs setting flags peephole2):
12171 Remove uneeded REG_P checks. Cleanup pattern generation.
12173 2016-04-29 Ilya Enkovich <ilya.enkovich@intel.com>
12175 * tree-vect-loop.c (vect_transform_loop): Fix
12176 nb_iterations_upper_bound computation for vectorized loop.
12178 2016-04-29 Marek Polacek <polacek@redhat.com>
12179 Jakub Jelinek <jakub@redhat.com>
12182 * fold-const.c (tree_single_nonzero_warnv_p): For TARGET_EXPR, use
12183 TARGET_EXPR_SLOT as a base.
12185 2016-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
12187 * config/arc/arc.md (*loadqi_update): Replace use of 'rI' constraint
12188 with 'rCm2' constraints to limit possible immediate size.
12189 (*load_zeroextendqisi_update): Likewise.
12190 (*load_signextendqisi_update): Likewise.
12191 (*loadhi_update): Likewise.
12192 (*load_zeroextendhisi_update): Likewise.
12193 (*load_signextendhisi_update): Likewise.
12194 (*loadsi_update): Likewise.
12195 (*loadsf_update): Likewise.
12197 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
12199 * config/i386/predicates.md (constm1_operand): Fix comparison.
12201 2016-04-29 Claudiu Zissulescu <claziss@synopsys.com>
12203 * testsuite/gcc.target/arc/ieee_eq.c: New test.
12205 2016-04-29 Oleg Endo <olegendo@gcc.gnu.org>
12207 * common/config/sh/sh-common.c (sh_option_optimization_table): Remove
12208 remaining SH5 related settings.
12209 * config/sh/sh-protos.h (shmedia_cleanup_truncate,
12210 shmedia_prepare_call_address): Delete.
12211 * config/sh/sh.c (sh_print_operand, output_stack_adjust,
12212 DWARF_CIE_DATA_ALIGNMENT, LOCAL_ALIGNMENT): Update comments.
12213 * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC,
12214 UNSUPPORTED_SH2A): Remove m5 checks.
12215 (sh_divide_strategy_e): Remove SH5 division strategies.
12216 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Remove and use default.
12217 * config/sh/sh.md (divsf3): Reinstate define_expand pattern.
12219 2016-04-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
12221 * config/s390/s390.c (s390_rtx_costs): Update documentation.
12223 2016-04-29 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12225 * config/s390/2964.md ("z13_unit_fxu", "z13_0"): Remove lder.
12226 * config/s390/s390.md ("movsi_larl", "*movsi_esa", "mov<mode>"):
12227 Change lder to ldr.
12228 * config/s390/vector.md ("mov<mode>"): Likewise.
12230 2016-04-29 Ulrich Weigand <uweigand@de.ibm.com>
12232 * config/s390/constraints.md ("U", "W"): Invoke
12233 s390_mem_constraint with "ZR" and "ZT".
12234 * config/s390/s390.c (s390_check_qrst_address): Reject invalid
12235 addresses when using LRA. Accept also short displacements for S
12236 and T constraints. Do not check for long displacement target for
12237 S and T constraints.
12238 (s390_mem_constraint): Remove handling of U and W constraints.
12239 * config/s390/s390.md (various patterns): Remove the short
12240 displacement constraints (Q and R) if a long displacement
12241 constraint is present. Add longdisp as required CPU capability.
12242 * config/s390/vector.md: Likewise.
12243 * config/s390/vx-builtins.md: Likewise.
12245 2016-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
12248 * reload1.c (reload): Call finish_spills before
12249 restarting reload loop. Skip select_reload_regs
12250 if update_eliminables_and_spill returns true.
12252 2016-04-29 Claudiu Zissulescu <claziss@synopsys.com>
12254 * config/arc/arc.h (UNSIGNED_INT12, UNSIGNED_INT16): Define.
12255 * config/arc/arc.md (umulhisi3): Use arc_short_operand predicate.
12256 (umulhisi3_imm): Update predicates and constraint letters.
12257 (umulhisi3_reg): Declare instruction as commutative.
12258 * config/arc/constraints.md (J12, J16): New constraints.
12259 * config/arc/predicates.md (short_unsigned_const_operand): New
12261 (arc_short_operand): Likewise.
12262 * testsuite/gcc.target/arc/umulsihi3_z.c: New file.
12264 2016-04-29 Richard Biener <rguenther@suse.de>
12266 PR tree-optimization/13962
12267 PR tree-optimization/65686
12268 * tree-ssa-alias.h (ptrs_compare_unequal): Declare.
12269 * tree-ssa-alias.c (ptrs_compare_unequal): New function
12270 using PTA to compare pointers.
12271 * match.pd: Add pattern for pointer equality compare simplification
12272 using ptrs_compare_unequal.
12274 2016-04-29 Richard Biener <rguenther@suse.de>
12276 * stor-layout.c (layout_type): Do not build a pointer-to-element
12279 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
12281 * config/i386/i386.md (Load+RegOp to Mov+MemOp peephole2):
12282 Use SWI mode iterator. Use general_reg_operand predicate.
12283 (Load+RegOp to Mov+MemOp peephole2 with vector regs): Split
12284 peephole to MMX and SSE part. Use mmx_reg_operand and sse_reg_operand
12287 2016-04-29 Jakub Jelinek <jakub@redhat.com>
12289 PR middle-end/70843
12290 * fold-const.c (operand_equal_p): Don't verify hash value equality
12292 * tree.c (inchash::add_expr): Handle STATEMENT_LIST. Ignore BLOCK
12295 2016-04-28 Jakub Jelinek <jakub@redhat.com>
12298 * config/i386/i386.c (bdesc_special_args): Add | OPTION_MASK_ISA_64BIT
12299 to __builtin_ia32_lwpval64 and __builtin_ia32_lwpins64.
12300 (bdesc_args): Add | OPTION_MASK_ISA_64BIT to __builtin_ia32_bextr_u64,
12301 __builtin_ia32_bextri_u64, __builtin_ia32_bzhi_di,
12302 __builtin_ia32_pdep_di and __builtin_ia32_pext_di.
12304 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
12306 * config/rs6000/rs6000.c (compute_save_world_info): Rename info_ptr
12307 to info. Don't initialize separate fields to 0. Clean up
12310 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
12312 * config/i386/i386.md (peephole2s for operations with memory inputs):
12313 Use SWI mode iterator.
12314 (peephole2s for operations with memory outputs): Ditto.
12315 Do not check for stack checking probe.
12317 (probe_stack): Remove expander.
12319 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
12320 Andrew Burgess <andrew.burgess@embecosm.com>
12322 * config/arc/arc.c (arc_print_operand): Print integer 'H' / 'L'
12323 operands as 32-bits.
12325 2016-04-28 Jason Merrill <jason@redhat.com>
12327 * gdbinit.in: Skip line-map.h.
12329 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
12330 Andrew Burgess <andrew.burgess@embecosm.com>
12332 * config/arc/arc.c (arc_conditional_register_usage): Take
12333 TARGET_RRQ_CLASS into account.
12334 (arc_print_operand): Support printing 'p' and 's' operands.
12335 * config/arc/arc.h (TARGET_NPS_BITOPS_DEFAULT): Provide default
12337 (TARGET_RRQ_CLASS): Define.
12338 (IS_POWEROF2_OR_0_P): Define.
12339 * config/arc/arc.md (*movsi_insn): Add w/Clo, w/Chi, and w/Cbi
12341 (*tst_movb): New define_insn.
12342 (*tst): Avoid recognition if it could prevent '*tst_movb'
12343 combination; replace c/CnL with c/Chs alternative.
12344 (*tst_bitfield_tst): New define_insn.
12345 (*tst_bitfield_asr): New define_insn.
12346 (*tst_bitfield): New define_insn.
12347 (andsi3_i): Add Rrq variant.
12348 (extzv): New define_expand.
12349 (insv): New define_expand.
12350 (*insv_i): New define_insn.
12351 (*movb): New define_insn.
12352 (*movb_signed): New define_insn.
12353 (*movb_high): New define_insn.
12354 (*movb_high_signed): New define_insn.
12355 (*movb_high_signed + 1): New define_split pattern.
12356 (*mrgb): New define_insn.
12357 (*mrgb + 1): New define_peephole2 pattern.
12358 (*mrgb + 2): New define_peephole2 pattern.
12359 * config/arc/arc.opt (mbitops): New option for nps400, uses
12360 TARGET_NPS_BITOPS_DEFAULT.
12361 * config/arc/constraints.md (q): Make register class conditional.
12362 (Rrq): New register constraint.
12363 (Chs): New constraint.
12364 (Clo): New constraint.
12365 (Chi): New constraint.
12366 (Cbf): New constraint.
12367 (Cbn): New constraint.
12368 (C18): New constraint.
12369 (Cbi): New constraint.
12371 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
12373 * cfganal.c (bitmap_intersection_of_succs): Delete assert checking
12375 (bitmap_intersection_of_preds): Ditto.
12376 (bitmap_union_of_succs): Ditto.
12377 (bitmap_union_of_preds): Ditto.
12378 * sbitmap.c (do_popcount): Delete.
12379 (BITMAP_DEBUGGING): Delete.
12380 (sbitmap_verify_popcount): Delete.
12381 (sbitmap_alloc): Don't initialize the popcount field.
12382 (sbitmap_alloc_with_popcount): Delete.
12383 (sbitmap_resize): Don't resize the popcount array.
12384 (sbitmap_vector_alloc): Don't initialize the popcount field.
12385 (bitmap_copy): Don't copy the popcount array.
12386 (bitmap_clear): Don't clear the popcount array.
12387 (bitmap_clear): Delete the popcount array handling.
12388 (bitmap_ior_and_compl): Delete the popcount assert.
12389 (bitmap_not): Ditto.
12390 (bitmap_and_compl): Ditto.
12391 (bitmap_and): Delete the popcount array handling.
12392 (bitmap_xor): Ditto.
12393 (bitmap_ior): Ditto.
12394 (bitmap_or_and): Delete the popcount assert.
12395 (bitmap_and_or): Ditto.
12396 (popcount_table): Delete.
12397 (sbitmap_elt_popcount): Delete.
12398 * sbitmap.h (simple_bitmap_def): Delete the popcount field.
12399 (bitmap_set_bit): Delete the popcount assert.
12400 (bitmap_clear_bit): Ditto.
12401 (sbitmap_free): Don't free the popcount array.
12402 (sbitmap_alloc_with_popcount): Delete declaration.
12403 (sbitmap_popcount): Ditto.
12405 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
12406 Andrew Burgess <andrew.burgess@embecosm.com>
12408 * config/arc/arc.h (SYMBOL_FLAG_CMEM): Define.
12409 (TARGET_NPS_CMEM_DEFAULT): Provide default definition.
12410 * config/arc/arc.c (arc_address_cost): Return 0 for cmem_address.
12411 (arc_encode_section_info): Set SYMBOL_FLAG_CMEM where indicated.
12412 * config/arc/arc.opt (mcmem): New option.
12413 * config/arc/arc.md (*extendqihi2_i): Add r/Uex alternative,
12414 supply length for r/m alternative.
12415 (*extendqisi2_ac): Likewise.
12416 (*extendhisi2_i): Add r/Uex alternative, supply length for r/m and
12418 (movqi_insn): Add r/Ucm and Ucm/?Rac alternatives.
12419 (movhi_insn): Likewise.
12420 (movsi_insn): Add r/Ucm,Ucm/w alternatives.
12421 (*zero_extendqihi2_i): Add r/Ucm alternative.
12422 (*zero_extendqisi2_ac): Likewise.
12423 (*zero_extendhisi2_i): Likewise.
12424 * config/arc/constraints.md (Uex): New memory constraint.
12425 (Ucm): New define_constraint.
12426 * config/arc/predicates.md (long_immediate_loadstore_operand):
12427 Return 0 for MEM with cmem_address address.
12428 (cmem_address_0): New predicates.
12429 (cmem_address_1): Likewise.
12430 (cmem_address_2): Likewise.
12431 (cmem_address): Likewise.
12433 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
12435 * config/rs6000/rs6000.c (machine_function): Rename
12436 insn_chain_scanned_p to spe_insn_chain_scanned_p.
12437 (rs6000_stack_info): Adjust.
12439 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
12440 Andrew Burgess <andrew.burgess@embecosm.com>
12442 * config/arc/constraints.md (Usd): Convert to define_constraint.
12446 2016-04-28 Jakub Jelinek <jakub@redhat.com>
12449 * config/i386/sync.md (define_peephole2 *atomic_fetch_add_cmp<mode>):
12450 Add new peephole2 where the first insn is *mov<mode>_or instead of
12451 *mov<mode>_internal.
12453 2016-04-28 Segher Boesssenkool <segher@kernel.crashing.org>
12455 * tracer.c (bb_seen): Make static.
12457 2016-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
12459 * common/config/arc/arc-common.c (arc_handle_option): Add NPS400
12460 support, setup defaults.
12461 * config/arc/arc-opts.h (enum processor_type): Add NPS400.
12462 * config/arc/arc.c (arc_init): Add NPS400 support.
12463 * config/arc/arc.h (CPP_SPEC): Add NPS400 defines.
12464 (TARGET_ARC700): NPS400 is also an ARC700.
12465 * config/arc/arc.opt: Add NPS400 options to -mcpu=.
12467 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
12470 * config/nds32/nds32.md (casesi): Don't access the operands array
12473 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
12475 * config/i386/i386.md (zeroing peephole2): Use general_reg_operand.
12476 (or $-1,reg peephole2): Ditto.
12477 (strict_low_part zeroing peephole2): Use SWI12 mode iterator.
12479 2016-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
12481 * doc/extend.texi (Common Function Attributes) [optimize]:
12482 Discourage use of the optimize attribute.
12484 2016-04-28 Bill Seurer <seurer@linux.vnet.ibm.com>
12486 * config/rs6000/rs6000-builtin.def (vec_adde): Change vec_adde to a
12487 special case builtin.
12488 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
12489 ALTIVEC_BUILTIN_VEC_ADDE.
12490 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
12491 support for ALTIVEC_BUILTIN_VEC_ADDE.
12492 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
12493 for __builtin_vec_adde.
12495 2016-04-28 Jakub Jelinek <jakub@redhat.com>
12497 * config/i386/i386.md (sse4_1_round<mode>2): Add avx512f alternative.
12498 * config/i386/sse.md (sse4_1_round<ssescalarmodesuffix>): Likewise.
12500 2016-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12503 * doc/sourcebuild.texi (Effective-Target Keywords, Other
12504 attributes): Document cilkplus_runtime.
12506 2016-04-28 Martin Jambor <mjambor@suse.cz>
12508 * tree-cfg.c (verify_expr): Verify that local declarations belong to
12509 this function. Call verify_expr on MEM_REFs and bases of other
12510 handled_components.
12512 2016-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12514 * internal-fn.c (expand_arith_overflow): Convert preprocessor check
12515 for WORD_REGISTER_OPERATIONS to runtime check.
12517 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
12519 * config/arc/arc.h (ASM_SPEC): Pass mfpuda to assembler.
12521 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
12523 * config/arc/arc.c (arc_process_double_reg_moves): Fix for
12524 big-endian compilation.
12525 * config/arc/arc.md (addf3): Likewise.
12526 (subdf3): Likewise.
12527 (muldf3): Likewise.
12529 2016-04-28 Richard Biener <rguenther@suse.de>
12531 PR tree-optimization/70840
12532 * match.pd: powi(-x, y) and powi(|x|,y) -> powi(x,y) if y is even;
12533 Fix pow(copysign(x, y), z) -> pow(x, z) and add powi variant;
12534 Mark x * pow(x,c) -> pow(x,c+1) commutative.
12535 Add powi(x,y) * powi(z,y) -> powi(x*z,y).
12537 2015-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12539 * config/aarch64/aarch64.h (WORD_REGISTER_OPERATIONS): Define to 0
12540 and explain why in a comment.
12542 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
12544 * config/arc/arc.md (cpu_facility): Add fpx variant.
12545 (subdf3): Prohibit use reverse sub when assist operations option
12547 * config/arc/fpx.md (subdf3_insn, *dsubh_peep2_insn): Allow drsub
12548 instructions only when FPX is enabled.
12549 * testsuite/gcc.target/arc/trsub.c: New test.
12551 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
12553 * config/i386/i386.md (*fop_<mode>_1_mixed): Do not check for
12554 mult_operator when calculating "type" attribute.
12555 (*fop_<mode>_1_i387): Ditto.
12556 (*fop_xf_1_i387): Ditto.
12557 (x87 stack loads peephole2): Add "reg = op (mem, reg)" peephole2.
12558 Use std::swap to swap operands. Use RTL expressions to generate
12561 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
12562 Joern Rennecke <joern.rennecke@embecosm.com>
12564 * config/arc/arc-protos.h (arc_legitimize_pic_address): Remove
12566 (emit_pic_move): Remove.
12567 (arc_eh_uses, insn_is_tls_gd_dispatch): Declare.
12568 * config/arc/arc.c (emit_pic_move): Removed.
12569 (TARGET_HAVE_TLS): Define.
12570 (arc_conditional_register_usage): Test for arc_tp_regno.
12571 (arc_print_operand, arc_print_operand_address): Handle TLS
12573 (arc_needs_pcl_p): New function.
12574 (arc_legitimate_pc_offset_p): Use arc_needs_pcl_p.
12575 (arc_legitimate_pic_addr_p): Handle TLS unspecs.
12576 (arc_raw_symbolic_reference_mentioned_p): Likewise.
12577 (arc_get_tp, arc_emit_call_tls_get_addr): New function.
12578 (arc_legitimize_tls_address): Likewise.
12579 (DTPOFF_ZERO_SYM): Define.
12580 (arc_legitimize_pic_address): Make it static, handle TLS cases.
12581 (arc_output_pic_addr_const): Print TLS unspecs.
12582 (prepare_pic_move): New function, replaces emit_pic_move.
12583 (arc_legitimate_constant_p): Handle TLS unspecs.
12584 (arc_legitimate_address_p): Likewise.
12585 (arc_rewrite_small_data_p): Use assert for TLS constants.
12586 (prepare_move_operands): Use prepare_pic_move.
12587 (arc_legitimize_address): Legitimize tls addresses.
12588 (arc_epilogue_uses): Check for arc_tp_regno.
12589 (arc_eh_uses, insn_is_tls_gd_dispatch): New function.
12590 * config/arc/arc.h [DEFAULT_LIBC != LIBC_UCLIBC] (EXTRA_SPECS):
12592 [DEFAULT_LIBC != LIBC_UCLIBC] (ARC_TLS_EXTRA_START_SPEC):
12594 [DEFAULT_LIBC != LIBC_UCLIBC] (STARTFILE_SPEC): Add
12595 %(arc_tls_extra_start_spec).
12596 (TARGET_CPU_CPP_BUILTINS): Define __ARC_TLS_REGNO__.
12597 (REGNO_OK_FOR_BASE_P): Check for arc_tp_regno.
12599 (INSN_REFERENCES_ARE_DELAYED): Use insn_is_tls_gd_dispatch.
12600 * config/arc/arc.md (UNSPEC_TLS_GD, UNSPEC_TLS_LD, UNSPEC_TLS_IE)
12601 (UNSPEC_TLS_OFF): Add.
12603 (tls_load_tp_soft, tls_gd_load, tls_gd_get_addr, tls_gd_dispatch)
12604 (get_thread_pointersi): New patterns.
12605 * config/arc/arc.opt (mtp-regno): New option.
12606 * config/arc/predicates.md (move_src_operand): Handle TLS symbols.
12607 (move_dest_operand): Likewise.
12608 * configure: Regenerate.
12609 * configure.ac: Add arc*-*-* case to test for tls.
12610 * doc/invoke.texi (ARC options): Document mtp-regno.
12612 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
12614 * config/arc/arc.c (arc_vector_mode_supported_p): Add support for
12615 the new ARC HS SIMD instructions.
12616 (arc_preferred_simd_mode): New function.
12617 (arc_autovectorize_vector_sizes): Likewise.
12618 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
12619 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
12620 (arc_init_reg_tables): Accept new ARC HS SIMD modes.
12621 (arc_init_builtins): Add new SIMD builtin types.
12622 (arc_split_move): Handle 64 bit vector moves.
12623 * config/arc/arc.h (TARGET_PLUS_DMPY, TARGET_PLUS_MACD)
12624 (TARGET_PLUS_QMACW): Define.
12625 * config/arc/builtins.def (QMACH, QMACHU, QMPYH, QMPYHU, DMACH)
12626 (DMACHU, DMPYH, DMPYHU, DMACWH, DMACWHU, VMAC2H, VMAC2HU, VMPY2H)
12627 (VMPY2HU, VADDSUB2H, VSUBADD2H, VADDSUB, VSUBADD, VADDSUB4H)
12628 (VSUBADD4H): New builtins.
12629 * config/arc/simdext.md: Add new ARC HS SIMD instructions.
12630 * testsuite/gcc.target/arc/builtin_simdarc.c: New file.
12632 2016-04-28 Eduard Sanou <dhole@openmailbox.org>
12633 Matthias Klose <doko@debian.org>
12635 * doc/cppenv.texi: Document SOURCE_DATE_EPOCH environment variable.
12637 2016-04-28 Richard Biener <rguenther@suse.de>
12639 PR middle-end/70777
12640 * fold-const.c (fold_binary_loc): Remove x*x to pow(x,2.0)
12643 2016-04-28 Oleg Endo <olegendo@gcc.gnu.org>
12645 * common/config/sh/sh-common.c: Remove SH5 support.
12646 * config/sh/constraints.md: Likewise.
12647 * config/sh/config/sh/elf.h: Likewise.
12648 * config/sh/linux.h: Likewise.
12649 * config/sh/netbsd-elf.h: Likewise.
12650 * config/sh/predicates.md: Likewise.
12651 * config/sh/sh-c.c: Likewise.
12652 * config/sh/sh-protos.h: Likewise.
12653 * config/sh/sh.c: Likewise.
12654 * config/sh/sh.h: Likewise.
12655 * config/sh/sh.md: Likewise.
12656 * config/sh/sh.opt: Likewise.
12657 * config/sh/sync.md: Likewise.
12658 * config/sh/sh64.h: Delete.
12659 * config/sh/shmedia.h: Likewise.
12660 * config/sh/shmedia.md: Likewise.
12661 * config/sh/sshmedia.h: Likewise.
12662 * config/sh/t-netbsd-sh5-64: Likewise.
12663 * config/sh/t-sh64: Likewise.
12664 * config/sh/ushmedia.h: Likewise.
12666 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
12668 * config/i386/i386.md (sign_extend to memory peephole2s): Use
12669 general_reg_operand instead of register_operand predicate.
12671 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
12673 * params.def (MIN_PARTITION_SIZE): Set default value to 10000.
12675 2016-04-27 Marc Glisse <marc.glisse@inria.fr>
12677 * match.pd (A - B > A, A + B < A): New transformations.
12679 2016-04-27 Patrick Palka <ppalka@gcc.gnu.org>
12681 * genattrtab.c (write_test_expr): New parameter EMIT_PARENS
12682 which defaults to true. Emit an outer pair of parentheses only if
12683 EMIT_PARENS. When continuing a chain of && or || (or & or |),
12684 don't emit parentheses for the right-hand operand.
12686 2016-04-27 Jeff Law <law@redhat.com>
12688 * tree-ssa-dom.c (record_temporary_equivalences): Fix typo in comment.
12690 2016-04-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12692 * config/rs6000/altivec.md (altivec_lvx_<mode>): Remove.
12693 (altivec_lvx_<mode>_internal): Document.
12694 (altivec_lvx_<mode>_2op): New define_insn.
12695 (altivec_lvx_<mode>_1op): Likewise.
12696 (altivec_lvx_<mode>_2op_si): Likewise.
12697 (altivec_lvx_<mode>_1op_si): Likewise.
12698 (altivec_stvx_<mode>): Remove.
12699 (altivec_stvx_<mode>_internal): Document.
12700 (altivec_stvx_<mode>_2op): New define_insn.
12701 (altivec_stvx_<mode>_1op): Likewise.
12702 (altivec_stvx_<mode>_2op_si): Likewise.
12703 (altivec_stvx_<mode>_1op_si): Likewise.
12704 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
12705 Expand vec_ld and vec_st during parsing.
12706 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Commentary
12708 (altivec_expand_stvx_be): Likewise.
12709 (altivec_expand_lv_builtin): Expand lvx built-ins to expose the
12710 address-masking behavior in RTL.
12711 (altivec_expand_stv_builtin): Expand stvx built-ins to expose the
12712 address-masking behavior in RTL.
12713 (altivec_expand_builtin): Change builtin code arguments for calls
12714 to altivec_expand_stv_builtin and altivec_expand_lv_builtin.
12715 (insn_is_swappable_p): Avoid incorrect swap optimization in the
12716 presence of lvx/stvx patterns.
12717 (alignment_with_canonical_addr): New function.
12718 (alignment_mask): Likewise.
12719 (find_alignment_op): Likewise.
12720 (recombine_lvx_pattern): Likewise.
12721 (recombine_stvx_pattern): Likewise.
12722 (recombine_lvx_stvx_patterns): Likewise.
12723 (rs6000_analyze_swaps): Perform a pre-pass to recognize lvx and
12724 stvx patterns from expand.
12725 * config/rs6000/vector.md (vector_altivec_load_<mode>): Use new
12727 (vector_altivec_store_<mode>): Likewise.
12729 2016-04-26 Evandro Menezes <e.menezes@samsung.com>
12731 * config/aarch64/aarch64.md
12732 (*movhf_aarch64): Add "movi %0, #0" to zero up register and
12733 remove the "fp" attributes.
12734 (*movsf_aarch64): Add "movi %0, #0" to zero up register and
12735 add the "simd" attributes.
12736 (*movdf_aarch64): Likewise.
12737 (*movtf_aarch64): Remove the "fp" attributes.
12738 * testsuite/gcc.target/aarch64/fmovf-zero-reg.c: Update accordingly.
12739 * testsuite/gcc.target/aarch64/fmovd-zero-reg.c: Likewise.
12741 2016-04-27 David Malcolm <dmalcolm@redhat.com>
12743 * emit-rtl.c (maybe_set_first_label_num): Strengthen param from
12744 rtx to rtx_code_label *.
12745 * rtl.h (maybe_set_first_label_num): Likewise.
12747 2016-04-27 David Malcolm <dmalcolm@redhat.com>
12749 * df-core.c (df_add_problem): Make the problem param be const.
12750 (df_remove_problem): Make local "problem" be const.
12751 * df-problems.c (problem_RD): Make const.
12752 (problem_LR): Likewise.
12753 (problem_LIVE): Likewise.
12754 (problem_MIR): Likewise.
12755 (problem_CHAIN): Likewise.
12756 (problem_WORD_LR): Likewise.
12757 (problem_NOTE): Likewise.
12758 (problem_MD): Likewise.
12759 * df-scan.c (problem_SCAN): Likewise.
12760 * df.h (struct df_problem): Make field "dependent_problem" be
12762 (struct dataflow): Likewise for field "problem".
12763 (df_add_problem): Make param const.
12765 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
12767 * config/i386/i386.c (ix86_spill_class): Enable for TARGET_SSE2 when
12768 inter-unit moves to/from vector registers are enabled. Do not disable
12771 2016-04-27 David Malcolm <dmalcolm@redhat.com>
12773 * df.h (DF_SCAN, DF_LR, DF_LIVE, DF_RD, DF_CHAIN, DF_WORD_LR,
12774 DF_NOTE, DF_MD, DF_MIR, DF_LAST_PROBLEM_PLUS1): Convert from
12776 (enum df_problem_id): ...this new enum.
12777 (struct df_problem): Convert field "id" from "int" to
12778 enum df_problem_id.
12780 2016-04-27 David Malcolm <dmalcolm@redhat.com>
12782 * rtl.def: Update comment for "things in the instruction chain" to
12783 reflect the removal of the leading "i" field for INSN_UID in
12784 r210360. Fix bogus apostrophe.
12786 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
12788 * config/i386/i386.md
12789 (lea arith with mem operand + setcc peephole2): Set operator mode.
12791 2016-04-27 H.J. Lu <hongjiu.lu@intel.com>
12794 * config/i386/i386.c (scalar_to_vector_candidate_p): Renamed to ...
12795 (dimode_scalar_to_vector_candidate_p): This.
12796 (timode_scalar_to_vector_candidate_p): New function.
12797 (scalar_to_vector_candidate_p): Likewise.
12798 (timode_check_non_convertible_regs): Likewise.
12799 (timode_remove_non_convertible_regs): Likewise.
12800 (remove_non_convertible_regs): Likewise.
12801 (remove_non_convertible_regs): Renamed to ...
12802 (dimode_remove_non_convertible_regs): This.
12803 (scalar_chain::~scalar_chain): Make it virtual.
12804 (scalar_chain::compute_convert_gain): Make it pure virtual.
12805 (scalar_chain::mark_dual_mode_def): Likewise.
12806 (scalar_chain::convert_insn): Likewise.
12807 (scalar_chain::convert_registers): Likewise.
12808 (scalar_chain::add_to_queue): Make it protected.
12809 (scalar_chain::emit_conversion_insns): Likewise.
12810 (scalar_chain::replace_with_subreg): Likewise.
12811 (scalar_chain::replace_with_subreg_in_insn): Likewise.
12812 (scalar_chain::convert_op): Likewise.
12813 (scalar_chain::convert_reg): Likewise.
12814 (scalar_chain::make_vector_copies): Likewise.
12815 (scalar_chain::convert_registers): New pure virtual function.
12816 (class dimode_scalar_chain): New class.
12817 (class timode_scalar_chain): Likewise.
12818 (scalar_chain::mark_dual_mode_def): Renamed to ...
12819 (dimode_scalar_chain::mark_dual_mode_def): This.
12820 (timode_scalar_chain::mark_dual_mode_def): New function.
12821 (timode_scalar_chain::convert_insn): Likewise.
12822 (dimode_scalar_chain::convert_registers): Likewise.
12823 (scalar_chain::compute_convert_gain): Renamed to ...
12824 (dimode_scalar_chain::compute_convert_gain): This.
12825 (scalar_chain::replace_with_subreg): Renamed to ...
12826 (dimode_scalar_chain::replace_with_subreg): This.
12827 (scalar_chain::replace_with_subreg_in_insn): Renamed to ...
12828 (dimode_scalar_chain::replace_with_subreg_in_insn): This.
12829 (scalar_chain::make_vector_copies): Renamed to ...
12830 (dimode_scalar_chain::make_vector_copies): This.
12831 (scalar_chain::convert_reg): Renamed to ...
12832 (dimode_scalar_chain::convert_reg ): This.
12833 (scalar_chain::convert_op): Renamed to ...
12834 (dimode_scalar_chain::convert_op): This.
12835 (scalar_chain::convert_insn): Renamed to ...
12836 (dimode_scalar_chain::convert_insn): This.
12837 (scalar_chain::convert): Call convert_registers.
12838 (convert_scalars_to_vector): Change to scalar_chain pointer to
12839 use timode_scalar_chain in 64-bit mode and dimode_scalar_chain
12840 in 32-bit mode. Delete scalar_chain pointer. Call
12841 free_dominance_info in 64-bit mode.
12842 (pass_stv::gate): Remove TARGET_64BIT check.
12843 (ix86_option_override): Put the 64-bit STV pass before the CSE
12846 2016-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
12848 * dwarf2out.h (struct dw_loc_descr_node): Remove the
12849 dw_loc_frame_offset field.
12850 * dwarf2out.c (new_loc_descr): Likewise.
12851 (resolve_args_picking_1): Turn the VISITED hash set into a
12852 FRAME_OFFSET hash map. Use it to associate a frame offset to
12853 visited nodes. Remove uses of the CHECKING_P macro.
12854 (resolve_args_picking): Update call to resolve_args_picking_1.
12856 2016-04-27 Martin Liska <mliska@suse.cz>
12858 * tree-ssa-loop-ivopts.c (iv_ca_dump): Fix level of indentation.
12859 (free_loop_data): Release vuses of groups.
12861 2016-04-27 Bin Cheng <bin.cheng@arm.com>
12863 * tree-ssa-loop-ivopts.c (struct iv): Use pointer to struct iv_use
12864 instead of redundant use_id and boolean have_use_for.
12865 (struct iv_use): Change sub_id into group_id. Remove field next.
12866 Move fields: related_cands, n_map_members, cost_map and selected
12868 (struct iv_group): ... here. New structure.
12869 (struct iv_common_cand): Use structure declaration directly.
12870 (struct ivopts_data, iv_ca, iv_ca_delta): Rename fields.
12871 (MAX_CONSIDERED_USES): Rename macro to ...
12872 (MAX_CONSIDERED_GROUPS): ... here.
12873 (n_iv_uses, iv_use, n_iv_cands, iv_cand): Delete.
12874 (dump_iv, dump_use, dump_cand): Refactor format of dump information.
12875 (dump_uses): Rename to ...
12876 (dump_groups): ... here. Update all uses.
12877 (tree_ssa_iv_optimize_init, alloc_iv): Update all uses.
12878 (find_induction_variables): Refactor format of dump information.
12879 (record_sub_use): Delete.
12880 (record_use): Update all uses.
12881 (record_group): New function.
12882 (record_group_use, find_interesting_uses_op): Call above functions.
12884 (find_interesting_uses_cond): Ditto.
12885 (group_compare_offset): New function.
12886 (split_all_small_groups): Rename to ...
12887 (split_small_address_groups_p): ... here. Update all uses.
12888 (split_address_groups): Update all uses.
12889 (find_interesting_uses): Refactor format of dump information.
12890 (add_candidate_1): Update all uses. Remove redundant check on iv,
12892 (add_candidate, record_common_cand): Remove redundant assert.
12893 (add_iv_candidate_for_biv): Update use.
12894 (add_iv_candidate_derived_from_uses): Update all uses.
12895 (add_iv_candidate_for_groups, record_important_candidates): Ditto.
12896 (alloc_use_cost_map): Ditto.
12897 (set_use_iv_cost, get_use_iv_cost): Rename to ...
12898 (set_group_iv_cost, get_group_iv_cost): ... here. Update all uses.
12899 (determine_use_iv_cost_generic): Ditto.
12900 (determine_group_iv_cost_generic): Ditto.
12901 (determine_use_iv_cost_address): Ditto.
12902 (determine_group_iv_cost_address): Ditto.
12903 (determine_use_iv_cost_condition): Ditto.
12904 (determine_group_iv_cost_cond): Ditto.
12905 (determine_use_iv_cost): Ditto.
12906 (determine_group_iv_cost): Ditto.
12907 (set_autoinc_for_original_candidates): Update all uses.
12908 (find_iv_candidates): Update all uses. Refactor dump information.
12909 (determine_use_iv_costs): Ditto.
12910 (determine_iv_costs): Ditto.
12911 (iv_ca_cand_for_use): Rename to ...
12912 (iv_ca_cand_for_group): ... here. Update all uses.
12913 (iv_ca_add_use, iv_ca_add_group): Ditto.
12914 (iv_ca_set_cp, iv_ca_cost, iv_ca_delta_add): Update all uses.
12915 (iv_ca_delta_join, iv_ca_delta_reverse, iv_ca_delta_free): Ditto.
12916 (iv_ca_new, iv_ca_dump, iv_ca_extend, iv_ca_narrow): Ditto.
12917 (iv_ca_prune, cheaper_cost_with_cand, iv_ca_replace): Ditto.
12918 (try_add_cand_for, try_improve_iv_set, find_optimal_iv_set): Ditto.
12919 (create_new_iv, adjust_iv_update_pos): Ditto.
12920 (rewrite_use_address): Delete.
12921 (rewrite_use_address_1): Rename to ...
12922 (rewrite_use_address): ... here.
12923 (rewrite_use_compare): Update all uses.
12924 (rewrite_use): Delete.
12925 (rewrite_uses): Rename to ...
12926 (rewrite_groups): ... here. Update all uses.
12927 (remove_unused_ivs, free_loop_data): Update all uses.
12928 (tree_ssa_iv_optimize_finalize, tree_ssa_iv_optimize_loop): Ditto.
12930 2016-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12932 * rtlanal.c (nonzero_bits1): Convert preprocessor check
12933 for WORD_REGISTER_OPERATIONS to runtime check.
12935 2016-04-27 Richard Biener <rguenther@suse.de>
12938 * tree-ssa-structalias.c (find_func_aliases_for_call): Use
12939 aggregate_value_p to determine if a function result is
12940 returned by reference.
12941 (ipa_pta_execute): Functions having their address taken are
12942 not automatically nonlocal.
12944 2016-04-27 Jakub Jelinek <jakub@redhat.com>
12947 * tree-core.h (enum operand_equal_flag): Add OEP_NO_HASH_CHECK.
12948 * fold-const.c (operand_equal_p): If flag_checking and
12949 OEP_NO_HASH_CHECK is not set in flag, recurse with OEP_NO_HASH_CHECK
12950 and if it returns non-zero, assert iterative_hash_expr on both
12953 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
12955 * doc/invoke.texi (-frename-registers): Also enabled at -Os.
12957 2016-04-27 Nick Clifton <nickc@redhat.com>
12959 PR middle-end/49889
12960 * varasm.c (merge_weak): Generate an error if an attempt is made
12961 to convert a non-weak static function into a weak, public function.
12963 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
12965 * params.def (MAX_PARTITION_SIZE): New param.
12966 * doc/invoke.texi: Document lto-max-partition.
12968 2016-04-27 Richard Biener <rguenther@suse.de>
12971 * tree-ssa-structalias.c (refered_from_nonlocal_fn): New
12972 function cummulating used_from_other_partition, externally_visible
12973 and force_output from aliases.
12974 (refered_from_nonlocal_var): Likewise.
12975 (ipa_pta_execute): Use call_for_symbol_and_aliases to cummulate
12976 node flags properly.
12978 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
12980 * doc/invoke.texi (Warning Options): Add -Wmemset-elt-size.
12981 (-Wmemset-elt-size): New item.
12983 2016-04-27 Eric Botcazou <ebotcazou@adacore.com>
12986 * stor-layout.h (internal_reference_types): Delete.
12987 * stor-layout.c (reference_types_internal): Likewise.
12988 (internal_reference_types): Likewise.
12989 (layout_type) <REFERENCE_TYPE>: Adjust.
12991 2016-04-27 Jakub Jelinek <jakub@redhat.com>
12994 * tree.h (inchash::add_expr): Add FLAGS argument.
12995 * tree.c (inchash::add_expr): Likewise. If not OEP_ADDRESS_OF,
12996 use STRIP_NOPS first. For INTEGER_CST assert not OEP_ADDRESS_OF.
12997 For REAL_CST and !HONOR_SIGNED_ZEROS (t) hash +/- 0 the same.
12998 Formatting fix. Adjust recursive calls. For tcc_comparison,
12999 if swap_tree_comparison (code) is smaller than code, hash that
13000 and arguments in the other order. Hash CONVERT_EXPR the same
13001 as NOP_EXPR. For OEP_ADDRESS_OF hash MEM_REF with 0 offset
13002 of ADDR_EXPR of decl as the decl itself. Add or remove
13003 OEP_ADDRESS_OF from recursive flags as needed. For
13004 FMA_EXPR, WIDEN_MULT_{PLUS,MINUS}_EXPR hash the first two
13005 operands commutatively and only the third one normally.
13006 For internal CALL_EXPR hash in CALL_EXPR_IFN.
13008 2016-04-27 Sebastian Huber <sebastian.huber@embedded-brains.de>
13010 * config/rtems.h (LIB_SPEC): Add -latomic.
13012 2016-04-27 Joel Sherrill <joel@rtems.org>
13014 * config/microblaze/rtems.h: Redefine LINK_SPEC to avoid
13015 xilink.ld and flags not relevant to RTEMS.
13017 2016-04-26 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
13019 * toplev.c (backend_init_target): Avoid calling init_reload when using
13022 2016-04-26 Jakub Jelinek <jakub@redhat.com>
13024 * reorg.c (try_merge_delay_insns): Declare i and j inside the
13025 for loops rather than one for the whole function.
13027 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
13029 * match.pd (X + CST CMP X): New transformation.
13031 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
13033 * genmatch.c (write_predicate): Add ATTRIBUTE_UNUSED.
13034 * fold-const.c (fold_binary_loc): Remove 2 transformations
13035 superseded by match.pd.
13036 * match.pd (x+x -> x*2): Generalize to integers.
13038 2016-04-26 Bernd Schmidt <bschmidt@redhat.com>
13040 * config/i386/i386.md (operation on memory peephole): Duplicate an
13041 existing peephole and adapt it to match lea rather than an operation
13044 PR rtl-optimization/57193
13045 * opts.c (default_options_table): Add OPT_frename_registers at -O2
13047 * doc/invoke.texi (-frename-registers, -O2): Update documentation.
13049 2016-04-26 Bin Cheng <bin.cheng@arm.com>
13051 * tree-if-conv.c (any_pred_load_store): New static variable.
13052 (if_convertible_gimple_assign_stmt_p): Remove parameter. Use
13053 any_pred_load_store instead of and_mask_load_store.
13054 (if_convertible_stmt_p, if_convertible_loop_p_1): Ditto.
13055 (if_convertible_loop_p, insert_gimplified_predicates): Ditto.
13056 (combine_blocks, tree_if_conversion): Ditto.
13058 2016-04-26 Bin Cheng <bin.cheng@arm.com>
13060 PR tree-optimization/70771
13061 PR tree-optimization/70775
13062 * tree-if-conv.c (if_convertible_phi_p): Remove check on special
13063 virtual PHI nodes. Delete parameter.
13064 (if_convertible_loop_p_1): Delete argument to above function.
13065 (predicate_all_scalar_phis): Delete code handling single-argument
13067 (tree_if_conversion): Mark and update virtual SSA.
13069 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13072 * config/i386/i386.c (LARGECOMM_SECTION_ASM_OP): Define default.
13073 (x86_elf_aligned_common): Rename to ...
13074 (x86_elf_aligned_decl_common): ... this.
13075 Add decl arg. Switch to .lbss for largecomm object. Use
13076 LARGECOMM_SECTION_ASM_OP.
13077 * config/i386/i386-protos.h (x86_elf_aligned_common): Reflect
13079 * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_COMMON): Rename to ...
13080 (ASM_OUTPUT_ALIGNED_DECL_COMMON): ... this.
13082 * config/i386/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
13083 [!USE_GAS] (LARGECOMM_SECTION_ASM_OP): Define.
13085 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13088 * config/i386/i386.c (SECTION_LARGE): Define.
13089 (x86_64_elf_select_section): Set it for large data/bss sections.
13090 Only clear SECTION_WRITE for .lrodata.
13091 (x86_64_elf_section_type_flags): Set SECTION_LARGE for large
13093 * config/i386/sol2.h (MACH_DEP_SECTION_ASM_FLAG): Define.
13094 * varasm.c (default_elf_asm_named_section): Grow flagchars.
13095 [MACH_DEP_SECTION_ASM_FLAG] Emit MACH_DEP_SECTION_ASM_FLAG for
13097 * doc/tm.texi.in (Sections, MACH_DEP_SECTION_ASM_FLAG): Describe.
13098 * doc/tm.texi: Regenerate.
13100 2016-04-26 Jakub Jelinek <jakub@redhat.com>
13103 * configure.ac (--enable-checking): Document extra flag, for
13104 non-release builds default to --enable-checking=yes,extra.
13105 If misc checking and extra checking, define CHECKING_P to 2 instead
13107 * common.opt (fchecking=): Add.
13108 * doc/invoke.texi (-fchecking=): Document.
13109 * doc/install.texi: Document --enable-checking changes.
13110 * configure: Regenerated.
13111 * config.in: Regenerated.
13113 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
13115 * config/i386/i386.md (*movxi_internal_avx512f): Use insn type
13116 attribute instead of which_alternative.
13117 * config/i386/sse.md (*mov<mode>_internal): Ditto.
13118 Use EXT_REX_SSE_REG_P where appropriate.
13120 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
13122 * config/i386/predicates.md (const0_operand): Do not match
13123 const_wide_int code.
13124 (const1_operand): Ditto.
13126 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
13128 * config/i386/i386.md (*movoi_internal_avx): Set mode attribute to XI
13129 for SSE constm1 operands and TARGET_AVX512VL.
13130 (*movti_internal): Ditto.
13131 (*mov<mode>_or): Use constm1_operand predicate.
13132 * config/i386/sse.md (*mov<mode>_internal): Set mode attribute to XI
13133 for SSE vector_all_ones operands and TARGET_AVX512VL.
13134 * config/i386/predicates.md (constm1_operand): New predicate.
13135 * config/i386/i386.c (standard_sse_constant_opcode): Simplify
13136 emission of constant -1 load.
13138 2016-04-25 Jason Merrill <jason@redhat.com>
13140 * gdbinit.in: Skip is-a.h.
13142 * attribs.c (register_scoped_attributes): Fix logic.
13143 * attribs.h: Declare register_scoped_attributes.
13145 2016-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13147 * config/rs6000/rs6000-builtin.def: Correct pasto error for
13148 stxvd2x and stxvw4x built-in functions.
13150 2016-04-25 DJ Delorie <dj@redhat.com>
13152 * config/msp430/msp430.md (ashlhi3): Optimize one bit shifts.
13153 (ashrhi3): Likewise.
13154 (lshrhi3): Likewise.
13156 2016-04-25 Richard Biener <rguenther@suse.de>
13158 PR tree-optimization/70780
13159 * tree-ssa-pre.c (compute_antic_aux): Also return true if the block
13160 wasn't visited yet.
13161 (compute_antic): Mark blocks with abnormal preds as visited as
13162 they have a final empty antic-in solution already.
13164 2016-04-25 Michael Collison <michael.collison@linaro.org>
13166 * ChangeLog(2016-04-25): Fix ChangeLog formatting.
13168 2016-04-25 Michael Collison <michael.collison@linaro.org>
13170 * config/arm/neon.md (widen_<us>sum<mode>): New patterns where
13171 mode is VQI to improve mixed mode vectorization.
13172 * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3): New
13173 define_insn to match low half of signed vaddw.
13174 * config/arm/neon.md (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): New
13175 define_insn to match high half of signed vaddw.
13176 * config/arm/neon.md (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): New
13177 define_insn to match low half of unsigned vaddw.
13178 * config/arm/neon.md (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): New
13179 define_insn to match high half of unsigned vaddw.
13180 * config/arm/arm.c (arm_simd_vect_par_cnst_half): New function.
13181 (arm_simd_check_vect_par_cnst_half_p): Likewise.
13182 * config/arm/arm-protos.h (arm_simd_vect_par_cnst_half): Prototype
13184 (arm_simd_check_vect_par_cnst_half_p): Likewise.
13185 * config/arm/predicates.md (vect_par_constant_high): Support
13186 big endian and simplify by calling
13187 arm_simd_check_vect_par_cnst_half
13188 (vect_par_constant_low): Likewise.
13190 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
13192 * config/i386/i386.md (*lea<mode>_general_4): Use const_0_to_3_operand
13193 predicate for operand 2.
13195 2016-04-24 Uros Bizjak <ubizjak@gmail.com>
13196 H.J. Lu <hongjiu.lu@intel.com>
13198 * config/i386/i386-protos.h (standard_sse_constant_p): Add
13199 machine_mode argument.
13200 * config/i386/i386.c (standard_sse_constant_p): Return 2 for
13201 constm1_rtx operands. For VOIDmode constants, get mode from
13202 pred_mode. Check mode size if the mode is supported by ABI.
13203 (standard_sse_constant_opcode): Do not use standard_constant_p.
13204 Strictly check ABI support for all-ones operands.
13205 (ix86_legitimate_constant_p): Handle TImode, OImode and XImode
13206 immediates. Update calls to standard_sse_constant_p.
13207 (ix86_expand_vector_move): Update calls to standard_sse_constant_p.
13208 (ix86_rtx_costs): Ditto.
13209 * config/i386/i386.md (*movxi_internal_avx512f): Use
13210 nonimmediate_or_sse_const_operand instead of vector_move_operand.
13211 Use (v,BC) alternative instead of (v,C). Use register_operand
13212 checks instead of MEM_P.
13213 (*movoi_internal_avx): Use nonimmediate_or_sse_const_operand instead
13214 of vector_move_operand. Add (v,BC) alternative and corresponding avx2
13215 isa attribute. Use register_operand checks instead of MEM_P.
13216 (*movti_internal): Use nonimmediate_or_sse_const_operand for
13217 TARGET_SSE. Improve TARGET_SSE insn constraint. Add (v,BC)
13218 alternative and corresponding sse2 isa attribute.
13219 (*movtf_internal, *movdf_internal, *movsf_interal): Update calls
13220 to standard_sse_constant_p.
13221 (FP constant splitters): Ditto.
13222 * config/i386/constraints.md (BC): Do not use standard_sse_constant_p.
13224 * config/i386/predicates.md (constm1_operand): Remove.
13225 (nonimmediate_or_sse_const_operand): Rewrite using RTX.
13226 * config/i386/sse.md (*<avx512>_cvtmask2<ssemodesuffix><mode>): Use
13227 vector_all_ones_operand instead of constm1_operand.
13229 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13231 * print-rtl.c (print_rtx_insn_vec): New function.
13232 * print-rtl.h: New prototype.
13233 * store-motion.c (struct st_expr): Make avail_stores a vector.
13234 (st_expr_entry): Adjust.
13235 (free_st_expr_entry): Likewise.
13236 (print_store_motion_mems): Likewise.
13237 (find_moveable_store): Likewise.
13238 (compute_store_table): Likewise.
13239 (delete_store): Likewise.
13240 (build_store_vectors): Likewise.
13242 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13244 * reorg.c (try_merge_delay_insns): Make merged_insns a vector.
13246 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13248 * vec.h (vec_safe_contains): New function.
13249 (vec::contains): Likewise.
13250 (vec::begin): Likewise.
13251 (vec::end): Likewise.
13253 2016-04-23 Jakub Jelinek <jakub@redhat.com>
13256 * cfgexpand.c (expand_stack_vars): Fix typo.
13258 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
13260 * system.h (list, map, set, vector): Include conditionally.
13261 * auto-profile.c (INCLUDE_MAP, INCLUDE_SET): Define.
13262 * graphite-isl-ast-to-gimple.c (INCLUDE_MAP): Define.
13263 * ipa-icf.c (INCLUDE_LIST): Define.
13264 * config/aarch64/cortex-a57-fma-steering.c (INCLUDE_LIST): Define.
13265 * config/sh/sh.c (INCLUDE_VECTOR): Define.
13266 * config/sh/sh_treg_combine.cc (INCLUDE_ALGORITHM): Define.
13267 (INCLUDE_LIST, INCLUDE_VECTOR): Define.
13268 * cp/logic.cc (INCLUDE_LIST): Define.
13269 * fortran/trans-common.c (INCLUDE_MAP): Define.
13271 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
13273 * auto-profile.c: Remove <string.h> include.
13274 * ipa-icf-gimple.c: Remove <list> include.
13275 * diagnostic.c: Remove <new> include.
13276 * genmatch.c: Likewise.
13277 * pretty-print.c: Likewise.
13278 * toplev.c: Likewise
13279 * c/c-objc-common.c: Likewise.
13280 * cp/error.c: Likewise.
13281 * fortran/error.c: Likewise.
13283 2016-04-22 Richard Biener <rguenther@suse.de>
13285 * lto-streamer-in.c (input_ssa_names): Do not allocate
13286 GIMPLE_NOP for all SSA names.
13287 * lto-streamer-out.c (output_ssa_names): Do not output
13288 SSA names that should have been released.
13290 2016-04-22 Richard Biener <rguenther@suse.de>
13292 PR tree-optimization/70740
13293 * tree-ssa-phiprop.c (propagate_with_phi): Handle inserted
13296 2016-04-21 H.J. Lu <hongjiu.lu@intel.com>
13299 * config/i386/predicates.md (call_insn_operand): Replace
13300 sibcall_memory_operand with memory_operand.
13302 2016-04-21 Patrick Palka <ppalka@gcc.gnu.org>
13304 * tree-vrp.c (register_edge_assert_for_2): Remove redundant
13305 has_single_use() tests.
13306 (register_edge_assert_for_1): Likewise.
13307 (find_assert_locations_1): Check the liveness bitmap instead of
13308 checking has_single_use().
13310 2016-04-21 Kirill Yukhin <kirill.yukhin@intel.com>
13313 * config/i386/sse.md (define_insn "<shift_insn><mode>3<mask_name>"):
13314 Extract AVX-512BW constraint from AVX.
13316 2016-04-21 Richard Biener <rguenther@suse.de>
13318 PR tree-optimization/70725
13319 * tree-if-conv.c (if_convertible_phi_p): Adjust guard
13320 for phi_convertible_by_degenerating_args.
13321 (predicate_all_scalar_phis): Handle single-argument PHIs.
13323 2016-04-21 Richard Biener <rguenther@suse.de>
13325 PR middle-end/70747
13326 * fold-const.c (fold_comparison): Return properly typed
13329 2016-04-21 Bin Cheng <bin.cheng@arm.com>
13331 PR tree-optimization/70715
13332 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
13333 after expanding BASE using expand_simple_operations.
13335 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
13337 * match.pd (min(-x, -y), max(-x, -y), min(~x, ~y), max(~x, ~y)):
13338 New transformations.
13340 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
13342 * match.pd (min(int_max, x), max(int_min, x)): New transformations.
13344 2016-04-20 Jan Hubicka <jh@suse.cz>
13346 * ipa-inline.c (can_inline_edge_p): Pass caller info to
13347 ultiimate_alias_target.
13348 (update_callee_keys): Likewise.
13349 (lookup_recursive_calls): Likewise.
13350 (speculation_useful_p): Likewise.
13352 2016-04-20 Jan Hubicka <jh@suse.cz>
13355 * cgraph.c (cgraph_set_nothrow_flag_1): Rename to ...
13356 (set_nothrow_flag_1): ... this; handle interposition correctly;
13357 recurse on aliases and thunks.
13358 (cgraph_node::set_nothrow_flag): New.
13359 * ipa-pure-const.c (ignore_edge_for_nothrow): Ignore calls to
13360 functions compiled with non-call exceptions that binds to current
13362 (propagate_nothrow): Be safe WRT interposition.
13363 * cgraph.h (set_nothrow_flag): Update prototype.
13365 2016-04-18 Jan Hubicka <jh@suse.cz>
13367 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
13368 max_loop_iterations_int.
13369 (tree_unswitch_outer_loop): Likewise.
13371 2016-04-20 Bin Cheng <bin.cheng@arm.com>
13373 PR tree-optimization/69489
13374 * tree-if-conv.c (phi_convertible_by_degenerating_args): New.
13375 (if_convertible_phi_p): Call phi_convertible_by_degenerating_args.
13376 Revise dump message.
13377 (if_convertible_bb_p): Remove check on edge count of basic block's
13380 2016-04-20 Bin Cheng <bin.cheng@arm.com>
13382 PR tree-optimization/56625
13383 PR tree-optimization/69489
13384 * tree-data-ref.h (DR_INNERMOST): New macro.
13385 * tree-if-conv.c (innermost_loop_behavior_hash): New class for
13386 hashing struct innermost_loop_behavior.
13387 (ref_DR_map): Remove.
13388 (innermost_DR_map): New map.
13389 (baseref_DR_map): Revise comment.
13390 (hash_memrefs_baserefs_and_store_DRs_read_written_info): Store DR
13391 to innermost_DR_map accroding to its innermost loop behavior.
13392 (ifcvt_memrefs_wont_trap): Get DR from innermost_DR_map according
13393 to its innermost loop behavior.
13394 (if_convertible_loop_p_1): Remove intialization for ref_DR_map.
13395 Add initialization for innermost_DR_map. Record memory reference
13396 in DR_BASE_ADDRESS if the reference is compound one or it doesn't
13397 have innermost loop behavior.
13398 (if_convertible_loop_p): Remove release for ref_DR_map. Release
13401 2016-04-20 Uros Bizjak <ubizjak@gmail.com>
13403 * config/i386/i386.md (*lea<mode>_general_1): Rename from
13404 *lea_general_1. Use explicit SWI12 mode interator.
13405 (*lea<mode>_general_2): Rename from *lea_general_2.
13406 Use explicit SWI12 mode interator.
13407 (*lea<mode>_general_3): Rename from *lea_general_3.
13408 Use explicit SWI12 mode interator.
13409 (*lea<SWI12:mode>_general_4): Split from *lea_general_4.
13410 Use explicit SWI12 mode interator.
13411 (*lea<SWI48:mode>_general_4): Split from *lea_general_4.
13412 Use explicit SWI48 mode interator.
13414 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
13416 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
13417 Short-cut unaligned load and store cases. Handle all integer
13419 (ix86_expand_vector_move_misalign): Short-cut unaligned load
13420 and store cases. Call ix86_avx256_split_vector_move_misalign
13421 directly without checking mode class.
13423 2016-04-20 Andrew Pinski <apinski@cavium.com>
13424 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13427 * config/aarch64/aarch64.md (sibcall): Force call
13428 address to be DImode for ILP32.
13429 (sibcall_value): Likewise.
13431 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
13433 * doc/invoke.texi: Replace -skip-rax-setup with -mskip-rax-setup.
13435 2016-04-20 Richard Biener <rguenther@suse.de>
13437 * gimple-match.h (maybe_build_generic_op): Adjust prototype.
13438 * gimple-match-head.c (maybe_build_generic_op): Pass all ops
13439 by reference, clear op1 and op2 when GENERICizing BIT_FIELD_REF.
13440 (maybe_push_res_to_seq): Adjust.
13441 * gimple-fold.c (maybe_build_generic_op): Likewise.
13443 2016-04-20 Marek Polacek <polacek@redhat.com>
13445 * tree-if-conv.c (is_false_predicate): For NULL_TREE return false
13448 2016-04-20 Ilya Enkovich <ilya.enkovich@intel.com>
13450 * config/i386/sse.md (vec_unpacks_lo_hi): Always
13451 use kmovw to support AVX512F target.
13453 2016-04-20 Bin Cheng <bin.cheng@arm.com>
13455 * tree-scalar-evolution.c (interpret_rhs_expr): Handle BIT_AND_EXPR.
13457 2016-04-20 Marek Polacek <polacek@redhat.com>
13459 PR tree-optimization/70725
13460 * tree-if-conv.c (is_false_predicate): New function.
13461 (predicate_mem_writes): Use it.
13463 2016-04-20 Richard Biener <rguenther@suse.de>
13465 PR tree-optimization/70726
13466 * tree-vect-stmts.c (vectorizable_shift): Do not use scalar
13467 shift amounts from a pattern stmt operand.
13469 2016-04-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13472 * config/s390/s390.c (s390_restore_gprs_from_fprs): Pick the new
13473 stack_restore_from_fpr pattern when restoring r15.
13474 (s390_optimize_prologue): Strip away the memory barrier in the
13475 parallel when trying to get rid of restore insns.
13476 * config/s390/s390.md ("stack_restore_from_fpr"): New insn
13477 definition for loading the stack pointer from an FPR. Compared to
13478 the normal move insn this pattern includes a full memory barrier.
13480 2016-04-19 Jakub Jelinek <jakub@redhat.com>
13482 PR middle-end/70680
13483 * gimplify.c (gimplify_omp_for): Call omp_notice_variable for
13484 implicitly linear or lastprivate iterator on the outer context.
13486 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
13488 * config/i386/i386.c (ix86_legitimate_combined_insn): Remove
13490 * config/i386/i386.md (ssememalign): Removed.
13491 * config/i386/sse.md: Remove ssememalign attribute from patterns.
13493 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
13496 * config/i386/avx512bwintrin.h (_mm512_mask_loadu_epi16): Pass
13497 const short * to __builtin_ia32_loaddquhi512_mask.
13498 (_mm512_maskz_loadu_epi16): Likewise.
13499 (_mm512_mask_storeu_epi16): Pass short * to
13500 __builtin_ia32_storedquhi512_mask.
13501 (_mm512_mask_loadu_epi8): Pass const char * to
13502 __builtin_ia32_loaddquqi512_mask.
13503 (_mm512_maskz_loadu_epi8): Likewise.
13504 (_mm512_mask_storeu_epi8): Pass char * to
13505 __builtin_ia32_storedquqi512_mask.
13506 * config/i386/avx512fintrin.h (_mm512_loadu_pd): Pass
13507 const double * to __builtin_ia32_loadupd512_mask.
13508 (_mm512_mask_loadu_pd): Likewise.
13509 (_mm512_maskz_loadu_pd): Likewise.
13510 (_mm512_storeu_pd): Pass double * to
13511 __builtin_ia32_storeupd512_mask.
13512 (_mm512_mask_storeu_pd): Likewise.
13513 (_mm512_loadu_ps): Pass const float * to
13514 __builtin_ia32_loadups512_mask.
13515 (_mm512_mask_loadu_ps): Likewise.
13516 (_mm512_maskz_loadu_ps): Likewise.
13517 (_mm512_storeu_ps): Pass float * to
13518 __builtin_ia32_storeups512_mask.
13519 (_mm512_mask_storeu_ps): Likewise.
13520 (_mm512_mask_loadu_epi64): Pass const long long * to
13521 __builtin_ia32_loaddqudi512_mask.
13522 (_mm512_maskz_loadu_epi64): Likewise.
13523 (_mm512_mask_storeu_epi64): Pass long long *
13524 to __builtin_ia32_storedqudi512_mask.
13525 (_mm512_loadu_si512): Pass const int * to
13526 __builtin_ia32_loaddqusi512_mask.
13527 (_mm512_mask_loadu_epi32): Likewise.
13528 (_mm512_maskz_loadu_epi32): Likewise.
13529 (_mm512_storeu_si512): Pass int * to
13530 __builtin_ia32_storedqusi512_mask.
13531 (_mm512_mask_storeu_epi32): Likewise.
13532 * config/i386/avx512vlbwintrin.h (_mm256_mask_storeu_epi8): Pass
13533 char * to __builtin_ia32_storedquqi256_mask.
13534 (_mm_mask_storeu_epi8): Likewise.
13535 (_mm256_mask_loadu_epi16): Pass const short * to
13536 __builtin_ia32_loaddquhi256_mask.
13537 (_mm256_maskz_loadu_epi16): Likewise.
13538 (_mm_mask_loadu_epi16): Pass const short * to
13539 __builtin_ia32_loaddquhi128_mask.
13540 (_mm_maskz_loadu_epi16): Likewise.
13541 (_mm256_mask_loadu_epi8): Pass const char * to
13542 __builtin_ia32_loaddquqi256_mask.
13543 (_mm256_maskz_loadu_epi8): Likewise.
13544 (_mm_mask_loadu_epi8): Pass const char * to
13545 __builtin_ia32_loaddquqi128_mask.
13546 (_mm_maskz_loadu_epi8): Likewise.
13547 (_mm256_mask_storeu_epi16): Pass short * to.
13548 __builtin_ia32_storedquhi256_mask.
13549 (_mm_mask_storeu_epi16): Pass short * to.
13550 __builtin_ia32_storedquhi128_mask.
13551 * config/i386/avx512vlintrin.h (_mm256_mask_loadu_pd): Pass
13552 const double * to __builtin_ia32_loadupd256_mask.
13553 (_mm256_maskz_loadu_pd): Likewise.
13554 (_mm_mask_loadu_pd): Pass onst double * to
13555 __builtin_ia32_loadupd128_mask.
13556 (_mm_maskz_loadu_pd): Likewise.
13557 (_mm256_mask_storeu_pd): Pass double * to
13558 __builtin_ia32_storeupd256_mask.
13559 (_mm_mask_storeu_pd): Pass double * to
13560 __builtin_ia32_storeupd128_mask.
13561 (_mm256_mask_loadu_ps): Pass const float * to
13562 __builtin_ia32_loadups256_mask.
13563 (_mm256_maskz_loadu_ps): Likewise.
13564 (_mm_mask_loadu_ps): Pass const float * to
13565 __builtin_ia32_loadups128_mask.
13566 (_mm_maskz_loadu_ps): Likewise.
13567 (_mm256_mask_storeu_ps): Pass float * to
13568 __builtin_ia32_storeups256_mask.
13569 (_mm_mask_storeu_ps): ass float * to
13570 __builtin_ia32_storeups128_mask.
13571 (_mm256_mask_loadu_epi64): Pass const long long * to
13572 __builtin_ia32_loaddqudi256_mask.
13573 (_mm256_maskz_loadu_epi64): Likewise.
13574 (_mm_mask_loadu_epi64): Pass const long long * to
13575 __builtin_ia32_loaddqudi128_mask.
13576 (_mm_maskz_loadu_epi64): Likewise.
13577 (_mm256_mask_storeu_epi64): Pass long long * to
13578 __builtin_ia32_storedqudi256_mask.
13579 (_mm_mask_storeu_epi64): Pass long long * to
13580 __builtin_ia32_storedqudi128_mask.
13581 (_mm256_mask_loadu_epi32): Pass const int * to
13582 __builtin_ia32_loaddqusi256_mask.
13583 (_mm256_maskz_loadu_epi32): Likewise.
13584 (_mm_mask_loadu_epi32): Pass const int * to
13585 __builtin_ia32_loaddqusi128_mask.
13586 (_mm_maskz_loadu_epi32): Likewise.
13587 (_mm256_mask_storeu_epi32): Pass int * to
13588 __builtin_ia32_storedqusi256_mask.
13589 (_mm_mask_storeu_epi32): Pass int * to
13590 __builtin_ia32_storedqusi128_mask.
13591 * config/i386/i386-builtin-types.def (PCSHORT): New.
13592 (PINT64): Likewise.
13593 (V64QI_FTYPE_PCCHAR_V64QI_UDI): Likewise.
13594 (V32HI_FTYPE_PCSHORT_V32HI_USI): Likewise.
13595 (V32QI_FTYPE_PCCHAR_V32QI_USI): Likewise.
13596 (V16SF_FTYPE_PCFLOAT_V16SF_UHI): Likewise.
13597 (V8DF_FTYPE_PCDOUBLE_V8DF_UQI): Likewise.
13598 (V16SI_FTYPE_PCINT_V16SI_UHI): Likewise.
13599 (V16HI_FTYPE_PCSHORT_V16HI_UHI): Likewise.
13600 (V16QI_FTYPE_PCCHAR_V16QI_UHI): Likewise.
13601 (V8SF_FTYPE_PCFLOAT_V8SF_UQI): Likewise.
13602 (V8DI_FTYPE_PCINT64_V8DI_UQI): Likewise.
13603 (V8SI_FTYPE_PCINT_V8SI_UQI): Likewise.
13604 (V8HI_FTYPE_PCSHORT_V8HI_UQI): Likewise.
13605 (V4DF_FTYPE_PCDOUBLE_V4DF_UQI): Likewise.
13606 (V4SF_FTYPE_PCFLOAT_V4SF_UQI): Likewise.
13607 (V4DI_FTYPE_PCINT64_V4DI_UQI): Likewise.
13608 (V4SI_FTYPE_PCINT_V4SI_UQI): Likewise.
13609 (V2DF_FTYPE_PCDOUBLE_V2DF_UQI): Likewise.
13610 (V2DI_FTYPE_PCINT64_V2DI_UQI): Likewise.
13611 (VOID_FTYPE_PDOUBLE_V8DF_UQI): Likewise.
13612 (VOID_FTYPE_PDOUBLE_V4DF_UQI): Likewise.
13613 (VOID_FTYPE_PDOUBLE_V2DF_UQI): Likewise.
13614 (VOID_FTYPE_PFLOAT_V16SF_UHI): Likewise.
13615 (VOID_FTYPE_PFLOAT_V8SF_UQI): Likewise.
13616 (VOID_FTYPE_PFLOAT_V4SF_UQI): Likewise.
13617 (VOID_FTYPE_PINT64_V8DI_UQI): Likewise.
13618 (VOID_FTYPE_PINT64_V4DI_UQI): Likewise.
13619 (VOID_FTYPE_PINT64_V2DI_UQI): Likewise.
13620 (VOID_FTYPE_PINT_V16SI_UHI): Likewise.
13621 (VOID_FTYPE_PINT_V8SI_UHI): Likewise.
13622 (VOID_FTYPE_PINT_V4SI_UHI): Likewise.
13623 (VOID_FTYPE_PSHORT_V32HI_USI): Likewise.
13624 (VOID_FTYPE_PSHORT_V16HI_UHI): Likewise.
13625 (VOID_FTYPE_PSHORT_V8HI_UQI): Likewise.
13626 (VOID_FTYPE_PCHAR_V64QI_UDI): Likewise.
13627 (VOID_FTYPE_PCHAR_V32QI_USI): Likewise.
13628 (VOID_FTYPE_PCHAR_V16QI_UHI): Likewise.
13629 (V64QI_FTYPE_PCV64QI_V64QI_UDI): Removed.
13630 (V32HI_FTYPE_PCV32HI_V32HI_USI): Likewise.
13631 (V32QI_FTYPE_PCV32QI_V32QI_USI): Likewise.
13632 (V16HI_FTYPE_PCV16HI_V16HI_UHI): Likewise.
13633 (V16QI_FTYPE_PCV16QI_V16QI_UHI): Likewise.
13634 (V8HI_FTYPE_PCV8HI_V8HI_UQI): Likewise.
13635 (VOID_FTYPE_PV32HI_V32HI_USI): Likewise.
13636 (VOID_FTYPE_PV16HI_V16HI_UHI): Likewise.
13637 (VOID_FTYPE_PV8HI_V8HI_UQI): Likewise.
13638 (VOID_FTYPE_PV64QI_V64QI_UDI): Likewise.
13639 (VOID_FTYPE_PV32QI_V32QI_USI): Likewise.
13640 (VOID_FTYPE_PV16QI_V16QI_UHI): Likewise.
13641 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Don't
13643 (ix86_emit_restore_sse_regs_using_mov): Don't use UNSPEC_LOADU.
13644 (ix86_avx256_split_vector_move_misalign): Don't use unaligned
13646 (ix86_expand_vector_move_misalign): Likewise.
13647 (bdesc_special_args): Use CODE_FOR_movvNXY_internal and pointer
13648 to scalar function prototype for unaligned load/store builtins.
13649 (ix86_expand_special_args_builtin): Updated.
13650 * config/i386/sse.md (UNSPEC_LOADU): Removed.
13651 (UNSPEC_STOREU): Likewise.
13652 (VI_ULOADSTORE_BW_AVX512VL): Likewise.
13653 (VI_ULOADSTORE_F_AVX512VL): Likewise.
13654 (ssescalarsize): Handle V4TI, V2TI and V1TI.
13655 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
13656 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
13657 (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Likewise.
13658 (<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask): Likewise.
13659 (<sse2_avx_avx512f>_loaddqu<mode><mask_name>): Likewise.
13660 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"): Likewise.
13661 (sse2_avx_avx512f>_storedqu<mode>): Likewise.
13662 (<avx512>_storedqu<mode>_mask): Likewise.
13663 (*sse4_2_pcmpestr_unaligned): Likewise.
13664 (*sse4_2_pcmpistr_unaligned): Likewise.
13665 (*mov<mode>_internal): Renamed to ...
13666 (mov<mode>_internal): This. Remove check of AVX and IAMCU on
13667 misaligned operand. Replace vmovdqu64 with vmovdqu<ssescalarsize>.
13668 (movsd/movhpd to movupd peephole): Don't use UNSPEC_LOADU.
13669 (movlpd/movhpd to movupd peephole): Don't use UNSPEC_STOREU.
13671 2016-04-19 Richard Biener <rguenther@suse.de>
13673 PR tree-optimization/70171
13674 * tree-ssa-phiprop.c: Include stor-layout.h.
13675 (phiprop_insert_phi): Handle the aggregate copy case.
13676 (propagate_with_phi): Likewise.
13678 2016-04-19 Uros Bizjak <ubizjak@gmail.com>
13680 * config/i386/i386.c (ix86_decompose_address): Use lowpart_subreg
13681 instead of simplify_gen_subreg (... , 0).
13682 (ix86_delegitimize_address): Ditto.
13683 (ix86_split_divmod): Ditto.
13684 (ix86_split_copysign_const): Ditto.
13685 (ix86_split_copysign_var): Ditto.
13686 (ix86_expand_args_builtin): Ditto.
13687 (ix86_expand_round_builtin): Ditto.
13688 (ix86_expand_special_args_builtin): Ditto.
13689 * config/i386/i386.md (TARGET_USE_VECTOR_FP_CONVERTS splitters): Ditto.
13690 (TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters and peephole2s): Ditto.
13691 (udivmodqi4): Ditto.
13692 (absneg splitters): Ditto.
13693 (*jcc_bt<mode>_1): Ditto.
13695 2016-04-19 Richard Biener <rguenther@suse.de>
13697 PR tree-optimization/70724
13698 * tree-ssa-sccvn.c (scc_vn_restore_ssa_info): Split SSA info
13699 restoring out from ...
13700 (free_scc_vn): ... here.
13701 * tree-ssa-sccvn.h (scc_vn_restore_ssa_info): Declare.
13702 * tres-ssa-pre.c (pass_pre::execute): Restore SSA info before
13704 (pass_fre::execute): Restore SSA info.
13706 2016-04-19 Richard Biener <rguenther@suse.de>
13708 * gimple-walk.h (struct walk_stmt_info): Add stmt member.
13709 * gimple-walk.c (walk_gimple_op): Initialize it.
13710 (walk_gimple_asm): Set wi->is_lhs before each callback invocation.
13711 * tree-inline.c (remap_gimple_op_r): Set SSA_NAME_DEF_STMT when
13712 remapping SSA names of defs.
13713 (copy_bb): Remove walk over all SSA defs and SSA_NAME_DEF_STMT
13716 2016-04-18 Vladimir Makarov <vmakarov@redhat.com>
13718 PR middle-end/70689
13719 * lra-constraints.c (equiv_substition_p): New.
13720 (process_alt_operands): Use it.
13721 (swap_operands): Swap it.
13722 (curr_insn_transform): Update it.
13724 2016-04-18 Michael Matz <matz@suse.de>
13726 * tree.h (TYPE_ALIGN, DECL_ALIGN): Return shifted amount.
13727 (SET_TYPE_ALIGN, SET_DECL_ALIGN): New.
13728 * tree-core.h (tree_type_common.align): Use bit-field.
13729 (tree_type_common.spare): New.
13730 (tree_decl_common.off_align): Make smaller.
13731 (tree_decl_common.align): Use bit-field.
13733 * expr.c (expand_expr_addr_expr_1): Use SET_TYPE_ALIGN.
13734 * omp-low.c (install_var_field): Use SET_DECL_ALIGN.
13735 (scan_sharing_clauses): Ditto.
13736 (finish_taskreg_scan): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
13737 (omp_finish_file): Ditto.
13738 * stor-layout.c (do_type_align): Use SET_DECL_ALIGN.
13739 (layout_decl): Ditto.
13740 (relayout_decl): Ditto.
13741 (finalize_record_size): Use SET_TYPE_ALIGN.
13742 (finalize_type_size): Ditto.
13743 (finish_builtin_struct): Ditto.
13744 (layout_type): Ditto.
13745 (initialize_sizetypes): Ditto.
13746 * targhooks.c (std_gimplify_va_arg_expr): Use SET_TYPE_ALIGN.
13747 * tree-nested.c (insert_field_into_struct): Use SET_TYPE_ALIGN.
13748 (lookup_field_for_decl): Use SET_DECL_ALIGN.
13749 (get_chain_field): Ditto.
13750 (get_trampoline_type): Ditto.
13751 (get_nl_goto_field): Ditto.
13752 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
13754 (unpack_ts_type_common_value_fields): Use SET_TYPE_ALIGN.
13755 * gimple-expr.c (copy_var_decl): Use SET_DECL_ALIGN.
13756 * tree.c (make_node_stat): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
13757 (build_qualified_type): Use SET_TYPE_ALIGN.
13758 (build_aligned_type, build_range_type_1): Ditto.
13759 (build_atomic_base): Ditto.
13760 (build_common_tree_nodes): Ditto.
13761 * cfgexpand.c (align_local_variable): Use SET_DECL_ALIGN.
13762 (expand_one_stack_var_at): Ditto.
13763 * coverage.c (build_var): Use SET_DECL_ALIGN.
13764 * except.c (init_eh): Ditto.
13765 * function.c (assign_parm_setup_block): Ditto.
13766 * symtab.c (increase_alignment_1): Ditto.
13767 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Ditto.
13768 * tree-vect-stmts.c (ensure_base_align): Ditto.
13769 * varasm.c (align_variable): Ditto.
13770 (assemble_variable): Ditto.
13771 (build_constant_desc): Ditto.
13772 (output_constant_def_contents): Ditto.
13774 * config/arm/arm.c (arm_relayout_function): Use SET_DECL_ALIGN.
13775 * config/avr/avr.c (avr_adjust_type_node): Use SET_TYPE_ALIGN.
13776 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Ditto.
13777 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Ditto.
13778 * config/spu/spu.c (spu_build_builtin_va_list): Use SET_DECL_ALIGN.
13780 2016-04-18 H.J. Lu <hongjiu.lu@intel.com>
13783 * config/i386/sse.md (sse2_loadlpd): Accept load from "xm" and
13784 replace %vmovsd with "%vmovq".
13785 (vec_concatv2df): Likewise.
13787 2016-04-18 Uros Bizjak <ubizjak@gmail.com>
13789 * config/i386/mmx.md (*vec_extractv2sf_0): Use gen_lowpart.
13790 (*vec_extractv2si_0): Ditto.
13791 * config/i386/sse.md (*vec_extractv4sf_0): Ditto.
13792 (zero_extended_scalar_load_operand splitters): Ditto.
13793 (vec_extract splitters): Ditto.
13794 (*vec_extractv4si_0_zext): Ditto.
13795 (avx_<castmode><avxsizesuffix>_<castmode>): Use gen_lowpart
13796 and lowpart_subreg.
13797 (avx512f_<castmode><avxsizesuffix>_<castmode>): Ditto.
13798 (avx512f_<castmode><avxsizesuffix>_256<castmode>): Ditto.
13799 (*sse4_1_extractps): Use lowpart_subreg.
13800 * config/i386/i386.md (x87 floatsplitter): Use gen_lowpart.
13802 2016-04-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13804 * doc/install.texi (Specific, i?86-*-solaris2.10): Update gas and
13806 (Specific, *-*-solaris2*): Update Solaris 11 bundled gcc versions.
13807 Mention Solaris 11 packaging changes.
13808 Update gas and gld requirements.
13809 Remove reference to pre-Solaris 10 bug.
13810 (Specific, sparc-sun-solaris2*): Remove reference to pre-Solaris 10
13812 (Specific, sparc64-*-solaris2*): Remove reference to bootstrap
13815 2016-04-17 Jan Hubicka <jh@suse.cz>
13817 * tree-ssa-loop-ivopts.c (avg_loop_niter): Use also
13818 max_loop_iterations_int.
13820 2016-04-18 Richard Biener <rguenther@suse.de>
13822 PR tree-optimization/43434
13823 * tree-ssa-structalias.c (struct vls_data): New.
13824 (visit_loadstore): Handle all pointer-based accesses.
13825 (compute_dependence_clique): Compute a bitmap of restrict tags
13826 assigned bases and pass it to visit_loadstore.
13828 2016-04-18 Matthew Wahab <matthew.wahab@arm.com>
13831 * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for armv8+crc,
13832 armv8.1-a and armv8.1-a+crc.
13834 2016-04-18 Richard Biener <rguenther@suse.de>
13836 PR tree-optimization/70701
13837 * tree-ssa-sccvn.c (vn_reference_lookup_3): Resolve fully constant
13838 references after translating through a memcpy.
13840 2016-04-18 Richard Biener <rguenther@suse.de>
13842 * tree-ssa-pre.c (postorder, postorder_num): Make locals ...
13843 (compute_antic): ... here. For partial antic use regular
13844 postorder and scrap iteration.
13845 (compute_partial_antic_aux): Remove unused return value.
13846 (init_pre): Do not allocate postorder.
13847 (fini_pre): Do not free postorder.
13849 2016-04-18 Richard Biener <rguenther@suse.de>
13851 PR middle-end/37870
13852 * expmed.c (extract_bit_field_1): Remove broken case
13853 using a wider MODE_INT mode.
13855 2016-04-18 Segher Boessenkool <segher@kernel.crashing.org>
13857 * has-brig.c (lendian16): Don't try to use __builtin_bswap16
13858 unless compiling with at least GCC-4.8.
13860 2016-04-17 Jan Hubicka <jh@suse.cz>
13863 * graphite.c (graphite_finalize): Update call to
13864 tree_estimate_probability.
13865 * predict.h (tree_estimate_probability): Update prototype.
13867 2016-04-17 Jan Hubicka <jh@suse.cz>
13869 * predict.c (combine_predictions_for_bb): Add dry_run parmaeter.
13870 (tree_estimate_probability): Likewise.
13871 (pass_profile::execute): Update.
13872 (report_predictor_hitrates): New function.
13873 * profile.c (compute_branch_probabilities): Use it.
13874 * predict.h (report_predictor_hitrates): Declare.
13876 2016-04-17 Jan Hubicka <jh@suse.cz>
13879 * cgraph.h (cgraph_node::set_const_flag,
13880 cgraph_node::set_pure_flag): Update prototype to return bool;
13882 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases): Thunks
13883 of interposable symbol are interposable, too.
13884 (cgraph_set_const_flag_1): Rename to ...
13885 (set_const_flag_1): ... this one; change to self recursive function
13886 instead of call_for_symbol_thunks_and_aliases. Handle correctly
13887 clearnig the flag in all variants and also virtual thunks of const
13888 functions are pure; track if any change was done.
13889 (cgraph_node::set_const_flag): Update.
13890 (struct set_pure_flag_info): New struct.
13891 (cgraph_set_pure_flag_1): Rename to ...
13892 (set_pure_flag_1): ... this one; take set_pure_flag_info parameter
13893 rather than pointer encoded flags; track if any changes was done;
13894 handle correctly clearning flag and setting flag of aliases already
13896 (cgraph_node::set_pure_flag): Update.
13897 (cgraph_node::set_nothrow_flag): Handle correctly clearning the flag.
13899 2016-04-17 Tom de Vries <tom@codesourcery.com>
13902 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Escape
13903 backslash in label.
13905 2016-04-17 Tom de Vries <tom@codesourcery.com>
13907 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Classify chars
13908 '{}<> ' as escape-for-record.
13910 2016-04-17 Tom de Vries <tom@codesourcery.com>
13912 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Simplify loop
13915 2016-04-17 Tom de Vries <tom@codesourcery.com>
13918 * tree-pass.h (class opt_pass): Remove graph_dump_initialized member.
13919 * dumpfile.h (struct dump_file_info): Add graph_dump_initialized field.
13920 * dumpfile.c (dump_files): Initialize graph_dump_initialized field.
13921 * passes.c (finish_optimization_passes): Only call
13922 finish_graph_dump_file if dfi->graph_dump_initialized.
13923 (execute_function_dump, pass_init_dump_file): Use
13924 dfi->graph_dump_initialized instead of pass->graph_dump_initialized.
13926 2016-04-17 Tom de Vries <tom@codesourcery.com>
13928 PR tree-optimization/70256
13929 * tree-ssa-structalias.c (dump_varinfo, debug_varinfo, dump_varmap)
13930 (debug_varmap): New function.
13932 2016-04-17 Tom de Vries <tom@codesourcery.com>
13935 * passes.c (pass_manager::register_pass): Propagate pflags.
13937 2016-04-17 Tom de Vries <tom@codesourcery.com>
13940 * pass_manager.h (TERMINATE_PASS_LIST): Add pass argument.
13941 * passes.c (pass_manager::pass_manager): Declare and init p_start in
13942 INSERT_PASSES_AFTER. Add pass parameter to TERMINATE_PASS_LIST, and
13943 check if it's equal to p_start.
13944 * passes.def: Add arguments to TERMINATE_PASS_LISTs.
13946 2016-04-15 Jan Hubicka <jh@suse.cz>
13949 * cgraph.c (cgraph_set_const_flag_1): Only set as pure if
13950 function does not bind to current def.
13951 * ipa-pure-const.c (worse_state): Add FROM and TO parameters;
13952 handle conservatively calls to functions that does not need to bind
13954 (check_call): Update call of worse_state.
13955 (ignore_edge_for_nothrow): Update.
13956 (ignore_edge_for_pure_const): Likewise.
13957 (propagate_pure_const): Update calls to worse_state.
13958 (skip_function_for_local_pure_const): Reformat comments.
13960 2016-04-15 Jan Hubicka <jh@suse.cz>
13963 * cgraph.c (cgraph_node::get_availability): Add REF parameter.
13964 (cgraph_node::function_symbol): Likewise.
13965 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
13966 * cgraph.h (symtab_node::get_availabbility): Add REF parameter.
13967 (symtab_node::ultimate_alias_target): Add REF parameter.
13968 (symtab_node::binds_to_current_def_p): Declare.
13969 (symtab_node;:ultimate_alias_target_1): Add REF parameter.
13970 (cgraph_node::function_symbol): Likewise.
13971 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
13972 (cgraph_node::get_availability): Likewise.
13973 (cgraph_edge::binds_to_current_def_p): New inline function.
13974 (varpool_node::get_availability): Add REF parameter.
13975 (varpool_node::ultimate_alias_target): Likewise.
13976 * symtab.c (symtab_node::ultimate_alias_target_1): Likewise.
13977 (symtab_node::binds_to_current_def_p): Likewise.
13978 * varpool.c (varpool_node::get_availability): Likewise.
13980 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
13983 * config/i386/sse.md(define_insn "<avx512>_vec_dup<mode><mask_name>"):
13984 Fix mode size check.
13986 2016-04-15 Jakub Jelinek <jakub@redhat.com>
13988 * BASE-VER: Set to 7.0.0.
13990 2016-04-15 Alexander Monakov <amonakov@ispras.ru>
13992 * config/nvptx/nvptx.opt (moptimize): Add a period at end of help text.
13994 2016-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13996 * doc/invoke.texi (ARM Options): Add note on deprecation of pre-ARMv4T
13997 architecture revisions.
13999 2016-04-15 Bernd Schmidt <bschmidt@redhat.com>
14001 * config/i386/i386-protos.h (ix86_using_red_zone): Declare.
14002 * config/i386/i386.c (ix86_using_red_zone): No longer static.
14003 * config/i386/i386.md (stack decrement to push peepholes): Guard
14004 with !x86_using_red_zone ().
14006 2016-04-15 Jakub Jelinek <jakub@redhat.com>
14009 * tree-pretty-print.c (do_niy): Add FLAGS argument, pass it down
14010 to dump_generic_node.
14011 (NIY): Pass also flags to do_niy.
14013 2016-04-15 Thomas Schwinge <thomas@codesourcery.com>
14015 * omp-low.c (simd_clone_struct_alloc, simd_clone_struct_copy)
14016 (simd_clone_vector_of_formal_parm_types)
14017 (simd_clone_clauses_extract, simd_clone_compute_base_data_type)
14018 (simd_clone_mangle, simd_clone_create)
14019 (simd_clone_adjust_return_type, create_tmp_simd_array)
14020 (simd_clone_adjust_argument_types, simd_clone_init_simd_arrays)
14021 (struct modify_stmt_info, ipa_simd_modify_stmt_ops)
14022 (ipa_simd_modify_function_body, simd_clone_linear_addend)
14023 (simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone)
14024 (pass_data_omp_simd_clone, class pass_omp_simd_clone)
14025 (pass_omp_simd_clone::gate, make_pass_omp_simd_clone): Move into...
14026 * omp-simd-clone.c: ... this new file.
14027 (simd_clone_vector_of_formal_parm_types): Make it static.
14028 * Makefile.in (OBJS): Add omp-simd-clone.o.
14030 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
14033 * config/i386/sse.md: Use proper memory operand modifiers.
14036 2016-04-15 Richard Biener <rguenther@suse.de>
14037 Alan Modra <amodra@gmail.com>
14039 PR tree-optimization/70130
14040 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Detect
14041 when alignment stays not the same and no not use the realign
14044 2016-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
14047 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
14048 direct move handlers for KFmode. Change TFmode handlers test from
14049 FLOAT128_IEEE_P to FLOAT128_VECTOR_P.
14051 2016-04-14 Jakub Jelinek <jakub@redhat.com>
14054 * ipa-utils.h (polymorphic_ctor_dtor_p): New prototype.
14055 * ipa-polymorphic-call.c (polymorphic_ctor_dtor_p): New function.
14056 (inlined_polymorphic_ctor_dtor_block_p): Use it.
14057 * tree-ssa-live.c (remove_unused_scope_block_p): When
14058 in_ctor_dtor_block, avoid discarding not just BLOCKs with
14059 BLOCK_ABSTRACT_ORIGIN being FUNCTION_DECL, but even when
14060 block_ultimate_origin is FUNCTION_DECL.
14061 (remove_unused_locals): If current_function_decl is
14062 polymorphic_ctor_dtor_p, pass initial true to
14063 remove_unused_scope_block_p' is_ctor_dtor_block.
14065 2016-04-14 Martin Sebor <msebor@redhat.com>
14070 * doc/extend.texi (Variable Length): Revert.
14072 2016-04-14 Marek Polacek <polacek@redhat.com>
14073 Jan Hubicka <hubicka@ucw.cz>
14076 * tree.c (verify_type): Disable the canonical type of main variant
14079 2016-04-14 Jason Merrill <jason@redhat.com>
14081 * cfgexpand.c, expr.c: Revert previous change.
14083 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
14085 PR middle-end/70643
14086 * omp-low.c (lower_oacc_reductions): Check for TREE_CONSTANT
14087 when building a mem ref for the incoming reduction variable.
14089 2016-04-14 Richard Biener <rguenther@suse.de>
14091 PR tree-optimization/70614
14092 * tree-scalar-evolution.c (analyze_evolution_in_loop): Terminate
14093 loop if the evolution dropped to chrec_dont_know.
14094 (interpret_condition_phi): Likewise.
14096 2016-04-14 Richard Biener <rguenther@suse.de>
14098 PR tree-optimization/70623
14099 * tree-ssa-pre.c (changed_blocks): Make global ...
14100 (compute_antic): ... local here. Move and fix worklist
14101 handling here. Do not clear EDGE_DFS_BACK or call mark_dfs_back_edges.
14102 (compute_antic_aux): Add dumping for MAX assumed succs. Remove
14103 worklist handling, dump when ANTIC_IN changed.
14104 (compute_partial_antic_aux): Remove worklist handling.
14105 (init_pre): Do not compute post dominators. Add a comment about
14106 the CFG order chosen.
14107 (fini_pre): Do not free post dominators.
14109 2016-04-13 Martin Sebor <msebor@redhat.com>
14114 * doc/extend.texi (Variable Length): Document C++ specifics.
14116 2016-04-13 Jakub Jelinek <jakub@redhat.com>
14119 * ipa-pure-const.c (pass_nothrow::execute): Call maybe_clean_eh_stmt
14120 on all recursive call stmts. Return TODO_cleanup_cfg if any dead
14121 eh edges have been purged.
14124 * tree-sra.c (create_access_replacement,
14125 get_replaced_param_substitute): Set DECL_NAMELESS on repl if it
14127 * tree-pretty-print.c (dump_fancy_name): New function.
14128 (dump_decl_name, dump_generic_node): Use it.
14130 2016-04-13 Jason Merrill <jason@redhat.com>
14132 * cfgexpand.c (pass_expand::execute): Handle attribute "abi warning".
14133 * expr.c (expand_expr_real_1): Likewise.
14135 2016-04-13 Ilya Enkovich <ilya.enkovich@intel.com>
14137 * config/i386/i386.md (kunpckhi): Swap operands.
14138 (kunpcksi): Likewise.
14139 (kunpckdi): Likewise.
14140 * config/i386/sse.md (vec_pack_trunc_qi): Likewise.
14141 (vec_pack_trunc_<mode>): Likewise.
14143 2016-04-13 Jakub Jelinek <jakub@redhat.com>
14146 * explow.c (convert_memory_address_addr_space_1): Formatting fix.
14148 PR middle-end/70633
14149 * gimplify.c (gimplify_init_constructor): Clear TREE_STATIC if
14150 gimplification turns some element into non-constant.
14153 * rtl.h (convert_memory_address_addr_space_1): New prototype.
14154 * explow.c (convert_memory_address_addr_space_1): No longer static,
14155 add NO_EMIT argument and don't call convert_modes if true, pass
14156 it down recursively, remove break after return.
14157 (convert_memory_address_addr_space): Adjust caller.
14158 * simplify-rtx.c (simplify_unary_operation_1): Call
14159 convert_memory_address_addr_space_1 instead of convert_memory_address,
14160 if it returns NULL, don't simplify.
14162 2016-04-12 Eric Botcazou <ebotcazou@adacore.com>
14165 * config/sparc/sparc.c (sparc_compute_frame_size): Add parentheses.
14167 2016-04-12 Jakub Jelinek <jakub@redhat.com>
14169 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
14170 Bump the upper SIMDLEN limits, so that if the return type or
14171 characteristic type if the return type is void can be passed in
14172 all available SSE2/AVX/AVX2/AVX512-F registers, the SIMDLEN is
14175 2016-04-12 Michael Meissner <meissner@linux.vnet.ibm.com>
14178 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2_internal):
14179 Do not use "=" constraint on an input constraint.
14180 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
14181 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
14182 (ieee_128bit_vsx_nabs<mode>2): Correct splitter so that it
14183 generates (neg (abs ...)) instead of (abs ...).
14185 2016-04-12 Jakub Jelinek <jakub@redhat.com>
14187 PR rtl-optimization/70596
14188 * lra-spills.c (spill_pseudos): Don't delete debug insns, instead
14189 just invalidate LRA data and reset them. Adjust dump wording.
14191 2016-04-12 Martin Liska <mliska@suse.cz>
14194 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
14196 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
14198 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
14199 max_loop_iterations_int.
14200 (tree_unswitch_outer_loop): Likewise.
14201 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
14202 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
14204 2016-04-12 Tom de Vries <tom@codesourcery.com>
14206 PR tree-optimization/68756
14207 * graphite-isl-ast-to-gimple.c (copy_cond_phi_args): Use new_expr
14208 instead of new_name.
14210 2016-04-12 Jakub Jelinek <jakub@redhat.com>
14212 PR tree-optimization/70602
14213 * tree-sra.c (generate_subtree_copies): Don't write anything into
14214 constant pool decls.
14216 * omp-low.c (lower_omp_target): Use GOMP_MAP_FIRSTPRIVATE_INT
14217 regardless whether there are depend clauses or not.
14219 2016-04-11 Michael Meissner <meissner@linux.vnet.ibm.com>
14222 * config/rs6000/rs6000.c (rs6000_opt_masks): Disable using the
14223 target attribute and pragma from changing the -mfloat128
14224 and -mfloat128-hardware options.
14226 * doc/extend.texi (Additional Floating Types): Document PowerPC
14227 __float128 restrictions.
14229 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
14232 * config/aarch64/driver-aarch64.c
14233 (aarch64_get_extension_string_for_isa_flags): New.
14234 (arch_extension): Rename to...
14235 (aarch64_arch_extension): ...This.
14236 (ext_to_feat_string): Rename to...
14237 (aarch64_extensions): ...This.
14238 (aarch64_core_data): Keep track of architecture extension flags.
14239 (cpu_data): Rename to...
14240 (aarch64_cpu_data): ...This.
14241 (aarch64_arch_driver_info): Keep track of architecture extension
14243 (get_arch_name_from_id): Rename to...
14244 (get_arch_from_id): ...This, change return type.
14245 (host_detect_local_cpu): Update and reformat for renames, handle
14246 extensions through common infrastructure.
14248 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
14251 * config/aarch64/aarch64-common.c (aarch64_option_extension): Keep
14252 track of a canonical flag name.
14253 (all_extensions): Likewise.
14254 (arch_to_arch_name): Also track extension flags enabled by the arch.
14255 (all_architectures): Likewise.
14256 (aarch64_parse_extension): Move to here.
14257 (aarch64_get_extension_string_for_isa_flags): Take a new argument,
14259 (aarch64_rewrite_selected_cpu): Update for above change.
14260 * config/aarch64/aarch64-option-extensions.def: Rework the way flags
14261 are handled, such that the single explicit value enabled by an
14262 extension is kept seperate from the implicit values it also enables.
14263 * config/aarch64/aarch64-protos.h (aarch64_parse_opt_result): Move
14265 (aarch64_parse_extension): New.
14266 * config/aarch64/aarch64.c (aarch64_parse_opt_result): Move from
14267 here to config/aarch64/aarch64-protos.h.
14268 (aarch64_parse_extension): Move from here to
14269 common/config/aarch64/aarch64-common.c.
14270 (aarch64_option_print): Update.
14271 (aarch64_declare_function_name): Likewise.
14272 (aarch64_start_file): Likewise.
14273 * config/aarch64/driver-aarch64.c (arch_extension): Keep track of
14274 the canonical flag for extensions.
14275 * config.gcc (aarch64*-*-*): Extend regex for capturing extension
14278 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
14280 * config/aarch64/aarch64.h (AARCH64_FL_FOR_ARCH8_1): Also add
14283 2016-04-09 Tom de Vries <tom@codesourcery.com>
14285 PR tree-optimization/68953
14286 * graphite-sese-to-poly.c (pdr_add_memory_accesses): Order accesses from
14287 first to last subscript.
14289 2016-04-09 Jakub Jelinek <jakub@redhat.com>
14291 PR tree-optimization/70586
14292 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Return false
14295 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
14299 PR tree-optimization/70373
14300 PR middle-end/70533
14301 PR middle-end/70534
14302 PR middle-end/70535
14303 * gimplify.c (gimplify_adjust_omp_clauses): Add or adjust data
14304 clauses for acc parallel reductions as necessary. Error on those
14306 * omp-low.c (scan_sharing_clauses): Don't install variables which
14307 are used in acc parallel reductions.
14308 (lower_rec_input_clauses): Remove dead code.
14309 (lower_oacc_reductions): Add support for reference reductions.
14310 (lower_reduction_clauses): Remove dead code.
14311 (lower_omp_target): Don't remap variables appearing in acc parallel
14313 * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): New macro.
14315 2016-04-08 Jakub Jelinek <jakub@redhat.com>
14317 PR middle-end/70593
14318 * tree-ssa-coalesce.c (build_ssa_conflict_graph): For stmt
14319 with multiple SSA_NAME defs, force the outputs other than first
14320 to be live before calling live_track_process_def on each output.
14322 PR rtl-optimization/70574
14323 * fwprop.c (forward_propagate_and_simplify): Don't add
14324 REG_EQUAL note if DF_REF_REG (use) is a paradoxical subreg.
14325 (try_fwprop_subst): Don't add REG_EQUAL note if there are any
14326 paradoxical subregs within *loc.
14328 2016-04-08 Thomas Schwinge <thomas@codesourcery.com>
14330 * config/arc/arc.h (LINK_COMMAND_SPEC): Use gt to ignore
14331 -ftree-parallelize-loops={0,1}.
14332 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
14333 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
14334 * config/ia64/hpux.h (LIB_SPEC): Likewise.
14335 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
14336 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
14338 2016-04-08 Maxim Ostapenko <m.ostapenko@samsung.com>
14341 * asan.c (instrument_derefs): If we get unknown location, extract it
14342 with EXPR_LOCATION.
14343 (maybe_instrument_call): Instrument gimple_call's arguments if needed.
14345 2016-04-08 Tom de Vries <tom@codesourcery.com>
14347 * omp-low.c (lower_omp_target): Set TREE_NO_WARNING for oacc
14348 implicit firstprivate clause.
14350 2016-04-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14353 * config/arm/thumb2.md (tst + branch-> lsls + branch
14354 peephole below *orsi_not_shiftsi_si): Require that condition
14355 register is dead after the peephole.
14356 (second peephole after the above): Likewise.
14358 2016-04-08 Alan Modra <amodra@gmail.com>
14361 * builtins.c (fold_builtin_classify): For IBM extended precision,
14362 look at just the high-order double to test for NaN.
14363 (fold_builtin_interclass_mathfn): Similarly for Inf. For isnormal
14364 test just the high double for Inf but both doubles for subnormal
14367 2016-04-07 Jakub Jelinek <jakub@redhat.com>
14369 * cgraph.h (struct cgraph_simd_clone): Add mask_mode field.
14370 * omp-low.c (simd_clone_init_simd_arrays, simd_clone_adjust): Handle
14371 node->simdclone->mask_mode != VOIDmode masks.
14372 (simd_clone_adjust_argument_types): Likewise. Move sc var definition
14373 earlier, use it instead of node->simdclone.
14374 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
14375 Set clonei->mask_mode.
14377 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
14380 * parser.c (cp_parser_iteration_statement): New parameter IF_P.
14381 Pass it through to cp_parser_already_scoped_statement.
14382 (cp_parser_already_scoped_statement): New parameter IF_P. Pass
14383 it through to cp_parser_statement.
14384 (cp_parser_statement): Pass IF_P through to
14385 cp_parser_iteration_statement.
14386 (cp_parser_pragma): Adjust call to
14387 cp_parser_iteration_statement.
14389 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
14392 * gimplify.c (gimplify_omp_ordered): Add explicit braces to
14393 resolve a future -Wparentheses warning.
14394 * omp-low.c (scan_sharing_clauses): Likewise.
14395 * tree-parloops.c (eliminate_local_variables): Likewise.
14397 2016-04-06 Vladimir Makarov <vmakarov@redhat.com>
14399 PR rtl-optimization/70398
14400 * lra-constraints.c (process_address_1): Check zero scale and code
14401 for reloading with zero scale.
14403 2016-04-06 Uros Bizjak <ubizjak@gmail.com>
14405 * config/i386/sse.md (shuffletype): Add V32HI and V4TI modes.
14406 (ssescalarsize): Add V8SF, V4SF, V4DF and V2DF modes.
14408 2016-04-06 Jakub Jelinek <jakub@redhat.com>
14410 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
14411 Add support for AVX512F clones, include them by default for
14412 exported OpenMP declare simd functions. For AVX2 allow simdlen 32
14413 and use it if charasteric type is 8-bit, for AVX512F allow simdlen
14416 PR middle-end/70550
14417 * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT): Define.
14418 * gimplify.c (gimplify_adjust_omp_clauses_1): Set it for implicit
14419 firstprivate clauses.
14420 * omp-low.c (lower_send_clauses): Set TREE_NO_WARNING for
14421 OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT !by_ref vars in task contexts.
14422 (lower_omp_target): Set TREE_NO_WARNING for
14423 non-addressable possibly uninitialized vars which are copied into
14424 addressable temporaries or copied for GOMP_MAP_FIRSTPRIVATE_INT.
14426 2016-04-05 John David Anglin <danglin@gcc.gnu.org>
14428 * config/pa/predicates.md (integer_store_memory_operand): Accept
14429 REG+D operands with a large offset when reload_in_progress is true.
14430 (floating_point_store_memory_operand): Likewise.
14432 2016-04-05 Jakub Jelinek <jakub@redhat.com>
14435 * match.pd (nested int casts): Limit to GIMPLE.
14437 2016-04-05 Jan Hubicka <hubicka@ucw.cz>
14440 * ipa-devirt.c (maybe_record_node): Fix comment; use
14441 SANITIZE_UNREACHABLE instead of SANITIZE_UNDEFINED.
14443 2016-04-05 Jakub Jelinek <jakub@redhat.com>
14445 PR rtl-optimization/70542
14446 * ree.c (add_removable_extension): For VECTOR_MODE_P punt
14447 if there are any uses other than insn or debug insns.
14449 2016-04-05 Marc Glisse <marc.glisse@inria.fr>
14450 Jakub Jelinek <jakub@redhat.com>
14452 PR tree-optimization/70509
14453 * simplify-rtx.c (simplify_binary_operation_1) <case VEC_SELECT>:
14454 Shift HOST_WIDE_INT_1U instead of 1.
14456 2016-04-05 Zdenek Sojka <zsojka@seznam.cz>
14458 PR tree-optimization/70509
14459 * tree-ssa-forwprop.c (simplify_bitfield_ref): Use bitsize_int instead
14460 of the vector base type for index.
14462 2016-04-05 Uros Bizjak <ubizjak@gmail.com>
14465 * config/i386/sse.md (iptr): Add V64QI, V32HI, V16SI and V8DI modes.
14467 2016-04-05 Richard Biener <rguenther@suse.de>
14469 PR tree-optimization/70526
14470 * tree-sra.c (build_ref_for_offset): Use prev_base to
14471 extract the alias pointer type.
14473 2016-04-05 Richard Biener <rguenther@suse.de>
14475 * dse.c (struct store_info): Remove alias_set member.
14476 (struct read_info_type): Likewise.
14477 (clear_alias_group, clear_alias_mode_table, clear_alias_mode_holder,
14478 spill_deleted, clear_alias_set_lookup): Remove.
14479 (get_group_info): Remove dead base == NULL_RTX case.
14480 (dse_step0): Remove initialization of removed variables.
14481 (delete_dead_store_insn): Reomve alias set dumping.
14482 (free_read_records): Remove alias_set handling.
14483 (canon_address): Remove alias_set_out parameter.
14484 (record_store): Remove spill_alias_set, it's always zero.
14485 (check_mem_read_rtx): Likewise.
14486 (dse_step2): Rename from ...
14487 (dse_step2_nospill): ... this. Adjust.
14488 (scan_stores): Rename from ...
14489 (scan_stores_nospill): ... this.
14490 (scan_reads): Rename from ...
14491 (scan_reads_nospill): ... this.
14492 (scan_stores_spill, scan_reads_spill): Remove.
14493 (dse_step3_scan): Remove for_spills argument which is always false.
14494 (dse_step3): Likewise.
14495 (dse_step5): Rename from ...
14496 (dse_step5_nospill): ... this. Remove alias_set handling.
14497 (rest_of_handle_dse): Adjust.
14499 2016-04-05 Jakub Jelinek <jakub@redhat.com>
14502 * config/i386/sse.md (*andnot<mode>3): Simplify assertions.
14503 Use vpandn<ssemodesuffix> for V16SI/V8DImode, vpandnq for
14504 V32HI/V64QImode, don't use <mask_operand3_1>, fix up formatting.
14505 (*andnot<mode>3_mask): Remove insn with VI12_AVX512VL iterator.
14507 2016-04-05 Richard Biener <rguenther@suse.de>
14509 PR middle-end/70499
14510 * gimplify-me.c (gimple_regimplify_operands): Do not rewrite
14511 non-register type temporaries into SSA.
14513 2016-04-04 Jan Hubicka <hubicka@ucw.cz>
14516 * ipa-devirt.c (maybe_record_node): Do not optimize cxa_pure_virtual
14517 calls when sanitizing.
14518 (possible_polymorphic_call_target_p): Fix formatting.
14520 2016-04-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14521 Jakub Jelinek <jakub@redhat.com>
14523 PR middle-end/70457
14524 * tree-inline.c (estimate_num_insn): Use gimple_call_builtin_p
14525 to ensure a call statement is compatible with a built-in's
14527 * tree-ssa-math-opts.c (pass_optimize_windening_mul::execute):
14530 2016-04-04 Richard Biener <rguenther@suse.de>
14532 PR rtl-optimization/70484
14533 * rtl.h (canon_output_dependence): Declare.
14534 * alias.c (canon_output_dependence): New function.
14535 * dse.c (record_store): Use canon_output_dependence rather
14536 than canon_true_dependence.
14538 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
14541 * cgraph.h (symtab_node::copy_visibility_from): New function.
14542 * symtab.c (symtab_node::copy_visibility_from): New function.
14543 * ipa-visibility.c (optimize_weakref): New function.
14544 (function_and_variable_visibility): Use it.
14546 2016-04-04 Martin Liska <mliska@suse.cz>
14549 * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Guard index
14550 value that is really in range handled by SBR instruction.
14551 * hsa-brig.c (emit_switch_insn): Do not emit unconditional jump.
14552 * hsa-dump.c (dump_hsa_insn_1): Do not dump default BB.
14553 * hsa.h (hsa_insn_sbr::m_default_bb): Remove field.
14555 2016-04-03 Oleg Endo <olegendo@gcc.gnu.org>
14559 * config/sh/sh.md (*addsi3): Allow pattern when reload_in_progress is
14560 set, but not for SP_REG operands.
14562 2016-04-02 Martin Sebor <msebor@redhat.com>
14565 * fold-const.c (maybe_nonzero_address): New function.
14566 (fold_comparison): Call it. Fold equality and relational
14567 expressions involving null pointers.
14568 (tree_single_nonzero_warnv_p): Call maybe_nonzero_address.
14570 2016-03-31 Evandro Menezes <e.menezes@samsung.com>
14572 Fix the predicate "aarch64_simd_reg_or_zero" to correctly validate
14573 the "Y" constraint (scalar FP 0.0 immediate).
14575 * config/aarch64/predicates.md (aarch64_simd_reg_or_zero):
14576 Add the "const_double" to the list of operand constraints.
14578 2016-04-01 Jakub Jelinek <jakub@redhat.com>
14580 PR rtl-optimization/70467
14581 * config/i386/i386.md (*add<dwi>3_doubleword, *sub<dwi>3_doubleword):
14582 If low word of the last operand is 0, just emit addition/subtraction
14585 2016-04-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14588 * config/s390/s390.c (s390_expand_insv): Check for everything
14589 constant instead of just VOIDmode stuff.
14591 2016-04-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14594 * config/arm/arm.h (ASM_APP_OFF): Handle TARGET_ARM and TARGET_THUMB.
14596 2016-04-01 Nathan Sidwell <nathan@acm.org>
14598 * tree.def (TRY_CATCH_EXPR): Correct documentation.
14600 2016-03-31 Vladimir Makarov <vmakarov@redhat.com>
14602 PR rtl-optimization/70461
14603 * ira-color.c (allocno_copy_cost_saving): Use allocno class if it
14606 2016-03-31 Martin Liska <mliska@suse.cz>
14609 * hsa-brig.c (hsa_op_immed::emit_to_buffer): Emit either
14610 a tree value or an immediate integer value to a buffer
14611 that is eventually copied to a BRIG section.
14612 (emit_immediate_operand): Call the function here.
14613 * hsa-dump.c (dump_hsa_immed): Remove checking assert.
14614 * hsa-gen.c (hsa_op_immed::hsa_op_immed): Remove initialization
14615 of class' fields that are removed.
14616 (hsa_op_immed::~hsa_op_immed): Remove deinitialization.
14617 * hsa.h (class hsa_op_immed): Remove m_brig_repr and
14618 m_brig_repr_size fields.
14620 2016-03-31 Martin Liska <mliska@suse.cz>
14623 * hsa-gen.c (hsa_function_representation::update_dominance): New
14625 (convert_addr_to_flat_segment): Likewise.
14626 (gen_hsa_memory_set): New alignment argument.
14627 (gen_hsa_ctor_assignment): Likewise.
14628 (gen_hsa_insns_for_single_assignment): Provide alignment
14629 to gen_hsa_ctor_assignment.
14630 (gen_hsa_insns_for_direct_call): Add new argument.
14631 (expand_lhs_of_string_op): New function.
14632 (expand_string_operation_builtin): Likewise.
14633 (expand_memory_copy): New function.
14634 (expand_memory_set): New function.
14635 (gen_hsa_insns_for_call): Use HOST_WIDE_INT.
14636 (convert_switch_statements): Change signature.
14637 (generate_hsa): Use a return value of the function.
14638 (pass_gen_hsail::execute): Do not call
14639 convert_switch_statements here.
14640 * hsa-regalloc.c (hsa_regalloc): Call update_dominance.
14641 * hsa.h (hsa_function_representation::m_modified_cfg): New flag.
14642 (hsa_function_representation::update_dominance): New function.
14644 2016-03-31 Martin Liska <mliska@suse.cz>
14647 * hsa-brig.c (emit_directive_variable): Emit alignment
14648 according to hsa_symbol::m_align.
14649 * hsa-dump.c (hsa_byte_alignment): Move the function to another file.
14650 (dump_hsa_symbol): Dump alignment of HSA symbols.
14651 * hsa-gen.c (get_symbol_for_decl): Set-up alignment of a symbol.
14652 (gen_hsa_addr_with_align): New function.
14653 (hsa_bitmemref_alignment): Use newly added function.
14654 (gen_hsa_insns_for_load): Likewise.
14655 (gen_hsa_insns_for_store): Likewise.
14656 (gen_hsa_memory_copy): New argument added.
14657 (gen_hsa_insns_for_single_assignment): Respect
14658 alignment for assignments processed via gen_hsa_memory_copy.
14659 (gen_hsa_insns_for_direct_call): Likewise.
14660 (gen_hsa_insns_for_return): Likewise.
14661 (gen_function_def_parameters): Set default alignment.
14662 * hsa.c (hsa_object_alignment): New function.
14663 (hsa_byte_alignment): Pasted function.
14664 * hsa.h (hsa_symbol::m_align): New field.
14666 2016-03-31 Bin Cheng <bin.cheng@arm.com>
14668 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Initialize
14669 scratch field for goto case.
14671 2016-03-31 James Greenhalgh <james.greenhalgh@arm.com>
14673 * config/arm/linux-elf.h (ASM_OUTPUT_DEF): Delete.
14675 2016-03-31 Ilya Enkovich <enkovich.gnu@gmail.com>
14678 * config/i386/i386.c (scalar_chain::convert_op): Fix description.
14679 (scalar_chain::convert_insn): Call convert_op for reg
14680 moves to handle undefined registers.
14682 2016-03-31 Nathan Sidwell <nathan@acm.org>
14685 * varasm.c (output_constructor_regular_field): Flush bitfield earlier.
14686 Assert we don't want to move backwards.
14688 2016-03-31 Kirill Yukhin <kirill.yukhin@intel.com>
14691 * config/i386/sse.md (define_mode_attr shuffletype): Fix typo.
14693 2016-03-31 Jakub Jelinek <jakub@redhat.com>
14695 PR rtl-optimization/70460
14696 * ira.c (indirect_jump_optimize): Don't substitute LABEL_REF
14697 with operand from REG_LABEL_OPERAND, instead substitute
14698 SET_SRC or REG_EQUAL note content if it is a LABEL_REF.
14699 Don't do anything for REG_NON_LOCAL_GOTO jumps.
14701 2016-03-31 Martin Liska <mliska@suse.cz>
14703 * passes.c (execute_one_pass): Do not call
14704 todo_after for a discarded function.
14706 2016-03-31 Bin Cheng <bin.cheng@arm.com>
14708 * tree-ssa-loop-ivopts.c (struct comp_cost): New scrach field.
14709 (no_cost, infinite_cost): Initialize the new field.
14710 (get_computation_cost_at): Record setup cost.
14711 (determine_use_iv_cost_address): Skip cost computation for sub
14712 uses if we can estimate it without losing accuracy.
14714 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
14716 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
14718 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
14719 max_loop_iterations_int.
14720 (tree_unswitch_outer_loop): Likewise.
14721 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
14722 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
14724 2016-03-30 Richard Biener <rguenther@suse.de>
14726 PR middle-end/70450
14727 * fold-const.c (extract_muldiv_1): Fix thinko in wide_int::from usage.
14729 2016-03-30 Jakub Jelinek <jakub@redhat.com>
14732 * config/i386/i386.c (ix86_expand_vector_set): Fix up argument order
14733 in gen_blendm expander.
14735 2016-03-30 Nick Clifton <nickc@redhat.com>
14738 * config/arm/arm.c (arm_reload_out_hi): Add code to handle the
14739 case where we are already provided with an SImode SUBREG.
14741 2016-03-30 H.J. Lu <hongjiu.lu@intel.com>
14744 * config/i386/i386.c (ix86_expand_epilogue): Properly check
14745 conflict between DRAP register and __builtin_eh_return.
14747 2016-03-30 Michael Matz <matz@suse.de>
14748 Richard Biener <rguenther@suse.de>
14751 * ipa-polymorphic-call.c (struct type_change_info): Change
14752 speculative to an unsigned allowing to limit the work we do.
14753 (csftc_abort_walking_p): New inline function..
14754 (check_stmt_for_type_change): Limit the number of may-defs
14755 skipped for speculative devirtualization to
14756 max-speculative-devirt-maydefs.
14757 * params.def (max-speculative-devirt-maydefs): New param.
14758 * doc/invoke.texi (--param max-speculative-devirt-maydefs): Document.
14760 2016-03-30 Mike Stump <mrs@gcc.gnu.org>
14763 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use when profiling
14766 2016-03-30 Patrick Palka <ppalka@gcc.gnu.org>
14768 PR tree-optimization/59124
14769 * tree-vrp.c (register_edge_assert_for_2): For NAME != CST1
14770 where NAME = A +- CST2 add the assertion A != (CST1 -+ CST2).
14772 2016-03-29 Jeff Law <law@redhat.com>
14774 * tree-ssa-coalesce.c (struct ssa_conflicts): Fix typo in comment.
14776 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
14778 * tree-ssa-loop-ivcanon.c (try_peel_loop): Change type of peel
14781 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
14783 * config/gnu.h (CPP_SPEC, LIB_SPEC): Don't override.
14784 * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt1.o instead of
14785 gcrt0.o if linking dynamically.
14787 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
14790 * ipa-devirt.c (methods_equal_p): New function.
14791 (compare_virtual_tables): Use it.
14792 * cgraph.h (symbol_table::symbol_suffix_separator): Declare.
14793 * cgraphclones.c (clone_function_name_1): Use
14794 symbol_table::symbol_suffix_separator.
14795 * coverage.c (build_var): Likewise.
14796 * symtab.c (symbol_table::symbol_suffix_separator): New.
14798 2016-03-29 Jakub Jelinek <jakub@redhat.com>
14800 PR rtl-optimization/70429
14801 * combine.c (simplify_shift_const_1): For ASHIFTRT don't optimize
14802 (cst1 >> count) >> cst2 into (cst1 >> cst2) >> count if
14803 mode != result_mode.
14806 * tree-inline.c (remap_decls): Don't add_local_decl if cfun is null.
14808 PR tree-optimization/70405
14809 * ssa-iterators.h (num_imm_uses): Add missing braces.
14811 2016-03-29 Vladimir Makarov <vmakarov@redhat.com>
14813 PR rtl-optimization/68695
14814 * ira-color.c (allocno_copy_cost_saving): New.
14815 (improve_allocation): Use it.
14817 2016-03-29 Richard Henderson <rth@redhat.com>
14819 PR middle-end/70355
14820 * lower-subreg.c (simplify_subreg_concatn): Reject paradoxical subregs.
14822 2016-03-29 Richard Biener <rguenther@suse.de>
14824 PR middle-end/70424
14825 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Always
14826 use alignment returned by get_pointer_alignment_1 if it is
14827 bigger than BITS_PER_UNIT.
14828 * builtins.c (get_pointer_alignment_1): Do not return true
14829 for alignment extracted from SSA info.
14831 2016-03-28 James Bowman <james.bowman@ftdichip.com>
14833 * config/ft32/ft32.opt (mnodiv): New.
14834 * config/ft32/ft32.md (*divsi3, *modsi3): Qualify with TARGET_NODIV.
14835 * doc/invoke.texi (FT32 Options -mnodiv): New.
14837 2016-03-28 Kirill Yukhin <kirill.yukhin@intel.com>
14840 * config/i386/i386.md (define_split, andn): Fix modes.
14842 2016-03-26 Richard Biener <rguenther@suse.de>
14843 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
14846 * ipa-inline-transform.c (inline_call): Pass opts_for_fn (to->decl)
14848 TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (to->decl))
14849 as 2nd argument to cl_optimization_restore().
14851 2016-03-25 Richard Henderson <rth@redhat.com>
14854 * config/aarch64/aarch64.c (aarch64_asm_output_pool_epilogue): New.
14855 * config/aarch64/aarch64-protos.h: Declare it.
14856 * config/aarch64/aarch64.h (ASM_OUTPUT_POOL_EPILOGUE): New.
14858 2016-03-25 Alan Modra <amodra@gmail.com>
14861 * config/rs6000/constraints.md (j): Simplify.
14862 * config/rs6000/predicates.md (easy_fp_constant): Exclude
14864 * config/rs6000/rs6000.md (zero_fp): New mode_attr.
14865 (mov<mode>_hardfloat, mov<mode>_hardfloat32, mov<mode>_hardfloat64,
14866 mov<mode>_64bit_dm, mov<mode>_32bit): Use zero_fp in place of j
14867 in all constraint alternatives.
14868 (movtd_64bit_nodm): Delete "j" constraint alternative.
14870 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
14872 * tree-ssa-propagate.c: Enhance docs for
14873 SSA_PROP_NOT_INTERESTING.
14875 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
14877 * doc/extend.texi: Fix typo in documentation to pure attribute.
14879 2016-03-24 John David Anglin <danglin@gcc.gnu.org>
14882 * config/pa/pa.md (bswapdi2): Use a scratch register.
14884 2016-03-24 Richard Henderson <rth@redhat.com>
14886 PR middle-end/69845
14887 * fold-const.c (extract_muldiv_1): Correct test for multiplication
14890 2016-03-24 Uros Bizjak <ubizjak@gmail.com>
14892 * config/i386/i386.md (*anddi3_doubleword): Generate AND insn
14893 using ix86_expand_binary_operator instead of gen_andsi3.
14895 2016-03-24 Richard Biener <rguenther@suse.de>
14897 PR tree-optimization/70396
14898 * tree-vect-stmts.c (vectorizable_comparison): Use
14899 get_vectype_for_scalar_type.
14901 2016-03-24 Richard Biener <rguenther@suse.de>
14903 PR middle-end/70370
14904 * gimplify.c (gimplify_asm_expr): Handle !allows_mem outputs
14905 with register bases.
14907 2016-03-24 Richard Biener <rguenther@suse.de>
14909 PR tree-optimization/70372
14910 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Use
14911 build_all_ones_cst to also handle vector types correctly.
14913 2016-03-23 Michael Meissner <meissner@linux.vnet.ibm.com>
14916 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Do not set
14919 2016-03-23 Marek Polacek <polacek@redhat.com>
14922 * doc/invoke.texi: Document -Wignored-attributes.
14924 2016-03-23 Bin Cheng <bin.cheng@arm.com>
14926 PR tree-optimization/69042
14927 * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND): Increase the
14928 parameter from 30 to 40.
14930 2016-03-23 Bin Cheng <bin.cheng@arm.com>
14932 PR tree-optimization/69042
14933 * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Add IV cand
14934 for use with constant offset stripped in base.
14936 2016-03-23 Richard Biener <rguenther@suse.de>
14938 PR middle-end/70251
14939 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Adjust
14940 mode compatibility check.
14941 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
14943 2016-03-23 Jeff Law <law@redhat.com>
14945 PR tree-optimization/64058
14946 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field
14948 (struct ssa_conflicts): Move up earlier in the file.
14949 (conflicts_, var_map_): New static variables.
14950 (initialize_conflict_count): New function to initialize the
14951 CONFLICT_COUNT field for each conflict pair.
14952 (compare_pairs): Lazily initialize the conflict count and use it
14953 as the first tie-breaker.
14954 (sort_coalesce_list): Add new arguments conflicts, map. Initialize
14955 and wipe conflicts_ and map_ around the call to qsort. Remove
14956 special case for 2 coalesce pairs.
14957 * bitmap.c (bitmap_count_unique_bits): New function.
14958 (bitmap_count_bits_in_word): New function, extracted from
14960 (bitmap_count_bits): Use bitmap_count_bits_in_word.
14961 * bitmap.h (bitmap_count_unique_bits): Declare it.
14963 2016-03-23 Ilya Enkovich <enkovich.gnu@gmail.com>
14966 * config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Follow
14967 transparent alias chain for decl assembler name.
14968 * config/sol2.c (solaris_assemble_visibility): Likewise.
14970 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14972 * config/arm/arm1020e.md (1020call_op): Reduce reservation
14974 (v10_fdivs): Likewise.
14975 (v10_fdivd): Likewise.
14977 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14980 * config/arm/driver-arm.c (host_detect_local_cpu): Reorder exit logic
14981 to not call fclose twice on file.
14983 2016-03-23 Jakub Jelinek <jakub@redhat.com>
14985 PR tree-optimization/70354
14986 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
14987 oprnd0 is wider than oprnd1 and there is a cast from the wider
14988 type to oprnd1, mask it with the mask of the narrower type.
14991 * config/i386/i386.md (*anddi3_doubleword, *<code>di3_doubleword):
14992 Optimize TARGET_STV splitters, if high or low word of last argument
14995 2016-03-22 Jeff Law <law@redhat.com>
14998 tree-ssa-threadbackward.c
14999 (fsm_find_control_statement_thread_paths): Correctly distinguish
15000 between old style jump threads vs FSM jump threads.
15002 2016-03-22 Ilya Enkovich <enkovich.gnu@gmail.com>
15005 * config/i386/i386.c (scalar_chain::convert_op): Support
15006 uninitialized register usage case.
15008 2016-03-22 Richard Biener <rguenther@suse.de>
15010 PR middle-end/70251
15011 * genmatch.c (gen_transform): Adjust last parameter to a three-state
15013 (capture::gen_transform): ... to change behavior when substituting
15014 a condition into cond or not-cond expr context.
15015 (dt_simplify::gen_1): Adjust.
15016 * gimple-match-head.c: Include gimplify.h for unshare_expr.
15017 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Revert
15018 last change and instead change to
15019 A + (B vcmp C ? 1 : 0) -> A - (B vcmp C ? -1 : 0).
15020 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
15022 2016-03-22 Anthony Green <green@moxielogic.com>
15024 * config/moxie/moxiebox.h (CC1_SPEC): Define. Fix endianness
15025 issue for moxiebox targets.
15026 (CC1PLUS_SPEC): Ditto.
15028 2016-03-22 Richard Biener <rguenther@suse.de>
15030 PR middle-end/70333
15031 * fold-const.c (extract_muldiv_1): Properly perform multiplication
15034 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
15036 * config/i386/i386.c (def_builtin): Remove duplicated functionality.
15038 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
15041 * config/i386/i386.c (def_builtin): Handle
15042 OPTION_MASK_ISA_AVX512VL to be and-ed with other
15044 (const struct builtin_description bdesc_special_args[]):
15045 Remove duplicate ISA bits.
15047 2016-03-22 Jakub Jelinek <jakub@redhat.com>
15050 * config/i386/i386.c (ix86_expand_vecop_qihi): Don't bother computing
15051 d.perm[i] for i >= d.nelt. If not full_interleave, compute d.perm[i]
15052 in a way that works also for AVX512BW.
15055 * config/i386/i386.md (cvtsd2ss splitter): Unpack in destination
15056 instead of source if operands[1] is xmm16 and above and
15057 !TARGET_AVX512VL. Use avx512f_vec_dupv16sf_1 instead of
15058 vec_interleave_lowv4sf if we need to unpack xmm16 and above.
15061 * gimplify.c (gimplify_modify_expr): Call gimple_set_no_warning
15062 on assign if (*from_p) is a comparison, set it to
15063 TREE_NO_WARNING (*from_p).
15065 2016-03-21 Jakub Jelinek <jakub@redhat.com>
15067 PR middle-end/70326
15068 * lra.c (restore_scratches): Ignore deleted insns.
15070 2016-03-21 Marc Glisse <marc.glisse@inria.fr>
15071 Jakub Jelinek <jakub@redhat.com>
15073 PR tree-optimization/70317
15074 * match.pd (cmp @0 @0): Pass @0 instead of TYPE_MODE (TREE_TYPE (@0))
15077 2016-03-21 Uros Bizjak <ubizjak@gmail.com>
15080 * config/i386/i386.md (movxi): Use ix86_expand_vector_move instead
15081 of ix86_expand_move.
15083 (movti): Use general_operand for operand 1 predicate.
15085 2016-03-21 Martin Liska <mliska@suse.cz>
15087 * hsa-dump.c (dump_hsa_insn_1): dump default branch of SBR
15089 (dump_hsa_symbol): Dump BRIG offset of hsa_symbols.
15091 2016-03-21 Martin Liska <mliska@suse.cz>
15094 * ipa-icf.c (sem_function::parse): Skip static
15095 constructors and destructors.
15097 2016-03-21 Jakub Jelinek <jakub@redhat.com>
15100 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If IDENT is
15101 function-like macro, peek following token(s) if it is followed
15102 by CPP_OPEN_PAREN token with optional padding in between, and
15103 if not, don't treat it like a macro.
15105 2016-03-21 Thomas Schwinge <thomas@codesourcery.com>
15106 Alexander Monakov <amonakov@ispras.ru>
15108 * config/nvptx/nvptx.c (nvptx_option_override): Don't emit sorry
15109 for the stabs debug format.
15111 2016-03-21 Richard Biener <rguenther@suse.de>
15113 PR tree-optimization/70310
15114 * tree-vect-generic.c (expand_vector_condition): Fold the built
15117 2016-03-21 Kirill Yukhin <kirill.yukhin@intel.com>
15120 * config/i386/sse.md: (define_insn "*vec_dup<mode>"/AVX2):
15121 Block third alternative for AVX-512VL target,
15123 2016-03-21 Martin Liska <mliska@suse.cz>
15126 * hsa-brig.c (emit_function_directives): Mark unemitted
15127 global variables for emission.
15128 * hsa-gen.c (hsa_symbol::hsa_symbol): Initialize a new flag.
15129 (get_symbol_for_decl): Likewise.
15130 * hsa.h (struct hsa_symbol): New flag.
15132 2016-03-21 Richard Biener <rguenther@suse.de>
15134 PR tree-optimization/70288
15135 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Make sure
15136 we do not estimate unsimplified all-constant conditionals or
15137 switches as optimized away.
15139 2016-03-21 Andrey Belevantsev <abel@ispras.ru>
15141 PR rtl-optimization/69102
15142 * sched-deps.c (sched_analyze_insn): Do not set last_args_size field
15143 when we have a readonly dependency context.
15145 2016-03-18 Jeff Law <law@redhat.com>
15147 PR rtl-optimization/70263
15148 * ira.c (memref_used_between_p): Assert we found END in the insn chain.
15149 (update_equiv_regs): When trying to move a store to after the insn
15150 that sets the source of the store, make sure the store occurs after
15151 the insn that sets the source of the store. When successful note
15152 the REG_EQUIV note created in the dump file.
15154 2016-03-16 David Wohlferd <dw@LimeGreenSocks.com>
15155 Bernd Schmidt <bschmidt@redhat.com>
15157 * doc/extend.texi: Document more potential problems with basic asms.
15159 2016-03-18 Bernd Schmidt <bschmidt@redhat.com>
15161 PR rtl-optimization/70278
15162 * lra-constraints.c (split_reg): Handle the case where biggest_mode is
15165 2016-03-18 Jason Merrill <jason@redhat.com>
15167 * calls.c (load_register_parameters): Fix zero size sibcall logic.
15169 2016-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
15171 * config/i386/sse.md: Use vpbroadcastq for broadcasting DF
15172 values to 128b regs.
15174 2016-03-18 Ilya Enkovich <enkovich.gnu@gmail.com>
15176 PR tree-optimization/70252
15177 * tree-vect-stmts.c (supportable_widening_operation): Check resulting
15178 boolean vector has a proper number of elements.
15179 (supportable_narrowing_operation): Likewise.
15181 2016-03-18 Tom de Vries <tom@codesourcery.com>
15184 * cgraph.c (cgraph_node::get_body): Set dump_file to NULL after save.
15186 2016-03-18 Jakub Jelinek <jakub@redhat.com>
15188 * reload1.c (emit_input_reload_insns): Use simplify_replace_rtx
15189 instead of replace_rtx for DEBUG_INSNs.
15191 2016-03-18 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
15193 * config/i386/znver1.md : Fix latencies of FP/SSE/AVX
15194 load type reservations.
15196 2016-03-17 John David Anglin <danglin@gcc.gnu.org>
15199 * config/pa/constraints.md: Revert 2015-02-13 change. Use
15200 define_constraint for "Q" and "T" constraints.
15202 2016-03-17 Evandro Menezes <e.menezes@samsung.com>
15204 Tweak the pipeline model for Exynos M1
15206 * config/aarch64/aarch64.c (exynosm1_tunings): Enable weak prefetching
15209 2016-03-17 David Malcolm <dmalcolm@redhat.com>
15212 * diagnostic-show-locus.c (compatible_locations_p): Handle the case
15213 where one or both locations aren't within a line_map.
15215 2016-03-17 H.J. Lu <hongjiu.lu@intel.com>
15218 * opts.c (finish_options): Don't set flag_pie to the default if
15219 -fpic, -fPIC, -fno-pic or -fno-PIC is used. Set flag_pic to 0
15222 2016-03-17 Joern Rennecke <joern.rennecke@embecosm.com>
15224 * config/i386/i386.md (*movv4qicc_insn+1..36): Pass
15225 true as ALL_REGS argument to replace_rtx.
15227 2016-03-17 Richard Biener <rguenther@suse.de>
15230 * dwarf2out.c (dwarf2out_early_finish): Process deferred_asm_name
15233 2016-03-17 Jakub Jelinek <jakub@redhat.com>
15236 * rtl.h (replace_rtx): Add ALL_REGS argument.
15237 * rtlanal.c (replace_rtx): Likewise. If true, use REGNO
15238 equality and assert mode is the same, instead of just rtx pointer
15240 * config/i386/i386.md (mov + arithmetics with load peephole): Pass
15241 true as ALL_REGS argument to replace_rtx.
15243 2016-03-17 Ilya Enkovich <enkovich.gnu@gmail.com>
15245 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Apply
15246 for boolean vector with vector mode only.
15247 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
15249 2016-03-17 Nick Clifton <nickc@redhat.com>
15252 * config/rx/rx.c (rx_print_integer): Print negative constants in
15255 2016-03-17 Jakub Jelinek <jakub@redhat.com>
15258 * rtlanal.c (replace_rtx): Revert 2016-03-16 change.
15260 2016-03-16 Richard Henderson <rth@redhat.com>
15261 Richard Biener <rguenth@suse.de>
15263 PR middle-end/70240
15264 PR middle-end/68215
15266 * gimplify.c (gimplify_expr) [VEC_COND_EXPR]: Gimplify the
15267 first operand as is_gimple_condexpr.
15269 PR middle-end/70240
15270 PR middle-end/68215
15272 2015-12-11 Eric Botcazou <ebotcazou@adacore.com>
15273 * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
15274 Do not gimplify the result.
15275 (do_unop): Adjust call to tree_vec_extract.
15276 (do_binop): Likewise.
15277 (do_compare): Likewise.
15278 (do_plus_minus): Likewise.
15279 (do_negate): Likewise.
15280 (expand_vector_condition): Likewise.
15281 (do_cond): Likewise.
15283 2016-03-16 Richard Henderson <rth@redhat.com>
15286 * config/aarch64/aarch64.c (virt_or_elim_regno_p): New.
15287 (aarch64_classify_address): Use it.
15288 (aarch64_legitimize_address): Force all subexpressions of PLUS
15289 into registers. Simplify as (sfp+const)+reg or (reg+reg)+const.
15291 2016-03-16 Jakub Jelinek <jakub@redhat.com>
15292 Richard Biener <rguenth@suse.de>
15295 * rtlanal.c (replace_rtx): For REG, if from is a REG,
15296 return to even if only REGNO is equal, and assert
15299 2016-03-11 Jeff Law <law@redhat.com>
15301 PR rtl-optimization/70224
15302 * reorg.c (relax_delay_slots): Pass right argument to CROSSING_JUMP_P.
15304 2016-03-16 Richard Henderson <rth@redhat.com>
15306 PR middle-end/70199
15307 * function.h (struct function): Add has_forced_label_in_static.
15308 * gimplify.c (force_labels_r): Set it.
15309 * lto-streamer-in.c (input_struct_function_base): Read it.
15310 * lto-streamer-out.c (output_struct_function_base): Write it.
15311 * tree-inline.c (has_label_address_in_static_1): Remove.
15312 (copy_forbidden): Remove fndecl parameter; test
15313 has_forced_label_in_static.
15314 (inline_forbidden_p): Update call to copy_forbidden.
15315 (tree_versionable_function_p): Likewise.
15316 * ipa-chkp.c (chkp_instrumentable_p): Likewise.
15317 (chkp_versioning): Likewise.
15318 * tree-inline.h (copy_forbidden): Update decl.
15320 2016-03-16 Marek Polacek <polacek@redhat.com>
15323 * cgraphunit.c (cgraph_node::expand_thunk): Also build call to the
15324 function being thunked if the result type doesn't have fixed size.
15325 * gimplify.c (gimplify_modify_expr): Also set LHS if the result type
15326 doesn't have fixed size.
15328 2016-03-16 Bin Cheng <bin.cheng@arm.com>
15330 * tree-vect-loop.c (vect_analyze_loop_2): Fix wrong dump info by
15331 reporting malformed loop nest.
15333 2016-03-16 Tom de Vries <tom@codesourcery.com>
15336 * ipa-devirt.c (possible_polymorphic_call_targets): Move
15337 nodes.length () == 1 test to before first nodes[0] access.
15339 2016-03-16 Tom de Vries <tom@codesourcery.com>
15341 PR tree-optimization/68715
15342 * graphite-scop-detection.c (scop_detection::merge_sese): Add missing
15343 single_pred_p test.
15345 2016-03-16 Tom de Vries <tom@codesourcery.com>
15347 PR tree-optimization/68809
15348 * graphite-scop-detection.c (same_close_phi_node): Test if result types
15351 2016-03-16 Carlos O'Donell <carlos@redhat.com>
15352 Sandra Loosemore <sandra@codesourcery.com>
15354 * doc/extend.texi (Common Function Attributes): Describe ifunc impact
15355 on leaf attribute. Mention ELF interposition problems.
15357 2016-03-16 Alan Modra <amodra@gmail.com>
15359 PR rtl-optimization/69195
15360 PR rtl-optimization/47992
15361 * ira.c (indirect_jump_optimize): Ignore artificial defs.
15364 2016-03-15 Eric Botcazou <ebotcazou@adacore.com>
15367 * dwarf2out.c (flush_limbo_die_list): Really flush the limbo list.
15369 2016-03-15 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
15371 * config/avr/avr.md (rotl<mode>3): Set mode for operand 2.
15373 2016-03-15 Jakub Jelinek <jakub@redhat.com>
15375 PR rtl-optimization/70222
15376 * combine.c (simplify_shift_const_1): For A >> B >> C LSHIFTRT
15377 optimization if mode is different from result_mode, queue up masking
15378 of the result in outer_op. Formatting fix.
15380 PR middle-end/70239
15381 * tree-ssa-sccvn.c (VN_INFO_GET): Use safe_grow_cleared instead
15384 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
15386 PR rtl-optimization/69032
15387 * sel-sched-ir.c (get_seqno_by_preds): Include both insn and head when
15388 looping backwards over basic block insns.
15390 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
15393 * sel-sched-ir.c (merge_expr): Avoid changing the speculative pattern
15394 to non-speculative when propagating trap bits.
15396 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
15398 PR rtl-optimization/63384
15399 * sel-sched.c (invoke_aftermath_hooks): Do not decrease issue_more on
15400 DEBUG_INSN_P insns.
15402 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
15405 * sched-deps.c (get_implicit_reg_pending_clobbers): New function,
15406 factored out from ...
15407 (sched_analyze_insn): ... here.
15408 * sched-int.h (get_implicit_reg_pending_clobbers): Declare it.
15409 * sel-sched-ir.c (setup_id_implicit_regs): New function, use
15410 get_implicit_reg_pending_clobbers in it.
15411 (setup_id_reg_sets): Use setup_id_implicit_regs.
15412 (deps_init_id): Ditto.
15414 2016-03-15 Tom de Vries <tom@codesourcery.com>
15417 * cgraph.c (cgraph_node::get_body): Save, reset and restore
15419 * passes.c (execute_one_ipa_transform_pass): Add missing argument to
15420 execute_function_dump.
15421 (execute_one_pass): Don't dump function if it will be dumped after ipa
15424 2016-03-15 Segher Boessenkool <segher@kernel.crashing.org>
15426 * genrecog.c (match_pattern_2): If pred is NULL don't call
15427 safe_predicate_mode on it.
15429 2016-03-14 Jakub Jelinek <jakub@redhat.com>
15431 PR middle-end/70219
15432 * lra-constraints.c (delete_move_and_clobber): Change assertion
15433 to also allow dregno == 0.
15435 2016-03-14 Richard Henderson <rth@redhat.com>
15438 * tree-ssa-reassoc.c (ovce_extract_ops, optimize_vec_cond_expr): New.
15439 (can_reassociate_p): Allow ANY_INTEGRAL_TYPE_P.
15440 (reassociate_bb): Use optimize_vec_cond_expr; avoid
15441 optimize_range_tests, attempt_builtin_copysign and attempt_builtin_powi
15444 2016-03-14 Bernd Schmidt <bschmidt@redhat.com>
15447 * lra-lives.c (process_bb_lives): Also update biggest mode for hard
15449 (lra_create_live_ranges_1): initialize hard register biggest_mode to
15451 * lra-constraints.c (split_reg): For hard regs, try to find the
15452 biggest single-register mode used in the function.
15454 2016-03-14 Richard Biener <rguenther@suse.de>
15456 PR tree-optimization/56365
15457 * tree-ssa-phiopt.c (minmax_replacement): Handle alternate
15458 constants to compare against.
15460 2016-03-14 Segher Boessenkool <segher@kernel.crashing.org>
15463 * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
15464 *ctr<mode>_internal5, *ctr<mode>_internal6): Also allow "d" as output.
15465 (define_split for the GPR case): Use int_reg_operand instead of
15466 gpc_reg_operand for the output.
15468 2016-03-14 Tom de Vries <tom@codesourcery.com>
15470 PR tree-optimization/70045
15471 * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard): Unshare
15472 create_empty_if_region_on_edge argument.
15474 2016-03-13 Eric Botcazou <ebotcazou@adacore.com>
15476 * config/arm/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Define.
15477 (STACK_CHECK_PROTECT): Likewise.
15478 * config/i386/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
15479 (STACK_CHECK_PROTECT): Likewise.
15480 * config/rs6000/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
15481 (STACK_CHECK_PROTECT): Likewise.
15482 * config/rs6000/vxworksae.h (STACK_CHECK_PROTECT): Likewise.
15483 * config/sparc/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
15484 (STACK_CHECK_PROTECT): Likewise.
15486 2016-03-12 Andrey Belevantsev <abel@ispras.ru>
15488 PR rtl-optimization/69307
15489 * sel-sched.c (choose_best_pseudo_reg): Properly check for hard
15490 registers in modes that span more than one register.
15492 2016-03-12 Vladimir Makarov <vmakarov@redhat.com>
15495 * lra-constraints.c (delete_move_and_clobber): New.
15496 (remove_inheritance_pseudos): Use it.
15498 2016-03-12 Eric Botcazou <ebotcazou@adacore.com>
15501 * calls.c (emit_library_call_value_1): Clear the ECF_NOTHROW flag if
15502 the libcall is LCT_THROW.
15503 * explow.c (probe_stack_range): Pass LCT_THROW to emit_library_call
15504 for the checking routine.
15506 2016-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
15509 * config/rs6000/rs6000.md (round32<mode>2_fprs): Do not do the
15510 optimization if we have direct move.
15511 (roundu32<mode>2_fprs): Likewise.
15513 2016-03-11 Bernd Schmidt <bschmidt@redhat.com>
15516 * lra-remat.c (operand_to_remat): Disallow hard regs in the value t
15518 (reg_overlap_for_remat_p): Renamed from input_regno_present_p.
15519 Arguments swapped. All callers changed. Take reg_renumber into
15520 account, and Calculate and compare register ranges for hard regs.
15522 2016-03-11 Jeff Law <law@redhat.com>
15524 PR tree-optimization/70190
15525 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
15526 Handle cases where we can not extract the taken edge, even though we
15527 found a constant value.
15529 PR tree-optimization/64058
15530 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field INDEX.
15531 (num_coalesce_pairs): Move up earlier in file.
15532 (find_coalesce_pair): Initialize the INDEX field for each pair
15534 (compare_pairs): No longer sort on the elements in each pair.
15535 Instead break ties with the index of the coalesce pair.
15537 2016-03-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15540 * config/aarch64/aarch64-protos.h
15541 (aarch64_save_restore_target_globals): New prototype.
15542 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse):
15543 Call the above when popping pragma.
15544 * config/aarch64/aarch64.c (aarch64_save_restore_target_globals):
15546 (aarch64_set_current_function): Rewrite using the above.
15548 2016-03-11 Jakub Jelinek <jakub@redhat.com>
15550 PR tree-optimization/70177
15551 * gimple-expr.h (extract_ops_from_tree_1): Renamed to ...
15552 (extract_ops_from_tree): ... this. In the 2 argument
15553 overload remove _1 suffix.
15554 * gimple-expr.c (extract_ops_from_tree_1): Renamed to ...
15555 (extract_ops_from_tree): ... this.
15556 * gimple.c (gimple_build_assign, gimple_assign_set_rhs_from_tree):
15558 * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
15559 * tree-ssa-forwprop.c (defcodefor_name): Call 3 operand
15560 extract_ops_from_tree instead of 2 operand one.
15562 2016-03-11 Alan Lawrence <alan.lawrence@arm.com>
15564 PR tree-optimization/70013
15565 * tree-sra.c (analyze_access_subtree): Also set grp_unscalarized_data
15566 for constant-pool entries.
15568 2016-03-11 Jakub Jelinek <jakub@redhat.com>
15570 PR rtl-optimization/70174
15571 * expmed.c (store_bit_field_using_insv): Use gen_lowpart_if_possible
15572 followed by gen_lowpart on force_reg instead of just gen_lowpart.
15574 PR tree-optimization/70169
15575 * tree-ssa-loop.c (gen_lsm_tmp_name): Handle FUNCTION_DECL and
15576 LABEL_DECL like VAR_DECL. Emit nothing instead of gcc_unreachable
15579 2016-03-11 Ilya Enkovich <enkovich.gnu@gmail.com>
15580 Jakub Jelinek <jakub@redhat.com>
15583 * config/i386/i386.c (scalar_chain::convert_reg): Skip uses
15584 of uninitialized values.
15586 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15588 * config/s390/s390.md ("trunctddd2"): Turn former define_insn into
15590 ("*trunctddd2"): New pattern definition.
15591 ("trunctdsd2"): Set prep_for_short_prec rounding mode for the
15594 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15596 * config/s390/s390.md (BFP_RND_*, DFP_RND_*): Add new constant
15597 definitions for BFP and DFP rounding modes.
15598 ("fixuns_truncdddi2", "fixuns_trunctddi2")
15599 ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2")
15600 ("fix_trunc<DSF:mode><GPR:mode>2", "fix_trunc<mode>di2")
15601 ("fix_trunctf<mode>2"): Use the new constants instead of magic
15604 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15606 * config/s390/constraints.md: Adjust comment.
15607 ("Y"): Adjust comment. Rename s390_decompose_shift_count to
15608 s390_decompose_addrstyle_without_index.
15609 * config/s390/predicates.md (shift_count_or_setmem_operand):
15610 Rename to setmem_operand.
15611 * config/s390/s390-protos.h
15612 (s390_decompose_shift_count): Rename to
15613 s390_decompose_addrstyle_without_index.
15614 * config/s390/s390.c (s390_decompose_shift_count)
15615 (s390_mem_constraint, print_shift_count_operand)
15616 (print_operand_address, print_operand): Rename
15617 s390_decompose_shift_count to
15618 s390_decompose_addrstyle_without_index and rename
15619 print_shift_count_operand to print_addrstyle_operand troughout the
15621 * config/s390/s390.md ("setmem_long_<P:mode>", "*setmem_long")
15622 ("*setmem_long_and", "*setmem_long_31z", "*setmem_long_and_31z"):
15623 Rename shift_count_or_setmem_operand to setmem_operand.
15624 * config/s390/vx-builtins.md ("vec_insert<mode>")
15625 ("vec_promote<mode>"): Replace shift_count_or_setmem_operand with
15628 2016-03-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15631 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
15632 Handle overlapping retval and newval.
15634 2016-03-10 Nick Clifton <nickc@redhat.com>
15637 * config/aarch64/aarch64.c
15638 (aarch64_override_options_after_change_1): When forcing
15639 flag_omit_frame_pointer to be true, use a special value that can
15640 be detected if this function is called again, thus preventing
15641 flag_omit_leaf_frame_pointer from being forced to be false.
15643 2016-03-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15645 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
15646 Set x_flag_omit_leaf_frame_pointer when handling
15647 -momit-leaf-frame-pointer.
15649 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
15652 * cgraph.c (cgraph_node::dump): Dump split_part and
15653 indirect_call_target.
15654 * cgraph.h (cgraph_node): Add indirect_call_target flag.
15655 * ipa.c (has_addr_references_p): Cleanup.
15656 (is_indirect_call_target_p): New.
15657 (walk_polymorphic_call_targets): Do not mark virtuals that may be
15658 called indirectly as local.
15659 (symbol_table::remove_unreachable_nodes): Compute indirect_call_target.
15661 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
15664 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
15665 on cxa_pure_virtual.
15667 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
15670 * tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL.
15672 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
15675 * tree.c (need_assembler_name_p): Only record main variant type names.
15677 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
15680 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_843419_DEFAULT):
15681 Always define to 0 or 1.
15682 (TARGET_FIX_ERR_A53_843419): New macro.
15683 * config/aarch64/aarch64-elf-raw.h
15684 (TARGET_FIX_ERR_A53_843419_DEFAULT): Update for above changes.
15685 * config/aarch64/aarch64-linux.h: Likewise.
15686 * config/aarch64/aarch64.c
15687 (aarch64_override_options_after_change_1): Do not default
15688 aarch64_nopcrelative_literal_loads to true if Cortex-A53 erratum
15690 (aarch64_attributes): Handle fix-cortex-a53-843419.
15691 (aarch64_can_inline_p): Likewise.
15692 * config/aarch64/aarch64.opt (aarch64_fix_a53_err843419): Save.
15694 2016-03-10 Alan Lawrence <alan.lawrence@arm.com>
15695 Jakub Jelinek <jakub@redhat.com>
15697 * common.opt (funconstrained-commons, flag_unconstrained_commons): New.
15698 * tree.c (array_at_struct_end_p): Do not limit to size of decl for
15699 DECL_COMMONS if flag_unconstrained_commons is set.
15700 * tree-dfa.c (get_ref_base_and_extent): Likewise.
15701 * doc/invoke.texi (Optimize Options): Add -funconstrained-commons.
15702 (funconstrained-commons): Document.
15704 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
15706 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add
15707 aarch64-fusion-pairs.def and aarch64-tuning-flags.def
15709 2016-03-10 Ilya Enkovich <enkovich.gnu@gmail.com>
15711 * tree-vect-stmts.c (vectorizable_mask_load_store): Check mask
15712 has a proper number of elements.
15714 2016-03-10 Alan Modra <amodra@gmail.com>
15716 PR rtl-optimization/69195
15717 PR rtl-optimization/47992
15718 * ira.c (recorded_label_ref): Delete.
15719 (update_equiv_regs): Return void.
15720 (indirect_jump_optimize): New function.
15721 (ira): Call indirect_jump_optimize and delete_trivially_dead_insns
15722 before regstat_compute_ri. Don't rebuild_jump_labels here.
15723 Delete update_regstat.
15725 2016-03-10 Richard Biener <rguenther@suse.de>
15727 PR tree-optimization/70128
15728 * tree-ssa-structalias.c (set_uids_in_ptset): Set
15729 vars_contains_nonlocal for any FUNCTION_DECL or LABEL_DECL.
15731 2016-03-09 Jakub Jelinek <jakub@redhat.com>
15733 PR tree-optimization/70152
15734 * tree-sra.c (replace_removed_params_ssa_names): Copy over
15735 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from old_name to new_name.
15738 * config/i386/i386.md (truncdfsf2 splitter): Use gen_vec_concatv2df
15739 instead of gen_sse2_loadlpd.
15740 * config/i386/sse.md (*vec_concatv2df): Rename to...
15741 (vec_concatv2df): ... this.
15743 PR tree-optimization/70127
15744 * fold-const.c (operand_equal_p): Revert the 2015-10-28 change.
15746 2016-03-09 David Malcolm <dmalcolm@redhat.com>
15750 * diagnostic-show-locus.c (compatible_locations_p): New function.
15751 (layout::layout): Sanitize ranges using compatible_locations_p.
15753 2016-03-09 David Malcolm <dmalcolm@redhat.com>
15757 * diagnostic-show-locus.c (layout_range::layout_range): Replace
15758 location_range param with three const expanded_locations * and a
15760 (layout::layout): Replace call to
15761 rich_location::lazily_expand_location with get_expanded_location.
15762 Extract the range and perform location expansion here, passing
15763 the results to the layout_range ctor.
15764 * diagnostic.c (source_range::debug): Delete.
15765 * diagnostic.h (diagnostic_expand_location): Reimplement in terms
15766 of rich_location::get_expanded_location.
15767 * gcc-rich-location.c (get_range_for_expr): Delete.
15768 (gcc_rich_location::add_expr): Reimplement to avoid the
15769 rich_location::add_range overload that took a location_range,
15770 passing a location_t instead.
15772 2016-03-09 Richard Biener <rguenther@suse.de>
15773 Jakub Jelinek <jakub@redhat.com>
15775 PR tree-optimization/70138
15776 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
15777 Also skip vect_double_reduction_def.
15779 2016-03-09 Jakub Jelinek <jakub@redhat.com>
15782 * config/i386/sse.md (*vec_extract<mode>): Use %0 instead of %k0
15783 if the operand is "m".
15785 2016-03-09 Nathan Sidwell <nathan@acm.org>
15787 * config/nvptx/nvptx.c (nvptx_option_override): Don't kill debug level.
15789 2016-03-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
15791 * config/i386/i386.c (processor_target_table): Fix cost table
15792 intialization order for znver1.
15794 2016-03-08 Jakub Jelinek <jakub@redhat.com>
15796 * ipa-polymorphic-call.c (walk_ssa_copies): Fix spelling
15797 - becuase -> because.
15798 * ipa-reference.c (ignore_module_statics): Likewise.
15799 * cgraph.c (cgraph_node::get_body): Likewise.
15800 * ipa-inline.c (early_inliner): Likewise.
15801 * ipa-devirt.c (types_same_for_odr): Likewise.
15802 * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
15803 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Likewise.
15805 2016-03-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15807 * tree-ssa-math-opts.c: Fix typo in comment.
15809 2016-03-08 Jakub Jelinek <jakub@redhat.com>
15812 * config/i386/i386.c (scalar_chain::make_vector_copies,
15813 scalar_chain::convert_reg): Call end_sequence in between
15814 get_insns and emit_conversion_insns rather than after both
15817 2016-03-07 Uros Bizjak <ubizjak@gmail.com>
15820 * config/i386/i386.h (machine_function): Add
15821 pc_thunk_call_expanded flag.
15822 (ix86_pc_thunk_call_expanded): New define.
15823 * config/i386/i386.md (set_got, set_got_labelled): New expanders.
15824 (*set_got): Rename insn pattern from set_got.
15825 (*set_got_labelled): Rename inst pattern from set_got_labelled.
15826 * config/i386/i386.c (ix86_compute_frame_layout): Use
15827 ix86_pc_thunk_call_expanded to prevent red-zone.
15829 2016-03-07 Martin Jambor <mjambor@suse.cz>
15831 * hsa.h (hsa_get_ctor_statements): Declare.
15832 (hsa_get_dtor_statements): Likewise.
15833 (hsa_get_kernel_dispatch_type): Likewise.
15834 * hsa.c (hsa_get_ctor_statements): New function.
15835 (hsa_get_dtor_statements): Likewise.
15836 (hsa_get_kernel_dispatch_type): Likewise.
15837 * hsa-brig.c (hsa_cdtor_statements): Removed.
15838 (hsa_output_libgomp_mapping): Use hsa_get_ctor_statements and
15839 hsa_get_dtor_statements.
15840 * hsa-gen.c (hsa_kernel_dispatch_type): Removed.
15841 (get_hsa_kernel_dispatch_offset): Use hsa_get_kernel_dispatch_type.
15843 2016-03-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
15845 * config/arm/arm-cores.def (cortex-r8): New.
15846 * config/arm/arm-tables.opt (cortex-r8): Regenerate.
15847 * config/arm/arm-tune.md: Likewise.
15848 * doc/invoke.texi: Add cortex-r8 to list of cpu values.
15850 2016-03-07 Martin Sebor <msebor@redhat.com>
15852 PR rtl-optimization/19705
15853 * doc/invoke.texi (Options That Control Optimization): Clarify
15854 -fno-branch-count-reg.
15856 2016-02-26 Richard Biener <rguenther@suse.de>
15857 Jeff Law <law@redhat.com>
15859 PR tree-optimization/69740
15860 * cfghooks.c (remove_edge): Request loop fixups if we delete
15861 an edge that might turn an irreducible loop into a natural
15863 * cfgloop.h (check_verify_loop_structure): Clear LOOPS_NEED_FIXUP.
15864 Move after definition of loops_state_clear.
15866 2016-03-07 Bin Cheng <bin.cheng@arm.com>
15868 PR rtl-optimization/69052
15869 * rtlanal.c (commutative_operand_precedence): Set higher precedence
15872 2016-03-07 Tom de Vries <tom@codesourcery.com>
15874 PR tree-optimization/70116
15875 * tree-ssa-tail-merge.c (merge_stmts_p): New function, handling
15876 is_tm_ending stmts and ubsan/asan internal functions.
15877 (find_duplicate): Use it. Don't test is_tm_ending here.
15879 2016-03-07 Richard Biener <rguenther@suse.de>
15881 PR tree-optimization/70115
15882 * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Remove.
15883 (propagate_constants_for_unrolling): Use replace_uses_by.
15885 2016-03-07 Nathan Sidwell <nathan@codesourcery.com>
15887 PR middle-end/69916
15888 * omp-low.c (struct oacc_loop): Add ifns.
15889 (new_oacc_loop_raw): Initialize it.
15890 (finish_oacc_loop): Clear mask & flags if no ifns.
15891 (oacc_loop_discover_walk): Count IFN_GOACC_LOOP calls.
15892 (oacc_loop_xform_loop): Add ifns arg & adjust.
15893 (oacc_loop_process): Adjust oacc_loop_xform_loop call.
15895 2016-03-07 Richard Henderson <rth@redhat.com>
15898 * tree-outofssa.c (emit_partition_copy): Flush pending stack adjust.
15899 (insert_value_copy_on_edge): Likewise.
15901 2016-03-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15903 * config/arm/arm_neon.h: Show error if using with soft-float ABI.
15905 2016-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15908 * config/i386/sol2.h (STACK_REALIGN_DEFAULT): Define.
15910 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
15912 * config/i386/i386.c (znver1_cost): Fix Multiply cost.
15914 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
15916 Fix sseimul type attribute.
15917 * config/i386/znver1.md
15918 (znver1_sseimul, znver1_sseimul_avx256, znver1_sseimul_load,
15919 znver1_sseimul_avx256_load) : Fix the type attribute.
15920 (znver1_sseimul_di, znver1_sseimul_load_di): Fix type attribute,
15921 pipe usage and latency.
15923 2016-03-05 Jakub Jelinek <jakub@redhat.com>
15926 * tree-inline.c (copy_tree_body_r): When cancelling ADDR_EXPR
15927 of INDIRECT_REF and ADDR_EXPR changed type, fold_convert it
15930 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
15933 * targhooks.c (default_vector_alignment): Limit to MAX_OFILE_ALIGNMENT.
15935 PR rtl-optimization/69941
15936 * postreload.c (reload_combine_recognize_pattern): Ensure all uses of
15937 the reg share its mode.
15939 2016-03-04 Jeff Law <law@redhat.com>
15941 PR tree-optimization/69196
15942 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
15943 If the both SSA_NAMEs are anonymous, then consider them unassociated
15944 and include the PHI in the statement count.
15946 2016-03-05 Tom de Vries <tom@codesourcery.com>
15948 * omp-low.c (check_omp_nesting_restrictions): Check for non-oacc
15949 construct in oacc routine. Check for oacc region in oacc routine.
15951 2016-03-04 Jakub Jelinek <jakub@redhat.com>
15954 * config/i386/i386.c (decide_alg): Add RECUR argument. Revert
15955 2016-02-22 changes, instead don't recurse if RECUR is already true.
15956 Don't change *dynamic_check if RECUR. Adjust recursive caller
15957 to pass true to the new argument.
15958 (ix86_expand_set_or_movmem): Adjust decide_alg caller.
15961 * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
15962 <extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask): Formatting
15964 (vec_set_hi_<mode><mask_name>): Likewise. Swap VEC_CONCAT operands.
15966 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
15968 PR rtl-optimization/57676
15969 * lra-assigns.c (lra_assign): Guard test for maximum iterations
15970 with flag_checking.
15972 2016-03-04 Ilya Enkovich <enkovich.gnu@gmail.com>
15974 * tree-vect-patterns.c (search_type_for_mask): Handle
15975 comparison of booleans.
15977 2016-03-04 Jakub Jelinek <jakub@redhat.com>
15979 * doc/extend.texi (__builtin_alloca, __builtin_alloca_with_align):
15983 * dwarf2out.c (prune_unused_types_walk_loc_descr): Handle
15984 all other ops that have dw_val_class_die_ref operands,
15985 and DW_OP_GNU_entry_value.
15987 2016-03-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15989 PR rtl-optimization/69904
15990 * config/arm/arm.c (arm_cannot_copy_insn_p):
15991 Return true for load-exclusive instructions.
15993 2016-03-03 Jakub Jelinek <jakub@redhat.com>
15996 * tree-vect-stmts.c (vect_mark_relevant): Remove USED_IN_PATTERN
15997 argument, if STMT_VINFO_IN_PATTERN_P (stmt_info), always mark
15998 the pattern no matter if it is used just by non-pattern, pattern
16000 (process_use, vect_mark_stmts_to_be_vectorized): Adjust callers.
16001 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
16002 oprnd1 def_stmt is in pattern, don't look through it.
16004 2016-03-03 Marek Polacek <polacek@redhat.com>
16006 PR middle-end/70050
16007 * match.pd (X % -Y): Add INTEGRAL_TYPE_P check.
16009 2016-03-03 Martin Liska <mliska@suse.cz>
16011 PR tree-optimization/70043
16012 * tree-vect-loop.c (optimize_mask_stores): Move iterator to
16013 previous statement if we see a debug statement.
16015 2016-03-03 Richard Biener <rguenther@suse.de>
16017 PR tree-optimization/55936
16018 * tree-vrp.c (compare_name_with_value): Add use_equiv_p
16019 parameter and guard unsafe equivalence use.
16020 (vrp_evaluate_conditional_warnv_with_ops): Always use
16021 safe equivalences but not via the quadratic compare_names
16024 2016-03-03 Michael Collison <michael.collison@linaro.org>
16027 * config/arm/arm.md (*subsi3_carryin_const): Change predicate
16028 for operand 1 to s_register_operand. Change predicate for operand
16029 2 to arm_not_immediate_operand.
16031 2016-03-02 H.J. Lu <hongjiu.lu@intel.com>
16033 * doc/tm.texi: Regenerated.
16035 2016-03-02 Richard Henderson <rth@redhat.com>
16038 * simplify-rtx.c (simplify_plus_minus): Allow reassoc without
16039 simplification when all args are positive non-fixed registers.
16041 2016-03-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
16043 * target.def (lra_p): Specify that new ports should use LRA.
16045 2016-03-02 Jakub Jelinek <jakub@redhat.com>
16048 * gimplify.c (gimplify_decl_expr): For decls with REFERENCE_TYPE, also
16049 gimplify_type_sizes the type they refer to.
16050 (omp_notice_variable): Handle reference vars to VLAs.
16051 * omp-low.c (lower_omp_target): Emit setup of OMP_CLAUSE_PRIVATE
16052 reference to VLA decls in the second pass instead of first pass.
16054 2016-03-02 Tom de Vries <tom@codesourcery.com>
16056 PR tree-optimization/68659
16057 * graphite-isl-ast-to-gimple.c (collect_all_ssa_names): Handle
16058 new_expr == NULL_TREE.
16059 (get_new_name): Handle ADDR_EXPR.
16061 2016-03-02 Bin Cheng <bin.cheng@arm.com>
16063 PR rtl-optimization/69052
16064 * loop-invariant.c (canonicalize_address): New function.
16065 (inv_can_prop_to_addr_use): Check validity of address expression
16066 which is canonicalized by above function.
16068 2016-03-02 Alan Modra <amodra@gmail.com>
16071 * ipa-icf.c (sem_variable::merge): Do not merge an alias with
16074 2016-03-02 Jakub Jelinek <jakub@redhat.com>
16077 * config/i386/i386.md (kmovw): Move m constraint to 2nd alternative.
16078 (*movhi_internal): Put mask moves from and to memory separately
16079 from moves from/to GPRs.
16081 2016-03-02 Richard Biener <rguenther@suse.de>
16083 * genmatch.c (dt_node::gen_kids): Fix match code-gen for embedded
16084 GENERIC expressions in GIMPLE.
16086 2016-03-02 Richard Biener <rguenther@suse.de>
16088 * config/i386/i386.c (type_natural_mode): Fix typo.
16090 2016-03-02 Nick Clifton <nickc@redhat.com>
16092 * config.gcc (mep-*-elf): Add newlib-stdint.h to tm_file.
16094 2016-03-02 Richard Biener <rguenther@suse.de>
16095 Uros Bizjak <ubizjak@gmail.com>
16098 * config/i386/i386.c (type_natural_mode): Handle XFmode vectors.
16100 2016-03-02 Richard Biener <rguenther@suse.de>
16102 PR middle-end/67278
16103 * tree-cfg.c (verify_expr): Adjust BIT_FIELD_REF case.
16105 2016-03-02 Marek Polacek <polacek@redhat.com>
16108 * gimplify.c (gimplify_va_arg_expr): Use expanded location for the
16109 "is promoted to" warning.
16111 2016-03-01 DJ Delorie <dj@redhat.com>
16113 * config.gcc: Deprecate mep-*.
16115 2016-03-01 Vladimir Makarov <vmakarov@redhat.com>
16117 PR middle-end/70025
16118 * lra-constraints.c (regno_val_use_in): New.
16119 (match_reload): Use it instead of regno_use_in.
16121 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
16123 PR rtl-optimization/70007
16124 * gcse.c (compute_ld_motion_mems): Tidy up and also invalidate memory
16125 references present in REG_EQUAL notes attached to non-SET patterns.
16127 2016-03-01 Jeff Law <law@redhat.com>
16129 PR tree-optimization/69196
16130 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
16131 Appropriately clamp the number of statements to copy when the
16132 thread path does not traverse a loop backedge.
16134 PR tree-optimization/69196
16135 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
16136 Do count some PHIs in the thread path against the insn count. Decrease
16137 final statement count by one as the control statement in the last
16138 block will get removed. Remove special cased code for handling PHIs
16141 2016-03-01 Uros Bizjak <ubizjak@gmail.com>
16144 * config/i386/i386.c (ix86_output_call_insn): Add -masm=intel
16145 asm dialect alternatives to explicit GOTPCREL calls.
16147 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
16150 * ira.c (do_reload): Issue warning for generic stack checking here...
16151 * reload1.c (reload): ...instead of here and streamline it.
16153 2016-03-01 Nick Clifton <nickc@redhat.com>
16155 * config.gcc (cr16-*-elf): Add newlib-stdint.h to tm_file.
16157 2016-03-01 Richard Biener <rguenther@suse.de>
16159 PR tree-optimization/69983
16160 * tree-chrec.c (eq_evolutions_p): Handle conversions, compare
16161 types and fall back to operand_equal_p.
16163 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16166 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16168 * config/s390/constraints.md ("jm8"): New constraint.
16169 * config/s390/predicates.md ("const_int_8bitset_operand"): New
16171 * config/s390/s390.md ("*setmem_long", "*setmem_long_and"): Merge
16173 ("*setmem_long<setmem_and>"): New pattern.
16174 ("*setmem_long_31z", "*setmem_long_and_31z"): Merge
16176 ("*setmem_long_31z<setmem_and>"): New pattern.
16177 * config/s390/subst.md ("setmem_31z_subst", "setmem_and_subst"):
16178 New substitution rules with the required attributes.
16181 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16184 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16186 * gensupport.c (process_substs_on_one_elem): Split loop to
16187 complete mark_operands_used_in_match_dup on all expressions in the
16189 (adjust_operands_numbers): Inline into process_substs_on_one_elem
16190 and remove function.
16192 2016-03-01 Richard Biener <rguenther@suse.de>
16194 PR middle-end/70022
16195 * fold-const.c (fold_indirect_ref_1): Fix range checking for
16196 vector BIT_FIELD_REF extract.
16198 2016-03-01 Richard Biener <rguenther@suse.de>
16200 PR tree-optimization/69994
16201 * tree-ssa-reassoc.c (ops_equal_values_p): Handle missing case.
16203 2016-03-01 Ilya Enkovich <enkovich.gnu@gmail.com>
16205 PR tree-optimization/69956
16206 * tree-vect-stmts.c (supportable_widening_operation): Support
16207 multi-step conversion of boolean vectors.
16208 (supportable_narrowing_operation): Likewise.
16210 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16212 * config/s390/s390.c (s390_decompose_address): Don't accept SImode
16215 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16217 * config/s390/subst.md (DSI_VI): New mode iterator.
16218 ("addr_style_op_subst"): Use DSI_VI instead of DSI.
16219 * config/s390/vector.md ("vec_set<mode>"): Move expander before
16220 the insn definition.
16221 ("*vec_set<mode>"): Change predicate and add alternative to
16222 support only either register or const_int operands as element
16224 ("*vec_set<mode>_plus"): New pattern to support reg + const_int
16226 ("vec_extract<mode>"): New expander.
16227 ("*vec_extract<mode>"): New insn definition supporting reg and
16228 const_int element selectors.
16229 ("*vec_extract<mode>_plus"): New insn definition supporting
16230 reg+const_int element selectors.
16231 ("rotl<mode>3", "ashl<mode>3", "ashr<mode>3"): Merge into the
16232 following expander+insn definition.
16233 ("<vec_shifts_name><mode>3"): New expander.
16234 ("*<vec_shifts_name><mode>3<addr_style_op>"): New insn definition.
16236 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16238 * config/s390/s390.md ("*tabort_1"): Change predicate to
16239 nonmemory_operand. Add a second alternative to cover
16240 register as well as const int operands.
16241 ("*tabort_1_plus"): New pattern definition.
16243 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16245 * config/s390/s390.md ("*ashrdi3_cc_31")
16246 ("*ashrdi3_cconly_31""*ashrdi3_cc_31_and")
16247 ("*ashrdi3_cconly_31_and", "*ashrdi3_31_and", "*ashrdi3_31"):
16248 Merge insn definitions into ...
16249 ("*ashrdi3_31<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
16250 New pattern definition.
16251 ("*ashr<mode>3_cc", "*ashr<mode>3_cconly", "ashr<mode>3", )
16252 ("*ashr<mode>3_cc_and", "*ashr<mode>3_cconly_and")
16253 ("*ashr<mode>3_and"): Merge insn definitions into ...
16254 ("*ashr<mode>3<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
16255 New pattern definition.
16256 * config/s390/subst.md ("addr_style_op_cc_subst")
16257 ("masked_op_cc_subst", "setcc_subst", "cconly_subst"): New
16258 substitutions patterns plus attributes.
16259 Add ashiftrt to SUBST iterator.
16261 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16263 * config/s390/s390.md ("<shift><mode>3"): Change predicate of
16264 op2 to nonmemory_operand.
16265 ("*<shift>di3_31", "*<shift>di3_31_and"):
16266 Merge into single pattern definition ...
16267 ("*<shift>di3_31<addr_style_op><masked_op>"): New pattern.
16268 ("*<shift><mode>3", "*<shift><mode>3_and"): Merge into single
16269 pattern definition ...
16270 ("*<shift><mode>3<addr_style_op><masked_op>"): New pattern.
16271 * config/s390/subst.md: Add ashift and lshiftrt to SUBST
16274 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16276 * config/s390/predicates.md (const_int_6bitset_operand): New
16278 * config/s390/s390.md: Include subst.md.
16279 ("rotl<mode>3"): New expander.
16280 ("rotl<mode>3", "*rotl<mode>3_and"): Merge insn definitions into
16282 ("*rotl<mode>3<addr_style_op><masked_op>"): New insn definition.
16283 * config/s390/subst.md: New file.
16285 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16287 * config/s390/s390.md ("op_type", "atype", "length" attributes):
16288 Remove RRR type. It doesn't really exist.
16289 ("RRer", "f0", "v0", "vf", "vd", "op1", "Rf"): Remove mode
16291 ("BFP", "DFP", "nDSF", "nDFDI"): Add mode attributes.
16292 ("*cmp<mode>_ccs", "floatdi<mode>2", "add<mode>3")
16293 ("*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3")
16294 ("*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3")
16295 ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2")
16296 ("*abs<mode>2", "*negabs<mode>2", "sqrt<mode>2"): Override
16297 `enabled' attribute.
16299 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16301 * gensupport.c (process_substs_on_one_elem): Split loop to
16302 complete mark_operands_used_in_match_dup on all expressions in the
16304 (adjust_operands_numbers): Inline into process_substs_on_one_elem
16305 and remove function.
16307 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
16310 * config/sparc/sparc.c (NWORDS_UP): Rename to...
16311 (CEIL_NWORDS): ...this. Use CEIL macro.
16312 (compute_fp_layout): Adjust to above renaming.
16313 (function_arg_union_value): Likewise.
16314 (sparc_arg_partial_bytes): Likewise.
16315 (sparc_function_arg_advance): Likewise.
16317 2016-02-29 Jeff Law <law@redhat.com>
16319 PR tree-optimization/70005
16320 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Handle case
16321 where an object with a boolean range is compared against a value
16324 PR tree-optimization/69999
16325 * gimple-ssa-split-paths.c (split_paths): When duplicating a block
16326 with an outgoing edge marked with EDGE_IRREDUCIBLE_LOOP, schedule
16329 2016-02-29 Richard Biener <rguenther@suse.de>
16331 PR tree-optimization/69994
16332 * tree-ssa-reassoc.c (gimple_nop_conversion_p): New function.
16333 (get_unary_op): Look through nop conversions.
16334 (ops_equal_values_p): New function, look for equality diregarding
16336 (eliminate_plus_minus_pair): Use ops_equal_values_p
16337 (repropagate_negates): Do not use get_unary_op here.
16339 2016-02-29 Martin Liska <mliska@suse.cz>
16341 * system.h: Poison ENABLE_CHECKING macro.
16343 2016-02-29 Martin Liska <mliska@suse.cz>
16345 * hsa-gen.c (gen_body_from_gimple): Dump only if TDF_DETAILS
16346 is presented in dump flags.
16347 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
16348 (hsa_regalloc): Likewise.
16350 2016-02-19 Richard Biener <rguenther@suse.de>
16352 PR tree-optimization/69980
16353 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Update
16354 permutation of those we need to keep.
16356 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
16359 * config/sparc/sparc.c (ROUND_ADVANCE): Rename to...
16360 (NWORDS_UP): ...this
16361 (init_cumulative_args): Minor tweaks.
16362 (sparc_promote_function_mode): Likewise.
16363 (scan_record_type): Delete.
16364 (traverse_record_type): New function template.
16365 (classify_data_t): New structure type.
16366 (classify_registers): New inline function.
16367 (function_arg_slotno): In 64-bit mode, bail out early if FP slots are
16368 exhausted. Instantiate traverse_record_type on classify_registers and
16369 deal with the case of a structure passed in slot #15 with no FP field
16371 (assign_data_t): New structure type.
16372 (compute_int_layout): New static function.
16373 (compute_fp_layout): Likewise.
16374 (count_registers): New inline function.
16375 (assign_int_registers): New static function.
16376 (assign_fp_registers): Likewise.
16377 (assign_registers): New inline function.
16378 (function_arg_record_value_1): Delete.
16379 (function_arg_record_value_2): Likewise.
16380 (function_arg_record_value_3): Likewise.
16381 (function_arg_record_value): Adjust to above changes. Instantiate
16382 traverse_record_type on count_registers to first count the number of
16383 registers to be used and then on assign_registers to assign them.
16384 (function_arg_union_value): Adjust to above renaming.
16385 (sparc_function_arg_1); Minor tweaks. Remove commented out code.
16386 (sparc_arg_partial_bytes): Adjust to above renaming. Deal with the
16387 case of a structure passed in slot #15
16388 (sparc_function_arg_advance): Likewise.
16389 (function_arg_padding): Minor tweak.
16391 2016-02-29 Richard Biener <rguenther@suse.de>
16393 PR tree-optimization/69720
16394 * tree-vect-loop.c (get_initial_def_for_reduction): Avoid
16395 the adjustment_def path for possibly vectorized defs.
16396 (vect_create_epilog_for_reduction): Handle vectorized initial
16399 2016-02-28 Eric Botcazou <ebotcazou@adacore.com>
16401 * config/i386/cygming.h (STACK_REALIGN_DEFAULT): Define.
16403 2016-02-27 Jeff Law <law@redhat.com>
16406 2016-02-26 Richard Biener <rguenther@suse.de>
16407 Jeff Law <law@redhat.com>
16409 PR tree-optimization/69740
16410 * cfghooks.c (remove_edge): Request loop fixups if we delete
16411 an edge that might turn an irreducible loop into a natural
16414 2016-02-27 Jakub Jelinek <jakub@redhat.com>
16416 PR rtl-optimization/69896
16417 * tree-vect-generic.c (get_compute_type): Avoid single element
16420 2016-02-26 Evandro Menezes <e.menezes@samsung.com>
16422 Rename the AArch64 tuning option and related functions to enable the
16423 Newton series for the reciprocal square root to reflect its
16424 approximative characteristic.
16426 * config/aarch64/aarch64-protos.h (aarch64_emit_swrsqrt): Rename
16427 function to "aarch64_emit_approx_rsqrt".
16428 * config/aarch64/aarch64-tuning-flags.def: Rename tuning flag to
16429 AARCH64_EXTRA_TUNE_APPROX_RSQRT.
16430 * config/aarch64/aarch64.c (exynosm1_tunigs): Use new flag name.
16431 (xgene1_tunings): Likewise.
16432 (use_rsqrt_p): Likewise.
16433 (aarch64_emit_swrsqrt): Use new function name.
16434 * config/aarch64/aarch64-simd.md (aarch64_rsqrts_*): Likewise.
16435 * config/aarch64/aarch64.opt (mlow-precision-recip-sqrt): Reword the
16436 text explaining this option.
16437 * doc/invoke.texi (-mlow-precision-recip-sqrt): Likewise.
16439 2016-02-26 Jakub Jelinek <jakub@redhat.com>
16442 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
16443 complain about -mallow-movmisalign without -mvsx if
16444 TARGET_ALLOW_MOVMISALIGN was not set explicitly.
16446 2016-02-26 Joel Sherrill <joel@rtems.org>
16448 * config.gcc: Add x86_64-*-rtems*.
16449 * config/i386/rtems-64.h: New file.
16451 2016-02-26 Joel Sherrill <joel@rtems.org>
16453 * config.gcc: Add aarch64-*-rtems*.
16454 * config/aarch64/rtems.h: New file.
16456 2016-02-26 Segher Boessenkool <segher@kernel.crashing.org>
16459 * config/rs6000/rs6000.c (rs6000_insn_for_shift_mask): Print rlwinm
16460 shift amount using %h. Add comment.
16462 2016-02-26 Richard Biener <rguenther@suse.de>
16463 Jeff Law <law@redhat.com>
16465 PR tree-optimization/69740
16466 * cfghooks.c (remove_edge): Request loop fixups if we delete
16467 an edge that might turn an irreducible loop into a natural
16470 2016-02-26 Martin Jambor <mjambor@suse.cz>
16472 PR middle-end/69920
16473 * tree-sra.c (sra_modify_assign): Do not remove loads of
16474 uninitialized aggregates to SSA_NAMEs.
16476 2016-02-26 Richard Henderson <rth@redhat.com>
16479 * config/s390/s390.md (risbg and risbgn splitters): Allocate new
16480 pseudo in case the target rtx matches the source of the left
16483 2016-02-26 Martin Jambor <mjambor@suse.cz>
16486 * hsa.h (hsa_type_packed_p): Declare.
16487 * hsa.c (hsa_type_packed_p): New function.
16488 * hsa-gen.c (mem_type_for_type): Use unsigned type for packed
16490 (gen_hsa_insns_for_store): Use hsa_type_packed_p.
16491 * hsa-brig.c (emit_basic_insn): Likewise.
16493 2016-02-26 Martin Jambor <mjambor@suse.cz>
16496 * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Use proper hsa type for
16498 (gen_hsa_addr): Allow integer constants in TMR_INDEX2.
16500 2016-02-26 Martin Jambor <mjambor@suse.cz>
16502 * hsa.h (is_a_helper): New overload for hsa_op_immed for
16503 hsa_op_with_type operands.
16504 (hsa_unsigned_type_for_type): Declare.
16505 * hsa.c (hsa_unsigned_type_for_type): New function.
16506 * hsa-gen.c (gen_hsa_binary_operation): Use hsa_unsigned_type_for_type.
16507 (gen_hsa_insns_for_operation_assignment): Satisfy constrains of
16508 the finalizer. Do not emit extra move.
16510 2016-02-26 Martin Jambor <mjambor@suse.cz>
16512 * hsa-gen.c (gen_hsa_ternary_atomic_for_builtin): Fail in presence of
16513 atomic operations in private segment.
16515 2016-02-26 Martin Jambor <mjambor@suse.cz>
16517 * omp-low.c (grid_find_ungridifiable_statement): Store problematic
16518 statements to wi->info. Also disallow omp simd constructs.
16519 (grid_target_follows_gridifiable_pattern): Use wi.info to dump reason
16520 for not gridifying. Dump special string for omp_for.
16522 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16525 * config/aarch64/aarch64.c (aarch64_set_current_function):
16526 Save/restore target globals when switching to
16527 target_option_default_node.
16529 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16532 * config/aarch64/aarch64.c (aarch64_shift_truncation_mask):
16533 Return 0 if !SHIFT_COUNT_TRUNCATED.
16535 2016-02-26 Jakub Jelinek <jakub@redhat.com>
16536 Eric Botcazou <ebotcazou@adacore.com>
16538 PR rtl-optimization/69891
16539 * dse.c (scan_insn): If we can't figure out memset arguments
16540 or they are non-constant, call clear_rhs_from_active_local_stores.
16542 2016-02-26 Martin Liska <mliska@suse.cz>
16544 * doc/extend.texi: Mention clog10, clog10f an clog10l
16545 in Builtins section.
16547 2016-02-26 Martin Liska <mliska@suse.cz>
16549 * dwarf2out.c (new_loc_descr): Replace ENABLE_CHECKING with
16551 (resolve_args_picking_1): Likewise.
16552 * dwarf2out.h (struct GTY): Likewise.
16554 2016-02-26 Martin Liska <mliska@suse.cz>
16556 * hsa-gen.c (generate_hsa): Replace ENABLE_CHECKING macro
16557 with flag_checking.
16558 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
16560 2016-02-26 Markus Trippelsdorf <markus@trippelsdorf.de>
16561 Martin Liska <mliska@suse.cz>
16563 * doc/install.texi: Mention --enable-valgrind-annotations.
16565 2016-02-26 Richard Biener <rguenther@suse.de>
16567 PR tree-optimization/69551
16568 * tree-ssa-structalias.c (get_constraint_for_ssa_var): When
16569 looking through aliases adjust DECL_PT_UID to refer to the
16570 ultimate alias target.
16572 2016-02-25 Martin Liska <mliska@suse.cz>
16574 PR middle-end/69919
16575 * alloc-pool.c (after_memory_report): New variable.
16576 * alloc-pool.h (base_pool_allocator ::release): Do not use
16577 the infrastructure if after_memory_report.
16578 * toplev.c (toplev::main): Mark after memory report.
16580 2016-02-25 Richard Biener <rguenther@suse.de>
16582 PR tree-optimization/48795
16583 * tree-vrp.c (check_array_ref): Use array_at_struct_end_p.
16585 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
16588 * config/gnu-user.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o if
16589 offloading is enabled and -fopenacc or -fopenmp is specified.
16590 (CRTOFFLOADEND): Likewise.
16591 (GNU_USER_TARGET_STARTFILE_SPEC): Add CRTOFFLOADBEGIN.
16592 (GNU_USER_TARGET_ENDFILE_SPEC): Add CRTOFFLOADEND.
16593 * lto-wrapper.c (offloadbegin, offloadend): Remove static vars.
16594 (offload_objects_file_name): New static var.
16595 (tool_cleanup): Remove offload_objects_file_name file.
16596 (find_offloadbeginend): Replace with ...
16597 (find_crtoffloadtable): ... this.
16598 (run_gcc): Remove offload_argc and offload_argv.
16599 Get offload_objects_file_name from -foffload-objects=... option.
16600 Read names of object files with offload from this file, pass them to
16601 compile_images_for_offload_targets. Don't call find_offloadbeginend and
16602 don't pass offloadbegin and offloadend to the linker. Don't pass
16603 offload non-LTO files to the linker, because now they're not claimed.
16605 2016-02-25 Jan Hubicka <hubicka@ucw.cz>
16608 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
16609 on builtin_unreachable.
16611 2016-02-25 Jakub Jelinek <jakub@redhat.com>
16613 PR rtl-optimization/69896
16614 * regcprop.c: Include cfgrtl.h.
16615 (copyprop_hardreg_forward_1): If noop_p insn uses narrower
16616 than remembered mode, either delete it (if noop_move_p), or
16617 treat like copy_p but not noop_p instruction.
16619 2016-02-24 Jakub Jelinek <jakub@redhat.com>
16622 * dwarf2out.c (gen_variable_die): Work around buggy LTO
16623 - allow NULL decl for Fortran DW_TAG_common_block variables.
16625 2016-02-24 Jason Merrill <jason@redhat.com>
16627 * common.opt (flifetime-dse): Add -flifetime-dse=1.
16629 2016-02-24 Richard Biener <rguenther@suse.de>
16630 Jakub Jelinek <jakub@redhat.com>
16632 PR middle-end/69760
16633 * tree-scalar-evolution.c (interpret_rhs_expr): Re-write
16634 conditionally executed ops to well-defined overflow behavior.
16636 2016-02-24 Jakub Jelinek <jakub@redhat.com>
16638 PR middle-end/69915
16639 * tree.c (build_vector_from_ctor): Fix handling of VECTOR_CST
16642 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16644 PR rtl-optimization/69886
16645 * gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode
16646 argument. Use it when checking validity of set instructions.
16647 (want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p.
16648 (compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p
16650 * rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype.
16651 * store-motion.c (find_moveable_store): Update
16652 can_assign_to_reg_without_clobbers_p callsite.
16654 2016-02-24 Richard Biener <rguenther@suse.de>
16656 PR middle-end/68963
16657 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix
16659 (record_nonwrapping_iv): Do not fall back to the low/high bound
16660 for non-constant IV bases if the stmt is not always executed.
16662 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16664 * config/arm/arm-cores.def (cortex-a32): New entry.
16665 * config/arm/arm-tables.opt: Regenerate.
16666 * config/arm/arm-tune.md: Regenerate.
16667 * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a32.
16668 * config/arm/t-aprofile: Handle mcpu=cortex-a32.
16669 * doc/invoke.texi (ARM Options): Document cortex-a32 as value
16670 for -mcpu and -mtune.
16672 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16675 * config/arm/arm.h (TARGET_HAVE_LPAE): Define.
16676 * config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value.
16677 * config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern.
16678 (atomic_loaddi_1): Delete.
16679 (atomic_loaddi): Rewrite expander using the above changes.
16681 2016-02-24 Jakub Jelinek <jakub@redhat.com>
16684 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): Bump default from
16687 2016-02-24 Jakub Jelinek <jakub@redhat.com>
16688 Richard Biener <rguenth@suse.de>
16690 PR middle-end/69909
16691 * expr.c (expand_expr_real_1) <normal_inner_ref>: Avoid
16692 set_mem_attributes if tem is SSA_NAME which got expanded
16695 2016-02-24 Richard Biener <rguenther@suse.de>
16697 PR tree-optimization/69907
16698 * tree-vect-stmts.c (vectorizable_load): Check for gaps at the
16699 end of permutations for BB vectorization.
16701 2016-02-24 Christian Bruel <christian.bruel@st.com>
16703 * config/arm/arm-c.c (arm_option_override): Initialize
16704 target_option_current_node.
16705 * config/arm/arm.c (arm_pragma_target_parse): Replace
16706 build_target_option_node call by target_option_current_node.
16707 Set target_option_current_node.
16710 2016-02-23 David Edelsohn <dje.gcc@gmail.com>
16713 * config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from
16714 define_insn_and_split to define_insn.
16715 (zero_extendqi<mode>2_dot2): Same.
16716 (extendqi<mode>2_dot): Same.
16717 (extendqi<mode>2_dot2): Same.
16719 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
16721 * config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores
16722 and add bypass for AES{D,E} and AESMC pairs.
16723 * config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E}
16726 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
16728 * config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
16729 series for reciprocal square root in Exynos M1.
16731 2016-02-23 Martin Sebor <msebor@redhat.com>
16734 * doc/extend.texi (Other Builtins): Document __builtin_alloca and
16735 __builtin_alloca_with_align.
16737 2016-02-23 Richard Henderson <rth@redhat.com>
16739 * config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS.
16740 (ix86_register_pragmas): Remove __seg_tls.
16741 * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove.
16742 * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it.
16743 (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove.
16744 (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove.
16745 (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove.
16746 * doc/extend.texi (__seg_tls): Remove item.
16748 2016-02-23 Richard Biener <rguenther@suse.de>
16750 * alloc-pool.h (struct allocation_object): Make id member
16751 conditional on CHECKING_P again.
16752 (get_instance): Adjust.
16753 (base_pool_allocator): Likewise.
16755 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
16757 * tree-parloops.c (create_parallel_loop, gen_parallel_loop)
16758 (parallelize_loops): In OpenACC kernels mode, set n_threads to
16760 (pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
16762 * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
16764 2016-02-23 Richard Biener <rguenther@suse.de>
16766 * mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
16767 * bitmap.h (struct bitmap_usage): Likewise.
16768 (bitmap_move): Declare.
16769 * bitmap.c (register_overhead): Take size_t argument.
16770 (bitmap_move): New function.
16771 * df-problems.c (df_rd_transfer_function): Use bitmap_move
16772 to properly account overhead.
16773 * tree.c (free_node): Use tree_size.
16775 2016-02-23 Jakub Jelinek <jakub@redhat.com>
16778 * fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
16779 when inverting comparison.
16782 * common.opt (Wunreachable-code): Add Warning flag.
16784 2016-02-23 Mark Wielaard <mjw@redhat.com>
16785 Jakub Jelinek <jakub@redhat.com>
16788 * cgraphunit.c (check_global_declaration): Check main_input_filename
16789 and DECL_SOURCE_FILE are not NULL.
16791 2016-02-23 Martin Jambor <mjambor@suse.cz>
16793 PR tree-optimization/69666
16794 * tree-sra.c (sra_modify_assign): Do not attempt to create
16795 default_def replacements for unscalarizable regions.
16797 2016-02-20 Mark Wielaard <mjw@redhat.com>
16800 * cgraphunit.c (check_global_declaration): Check level of
16801 warn_unused_const_variable and main_input_filename.
16802 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable=.
16803 (-Wunused-variable): For C implies -Wunused-const-variable=1.
16804 (-Wunused-const-variable): Explain levels 1 and 2.
16806 2016-02-22 Jakub Jelinek <jakub@redhat.com>
16809 * config/i386/i386.c (decide_alg): Ensure we don't recurse with
16810 identical arguments. Formatting and spelling fixes.
16813 * doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
16818 * config/m68k/t-opts (OPTIONS_H_EXTRA): Add m68k-microarchs.def
16819 and m68k-devices.def.
16820 * config/c6x/t-c6x (OPTIONS_H_EXTRA): Add c6x-isas.def.
16821 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add aarch64-arches.def.
16823 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
16825 * config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode
16826 and HImode registers.
16828 2016-02-22 Richard Biener <rguenther@suse.de>
16830 PR tree-optimization/69882
16831 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly
16832 preserve permutations present because of gaps.
16833 (vect_supported_load_permutation_p): Always continue checking
16834 permutations after vect_attempt_slp_rearrange_stmts.
16836 2016-02-22 Bin Cheng <bin.cheng@arm.com>
16838 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
16839 min_profitable_estimate, rather than min_profitable_iters.
16841 2016-02-22 Jakub Jelinek <jakub@redhat.com>
16844 * config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
16845 SImode for last match_operand.
16847 2016-02-22 Martin Liska <mliska@suse.cz>
16849 * hsa-gen.c (gen_hsa_clrsb): In case of zero value,
16850 return bitsize - 1 as the return value.
16852 2016-02-22 Oleg Endo <olegendo@gcc.gnu.org>
16856 * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p):
16857 Handle negative shift counts.
16858 * config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use
16859 force_reg on the shift constant.
16860 (lshrsi3): Likewise. Expand into lshrsi3_n* instead of lshrsi3_d.
16861 (lshrsi3_d): Handle negative shift counts.
16863 2016-02-22 Richard Biener <rguenther@suse.de>
16864 Tom de Vries <tom@codesourcery.com>
16866 * graph.c: Include dumpfile.h.
16867 (print_graph_cfg): Split into three overloads.
16868 * gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn.
16870 2016-02-22 Tom de Vries <tom@codesourcery.com>
16872 * gdbhooks.py (class DumpFn): Add and instantiate, adding command
16875 2016-02-22 Richard Biener <rguenther@suse.de>
16878 * ipa-inline-transform.c (inline_call): When not updating
16879 overall summaries adjust self size by the growth estimate.
16880 * ipa-inline.c (inline_to_all_callers_1): Add to the callers
16881 hash-set, do not update overall summaries here. Renamed from ...
16882 (inline_to_all_callers): ... this which is now wrapping the
16883 above and performing delayed overall summary update.
16884 (early_inline_small_functions): Delay updating of the overall
16887 2016-02-21 Markus Trippelsdorf <markus@trippelsdorf.de>
16889 * tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
16892 2016-02-19 Jakub Jelinek <jakub@redhat.com>
16895 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use
16896 :%* in %:gt() argument.
16897 (greater_than_spec_func): Adjust for expecting only numbers,
16898 if there are more than two numbers, compare the last two.
16900 2016-02-19 Jonathan Wakely <jwakely@redhat.com>
16902 * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
16903 -Wnarrowing with -std.
16905 2016-02-19 Jakub Jelinek <jakub@redhat.com>
16908 * expr.c (store_field): Don't use bit-field path if exp is
16909 COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
16910 different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
16911 and the assignment can be performed by bitwise copy. Formatting
16914 PR middle-end/69838
16915 * lra.c (lra_process_new_insns): If non-call exceptions are enabled,
16916 call copy_reg_eh_region_note_forward on before and/or after sequences
16917 and remove note from insn if it no longer can throw.
16920 * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
16921 if TARGET_AVX512BW.
16923 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16925 * config/s390/vector.md: Add missing commutative operand markers
16926 to the patterns which qualify for one.
16927 * config/s390/vx-builtins.md: Likewise.
16929 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16931 * config/s390/vector.md (VI, VI_QHS): Add single element vector
16932 types to mode iterators.
16933 (vec_double): ... and mode attribute.
16934 * config/s390/vx-builtins.md (non_vec_int): Likewise.
16936 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16938 * config/s390/vector.md ("<ti*>add<mode>3", "<ti*>sub<mode>3"):
16939 Change the predicate of op2 from nonimmediate to general and let
16940 reload fix it if necessary.
16942 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16944 * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
16946 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16948 * config/s390/s390.c (s390_expand_vcond): Use the compare operand
16951 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16953 * config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
16954 * config/s390/s390.c (s390_expand_vec_movstr): New function.
16955 * config/s390/s390.md ("movstr<P:mode>"): Call
16956 s390_expand_vec_movstr.
16958 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16960 * config/s390/s390.md: Add missing output modifier for operand 1
16961 to print it as address properly.
16963 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16965 * config/s390/2827.md: Rename ooo_* insn attributes to zEC12_*.
16966 * config/s390/2964.md: New file.
16967 * config/s390/s390.c (s390_get_sched_attrmask): Use the right set
16968 of insn grouping attributes depending on the CPU level.
16969 (s390_get_unit_mask): New function.
16970 (s390_sched_score): Remove the OOO from the scheduling macros.
16971 Add loop to calculate a score for the instruction mix.
16972 (s390_sched_reorder): Likewise plus improve debug output.
16973 (s390_sched_variable_issue): Rename macros as above. Calculate
16974 the unit distances after actually scheduling an insn. Improve
16976 (s390_sched_init): Clear last_scheduled_unit_distance array.
16977 * config/s390/s390.md: Include 2964.md.
16979 2016-02-18 Jakub Jelinek <jakub@redhat.com>
16982 * config/i386/sse.md (*<floatsuffix>floatv2div2sf2_mask_1,
16983 *avx512vl_<code>v2div2qi2_mask_1, *avx512vl_<code><mode>v4qi2_mask_1,
16984 *avx512vl_<code><mode>v8qi2_mask_1, *avx512vl_<code><mode>v4hi2_mask_1,
16985 *avx512vl_<code>v2div2hi2_mask_1, *avx512vl_<code>v2div2si2_mask_1,
16986 *avx512f_<code>v8div16qi2_mask_1): New insns.
16988 2016-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
16991 * config/rs6000/predicates.md (fusion_gpr_addis): Revert
16994 * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
16995 earlyclobber from target. Use wF constraint for fused memory
16997 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
16999 2016-02-18 Jakub Jelinek <jakub@redhat.com>
17000 Martin Liska <mliska@suse.cz>
17003 * cfgexpand.c (asan_sanitize_stack_p): New function.
17004 (partition_stack_vars): Use the function.
17005 (expand_stack_vars): Likewise.
17006 (defer_stack_allocation): Likewise.
17007 (expand_used_vars): Likewise.
17009 2016-02-18 Richard Biener <rguenther@suse.de>
17011 PR middle-end/69553
17012 * fold-const.c (operand_equal_p): Properly compare offsets for
17013 IMAGPART_EXPR and ARRAY_REF.
17015 2016-02-18 Nick Clifton <nickc@redhat.com>
17019 * config/arm/arm.c (arm_option_override_internal): Disable
17020 interworking if the target does not support thumb instructions.
17021 (arm_reload_in_hi): Handle the case where a register to register
17022 move needs reloading because there is no simple pattern to handle
17024 (arm_reload_out_hi): Likewise.
17026 2016-02-18 Richard Biener <rguenther@suse.de>
17028 PR middle-end/69854
17029 * match.pd: Don't use fold_binary or fold_unary for folding
17032 2016-02-17 Jakub Jelinek <jakub@redhat.com>
17035 * gimplify.c (gimplify_cond_expr): Call gimple_set_no_warning
17036 on the cond_stmt from TREE_NO_WARNING on COND_EXPR_COND.
17037 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Don't
17038 warn on gimple_no_warning_p statements.
17040 2016-02-17 Jonathan Wakely <jwakely@redhat.com>
17042 * doc/extend.texi (C++ Attributes): Correct description of
17043 warn_unused type attribute.
17045 2016-02-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17047 * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
17048 correct instruction.
17050 2016-02-17 Richard Biener <rguenther@suse.de>
17052 PR rtl-optimization/69609
17053 * bb-reorder.c (struct bbro_basic_block_data): Add priority member.
17054 (find_traces_1_round): When ending a trace update cached priority
17056 (bb_to_key): Use cached priority when available.
17057 (copy_bb): Initialize cached priority.
17058 (reorder_basic_blocks_software_trace_cache): Likewise.
17060 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17063 * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
17065 (aarch64_comparison_operator): Break overly long line into two.
17066 (aarch64_comparison_operation): Likewise.
17067 * config/aarch64/aarch64.md (cstorecc4): Use
17068 aarch64_comparison_operator_mode instead of
17069 aarch64_comparison_operator.
17070 (cstore<mode>4): Likewise.
17071 (aarch64_cstore<mode>): Likewise.
17072 (*cstoresi_insn_uxtw): Likewise.
17073 (cstore<mode>_neg): Likewise.
17074 (*cstoresi_neg_uxtw): Likewise.
17076 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17079 * config/arm/predicates.md (arm_comparison_operator_mode):
17081 * config/arm/arm.md (*mov_scc): Use arm_comparison_operator_mode
17082 instead of arm_comparison_operator.
17083 (*mov_negscc): Likewise.
17084 (*mov_notscc): Likewise.
17085 * config/arm/thumb2.md (*thumb2_mov_scc): Likewise.
17086 (*thumb2_mov_negscc): Likewise.
17087 (*thumb2_mov_negscc_strict_it): Likewise.
17088 (*thumb2_mov_notscc): Likewise.
17089 (*thumb2_mov_notscc_strict_it): Likewise.
17091 2016-02-17 Wilco Dijkstra <wdijkstr@arm.com>
17093 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
17094 Add missing return.
17096 2016-02-17 Eric Botcazou <ebotcazou@adacore.com>
17098 * config/visium/visium.c (machine_libfunc_index): New enum.
17099 (machine_libfuncs): New structure.
17100 (visium_libfuncs): New static variable.
17101 (TARGET_INIT_LIBFUNCS): Define to...
17102 (visium_init_libfuncs): ...this. New function.
17103 (expand_block_move_4): Use the appropriate libfunc.
17104 (expand_block_move_2): Likewise.
17105 (expand_block_move_1): Likewise.
17106 (expand_block_set_4): Likewise.
17107 (expand_block_set_2): Likewise.
17108 (expand_block_set_1): Likewise.
17109 (visium_trampoline_init): Likewise.
17111 2016-02-17 Nick Clifton <nickc@redhat.com>
17113 * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
17114 TI's devices.csv file as of March 2016.
17116 2016-02-16 Kelvin Nilsen <kelvin@gcc.gnu.org>
17119 * opts-global.c (handle_common_deferred_options): Introduce and
17120 initialize two global variables to remember command-line options
17121 specifying a stack-limiting register.
17122 * opts.h: Add extern declarations of the two new global variables.
17123 * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx
17124 variable based on the values of the two new global variables.
17126 2016-02-16 Jakub Jelinek <jakub@redhat.com>
17129 * common.opt (Wnonnull-compare): New warning.
17130 * doc/invoke.texi (-Wnonnull): Remove text about comparison
17131 of arguments against NULL.
17132 (-Wnonnull-compare): Document.
17133 * Makefile.in (OBJS): Add gimple-ssa-nonnull-compare.o.
17134 * tree-pass.h (make_pass_warn_nonnull_compare): Declare.
17135 * passes.def (pass_warn_nonnull_compare): Add.
17136 * gimple-ssa-nonnull-compare.c: New file.
17138 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
17140 * config/aarch64/aarch64.c (cortexa57_tunings): Remove
17141 AARCH64_EXTRA_TUNE_RECIP_SQRT.
17143 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
17145 * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
17146 reciprocal sqrt for -mlow-precision-recip-sqrt.
17148 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
17149 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17151 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
17152 always use lane loads to construct non-constant vectors.
17154 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
17156 * config/aarch64/aarch64.md
17157 (arch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Fix register
17158 constraints for operand 3.
17159 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
17161 2016-02-16 Jakub Jelinek <jakub@redhat.com>
17162 Richard Biener <rguenther@suse.de>
17164 PR tree-optimization/69820
17165 * tree-vect-patterns.c (type_conversion_p): Return false if
17166 *orig_type is unsigned single precision or boolean.
17167 (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern):
17170 2016-02-16 Jakub Jelinek <jakub@redhat.com>
17172 PR rtl-optimization/69764
17173 PR rtl-optimization/69771
17174 * optabs.c (expand_binop): Ensure for shift optabs invalid CONST_INT
17175 op1 is valid for GET_MODE_INNER (mode) and force it into a reg.
17177 2016-02-16 Richard Biener <rguenther@suse.de>
17179 PR tree-optimization/69776
17180 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
17182 (indirect_refs_may_alias_p): Likewise.
17183 (refs_may_alias_p_1): Pass alias sets as from ao_ref.
17184 * tree-ssa-sccvn.c (vn_reference_lookup): Also adjust vr alias-set
17185 according to tbaa_p.
17186 * tree-ssa-dom.c (lookup_avail_expr): Add tbaa_p flag.
17187 (optimize_stmt): For redundant store discovery do not allow tbaa.
17189 2016-02-16 Bernd Schmidt <bschmidt@redhat.com>
17191 PR tree-optimization/69714
17192 * tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
17193 Return NULL if we have irrelevant high bytes on BIG_ENDIAN.
17195 2016-02-16 Claudiu Zissulescu <claziss@synopsys.com>
17197 * config/arc/arc-modes.def (CC_FPU, CC_FPU_UNEQ): New modes.
17198 * config/arc/arc-opts.h (FPU_SP, FPU_SF, FPU_SC, FPU_SD, FPU_DP)
17199 (FPU_DF, FPU_DC, FPU_DD, FXP_DP): Define.
17200 * config/arc/arc.c (arc_init): Check FPU options.
17201 (get_arc_condition_code): Handle new CC_FPU* modes.
17202 (arc_select_cc_mode): Likewise.
17203 (arc_conditional_register_usage): Allow 64 bit datum into even-odd
17204 register pair only. Allow access for ARCv2 accumulator.
17205 (gen_compare_reg): Whenever we have FPU support use FPU compare
17207 (arc_reorg): Don't generate brcc insns when FPU compare
17208 instructions are involved.
17209 * config/arc/arc.h (TARGET_DPFP): Add TARGET_FP_DPAX condition.
17210 (TARGET_OPTFPE): Add condition when ARC EM can use optimized
17211 floating point emulation.
17212 (ACC_REG_FIRST, ACC_REG_LAST, ACCL_REGNO, ACCH_REGNO): Define.
17213 (REVERSE_CONDITION): Add new CC_FPU* modes.
17214 (TARGET_FP_SP_BASE): Define.
17215 (TARGET_FP_DP_BASE): Likewise.
17216 (TARGET_FP_SP_FUSED): Likewise.
17217 (TARGET_FP_DP_FUSED): Likewise.
17218 (TARGET_FP_SP_CONV): Likewise.
17219 (TARGET_FP_DP_CONV): Likewise.
17220 (TARGET_FP_SP_SQRT): Likewise.
17221 (TARGET_FP_DP_SQRT): Likewise.
17222 (TARGET_FP_DP_AX): Likewise.
17223 * config/arc/arc.md (ARCV2_ACC): New constant.
17224 (type): New fpu type attribute.
17225 (SDF): Conditional iterator.
17226 (cstore<mode>, cbranch<mode>): Change expand condition.
17227 (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3): New expands,
17228 handles FPU/FPX cases as well.
17229 * config/arc/arc.opt (mfpu): New option.
17230 * config/arc/fpx.md (addsf3_fpx, subsf3_fpx, mulsf3_fpx):
17232 (adddf3, muldf3, subdf3): Removed.
17233 * config/arc/predicates.md (proper_comparison_operator): Recognize
17235 * config/arc/fpu.md: New file.
17236 * doc/invoke.texi (ARC Options): Document mfpu option.
17238 2016-02-16 Richard Biener <rguenther@suse.de>
17240 PR rtl-optimization/69291
17241 * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
17242 noce_operand_ok check.
17244 2016-02-16 Tom de Vries <tom@codesourcery.com>
17247 * omp-low.c (simd_clone_create): Remove call to
17248 symtab->call_cgraph_insertion_hooks.
17250 2016-02-16 Jakub Jelinek <jakub@redhat.com>
17252 PR tree-optimization/69802
17253 * tree-ssa-reassoc.c (update_range_test): If op is
17254 SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
17255 op == 1 test of precision 1 integral op, otherwise handle
17256 that case as op itself. Fix up formatting.
17257 (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
17260 2016-02-16 Richard Biener <rguenther@suse.de>
17262 PR tree-optimization/69586
17263 * tree-vrp.c (register_edge_assert_for_2): Handle all integral
17264 types for conversion sources.
17266 2016-02-16 Richard Biener <rguenther@suse.de>
17268 PR middle-end/69801
17269 * fold-const.c (operand_equal_p): For COND_EXPR zero operand
17270 mask OEP_ADDRESS_OF.
17272 2016-02-16 Alan Modra <amodra@gmail.com>
17275 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
17276 (p8_mtvsrd_df, p8_mtvsrd_sf): New.
17277 (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
17279 (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
17280 (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
17281 (p8_fmrgow_<mode>): Likewise.
17282 (reload_vsx_from_gpr<mode>): Make clobber IF. Adjust for above
17284 (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
17285 (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
17286 to use movdi_internal64. Remove op0_di.
17287 * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
17289 2016-02-15 Evandro Menezes <e.menezes@samsung.com>
17291 Add support for the FCCMP insn types
17293 * config/aarch64/aarch64.md (fccmp): Change insn type.
17294 (fccmpe): Likewise.
17295 * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
17296 * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
17297 * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
17298 * config/arm/xgene1.md (xgene1_fcmp): Likewise.
17299 * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
17300 * config/arm/types.md (fccmps): Add new insn type.
17301 (fccmpd): Likewise.
17303 2016-02-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
17305 * alias.c (get_alias_set): Fix a typo in comment.
17307 2016-02-15 Richard Biener <rguenther@suse.de>
17309 PR tree-optimization/69595
17310 * match.pd: Complete range test simplification to true.
17312 2016-02-15 Bernd Schmidt <bschmidt@redhat.com>
17314 PR rtl-optimization/69648
17315 * lra-constraints.c (update_ebb_live_info): Don't remove sets of
17316 pic_offset_table_rtx.
17318 PR rtl-optimization/69752
17319 * ira.c (update_equiv_regs): When looking for more than a single SET,
17320 also take other side effects into account.
17322 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
17324 * config/s390/s390.c (s390_function_profiler): Add a new sequence
17325 for z900+ CPUs in 31-bit mode.
17327 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
17329 * common/config/s390/s390-common.c (s390_supports_split_stack):
17331 (TARGET_SUPPORTS_SPLIT_STACK): New macro.
17332 * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
17333 * config/s390/s390.c (struct machine_function): New field
17334 split_stack_varargs_pointer.
17335 (s390_register_info): Mark r12 as clobbered if it'll be used as temp
17336 in s390_emit_prologue.
17337 (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
17339 (morestack_ref): New global.
17340 (SPLIT_STACK_AVAILABLE): New macro.
17341 (s390_expand_split_stack_prologue): New function.
17342 (s390_live_on_entry): New function.
17343 (s390_va_start): Use split-stack vararg pointer if appropriate.
17344 (s390_asm_file_end): Emit the split-stack note sections.
17345 (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
17346 * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
17347 (UNSPECV_SPLIT_STACK_CALL): New unspec.
17348 (UNSPECV_SPLIT_STACK_DATA): New unspec.
17349 (split_stack_prologue): New expand.
17350 (split_stack_space_check): New expand.
17351 (split_stack_data): New insn.
17352 (split_stack_call): New expand.
17353 (split_stack_call_*): New insn.
17354 (split_stack_cond_call): New expand.
17355 (split_stack_cond_call_*): New insn.
17357 2016-02-15 Richard Biener <rguenther@suse.de>
17359 PR tree-optimization/69783
17360 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
17361 Add trivially correct cases.
17363 2016-02-15 Tom de Vries <tom@codesourcery.com>
17366 * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
17368 * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
17370 2016-02-15 Richard Biener <rguenther@suse.de>
17372 PR tree-optimization/69776
17373 * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
17374 * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
17375 indicate whether we can use TBAA to disambiguate against stores.
17376 Use alias-set zero if not.
17377 (visit_reference_op_store): Do not use TBAA when looking up
17379 * tree-ssa-pre.c (compute_avail): Use TBAA here.
17380 (eliminate_dom_walker::before_dom_children): But not when looking
17381 up redundant stores.
17383 2016-02-14 John David Anglin <danglin@gcc.gnu.org>
17385 * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
17387 2016-02-14 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
17389 * config/i386/znver1.md
17390 (znver1_pop, znver1_pop_mem,
17391 znver1_load_imov_double_store,
17392 znver1_load_imov_direct_store,
17393 znver1_load_imov_direct_load,
17394 znver1_load_imov_double_load): Add new.
17395 (znver1_insn, znver1_insn_load): Add icmov type.
17396 (znver1_sseavx_fma,
17397 znver1_sseavx_fma_load,
17399 znver1_avx256_fma_load): Fix pipe usage.
17401 2016-02-14 Alan Modra <amodra@gmail.com>
17404 * reload.c (find_reloads_address_1): For pre/post-inc/dec
17405 with an invalid hard reg, reload just the reg not the entire
17406 pre/post-inc/dec address expression.
17408 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
17411 * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
17412 fixed R1_REG scratch reg.
17413 (sibcall_value_pcrel_fdpic): Likewise.
17415 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
17419 * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
17421 2016-02-12 Walter Lee <walt@tilera.com>
17423 * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
17424 * config/tilegx/t-tilegx: Likewise.
17426 2016-02-12 David Malcolm <dmalcolm@redhat.com>
17429 * diagnostic-show-locus.c (struct line_span): New struct.
17430 (layout::get_first_line): Delete.
17431 (layout::get_last_line): Delete.
17432 (layout::get_num_line_spans): New member function.
17433 (layout::get_line_span): Likewise.
17434 (layout::print_heading_for_line_span_index_p): Likewise.
17435 (layout::get_expanded_location): Likewise.
17436 (layout::calculate_line_spans): Likewise.
17437 (layout::m_first_line): Delete.
17438 (layout::m_last_line): Delete.
17439 (layout::m_line_spans): New field.
17440 (layout::layout): Update comment. Replace m_first_line and
17441 m_last_line with m_line_spans, replacing their initialization
17442 with a call to calculate_line_spans.
17443 (diagnostic_show_locus): When printing source lines and
17444 annotations, rather than looping over a single span
17445 of lines, instead loop over each line_span within
17446 the layout, with an inner loop over the lines within them.
17447 Call the context's start_span callback when changing line spans.
17448 * diagnostic.c (diagnostic_initialize): Initialize start_span.
17449 (diagnostic_build_prefix): Break out the building of the location
17450 part of the string into...
17451 (diagnostic_get_location_text): ...this new function, rewriting
17452 it from nested ternary expressions to a sequence of "if"
17454 (default_diagnostic_start_span_fn): New function.
17455 * diagnostic.h (diagnostic_start_span_fn): New typedef.
17456 (diagnostic_context::start_span): New field.
17457 (default_diagnostic_start_span_fn): New prototype.
17459 2016-02-12 David Malcolm <dmalcolm@redhat.com>
17462 * gcc.c (driver::finalize): Fix cleanup of "specs".
17464 2016-02-12 David Malcolm <dmalcolm@redhat.com>
17468 * gcc.c (driver::driver): Initialize m_option_suggestions.
17469 (driver::~driver): Clean up m_option_suggestions.
17470 (suggest_option): Convert to...
17471 (driver::suggest_option): ...this, and split out into
17472 driver::build_option_suggestions and find_closest_string.
17473 (driver::build_option_suggestions): New function, from
17474 first half of suggest_option. Special-case
17475 OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
17476 the sanitizer_opts array. For options of enum types, add the
17477 various enum values to the candidate strings.
17478 (driver::handle_unrecognized_options): Remove "const".
17479 * gcc.h (driver::handle_unrecognized_options): Likewise.
17480 (driver::build_option_suggestions): New decl.
17481 (driver::suggest_option): New decl.
17482 (driver::m_option_suggestions): New field.
17483 * opts-common.c (add_misspelling_candidates): New function.
17484 * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
17485 and make non-static.
17486 * opts.h (sanitizer_opts): New array decl.
17487 (add_misspelling_candidates): New function decl.
17488 * spellcheck.c (find_closest_string): New function.
17489 * spellcheck.h (find_closest_string): New function decl.
17491 2016-02-12 Jakub Jelinek <jakub@redhat.com>
17493 PR rtl-optimization/69764
17494 PR rtl-optimization/69771
17495 * optabs.c (expand_binop_directly): For shift_optab_p, force
17496 convert_modes with VOIDmode if xop1 has VOIDmode.
17498 2016-02-12 Ilya Enkovich <enkovich.gnu@gmail.com>
17501 * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
17502 to correctly determine instrumentation thunks.
17504 2016-02-12 Jakub Jelinek <jakub@redhat.com>
17507 * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
17508 type by reference, force lhs on the call.
17511 * ipa-split.c (split_function): Don't compute/use main_part_return_p.
17512 Compute retval and retbnd early in all cases if split_part_return_p
17513 and return_bb is not EXIT. Remove all clobber stmts and reset
17514 all debug stmts that refer to SSA_NAMEs defined in split part,
17515 except if it is retval, in that case replace the old retval with the
17516 lhs of the call to the split part.
17518 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
17521 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
17523 PR middle-end/66726
17524 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
17525 whose result is used in PHI.
17526 (maybe_optimize_range_tests): Likewise.
17527 (final_range_test_p): Likweise.
17529 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
17531 PR middle-end/66726
17532 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
17533 whose result is used in PHI.
17534 (maybe_optimize_range_tests): Likewise.
17535 (final_range_test_p): Likweise.
17537 2016-02-12 Jakub Jelinek <jakub@redhat.com>
17539 * cgraph.c: Spelling fixes - behaviour -> behavior and
17540 neighbour -> neighbor.
17541 * target.def: Likewise.
17542 * sel-sched.c: Likewise.
17543 * config/mips/mips.c: Likewise.
17544 * config/arc/arc.md: Likewise.
17545 * config/arm/cortex-a57.md: Likewise.
17546 * config/arm/arm.c: Likewise.
17547 * config/arm/neon.md: Likewise.
17548 * config/arm/arm-c.c: Likewise.
17549 * config/vms/vms-c.c: Likewise.
17550 * config/s390/s390.c: Likewise.
17551 * config/i386/znver1.md: Likewise.
17552 * config/i386/i386.c: Likewise.
17553 * config/ia64/hpux-unix2003.h: Likewise.
17554 * config/msp430/msp430.md: Likewise.
17555 * config/rx/rx.c: Likewise.
17556 * config/rx/rx.md: Likewise.
17557 * config/aarch64/aarch64-simd.md: Likewise.
17558 * config/aarch64/aarch64.c: Likewise.
17559 * config/nvptx/nvptx.c: Likewise.
17560 * config/bfin/bfin.c: Likewise.
17561 * config/cris/cris.opt: Likewise.
17562 * config/rs6000/rs6000.c: Likewise.
17563 * target.h: Likewise.
17564 * spellcheck.c: Likewise.
17565 * ira-build.c: Likewise.
17566 * tree-inline.c: Likewise.
17567 * builtins.c: Likewise.
17568 * lra-constraints.c: Likewise.
17569 * explow.c: Likewise.
17570 * hwint.h: Likewise.
17571 * targhooks.c: Likewise.
17572 * tree-vect-data-refs.c: Likewise.
17573 * expr.c: Likewise.
17574 * doc/tm.texi: Likewise.
17575 * doc/extend.texi: Likewise.
17576 * doc/install.texi: Likewise.
17577 * doc/md.texi: Likewise.
17578 * tree-ssa-tail-merge.c: Likewise.
17579 * sched-int.h: Likewise.
17580 * match.pd: Likewise.
17581 * sched-ebb.c: Likewise.
17582 * target.def (omit_struct_return_reg): Likewise.
17583 * gimple-ssa-isolate-paths.c: Likewise.
17584 (find_implicit_erroneous_behaviour): Renamed to...
17585 (find_implicit_erroneous_behavior): ... this.
17586 (find_explicit_erroneous_behaviour): Renamed to...
17587 (find_explicit_erroneous_behavior): ... this.
17588 (gimple_ssa_isolate_erroneous_paths): Adjust caller.
17590 2016-02-11 Segher Boessenkool <segher@kernel.crashing.org>
17592 PR rtl-optimization/64682
17593 PR rtl-optimization/69567
17594 PR rtl-optimization/69737
17595 * combine.c (distribute_notes) <REG_DEAD>: If the register is set
17596 in I2 as well, just lose it.
17598 2016-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17600 * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
17602 (aarch64_last_printed_tune_string): Likewise.
17603 (aarch64_declare_function_name): Only output .arch assembler
17604 directive if it will be different from the previously output
17605 directive. Same for .tune comment but only if -dA is set.
17606 (aarch64_start_file): New function.
17607 (TARGET_ASM_FILE_START): Define.
17609 2016-02-11 David Malcolm <dmalcolm@redhat.com>
17612 * Makefile.in (PLUGIN_HEADERS): Add params.list.
17614 2016-02-11 Jakub Jelinek <jakub@redhat.com>
17617 * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
17618 -Wmaybe-uninitialized warning.
17620 2016-02-11 Oleg Endo <olegendo@gcc.gnu.org>
17623 * config/sh/sh.md (casesi_worker_0): Add T_REG use.
17625 2016-02-11 Richard Biener <rguenther@suse.de>
17627 PR rtl-optimization/69291
17628 * ifcvt.c (noce_try_store_flag_constants): Do not allow
17629 subexpressions affected by changing the result.
17631 2016-02-10 Vladimir Makarov <vmakarov@redhat.com>
17634 * lra-constraints.c (curr_insn_transform): Find in/out operands
17635 for secondary memory moves. Update dups.
17637 2016-02-10 Yuri Rumyantsev <ysrumyan@gmail.com>
17639 PR tree-optimization/69652
17640 * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
17641 to nested loop, did source re-formatting, skip debug statements,
17642 add check on statement with volatile operand, remove dead scalar
17645 2016-02-10 Jakub Jelinek <jakub@redhat.com>
17646 Patrick Palka <ppalka@gcc.gnu.org>
17650 * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
17651 calls if the return type is TREE_ADDRESSABLE.
17652 * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
17653 * ipa-split.c (split_function): Fix doubled "we" in comment.
17654 Use void return type for the split part even if
17655 !split_point->split_part_set_retval.
17657 2016-02-10 Bin Cheng <bin.cheng@arm.com>
17659 PR tree-optimization/68021
17660 * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
17661 when computing the value of biv cand by itself.
17663 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
17665 * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
17666 (cortexa57_tunings): Likewise.
17667 (cortexa72_tunings): Likewise.
17668 (arch_macro_fusion_pair_p): Add support for AES fusion.
17669 * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
17670 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
17671 Allow virtual registers before reload so early scheduling works.
17672 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
17673 correct latency and pipeline.
17674 (cortex_a57_crypto_complex): Likewise.
17675 (cortex_a57_crypto_xor): Likewise.
17676 (define_bypass): Add AES bypass.
17678 2016-02-10 Richard Biener <rguenther@suse.de>
17680 PR tree-optimization/69726
17681 * passes.def: Add DCE pass before late uninit.
17682 * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
17683 really fixup if-conversions job.
17685 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
17687 * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
17688 (arm_cortex_a57_tune): Likewise.
17689 (aarch_macro_fusion_pair_p): Add support for AES fusion.
17690 * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
17692 2016-02-10 Eric Botcazou <ebotcazou@adacore.com>
17694 * timevar.def (TV_PHASE_DBGINFO): Delete.
17695 (TV_PHASE_CHECK_DBGINFO): Likewise.
17696 * varpool.c (varpool_node::assemble_decl): Do not change timevar.
17698 2016-02-10 Richard Biener <rguenther@suse.de>
17700 PR tree-optimization/69719
17701 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
17702 Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
17704 2016-02-09 Andrew Pinski <apinski@cavium.com>
17707 * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
17708 get_vcond_mask_icode returns false.
17710 2016-02-09 Michael Meissner <meissner@linux.vnet.ibm.com>
17713 * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
17714 an ADDIS that adds a pointer to a large constant that sets the
17715 upper16 bits with a load operation.
17717 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
17720 * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
17722 * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
17724 (vzipq_s16): Likewise.
17725 (vzipq_s32): Likewise.
17726 (vzipq_f32): Likewise.
17727 (vzipq_u8): Likewise.
17728 (vzipq_u16): Likewise.
17729 (vzipq_u32): Likewise.
17730 (vzipq_p8): Likewise.
17731 (vzipq_p16): Likewise.
17733 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
17736 * config/arm/arm.c (neon_endian_lane_map): New function.
17737 (neon_vector_pair_endian_lane_map): New function.
17738 (arm_evpc_neon_vuzp): Allow for big endian lane order.
17739 * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
17741 (vuzpq_s16): Likewise.
17742 (vuzpq_s32): Likewise.
17743 (vuzpq_f32): Likewise.
17744 (vuzpq_u8): Likewise.
17745 (vuzpq_u16): Likewise.
17746 (vuzpq_u32): Likewise.
17747 (vuzpq_p8): Likewise.
17748 (vuzpq_p16): Likewise.
17750 2016-02-11 Alexandre Oliva <aoliva@redhat.com>
17753 * regstat.c (regstat_bb_compute_calls_crossed): Disregard
17756 2016-02-09 Uros Bizjak <ubizjak@gmail.com>
17758 * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
17759 truncate const_int operand 1 to QImode.
17761 2016-02-09 Eric Botcazou <ebotcazou@adacore.com>
17763 * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
17764 corresponding to an abnormal edge.
17766 2016-02-09 Tom de Vries <tom@codesourcery.com>
17768 PR tree-optimization/69599
17769 * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
17771 (find_func_aliases_for_builtin_call, find_func_clobbers)
17772 (ipa_pta_execute): Handle case that foo and foo._0 are not in same lto
17775 2016-02-09 Richard Biener <rguenther@suse.de>
17777 PR tree-optimization/69715
17778 * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
17779 LHS on calls as non-rewritable.
17781 2016-02-09 Tom de Vries <tom@codesourcery.com>
17784 * lto-wrapper.c (append_diag_options): New function.
17785 (compile_offload_image): Call append_diag_options.
17787 2016-02-08 Sandra Loosemore <sandra@codesourcery.com>
17790 * doc/extend.texi (Flag Output Operands): Correct sectioning.
17791 Minor copy-edit to fix verb tenses.
17793 2016-02-08 Jakub Jelinek <jakub@redhat.com>
17795 PR tree-optimization/69209
17796 * ipa-split.c (split_function): If split part is not
17797 returning retval, retval has gimple type but is not
17798 gimple value, force it into a SSA_NAME first.
17800 2016-02-08 Nicklas Bo Jensen <nbjensen@gmail.com>
17802 * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
17805 2016-02-08 Jason Merrill <jason@redhat.com>
17808 * convert.c (convert_to_integer_1): Check dofold on truncation
17810 (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
17811 (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
17812 Rename from *_nofold.
17813 * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
17814 (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
17816 2016-02-08 Bernd Schmidt <bschmidt@redhat.com>
17819 * tree.c (build_common_tree_nodes): Remove short_double argument.
17820 All callers changed.
17821 * tree.h (build_common_tree_nodes): Adjust declaration.
17822 * doc/invoke.texi (-fshort-double): Remove documentation.
17823 * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
17824 MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
17825 * lto-wrapper.c (merge_and_complain, append_compiler_options)
17826 (append_linker_options): Don't handle OPT_fshort_double.
17828 PR rtl-optimization/68730
17829 * lra-remat.c (insn_to_cand_activation): New static variable.
17830 (lra_remat): Allocate and free it.
17831 (create_cand): New arg activation. Initialize a field in
17832 insn_to_cand_activation if it is nonnull.
17833 (create_cands): Pass the activation insn to create_cand when making
17834 a candidate involving an output reload. Reorganize code a little.
17835 (do_remat): Keep track of active status of candidates in a separate
17838 2016-02-08 Richard Biener <rguenther@suse.de>
17840 PR tree-optimization/69719
17841 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
17842 Properly use absolute of the difference of the two offsets to
17843 compare or adjust the segment length.
17845 2016-02-08 Richard Biener <rguenther@suse.de>
17846 Jeff Law <law@redhat.com>
17849 * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
17850 types for anonymous SSA names.
17852 2016-02-08 Richard Biener <rguenther@suse.de>
17854 PR rtl-optimization/69274
17855 * ira.c (ira_setup_alts): Do not change recog_data.operand order.
17857 2016-02-08 Jeff Law <law@redhat.com>
17859 PR tree-optimization/65917
17860 * tree-ssa-dom.c (record_temporary_equivalences): Record both
17861 equivalences from if (x == y) style conditionals.
17862 (loop_depth_of_name): Remove.
17863 (record_equality): Remove loop depth check.
17864 * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
17865 (const_and_copies::record_const_or_copy_raw): New member function.
17866 * tree-ssa-scopedtables.c
17867 (const_and_copies::record_const_or_copy_raw): New, factored out of
17868 (const_and_copies::record_const_or_copy): Call new member function.
17870 2016-02-05 Jeff Law <law@redhat.com>
17872 PR tree-optimization/68541
17873 * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
17874 (count_stmts_in_block): New function.
17875 (poor_ifcvt_candidate_code): Likewise.
17876 (is_feasible_trace): Add some heuristics to determine when path
17877 splitting is profitable.
17878 (find_block_to_duplicate_for_splitting_paths): Make sure the graph
17879 is a diamond with a single exit.
17881 2016-02-05 Martin Sebor <msebor@redhat.com>
17884 * doc/invoke.texi: Update -Wplacement-new to take an optional
17887 2016-02-06 Richard Henderson <rth@redhat.com>
17890 * tree.c (tree_nop_conversion_p): Do not strip casts into or
17891 out of non-standard address spaces.
17893 2016-02-05 Jakub Jelinek <jakub@redhat.com>
17895 PR rtl-optimization/69691
17896 * lra-eliminations.c (move_plus_up): Don't add the addend twice.
17898 2016-02-05 Pat Haugen <pthaugen@us.ibm.com>
17900 * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
17901 * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
17902 (*ieee128_mfvsrd_64bit): Likewise.
17903 (*ieee128_mfvsrd_32bit): Likewise.
17905 2016-02-05 Ilya Enkovich <enkovich.gnu@gmail.com>
17909 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
17911 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
17912 instrumented_version.
17914 2016-01-05 Jeremy Bennett <jeremy.bennett@embecosm.com>
17916 * doc/invoke.texi (Optimize Options): In table of --param options
17917 rename second occurrence of tracer-min-branch-ratio to
17918 tracer-min-branch-probability, rename
17919 tracer-min-branch-ratio-feedback to
17920 tracer-min-branch-probability-feedback and clarify description,
17921 rename sched-spec-state-edge-prob-cutoff to
17922 sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
17923 to selsched-insns-to-rename, rename lto-minpartition to
17924 lto-min-partition, delete reorder-blocks-duplicate and
17925 reorder-blocks-duplicate-feedback.
17927 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17929 * config/s390/s390.c (s390_register_info_set_ranges): Remove
17932 2016-02-05 Dominik Vogt <vogt@linux.vnet.ibm.com>
17934 * doc/extend.texi: S/390: Correct some typos.
17936 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17938 * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
17940 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17943 * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
17944 (s390_register_info_gprtofpr): Use new macros above.
17945 (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
17947 (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
17948 its name. Adjust restore and save gpr ranges.
17949 (s390_register_info_set_ranges): New function.
17950 (s390_register_info): Use new macros above. Call
17951 s390_register_info_set_ranges.
17952 (s390_optimize_register_info): Likewise.
17953 (s390_hard_regno_rename_ok): Use new macros.
17954 (s390_hard_regno_scratch_ok): Likewise.
17955 (s390_emit_epilogue): Likewise.
17956 (s390_can_use_return_insn): Likewise.
17957 (s390_optimize_prologue): Likewise.
17958 * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
17960 2016-02-05 Jakub Jelinek <jakub@redhat.com>
17963 * config/i386/i386.c (convert_scalars_to_vector): Readd stack
17965 (ix86_option_override_internal): Disable TARGET_STV even for
17966 -m{incoming,preferred}-stack-boundary=3.
17968 2016-02-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17970 * config.gcc: Mark deprecated rtems targets as obsolete.
17972 2016-02-04 Segher Boessenkool <segher@kernel.crashing.org>
17974 PR rtl-optimization/64682
17975 PR rtl-optimization/69567
17976 * combine.c (distribute_notes) <REG_DEAD>: Place the death note
17977 before I2 only if the register is both used and set in I2.
17979 2016-02-04 DJ Delorie <dj@redhat.com>
17981 * config/msp430/msp430.c (msp430_start_function): Add function type.
17983 2016-02-04 Jakub Jelinek <jakub@redhat.com>
17986 * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
17988 2016-02-04 Uros Bizjak <ubizjak@gmail.com>
17990 PR rtl-optimization/69577
17992 2015-10-29 Richard Henderson <rth@redhat.com>
17996 * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
17997 sse check to the exact conditions of PR 67609.
17999 2016-02-04 Michael Meissner <meissner@linux.vnet.ibm.com>
18002 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
18003 instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
18004 not allowed into the traditional Altivec registers.
18005 (movtd_64bit_nodm): Likewise.
18006 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
18008 2016-02-04 David Malcolm <dmalcolm@redhat.com>
18010 * config/aarch64/cortex-a57-fma-steering.c
18011 (aarch64_register_fma_steering): Remove "static" from arguments
18014 2016-02-04 Wilco Dijkstra <wdijkstr@arm.com>
18017 * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
18018 twice when complex.
18020 2016-02-04 Mike Frysinger <vapier@gentoo.org>
18022 * doc/invoke.texi: Delete -mno-fma4.
18024 2016-02-04 Richard Sandiford <richard.sandiford@arm.com>
18026 PR rtl-optimization/69577
18027 * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
18028 (find_subregs_of_mode): Update accordingly. Iterate over partial
18031 2016-02-04 Alan Lawrence <alan.lawrence@arm.com>
18033 * config/arm/arm-protos.h (neon_reinterpret): Remove.
18034 * config/arm/arm.c (neon_reinterpret): Remove.
18035 * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
18036 vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
18037 vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
18038 vreinterpretti): Remove.
18039 * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
18040 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
18041 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
18042 neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
18043 neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
18044 neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
18045 * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
18046 vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
18047 vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
18048 vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
18049 vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
18050 vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
18051 vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
18052 vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
18053 vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
18054 vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
18055 vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
18056 vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
18057 vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
18058 vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
18059 vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
18060 vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
18061 vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
18062 vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
18063 vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
18064 vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
18065 vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
18066 vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
18067 vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
18068 vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
18069 vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
18070 vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
18071 vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
18072 vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
18073 vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
18074 vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
18075 vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
18076 vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
18077 vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
18078 vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
18079 vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
18080 vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
18081 vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
18082 vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
18083 vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
18084 vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
18085 vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
18086 vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
18087 vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
18088 vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
18089 vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
18090 vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
18091 vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
18092 vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
18093 vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
18094 vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
18095 vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
18096 vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
18097 vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
18098 vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
18099 vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
18100 vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
18101 vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
18102 vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
18103 vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
18104 vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
18105 vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
18106 vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
18107 vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
18108 vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
18109 vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
18110 vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
18111 vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
18112 vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
18113 vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
18114 vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
18115 vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
18116 vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
18117 vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
18118 vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
18119 vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
18120 vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
18121 vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
18122 vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
18123 vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
18124 vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
18125 vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
18126 vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
18127 vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
18128 vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
18129 vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
18130 vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
18131 vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
18132 vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
18133 vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
18134 vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
18135 vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
18136 vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
18137 vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
18138 vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
18139 vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
18140 vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
18141 vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
18143 2016-02-04 Martin Liska <mliska@suse.cz>
18146 * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
18147 that are gimple_store_p.
18148 (maybe_instrument_call): Likewise.
18150 2016-02-04 Bin Cheng <bin.cheng@arm.com>
18152 * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
18153 register scaling out of memory reference and comment why.
18155 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18159 * cse.c (cse_insn): Pass NULL to fold_rtx when initially
18160 folding the source of a SET.
18162 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18166 * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
18167 the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
18169 2016-02-04 Jim Wilson <jim.wilson@linaro.org>
18173 * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
18176 2016-02-04 Christian Bruel <christian.bruel@st.com>
18178 * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
18179 * config/arm/arm.c (arm_set_current_function): Likewise.
18181 2016-02-04 Jakub Jelinek <jakub@redhat.com>
18182 Ilya Enkovich <enkovich.gnu@gmail.com>
18183 H.J. Lu <hongjiu.lu@intel.com>
18186 * config/i386/i386.c (convert_scalars_to_vector): Remove
18187 stack alignment fixes.
18188 (ix86_option_override_internal): Disable TARGET_STV if stack
18189 might not be aligned enough.
18190 (ix86_minimum_alignment): Assert that TARGET_STV is false.
18192 2016-02-04 Victoria Stepanyan <victoria.stepanyan@amd.com>
18194 * config/i386/x86-tune.def: Disable default prefetching
18197 2016-02-03 Michael Meissner <meissner@linux.vnet.ibm.com>
18198 Vladimir Makarov <vmakarov@redhat.com>
18201 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
18202 in validating fused toc addresses.
18204 2016-02-03 Jakub Jelinek <jakub@redhat.com>
18207 * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
18208 range->m_caret fields if range->m_show_caret_p is false.
18211 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
18212 Force oldval into register if it does not satisfy reg_or_short_operand
18213 predicate. Fix up formatting.
18215 2016-02-03 Vladimir Makarov <vmakarov@redhat.com>
18216 Alexandre Oliva <aoliva@redhat.com>
18219 * lra-constraints.c (simplify_operand_subreg): Check additionally
18220 address validity after potential reloading.
18221 (process_address_1): Check insns validity. In case of failure do
18224 2016-02-03 Kirill Yukhin <kirill.yukhin@intel.com>
18227 * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
18230 2016-02-02 Jakub Jelinek <jakub@redhat.com>
18232 * wide-int.cc (canonize_uhwi): New function.
18233 (wi::divmod_internal): Use it.
18235 2016-02-02 James Norris <jnorris@codesourcery.com
18237 * gimplify.c (omp_notice_variable): Add usage check.
18239 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
18241 * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
18242 like LE, GE, LT, GT when emitting relational operator.
18244 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
18246 * ira-costs.c (find_costs_and_classes): Add extra argument.
18247 * target.def (ira_change_pseudo_allocno_class): Add parameter.
18248 * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
18249 * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
18250 * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
18251 Add best_class parameter, and return it if not ALL_REGS.
18252 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
18254 * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
18255 Update target hook.
18257 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
18259 * config/aarch64/aarch64.c
18260 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
18261 (aarch64_ira_change_pseudo_allocno_class): New function.
18263 2016-02-02 Uros Bizjak <ubizjak@gmail.com>
18266 * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
18268 2016-02-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
18270 * config/avr/avr.c (avr_option_override): Set
18271 PARAM_ALLOW_STORE_DATA_RACES to 1.
18273 2016-02-02 Richard Biener <rguenther@suse.de>
18275 PR tree-optimization/69595
18276 * match.pd: Add range test simplifications to true/false.
18278 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
18280 * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
18281 * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
18284 2016-02-02 Richard Biener <rguenther@suse.de>
18286 PR tree-optimization/69606
18287 * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
18288 info on the result before moving a stmt.
18290 2016-02-02 Yuri Rumyantsev <ysrumyan@gmail.com>
18292 PR middle-end/68542
18293 * config/i386/i386.c (ix86_expand_branch): Add support for conditional
18294 branch with vector comparison.
18295 * config/i386/sse.md (VI48_AVX): New mode iterator.
18296 (define_expand "cbranch<mode>4): Add support for conditional branch
18297 with vector comparison.
18298 * tree-vect-loop.c (optimize_mask_stores): New function.
18299 * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
18300 has_mask_store field of vect_info.
18301 * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
18302 vectorized loops having masked stores after vec_info destroy.
18303 * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
18304 correspondent macros.
18305 (optimize_mask_stores): Add prototype.
18307 2016-02-02 Alan Modra <amodra@gmail.com>
18310 * config/rs6000/predicates.md (quad_int_reg_operand): Don't
18313 2016-02-02 Alan Modra <amodra@gmail.com>
18316 * config/rs6000/rs6000.c (need_toc_init): New var, set it
18317 whenever toc_label_name used.
18318 (rs6000_file_start): Don't set up toc section here,
18319 (rs6000_output_function_epilogue): do so here instead,
18320 (rs6000_xcoff_file_start): and here.
18321 * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
18322 (load_toc_aix_di): Likewise.
18324 2016-02-01 Jakub Jelinek <jakub@redhat.com>
18326 PR rtl-optimization/69592
18327 * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
18328 (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
18329 (num_sign_bit_copies_binary_arith_p): New inline function.
18330 (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
18332 2016-02-01 Jeff Law <law@redhat.com>
18334 PR tree-optimization/69580
18335 * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
18336 * tree-ssa-threadbackward.c
18337 (fsm_find_control_statement_thread_paths): Do not try to walk
18338 through large PHI nodes.
18340 2016-02-01 Jakub Jelinek <jakub@redhat.com>
18342 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
18343 when count is incremented above limit, don't analyze further
18346 * omp-low.c (oacc_parse_default_dims): Avoid
18347 -Wsign-compare warning, make sure value fits into int
18348 rather than just unsigned int.
18350 2016-02-01 Bin Cheng <bin.cheng@arm.com>
18352 PR tree-optimization/67921
18353 * fold-const.c (split_tree): New parameters. Convert pointer
18354 type variable part to proper type before negating.
18355 (fold_binary_loc): Pass new arguments to split_tree.
18357 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
18359 * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
18360 (nvptx_goacc_validate_dims): Extend to handle global defaults.
18361 * target.def (OACC_VALIDATE_DIMS): Extend documentation.
18362 * doc/tm.texti: Rebuilt.
18363 * doc/invoke.texi (fopenacc-dim): Document.
18364 * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
18365 (append_compiler_options): Likewise.
18366 * omp-low.c (oacc_default_dims, oacc_min_dims): New.
18367 (oacc_parse_default_dims): New.
18368 (oacc_validate_dims): Add USED arg. Select non-unity default when
18370 (oacc_loop_fixed_partitions): Return mask of used partitions.
18371 (oacc_loop_auto_partitions): Emit dump info.
18372 (oacc_loop_partition): Return mask of used partitions.
18373 (execute_oacc_device_lower): Parse default dimension arg. Adjust
18374 loop partitioning and validation calls.
18376 2016-02-01 Richard Biener <rguenther@suse.de>
18378 PR middle-end/69556
18379 * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
18381 2016-02-01 Richard Biener <rguenther@suse.de>
18383 PR tree-optimization/69574
18384 * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
18385 of asserting return chrec_dont_know.
18387 2016-02-01 Martin Liska <mliska@suse.cz>
18389 * mem-stats-traits.h: Add copyright header.
18390 * mem-stats.h: Likewise.
18392 2016-02-01 Richard Biener <rguenther@suse.de>
18394 PR tree-optimization/69579
18395 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
18396 Do not propagate through abnormal PHI results.
18398 2016-02-01 Eric Botcazou <ebotcazou@adacore.com>
18400 * postreload.c (reload_cse_simplify): Remove dead code.
18402 2016-02-01 Jakub Jelinek <jakub@redhat.com>
18404 PR rtl-optimization/69570
18405 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
18406 if there is more than one set, not if there is a single set.
18408 2016-02-01 Richard Henderson <rth@redhat.com>
18411 * combine.c (make_compound_operation): When looking through a
18412 subreg, make sure to re-extend to the width of the outer mode.
18414 2016-01-30 Jakub Jelinek <jakub@redhat.com>
18416 PR tree-optimization/69546
18417 * wide-int.cc (wi::divmod_internal): For unsigned division
18418 where both operands fit into uhwi, if o1 is 1 and o0 has
18419 msb set, if divident_prec is larger than bits per hwi,
18420 clear another quotient word and return 2 instead of 1.
18421 Similarly for remainder with msb in HWI set, if dividend_prec
18422 is larger than bits per hwi.
18424 2016-01-29 Martin Jambor <mjambor@suse.cz>
18426 * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
18427 Use short lowercase names.
18428 (get_memory_order): Mask with MEMMODEL_BASE_MASK. Support
18429 MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
18430 acq_rel one. Protect warning agains segfaults if
18431 get_memory_order_name returns NULL.
18432 (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
18433 with release semantics. Do not warn if get_memory_order already did.
18434 (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
18435 semantics. Fix check for relaxed or acquire semantics. Do not warn
18436 if get_memory_order already did.
18438 2016-01-29 Sebastian Pop <s.pop@samsung.com>
18440 * doc/install.texi: Document that isl-0.16 is supported.
18442 2016-01-29 Vladimir Makarov <vmakarov@redhat.com>
18445 * config/i386/constraints.md (Bm): Describe as special memory
18447 * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
18448 * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
18449 * genpreds.c (struct constraint_data): Add is_special_memory.
18450 (have_special_memory_constraints, special_memory_start): New
18452 (special_memory_end): Ditto.
18453 (add_constraint): Add new arg is_special_memory. Add code to
18454 process its true value. Update have_special_memory_constraints.
18455 (process_define_constraint): Pass the new arg.
18456 (process_define_register_constraint): Ditto.
18457 (choose_enum_order): Process special memory.
18458 (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
18459 function insn_extra_special_memory_constraint.
18460 (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
18461 * gensupport.c (process_rtx): Process
18462 DEFINE_SPECIAL_MEMORY_CONSTRAINT.
18463 * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
18464 * ira-lives.c (single_reg_class): Use
18465 insn_extra_special_memory_constraint.
18466 * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
18467 * lra-constraints.c (process_alt_operands): Ditto.
18468 (curr_insn_transform): Use insn_extra_special_memory_constraint.
18469 * recog.c (asm_operand_ok, preprocess_constraints): Process
18471 * reload.c (find_reloads): Ditto.
18472 * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
18473 * stmt.c (parse_input_constraint): Use
18474 insn_extra_special_memory_constraint.
18476 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
18479 * lra-splill.c (lra_final_code_change): Revert r229087 by
18480 removing all sub-registers.
18482 2016-01-29 Steve Ellcey <sellcey@imgtec.com>
18485 * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
18487 2016-01-29 Jakub Jelinek <jakub@redhat.com>
18490 * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
18491 SSE1, copy target into the temporary reg first before recursing
18494 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
18496 * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
18499 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
18501 * ginclude/stdarg.h: Test __cplusplus instead of
18502 __GXX_EXPERIMENTAL_CXX0X__.
18504 2016-01-29 Richard Biener <rguenther@suse.de>
18506 PR tree-optimization/69547
18507 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
18508 Do not mark clobbers necessary.
18509 (mark_all_reaching_defs_necessary_1): Likewise.
18511 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
18513 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
18514 declaration name with %qs and print it in both error messages.
18515 Also fix indentation.
18517 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
18520 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
18521 trailing blank line from error message.
18523 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
18526 * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
18529 2016-01-29 Richard Biener <rguenther@suse.de>
18531 PR middle-end/69537
18532 * match.pd: Allow all integral types when simplifying a
18533 widening or sign-changing conversion.
18535 2016-01-28 Sebastian Pop <s.pop@samsung.com>
18537 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
18538 back to setting codegen_error to fail codegen.
18540 2016-01-28 Uros Bizjak <ubizjak@gmail.com>
18543 * config/i386/constraints.md (C): Only accept constant zero operand.
18544 (BC): New constraint.
18545 * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
18546 instead of C constraint.
18547 * doc/md.texi (Machine Constraints): Update description
18550 2016-01-28 Steve Ellcey <sellcey@imgtec.com>
18553 * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
18555 2016-01-28 Jakub Jelinek <jakub@redhat.com>
18557 PR middle-end/69542
18558 * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
18561 2016-01-28 Pat Haugen <pthaugen@us.ibm.com>
18563 * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
18564 branches if using guessed profile.
18566 2016-01-28 H.J. Lu <hongjiu.lu@intel.com>
18568 * graphite-optimize-isl.c (optimize_isl): Fix dump.
18570 2016-01-28 Richard Henderson <rth@redhat.com>
18573 * config/aarch64/aarch64-modes.def (CC_Cmode): New
18574 * config/aarch64/aarch64-protos.h: Update.
18575 * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
18576 (aarch64_select_cc_mode): Add check for use of CC_Cmode.
18577 (aarch64_get_condition_code_1): Handle CC_Cmode.
18578 * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
18579 (*add<mode>3_compareC_cconly_imm): New.
18580 (*add<mode>3_compareC_cconly): New.
18581 (*add<mode>3_compareC_imm): New.
18582 (add<mode>3_compareC): New.
18583 (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
18584 to be first. Use aarch64_carry_operation.
18585 (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
18586 (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
18587 (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
18588 (subti3): Use subdi3_compare1.
18589 (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
18590 (sub<mode>3_compare1): New.
18591 (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
18592 (*sub<mode>3_carryin): Use aarch64_borrow_operation.
18593 (*subsi3_carryin_uxtw): Likewise.
18594 (*ngc<mode>, *ngcsi_uxtw): Likewise.
18595 (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
18596 * config/aarch64/iterators.md (DWI): New.
18597 * config/aarch64/predicates.md (aarch64_carry_operation): New.
18598 (aarch64_borrow_operation): New.
18600 2016-01-28 Abderrazek Zaafrani <a.zaafrani@samsung.com>
18602 * graphite-optimize-isl.c (optimize_isl): Print a different debug
18603 message when isl does not return a valid schedule.
18605 2016-01-28 Sebastian Pop <s.pop@samsung.com>
18607 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
18608 Remove comments from class declarations: they are already in the code
18611 2016-01-28 Sebastian Pop <s.pop@samsung.com>
18613 * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
18615 (ternary_op_to_tree): Same.
18616 (unary_op_to_tree): Same.
18617 (nary_op_to_tree): Same.
18618 (gcc_expression_from_isl_expr_op): Same.
18619 (gcc_expression_from_isl_expression): Same.
18620 (graphite_create_new_loop): Same.
18621 (graphite_create_new_loop_guard): Same.
18622 (build_iv_mapping): Same.
18623 (graphite_create_new_guard): Same.
18624 (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
18625 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
18627 2016-01-28 Sebastian Pop <s.pop@samsung.com>
18629 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
18630 instead of setting codegen_error to fail codegen.
18632 2016-01-28 Jason Merrill <jason@redhat.com>
18634 * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
18636 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
18638 * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
18639 Remove CONST_INT_P check in CCMP cost calculation.
18641 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
18643 * config/aarch64/aarch64.c (generic_vector_cost):
18644 Set vec_permute_cost.
18645 (cortexa57_vector_cost): Likewise.
18646 (exynosm1_vector_cost): Likewise.
18647 (xgene1_vector_cost): Likewise.
18648 (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
18649 * config/aarch64/aarch64-protos.h (cpu_vector_cost):
18650 Add vec_permute_cost entry.
18652 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
18654 * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
18656 (add<mode>3_compare0): Likewise.
18657 (addsi3_compare0_uxtw): Likewise.
18658 (add<mode>3nr_compare0): Likewise.
18659 (compare_neg<mode>): Likewise.
18660 (<optab><mode>3): Likewise.
18662 2016-01-28 Ilya Enkovich <enkovich.gnu@gmail.com>
18664 * tree-vect-stmts.c (vectorizable_comparison): Add
18665 NULL check for vectype.
18667 2016-01-28 Richard Biener <rguenther@suse.de>
18669 PR tree-optimization/69466
18670 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
18671 Account for PHIs we couldn't duplicate.
18673 2016-01-28 Martin Liska <mliska@suse.cz>
18676 * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
18677 instead of ENABLE_VALGRIND_CHECKING.
18679 2016-01-27 Richard Henderson <rth@redhat.com>
18682 * lra-remat.c (subreg_regs): New.
18683 (dump_candidates_and_remat_bb_data): Dump it.
18684 (operand_to_remat): Reject if operand in subreg_regs.
18685 (set_bb_regs): Collect subreg_regs.
18686 (lra_remat): Init and free subreg_regs. Compute
18687 calculate_local_reg_remat_bb_data before create_cands.
18689 2016-01-27 H.J. Lu <hongjiu.lu@intel.com>
18692 * config/i386/i386.c (ix86_update_stack_boundary): Don't
18693 change stack_alignment_needed for __tls_get_addr call.
18695 2016-01-27 Segher Boessenkool <segher@kernel.crashing.org>
18697 * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
18699 2016-01-27 Jeff Law <law@redhat.com>
18701 PR tree-optimization/68398
18702 PR tree-optimization/69196
18703 * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
18704 (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
18705 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
18706 Only count PHIs in the last block in the path. The others will
18707 const/copy propagate away. Add heuristic to allow more irreducible
18708 subloops to be created when it is likely profitable to do so.
18710 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
18711 Fix typo in comment. Use gsi_after_labels and remove the GIMPLE_LABEL
18712 check from within the loop. Use gsi_next_nondebug rather than gsi_next.
18714 2016-01-27 Jakub Jelinek <jakub@redhat.com>
18717 * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
18718 END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
18719 * asan.c (DEF_BUILTIN_STUB): Temporarily define.
18720 * tree-streamer-in.c: Include asan.h.
18721 (streamer_get_builtin_tree): For builtins in sanitizer
18722 range call initialize_sanitizer_builtins and retry.
18724 2016-01-27 Ian Lance Taylor <iant@google.com>
18726 * common.opt (fkeep-gc-roots-live): New undocumented option.
18727 * tree-ssa-loop-ivopts.c (add_candidate_1): If
18728 -fkeep-gc-roots-live, skip pointers.
18729 (add_iv_candidate_for_biv): Handle add_candidate_1 returning
18732 2016-01-27 Uros Bizjak <ubizjak@gmail.com>
18735 * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
18736 (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
18738 2016-01-27 Thomas Klausner <wiz@NetBSD.org>
18741 * configure.ac: NetBSD provides SSP in its C library.
18742 * configure: Updated.
18744 2016-01-27 Richard Biener <rguenther@suse.de>
18746 PR tree-optimization/69166
18747 * tree-vect-loop.c (vect_is_simple_reduction): Always check
18748 reduction code for commutativity / associativity.
18750 2016-01-27 Martin Jambor <mjambor@suse.cz>
18752 PR tree-optimization/69355
18753 * tree-sra.c (analyze_access_subtree): Correct hole detection when
18754 total_scalarization fails.
18756 2016-01-27 David Edelsohn <dje.gcc@gmail.com>
18758 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
18761 2016-01-27 Christian Bruel <christian.bruel@st.com>
18764 * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
18765 Move arm_reset_previous_fndecl and set_target_option_current_node in
18766 the conditional part. Call save_restore_target_globals.
18767 * config/arm/arm.c (arm_set_current_function):
18768 Refactor to better support #pragma target and attribute mix.
18769 Call save_restore_target_globals.
18770 * config/arm/arm-protos.h (save_restore_target_globals): New function.
18772 2016-01-27 Martin Liska <mliska@suse.cz>
18774 * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
18775 reference for an HSA kernel and its host function.
18777 2016-01-27 Jakub Jelinek <jakub@redhat.com>
18779 PR tree-optimization/69399
18780 * wide-int.h (wi::lrshift): For larger precisions, only
18781 use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
18783 2016-01-27 Claudiu Zissulescu <claziss@synopsys.com>
18785 * config/arc/predicates.md (proper_comparison_operator): Reject
18786 constant-constant comparison.
18788 2016-01-26 Tom de Vries <tom@codesourcery.com>
18790 PR tree-optimization/69110
18791 * tree-data-ref.c (initialize_data_dependence_relation): Handle
18792 DR_NUM_DIMENSIONS == 0.
18794 2016-01-26 Abderrazek Zaafrani <a.zaafrani@samsung.com>
18795 Sebastian Pop <s.pop@samsung.com>
18797 * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
18798 isl_ast_op_cond and isl_ast_op_select.
18799 (gcc_expression_from_isl_expr_op): Same.
18801 2016-01-26 Jason Merrill <jason@redhat.com>
18804 * tree.c (recompute_constructor_flags): Split out from
18806 (verify_constructor_flags): New.
18807 * tree.h: Declare them.
18809 2016-01-26 Iain Buclaw <ibuclaw@gdcproject.org>
18811 PR rtl-optimization/69217
18812 * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
18813 are no TYPE_FIELDS set for the record type.
18815 2016-01-26 Jakub Jelinek <jakub@redhat.com>
18818 * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
18819 toc_label_name unconditionally.
18820 (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
18821 SYMBOL_REF string. Use toc_label_name instead of constructing
18823 (rs6000_elf_declare_function_name): Use toc_label_name instead of
18824 constructing LCTOC1.
18826 2016-01-26 Martin Sebor <msebor@redhat.com>
18829 * doc/extend.texi (Common Type Attributes): Move text that talks about
18830 attribute packed from attribute aligned to the section discussing
18831 the former attribute for clarity.
18833 2016-01-26 Richard Henderson <rth@redhat.com>
18835 PR middle-end/60908
18836 * trans-mem.c (tm_region_init): Mark entry block as visited.
18838 2016-01-26 David Malcolm <dmalcolm@redhat.com>
18841 * diagnostic-show-locus.c (layout::print_source_line): Replace
18842 call to pp_newline with call to layout::print_newline.
18843 (layout::print_annotation_line): Likewise.
18844 (layout::move_to_column): Likewise.
18845 (layout::print_any_fixits): After printing any fixits, print a
18846 trailing newline, if necessary.
18847 (layout::print_newline): New method, resetting any colorization
18849 (diagnostic_show_locus): Move the pp_newline to before the
18850 early bailout. Remove dummy block enclosing the layout instance.
18851 * diagnostic.c (default_diagnostic_finalizer): Replace invocation
18852 of pp_newline_and_flush with pp_flush.
18853 (diagnostic_append_note): Delete use of pp_newline.
18854 (diagnostic_append_note_at_rich_loc): Delete.
18855 * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
18856 * pretty-print.h (output_buffer_append_r): Reset buff->line_length
18857 when newline characters are added to the buffer.
18859 2016-01-26 Michael Matz <matz@suse.de>
18861 * configure.ac (ac_cv_std_swap_in_utility): New test.
18862 * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
18863 * configure: Regenerate.
18864 * config.in: Regenerate.
18866 2016-01-26 Claudiu Zissulescu <claziss@synopsys.com>
18868 * config/arc/arc.md (cstoresi4): Force operand into register.
18869 (arcset<code>): Fix predicate.
18870 (arcsetltu): Likewise.
18871 (arcsetgeu): Likewise.
18872 (arcsethi): Likewise.
18873 (arcsetls): Likewise.
18875 2016-01-26 Jakub Jelinek <jakub@redhat.com>
18877 PR tree-optimization/69483
18878 * gimple-fold.c (canonicalize_constructor_val): Return NULL
18879 if base has error_mark_node type.
18881 2016-01-26 Christophe Lyon <christophe.lyon@linaro.org>
18884 * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
18885 * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
18887 (vget_lane_f16): Handle big-endian.
18888 (vgetq_lane_f16): Likewise.
18889 (vset_lane_f16): Likewise.
18890 (vsetq_lane_f16): Likewise.
18891 * config/arm/iterators.md (VQXMOV): Add V8HF.
18892 (VDQ): Add V4HF and V8HF.
18893 (V_reg): Handle V4HF and V8HF.
18894 (Is_float_mode): Likewise.
18895 * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
18896 neon_vdup_nv8hf): New patterns.
18897 (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
18898 Use VD_LANE iterator.
18899 (neon_vld1_dup<mode>): Use VQ2 iterator.
18901 2016-01-26 Nathan Sidwell <nathan@acm.org>
18903 * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
18904 (set_oacc_fn_attrib): Add IS_KERNEL arg.
18905 * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
18906 (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
18907 (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
18908 (oacc_validate_dims): Add LEVEL arg, don't return level.
18909 (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
18910 oacc_validate_dims.
18911 (execute_oacc_device_lower): Adjust, add more dump output.
18912 * tree-ssa-loop.c (gate_oacc_kernels): Use
18913 oacc_fn_attrib_kernels_p.
18914 * tree-parloops.c (create_parallel_loop): Adjust
18915 set_oacc_fn_attrib call.
18917 2016-01-26 Jakub Jelinek <jakub@redhat.com>
18920 * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
18921 (append_compiler_options): Handle -fcilkplus.
18922 (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
18924 2016-01-26 Nick Clifton <nickc@redhat.com>
18927 * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
18928 been marked as DECL_ONE_ONLY but we do not the means to make it
18929 so, then do not allow it to bind locally.
18931 2016-01-26 Jakub Jelinek <jakub@redhat.com>
18934 * opts.h (parse_sanitizer_options): New prototype.
18935 * opts.c (sanitizer_opts): New array.
18936 (parse_sanitizer_options): New function.
18937 (common_handle_option): Use parse_sanitizer_options.
18939 2016-01-26 H.J. Lu <hongjiu.lu@intel.com>
18942 * config/i386/i386.c (ix86_compute_frame_layout): Move stack
18943 alignment adjustment to ...
18944 (ix86_update_stack_boundary): Here. Don't over-align stack for
18946 (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
18947 if __tls_get_addr is called.
18949 2016-01-26 Christian Bruel <christian.bruel@st.com>
18951 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
18953 2016-01-26 Eric Botcazou <ebotcazou@adacore.com>
18955 * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
18957 2016-01-26 Richard Biener <rguenther@suse.de>
18959 PR middle-end/69467
18960 * match.pd: Guard X * CST CMP 0 pattern with single_use.
18962 2016-01-26 Richard Biener <rguenther@suse.de>
18964 PR tree-optimization/69452
18965 * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
18966 (move_computations_dom_walker::before_dom_children): Rename
18968 (move_computations_worker): This.
18969 (move_computations): Perform an RPO rather than a DOM walk.
18971 2016-01-26 Jakub Jelinek <jakub@redhat.com>
18974 * combine.c (combine_instructions): For REG_EQUAL note with
18975 SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
18976 to the underlying register.
18977 * doc/rtl.texi (REG_EQUAL): Document the behavior of
18978 REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
18980 2016-01-26 Roger Ferrer Ibáñez <rofirrim@gmail.com>
18983 * config/aarch64/aarch64-builtins.c
18984 (aarch64_init_simd_builtin_types): Do not set structural
18985 equality to __Poly{8,16,64,128}_t types.
18987 2016-01-26 Richard Sandiford <richard.sandiford@arm.com>
18989 PR tree-optimization/69400
18990 * wide-int.cc (wi_pack): Take the precision as argument and
18991 perform canonicalization here rather than in the callers.
18992 Use the main loop to handle all full-width HWIs. Add a
18993 zero HWI if in_len isn't a full result.
18994 (wi::divmod_internal): Update accordingly.
18995 (wi::mul_internal): Likewise. Simplify.
18997 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
18998 Sebastian Pop <s.pop@samsung.com>
19000 * graphite-poly.c (apply_poly_transforms): Simplify.
19001 (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
19002 (print_isl_map): Same.
19003 (print_isl_union_map): Same.
19004 (print_isl_schedule): New.
19005 (debug_isl_schedule): New.
19006 * graphite-dependences.c (scop_get_reads): Do not call
19007 isl_union_map_add_map that is undocumented isl functionality.
19008 (scop_get_must_writes): Same.
19009 (scop_get_may_writes): Same.
19010 (scop_get_original_schedule): Remove.
19011 (scop_get_dependences): Do not call isl_union_map_compute_flow that
19012 is deprecated in isl 0.15. Instead, use isl_union_access_* interface.
19013 (compute_deps): Remove.
19014 * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
19015 (debug_schedule_ast): New.
19016 (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
19017 set_separate_option.
19018 (graphite_regenerate_ast_isl): Add dump.
19019 (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
19020 from scop->transformed_schedule.
19021 (graphite_regenerate_ast_isl): Add more dump.
19022 * graphite-optimize-isl.c (optimize_isl): Set
19023 scop->transformed_schedule. Check whether schedules are equal.
19024 (apply_poly_transforms): Move here.
19025 * graphite-poly.c (apply_poly_transforms): ... from here.
19026 (free_poly_bb): Static.
19027 (free_scop): Static.
19028 (pbb_number_of_iterations_at_time): Remove.
19029 (print_isl_ast): New.
19030 (debug_isl_ast): New.
19031 (debug_scop_pbb): New.
19032 * graphite-scop-detection.c (print_edge): Move.
19033 (print_sese): Move.
19034 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
19035 (build_scop_scattering): Remove.
19036 (create_pw_aff_from_tree): Assert instead of bailing out.
19037 (add_condition_to_pbb): Remove unused code, do not fail.
19038 (add_conditions_to_domain): Same.
19039 (add_conditions_to_constraints): Remove.
19040 (build_scop_context): New.
19041 (add_iter_domain_dimension): New.
19042 (build_iteration_domains): Initialize pbb->iterators.
19043 Call add_conditions_to_domain.
19046 (index_outermost_in_loop): New.
19047 (index_pbb_in_loop): New.
19048 (outermost_pbb_in): New.
19049 (add_in_sequence): New.
19050 (add_outer_projection): New.
19051 (outer_projection_mupa): New.
19052 (add_loop_schedule): New.
19053 (build_schedule_pbb): New.
19054 (build_schedule_loop): New.
19055 (embed_in_surrounding_loops): New.
19056 (build_schedule_loop_nest): New.
19057 (build_original_schedule): New.
19058 (build_poly_scop): Call build_original_schedule.
19059 * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
19060 (free_poly_dr): Remove.
19061 (struct poly_bb): Add iterators. Remove schedule, transformed, saved.
19062 (free_poly_bb): Remove.
19063 (debug_loop_vec): Remove.
19064 (print_isl_ast): Declare.
19065 (debug_isl_ast): Declare.
19066 (scop_do_interchange): Remove.
19067 (scop_do_strip_mine): Remove.
19068 (scop_do_block): Remove.
19069 (flatten_all_loops): Remove.
19070 (optimize_isl): Remove.
19071 (pbb_number_of_iterations_at_time): Remove.
19072 (debug_scop_pbb): Declare.
19073 (print_schedule_ast): Declare.
19074 (debug_schedule_ast): Declare.
19075 (struct scop): Remove schedule. Add original_schedule,
19076 transformed_schedule.
19077 (free_gimple_poly_bb): Remove.
19078 (print_generated_program): Remove.
19079 (debug_generated_program): Remove.
19080 (unify_scattering_dimensions): Remove.
19081 * sese.c (print_edge): ... here.
19082 (print_sese): ... here.
19083 (debug_edge): ... here.
19084 (debug_sese): ... here.
19085 * sese.h (print_edge): Declare.
19086 (print_sese): Declare.
19087 (dump_edge): Declare.
19088 (dump_sese): Declare.
19090 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
19091 Sebastian Pop <s.pop@samsung.com>
19093 * Makefile.in: Set ISLVER in site.exp.
19095 2016-01-25 Jakub Jelinek <jakub@redhat.com>
19097 * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
19098 DECL_VALUE_EXPR of new_var even for the non-array case. Look
19099 through DECL_VALUE_EXPR for expansion.
19101 2016-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
19103 * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
19104 the frame info after reload completed.
19106 2016-01-25 Jeff Law <law@redhat.com>
19108 PR tree-optimization/69196
19109 PR tree-optimization/68398
19110 * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
19111 tree-ssa-threadupdate.c.
19112 (determine_bb_domination_status): Prototype
19113 * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
19114 (determine_bb_domination_status): No longer static.
19115 (valid_jump_thread_path): Remove code to detect characteristics
19116 of the jump thread path not associated with correctness.
19117 * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
19118 Correct test for thread path length. Count PHIs for real operands as
19119 statements that need to be copied. Do not count ASSERT_EXPRs.
19120 Look at all the blocks in the thread path. Compute and selectively
19121 filter thread paths based on threading through the latch, threading
19122 a multiway branch or crossing a multiway branch.
19124 2016-01-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19126 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): Add
19127 decl with __attribute__ ((unused)) annotation.
19129 2016-01-25 Ilya Enkovich <enkovich.gnu@gmail.com>
19132 * tree-vect-stmts.c (vectorizable_condition): Check vectype
19133 of operands is compatible with a statement vectype.
19135 2016-01-25 Eric Botcazou <ebotcazou@adacore.com>
19137 * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
19138 improve wording for mixed storage order support.
19140 2016-01-25 Bilyan Borisov <bilyan.borisov@arm.com>
19142 * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
19143 (vcvt_u64_f64): Likewise.
19144 (vcvta_s64_f64): Likewise.
19145 (vcvta_u64_f64): Likewise.
19146 (vcvtm_s64_f64): Likewise.
19147 (vcvtm_u64_f64): Likewise.
19148 (vcvtn_s64_f64): Likewise.
19149 (vcvtn_u64_f64): Likewise.
19150 (vcvtp_s64_f64): Likewise.
19151 (vcvtp_u64_f64): Likewise.
19153 2016-01-25 Claudiu Zissulescu <claziss@synopsys.com>
19155 * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
19156 (arc_init): Check validity mll64 option.
19157 (arc_save_restore): Use double load/store instruction.
19158 (arc_expand_movmem): Likewise.
19159 (arc_split_move): Don't split if we have double load/store
19160 instructions. Returns a boolean.
19161 (arc_process_double_reg_moves): Change function to return boolean
19162 instead of a sequence of instructions.
19163 (arc_dwarf_register_span): New function.
19164 * config/arc/arc-protos.h (arc_split_move): Change prototype.
19165 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
19166 * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
19167 (*movdf_insn): Likewise.
19168 * config/arc/arc.opt (mll64): New option.
19169 * config/arc/predicates.md (even_register_operand): New predicate.
19170 * doc/invoke.texi (ARC Options): Add mll64 documentation.
19172 2016-01-25 Richard Biener <rguenther@suse.de>
19175 * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
19176 * tree-streamer-out.c (pack_ts_base_value_fields): Stream
19178 * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
19180 2016-01-25 Richard Biener <rguenther@suse.de>
19182 PR tree-optimization/69376
19183 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
19185 (VN_INFO_ANTI_RANGE_P): New inline.
19186 (VN_INFO_RANGE_TYPE): Likewise.
19187 * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
19188 SSA_NAME_ANTI_RANGE_P.
19189 (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
19190 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
19191 Properly query VN_INFO_RANGE_TYPE.
19193 2016-01-25 Nick Clifton <nickc@redhat.com>
19196 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
19198 2016-01-23 Tom de Vries <tom@codesourcery.com>
19200 PR tree-optimization/69426
19201 * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
19204 2016-01-23 Jakub Jelinek <jakub@redhat.com>
19206 * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
19207 "the the" with "the" in the comments.
19208 * ipa-devirt.c (build_type_inheritance_graph,
19209 update_type_inheritance_graph): Likewise.
19210 * tree.c (build_function_type_list_1): Likewise.
19211 * cfgloopmanip.c (scale_loop_profile): Likewise.
19212 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
19213 * gimple-ssa-split-paths.c
19214 (find_block_to_duplicate_for_splitting_paths): Likewise.
19215 * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
19216 * expr.c (convert_move): Likewise.
19217 * var-tracking.c (vt_stack_adjustments): Likewise.
19218 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
19219 * tree-vrp.c (test_for_singularity): Likewise.
19221 * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
19222 directly instead of building a temporary tree.
19225 * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
19226 remove <algorithm> include.
19228 2016-01-22 Jakub Jelinek <jakub@redhat.com>
19231 * config/i386/i386.c: Include dojump.h.
19232 (expand_small_movmem_or_setmem,
19233 expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
19235 (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
19236 if dynamic_check != -1.
19238 2016-01-21 Jeff Law <law@redhat.com>
19240 PR middle-end/69347
19241 * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
19242 record_temporary_equivalences. Rewritten to avoid unnecessary calls
19243 into dominated_by_p.
19244 (cprop_into_successor_phis): Avoid unnecessary tests.
19246 2016-01-22 Richard Henderson <rth@redhat.com>
19249 * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
19250 (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
19252 2016-01-22 Michael Matz <matz@suse.de>
19254 * system.h (string, algorithm): Include only conditionally.
19255 (new): Include always under C++.
19256 * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
19257 * final.c (toplevel): Ditto.
19258 * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
19259 * genconditions.c (write_header): Make gencondmd.c define
19261 * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
19263 * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
19264 * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
19266 2016-01-22 Christian Bruel <christian.bruel@st.com>
19269 * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
19271 2016-01-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19274 * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
19275 define_insn_and_split. Ensure operands[1] and operands[0] do not
19276 get assigned the same register.
19278 2016-01-22 Kugan Vivekanandarajah <kuganv@linaro.org>
19280 * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
19282 2016-01-22 Christian Bruel <christian.bruel@st.com>
19284 * config/arm/arm-c.c (arm_pragma_target_parse):
19285 Remove warn_builtin_macro_redefined overwrite.
19287 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
19289 * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
19290 flag_non_call_exceptions compatibility.
19292 2016-01-22 Jakub Jelinek <jakub@redhat.com>
19295 * dwarf2out.c (add_child_die_after): New function.
19296 (dwarf_qual_info_t): New type.
19297 (dwarf_qual_info): New variable.
19298 (qualified_die_p): New function.
19299 (modified_type_die): For -fdebug-types-section, ensure
19300 canonical order of qualifiers. Put qualified DIEs adjacent
19301 to the corresponding non-qualified type DIE and search there
19302 for existing qualified DIEs.
19304 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
19306 * doc/extend.texi (scalar_storage_order type attribute): Document
19307 restriction on type punning and aliasing, and remove future tense.
19309 2016-01-21 Roman Zhuykov <zhroma@ispras.ru>
19312 * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
19315 2016-01-21 Jeff Law <law@redhat.com>
19317 PR middle-end/69347
19318 * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
19319 useless call to record_temporary_equivalences.
19320 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
19321 allocate 10 slots in the bb_path vector and let it grow as needed.
19322 (fsm_find_control_statement_thread_paths): Similarly for the next_path
19325 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
19327 * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
19329 * configure: Regenerate.
19331 2016-01-21 Pat Haugen <pthaugen@us.ibm.com>
19333 * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
19334 * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
19336 2016-01-21 Bernd Schmidt <bschmidt@redhat.com>
19338 PR middle-end/66178
19339 * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
19340 drop EXPAND_INITIALIZER.
19341 * rtl.h (contains_symbolic_reference_p): Declare.
19342 * rtlanal.c (contains_symbolic_reference_p): New function.
19343 * simplify-rtx.c (simplify_binary_operation_1): Don't turn
19344 a subtraction into a NOT if symbolic constants are involved.
19346 2016-01-21 Anton Blanchard <anton@samba.org>
19347 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19350 * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
19352 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
19355 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
19357 * config/microblaze/microblaze.c
19358 (get_branch_target): New.
19359 (insert_wic_for_ilb_runout): New.
19361 (microblaze_machine_dependent_reorg): New.
19362 (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
19363 * config/microblaze/microblaze.md
19364 (UNSPEC_IPREFETCH): Define.
19365 (iprefetch): New pattern
19366 * config/microblaze/microblaze.opt
19367 (mxl-prefetch): New flag.
19369 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
19371 * config/microblaze/microblaze.h
19372 (FIXED_REGISTERS): Update in macro.
19373 (CALL_USED_REGISTERS): Update in macro.
19375 2016-01-21 Yuri Rumyantsev <ysrumyan@gmail.com>
19377 PR rtl-optimization/68920
19378 * ifcvt.c (cond_move_process_if_block): Limit number of conditional
19381 2016-01-21 Vladimir Makarov <vmakarov@redhat.com>
19383 PR rtl-optimization/68990
19384 * lra-coalesce.c (lra_coalesce): Invalidate value for the result
19385 pseudo instead of inheritance ones.
19387 2016-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
19388 Nick Clifton <nickc@redhat.com>
19392 * config/mips/mips.c (mips_compute_frame_info): Initialise
19393 args_size and hard_frame_pointer_offset fields of the frame
19394 structure before calling mips_global_pointer.
19396 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
19398 * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
19400 * configure: Regenerate.
19402 2016-01-21 Richard Biener <rguenther@suse.de>
19404 * graphite-optimize-isl.c (get_schedule_map): Fix typo.
19406 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
19408 * config/s390/s390.c (s390_asm_declare_function_size): Add code
19409 to actually emit the .size directive.
19411 2016-01-21 Stefan Sørensen <stefan.sorensen@spectralink.com>
19412 Jakub Jelinek <jakub@redhat.com>
19416 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
19417 args array size by one to avoid buffer overflow.
19419 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
19421 * config/s390/s390.md (pool_section_start): Use switch_to_section
19422 to select proper read-only data section instead of hardcoding
19424 (pool_section_end): Use switch_to_section to match the above.
19426 2016-01-21 Richard Biener <rguenther@suse.de>
19428 PR tree-optimization/69378
19429 * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
19430 (set_ssa_val_to): Use it for dominance checks taking into
19431 account not executable edges.
19433 2016-01-21 Jakub Jelinek <jakub@redhat.com>
19436 * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
19437 for bitsize instead of GET_MODE_PRECISION (mode).
19439 2016-01-20 Martin Sebor <msebor@redhat.com>
19442 * extend.texi (__sync Builtins): Clarify the semantics of
19443 __sync_fetch_and_OP built-ins on pointers.
19444 (__atomic Builtins): Same.
19446 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
19447 Sebastian Pop <s.pop@samsung.com>
19449 * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
19450 (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
19451 (is_valid_rename): Same.
19452 (translate_isl_ast_to_gimple::get_rename): Same.
19453 (translate_isl_ast_to_gimple::rename_all_uses): Same.
19454 (translate_isl_ast_to_gimple::rename_uses): Same.
19455 (get_new_name): Check for close_phi nodes.
19456 (copy_loop_phi_args): Use phi_node_kind.
19457 (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
19458 (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
19460 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
19461 Sebastian Pop <s.pop@samsung.com>
19463 Revert commit r229783.
19464 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
19465 Remove use of parameter_rename_map.
19466 (copy_def): Remove.
19467 (copy_internal_parameters): Remove.
19468 (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
19469 * sese.c (new_sese_info): Do not initialize parameter_rename_map.
19470 (free_sese_info): Do not free parameter_rename_map.
19471 (set_rename): Do not use parameter_rename_map.
19472 (rename_uses): Update call to set_rename.
19473 (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
19474 * sese.h (parameter_rename_map_t): Remove.
19475 (struct sese_info_t): Remove field parameter_rename_map.
19477 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
19478 Sebastian Pop <s.pop@samsung.com>
19480 * graphite-isl-ast-to-gimple.c: Fix comment.
19481 * graphite-scop-detection.c (defined_in_loop_p): New.
19482 (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
19483 names defined in loop.
19485 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
19486 Sebastian Pop <s.pop@samsung.com>
19488 * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
19489 Discard unstructured if-then-else regions.
19491 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
19492 Sebastian Pop <s.pop@samsung.com>
19494 * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
19495 (cleanup_loop_iter_dom): Remove.
19496 (build_loop_iteration_domains): Remove.
19497 (build_scop_context): Remove.
19498 (build_scop_iteration_domain): Remove.
19499 (add_loop_constraints): New.
19500 (build_iteration_domains): New.
19501 (build_poly_scop): Call build_iteration_domains.
19503 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
19504 Sebastian Pop <s.pop@samsung.com>
19506 * graphite-scop-detection.c
19507 (scop_detection::harmful_loop_in_region): Free dom and loops.
19508 (scop_detection::loop_body_is_valid_scop): Free bbs.
19510 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
19511 Sebastian Pop <s.pop@samsung.com>
19513 * graphite-scop-detection.c (record_loop_in_sese): New.
19514 (gather_bbs::before_dom_children): Call record_loop_in_sese.
19515 (build_scops): Remove call to build_sese_loop_nests.
19516 * sese.c (sese_record_loop): Remove.
19517 (build_sese_loop_nests): Remove.
19518 (new_sese_info): Remove region->loops.
19519 (free_sese_info): Same.
19520 * sese.h (sese_contains_loop): Same.
19521 (build_sese_loop_nests): Remove.
19522 (sese_contains_loop): Remove.
19524 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
19525 Sebastian Pop <s.pop@samsung.com>
19527 * graphite-scop-detection.c (loop_is_valid_scop): Renamed
19528 loop_is_valid_in_scop.
19529 (scop_detection::harmful_stmt_in_region): Renamed
19530 harmful_loop_in_region.
19531 Call loop_is_valid_in_scop.
19533 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
19534 Sebastian Pop <s.pop@samsung.com>
19536 * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
19539 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
19540 Sebastian Pop <s.pop@samsung.com>
19542 * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
19543 * graphite.h (struct poly_bb): Remove field is_reduction.
19544 (PBB_IS_REDUCTION): Remove.
19546 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
19547 Sebastian Pop <s.pop@samsung.com>
19549 * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
19550 (add_pdr_constraints): Same.
19551 (scop_get_reads): Same.
19552 (scop_get_must_writes): Same.
19553 (scop_get_may_writes): Same.
19554 (scop_get_original_schedule): Same.
19555 (extend_schedule): Same.
19556 (apply_schedule_on_deps): Same.
19557 (carries_deps): Same.
19558 (compute_deps): Same.
19559 (scop_get_dependences): Same.
19560 * graphite-isl-ast-to-gimple.c
19561 (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
19562 * graphite-optimize-isl.c (get_schedule_for_band): Same.
19563 (get_schedule_for_band_list): Same.
19564 (get_schedule_map): Same.
19565 (apply_schedule_map_to_scop): Same.
19566 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
19567 (build_loop_iteration_domains): Same.
19568 (add_condition_to_pbb): Same.
19569 (add_param_constraints): Same.
19570 (pdr_add_memory_accesses): Same.
19571 (pdr_add_data_dimensions): Same.
19573 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
19575 * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
19578 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
19580 * common.opt (feliminate-dwarf2-dups): Replace references to
19581 "DWARF 2" with just "DWARF".
19582 * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
19583 * doc/extend.texi: Likewise.
19584 * doc/cpp.texi: Likewise.
19585 * doc/invoke.texi: Likewise.
19586 (Option Summary): Add -gdwarf to list of Debugging Options.
19587 (Debugging Options): Document -gdwarf.
19588 * doc/contrib.texi: Spell "DWARF" like that.
19590 2016-01-21 Jakub Jelinek <jakub@redhat.com>
19592 * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
19593 warning. Fix up formatting.
19595 PR middle-end/67653
19596 * gimplify.c (gimplify_asm_expr): Warn if it is too late to
19597 attempt to mark memory input operand addressable and
19598 call prepare_gimple_addressable in that case. Don't adjust
19599 input_location for diagnostics, use error_at instead.
19601 2016-01-20 Peter Bergner <bergner@vnet.ibm.com>
19603 * config/rs6000/ppc-auxv.h: New file.
19604 * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
19605 (cpu_is): Likewise.
19606 (cpu_supports): Likewise.
19607 * config/rs6000/rs6000.c: include "ppc-auxv.h".
19608 (cpu_is_info): New variable.
19609 (cpu_supports_info): Likewise.
19610 (tcb_verification_symbol): Likewise.
19611 (cpu_builtin_p): Likewise.
19612 (cpu_expand_builtin): New function.
19613 (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
19614 (rs6000_init_builtins): Likewise.
19615 (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
19616 * config/rs6000/rs6000.h (TLS_REGNUM): New define.
19617 * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
19618 * configure: Regenerate.
19619 * config.in: Likewise.
19620 * doc/extend.texi (PowerPC Built-in Functions): Document
19621 __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
19623 2016-01-20 David Edelsohn <dje.gcc@gmail.com>
19626 * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
19628 * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
19631 2016-01-20 Richard Henderson <rth@redhat.com>
19637 * tree.c (tm_define_builtin): New.
19638 (find_tm_vector_type): New.
19639 (build_tm_vector_builtins): New.
19640 (build_common_builtin_nodes): Call it.
19642 2016-01-20 Christophe Lyon <christophe.lyon@linaro.org>
19644 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
19645 (arm_fp_ok): Likewise.
19646 (arm_fp): Likewise.
19647 (arm_crypto): Likewise.
19649 2016-01-20 Ilya Enkovich <enkovich.gnu@gmail.com>
19650 Richard Biener <rguenther@suse.de>
19652 PR tree-optimization/69328
19653 * tree-vect-stmts.c (vect_is_simple_cond): Check compared
19654 vectors have same number of elements.
19655 (vectorizable_condition): Fix masked version recognition.
19657 2016-01-20 Richard Biener <rguenther@suse.de>
19659 PR tree-optimization/69345
19660 * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
19661 (VN_INFO_PTR_INFO): Likewise.
19662 * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
19663 info when it is equal between non-dominating SSA names.
19664 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
19665 Make sure to look at original SSA infos.
19667 2016-01-20 Jeff Law <law@redhat.com>
19670 * config/m68k/predicates.md (pow2_m1_operand): New predicate
19672 (reg_or_pow2_m1_operand): Call pow2_m1_operand.
19673 (pc_or_label_operand): New predicate.
19674 * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
19675 tests for small integers that are 2^n - 1.
19677 2016-01-20 Jonathan Wakely <jwakely@redhat.com>
19679 * doc/invoke.texi (Options Summary): Add '.' after @xref.
19681 2016-01-19 Jeff Law <law@redhat.com>
19683 PR middle-end/69347
19684 * tree-ssa-threadbackwards.c
19685 (fsm_find_control_statement_thread_paths): Do not try to lookup
19686 FSM paths for SSA_NAMEs appearing in abnormal PHIs.
19688 2016-01-20 Kugan Vivekanandarajah <kuganv@linaro.org>
19690 * doc/lto.texi: Remove text that says only Gold has linker plugin
19693 2016-01-19 Eric Botcazou <ebotcazou@adacore.com>
19695 * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
19696 (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
19697 the DIE accordingly.
19698 (modified_type_die): Add REVERSE parameter and pass it recursively,
19699 as well as to base_type_die. Adjust presence check accordingly.
19700 (base_type_for_mode): Adjust call to modified_type_die.
19701 (add_type_attribute): Add REVERSE parameter and pass it to
19703 (generic_parameter_die): Adjust call to add_type_attribute.
19704 (add_scalar_info): Likewise.
19705 (add_subscript_info): Likewise.
19706 (gen_array_type_die): Likewise.
19707 (gen_descr_array_type_die): Likewise.
19708 (gen_entry_point_die): Likewise.
19709 (gen_enumeration_type_die): Likewise.
19710 (gen_formal_parameter_die): Likewise.
19711 (gen_subprogram_die): Likewise.
19712 (gen_variable_die ): Likewise.
19713 (gen_const_die): Likewise.
19714 (gen_field_die): Likewise.
19715 (gen_pointer_type_die): Likewise.
19716 (gen_reference_type_die): Likewise.
19717 (gen_ptr_to_mbr_type_die): Likewise.
19718 (gen_inheritance_die): Likewise.
19719 (gen_subroutine_type_die): Likewise.
19720 (gen_typedef_die): Likewise.
19721 (force_type_die): Adjust call to modified_type_die.
19723 2016-01-19 Sandra Loosemore <sandra@codesourcery.com>
19725 * doc/standards.texi: Copy-editing for grammar, markup, and sentence
19726 flow throughout the file. Fix broken link to Objective-C 2.0
19728 * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
19731 2016-01-19 Wilco Dijkstra <wdijkstr@arm.com>
19733 * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
19735 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
19738 * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
19739 (maybe_record_node): Record cxa_pure_virtual as the only possible
19740 target if there are not ohter candidates.
19741 (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
19743 2016-01-19 Richard Biener <rguenther@suse.de>
19745 * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
19746 (get_memory_order): Likewise.
19748 2016-01-19 Kirill Yukhin <kirill.yukhin@intel.com>
19750 * tree-vect-stmts.c (vectorizable_store): Check
19753 2016-01-19 David Malcolm <dmalcolm@redhat.com>
19756 * gcc.c (driver::decode_argv): Add call to
19757 init_opts_obstack before init_options_struct.
19758 * opts.c (init_opts_obstack): Remove idempotency.
19759 (init_options_struct): Replace call to init_opts_obstack
19760 with a gcc_assert to verify that it has already been called.
19761 * toplev.c (toplev::main): Add call to init_opts_obstack before
19762 calls to init_options_struct.
19763 (toplev::finalize): Move cleanup of opts_obstack next to
19764 cleanup of save_decoded_options, clearing the latter, and
19765 save_decoded_options_count.
19767 2016-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19770 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
19771 attribute to unconditional. Remove %? from output template.
19773 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
19774 Jiong Wang <jiong.wang@arm.com>
19776 * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
19777 generated from different expand order.
19779 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
19781 * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
19782 Add support for CCMP costing.
19784 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
19786 * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
19787 * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
19788 (fccmpe<mode>): Likewise.
19789 (fcmp): Rename to fcmp and globalize pattern.
19791 * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
19792 (aarch64_gen_ccmp_next): Add FP support.
19794 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
19796 * target.def (gen_ccmp_first): Update documentation.
19797 (gen_ccmp_next): Likewise.
19798 * doc/tm.texi (gen_ccmp_first): Update documentation.
19799 (gen_ccmp_next): Likewise.
19800 * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
19801 expand_ccmp_expr_1. Improve comments.
19802 * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
19803 (ccmp_ior<mode>): Remove pattern.
19804 (cmp<mode>): Remove expand.
19805 (cmp): Globalize pattern.
19806 (cstorecc4): Use cc_register.
19807 (mov<mode>cc): Remove ccmp_cc_register check.
19808 * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
19809 Simplify after removal of CC_DNE/* modes.
19810 (aarch64_ccmp_mode_to_code): Remove.
19811 (aarch64_print_operand): Remove 'K' case. Merge 'm' and 'M' cases.
19812 In 'k' case use integer as condition.
19813 (aarch64_nzcv_codes): Remove inverted cases.
19814 (aarch64_code_to_ccmode): Remove.
19815 (aarch64_gen_ccmp_first): Use cmp pattern directly. Return the correct
19816 comparison with CC register to be used in folowing CCMP/branch/CSEL.
19817 (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
19818 pattern. Return the comparison with CC register. Invert conditions
19819 when bitcode is OR.
19820 * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
19821 * config/aarch64/predicates.md (ccmp_cc_register): Remove.
19823 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
19825 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
19826 instrumented_version.
19828 2016-01-19 Richard Biener <rguenther@suse.de>
19830 PR tree-optimization/69336
19831 * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
19832 handled components with get_ref_base_and_extent.
19833 (equal_mem_array_ref_p): Adjust.
19835 2016-01-19 Jakub Jelinek <jakub@redhat.com>
19838 * shrink-wrap.c: Include valtrack.h.
19839 (move_insn_for_shrink_wrap): Add DEBUG argument. If
19840 MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
19841 in between insn and where it will be moved to. Call
19842 dead_debug_insert_temp.
19843 (prepare_shrink_wrap): Adjust caller. Call dead_debug_local_init
19844 first and dead_debug_local_finish at the end.
19845 For uses and defs bitmap, handle all regs in between REGNO and
19846 END_REGNO, not just the first one.
19848 2016-01-19 Richard Biener <rguenther@suse.de>
19850 PR tree-optimization/69352
19851 * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
19852 (equal_mem_array_ref_p): Constrain size and max size properly.
19853 Compare the reverse flag.
19855 2016-01-19 Bernd Schmidt <bschmidt@redhat.com>
19857 * ira.c (ira): Update regstat data if we deleted insns.
19859 2016-01-19 Jakub Jelinek <jakub@redhat.com>
19861 PR rtl-optimization/68955
19862 PR rtl-optimization/64557
19863 * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
19864 here. Fix up formatting.
19865 * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
19867 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
19870 * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
19871 assume that the node has body.
19872 * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
19875 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
19877 * lto-streamer-out.c (lto_output): Do not stream instrumentation
19880 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
19882 * symtab.c (symtab_node::asm_name): Do not call printable name directly.
19883 (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
19885 2016-01-19 Martin Jambor <mjambor@suse.cz>
19886 Martin Liska <mliska@suse.cz>
19887 Michael Matz <matz@suse.de>
19889 * Makefile.in (OBJS): Add new source files.
19890 (GTFILES): Add hsa.c.
19891 * common.opt (disable_hsa): New variable.
19892 (-Whsa): New warning.
19893 * config.in (ENABLE_HSA): New.
19894 * configure.ac: Treat hsa differently from other accelerators.
19895 (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
19896 $enable_offloading.
19897 (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
19898 * doc/install.texi (Configuration): Document --with-hsa-runtime,
19899 --with-hsa-runtime-include, --with-hsa-runtime-lib and
19900 --with-hsa-kmt-lib.
19901 * doc/invoke.texi (-Whsa): Document.
19902 (hsa-gen-debug-stores): Likewise.
19903 * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
19904 to invoke offload compiler for hsa acclerator.
19905 * opts.c (common_handle_option): Determine whether HSA offloading
19906 should be performed.
19907 * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
19908 * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
19909 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
19910 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
19911 * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
19912 * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
19913 GF_OMP_FOR_KIND_GRID_LOOP.
19914 (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
19915 (pp_gimple_stmt_1): Likewise.
19916 * gimple-walk.c (walk_gimple_stmt): Likewise.
19917 * gimple.c (gimple_build_omp_grid_body): New function.
19918 (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
19919 * gimple.def (GIMPLE_OMP_GRID_BODY): New.
19920 * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
19921 GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
19922 GF_OMP_TEAMS_GRID_PHONY.
19923 (gimple_statement_omp_single_layout): Updated comments.
19924 (gimple_build_omp_grid_body): New function.
19925 (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
19926 (gimple_omp_for_grid_phony): New function.
19927 (gimple_omp_for_set_grid_phony): Likewise.
19928 (gimple_omp_parallel_grid_phony): Likewise.
19929 (gimple_omp_parallel_set_grid_phony): Likewise.
19930 (gimple_omp_teams_grid_phony): Likewise.
19931 (gimple_omp_teams_set_grid_phony): Likewise.
19932 (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
19933 * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
19934 (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
19935 (BUILT_IN_GOMP_TARGET): Updated type.
19936 * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
19937 (adjust_for_condition): New function.
19938 (get_omp_for_step_from_incr): Likewise.
19939 (extract_omp_for_data): Moved parts to adjust_for_condition and
19940 get_omp_for_step_from_incr.
19941 (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
19942 (fixup_child_record_type): Bail out if receiver_decl is NULL.
19943 (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
19944 (scan_omp_parallel): Do not create child functions for phony
19946 (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
19947 (scan_omp_1_op): Checking assert we are not remapping to
19948 ERROR_MARK. Also also handle GIMPLE_OMP_GRID_BODY.
19949 (parallel_needs_hsa_kernel_p): New function.
19950 (expand_parallel_call): Register apprpriate parallel child
19951 functions as HSA kernels.
19952 (grid_launch_attributes_trees): New type.
19953 (grid_attr_trees): New variable.
19954 (grid_create_kernel_launch_attr_types): New function.
19955 (grid_insert_store_range_dim): Likewise.
19956 (grid_get_kernel_launch_attributes): Likewise.
19957 (get_target_argument_identifier_1): Likewise.
19958 (get_target_argument_identifier): Likewise.
19959 (get_target_argument_value): Likewise.
19960 (push_target_argument_according_to_value): Likewise.
19961 (get_target_arguments): Likewise.
19962 (expand_omp_target): Call get_target_arguments instead of looking
19963 up for teams and thread limit.
19964 (grid_expand_omp_for_loop): New function.
19965 (grid_arg_decl_map): New type.
19966 (grid_remap_kernel_arg_accesses): New function.
19967 (grid_expand_target_kernel_body): New function.
19968 (expand_omp): Call it.
19969 (lower_omp_for): Do not emit phony constructs.
19970 (lower_omp_taskreg): Do not emit phony constructs but create for them
19971 a temporary variable receiver_decl.
19972 (lower_omp_taskreg): Do not emit phony constructs.
19973 (lower_omp_teams): Likewise.
19974 (lower_omp_grid_body): New function.
19975 (lower_omp_1): Call it.
19976 (grid_reg_assignment_to_local_var_p): New function.
19977 (grid_seq_only_contains_local_assignments): Likewise.
19978 (grid_find_single_omp_among_assignments_1): Likewise.
19979 (grid_find_single_omp_among_assignments): Likewise.
19980 (grid_find_ungridifiable_statement): Likewise.
19981 (grid_target_follows_gridifiable_pattern): Likewise.
19982 (grid_remap_prebody_decls): Likewise.
19983 (grid_copy_leading_local_assignments): Likewise.
19984 (grid_process_kernel_body_copy): Likewise.
19985 (grid_attempt_target_gridification): Likewise.
19986 (grid_gridify_all_targets_stmt): Likewise.
19987 (grid_gridify_all_targets): Likewise.
19988 (execute_lower_omp): Call grid_gridify_all_targets.
19989 (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
19990 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
19991 (tree_omp_clause): Added union field dimension.
19992 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
19993 * tree.c (omp_clause_num_ops): Added number of arguments of
19994 OMP_CLAUSE__GRIDDIM_.
19995 (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
19996 (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
19997 * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
19998 (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
19999 (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
20000 (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
20001 * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
20002 * tree-pass.h (make_pass_gen_hsail): Declare.
20003 (make_pass_ipa_hsa): Likewise.
20004 * ipa-hsa.c: New file.
20005 * lto-section-in.c (lto_section_name): Add hsa section name.
20006 * lto-streamer.h (lto_section_type): Add hsa section.
20007 * timevar.def (TV_IPA_HSA): New.
20008 * hsa-brig-format.h: New file.
20009 * hsa-brig.c: New file.
20010 * hsa-dump.c: Likewise.
20011 * hsa-gen.c: Likewise.
20014 * toplev.c (compile_file): Call hsa_output_brig.
20015 * hsa-regalloc.c: New file.
20017 2016-01-18 Jeff Law <law@redhat.com>
20019 PR tree-optimization/69320
20020 * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
20021 ranged object, do nothing if the RHS constant is not [0..1].
20022 (optimize_stmt): Comparing a boolean ranged object against a
20023 constant outside [0..1] results in a compile-time constant.
20025 * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
20028 2016-01-18 Sandra Loosemore <sandra@codesourcery.com>
20030 * doc/invoke.texi (Invoking GCC): Add new section to menu.
20031 (Option Summary): Update to reflect new section and moved options.
20032 (C++ Dialect Options): Move -fstats to new section.
20033 (Debugging Options): Move all dump, statistics, and other GCC
20034 developer options to new section. Rewrite section introduction
20035 and re-order remaining options to put the more basic ones first.
20036 (Optimization Options): Move -fira-verbose and -flto-report* to
20038 (Developer Options): New section incorporating moved options.
20039 * doc/cppopts.texi (-dM): Update cross-reference.
20041 2016-01-18 Richard Henderson <rth@redhat.com>
20044 * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
20045 operands to pseudo only if CSE is expected. Split long immediate
20046 operands only after reload, and for the stack pointer.
20047 (*add<GPI>3_pluslong): Remove.
20048 (*addsi3_aarch64, *adddi3_aarch64): Merge into...
20049 (*add<GPI>3_aarch64): ... here. Add r/rk/Upl alternative.
20050 (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
20051 (*add<GPI>3 peepholes): New.
20052 (*add<GPI>3 splitters): New.
20053 * config/aarch64/constraints.md (Upl): New.
20054 * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
20056 2016-01-18 Richard Biener <rguenther@suse.de>
20058 PR tree-optimization/69297
20059 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
20061 (vect_bb_vectorization_profitable_p): Clear visited flag again.
20063 2016-01-18 Yuri Rumyantsev <ysrumyan@gmail.com>
20065 PR middle-end/68542
20066 * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
20067 of mixind vector and scalar types.
20068 (fold_relational_const): Add handling of vector
20069 comparison with boolean result.
20070 * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
20071 comparison of vector operands with boolean result for EQ/NE only.
20072 (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
20073 (verify_gimple_cond): Likewise.
20074 * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
20077 2016-01-18 Joseph Myers <joseph@codesourcery.com>
20079 * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
20082 2016-01-18 Richard Biener <rguenther@suse.de>
20084 PR middle-end/69308
20085 * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
20087 2016-01-18 Tom de Vries <tom@codesourcery.com>
20089 * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
20091 2016-01-18 Tom de Vries <tom@codesourcery.com>
20093 * omp-low.c (set_oacc_fn_attrib): Make extern.
20094 * omp-low.h (set_oacc_fn_attrib): Declare.
20095 * tree-parloops.c (struct reduction_info): Add reduc_addr field.
20096 (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
20097 (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
20098 Add and handle function parameter oacc_kernels_p.
20099 (find_reduc_addr, get_omp_data_i_param): New function.
20100 (ref_conflicts_with_region, oacc_entry_exit_ok_1)
20101 (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
20102 (parallelize_loops): Add and handle function parameter oacc_kernels_p.
20103 Calculate dominance info. Skip loops that are not in a kernels region
20104 in oacc_kernels_p mode. Skip inner loops of parallelized loops.
20105 (pass_parallelize_loops::execute): Call parallelize_loops with
20106 oacc_kernels_p argument.
20107 (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
20108 New member function.
20109 (pass_parallelize_loops::bool oacc_kernels_p): New member var.
20110 * passes.def: Add argument to pass_parallelize_loops instantation.
20112 2016-01-18 Tom de Vries <tom@codesourcery.com>
20114 * tree-parloops.c (pass_parallelize_loops::execute): Allow
20115 pass_parallelize_loops to be run outside the loop pipeline.
20117 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
20119 * tree-scalar-evolution.c (follow_copies_to_constant): New.
20120 (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
20122 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
20125 * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
20126 using get_ref_base_and_extent.
20127 (equal_mem_array_ref_p): New.
20128 (hashable_expr_equal_p): Add call to previous.
20130 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
20133 * tree-sra.c (disqualified_constants, constant_decl_p): New.
20134 (sra_initialize): Allocate disqualified_constants.
20135 (sra_deinitialize): Free disqualified_constants.
20136 (disqualify_candidate): Update disqualified_constants when appropriate.
20137 (create_access): Scan for constant-pool entries as we go along.
20138 (scalarizable_type_p): Add check against type_contains_placeholder_p.
20139 (maybe_add_sra_candidate): Allow constant-pool entries.
20140 (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
20141 (initialize_constant_pool_replacements): New.
20142 (sra_modify_assign): Avoid mangling assignments created by previous,
20143 and don't generate writes into constant pool.
20144 (sra_modify_function_body): Call initialize_constant_pool_replacements.
20146 2016-01-18 Ilya Enkovich <enkovich.gnu@gmail.com>
20148 * config/i386/i386.c (scalar_to_vector_candidate_p): Support
20149 andnot instruction.
20150 (scalar_chain::convert_op): Likewise.
20151 * config/i386/i386.md (*andndi3_doubleword): New.
20153 2016-01-18 Richard Biener <rguenther@suse.de>
20155 PR tree-optimization/69170
20156 * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
20157 building a vector from scalar results of a pattern stmt.
20159 2016-01-18 Jakub Jelinek <jakub@redhat.com>
20161 * haifa-sched.c (autopref_multipass_init): Work around
20162 -Wmaybe-uninitialized warning.
20164 2016-01-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
20166 * config/arm/arm.c (thumb1_reorg): Check that the comparison is
20167 against the constant 0.
20169 2016-01-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20171 PR tree-optimization/68799
20172 * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
20173 look up phi candidates in the statement-candidate map.
20174 (phi_add_costs): Likewise.
20175 (record_phi_increments): Likewise.
20176 (phi_incr_cost): Likewise.
20177 (ncd_with_phi): Likewise.
20178 (all_phi_incrs_profitable): Likewise.
20180 2016-01-17 Jakub Jelinek <jakub@redhat.com>
20182 * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
20183 -Wmaybe-uninitialized warning.
20185 2016-01-16 Sandra Loosemore <sandra@codesourcery.com>
20187 * doc/invoke.texi (Invoking GCC): Add new section to menu.
20188 (Option Summary): Update to reflect new section and moved options.
20189 (C++ Dialect Options): Move -fvtable-verify and related options.
20190 (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
20191 and profiling-related options.
20192 (Optimization Options): Move profile generation options and
20193 -fstack-protector and related options.
20194 (Instrumentation Options): New section incorporating moved options.
20195 (Code Generation Options): Move -finstrument-functions and
20196 related options, -fstack-check, -fstack-limit*, and -fbounds-check.
20198 2016-01-16 Tom de Vries <tom@codesourcery.com>
20200 * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
20202 2016-01-16 Tom de Vries <tom@codesourcery.com>
20204 * omp-low.c (expand_omp_atomic_fetch_op): Release defs of update stmt.
20206 2016-01-16 Richard Sandiford <richard.sandiford@arm.com>
20208 * hash-table.h (hash_table::empty): Turn into an inline wrapper
20209 that checks whether the table is already empty. Rename the
20210 original implementation to...
20211 (hash_table::empty_slot): ...this new private function.
20213 2016-01-15 David Malcolm <dmalcolm@redhat.com>
20215 PR diagnostic/68899
20216 * diagnostic-show-locus.c (layout::print_source_line): Move x
20217 offset of line until after call to
20218 get_line_width_without_trailing_whitespace.
20220 2016-01-15 Jeff Law <law@redhat.com>
20222 PR tree-optimization/69270
20223 * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
20224 tree-ssa-dom.c. Improve test for [0..1] ranve from VRP.
20225 * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
20226 * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
20227 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
20228 ssa_name_has_boolean_range and constant_boolean_node.
20230 2016-01-15 Vladimir Makarov <vmakarov@redhat.com>
20232 PR rtl-optimization/69030
20233 * lra-spills.c (remove_pseudos): Check nrefs and make the function
20235 (spill_pseudos): Delete debug insn for dead pseudo.
20236 (lra_spill): Initiate spill_hard_reg and slots memory separately.
20238 2016-01-15 Jiong Wang <jiong.wang@arm.com>
20240 * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
20242 (TYPES_UNOPUS): Likewise.
20243 * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
20244 builtin type, from UNOP to UNOPUS.
20245 (lbtruncuv4sf): Likewise.
20246 (lbtruncuv2df): Likewise.
20247 (lrounduv2sf): Likewise.
20248 (lrounduv4sf): Likewise.
20249 (lrounduv2df): Likewise.
20250 (lroundusf): Likewise.
20251 (lroundusf): Likewise.
20252 (lceiluv2sf): Likewise.
20253 (lceiluv4sf): Likewise.
20254 (lceiluv2df): Likewise.
20255 (lceilusf): Likewise.
20256 (lceiludf): Likewise.
20257 (lflooruv2sf): Likewise.
20258 (lflooruv4sf): Likewise.
20259 (lflooruv2df): Likewise.
20260 (lfloorusf): Likewise.
20261 (lfloorudf): Likewise.
20262 (lfrintnuv2sf): Likewise.
20263 (lfrintnuv4sf): Likewise.
20264 (lfrintnuv2df): Likewise.
20265 (lfrintnusf): Likewise.
20266 (lfrintnudf): Likewise.
20267 * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
20269 (vcvtq_u32_f32): Likewise.
20270 (vcvtq_u64_f64): Likewise.
20271 (vcvta_u32_f32): Likewise.
20272 (vcvtaq_u32_f32): Likewise.
20273 (vcvtaq_u64_f64): Likewise.
20274 (vcvtm_u32_f32): Likewise.
20275 (vcvtmq_u32_f32): Likewise.
20276 (vcvtmq_u64_f64): Likewise.
20277 (vcvtn_u32_f32): Likwise.
20278 (vcvtnq_u32_f32): Likewise.
20279 (vcvtnq_u64_f64): Likewise.
20280 (vcvtp_u32_f32): Likewise.
20281 (vcvtpq_u32_f32): Likewise.
20282 (vcvtpq_u64_f64): Likewise.
20283 (vcvtmd_u64_f64): Likewise.
20284 (vcvtms_u32_f32): Likewise.
20285 (vcvtad_u64_f64): Likewise.
20286 (vcvtas_u32_f32): Likewise.
20287 (vcvtnd_u64_f64): Likewise.
20288 (vcvtns_u32_f32): Likewise.
20289 (vcvtpd_u64_f64): Likewise.
20290 (vcvtps_u32_f32): Likewise.
20292 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20294 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
20295 CSEL of zero_extended registers.
20297 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20299 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
20300 Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
20302 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20304 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
20305 false when argument string is not found in the attributes table
20308 2016-01-15 David Edelsohn <dje.gcc@gmail.com>
20311 * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
20312 (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
20313 * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
20314 precision estimate.
20316 2016-01-15 Richard Biener <rguenther@suse.de>
20318 PR tree-optimization/66856
20319 * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
20320 * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
20321 (vect_create_new_slp_node): Increment stmt reference count.
20322 (vect_get_and_check_slp_defs): Make sure stmts are nor already in
20323 an SLP tree before swapping operands.
20324 (vect_build_slp_tree): Likewise.
20325 (destroy_bb_vec_info): Free stmt info after SLP instances.
20326 * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
20327 * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
20328 (STMT_VINFO_NUM_SLP_USES): New macro.
20330 2016-01-15 Richard Biener <rguenther@suse.de>
20333 * dwarf2out.c (add_linkage_name_raw): New function split out from ...
20334 (add_linkage_name): ... here.
20335 (gen_typedef_die): Use add_linkage_name_raw instead of
20336 add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
20339 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
20341 * gimplify.c (oacc_default_clause): Decode reference and pointer
20342 types for both kernels and parallel regions.
20344 2016-01-15 Richard Sandiford <richard.sandiford@arm.com>
20346 PR middle-end/69246
20347 * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
20349 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
20351 * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
20352 (convert_scalars_to_vector): Likewise.
20354 2016-01-15 Jonathan Wakely <jwakely@redhat.com>
20356 * doc/extend.texi (Type Traits): Fix grammar.
20358 2016-01-15 Martin Jambor <mjambor@suse.cz>
20360 * tree-inline.c (remap_decl): Use existing dclarations if
20361 remapping a type and prevent_decl_creation_for_types.
20362 (replace_locals_stmt): Do an initial remapping of non-VLA typed
20363 decls first. Do real remapping with
20364 prevent_decl_creation_for_types set.
20365 * tree-inline.h (copy_body_data): New field
20366 prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
20369 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
20371 * config/s390/s390.opt (mmvcle): More verbose help text.
20373 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
20375 * config/s390/s390.opt: Add period to -mzvector option text.
20377 2016-01-15 Richard Biener <rguenther@suse.de>
20379 PR tree-optimization/68961
20380 * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
20381 of invariants in stores again.
20383 2016-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
20385 * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
20387 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
20389 * config/i386/i386.c (ix86_expand_branch): Don't split
20390 DI mode xor instruction to SI mode.
20392 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
20395 * ipa-icf.c (sem_function::merge): Virtual functions may become
20396 reachable even if they address is not taken and there are no
20399 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
20401 * lto-streamer-out.c (subtract_estimated_size): New function.
20402 (get_symbol_initial_value): Use it.
20404 2016-01-15 Christian Bruel <christian.bruel@st.com>
20407 * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
20408 (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
20409 (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
20410 use add_builtin_function_ext_scope instead of add_builtin_function.
20411 (neon_set_p, neon_crypto_set_p): Remove.
20412 (arm_init_builtins): Always call arm_init_neon_builtins and
20413 arm_init_crypto_builtins.
20414 (arm_expand_builtin): Check that builtins are allowed for the arch.
20415 * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
20416 * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
20417 arm_init_neon_builtins call.
20419 2016-01-15 Richard Biener <rguenther@suse.de>
20421 PR tree-optimization/69117
20422 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
20423 * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
20424 of the leader conservatively.
20425 (free_scc_vn): Restore original SSA name infos.
20427 2016-01-14 Jeff Law <law@redhat.com>
20429 PR tree-optimization/69270
20430 * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
20431 single bit of precision, verify it's also unsigned.
20432 (record_edge_info): Use constant_boolean_node rather than fold_convert
20433 to convert boolean_true/boolean_false to the right type.
20435 2016-01-14 Richard Henderson <rth@redhat.com>
20438 * loop-doloop.c (record_reg_sets): New.
20439 (doloop_optimize): Reject the transform if the sequence
20440 clobbers registers live at the end of the loop block.
20441 (doloop_optimize_loops): Enable df_live if needed.
20443 2016-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
20445 * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
20446 * config/rs6000/rs6000.c: Likewise.
20447 * config/rs6000/rs6000.h: Likewise.
20448 * config/rs6000/rs6000.md: Likewise.
20449 * doc/extend.texi: Likewsie.
20451 2016-01-14 Jeff Law <law@redhat.com>
20453 * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
20456 2016-01-14 Richard Henderson <rth@redhat.com>
20460 * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
20461 * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
20462 instead of builtin_decl_declared_p to test for declaration.
20464 2016-01-14 Nicklas Bo Jensen <nbjensen@gmail.com>
20466 * doc/loop.texi (Loop Analysis and Representation): Document
20467 loop_depth function.
20469 2016-01-14 Tom de Vries <tom@codesourcery.com>
20471 PR tree-optimization/68773
20472 * omp-low.c (expand_omp_target): Don't set force_output.
20473 * varpool.c (varpool_node::get_create): Same.
20474 * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
20475 offload_funcs with force_output.
20477 2016-01-14 Jakub Jelinek <jakub@redhat.com>
20480 * lra-eliminations.c (move_plus_up): Don't change anything if either
20481 the outer or inner subreg mode is not MODE_INT.
20482 * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
20483 integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
20485 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
20487 * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
20488 reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
20489 reduc_uplus_@var{m}): Remove.
20490 * expr.c (expand_expr_real_2): Remove expansion path for
20491 reduc_[us](min|max|plus) optabs.
20492 * optabs-tree.c (scalar_reduc_to_vector): Remove.
20493 * optabs-tree.h (scalar_reduc_to_vector): Remove.
20494 * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
20495 reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
20496 * tree-vect-loop.c (vectorizable_reduction): Remove test for
20497 reduc_[us](min|max|plus) optabs.
20499 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
20501 * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
20502 (reduc_plus_scal_v2sf): New.
20503 (reduc_smax_v2sf): Rename to...
20504 (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
20505 (reduc_smin_v2sf): Rename to...
20506 (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
20508 2016-01-14 Jan Hubicka <hubicka@ucw.cz>
20510 * alias.c (compare_base_symbol_refs): New function.
20511 (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
20514 2016-01-14 Jakub Jelinek <jakub@redhat.com>
20516 PR middle-end/68146
20517 PR tree-optimization/69155
20518 * tree-complex.c: Include cfganal.h.
20519 (phis_to_revisit): New variable.
20520 (extract_component): Add phiarg_p argument. Assert that returned
20521 SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
20522 (update_phi_components): Partly rewrite to use loop over real/imag
20523 components instead of code duplication. If extract_component returns
20524 SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
20525 create_tmp_reg into the PHI node instead, and mention the phi triplet
20526 in phis_to_revisit.
20527 (tree_lower_complex): Walk bbs in rpo order. Adjust phis recorded
20528 in phis_to_revisit at the end.
20530 2016-01-14 Richard Biener <rguenther@suse.de>
20532 PR tree-optimization/68060
20533 * tree-vect-loop.c (vect_is_simple_reduction): Check the
20534 outer loop reduction is only used in the inner loop before
20535 detecting a double reduction.
20537 2016-01-14 Jakub Jelinek <jakub@redhat.com>
20540 * combine.c (expand_field_assignment): Punt if compute_mode is
20541 unsupported scalar mode.
20543 2016-01-14 Richard Biener <rguenther@suse.de>
20545 PR tree-optimization/66856
20546 * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
20547 SLP node only if it built successfully.
20548 (vect_analyze_slp_instance): Adjust.
20550 2016-01-14 Jeff Law <law@redhat.com>
20552 PR tree-optimization/69270
20553 * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
20554 (record_edge_info): Use it. Convert boolean_{true,false}_node
20555 to the type of op0.
20557 2016-01-13 Jan Hubicka <hubicka@ucw.cz>
20560 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
20561 use block_ultimate_origin
20562 (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
20564 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
20566 * doc/invoke.texi (Submodel Options): Rename section to
20567 "Machine-Dependent Options" to better reflect its content.
20568 Rewrite introductory text to remove archaic CPU names.
20571 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
20573 * doc/invoke.texi (Code Gen Options): Move section up in file,
20574 before target-specific options. Update menu and option summary
20575 to reflect the new section ordering.
20577 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
20579 * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
20580 (C++ Dialect Options): Add cross-reference to -std option.
20581 * doc/standards.texi (C++ Language): Document C++14 support.
20583 2016-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
20585 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
20586 for pack/unpack functions for __ibm128.
20587 (PACK_IF): Likewise.
20588 (UNPACK_IF): Likewise.
20590 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
20591 support for __ibm128 pack/unpack functions.
20592 (rs6000_invalid_builtin): Likewise.
20593 (rs6000_init_builtins): Likewise.
20594 (rs6000_opt_masks): Likewise.
20596 * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
20597 (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
20599 (RS6000_BTM_COMMON): Likewise.
20601 * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
20602 (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
20603 disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
20604 128-bit floating point. Add support for the double values to be
20605 in Altivec registers for TF/IF packing and unpacking, but restrict
20606 TD packing sub-fields to be FPR registers. Don't allow overlapped
20607 register support for packing. Allow pack inputs to be memory
20608 locations. Don't build generator functions for unpack<mode>_dm
20609 and unpack<mode>_nodm.
20610 (unpack<mode>_dm): Likewise.
20611 (unpack<mode>_nodm): Likewise.
20612 (pack<mode>): Likewise.
20614 * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
20615 built-in functions to pack/unpack explicit __ibm128 values.
20616 (__builtin_unpack_ibm128): Likewise.
20618 * doc/extend.texi (PowerPC Built-in Functions): Document
20619 __builtin_pack_ibm128 and __builtin_unpack_ibm128.
20621 2016-01-13 Bernd Schmidt <bschmidt@redhat.com>
20624 * c-common.c (check_function_nonnull): Remove unnecessary declaration.
20625 Add new arg loc and pass it down as context.
20626 (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
20627 to the location to use for the warning.
20628 (check_function_arguments): New arg loc. All callers changed. Pass
20629 it to check_function_nonnull.
20630 * c-common.h (check_function_arguments): Adjust declaration.
20632 2016-01-13 Jakub Jelinek <jakub@redhat.com>
20634 PR tree-optimization/69156
20635 * gimple.c (validate_type): Removed.
20636 (gimple_builtin_call_types_compatible_p): Use
20637 useless_type_conversion_p instead of validate_type.
20638 * value-prof.c (gimple_stringop_fixed_value): Fold
20639 icall_size to correct type.
20641 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
20643 * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
20646 2016-01-13 Richard Henderson <rth@redhat.com>
20649 * target.def (builtin_tm_load, builtin_tm_store): Remove.
20650 * config/i386/i386.c (ix86_builtin_tm_load): Remove.
20651 (ix86_builtin_tm_store): Remove.
20652 (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
20653 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
20654 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
20655 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
20656 * doc/tm.texi: Rebuild.
20658 * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
20659 (BUILT_IN_TM_MEMCPY_RTWN): New.
20660 * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
20661 fallback from vector to integer helpers.
20662 (build_tm_load): Handle vector types directly, instead of
20664 (build_tm_store): Likewise.
20665 (expand_assign_tm): Prepare for register types not handled by
20666 the above. Copy them to memory and use memcpy.
20667 * tree.c (tm_define_builtin): New.
20668 (find_tm_vector_type): New.
20669 (build_tm_vector_builtins): New.
20670 (build_common_builtin_nodes): Call it.
20672 2016-01-13 Uros Bizjak <ubizjak@gmail.com>
20674 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
20675 TARGET_SSE_MATH without TARGET_SSE2. Rewrite.
20677 2016-01-13 Tom de Vries <tom@codesourcery.com>
20679 PR tree-optimization/69169
20680 * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
20681 handled_struct_type param.
20682 (create_variable_info_for, intra_create_variable_infos): Call
20683 create_variable_info_for_1 with extra arg.
20685 2016-01-13 Yvan Roux <yvan.roux@linaro.org>
20687 * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
20688 and "armv8.1-a+crc" entries.
20690 2016-01-13 Alexander Fomin <alexander.fomin@intel.com>
20693 * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
20694 Change first operand predicate from register_or_constm1_operand
20695 to register_operand.
20696 (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
20697 (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
20698 (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
20699 (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
20700 (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
20701 (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
20702 (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
20703 * config/i386/i386.c (ix86_expand_builtin): Remove first operand
20704 comparison with constm1_rtx from vec_prefetch_gen part.
20706 2016-01-13 Richard Biener <rguenther@suse.de>
20708 PR tree-optimization/69013
20709 * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
20710 Exchange assert for a test.
20712 2016-01-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20715 * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
20717 2016-01-13 Richard Biener <rguenther@suse.de>
20719 PR tree-optimization/69242
20720 * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
20721 assert with a check.
20723 2016-01-13 Richard Biener <rguenther@suse.de>
20725 PR tree-optimization/69186
20726 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
20727 Properly guard vect_update_misalignment_for_peel call.
20729 2016-01-12 Jeff Law <law@redhat.com>
20731 PR tree-optimization/pr67755
20732 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
20733 "need_profile_correction".
20734 (thread_block_1): Initialize new field to false by default. If we
20735 have multiple thread paths through a common joiner to different
20736 final targets, then set new field to true.
20737 (compute_path_counts): Only do count adjustment when it's really
20740 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
20742 * doc/invoke.texi (Spec Files): Move section down in file, past
20743 all command-line option descriptions.
20745 2016-01-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20747 PR middle-end/54809
20748 * doc/gty.texi: Remove documentation of mark_hook.
20749 * gengtype.c (struct write_types_data): Remove code to support
20750 mark_hook attribute.
20751 (walk_type): Likewise.
20752 (write_func_for_structure): Likewise.
20754 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
20756 * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
20757 Directory Options, and -specs= to Overall Options.
20758 (Overall Options): Adjust similarly. Reorder to group related
20759 options together. Make -specs= cross-reference the spec file details.
20760 (Directory Options): Adjust similarly.
20762 2016-01-12 Jeff Law <law@redhat.com>
20764 * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
20766 2016-01-12 Olivier Hainque <hainque@adacore.com>
20768 * gcc.c (spec_undefvar_allowed): New global.
20769 (process_command): Set to true when running for --version or --help,
20771 (getenv_spec_function): When the variable is not defined, use the
20772 variable name as the variable value if we're allowed not to issue
20775 2016-01-12 Bin Cheng <bin.cheng@arm.com>
20777 PR tree-optimization/68911
20778 * tree-vrp.c (adjust_range_with_scev): Check overflow in range
20779 information computed for expression "init + nit * step".
20781 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
20783 * doc/invoke.texi (Invoking GCC): Copy-edit. Incorporate information
20784 about name of GCC executable. Remove deleted node from menu.
20785 (Directory Options) <-B>: Remove cross-reference to deleted node.
20786 (Target Options): Delete section.
20788 2016-01-12 Christian Bruel <christian.bruel@st.com>
20791 * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
20792 for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
20794 2016-01-12 Jakub Jelinek <jakub@redhat.com>
20797 * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
20798 aligned_mem is properly set for AVX512-VL floating point masked
20802 * ifcvt.c (cond_exec_process_if_block): When removing the last
20803 insn from then_bb, remove also any possible barriers that follow it.
20805 2016-01-12 H.J. Lu <hongjiu.lu@intel.com>
20809 * config/i386/iamcu.h (SIZE_TYPE): New macro.
20810 (PTRDIFF_TYPE): Likewise.
20811 (WCHAR_TYPE): Likewise.
20812 (WCHAR_TYPE_SIZE): Likewise.
20813 (STDINT_LONG32): Likewise.
20815 2016-01-12 Richard Biener <rguenther@suse.de>
20817 PR tree-optimization/69053
20818 * tree-vect-loop.c (get_initial_def_for_reduction): Properly
20819 convert initial value for cond reductions.
20821 2016-01-12 Richard Biener <rguenther@suse.de>
20823 PR tree-optimization/69007
20824 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
20825 widen_sum after dot_prod and sad.
20827 2016-01-12 Richard Biener <rguenther@suse.de>
20829 PR tree-optimization/69168
20830 * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
20831 pattern stmt SLP type.
20832 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
20833 end up unused so cope with that case.
20835 2016-01-12 Richard Biener <rguenther@suse.de>
20837 PR tree-optimization/69157
20838 * tree-vect-stmts.c (vectorizable_mask_load_store): Check
20839 stmts def type only during analyze phase.
20840 (vectorizable_call): Likewise.
20841 (vectorizable_simd_clone_call): Likewise.
20842 (vectorizable_conversion): Likewise.
20843 (vectorizable_assignment): Likewise.
20844 (vectorizable_shift): Likewise.
20845 (vectorizable_operation): Likewise.
20846 (vectorizable_store): Likewise.
20847 (vectorizable_load): Likewise.
20849 2016-01-12 Richard Biener <rguenther@suse.de>
20851 PR tree-optimization/69174
20852 * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
20854 (vectorizable_load): Properly compute the number of loads needed
20855 for permuted strided SLP loads and do not spuriously assign
20856 to SLP_TREE_VEC_STMTS.
20858 2016-01-12 Andris Pavenis <andris.pavenis@iki.fi>
20860 * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
20861 (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
20862 (MD_EXEC_PREFIX): Remove.
20863 (MD_STARTFILE_PREFIX) Removee.
20864 (FILE_NAME_ABSOLUTE_P): Remove.
20865 (CPP_SPEC): Do not read macros from sys/version.h.
20866 (LINK_COMMAND_SPEC): Remove.
20867 (LOCAL_INCLUDE_DIR): Remove.
20868 (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
20869 (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
20870 (POST_LINK_SPEC): Define to invoke stubify after linker
20871 (LIBSTDCXX): Remove define
20872 (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
20873 (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
20874 (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
20875 (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
20876 (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
20877 (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
20878 (i386_djgpp_asm_named_section): Add propotype of new procedure
20880 * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
20881 (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
20882 (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
20883 in config/i386/djgpp.h).
20884 (STANDARD_STARTFILE_PREFIX_2): Define identical to
20885 STANDARD_STARTFILE_PREFIX_1.
20886 (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
20887 (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
20888 installation errors.
20889 (MAX_OFILE_ALIGNMENT): Define to 128.
20890 (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
20892 * config/i386/djgpp.c: New file. Add implementation of
20893 i386_djgpp_asm_named_section.
20895 * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
20897 * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
20898 Add rule for building djgpp.o.
20900 2016-01-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20902 * config/rs6000/rs6000.c (v2df_reduction_p): New function.
20903 (rtx_is_swappable_p): Reductions are swappable.
20904 (insn_is_swappable_p): V2DF reductions are swappable.
20906 2016-01-11 John David Anglin <danglin@gcc.gnu.org>
20908 * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
20909 reloads for other unsupported memory operands.
20911 2016-01-12 Kugan Vivekanandarajah <kuganv@linaro.org>
20912 Jim Wilson <jim.wilson@linaro.org>
20915 * config/arm/arm-builtins.c (arm_expand_neon_args): Call
20916 copy_to_mode_reg instead of force_reg.
20918 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
20921 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
20922 TARGET_80387 is true.
20924 2016-01-11 Jakub Jelinek <jakub@redhat.com>
20927 * lra-eliminations.c (move_plus_up): Only move plus up
20928 if subreg of the constant can be simplified into constant
20929 and use the simplified subreg of the constant instead of
20930 the original constant.
20932 * fold-const.c (fold_convertible_p): Don't return true
20933 for conversion of VECTOR_TYPE to same sized integral type.
20934 (fold_convert_loc): Fix up formatting. Fold conversion of
20935 VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
20936 instead of NOP_EXPR.
20938 PR tree-optimization/69214
20939 * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
20940 innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
20943 PR tree-optimization/69207
20944 * tree-vect-slp.c (vect_get_constant_vectors): For
20945 VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
20946 fold_convertible_p to vector_type's element type, and always
20947 use VCE for non-VECTOR_BOOLEAN_TYPE_P.
20949 2016-01-11 Richard Biener <rguenther@suse.de>
20951 PR tree-optimization/69173
20952 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
20953 fixup the cycle if all stmts are in a pattern.
20955 2016-01-11 Uros Bizjak <ubizjak@gmail.com>
20957 PR middle-end/68999
20958 * alias.c (base_alias_check): Move check for addresses with
20959 alignment ANDs before the call for compare_base_decls.
20960 (memrefs_conflict_p): Return -1 for different decls
20961 that went through alignment adjustments.
20963 2016-01-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20965 PR rtl-optimization/68796
20966 * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
20967 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
20968 and QImode comparisons against zero with CC_NZmode.
20969 * config/aarch64/iterators.md (short_mask): New mode_attr.
20971 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
20973 * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
20974 (<avx512>_store<mode>_mask): Likewise.
20976 2016-01-11 Bernd Schmidt <bschmidt@redhat.com>
20977 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20979 PR rtl-optimization/68841
20980 * ifcvt.c (struct noce_if_info): Add orig_x field.
20981 (bbs_ok_for_cmove_arith): Add to_rename parameter.
20982 Don't record conflicts on to_rename if it's present.
20983 Allow memory destinations in sets.
20984 (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
20985 blocks, passing orig_x to the checks.
20986 (noce_process_if_block): Set if_info->orig_x appropriately.
20988 2016-01-11 Tom de Vries <tom@codesourcery.com>
20990 PR tree-optimization/69069
20991 * tree-parloops.c (create_parallel_loop): Add missing phi args.
20993 2016-01-11 Yuri Rumyantsev <ysrumyan@gmail.com>
20995 PR rtl-optimization/68920
20996 * config/i386/i386.c (ix86_option_override_internal): Restrict number
20997 of conditional moves for RTL if-conversion to 1 for
20998 TARGET_ONE_IF_CONV_INSN.
20999 * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
21000 * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
21001 * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
21002 parameter to restirct number of conditional moves for
21004 * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
21005 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
21008 2016-01-11 Alexandre Oliva <aoliva@redhat.com>
21011 * var-tracking.c (drop_overlapping_mem_locs): Operate on all
21012 onepart vars. Fix typo in comment. Fix reversed condition in
21014 (dataflow_set_remove_mem_locs): Operate on all onepart vars.
21017 * var-tracking.c (dump_onepart_variable_differences): New.
21018 (dataflow_set_different): If a detailed dump is requested,
21019 delay early returns and dump differences between onepart
21020 variables present before and after, and added variables.
21022 2016-01-11 Ilya Enkovich <enkovich.gnu@gmail.com>
21025 * expr.c (expand_expr_real_1): For boolean vector constants
21026 with a scalar mode use const_scalar_mask_from_tree.
21027 (const_scalar_mask_from_tree): New.
21028 * optabs.c (expand_vec_cond_mask_expr): Use mask mode
21029 assigned to a mask type to handle constants.
21031 2016-01-11 Martin Jambor <mjambor@suse.cz>
21034 * ipa-cp.c (estimate_local_effects): Do not clone for removal of
21035 useless parameters if we cannot change function signature.
21037 2016-01-11 Martin Jambor <mjambor@suse.cz>
21040 * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
21043 2016-01-11 Tom de Vries <tom@codesourcery.com>
21045 PR tree-optimization/69109
21046 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
21049 2016-01-11 Tom de Vries <tom@codesourcery.com>
21051 PR tree-optimization/69108
21052 * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
21053 res is not used in a phi.
21055 2016-01-11 Yury Gribov <y.gribov@samsung.com>
21058 * common.opt (frandom-seed): Fix parameter name.
21059 * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
21061 2016-01-11 Tom de Vries <tom@codesourcery.com>
21063 PR tree-optimization/69058
21064 * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
21067 2016-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
21069 * config/arc/arc.opt (mdiv-rem): Add period to the end.
21070 (mcode-density): Likewise.
21072 2016-01-10 Tom de Vries <tom@codesourcery.com>
21074 PR tree-optimization/69062
21075 * tree-parloops.c (loop_has_phi_with_address_arg): New function.
21076 (parallelize_loops): Don't paralelize loop that has phi with address
21079 2016-01-10 Tom de Vries <tom@codesourcery.com>
21081 PR tree-optimization/69039
21082 * tree-parloops.c (try_create_reduction_list): Only allow single exit
21085 2016-01-09 John David Anglin <danglin@gcc.gnu.org>
21087 PR middle-end/68743
21088 * match.pd: Require target has function_c99_misc before doing
21089 truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
21091 2016-01-09 Gerald Pfeifer <gerald@pfeifer.com>
21093 * configure.ac (isl_options_set_schedule_serialize_sccs): Also
21095 * configure: Regenerate.
21097 2016-01-09 Jakub Jelinek <jakub@redhat.com>
21099 PR middle-end/50865
21100 PR tree-optimization/69097
21101 * fold-const.h (expr_not_equal_to): New prototype.
21102 * fold-const.c: Include stringpool.h and tree-ssanames.h.
21103 (expr_not_equal_to): New function.
21104 * match.pd (X % -Y is the same as X % Y): Don't optimize
21105 unless X is known not to be equal to minimum or Y is known
21106 not to be equal to -1.
21107 * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
21108 fold TRUNC_MOD_EXPR if the second argument is not a power of two.
21109 (simplify_stmt_using_ranges): Adjust caller.
21110 (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
21111 substitute_and_fold.
21113 2016-01-09 Jan Hubicka <hubicka@ucw.cz>
21115 * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
21118 2016-01-08 Jakub Jelinek <jakub@redhat.com>
21120 PR tree-optimization/69167
21121 * gimple-fold.c (replace_stmt_with_simplification): Also punt if
21122 new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
21124 * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
21126 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
21127 Richard Biener <rguenther@suse.de>
21129 PR tree-optimization/68707
21130 * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
21131 instances that can be handled via vect_load_lanes.
21133 2016-01-08 Uros Bizjak <ubizjak@gmail.com>
21135 * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
21136 if we can't determine address equivalence.
21137 * alias.c (compare_base_decl): Update for changed return value of
21138 symtab_node::equal_address_to.
21140 2016-01-08 Jason Merrill <jason@redhat.com>
21144 * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
21145 * expr.c (store_field): Not here.
21146 * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
21147 call with TREE_ADDRESSABLE type.
21148 * tree-cfg.c (verify_gimple_call): Adjust.
21150 2016-01-08 Olivier Hainque <hainque@adacore.com>
21152 * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
21155 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
21157 * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
21158 (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
21159 (reduc_smin_v2sf): Rename to...
21160 (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
21161 (reduc_splus_v2sf): Rename to...
21162 (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
21164 2016-01-08 Jakub Jelinek <jakub@redhat.com>
21166 PR tree-optimization/69162
21167 * gimplify.c (gimplify_va_arg_expr): Encode original type of
21168 valist argument in another argument.
21169 (gimplify_modify_expr): Adjust for the above change. Cleanup.
21170 * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
21171 to determine the va_list type, build a MEM_REF instead of
21172 build_fold_indirect_ref.
21174 PR tree-optimization/69172
21175 * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
21178 2016-01-08 Thomas Preud'homme <thomas.preudhomme@arm.com>
21180 PR tree-optimization/67781
21181 * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
21182 and cmpnop in two steps: first the ones not accessed in original
21183 gimple expression in a endian independent way and then the ones not
21184 accessed in the final result in an endian-specific way.
21186 2016-01-08 Jakub Jelinek <jakub@redhat.com>
21188 PR tree-optimization/69083
21189 * tree-vect-slp.c (vect_get_constant_vectors): For
21190 VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
21191 element type. If op is fold_convertible_p to vector_type's element
21192 type, use NOP_EXPR instead of VCE.
21194 2016-01-08 Segher Boessenkool <segher@kernel.crashing.org>
21196 PR rtl-optimization/67778
21197 PR rtl-optimization/68634
21198 PR rtl-optimization/68909
21199 * shrink-wrap.c (try_shrink_wrapping): Add comment. Don't pop
21200 block from the stack until done with it. Remove a superfluous
21201 bitmap set. Remove a superfluous bitmap test.
21203 2016-01-07 Martin Sebor <msebor@redhat.com>
21206 * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
21207 constraint on the type of arguments.
21209 2016-01-07 Andreas Tobler <andreast@gcc.gnu.org>
21211 * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
21212 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
21213 unaligned_access on the gcc_options set.
21214 * config/arm/arm.c (arm_option_override_internal): Use
21215 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
21217 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
21220 * config/i386/i386.c (ix86_frame_pointer_required): Enable
21221 frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
21223 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
21226 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
21229 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
21230 depending on frame_pointer_needed before remaining integer and SSE
21231 registers are saved.
21233 2016-01-07 Sandra Loosemore <sandra@codesourcery.com>
21236 * doc/extend.texi (Nvidia PDX Function Attributes): New section.
21238 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
21241 * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
21242 Use the "xBm" constraint.
21243 (float<sseintvecmodelower><mode>2<mask_name><round_name):
21245 (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
21246 (sse_cvtsi2ssq<round_name>): Likewise.
21247 (sse_cvtss2si<round_name>): Likewise.
21248 (sse_cvtss2siq<round_name>): Likewise.
21249 (sse2_cvtsi2sdq<round_name>): Likewise.
21250 (sse2_cvtsd2si<round_name>): Likewise.
21251 (sse2_cvtsd2siq<round_name>): Likewise.
21252 * config/i386/subst.md (round_nimm_scalar_predicate): New
21255 2015-12-15 Bernd Schmidt <bschmidt@redhat.com>
21257 PR middle-end/67639
21258 * varasm.c (make_decl_rtl): Mark invalid register vars as
21261 PR rtl-optimization/66206
21262 * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
21263 All callers changed.
21265 2016-01-07 Jakub Jelinek <jakub@redhat.com>
21267 PR tree-optimization/69141
21268 * tree-ssa-pre.c: Include langhooks.h.
21269 (eliminate_dom_walker::before_dom_children): Use
21270 lang_hooks.decl_printable_name instead of
21271 cgraph_node::get ()->name ().
21273 PR middle-end/68960
21274 * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
21275 it and DECL_ALIGN too.
21277 2016-01-06 Robert Suchanek <robert.suchanek@imgtec.com>
21279 * config/mips/mips-ftypes.def: Sort to lexicographical order.
21281 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
21284 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
21285 depending on frame_pointer_needed before remaining integer and SSE
21286 registers are saved.
21288 2015-01-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21290 * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
21291 mode iterator with VSX_M2.
21292 (*p9_vecstore_<mode>): Likewise.
21293 (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
21294 (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
21295 (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
21296 (define_split for VSX_LE128 stores): Likewise.
21297 (define_peephole2 for TImode LE swaps): Likewise.
21298 (define_split for VSX_LE128 post-reload stores): Likewise.
21300 2016-01-06 Marek Polacek <polacek@redhat.com>
21303 * convert.c (convert_to_integer_1): Adjust call to
21304 ubsan_instrument_float_cast. Use NULL_TREE instead of NULL.
21305 * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter. Use
21306 EXPR instead of ARG.
21307 * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
21309 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
21312 * doc/extend.texi (RL78 Variable Attributes): New section.
21314 2016-01-05 Marek Polacek <polacek@redhat.com>
21317 * builtins.c (get_memmodel): Use expansion point location rather than
21318 the input location. Call warning_at rather than warning.
21319 (expand_builtin_atomic_compare_exchange): Likewise.
21320 (expand_builtin_atomic_load): Likewise.
21321 (expand_builtin_atomic_store): Likewise.
21322 (expand_builtin_atomic_clear): Likewise.
21324 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
21327 * config/i386/i386.c (ix86_expand_vector_logical_operator):
21328 Replace nonimmediate_operand with vector_operand.
21329 * config/i386/predicates.md (vector_operand): New predicate.
21330 (general_vector_operand): Replace nonimmediate_operand with
21332 * config/i386/sse.md: Replace nonimmediate_operand with
21333 vector_operand and m constraint with Bm constraint on SSE
21334 patterns with 16-byte memory operand.
21335 * config/i386/subst.md (round_nimm_predicate): Replace
21336 nonimmediate_operand with vector_operand.
21337 (round_saeonly_nimm_predicate): Likewise.
21338 (round_saeonly_nimm_scalar_predicate): New.
21340 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
21343 * config/i386/constraints.md (Bm): New constraint.
21344 * config/i386/predicates.md (vector_memory_operand): New
21346 * config/i386/sse.md: Replace xm with xBm in plusminus and
21347 any_logic patterns.
21349 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
21352 * doc/extend.texi (V850 Function Attributes): New section.
21353 (V850 Variable Attributes): New section.
21355 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
21358 * doc/extend.texi (MicroBlaze Function Attributes): Document
21359 interrupt_handler and fast_interrupt attributes.
21361 2016-01-05 Sergei Trofimovich <siarheit@google.com>
21364 * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
21365 for local symbolic operands.
21366 * config/ia64/predicates.md (local_symbolic_operand64): New
21369 2016-01-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21371 PR rtl-optimization/68651
21372 * combine.c (combine_simplify_rtx): Canonicalize x + x into
21375 2016-01-05 Nathan Sidwell <nathan@acm.org>
21377 * alias.c (compare_base_decls): Use symtab_node::get.
21379 2016-01-05 Nick Clifton <nickc@redhat.com>
21382 * ira-costs.c (copy_cost): Initialise the t_icode field of the
21383 secondary_reload_info structure.
21386 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
21387 decls if weak support is available.
21389 2016-01-04 Martin Sebor <msebor@redhat.com>
21391 * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
21393 2016-01-04 Michael Meissner <meissner@linux.vnet.ibm.com>
21395 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
21396 OPTION_MASK_P9_DFORM.
21398 * config/rs6000/constraints.md (wo constraint): New constraint for
21401 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
21403 (rs6000_init_hard_regno_mode_ok): Likewise.
21405 * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
21408 * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
21409 expanders not to have constraints. Add support for ISA 3.0 xxperm
21410 instruction. Add support for fusing xxlor with xxperm.
21411 (altivec_vperm_<mode>_internal): Likewise.
21412 (altivec_vperm_v8hiv16qi): Likewise.
21413 (altivec_vperm_<mode>v16q): Likewise.
21414 (altivec_vperm_<mode>_uns): Likewise.
21415 (vperm_v8hiv4si): Likewise.
21416 (vperm_v16qiv8hi): Likewise.
21418 * doc/md.texi (RS/6000 constraints): Document wo constraint.
21420 2016-01-04 Jakub Jelinek <jakub@redhat.com>
21422 Update copyright years.
21424 * gcc.c (process_command): Update copyright notice dates.
21425 * gcov-dump.c (print_version): Ditto.
21426 * gcov.c (print_version): Ditto.
21427 * gcov-tool.c (print_version): Ditto.
21428 * gengtype.c (create_file): Ditto.
21429 * doc/cpp.texi: Bump @copying's copyright year.
21430 * doc/cppinternals.texi: Ditto.
21431 * doc/gcc.texi: Ditto.
21432 * doc/gccint.texi: Ditto.
21433 * doc/gcov.texi: Ditto.
21434 * doc/install.texi: Ditto.
21435 * doc/invoke.texi: Ditto.
21437 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
21439 * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
21440 modes larger than TImode as TImode if NEON is not enabled.
21442 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
21445 * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
21446 mode for %f0-%f31 only if TARGET_FPU.
21448 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
21451 * config/sparc/sparc.c (scan_record_type): Take into account subfields
21452 to compute the PACKED_P predicate.
21453 (function_arg_record_value): Minor tweaks.
21455 2016-01-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
21457 * doc/install.texi (--with-multilib-list): Describe the meaning of the
21458 option for arm*-*-* targets.
21460 2016-01-03 Sandra Loosemore <sandra@codesourcery.com>
21462 * doc/extend.texi (Common Function Attributes): Move docs for
21463 MSP430-specific attributes to....
21464 (MSP430 Function Attributes): ...here. Delete the redundant
21465 entries and copy-edit the remaining text.
21466 (MSP430 Variable Attributes): Use uniform format for index
21467 entries and add a cross-reference to the corresponding function
21470 2016-01-03 Vladimír Čunát <vcunat@gmail.com>
21472 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
21474 (x86 Options): Likewise.
21476 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
21480 * extend.texi (Common Function Attributes) <no_stack_limit>: New.
21481 * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
21482 to corresponding attribute.
21484 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
21486 * doc/extend.texi (Common Function Attributes) <noplt>: Move
21487 to correct alphabetization of table. Copy-edit and correct
21489 <stack_protect>: Likewise.
21490 <target_clones>: Likewise.
21492 * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
21493 Correct punctuation.
21494 (Code Gen Options) <-fno-plt>: Copy-edit.
21496 2016-01-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
21499 * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
21500 SI values. Explicitly convert SI to DI and vice-versa.
21502 2016-01-01 Jakub Jelinek <jakub@redhat.com>
21504 PR tree-optimization/69070
21505 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
21506 REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
21509 * ubsan.c (ubsan_instrument_float_cast): Call
21510 initialize_sanitizer_builtins.
21513 * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
21515 Copyright (C) 2016 Free Software Foundation, Inc.
21517 Copying and distribution of this file, with or without modification,
21518 are permitted in any medium without royalty provided the copyright
21519 notice and this notice are preserved.