PR c/78673 - sprintf missing attribute nonnull on destination argument
[gcc.git] / gcc / ChangeLog
1 2016-12-14 Martin Sebor <msebor@redhat.com>
2
3 PR c/17308
4 * builtin-attrs.def (ATTR_NONNULL_1_1, ATTR_NONNULL_1_2): Defined.
5 (ATTR_NONNULL_1_3, ATTR_NONNULL_1_4, ATTR_NONNULL_1_5): Same.
6 (ATTR_NOTHROW_NONNULL_1_1, ATTR_NOTHROW_NONNULL_1_2): Same.
7 (ATTR_NOTHROW_NONNULL_1_3, ATTR_NOTHROW_NONNULL_1_4): Same.
8 (ATTR_NOTHROW_NONNULL_1_5): Same.
9 (ATTR_NONNULL_1_FORMAT_PRINTF_1_2): Same.
10 (ATTR_NONNULL_1_FORMAT_PRINTF_2_0): Same.
11 (ATTR_NONNULL_1_FORMAT_PRINTF_2_3): Same.
12 (ATTR_NONNULL_1_FORMAT_PRINTF_3_0): Same.
13 (ATTR_NONNULL_1_FORMAT_PRINTF_3_4): Same.
14 (ATTR_NONNULL_1_FORMAT_PRINTF_4_0): Same.
15 (ATTR_NONNULL_1_FORMAT_PRINTF_4_5): Same.
16 * builtins.c (validate_arg): Add argument. Treat null pointers
17 passed to nonnull arguments as invalid.
18 (validate_arglist): Same.
19 * builtins.def (fprintf, fprintf_unlocked): Add nonnull attribute.
20 (printf, printf_unlocked, sprintf. vfprintf, vsprintf): Same.
21 (__sprintf_chk, __vsprintf_chk, __fprintf_chk, __vfprintf_chk): Same.
22 * calls.c (get_nonnull_ags, maybe_warn_null_arg): New functions.
23 (initialize_argument_information): Diagnose null pointers passed to
24 arguments declared nonnull.
25 * calls.h (get_nonnull_args): Declared.
26
27 2016-12-14 Michael Meissner <meissner@linux.vnet.ibm.com>
28
29 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): On ISA
30 3.0/power9, add support to use the VEXTU{B,H,W}{L,R}X extract
31 instructions.
32 * config/rs6000/vsx.md (VSr2): Add IEEE 128-bit floating point
33 type constraint registers.
34 (VSr3): Likewise.
35 (FL_CONV): New mode iterator for binary floating types that have a
36 direct conversion from 64-bit integer to floating point.
37 (vsx_extract_<mode>_p9): Add support for the ISA 3.0/power9
38 VEXTU{B,H,W}{L,R}X extract instructions.
39 (vsx_extract_<mode>_p9 splitter): Add splitter to load up the
40 extract byte position into the GPR if we are using the
41 VEXTU{B,H,W}{L,R}X extract instructions.
42 (vsx_extract_<mode>_di_p9): Support extracts to GPRs.
43 (vsx_extract_<mode>_store_p9): Support extracting to GPRs so that
44 we can use reg+offset address instructions.
45 (vsx_extract_<mode>_var): Support extracts to GPRs.
46 (vsx_extract_<VSX_EXTRACT_I:mode>_<SDI:mode>_var): New combiner
47 insn to combine vector extracts with zero_extend.
48 (vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>): Optimize
49 extracting a small integer vector element and converting it to a
50 floating point type.
51 (vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Likewise.
52 (UNSPEC_XXEXTRACTUW): New unspec.
53 (UNSPEC_XXINSERTW): Likewise.
54 (vextract4b): Add support for the vec_vextract4b built-in
55 function.
56 (vextract4b_internal): Likewise.
57 (vinsert4b): Add support for the vec_insert4b built-in function.
58 Include both a version that inserts element 1 from a V4SI object
59 and one that inserts a DI object.
60 (vinsert4b_internal): Likewise.
61 (vinsert4b_di): Likewise.
62 (vinsert4b_di_internal): Likewise.
63 * config/rs6000/predicates.md (const_0_to_11_operand): New
64 predicate, match 0..11.
65 * config/rs6000/rs6000-builtin.def (BU_P9V_VSX_3): Set built-in
66 type to ternary, not binary.
67 (BU_P9V_64BIT_VSX_3): Likewise.
68 (P9V_BUILTIN_VEXTRACT4B): Add support for vec_vinsert4b and
69 vec_extract4b non-overloaded built-in functions.
70 (P9V_BUILTIN_VINSERT4B): Likewise.
71 (P9V_BUILTIN_VINSERT4B_DI): Likewise.
72 (P9V_BUILTIN_VEC_VEXTULX): Move to section that adds 2 operand ISA
73 3.0 built-in functions.
74 (P9V_BUILTIN_VEC_VEXTURX): Likewise.
75 (P9V_BUILTIN_VEC_VEXTRACT4B): Add support for overloaded
76 vec_insert4b and vec_extract4 built-in functions.
77 (P9V_BUILTIN_VEC_VINSERT4B): Likewise.
78 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
79 overloaded support for vec_vinsert4b and vec_extract4b.
80 * config/rs6000/rs6000.c (altivec_expand_builtin): Add checks for
81 the vec_insert4b and vec_extract4b byte number being a constant in
82 the range 0..11.
83 * config/rs6000/altivec.h (vec_vinsert4b): Support vec_vinsert4b
84 and vec_extract4b built-in functions.
85 * doc/extend.doc (PowerPC VSX built-in functions): Document
86 vec_insert4b and vec_extract4b.
87
88 2016-12-14 Martin Liska <mliska@suse.cz>
89
90 * gimple-pretty-print.c (dump_probability): New function.
91 (dump_edge_probability): Use the function.
92 (dump_gimple_label): Likewise.
93 (dump_gimple_bb_header): Likewise.
94
95 2016-12-14 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
96 Jakub Jelinek <jakub@redhat.com>
97
98 * tree-ssa-strlen.c (fold_strstr_to_memcmp): New function.
99 (strlen_optimize_stmt): Call fold_strstr_to_memcmp.
100
101 2016-12-14 Eric Botcazou <ebotcazou@adacore.com>
102
103 * lra-constraints.c (process_address_1): Do not attempt to decompose
104 addresses for MEMs that satisfy fixed-form constraints.
105
106 2016-12-14 Richard Biener <rguenther@suse.de>
107
108 PR tree-optimization/78788
109 * tree-vrp.c (set_value_range): Allow [-INF(OVF), +INF(OVF)].
110 (set_and_canonicalize_value_range): Do not drop the above to
111 VARYING.
112
113 2016-12-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
114
115 * config/rs6000/rs600.c (rs6000_builtin_vectorization_cost):
116 Adjust unaligned load cost.
117
118 2016-12-13 Uros Bizjak <ubizjak@gmail.com>
119
120 PR target/78794
121 * config/i386/i386.c (dimode_scalar_chain::compute_convert_gain):
122 Calculate additional gain for andnot for targets without BMI.
123
124 2016-12-13 Carl Love <cel@us.ibm.com>
125
126 * config/rs6000/rs6000-c.c: Add built-in support for
127 vector float vec_pack (vector double, vector double)
128 vector double vec_sld (vector double, vector double)
129 * config/rs6000/rs6000.c: Add icode check for vsldoi_v2df to allow
130 4-bit unsigned literal.
131 * config/rs6000/rs6000-builtin.def: Add definition for VSLDOI_2DF
132 * doc/extend.texi: Update the built-in documentation file for the
133 new powerpc vec_pack and vec_sld built-ins.
134
135 2016-12-13 Martin Liska <mliska@suse.cz>
136
137 * sanopt.c (sanopt_optimize_walker): Set contains_asan_mark.
138 (sanopt_optimize): Add new argument.
139 (sanitize_asan_mark_unpoison): New function.
140 (maybe_contains_asan_check): Likewise.
141 (sanitize_asan_mark_poison): Likewise.
142 (pass_sanopt::execute): Call the new functions.
143
144 2016-12-13 Martin Liska <mliska@suse.cz>
145
146 PR tree-optimization/78428
147 * expr.c (store_constructor_field): Add new arguments to the function.
148 (store_constructor): Set up bitregion_end and add gcc_unreachable to
149 fields that have either non-constant size or (and) offset.
150
151 2016-12-13 Marek Polacek <polacek@redhat.com>
152
153 * tree-data-ref.c (compute_overlap_steps_for_affine_univar): Change
154 parameters' type from int to HOST_WIDE_INT.
155 (compute_overlap_steps_for_affine_1_2): Change parameters' type from
156 int to HOST_WIDE_INT.
157 (build_classic_dist_vector_1): Likewise.
158 (add_multivariate_self_dist): Likewise.
159
160 2016-12-13 Michael Matz <matz@suse.de>
161
162 PR tree-optimization/78725
163 * tree-ssa-loop-split.c (split_at_bb_p): Check for overflow and
164 at correct use point.
165
166 2016-12-13 Martin Liska <mliska@suse.cz>
167
168 * asan.c (asan_expand_mark_ifn): Use renamed
169 BUILT_IN_ASAN_{UN}CLOBBER_N to BUILT_IN_ASAN_{UN}POISON_STACK_MEMORY.
170 * sanitizer.def: Likewise.
171
172 2016-12-13 James Greenhalgh <james.greenhalgh@arm.com>
173
174 * doc/extend.texi (Half-Precision): Update to document current
175 compiler behaviour.
176
177 2016-12-13 James Greenhalgh <james.greenhalgh@arm.com>
178
179 * doc/extend.texi (Floating Types): Document availability of
180 _Float16 on ARM/AArch64.
181
182 2016-12-13 Richard Biener <rguenther@suse.de>
183
184 PR tree-optimization/78699
185 * tree-vect-data-refs.c (vect_analyze_group_access_1): Limit
186 group size.
187
188 2016-12-13 Richard Biener <rguenther@suse.de>
189
190 PR middle-end/78742
191 * tree.c (cst_and_fits_in_hwi): Look if the actual value fits.
192 * tree-object-size.c (compute_builtin_object_size): Use
193 tree_fits_shwi_p.
194 * tree-data-ref.c (initialize_matrix_A): Remove excess assert.
195
196 2016-12-13 Martin Liska <mliska@suse.cz>
197
198 * asan.c (asan_mark_poison_p): Remove.
199 (asan_mark_p): New function.
200 (transform_statements): Use the function.
201 (asan_expand_mark_ifn): Do not use masked enum.
202 * asan.h (enum asan_mark_flags): Declare it via a macro.
203 * gimple-pretty-print.c (dump_gimple_call_args): Dump first
204 argument of ASAN_MARK.
205 * gimplify.c (build_asan_poison_call_expr): Use new enum values.
206 (asan_poison_variable): Likewise.
207
208 2016-12-13 Jakub Jelinek <jakub@redhat.com>
209
210 PR ipa/77905
211 * ipa-pure-const.c (cdtor_p): Return true for
212 DECL_STATIC_{CON,DE}STRUCTOR even when it is
213 DECL_LOOPING_CONST_OR_PURE_P.
214
215 2016-12-12 Jakub Jelinek <jakub@redhat.com>
216
217 PR tree-optimization/78777
218 * gimple-ssa-strength-reduction.c (create_add_on_incoming_edge,
219 insert_initializers): Use stmt_ends_bb_p instead of is_ctrl_stmt.
220
221 PR other/78766
222 * opt-functions.awk (opt_args): Use [{] instead of { in regexps.
223 Formatting fix.
224
225 2016-12-12 Martin Sebor <msebor@redhat.com>
226
227 PR middle-end/78622
228 PR middle-end78606
229 * gimple-ssa-sprintf.c (min_bytes_remaining): Use res.knownrange
230 rather than res.bounded.
231 (get_width_and_precision): Set precision to -1 when negative.
232 (adjust_range_for_overflow): New function.
233 (format_integer): Correct the handling of the space, plus, and pound
234 flags, and the special case of zero precision.
235 Always set res.bounded to true unless either precision or width
236 is specified and unknown.
237 Call adjust_range_for_overflow.
238 Avoid use zero as the shortest value when precision is specified
239 but unknown.
240 (format_directive): Remove vestigial quoting. Always inform of
241 argument value or range when it's available.
242 (add_bytes): Correct the computation of boundrange used to
243 decide whether a warning is of a "maybe" or "defnitely" kind.
244
245 2016-12-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
246
247 * combine.c (change_zero_ext): Handle mode expanding zero_extracts.
248
249 2016-12-12 Uros Bizjak <ubizjak@gmail.com>
250
251 PR target/78738
252 * config/i386/i386.h (X87_ENABLE_ARITH): Also enable for
253 flag_unsafe_math_optimizations.
254 (X87_ENABLE_FLOAT): Ditto.
255
256 2016-12-12 Marek Polacek <polacek@redhat.com>
257
258 PR middle-end/78716
259 * gimplify.c (gimplify_va_arg_expr): Don't require ADDR_EXPR for
260 Case 1; check POINTER_TYPE_P instead.
261
262 2016-12-12 Bernd Schmidt <bschmidt@redhat.com>
263
264 PR rtl-optimization/78669
265 * ira.c (combine_and_move_insns): When deleting an insn, clear the
266 replace flag for all used regs in that insn.
267
268 2016-12-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
269
270 * config/arm/arm-opts.h: Move struct arm_arch_core_flag and
271 arm_arch_core_flags to ...
272 * common/config/arm/arm-common.c: There.
273
274 2016-12-12 Eric Botcazou <ebotcazou@adacore.com>
275
276 * config/sparc/constraints.md (T): Use special memory constraint.
277 (U): Minor tweak.
278 (W): Add TARGET_ARCH64 test.
279 * config/sparc/sparc.md (*movdi_insn_sp32): Replace 'W' with 'T'.
280 (*movdf_insn_sp32): Likewise.
281 (*mov<VM64:mode>_insn_sp32): Likewise. Replace 'e' with 'f' in
282 conjunction with offsettable memory references.
283
284 2016-12-11 Sandra Loosemore <sandra@codesourcery.com>
285
286 * config/nios2/nios2.c (nios2_emit_move_sequence): Call copy_rtx
287 to avoid shared structure error.
288
289 2016-12-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
290
291 PR target/78695
292 * config/rs6000/rs6000.c (find_alignment_op): Discard from
293 consideration any artificial definition.
294
295 2016-12-11 Iain Sandoe <iain@codesourcery.com>
296
297 * configure.ac (CROSS directory tests): Remove the assumption that
298 Darwin hosts contain suitable target sysroots in "/".
299 * configure: Regenerate.
300
301 2016-12-11 Iain Sandoe <iain@codesourcery.com>
302
303 PR rtl-optimization/71496
304 * config/rs6000/darwin.md (load_macho_picbase_si): Mark as non-
305 copyable. (load_macho_picbase_di, reload_macho_picbase_si,
306 reload_macho_picbase_di): Likewise.
307
308 2012-12-11 John David Anglin <danglin@gcc.gnu.org>
309
310 * config/pa/pa.c (pa_callee_copies): New function.
311 * config/pa/pa.opt (mcaller-copies): New option.
312 * doc/invoke.texi (mcaller-copies): Document option.
313
314 2016-12-11 Uros Bizjak <ubizjak@gmail.com>
315
316 PR target/70799
317 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p)
318 <case ASHIFT, case LSHIFTRT>: Consider all constant shifts.
319 Add FIXME comment.
320 (dimode_scalar_chain::compute_convert_gain): Reduce gain for
321 constant shifts larger or equal than 32.
322
323 2016-12-11 Roger Pau Monné <roger.pau@citrix.com>
324
325 * config/i386/x86-64.h: Append --32 to the assembler options when
326 -m16 is used on non-glibc systems as well.
327
328 2016-12-10 Allan Sandfeld Jensen <allan.jensen@qt.io>
329
330 PR target/70118
331 * config/i386/mmintrin.h (__m64_u): New type
332 * config/i386/emmintrin.h (_mm_loadl_epi64, _mm_storel_epi64):
333 Make the allowed unaligned memory access explicit.
334
335 2016-12-10 Krister Walfridsson <krister.walfridsson@gmail.com>
336
337 * config.gcc (i386-*-netbsd*): Make i486 the default arch on NetBSD.
338 Generally use cpu generic.
339
340 2016-12-10 Jakub Jelinek <jakub@redhat.com>
341 Marc Glisse <marc.glisse@inria.fr>
342
343 PR tree-optimization/78720
344 * match.pd (A < 0 ? C : 0): Only optimize for signed A. If shift
345 is negative, sign extend to @1's type and than AND with C.
346
347 2016-12-10 Jakub Jelinek <jakub@redhat.com>
348
349 PR fortran/78758
350 * tree-object-size.c (compute_object_offset) <case ARRAY_REF>: Handle
351 non-zero low bound or non-standard element sizes.
352
353 PR sanitizer/78708
354 * lto-streamer-in.c (input_function): In addition to debug stmts
355 without -g, remove IFN_*SAN_* calls if corresponding flag_sanitize
356 bit is not enabled.
357
358 2016-12-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
359
360 * config/rs6000/rs6000-passes.def: New file.
361 * config/rs6000/rs6000-protos.h: Declare make_pass_analyze_swaps.
362 * config/rs6000/rs6000.c (rs6000_option_override): Remove
363 registration of machine-specific passes.
364 (pass_analyze_swaps::clone): New function.
365 * config/rs6000/t-rs6000: Define PASSES_EXTRA.
366
367 2016-12-09 Kugan Vivekanandarajah <kuganv@linaro.org>
368
369 PR ipa/78721
370 * ipa-cp.c (propagate_vr_accross_jump_function): Call
371 drop_tree_overflow after fold_convert.
372
373 2016-12-09 Jakub Jelinek <jakub@redhat.com>
374
375 PR target/72742
376 * config/rs6000/rs6000.md (*and<mode>3_imm_mask_dot,
377 *and<mode>3_imm_mask_dot2): Add rs6000_is_valid_and_mask to insn
378 condition.
379
380 2016-12-09 Segher Boessenkool <segher@kernel.crashing.org>
381
382 PR target/78683
383 * config/rs6000/rs6000.h (CLZ_DEFINED_VALUE_AT_ZERO): Use
384 GET_MODE_BITSIZE. Return 2.
385 (CTZ_DEFINED_VALUE_AT_ZERO): Use GET_MODE_BITSIZE. Return 2. Handle
386 TARGET_POPCNTD the same as TARGET_CTZ.
387 * config/rs6000/rs6000.md (ctz<mode>2): Reimplement.
388 (ffs<mode>2): Reimplement.
389
390 2016-12-09 Andre Vieira <andre.simoesdiasvieira@arm.com>
391
392 PR rtl-optimization/78255
393 * gcc/postreload.c (reload_cse_simplify): Do not CSE a function if
394 NO_FUNCTION_CSE is true.
395
396 2016-12-09 Cesar Philippidis <cesar@codesourcery.com>
397
398 PR ipa/78027
399 * ipa-icf.c (sem_function::parse): Don't process functions with
400 oacc decl attributes, as they may be OpenACC routines.
401
402 2016-12-09 David Malcolm <dmalcolm@redhat.com>
403
404 * rtl.h (get_mem_attrs): Add "const" qualifier to returned
405 pointer.
406
407 2016-12-09 Nathan Sidwell <nathan@acm.org>
408
409 PR C++/78550
410 * convert.c (convert_to_integer_1): Maybe fold conversions to
411 integral types with fewer bits than its mode.
412
413 2016-12-09 Martin Liska <mliska@suse.cz>
414
415 * tree-pretty-print.c (pretty_print_string): Escape non-printable
416 chars in strings.
417
418 2016-12-09 Jakub Jelinek <jakub@redhat.com>
419
420 PR tree-optimization/78726
421 * tree-ssa-reassoc.c (make_new_ssa_for_def): Add OPCODE and OP
422 argument. For lhs uses in debug stmts, don't replace lhs with
423 new_lhs, but with a debug temp set to new_lhs opcode op.
424 (make_new_ssa_for_all_defs): Add OPCODE argument, pass OPCODE and
425 OP down to make_new_ssa_for_def.
426 (zero_one_operation): Call make_new_ssa_for_all_defs even when
427 stmts_to_fix is empty, if *def has not changed yet. Pass
428 OPCODE to make_new_ssa_for_all_defs.
429
430 2016-12-08 Martin Sebor <msebor@redhat.com>
431
432 PR c/78284
433 * builtin-attrs.def (ATTR_ALLOC_SIZE, ATTR_RETURNS_NONNULL): New
434 identifier tree nodes.
435 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): New attribute list.
436 (ATTR_MALLOC_SIZE_1_NOTHROW_LIST): Same.
437 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Same.
438 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Same.
439 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Same.
440 * builtins.c (expand_builtin_alloca): Call
441 maybe_warn_alloc_args_overflow.
442 * builtins.def (aligned_alloc, calloc, malloc, realloc):
443 Add attribute alloc_size.
444 (alloca): Add attribute alloc_size and returns_nonnull.
445 * calls.h (maybe_warn_alloc_args_overflow): Declare.
446 * calls.c (alloc_max_size, operand_signed_p): New functions.
447 (maybe_warn_alloc_args_overflow): Define.
448 (initialize_argument_information): Diagnose overflow in functions
449 declared with attaribute alloc_size.
450 * doc/invoke.texi (Warning Options): Document -Walloc-zero and
451 -Walloc-size-larger-than.
452
453 2016-12-08 Vladimir Makarov <vmakarov@redhat.com>
454
455 PR rtl-optimization/78671
456 * lra-assign.c (find_hard_regno_for_1): Check prohibited regs for an
457 allocno class.
458
459 2016-12-08 Uros Bizjak <ubizjak@gmail.com>
460
461 * config/i386/i386.h (HARD_REGNO_NREGS): Use GENERAL_REGNO_P.
462 (HARD_REGNO_NREGS_HAS_PADDING): Ditto. Simplify macro.
463
464 2015-12-08 Wilco Dijkstra <wdijkstr@arm.com>
465
466 PR target/78733
467 * config/aarch64/aarch64.c (aarch64_classify_address):
468 Set load_store_pair_p for TImode and TFmode.
469
470 2016-12-08 David Malcolm <dmalcolm@redhat.com>
471
472 * emit-rtl.c (gen_reg_rtx): Move regno_pointer_align and
473 regno_reg_rtx resizing logic to...
474 (emit_status::ensure_regno_capacity): ...this new method,
475 and ensure that the buffers are large enough.
476 (init_emit): Allocate regno_reg_rtx using ggc_cleared_vec_alloc
477 rather than ggc_vec_alloc.
478 * function.h (emit_status::ensure_regno_capacity): New method.
479
480 2016-12-08 Dmitry Vyukov <dvyukov@google.com>
481
482 * opts.c (finish_options): Enable -fsanitize-address-use-after-scope
483 only if -fsanitize=address is enabled (not -fsanitize=kernel-address).
484 * doc/invoke.texi (-fsanitize=kernel-address):
485 Don't say that it enables -fsanitize-address-use-after-scope.
486
487 2016-12-08 Bin Cheng <bin.cheng@arm.com>
488
489 PR middle-end/78684
490 * tree-vect-loop-manip.c (create_intersect_range_checks_index): Check
491 sign bit for index step of data reference.
492
493 2016-12-08 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
494
495 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
496 Handle SYMBOL_SMALL_TLSGD for ILP32.
497 * config/aarch64/aarch64.md : tlsgd_small modified into
498 tlsgd_small_<mode> to support SImode and DImode.
499 *tlsgd_small modified into *tlsgd_small_<mode> to support SImode and
500 DImode.
501
502 2016-12-08 Andrew Pinski <apinski@cavium.com>
503
504 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
505 Access the lower part of RTX appropriately.
506
507 2016-12-07 David Malcolm <dmalcolm@redhat.com>
508
509 * genpreds.c (write_tm_constrs_h): Update for renaming of
510 rtx_reader_ptr to md_reader_ptr.
511 (write_tm_preds_h): Likewise.
512 (write_insn_preds_c): Likewise.
513 * read-md.c (rtx_reader_ptr): Rename to...
514 (md_reader_ptr): ...this, and convert from an
515 rtx_reader * to a md_reader *.
516 (rtx_reader::set_md_ptr_loc): Rename to...
517 (md_reader::set_md_ptr_loc): ...this.
518 (rtx_reader::get_md_ptr_loc): Rename to...
519 (md_reader::get_md_ptr_loc): ...this.
520 (rtx_reader::copy_md_ptr_loc): Rename to...
521 (md_reader::copy_md_ptr_loc): ...this.
522 (rtx_reader::fprint_md_ptr_loc): Rename to...
523 (md_reader::fprint_md_ptr_loc): ...this.
524 (rtx_reader::print_md_ptr_loc): Rename to...
525 (md_reader::print_md_ptr_loc): ...this.
526 (rtx_reader::join_c_conditions): Rename to...
527 (md_reader::join_c_conditions): ...this.
528 (rtx_reader::fprint_c_condition): ...this.
529 (rtx_reader::print_c_condition): Rename to...
530 (md_reader::print_c_condition): ...this.
531 (fatal_with_file_and_line): Update for renaming of
532 rtx_reader_ptr to md_reader_ptr.
533 (rtx_reader::require_char): Rename to...
534 (md_reader::require_char): ...this.
535 (rtx_reader::require_char_ws): Rename to...
536 (md_reader::require_char_ws): ...this.
537 (rtx_reader::require_word_ws): Rename to...
538 (md_reader::require_word_ws): ...this.
539 (rtx_reader::read_char): Rename to...
540 (md_reader::read_char): ...this.
541 (rtx_reader::unread_char): Rename to...
542 (md_reader::unread_char): ...this.
543 (rtx_reader::peek_char): Rename to...
544 (md_reader::peek_char): ...this.
545 (rtx_reader::read_name): Rename to...
546 (md_reader::read_name): ...this.
547 (rtx_reader::read_escape): Rename to...
548 (md_reader::read_escape): ...this.
549 (rtx_reader::read_quoted_string): Rename to...
550 (md_reader::read_quoted_string): ...this.
551 (rtx_reader::read_braced_string): Rename to...
552 (md_reader::read_braced_string): ...this.
553 (rtx_reader::read_string): Rename to...
554 (md_reader::read_string): ...this.
555 (rtx_reader::read_skip_construct): Rename to...
556 (md_reader::read_skip_construct): ...this.
557 (rtx_reader::handle_constants): Rename to...
558 (md_reader::handle_constants): ...this.
559 (rtx_reader::traverse_md_constants): Rename to...
560 (md_reader::traverse_md_constants): ...this.
561 (rtx_reader::handle_enum): Rename to...
562 (md_reader::handle_enum): ...this.
563 (rtx_reader::lookup_enum_type): Rename to...
564 (md_reader::lookup_enum_type): ...this.
565 (rtx_reader::traverse_enum_types): Rename to...
566 (md_reader::traverse_enum_types): ...this.
567 (rtx_reader::rtx_reader): Rename to...
568 (md_reader::md_reader): ...this, and update for renaming of
569 rtx_reader_ptr to md_reader_ptr.
570 (rtx_reader::~rtx_reader): Rename to...
571 (md_reader::~md_reader): ...this, and update for renaming of
572 rtx_reader_ptr to md_reader_ptr.
573 (rtx_reader::handle_include): Rename to...
574 (md_reader::handle_include): ...this.
575 (rtx_reader::handle_file): Rename to...
576 (md_reader::handle_file): ...this.
577 (rtx_reader::handle_toplevel_file): Rename to...
578 (md_reader::handle_toplevel_file): ...this.
579 (rtx_reader::get_current_location): Rename to...
580 (md_reader::get_current_location): ...this.
581 (rtx_reader::add_include_path): Rename to...
582 (md_reader::add_include_path): ...this.
583 (rtx_reader::read_md_files): Rename to...
584 (md_reader::read_md_files): ...this.
585 * read-md.h (class rtx_reader): Split into...
586 (class md_reader): ...new class.
587 (rtx_reader_ptr): Rename to...
588 (md_reader_ptr): ...this, and convert to a md_reader *.
589 (class noop_reader): Update base class to be md_reader.
590 (class rtx_reader): Reintroduce as a subclass of md_reader.
591 (rtx_reader_ptr): Reintroduce as a rtx_reader *.
592 (read_char): Update for renaming of rtx_reader_ptr to
593 md_reader_ptr.
594 (unread_char): Likewise.
595 * read-rtl.c (rtx_reader_ptr): New global.
596 (rtx_reader::apply_iterator_to_string): Rename to...
597 (md_reader::apply_iterator_to_string): ...this.
598 (rtx_reader::copy_rtx_for_iterators): Rename to...
599 (md_reader::copy_rtx_for_iterators): ...this.
600 (rtx_reader::read_conditions): Rename to...
601 (md_reader::read_conditions): ...this.
602 (rtx_reader::record_potential_iterator_use): Rename to...
603 (md_reader::record_potential_iterator_use): ...this.
604 (rtx_reader::read_mapping): Rename to...
605 (md_reader::read_mapping): ...this.
606 (rtx_reader::read_rtx): Use rtx_reader_ptr when calling
607 read_rtx_code.
608 (rtx_reader::read_rtx_operand): Use get_string_obstack rather
609 than directly accessing m_string_obstack.
610 (rtx_reader::rtx_reader): New ctor.
611 (rtx_reader::~rtx_reader): New dtor.
612
613 2016-12-07 Martin Sebor <msebor@redhat.com>
614
615 PR middle-end/77784
616 PR middle-end/78149
617 PR middle-end/78138
618
619 * builtins.c (expand_builtin_strcat, expand_builtin_strncat): New
620 functions.
621 (compute_dest_size, get_size_range, check_sizes, check_strncat_sizes)
622 (check_memop_sizes): Same.
623 (expand_builtin_memcpy): Call check memop_sizes.
624 (expand_builtin_mempcpy): Same.
625 (expand_builtin_memset): Same,
626 (expand_builtin_bzero): Same.
627 (expand_builtin_memory_chk): Call check_sizes.
628 (expand_builtin_strcpy): Same.
629 (expand_builtin_strncpy): Same.
630 (maybe_emit_sprintf_chk_warning): Same.
631 (expand_builtin): Handle strcat and strncat.
632 (fini_object_sizes): Reset pointers.
633 (compute_object_size): New function.
634 * gimple-ssa-sprintf.c (pass_sprintf_length::handle_gimple_call):
635 Avoid issuing warnings also issued during built-in expansion.
636 * doc/invoke.texi (Warning Options): Document -Wstringop-overflow.
637
638 2016-12-07 Michael Meissner <meissner@linux.vnet.ibm.com>
639
640 PR target/72717
641 * config/rs6000/rs6000.c (rs6000_expand_vector_init): If the
642 V2DImode elements are SUBREG's convert the result into DImode
643 rather than failing in emit_move_insn.
644
645 2016-12-07 Jakub Jelinek <jakub@redhat.com>
646
647 * builtins.c (fold_builtin_strstr): Removed.
648 (fold_builtin_2): Don't call fold_builtin_strstr.
649 * gimple-fold.c (gimple_fold_builtin_strchr): Check is_strrchr
650 earlier in the strrchr (x, 0) -> strchr (x, 0) optimization.
651 (gimple_fold_builtin_strstr): New function.
652 (gimple_fold_builtin): Call it.
653 * fold-const-call.c (fold_const_call): Handle CFN_BUILT_IN_STRSTR.
654
655 PR c++/78692
656 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Set lhs
657 var to lhs of new_stmt right before noreturn handling rather than to
658 lhs of e->call_stmt early.
659
660 2016-12-07 David Malcolm <dmalcolm@redhat.com>
661
662 * read-md.c (rtx_reader::require_char): New method.
663 (require_char_ws): Convert from function to...
664 (rtx_reader::require_char_ws): ...method.
665 (rtx_reader::require_word_ws): New method.
666 * read-md.h (rtx_reader::require_char): New method decl.
667 (require_char_ws): Remove global decl in favor of...
668 (rtx_reader::require_char_ws): ...new method decl.
669 (rtx_reader::require_word_ws): New method decl.
670 (rtx_reader::peek_char): New method decl.
671
672 2016-12-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
673
674 PR rtl-optimization/78617
675 * lra-remat.c (do_remat): Initialize live_hard_regs from live in
676 registers, also setting hard registers mapped to pseudo registers.
677
678 2016-12-07 David Malcolm <dmalcolm@redhat.com>
679
680 * cfgexpand.c (pass_expand::execute): Move stack initializations
681 to rtl_data::init_stack_alignment and call it.
682 * emit-rtl.c (rtl_data::init_stack_alignment): New method.
683 * emit-rtl.h (rtl_data::init_stack_alignment): New method.
684
685 2016-12-07 Wilco Dijkstra <wdijkstr@arm.com>
686
687 * gcc/ira.c (ira_setup_eliminable_regset): Initialize crtl->is_leaf.
688 (ira): Move initialization of crtl->is_leaf earlier.
689
690 2016-12-07 Wilco Dijkstra <wdijkstr@arm.com>
691
692 * config/aarch64/aarch64.md (movti_aarch64): Change Ump to m.
693 (movtf_aarch64): Likewise.
694 * config/aarch64/aarch64.c (aarch64_classify_address):
695 Use correct intersection of offsets.
696 (aarch64_legitimize_address_displacement): Use 9-bit signed offsets.
697 (aarch64_legitimize_address): Use 9-bit signed offsets for TI/TF mode.
698 Use 7-bit signed scaled mode for modes > 16 bytes.
699
700 2016-12-07 James Greenhalgh <james.greenhalgh@arm.com>
701
702 PR rtl-optimization/78561
703 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p) Use
704 constant_pool_empty_p in place of get_pool_size_upper_bound.
705 (rs6000_stack_info): Likewise.
706 (rs6000_emit_prologue): Likewise.
707 (rs6000_elf_declare_function_name): Likewise.
708 (rs6000_set_up_by_prologue): Likewise.
709 (rs6000_can_eliminate): Likewise.
710 * output.h (get_pool_size_upper_bound): Delete.
711 (constant_pool_empty_p): New.
712 * varasm.c (get_pool_size_upper_bound): Delete
713 (constant_pool_empty_p): New.
714
715 2016-12-07 Bin Cheng <bin.cheng@arm.com>
716
717 PR tree-optimization/78691
718 * match.pd ((convert1 (minmax ((convert2 (x) c)))) -> minmax (x c)):
719 Require integral type for the outer expression.
720
721 2016-12-07 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
722
723 * config/aarch64/aarch64.c
724 (aarch64_builtin_support_vector_misalignment): New.
725 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT): Define.
726
727 2016-12-06 David Malcolm <dmalcolm@redhat.com>
728
729 PR bootstrap/78705
730 * config/i386/i386.c (ix86_test_dumping_memory_blockage):
731 Conditionalize the string comparison on Pmode == DImode.
732
733 2016-12-06 Tom de Vries <tom@codesourcery.com>
734
735 PR tree-optimization/67955
736 * tree-ssa-alias.c (same_addr_size_stores_p): New function.
737 (stmt_kills_ref_p): Use it.
738
739 2016-12-06 Eric Botcazou <ebotcazou@adacore.com>
740
741 PR middle-end/78700
742 * calls.c (expand_call): Move back call to prepare_call_address.
743
744 2016-12-06 Michael Meissner <meissner@linux.vnet.ibm.com>
745
746 PR target/78658
747 * config/rs6000/rs6000.md (zero_extendqi<mode>2): Use ^ instead of
748 ?* constraints for the ISA 3.0 patterns, so the register allocator
749 is more likely to allocate QImode/HImode to vector registers for
750 conversion to floating point unless a reload is needed.
751 (zero_extendhi<mode>2): Likewise.
752 (float<QHI:mode><FP_ISA3:mode>2_internal): Properly deal with the
753 first alternative which is converting QImode/HImode to floating
754 point and the QImode/HImode value is in a vector register, and
755 does not allocate the second pseudo register. Remove zero
756 extending into traditional floating point registers, since the
757 instruction used only works on traditional altivec registers.
758 (floatuns<QHI:mode><FP_ISA3:mode>2_internal): Likewise.
759
760 2016-12-06 David Malcolm <dmalcolm@redhat.com>
761
762 * config/i386/i386.c: Include print-rtl.h.
763 (selftest::ix86_test_dumping_memory_blockage): New function.
764 (selftest::ix86_run_selftests): Call it.
765 * print-rtl-function.c (print_rtx_function): Create an
766 rtx_reuse_manager and use it.
767 * print-rtl.c: Include "rtl-iter.h".
768 (rtx_writer::rtx_writer): Add reuse_manager param.
769 (rtx_reuse_manager::rtx_reuse_manager): New ctor.
770 (uses_rtx_reuse_p): New function.
771 (rtx_reuse_manager::preprocess): New function.
772 (rtx_reuse_manager::has_reuse_id): New function.
773 (rtx_reuse_manager::seen_def_p): New function.
774 (rtx_reuse_manager::set_seen_def): New function.
775 (rtx_writer::print_rtx): If "in_rtx" has a reuse ID, print it as a
776 prefix the first time in_rtx is seen, and print reuse_rtx
777 subsequently.
778 (print_inline_rtx): Supply NULL for new reuse_manager param.
779 (debug_rtx): Likewise.
780 (print_rtl): Likewise.
781 (print_rtl_single): Likewise.
782 (rtx_writer::print_rtl_single_with_indent): Likewise.
783 * print-rtl.h: Include bitmap.h when building for host.
784 (rtx_writer::rtx_writer): Add reuse_manager param.
785 (rtx_writer::m_rtx_reuse_manager): New field.
786 (class rtx_reuse_manager): New class.
787 * rtl-tests.c (selftest::assert_rtl_dump_eq): Add reuse_manager
788 param and use it when constructing rtx_writer.
789 (selftest::test_dumping_rtx_reuse): New function.
790 (selftest::rtl_tests_c_tests): Call it.
791 * selftest-rtl.h (class rtx_reuse_manager): New forward decl.
792 (selftest::assert_rtl_dump_eq): Add reuse_manager param.
793 (ASSERT_RTL_DUMP_EQ): Supply NULL for reuse_manager param.
794 (ASSERT_RTL_DUMP_EQ_WITH_REUSE): New macro.
795
796 2016-12-06 Vladimir Makarov <vmakarov@redhat.com>
797
798 PR target/77761
799 * lra-lives.c (process_bb_lives): Update biggest mode for
800 implicitly used hard reg.
801
802 2016-12-06 Uros Bizjak <ubizjak@gmail.com>
803
804 * config/i386/predicates.md (general_gr_operand): New predicate.
805 * config/i386/i386.md (TImode and DImode push_operand splitter):
806 Use general_gr_operand. Macroize using DWI mode macro.
807 (TImode and DImode nonimmediate_operand splitter): Use
808 nonimmediate_gr_operand and general_gr_operand. Macroize using
809 DWI mode macro.
810 (TF/XF/DFmode push_operand splitter): Use general_gr_operand.
811 (TFmode nonimmediate_operand splitter): Use nonimmediate_gr_operand
812 and general_gr_operand.
813 (XFmode nonimmediate_operand splitter): Ditto.
814 (DFmode nonimmediate_operand splitter): Ditto.
815 * config/i386/mmx.md (MMXMODE nonimmediate_operand splitter): Ditto.
816
817 2016-12-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
818
819 * config/arm/arm-cores.def (cortex-m23, cortex-m33): Move into
820 alphabetical order with respect to other ARMv8 processors.
821 * config/arm/arm-tables.opt: Regenerate.
822 * config/arm/arm-tune.md: Likewise.
823
824 2016-12-06 Robert Suchanek <robert.suchanek@imgtec.com>
825
826 * config/mips/mips.c (mips_expand_builtin_insn): Check input
827 ranges of literal integer arguments.
828
829 2016-12-06 Aldy Hernandez <aldyh@redhat.com>
830
831 PR middle-end/78548
832 * tree-ssa-uninit.c (simplify_preds_4): Call release() instead of
833 destroy_predicate_vecs.
834 (uninit_uses_cannot_happen): Make uninit_preds a scalar.
835
836 2016-12-06 Aldy Hernandez <aldyh@redhat.com>
837
838 PR middle-end/78566
839 * tree-ssa-uninit.c (can_one_predicate_be_invalidated_p): Change
840 argument type to a pred_chain.
841 (can_chain_union_be_invalidated_p): Use pred_chain instead of a
842 worklist.
843 (flatten_out_predicate_chains): Remove.
844 (uninit_uses_cannot_happen): Rename from
845 uninit_ops_invalidate_phi_use.
846 Change logic so that we are checking that the PHI use will
847 invalidate _ALL_ possibly uninitialized operands.
848 (is_use_properly_guarded): Rename call to
849 uninit_ops_invalidate_phi_use into uninit_uses_cannot_happen.
850
851 2016-12-06 Tamar Christina <tamar.christina@arm.com>
852
853 * gcc/config/aarch64/arm_neon.h
854 (vreinterpretq_p8_p128, vreinterpretq_p16_p128): Added.
855 (vreinterpret_p64_p16, vreinterpretq_p64_p128): Likewise.
856 (vreinterpretq_p64_p16, vreinterpretq_p128_p8): Likewise.
857 (vreinterpretq_p128_p16, vreinterpretq_p128_f16): Likewise.
858 (vreinterpretq_p128_f32, vreinterpretq_p128_p64): Likewise.
859 (vreinterpretq_p128_s64, vreinterpretq_p128_u64): Likewise.
860 (vreinterpretq_p128_s8, vreinterpretq_p128_s16): Likewise.
861 (vreinterpretq_p128_s32, vreinterpretq_p128_u8): Likewise.
862 (vreinterpretq_p128_u16, vreinterpretq_p128_u32): Likewise.
863 (vreinterpretq_f16_p128, vreinterpretq_f32_p128): Likewise.
864 (vreinterpretq_s64_p128, vreinterpretq_u64_p128): Likewise.
865 (vreinterpretq_s8_p128, vreinterpretq_s16_p128): Likewise.
866 (vreinterpretq_s32_p128, vreinterpretq_u8_p128): Likewise.
867 (vreinterpretq_u16_p128, vreinterpretq_u32_p128): Likewise.
868
869 2016-12-06 Jakub Jelinek <jakub@redhat.com>
870
871 PR c++/71537
872 * fold-const.c (fold_comparison): Assume CONSTANT_CLASS_P (base0)
873 plus offset is non-zero. For maybe_nonzero_address decl base0,
874 require indirect_base0.
875
876 PR c++/71537
877 * fold-const-call.c (fold_const_call_1): Remove memchr handling here.
878 (fold_const_call) <case CFN_BUILT_IN_STRNCMP,
879 case CFN_BUILT_IN_STRNCASECMP>: Formatting improvements.
880 (fold_const_call) <case CFN_BUILT_IN_MEMCMP>: Likewise. If s2 is 0
881 and arguments have no side-effects, return 0.
882 (fold_const_call): Handle CFN_BUILT_IN_MEMCHR.
883
884 PR c++/71537
885 * fold-const-call.c (fold_const_call): Handle
886 CFN_BUILT_IN_{INDEX,STRCHR,RINDEX,STRRCHR}.
887
888 PR tree-optimization/78675
889 * tree-vect-loop.c (vectorizable_live_operation): For
890 VECTOR_BOOLEAN_TYPE_P vectype use integral type with bitsize precision
891 instead of TREE_TYPE (vectype) for the BIT_FIELD_REF.
892
893 2016-12-06 Eric Botcazou <ebotcazou@adacore.com>
894
895 PR middle-end/78642
896 * emit-rtl.c (verify_rtx_sharing) <CLOBBER>: Relax condition.
897 (copy_rtx_if_shared_1) <CLOBBER>: Likewise.
898 (copy_insn_1) <CLOBBER>: Likewise.
899
900 2016-12-05 Michael Meissner <meissner@linux.vnet.ibm.com>
901
902 PR target/78688
903 * config/rs6000/rs6000.h (FUNCTION_VALUE_REGNO_P): Use IN_RANGE
904 instead of ((N) >= (X) && (N) <= (Y-X)) to silence warnings about
905 comparing signed to unsigned values.
906 (FUNCTION_ARG_REGNO_P): Likewise.
907
908 2016-12-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
909 Stefan Freudenberger <stefan@reservoir.com>
910
911 PR tree-optimization/78646
912 * gimple-ssa-strength-reduction.c (replace_ref): The pointer
913 addition used for the memory base expression should have the type
914 of the candidate.
915
916 2016-12-05 Waldemar Brodkorb <wbx@openadk.org>
917
918 PR target/71721
919 * config.gcc (*-*-uclinux*): Enable posix threads.
920
921 2016-12-05 Andrew Senkevich <andrew.senkevich@intel.com>
922
923 * config/i386/avx512bwintrin.h: Add new k-mask intrinsics.
924 * config/i386/avx512dqintrin.h: Ditto.
925 * config/i386/avx512fintrin.h: Ditto.
926 * config/i386/i386-builtin-types.def (UCHAR_FTYPE_UQI_UQI_PUCHAR,
927 UCHAR_FTYPE_UHI_UHI_PUCHAR, UCHAR_FTYPE_USI_USI_PUCHAR,
928 UCHAR_FTYPE_UDI_UDI_PUCHAR, UCHAR_FTYPE_UQI_UQI, UCHAR_FTYPE_UHI_UHI,
929 UCHAR_FTYPE_USI_USI, UCHAR_FTYPE_UDI_UDI, UQI_FTYPE_UQI_INT,
930 UHI_FTYPE_UHI_INT, USI_FTYPE_USI_INT, UDI_FTYPE_UDI_INT,
931 UQI_FTYPE_UQI, USI_FTYPE_USI, UDI_FTYPE_UDI, UQI_FTYPE_UQI_UQI): New
932 function types.
933 * config/i386/i386-builtin.def (__builtin_ia32_knotqi,
934 __builtin_ia32_knotsi, __builtin_ia32_knotdi,
935 __builtin_ia32_korqi, __builtin_ia32_korsi, __builtin_ia32_kordi,
936 __builtin_ia32_kxnorqi, __builtin_ia32_kxnorsi,
937 __builtin_ia32_kxnordi, __builtin_ia32_kxorqi, __builtin_ia32_kxorsi,
938 __builtin_ia32_kxordi, __builtin_ia32_kandqi,
939 __builtin_ia32_kandsi, __builtin_ia32_kanddi, __builtin_ia32_kandnqi,
940 __builtin_ia32_kandnsi, __builtin_ia32_kandndi): New.
941 * config/i386/i386.c (ix86_expand_args_builtin): Handle new types.
942
943 2016-12-05 Segher Boessenkool <segher@kernel.crashing.org>
944
945 * combine.c: Revert r243162.
946
947 2016-12-05 Paolo Bonzini <bonzini@gnu.org>
948
949 * match.pd: Simplify X ? C : 0 where C is a power of 2 and
950 X tests a single bit.
951
952 2016-12-05 Nathan Sidwell <nathan@acm.org>
953
954 * diagnostic.c (diagnostic_check_max_errors): New, broken out of ...
955 (diagnostic_action_after_output): ... here.
956 (diagnostic_report_diagnostic): Call it for non-notes.
957 * diagnostic.h (struct diagnostic_context): Make max_errors signed int.
958 (diagnostic_check_max_errors): Declare.
959
960 2016-12-05 Cupertino Miranda <cmiranda@synopsys.com>
961
962 * config/arc/arc.h (STARTFILE_SPEC): Use default linux specs.
963 (ENDFILE_SPEC): Likewise.
964
965 2016-12-05 Claudiu Zissulescu <claziss@synopsys.com>
966
967 * config/arc/arc-protos.h (insn_is_tls_gd_dispatch): Remove.
968 * config/arc/arc.c (arc_unspec_offset): New function.
969 (arc_finalize_pic): Change.
970 (arc_emit_call_tls_get_addr): Likewise.
971 (arc_legitimize_tls_address): Likewise.
972 (arc_legitimize_pic_address): Likewise.
973 (insn_is_tls_gd_dispatch): Remove.
974 * config/arc/arc.h (INSN_REFERENCES_ARE_DELAYED): Change.
975 * config/arc/arc.md (ls_gd_load): Remove unused pattern.
976 (tls_gd_dispatch): Likewise.
977
978 2016-12-05 Andre Vieira <andre.simoesdiasvieira@arm.com>
979
980 * config/arm/arm.c (TARGET_ASM_INIT_SECTIONS): Fix wrong undef
981 location.
982
983 2016-12-05 Eric Botcazou <ebotcazou@adacore.com>
984
985 * config/sparc/sparc-protos.h (sparc_splitdi_legitimate): Rename to...
986 (sparc_split_reg_mem_legitimate): ...this.
987 (sparc_split_reg_mem): Declare.
988 (sparc_split_mem_reg): Likewise.
989 (sparc_split_regreg_legitimate): Rename to...
990 (sparc_split_reg_reg_legitimate): ...this.
991 * config/sparc/sparc.c (sparc_splitdi_legitimate): Rename to...
992 (sparc_split_reg_mem_legitimate): ...this.
993 (sparc_split_reg_mem): New function.
994 (sparc_split_mem_reg): Likewise.
995 (sparc_split_regreg_legitimate): Rename to...
996 (sparc_split_reg_reg_legitimate): ...this.
997 (sparc_split_reg_reg): New function.
998 * config/sparc/sparc.md (lra): Remove "none" value.
999 (enabled): Adjust to above change.
1000 (*movdi_insn_sp32): Remove new (r,T) alternative and reorder others.
1001 (DImode splitters): Adjust to above renamings and use new functions.
1002 (*movdf_insn_sp32): Remove new (r,T) alternative and reorder others.
1003 (DFmode splitters): Adjust to above renamings and use new functions.
1004 (*mov<VM64:mode>_insn_sp64): Replace C with Z constraint and use W
1005 constraint in conjunction with e.
1006 (*mov<VM64:mode>_insn_sp32): Remove new (r,T) alternative, add (o,Y)
1007 alternative and reorder others.
1008 (VM64:mode splitters): Adjust to above renamings and use new functions.
1009
1010 2016-12-04 Martin Sebor <msebor@redhat.com>
1011
1012 PR c/78668
1013 * builtin-attrs.def (ATTR_ALLOC_SIZE, ATTR_RETURNS_NONNULL): New
1014 identifier tree nodes.
1015 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): New attribute list.
1016 (ATTR_MALLOC_SIZE_1_NOTHROW_LIST): Same.
1017 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Same.
1018 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Same.
1019 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Same.
1020 * builtins.def (aligned_alloc, calloc, malloc, realloc):
1021 Add attribute alloc_size.
1022 (alloca): Add attribute alloc_size and returns_nonnull.
1023
1024 2016-12-04 Uros Bizjak <ubizjak@gmail.com>
1025
1026 PR target/70322
1027 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p): Handle NEG.
1028 (dimode_scalar_chain::compute_convert_gain): Ditto.
1029 (dimode_scalar_chain::convert_insn): Ditto.
1030
1031 2016-12-03 Eric Botcazou <ebotcazou@adacore.com>
1032
1033 * lra-constraints.c (emit_spill_move): Use gen_lowpart_SUBREG in all
1034 cases to build a lowpart SUBREG.
1035
1036 2016-12-03 Eric Botcazou <ebotcazou@adacore.com>
1037 David S. Miller <davem@davemloft.net>
1038
1039 * config/sparc/constraints.md (U): Adjust comment.
1040 * config/sparc/sparc.md (lra): New attribute.
1041 (enabled): For base instructions, if the lra attribute is set,
1042 return 1 if it is in keeping with TARGET_LRA.
1043 (*movdi_insn_sp32): Add lra attribute for alternatives mentioning U
1044 constraint and duplicate them with U replaced by r.
1045 (*movdf_insn_sp32): Likewise.
1046 (*mov<VM64:mode>_insn_sp32): Likewise.
1047 (*movtf_insn_sp32): Remove alternatives mentioning U constraint.
1048
1049 2016-12-02 Jeff Law <law@redhat.com>
1050
1051 * config/arm/arm.c (arm_handle_cmse_nonsecure_call): Remove unused
1052 variable main_variant.
1053
1054 2016-12-02 Michael Meissner <meissner@linux.vnet.ibm.com>
1055
1056 * config.gcc (powerpc*-*-linux*): Set gnu-indirect-function by
1057 default on PowerPC linux systems.
1058
1059 2016-12-02 Segher Boessenkool <segher@kernel.crashing.org>
1060
1061 PR rtl-optimization/78638
1062 * simplify-rtx.c (simplify_truncation): M2 is not mode, it is
1063 GET_MODE (op). Fix this.
1064
1065 2016-12-02 David Malcolm <dmalcolm@redhat.com>
1066
1067 PR bootstrap/78616
1068 * selftest.c (selftest::assert_strndup_eq): Rename to...
1069 (selftest::assert_xstrndup_eq): ...this, and remove call to
1070 strndup.
1071 (selftest::test_strndup): Rename to...
1072 (selftest::test_xstrndup): ...this, updating for above renaming.
1073 (selftest::test_libiberty): Update for renaming.
1074
1075 2016-12-02 Michael Meissner <meissner@linux.vnet.ibm.com>
1076
1077 PR target/78639
1078 * config/rs6000/rs6000.md (movdi_internal64): Fix typo in
1079 subversion id 242679 that causes the wrong store instruction to be
1080 generated if a DImode is in an Altivec register using REG+REG
1081 addressing.
1082
1083 2016-12-02 Uros Bizjak <ubizjak@gmail.com>
1084
1085 PR target/70322
1086 * config/i386/i386.md (*andndi3_doubleword): Add non-BMI alternative
1087 and corresponding post-reload splitter.
1088
1089 2016-12-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1090
1091 * config/aarch64/aarch64.h (machine_function): Add
1092 reg_is_wrapped_separately field.
1093 * config/aarch64/aarch64.md (LAST_SAVED_REGNUM): Define new constant.
1094 * config/aarch64/aarch64.c (emit_set_insn): Change return type to
1095 rtx_insn *.
1096 (aarch64_save_callee_saves): Don't save registers that are wrapped
1097 separately.
1098 (aarch64_restore_callee_saves): Don't restore registers that are
1099 wrapped separately.
1100 (offset_9bit_signed_unscaled_p, offset_12bit_unsigned_scaled_p,
1101 aarch64_offset_7bit_signed_scaled_p): Move earlier in the file.
1102 (aarch64_get_separate_components): New function.
1103 (aarch64_get_next_set_bit): Likewise.
1104 (aarch64_components_for_bb): Likewise.
1105 (aarch64_disqualify_components): Likewise.
1106 (aarch64_emit_prologue_components): Likewise.
1107 (aarch64_emit_epilogue_components): Likewise.
1108 (aarch64_set_handled_components): Likewise.
1109 (aarch64_process_components): Likewise.
1110 (TARGET_SHRINK_WRAP_GET_SEPARATE_COMPONENTS,
1111 TARGET_SHRINK_WRAP_COMPONENTS_FOR_BB,
1112 TARGET_SHRINK_WRAP_DISQUALIFY_COMPONENTS,
1113 TARGET_SHRINK_WRAP_EMIT_PROLOGUE_COMPONENTS,
1114 TARGET_SHRINK_WRAP_EMIT_EPILOGUE_COMPONENTS,
1115 TARGET_SHRINK_WRAP_SET_HANDLED_COMPONENTS): Define.
1116
1117 2016-12-02 Martin Jambor <mjambor@suse.cz>
1118
1119 * passes.def: Move pass_rebuild_cgraph_edges to the end of
1120 pass_build_ssa_passes.
1121
1122 2016-12-02 Uros Bizjak <ubizjak@gmail.com>
1123
1124 * config/alpha/alpha.md (exception_receiver): Copy
1125 alpha_gp_ave_rtx return value.
1126
1127 2016-12-02 Tadek Kijkowski <tkijkowski@gmail.com>
1128
1129 * Makefile.in (PREPROCESSOR_DEFINES): Add a level of indirection
1130 for several include directories that may be relative to sysroot.
1131 * config/i386/x-mingw32 (gplus_includedir): Define.
1132 (gplus_tool_includedir, gplus_backward_include_dir): Likewise.
1133 (native_system_includedir): Likewise.
1134 * config/i386/mingw32.h (STANDARD_STARTFILE_PREFIX_1): Do not
1135 override if TARGET_SYSTEM_ROOT is defined.
1136 (NATIVE_SYSTEM_HEADER_DIR): Likewise.
1137
1138 2016-12-02 Jakub Jelinek <jakub@redhat.com>
1139
1140 PR target/70322
1141 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p): Handle NOT.
1142 (dimode_scalar_chain::compute_convert_gain): Likewise.
1143 (dimode_scalar_chain::convert_insn): Likewise.
1144 * config/i386/i386.md (*one_cmpldi2_doubleword): New
1145 define_insn_and_split.
1146 (one_cmpl<mode>2): Use SWIM1248x iterator instead of SWIM.
1147
1148 PR target/78614
1149 * rtl.c (copy_rtx): Don't clear used flag here.
1150 (shallow_copy_rtx_stat): Clear used flag here unless code the rtx
1151 is shareable.
1152 * simplify-rtx.c (simplify_replace_fn_rtx): When copying rtx with
1153 'E' in format, copy all vectors.
1154 * emit-rtl.c (copy_insn_1): Don't clear used flag here.
1155 * valtrack.c (cleanup_auto_inc_dec): Likewise.
1156 * config/rs6000/rs6000.c (rs6000_frame_related): Likewise.
1157
1158 2016-12-02 Andre Vieira <andre.simoesdiasvieira@arm.com>
1159 Thomas Preud'homme <thomas.preudhomme@arm.com>
1160
1161 * config/arm/arm-builtins.c (arm_builtins): Define
1162 ARM_BUILTIN_CMSE_NONSECURE_CALLER.
1163 (bdesc_2arg): Add line for cmse_nonsecure_caller.
1164 (arm_init_builtins): Handle cmse_nonsecure_caller.
1165 (arm_expand_builtin): Likewise.
1166 * config/arm/arm_cmse.h (cmse_nonsecure_caller): New.
1167
1168 2016-12-02 Andre Vieira <andre.simoesdiasvieira@arm.com>
1169 Thomas Preud'homme <thomas.preudhomme@arm.com>
1170
1171 * config/arm/arm.c (detect_cmse_nonsecure_call): New.
1172 (cmse_nonsecure_call_clear_caller_saved): New.
1173 (arm_reorg): Use cmse_nonsecure_call_clear_caller_saved.
1174 (arm_function_ok_for_sibcall): Disable sibcalls for
1175 cmse_nonsecure_call.
1176 * config/arm/arm-protos.h (detect_cmse_nonsecure_call): New.
1177 * config/arm/arm.md (call): Handle cmse_nonsecure_entry.
1178 (call_value): Likewise.
1179 (nonsecure_call_internal): New.
1180 (nonsecure_call_value_internal): New.
1181 * config/arm/thumb1.md (*nonsecure_call_reg_thumb1_v5): New.
1182 (*nonsecure_call_value_reg_thumb1_v5): New.
1183 * config/arm/thumb2.md (*nonsecure_call_reg_thumb2): New.
1184 (*nonsecure_call_value_reg_thumb2): New.
1185 * config/arm/unspecs.md (UNSPEC_NONSECURE_MEM): New.
1186
1187 2016-12-02 Andre Vieira <andre.simoesdiasvieira@arm.com>
1188 Thomas Preud'homme <thomas.preudhomme@arm.com>
1189
1190 * config/arm/arm.c (gimplify.h): New include.
1191 (arm_handle_cmse_nonsecure_call): New.
1192 (arm_attribute_table): Added cmse_nonsecure_call.
1193 (arm_comp_type_attributes): Deny compatibility of function types
1194 with without the cmse_nonsecure_call attribute.
1195 * doc/extend.texi (ARM ARMv8-M Security Extensions): New attribute.
1196
1197 2016-12-02 Andre Vieira <andre.simoesdiasvieira@arm.com>
1198 Thomas Preud'homme <thomas.preudhomme@arm.com>
1199
1200 * config/arm/arm.c (output_return_instruction): Clear
1201 registers.
1202 (thumb2_expand_return): Likewise.
1203 (thumb1_expand_epilogue): Likewise.
1204 (thumb_exit): Likewise.
1205 (arm_expand_epilogue): Likewise.
1206 (cmse_nonsecure_entry_clear_before_return): New.
1207 (comp_not_to_clear_mask_str_un): New.
1208 (compute_not_to_clear_mask): New.
1209 * config/arm/thumb1.md (*epilogue_insns): Change length attribute.
1210 * config/arm/thumb2.md (*thumb2_return): Disable for
1211 cmse_nonsecure_entry functions.
1212 (*thumb2_cmse_entry_return): Duplicate thumb2_return pattern for
1213 cmse_nonsecure_entry functions.
1214
1215 2016-12-02 Andre Vieira <andre.simoesdiasvieira@arm.com>
1216 Thomas Preud'homme <thomas.preudhomme@arm.com>
1217
1218 * config/arm/arm.c (use_return_insn): Change to return with bxns
1219 when cmse_nonsecure_entry.
1220 (output_return_instruction): Likewise.
1221 (arm_output_function_prologue): Likewise.
1222 (thumb_pop): Likewise.
1223 (thumb_exit): Likewise.
1224 (thumb2_expand_return): Assert that entry functions always have simple
1225 returns.
1226 (arm_expand_epilogue): Handle entry functions.
1227 (arm_function_ok_for_sibcall): Disable sibcall for entry functions.
1228 (arm_asm_declare_function_name): New.
1229 * config/arm/arm-protos.h (arm_asm_declare_function_name): New.
1230 * config/arm/elf.h (ASM_DECLARE_FUNCTION_NAME): Redefine to
1231 use arm_asm_declare_function_name.
1232
1233 2016-12-02 Andre Vieira <andre.simoesdiasvieira@arm.com>
1234 Thomas Preud'homme <thomas.preudhomme@arm.com>
1235
1236 * config/arm/arm.c (arm_handle_cmse_nonsecure_entry): New.
1237 (arm_attribute_table): Added cmse_nonsecure_entry
1238 (arm_compute_func_type): Handle cmse_nonsecure_entry.
1239 (cmse_func_args_or_return_in_stack): New.
1240 (arm_handle_cmse_nonsecure_entry): New.
1241 * config/arm/arm.h (ARM_FT_CMSE_ENTRY): New macro define.
1242 (IS_CMSE_ENTRY): Likewise.
1243 * doc/extend.texi (ARM ARMv8-M Security Extensions): New attribute.
1244
1245 2016-12-02 Andre Vieira <andre.simoesdiasvieira@arm.com>
1246 Thomas Preud'homme <thomas.preudhomme@arm.com>
1247
1248 * config.gcc (extra_headers): Added arm_cmse.h.
1249 * config/arm/arm-arches.def (ARM_ARCH):
1250 (armv8-m): Add FL2_CMSE.
1251 (armv8-m.main): Likewise.
1252 (armv8-m.main+dsp): Likewise.
1253 * config/arm/arm-c.c
1254 (arm_cpu_builtins): Added __ARM_FEATURE_CMSE macro.
1255 * config/arm/arm-flags.h: Define FL2_CMSE.
1256 * config/arm.c (arm_arch_cmse): New.
1257 (arm_option_override): New error for unsupported cmse target.
1258 * config/arm/arm.h (arm_arch_cmse): New.
1259 * config/arm/arm.opt (mcmse): New.
1260 * config/arm/arm_cmse.h: New file.
1261 * doc/invoke.texi (ARM Options): Add -mcmse.
1262 * doc/sourcebuild.texi (arm_cmse_ok): Add new effective target.
1263 * doc/extend.texi: Add ARMv8-M Security Extensions entry.
1264
1265 2016-12-02 Georg-Johann Lay <avr@gjlay.de>
1266
1267 * config/avr/avr.c: Fix coding rule glitches.
1268
1269 2016-12-02 Martin Jambor <mjambor@suse.cz>
1270
1271 * hsa.c (hsa_callable_function_p): Return false for artificial
1272 functions.
1273
1274 2016-12-02 James Greenhalgh <james.greenhalgh@arm.com>
1275
1276 PR rtl-optimization/78561
1277 * varasm.c (recompute_pool_offsets): New.
1278 (output_constant_pool): Call it.
1279
1280 2016-12-02 James Greenhalgh <james.greenhalgh@arm.com>
1281
1282 PR rtl-optimization/78561
1283 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p) Rename
1284 get_pool_size to get_pool_size_upper_bound.
1285 (rs6000_stack_info): Likewise.
1286 (rs6000_emit_prologue): Likewise.
1287 (rs6000_elf_declare_function_name): Likewise.
1288 (rs6000_set_up_by_prologue): Likewise.
1289 (rs6000_can_eliminate): Likewise, reformat spaces to tabs.
1290 * output.h (get_pool_size): Rename to...
1291 (get_pool_size_upper_bound): ...This.
1292 * varasm.c (get_pool_size): Rename to...
1293 (get_pool_size_upper_bound): ...This.
1294
1295 2016-12-02 Bin Cheng <bin.cheng@arm.com>
1296
1297 * match.pd: Add new pattern:
1298 (cond (cmp (convert? x) c1) (op x c2) c3) -> (op (minmax x c1) c2).
1299
1300 2016-12-02 Nathan Sidwell <nathan@acm.org>
1301
1302 * diagnostic.c (diagnostic_report_diagnostic): Remove extraneous
1303 braces.
1304
1305 2016-12-02 Aldy Hernandez <aldyh@redhat.com>
1306
1307 PR middle-end/78328
1308 * gimple-ssa-warn-alloca.c (alloca_call_type): Handle
1309 VR_ANTI_RANGE.
1310
1311 2016-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1312
1313 * config/s390/s390.c (s390_save_gprs_to_fprs): Fix RTL sharing
1314 problem.
1315
1316 2016-12-02 Georg-Johann Lay <avr@gjlay.de>
1317
1318 * config/avr/avr-arch.h (avr_mcu_t) [n_flash]: Remove field.
1319 * config/avr/avr-devices.c (AVR_MCU): Remove N_FLASH macro argument.
1320 * config/avr/avr-mcus.def (AVR_MCU): Remove initializer for n_flash.
1321 * config/avr/avr.c (avr_set_core_architecture) [avr_n_flash]: Use
1322 avr_mcu_types.flash_size to compute default value.
1323 * config/avr/gen-avr-mmcu-specs.c (print_mcu) [cc1_n_flash]: Use
1324 mcu->flash_size to compute value for spec.
1325
1326 2016-12-02 Georg-Johann Lay <avr@gjlay.de>
1327
1328 * doc/invoke.texi (AVR Options) [-mabsdata]: Point to absdata.
1329 * doc/extend.texi (AVR Variable Attributes) [progmem]: Hint
1330 about linker description to avoid progmem altogether.
1331 [absdata]: Point to -mabsdata option.
1332
1333 2016-12-02 Jakub Jelinek <jakub@redhat.com>
1334
1335 PR rtl-optimization/78547
1336 * emit-rtl.c (unshare_all_rtl): Make sure DECL_RTL and
1337 DECL_INCOMING_RTL is not shared.
1338 * config/i386/i386.c (convert_scalars_to_vectors): If any
1339 insns have been converted, adjust all parameter's DEC_RTL and
1340 DECL_INCOMING_RTL back from V1TImode to TImode if the parameters have
1341 TImode.
1342
1343 PR rtl-optimization/78575
1344 * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses): Use
1345 DF infrastructure to wrap all V1TImode reg uses into TImode subreg
1346 if not already wrapped in a subreg. Make sure df_insn_rescan does not
1347 affect further iterations.
1348
1349 2016-12-02 Martin Liska <mliska@suse.cz>
1350
1351 PR ipa/78555
1352 * sreal.c (sreal::to_int): Make absolute value before shifting.
1353 (sreal::operator/): Likewise.
1354 (sreal_verify_negative_division): New test.
1355 (void sreal_c_tests): Call the new test.
1356 * sreal.h (sreal::normalize_up): Use new SREAL_ABS and
1357 SREAL_SIGN macros.
1358 (sreal::normalize_down): Likewise.
1359
1360 2016-12-02 Dominik Vogt <vogt@linux.vnet.ibm.com>
1361
1362 * combine.c (combine_simplify_rtx): Suppress replacement of
1363 "(and (reg) (const_int bit))" with "if_then_else".
1364
1365 2016-12-02 Dominik Vogt <vogt@linux.vnet.ibm.com>
1366
1367 PR target/77822
1368 * config/s390/s390.md ("extzv")
1369 ("*extzv<mode><clobbercc_or_nocc>")
1370 ("*extzvdi<clobbercc_or_nocc>_lshiftrt")
1371 ("*<risbg_n>_ior_and_sr_ze")
1372 ("*extract1bitdi<clobbercc_or_nocc>")
1373 ("*insv<mode><clobbercc_or_nocc>", "*insv_rnsbg_noshift")
1374 ("*insv_rnsbg_srl", "*insv<mode>_mem_reg")
1375 ("*insvdi_mem_reghigh", "*insvdi_reg_imm"): Use EXTRACT_ARGS_IN_RANGE
1376 to validate the arguments of zero_extract and sign_extract.
1377
1378 2016-12-02 Dominik Vogt <vogt@linux.vnet.ibm.com>
1379
1380 PR target/77822
1381 * rtl.h (EXTRACT_ARGS_IN_RANGE): New.
1382
1383 2016-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1384
1385 * gcc/config/s390/s390.c (s390_builtin_vectorization_cost): New
1386 function.
1387 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Define target
1388 macro.
1389
1390 2016-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1391
1392 * config/s390/vector.md (vec_halfhalf): New mode iterator.
1393 ("vec_pack_trunc_<mode>", "vec_pack_ssat_<mode>")
1394 ("vec_pack_usat_<mode>", "vec_unpacks_hi_v16qi")
1395 ("vec_unpacks_low_v16qi", "vec_unpacku_hi_v16qi")
1396 ("vec_unpacku_low_v16qi", "vec_unpacks_hi_v8hi")
1397 ("vec_unpacks_lo_v8hi", "vec_unpacku_hi_v8hi")
1398 ("vec_unpacku_lo_v8hi", "vec_unpacks_hi_v4si")
1399 ("vec_unpacks_lo_v4si", "vec_unpacku_hi_v4si")
1400 ("vec_unpacku_lo_v4si"): New pattern definitions.
1401 * config/s390/vx-builtins.md: Move VI_HW_HSD mode iterator to
1402 vector.md.
1403
1404 2016-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1405
1406 * config/s390/s390-protos.h (s390_reverse_condition): New
1407 prototype.
1408 * config/s390/s390.c (s390_canonicalize_comparison): Fold compares
1409 of CC mode values.
1410 (s390_reverse_condition): New function.
1411 * config/s390/s390.h (REVERSE_CC_MODE, REVERSE_CONDITION): Define
1412 target macros.
1413
1414 2016-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1415
1416 * config/s390/s390-modes.def (CCVEQANY, CCVH, CCVHANY, CCVHU)
1417 (CCVHUANY): Remove modes.
1418 (CCVIH, CCVIHU, CCVIALL, CCVIANY, CCVFALL, CCVFANY): Add modes and
1419 documentation.
1420 * config/s390/s390.c (s390_match_ccmode_set): Rename cc modes.
1421 (s390_expand_vec_compare_scalar): Pick one of the cc consumer
1422 modes.
1423 (s390_branch_condition_mask): Adjust to use the new cc consumer
1424 modes. The new modes allow for proper reversal in the middle-end.
1425 (s390_expand_vec_compare_cc): Determine the proper cc producer and
1426 consumer modes for a comparison.
1427 * config/s390/s390.md: Rename CCVH to CCVIH and CCVHU to CCVIHU
1428 throughout the file.
1429 * config/s390/vx-builtins.md: Likewise.
1430
1431 2016-12-02 Maxim Ostapenko <m.ostapenko@samsung.com>
1432
1433 * asan.c (asan_global_struct): Refactor.
1434 (create_odr_indicator): New function.
1435 (asan_needs_odr_indicator_p): Likewise.
1436 (is_odr_indicator): Likewise.
1437 (asan_add_global): Introduce odr_indicator_ptr. Pass it into global's
1438 constructor.
1439 (asan_protect_global): Do not protect odr indicators.
1440
1441 2016-12-01 Jeff Law <law@redhat.com>
1442
1443 * tree-ssa-threadedge.c
1444 (record_temporary_equivalences_from_stmts_at_dest): Avoid temporary
1445 propagation of operands if there are no operands.
1446
1447 2016-12-02 Jakub Jelinek <jakub@redhat.com>
1448
1449 PR tree-optimization/78586
1450 * gimple-ssa-sprintf.c (format_integer): Don't handle NOP_EXPR,
1451 CONVERT_EXPR or COMPONENT_REF here. Formatting fix. For
1452 SSA_NAME_DEF_STMT with NOP_EXPR only change argtype if the rhs1's
1453 type is INTEGER_TYPE or POINTER_TYPE.
1454
1455 2016-12-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
1456
1457 PR target/78577
1458 * config/rs6000/vsx.md (vextuhlx): Revise mode of operand 2.
1459 (vextuhrx): Likewise.
1460 (vextuwlx): Likewise.
1461 (vextuwrx): Likewise.
1462
1463 2016-12-01 David Malcolm <dmalcolm@redhat.com>
1464
1465 * dwarf2out.c (dwarf2out_c_finalize): Reset early_dwarf and
1466 early_dwarf_finished.
1467
1468 2016-12-01 Eric Botcazou <ebotcazou@adacore.com>
1469 David S. Miller <davem@davemloft.net>
1470
1471 * config/sparc/sparc.opt (mlra): New target option.
1472 * config/sparc/sparc.c (TARGET_LRA_P): Define to...
1473 (sparc_lra_p): ...this. New function.
1474 (D_MODES, DF_MODES): Add missing cast.
1475 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
1476 provide these insns when flag_pic.
1477 (sethi_di_medlow, losum_di_medlow, seth44, setm44, setl44, sethh,
1478 setlm, sethm, setlo, embmedany_sethi, embmedany_losum,
1479 embmedany_brsum, embmedany_textuhi, embmedany_texthi,
1480 embmedany_textulo, embmedany_textlo): Likewise.
1481 (sethi_di_medlow_embmedany_pic): Provide it only with flag_pic.
1482
1483 2016-12-01 David Edelsohn <dje.gcc@gmail.com>
1484
1485 PR debug/66419
1486 PR c++/78235
1487 * dbxout.c (dbxout_type_fields): Skip TEMPLATE_DECLs.
1488
1489 2016-12-01 Richard Biener <rguenther@suse.de>
1490 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1491
1492 * vec.h (vec<T, A, vl_embed>::quick_grow_cleared): Guard call to
1493 memset if len-oldlen != 0.
1494 (vec<T, va_heap, vl_ptr>::safe_grow_cleared): Likewise.
1495
1496 2016-12-01 Uros Bizjak <ubizjak@gmail.com>
1497
1498 * config/i386/i386.md (*andndi3_doubleword): Depend on TARGET_SSE2.
1499
1500 2016-12-01 Georg-Johann Lay <avr@gjlay.de>
1501
1502 * config/avr/avr.c: Fix coding rule glitches.
1503
1504 2016-12-01 Markus Trippelsdorf <markus@trippelsdorf.de>
1505
1506 PR tree-optimization/78598
1507 * tree-ssa-loop-prefetch.c (ddown): Cast to signed to avoid
1508 overflows.
1509
1510 2016-12-01 Markus Trippelsdorf <markus@trippelsdorf.de>
1511
1512 PR rtl-optimization/78596
1513 * combine.c (simplify_comparison): Cast to unsigned to avoid
1514 left shifting of negative value.
1515
1516 2016-12-01 Matthias Klose <doko@ubuntu.com>
1517
1518 * doc/install.texi: Don't use pkg-config to check for bdw-gc.
1519
1520 2016-12-01 Richard Biener <rguenther@suse.de>
1521
1522 * tree-ssa-alias.c (indirect_refs_may_alias_p): Do not
1523 treat arrays with same type as objects that cannot overlap.
1524
1525 2016-12-01 Georg-Johann Lay <avr@gjlay.de>
1526
1527 * config/avr/avr.c (avr_print_operand): Use SYMBOL_REF_P if possible.
1528 (avr_handle_addr_attribute, avr_asm_output_aligned_decl_common)
1529 (avr_asm_asm_output_aligned_bss, avr_addr_space_convert): Dito.
1530
1531 2016-12-01 Jakub Jelinek <jakub@redhat.com>
1532
1533 PR debug/78587
1534 * dwarf2out.c (loc_descr_plus_const): For negative offset use
1535 uint_loc_descriptor instead of int_loc_descriptor and perform negation
1536 in unsigned HOST_WIDE_INT type.
1537 (scompare_loc_descriptor): Shift UINTVAL left instead of INTVAL.
1538
1539 PR target/78614
1540 * config/rs6000/rs6000.c (rs6000_frame_related): Call
1541 set_used_flags (pat) before any simplifications. Clear used flag on
1542 PARALLEL copy. Don't guard add_reg_note call. Call
1543 copy_rtx_if_shared on pat before storing it into
1544 REG_FRAME_RELATED_EXPR.
1545
1546 2016-12-01 Alan Modra <amodra@gmail.com>
1547
1548 * gcc/config/rs6000/rs6000.c (insn_is_swappable_p): Properly
1549 look inside UNSPEC_VSX_XXSPLTW vec.
1550
1551 2016-12-01 Segher Boessenkool <segher@kernel.crashing.org>
1552
1553 PR rtl-optimization/78607
1554 * combine.c (try_combine): Emit a barrier after a unconditional trap.
1555
1556 2016-11-30 Michael Meissner <meissner@linux.vnet.ibm.com>
1557
1558 PR target/78602
1559 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): If the
1560 element is not a constant or in a register, force it to a
1561 register.
1562
1563 PR target/78560
1564 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Force value
1565 that will be set to a vector element to be in a register.
1566 * config/rs6000/vsx.md (vsx_set_<mode>_p9): Fix thinko that used
1567 the wrong multiplier to convert the element number to a byte
1568 offset.
1569
1570 2016-11-30 Vladimir Makarov <vmakarov@redhat.com>
1571
1572 PR tree-optimization/77856
1573 * lra-constraints.c (inherit_in_ebb): Check original regno for
1574 invalid invariant regs too. Set only clobbered hard regs for the
1575 invalid invariant regs.
1576
1577 2016-11-30 Pitchumani Sivanupandi <pitchumani.sivanupandi@microchip.com>
1578
1579 Commit files forgotten in r242966.
1580
1581 * config/avr/avr-arch.h (avr_mcu_t) [flash_size]: New member.
1582 * config/avr/avr-devices.c (avr_mcu_types): Add flash size info.
1583 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Remove hard-coded
1584 prefix check to find wrap-around value, instead use MCU flash size.
1585 For 8k flash devices, update link_pmem_wrap spec string to
1586 add --pmem-wrap-around=8k.
1587 * config/avr/specs.h (LINK_RELAX_SPEC): Move link_pmem_wrap from
1588 here...
1589 (LINK_SPEC): ...to here.
1590
1591 2016-11-30 David Malcolm <dmalcolm@redhat.com>
1592
1593 PR c/78498
1594 * selftest.c (selftest::assert_strndup_eq): New function.
1595 (selftest::test_strndup): New function.
1596 (selftest::test_libiberty): New function.
1597 (selftest::selftest_c_tests): Call test_libiberty.
1598
1599 2016-11-30 Segher Boessenkool <segher@kernel.crashing.org>
1600
1601 PR rtl-optimization/78610
1602 * ira.c (combine_and_move_insns): Don't substitute into TRAP_IF
1603 instructions.
1604
1605 2016-11-30 Bin Cheng <bin.cheng@arm.com>
1606
1607 PR tree-optimization/78574
1608 * tree-ssa-loop-ivopts.c (find_deriving_biv_for_expr): Skip loop
1609 header PHI that doesn't define biv.
1610
1611 2016-11-30 Jakub Jelinek <jakub@redhat.com>
1612
1613 * emit-rtl.c (verify_insn_sharing): Call verify_rtx_sharing instead of
1614 reset_used_flags.
1615
1616 * config/i386/i386.c (dimode_scalar_chain::convert_op): Avoid
1617 sharing the SUBREG rtx between move and following insn.
1618
1619 * ira.c (ira_update_equiv_info_by_shuffle_insn): Use copy_rtx
1620 for REG_EQUIV argument.
1621
1622 2016-11-30 Thomas Preud'homme <thomas.preudhomme@arm.com>
1623
1624 * config/arm/t-rmprofile: Add mappings for Cortex-M23 and Cortex-M33.
1625
1626 2016-11-30 Markus Trippelsdorf <markus@trippelsdorf.de>
1627
1628 PR ipa/78555
1629 * real.c (real_hash): Add cast to avoid left
1630 shifting of negative values.
1631
1632 2016-11-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1633
1634 PR target/78362
1635 * config/aarch64/aarch64.md (add<mode>3): Extract inner expression
1636 from a subreg in operands[1] and don't call REGNO on a non-reg
1637 expression when deciding to force operands[2] into a reg.
1638
1639 2016-11-30 Claudiu Zissulescu <claziss@synopsys.com>
1640 Andrew Burgess <andrew.burgess@embecosm.com>
1641
1642 * config/arc/arc-protos.h (arc_store_addr_hazard_p): Declare.
1643 * config/arc/arc.c (arc_store_addr_hazard_p): New function.
1644 (workaround_arc_anomaly): Call arc_store_addr_hazard_p for ARC700.
1645 * config/arc/arc700.md: Add define_bypass for store/load.
1646
1647 2016-11-30 Martin Liska <mliska@suse.cz>
1648
1649 * cgraph.c (symbol_table::initialize): Initialize
1650 ipa_clones_dump_file.
1651 (cgraph_node::remove): Report to ipa_clones_dump_file.
1652 * cgraph.h: Add new argument (suffix) to cloning methods.
1653 * cgraphclones.c (dump_callgraph_transformation): New function.
1654 (cgraph_node::create_clone): New argument.
1655 (cgraph_node::create_virtual_clone): Likewise.
1656 (cgraph_node::create_version_clone): Likewise.
1657 * dumpfile.c: Add .ipa-clones dump file.
1658 * dumpfile.h (enum tree_dump_index): Add TDI_clones
1659 * ipa-inline-transform.c (clone_inlined_nodes): Report operation
1660 to dump_callgraph_transformation.
1661
1662 2016-11-30 Martin Liska <mliska@suse.cz>
1663
1664 PR sanitizer/78541
1665 * asan.c (asan_expand_mark_ifn): Properly
1666 select a VAR_DECL from FRAME.* component reference.
1667
1668 2016-11-30 Segher Boessenkool <segher@kernel.crashing.org>
1669
1670 PR rtl-optimization/78583
1671 * simplify-rtx.c (simplify_truncation): Add check missing from the
1672 previous commit.
1673
1674 2016-11-30 Segher Boessenkool <segher@kernel.crashing.org>
1675
1676 PR rtl-optimization/78590
1677 * combine.c (change_zero_ext): Transform zero_extend of subregs only
1678 if the subreg_reg is a scalar integer mode.
1679
1680 2016-11-30 Jakub Jelinek <jakub@redhat.com>
1681
1682 PR tree-optimization/78586
1683 * gimple-ssa-sprintf.c (format_integer): Use TYPE_MAX_VALUE or
1684 TYPE_MIN_VALUE or build_all_ones_cst instead of folding LSHIFT_EXPR.
1685 Don't build_int_cst min/max twice. Formatting fix.
1686
1687 2016-11-30 Markus Trippelsdorf <markus@trippelsdorf.de>
1688
1689 PR rtl-optimization/78588
1690 * combine.c (if_then_else_cond): Also guard against BLKmode.
1691 * rtlanal.c (num_sign_bit_copies1): Add assert.
1692
1693 2016-11-29 Jeff Law <law@redhat.com>
1694
1695 * common/config/arc/arc-common.c (arc_handle_option): Remove unused
1696 variables.
1697
1698 * lra-constraints.c (check_and_process_move): Constrain the
1699 range of DCLASS and SCLASS to avoid false positive out of bounds
1700 array index warning.
1701
1702 2016-11-29 David Malcolm <dmalcolm@redhat.com>
1703
1704 * doc/install.texi (--with-target-bdw-gc): Remove stray '@'.
1705
1706 2016-11-29 David Malcolm <dmalcolm@redhat.com>
1707
1708 PR preprocessor/78569
1709 * input.c (get_substring_ranges_for_loc): Fail gracefully if
1710 line directives were present.
1711
1712 2016-11-30 Matthias Klose <doko@ubuntu.com>
1713
1714 * doc/install.texi: Document configure options --enable-objc-gc
1715 and --with-target-bdw-gc.
1716
1717 2016-11-29 Michael Meissner <meissner@linux.vnet.ibm.com>
1718
1719 PR target/78594
1720 * config/rs6000/rs6000.md (mov<mode>_internal, QHI iterator): Add
1721 'x' to stxsi<wd>x print pattern, so that QImode and HImode values
1722 residing in traditional altivec registers can be stored
1723 correctly.
1724
1725 2016-11-29 Max Filippov <jcmvbkbc@gmail.com>
1726
1727 PR target/78603
1728 * config/xtensa/xtensa.c (hwloop_optimize): Don't emit zero
1729 overhead loop start between a call and its CALL_ARG_LOCATION
1730 note.
1731
1732 2016-11-29 Waldemar Brodkorb <wbx@openadk.org>
1733
1734 * config/bfin/linux.h (CPP_SPEC): Define.
1735
1736 2016-11-29 Martin Sebor <msebor@redhat.com>
1737
1738 PR tree-optimization/78512
1739 * config/linux.h (TARGET_PRINTF_POINTER_FORMAT): Remove.
1740 * config/rs6000/linux.h: Same.
1741 * config/rs6000/linux64.h: Same.
1742 * config/sol2.h: Same.
1743 * config/sol2.c (solaris_printf_pointer_format): Remove.
1744 * doc/tm.texi.in (TARGET_PRINTF_POINTER_FORMAT): Remove.
1745 * doc/tm.texi: Regenerate.
1746 * gimple-ssa-sprintf.c (format_pointer): Rempove.
1747 (pass_sprintf_length::compute_format_length): Return bool.
1748 (pass_sprintf_length::handle_gimple_call): Adjust.
1749 * target.def (printf_pointer_format): Remove.
1750 * targhooks.c (default_printf_pointer_format): Remove.
1751 (linux_printf_pointer_format): Same.
1752 * targhooks.h (default_printf_pointer_format): Remove.
1753 (linux_printf_pointer_format, solaris_printf_pointer_format): Same.
1754
1755 2016-11-29 Uros Bizjak <ubizjak@gmail.com>
1756
1757 * config/i386/sse.md (UNSPEC_MASKOP): Move from i386.md.
1758 (mshift): Ditto.
1759 (SWI1248_AVX512BWDQ): Ditto.
1760 (SWI1248_AVX512BW): Ditto.
1761 (k<any_logic:code><mode>): Ditto.
1762 (kandn<mode>): Ditto.
1763 (kxnor<mode>): Ditto.
1764 (knot<mode>): Ditto.
1765 (*k<any_lshift:code><mode>): Ditto.
1766 (kortestzhi, kortestchi): Ditto.
1767 (kunpckhi, kunpcksi, kunpckdi): Ditto.
1768
1769 2016-11-29 Andrew Pinski <apinski@cavium.com>
1770
1771 * tree-vrp.c (simplify_stmt_using_ranges): Use boolean_type_node
1772 for the EQ_EXPR.
1773
1774 2016-11-29 Chen Gang <gang.chen.5i5j@gmail.com>
1775
1776 PR target/71331
1777 * config/tilegx/tilegx.c (tilegx_function_profiler): Save r10
1778 to stack before call mcount.
1779 (tilegx_can_use_return_insn_p): Clean up code.
1780
1781 2016-11-29 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
1782
1783 * config/avr/avr-mcu.def: (avr_mcu_types): Add flash size info.
1784
1785 2016-11-29 David Malcolm <dmalcolm@redhat.com>
1786
1787 PR c++/72774
1788 PR c++/72786
1789 PR c++/77922
1790 PR c++/78313
1791 * spellcheck.c (selftest::test_find_closest_string): Verify that
1792 we don't offer the goal string as a suggestion.
1793 * spellcheck.h (best_match::get_best_meaningful_candidate): Don't
1794 offer the goal string as a suggestion.
1795
1796
1797 2016-11-29 Claudiu Zissulescu <claziss@synopsys.com>
1798
1799 * config/arc/arc.c (arc_override_options): Avoid selection of
1800 compact casesi for ARCv2.
1801
1802 2016-11-29 Richard Biener <rguenther@suse.de>
1803
1804 * tree-cfg.c (lower_phi_internal_fn): Do not look for further
1805 PHIs after a regular stmt.
1806 (stmt_starts_bb_p): PHIs not preceeded by a PHI or a label
1807 start a new BB.
1808
1809 2016-11-29 Martin Liska <mliska@suse.cz>
1810
1811 PR gcov-profile/78582
1812 * tree-profile.c (gimple_gen_time_profiler): Make one extra BB
1813 to prevent PHI argument clash.
1814
1815 2016-11-29 Claudiu Zissulescu <claziss@synopsys.com>
1816
1817 * config/arc/arc.opt (marclinux): Fix typo.
1818 (marclinux_prof): Likewise.
1819
1820 2016-11-29 Jiong Wang <jiong.wang@arm.com>
1821
1822 * target.def (stack_protect_runtime_enabled_p): New.
1823 * function.c (expand_function_end): Guard stack_protect_epilogue with
1824 targetm.stack_protect_runtime_enabled_p.
1825 * cfgexpand.c (pass_expand::execute): Likewise.
1826 * calls.c (expand_call): Likewise.
1827 * doc/tm.texi.in (TARGET_STACK_PROTECT_RUNTIME_ENABLED_P): Add it.
1828 * doc/tm.texi: Regenerate.
1829
1830 2016-11-29 Richard Biener <rguenther@suse.de>
1831
1832 PR middle-end/78546
1833 * match.pd: Add CST1 - (CST2 - A) -> CST3 + A missing case.
1834
1835 2016-11-29 Janus Weil <janus@gcc.gnu.org>
1836
1837 * doc/contrib.texi: Add a few missing gfortran contributors.
1838
1839 2016-11-29 Segher Boessenkool <segher@kernel.crashing.org>
1840
1841 * combine.c (change_zero_ext): Also handle extends from a subreg
1842 to a mode bigger than that of the operand of the subreg.
1843
1844 2016-11-29 Segher Boessenkool <segher@kernel.crashing.org>
1845
1846 PR target/77687
1847 * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Emit the
1848 stack_restore_tie insn instead of stack_tie, for the SVR4 and
1849 SPE ABIs.
1850 * config/rs6000/rs6000.md (stack_restore_tie): New define_insn.
1851
1852 2016-11-28 Segher Boessenkool <segher@kernel.crashing.org>
1853
1854 * shrink-wrap.c (init_separate_shrink_wrap): Do not clear
1855 head_components and tail_components.
1856 (spread_components): New algorithm.
1857 (emit_common_tails_for_components): Clear head_components and
1858 tail_components.
1859 (insert_prologue_epilogue_for_components): Write extra output to the
1860 dump file for sibcalls and abnormal exits.
1861
1862 2016-11-28 Segher Boessenkool <segher@kernel.crashing.org>
1863
1864 PR rtl-optimization/78342
1865 * combine.c: Include "cfghooks.h".
1866 (try_combine): If we create an unconditional trap, break the basic
1867 block in two just after it, and remove the edge between; also, set
1868 the *new_direct_jump_p flag so that cleanup_cfg is run.
1869
1870 2016-11-28 Segher Boessenkool <segher@kernel.crashing.org>
1871
1872 * simplify-rtx.c (simplify_truncation): Handle truncate of zero_extract
1873 and sign_extract.
1874
1875 2016-11-28 Uros Bizjak <ubizjak@gmail.com>
1876
1877 * config/i386/i386.md (*and<mode>_1): Merge insn pattern from
1878 *andsi_1 and *andhi_1 using SWI24 mode iterator. Use multi-line
1879 output template string.
1880 (*anddi_1): Use multi-line output template string.
1881 (*andqi_1): Ditto.
1882
1883 2016-11-28 Jakub Jelinek <jakub@redhat.com>
1884
1885 PR middle-end/78540
1886 * rtl.h (remove_reg_equal_equiv_notes): Return bool instead of void.
1887 * rtlanal.c (remove_reg_equal_equiv_notes): Return true if any
1888 note has been removed.
1889 * postreload.c (reload_combine_recognize_pattern): If
1890 remove_reg_equal_equiv_notes returns true, call df_notes_rescan.
1891
1892 2016-11-28 Martin Sebor <msebor@redhat.com>
1893
1894 PR middle-end/78520
1895 * gimple-ssa-sprintf.c (target_max_value): Remove.
1896 (target_int_max, target_size_max): Use TYPE_MAX_VALUE.
1897 (get_width_and_precision): New function.
1898 (format_integer, format_floating, get_string_length, format_string):
1899 Correct handling of width and precision with unknown value.
1900 (format_directive): Add warning.
1901 (pass_sprintf_length::compute_format_length): Allow for precision
1902 to consist of a sole period with no asterisk or digits after it.
1903
1904 2016-11-28 Jakub Jelinek <jakub@redhat.com>
1905
1906 PR rtl-optimization/78546
1907 * simplify-rtx.c (neg_const_int): When negating most negative
1908 number in mode wider than HOST_BITS_PER_WIDE_INT, use
1909 simplify_const_unary_operation to produce CONST_DOUBLE or
1910 CONST_WIDE_INT.
1911 (simplify_plus_minus): Handle the case where neg_const_int
1912 doesn't return a CONST_INT.
1913
1914 2016-11-28 Markus Trippelsdorf <markus@trippelsdorf.de>
1915
1916 PR target/78556
1917 * config/rs6000/rs6000.c (vspltis_constant): Add casts to avoid
1918 left shifting of negative values.
1919
1920 2016-11-28 Jakub Jelinek <jakub@redhat.com>
1921
1922 PR fortran/78298
1923 * tree-nested.c (convert_local_reference_stmt): After adding
1924 shared (FRAME.NN) clause to omp parallel, task or target,
1925 add it also to all outer omp parallel, task or target constructs.
1926
1927 2016-11-28 Uros Bizjak <ubizjak@gmail.com>
1928
1929 * config/i386/i386.md (UNSPEC_KMASKOP): New.
1930 (UNSPEC_KMOV): Remove.
1931 (kmovw): Expand to plain HImode move.
1932 (k<any_logic:code><mode>): Rename from *k<logic><mode>. Use
1933 register_operand predicates. Tag pattern with UNSPEC_KMASKOP.
1934 Remove corresponding clobber-removing splitter.
1935 (*anddi_1): Remove mask register alternatives.
1936 (*andsi_1): Ditto.
1937 (*andhi_1): Ditto.
1938 (*andqi_1): Ditto.
1939 (*<any_or:code><mode>_1): Ditto.
1940 (*<any_or:code>qi_1): Ditto.
1941 (kandn<mode>): Use SWI1248_AVX512BW mode iterator. Remove
1942 general register alternatives. Tag pattern with UNSPEC_KMASKOP.
1943 Remove corresponding splitter to operation with general registers.
1944 (*andn<SWI38:mode>): Rename from *bmi_andn_<mode>.
1945 (*andn<SWI12:mode>): New pattern.
1946 (*kxnor<mode>): Remove general register alternatives. Tag pattern
1947 with UNSPEC_KMASKOP. Remove corresponding splitter to operation
1948 with general registers.
1949 (knot<mode>): New insn pattern.
1950 (*one_cmpl<mode>2_1): Remove mask register alternatives.
1951 (one_cmplqi2_1): Ditto.
1952 (*k<any_lshift:code><mode>): Rename from *k<mshift><mode>3.
1953 Tag pattern with UNSPEC_KMASKOP. Add mode attribute.
1954 * config/i386/predicates.md (mask_reg_operand): Remove predicate.
1955 * config/i386/sse.md (vec_unpacks_hi_hi): Update pattern
1956 to generate kmaskop shift.
1957 (vec_unpacks_hi_<mode>): Ditto.
1958 * config/i386/i386-builtin.def (__builtin_ia32_kandhi):
1959 Use CODE_FOR_kandhi.
1960 (__builtin_ia32_knothi): Use CODE_FOR_knothi.
1961 (__builtin_ia32_korhi): Use CODE_FOR_kiorhi.
1962 (__builtin_ia32_kxorhi): Use CODE_FOR_kxorhi.
1963
1964 2016-11-28 Richard Biener <rguenther@suse.de>
1965
1966 * tree-vrp.c (vrp_visit_assignment_or_call): Handle simplifications
1967 to SSA names via extract_range_from_ssa_name if allowed.
1968
1969 2016-11-28 Richard Biener <rguenther@suse.de>
1970
1971 PR tree-optimization/78542
1972 * tree-ssa-ccp.c (evaluate_stmt): Only valueize simplification
1973 if allowed.
1974
1975 2016-11-28 Paolo Bonzini <bonzini@gnu.org>
1976
1977 * combine.c (simplify_if_then_else): Simplify IF_THEN_ELSE that
1978 isolates a single bit, even if the condition involves subregs.
1979
1980 2016-11-28 Tamar Christina <tamar.christina@arm.com>
1981
1982 * config/aarch64/aarch64-simd-builtins.def
1983 (BSL_P): Added di and v2di mode.
1984 * config/aarch64/arm_neon.h
1985 (vsriq_n_p64, vsri_n_p64): Added poly type.
1986 (vextq_p64, vext_p64): Likewise.
1987 (vceq_p64, vbslq_p64, vbsl_p64): Likewise.
1988
1989 2016-11-28 Tamar Christina <tamar.christina@arm.com>
1990
1991 * config/aarch64/aarch64-builtins.c (TYPES_SETREGP): Added poly type.
1992 (TYPES_GETREGP): Likewise.
1993 (TYPES_SHIFTINSERTP): Likewise.
1994 (TYPES_COMBINEP): Likewise.
1995 (TYPES_STORE1P): Likewise.
1996 * config/aarch64/aarch64-simd-builtins.def
1997 (combine): Added poly generator.
1998 (get_dregoi): Likewise.
1999 (get_dregci): Likewise.
2000 (get_dregxi): Likewise.
2001 (ssli_n): Likewise.
2002 (ld1): Likewise.
2003 (st1): Likewise.
2004 * config/aarch64/arm_neon.h
2005 (poly64x1x2_t, poly64x1x3_t): New.
2006 (poly64x1x4_t, poly64x2x2_t): Likewise.
2007 (poly64x2x3_t, poly64x2x4_t): Likewise.
2008 (poly64x1_t): Likewise.
2009 (vcreate_p64, vcombine_p64): Likewise.
2010 (vdup_n_p64, vdupq_n_p64): Likewise.
2011 (vld2_p64, vld2q_p64): Likewise.
2012 (vld3_p64, vld3q_p64): Likewise.
2013 (vld4_p64, vld4q_p64): Likewise.
2014 (vld2_dup_p64, vld3_dup_p64): Likewise.
2015 (vld4_dup_p64, vsli_n_p64): Likewise.
2016 (vsliq_n_p64, vst1_p64): Likewise.
2017 (vst1q_p64, vst2_p64): Likewise.
2018 (vst3_p64, vst4_p64): Likewise.
2019 (__aarch64_vdup_lane_p64, __aarch64_vdup_laneq_p64): Likewise.
2020 (__aarch64_vdupq_lane_p64, __aarch64_vdupq_laneq_p64): Likewise.
2021 (vget_lane_p64, vgetq_lane_p64): Likewise.
2022 (vreinterpret_p8_p64, vreinterpretq_p8_p64): Likewise.
2023 (vreinterpret_p16_p64, vreinterpretq_p16_p64): Likewise.
2024 (vreinterpret_p64_f16, vreinterpret_p64_f64): Likewise.
2025 (vreinterpret_p64_s8, vreinterpret_p64_s16): Likewise.
2026 (vreinterpret_p64_s32, vreinterpret_p64_s64): Likewise.
2027 (vreinterpret_p64_f32, vreinterpret_p64_u8): Likewise.
2028 (vreinterpret_p64_u16, vreinterpret_p64_u32): Likewise.
2029 (vreinterpret_p64_u64, vreinterpret_p64_p8): Likewise.
2030 (vreinterpretq_p64_f64, vreinterpretq_p64_s8): Likewise.
2031 (vreinterpretq_p64_s16, vreinterpretq_p64_s32): Likewise.
2032 (vreinterpretq_p64_s64, vreinterpretq_p64_f16): Likewise.
2033 (vreinterpretq_p64_f32, vreinterpretq_p64_u8): Likewise.
2034 (vreinterpretq_p64_u16, vreinterpretq_p64_u32): Likewise.
2035 (vreinterpretq_p64_u64, vreinterpretq_p64_p8): Likewise.
2036 (vreinterpret_f16_p64, vreinterpretq_f16_p64): Likewise.
2037 (vreinterpret_f32_p64, vreinterpretq_f32_p64): Likewise.
2038 (vreinterpret_f64_p64, vreinterpretq_f64_p64): Likewise.
2039 (vreinterpret_s64_p64, vreinterpretq_s64_p64): Likewise.
2040 (vreinterpret_u64_p64, vreinterpretq_u64_p64): Likewise.
2041 (vreinterpret_s8_p64, vreinterpretq_s8_p64): Likewise.
2042 (vreinterpret_s16_p64, vreinterpret_s32_p64): Likewise.
2043 (vreinterpretq_s32_p64, vreinterpret_u8_p64): Likewise.
2044 (vreinterpret_u16_p64, vreinterpretq_u16_p64): Likewise.
2045 (vreinterpret_u32_p64, vreinterpretq_u32_p64): Likewise.
2046 (vset_lane_p64, vsetq_lane_p64): Likewise.
2047 (vget_low_p64, vget_high_p64): Likewise.
2048 (vcombine_p64, vst2_lane_p64): Likewise.
2049 (vst3_lane_p64, vst4_lane_p64): Likewise.
2050 (vst2q_lane_p64, vst3q_lane_p64): Likewise.
2051 (vst4q_lane_p64, vget_lane_p64): Likewise.
2052 (vget_laneq_p64, vset_lane_p64): Likewise.
2053 (vset_laneq_p64, vcopy_lane_p64): Likewise.
2054 (vcopy_laneq_p64, vdup_n_p64): Likewise.
2055 (vdupq_n_p64, vdup_lane_p64): Likewise.
2056 (vdup_laneq_p64, vld1_p64): Likewise.
2057 (vld1q_p64, vld1_dup_p64): Likewise.
2058 (vld1q_dup_p64, vld1q_dup_p64): Likewise.
2059 (vmov_n_p64, vmovq_n_p64): Likewise.
2060 (vst3q_p64, vst4q_p64): Likewise.
2061 (vld1_lane_p64, vld1q_lane_p64): Likewise.
2062 (vst1_lane_p64, vst1q_lane_p64): Likewise.
2063 (vcopy_laneq_p64, vcopyq_laneq_p64): Likewise.
2064 (vdupq_laneq_p64): Likewise.
2065
2066 2016-11-28 Tamar Christina <tamar.christina@arm.com>
2067
2068 * config/arm/arm_neon.h (vget_lane_p64): New.
2069
2070 2016-11-28 Iain Sandoe <iain@codesourcery.com>
2071
2072 PR target/71767
2073 * configure.ac (with_ld64): Use portable method to extract the
2074 major part of the version number.
2075 * configure: Regenerated.
2076
2077 2016-11-28 Jakub Jelinek <jakub@redhat.com>
2078
2079 * gimple-ssa-sprintf.c (build_intmax_type_nodes): Look at
2080 UINTMAX_TYPE rather than SIZE_TYPE. Add gcc_unreachable if
2081 intmax_t couldn't be determined.
2082 (format_integer): Make {,u}intmax_type_node no longer static,
2083 initialize them only when needed. For z and t use
2084 signed_or_unsigned_type_for instead of assuming size_t and
2085 ptrdiff_t have the same precision.
2086
2087 PR lto/78211
2088 * ipa-icf.h (sem_item_optimizer): Add m_classes_vec member.
2089 * ipa-icf.c (sem_item_optimizer::sem_item_optimizer): Initialize it.
2090 (sem_item_optimizer::~sem_item_optimizer): Traverse m_classes_vec
2091 vector instead of traversing m_classes hash table. Release
2092 m_classes_vec.
2093 (sem_item_optimizer::read_section, sem_item_optimizer::add_class):
2094 Formatting fixes.
2095 (sem_item_optimizer::get_group_by_hash): When inserting a new group,
2096 add it also to m_classes_vec vector.
2097 (sem_item_optimizer::remove_symtab_node,
2098 sem_item_optimizer::build_hash_based_classes,
2099 sem_item_optimizer::parse_nonsingleton_classes): Formatting fixes.
2100 (sem_item_optimizer::subdivide_classes_by_equality,
2101 sem_item_optimizer::subdivide_classes_by_sensitive_refs,
2102 sem_item_optimizer::verify_classes): Traverse m_classes_vec vector
2103 instead of traversing m_classes hash table. Formatting fixes.
2104 (sem_item_optimizer::traverse_congruence_split,
2105 sem_item_optimizer::do_congruence_step_for_index,
2106 sem_item_optimizer::do_congruence_step): Formatting fixes.
2107 (sem_item_optimizer::process_cong_reduction): Traverse m_classes_vec
2108 vector instead of traversing m_classes hash table.
2109 (sem_item_optimizer::dump_cong_classes): Likewise. Formatting fixes.
2110 (sem_item_optimizer::merge_classes): Traverse m_classes_vec vector
2111 instead of traversing m_classes hash table.
2112
2113 2016-11-28 Georg-Johann Lay <avr@gjlay.de>
2114
2115 * config/avr/avr.c (out_movhi_r_mr) [REG_X + PLUS]: Only SBIW if
2116 X is not unused after.
2117
2118 2016-11-28 Bernd Schmidt <bschmidt@redhat.com>
2119
2120 PR rtl-optimization/78120
2121 * rtlanal.c (insn_rtx_cost): Revert previous change.
2122
2123 2016-11-28 Georg-Johann Lay <avr@gjlay.de>
2124
2125 PR 41076
2126 * config/avr/avr.md (SPLIT34): New mode iterator.
2127 (bitop): New code iterator.
2128 (*iorhi3.ashift8-*). New insn-and-split patterns.
2129 (*movhi): Post-reload split reg = 0.
2130 [!MOVW]: Post-reload split reg = reg.
2131 (*mov<mode>) [SI,SF,PSI,SQ,USQ,SA,USA]: Post-reload split reg = reg.
2132 (andhi3, andpsi3, andsi3): Post-reload split reg-reg operations.
2133 (iorhi3, iorpsi3, iorsi3): Same.
2134 (xorhi3, xorpsi3, xorsi3): Same.
2135 * config/avr/avr.c (avr_rtx_costs_1) [IOR && HImode]: Adjust rtx
2136 costs to *iorhi3.ashift8-* patterns.
2137
2138 2016-11-27 Iain Sandoe <iain@codesourcery.com>
2139 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2140
2141 PR target/67710
2142 * config.in: Regenerate
2143 * config/darwin-driver.c (darwin_driver_init): Emit a version string
2144 for the assembler.
2145 * config/darwin.h(ASM_MMACOSX_VERSION_MIN_SPEC): New, new tests.
2146 * config/darwin.opt(asm_macosx_version_min): New.
2147 * config/i386/darwin.h: Handle ASM_MMACOSX_VERSION_MIN_SPEC.
2148 * configure: Regenerate
2149 * configure.ac: Check for mmacosx-version-min handling.
2150
2151 2016-11-27 Iain Sandoe <iain@codesourcery.com>
2152
2153 PR target/57438
2154 * config/i386/i386.c (ix86_code_end): Note that we emitted code
2155 where the function might otherwise appear empty for picbase thunks.
2156 (ix86_output_function_epilogue): If we find a zero-sized function
2157 assume that reaching it is UB and trap. If we find a trailing label
2158 append a nop.
2159 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): If we
2160 find a zero-sized function assume that reaching it is UB and trap.
2161 If we find a trailing label, append a nop.
2162
2163 2016-11-27 Iain Sandoe <iain@codesourcery.com>
2164
2165 PR target/71767
2166 * config/darwin-sections.def (picbase_thunk_section): New.
2167 * config/darwin.c (darwin_init_sections): Set up picbase thunk
2168 section. (darwin_rodata_section, darwin_objc2_section,
2169 machopic_select_section, darwin_asm_declare_constant_name,
2170 darwin_emit_weak_or_comdat, darwin_function_section): Don’t use
2171 coalesced with newer linkers.
2172 (darwin_override_options): Decide on usage of coalesed sections
2173 on the basis of the target linker version.
2174 * config/darwin.h (MIN_LD64_NO_COAL_SECTS): New.
2175 * config/darwin.opt (mtarget-linker): New.
2176 * config/i386/i386.c (ix86_code_end): Do not force the thunks into
2177 a coalesced section, instead use a thunks section.
2178
2179 2016-11-27 Iain Sandoe <iain@codesourcery.com>
2180
2181 PR target/71767
2182 * configure.ac (with-ld64): New var, set for Darwin, set on
2183 detection of ld64, gcc_cv_ld64_export_dynamic: New, New test.
2184 * config/darwin.h: Use LD64_HAS_DYNAMIC export. DEF_LD64: New, define.
2185 * config/darwin10.h(DEF_LD64): Update for this target version.
2186 * config/darwin12.h(LINK_GCC_C_SEQUENCE_SPEC): Remove rdynamic test.
2187 (DEF_LD64): Update for this target version.
2188 * configure: Regenerated.
2189 * config.in: Regenerated.
2190
2191 2016-11-27 Iain Sandoe <iain@codesourcery.com>
2192
2193 PR target/71767
2194 * config/darwin.c (imachopic_indirection_name): Make data
2195 section indirections linker-visible.
2196 * config/darwin.h (ASM_GENERATE_INTERNAL_LABEL): Make local
2197 constant labels linker-visible.
2198
2199 2016-11-26 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2200
2201 * tree.c (build_common_tree_nodes): Initialize ptrdiff_type_node.
2202 (free_lang_data): Remove assignment to ptrdiff_type_node.
2203
2204 2016-11-25 Jakub Jelinek <jakub@redhat.com>
2205
2206 PR rtl-optimization/78526
2207 * simplify-rtx.c (simplify_immed_subreg): Don't use wi::extract_uhwi
2208 beyond val's precision.
2209
2210 PR rtl-optimization/78527
2211 * combine.c (make_compound_operation_int): Ignore LSHIFTRT with
2212 out of bounds shift count.
2213
2214 2016-11-25 Martin Liska <mliska@suse.cz>
2215
2216 PR web/71666
2217 * doc/invoke.texi (-fprofile-use): Fix reference to a section
2218 where -fprofile-generate is documented.
2219
2220 2016-11-25 Martin Liska <mliska@suse.cz>
2221
2222 PR gcov-profile/78086
2223 * coverage.c (build_init_ctor): Don't use priority {cd}tors if
2224 not supported by a target. Set priority to 100 if possible.
2225 (build_gcov_exit_decl): Likewise.
2226
2227 2016-11-25 Richard Biener <rguenther@suse.de>
2228
2229 PR ipa/78515
2230 * ipa-prop.c (compute_complex_assign_jump_func): Properly identify
2231 unary, binary and single RHSs.
2232 * tree.def (BIT_INSERT_EXPR): Adjust tree code name.
2233
2234 2016-11-25 Bin Cheng <bin.cheng@arm.com>
2235
2236 PR middle-end/78507
2237 PR middle-end/78510
2238 PR middle-end/78517
2239 * match.pd ((cond (cmp (convert1? @1) @3) (convert2? @1) @2)): Use
2240 cmp directly, rather than cmp_code. Initialize code to ERROR_MARK
2241 and set it to result code if transformation is valid. Use code EQ
2242 directly in last simplification case.
2243
2244 2016-11-25 Richard Biener <rguenther@suse.de>
2245
2246 * gimple-fold.c (fold_stmt_1): Check may_propagate_copy
2247 before valueizing return stmts.
2248
2249 2016-11-24 Richard Biener <rguenther@suse.de>
2250
2251 PR tree-optimization/78343
2252 * passes.def: Add CD-DCE pass after loop splitting.
2253 * tree-ssa-dce.c (find_obviously_necessary_stmts): Move
2254 SCEV init/finalize ...
2255 (perform_tree_ssa_dce): ... here. Deal with being
2256 executed inside the loop pipeline in aggressive mode.
2257
2258 2016-11-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
2259
2260 * tree-ssa-math-opts.c (struct symbolic_number): Improve comment.
2261
2262 2016-11-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
2263
2264 PR tree-optimization/77673
2265 * tree-ssa-math-opts.c (struct symbolic_number): Add new src field.
2266 (init_symbolic_number): Initialize src field from src parameter.
2267 (perform_symbolic_merge): Select most dominated statement as the
2268 source statement. Set src field of resulting n structure from the
2269 input src with the lowest address.
2270 (find_bswap_or_nop): Rename source_stmt into ins_stmt.
2271 (bswap_replace): Rename src_stmt into ins_stmt. Initially get source
2272 of load from src field rather than insertion statement. Cancel
2273 optimization if statement analyzed is not dominated by the insertion
2274 statement.
2275 (pass_optimize_bswap::execute): Rename src_stmt to ins_stmt. Compute
2276 dominance information.
2277
2278 2016-11-25 Eric Botcazou <ebotcazou@adacore.com>
2279
2280 PR ada/67205
2281 * config/mips/mips.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define.
2282
2283 2016-11-25 Martin Jambor <mjambor@suse.cz>
2284
2285 PR tree-optimization/70965
2286 * passes.def (pass_build_ssa_passes): Add pass_rebuild_cgraph_edges.
2287
2288 2016-11-24 James Greenahlgh <james.greenhalgh@arm.com>
2289
2290 PR target/78509
2291 * config/i386/i386.c (i386_excess_precision): Do not return
2292 FLT_EVAL_METHOD_UNPREDICTABLE when "type" is
2293 EXCESS_PRECISION_TYPE_STANDARD.
2294 * target.def (excess_precision): Document that targets should
2295 not return FLT_EVAL_METHOD_UNPREDICTABLE when "type" is
2296 EXCESS_PRECISION_TYPE_STANDARD or EXCESS_PRECISION_TYPE_FAST.
2297 Fix typo in first sentence.
2298 * doc/tm.texi: Regenerate.
2299
2300 2016-11-25 Richard Biener <rguenther@suse.de>
2301
2302 PR tree-optimization/78396
2303 * tree-vectorizer.c (vectorize_loops): When the if-converted
2304 body contains masked loads or stores do not attempt to
2305 basic-block-vectorize it.
2306
2307 2016-11-25 Richard Sandiford <richard.sandiford@arm.com>
2308 Alan Hayward <alan.hayward@arm.com>
2309 David Sherwood <david.sherwood@arm.com>
2310
2311 * function.h (spill_slot_alignment): Declare.
2312 * function.c (spill_slot_alignment): New function.
2313 * lra-spills.c (slot): Add align and size fields.
2314 (assign_mem_slot): Use them in the call to assign_stack_local.
2315 (add_pseudo_to_slot): Update the fields.
2316 (assign_stack_slot_num_and_sort_pseudos): Initialise the fields.
2317
2318 2016-11-25 Richard Sandiford <richard.sandiford@arm.com>
2319 Alan Hayward <alan.hayward@arm.com>
2320 David Sherwood <david.sherwood@arm.com>
2321
2322 * stor-layout.c (layout_type): Allow the caller to set the mode of
2323 a float type. Only choose one here if the mode is still VOIDmode.
2324 * tree.c (build_common_tree_nodes): Set the type mode of decimal
2325 floats before calling layout_type.
2326 * config/rs6000/rs6000.c (rs6000_init_builtins): Likewise.
2327
2328 2016-11-25 Richard Sandiford <richard.sandiford@arm.com>
2329
2330 * tree-tailcall.c (find_tail_calls): Allow calls to reference
2331 local variables if all references are known to be direct.
2332
2333 2016-11-25 Jakub Jelinek <jakub@redhat.com>
2334 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2335
2336 PR middle-end/78501
2337 * tree-vrp.c (extract_range_basic): Check for ptrdiff_type_node to be
2338 non null and it's precision matches precision of lhs's type.
2339
2340 2016-11-24 Martin Sebor <msebor@redhat.com>
2341
2342 PR tree-optimization/78476
2343 * gimple-ssa-sprintf.c (struct pass_sprintf_length::call_info):
2344 Add a member.
2345 (handle_gimple_call): Adjust signature.
2346 (try_substitute_return_value): Remove calls to bounded functions
2347 with zero buffer size whose result is known.
2348 (pass_sprintf_length::execute): Adjust call to handle_gimple_call.
2349
2350 2016-11-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2351
2352 * varasm.c (assemble_start_function): Wrap align_log definition in
2353 ASM_OUTPUT_MAX_SKIP_ALIGN.
2354
2355 2016-11-24 Uros Bizjak <ubizjak@gmail.com>
2356
2357 * config/i386/i386.md (wide AND insn to QImode splitter): Use
2358 explicit mode macros.
2359 (wide OR insn to QImode splitter): Ditto.
2360
2361 2016-11-24 Vladimir Makarov <vmakarov@redhat.com>
2362
2363 PR rtl-optimization/77541
2364 * lra-constraints.c (struct input_reload): Add field match_p.
2365 (get_reload_reg): Check modes of input reloads to generate unique
2366 value reload pseudo.
2367 (match_reload): Add input reload pseudo for the current insn.
2368
2369 2016-11-24 James Greenhalgh <james.greenhalgh@arm.com>
2370
2371 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Update
2372 __FLT_EVAL_METHOD__ and __FLT_EVAL_METHOD_C99__ when we switch
2373 architecture levels.
2374 * config/aarch64/aarch64.c (aarch64_promoted_type): Only promote
2375 the aarch64_fp16_type_node, not all HFmode types.
2376 (aarch64_libgcc_floating_mode_supported_p): Support HFmode.
2377 (aarch64_scalar_mode_supported_p): Likewise.
2378 (aarch64_excess_precision): New.
2379 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Define.
2380 (TARGET_SCALAR_MODE_SUPPORTED_P): Likewise.
2381 (TARGET_C_EXCESS_PRECISION): Likewise.
2382
2383 2016-11-24 James Greenhalgh <james.greenhalgh@arm.com>
2384
2385 * config/aarch64/aarch64-c.c (aarch64_scalar_mode_supported_p): New.
2386 (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
2387
2388 2016-11-24 James Greenhalgh <james.greenhalgh@arm.com>
2389
2390 * config/aarch64/aarch64.md (<optab>sihf2): Convert to expand.
2391 (<optab>dihf2): Likewise.
2392 (aarch64_fp16_<optab><mode>hf2): New.
2393
2394 2016-11-24 Alexander Monakov <amonakov@ispras.ru>
2395
2396 PR target/67822
2397 * config/nvptx/mkoffload.c (main): Allow -fopenmp.
2398
2399 2016-11-24 Eric Botcazou <ebotcazou@adacore.com>
2400
2401 * common/config/sparc/sparc-common.c (sparc_option_optimization_table):
2402 Enable REE at -O2 and higher.
2403 * config/sparc/sparc.c (sparc_option_override): Disable it by default
2404 in 32-bit mode.
2405
2406 2016-11-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2407
2408 PR target/48863
2409 PR inline-asm/70184
2410 * tree-ssa-ter.c (temp_expr_table): Add reg_vars_cnt field.
2411 (new_temp_expr_table): Initialise reg_vars_cnt.
2412 (free_temp_expr_table): Release reg_vars_cnt.
2413 (process_replaceable): Add reg_vars_cnt argument, set reg_vars_cnt
2414 field of TAB.
2415 (find_replaceable_in_bb): Use the above to record register variable
2416 write occurrences and cancel replacement across them.
2417
2418 2016-11-24 Eric Botcazou <ebotcazou@adacore.com>
2419
2420 PR rtl-optimization/78437
2421 * ree.c (get_uses): New function.
2422 (combine_reaching_defs): When a copy is needed, return false if any
2423 reaching use of the source register reads it in a mode larger than
2424 the mode it is set in and WORD_REGISTER_OPERATIONS is true.
2425
2426 2016-11-24 Martin Liska <mliska@suse.cz>
2427
2428 * gimple-pretty-print.c (dump_edge_probability): New function.
2429 (dump_gimple_switch): Dump label edge probabilities.
2430 (dump_gimple_cond): Likewise.
2431 (dump_gimple_label): Dump
2432 (dump_gimple_bb_header): Dump basic block frequency.
2433 (pp_cfg_jump): Replace e->dest argument with e.
2434 (dump_implicit_edges): Likewise.
2435 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at):
2436 Use gimple_bb (at) instead of at->bb.
2437
2438 2016-11-24 Bernd Schmidt <bschmidt@redhat.com>
2439
2440 * common.opt (flimit-function-alignment): New.
2441 * doc/invoke.texi (-flimit-function-alignment): Document.
2442 * emit-rtl.h (struct rtl_data): Add max_insn_address field.
2443 * final.c (shorten_branches): Set it.
2444 * varasm.c (assemble_start_function): Limit alignment if
2445 requested.
2446
2447 2016-11-24 Richard Biener <rguenther@suse.de>
2448
2449 PR tree-optimization/71595
2450 * cfgloopmanip.h (remove_path): Add irred_invalidated and
2451 loop_closed_ssa_invalidated parameters, defaulted to NULL.
2452 * cfgloopmanip.c (remove_path): Likewise, pass them along to
2453 called functions. Only fix irred flags if the caller didn't
2454 request state.
2455 * tree-ssa-loop-ivcanon.c (unloop_loops): Use add_bb_to_loop.
2456 (unloop_loops): Pass irred_invalidated and loop_closed_ssa_invalidated
2457 to remove_path.
2458
2459 2016-11-24 Bernd Schmidt <bschmidt@redhat.com>
2460
2461 PR rtl-optimization/78120
2462 * ifcvt.c (noce_conversion_profitable_p): Check original cost in all
2463 cases, and additionally test against max_seq_cost for speed
2464 optimization.
2465 (noce_process_if_block): Compute an estimate for the original cost when
2466 optimizing for speed, using the minimum of then and else block costs.
2467
2468 PR rtl-optimization/78120
2469 * rtlanal.c (insn_rtx_cost): Use set_rtx_cost.
2470
2471 PR rtl-optimization/78120
2472 * config/i386/i386.c (ix86_rtx_costs): Fully handle SETs.
2473
2474 2016-11-24 Bin Cheng <bin.cheng@arm.com>
2475
2476 * match.pd: Refine type conversion in result expr for below pattern:
2477 (cond (cmp (convert1? x) c1) (convert2? x) c2) -> (minmax (x c)).
2478
2479 2016-11-24 Eric Botcazou <ebotcazou@adacore.com>
2480
2481 PR middle-end/78429
2482 * tree.h (wi::fits_to_boolean_p): New predicate.
2483 (wi::fits_to_tree_p): Use it for boolean types.
2484 * tree.c (int_fits_type_p): Likewise.
2485
2486 2016-11-24 Martin Liska <mliska@suse.cz>
2487
2488 * print-tree.c (struct bucket): Remove.
2489 (print_node): Add new argument which drives whether a tree node
2490 is printed briefly or not.
2491 (debug_tree): Replace a custom hash table with hash_set<T>.
2492 * print-tree.h (print_node): Add the argument.
2493
2494 2016-11-24 Chung-Lin Tang <cltang@codesourcery.com>
2495
2496 * config/nios2/nios2.c (nios2_init_libfuncs): Add ATTRIBUTE_UNUSED.
2497
2498 2016-11-23 Peter Bergner <bergner@vnet.ibm.com>
2499
2500 PR target/78458
2501 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Return MODE
2502 if it is at least NREGS wide.
2503
2504 2016-11-23 Joseph Myers <joseph@codesourcery.com>
2505
2506 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p): For
2507 TARGET_E500_DOUBLE. handle TDmode, TImode and PTImode the same as
2508 TFmode, IFmode and KFmode.
2509
2510 2016-11-23 Joseph Myers <joseph@codesourcery.com>
2511
2512 * config/rs6000/spe.md (*frob_<SPE64:mode>_ti_8): New insn
2513 pattern.
2514
2515 2016-11-23 Segher Boessenkool <segher@kernel.crashing.org>
2516
2517 * combine.c (change_zero_ext): Only change the mode of a hard register
2518 destination if can_change_dest_mode holds for that.
2519
2520 2016-11-23 Jeff Law <law@redhat.com>
2521
2522 * varasm.c (assemble_name): Increase buffer size for name.
2523
2524 * config/spu/spu.md (floatunsdidf2): Remove unused local variable.
2525
2526 2016-11-23 Jakub Kicinski <jakub.kicinski@netronome.com>
2527
2528 * doc/extend.texi: Constify first argument to __builtin_object_size.
2529
2530 2016-11-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
2531
2532 * opth-gen.awk: Use unsigned shifts for bit masks. Allow all bits
2533 to be used. Add brackets around macro argument.
2534
2535 2016-11-23 Uros Bizjak <ubizjak@gmail.com>
2536
2537 * config/i386/i386.md (*<any_or:code>hi_1): Fix operand 2 constraints.
2538
2539 2016-11-23 Jakub Jelinek <jakub@redhat.com>
2540
2541 PR sanitizer/69278
2542 * opts.c (parse_sanitizer_options): For -fsanitize=undefined,
2543 restore enabling also SANITIZE_UNREACHABLE and SANITIZE_RETURN.
2544
2545 2016-11-23 Jakub Jelinek <jakub@redhat.com>
2546
2547 PR middle-end/69183
2548 * omp-low.c (build_outer_var_ref): Change lastprivate argument
2549 to code, pass it recursively, adjust uses. For OMP_CLAUSE_PRIVATE
2550 on worksharing constructs, treat it like clauses on simd construct.
2551 Formatting fix.
2552 (lower_rec_input_clauses): For OMP_CLAUSE_PRIVATE_OUTER_REF pass
2553 OMP_CLAUSE_PRIVATE as last argument to build_outer_var_ref.
2554 (lower_lastprivate_clauses): Pass OMP_CLAUSE_LASTPRIVATE instead
2555 of true as last argument to build_outer_var_ref.
2556
2557 2016-11-23 Uros Bizjak <ubizjak@gmail.com>
2558
2559 * config/i386/i386.md (*movqi_internal): Calculate mode
2560 attribute of alternatives 7,8,9 depending on TARGET_AVX512DQ.
2561 <TYPE_MSKMOV>: Emit kmovw for MODE_HI insn mode attribute.
2562 (*k<logic><mode>): Calculate mode attribute depending on
2563 TARGET_AVX512DQ. Emit k<logic>w for MODE_HI insn mode attribute.
2564 (*andqi_1): Calculate mode attribute of alternative 3 depending
2565 on TARGET_AVX512DQ. Emit kandw for MODE_HI insn mode attribute.
2566 (kandn<mode>): Calculate mode attribute of alternative 2 depending
2567 on TARGET_AVX512DQ. Emit kandnw for MODE_HI insn mode attribute.
2568 (kxnor<mode>): Merge insn patterns using SWI1248_AVX512BW mode
2569 iterator. Calculate mode attribute of alternative 1 depending
2570 on TARGET_AVX512DQ. Emit kxnorw for MODE_HI insn mode attribute.
2571 (*one_cmplqi2_1): Calculate mode attribute of alternative 2 depending
2572 on TARGET_AVX512DQ. Emit knotw for MODE_HI insn mode attribute.
2573
2574 2016-11-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2575
2576 PR middle-end/78153
2577 * gimple-fold.c (fold_stmt_1): Handle case for GIMPLE_RETURN.
2578 * tree-vrp.c (extract_range_basic): Handle case for
2579 CFN_BUILT_IN_STRLEN.
2580
2581 2016-11-23 Jeff Law <law@redhat.com>
2582
2583 * config/mcore/mcore.c (emit_new_cond_insn): Fix prototype.
2584
2585 * config/iq2000/iq2000.c (iq2000_rtx_costs): Avoid multiplication
2586 in boolean context warning.
2587
2588 * config/ia64/ia64.c (ia64_emit_insn_before): Fix prototype.
2589
2590 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
2591
2592 PR target/63250
2593 * config/arm/arm-builtins.c (arm_simd_floatHF_type_node): Rename to...
2594 (arm_fp16_type_node): ...This, make visibile.
2595 (arm_simd_builtin_std_type): Rename arm_simd_floatHF_type_node to
2596 arm_fp16_type_node.
2597 (arm_init_simd_builtin_types): Likewise.
2598 (arm_init_fp16_builtins): Likewise.
2599 * config/arm/arm.c (arm_excess_precision): New.
2600 (arm_floatn_mode): Likewise.
2601 (TARGET_C_EXCESS_PRECISION): Likewise.
2602 (TARGET_FLOATN_MODE): Likewise.
2603 (arm_promoted_type): Only promote arm_fp16_type_node.
2604 * config/arm/arm.h (arm_fp16_type_node): Declare.
2605
2606 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
2607
2608 * config/arm/arm.c (arm_convert_to_type): Delete.
2609 (TARGET_CONVERT_TO_TYPE): Delete.
2610 (arm_init_libfuncs): Enable trunc_optab from DFmode to HFmode.
2611 (arm_libcall_uses_aapcs_base): Add trunc_optab from DF- to HFmode.
2612 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): New.
2613 * config/arm/arm.md (truncdfhf2): Only convert through SFmode if we
2614 are in fast math mode, and have no single step hardware instruction.
2615 (extendhfdf2): Only expand through SFmode if we don't have a
2616 single-step hardware instruction.
2617 * config/arm/vfp.md (*truncdfhf2): New.
2618 (extendhfdf2): Likewise.
2619
2620 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
2621
2622 * targhooks.c (default_floatn_mode): Enable _Float16 if a target
2623 provides HFmode.
2624
2625 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
2626
2627 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Delete.
2628 * config/m68k/m68k.h (TARGET_FLT_EVAL_METHOD): Delete.
2629 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Delete.
2630 * defaults.h (TARGET_FLT_EVAL_METHOD): Delete.
2631 * doc/tm.texi.in (TARGET_FLT_EVAL_METHOD): Delete.
2632 * doc/tm.texi: Regenerate.
2633 * system.h (TARGET_FLT_EVAL_METHOD): Poison.
2634
2635 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
2636
2637 * toplev.c (init_excess_precision): Delete most logic.
2638 * tree.c (excess_precision_type): Rewrite to use
2639 TARGET_EXCESS_PRECISION.
2640 * doc/invoke.texi (-fexcess-precision): Document behaviour in a
2641 more generic fashion.
2642 * ginclude/float.h: Wrap definition of FLT_EVAL_METHOD in
2643 __STDC_WANT_IEC_60559_TYPES_EXT__.
2644
2645 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
2646
2647 * common.opt (fpermitted-flt-eval-methods): New.
2648 * doc/invoke.texi (-fpermitted-flt-eval-methods): Document it.
2649 * flag_types.h (permitted_flt_eval_methods): New.
2650
2651 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
2652
2653 * config/m68k/m68k.c (m68k_excess_precision): New.
2654 (TARGET_C_EXCESS_PRECISION): Define.
2655
2656 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
2657
2658 * config/s390/s390.c (s390_excess_precision): New.
2659 (TARGET_C_EXCESS_PRECISION): Define.
2660
2661 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
2662
2663 * config/i386/i386.c (ix86_excess_precision): New.
2664 (TARGET_C_EXCESS_PRECISION): Define.
2665
2666 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
2667
2668 * target.def (excess_precision): New hook.
2669 * target.h (flt_eval_method): New.
2670 (excess_precision_type): Likewise.
2671 * targhooks.c (default_excess_precision): New.
2672 * targhooks.h (default_excess_precision): New.
2673 * doc/tm.texi.in (TARGET_C_EXCESS_PRECISION): New.
2674 * doc/tm.texi: Regenerate.
2675
2676 2016-11-23 Martin Sebor <msebor@redhat.com>
2677
2678 PR middle-end/78461
2679 * gimple-ssa-sprintf.c (format_string): Correct the maxima and
2680 set the minimum number of bytes for an unknown string to zero.
2681
2682 2016-11-23 Martin Jambor <mjambor@suse.cz>
2683 Martin Liska <mliska@suse.cz>
2684
2685 * hsa-builtins.def: New file.
2686 * Makefile.in (BUILTINS_DEF): Add hsa-builtins.def dependency.
2687 * builtins.def: Include hsa-builtins.def.
2688 (DEF_HSA_BUILTIN): New macro.
2689 * dumpfile.h (OPTGROUP_OPENMP): Define.
2690 * dumpfile.c (optgroup_options): Added OPTGROUP_OPENMP.
2691 * gimple.h (gf_mask): Added elements GF_OMP_FOR_GRID_INTRA_GROUP and
2692 GF_OMP_FOR_GRID_GROUP_ITER.
2693 (gimple_omp_for_grid_phony): Added checking assert.
2694 (gimple_omp_for_set_grid_phony): Likewise.
2695 (gimple_omp_for_grid_intra_group): New function.
2696 (gimple_omp_for_set_grid_intra_group): Likewise.
2697 (gimple_omp_for_grid_group_iter): Likewise.
2698 (gimple_omp_for_set_grid_group_iter): Likewise.
2699 * omp-low.c (check_omp_nesting_restrictions): Allow GRID loop where
2700 previosuly only distribute loop was permitted.
2701 (lower_lastprivate_clauses): Allow non tcc_comparison predicates.
2702 (grid_get_kernel_launch_attributes): Support multiple HSA grid
2703 dimensions.
2704 (grid_expand_omp_for_loop): Likewise and also support standalone
2705 distribute constructs. New parameter INTRA_GROUP, updated both users.
2706 (grid_expand_target_grid_body): Support standalone distribute
2707 constructs.
2708 (pass_data_expand_omp): Changed optinfo_flags to OPTGROUP_OPENMP.
2709 (pass_data_expand_omp_ssa): Likewise.
2710 (pass_data_omp_device_lower): Likewsie.
2711 (pass_data_lower_omp): Likewise.
2712 (pass_data_diagnose_omp_blocks): Likewise.
2713 (pass_data_oacc_device_lower): Likewise.
2714 (pass_data_omp_target_link): Likewise.
2715 (grid_lastprivate_predicate): New function.
2716 (lower_omp_for_lastprivate): Call grid_lastprivate_predicate for
2717 gridified loops.
2718 (lower_omp_for): Support standalone distribute constructs.
2719 (grid_prop): New type.
2720 (grid_safe_assignment_p): Check for assignments to group_sizes, new
2721 parameter GRID.
2722 (grid_seq_only_contains_local_assignments): New parameter GRID, pass
2723 it to callee.
2724 (grid_find_single_omp_among_assignments_1): Likewise, improve missed
2725 optimization info messages.
2726 (grid_find_single_omp_among_assignments): Likewise.
2727 (grid_find_ungridifiable_statement): Do not bail out for SIMDs.
2728 (grid_parallel_clauses_gridifiable): New function.
2729 (grid_inner_loop_gridifiable_p): Likewise.
2730 (grid_dist_follows_simple_pattern): Likewise.
2731 (grid_gfor_follows_tiling_pattern): Likewise.
2732 (grid_call_permissible_in_distribute_p): Likewise.
2733 (grid_handle_call_in_distribute): Likewise.
2734 (grid_dist_follows_tiling_pattern): Likewise.
2735 (grid_target_follows_gridifiable_pattern): Support standalone
2736 distribute constructs.
2737 (grid_var_segment): New enum.
2738 (grid_mark_variable_segment): New function.
2739 (grid_copy_leading_local_assignments): Call grid_mark_variable_segment
2740 if a new argument says so.
2741 (grid_process_grid_body): New function.
2742 (grid_eliminate_combined_simd_part): Likewise.
2743 (grid_mark_tiling_loops): Likewise.
2744 (grid_mark_tiling_parallels_and_loops): Likewise.
2745 (grid_process_kernel_body_copy): Support standalone distribute
2746 constructs.
2747 (grid_attempt_target_gridification): New grid variable holding overall
2748 gridification state. Support standalone distribute constructs and
2749 collapse clauses.
2750 * doc/optinfo.texi (Optimization groups): Document OPTGROUP_OPENMP.
2751 * hsa.h (hsa_bb): Add method method append_phi.
2752 (hsa_insn_br): Renamed to hsa_insn_cbr, renamed all
2753 occurences in all files too.
2754 (hsa_insn_br): New class, now the ancestor of hsa_incn_cbr.
2755 (is_a_helper <hsa_insn_br *>::test): New function.
2756 (is_a_helper <hsa_insn_cbr *>::test): Adjust to only cover conditional
2757 branch instructions.
2758 (hsa_insn_signal): Make a direct descendant of
2759 hsa_insn_basic. Add memorder constructor parameter and
2760 m_memory_order and m_signalop member variables.
2761 (hsa_insn_queue): Changed constructor parameters to common form.
2762 Added m_segment and m_memory_order member variables.
2763 (hsa_summary_t): Add private member function
2764 process_gpu_implementation_attributes.
2765 (hsa_function_summary): Rename m_binded_function to
2766 m_bound_function.
2767 (hsa_insn_basic_p): Remove typedef.
2768 (hsa_op_with_type): Change hsa_insn_basic_p into plain pointers.
2769 (hsa_op_reg_p): Remove typedef.
2770 (hsa_function_representation): Change hsa_op_reg_p into plain
2771 pointers.
2772 (hsa_insn_phi): Removed new and delete operators.
2773 (hsa_insn_br): Likewise.
2774 (hsa_insn_cbr): Likewise.
2775 (hsa_insn_sbr): Likewise.
2776 (hsa_insn_cmp): Likewise.
2777 (hsa_insn_mem): Likewise.
2778 (hsa_insn_atomic): Likewise.
2779 (hsa_insn_signal): Likewise.
2780 (hsa_insn_seg): Likewise.
2781 (hsa_insn_call): Likewise.
2782 (hsa_insn_arg_block): Likewise.
2783 (hsa_insn_comment): Likewise.
2784 (hsa_insn_srctype): Likewise.
2785 (hsa_insn_packed): Likewise.
2786 (hsa_insn_cvt): Likewise.
2787 (hsa_insn_alloca): Likewise.
2788 * hsa.c (hsa_destroy_insn): Also handle instances of hsa_insn_br.
2789 (process_gpu_implementation_attributes): New function.
2790 (link_functions): Move some functionality into it. Adjust after
2791 renaming m_binded_functions to m_bound_functions.
2792 (hsa_insn_basic::op_output_p): Add BRIG_OPCODE_DEBUGTRAP
2793 to the list of instructions with no output registers.
2794 (get_in_type): Return this if it is a register of
2795 matching size.
2796 (hsa_get_declaration_name): Moved to...
2797 * hsa-gen.c (hsa_get_declaration_name): ...here. Allocate
2798 temporary string on an obstack instead from ggc.
2799 (query_hsa_grid): Renamed to query_hsa_grid_dim, reimplemented, cut
2800 down to two overloads.
2801 (hsa_allocp_operand_address): Removed.
2802 (hsa_allocp_operand_immed): Likewise.
2803 (hsa_allocp_operand_reg): Likewise.
2804 (hsa_allocp_operand_code_list): Likewise.
2805 (hsa_allocp_operand_operand_list): Likewise.
2806 (hsa_allocp_inst_basic): Likewise.
2807 (hsa_allocp_inst_phi): Likewise.
2808 (hsa_allocp_inst_mem): Likewise.
2809 (hsa_allocp_inst_atomic): Likewise.
2810 (hsa_allocp_inst_signal): Likewise.
2811 (hsa_allocp_inst_seg): Likewise.
2812 (hsa_allocp_inst_cmp): Likewise.
2813 (hsa_allocp_inst_br): Likewise.
2814 (hsa_allocp_inst_sbr): Likewise.
2815 (hsa_allocp_inst_call): Likewise.
2816 (hsa_allocp_inst_arg_block): Likewise.
2817 (hsa_allocp_inst_comment): Likewise.
2818 (hsa_allocp_inst_queue): Likewise.
2819 (hsa_allocp_inst_srctype): Likewise.
2820 (hsa_allocp_inst_packed): Likewise.
2821 (hsa_allocp_inst_cvt): Likewise.
2822 (hsa_allocp_inst_alloca): Likewise.
2823 (hsa_allocp_bb): Likewise.
2824 (hsa_obstack): New.
2825 (hsa_init_data_for_cfun): Initialize obstack.
2826 (hsa_deinit_data_for_cfun): Release memory of the obstack.
2827 (hsa_op_immed::operator new): Use obstack instead of object_allocator.
2828 (hsa_op_reg::operator new): Likewise.
2829 (hsa_op_address::operator new): Likewise.
2830 (hsa_op_code_list::operator new): Likewise.
2831 (hsa_op_operand_list::operator new): Likewise.
2832 (hsa_insn_basic::operator new): Likewise.
2833 (hsa_insn_phi::operator new): Likewise.
2834 (hsa_insn_br::operator new): Likewise.
2835 (hsa_insn_sbr::operator new): Likewise.
2836 (hsa_insn_cmp::operator new): Likewise.
2837 (hsa_insn_mem::operator new): Likewise.
2838 (hsa_insn_atomic::operator new): Likewise.
2839 (hsa_insn_signal::operator new): Likewise.
2840 (hsa_insn_seg::operator new): Likewise.
2841 (hsa_insn_call::operator new): Likewise.
2842 (hsa_insn_arg_block::operator new): Likewise.
2843 (hsa_insn_comment::operator new): Likewise.
2844 (hsa_insn_srctype::operator new): Likewise.
2845 (hsa_insn_packed::operator new): Likewise.
2846 (hsa_insn_cvt::operator new): Likewise.
2847 (hsa_insn_alloca::operator new): Likewise.
2848 (hsa_init_new_bb): Likewise.
2849 (hsa_bb::append_phi): New function.
2850 (gen_hsa_phi_from_gimple_phi): Use it.
2851 (get_symbol_for_decl): Fix dinstinguishing between
2852 global and local functions. Put local variables into a segment
2853 according to their attribute or static flag, if there is one.
2854 (hsa_insn_br::hsa_insn_br): New.
2855 (hsa_insn_br::operator new): Likewise.
2856 (hsa_insn_cbr::hsa_insn_cbr): Set width via ancestor constructor.
2857 (query_hsa_grid_nodim): New function.
2858 (multiply_grid_dim_characteristics): Likewise.
2859 (gen_get_num_threads): Likewise.
2860 (gen_get_num_teams): Reimplemented.
2861 (gen_get_team_num): Likewise.
2862 (gen_hsa_insns_for_known_library_call): Updated calls to the above
2863 helper functions.
2864 (get_memory_order_name): Removed.
2865 (get_memory_order): Likewise.
2866 (hsa_memorder_from_tree): New function.
2867 (gen_hsa_ternary_atomic_for_builtin): Renamed to
2868 gen_hsa_atomic_for_builtin, can also create signals.
2869 (gen_hsa_insns_for_call): Handle many new builtins. Adjust to use
2870 hsa_memory_order_from_tree and gen_hsa_atomic_for_builtin.
2871 (hsa_insn_atomic): Fix function comment.
2872 (hsa_insn_signal::hsa_insn_signal): Fix comment. Update call to
2873 ancestor constructor and initialization of new member variables.
2874 (hsa_insn_queue::hsa_insn_queue): Added initialization of new
2875 member variables.
2876 (hsa_get_host_function): Handle functions with no bound CPU
2877 implementation. Fix binded to bound.
2878 (get_brig_function_name): Likewise.
2879 (HSA_SORRY_ATV): Remove semicolon after macro.
2880 (HSA_SORRY_AT): Likewise.
2881 (omp_simple_builtin::generate): Add missing semicolons.
2882 (hsa_insn_phi::operator new): Removed.
2883 (hsa_insn_br::operator new): Likewise.
2884 (hsa_insn_cbr::operator new): Likewise.
2885 (hsa_insn_sbr::operator new): Likewise.
2886 (hsa_insn_cmp::operator new): Likewise.
2887 (hsa_insn_mem::operator new): Likewise.
2888 (hsa_insn_atomic::operator new): Likewise.
2889 (hsa_insn_signal::operator new): Likewise.
2890 (hsa_insn_seg::operator new): Likewise.
2891 (hsa_insn_call::operator new): Likewise.
2892 (hsa_insn_arg_block::operator new): Likewise.
2893 (hsa_insn_comment::operator new): Likewise.
2894 (hsa_insn_srctype::operator new): Likewise.
2895 (hsa_insn_packed::operator new): Likewise.
2896 (hsa_insn_cvt::operator new): Likewise.
2897 (hsa_insn_alloca::operator new): Likewise.
2898 (get_symbol_for_decl): Accept CONST_DECLs, put them to
2899 readonly segment.
2900 (gen_hsa_addr): Also process CONST_DECLs.
2901 (gen_hsa_addr_insns): Process CONST_DECLs by creating private
2902 copies.
2903 (gen_hsa_unary_operation): Make sure the function does
2904 not use bittype source type for firstbit and lastbit operations.
2905 (gen_hsa_popcount_to_dest): Make sure the function uses a bittype
2906 source type.
2907 * hsa-brig.c (emit_insn_operands): Cope with zero operands in an
2908 instruction.
2909 (emit_branch_insn): Renamed to emit_cond_branch_insn.
2910 Emit the width stored in the class.
2911 (emit_generic_branch_insn): New function.
2912 (emit_insn): Call emit_generic_branch_insn.
2913 (emit_signal_insn): Remove obsolete comment. Update
2914 member variable name, pick a type according to profile.
2915 (emit_alloca_insn): Remove obsolete comment.
2916 (emit_atomic_insn): Likewise.
2917 (emit_queue_insn): Get segment and memory order from the IR object.
2918 (hsa_brig_section): Make allocate_new_chunk, chunks
2919 and cur_chunk provate, add a default NULL parameter to add method.
2920 (hsa_brig_section::add): Added a new parameter, store pointer to
2921 output data there if it is non-NULL.
2922 (emit_function_directives): Use this new parameter instead of
2923 calculating the pointer itself, fix function comment.
2924 (hsa_brig_emit_function): Add forgotten endian conversion.
2925 (hsa_output_kernels): Remove unnecessary building of
2926 kernel_dependencies_vector_type.
2927 (emit_immediate_operand): Declare.
2928 (emit_directive_variable): Also emit initializers of CONST_DECLs.
2929 (gen_hsa_insn_for_internal_fn_call): Also handle IFN_RSQRT.
2930 (verify_function_arguments): Properly detect variadic
2931 arguments.
2932 * hsa-dump.c (hsa_width_specifier_name): New function.
2933 (dump_hsa_insn_1): Dump generic branch instructions, update signal
2934 member variable name. Special dumping for queue objects.
2935 * ipa-hsa.c (process_hsa_functions): Adjust after renaming
2936 m_binded_functions to m_bound_functions. Copy externally visible flag
2937 to the node.
2938 (ipa_hsa_write_summary): Likewise.
2939 (ipa_hsa_read_section): Likewise.
2940
2941 2016-11-23 Richard Biener <rguenther@suse.de>
2942
2943 PR tree-optimization/78396
2944 * tree-vectorizer.c (vectorize_loops): If an innermost loop didn't
2945 vectorize try vectorizing an if-converted body using BB vectorization.
2946
2947 2016-11-23 Richard Sandiford <richard.sandiford@arm.com>
2948 Alan Hayward <alan.hayward@arm.com>
2949 David Sherwood <david.sherwood@arm.com>
2950
2951 * rtlanal.c (subreg_get_info): Use more local variables.
2952 Remark that for HARD_REGNO_NREGS_HAS_PADDING, each scalar unit
2953 occupies at least one register. Assume that full hard registers
2954 have consistent endianness. Share previously-duplicated if block.
2955 Rework the main handling so that it operates on independently-
2956 addressable YMODE-sized blocks. Use subreg_size_lowpart_offset
2957 to check lowpart offsets, without trying to find an equivalent
2958 integer mode first. Handle WORDS_BIG_ENDIAN != REG_WORDS_BIG_ENDIAN
2959 as a final register-endianness correction.
2960
2961 2016-11-23 Segher Boessenkool <segher@kernel.crashing.org>
2962
2963 PR target/77881
2964 PR bootstrap/78390
2965 PR target/78438
2966 PR bootstrap/78477
2967 * combine.c (make_compound_operation_int): Do not convert a subreg of
2968 a non-constant logical shift right to a zero_extract. Handle the case
2969 where some zero bits have been shifted into the range covered by that
2970 subreg.
2971
2972 2016-11-23 Richard Sandiford <richard.sandiford@arm.com>
2973 Alan Hayward <alan.hayward@arm.com>
2974 David Sherwood <david.sherwood@arm.com>
2975
2976 * rtl.h (subreg_size_offset_from_lsb): Declare.
2977 (subreg_offset_from_lsb): New function.
2978 (subreg_size_lowpart_offset): Declare.
2979 (subreg_lowpart_offset): Turn into an inline function.
2980 (subreg_size_highpart_offset): Declare.
2981 (subreg_highpart_offset): Turn into an inline function.
2982 * emit-rtl.c (subreg_size_lowpart_offset): New function.
2983 (subreg_size_highpart_offset): Likewise
2984 * rtlanal.c (subreg_size_offset_from_lsb): Likewise.
2985
2986 2016-11-23 Richard Biener <rguenther@suse.de>
2987
2988 PR tree-optimization/78482
2989 * tree-cfgcleanup.c: Include tree-ssa-loop-niter.h.
2990 (remove_forwarder_block_with_phi): When merging with a loop
2991 header creates a new latch reset number of iteration information
2992 of the loop.
2993
2994 2016-11-23 Eric Botcazou <ebotcazou@adacore.com>
2995
2996 * config/sparc/sparc.md (*ashrsi3_extend): Rename to...
2997 (*ashrsi3_extend0): ...this. Accept constant integers.
2998 (*ashrsi3_extend2): Rename to...
2999 (*ashrsi3_extend1): ...this.
3000 (*ashrsi3_extend2): New pattern.
3001 (*lshrsi3_extend1): Accept constant integers.
3002 (*lshrsi3_extend2): Fix condition on operand 2.
3003
3004 2016-11-23 Martin Liska <mliska@suse.cz>
3005
3006 * config/i386/i386.c: Initialize function pointer to NULL.
3007
3008 2016-11-23 Bin Cheng <bin.cheng@arm.com>
3009
3010 * fold-const.c (fold_cond_expr_with_comparison): Move simplification
3011 for A == C1 ? A : C2 to below.
3012 * match.pd: Move from above to here:
3013 (cond (eq (convert1? x) c1) (convert2? x) c2)
3014 -> (cond (eq x c1) c1 c2).
3015
3016 2016-11-23 Bin Cheng <bin.cheng@arm.com>
3017
3018 * fold-const.c (fold_cond_expr_with_comparison): Move simplification
3019 for A cmp C1 ? A : C2 to below, also simplify remaining code.
3020 * match.pd: Move and extend simplification from above to here:
3021 (cond (cmp (convert1? x) c1) (convert2? x) c2) -> (minmax (x c)).
3022 * tree-if-conv.c (ifcvt_follow_ssa_use_edges): New func.
3023 (predicate_scalar_phi): Call fold_stmt using the new valueize func.
3024
3025 2016-11-23 Martin Liska <mliska@suse.cz>
3026 Martin Jambor <mjambor@suse.cz>
3027
3028 * doc/install.texi: Remove entry about --with-hsa-kmt-lib.
3029
3030 2016-11-23 Aldy Hernandez <aldyh@redhat.com>
3031
3032 PR target/78213
3033 * opts.c (finish_options): Set -fsyntax-only if running self tests.
3034
3035 2016-11-23 Richard Biener <rguenther@suse.de>
3036
3037 PR middle-end/71762
3038 * match.pd ((~X & Y) -> X < Y, (X & ~Y) -> Y < X,
3039 (~X | Y) -> X <= Y, (X | ~Y) -> Y <= X): Remove.
3040
3041 2016-11-23 Richard Biener <rguenther@suse.de>
3042
3043 PR lto/78472
3044 * tree.c (gimple_canonical_types_compatible_p): Ignore zero-sized
3045 fields.
3046
3047 2016-11-23 Richard Biener <rguenther@suse.de>
3048 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.rog>
3049
3050 PR tree-optimization/78154
3051 * tree-vrp.c (gimple_stmt_nonzero_warnv_p): Return true if function
3052 returns it's argument and the argument is nonnull.
3053 * builtin-attrs.def: Define ATTR_RETURNS_NONNULL,
3054 ATT_RETNONNULL_NOTHROW_LEAF.
3055 * builtins.def (BUILT_IN_MEMPCPY): Change attribute to
3056 ATTR_RETNONNULL_NOTHROW_LEAF.
3057 (BUILT_IN_STPCPY): Likewise.
3058 (BUILT_IN_STPNCPY): Likewise.
3059 (BUILT_IN_MEMPCPY_CHK): Likewise.
3060 (BUILT_IN_STPCPY_CHK): Likewise.
3061 (BUILT_IN_STPNCPY_CHK): Likewise.
3062 (BUILT_IN_STRCAT): Change attribute to ATTR_RET1_NOTHROW_NONNULL_LEAF.
3063 (BUILT_IN_STRNCAT): Likewise.
3064 (BUILT_IN_STRNCPY): Likewise.
3065 (BUILT_IN_MEMSET_CHK): Likewise.
3066 (BUILT_IN_STRCAT_CHK): Likewise.
3067 (BUILT_IN_STRCPY_CHK): Likewise.
3068 (BUILT_IN_STRNCAT_CHK): Likewise.
3069 (BUILT_IN_STRNCPY_CHK): Likewise.
3070
3071 2016-11-23 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
3072
3073 * fold-const.c (tree_expr_nonzero_p) : Make non-static.
3074 * fold-const.h (tree_expr_nonzero_p) : Declare.
3075 * match.pd (cmp (mult:c @0 @1) (mult:c @2 @1) : New Pattern.
3076
3077 2016-11-23 Paolo Bonzini <bonzini@gnu.org>
3078
3079 * system.h (HAVE_DESIGNATED_INITIALIZERS,
3080 HAVE_DESIGNATED_UNION_INITIALIZERS): Do not use
3081 "defined" in macros.
3082 * doc/cpp.texi (Defined): Mention -Wexpansion-to-defined.
3083 * doc/cppopts.texi (Invocation): Document -Wexpansion-to-defined.
3084 * doc/invoke.texi (Warning Options): Document -Wexpansion-to-defined.
3085
3086 2016-11-23 Georg-Johann Lay <avr@gjlay.de>
3087
3088 PR target/60300
3089 * config/avr/constraints.md (Csp): Widen range to [-11..6].
3090 * config/avr/avr.c (avr_prologue_setup_frame): Limit number
3091 of RCALLs in prologue to 3.
3092
3093 2016-11-22 Michael Collison <michael.collison@arm.com>
3094
3095 * config/aarch64/aarch64-protos.h
3096 (aarch64_and_split_imm1, aarch64_and_split_imm2)
3097 (aarch64_and_bitmask_imm): New prototypes
3098 * config/aarch64/aarch64.c (aarch64_and_split_imm1):
3099 New overloaded function to create bit mask covering the
3100 lowest to highest bits set.
3101 (aarch64_and_split_imm2): New overloaded functions to create bit
3102 mask of zeros between first and last bit set.
3103 (aarch64_and_bitmask_imm): New function to determine if a integer
3104 is a valid two instruction "and" operation.
3105 * config/aarch64/aarch64.md:(and<mode>3): New define_insn and _split
3106 allowing wider range of constants with "and" operations.
3107 * (ior<mode>3, xor<mode>3): Use new LOGICAL2 iterator to prevent
3108 "and" operator from matching restricted constant range used for
3109 ior and xor operators.
3110 * config/aarch64/constraints.md (UsO constraint): New SImode constraint
3111 for constants in "and" operantions.
3112 (UsP constraint): New DImode constraint for constants
3113 in "and" operations.
3114 * config/aarch64/iterators.md (lconst2): New mode iterator.
3115 (LOGICAL2): New code iterator.
3116 * config/aarch64/predicates.md (aarch64_logical_and_immediate): New
3117 predicate.
3118 (aarch64_logical_and_operand): New predicate allowing extended
3119 constants for "and" operations.
3120
3121 2016-11-22 Walter Lee <walt@tilera.com>
3122
3123 * config/tilegx/tilegx.md (trap): New pattern.
3124 * config/tilepro/tilepro.md (trap): Likewise.
3125
3126 2016-11-22 Walter Lee <walt@tilera.com>
3127
3128 * config/tilegx/tilegx.md (*zero_extract): Use
3129 define_insn_and_split instead of define_insn; Handle pos + size >
3130 64.
3131 (*sign_extract): Likewise.
3132
3133 2016-11-22 Marek Polacek <polacek@redhat.com>
3134
3135 PR tree-optimization/78455
3136 * tree-ssa-uninit.c (can_chain_union_be_invalidated_p): Fix typo.
3137
3138 2016-11-22 Ian Lance Taylor <iant@golang.org>
3139
3140 PR go/78431
3141 PR go/78432
3142 * godump.c (go_format_type): Always pass alignment as 1 when
3143 calling go_append_padding at end of struct/union.
3144
3145 2016-11-22 Jakub Jelinek <jakub@redhat.com>
3146
3147 PR target/78451
3148 * config/i386/avx512bwintrin.h (_mm512_setzero_qi,
3149 _mm512_setzero_hi): Removed.
3150 (_mm512_maskz_mov_epi16, _mm512_maskz_loadu_epi16,
3151 _mm512_maskz_mov_epi8, _mm512_maskz_loadu_epi8,
3152 _mm512_maskz_broadcastb_epi8, _mm512_maskz_set1_epi8,
3153 _mm512_maskz_broadcastw_epi16, _mm512_maskz_set1_epi16,
3154 _mm512_mulhrs_epi16, _mm512_maskz_mulhrs_epi16, _mm512_mulhi_epi16,
3155 _mm512_maskz_mulhi_epi16, _mm512_mulhi_epu16,
3156 _mm512_maskz_mulhi_epu16, _mm512_maskz_mullo_epi16,
3157 _mm512_cvtepi8_epi16, _mm512_maskz_cvtepi8_epi16, _mm512_cvtepu8_epi16,
3158 _mm512_maskz_cvtepu8_epi16, _mm512_permutexvar_epi16,
3159 _mm512_maskz_permutexvar_epi16, _mm512_avg_epu8, _mm512_maskz_avg_epu8,
3160 _mm512_maskz_add_epi8, _mm512_maskz_sub_epi8, _mm512_avg_epu16,
3161 _mm512_maskz_avg_epu16, _mm512_subs_epi8, _mm512_maskz_subs_epi8,
3162 _mm512_subs_epu8, _mm512_maskz_subs_epu8, _mm512_adds_epi8,
3163 _mm512_maskz_adds_epi8, _mm512_adds_epu8, _mm512_maskz_adds_epu8,
3164 _mm512_maskz_sub_epi16, _mm512_subs_epi16, _mm512_maskz_subs_epi16,
3165 _mm512_subs_epu16, _mm512_maskz_subs_epu16, _mm512_maskz_add_epi16,
3166 _mm512_adds_epi16, _mm512_maskz_adds_epi16, _mm512_adds_epu16,
3167 _mm512_maskz_adds_epu16, _mm512_srl_epi16, _mm512_maskz_srl_epi16,
3168 _mm512_packs_epi16, _mm512_sll_epi16, _mm512_maskz_sll_epi16,
3169 _mm512_maddubs_epi16, _mm512_maskz_maddubs_epi16, _mm512_unpackhi_epi8,
3170 _mm512_maskz_unpackhi_epi8, _mm512_unpackhi_epi16,
3171 _mm512_maskz_unpackhi_epi16, _mm512_unpacklo_epi8,
3172 _mm512_maskz_unpacklo_epi8, _mm512_unpacklo_epi16,
3173 _mm512_maskz_unpacklo_epi16, _mm512_shuffle_epi8,
3174 _mm512_maskz_shuffle_epi8, _mm512_min_epu16, _mm512_maskz_min_epu16,
3175 _mm512_min_epi16, _mm512_maskz_min_epi16, _mm512_max_epu8,
3176 _mm512_maskz_max_epu8, _mm512_max_epi8, _mm512_maskz_max_epi8,
3177 _mm512_min_epu8, _mm512_maskz_min_epu8, _mm512_min_epi8,
3178 _mm512_maskz_min_epi8, _mm512_max_epi16, _mm512_maskz_max_epi16,
3179 _mm512_max_epu16, _mm512_maskz_max_epu16, _mm512_sra_epi16,
3180 _mm512_maskz_sra_epi16, _mm512_srav_epi16, _mm512_maskz_srav_epi16,
3181 _mm512_srlv_epi16, _mm512_maskz_srlv_epi16, _mm512_sllv_epi16,
3182 _mm512_maskz_sllv_epi16, _mm512_maskz_packs_epi16, _mm512_packus_epi16,
3183 _mm512_maskz_packus_epi16, _mm512_abs_epi8, _mm512_maskz_abs_epi8,
3184 _mm512_abs_epi16, _mm512_maskz_abs_epi16, _mm512_dbsad_epu8,
3185 _mm512_maskz_dbsad_epu8, _mm512_srli_epi16, _mm512_maskz_srli_epi16,
3186 _mm512_slli_epi16, _mm512_maskz_slli_epi16, _mm512_shufflehi_epi16,
3187 _mm512_maskz_shufflehi_epi16, _mm512_shufflelo_epi16,
3188 _mm512_maskz_shufflelo_epi16, _mm512_srai_epi16,
3189 _mm512_maskz_srai_epi16, _mm512_packs_epi32,
3190 _mm512_maskz_packs_epi32, _mm512_packus_epi32,
3191 _mm512_maskz_packus_epi32): Use _mm512_setzero_si512 instead of
3192 _mm512_setzero_qi or _mm512_setzero_hi.
3193 (_mm512_maskz_alignr_epi8, _mm512_dbsad_epu8,
3194 _mm512_maskz_dbsad_epu8): Formatting fixes.
3195 (_mm512_srli_epi16, _mm512_maskz_srli_epi16, _mm512_slli_epi16,
3196 _mm512_maskz_slli_epi16, _mm512_shufflehi_epi16,
3197 _mm512_maskz_shufflehi_epi16, _mm512_shufflelo_epi16,
3198 _mm512_maskz_shufflelo_epi16, _mm512_srai_epi16,
3199 _mm512_maskz_srai_epi16): Use _mm512_setzero_si512 instead of
3200 _mm512_setzero_qi or _mm512_setzero_hi.
3201
3202 2016-11-22 Nathan Sidwell <nathan@acm.org>
3203
3204 * gcc-ar.c (main): Fix indentation.
3205 * gcov-io.c (gcov_write_summary): Remove extraneous {...}
3206 * ggc-page.c (move_ptes_to_front): Fix formatting.
3207 * hsa-dump.c (dump_has_cfun): Fix indentation.
3208 * sel-sched-ir.h: Remove trailing blank lines.
3209
3210 2016-11-22 Jakub Jelinek <jakub@redhat.com>
3211 Alexander Monakov <amonakov@ispras.ru>
3212
3213 * internal-fn.c (expand_GOMP_USE_SIMT): New function.
3214 * tree.c (omp_clause_num_ops): OMP_CLAUSE__SIMT_ has 0 operands.
3215 (omp_clause_code_name): Add _simt_ name.
3216 (walk_tree_1): Handle OMP_CLAUSE__SIMT_.
3217 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SIMT_.
3218 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__SIMT_.
3219 (scan_omp_simd): New function.
3220 (scan_omp_1_stmt): Use it in target regions if needed.
3221 (omp_max_vf): Don't max with omp_max_simt_vf.
3222 (lower_rec_simd_input_clauses): Use omp_max_simt_vf if
3223 OMP_CLAUSE__SIMT_ is present.
3224 (lower_rec_input_clauses): Compute maybe_simt from presence of
3225 OMP_CLAUSE__SIMT_.
3226 (lower_lastprivate_clauses): Likewise.
3227 (expand_omp_simd): Likewise. Remove explicit offloaded region check.
3228 (execute_omp_device_lower): Lower IFN_GOMP_USE_SIMT.
3229 * internal-fn.def (GOMP_USE_SIMT): New internal function.
3230 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__SIMT_.
3231
3232 2016-11-22 Alexander Monakov <amonakov@ispras.ru>
3233
3234 * internal-fn.c (expand_GOMP_SIMT_LANE): New.
3235 (expand_GOMP_SIMT_VF): New.
3236 (expand_GOMP_SIMT_LAST_LANE): New.
3237 (expand_GOMP_SIMT_ORDERED_PRED): New.
3238 (expand_GOMP_SIMT_VOTE_ANY): New.
3239 (expand_GOMP_SIMT_XCHG_BFLY): New.
3240 (expand_GOMP_SIMT_XCHG_IDX): New.
3241 * internal-fn.def (GOMP_SIMT_LANE): New.
3242 (GOMP_SIMT_VF): New.
3243 (GOMP_SIMT_LAST_LANE): New.
3244 (GOMP_SIMT_ORDERED_PRED): New.
3245 (GOMP_SIMT_VOTE_ANY): New.
3246 (GOMP_SIMT_XCHG_BFLY): New.
3247 (GOMP_SIMT_XCHG_IDX): New.
3248 * omp-low.c (omp_maybe_offloaded_ctx): New, outlined from...
3249 (create_omp_child_function): ...here. Set "omp target entrypoint"
3250 or "omp declare target" attribute based on is_gimple_omp_offloaded.
3251 (omp_max_simt_vf): New. Use it...
3252 (omp_max_vf): ...here.
3253 (lower_rec_input_clauses): Add reduction lowering for SIMT execution.
3254 (lower_lastprivate_clauses): Likewise, for "lastprivate" lowering.
3255 (lower_omp_ordered): Likewise, for "ordered" lowering.
3256 (expand_omp_simd): Add SIMT transforms.
3257 (pass_data_lower_omp): Add PROP_gimple_lomp_dev.
3258 (execute_omp_device_lower): New.
3259 (pass_data_omp_device_lower): New.
3260 (pass_omp_device_lower): New pass.
3261 (make_pass_omp_device_lower): New.
3262 * passes.def (pass_omp_device_lower): Position new pass.
3263 * tree-pass.h (PROP_gimple_lomp_dev): Define.
3264 (make_pass_omp_device_lower): Declare.
3265
3266 2016-11-22 Jakub Jelinek <jakub@redhat.com>
3267
3268 PR target/78451
3269 * config/i386/avx512vlintrin.h (_mm_setzero_di): Removed.
3270 (_mm_maskz_mov_epi64): Use _mm_setzero_si128 instead of
3271 _mm_setzero_di.
3272 (_mm_maskz_load_epi64): Likewise.
3273 (_mm_setzero_hi): Removed.
3274 (_mm_maskz_loadu_epi64): Use _mm_setzero_si128 instead of
3275 _mm_setzero_di.
3276 (_mm_abs_epi64, _mm_maskz_abs_epi64, _mm_maskz_srl_epi64,
3277 _mm_maskz_unpackhi_epi64, _mm_maskz_unpacklo_epi64,
3278 _mm_maskz_compress_epi64, _mm_srav_epi64, _mm_maskz_srav_epi64,
3279 _mm_maskz_sllv_epi64, _mm_maskz_srlv_epi64, _mm_rolv_epi64,
3280 _mm_maskz_rolv_epi64, _mm_rorv_epi64, _mm_maskz_rorv_epi64,
3281 _mm_min_epi64, _mm_max_epi64, _mm_max_epu64, _mm_min_epu64,
3282 _mm_lzcnt_epi64, _mm_maskz_lzcnt_epi64, _mm_conflict_epi64,
3283 _mm_maskz_conflict_epi64, _mm_sra_epi64, _mm_maskz_sra_epi64,
3284 _mm_maskz_sll_epi64, _mm_rol_epi64, _mm_maskz_rol_epi64,
3285 _mm_ror_epi64, _mm_maskz_ror_epi64, _mm_alignr_epi64,
3286 _mm_maskz_alignr_epi64, _mm_srai_epi64, _mm_maskz_slli_epi64):
3287 Likewise.
3288 (_mm_cvtepi32_epi8, _mm256_cvtepi32_epi8, _mm_cvtsepi32_epi8,
3289 _mm256_cvtsepi32_epi8, _mm_cvtusepi32_epi8, _mm256_cvtusepi32_epi8,
3290 _mm_cvtepi32_epi16, _mm256_cvtepi32_epi16, _mm_cvtsepi32_epi16,
3291 _mm256_cvtsepi32_epi16, _mm_cvtusepi32_epi16, _mm256_cvtusepi32_epi16,
3292 _mm_cvtepi64_epi8, _mm256_cvtepi64_epi8, _mm_cvtsepi64_epi8,
3293 _mm256_cvtsepi64_epi8, _mm_cvtusepi64_epi8, _mm256_cvtusepi64_epi8,
3294 _mm_cvtepi64_epi16, _mm256_cvtepi64_epi16, _mm_cvtsepi64_epi16,
3295 _mm256_cvtsepi64_epi16, _mm_cvtusepi64_epi16, _mm256_cvtusepi64_epi16,
3296 _mm_cvtepi64_epi32, _mm256_cvtepi64_epi32, _mm_cvtsepi64_epi32,
3297 _mm256_cvtsepi64_epi32, _mm_cvtusepi64_epi32, _mm256_cvtusepi64_epi32,
3298 _mm_maskz_set1_epi32, _mm_maskz_set1_epi64): Formatting fixes.
3299 (_mm_maskz_cvtps_ph, _mm256_maskz_cvtps_ph): Use _mm_setzero_si128
3300 instead of _mm_setzero_hi.
3301 (_mm256_permutex_pd, _mm256_maskz_permutex_epi64, _mm256_insertf32x4,
3302 _mm256_maskz_insertf32x4, _mm256_inserti32x4, _mm256_maskz_inserti32x4,
3303 _mm256_extractf32x4_ps, _mm256_maskz_extractf32x4_ps,
3304 _mm256_shuffle_i32x4, _mm256_maskz_shuffle_i32x4, _mm256_shuffle_f64x2,
3305 _mm256_maskz_shuffle_f64x2, _mm256_shuffle_f32x4,
3306 _mm256_maskz_shuffle_f32x4, _mm256_maskz_shuffle_pd,
3307 _mm_maskz_shuffle_pd, _mm256_maskz_shuffle_ps, _mm_maskz_shuffle_ps,
3308 _mm256_maskz_srli_epi32, _mm_maskz_srli_epi32, _mm_maskz_srli_epi64,
3309 _mm256_mask_slli_epi32, _mm256_maskz_slli_epi32, _mm256_mask_slli_epi64,
3310 _mm256_maskz_slli_epi64, _mm256_roundscale_ps,
3311 _mm256_maskz_roundscale_ps, _mm256_roundscale_pd,
3312 _mm256_maskz_roundscale_pd, _mm_roundscale_ps, _mm_maskz_roundscale_ps,
3313 _mm_roundscale_pd, _mm_maskz_roundscale_pd, _mm256_getmant_ps,
3314 _mm256_maskz_getmant_ps, _mm_getmant_ps, _mm_maskz_getmant_ps,
3315 _mm256_getmant_pd, _mm256_maskz_getmant_pd, _mm_getmant_pd,
3316 _mm_maskz_getmant_pd, _mm256_maskz_shuffle_epi32,
3317 _mm_maskz_shuffle_epi32, _mm256_rol_epi32, _mm256_maskz_rol_epi32,
3318 _mm_rol_epi32, _mm_maskz_rol_epi32, _mm256_ror_epi32,
3319 _mm256_maskz_ror_epi32, _mm_ror_epi32, _mm_maskz_ror_epi32,
3320 _mm_maskz_alignr_epi32, _mm_maskz_alignr_epi64,
3321 _mm256_maskz_srai_epi32, _mm_maskz_srai_epi32, _mm_srai_epi64,
3322 _mm_maskz_srai_epi64, _mm256_maskz_permutex_pd,
3323 _mm256_maskz_permute_pd, _mm256_maskz_permute_ps, _mm_maskz_permute_pd,
3324 _mm_maskz_permute_ps, _mm256_permutexvar_ps): Formatting fixes.
3325 (_mm_maskz_slli_epi64, _mm_rol_epi64, _mm_maskz_rol_epi64,
3326 _mm_ror_epi64, _mm_maskz_ror_epi64): Use _mm_setzero_si128 instead of
3327 _mm_setzero_di.
3328 (_mm_maskz_cvtps_ph, _mm256_maskz_cvtps_ph): Use _mm_setzero_si128
3329 instead of _mm_setzero_hi.
3330 * config/i386/avx512dqintrin.h (_mm512_broadcast_f64x2,
3331 _mm512_broadcast_i64x2, _mm512_broadcast_f32x2, _mm512_broadcast_i32x2,
3332 _mm512_broadcast_f32x8, _mm512_broadcast_i32x8): Formatting fixes.
3333 (_mm512_extracti64x2_epi64, _mm512_maskz_extracti64x2_epi64): Use
3334 _mm_setzero_si128 instead of _mm_setzero_di.
3335 (_mm512_cvtt_roundpd_epi64, _mm512_mask_cvtt_roundpd_epi64,
3336 _mm512_maskz_cvtt_roundpd_epi64, _mm512_cvtt_roundpd_epu64,
3337 _mm512_mask_cvtt_roundpd_epu64, _mm512_maskz_cvtt_roundpd_epu64,
3338 _mm512_cvtt_roundps_epi64, _mm512_mask_cvtt_roundps_epi64,
3339 _mm512_maskz_cvtt_roundps_epi64, _mm512_cvtt_roundps_epu64,
3340 _mm512_mask_cvtt_roundps_epu64, _mm512_maskz_cvtt_roundps_epu64,
3341 _mm512_cvt_roundpd_epi64, _mm512_mask_cvt_roundpd_epi64,
3342 _mm512_maskz_cvt_roundpd_epi64, _mm512_cvt_roundpd_epu64,
3343 _mm512_mask_cvt_roundpd_epu64, _mm512_maskz_cvt_roundpd_epu64,
3344 _mm512_cvt_roundps_epi64, _mm512_mask_cvt_roundps_epi64,
3345 _mm512_maskz_cvt_roundps_epi64, _mm512_cvt_roundps_epu64,
3346 _mm512_mask_cvt_roundps_epu64, _mm512_maskz_cvt_roundps_epu64,
3347 _mm512_cvt_roundepi64_ps, _mm512_mask_cvt_roundepi64_ps,
3348 _mm512_maskz_cvt_roundepi64_ps, _mm512_cvt_roundepu64_ps,
3349 _mm512_mask_cvt_roundepu64_ps, _mm512_maskz_cvt_roundepu64_ps,
3350 _mm512_cvt_roundepi64_pd, _mm512_mask_cvt_roundepi64_pd,
3351 _mm512_maskz_cvt_roundepi64_pd, _mm512_cvt_roundepu64_pd,
3352 _mm512_mask_cvt_roundepu64_pd, _mm512_maskz_cvt_roundepu64_pd,
3353 _mm512_reduce_pd, _mm512_maskz_reduce_pd, _mm512_reduce_ps,
3354 _mm512_maskz_reduce_ps, _mm512_extractf32x8_ps,
3355 _mm512_maskz_extractf32x8_ps, _mm512_extractf64x2_pd,
3356 _mm512_maskz_extractf64x2_pd, _mm512_extracti32x8_epi32,
3357 _mm512_maskz_extracti32x8_epi32, _mm512_range_pd,
3358 _mm512_maskz_range_pd, _mm512_range_ps, _mm512_maskz_range_ps,
3359 _mm512_range_round_pd, _mm512_maskz_range_round_pd,
3360 _mm512_range_round_ps, _mm512_maskz_range_round_ps,
3361 _mm512_maskz_insertf64x2, _mm512_insertf32x8,
3362 _mm512_maskz_insertf32x8): Formatting fixes.
3363 (_mm512_extracti64x2_epi64, _mm512_maskz_extracti64x2_epi64): Use
3364 _mm_setzero_si128 instead of _mm_setzero_di.
3365 * config/i386/avx512vldqintrin.h (_mm_cvttpd_epi64,
3366 _mm_cvttpd_epu64, _mm_cvtpd_epi64, _mm_cvtpd_epu64,
3367 _mm_cvttps_epi64, _mm_maskz_cvttps_epi64, _mm_cvttps_epu64,
3368 _mm_maskz_cvttps_epu64, _mm_maskz_mullo_epi64, _mm_cvtps_epi64,
3369 _mm_maskz_cvtps_epi64, _mm_cvtps_epu64, _mm_maskz_cvtps_epu64,
3370 _mm256_extracti64x2_epi64, _mm256_maskz_extracti64x2_epi64): Use
3371 _mm_setzero_si128 instead of _mm_setzero_di.
3372 (_mm256_extracti64x2_epi64, _mm256_maskz_extracti64x2_epi64):
3373 Likewise in macros.
3374 * config/i386/avx512vlbwintrin.h (_mm_maskz_mov_epi8,
3375 _mm_maskz_loadu_epi16, _mm_maskz_mov_epi16, _mm_maskz_loadu_epi8,
3376 _mm_permutexvar_epi16, _mm_maskz_maddubs_epi16): Use
3377 _mm_setzero_si128 instead of _mm_setzero_hi.
3378 (_mm_maskz_min_epu16, _mm_maskz_max_epu8, _mm_maskz_max_epi8,
3379 _mm_maskz_min_epu8, _mm_maskz_min_epi8, _mm_maskz_max_epi16,
3380 _mm_maskz_max_epu16, _mm_maskz_min_epi16): Use _mm_setzero_si128
3381 instead of _mm_setzero_di.
3382 (_mm_dbsad_epu8, _mm_maskz_shufflehi_epi16,
3383 _mm_maskz_shufflelo_epi16): Use _mm_setzero_si128 instead of
3384 _mm_setzero_hi.
3385 (_mm_maskz_shufflehi_epi16, _mm_maskz_shufflelo_epi16,
3386 _mm_maskz_slli_epi16): Use _mm_setzero_si128 instead of
3387 _mm_setzero_hi.
3388 (_mm_maskz_alignr_epi8): Use _mm_setzero_si128 instead of
3389 _mm_setzero_di.
3390 (_mm_maskz_mulhi_epi16, _mm_maskz_mulhi_epu16, _mm_maskz_mulhrs_epi16,
3391 _mm_maskz_mullo_epi16, _mm_srav_epi16, _mm_srlv_epi16,
3392 _mm_sllv_epi16): Use _mm_setzero_si128 instead of _mm_setzero_hi.
3393
3394 2016-11-22 Carl Love <cel@us.ibm.com>
3395
3396 * config/rs6000/rs6000-c.c: Add built-in support for vector compare
3397 equal and vector compare not equal. The vector compares take two
3398 arguments of type vector bool char, vector bool short, vector bool int,
3399 vector bool long long with the same return type.
3400 * doc/extend.texi: Update built-in documentation file for the new
3401 powerpc built-ins.
3402
3403 2016-11-22 Uros Bizjak <ubizjak@gmail.com>
3404
3405 * Makefile.in ($(lang_checks_parallelized)): Fix detection
3406 of -j argument.
3407
3408 2016-11-22 Thomas Preud'homme <thomas.preudhomme@arm.com>
3409
3410 * config.gcc: Allow new rmprofile value for configure option
3411 --with-multilib-list.
3412 * config/arm/t-rmprofile: New file.
3413 * doc/install.texi (--with-multilib-list): Document new rmprofile value
3414 for ARM.
3415
3416 2016-11-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3417
3418 PR target/78439
3419 * config/arm/vfp.md (*movdi_vfp_cortexa8): Use 'q' constraints for the
3420 register operand in alternatives 4,5,6.
3421
3422 2016-11-22 Thomas Preud'homme <thomas.preudhomme@arm.com>
3423
3424 PR target/77904
3425 * config/arm/arm.c (thumb1_compute_save_reg_mask): Mark frame pointer
3426 in save register mask if it is needed.
3427
3428 2016-11-22 Jakub Jelinek <jakub@redhat.com>
3429
3430 PR tree-optimization/78436
3431 * gimple-ssa-store-merging.c (zero_char_buf): Removed.
3432 (shift_bytes_in_array, shift_bytes_in_array_right,
3433 merged_store_group::apply_stores): Formatting fixes.
3434 (clear_bit_region): Likewise. Use memset.
3435 (encode_tree_to_bitpos): Formatting fixes. Fix comment typos - EPXR
3436 instead of EXPR and inerted instead of inserted. Use memset instead
3437 of zero_char_buf. For !BYTES_BIG_ENDIAN decrease byte_size by 1
3438 if shift_amnt is 0.
3439
3440 PR middle-end/78416
3441 * expmed.c (expand_divmod): Use wide_int for computation of
3442 op1_is_pow2. Don't set it if op1 is 0. Formatting fixes.
3443 Use size <= HOST_BITS_PER_WIDE_INT instead of
3444 HOST_BITS_PER_WIDE_INT >= size.
3445
3446 PR tree-optimization/78445
3447 * tree-if-conv.c (tree_if_conversion): If any_pred_load_store or
3448 any_complicated_phi, version loop even if flag_tree_loop_if_convert
3449 is 1. Formatting fix.
3450
3451 2016-11-22 Martin Liska <mliska@suse.cz>
3452
3453 PR ipa/78309
3454 * ipa-icf.c (void sem_item::set_hash): Update m_hash_set.
3455 (sem_function::get_hash): Use the new field.
3456 (sem_function::parse): Remove an argument from ctor.
3457 (sem_variable::parse): Likewise.
3458 (sem_variable::get_hash): Use the new field.
3459 (sem_item_optimizer::read_section): Use new ctor and set hash.
3460 * ipa-icf.h: _hash is removed from sem_item::sem_item,
3461 sem_variable::sem_variable, sem_function::sem_function.
3462
3463 2016-11-21 Jeff Law <law@redhat.com>
3464
3465 PR target/68538
3466 * config/cris/cris.md: Don't call copy_to_mode_reg unless
3467 can_create_pseudo_p is true.
3468
3469 2016-11-21 Segher Boessenkool <segher@kernel.crashing.org>
3470
3471 PR target/68803
3472 * config/rs6000/rs6000.md (*rotlsi3_insert_5, *rotldi3_insert_6,
3473 *rotldi3_insert_7): New define_insns.
3474
3475 2016-11-21 Michael Meissner <meissner@linux.vnet.ibm.com>
3476
3477 * config/rs6000/rs6000.md (movdi_internal32): Change constraints
3478 so that DImode can be allocated to FP/vector registers in more
3479 cases, and we can avoid direct move operations. If the register
3480 needs reloading, prefer GPRs over FP/vector registers. In the
3481 case of FPR vs. Altivec registers, prefer FPR registers unless we
3482 have the ISA 3.0 reg+offset scalar instructions.
3483 (movdi_internal64): Likewise.
3484
3485 2016-11-21 Jakub Jelinek <jakub@redhat.com>
3486
3487 PR middle-end/67335
3488 * omp-simd-clone.c (simd_clone_adjust_argument_types): Use NULL prefix
3489 for tmp simd array if DECL_NAME (parm) is NULL.
3490
3491 2016-11-20 Jeff Law <law@redhat.com>
3492
3493 PR target/25128
3494 * config/m68k/predicates.md (swap_peephole_relational_operator): New
3495 predicate.
3496 * config/m68k/m68k.md (relational tests against 65535/65536): New
3497 peephole2.
3498
3499 2016-11-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3500
3501 * tree-ssa-loop-prefetch.c: Delete FIXME after the includes.
3502
3503 2016-11-21 Martin Sebor <msebor@redhat.com>
3504
3505 * doc/invoke.texi (-fprintf-return-value): Document that option
3506 is enabled by default.
3507
3508 2016-11-21 Georg-Johann Lay <avr@gjlay.de>
3509
3510 * config/avr/avr-c.c (avr_register_target_pragmas): Use C++
3511 for-loop declaration of loop variable.
3512 (avr_register_target_pragmas, avr_cpu_cpp_builtins): Same.
3513 * config/avr/avr.c (avr_popcount_each_byte)
3514 (avr_init_expanders, avr_regs_to_save, sequent_regs_live)
3515 (get_sequence_length, avr_prologue_setup_frame, avr_map_metric)
3516 (avr_expand_epilogue, avr_function_arg_advance)
3517 (avr_out_compare, avr_out_plus_1, avr_out_bitop, avr_out_fract)
3518 (avr_rotate_bytes, _reg_unused_after, avr_assemble_integer)
3519 (avr_adjust_reg_alloc_order, output_reload_in_const)
3520 (avr_conditional_register_usage, avr_find_unused_d_reg)
3521 (avr_map_decompose, avr_fold_builtin): Same.
3522
3523 2016-11-21 Georg-Johann Lay <avr@gjlay.de>
3524
3525 * config/avr/avr.c (avr_popcount): Remove static function.
3526 (avr_popcount_each_byte, avr_out_bitop): Use popcount_hwi instead.
3527
3528 2016-11-21 Richard Earnshaw <rearnsha@arm.com>
3529
3530 * arm.opt (mapcs-float): Delete option.
3531 * arm.c (arm_option_override): Remove hunk relating to
3532 TARGET_APCS_FLOAT.
3533 * doc/invoke.texi (arm options): Remove documentation for -mapcs-float.
3534
3535 2016-11-21 Richard Sandiford <richard.sandiford@arm.com>
3536
3537 * tree-tailcall.c (process_assignment): Simplify the check for
3538 a valid copy, allowing the source to be a local variable as
3539 well as an SSA name.
3540 (find_tail_calls): Allow copies between local variables to follow
3541 the call. Allow the result to be stored in any local variable,
3542 even if it's an aggregate.
3543 (eliminate_tail_call): Check whether the result is an SSA name
3544 before updating its SSA_NAME_DEF_STMT.
3545
3546 2016-11-21 David Malcolm <dmalcolm@redhat.com>
3547
3548 PR preprocessor/78324
3549 * input.c (get_substring_ranges_for_loc): Fail gracefully if
3550 -ftrack-macro-expansion has a value other than 2.
3551
3552 2016-11-21 Segher Boessenkool <segher@kernel.crashing.org>
3553
3554 PR rtl-optimization/78400
3555 * shrink-wrap.c (try_shrink_wrapping_separate): Call
3556 df_update_entry_exit_and_calls instead of df_update_entry_block_defs
3557 and df_update_exit_block_uses.
3558
3559 2016-11-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
3560
3561 PR c++/71973
3562 * doc/invoke.texi (-Wno-builtin-declaration-mismatch): Document the
3563 new default-enabled warning..
3564 * builtin-types.def (BT_CONST_TM_PTR): New primitive type.
3565 (BT_PTR_CONST_STRING): Updated.
3566 (BT_FN_SIZE_STRING_SIZE_CONST_STRING_CONST_PTR): Removed.
3567 (BT_FN_SIZE_STRING_SIZE_CONST_STRING_CONST_TM_PTR): New function type.
3568 * builtins.def (DEF_TM_BUILTIN): Disable BOTH_P for TM builtins.
3569 (strftime): Update builtin function.
3570 * tree-core.h (TI_CONST_TM_PTR_TYPE): New enum value.
3571 * tree.h (const_tm_ptr_type_node): New type node.
3572 * tree.c (free_lang_data, build_common_tree_nodes): Initialize
3573 const_tm_ptr_type_node.
3574
3575 2016-11-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3576
3577 PR tree-optimization/78413
3578 * tree-if-conv.c (versionable_outer_loop_p): Require that both
3579 inner and outer loop latches have single predecessors.
3580
3581 2016-11-21 Georg-Johann Lay <avr@gjlay.de>
3582
3583 PR target/78093
3584 * config/avr/avr.c (avr_decl_maybe_lds_p): New static function.
3585 (avr_encode_section_info) [TARGET_ABSDATA && AVR_TINY]: Use it.
3586
3587 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3588
3589 * rtl.h: Adjust prototype.
3590 * rtlanal.c (dead_or_set_p): Change argument type to rtx_insn *.
3591 (dead_or_set_regno_p): Likewise.
3592
3593 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3594
3595 * rtl.h: Adjust prototype.
3596 * rtlanal.c (add_int_reg_note): Change argument type to rtx_insn *.
3597
3598 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3599
3600 * function.c (contains): Change argument type to rtx_insn *.
3601 (prologue_contains): Likewise.
3602 (epilogue_contains): Likewise.
3603 (prologue_epilogue_contains): Likewise.
3604 * function.h: Adjust prototype.
3605
3606 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3607
3608 * optabs.c (emit_libcall_block): Change argument type to
3609 rtx_insn *.
3610 * optabs.h: Adjust prototype.
3611
3612 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3613
3614 * cfgrtl.c (delete_insn): Change argument type to rtx_insn *.
3615 (fixup_reorder_chain): Adjust.
3616 * cfgrtl.h: Adjust prototype.
3617
3618 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3619
3620 * rtl.h: Adjust prototype.
3621 * rtlanal.c (replace_label_in_insn): Change argument type to
3622 rtx_insn *.
3623
3624 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3625
3626 * config/v850/v850.c (expand_prologue): Adjust.
3627 (expand_epilogue): Likewise.
3628 * expr.c (init_expr_target): Likewise.
3629 * genrecog.c (print_subroutine): Always make the argument type
3630 rtx_insn *.
3631 * recog.h: Adjust prototype.
3632
3633 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3634
3635 * config/aarch64/aarch64.c (aarch64_emit_unlikely_jump): split
3636 up variables to make some rtx_insn *.
3637 * config/alpha/alpha.c (emit_unlikely_jump): Likewise.
3638 * config/arc/arc.c: Likewise.
3639 * config/arm/arm.c: Likewise.
3640 * config/mn10300/mn10300.c (mn10300_legitimize_pic_address): Likewise.
3641 * config/rs6000/rs6000.c (rs6000_expand_split_stack_prologue):
3642 Likewise.
3643 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
3644
3645 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3646
3647 * config/arm/arm.c (legitimize_pic_address): Change to use
3648 rtx_insn * as the type of variables.
3649 (arm_pic_static_addr): Likewise.
3650 (arm_emit_movpair): Likewise.
3651 * config/c6x/c6x.c (reorg_split_calls): Likewise.
3652 * config/darwin.c (machopic_legitimize_pic_address): Likewise.
3653 * config/frv/frv.c (frv_optimize_membar_local): Likewise.
3654 * config/frv/frv.md: Likewise.
3655 * config/i386/i386-protos.h: Likewise.
3656 * config/i386/i386.c (ix86_expand_split_stack_prologue): Likewise.
3657 (ix86_split_fp_branch): Likewise.
3658 (predict_jump): Likewise.
3659 * config/ia64/ia64.c: Likewise.
3660 * config/mcore/mcore.c: Likewise.
3661 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Likewise.
3662 * config/s390/s390.c: Likewise.
3663 * config/s390/s390.md: Likewise.
3664 * config/spu/spu.md: Likewise.
3665 * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise.
3666 * lower-subreg.c (resolve_simple_move): Likewise.
3667
3668 2016-11-20 Jeff Law <law@redhat.com>
3669
3670 PR target/48551
3671 * reload.h (struct target_reload): Make x_double_reg_address_ok
3672 be per-mode rather.
3673 * reload.c (find_reloads_address): Check if double_reg_address_ok
3674 is true for the mode of the memory reference.
3675 * reload1.c (init_reload): Initialize double_reg_address_ok for
3676 each mode.
3677
3678 2016-11-20 Aldy Hernandez <aldyh@redhat.com>
3679
3680 PR middle-end/61409
3681 * tree-ssa-uninit.c: Define new global max_phi_args.
3682 (compute_uninit_opnds_pos): Use max_phi_args.
3683 (prune_uninit_phi_opnds): Same.
3684 (use_pred_not_overlap_with_undef_path_pred): Remove reference to
3685 missing NUM_PREDS in function comment.
3686 (can_one_predicate_be_invalidated_p): New.
3687 (can_chain_union_be_invalidated_p): New.
3688 (flatten_out_predicate_chains): New.
3689 (uninit_ops_invalidate_phi_use): New.
3690 (is_use_properly_guarded): Call uninit_ops_invalidate_phi_use.
3691
3692 2016-11-20 Marc Glisse <marc.glisse@inria.fr>
3693
3694 * fold-const.c (fold_comparison): Ignore EXACT_DIV_EXPR.
3695 * match.pd (A /[ex] B CMP C): New simplifications.
3696
3697 2016-11-20 Marc Glisse <marc.glisse@inria.fr>
3698
3699 * match.pd (0 / X, X / X, X % X): New simplifications.
3700
3701 2016-11-19 Jakub Jelinek <jakub@redhat.com>
3702
3703 * config/i386/i386.c (ix86_can_inline_p): Use || instead of &
3704 when checking if callee's isa flags are subset of caller's isa flags.
3705 Fix comment wording.
3706
3707 * config/i386/i386.c (ix86_valid_target_attribute_tree): Don't
3708 clear opts->x_ix86_isa_flags, clear opts->x_ix86_isa_flags2
3709 instead and using = 0 instead of &= 0.
3710
3711 * config/i386/i386.c (def_builtin, def_builtin2, def_builtin_const2,
3712 ix86_add_new_builtins): Formatting fixes.
3713 (ix86_expand_builtin): Use || instead of && for isa vs. isa2.
3714 (ix86_get_builtin): Likewise.
3715
3716 * config/i386/i386.c (ix86_expand_builtin): Remove msk_mov variable,
3717 don't initialize it, don't use it for the case where it isn't
3718 provable %{z} nor using the same argument, instead move merge
3719 argument into a new pseudo and use that as target. Formatting fixes.
3720
3721 2016-11-19 Jeff Law <law@redhat.com>
3722
3723 PR target/25111
3724 * config/m68k/m68k.md (bsetdreg): New pattern.
3725 (bchgdreg, bclrdreg): Likewise.
3726
3727 2016-11-19 Kaz Kojima <kkojima@gcc.gnu.org>
3728
3729 PR target/78426
3730 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Use copy_to_mode_reg
3731 instead of force_reg.
3732 (sh_expand_setmem): Likewise.
3733
3734 2016-11-19 Krister Walfridsson <krister.walfridsson@gmail.com>
3735
3736 * config.gcc (*-*-netbsd): Set use_gcc_stdint=wrap.
3737
3738 2016-11-18 Walter Lee <walt@tilera.com>
3739
3740 * config/tilegx/tilegx.c (tilegx_gen_bundles): Preserve
3741 end-of-bundle marker for consecutive barriers.
3742
3743 2016-11-18 Walter Lee <walt@tilera.com>
3744
3745 * config/tilegx/tilegx.md (clzsi2): Fix for big-endian.
3746
3747 2016-11-18 Jakub Jelinek <jakub@redhat.com>
3748
3749 PR middle-end/78419
3750 * multiple_target.c (get_attr_len): Start with argnum and increment
3751 argnum on every arg. Use strchr in a loop instead of counting commas
3752 manually.
3753 (get_attr_str): Increment argnum for every comma in the string.
3754 (separate_attrs): Use for instead of while loop, simplify.
3755 (expand_target_clones): Rename defenition argument to definition.
3756 Free attrs and attr_str even when diagnosing errors. Temporarily
3757 change input_location around targetm.target_option.valid_attribute_p
3758 calls. Don't emit warning or errors if that function fails.
3759
3760 * dwarf2out.c (size_of_discr_list): Fix typo in function comment.
3761
3762 PR debug/78191
3763 * dwarf2out.c (abbrev_opt_base_type_end): New variable.
3764 (die_abbrev_cmp): Sort dies with die_abbrev smaller than
3765 abbrev_opt_base_type_end only by increasing die_abbrev, before
3766 any other dies.
3767 (optimize_abbrev_table): Don't change abbrev numbers of
3768 base types and CU or optimize implicit consts in them if
3769 calc_base_type_die_sizes has been called during build_abbrev_table.
3770 (calc_base_type_die_sizes): If abbrev_opt_start, set
3771 abbrev_opt_base_type_end to one plus largest base type's die_abbrev.
3772
3773 2016-11-18 Jeff Law <law@redhat.com>
3774
3775 PR target/25112
3776 * config/m68k/m68k.c (moveq feeding equality comparison): New
3777 peepholes.
3778 * config/m68k/predicates.md (addq_subq_operand): New predicate.
3779 (equality_comparison_operator): Likewise.
3780
3781 2016-11-18 Richard Sandiford <richard.sandiford@arm.com>
3782
3783 * rtlanal.c (load_extend_op): Move to...
3784 * rtl.h: ...here and make inline.
3785
3786 2016-11-18 Terry Guo <terry.guo@arm.com>
3787 Thomas Preud'homme <thomas.preudhomme@arm.com>
3788
3789 * common/config/arm/arm-common.c (arm_target_thumb_only): New function.
3790 * config/arm/arm-opts.h: Include arm-flags.h.
3791 (struct arm_arch_core_flag): Define.
3792 (arm_arch_core_flags): Define.
3793 * config/arm/arm-protos.h: Include arm-flags.h
3794 (FL_NONE, FL_ANY, FL_CO_PROC, FL_ARCH3M, FL_MODE26, FL_MODE32,
3795 FL_ARCH4, FL_ARCH5, FL_THUMB, FL_LDSCHED, FL_STRONG, FL_ARCH5E,
3796 FL_XSCALE, FL_ARCH6, FL_VFPV2, FL_WBUF, FL_ARCH6K, FL_THUMB2, FL_NOTM,
3797 FL_THUMB_DIV, FL_VFPV3, FL_NEON, FL_ARCH7EM, FL_ARCH7, FL_ARM_DIV,
3798 FL_ARCH8, FL_CRC32, FL_SMALLMUL, FL_NO_VOLATILE_CE, FL_IWMMXT,
3799 FL_IWMMXT2, FL_ARCH6KZ, FL2_ARCH8_1, FL2_ARCH8_2, FL2_FP16INST,
3800 FL_TUNE, FL_FOR_ARCH2, FL_FOR_ARCH3, FL_FOR_ARCH3M, FL_FOR_ARCH4,
3801 FL_FOR_ARCH4T, FL_FOR_ARCH5, FL_FOR_ARCH5T, FL_FOR_ARCH5E,
3802 FL_FOR_ARCH5TE, FL_FOR_ARCH5TEJ, FL_FOR_ARCH6, FL_FOR_ARCH6J,
3803 FL_FOR_ARCH6K, FL_FOR_ARCH6Z, FL_FOR_ARCH6ZK, FL_FOR_ARCH6KZ,
3804 FL_FOR_ARCH6T2, FL_FOR_ARCH6M, FL_FOR_ARCH7, FL_FOR_ARCH7A,
3805 FL_FOR_ARCH7VE, FL_FOR_ARCH7R, FL_FOR_ARCH7M, FL_FOR_ARCH7EM,
3806 FL_FOR_ARCH8A, FL2_FOR_ARCH8_1A, FL2_FOR_ARCH8_2A, FL_FOR_ARCH8M_BASE,
3807 FL_FOR_ARCH8M_MAIN, arm_feature_set, ARM_FSET_MAKE,
3808 ARM_FSET_MAKE_CPU1, ARM_FSET_MAKE_CPU2, ARM_FSET_CPU1, ARM_FSET_CPU2,
3809 ARM_FSET_EMPTY, ARM_FSET_ANY, ARM_FSET_HAS_CPU1, ARM_FSET_HAS_CPU2,
3810 ARM_FSET_HAS_CPU, ARM_FSET_ADD_CPU1, ARM_FSET_ADD_CPU2,
3811 ARM_FSET_DEL_CPU1, ARM_FSET_DEL_CPU2, ARM_FSET_UNION, ARM_FSET_INTER,
3812 ARM_FSET_XOR, ARM_FSET_EXCLUDE, ARM_FSET_IS_EMPTY,
3813 ARM_FSET_CPU_SUBSET): Move to ...
3814 * config/arm/arm-flags.h: This new file.
3815 * config/arm/arm.h (TARGET_MODE_SPEC_FUNCTIONS): Define.
3816 (EXTRA_SPEC_FUNCTIONS): Add TARGET_MODE_SPEC_FUNCTIONS to its value.
3817 (TARGET_MODE_SPECS): Define.
3818 (DRIVER_SELF_SPECS): Add TARGET_MODE_SPECS to its value.
3819
3820 2016-11-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
3821
3822 * config/arm/arm-protos.h (FL_NONE, FL_ANY, FL_CO_PROC, FL_ARCH3M,
3823 FL_MODE26, FL_MODE32, FL_ARCH4, FL_ARCH5, FL_THUMB, FL_LDSCHED,
3824 FL_STRONG, FL_ARCH5E, FL_XSCALE, FL_ARCH6, FL_VFPV2, FL_WBUF,
3825 FL_ARCH6K, FL_THUMB2, FL_NOTM, FL_THUMB_DIV, FL_VFPV3, FL_NEON,
3826 FL_ARCH7EM, FL_ARCH7, FL_ARM_DIV, FL_ARCH8, FL_CRC32, FL_SMALLMUL,
3827 FL_NO_VOLATILE_CE, FL_IWMMXT, FL_IWMMXT2, FL_ARCH6KZ, FL2_ARCH8_1,
3828 FL2_ARCH8_2, FL2_FP16INST): Reindent comment, add final dot when
3829 missing and make value unsigned.
3830 (arm_feature_set): Use unsigned entries instead of unsigned long.
3831
3832 2016-11-18 Dominik Vogt <vogt@linux.vnet.ibm.com>
3833
3834 Re-apply after PR bootstrap/77359 is fixed:
3835 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
3836
3837 * explow.c (get_dynamic_stack_size): Take known alignment of stack
3838 pointer + STACK_DYNAMIC_OFFSET into account when calculating the
3839 size needed.
3840
3841 2016-11-18 Dominik Vogt <vogt@linux.vnet.ibm.com>
3842
3843 PR bootstrap/77359
3844 * config/rs6000/rs6000.c (rs6000_stack_info): Properly align local
3845 variables in functions calling alloca. Also update the ASCII
3846 drawings.
3847 * config/rs6000/rs6000.h (STARTING_FRAME_OFFSET)
3848 (STACK_DYNAMIC_OFFSET): Likewise.
3849 * config/rs6000/aix.h (STARTING_FRAME_OFFSET)
3850 (STACK_DYNAMIC_OFFSET): Copy AIX specific versions of the rs6000.h
3851 macros to aix.h.
3852
3853 2016-11-18 Richard Sandiford <richard.sandiford@arm.com>
3854 Alan Hayward <alan.hayward@arm.com>
3855 David Sherwood <david.sherwood@arm.com>
3856
3857 * combine.c (try_combine): Use rtx_mode_t instead of std::make_pair.
3858 * dwarf2out.c (mem_loc_descriptor, loc_descriptor): Likewise.
3859 (add_const_value_attribute): Likewise.
3860 * explow.c (plus_constant): Likewise.
3861 * expmed.c (expand_mult, make_tree): Likewise.
3862 * expr.c (convert_modes): Likewise.
3863 * loop-doloop.c (doloop_optimize): Likewise.
3864 * postreload.c (reload_cse_simplify_set): Likewise.
3865 * simplify-rtx.c (simplify_const_unary_operation): Likewise
3866 (simplify_binary_operation_1, simplify_const_binary_operation):
3867 Likewise.
3868 (simplify_const_relational_operation, simplify_immed_subreg): Likewise.
3869 * wide-int.h: Update documentation to recommend rtx_mode_t
3870 instead of std::make_pair.
3871
3872 2016-11-18 Richard Sandiford <richard.sandiford@arm.com>
3873 Alan Hayward <alan.hayward@arm.com>
3874 David Sherwood <david.sherwood@arm.com>
3875
3876 * tree.h (SET_DECL_MODE): New macro.
3877 * cfgexpand.c (avoid_deep_ter_for_debug): Use SET_DECL_MODE.
3878 (expand_gimple_basic_block): Likewise.
3879 * function.c (split_complex_args): Likeise.
3880 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
3881 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Likewise.
3882 * stor-layout.c (layout_decl, relayout_decl): Likewise.
3883 (finish_bitfield_representative): Likewise.
3884 * tree.c (make_node_stat): Likewise.
3885 * tree-inline.c (remap_ssa_name): Likewise.
3886 (tree_function_versioning): Likewise.
3887 * tree-into-ssa.c (rewrite_debug_stmt_uses): Likewise.
3888 * tree-sra.c (sra_ipa_reset_debug_stmts): Likewise.
3889 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
3890 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Likewise.
3891 * tree-ssa.c (insert_debug_temp_for_var_def): Likewise.
3892 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
3893 * varasm.c (make_debug_expr_from_rtl): Likewise.
3894
3895 2016-11-18 Segher Boessenkool <segher@kernel.crashing.org>
3896
3897 PR rtl-optimization/71785
3898 * bb-reorder.c (maybe_duplicate_computed_goto): New function.
3899 (duplicate_computed_gotos): New function.
3900 (pass_duplicate_computed_gotos::execute): Rewrite.
3901
3902 2016-11-17 Jeff Law <law@redhat.com>
3903
3904 PR target/47192
3905 * config/m68k/m68k.c (m68k_expand_epilogue): Emit a scheduling
3906 barrier prior to deallocating the stack.
3907
3908 2016-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
3909
3910 * config/arc/arc.md (cmem bit/sign-extend peephole2): New peephole
3911 to make better use of cmem loads in the case where a single bit is
3912 being accessed.
3913 * config/arc/predicates.md (ge_lt_comparison_operator): New predicate.
3914
3915 2016-11-17 Andrew Senkevich <andrew.senkevich@intel.com>
3916
3917 * config/i386/i386.c (processor_features): Add F_AVX5124VNNIW,
3918 F_AVX5124FMAPS.
3919 (isa_names_table): Handle new features.
3920
3921 2016-11-17 Kirill Yukhin <kirill.yukhin@gmail.com>
3922 Andrew Senkevich <andrew.senkevich@intel.com>
3923
3924 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX5124FMAPS_SET,
3925 OPTION_MASK_ISA_AVX5124FMAPS_UNSET, OPTION_MASK_ISA_AVX5124VNNIW_SET,
3926 OPTION_MASK_ISA_AVX5124VNNIW_UNSET): New.
3927 (ix86_handle_option): Handle OPT_mavx5124fmaps, OPT_mavx5124vnniw.
3928 * config.gcc: Add avx5124fmapsintrin.h, avx5124vnniwintrin.h.
3929 * config/i386/avx5124fmapsintrin.h: New file.
3930 * config/i386/avx5124vnniwintrin.h: Ditto.
3931 * config/i386/constraints.md (h): New constraint.
3932 * config/i386/cpuid.h (bit_AVX5124VNNIW, bit_AVX5124FMAPS): New.
3933 * config/i386/driver-i386.c (host_detect_local_cpu):
3934 Detect avx5124fmaps, avx5124vnniw.
3935 * config/i386/i386-builtin-types.def: Add types
3936 V16SF_FTYPE_V16SF_V16SF_V16SF_V16SF_V16SF_PCV4SF_V16SF_UHI,
3937 V16SF_FTYPE_V16SF_V16SF_V16SF_V16SF_V16SF_PCV4SF,
3938 V4SF_FTYPE_V4SF_V4SF_V4SF_V4SF_V4SF_PCV4SF,
3939 V4SF_FTYPE_V4SF_V4SF_V4SF_V4SF_V4SF_PCV4SF_V4SF_UQI,
3940 V16SI_FTYPE_V16SI_V16SI_V16SI_V16SI_V16SI_PCV4SI,
3941 V16SI_FTYPE_V16SI_V16SI_V16SI_V16SI_V16SI_PCV4SI_V16SI_UHI.
3942 * config/i386/i386-builtin.def (__builtin_ia32_4fmaddps_mask,
3943 __builtin_ia32_4fmaddps, __builtin_ia32_4fmaddss,
3944 __builtin_ia32_4fmaddss_mask, __builtin_ia32_4fnmaddps_mask,
3945 __builtin_ia32_4fnmaddps, __builtin_ia32_4fnmaddss,
3946 __builtin_ia32_4fnmaddss_mask, __builtin_ia32_vp4dpwssd,
3947 __builtin_ia32_vp4dpwssd_mask, __builtin_ia32_vp4dpwssds,
3948 __builtin_ia32_vp4dpwssds_mask): New.
3949 * config/i386/i386-c.c (ix86_target_macros_internal):
3950 Define __AVX5124FMAPS__, __AVX5124VNNIW__.
3951 * config/i386/i386-modes.def: Fixed comment typos, added new
3952 modes (VECTOR_MODES (FLOAT, 256), VECTOR_MODE (INT, SI, 64)).
3953 * config/i386/i386.c (ix86_target_string): Add -mavx5124fmaps,
3954 -mavx5124vnniw.
3955 (PTA_AVX5124FMAPS, PTA_AVX5124VNNIW): Define.
3956 (ix86_option_override_internal): Handle new options.
3957 (ix86_valid_target_attribute_inner_p): Add avx5124fmaps,
3958 avx5124vnniw.
3959 (ix86_expand_builtin): Handle new builtins.
3960 (ix86_additional_allocno_class_p): New.
3961 * config/i386/i386.h (TARGET_AVX5124FMAPS, TARGET_AVX5124FMAPS_P,
3962 TARGET_AVX5124VNNIW, TARGET_AVX5124VNNIW_P): Define.
3963 (reg_class): Add MOD4_SSE_REGS.
3964 (MOD4_SSE_REG_P, MOD4_SSE_REGNO_P): New.
3965 * config/i386/i386.opt: Add mavx5124fmaps, mavx5124vnniw.
3966 * config/i386/immintrin.h: Include avx5124fmapsintrin.h,
3967 avx5124vnniwintrin.h.
3968 * config/i386/sse.md (unspec): Add UNSPEC_VP4FMADD, UNSPEC_VP4FNMADD,
3969 UNSPEC_VP4DPWSSD, UNSPEC_VP4DPWSSDS.
3970 (define_mode_iterator IMOD4): New.
3971 (define_mode_attr imod4_narrow): Ditto.
3972 (define_insn "mov<mode>"): Ditto.
3973 (define_insn "avx5124fmaddps_4fmaddps"): Ditto.
3974 (define_insn "avx5124fmaddps_4fmaddps_mask"): Ditto.
3975 (define_insn "avx5124fmaddps_4fmaddps_maskz"): Ditto.
3976 (define_insn "avx5124fmaddps_4fmaddss"): Ditto.
3977 (define_insn "avx5124fmaddps_4fmaddss_mask"): Ditto.
3978 (define_insn "avx5124fmaddps_4fmaddss_maskz"): Ditto.
3979 (define_insn "avx5124fmaddps_4fnmaddps"): Ditto.
3980 (define_insn "avx5124fmaddps_4fnmaddps_mask"): Ditto.
3981 (define_insn "avx5124fmaddps_4fnmaddps_maskz"): Ditto.
3982 (define_insn "avx5124fmaddps_4fnmaddss"): Ditto.
3983 (define_insn "avx5124fmaddps_4fnmaddss_mask"): Ditto.
3984 (define_insn "avx5124fmaddps_4fnmaddss_maskz"): Ditto.
3985 (define_insn "avx5124vnniw_vp4dpwssd"): Ditto.
3986 (define_insn "avx5124vnniw_vp4dpwssd_mask"): Ditto.
3987 (define_insn "avx5124vnniw_vp4dpwssd_maskz"): Ditto.
3988 (define_insn "avx5124vnniw_vp4dpwssds"): Ditto.
3989 (define_insn "avx5124vnniw_vp4dpwssds_mask"): Ditto.
3990 (define_insn "avx5124vnniw_vp4dpwssds_maskz"): Ditto.
3991 * init-regs.c (initialize_uninitialized_regs): Add emit_clobber call.
3992 * genmodes.c (mode_size_inline): Extend return type.
3993 * machmode.h (mode_size, mode_base_align): Extend type.
3994
3995 2016-11-17 Michael Meissner <meissner@linux.vnet.ibm.com>
3996
3997 PR target/78101
3998 * config/rs6000/predicates.md (fusion_addis_mem_combo_load): Add
3999 the appropriate checks for SFmode/DFmode load/stores in GPR
4000 registers.
4001 (fusion_addis_mem_combo_store): Likewise.
4002 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Rename
4003 fusion_fpr_* to fusion_vsx_* and add in support for ISA 3.0 scalar
4004 d-form instructions for traditional Altivec registers.
4005 (emit_fusion_p9_load): Likewise.
4006 (emit_fusion_p9_store): Likewise.
4007 * config/rs6000/rs6000.md (p9 fusion store peephole2): Remove
4008 early clobber from scratch register. Do not match if the register
4009 being stored is the scratch register.
4010 (fusion_vsx_<P:mode>_<FPR_FUSION:mode>_load): Rename fusion_fpr_*
4011 to fusion_vsx_* and add in support for ISA 3.0 scalar d-form
4012 instructions for traditional Altivec registers.
4013 (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_load): Likewise.
4014 (fusion_vsx_<P:mode>_<FPR_FUSION:mode>_store): Likewise.
4015 (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_store): Likewise.
4016
4017 2016-11-17 Thomas Preud'homme <thomas.preudhomme@arm.com>
4018
4019 PR target/77933
4020 * config/arm/arm.c (thumb1_expand_prologue): Distinguish between lr
4021 being live in the function and lr needing to be saved. Distinguish
4022 between already saved pushable registers and registers to push.
4023 Check for LR being an available pushable register.
4024
4025 2016-11-17 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
4026
4027 * config/i386/i386.md (cmpstrnsi): New test to bail out if neither
4028 string input is a string constant.
4029 * builtins.c (expand_builtin_strncmp): Attempt expansion of strncmp
4030 via cmpstrnsi even if neither string is constant.
4031
4032 2016-11-17 Jakub Jelinek <jakub@redhat.com>
4033
4034 PR middle-end/78201
4035 * varasm.c (default_use_anchors_for_symbol_p): Fix a comment typo.
4036 Don't test decl != NULL. Don't look at DECL_SIZE, but DECL_SIZE_UNIT
4037 instead, return false if it is NULL, or doesn't fit into uhwi, or
4038 is larger or equal to targetm.max_anchor_offset.
4039
4040 2016-11-17 Pip Cet <pipcet@gmail.com>
4041 Eric Botcazou <ebotcazou@adacore.com>
4042
4043 PR rtl-optimization/78355
4044 * doc/tm.texi.in (SLOW_UNALIGNED_ACCESS): Document that the macro only
4045 needs to deal with unaligned accesses.
4046 * doc/tm.texi: Regenerate.
4047 * lra-constraints.c (simplify_operand_subreg): Only invoke
4048 SLOW_UNALIGNED_ACCESS on innermode if the MEM is not aligned enough.
4049
4050 2016-11-17 David Malcolm <dmalcolm@redhat.com>
4051
4052 * input.c (selftest::test_lexer_string_locations_long_line): New
4053 function.
4054 (selftest::test_lexer_string_locations_raw_string_multiline): New
4055 function.
4056 (selftest::input_c_tests): Call the new functions, via
4057 for_each_line_table_case.
4058
4059 2016-11-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4060
4061 * config/aarch64/aarch64.md (mov<mode>): Call
4062 aarch64_split_dimode_const_store on DImode constant stores.
4063 * config/aarch64/aarch64-protos.h (aarch64_split_dimode_const_store):
4064 New prototype.
4065 * config/aarch64/aarch64.c (aarch64_split_dimode_const_store): New
4066 function.
4067
4068 2016-11-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4069 Richard Biener <rguenther@suse.de>
4070
4071 PR tree-optimization/77848
4072 * tree-if-conv.c (tree_if_conversion): Always version loops unless
4073 the user specified -ftree-loop-if-convert.
4074
4075 2016-11-17 Bernd Edlinger <bernd.edlinger@hotmail.de>
4076
4077 PR target/77308
4078 * config/arm/arm.md (*thumb2_ldrd, *thumb2_ldrd_base,
4079 *thumb2_ldrd_base_neg, *thumb2_strd, *thumb2_strd_base,
4080 *thumb2_strd_base_neg): Recognize insn regardless of
4081 current_tune->prefer_ldrd_strd.
4082 * config/arm/ldrdstrd.md: Enable all ldrd/strd peephole rules
4083 whenever possible.
4084
4085 2016-11-17 Claudiu Zissulescu <claziss@synopsys.com>
4086
4087 * config/arc/arc.c (arc_ccfsm_post_advance): Handle return
4088 instruction type.
4089
4090 2016-11-17 Claudiu Zissulescu <claziss@synopsys.com>
4091
4092 * config/arc/arc-arches.def: Add FPX quarkse instruction as valid
4093 for arcem.
4094 * config/arc/arc-c.def (__ARC_FPX_QUARK__): Define.
4095 * config/arc/arc-cpus.def (quarkse_em): Add.
4096 * config/arc/arc-options.def (FL_FPX_QUARK, FL_QUARK): Likewise.
4097 * config/arc/arc-opts.h (FPX_QK): Define.
4098 * config/arc/arc-tables.opt: Regenerate.
4099 * config/arc/arc.c (gen_compare_reg): Change.
4100 (arc_register_move_cost): Avoid Dy,Dx moves.
4101 * config/arc/arc.h (TARGET_HARD_FLOAT): Change.
4102 (TARGET_FPX_QUARK, TARGET_FP_ASSIST): Define.
4103 * config/arc/arc.md (divsf3, sqrtsf2, fix_truncsfsi2, floatsisf2):
4104 New expands.
4105 * config/arc/fpu.md (divsf3_fpu, sqrtsf2_fpu, floatsisf2_fpu)
4106 (fix_truncsfsi2_fpu): Rename.
4107 * config/arc/fpx.md (cmp_quark, cmpsf_quark_, cmpsf_quark_ord)
4108 (cmpsf_quark_uneq, cmpsf_quark_eq, divsf3_quark, sqrtsf2_quark)
4109 (fix_truncsfsi2_quark, floatsisf2_quark): New patterns.
4110 * config/arc/t-multilib: Regenerate.
4111
4112 2016-11-17 Georg-Johann Lay <avr@gjlay.de>
4113
4114 * config/avr/avr.c (avr_print_operand_address): Use CONST_INT_P if
4115 appropriate.
4116 (ashlqi3_out, ashlsi3_out, ashrqi3_out, ashrhi3_out): Same.
4117 (ashrsi3_out, lshrqi3_out, lshrhi3_out, lshrsi3_out): Same.
4118 (avr_rtx_costs_1, extra_constraint_Q): Same.
4119 (avr_address_cost): Use SUBREG_P if possible.
4120
4121 2016-11-17 Richard Biener <rguenther@suse.de>
4122
4123 PR middle-end/78383
4124 * tree-cfgcleanup.c (cleanup_control_flow_bb): Do not turn
4125 non-local goto into CFG.
4126
4127 2016-11-17 Richard Biener <rguenther@suse.de>
4128
4129 * common.opt (ftree-loop-if-convert-stores): Mark as preserved for
4130 backward compatibility.
4131 * doc/invoke.texi (ftree-loop-if-convert-stores): Remove.
4132 * tree-if-conv.c (pass_if_conversion::gate): Do not test
4133 flag_tree_loop_if_convert_stores.
4134 (pass_if_conversion::execute): Likewise.
4135
4136 2016-11-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4137
4138 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): Check for
4139 const_double code before calling aarch64_float_const_zero_rtx_p.
4140
4141 2016-11-17 Richard Biener <rguenther@suse.de>
4142
4143 PR tree-optimization/78306
4144 * ipa-inline-analysis.c (initialize_inline_failed): Do not
4145 inhibit inlining if function calls cilk_spawn.
4146 (can_inline_edge_p): Likewise.
4147
4148 2016-11-17 Richard Biener <rguenther@suse.de>
4149
4150 PR middle-end/78305
4151 * fold-const.c (negate_expr_p): Fix multiplication case.
4152
4153 2016-11-17 Chung-Lin Tang <cltang@codesourcery.com>
4154
4155 PR target/78357
4156 * config/nios2/nios2.c (nios2_init_libfuncs): Remove TARGET_LINUX_ABI
4157 condition.
4158 (TARGET_INIT_LIBFUNCS): Delete definition and...
4159 * config/nios2/linux.h (TARGET_INIT_LIBFUNCS): ...move to here, add
4160 comments.
4161
4162 2016-11-17 Krister Walfridsson <krister.walfridsson@gmail.com>
4163
4164 * config/netbsd-stdint.h: New.
4165 * config.gcc (i[34567]86-*-netbsd): Add netbsd-stdint.h to tm_file.
4166 (x86_64-*-netbsd*): Likewise.
4167
4168 2016-11-16 Andrew PInski <apinski@cavium.com>
4169
4170 * config/aarch64/aarch64.opt (mverbose-cost-dump): New option.
4171 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use
4172 flag_aarch64_verbose_cost instead of checking for details dump.
4173 (aarch64_rtx_costs_wrapper): Likewise.
4174
4175 2016-11-16 Jakub Jelinek <jakub@redhat.com>
4176
4177 PR rtl-optimization/78378
4178 * combine.c (make_extraction): Use force_to_mode for non-{REG,MEM}
4179 inner only if pos is 0. Fix up formatting.
4180
4181 2016-11-17 Alan Modra <amodra@gmail.com>
4182
4183 PR rtl-optimization/78325
4184 PR rtl-optimization/70890
4185 * ira.c (combine_and_move_insns): Only remove REG_EQUIV notes
4186 for dead regno.
4187
4188 2016-11-16 Jason Merrill <jason@redhat.com>
4189
4190 * rtl.h: Declare gt_ggc_mx and gt_pch_nx.
4191
4192 2016-11-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4193 Richard Biener <rguenther@suse.de>
4194
4195 PR tree-optimization/77848
4196 * tree-if-conv.c (version_loop_for_if_conversion): When versioning
4197 an outer loop, only save basic block aux information for the inner
4198 loop.
4199 (versionable_outer_loop_p): New function.
4200 (tree_if_conversion): Version the outer loop instead of the inner
4201 one if the pattern will be recognized for outer-loop
4202 vectorization.
4203
4204 2016-11-16 Andrew Burgess <andrew.burgess@embecosm.com>
4205
4206 * gcc/bb-reorder.c: Remove 'toplev.h' include.
4207 (pass_partition_blocks::gate): No longer check
4208 user_defined_section_attribute, instead check the function decl
4209 for a section attribute.
4210 * gcc/c-family/c-attribs.c (handle_section_attribute): No longer
4211 set user_defined_section_attribute.
4212 * gcc/final.c (rest_of_handle_final): Likewise.
4213 * gcc/toplev.c: Remove definition of user_defined_section_attribute.
4214 * gcc/toplev.h: Remove declaration of
4215 user_defined_section_attribute.
4216
4217 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
4218
4219 * config/mips/mips.md (casesi_internal_mips16_<mode>):
4220 Explicitly switch between JR and JRC for the table jump. Adjust
4221 instruction count.
4222
4223 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
4224
4225 * config/mips/mips.md (casesi_internal_mips16_<mode>): Set
4226 `insn_count' to 11 rather than 16.
4227
4228 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
4229
4230 * config/mips/mips.md (casesi_internal_mips16_<mode>): Use the
4231 `ltu' rather than `leu' operation in the RTL pattern
4232
4233 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
4234
4235 * config/mips/mips.md (casesi_internal_mips16_<mode>): Add
4236 missing <d> instruction prefixes throughout. Correct
4237 formatting.
4238
4239 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
4240
4241 * config/mips/mips.c (mips_output_jump): Output R_MICROMIPS_JALR
4242 rather than R_MIPS_JALR relocation in microMIPS code. Do not
4243 cancel short delay slots in PIC call relaxation.
4244
4245 2016-11-16 Thomas Preud'homme <thomas.preudhomme@arm.com>
4246
4247 * config/arm/arm.md (arm_addsi3): Add alternative for addition of
4248 general register with general register or ARM constant into SP
4249 register.
4250
4251 2016-11-16 Jakub Jelinek <jakub@redhat.com>
4252
4253 PR fortran/78299
4254 * omp-low.c (expand_omp_for_static_nochunk): Don't assert
4255 that loop->header == body_bb if broken_loop.
4256
4257 2015-11-16 Wilco Dijkstra <wdijkstr@arm.com>
4258
4259 * tree-ssa-math-opts.c (bswap_replace): Remove test
4260 of SLOW_UNALIGNED_ACCESS.
4261
4262 2016-11-16 Alexander Monakov <amonakov@ispras.ru>
4263
4264 * config/nvptx/mkoffload.c (main): Check that either OpenACC or OpenMP
4265 is selected. Pass -mgomp to offload compiler in OpenMP case.
4266 * config/nvptx/nvptx-protos.h (nvptx_shuffle_kind): Move enum
4267 declaration from nvptx.c.
4268 (nvptx_gen_shuffle): Declare.
4269 (nvptx_output_set_softstack): Declare.
4270 * config/nvptx/nvptx.c (nvptx_shuffle_kind): Move to nvptx-protos.h.
4271 (need_softstack_decl): New variable.
4272 (need_unisimt_decl): New variable.
4273 (diagnose_openacc_conflict): New. Use it...
4274 (nvptx_option_override): ...here. Handle TARGET_GOMP.
4275 (nvptx_encode_section_info): Handle "shared" attribute.
4276 (write_as_kernel): Restrict to OpenACC target regions.
4277 (init_softstack_frame): New.
4278 (nvptx_init_unisimt_predicate): New.
4279 (write_omp_entry): New. Use it...
4280 (nvptx_declare_function_name): ...here to emit OpenMP target region
4281 entrypoints. Handle TARGET_SOFT_STACK. Call
4282 nvptx_init_unisimt_predicate.
4283 (nvptx_output_set_softstack): New.
4284 (nvptx_get_drap_rtx): Return %argp as the DRAP if needed.
4285 (nvptx_gen_shuffle): Export.
4286 (nvptx_output_call_insn): Handle COND_EXEC patterns. Emit instruction
4287 predicate.
4288 (nvptx_print_operand): Fix handling of instruction predicates.
4289 (nvptx_get_unisimt_master): New helper function.
4290 (nvptx_get_unisimt_predicate): Ditto.
4291 (nvptx_call_insn_is_syscall_p): Ditto.
4292 (nvptx_unisimt_handle_set): Ditto.
4293 (nvptx_reorg_uniform_simt): New. Transform code for -muniform-simt.
4294 (nvptx_reorg): Call nvptx_reorg_uniform_simt.
4295 (nvptx_handle_shared_attribute): New. Use it...
4296 (nvptx_attribute_table): ... here (new entry).
4297 (nvptx_record_offload_symbol): Handle NULL attributes.
4298 (nvptx_file_end): Handle need_softstack_decl and need_unisimt_decl.
4299 (nvptx_simt_vf): New.
4300 (TARGET_SIMT_VF): Define.
4301 * config/nvptx/nvptx.h (TARGET_CPU_CPP_BUILTINS): Define
4302 __nvptx_softstack or __nvptx_unisimt__ when -msoft-stack, or resp.
4303 -muniform-simt option is active.
4304 (STACK_SIZE_MODE): Define.
4305 (FIXED_REGISTERS): Adjust.
4306 (SOFTSTACK_SLOT_REGNUM): New.
4307 (SOFTSTACK_PREV_REGNUM): New.
4308 (REGISTER_NAMES): Adjust.
4309 (struct machine_function): New fields.
4310 * config/nvptx/nvptx.md (UNSPEC_SET_SOFTSTACK): New.
4311 (UNSPEC_VOTE_BALLOT): Ditto.
4312 (UNSPEC_LANEID): Ditto.
4313 (UNSPECV_NOUNROLL): Ditto.
4314 (atomic): New attribute.
4315 (predicable): New attribute. Generate predicated forms via
4316 define_cond_exec.
4317 (br_true): Mark as not predicable.
4318 (br_false): Ditto.
4319 (br_true_uni): Ditto.
4320 (br_false_uni): Ditto.
4321 (return): Ditto.
4322 (trap_if_true): Ditto.
4323 (trap_if_false): Ditto.
4324 (nvptx_fork): Ditto.
4325 (nvptx_forked): Ditto.
4326 (nvptx_joining): Ditto.
4327 (nvptx_join): Ditto.
4328 (nvptx_barsync): Ditto.
4329 (epilogue): Emit stack restore if TARGET_SOFT_STACK.
4330 (allocate_stack): Implement for TARGET_SOFT_STACK. Remove unused code.
4331 (allocate_stack_<mode>): Remove unused pattern.
4332 (set_softstack_insn): New pattern.
4333 (restore_stack_block): Handle for TARGET_SOFT_STACK.
4334 (nvptx_vote_ballot): New pattern.
4335 (omp_simt_lane): Ditto.
4336 (omp_simt_last_lane): Ditto.
4337 (omp_simt_ordered): Ditto.
4338 (omp_simt_vote_any): Ditto.
4339 (omp_simt_xchg_bfly): Ditto.
4340 (omp_simt_xchg_idx): Ditto.
4341 (nvptx_nounroll): Ditto.
4342 (atomic_compare_and_swap<mode>_1): Mark with atomic attribute.
4343 (atomic_exchange<mode>): Ditto.
4344 (atomic_fetch_add<mode>): Ditto.
4345 (atomic_fetch_addsf): Ditto.
4346 (atomic_fetch_<logic><mode>): Ditto.
4347 * config/nvptx/nvptx.opt (msoft-stack): New option.
4348 (muniform-simt): Ditto.
4349 (mgomp): Ditto.
4350 * config/nvptx/t-nvptx (MULTILIB_OPTIONS): New.
4351 * doc/extend.texi (Nvidia PTX Variable Attributes): New section.
4352 * doc/invoke.texi (msoft-stack): Document.
4353 (muniform-simt): Document
4354 (mgomp): Document.
4355 * doc/tm.texi: Regenerate.
4356 * doc/tm.texi.in (TARGET_SIMT_VF): New hook.
4357 * target.def: Define it.
4358 * target-insns.def (omp_simt_lane): New.
4359 (omp_simt_last_lane): New.
4360 (omp_simt_ordered): New.
4361 (omp_simt_vote_any): New.
4362 (omp_simt_xchg_bfly): New.
4363 (omp_simt_xchg_idx): New.
4364
4365 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
4366
4367 * config/mips/mips-protos.h (mips_set_text_contents_type): New
4368 prototype.
4369 * config/mips/mips.h (ASM_OUTPUT_BEFORE_CASE_LABEL): New macro.
4370 (ASM_OUTPUT_CASE_END): Likewise.
4371 * config/mips/mips.c (mips_set_text_contents_type): New function.
4372 (mips16_emit_constants): Record the pool's initial label number
4373 with the `consttable' insn. Emit a `consttable_end' insn at the end.
4374 (mips_final_prescan_insn): Call `mips_set_text_contents_type'
4375 for `consttable' insns.
4376 (mips_final_postscan_insn): Call `mips_set_text_contents_type'
4377 for `consttable_end' insns.
4378 * config/mips/mips.md (unspec): Add UNSPEC_CONSTTABLE_END enum value.
4379 (consttable): Add operand.
4380 (consttable_end): New insn.
4381
4382 2016-11-16 Yuri Rumyantsev <ysrumyan@gmail.com>
4383
4384 * params.def (PARAM_VECT_EPILOGUES_NOMASK): New.
4385 * tree-if-conv.c (tree_if_conversion): Make public.
4386 * * tree-if-conv.h: New file.
4387 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences) Avoid
4388 dynamic alias checks for epilogues.
4389 * tree-vect-loop-manip.c (vect_do_peeling): Return created epilog.
4390 * tree-vect-loop.c: include tree-if-conv.h.
4391 (new_loop_vec_info): Add zeroing orig_loop_info field.
4392 (vect_analyze_loop_2): Don't try to enhance alignment for epilogues.
4393 (vect_analyze_loop): Add argument ORIG_LOOP_INFO which is not NULL
4394 if epilogue is vectorized, set up orig_loop_info field of loop_vinfo
4395 using passed argument.
4396 (vect_transform_loop): Check if created epilogue should be returned
4397 for further vectorization with less vf. If-convert epilogue if
4398 required. Print vectorization success for epilogue.
4399 * tree-vectorizer.c (vectorize_loops): Add epilogue vectorization
4400 if it is required, pass loop_vinfo produced during vectorization of
4401 loop body to vect_analyze_loop.
4402 * tree-vectorizer.h (struct _loop_vec_info): Add new field
4403 orig_loop_info.
4404 (LOOP_VINFO_ORIG_LOOP_INFO): New.
4405 (LOOP_VINFO_EPILOGUE_P): New.
4406 (LOOP_VINFO_ORIG_VECT_FACTOR): New.
4407 (vect_do_peeling): Change prototype to return epilogue.
4408 (vect_analyze_loop): Add argument of loop_vec_info type.
4409 (vect_transform_loop): Return created loop.
4410
4411 2016-11-16 Segher Boessenkool <segher@kernel.crashing.org>
4412
4413 * config/rs6000/rs6000.c (rs6000_components_for_bb): Mark the LR
4414 component as used also if LR_REGNO is a live input to the bb.
4415 * df-scan.c (df_get_entry_block_def_set): Return immediately after
4416 clearing the set if DF_SCAN_EMPTY_ENTRY_EXIT is set.
4417 (df_get_exit_block_use_set): Ditto.
4418 * df.h (df_scan_flags): New enum.
4419 * shrink-wrap.c (try_shrink_wrapping_separate): Set
4420 DF_SCAN_EMPTY_ENTRY_EXIT in df_scan->local_flags, and call
4421 df_update_entry_block_defs and df_update_exit_block_uses
4422 at the start; clear the flag and call those functions at the end.
4423
4424 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
4425 Alan Hayward <alan.hayward@arm.com>
4426 David Sherwood <david.sherwood@arm.com>
4427
4428 * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): Set
4429 nb_iterations to the number of latch iterations rather than the
4430 number of loop iterations.
4431
4432 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
4433 Alan Hayward <alan.hayward@arm.com>
4434 David Sherwood <david.sherwood@arm.com>
4435
4436 * combine.c (maybe_swap_commutative_operands): New function.
4437 (combine_simplify_rtx): Use it.
4438 (change_zero_ext): Likewise.
4439 (make_compound_operation_int): New function, split out of...
4440 (make_compound_operation): ...here. Use
4441 maybe_swap_commutative_operands for both.
4442
4443 2016-11-16 Richard Earnshaw <rearnsha@arm.com>
4444
4445 * arm/arm-fpus.def (vfpv2): New FPU, currently an alias for 'vfp'.
4446 (neon-vfpv3): New FPU, currently an alias for 'neon'.
4447 * arm/arm-tables.opt: Regenerated.
4448 * arm/t-aprofile (MULTILIB_REUSE): Add reuse rules for vfpv2 and
4449 neon-vfpv3.
4450 * doc/invoke.texi (ARM: -mfpu): Document new options. Note that 'vfp'
4451 and 'neon' are aliases for specific implementations.
4452
4453 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
4454 Alan Hayward <alan.hayward@arm.com>
4455 David Sherwood <david.sherwood@arm.com>
4456
4457 * optabs.c (vector_compare_rtx): Add a cmp_mode parameter
4458 and use it in the final call to gen_rtx_fmt_ee.
4459 (expand_vec_cond_expr): Update accordingly.
4460 (expand_vec_cmp_expr): Likewise.
4461
4462 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
4463 Alan Hayward <alan.hayward@arm.com>
4464 David Sherwood <david.sherwood@arm.com>
4465
4466 * cprop.c (local_cprop_find_used_regs): Use df_read_modify_subreg_p.
4467
4468 2016-11-16 Richard Biener <rguenther@suse.de>
4469
4470 PR middle-end/78333
4471 * gimplify.c (gimplify_function_tree): Do not instrument
4472 GNU extern inline functions.
4473
4474 2016-11-16 Martin Liska <mliska@suse.cz>
4475
4476 PR sanitizer/78270
4477 * gimplify.c (gimplify_switch_expr): Always save previous
4478 gimplify_ctxp->live_switch_vars.
4479
4480 2016-11-16 Andrew Burgess <andrew.burgess@embecosm.com>
4481
4482 * config/arc/arc.md (movb peephole2): New peephole2 to merge two
4483 zero_extract operations to allow a movb to occur.
4484 * testsuite/gcc.target/arc/movb-1.c: Update little endian arc results.
4485 * testsuite/gcc.target/arc/movb-2.c: Likewise.
4486 * testsuite/gcc.target/arc/movb-5.c: Likewise.
4487 * testsuite/gcc.target/arc/movh_cl-1.c: Extend test to cover
4488 little endian arc.
4489
4490 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
4491 Alan Hayward <alan.hayward@arm.com>
4492 David Sherwood <david.sherwood@arm.com>
4493
4494 * expr.c (emit_group_load_1): Tighten check for whether an
4495 access involves only one operand of a CONCAT. Use extract_bit_field
4496 for constants if the bit range does span the whole operand.
4497
4498 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
4499 Alan Hayward <alan.hayward@arm.com>
4500 David Sherwood <david.sherwood@arm.com>
4501
4502 * rtlanal.c (rtx_addr_can_trap_p_1): Handle unknown sizes.
4503
4504 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
4505 Alan Hayward <alan.hayward@arm.com>
4506 David Sherwood <david.sherwood@arm.com>
4507
4508 * tree-vect-loop.c (vect_transform_loop): Protect the updates of
4509 all three iteration counts with an any_* test. Use a single update
4510 for each count. Fix the calculation of nb_iterations_estimate.
4511
4512 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
4513
4514 * config/pdp11/pdp11.c: Include dbxout.h.
4515
4516 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
4517
4518 * config/arc/arc.c (arc_loop_hazard): Add missing brackets.
4519
4520 2016-11-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4521
4522 PR target/78364
4523 * config/arm/arm.md (*extv_reg): Restrict operands 2 and 3 to the
4524 proper ranges for an SBFX instruction.
4525 (extzv_t2): Likewise for UBFX.
4526
4527 2016-11-16 Richard Biener <rguenther@suse.de>
4528
4529 PR tree-optimization/78348
4530 * tree-loop-distribution.c (enum partition_kind): Add PKIND_MEMMOVE.
4531 (generate_memcpy_builtin): Honor PKIND_MEMCPY on the partition.
4532 (classify_partition): Set PKIND_MEMCPY if dependence analysis
4533 revealed no dependency, PKIND_MEMMOVE otherwise.
4534
4535 2016-11-16 Jakub Jelinek <jakub@redhat.com>
4536
4537 PR sanitizer/77823
4538 * ubsan.c (ubsan_build_overflow_builtin): Add DATAP argument, if
4539 it points to non-NULL tree, use it instead of ubsan_create_data.
4540 (instrument_si_overflow): Handle vector signed integer overflow
4541 checking.
4542 * ubsan.h (ubsan_build_overflow_builtin): Add DATAP argument.
4543 * tree-vrp.c (simplify_internal_call_using_ranges): Punt for
4544 vector IFN_UBSAN_CHECK_*.
4545 * internal-fn.c (expand_addsub_overflow): Add DATAP argument,
4546 pass it through to ubsan_build_overflow_builtin.
4547 (expand_neg_overflow, expand_mul_overflow): Likewise.
4548 (expand_vector_ubsan_overflow): New function.
4549 (expand_UBSAN_CHECK_ADD, expand_UBSAN_CHECK_SUB,
4550 expand_UBSAN_CHECK_MUL): Use tit for vector arithmetics.
4551 (expand_arith_overflow): Adjust expand_*_overflow callers.
4552
4553 2016-11-16 Matthias Klose <doko@ubuntu.com>
4554
4555 * doc/install.texi: Remove references to java/libjava.
4556
4557 2016-11-16 Kugan Vivekanandarajah <kuganv@linaro.org>
4558
4559 * tree-ssa-coalesce.c (register_default_def): Remove
4560 register_ssa_partition.
4561 (create_outofssa_var_map): Likewise.
4562 * tree-ssa-live.c (register_ssa_partition_check): Remove.
4563 * tree-ssa-live.h (register_ssa_partition): Likewise.
4564
4565 2016-11-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
4566
4567 * genattrtab.c (attr_rtx_1): Avoid allocating new rtx objects.
4568 Clear ATTR_CURR_SIMPLIFIED_P for re-used binary rtx objects.
4569 Use DEF_ATTR_STRING for string arguments. Use RTL_HASH for
4570 integer arguments. Only set ATTR_PERMANENT_P on newly hashed
4571 rtx when all sub-rtx are also permanent.
4572 (attr_eq): Simplify.
4573 (attr_copy_rtx): Remove.
4574 (make_canonical, get_attr_value): Use attr_equal_p.
4575 (copy_boolean): Rehash NOT.
4576 (simplify_test_exp_in_temp,
4577 optimize_attrs): Remove call to attr_copy_rtx.
4578 (attr_alt_intersection, attr_alt_union,
4579 attr_alt_complement, mk_attr_alt): Rehash EQ_ATTR_ALT.
4580 (make_automaton_attrs): Use attr_eq.
4581
4582 2016-11-15 Matthias Klose <doko@ubuntu.com>
4583
4584 * doc/install.texi: Remove references to java/libjava.
4585 * doc/sourcebuild.texi: Likewise.
4586 * doc/invoke.texi: Likewise.
4587 * doc/standards.texi: Likewise.
4588
4589 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
4590 Alan Hayward <alan.hayward@arm.com>
4591 David Sherwood <david.sherwood@arm.com>
4592
4593 * config/i386/i386.h (INCOMING_RETURN_ADDR_RTX): Use Pmode instead
4594 of VOIDmode.
4595 * config/ia64/ia64.h (INCOMING_RETURN_ADDR_RTX): Likewise.
4596 * config/iq2000/iq2000.h (INCOMING_RETURN_ADDR_RTX): Likewise.
4597 * config/m68k/m68k.h (INCOMING_RETURN_ADDR_RTX): Likewise.
4598 * config/microblaze/microblaze.h (INCOMING_RETURN_ADDR_RTX): Likewise.
4599 * config/mips/mips.h (INCOMING_RETURN_ADDR_RTX): Likewise.
4600 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Likewise.
4601 * config/nios2/nios2.h (INCOMING_RETURN_ADDR_RTX): Likewise.
4602
4603 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
4604 Alan Hayward <alan.hayward@arm.com>
4605 David Sherwood <david.sherwood@arm.com>
4606
4607 * dce.c (check_argument_store): Pass the size instead of
4608 the memory reference.
4609 (find_call_stack_args): Pass MEM_SIZE to check_argument_store.
4610
4611 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
4612 Alan Hayward <alan.hayward@arm.com>
4613 David Sherwood <david.sherwood@arm.com>
4614
4615 * alias.c (canon_rtx): Use simplify_gen_binary.
4616
4617 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
4618 Alan Hayward <alan.hayward@arm.com>
4619 David Sherwood <david.sherwood@arm.com>
4620
4621 * rtl.h (load_extend_op): Declare.
4622 * rtlanal.c (load_extend_op): New function.
4623 (nonzero_bits1): Use it.
4624 (num_sign_bit_copies1): Likewise.
4625 * cse.c (cse_insn): Likewise.
4626 * fold-const.c (fold_single_bit_test): Likewise.
4627 (fold_unary_loc): Likewise.
4628 * fwprop.c (free_load_extend): Likewise.
4629 * postreload.c (reload_cse_simplify_set): Likewise.
4630 (reload_cse_simplify_operands): Likewise.
4631 * combine.c (try_combine): Likewise.
4632 (simplify_set): Likewise. Remove redundant SUBREG_BYTE and
4633 subreg_lowpart_p checks.
4634
4635 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
4636 Alan Hayward <alan.hayward@arm.com>
4637 David Sherwood <david.sherwood@arm.com>
4638
4639 * combine.c (simplify_shift_const_1): Use the number of bits
4640 in the inner mode to determine the range of the shift.
4641 When handling shifts of vectors, skip any rules that apply
4642 only to scalars.
4643
4644 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
4645 Alan Hayward <alan.hayward@arm.com>
4646 David Sherwood <david.sherwood@arm.com>
4647
4648 * rtlanal.c (num_sign_bit_copies1): Calculate bitwidth after
4649 handling VOIDmode.
4650
4651 2016-11-15 Matthias Klose <doko@ubuntu.com>
4652
4653 * doc/install.texi: Remove references to gcj/libjava.
4654 * doc/invoke.texi: Likewise.
4655
4656 2016-11-15 Jeff Law <law@redhat.com>
4657
4658 * tree-ssa-threadbackward.c (fsm_find_thread_path): Remove unneeded
4659 parameter. Callers changed.
4660 (check-subpath_and_update_thread_path): Extracted from
4661 fsm_find_control_statement_thread_paths.
4662 (handle_phi, handle_assignment, handle_assignment_p): Likewise.
4663 (handle_phi, handle_assignment): Allow any constant node, not
4664 just INTEGER_CST.
4665
4666 2016-11-15 Claudiu Zissulescu <claziss@synopsys.com>
4667
4668 * config/arc/arc-arch.h: New file.
4669 * config/arc/arc-arches.def: Likewise.
4670 * config/arc/arc-cpus.def: Likewise.
4671 * config/arc/arc-options.def: Likewise.
4672 * config/arc/t-multilib: Likewise.
4673 * config/arc/genmultilib.awk: Likewise.
4674 * config/arc/genoptions.awk: Likewise.
4675 * config/arc/arc-tables.opt: Likewise.
4676 * config/arc/driver-arc.c: Likewise.
4677 * testsuite/gcc.target/arc/nps400-cpu-flag.c: Likewise.
4678 * common/config/arc/arc-common.c (arc_handle_option): Trace
4679 toggled options.
4680 * config.gcc (arc*-*-*): Add arc-tables.opt to arc's extra
4681 options; check for supported cpu against arc-cpus.def file.
4682 (arc*-*-elf*, arc*-*-linux-uclibc*): Use new make fragment; define
4683 TARGET_CPU_BUILD macro; add driver-arc.o as an extra object.
4684 * config/arc/arc-c.def: Add emacs local variables.
4685 * config/arc/arc-opts.h (processor_type): Use arc-cpus.def file.
4686 (FPU_FPUS, FPU_FPUD, FPU_FPUDA, FPU_FPUDA_DIV, FPU_FPUDA_FMA)
4687 (FPU_FPUDA_ALL, FPU_FPUS_DIV, FPU_FPUS_FMA, FPU_FPUS_ALL)
4688 (FPU_FPUD_DIV, FPU_FPUD_FMA, FPU_FPUD_ALL): New defines.
4689 (DEFAULT_arc_fpu_build): Define.
4690 (DEFAULT_arc_mpy_option): Define.
4691 * config/arc/arc-protos.h (arc_init): Delete.
4692 * config/arc/arc.c (arc_cpu_name): New variable.
4693 (arc_selected_cpu, arc_selected_arch, arc_arcem, arc_archs)
4694 (arc_arc700, arc_arc600, arc_arc601): New variable.
4695 (arc_init): Add static; remove selection of default tune value,
4696 cleanup obsolete error messages.
4697 (arc_override_options): Make use of .def files for selecting the
4698 right cpu and option configurations.
4699 * config/arc/arc.h (stdbool.h): Include.
4700 (TARGET_CPU_DEFAULT): Define.
4701 (CPP_SPEC): Remove mcpu=NPS400 handling.
4702 (arc_cpu_to_as): Declare.
4703 (EXTRA_SPEC_FUNCTIONS): Define.
4704 (OPTION_DEFAULT_SPECS): Likewise.
4705 (ASM_DEFAULT): Remove.
4706 (ASM_SPEC): Use arc_cpu_to_as.
4707 (DRIVER_SELF_SPECS): Remove deprecated options.
4708 (arc_base_cpu): Declare.
4709 (TARGET_ARC600, TARGET_ARC601, TARGET_ARC700, TARGET_EM)
4710 (TARGET_HS, TARGET_V2, TARGET_ARC600): Make them use arc_base_cpu
4711 variable.
4712 (MULTILIB_DEFAULTS): Use ARC_MULTILIB_CPU_DEFAULT.
4713 * config/arc/arc.md (attr_cpu): Remove.
4714 * config/arc/arc.opt (mno-mpy): Deprecate.
4715 (mcpu=ARC600, mcpu=ARC601, mcpu=ARC700, mcpu=NPS400, mcpu=ARCEM)
4716 (mcpu=ARCHS): Remove.
4717 (mcrc, mdsp-packa, mdvbf, mmac-d16, mmac-24, mtelephony, mrtsc):
4718 Deprecate.
4719 (mbarrel_shifte, mspfp_, mdpfp_, mdsp_pack, mmac_): Remove.
4720 (arc_fpu): Use new defines.
4721 (mpy-option): Change to use numeric or string like inputs.
4722 * config/arc/t-arc (driver-arc.o): New target.
4723 (arc-cpus, t-multilib, arc-tables.opt): Likewise.
4724 * config/arc/t-arc-newlib: Delete.
4725 * config/arc/t-arc-uClibc: Renamed to t-uClibc.
4726 * doc/invoke.texi (ARC): Update arc options.
4727
4728 2016-11-15 Maciej W. Rozycki <macro@imgtec.com>
4729
4730 * config/mips/mips.c (mips16_emit_constants): Emit `consttable'
4731 insn at the beginning of the constant pool.
4732 (mips_insert_insn_pseudos): New function.
4733 (mips_machine_reorg2): Call it.
4734 * config/mips/mips.md (unspec): Add UNSPEC_CONSTTABLE and
4735 UNSPEC_INSN_PSEUDO enum values.
4736 (insn_pseudo, consttable): New insns.
4737
4738 2016-11-15 Michael Matz <matz@suse.de>
4739
4740 PR missed-optimization/77881
4741 * combine.c (simplify_comparison): Remove useless subregs
4742 also inside the loop, not just after it.
4743 (make_compound_operation): Recognize some subregs as being
4744 masking as well.
4745
4746 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
4747 Alan Hayward <alan.hayward@arm.com>
4748 David Sherwood <david.sherwood@arm.com>
4749
4750 * dwarf2out.c (mem_loc_descriptor): Fix GET_MODE_CLASS/
4751 GET_MODE_SIZE typo.
4752
4753 2016-11-14 Michael Meissner <meissner@linux.vnet.ibm.com>
4754
4755 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Add support
4756 for using xxinsertw and vinsert{b,h} on ISA 3.0.
4757
4758 * config/rs6000/vsx.md (vsx_extract_<mode>): Update comment.
4759 (vsx_set_<mode>_p9): New insn to generate xxinsertw and
4760 vinsert{b,h} on ISA 3.0.
4761
4762 2016-11-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
4763
4764 * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
4765 and cmpnop in two steps: first the ones not accessed in original gimple
4766 expression in a endian independent way and then the ones not accessed
4767 in the final result in an endian-specific way.
4768 (bswap_replace): Stop doing big endian adjustment.
4769
4770 2016-11-14 Uros Bizjak <ubizjak@gmail.com>
4771
4772 * config/i386/i386.md (*andndi3_doubleword): Merge operand constraints.
4773 (*ashl<mode>3_doubleword): Ditto.
4774
4775 2016-11-14 Martin Liska <mliska@suse.cz>
4776
4777 * tree-ssa-dse.c (dse_optimize_stmt): Remove quotes and extra new line.
4778
4779 2016-11-14 Prasad Ghangal <prasad.ghangal@gmail.com>
4780 Richard Biener <rguenther@suse.de>
4781
4782 * doc/invoke.texi (fgimple): Document.
4783 * dumpfile.h (TDF_GIMPLE): Add.
4784 * dumpfile.c (dump_options): Add gimple.
4785 * gimple-pretty-print.c (dump_gimple_switch): Adjust dump
4786 for TDF_GIMPLE.
4787 (dump_gimple_label): Likewise.
4788 (dump_gimple_phi): Likewise.
4789 (dump_gimple_bb_header): Likewise.
4790 (dump_phi_nodes): Likewise.
4791 (pp_cfg_jump): Likewise. Pass in dump flags.
4792 (dump_implicit_edges): Adjust.
4793 * passes.c (pass_init_dump_file): Do not dump function header
4794 for TDF_GIMPLE.
4795 * tree-cfg.c (dump_function_to_file): Dump function return type
4796 and __GIMPLE keyword for TDF_GIMPLE. Change guard for dumping
4797 GIMPLE stmts.
4798 * tree-pretty-print.c (dump_decl_name): Adjust dump for TDF_GIMPLE.
4799 (dump_generic_node): Likewise.
4800 * function.h (struct function): Add pass_startwith member.
4801 * passes.c (execute_one_pass): Implement startwith.
4802 * tree-ssanames.c (make_ssa_name_fn): New argument, check for version
4803 and assign proper version for parsed ssa names.
4804 * tree-ssanames.h (make_ssa_name_fn): Add new argument to the function.
4805 * internal-fn.c (expand_PHI): New function.
4806 * internal-fn.h (expand_PHI): Declared here.
4807 * internal-fn.def: New defination for PHI.
4808 * tree-cfg.c (lower_phi_internal_fn): New function.
4809 (build_gimple_cfg): Call it.
4810 (verify_gimple_call): Condition for passing label as arg in internal
4811 function PHI.
4812 * tree-into-ssa.c (rewrite_add_phi_arguments): Handle already
4813 present PHIs with arguments.
4814
4815 2016-11-14 Martin Liska <mliska@suse.cz>
4816
4817 PR bootstrap/78069
4818 * common.opt: Add prefer-atomic as a new enum value for
4819 -fprofile-update.
4820 * coretypes.h: Likewise.
4821 * doc/invoke.texi: Document the new option value.
4822 * gcc.c: Replace atomic with prefer-atomic. Remove warning.
4823 * tree-profile.c (tree_profiling): Select default value
4824 of -fprofile-update when 'prefer-atomic' is selected.
4825
4826 2016-11-14 Wilco Dijkstra <wdijkstr@arm.com>
4827
4828 * config/arm/cortex-a57.md (cortex_a57_alu): Move extend here, bfm...
4829 (cortex_a57_alu_shift): ...here.
4830
4831 2016-11-14 Wilco Dijkstra <wdijkstr@arm.com>
4832
4833 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3)
4834 Use bfx attribute.
4835 (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
4836 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
4837 (<optab>si3_insn_uxtw): Likewise.
4838 (<optab><mode>3_insn): Likewise.
4839 (<ANY_EXTEND:optab><GPI:mode>_ashl<SHORT:mode>): Likewise.
4840 (zero_extend<GPI:mode>_lshr<SHORT:mode>): Likewise.
4841 (extend<GPI:mode>_ashr<SHORT:mode>): Likewise.
4842 (<optab><mode>): Likewise.
4843 (insv<mode>): Likewise.
4844 (andim_ashift<mode>_bfiz): Likewise.
4845 * config/aarch64/thunderx.md (thunderx_shift): Add bfx.
4846 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
4847 * config/arm/cortex-a57.md (cortex_a57_alu): Add bfx.
4848 * config/arm/exynos-m1.md (exynos_m1_alu): Add bfx.
4849 (exynos_m1_alu_p): Likewise.
4850 * config/arm/types.md: Add bfx.
4851 * config/arm/xgene1.md (xgene1_bfm): Add bfx.
4852
4853 2016-11-14 Wilco Dijkstra <wdijkstr@arm.com>
4854
4855 * config/aarch64/aarch64.c (cortexa57_vector_cost):
4856 Change vec_stmt_cost, vec_align_load_cost and vec_unalign_load_cost.
4857
4858 2016-11-14 Richard Biener <rguenther@suse.de>
4859
4860 PR tree-optimization/78312
4861 * gimple-ssa-backprop.c (backprop::prepare_change): Reset
4862 flow-sensitive info.
4863
4864 2016-11-14 Georg-Johann Lay <avr@gjlay.de>
4865
4866 PR target/78093
4867 * doc/invoke.texi (AVR Options) [-mabsdata]: Document new option.
4868 * config/avr/avr.opt (-mabsdata): New option.
4869 * config/avr/avr-arch.h (avr_device_specific_features): Add AVR_ISA_LDS.
4870 * config/avr/avr.c (avr_encode_section_info) [AVR_TINY]: If
4871 -mabsdata & symbol is not progmem, tag as AVR_SYMBOL_FLAG_TINY_ABSDATA.
4872 * config/avr/avr-mcus.def (attiny4/5/9/10/20): Use AVR_ISA_LDS.
4873 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Print cc1_absdata
4874 spec depending on AVR_ISA_LDS.
4875 * config/avr/specs.h (CC1_SPEC): Enhanced by cc1_absdata spec.
4876
4877 2016-11-13 Jakub Jelinek <jakub@redhat.com>
4878
4879 * match.pd: Don't try to compare addresses of variables with
4880 DECL_VALUE_EXPR.
4881
4882 2016-11-13 Kugan Vivekanandarajah <kuganv@linaro.org>
4883
4884 * ipa-cp.c (ipa_get_jf_pass_through_result): Skip unary expressions.
4885 (propagate_vr_accross_jump_function): Handle unary expressions.
4886 * ipa-prop.c (ipa_set_jf_unary_pass_through): New.
4887 (load_from_param_1): New.
4888 (load_from_unmodified_param): Factor common part into load_from_param_1.
4889 (load_from_param): New.
4890 (compute_complex_assign_jump_func): Handle unary expressions.
4891 (update_jump_functions_after_inlining): Likewise.
4892 (ipa_write_jump_function): Likewise.
4893 (ipa_read_jump_function): Likewise.
4894
4895 2016-11-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
4896
4897 PR c/35503
4898 * doc/invoke.texi: Document Wrestrict.
4899 * pretty-print.c (pp_format): Add case for "Z" specifier.
4900 (test_pp_format): Test "Z" specifier.
4901
4902 2016-11-13 Eric Botcazou <ebotcazou@adacore.com>
4903
4904 * ipa-icf.c (sem_function::merge): Do not create a wrapper also if the
4905 original function needs a static chain.
4906
4907 2016-11-13 David Edelsohn <dje.gcc@gmail.com>
4908
4909 PR target/78336
4910 * config/rs6000/rs6000.c (rs6000_asm_weaken_decl): Protect
4911 ASM_OUTPUT_DEF.
4912
4913 2016-11-12 Segher Boessenkool <segher@kernel.crashing.org>
4914
4915 PR target/77957
4916 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Don't
4917 return early if !optional_tbtab.
4918
4919 2016-11-11 Eric Botcazou <ebotcazou@adacore.com>
4920
4921 PR rtl-optimization/59461
4922 * doc/rtl.texi (paradoxical subregs): Add missing word.
4923 * combine.c (reg_nonzero_bits_for_combine): Do not discard results
4924 in modes with precision larger than that of last_set_mode.
4925 * rtlanal.c (nonzero_bits1) <SUBREG>: If WORD_REGISTER_OPERATIONS is
4926 set and LOAD_EXTEND_OP is appropriate, propagate results from inner
4927 REGs to paradoxical SUBREGs.
4928 (num_sign_bit_copies1) <SUBREG>: Likewise. Check that the mode is not
4929 larger than a word before invoking LOAD_EXTEND_OP on it.
4930
4931 2016-11-11 Michael Meissner <meissner@linux.vnet.ibm.com>
4932
4933 PR target/78243
4934 * config/rs6000/vsx.md (vsx_extract_<mode>_p9): Correct the
4935 element order for little endian ordering.
4936
4937 * config/rs6000/altivec.md (reduc_plus_scal_<mode>): Use
4938 VECTOR_ELT_ORDER_BIG and not BYTES_BIG_ENDIAN to adjust element
4939 number.
4940
4941 2016-11-11 Uros Bizjak <ubizjak@gmail.com>
4942
4943 PR target/78310
4944 * config/i386/i386.md (rotate to rotatex splitter): Avoid overflow
4945 when calculating operand 2.
4946 (rotate to rotatex zext splitter): Ditto.
4947
4948 2016-11-11 Jeff Law <law@redhat.com>
4949
4950 * gimple-ssa-isolate-paths.c (is_divmod_with_given_divisor): New
4951 function.
4952 (stmt_uses_name_in_undefined_way): New function, extracted from
4953 find_implicit_erroneous_behavior and extended for div/mod case.
4954 (stmt_uses_0_or_null_in_undefined_way): New function, extracted from
4955 find_explicit_erroneous_behavior and extended for div/mod case.
4956 (find_implicit_erroneous_behavior): Use new helper function.
4957 (find_explicit_erroneous_behavior): Use new helper function.
4958
4959 2016-11-11 Richard Biener <rguenther@suse.de>
4960
4961 PR tree-optimization/71575
4962 * graphite-isl-ast-to-gimple.c (copy_cond_phi_nodes): Remove
4963 bogus assert.
4964
4965 2016-11-11 Richard Biener <rguenther@suse.de>
4966
4967 PR middle-end/78295
4968 * tree-ssa-uninit.c (warn_uninitialized_vars): Do not warn
4969 about uninitialized destination arg of BIT_INSERT_EXPR.
4970
4971 2016-11-10 Sandra Loosemore <sandra@codesourcery.com>
4972
4973 PR c/37998
4974 * doc/invoke.texi (Code Gen Options) [-fno-common]: Use correct
4975 terminology. Expand to remove ambiguity.
4976
4977 2016-11-10 Segher Boessenkool <segher@kernel.crashing.org>
4978
4979 PR rtl-optimization/78232
4980 * combine.c (try_combine): Add a big comment about why reusing i2dest
4981 is undesirable.
4982 (change_zero_ext): Do not call simplify_gen_binary, do the
4983 simplifications manually.
4984
4985 2016-11-10 Michael Meissner <meissner@linux.vnet.ibm.com>
4986
4987 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If ISA 3.0,
4988 enable HImode and QImode to go in vector registers by default if
4989 the -mvsx-small-integer option is enabled.
4990 (rs6000_secondary_reload_simple_move): Likewise.
4991 (rs6000_preferred_reload_class): Don't force integer constants to
4992 be loaded into vector registers that we can easily make into
4993 memory (or being created in the GPRs and moved over with direct move).
4994 * config/rs6000/vsx.md (UNSPEC_P9_MEMORY): Delete, no longer used.
4995 (vsx_extract_<mode>): Rework V4SImode, V8HImode, and V16QImode
4996 vector extraction on ISA 3.0 when the scalar integer can be
4997 allocated in vector registers. Generate the VEC_SELECT directy,
4998 and don't use UNSPEC's to avoid having the scalar type in a vector
4999 register. Make the expander target registers, and let the
5000 combiner fold in results storing to memory, if the machine
5001 supports stores.
5002 (vsx_extract_<mode>_di): Likewise.
5003 (vsx_extract_<mode>_p9): Likewise.
5004 (vsx_extract_<mode>_di_p9): Likewise.
5005 (vsx_extract_<mode>_store_p9): Likewise.
5006 (vsx_extract_si): Likewise.
5007 (vsx_extract_<mode>_p8): Likewise.
5008 (p9_lxsi<wd>zx): Delete, no longer used.
5009 (p9_stxsi<wd>x): Likewise.
5010 * config/rs6000/rs6000.md (INT_ISA3): New mode iterator for
5011 integers in vector registers for ISA 3.0.
5012 (QHI): Update comment.
5013 (zero_extendqi<mode>2): Add support for ISA 3.0 scalar load or
5014 vector extract instructions in sign/zero extend.
5015 (zero_extendhi<mode>): Likewise.
5016 (extendqi<mode>): Likewise.
5017 (extendhi<mode>2): Likewise.
5018 (HImode splitter for load/sign extend in vector register): Likewise.
5019 (float<QHI:mode><FP_ISA3:mode>2): Eliminate old method of
5020 optimizing floating point conversions to/from small data types and
5021 rewrite it to support QImode/HImode being allowed in vector
5022 registers on ISA 3.0.
5023 (float<QHI:mode><FP_ISA3:mode>2_internal): Likewise.
5024 (floatuns<QHI:mode><FP_ISA3:mode>2): Likewise.
5025 (floatuns<QHI:mode><FP_ISA3:mode>2_internal): Likewise.
5026 (fix_trunc<SFDF:mode><QHI:mode>2): Likewise.
5027 (fix_trunc<SFDF:mode><QHI:mode>2_internal): Likewise.
5028 (fixuns_trunc<SFDF:mode><QHI:mode>2): Likewise.
5029 (fixuns_trunc<SFDF:mode><QHI:mode>2_internal): Likewise.
5030 VSPLITISW on ISA 2.07.
5031 (movhi_internal): Combine movhi_internal and movqi_internal into
5032 one mov<mode>_internal with an iterator. Add support for QImode
5033 and HImode being allowed in vector registers. Make large number
5034 of attributes and constraints easier to read.
5035 (movqi_internal): Likewise.
5036 (mov<mode>_internal): Likewise.
5037 (movdi_internal64): Fix constraint to allow loading -16..15 with
5038 VSPLITISW on ISA 2.07.
5039 (integer XXSPLTIB splitter): Add support for QI, HI, and SImode as
5040 well as DImode.
5041
5042 2016-11-10 Pat Haugen <pthaugen@us.ibm.com>
5043
5044 PR rtl-optimization/78241
5045 * loop-unroll.c (unroll_loop_runtime_iterations): Don't adjust 'niter',
5046 but emit initial peel copy if niter expr is not reliable.
5047
5048 2016-11-10 Segher Boessenkool <segher@kernel.crashing.org>
5049
5050 * dwarf2cfi.c (dump_cfi_row): Add forward declaration.
5051 (maybe_record_trace_start): If the CFI is different on the new and
5052 old paths, print out both to the dump file before ICEing.
5053
5054 2016-11-10 Vladimir Makarov <vmakarov@redhat.com>
5055
5056 * target.def (additional_allocno_class_p): New.
5057 * hooks.h (hook_bool_reg_class_t_false): New prototype.
5058 * hooks.c (hook_bool_reg_class_t_false): New.
5059 * ira.c (setup_allocno_and_important_classes): Use the new hook.
5060 * doc/tm.texi.in (TARGET_ADDITIONAL_ALLOCNO_CLASS_P): Add it.
5061 * doc/tm.texi: Update.
5062
5063 2016-11-10 Jason Merrill <jason@redhat.com>
5064
5065 * gengtype.c (new_structure): Append to structures list.
5066 (find_structure): Likewise.
5067
5068 2016-11-10 Jim Wilson <jim.wilson@linaro.org>
5069
5070 * tree-loop-distribution.c (pg_add_dependence_edges): Return 2 if
5071 this_dir is 2. Check for this_dir non-zero before dir != this_dir
5072 check.
5073
5074 2016-11-10 Jakub Jelinek <jakub@redhat.com>
5075
5076 * omp-low.c (lower_omp_target): Fix up argument to is_reference.
5077 (expand_omp_ordered_sink): Handle TREE_PURPOSE of deps being
5078 TRUNC_DIV_EXPR.
5079 * gimplify.c (gimplify_scan_omp_clauses): Likewise. Set
5080 ctx->target_map_scalars_firstprivate on OMP_TARGET even for Fortran.
5081 Remove omp_no_lastprivate callers. Propagate lastprivate on combined
5082 teams distribute parallel for simd even to distribute and teams
5083 construct. For OMP_CLAUSE_DEPEND add missing break at the end of
5084 OMP_CLAUSE_DEPEND_SINK case.
5085 (omp_notice_variable): Use lang_hooks.decls.omp_scalar_p.
5086 (omp_no_lastprivate): Removed.
5087 (gimplify_adjust_omp_clauses): Remove omp_no_lastprivate callers.
5088 (gimplify_omp_for): Likewise.
5089 (computable_teams_clause): Fail for automatic vars from current
5090 function not yet seen in bind expr.
5091 * langhooks.c (lhd_omp_scalar_p): New function.
5092 * langhooks.h (struct lang_hooks_for_decls): Add omp_scalar_p.
5093 * varpool.c (varpool_node::get_create): Set node->offloading
5094 even for DECL_EXTERNAL decls.
5095 * langhooks-def.h (lhd_omp_scalar_p): New prototype.
5096 (LANG_HOOKS_OMP_SCALAR_P): Define.
5097 (LANG_HOOKS_DECLS): Use it.
5098
5099 2016-11-10 Martin Liska <mliska@suse.cz>
5100
5101 PR sanitizer/78270
5102 * gimplify.c (gimplify_switch_expr): Create live_switch_vars
5103 only when SWITCH_BODY is a BIND_EXPR.
5104
5105 2016-11-10 Pierre-Marie de Rodat <derodat@adacore.com>
5106
5107 PR debug/78112
5108 * dwarf2out.c (dwarf2out_early_global_decl): Call dwarf2out_decl
5109 on the context only when it has no DIE yet.
5110
5111 2016-11-10 Richard Earnshaw <rearnsha@arm.com>
5112
5113 * arm.h (target_cpus): Delete.
5114 * arm-opts.h (enum processor_type): Prefix entires with TARGET_CPU_.
5115 * arm.c (all_cores): Prefix IDENT with TARGET_CPU_.
5116 (all_architectures): Likewise.
5117 (arm_option_override): Adjust use of CPU enums.
5118 (arm_sched_reorder): Likewise.
5119 * vfp.md (movdi_vfp, movdi_vfp_cortexa8): Likewise.
5120 * arm.opt (mcpu, mtune): Adjust use of CPU enums.
5121 * arm/genopt.sh (processor_type): Prefix enumeration entries with
5122 TARGET_CPU_.
5123 * arm-tables.opt: Regenerated.
5124
5125 2016-11-10 Siddhesh Poyarekar <siddhesh.poyarekar@linaro.org>
5126
5127 * config/aarch64/aarch64-cores.def (qdf24xx): Update part number.
5128 (falkor): New core.
5129 * config/aarch64/aarch64-tune.md: Regenerated.
5130 * config/arm/arm-cores.def (falkor): New core.
5131 * config/arm/arm-tables.opt: Regenerated.
5132 * config/arm/arm-tune.md: Regenerated.
5133 * config/arm/bpabi.h (BE8_LINK_SPEC): Add falkor support.
5134 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
5135 * doc/invoke.texi (AArch64 Options/-mtune): Document it.
5136 (ARM Options/-mtune): Likewise.
5137
5138 2016-11-10 Kugan Vivekanandarajah <kuganv@linaro.org>
5139
5140 Revert
5141 2016-11-09 Kugan Vivekanandarajah <kuganv@linaro.org>
5142
5143 * ipa-cp.c (ipa_get_jf_pass_through_result): Handle unary expressions.
5144 (propagate_vr_accross_jump_function): Likewise.
5145 * ipa-prop.c (ipa_set_jf_unary_pass_through): New.
5146 (load_from_param_1): New.
5147 (load_from_unmodified_param): Factor common part into load_from_param_1.
5148 (load_from_param): New.
5149 (compute_complex_assign_jump_func): Handle unary expressions.
5150 (ipa_write_jump_function): Likewise.
5151 (ipa_read_jump_function): Likewise.
5152
5153 2016-11-09 Segher Boessenkool <segher@kernel.crashing.org>
5154
5155 * simplify-rtx.c (simplify_binary_operation_1): Simplify
5156 (xor (and (xor A B) C) B) to (ior (and A C) (and B ~C)) and
5157 (xor (and (xor A B) C) A) to (ior (and A ~C) (and B C)) if C
5158 is a const_int.
5159
5160 2016-11-09 David Malcolm <dmalcolm@redhat.com>
5161
5162 * print-rtl-function.c: Include varasm.h.
5163 (print_any_param_name): New function.
5164 (print_param): New function.
5165 (print_rtx_function): Call print_param for each argument.
5166 * print-rtl.c (rtx_writer::finish_directive): New function.
5167 * print-rtl.h (rtx_writer::finish_directive): New decl.
5168
5169 2016-11-09 Uros Bizjak <ubizjak@gmail.com>
5170
5171 PR target/78262
5172 * config/i386/i386.md (*<shift_insn><mode>3_doubleword): Mark
5173 operand 0 as earlyclobber.
5174 (*ashl<mode>3_doubleword): Ditto for all operand 0 alternatives.
5175
5176 2016-11-09 Martin Liska <mliska@suse.cz>
5177
5178 * fold-const-call.c (fold_const_call): Fix up type of s0 and s1.
5179
5180 2016-11-09 Jakub Jelinek <jakub@redhat.com>
5181
5182 PR target/77718
5183 * builtins.c (expand_builtin_memcmp): Formatting fix.
5184
5185 * flag-types.h (enum sanitize_code): Add SANITIZE_SHIFT_BASE
5186 and SANITIZE_SHIFT_EXPONENT, change SANITIZE_SHIFT to bitwise
5187 or of them, renumber other enumerators.
5188 * opts.c (sanitizer_opts): Add shift-base and shift-exponent.
5189 * doc/invoke.texi: Document -fsanitize=shift-base and
5190 -fsanitize-shift-exponent, document -fsanitize=shift as
5191 having those 2 suboptions.
5192
5193 2016-11-09 Richard Biener <rguenther@suse.de>
5194
5195 * fold-const.c (tree_swap_operands_p): Remove unused arg.
5196 * fold-const.c (tree_swap_operands_p): Likewise.
5197 (fold_binary_loc): Adjust.
5198 (fold_ternary_loc): Likewise.
5199 * genmatch.c (dt_operand::gen_gimple_exp): Likewise.
5200 * gimple-fold.c (fold_stmt_1): Likewise.
5201 * gimple-match-head.c (gimple_resimplify2): Likewise.
5202 (gimple_resimplify3): Likewise.
5203 (gimple_simplify): Likewise.
5204 * tree-ssa-dom.c (record_equality): Likewise.
5205 * tree-ssa-reassoc.c (optimize_range_tests_var_bound): Likewise.
5206 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
5207 * tree-ssa-threadedge.c (simplify_control_stmt_condition_1): Likewise.
5208
5209 2016-11-09 Richard Biener <rguenther@suse.de>
5210
5211 * tree-ssa-dom.c (canonicalize_comparison): Remove.
5212 (optimize_stmt): Remove redundant pre-propagation canonicalization
5213 of comparison operand order.
5214
5215 2016-11-09 Martin Liska <mliska@suse.cz>
5216
5217 * fold-const-call.c (fold_const_call): Fix the folding.
5218
5219 2016-11-09 Richard Biener <rguenther@suse.de>
5220
5221 * common.opt (flag_evaluation_order): Remove.
5222 * expr.c (expand_operands): Remove code guarded by
5223 flag_evaluation_order.
5224 * fold-const.c (reorder_operands_p): Remove, it always returns
5225 true.
5226 (negate_expr_p): Remove calls to reorder_operands_p.
5227 (fold_negate_expr): Likewise.
5228 (tree_swap_operands_p): Likewise.
5229 (fold_binary_loc): Likewise.
5230
5231 2016-11-09 Andreas Schwab <schwab@suse.de>
5232
5233 PR target/78254
5234 * config/m68k/m68k.md: Reject out-of-range bit pos in bit-fields
5235 insns operating on a register.
5236
5237 2016-11-09 Richard Biener <rguenther@suse.de>
5238
5239 PR tree-optimization/78007
5240 * tree-vect-stmts.c (vectorizable_bswap): New function.
5241 (vectorizable_call): Call vectorizable_bswap for
5242 BUILT_IN_BSWAP{16,32,64} if arguments are not promoted.
5243
5244 2016-11-09 Richard Biener <rguenther@suse.de>
5245
5246 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
5247 Look at the DR_BASE_ADDRESS object for forcing alignment.
5248
5249 2016-11-09 Kugan Vivekanandarajah <kuganv@linaro.org>
5250
5251 * ipa-cp.c (ipa_get_jf_pass_through_result): Handle unary expressions.
5252 (propagate_vr_accross_jump_function): Likewise.
5253 * ipa-prop.c (ipa_set_jf_unary_pass_through): New.
5254 (load_from_param_1): New.
5255 (load_from_unmodified_param): Factor common part into load_from_param_1.
5256 (load_from_param): New.
5257 (compute_complex_assign_jump_func): Handle unary expressions.
5258 (ipa_write_jump_function): Likewise.
5259 (ipa_read_jump_function): Likewise.
5260
5261 2016-11-09 Kugan Vivekanandarajah <kuganv@linaro.org>
5262
5263 PR ipa/78121
5264 * ipa-cp.c (propagate_vr_accross_jump_function): Pass param type.
5265 Also fold constant passed as argument while computing value range.
5266 (propagate_constants_accross_call): Pass param type.
5267 * ipa-prop.c: export ipa_get_callee_param_type.
5268 * ipa-prop.h: export ipa_get_callee_param_type.
5269
5270 2016-11-09 Maxim Ostapenko <m.ostapenko@samsung.com>
5271
5272 * asan.h (asan_intercepted_p): Handle BUILT_IN_STRCSPN,
5273 BUILT_IN_STRPBRK, BUILT_IN_STRSPN and BUILT_IN_STRSTR.
5274
5275 2016-11-09 Maxim Ostapenko <m.ostapenko@samsung.com>
5276
5277 * asan.h (ASAN_STACK_MAGIC_PARTIAL): Remove.
5278 * asan.c (ASAN_STACK_MAGIC_PARTIAL): Replace with
5279 ASAN_STACK_MAGIC_MIDDLE.
5280 (asan_global_struct): Increase the size of fields.
5281 (asan_add_global): Add new field constructor.
5282 * sanitizer.def (__asan_version_mismatch_check_v6): Replace with
5283 __asan_version_mismatch_check_v8.
5284
5285 2016-11-08 David Edelsohn <dje.gcc@gmail.com>
5286
5287 * dwarf2asm.c (USE_LINKONCE_INDIRECT): Test XCOFF_DEBUGGING_INFO
5288 at runtime.
5289
5290 2016-11-08 Uros Bizjak <ubizjak@gmail.com>
5291
5292 PR target/70799
5293 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
5294 Handle ASHIFT and LSHIFTRT.
5295 (dimode_scalar_chain::compute_convert_gain): Ditto.
5296 (dimode_scalar_chain::convert_insn): Ditto.
5297
5298 2016-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5299
5300 * gimple-ssa-store-merging.c: Include selftest.h
5301 (verify_array_eq): New function.
5302 (verify_shift_bytes_in_array): Likewise.
5303 (verify_shift_bytes_in_array_right): Likewise.
5304 (verify_clear_bit_region): Likewise.
5305 (verify_clear_bit_region_be): Likewise.
5306 (store_merging_c_tests): Likewise.
5307 * selftest.h (store_merging_c_tests): Declare prototype.
5308 * selftest-run-tests.c (selftest::run_tests): Run
5309 store_merging_c_tests.
5310
5311 2016-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5312
5313 * config/arm/arm.opt (mold-rtx-costs): Delete.
5314 (mnew-generic-costs): Delete.
5315 * config/arm/arm-protos.h (struct tune_params): Delete rtx_costs field.
5316 * config/arm/arm.c (arm_rtx_costs_1): Delete.
5317 (arm_size_rtx_costs): Likewise.
5318 (arm_slowmul_rtx_costs): Likewise.
5319 (arm_fastmul_rtx_costs): Likewise.
5320 (arm_xscale_rtx_costs): Likewise.
5321 (arm_9e_rtx_costs): Likewise.
5322 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
5323 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
5324 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
5325 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
5326 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
5327 arm_cortex_a5_tune, arm_xgene1_tune, arm_marvell_pj4_tune,
5328 arm_cortex_a35_tune, arm_exynosm1_tune, arm_cortex_a73_tune,
5329 arm_cortex_m7_tune):
5330 Delete rtx_costs field.
5331 (arm_new_rtx_costs): Rename to...
5332 (arm_rtx_costs_internal): ... This.
5333 (arm_rtx_costs): Remove old way of doing rtx costs.
5334
5335 2016-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5336
5337 * config/arm/arm.c (arm_slowmul_tune): Use generic_extra_costs.
5338 (arm_fastmul_tune): Likewise.
5339 (arm_strongarm_tune): Likewise.
5340 (arm_xscale_tune): Likewise.
5341 (arm_9e_tune): Likewise.
5342 (arm_marvell_pj4_tune): Likewise.
5343 (arm_v6t2_tune): Likewise.
5344 (arm_v6m_tune): Likewise.
5345 (arm_fa726te_tune): Likewise.
5346
5347 2016-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5348
5349 PR tree-optimization/78234
5350 * gimple-ssa-store-merging.c (clear_bit_region): Fix off-by-one error
5351 in start != 0 case.
5352
5353 2016-11-08 Martin Liska <mliska@suse.cz>
5354
5355 PR testsuite/78242
5356 * dbgcnt.def: Add new debug counter asan_use_after_scope.
5357 * gimplify.c (gimplify_decl_expr): Do not sanitize vars
5358 with a value expr. Do not add artificial variables to
5359 live_switch_vars. Use the debug counter.
5360 (gimplify_target_expr): Use the debug counter.
5361 * internal-fn.def: Remove ECF_TM_PURE from ASAN_MARK builtin.
5362 * sanitizer.def: Set ATTR_NOTHROW_LEAF_LIST to
5363 BUILT_IN_ASAN_CLOBBER_N and BUILT_IN_ASAN_UNCLOBBER_N.
5364
5365 2016-11-08 Richard Biener <rguenther@suse.de>
5366
5367 * tree-vect-stmts.c (get_group_load_store_type): If the
5368 access is aligned do not trigger peeling for gaps.
5369 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
5370 force alignment of vars with DECL_USER_ALIGN.
5371
5372 2016-11-08 James Greenhalgh <james.greenhalgh@arm.com>
5373
5374 * config/aarch64/t-aarch64 (aarch64-c.o): Depend on TARGET_H.
5375
5376 2016-11-08 Richard Biener <rguenther@suse.de>
5377
5378 PR tree-optimization/78205
5379 * tree-vect-stmts.c (vectorizable_load): Move check whether
5380 we may run into gaps when BB vectorizing SLP permutations ...
5381 * tree-vect-slp.c (vect_supported_load_permutation_p): ...
5382 here where we can do a more precise check.
5383
5384 2016-11-08 Richard Biener <rguenther@suse.de>
5385
5386 PR tree-optimization/78224
5387 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
5388 Split the fallthru edge in case its successor may have PHIs.
5389 Do not free dominance info.
5390
5391 2016-11-07 Jakub Jelinek <jakub@redhat.com>
5392
5393 PR target/78229
5394 * config/i386/i386.c (ix86_gimple_fold_builtin): Do not adjust
5395 EH info even for bzhi and pdep/pext.
5396
5397 2016-11-07 Peter Bergner <bergner@vnet.ibm.com>
5398
5399 * config.gcc (powerpc*-*-*, rs6000*-*-*): Remove setting of
5400 INCLUDE_EXTRA_SPEC for Advance Toolchain builds.
5401
5402 2016-11-07 Segher Boessenkool <segher@kernel.crashing.org>
5403
5404 * config/rs6000/rs6000.md (div<mode>3): Expand using rs6000_emit_swdiv
5405 if appropriate.
5406 * config/rs6000/vector.md (div<mode>3): Ditto.
5407
5408 2016-11-07 David Edelsohn <dje.gcc@gmail.com>
5409
5410 * configure.ac (.hidden): Change to conftest_s string. Provide string
5411 for AIX assembler.
5412 (gcc_cv_ld_hidden): Yes for AIX.
5413 * configure: Regenerate.
5414
5415 * dwarf2asm.c (USE_LINKONCE_INDIRECT): Don't set for AIX (XCOFF).
5416
5417 * config/rs6000/rs6000-protos.h (rs6000_asm_weaken_decl): Declare
5418 (rs6000_xcoff_asm_output_aligned_decl_common): Declare.
5419 * config/rs6000/xcoff.h (TARGET_ASM_GLOBALIZE_DECL_NAME): Define.
5420 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
5421 (ASM_OUTPUT_ALIGNED_COMMON): Delete.
5422 * config/rs6000/rs6000.c (rs6000_init_builtins): Change clog rename
5423 from #if to if.
5424 (rs6000_xcoff_visibility): New.
5425 (rs6000_xcoff_declare_function_name): Add visibility support.
5426 (rs6000_xcoff_asm_globalize_decl_name): New.
5427 (rs6000_xcoff_asm_output_aligned_decl_common): New.
5428 (rs6000_asm_weaken_decl): New.
5429 (rs6000_code_end): Disable HIDDEN_LINKONCE on XCOFF.
5430 config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Change definition to
5431 reference function.
5432
5433 2016-11-07 Jack Howarth <howarth.at.gcc@gmail.com>
5434
5435 PR driver/78206
5436 * incpath.c (remove_dup): Also silently ignore EPERM.
5437
5438 2016-11-07 Martin Jambor <mjambor@suse.cz>
5439
5440 * tree.c (verify_type_variant): Use pointer comparison to check that
5441 TYPE_SIZE_UNIT match.
5442
5443 2016-11-07 Jakub Jelinek <jakub@redhat.com>
5444
5445 PR target/77834
5446 * dse.c (dse_step5): Call scan_reads even if just
5447 insn_info->frame_read. Improve and fix dump file messages.
5448
5449 PR target/78227
5450 * config/i386/i386.c (ix86_expand_sse_cmp): Force dest into
5451 cmp_mode argument even for -O0 if cmp_mode != mode and maskcmp.
5452
5453 2016-11-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5454
5455 PR middle-end/35691
5456 * match.pd: Add following two patterns:
5457 (x == 0 & y == 0) -> (x | typeof(x)(y)) == 0.
5458 (x != 0 | y != 0) -> (x | typeof(x)(y)) != 0.
5459
5460 2016-11-07 Bernd Schmidt <bschmidt@redhat.com>
5461
5462 * emit-rtl.c (emit_copy_of_insn_after): Duplicate notes in order.
5463 * sel-sched-ir.c (create_copy_of_insn_rtx): Likewise.
5464 * rtl.h (duplicate_reg_notes): Declare.
5465 * rtlanal.c (duplicate_reg_note): New function.
5466
5467 PR rtl-optimization/77309
5468 * combine.c (make_compound_operation): Allow EQ for IN_CODE, and
5469 don't assume an equality comparison for plain COMPARE.
5470 (simplify_comparison): Pass a more accurate code to
5471 make_compound_operation.
5472
5473 2016-11-07 Pat Haugen <pthaugen@us.ibm.com>
5474
5475 * target.def (compute_pressure_classes): New target hook.
5476 * doc/tm.texi.in: Document it.
5477 * doc/tm.texi: Regenerate.
5478 * ira.c (setup_pressure_classes): Call target hook if defined.
5479
5480 2016-11-07 David Malcolm <dmalcolm@redhat.com>
5481
5482 * print-rtl.c (rtx_writer::operand_has_default_value_p): New
5483 method.
5484 (rtx_writer::print_rtx): In compact mode, omit trailing operands
5485 that have the default values.
5486 * print-rtl.h (rtx_writer::operand_has_default_value_p): New
5487 method.
5488 * rtl-tests.c (selftest::test_dumping_insns): Remove empty
5489 label string from expected dump.
5490 (seltest::test_uncond_jump): Remove trailing "(nil)" for REG_NOTES
5491 from expected dump.
5492
5493 2016-11-07 Jakub Jelinek <jakub@redhat.com>
5494
5495 PR target/77834
5496 * alias.c (nonoverlapping_memrefs_p): If one decl is
5497 FUNCTION_DECL or LABEL_DECL and the other is not, return 1.
5498
5499 2016-11-07 Richard Biener <rguenther@suse.de>
5500
5501 PR target/78229
5502 * config/i386/i386.c (ix86_gimple_fold_builtin): Do not adjust
5503 EH info.
5504
5505 2016-11-07 Richard Biener <rguenther@suse.de>
5506
5507 PR tree-optimization/78218
5508 * gimple-ssa-store-merging.c
5509 (pass_store_merging::terminate_all_aliasing_chains):
5510 Drop unused argument, fix alias check to also consider uses.
5511 (pass_store_merging::execute): Adjust.
5512
5513 2016-11-07 Richard Biener <rguenther@suse.de>
5514
5515 PR tree-optimization/78228
5516 * tree-ssa-phiopt.c (abs_replacement): Avoid introducing
5517 undefined behavior.
5518
5519 2016-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5520
5521 PR target/77822
5522 * config/aarch64/aarch64.md (*tb<optab><mode>1): Use
5523 aarch64_simd_shift_imm_<mode> predicate for operand 1.
5524 (<optab>, ANY_EXTRACT): Use tighter predicates on operands 2 and 3
5525 to restrict them to an appropriate range and add FAIL check if the
5526 region they specify is out of range. Delete useless constraint
5527 strings.
5528 (*<optab><mode>, ANY_EXTRACT): Add appropriate predicates on operands
5529 2 and 3 to restrict their range and add pattern predicate.
5530
5531 2016-11-07 Martin Liska <mliska@suse.cz>
5532
5533 * asan.c (enum asan_check_flags): Move the enum to header file.
5534 (asan_init_shadow_ptr_types): Make type creation more generic.
5535 (shadow_mem_size): New function.
5536 (asan_emit_stack_protection): Use newly added ASAN_SHADOW_GRANULARITY.
5537 Rewritten stack unpoisoning code.
5538 (build_shadow_mem_access): Add new argument return_address.
5539 (instrument_derefs): Instrument local variables if use after scope
5540 sanitization is enabled.
5541 (asan_store_shadow_bytes): New function.
5542 (asan_expand_mark_ifn): Likewise.
5543 (asan_sanitize_stack_p): Moved from asan_sanitize_stack_p.
5544 * asan.h (enum asan_mark_flags): Moved here from asan.c
5545 (asan_protect_stack_decl): Protect all declaration that need
5546 to live in memory.
5547 (asan_sanitize_use_after_scope): New function.
5548 (asan_no_sanitize_address_p): Likewise.
5549 * cfgexpand.c (partition_stack_vars): Consider
5550 asan_sanitize_use_after_scope in condition.
5551 (expand_stack_vars): Likewise.
5552 * common.opt (-fsanitize-address-use-after-scope): New option.
5553 * doc/invoke.texi (use-after-scope-direct-emission-threshold):
5554 Explain the parameter.
5555 * flag-types.h (enum sanitize_code): Define SANITIZE_USE_AFTER_SCOPE.
5556 * gimplify.c (build_asan_poison_call_expr): New function.
5557 (asan_poison_variable): Likewise.
5558 (gimplify_bind_expr): Generate poisoning/unpoisoning for local
5559 variables that have address taken.
5560 (gimplify_decl_expr): Likewise.
5561 (gimplify_target_expr): Likewise for C++ temporaries.
5562 (sort_by_decl_uid): New function.
5563 (gimplify_expr): Unpoison all variables for a label we can jump
5564 from outside of a scope.
5565 (gimplify_switch_expr): Unpoison variables defined in the switch
5566 context.
5567 (gimplify_function_tree): Clear asan_poisoned_variables.
5568 (asan_poison_variables): New function.
5569 (warn_switch_unreachable_r): Handle IFN_ASAN_MARK.
5570 * internal-fn.c (expand_ASAN_MARK): New function.
5571 * internal-fn.def (ASAN_MARK): Declare.
5572 * opts.c (finish_options): Handle -fstack-reuse if
5573 -fsanitize-address-use-after-scope is enabled.
5574 (common_handle_option): Enable address sanitization if
5575 -fsanitize-address-use-after-scope is enabled.
5576 * params.def (PARAM_USE_AFTER_SCOPE_DIRECT_EMISSION_THRESHOLD):
5577 New parameter.
5578 * params.h: Likewise.
5579 * sancov.c (pass_sanopt::execute): Handle IFN_ASAN_MARK.
5580 * sanitizer.def: Define __asan_poison_stack_memory and
5581 __asan_unpoison_stack_memory functions.
5582 * asan.c (asan_mark_poison_p): New function.
5583 (transform_statements): Handle asan_mark_poison_p calls.
5584 * gimple.c (nonfreeing_call_p): Handle IFN_ASAN_MARK.
5585
5586 2016-11-07 Tamar Christina <tamar.christina@arm.com>
5587
5588 PR driver/78196
5589 * Makefile.in (SELFTEST_FLAGS): Added -o /dev/null.
5590
5591 2016-11-07 Martin Liska <mliska@suse.cz>
5592
5593 * tree-profile.c (gimple_gen_time_profiler): Set proper type
5594 to time_profiler_counter_ptr.
5595
5596 2016-11-07 Richard Biener <rguenther@suse.de>
5597
5598 PR tree-optimization/37150
5599 * tree-vectorizer.h (vect_transform_slp_perm_load): Add n_perms
5600 parameter.
5601 * tree-vect-slp.c (vect_supported_load_permutation_p): Adjust.
5602 (vect_analyze_slp_cost_1): Account for the real number of
5603 permutations emitted and for dead loads.
5604 (vect_transform_slp_perm_load): Add n_perms parameter counting
5605 the number of emitted permutations.
5606 * tree-vect-stmts.c (vectorizable_load): Adjust.
5607
5608 2016-11-07 Richard Biener <rguenther@suse.de>
5609
5610 PR tree-optimization/78189
5611 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Fix
5612 alignment computation.
5613
5614 2016-11-06 Kugan Vivekanandarajah <kuganv@linaro.org>
5615
5616 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove unreachable code.
5617
5618 2016-11-05 Martin Sebor <msebor@redhat.com>
5619
5620 * doc/invoke.texi (Warning Options): Correct typos in -Walloca
5621 documentation.
5622
5623 2016-11-05 David Edelsohn <dje.gcc@gmail.com>
5624
5625 PR bootstrap/78188
5626 PR c++/71848
5627 * ipa-comdats.c (pass_ipa_comdats::gate): Require HAVE_COMDAT_GROUP.
5628
5629 2016-11-04 Jakub Jelinek <jakub@redhat.com>
5630
5631 PR target/77834
5632 * alias.c (nonoverlapping_memrefs_p): Return 0 if exprx or expry
5633 doesn't have rtl set.
5634
5635 2016-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5636
5637 * config/rs6000/rs6000.c (gimple-ssa.h): New #include.
5638 (TARGET_GIMPLE_FOLD_BUILTIN): Define as
5639 rs6000_gimple_fold_builtin.
5640 (rs6000_gimple_fold_builtin): New function. Add handling for
5641 early expansion of vector addition builtins.
5642
5643 2016-11-04 Eric Botcazou <ebotcazou@adacore.com>
5644
5645 * expr.h (copy_blkmode_from_reg): Delete.
5646 * expr.c (copy_blkmode_from_reg): Make static.
5647
5648 2016-11-04 Eric Botcazou <ebotcazou@adacore.com>
5649
5650 * defaults.h (LOAD_EXTEND_OP): Define if not already defined.
5651 * combine.c (LOAD_EXTEND_OP): Delete.
5652 (simplify_comparison): Fix comment about LOAD_EXTEND_OP.
5653 * cse.c (LOAD_EXTEND_OP): Delete.
5654 * fold-const.c (LOAD_EXTEND_OP): Likewise.
5655 * fwprop.c (free_load_extend): Remove #ifdef LOAD_EXTEND_OP/#endif.
5656 * postreload.c (LOAD_EXTEND_OP): Delete.
5657 * reload.c (push_reload): Remove #ifdef LOAD_EXTEND_OP/#endif.
5658 Convert conditional compilation based on WORD_REGISTER_OPERATIONS.
5659 (find_reloads): Likewise.
5660 * reload1.c (eliminate_regs_1): Likewise.
5661 * rtlanal.c (nonzero_bits1): Remove #ifdef LOAD_EXTEND_OP/#endif.
5662 (num_sign_bit_copies1): Likewise.
5663
5664 2016-11-04 David Malcolm <dmalcolm@redhat.com>
5665
5666 * config/i386/i386.c: Include "selftest.h" and "selftest-rtl.h".
5667 (selftest::ix86_test_dumping_hard_regs): New function.
5668 (selftest::ix86_run_selftests): New function.
5669 (TARGET_RUN_TARGET_SELFTESTS): When CHECKING_P, wire this up to
5670 selftest::ix86_run_selftests.
5671 * doc/tm.texi.in (TARGET_RUN_TARGET_SELFTESTS): New.
5672 * doc/tm.texi: Regenerate
5673 * selftest-rtl.h: New file.
5674 * rtl-tests.c: Include "selftest-rtl.h".
5675 (selftest::assert_rtl_dump_eq): Make non-static.
5676 (ASSERT_RTL_DUMP_EQ): Move to selftest-rtl.h.
5677 (selftest::test_dumping_regs): Update comment.
5678 * selftest-run-tests.c: Include "target.h".
5679 (selftest::run_tests): If non-NULL, call
5680 targetm.run_target_selftests.
5681 * target.def (run_target_selftests): New hook.
5682
5683 2016-11-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
5684
5685 * config/arm/arm-arches.def (armv8-m.main+dsp): Set Cortex-M33 as
5686 representative core for this architecture.
5687 * config/arm/arm-cores.def (cortex-m33): Define new processor.
5688 * config/arm/arm-tables.opt: Regenerate.
5689 * config/arm/arm-tune.md: Likewise.
5690 * config/arm/bpabi.h (BE8_LINK_SPEC): Add Cortex-M33 to the list of
5691 valid -mcpu options.
5692 * doc/invoke.texi (ARM Options): Document new Cortex-M33 processor.
5693
5694 2016-11-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
5695
5696 * config/arm/arm-arches.def (armv8-m.base): Set Cortex-M23 as
5697 representative core for this architecture.
5698 * config/arm/arm-cores.def (cortex-m23): Define new processor.
5699 * config/arm/arm-tables.opt: Regenerate.
5700 * config/arm/arm-tune.md: Likewise.
5701 * config/arm/arm.c (arm_v6m_tune): Add Cortex-M23 to the list of cores
5702 this tuning parameters apply to in the comment.
5703 * config/arm/bpabi.h (BE8_LINK_SPEC): Add Cortex-M23 to the list of
5704 valid -mcpu options.
5705 * doc/invoke.texi (ARM Options): Document new Cortex-M23 processor.
5706
5707 2016-11-04 Bin Cheng <bin.cheng@arm.com>
5708
5709 * fold-const.c (fold_cond_expr_with_comparison): Remove call
5710 to pedantic_non_lvalue_loc. Remove useless code for lvalue
5711 where cond_expr can't be a lvalue.
5712
5713 2016-11-04 Claudiu Zissulescu <claziss@synopsys.com>
5714
5715 * config/arc/arc.c (arc_process_double_reg_moves): Use
5716 gen_dexcl_2op call.
5717 * config/arc/arc.md (movsi_insn): Disable unsupported move
5718 instructions for ARCv2 cores.
5719 (movdi): Use prepare_move_operands.
5720 (movsf, movdf): Use move_dest_operand predicate.
5721 * config/arc/constraints.md (Chs): Enable when barrel shifter is
5722 present.
5723 * config/arc/fpu.md (divsf3): Change to divsf3_fpu.
5724 * config/arc/fpx.md (dexcl_3op_peep2_insn): Dx data register is
5725 also a destination.
5726 (dexcl_3op_peep2_insn_nores): Likewise.
5727 * config/arc/arc.h (SHIFT_COUNT_TRUNCATED): Define to one.
5728 (LINK_COMMAND_SPEC): Remove.
5729
5730 2016-11-04 Richard Biener <rguenther@suse.de>
5731
5732 PR middle-end/78185
5733 * loop-invariant.c (find_exits): Record entering inner
5734 loops as possibly exiting to handle infinite sub-loops.
5735 * tree-ssa-loop-im.c: Include tree-ssa-loop-niter.h.
5736 (fill_always_executed_in_1): Honor infinite child loops.
5737
5738 2016-11-03 Michael Meissner <meissner@linux.vnet.ibm.com>
5739
5740 PR target/78192
5741 * config/rs6000/vsx.md (vsx_extract_<mode>_di): The element number
5742 has already been adjusted for endianness, so don't adjust it any
5743 further.
5744
5745 PR target/77993
5746 * config/rs6000/rs6000.h (FLOAT128_IBM_P): Do not allow IFmode or
5747 ICmode unless we have standard PowerPC floating point.
5748 * config/rs6000/rs6000.md (FP iterator): Likewise.
5749 (FMOVE128 iterator): Likewise.
5750
5751 2016-11-03 Jakub Jelinek <jakub@redhat.com>
5752 Alexandre Oliva <aoliva@redhat.com>
5753 Jason Merrill <jason@redhat.com>
5754
5755 PR debug/28767
5756 PR debug/56974
5757 * langhooks.h (struct lang_hooks_for_types): Add type_dwarf_attribute
5758 langhook.
5759 * langhooks.c (lhd_type_dwarf_attribute): New function.
5760 * langhooks-def.h (lhd_type_dwarf_attribute): Declare.
5761 (LANG_HOOKS_TYPE_DWARF_ATTRIBUTE): Define.
5762 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add
5763 LANG_HOOKS_TYPE_DWARF_ATTRIBUTE.
5764 (check_qualified_type, check_aligned_type): Call it.
5765 * dwarf2out.c (modified_type_die): Don't use type_main_variant
5766 for FUNCTION_TYPE or METHOD_TYPE, instead walk over variants with
5767 check_base_type and check_lang_type.
5768 (gen_ptr_to_mbr_type_die): If lookup_type_die is already non-NULL,
5769 return early. For pointer-to-data-member add DW_AT_use_location
5770 attribute.
5771 (gen_subroutine_type_die): Add DW_AT_{,rvalue_}reference attribute
5772 if needed.
5773 (gen_type_die_with_usage): Don't use type_main_variant
5774 for FUNCTION_TYPE or METHOD_TYPE, instead walk over variants with
5775 check_base_type and check_lang_type. Formatting fixes. Call
5776 get_debug_type langhook.
5777
5778 2016-11-03 Jason Merrill <jason@redhat.com>
5779
5780 * tree.c (check_lang_type): New.
5781 (check_qualified_type): Use it.
5782 (check_aligned_type): Use it.
5783 * tree.h: Declare it.
5784
5785 2016-11-03 Richard Earnshaw <rearnsha@arm.com>
5786
5787 * config.gcc (arm-wrs-vxworks): Set target_cpu_cname.
5788 (arm*-freebsd*): Likewise.
5789 (arm*-*-netbsdelf*): Likewise.
5790 (arm*-*-linux*): Likewise.
5791 (arm*-*-uclinux*eabi*): Likewise.
5792 (arm*-*-phoenix*): Likewise.
5793 (arm*-*-eabi*, arm*-*-symbianelf*, arm*-*-rtems*): Likewise.
5794 (arm*-*-*): Don't clobber target_cpu_cname when --with-cpu is not
5795 specified. Default to arm6 if target_cpu_cname is not set.
5796 * arm/arm.c (arm_option_override): Simplify logic. Assert that the
5797 default cpu has been correctly configured.
5798 * arm/arm.h (TARGET_CPU_DEFAULT): Delete.
5799 (target_cpus): Delete TARGET_CPU_generic, add TARGET_CPU_num_cores.
5800 * arm/freebsd.h (SUBTARGET_CPU_DEFAULT): Delete.
5801 * arm/linux-eabi.h (SUBTARGET_CPU_DEFAULT): Delete.
5802 * arm/linux-elf.h (SUBTARGET_CPU_DEFAULT): Delete.
5803 * arm/symbian.h (SUBTARGET_CPU_DEFAULT): Delete.
5804 * arm/unknown-elf.h (SUBTARGET_CPU_DEFAULT): Delete.
5805
5806 2016-11-03 Jiong Wang <jiong.wang@arm.com>
5807
5808 * reg-notes.def (CFA_VAL_EXPRESSION): New entry.
5809 * dwarf2cfi.c (dwarf2out_frame_debug_cfa_val_expression): New function.
5810 (dwarf2out_frame_debug): Support REG_CFA_VAL_EXPRESSION.
5811 (output_cfa_loc): Support DW_CFA_val_expression.
5812 (output_cfa_loc_raw): Likewise.
5813 (output_cfi): Likewise.
5814 (output_cfi_directive): Likewise.
5815 * dwarf2out.c (dw_cfi_oprnd1_desc): Support DW_CFA_val_expression.
5816 (dw_cfi_oprnd2_desc): Likewise.
5817 (mem_loc_descriptor): Recognize new pattern generated for value
5818 expression.
5819
5820 2016-11-03 Segher Boessenkool <segher@kernel.crashing.org>
5821
5822 PR rtl-optimization/78186
5823 * combine.c (change_zero_ext): Mask the RHS of a zero_extract as
5824 well, when converting to IOR.
5825
5826 2016-11-03 Eric Botcazou <ebotcazou@adacore.com>
5827
5828 * config/sparc/sparc.md (vec_interleave_lowv8qi): Delete.
5829 (vec_interleave_highv8qi): Likewise.
5830
5831 2016-11-03 Martin Liska <mliska@suse.cz>
5832
5833 * profile.c (instrument_values): Fix coding style.
5834 (branch_prob): Use renamed function.
5835 * tree-profile.c (init_ic_make_global_vars): Likewise.
5836 (gimple_init_edge_profiler): Rename to
5837 gimple_init_gcov_profiler.
5838 tree_time_profiler_counter variable declaration.
5839 (gimple_gen_time_profiler): Rewrite to do a direct gimple code
5840 emission.
5841 * value-prof.h: Remove an argument.
5842
5843 2016-11-03 Richard Biener <rguenther@suse.de>
5844
5845 * config/rs6000/rs6000.c (rs6000_xcoff_declare_object_name): Use
5846 symtab_node::get_create.
5847
5848 2016-11-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5849
5850 * rtlanal.c (nonzero_bits1): Fix WORD_REGISTER_OPERATIONS condition.
5851 Move comments into more natural position.
5852
5853 2016-11-03 Vineet Gupta <vgupta@synopsys.com>
5854
5855 * config/arc/arc.h (SIZE_TYPE): Define as unsigned int.
5856 (PTRDIFF_TYPE): Define as int.
5857
5858 2016-11-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5859
5860 * ccmp.c (expand_ccmp_expr_1): Adjust.
5861 (expand_ccmp_expr): Likewise.
5862 (expand_ccmp_next): Likewise.
5863 * config/aarch64/aarch64.c (aarch64_gen_ccmp_next): Likewise.
5864 (aarch64_gen_ccmp_first): Likewise.
5865 * doc/tm.texi: Regenerate.
5866 * target.def (gen_ccmp_first): Change argument types to rtx_insn *.
5867 (gen_ccmp_next): Likewise.
5868
5869 2016-11-03 Bin Cheng <bin.cheng@arm.com>
5870
5871 * tree-vect-loop.c (destroy_loop_vec_info): Handle cond_expr.
5872 (vect_is_simple_reduction): Swap cond_reduction by inversion.
5873
5874 2016-11-02 Uros Bizjak <ubizjak@gmail.com>
5875
5876 * config/i386/i386.c (ix86_init_libfuncs): New. Call
5877 darwin_rename_builtins here.
5878 (ix86_expand_divmod_libfunc): New.
5879 (TARGET_INIT_LIBFUNCS): Unconditionally define to ix86_init_libfuncs.
5880 (TARGET_EXPAND_DIVMOD_LIBFUNC): Define.
5881
5882 2016-11-02 Cesar Philippidis <cesar@codesourcery.com>
5883 Nathan Sidwell <nathan@acm.org>
5884
5885 * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): Set to zero.
5886
5887 2016-11-02 Max Filippov <jcmvbkbc@gmail.com>
5888
5889 * config/xtensa/xtensa.c (xtensa_output_integer_literal_parts):
5890 New function.
5891 (xtensa_output_literal): Use xtensa_output_integer_literal_parts
5892 to format MODE_INT and MODE_PARTIAL_INT literals.
5893
5894 2016-11-02 Segher Boessenkool <segher@kernel.crashing.org>
5895
5896 PR target/78168
5897 * config/r6000/rs6000.c (rs6000_get_separate_components): Return
5898 NULL if TARGET_SPE_ABI.
5899
5900 2016-11-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5901
5902 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Don't forget to
5903 clear padding bits even when they're less than a byte.
5904
5905 2016-11-02 Richard Biener <rguenther@suse.de>
5906
5907 * gimple-ssa-store-merging.c: Include gimplify-me.h.
5908 (imm_store_chain_info::output_merged_stores): Force base_addr
5909 to be proper GIMPLE for a MEM_REF address.
5910 (pass_store_merging::execute): Restrict negative bitpos
5911 handling to non-MEM_REF bases. Remove TREE_THIS_VOLATILE
5912 check. Take into account non-NULL_TREE offset if the base
5913 is already addressable.
5914
5915 2016-11-26 Wilco Dijkstra <wdijkstr@arm.com>
5916
5917 * config/aarch64/aarch64-simd.md (aarch64_crypto_sha1hv4si):
5918 New pattern.
5919 (aarch64_be_crypto_sha1hv4si): New pattern.
5920
5921 2016-11-02 Wilco Dijkstra <wdijkstr@arm.com>
5922
5923 * config/aarch64/aarch64.md (add<mode>3): Remove
5924 redundant code. Don't split frame based additions.
5925
5926 2016-11-02 Richard Biener <rguenther@suse.de>
5927
5928 * gimple-ssa-store-merging.c (struct store_immediate_info): Remove
5929 redundant val and dest members.
5930 (store_immediate_info::store_immediate_info): Adjust.
5931 (merged_store_group::merged_store_group): Adjust.
5932 (merged_store_group::apply_stores): Likewise.
5933 (struct imm_store_chain_info): Add base_addr field.
5934 (imm_store_chain_info::imm_store_chain_info): New constructor.
5935 (imm_store_chain_info::terminate_and_process_chain): Do not pass base.
5936 (imm_store_chain_info::output_merged_store): Likewise. Use
5937 addr_base which is already the address.
5938 (imm_store_chain_info::output_merged_stores): Likewise.
5939 (pass_tree_store_merging::terminate_all_aliasing_chains): Take
5940 imm_store_chain_info instead of base. Fix alias check.
5941 (pass_tree_store_merging::terminate_and_release_chain): Likewise.
5942 (imm_store_chain_info::coalesce_immediate_stores): Adjust.
5943 (pass_store_merging::execute): Refuse to operate on TARGET_MEM_REF.
5944 use the address of the base and adjust for other changes.
5945
5946 2016-11-02 Martin Liska <mliska@suse.cz>
5947
5948 * fold-const-call.c (host_size_t_cst_p): Test whether
5949 t is convertible to size_t.
5950
5951 2016-11-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5952
5953 PR tree-optimization/78170
5954 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Truncate padding
5955 introduced by native_encode_expr on little-endian as well.
5956
5957 2016-11-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5958
5959 PR tree-optimization/78162
5960 * gimple-ssa-store-merging.c (execute): Mark stores with bitpos < 0
5961 as invalid.
5962
5963 2016-11-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5964
5965 * config/aarch64/aarch64.c (aarch64_register_saved_on_entry): Add
5966 function comment.
5967 (aarch64_next_callee_save): Likewise.
5968 (aarch64_pushwb_single_reg): Likewise.
5969 (aarch64_gen_storewb_pair): Likewise.
5970 (aarch64_push_regs): Likewise.
5971 (aarch64_gen_loadwb_pair): Likewise.
5972 (aarch64_pop_regs): Likewise.
5973 (aarch64_gen_store_pair): Likewise.
5974 (aarch64_gen_load_pair): Likewise.
5975 (aarch64_save_callee_saves): Likewise.
5976 (aarch64_restore_callee_saves): Likewise.
5977
5978 2016-11-02 Richard Biener <rguenther@suse.de>
5979
5980 PR tree-optimization/78035
5981 PR tree-optimization/77964
5982 * gimple-pretty-print.c (pp_points_to_solution): Print
5983 vars_contains_interposable.
5984 * tree-ssa-alias.c: Include varasm.h.
5985 (ptrs_compare_unequal): Check vars_contains_interposable and
5986 decl_binds_to_current_def_p.
5987 (dump_points_to_solution): Dump vars_contains_interposable.
5988 * tree-ssa-alias.h (struct pt_solution): Add vars_contains_interposable
5989 flag.
5990 * tree-ssa-structalias.c: Include varasm.h.
5991 (set_uids_in_ptset): Record whether vars contains a
5992 not decl_binds_to_current_def_p variable in vars_contains_interposable.
5993 (ipa_escaped_pt): Update initializer.
5994
5995 2016-11-02 Richard Biener <rguenther@suse.de>
5996
5997 PR tree-optimization/78047
5998 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Initialize
5999 fake field at offset zero conservatively regarding to may_have_pointers.
6000
6001 2016-11-02 Richard Biener <rguenther@suse.de>
6002
6003 * tree-vrp.c (evrp_dom_walker::before_dom_children): Call
6004 infer_value_range on stmt ops and update value-ranges.
6005 Dump visited stmts and blocks.
6006 (evrp_dom_walker::push_value_range): Dump changes.
6007 (evrp_dom_walker::pop_value_range): Likewise.
6008 (evrp_dom_walker::try_find_new_range): Avoid noop changes.
6009
6010 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6011
6012 * emit-rtl.c (prev_nonnote_insn_bb): Change argument type to
6013 rtx_insn *.
6014 * rtl.h (prev_nonnote_insn_bb): Adjust prototype.
6015
6016 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6017
6018 * cfgrtl.c (delete_insn_chain): Change argument type to rtx_insn *
6019 and adjust for that.
6020 * cfgrtl.h (delete_insn_chain): Adjust prototype.
6021
6022 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6023
6024 * config/rl78/rl78.c (gen-and_emit_move): Change argument type
6025 to rtx_insn *.
6026 (transcode_memory_rtx): Likewise.
6027 (move_to_acc): Likewise.
6028 (move_from_acc): Likewise.
6029 (move_acc_to_reg): Likewise.
6030 (move_to_x): Likewise.
6031 (move_to_hl): Likewise.
6032 (move_to_de): Likewise.
6033 * config/rs6000/rs6000.c (emit_frame_save): Likewise.
6034 (rs6000_emit_savres_rtx): Likewise.
6035 (rs6000_emit_prologue): Likewise.
6036 * reorg.c (update_reg_unused_notes): Likewise.
6037 * rtl.h (remove_note): Adjust prototype.
6038 * rtlanal.c (remove_note): Make argument type rtx_insn *.
6039
6040 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6041
6042 * config/alpha/alpha.c (alpha_legitimize_address_1): Split up
6043 variables so some can be rtx_insn *.
6044 (alpha_emit_xfloating_libcall): Likewise.
6045 * config/mips/mips.c (mips_call_tls_get_addr): Likewise.
6046 (mips_legitimize_tls_address): Likewise.
6047 * optabs.c (expand_binop): Likewise.
6048 * reload1.c (gen_reload): Likewise.
6049
6050 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6051
6052 * reorg.c (relax_delay_slots): Split up the trial variable.
6053
6054 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6055
6056 * config/arc/arc.c (arc_emit_call_tls_get_addr): Make the type
6057 of variables rtx_insn *.
6058 * config/arm/arm.c (arm_call_tls_get_addr): Likewise.
6059 (legitimize_tls_address): Likewise.
6060 * config/bfin/bfin.c (hwloop_optimize): Likewise.
6061 (bfin_gen_bundles): Likewise.
6062 * config/c6x/c6x.c (reorg_split_calls): Likewise.
6063 (c6x_reorg): Likewise.
6064 * config/frv/frv.c (frv_reorder_packet): Likewise.
6065 * config/i386/i386.c (ix86_split_idivmod): Likewise.
6066 * config/ia64/ia64.c (ia64_expand_compare): Likewise.
6067 * config/m32c/m32c.c (m32c_prepare_shift): Likewise.
6068 * config/mn10300/mn10300.c: Likewise.
6069 * config/rl78/rl78.c: Likewise.
6070 * config/s390/s390.c (s390_fix_long_loop_prediction): Likewise.
6071 * config/sh/sh-mem.cc (sh_expand_cmpstr): Likewise.
6072 (sh_expand_cmpnstr): Likewise.
6073 (sh_expand_strlen): Likewise.
6074 (sh_expand_setmem): Likewise.
6075 * config/sh/sh.md: Likewise.
6076 * emit-rtl.c (emit_pattern_before): Likewise.
6077 * except.c: Likewise.
6078 * final.c: Likewise.
6079 * jump.c: Likewise.
6080
6081 2016-11-01 Jason Merrill <jason@redhat.com>
6082
6083 * tree-inline.c (copy_tree_body_r): Only copy the taken branch of
6084 a COND_EXPR with constant condition.
6085
6086 2016-11-01 Jakub Jelinek <jakub@redhat.com>
6087
6088 * dwarf2out.c (gen_variable_die): Remove again origin_die variable
6089 and its initialization.
6090
6091 2016-11-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6092
6093 * dwarf2out.c (output_rnglists): Wrap basebuf, len in
6094 HAVE_AS_LEB128.
6095
6096 2016-11-01 Jakub Jelinek <jakub@redhat.com>
6097
6098 * dwarf2out.c (add_name_and_src_coords_attributes): Add NO_LINKAGE_NAME
6099 argument, don't call add_linkage_name if it is true.
6100 (gen_variable_die): For C++ inline static data members, consider the
6101 initial call when old_die is NULL to be declaration and call
6102 add_name_and_src_coords_attributes in that case with true as
6103 NO_LINKAGE_NAME. Add DW_AT_inline attribute if needed.
6104 (gen_member_die): For C++ inline static data members, emit a
6105 definition DIE right away in DW_TAG_compile_unit context.
6106
6107 2016-11-01 John David Anglin <danglin@gcc.gnu.org>
6108
6109 PR target/78166
6110 * config/pa/pa.md: Add new shift/add patterns to handle
6111 (plus (mult (reg) (mem_shadd_operand)) (reg)) source operand.
6112
6113 2016-11-01 Max Filippov <jcmvbkbc@gmail.com>
6114
6115 * config/xtensa/xtensa-protos.h
6116 (xtensa_use_return_instruction_p): New prototype.
6117 * config/xtensa/xtensa.c (xtensa_current_frame_size,
6118 xtensa_callee_save_size): Remove.
6119 (struct machine_function): Add new fields: current_frame_size,
6120 callee_save_size, frame_laid_out and epilogue_done.
6121 (compute_frame_size, xtensa_expand_prologue,
6122 xtensa_expand_epilogue): Replace xtensa_callee_save_size with
6123 cfun->machine->callee_save_size and xtensa_current_frame_size
6124 with cfun->machine->current_frame_size.
6125 (compute_frame_size): Update cfun->machine->frame_laid_out and
6126 don't update frame layout after reload completion.
6127 (xtensa_expand_epilogue): Set cfun->machine->epilogue_done
6128 instead of zeroing xtensa_current_frame_size.
6129 (xtensa_use_return_instruction_p): New function.
6130 * config/xtensa/xtensa.h (xtensa_current_frame_size): Remove
6131 declaration.
6132 (INITIAL_ELIMINATION_OFFSET): Use return value of
6133 compute_frame_size instead of xtensa_current_frame_size value.
6134 * config/xtensa/xtensa.md ("return" pattern): Use new predicate
6135 function xtensa_use_return_instruction_p instead of inline code.
6136
6137 2016-11-01 Jakub Jelinek <jakub@redhat.com>
6138
6139 * tree.h (BLOCK_IN_COLD_SECTION_P): Define.
6140 * final.c (final_scan_insn): Set BLOCK_IN_COLD_SECTION_P.
6141 * dwarf2out.c (rnglist_idx): New variable.
6142 (struct dw_ranges): Add label, idx and maybe_new_sec fields.
6143 (DEBUG_RNGLISTS_SECTION): Define.
6144 (ranges_base_label): New variable.
6145 (size_of_die) <case dw_val_class_range_list>: If using
6146 DW_FORM_rnglistx, count size of uleb128 of range list index.
6147 (value_format) <case dw_val_class_range_list>: For
6148 -gdwarf-5 -gsplit-dwarf return DW_FORM_rnglistx.
6149 (output_range_list_offset): Handle -gdwarf-5 .debug_rnglists
6150 offsets. Multiply dwarf < 5 offsets by 2 * DWARF_ADDR_SIZE.
6151 (add_ranges_num): Remove useless prototype. Don't multiply
6152 by 2 * DWARF2_ADDR_SIZE. Add maybe_new_sec argument, adjust
6153 for new fields added to dw_ranges struct.
6154 (add_ranges): Add maybe_new_sec argument and pass it
6155 through to add_ranges_num.
6156 (note_rnglist_head): New function.
6157 (add_ranges_by_labels): Pass true as maybe_new_sec to
6158 add_ranges_num, call note_rnglist_head on the head of the list.
6159 (output_ranges): Add function comment. Switch to
6160 .debug_ranges section here and emit .Ldebug_ranges0 label.
6161 (index_rnglists, output_rnglists): New functions.
6162 (gen_subprogram_die): Formatting fixes.
6163 (add_high_low_attributes): Don't divide offsets
6164 by 2 * DWARF2_ADDR_SIZE. Call note_rnglist_head on the
6165 first list element or when pointing into the middle of
6166 a list. Pass true as second argument to add_ranges on the
6167 first block fragment after cold/hot section switch.
6168 (init_sections_and_labels): For -gdwarf-5 use .debug_rnglists
6169 section instead of .debug_ranges. Initialize
6170 ranges_base_label if -gdwarf-5 -gsplit-dwarf.
6171 (dwarf2out_finish): For -gdwarf-5 -gsplit-dwarf call
6172 index_rnglists and add DW_AT_rnglists_base attr. Don't switch
6173 to dwarf_ranges_section here or emit .Ldebug_ranges0 label.
6174 Call output_rnglists for -gdwarf-5.
6175 (dwarf2out_c_finalize): Clear rnglist_idx.
6176
6177 2016-11-01 Fritz Reese <fritzoreese@gmail.com>
6178
6179 * combine.c (simplify_compare_const): Add gcc_fallthrough.
6180
6181 2016-11-01 Bilyan Borisov <bilyan.borisov@arm.com>
6182 Tamar Christina <tamar.christina@arm.com>
6183
6184 * config/arm/arm-c.c (arm_cpu_builtins): New macro definition.
6185 * config/arm/arm_neon.h (vmaxnm_f32): New intrinsinc.
6186 (vmaxnmq_f32): Likewise.
6187 (vminnm_f32): Likewise.
6188 (vminnmq_f32): Likewise.
6189 * config/arm/arm_neon_builtins.def (vmaxnm): New builtin.
6190 (vminnm): Likewise.
6191 * config/arm/neon.md (neon_<fmaxmin_op><mode>, VCVTF): New
6192 expander.
6193
6194 2016-10-31 Michael Meissner <meissner@linux.vnet.ibm.com>
6195
6196 * config/rs6000/vsx.md (VSX_EXTRACT_FL): New iterator for all
6197 binary floating point types supported by the hardware except for
6198 double.
6199 (vsx_xvcvsxwdp_df): Provide scalar result alternative to the
6200 vector instruction for optimizing extracting a SImode from a
6201 V4SImode vector and converting it to floating point.
6202 (vsx_xvcvuxwdp_df): Likewise.
6203 (vsx_extract_si): On ISA 3.0, allow extract target and temporary
6204 registers to be any VSX register. Move stores to the end of the
6205 constraints.
6206 (vsx_extract_si_<uns>float_df): New combiner pattern and splitter
6207 to optimize extracting a SImode from a V4SImode vector and
6208 converting it to a binary floating point type supported by the
6209 hardware. Use the vector converts instead of extracting the
6210 element, sign extending it, and then converting it to double.
6211 Other floating point types than double first convert to double,
6212 then the double is converted to that type.
6213 (vsx_extract_si_<uns>float_<mode>): Likewise.
6214
6215 2016-10-31 Andrew Pinski <apinski@cavium.com>
6216
6217 * config/aarch64/driver-aarch64.c (host_detect_local_cpu):
6218 Rewrite handling of part num to handle the case where
6219 multiple implementers share the same part num.
6220
6221 2016-10-31 Jan Kratochvil <jan.kratochvil@redhat.com>
6222 Jakub Jelinek <jakub@redhat.com>
6223
6224 * dwarf2out.c (DWARF_COMPILE_UNIT_HEADER_SIZE): Adjust for -gdwarf-5.
6225 (DWARF_COMDAT_TYPE_UNIT_HEADER_SIZE): Likewise.
6226
6227 2016-10-31 Jakub Jelinek <jakub@redhat.com>
6228
6229 * dwarf2out.c (dwarf_AT): Handle DW_AT_dwo_name.
6230 (use_debug_types): Adjust comment for DWARF5 DW_UT_type units.
6231 (new_die): Handle DW_TAG_skeleton_unit like DW_TAG_compile_unit.
6232 (is_cu_die, is_unit_die): Likewise.
6233 (should_move_die_to_comdat, break_out_comdat_types): Adjust
6234 comments for DWARF5 DW_UT_type units.
6235 (output_compilation_unit_header): Add UT argument, output
6236 start of DWARF5 .debug_info section header.
6237 (output_comp_unit): Add dwo_id argument. Adjust
6238 output_compilation_unit_header caller, for DW_UT_split_compile
6239 emit dwo_id field, otherwise padding1. Emit padding2 field.
6240 (add_top_level_skeleton_die_attrs): Add DW_AT_dwo_name
6241 rather than DW_AT_GNU_dwo_name attr for -gdwarf-5.
6242 (output_skeleton_debug_sections): Add dwo_id argument, for
6243 -gdwarf-5 emit DWARF 5 DW_UT_skeleton header.
6244 (output_comdat_type_unit): For -gdwarf-5 emit .debug_info
6245 DW_UT_type or DW_UT_split_type units rather than .debug_types.
6246 (dwarf2out_finish): Use DW_TAG_skeleton_unit rather than
6247 DW_TAG_compile_unit for skeleton unit die. Don't add
6248 DW_AT_GNU_dwo_id attributes for -gdwarf-5, instead pass checksum
6249 address to output_comp_unit and output_skeleton_debug_sections.
6250
6251 * dwarf2out.c (debug_line_str_section): New variable.
6252 (debug_line_str_hash): Likewise.
6253 (DEBUG_LINE_STR_SECTION): Define.
6254 (set_indirect_string): Handle DW_FORM_line_strp like
6255 DW_FORM_strp.
6256 (find_string_form): Fix up formatting.
6257 (size_of_die): Handle DW_FORM_line_strp like DW_FORM_strp.
6258 Fix up indentation.
6259 (output_die): Handle DW_FORM_line_strp.
6260 (DWARF5_USE_DEBUG_LINE_STR): Define.
6261 (output_line_string): New function.
6262 (output_file_names): Add -gdwarf-5 support.
6263 (output_line_info): Likewise.
6264 (init_sections_and_labels): Initialize debug_line_str_section.
6265 (output_indirect_string): Change 2nd argument from void *
6266 to enum dwarf_form form, compare with form rather than
6267 DW_FORM_strp.
6268 (output_indirect_strings): Pass DW_FORM_strp to
6269 output_indirect_string traversion.
6270 (dwarf2out_finish): Output .debug_line_str strings.
6271 (dwarf2out_c_finalize): Clear debug_line_str_section and
6272 debug_line_str_hash.
6273
6274 2016-10-31 Tom Tromey <tom@tromey.com>
6275
6276 PR debug/77315
6277 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_form_tls_address.
6278 (resolve_args_picking_1): Move DW_OP_form_tls_address case next to
6279 DW_OP_GNU_push_tls_address case.
6280 (loc_list_from_tree_1): Use DW_OP_form_tls_address.
6281
6282 2016-10-31 Jakub Jelinek <jakub@redhat.com>
6283
6284 * dwarf2out.h (struct dw_loc_descr_node): Adjust comment
6285 for frame_offset_rel bit.
6286 (struct array_descr_info): Add rank field.
6287 * dwarf2out.c (struct loc_descr_context): Add placeholder_arg
6288 and placeholder_seen fields.
6289 (resolve_args_picking_1): Handle also frame_offset_rel DW_OP_dup
6290 and DW_OP_over. Optimize DW_OP_pick 0 into DW_OP_dup and
6291 DW_OP_pick 1 into DW_OP_over.
6292 (function_to_dwarf_procedure, type_byte_size, field_byte_offset,
6293 gen_variant_part): Clear placeholder_{arg,seen}.
6294 (loc_list_from_tree_1): Drop const from context argument.
6295 Handle integral PLACEHOLDER_EXPR if context->placeholder_arg.
6296 (loc_list_for_address_of_addr_expr_of_indirect_ref,
6297 loc_list_from_tree, loc_descriptor_from_tree): Drop const from
6298 context argument.
6299 (add_scalar_info): Drop const from context argument. Handle
6300 context->placeholder_arg.
6301 (add_bound_info): Drop const from context argument.
6302 (gen_descr_array_type_die): Drop const from ctx variable.
6303 Initialize placeholder_arg and placeholder_seen. Add DW_AT_rank
6304 attribute and use a single DW_TAG_generic_subrange instead of
6305 7 DW_TAG_subrange_type for assumed rank arrays.
6306
6307 * dwarf2out.h (enum dw_val_class): Add dw_val_class_loclistsptr.
6308 * dwarf2out.c (struct dw_loc_list_struct): Change emitted field
6309 from bool to 1-bit uchar bitfield. Add num_assigned and
6310 offset_emitted bitfields.
6311 (dw_val_equal_p): Compare v.val_lbl_id rather than v.val_unsigned
6312 for dw_val_class_lineptr and dw_val_class_macptr. Handle
6313 dw_val_class_loclistsptr.
6314 (new_addr_loc_descr): Fix up formatting.
6315 (DEBUG_LOCLISTS_SECTION, DEBUG_DWO_LOCLISTS_SECTION): Define.
6316 (add_AT_low_high_pc): Fix up formatting.
6317 (add_AT_loclistsptr): New function.
6318 (AT_lbl): Allow dw_val_class_loclistsptr.
6319 (print_dw_val, attr_checksum, attr_checksum_ordered, same_dw_val_p):
6320 Handle dw_val_class_loclistsptr.
6321 (loc_list_idx): New variable.
6322 (output_loclists_offsets, assign_location_list_indexes): New
6323 functions.
6324 (size_of_die): For dw_val_class_loc_list -gsplit-dwarf -gdwarf-5
6325 add size_of_uleb128 of the index. Drop never used
6326 dwarf_split_debug_info AT_index handling. Handle
6327 dw_val_class_loclistsptr.
6328 (value_format): Return DW_FORM_loclistsx for dw_val_class_loc_list
6329 if -gsplit-dwarf -gdwarf-5. Handle dw_val_class_loclistsptr.
6330 (output_loc_list): Handle DWARF 5 .debug_loclists* format.
6331 (output_loc_list_offset): Handle -gsplit-dwarf -gdwarf-5
6332 DW_FORM_loclistx indexes.
6333 (output_attr_index_or_value): Fix up formatting. Don't handle
6334 dw_val_class_loc_list here.
6335 (output_die): Formatting fixes. Handle dw_val_class_loclistsptr.
6336 For dw_val_class_loc_list call output_loc_list_offset rather than
6337 output_attr_index_or_value.
6338 (init_sections_and_labels): For -gdwarf-5 use .debug_loclists
6339 or .debug_loclists.dwo section name for debug_loc_section.
6340 (resolve_addr_in_expr): Formatting fix.
6341 (index_location_lists): Likewise.
6342 (dwarf2out_finish): If there are any location lists, for
6343 -gsplit-dwarf -gdwarf-5 add DW_AT_loclists_base attribute. Call
6344 index_location_lists only if have_location_lists. Call
6345 assign_location_list_indexes for -gsplit-dwarf -gdwarf-5. Emit
6346 .debug_loclists{,.dwo} section header for -gdwarf-5, for -gdwarf-5
6347 -gsplit-dwarf also emit offset table.
6348
6349 * dwarf2out.c (DWARF_LARGEST_DATA_FORM_BITS): Define.
6350 (size_of_die, value_format, output_die): Use
6351 DW_FORM_data16 for 128-bit dw_val_class_const_double or
6352 dw_val_class_wide_int.
6353
6354 * dwarf2out.c (dwarf_op): Renamed to ...
6355 (dwarf_OP): ... this.
6356 (convert_descriptor_to_mode, scompare_loc_descriptor,
6357 minmax_loc_descriptor, typed_binop, mem_loc_descriptor,
6358 implicit_ptr_descriptor, optimize_one_addr_into_implicit_ptr): Adjust
6359 callers.
6360 (dwarf_AT, dwarf_TAG): New functions.
6361 (check_die): Disallow DW_AT_call_all_calls next to
6362 DW_AT_GNU_all_call_sites.
6363 (gen_call_site_die): Use dwarf_TAG and dwarf_AT with DWARF 5 tag
6364 and attributes instead of the corresponding GNU tag and attributes.
6365 (gen_subprogram_die): Likewise. Emit call site information even
6366 for -gdwarf-5 -gstrict-dwarf. Replace DW_AT_GNU_defaulted with
6367 DW_AT_defaulted in comment.
6368 (resolve_addr): Handle DW_AT_call_origin attribute on
6369 DW_TAG_call_site DIE like DW_AT_abstract_origin on
6370 DW_TAG_GNU_call_site DIE.
6371
6372 * dwarf2out.c (dwarf_op): New function.
6373 (size_of_loc_descr): Handle DW_OP_{implicit_pointer,entry_value},
6374 DW_OP_{const,regval,deref}_type and DW_OP_{convert,reinterpret}.
6375 (output_loc_operands, output_loc_operands_raw): Likewise.
6376 (resolve_args_picking_1, prune_unused_types_walk_loc_descr,
6377 mark_base_types, hash_loc_operands, compare_loc_operands): Likewise.
6378 (resolve_addr_in_expr): Likewise. Only punt for !dwarf_strict
6379 if dwarf_version < 5.
6380 (convert_descriptor_to_mode): Use dwarf_op (DW_OP_xxx) instead of
6381 DW_OP_GNU_xxx.
6382 (scompare_loc_descriptor, ucompare_loc_descriptor,
6383 minmax_loc_descriptor, typed_binop, mem_loc_descriptor,
6384 implicit_ptr_descriptor, optimize_one_addr_into_implicit_ptr,
6385 optimize_location_into_implicit_ptr): Likewise. Only punt for
6386 !dwarf_strict if dwarf_version < 5.
6387 (string_cst_pool_decl): Adjust comment.
6388 (non_dwarf_expression): Handle DW_OP_implicit_pointer.
6389
6390 * dwarf2out.h (enum dw_val_class): Add dw_val_class_const_implicit,
6391 dw_val_class_unsigned_const_implicit and dw_val_class_file_implicit.
6392 (struct dw_val_node): Add val_file_implicit field.
6393 * dwarf2out.c (dw_val_equal_p, print_dw_val, attr_checksum,
6394 attr_checksum_ordered, same_dw_val_p, size_of_die, value_format,
6395 output_die): Handle dw_val_class_const_implicit,
6396 dw_val_class_unsigned_const_implicit and dw_val_class_file_implicit.
6397 (abbrev_die_table): Change into va_gc vec.
6398 (abbrev_die_table_allocated, abbrev_die_table_in_use,
6399 ABBREV_DIE_TABLE_INCREMENT): Remove.
6400 (AT_int, AT_unsigned, AT_file): Allow dw_val_class_*_implicit.
6401 (abbrev_opt_start, abbrev_usage_count, sorted_abbrev_dies): New
6402 variables.
6403 (build_abbrev_table): Adjust for abbrev_die_table being a va_gc vec.
6404 If abbrev_opt_start, fill in abbrev_usage_count and abbrev_dies
6405 vectors.
6406 (die_abbrev_cmp, optimize_implicit_const, optimize_abbrev_table): New
6407 functions.
6408 (output_die_abbrevs): For DW_FORM_implicit_const emit sleb128 with
6409 the implicit value.
6410 (output_abbrev_section): Adjust for abbrev_die_table being a va_gc
6411 vec.
6412 (output_comp_unit): Initialize abbrev_opt_start if emitting the main
6413 unit. Call optimize_abbrev_table.
6414 (dwarf2out_init, dwarf2out_finish, dwarf2out_c_finalize): Adjust for
6415 abbrev_die_table being a va_gc vec.
6416
6417 PR tree-optimization/77860
6418 * tree-ssa-reassoc.c (eliminate_using_constants): Handle
6419 also integral complex and vector constants.
6420
6421 * dwarf2out.c (dwarf2out_define, dwarf2out_undef, output_macinfo_op,
6422 optimize_macinfo_range, save_macinfo_strings): Replace
6423 DW_MACRO_GNU_* constants with corresponding DW_MACRO_* constants.
6424 (output_macinfo): Likewise. Emit .debug_macro* rather than
6425 .debug_macinfo* even for -gstrict-dwarf -gdwarf-5.
6426 (init_sections_and_labels): Use .debug_macro* labels rather than
6427 .debug_macinfo* labels even for -gstrict-dwarf -gdwarf-5.
6428 (dwarf2out_finish): Use DW_AT_macros instead of DW_AT_macro_info
6429 or DW_AT_GNU_macros for -gdwarf-5.
6430
6431 2016-10-31 Waldemar Brodkorb <wbx@openadk.org>
6432
6433 * config/microblaze/linux.h (UCLIBC_DYNAMIC_LINKER): Define.
6434
6435 2016-09-11 Le-Chun Wu <lcwu@google.com>
6436 Mark Wielaard <mjw@redhat.com>
6437
6438 * common.opt (Wshadow=global): New option. Default for -Wshadow.
6439 (Wshadow=local): New option.
6440 (Wshadow-local): Hidden alias for -Wshadow=local.
6441 (Wshadow=compatible-local): New option.
6442 (Wshadow-compatible-local): Hidden alias for
6443 -Wshadow=compatible-local.
6444 * doc/invoke.texi: Document Wshadow=global, Wshadow=local and
6445 Wshadow=compatible-local.
6446
6447 2016-10-31 Bin Cheng <bin.cheng@arm.com>
6448
6449 * tree-vect-slp.c (vect_get_and_check_slp_defs): New parameter SWAP.
6450 Check slp defs for COND_EXPR by swapping/inverting operands if the
6451 new parameter SWAP indicates so.
6452 (vect_build_slp_tree_1): New parameter SWAP. Check COND_EXPR stmt
6453 is isomorphic to the first stmt via swapping/inverting. Store swap
6454 information in the new parameter SWAP.
6455 (vect_build_slp_tree): New local array SWAP and pass it to function
6456 vect_build_slp_tree_1. Cleanup result handling code for function
6457 call to vect_get_and_check_slp_defs. Skip operand swapping if the
6458 order of operands has been fixed as indicated by SWAP[i].
6459
6460 2016-10-31 Bin Cheng <bin.cheng@arm.com>
6461
6462 * tree-vect-data-refs.c (vect_slp_analyze_node_dependences): Skip
6463 unnecessary data dependence check after visited store stmt.
6464
6465 2016-10-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6466
6467 PR tree-optimization/71915
6468 PR tree-optimization/71490
6469 * gimple-ssa-strength-reduction.c (struct slsr_cand_d): Add
6470 stride_type field.
6471 (find_basis_for_base_expr): Require stride types to match when
6472 seeking a basis.
6473 (alloc_cand_and_find_basis): Record the stride type.
6474 (slsr_process_phi): Pass stride type to alloc_cand_and_find_basis.
6475 (backtrace_base_for_ref): Pass types to legal_cast_p_1 rather than
6476 the expressions having those types.
6477 (slsr_process_ref): Pass stride type to alloc_cand_and_find_basis.
6478 (create_mul_ssa_cand): Likewise.
6479 (create_mul_imm_cand): Likewise.
6480 (create_add_ssa_cand): Likewise.
6481 (create_add_imm_cand): Likewise.
6482 (legal_cast_p_1): Change interface to accept types rather than the
6483 expressions having those types.
6484 (legal_cast_p): Pass types to legal_cast_p_1.
6485 (slsr_process_cast): Pass stride type to
6486 alloc_cand_and_find_basis.
6487 (slsr_process_copy): Likewise.
6488 (dump_candidate): Display stride type when a cast exists.
6489 (create_add_on_incoming_edge): Introduce a cast when necessary for
6490 the stride type.
6491 (analyze_increments): Change the code checking for invalid casts
6492 to rely on the stride type, and update the documentation and
6493 example. Change the code checking for pointer multiplies to rely
6494 on the stride type.
6495 (insert_initializers): Introduce a cast when necessary for the
6496 stride type. Use the stride type for the type of the initializer.
6497
6498 2016-10-30 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6499
6500 * config/arm/arm.c (arm_const_not_ok_for_debug_p): Use VAR_P.
6501
6502 2016-10-29 Jakub Jelinek <jakub@redhat.com>
6503
6504 PR rtl-optimization/77919
6505 * expr.c (expand_expr_real_1) <normal_inner_ref>: Only avoid forcing
6506 into memory if both modes are complex and their inner modes have the
6507 same precision. If the two modes are different complex modes, convert
6508 each part separately and generate a new CONCAT.
6509
6510 2016-10-29 John David Anglin <danglin@gcc.gnu.org>
6511
6512 * config/pa/pa64-hpux.h (FINI_SECTION_ASM_OP): Define to null string.
6513
6514 2016-10-29 Jakub Jelinek <jakub@redhat.com>
6515
6516 PR target/78148
6517 * gimple-ssa-store-merging.c
6518 (imm_store_chain_info::output_merged_store): Use build_aligned_type
6519 instead of SET_TYPE_ALIGN on shared integral type.
6520
6521 2016-10-29 John David Anglin <danglin@gcc.gnu.org>
6522
6523 * config/pa/pa.h (BIGGEST_ALIGNMENT): Adjust comment.
6524 (MALLOC_ABI_ALIGNMENT): Define to 128 on all targets except SOM.
6525 Adjust comment.
6526
6527 2016-10-28 Jeff Law <law@redhat.com>
6528
6529 * config/vax/vax.h (REGNO_REG_CLASS): Access the REGNO argument.
6530 * config/spu/spu.h (REGNO_REG_CLASS): Likewise.
6531
6532 2016-10-28 Eric Botcazou <ebotcazou@adacore.com>
6533
6534 * doc/sourcebuild.texi (Ada Tests): Remove mention of gcc chapter.
6535
6536 2016-10-28 Eric Botcazou <ebotcazou@adacore.com>
6537
6538 * target.def (min_arithmetic_precision): New hook.
6539 * doc/tm.texi.in (Misc): Add TARGET_MIN_ARITHMETIC_PRECISION.
6540 * doc/tm.texi: Regenerate.
6541 * internal-fn.c (expand_arith_overflow): Adjust handling of target
6542 dependent support by means of TARGET_MIN_ARITHMETIC_PRECISION.
6543 * targhooks.c (default_min_arithmetic_precision): New function.
6544 * targhooks.h (default_min_arithmetic_precision): Declare.
6545 * config/sparc/sparc.c (TARGET_MIN_ARITHMETIC_PRECISION): Define.
6546 (sparc_min_arithmetic_precision): New function.
6547
6548 2016-10-28 Segher Boessenkool <segher@kernel.crashing.org>
6549
6550 PR target/71847
6551 * combine.c (change_zero_ext): Handle zero_ext of hard registers.
6552 Swap commutative operands in new RTL if needed. Handle zero_ext
6553 in the set_dest.
6554 (recog_for_combine): Pass *pnewpat to change_zero_ext instead of
6555 PATTERN (insn).
6556
6557 2016-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6558 Kugan Vivekanandarajah <kuganv@linaro.org>
6559 Jim Wilson <jim.wilson@linaro.org>
6560
6561 PR tree-optimization/43721
6562 * target.def: New hook expand_divmod_libfunc.
6563 * doc/tm.texi.in: Add hook for TARGET_EXPAND_DIVMOD_LIBFUNC.
6564 * doc/tm.texi: Regenerate.
6565 * internal-fn.def: Add new entry for DIVMOD ifn.
6566 * internal-fn.c (expand_DIVMOD): New.
6567 * tree-ssa-math-opts.c: Include optabs-libfuncs.h, tree-eh.h,
6568 targhooks.h.
6569 (widen_mul_stats): Add new field divmod_calls_inserted.
6570 (target_supports_divmod_p): New.
6571 (divmod_candidate_p): Likewise.
6572 (convert_to_divmod): Likewise.
6573 (pass_optimize_widening_mul::execute): Call calculate_dominance_info,
6574 renumber_gimple_stmt_uids at beginning of function. Call
6575 convert_to_divmod and record stats for divmod.
6576 * config/arm/arm.c (arm_expand_divmod_libfunc): Override hook
6577 TARGET_EXPAND_DIVMOD_LIBFUNC.
6578 * doc/sourcebuild.texi: Add items for arm_divmod_simode, divmod,
6579 divmod_simode.
6580
6581 2016-10-28 Eric Botcazou <ebotcazou@adacore.com>
6582 Segher Boessenkool <segher@kernel.crashing.org>
6583
6584 * dojump.c (do_jump_by_parts_greater_rtx): Invert probability when
6585 swapping the arms of the branch.
6586 * internal-fn.c (expand_addsub_overflow): Use a straight-line code
6587 sequence for the generic signed-signed-signed case.
6588
6589 2016-10-28 Jeff Law <law@redhat.com>
6590
6591 * config/bfin/bfin.c (bfin_legitimate_address_p): Add missing
6592 fallthru comment.
6593 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Likewise.
6594
6595 2016-10-28 Segher Boessenkool <segher@kernel.crashing.org>
6596
6597 PR rtl-optimization/78029
6598 * function.c (prologue_contains, epilogue_contains): New functions.
6599 (record_prologue_seq, record_epilogue_seq): New functions.
6600 * function.h (prologue_contains, epilogue_contains,
6601 record_prologue_seq, record_epilogue_seq): New declarations.
6602 * sched-deps.c (sched_analyze_insn): Make dependencies to prevent
6603 mixing prologue and epilogue insns.
6604 (init_deps): Initialize the new fields in struct deps_desc.
6605 * sched-int.h (struct deps_desc): New fields last_prologue,
6606 last_epilogue, and last_logue_was_epilogue.
6607 * shrink-wrap.c (emit_common_heads_for_components): Record all
6608 emitted prologue and epilogue insns.
6609 (emit_common_tails_for_components): Ditto.
6610 (insert_prologue_epilogue_for_components): Ditto.
6611
6612 2016-10-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6613
6614 PR middle-end/22141
6615 * Makefile.in (OBJS): Add gimple-ssa-store-merging.o.
6616 * common.opt (fstore-merging): New Optimization option.
6617 * opts.c (default_options_table): Add entry for
6618 OPT_ftree_store_merging.
6619 * fold-const.h (can_native_encode_type_p): Declare prototype.
6620 * fold-const.c (can_native_encode_type_p): Define.
6621 * params.def (PARAM_STORE_MERGING_ALLOW_UNALIGNED): Define.
6622 (PARAM_MAX_STORES_TO_MERGE): Likewise.
6623 * timevar.def (TV_GIMPLE_STORE_MERGING): New timevar.
6624 * passes.def: Insert pass_tree_store_merging.
6625 * tree-pass.h (make_pass_store_merging): Declare extern
6626 prototype.
6627 * gimple-ssa-store-merging.c: New file.
6628 * doc/invoke.texi (Optimization Options): Document
6629 -fstore-merging.
6630 (--param documentation): Document store-merging-allow-unaligned
6631 and max-stores-to-merge.
6632
6633 2016-10-28 Will Schmidt <will_schmidt@vnet.ibm.com>
6634
6635 PR middle-end/72747
6636 * gimplify.c (gimplify_init_constructor): Move emit of constructor
6637 assignment to earlier in the if/else logic.
6638
6639 2016-10-28 Richard Biener <rguenther@suse.de>
6640
6641 PR middle-end/78128
6642 PR middle-end/71002
6643 * fold-const.c (make_bit_field_ref): Only adjust alias set
6644 when the original alias set was zero.
6645
6646 2016-10-28 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6647
6648 * config/s390/s390.c (s390_adjust_loop_scan_osc): New function.
6649 (s390_adjust_loops): New function.
6650 (s390_reorg): Invoke s390_adjust_loops.
6651 * config/s390/s390.md (UNSPEC_OSC_BREAK): New constant.
6652 ("osc_break"): New insn definition.
6653
6654 2016-10-28 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6655
6656 * config/s390/s390.opt: Support alternate cpu level naming (archXX).
6657 * config.gcc: Support alternate archXX cpu levels with
6658 --with-arch= and --with-tune=.
6659 * config/s390/linux.h: Translate new archXX cpu levels to the
6660 original names when calling GAS.
6661 * config/s390/tpf.h: Likewise.
6662 * doc/invoke.texi: Document the alternate cpu level names.
6663
6664 2016-10-28 Jakub Jelinek <jakub@redhat.com>
6665
6666 PR rtl-optimization/77919
6667 * expr.c (expand_expr_real_1) <normal_inner_ref>: Force CONCAT into
6668 MEM if mode1 is not a complex mode.
6669
6670 PR rtl-optimization/78132
6671 * ree.c (combine_reaching_defs): Give up if copy_needed and
6672 !HARD_REGNO_MODE_OK (REGNO (src_reg), dst_mode).
6673
6674 2016-10-27 Eric Botcazou <ebotcazou@adacore.com>
6675
6676 * config/sparc/sparc.md (<*vlop:code><VL:mode>3): Remove leading '*'.
6677
6678 2016-10-27 Michael Meissner <meissner@linux.vnet.ibm.com>
6679
6680 * config/rs6000/constraints.md (wH constraint): Add new
6681 constraints for allowing 32-bit integers (and eventually 8/16-bit
6682 integers) into the vector registers.
6683 (wI constraint): Likewise.
6684 (wJ constraint): Likewise.
6685 (wK constraint): Likewise.
6686 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
6687 -mvsx-small-integer as a default option for ISA 2.07
6688 (i.e. power8).
6689 (POWERPC_MASKS): Likewise.
6690 * config/rs6000/rs6000.opt (-mvsx-small-integer): Add new debug
6691 switch to turn off small integer support in vector registers.
6692 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Eliminate
6693 test for -mupper-regs-di, since it is already done with the
6694 reg_add[mode].scalar_in_vsx_p. Add support for the switch
6695 -mvsx-small-integer.
6696 (rs6000_debug_reg_global): Add support for wH, wI, wJ, and wK
6697 constraints.
6698 (rs6000_setup_reg_addr_masks): Likewise.
6699 (rs6000_init_hard_regno_mode_ok): Likewise.
6700 (rs6000_option_override_internal): Add consistency checks for
6701 -mvsx-small-integer.
6702 (rs6000_secondary_reload_simple_move): SImode is a simple move if
6703 -mvsx-small-integer.
6704 (rs6000_secondary_reload): Use std::swap.
6705 (rs6000_preferred_reload_class): Don't prefer FLOAT_REGS over
6706 VSX_REGS for small integers in vector registers, since there is no
6707 D-FORM address mode for such types.
6708 (rs6000_register_move_cost): Use FIRST_FPR_REGNO instead of 32.
6709 (rs6000_opt_masks): Add -mvsx-small-integer.
6710 * config/rs6000/vsx.md (VSINT_84): Add SImode for small integer
6711 support.
6712 (VSX_EXTRACT_I2): Clone VSX_EXTRACT_I, but drop V4SI since SImode
6713 extracts can be done on ISA 2.07.
6714 (vsx_extract_<mode>): Add support for small integers in vsx
6715 registers.
6716 (vsx_extract_<mode>_p9): Use 'v' instead of VSX_EX, since we no
6717 longer support V4SImode in this pattern.
6718 (vsx_extract_si): New insn to support extraction of SImode in ISA
6719 2.07 using either xxextractuw or vspltw.
6720 (vsx_extract_<mode>_p8): Use 'v' instead of VSX_EX, since we no
6721 longer support V4SImode in this pattern.
6722 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wH, wI,
6723 wJ, and wK constraints.
6724 * config/rs6000/rs6000.md (f32_sv): Use correct instruction for
6725 storing SDmode with VSX instructions.
6726 (zero_extendsi<mode>2): Reorder pattern, so RLDICL comes after the
6727 GPR load and before the FPR and VSX loads. Remove ??, ! from the
6728 constraints. Add MFVSRWZ and XXEXTRACTUW instructions to support
6729 small integers in vector registers.
6730 (extendsi<mode>2): Reorder pattern, so EXTSW comes after the GPR
6731 load and before the FPR and VSX loads. Remove ??, ! from the
6732 constraints. Add VEXTSW2D support for small integers in vector
6733 registers.
6734 (lfiwax): Remove ! constraint. Add VEXTSW2D support for small
6735 integers in vector registers.
6736 (floatsi<mode>2_lfiwax): If -mvsx-small-integer issue a normal
6737 move instead of using an UNSPEC.
6738 (lfiwzx): Remove ! constraint. Add XXEXTRACTUW support for small
6739 integers in vector registers.
6740 (floatunssi<mode>2_lfiwzx): If -mvsx-small-integer issue a normal
6741 move instead of using an UNSPEC.
6742 (movsi_internal1): Add support for -mvsx-small-integer. Align
6743 columns so that it is more readable.
6744 (SImode splitter for ISA 3.0 constants): Add splitter for
6745 -128..127 constants that can easily be constructed on ISA 3.0.
6746 * doc/md.texi (PowerPC Constraints): Document wH, wI, wJ, and wK
6747 constraints.
6748
6749 2016-10-27 Jakub Jelinek <jakub@redhat.com>
6750
6751 PR middle-end/78025
6752 * omp-simd-clone.c (simd_clone_adjust): Handle noreturn declare simd
6753 functions.
6754
6755 2016-10-27 Aldy Hernandez <aldyh@redhat.com>
6756
6757 * builtins.c (expand_builtin_nonlocal_goto): Avoid evaluating
6758 PIC_OFFSET_TABLE_REGNUM twice.
6759
6760 2016-10-27 Bin Cheng <bin.cheng@arm.com>
6761
6762 * match.pd ((convert (op:s (convert@2 @0) (convert?@3 @1)))): Add
6763 support for constant operand for OP.
6764
6765 2016-10-27 Jakub Jelinek <jakub@redhat.com>
6766
6767 * dwarf2out.c (gen_member_die): Only reparent_child instead of
6768 splice_child_die if child doesn't have DW_AT_specification attribute.
6769
6770 2016-10-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
6771
6772 * config/arm/arm.h (TARGET_HAVE_LDREX): Define for ARMv8-M Baseline.
6773 (TARGET_HAVE_LDREXBH): Likewise.
6774 (TARGET_HAVE_LDACQ): Likewise.
6775
6776 2016-10-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
6777
6778 * config/arm/arm.c (arm_split_atomic_op): Add function comment. Add
6779 logic to to decide whether to copy over old value to register for new
6780 value.
6781 * config/arm/sync.md: Add comments explaning why mode and code
6782 attribute are not defined in iterators.md
6783 (thumb1_atomic_op_str): New code attribute.
6784 (thumb1_atomic_newop_str): Likewise.
6785 (thumb1_atomic_fetch_op_str): Likewise.
6786 (thumb1_atomic_fetch_newop_str): Likewise.
6787 (thumb1_atomic_fetch_oldop_str): Likewise.
6788 (atomic_exchange<mode>): Add new ARMv8-M Baseline only alternatives to
6789 mirror the more restrictive constraints of the Thumb-1 insns after
6790 split compared to Thumb-2 counterpart insns.
6791 (atomic_<sync_optab><mode>): Likewise. Add comment to keep constraints
6792 in sync with non atomic version.
6793 (atomic_nand<mode>): Likewise.
6794 (atomic_fetch_<sync_optab><mode>): Likewise.
6795 (atomic_fetch_nand<mode>): Likewise.
6796 (atomic_<sync_optab>_fetch<mode>): Likewise.
6797 (atomic_nand_fetch<mode>): Likewise.
6798 * config/arm/thumb1.md (thumb1_addsi3): Add comment to keep contraint
6799 in sync with atomic version.
6800 (thumb1_subsi3_insn): Likewise.
6801 (thumb1_andsi3_insn): Likewise.
6802 (thumb1_iorsi3_insn): Likewise.
6803 (thumb1_xorsi3_insn): Likewise.
6804
6805 2016-10-27 Nick Clifton <nickc@redhat.com>
6806
6807 * plugin.c (register_plugin_info): Produce an error message if the
6808 plugin is not found in the hash table.
6809
6810 2016-10-27 Bin Cheng <bin.cheng@arm.com>
6811
6812 * match.pd ((convert1 (minmax ((convert2 (x) c)))) -> minmax (x c)):
6813 New pattern.
6814
6815 2016-10-26 Kelvin Nilsen <kelvin@gcc.gnu.org>
6816
6817 PR target/78056
6818 * config/rs6000/rs6000.c (spe_init_builtins): Modify loops to not
6819 define builtin functions from the bdesc_spe_predicates or
6820 bdesc_spe_evsel arrays if the builtin mask is not compatible with
6821 the current compiler configuration.
6822 (paired_init_builtins): Modify loop to not define define builtin
6823 functions from the bdesc_paried_preds array if the builtin mask is
6824 not compatible with the current compiler configuration.
6825 (altivec_init_builtins): Modify loops to not define the
6826 __builtin_altivec_stxvl function nor the builtin functions from
6827 the bdesc_dst or bdesc_altivec_preds, or bdesc_abs arrays if the
6828 builtin mask is not compatible with the current compiler
6829 configuration.
6830
6831 2016-10-26 Jeff Law <law@redhat.com>
6832
6833 * config/sh/sh.c (output_branch): Add missing fallthru comments.
6834 (gen_shl_and): Likewise.
6835 * config/sh/sh.md (movsicc): Add missing fallthru comments.
6836
6837 * config/mips/mips.c (mips16_constant_cost): Add missing
6838 fallthru comments.
6839 (mips16_build_call_stub): Increase buffer size. Adjust
6840 fallthru comment.
6841
6842 2016-10-26 David Malcolm <dmalcolm@redhat.com>
6843
6844 * print-rtl.c (rtx_writer::print_rtx_operand_code_u): Print
6845 INSN_UIDs for all insns in compact mode.
6846 (rtx_writer::print_rtx): Likewise.
6847 * print-rtl.h (rtx_writer::flag_compact): Update comment.
6848 * rtl-tests.c (selftest::test_dumping_insns): Update expected
6849 output to include INSN_UID.
6850 (selftest::test_uncond_jump): Likewise.
6851
6852 2016-10-26 Pat Haugen <pthaugen@us.ibm.com>
6853
6854 * haifa-sched.c (call_used_regs_num): Rename to...
6855 (call_saved_regs_num): ...this.
6856 (fixed_regs_num): New variable.
6857 (sched_pressure_start_bb): Subtract out fixed_regs. Scale call_saved
6858 regs not call_used.
6859 (alloc_global_sched_pressure_data): Compute call_saved and fixed regs.
6860
6861 2016-10-26 David Malcolm <dmalcolm@redhat.com>
6862
6863 * print-rtl-function.c (print_rtx_function): Rewrite in terms of
6864 class rtx_writer.
6865 * print-rtl.c (outfile): Delete global.
6866 (sawclose): Likewise.
6867 (indent): Likewise.
6868 (in_call_function_usage): Likewise.
6869 (flag_compact): Likewise.
6870 (flag_simple): Likewise.
6871 (rtx_writer::rtx_writer): New ctor.
6872 (print_rtx_operand_code_0): Convert to...
6873 (rtx_writer::print_rtx_operand_code_0): ...this.
6874 (print_rtx_operand_code_e): Convert to...
6875 (rtx_writer::print_rtx_operand_code_e): ...this.
6876 (print_rtx_operand_codes_E_and_V): Convert to...
6877 (rtx_writer::print_rtx_operand_codes_E_and_V): ...this.
6878 (print_rtx_operand_code_i): Convert to...
6879 (rtx_writer::print_rtx_operand_code_i): ...this.
6880 (print_rtx_operand_code_r): Convert to...
6881 (rtx_writer::print_rtx_operand_code_r): ...this.
6882 (print_rtx_operand_code_u): Convert to...
6883 (rtx_writer::print_rtx_operand_code_u): ...this.
6884 (print_rtx_operand): Convert to...
6885 (rtx_writer::print_rtx_operand): ...this.
6886 (print_rtx): Convert to...
6887 (rtx_writer::print_rtx): ...this.
6888 (print_inline_rtx): Rewrite in terms of class rtx_writer.
6889 (debug_rtx): Likewise.
6890 (print_rtl): Convert to...
6891 (rtx_writer::print_rtl): ...this.
6892 (print_rtl): Reimplement in terms of class rtx_writer.
6893 (print_rtl_single): Rewrite in terms of class rtx_writer.
6894 (print_rtl_single_with_indent): Convert to..
6895 (rtx_writer::print_rtl_single_with_indent): ...this.
6896 (print_simple_rtl): Rewrite in terms of class rtx_writer.
6897 * print-rtl.h (flag_compact): Delete decl.
6898 (class rtx_writer): New class.
6899 * rtl-tests.c (selftest::assert_rtl_dump_eq): Rewrite in terms of
6900 class rtx_writer.
6901
6902 2016-10-26 Jeff Law <law@redhat.com>
6903
6904 * config/microblaze/microblaze.c (tls_mentioned_p): Avoid
6905 fallthru.
6906
6907 * config/arc/arc.c (acr_print_operand): Adjust fallthru comment.
6908 (check_if_valid_sleep_operand): Add missing fallthru comment.
6909 (arc_register_move_cost): Increase buffer size.
6910 * config/arc/arc.md (cbranch4si_scratch): Add missing fallthru
6911 comment.
6912 * config/arc/predicates.md (move_str_operand): Avoid fallthru.
6913
6914 * config/cr16/cr16.c (cr16_print_operand): Add missing fallthru
6915 comment. Add gcc_unreachable for path that should never happen.
6916
6917 * config/epiphany/epiphany.c (epiphany_print_operand): Adjust
6918 fallthru comment.
6919
6920 2016-10-26 Jakub Jelinek <jakub@redhat.com>
6921 Martin Liska <mliska@suse.cz>
6922
6923 PR fortran/77973
6924 * gimplify.c (gimplify_adjust_omp_clauses_1): For all added map
6925 clauses with OMP_CLAUSE_SIZE being a decl, call omp_notice_variable
6926 on outer context if any.
6927
6928 2016-10-26 Jakub Jelinek <jakub@redhat.com>
6929
6930 * gen-pass-instances.awk (adjust_linenos): Increment pass_lines[p]
6931 by increment rather than double it.
6932 (insert_remove_pass): Strip leading whitespace from args[3]. Don't
6933 emit a space before args[4].
6934 (END): Don't emit a space before with_arg.
6935
6936 2016-10-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
6937
6938 * config/arm/sync.md (atomic_compare_and_swap<mode>_1): Add new ARMv8-M
6939 Baseline only alternatives to (i) hold store atomic success value in a
6940 return register rather than a scratch register, (ii) use a low register
6941 for it and to (iii) ensure the cbranchsi insn generated by the split
6942 respect the constraints of Thumb-1 cbranchsi4_insn and
6943 cbranchsi4_scratch.
6944 * config/arm/thumb1.md (cbranchsi4_insn): Add comment to indicate
6945 constraints must match those in atomic_compare_and_swap.
6946 (cbranchsi4_scratch): Likewise.
6947
6948 2016-10-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
6949
6950 * config/arm/arm.c (arm_expand_compare_and_swap): Add new bdst local
6951 variable. Add the new parameter to the insn generator. Set that
6952 parameter to be CC flag for 32-bit targets, bval otherwise. Set the
6953 return value from the negation of that parameter for Thumb-1, keeping
6954 the logic unchanged otherwise except for using bdst as the destination
6955 register of the compare_and_swap insn.
6956 (arm_split_compare_and_swap): Add explanation about how is the value
6957 returned to the function comment. Rename scratch variable to
6958 neg_bval. Adapt initialization of variables holding operands to the
6959 new operand numbers. Use return register to hold result of store
6960 exclusive for Thumb-1, scratch register otherwise. Construct the
6961 appropriate cbranch for Thumb-1 targets, keeping the logic unchanged
6962 for 32-bit targets. Guard Z flag setting to restrict to 32bit targets.
6963 Use gen_cbranchsi4 rather than hand-written conditional branch to loop
6964 for strongly ordered compare_and_swap.
6965 * config/arm/predicates.md (cc_register_operand): New predicate.
6966 * config/arm/sync.md (atomic_compare_and_swap<mode>_1): Use a
6967 match_operand with the new predicate to accept either the CC flag or a
6968 destination register for the boolean return value, restricting it to
6969 CC flag only via constraint. Adapt operand numbers accordingly.
6970
6971 2016-10-26 Jeff Law <law@redhat.com>
6972
6973 * config/fr30/fr30.c (fr30_print_operand): Adjust fallthru comment.
6974
6975 * config/frv/frv.c (comparison_string): Do not fall through after
6976 an error.
6977
6978 * config/iq2000/iq2000.c (iq2000_function_arg): Adjust fallthru
6979 comment.
6980 (expand_one_builtin): Add missing break.
6981
6982 * config/m32c/m32c.c (encode_pattern_1): Add fallthru comment.
6983 (m32c_legitimate_address_p): Likewise.
6984
6985 * config/m32r/m32r.c (m32r_print_operand): Adjust fallthru comment.
6986
6987 * config/mcore/mcore.c (mcore_gen_compare): Adjust fallthru comments.
6988
6989 * config/microblaze/microblaze.c (microblaze_function_arg): Adjust
6990 fallthru comment.
6991
6992 * config/msp430/msp430.c (msp430_legitimate_address_p): Adjust
6993 fallthru comment.
6994
6995 * config/nios2/nios2.c (nios2_rtx_costs): Avoid fallthru.
6996
6997 * config/rl78/rl78.c (rl78_calculate_death_notes): Add fallthru
6998 comment.
6999 (rl78_asm_ctor_dtor): Increase buffer size.
7000
7001 * config/stormy16/stormy16.c (xstormy16_asm_output_destrutor): Increase
7002 buffer size.
7003 (xstormy16_asm_output_constructor): Likewise.
7004
7005 * config/pa/pa.c (pa_asm_output_mi_thunk): Increase buffer
7006 size.
7007
7008 * config/h8300/h8300.c (h8300_print_operand): Adjust FALLTHRU
7009 comment to silence warning.
7010
7011 * config/spu/spu.c (spu_sched_reorder): Add missing fallthru comment.
7012 (spu_legitimate_address_p): Fix logic error and add missing fallthru
7013 comment.
7014
7015 2016-10-26 Michael Matz <matz@suse.de>
7016
7017 PR tree-optimization/78060
7018 PR tree-optimization/78061
7019 PR tree-optimization/78088
7020 * tree-ssa-loop-split.c (easy_exit_values): New function.
7021 (tree_ssa_split_loops): Use it.
7022 (compute_new_first_bound): Change order of operations,
7023 fix invalid use of types.
7024
7025 2016-10-26 Georg-Johann Lay <avr@gjlay.de>
7026
7027 gen-pass-instances.awk is sensitive to the order in which
7028 passes are added; passes that appear later have to be added first.
7029
7030 PR target/71676
7031 PR target/71678
7032 * config/avr/avr-passes.def: Swap order of directives for
7033 gen-pass-instances.awk.
7034
7035 2016-10-25 Jeff Law <law@redhat.com>
7036
7037 * config/vax/vax.c (vad_address_cost_1): Add missing FALLTHRU comment.
7038 (vax_notice_update_cc): Likewise.
7039
7040 2016-10-25 Eric Botcazou <ebotcazou@adacore.com>
7041
7042 * config.gcc (sparc*-*-solaris2*): Adjust.
7043 (sparc64-*-linux*): Likewise.
7044 * config/sparc/default-64.h: Rename to...
7045 * config/sparc/default64.h: ...this.
7046 * config/sparc/sparc.c (sparc_option_override): Replace TARGET_64BIT
7047 with TARGET_ARCH64.
7048 (sparc_mangle_type): Replace !TARGET_64BIT with TARGET_ARCH32.
7049 * config/sparc/sparc.h: Minor tweaks.
7050 * config/sparc/sparc.md: Replace !TARGET_64BIT and !TARGET_ARCH64 with
7051 TARGET_ARCH32 throughout. Minor various tweaks throughout.
7052
7053 2016-10-25 David Malcolm <dmalcolm@redhat.com>
7054
7055 * input.c (fcache::file_patch): Add comment about lifetime.
7056 (selftest::cpp_reader_ptr): New class.
7057 (selftest::lexer_test): Convert m_parser from cpp_reader *
7058 to a cpp_reader_ptr, and move m_tempfile to after it.
7059 (selftest::lexer_test::lexer_test): Update for above reordering.
7060 (lexer_test::~lexer_test): Move cleanup of m_parser to
7061 cpp_reader_ptr's dtor.
7062
7063 2016-10-25 David Malcolm <dmalcolm@redhat.com>
7064
7065 * toplev.c (toplev::main): Remove call to
7066 location_adhoc_data_fini.
7067
7068 2016-10-25 Eric Botcazou <ebotcazou@adacore.com>
7069
7070 * tree.h (wi::fits_to_tree_p): Accept only 0 and 1 for boolean types.
7071 * tree.c (int_fits_type_p): Likewise. Adjust head comment.
7072
7073 2016-10-25 David Malcolm <dmalcolm@redhat.com>
7074
7075 * ggc-tests.c (forcibly_ggc_collect): Rename to...
7076 (selftest::forcibly_ggc_collect): ...this, and remove "static".
7077 (test_basic_struct): Update for above renaming.
7078 (test_length): Likewise.
7079 (test_union): Likewise.
7080 (test_finalization): Likewise.
7081 (test_deletable_global): Likewise.
7082 (test_inheritance): Likewise.
7083 (test_chain_next): Likewise.
7084 (test_user_struct): Likewise.
7085 (test_tree_marking): Likewise.
7086 * selftest-run-tests.c (selftest::run_tests): Call
7087 selftest::forcibly_ggc_collect at the end of the selftests.
7088 * selftest.h (selftest::forcibly_ggc_collect): New decl.
7089
7090 2016-10-25 Jakub Jelinek <jakub@redhat.com>
7091
7092 PR target/78102
7093 * optabs.def (vcondeq_optab, vec_cmpeq_optab): New optabs.
7094 * optabs.c (expand_vec_cond_expr): For comparison codes
7095 EQ_EXPR and NE_EXPR, attempt vcondeq_optab as fallback.
7096 (expand_vec_cmp_expr): For comparison codes
7097 EQ_EXPR and NE_EXPR, attempt vec_cmpeq_optab as fallback.
7098 * optabs-tree.h (expand_vec_cmp_expr_p, expand_vec_cond_expr_p):
7099 Add enum tree_code argument.
7100 * optabs-query.h (get_vec_cmp_eq_icode, get_vcond_eq_icode): New
7101 inline functions.
7102 * optabs-tree.c (expand_vec_cmp_expr_p): Add CODE argument. For
7103 CODE EQ_EXPR or NE_EXPR, attempt to use vec_cmpeq_optab as
7104 fallback.
7105 (expand_vec_cond_expr_p): Add CODE argument. For CODE EQ_EXPR or
7106 NE_EXPR, attempt to use vcondeq_optab as fallback.
7107 * tree-vect-generic.c (expand_vector_comparison,
7108 expand_vector_divmod, expand_vector_condition): Adjust
7109 expand_vec_cmp_expr_p and expand_vec_cond_expr_p callers.
7110 * tree-vect-stmts.c (vectorizable_condition,
7111 vectorizable_comparison): Likewise.
7112 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern,
7113 check_bool_pattern, search_type_for_mask_1): Likewise.
7114 * expr.c (do_store_flag): Likewise.
7115 * doc/md.texi (@code{vec_cmpeq@var{m}@var{n}},
7116 @code{vcondeq@var{m}@var{n}}): Document.
7117 * config/i386/sse.md (vec_cmpeqv2div2di, vcondeq<VI8F_128:mode>v2di):
7118 New expanders.
7119
7120 2016-10-25 Jeff Law <law@redhat.com>
7121
7122 * config/v850/v850.c (v850_handle_data_area_attribute): Fix fallthru
7123 comment.
7124 (v850_output_aligned_bss): Add missing break.
7125
7126 * config/m68k/m68k.c (m68k_get_reloc_decoration): Add gcc_unreachable.
7127
7128 2016-10-25 Martin Liska <mliska@suse.cz>
7129
7130 PR sanitizer/78106
7131 * sanopt.c (imm_dom_path_with_freeing_call): Handle gasm
7132 statements as they can also contain possibly a freeing call.
7133
7134 2016-10-25 H.J. Lu <hongjiu.lu@intel.com>
7135 Martin Liska <mliska@suse.cz>
7136
7137 PR ipa/78099
7138 * common.opt: Mark flag_ipa_icf_variables as Optimization flag.
7139 * ipa-icf.c (sem_function::get_hash): Add target optimization
7140 node to hash.
7141
7142 2016-10-25 Wilco Dijkstra <wdijkstr@arm.com>
7143
7144 PR target/78041
7145 * config/arm/neon.md (ashldi3_neon): Add "r 0 i" and "&r r i" variants.
7146 Remove partial overlap check for shift by 1.
7147 (ashldi3_neon): Likewise.
7148
7149 2016-10-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
7150
7151 * config/arm/constraints.md (Q constraint): Document its use for
7152 Thumb-1.
7153 (Pf constraint): New constraint for relaxed, consume or relaxed memory
7154 models.
7155 * config/arm/sync.md (atomic_load<mode>): Add new ARMv8-M Baseline only
7156 alternatives to allow any register when memory model matches Pf and
7157 thus lda is used, but only low registers otherwise. Use unpredicated
7158 output template for Thumb-1 targets.
7159 (atomic_store<mode>): Likewise for stl.
7160 (arm_load_exclusive<mode>): Add new ARMv8-M Baseline only alternative
7161 whose output template does not have predication.
7162 (arm_load_acquire_exclusive<mode>): Likewise.
7163 (arm_load_exclusivesi): Likewise.
7164 (arm_load_acquire_exclusivesi): Likewise.
7165 (arm_store_release_exclusive<mode>): Likewise.
7166 (arm_store_exclusive<mode>): Use unpredicated output template for
7167 Thumb-1 targets.
7168
7169 2016-10-25 Jakub Jelinek <jakub@redhat.com>
7170
7171 * internal-fn.def (LAUNDER): New internal function.
7172 * internal-fn.c (expand_LAUNDER): New function.
7173
7174 2016-10-25 Georg-Johann Lay <avr@gjlay.de>
7175 Pitchumani Sivanupandi <pitchumani.sivanupandi@microchip.com>
7176
7177 New avr target pass to work around performance loss by PR fix.
7178
7179 PR target/71676
7180 PR target/71678
7181 * config/avr/avr.md (casesi_<mode>_sequence) [qi,hi]: New insn.
7182 (*cmp<mode>) [qi,qq,uqq,hi,hq,uhq,ha,uha]: Rename to cmp<mode>3.
7183 * config/avr/predicates.md (extend_operator): New.
7184 * config/avr/avr-passes.def (avr_pass_casesi): Register new pass.
7185 * config/avr/avr-protos.h (avr_casei_sequence_check_operands)
7186 (make_avr_pass_casesi): New prototypes.
7187 * config/avr/avr.c (print-rtl.h): Include it.
7188 (pass_data avr_pass_data_casesi): Data for new pass.
7189 (avr_pass_casesi): New class implementing rtl_opt_pass .avr-casesi.
7190 (make_avr_pass_casesi, avr_parallel_insn_from_insns)
7191 (avr_is_casesi_sequence, avr_casei_sequence_check_operands)
7192 (avr_optimize_casesi): New functions.
7193
7194 2016-10-25 Georg-Johann Lay <avr@gjlay.de>
7195 Pitchumani Sivanupandi <pitchumani.sivanupandi@microchip.com>
7196
7197 PR target/71676
7198 PR target/71678
7199 * config/avr/avr.md (casesi): Rewrite avoiding subregs of SI.
7200
7201 2016-10-24 Jakub Jelinek <jakub@redhat.com>
7202
7203 * dwarf2out.c (gen_subprogram_die): Add DW_AT_reference or
7204 DW_AT_rvalue_reference attributes.
7205
7206 2016-10-24 Bernd Edlinger <bernd.edlinger@hotmail.de>
7207
7208 * doc/invoke.text (Wint-in-bool-context): Update documentation.
7209 * value-prof.c (stringop_block_profile): Fix a warning.
7210
7211 2016-10-24 Martin Sebor <msebor@redhat.com>
7212
7213 PR middle-end/77735
7214 * builtins.c (string_length): New function.
7215 (c_strlen): Use string_length. Correctly handle wide strings.
7216 * gimple-ssa-sprintf.c (target_max_value, target_size_max): New
7217 functions.
7218 (target_int_max): Call target_max_value.
7219 (format_result::knownrange): New data member.
7220 (fmtresult::fmtresult): Define default constructor.
7221 (format_integer): Use it and set format_result::knownrange.
7222 Handle global constants.
7223 (format_floating_max): Add third argument.
7224 (format_floating): Recompute maximum value for %a for each argument.
7225 (get_string_length): Use fmtresult default ctor.
7226 (format_string): Set format_result::knownrange.
7227 (format_directive): Check format_result::knownrange.
7228 (add_bytes): Same. Correct caret placement in diagnostics.
7229 (pass_sprintf_length::compute_format_length): Set
7230 format_result::knownrange.
7231 (pass_sprintf_length::handle_gimple_call): Use target_size_max.
7232
7233 2016-10-24 Jakub Jelinek <jakub@redhat.com>
7234
7235 * config/i386/i386.c (ix86_in_large_data_p, ix86_expand_builtin): Use
7236 VAR_P (x) instead of TREE_CODE (x) == VAR_DECL.
7237
7238 2016-10-24 Ximin Luo <infinity0@pwned.gg>
7239
7240 PR debug/77985
7241 * dwarf2out.c (file_table_relative_p): Remove.
7242 (gen_compile_unit_die, dwarf2out_early_finish): Emit DW_AT_comp_dir
7243 also for absolute paths.
7244 * doc/tm.texi: Update.
7245 * doc/tm.texi.in (SDB and DWARF) <TARGET_FORCE_AT_COMP_DIR>: Remove.
7246 * target.def (force_at_comp_dir): Remove hook.
7247 * config/darwin.h (TARGET_FORCE_AT_COMP_DIR): Remove define.
7248
7249 2016-10-24 Richard Biener <rguenther@suse.de>
7250
7251 * tree-vrp.c (evrp_dom_walker::before_dom_children): Ignore
7252 backedges when identifying the single predecessor to take
7253 conditional info from. Use SCEV to get at ranges for loop IVs.
7254 * lto-streamer-out.c (lto_write_mode_table): CSE inner mode to
7255 avoid false warning.
7256
7257 2016-10-24 Georg-Johann Lay <avr@gjlay.de>
7258
7259 PR target/78093
7260 * doc/extend.texi (AVR Variable Attributes) [absdata]: Document it.
7261 * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_ABSDATA): New macro.
7262 (avr_address_tiny_absdata_p): New static function.
7263 (avr_legitimate_address_p, avr_legitimize_address) [AVR_TINY]: Use
7264 it to determine validity of constant addresses.
7265 (avr_attribute_table) [absdata]: New variable attribute...
7266 (avr_handle_absdata_attribute): ...and handler.
7267 (avr_decl_absdata_p): New static function.
7268 (avr_encode_section_info) [AVR_TINY]: Use it to add flag
7269 AVR_SYMBOL_FLAG_TINY_ABSDATA to respective symbols_refs.
7270 (avr_address_cost) [AVR_TINY]: absdata addresses cost 2.
7271
7272 2016-10-24 Richard Biener <rguenther@suse.de>
7273
7274 PR tree-optimization/78076
7275 * tree-ssa-loop-split.c (tree_ssa_split_loops): Reset aux
7276 also on the loop tree root.
7277
7278 2016-10-24 Jakub Jelinek <jakub@redhat.com>
7279
7280 * config/i386/i386.c (ix86_fold_builtin): Handle
7281 IX86_BUILTIN_BEXTR{,I}{32,64}, IX86_BUILTIN_BZHI{32,64},
7282 IX86_BUILTIN_PDEP{32,64} and IX86_BUILTIN_PEXT{32,64}.
7283 (ix86_gimple_fold_builtin): Handle IX86_BUILTIN_BZHI{32,64},
7284 IX86_BUILTIN_PDEP{32,64} and IX86_BUILTIN_PEXT{32,64}.
7285
7286 2016-10-24 Martin Liska <mliska@suse.cz>
7287
7288 PR sanitizer/77966
7289 * opts.c (finish_options): Skip conditionally.
7290
7291 2016-10-23 Martin Sebor <msebor@redhat.com>
7292
7293 PR target/77837
7294 * config/rs6000/linux.h (TARGET_PRINTF_POINTER_FORMAT): Define.
7295 * config/rs6000/linux64.h (TARGET_PRINTF_POINTER_FORMAT): Likewise.
7296
7297 2016-10-23 Eric Botcazou <ebotcazou@adacore.com>
7298
7299 * config/sparc/sparc.md (cpu_feature): Minor tweak.
7300 (enabled): Likewise.
7301 (movsi_insn, movdi_insn_sp32, movdi_insn_sp64, movsf_insn,
7302 movdf_insn_sp32, movdf_insn_sp64, zero_extendsidi2_insn_sp64,
7303 sign_extendsidi2_insn, mov<VM32:mode>_insn, mov<VM64:mode>_insn_sp64,
7304 mov<VM64:mode>_insn_sp32, not_<code><mode>, nand<mode>_vis,
7305 <code>_not1<mode>_vi, <code>_not2<mode>_vis, one_cmpl<mode>2,
7306 fcmp<code><GCM:gcm_name>, pdistn<mode>_vis): Likewise.
7307
7308 2016-10-23 Eric Botcazou <ebotcazou@adacore.com>
7309
7310 * config/sparc/sparc-c.c (sparc_target_macros): Replace TARGET_64BIT
7311 with TARGET_ARCH64. Define __VIS to 0x400 if TARGET_VIS4.
7312
7313 2016-10-21 Andrew Pinski <apinski@cavium.com>
7314
7315 * config/aarch64/aarch64-cores.def: Rewrite so IMP and PART are
7316 integer constants.
7317 * config/aarch64/driver-aarch64.c (struct aarch64_core_data): Change
7318 implementer_id to unsigned char.
7319 Change part_no to unsigned int.
7320 (AARCH64_BIG_LITTLE): New define.
7321 (INVALID_IMP): New define.
7322 (INVALID_CORE): New define.
7323 (cpu_data): Change the last element's implementer_id and part_no to
7324 integers.
7325 (valid_bL_string_p): Rewrite to ..
7326 (valid_bL_core_p): this for integers instead of strings.
7327 (parse_field): New function.
7328 (contains_string_p): Rewrite to ...
7329 (contains_core_p): this for integers and only for the part_no.
7330 (host_detect_local_cpu): Rewrite handling of implementation and
7331 par num to be integers; simplifying the code.
7332
7333 2016-10-21 Kugan Vivekanandarajah <kuganv@linaro.org>
7334
7335 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Create nonzero
7336 value range for pointers in more cases.
7337
7338 2016-10-21 Wilco Dijkstra <wdijkstr@arm.com>
7339
7340 * config/aarch64/aarch64.c (aarch64_add_constant_internal):
7341 Add extra argument to allow emitting the move immediate.
7342 Use add/sub with positive immediate.
7343 (aarch64_add_constant): Add inline function.
7344 (aarch64_add_sp): Likewise.
7345 (aarch64_sub_sp): Likewise.
7346 (aarch64_expand_prologue): Call aarch64_sub_sp.
7347 (aarch64_expand_epilogue): Call aarch64_add_sp.
7348 Decide when to leave out move.
7349 (aarch64_output_mi_thunk): Call aarch64_add_constant.
7350
7351 2016-10-21 Wilco Dijkstra <wdijkstr@arm.com>
7352
7353 * config/aarch64/aarch64.c (aarch64_layout_frame):
7354 Align FP callee-saves.
7355
7356 2016-10-21 Jakub Jelinek <jakub@redhat.com>
7357
7358 * config/i386/adxintrin.h (_subborrow_u32, _addcarry_u32,
7359 _addcarryx_u32, _subborrow_u64, _addcarry_u64, _addcarryx_u64):
7360 Formatting fixes.
7361 * config/i386/rdseedintrin.h (_rdseed16_step, _rdseed32_step,
7362 _rdseed64_step): Likewise.
7363 * config/i386/tbmintrin.h (__bextri_u32): Likewise.
7364
7365 PR target/78057
7366 * config/i386/i386.c: Include fold-const-call.h, tree-vrp.h
7367 and tree-ssanames.h.
7368 (ix86_fold_builtin): Fold IX86_BUILTIN_[LT]ZCNT{16,32,64}
7369 with INTEGER_CST argument.
7370 (ix86_gimple_fold_builtin): New function.
7371 (TARGET_GIMPLE_FOLD_BUILTIN): Define.
7372
7373 * dwarf2out.c (ranges_table): Change into vec<dw_ranges, va_gc> *.
7374 (ranges_by_label): Change into vec<dw_ranges_by_label, va_gc> *.
7375 (ranges_table_allocated, ranges_table_in_use,
7376 ranges_by_label_allocated, ranges_by_label_in_use,
7377 RANGES_TABLE_INCREMENT): Removed.
7378 (add_ranges_num): Use vec_safe_push into ranges_table.
7379 (add_ranges_by_labels): Use vec_safe_push into ranges_by_label.
7380 (output_ranges): Adjust for ranges_table and ranges_by_label
7381 conversion from arrays to vec.
7382 (add_high_low_attributes, dwarf2out_finish): Adjust for range_table
7383 conversion from arrays to vec.
7384 (dwarf2out_c_finalize): Don't clear ranges_table_allocated,
7385 ranges_table_in_use, ranges_by_label_allocated and
7386 ranges_by_label_in_use. Set ranges_by_label to NULL instead of 0.
7387
7388 * dwarf2out.c (gen_variable_die): Emit DW_AT_const_expr attribute
7389 if needed. Re-add origin_die variable and its initialization.
7390
7391 * gimplify.c (gimplify_bind_expr): Handle oacc_declare_returns
7392 even for -fstack-reuse=none, or for volatile vars etc.
7393
7394 2016-10-21 David Malcolm <dmalcolm@redhat.com>
7395
7396 * print-rtl-function.c (flag_compact): Move extern decl to...
7397 * print-rtl.h (flag_compact): ...here.
7398 * rtl-tests.c (selftests::assert_rtl_dump_eq): New function.
7399 (ASSERT_RTL_DUMP_EQ): New macro.
7400 (selftest::test_dumping_regs): New function.
7401 (selftest::test_dumping_insns): New function.
7402 (selftest::test_uncond_jump): Add uses of ASSERT_RTL_DUMP_EQ on
7403 the insns.
7404 (selftest::rtl_tests_c_tests): Call the new test functions.
7405
7406 2016-10-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7407
7408 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Adjust.
7409 (outgoing_edges_match): Likewise.
7410 (try_crossjump_to_edge): Likewise.
7411 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
7412 (rtl_tidy_fallthru_edge): Likewise.
7413 * rtl.h (tablejump_p): Adjust prototype.
7414 * rtlanal.c (tablejump_p): Return the label as a rtx_insn *.
7415
7416 2016-10-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7417
7418 * rtl.h (label_ref_label): New function.
7419 (set_label_ref_label): New function.
7420 (LABEL_REF_LABEL): Delete.
7421 * alias.c (rtx_equal_for_memref_p): Adjust.
7422 * cfgbuild.c (make_edges): Likewise.
7423 (purge_dead_tablejump_edges): Likewise.
7424 * cfgexpand.c (convert_debug_memory_address): Likewise.
7425 * cfgrtl.c (patch_jump_insn): Likewise.
7426 * combine.c (distribute_notes): Likewise.
7427 * cse.c (hash_rtx_cb): Likewise.
7428 (exp_equiv_p): Likewise.
7429 (fold_rtx): Likewise.
7430 (check_for_label_ref): Likewise.
7431 * cselib.c (rtx_equal_for_cselib_1): Likewise.
7432 (cselib_hash_rtx): Likewise.
7433 * emit-rtl.c (mark_label_nuses): Likewise.
7434 * explow.c (convert_memory_address_addr_space_1): Likewise.
7435 * final.c (output_asm_label): Likewise.
7436 (output_addr_const): Likewise.
7437 * gcse.c (add_label_notes): Likewise.
7438 * genconfig.c (walk_insn_part): Likewise.
7439 * genrecog.c (validate_pattern): Likewise.
7440 * ifcvt.c (cond_exec_get_condition): Likewise.
7441 (noce_emit_store_flag): Likewise.
7442 (noce_get_alt_condition): Likewise.
7443 (noce_get_condition): Likewise.
7444 * jump.c (maybe_propagate_label_ref): Likewise.
7445 (mark_jump_label_1): Likewise.
7446 (redirect_exp_1): Likewise.
7447 (rtx_renumbered_equal_p): Likewise.
7448 * lra-constraints.c (operands_match_p): Likewise.
7449 * print-rtl.c (print_value): Likewise.
7450 * reload.c (find_reloads): Likewise.
7451 * reload1.c (set_label_offsets): Likewise.
7452 * reorg.c (get_branch_condition): Likewise.
7453 * rtl-tests.c (test_uncond_jump): Likewise.
7454 * rtl.c (rtx_equal_p_cb): Likewise.
7455 (rtx_equal_p): Likewise.
7456 * rtlanal.c (reg_mentioned_p): Likewise.
7457 (rtx_referenced_p): Likewise.
7458 (get_condition): Likewise.
7459 * varasm.c (const_hash_1): Likewise.
7460 (compare_constant): Likewise.
7461 (const_rtx_hash_1): Likewise.
7462 (output_constant_pool_1): Likewise.
7463
7464 2016-10-21 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
7465
7466 PR target/71627
7467 * reload.c (find_valid_class_1): Allow regclass if atleast one
7468 regno in regclass is ok. Compute and use rclass size based on
7469 actually available regnos for mode in rclass.
7470
7471 2016-10-21 Eric Botcazou <ebotcazou@adacore.com>
7472
7473 * config/sparc/sparc-modes.def (CCV): New.
7474 (CCXV): Likewise.
7475 * config/sparc/predicates.md (v_comparison_operator): New.
7476 (icc_comparison_operator): Add support for CCV/CCXV.
7477 (xcc_comparison_operator): Likewise.
7478 * config/sparc/sparc.c (output_cbranch): Likewise.
7479 (sparc_print_operand): Likewise.
7480 * config/sparc/sparc.md (UNSPEC_{ADD,SUB,NEG}V): New constants.
7481 (uaddvdi4): New expander.
7482 (addvdi4): Likewise.
7483 (uaddvdi4_sp32): New instruction.
7484 (addvdi4_sp32): Likewise.
7485 (uaddvsi4): New expander.
7486 (addvsi4): Likewise.
7487 (cmp_ccc_plus_sltu_set): New instruction.
7488 (cmp_ccv_plus): Likewise.
7489 (cmp_ccxv_plus): Likewise.
7490 (cmp_ccv_plus_set): Likewise.
7491 (cmp_ccxv_plus_set): Likewise.
7492 (cmp_ccv_plus_sltu_set): Likewise.
7493 (uaddvdi4): New expander.
7494 (subvdi4): Likewise.
7495 (usubdi4_sp32): New instruction.
7496 (subvdi4_sp32): Likewise.
7497 (usubvsi4): New expander.
7498 (subvsi4): Likewise.
7499 (cmpsi_minus_sltu_set): New instruction.
7500 (cmp_ccv_minus): Likewise.
7501 (cmp_ccxv_minus): Likewise.
7502 (cmp_ccv_minus_set): Likewise.
7503 (cmp_ccxv_minus_set): Likewise.
7504 (cmp_ccv_minus_sltu_set): Likewise.
7505 (unegvdi3): New expander.
7506 (negvdi3): Likewise.
7507 (unegdi3_sp32): New instruction.
7508 (negvdi3_sp32): Likewise.
7509 (unegvsi3): New expander.
7510 (negvsi3): Likewise.
7511 (cmp_ccc_neg_sltu_set): New instruction.
7512 (cmp_ccv_neg): Likewise.
7513 (cmp_ccxv_neg): Likewise.
7514 (cmp_ccv_neg_set): Likewise.
7515 (cmp_ccxv_neg_set): Likewise.
7516 (cmp_ccv_neg_sltu_set): Likewise.
7517
7518 * tree-ssa-loop-split.c: Remove trailing spaces.
7519 * match.pd: Likewise.
7520
7521 2016-10-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7522
7523 PR rtl-optimization/78038
7524 * ree.c (get_defs): Return NULL if a defining insn for REG cannot
7525 be deduced to set REG through the RTL structure.
7526 (make_defs_and_copies_lists): Return false on a failing get_defs call.
7527
7528 2016-10-21 Richard Biener <rguenther@suse.de>
7529
7530 PR tree-optimization/78051
7531 * tree-vrp.c (evrp_dom_walker::before_dom_children): Update stmt
7532 and mark replaced if folding did something.
7533
7534 2016-10-21 David Edelsohn <dje.gcc@gmail.com>
7535
7536 * config/rs6000/rs6000.c (rs6000_assemble_visibility): Swap "internal"
7537 and "protected" in visibility types.
7538 (rs6000_xcoff_declare_function_name): Fix formatting.
7539 (rs6000_xcoff_declare_object_name): Fix formatting.
7540
7541 2016-10-21 Uros Bizjak <ubizjak@gmail.com>
7542
7543 * config/i386/i386.c (ix86_fold_builtin): Handle IX86_BUILTIN_INFQ
7544 and IX86_BUILTIN_HUGE_VALQ here ...
7545 (ix86_expand_builtin): ... not here.
7546
7547 2016-10-20 Jakub Jelinek <jakub@redhat.com>
7548
7549 * doc/gty.texi (for_user): Use @item next to @findex.
7550
7551 2016-10-20 Uros Bizjak <ubizjak@gmail.com>
7552
7553 PR target/78037
7554 * config/i386/bmiintrin.h (__tzcnt_u16): Call __builtin_ia32_tzcnt_u16.
7555 (__tzcnt_u32, _tzcnt_u32): Call __builtin_ia32_tzcnt_u32.
7556 (__tzcnt_u64, _tzcnt_u64): Call __builtin_ia32_tzcnt_u64.
7557 * config/i386/lzcntintrin.h (__lzcnt_u16): Call
7558 __builtin_ia32_lzcnt_u16.
7559 (__lzcnt_u32, _lzcnt_u32): Call __builtin_ia32_lzcnt_u32.
7560 (__lzcnt_u64, _lzcnt_u64): Call __builtin_ia32_lzcnt_u64.
7561 * config/i386/i386.md (UNSPEC_LZCNT, UNSPEC_TZCNT): New unspecs.
7562 (ctz<mode>2, *ctz<mode>2): Use SWI48 mode iterator.
7563 (bmi_tzcnt_<mode>): New expander.
7564 (*bmi_tzcnt_<mode>_falsedep_1): New define_insn_and_split pattern.
7565 (*bmi_tzcnt_<mode>_falsedep, *bmi_tzcnt_<mode>): New insn patterns.
7566 (clz<mode>2_lzcnt, *clz<mode>2_lzcnt): Use SWI48 mode iterator.
7567 (lzcnt_<mode>): New expander.
7568 (*lzcnt_<mode>_falsedep_1): New define_insn_and_split pattern.
7569 (*lzcnt_<mode>_falsedep, *lzcnt_<mode>): New insn patterns.
7570 * config/i386/i386-builtin-types.def (UINT_FTYPE_UINT): New.
7571 (UINT64_FTYPE_UINT64): New.
7572 * config/i386/i386-builtin.def (__builtin_clzs): Remove description.
7573 (__builtin_ia32_lzcnt_u16): New description.
7574 (__builtin_ia32_lzcnt_u32): Ditto.
7575 (__builtin_ia32_lzcnt_u64): Ditto.
7576 (__builtin_ctzs): Remove description.
7577 (__builtin_ia32_tzcnt_u16): New description.
7578 (__builtin_ia32_tzcnt_u32): Ditto.
7579 (__builtin_ia32_tzcnt_u64): Ditto.
7580 * config/i386/i386.c (ix86_expand_args_builtin): Handle
7581 UINT_FTYPE_UINT and UINT64_FTYPE_UINT64.
7582
7583 2016-10-20 Martin Liska <mliska@suse.cz>
7584
7585 PR lto/78049
7586 * lto-streamer-in.c (fixup_call_stmt_edges_1): Replace value
7587 comparison with STMT_UID_NOT_IN_RANGE.
7588 (fixup_call_stmt_edges): Do not fixup edges of a thunk in
7589 LTRANS.
7590
7591 2016-10-20 Eric Botcazou <ebotcazou@adacore.com>
7592
7593 * compare-elim.c (conforming_compare): Accept UNSPECs.
7594 (find_comparison_dom_walker::before_dom_children): Deal with
7595 instructions both using and killing the flags register.
7596 (equivalent_reg_at_start): New function extracted from...
7597 (try_eliminate_compare): ...here. Use it and add support for
7598 registers and UNSPECs as second operand of the compare.
7599 * config/visium/visium-modes.def (CCV): New.
7600 * config/visium/predicates.md (visium_v_comparison_operator): New.
7601 (visium_branch_operator): Deal with CCV mode.
7602 * config/visium/visium.c (visium_select_cc_mode): Likewise.
7603 (output_cbranch): Likewise.
7604 * config/visium/visium.md (UNSPEC_{ADD,SUB,NEG}V): New constants.
7605 (uaddv<mode>4): New expander.
7606 (addv<mode>4): Likewise.
7607 (add<mode>3_insn_set_carry): New instruction.
7608 (add<mode>3_insn_set_overflow): Likewise.
7609 (addsi3_insn_set_overflow): Likewise.
7610 (usubv<mode>4): New expander.
7611 (subv<mode>4): Likewise.
7612 (sub<mode>3_insn_set_carry): New instruction.
7613 (sub<mode>3_insn_set_overflow): Likewise.
7614 (subsi3_insn_set_overflow): Likewise.
7615 (unegv<mode>3): New expander.
7616 (negv<mode>3): Likewise.
7617 (neg<mode>2_insn_set_overflow): New instruction.
7618 (addv_tst<mode>): Likewise.
7619 (subv_tst<mode>): Likewise.
7620 (negv_tst<mode>): Likewise.
7621 (cbranch<mode>4_addv_insn): New splitter and instruction.
7622 (cbranch<mode>4_subv_insn): Likewise.
7623 (cbranch<mode>4_negv_insn): Likewise.
7624
7625 2016-10-20 Richard Biener <rguenther@suse.de>
7626
7627 * tree-ssa-alias.c (ptrs_compare_unequal): Remove code duplication.
7628 Handle decls possibly not bound.
7629 * tree-ssa-structalias.c (get_constraint_for_ssa_var): Add
7630 nothing_id for decls that might not be bound if we are interested
7631 for the address.
7632 (get_constraint_for_component_ref): Deal with that.
7633
7634 2016-10-20 Michael Matz <matz@suse.de>
7635
7636 Loop splitting.
7637 * common.opt (-fsplit-loops): New flag.
7638 * passes.def (pass_loop_split): Add.
7639 * opts.c (default_options_table): Add OPT_fsplit_loops entry at -O3.
7640 (enable_fdo_optimizations): Add loop splitting.
7641 * timevar.def (TV_LOOP_SPLIT): Add.
7642 * tree-pass.h (make_pass_loop_split): Declare.
7643 * tree-ssa-loop-manip.h (rewrite_into_loop_closed_ssa_1): Declare.
7644 * tree-ssa-loop-unswitch.c: Include tree-ssa-loop-manip.h,
7645 * tree-ssa-loop-split.c: New file.
7646 * Makefile.in (OBJS): Add tree-ssa-loop-split.o.
7647 * doc/invoke.texi (fsplit-loops): Document.
7648 * doc/passes.texi (Loop optimization): Add paragraph about loop
7649 splitting.
7650
7651 2016-10-20 Richard Biener <rguenther@suse.de>
7652
7653 * cgraphunit.c (analyze_functions): Set node->definition to
7654 false to signal symbol removal to debug_hooks->late_global_decl.
7655 * ipa.c (symbol_table::remove_unreachable_nodes): When not in
7656 WPA signal symbol removal to the debuginfo machinery.
7657 * dwarf2out.c (dwarf2out_late_global_decl): Instead of
7658 using early_finised to guard the we're called for symbol
7659 removal case look at the symtabs definition flag.
7660 (gen_variable_die): Remove redundant check.
7661
7662 2016-10-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7663
7664 * config/s390/s390.md ("prefetch"): Add fallthrough comment.
7665
7666 2016-10-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7667
7668 PR tree-optimization/53979
7669 * match.pd ((a ^ b) | a -> a | b): New pattern.
7670
7671 2016-10-19 John David Anglin <danglin@gcc.gnu.org>
7672
7673 * config/pa/pa64-hpux.h (PA_INIT_FRAME_DUMMY_ASM_OP): Move to
7674 config/pa/pa64-hpux-lib.h.
7675 (PA_CRTBEGIN_HACK): Likewise.
7676 (DTOR_LIST_BEGIN): Likewise.
7677
7678 2016-10-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
7679
7680 * config/arm/arm.c (arm_emit_coreregs_64bit_shift): Clear the result
7681 register only if "in" and "out" are different registers.
7682
7683 2016-10-19 Eric Botcazou <ebotcazou@adacore.com>
7684
7685 * omp-low.c (pass_oacc_device_lower::gate): New method.
7686 (execute): Always call execute_oacc_device_lower.
7687
7688 2016-10-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7689
7690 PR tree-optimization/77916
7691 PR tree-optimization/77937
7692 * gimple-ssa-strength-reduction.c (analyze_increments): Remove
7693 stopgap fix.
7694 (insert_initializers): Requirement of initializer for -1 should be
7695 based on pointer-typedness of the candidate basis.
7696
7697 2016-10-19 Bin Cheng <bin.cheng@arm.com>
7698
7699 PR tree-optimization/78005
7700 * tree-vect-loop-manip.c (vect_gen_prolog_loop_niters): Compute
7701 upper (included) bound for niters of prolog loop.
7702 (vect_gen_scalar_loop_niters): Change parameter VF to VFM1.
7703 Compute niters of scalar loop above which vectorized loop is
7704 preferred, as well as the upper (included) bound for the niters.
7705 (vect_do_peeling): Record niter bound for loops accordingly.
7706
7707 2016-10-19 Thomas Schwinge <thomas@codesourcery.com>
7708
7709 PR lto/77458
7710 * tree-core.h (enum tree_index): Put the complex types after their
7711 component types.
7712 * tree-streamer.c (verify_common_node_recorded): New function.
7713 (preload_common_nodes) <TREE_CODE (node) == COMPLEX_TYPE>: Use it.
7714
7715 2016-10-19 Martin Liska <mliska@suse.cz>
7716
7717 * cgraph.h (cgraph_edge::binds_to_current_def_p):
7718 Replace NULL with false as a return value.
7719
7720 2016-10-19 Thomas Schwinge <thomas@codesourcery.com>
7721
7722 PR tree-optimization/78024
7723 * omp-low.c (oacc_loop_discovery): Call clear_bb_flags before, and
7724 don't clear BB_VISITED after processing.
7725
7726 2016-10-19 Richard Biener <rguenther@suse.de>
7727
7728 * domwalk.c (dom_walker::walk): Use RPO order.
7729
7730 2016-10-19 Richard Biener <rguenther@suse.de>
7731
7732 * tree-vrp.c (evrp_dom_walker::evrp_dom_walker): Initialize
7733 stmts_to_remove.
7734 (evrp_dom_walker::~evrp_dom_walker): Free it.
7735 (evrp_dom_walker::stmts_to_remove): Add.
7736 (evrp_dom_walker::before_dom_children): Mark PHIs and stmts
7737 whose output we fully propagate for removal. Propagate
7738 into BB destination PHI arguments.
7739 (execute_early_vrp): Remove queued stmts. Dump value ranges
7740 before stmt removal.
7741
7742 2016-10-18 Aldy Hernandez <aldyh@redhat.com>
7743
7744 * Makefile.in (OBJS): Add gimple-ssa-warn-alloca.o.
7745 * passes.def: Add two instances of pass_walloca.
7746 * tree-pass.h (make_pass_walloca): New.
7747 * gimple-ssa-warn-alloca.c: New file.
7748 * doc/invoke.texi: Document -Walloca, -Walloca-larger-than=, and
7749 -Wvla-larger-than= options.
7750
7751 2016-10-18 Thomas Schwinge <thomas@codesourcery.com>
7752
7753 * cfg.c (clear_bb_flags): Use FOR_ALL_BB_FN.
7754 * config/nvptx/nvptx.c (nvptx_find_sese): Likewise.
7755
7756 2016-10-18 Kelvin Nilsen <kelvin@gcc.gnu.org>
7757
7758 * config/rs6000/altivec.h (vec_xl_len): New macro.
7759 (vec_xst_len): New macro.
7760 (vec_cmpnez): New macro.
7761 (vec_cntlz_lsbb): New macro.
7762 (vec_cnttz_lsbb): New macro.
7763 (vec_xlx): New macro.
7764 (vec_xrx): New macro.
7765 (vec_all_nez): New C++ predicate template.
7766 (vec_any_eqz): New C++ predicate template.
7767 (vec_all_ne): Revised C++ predicate template under _ARCH_PWR9
7768 conditional compilation.
7769 (vec_any_eq): Revised C++ predicate template under _ARCH_PWR9
7770 conditional compilation.
7771 (vec_all_nez): New macro.
7772 (vec_any_eqz): New macro.
7773 (vec_all_ne): Revised macro under _ARCH_PWR9 conditional
7774 compilation.
7775 (vec_any_eq): Revised macro under _ARCH_PWR9 conditional
7776 compilation.
7777 * config/rs6000/vector.md (VI): Moved this mode iterator
7778 definition from altivec.md to vector.md.
7779 (UNSPEC_NEZ_P): New value.
7780 (vector_ne_<mode>_p): New expansion for implementation of
7781 vec_all_ne and vec_any_eq built-in functions.
7782 (vector_nez_<mode>_p): New expansion for implementation of
7783 vec_all_nez and vec_any_eqz built-in functions.
7784 (vector_ne_v2di_p): New expansion for implementation of vec_all_ne
7785 and vec_any_eq built-in function.
7786 (cr6_test_for_zero): New commentary to explain this expansion.
7787 (cr6_test_for_zero_reverse): New commentary to explain this expansion.
7788 (cr6_test_for_lt): New commentary to explain this expansion.
7789 (cr6_test_for_lt_reverse): New commentary to explain this
7790 expansion.
7791 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
7792 overloaded function prototypes for vec_all_ne, vec_all_nez,
7793 vec_any_eq, vec_any_eqz, vec_cmpnez, vec_cntlz_lsbb,
7794 vec_cnttz_lsbb, vec_xl_len, vec_xst_len, vec_xlx, and vec_xrx
7795 built-in functions.
7796 (altivec_resolve_overloaded_builtin): Modify the handling of
7797 ALTIVEC_BUILTIN_VEC_CMPNE to use the Power9 instructions when
7798 the compiler is configured to support TARGET_P9_VECTOR.
7799 * config/rs6000/rs6000-builtin.def (BU_ALTIVEC_P): Add commentary
7800 to explain the special processing that is given to predicate
7801 built-ins introduced using this macro.
7802 (BU_ALTIVEC_OVERLOAD_P): Add commentary to alert maintainers to
7803 the special processing given to predicate built-ins introduced
7804 using this macro.
7805 (BU_VSX_P): Likewise.
7806 (BU_P8V_AV_P): Likewise.
7807 (BU_P9V_AV_P): Likewise.
7808 (BU_P9V_AV_X): New macro.
7809 (BU_P9V_64BIT_AV_X): New macro.
7810 (BU_P9V_VSX_3): New macro.
7811 (BU_P9V_OVERLOAD_P): New macro.
7812 (LXVL): New BU_P9V_64BIT_VSX_2.
7813 (VEXTUBLX): New BU_P9V_AV_2.
7814 (VEXTUBRX): Likewise.
7815 (VEXTUHLX): Likewise.
7816 (VEXTUHRX): Likewise.
7817 (VEXTUWLX): Likewise.
7818 (VEXTUWRX): Likewise.
7819 (STXVL): New BU_P9V_64BIT_AV_X.
7820 (VCLZLSBB): New BU_P9V_AV_1.
7821 (VCTZLSBB): Likewise.
7822 (CMPNEB): New BU_P9V_AV_2.
7823 (CMPNEH): Likewise.
7824 (CMPNEW): Likewise.
7825 (CMPNEF): Likewise.
7826 (CMPNED): Likewise.
7827 (VCMPNEB_P): New BU_P9V_AV_P.
7828 (VCMPNEH_P): Likewise.
7829 (VCMPNEW_P): Likewise.
7830 (VCMPNED_P): Likewise.
7831 (VCMPNEFP_P): Likewise.
7832 (VCMPNEDP_P): Likewise.
7833 (CMPNEZB): New BU_P9V_AV_2.
7834 (CMPNEZH): Likewise.
7835 (CMPNEZW): Likewise.
7836 (VCMPNEZB_P): New BU_P9V_AV_P.
7837 (VCMPNEZH_P): Likewise.
7838 (VCMPNEZW_P): Likewise.
7839 (LXVL): New BU_P9V_OVERLOAD_2.
7840 (STXVL): New BU_P9V_OVERLOAD_3.
7841 (VEXTULX): New BU_P9V_OVERLOAD_2.
7842 (VEXTURX): Likewise.
7843 (CMPNEZ): Likewise.
7844 (VCMPNEZ_P): New BU_P9V_OVERLOAD_P.
7845 (VCMPNE_P): Likewise.
7846 (VCLZLSBB): New BU_P9V_OVERLOAD_1.
7847 (VCTZLSBB): Likewise.
7848 * config/rs6000/rs6000.c (altivec_expand_predicate_builtin): Add
7849 comment to explain mode used for scratch register.
7850 (altivec_expand_stxvl_builtin): New function.
7851 (altivec_expand_builtin): Add case for new constant P9V_BUILTIN_STXVL.
7852 (altivec_init_builtins): Add initialized variable
7853 void_ftype_v16qi_pvoid_long and use this type to define the
7854 built-in function __builtin_altivec_stxvl.
7855 * config/rs6000/vsx.md (UNSPEC_LXVL): New value.
7856 (UNSPEC_STXVL): New value.
7857 (UNSPEC_VCLZLSBB): New value.
7858 (UNSPEC_VCTZLSBB): New value.
7859 (UNSPEC_VEXTUBLX): New value.
7860 (UNSPEC_VEXTUHLX): New value.
7861 (UNSPEC_VEXTUWLX): New value.
7862 (UNSPEC_VEXTUBRX): New value.
7863 (UNSPEC_VEXTUHRX): New value.
7864 (UNSPEC_VEXTUWRX): New value.
7865 (UNSPEC_VCMPNEB): New value.
7866 (UNSPEC_VCMPNEZB): New value.
7867 (UNSPEC_VCMPNEH): New value.
7868 (UNSPEC_VCMPNEZH): New value.
7869 (UNSPEC_VCMPNEW): New value.
7870 (UNSPEC_VCMPNEZW): New value.
7871 (*vsx_ne_<mode>_p): New insn for vector test all not equal with
7872 vector of integer modes.
7873 (*vsx_ne_<mode>_p): New insn for vector test all not equal with
7874 vector of float or double modes.
7875 (*vector_nez_<mode>_p): New insn for vector test all not equal or
7876 zero.
7877 (lxvl): New expand for load VSX vector with length.
7878 (*lxvl): New insn for load VSX vector with length.
7879 (stxvl): New expand for store VSX vector with length.
7880 (*stxvl): New insn for store VSX vector with length.
7881 (vcmpneb): New insn for vector of byte compare not equal.
7882 (vcmpnezb): New insn for vector of byte compare not equal or zero.
7883 (vcmpneh): New insn for vector of half word compare not equal.
7884 (vcmpnezh): New insn for vector of half word compare not equal or
7885 zero.
7886 (vcmpnew): New insn for vector of word compare not equal.
7887 (vcmpne<VSs>): New insn for vector of float or double compare not
7888 equal.
7889 (vcmpnezw): New insn for vector of word compare not equal or zero.
7890 (vclzlsbb): New insn for vector count leading zero
7891 least-significant bits byte.
7892 (vctzlsbb): New insn for vector count trailing zero least
7893 signficant bits byte.
7894 (vextublx): New insn for vector extract unsigned byte left
7895 indexed.
7896 (vextubrx): New insn for vector extract unsigned byte right
7897 indexed.
7898 (vextuhlx): New insn for vector extract unsigned half word left
7899 indexed.
7900 (vextuhrx): New insn for vector extract unsigned half word right
7901 indexed.
7902 (vextuwlx): New insn for vector extract unsigned word left
7903 indexed.
7904 (vextuwrx): New insn for vector extract unsigned word right
7905 indexed.
7906 * config/rs6000/rs6000.h (RS6000_BTC_CONST): Enhance comment to
7907 clarify intent of this constant.
7908 * config/rs6000/altivec.md (VI): Move this mode iterator to vsx.md.
7909 * doc/extend.texi (PowerPC Altivec Built-in Functions): Add
7910 documentation for vec_all_nez, vec_any_eqz, vec_cmpnez,
7911 vec_cntlz_lsbb, vec_cnttz_lsbb, vec_xl_len, vec_xst_len, vec_xlx,
7912 and vec_xrx functions.
7913
7914 2016-10-18 Andrew Pinski <apinski@cavium.com>
7915
7916 PR tree-opt/65950
7917 * predict.c (is_exit_with_zero_arg): New function.
7918 (tree_bb_level_predictions): Don't consider paths leading to exit(0)
7919 as nottaken.
7920
7921 2016-10-18 Uros Bizjak <ubizjak@gmail.com>
7922
7923 PR target/77991
7924 * config/i386/i386.c (legitimize_tls_address)
7925 <case TLS_MODEL_INITIAL_EXEC>: For TARGET_64BIT || TARGET_ANY_GNU_TLS
7926 convert dest to Pmode if different than Pmode.
7927
7928 2016-10-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7929
7930 PR tree-optimization/77916
7931 * gimple-ssa-strength-reduction.c (analyze_increments): Reinstate
7932 stopgap fix, as pointers with -1 increment are still broken.
7933
7934 2016-10-18 David Edelsohn <dje.gcc@gmail.com>
7935
7936 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Move storage
7937 mapping class decoration from here...
7938 (rs6000_xcoff_encode_section): ...to here.
7939
7940 (rs6000_savres_strategy) [AIX,ELFv2]: Inline FPR save and restore
7941 if shrink-wrapping and optimizing for speed.
7942
7943 2016-10-18 Richard Biener <rguenther@suse.de>
7944
7945 * tree-vrp.c (evrp_dom_walker::before_dom_children): Handle
7946 not visited but non-executable predecessors. Return taken edge.
7947 Simplify conditions and refactor propagation vs. folding step.
7948
7949 2016-10-18 Segher Boessenkool <segher@kernel.crashing.org>
7950
7951 * config/rs6000/rs6000.c (rs6000_savres_strategy): Do not select
7952 {SAVE,REST}_MULTIPLE if shrink-wrapping separate components.
7953 (rs6000_get_separate_components): Assert we do not have those
7954 strategies selected.
7955
7956 2016-10-18 Richard Biener <rguenther@suse.de>
7957
7958 * tree-ssa-propagate.h (substitute_and_fold): Adjust prototype.
7959 * tree-ssa-propagate.c (ssa_prop_fini): Remove final BB_VISITED
7960 clearing.
7961 (substitute_and_fold_dom_walker): Adjust constructor.
7962 (substitute_and_fold_dom_walker::before_dom_children): Remove
7963 do_dce flag and handling (always true).
7964 (substitute_and_fold): Likewise.
7965 * tree-vrp.c (vrp_finalize): Adjust.
7966 (execute_early_vrp): Remove final BB_VISITED clearing.
7967 * tree-ssa-ccp.c (ccp_finalize): Adjust.
7968 * tree-ssa-copy.c (fini_copy_prop): Likewise.
7969 * ira.c (ira): Call clear_bb_flags.
7970
7971 2016-10-18 Richard Biener <rguenther@suse.de>
7972
7973 * genmatch.c (dt_operand::gen_gimple_expr): Use get_name to
7974 get at the operand to look at with TREE_OPERAND for generic
7975 sub-nodes.
7976
7977 2016-10-18 David Malcolm <dmalcolm@redhat.com>
7978
7979 * genattrtab.c (attr_string): Use rtx_reader_ptr for call to
7980 copy_md_ptr_loc.
7981 (gen_attr): Use rtx_reader_ptr for lookup_enum_type call.
7982 (write_test_expr): Use rtx_reader_ptr for calls to
7983 fprint_c_condition.
7984 (write_attr_value): Likewise.
7985 * genconditions.c (write_one_condition): Use rtx_reader_ptr for
7986 call to print_md_ptr_loc.
7987 (write_one_condition): Likewise for calls to print_c_condition.
7988 * genconstants.c: Include "statistics.h" and "vec.h".
7989 (main): Update for conversion to member functions.
7990 * genemit.c (emit_c_code): Use rtx_reader_ptr for
7991 call to print_md_ptr_loc.
7992 * genenums.c: Include "statistics.h" and "vec.h".
7993 (main): Update for conversion of traverse_enum_types to a method.
7994 * genmddeps.c: Include "statistics.h" and "vec.h".
7995 * genoutput.c (process_template): Use rtx_reader_ptr for call to
7996 print_md_ptr_loc.
7997 * genpreds.c (write_predicate_subfunction): Likewise.
7998 (write_predicate_expr): Likewise for calls to print_c_condition.
7999 * genrecog.c (print_test): Likewise.
8000 * gensupport.c (process_rtx): Likewise for calls to
8001 copy_md_ptr_loc and join_c_conditions.
8002 (alter_test_for_insn): Likewise for call to join_c_conditions.
8003 (process_substs_on_one_elem): Likewise.
8004 (gen_mnemonic_setattr): Update for move of string_obstack to a
8005 field of rtx_reader.
8006 (mnemonic_htab_callback): Likewise. Fix formatting.
8007 (gen_mnemonic_attr): Likewise.
8008 * gentarget-def.c (def_target_insn): Use rtx_reader_ptr for calls
8009 to print_c_condition.
8010 * read-md.c: Include "statistics.h" and "vec.h".
8011 (string_obstack): Convert this global to field "m_string_obstack"
8012 of class rtx_reader.
8013 (ptr_locs): Likewise, as "m_ptr_locs".
8014 (ptr_loc_obstack): Likewise, as "m_ptr_loc_obstack".
8015 (joined_conditions): Likewise, as "m_joined_conditions".
8016 (joined_conditions_obstack): Likewise, as "m_joined_conditions_obstack".
8017 (md_constants): Likewise, as "m_md_constants".
8018 (enum_types): Likewise, as "m_enum_types".
8019 (set_md_ptr_loc): Convert to...
8020 (rtx_reader::set_md_ptr_loc): ...member function.
8021 (get_md_ptr_loc): Convert to...
8022 (rtx_reader::get_md_ptr_loc): ...member function.
8023 (copy_md_ptr_loc): Convert to...
8024 (rtx_reader::copy_md_ptr_loc): ...member function.
8025 (fprint_md_ptr_loc): Convert to...
8026 (rtx_reader::fprint_md_ptr_loc): ...member function.
8027 (print_md_ptr_loc): Convert to...
8028 (rtx_reader::print_md_ptr_loc): ...member function.
8029 (join_c_conditions): Convert to...
8030 (rtx_reader::join_c_conditions): ...member function.
8031 (fprint_c_condition): Convert to...
8032 (rtx_reader::fprint_c_condition): ...member function.
8033 (print_c_condition): Convert to...
8034 (rtx_reader::print_c_condition): ...member function.
8035 (read_name): Convert to...
8036 (rtx_reader::read_name): ...member function.
8037 (read_escape): Convert to...
8038 (rtx_reader::read_escape): ...member function.
8039 (read_quoted_string): Convert to...
8040 (rtx_reader::read_quoted_string): ...member function.
8041 (read_braced_string): Convert to...
8042 (rtx_reader::read_braced_string): ...member function.
8043 (read_string): Convert to...
8044 (rtx_reader::read_string): ...member function.
8045 (read_skip_construct): Convert to...
8046 (rtx_reader::read_skip_construct): ...member function.
8047 (handle_constants): Convert to...
8048 (rtx_reader::handle_constants): ...member function.
8049 (traverse_md_constants): Convert to...
8050 (rtx_reader::traverse_md_constants): ...member function.
8051 (handle_enum): Convert to...
8052 (rtx_reader::handle_enum): ...member function.
8053 (lookup_enum_type): Convert to...
8054 (rtx_reader::lookup_enum_type): ...member function.
8055 (traverse_enum_types): Convert to...
8056 (rtx_reader::traverse_enum_types): ...member function.
8057 (rtx_reader::rtx_reader): Move initializations
8058 of various former global data from rtx_reader::read_md_files to
8059 here, as fields, along with the call to unlock_std_streams.
8060 (rtx_reader::~rtx_reader): Clean up m_base_dir, and clean up
8061 the new fields.
8062 (rtx_reader::read_md_files): Move initializations of various
8063 global data from here to the ctor.
8064 * read-md.h (read_name): Convert to...
8065 (rtx_reader::read_name): ...member function.
8066 (rtx_reader::read_escape): New method decl.
8067 (read_quoted_string): Convert to...
8068 (rtx_reader::read_quoted_string): ...member function.
8069 (rtx_reader::read_braced_string): New method decl.
8070 (read_string): Convert to...
8071 (rtx_reader::read_string): ...member function.
8072 (rtx_reader::read_skip_construct): New method decl.
8073 (rtx_reader::set_md_ptr_loc): New method decl.
8074 (rtx_reader::get_md_ptr_loc): New method decl.
8075 (copy_md_ptr_loc): Convert to...
8076 (rtx_reader::copy_md_ptr_loc): ...member function.
8077 (fprint_md_ptr_loc): Convert to...
8078 (rtx_reader::fprint_md_ptr_loc): ...member function.
8079 (print_md_ptr_loc): Convert to...
8080 (rtx_reader::print_md_ptr_loc): ...member function.
8081 (rtx_reader::lookup_enum_type): New method decl.
8082 (rtx_reader::traverse_enum_types): New method decl.
8083 (rtx_reader::handle_constants): New method decl.
8084 (traverse_md_constants): Convert to...
8085 (rtx_reader::traverse_md_constants): ...member function.
8086 (rtx_reader::handle_enum): New method decl.
8087 (rtx_reader::join_c_conditions): New method decl.
8088 (fprint_c_condition): Convert to...
8089 (rtx_reader::fprint_c_condition): ...member function.
8090 (print_c_condition): Convert to...
8091 (rtx_reader::print_c_condition): ...member function.
8092 (rtx_reader::apply_iterator_to_string): New method decl.
8093 (rtx_reader::copy_rtx_for_iterators): New method decl.
8094 (rtx_reader::read_conditions): New method decl.
8095 (rtx_reader::record_potential_iterator_use): New method decl.
8096 (rtx_reader::read_mapping): New method decl.
8097 (rtx_reader::read_rtx): New method decl.
8098 (rtx_reader::read_rtx_code): New method decl.
8099 (rtx_reader::read_rtx_operand): New method decl.
8100 (rtx_reader::read_nested_rtx): New method decl.
8101 (rtx_reader::read_rtx_variadic): New method decl.
8102 (rtx_reader::get_string_obstack): New method.
8103 (rtx_reader::get_md_constants): New method.
8104 (string_obstack): Convert global variable decl to...
8105 (rtx_reader::m_string_obstack): ...this new field.
8106 (rtx_reader::m_ptr_locs): New field.
8107 (rtx_reader::m_ptr_loc_obstack): New field.
8108 (rtx_reader::m_joined_conditions): New field.
8109 (rtx_reader::m_joined_conditions_obstack): New field.
8110 (rtx_reader::m_md_constants): New field.
8111 (rtx_reader::m_enum_types): New field.
8112 * read-rtl.c (apply_iterator_to_string): Convert to...
8113 (rtx_reader::apply_iterator_to_string): ...member function.
8114 (copy_rtx_for_iterators): Convert to...
8115 (rtx_reader::copy_rtx_for_iterators): ...member function.
8116 (add_condition_to_string): Use rtx_reader_ptr for
8117 calls join_c_conditions.
8118 (apply_iterators): Use rtx_reader_ptr for calls to
8119 join_c_conditions and copy_rtx_for_iterators.
8120 (read_conditions): Convert to...
8121 (rtx_reader::read_conditions): ...member function.
8122 (record_potential_iterator_use): Convert to...
8123 (rtx_reader::record_potential_iterator_use): ...member function.
8124 (read_mapping): Convert to...
8125 (rtx_reader::read_mapping): ...member function.
8126 (read_subst_mapping): Use rtx_reader_ptr for read_string call.
8127 (read_rtx): Convert to...
8128 (rtx_reader::read_rtx): ...member function.
8129 (read_rtx_code): Convert to...
8130 (rtx_reader::read_rtx_code): ...member function.
8131 (read_rtx_operand): Convert to...
8132 (rtx_reader::read_rtx_operand): ...member function. Update for move
8133 of string_obstack to a field.
8134 (read_nested_rtx): Convert to..
8135 (rtx_reader::read_nested_rtx): ...member function.
8136 (read_rtx_variadic): Convert to..
8137 (rtx_reader::read_rtx_variadic): ...member function.
8138
8139 2016-10-18 Kugan Vivekanandarajah <kuganv@linaro.org>
8140
8141 * tree-vrp.c (get_value_range): Check get_ptr_nonnull.
8142
8143 2016-10-18 Kugan Vivekanandarajah <kuganv@linaro.org>
8144
8145 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Set value range
8146 for pointer type too.
8147 (ipcp_update_vr): set_ptr_nonnull for pointer.
8148
8149 2016-10-18 Kugan Vivekanandarajah <kuganv@linaro.org>
8150
8151 * tree-ssa-alias.h (pt_solution_singleton_or_null_p): Renamed from
8152 pt_solution_singleton_p.
8153 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Use renamed
8154 pt_solution_singleton_or_null_p from pt_solution_singleton_p.
8155 * tree-ssa-structalias.c (find_what_p_points_to): Preserve
8156 pointer nonnull computed by VRP.
8157 Also Conservatively set pt.null to 1.
8158 (pt_solution_reset): Conservatively set pt.null to 1.
8159 (pt_solution_singleton_or_null_p): Renamed from
8160 pt_solution_singleton_p.
8161 * tree-ssanames.h (set_ptr_nonnull): Declare.
8162 (get_ptr_nonnull): Likewise.
8163 * tree-ssanames.c (set_ptr_nonnull): New.
8164 (get_ptr_nonnull): Likewise.
8165 * tree-vrp.c (vrp_finalize): Set ptr that are nonnull.
8166 (evrp_dom_walker::before_dom_children): Likewise.
8167
8168 2016-10-17 Eric Botcazou <ebotcazou@adacore.com>
8169
8170 * config/i386/i386.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to...
8171 * config/i386/i386.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ...here.
8172 * config/ia64/ia64.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to...
8173 * config/ia64/ia64.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ...here.
8174 * config/rs6000/rs6000.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to.
8175 * config/rs6000/rs6000.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ...here.
8176 (rs6000_option_override_internal): Clear it if ABI_AIX.
8177 * config/sparc/sparc.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to...
8178 * config/sparc/sparc.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ... here.
8179
8180 2016-10-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8181
8182 * gimple-ssa-strength-reduction.c (record_increment): Remove
8183 garbage comment.
8184
8185 2016-10-17 Eric Botcazou <ebotcazou@adacore.com>
8186
8187 * expmed.c (expand_shift_1): Add MAY_FAIL parameter and do not assert
8188 that the result is non-zero if it is true.
8189 (maybe_expand_shift): New wrapper around expand_shift_1.
8190 (emit_store_flag): Call maybe_expand_shift in lieu of expand_shift.
8191
8192 2016-10-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8193
8194 PR tree-optimization/77916
8195 * gimple-ssa-strength-reduction.c (create_add_on_incoming_edge):
8196 Don't allow a MINUS_EXPR for pointer arithmetic for either known
8197 or unknown strides.
8198 (record_increment): Increments of -1 for unknown strides just use
8199 a multiply initializer like other negative values.
8200 (analyze_increments): Remove stopgap solution for -1 increment
8201 applied to pointer arithmetic.
8202
8203 2016-10-17 Yuri Rumyantsev <ysrumyan@gmail.com>
8204
8205 * dominance.c (dom_info::dom_info): Add new constructor for region
8206 which is vector of basic blocks.
8207 (dom_init): New method to initialize members common for both
8208 constructors.
8209 (dom_info::dom_info): Invoke dom_init for partial initialization.
8210 (dom_info::get_idom): Add check to corner cases on basic blocks which
8211 are not in region.
8212 (dom_info::calc_dfs_tree): Check M_FAKE_EXIT_EDGE instead of M_REVERSE
8213 to detect unreachable bbs.
8214 (dom_info::calc_idoms): Likewise.
8215 (compute_dom_fast_query_in_region): New function.
8216 (calculate_dominance_info_for_region): Likewise.
8217 (free_dominance_info_for_region): Likewise.
8218 * dominance.h: Add prototypes for introduced region-based functions
8219 * tree-if-conv.c (build_region): New function.
8220 (if_convertible_loop_p_1): Invoke local version of post-dominators
8221 calculation before basic block predication with subsequent freeing
8222 post-dominator info.
8223 (tree_if_conversion): Remove free of post-dominator info
8224 (pass_if_conversion::execute): Delete detection of infinite loops
8225 and fake edges to exit block since post-dominator calculation is
8226 performed per if-converted loop only.
8227
8228 2016-10-17 Bernd Edlinger <bernd.edlinger@hotmail.de>
8229
8230 PR target/77308
8231 * config/arm/arm.c (arm_emit_coreregs_64bit_shift): Clear the result
8232 register explicitly.
8233 * config/arm/arm.md (ashldi3, ashrdi3, lshrdi3): Don't FAIL if
8234 optimizing for size.
8235
8236 2016-10-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8237
8238 * config/aarch64/aarch64.c: Delete inclusion of
8239 cortex-a57-fma-steering.h.
8240 (aarch64_override_options): Delete call
8241 to aarch64_register_fma_steering.
8242 * config/aarch64/aarch64-protos.h (make_pass_fma_steering): Declare.
8243 * config/aarch64/cortex-a57-fma-steering.h: Delete.
8244 * config/aarch64/aarch64-passes.def: New file.
8245 * config/aarch64/cortex-a57-fma-steering.c
8246 (aarch64_register_fma_steering): Delete definition.
8247 (make_pass_fma_steering): Remove static qualifier.
8248 * config/aarch64/t-aarch64 (PASSES_EXTRA): New directive.
8249 (cortex-a57-fma-steering.o): Remove dependency on
8250 cortex-a57-fma-steering.h.
8251
8252 2016-10-17 Eric Botcazou <ebotcazou@adacore.com>
8253
8254 * explow.c (validize_mem): Do not modify the argument in-place.
8255
8256 2016-10-17 Thomas Schwinge <thomas@codesourcery.com>
8257
8258 * tree-streamer.c (record_common_node): Explicitly list expected
8259 tree codes.
8260
8261 2016-10-17 Richard Biener <rguenther@suse.de>
8262
8263 PR tree-optimization/77988
8264 * tree-vrp.c (remove_range_assertions): Use replace_uses_by.
8265
8266 2016-10-17 Marek Polacek <polacek@redhat.com>
8267
8268 * Makefile.in (C_COMMON_OBJS): Add c-family/c-attribs.o.
8269
8270 2016-10-17 Richard Biener <rguenther@suse.de>
8271
8272 * bb-reorder.c (reorder_basic_blocks_simple): Clear BB_VISITED
8273 before using it.
8274
8275 2016-10-17 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8276
8277 PR tree-optimization/71636
8278 * match.pd (x & ((1 << b) - 1) -> x & ~(~0 << b)): New pattern.
8279
8280 2016-10-17 Richard Biener <rguenther@suse.de>
8281
8282 * gimplify.c (gimplify_function_tree): Do not move the outer
8283 binds block.
8284
8285 2016-10-17 Jakub Jelinek <jakub@redhat.com>
8286
8287 * langhooks.h (struct lang_hooks_for_decls): Remove
8288 function_decl_explicit_p, function_decl_deleted_p and
8289 function_decl_defaulted hooks. Add decl_dwarf_attribute hook.
8290 * langhooks-def.h (lhd_decl_dwarf_attribute): Declare.
8291 (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P,
8292 LANG_HOOKS_FUNCTION_DECL_DELETED_P,
8293 LANG_HOOKS_FUNCTION_DECL_DEFAULTED): Remove.
8294 (LANG_HOOKS_DECL_DWARF_ATTRIBUTE): Define.
8295 (LANG_HOOKS_DECLS): Remove LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P,
8296 LANG_HOOKS_FUNCTION_DECL_DELETED_P and
8297 LANG_HOOKS_FUNCTION_DECL_DEFAULTED. Add
8298 LANG_HOOKS_DECL_DWARF_ATTRIBUTE.
8299 * langhooks.c (lhd_decl_dwarf_attribute): New function.
8300 * dwarf2out.c (gen_subprogram_die): Use
8301 lang_hooks.decls.decl_dwarf_attribute instead of
8302 lang_hooks.decls.function_decl_*.
8303
8304 2016-10-16 Eric Botcazou <ebotcazou@adacore.com>
8305
8306 PR ada/37139
8307 PR ada/67205
8308 * common.opt (-ftrampolines): New option.
8309 * doc/invoke.texi (Code Gen Options): Document it.
8310 * doc/tm.texi.in (Trampolines): Add TARGET_CUSTOM_FUNCTION_DESCRIPTORS.
8311 * doc/tm.texi: Regenerate.
8312 * builtins.def: Add init_descriptor and adjust_descriptor.
8313 * builtins.c (expand_builtin_init_trampoline): Do not issue a warning
8314 on platforms with descriptors.
8315 (expand_builtin_init_descriptor): New function.
8316 (expand_builtin_adjust_descriptor): Likewise.
8317 (expand_builtin) <BUILT_IN_INIT_DESCRIPTOR>: New case.
8318 <BUILT_IN_ADJUST_DESCRIPTOR>: Likewise.
8319 * calls.c (prepare_call_address): Remove SIBCALLP parameter and add
8320 FLAGS parameter. Deal with indirect calls by descriptor and adjust.
8321 Set STATIC_CHAIN_REG_P on the static chain register, if any.
8322 (call_expr_flags): Set ECF_BY_DESCRIPTOR for calls by descriptor.
8323 (expand_call): Likewise. Move around call to prepare_call_address
8324 and pass all flags to it.
8325 * cfgexpand.c (expand_call_stmt): Reinstate CALL_EXPR_BY_DESCRIPTOR.
8326 * gimple.h (enum gf_mask): New GF_CALL_BY_DESCRIPTOR value.
8327 (gimple_call_set_by_descriptor): New setter.
8328 (gimple_call_by_descriptor_p): New getter.
8329 * gimple.c (gimple_build_call_from_tree): SetCALL_EXPR_BY_DESCRIPTOR.
8330 (gimple_call_flags): Deal with GF_CALL_BY_DESCRIPTOR.
8331 * langhooks.h (struct lang_hooks): Add custom_function_descriptors.
8332 * langhooks-def.h (LANG_HOOKS_CUSTOM_FUNCTION_DESCRIPTORS): Define.
8333 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_CUSTOM_FUNCTION_DESCRIPTORS.
8334 * rtl.h (STATIC_CHAIN_REG_P): New macro.
8335 * rtlanal.c (find_first_parameter_load): Skip static chain registers.
8336 * target.def (custom_function_descriptors): New POD hook.
8337 * tree.h (FUNC_ADDR_BY_DESCRIPTOR): New flag on ADDR_EXPR.
8338 (CALL_EXPR_BY_DESCRIPTOR): New flag on CALL_EXPR.
8339 * tree-core.h (ECF_BY_DESCRIPTOR): New mask.
8340 Document FUNC_ADDR_BY_DESCRIPTOR and CALL_EXPR_BY_DESCRIPTOR.
8341 * tree.c (make_node_stat) <tcc_declaration>: Use FUNCTION_ALIGNMENT.
8342 (build_common_builtin_nodes): Initialize init_descriptor and
8343 adjust_descriptor.
8344 * tree-nested.c: Include target.h.
8345 (struct nesting_info): Add 'any_descr_created' field.
8346 (get_descriptor_type): New function.
8347 (lookup_element_for_decl): New function extracted from...
8348 (create_field_for_decl): Likewise.
8349 (lookup_tramp_for_decl): ...here. Adjust.
8350 (lookup_descr_for_decl): New function.
8351 (convert_tramp_reference_op): Deal with descriptors.
8352 (build_init_call_stmt): New function extracted from...
8353 (finalize_nesting_tree_1): ...here. Adjust and deal with descriptors.
8354 * defaults.h (FUNCTION_ALIGNMENT): Define.
8355 (TRAMPOLINE_ALIGNMENT): Set to above instead of FUNCTION_BOUNDARY.
8356 * config/i386/i386.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define.
8357 * config/ia64/ia64.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Likewise.
8358 * config/rs6000/rs6000.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS):Likewise.
8359 * config/sparc/sparc.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Likewise.
8360
8361 2016-10-16 Eric Botcazou <ebotcazou@adacore.com>
8362
8363 * config/sparc/sparc.c (sparc_expand_vector_init): Only accept literal
8364 constants in CONST_VECTORs.
8365
8366 2016-10-15 Eric Botcazou <ebotcazou@adacore.com>
8367
8368 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use a scratch
8369 register as destination of bmask.
8370 (vector_init_bshuffle): Likewise.
8371 * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
8372 (bmaskdi_vis): Enable only in 64-bit mode.
8373
8374 2016-10-15 Segher Boessenkool <segher@kernel.crashing.org>
8375
8376 * config/rs6000/rs6000.c (rs6000_get_separate_components): Do not
8377 make LR a separately shrink-wrapped component unless savres_strategy
8378 contains all of {SAVE,REST}_INLINE_{GPRS,FPRS,VRS}. Do not wrap
8379 GPRs unless both {SAVE,REST}_INLINE_GPRS. Do not disallow all
8380 wrapping when not both {SAVE,REST}_INLINE_GPRS.
8381
8382 2016-10-15 Eric Botcazou <ebotcazou@adacore.com>
8383
8384 * optabs.c (expand_parity): Fix mode mismatch, add final conversion
8385 and keep looping on failure.
8386
8387 2016-10-14 David Malcolm <dmalcolm@redhat.com>
8388
8389 * print-rtl-function.c (print_edge): Omit "(flags)" when none are
8390 set.
8391 (print_rtx_function): Update example in comment for...
8392 * print-rtl.c (print_rtx_operand_code_r): In compact mode, print
8393 non-virtual pseudos with a '%' sigil followed by the regno, offset
8394 by (LAST_VIRTUAL_REGISTER + 1), so that the first non-virtual
8395 pseudo is dumped as "%0".
8396
8397 2016-10-14 Jakub Jelinek <jakub@redhat.com>
8398
8399 PR middle-end/77959
8400 * expr.c (expand_expr_real_1) <case CONST_DECL>: For EXPAND_WRITE
8401 return a MEM.
8402
8403 2016-10-14 Eric Botcazou <ebotcazou@adacore.com>
8404
8405 * config/sparc/sparc-passes.def: New file.
8406 * config/sparc/t-sparc (PASSES_EXTRA): Add sparc-passes.def.
8407 * config/sparc/sparc-protos.h (make_pass_work_around_errata): New.
8408 * config/sparc/sparc.c (sparc_option_override): Don't register passes.
8409
8410 2016-10-14 Pat Haugen <pthaugen@us.ibm.com>
8411
8412 * loop-unroll.c (unroll_loop_runtime_iterations): Condition initial
8413 loop peel to loops with exit test at the beginning.
8414
8415 2016-10-14 Pat Haugen <pthaugen@us.ibm.com>
8416
8417 PR rtl-optimization/68212
8418 * cfgloopmanip.c (duplicate_loop_to_header_edge): Use preheader edge
8419 frequency when computing scale factor for peeled copies.
8420 * loop-unroll.c (unroll_loop_runtime_iterations): Fix freq/count
8421 values for switch/peel blocks/edges.
8422
8423 2016-10-14 Pedro Alves <palves@redhat.com>
8424
8425 * coretypes.h (OVERRIDE, FINAL): Delete, moved to include/ansidecl.h.
8426
8427 2016-10-14 Catherine Moore <clm@codesourcery.com>
8428
8429 * config/mips/mips.c (mips_prepare_pch_save): Initialize
8430 micromips_globals to zero.
8431
8432 2016-10-14 Richard Biener <rguenther@suse.de>
8433
8434 PR tree-optimization/77979
8435 * tree-vrp.c (compare_name_with_value): Handle released SSA names
8436 in the equivalency sets.
8437 (compare_names): Likewise.
8438
8439 2016-10-14 Martin Liska <mliska@suse.cz>
8440
8441 * builtins.h(target_char_cst_p): Declare the function.
8442 * builtins.c (fold_builtin_memchr): Remove.
8443 (target_char_cst_p): Move the function from gimple-fold.c.
8444 (fold_builtin_3): Do not call the function.
8445 * gimple-fold.c (gimple_fold_builtin_memchr): New function.
8446 (gimple_fold_builtin): Call the function.
8447 * fold-const-call.c (fold_const_call_1): Handle CFN_BUILT_IN_MEMCHR.
8448
8449 2016-10-14 Martin Liska <mliska@suse.cz>
8450
8451 * builtins.c (fold_builtin_strcmp): Remove function.
8452 (fold_builtin_strncmp): Likewise.
8453 (fold_builtin_2): Remove call of the function.
8454 (fold_builtin_3): Likewise.
8455 * fold-const-call.c (fold_const_call): Add constant folding
8456 for CFN_BUILT_IN_STRCASECMP and CFN_BUILT_IN_STRNCASECMP.
8457 * fold-const-call.h (build_cmp_result): Declare the function.
8458 * gimple-fold.c (gimple_load_first_char): New function.
8459 (gimple_fold_builtin_string_compare): Likewise.
8460 (gimple_fold_builtin): Call the function.
8461
8462 2016-10-14 Nathan Sidwell <nathan@acm.org>
8463
8464 * gcov-io.c (gcov_open): Deconstify 'mode'.
8465
8466 2016-10-14 Martin Liska <mliska@suse.cz>
8467
8468 * fold-const.c (c_getstr): Support of properly \0-terminated
8469 string constants. New argument is added.
8470 * fold-const.h: New argument is added.
8471
8472 2016-10-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8473
8474 * config/aarch64/aarch64.c (aarch64_print_hint_for_core_or_arch):
8475 New function.
8476 (aarch64_print_hint_for_core): Likewise.
8477 (aarch64_print_hint_for_arch): Likewise.
8478 (aarch64_validate_march): Use it. Fix indentation in type signature.
8479 (aarch64_validate_mcpu): Use aarch64_print_hint_for_core_or_arch.
8480 (aarch64_validate_mtune): Likewise.
8481 (aarch64_handle_attr_arch): Likewise.
8482 (aarch64_handle_attr_cpu): Likewise.
8483 (aarch64_handle_attr_tune): Likewise.
8484
8485 2016-10-14 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8486
8487 * optabs.def: Remove optab function gen_int_libfunc for sdivmod_optab
8488 and udivmod_optab.
8489
8490 2016-10-13 Andreas Schwab <schwab@linux-m68k.org>
8491
8492 * config/m68k/m68k.c (m68k_option_override): Check
8493 opt_fstack_limit_symbol_arg and opt_fstack_limit_register_no
8494 instead of stack_limit_rtx.
8495
8496 2016-10-13 Jakub Jelinek <jakub@redhat.com>
8497
8498 * dwarf2out.c (gen_member_die): Handle inline static data member
8499 definitions.
8500
8501 2016-10-13 Nathan Sidwell <nathan@acm.org>
8502
8503 * gcov-io.c (gcov_open): Fix documentation. Simplify setting
8504 gcov_var.mode. Remove unnecessary fstat.
8505
8506 2016-10-13 Segher Boessenkool <segher@kernel.crashing.org>
8507
8508 PR bootstrap/77962
8509 * function.c (thread_prologue_and_epilogue_insns): Call all
8510 make_*logue_seq in the same order as traditional. Call them
8511 all a second time if shrink_wrapped_separate.
8512
8513 2016-10-13 Marek Polacek <polacek@redhat.com>
8514
8515 * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
8516 insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Don't
8517 use -Wno-error.
8518
8519 2016-10-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8520
8521 PR tree-optimization/77937
8522 * gimple-ssa-strength-reduction.c (analyze_increments): Set cost
8523 to infinite when we have a pointer with an increment of -1.
8524
8525 2016-10-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
8526
8527 * coretypes.h: Move MEMMODEL_* macros and enum memmodel definition
8528 into ...
8529 * memmodel.h: This file.
8530 * alias.c, asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
8531 caller-save.c, calls.c, ccmp.c, cfgbuild.c, cfgcleanup.c,
8532 cfgexpand.c, cfgloopanal.c, cfgrtl.c, cilk-common.c, combine.c,
8533 combine-stack-adj.c, common/config/aarch64/aarch64-common.c,
8534 common/config/arm/arm-common.c, common/config/bfin/bfin-common.c,
8535 common/config/c6x/c6x-common.c, common/config/i386/i386-common.c,
8536 common/config/ia64/ia64-common.c, common/config/nvptx/nvptx-common.c,
8537 compare-elim.c, config/aarch64/aarch64-builtins.c,
8538 config/aarch64/aarch64-c.c, config/aarch64/cortex-a57-fma-steering.c,
8539 config/arc/arc.c, config/arc/arc-c.c, config/arm/arm-builtins.c,
8540 config/arm/arm-c.c, config/avr/avr.c, config/avr/avr-c.c,
8541 config/avr/avr-log.c, config/bfin/bfin.c, config/c6x/c6x.c,
8542 config/cr16/cr16.c, config/cris/cris.c, config/darwin-c.c,
8543 config/darwin.c, config/epiphany/epiphany.c,
8544 config/epiphany/mode-switch-use.c,
8545 config/epiphany/resolve-sw-modes.c, config/fr30/fr30.c,
8546 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
8547 config/i386/i386-c.c, config/i386/winnt.c, config/iq2000/iq2000.c,
8548 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
8549 config/m68k/m68k.c, config/mcore/mcore.c,
8550 config/microblaze/microblaze.c, config/mmix/mmix.c,
8551 config/mn10300/mn10300.c, config/moxie/moxie.c,
8552 config/msp430/msp430.c, config/nds32/nds32-cost.c,
8553 config/nds32/nds32-intrinsic.c, config/nds32/nds32-md-auxiliary.c,
8554 config/nds32/nds32-memory-manipulation.c,
8555 config/nds32/nds32-predicates.c, config/nds32/nds32.c,
8556 config/nios2/nios2.c, config/nvptx/nvptx.c, config/pa/pa.c,
8557 config/pdp11/pdp11.c, config/rl78/rl78.c, config/rs6000/rs6000-c.c,
8558 config/rx/rx.c, config/s390/s390-c.c, config/s390/s390.c,
8559 config/sh/sh.c, config/sh/sh-c.c, config/sh/sh-mem.cc,
8560 config/sh/sh_treg_combine.cc, config/sol2.c, config/spu/spu.c,
8561 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
8562 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
8563 config/visium/visium.c, config/vms/vms-c.c, config/xtensa/xtensa.c,
8564 coverage.c, cppbuiltin.c, cprop.c, cse.c, cselib.c, dbxout.c, dce.c,
8565 df-core.c, df-problems.c, df-scan.c, dojump.c, dse.c, dwarf2asm.c,
8566 dwarf2cfi.c, dwarf2out.c, emit-rtl.c, except.c, explow.c, expmed.c,
8567 expr.c, final.c, fold-const.c, function.c, fwprop.c, gcse.c,
8568 ggc-page.c, haifa-sched.c, hsa-brig.c, hsa-gen.c, hw-doloop.c,
8569 ifcvt.c, init-regs.c, internal-fn.c, ira-build.c, ira-color.c,
8570 ira-conflicts.c, ira-costs.c, ira-emit.c, ira-lives.c, ira.c, jump.c,
8571 loop-doloop.c, loop-invariant.c, loop-iv.c, loop-unroll.c,
8572 lower-subreg.c, lra.c, lra-assigns.c, lra-coalesce.c,
8573 lra-constraints.c, lra-eliminations.c, lra-lives.c, lra-remat.c,
8574 lra-spills.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
8575 postreload-gcse.c, postreload.c, predict.c, print-rtl-function.c,
8576 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
8577 reload.c, reload1.c, reorg.c, resource.c, rtl-chkp.c, rtl-tests.c,
8578 rtlanal.c, rtlhooks.c, sched-deps.c, sched-rgn.c, sdbout.c,
8579 sel-sched-ir.c, sel-sched.c, shrink-wrap.c, simplify-rtx.c,
8580 stack-ptr-mod.c, stmt.c, stor-layout.c, target-globals.c,
8581 targhooks.c, toplev.c, tree-nested.c, tree-outof-ssa.c,
8582 tree-profile.c, tree-ssa-coalesce.c, tree-ssa-ifcombine.c,
8583 tree-ssa-loop-ivopts.c, tree-ssa-loop.c, tree-ssa-reassoc.c,
8584 tree-ssa-sccvn.c, tree-vect-data-refs.c, ubsan.c, valtrack.c,
8585 var-tracking.c, varasm.c: Include memmodel.h.
8586 * genattrtab.c (write_header): Include memmodel.h in generated file.
8587 * genautomata.c (main): Likewise.
8588 * gengtype.c (open_base_files): Likewise.
8589 * genopinit.c (main): Likewise.
8590 * genconditions.c (write_header): Include memmodel.h earlier in
8591 generated file.
8592 * genemit.c (main): Likewise.
8593 * genoutput.c (output_prologue): Likewise.
8594 * genpeep.c (main): Likewise.
8595 * genpreds.c (write_insn_preds_c): Likewise.
8596 * genrecog.c (write_header): Likewise.
8597 * Makefile.in (PLUGIN_HEADERS): Include memmodel.h
8598
8599 2016-10-13 David Malcolm <dmalcolm@redhat.com>
8600
8601 * function-tests.c (selftest::test_expansion_to_rtl): Add "true"
8602 for new "compact" param of print_rtx_function. Check for "cinsn"
8603 rather than "insn".
8604 * print-rtl-function.c (flag_compact): New decl.
8605 (print_rtx_function): Add param "compact" and use it to set
8606 flag_compact, adding a description of the effect to the leading
8607 comment, and updating the example output.
8608 * print-rtl.c (flag_compact): New variable.
8609 (print_rtx_operand_code_0): Omit the JUMP_LABEL reference in compact
8610 mode.
8611 (print_rtx_operand_code_i): When printing source locations, wrap
8612 xloc.file in quotes. Don't print INSN_CODEs in compact mode.
8613 (print_rtx_operand_code_r): Don't print regnos for hard regs and
8614 virtuals in compact mode.
8615 (print_rtx_operand_code_u): Don't print insn UIDs in compact mode,
8616 apart from in LABEL_REFs.
8617 (print_rtx_operand): In case 'w', don't print in hex in compact mode.
8618 Don't print basic block ids in compact mode.
8619 (print_rtx): In compact mode, prefix the code of insns with "c",
8620 only print the INSN_UID of CODE_LABELs, and omit their LABEL_NUSES.
8621 * print-rtl.h (print_rtx_function): Add "compact" param.
8622
8623 2016-10-13 Richard Earnshaw <rearnsha@arm.com>
8624
8625 * arm.h (TARGET_VFP): Delete.
8626 (TARGET_VFPD32): Remove references to TARGET_VFP.
8627 (TARGET_VFP3, TARGET_VFP5): Likewise.
8628 (TARGET_VFP_SINGLE, TARGET_VFP_DOUBLE): Likewise.
8629 (TARGET_NEON_FP16): Likewise.
8630 (TARGET_FMA): Likewise.
8631 (TARGET_CRYPTO): Likewise.
8632 (TARGET_NEON): Likewise.
8633 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
8634 (FUNCTION_ARG_REGNO_P): Likewise.
8635 * arm.c (arm_option_check_internal): Likewise.
8636 (arm_option_override): Likewise.
8637 (use_return_insn): Likewise.
8638 (arm_function_value_regno_p): Likewise.
8639 (arm_apply_result_size): Likewise.
8640 (use_vfp_abi): Likewise.
8641 (arm_legitimate_address_outer_p): Likewise.
8642 (thumb2_legitimate_address_p): Likewise.
8643 (arm_legitimate_index_p): Likewise.
8644 (thumb2_legitimate_index_p): Likewise.
8645 (arm_legitimate_address): Likewise.
8646 (arm_get_vfp_saved_size): Likewise.
8647 (arm_emit_vfp_multi_reg_pop): Likewise.
8648 (arm_get_frame_offsets): Likewise.
8649 (arm_save_coproc_regs): Likewise.
8650 (arm_hard_regno_mode_ok): Likewise.
8651 (arm_expand_epilogue_apcs_frame): Likewise.
8652 (arm_expand_epilogue): Likewise.
8653 (arm_file_start): Likewise.
8654 (arm_conditional_register_usage): Likewise.
8655 (arm_validize_comparison): Use vfp_compare_operand directly.
8656 * arm-builtins.c (arm_init_builtins): Remove references to TARGET_VFP.
8657 (arm_expand_vfp_builtin): Use TARGET_HARD_FLOAT for detecting
8658 unsupported usage.
8659 (arm_atomic_assign_expand_fenv): Likewise.
8660 * arm.md (divsf3): Likewise.
8661 (arm_negsi2): Likewise.
8662 (absdf2): Likewise.
8663 (arm_movdi): Likewise.
8664 (arm_movt): Likewise.
8665 (cbranchsf4): Change predicate to vfp_compare_operand.
8666 (cbranchdf4): Change predicate to vfp_compare_operand.
8667 (cstorehf4): Change predicate to vfp_compare_operand.
8668 (cstoresf4): Change predicate to vfp_compare_operand.
8669 (cstoredf4): Change predicate to vfp_compare_operand.
8670 (vfp_pop_multiple_with_writeback): Remove references to TARGET_VFP.
8671 (movhi_insn_arch4, movhi_bytes): Likewise.
8672 * constraints.md (Dt): Likewise.
8673 (Dp): Likewise.
8674 * iterators.md (SDF): Likewise.
8675 * predicates.md (arm_float_compare_operand): Delete.
8676 (const_double_vcvt_power_of_two_reciprocal): Remove references to
8677 TARGET_VFP.
8678 (const_double_vcvt_power_of_two): Likewise.
8679 * thumb2.md thumb2_movsi_insn): Likewise.
8680 * vfp.md (arm_movhi_vfp, thumb2_movhi_vfp): Likewise.
8681 (movhf_vfp): Likewise.
8682 (arm_movsi_vfp, thumb2_movsi_vfp): Likewise.
8683 (movdi_vfp, movdi_vfp_cortexa8): Likewise.
8684 (movsf_vfp, thumb2_movsf_vfp): Likewise.
8685 (movdf_vfp, thumb2_movdf_vfp): Likewise.
8686 (movsfcc_vfp, abssf2_vfp, negsf2_vfp, addsf3_vfp): Likewise.
8687 (subsf3_vfp, divsf3_vfp): Likewise.
8688 (mulsf3_vfp, mulsf3negsf_vfp, negmulsf3_vfp): Likewise.
8689 (mulsf3addsf_vfp, (mulsf3subsf_vfp, mulsf3negsfaddsf_vfp): Likewise.
8690 (mulsf3negsfsubsf_vfp): Likewise.
8691 (truncsisf2_vfp, fixuns_truncsfsi2, floatsisf2_vfp): Likewise.
8692 (floatunssisf2, sqrtsf2_vfp): Likewise.
8693 (movcc_vfp): Likewise.
8694 (cmpsf_split_vfp, cmpsf_trap_split_vfp): Likewise.
8695 (cmpsf_vfp, cmpsf_trap_vfp): Likewise.
8696 (push_multi_vfp): Likewise.
8697 (set_fpscr, get_fpscr): Likewise.
8698 * arm-c.c (arm_cpu_builtins): Unconditionally define __VFP_FP__.
8699
8700 2016-10-13 Richard Earnshaw <rearnsha@arm.com>
8701
8702 * arm.h (TARGET_VFP): Unconditionally define to 1.
8703 (arm_fpu_desc): Remove 'model' field.
8704 (TARGET_FPU_MODEL): Delete.
8705 * arm.c (all_fpus): Don't initialize the model field.
8706 (arm_can_inline_p): Don't check the FPU model.
8707 * arm-fpus.def: Remove redundant model field from all FPU
8708 descriptions.
8709
8710 2016-10-13 Richard Biener <rguenther@suse.de>
8711
8712 PR middle-end/77826
8713 * genmatch.c (struct capture): Add value_match member.
8714 (commutate): Preserve value_match.
8715 (lower_opt_convert): Likewise.
8716 (lower_cond): Likewise.
8717 (replace_id): Likewise.
8718 (struct dt_operand): Add value_match member.
8719 (decision_tree::cmp_node): Compare it.
8720 (decision_tree::insert_operand): Honor it when finding and
8721 when appending a DT_MATCH.
8722 (dt_operand::gen_match_op): Generate a type check after
8723 operand_equal_p if ! value_match for both GENERIC and GIMPLE.
8724 (parser::get_internal_capture_id): New helper.
8725 (parser::finish_match_operand): New function lowering @@<id>.
8726 (parser::parse_capture): Parse @@<id> as value-match.
8727 (parser::parse_expr): Use get_internal_capture_id.
8728 (parser::parse_simplify): Call finish_match_operand.
8729 (walk_captures): New helper.
8730 * match.pd (X - (X / Y) * Y -> X % Y): Use value-matching instead
8731 of operand_equal_p.
8732 ((X /[ex] A) * A -> X): Likewise.
8733 ((X | Y) ^ X -> Y & ~ X): Handle constants properly by using
8734 convert[12] and value-matching.
8735 ((A | B) & (A | C) -> A | (B & C)): Likewise.
8736 ((X | Y) | Y -> X | Y): Likewise.
8737 ((X ^ Y) ^ Y -> X): Likewise.
8738 (A - (A & B) -> ~B & A): Likewise.
8739 ((T)(P + A) - (T)P -> (T) A): Likewise.
8740 ((T)P - (T)(P + A) -> -(T) A): Likewise.
8741 ((T)(P + A) - (T)(P + B) -> (T)A - (T)B): Likewise.
8742 * doc/match-and-simplify.texi: Amend capture section.
8743
8744 2016-10-13 Claudiu Zissulescu <claziss@synopsys.com>
8745
8746 * config/arc/arc.md (umul_600): Remove predicated variant.
8747 (umul64_600): Likewise.
8748
8749 2016-10-13 Claudiu Zissulescu <claziss@synopsys.com>
8750
8751 * config/arc/arc.h (INSN_LENGTH_ALIGNMENT): Change.
8752
8753 2016-10-13 Bin Cheng <bin.cheng@arm.com>
8754
8755 * tree-vect-loop.c (loop_niters_no_overflow): New func.
8756 (vect_transform_loop): Call loop_niters_no_overflow. Pass the
8757 no-overflow information to vect_do_peeling_for_loop_bound and
8758 vect_gen_vector_loop_niters.
8759
8760 2016-10-13 Bin Cheng <bin.cheng@arm.com>
8761
8762 * tree-predcom.c (tree_predictive_commoning_loop): Skip loop that only
8763 iterates 1 time.
8764
8765 2016-10-13 Bin Cheng <bin.cheng@arm.com>
8766
8767 * tree-vect-loop-manip.c (adjust_vec_debug_stmts): Don't release
8768 adjust_vec automatically.
8769 (slpeel_add_loop_guard): Remove param cond_expr_stmt_list. Rename
8770 param exit_bb to guard_to.
8771 (slpeel_checking_verify_cfg_after_peeling):
8772 (set_prologue_iterations):
8773 (create_lcssa_for_virtual_phi): New func which is factored out from
8774 slpeel_tree_peel_loop_to_edge.
8775 (slpeel_tree_peel_loop_to_edge):
8776 (iv_phi_p): New func.
8777 (vect_can_advance_ivs_p): Call iv_phi_p.
8778 (vect_update_ivs_after_vectorizer): Call iv_phi_p. Directly insert
8779 new gimple stmts in basic block.
8780 (vect_gen_niters_for_prolog_loop): Rename to...
8781 (vect_gen_prolog_loop_niters): ...Rename from. Change parameters and
8782 adjust implementation.
8783 (vect_update_inits_of_drs): Fix code style issue. Convert niters to
8784 sizetype if necessary.
8785 (vect_build_loop_niters): Move to here from tree-vect-loop.c. Change
8786 it to external function.
8787 (vect_gen_scalar_loop_niters, vect_gen_vector_loop_niters): New.
8788 (vect_gen_vector_loop_niters_mult_vf): New.
8789 (slpeel_update_phi_nodes_for_loops): New.
8790 (slpeel_update_phi_nodes_for_guard1): Reimplement.
8791 (find_guard_arg, slpeel_update_phi_nodes_for_guard2): Reimplement.
8792 (slpeel_update_phi_nodes_for_lcssa, vect_do_peeling): New.
8793 * tree-vect-loop.c (vect_build_loop_niters): Move to file
8794 tree-vect-loop-manip.c
8795 (vect_generate_tmps_on_preheader): Delete.
8796 (vect_transform_loop): Rename vectorization_factor to vf. Call
8797 vect_do_peeling instead of vect_do_peeling-* functions.
8798 * tree-vectorizer.h (vect_do_peeling): New decl.
8799 (vect_build_loop_niters, vect_gen_vector_loop_niters): New decls.
8800 (vect_do_peeling_for_loop_bound): Delete.
8801 (vect_do_peeling_for_alignment): Delete.
8802
8803 2016-10-13 Bin Cheng <bin.cheng@arm.com>
8804
8805 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg): Put
8806 duplicated loop after its preheader and after the original loop.
8807
8808 2016-10-13 Bin Cheng <bin.cheng@arm.com>
8809
8810 * tree-vect-loop.c (vect_analyze_loop_2): Check and skip loop if it
8811 has no enough iterations for LOOP_VINFO_PEELING_FOR_GAPS.
8812
8813 2016-10-13 Bin Cheng <bin.cheng@arm.com>
8814
8815 * tree-vect-loop.c (vectorizable_live_operation): Support handling
8816 for live variable outside loop but not in lcssa form.
8817
8818 2016-10-13 Bin Cheng <bin.cheng@arm.com>
8819
8820 * cfg.c (reset_original_copy_tables): New func.
8821 * cfg.h (reset_original_copy_tables): New decl.
8822
8823 2016-10-13 Jakub Jelinek <jakub@redhat.com>
8824
8825 PR c/77946
8826 * tree.h (FALLTHROUGH_LABEL_P): Use private_flag instead of
8827 public_flag.
8828 * varasm.c (default_binds_local_p_3): Formatting fix.
8829
8830 2016-10-13 Bin Cheng <bin.cheng@arm.com>
8831
8832 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Fix code
8833 style issue.
8834 (vect_do_peeling_for_loop_bound, vect_do_peeling_for_alignment):
8835 Remove useless code.
8836
8837 2016-10-13 Martin Liska <mliska@suse.cz>
8838
8839 PR tree-optimization/77943
8840 * tree-ssa-tail-merge.c (merge_stmts_p): Do not merge BBs with
8841 a different EH landing pads.
8842
8843 2016-10-13 Jakub Jelinek <jakub@redhat.com>
8844
8845 PR target/77957
8846 * hooks.h (hook_tree_void_null): Declare.
8847 * hooks.c (hook_tree_void_null): New function.
8848 * langhooks.c (lhd_return_null_tree_v): Remove.
8849 * langhooks-def.h (lhd_return_null_tree_v): Remove.
8850 * cfgexpand.c (stack_protect_prologue): If guard_decl is NULL,
8851 set y to const0_rtx.
8852 * function.c (stack_protect_epilogue): Likewise.
8853 * config/tilepro/tilepro.c (TARGET_STACK_PROTECT_GUARD): Redefine
8854 if TARGET_THREAD_SSP_OFFSET is defined.
8855 * config/s390/s390.c (TARGET_STACK_PROTECT_GUARD): Likewise.
8856 * config/sparc/sparc.c (TARGET_STACK_PROTECT_GUARD): Likewise.
8857 * config/tilegx/tilegx.c (TARGET_STACK_PROTECT_GUARD): Likewise.
8858 * config/rs6000/rs6000.c (TARGET_STACK_PROTECT_GUARD): Likewise.
8859 * config/i386/i386.c (TARGET_STACK_PROTECT_GUARD): Likewise.
8860 (ix86_stack_protect_guard): New function.
8861
8862 2016-10-13 Richard Biener <rguenther@suse.de>
8863
8864 * dwarf2out.c (tree_add_const_value_attribute): Do not try
8865 rtl_for_decl_init during early phase.
8866 (gen_variable_die): Do not create locations during early phase.
8867 (gen_label_die): Likewise.
8868 (decls_for_scope): Do not waste time handling BLOCK_NONLOCALIZED_VARs
8869 twice.
8870
8871 2016-10-12 Richard Biener <rguenther@suse.de>
8872
8873 * tree-vrp.c (evrp_dom_walker::try_find_new_range): Renamed from
8874 try_add_new_range and made to eturn new range.
8875 (evrp_dom_walker::before_dom_children): Push op1 value range before
8876 pushing op0 value range.
8877
8878 2016-10-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8879
8880 PR tree-optimization/77937
8881 * gimple-ssa-strength-reduction.c (analyze_increments): Use
8882 POINTER_TYPE_P on the candidate type to determine whether
8883 candidates in this chain require pointer arithmetic.
8884
8885 2016-10-12 Eric Botcazou <ebotcazou@adacore.com>
8886
8887 * config/visium/visium.c (visium_gimplify_va_arg): Emit a big-endian
8888 correction if the type is smaller than a word.
8889 (visium_select_cc_mode): Add ... fall through ... comment.
8890
8891 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
8892
8893 * config/rs6000/rs6000.c (machine_function): Add new fields
8894 gpr_is_wrapped_separately and lr_is_wrapped_separately.
8895 (TARGET_SHRINK_WRAP_GET_SEPARATE_COMPONENTS,
8896 TARGET_SHRINK_WRAP_COMPONENTS_FOR_BB,
8897 TARGET_SHRINK_WRAP_DISQUALIFY_COMPONENTS,
8898 TARGET_SHRINK_WRAP_EMIT_PROLOGUE_COMPONENTS,
8899 TARGET_SHRINK_WRAP_EMIT_EPILOGUE_COMPONENTS,
8900 TARGET_SHRINK_WRAP_SET_HANDLED_COMPONENTS): Define.
8901 (rs6000_get_separate_components): New function.
8902 (rs6000_components_for_bb): New function.
8903 (rs6000_disqualify_components): New function.
8904 (rs6000_emit_prologue_components): New function.
8905 (rs6000_emit_epilogue_components): New function.
8906 (rs6000_set_handled_components): New function.
8907 (rs6000_emit_prologue): Don't emit LR save if lr_is_wrapped_separately.
8908 Don't emit GPR saves if gpr_is_wrapped_separately for that register.
8909 (restore_saved_lr): Don't restore LR if lr_is_wrapped_separately.
8910 (rs6000_emit_epilogue): Don't emit GPR restores if
8911 gpr_is_wrapped_separately for that register. Don't make a
8912 REG_CFA_RESTORE note for registers we did not restore, either.
8913
8914 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
8915
8916 * function.c (thread_prologue_and_epilogue_insns): Call
8917 try_shrink_wrapping_separate. Compute the prologue_seq afterwards,
8918 if it has possibly changed. Compute the split_prologue_seq and
8919 epilogue_seq later, too.
8920 * shrink-wrap.c: #include cfgbuild.h and insn-config.h.
8921 (dump_components): New function.
8922 (struct sw): New struct.
8923 (SW): New function.
8924 (init_separate_shrink_wrap): New function.
8925 (fini_separate_shrink_wrap): New function.
8926 (place_prologue_for_one_component): New function.
8927 (spread_components): New function.
8928 (disqualify_problematic_components): New function.
8929 (emit_common_heads_for_components): New function.
8930 (emit_common_tails_for_components): New function.
8931 (insert_prologue_epilogue_for_components): New function.
8932 (try_shrink_wrapping_separate): New function.
8933 * shrink-wrap.h: Declare try_shrink_wrapping_separate.
8934
8935 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
8936
8937 * regrename.c (build_def_use): Invalidate chains that have a
8938 REG_CFA_RESTORE on some instruction.
8939
8940 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
8941
8942 * dce.c (delete_unmarked_insns): Don't delete instructions with
8943 a REG_CFA_RESTORE note.
8944
8945 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
8946
8947 * common.opt (-fshrink-wrap-separate): New flag.
8948 * doc/invoke.texi: Document it.
8949 * doc/tm.texi.in (Shrink-wrapping separate components): New subsection.
8950 * doc/tm.texi: Regenerate.
8951 * emit-rtl.h (struct rtl_data): New field shrink_wrapped_separate.
8952 * target.def (shrink_wrap): New hook vector.
8953 (get_separate_components, components_for_bb, disqualify_components,
8954 emit_prologue_components, emit_epilogue_components,
8955 set_handled_components): New hooks.
8956
8957 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
8958
8959 * config/rs6000/rs6000.c (rs6000_return_in_memory): Warn for
8960 vector return by reference only if -Wpsabi.
8961 (rs6000_pass_by_reference): Similarly, for argument passing.
8962
8963 2016-10-12 David Malcolm <dmalcolm@redhat.com>
8964
8965 * function-tests.c: Include "print-rtl.h".
8966 (selftest::test_expansion_to_rtl): Call print_rtx_function on the
8967 function, and verify what is dumped.
8968 * print-rtl-function.c (print_edge): New function.
8969 (begin_any_block): New function.
8970 (end_any_block): New function.
8971 (can_have_basic_block_p): New function.
8972 (print_rtx_function): Track the basic blocks of insns in the
8973 chain, wrapping those that are within blocks within "(block)"
8974 directives. Remove the "(cfg)" directive.
8975
8976 2016-10-12 David Malcolm <dmalcolm@redhat.com>
8977
8978 * selftest.c (selftest::read_file): New function.
8979 (selftest::test_read_file): New function.
8980 (selftest::selftest_c_tests): Call test_read_file.
8981 * selftest.h (selftest::read_file): New decl.
8982
8983 2016-10-12 Richard Biener <rguenther@suse.de>
8984
8985 PR debug/77947
8986 * cgraphunit.c (analyze_functions): Preserve cgraph nodes
8987 function context.
8988
8989 2016-10-12 Thomas Schwinge <thomas@codesourcery.com>
8990
8991 * lto-streamer.c: Fix LTO_STREAMER_DEBUG build.
8992
8993 * dwarf2out.c (dwarf2_lineno_debug_hooks): Use
8994 dwarf2out_assembly_start.
8995
8996 * Makefile.in (SELFTEST_FLAGS): Add -nostdinc.
8997
8998 * Makefile.in (SELFTEST_FLAGS): New variable.
8999 (s-selftest, selftest-gdb, selftest-valgrind): Use it.
9000
9001 * vmsdbgout.c (vmsdbg_debug_hooks): Add filename parameter to
9002 early_finish hook.
9003
9004 2016-10-12 Georg-Johann Lay <avr@gjlay.de>
9005
9006 * rtl.h (struct rtx_def): Comment how RTX_FLAGS will be
9007 dumped in RTL dumps.
9008
9009 2016-10-12 Martin Liska <mliska@suse.cz>
9010
9011 * gimple-fold.c (create_tmp_reg_or_ssa_name): New function.
9012 (gimple_fold_builtin_memory_op): Use the function.
9013 (gimple_fold_builtin_strchr): Likewise.
9014 (gimple_fold_builtin_strcat): Likewise.
9015 (gimple_build): Likewise.
9016
9017 2016-10-12 Nathan Sidwell <nathan@acm.org>
9018
9019 * diagnostic.c (diagnostc_report_diagnostic): Fix formatting.
9020
9021 2016-10-12 Pierre-Marie de Rodat <derodat@adacore.com>
9022
9023 * dwarf2out.c (int_loc_descriptor): Generate opcodes for another
9024 equivalent 32-bit constant (modulo 2**32) when that yields
9025 smaller instructions.
9026 (size_of_int_loc_descriptor): Update accordingly.
9027
9028 2016-10-12 Pierre-Marie de Rodat <derodat@adacore.com>
9029
9030 * dwarf2out.c (dwarf2out_early_global_decl): For nested
9031 functions, call dwarf2out_decl on the parent function first.
9032
9033 2016-10-12 Richard Biener <rguenther@suse.de>
9034
9035 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary constraint
9036 on the conversion.
9037
9038 2016-10-12 Richard Biener <rguenther@suse.de>
9039
9040 * tree-ssa-propagate.c
9041 (substitute_and_fold_dom_walker::before_dom_children): Do not
9042 ignore ASSERT_EXPRs but only preserve them.
9043 * tree-vrp.c (remove_range_assertions): Deal with ASSERT_EXPRs
9044 that have been propagated into.
9045 (vrp_finalize): Enable DCE for substitute_and_fold.
9046
9047 2016-10-12 Richard Biener <rguenther@suse.de>
9048
9049 PR tree-optimization/77920
9050 * tree-vrp.c (simplify_div_or_mod_using_ranges): Simplify.
9051 (simplify_min_or_max_using_ranges): Pass in gsi and use it.
9052 (simplify_abs_using_ranges): Likewise.
9053 (simplify_conversion_using_ranges): Likewise.
9054 (simplify_stmt_using_ranges): Adjust.
9055
9056 2016-10-12 Jakub Jelinek <jakub@redhat.com>
9057
9058 PR tree-optimization/77929
9059 * tree-ssa-reassoc.c (optimize_range_tests_var_bound): Handle
9060 (*ops)[ranges[i].idx]->op != ranges[i].exp case.
9061
9062 2016-10-12 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
9063
9064 PR target/77934
9065 * config/rs6000/vmx.md (vsx_concat_<mode>): The mtvsrdd instruction
9066 needs a base register for arg 1.
9067
9068 2016-10-12 Jakub Jelinek <jakub@redhat.com>
9069
9070 * common.opt (Wimplicit-fallthrough) Turn into alias to
9071 -Wimplicit-fallthrough=3. Remove EnabledBy.
9072 (Wimplicit-fallthrough=): New option.
9073 * gimplify.c (warn_implicit_fallthrough_r): Use
9074 OPT_Wimplicit_fallthrough_ instead of OPT_Wimplicit_fallthrough.
9075 * doc/invoke.texi (-Wimplicit-fallthrough): Document as alias
9076 to -Wimplicit-fallthrough=3.
9077 (-Wimplicit-fallthrough=): Document.
9078
9079 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
9080
9081 * config/sparc/sparc.c (emit_scc_insn): Remove direct support for EQ
9082 and GEU in DImode if TARGET_SUBXC.
9083 * config/sparc/sparc.md (seqdi<W:mode>_zero): Remove TARGET_SUBXC.
9084 (seqdi<W:mode>_zero_subxc): Delete.
9085 (neg_seqdi<W:mode>_zero): Remove TARGET_VIS3.
9086 (neg_seqdi<W:mode>_zero_vis3): Delete.
9087 (plus_seqdi<W:mode>_zero): Likewise.
9088 (minus_seqdi<W:mode>_zero): Likewise.
9089 (plus_plus_sltu<W:mode>): Accept only register.
9090 (addx<W:mode>): Likewise.
9091 (plus_sltu<W:mode>_vis3): Likewise.
9092 (plus_plus_sltu<W:mode>_vis3): Likewise.
9093 (neg_sgeu<W:mode>_vis3): Delete.
9094 (minus_sgeu<W:mode>_vis3): Likewise.
9095 (addxc<W:mode>): Accept only registers.
9096 (neg_sltu<W:mode>_subxc): Write %%g0 instead of 0.
9097 (minus_neg_sltu<W:mode>_subxc): Accept only register.
9098 (neg_plus_sltu<W:mode>_subxc): Likewise.
9099 (minus_sltu<W:mode>_subxc): Write %%g0 instead of 0.
9100 (minus_minus_sltu<W:mode>_subxc): Accept only register.
9101 (sgeu<W:mode>_insn_subxc): Delete.
9102 (plus_sgeu<W:mode>_subxc): Likewise.
9103 (subxc<W:mode>): Accept only register.
9104 (scc splitter): Split always GEU again.
9105
9106 2016-10-11 Jeff Law <law@redhat.com>
9107
9108 PR tree-optimization/77424
9109 * tree-ssa-threadupdate.c (thread_through_all_blocks): Remove
9110 dead conditionals. Assert that all e->aux fields are NULL.
9111
9112 2016-10-11 David Malcolm <dmalcolm@redhat.com>
9113
9114 * print-rtl.c (print_rtx): Rename "i" to "idx". Split out the
9115 operand-printing "switch" statement into...
9116 (print_rtx_operand_code_0): ...this new function, ...
9117 (print_rtx_operand_code_e): ...this new function, ...
9118 (print_rtx_operand_codes_E_and_V): ...this new function, ...
9119 (print_rtx_operand_code_i): ...this new function, ...
9120 (print_rtx_operand_code_r): ...this new function, ...
9121 (print_rtx_operand_code_u): ...this new function, ...
9122 (print_rtx_operand): ...and this new function.
9123
9124 2016-10-11 Uros Bizjak <ubizjak@gmail.com>
9125
9126 * config/alpha/alpha-passes.def: New file.
9127 * config/alpha/t-alpha: New file.
9128 * config/alpha/alpha-protos.h (gcc::context, rtl_opt_pass): Declare.
9129 (make_pass_handle_trap_shadows): New prototype.
9130 (make_pass_align_insns): Ditto.
9131 * config/alpha/alpha.c (alpha_option_override): Don't register
9132 passes here.
9133 * config.gcc (alpha*-*-*) Add alpha/t-alpha to tmake_file.
9134
9135 2016-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
9136
9137 PR target/77924
9138 * config/rs6000/rs6000.c (rs6000_init_builtins): Only create the
9139 distinct __ibm128 IBM extended double type if long doubles are
9140 128-bits and the default format for long double is IEEE 128-bit.
9141
9142 2016-10-11 Richard Biener <rguenther@suse.de>
9143
9144 * dwarf2out.c (DEBUG_STR_OFFSETS_SECTION): Remove conditional.
9145 (init_sections_and_labels): Use DEBUG_DWO_STR_OFFSETS_SECTION.
9146 (verify_die): New function.
9147 (dwarf2out_finish): Call it.
9148 (output_line_info): Handle case of -gsplit-dwarf without
9149 DWARF2_ASM_LINE_DEBUG_INFO.
9150
9151 2016-10-11 Richard Biener <rguenther@suse.de>
9152
9153 PR debug/77931
9154 * gimple-low.c (lower_gimple_bind): Handle arbitrary common
9155 sub-chains of BLOCK_VARS and gimple_bind_vars.
9156
9157 2016-10-11 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
9158
9159 * config/i386/znver1.md : Fix imov/imovx load type reservations.
9160
9161 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
9162
9163 * config/sparc/sparc.opt (msubxc): New option.
9164 * doc/invoke.texi (SPARC options): Document it and tidy up.
9165 * doc/tm.texi.in (Condition Codes): Adjust SPARC example.
9166 * doc/tm.texi: Regenerate.
9167 * config/sparc/sparc-modes.def (CC_NOOV): Rename into...
9168 (CCNZ): ...this.
9169 (CCX_NOOV): Rename into...
9170 (CCXNZ): ...this.
9171 (CCC): New.
9172 (CCXC): Likewise.
9173 * config/sparc/predicates.m (fcc_register_operand): Simplify.
9174 (fcc0_register_operand): Likewise.
9175 (icc_register_operand): New.
9176 (icc_or_fcc_register_operand): Simplify.
9177 (nz_comparison_operator): New.
9178 (c_comparison_operator): Likewise.
9179 (noov_compare_operator): Rename into...
9180 (icc_comparison_operator): ...this. Use above predicates.
9181 (noov_compare64_operator): Rename into...
9182 (v9_comparison_operator): ...this and tidy up.
9183 (fcc_comparison_operator): New.
9184 (icc_or_fcc_comparison_operator): Likewise.
9185 (v9_register_compare_operator): Rename info...
9186 (v9_register_comparison_operator): ...this.
9187 * config/sparc/sparc.c (TARGET_FIXED_CONDITION_CODE_REGS): Define.
9188 (sparc_option_override): Remove redundant VIS masks and add MASK_SUBXC
9189 for Niagara-7.
9190 (sparc_fixed_condition_code_regs): New function.
9191 (select_cc_mode): Remove ATTRIBUTE_UNUSED. Adjust for CCNZ/CCXNZ
9192 renaming and add support for CCC/CCXC.
9193 (output_cbranch): Likewise.
9194 (sparc_print_operand): Likewise.
9195 (gen_v9_scc): Remove obsolete assertion.
9196 (emit_scc_insn): Emit RTL directly for EQ and NE. Add direct support
9197 for EQ in DImode if TARGET_SUBXC. Remove test on TARGET_VIS3 for GEU.
9198 (output_cbcond): Remove bogus handling of CC modes.
9199 (sparc_register_move_cost): Return 100 for NO_REGS.
9200 * config/sparc/sparc.md (W): New mode iterator.
9201 (length): Adjust for noov_compare64_operator renaming.
9202 (cmpsi_sne): New instruction.
9203 (cmpdi_sne): Likewise.
9204 (seqdi_special): Delete.
9205 (seqdi_special): Likewise.
9206 (snesi<P:mode>_special): Likewise.
9207 (snedi_special): Likewise.
9208 (snedi_special_vis3): Likewise.
9209 (snesi patterns): Use W iterator.
9210 (snedi patterns): Likewise. Add TARGET_SUBXC patterns.
9211 (sltu patterns): Likewise.
9212 (sgeu patterns): Likewise.
9213 (scc splitter): Do not split GEU in DImode if TARGET_SUBXC.
9214 (normal_branch): Use icc_comparison_operator predicate.
9215 (inverted_branch): Likewise.
9216 (cbcond_sp32): Use comparison_operator predicate.
9217 (cbcond_sp64): Likewise.
9218 (normal_int_branch_sp64): Adjust for renaming
9219 (inverted_int_branch_sp64): Likewise.
9220 (mov<I:mode>_cc_reg_sp64): Likewise.
9221 (movsf_cc_reg_sp6): Likewise.
9222 (movdf_cc_reg_sp64): Likewise.
9223 (movtf_cc_reg_hq_sp64): Likewise.
9224 (movtf_cc_reg_sp64): Likewise.
9225 (mov<I:mode>_cc_v9): Use icc_or_fcc_comparison_operator predicate.
9226 (movsf_cc_v9): Likewise.
9227 (movdf_cc_v9): Likewise.
9228 (movtf_cc_hq_v9): Likewise.
9229 (movtf_cc_v9): Likewise.
9230 (adddi3): Call gen_adddi3_sp32.
9231 (adddi3_insn_sp32): Rename to...
9232 (adddi3_sp32): ...this. Accept only register_operand as operand #1
9233 and use CCCmode for the carry.
9234 (addx_extend_sp32): Use CCCmode for the carry.
9235 (addx_extend_sp64): Delete.
9236 (adddi3_extend_sp32): Use CCCmode for the carry.
9237 (cmp_plus patterns): Use CCNZ/CCXNZ mode and add C variants.
9238 (subdi3): Call gen_subdi3_sp32.
9239 (subdi3_insn_sp32): Rename to...
9240 (subdi3_sp32): ...this and use CCmode for the carry.
9241 (subx_extend_sp32): Use CCCmode for the carry.
9242 (subx_extend_sp64): Delete.
9243 (subdi3_extend_sp32): Use CCmode for the carry.
9244 (cmp_minus patterns): Use CCNZ/CCXNZ mode and add C variants.
9245 (negdi3): Call gen_negdi3_sp32.
9246 (negdi3_sp32): Use CCCmode for the carry.
9247 (cmp_neg patterns): Use CCNZ/CCXNZ mode and add C variants.
9248 (cmp_nz_ashift_1): Use CCNZ mode.
9249 (cmp_nz_set_ashift_1): Likewise.
9250 (ctrapsi4): Use comparison_operator predicate.
9251 (ctrapdi4): Likewise.
9252 (trapsi_insn): Use icc_comparison_operator predicate.
9253 (trapdi_insn): Likewise.
9254 (edge8 patterns): Use CCNZmode.
9255 (edge16 patterns): Likewise.
9256 (edge32 patterns): Likewise.
9257
9258 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
9259
9260 * config/visium/visium-modes.def (CC_NOOV): Rename into...
9261 (CCNZ): ...this.
9262 (CC_BTST): Rename into...
9263 (CCC): ...this.
9264 * config/visium/predicates.md (real_add_operand): New.
9265 (visium_btst_operator): Rename into...
9266 (visium_equality_comparison_operator): ...this.
9267 (visium_noov_operator): Rename into...
9268 (visium_nz_comparison_operator): ...this.
9269 (visium_c_comparison_operator): New.
9270 (visium_branch_operator): Adjust and deal with all CC modes.
9271 * config/visium/visium.c (visium_adjust_cost): Adjust.
9272 (visium_split_double_add): Use the *_set_carry patterns.
9273 (visium_select_cc_mode): Add support for CCC mode and adjust.
9274 (output_cbranch): Adjust and use the carry-based operators for
9275 floating-point comparisons.
9276 * config/visium/visium.md (flags_subst_arith): Adjust.
9277 (addsi3_insn_set_carry): New instruction.
9278 (subsi3_insn_set_carry): Likewise.
9279 (negsi2_insn_set_carry): Likewise.
9280 (btst): Adjust.
9281 (cmp<mode>_sne): Likewise.
9282 (cbranch<mode>4): Use ordered_comparison_operator.
9283 (cbranch<mode>4_insn): Likewise.
9284 (cbranchsi4_btst_insn): Adjust.
9285
9286 2016-10-11 Tom de Vries <tom@codesourcery.com>
9287
9288 PR middle-end/77558
9289 * builtins.c (std_canonical_va_list_type): Remove RECORD_TYPE
9290 special-casing.
9291
9292 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
9293
9294 * tree.h (build_complex_type): Add second parameter with default.
9295 * tree.c (build_complex_type): Add NAMED second parameter and adjust
9296 recursive call. Create a TYPE_DECL only if NAMED is true.
9297 (build_common_tree_nodes): Pass true in calls to build_complex_type.
9298
9299 2016-10-11 Georg-Johann Lay <avr@gjlay.de>
9300
9301 New avr-passes.def to register AVR specific passes.
9302
9303 * config/avr/avr-passes.def: New file.
9304 * config/avr/t-avr (PASSES_EXTRA): Add avr-passes.def.
9305 * config/avr/avr-protos.h (gcc::context, rtl_opt_pass): Declare.
9306 (make_avr_pass_recompute_note): New proto.
9307 * config/avr/avr.c (make_avr_pass_recompute_notes): New function.
9308 (avr_pass_recompute_notes): Use anonymous namespace.
9309 (avr_register_passes): Remove function...
9310 (avr_option_override): ...and its call.
9311
9312 2016-10-11 Robert Suchanek <robert.suchanek@imgtec.com>
9313
9314 * config/mips/mips-cpus.def: Replace PTF_AVOID_BRANCHLIKELY with
9315 PTF_AVOID_BRANCHLIKELY_ALWAYS for generic architecture and with
9316 PTF_AVOID_BRANCHLIKELY_SPEED for others.
9317 (mips2, mips3, mips4): Add PTF_AVOID_BRANCHLIKELY_SIZE to tune
9318 flags.
9319 * config/mips/mips.c (mips_option_override): Enable the branch
9320 likely depending on the tune flags and optimization level.
9321 * config/mips/mips.h (PTF_AVOID_BRANCHLIKELY): Remove.
9322 (PTF_AVOID_BRANCHLIKELY_SPEED): Define.
9323 (PTF_AVOID_BRANCHLIKELY_SIZE): Likewise.
9324 (PTF_AVOID_BRANCHLIKELY_ALWAYS): Likewise.
9325
9326 2016-10-11 Richard Biener <rguenther@suse.de>
9327
9328 * lto-streamer-out.c (collect_block_tree_leafs): New helper.
9329 (output_function): Properly stream the whole block tree.
9330 * lto-streamer-in.c (input_function): Likewise.
9331
9332 2016-10-11 Marek Polacek <polacek@redhat.com>
9333
9334 * Makefile.in (C_COMMON_OBJS): Add c-family/c-warn.o.
9335
9336 2016-10-11 Kugan Vivekanandarajah <kuganv@linaro.org>
9337
9338 * tree-vrp.c (evrp_dom_walker::try_add_new_range): New.
9339 (evrp_dom_walker::before_dom_children): Infer and push new value
9340 ranges for x in y < x.
9341
9342 2016-10-10 Joseph Myers <joseph@codesourcery.com>
9343
9344 PR target/77586
9345 * config/ia64/ia64.c (ia64_libgcc_floating_mode_supported_p)
9346 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Remove.
9347 * config/ia64/elf.h (IA64_NO_LIBGCC_TFMODE): Likewise.
9348 * config/ia64/freebsd.h (IA64_NO_LIBGCC_TFMODE): Likewise.
9349 * config/ia64/vms.h (IA64_NO_LIBGCC_XFMODE)
9350 (IA64_NO_LIBGCC_TFMODE): Likewise.
9351
9352 2016-10-11 Kugan Vivekanandarajah <kuganv@linaro.org>
9353
9354 * tree-vrp.c (vrp_intersect_ranges_1): Allocate bitmap before
9355 copying.
9356
9357 2016-10-10 Andreas Tobler <andreast@gcc.gnu.org>
9358
9359 * config.gcc: Add aarch64-*-freebsd* support.
9360 * config.host: Likewise.
9361 * config/aarch64/aarch64-freebsd.h: New file.
9362 * config/aarch64/t-aarch64-freebsd: Ditto.
9363
9364 2016-10-10 Jeff Law <law@redhat.com>
9365
9366 PR tree-optimization/71947
9367 * tree-ssa-dom.c (cprop_into_stmt): Avoid replacing A with B, then
9368 B with A within a single statement.
9369
9370 2016-10-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9371
9372 PR tree-optimization/77824
9373 * gimple-ssa-strength-reduction.c (stmt_cost): Explicitly return
9374 zero cost for copies.
9375 (find_candidates_dom_walker::before_dom_children): Replace
9376 MODIFY_EXPR with SSA_NAME.
9377 (replace_mult_candidate): Likewise.
9378 (replace_profitable_candidates): Likewise.
9379
9380 2016-10-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9381
9382 * config/s390/s390.h: Wrap more macros args in brackets and fix
9383
9384 2016-10-10 Georg-Johann Lay <avr@gjlay.de>
9385
9386 * config/avr/gen-avr-mmcu-texi.c (string.h): Include.
9387
9388 2016-10-10 Andreas Schwab <schwab@suse.de>
9389
9390 PR target/77738
9391 * config/ia64/ia64.md ("doloop_end"): Reject if mode of loop
9392 pseudo is not DImode.
9393
9394 2016-10-10 Claudiu Zissulescu <claziss@synopsys.com>
9395
9396 * common/config/arc/arc-common.c (arc_option_optimization_table):
9397 Remove compact casesi option.
9398 * config/arc/arc.c (arc_override_options): Use compact casesi
9399 option only for pre-ARCv2 cores.
9400 * doc/invoke.texi (mcompact-casesi): Update text.
9401
9402 2016-10-09 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
9403
9404 * config/rs6000/rs6000.h (TARGET_EFFICIENT_OVERLAPPING_UNALIGNED):
9405 Add macro to say we can efficiently handle overlapping unaligned
9406 loads.
9407 * config/rs6000/rs6000.c (expand_block_compare): Avoid generating
9408 poor code for processors older than p8.
9409
9410 2016-10-09 Eric Botcazou <ebotcazou@adacore.com>
9411
9412 * gen-pass-instances.awk: Remove GNUism.
9413
9414 2016-10-09 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9415
9416 * ipa-prop.c (ipcp_transform_function): Set fields m_vr and bits to
9417 NULL of (*ipcp_transformations)][node->uid].
9418
9419 2016-10-09 John David Anglin <danglin@gcc.gnu.org>
9420
9421 * config/pa/pa.h (BIGGEST_ALIGNMENT): Adjust comment.
9422 (MALLOC_ABI_ALIGNMENT): Define.
9423
9424 2016-10-09 Jakub Jelinek <jakub@redhat.com>
9425
9426 * tree-ssa.c (target_for_debug_bind, verify_phi_args,
9427 ssa_undefined_value_p, maybe_optimize_var): Use VAR_P and/or
9428 VAR_OR_FUNCTION_DECL_P macros.
9429 * tree-chkp.c (chkp_register_var_initializer, chkp_make_static_bounds,
9430 chkp_get_bounds_for_decl_addr, chkp_parse_array_and_component_ref,
9431 chkp_find_bounds_1): Likewise.
9432 * ipa-polymorphic-call.c (decl_maybe_in_construction_p): Likewise.
9433 * hsa-gen.c (get_symbol_for_decl): Likewise.
9434 * cgraphunit.c (check_global_declaration, analyze_functions,
9435 handle_alias_pairs, thunk_adjust, cgraph_node::expand_thunk):
9436 Likewise.
9437 * gimple-fold.c (can_refer_decl_in_current_unit_p,
9438 canonicalize_constructor_val, gimple_get_virt_method_for_vtable):
9439 Likewise.
9440 * tree.c (set_decl_section_name, copy_node_stat,
9441 need_assembler_name_p, free_lang_data_in_decl, find_decls_types_r,
9442 merge_dllimport_decl_attributes, handle_dll_attribute,
9443 decl_init_priority_insert, auto_var_in_fn_p, array_at_struct_end_p,
9444 verify_type): Likewise.
9445 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behavior,
9446 find_explicit_erroneous_behavior): Likewise.
9447 * sdbout.c (sdbout_toplevel_data, sdbout_late_global_decl): Likewise.
9448 * ipa.c (process_references): Likewise.
9449 * tree-chkp-opt.c (chkp_get_check_result): Likewise.
9450 * varasm.c (get_block_for_decl, use_blocks_for_decl_p, make_decl_rtl,
9451 notice_global_symbol, assemble_variable, mark_decl_referenced,
9452 build_constant_desc, output_constant_def_contents, do_assemble_alias,
9453 make_decl_one_only, default_section_type_flags,
9454 categorize_decl_for_section, default_encode_section_info): Likewise.
9455 * trans-mem.c (requires_barrier): Likewise.
9456 * gimple-expr.c (mark_addressable): Likewise.
9457 * cfgexpand.c (add_scope_conflicts_1, expand_one_var,
9458 expand_used_vars_for_block, clear_tree_used, stack_protect_decl_p,
9459 expand_debug_expr): Likewise.
9460 * tree-dump.c (dequeue_and_dump): Likewise.
9461 * ubsan.c (instrument_bool_enum_load): Likewise.
9462 * tree-pretty-print.c (print_declaration): Likewise.
9463 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
9464 * tree-ssa-uninit.c (warn_uninitialized_vars): Likewise.
9465 * asan.c (asan_protect_global, instrument_derefs): Likewise.
9466 * tree-into-ssa.c (rewrite_stmt, maybe_register_def,
9467 pass_build_ssa::execute): Likewise.
9468 * var-tracking.c (var_debug_decl, track_expr_p): Likewise.
9469 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost, split_address_cost):
9470 Likewise.
9471 * ipa-split.c (test_nonssa_use, consider_split, mark_nonssa_use):
9472 Likewise.
9473 * tree-inline.c (insert_debug_decl_map, remap_ssa_name,
9474 can_be_nonlocal, remap_decls, copy_debug_stmt,
9475 initialize_inlined_parameters, add_local_variables,
9476 reset_debug_binding, replace_locals_op): Likewise.
9477 * dse.c (can_escape): Likewise.
9478 * ipa-devirt.c (compare_virtual_tables, referenced_from_vtable_p):
9479 Likewise.
9480 * tree-diagnostic.c (default_tree_printer): Likewise.
9481 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
9482 unpack_ts_decl_with_vis_value_fields,
9483 lto_input_ts_decl_common_tree_pointers): Likewise.
9484 * builtins.c (builtin_save_expr, fold_builtin_expect,
9485 readonly_data_expr): Likewise.
9486 * tree-ssa-structalias.c (new_var_info, get_constraint_for_ssa_var,
9487 create_variable_info_for, set_uids_in_ptset, visit_loadstore):
9488 Likewise.
9489 * gimple-streamer-out.c (output_gimple_stmt): Likewise.
9490 * gimplify.c (force_constant_size, gimplify_bind_expr,
9491 gimplify_decl_expr, gimplify_var_or_parm_decl,
9492 gimplify_compound_lval, gimplify_init_constructor,
9493 gimplify_modify_expr, gimplify_asm_expr, gimplify_oacc_declare,
9494 gimplify_type_sizes): Likewise.
9495 * cgraphbuild.c (record_reference, record_type_list, mark_address,
9496 mark_load, mark_store, pass_build_cgraph_edges::execute): Likewise.
9497 * tree-ssa-live.c (mark_all_vars_used_1, remove_unused_scope_block_p,
9498 remove_unused_locals): Likewise.
9499 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p, ptrs_compare_unequal,
9500 ref_maybe_used_by_call_p_1, call_may_clobber_ref_p_1): Likewise.
9501 * function.c (instantiate_expr, instantiate_decls_1,
9502 setjmp_vars_warning, add_local_decl): Likewise.
9503 * alias.c (ao_ref_from_mem, get_alias_set, compare_base_symbol_refs):
9504 Likewise.
9505 * tree-stdarg.c (find_va_list_reference, va_list_counter_struct_op,
9506 va_list_ptr_read, va_list_ptr_write, check_all_va_list_escapes,
9507 optimize_va_list_gpr_fpr_size): Likewise.
9508 * tree-nrv.c (pass_nrv::execute): Likewise.
9509 * tsan.c (instrument_expr): Likewise.
9510 * tree-ssa-dce.c (remove_dead_stmt): Likewise.
9511 * vtable-verify.c (verify_bb_vtables): Likewise.
9512 * tree-dfa.c (ssa_default_def, set_ssa_default_def,
9513 get_ref_base_and_extent): Likewise.
9514 * toplev.c (wrapup_global_declaration_1, wrapup_global_declaration_2):
9515 Likewise.
9516 * tree-sra.c (static bool constant_decl_p, find_var_candidates,
9517 analyze_all_variable_accesses): Likewise.
9518 * tree-nested.c (get_nonlocal_debug_decl,
9519 convert_nonlocal_omp_clauses, note_nonlocal_vla_type,
9520 note_nonlocal_block_vlas, convert_nonlocal_reference_stmt,
9521 get_local_debug_decl, convert_local_omp_clauses,
9522 convert_local_reference_stmt, nesting_copy_decl, remap_vla_decls):
9523 Likewise.
9524 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Likewise.
9525 * stmt.c (decl_overlaps_hard_reg_set_p): Likewise.
9526 * dbxout.c (dbxout_late_global_decl, dbxout_type_fields,
9527 dbxout_symbol, dbxout_common_check): Likewise.
9528 * expr.c (expand_assignment, expand_expr_real_2, expand_expr_real_1,
9529 string_constant): Likewise.
9530 * hsa.c (hsa_get_declaration_name): Likewise.
9531 * passes.c (rest_of_decl_compilation): Likewise.
9532 * tree-ssanames.c (make_ssa_name_fn): Likewise.
9533 * tree-streamer-out.c (pack_ts_decl_common_value_fields,
9534 pack_ts_decl_with_vis_value_fields,
9535 write_ts_decl_common_tree_pointers): Likewise.
9536 * stor-layout.c (place_field): Likewise.
9537 * symtab.c (symtab_node::maybe_create_reference,
9538 symtab_node::verify_base, symtab_node::make_decl_local,
9539 symtab_node::copy_visibility_from,
9540 symtab_node::can_increase_alignment_p): Likewise.
9541 * dwarf2out.c (add_var_loc_to_decl, tls_mem_loc_descriptor,
9542 decl_by_reference_p, reference_to_unused, rtl_for_decl_location,
9543 fortran_common, add_location_or_const_value_attribute,
9544 add_scalar_info, add_linkage_name, set_block_abstract_flags,
9545 local_function_static, gen_variable_die, dwarf2out_late_global_decl,
9546 optimize_one_addr_into_implicit_ptr,
9547 optimize_location_into_implicit_ptr): Likewise.
9548 * gimple-low.c (record_vars_into): Likewise.
9549 * ipa-visibility.c (update_vtable_references): Likewise.
9550 * tree-ssa-address.c (fixed_address_object_p, copy_ref_info):
9551 Likewise.
9552 * lto-streamer-out.c (tree_is_indexable, get_symbol_initial_value,
9553 DFS::DFS_write_tree_body, write_symbol): Likewise.
9554 * langhooks.c (lhd_warn_unused_global_decl,
9555 lhd_set_decl_assembler_name): Likewise.
9556 * attribs.c (decl_attributes): Likewise.
9557 * except.c (output_ttype): Likewise.
9558 * varpool.c (varpool_node::get_create, ctor_for_folding,
9559 varpool_node::assemble_decl, varpool_node::create_alias): Likewise.
9560 * fold-const.c (fold_unary_loc): Likewise.
9561 * ipa-prop.c (ipa_compute_jump_functions_for_edge,
9562 ipa_find_agg_cst_from_init): Likewise.
9563 * omp-low.c (expand_omp_regimplify_p, expand_omp_taskreg,
9564 expand_omp_target, lower_omp_regimplify_p,
9565 grid_reg_assignment_to_local_var_p, grid_remap_prebody_decls,
9566 find_link_var_op): Likewise.
9567 * tree-chrec.c (chrec_contains_symbols): Likewise.
9568 * tree-cfg.c (verify_address, verify_expr, verify_expr_location_1,
9569 gimple_duplicate_bb, move_stmt_op, replace_block_vars_by_duplicates,
9570 execute_fixup_cfg): Likewise.
9571
9572 PR tree-optimization/77901
9573 * tree-ssa-reassoc.c (optimize_range_tests_var_bound): Only optimize
9574 if ranges[i].exp is SSA_NAME when looking for >= and only when
9575 ranges[i].exp is NULL or SSA_NAME when looking for the other
9576 comparison.
9577
9578 2016-10-09 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9579
9580 * ipa-cp.c (ipcp_alignment_lattice): Remove.
9581 (ipcp_param_lattices): Remove field alignment.
9582 (print_all_lattices): Remove call to ipcp_alignment_lattice::print.
9583 (set_all_contains_variable): Remove call to
9584 ipcp_alignment_lattice::set_to_bottom.
9585 (initialize_node_lattices): Likewise.
9586 (propagate_alignment_accross_jump_function): Remove.
9587 (propagate_constants_accross_call): Remove call to
9588 propagate_alignment_accross_jump_function.
9589 (ipcp_store_alignment_results): Remove.
9590 (ipcp_driver): Remove call to ipcp_store_alignment_results.
9591 (propagate_bits_accross_jump_function): Handle ancestor jump function.
9592 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Remove
9593 pretty-printing of alignment jump function.
9594 (ipa_set_jf_unknown): Remove assignment to jfunc->alignment.known.
9595 (ipa_compute_jump_functions_for_edge): Adjust ipa_bits jump function for
9596 alignments and remove computing ipa_alignment jump function.
9597 (ipa_node_params_t::duplicate): Remove copying of src_trans->alignments.
9598 (ipa_write_jump_functions): Remove streaming for ipa_alignment.
9599 (ipa_read_jump_function): Remove reading of ipa_alignment.
9600 (write_ipcp_transformation_info): Remove streaming for alignment
9601 propagation summary.
9602 (read_ipcp_transformation_info): Remove reading of alignment
9603 propagation summary.
9604 (ipcp_update_alignments): Remove.
9605 (ipcp_update_bits): Adjust to set alignment for parameters of pointer
9606 type.
9607 (ipcp_transform_function): Remove call to ipcp_update_alignments()
9608 and remove assignment to (*ipcp_transformations)[node->uid].alignments.
9609 * ipa-prop.h (ipa_alignment): Remove.
9610 (ipa_jump_func): Remove field alignment.
9611 (ipcp_transformation_summary): Remove field alignments.
9612 * doc/invoke.texi: Mark fipa-cp-alignment as obsolete.
9613 * opts.c (default_options_table): Remove entry for fipa-cp-alignment.
9614 (enable_fdo_optimizations): Remove checking for fipa-cp-alignment.
9615
9616 2016-10-08 Eric Botcazou <ebotcazou@adacore.com>
9617
9618 * config/sparc/sparc.h (FIXED_REGISTERS): Add %icc.
9619
9620 * config/visium/visium.c (visium_expand_int_cstore): Revert latest
9621 change.
9622 (visium_expand_fp_cstore): Likewise.
9623
9624 2016-10-08 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9625
9626 * diagnostic-core.h (warning_at_rich_loc_n): Declare.
9627 * diagnostic.c (warning_at_rich_loc_n): New function.
9628 (diagnostic_n_impl_richloc): Likewise.
9629 (diagnostic_n_impl): Move most of the function to
9630 diagnostic_n_impl_richloc and call it.
9631
9632 2016-10-08 Jakub Jelinek <jakub@redhat.com>
9633
9634 * gen-pass-instances.awk: Rewritten.
9635 * Makefile.in (pass-instances.def): Depend on $(PASSES_EXTRA), pass
9636 $(PASSES_EXTRA) after passes.def to the script.
9637 * config/i386/t-i386 (PASSES_EXTRA): Add i386-passes.def.
9638 * config/i386/i386-passes.def: New file.
9639 * config/i386/i386-protos.h (make_pass_insert_vzeroupper,
9640 make_pass_stv): Declare.
9641 * config/i386/i386.c (pass_stv::pass_stv): Initialize timode_p to
9642 false.
9643 (pass_stv::gate): Depending on timode_p member require TARGET_64BIT
9644 or !TARGET_64BIT.
9645 (pass_stv::clone, pass_stv::set_pass_param): New methods.
9646 (pass_stv::timode_p): New non-static data member.
9647 (ix86_option_override): Don't register passes here.
9648
9649 * doc/invoke.texi: Document accepting Else, fallthrough.
9650
9651 * doc/invoke.texi (-Wimplicit-fallthrough): Document FALLTHRU comment
9652 style changes.
9653
9654 * doc/invoke.texi (-Wimplicit-fallthrough): Document the accepted
9655 FALLTHRU comment styles.
9656
9657 2016-10-07 Andrew Pinski <apinski@cavium.com>
9658
9659 * config/aarch64/aarch64-arches.def (AARCH64_ARCH): #undef at the end.
9660 * config/aarch64/aarch64-cores.def (AARCH64_CORE): Likewise.
9661 * config/aarch64/aarch64-fusion-pairs.def (AARCH64_FUSION_PAIR):
9662 Likewise.
9663 * config/aarch64/aarch64-option-extensions.def (AARCH64_OPT_EXTENSION):
9664 Likewise.
9665 * config/aarch64/aarch64-tuning-flags.def (AARCH64_EXTRA_TUNING_OPTION):
9666 Likewise.
9667 * config/aarch64/aarch64-opts.h (AARCH64_CORE): Don't #undef here.
9668 (AARCH64_ARCH): Likewise.
9669 * common/config/aarch64/aarch64-common.c (AARCH64_OPT_EXTENSION):
9670 Likewise.
9671 (AARCH64_CORE): Likewise.
9672 (AARCH64_ARCH): Likewise.
9673 * config/aarch64/aarch64-protos.h (AARCH64_FUSION_PAIR): Likewise.
9674 (AARCH64_EXTRA_TUNING_OPTION): Likewise.
9675 * config/aarch64/aarch64.c (AARCH64_FUION_PAIR): Likewise.
9676 (AARCH64_EXTRA_TUNING_OPTION): Likewise.
9677 (AARCH64_ARCH): Likewise.
9678 (AARCH64_CORE): Likewise.
9679 * config/aarch64/aarch64.h (AARCH64_CORE): Likewise.
9680 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Likewise.
9681 (AARCH64_CORE): Likewise.
9682 (AARCH64_ARCH): Likewise.
9683
9684 2016-10-06 Michael Meissner <meissner@linux.vnet.ibm.com>
9685
9686 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Split
9687 -mfloat128 into -mfloat128-type that enables the IEEE 128-bit
9688 floating point type infrastructre, and -mfloat128 that enables the
9689 keyword. Define __FLOAT128__ if -mfloat128, and __FLOAT128_TYPE__
9690 if -mfloat128-type. Define __ibm128 to be long double by default.
9691 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print whether
9692 the IEEE 128-bit floating point type infrastructure should
9693 automatically be enabled.
9694 (rs6000_init_hard_regno_mode_ok): Switch to use -mfloat128-type
9695 instead of -mfloat128 to enable KFmode.
9696 (rs6000_option_override_internal): Split the option -mfloat128
9697 into -mfloat128-type and -mfloat128. On Linux PowerPC 64-bit
9698 systems, automatically set -mfloat128-type, but don't enable it on
9699 other operating systems. Move setting the long double size and
9700 IEEE quad support before the IEEE 128-bit floating point changes.
9701 (rs6000_init_builtins): Do not create a unique type for __ibm128
9702 if long double is IBM extended double, instead rely on __ibm128
9703 being defined as 'long double'. If -mfloat128-type and not
9704 -mfloat128, create the KFmode type with an undocumented __ieee128
9705 keyword.
9706 (rs6000_init_libfuncs): Use -mfloat128-type instead of
9707 -mfloat128 for tests about the types, but keep tests for
9708 -mfloat128 to enable the keyword support.
9709 (rs6000_complex_function_value): Likewise.
9710 (rs6000_scalar_mode_supported_p): Likewise.
9711 (rs6000_floatn_mode): Likewise.
9712 (rs6000_c_mode_for_suffix): Likewise.
9713 (rs6000_opt_masks): Add -mfloat128-type.
9714 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add support for
9715 -mfloat128-type being split from -mfloat128. Add
9716 -mfloat128-hardware, which was missing.
9717 * config/rs6000/rs6000.opt (-mfloat128): Split -mfloat128 into
9718 -mfloat128 and -mfloat128-type:
9719 (-mfloat128-type): Likewise.
9720 * config/rs6000/linux64.h (TARGET_FLOAT128_ENABLE_TYPE): Define so
9721 that 64-bit Linux systems with enable -mfloat128-type by default
9722 on VSX systems.
9723 * config/rs6000/rs6000.h (TARGET_FLOAT128_ENABLE_TYPE): Likewise.
9724 (FLOAT128_VECTOR_P): Switch IEEE 128-bit floating points to use
9725 -mfloat128-type instead of -mfloat128.
9726 (FLOAT128_2REG_P): Likewise.
9727 (MASK_FLOAT128_TYPE): Likewise.
9728 (ALTIVEC_ARG_MAX_RETURN): Likewise.
9729 (RS6000_BTM_FLOAT128): Likewise.
9730 (TARGET_FLOAT128): Poison old identifiers.
9731 (OPTION_MASK_FLOAT128): Likewise.
9732 (MASK_FLOAT128): Likewise.
9733 * config/rs6000/rs6000.md (FP): Likewise.
9734 (FLOAT128): Likewise.
9735 (fix_trunc<mode>di2): Likewise.
9736 (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
9737 (floatdi<mode>2): Likewise.
9738 (floatuns<SDI:mode><IEEE128:mode>2): Likewise.
9739 (neg<mode>2, FLOAT128 iterator): Likewise.
9740 (abs<mode>2, FLOAT128 iterator): Likewise.
9741 (ieee_128bit_negative_zero): Likewise.
9742 (ieee_128bit_vsx_neg<mode>2): Likewise.
9743 (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
9744 (ieee_128bit_vsx_abs<mode>2): Likewise.
9745 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
9746 (ieee_128bit_vsx_nabs<mode>2): Likewise.
9747 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
9748 (extendiftf2): Likewise.
9749 (extendifkf2): Likewise.
9750 (extendtfkf2): Likewise.
9751 (trunciftf2): Likewise.
9752 (truncifkf2): Likewise.
9753 (trunckftf2): Likewise.
9754 (trunctfif2): Likewise.
9755 (extendkftf2): Likewise.
9756 (trunctfkf2): Likewise.
9757
9758 2016-10-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9759
9760 * simplify-rtx.c (simplify_immed_subreg): Zero-initialize tmp array
9761 before merging in bytes to pass down to real_from_target.
9762
9763 2016-10-07 Richard Biener <rguenther@suse.de>
9764
9765 * tree-ssa-propagate.c (replace_phi_args_in): Remove no longer
9766 required hack.
9767 (substitute_and_fold_dom_walker::before_dom_children):
9768 Substitute and fold before pass specific folding to avoid
9769 feeding that with SSA names that will be later released.
9770 * tree-ssa-ccp.c (get_value_for_expr): Guard for new SSA names
9771 introduced by folding and visited by evaluate_stmt called during
9772 ccp_fold_stmt.
9773 (likely_value): Likewise.
9774 (evaluate_stmt): Likewise.
9775 * tree-vrp.c (simplify_truth_ops_using_ranges): Fold modified stmt.
9776 (simplify_div_or_mod_using_ranges): Likewise.
9777 (simplify_min_or_max_using_ranges): Likewise.
9778 (simplify_abs_using_ranges): Likewise.
9779 (simplify_conversion_using_ranges): Likewise.
9780 (simplify_float_conversion_using_ranges): Likewise.
9781 (simplify_stmt_using_ranges): Likewise.
9782
9783 2016-10-07 Marek Polacek <polacek@redhat.com>
9784
9785 * gimplify.c (should_warn_for_implicit_fallthrough): Check for
9786 FALLTHROUGH_LABEL_P here...
9787 (warn_implicit_fallthrough_r): ...not here.
9788
9789 2016-10-07 Bernd Schmidt <bschmidt@redhat.com>
9790
9791 PR tree-optimization/77880
9792 * expr.c (by_pieces_ninsns): Use unsigned HOST_WIDE_INT where
9793 necessary.
9794
9795 2016-10-07 Marek Polacek <polacek@redhat.com>
9796
9797 PR c++/77803
9798 * gimplify.c (last_stmt_in_scope): Add check for FALLTHROUGH ().
9799
9800 2016-10-07 Richard Biener <rguenther@suse.de>
9801
9802 * bitmap.h: Document constraints on bitmap modification while
9803 iterating over it.
9804
9805 2016-10-07 Richard Biener <rguenther@suse.de>
9806
9807 * bitmap.c (bitmap_elem_to_freelist): Set indx to -1.
9808 * bitmap.h (bmp_iter_set): When advancing to the next element
9809 check that we didn't remove the current one.
9810 (bmp_iter_and): Likewise.
9811 (bmp_iter_and_compl): Likewise.
9812 * tree-ssa.c (release_defs_bitset): Do not remove worklist bit
9813 we currently iterate on but keep a one-level queue.
9814 * sched-deps.c (remove_from_deps): Do not clear current bit
9815 but keep a one-level queue.
9816
9817 2016-10-07 Jakub Jelinek <jakub@redhat.com>
9818
9819 PR tree-optimization/77664
9820 * tree-ssa-reassoc.c (update_range_test): Also clear low and high
9821 for the other ranges.
9822 (optimize_range_tests_diff): Fix up formatting.
9823 (optimize_range_tests_var_bound): New function.
9824 (optimize_range_tests): Use it.
9825
9826 2016-10-07 Martin Liska <mliska@suse.cz>
9827
9828 * coverage.c (build_gcov_exit_decl): Fix priority what
9829 should be really 99.
9830
9831 2016-10-07 Richard Biener <rguenther@suse.de>
9832
9833 * gimple-low.c (lower_gimple_bind): Clear DECL_CHAIN of
9834 vars in gimple_bind_vars but not in BLOCK_VARS.
9835
9836 2016-10-07 Richard Biener <rguenther@suse.de>
9837
9838 PR tree-optimization/77879
9839 * tree-ssa-structalias.c (handle_const_call): Properly handle
9840 NRV return slots.
9841 (handle_pure_call): Likewise.
9842
9843 2016-10-06 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
9844
9845 * config/rs6000/rs6000.c (rs6000_elf_asm_out_constructor)
9846 (rs6000_elf_asm_out_destructor): increase size of buf to avoid
9847 possible overflow.
9848
9849 2016-10-06 Andrew Pinski <apinski@cavium.com>
9850
9851 * config/aarch64/aarch64-cores.def: Add a comment before each
9852 set of cores.
9853
9854 2016-10-06 Kugan Vivekanandarajah <kuganv@linaro.org>
9855
9856 PR tree-optimization/77862
9857 * tree-vrp.c (add_equivalence): Use get_value_range so that
9858 num_vr_values is checked before accessing vr_values.
9859
9860 2016-10-06 Kugan Vivekanandarajah <kuganv@linaro.org>
9861
9862 * tree-vrp.c (evrp_dom_walker::before_dom_children): Handle
9863 POINTER_TYPE_P.
9864
9865 2016-10-05 Jeff Law <law@redhat.com>
9866
9867 PR tree-optimization/71661
9868 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Handle case when
9869 removal of a forwarder exposes a new natural loop.
9870
9871 2016-10-06 Uros Bizjak <ubizjak@gmail.com>
9872
9873 * config/i386/sse.md (andnot<mode>3): Add FALLTHRU comments.
9874 Introduce ssesuffix variable.
9875 (<mask_codefor><code><mode>3<mask_name>): Ditto.
9876 (*<code><mode>3): Ditto.
9877
9878 2016-10-06 Jan Hubicka <hubicka@ucw.cz>
9879
9880 * postreload.c (reload_cse_simplify): Skip also USE when detecting
9881 noop move.
9882
9883 2016-10-06 Richard Biener <rguenther@suse.de>
9884
9885 PR tree-optimization/77855
9886 * tree-ssa-pre.c (prune_clobbered_mems): Queue exprs to remove
9887 instead of removing the current item while iterating over the set
9888 which is not safe.
9889
9890 2016-10-06 James Clarke <jrtc27@jrtc27.com>
9891 Eric Botcazou <ebotcazou@adacore.com>
9892
9893 PR target/77759
9894 * config/sparc/sparc.c (classify_data_t): Remove int_regs field.
9895 (classify_registers): Don't set it
9896 (function_arg_slotno): Don't initialize and test it. Tidy up.
9897
9898 2016-10-06 Richard Biener <rguenther@suse.de>
9899
9900 PR tree-optimization/77839
9901 * tree-ssa-sccvn.c (set_ssa_val_to): Forbid value -> constant value
9902 lattice transition.
9903
9904 2016-10-06 Martin Liska <mliska@suse.cz>
9905
9906 * gcc.c: Set -fprofile-update=atomic when profiling is
9907 enabled and -pthread is set. Warn when one combines
9908 -pthread and -fprofile-update=single for an app using
9909 profiling code.
9910
9911 2016-10-06 Martin Liska <mliska@suse.cz>
9912
9913 PR bootstrap/77788
9914 * expmed.h (mul_highpart_cost_ptr): Add an gcc_assert.
9915 * gimple-ssa-strength-reduction.c (slsr_process_cast):
9916 Initialize a pointer to NULL.
9917 (slsr_process_copy): Likewise.
9918 * input.c (location_get_source_line): Likewise.
9919 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
9920
9921 2016-10-05 Andrew Senkevich <andrew.senkevich@intel.com>
9922
9923 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PCOMMIT_UNSET,
9924 OPTION_MASK_ISA_PCOMMIT_SET): Deleted definitions.
9925 (ix86_handle_option): Deleted handle of OPT_mpcommit.
9926 * config.gcc: Deleted pcommitintrin.h
9927 * config/i386/pcommitintrin.h: Deleted file.
9928 * config/i386/cpuid.h (bit_PCOMMIT): Deleted.
9929 * config/i386/driver-i386.c (host_detect_local_cpu): Deleted pcommit
9930 detection.
9931 * config/i386/i386-c.c (ix86_target_macros_internal): Deleted define
9932 __PCOMMIT__.
9933 * config/i386/i386.c (ix86_target_string): Deleted -mpcommit.
9934 (PTA_PCOMMIT): Deleted define.
9935 (ix86_option_override_internal): Deleted handle of option.
9936 (ix86_valid_target_attribute_inner_p): Deleted pcommit.
9937 * config/i386/i386-builtin.def (IX86_BUILTIN_PCOMMIT,
9938 __builtin_ia32_pcommit): Deleted.
9939 * config/i386/i386.h (TARGET_PCOMMIT, TARGET_PCOMMIT_P): Deleted.
9940 * config/i386/i386.md (unspecv): Deleted UNSPECV_PCOMMIT.
9941 (pcommit): Deleted instruction.
9942 * config/i386/i386.opt: Mention -mpcommit deprecation.
9943 * config/i386/x86intrin.h: Deleted inclusion of pcommitintrin.h.
9944
9945 2016-10-05 Uros Bizjak <ubizjak@gmail.com>
9946
9947 PR target/77874
9948 * config/i386/sse.md (<mask_codefor><code><mode>3<mask_name>):
9949 Remove wrong assert.
9950 (<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>:
9951 Use <round_constraint> as operand 1 constraint.
9952
9953 2016-10-05 Jakub Jelinek <jakub@redhat.com>
9954
9955 PR sanitizer/66343
9956 * ubsan.c (ubsan_create_data): Call initialize_sanitizer_builtins here.
9957 (ubsan_instrument_float_cast): And not here.
9958
9959 PR sanitizer/66343
9960 * ubsan.c (ubsan_ids): New GTY(()) array.
9961 (ubsan_type_descriptor, ubsan_create_data): Use ubsan_ids
9962 instead of static local counters.
9963
9964 2016-10-05 Martin Sebor <msebor@redhat.com>
9965
9966 PR bootstrap/77819
9967 * config/linux.h (TARGET_PRINTF_POINTER_FORMAT): Define macro.
9968 * config/linux.c (gnu_libc_printf_pointer_format): Remove.
9969 * targhooks.c [DEFAULT_LIBC == LIBC_UCLIBC) && SINGLE_LIBC]
9970 (default_printf_pointer_format): Define function.
9971 * targhooks.c (linux_printf_pointer_format): Define new function.
9972 * targhooks.h (linux_printf_pointer_format): Declare.
9973 (gnu_libc_printf_pointer_format): Remove declaration.
9974
9975 2016-10-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9976
9977 * fold-const.c (native_encode_real): Fix logic for selecting offset
9978 to write to when BYTES_BIG_ENDIAN.
9979
9980 2016-10-05 Wilco Dijkstra <wdijkstr@arm.com>
9981
9982 * builtins.c (fold_builtin_strchr): Remove function.
9983 (fold_builtin_strrchr): Likewise.
9984 (fold_builtin2): Remove strchr, index, strrchr, rindex cases.
9985 * gimple-fold.c (target_char_cst_p): New function.
9986 (gimple_fold_builtin_strchr) Add more foldings.
9987 (gimple_fold_builtin): Add index, strrchr, rindex cases.
9988
9989 2016-10-05 Richard Biener <rguenther@suse.de>
9990
9991 PR middle-end/77863
9992 * genmatch.c (capture_info::walk_c_expr): Diagnose unknown
9993 capture ids in c-exprs.
9994
9995 2016-10-05 Richard Biener <rguenther@suse.de>
9996
9997 PR middle-end/77826
9998 * genmatch.c (dt_operand::gen_match_op): Amend operand_equal_p
9999 with types_match for GIMPLE code gen to handle type mismatched
10000 constants properly.
10001 (dt_operand::gen): Adjust.
10002 * match.pd ((X /[ex] A) * A -> X): Properly handle converted
10003 and constant A.
10004
10005 2016-10-05 Richard Biener <rguenther@suse.de>
10006
10007 * match.pd (copysign(x, CST) -> [-]abs (x)): New pattern.
10008
10009 2016-10-05 Richard Biener <rguenther@suse.de>
10010
10011 PR middle-end/77842
10012 * genmatch.c (parser::parse_c_expr): Handle premature EOF.
10013
10014 2016-10-05 Pierre-Marie de Rodat <derodat@adacore.com>
10015
10016 * dwarf2out.c (dwarf2out_imported_module_or_decl): Move DWARF
10017 version check to protect only DW_TAG_imported_module generation.
10018
10019 2016-10-05 Richard Biener <rguenther@suse.de>
10020
10021 PR middle-end/55152
10022 * match.pd (min(a,-a) -> -abs(a)): New pattern.
10023
10024 2016-10-04 Ian Lance Taylor <iant@golang.org>
10025
10026 * explow.c (allocate_dynamic_stack_space): Call
10027 do_pending_stack_adjust before handling flag_split_stack.
10028
10029 2016-10-04 David Malcolm <dmalcolm@redhat.com>
10030
10031 * genattrtab.c (make_internal_attr): Supply dummy column number to
10032 file_location ctor.
10033 (main): Likewise.
10034 * genoutput.c (init_insn_for_nothing): Likewise.
10035 * gensupport.c (add_define_attr): Likewise.
10036 * read-md.c (message_at_1): Print column number.
10037 (fatal_with_file_and_line): Likewise.
10038 (rtx_reader::read_char): Track column numbers.
10039 (rtx_reader::unread_char): Likewise.
10040 (rtx_reader::rtx_reader): Initialize m_read_md_colno.
10041 (rtx_reader::handle_include): Stash and restore m_read_md_colno.
10042 (rtx_reader::handle_file): Initialize m_read_md_colno.
10043 (rtx_reader::get_current_location): Supply column number to
10044 file_location ctor.
10045 * read-md.h (struct file_location): Add field "colno".
10046 (file_location::file_location): Likewise.
10047 (rtx_reader::get_colno): New accessor.
10048 (rtx_reader::m_read_md_colno): New field.
10049 (rtx_reader::m_last_line_colno): New field.
10050
10051 2016-10-04 Jakub Jelinek <jakub@redhat.com>
10052
10053 * doc/extend.texi (Java Exceptions): Remove.
10054 (java_interface): Remove.
10055
10056 2016-10-04 Doug Gilmore <doug.gilmore@imgtec.com>
10057
10058 PR tree-optimization/77808
10059 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Check base_addr
10060 and addr are different before copying points-to information.
10061
10062 2016-10-04 Uros Bizjak <ubizjak@gmail.com>
10063
10064 * config/i386/x86-tune.def (X86_TUNE_VECTORIZE_DOUBLE): Remove.
10065 * config/i386/i386.h (TARGET_VECTORIZE_DOUBLE): Remove.
10066 * config/i386/i386.c (ix86_add_stmt_cost): Use TARGET_BONNEL instead
10067 of !TARGET_VECTORIZE_DOUBLE when penalizing DFmode vector ops.
10068
10069 2016-10-04 Richard Biener <rguenther@suse.de>
10070
10071 PR tree-optimization/77399
10072 * tree-ssa-forwprop.c (simplify_vector_constructor): Properly
10073 verify the target can convert.
10074
10075 2016-10-04 Richard Biener <rguenther@suse.de>
10076
10077 PR middle-end/77833
10078 * explow.c (plus_constant): Verify the mode of the constant
10079 pool offset before calling plus_constant.
10080
10081 2016-10-04 Richard Biener <rguenther@suse.de>
10082
10083 PR middle-end/77407
10084 * match.pd (X / abs (X) -> X < 0 ? -1 : 1): Drop vector
10085 type support, mark with :C.
10086 (X / -X -> -1): Mark with :C.
10087
10088 2016-10-04 Jakub Jelinek <jakub@redhat.com>
10089
10090 * defaults.h (JCR_SECTION_NAME, TARGET_USE_JCR_SECTION): Remove.
10091 * system.h (JCR_SECTION_NAME, TARGET_USE_JCR_SECTION): Poison.
10092 * doc/tm.texi.in (TARGET_USE_JCR_SECTION): Remove.
10093 * doc/tm.texi: Regenerated.
10094 * config/i386/mingw32.h (TARGET_USE_JCR_SECTION): Remove.
10095 * config/i386/cygming.h (TARGET_USE_JCR_SECTION): Remove.
10096 * config/darwin.h (JCR_SECTION_NAME): Remove.
10097 * config/pa/pa64-hpux.h (JCR_SECTION_NAME): Remove.
10098 * config/rs6000/aix71.h (TARGET_USE_JCR_SECTION): Remove.
10099 * config/rs6000/aix51.h (TARGET_USE_JCR_SECTION): Remove.
10100 * config/rs6000/aix52.h (TARGET_USE_JCR_SECTION): Remove.
10101 * config/rs6000/aix53.h (TARGET_USE_JCR_SECTION): Remove.
10102 * config/rs6000/aix61.h (TARGET_USE_JCR_SECTION): Remove.
10103
10104 2016-10-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10105
10106 * ipa-cp.c (propagate_bits_accross_jump_function): Introduce space
10107 between "because" and "param" in dump message in call to fprintf.
10108
10109 2016-10-03 Jeff Law <law@redhat.com>
10110
10111 PR tree-optimization/71550
10112 PR tree-optimization/71403
10113 * tree-ssa-threadbackward.c: Include tree-vectorizer.h
10114 (profitable_jump_thread_path): Also return boolean indicating if
10115 the realized path will create an irreducible loop.
10116 Remove loop depth tests from 71403.
10117 (fsm_find_control_statement_thread_paths): Remove loop depth tests
10118 from 71403. If threading will create an irreducible loop, then
10119 throw away loop iteration and related information.
10120
10121 2016-10-03 Uros Bizjak <ubizjak@gmail.com>
10122
10123 * configure.ac (strict_warn): Merge -Wmissing-format-attribute and
10124 -Woverloaded-virtual checks for warning options.
10125 * configure: Regenerate.
10126
10127 2016-10-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
10128
10129 PR preprocessor/77699
10130 * input.c (maybe_grow): Don't allocate one byte extra headroom.
10131 (get_next_line): Return false on error.
10132 (read_next_line): Removed, use get_next_line instead.
10133 (read_line_num): Don't copy the line.
10134 (location_get_source_line): Don't use static data.
10135 (selftest::test_reading_source_line): Add more test cases.
10136
10137 2016-10-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10138
10139 Revert
10140 2016-09-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10141
10142 * ifcvt.c (noce_try_avoid_const_materialization): New function.
10143 (noce_process_if_block): Use it.
10144
10145 2016-10-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
10146
10147 * doc/invoke.texi: Update -Wint-in-bool-context.
10148
10149 2016-10-02 Jakub Jelinek <jakub@redhat.com>
10150
10151 * dwarf2out.c (output_fde, output_call_frame_info,
10152 dwarf2out_do_cfi_startproc, set_indirect_string,
10153 gen_internal_sym, output_die, output_line_info): Use
10154 MAX_ARTIFICIAL_LABEL_BYTES as char array sizes for
10155 ASM_GENERATE_INTERNAL_LABEL output.
10156
10157 2016-10-01 Richard Biener <rguenther@suse.de>
10158
10159 PR middle-end/77798
10160 * genmatch.c (get_operand_type): Add operand position arg
10161 and handle COND_EXPR comparison operand with fixed boolean_type_node.
10162 (expr::gen_transform): Adjust.
10163 (dt_simplify::gen_1): Likewise.
10164
10165 2016-10-01 Jakub Jelinek <jakub@redhat.com>
10166
10167 * config/i386/sse.md (<mask_codefor><code><mode>): Add FALLTHRU
10168 comments. Simplify asserts, remove unnecessary conditions.
10169 Formatting fixes.
10170 (*<code><mode>3): Likewise.
10171
10172 2016-09-30 Jakub Jelinek <jakub@redhat.com>
10173
10174 * doc/invoke.texi (-Wregister): Document.
10175
10176 2016-09-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
10177
10178 * configure.ac: Split CHECKING_P into CHECKING_P and
10179 ENABLE_EXTRA_CHECKING.
10180 * configure: Regenerated.
10181 * config.in: Adjust commment of CHECKING_P. Add ENABLE_EXTRA_CHECKING.
10182 * common.opt (flag_checking): Use CHECKING_P and ENABLE_EXTRA_CHECKING.
10183
10184 2016-09-30 Prasad Ghangal <prasad.ghangal@gmail.com>
10185
10186 PR other/31566
10187 * gcc.c (process_command): For @filename handling, output
10188 the correct name if the file does not exist.
10189
10190 2016-09-30 Marek Polacek <polacek@redhat.com>
10191
10192 * config/aarch64/aarch64-simd.md: Adjust fall through comments.
10193 * config/alpha/predicates.md: Likewise.
10194
10195 2016-09-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10196
10197 * ifcvt.c (noce_try_avoid_const_materialization): New function.
10198 (noce_process_if_block): Use it.
10199
10200 2016-09-30 Martin Liska <mliska@suse.cz>
10201
10202 * doc/invoke.texi: Document asan-use-after-return that
10203 it's disabled by default in runtime.
10204
10205 2016-09-30 Richard Biener <rguenther@suse.de>
10206
10207 * tree-vrp.c (intersect_ranges): If we failed to handle
10208 the intersection choose a constant singleton range if available.
10209
10210 2016-09-30 Richard Biener <rguenther@suse.de>
10211
10212 PR tree-optimization/77399
10213 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
10214 float <-> int conversions.
10215
10216 2016-09-30 Alan Modra <amodra@gmail.com>
10217
10218 * config/rs6000/rs6000.c (rs6000_opt_vars): Revert last change.
10219
10220 2016-09-29 Uros Bizjak <ubizjak@gmail.com>
10221
10222 * config/i386/driver-i386.c (host_detect_local_cpu): Check maximum
10223 ext_level before calling CPUID with 0x80000008.
10224 Simplify xgetbv checks.
10225
10226 2016-09-29 David Malcolm <dmalcolm@redhat.com>
10227
10228 * Makefile.in (OBJS): Add print-rtl-function.o.
10229 * print-rtl-function.c: New file.
10230 * print-rtl.h (print_rtx_function): New decl.
10231
10232 2016-09-29 Uros Bizjak <ubizjak@gmail.com>
10233
10234 PR target/77756
10235 * config/i386/cpuid.h (__get_cpuid_count): New.
10236 (__get_cpuid): Rename __level to __leaf.
10237
10238 2016-09-29 Marek Polacek <polacek@redhat.com>
10239
10240 * genattrtab.c (write_attr_case): Also emit FALLTHRU marker.
10241
10242 2016-09-29 Bernd Schmidt <bschmidt@redhat.com>
10243
10244 PR target/77718
10245 * builtins.c (expand_builtin_memcmp): Don't swap args unless
10246 result is only being compared with zero.
10247
10248 2016-09-29 Marek Polacek <polacek@redhat.com>
10249
10250 * dwarf2out.c (loc_descriptor): Add fall through comment.
10251 (add_const_value_attribute): Likewise.
10252
10253 2016-09-29 Matthew Wahab <matthew.wahab@arm.com>
10254
10255 * config/arm/arm.md (*arm_movsi_insn): Replace "t2" arch attribute
10256 with "v6t2". Move "arch" attribute above "pool_range".
10257 * config/arm/vfp.md (*arm_movhi_vfp): Replace "t2" arch attribute
10258 with "v6t2".
10259 (*thumb2_movhi_vfp): Likewise.
10260 (*arm_movhi_fp16): Likewise.
10261 (*thumb2_movhi_fp16): Likewise.
10262 (*arm_movsi_vfp): Remove "arch" attribute.
10263 (*thumb2_movsi_vfp): Likewise.
10264
10265 2016-09-29 Martin Liska <mliska@suse.cz>
10266
10267 * doc/extend.texi: Remove limitation of Objective C for
10268 __attribute__((constructor)) and __attribute__((destructor)).
10269
10270 2016-09-29 Richard Biener <rguenther@suse.de>
10271
10272 PR tree-optimization/77768
10273 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
10274 Handle stores to readonly memory when removing redundant stores.
10275
10276 2016-09-29 Richard Biener <rguenther@suse.de>
10277
10278 PR middle-end/77407
10279 * match.pd: Add X / abs (X) -> X < 0 ? -1 : 1 and
10280 X / -X -> -1 simplifications.
10281
10282 2016-09-29 Richard Biener <rguenther@suse.de>
10283
10284 PR middle-end/55152
10285 * match.pd: Add max(a,-a) -> abs(a) pattern.
10286 * tree-ssa-phiopt.c (minmax_replacement): Disable for
10287 HONOR_SIGNED_ZEROS types.
10288
10289 2016-09-29 James Greenhalgh <james.greenhalgh@arm.com>
10290
10291 * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Remove.
10292 * system.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Poison.
10293
10294 2016-09-29 Richard Biener <rguenther@suse.de>
10295
10296 * tree-vrp.c (set_defs_to_varying): New helper avoiding
10297 writing to vr_const_varying.
10298 (vrp_initialize): Call it.
10299 (vrp_visit_stmt): Likewise.
10300 (evrp_dom_walker::before_dom_children): Likewise.
10301
10302 2016-09-29 Richard Biener <rguenther@suse.de>
10303
10304 * tree-vect-stmts.c (vectorizable_load): Avoid emitting vector
10305 constructors with vector elements.
10306
10307 2016-09-29 Richard Biener <rguenther@suse.de>
10308
10309 PR tree-optimization/77768
10310 * tree-ssa-sccvn.c (visit_reference_op_store): Properly deal
10311 with stores to a place we know has a constant value.
10312
10313 2016-09-29 Alan Modra <amodra@gmail.com>
10314
10315 * config/rs6000/sysv4.opt (mgnu-attribute): New option.
10316 * doc/invoke.texi: Document it.
10317 * config/rs6000/rs6000.c (HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE): Define.
10318 (rs6000_passes_float): Comment.
10319 (rs6000_passes_long_double): New static var.
10320 (call_ABI_of_interest): Return false unless rs6000_gnu_attr is set.
10321 (init_cumulative_args): Set up to emit fp .gnu_attribute for
10322 ELF 64-bit ABIs as well as 32-bit ELF. Correct rs6000_passes_float
10323 to include fp values returned in vectors.
10324 Set rs6000_passes_long_double.
10325 (rs6000_function_arg_advance_1): Likewise for function args.
10326 (rs6000_elf_file_end): Emit fp .gnu_attribute for ELF 64-bit ABIs,
10327 and SPE. Emit long double tag value too.
10328 (rs6000_opt_vars): Add gnu-attr.
10329 * configure.ac (HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE): New ppc32 test.
10330 * configure: Regenerate.
10331 * config.in: Regenerate.
10332
10333 2016-09-28 Jakub Jelinek <jakub@redhat.com>
10334
10335 * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Use x > 0 instead
10336 of 0 < x.
10337 (format_floating, format_string, format_directive,
10338 get_destination_size, pass_sprintf_length::handle_gimple_call):
10339 Likewise.
10340
10341 2016-09-28 Jakub Jelinek <jakub@redhat.com>
10342
10343 * gimple-ssa-sprintf.c: Fix comment formatting.
10344 (format_integer): Use is_gimple_assign.
10345 (pass_sprintf_length::handle_gimple_call): Use gimple_call_builtin_p
10346 and gimple_call_fndecl. Reorder case BUILT_IN_SPRINTF_CHK. Fix up
10347 BUILT_IN_SNPRINTF_CHK comment. Replace "to to" with "to" in comment.
10348 (pass_sprintf_length::execute): Use is_gimple_call.
10349
10350 2016-09-28 Wilco Dijkstra <wdijkstr@arm.com>
10351
10352 * gimple-fold.c (gimple_fold_builtin): After failing to fold
10353 strchr, also try the generic folding.
10354
10355 2016-09-28 Martin Sebor <msebor@redhat.com>
10356
10357 PR c/77762
10358 * gimple-ssa-sprintf.c (pass_sprintf_length::handle_gimple_call):
10359 Fix typos.
10360
10361 2016-09-28 Martin Sebor <msebor@redhat.com>
10362
10363 PR middle-end/77683
10364 * gimple-ssa-sprintf.c (format_integer): Fail gracefully when
10365 length modifier is not expected.
10366 (format_floating): Ignore l length modifier and fail gracefuly
10367 when it isn't one of the other expected ones.
10368
10369 2016-09-28 Martin Sebor <msebor@redhat.com>
10370
10371 PR bootstrap/77753
10372 * varasm.c (assemble_addr_to_section): Increase local buffer size.
10373
10374 2016-09-27 Richard Biener <rguenther@suse.de>
10375
10376 * dwarf2out.c (cu_die_list): New global.
10377 (dwarf2out_finish): Walk cu_die_list instead of limbo DIEs. Add
10378 main_comp_unit_die to cu_die_list if we created it.
10379 Move break_out_includes ...
10380 (dwarf2out_early_finish): ... here. Push created CU DIEs onto
10381 the cu_die_list.
10382
10383 2016-09-28 Richard Biener <rguenther@suse.de>
10384
10385 * dwarf2out.c (struct die_struct): Add removed flag.
10386 (lookup_type_die): If the DIE is marked as removed, clear
10387 TYPE_SYMTAB_DIE and return NULL.
10388 (lookup_decl_die): If the DIE is marked as removed, remove it
10389 from the hash and return NULL.
10390 (mark_removed): New helper.
10391 (prune_unused_types_prune): Call it for removed DIEs.
10392 (gen_subprogram_die): Move the premark_used_types call to after
10393 DIEs for the functions scopes are generated.
10394 (process_scope_var): Do not re-create pruned types or type decls.
10395 Make sure to also re-parent type decls.
10396 (dwarf2out_finish): Move unused type pruning and debug_types
10397 handling ...
10398 (dwarf2out_early_finish): ... here.
10399
10400 2016-09-29 Claudiu Zissulescu <claziss@synopsys.com>
10401
10402 * config/arc/arc-c.c: New file.
10403 * config/arc/arc-c.def: Likewise.
10404 * config/arc/t-arc: Likewise.
10405 * config.gcc: Include arc-c.o as c and cpp object.
10406 * config/arc/arc-protos.h (arc_cpu_cpp_builtins): Add prototype.
10407 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Use
10408 arc_cpu_cpp_builtins.
10409
10410 2016-09-29 Claudiu Zissulescu <claziss@synopsys.com>
10411
10412 * config/arc/arc.md (*rotrsi3_cnt1): New pattern.
10413 (*ashlsi2_cnt1, *lshrsi3_cnt1, *ashrsi3_cnt1): Likewise.
10414
10415 2016-09-28 Nathan Sidwell <nathan@acm.org>
10416
10417 * gimple-pretty-print.c (dump_gimple_call_args): Simplify "' "
10418 printing.
10419
10420 2016-09-28 Wilco Dijkstra <wdijkstr@arm.com>
10421
10422 PR tree-optimization/61056
10423 * gimple-fold.c (gimple_fold_builtin_strchr):
10424 New function to optimize strchr (s, 0) to strlen.
10425 (gimple_fold_builtin): Add BUILT_IN_STRCHR case.
10426
10427 2016-09-27 Robin Dapp <rdapp@linux.vnet.ibm.com>
10428
10429 PR tree-optimization/77724
10430 * tree-vect-loop-manip.c (create_intersect_range_checks_index):
10431 Add tree_fits_shwi_p check.
10432
10433 2016-09-27 Jakub Jelinek <jakub@redhat.com>
10434
10435 * auto-inc-dec.c (try_merge): Remove break after return.
10436 * cselib.c (autoinc_split): Likewise.
10437 * explow.c (promote_mode): Likewise.
10438 * fixed-value.c (fixed_arithmetic): Likewise.
10439 * hsa.c (hsa_internal_fn::get_arity): Likewise.
10440 * rtlanal.c (modified_between_p, modified_in_p): Likewise.
10441 * trans-mem.c (get_attrs_for): Likewise.
10442 * tree-if-conv.c (if_convertible_stmt_p): Likewise.
10443 * tree-vrp.c (simplify_stmt_using_ranges): Likewise.
10444 * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Likewise.
10445 * config/aarch64/aarch64.c (aarch64_get_condition_code_1): Likewise.
10446 * config/c6x/c6x.c (c6x_get_unit_specifier): Likewise.
10447 * config/cr16/cr16.c (legitimate_pic_operand_p): Likewise.
10448 * config/cris/cris.c (cris_op_str): Likewise.
10449 * config/mn10300/mn10300.c (cc_flags_for_code): Likewise.
10450 * config/tilepro/tilepro.c (tilepro_emit_setcc_internal_di): Likewise.
10451
10452 2016-09-27 Nathan Sidwell <nathan@codesourcery.com>
10453
10454 * internal-fn.h (IFN_UNIQUE_CODES, IFN_GOACC_LOOP_CODES,
10455 IFN_GOACC_REDUCTION_CODES): New.
10456 (enum ifn_unique_kind, enum ifn_goacc_loop_kind, enum
10457 ifn_goacc_reduction_kind): Use them.
10458 * gimple-pretty-print.c (dump_gimple_call_args): Decode first arg
10459 of internal functions, when applicable.
10460
10461 2016-09-27 Maciej W. Rozycki <macro@imgtec.com>
10462
10463 * config/mips/constraints.md (d): Fix documentation.
10464 * doc/md.texi (Machine Constraints): Update accordingly.
10465
10466 2016-09-27 Richard Biener <rguenther@suse.de>
10467
10468 * dwarf2out.c (dwarf2out_init): Move text_section_line_info,
10469 cur_line_info_table initialization ...
10470 (dwarf2out_assembly_start): ... here.
10471
10472 2016-09-27 Matthew Wahab <matthew.wahab@arm.com>
10473
10474 * config/arm/arm.md (*arm_movsi_insn): Add "arch" attribute.
10475 * config/arm/vfp.md (*arm_movhi_vfp): Likewise.
10476 (*thumb2_movhi_vfp): Likewise.
10477 (*arm_movhi_fp16): Remove predication operand from VMOV.F16
10478 template. Expand predicable attribute to mark VMOV.F16 as not
10479 predicable. Add "arch" attribute.
10480 (*thumb2_movhi_fp16): Likewise.
10481 (*arm_movsi_vfp): Break a long line. Add "arch" attribute.
10482 (*thumb2_movsi_vfp): Add "arch" attribute.
10483
10484 2016-09-27 David Edelsohn <dje.gcc@gmail.com>
10485
10486 * config/rs6000/rs6000.c (rs6000_output_symbol): Don't modify
10487 VAR_DECL string.
10488
10489 2016-09-27 Marek Polacek <polacek@redhat.com>
10490
10491 * config/ia64/ia64.c (ia64_print_operand): Adjust fall through
10492 comment.
10493
10494 * config/c6x/c6x.h: Adjust fall through comment.
10495 * config/sh/sh.c (final_prescan_insn): Likewise.
10496 * config/visium/visium.c (visium_expand_int_cstore): Likewise.
10497 (visium_expand_fp_cstore): Likewise.
10498
10499 2016-09-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10500
10501 * config/arm/arm.c (const_ok_for_op): Use "Fall through" comment form
10502 expected by -Wimplicit-fallthrough.
10503 (thumb1_size_rtx_costs): Likewise.
10504 (thumb2_reorg): Likewise.
10505 (tls_mentioned_p): Add "Fall through" comment.
10506 (thumb2_reorg): Likewise.
10507 * config/arm/arm-builtins.c (arm_expand_neon_args): Use "Fall through"
10508 comment form expected by -Wimplicit-fallthrough.
10509
10510 2016-09-27 Martin Liska <mliska@suse.cz>
10511
10512 PR gcov-profile/46266
10513 * input.h (RESERVED_LOCATION_P): New macro.
10514 * profile.c (branch_prob): Use RESERVED_LOCATION_P and
10515 instread of comparison with UNKNOWN_LOCATION.
10516
10517 2016-09-27 Richard Biener <rguenther@suse.de>
10518
10519 PR tree-optimization/77745
10520 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
10521 When removing redundant stores make sure to check compatibility
10522 of the TBAA state for downstream accesses.
10523 * tree-ssa-sccvn.c (visit_reference_op_store): Likewise for when
10524 value-numbering virtual operands for store matches.
10525
10526 2016-09-27 Oleg Endo <olegendo@gcc.gnu.org>
10527
10528 PR target/51244
10529 * config/sh/sh.c (sh_rtx_costs): Fix return value of SET of movt and
10530 movrt patterns. Match them before anything else in the SET case.
10531
10532 2016-09-27 Martin Liska <mliska@suse.cz>
10533
10534 PR gcov-profile/7970
10535 PR gcov-profile/16855
10536 PR gcov-profile/44779
10537 * coverage.c (build_gcov_exit_decl): New function.
10538 (coverage_obj_init): Call the function and generate __gcov_exit
10539 destructor.
10540 * doc/gcov.texi: Document when __gcov_exit function is called.
10541
10542 2016-09-27 Marek Polacek <polacek@redhat.com>
10543
10544 PR bootstrap/77751
10545 * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
10546 insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Use
10547 -Wno-error instead of -Wno-implicit-fallthrough.
10548
10549 2016-09-27 Martin Liska <mliska@suse.cz>
10550
10551 PR bootstrap/77749
10552 * gcov-counter.def: Remove GCOV_COUNTER_V_DELTA.
10553
10554 2016-09-27 Jakub Jelinek <jakub@redhat.com>
10555
10556 * combine.c (simplify_comparison): Add canonical FALLTHROUGH comments.
10557 * config/i386/i386.c (ix86_dep_by_shift_count_body): Add FALLTHROUGH
10558 comments. Remove break after return.
10559 (ix86_fp_compare_code_to_integer, has_dispatch,
10560 ix86_simd_clone_usable): Remove break after return.
10561
10562 2016-09-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
10563
10564 PR rlt-optimization/77714
10565 * lra-eliminations.c (eliminate_regs_in_insn): Avoid alias on
10566 REG_EQUAL note.
10567
10568 2016-09-27 Kugan Vivekanandarajah <kuganv@linaro.org>
10569
10570 PR ipa/77677
10571 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Use
10572 extract_range_from_unary_expr to convert value_range.
10573 * tree-vrp.c (extract_range_from_unary_expr_1): Rename to.
10574 (extract_range_from_unary_expr): This.
10575 * tree-vrp.h (extract_range_from_unary_expr): Declare.
10576
10577 2016-09-27 Segher Boessenkool <segher@kernel.crashing.org>
10578
10579 * config/rs6000/rs6000.md (movcc_internal1): Disparage using CTR or LR.
10580
10581 2016-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10582
10583 * config/i386/i386.c (ix86_print_operand)
10584 [HAVE_AS_IX86_CMOV_SUN_SYNTAX]: Add gcc_fallthrough.
10585 * config/sparc/sparc.c (check_pic): Add fallthrough comment.
10586 (epilogue_renumber): Likewise.
10587
10588 2016-09-26 Kugan Vivekanandarajah <kuganv@linaro.org>
10589
10590 PR middle-end/77719
10591 * tree-ssa-reassoc.c (make_new_ssa_for_def): Use gimple_get_lhs
10592 to get lhs instead of gimple_assign_lhs as stmt can be builtins too.
10593
10594 2016-09-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
10595
10596 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
10597 is_mm_consume, is_mm_acquire, is_mm_release, is_mm_acq_rel,
10598 is_mm_seq_cst, is_mm_sync): Move to ...
10599 * memmodel.h: This. New file.
10600 * builtins.c: Include memmodel.h.
10601 * optabs.c: Likewise.
10602 * tsan.c: Likewise.
10603 * config/aarch64/aarch64.c: Likewise.
10604 * config/alpha/alpha.c: Likewise.
10605 * config/arm/arm.c: Likewise.
10606 * config/i386/i386.c: Likewise.
10607 * config/ia64/ia64.c: Likewise.
10608 * config/mips/mips.c: Likewise.
10609 * config/rs6000/rs6000.c: Likewise.
10610 * config/sparc/sparc.c: Likewise.
10611 * genconditions.c: Include memmodel.h in generated file.
10612 * genemit.c: Likewise.
10613 * genoutput.c: Likewise.
10614 * genpeep.c: Likewise.
10615 * genpreds.c: Likewise.
10616 * genrecog.c: Likewise.
10617
10618 2016-09-26 David Malcolm <dmalcolm@redhat.com>
10619
10620 * read-rtl.c (read_rtx_code): Rename local "i" to "idx", and use
10621 "c" instead when parsing characters. Move operand parsing into...
10622 (read_rtx_operand): ...this new function, renaming "i" to "idx",
10623 and tightening the scope of various locals.
10624
10625 2016-09-26 Liu Hao <lh_mouse@126.com>
10626
10627 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Fix typo.
10628
10629 2016-09-26 Marek Polacek <polacek@redhat.com>
10630
10631 * system.h: Use __has_attribute to check whether the fallthrough
10632 attribute is supported.
10633
10634 2016-09-26 Marek Polacek <polacek@redhat.com>
10635
10636 * ipa-inline-analysis.c (find_foldable_builtin_expect): Use
10637 gimple_call_internal_p.
10638 * ipa-split.c (find_return_bb): Likewise.
10639 (execute_split_functions): Likewise.
10640 * omp-low.c (dump_oacc_loop_part): Likewise.
10641 (oacc_loop_xform_head_tail): Likewise.
10642 * predict.c (predict_loops): Likewise.
10643 * sanopt.c (pass_sanopt::execute): Likewise.
10644 * tree-cfg.c (get_abnormal_succ_dispatcher): Likewise.
10645 * tree-parloops.c (oacc_entry_exit_ok_1): Likewise.
10646 * tree-stdarg.c (gimple_call_ifn_va_arg_p): Remove function.
10647 (expand_ifn_va_arg_1): Use gimple_call_internal_p.
10648 (expand_ifn_va_arg): Likewise.
10649 * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
10650 (optimize_mask_stores): Likewise.
10651 * tree-vect-stmts.c (vect_simd_lane_linear): Likewise.
10652 (vect_transform_stmt): Likewise.
10653 * tree-vectorizer.c (vect_loop_vectorized_call): Likewise.
10654 * tsan.c (instrument_memory_accesses): Likewise.
10655
10656 2016-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10657 Alexander Monakov <amonakov@ispras.ru>
10658
10659 * regrename.c (rename_chains): Check
10660 HARD_FRAME_POINTER_IS_FRAME_POINTER rather than
10661 HARD_FRAME_POINTER_REGNUM when picking unavailable registers.
10662 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
10663
10664 2016-09-26 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10665
10666 * config/s390/s390.c (s390_rtx_costs): Add /* fallthrough */.
10667 (s390_sched_score): Likewise.
10668
10669 2016-09-26 Martin Liska <mliska@suse.cz>
10670
10671 * doc/gcov.texi: Update program output of gcov tool.
10672
10673 2016-09-26 Martin Liska <mliska@suse.cz>
10674
10675 PR gcov-profile/23332
10676 * profile.c (instrument_values): Do not handle HIST_TYPE_CONST_DELTA.
10677 * tree-profile.c (gimple_gen_const_delta_profiler): Remove.
10678 * value-prof.c (dump_histogram_value): Do not handle
10679 HIST_TYPE_CONST_DELTA.
10680 (stream_in_histogram_value): Likewise.
10681 (gimple_find_values_to_profile): Likewise.
10682 * value-prof.h (enum hist_type): Likewise.
10683
10684 2016-09-26 Martin Liska <mliska@suse.cz>
10685
10686 * common.opt: Exclude SANITIZE_UNREACHABLE and SANITIZE_RETURN
10687 from default sanitize recover values.
10688 * doc/invoke.texi: Fix documentation related to -fsanitize=leak,
10689 -fsanitize=address, -fsanitize=thread and -fsanitize-recover.
10690 * flag-types.h: Replace couple of 1 << x to 1UL << x, make it
10691 consistent.
10692 * opts.c (finish_options): Do a generic loop over options
10693 that can be recovered.
10694 (parse_sanitizer_options): Exclude SANITIZE_UNREACHABLE and
10695 SANITIZE_RETURN.
10696 (common_handle_option): Likewise.
10697 * opts.h: Declare can_recover to sanitizer_opts_s.
10698
10699 2016-09-26 Andre Vieira <andre.simoesdiasvieira@arm.com>
10700
10701 * target.def(elf_flags_numeric): Change documentation to present tense.
10702 * doc/tm.texi: Regenerate.
10703
10704 2016-09-26 Marek Polacek <polacek@redhat.com>
10705
10706 PR c/7652
10707 * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
10708 insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Add
10709 -Wno-switch-fallthrough.
10710 * builtins.c (expand_builtin_int_roundingfn_2): Add gcc_fallthrough.
10711 (expand_builtin): Likewise.
10712 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass): Likewise.
10713 * convert.c (convert_to_real_1): Likewise.
10714 (convert_to_integer_1): Likewise.
10715 * final.c (output_alternate_entry_point): Likewise.
10716 * genattrtab.c (make_canonical): Likewise.
10717 (write_test_expr): Likewise.
10718 * genpreds.c (validate_exp): Likewise.
10719 * gimple-ssa-strength-reduction.c
10720 (find_candidates_dom_walker::before_dom_children): Likewise.
10721 * godump.c (go_format_type): Likewise.
10722 * reload1.c (elimination_effects): Likewise.
10723 * resource.c (mark_referenced_resources): Likewise.
10724 (mark_set_resources): Likewise.
10725 * tree-ssa-loop-ivopts.c (find_deriving_biv_for_expr): Likewise.
10726 * varasm.c (output_addressed_constants): Likewise.
10727
10728 2016-09-26 Marek Polacek <polacek@redhat.com>
10729
10730 PR c/7652
10731 * common.opt (Wimplicit-fallthrough): New option.
10732 * doc/extend.texi: Document statement attributes and the fallthrough
10733 attribute.
10734 * doc/invoke.texi: Document -Wimplicit-fallthrough.
10735 * gimple.h (gimple_call_internal_p): New function.
10736 * gimplify.c (struct gimplify_ctx): Add in_switch_expr.
10737 (struct label_entry): New struct.
10738 (find_label_entry): New function.
10739 (case_label_p): New function.
10740 (collect_fallthrough_labels): New function.
10741 (last_stmt_in_scope): New function.
10742 (should_warn_for_implicit_fallthrough): New function.
10743 (warn_implicit_fallthrough_r): New function.
10744 (maybe_warn_implicit_fallthrough): New function.
10745 (expand_FALLTHROUGH_r): New function.
10746 (expand_FALLTHROUGH): New function.
10747 (gimplify_switch_expr): Call maybe_warn_implicit_fallthrough and
10748 expand_FALLTHROUGH for the innermost GIMPLE_SWITCH.
10749 (gimplify_label_expr): New function.
10750 (gimplify_case_label_expr): Set location.
10751 (gimplify_expr): Call gimplify_label_expr.
10752 * internal-fn.c (expand_FALLTHROUGH): New function.
10753 * internal-fn.def (FALLTHROUGH): New internal function.
10754 * langhooks.c (lang_GNU_OBJC): New function.
10755 * langhooks.h (lang_GNU_OBJC): Declare.
10756 * system.h (gcc_fallthrough): Define.
10757 * tree-core.h: Add FALLTHROUGH_LABEL_P comment.
10758 * tree.h (FALLTHROUGH_LABEL_P): Define.
10759
10760 2016-09-26 Richard Biener <rguenther@suse.de>
10761
10762 * dwarf2out.c (stripattributes): Remove unused function.
10763 (DEBUG_NORM_MACINFO_SECTION): Rename to DEBUG_MACINFO_SECTION.
10764 Push dwarf_split_debug_info handling into init_sections_and_labels.
10765 (DEBUG_NORM_MACRO_SECTION): Likewise to DEBUG_MACRO_SECTION.
10766 (DEBUG_MACRO_SECTION_FLAGS): Remove.
10767 (debug_macinfo_section_name): New global.
10768 (output_macinfo): Use debug_macinfo_section_name.
10769 (init_sections_and_labels): Split out section and label generation
10770 from dwarf2out_init. Set debug_macinfo_section_name.
10771 (dwarf2out_init): Move text section label generation and emission
10772 to ...
10773 (dwarf2out_assembly_start): ... here.
10774 (dwarf2out_finish): Call init_sections_and_labels before DWARF
10775 output starts.
10776
10777 2016-09-26 Richard Biener <rguenther@suse.de>
10778
10779 PR debug/77692
10780 * cgraphunit.c (analyze_functions): Before early removing
10781 global vars calls the late_global_decl debug handler mark
10782 the variable as readonly.
10783
10784 2016-09-25 Oleg Endo <olegendo@gcc.gnu.org>
10785
10786 PR target/51244
10787 * config/sh/sh.c (sh_movt_set_dest, sh_movrt_set_dest): Add overloads.
10788 (sh_rtx_costs): Handle SET of movt and movrt patterns.
10789 * cnofig/sh/sh-protos.h (sh_movt_set_dest, sh_movrt_set_dest): Forward
10790 declare new overloads.
10791 * config/sh/sh.md (*cset_zero): Add variant that takes a treg_set_expr
10792 operand.
10793
10794 2016-09-24 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
10795
10796 * config/rs6000/rs6000.c (expand_block_compare, do_load_for_compare):
10797 Change TARGET_LITTLE_ENDIAN to !BYTES_BIG_ENDIAN.
10798
10799 2016-09-24 David Edelsohn <dje.gcc@gmail.com>
10800
10801 * configure.ac (gcc_cv_as_aix_dwloc): Fix typo in assembly fragment.
10802 * configure: Regenerate.
10803
10804 2016-09-24 Marek Polacek <polacek@redhat.com>
10805
10806 PR c/77490
10807 * doc/invoke.texi: Document -Wbool-operation.
10808
10809 2016-09-23 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
10810
10811 * config/rs6000/rs6000.md (cmpmemsi): New define_expand.
10812 * config/rs6000/rs6000.c (expand_block_compare): New function used by
10813 cmpmemsi pattern to do builtin expansion of memcmp ().
10814 (compute_current_alignment): Add helper function for
10815 expand_block_compare used to compute alignment as the compare proceeds.
10816 (select_block_compare_mode): Used by expand_block_compare to select
10817 the mode used for reading the next chunk of bytes in the compare.
10818 (do_load_for_compare): Used by expand_block_compare to emit the load
10819 insns for the compare.
10820 (rs6000_emit_dot_insn): Moved this function to avoid a forward
10821 reference from expand_block_compare ().
10822 * config/rs6000/rs6000-protos.h (expand_block_compare): Add a
10823 prototype for this function.
10824 * config/rs6000/rs6000.opt (mblock-compare-inline-limit): Add a new
10825 target option for controlling how much code inline expansion of
10826 memcmp() will be allowed to generate.
10827
10828 2016-09-23 Jakub Jelinek <jakub@redhat.com>
10829
10830 * hooks.c (hook_bool_bool_false, hook_bool_bool_gcc_optionsp_false,
10831 hook_bool_mode_false, hook_bool_mode_true,
10832 hook_bool_mode_const_rtx_false, hook_bool_mode_const_rtx_true,
10833 hook_bool_mode_rtx_false, hook_bool_mode_rtx_true,
10834 hook_bool_const_rtx_insn_const_rtx_insn_true,
10835 hook_bool_mode_uhwi_false, hook_void_FILEptr_constcharptr,
10836 hook_bool_FILEptr_rtx_false, hook_bool_gsiptr_false,
10837 hook_bool_const_tree_hwi_hwi_const_tree_false,
10838 hook_bool_const_tree_hwi_hwi_const_tree_true,
10839 default_can_output_mi_thunk_no_vcall, hook_int_uint_mode_1,
10840 hook_int_const_tree_0, hook_int_const_tree_const_tree_1,
10841 hook_int_rtx_0, hook_int_rtx_bool_0, hook_void_tree,
10842 hook_void_constcharptr, hook_void_tree_treeptr, hook_void_int_int,
10843 hook_bool_tree_false, hook_bool_const_tree_false, hook_bool_tree_true,
10844 hook_bool_const_tree_true, hook_bool_tree_tree_false,
10845 hook_bool_tree_tree_true, hook_bool_tree_bool_false,
10846 hook_bool_rtx_insn_true, hook_bool_rtx_false,
10847 hook_bool_uintp_uintp_false,
10848 hook_bool_rtx_mode_int_int_intp_bool_false, hook_rtx_rtx_null,
10849 hook_rtx_tree_int_null, hook_uint_mode_0,
10850 hook_constcharptr_const_tree_null, hook_tree_tree_int_treep_bool_null,
10851 hook_tree_tree_tree_null, hook_tree_tree_tree_tree_null,
10852 hook_constcharptr_const_rtx_insn_null,
10853 hook_constcharptr_const_tree_const_tree_null,
10854 hook_constcharptr_int_const_tree_null,
10855 hook_constcharptr_int_const_tree_const_tree_null,
10856 hook_tree_const_tree_null, hook_bool_rtx_insn_int_false,
10857 hook_void_rtx_insn_int, hook_void_gcc_optionsp): For arguments with
10858 ATTRIBUTE_UNUSED, remove parameter name as well as ATTRIBUTE_UNUSED.
10859
10860 * vec.h (vNULL): Extend comment to say = vNULL initialization
10861 isn't needed for static vars.
10862
10863 * sel-sched-ir.c (sel_global_bb_info, sel_region_bb_info,
10864 loop_nests, s_i_d, last_added_blocks): Remove unnecessary
10865 = vNULL initialization of file scope vec.
10866 * passes.c (pass_tab, enabled_pass_uid_range_tab,
10867 disabled_pass_uid_range_tab): Likewise.
10868 * haifa-sched.c (sched_luids, h_i_d): Likewise.
10869 * tree-chkp-opt.c (check_infos): Likewise.
10870 * sel-sched.c (vec_av_set, vec_temp_moveop_nops): Likewise.
10871
10872 * vec.h (vnull::operator vec): Add constexpr keyword for
10873 C++11 and later.
10874
10875 2016-09-23 Doug Gilmore <doug.gilmore@imgtec.com>
10876
10877 PR tree-optimization/77654
10878 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Add call
10879 to duplicate_ssa_name_ptr_info.
10880
10881 2016-09-23 David Malcolm <dmalcolm@redhat.com>
10882
10883 PR preprocessor/77672
10884 * input.c (selftest::test_lexer_string_locations_simple): Update
10885 test to expect location information of the terminator character
10886 at the location of the final closing quote.
10887 (selftest::test_lexer_string_locations_hex): Likewise.
10888 (selftest::test_lexer_string_locations_oct): Likewise.
10889 (selftest::test_lexer_string_locations_letter_escape_1): Likewise.
10890 (selftest::test_lexer_string_locations_letter_escape_2): Likewise.
10891 (selftest::test_lexer_string_locations_ucn4): Likewise.
10892 (selftest::test_lexer_string_locations_ucn8): Likewise.
10893 (selftest::test_lexer_string_locations_u8): Likewise.
10894 (selftest::test_lexer_string_locations_utf8_source): Likewise.
10895 (selftest::test_lexer_string_locations_concatenation_1): Likewise.
10896 (selftest::test_lexer_string_locations_concatenation_2): Likewise.
10897 (selftest::test_lexer_string_locations_concatenation_3): Likewise.
10898 (selftest::test_lexer_string_locations_macro): Likewise.
10899 (selftest::test_lexer_string_locations_long_line): Likewise.
10900
10901 2016-09-23 Richard Biener <rguenther@suse.de>
10902
10903 * tree-ssa-sccvn.c (visit_reference_op_call): Value number
10904 virtual definition to virtual use if the call devirtualizes
10905 to a const or pure function.
10906 (visit_use): Also visit calls we can devirtualize to a
10907 const or pure function.
10908
10909 2016-09-23 Richard Biener <rguenther@suse.de>
10910
10911 PR tree-optimization/77697
10912 * tree-ssa-forwprop.c (defcodefor_name): Remove bogus code,
10913 signal error if we have sth ternary or unhandled.
10914
10915 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
10916
10917 * config/arm/arm_neon.h (vabd_f16): New.
10918 (vabdq_f16): New.
10919 (vabs_f16): New.
10920 (vabsq_f16): New.
10921 (vadd_f16): New.
10922 (vaddq_f16): New.
10923 (vcage_f16): New.
10924 (vcageq_f16): New.
10925 (vcagt_f16): New.
10926 (vcagtq_f16): New.
10927 (vcale_f16): New.
10928 (vcaleq_f16): New.
10929 (vcalt_f16): New.
10930 (vcaltq_f16): New.
10931 (vceq_f16): New.
10932 (vceqq_f16): New.
10933 (vceqz_f16): New.
10934 (vceqzq_f16): New.
10935 (vcge_f16): New.
10936 (vcgeq_f16): New.
10937 (vcgez_f16): New.
10938 (vcgezq_f16): New.
10939 (vcgt_f16): New.
10940 (vcgtq_f16): New.
10941 (vcgtz_f16): New.
10942 (vcgtzq_f16): New.
10943 (vcle_f16): New.
10944 (vcleq_f16): New.
10945 (vclez_f16): New.
10946 (vclezq_f16): New.
10947 (vclt_f16): New.
10948 (vcltq_f16): New.
10949 (vcltz_f16): New.
10950 (vcltzq_f16): New.
10951 (vcvt_f16_s16): New.
10952 (vcvt_f16_u16): New.
10953 (vcvt_s16_f16): New.
10954 (vcvt_u16_f16): New.
10955 (vcvtq_f16_s16): New.
10956 (vcvtq_f16_u16): New.
10957 (vcvtq_s16_f16): New.
10958 (vcvtq_u16_f16): New.
10959 (vcvta_s16_f16): New.
10960 (vcvta_u16_f16): New.
10961 (vcvtaq_s16_f16): New.
10962 (vcvtaq_u16_f16): New.
10963 (vcvtm_s16_f16): New.
10964 (vcvtm_u16_f16): New.
10965 (vcvtmq_s16_f16): New.
10966 (vcvtmq_u16_f16): New.
10967 (vcvtn_s16_f16): New.
10968 (vcvtn_u16_f16): New.
10969 (vcvtnq_s16_f16): New.
10970 (vcvtnq_u16_f16): New.
10971 (vcvtp_s16_f16): New.
10972 (vcvtp_u16_f16): New.
10973 (vcvtpq_s16_f16): New.
10974 (vcvtpq_u16_f16): New.
10975 (vcvt_n_f16_s16): New.
10976 (vcvt_n_f16_u16): New.
10977 (vcvtq_n_f16_s16): New.
10978 (vcvtq_n_f16_u16): New.
10979 (vcvt_n_s16_f16): New.
10980 (vcvt_n_u16_f16): New.
10981 (vcvtq_n_s16_f16): New.
10982 (vcvtq_n_u16_f16): New.
10983 (vfma_f16): New.
10984 (vfmaq_f16): New.
10985 (vfms_f16): New.
10986 (vfmsq_f16): New.
10987 (vmax_f16): New.
10988 (vmaxq_f16): New.
10989 (vmaxnm_f16): New.
10990 (vmaxnmq_f16): New.
10991 (vmin_f16): New.
10992 (vminq_f16): New.
10993 (vminnm_f16): New.
10994 (vminnmq_f16): New.
10995 (vmul_f16): New.
10996 (vmul_lane_f16): New.
10997 (vmul_n_f16): New.
10998 (vmulq_f16): New.
10999 (vmulq_lane_f16): New.
11000 (vmulq_n_f16): New.
11001 (vneg_f16): New.
11002 (vnegq_f16): New.
11003 (vpadd_f16): New.
11004 (vpmax_f16): New.
11005 (vpmin_f16): New.
11006 (vrecpe_f16): New.
11007 (vrecpeq_f16): New.
11008 (vrnd_f16): New.
11009 (vrndq_f16): New.
11010 (vrnda_f16): New.
11011 (vrndaq_f16): New.
11012 (vrndm_f16): New.
11013 (vrndmq_f16): New.
11014 (vrndn_f16): New.
11015 (vrndnq_f16): New.
11016 (vrndp_f16): New.
11017 (vrndpq_f16): New.
11018 (vrndx_f16): New.
11019 (vrndxq_f16): New.
11020 (vrsqrte_f16): New.
11021 (vrsqrteq_f16): New.
11022 (vrecps_f16): New.
11023 (vrecpsq_f16): New.
11024 (vrsqrts_f16): New.
11025 (vrsqrtsq_f16): New.
11026 (vsub_f16): New.
11027 (vsubq_f16): New.
11028
11029 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
11030
11031 * config.gcc (extra_headers): Add arm_fp16.h
11032 * config/arm/arm_fp16.h: New.
11033 * config/arm/arm_neon.h: Include "arm_fp16.h".
11034
11035 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
11036
11037 * config/arm/arm_neon_builtins.def (vadd): New (v8hf, v4hf
11038 variants).
11039 (vmulf): New (v8hf, v4hf variants).
11040 (vfma): New (v8hf, v4hf variants).
11041 (vfms): New (v8hf, v4hf variants).
11042 (vsub): New (v8hf, v4hf variants).
11043 (vcage): New (v8hf, v4hf variants).
11044 (vcagt): New (v8hf, v4hf variants).
11045 (vcale): New (v8hf, v4hf variants).
11046 (vcalt): New (v8hf, v4hf variants).
11047 (vceq): New (v8hf, v4hf variants).
11048 (vcgt): New (v8hf, v4hf variants).
11049 (vcge): New (v8hf, v4hf variants).
11050 (vcle): New (v8hf, v4hf variants).
11051 (vclt): New (v8hf, v4hf variants).
11052 (vceqz): New (v8hf, v4hf variants).
11053 (vcgez): New (v8hf, v4hf variants).
11054 (vcgtz): New (v8hf, v4hf variants).
11055 (vcltz): New (v8hf, v4hf variants).
11056 (vclez): New (v8hf, v4hf variants).
11057 (vabd): New (v8hf, v4hf variants).
11058 (vmaxf): New (v8hf, v4hf variants).
11059 (vmaxnm): New (v8hf, v4hf variants).
11060 (vminf): New (v8hf, v4hf variants).
11061 (vminnm): New (v8hf, v4hf variants).
11062 (vpmaxf): New (v4hf variant).
11063 (vpminf): New (v4hf variant).
11064 (vpadd): New (v4hf variant).
11065 (vrecps): New (v8hf, v4hf variants).
11066 (vrsqrts): New (v8hf, v4hf variants).
11067 (vabs): New (v8hf, v4hf variants).
11068 (vneg): New (v8hf, v4hf variants).
11069 (vrecpe): New (v8hf, v4hf variants).
11070 (vrnd): New (v8hf, v4hf variants).
11071 (vrnda): New (v8hf, v4hf variants).
11072 (vrndm): New (v8hf, v4hf variants).
11073 (vrndn): New (v8hf, v4hf variants).
11074 (vrndp): New (v8hf, v4hf variants).
11075 (vrndx): New (v8hf, v4hf variants).
11076 (vrsqrte): New (v8hf, v4hf variants).
11077 (vmul_lane): Add v4hf and v8hf variants.
11078 (vmul_n): Add v4hf and v8hf variants.
11079 (vext): New (v8hf, v4hf variants).
11080 (vcvts): New (v8hi, v4hi variants).
11081 (vcvts): New (v8hf, v4hf variants).
11082 (vcvtu): New (v8hi, v4hi variants).
11083 (vcvtu): New (v8hf, v4hf variants).
11084 (vcvts_n): New (v8hf, v4hf variants).
11085 (vcvtu_n): New (v8hi, v4hi variants).
11086 (vcvts_n): New (v8hi, v4hi variants).
11087 (vcvtu_n): New (v8hf, v4hf variants).
11088 (vbsl): New (v8hf, v4hf variants).
11089 (vcvtas): New (v8hf, v4hf variants).
11090 (vcvtau): New (v8hf, v4hf variants).
11091 (vcvtms): New (v8hf, v4hf variants).
11092 (vcvtmu): New (v8hf, v4hf variants).
11093 (vcvtns): New (v8hf, v4hf variants).
11094 (vcvtnu): New (v8hf, v4hf variants).
11095 (vcvtps): New (v8hf, v4hf variants).
11096 (vcvtpu): New (v8hf, v4hf variants).
11097
11098 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
11099
11100 * config/arm/arm-builtins.c (hf_UP): New.
11101 (si_UP): New.
11102 (vfp_builtin_data): New. Update comment.
11103 (enum arm_builtins): Include "arm_vfp_builtins.def".
11104 (ARM_BUILTIN_VFP_PATTERN_START): New.
11105 (arm_init_vfp_builtins): New.
11106 (arm_init_builtins): Add arm_init_vfp_builtins.
11107 (arm_expand_vfp_builtin): New.
11108 (arm_expand_builtins): Update for arm_expand_vfp_builtin. Fix
11109 long line.
11110 * config/arm/arm_vfp_builtins.def: New file.
11111 * config/arm/t-arm (arm.o): Add arm_vfp_builtins.def.
11112 (arm-builtins.o): Likewise.
11113
11114 2016-09-23 Kugan Vivekanandarajah <kuganv@linaro.org>
11115
11116 PR ipa/77677
11117 * ipa-cp.c (propagate_vr_accross_jump_function): Drop TREE_OVERFLOW
11118 from constant while creating value range.
11119
11120 2016-09-23 Renlin Li <renlin.li@arm.com>
11121
11122 * ira.c (ira): Move ira_use_lra_p initialization code to ...
11123 (ira_init_once): Here.
11124
11125 2016-09-23 Uros Bizjak <ubizjak@gmail.com>
11126 Jakub Jelinek <jakub@redhat.com>
11127
11128 * hooks.h (hook_uint_uintp_false): Rename to...
11129 (hook_bool_uint_uintp_false): ... this.
11130 * hooks.c (hook_uint_uintp_false): Rename to...
11131 (hook_bool_uint_uintp_false): ... this.
11132 * target.def (elf_flags_numeric): Use hook_bool_uint_uintp_false
11133 instead of hook_uint_uintp_false.
11134
11135 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
11136
11137 * config/arm/arm-builtins.c (arm_init_neon_builtin): New.
11138 (arm_init_builtins): Move body of a loop to the standalone
11139 function arm_init_neon_builtin.
11140 (arm_expand_neon_builtin_1): New. Update comment. Function body
11141 moved from arm_neon_builtin with some white-space fixes.
11142 (arm_expand_neon_builtin): Move code into the standalone function
11143 arm_expand_neon_builtin_1.
11144
11145 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
11146
11147 * config/arm/iterators.md (VCVTHI): New.
11148 (NEON_VCMP): Add UNSPEC_VCLT and UNSPEC_VCLE. Fix a long line.
11149 (NEON_VAGLTE): New.
11150 (VFM_LANE_AS): New.
11151 (VH_CVTTO): New.
11152 (V_reg): Add HF, V4HF and V8HF. Fix white-space.
11153 (V_HALF): Add V4HF. Fix white-space.
11154 (V_if_elem): Add HF, V4HF and V8HF. Fix white-space.
11155 (V_s_elem): Likewise.
11156 (V_sz_elem): Fix white-space.
11157 (V_elem_ch): Likewise.
11158 (VH_elem_ch): New.
11159 (scalar_mul_constraint): Add V8HF and V4HF.
11160 (Is_float_mode): Fix white-space.
11161 (Is_d_reg): Add V4HF and V8HF. Fix white-space.
11162 (q): Add HF. Fix white-space.
11163 (float_sup): New.
11164 (float_SUP): New.
11165 (cmp_op_unsp): Add UNSPEC_VCALE and UNSPEC_VCALT.
11166 (neon_vfm_lane_as): New.
11167 * config/arm/neon.md (add<mode>3_fp16): New.
11168 (sub<mode>3_fp16): New.
11169 (mul<mode>3add<mode>_neon): New.
11170 (fma<VH:mode>4_intrinsic): New.
11171 (fmsub<VCVTF:mode>4_intrinsic): Fix white-space.
11172 (fmsub<VH:mode>4_intrinsic): New.
11173 (<absneg_str><mode>2): New.
11174 (neon_v<absneg_str><mode>): New.
11175 (neon_v<fp16_rnd_str><mode>): New.
11176 (neon_vrsqrte<mode>): New.
11177 (neon_vpaddv4hf): New.
11178 (neon_vadd<mode>): New.
11179 (neon_vsub<mode>): New.
11180 (neon_vmulf<mode>): New.
11181 (neon_vfma<VH:mode>): New.
11182 (neon_vfms<VH:mode>): New.
11183 (neon_vc<cmp_op><mode>): New.
11184 (neon_vc<cmp_op><mode>_fp16insn): New
11185 (neon_vc<cmp_op_unsp><mode>_fp16insn_unspec): New.
11186 (neon_vca<cmp_op><mode>): New.
11187 (neon_vca<cmp_op><mode>_fp16insn): New.
11188 (neon_vca<cmp_op_unsp><mode>_fp16insn_unspec): New.
11189 (neon_vc<cmp_op>z<mode>): New.
11190 (neon_vabd<mode>): New.
11191 (neon_v<maxmin>f<mode>): New.
11192 (neon_vp<maxmin>fv4hf: New.
11193 (neon_<fmaxmin_op><mode>): New.
11194 (neon_vrecps<mode>): New.
11195 (neon_vrsqrts<mode>): New.
11196 (neon_vrecpe<mode>): New (VH variant).
11197 (neon_vdup_lane<mode>_internal): New.
11198 (neon_vdup_lane<mode>): New.
11199 (neon_vcvt<sup><mode>): New (VCVTHI variant).
11200 (neon_vcvt<sup><mode>): New (VH variant).
11201 (neon_vcvt<sup>_n<mode>): New (VH variant).
11202 (neon_vcvt<sup>_n<mode>): New (VCVTHI variant).
11203 (neon_vcvt<vcvth_op><sup><mode>): New.
11204 (neon_vmul_lane<mode>): New.
11205 (neon_vmul_n<mode>): New.
11206 * config/arm/unspecs.md (UNSPEC_VCALE): New
11207 (UNSPEC_VCALT): New.
11208 (UNSPEC_VFMA_LANE): New.
11209 (UNSPECS_VFMS_LANE): New.
11210
11211 2016-09-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
11212
11213 * config/s390/s390.md ("*extzv<mode>_zEC12", "*extzv<mode>_z10")
11214 ("*extzv<mode><clobbercc_or_nocc>"):
11215 Correct a typo in a comment.
11216 Merged patterns.
11217 ("*insv<mode>_zEC12", "*insv<mode>_z10")
11218 ("*insv<mode><clobbercc_or_nocc>"): Ditto.
11219 ("*insv<mode>_zEC12_appendbitsleft")
11220 ("*insv<mode><clobbercc_or_nocc>_appendbitsleft")
11221 ("*insv<mode>_z10_appendbitsleft"): Ditto.
11222 ("*insv<mode>_zEC12_noshift", "*insv<mode>_z10_noshift")
11223 ("*insv<mode><clobbercc_or_nocc>_noshift"): Ditto.
11224 Provide pattern with operands switched.
11225 ("*pre_z10_extv<mode>"):
11226 Use new subst patterns.
11227 ("*extzvdi<clobbercc_or_nocc>_lshiftrt", "*<risbg_n>_ior_and_sr_ze")
11228 ("*extvsidi<clobbercc_or_nocc>", "*<risbg_n>_and_subregdi_rotr")
11229 ("*<risbg_n>_and_subregdi_rotl", "*<risbg_n>_di_and_rot")
11230 ("*insv_z10_noshift_cc", "*insv_z10_noshift_cconly")
11231 ("*<risbg_n>_<mode>_ior_and_lshiftrt")
11232 ("*<risbg_n>_sidi_ior_and_lshiftrt")
11233 ("*trunc_sidi_and_subreg_lshrt<clobbercc_or_nocc>"):
11234 New patterns.
11235 ("*extzv_<mode>_sll", "*extzv_<mode>_srl")
11236 ("*extzv_<mode>_srl<clobbercc_or_nocc>")
11237 ("*extzv_<mode>_sll<clobbercc_or_nocc>"): Renamed patterns, use risbgn
11238 on zEC12.
11239 ("SINT"): New mode_iterator with SI, HI, QI.
11240 * config/s390/subst.md ("clobbercc_or_nocc_subst", "z10_or_zEC12_cond")
11241 ("clobbercc_or_nocc", "risbg_n"): New constructs for risbg pattern
11242 duplication.
11243
11244 2016-09-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
11245
11246 * config/s390/predicates.md ("contiguous_bitmask_operand"): Adapt to
11247 new interface of s390_contiguous_bitmask_p.
11248 ("contiguous_bitmask_nowrap_operand"): New predicate.
11249 ("*anddi3_cc", "*anddi3_cconly", "*anddi3"): Replace NxxDq with NxxDw.
11250 * config/s390/constraints.md ("NxxDw", "NxxSq"): Adapt to new interface
11251 of s390_contiguous_bitmask_p.
11252 ("NxxDw"): Rename NxxDq constraint to NxxDw.
11253 ("NxxSw"): New constraint.
11254 * config/s390/s390.md ("*andsi3_zarch"): Enable bitmask wraparound.
11255 * config/s390/s390-protos.h (s390_contiguous_bitmask_p): Updated
11256 interface.
11257 (s390_contiguous_bitmask_nowrap_p): Export.
11258 * config/s390/s390.c (s390_contiguous_bitmask_nowrap_p): New name of
11259 former s390_contiguous_bitmask_p.
11260 (s390_contiguous_bitmask_p): Use s390_contiguous_bitmask_nowrap_p to
11261 detect contiguous bit ranges with wraparound. Change signature to
11262 return START and END position instead of POS and LENGTH.
11263 (s390_contiguous_bitmask_vector_p): Remove extra code for continous bit
11264 ranges with wraparound.
11265 (s390_extzv_shift_ok): Use s390_contiguous_bitmask_nowrap_p.
11266 (s390_contiguous_bitmask_vector_p,s390_extzv_shift_ok,print_operand):
11267 Adapt to new signature of s390_contiguous_bitmask_p.
11268
11269 2016-09-23 Bin Cheng <bin.cheng@arm.com>
11270
11271 * tree-vect-loop-manip.c (create_intersect_range_checks_index): New.
11272 (create_intersect_range_checks): New.
11273 (vect_create_cond_for_alias_checks): Call above function.
11274
11275 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
11276
11277 * config/arm/iterators.md (Code iterators): Fix some white-space
11278 in the comments.
11279 (GLTE): New.
11280 (ABSNEG): New
11281 (FCVT): Moved from vfp.md.
11282 (VCVT_HF_US_N): New.
11283 (VCVT_SI_US_N): New.
11284 (VCVT_HF_US): New.
11285 (VCVTH_US): New.
11286 (FP16_RND): New.
11287 (absneg_str): New.
11288 (FCVTI32typename): Moved from vfp.md.
11289 (sup): Add UNSPEC_VCVTA_S, UNSPEC_VCVTA_U, UNSPEC_VCVTM_S,
11290 UNSPEC_VCVTM_U, UNSPEC_VCVTN_S, UNSPEC_VCVTN_U, UNSPEC_VCVTP_S,
11291 UNSPEC_VCVTP_U, UNSPEC_VCVT_HF_S_N, UNSPEC_VCVT_HF_U_N,
11292 UNSPEC_VCVT_SI_S_N, UNSPEC_VCVT_SI_U_N, UNSPEC_VCVTH_S_N,
11293 UNSPEC_VCVTH_U_N, UNSPEC_VCVTH_S and UNSPEC_VCVTH_U.
11294 (vcvth_op): New.
11295 (fp16_rnd_str): New.
11296 (fp16_rnd_insn): New.
11297 * config/arm/unspecs.md (UNSPEC_VCVT_HF_S_N): New.
11298 (UNSPEC_VCVT_HF_U_N): New.
11299 (UNSPEC_VCVT_SI_S_N): New.
11300 (UNSPEC_VCVT_SI_U_N): New.
11301 (UNSPEC_VCVTH_S): New.
11302 (UNSPEC_VCVTH_U): New.
11303 (UNSPEC_VCVTA_S): New.
11304 (UNSPEC_VCVTA_U): New.
11305 (UNSPEC_VCVTM_S): New.
11306 (UNSPEC_VCVTM_U): New.
11307 (UNSPEC_VCVTN_S): New.
11308 (UNSPEC_VCVTN_U): New.
11309 (UNSPEC_VCVTP_S): New.
11310 (UNSPEC_VCVTP_U): New.
11311 (UNSPEC_VCVTP_S): New.
11312 (UNSPEC_VCVTP_U): New.
11313 (UNSPEC_VRND): New.
11314 (UNSPEC_VRNDA): New.
11315 (UNSPEC_VRNDI): New.
11316 (UNSPEC_VRNDM): New.
11317 (UNSPEC_VRNDN): New.
11318 (UNSPEC_VRNDP): New.
11319 (UNSPEC_VRNDX): New.
11320 * config/arm/vfp.md (<absneg_str>hf2): New.
11321 (neon_vabshf): New.
11322 (neon_v<fp16_rnd_str>hf): New.
11323 (neon_vrndihf): New.
11324 (addhf3): New.
11325 (subhf3): New.
11326 (divhf3): New.
11327 (mulhf3): New.
11328 (*mulsf3neghf_vfp): New.
11329 (*negmulhf3_vfp): New.
11330 (*mulsf3addhf_vfp): New.
11331 (*mulhf3subhf_vfp): New.
11332 (*mulhf3neghfaddhf_vfp): New.
11333 (*mulhf3neghfsubhf_vfp): New.
11334 (fmahf4): New.
11335 (neon_vfmahf): New.
11336 (fmsubhf4_fp16): New.
11337 (neon_vfmshf): New.
11338 (*fnmsubhf4): New.
11339 (*fnmaddhf4): New.
11340 (neon_vsqrthf): New.
11341 (neon_vrsqrtshf): New.
11342 (FCVT): Move to iterators.md.
11343 (FCVTI32typename): Likewise.
11344 (neon_vcvth<sup>hf): New.
11345 (neon_vcvth<sup>si): New.
11346 (neon_vcvth<sup>_nhf_unspec): New.
11347 (neon_vcvth<sup>_nhf): New.
11348 (neon_vcvth<sup>_nsi_unspec): New.
11349 (neon_vcvth<sup>_nsi): New.
11350 (neon_vcvt<vcvth_op>h<sup>si): New.
11351 (neon_<fmaxmin_op>hf): New.
11352
11353 2016-09-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
11354
11355 * config/s390/s390.md (bitoff, bitoff_plus): Neq mode attributes.
11356 ("*extzv<mode>_zEC12", "*insv<mode>_zEC12", "*insv<mode>_z10")
11357 ("*insv<mode>_zEC12_appendbitsleft")
11358 ("*insv<mode>_z10_appendbitsleft", "*r<noxa>sbg_<mode>_sll")
11359 ("*r<noxa>sbg_<mode>_srl"): Use new attributes.
11360
11361 2016-09-23 Jakub Jelinek <jakub@redhat.com>
11362
11363 * ipa-cp.c (ipcp_store_vr_results): Avoid static local var zero.
11364 * sreal.h (sreal::min, sreal::max): Avoid static local vars,
11365 construct values without normalization.
11366 * tree-ssa-sccvn.c (vn_reference_lookup_3): Don't initialize
11367 static local lhs_ops to vNULL.
11368
11369 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
11370 Jiong Wang <jiong.wang@arm.com>
11371
11372 * config/arm/arm.c (coproc_secondary_reload_class): Make HFmode
11373 available when FP16 instructions are available.
11374 (output_move_vfp): Add support for 16-bit data moves.
11375 (arm_validize_comparison): Fix some white-space. Support HFmode
11376 by conversion to SFmode.
11377 * config/arm/arm.md (truncdfhf2): Fix a comment.
11378 (extendhfdf2): Likewise.
11379 (cstorehf4): New.
11380 (movsicc): Fix some white-space.
11381 (movhfcc): New.
11382 (movsfcc): Fix some white-space.
11383 (*cmovhf): New.
11384 * config/arm/vfp.md (*arm_movhi_vfp): Disable when VFP FP16
11385 instructions are available.
11386 (*thumb2_movhi_vfp): Likewise.
11387 (*arm_movhi_fp16): New.
11388 (*thumb2_movhi_fp16): New.
11389 (*movhf_vfp_fp16): New.
11390 (*movhf_vfp_neon): Disable when VFP FP16 instructions are available.
11391 (*movhf_vfp): Likewise.
11392 (extendhfsf2): Enable when VFP FP16 instructions are available.
11393 (truncsfhf2): Enable when VFP FP16 instructions are available.
11394
11395 2016-09-23 Martin Liska <mliska@suse.cz>
11396
11397 * config/s390/vx-builtins.md: Replace 'adress' with 'address'.
11398
11399 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
11400
11401 * config/arm/arm.c (arm_evpc_neon_vuzp): Add support for V8HF and
11402 V4HF modes.
11403 (arm_evpc_neon_vtrn): Likewise.
11404 (arm_evpc_neon_vrev): Likewise.
11405 (arm_evpc_neon_vext): Likewise.
11406 * config/arm/arm_neon.h (vbsl_f16): New.
11407 (vbslq_f16): New.
11408 (vdup_n_f16): New.
11409 (vdupq_n_f16): New.
11410 (vdup_lane_f16): New.
11411 (vdupq_lane_f16): New.
11412 (vext_f16): New.
11413 (vextq_f16): New.
11414 (vmov_n_f16): New.
11415 (vmovq_n_f16): New.
11416 (vrev64_f16): New.
11417 (vrev64q_f16): New.
11418 (vtrn_f16): New.
11419 (vtrnq_f16): New.
11420 (vuzp_f16): New.
11421 (vuzpq_f16): New.
11422 (vzip_f16): New.
11423 (vzipq_f16): New.
11424 * config/arm/arm_neon_buillins.def (vdup_n): New (v8hf, v4hf variants).
11425 (vdup_lane): New (v8hf, v4hf variants).
11426 (vext): New (v8hf, v4hf variants).
11427 (vbsl): New (v8hf, v4hf variants).
11428 * config/arm/iterators.md (VDQWH): New.
11429 (VH): New.
11430 (V_double_vector_mode): Add V8HF and V4HF. Fix white-space.
11431 (Scalar_mul_8_16): Fix white-space.
11432 (Is_d_reg): Add V4HF and V8HF.
11433 * config/arm/neon.md (neon_vdup_lane<mode>_internal): New.
11434 (neon_vdup_lane<mode>): New.
11435 (neon_vtrn<mode>_internal): Replace VDQW with VDQWH.
11436 (*neon_vtrn<mode>_insn): Likewise.
11437 (neon_vzip<mode>_internal): Likewise. Also fix white-space.
11438 (*neon_vzip<mode>_insn): Likewise
11439 (neon_vuzp<mode>_internal): Likewise.
11440 (*neon_vuzp<mode>_insn): Likewise
11441 * config/arm/vec-common.md (vec_perm_const<mode>): New.
11442
11443 2016-09-23 Jiong Wang <jiong.wang@arm.com>
11444 Matthew Wahab <matthew.wahab@arm.com>
11445
11446 * config/arm/arm.c (output_move_vfp): Weaken assert to allow HImode.
11447 (arm_hard_regno_mode_ok): Allow HImode values in VFP registers.
11448 * config/arm/arm.md (*movhi_bytes): Disable when VFP registers are
11449 available. Also fix some white-space.
11450 * config/arm/vfp.md (*arm_movhi_vfp): New.
11451 (*thumb2_movhi_vfp): New.
11452
11453 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
11454
11455 * config/arm/arm-c.c (arm_cpu_builtins): Define
11456 "__ARM_FEATURE_FP16_SCALAR_ARITHMETIC" and
11457 "__ARM_FEATURE_FP16_VECTOR_ARITHMETIC".
11458
11459 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
11460
11461 * doc/sourcebuild.texi (ARM-specific attributes): Add anchor for
11462 arm_v8_1a_neon_ok. Add entries for arm_v8_2a_fp16_scalar_ok,
11463 arm_v8_2a_fp16_scalar_hw, arm_v8_2a_fp16_neon_ok and
11464 arm_v8_2a_fp16_neon_hw.
11465 (Add options): Add entries for arm_v8_1a_neon, arm_v8_2a_scalar,
11466 arm_v8_2a_neon.
11467
11468 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
11469
11470 * doc/sourcebuild.texi (ARM-specific attributes): Add entries for
11471 arm_fp16_alternative_ok and arm_fp16_none_ok.
11472
11473 2016-09-23 Martin Liska <mliska@suse.cz>
11474
11475 * ipa-icf.c (sem_variable::merge): Replace adress with address.
11476
11477 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
11478
11479 * config/arm/arm-arches.def ("armv8.1-a"): Add FL_CRC32.
11480 ("armv8.2-a"): New.
11481 ("armv8.2-a+fp16"): New.
11482 * config/arm/arm-protos.h (FL2_ARCH8_2): New.
11483 (FL2_FP16INST): New.
11484 (FL2_FOR_ARCH8_2A): New.
11485 * config/arm/arm-tables.opt: Regenerate.
11486 * config/arm/arm.c (arm_arch8_2): New.
11487 (arm_fp16_inst): New.
11488 (arm_option_override): Set arm_arch8_2 and arm_fp16_inst. Check
11489 for incompatible fp16-format settings.
11490 * config/arm/arm.h (TARGET_VFP_FP16INST): New.
11491 (TARGET_NEON_FP16INST): New.
11492 (arm_arch8_2): Declare.
11493 (arm_fp16_inst): Declare.
11494 * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for
11495 march=armv8.2-a and march=armv8.2-a+fp16.
11496 * config/arm/t-aprofile (Arch Matches): Add entries for armv8.2-a
11497 and armv8.2-a+fp16.
11498 * doc/invoke.texi (ARM Options): Add "-march=armv8.1-a",
11499 "-march=armv8.2-a" and "-march=armv8.2-a+fp16".
11500
11501 2016-09-23 Martin Liska <mliska@suse.cz>
11502
11503 * doc/extend.texi: Remove fused-madd from i386 target options.
11504
11505 2016-09-23 Martin Liska <mliska@suse.cz>
11506
11507 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
11508 Handle movbe.
11509
11510 2016-09-23 Martin Liska <mliska@suse.cz>
11511
11512 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
11513 Handle crc32.
11514
11515 2016-09-23 Martin Liska <mliska@suse.cz>
11516
11517 PR target/71652
11518 * config/i386/i386.c (ix86_option_override_internal): Change
11519 signature and return false when there's an error related to
11520 arch string.
11521 (release_options_strings): New function.
11522 (ix86_valid_target_attribute_tree): Call the function.
11523
11524 2016-09-23 Jakub Jelinek <jakub@redhat.com>
11525
11526 * hsa-gen.c (hsa_op_immed::hsa_op_immed Use CONSTRUCTOR_NELTS (...)
11527 instead of vec_safe_length (CONSTRUCTOR_ELTS (...)).
11528 (gen_hsa_ctor_assignment): Likewise.
11529 * print-tree.c (print_node): Likewise.
11530 * tree-dump.c (dequeue_and_dump): Likewise.
11531 * tree-sra.c (sra_modify_constructor_assign): Likewise.
11532 * expr.c (store_constructor): Likewise.
11533 * fold-const.c (operand_equal_p): Likewise.
11534 * tree-pretty-print.c (dump_generic_node): Likewise.
11535 * hsa-brig.c (hsa_op_immed::emit_to_buffer): Likewise.
11536 * ipa-icf-gimple.c (func_checker::compare_operand): Likewise.
11537
11538 2016-09-23 Richard Biener <rguenther@suse.de>
11539
11540 * hooks.h (hook_uint_uintp_false): Declare.
11541
11542 2016-09-22 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
11543
11544 * config/avr/avr.c (avr_rtx_costs_1): Handle DImode MULT.
11545 (avr_address_cost): Replace 61 with MAX_LD_OFFSET(mode).
11546
11547 2016-09-22 Martin Sebor <msebor@redhat.com>
11548
11549 PR target/77676
11550 * gimple-ssa-sprintf.c (target_int_min, target_int_max): Use
11551 HOST_BITS_PER_WIDE_INT, make a static local variable auto.
11552 (target_int_min): Correct computation.
11553 (format_integer): Use long long as the argument for the ll length
11554 modifier.
11555 (format_floating): Use target_int_max().
11556 (get_string_length): Same.
11557 (format_string): Avoid setting the bounded flag for strings
11558 of unknown length.
11559 (try_substitute_return_value): Avoid setting range info when
11560 the result isn't bounded.
11561 * varasm.c (assemble_name): Increase buffer size.
11562
11563 2016-09-22 Andre Vieira <andre.simoesdiasvieira@arm.com>
11564 Terry Guo <terry.guo@arm.com>
11565
11566 * target.def (elf_flags_numeric): New target hook.
11567 * targhooks.h (default_asm_elf_flags_numeric): New.
11568 * varasm.c (default_asm_elf_flags_numeric): New.
11569 (default_elf_asm_named_section): Use new target hook.
11570 * config/arm/arm.opt (mpure-code): New.
11571 * config/arm/arm.h (SECTION_ARM_PURECODE): New.
11572 * config/arm/arm.c (arm_asm_init_sections): Add section
11573 attribute to default text section if -mpure-code.
11574 (arm_option_check_internal): Diagnose use of option with
11575 non supported targets and/or options.
11576 (arm_asm_elf_flags_numeric): New.
11577 (arm_function_section): New.
11578 (arm_elf_section_type_flags): New.
11579 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Disable
11580 for -mpure-code.
11581 * doc/texi (TARGET_ASM_ELF_FLAGS_NUMERIC): New.
11582 * doc/texi.in (TARGET_ASM_ELF_FLAGS_NUMERIC): Likewise.
11583
11584 2016-09-22 Jan Hubicka <hubicka@ucw.cz>
11585
11586 * regcprop.c (copyprop_hardreg_forward_1): Remove noop moves.
11587
11588 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11589
11590 * emit-rtl.c (next_cc0_user): Make argument type rtx_insn *.
11591 * rtl.h: Adjust prototype.
11592
11593 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11594
11595 * emit-rtl.c (next_active_insn): Change argument type to rtx_insn *.
11596 (prev_active_insn): Likewise.
11597 (active_insn_p): Likewise.
11598 * rtl.h: Adjust prototypes.
11599 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Adjust.
11600 * config/arc/arc.md: Likewise.
11601 * config/pa/pa.c (branch_to_delay_slot_p): Likewise.
11602 (branch_needs_nop_p): Likewise.
11603 (use_skip_p): Likewise.
11604 * config/sh/sh.c (gen_block_redirect): Likewise.
11605 (split_branches): Likewise.
11606 * reorg.c (optimize_skip): Likewise.
11607 (fill_simple_delay_slots): Likewise.
11608 (fill_slots_from_thread): Likewise.
11609 (relax_delay_slots): Likewise.
11610 * resource.c (mark_target_live_regs): Likewise.
11611
11612 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11613
11614 * config/cris/cris.c (cris_asm_output_case_end): Change argument
11615 type to rtx_insn *.
11616 * emit-rtl.c (next_nonnote_nondebug_insn): Likewise.
11617 (prev_nonnote_nondebug_insn): Likewise.
11618 * config/cris/cris-protos.h: Adjust prototype.
11619 * rtl.h: Likewise.
11620 * jump.c (rtx_renumbered_equal_p): Adjust.
11621
11622 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11623
11624 * emit-rtl.c (prev_real_insn): Change argument type to rtx_insn *.
11625 * rtl.h: Adjust prototype.
11626 * config/sh/sh.md: Adjust.
11627 * dwarf2out.c (add_var_loc_to_decl): Likewise.
11628
11629 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11630
11631 * emit-rtl.c (next_nondebug_insn): Change argument type to rtx_insn *.
11632 (prev_nondebug_insn): Likewise.
11633 * loop-doloop.c (doloop_condition_get): Likewise.
11634 * rtl.h: Adjust prototype.
11635 * cfgloop.h: Likewise.
11636
11637 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11638
11639 * emit-rtl.c (next_nonnote_insn): Change argument type to rtx_insn *.
11640 (prev_nonnote_insn): Likewise.
11641 * jump.c (reversed_comparison_code_parts): Likewise.
11642 (reversed_comparison): Likewise.
11643 * rtl.h: Adjust prototypes.
11644 * config/arc/arc.md: Adjust.
11645 * cse.c (find_comparison_args): Likewise.
11646 * reorg.c (redundant_insn): Change return type to rtx_insn *.
11647 (fix_reg_dead_note): Change argument type to rtx_insn *.
11648 (delete_prior_computation): Likewise.
11649 (delete_computation): Likewise.
11650 (fill_slots_from_thread): Adjust.
11651 (relax_delay_slots): Likewise.
11652 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
11653 (simplify_relational_operation_1): Likewise.
11654 (simplify_ternary_operation): Likewise.
11655
11656 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11657
11658 * config/arc/arc-protos.h (arc_label_align): Change type of
11659 variables from rtx to rtx_insn *.
11660 * config/arc/arc.c (arc_label_align): Likewise.
11661 * config/arm/arm.c (any_sibcall_could_use_r3): Likewise.
11662 * config/bfin/bfin.c (workaround_speculation): Likewise.
11663 * config/c6x/c6x.c (find_next_cycle_insn): Likewise.
11664 (find_last_same_clock): Likewise.
11665 (reorg_split_calls): Likewise.
11666 * config/cris/cris-protos.h (cris_cc0_user_requires_cmp): Likewise.
11667 * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise.
11668 * config/h8300/h8300-protos.h (same_cmp_preceding_p): Likewise.
11669 (same_cmp_following_p): Likewise.
11670 * config/h8300/h8300.c (same_cmp_preceding_p): Likewise.
11671 (same_cmp_following_p): Likwise.
11672 * config/m32r/m32r.c (m32r_expand_epilogue): Likewise.
11673 * config/nds32/nds32-protos.h (nds32_target_alignment): Likewise.
11674 * config/nds32/nds32.c (nds32_target_alignment): Likewise.
11675 * config/rl78/rl78.c (rl78_alloc_physical_registers_op2): Likewise.
11676 (rl78_alloc_physical_registers_cmp): Likewise.
11677 (rl78_alloc_physical_registers_umul): Likewise.
11678 (rl78_calculate_death_notes): Likewise.
11679 * config/s390/s390-protos.h (s390_label_align): Likewise.
11680 * config/s390/s390.c (s390_label_align): Likewise.
11681 * config/sh/sh.c (barrier_align): Likewise.
11682 * config/sparc/sparc-protos.h (emit_cbcond_nop): Likewise.
11683 * config/sparc/sparc.c (sparc_asm_function_epilogue): Likewise.
11684 (emit_cbcond_nop): Likewise.
11685
11686 2016-09-22 Martin Liska <mliska@suse.cz>
11687
11688 PR ipa/77653
11689 * ipa-icf.c (sem_variable::merge): Yield merge operation if
11690 alias address matters, not necessarily address of original.
11691
11692 2016-09-22 Richard Biener <rguenther@suse.de>
11693
11694 PR middle-end/77697
11695 * gimple-fold.c (fold_array_ctor_reference): Turn asserts into
11696 fold fails.
11697
11698 2016-09-22 Richard Biener <rguenther@suse.de>
11699
11700 PR middle-end/77677
11701 * gimple-match-head.c (gimple_resimplify1): Drop TREE_OVERFLOW
11702 from constant folding results.
11703 (gimple_resimplify2): Likewise.
11704 (gimple_resimplify3): Likewise.
11705
11706 2016-09-22 Richard Biener <rguenther@suse.de>
11707
11708 PR middle-end/77678
11709 * expr.c (expand_expr_real_1): Guard array access against negative
11710 offset.
11711
11712 2016-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11713
11714 * gimple-ssa-sprintf.c (format_floating_max): Use GMP_RNDN instead
11715 of MPFR_RNDN.
11716 (format_floating): Likewise.
11717
11718 2016-09-22 Jakub Jelinek <jakub@redhat.com>
11719
11720 PR fortran/77665
11721 * tree-inline.c (remap_gimple_stmt): Set has_simduid_loops
11722 for all IFN_GOMP_SIMD_* internal fns, not just for
11723 IFN_GOMP_SIMD_ORDERED_*.
11724
11725 2016-09-21 Michael Meissner <meissner@linux.vnet.ibm.com>
11726
11727 PR target/77670
11728 * config/rs6000/predicates.md (invert_fpmask_comparison_operator):
11729 New predicate that matches the ISA 3.0 XSCMP{EQ,GT,GE}DP
11730 instructions when you want to invert the test.
11731 * config/rs6000/rs6000.md (fpmask<mode>): Use the arguments in the
11732 correct order for XXSEL.
11733 (mov<SFDF:mode><SFDF2:mode>cc_invert_p9): Define the inverted test
11734 for using XSCMP{EQ,GT,GE}DP.
11735
11736 2016-09-21 David Malcolm <dmalcolm@redhat.com>
11737
11738 * genconstants.c (main): Introduce noop_reader and convert call
11739 to read_md_files to a method call.
11740 * genenums.c (main): Likewise.
11741 * genmddeps.c (main): Likewise.
11742 * genpreds.c (write_tm_constrs_h): Replace use of "in_fname" with
11743 rtx_reader_ptr->get_top_level_filename ().
11744 (write_tm_preds_h): Likewise.
11745 (write_insn_preds_c): Likewise.
11746 * gensupport.c (class gen_reader): New subclass of rtx_reader.
11747 (rtx_handle_directive): Convert to...
11748 (gen_reader::handle_unknown_directive): ...this.
11749 (init_rtx_reader_args_cb): Convert return type from bool to
11750 rtx_reader *. Create a gen_reader instance, using it for the
11751 call to read_md_files. Return it if no errors occur.
11752 (init_rtx_reader_args): Convert return type from bool to
11753 rtx_reader *.
11754 * gensupport.h (init_rtx_reader_args_cb): Likewise.
11755 (init_rtx_reader_args_cb): Likewise.
11756 * read-md.c (struct file_name_list): Move to class rtx_reader.
11757 (read_md_file): Delete in favor of rtx_reader::m_read_md_file.
11758 (read_md_filename): Delete in favor of
11759 rtx_reader::m_read_md_filename.
11760 (read_md_lineno): Delete in favor of rtx_reader::m_read_md_lineno.
11761 (in_fname): Delete in favor of rtx_reader::m_toplevel_fname.
11762 (base_dir): Delete in favor of rtx_reader::m_base_dir.
11763 (first_dir_md_include): Delete in favor of
11764 rtx_reader::m_first_dir_md_include.
11765 (last_dir_md_include_ptr): Delete in favor of
11766 rtx_reader::m_last_dir_md_include_ptr.
11767 (max_include_len): Delete.
11768 (rtx_reader_ptr): New.
11769 (fatal_with_file_and_line): Use get_filename and get_lineno
11770 accessors of rtx_reader_ptr.
11771 (require_char_ws): Likewise.
11772 (rtx_reader::read_char): New method, based on ::read_char.
11773 (rtx_reader::unread_char): New method, based on ::unread_char.
11774 (read_escape): Use get_filename and get_lineno accessors of
11775 rtx_reader_ptr.
11776 (read_braced_string): Use get_lineno accessor of rtx_reader_ptr.
11777 (read_string): Use get_filename and get_lineno accessors of
11778 rtx_reader_ptr.
11779 (rtx_reader::rtx_reader): New ctor.
11780 (rtx_reader::~rtx_reader): New dtor.
11781 (handle_include): Convert from a function to...
11782 (rtx_reader::handle_include): ...this method, converting
11783 handle_directive from a callback to a virtual function.
11784 (handle_file): Likewise, converting to...
11785 (rtx_reader::handle_file): ...this method.
11786 (handle_toplevel_file): Likewise, converting to...
11787 (rtx_reader::handle_toplevel_file): ...this method.
11788 (rtx_reader::get_current_location): New method.
11789 (parse_include): Convert from a function to...
11790 (rtx_reader::add_include_path): ...this method, dropping redundant
11791 update to unused max_include_len.
11792 (read_md_files): Convert from a function to...
11793 (rtx_reader::read_md_files): ...this method, converting
11794 handle_directive from a callback to a virtual function.
11795 (noop_reader::handle_unknown_directive): New method.
11796 * read-md.h (directive_handler_t): Delete this typedef.
11797 (in_fname): Delete.
11798 (read_md_file): Delete.
11799 (read_md_lineno): Delete.
11800 (read_md_filename): Delete.
11801 (class rtx_reader): New class.
11802 (rtx_reader_ptr): New decl.
11803 (class noop_reader): New subclass of rtx_reader.
11804 (read_char): Reimplement in terms of rtx_reader::read_char.
11805 (unread_char): Reimplement in terms of rtx_reader::unread_char.
11806 (read_md_files): Delete.
11807 * read-rtl.c (read_rtx_code): Update for deletion of globals
11808 read_md_filename and read_md_lineno.
11809
11810 2016-09-21 Jason Merrill <jason@redhat.com>
11811
11812 * input.h (from_macro_definition_at): New.
11813
11814 2016-09-21 Segher Boessenkool <segher@kernel.crashing.org>
11815
11816 * doc/rtl.texi (JUMP_LABEL): Document RETURN and SIMPLE_RETURN values.
11817
11818 2016-09-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
11819
11820 PR tree-optimization/77550
11821 * tree-vect-stmts.c (create_array_ref): Change parameters.
11822 (get_group_alias_ptr_type): New function.
11823 (vectorizable_store, vectorizable_load): Use get_group_alias_ptr_type.
11824
11825 2016-09-21 Marek Polacek <polacek@redhat.com>
11826
11827 * gimple-ssa-sprintf.c (pass_sprintf_length::compute_format_length):
11828 Add falls through comment.
11829
11830 2016-09-21 Richard Biener <rguenther@suse.de>
11831
11832 * dwarf2out.c (remove_child_with_prev): Clear child->die_sib.
11833 (replace_child): Likewise.
11834 (remove_child_TAG): Adjust.
11835 (move_marked_base_types): Likewise.
11836 (prune_unused_types_prune): Clear die_sib of removed children.
11837
11838 2016-09-21 Georg-Johann Lay <avr@gjlay.de>
11839
11840 PR target/77326
11841 * config/avr/avr.c (avr_notice_update_cc) [CC_NONE]: If insn
11842 touches some regs mentioned in cc_status, do CC_STATUS_INIT.
11843
11844 2016-09-21 Richard Biener <rguenther@suse.de>
11845
11846 PR tree-optimization/77648
11847 * tree-ssa-structalias.c (process_constraint): Handle all DEREF
11848 with complex RHS.
11849 (make_transitive_closure_constraints): Adjust comment.
11850 (make_any_offset_constraints): New function.
11851 (handle_rhs_call): Make sure to first expand a pointer to all
11852 subfields before transitively closing it.
11853 (handle_const_call): Likewise. Properly expand returned
11854 pointers as well.
11855 (handle_pure_call): Likewise.
11856
11857 2016-09-21 Richard Biener <rguenther@suse.de>
11858 Jakub Jelinek <jakub@redhat.com>
11859
11860 PR tree-optimization/77621
11861 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
11862 group at non-vectorizable stmts.
11863
11864 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
11865
11866 PR tree-optimization/72835
11867 * tree-ssa-reassoc.c (make_new_ssa_for_def): New.
11868 (make_new_ssa_for_all_defs): Likewise.
11869 (zero_one_operation): Replace all SSA_NAMEs defined in the chain.
11870
11871 2016-09-20 Martin Sebor <msebor@redhat.com>
11872
11873 PR middle-end/49905
11874 * Makefile.in (OBJS): Add gimple-ssa-sprintf.o.
11875 * config/linux.h (TARGET_PRINTF_POINTER_FORMAT): Redefine.
11876 * config/linux.c (gnu_libc_printf_pointer_format): New function.
11877 * config/sol2.h (TARGET_PRINTF_POINTER_FORMAT): Same.
11878 * config/sol2.c (solaris_printf_pointer_format): New function.
11879 * doc/invoke.texi (-Wformat-length, -fprintf-return-value): New
11880 options.
11881 * doc/tm.texi.in (TARGET_PRINTF_POINTER_FORMAT): Document.
11882 * doc/tm.texi: Regenerate.
11883 * gimple-fold.h (get_range_strlen): New function.
11884 (get_maxval_strlen): Declare existing function.
11885 * gimple-fold.c (get_range_strlen): Add arguments and compute both
11886 maximum and minimum.
11887 (get_range_strlen): Define overload.
11888 (get_maxval_strlen): Adjust.
11889 * gimple-ssa-sprintf.c: New file and pass.
11890 * passes.def (pass_sprintf_length): Add new pass.
11891 * targhooks.h (default_printf_pointer_format): Declare new function.
11892 (gnu_libc_printf_pointer_format): Same.
11893 (solaris_libc_printf_pointer_format): Same.
11894 * targhooks.c (default_printf_pointer_format): Define new function.
11895 * tree-pass.h (make_pass_sprintf_length): Declare new function.
11896 * print-tree.c: Increase buffer size.
11897
11898 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
11899
11900 * tree-vrp.c (get_value_range): Teach PARM_DECL to use ipa-vrp results.
11901
11902 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
11903
11904 * common.opt: New option -fipa-vrp.
11905 * ipa-cp.c (ipa_get_vr_lat): New.
11906 (ipcp_vr_lattice::print): Likewise.
11907 (print_all_lattices): Call ipcp_vr_lattice::print.
11908 (ipcp_vr_lattice::meet_with): New.
11909 (ipcp_vr_lattice::meet_with_1): Likewise.
11910 (ipcp_vr_lattice::top_p): Likewise.
11911 (ipcp_vr_lattice::bottom_p): Likewsie.
11912 (ipcp_vr_lattice::set_to_bottom): Likewise.
11913 (set_all_contains_variable): Call VR set_to_bottom.
11914 (initialize_node_lattices): Init VR lattices.
11915 (propagate_vr_accross_jump_function): New.
11916 (propagate_constants_accross_call): Call
11917 propagate_vr_accross_jump_function.
11918 (ipcp_store_vr_results): New.
11919 (ipcp_driver): Handle VR.
11920 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Handle VR.
11921 (ipa_set_jf_unknown): Likewise.
11922 (ipa_compute_jump_functions_for_edge): Likewise.
11923 (ipa_node_params_t::duplicate): Likewise.
11924 (ipa_write_jump_function): Likewise.
11925 (ipa_read_jump_function): Likewise.
11926 (write_ipcp_transformation_info): Likewise.
11927 (read_ipcp_transformation_info): Likewise.
11928 (ipcp_update_vr): New.
11929 (ipcp_transform_function): Handle VR.
11930 * ipa-prop.h (struct ipa_vr): New.
11931 * cgraph.c: Include tree-vrp.h.
11932 * cgraphunit.c: Likewise.
11933 * ipa-utils.c: Likewise.
11934 * ipa.c: Likewise.
11935 * opts.c: Likewise.
11936 * toplev.c: Likewise.
11937 * ipa-devirt.c: Likewise.
11938 * ipa-inline-transform.c: Likewise.
11939 * ipa-inline.c: Likewise.
11940 * ipa-profile.c: Likewise.
11941
11942 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
11943
11944 * doc/invoke.texi: Document -fdump-tree-evrp.
11945 * passes.def: Define new pass_early_vrp.
11946 * timevar.def: Define new TV_TREE_EARLY_VRP.
11947 * tree-pass.h (make_pass_early_vrp): New.
11948 * tree-ssa-propagate.c: Make replace_uses_in non static.
11949 * tree-ssa-propagate.h: Export replace_uses_in.
11950 * tree-vrp.c (extract_range_for_var_from_comparison_expr): New.
11951 (extract_range_from_assert): Factor out
11952 extract_range_for_var_from_comparison_expr.
11953 (vrp_initialize_lattice): New.
11954 (vrp_initialize): Factor out vrp_initialize_lattice.
11955 (vrp_valueize): Fix it to reject complex value ranges.
11956 (vrp_free_lattice): New.
11957 (evrp_dom_walker::before_dom_children): Likewise.
11958 (evrp_dom_walker::after_dom_children): Likewise.
11959 (evrp_dom_walker::push_value_range): Likewise.
11960 (evrp_dom_walker::pop_value_range): Likewise.
11961 (execute_early_vrp): Likewise.
11962 (execute_vrp): Call vrp_initialize_lattice and vrp_free_lattice.
11963 (make_pass_early_vrp): New.
11964
11965 2016-09-20 Uros Bizjak <ubizjak@gmail.com>
11966
11967 * config/i386/i386.md (mult->ashift peephole2s): Use pow2p_hwi
11968 instead of exact_log2.
11969
11970 2016-09-20 Uros Bizjak <ubizjak@gmail.com>
11971
11972 PR target/77621
11973 * config/i386/i386.c (ix86_preferred_simd_mode) <case DFmode>:
11974 Don't return word_mode for !TARGET_VECTORIZE_DOUBLE.
11975 (ix86_add_stmt_cost): Penalize DFmode vector operations
11976 for !TARGET_VECTORIZE_DOUBLE.
11977
11978 2016-09-20 Gerald Pfeifer <gerald@pfeifer.com>
11979
11980 * doc/invoke.texi (Warning Options): Simplify language.
11981 (Optimize Options): Complete sentence.
11982
11983 2016-09-20 David Edelsohn <dje.gcc@gmail.com>
11984
11985 * dbxout.c (xcoff_debug_hooks): Add filename parameter to
11986 early_finish hook.
11987
11988 2016-09-20 Michael Meissner <meissner@linux.vnet.ibm.com>
11989
11990 PR target/71395
11991 * config/rs6000/rs6000.c (rs6000_expand_vector_init): For V4SF
11992 inits on power8 and above, use the VMRGEW instruction instead of a
11993 permute.
11994
11995 * config/rs6000/altivec.md (UNSPEC_VMRGEW_DIRECT): New unspec.
11996 (p8_vmrgew_v4sf_direct): New VMRGEW insn for V4SF floating
11997 initialization.
11998
11999 2016-09-20 Tamar Christina <tamar.christina@arm.com>
12000
12001 * config/aarch64/arm_neon.h
12002 (vst2_s64, vst2_u64, vst2_f64, vst2_s8): Add missing attributes.
12003 (vst3_s64, vst3_u64, vst3_f64, vst3_s8): Likewise.
12004 (vst4_s64, vst4_u64, vst4_f64, vst4_s8): Likewise.
12005
12006 2016-09-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
12007
12008 * config/var/vax.h (ELIMINABLE_REGS): Define.
12009 (INITIAL_ELIMINATION_OFFSET): Define.
12010
12011 2016-09-20 Jakub Jelinek <jakub@redhat.com>
12012
12013 PR middle-end/77624
12014 * builtins.c (fold_builtin_atomic_always_lock_free): Only look through
12015 cast to void * if the cast is from some other pointer type.
12016
12017 2016-09-20 Richard Biener <rguenther@suse.de>
12018
12019 PR tree-optimization/77646
12020 * tree-ssa-sccvn.c (visit_reference_op_call): Always value-number
12021 a VDEF.
12022
12023 2016-09-20 Tamar Christina <tamar.christina@arm.com>
12024
12025 * config/aarch64/arm_neon.h: Add gnu_inline and artificial
12026 attributes to all inlined functions and make them extern.
12027
12028 2016-09-20 Richard Biener <rguenther@suse.de>
12029
12030 * debug.h (gcc_debug_hooks): Add filename parameter to early_finish
12031 hook.
12032 * debug.c (do_nothing_debug_hooks): Adjust.
12033 * dbxout.c (dbx_debug_hooks): Likewise.
12034 * sdbout.c (sdb_debug_hooks): Likewise.
12035 * dwarf2out.c (dwarf2_lineno_debug_hooks): Likewise.
12036 (dwarf2out_finish): Move producer, filename and
12037 path annotation ...
12038 (dwarf2out_early_finish): ... here. Remove in_lto_p special-casing.
12039 * cgraphunit.c (symbol_table::finalize_compilation_unit): Adjust.
12040
12041 2016-09-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
12042
12043 PR c++/77434
12044 * doc/invoke.texi: Document -Wint-in-bool-context.
12045
12046 PR middle-end/77421
12047 * dwarf2out.c (output_loc_operands): Fix an assertion.
12048
12049 2016-09-19 Joseph Myers <joseph@codesourcery.com>
12050
12051 * ginclude/float.h [__STDC_WANT_IEC_60559_BFP_EXT__]
12052 (CR_DECIMAL_DIG): New macro.
12053
12054 2016-09-19 Joseph Myers <joseph@codesourcery.com>
12055
12056 * ginclude/stddef.h (max_align_t) [__i386__]: Add __float128
12057 element.
12058
12059 2016-09-19 Vladimir Makarov <vmakarov@redhat.com>
12060
12061 PR rtl-optimization/77416
12062 * lra-remat.c (operand_to_remat): Process hard coded insn
12063 registers.
12064
12065 2016-09-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12066
12067 * simplify-rtx.c (simplify_relational_operation_1): Add transformation
12068 (GTU (PLUS a C) (C - 1)) --> (LTU a -C).
12069
12070 2016-09-19 Segher Boessenkool <segher@kernel.crashing.org>
12071
12072 * target.def (lra_p): Wordsmithing.
12073 * doc/tm.texi: Regenerate.
12074
12075 2016-09-19 Jakub Jelinek <jakub@redhat.com>
12076 Jan Hubicka <jh@suse.cz>
12077
12078 PR target/77587
12079 * cgraph.c (cgraph_node::rtl_info): Pass &avail to
12080 ultimate_alias_target call, return NULL if avail < AVAIL_AVAILABLE.
12081 Call ultimate_alias_target just once, not up to 4 times.
12082
12083 2016-09-19 Richard Biener <rguenther@suse.de>
12084
12085 * dwarf2out.c (early_dwarf_finished): New global.
12086 (set_early_dwarf::set_early_dwarf): Assert early_dwarf_finished
12087 is false.
12088 (dwarf2out_early_finish): Set early_dwarf_finished at the end,
12089 if called from LTO exit early.
12090 (dwarf2out_late_global_decl): When being during the early
12091 debug phase do not add locations but only const value attributes.
12092 Adjust the way we generate early DIEs for LTO.
12093
12094 2016-09-19 Richard Biener <rguenther@suse.de>
12095
12096 PR middle-end/77605
12097 * tree-data-ref.c (analyze_subscript_affine_affine): Use the
12098 proper niter to bound the loops.
12099
12100 2016-09-19 Richard Biener <rguenther@suse.de>
12101
12102 PR tree-optimization/77514
12103 * tree-ssa-pre.c (create_expression_by_pieces): Optimize
12104 search for folded stmt.
12105
12106 2016-09-17 Jan Hubicka <hubicka@ucw.cz>
12107
12108 * passes.def (pass_early_thread_jumps): Schedule after forwprop.
12109 * tree-pass.h (make_pass_early_thread_jumps): Declare.
12110 * tree-ssa-threadbackward.c (fsm_find_thread_path,
12111 fsm_find_thread_path, profitable_jump_thread_path,
12112 fsm_find_control_statement_thread_paths,
12113 find_jump_threads_backwards): Add speed_p parameter.
12114 (pass_data_early_thread_jumps): New pass.
12115 (make_pass_early_thread_jumps): New function.
12116
12117 2016-09-17 Andreas Schwab <schwab@suse.de>
12118
12119 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Add cast.
12120 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
12121
12122 2016-09-16 Eric Botcazou <ebotcazou@adacore.com>
12123
12124 * recog.c (rest_of_handle_split_after_reload): Delete.
12125 (pass_split_after_reload::gate): New method.
12126 (pass_split_after_reload::execute): Call split_all_insns directly.
12127
12128 2016-09-16 Jonathan Wakely <jwakely@redhat.com>
12129
12130 * doc/extend.texi (Integer Overflow Builtins): Fix type of out
12131 parameters for functions taking long long arguments.
12132
12133 2016-09-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12134
12135 PR target/77613
12136 * config/rs6000/rs6000.c (rtx_is_swappable_p): Add support for
12137 splat with truncate.
12138
12139 2016-09-16 Jason Merrill <jason@redhat.com>
12140
12141 * hwint.h (least_bit_hwi, pow2_or_zerop, pow2p_hwi, ctz_or_zero):
12142 New.
12143 * hwint.c (exact_log2): Use pow2p_hwi.
12144 (ctz_hwi, ffs_hwi): Use least_bit_hwi.
12145 * alias.c (memrefs_conflict_p): Use pow2_or_zerop.
12146 * builtins.c (get_object_alignment_2, get_object_alignment)
12147 (get_pointer_alignment, fold_builtin_atomic_always_lock_free): Use
12148 least_bit_hwi.
12149 * calls.c (compute_argument_addresses, store_one_arg): Use
12150 least_bit_hwi.
12151 * cfgexpand.c (expand_one_stack_var_at): Use least_bit_hwi.
12152 * combine.c (force_to_mode): Use least_bit_hwi.
12153 (contains_muldiv, find_split_point, combine_simplify_rtx)
12154 (simplify_if_then_else, simplify_set, force_to_mode)
12155 (if_then_else_cond, simplify_and_const_int_1)
12156 (simplify_compare_const): Use pow2p_hwi.
12157 * cse.c (fold_rtx): Use pow2p_hwi.
12158 * emit-rtl.c (set_mem_attributes_minus_bitpos, adjust_address_1):
12159 Use least_bit_hwi.
12160 * expmed.c (synth_mult, expand_divmod): Use ctz_or_zero, ctz_hwi.
12161 (init_expmed_one_conv): Use pow2p_hwi.
12162 * expr.c (is_aligning_offset): Use pow2p_hwi.
12163 * fold-const.c (round_up_loc, round_down_loc): Use pow2_or_zerop.
12164 (fold_binary_loc): Use pow2p_hwi.
12165 * function.c (assign_parm_find_stack_rtl): Use least_bit_hwi.
12166 * gimple-fold.c (gimple_fold_builtin_memory_op): Use pow2p_hwi.
12167 * gimple-ssa-strength-reduction.c (replace_ref): Use least_bit_hwi.
12168 * hsa-gen.c (gen_hsa_addr_with_align, hsa_bitmemref_alignment):
12169 Use least_bit_hwi.
12170 * ifcvt.c (noce_try_store_flag_constants): Use pow2p_hwi.
12171 * ipa-cp.c (ipcp_alignment_lattice::meet_with_1): Use least_bit_hwi.
12172 * ipa-prop.c (ipa_modify_call_arguments): Use least_bit_hwi.
12173 * omp-low.c (oacc_loop_fixed_partitions)
12174 (oacc_loop_auto_partitions): Use least_bit_hwi.
12175 * rtlanal.c (nonzero_bits1): Use ctz_or_zero.
12176 * stor-layout.c (place_field): Use least_bit_hwi.
12177 * tree-pretty-print.c (dump_generic_node): Use pow2p_hwi.
12178 * tree-sra.c (build_ref_for_offset): Use least_bit_hwi.
12179 * tree-ssa-ccp.c (ccp_finalize): Use least_bit_hwi.
12180 * tree-ssa-math-opts.c (bswap_replace): Use least_bit_hwi.
12181 * tree-ssa-strlen.c (handle_builtin_memcmp): Use pow2p_hwi.
12182 * tree-vect-data-refs.c (vect_analyze_group_access_1)
12183 (vect_grouped_store_supported, vect_grouped_load_supported)
12184 (vect_permute_load_chain, vect_shift_permute_load_chain)
12185 (vect_transform_grouped_load): Use pow2p_hwi.
12186 * tree-vect-generic.c (expand_vector_divmod): Use ctz_or_zero.
12187 * tree-vect-patterns.c (vect_recog_divmod_pattern): Use ctz_or_zero.
12188 * tree-vect-stmts.c (vectorizable_mask_load_store): Use
12189 least_bit_hwi.
12190 * tsan.c (instrument_expr): Use least_bit_hwi.
12191 * var-tracking.c (negative_power_of_two_p): Use pow2_or_zerop.
12192
12193 2016-09-16 Andreas Schwab <schwab@suse.de>
12194
12195 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Use parameter
12196 OFFSET, not offset.
12197 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
12198
12199 2016-09-16 Jakub Jelinek <jakub@redhat.com>
12200
12201 PR target/77526
12202 * combine.c (rest_of_handle_combine): If any edges have been purged,
12203 free dominators if available.
12204
12205 2016-09-16 Jakub Jelinek <jakub@redhat.com>
12206 Eric Botcazou <ebotcazou@adacore.com>
12207
12208 PR middle-end/77594
12209 * internal-fn.c (expand_arith_overflow) <case MINUS_EXPR>: Don't fall
12210 through into expand_addsub_overflow after expand_neg_overflow.
12211
12212 2016-09-15 David Malcolm <dmalcolm@redhat.com>
12213
12214 * diagnostic-show-locus.c
12215 (selftest::test_fixit_insert_containing_newline): New function.
12216 (selftest::test_fixit_replace_containing_newline): New function.
12217 (selftest::diagnostic_show_locus_c_tests): Call the above.
12218
12219 2016-09-15 Bin Cheng <bin.cheng@arm.com>
12220
12221 PR tree-optimization/77503
12222 * tree-vect-loop.c (vectorizable_reduction): Record reduction
12223 code for CONST_COND_REDUCTION at analysis stage and use it at
12224 transform stage.
12225 * tree-vectorizer.h (struct _stmt_vec_info): New field.
12226 (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): New macro.
12227 * tree-vect-stmts.c (new_stmt_vec_info): Initialize above new
12228 field.
12229
12230 2016-09-15 Richard Biener <rguenther@suse.de>
12231
12232 PR middle-end/77544
12233 * fold-const.c (split_tree): Do not split constant ~X.
12234
12235 2016-09-15 Jakub Jelinek <jakub@redhat.com>
12236
12237 PR rtl-optimization/77425
12238 * sched-int.h (sd_iterator_cond): Don't update it_ptr->linkp if list
12239 is NULL.
12240
12241 PR middle-end/77475
12242 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Simplify,
12243 use %qs instead of %s where desirable, use argument instead of arg in
12244 the diagnostic wording, add list of supported strategies and
12245 spellcheck hint.
12246 (ix86_option_override_internal): Emit target("m...") instead of
12247 option("m...") in the diagnostic. Use %qs instead of %s in invalid
12248 -march/-mtune option diagnostic. Add list of supported arches/tunings
12249 and spellcheck hint. Remove prefix, suffix and sw variables, use
12250 main_args_p ? "..." : "..." in diagnostics to make translation
12251 possible.
12252
12253 2016-09-15 Richard Biener <rguenther@suse.de>
12254
12255 * dwarf2asm.h (dw2_asm_output_offset): Add overload with
12256 extra offset argument.
12257 * dwarf2asm.c (dw2_asm_output_offset): Implement that.
12258 * doc/tm.texi.in (ASM_OUTPUT_DWARF_OFFSET): Adjust documentation
12259 to reflect new offset parameter.
12260 * doc/tm.texi: Regenerate.
12261 * config/darwin.h (ASM_OUTPUT_DWARF_OFFSET): Adjust.
12262 * config/darwin-protos.h (darwin_asm_output_dwarf_delta): Add
12263 offset argument.
12264 (darwin_asm_output_dwarf_offset): Likewise.
12265 * config/darwin.c (darwin_asm_output_dwarf_delta): Add offset
12266 argument.
12267 (darwin_asm_output_dwarf_offset): Pass offset argument through.
12268 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Adjust.
12269 * config/i386/cygmin.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
12270
12271 2016-09-15 Chung-Lin Tang <cltang@codesourcery.com>
12272
12273 PR fortran/72743
12274 * ipa-icf.c (set_alias_uids): New function.
12275 (sem_variable::merge): Use set_alias_uids to set DECL_PT_UID of
12276 all the merged variable's referring aliases.
12277
12278 2016-09-15 Richard Biener <rguenther@suse.de>
12279
12280 PR tree-optimization/77514
12281 * tree-ssa-pre.c (create_expression_by_pieces): Handle garbage
12282 only forced_stmts sequence.
12283
12284 2016-09-15 Kugan Vivekanandarajah <kuganv@linaro.org>
12285
12286 * tree-ssanames.h (FOR_EACH_SSA_NAME): New.
12287 * cfgexpand.c (update_alias_info_with_stack_vars): Use
12288 FOR_EACH_SSA_NAME to iterate over SSA variables.
12289 (pass_expand::execute): Likewise.
12290 * omp-simd-clone.c (ipa_simd_modify_function_body): Likewise.
12291 * tree-cfg.c (dump_function_to_file): Likewise.
12292 * tree-into-ssa.c (pass_build_ssa::execute): Likewise.
12293 (update_ssa): Likewise.
12294 * tree-ssa-alias.c (dump_alias_info): Likewise.
12295 * tree-ssa-ccp.c (ccp_finalize): Likewise.
12296 * tree-ssa-coalesce.c (build_ssa_conflict_graph): Likewise.
12297 (create_outofssa_var_map): Likewise.
12298 (coalesce_ssa_name): Likewise.
12299 * tree-ssa-operands.c (dump_immediate_uses): Likewise.
12300 * tree-ssa-pre.c (compute_avail): Likewise.
12301 * tree-ssa-sccvn.c (init_scc_vn): Likewise.
12302 (scc_vn_restore_ssa_info): Likewise.
12303 (free_scc_vn): Likwise.
12304 (run_scc_vn): Likewise.
12305 * tree-ssa-structalias.c (compute_points_to_sets): Likewise.
12306 * tree-ssa-ter.c (new_temp_expr_table): Likewise.
12307 * tree-ssa-copy.c (fini_copy_prop): Likewise.
12308 * tree-ssa.c (verify_ssa): Likewise.
12309
12310 2016-09-14 Matthew Fortune <matthew.fortune@imgtec.com>
12311
12312 * config.gcc (mips*-mti-elf*, mips*-mti-linux*): Set mips32r2
12313 and mips64r2 as default 32-bit and 64-bit architectures.
12314 (mips*-img-elf*, mips*-img-linux*): Set mips32r6 and mips64r6
12315 as default 32-bit and 64-bit architectures.
12316
12317 2016-09-14 Pat Haugen <pthaugen@us.ibm.com>
12318
12319 * loop-unroll.c (unroll_loop_runtime_iterations): Set probability
12320 of succ edge.
12321
12322 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
12323
12324 * target.def (lra_p): Change commentary (for the manual) for the
12325 new default.
12326 * doc/tm.texi: Regenerate.
12327
12328 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
12329
12330 * config/aarch64/aarch64.c (TARGET_LRA_P): Delete macro.
12331 * config/arm/arm.c (TARGET_LRA_P): Delete macro.
12332 * config/i386/i386.c (TARGET_LRA_P): Delete macro.
12333 * config/nds32/nds32.c (TARGET_LRA_P): Delete macro.
12334
12335 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
12336
12337 * targhooks.c (default_lra_p): Return true instead of false.
12338
12339 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
12340
12341 * config/alpha/alpha.c (TARGET_LRA_P): New macro, defined to
12342 hook_bool_void_false.
12343 * config/avr/avr.c: Ditto.
12344 * config/bfin/bfin.c: Ditto.
12345 * config/c6x/c6x.c: Ditto.
12346 * config/cr16/cr16.c: Ditto.
12347 * config/cris/cris.c: Ditto.
12348 * config/epiphany/epiphany.c: Ditto.
12349 * config/fr30/fr30.c: Ditto.
12350 * config/frv/frv.c: Ditto.
12351 * config/h8300/h8300.c: Ditto.
12352 * config/ia64/ia64.c: Ditto.
12353 * config/iq2000/iq2000.c: Ditto.
12354 * config/lm32/lm32.c: Ditto.
12355 * config/m32c/m32c.c: Ditto.
12356 * config/m32r/m32r.c: Ditto.
12357 * config/m68k/m68k.c: Ditto.
12358 * config/mcore/mcore.c: Ditto.
12359 * config/microblaze/microblaze.c: Ditto.
12360 * config/mmix/mmix.c: Ditto.
12361 * config/mn10300/mn10300.c: Ditto.
12362 * config/moxie/moxie.c: Ditto.
12363 * config/msp430/msp430.c: Ditto.
12364 * config/nios2/nios2.c: Ditto.
12365 * config/nvptx/nvptx.c: Ditto.
12366 * config/pa/pa.c: Ditto.
12367 * config/pdp11/pdp11.c: Ditto.
12368 * config/rl78/rl78.c: Ditto.
12369 * config/sparc/sparc.c: Ditto.
12370 * config/spu/spu.c: Ditto.
12371 * config/stormy16/stormy16.c: Ditto.
12372 * config/tilegx/tilegx.c: Ditto.
12373 * config/tilepro/tilepro.c: Ditto.
12374 * config/v850/v850.c: Ditto.
12375 * config/vax/vax.c: Ditto.
12376 * config/visium/visium.c: Ditto.
12377 * config/xtensa/xtensa.c: Ditto.
12378
12379 2016-09-14 Jakub Jelinek <jakub@redhat.com>
12380
12381 PR sanitizer/68260
12382 * tsan.c: Include target.h.
12383 (enum tsan_atomic_action): Add bool_clear and bool_test_and_set.
12384 (BOOL_CLEAR, BOOL_TEST_AND_SET): Define.
12385 (tsan_atomic_table): Add BUILT_IN_ATOMIC_CLEAR and
12386 BUILT_IN_ATOMIC_TEST_AND_SET entries.
12387 (instrument_builtin_call): Handle bool_clear and bool_test_and_set.
12388
12389 2016-09-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
12390 Martin Liska <mliska@suse.cz>
12391
12392 PR middle-end/77574
12393 * predict.c (force_edge_cold): Add braces to a condition.
12394
12395 2016-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
12396
12397 PR rtl-optimization/77289
12398 * lra-constraints.c (get_final_hard_regno): Removed.
12399 (get_hard_regno): Add new parameter final_p.
12400 (get_reg_class): Directly call lra_get_elimination_hard_regno.
12401 (operands_match_p): Adjust call to get_hard_regno.
12402 (uses_hard_regs_p): Likewise.
12403 (process_alt_operands): Likewise.
12404
12405 2016-09-13 Joe Seymour <joe.s@somniumtech.com>
12406
12407 PR target/70713
12408 * config/msp430/msp430.c (msp430_start_function): Emit an error
12409 if a function is both weak and specifies an interrupt number.
12410
12411 2016-09-13 Jakub Jelinek <jakub@redhat.com>
12412
12413 PR tree-optimization/77454
12414 * tree-ssa-dom.c (optimize_stmt): Set modified flag on stmt after
12415 changing GIMPLE_COND. Move update_stmt_if_modified call after this.
12416 Formatting fix.
12417
12418 2016-09-13 Tamar Christina <tamar.christina@arm.com>
12419
12420 * config/aarch64/aarch64-builtins.c
12421 (aarch64_init_simd_builtins): Fix builtin type signature printing.
12422
12423 2016-09-13 Uros Bizjak <ubizjak@gmail.com>
12424
12425 * config/alpha/alpha.c (alpha_pass_by_reference): Pass un-named
12426 SFmode and SCmode arguments by reference.
12427
12428 2016-09-13 David Malcolm <dmalcolm@redhat.com>
12429
12430 * diagnostic-show-locus.c (selftest::test_one_liner_fixit_insert):
12431 Rename to...
12432 (selftest::test_one_liner_fixit_insert_before): ...this, and update
12433 for renaming of add_fixit_insert to add_fixit_insert_before.
12434 (selftest::test_one_liner_fixit_insert_after): New function.
12435 (selftest::test_one_liner_fixit_validation_adhoc_locations):
12436 Update for renaming of add_fixit_insert to add_fixit_insert_before.
12437 (selftest::test_one_liner_many_fixits): Likewise.
12438 (selftest::test_diagnostic_show_locus_one_liner): Update for
12439 renaming, call new test function.
12440 (selftest::test_diagnostic_show_locus_fixit_lines): Update for
12441 renaming of add_fixit_insert to add_fixit_insert_before.
12442 (selftest::test_fixit_consolidation): Likewise.
12443 * diagnostic.c (selftest::test_print_parseable_fixits_insert):
12444 Likewise.
12445 * edit-context.c (selftest::test_applying_fixits_insert): Rename to...
12446 (selftest::test_applying_fixits_insert_before): ...this.
12447 (selftest::test_applying_fixits_insert): Update for renaming of
12448 add_fixit_insert to add_fixit_insert_before.
12449 (selftest::test_applying_fixits_insert_after): New function.
12450 (selftest::test_applying_fixits_insert_after_at_line_end): New
12451 function.
12452 (selftest::test_applying_fixits_insert_after_failure): New function.
12453 (selftest::test_applying_fixits_multiple): Update for renaming of
12454 add_fixit_insert to add_fixit_insert_before.
12455 (selftest::change_line): Likewise.
12456 (selftest::test_applying_fixits_unreadable_file): Likewise.
12457 (selftest::test_applying_fixits_line_out_of_range): Likewise.
12458 (selftest::test_applying_fixits_column_validation): Likewise.
12459 (selftest::test_applying_fixits_column_validation): Likewise.
12460 (selftest::edit_context_c_tests): Update for renamed test function;
12461 call new test functions.
12462
12463 2016-09-13 Pat Haugen <pthaugen@us.ibm.com>
12464
12465 PR tree-optimization/77536
12466 PR rtl-optimization/68212
12467 * config/rs6000/rs6000.md (div->recip splitter): Remove
12468 optimize_insn_for_speed_p condition.
12469
12470 2016-09-13 Maciej W. Rozycki <macro@imgtec.com>
12471
12472 * optabs.c (prepare_cmp_insn): Update documentation comment.
12473
12474 2016-09-13 Jakub Jelinek <jakub@redhat.com>
12475 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
12476
12477 PR middle-end/77475
12478 * opts.h (candidates_list_and_hint): Declare.
12479 * opts-common.c (candidates_list_and_hint): New function.
12480 (cmdline_handle_error): Use it.
12481
12482 2016-09-12 David Malcolm <dmalcolm@redhat.com>
12483
12484 * edit-context.c (edited_line::get_len): New accessor.
12485 (edited_file::print_diff): Split out hunk-printing into...
12486 (edited_file::print_diff_hunk): New method.
12487 (edited_file::print_diff_line): New method.
12488
12489 2016-09-12 Andrew Pinski <apinski@cavium.com>
12490
12491 * config/aarch64/aarch64-tuning-flags.def (SLOW_UNALIGNED_LDPW):
12492 New tuning option.
12493 * config/aarch64/aarch64.c (thunderx_tunings): Enable
12494 AARCH64_EXTRA_TUNE_SLOW_UNALIGNED_LDPW.
12495 (aarch64_operands_ok_for_ldpstp): Return false if
12496 AARCH64_EXTRA_TUNE_SLOW_UNALIGNED_LDPW and the mode
12497 was SImode and the alignment is less than 8 byte.
12498 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
12499
12500 2016-09-12 Orlando Arias <oarias@knights.ucf.edu>
12501
12502 PR target/77570
12503 * config/msp430/msp430.md (delay_cycles_32x): Fix pushm/popm.
12504
12505 2016-09-12 Marek Polacek <polacek@redhat.com>
12506
12507 * doc/extend.texi: Use lowercase "boolean".
12508 * doc/invoke.texi: Likewise.
12509 * doc/md.texi: Likewise.
12510 * target.def: Likewise.
12511 * doc/tm.texi: Regenerated.
12512
12513 2016-09-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12514
12515 PR middle-end/77426
12516 * expmed.c (synth_mult): Delete duplicate mode check.
12517
12518 2016-09-10 Tom de Vries <tom@codesourcery.com>
12519
12520 PR C/71602
12521 * builtins.c (std_canonical_va_list_type): Strictly return non-null for
12522 va_list type only.
12523 * config/i386/i386.c (ix86_canonical_va_list_type): Same.
12524 * gimplify.c (gimplify_va_arg_expr): Handle &va_list.
12525
12526 2016-09-09 Peter Bergner <bergner@vnet.ibm.com>
12527
12528 PR rtl-optimization/77289
12529 * lra-constraints.c (get_final_hard_regno): Add support for non hard
12530 register numbers. Remove support for subregs.
12531 (get_hard_regno): Use SUBREG_P. Don't call get_final_hard_regno().
12532 (get_reg_class): Delete removed get_final_hard_regno() argument.
12533 (uses_hard_regs_p): Call get_final_hard_regno().
12534
12535 2016-09-09 Martin Sebor <msebor@redhat.com>
12536
12537 PR c/77520
12538 PR c/77521
12539 * pretty-print.c (pp_quoted_string): New function.
12540 (pp_format): Call it for %c and %s directives.
12541
12542 2016-09-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
12543
12544 * doc/tm.texi.in (INITIAL_FRAME_POINTER_OFFSET): Remove.
12545 (ELIMINABLE_REGS, TARGET_CAN_ELIMINATE,
12546 INITIAL_ELIMINATION_OFFSET) : Update documentation.
12547 * target.def (frame_pointer_required, can_eliminate): Likewise.
12548 * doc/tm.texi: Regenerated.
12549 * builtins.c (expand_builtin_setjmp_receiver): Remove #ifdef
12550 ELIMINABLE_REGS.
12551 * df-scan.c (df_hard_reg_init): Likewise.
12552 * ira.c (ira_setup_eliminable_regset): Likewise.
12553 * lra-eliminations.c (reg_eliminate_1, (update_reg_eliminate,
12554 init_elim_table): Likewise.
12555 * reload1.c (reg_eliminate_1, verify_initial_elim_offsets,
12556 set_initial_elim_offsets, update_eliminables,
12557 init_elim_table): Likewise.
12558 * rtlanal.c (get_initial_register_offset): Likewise.
12559 * config/ft32/ft32.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
12560 * config/m32r/m32r.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
12561 * config/moxie/moxie.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
12562 * config/vax/vax.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
12563 * config/fr30/fr30.h: Fix comment.
12564 * config/frv/frv.c: Likewise.
12565 * config/frv/frv.h: Likewise.
12566 * config/ft32/ft32.h: Likewise.
12567 * config/visium/visium.h: Likewise.
12568 * config/pa/pa64-linux.h: Likewise.
12569 * config/v850/v850.h: Likewise.
12570 * config/cris/cris.c: Likewise.
12571 * config/ia64/ia64.h: Likewise.
12572 * config/moxie/moxie.h: Likewise.
12573 * config/m32r/m32r.h: Likewise.
12574
12575 2016-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
12576
12577 PR target/77267
12578 * config.in: Regenerate.
12579 * config/i386/linux-common.h (MPX_LD_AS_NEEDED_GUARD_PUSH):
12580 New macro.
12581 (MPX_LD_AS_NEEDED_GUARD_PUSH): Ditto.
12582 (LIBMPXWRAPPERS_SPEC): Remove "--no-whole-archive" from
12583 static-libmpxwrappers case.
12584 (LIBMPX_SPEC): Add guards with MPX_LD_AS_NEEDED_GUARD_PUSH and
12585 MPX_LD_AS_NEEDED_GUARD_POP.
12586 * configure: Regenerate.
12587 * configure.ac (HAVE_LD_PUSHPOPSTATE_SUPPORT): New variable.
12588 defined if linker support "--push-state"/"--pop-state".
12589
12590 2016-09-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
12591
12592 * doc/cpp.texi (__*_WIDTH__): Small wording fixes.
12593
12594 2016-09-09 Joseph Myers <joseph@codesourcery.com>
12595
12596 * doc/cpp.texi (__SCHAR_WIDTH__, __SHRT_WIDTH__, __INT_WIDTH__)
12597 (__LONG_WIDTH__, __LONG_LONG_WIDTH__, __PTRDIFF_WIDTH__)
12598 (__SIG_ATOMIC_WIDTH__, __SIZE_WIDTH__, __WCHAR_WIDTH__)
12599 (__WINT_WIDTH__, __INT_LEAST8_WIDTH__, __INT_LEAST16_WIDTH__)
12600 (__INT_LEAST32_WIDTH__, __INT_LEAST64_WIDTH__)
12601 (__INT_FAST8_WIDTH__, __INT_FAST16_WIDTH__, __INT_FAST32_WIDTH__)
12602 (__INT_FAST64_WIDTH__, __INTPTR_WIDTH__, __INTMAX_WIDTH__):
12603 Document.
12604 * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Define
12605 width macros from TS 18661-1.
12606 * glimits.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Likewise.
12607
12608 2016-09-08 Jakub Jelinek <jakub@redhat.com>
12609
12610 PR fortran/77516
12611 * omp-low.c (lower_rec_simd_input_clauses): Use max_vf for non-positive
12612 OMP_CLAUSE_SAFELEN_EXPR.
12613
12614 2016-09-07 David Malcolm <dmalcolm@redhat.com>
12615
12616 * Makefile.in (OBJS): Add substring-locations.o.
12617 * langhooks-def.h (class substring_loc): New forward decl.
12618 (lhd_get_substring_location): New decl.
12619 (LANG_HOOKS_GET_SUBSTRING_LOCATION): New macro.
12620 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_GET_SUBSTRING_LOCATION.
12621 * langhooks.c (lhd_get_substring_location): New function.
12622 * langhooks.h (class substring_loc): New forward decl.
12623 (struct lang_hooks): Add field get_substring_location.
12624 * substring-locations.c: New file, taking definition of
12625 format_warning_va and format_warning_at_substring from
12626 c-family/c-format.c, making them non-static.
12627 * substring-locations.h (class substring_loc): Move class here
12628 from c-family/c-common.h. Add and rewrite comments.
12629 (format_warning_va): New decl.
12630 (format_warning_at_substring): New decl.
12631 (get_source_location_for_substring): Add comment.
12632
12633 2016-09-07 Eric Gallager <egall@gwmail.gwu.edu>
12634
12635 * config/i386/i386.c: Add 'U' suffix to processor feature bits
12636 to avoid -Wnarrowing warning.
12637 * config/i386/x86-tune.def: Likewise for DEF_TUNE selector bitmasks.
12638 * opts.c: Likewise for SANITIZER_OPT bitmasks.
12639
12640 2016-09-07 Wilco Dijkstra <wdijkstr@arm.com>
12641
12642 * config/aarch64/aarch64.c (aarch64_legitimize_address):
12643 Avoid use of base_offset if offset already in range.
12644
12645 2016-09-07 Kaz Kojima <kkojima@gcc.gnu.org>
12646
12647 * config/sh/sh-protos.h (struct sh_atomic_model,
12648 selected_atomic_model, TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
12649 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
12650 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Move to...
12651 * config/sh/sh.h (struct sh_atomic_model,
12652 selected_atomic_model, TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
12653 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
12654 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): ...here.
12655 Guard with __cplusplus.
12656
12657 2016-09-06 Jakub Jelinek <jakub@redhat.com>
12658
12659 PR target/69255
12660 * config/i386/i386.c (ix86_expand_builtin): For builtin with
12661 unsupported or unknown ISA, use expand_call.
12662
12663 2016-09-06 Martin Liska <mliska@suse.cz>
12664
12665 PR gcov-profile/77378
12666 PR gcov-profile/77466
12667 * tree-profile.c (tree_profiling): Detect whether target can use
12668 -fprofile-update=atomic.
12669
12670 2016-09-06 Richard Biener <rguenther@suse.de>
12671
12672 PR tree-optimization/77479
12673 * tree-vrp.c (update_value_range): Extend overflow handling to
12674 VARYING.
12675
12676 2016-09-05 Jakub Jelinek <jakub@redhat.com>
12677
12678 PR target/77476
12679 * config/i386/i386.md (isa): Add x64_avx512bw.
12680 (*zero_extendsidi2): For alternative 11 use x64_avx512bw isa.
12681 (kmov_isa): New mode attr.
12682 (zero_extend<mode>di2): Use <kmov_isa> isa for the last alternative.
12683 (*zero_extend<mode>si2): Likewise.
12684 (*zero_extendqihi2): Use avx512dq isa for the last alternative.
12685
12686 2016-09-05 Gerald Pfeifer <gerald@pfeifer.com>
12687
12688 * doc/invoke.texi (SPU Options): nops -> NOPs.
12689 (x86 Options): Ditto.
12690
12691 2016-09-05 Jakub Jelinek <jakub@redhat.com>
12692
12693 PR middle-end/77475
12694 * toplev.c (process_options): Temporarily set input_location
12695 to UNKNOWN_LOCATION around targetm.target_option.override () call.
12696
12697 2016-09-05 Uros Bizjak <ubizjak@gmail.com>
12698
12699 PR rtl-optimization/77452
12700 * explow.c (plus_constant) <case MEM>: Extract scalar constant from
12701 inner-mode reference to a CONST_VECTOR constant in the constant pool.
12702
12703 2016-09-05 Marek Polacek <polacek@redhat.com>
12704
12705 PR c/77423
12706 * doc/invoke.texi: Update -Wlogical-not-parentheses documentation.
12707
12708 2016-09-05 Jakub Jelinek <jakub@redhat.com>
12709
12710 PR other/77421
12711 * gensupport.c (alter_output_for_subst_insn): Remove redundant
12712 *insn_out == '*' test. Don't copy unnecessary to yet another
12713 memory buffer, and don't leak it.
12714
12715 PR rtl-optimization/77425
12716 * ipa-devirt.c (get_odr_type): Set val->id unconditionally.
12717
12718 2016-09-03 Kirill Yukhin <kirill.yukhin@intel.com>
12719
12720 * ubsan.c (ubsan_use_new_style_p): Fix check for empty string.
12721
12722 2016-09-02 David Malcolm <dmalcolm@redhat.com>
12723
12724 * common.opt (fdiagnostics-generate-patch): New option.
12725 * diagnostic.c: Include "edit-context.h".
12726 (diagnostic_initialize): Initialize context->edit_context_ptr.
12727 (diagnostic_finish): Delete context->edit_context_ptr.
12728 (diagnostic_report_diagnostic): Add fix-it hints from the
12729 diagnostic to context->edit_context_ptr, if any.
12730 * diagnostic.h (class edit_context): Add forward decl.
12731 (struct diagnostic_context): Add field "edit_context_ptr".
12732 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
12733 -fdiagnostics-generate-patch.
12734 (-fdiagnostics-generate-patch): New item.
12735 * toplev.c: Include "edit-context.h".
12736 (process_options): Set global_dc->edit_context_ptr to a new
12737 edit_context if the options need one.
12738 (toplev::main): Handle -fdiagnostics-generate-patch by using
12739 global_dc->edit_context_ptr.
12740
12741 2016-09-02 Jakub Jelinek <jakub@redhat.com>
12742
12743 PR c/65467
12744 * gimplify.c (gimplify_adjust_omp_clauses_1): Diagnose implicit
12745 map and firstprivate clauses on target construct for _Atomic
12746 qualified decls.
12747 (gimplify_adjust_omp_clauses): Diagnose explicit firstprivate clauses
12748 on target construct for _Atomic qualified decls.
12749 * omp-low.c (use_pointer_for_field): Return true for _Atomic qualified
12750 decls.
12751 * omp-simd-clone.c (simd_clone_clauses_extract): Warn and give up for
12752 _Atomic qualified arguments not mentioned in uniform clause.
12753
12754 2016-09-02 David Malcolm <dmalcolm@redhat.com>
12755
12756 * Makefile.in (OBJS-libcommon): Add edit-context.o.
12757 * diagnostic-color.c (color_dict): Add "diff-filename",
12758 "diff-hunk", "diff-delete", and "diff-insert".
12759 (parse_gcc_colors): Update default value of GCC_COLORS in comment
12760 to reflect above changes.
12761 * doc/invoke.texi (-fdiagnostics-color): Update description of
12762 default GCC_COLORS, and of the supported capabilities.
12763 * edit-context.c: New file.
12764 * edit-context.h: New file.
12765 * input.c (struct fcache): Add field "missing_trailing_newline".
12766 (diagnostics_file_cache_forcibly_evict_file): Initialize it to
12767 true.
12768 (add_file_to_cache_tab): Likewise.
12769 (fcache::fcache): Likewise.
12770 (get_next_line): Update c->missing_trailing_newline.
12771 (location_missing_trailing_newline): New function.
12772 * input.h (location_missing_trailing_newline): New decl.
12773 * selftest-run-tests.c (selftest::run_tests): Call
12774 edit_context_c_tests.
12775 * selftest.h (edit_context_c_tests): New decl.
12776
12777 2016-09-02 Jakub Jelinek <jakub@redhat.com>
12778 Richard Biener <rguenth@suse.de>
12779
12780 PR tree-optimization/77444
12781 * tree-ssa-loop-ivopts.c (cand_value_at): For pointers use sizetype
12782 as steptype, remove redundant initialization.
12783
12784 2016-09-02 Jakub Jelinek <jakub@redhat.com>
12785
12786 PR sanitizer/77396
12787 * sanopt.c: Include gimple-ssa.h, tree-phinodes.h and ssa-iterators.h.
12788 (sanopt_optimize_walker): Optimize away
12789 __asan_before_dynamic_init (...) followed by
12790 __asan_after_dynamic_init () without intervening memory loads/stores.
12791 * ipa-pure-const.c (special_builtin_state): Handle
12792 BUILT_IN_ASAN_BEFORE_DYNAMIC_INIT and
12793 BUILT_IN_ASAN_AFTER_DYNAMIC_INIT.
12794
12795 2016-09-02 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
12796
12797 * cfg.c (free_original_copy_tables): Replace second assignment of
12798 bb_copy = NULL by bb_original = NULL.
12799
12800 2016-09-02 Jakub Jelinek <jakub@redhat.com>
12801
12802 PR other/77421
12803 * config/i386/i386.c (ix86_expanded_args_builtin): Remove redundant
12804 assignment added in r216794.
12805
12806 2016-09-02 David Malcolm <dmalcolm@redhat.com>
12807
12808 * Makefile.in (OBJS): Add typed-splay-tree.o.
12809 * selftest-run-tests.c (selftest::run_tests): Call
12810 typed_splay_tree_c_tests.
12811 * selftest.h (typed_splay_tree_c_tests): New decl.
12812 * typed-splay-tree.c: New file.
12813 * typed-splay-tree.h (typed_splay_tree::foreach_fn): New typedef.
12814 (typed_splay_tree::max): New method.
12815 (typed_splay_tree::min): New method.
12816 (typed_splay_tree::foreach): New method.
12817 (typed_splay_tree::closure): New struct.
12818 (typed_splay_tree::inner_foreach_fn): New function.
12819
12820 2016-09-02 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
12821
12822 * ipa-cp.c (ipcp_store_bits_results): Change option name from
12823 -fipa-cp-bit to -fipa-bit-cp.
12824
12825 2016-09-01 Martin Sebor <msebor@redhat.com>
12826
12827 PR tree-optimization/71831
12828 * tree-object-size.h: Return bool instead of the size and add
12829 argument for the size.
12830 * tree-object-size.c (compute_object_offset): Update signature.
12831 (addr_object_size): Same.
12832 (compute_builtin_object_size): Return bool instead of the size
12833 and add argument for the size. Handle POINTER_PLUS_EXPR when
12834 optimization is disabled.
12835 (expr_object_size): Adjust.
12836 (plus_stmt_object_size): Adjust.
12837 (pass_object_sizes::execute): Adjust.
12838 * builtins.c (fold_builtin_object_size): Adjust.
12839 * doc/extend.texi (Object Size Checking): Update.
12840 * ubsan.c (instrument_object_size): Adjust.
12841
12842 2016-09-01 Martin Sebor <msebor@redhat.com>
12843
12844 * genmatch.c (parser::parse_expr): Increase buffer size to guarantee
12845 it fits the output of the formatted function regardless of its
12846 arguments.
12847 * genmodes.c (parser::parse_expr): Same.
12848 * gimplify.c (gimplify_asm_expr): Same.
12849 * passes.c (pass_manager::register_one_dump_file): Same.
12850 * print-tree.c (print_node): Same.
12851
12852 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
12853
12854 * config/rs6000/altivec.md: Use VSCR_REGNO instead of 110 throughout.
12855
12856 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
12857
12858 * config/rs6000/altivec.md: Use VRSAVE_REGNO instead of 109 throughout.
12859
12860 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
12861
12862 * config/rs6000/altivec.md: Use CR6_REGNO instead of 74 throughout.
12863 * config/rs6000/vector.md: Ditto.
12864 * config/rs6000/vsx.md: Ditto.
12865
12866 2016-09-01 Eric Botcazou <ebotcazou@adacore.com>
12867
12868 * ipa-inline-analysis.c (param_change_prob): Get to the base object
12869 first in all cases.
12870
12871 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
12872
12873 * config/rs6000/rs6000.md (*restore_gpregs_<mode>_r11,
12874 *restore_gpregs_<mode>_r12, *restore_gpregs_<mode>_r1,
12875 *return_and_restore_gpregs_<mode>_r11,
12876 *return_and_restore_gpregs_<mode>_r12,
12877 *return_and_restore_gpregs_<mode>_r1,
12878 *return_and_restore_fpregs_<mode>_r11,
12879 *return_and_restore_fpregs_<mode>_r12,
12880 *return_and_restore_fpregs_<mode>_r1): Use the hard register LR_REGNO
12881 directly instead of via the "l" constraint. Renumber operands.
12882 Fix whitespace.
12883
12884 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
12885
12886 * config/rs6000/altivec.md (*save_world, *save_vregs_<mode>_r11,
12887 save_vregs_<mode>_r12, *restore_vregs_<mode>_r11,
12888 *restore_vregs_<mode>_r12): Use LR_REGNO instead of 65.
12889 * config/rs6000/darwin.md (load_macho_picbase, load_macho_picbase_si,
12890 load_macho_picbase_di, *call_indirect_nonlocal_darwin64,
12891 *call_nonlocal_darwin64, *call_value_indirect_nonlocal_darwin64,
12892 *call_value_nonlocal_darwin64, reload_macho_picbase,
12893 reload_macho_picbase_si, reload_macho_picbase_di): Ditto.
12894 * config/rs6000/rs6000.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Ditto.
12895 * config/rs6000/rs6000.md (*save_gpregs_<mode>_r11,
12896 *save_gpregs_<mode>_r12, *save_gpregs_<mode>_r1,
12897 *save_fpregs_<mode>_r11, *save_fpregs_<mode>_r12,
12898 *save_fpregs_<mode>_r1): Ditto.
12899 * config/rs6000/spe.md (*save_gpregs_spe, *restore_gpregs_spe,
12900 *return_and_restore_gpregs_spe): Ditto.
12901
12902 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
12903
12904 * config/rs6000/rs6000.md
12905 (define_insn "*return_and_restore_fpregs_aix_<mode>_r11"): Delete
12906 the use of the link register.
12907 (define_insn "*return_and_restore_fpregs_aix_<mode>_r1"): Ditto.
12908
12909 2016-09-01 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12910 Michael Meissner <meissner@linux.vnet.ibm.com>
12911
12912 PR target/72827
12913 * config/rs6000/rs6000.c (rs6000_legitimize_address): Avoid
12914 reg+reg addressing for TImode.
12915 (rs6000_legitimate_address_p): Only allow register indirect
12916 addressing for TImode, even without TARGET_QUAD_MEMORY.
12917
12918 2016-09-01 Richard Biener <rguenther@suse.de>
12919
12920 PR middle-end/77436
12921 * tree-chrec.c (tree_fold_binomial): Use widest_int, properly
12922 check whether the result fits the desired result type.
12923
12924 2016-09-01 Nathan Sidwell <nathan@acm.org>
12925
12926 * config/nvptx/nvptx.md (cbranch<mode>4): Op 2 can be const.
12927
12928 2016-09-01 Wilco Dijkstra <wdijkstr@arm.com>
12929
12930 * config/aarch64/aarch64.c (aarch64_legitimize_address_displacement):
12931 New function.
12932 (TARGET_LEGITIMIZE_ADDRESS_DISPLACEMENT): Define.
12933
12934 2016-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12935
12936 * config/aarch64/aarch64.md (*ands<mode>_compare0): New pattern.
12937 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_NZmode
12938 for comparisons of integer ZERO_EXTEND against zero.
12939
12940 2016-09-01 Eric Botcazou <ebotcazou@adacore.com>
12941
12942 * config/i386/i386.c (ix86_option_override_internal): Also disable the
12943 STV pass if -mstackrealign is enabled.
12944
12945 2016-08-31 Ilya Verbin <iverbin@gmail.com>
12946
12947 * config/i386/driver-i386.c (host_detect_local_cpu): Fix detection of
12948 AVX512IFMA.
12949
12950 2016-08-31 David Malcolm <dmalcolm@redhat.com>
12951
12952 * diagnostic-show-locus.c (class layout): Add field m_fixit_hints.
12953 (layout_range::intersects_line_p): New method.
12954 (test_range_contains_point_for_single_point): Rename to...
12955 (test_layout_range_for_single_point): ...this, and add testing
12956 for layout_range::intersects_line_p.
12957 (test_range_contains_point_for_single_line): Rename to...
12958 (test_layout_range_for_single_line): ...this, and add testing
12959 for layout_range::intersects_line_p.
12960 (test_range_contains_point_for_multiple_lines): Rename to...
12961 (test_layout_range_for_multiple_lines): ...this, and add testing
12962 for layout_range::intersects_line_p.
12963 (layout::layout): Populate m_fixit_hints.
12964 (layout::get_expanded_location): Handle the case of a line-span
12965 for a fix-it hint.
12966 (layout::validate_fixit_hint_p): New method.
12967 (get_line_span_for_fixit_hint): New function.
12968 (layout::calculate_line_spans): Add spans for fixit-hints.
12969 (layout::should_print_annotation_line_p): New method.
12970 (layout::print_any_fixits): Drop param "richloc", instead using
12971 validated fixits in m_fixit_hints. Add "const" to hint pointers.
12972 (diagnostic_show_locus): Avoid printing blank annotation lines.
12973 (selftest::test_diagnostic_context::test_diagnostic_context):
12974 Initialize show_column and start_span.
12975 (selftest::test_diagnostic_context::start_span_cb): New static
12976 function.
12977 (selftest::test_diagnostic_show_locus_fixit_lines): New function.
12978 (selftest::diagnostic_show_locus_c_tests): Update for function
12979 renamings. Call test_diagnostic_show_locus_fixit_lines.
12980
12981 2016-08-31 Marc Glisse <marc.glisse@inria.fr>
12982
12983 PR tree-optimization/73714
12984 * match.pd (a * (1 << b)): Revert change from 2016-05-23.
12985
12986 2016-08-31 David Malcolm <dmalcolm@redhat.com>
12987
12988 * selftest.c: Move "namespace selftest {" to top of file,
12989 removing explicit "selftest::" qualifiers throughout.
12990
12991 2016-08-31 Marc Glisse <marc.glisse@inria.fr>
12992
12993 * config/i386/avx512fintrin.h (__m512_u, __m512i_u, __m512d_u):
12994 New types.
12995 (_mm512_loadu_pd, _mm512_storeu_pd, _mm512_loadu_ps,
12996 _mm512_storeu_ps, _mm512_loadu_si512, _mm512_storeu_si512):
12997 Replace builtin with vector extension.
12998 * config/i386/avxintrin.h (__m256_u, __m256i_u, __m256d_u):
12999 New types.
13000 (_mm256_loadu_pd, _mm256_storeu_pd, _mm256_loadu_ps,
13001 _mm256_storeu_ps, _mm256_loadu_si256, _mm256_storeu_si256):
13002 Replace builtin with vector extension.
13003 * config/i386/emmintrin.h (__m128i_u, __m128d_u): New types.
13004 (_mm_loadu_pd, _mm_storeu_pd, _mm_loadu_si128, _mm_storeu_si128):
13005 Replace builtin with vector extension.
13006 * config/i386/xmmintrin.h (__m128_u): New type.
13007 (_mm_loadu_ps, _mm_storeu_ps): Replace builtin with vector extension.
13008 (_mm_load_ps, _mm_store_ps): Simplify.
13009
13010 2016-08-31 Eric Botcazou <ebotcazou@adacore.com>
13011
13012 * config/arm/arm.c (thumb1_size_rtx_costs) <SET>: Add missing guard.
13013
13014 2016-08-30 David Malcolm <dmalcolm@redhat.com>
13015
13016 * diagnostic-show-locus.c (colorizer::begin_state): Support more
13017 than 3 ranges per diagnostic by alternating between color 1 and
13018 color 2.
13019 (layout::layout): Replace use of rich_location::MAX_RANGES
13020 with richloc->get_num_locations ().
13021 (layout::calculate_line_spans): Replace use of
13022 rich_location::MAX_RANGES with m_layout_ranges.length ().
13023 (layout::print_annotation_line): Handle arbitrary numbers of
13024 ranges in caret-printing by defaulting to '^'.
13025 (selftest::test_one_liner_many_fixits): New function.
13026 (test_diagnostic_show_locus_one_liner): Call it.
13027 * diagnostic.c (diagnostic_initialize): Update for renaming
13028 of rich_location::MAX_RANGES to
13029 rich_location::STATICALLY_ALLOCATED_RANGES.
13030 * diagnostic.h (struct diagnostic_context): Likewise.
13031
13032 2016-08-30 David Malcolm <dmalcolm@redhat.com>
13033
13034 * selftest.c (selftest::named_temp_file::named_temp_file): New
13035 ctor.
13036 (selftest::temp_source_file::~temp_source_file): Move to...
13037 (selftest::named_temp_file::~named_temp_file): ...here.
13038 (selftest::test_named_temp_file): New function.
13039 (selftest::selftest_c_tests): Call test_named_temp_file.
13040 * selftest.h (class named_temp_file): New class.
13041 (class temp_source_file): Convert to a subclass of named_temp_file.
13042
13043 2016-08-30 Segher Boessenkool <segher@kernel.crashing.org>
13044
13045 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Do not emit
13046 USEs of LR_REGNO in returns and sibcalls.
13047 (rs6000_output_mi_thunk): Similar.
13048 (rs6000_sibcall_aix): Similar.
13049 * config/rs6000/rs6000.md (sibcall, sibcall_value, sibcall_local32,
13050 sibcall_local64, sibcall_value_local32, sibcall_value_local64,
13051 sibcall_nonlocal_sysv<mode>, sibcall_value_nonlocal_sysv<mode>):
13052 Remove the USE of LR_REGNO from the patterns as well. Delete an
13053 obsolete comment.
13054 (return_internal_<mode>): Delete.
13055
13056 2016-08-30 Tamar Christina <tamar.christina@arm.com>
13057
13058 * config/aarch64/aarch64-simd.md
13059 (aarch64_ld2<mode>_dreg_le): New.
13060 (aarch64_ld2<mode>_dreg_be): New.
13061 (aarch64_ld2<mode>_dreg): Removed.
13062 (aarch64_ld3<mode>_dreg_le): New.
13063 (aarch64_ld3<mode>_dreg_be): New.
13064 (aarch64_ld3<mode>_dreg): Removed.
13065 (aarch64_ld4<mode>_dreg_le): New.
13066 (aarch64_ld4<mode>_dreg_be): New.
13067 (aarch64_ld4<mode>_dreg): Removed.
13068 (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Wrapper around _le, _be.
13069
13070 2016-08-30 David Malcolm <dmalcolm@redhat.com>
13071
13072 * diagnostic-show-locus.c (test_one_liner_fixit_insert): Remove
13073 redundant location param.
13074 (test_one_liner_fixit_remove): Likewise.
13075 (test_one_liner_fixit_replace): Likewise.
13076 (test_one_liner_fixit_replace_equal_secondary_range): Likewise.
13077 * gcc-rich-location.c
13078 (gcc_rich_location::add_fixit_misspelled_id): Eliminate call to
13079 get_range_from_loc. Drop overload taking a const char *.
13080 * gcc-rich-location.h
13081 (gcc_rich_location::add_fixit_misspelled_id): Drop overload taking
13082 a const char *.
13083
13084 2016-08-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
13085
13086 * config/linux.c (linux_libc_has_function): Return true on musl.
13087
13088 2016-08-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
13089
13090 * config.gcc (*-*-*musl*): Disable gnu-indirect-function.
13091
13092 2016-08-30 Eric Botcazou <ebotcazou@adacore.com>
13093
13094 * postreload-gcse.c (bb_has_well_behaved_predecessors): Tweak criterion
13095 used for abnormal egdes.
13096
13097 2016-08-30 Jakub Jelinek <jakub@redhat.com>
13098
13099 PR tree-optimization/72866
13100 * tree-vect-patterns.c (search_type_for_mask): Turn into
13101 a small wrapper, move all code to ...
13102 (search_type_for_mask_1): ... this new function. Add caching
13103 and adjust recursive calls.
13104
13105 PR debug/77363
13106 * dwarf2out.c (modified_type_die): Use lookup_type_die (type)
13107 instead of lookup_type_die (type_main_variant (type)) even for array
13108 types.
13109
13110 PR middle-end/77377
13111 * simplify-rtx.c (avoid_constant_pool_reference): For out of bounds
13112 constant pool reference return x instead of c.
13113
13114 2016-08-29 Segher Boessenkool <segher@kernel.crashing.org>
13115
13116 * config/rs6000/rs6000.h (CALL_REALLY_USED_REGISTERS): Do not
13117 include MQ.
13118
13119 2016-08-29 David Malcolm <dmalcolm@redhat.com>
13120
13121 * input.c
13122 (selftest::test_make_location_nonpure_range_endpoints): Fix
13123 header comment.
13124
13125 2016-08-29 David Malcolm <dmalcolm@redhat.com>
13126
13127 * diagnostic-show-locus.c
13128 (selftest::test_one_liner_fixit_validation_adhoc_locations): New
13129 function.
13130 (selftest::test_diagnostic_show_locus_one_liner): Call it.
13131 * input.c (get_pure_location): Move to libcpp/line-map.c.
13132 * input.h (get_pure_location): Convert decl to an inline function
13133 calling implementation in libcpp.
13134
13135 2016-08-29 Uros Bizjak <ubizjak@gmail.com>
13136
13137 PR target/77403
13138 * config/i386/sse.md (vec_set_lo_<mode><mask_name>): Fix assembler
13139 template for intel asm dialect.
13140 (vec_set_hi_<mode><mask_name>): Ditto.
13141
13142 2016-08-29 David Malcolm <dmalcolm@redhat.com>
13143
13144 * selftest.h (selftest::fail): Add ATTRIBUTE_NORETURN.
13145 (selftest::fail_formatted): Likewise.
13146
13147 2016-08-29 David Malcolm <dmalcolm@redhat.com>
13148
13149 * input.c (make_location): Call get_start and get_finish
13150 on the endpoints to avoid storing packed ranges or ad-hoc
13151 ranges in them.
13152 (selftest::test_make_location_nonpure_range_endpoints): New function.
13153 (selftest::input_c_tests): Call it.
13154 * input.h (get_start): New inline function.
13155
13156 2016-08-29 Tom de Vries <tom@codesourcery.com>
13157
13158 PR c/77398
13159 * gimplify.c (gimplify_va_arg_expr): Replace first argument type error
13160 with assert.
13161
13162 2016-08-29 Eric Botcazou <ebotcazou@adacore.com>
13163
13164 * Makefile.in (gcov-iov.h): Add dummy recipe.
13165
13166 2016-08-29 Nathan Sidwell <nathan@acm.org>
13167
13168 * config/nvptx/nvptx.c: #include tree-vrp.h.
13169
13170 2016-08-28 Eric Botcazou <ebotcazou@adacore.com>
13171
13172 PR target/77324
13173 * config/sparc/sparc.c (sparc_legitimate_address_p): Accept special
13174 HIGH+LO construct during reload.
13175
13176 2016-08-28 Tom de Vries <tom@codesourcery.com>
13177
13178 PR lto/70955
13179 * config/i386/i386.c (ix86_build_builtin_va_list_64): Tag type with
13180 'sysv_abi va_list' attribute.
13181 (ix86_build_builtin_va_list): Tag type with 'ms_abi va_list' attribute.
13182 (ix86_canonical_va_list_type): Handle 'sysv_abi/ms_abi va_list'
13183 attributes.
13184
13185 2016-08-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13186
13187 * emit-rtl.h (struct rtl_data): Make stack_slot_list a vector.
13188 * emit-rtl.c (unshare_all_rtl_1): Adjust.
13189 (unshare_all_rtl_again): Likewise.
13190 * function.c (assign_stack_local_1): Likewise.
13191 (assign_stack_temp_for_type): Likewise.
13192
13193 2016-08-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13194
13195 * cfgbuild.c (make_edges): Adjust.
13196 * cfgrtl.c (can_delete_label_p): Likewise.
13197 * dwarf2cfi.c (create_trace_edges): Likewise.
13198 * except.c (sjlj_emit_dispatch_table): Likewise.
13199 * function.h (struct expr_status): make x_forced_labels a vector.
13200 * jump.c (rebuild_jump_labels_1): Adjust.
13201 * reload1.c (set_initial_label_offsets): Likewise.
13202 * stmt.c (force_label_rtx): Likewise.
13203 (expand_label): Likewise.
13204
13205 2016-08-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13206
13207 * haifa-sched.c (fix_recovery_deps): Make ready_list a vector.
13208
13209 2016-08-27 Patrick Palka <ppalka@gcc.gnu.org>
13210
13211 PR tree-optimization/71077
13212 PR tree-optimization/68542
13213 * fold-const.c (fold_relational_const): Fix folding of
13214 VECTOR_CST comparisons that have a scalar boolean result type.
13215 (selftest::test_vector_folding): New static function.
13216 (selftest::fold_const_c_tests): Call it.
13217
13218 2016-08-27 Gerald Pfeifer <gerald@pfeifer.com>
13219
13220 * doc/extend.texi (SPU Built-in Functions): Remove stale
13221 references to material formerly at IBM and Sony.
13222
13223 2016-08-26 David Edelsohn <dje.gcc@gmail.com>
13224
13225 PR target/77349
13226 * config/rs6000/xcoff.h (DWARF_OFFSET_SIZE): Define as PTR_SIZE.
13227
13228 2016-08-26 David Malcolm <dmalcolm@redhat.com>
13229
13230 * diagnostic-show-locus.c
13231 (selftest::test_fixit_consolidation): New function.
13232 (selftest::diagnostic_show_locus_c_tests): Call it.
13233 * gcc-rich-location.h (gcc_rich_location): Eliminate unused
13234 constructor based on source_range.
13235
13236 2016-08-26 David Malcolm <dmalcolm@redhat.com>
13237
13238 * diagnostic-color.c (color_dict): Add "fixit-insert" and
13239 "fixit-delete".
13240 (parse_gcc_colors): Update description of default GCC_COLORS.
13241 * diagnostic-show-locus.c (colorizer::set_fixit_hint): Delete.
13242 (colorizer::set_fixit_insert): New method.
13243 (colorizer::set_fixit_delete): New method.
13244 (colorizer::get_color_by_name): New method.
13245 (colorizer::STATE_FIXIT_INSERT): New constant.
13246 (colorizer::STATE_FIXIT_DELETE): New constant.
13247 (class colorizer): Drop "_cs" suffix from fields. Delete "_ce"
13248 fields in favor of new field "m_stop_color". Add fields
13249 "m_fixit_insert" and "m_fixit_delete".
13250 (colorizer::colorizer): Update for above changes. Replace
13251 colorize_start calls with calls to get_color_by_name.
13252 (colorizer::begin_state): Handle STATE_FIXIT_INSERT and
13253 STATE_FIXIT_DELETE. Update for field renamings.
13254 (colorizer::finish_state): Simplify by using m_stop_color,
13255 rather than multiple identical "*_ce" fields.
13256 (colorizer::get_color_by_name): New method.
13257 (layout::print_any_fixits): Print insertions and replacements
13258 using the "fixit-insert" color, and deletions using the
13259 "fixit-delete" color.
13260 * doc/invoke.texi (-fdiagnostics-color): Update description of
13261 default GCC_COLORS, and of the supported capabilities.
13262
13263 2016-08-26 Max Filippov <jcmvbkbc@gmail.com>
13264
13265 * config/xtensa/xtensa.c (xtensa_expand_prologue): Update
13266 current_function_static_stack_size variable with the static
13267 stack frame size of the current function when
13268 flag_stack_usage_info is enabled.
13269
13270 2016-08-26 Nathan Sidwell <nathan@acm.org>
13271
13272 * ipa-inline-analysis.c (inline_write_summary): Remove unnecessary
13273 assignment inside if condition.
13274
13275 2016-08-26 Richard Biener <rguenther@suse.de>
13276
13277 PR tree-optimization/69047
13278 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle general bitfield
13279 extracts similar to what FRE does.
13280 (non_rewritable_mem_ref_base): Likewise.
13281
13282 2016-08-26 Joseph Myers <joseph@codesourcery.com>
13283
13284 * config/i386/i386.c (ix86_libgcc_floating_mode_supported_p)
13285 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Remove.
13286 * config/i386/i386elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
13287 * config/i386/lynx.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
13288 * config/i386/netbsd-elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE):
13289 Likewise.
13290 * config/i386/netbsd64.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
13291 * config/i386/nto.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
13292 * config/i386/openbsd.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
13293 * config/i386/rtemself.h (IX86_NO_LIBGCC_TFMODE): Likewise.
13294 * config/i386/vxworks.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
13295
13296 2016-08-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13297
13298 PR target/70473
13299 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_muld): Reduce
13300 reservation duration to 15 cycles.
13301 (cortex_a8_vfp_macs): Likewise.
13302 (cortex_a8_vfp_macd): Likewise.
13303 (cortex_a8_vfp_divs): Likewise.
13304 (cortex_a8_vfp_divd): Likewise.
13305
13306 2016-08-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13307
13308 * config/arm/arm.c (arm_sets_movw_movt_fusible_p): New function.
13309 (aarch_macro_fusion_pair_p): Use above to avoid early return.
13310
13311 2016-08-26 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13312 Martin Jambhor <mjambor@suse.cz>
13313
13314 * common.opt: New option -fipa-bit-cp.
13315 * doc/invoke.texi: Document -fipa-bit-cp.
13316 * opts.c (default_options_table): Add entry for -fipa-bit-cp.
13317 (enable_fdo_optimizations): Check for flag_ipa_bit_cp.
13318 * tree-ssa-ccp.h: New header file.
13319 * tree-ssa-ccp.c: Include tree-ssa-ccp.h
13320 (bit_value_binop_1): Change to bit_value_binop_1 and export it.
13321 Replace all occurences of tree parameter by two new params: signop, int.
13322 (bit_value_unop_1): Change to bit_value_unop and export it.
13323 Replace all occurences of tree parameter by two new params: signop,
13324 int.
13325 (bit_value_binop): Change call from bit_value_binop_1 to
13326 bit_value_binop.
13327 (bit_value_assume_aligned): Likewise.
13328 (bit_value_unop): Change call from bit_value_unop_1 to bit_value_unop.
13329 (do_ssa_ccp): Pass nonzero_p || flag_ipa_cp_bit instead of nonzero_p
13330 to ccp_finalize.
13331 (ccp_finalize): Skip processing if val->mask == 0.
13332 * ipa-cp.c: Include tree-ssa-ccp.h
13333 (ipcp_bits_lattice): New class.
13334 (ipcp_param_lattice (bits_lattice): New member.
13335 (print_all_lattices): Call ipcp_bits_lattice::print.
13336 (set_all_contains_variable): Call ipcp_bits_lattice::set_to_bottom.
13337 (initialize_node_lattices): Likewise.
13338 (propagate_bits_accross_jump_function): New function.
13339 (propagate_constants_accross_call): Call
13340 propagate_bits_accross_jump_function.
13341 (ipcp_propagate_stage): Store parameter types when in_lto_p is true.
13342 (ipcp_store_bits_results): New function.
13343 (ipcp_driver): Call ipcp_store_bits_results.
13344 * ipa-prop.h (ipa_bits): New struct.
13345 (ipa_jump_func): Add new member bits of type ipa_bits.
13346 (ipa_param_descriptor): Change decl to decl_or_type.
13347 (ipa_get_param): Change decl to decl_or_type and assert on
13348 PARM_DECL.
13349 (ipa_get_type): New function.
13350 (ipcp_transformation_summary): New member bits.
13351 * ipa-prop.c (ipa_get_param_decl_index_1): s/decl/decl_or_type.
13352 (ipa_populate_param_decls): Likewise.
13353 (ipa_dump_param): Likewise.
13354 (ipa_print_node_jump_functions_for_edge): Pretty-print ipa_bits jump
13355 function.
13356 (ipa_set_jf_unknown): Set ipa_bits::known to false.
13357 (ipa_compute_jump_functions_for_edge): Compute jump function for bits
13358 propagation.
13359 (ipa_node_params_t::duplicate): Copy src->bits into dst->bits.
13360 (ipa_write_jump_function): Add streaming for ipa_bits.
13361 (ipa_read_jump_function): Add support for reading streamed ipa_bits.
13362 (write_ipcp_transformation_info): Add streaming for ipa_bits
13363 summary for ltrans.
13364 (read_ipcp_transfomration_info): Add support for reading streamed
13365 ipa_bits.
13366 (ipcp_update_bits): New function.
13367 (ipcp_transform_function): Call ipcp_update_bits.
13368
13369 2016-08-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
13370
13371 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Update.
13372 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Update.
13373
13374 2016-08-25 David Edelsohn <dje.gcc@gmail.com>
13375
13376 * multiple_target.c (pass_data_dispatcher_calls): Fix typo.
13377
13378 2016-08-25 Richard Biener <rguenther@suse.de>
13379
13380 * dwarf2out.c (gen_remaining_tmpl_value_param_die_attributes):
13381 Only add locations in late dwarf.
13382 (gen_scheduled_generic_parms_dies): Do not set early dwarf here.
13383 (dwarf2out_early_finish): But do it here.
13384
13385 2016-08-24 Michael Collison <michael.collison@linaro.org>
13386 Michael Collison <michael.collison@arm.com>
13387
13388 * config/arm/arm-modes.def: Add new condition code mode CC_V
13389 to represent the overflow bit.
13390 * config/arm/arm.c (maybe_get_arm_condition_code):
13391 Add support for CC_Vmode.
13392 (arm_gen_unlikely_cbranch): New function to generate common
13393 rtl conditional branches for overflow patterns.
13394 * config/arm/arm-protos.h: Add prototype for
13395 arm_gen_unlikely_cbranch.
13396 * config/arm/arm.md (addv<mode>4, add<mode>3_compareV,
13397 addsi3_compareV_upper): New patterns to support signed
13398 builtin overflow add operations.
13399 (uaddv<mode>4, add<mode>3_compareC, addsi3_compareV_upper):
13400 New patterns to support unsigned builtin add overflow operations.
13401 (subv<mode>4, sub<mode>3_compare1): New patterns to support signed
13402 builtin overflow subtract operations,
13403 (usubv<mode>4): New patterns to support unsigned builtin subtract
13404 overflow operations.
13405 (negvsi3, negvdi3, negdi2_compare, negsi2_carryin_compare): New patterns
13406 to support builtin overflow negate operations.
13407
13408 2016-08-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13409
13410 Revert
13411 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
13412
13413 * explow.c (get_dynamic_stack_size): Take known alignment of stack
13414 pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
13415 needed.
13416
13417 2016-08-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
13418
13419 * doc/fragments.texi (MULTILIB_REUSE): Mention that only options in
13420 MULTILIB_OPTIONS should be used. Small wording fixes.
13421 * genmultilib: Memorize set of all option combinations in
13422 combination_space. Detect if RHS of MULTILIB_REUSE uses an option not
13423 found in MULTILIB_OPTIONS by checking if option set is listed in
13424 combination_space. Output new and existing error message to stderr.
13425
13426 2016-08-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
13427
13428 * config/arm/t-aprofile (MULTILIB_MATCHES): Add mapping for
13429 -mcpu=cortex-a7, -mfpu=neon-fp16, -mfpu=fpv5-d16 and -mfpu=fp-armv8.
13430 Fix typo in -mfpu=vfpv3-d16-fp16 mapping.
13431 (MULTILIB_REUSE): Remove reuse rules for option set including
13432 -mfpu=fp-armv8 and -mfpu=vfpv4
13433
13434 2016-08-24 Sebastian Huber <sebastian.huber@embedded-brains.de>
13435
13436 * config/arm/t-rtems: Add vfp multilib.
13437
13438 2016-08-23 Ian Lance Taylor <iant@golang.org>
13439
13440 * config/s390/s390.c (s390_asm_file_start): Call
13441 default_file_start.
13442
13443 2016-08-23 Michael Meissner <meissner@linux.vnet.ibm.com>
13444
13445 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Set
13446 initialization of all 0's to the 0 constant, instead of directly
13447 generating XOR. Add support for V4SImode vector initialization on
13448 64-bit systems with direct move, and rework the ISA 3.0 V4SImode
13449 initialization. Change variables used in V4SFmode vector
13450 intialization. For V4SFmode vector splat on ISA 3.0, make sure
13451 any memory addresses are in index form. Add support for using
13452 VSPLTH/VSPLTB to initialize vector short and vector char vectors
13453 with all of the same element.
13454 (regno_or_subregno): New helper function to return a register
13455 number for either REG or SUBREG.
13456 (rs6000_adjust_vec_address): Do not generate ADDI <reg>,R0,<num>.
13457 Use regno_or_subregno where possible.
13458 (rs6000_split_v4si_init_di_reg): New helper function to build up a
13459 DImode value from two SImode values in order to generate V4SImode
13460 vector initialization on 64-bit systems with direct move.
13461 (rs6000_split_v4si_init): Split up the insns for a V4SImode vector
13462 initialization.
13463 (rtx_is_swappable_p): V4SImode vector initialization insn is not
13464 swappable.
13465 * config/rs6000/rs6000-protos.h (rs6000_split_v4si_init): Add
13466 declaration.
13467 * config/rs6000/vsx.md (VSX_SPLAT_I): New mode iterators and
13468 attributes to initialize V8HImode and V16QImode vectors with the
13469 same element.
13470 (VSX_SPLAT_COUNT): Likewise.
13471 (VSX_SPLAT_SUFFIX): Likewise.
13472 (UNSPEC_VSX_VEC_INIT): New unspec.
13473 (vsx_concat_v2sf): Eliminate using 'preferred' register classes.
13474 Allow SFmode values to come from Altivec registers.
13475 (vsx_init_v4si): New insn/split for V4SImode vector initialization
13476 on 64-bit systems with direct move.
13477 (vsx_splat_<mode>, VSX_W iterator): Rework V4SImode and V4SFmode
13478 vector initializations, to allow V4SImode vector initializations
13479 on 64-bit systems with direct move.
13480 (vsx_splat_v4si): Likewise.
13481 (vsx_splat_v4si_di): Likewise.
13482 (vsx_splat_v4sf): Likewise.
13483 (vsx_splat_v4sf_internal): Likewise.
13484 (vsx_xxspltw_<mode>, VSX_W iterator): Eliminate using 'preferred'
13485 register classes.
13486 (vsx_xxspltw_<mode>_direct, VSX_W iterator): Likewise.
13487 (vsx_vsplt<VSX_SPLAT_SUFFIX>_di): New insns to support
13488 initializing V8HImode and V16QImode vectors with the same
13489 element.
13490 * config/rs6000/rs6000.h (TARGET_DIRECT_MOVE_64BIT): Disallow
13491 optimization if -maltivec=be.
13492
13493 2016-08-23 Christophe Lyon <christophe.lyon@linaro.org>
13494
13495 * config/arm/arm.md (arm_movqi_insn): Swap predicable_short_it
13496 attribute for alternatives 3 and 4.
13497
13498 2016-08-23 David Malcolm <dmalcolm@redhat.com>
13499
13500 * selftest.c (selftest::assert_str_contains): New function.
13501 (selftest::test_assertions): Verify ASSERT_STR_CONTAINS.
13502 * selftest.h (selftest::assert_str_contains): New decl.
13503 (ASSERT_STR_CONTAINS): New macro.
13504
13505 2016-08-23 Richard Biener <rguenther@suse.de>
13506
13507 PR tree-optimization/77286
13508 * tree-vect-loop.c (vect_analyze_loop_form_1): Do not modify
13509 the CFG here.
13510 (vect_transform_loop): Split exit edges of loop and scalar
13511 loop if required and at the appropriate time.
13512
13513 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
13514
13515 * explow.c (get_dynamic_stack_size): Take known alignment of stack
13516 pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
13517 needed.
13518 Correct a typo in a comment.
13519
13520 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
13521
13522 * config/s390/s390.md ("*andc_split"): New splitter for and with
13523 complement.
13524
13525 2016-08-23 Richard Biener <rguenther@suse.de>
13526
13527 PR tree-optimization/27336
13528 * tree-vrp.c (infer_value_range): Handle stmts that can throw
13529 by looking for a non-EH edge.
13530 (process_assert_insertions_for): Likewise.
13531
13532 2016-08-23 Richard Biener <rguenther@suse.de>
13533
13534 PR middle-end/77305
13535 * statistics.c (statistics_counter_event): Robustify against
13536 NULL current_pass.
13537
13538 2016-08-23 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
13539
13540 * config/i386/i386.c (processor_alias_table): Enable PTA_PRFCHW
13541 for targets amdfam10 and barcelona.
13542
13543 2016-08-22 Uros Bizjak <ubizjak@gmail.com>
13544
13545 * config/i386/i386.md (*zero_extendsidi2): Add (*r,*k) alternative.
13546 (zero_extend<mode>di2): Ditto.
13547 (*zero_extend<mode>si2): Ditto.
13548 (*zero_extendqihi2): Ditto.
13549
13550 2016-08-22 Joseph Myers <joseph@codesourcery.com>
13551
13552 PR middle-end/77269
13553 * builtins.c (fold_builtin_classify): Use builtin_decl_explicit
13554 (BUILT_IN_SIGNBIT) to expand __builtin_isinf_sign.
13555
13556 2016-08-22 Patrick Palka <ppalka@gcc.gnu.org>
13557
13558 * print-tree.c (print_node) [VECTOR_CST]: Coalesce the output of
13559 identical consecutive elements.
13560 [SSA_NAME]: Print the name's def stmt on its own line. When printing
13561 the node's def stmt, avoid printing an unwanted trailing newline by
13562 replacing the call to print_gimple_stmt() with its inlined body and
13563 adjusting it to not set pp_needs_newline and to call pp_flush()
13564 instead of pp_newline_and_flush().
13565
13566 2016-08-22 Joseph Myers <joseph@codesourcery.com>
13567
13568 * tree.h (CASE_FLT_FN_FLOATN_NX, float16_type_node)
13569 (float32_type_node, float64_type_node, float32x_type_node)
13570 (float128x_type_node): New macros.
13571 * builtin-types.def (BT_FLOAT16, BT_FLOAT32, BT_FLOAT64)
13572 (BT_FLOAT128, BT_FLOAT32X, BT_FLOAT64X, BT_FLOAT128X)
13573 (BT_FN_FLOAT16, BT_FN_FLOAT32, BT_FN_FLOAT64, BT_FN_FLOAT128)
13574 (BT_FN_FLOAT32X, BT_FN_FLOAT64X, BT_FN_FLOAT128X)
13575 (BT_FN_FLOAT16_FLOAT16, BT_FN_FLOAT32_FLOAT32)
13576 (BT_FN_FLOAT64_FLOAT64, BT_FN_FLOAT128_FLOAT128)
13577 (BT_FN_FLOAT32X_FLOAT32X, BT_FN_FLOAT64X_FLOAT64X)
13578 (BT_FN_FLOAT128X_FLOAT128X, BT_FN_FLOAT16_CONST_STRING)
13579 (BT_FN_FLOAT32_CONST_STRING, BT_FN_FLOAT64_CONST_STRING)
13580 (BT_FN_FLOAT128_CONST_STRING, BT_FN_FLOAT32X_CONST_STRING)
13581 (BT_FN_FLOAT64X_CONST_STRING, BT_FN_FLOAT128X_CONST_STRING)
13582 (BT_FN_FLOAT16_FLOAT16_FLOAT16, BT_FN_FLOAT32_FLOAT32_FLOAT32)
13583 (BT_FN_FLOAT64_FLOAT64_FLOAT64, BT_FN_FLOAT128_FLOAT128_FLOAT128)
13584 (BT_FN_FLOAT32X_FLOAT32X_FLOAT32X)
13585 (BT_FN_FLOAT64X_FLOAT64X_FLOAT64X)
13586 (BT_FN_FLOAT128X_FLOAT128X_FLOAT128X): New type definitions.
13587 * builtins.def (DEF_GCC_FLOATN_NX_BUILTINS): New macro.
13588 (copysign, fabs, huge_val, inf, nan, nans): Use it.
13589 * builtins.c (expand_builtin): Use CASE_FLT_FN_FLOATN_NX for fabs
13590 and copysign.
13591 (fold_builtin_0): Use CASE_FLT_FN_FLOATN_NX for inf and huge_val.
13592 (fold_builtin_1): Use CASE_FLT_FN_FLOATN_NX for fabs.
13593 * doc/extend.texi (Other Builtins): Document these built-in
13594 functions.
13595 * fold-const-call.c (fold_const_call): Use CASE_FLT_FN_FLOATN_NX
13596 for nan and nans.
13597
13598 2016-08-22 Gerald Pfeifer <gerald@pfeifer.com>
13599
13600 * doc/install.texi (Binaries): www.opencsw.org now uses https.
13601
13602 2016-08-22 Richard Biener <rguenther@suse.de>
13603
13604 * tree-ssa-forwprop.c (pass_forwprop::execute): Use RPO order.
13605
13606 2016-08-21 Uros Bizjak <ubizjak@gmail.com>
13607
13608 PR target/77270
13609 * config/i386/i386.md (prefetch): When TARGET_PRFCHW or
13610 TARGET_PREFETCHWT1 are disabled, emit 3dNOW! write prefetches for
13611 non-SSE2 athlons only, otherwise prefer SSE prefetches.
13612
13613 2016-08-20 Kugan Vivekanandarajah <kuganv@linaro.org>
13614
13615 * tree-vrp.c (vrp_visit_assignment_or_call): Changed to Return VR.
13616 (vrp_visit_cond_stmt): Just sets TAKEN_EDGE_P.
13617 (vrp_visit_switch_stmt): Likewise.
13618 (extract_range_from_stmt): Factored out from vrp_visit_stmt.
13619 (extract_range_from_phi_node): Factored out from vrp_visit_phi_stmt.
13620 (vrp_visit_stmt): Use extract_range_from_stmt.
13621 (vrp_visit_phi_node): Use extract_range_from_phi_node.
13622
13623 2016-08-20 Kugan Vivekanandarajah <kuganv@linaro.org>
13624
13625 * Makefile.in: Add tree-vrp.h to GTFILES.
13626 * gengtype.c (open_base_files): Add tree-vrp.h.
13627 * asan.c: Add tree-vrp.h which now has the definition value_range_type.
13628 * builtins.c: Likewise.
13629 * fold-const.c: Likewise.
13630 * gimple-builder.c: Likewise.
13631 * gimple-laddress.c: Likewise.
13632 * hsa-gen.c: Likewise.
13633 * internal-fn.c: Likewise.
13634 * ssa.h: Likewise.
13635 * targhooks.c: Liewise,
13636 * tree-ssa-address.c: Likewise.
13637 * tree-ssanames.h (value_range_type: Move to tree-vrp.h.
13638 * tree-vrp.c (struct value_range): Move to tree-vrp.h
13639 * tree-vrp.h: New file.
13640
13641 2016-08-20 Kugan Vivekanandarajah <kuganv@linaro.org>
13642
13643 PR tree-optimization/61839
13644 * tree-vrp.c (two_valued_val_range_p): New.
13645 (simplify_stmt_using_ranges): Convert CST BINOP VAR where VAR is
13646 two-valued to VAR == VAL1 ? (CST BINOP VAL1) : (CST BINOP VAL2).
13647 Also Convert VAR BINOP CST where VAR is two-valued to
13648 VAR == VAL1 ? (VAL1 BINOP CST) : (VAL2 BINOP CST).
13649
13650 2016-08-19 David Malcolm <dmalcolm@redhat.com>
13651
13652 * diagnostic-show-locus.c
13653 (layout::annotation_line_showed_range_p): New method.
13654 (layout::print_any_fixits): Remove case fixit_hint::REMOVE.
13655 Reimplement case fixit_hint::REPLACE to cover removals, and
13656 replacements where the range of the replacement isn't one
13657 of the ranges in the rich_location.
13658 (test_one_liner_fixit_replace): Likewise.
13659 (selftest::test_one_liner_fixit_replace_non_equal_range): New
13660 function.
13661 (selftest::test_one_liner_fixit_replace_equal_secondary_range):
13662 New function.
13663 (selftest::test_diagnostic_show_locus_one_liner): Call the new
13664 functions.
13665 * diagnostic.c (print_parseable_fixits): Remove case
13666 fixit_hint::REMOVE.
13667
13668 2016-08-19 Uros Bizjak <ubizjak@gmail.com>
13669
13670 PR target/77270
13671 * config/i386/i386.c (ix86_option_override_internal): Remove
13672 PTA_PRFCHW from entries that also have PTA_3DNOW flag.
13673 Enable SSE prefetch also for TARGET_PREFETCHWT1.
13674 Do not try to enable TARGET_PRFCHW ISA flag here.
13675 * config/i386/i386.md (prefetch): Enable also for TARGET_3DNOW.
13676 Rewrite expander function body.
13677 (*prefetch_3dnow): Enable for TARGET_3DNOW and TARGET_PREFETCHWT1.
13678
13679 2016-08-19 Joseph Myers <joseph@codesourcery.com>
13680
13681 PR c/32187
13682 * tree-core.h (TI_COMPLEX_FLOAT16_TYPE)
13683 (TI_COMPLEX_FLOATN_NX_TYPE_FIRST, TI_COMPLEX_FLOAT32_TYPE)
13684 (TI_COMPLEX_FLOAT64_TYPE, TI_COMPLEX_FLOAT128_TYPE)
13685 (TI_COMPLEX_FLOAT32X_TYPE, TI_COMPLEX_FLOAT64X_TYPE)
13686 (TI_COMPLEX_FLOAT128X_TYPE, TI_FLOAT16_TYPE, TI_FLOATN_TYPE_FIRST)
13687 (TI_FLOATN_NX_TYPE_FIRST, TI_FLOAT32_TYPE, TI_FLOAT64_TYPE)
13688 (TI_FLOAT128_TYPE, TI_FLOATN_TYPE_LAST, TI_FLOAT32X_TYPE)
13689 (TI_FLOATNX_TYPE_FIRST, TI_FLOAT64X_TYPE, TI_FLOAT128X_TYPE)
13690 (TI_FLOATNX_TYPE_LAST, TI_FLOATN_NX_TYPE_LAST): New enum
13691 tree_index values.
13692 (NUM_FLOATN_TYPES, NUM_FLOATNX_TYPES, NUM_FLOATN_NX_TYPES): New
13693 macros.
13694 (struct floatn_type_info): New structure type.
13695 (floatn_nx_types): New variable declaration.
13696 * tree.h (FLOATN_TYPE_NODE, FLOATN_NX_TYPE_NODE)
13697 (FLOATNX_TYPE_NODE, float128_type_node, float64x_type_node)
13698 (COMPLEX_FLOATN_NX_TYPE_NODE): New macros.
13699 * tree.c (floatn_nx_types): New variable.
13700 (build_common_tree_nodes): Initialize _FloatN, _FloatNx and
13701 corresponding complex types.
13702 * target.def (floatn_mode): New hook.
13703 * targhooks.c: Include "real.h".
13704 (default_floatn_mode): New function.
13705 * targhooks.h (default_floatn_mode): New prototype.
13706 * doc/extend.texi (Floating Types): Document _FloatN and _FloatNx
13707 types.
13708 * doc/sourcebuild.texi (float@var{n}, float@var{n}x): Document new
13709 effective-target and dg-add-options keywords.
13710 (float@var{n}_runtime, float@var{n}x_runtime, floatn_nx_runtime):
13711 Document new effective-target keywords.
13712 * doc/tm.texi.in (TARGET_FLOATN_MODE): New @hook.
13713 * doc/tm.texi: Regenerate.
13714 * ginclude/float.h (LDBL_DECIMAL_DIG): Define to
13715 __LDBL_DECIMAL_DIG__, not __DECIMAL_DIG__.
13716 [__STDC_WANT_IEC_60559_TYPES_EXT__]: Define macros from TS
13717 18661-3.
13718 * real.h (struct real_format): Add field ieee_bits.
13719 * real.c (ieee_single_format, mips_single_format)
13720 (motorola_single_format, spu_single_format, ieee_double_format)
13721 (mips_double_format, motorola_double_format)
13722 (ieee_extended_motorola_format, ieee_extended_intel_96_format)
13723 (ieee_extended_intel_128_format)
13724 (ieee_extended_intel_96_round_53_format, ibm_extended_format)
13725 (mips_extended_format, ieee_quad_format, mips_quad_format)
13726 (vax_f_format, vax_d_format, vax_g_format, decimal_single_format)
13727 (decimal_double_format, decimal_quad_format, ieee_half_format)
13728 (arm_half_format, real_internal_format: Initialize ieee_bits
13729 field.
13730 * config/i386/i386.c (ix86_init_builtin_types): Do not initialize
13731 float128_type_node. Set float80_type_node to float64x_type_node
13732 if appropriate and long_double_type_node not appropriate.
13733 * config/ia64/ia64.c (ia64_init_builtins): Likewise.
13734 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format):
13735 Initialize ieee_bits field.
13736 * config/rs6000/rs6000.c (TARGET_FLOATN_MODE): New macro.
13737 (rs6000_init_builtins): Set ieee128_float_type_node to
13738 float128_type_node.
13739 (rs6000_floatn_mode): New function.
13740
13741 2016-08-19 Jakub Jelinek <jakub@redhat.com>
13742
13743 * config/i386/rdseedintrin.h (_rdseed16_step, _rdseed32_step,
13744 _rdseed64_step): Uglify argument names and/or local variable names
13745 in inline functions.
13746 * config/i386/rtmintrin.h (_xabort): Likewise.
13747 * config/i386/avx512vlintrin.h (_mm256_ternarylogic_epi64,
13748 _mm256_mask_ternarylogic_epi64, _mm256_maskz_ternarylogic_epi64,
13749 _mm256_ternarylogic_epi32, _mm256_mask_ternarylogic_epi32,
13750 _mm256_maskz_ternarylogic_epi32, _mm_ternarylogic_epi64,
13751 _mm_mask_ternarylogic_epi64, _mm_maskz_ternarylogic_epi64,
13752 _mm_ternarylogic_epi32, _mm_mask_ternarylogic_epi32,
13753 _mm_maskz_ternarylogic_epi32): Likewise.
13754 * config/i386/lwpintrin.h (__llwpcb, __lwpval32, __lwpval64,
13755 __lwpins32, __lwpins64): Likewise.
13756 * config/i386/avx2intrin.h (_mm_i32gather_pd, _mm_mask_i32gather_pd,
13757 _mm256_i32gather_pd, _mm256_mask_i32gather_pd, _mm_i64gather_pd,
13758 _mm_mask_i64gather_pd, _mm256_i64gather_pd, _mm256_mask_i64gather_pd,
13759 _mm_i32gather_ps, _mm_mask_i32gather_ps, _mm256_i32gather_ps,
13760 _mm256_mask_i32gather_ps, _mm_i64gather_ps, _mm_mask_i64gather_ps,
13761 _mm256_i64gather_ps, _mm256_mask_i64gather_ps, _mm_i32gather_epi64,
13762 _mm_mask_i32gather_epi64, _mm256_i32gather_epi64,
13763 _mm256_mask_i32gather_epi64, _mm_i64gather_epi64,
13764 _mm_mask_i64gather_epi64, _mm256_i64gather_epi64,
13765 _mm256_mask_i64gather_epi64, _mm_i32gather_epi32,
13766 _mm_mask_i32gather_epi32, _mm256_i32gather_epi32,
13767 _mm256_mask_i32gather_epi32, _mm_i64gather_epi32,
13768 _mm_mask_i64gather_epi32, _mm256_i64gather_epi32,
13769 _mm256_mask_i64gather_epi32): Likewise.
13770 * config/i386/pmm_malloc.h (_mm_malloc, _mm_free): Likewise.
13771 * config/i386/ia32intrin.h (__writeeflags): Likewise.
13772 * config/i386/pkuintrin.h (_wrpkru): Likewise.
13773 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd,
13774 _mm512_mask_prefetch_i32gather_ps, _mm512_mask_prefetch_i64gather_pd,
13775 _mm512_mask_prefetch_i64gather_ps, _mm512_prefetch_i32scatter_pd,
13776 _mm512_prefetch_i32scatter_ps, _mm512_mask_prefetch_i32scatter_pd,
13777 _mm512_mask_prefetch_i32scatter_ps, _mm512_prefetch_i64scatter_pd,
13778 _mm512_prefetch_i64scatter_ps, _mm512_mask_prefetch_i64scatter_pd,
13779 _mm512_mask_prefetch_i64scatter_ps): Likewise.
13780 * config/i386/gmm_malloc.h (_mm_malloc, _mm_free): Likewise.
13781 * config/i386/avx512fintrin.h (_mm512_ternarylogic_epi64,
13782 _mm512_mask_ternarylogic_epi64, _mm512_maskz_ternarylogic_epi64,
13783 _mm512_ternarylogic_epi32, _mm512_mask_ternarylogic_epi32,
13784 _mm512_maskz_ternarylogic_epi32, _mm512_i32gather_ps,
13785 _mm512_mask_i32gather_ps, _mm512_i32gather_pd, _mm512_i64gather_ps,
13786 _mm512_i64gather_pd, _mm512_i32gather_epi32, _mm512_i32gather_epi64,
13787 _mm512_i64gather_epi32, _mm512_i64gather_epi64): Likewise.
13788
13789 * config/i386/fxsrintrin.h (_fxsave): Remove return keyword in inlines
13790 returning void.
13791 (_fxrstor, _fxsave64, _fxrstor64): Likewise.
13792 * config/i386/xsaveintrin.h (_xsave, _xrstor, _xsave64, _xrstor64):
13793 Likewise.
13794 * config/i386/xsaveoptintrin.h (_xsaveopt, _xsaveopt64): Likewise.
13795 * config/i386/pkuintrin.h (_wrpkru): Likewise. Add space after
13796 function name.
13797 (_rdpkru_u32): Add space after function name.
13798
13799 * config/i386/t-i386 (i386-c.o): Don't depend on
13800 i386-builtin-types.inc.
13801 (i386.o): Depend on i386-builtin-types.inc.
13802
13803 2016-08-19 Matthew Wahab <matthew.wahab@arm.com>
13804
13805 PR target/77281
13806 * config/arm/arm.c (neon_valid_immediate): Delete declaration.
13807 Use const_vec_duplicate to check for duplicated elements.
13808
13809 2016-08-19 Richard Biener <rguenther@suse.de>
13810
13811 PR tree-optimization/77290
13812 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
13813 Fix flag_tree_parallelize_loops check.
13814
13815 2016-08-19 Richard Biener <rguenther@suse.de>
13816
13817 * match.pd (x | 0 -> x): Add.
13818
13819 2016-08-19 Richard Biener <rguenther@suse.de>
13820
13821 PR tree-optimization/77286
13822 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
13823 Deal with virtual PHIs being out-of-order.
13824
13825 2016-08-18 David Malcolm <dmalcolm@redhat.com>
13826
13827 * doc/invoke.texi (fverbose-asm): Note that source code lines
13828 are emitted, and provide an example.
13829 * final.c (asm_show_source): New function.
13830 (final_scan_insn): Call asm_show_source.
13831
13832 2016-08-18 David Malcolm <dmalcolm@redhat.com>
13833
13834 * diagnostic-show-locus.c (colorizer::colorizer): Replace diagnostic
13835 param with diagnostic_kind.
13836 (class colorizer): Similarly replace field m_diagnostic with
13837 m_diagnostic_kind.
13838 (colorizer::colorizer): Replace diagnostic
13839 param with diagnostic_kind.
13840 (colorizer::begin_state): Update for above field change.
13841 (layout::layout): Replace diagnostic param with rich_location *
13842 and diagnostic_kind.
13843 (diagnostic_show_locus): Replace diagnostic param with richloc
13844 and diagnostic_kind.
13845 (class selftest::test_diagnostic_context): New class.
13846 (selftest::test_diagnostic_show_locus_unknown_location): New
13847 function.
13848 (selftest::test_one_liner_simple_caret): New function.
13849 (selftest::test_one_liner_caret_and_range): New function.
13850 (selftest::test_one_liner_multiple_carets_and_ranges): New
13851 function.
13852 (selftest::test_one_liner_fixit_remove): New function.
13853 (selftest::test_one_liner_fixit_replace): New function.
13854 (selftest::test_diagnostic_show_locus_one_liner): New function.
13855 (selftest::diagnostic_show_locus_c_tests): Call the new test
13856 functions.
13857 * diagnostic.c (diagnostic_initialize): Initialize
13858 colorize_source_p, show_ruler_p and parseable_fixits_p.
13859 (default_diagnostic_finalizer): Update for change to
13860 diagnostic_show_locus.
13861 (diagnostic_append_note): Likewise.
13862 * diagnostic.h (diagnostic_show_locus): Replace
13863 const diagnostic_info * param with location * and diagnostic_t.
13864
13865 2016-08-18 David Malcolm <dmalcolm@redhat.com>
13866
13867 * input.c (saved_line_table): New global.
13868 (class selftest::temp_line_table): Rename to line_table_test and
13869 move declaration to selftest.h, and drop field m_old_line_table.
13870 (selftest::temp_line_table::temp_line_table): Rename ctor to...
13871 (selftest::line_table_test::line_table_test): ...this. Add a
13872 default ctor. Store current value of line_table within
13873 saved_line_table.
13874 (selftest::temp_line_table::~temp_line_table): Rename dtor to...
13875 (selftest::line_table_test::~line_table_test): ...this, and
13876 restore line_table from the saved_line_table, rather than
13877 m_old_line_table.
13878 (selftest::test_accessing_ordinary_linemaps): Update for above
13879 renaming.
13880 (selftest::test_lexer): Likewise.
13881 (struct selftest::lexer_test): Likewise.
13882 (selftest::lexer_test::lexer_test): Likewise.
13883 (selftest::input_c_tests): Move the looping over test cases from
13884 here into...
13885 (selftest::for_each_line_table_case): New function.
13886 * input.h (saved_line_table): New decl.
13887 * selftest.h (struct selftest::line_table_case): New forward decl.
13888 (class selftest::line_table_test): New class, moved here from
13889 selftest::temp_line_table in input.c, and renamed.
13890 (selftest::for_each_line_table_case): New decl.
13891
13892 2015-08-18 H.J. Lu <hongjiu.lu@intel.com>
13893
13894 PR target/72839
13895 * config/i386/i386.c (lakemont_cost): Set MOVE_RATIO to 17.
13896
13897 2016-08-18 Chung-Lin Tang <cltang@codesourcery.com>
13898
13899 PR middle-end/70895
13900 * gimplify.c (omp_add_variable): Adjust/add variable mapping on
13901 enclosing parallel construct for reduction variables on OpenACC loop
13902 directives.
13903
13904 2016-08-18 Pierre-Marie de Rodat <derodat@adacore.com>
13905
13906 * dwarf2out.c (copy_dwarf_procedure): Remove obsolete comment.
13907 (new_dwarf_proc_die): Emit DW_TAG_dwarf_procedure DIEs even for
13908 -gdwarf-3.
13909 (function_to_dwarf_procedure): Update comment.
13910
13911 2016-08-18 David Malcolm <dmalcolm@redhat.com>
13912
13913 * input.c (diagnostics_file_cache_forcibly_evict_file): New
13914 function.
13915 * input.h (diagnostics_file_cache_forcibly_evict_file): New
13916 declaration.
13917 * selftest.c (selftest::temp_source_file::~temp_source_file):
13918 Evict m_filename from the diagnostic file cache.
13919
13920 2016-08-18 Richard Biener <rguenther@suse.de>
13921
13922 * tree-pass.h (make_pass_materialize_all_clones): Declare.
13923 * ipa.c (pass_data_materialize_all_clones, pass_materialize_all_clones,
13924 make_pass_materialize_all_clones): New simple IPA pass encapsulating
13925 clone materialization.
13926 * passes.def (all_late_ipa_passes): Start with
13927 pass_materialize_all_clones.
13928 * cgraphunit.c (symbol_table::compile): Remove call to
13929 materialize_all_clones.
13930 * tree-into-ssa.c: Include statistics.h.
13931 (update_ssa): Count number of times we do incremental/rewrite
13932 SSA update.
13933
13934 2016-08-18 Richard Biener <rguenther@suse.de>
13935
13936 PR tree-optimization/77282
13937 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
13938 When doing auto-parallelizing also prevent use of PHIs that
13939 carry dependences across loop backedges.
13940
13941 2016-08-18 Tamar Christina <tamar.christina@arm.com>
13942 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13943
13944 * varasm.c (default_use_anchors_for_symbol_p): Reject too large decls.
13945
13946 2016-08-18 Richard Biener <rguenther@suse.de>
13947
13948 * ssa-iterators.h (ssa_vuse_operand): New inline.
13949 * tree-if-conv.c (ifc_temp_var): Update virtual operand.
13950 (predicate_all_scalar_phis): Use remove_phi_node to remove
13951 phi nodes predicated. Delay removing virtual PHIs.
13952 (predicate_mem_writes): Update virtual operands.
13953 (combine_blocks): Likewise. Propagate out remaining virtual PHIs.
13954 (tree_if_conversion): Do not rewrite virtual SSA form.
13955 * tree-phinodes.c (release_phi_node): Make static.
13956 * tree-phinodes.h (release_phi_node): Remove.
13957
13958 2016-08-18 Jakub Jelinek <jakub@redhat.com>
13959
13960 * config/i386/i386.c (enum ix86_builtins): Remove IX86_BUILTIN_*
13961 codes that appear in bdesc_* arrays, instead include i386-builtin.def
13962 twice to define those.
13963 (bdesc_comi, bdesc_pcmpestr, bdesc_pcmpistr, bdesc_special_args,
13964 bdesc_args, bdesc_round_args, bdesc_mpx, bdesc_mpx_const,
13965 bdesc_multi_arg): Define by including i386-builtin.def the third time.
13966 * config/i386/i386-builtin.def: New file.
13967
13968 2016-08-17 David Malcolm <dmalcolm@redhat.com>
13969
13970 * input.c (get_source_range_for_char): Rename to...
13971 (selftest::get_source_range_for_char): ...this, and move within
13972 the #if CHECKING_P guard.
13973 (get_num_source_ranges_for_substring): Rename to...
13974 (selftest::get_num_source_ranges_for_substring): ...this, move
13975 within the #if CHECKING_P guard, and make static.
13976 (selftest::assert_num_substring_ranges): Initialize
13977 actual_num_ranges.
13978
13979 2016-08-18 Alan Modra <amodra@gmail.com>
13980
13981 PR rtl-optimization/72771
13982 * reload.c (find_reloads): Don't assume that a subreg mem is OK
13983 when find_reloads_toplev returns address_reloaded==-1.
13984 (alternative_allows_const_pool_ref): Update comment.
13985
13986 2015-08-17 Alan Hayward <alan.hayward@arm.com>
13987
13988 PR tree-optimization/71752
13989 * tree-vect-loop.c (vectorizable_reduction): Keep SLP operand ordering.
13990 * tree-vect-slp.c (vect_get_slp_defs): Handle null operands.
13991
13992 2016-08-17 Jakub Jelinek <jakub@redhat.com>
13993
13994 * gimple-fold.c (gimple_fold_call): Use gimple_call_noreturn_p
13995 instead of testing ECF_NORETURN bit in gimple_call_flags.
13996 * tree-cfg.c (make_edges_bb, execute_fixup_cfg): Likewise.
13997 * predict.c (tree_bb_level_predictions): Likewise.
13998 * gimple-low.c (gimple_stmt_may_fallthru): Likewise.
13999
14000 PR middle-end/77259
14001 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): If
14002 turning a call into __builtin_unreachable-like noreturn call, adjust
14003 gimple_call_set_fntype.
14004 * tree-cfgcleanup.c (fixup_noreturn_call): Remove lhs also if
14005 gimple_call_fntype has void return type.
14006
14007 2016-08-17 Chung-Lin Tang <cltang@codesourcery.com>
14008
14009 * omp-low.c (lower_oacc_reductions): Adjust variable lookup to use
14010 maybe_lookup_decl, to handle nested acc loop directives.
14011
14012 2016-08-17 Richard Biener <rguenther@suse.de>
14013
14014 PR tree-optimization/76490
14015 * tree-vrp.c (update_value_range): Preserve overflow infinities
14016 when intersecting with ranges from get_range_info.
14017 (operand_less_p): Handle overflow infinities correctly.
14018 (value_range_constant_singleton): Use vrp_operand_equal_p
14019 to handle overflow max/min correctly.
14020 (vrp_valueize): Likewise.
14021 (union_ranges): Likewise.
14022 (intersect_ranges): Likewise.
14023 (vrp_visit_phi_node): Improve iteration limitation to only
14024 apply when we'll possibly re-visit the PHI via a changed argument
14025 on the backedge.
14026
14027 2016-08-17 Thomas Preud'homme <thomas.preudhomme@arm.com>
14028
14029 * config/arm/t-aprofile (MULTILIB_EXCEPTIONS): Rewrite into ...
14030 (MULTILIB_REQUIRED): This by specifying multilib needing to be built
14031 rather than those that should not be built.
14032
14033 2016-08-17 Stanislaw Halik <sthalik@misaki.pl>
14034
14035 PR target/66488
14036 * config/i386/xm-mingw32.h (HOST_BITS_PER_PTR): Define if __x86_64__.
14037
14038 2016-08-17 Richard Biener <rguenther@suse.de>
14039
14040 * tree-ssa.c: Include tree-cfg.h and tree-dfa.h.
14041 (verify_vssa): New function verifying virtual SSA form.
14042 (verify_ssa): Call it.
14043 * tree-ssa-loop-manip.c (slpeel_update_phi_nodes_for_guard2):
14044 Do not apply loop-closed SSA handling to virtuals.
14045 * ssa-iterators.h (op_iter_init): Handle GIMPLE_TRANSACTION.
14046 * tree-into-ssa.c (prepare_use_sites_for): Skip virtual SSA names
14047 when rewriting their symbol.
14048 (prepare_def_site_for): Likewise.
14049 * tree-chkp-opt.c (chkp_reduce_bounds_lifetime): Clear virtual
14050 operands of moved stmts.
14051
14052 2016-08-17 Richard Biener <rguenther@suse.de>
14053
14054 PR tree-optimization/23855
14055 * tree-ssa-loop-unswitch.c: Include tree-ssa-loop-manip.h.
14056 (tree_unswitch_outer_loop): Iterate find_loop_guard as long as we
14057 find guards to hoist. Do not update SSA form but rewrite virtuals
14058 into loop closed SSA.
14059 (find_loop_guard): Adjust to skip already hoisted guards. Do
14060 not mark virtuals for renaming or update SSA form.
14061
14062 2016-08-17 Martin Liska <mliska@suse.cz>
14063
14064 * coverage.c (get_gcov_type): Replace GCOV_TYPE_SIZE with
14065 a LONG_LONG_TYPE_SIZE comparison.
14066 * gcov-io.h: Remove macro definitions.
14067 * tree-profile.c (gimple_gen_edge_profiler): Replace usage
14068 of GCOV_TYPE_ATOMIC_FETCH_ADD with a LONG_LONG_TYPE_SIZE
14069 comparison.
14070
14071 2016-08-16 Jakub Jelinek <jakub@redhat.com>
14072
14073 * config/i386/i386.c (enum ix86_builtins): Reorder enumerators, so
14074 that builtins not mentioned in bdesc_* arrays come first, then
14075 the ones mentioned in bdesc_* arrays in the order they appear in
14076 the arrays in between IX86_BUILTIN__BDESC_*_FIRST and
14077 IX86_BUILTIN__BDESC_*_LAST enumerator.
14078 (bdesc_mpx): Fix up a comment typo.
14079 (bdesc_multi_arg): Remove __builtin_ia32_vpcomne[bwdq] and
14080 __builtin_ia32_vpcomneu[bwdq] builtins.
14081 (BDESC_VERIFY, BDESC_VERIFYS): Define.
14082 (ix86_init_mmx_sse_builtins, ix86_init_mpx_builtins): Verify
14083 enum ix86_builtins ordering.
14084 (ix86_expand_builtin): Use enum ix86_builtins ordering assumption
14085 for direct bdesc_* array member access instead of searching all the
14086 arrays until an fcode match is found.
14087
14088 2016-08-16 Uros Bizjak <ubizjak@gmail.com>
14089
14090 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite define_insn
14091 pattern as define_insn_and_split. Split insn before reload to
14092 ashl<mode>3_1.
14093 (*<shift_insn><mode>3_mask): Ditto. Split insn before reload to
14094 <shift_insn><mode>3_1.
14095 (*<rotate_insn><mode>3_mask): Ditto. Split insn before reload to
14096 <rotate_insn><mode>3_1.
14097
14098 2016-08-16 David Malcolm <dmalcolm@redhat.com>
14099
14100 PR c/72857
14101 * input.c (get_source_range_for_substring): Rename to...
14102 (get_source_location_for_substring): ...this, adding param
14103 "caret_idx", and converting output param from source_range * to
14104 location_t *.
14105 (get_source_range_for_char): New function.
14106 (get_num_source_ranges_for_substring): Update comment to reflect
14107 above renaming.
14108 (assert_char_at_range): Update to use get_source_range_for_char
14109 rather than get_source_range_for_substring.
14110 (test_lexer_string_locations_concatenation_2): Likewise.
14111 * substring-locations.h (get_source_range_for_substring): Rename
14112 to...
14113 (get_source_location_for_substring): ...this, and adding param
14114 "caret_idx", and converting output param from source_range * to
14115 location_t *.
14116
14117 2016-08-16 David Malcolm <dmalcolm@redhat.com>
14118
14119 * input.c (class selftest::temp_source_file): Move to
14120 selftest.h.
14121 (selftest::temp_source_file::temp_source_file): Move to
14122 selftest.c.
14123 (selftest::temp_source_file::~temp_source_file): Likewise.
14124 * selftest.c (selftest::temp_source_file::temp_source_file): Move
14125 here from input.c.
14126 (selftest::temp_source_file::~temp_source_file): Likewise.
14127 * selftest.h (class selftest::temp_source_file): Move here from
14128 input.c
14129
14130 2016-08-16 Jakub Jelinek <jakub@redhat.com>
14131
14132 PR target/71910
14133 * tree-cfg.c (execute_fixup_cfg): Add node variable, use it. Before
14134 inlining, add cgraph edge for the added __builtin_unreachable call.
14135
14136 PR middle-end/67485
14137 * expmed.c (expand_mult_const): Change val_so_far's type to UHWI,
14138 only cast it to SHWI for the final comparison.
14139
14140 2016-08-16 Martin Liska <mliska@suse.cz>
14141
14142 PR gcov-profile/36412
14143 * doc/gcov.texi: Document --hash-filenames(-x).
14144 * gcov.c (print_usage): Add the option.
14145 (process_args): Process the option, sort options alphabetically.
14146 (md5sum_to_hex): New function.
14147 (make_gcov_file_name): Do the md5sum and append it to a
14148 filename.
14149
14150 2016-08-16 Bin Cheng <bin.cheng@arm.com>
14151
14152 PR tree-optimization/69848
14153 * config/aarch64/aarch64-simd.md (vcond<mode><mode>): Invert NE
14154 and swtich operands to avoid additional NOT instruction.
14155 (vcond<v_cmp_mixed><mode>): Ditto.
14156 (vcondu<mode><mode>, vcondu<mode><v_cmp_mixed>): Ditto.
14157
14158 2016-08-16 Eric Botcazou <ebotcazou@adacore.com>
14159
14160 * doc/install.texi (*-*-solaris2*): Adjust latest change.
14161
14162 2016-08-16 Richard Biener <rguenther@suse.de>
14163
14164 PR tree-optimization/76783
14165 * tree-ssa-propagate.c (ssa_prop_init): Use RPO order. Clear
14166 BB visited flags at start.
14167
14168 2016-08-16 Bin Cheng <bin.cheng@arm.com>
14169
14170 PR tree-optimization/72817
14171 PR tree-optimization/73450
14172 * tree-ssa-loop-niter.c (number_of_iterations_ne): Check
14173 multiple_of_p for adjusted IV.base.
14174
14175 2016-08-15 Uros Bizjak <ubizjak@gmail.com>
14176
14177 PR target/72867
14178 * config/i386/sse.md (<code><mode>3<mask_name><round_saeonly_name>):
14179 Emit ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>
14180 for !flag_finite_math_only or flag_signed_zeros.
14181 (*<code><mode>3<mask_name><round_saeonly_name>): Rename from
14182 *<code><mode>3_finite<mask_name><round_saeonly_name>. Do not
14183 depend on flag_finite_math_only.
14184 (ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>):
14185 New insn pattern.
14186 (*<code><mode>3<mask_name><round_saeonly_name>): Remove.
14187 (*ieee_smin<mode>3): Ditto.
14188 (*ieee_smax<mode>3): Ditto.
14189 * config/i386/mmx.md (mmx_<code>v2sf3): Emit
14190 mmx_ieee_<ieee_maxmin>v2sf3 for !flag_finite_math_only or
14191 flag_signed_zeros.
14192 (*mmx_<code>v2sf3): Rename from *mmx_<code>v2sf3_finite. Do not
14193 depend on flag_finite_math_only.
14194 (mmx_ieee_<ieee_maxmin>v2sf3): New insn pattern.
14195 (*mmx_<code>v2sf3): Remove.
14196 * config/i386/subst.md (round_saeonly_mask_arg3): New subst attribute.
14197 * config/i386/i386.c (ix86_expand_sse_fp_mimnax): Check
14198 flag_signed_zeros instead of !flag_unsafe_math_optimizations.
14199
14200 2016-08-15 Segher Boessenkool <segher@kernel.crashing.org>
14201
14202 PR rtl-optimization/73650
14203 * lra-constraints.c (simple_move_p): If the insn is multiple_sets
14204 it is not a simple move.
14205
14206 2016-08-15 Martin Liska <mliska@suse.cz>
14207
14208 PR driver/72765
14209 * gcc.c (do_spec_1): Call save_string with the right size.
14210 (save_string): Do an assert about string we copy.
14211
14212 2016-08-15 Richard Biener <rguenther@suse.de>
14213
14214 * ree.c (rest_of_handle_ree): Remove redundant timevar push/pop.
14215 * config/i386/i386.c (pass_data_insert_vzeroupper): Account to
14216 TV_MACH_DEP.
14217 (pass_data_stv): Likewise.
14218
14219 2016-08-15 Richard Biener <rguenther@suse.de>
14220
14221 PR tree-optimization/73434
14222 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Preserve
14223 TBAA info on the base when forwarding a non-invariant address.
14224
14225 2016-08-15 Jakub Jelinek <jakub@redhat.com>
14226
14227 * dwarf2out.c (struct checksum_attributes): Add
14228 at_string_length_bit_size and at_string_length_byte_size fields.
14229 (collect_checksum_attributes): Handle DW_AT_string_length_bit_size
14230 and DW_AT_string_length_byte_size.
14231 (die_checksum_ordered): Handle at_string_length_bit_size and
14232 at_string_length_byte_size.
14233 (gen_array_type_die): For dwarf_version >= 5 emit
14234 DW_AT_string_length_byte_size instead of DW_AT_byte_size.
14235 (adjust_string_types): For dwarf_version >= 5 remove
14236 DW_AT_string_length_byte_size instead of DW_AT_byte_size.
14237 (resolve_addr): Likewise.
14238
14239 PR debug/71906
14240 * dwarf2out.c (string_types): New variable.
14241 (gen_array_type_die): Change early_dwarf handling of
14242 DW_AT_string_length, create DW_OP_call4 referencing the
14243 length var temporarily. Handle parameters that are pointers
14244 to string length.
14245 (adjust_string_types): New function.
14246 (gen_subprogram_die): Temporarily set string_types to local var,
14247 call adjust_string_types if needed.
14248 (non_dwarf_expression, copy_deref_exprloc, optimize_string_length):
14249 New functions.
14250 (resolve_addr): Adjust DW_AT_string_length if it is DW_OP_call4.
14251
14252 2016-08-15 Eric Botcazou <ebotcazou@adacore.com>
14253
14254 * doc/install.texi (*-*-solaris2*): Fix version number and document
14255 requirement on GNU make for building libjava with the Solaris linker.
14256
14257 2016-08-15 Martin Liska <mliska@suse.cz>
14258 Jakub Jelinek <jakub@redhat.com>
14259
14260 PR tree-optimization/72824
14261 * tree-loop-distribution.c (const_with_all_bytes_same)
14262 <case VECTOR_CST>: Fix a typo.
14263
14264 2016-08-14 Uros Bizjak <ubizjak@gmail.com>
14265
14266 PR target/76342
14267 * config/i386/avx512fintrin.h (_mm512_undefined_epi32):
14268 Renamed from _mm512_undefined_si512.
14269 (_mm_undefined_si512): New definition.
14270
14271 2016-08-13 Richard Biener <rguenther@suse.de>
14272
14273 * tree-ssa-forwprop.c (pass_forwprop::execute): Propagate
14274 into PHIs and update the lattice for its def.
14275
14276 2016-08-12 Jakub Jelinek <jakub@redhat.com>
14277
14278 PR c/71512
14279 * ubsan.c (instrument_si_overflow): Pass true instead of false
14280 to gsi_replace.
14281 (pass_ubsan::execute): Call gimple_purge_dead_eh_edges at the end
14282 of bbs. Return TODO_cleanup_cfg if any returned true.
14283
14284 2016-08-12 Michael Meissner <meissner@linux.vnet.ibm.com>
14285
14286 * config/rs6000/vsx.md (vsx_concat_<mode>): Add support for the
14287 ISA 3.0 MTVSRDD instruction.
14288 (vsx_splat_<mode>): Change cpu type of MTVSRDD instruction to
14289 vecperm.
14290
14291 2016-08-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
14292
14293 PR tree-optimization/71083
14294 * tree-predcom.c (ref_at_iteration): Use a COMPONENT_REF for the
14295 bitfield access when possible.
14296
14297 2016-08-12 Patrick Palka <ppalka@gcc.gnu.org>
14298
14299 PR middle-end/71654
14300 * match.pd ((T)A CMP (T)B -> A CMP B): Allow (T)A to be a
14301 sign-changing cast from a shorter unsigned type to a wider
14302 signed type.
14303
14304 2016-08-12 Jakub Jelinek <jakub@redhat.com>
14305
14306 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm,
14307 vec_extract_hi_<mode>_mask, vec_extract_lo_<mode>_mask,
14308 vec_extract_hi_<mode>_mask): Use Yk constraint instead of k.
14309
14310 2016-08-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14311
14312 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
14313 Correct costs for vec_construct.
14314
14315 2016-08-12 Bin Cheng <bin.cheng@arm.com>
14316
14317 PR tree-optimization/69848
14318 * tree-vectorizer.h (enum vect_def_type): New condition reduction
14319 type CONST_COND_REDUCTION.
14320 * tree-vect-loop.c (vectorizable_reduction): Support new condition
14321 reudction type CONST_COND_REDUCTION.
14322
14323 2016-08-12 Richard Biener <rguenther@suse.de>
14324
14325 PR tree-optimization/57326
14326 * tree-ssa-pre.c (fully_constant_expression): Handle simplification
14327 returning an SSA name.
14328 (phi_translate_1): When fully_constant_expression returns a NAME
14329 make sure we have a leader for it.
14330
14331 2016-08-12 Martin Liska <mliska@suse.cz>
14332 Adam Fineman <afineman@afineman.com>
14333
14334 * gcov.c (process_file): Create .gcov file when .gcda
14335 file is missing.
14336
14337 2016-08-12 Marek Polacek <polacek@redhat.com>
14338
14339 PR c/7652
14340 * alias.c (find_base_value): Adjust fall through comment.
14341 * cfgexpand.c (expand_debug_expr): Likewise.
14342 * combine.c (find_split_point): Likewise.
14343 (expand_compound_operation): Likewise. Add FALLTHRU.
14344 (make_compound_operation): Adjust fall through comment.
14345 (canon_reg_for_combine): Add FALLTHRU.
14346 (force_to_mode): Adjust fall through comment.
14347 (simplify_shift_const_1): Likewise.
14348 (simplify_comparison): Likewise.
14349 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Add
14350 FALLTHRU.
14351 * config/aarch64/predicates.md: Likewise.
14352 * config/i386/i386.c (function_arg_advance_32): Likewise.
14353 (ix86_gimplify_va_arg): Likewise.
14354 (print_reg): Likewise.
14355 (ix86_print_operand): Likewise.
14356 (ix86_build_const_vector): Likewise.
14357 (ix86_expand_branch): Likewise.
14358 (ix86_sched_init_global): Adjust fall through comment.
14359 (ix86_expand_args_builtin): Add FALLTHRU.
14360 (ix86_expand_builtin): Likewise.
14361 (ix86_expand_vector_init_one_var): Likewise.
14362 * config/rs6000/rs6000.c (rs6000_emit_vector_compare_inner): Likewise.
14363 (rs6000_adjust_cost): Likewise.
14364 (insn_must_be_first_in_group): Likewise.
14365 * config/rs6000/rs6000.md: Likewise. Adjust fall through comment.
14366 * dbxout.c (dbxout_symbol): Adjust fall through comment.
14367 * df-scan.c (df_uses_record): Likewise.
14368 * dojump.c (do_jump): Add FALLTHRU.
14369 * dwarf2out.c (mem_loc_descriptor): Likewise. Adjust fall through
14370 comment.
14371 (resolve_args_picking_1): Adjust fall through comment.
14372 (loc_list_from_tree_1): Likewise.
14373 * expmed.c (make_tree): Likewise.
14374 * expr.c (expand_expr_real_2): Add FALLTHRU.
14375 (expand_expr_real_1): Likewise. Adjust fall through comment.
14376 * fold-const.c (const_binop): Adjust fall through comment.
14377 (fold_truth_not_expr): Likewise.
14378 (fold_cond_expr_with_comparison): Add FALLTHRU.
14379 (fold_binary_loc): Likewise.
14380 (contains_label_1): Adjust fall through comment.
14381 (multiple_of_p): Likewise.
14382 * gcov-tool.c (process_args): Add FALLTHRU.
14383 * genattrtab.c (check_attr_test): Likewise.
14384 (write_test_expr): Likewise.
14385 * genconfig.c (walk_insn_part): Likewise.
14386 * genpreds.c (validate_exp): Adjust fall through comment.
14387 (needs_variable): Likewise.
14388 * gensupport.c (get_alternatives_number): Add FALLTHRU.
14389 (subst_dup): Likewise.
14390 * gimple-pretty-print.c (dump_gimple_assign): Likewise.
14391 * gimplify.c (gimplify_addr_expr): Adjust fall through comment.
14392 (gimplify_scan_omp_clauses): Add FALLTHRU.
14393 (goa_stabilize_expr): Likewise.
14394 * graphite-isl-ast-to-gimple.c (substitute_ssa_name): Adjust fall
14395 through comment.
14396 * hsa-gen.c (get_address_from_value): Likewise.
14397 * ipa-icf.c (sem_function::hash_stmt): Likewise.
14398 * ira.c (ira_setup_alts): Add FALLTHRU.
14399 * lra-eliminations.c (lra_eliminate_regs_1): Adjust fall through
14400 comment.
14401 * lto-streamer-out.c (lto_output_tree_ref): Add FALLTHRU.
14402 * opts.c (common_handle_option): Likewise.
14403 * read-rtl.c (read_rtx_code): Likewise.
14404 * real.c (round_for_format): Likewise.
14405 * recog.c (asm_operand_ok): Likewise.
14406 * reginfo.c (reg_scan_mark_refs): Adjust fall through comment.
14407 * reload1.c (set_label_offsets): Likewise.
14408 (eliminate_regs_1): Likewise.
14409 (reload_reg_reaches_end_p): Likewise.
14410 * rtlanal.c (commutative_operand_precedence): Add FALLTHRU.
14411 (rtx_cost): Likewise.
14412 * sched-rgn.c (is_exception_free): Likewise.
14413 * simplify-rtx.c (simplify_rtx): Adjust fall through comment.
14414 * stor-layout.c (int_mode_for_mode): Likewise.
14415 * toplev.c (print_to_asm_out_file): Likewise.
14416 (print_to_stderr): Likewise.
14417 * tree-cfg.c (gimple_verify_flow_info): Likewise.
14418 * tree-chrec.c (chrec_fold_plus_1): Add FALLTHRU.
14419 (chrec_fold_multiply): Likewise.
14420 (evolution_function_is_invariant_rec_p): Likewise.
14421 (for_each_scev_op): Likewise.
14422 * tree-data-ref.c (siv_subscript_p): Likewise.
14423 (get_references_in_stmt): Likewise.
14424 * tree.c (find_placeholder_in_expr): Adjust fall through comment.
14425 (substitute_in_expr): Likewise.
14426 (type_cache_hasher::equal): Likewise.
14427 (walk_type_fields): Likewise.
14428 * var-tracking.c (adjust_mems): Add FALLTHRU.
14429 (set_dv_changed): Adjust fall through comment.
14430 * varasm.c (default_function_section): Add FALLTHRU.
14431
14432 2016-08-12 Marek Polacek <polacek@redhat.com>
14433
14434 PR c/7652
14435 * tree-complex.c (expand_complex_division): Add missing break.
14436
14437 2016-08-12 Richard Biener <rguenther@suse.de>
14438
14439 * passes.c (execute_todo): Do not push/pop TV_TODO.
14440 (execute_one_ipa_transform_pass): Move timevar push/pop TODO execution.
14441 (execute_one_pass): Likewise.
14442 * common.opt (ftime-report-details): New switch.
14443 * doc/invoke.texi (ftime-report-details): Document.
14444 * timevar.h (timer::print_row): Adjust signature.
14445 (timer::all_zero): New static helper.
14446 (timer::child_map_t): New typedef.
14447 (timer::time_var_def): Add children field.
14448 * timevar.c (timer::named_items::print): Adjust.
14449 (timer::~timer): Free timevar recorded children.
14450 (timer::pop_internal): When -ftime-report-details record
14451 time spent in sub-timevars.
14452 (timer::print_row): Adjust.
14453 (timer::print): Print sub-timevar stats, use all_zero.
14454 * timevar.def (TV_TODO): Remove.
14455
14456 2016-08-12 Richard Biener <rguenther@suse.de>
14457
14458 PR tree-optimization/72851
14459 * tree-ssa-propagate.c: Include cfganal.h. Rewrite block and stmt
14460 worklists to use bitmaps indexed in execution order.
14461 (executable_blocks, cfg_blocks_num, cfg_blocks_tail, cfg_blocks_head,
14462 bb_in_list, interesting_ssa_edges, varying_ssa_edges): Remove.
14463 (cfg_blocks): Make a bitmap.
14464 (bb_to_cfg_order, cfg_order_to_bb, ssa_edge_worklist, uid_to_stmt):
14465 New globals.
14466 (cfg_blocks_empty_p): Adjust.
14467 (cfg_blocks_add): Likewise.
14468 (cfg_blocks_get): Likewise.
14469 (add_ssa_edge): Likewise.
14470 (add_control_edge): Likewise.
14471 (simulate_stmt): Likewise.
14472 (process_ssa_edge_worklist): Likewise.
14473 (simulate_block): Likewise.
14474 (ssa_prop_init): Compute PRE order and stmt UIDs.
14475 (ssa_prop_fini): Adjust.
14476 (ssa_propagate): Adjust.
14477
14478 2016-08-12 Richard Biener <rguenther@suse.de>
14479
14480 * tree-vrp.c (vrp_visit_phi_node): Allow a last iteration if
14481 the currently executable edges have fixed ranges. Always
14482 go through update_value_range.
14483
14484 2016-08-12 Alexandre Oliva <aoliva@redhat.com>
14485
14486 PR debug/63240
14487 * langhooks-def.h
14488 (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Const_tree-ify.
14489 (LANG_HOOKS_FUNCTION_DECL_DELETED_P): Likewise.
14490 (LANG_HOOKS_FUNCTION_DECL_DEFAULTED): Set default.
14491 (LANG_HOOKS_DECLS): Add it.
14492 * langhooks.h (struct lang_hooks_for_decls): Add
14493 function_decl_defaulted. Const_tree-ify
14494 function_decl_explicit_p and function_decl_deleted_p.
14495 * dwarf2out.c (gen_subprogram_die): Add DW_AT_defaulted
14496 attribute. Add DW_AT_deleted instead of DW_AT_GNU_deleted,
14497 also at strict DWARF v5.
14498
14499 PR debug/55641
14500 * dwarf2out.c (decl_quals): Don't map TREE_READONLY to
14501 TYPE_QUAL_CONST in reference-typed decls.
14502
14503 PR debug/49366
14504 * dwarf2out.c (loc_list_from_tree_1): Expand some CONSTRUCTORs
14505 in DW_OP_pieces, just enough to handle pointers to member
14506 functions.
14507 (gen_remaining_tmpl_value_param_die_attribute): Use a location
14508 expression on DWARFv5 if a constant value doesn't work.
14509
14510 2016-08-11 David Malcolm <dmalcolm@redhat.com>
14511
14512 * selftest-run-tests.c (selftest::run_tests): Call selftest_c_tests.
14513 * selftest.c (selftest::test_assertions): New function.
14514 (selftest::selftest_c_tests): New function.
14515 * selftest.h (selftest::selftest_c_tests): New declaration.
14516
14517 2016-08-11 Richard Biener <rguenther@suse.de>
14518 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14519
14520 PR rtl-optimization/72855
14521 * df-core.c (df_verify): Turn off DF_VERIFY_SCHEDULED at end.
14522
14523 2016-08-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14524
14525 PR target/72863
14526 * vsx.md (vsx_load_<mode>): For P8LE, emit swaps at expand time.
14527 (vsx_store_<mode>): Likewise.
14528
14529 2015-08-11 H.J. Lu <hongjiu.lu@intel.com>
14530
14531 * config/i386/i386.c (timode_scalar_to_vector_candidate_p): Allow
14532 TImode CONST_WIDE_INT store.
14533 (timode_scalar_chain::convert_insn): Handle CONST_WIDE_INT store.
14534
14535 2015-08-11 H.J. Lu <hongjiu.lu@intel.com>
14536
14537 * config/i386/i386.h (MOVE_MAX_PIECES): Use TImode in 64-bit
14538 mode if unaligned SSE load and store are optimal.
14539
14540 2016-08-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
14541
14542 PR tree-optimization/71083
14543 * tree-predcom.c (ref_at_iteration): Correctly align the
14544 reference type.
14545
14546 2016-08-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14547
14548 * config/s390/s390-builtin-types.def: Add INT128 types.
14549 * config/s390/s390-builtins.def: Add INT128 variants for the add
14550 sub low-level builtins dealing with TImode.
14551 * config/s390/s390.c (s390_expand_builtin): Allow mode conversions
14552 via subreg when expanding a builtin.
14553 * config/s390/s390.md: Remove UNSPEC_VEC_ADDC_U128,
14554 UNSPEC_VEC_SUB_U128, and UNSPEC_VEC_SUBC_U128 constants.
14555 Fix comment.
14556 * config/s390/vecintrin.h: Adjust builtin names accordingly.
14557 * config/s390/vx-builtins.md ("vec_add_u128"): Remove expander.
14558 ("vec_addc<mode>", "vec_addc_u128"): Merge to
14559 "vacc<bhfgq>_<mode>".
14560 ("vec_adde_u128"): Rename to "vacq". Change mode to TImode.
14561 ("vec_addec_u128"): Rename to "vacccq". Change mode to TImode.
14562 ("vec_subc<mode>", "vec_subc_u128"): Merge to
14563 "vscbi<bhfgq>_<mode>".
14564 ("vec_sube_u128"): Rename to "vsbiq". Change mode to TImode.
14565 ("vec_subec_u128"): Rename to "vsbcbiq". Change mode to TImode.
14566
14567 2016-08-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14568
14569 * config/s390/s390-builtins.def: Mark last operand of s390_vlvg*
14570
14571 2016-08-11 Bin Cheng <bin.cheng@arm.com>
14572
14573 * config/aarch64/aarch64-simd.md (vcond<mode><mode>): Delete
14574 unused declaration.
14575 (vcond<v_cmp_mixed><mode>): Ditto.
14576 (vcondu<mode><mode>, vcondu<mode><v_cmp_mixed>): Ditto.
14577
14578 2016-08-11 Bin Cheng <bin.cheng@arm.com>
14579
14580 * config/aarch64/aarch64-simd.md (vec_cmp<mode><v_cmp_result>): Init
14581 variable explicitly, also assert on it before use.
14582
14583 2016-08-11 Richard Biener <rguenther@suse.de>
14584
14585 PR tree-optimization/72772
14586 * cfgloopmanip.c (create_preheader): Use split_edge if there
14587 is a single loop entry, avoiding degenerate PHIs.
14588
14589 2016-08-11 Richard Biener <rguenther@suse.de>
14590
14591 * tree-ssa-threadbackward.c (pass_data_thread_jumps): Remove
14592 unconditional TODO_cleanup_cfg.
14593 (pass_thread_jumps::execute): Initialize loops, perform a CFG
14594 cleanup only if we threaded a jump.
14595
14596 2016-08-11 Alan Modra <amodra@gmail.com>
14597
14598 PR target/71680
14599 * lra-constraints.c (simplify_operand_subreg): Allow subreg
14600 mode for mem when SLOW_UNALIGNED_ACCESS if inner mode is also
14601 slow. Emit two reloads for slow mem case, first loading in
14602 fast innermode, then converting to required mode.
14603
14604 2016-08-10 Kelvin Nilsen <kelvin@gcc.gnu.org>
14605
14606 * config/rs6000/altivec.h (vec_extract_exp): New macro.
14607 (vec_extract_sig): New macro.
14608 (vec_insert_exp): New macro.
14609 (vec_test_data_class): New macro.
14610 (scalar_extract_exp): New macro.
14611 (scalar_extract_sig): New macro.
14612 (scalar_insert_exp): New macro.
14613 (scalar_test_data_class): New macro.
14614 (scalar_test_neg): New macro.
14615 (scalar_cmp_exp_gt): New macro.
14616 (scalar_cmp_exp_lt): New macro.
14617 (scalar_cmp_exp_eq): New macro.
14618 (scalar_cmp_exp_unordered): New macro.
14619 * config/rs6000/predicates.md (u7bit_cint_operand): New predicate
14620 to enforce constraint that operand is a 7-bit unsigned literal.
14621 * config/rs6000/rs6000-builtin.def (BU_P9V_64BIT_VSX_1): New macro
14622 for power9 built-ins.
14623 (BU_P9V_VSX_2): Likewise.
14624 (BU_P9V_64BIT_VSX_2): Likewise.
14625 (VSEEDP): Add scalar extract exponent support.
14626 (VSEESP): Add scalar extract signature support.
14627 (VSTDCNDP): Add scalar test negative support.
14628 (VSTDCNSP): Likewise.
14629 (VSIEDP): Add scalar insert exponent support.
14630 (VSCEDPGT): Add scalar compare exponent greater than support.
14631 (VSCEDPLT): Add scalar compare exponent less than support.
14632 (VSCEDPEQ): Add scalar compare exponent test-for-equality support.
14633 (VSCEDPUO): Add scalar compare exponent test-for-unordered support.
14634 (VSTDCDP): Add scalar test data class support.
14635 (VSTDCSP): Likewise.
14636 (VSEEDP): Add overload support for scalar extract exponent
14637 operation.
14638 (VSESDP): Add overload support for scalar extract signature
14639 operation.
14640 (VSTDCN): Add overload support for scalar test negative
14641 operation.
14642 (VSTDCNDP): Add overload support for scalar test negative
14643 operation.
14644 (VSTDCNSP): Add overload support for scalar test negative
14645 operation.
14646 (VSIEDP): Add overload support for scalar insert exponent
14647 operation.
14648 (VSTDC): Add overload support for scalar test data class
14649 operation.
14650 (VSTDCDP): Add overload support for scalar test data class
14651 operation.
14652 (VSTDCSP): Add overload support for scalar test data class
14653 opreation.
14654 (VSCEDPGT): Add overload support for scalar compare exponent
14655 greater than operation.
14656 (VSCEDPLT): Add overload support for scalar compare exponent
14657 less than operation.
14658 (VSCEDPEQ): Add overload support for scalar compare exponent
14659 test-for-equality operation.
14660 (VSCEDPUO): Add overload support for scalar compare exponent
14661 test-for-unordered operation.
14662 (VEEDP): Add vector extract exponent support.
14663 (VEESP): Likewise.
14664 (VESDP): Add vector extract significand support.
14665 (VESSP): Likewise.
14666 (VIEDP): Add vector insert exponent support.
14667 (VIESP): Likewise.
14668 (VTDCDP): Add vector test data class support.
14669 (VTDCSP): Likewise.
14670 (VES): Add overload support for vector extract significand operation.
14671 (VESDP): Likewise.
14672 (VESSP): Likewise
14673 (VEE): Add overload support for vector extract exponent operation.
14674 (VEEDP): Likewise.
14675 (VEESP): Likewise.
14676 (VTDC): Add overload support for vector test data class operation.
14677 (VTDCDP): Likewise.
14678 (VTDCSP): Likewise.
14679 (VIE): Add overload support for vector insert exponent operation.
14680 (VIEDP): Likewise.
14681 (VIESP): Likewise.
14682 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
14683 overloaded binary floating point functions.
14684 (altivec_resolve_overloaded_builtin): Improve error messages to
14685 distinguish between functions not supported in the current
14686 compiler configuration and functions that were invoked with an
14687 invalid parameter combination, and include the built-in function
14688 name in both error messages.
14689 * config/rs6000/rs6000-protos.h (rs6000_overloaded_builtin_name):
14690 New prototype.
14691 * config/rs6000/rs6000.c (rs6000_overloaded_builtin_name): New
14692 function.
14693 (rs6000_expand_binop_builtin): Add check to enforce that argument
14694 2 of the test data class operations is a 7-bit unsigned literal.
14695 (rs6000_invalid_builtin): Add code to issue an error message if a
14696 built-in function that requires the power9_vector and -m32
14697 command-line options is compiled without these options.
14698 * config/rs6000/vsx.md (UNSPEC_VSX_SXEXPDP): New value.
14699 (UNSPEC_VSX_SXSIGDP): New value.
14700 (UNSPEC_VSX_SXSIGPDP): New value.
14701 (UNSPEC_VSX_SIEXPDP): New value.
14702 (UNSPEC_VSX_SCMPEXPDP): New value.
14703 (UNSPEC_VSX_STSTDC): New value.
14704 (UNSPEC_VSX_VXEXP): New value.
14705 (UNSPEC_VSX_VXSIG): New value.
14706 (UNSPEC_VSX_VIEXP): New value.
14707 (UNSPEC_VSX_VTSTDC): New value.
14708 (xsxexpdp): New insn for scalar extract exponent.
14709 (xsxsigdp): New insn for scalar extract significand.
14710 (xsiexpdp): New insn for scalar insert exponent.
14711 (xscmpexpdp_<code>): New expansion for scalar compare exponents.
14712 (*xscmpexpdp): New insn for scalar compare exponents.
14713 (xststdc<Fvsx): New expansion for both single- and
14714 double-precision scalar test data class operations.
14715 (xststdcneg<Fvsx>): New expansion for both single- and
14716 double-precision scalar test for negative value operations.
14717 (*xststdc<Fvsx>): New insn for scalar test data class
14718 operation.
14719 (xvxexp<VSs>): New insn for single- and double-precision
14720 vector extract exponent operation.
14721 (xvxsig<VSs>): New insn for single- and double-precision
14722 vector extract significand operation.
14723 (xviexp<VSs>): New insn for single- and double-precision
14724 vector insert exponent operation.
14725 (xvtstdc<VSs>): New insn for single- and double-precision
14726 vector test data class operation.
14727 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
14728 built-in functions to represent the Power9 binary floating-point
14729 support instructions.
14730
14731 2016-08-10 bin cheng <bin.cheng@arm.com>
14732
14733 * doc/sourcebuild.texi (@item vect_cond_mixed): New item.
14734
14735 2016-08-10 Alan Lawrence <alan.lawrence@arm.com>
14736 Renlin Li <renlin.li@arm.com>
14737 Bin Cheng <bin.cheng@arm.com>
14738
14739 * config/aarch64/iterators.md (V_cmp_mixed, v_cmp_mixed): New.
14740 * config/aarch64/aarch64-simd.md (<su><maxmin>v2di3): Call
14741 gen_vcondv2div2di instead of gen_aarch64_vcond_internalv2div2di.
14742 (aarch64_vcond_internal<mode><mode>): Delete pattern.
14743 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): Ditto.
14744 (vcond<v_cmp_result><mode>): Ditto.
14745 (vcond<mode><mode>): Re-implement using vec_cmp and vcond_mask.
14746 (vcondu<mode><mode>): Ditto.
14747 (vcond<v_cmp_mixed><mode>): New pattern.
14748 (vcondu<mode><v_cmp_mixed>): New pattern.
14749 (aarch64_cmtst<mode>): Revise comment using aarch64_vcond instead
14750 of aarch64_vcond_internal.
14751
14752 2016-08-10 Alan Lawrence <alan.lawrence@arm.com>
14753 Renlin Li <renlin.li@arm.com>
14754 Bin Cheng <bin.cheng@arm.com>
14755
14756 * config/aarch64/aarch64-simd.md (vec_cmp<mode><mode>): New pattern.
14757 (vec_cmp<mode><v_cmp_result>): New pattern.
14758 (vec_cmpu<mode><mode>): New pattern.
14759 (vcond_mask_<mode><v_cmp_result>): New pattern.
14760
14761 2016-08-10 Yuri Rumyantsev <ysrumyan@gmail.com>
14762
14763 PR tree-optimization/71734
14764 * tree-ssa-loop-im.c (ref_indep_loop_p): Add new argument
14765 REF_LOOP, invoke ref_indep_loop_p_1.
14766 (outermost_indep_loop): Pass LOOP argumnet where REF was defined
14767 to ref_indep_loop_p.
14768 (ref_indep_loop_p_1): Fix commentary, add argument REF_LOOP,
14769 combine it with ref_indep_lopp_p_2, update SAFELEN if only REF
14770 is inside LOOP, do not cache dpendence value for loops with
14771 non-zero SAFELEN.
14772 (ref_indep_loop_p_2): Delete function.
14773 (can_sm_ref_p): Pass LOOP as additional argument to
14774 ref_indep_loop_p.
14775
14776 2016-08-10 Michael Meissner <meissner@linux.vnet.ibm.com>
14777
14778 PR target/72853
14779 * config/rs6000/rs6000.c (mem_operand_ds_form): Add check for op
14780 being an offsettable address.
14781
14782 2016-08-10 Martin Liska <mliska@suse.cz>
14783
14784 PR gcov-profile/58306
14785 * tree-profile.c (gimple_init_edge_profiler): Create conditionally
14786 atomic variants of profile update functions.
14787
14788 2016-08-10 Martin Liska <mliska@suse.cz>
14789
14790 Cherry picked (and modified) from google-4_7 branch
14791 2012-12-26 Rong Xu <xur@google.com>
14792 * common.opt (fprofile-update): Add new flag.
14793 * coretypes.h: Define enum profile_update.
14794 * doc/invoke.texi: Document -fprofile-update.
14795 * gcov-io.h: Declare GCOV_TYPE_ATOMIC_FETCH_ADD and
14796 GCOV_TYPE_ATOMIC_FETCH_ADD_FN.
14797 * tree-profile.c (gimple_init_edge_profiler): Generate
14798 also atomic profiler update.
14799 (gimple_gen_edge_profiler): Likewise.
14800
14801 2016-08-10 David Malcolm <dmalcolm@redhat.com>
14802
14803 * toplev.c (finalize): Set aux_info_file, asm_out_file, and
14804 stack_usage_file to NULL after fclose calls.
14805
14806 2016-08-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
14807
14808 PR target/71873
14809 * reload.c (push_reload): Compute subreg_in_class for
14810 subregs of constants and plus expressions. Remove special
14811 handling of SYMBOL_REFs.
14812
14813 2016-08-10 Alan Modra <amodra@gmail.com>
14814
14815 PR target/71680
14816 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Return
14817 SImode for TARGET_E500_DOUBLE when given SImode.
14818
14819 2016-08-09 David Wohlferd <dw@LimeGreenSocks.com>
14820
14821 * config/i3836/avx512fintrin.h (_mm512_cvtsepi64_epi32): Remove
14822 unused variable __O.
14823
14824 2016-08-09 Martin Liska <mliska@suse.cz>
14825
14826 * doc/gcov.texi: Change _gcov_dump to __gcov_dump and
14827 _gcov_reset to __gcov_reset.
14828 * doc/gcov-tool.texi: Fix typo.
14829
14830 2016-08-09 Martin Liska <mliska@suse.cz>
14831
14832 * value-prof.c (gimple_divmod_values_to_profile): Do not
14833 instrument MOD histogram if a value is not a SSA name.
14834
14835 2016-08-09 Martin Liska <mliska@suse.cz>
14836
14837 * value-prof.c (dump_histogram_value): Swap pow2 and non-pow2
14838 values.
14839
14840 2016-08-09 Renlin Li <renlin.li@arm.com>
14841
14842 PR middle-end/64971
14843 * calls.c (prepare_call_address): Convert funexp to Pmode when
14844 necessary.
14845 * config/aarch64/aarch64.md (sibcall): Remove fix for PR 64971.
14846 (sibcall_value): Likewise.
14847
14848 2016-08-09 Marek Polacek <polacek@redhat.com>
14849
14850 PR c/7652
14851 * cselib.c (cselib_expand_value_rtx_1): Add return.
14852 * gengtype.c (dbgprint_count_type_at): Likewise.
14853 * hsa-gen.c (gen_hsa_insn_for_internal_fn_call): Likewise.
14854 * reg-stack.c (get_true_reg): Restructure to avoid fallthrough warning.
14855
14856 2016-08-09 Martin Jambor <mjambor@suse.cz>
14857
14858 PR ipa/71981
14859 * ipa-polymorphic-call.c (get_dynamic_type): Bail out gracefully
14860 if instance is a MEM_REF.
14861
14862 2016-08-09 Uros Bizjak <ubizjak@gmail.com>
14863
14864 PR target/72843
14865 * config/i386/i386.md (*movtf_internal): Use
14866 lra_in_progress || reload_completed instead of !can_create_pseudo_p
14867 in the insn constraint.
14868 (*movxf_internal): Ditto.
14869 (*movdf_internal): Ditto.
14870 (*movsf_internal): Ditto.
14871
14872 2016-08-09 Bin Cheng <bin.cheng@arm.com>
14873
14874 PR tree-optimization/72772
14875 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
14876 for expanded base.
14877
14878 2016-08-09 Bin Cheng <bin.cheng@arm.com>
14879
14880 PR tree-optimization/72772
14881 * tree-ssa-loop-niter.h (simplify_using_initial_conditions): Delete
14882 parameter STOP.
14883 * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): Delete
14884 parameter STOP and update calls. Move expand_simple_operations
14885 function call from here...
14886 (simplify_using_initial_conditions): ...to here. Delete parameter
14887 STOP.
14888 (tree_simplify_using_condition): Delete parameter STOP.
14889 * tree-scalar-evolution.c (simple_iv_with_niters): Update call to
14890 simplify_using_initial_conditions.
14891
14892 2016-08-09 Matthew Fortune <matthew.fortune@imgtec.com>
14893
14894 PR c/65345
14895 * config/mips/mips.c (mips_atomic_assign_expand_fenv):
14896 Use create_tmp_var_raw instead of create_tmp_var.
14897
14898 2016-08-09 Richard Biener <rguenther@suse.de>
14899
14900 * tree-ssa-threadbackward.c (profitable_jump_thread_path):
14901 Treat same SSA names related.
14902
14903 2016-08-09 Jakub Jelinek <jakub@redhat.com>
14904
14905 PR tree-optimization/72824
14906 * tree-loop-distribution.c (const_with_all_bytes_same): Verify
14907 real_zerop is not negative.
14908
14909 2016-08-09 Richard Biener <rguenther@suse.de>
14910
14911 PR tree-optimization/71802
14912 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Make sure to catch
14913 all merge opportunities with the predecessor.
14914
14915 2016-08-09 Richard Biener <rguenther@suse.de>
14916
14917 PR ipa/68273
14918 * ipa-prop.c (ipa_modify_formal_parameters): Build
14919 parameter types with natural alignment also for the
14920 over-aligned case.
14921
14922 2016-08-08 Andi Kleen <ak@linux.intel.com>
14923
14924 * tree-vrp.c (get_single_symbol): Always initialize inv and neg.
14925
14926 2016-08-08 David Malcolm <dmalcolm@redhat.com>
14927
14928 PR c/64955
14929 * langhooks-def.h (LANG_HOOKS_RUN_LANG_SELFTESTS): New default
14930 do-nothing langhook.
14931 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_RUN_LANG_SELFTESTS.
14932 * langhooks.h (struct lang_hooks): Add run_lang_selftests.
14933 * selftest-run-tests.c: Include "tree.h" and "langhooks.h".
14934 (selftest::run_tests): Call lang_hooks.run_lang_selftests.
14935
14936 2016-08-08 David Malcolm <dmalcolm@redhat.com>
14937
14938 PR bootstrap/72844
14939 * input.c: Ensure that HAVE_ICONV is defined.
14940
14941 2016-08-08 Jakub Jelinek <jakub@redhat.com>
14942
14943 PR middle-end/72781
14944 * omp-low.c (lower_lastprivate_clauses): Set TREE_NO_WARNING on the
14945 private vars for lastprivate and for linear iterator.
14946
14947 PR middle-end/68762
14948 * omp-simd-clone.c: Include varasm.h.
14949 (simd_clone_create): Copy over DECL_COMDAT, DECL_WEAK, DECL_EXTERNAL,
14950 DECL_VISIBILITY, DECL_VISIBILITY_SPECIFIED, DECL_DLLIMPORT_P and for
14951 DECL_ONE_ONLY call make_decl_one_only. Fix up spelling in comment and
14952 update function name.
14953
14954 2016-07-29 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
14955
14956 * config/avr/driver-avr.c (specfiles_doc_url): Remove.
14957 (avr_diagnose_devicespecs_error): Remove.
14958 (avr_devicespecs_file): Remove composing absolute path for specfile
14959 and its verbose info. Remove conditions to check specs-file,
14960
14961 2016-08-08 Jakub Jelinek <jakub@redhat.com>
14962
14963 PR rtl-optimization/72821
14964 * lra-spills.c (regno_in_use_p): Don't use BLOCK_FOR_INSN on barriers,
14965 just return false for them.
14966
14967 2016-08-08 Alan Modra <amodra@gmail.com>
14968
14969 PR target/72771
14970 * config/rs6000/rs6000.c (toc_relative_expr_p): Allow (lo_sum (high))
14971 toc refs created during reload. Update function comment.
14972
14973 2016-08-08 Alan Modra <amodra@gmail.com>
14974
14975 PR target/72802
14976 * config/rs6000/rs6000.md (mov<mode>_hardfloat): Sort
14977 alternatives. Put loads first, then stores, and reg/reg moves
14978 within same class later. Delete attr length.
14979
14980 2016-08-08 Alan Modra <amodra@gmail.com>
14981
14982 PR target/72802
14983 * config/rs6000/rs6000.c (mem_operand_gpr): Remove vsx dform test.
14984 (mem_operand_ds_form): New predicate.
14985 * config/rs6000/rs6000-protos.h (mem_operand_ds_form): Declare.
14986 * config/rs6000/constraints.md (wY): Use mem_operand_df_form.
14987 * config/rs6000/predicates.md (offsettable_mem_14bit_operand): Delete.
14988 * config/rs6000/rs6000.md (f32_lm2, f32_sm2): Use wY for SF.
14989 (extendsfdf2_fpr): Replace o constraint with wY.
14990
14991 2016-08-07 Jan Hubicka <hubicka@ucw.cz>
14992
14993 * tree-ssa-threadbackward.c: Include tree-inline.h
14994 (profitable_jump_thread_path): Use estimate_num_insns to estimate
14995 size of copied block; for cold paths reduce duplication.
14996 (find_jump_threads_backwards): Remove redundant tests.
14997 (pass_thread_jumps::gate): Enable for -Os.
14998
14999 2016-08-07 Jakub Jelinek <jakub@redhat.com>
15000
15001 PR c/72816
15002 * stor-layout.c (layout_decl): Fix up formatting.
15003 (relayout_decl): Allow DECL to be FIELD_DECL.
15004
15005 2016-08-07 Alan Modra <amodra@gmail.com>
15006
15007 * config/rs6000/rs6000.md (fix_trunc<mode>si2): Fix mode of reg.
15008
15009 2016-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
15010
15011 * data-streamer-in.c (streamer_read_wide_int): New.
15012 (streamer_read_widest_int): Renamed function.
15013 * data-streamer-out.c (streamer_write_wide_int): New
15014 (streamer_write_widest_int): Renamed function.
15015 * lto-streamer-in.c (streamer_read_wi): Renamed and moved to
15016 data-stream-in.c.
15017 (input_cfg): Call renamed function.
15018 * lto-streamer-out.c (streamer_write_wi): Renamed and moved to
15019 data-stream-out.c.
15020 (output_cfg): Call renamed function.
15021 * data-streamer.h: Add declarations.
15022
15023 2016-08-08 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15024
15025 * tree-ssa-ccp.c (extend_mask): New param sgn.
15026 Remove ORing with wi::mask.
15027 (get_default_value): Adjust call to extend_mask to pass sign.
15028 (evaluate_stmt): Likewise.
15029
15030 2016-08-06 Jakub Jelinek <jakub@redhat.com>
15031
15032 * gcov.c (handle_cycle): Use INTTYPE_MAXIMUM (int64_t) instead of
15033 INT64_MAX.
15034
15035 2016-08-06 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15036
15037 * match.pd ((intptr_t) x eq/ne CST to x eq/ne (typeof x) cst): Disable
15038 transform if operand's type is pointer to function or method.
15039
15040 2016-08-05 Patrick Palka <ppalka@gcc.gnu.org>
15041
15042 PR tree-optimization/18046
15043 * tree-ssa-threadedge.c: Include cfganal.h.
15044 (simplify_control_statement_condition): If simplifying a
15045 GIMPLE_SWITCH, replace the index operand of the GIMPLE_SWITCH
15046 with the dominating ASSERT_EXPR before handing it off to VRP.
15047 Mention that a CASE_LABEL_EXPR may be returned.
15048 (thread_around_empty_blocks): Adjust to handle
15049 simplify_control_statement_condition() returning a
15050 CASE_LABEL_EXPR.
15051 (thread_through_normal_block): Likewise.
15052 * tree-vrp.c (simplify_stmt_for_jump_threading): Simplify
15053 a switch statement by trying to determine which case label
15054 will be taken.
15055
15056 2016-08-05 Vladimir Makarov <vmakarov@redhat.com>
15057
15058 PR rtl-optimization/69847
15059 * lra-constraints.c (process_invariant_for_inheritance): Save
15060 pattern instead of src.
15061 (remove_inheritance_pseudos): Use the pattern. Add assert.
15062
15063 2016-08-05 David Malcolm <dmalcolm@redhat.com>
15064
15065 * input.c (string_concat::string_concat): New constructor.
15066 (string_concat_db::string_concat_db): New constructor.
15067 (string_concat_db::record_string_concatenation): New method.
15068 (string_concat_db::get_string_concatenation): New method.
15069 (string_concat_db::get_key_loc): New method.
15070 (class auto_cpp_string_vec): New class.
15071 (get_substring_ranges_for_loc): New function.
15072 (get_source_range_for_substring): New function.
15073 (get_num_source_ranges_for_substring): New function.
15074 (class selftest::lexer_test_options): New class.
15075 (struct selftest::lexer_test): New struct.
15076 (class selftest::ebcdic_execution_charset): New class.
15077 (selftest::ebcdic_execution_charset::s_singleton): New variable.
15078 (selftest::lexer_test::lexer_test): New constructor.
15079 (selftest::lexer_test::~lexer_test): New destructor.
15080 (selftest::lexer_test::get_token): New method.
15081 (selftest::assert_char_at_range): New function.
15082 (ASSERT_CHAR_AT_RANGE): New macro.
15083 (selftest::assert_num_substring_ranges): New function.
15084 (ASSERT_NUM_SUBSTRING_RANGES): New macro.
15085 (selftest::assert_has_no_substring_ranges): New function.
15086 (ASSERT_HAS_NO_SUBSTRING_RANGES): New macro.
15087 (selftest::test_lexer_string_locations_simple): New function.
15088 (selftest::test_lexer_string_locations_ebcdic): New function.
15089 (selftest::test_lexer_string_locations_hex): New function.
15090 (selftest::test_lexer_string_locations_oct): New function.
15091 (selftest::test_lexer_string_locations_letter_escape_1): New function.
15092 (selftest::test_lexer_string_locations_letter_escape_2): New function.
15093 (selftest::test_lexer_string_locations_ucn4): New function.
15094 (selftest::test_lexer_string_locations_ucn8): New function.
15095 (selftest::uint32_from_big_endian): New function.
15096 (selftest::test_lexer_string_locations_wide_string): New function.
15097 (selftest::uint16_from_big_endian): New function.
15098 (selftest::test_lexer_string_locations_string16): New function.
15099 (selftest::test_lexer_string_locations_string32): New function.
15100 (selftest::test_lexer_string_locations_u8): New function.
15101 (selftest::test_lexer_string_locations_utf8_source): New function.
15102 (selftest::test_lexer_string_locations_concatenation_1): New
15103 function.
15104 (selftest::test_lexer_string_locations_concatenation_2): New
15105 function.
15106 (selftest::test_lexer_string_locations_concatenation_3): New
15107 function.
15108 (selftest::test_lexer_string_locations_macro): New function.
15109 (selftest::test_lexer_string_locations_stringified_macro_argument):
15110 New function.
15111 (selftest::test_lexer_string_locations_non_string): New function.
15112 (selftest::test_lexer_string_locations_long_line): New function.
15113 (selftest::test_lexer_char_constants): New function.
15114 (selftest::input_c_tests): Call the new test functions once per
15115 case within the line_table test matrix.
15116 * input.h (struct string_concat): New struct.
15117 (struct location_hash): New struct.
15118 (class string_concat_db): New class.
15119 * substring-locations.h: New header.
15120
15121 2016-08-05 Patrick Palka <ppalka@gcc.gnu.org>
15122
15123 PR tree-optimization/72810
15124 * tree-vrp.c (simplify_switch_using_ranges): Avoid changing
15125 the type of the case labels when truncating.
15126
15127 2016-08-05 James Greenhalgh <james.greenhalgh@arm.com>
15128
15129 PR Target/72819
15130 * config/aarch64/aarch64.h (aarch64_fp16_type_node): Declare.
15131 (aarch64_fp16_ptr_type_node): Likewise.
15132 * config/aarch64/aarch64-simd-builtins.c
15133 (aarch64_fp16_ptr_type_node): Define.
15134 (aarch64_init_fp16_types): New, refactored out of...
15135 (aarch64_init_builtins): ...here, update to call
15136 aarch64_init_fp16_types.
15137 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Handle
15138 HFmode.
15139 (aapcs_vfp_sub_candidate): Likewise.
15140
15141 2016-08-05 Martin Liska <mliska@suse.cz>
15142 Joshua Cranmer <Pidgeot18@gmail.com>
15143
15144 * gcov.c (line_t::has_block): New function.
15145 (enum loop_type): New enum.
15146 (handle_cycle): New function.
15147 (unblock): Likewise.
15148 (circuit): Likewise.
15149 (get_cycles_count): Likewise.
15150 (accumulate_line_counts): Use new loop detection algorithm.
15151
15152 2016-08-05 Martin Liska <mliska@suse.cz>
15153
15154 * gcov.c (output_intermediate_file): Rename
15155 function_info::line_next to next_file_fn.
15156 (process_file): Likewise.
15157 (read_graph_file): Likewise.
15158 (accumulate_line_counts): Likewise.
15159 (output_lines): Likewise.
15160
15161 2016-08-05 Richard Biener <rguenther@suse.de>
15162
15163 * tree-ssa-threadupdate.c (thread_block_1): Remove unnecessary
15164 restriction on threading to a loop header.
15165
15166 2016-08-05 Richard Biener <rguenther@suse.de>
15167
15168 * tree-cfgcleanup.c (tree_forwarder_block_p): Use bb_loop_header_p.
15169 * cfghooks.c (force_nonfallthru): If we ended up splitting a latch
15170 adjust loop info accordingly.
15171
15172 2016-08-05 Kugan Vivekanandarajah <kuganv@linaro.org>
15173
15174 * tree-vrp.c (extract_range_basic): Check cfun->after_inlining
15175 before folding call to __builtin_constant_p with parameters to false.
15176
15177 2016-08-05 Alan Modra <amodra@gmail.com>
15178
15179 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Delete
15180 code accidentally committed 2016-05-02 providing class when given
15181 NO_REGS.
15182
15183 2016-08-04 Patrick Palka <ppalka@gcc.gnu.org>
15184
15185 * tree-vrp.c (simplify_switch_using_ranges): Try to truncate
15186 the case label ranges that partially overlap with OP's value
15187 range.
15188
15189 2016-08-04 Uros Bizjak <ubizjak@gmail.com>
15190
15191 PR target/72805
15192 * config/i386/avx512fintrin.h (_mm512_cmp_epi32_mask) [!__OPTIMIZE__]:
15193 Cast builtin function result to __mmask16 instead of __mmask8.
15194 (_mm512_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
15195 (_mm512_mask_cmp_epi32_mask) [!__OPTIMIZE__]: Ditto.
15196 (_mm512_mask_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
15197
15198 2016-08-04 David Malcolm <dmalcolm@redhat.com>
15199
15200 * selftest.h (ASSERT_TRUE): Reimplement in terms of...
15201 (ASSERT_TRUE_AT): New macro.
15202 (ASSERT_FALSE): Reimplement in terms of...
15203 (ASSERT_FALSE_AT): New macro.
15204 (ASSERT_STREQ_AT): Fix typo in comment.
15205
15206 2016-08-04 Patrick Palka <ppalka@gcc.gnu.org>
15207
15208 * gimple.c (preprocess_case_label_vec_for_gimple): When the case
15209 labels are exhaustive, designate the label with the widest
15210 range to be the default label.
15211
15212 2016-08-04 Andrew Pinski <apinski@cavium.com>
15213
15214 * config/aarch64/aarch64.c (thunderx_vector_cost): New variable.
15215 (thunderx_tunings): Use thunderx_vector_cost instead of
15216 generic_vector_cost.
15217
15218 2016-08-04 Martin Liska <mliska@suse.cz>
15219
15220 * gcov.c (main): Fix GNU coding style.
15221 (output_intermediate_file): Likewise.
15222 (process_file): Likewise.
15223 (generate_results): Likewise.
15224 (release_structures): Likewise.
15225 (create_file_names): Likewise.
15226 (find_source): Likewise.
15227 (read_graph_file): Likewise.
15228 (find_exception_blocks): Likewise.
15229 (canonicalize_name): Likewise.
15230 (make_gcov_file_name): Likewise.
15231 (mangle_name): Likewise.
15232 (accumulate_line_counts): Likewise.
15233 (output_branch_count): Likewise.
15234 (read_line): Likewise.
15235
15236 2016-08-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
15237
15238 PR rtl-optimization/71779
15239 * emit-rtl.c (set_reg_attrs_from_value): Only propagate REG_POINTER,
15240 if the value was sign-extended according to POINTERS_EXTEND_UNSIGNED
15241 or if it was truncated.
15242
15243 PR rtl-optimization/70903
15244 * cse.c (cse_insn): If DEST is a paradoxical SUBREG, don't record DEST.
15245
15246 2016-08-04 Kugan Vivekanandarajah <kuganv@linaro.org>
15247
15248 * tree-inline.c (remap_ssa_name): Check for POINTER_TYPE_P before
15249 accessing SSA_NAME_PTR_INFO.
15250
15251 2016-08-04 Georg-Johann Lay <avr@gjlay.de>
15252
15253 PR 70677
15254 * common/config/avr/avr-common.c (avr_option_optimization_table)
15255 [OPT_LEVELS_ALL]: Turn off -fcaller-saves.
15256
15257 2016-08-04 Georg-Johann Lay <avr@gjlay.de>
15258
15259 PR 55181
15260 * config/avr/avr.md: New pattern to work around do_store_flag
15261 generating shift instructions for bit extractions.
15262
15263 2016-08-04 Kugan Vivekanandarajah <kuganv@linaro.org>
15264
15265 * tree-vrp.c (set_value_range): Use vrp_equiv_obstack with
15266 BITMAP_ALLOC.
15267 (add_equivalence): Likewise.
15268 (get_value_range): Allocate value range with vrp_value_range_pool.
15269 (vrp_initialize): Initialize vrp_equiv_obstack for equiv allocation.
15270 (vrp_finalize): Relase vrp_equiv_obstack and vrp_value_range_pool.
15271
15272 2016-08-03 Peter Bergner <bergner@vnet.ibm.com>
15273
15274 * config/rs6000/rs6000.c (rs6000_option_override_internal): Make LRA
15275 the default for the rs6000 port.
15276
15277 2016-08-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
15278
15279 PR middle-end/71876
15280 * calls.c (special_function_p): Remove special handling of
15281 "setjmp_syscall", "qsetjmp", "longjmp", "siglongjmp" and the
15282 prefix "__x". Recognize "savectx", "vfork" and "getcontext" only
15283 without prefix. Remove potentially unsafe ECF_LEAF and ECF_NORETURN.
15284
15285 2016-08-03 Vladimir Makarov <vmakarov@redhat.com>
15286
15287 PR middle-end/72778
15288 * lra-spills.c (regno_in_use_p): Check bb and regno modification.
15289 Don't stop on regular insns.
15290
15291 2016-08-03 Nathan Sidwell <nathan@codesourcery.com>
15292
15293 * config/nvptx/nvptx.c (nvptx_declare_function_name): Round frame
15294 size to DImode boundary.
15295 (nvptx_propagate): Likewise.
15296
15297 2016-08-03 Alan Modra <amodra@gmail.com>
15298
15299 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Make scalar
15300 float access depend on TARGET_EFFICIENT_UNALIGNED_VSX.
15301 * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Renamed
15302 from -mefficient-unaligned-vector. Note that this affects fp too.
15303
15304 2016-08-03 Alan Modra <amodra@gmail.com>
15305
15306 * config/rs6000/rs6000.c (rs6000_rtx_costs): Make unaligned mem
15307 cost more.
15308
15309 2016-08-03 Alan Modra <amodra@gmail.com>
15310
15311 * config/rs6000/rs6000.md (fix_trunc<mode>si2): Force source operand
15312 to a reg. Localize vars.
15313
15314 2016-08-03 Alan Modra <amodra@gmail.com>
15315
15316 * config/rs6000/rs6000.opt: Remove negatives from help strings
15317 and comments.
15318
15319 2016-08-03 Alan Modra <amodra@gmail.com>
15320
15321 * config/rs6000/rs6000.c (rs6000_secondary_reload_direct_move):
15322 Delete duplicated code.
15323
15324 2016-08-02 Vladimir Makarov <vmakarov@redhat.com>
15325
15326 PR middle-end/72778
15327 * lra-spills.c (regno_in_use_p): New.
15328 (lra_final_code_change): Use it.
15329
15330 2016-08-02 Vladimir Makarov <vmakarov@redhat.com>
15331
15332 PR rtl-optimization/69847
15333 * lra-int.h (struct lra-reg): Use restore_rtx instead of
15334 restore_regno.
15335 (lra_rtx_hash): New.
15336 * lra.c (initialize_lra_reg_info_element): Use restore_rtx instead
15337 of restore_regno.
15338 (lra_rtx_hash): Rename and move lra-remat.c::rtx_hash.
15339 * lra-remat.c (rtx_hash): Rename and Move to lra.c.
15340 * lra-spills.c (lra_final_code_change): Don't delete insn when the
15341 next insn is USE with the same reg as the current insn source.
15342 * lra-constraints.c (curr_insn_transform): Use restore_rtx instead
15343 of restore_regno.
15344 (lra_constraints_init): Call initiate_invariants.
15345 (lra_constraints_finish): Call finish_invariants.
15346 (struct invariant, invariant_t, invariant_ptr_t): New.
15347 (const_invariant_ptr_t, invariants, invariants_pool): New.
15348 (invariant_table, invariant_hash, invariant_eq_p): New.
15349 (insert_invariant, initiate_invariants, finish_invariants): New.
15350 (clear_invariants, invalid_invariant_regs): New.
15351 (inherit_reload_reg, split_reg, fix_bb_live_info): Use restore_rtx
15352 instead of restore_regno.
15353 (invariant_p, process_invariant_for_inheritance): New.
15354 (inherit_in_ebb): Implement invariant inheritance.
15355 (lra_inheritance): Initialize and finalize invalid_invariant_regs.
15356 (remove_inheritance_pseudos): Implement undoing invariant
15357 inheritance.
15358 (undo_optional_reloads, lra_undo_inheritance): Use restore_rtx
15359 instead of restore_regno.
15360 * lra-assigns.c (regno_live_length): New.
15361 (reload_pseudo_compare_func): Use regno_live_length.
15362 (assign_by_spills): Use restore_rtx instead of restore_regno.
15363 (lra_assign): Ditto. Initiate regno_live_length.
15364
15365 2016-02-08 James Greenhalgh <james.greenhalgh@arm.com>
15366
15367 * config/aarch64/arm_neon.h (vminnm_f64): Add back missing 'f' from
15368 __builtin_aarch64_fmindf.
15369
15370 2016-08-02 Bin Cheng <bin.cheng@arm.com>
15371
15372 PR tree-optimization/34114
15373 * tree-ssa-loop-niter.c (number_of_iterations_ne): Prove no-overflow
15374 information for more control IVs.
15375
15376 2016-08-02 Bin Cheng <bin.cheng@arm.com>
15377
15378 PR tree-optimization/34114
15379 * fold-const.c (multiple_of_p): Improve MULT_EXPR, PLUS_EXPR,
15380 PLUS_EXPR case. Handle SSA_NAME case.
15381
15382 2016-08-02 Tamar Christina <tamar.christina@arm.com>
15383
15384 * config/aarch64/aarch64-simd-builtins.def
15385 (__builtin_aarch64_fmindf): Change BUILTIN_VDQF to BUILTIN_VDQF_DF.
15386 (__builtin_aarch64_fmaxdf): Likewise.
15387 (__builtin_aarch64_smin_nandf): Likewise.
15388 (__builtin_aarch64_smax_nandf): Likewise.
15389 * config/aarch64/aarch64-simd.md (<fmaxmin><mode>3): Remove.
15390 * config/aarch64/aarch64.md (<fmaxmin><mode>3): Rename to...
15391 (<fmaxmin><mode>3): ...this.
15392 * config/aarch64/arm_neon.h (vmaxnm_f64): New.
15393 (vminnm_f64): Likewise.
15394 (vmin_f64): Likewise.
15395 (vmax_f64): Likewise.
15396 * config/aarch64/iterators.md (FMAXMIN): Merge with...
15397 (FMAXMIN_UNS): ...this.
15398 (fmaxmin): Merged with
15399 (fmaxmin_op): ...this...
15400 (maxmin_uns_op): ...in to this.
15401
15402 2016-08-01 Michael Meissner <meissner@linux.vnet.ibm.com>
15403
15404 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
15405 Add support for vec_extract on vector float, vector int, vector
15406 short, and vector char vector types.
15407 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
15408 vector float, vector int, vector short, and vector char
15409 optimizations on 64-bit ISA 2.07 systems for both constant and
15410 variable element numbers.
15411 (rs6000_split_vec_extract_var): Likewise.
15412 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): Allow SFmode to be
15413 Altivec registers on ISA 2.07 and above.
15414 (vsx_extract_v4sf): Delete alternative that hard coded element 0,
15415 which never was matched due to the split occuring before register
15416 allocation (and the code would not have worked on little endian
15417 systems if it did match). Allow extracts to go to the Altivec
15418 registers if ISA 2.07 (power8). Change from using "" around the
15419 C++ code to using {}'s.
15420 (vsx_extract_v4sf_<mode>_load): New insn to optimize vector float
15421 vec_extracts when the vector is in memory.
15422 (vsx_extract_v4sf_var): New insn to optimize vector float
15423 vec_extracts when the element number is variable on 64-bit ISA
15424 2.07 systems.
15425 (vsx_extract_<mode>, VSX_EXTRACT_I iterator): Add optimizations
15426 for 64-bit ISA 2.07 as well as ISA 3.0.
15427 (vsx_extract_<mode>_p9, VSX_EXTRACT_I iterator): Likewise.
15428 (vsx_extract_<mode>_p8, VSX_EXTRACT_I iterator): Likewise.
15429 (vsx_extract_<mode>_load, VSX_EXTRACT_I iterator): New insn to
15430 optimize vector int, vector short, and vector char vec_extracts
15431 when the vector is in memory.
15432 (vsx_extract_<mode>_var, VSX_EXTRACT_I iterator): New insn to
15433 optimize vector int, vector short, and vector char vec_extracts
15434 when the element number is variable.
15435
15436 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
15437
15438 PR target/71948
15439 * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): Use a value that
15440 does not overlap with other symbol flags.
15441
15442 2016-08-01 Wilco Dijkstra <wdijkstr@arm.com>
15443
15444 * config/aarch64/aarch64.h (aarch64_frame):
15445 Remove padding0 and hardfp_offset. Add locals_offset,
15446 initial_adjust, callee_adjust, callee_offset and final_adjust.
15447 * config/aarch64/aarch64.c (aarch64_layout_frame):
15448 Remove unused padding0 and hardfp_offset initializations.
15449 Choose frame layout and set frame variables accordingly.
15450 Use INVALID_REGNUM instead of FIRST_PSEUDO_REGISTER.
15451 (aarch64_push_regs): Use INVALID_REGNUM, not FIRST_PSEUDO_REGISTER.
15452 (aarch64_pop_regs): Likewise.
15453 (aarch64_expand_prologue): Remove all decision code, just emit
15454 prolog according to frame variables.
15455 (aarch64_expand_epilogue): Remove all decision code, just emit
15456 epilog according to frame variables.
15457 (aarch64_initial_elimination_offset): Use offset to local/arg area.
15458
15459 2015-08-01 H.J. Lu <hongjiu.lu@intel.com>
15460
15461 PR target/72748
15462 * config/i386/i386.c (timode_scalar_chain::convert_insn): Call
15463 fix_debug_reg_uses after changing source register mode to
15464 V1TImode if source register is undefined.
15465
15466 2015-08-01 Alan Hayward <alan.hayward@arm.com>
15467
15468 PR tree-optimization/71818
15469 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Don't advance IVs
15470 with non invariant evolutions
15471
15472 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
15473
15474 PR target/72767
15475 * config/avr/avr.md (length) [branch]: Correct insn length
15476 attribute for forward branches.
15477
15478 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
15479
15480 * doc/extend.texi (AVR Built-in Functions): Document
15481 __builtin_avr_nops.
15482 * config/avr/builtins.def (NOPS): New.
15483 * config/avr/avr.c (avr_expand_nops): New static function.
15484 (avr_expand_builtin): Use it to handle AVR_BUILTIN_NOPS.
15485
15486 2016-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15487
15488 * config/aarch64/aarch64.c (aarch64_classify_address): Use DImode when
15489 performing aarch64_offset_7bit_signed_scaled_p check for TImode LDP/STP
15490 addresses.
15491
15492 2016-08-01 Virendra Pathak <virendra.pathak@broadcom.com>
15493
15494 * config/aarch64/aarch64.c (vulcan_tunings): Update
15495 vulcan L1 cache_line_size.
15496
15497 2016-07-30 Michael Meissner <meissner@linux.vnet.ibm.com>
15498
15499 * config/rs6000/rs6000-protos.h (rs6000_adjust_vec_address): New
15500 function that takes a vector memory address, a hard register, an
15501 element number and a temporary base register, and recreates an
15502 address that points to the appropriate element within the vector.
15503 * config/rs6000/rs6000.c (rs6000_adjust_vec_address): Likewise.
15504 (rs6000_split_vec_extract_var): Add support for the target of a
15505 vec_extract with variable element number being a scalar memory
15506 location.
15507 (rtx_is_swappable_p): VLSO insns (UNSPEC_VSX_VSLOW) are not
15508 swappable.
15509 * config/rs6000/vsx.md (vsx_extract_<mode>_load): Replace
15510 vsx_extract_<mode>_load insn with a new insn that optimizes
15511 storing either element to a memory location, using scratch
15512 registers to pick apart the vector and reconstruct the address.
15513 (vsx_extract_<P:mode>_<VSX_D:mode>_load): Likewise.
15514 (vsx_extract_<mode>_store): Rework alternatives to more correctly
15515 support Altivec registers. Add support for ISA 3.0 Altivec d-form
15516 store instruction.
15517 (vsx_extract_<mode>_var): Add support for extracting a variable
15518 element number from memory.
15519
15520 2016-07-29 Georg-Johann Lay <avr@gjlay.de>
15521
15522 * config/avr/avr.c (avr_out_compare): Use const0_rtx instead of 0
15523 when testing for compares against constants of the form 0xabab.
15524
15525 2016-07-29 Bin Cheng <bin.cheng@arm.com>
15526
15527 PR tree-optimization/57558
15528 * tree-vect-loop-manip.c (vect_create_cond_for_niters_checks): New
15529 function.
15530 (vect_loop_versioning): Support versioning with niter assumptions.
15531 * tree-vect-loop.c (tree-ssa-loop.h): Include header file.
15532 (vect_get_loop_niters): New parameter. Reimplement to support
15533 assumptions in loop niter info.
15534 (vect_analyze_loop_form_1, vect_analyze_loop_form): Ditto.
15535 (new_loop_vec_info): Init LOOP_VINFO_NITERS_ASSUMPTIONS.
15536 (vect_estimate_min_profitable_iters): Use LOOP_REQUIRES_VERSIONING.
15537 Support loop versioning for niters.
15538 * tree-vectorizer.c (tree-ssa-loop-niter.h): Include header file.
15539 (vect_free_loop_info_assumptions): New function.
15540 (vectorize_loops): Free loop niter info for loops with flag
15541 LOOP_F_ASSUMPTIONS set if vectorization failed.
15542 * tree-vectorizer.h (struct _loop_vec_info): New field
15543 num_iters_assumptions.
15544 (LOOP_VINFO_NITERS_ASSUMPTIONS): New macro.
15545 (LOOP_REQUIRES_VERSIONING_FOR_NITERS): New macro.
15546 (LOOP_REQUIRES_VERSIONING): New macro.
15547 (vect_free_loop_info_assumptions): New decl.
15548
15549 2016-07-29 Bin Cheng <bin.cheng@arm.com>
15550
15551 * cfgloop.h (struct loop): New field constraints.
15552 (LOOP_C_INFINITE, LOOP_C_FINITE): New macros.
15553 (loop_constraint_set, loop_constraint_clr, loop_constraint_set_p): New
15554 functions.
15555 * cfgloop.c (alloc_loop): Initialize new field.
15556 * cfgloopmanip.c (copy_loop_info): Copy constraints.
15557 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions):
15558 Adjust niter analysis wrto loop constraints.
15559 * doc/loop.texi (@node Number of iterations): Add description for loop
15560 constraints.
15561
15562 2016-07-29 Marek Polacek <polacek@redhat.com>
15563
15564 PR c/7652
15565 * config/i386/i386.c (ix86_expand_args_builtin): Add break.
15566 (ix86_expand_round_builtin): Likewise.
15567
15568 2016-07-29 Segher Boessenkool <segher@kernel.crashing.org>
15569 Georg-Johann Lay <avr@gjlay.de>
15570
15571 PR rtl-optimization/71976
15572 * combine.c (get_last_value): Return 0 if the argument for which
15573 the function is called has a wider mode than the recorded value.
15574
15575 2016-07-29 Marek Polacek <polacek@redhat.com>
15576
15577 PR c/7652
15578 * config/rs6000/rs6000.c (altivec_expand_ld_builtin): Add break.
15579 (altivec_expand_st_builtin): Likewise.
15580
15581 2016-07-29 Georg-Johann Lay <avr@gjlay.de>
15582
15583 * config/avr/avr.md (addqi3) [cc]: Revert glitch in insn attribute
15584 introduced in r238381.
15585
15586 2016-07-29 Kugan Vivekanandarajah <kuganv@linaro.org>
15587
15588 PR middle-end/68217
15589 * tree-vrp.c (extract_range_from_binary_expr_1): In case of signed
15590 & sign-bit-CST, generate [-INF, 0] instead of [-INF, INF].
15591
15592 2016-07-28 Michael Meissner <meissner@linux.vnet.ibm.com>
15593
15594 * config/rs6000/rs6000-protos.h (rs6000_split_vec_extract_var):
15595 New declaration.
15596 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
15597 Add support for vec_extract of vector double or vector long having
15598 a variable element number on 64-bit ISA 2.07 systems or newer.
15599 * config/rs6000/rs6000.c (rs6000_expand_vector_extract):
15600 Likewise.
15601 (rs6000_split_vec_extract_var): New function to split a
15602 vec_extract built-in function with variable element number.
15603 (rtx_is_swappable_p): Variable vec_extracts and shifts are not
15604 swappable.
15605 * config/rs6000/vsx.md (UNSPEC_VSX_VSLO): New unspec.
15606 (UNSPEC_VSX_EXTRACT): Likewise.
15607 (vsx_extract_<mode>, VSX_D iterator): Fix constraints to allow
15608 direct move instructions to be generated on 64-bit ISA 2.07
15609 systems and newer, and to take advantage of the ISA 3.0 MFVSRLD
15610 instruction.
15611 (vsx_vslo_<mode>): New insn to do VSLO on V2DFmode and V2DImode
15612 arguments for vec_extract variable element.
15613 (vsx_extract_<mode>_var, VSX_D iterator): New insn to support
15614 vec_extract with variable element on V2DFmode and V2DImode
15615 vectors.
15616 * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): Remove
15617 -mupper-regs-df requirement, since it isn't needed.
15618 (TARGET_DIRECT_MOVE_64BIT): New macro to say whether we can
15619 do direct moves on 64-bit systems, which allows optimization of
15620 vec_extract on 64-bit ISA 2.07 systems and newer.
15621
15622 2016-07-28 Kristina Martsenko <kristina.martsenko@arm.com>
15623 2016-07-28 Wilco Dijkstra <wdijkstr@arm.com>
15624
15625 * config/aarch64/aarch64.md
15626 (zero_extend<SHORT:mode><GPI:mode>2_aarch64): Change output
15627 statement and type.
15628 (<optab>qihi2_aarch64): Likewise, and split into two.
15629 (extendqihi2_aarch64): New.
15630 (zero_extendqihi2_aarch64): New.
15631 * config/aarch64/iterators.md (ldrxt): Remove.
15632 * config/aarch64/aarch64.c (aarch64_rtx_costs): Change cost of
15633 uxtb/uxth.
15634
15635 2016-07-28 Kristina Martsenko <kristina.martsenko@arm.com>
15636
15637 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix cost of zero extend.
15638
15639 2016-07-28 Wilco Dijkstra <wdijkstr@arm.com>
15640
15641 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg): Rename.
15642 (aarch64_push_reg): New function to push 1 or 2 registers.
15643 (aarch64_pop_reg): New function to pop 1 or 2 registers.
15644 (aarch64_expand_prologue): Use aarch64_push_regs.
15645 (aarch64_expand_epilogue): Use aarch64_pop_regs.
15646
15647 2016-07-28 Yuri Rumyantsev <ysrumyan@gmail.com>
15648
15649 PR tree-optimization/71734
15650 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Pass value of safelen
15651 attribute instead of REF_LOOP and use it.
15652 (ref_indep_loop_p_2): Use SAFELEN argument instead of REF_LOOP and
15653 set it for Loops having non-zero safelen attribute.
15654 (ref_indep_loop_p): Pass zero as initial value for safelen.
15655
15656 2016-07-28 Ilya Enkovich <ilya.enkovich@intel.com>
15657
15658 PR middle-end/72657
15659 PR target/72683
15660 * tree-chkp.c (chkp_retbnd_call_by_val): Check for instrumentation
15661 call using chkp_gimple_call_builtin_p.
15662 (chkp_copy_bounds_for_assign): Likewise.
15663
15664 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15665
15666 * config/alpha/alpha.c (alpha_adjust_cost): Adjust.
15667 * config/arm/arm-protos.h (struct tune_params): Likewise.
15668 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
15669 (cortex_a9_sched_adjust_cost): Likewise.
15670 (fa726te_sched_adjust_cost): Likewise.
15671 (arm_adjust_cost): Likewise.
15672 * config/bfin/bfin.c (bfin_adjust_cost): Likewise.
15673 * config/c6x/c6x.c (c6x_adjust_cost): Likewise.
15674 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise.
15675 * config/i386/i386.c (ix86_adjust_cost): Likewise.
15676 * config/ia64/ia64.c: Likewise.
15677 * config/m68k/m68k.c: Likewise.
15678 * config/mep/mep.c (mep_adjust_cost): Likewise.
15679 * config/microblaze/microblaze.c (microblaze_adjust_cost):
15680 * Likewise.
15681 * config/mips/mips.c (mips_adjust_cost): Likewise.
15682 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost):
15683 * Likewise.
15684 * config/pa/pa.c (pa_adjust_cost): Likewise.
15685 * config/rs6000/rs6000.c (rs6000_adjust_cost): Likewise.
15686 (rs6000_debug_adjust_cost): Likewise.
15687 * config/sh/sh.c (sh_adjust_cost): Likewise.
15688 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise.
15689 (hypersparc_adjust_cost): Likewise.
15690 (sparc_adjust_cost): Likewise.
15691 * config/spu/spu.c (spu_sched_adjust_cost): Likewise.
15692 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Likewise.
15693 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost):
15694 * Likewise.
15695 * config/visium/visium.c (visium_adjust_cost): Likewise.
15696 * doc/tm.texi: Regenerate.
15697 * haifa-sched.c (dep_cost_1): Adjust.
15698 * target.def: Merge adjust_cost and adjust_cost_2.
15699
15700 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15701
15702 * haifa-sched.c (add_to_speculative_block): Make twins a vector.
15703
15704 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15705
15706 * store-motion.c (struct st_expr): Make pattern_regs a vector.
15707 (extract_mentioned_regs): Append to a vector instead of
15708 returning a rtx_expr_list.
15709 (st_expr_entry): Adjust.
15710 (free_st_expr_entry): Likewise.
15711 (store_ops_ok): Likewise.
15712 (store_killed_in_insn): Likewise.
15713 (find_moveable_store): Likewise.
15714
15715 2016-07-28 Martin Liska <mliska@suse.cz>
15716
15717 PR gcov-profile/68025
15718 * tree-profile.c (tree_profiling): Respect
15719 no_profile_instrument_function attribute.
15720 * doc/extend.texi: Document no_profile_instrument_function
15721 attribute.
15722
15723 2016-07-28 Martin Liska <mliska@suse.cz>
15724
15725 PR rtl-optimization/70944
15726 * combine.c (make_compound_operation):
15727 Do not allow make_compound_operation for vector mode
15728
15729 2016-07-28 Kugan Vivekanandarajah <kuganv@linaro.org>
15730
15731 PR middle-end/71994
15732 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Check tcc_comparison
15733 before calling get_ops.
15734
15735 2016-07-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
15736
15737 * defaults.h (LOG2_BITS_PER_UNIT): Move from here...
15738 * tree.h (LOG2_BITS_PER_UNIT): ...to here.
15739 (BITS_PER_UNIT_LOG): Remove.
15740 (int_bit_position): Use LOG2_BITS_PER_UNIT instead of BITS_PER_UNIT_LOG.
15741 * expr.c (expand_assignment): Likewise.
15742 * stor-layout.c (initialize_sizetypes): Likewise.
15743
15744 2016-07-27 Michael Meissner <meissner@linux.vnet.ibm.com>
15745
15746 * config/rs6000/vector.md (vec_extract<mode>): Change the calling
15747 signature of rs6000_expand_vector_extract so that the element
15748 number is a RTX instead of a constant integer.
15749 * config/rs6000/rs6000-protos.h (rs6000_expand_vector_extract):
15750 Likewise.
15751 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Likewise.
15752 (altivec_expand_vec_ext_builtin): Likewise.
15753 * config/rs6000/altivec.md (reduc_plus_scal_<mode>): Likewise.
15754 * config/rs6000/vsx.md (vsx_extract_<mode>): Fix spelling of the
15755 MFVSRLD instruction.
15756
15757 2016-07-27 David Malcolm <dmalcolm@redhat.com>
15758
15759 * input.c (get_pure_location): Move here from tree.c.
15760 (make_location): Likewise. Add header comment.
15761 (selftest::test_accessing_ordinary_linemaps): Verify
15762 pure_location_p, make_location, get_location_from_adhoc_loc and
15763 get_range_from_loc.
15764 * input.h (get_pure_location): Move declaration here from tree.h.
15765 (get_finish): Likewise for inline function.
15766 (make_location): Likewise for declaration.
15767 * tree.c (get_pure_location): Move to input.c.
15768 (make_location): Likewise.
15769 * tree.h (get_pure_location): Move declaration to tree.h.
15770 (get_finish): Likewise for inline function.
15771 (make_location): Likewise for declaration.
15772
15773 2016-07-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15774
15775 PR middle-end/71078
15776 * match.pd (x / abs(x) -> copysign(1.0, x)): New pattern.
15777
15778 2016-07-27 David Malcolm <dmalcolm@redhat.com>
15779
15780 * system.h (STATIC_ASSERT): Use static_assert if building
15781 with C++11 onwards.
15782
15783 2016-07-27 Richard Biener <rguenther@suse.de>
15784
15785 PR tree-optimization/72517
15786 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
15787 Revert change to not compute read-read dependences.
15788
15789 2016-07-27 Richard Biener <rguenther@suse.de>
15790
15791 * predict.c (set_even_probabilities): Make nedges unsigned.
15792
15793 2016-07-27 Martin Liska <mliska@suse.cz>
15794
15795 * predict.c (set_even_probabilities): Handle unlikely edges.
15796 (combine_predictions_for_bb): Likewise.
15797
15798 2016-07-26 Michael Meissner <meissner@linux.vnet.ibm.com>
15799
15800 PR target/71869
15801 * config/rs6000/rs6000.c (rs6000_generate_compare): Rework
15802 __float128 support when we don't have hardware support, so that
15803 the IEEE built-in functions like isgreater, first call __unordkf3
15804 to make sure neither operand is a NaN, and if both operands are
15805 ordered, do the normal comparison.
15806
15807 2016-07-26 Patrick Palka <ppalka@gcc.gnu.org>
15808
15809 * tree-vrp.c (dump_asserts_for): Print loc->expr instead of
15810 name.
15811 (extract_code_and_val_from_cond_with_ops): Verify that name is
15812 either cond_op0 or cond_op1.
15813
15814 2016-07-26 Patrick Palka <ppalka@gcc.gnu.org>
15815
15816 PR tree-optimization/18046
15817 * genmodes.c (emit_mode_size_inline): Emit an assert that
15818 verifies that mode is a valid array index.
15819 (emit_mode_nuinits_inline): Likewise.
15820 (emit_mode_inner_inline): Likewise.
15821 (emit_mode_unit_size_inline): Likewise.
15822 (emit_mode_unit_precision_inline): Likewise.
15823 * tree-vrp.c: Include params.h.
15824 (find_switch_asserts): Register edge assertions for the default
15825 label which correspond to the anti-ranges of each case label.
15826 * params.def (PARAM_MAX_VRP_SWITCH_ASSERTIONS): New.
15827 * doc/invoke.texi: Document it.
15828
15829 2016-07-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15830
15831 * gimple-ssa-strength-reduction.c (slsr_process_phi): Remove dead
15832 and unnecessary call to gimple_bb.
15833
15834 2016-07-26 Richard Biener <rguenther@suse.de>
15835
15836 PR rtl-optimization/71984
15837 * simplify-rtx.c (simplify_subreg): Use GET_MODE_SIZE and prepare
15838 for VOIDmode.
15839
15840 2016-07-26 Richard Biener <rguenther@suse.de>
15841
15842 PR middle-end/72517
15843 * expmed.c (extract_bit_field_1): Constrain the vector mode
15844 with element size matching the extraction mode size when
15845 choosing a better vector mode to do the extraction from.
15846
15847 2016-07-26 Richard Biener <rguenther@suse.de>
15848 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15849
15850 PR middle-end/70920
15851 * match.pd ((intptr)x eq/ne CST to x eq/ne (typeof x) CST): New
15852 pattern.
15853
15854 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15855
15856 * tree-ssa-structalias.c (struct scc_info): Change types of
15857 members to auto_sbitmap and auto_vec.
15858 (scc_info::scc_info): New constructor.
15859 (scc_info::~scc_info): New destructor.
15860 (init_scc_info): Remove.
15861 (free_scc_info): Remove.
15862 (find_indirect_cycles): Adjust.
15863 (perform_var_substitution): Likewise.
15864 (free_var_substitution_info): Likewise.
15865
15866 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15867
15868 * tree-outof-ssa.c (struct elim_graph): Change type of members
15869 to auto_vec and auto_sbitmap.
15870 (elim_graph::elim_graph): New constructor.
15871 (delete_elim_graph): Remove.
15872 (expand_phi_nodes): Adjust.
15873
15874 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15875
15876 * tree-outof-ssa.c (struct elim_graph): Remove typedef.
15877 (new_elim_graph): Adjust.
15878 (clear_elim_graph): Likewise.
15879 (delete_elim_graph): Likewise.
15880 (elim_graph_size): Likewise.
15881 (elim_graph_add_node): Likewise.
15882 (elim_graph_add_edge): Likewise.
15883 (elim_graph_remove_succ_edge): Likewise.
15884 (eliminate_name): Likewise.
15885 (eliminate_build): Likewise.
15886 (elim_forward): Likewise.
15887 (elim_unvisited_predecessor): Likewise.
15888 (elim_backward): Likewise.
15889 (elim_create): Likewise.
15890 (eliminate_phi): Likewise.
15891 (expand_phi_nodes): Likewise.
15892
15893 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15894
15895 * bt-load.c (compute_out): Use auto_sbitmap class.
15896 (link_btr_uses): Likewise.
15897 * cfganal.c (mark_dfs_back_edges): Likewise.
15898 (post_order_compute): Likewise.
15899 (inverted_post_order_compute): Likewise.
15900 (pre_and_rev_post_order_compute_fn): Likewise.
15901 (single_pred_before_succ_order): Likewise.
15902 * cfgexpand.c (pass_expand::execute): Likewise.
15903 * cfgloop.c (verify_loop_structure): Likewise.
15904 * cfgloopmanip.c (fix_bb_placements): Likewise.
15905 (remove_path): Likewise.
15906 (update_dominators_in_loop): Likewise.
15907 * cfgrtl.c (break_superblocks): Likewise.
15908 * ddg.c (check_sccs): Likewise.
15909 (create_ddg_all_sccs): Likewise.
15910 * df-core.c (df_worklist_dataflow): Likewise.
15911 * dse.c (dse_step3): Likewise.
15912 * except.c (eh_region_outermost): Likewise.
15913 * function.c (thread_prologue_and_epilogue_insns): Likewise.
15914 * gcse.c (prune_expressions): Likewise.
15915 (prune_insertions_deletions): Likewise.
15916 * gimple-ssa-backprop.c (backprop::~backprop): Likewise.
15917 * graph.c (draw_cfg_nodes_no_loops): Likewise.
15918 * ira-lives.c (remove_some_program_points_and_update_live_ranges): Likewise.
15919 * lcm.c (compute_earliest): Likewise.
15920 (compute_farthest): Likewise.
15921 * loop-unroll.c (unroll_loop_constant_iterations): Likewise.
15922 (unroll_loop_runtime_iterations): Likewise.
15923 (unroll_loop_stupid): Likewise.
15924 * lower-subreg.c (decompose_multiword_subregs): Likewise.
15925 * lra-lives.c: Likewise.
15926 * lra.c (lra): Likewise.
15927 * modulo-sched.c (schedule_reg_moves): Likewise.
15928 (optimize_sc): Likewise.
15929 (get_sched_window): Likewise.
15930 (sms_schedule_by_order): Likewise.
15931 (check_nodes_order): Likewise.
15932 (order_nodes_of_sccs): Likewise.
15933 (order_nodes_in_scc): Likewise.
15934 * recog.c (split_all_insns): Likewise.
15935 * regcprop.c (pass_cprop_hardreg::execute): Likewise.
15936 * reload1.c (reload): Likewise.
15937 * sched-rgn.c (haifa_find_rgns): Likewise.
15938 (split_edges): Likewise.
15939 (compute_trg_info): Likewise.
15940 * sel-sched.c (init_seqno): Likewise.
15941 * store-motion.c (remove_reachable_equiv_notes): Likewise.
15942 * tree-into-ssa.c (update_ssa): Likewise.
15943 * tree-ssa-live.c (live_worklist): Likewise.
15944 * tree-ssa-loop-im.c (fill_always_executed_in): Likewise.
15945 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
15946 * Likewise.
15947 (try_peel_loop): Likewise.
15948 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop):
15949 * Likewise.
15950 * tree-ssa-pre.c (compute_antic): Likewise.
15951 * tree-ssa-reassoc.c (undistribute_ops_list): Likewise.
15952 * tree-stdarg.c (reachable_at_most_once): Likewise.
15953 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Likewise.
15954 * var-tracking.c (vt_find_locations): Likewise.
15955
15956 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15957
15958 * sbitmap.h (auto_sbitmap): New class.
15959
15960 2016-07-26 Alan Modra <amodra@gmail.com>
15961
15962 PR target/72103
15963 * config/rs6000/rs6000.c (rs6000_secondary_reload): Initialize
15964 sri->t_icode.
15965
15966 2016-07-25 David Malcolm <dmalcolm@redhat.com>
15967
15968 * input.c (selftest::temp_source_file::temp_source_file): Fix
15969 missing "%s" in fprintf.
15970
15971 2016-07-25 John David Anglin <danglin@gcc.gnu.org>
15972
15973 PR middle-end/71732
15974 * cselib.c (cselib_process_insn): Invalidate argument slots for
15975 const/pure calls.
15976
15977 2016-07-25 Jiong Wang <jiong.wang@arm.com>
15978
15979 * config/aarch64/arm_neon.h (vfmah_lane_f16, vfmah_laneq_f16,
15980 vfmsh_lane_f16, vfmsh_laneq_f16, vmulh_lane_f16, vmulh_laneq_f16,
15981 vmulxh_lane_f16, vmulxh_laneq_f16): New.
15982
15983 2016-07-25 Jiong Wang <jiong.wang@arm.com>
15984
15985 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
15986 * config/aarch64/aarch64.md (fma, fnma): Support HF.
15987 * config/aarch64/arm_fp16.h (vfmah_f16, vfmsh_f16): New.
15988
15989 2016-07-25 Jiong Wang <jiong.wang@arm.com>
15990
15991 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
15992 * config/aarch64/aarch64.md (<FCVT_F2FIXED:fcvt_fixed_insn>hf<mode>3):
15993 New.
15994 (<FCVT_FIXED2F:fcvt_fixed_insn><mode>hf3): Likewise.
15995 (add<mode>3): Likewise.
15996 (sub<mode>3): Likewise.
15997 (mul<mode>3): Likewise.
15998 (div<mode>3): Likewise.
15999 (*div<mode>3): Likewise.
16000 (<fmaxmin><mode>3): Extend to HF.
16001 * config/aarch64/aarch64-simd.md (aarch64_rsqrts<mode>): Likewise.
16002 (fabd<mode>3): Likewise.
16003 (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_HSDF:mode>3): Likewise.
16004 (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_HSDI:mode>3): Likewise.
16005 (aarch64_fmulx<mode>): Likewise.
16006 (aarch64_fac<optab><mode>): Likewise.
16007 (aarch64_frecps<mode>): Likewise.
16008 (<FCVT_F2FIXED:fcvt_fixed_insn>hfhi3): New.
16009 (<FCVT_FIXED2F:fcvt_fixed_insn>hihf3): Likewise.
16010 * config/aarch64/iterators.md (VHSDF_SDF): Delete.
16011 (VSDQ_HSDI): Support HI.
16012 (fcvt_target, FCVT_TARGET): Likewise.
16013 * config/aarch64/arm_fp16.h (vaddh_f16, vsubh_f16, vabdh_f16,
16014 vcageh_f16, vcagth_f16, vcaleh_f16, vcalth_f16, vceqh_f16, vcgeh_f16,
16015 vcgth_f16, vcleh_f16, vclth_f16, vcvth_n_f16_s16, vcvth_n_f16_s32,
16016 vcvth_n_f16_s64, vcvth_n_f16_u16, vcvth_n_f16_u32, vcvth_n_f16_u64,
16017 vcvth_n_s16_f16, vcvth_n_s32_f16, vcvth_n_s64_f16, vcvth_n_u16_f16,
16018 vcvth_n_u32_f16, vcvth_n_u64_f16, vdivh_f16, vmaxh_f16, vmaxnmh_f16,
16019 vminh_f16, vminnmh_f16, vmulh_f16, vmulxh_f16, vrecpsh_f16,
16020 vrsqrtsh_f16): New.
16021
16022 2016-07-25 Jiong Wang <jiong.wang@arm.com>
16023
16024 * config.gcc (aarch64*-*-*): Install arm_fp16.h.
16025 * config/aarch64/aarch64-builtins.c (hi_UP): New.
16026 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
16027 * config/aarch64/aarch64-simd.md (aarch64_frsqrte<mode>): Extend to HF
16028 mode.
16029 (aarch64_frecp<FRECP:frecp_suffix><mode>): Likewise.
16030 (aarch64_cm<optab><mode>): Likewise.
16031 * config/aarch64/aarch64.md (<frint_pattern><mode>2): Likewise.
16032 (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Likewise.
16033 (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
16034 (sqrt<mode>2): Likewise.
16035 (*sqrt<mode>2): Likewise.
16036 (abs<mode>2): Likewise.
16037 (<optab><mode>hf2): New pattern for HF mode.
16038 (<optab>hihf2): Likewise.
16039 * config/aarch64/arm_neon.h: Include arm_fp16.h.
16040 * config/aarch64/iterators.md (GPF_F16, GPI_F16, VHSDF_HSDF): New.
16041 (w1, w2, v, s, q, Vmtype, V_cmp_result, fcvt_iesize, FCVT_IESIZE):
16042 Support HF mode.
16043 * config/aarch64/arm_fp16.h: New file.
16044 (vabsh_f16, vceqzh_f16, vcgezh_f16, vcgtzh_f16, vclezh_f16, vcltzh_f16,
16045 vcvth_f16_s16, vcvth_f16_s32, vcvth_f16_s64, vcvth_f16_u16,
16046 vcvth_f16_u32, vcvth_f16_u64, vcvth_s16_f16, vcvth_s32_f16,
16047 vcvth_s64_f16, vcvth_u16_f16, vcvth_u32_f16, vcvth_u64_f16,
16048 vcvtah_s16_f16, vcvtah_s32_f16, vcvtah_s64_f16, vcvtah_u16_f16,
16049 vcvtah_u32_f16, vcvtah_u64_f16, vcvtmh_s16_f16, vcvtmh_s32_f16,
16050 vcvtmh_s64_f16, vcvtmh_u16_f16, vcvtmh_u32_f16, vcvtmh_u64_f16,
16051 vcvtnh_s16_f16, vcvtnh_s32_f16, vcvtnh_s64_f16, vcvtnh_u16_f16,
16052 vcvtnh_u32_f16, vcvtnh_u64_f16, vcvtph_s16_f16, vcvtph_s32_f16,
16053 vcvtph_s64_f16, vcvtph_u16_f16, vcvtph_u32_f16, vcvtph_u64_f16,
16054 vnegh_f16, vrecpeh_f16, vrecpxh_f16, vrndh_f16, vrndah_f16, vrndih_f16,
16055 vrndmh_f16, vrndnh_f16, vrndph_f16, vrndxh_f16, vrsqrteh_f16,
16056 vsqrth_f16): New.
16057
16058 2016-07-25 Jiong Wang <jiong.wang@arm.com>
16059
16060 * config/aarch64/aarch64-simd-builtins.def (reduc_smax_scal_,
16061 reduc_smin_scal_): Use VDQIF_F16.
16062 (reduc_smax_nan_scal_, reduc_smin_nan_scal_): Use VHSDF.
16063 * config/aarch64/aarch64-simd.md (reduc_<maxmin_uns>_scal_<mode>):
16064 Use VHSDF.
16065 (aarch64_reduc_<maxmin_uns>_internal<mode>): Likewise.
16066 * config/aarch64/iterators.md (VDQIF_F16): New.
16067 (vp): Support HF modes.
16068 * config/aarch64/arm_neon.h (vmaxv_f16, vmaxvq_f16, vminv_f16,
16069 vminvq_f16, vmaxnmv_f16, vmaxnmvq_f16, vminnmv_f16, vminnmvq_f16): New.
16070
16071 2016-07-25 Jiong Wang <jiong.wang@arm.com>
16072
16073 * config/aarch64/aarch64-simd.md (*aarch64_mulx_elt_to_64v2df): Rename to
16074 "*aarch64_mulx_elt_from_dup<mode>".
16075 (*aarch64_mul3_elt<mode>): Update schedule type.
16076 (*aarch64_mul3_elt_from_dup<mode>): Likewise.
16077 (*aarch64_fma4_elt_from_dup<mode>): Likewise.
16078 (*aarch64_fnma4_elt_from_dup<mode>): Likewise.
16079 * config/aarch64/iterators.md (VMUL): Supprt half precision float modes.
16080 (f, fp): Support HF modes.
16081 * config/aarch64/arm_neon.h (vfma_lane_f16, vfmaq_lane_f16,
16082 vfma_laneq_f16, vfmaq_laneq_f16, vfma_n_f16, vfmaq_n_f16, vfms_lane_f16,
16083 vfmsq_lane_f16, vfms_laneq_f16, vfmsq_laneq_f16, vfms_n_f16,
16084 vfmsq_n_f16, vmul_lane_f16, vmulq_lane_f16, vmul_laneq_f16,
16085 vmulq_laneq_f16, vmul_n_f16, vmulq_n_f16, vmulx_lane_f16,
16086 vmulxq_lane_f16, vmulx_laneq_f16, vmulxq_laneq_f16): New.
16087
16088 2016-07-25 Jiong Wang <jiong.wang@arm.com>
16089
16090 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
16091 * config/aarch64/aarch64-simd.md (fma<mode>4, fnma<mode>4): Extend to HF
16092 modes.
16093 * config/aarch64/arm_neon.h (vfma_f16, vfmaq_f16, vfms_f16,
16094 vfmsq_f16): New.
16095
16096 2016-07-25 Jiong Wang <jiong.wang@arm.com>
16097
16098 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
16099 * config/aarch64/aarch64-simd.md
16100 (aarch64_rsqrts<mode>): Extend to HF modes.
16101 (fabd<mode>3): Likewise.
16102 (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_SDF:mode>3): Likewise.
16103 (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_SDI:mode>3): Likewise.
16104 (aarch64_<maxmin_uns>p<mode>): Likewise.
16105 (<su><maxmin><mode>3): Likewise.
16106 (<maxmin_uns><mode>3): Likewise.
16107 (<fmaxmin><mode>3): Likewise.
16108 (aarch64_faddp<mode>): Likewise.
16109 (aarch64_fmulx<mode>): Likewise.
16110 (aarch64_frecps<mode>): Likewise.
16111 (*aarch64_fac<optab><mode>): Rename to aarch64_fac<optab><mode>.
16112 (add<mode>3): Extend to HF modes.
16113 (sub<mode>3): Likewise.
16114 (mul<mode>3): Likewise.
16115 (div<mode>3): Likewise.
16116 (*div<mode>3): Likewise.
16117 * config/aarch64/aarch64.c (aarch64_emit_approx_div): Return false for
16118 HF, V4HF and V8HF.
16119 * config/aarch64/iterators.md (VDQ_HSDI, VSDQ_HSDI): New mode iterator.
16120 * config/aarch64/arm_neon.h (vadd_f16, vaddq_f16, vabd_f16, vabdq_f16,
16121 vcage_f16, vcageq_f16, vcagt_f16, vcagtq_f16, vcale_f16, vcaleq_f16,
16122 vcalt_f16, vcaltq_f16, vceq_f16, vceqq_f16, vcge_f16, vcgeq_f16,
16123 vcgt_f16, vcgtq_f16, vcle_f16, vcleq_f16, vclt_f16, vcltq_f16,
16124 vcvt_n_f16_s16, vcvtq_n_f16_s16, vcvt_n_f16_u16, vcvtq_n_f16_u16,
16125 vcvt_n_s16_f16, vcvtq_n_s16_f16, vcvt_n_u16_f16, vcvtq_n_u16_f16,
16126 vdiv_f16, vdivq_f16, vdup_lane_f16, vdup_laneq_f16, vdupq_lane_f16,
16127 vdupq_laneq_f16, vdups_lane_f16, vdups_laneq_f16, vmax_f16, vmaxq_f16,
16128 vmaxnm_f16, vmaxnmq_f16, vmin_f16, vminq_f16, vminnm_f16, vminnmq_f16,
16129 vmul_f16, vmulq_f16, vmulx_f16, vmulxq_f16, vpadd_f16, vpaddq_f16,
16130 vpmax_f16, vpmaxq_f16, vpmaxnm_f16, vpmaxnmq_f16, vpmin_f16, vpminq_f16,
16131 vpminnm_f16, vpminnmq_f16, vrecps_f16, vrecpsq_f16, vrsqrts_f16,
16132 vrsqrtsq_f16, vsub_f16, vsubq_f16): New.
16133
16134 2016-07-25 Jiong Wang <jiong.wang@arm.com>
16135
16136 * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New.
16137 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
16138 * config/aarch64/aarch64-simd.md (aarch64_rsqrte<mode>): Extend to HF modes.
16139 (neg<mode>2): Likewise.
16140 (abs<mode>2): Likewise.
16141 (<frint_pattern><mode>2): Likewise.
16142 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): Likewise.
16143 (<optab><VDQF:mode><fcvt_target>2): Likewise.
16144 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): Likewise.
16145 (ftrunc<VDQF:mode>2): Likewise.
16146 (<optab><fcvt_target><VDQF:mode>2): Likewise.
16147 (sqrt<mode>2): Likewise.
16148 (*sqrt<mode>2): Likewise.
16149 (aarch64_frecpe<mode>): Likewise.
16150 (aarch64_cm<optab><mode>): Likewise.
16151 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Return false for
16152 HF, V4HF and V8HF.
16153 * config/aarch64/iterators.md (VHSDF, VHSDF_DF, VHSDF_SDF): New.
16154 (VDQF_COND, fcvt_target, FCVT_TARGET, hcon): Extend mode attribute to HF modes.
16155 (stype): New.
16156 * config/aarch64/arm_neon.h (vdup_n_f16): New.
16157 (vdupq_n_f16): Likewise.
16158 (vld1_dup_f16): Use vdup_n_f16.
16159 (vld1q_dup_f16): Use vdupq_n_f16.
16160 (vabs_f16, vabsq_f16, vceqz_f16, vceqzq_f16, vcgez_f16, vcgezq_f16,
16161 vcgtz_f16, vcgtzq_f16, vclez_f16, vclezq_f16, vcltz_f16, vcltzq_f16,
16162 vcvt_f16_s16, vcvtq_f16_s16, vcvt_f16_u16, vcvtq_f16_u16, vcvt_s16_f16,
16163 vcvtq_s16_f16, vcvt_u16_f16, vcvtq_u16_f16, vcvta_s16_f16,
16164 vcvtaq_s16_f16, vcvta_u16_f16, vcvtaq_u16_f16, vcvtm_s16_f16,
16165 vcvtmq_s16_f16, vcvtm_u16_f16, vcvtmq_u16_f16, vcvtn_s16_f16,
16166 vcvtnq_s16_f16, vcvtn_u16_f16, vcvtnq_u16_f16, vcvtp_s16_f16,
16167 vcvtpq_s16_f16, vcvtp_u16_f16, vcvtpq_u16_f16, vneg_f16, vnegq_f16,
16168 vrecpe_f16, vrecpeq_f16, vrnd_f16, vrndq_f16, vrnda_f16, vrndaq_f16,
16169 vrndi_f16, vrndiq_f16, vrndm_f16, vrndmq_f16, vrndn_f16, vrndnq_f16,
16170 vrndp_f16, vrndpq_f16, vrndx_f16, vrndxq_f16, vrsqrte_f16, vrsqrteq_f16,
16171 vsqrt_f16, vsqrtq_f16): New.
16172
16173 2016-07-25 Jiong Wang <jiong.wang@arm.com>
16174
16175 * config/aarch64/aarch64-simd.md
16176 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Use VALL_F16.
16177 (aarch64_ext<mode>): Likewise.
16178 (aarch64_rev<REVERSE:rev_op><mode>): Likewise.
16179 * config/aarch64/aarch64.c (aarch64_evpc_trn, aarch64_evpc_uzp,
16180 aarch64_evpc_zip, aarch64_evpc_ext, aarch64_evpc_rev): Support V4HFmode
16181 and V8HFmode.
16182 * config/aarch64/arm_neon.h (__INTERLEAVE_LIST): Support float16x4_t,
16183 float16x8_t.
16184 (__aarch64_vdup_lane_f16, __aarch64_vdup_laneq_f16,
16185 __aarch64_vdupq_lane_f16, __aarch64_vdupq_laneq_f16, vbsl_f16,
16186 vbslq_f16, vdup_n_f16, vdupq_n_f16, vdup_lane_f16, vdup_laneq_f16,
16187 vdupq_lane_f16, vdupq_laneq_f16, vduph_lane_f16, vduph_laneq_f16,
16188 vext_f16, vextq_f16, vmov_n_f16, vmovq_n_f16, vrev64_f16, vrev64q_f16,
16189 vtrn1_f16, vtrn1q_f16, vtrn2_f16, vtrn2q_f16, vtrn_f16, vtrnq_f16,
16190 vuzp1_f16, vuzp1q_f16, vuzp2_f16, vuzp2q_f16, vzip1_f16, vzip2q_f16):
16191 New.
16192 (vmov_n_f16): Reimplement using vdup_n_f16.
16193 (vmovq_n_f16): Reimplement using vdupq_n_f16..
16194
16195 2016-07-25 Jiong Wang <jiong.wang@arm.com>
16196
16197 * config/aarch64/aarch64.c (aarch64_add_constant): New parameter
16198 "frame_related_p". Generate CFA annotation when it's necessary.
16199 (aarch64_expand_prologue): Use aarch64_add_constant.
16200 (aarch64_expand_epilogue): Likewise.
16201 (aarch64_output_mi_thunk): Pass "false" when calling
16202 aarch64_add_constant.
16203
16204 2016-07-25 Jiong Wang <jiong.wang@arm.com>
16205
16206 * config/aarch64/aarch64.c (aarch64_add_constant): Optimize instruction
16207 sequences.
16208
16209 2016-07-25 Jiong Wang <jiong.wang@arm.com>
16210
16211 * config/aarch64/aarch64.c (aarch64_add_constant): New parameter "mode".
16212 Use aarch64_internal_mov_immediate instead of aarch64_build_constant.
16213 (aarch64_output_mi_thunk): Pass Pmode when calling aarch64_add_constant.
16214 (aarch64_build_constant): Delete.
16215
16216 2016-07-25 Alexander Monakov <amonakov@ispras.ru>
16217
16218 Revert
16219 2016-07-20 Alexander Monakov <amonakov@ispras.ru>
16220
16221 * config/nvptx/nvptx.c (nvptx_option_override): Do not set
16222 flag_toplevel_reorder.
16223
16224 2016-07-25 Richard Biener <rguenther@suse.de>
16225
16226 * cgraph.c (cgraph_node::verify_node): Compare against builtin
16227 by using DECL_BUILT_IN_CLASS and DECL_FUNCTION_CODE.
16228 * tree-chkp.c (chkp_gimple_call_builtin_p): Likewise.
16229 * tree-streamer.h (streamer_handle_as_builtin_p): Remove.
16230 (streamer_get_builtin_tree): Likewise.
16231 (streamer_write_builtin): Likewise.
16232 * lto-streamer.h (LTO_builtin_decl): Remove.
16233 * lto-streamer-in.c (lto_read_tree_1): Remove assert.
16234 (lto_input_scc): Remove LTO_builtin_decl handling.
16235 (lto_input_tree_1): Liekwise.
16236 * lto-streamer-out.c (lto_output_tree_1): Remove special
16237 handling of builtins.
16238 (DFS::DFS): Likewise.
16239 * tree-streamer-in.c (streamer_get_builtin_tree): Remove.
16240 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Remove
16241 assert.
16242 (streamer_write_builtin): Remove.
16243
16244 2016-07-25 Martin Liska <mliska@suse.cz>
16245
16246 * lto-cgraph.c (input_symtab): Don't call get_working_sets
16247 if flag_auto_profile is set to true.
16248
16249 2016-07-25 Martin Liska <mliska@suse.cz>
16250
16251 PR gcov-profile/71868
16252 * cfgloopanal.c (expected_loop_iterations_unbounded): When we
16253 have a function with multiple latches, count them all.
16254
16255 2016-07-25 Martin Liska <mliska@suse.cz>
16256
16257 * tree-ssa-loop-niter.c (loop_only_exit_p): Release body array.
16258
16259 2016-07-25 Martin Liska <mliska@suse.cz>
16260
16261 PR tree-optimization/71987
16262 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Call get_ops
16263 just for SSA_NAMEs. Fix GNU coding style.
16264
16265 2016-07-25 Martin Liska <mliska@suse.cz>
16266
16267 PR gcov-profile/64874
16268 * gcov-io.h: Update command about file format.
16269 * gcov-iov.c (main): Adapt the numbering scheme.
16270
16271 2016-07-24 Kugan Vivekanandarajah <kuganv@linaro.org>
16272
16273 PR middle-end/66726
16274 * tree-ssa-reassoc.c (optimize_vec_cond_expr): Handle tcc_compare stmt
16275 whose result is used in PHI.
16276 (final_range_test_p): Likewise.
16277 (maybe_optimize_range_tests): Likewise.
16278
16279 2016-07-22 Michael Meissner <meissner@linux.vnet.ibm.com>
16280
16281 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
16282 Reformat two multi-line strings.
16283
16284 2016-07-22 Martin Sebor <msebor@redhat.com>
16285
16286 * doc/extend.texi (Compound Literals): Add '@' missed in last commit.
16287
16288 2016-07-22 Martin Sebor <msebor@redhat.com>
16289
16290 PR c/71560
16291 * doc/extend.texi (Compound Literals): Correct and clarify.
16292 (Cast to Union): Same.
16293
16294 2016-07-22 Kelvin Nilsen <kelvin@gcc.gnu.org>
16295
16296 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
16297 comments to explain why certain error messages make mention of
16298 undocumented options.
16299 (rs6000_invalid_builtin): Change error messages to replace mention
16300 of undocumented options with mention of the -mcpu=power9 option
16301 that enables those undocumented options.
16302 * config/rs6000/rs6000.h (MASK_FLOAT128): New macro.
16303 (RS6000_BTM_FLOAT128): Use the new MASK_FLOAT128 macro in the
16304 definition of this macro to correct an existing error.
16305 * config/rs6000/rs6000.opt: Add the Undocumented qualifier to the
16306 mpower9-fusion, mpower9-vector, mpower9-dform, and mmodulo entries.
16307 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Modify
16308 descriptions of built-in functions so that they depend on
16309 -mcpu=power9 instead of on the corresponding undocumented flags.
16310 * doc/invoke.texi (Option Summary): Remove all mention of newly
16311 undocumented flags.
16312 (IBM RS/6000 and PowerPC Options): Likewise.
16313 * doc/md.texi (Constraints for Particuliar Machines): Remove all
16314 mention of newly undocumented flags.
16315
16316 2016-07-22 Evgeny Stupachenko <evstupac@gmail.com>
16317
16318 * ipa-cp.c (determine_versionability): Do not create constprop clones,
16319 when target_clones attribute is set.
16320
16321 2016-07-22 Bin Cheng <bin.cheng@arm.com>
16322
16323 * common.opt (funsafe-loop-optimizations): Mark ignore.
16324 * doc/invoke.texi (funsafe-loop-optimizations): Remove.
16325 * loop-iv.c (get_simple_loop_desc): Remove unsafe-loop-optimizations
16326 related code.
16327 * tree-ssa-loop-niter.c (finite_loop_p): Ditto.
16328 * config/bfin/bfin.c (bfin_can_use_doloop_p): Ditto.
16329
16330 2016-07-22 Bin Cheng <bin.cheng@arm.com>
16331
16332 * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
16333 Parameter.
16334 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
16335 Parameter.
16336 (number_of_iterations_exit): Warn missed loop optimization for
16337 possible infinite loops.
16338
16339 2016-07-22 Segher Boessenkool <segher@kernel.crashing.org>
16340
16341 PR target/71216
16342 * config/rs6000/rs6000.c (rs6000_file_start): Fix condition for
16343 when to emit a ".machine" pseudo-op.
16344
16345 2016-07-22 Martin Liska <mliska@suse.cz>
16346
16347 PR gcov-profile/69028
16348 PR gcov-profile/62047
16349 * coverage.c (coverage_compute_lineno_checksum): Do not
16350 calculate checksum for fns w/o xloc.file.
16351 (coverage_compute_profile_id): Likewise.
16352
16353 2016-07-22 Georg-Johann Lay <avr@gjlay.de>
16354
16355 * config/avr/avr.c (TARGET_SECONDARY_RELOAD): Remove hook define...
16356 (avr_secondary_reload): ...and implementation.
16357 (avr_adjust_insn_length) [ADJUST_LEN_LPM]: Remove handling.
16358 * config/avr/avr.md (reload_in<mode>): Remove insns.
16359 (adjust_len) [lpm]: Remove insn attribute value.
16360 * config/avr/predicates.md (flash_operand): Remove insn predicate.
16361
16362 2016-07-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
16363
16364 PR middle-end/71876
16365 * builtin-attrs.def (ATTR_RT_NOTHROW_LEAF_LIST): New return twice
16366 attribute.
16367 * builtins.def (BUILT_IN_SETJMP): Use ATTR_RT_NOTHROW_LEAF_LIST here.
16368 * calls.c (special_function_p): Remove the special handling of the
16369 "__builtin_" prefix.
16370
16371 2016-07-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
16372
16373 PR middle-end/71876
16374 * calls.c (gimple_maybe_alloca_call_p): New function. Return true
16375 if STMT may be an alloca call.
16376 (gimple_alloca_call_p, alloca_call_p): Return only true for the
16377 builtin alloca call.
16378 * calls.h (gimple_maybe_alloca_call_p): New function.
16379 * tree-inline.c (inline_forbidden_p_stmt): Use
16380 gimple_maybe_alloca_call_p here.
16381
16382 2016-07-21 David Malcolm <dmalcolm@redhat.com>
16383
16384 * spellcheck-tree.c (best_macro_match::best_macro_match):
16385 Explictly specify the template arguments when invoking the base
16386 class constructor, to help older C++ compilers.
16387
16388 2016-07-21 Jakub Jelinek <jakub@redhat.com>
16389
16390 PR sanitizer/71953
16391 * asan.c (asan_dynamic_init_call): Call asan_init_shadow_ptr_types
16392 before builtin_decl_implicit.
16393
16394 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
16395
16396 * optabs.c (emit_condiitonal_move): Short circuit for identical
16397 sources.
16398
16399 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
16400
16401 * ifcvt.c (noce_if_info): New fields: speed_p, original_cost,
16402 max_seq_cost. Removed fields: then_cost, else_cost, branch_cost.
16403 (noce_conversion_profitable_p): New.
16404 (noce_try_store_flag_constants): Use it.
16405 (noce_try_addcc): Likewise.
16406 (noce_try_store_flag_mask): Likewise.
16407 (noce_try_cmove): Likewise.
16408 (noce_try_cmove_arith): Likewise.
16409 (bb_valid_for_noce_process_p): Add to the cost parameter rather than
16410 overwriting it.
16411 (noce_convert_multiple_sets): Move cost model to here, from...
16412 (bb_ok_for_noce_convert_multiple_sets) ...here.
16413 (noce_process_if_block): Update calls for above changes.
16414 (noce_find_if_block): Record new noce_if_info parameters.
16415
16416 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
16417
16418 * target.def (max_noce_ifcvt_seq_cost): New.
16419 * doc/tm.texi.in (TARGET_MAX_NOCE_IFCVT_SEQ_COST): Document it.
16420 * doc/tm.texi: Regenerate.
16421 * targhooks.h (default_max_noce_ifcvt_seq_cost): New.
16422 * targhooks.c (default_max_noce_ifcvt_seq_cost): New.
16423 * params.def (PARAM_MAX_RTL_IF_CONVERSION_PREDICTABLE_COST): New.
16424 (PARAM_MAX_RTL_IF_CONVERSION_UNPREDICTABLE_COST): Likewise.
16425 * doc/invoke.texi: Document new params.
16426
16427 2016-07-21 Richard Biener <rguenther@suse.de>
16428
16429 PR tree-optimization/71947
16430 * tree-vrp.c (extract_range_from_assert): Singleton symbolic
16431 ranges have useful limit_vr information.
16432
16433 2016-07-21 Richard Biener <rguenther@suse.de>
16434
16435 * function-tests.c (build_trivial_generic_function): Set
16436 BLOCK_SUPERCONTEXT of DECL_INITIAL.
16437 * omp-low.c (create_omp_child_function): Likewise.
16438 (grid_expand_target_grid_body): Likewise.
16439 * cgraphunit.c (init_lowered_empty_function): Likewise.
16440 (cgraph_node::expand_thunk): Likewise.
16441 * tree-parloops.c (create_loop_fn): Likewise.
16442 * ipa.c (cgraph_build_static_cdtor_1): Likewise.
16443
16444 2016-07-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16445
16446 * tree-ssa-strlen.c (strlen_dom_walker::before_dom_children): Fix typo
16447 in comment.
16448
16449 2016-07-21 Georg-Johann Lay <avr@gjlay.de>
16450
16451 * config/avr/avr.md (any_extract, any_shiftrt): New code iterators.
16452 (*insv.extract, *insv.shiftrt, *insv.not-bit.0, *insv.not-bit.7)
16453 (*insv.xor-extract, *insv.xor1-bit.0): New insns.
16454 (adjust_len) [insv_notbit, insv_notbit_0, insv_notbit_7]: New
16455 values for insn attribute.
16456 * config/avr/avr.c (avr_out_insert_notbit): New function.
16457 (avr_adjust_insn_length): Handle ADJUST_LEN_INSV_NOTBIT,
16458 ADJUST_LEN_INSV_NOTBIT_0/_7.
16459 * config/avr/avr-protos.h (avr_out_insert_notbit): New proto.
16460
16461 2016-07-21 Bin Cheng <bin.cheng@arm.com>
16462
16463 * tree-chrec.c (convert_affine_scev): New parameter. Pass new arg.
16464 (chrec_convert_1, chrec_convert): Ditto.
16465 * tree-chrec.h (chrec_convert, convert_affine_scev): New parameter.
16466 * tree-scalar-evolution.c (interpret_rhs_expr): Pass new arg.
16467 * tree-vrp.c (adjust_range_with_scev): Ditto.
16468 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): Ditto.
16469 (scev_var_range_cant_overflow): New function.
16470 (scev_probably_wraps_p): New parameter. Call above function.
16471 * tree-ssa-loop-niter.h (scev_probably_wraps_p): New parameter.
16472
16473 2016-07-21 Bin Cheng <bin.cheng@arm.com>
16474
16475 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Clean up
16476 by removing computation of may_be_zero.
16477
16478 2016-07-21 Jakub Jelinek <jakub@redhat.com>
16479
16480 * tree-object-size.c (unknown): Use HOST_WIDE_INT_M1U instead of -1.
16481
16482 2016-07-21 Andrew Sutton <andrew.n.sutton@gmail.com>
16483
16484 Improving concepts performance and diagnostics.
16485 * timevar.def (TV_CONSTRAINT_SAT, TV_CONSTRAINT_SUB): New time vars
16486 for constraint satisfaction and subsumption.
16487 * timevar.h (auto_timevar): New constructor that matches the push/pop
16488 pattern of usage in pt.c.
16489
16490 2016-07-20 Uros Bizjak <ubizjak@gmail.com>
16491
16492 * hwint.h (HOST_WIDE_INT_0): New define.
16493 (HOST_WIDE_INT_0U): Ditto.
16494 * double-int.c: Use HOST_WIDE_INT_0 instead of (HOST_WIDE_INT) 0.
16495 * dse.c: Use HOST_WIDE_INT_0U instead of (unsigned HOST_WIDE_INT) 0.
16496 * simplify-rtx.c: Ditto.
16497 * tree-object-size.c: Ditto.
16498
16499 2016-07-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16500
16501 * config/s390/s390.c (s390_encode_section_info): Remove mode size
16502 check.
16503
16504 2016-07-20 Uros Bizjak <ubizjak@gmail.com>
16505
16506 * cse.c: Use HOST_WIDE_INT_M1 instead of ~(HOST_WIDE_INT) 0.
16507 * combine.c: Use HOST_WIDE_INT_M1U instead of
16508 ~(unsigned HOST_WIDE_INT) 0.
16509 * double-int.h: Ditto.
16510 * dse.c: Ditto.
16511 * dwarf2asm.c:Ditto.
16512 * expmed.c: Ditto.
16513 * genmodes.c: Ditto.
16514 * match.pd: Ditto.
16515 * read-rtl.c: Ditto.
16516 * tree-ssa-loop-ivopts.c: Ditto.
16517 * tree-ssa-loop-prefetch.c: Ditto.
16518 * tree-vect-generic.c: Ditto.
16519 * tree-vect-patterns.c: Ditto.
16520 * tree.c: Ditto.
16521
16522 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
16523
16524 * config/avr.c (avr_legitimize_address) [AVR_TINY]: Force
16525 constant addresses outside [0,0xc0] into a register.
16526 (avr_out_movhi_r_mr_reg_no_disp_tiny): Pass insn. And handle
16527 cases where the base address register is unused after.
16528 (avr_out_movhi_r_mr_reg_disp_tiny): Same.
16529 (avr_out_movhi_mr_r_reg_disp_tiny): Same.
16530 (avr_out_store_psi_reg_disp_tiny): Same.
16531
16532 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
16533
16534 Implement attribute progmem on reduced Tiny cores by adding
16535 flash offset 0x4000 to respective symbols.
16536
16537 PR target/71948
16538 * doc/extend.texi (AVR Variable Attributes) [progmem]: Add
16539 documentation how it works on reduced Tiny cores.
16540 (AVR Named Address Spaces): No support for reduced Tiny.
16541 * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): New macro.
16542 (avr_address_tiny_pm_p): New static function.
16543 (avr_print_operand_address) [AVR_TINY]: Add AVR_TINY_PM_OFFSET
16544 if the address is in progmem.
16545 (avr_assemble_integer): Same.
16546 (avr_encode_section_info) [AVR_TINY]: Set AVR_SYMBOL_FLAG_TINY_PM
16547 for symbol_ref in progmem.
16548 * config/avr/avr.h (AVR_TINY_PM_OFFSET): New macro.
16549 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it instead of
16550 magic 0x4000 when built-in def'ing __AVR_TINY_PM_BASE_ADDRESS__.
16551
16552 2016-07-20 Patrick Palka <ppalka@gcc.gnu.org>
16553
16554 * configure.ac (thin_archive_support): New variable. AC_SUBST it.
16555 * configure: Regenerate.
16556 * Makefile.in (THIN_ARCHIVE_SUPPORT): New variable.
16557 (USE_THIN_ARCHIVES): New variable.
16558 (libbackend.a): If USE_THIN_ARCHIVES then pass T to ar to build
16559 this archive as a thin archive.
16560
16561 2016-07-20 David Malcolm <dmalcolm@redhat.com>
16562
16563 * diagnostic-show-locus.c (diagnostic_show_locus): If this is the
16564 same location as last time, don't skip if we have fix-it hints.
16565 Clarify the skipping logic by converting it from one "if" clause
16566 to repeated "if" clauses.
16567 * spellcheck-tree.c: Include "cpplib.h".
16568 (find_closest_macro_cpp_cb): Move here from c/c-decl.c.
16569 (best_macro_match::best_macro_match): New constructor.
16570 * spellcheck-tree.h (struct edit_distance_traits<cpp_hashnode *>):
16571 Move here from c/c-decl.c.
16572 (class best_macro_match): Move here from c/c-decl.c, converting
16573 from a typedef to a subclass, gaining a ctor.
16574
16575 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
16576
16577 * config/avr/avr-protos.h (avr_addr_space_supported_p): New prototype.
16578 * config/avr/avr.c (TARGET_ADDR_SPACE_DIAGNOSE_USAGE): New hook
16579 define...
16580 (avr_addr_space_diagnose_usage): ...and implementation.
16581 (avr_addr_space_supported_p): New function.
16582 (avr_nonconst_pointer_addrspace, avr_pgm_check_var_decl): Only
16583 report bad address space usage if that space is supported.
16584 (avr_insert_attributes): Same. No more complain about unsupported
16585 address spaces.
16586 * config/avr/avr-c.c (tm_p.h): Include it.
16587 (avr_cpu_cpp_builtins): Only define addr-space related built-in
16588 macro if avr_addr_space_supported_p.
16589
16590 2016-07-20 Alexander Monakov <amonakov@ispras.ru>
16591
16592 * config/nvptx/nvptx.c (nvptx_option_override): Do not set
16593 flag_toplevel_reorder.
16594
16595 2016-07-20 David Malcolm <dmalcolm@redhat.com>
16596
16597 * gcc-rich-location.c
16598 (gcc_rich_location::add_fixit_misspelled_id): New overload, taking
16599 a const char *.
16600 * gcc-rich-location.h
16601 (gcc_rich_location::add_fixit_misspelled_id): Likewise.
16602
16603 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
16604
16605 * target.def (addr_space): Add new diagnose_usage to hook vector.
16606 * targhooks.c (default_addr_space_diagnose_usage): Add default
16607 implementation and...
16608 * targhooks.h (default_addr_space_diagnose_usage): ... its prototype.
16609 * c/c-parser.c (c_lex_one_token) [CPP_NAME]: If the token
16610 is some address space, call targetm.addr_space.diagnose_usage.
16611 * doc/tm.texi.in (Named Address Spaces): Add anchor for
16612 TARGET_ADDR_SPACE_DIAGNOSE_USAGE documentation.
16613 * doc/tm.texi: Regenerate.
16614
16615 2016-07-20 Martin Liska <mliska@suse.cz>
16616
16617 PR middle-end/71898
16618 * graphite-isl-ast-to-gimple.c (later_of_the_two):
16619 Properly handly PHI stmts.
16620
16621 2016-07-20 Bin Cheng <bin.cheng@arm.com>
16622
16623 PR tree-optimization/71503
16624 PR tree-optimization/71683
16625 * tree-if-conv.c (gen_phi_arg_condition): Record true predicate
16626 and break.
16627
16628 2016-07-20 Martin Liska <mliska@suse.cz>
16629
16630 * doc/invoke.texi (-fipa-ra): Document when the option is
16631 disabled. Fix a typo.
16632
16633 2016-07-20 Martin Liska <mliska@suse.cz>
16634
16635 * Makefile.in: Include fibonacci_heap.c
16636 * fibonacci_heap.c: New file.
16637 * fibonacci_heap.h (fibonacci_heap::insert): Use insert_node.
16638 (fibonacci_heap::union_with): Fix deletion of the second heap.
16639 * selftest-run-tests.c (selftest::run_tests): Incorporate
16640 fibonacci heap tests.
16641 * selftest.h: Declare fibonacci_heap_c_tests.
16642
16643 2016-07-20 Martin Liska <mliska@suse.cz>
16644
16645 * selftest-run-tests.c (selftest::run_tests): New function.
16646 * selftest.h (sreal_c_tests): Declare.
16647 * sreal.c (sreal_verify_basics): New function.
16648 (verify_aritmetics): Likewise.
16649 (sreal_verify_arithmetics): Likewise.
16650 (verify_shifting): Likewise.
16651 (sreal_verify_shifting): Likewise.
16652 (void sreal_c_tests): Likewise.
16653
16654 2016-07-19 Jakub Jelinek <jakub@redhat.com>
16655
16656 PR rtl-optimization/71916
16657 * cfgrtl.c (contains_no_active_insn_p): Return false also for
16658 bb which have a single succ fake edge.
16659
16660 2016-07-19 Aldy Hernandez <aldyh@redhat.com>
16661
16662 PR debug/71855
16663 * dwarf2out.c (gen_subprogram_die): Only call
16664 gen_unspecified_parameters_die while dumping early dwarf.
16665
16666 2016-07-19 Jakub Jelinek <jakub@redhat.com>
16667
16668 PR middle-end/71874
16669 * gimple-fold.c (fold_builtin_memory_op): Use
16670 get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
16671
16672 2016-07-19 Uros Bizjak <ubizjak@gmail.com>
16673
16674 * builtins.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1,
16675 HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1,
16676 HOST_WIDE_INT_M1 instead of (HOST_WIDE_INT) -1 and
16677 HOST_WIDE_INT_M1U instead of (unsigned HOST_WIDE_INT) -1.
16678 * combine.c: Ditto.
16679 * cse.c: Ditto.
16680 * dojump.c: Ditto.
16681 * double-int.c: Ditto.
16682 * dse.c: Ditto.
16683 * dwarf2out.c: Ditto.
16684 * expmed.c: Ditto.
16685 * expr.c: Ditto.
16686 * fold-const.c: Ditto.
16687 * function.c: Ditto.
16688 * fwprop.c: Ditto.
16689 * genmodes.c: Ditto.
16690 * hwint.c: Ditto.
16691 * hwint.h: Ditto.
16692 * ifcvt.c: Ditto.
16693 * loop-doloop.c: Ditto.
16694 * loop-invariant.c: Ditto.
16695 * loop-iv.c: Ditto.
16696 * match.pd: Ditto.
16697 * optabs.c: Ditto.
16698 * real.c: Ditto.
16699 * reload.c: Ditto.
16700 * rtlanal.c: Ditto.
16701 * simplify-rtx.c: Ditto.
16702 * stor-layout.c: Ditto.
16703 * toplev.c: Ditto.
16704 * tree-ssa-loop-ivopts.c: Ditto.
16705 * tree-vect-generic.c: Ditto.
16706 * tree-vect-patterns.c: Ditto.
16707 * tree.c: Ditto.
16708 * tree.h: Ditto.
16709 * ubsan.c: Ditto.
16710 * varasm.c: Ditto.
16711 * wide-int-print.cc: Ditto.
16712 * wide-int.cc: Ditto.
16713 * wide-int.h: Ditto.
16714
16715 2016-07-19 David Malcolm <dmalcolm@redhat.com>
16716
16717 * selftest.c (selftest::assert_streq): Handle NULL values of
16718 val_actual and val_expected.
16719
16720 2016-07-19 Martin Jambor <mjambor@suse.cz>
16721
16722 PR fortran/71688
16723 * trans-decl.c (gfc_generate_function_code): Use cgraph_get_create_node
16724 rather than cgraph_create_node to get a call graph node.
16725
16726 2016-07-19 Richard Biener <rguenther@suse.de>
16727
16728 * gimple-fold.c (get_base_constructor): Add VIEW_CONVERT case,
16729 handle all tcc_constant bases and valueize SSA names.
16730 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Handle
16731 tcc_constant bases.
16732
16733 2016-07-19 David Malcolm <dmalcolm@redhat.com>
16734
16735 * function-tests.c (selftest::verify_three_block_rtl_cfg): Verify
16736 the flags of the exit block and bb2, not just the entry block.
16737
16738 2016-07-19 Richard Biener <rguenther@suse.de>
16739
16740 PR tree-optimization/71901
16741 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
16742 align member, group stuff with the bitfield.
16743 (vn_ref_op_align_unit): New inline.
16744 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): For ARRAY_REFs
16745 record element alignment and operand 3 unchanged.
16746 (ao_ref_init_from_vn_reference): Adjust.
16747 (valueize_refs_1): Likewise.
16748 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
16749
16750 2016-07-19 Richard Biener <rguenther@suse.de>
16751
16752 PR tree-optimization/71908
16753 * tree-ssa-structalias.c (get_constraint_for_component_ref): Handle
16754 symbolic constants in a more reliable way.
16755
16756 2016-07-19 Ilya Enkovich <ilya.enkovich@intel.com>
16757
16758 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Update
16759 comment.
16760 (vect_update_inits_of_drs): Likewise.
16761 (vect_create_cond_for_alias_checks): Likewise.
16762 * tree-vect-loop.c (vect_get_known_peeling_cost): Likewise.
16763
16764 2016-07-19 Richard Biener <rguenther@suse.de>
16765
16766 PR lto/71907
16767 * lto-streamer-out.c (DFS::DFS_write_tree_body): For blocks
16768 with an abstract origin that is not an inlined function outer
16769 scope add a self-reference as abstract origin.
16770 * tree-streamer-out.c (write_ts_block_tree_pointers): Likewise.
16771
16772 2016-07-18 Michael Meissner <meissner@linux.vnet.ibm.com>
16773
16774 PR target/71493
16775 * config/rs6000/rs6000.c (rs6000_function_value): Fix
16776 unintentional System V.4 structure return breakage for structures
16777 with a single floating point element.
16778
16779 2016-07-18 Yuri Rumyantsev <ysrumyan@gmail.com>
16780
16781 PR tree-optimization/71734
16782 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Add REF_LOOP argument which
16783 contains REF, use it to check safelen, assume that safelen value
16784 must be greater 1, fix style.
16785 (ref_indep_loop_p_2): Add REF_LOOP argument.
16786 (ref_indep_loop_p): Pass LOOP as additional argument to
16787 ref_indep_loop_p_2.
16788
16789 2016-07-18 Dominik Vogt <vogt@linux.vnet.ibm.com>
16790
16791 * cfgexpand.c (expand_stack_vars): Implement synamic stack space
16792 allocation in the prologue.
16793 * explow.c (get_dynamic_stack_base): New function to return an address
16794 expression for the dynamic stack base.
16795 (get_dynamic_stack_size): New function to do the required dynamic stack
16796 space size calculations.
16797 (allocate_dynamic_stack_space): Use new functions.
16798 (align_dynamic_address): Move some code from
16799 allocate_dynamic_stack_space to new function.
16800 * explow.h (get_dynamic_stack_base, get_dynamic_stack_size): Export.
16801
16802 2016-07-18 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16803
16804 * config/s390/s390.c (s390_encode_section_info): Always set
16805 notaligned marker if mode size is 0 or no MEM_ALIGN info could be
16806 found.
16807
16808 2016-07-18 Richard Biener <rguenther@suse.de>
16809
16810 PR tree-optimization/71893
16811 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Compensate
16812 for sizetype cast added by array_ref_element_size.
16813 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
16814
16815 2016-07-16 John David Anglin <danglin@gcc.gnu.org>
16816
16817 * config/pa/pa.c (hppa_profile_hook): Allocate stack space for
16818 register parameters. Remove code to initialize argument pointer
16819 on TARGET_64BIT. Optimize call to _mcount when it can be reached
16820 using a pc-relative branch. Cleanup conditional code.
16821 * config/pa/pa.md (call_mcount): New expander.
16822 (call_mcount_nonpic): New insn.
16823 (call_mcount_pic): New insn and split.
16824 (call_mcount_pic_post_reload): New insn.
16825 (call_mcount_64bit): New insn and split.
16826 (call_mcount_64bit_post_reload): New insn.
16827
16828 2016-07-15 Georg-Johann Lay <avr@gjlay.de>
16829
16830 * config/avr/predicates.md (const_m255_to_m1_operand): New.
16831 * config/avr/constraints.md (Cn8, Ca1, Co1, Yx2): New constraints.
16832 * config/avr/avr.md (add<mode>3) <ALL1>: Fix set_vzn for +/-2.
16833 (*cmphi.zero-extend.0, *cmphi.zero-extend.1)
16834 (*usum_widenqihi3, *udiff_widenqihi3)
16835 (*addhi3_zero_extend.const): New combiner insns.
16836 (andqi3, iorqi3): Provide "l" (NO_LD_REGS) alternative if
16837 just 1 bit is affected.
16838 * config/avr/avr.c (avr_out_bitop) <QImode>: Don't access xop[3].
16839 (avr_out_compare) [EQ,NE]: Tweak comparing d-regs against -1.
16840
16841 2016-07-15 Cesar Philippidis <cesar@codesourcery.com>
16842
16843 * omp-low.c (lower_omp_target): Mark data clauses with
16844 GOMP_MAP_FORCE_{PRESENT,TO,FROM,TOFROM} as potentially having
16845 zero-length subarrays.
16846
16847 2016-07-15 Richard Biener <rguenther@suse.de>
16848
16849 PR tree-optimization/71881
16850 * tree-loop-distribution.c (destroy_loop): Remove blocks in
16851 reverse DOM order to make debug temp generation happy.
16852
16853 2016-07-15 Richard Biener <rguenther@suse.de>
16854
16855 PR tree-optimization/71887
16856 * tree-ssa-phiopt.c (absorbing_element_p): Add rhs arg and
16857 verify it is not zero for division / modulo handling.
16858 (value_replacement): Adjust.
16859
16860 2016-07-15 Virendra Pathak <virendra.pathak@broadcom.com>
16861 Julian Brown <julian@codesourcery.com>
16862
16863 * config/aarch64/aarch64-cores.def: Update vulcan COSTS.
16864 * config/aarch64/aarch64-cost-tables.h
16865 (vulcan_extra_costs): New variable.
16866 * config/aarch64/aarch64.c
16867 (vulcan_addrcost_table): Likewise.
16868 (vulcan_regmove_cost): Likewise.
16869 (vulcan_vector_cost): Likewise.
16870 (vulcan_branch_cost): Likewise.
16871 (vulcan_tunings): Likewise.
16872
16873 2016-07-15 Alexander Monakov <amonakov@ispras.ru>
16874
16875 * cgraphunit.c (cgraph_order_sort_kind): New entry ORDER_VAR_UNDEF.
16876 (output_in_order): Loop over undefined variables too. Output them
16877 via assemble_undefined_decl. Skip variables that correspond to hard
16878 registers or have value-exprs.
16879 * varpool.c (symbol_table::output_variables): Handle undefined
16880 variables together with defined ones.
16881
16882 2016-07-15 Richard Biener <rguenther@suse.de>
16883
16884 * tree-ssa-pre.c (get_representative_for): Make sure to return
16885 the value number of SSA names.
16886 (phi_translate_1): get_representative_for cannot return NULL.
16887 (do_pre_regular_insertion): Remove redundant call to
16888 fully_constant_expression.
16889 (do_pre_partial_partial_insertion): Likewise.
16890
16891 2016-07-15 Bin Cheng <bin.cheng@arm.com>
16892
16893 * tree-scalar-evolution.c (simple_iv_with_niters): New funcion.
16894 (derive_simple_iv_with_niters): New function.
16895 (simple_iv): Rewrite using simple_iv_with_niters.
16896 * tree-scalar-evolution.h (simple_iv_with_niters): New decl.
16897 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
16898 function.
16899 (number_of_iterations_exit): Rewrite using above function.
16900 * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
16901 Decl.
16902
16903 2016-07-15 Richard Biener <rguenther@suse.de>
16904
16905 * config/i386/i386.c (ix86_builtin_vectorization_cost): Adjust
16906 vec_construct cost.
16907
16908 2016-07-14 Jakub Jelinek <jakub@redhat.com>
16909
16910 PR tree-optimization/71872
16911 * tree-data-ref.c (get_references_in_stmt): Ignore references
16912 with is_gimple_constant get_base_address.
16913
16914 2016-07-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
16915
16916 * config/arm/arm.h (TARGET_HAVE_LDACQ): Enable for ARMv8-M Mainline.
16917 (TARGET_HAVE_LDACQD): New macro.
16918 * config/arm/sync.md (atomic_loaddi): Use TARGET_HAVE_LDACQD rather
16919 than TARGET_HAVE_LDACQ.
16920 (arm_load_acquire_exclusivedi): Likewise.
16921 (arm_store_release_exclusivedi): Likewise.
16922
16923 2016-07-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
16924
16925 PR rtl-optimization/71878
16926 * lra-constraints.c (match_reload): Pass information about other
16927 output operands. Create new unique register value if matching input
16928 operand shares same register value as output operand being considered.
16929 (curr_insn_transform): Record output operands already processed.
16930
16931 2016-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16932
16933 PR target/65951
16934 PR tree-optimization/70923
16935 * tree-vect-patterns.c: Include mult-synthesis.h.
16936 (target_supports_mult_synth_alg): New function.
16937 (synth_lshift_by_additions): Likewise.
16938 (apply_binop_and_append_stmt): Likewise.
16939 (vect_synth_mult_by_constant): Likewise.
16940 (target_has_vecop_for_code): Likewise.
16941 (vect_recog_mult_pattern): Use above functions to synthesize vector
16942 multiplication by integer constants.
16943
16944 2016-07-14 Alan Modra <amodra@gmail.com>
16945
16946 * config/rs6000/altivec.md (altivec_mov<mode>): Disparage
16947 gpr alternatives. Correct '*' placement on Y,r alternative.
16948 Add '*' on operand 1 of r,r alternative.
16949
16950 2016-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16951
16952 * expmed.c (mult_variant, choose_mult_variant): Move declaration to...
16953 * expmed.h: ... Here.
16954
16955 2016-07-14 Jan Hubicka <hubicka@ucw.cz>
16956
16957 * gimple.h (stmt_can_terminate_bb_p): New function.
16958 * tree-cfg.c (need_fake_edge_p): Rename to ...
16959 (stmt_can_terminate_bb_p): ... this; return true if stmt can
16960 throw external; handle const and pure calls.
16961 * tree-ssa-loop-niter.c (loop_only_exit_p): Use it.
16962
16963 2016-07-14 Richard Biener <rguenther@suse.de>
16964
16965 PR tree-optimization/71866
16966 * tree-ssa-pre.c (get_constant_for_value_id): Remove.
16967 (do_hoist_insertion): Avoid endless recursion when we
16968 didn't insert anything because we managed to simplify
16969 things down to a constant or SSA name.
16970 (fully_constant_expression): Re-write in terms of ...
16971 * tree-ssa-sccvn.h (vn_nary_simplify): ... this. Declare.
16972 * tree-ssa-sccvn.c (vn_nary_simplify): New wrapper around
16973 vn_nary_build_or_lookup_1.
16974 (vn_nary_build_or_lookup_1): Added flag and renamed from ...
16975 (vn_nary_build_or_lookup): ... this which now wraps it.
16976
16977 2016-07-14 Alan Modra <amodra@gmail.com>
16978
16979 PR target/71733
16980 * config/rs6000/rs6000.c (rs6000_option_override_internal): Deal
16981 with p9_vector override before power9-dform override.
16982
16983 2016-07-13 Andi Kleen <ak@linux.intel.com>
16984
16985 * value-prof.c (gimple_value_profile_transformations): Don't run
16986 when auto_profile is on.
16987
16988 2016-07-13 Andi Kleen <ak@linux.intel.com>
16989
16990 * auto-profile.c (update_inlined_ind_target,
16991 afdo_indirect_call): Print information to dump file.
16992
16993 2016-07-13 Andrew Burgess <andrew.burgess@embecosm.com>
16994
16995 * genrecog.c (special_predicate_operand_p): New function.
16996 (predicate_name): Move function.
16997 (validate_pattern): Don't warn about missing mode for all
16998 define_special_predicate predicates.
16999
17000 2016-07-13 Bin Cheng <bin.cheng@arm.com>
17001
17002 * tree-vect-data-refs.c (vect_no_alias_p): New function.
17003 (vect_prune_runtime_alias_test_list): Call vect_no_alias_p to
17004 resolve alias checks which are known at compilation time.
17005 Truncate vector LOOP_VINFO_MAY_ALIAS_DDRS(loop_vinfo) if all
17006 alias checks are resolved. Move dump info for too many runtime
17007 alias checks to here...
17008 * tree-vect-loop.c (vect_analyze_loop_2): ...From here.
17009
17010 2016-07-13 Richard Biener <rguenther@suse.de>
17011
17012 PR tree-optimization/24574
17013 * tree-ssa-phiopt.c (absorbing_element_p): Pass in argument
17014 position and add shift, rotate, divison and modulo support
17015 for left zero.
17016 (value_replacement): Pass in argument position to absorbing_element_p.
17017
17018 2016-07-13 Ilya Enkovich <ilya.enkovich@intel.com>
17019
17020 PR ipa/71633
17021 * ipa-inline-transform.c (inline_call): Support
17022 instrumented thunks.
17023
17024 2016-07-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
17025
17026 * config/arm/arm.h (TARGET_HAVE_CBZ): Define.
17027 (TARGET_IDIV): Set for all Thumb targets provided they have hardware
17028 divide feature.
17029 * config/arm/arm.md (divsi3): New unpredicable alternative for ARMv8-M
17030 Baseline. Make initial alternative TARGET_32BIT only.
17031 (udivsi3): Likewise.
17032 * config/arm/thumb1.md (thumb1_cbz): New define_insn.
17033 * doc/sourcebuild.texi (arm_thumb1_cbz_ok): Document new effective
17034 target.
17035
17036 2016-07-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
17037
17038 * config/arm/arm.h (TARGET_HAVE_MOVT): Include ARMv8-M as having MOVT.
17039 * config/arm/arm.c (arm_arch_name): (const_ok_for_op): Check MOVT/MOVW
17040 availability with TARGET_HAVE_MOVT.
17041 (thumb_legitimate_constant_p): Strip the high part of a label_ref.
17042 (thumb1_rtx_costs): Also return 0 if setting a half word constant and
17043 MOVW is available and replace (unsigned HOST_WIDE_INT) INTVAL by
17044 UINTVAL.
17045 (thumb1_size_rtx_costs): Make set of half word constant also cost 1
17046 extra instruction if MOVW is available. Use a cost variable
17047 incremented by COSTS_N_INSNS (1) when the condition match rather than
17048 returning an arithmetic expression based on COSTS_N_INSNS. Make
17049 constant with bottom half word zero cost 2 instruction if MOVW is
17050 available.
17051 * config/arm/arm.md (define_attr "arch"): Add v8mb.
17052 (define_attr "arch_enabled"): Set to yes if arch value is v8mb and
17053 target is ARMv8-M Baseline.
17054 (arm_movt): New unpredicable alternative for ARMv8-M Baseline.
17055 (arm_movtas_ze): Likewise.
17056 * config/arm/thumb1.md (thumb1_movdi_insn): Add ARMv8-M Baseline only
17057 alternative for constants satisfying j constraint.
17058 (thumb1_movsi_insn): Likewise.
17059 (movsi splitter for K alternative): Tighten condition to not trigger
17060 if movt is available and j constraint is satisfied.
17061 (Pe immediate splitter): Likewise.
17062 (thumb1_movhi_insn): Add ARMv8-M Baseline only alternative for
17063 constant fitting in an halfword to use MOVW.
17064 * doc/sourcebuild.texi (arm_thumb1_movt_ok): Document new ARM
17065 effective target.
17066
17067 2016-07-13 Richard Biener <rguenther@suse.de>
17068
17069 PR middle-end/71104
17070 * gimplify.c (gimplify_modify_expr): Gimplify the RHS before
17071 gimplifying the LHS. Make sure to gimplify a returning twice
17072 call LHS without using SSA names.
17073
17074 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17075
17076 * tree-data-ref.c (find_data_references_in_stmt): Remove
17077 unnecessary call to vec::release.
17078 (graphite_find_data_references_in_stmt): Likewise.
17079 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Likewise.
17080 * tree-vect-stmts.c (vectorizable_condition): Likewise.
17081
17082 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17083
17084 * cfgexpand.c (expand_used_vars): Make the type of a local
17085 variable auto_vec.
17086 * genmatch.c (lower_for): Likewise.
17087 * haifa-sched.c (haifa_sched_init): Likewise.
17088 (add_to_speculative_block): Likewise.
17089 (create_check_block_twin): Likewise.
17090 * predict.c (handle_missing_profiles): Likewise.
17091 * tree-data-ref.c (loop_nest_has_data_refs): Likewise.
17092 * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Likewise.
17093 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
17094 Likewise.
17095 (maybe_lower_iteration_bound): Likewise.
17096 * tree-ssa-sccvn.c (DFS): Likewise.
17097 * tree-stdarg.c (reachable_at_most_once): Likewise.
17098 * tree-vect-stmts.c (vectorizable_conversion): Likewise.
17099 (vectorizable_store): Likewise.
17100
17101 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17102
17103 * tree-ssa-sccvn.c (sccvn_dom_walker::~sccvn_dom_walker): remove.
17104 (sccvn_dom_walker): make cond_stack an auto_vec.
17105
17106 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17107
17108 * ree.c (struct ext_state): Make type of members auto_vec.
17109 (find_and_remove_re): Adjust.
17110
17111 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17112
17113 * cfgexpand.c (struct stack_vars_data): Make type of fields
17114 auto_vec.
17115 (expand_used_vars): Adjust.
17116
17117 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17118
17119 * ipa.c (record_cdtor_fn): Adjust.
17120 (build_cdtor_fns): Likewise.
17121 (ipa_cdtor_merge): Make static_ctors and static_dtors local
17122 variables.
17123
17124 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17125
17126 * genextract.c (struct accum_extract): Add constructor and make
17127 members auto_vec.
17128 (gen_insn): Adjust.
17129
17130 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17131
17132 * tree.c (struct free_lang_data_d): Add constructor and change
17133 types of members to ones that automatically manage resources.
17134 (fld_worklist_push): Adjust.
17135 (find_decls_types): Likewise.
17136 (find_decls_types_in_eh_region): Likewise.
17137 (free_lang_data_in_cgraph): Stop manually creating and
17138 destroying members of free_lang_data_d.
17139
17140 2016-07-13 Uros Bizjak <ubizjak@gmail.com>
17141
17142 PR rtl-optimization/68961
17143 * config/i386/sse.md (movsd/movhpd to movupd peephole2s): Add new
17144 peephole variant. Use sse_reg_operand predicates.
17145
17146 2016-07-12 Uros Bizjak <ubizjak@gmail.com>
17147
17148 * config/i386/predicates.md (x86_64_immediate_operand)
17149 <case CONST_INT>: Remove unneeded truncation to DImode.
17150 <case CONST>: Ditto.
17151 (x86_64_zext_immediate_operand) <case CONST>: Ditto.
17152
17153 2016-07-12 Michael Meissner <meissner@linux.vnet.ibm.com>
17154
17155 PR target/71805
17156 * config/rs6000/altivec.md (altivec_vperm_<mode>_internal):
17157 The xxperm and xxpermr instructions require that the 2nd input
17158 operand overlap with the output operand, and not the 1st.
17159 (altivec_vperm_v8hiv16qi): Likewise.
17160 (altivec_vperm_<mode>_uns_internal): Likewise.
17161 (altivec_vpermr_<mode>_internal): Likewise.
17162 (vperm_v8hiv4si): Likewise.
17163 (vperm_v16qiv8hi): Likewise.
17164
17165 2016-07-12 Nathan Sidwell <nathan@acm.org>
17166
17167 * config/arm/arm.c (arm_option_override): Set MASK_SINGLE_PIC_BASE
17168 when -mno-pic-data-is-text-relative is in effect, by default.
17169 * doc/invoke.texi (mpic-data-is-text-relative): Document new
17170 behavior and clarify.
17171
17172 2016-07-12 Martin Liska <mliska@suse.cz>
17173
17174 * params.def: Add avg-loop niter.
17175 * tree-ssa-loop-ivopts.c (avg_loop_niter): Use the param.
17176 * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
17177 * doc/invoke.texi: Document the new parameter.
17178
17179 2016-07-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17180
17181 PR middle-end/71700
17182 * expr.c (store_constructor): Mask sign-extended bits when widening
17183 sub-word constructor element at the start of a word.
17184
17185 2016-07-12 Martin Liska <mliska@suse.cz>
17186
17187 * Makefile.in: Append rule for params-options.h.
17188 * params-options.h: New file.
17189
17190 2016-07-12 Martin Liska <mliska@suse.cz>
17191
17192 * ira-build.c (mark_loops_for_removal): Properly iterate
17193 loops.
17194
17195 2016-07-12 Steven Bosscher <steven@gcc.gnu.org>
17196 Richard Biener <rguenther@suse.de>
17197
17198 PR tree-optimization/23286
17199 PR tree-optimization/70159
17200 * doc/invoke.texi: Document -fcode-hoisting.
17201 * common.opt (fcode-hoisting): New flag.
17202 * opts.c (default_options_table): Enable -fcode-hoisting at -O2+.
17203 * tree-ssa-pre.c (pre_stats): Add hoist_insert.
17204 (do_regular_insertion): Rename to ...
17205 (do_pre_regular_insertion): ... this and amend general comments
17206 on insertion strathegy.
17207 (do_partial_partial_insertion): Rename to ...
17208 (do_pre_partial_partial_insertion): ... this.
17209 (do_hoist_insertion): New function.
17210 (insert_aux): Take flags on whether to do PRE and/or hoist insertion
17211 and call do_hoist_insertion properly.
17212 (insert): Adjust.
17213 (pass_pre::gate): Enable also if -fcode-hoisting is enabled.
17214 (pass_pre::execute): Register hoist_insert stats.
17215
17216 2016-07-12 Jakub Jelinek <jakub@redhat.com>
17217
17218 PR middle-end/71716
17219 * gimple-fold.c (optimize_atomic_compare_exchange_p): Return false
17220 for SCALAR_FLOAT_TYPE_P type of expected var, or if TYPE_PRECISION
17221 is different from mode's bitsize. Small cleanup.
17222
17223 2016-07-12 Richard Biener <rguenther@suse.de>
17224
17225 PR rtl-optimization/68961
17226 * fwprop.c (propagate_rtx): Allow SUBREGs of VEC_CONCAT and CONCAT
17227 to simplify to a non-constant.
17228
17229 2016-07-11 Jakub Jelinek <jakub@redhat.com>
17230
17231 PR middle-end/71758
17232 * omp-low.c (expand_omp_target): Gimplify device.
17233
17234 PR tree-optimization/71823
17235 * tree-vect-stmts.c (vectorizable_operation): Use vect_get_vec_defs
17236 to get vec_oprnds2 from op2.
17237
17238 2016-07-11 Uros Bizjak <ubizjak@gmail.com>
17239
17240 * config/i386/predicates.md (x86_64_immediate_operand) <case CONST>:
17241 Hoist common subexpressions.
17242 (x86_64_zext_immediate_operand) <case CONST>: Ditto.
17243
17244 2016-07-11 Pat Haugen <pthaugen@us.ibm.com>
17245
17246 PR target/71800
17247 * config/rs6000/rs6000.md (stfiwx): Change constraint to 'wu' to
17248 prevent generation of 'stxsiwx' on pre Power8 hardware.
17249
17250 2016-07-11 David Malcolm <dmalcolm@redhat.com>
17251
17252 * input.c: Include cpplib.h.
17253 (selftest::temp_source_file): New class.
17254 (selftest::temp_source_file::temp_source_file): New ctor.
17255 (selftest::temp_source_file::~temp_source_file): New dtor.
17256 (selftest::should_have_column_data_p): New function.
17257 (selftest::test_should_have_column_data_p): New function.
17258 (selftest::temp_line_table): New class.
17259 (selftest::temp_line_table::temp_line_table): New ctor.
17260 (selftest::temp_line_table::~temp_line_table): New dtor.
17261 (selftest::test_accessing_ordinary_linemaps): Add case_ param; use
17262 it to create a temp_line_table.
17263 (selftest::assert_loceq): Only verify LOCATION_COLUMN for
17264 locations that are known to have column data.
17265 (selftest::line_table_case): New struct.
17266 (selftest::test_reading_source_line): Move tempfile handling
17267 to class temp_source_file.
17268 (ASSERT_TOKEN_AS_TEXT_EQ): New macro.
17269 (selftest::assert_token_loc_eq): New function.
17270 (ASSERT_TOKEN_LOC_EQ): New macro.
17271 (selftest::test_lexer): New function.
17272 (selftest::boundary_locations): New array.
17273 (selftest::input_c_tests): Call test_should_have_column_data_p.
17274 Loop over a test matrix of interesting values of location and
17275 default_range_bits, calling test_lexer on each case in the matrix.
17276 Move call to test_accessing_ordinary_linemaps into the matrix.
17277 * selftest.h (ASSERT_EQ): Reimplement in terms of...
17278 (ASSERT_EQ_AT): New macro.
17279
17280 2016-07-11 H.J. Lu <hongjiu.lu@intel.com>
17281
17282 PR target/71801
17283 * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
17284 Don't convert TImode in debug insn.
17285
17286 2016-07-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
17287
17288 Convert TYPE_ALIGN_OK to a TYPE_LANG_FLAG.
17289 * tree-core.h (tree_base::nothrow_flag): Adjust comment.
17290 (tree_type_common::lang_flag_7): New.
17291 (tree_type_common::spare): Reduce size.
17292 * tree.h (TYPE_ALIGN_OK): Remove.
17293 (TYPE_LANG_FLAG_7): New.
17294 (get_inner_reference): Adjust header.
17295 * print-tree.c (print_node): Adjust.
17296 * expr.c (get_inner_reference): Remove parameter keep_aligning.
17297 (get_bit_range, expand_assignment, expand_expr_addr_expr_1): Adjust
17298 calls to get_inner_reference.
17299 (expand_expr_real_1): Adjust call to get_inner_reference. Remove
17300 handling of TYPE_ALIGN_OK.
17301 * builtins.c (get_object_alignment_2): Adjust call to
17302 get_inner_reference. Remove handling of VIEW_CONVERT_EXPR.
17303 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove handling of
17304 TYPE_ALIGN_OK.
17305 * asan.c (instrument_derefs): Adjust calls to get_inner_reference.
17306 * cfgexpand.c (expand_debug_expr): Likewise.
17307 * dbxout.c (dbxout_expand_expr): Likewise.
17308 * dwarf2out.c (loc_list_for_address_of_addr_expr_of_indirect_ref,
17309 loc_list_from_tree, fortran_common): Likewise.
17310 * fold-const.c (optimize_bit_field_compare,
17311 decode_field_reference, fold_unary_loc, fold_comparison,
17312 split_address_to_core_and_offset): Likewise.
17313 * gimple-laddress.c (execute): Likewise.
17314 * gimple-ssa-strength-reduction.c (slsr_process_ref): Likewise.
17315 * gimplify.c (gimplify_scan_omp_clauses): Likewise.
17316 * hsa-gen.c (gen_hsa_addr): Likewise.
17317 * simplifx-rtx.c (delegitimize_mem_from_attrs): Likewise.
17318 * tsan.c (instrument_expr): Likewise.
17319 * ubsan.c (instrument_bool_enum_load, instrument_object_size): Likewise.
17320 * tree.c (verify_type_variant): Remove handling of TYPE_ALIGN_OK.
17321 * tree-affine.c (tree_to_aff_combination,
17322 get_inner_reference_aff): Adjust calls to get_inner_reference.
17323 * tree-data-ref.c (split_constant_offset_1,
17324 dr_analyze_innermost): Likewise.
17325 * tree-scalar-evolution.c (interpret_rhs_expr): Likewise.
17326 * tree-sra.c (ipa_sra_check_caller): Likewise.
17327 * tree-ssa-loop-ivopts.c (split_address_cost): Likewise.
17328 * tree-ssa-math-opts.c (find_bswap_or_nop_load,
17329 bswap_replace): Likewise.
17330 * tree-vect-data-refs.c (vect_check_gather,
17331 vect_analyze_data_refs): Likewise.
17332 * config/mips/mips.c (r10k_safe_mem_expr_p): Likewise.
17333 * config/pa/pa.c (pa_emit_move_sequence): Remove handling of
17334 TYPE_ALIGN_OK.
17335
17336 2016-07-11 David Malcolm <dmalcolm@redhat.com>
17337
17338 * Makefile.in (selftest-valgrind): New phony target.
17339 * function-tests.c (selftest::build_cfg): Delete pass instances
17340 created by the test.
17341 (selftest::convert_to_ssa): Likewise.
17342 (selftest::test_expansion_to_rtl): Likewise.
17343 * tree-cfg.c (selftest::test_linear_chain): Release dominator
17344 vectors.
17345 (selftest::test_diamond): Likewise.
17346
17347 2016-07-11 Richard Biener <rguenther@suse.de>
17348
17349 PR tree-optimization/71816
17350 * tree-ssa-pre.c (compute_avail): Adjust alignment of ref rather
17351 than replacing all of its operands.
17352
17353 2016-07-11 Alan Modra <amodra@gmail.com>
17354
17355 * config/rs6000/rs6000.md (UNSPEC_DOLOOP): New unspec.
17356 (ctr<mode>): Add unspec.
17357 (ctr<mode>_internal*): Likewise.
17358
17359 2016-07-08 James Bowman <james.bowman@ftdichip.com>
17360
17361 * config/ft32/ft32.c (ft32_elf_encode_section_info): New function.
17362 * config/ft32/ft32.h (ASM_OUTPUT_SYMBOL_REF): New function.
17363
17364 2016-07-08 Vladimir Makarov <vmakarov@redhat.com>
17365
17366 PR rtl-optimization/71621
17367 * lra-constraints.c (process_alt_operands): Check combination of
17368 reg class and mode.
17369
17370 2016-07-08 Jason Merrill <jason@redhat.com>
17371 Richard Biener <rguenther@suse.de>
17372
17373 P0145: Refining Expression Order for C++.
17374 * gimplify.c (initial_rhs_predicate_for): New.
17375 (gimplfy_modify_expr): Gimplify RHS before LHS.
17376
17377 2016-07-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17378
17379 PR target/71297
17380 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
17381 Allow standard error handling to take over when a wrong number
17382 of arguments is presented to __builtin_vec_ld () or
17383 __builtin_vec_st ().
17384
17385 2016-07-08 Jiong Wang <jiong.wang@arm.com>
17386
17387 * config/aarch64/aarch64-simd-builtins.def (smax): Remove float
17388 variants.
17389 (smin): Likewise.
17390 (fmax): New entry.
17391 (fmin): Likewise.
17392 * config/aarch64/arm_neon.h (vmaxnm_f32): Use
17393 __builtin_aarch64_fmaxv2sf.
17394 (vmaxnmq_f32): Likewise.
17395 (vmaxnmq_f64): Likewise.
17396 (vminnm_f32): Likewise.
17397 (vminnmq_f32): Likewise.
17398 (vminnmq_f64): Likewise.
17399
17400 2016-07-08 Michael Meissner <meissner@linux.vnet.ibm.com>
17401
17402 PR target/71806
17403 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Do not
17404 enable -mfloat128-hardware by default.
17405 (ISA_3_0_MASKS_IEEE): New macro to give all of the VSX options
17406 that IEEE 128-bit hardware support needs.
17407 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
17408 -mcpu=power9 -mfloat128, enable -mfloat128-hardware by default.
17409 Use ISA_3_0_MASKS_IEEE as the set of options that IEEE 128-bit
17410 floating point requires.
17411 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
17412 -mfloat128 and -mfloat128-hardware changes.
17413
17414 2016-07-08 Alan Hayward <alan.hayward@arm.com>
17415
17416 PR tree-optimization/71667
17417 * tree-vect-loop.c (vectorizable_live_operation): ignore DEBUG stmts
17418
17419 2016-07-08 Martin Liska <mliska@suse.cz>
17420
17421 PR middle-end/71606
17422 * fold-const.c (fold_convertible_p): As COMPLEX_TYPE
17423 folding produces SAVE_EXPRs, thus return false for the type.
17424
17425 2016-07-07 Martin Liska <mliska@suse.cz>
17426
17427 * file-find.c (remove_prefix): New function.
17428 * file-find.h (remove_prefix): Declare the function.
17429 * gcc-ar.c (main): Skip a folder of the wrapper if
17430 a wrapped binary would point to the same file.
17431
17432 2016-07-07 Jan Hubicka <jh@suse.cz>
17433
17434 * tree-scalar-evolution.c (iv_can_overflow_p): export.
17435 * tree-scalar-evolution.h (iv_can_overflow_p): Declare.
17436 * tree-ssa-loop-ivopts.c (alloc_iv): Use it.
17437
17438 2016-07-07 Ilya Enkovich <ilya.enkovich@intel.com>
17439
17440 PR ipa/71624
17441 * ipa-inline-analysis.c (compute_inline_parameters): Set
17442 local.can_change_signature to false for intrumentation
17443 thunk callees.
17444
17445 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
17446
17447 * config/arm/arm.h (TARGET_USE_MOVT): Check MOVT/MOVW availability
17448 with TARGET_HAVE_MOVT.
17449 (TARGET_HAVE_MOVT): Define.
17450 * config/arm/arm.c (const_ok_for_op): Check MOVT/MOVW
17451 availability with TARGET_HAVE_MOVT.
17452 * config/arm/arm.md (arm_movt): Use TARGET_HAVE_MOVT to check MOVT
17453 availability.
17454 (addsi splitter): Use TARGET_THUMB && TARGET_HAVE_MOVT rather than
17455 TARGET_THUMB2.
17456 (symbol_refs movsi splitter): Remove TARGET_32BIT check.
17457 (arm_movtas_ze): Use TARGET_HAVE_MOVT to check MOVT availability.
17458 * config/arm/constraints.md (define_constraint "j"): Use
17459 TARGET_HAVE_MOVT to check MOVT availability.
17460
17461 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
17462
17463 * config/arm/arm-protos.h: Reindent FL_FOR_* macro definitions.
17464
17465 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
17466
17467 * config/arm/arm-arches.def (armv8-m.base): Define new architecture.
17468 (armv8-m.main): Likewise.
17469 (armv8-m.main+dsp): Likewise.
17470 * config/arm/arm-protos.h (FL_FOR_ARCH8M_BASE): Define.
17471 (FL_FOR_ARCH8M_MAIN): Likewise.
17472 * config/arm/arm-tables.opt: Regenerate.
17473 * config/arm/bpabi.h: Add armv8-m.base, armv8-m.main and
17474 armv8-m.main+dsp to BE8_LINK_SPEC.
17475 * config/arm/arm.h (TARGET_HAVE_LDACQ): Exclude ARMv8-M.
17476 (enum base_architecture): Add BASE_ARCH_8M_BASE and BASE_ARCH_8M_MAIN.
17477 * config/arm/arm.c (arm_arch_name): Increase size to work with ARMv8-M
17478 Baseline and Mainline.
17479 (arm_option_override_internal): Also disable arm_restrict_it when
17480 !arm_arch_notm. Update comment for -munaligned-access to also cover
17481 ARMv8-M Baseline.
17482 (arm_file_start): Increase buffer size for printing architecture name.
17483 * doc/invoke.texi: Document architectures armv8-m.base, armv8-m.main
17484 and armv8-m.main+dsp.
17485 (mno-unaligned-access): Clarify that this is disabled by default for
17486 ARMv8-M Baseline architectures as well.
17487
17488 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
17489
17490 * config/arm/elf.h: Use __ARM_ARCH_ISA_THUMB and __ARM_ARCH_ISA_ARM to
17491 decide whether to prevent some libgcc routines being included for some
17492 multilibs rather than __ARM_ARCH_6M__ and add comment to indicate the
17493 link between this condition and the one in
17494 libgcc/config/arm/lib1func.S.
17495
17496 2016-07-07 Richard Biener <rguenther@suse.de>
17497
17498 * tree-ssa-pre.c: Include alias.h.
17499 (compute_avail): If we have multiple VN_REFERENCEs with the
17500 same hashtable entry adjust that to make it a valid replacement
17501 for all of them with respect to alignment and aliasing
17502 when doing insertion.
17503 * tree-ssa-sccvn.h (vn_reference_operands_for_lookup): Declare.
17504 * tree-ssa-sccvn.c (vn_reference_operands_for_lookup): New function.
17505
17506 2016-07-06 Segher Boessenkool <segher@kernel.crashing.org>
17507
17508 PR target/70098
17509 PR target/71763
17510 * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
17511 *ctr<mode>_internal5, *ctr<mode>_internal6): Add *wi to the output
17512 constraint.
17513
17514 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17515
17516 * var-tracking.c (struct adjust_mem_data): Make side_effects a vector.
17517 (adjust_mems): Adjust.
17518 (adjust_insn): Likewise.
17519 (prepare_call_arguments): Likewise.
17520
17521 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17522
17523 * gcse.c (struct ls_expr): Make stores field a vector.
17524 (ldst_entry): Adjust.
17525 (free_ldst_entry): Likewise.
17526 (print_ldst_list): Likewise.
17527 (compute_ld_motion_mems): Likewise.
17528 (update_ld_motion_stores): Likewise.
17529
17530 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17531
17532 * gcse.c (struct ls_expr): Remove loads field.
17533 (ldst_entry): Adjust.
17534 (free_ldst_entry): Likewise.
17535 (print_ldst_list): Likewise.
17536 (compute_ld_motion_mems): Likewise.
17537
17538 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17539
17540 * store-motion.c (struct st_expr): Make antic_stores a vector.
17541 (st_expr_entry): Adjust.
17542 (free_st_expr_entry): Likewise.
17543 (print_store_motion_mems): Likewise.
17544 (find_moveable_store): Likewise.
17545 (compute_store_table): Likewise.
17546 (remove_reachable_equiv_notes): Likewise.
17547 (replace_store_insn): Likewise.
17548 (build_store_vectors): Likewise.
17549
17550 2016-07-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17551
17552 * config/arm/driver-arm.c (arm_cpu_table): Add entries for cortex-a32,
17553 cortex-a35, cortex-a53, cortex-a57, cortex-a72, cortex-a73.
17554
17555 2016-07-06 Yuri Rumyantsev <ysrumyan@gmail.com>
17556
17557 PR tree-optimization/71518
17558 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust
17559 misalign also for outer loops with negative step.
17560
17561 2016-07-06 Wilco Dijkstra <wdijkstr@arm.com>
17562
17563 * config/arm/cortex-a53.md: Use final_presence_set for in-order.
17564 (cortex_a53_shift): Add mov_shift.
17565 (cortex_a53_shift_reg): Add new reservation for register shifts.
17566 (cortex_a53_alu): Remove bfm.
17567 (cortex_a53_alu_shift): Add bfm, remove mov_shift.
17568 (cortex_a53_alu_extr): Add new reservation for EXTR.
17569 (bypasses): Improve bypass modelling.
17570
17571 2016-07-06 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
17572
17573 PR target/50739
17574 * config/avr/avr.c (avr_asm_select_section): Strip off
17575 SECTION_DECLARED from flags when calling get_section.
17576
17577 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
17578
17579 * tree-vectorizer.h (vect_memory_access_type): Add
17580 VMAT_INVARIANT, VMAT_CONTIGUOUS_DOWN and VMAT_CONTIGUOUS_REVERSED.
17581 * tree-vect-stmts.c (compare_step_with_zero): New function.
17582 (perm_mask_for_reverse): Move further up file.
17583 (get_group_load_store_type): Stick to VMAT_ELEMENTWISE if the
17584 step is negative.
17585 (get_negative_load_store_type): New function.
17586 (get_load_store_type): Call it. Add an ncopies argument.
17587 (vectorizable_mask_load_store): Update call accordingly and
17588 remove tests for negative steps.
17589 (vectorizable_store, vectorizable_load): Likewise. Handle new
17590 memory_access_types.
17591
17592 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
17593
17594 * tree-vectorizer.h (vect_memory_access_type): New enum.
17595 (_stmt_vec_info): Add a memory_access_type field.
17596 (STMT_VINFO_MEMORY_ACCESS_TYPE): New macro.
17597 (vect_model_store_cost): Take an access type instead of a boolean.
17598 (vect_model_load_cost): Likewise.
17599 * tree-vect-slp.c (vect_analyze_slp_cost_1): Update calls to
17600 vect_model_store_cost and vect_model_load_cost.
17601 * tree-vect-stmts.c (vec_load_store_type): New enum.
17602 (vect_model_store_cost): Take an access type instead of a
17603 store_lanes_p boolean. Simplify tests.
17604 (vect_model_load_cost): Likewise, but for load_lanes_p.
17605 (get_group_load_store_type, get_load_store_type): New functions.
17606 (vectorizable_store): Use get_load_store_type. Record the access
17607 type in STMT_VINFO_MEMORY_ACCESS_TYPE.
17608 (vectorizable_load): Likewise.
17609 (vectorizable_mask_load_store): Likewise. Replace is_store
17610 variable with vls_type.
17611
17612 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
17613
17614 * tree-vectorizer.h (vect_grouped_load_supported): Add a
17615 single_element_p parameter.
17616 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
17617 Check the PR65518 case here rather than in vectorizable_load.
17618 * tree-vect-loop.c (vect_analyze_loop_2): Update call accordignly.
17619 * tree-vect-stmts.c (vectorizable_load): Likewise.
17620
17621 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
17622
17623 * tree-vectorizer.h (gather_scatter_info): New structure.
17624 (vect_check_gather_scatter): Return a bool rather than a decl.
17625 Replace return-by-pointer arguments with a single
17626 gather_scatter_info *.
17627 * tree-vect-data-refs.c (vect_check_gather_scatter): Likewise.
17628 (vect_analyze_data_refs): Update call accordingly.
17629 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
17630 (vectorizable_mask_load_store): Likewise. Also record the
17631 offset dt and vectype in the gather_scatter_info.
17632 (vectorizable_store): Likewise.
17633 (vectorizable_load): Likewise.
17634
17635 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
17636
17637 * tree-vect-stmts.c (vect_model_store_cost): For non-SLP
17638 strided groups, use the cost of N scalar accesses instead
17639 of ncopies vector accesses.
17640 (vect_model_load_cost): Likewise.
17641
17642 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
17643
17644 * tree-vect-stmts.c (vect_cost_group_size): Delete.
17645 (vect_model_store_cost): Avoid calling it. Use first_stmt_p
17646 variable to indicate when once-per-group costs are being used.
17647 (vect_model_load_cost): Likewise. Fix comment and misindented code.
17648
17649 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
17650
17651 * tree-vect-stmts.c (vectorizable_load): Remove unnecessary
17652 peeling-for-gaps condition.
17653
17654 2016-07-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17655
17656 * config/s390/s390.c (s390_expand_vec_init): Force initializer
17657 element to register if it doesn't match general_operand.
17658
17659 2016-07-05 Michael Meissner <meissner@linux.vnet.ibm.com>
17660 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17661
17662 * config/rs6000/rs6000-protos.h (rs6000_split_signbit): New
17663 prototype.
17664 * config/rs6000/rs6000.c (rs6000_split_signbit): New function.
17665 * config/rs6000/rs6000.md (UNSPEC_SIGNBIT): New constant.
17666 (SIGNBIT): New mode iterator.
17667 (Fsignbit): New mode attribute.
17668 (signbit<mode>2): Change operand1 to match FLOAT128 instead of
17669 IBM128; dispatch to gen_signbit{kf,tf}2_dm for __float128
17670 when direct moves are available.
17671 (signbit<mode>2_dm): New define_insn_and_split).
17672 (signbit<mode>2_dm2): New define_insn.
17673
17674 2016-07-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17675
17676 PR rtl-optimization/71594
17677 * ifcvt.c (noce_convert_multiple_sets): Wrap new_val or old_val
17678 into subregs of appropriate mode before trying to emit a conditional
17679 move.
17680
17681 2016-07-05 Jan Hubicka <jh@suse.cz>
17682
17683 * tree-scalar-evolution.c (iv_can_overflow_p): New function.
17684 (simple_iv): Use it.
17685
17686 2016-07-05 Jan Hubicka <jh@suse.cz>
17687
17688 * tree-ssa-loop-niter.c (nowrap_type_p): Use ANY_INTEGRAL_TYPE_P.
17689
17690 2016-07-05 Jiong Wang <jiong.wang@arm.com>
17691
17692 * lra-constraints.c (process_alt_operands): Don't add spilling cost for
17693 "offmemok".
17694
17695 2016-07-05 Jan Hubicka <jh@suse.cz>
17696
17697 * tree-scalar-evoluiton.c (simple_iv): Use nowrap_type to check if
17698 IV can overflow.
17699
17700 2016-07-05 Richard Biener <rguenther@suse.de>
17701
17702 * gimple-ssa-split-paths.c (find_block_to_duplicate_for_splitting_pa):
17703 Handle empty else block.
17704 (is_feasible_trace): Likewise.
17705 (split_paths): Likewise.
17706
17707 2016-07-05 Richard Biener <rguenther@suse.de>
17708
17709 * tree-loop-distribution.c (distribute_loop): Fix issue with
17710 the cost model loop.
17711
17712 2016-07-05 Christophe Lyon <christophe.lyon@linaro.org>
17713
17714 * config/arm/neon-testgen.ml: Delete.
17715 * config/arm/neon.ml: Delete.
17716
17717 2016-07-04 Jakub Jelinek <jakub@redhat.com>
17718
17719 PR c++/71739
17720 * tree.c (attribute_value_equal): Use get_attribute_name instead of
17721 directly using TREE_PURPOSE.
17722
17723 2016-07-04 Jiong Wang <jiong.wang@arm.com>
17724
17725 * config/aarch64/aarch64.h: Rename "ARMv8.1" to "ARMv8.1-A".
17726 * config/aarch64/aarch64_neon.h: Likewise.
17727 * config/aarch64/arm_neon.h: Likewise.
17728 * config/aarch64/atomics.md: Likewise.
17729 * config/aarch64/aarch64-simd-builtins.def: Likewise.
17730 * doc/invoke.texi: Likewise.
17731
17732 2016-07-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
17733
17734 * config/s390/s390.md: Add "z13" cpu_facility.
17735 ("*mov<mode>cc"): Add support for z13 instructions lochi and locghi.
17736 * config/s390/predicates.md ("loc_operand"): New predicate for "load on
17737 condition" type instructions.
17738
17739 2016-07-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
17740 Jeff Law <law@redhat.com>
17741
17742 * explow.c (allocate_dynamic_stack_space): Simplify knowing that
17743 MUST_ALIGN was always true and extra_align ist always BITS_PER_UNIT.
17744
17745 2016-07-04 Yuri Rumyantsev <ysrumyan@gmail.com>
17746
17747 * config/i386/i386.c (ix86_expand_vec_perm): Add handle one-operand
17748 permutation for TARGET_AVX512F.
17749 (ix86_expand_vec_one_operand_perm_avx512): New function.
17750 (expand_vec_perm_1): Invoke introduced function.
17751 * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
17752 it may be not valid after vectorization.
17753
17754 2016-07-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17755
17756 PR target/63874
17757 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix
17758 typo in comment. Only force to memory if it is a weak
17759 external reference.
17760
17761 2016-07-04 Matthew Wahab <matthew.wahab@arm.com>
17762 Jiong Wang <jiong.wang@arm.com>
17763
17764 * config/aarch64/aarch64-arches.def: Add "armv8.2-a".
17765 * config/aarch64/aarch64.h (AARCH64_FL_V8_2): New.
17766 (AARCH64_FL_F16): New.
17767 (AARCH64_FL_FOR_ARCH8_2): New.
17768 (AARCH64_ISA_8_2): New.
17769 (AARCH64_ISA_F16): New.
17770 (TARGET_FP_F16INST): New.
17771 (TARGET_SIMD_F16INST): New.
17772 * config/aarch64/aarch64-option-extensions.def ("fp16"): New entry.
17773 ("fp"): Disabling "fp" also disables "fp16".
17774 * config/aarch64/aarch64-c.c (arch64_update_cpp_builtins):
17775 Conditionally define __ARM_FEATURE_FP16_SCALAR_ARITHMETIC
17776 and __ARM_FEATURE_FP16_VECTOR_ARITHMETIC.
17777 * doc/invoke.texi (AArch64 Options): Document "armv8.2-a" and "fp16".
17778
17779 2016-07-04 Jan Beulich <jbeulich@suse.com>
17780
17781 * gcc.c (default_compilers["@c-header"]): Conditionalize "-o".
17782
17783 2016-07-01 Michael Meissner <meissner@linux.vnet.ibm.com>
17784
17785 PR target/71720
17786 * config/rs6000/vsx.md (vsx_splat_v4sf_internal): When splitting
17787 the insns, use an insn form that does not adjust the offset on
17788 little endian systems.
17789
17790 2016-07-01 Jan Beulich <jbeulich@suse.com>
17791
17792 * varasm.c (get_variable_section): Validate initializer in
17793 named .bss-like sections.
17794
17795 2016-07-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
17796
17797 * config/rs6000/altivec.md (*altivec_vpermr_<mode>_internal):
17798 Exchange the order of the second and third operands in the vpermr
17799 instruction tmeplate.
17800
17801 2016-07-01 Peter Bergner <bergner@vnet.ibm.com>
17802
17803 PR target/71698
17804 * config/rs6000/rs6000.c (rs6000_secondary_reload_simple_move):
17805 Disallow TDmode values.
17806
17807 2016-07-01 Alan Modra <amodra@gmail.com>
17808
17809 PR rtl-optimization/71709
17810 * ira-lives.c (find_call_crossed_cheap_reg): Exit loop on arg reg
17811 being set, not referenced.
17812
17813 2016-07-01 Yuri Rumyantsev <ysrumyan@gmail.com>
17814
17815 PR tree-optimization/70729
17816 * tree-vectorizer.c (adjust_simduid_builtins): Nullify safelen field
17817 of loop since it can be not valid after transformation.
17818
17819 2016-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17820
17821 * config/arm/arm.c (thumb_reload_in_hi): Delete.
17822 * config/arm/arm-protos.h (thumb_reload_in_hi): Delete prototype.
17823
17824 2016-07-01 Eric Botcazou <ebotcazou@adacore.com>
17825
17826 * config/arm/arm.c (arm_function_ok_for_sibcall): Add another check
17827 for NULL decl.
17828
17829 2016-06-30 Michael Meissner <meissner@linux.vnet.ibm.com>
17830
17831 PR target/71677
17832 * config/rs6000/constraints.md (wY constraint): New constraint to
17833 match the requirements for the LXSD and STXSD instructions.
17834 * config/rs6000/predicates.md (offsettable_mem_14bit_operand): New
17835 predicate to match the requirements for the LXSD and STXSD
17836 instructions.
17837 * config/rs6000/rs6000.md (mov<mode>_hardfloat32, FMOVE64 case):
17838 Use constaint wY for LXSD/STXSD instructions instead of 'o' or 'Y'
17839 to make sure that the bottom 2 bits of offset are 0, the address
17840 form is offsettable, and no updating is done in the address mode.
17841 (mov<mode>_hardfloat64, FMOVE64 case): Likewise.
17842 (movdi_internal32): Likewise
17843 (movdi_internal64): Likewise.
17844
17845 2016-06-30 Jakub Jelinek <jakub@redhat.com>
17846
17847 PR tree-optimization/71707
17848 * tree-ssa-strlen.c (get_stridx_plus_constant): Handle already present
17849 strinfo even for ADDR_EXPR ptr.
17850
17851 2016-06-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
17852
17853 * config/rs6000/altivec.md (darn_32): Change the condition to
17854 TARGET_P9_MISC instead of TARGET_MODULO.
17855 (darn_raw): Replace TARGET_MODULO with TARGET_P9_MISC in the
17856 condition expression.
17857 (darn): Replace TARGET_MODULO with TARGET_P9_MISC in the
17858 condition expression.
17859 * config/rs6000/dfp.md (UNSPEC_DTSTSFI): New unspec constant.
17860 (DFP_TEST): New code iterator.
17861 (dfptstsfi_<code>_mode>): New define_expand.
17862 (*dfp_sgnfcnc_<mode>): New define_insn.
17863 * config/rs6000/rs6000-builtin.def (BU_P9_MISC_0): Move this macro
17864 definition next to BU_P9_MISC_1 definition and change the MASK
17865 value to RS6000_BTM_P9_MISC.
17866 (BU_P9_MISC_1): Change the MASK value to RS6000_BTM_P9_MISC.
17867 (BU_P9_64BIT_MISC_0): Likewise.
17868 (BU_P9_DFP_MISC_0): New macro definition.
17869 (BU_P9_DFP_MISC_1): New macro definition.
17870 (BU_P9_DFP_MISC_2): New macro definition.
17871 (BU_P9_DFP_OVERLOAD_1): New macro definition.
17872 (BU_P9_DFP_OVERLOAD_2): New macro definition.
17873 (BU_P9_DFP_OVERLOAD_3): New macro definition.
17874 (TSTSFI_LT_DD): New BU_P9_DFP_MISC_2.
17875 (TSTSFI_LT_TD): Likewise.
17876 (TSTSFI_EQ_DD): Likewise.
17877 (TSTSFI_EQ_TD): Likewise.
17878 (TSTSFI_GT_DD): Likewise.
17879 (TSTSFI_GT_TD): Likewise.
17880 (TSTSFI_OV_DD): Likewise.
17881 (TSTSFI_OV_TD): Likewise.
17882 (TSTSFI_LT): New BU_P9_DFP_OVERLOAD_2.
17883 (TSTSFI_LT_DD): Likewise.
17884 (TSTSFI_LT_TD): Likewise.
17885 (TSTSFI_EQ): Likewise.
17886 (TSTSFI_EQ_DD): Likewise.
17887 (TSTSFI_EQ_TD): Likewise.
17888 (TSTSFI_GT): Likewise.
17889 (TSTSFI_GT_DD): Likewise.
17890 (TSTSFI_GT_TD): Likewise.
17891 (TSTSFI_OV): Likewise.
17892 (TSTSFI_OV_DD): Likewise.
17893 (TSTSFI_OV_TD): Likewise.
17894 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
17895 overloaded test significance functions.
17896 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
17897 OPTION_MASK_P9_MISC into the representation of this mask.
17898 (POWERPC_MASKS): Add OPTION_MASK_P9_MISC into the representation
17899 of this mask.
17900 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Set the
17901 RS6000_BTM_P9_MISC flag in the return value if TARGET_P9_MISC is
17902 non-zero.
17903 (rs6000_expand_binop_builtin): Enforce that argument 0 of the exp
17904 argument is a 6-bit unsigned literal value if the icode argument
17905 represents a DFP test significance built-in call.
17906 (rs6000_invalid_builtin): Add support for the RS6000_BTM_P9_MISC
17907 flag used independently and in combination with the
17908 RS6000_BTM_64BIT flag.
17909 (rs6000_opt_masks): Add entry for power9-misc command-line option.
17910 (rs6000_builtin_mask_names): Add entry for power9-misc
17911 command-line option.
17912 * config/rs6000/rs6000.h: Redefine TARGET_P9_MISC as 0 if
17913 HAVE_AS_POWER9 is not a defined macro. Define MASK_P9_MISC and
17914 RS6000_BTM_P9_MISC macros.
17915 * config/rs6000/rs6000.opt: Add support for the -mpower9-misc
17916 option and change the description of the -mpower9-vector option to
17917 enable only vector instructions, removing its erroneously claimed
17918 support for scalar instructions.
17919 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
17920 the ISA 3.0 digital floating point test significance built-in
17921 functions.
17922
17923 2016-06-30 Wilco Dijkstra <wdijkstr@arm.com>
17924
17925 * config/aarch64/aarch64.c (cortexa35_tunings):
17926 Enable AES fusion. Use cortexa57_branch_cost.
17927 (cortexa53_tunings): Use cortexa57_branch_cost.
17928 (cortexa72_tunings): Use cortexa57_branch_cost.
17929 Use AUTOPREFETCHER_WEAK.
17930 (cortexa73_tunings): Use cortexa57_branch_cost.
17931
17932 2016-06-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17933 James Greenhalgh <james.greenhalgh@arm.com>
17934
17935 * config/aarch64/arm_neon.h (vcopyq_lane_f32, vcopyq_lane_f64,
17936 vcopyq_lane_p8, vcopyq_lane_p16, vcopyq_lane_s8, vcopyq_lane_s16,
17937 vcopyq_lane_s32, vcopyq_lane_s64, vcopyq_lane_u8, vcopyq_lane_u16,
17938 vcopyq_lane_u32, vcopyq_lane_u64): Reimplement in C.
17939 (vcopy_lane_f32, vcopy_lane_f64, vcopy_lane_p8, vcopy_lane_p16,
17940 vcopy_lane_s8, vcopy_lane_s16, vcopy_lane_s32, vcopy_lane_s64,
17941 vcopy_lane_u8, vcopy_lane_u16, vcopy_lane_u32, vcopy_lane_u64,
17942 vcopy_laneq_f32, vcopy_laneq_f64, vcopy_laneq_p8, vcopy_laneq_p16,
17943 vcopy_laneq_s8, vcopy_laneq_s16, vcopy_laneq_s32, vcopy_laneq_s64,
17944 vcopy_laneq_u8, vcopy_laneq_u16, vcopy_laneq_u32, vcopy_laneq_u64,
17945 vcopyq_laneq_f32, vcopyq_laneq_f64, vcopyq_laneq_p8, vcopyq_laneq_p16,
17946 vcopyq_laneq_s8, vcopyq_laneq_s16, vcopyq_laneq_s32, vcopyq_laneq_s64,
17947 vcopyq_laneq_u8, vcopyq_laneq_u16, vcopyq_laneq_u32, vcopyq_laneq_u64):
17948 New intrinsics.
17949
17950 2016-06-30 James Greenhalgh <james.greenhalgh@arm.com>
17951 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17952
17953 * config/aarch64/aarch64-simd.md (*aarch64_simd_vec_copy_lane<mode>):
17954 New define_insn.
17955 (*aarch64_simd_vec_copy_lane_<vswap_width_name><mode>): Likewise.
17956
17957 2016-06-30 David Malcolm <dmalcolm@redhat.com>
17958
17959 PR driver/71651
17960 * gcc.c (driver::build_option_suggestions): Pass "option" to
17961 add_misspelling_candidates.
17962 * opts-common.c (add_misspelling_candidates): Add "option" param;
17963 use it to avoid adding negated forms for options marked with
17964 RejectNegative.
17965 * opts.h (add_misspelling_candidates): Add "option" param.
17966
17967 2016-06-30 Jakub Jelinek <jakub@redhat.com>
17968
17969 PR middle-end/71693
17970 * fold-const.c (fold_binary_loc) <case RROTATE_EXPR>: Cast
17971 TREE_OPERAND (arg0, 0) and TREE_OPERAND (arg0, 1) to type
17972 first when permuting bitwise operation with rotate. Cast
17973 TREE_OPERAND (arg0, 0) to type when cancelling two rotations.
17974
17975 2016-06-29 David Malcolm <dmalcolm@redhat.com>
17976
17977 * opts.c (handle_param): Use find_param_fuzzy to offer suggestions
17978 for misspelled param names.
17979 * params.c: Include spellcheck.h.
17980 (find_param_fuzzy): New function.
17981 * params.h (find_param_fuzzy): New prototype.
17982 * spellcheck.c (struct edit_distance_traits<const char *>): Move to...
17983 * spellcheck.h (struct edit_distance_traits<const char *>):
17984 ...here.
17985
17986 2016-06-29 Michael Meissner <meissner@linux.vnet.ibm.com>
17987
17988 * config/rs6000/predicates.md (const_0_to_7_operand): New
17989 predicate, recognize 0..7.
17990 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
17991 support for doing extracts from V16QImode, V8HImode, V4SImode
17992 under ISA 3.0.
17993 * config/rs6000/vsx.md (VSX_EXTRACT_I): Mode iterator for ISA 3.0
17994 vector extract support.
17995 (VSX_EXTRACT_PREDICATE): Mode attribute to validate element number
17996 for ISA 3.0 vector extract.
17997 (VSX_EX): Constraints to use for ISA 3.0 vector extract.
17998 (vsx_extract_<mode>, VSX_EXTRACT_I): Add support for doing
17999 extracts of a constant element number from small integer vectors
18000 on 64-bit ISA 3.0 systems.
18001 (vsx_extract_<mode>_di): Likewise.
18002 * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): New target macro to
18003 say when we can do ISA 3.0 vector extracts.
18004 * config/rs6000/rs6000.md (stfiwx): Allow DImode in Altivec
18005 registers, using the stxsiwx instruction.
18006
18007 2016-06-29 Jim Wilson <jim.wilson@linaro.org>
18008
18009 * config/aarch64/aarch64-cores.def (qdf24xx): Use qdf24xx tuning.
18010 * config/aarch64/aarch64.c (qdf24xx_addrcost_table,
18011 qdf24xx_regmove_cost, qdf24xx_tunings): New.
18012 * config/arm/aarch64-cost-tables.h (qdf24xx_extra_costs): New.
18013 * config/arm/arm-cores.def (qdf24xx): Use qdf24xx tuning.
18014 * config/arm/arm.c (arm_qdf24xx_tune): New.
18015
18016 2016-06-29 Wilco Dijkstra <wdijkstr@arm.com>
18017
18018 * config/aarch64/aarch64.c (cortexa53_tunings):
18019 Increase loop alignment to 8. Set function alignment to 16.
18020 (cortexa35_tunings): Likewise.
18021 (cortexa57_tunings): Increase loop alignment to 8.
18022 (cortexa72_tunings): Likewise.
18023 (cortexa73_tunings): Likewise.
18024
18025 2016-06-29 Matthew Wahab <matthew.wahab@arm.com>
18026
18027 * doc/sourcebuild.texi (Effective-Target keywords): Add entries
18028 for arm_fp16_ok and arm_fp16_hw.
18029 (Add Options): Add entries for arm_fp16, arm_fp16_ieee and
18030 arm_fp16_alternative.
18031
18032 2016-06-29 Ilya Enkovich <ilya.enkovich@intel.com>
18033
18034 PR tree-optimization/71655
18035 * tree-vect-stmts.c (vectorizable_comparison): Swap definition
18036 types when swapping operands.
18037
18038 2016-06-29 Martin Liska <mliska@suse.cz>
18039
18040 PR middle-end/71585
18041 * common.opt (flag_stack_protect): Mark the flag as optimization flag.
18042 * ipa-inline-transform.c (inline_call): Remove unnecessary call
18043 of build_optimization_node.
18044
18045 2016-06-29 Yuri Rumyantsev <ysrumyan@gmail.com>
18046
18047 PR tree-optimization/70729
18048 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Consider memory reference as
18049 independent in loops having positive safelen value.
18050 * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
18051 it may be not valid after vectorization.
18052
18053 2016-06-29 Jakub Jelinek <jakub@redhat.com>
18054
18055 PR tree-optimization/71625
18056 * tree-ssa-strlen.c (get_addr_stridx): Add PTR argument. Assume list
18057 is sorted by ascending list->offset. If PTR is non-NULL and there is
18058 previous strinfo, call get_stridx_plus_constant.
18059 (get_stridx): Pass exp as second argument to get_addr_stridx.
18060 (addr_stridxptr): Add missing list = list->next, so that there can be
18061 more than one entries in the list. Bump limit from 16 to 32. Ensure
18062 the list is sorted by ascending list->offset.
18063 (get_stridx_plus_constant): Adjust so that it can be also called with
18064 ADDR_EXPR instead of SSA_NAME as PTR.
18065 (handle_char_store): Pass NULL_TREE as second argument to
18066 get_addr_stridx.
18067
18068 2016-06-29 Richard Biener <rguenther@suse.de>
18069
18070 PR rtl-optimization/68961
18071 * simplify-rtx.c (simplify_subreg): Handle VEC_CONCAT like CONCAT.
18072
18073 2016-06-29 Richard Biener <rguenther@suse.de>
18074
18075 PR middle-end/71002
18076 * alias.c (component_uses_parent_alias_set_from): Handle
18077 type punning through union accesses by using the union alias set.
18078 * gimple.c (gimple_get_alias_set): Remove union type punning case.
18079
18080 2016-07-29 Richard Biener <rguenther@suse.de>
18081
18082 * match.pd ((T)(T2)x -> (T)x): Remove restriction on final
18083 precision not matching mode precision.
18084
18085 2016-06-28 John David Anglin <danglin@gcc.gnu.org>
18086
18087 * config/pa/pa.md (call_symref_64bit_post_reload): Don't call
18088 pa_output_arg_descriptor.
18089 (call_val_symref_64bit_post_reload): Likewise.
18090 (call_val_powf_64bit_post_reload): Likewise.
18091 (sibcall_internal_symref_64bit): Likewise.
18092 (sibcall_value_internal_symref_64bit): Likewise.
18093
18094 2016-06-28 Jakub Jelinek <jakub@redhat.com>
18095
18096 PR middle-end/71626
18097 * config/i386/i386.c (ix86_expand_vector_move): For SUBREG of
18098 a constant, force its SUBREG_REG into memory or register instead
18099 of whole op1.
18100
18101 2016-06-28 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
18102
18103 PR target/58655
18104 * config/avr/avr.opt (-mfract-convert-truncate): Update description.
18105 * doc/invoke.texi (AVR Options): Document it.
18106
18107 2016-06-28 Walter Lee <walt@tilera.com>
18108
18109 * config/tilegx/linux.h: Do not include arch/icache.h
18110 (CLEAR_INSN_CACHE): Provide inlined definition directly.
18111 * config/tilepro/linux.h: Do not include arch/icache.h
18112 (CLEAR_INSN_CACHE): Provide inlined definition directly.
18113
18114 2016-06-28 Wilco Dijkstra <wdijkstr@arm.com>
18115
18116 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adjust bitnumbering
18117 for big-endian BIT_FIELD_REF.
18118
18119 2016-06-28 Pat Haugen <pthaugen@us.ibm.com>
18120
18121 * config/rs6000/rs6000.md ('type' attribute): Add htmsimple/dfp types.
18122 ('size' attribute): Add '128'.
18123 Include power9.md.
18124 (*mov<mode>_hardfloat32, *mov<mode>_hardfloat64, *movdi_internal32,
18125 *movdi_internal64, *movdf_update1): Set size attribute to '64'.
18126 (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3, sqrt<mode>2,
18127 copysign<mode>3, neg<mode>2_hw, abs<mode>2_hw, *nabs<mode>2_hw,
18128 *fma<mode>4_hw, *fms<mode>4_hw, *nfma<mode>4_hw, *nfms<mode>4_hw,
18129 extend<SFDF:mode><IEEE128:mode>2_hw, trunc<mode>df2_hw,
18130 *xscvqp<su>wz_<mode>, *xscvqp<su>dz_<mode>, *xscv<su>dqp_<mode>,
18131 *trunc<mode>df2_odd): Set size attribute to '128'.
18132 (*cmp<mode>_hw): Change type to veccmp and set size attribute to '128'.
18133 * config/rs6000/power6.md (power6-fp): Include dfp type.
18134 * config/rs6000/power7.md (power7-fp): Likewise.
18135 * config/rs6000/power8.md (power8-fp): Likewise.
18136 * config/rs6000/power9.md: New file.
18137 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power9.md.
18138 * config/rs6000/htm.md (*tabort, *tabort<wd>c, *tabort<wd>ci,
18139 *trechkpt, *treclaim, *tsr, *ttest): Change type attribute to
18140 htmsimple.
18141 * config/rs6000/dfp.md (extendsddd2, truncddsd2, extendddtd2,
18142 trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
18143 divtd3, *cmpdd_internal1, *cmptd_internal1, floatdidd2, floatditd2,
18144 ftruncdd2, fixdddi2, ftrunctd2, fixtddi2, dfp_ddedpd_<mode>,
18145 dfp_denbcd_<mode>, dfp_dxex_<mode>, dfp_diex_<mode>, dfp_dscli_<mode>,
18146 dfp_dscri_<mode>): Change type attribute to dfp.
18147 * config/rs6000/crypto.md (crypto_vshasigma<CR_char>): Change type
18148 attribute to vecsimple.
18149 * config/rs6000/rs6000.c (power9_cost): Update costs, cache size
18150 and prefetch streams.
18151 (rs6000_option_override_internal): Remove temporary code setting
18152 tuning to power8. Don't set rs6000_sched_groups for power9.
18153 (last_scheduled_insn): Change to rtx_insn *.
18154 (divide_cnt, vec_load_pendulum): New variables.
18155 (rs6000_adjust_cost): Add Power9 to test for store->load separation.
18156 (rs6000_issue_rate): Set issue rate for Power9.
18157 (is_power9_pairable_vec_type): New.
18158 (power9_sched_reorder2): New.
18159 (rs6000_sched_reorder2): Call new function for Power9 specific
18160 reordering.
18161 (insn_must_be_first_in_group): Remove Power9.
18162 (insn_must_be_last_in_group): Likewise.
18163 (force_new_group): Likewise.
18164 (rs6000_sched_init): Fix initialization of last_scheduled_insn.
18165 Initialize divide_cnt/vec_load_pendulum.
18166 (_rs6000_sched_context, rs6000_init_sched_context,
18167 rs6000_set_sched_context): Handle context save/restore of new
18168 variables.
18169
18170 2016-06-28 Richard Biener <rguenther@suse.de>
18171
18172 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
18173 Properly handle DECL_BIT_FIELD_REPRESENTATIVE occuring as
18174 COMPONENT_REF operand.
18175 (nonoverlapping_component_refs_p): Likewise.
18176 * stor-layout.c (start_bitfield_representative): Mark
18177 DECL_BIT_FIELD_REPRESENTATIVE as DECL_NONADDRESSABLE_P.
18178
18179 2016-06-28 Jakub Jelinek <jakub@redhat.com>
18180
18181 * Makefile.in: Don't cat ../stage_current if it does not exist.
18182
18183 * doc/extend.texi (__builtin_add_overflow_p): Clarify behavior when
18184 last argument is a bit-field.
18185
18186 PR rtl-optimization/71673
18187 * internal-fn.c (expand_arith_overflow_result_store): Use
18188 OPTAB_LIB_WIDEN instead of OPTAB_DIRECT as last argument to
18189 expand_simple_binop.
18190
18191 PR middle-end/66867
18192 * builtins.c (expand_ifn_atomic_compare_exchange_into_call,
18193 expand_ifn_atomic_compare_exchange): New functions.
18194 * internal-fn.c (expand_ATOMIC_COMPARE_EXCHANGE): New function.
18195 * tree.h (build_call_expr_internal_loc): Rename to ...
18196 (build_call_expr_internal_loc_array): ... this. Fix up type of
18197 last argument.
18198 * internal-fn.def (ATOMIC_COMPARE_EXCHANGE): New internal fn.
18199 * predict.c (expr_expected_value_1): Handle IMAGPART_EXPR of
18200 ATOMIC_COMPARE_EXCHANGE result.
18201 * builtins.h (expand_ifn_atomic_compare_exchange): New prototype.
18202 * gimple-fold.h (optimize_atomic_compare_exchange_p,
18203 fold_builtin_atomic_compare_exchange): New prototypes.
18204 * gimple-fold.c (optimize_atomic_compare_exchange_p,
18205 fold_builtin_atomic_compare_exchange): New functions..
18206 * tree-ssa.c (execute_update_addresses_taken): If
18207 optimize_atomic_compare_exchange_p, ignore &var in 2nd argument
18208 of call when finding addressable vars, and if such var becomes
18209 non-addressable, call fold_builtin_atomic_compare_exchange.
18210
18211 2016-06-27 Segher Boessenkool <segher@kernel.crashing.org>
18212
18213 PR target/71670
18214 * config/rs6000/rs6000.md (ashdi3_extswsli_dot): Use
18215 gen_ashdi3_extswsli_dot2 instead of gen_ashdi3_extswsli_dot.
18216
18217 2016-06-27 Pat Haugen <pthaugen@us.ibm.com>
18218
18219 * config/rs6000/rs6000.md ('type' attribute): Add
18220 veclogical,veccmpfx,vecexts,vecmove insn types.
18221 (*abs<mode>2_fpr, *nabs<mode>2_fpr, *neg<mode>2_fpr, *extendsfdf2_fpr,
18222 copysign<mode>3_fcpsgn, trunc<mode>df2_internal1, neg<mode>2_internal,
18223 p8_fmrgow_<mode>, pack<mode>): Change type to fpsimple.
18224 (*xxsel<mode>, copysign<mode>3_hard, neg<mode>2_hw, abs<mode>2_hw,
18225 *nabs<mode>2_hw): Change type to vecmove.
18226 (*and<mode>3_internal, *bool<mode>3_internal, *boolc<mode>3_internal,
18227 *boolcc<mode>3_internal, *eqv<mode>3_internal,
18228 *one_cmpl<mode>3_internal, *ieee_128bit_vsx_neg<mode>2_internal,
18229 *ieee_128bit_vsx_abs<mode>2_internal,
18230 *ieee_128bit_vsx_nabs<mode>2_internal, extendkftf2, trunctfkf2,
18231 *ieee128_mfvsrd_64bit, *ieee128_mfvsrd_32bit, *ieee128_mtvsrd_64bit,
18232 *ieee128_mtvsrd_32bit): Change type to veclogical.
18233 (mov<mode>_hardfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
18234 *movdi_internal32, *movdi_internal64): Update insn types.
18235 * config/rs6000/vsx.md (*vsx_le_undo_permute_<mode>,
18236 vsx_extract_<mode>): Change type to veclogical.
18237 (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns): Change type to vecmove.
18238 (vsx_sign_extend_qi_<mode>, *vsx_sign_extend_hi_<mode>,
18239 *vsx_sign_extend_si_v2di): Change type to vecexts.
18240 * config/rs6000/altivec.md (*altivec_mov<mode>, *altivec_movti): Change
18241 type to veclogical.
18242 (*altivec_eq<mode>, *altivec_gt<mode>, *altivec_gtu<mode>,
18243 *altivec_vcmpequ<VI_char>_p, *altivec_vcmpgts<VI_char>_p,
18244 *altivec_vcmpgtu<VI_char>_p): Change type to veccmpfx.
18245 (*altivec_vsel<mode>, *altivec_vsel<mode>_uns): Change type to vecmove.
18246 * config/rs6000/dfp.md (*negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
18247 negtd2, *abstd2_fpr, *nabstd2_fpr): Change type to fpsimple.
18248 * config/rs6000/40x.md (ppc405-float): Add fpsimple.
18249 * config/rs6000/440.md (ppc440-fp): Add fpsimple.
18250 * config/rs6000/476.md (ppc476-fp): Add fpsimple.
18251 * config/rs6000/601.md (ppc601-fp): Add fpsimple.
18252 * config/rs6000/603.md (ppc603-fp): Add fpsimple.
18253 * config/rs6000/6xx.md (ppc604-fp): Add fpsimple.
18254 * config/rs6000/7xx.md (ppc750-fp): Add fpsimple.
18255 (ppc7400-vecsimple): Add veclogical, vecmove, veccmpfx.
18256 * config/rs6000/7450.md (ppc7450-fp): Add fpsimple.
18257 (ppc7450-vecsimple): Add veclogical, vecmove.
18258 (ppc7450-veccmp): Add veccmpfx.
18259 * config/rs6000/8540.md (ppc8540_simple_vector): Add veclogical,
18260 vecmove.
18261 (ppc8540_vector_compare): Add veccmpfx.
18262 * config/rs6000/a2.md (ppca2-fp): Add fpsimple.
18263 * config/rs6000/cell.md (cell-fp): Add fpsimple.
18264 (cell-vecsimple): Add veclogical, vecmove.
18265 (cell-veccmp): Add veccmpfx.
18266 * config/rs6000/e300c2c3.md (ppce300c3_fp): Add fpsimple.
18267 * config/rs6000/e6500.md (e6500_vecsimple): Add veclogical, vecmove,
18268 veccmpfx.
18269 * config/rs6000/mpc.md (mpccore-fp): Add fpsimple.
18270 * config/rs6000/power4.md (power4-fp): Add fpsimple.
18271 (power4-vecsimple): Add veclogical, vecmove.
18272 (power4-veccmp): Add veccmpfx.
18273 * config/rs6000/power5.md (power5-fp): Add fpsimple.
18274 * config/rs6000/power6.md (power6-fp): Add fpsimple.
18275 (power6-vecsimple): Add veclogical, vecmove.
18276 (power6-veccmp): Add veccmpfx.
18277 * config/rs6000/power7.md (power7-fp): Add fpsimple.
18278 (power7-vecsimple): Add veclogical, vecmove, veccmpfx.
18279 * config/rs6000/power8.md (power8-fp): Add fpsimple.
18280 (power8-vecsimple): Add veclogical, vecmove, veccmpfx.
18281 * config/rs6000/rs64.md (rs64a-fp): Add fpsimple.
18282 * config/rs6000/titan.md (titan_fp): Add fpsimple.
18283 * config/rs6000/xfpu.md (fp-default, fp-addsub-s, fp-addsub-d): Add
18284 fpsimple.
18285 * config/rs6000/rs6000.c (rs6000_adjust_cost): Add TYPE_FPSIMPLE.
18286
18287 2016-06-27 Peter Bergner <bergner@vnet.ibm.com>
18288
18289 PR target/71656
18290 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
18291 OPTION_MASK_P9_DFORM_VECTOR.
18292 * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
18293 disable -mpower9-dform-vector when using reload.
18294 (quad_address_p): Remove 'gpr_p' argument and all associated code.
18295 New 'strict' argument. Update all callers. Add strict addressing
18296 support.
18297 (rs6000_legitimate_offset_address_p): Remove call to
18298 virtual_stack_registers_memory_p.
18299 (rs6000_legitimize_reload_address): Add quad address support.
18300 (rs6000_legitimate_address_p): Move call to quad_address_p above
18301 call to virtual_stack_registers_memory_p. Adjust quad_address_p args
18302 to account for new strict usage.
18303 (rs6000_output_move_128bit): Adjust quad_address_p args to account
18304 for new strict usage.
18305 * config/rs6000/predicates.md (quad_memory_operand): Likewise.
18306
18307 2016-06-26 Uros Bizjak <ubizjak@gmail.com>
18308
18309 PR target/70902
18310 PR target/71453
18311 PR target/71555
18312 PR target/71596
18313 PR target/71657
18314 * config/i386/i386.c (ix86_spill_class): Disable condition to
18315 always return NO_REGS.
18316
18317 2016-06-26 Jan Hubicka <hubicka@ucw.cz>
18318
18319 * predict.c: Include gimple-pretty-print.h
18320 (predicted_by_loop_heuristics_p): Check also
18321 PRED_LOOP_EXIT_WITH_RECURSION
18322 (predict_loops): Find self recursive calls and use special purpose
18323 predictors for them; dump log about decisions.
18324 (pass_profile::execute): Dump info about #of iterations.
18325 * predict.def (PRED_LOOP_EXIT_WITH_RECURSION,
18326 (PRED_LOOP_GUARD_WITH_RECURSION): New predictors.
18327
18328 2016-06-26 John David Anglin <danglin@gcc.gnu.org>
18329
18330 * config/pa/pa.c (pa_output_indirect_call): Rework to combine
18331 output_asm_insn calls and shorten long lines. Output .CALL
18332 argument descriptor using pa_output_arg_descriptor. Add various
18333 inline $$dyncall and other optimizations.
18334 (pa_attr_length_indirect_call): Adjust ordering and lengths.
18335
18336 2016-06-25 Jakub Jelinek <jakub@redhat.com>
18337
18338 PR tree-optimization/71643
18339 * tree-ssa-tail-merge.c (find_clusters_1): Ignore basic blocks with
18340 EH preds.
18341
18342 * tree-ssa-tail-merge.c (deps_ok_for_redirect_from_bb_to_bb): Don't
18343 leak a bitmap if dep_bb is NULL.
18344
18345 PR tree-optimization/71631
18346 * tree-ssa-reassoc.c (reassociate_bb): Pass true as last argument
18347 to rewrite_expr_tree even if negate_result, move new_lhs var
18348 declaration and initialization earlier, for powi_result set afterwards
18349 new_lhs to lhs. For negate_result, use new_lhs instead of tmp
18350 if new_lhs != lhs, and don't shadow gsi var.
18351
18352 2016-06-24 Jan Hubicka <hubicka@ucw.cz>
18353
18354 * predict.c (predict_paths_leading_to, predict_paths_leading_to_edge):
18355 Add in_loop parameter.
18356 (predict_loops): Add loop guard heuristics.
18357 * predict.def (PRED_LOOP_GUARD): New heuristics.
18358
18359 2016-06-24 Jan Hubicka <hubicka@ucw.cz>
18360
18361 * predict.c: Include ipa-utils.h
18362 (tree_bb_level_prediction): Predict recursive calls.
18363 (tree_estimate_probability_bb): Skip inexpensive calls for call
18364 predictor.
18365 * predict.def (PRED_RECURSIVE_CALL): New.
18366
18367 2016-06-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18368
18369 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): New #define.
18370 (BU_FLOAT128_1): Likewise.
18371 (FABSQ): Likewise.
18372 (COPYSIGNQ): Likewise.
18373 (RS6000_BUILTIN_NANQ): Likewise.
18374 (RS6000_BUILTIN_NANSQ): Likewise.
18375 (RS6000_BUILTIN_INFQ): Likewise.
18376 (RS6000_BUILTIN_HUGE_VALQ): Likewise.
18377 * config/rs6000/rs6000.c (rs6000_fold_builtin): New prototype.
18378 (TARGET_FOLD_BUILTIN): New #define.
18379 (rs6000_builtin_mask_calculate): Add TARGET_FLOAT128 entry.
18380 (rs6000_invalid_builtin): Add handling for RS6000_BTM_FLOAT128.
18381 (rs6000_fold_builtin): New target hook implementation, handling
18382 folding of 128-bit NaNs and infinities.
18383 (rs6000_init_builtins): Initialize const_str_type_node; ensure all
18384 entries are filled in to avoid problems during bootstrap
18385 self-test; define builtins for 128-bit NaNs and infinities.
18386 (rs6000_opt_mask): Add entry for float128.
18387 * config/rs6000/rs6000.h (RS6000_BTM_FLOAT128): New #define.
18388 (RS6000_BTM_COMMON): Include RS6000_BTM_FLOAT128.
18389 (rs6000_builtin_type_index): Add RS6000_BTI_const_str.
18390 (const_str_type_node): New #define.
18391 * config/rs6000/rs6000.md (copysign<mode>3 for IEEE128): Convert
18392 to a define_expand that dispatches to either copysign<mode>3_soft
18393 or copysign<mode>3_hard.
18394 (copysign<mode>3_hard): Rename from copysign<mode>3.
18395 (copysign<mode>3_soft): New define_insn.
18396 * doc/extend.texi: Document new builtins.
18397
18398 2016-06-24 Jakub Jelinek <jakub@redhat.com>
18399
18400 * cfgloop.c (flow_loop_dump): Cast nit to uint64_t and print it using
18401 PRIu64 instead of lu.
18402
18403 2016-06-24 Eric Botcazou <ebotcazou@adacore.com>
18404
18405 PR debug/71642
18406 * tree-inline.c (remap_decl): When fixing up DECL_ORIGINAL_TYPE, just
18407 copy the type name.
18408
18409 2016-06-24 Jakub Jelinek <jakub@redhat.com>
18410
18411 PR tree-optimization/71647
18412 * omp-low.c (lower_rec_input_clauses): Convert
18413 omp_clause_aligned_alignment (c) to size_type_node for the
18414 last argument of __builtin_assume_aligned.
18415
18416 2016-06-24 H.J. Lu <hongjiu.lu@intel.com>
18417
18418 * configure.ac (calling ___tls_get_addr via GOT): New
18419 assembler/linker check.
18420 (HAVE_AS_IX86_TLS_GET_ADDR_GOT): New. Defined to 1 if 32-bit
18421 assembler and linker supports calling ___tls_get_addr via GOT.
18422 Otherise, defined to 0.
18423 * config.in: Regenerated.
18424 * configure: Likewise.
18425 * config/i386/constraints.md (Yb): New constraint.
18426 * config/i386/i386.h (reg_class): Add TLS_GOTBASE_REGS.
18427 (REG_CLASS_NAMES): Likewise.
18428 (REG_CLASS_CONTENTS): Likewise.
18429 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Replace
18430 the b constraint with the Yb constraint. Call ___tls_get_addr
18431 via GOT for GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT
18432 is 1.
18433 (*tls_local_dynamic_base_32_gnu): Likewise.
18434 (*tls_global_dynamic_64_<mode>): Call _tls_get_addr via GOT for
18435 GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT is 1.
18436 (*tls_local_dynamic_base_64_<mode>): Likewise.
18437
18438 2016-06-24 Martin Liska <mliska@suse.cz>
18439
18440 * cfgloop.c (flow_loop_dump): Dump average number of loop iterations.
18441 * cfgloop.h: Change 'struct loop' to 'const struct loop' for a
18442 few functions.
18443 * cfgloopanal.c (expected_loop_iterations_unbounded): Set a new
18444 argument to true if the expected number of iterations is
18445 loop-based.
18446
18447 2016-06-24 Uros Bizjak <ubizjak@gmail.com>
18448
18449 * configure.ac (HAVE_AS_GOTOF_IN_DATA): Use $as_ix86_gas_32_opt to
18450 assemble for 32bit target.
18451 (HAVE_AS_IX86_TLSGDPLT): Use $as_ix86_gas_32_opt to assemble
18452 and $ld_ix86_gld_32_opt to link for 32bit target.
18453 (HAVE_AS_IX86_TLSLDMPLT): Ditto.
18454 * configure: Regenerate.
18455
18456 2016-06-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18457
18458 * config/arm/arm.c (int_log2): Delete definition and prototype.
18459 (shift_op): Use exact_log2 instead of int_log2.
18460 (vfp3_const_double_for_fract_bits): Likewise.
18461
18462 2016-06-24 Jakub Jelinek <jakub@redhat.com>
18463
18464 * internal-fn.c (expand_arith_set_overflow): New function.
18465 (expand_addsub_overflow, expand_neg_overflow, expand_mul_overflow):
18466 Use it.
18467 (expand_arith_overflow_result_store): Likewise. Handle precision
18468 smaller than mode precision.
18469 * tree-vrp.c (extract_range_basic): For imag part, handle
18470 properly signed 1-bit precision result.
18471 * doc/extend.texi (__builtin_add_overflow): Document that last
18472 argument can't be pointer to enumerated or boolean type.
18473 (__builtin_add_overflow_p): Document that last argument can't
18474 have enumerated or boolean type.
18475
18476 2016-06-23 Michael Meissner <meissner@linux.vnet.ibm.com>
18477 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18478
18479 * config/rs6000/predicates.md (splat_input_operand): Rework.
18480 Don't allow constants, since the insns that use this predicate
18481 don't support constants. Constants are handled by other insns
18482 that are created via combine. During and after register
18483 allocation, only allow indexed or indirect addresses, and not
18484 general addresses. Only allow modes supported by the hardware.
18485 * config/rs6000/rs6000.c (xxsplitb_constant_p): Update usage
18486 comment. Move check for using VSPLTIS<x> to a common location,
18487 instead of doing it in two different places.
18488
18489 2016-06-23 Jocelyn Mayer <l_indien@magic.fr>
18490
18491 * config/i386/driver-i386.c (host_detect_local_cpu): Set
18492 PROCESSOR_PENTIUMPRO for signature_CENTAUR_ebx family >= 9.
18493 <case PROCESSOR_PENTIMUMPRO>: Pass c7 or nehemiah for
18494 signature_CENTAUR_ebx.
18495
18496 2016-06-23 H.J. Lu <hongjiu.lu@intel.com>
18497
18498 PR target/66232
18499 PR target/67400
18500 * configure.ac (as_ix86_tls_ldm_opt): Renamed to ...
18501 (as_ix86_gas_32_opt): This.
18502 (ld_ix86_tls_ldm_opt): Renamed to ...
18503 (ld_ix86_gld_32_opt): This.
18504 (R_386_TLS_LDM reloc): Updated.
18505 (R_386_GOT32X reloc): New assembler/linker check.
18506 (HAVE_AS_IX86_GOT32X): New. Defined to 1 if 32-bit assembler and
18507 linker support "jmp *_start@GOT" and "cmpl $0, bar@GOT". Otherise,
18508 defined to 0.
18509 * config.in: Regenerated.
18510 * configure: Likewise.
18511 * config/i386/i386.c (ix86_force_load_from_GOT_p): Return
18512 true if HAVE_AS_IX86_GOT32X is 1 in 32-bit mode.
18513 (ix86_legitimate_address_p): Allow UNSPEC_GOT for -fno-plt
18514 if ix86_force_load_from_GOT_p returns true.
18515 (ix86_print_operand_address_as): Also support UNSPEC_GOT if
18516 ix86_force_load_from_GOT_p returns true.
18517 (ix86_expand_move): Generate UNSPEC_GOT in 32-bit mode to load
18518 the external function address via the GOT slot.
18519 (ix86_nopic_noplt_attribute_p): Check both TARGET_64BIT and
18520 HAVE_AS_IX86_GOT32X before returning false.
18521 (ix86_output_call_insn): Generate "%!jmp/call\t*%p0@GOT" in
18522 32-bit mode if ix86_nopic_noplt_attribute_p returns true.
18523
18524 2016-06-23 Eric Botcazou <ebotcazou@adacore.com>
18525
18526 * tree-inline.c (remap_decl): Preserve DECL_ORIGINAL_TYPE invariant.
18527
18528 2016-06-23 Andi Kleen <ak@linux.intel.com>
18529
18530 * Makefile.in: Regenerate.
18531 * doc/install.texi: Document autoprofiledbootstrap.
18532
18533 2016-06-23 Andi Kleen <ak@linux.intel.com>
18534
18535 * config/i386/gcc-auto-profile: New file.
18536
18537 2016-06-23 Martin Liska <mliska@suse.cz>
18538
18539 PR middle-end/71619
18540 * predict.c (predict_loops): Revert the hunk that was removed
18541 in r237103.
18542
18543 2016-06-23 Jakub Sejdak <jakub.sejdak@phoesys.com>
18544
18545 * config.gcc: Add support for arm*-*-phoenix* targets.
18546 * config/arm/t-phoenix: New.
18547 * config/phoenix.h: New.
18548
18549 2016-06-23 Uros Bizjak <ubizjak@gmail.com>
18550 H.J. Lu <hongjiu.lu@intel.com>
18551
18552 PR target/67400
18553 * config/i386/i386-protos.h (ix86_force_load_from_GOT_p): New.
18554 * config/i386/i386.c (ix86_force_load_from_GOT_p): New function.
18555 (ix86_legitimate_constant_p): Do not allow UNSPEC_GOTPCREL if
18556 ix86_force_load_from_GOT_p returns true.
18557 (ix86_legitimate_address_p): Allow UNSPEC_GOTPCREL if
18558 ix86_force_load_from_GOT_p returns true.
18559 (ix86_print_operand_address_as): Support UNSPEC_GOTPCREL if
18560 ix86_force_load_from_GOT_p returns true.
18561 (ix86_expand_move): Load the external function address via the
18562 GOT slot if ix86_force_load_from_GOT_p returns true.
18563 * config/i386/predicates.md (x86_64_immediate_operand): Return
18564 false for SYMBOL_REFs where ix86_force_load_from_GOT_p returns true.
18565 (x86_64_zext_immediate_operand): Ditto.
18566
18567 2016-06-22 Uros Bizjak <ubizjak@gmail.com>
18568
18569 * config/i386/i386.c (ix86_expand_move): Simplify SYMBOL_REF handling.
18570
18571 2016-06-22 David Malcolm <dmalcolm@redhat.com>
18572
18573 PR c/70339
18574 * diagnostic-core.h (pedwarn_at_rich_loc): New prototype.
18575 * diagnostic.c (pedwarn_at_rich_loc): New function.
18576 * spellcheck.h (best_match::best_match): Add a
18577 "best_distance_so_far" optional parameter.
18578 (best_match::set_best_so_far): New method.
18579 (best_match::get_best_distance): New accessor.
18580 (best_match::get_best_candidate_length): New accessor.
18581
18582 2016-06-22 Nick Clifton <nickc@redhat.com>
18583
18584 * dwarf2out.c (scompare_loc_descriptor): Use SCALAR_INT_MODE_P() in
18585 place of GET_MODE_CLASS() == MODE_INT, so that partial integer
18586 modes are accepted as well.
18587 (ucompare_loc_descriptor): Likewise.
18588 (minmax_loc_descriptor): Likewise.
18589 (clz_loc_descriptor): Likewise.
18590 (popcount_loc_descriptor): Likewise.
18591 (bswap_loc_descriptor): Likewise.
18592 (rotate_loc_descriptor): Likewise.
18593 (mem_loc_descriptor): Likewise.
18594 (loc_descriptor): Likewise.
18595
18596 2016-06-22 David Malcolm <dmalcolm@redhat.com>
18597
18598 * common.opt (fdiagnostics-parseable-fixits): New option.
18599 * diagnostic.c: Include "selftest.h".
18600 (print_escaped_string): New function.
18601 (print_parseable_fixits): New function.
18602 (diagnostic_report_diagnostic): Call print_parseable_fixits.
18603 (selftest::assert_print_escaped_string): New function.
18604 (ASSERT_PRINT_ESCAPED_STRING_STREQ): New macro.
18605 (selftest::test_print_escaped_string): New function.
18606 (selftest::test_print_parseable_fixits_none): New function.
18607 (selftest::test_print_parseable_fixits_insert): New function.
18608 (selftest::test_print_parseable_fixits_remove): New function.
18609 (selftest::test_print_parseable_fixits_replace): New function.
18610 (selftest::diagnostic_c_tests): New function.
18611 * diagnostic.h (struct diagnostic_context): Add field
18612 "parseable_fixits_p".
18613 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
18614 -fdiagnostics-parseable-fixits.
18615 (-fdiagnostics-parseable-fixits): New option.
18616 * opts.c (common_handle_option): Handle
18617 -fdiagnostics-parseable-fixits.
18618 * selftest-run-tests.c (selftest::run_tests): Call
18619 selftest::diagnostic_c_tests.
18620 * selftest.h (selftest::diagnostic_c_tests): New prototype.
18621
18622 2016-06-22 Ilya Enkovich <ilya.enkovich@intel.com>
18623
18624 PR tree-optimization/71488
18625 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Support
18626 comparison of boolean vectors.
18627 * tree-vect-stmts.c (vectorizable_comparison): Vectorize comparison
18628 of boolean vectors using bitwise operations.
18629
18630 2016-06-22 Andreas Schwab <schwab@suse.de>
18631
18632 * config/aarch64/aarch64-protos.h (aarch64_elf_asm_named_section):
18633 Remove declaration.
18634
18635 2016-06-22 Eric Botcazou <ebotcazou@adacore.com>
18636
18637 * function.c (assign_parm_setup_reg): Prevent sharing in another case.
18638
18639 2016-06-22 Bernd Edlinger <bernd.edlinger@hotmail.de>
18640
18641 * config/i386/i386.c (print_reg): Emit an error message on attempt to
18642 print FLAGS_REG.
18643
18644 2016-06-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18645
18646 * config/arm/arm.c (arm_cortex_a73_tune): New struct.
18647 * config/arm/arm-cores.def (cortex-a73): New entry.
18648 (cortex-a73.cortex-a35): Likewise.
18649 (cortex-a73.cortex-a53): Likewise.
18650 * config/arm/arm-tables.opt: Regenerate.
18651 * config/arm/arm-tune.md: Likewise.
18652 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle mcpu=cortex-a73,
18653 mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
18654 * config/arm/t-aprofile: Handle mcpu=cortex-a73,
18655 mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
18656 * doc/invoke.texi (ARM Options): Document cortex-a73,
18657 cortex-a73.cortex-a35 and cortex-a73.cortex-a53.
18658
18659 2016-06-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18660
18661 * config/aarch64/aarch64.c (cortexa73_tunings): New struct.
18662 * config/aarch64/aarch64-cores.def (cortex-a73): New entry.
18663 (cortex-a73.cortex-a35): Likewise.
18664 (cortex-a73.cortex-a53): Likewise.
18665 * config/aarch64/aarch64-tune.md: Regenerate.
18666 * doc/invoke.texi (AArch64 Options): Document cortex-a73,
18667 cortex-a73.cortex-a35 and cortex-a73.cortex-a53 arguments to
18668 -mcpu and -mtune.
18669
18670 2016-06-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18671
18672 * configure.ac (gcc_cv_as_compress_debug): Remove
18673 --compress-debug-sections as extra as switch.
18674 Handle gas --compress-debug-sections=type.
18675 (gcc_cv_ld_compess_debug): Remove bogus ld_date check.
18676 Handle gld --compress-debug-sections=type.
18677 * configure: Regenerate.
18678
18679 2016-06-21 Andrew Burgess <andrew.burgess@embecosm.com>
18680
18681 * bb-reorder.c (pass_partition_blocks::gate): Update comment.
18682
18683 2016-06-21 John David Anglin <danglin@gcc.gnu.org>
18684
18685 * gcov-tool.c (profile_rewrite): Use int64_t instead of long long.
18686 (do_rewrite): likewise.
18687
18688 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18689
18690 * common/config/mep/mep-common.c: Remove.
18691 * config.gcc: Remove mep-* support.
18692 * config/mep/constraints.md: Remove.
18693 * config/mep/default.h: Remove.
18694 * config/mep/intrinsics.h: Remove.
18695 * config/mep/intrinsics.md: Remove.
18696 * config/mep/ivc2-template.h: Remove.
18697 * config/mep/mep-c5.cpu: Remove.
18698 * config/mep/mep-core.cpu: Remove.
18699 * config/mep/mep-default.cpu: Remove.
18700 * config/mep/mep-ext-cop.cpu: Remove.
18701 * config/mep/mep-intrin.h: Remove.
18702 * config/mep/mep-ivc2.cpu: Remove.
18703 * config/mep/mep-pragma.c: Remove.
18704 * config/mep/mep-protos.h: Remove.
18705 * config/mep/mep.c: Remove.
18706 * config/mep/mep.cpu: Remove.
18707 * config/mep/mep.h: Remove.
18708 * config/mep/mep.md: Remove.
18709 * config/mep/mep.opt: Remove.
18710 * config/mep/predicates.md: Remove.
18711 * config/mep/t-mep: Remove.
18712 * doc/install.texi: Remove mep-* documentation.
18713 * doc/md.texi: Likewise.
18714
18715 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18716
18717 * config.gcc: Remove support for avr-rtems.
18718 * config/avr/gen-avr-mmcu-specs.c: Likewise.
18719 * config/avr/rtems.h: Remove.
18720 * config/avr/t-rtems: Remove.
18721
18722 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18723
18724 * config.gcc: Remove m32r-rtems support.
18725 * config/m32r/rtems.h: Remove.
18726
18727 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18728
18729 * config.gcc: Remove h8300-rtems support.
18730 * config/h8300/rtems.h: Remove.
18731 * config/h8300/t-rtems: Remove.
18732
18733 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18734
18735 * config.gcc: Remove support for knetbsd.
18736 * configure.ac: Likewise.
18737 * config/i386/knetbsd-gnu.h: Remove. * config/i386/knetbsd-gnu64.h: Remove.
18738 * config/knetbsd-gnu.h: Remove.
18739 * configure: Regenerate.
18740
18741 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18742
18743 * config.gcc: Remove support for openbsd 2 and 3.
18744 * config/openbsd-oldgas.h: Remove.
18745
18746 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18747
18748 * config.gcc: Remove interix support.
18749 * config/i386/i386-interix.h: Remove.
18750 * config/i386/interix.opt: Remove.
18751 * config/i386/t-interix: Remove.
18752 * configure: Regenerate.
18753 * configure.ac: Remove interix support.
18754 * doc/install.texi: Remove interix documentation.
18755
18756 2016-06-21 Kelvin Nilsen <kelvin@gcc.gnu.org>
18757
18758 * config/rs6000/rs6000.h: Add conditional preprocessing directives
18759 to disable Power9-specific compiler features if HAVE_AS_POWER9 is
18760 not defined.
18761
18762 2016-06-21 Eric Botcazou <ebotcazou@adacore.com>
18763
18764 * tree.c (verify_type_variant): Skip TYPE_SIZE and TYPE_SIZE_UNIT if
18765 they are both PLACEHOLDER_EXPRs.
18766
18767 2016-06-21 Michael Meissner <meissner@linux.vnet.ibm.com>
18768
18769 * stor-layout.c (layout_type): Move setting complex MODE to
18770 layout_type, instead of setting it ahead of time by the caller.
18771 * tree.c (build_complex_type): Likewise.
18772
18773 2016-06-21 Martin Liska <mliska@suse.cz>
18774
18775 * predict.c (force_edge_cold): Replace imposisble with
18776 impossible.
18777
18778 2016-06-21 Ilya Verbin <ilya.verbin@intel.com>
18779
18780 * config/i386/i386.c (ix86_emit_swsqrtsf): Emit vrsqrt28ps.
18781 * config/i386/sse.md (define_expand "rsqrtv16sf2"): New.
18782
18783 2016-06-21 Ilya Verbin <ilya.verbin@intel.com>
18784
18785 * config/i386/i386.c (ix86_emit_swdivsf): Emit vrcp28ps.
18786
18787 2016-06-21 H.J. Lu <hongjiu.lu@intel.com>
18788 Ilya Enkovich <ilya.enkovich@intel.com>
18789
18790 PR target/71549
18791 * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
18792 New member function to convert V1TImode register to SUBREG
18793 TImode in debug insn.
18794 (timode_scalar_chain::convert_insn): Call fix_debug_reg_uses
18795 after changing register mode to V1TImode.
18796
18797 2016-06-21 Virendra Pathak <virendra.pathak@broadcom.com>
18798
18799 * config/aarch64/aarch64-cores.def (vulcan): New core.
18800 * config/aarch64/aarch64-tune.md: Regenerate.
18801 * doc/invoke.texi: Document vulcan as an available option.
18802
18803 2016-06-21 Eric Botcazou <ebotcazou@adacore.com>
18804
18805 * cse.c (canon_asm_operands): New function extracted from...
18806 (canonicalize_insn): ...here. Call it to canonicalize an ASM_OPERANDS
18807 either standalone or member of a PARALLEL.
18808
18809 2016-06-21 Georg-Johann Lay <avr@gjlay.de>
18810
18811 PR target/30417
18812 * config/avr/gen-avr-mmcu-specs.c (print_mcu):
18813 [*link_data_start]: Wrap -Tdata into %{!Tdata:...}.
18814 [*link_text_start]: Wrap -Ttext into %{!Ttext:...}.
18815
18816 2016-06-21 Georg-Johann Lay <avr@gjlay.de>
18817
18818 PR target/71103
18819 * config/avr/avr.md (movqi): Only handle loading subreg:qi of
18820 constant addresses if can_create_pseudo_p.
18821
18822 2016-06-21 Jakub Jelinek <jakub@redhat.com>
18823
18824 PR tree-optimization/71588
18825 * tree-ssa-strlen.c (valid_builtin_call): New function.
18826 (adjust_last_stmt, handle_builtin_memset, strlen_optimize_stmt): Use
18827 it.
18828
18829 2016-06-20 Jakub Jelinek <jakub@redhat.com>
18830
18831 PR middle-end/71581
18832 * tree-ssa-uninit.c (warn_uninit): If EXPR and VAR are NULL,
18833 see if T isn't anonymous SSA_NAME with COMPLEX_EXPR created
18834 for conversion of scalar user var to complex type and use the
18835 underlying SSA_NAME_VAR in that case. If EXPR is still NULL,
18836 punt.
18837
18838 PR rtl-optimization/71591
18839 * toplev.c (toplev::run_self_tests): If no_backend, complain and
18840 don't run any tests.
18841
18842 2016-06-20 Hans-Peter Nilsson <hp@axis.com>
18843
18844 PR target/71571
18845 * config/cris/cris.c (cris_asm_output_mi_thunk): Add missing "ba"
18846 delay-slot "nop" for PIC with CRIS v32. Also add missing leading
18847 space for PIC with non-v32 and the common non-PIC "jump".
18848
18849 2016-06-20 Jakub Jelinek <jakub@redhat.com>
18850
18851 PR target/71559
18852 * config/i386/i386.c (ix86_fp_cmp_code_to_pcmp_immediate): Fix up
18853 returned values and add UN*/LTGT/*ORDERED cases with values matching
18854 D operand modifier on vcmp for AVX.
18855
18856 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
18857
18858 * config/aarch64/aarch64.opt
18859 (mpc-relative-literal-loads): Rename internal option name.
18860 * config/aarch64/aarch64.c
18861 (aarch64_nopcrelative_literal_loads): Rename to
18862 aarch64_pcrelative_literal_loads.
18863 (aarch64_expand_mov_immediate): Likewise.
18864 (aarch64_secondary_reload): Likewise.
18865 (aarch64_can_use_per_function_literal_pools_p): Likewise.
18866 (aarch64_override_options_after_change_1): Rename and simplify logic.
18867 (aarch64_classify_symbol): Merge large model checks into switch,
18868 remove pc-relative load check.
18869
18870 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
18871
18872 * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): Make FP
18873 costs relative to the cost of a register move.
18874
18875 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
18876
18877 * config/aarch64/arm_neon.h (vcvt_n_f64_s64): New.
18878 (vcvt_n_f64_u64): Likewise.
18879 (vcvt_n_s64_f64): Likewise.
18880 (vcvt_n_u64_f64): Likewise.
18881 (vcvt_f64_s64): Likewise.
18882 (vrecpe_f64): Likewise.
18883 (vcvt_f64_u64): Likewise.
18884 (vrecps_f64): Likewise.
18885
18886 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
18887
18888 * config/aarch64/aarch64.md
18889 (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3): Add attributes to
18890 iterators.
18891 (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>3): Likewise. Correct
18892 attributes.
18893 * config/aarch64/aarch64-builtins.c
18894 (aarch64_types_binop_uss_qualifiers): Delete.
18895 (TYPES_BINOP_USS): Likewise.
18896 (aarch64_types_binop_sus_qualifiers): Likewise.
18897 (TYPES_BINOP_SUS): Likewise.
18898 (aarch64_types_fcvt_from_unsigned_qualifiers): New.
18899 (TYPES_FCVTIMM_SUS): Likewise.
18900 * config/aarch64/aarch64-simd-builtins.def (scvtf): Use SHIFTIMM
18901 rather than BINOP.
18902 (ucvtf): Use FCVTIMM_SUS rather than BINOP_SUS.
18903 (fcvtzs): Use SHIFTIMM rather than BINOP.
18904 (fcvtzu): Use SHIFTIMM_USS rather than BINOP_USS.
18905
18906 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
18907
18908 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): Make FP
18909 costs relative to the cost of a register move.
18910
18911 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
18912
18913 * config/aarch64/aarch64.c (aarch64_modes_tieable_p):
18914 Allow scalar/single vector modes to be tieable.
18915
18916 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
18917
18918 * config/arm/cortex-a57.md (cortex_a57_fp_cpys): Add fcsel.
18919
18920 2016-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18921
18922 * params.def (PARAM_ALIGN_LOOP_ITERATIONS): Use "alignment" instead of
18923 "alignement".
18924 * tree.h (TYPE_ALIGN): Likewise.
18925
18926 2016-06-20 Georg-Johann Lay <avr@gjlay.de>
18927
18928 PR target/71103
18929 * config/avr/avr.md (movqi): Handle loading subreg:qi (const).
18930
18931 2016-06-20 Georg-Johann Lay <avr@gjlay.de>
18932
18933 * config/avr/avr.c (avr_print_operand): Fix "format not a string
18934 literal" build warnings.
18935 (avr_print_operand_address): Dito.
18936
18937 2016-06-19 David Edelsohn <dje.gcc@gmail.com>
18938
18939 PR target/71375
18940 * config/rs6000/aix51.h (TARGET_EXTRA_BUILTINS): Define as 0.
18941 * config/rs6000/aix43.h (TARGET_EXTRA_BUILTINS): Same.
18942
18943 2016-06-18 John David Anglin <danglin@gcc.gnu.org>
18944
18945 * config/pa/pa.h (TARGET_LONG_PIC_PCREL_CALL): Remove.
18946
18947 2016-06-18 Eric Botcazou <ebotcazou@adacore.com>
18948
18949 PR bootstrap/71435
18950 * reload1.c (reload): Pass 0 to finish_spills when called because
18951 update_eliminables_and_spill returns true and remove did_spill.
18952 (finish_spills): Adjust comment and document GLOBAL parameter.
18953
18954 2016-06-17 DJ Delorie <dj@redhat.com>
18955
18956 PR target/71338
18957 * config/rl78/rl78-expand.c (umulqihi3): Enable for G10.
18958 * config/rl78/rl78-virtual.c (umulhi3_shift_virt): Likewise.
18959 (umulqihi3_virt): Likewise.
18960 * config/rl78/rl78-real.c (umulhi3_shift_real): Likewise.
18961 (umulqihi3_real): Likewise.
18962
18963 2016-06-17 Martin Liska <mliska@suse.cz>
18964
18965 * tree-ssa-reassoc.c (transform_add_to_multiply): Use auto_vec.
18966
18967 2016-06-17 Martin Liska <mliska@suse.cz>
18968
18969 * predict.def: PRED_LOOP_EXIT from 92 to 85.
18970
18971 2016-06-17 James Greenhalgh <james.greenhalgh@arm.com>
18972
18973 * config/arm/arm_neon.h (vadd_f32): replace __FAST_MATH with
18974 __FAST_MATH__.
18975 (vaddq_f32): Likewise.
18976 (vmul_f32): Likewise.
18977 (vmulq_f32): Likewise.
18978 (vsub_f32): Likewise.
18979 (vsubq_f32): Likewise.
18980
18981 2016-06-17 Bin Cheng <bin.cheng@arm.com>
18982
18983 PR tree-optimization/71347
18984 * tree-ssa-loop-ivopts.c (determine_group_iv_cost_address): Compute
18985 cost for all uses in group.
18986
18987 2016-06-17 Bin Cheng <bin.cheng@arm.com>
18988
18989 * tree-vect-loop.c (vect_create_epilog_for_reduction): Only
18990 insert gimple seq if it's not empty.
18991
18992 2016-06-17 Bin Cheng <bin.cheng@arm.com>
18993
18994 * tree-vectorizer.h (struct dr_with_seg_len): Remove class
18995 member OFFSET.
18996 * tree-vect-data-refs.c (operator ==): Handle DR_OFFSET directly,
18997 rather than OFFSET.
18998 (comp_dr_with_seg_len_pair): Ditto.
18999 (vect_prune_runtime_alias_test_list): Ditto. Also Canonicalize
19000 struct dr_with_seg_len_pair against DR_OFFSET.
19001 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Handle
19002 DR_OFFSET directly.
19003
19004 2016-06-17 Szabolcs Nagy <szabolcs.nagy@arm.com>
19005
19006 * config/aarch64/geniterators.sh: Handle parenthesised conditions.
19007
19008 2016-06-16 John David Anglin <danglin@gcc.gnu.org>
19009
19010 * config/pa/pa.c (pa_output_pic_pcrel_sequence): New.
19011 (pa_output_lbranch): Use pa_output_pic_pcrel_sequence.
19012 (pa_output_millicode_call): Likewise.
19013 (pa_output_call): Likewise.
19014 (pa_output_indirect_call): Likewise.
19015 (pa_asm_output_mi_thunk): Likewise.
19016
19017 2016-06-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
19018
19019 * doc/invoke.texi (x86 Options): Fix -mno-fp-ret-in-387 typo.
19020
19021 2016-06-16 Martin Liska <mliska@suse.cz>
19022
19023 * predict.c (combine_predictions_for_insn): When we find a first
19024 match predictor, we should consider just predictors with
19025 PRED_FLAG_FIRST_MATCH. Print either first match (if any) or
19026 DS theory predictor.
19027 (combine_predictions_for_bb): Likewise.
19028
19029 2016-06-16 Jakub Jelinek <jakub@redhat.com>
19030
19031 * gimplify.c (gimplify_scan_omp_clauses): Handle COMPONENT_REFs
19032 with base of reference to struct.
19033
19034 2016-06-16 Uros Bizjak <ubizjak@gmail.com>
19035
19036 * doc/invoke.texi (x86 Options): Document -m80387 and -mhard-float.
19037
19038 2016-06-16 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
19039
19040 PR target/71151
19041 * config/avr/avr.c (avr_asm_init_sections): Remove setup of
19042 progmem_swtable_section.
19043 (progmem_swtable_section): Remove.
19044 (avr_asm_function_rodata_section): Remove.
19045 (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
19046 * config/avr/avr.h (JUMP_TABLES_IN_TEXT_SECTION: Define to 1.
19047
19048 2016-06-16 Jocelyn Mayer <l_indien@magic.fr>
19049
19050 * config/i386/driver-i386.c (host_detect_local_cpu): Set
19051 PROCESSOR_K8 for signature_CENTAUR_ebx with has_longmode.
19052 <case PROCESSOR_K8>: Pass nano-3000, nano, eden-x2 or k8 for
19053 signature_CENTAUR_ebx.
19054 * config/i386/i386.c (ix86_option_override_internal): Add
19055 definitions for VIA c7, samuel-2, nehemiah, esther, eden-x2, eden-x4,
19056 nano, nano-1000, nano-2000, nano-3000, nano-x2 and nano-x4.
19057 * doc/invoke.texi (x86 Options): Document new VIA -march entries.
19058
19059 2016-06-16 Martin Liska <mliska@suse.cz>
19060
19061 * predict.def: Add fortran loop preheader predictor.
19062 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Properly
19063 fold IFN_BUILTIN_EXPECT with a known constant argument.
19064
19065 2016-06-16 Martin Liska <mliska@suse.cz>
19066
19067 * predict.def: Add 'Fortran' to display text of all
19068 PRED_FORTRAN_* predictors.
19069
19070 2016-06-16 Uros Bizjak <ubizjak@gmail.com>
19071
19072 PR target/71242
19073 * config/ia64/ia64.c (enum ia64_builtins) [IA64_BUILTIN_NANQ]: New.
19074 [IA64_BUILTIN_NANSQ]: Ditto.
19075 (ia64_fold_builtin): New function.
19076 (TARGET_FOLD_BUILTIN): New define.
19077 (ia64_init_builtins) Declare const_string_type node.
19078 Add __builtin_nanq and __builtin_nansq builtin functions.
19079 (ia64_expand_builtin): Handle IA64_BUILTIN_NANQ and IA64_BUILTIN_NANSQ.
19080
19081 2016-06-16 Nick Clifton <nickc@redhat.com>
19082
19083 * config/msp430/msp430-opts.h (msp430_hwmult_types): Add
19084 MSP430_HWMULT_ prefix to enum values.
19085 (msp430_regions): Add MSP430_REGION_ prefix to enum values.
19086 * config/msp430/msp430.c: Update use of enum values.
19087 * config/msp430/msp430.md: Likewise.
19088 * config/msp430/msp430.opt: Likewise.
19089
19090 2016-06-16 Jan Hubicka <hubicka@ucw.cz>
19091
19092 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Fix estimation
19093 of comparsions in the last iteration.
19094
19095 2016-06-16 Claudiu Zissulescu <claziss@synopsys.com>
19096 Joern Rennecke <joern.rennecke@embecosm.com>
19097
19098 * config/arc/arc.c (arc_print_operand_address): Handle pc-relative
19099 addresses.
19100 (arc_needs_pcl_p): Add GOTOFFPC.
19101 (arc_legitimate_pic_addr_p): Likewise.
19102 (arc_output_pic_addr_const): Likewise.
19103 (arc_legitimize_pic_address): Generate a pc-relative address using
19104 GOTOFFPC.
19105 (arc_output_libcall): Use @pcl syntax.
19106 (arc_delegitimize_address_0): Delegitimize ARC_UNSPEC_GOTOFFPC.
19107 * config/arc/arc.md ("unspec"): Add ARC_UNSPEC_GOTOFFPC.
19108 (*movsi_insn): Use @pcl syntax.
19109 (doloop_begin_i): Likewise.
19110
19111 2016-06-16 Martin Liska <mliska@suse.cz>
19112
19113 * predict.def: Define a new predictor.
19114
19115 2016-06-16 Claudiu Zissulescu <claziss@synopsys.com>
19116
19117 * config/arc/arc.opt (mtp-regno): Update text.
19118
19119 2016-06-16 Renlin Li <renlin.li@arm.com>
19120
19121 * config/aarch64/aarch64.c (aarch64_legitimize_address): Fix a typo.
19122
19123 2016-06-16 Jakub Jelinek <jakub@redhat.com>
19124
19125 PR target/71554
19126 * config/i386/i386.md (setcc + movzbl peephole2): Use reg_set_p.
19127 (setcc + and peephole2): Likewise.
19128
19129 PR rtl-optimization/71532
19130 * cse.c (cse_insn): For const/pure calls, invalidate argument passing
19131 memory slots.
19132
19133 2016-06-15 Michael Meissner <meissner@linux.vnet.ibm.com>
19134
19135 * config/rs6000/vsx.md (VSINT_84): Add DImode to enable loading
19136 DImode constants with XXSPLTIB in vector registers.
19137 (vsx_extract_<mode>, V2DImode/V2DFmode): Combine both
19138 vsx_extract_<mode>_internal{1,2} into a single insn that handles
19139 direct move (both ISA 2.07 and ISA 3.0 versions), and optimizes
19140 extraction of the element at the top of the register as a scalar
19141 value.
19142 (vsx_extract_<mode>_internal1): Likewise.
19143 (vsx_extract_<mode>_internal2): Likewise.
19144 * config/rs6000/constraints.md (wi constraint): Remove a comment
19145 about DImode not being allowed in Altivec registers.
19146 (wB constraint): New constraint for constants that can be
19147 generated in Altivec registers with VSPLTISW/VUPKHSW.
19148 * config/rs6000/predicates.md (xxspltib_constant_split): Update
19149 comments.
19150 (xxspltib_constant_nosplit): Likewise.
19151 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Add
19152 support for -mupper-regs-di to enable DImode to go into Altivec
19153 registers.
19154 (POWERPC_MASKS): Likewise.
19155 (power7 cpu): Likewise.
19156 * config/rs6000/rs6000.opt (-mupper-regs-di): Likewise.
19157 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
19158 for DImode being allowed in Altivec registers. Update wi/wj
19159 constraints. Set scalar_in_vmx_p flag.
19160 (rs6000_option_override_internal): Add checks for -mupper-regs-di.
19161 (xxspltib_constant_p): Allow CONST_INT's with VOIDmode. Don't
19162 return true if we could use VSPLTISW/VUPKHSW instead of XXSPLTIB.
19163 (rs6000_opt_masks): Add -mupper-regs-di.
19164 * config/rs6000/rs6000.md (lfiwax): Update clobbers that don't use
19165 direct move to use wi and not wj.
19166 (lfiwzx): Likewise.
19167 (floatsi<mode>2_lfiwax_mem): Combine alternatives into a single
19168 alternative.
19169 (floatunssi<mode>2_lfiwzx_mem): Likewise.
19170 (fix_trunc<mode>di2_fctidz): Change second alternative to allow
19171 any VSX register, instead of just Altivec registers, to allow
19172 either operand to be an Altivec register or both.
19173 (fixuns_trunc<mode>di2_fctiduz): Likewise.
19174 (movdi_internal32): Add support for -mupper-regs-di. Add support
19175 to load constants via XXSPLTIB or VSPLTISW. Add spacing to allow
19176 the alternatives and attributes to be lined up to be easier to
19177 read.
19178 (movdi_internal64): Likewise.
19179 (64-bit DImode splitters): Change predicates to only split loading
19180 up GPR registers. Add splits for using XXSPLTIB or VSPLTISW to
19181 load constants in ISA 3.0 or ISA 2.07 respectively.
19182 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
19183 -mupper-regs-di. Update -mupper-regs-df and -mupper-regs-sf to
19184 mention -mcpu=power9 sets these options.
19185 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document the
19186 wB constraint.
19187
19188 2016-06-15 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
19189
19190 PR target/67353
19191 * config/avr/avr.c (avr_set_current_function): Warn misspelled
19192 interrupt/ signal handler if -Wmisspelled-isr flag is enabled.
19193 * config/avr/avr.opt (Wmisspelled-isr): New warning flag. Enabled
19194 by default to warn misspelled interrupt/ signal handler.
19195 * doc/invoke.texi (AVR Options): Document it. Update description
19196 for -nodevicelib option.
19197
19198 2016-06-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19199
19200 * config/aarch64/aarch64-simd.md (aarch64_<sur>shll_n<mode>): Clean
19201 up parentheses. Use GET_MODE_UNIT_BITSIZE.
19202 (aarch64_<sur>shll2_n<mode>): Likewise.
19203
19204 2016-06-15 Ilya Enkovich <ilya.enkovich@intel.com>
19205
19206 PR middle-end/71529
19207 * ipa-chkp.c (chkp_build_instrumented_fndecl): Fix
19208 DECL_CONTEXT for copied arguments.
19209
19210 2016-06-15 Alan Hayward <alan.hayward@arm.com>
19211
19212 PR tree-optimization/71483
19213 * tree-vect-loop.c (vectorizable_live_operation): Pick correct index
19214 for slp
19215
19216 2016-06-15 Martin Liska <mliska@suse.cz>
19217
19218 * predict.c (tree_predict_by_opcode): Call predict_edge_def
19219 instead of predict_edge w/o a probability.
19220
19221 2016-06-15 Alan Hayward <alan.hayward@arm.com>
19222
19223 PR tree-optimization/71439
19224 * tree-vect-loop.c (vect_analyze_loop_operations): Additional check for
19225 live PHIs.
19226
19227 2016-06-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19228
19229 * ifcvt.c (bb_ok_for_noce_multiple_sets): Allow simple lowpart
19230 register subregs in SET_SRC.
19231
19232 2016-06-15 Richard Biener <rguenther@suse.de>
19233
19234 * tree-vect-stmts.c (vectorizable_store): Remove strided grouped
19235 store restrictions.
19236
19237 2016-06-15 Richard Biener <rguenther@suse.de>
19238
19239 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Do
19240 not consider dependences between accesses that belong to the
19241 same group.
19242 (vect_analyze_data_ref_dependences): Do not analyze read-read
19243 or self-dependences.
19244
19245 2016-06-14 David Malcolm <dmalcolm@redhat.com>
19246
19247 * spellcheck-tree.c: Include spellcheck-tree.h rather than
19248 spellcheck.h.
19249 (find_closest_identifier): Reimplement in terms of
19250 best_match<tree,tree>.
19251 * spellcheck-tree.h: New file.
19252 * spellcheck.c (struct edit_distance_traits<const char *>): New
19253 struct.
19254 (find_closest_string): Reimplement in terms of
19255 best_match<const char *, const char *>.
19256 * spellcheck.h (levenshtein_distance): Move prototype of tree-based
19257 overload to spellcheck-tree.h.
19258 (find_closest_identifier): Likewise.
19259 (struct edit_distance_traits<T>): New template.
19260 (class best_match): New class.
19261
19262 2016-06-14 David Malcolm <dmalcolm@redhat.com>
19263
19264 * selftest-run-tests.c (selftest::run_tests): Call
19265 selftest::spellcheck_tree_c_tests.
19266 * selftest.h (selftest::spellcheck_tree_c_tests): New decl.
19267 * spellcheck-tree.c: Include selftest.h and stringpool.h.
19268 (selftest::test_find_closest_identifier): New function.
19269 (selftest::spellcheck_tree_c_tests): New function.
19270 * spellcheck.c (selftest::test_find_closest_string): Verify that
19271 the order of the vec does not affect the results for this case.
19272 (selftest::test_data): New array.
19273 (selftest::test_metric_conditions): New function.
19274 (selftest::spellcheck_c_tests): Add a test of case-comparison.
19275 Call selftest::test_metric_conditions.
19276
19277 2016-06-14 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19278
19279 * config/rs6000/rs6000-builtin.def (commentary): Typo.
19280 (BU_P9_MISC_1): Likewise.
19281 (BU_P9_64BIT_MISC_0): Likewise.
19282 (BU_P9_MISC_0): Likewise.
19283
19284 2016-06-14 David Malcolm <dmalcolm@redhat.com>
19285
19286 * gcc-rich-location.c
19287 (gcc_rich_location::add_fixit_misspelled_id): New method.
19288 * gcc-rich-location.h
19289 (gcc_rich_location::add_fixit_misspelled_id): Add decl.
19290
19291 2016-06-14 Andreas Tobler <andreast@gcc.gnu.org>
19292
19293 * config/arm/freebsd.h: Only enable unaligned access for armv6 on
19294 FreeBSD 11 and above.
19295
19296 2016-06-14 Uros Bizjak <ubizjak@gmail.com>
19297
19298 * config/i386/i386.md (signbittf2): Emit sse_movmskps for TARGET_SSE.
19299
19300 2016-06-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19301
19302 * expmed.h: Close parenthesis in "at your option" in copyright
19303 boilerplate.
19304 * lower-subreg.h: Likewise.
19305
19306 2016-06-14 Richard Biener <rguenther@suse.de>
19307
19308 PR middle-end/71526
19309 * genmatch.c (expr::gen_transform): Use in_type for comparisons
19310 if available.
19311
19312 2015-06-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19313
19314 * config/aarch64/aarch64.c (aarch64_mask_and_shift_for_ubfiz_p):
19315 New function.
19316 (aarch64_rtx_costs): Use it. Rewrite CONST_INT_P (op1) case to handle
19317 mask+shift version.
19318 * config/aarch64/aarch64-protos.h (aarch64_mask_and_shift_for_ubfiz_p):
19319 New prototype.
19320 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Replace
19321 matching condition with aarch64_mask_and_shift_for_ubfiz_p.
19322
19323 2016-06-14 Richard Biener <rguenther@suse.de>
19324
19325 PR tree-optimization/71522
19326 * tree-ssa.c (non_rewritable_lvalue_p): Do not rewrite non-float
19327 copying into float copying.
19328
19329 2016-06-14 Jakub Jelinek <jakub@redhat.com>
19330
19331 PR tree-optimization/71520
19332 * tree-ssa-tail-merge.c (find_duplicate): Handle labels.
19333 (replace_block_by): Move user labels from bb1 to bb2.
19334
19335 2016-06-14 Richard Biener <rguenther@suse.de>
19336
19337 PR middle-end/71310
19338 PR bootstrap/71510
19339 * expr.h (get_bit_range): Declare.
19340 * expr.c (get_bit_range): Export.
19341 * fold-const.c (optimize_bit_field_compare): Use get_bit_range and
19342 word_mode again to constrain the bitfield access.
19343
19344 2016-06-14 Richard Biener <rguenther@suse.de>
19345
19346 PR tree-optimization/71521
19347 * tree-vrp.c (extract_range_from_binary_expr_1): Guard
19348 division int_const_binop against zero divisor.
19349
19350 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
19351
19352 * config/i386/i386.md (signbittf2): New expander.
19353 * config/i386/sse.md (ptesttf2): New insn pattern.
19354
19355 2016-06-13 David Malcolm <dmalcolm@redhat.com>
19356
19357 PR bootstrap/71481
19358 * input.c (selftest::test_reading_source_line): Avoid reading from
19359 __FILE__ by creating a tempfile with known content and reading
19360 from that instead.
19361
19362 2016-06-13 David Malcolm <dmalcolm@redhat.com>
19363
19364 * pretty-print.c (assert_pp_format_colored): Skip the test if
19365 GCC_COLORS is set.
19366 (test_pp_format): Remove comment about GCC_COLORS.
19367
19368 2016-06-13 David Malcolm <dmalcolm@redhat.com>
19369
19370 * input.c (test_reading_source_line): Use SELFTEST_LOCATION.
19371 * pretty-print.c (assert_pp_format_va): Add location param and use
19372 it with ASSERT_STREQ_AT.
19373 (assert_pp_format): Add location param and pass it to
19374 assert_pp_format_va.
19375 (assert_pp_format_colored): Likewise.
19376 (ASSERT_PP_FORMAT_1): New.
19377 (ASSERT_PP_FORMAT_2): New.
19378 (ASSERT_PP_FORMAT_3): New.
19379 (test_pp_format): Provide SELFTEST_LOCATION throughout, either
19380 explicitly, or implicitly via the above macros.
19381 * selftest.c (selftest::pass): Use a selftest::location rather
19382 than file and line.
19383 (selftest::fail): Likewise. Print the function name.
19384 (selftest::fail_formatted): Likewise.
19385 (selftest::assert_streq): Use a selftest::location rather than
19386 file and line.
19387 * selftest.h (selftest::location): New struct.
19388 (SELFTEST_LOCATION): New macro.
19389 (selftest::pass): Accept a const location & rather than file
19390 and line.
19391 (selftest::fail): Likewise.
19392 (selftest::fail_formatted): Likewise.
19393 (selftest::assert_streq): Likewise.
19394 (ASSERT_TRUE): Update for above changes, using SELFTEST_LOCATION.
19395 (ASSERT_FALSE): Likewise.
19396 (ASSERT_EQ): Likewise.
19397 (ASSERT_NE): Likewise.
19398 (ASSERT_STREQ): Likewise.
19399 (ASSERT_PRED1): Likewise.
19400 (ASSERT_STREQ_AT): New macro.
19401
19402 2016-06-13 David Malcolm <dmalcolm@redhat.com>
19403
19404 * selftest.c (selftest::fail_formatted): New function.
19405 (selftest::assert_streq): New function.
19406 * selftest.h (selftests::fail_formatted): New decl.
19407 (selftest::assert_streq): New decl.
19408 (ASSERT_STREQ): Reimplement in terms of selftest::assert_streq.
19409
19410 2016-06-13 Jeff Law <law@redhat.com>
19411
19412 PR tree-optimization/71403
19413 * tree-ssa-threadbackward.c
19414 (convert_and_register_jump_thread_path): No longer accept reference
19415 to path. Do not pop items off the path anymore.
19416 (fsm_find_control_statement_thread_paths): Do not allow threading
19417 to a deeper loop nest. Pop the last item off the path here rather
19418 than in convert_and_register_jump_thread_path.
19419
19420 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
19421 Wilco Dijkstra <Wilco.Dijkstra@arm.com>
19422
19423 [AArch64] Emit division using the Newton series
19424
19425 * config/aarch64/aarch64-protos.h
19426 (cpu_approx_modes): Add new member "division".
19427 (aarch64_emit_approx_div): Declare new function.
19428 * config/aarch64/aarch64.c
19429 (generic_approx_modes): New member "division".
19430 (exynosm1_approx_modes): Likewise.
19431 (xgene1_approx_modes): Likewise.
19432 (aarch64_emit_approx_div): Define new function.
19433 * config/aarch64/aarch64.md ("div<mode>3"): New expansion.
19434 * config/aarch64/aarch64-simd.md ("div<mode>3"): Likewise.
19435 * config/aarch64/aarch64.opt (-mlow-precision-div): Add new option.
19436 * doc/invoke.texi (-mlow-precision-div): Describe new option.
19437
19438 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
19439 Wilco Dijkstra <wilco.dijkstra@arm.com>
19440
19441 [AArch64] Emit square root using the Newton series
19442
19443 * config/aarch64/aarch64-protos.h
19444 (aarch64_emit_approx_rsqrt): Replace with new function
19445 "aarch64_emit_approx_sqrt".
19446 (cpu_approx_modes): New member "sqrt".
19447 * config/aarch64/aarch64.c
19448 (generic_approx_modes): New member "sqrt".
19449 (exynosm1_approx_modes): Likewise.
19450 (xgene1_approx_modes): Likewise.
19451 (aarch64_emit_approx_rsqrt): Replace with new function
19452 "aarch64_emit_approx_sqrt".
19453 (aarch64_override_options_after_change_1): Handle new option.
19454 * config/aarch64/aarch64-simd.md
19455 (rsqrt<mode>2): Use new function instead.
19456 (sqrt<mode>2): New expansion and insn definitions.
19457 * config/aarch64/aarch64.md: Likewise.
19458 * config/aarch64/aarch64.opt
19459 (mlow-precision-sqrt): Add new option description.
19460 * doc/invoke.texi (mlow-precision-sqrt): Likewise.
19461
19462 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
19463
19464 [AArch64] Add more choices for the reciprocal square root approximation
19465
19466 Allow a target to prefer such operation depending on the operation mode.
19467
19468 * config/aarch64/aarch64-protos.h
19469 (AARCH64_APPROX_MODE): New macro.
19470 (AARCH64_APPROX_{NONE,ALL}): Likewise.
19471 (cpu_approx_modes): New structure.
19472 (tune_params): New member "approx_modes".
19473 * config/aarch64/aarch64-tuning-flags.def
19474 (AARCH64_EXTRA_TUNE_APPROX_RSQRT): Remove macro.
19475 * config/aarch64/aarch64.c
19476 (generic_approx_modes): New core "cpu_approx_modes" structure.
19477 (exynosm1_approx_modes): Likewise.
19478 (xgene1_approx_modes): Likewise.
19479 (generic_tunings): New member "approx_modes".
19480 (cortexa35_tunings): Likewise.
19481 (cortexa53_tunings): Likewise.
19482 (cortexa57_tunings): Likewise.
19483 (cortexa72_tunings): Likewise.
19484 (exynosm1_tunings): Likewise.
19485 (thunderx_tunings): Likewise.
19486 (xgene1_tunings): Likewise.
19487 (use_rsqrt_p): New argument for the mode and use new member from
19488 "tune_params".
19489 (aarch64_builtin_reciprocal): Devise mode from builtin.
19490 (aarch64_optab_supported_p): New argument for the mode.
19491 * doc/invoke.texi (-mlow-precision-recip-sqrt): Reword description.
19492
19493 2016-06-13 Kelvin Nilsen <kelvin@gcc.gnu.org>
19494
19495 * config/rs6000/rs6000.h (RS6000_BTM_COMMON): Add the
19496 RS6000_BTM_MODULO flag into the set of flags that are considered
19497 to be part of the common configuration.
19498
19499 2016-06-13 Kelvin Nilsen <kelvin@gcc.gnu.org>
19500
19501 * config/rs6000/altivec.h (vec_absd): New macro for vector absolute
19502 difference unsigned.
19503 (vec_absdb): New macro for vector absolute difference unsigned
19504 byte.
19505 (vec_absdh): New macro for vector absolute difference unsigned
19506 half-word.
19507 (vec_absdw): New macro for vector absolute difference unsigned word.
19508 * config/rs6000/altivec.md (UNSPEC_VADU): New value.
19509 (vadu<mode>3): New insn.
19510 (*p9_vadu<mode>3): New insn.
19511 * config/rs6000/rs6000-builtin.def (vadub): New built-in
19512 definition.
19513 (vaduh): New built-in definition.
19514 (vaduw): New built-in definition.
19515 (vadu): New overloaded built-in definition.
19516 (vadub): New overloaded built-in definition.
19517 (vaduh): New overloaded built-in definition.
19518 (vaduw): New overloaded built-in definition.
19519 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
19520 overloaded vector absolute difference unsigned functions.
19521 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
19522 the ISA 3.0 vector absolute difference unsigned built-in functions.
19523
19524 2016-06-13 Eric Botcazou <ebotcazou@adacore.com>
19525
19526 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use a uniform test and
19527 update shared_lookup_references only once after changing operands.
19528
19529 2016-06-13 Thomas Schwinge <thomas@codesourcery.com>
19530
19531 PR middle-end/71373
19532 * tree-nested.c (convert_nonlocal_omp_clauses)
19533 (convert_local_omp_clauses): Document missing OMP_CLAUSE_*.
19534
19535 * tree-cfg.c (edge_to_cases_cleanup): Fix CASE_CHAIN typo.
19536 * tree.def (CASE_LABEL_EXPR): Likewise.
19537
19538 2016-06-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
19539
19540 PR bootstrap/71481
19541 * input.c (test_builtins): Fix an assertion.
19542
19543 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
19544
19545 * config/i386/i386.md (paritydi2): Use ix86_expand_setcc.
19546 (paritysi2): Ditto.
19547 (isinfxf2): Ditto.
19548 (isinf<mode>2): Ditto.
19549
19550 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
19551
19552 * ggc-tests.c (test_finalization): Only test need_finalization_p
19553 for GCC_VERSION >= 4003.
19554
19555 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19556
19557 * config/s390/vecintrin.h: Fix file description in comment.
19558
19559 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19560
19561 * config/s390/s390-builtin-types.def: Change builtin type naming
19562 scheme to match builtin-types.def.
19563
19564 2016-06-13 Marc Glisse <marc.glisse@inria.fr>
19565
19566 * fold-const.c (optimize_minmax_comparison): Remove.
19567 (fold_comparison): Remove call to the above.
19568 * match.pd (MIN (X, Y) == X, MIN (X, 5) == 0, MIN (X, C1) < C2):
19569 New transformations.
19570
19571 2016-06-13 Alan Hayward <alan.hayward@arm.com>
19572
19573 PR tree-optimization/71416
19574 * tree-vect-loop.c (vectorizable_live_operation): Let worklist have
19575 multiple entries
19576
19577 2016-06-13 Martin Liska <mliska@suse.cz>
19578
19579 * predict.c (enum predictor_reason): Prefix enum with REASON_.
19580 (combine_predictions_for_insn): Likewise.
19581 (prune_predictions_for_bb): Likewise.
19582 (combine_predictions_for_bb): Likewise.
19583
19584 2016-06-13 Richard Biener <rguenther@suse.de>
19585
19586 PR tree-optimization/71505
19587 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Make
19588 assert match comment.
19589
19590 2016-06-13 Marek Polacek <polacek@redhat.com>
19591
19592 PR middle-end/71476
19593 * gimplify.c (maybe_warn_switch_unreachable): Factored out of
19594 gimplify_switch_expr.
19595 (warn_switch_unreachable_r): New function.
19596
19597 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19598
19599 PR target/71379
19600 * config/s390/s390.c (s390_expand_builtin): Increase MAX_ARGS by
19601 one.
19602
19603 2016-06-13 Richard Biener <rguenther@suse.de>
19604
19605 PR middle-end/64516
19606 * fold-const.c (fold_unary_loc): Preserve alignment when
19607 folding a VIEW_CONVERT_EXPR into a MEM_REF.
19608
19609 2016-06-13 Martin Liska <mliska@suse.cz>
19610
19611 PR sanitizer/71458
19612 * toplev.c (process_options): Do not enable -fcheck-pointer-bounds
19613 w/ -fsanitize=bounds.
19614
19615 2016-06-12 Uros Bizjak <ubizjak@gmail.com>
19616
19617 * config/i386/i386.c (ix86_init_builtins): Calculate
19618 FLOAT128_FTYPE_CONST_STRING function type only once.
19619 * doc/extend.texi (x86 Built-in Functions): Update text, __float128
19620 built-in functions are available for x86-32 and x86-64 targets.
19621
19622 2016-06-12 Uros Bizjak <ubizjak@gmail.com>
19623
19624 PR target/71241
19625 * config/i386/i386.i386-builtin-types.def (CONST_STRING):
19626 New primitive type.
19627 (FLOAT128_FTYPE_CONST_STRING): New function type.
19628 * config/i386/i386.c (enum ix86_builtins) [IX86_BUILTIN_NANQ]: New.
19629 [IX86_BUILTIN_NANSQ]: Ditto.
19630 (ix86_fold_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
19631 (ix86_init_builtin_types): Declare const_string_type_node.
19632 (ix86_init_builtins): Add __builtin_nanq and __builtin_nansq
19633 builtin functions.
19634 (ix86_expand_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
19635 * doc/extend.texi (x86 Built-in Functions): Document
19636 __builtin_nanq and __builtin_nansq.
19637
19638 2016-06-11 Jiong Wang <jiong.wang@arm.com>
19639
19640 PR target/71061
19641 * config/arm/arm-protos.h (arm_attr_length_pop_multi): New declaration.
19642 * config/arm/arm.c (arm_attr_length_pop_multi): New function to return
19643 length for pop patterns.
19644 (arm_attr_length_push_multi): Update comments.
19645 * config/arm/arm.md (*load_multiple_with_writeback): Set "length"
19646 attribute.
19647 (*pop_multiple_with_writeback_and_return): Likewise.
19648 (*pop_multiple_with_return): Likewise.
19649
19650 2016-06-11 Segher Boessenkool <segher@kernel.crashing.org>
19651
19652 PR middle-end/71310
19653 * fold-const.c (optimize_bit_field_compare): Don't try to use
19654 word_mode unconditionally for reading the bit field, look at
19655 DECL_BIT_FIELD_REPRESENTATIVE instead.
19656
19657 2016-06-11 Kugan Vivekanandarajah <kuganv@linaro.org>
19658
19659 PR middle-end/71478
19660 * tree-ssa-reassoc.c (reassociate_bb): Remove (-1) from ops list for
19661 vector integer type.
19662
19663 2016-06-10 Jakub Jelinek <jakub@redhat.com>
19664
19665 PR middle-end/71494
19666 * tree-nested.c (convert_nonlocal_reference_stmt): For GIMPLE_GOTO
19667 without LABEL_DECL, set *handled_ops_p to false instead of true.
19668
19669 2016-06-10 Martin Sebor <msebor@redhat.com>
19670
19671 PR c/71392
19672 * builtin-attrs.def (ATTR_NOTHROW_NONNULL_LEAF_LIST): New macro.
19673 (ATTR_NOTHROW_NONNULL_TYPEGENERIC_LEAF): Same.
19674 * builtins.def (BUILT_IN_SADD_OVERFLOW, BUILT_IN_SADDL_OVERFLOW): Use
19675 them.
19676 (BUILT_IN_SADDLL_OVERFLOW, BUILT_IN_SSUB_OVERFLOW): Same.
19677 (BUILT_IN_SSUBL_OVERFLOW, BUILT_IN_SSUBLL_OVERFLOW): Same.
19678 (BUILT_IN_SMUL_OVERFLOW, BUILT_IN_SMULL_OVERFLOW): Same.
19679 (BUILT_IN_SMULLL_OVERFLOW, BUILT_IN_UADD_OVERFLOW): Same.
19680 (BUILT_IN_UADDL_OVERFLOW, BUILT_IN_UADDLL_OVERFLOW): Same.
19681 (BUILT_IN_USUB_OVERFLOW, BUILT_IN_USUBL_OVERFLOW): Same.
19682 (BUILT_IN_USUBLL_OVERFLOW, BUILT_IN_UMUL_OVERFLOW): Same.
19683 (BUILT_IN_UMULL_OVERFLOW, BUILT_IN_UMULLL_OVERFLOW): Same.
19684
19685 2016-06-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
19686
19687 * config/arm/arm.h (pool_vector_label,
19688 return_used_this_function): Remove.
19689
19690 2016-06-10 Jeff Law <law@redhat.com>
19691
19692 PR tree-optimization/71335
19693 * tree-ssa-threadbackward.c (profitable_jump_thread_path): Filter out
19694 zero length paths here.
19695 (convert_and_register_jump_thread_path): Remove hacks related to
19696 duplicated blocks in the jump thread path.
19697 (fsm_find_control_statement_thread_paths): Avoid putting the same
19698 block on the thread path twice, but ensure the thread path is
19699 unchanged from the caller's point of view.
19700
19701 2016-06-10 Jan Hubicka <hubicka@ucw.cz>
19702
19703 * predict.c (predict_loops): Remove PRED_LOOP_BRANCH.
19704 * predict.def (PRED_LOOP_BRANCH): Remove.
19705
19706 2016-06-10 David Malcolm <dmalcolm@redhat.com>
19707
19708 * Makefile.in (OBJS): Add ggc-tests.o.
19709 (GTFILES): Add ggc-tests.c.
19710 * ggc-tests.c: New file.
19711 * selftest-run-tests.c (selftest::run_tests): Call
19712 selftest::ggc_tests_c_tests.
19713 * selftest.h (selftest::ggc_tests_c_tests): New prototype.
19714
19715 2016-06-10 Alexander Monakov <amonakov@ispras.ru>
19716
19717 * match.pd (-1 / B < A): Use :c to avoid pattern duplication.
19718
19719 2016-06-10 Maxim Ostapenko <m.ostapenko@samsung.com>
19720
19721 PR sanitizer/71480
19722 * varasm.c (place_block_symbol): Adjust alignment for asan protected
19723 STRING_CSTs even if TREE_CONSTANT_POOL_ADDRESS_P.
19724
19725 2016-06-10 Jan Hubicka <hubicka@ucw.cz>
19726
19727 * profile.c: Include cfgloop.h.
19728 (branch_prob): Compute estimated number of iterations.
19729 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Do not
19730 recompute estimate number of iterations from profile.
19731
19732 2016-06-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
19733
19734 PR inline-asm/68843
19735 * reg-stack.c (check_asm_stack_operands): Explicit input arguments
19736 must be grouped on top of stack. Don't force early clobber
19737 on ordinary reg outputs.
19738
19739 2016-06-10 Richard Biener <rguenther@suse.de>
19740
19741 * targhooks.c (default_builtin_vectorization_cost): Adjust
19742 vec_construct cost.
19743
19744 2016-06-10 Richard Biener <rguenther@suse.de>
19745
19746 * gimple-fold.c (gimple_fold_builtin_memory_op): Make sure
19747 to fold the RHS to a constant if possible.
19748
19749 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
19750
19751 PR middle-end/71373
19752 * tree-nested.c (convert_nonlocal_omp_clauses)
19753 (convert_local_omp_clauses): Handle OMP_CLAUSE_ASYNC,
19754 OMP_CLAUSE_WAIT, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
19755 OMP_CLAUSE__CACHE_, OMP_CLAUSE_TILE.
19756
19757 * gimplify.c (gimplify_adjust_omp_clauses): Discard
19758 OMP_CLAUSE_TILE.
19759 * omp-low.c (scan_sharing_clauses): Don't expect OMP_CLAUSE_TILE.
19760
19761 * omp-low.c (scan_sharing_clauses): Don't expect
19762 OMP_CLAUSE__CACHE_.
19763
19764 2016-06-10 Alan Hayward <alan.hayward@arm.com>
19765
19766 PR tree-optimization/71407
19767 PR tree-optimization/71416
19768 * tree-vect-loop.c (vectorizable_live_operation): Use vectype for
19769 BIT_FIELD_REF type.
19770
19771 2016-06-10 Richard Biener <rguenther@suse.de>
19772
19773 PR middle-end/71477
19774 * cfgloop.c (alloc_loop): Initialize nb_iterations_likely_upper_bound.
19775
19776 2016-06-09 Eric Botcazou <ebotcazou@adacore.com>
19777
19778 * df-problems.c (df_note_bb_compute): Guard use of DF_INSN_INFO_GET.
19779
19780 2016-06-09 Vladimir Makarov <vmakarov@redhat.com>
19781 Jiong Wang <jiong.wang@arm.com>
19782
19783 PR rtl-optimization/70751
19784 * lra-constraints.c (process_alt_operands): Recognize Non-pseudo
19785 spilled into memory.
19786
19787 2016-06-09 Jonathan Yong <10walls@gmail.com>
19788
19789 Revert:
19790 2015-09-21 Jonathan Yong <10walls@gmail.com>
19791
19792 * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
19793 sysroot/usr/lib/32api for additional win32 libraries,
19794 fixes failing Cygwin bootstrapping.
19795
19796 2016-06-09 Marcin Baczyński <marbacz@gmail.com>
19797
19798 * diagnostic.h (diagnostic_line_cutoff, diagnostic_flush_buffer):
19799 Delete.
19800
19801 2016-06-09 David Malcolm <dmalcolm@redhat.com>
19802
19803 PR bootstrap/71471
19804 * pretty-print.c (pp_indent): Specify that %p is printed in a
19805 host-dependent manner.
19806 (test_pp_format): Remove the test for %p.
19807
19808 2016-06-09 Maciej W. Rozycki <macro@imgtec.com>
19809
19810 * config/mips/mips.c (mips_output_jump): Fix formatting.
19811
19812 2016-06-09 Richard Biener <rguenther@suse.de>
19813
19814 PR tree-optimization/71462
19815 * tree-ssa-loop-manip.c (find_uses_to_rename): Guard against
19816 removed blocks.
19817
19818 2016-06-09 Martin Liska <mliska@suse.cz>
19819
19820 * predict.c (dump_prediction): Add new argument.
19821 (enum predictor_reason): New enum.
19822 (struct predictor_hash): New struct.
19823 (predictor_hash::hash): New function.
19824 (predictor_hash::equal): Likewise.
19825 (not_removed_prediction_p): New function.
19826 (prune_predictions_for_bb): Likewise.
19827 (combine_predictions_for_bb): Prune predictions.
19828
19829 2016-06-09 Martin Liska <mliska@suse.cz>
19830
19831 * predict.c (filter_predictions): New function.
19832 (remove_predictions_associated_with_edge): Use the filter
19833 function.
19834 (equal_edge_p): New function.
19835
19836 2016-06-09 Stefan Bruens <stefan.bruens@rwth-aachen.de>
19837
19838 * doc/invoke.texi (ARM Options): Use lexicographical ordering.
19839 Correct usage of @samp vs @option, add @samp where appropriate.
19840 Add -march={armv6k,armv6z,arm6zk}, remove -march=ep9312.
19841 Add armv6s-m and document it, as it is no official ARM name.
19842
19843 2016-06-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19844
19845 * ifcvt.c (struct noce_if_info): Add transform_name field.
19846 (noce_try_move): Set if_info->transform_name to the function name.
19847 (noce_try_ifelse_collapse): Likewise.
19848 (noce_try_store_flag): Likewise.
19849 (noce_try_inverse_constants): Likewise.
19850 (noce_try_store_flag_constants): Likewise.
19851 (noce_try_addcc): Likewise.
19852 (noce_try_store_flag_mask): Likewise.
19853 (noce_try_cmove): Likewise.
19854 (noce_try_cmove_arith): Likewise.
19855 (noce_try_minmax): Likewise.
19856 (noce_try_abs): Likewise.
19857 (noce_try_sign_mask): Likewise.
19858 (noce_try_bitop): Likewise.
19859 (noce_convert_multiple_sets): Likewise.
19860 (noce_process_if_block): Print if_info->transform_name to
19861 dump_file if transformation succeeded.
19862
19863 2016-06-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19864
19865 * config/arm/cortex-a57.md (cortex_a57_alu):
19866 Handle csel type.
19867
19868 2016-06-08 Martin Sebor <msebor@redhat.com>
19869 Jakub Jelinek <jakub@redhat.com>
19870
19871 PR c++/70507
19872 PR c/68120
19873 * builtins.def (BUILT_IN_ADD_OVERFLOW_P, BUILT_IN_SUB_OVERFLOW_P,
19874 BUILT_IN_MUL_OVERFLOW_P): New builtins.
19875 * builtins.c: Include gimple-fold.h.
19876 (fold_builtin_arith_overflow): Handle
19877 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
19878 (fold_builtin_3): Likewise.
19879 * doc/extend.texi (Integer Overflow Builtins): Document
19880 __builtin_{add,sub,mul}_overflow_p.
19881
19882 2016-06-08 Jose E. Marchesi <jose.marchesi@oracle.com>
19883
19884 * config/sparc/driver-sparc.c (cpu_names): Fix the entry for the
19885 SPARC-M7 and add an entry for SPARC-S7 cpus (Sonoma).
19886
19887 2016-06-08 Alan Lawrence <alan.lawrence@arm.com>
19888
19889 * config/aarch64/aarch64.c (aarch64_function_arg_alignment):
19890 Rewrite, looking one level down for records and arrays.
19891
19892 2016-06-08 David Malcolm <dmalcolm@redhat.com>
19893
19894 * pretty-print.c: Include "selftest.h".
19895 (pp_format): Fix comment.
19896 (identifier_to_locale): Likewise.
19897 (selftest::test_basic_printing): New function.
19898 (selftest::assert_pp_format): New function.
19899 (selftest::test_pp_format): New function.
19900 (selftest::pretty_print_c_tests): New function.
19901 * selftest-run-tests.c (selftest::run_tests): Call
19902 selftest::pretty_print_c_tests.
19903 * selftest.h (pretty_print_c_tests): New declaration.
19904
19905 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
19906
19907 * invoke.texi (max-loop-headers-insns): Document.
19908 * params.def (PARAM_MAX_LOOP_HEADER_INSNS): New.
19909 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Update comment.
19910 (ch_base::copy_headers): Use PARAM_MAX_LOOP_HEADER_INSNS.
19911
19912 2016-06-08 Richard Biener <rguenther@suse.de>
19913
19914 * tree-vect-stmts.c (vectorizable_load): Remove restrictions
19915 on strided SLP loads and fall back to scalar loads in case
19916 we can't chunk them.
19917
19918 2016-06-08 Richard Biener <rguenther@suse.de>
19919
19920 PR tree-optimization/71452
19921 * tree-ssa.c (non_rewritable_lvalue_p): Make sure that the
19922 type used for the SSA rewrite has enough precision to cover
19923 the dynamic type of the location.
19924
19925 2016-06-08 Jakub Jelinek <jakub@redhat.com>
19926 Richard Biener <rguenther@suse.de>
19927
19928 PR c++/71448
19929 * fold-const.c (fold_comparison): Handle CONSTANT_CLASS_P (base0)
19930 the same as DECL_P (base0) for indirect_base0. Use equality_code
19931 in one further place.
19932
19933 2016-06-08 Richard Sandiford <richard.sandiford@arm.com>
19934
19935 * expmed.c (store_bit_field_1): Do not restrict a multiword op0
19936 to one word if the field is known to overlap other words.
19937 (extract_bit_field_1): Likewise.
19938 (store_split_bit_field): Remove compensating code.
19939 (extract_split_bit_field): Likewise.
19940
19941 2016-06-08 Bernd Schmidt <bschmidt@redhat.com>
19942
19943 PR debug/71432
19944 PR ada/71413
19945 * tree-ssa-strlen.c (handle_builtin_memcmp): Ignore debug insns.
19946
19947 2016-06-08 Jiong Wang <jiong.wang@arm.com>
19948
19949 * config/aarch64/aarch64-builtins.def (faddp): New builtins for modes in
19950 VDQF.
19951 * config/aarch64/aarch64-simd.md (aarch64_faddp<mode>): New.
19952 (arch64_addpv4sf): Delete.
19953 (reduc_plus_scal_v4sf): Use "gen_aarch64_faddpv4sf" instead of
19954 "gen_aarch64_addpv4sf".
19955 * config/aarch64/arm_neon.h (vpadd_f32): Remove inline assembly. Use
19956 builtin.
19957 (vpadds_f32): Likewise.
19958 (vpaddq_f32): Likewise.
19959 (vpaddq_f64): Likewise.
19960
19961 2016-06-08 Jiong Wang <jiong.wang@arm.com>
19962
19963 * config/aarch64/aarch64-builtins.def (fabd): New builtins for modes
19964 VALLF.
19965 * config/aarch64/aarch64-simd.md (fabd<mode>_3): Extend modes from VDQF
19966 to VALLF. Rename to "fabd<mode>3".
19967 "*fabd_scalar<mode>3): Delete.
19968 * config/aarch64/arm_neon.h (vabds_f32): Remove inline assembly.
19969 Use builtin.
19970 (vabdd_f64): Likewise.
19971 (vabd_f32): Likewise.
19972 (vabd_f64): Likewise.
19973 (vabdq_f32): Likewise.
19974 (vabdq_f64): Likewise.
19975
19976 2016-06-08 Jiong Wang <jiong.wang@arm.com>
19977
19978 * config/aarch64/aarch64-builtins.def (rsqrts): New builtins for modes
19979 VALLF.
19980 * config/aarch64/aarch64-simd.md (aarch64_rsqrts_<mode>3): Rename to
19981 "aarch64_rsqrts<mode>".
19982 * config/aarch64/aarch64.c (get_rsqrts_type): Update gen* name.
19983 * config/aarch64/arm_neon.h (vrsqrtss_f32): Remove inline assembly. Use
19984 builtin.
19985 (vrsqrtsd_f64): Likewise.
19986 (vrsqrts_f32): Likewise.
19987 (vrsqrts_f64): Likewise.
19988 (vrsqrtsq_f32): Likewise.
19989 (vrsqrtsq_f64): Likewise.
19990
19991 2016-06-08 Jiong Wang <jiong.wang@arm.com>
19992
19993 * config/aarch64/aarch64-builtins.def (rsqrte): New builtins for modes
19994 VALLF.
19995 * config/aarch64/aarch64-simd.md (aarch64_rsqrte_<mode>2): Rename to
19996 "aarch64_rsqrte<mode>".
19997 * config/aarch64/aarch64.c (get_rsqrte_type): Update gen* name.
19998 * config/aarch64/arm_neon.h (vrsqrts_f32): Remove inline assembly. Use
19999 builtin.
20000 (vrsqrted_f64): Likewise.
20001 (vrsqrte_f32): Likewise.
20002 (vrsqrte_f64): Likewise.
20003 (vrsqrteq_f32): Likewise.
20004 (vrsqrteq_f64): Likewise.
20005
20006 2016-06-08 Jiong Wang <jiong.wang@arm.com>
20007
20008 * config/aarch64/aarch64-builtins.def (scvtf): Register vector modes.
20009 (ucvtf): Likewise.
20010 (fcvtzs): Likewise.
20011 (fcvtzu): Likewise.
20012 * config/aarch64/aarch64-simd.md
20013 (<FCVT_F2FIXED:fcvt_fixed_insn><VDQF:mode>3): New.
20014 (<FCVT_FIXED2F:fcvt_fixed_insn><VDQ_SDI:mode>3): Likewise.
20015 * config/aarch64/arm_neon.h (vcvt_n_f32_s32): Remove inline assembly.
20016 Use builtin.
20017 (vcvt_n_f32_u32): Likewise.
20018 (vcvt_n_s32_f32): Likewise.
20019 (vcvt_n_u32_f32): Likewise.
20020 (vcvtq_n_f32_s32): Likewise.
20021 (vcvtq_n_f32_u32): Likewise.
20022 (vcvtq_n_f64_s64): Likewise.
20023 (vcvtq_n_f64_u64): Likewise.
20024 (vcvtq_n_s32_f32): Likewise.
20025 (vcvtq_n_s64_f64): Likewise.
20026 (vcvtq_n_u32_f32): Likewise.
20027 (vcvtq_n_u64_f64): Likewise.
20028 * config/aarch64/iterators.md (VDQ_SDI): New mode iterator.
20029 (VSDQ_SDI): Likewise.
20030 (fcvt_target): Support V4DI, V4SI and V2SI.
20031 (FCVT_TARGET): Likewise.
20032
20033 2016-06-08 Jiong Wang <jiong.wang@arm.com>
20034
20035 * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New
20036 (TYPES_BINOP_SUS): Likewise.
20037 (aarch64_simd_builtin_data): Update include file name.
20038 (aarch64_builtins): Likewise.
20039 * config/aarch64/aarch64-simd-builtins.def (scvtf): New entries
20040 for conversion between scalar float-point and fixed-point.
20041 (ucvtf): Likewise.
20042 (fcvtzs): Likewise.
20043 (fcvtzu): Likewise.
20044 * config/aarch64/aarch64.md
20045 (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3: New
20046 pattern for conversion between scalar float to fixed-pointer.
20047 (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>: Likewise.
20048 (UNSPEC_FCVTZS): New UNSPEC enumeration.
20049 (UNSPEC_FCVTZU): Likewise.
20050 (UNSPEC_SCVTF): Likewise.
20051 (UNSPEC_UCVTF): Likewise.
20052 * config/aarch64/arm_neon.h (vcvtd_n_f64_s64): Remove inline assembly.
20053 Use builtin.
20054 (vcvtd_n_f64_u64): Likewise.
20055 (vcvtd_n_s64_f64): Likewise.
20056 (vcvtd_n_u64_f64): Likewise.
20057 (vcvtd_n_f32_s32): Likewise.
20058 (vcvts_n_f32_u32): Likewise.
20059 (vcvtd_n_s32_f32): Likewise.
20060 (vcvts_n_u32_f32): Likewise.
20061 * config/aarch64/iterators.md (fcvt_target): Support integer to float
20062 mapping.
20063 (FCVT_TARGET): Likewise.
20064 (FCVT_FIXED2F): New iterator.
20065 (FCVT_F2FIXED): Likewise.
20066 (fcvt_fixed_insn): New define_int_attr.
20067
20068 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
20069
20070 * predict.c (pass_strip_predict_hints::execute): Cleanup CFG if
20071 some statements was removed.
20072
20073 2016-06-08 Alan Hayward <alan.hayward@arm.com>
20074
20075 * tree-vect-data-refs.c (vect_analyze_data_refs): Remove debug newline.
20076 * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): likewise.
20077 (vect_can_advance_ivs_p): likewise.
20078 (vect_update_ivs_after_vectorizer): likewise.
20079 * tree-vect-loop.c (vect_determine_vectorization_factor): likewise.
20080 (vect_analyze_scalar_cycles_1): likewise.
20081 (vect_analyze_loop_operations): likewise.
20082 (report_vect_op): likewise.
20083 (vect_is_slp_reduction): likewise.
20084 (vect_is_simple_reduction): likewise.
20085 (get_initial_def_for_induction): likewise.
20086 (vect_transform_loop): likewise.
20087 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): likewise.
20088 (vect_recog_sad_pattern): likewise.
20089 (vect_recog_widen_sum_pattern): likewise.
20090 (vect_recog_widening_pattern): likewise.
20091 (vect_recog_divmod_pattern): likewise.
20092 * tree-vect-slp.c (vect-build-slp_tree_1): likewise.
20093 (vect_analyze_slp_instance): likewise.
20094 (vect_transform_slp_perm_load): likewise.
20095 (vect_schedule_slp_instance): likewise.
20096
20097 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
20098
20099 * predict.c (predict_iv_comparison): Mention that heuristics is broken.
20100 (return_prediction): PRED_CONST_RETURN predict return as not taken.
20101 * predict.def (PRED_CONTINUE): Change hitrate 50->67
20102 (PRED_LOOP_BRANCH): Document predictor as broken.
20103 (PRED_LOOP_EXIT): Change hitrate 91->92.
20104 (PRED_LOOP_EXTRA_EXIT): Change hitrate 91->83.
20105 (PRED_POINTER, PRED_TREE_POINTER): Change hitrate 85->70.
20106 (PRED_OPCODE_POSITIVE): Change hitrate 79->64.
20107 (PRED_OPCODE_NONEQUAL): Change hitrate 91->66.
20108 (PRED_TREE_OPCODE_POSITIVE): Change hitrate 73->64
20109 (PRED_TREE_OPCODE_NONEQUAL): Chnage hitrate 72->66
20110 (PRED_CALL): Chane hitrate 71->67.
20111 (PRED_TREE_EARLY_RETURN): Document issues, change hitrate 61->54.
20112 (PRED_GOTO): Document as unused right now.
20113 (PRED_CONST_RETURN): Change hitrate 67->69
20114 (PRED_NEGATIVE_RETURN): Change hitrate 96->98
20115 (PRED_NULL_RETURN): Change hitrate 91->90.
20116 (PRED_LOOP_IV_COMPARE_GUESS): Change hitrate to 98.
20117 (PRED_FORTRAN_FAIL_ALLOC): Change hitrate to 62; document issues.
20118 (PRED_FORTRAN_SIZE_ZERO): Change hitrate to 99.
20119
20120 2016-06-07 Bill Seurer <seurer@linux.vnet.ibm.com>
20121
20122 * config/rs6000/altivec.h: Add __builtin_vec_mul.
20123 * config/rs6000/rs6000-builtin.def (vec_mul): Change vec_mul to a
20124 special case Altivec builtin.
20125 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
20126 VSX_BUILTIN_VEC_MUL (replaced with special case code).
20127 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
20128 code for ALTIVEC_BUILTIN_VEC_MUL.
20129 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
20130 for __builtin_vec_mul.
20131
20132 2016-06-07 Peter Bergner <bergner@vnet.ibm.com>
20133
20134 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mhtm and
20135 -mno-htm.
20136
20137 2016-06-07 David Malcolm <dmalcolm@redhat.com>
20138
20139 * spellcheck.c (selftest::test_find_closest_string): New function.
20140 (spellcheck_c_tests): Call the above.
20141
20142 2016-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20143
20144 * simplify-rtx.c (simplify_cond_clz_ctz): Delete 'mode' local variable.
20145
20146 2016-06-07 Jakub Jelinek <jakub@redhat.com>
20147
20148 * config/i386/sse.md (avx_vec_concat<mode>): Add v=v,vm and
20149 Yv=Yv,C alternatives.
20150
20151 2016-06-07 Richard Biener <rguenther@suse.de>
20152
20153 PR c/61564
20154 * common.opt (ffast-math): Make Optimization.
20155
20156 2016-06-07 Simon Dardis <simon.dardis@imgtec.com>
20157 Prachi Godbole <prachi.godbole@imgtec.com>
20158
20159 * config/mips/p5600.md (p5600_fpu_fadd): Remove checking for
20160 `fabs' and `fneg' type attributes.
20161 (p5600_fpu_fabs): Add `fmove' to the comment.
20162
20163 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
20164
20165 * gimple.c: Include builtins.h
20166 (gimple_inexpensive_call_p): New function.
20167 * gimple.h (gimple_inexpensive_call_p): Declare.
20168 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use it.
20169 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise;
20170 fix formatting.
20171
20172 2016-06-07 Paolo Carlini <paolo.carlini@oracle.com>
20173
20174 * diagnostic.c (diagnostic_impl, diagnostic_n_impl): New.
20175 (inform, inform_at_rich_loc, inform_n, warning, warning_at,
20176 warning_at_rich_loc, warning_n, pedwarn, permerror,
20177 permerror_at_rich_loc, error, error_n, error_at, error_at_rich_loc,
20178 sorry, fatal_error, internal_error, internal_error_no_backtrace):
20179 Use the above.
20180
20181 2016-06-07 Richard Biener <rguenther@suse.de>
20182
20183 PR tree-optimization/71428
20184 * tree-ssa-math-opts.c (perform_symbolic_merge): Properly distinguish
20185 BIT_FIELD_REF op vs. load.
20186
20187 2016-06-07 Richard Biener <rguenther@suse.de>
20188
20189 PR middle-end/71423
20190 * match.pd ((X | ~Y) -> Y <= X): Properly invert the comparison
20191 for signed ops.
20192
20193 2016-06-06 John David Anglin <danglin@gcc.gnu.org>
20194
20195 * config/pa/pa.md (call): Generate indirect long calls to non-local
20196 functions on TARGET_64BIT.
20197 (call_value): Likewise.
20198
20199 2016-06-06 John David Anglin <danglin@gcc.gnu.org>
20200
20201 * config/pa/pa.md (call_val_reg_64bit): Remove "reg: DI " clobber from
20202 pattern and subsequent splitters.
20203 (call_val_reg_64bit_post_reload): Likewise.
20204
20205 2016-06-07 Kugan Vivekanandarajah <kuganv@linaro.org>
20206
20207 PR middle-end/71408
20208 * tree-ssa-reassoc.c (zero_one_operation): Fix NEGATE_EXPR operand for
20209 propagate_op_to_single_use.
20210
20211 2016-06-07 Kugan Vivekanandarajah <kuganv@linaro.org>
20212
20213 PR middle-end/71281
20214 * tree-ssa-reassoc.c (reassociate_bb): Set uid for negate stmt.
20215
20216 2016-06-07 Uros Bizjak <ubizjak@gmail.com>
20217
20218 * config/i386/i386.h (enum ix86_enitity): Add X86_DIRFLAG.
20219 (enum x86_dirflag_state): New enum.
20220 (NUM_MODES_FOR_MODE_SWITCHING): Add X86_DIRFLAG_ANY.
20221 (machine_function): Remove needs_cld.
20222 (ix86_current_function_needs_cld): Remove.
20223 * config/i386/i386.c (ix86_set_func_type): Set
20224 ix86_optimize_mode_switching[X86_DIRFLAG] to 1.
20225 (ix86_expand_prologue): Do not emit CLD here.
20226 (ix86_dirflag_mode_needed): New function.
20227 (ix86_dirflag_mode_entry): Ditto.
20228 (ix86_mode_needed): Handle X86_DIRFLAG entity.
20229 (ix86_mode_after): Ditto.
20230 (ix86_mode_entry): Ditto.
20231 (ix86_mode_exit): Ditto.
20232 (ix86_emit_mode_set): Ditto.
20233 * config/i386/i386.md (strmov_singleop): Set
20234 ix86_optimize_mode_switching[X86_DIRFLAG] to 1 for TARGET_CLD.
20235 Do not set ix86_current_function_needs_cld.
20236 (rep_mov): Ditto.
20237 (strset_singleop): Ditto.
20238 (rep_stos): Ditto.
20239 (cmpstrnqi_nz_1): Ditto.
20240 (cmpstrnqi_1): Ditto.
20241 (strlenqi_1): Ditto.
20242
20243 2016-06-06 Jakub Jelinek <jakub@redhat.com>
20244
20245 PR tree-optimization/71259
20246 * tree-vect-slp.c (vect_get_constant_vectors): For
20247 VECTOR_BOOLEAN_TYPE_P, return all ones constant instead of
20248 one for constant op, and use COND_EXPR for non-constant.
20249
20250 2016-06-06 David Malcolm <dmalcolm@redhat.com>
20251
20252 * Makefile.in (OBJS): Add function-tests.o,
20253 hash-map-tests.o, hash-set-tests.o, rtl-tests.o,
20254 selftest-run-tests.o.
20255 (OBJS-libcommon): Add selftest.o.
20256 (OBJS-libcommon-target): Add selftest.o.
20257 (all.internal): Add "selftest".
20258 (all.cross): Likewise.
20259 (selftest): New phony target.
20260 (s-selftest): New target.
20261 (selftest-gdb): New phony target.
20262 (COLLECT2_OBJS): Add selftest.o.
20263 * bitmap.c: Include "selftest.h".
20264 (selftest::test_gc_alloc): New function.
20265 (selftest::test_set_range): New function.
20266 (selftest::test_clear_bit_in_middle): New function.
20267 (selftest::test_copying): New function.
20268 (selftest::test_bitmap_single_bit_set_p): New function.
20269 (selftest::bitmap_c_tests): New function.
20270 * common.opt (fself-test): New.
20271 * diagnostic-show-locus.c: Include "selftest.h".
20272 (make_range): New function.
20273 (test_range_contains_point_for_single_point): New function.
20274 (test_range_contains_point_for_single_line): New function.
20275 (test_range_contains_point_for_multiple_lines): New function.
20276 (assert_eq): New function.
20277 (test_get_line_width_without_trailing_whitespace): New function.
20278 (selftest::diagnostic_show_locus_c_tests): New function.
20279 * et-forest.c: Include "selftest.h".
20280 (selftest::test_single_node): New function.
20281 (selftest::test_simple_tree): New function.
20282 (selftest::test_disconnected_nodes): New function.
20283 (selftest::et_forest_c_tests): New function.
20284 * fold-const.c: Include "selftest.h".
20285 (selftest::assert_binop_folds_to_const): New function.
20286 (selftest::assert_binop_folds_to_nonlvalue): New function.
20287 (selftest::test_arithmetic_folding): New function.
20288 (selftest::fold_const_c_tests): New function.
20289 * function-tests.c: New file.
20290 * gimple.c: Include "selftest.h".
20291 Include "gimple-pretty-print.h".
20292 (selftest::verify_gimple_pp): New function.
20293 (selftest::test_assign_single): New function.
20294 (selftest::test_assign_binop): New function.
20295 (selftest::test_nop_stmt): New function.
20296 (selftest::test_return_stmt): New function.
20297 (selftest::test_return_without_value): New function.
20298 (selftest::gimple_c_tests): New function.
20299 * hash-map-tests.c: New file.
20300 * hash-set-tests.c: New file.
20301 * input.c: Include "selftest.h".
20302 (selftest::assert_loceq): New function.
20303 (selftest::test_accessing_ordinary_linemaps): New function.
20304 (selftest::test_unknown_location): New function.
20305 (selftest::test_builtins): New function.
20306 (selftest::test_reading_source_line): New function.
20307 (selftest::input_c_tests): New function.
20308 * rtl-tests.c: New file.
20309 * selftest-run-tests.c: New file.
20310 * selftest.c: New file.
20311 * selftest.h: New file.
20312 * spellcheck.c: Include "selftest.h".
20313 (selftest::levenshtein_distance_unit_test_oneway): New function,
20314 adapted from testsuite/gcc.dg/plugin/levenshtein_plugin.c.
20315 (selftest::levenshtein_distance_unit_test): Likewise.
20316 (selftest::spellcheck_c_tests): Likewise.
20317 * toplev.c: Include selftest.h.
20318 (toplev::run_self_tests): New.
20319 (toplev::main): Handle -fself-test.
20320 * toplev.h (toplev::run_self_tests): New.
20321 * tree.c: Include "selftest.h".
20322 (selftest::test_integer_constants): New function.
20323 (selftest::test_identifiers): New function.
20324 (selftest::test_labels): New function.
20325 (selftest::tree_c_tests): New function.
20326 * tree-cfg.c: Include "selftest.h".
20327 (selftest::push_fndecl): New function.
20328 (selftest::test_linear_chain): New function.
20329 (selftest::test_diamond): New function.
20330 (selftest::test_fully_connected): New function.
20331 (selftest::tree_cfg_c_tests): New function.
20332 * vec.c: Include "selftest.h".
20333 (selftest::safe_push_range): New function.
20334 (selftest::test_quick_push): New function.
20335 (selftest::test_safe_push): New function.
20336 (selftest::test_truncate): New function.
20337 (selftest::test_safe_grow_cleared): New function.
20338 (selftest::test_pop): New function.
20339 (selftest::test_safe_insert): New function.
20340 (selftest::test_ordered_remove): New function.
20341 (selftest::test_unordered_remove): New function.
20342 (selftest::test_block_remove): New function.
20343 (selftest::reverse_cmp): New function.
20344 (selftest::test_qsort): New function.
20345 (selftest::vec_c_tests): New function.c.
20346 * wide-int.cc: Include selftest.h and wide-int-print.h.
20347 (selftest::from_int <wide_int>): New function.
20348 (selftest::from_int <offset_int>): New function.
20349 (selftest::from_int <widest_int>): New function.
20350 (selftest::assert_deceq): New function.
20351 (selftest::assert_hexeq): New function.
20352 (selftest::test_printing <VALUE_TYPE>): New function template.
20353 (selftest::test_ops <VALUE_TYPE>): New function template.
20354 (selftest::test_comparisons <VALUE_TYPE>): New function template.
20355 (selftest::run_all_wide_int_tests <VALUE_TYPE>): New function
20356 template.
20357 (selftest::wide_int_cc_tests): New function.
20358
20359 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20360
20361 PR middle-end/37780
20362 * ifcvt.c (noce_try_ifelse_collapse): New function.
20363 Declare prototype.
20364 (noce_process_if_block): Call noce_try_ifelse_collapse.
20365 * simplify-rtx.c (simplify_cond_clz_ctz): New function.
20366 (simplify_ternary_operation): Use the above to simplify
20367 conditional CLZ/CTZ expressions.
20368
20369 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20370
20371 PR middle-end/37780
20372 * config/aarch64/aarch64.md (ctz<mode>2): Convert to
20373 define_insn_and_split.
20374
20375 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20376
20377 PR middle-end/37780
20378 * config/arm/arm.md (ctzsi2): Convert to define_insn_and_split.
20379
20380 2016-06-06 Bernd Edlinger <bernd.edlinger@hotmail.de>
20381
20382 PR c/24414
20383 * cfgexpand.c (expand_asm_loc): Remove handling for ADDR_EXPR.
20384 Implicitly clobber memory for basic asm with non-empty assembler
20385 string. Use targetm.md_asm_adjust also here.
20386 * compare-elim.c (arithmetic_flags_clobber_p): Use asm_noperands here.
20387 * final.c (final_scan_insn): Handle basic asm in PARALLEL block.
20388 * gimple.c (gimple_asm_clobbers_memory_p): Handle basic asm with
20389 non-empty assembler string.
20390 * ira.c (compute_regs_asm_clobbered): Use asm_noperands here.
20391 * recog.c (asm_noperands): Handle basic asm in PARALLEL block.
20392 (decode_asm_operands): Handle basic asm in PARALLEL block.
20393 (extract_insn): Handle basic asm in PARALLEL block.
20394 * doc/extend.texi: Mention new behavior of basic asm.
20395 * config/ia64/ia64 (rtx_needs_barrier): Handle ASM_INPUT here.
20396 * config/pa/pa.c (branch_to_delay_slot_p, branch_needs_nop_p,
20397 branch_needs_nop_p): Use asm_noperands.
20398
20399 2016-06-06 Jose E. Marchesi <jose.marchesi@oracle.com>
20400
20401 * config/sparc/sparc.md (cpu): Add niagara7 cpu type.
20402 Include the M7 SPARC DFA scheduler.
20403 New attribute v3pipe.
20404 Annotate insns with v3pipe where appropriate.
20405 Define cpu_feature vis4.
20406 Add lzd instruction type and set it on clzdi_sp64 and clzsi_sp64.
20407 Add (V8QI "8") to vbits.
20408 Add insns {add,sub}v8qi3
20409 Add insns ss{add,sub}v8qi3
20410 Add insns us{add,sub}{v8qi,v4hi}3
20411 Add insns {min,max}{v8qi,v4hi,v2si}3
20412 Add insns {minu,maxu}{v8qi,v4hi,v2si}3
20413 Add insns fpcmp{le,gt,ule,ug,ule,ugt}{8,16,32}_vis.
20414 * config/sparc/niagara4.md: Add a comment explaining the
20415 discrepancy between the documented latenty numbers and the
20416 implemented ones.
20417 * config/sparc/niagara7.md: New file.
20418 * configure.ac (HAVE_AS_SPARC5_VIS4): Define if the assembler
20419 supports SPARC5 and VIS 4.0 instructions.
20420 * configure: Regenerate.
20421 * config.in: Likewise.
20422 * config.gcc: niagara7 is a supported cpu in sparc*-*-* targets.
20423 * config/sparc/sol2.h (ASM_CPU32_DEFAUILT_SPEC): Set for
20424 TARGET_CPU_niagara7.
20425 (ASM_CPU64_DEFAULT_SPEC): Likewise.
20426 (CPP_CPU_SPEC): Handle niagara7.
20427 (ASM_CPU_SPEC): Likewise.
20428 * config/sparc/sparc-opts.h (processor_type): Add
20429 PROCESSOR_NIAGARA7.
20430 (mvis4): New option.
20431 * config/sparc/sparc.h (TARGET_CPU_niagara7): Define.
20432 (AS_NIAGARA7_FLAG): Define.
20433 (ASM_CPU64_DEFAULT_SPEC): Set for niagara7.
20434 (CPP_CPU64_DEFAULT_SPEC): Likewise.
20435 (CPP_CPU_SPEC): Handle niagara7.
20436 (ASM_CPU_SPEC): Likewise.
20437 * config/sparc/sparc.c (niagara7_costs): Define.
20438 (sparc_option_override): Handle niagara7 and adjust cache-related
20439 parameters with better values for niagara cpus. Also support VIS4.
20440 (sparc32_initialize_trampoline): Likewise.
20441 (sparc_use_sched_lookahead): Likewise.
20442 (sparc_issue_rate): Likewise.
20443 (sparc_register_move_cost): Likewise.
20444 (dump_target_flag_bits): Support VIS4.
20445 (sparc_vis_init_builtins): Likewise.
20446 (sparc_builtins): Likewise.
20447 * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__ for
20448 VIS4 4.0.
20449 * config/sparc/driver-sparc.c (cpu_names): Add SPARC-M7 and
20450 UltraSparc M7.
20451 * config/sparc/sparc.opt (sparc_processor_type): New value
20452 niagara7.
20453 * config/sparc/visintrin.h (__attribute__): Prototypes for the
20454 VIS4 builtins.
20455 * doc/invoke.texi (SPARC Options): Document -mcpu=niagara7 and
20456 -mvis4.
20457 * doc/extend.texi (SPARC VIS Built-in Functions): Document the
20458 VIS4 builtins.
20459
20460 2016-06-06 Jonathan Wakely <jwakely@redhat.com>
20461
20462 * doc/sourcebuild.texi (Directives): Remove extra closing braces.
20463
20464 2016-06-06 Richard Biener <rguenther@suse.de>
20465
20466 PR tree-optimization/71398
20467 * tree-ssa-loop-ivcanon.c (unloop_loops): First unloop, then
20468 remove edges.
20469
20470 2016-06-05 James Bowman <james.bowman@ftdichip.com>
20471
20472 * config/ft32/ft32.c (ft32_setup_incoming_varargs,
20473 ft32_expand_prolog, ft32_expand_epilogue):
20474 Handle pretend_args.
20475 * config/ft32/ft32.h: Remove OUTGOING_REG_PARM_STACK_SPACE.
20476 * config/ft32/ft32.md: Add pretend_returner.
20477
20478 2016-06-06 Uros Bizjak <ubizjak@gmail.com>
20479
20480 PR target/71389
20481 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
20482 Copy op1 RTX to avoid invalid sharing.
20483 (ix86_expand_vector_move_misalign): Ditto.
20484
20485 2016-06-05 John David Anglin <danglin@gcc.gnu.org>
20486
20487 * expr.c (move_by_pieces_d::generate): Mark mode parameter with
20488 ATTRIBUTE_UNUSED.
20489
20490 2016-06-05 Jan Hubicka <hubicka@ucw.cz>
20491
20492 * predict.c (predicted_by_loop_heuristics_p): New function.
20493 (predict_iv_comparison): Use it.
20494 (predict_loops): Walk from innermost loops; do not predict edges
20495 leaving multiple loops multiple times; implement
20496 PRED_LOOP_ITERATIONS_MAX heuristics.
20497 * predict.def (PRED_LOOP_ITERATIONS_MAX): New predictor.
20498
20499 2016-06-05 Jan Hubicka <hubicka@ucw.cz>
20500
20501 * cfg.c (check_bb_profile): Do not report mismatched profiles when
20502 only edges out of BB are EH edges.
20503
20504 2016-06-04 Martin Sebor <msebor@redhat.com>
20505 Marcin Baczyński <marbacz@gmail.com>
20506
20507 PR c/48116
20508 * doc/invoke.texi (-Wreturn-type): Mention not warning on return with
20509 a void expression in a void function.
20510
20511 2016-06-03 Jan Hubicka <hubicka@ucw.cz>
20512
20513 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Do not check
20514 aux; dump reasons of decisions.
20515 (should_duplicate_loop_header_p): Likewise.
20516 (do_while_loop_p): Likewise.
20517 (ch_base::copy_headers): Dump asi num insns duplicated.
20518
20519 2016-06-04 Jakub Jelinek <jakub@redhat.com>
20520
20521 PR tree-optimization/71405
20522 * tree-ssa.c (execute_update_addresses_taken): For clobber with
20523 incompatible type, build a new clobber with the right type instead
20524 of building a VIEW_CONVERT_EXPR around it.
20525
20526 2016-06-04 Oleg Endo <olegendo@gcc.gnu.org>
20527
20528 PR tree-optimization/52171
20529 * config/sh/sh.c (sh_use_by_pieces_infrastructure_p): Use
20530 by_pieces_ninsns instead of move_by_pieces_ninsns.
20531
20532 2016-06-04 Oleg Endo <olegendo@gcc.gnu.org>
20533
20534 * config/sh/sh.c (sh_print_operand_address): Don't use hardcoded 'r0'
20535 for reg+reg addressing mode.
20536
20537 2016-06-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20538
20539 * rs6000-c.c (c/c-tree.h): Add #include.
20540 (altivec_resolve_overloaded_builtin): Handle ARRAY_TYPE arguments
20541 in C++ when found in the base position of vec_ld or vec_st.
20542
20543 2016-06-03 Jan Hubicka <hubicka@ucw.cz>
20544
20545 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Avoid
20546 use of profile unless profile status is PROFILE_READ.
20547 * profile.c (compute_branch_probabilities): Set profile status
20548 only after reporting predictor hitrates.
20549
20550 2016-06-03 Joseph Myers <joseph@codesourcery.com>
20551
20552 PR target/71276
20553 PR target/71277
20554 * common.opt (ffp-int-builtin-inexact): New option.
20555 * doc/invoke.texi (-fno-fp-int-builtin-inexact): Document.
20556 * doc/md.texi (floor@var{m}2, btrunc@var{m}2, round@var{m}2)
20557 (ceil@var{m}2): Document dependence on this option.
20558 * ipa-inline-transform.c (inline_call): Handle
20559 flag_fp_int_builtin_inexact.
20560 * ipa-inline.c (can_inline_edge_p): Likewise.
20561 * config/i386/i386.md (rintxf2): Do not test
20562 flag_unsafe_math_optimizations.
20563 (rint<mode>2_frndint): New define_insn.
20564 (rint<mode>2): Do not test flag_unsafe_math_optimizations for 387
20565 or !flag_trapping_math for SSE. Just use gen_rint<mode>2_frndint
20566 for 387 instead of extending and truncating.
20567 (frndintxf2_<rounding>): Test flag_fp_int_builtin_inexact ||
20568 !flag_trapping_math instead of flag_unsafe_math_optimizations.
20569 Change to frndint<mode>2_<rounding>.
20570 (frndintxf2_<rounding>_i387): Likewise. Change to
20571 frndint<mode>2_<rounding>_i387.
20572 (<rounding_insn>xf2): Likewise.
20573 (<rounding_insn><mode>2): Test flag_fp_int_builtin_inexact ||
20574 !flag_trapping_math instead of flag_unsafe_math_optimizations for
20575 x87. Test TARGET_ROUND || !flag_trapping_math ||
20576 flag_fp_int_builtin_inexact instead of !flag_trapping_math for
20577 SSE. Use ROUND_NO_EXC in constant operand of
20578 gen_sse4_1_round<mode>2. Just use gen_frndint<mode>2_<rounding>
20579 for 387 instead of extending and truncating.
20580
20581 2016-06-03 H.J. Lu <hongjiu.lu@intel.com>
20582 Julia Koval <julia.koval@intel.com>
20583
20584 PR target/66960
20585 PR target/67630
20586 PR target/67634
20587 PR target/67841
20588 PR target/68037
20589 PR target/68618
20590 PR target/68661
20591 PR target/69575
20592 PR target/69596
20593 PR target/69734
20594 * config/i386/i386-protos.h (ix86_epilogue_uses): New prototype.
20595 * config/i386/i386.c (ix86_conditional_register_usage): Preserve
20596 all registers, except for function return registers if there are
20597 no caller-saved registers.
20598 (ix86_set_func_type): New function.
20599 (ix86_set_current_function): Call ix86_set_func_type to set
20600 no_caller_saved_registers and func_type. Call reinit_regs if
20601 caller-saved registers are changed. Don't allow MPX, SSE, MMX
20602 nor x87 instructions in interrupt handler nor function with
20603 no_caller_saved_registers attribute.
20604 (ix86_function_ok_for_sibcall): Return false if there are no
20605 caller-saved registers.
20606 (type_natural_mode): Don't warn ABI change for MMX in interrupt
20607 handler.
20608 (ix86_function_arg_advance): Skip for callee in interrupt handler.
20609 (ix86_function_arg): Return special arguments in interrupt handler.
20610 (ix86_promote_function_mode): Promote pointer to word_mode only
20611 for normal functions.
20612 (ix86_can_use_return_insn_p): Don't use `ret' instruction in
20613 interrupt handler.
20614 (ix86_epilogue_uses): New function.
20615 (ix86_hard_regno_scratch_ok): Likewise.
20616 (ix86_save_reg): Preserve all registers in interrupt handler
20617 after reload. Preserve all registers, except for function return
20618 registers, if there are no caller-saved registers after reload.
20619 (find_drap_reg): Always use callee-saved register if there are
20620 no caller-saved registers.
20621 (ix86_minimum_incoming_stack_boundary): Return MIN_STACK_BOUNDARY
20622 for interrupt handler.
20623 (ix86_expand_prologue): Don't allow DRAP in interrupt handler.
20624 Emit cld instruction if stringops are used in interrupt handler
20625 or interrupt handler isn't a leaf function.
20626 (ix86_expand_epilogue): Generate interrupt return for interrupt
20627 handler and pop the 'ERROR_CODE' off the stack before interrupt
20628 return in exception handler.
20629 (ix86_expand_call): Disallow calling interrupt handler directly.
20630 If there are no caller-saved registers, mark all registers that
20631 are clobbered by the call which returns as clobbered.
20632 (ix86_handle_no_caller_saved_registers_attribute): New function.
20633 (ix86_handle_interrupt_attribute): Likewise.
20634 (ix86_attribute_table): Add interrupt and no_caller_saved_registers
20635 attributes.
20636 (TARGET_HARD_REGNO_SCRATCH_OK): Likewise.
20637 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use argument
20638 accumulation in interrupt function if stack may be realigned to
20639 avoid DRAP.
20640 (EPILOGUE_USES): New.
20641 (function_type): New enum.
20642 (machine_function): Add func_type and no_caller_saved_registers.
20643 * config/i386/i386.md (UNSPEC_INTERRUPT_RETURN): New.
20644 (interrupt_return): New pattern.
20645 * doc/extend.texi: Document x86 interrupt and
20646 no_caller_saved_registers attributes.
20647
20648 2016-06-03 Bernd Schmidt <bschmidt@redhat.com>
20649
20650 PR tree-optimization/52171
20651 * builtins.c (expand_cmpstrn_or_cmpmem): Delete, moved elsewhere.
20652 (expand_builtin_memcmp): New arg RESULT_EQ. All callers changed.
20653 Look for constant strings. Move some code to emit_block_cmp_hints
20654 and use it.
20655 * builtins.def (BUILT_IN_MEMCMP_EQ): New.
20656 * defaults.h (COMPARE_MAX_PIECES): New macro.
20657 * expr.c (move_by_pieces_d, store_by_pieces_d): Remove old structs.
20658 (move_by_pieces_1, store_by_pieces_1, store_by_pieces_2): Remvoe.
20659 (clear_by_pieces_1): Don't declare. Move definition before use.
20660 (can_do_by_pieces): New static function.
20661 (can_move_by_pieces): Use it. Return bool.
20662 (by_pieces_ninsns): Renamed from move_by_pieces_ninsns. New arg
20663 OP. All callers changed. Handle COMPARE_BY_PIECES.
20664 (class pieces_addr); New.
20665 (pieces_addr::pieces_addr, pieces_addr::decide_autoinc,
20666 pieces_addr::adjust, pieces_addr::increment_address,
20667 pieces_addr::maybe_predec, pieces_addr::maybe_postinc): New member
20668 functions for it.
20669 (class op_by_pieces_d): New.
20670 (op_by_pieces_d::op_by_pieces_d, op_by_pieces_d::run): New member
20671 functions for it.
20672 (class move_by_pieces_d, class compare_by_pieces_d,
20673 class store_by_pieces_d): New subclasses of op_by_pieces_d.
20674 (move_by_pieces_d::prepare_mode, move_by_pieces_d::generate,
20675 move_by_pieces_d::finish_endp, store_by_pieces_d::prepare_mode,
20676 store_by_pieces_d::generate, store_by_pieces_d::finish_endp,
20677 compare_by_pieces_d::generate, compare_by_pieces_d::prepare_mode,
20678 compare_by_pieces_d::finish_mode): New member functions.
20679 (compare_by_pieces, emit_block_cmp_via_cmpmem): New static
20680 functions.
20681 (expand_cmpstrn_or_cmpmem): Moved here from builtins.c.
20682 (emit_block_cmp_hints): New function.
20683 (move_by_pieces, store_by_pieces, clear_by_pieces): Rewrite to just
20684 use the newly defined classes.
20685 * expr.h (by_pieces_constfn): New typedef.
20686 (can_store_by_pieces, store_by_pieces): Use it in arg declarations.
20687 (emit_block_cmp_hints, expand_cmpstrn_or_cmpmem): Declare.
20688 (move_by_pieces_ninsns): Don't declare.
20689 (can_move_by_pieces): Change return value to bool.
20690 * target.def (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): Update docs.
20691 (compare_by_pieces_branch_ratio): New hook.
20692 * target.h (enum by_pieces_operation): Add COMPARE_BY_PIECES.
20693 (by_pieces_ninsns): Declare.
20694 * targethooks.c (default_use_by_pieces_infrastructure_p): Handle
20695 COMPARE_BY_PIECES.
20696 (default_compare_by_pieces_branch_ratio): New function.
20697 * targhooks.h (default_compare_by_pieces_branch_ratio): Declare.
20698 * doc/tm.texi.in (STORE_MAX_PIECES, COMPARE_MAX_PIECES): Document.
20699 * doc/tm.texi: Regenerate.
20700 * tree-ssa-strlen.c: Include "builtins.h".
20701 (handle_builtin_memcmp): New static function.
20702 (strlen_optimize_stmt): Call it for BUILT_IN_MEMCMP.
20703 * tree.c (build_common_builtin_nodes): Create __builtin_memcmp_eq.
20704
20705 2016-06-03 Alan Hayward <alan.hayward@arm.com>
20706
20707 * tree-vect-stmts.c (vect_stmt_relevant_p): Do not vectorize non live
20708 relevant stmts which are simple and invariant.
20709 * tree-vect-loop.c (vectorizable_live_operation): Check relevance
20710 instead of simple and invariant
20711
20712 2016-06-03 Alan Hayward <alan.hayward@arm.com>
20713
20714 * tree-vect-loop.c (vect_analyze_loop_operations): Allow live stmts.
20715 (vectorizable_reduction): Check for new relevant state.
20716 (vectorizable_live_operation): vectorize live stmts using
20717 BIT_FIELD_REF. Remove special case for gimple assigns stmts.
20718 * tree-vect-stmts.c (is_simple_and_all_uses_invariant): New function.
20719 (vect_stmt_relevant_p): Check for stmts which are only used live.
20720 (process_use): Use of a stmt does not inherit it's live value.
20721 (vect_mark_stmts_to_be_vectorized): Simplify relevance inheritance.
20722 (vect_analyze_stmt): Check for new relevant state.
20723 * tree-vectorizer.h (vect_relevant): New entry for a stmt which is used
20724 outside the loop, but not inside it.
20725
20726 2016-06-03 Alan Hayward <alan.hayward@arm.com>
20727
20728 * tree-vectorizer.h (vect_get_vec_def_for_operand_1): New.
20729 * tree-vect-stmts.c (vect_get_vec_def_for_operand_1): New.
20730 (vect_get_vec_def_for_operand): Split out code.
20731
20732 2016-06-03 Segher Boessenkool <segher@kernel.crashing.org>
20733
20734 * config/rs6000/rs6000.md (define_peepholes for two mfcr's): Delete.
20735
20736 2016-06-03 Alan Hayward <alan.hayward@arm.com>
20737
20738 * tree-vect-stmts.c (vectorizable_call) Remove GOMP_SIMD_LANE code.
20739
20740 2016-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20741
20742 * config/arm/thumb1.md (*thumb1_mulsi3): Fix typos in comment.
20743
20744 2016-06-03 Jakub Jelinek <jakub@redhat.com>
20745
20746 PR middle-end/71387
20747 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): If redirecting
20748 to noreturn e->callee->decl that has void return type and void
20749 arguments, adjust gimple_call_fntype and remove lhs even if it had
20750 previously addressable type.
20751
20752 2016-06-02 Jeff Law <law@redhat.com>
20753
20754 PR tree-optimization/71328
20755 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix off-by-one
20756 error when checking for a jump back onto the copied path.
20757
20758 2016-06-02 David Malcolm <dmalcolm@redhat.com>
20759
20760 * config/microblaze/microblaze.c (get_branch_target): Add return
20761 NULL_RTX for the non-CALL_P case.
20762 (insert_wic_for_ilb_runout): Remove unused local "wic_addr1".
20763 (insert_wic): Remove unused local "j".
20764
20765 2016-06-02 Martin Liska <mliska@suse.cz>
20766
20767 * predict.def: Fix typo in PRED_FORTRAN_FAIL_IO display name.
20768
20769 2016-06-02 H.J. Lu <hongjiu.lu@intel.com>
20770 Julia Koval <julia.koval@intel.com>
20771
20772 * function.c (assign_parm_setup_stack): Force source into a
20773 register if needed.
20774 * target.def (function_incoming_arg): Update documentation to
20775 allow arbitrary address computation based on hard register.
20776 * doc/tm.texi: Regenerated.
20777
20778 2016-06-02 Martin Liska <mliska@suse.cz>
20779
20780 * predict.c (combine_predictions_for_bb): Fix first match in
20781 cases where a first predictor contains more than one occurence
20782 in list of predictors. Take the best value in such case.
20783
20784 2016-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20785
20786 PR rtl-optimization/71295
20787 * rtlanal.c (subreg_get_info): If taking a subreg at the requested
20788 offset would go over the size of the inner mode reject it.
20789
20790 2016-06-02 Jakub Jelinek <jakub@redhat.com>
20791
20792 * config/i386/sse.md (*vec_concatv4si): Use v=v,v instead of
20793 x=x,x and v=v,m instead of x=x,m.
20794
20795 * config/i386/sse.md (*vec_concatv2si_sse4_1): Add avx512dq v=Yv,rm
20796 alternative. Change x=x,x alternative to v=Yv,Yv and x=rm,C
20797 alternative to v=rm,C.
20798
20799 * config/i386/sse.md (*vec_concatv2di): Add x86_avx512dq v=Yv,rm
20800 alternative. Change x=xm,C alternative to v=vm,C, x=x,x alternative
20801 to v=Yv,Yv and x=x,m to v=v,m. Use maybe_evex prefix attribute
20802 instead of vex for the last two above mentioned alternatives.
20803
20804 2016-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20805
20806 PR target/70830
20807 * config/arm/arm.c (arm_output_multireg_pop): Guard "pop" on update.
20808
20809 2016-06-02 Segher Boessenkool <segher@kernel.crashing.org>
20810
20811 * config/rs6000/dfp.md (trunctddd2): Correct the "length" attribute.
20812
20813 2016-06-01 David Malcolm <dmalcolm@redhat.com>
20814
20815 * config/rl78/rl78.c (rl78_expand_prologue): Convert local
20816 from int to unsigned.
20817
20818 2016-05-31 Michael Meissner <meissner@linux.vnet.ibm.com>
20819
20820 * config/rs6000/vsx.md (vsx_splat_<mode>, V2DI/V2DF): Simplify
20821 alternatives, eliminating preferred register class. Add support
20822 for the MTVSRDD instruction in ISA 3.0.
20823 (vsx_splat_v4si_internal): Use splat_input_operand instead of
20824 reg_or_indexed_operand.
20825 (vsx_splat_v4sf_internal): Likewise.
20826
20827 2016-05-31 Michael Meissner <meissner@linux.vnet.ibm.com>
20828
20829 PR target/71186
20830 * config/rs6000/vsx.md (xxspltib_<mode>_nosplit): Add alternatives
20831 for loading up all 0's or all 1's.
20832
20833 2016-06-01 Thomas Preud'homme <thomas.preudhomme@arm.com>
20834
20835 * doc/sourcebuild.texi (arm_acq_rel): Document new effective target.
20836
20837 2016-06-01 Eduard Sanou <dhole@openmailbox.org>
20838
20839 * doc/cppenv.texi: Note that the `%s` in `date` is a non-standard
20840 extension.
20841 * gcc.c (driver_handle_option): Call set_source_date_epoch_envvar.
20842 * gcc.c (set_source_date_epoch_envvar): New function, sets
20843 the SOURCE_DATE_EPOCH environment variable to the current time.
20844
20845 2016-06-01 Eric Botcazou <ebotcazou@adacore.com>
20846
20847 * tree-vect-loop.c (vect_determine_vectorization_factor): Also compute
20848 the factor for live Phi nodes.
20849
20850 2016-06-01 Jan Hubicka <hubicka@ucw.cz>
20851
20852 * loop-dolop.c (doloop_optimize): Us likely max iteration bound.
20853 * tree-parloops.c (parallelize_loops): likewise.
20854 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop,
20855 tree_unswitch_outer_loop): likewise.
20856
20857 2016-06-01 Jakub Jelinek <jakub@redhat.com>
20858
20859 PR middle-end/71371
20860 * gimplify.c (gimplify_omp_for): Temporarily clear gimplify_omp_ctxp
20861 around creation of the temporary.
20862
20863 2016-06-01 Richard Biener <rguenther@suse.de>
20864
20865 PR tree-optimization/71366
20866 * tree-ssa-loop-ivcanon.c (edges_to_remove): New global.
20867 (unloop_loops): Move removing edges here ...
20868 (try_unroll_loop_completely): ... from here.
20869 (try_peel_loop): ... and here.
20870 (tree_unroll_loops_completely_1): Track parent loops via
20871 bitmap of header BBs.
20872 (tree_unroll_loops_completely): Adjust for that.
20873
20874 2016-06-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
20875
20876 * config/rs6000/altivec.h (vec_slv): New macro.
20877 (vec_srv): New macro.
20878 * config/rs6000/altivec.md (UNSPEC_VSLV): New value.
20879 (UNSPEC_VSRV): New value.
20880 (vslv): New insn.
20881 (vsrv): New insn.
20882 * config/rs6000/rs6000-builtin.def (vslv): New builtin definition.
20883 (vsrv): New builtin definition.
20884 * config/rs6000/rs6000-c.c (P9V_BUILTIN_VSLV): Macro expansion to
20885 define argument types for new builtin.
20886 (P9V_BUILTIN_VSRV): Macro expansion to define argument types for
20887 new builtin.
20888 * doc/extend.texi: Document the new vec_vslv and vec_srv built-in
20889 functions.
20890
20891 2016-06-01 Uros Bizjak <ubizjak@gmail.com>
20892 Jocelyn Mayer <l_indien@magic.fr>
20893
20894 PR target/67310
20895 * config/i386/driver-i386.c (host_detect_local_cpu): Correctly
20896 detect processor family for signature_CENTAUR_ebx.
20897 <case PROCESSOR_I486>: Pass c3, winchip2 or winchip-c6 for
20898 signature_CENTAUR_ebx.
20899 <case PROCESSOR _PENTIUMPRO>: Pass c3-2 for signature_CENTAUR_ebx.
20900 <default>: Pass x86-64 for has_longmode.
20901
20902 2016-06-01 Nathan Sidwell <nathan@acm.org>
20903
20904 * config/nvptx/nvptx.c (nvptx_assemble_undefined_decl): Reject
20905 undefined weak.
20906
20907 2016-06-01 Richard Biener <rguenther@suse.de>
20908
20909 PR tree-optimization/71261
20910 * tree-vect-patterns.c (check_bool_pattern): Gather a hash-set
20911 of stmts successfully put in the bool pattern. Remove
20912 single-use restriction.
20913 (adjust_bool_pattern_cast): Add cast at the use site via the
20914 pattern def sequence.
20915 (adjust_bool_pattern): Remove recursion, maintain a hash-map
20916 of patterned defs. Use the pattern def seqence instead of
20917 multiple independent patterns.
20918 (sort_after_uid): New qsort compare function.
20919 (adjust_bool_stmts): New function to process stmts in the bool
20920 pattern in IL order.
20921 (vect_recog_bool_pattern): Adjust.
20922 * tree-if-conv.c (ifcvt_split_def_stmt): Remove.
20923 (ifcvt_walk_pattern_tree): Likewise.
20924 (stmt_is_root_of_bool_pattern): Likewise.
20925 (ifcvt_repair_bool_pattern): Likewise.
20926 (tree_if_conversion): Do not call ifcvt_repair_bool_pattern.
20927
20928 2016-06-01 Jan Hubicka <hubicka@ucw.cz>
20929
20930 * loop-unroll.c (decide_unroll_constant_iterations,
20931 decide_unroll_runtime_iterations, decide_unroll_stupid): Use
20932 likely upper bounds.
20933 * loop-iv.c (find_simple_exit): Dump likely upper bounds.
20934
20935 2016-06-01 Thomas Schwinge <thomas@codesourcery.com>
20936
20937 * tree-core.h (enum omp_clause_code): Remove
20938 OMP_CLAUSE_DEVICE_RESIDENT. Adjust all users.
20939
20940 2016-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20941
20942 * config/arm/sync.md (arm_store_exclusive<mode>):
20943 Use 'H' output modifier on operands[2] rather than creating a new
20944 entry in out-of-bounds memory of the operands array.
20945 (arm_store_release_exclusivedi): Likewise.
20946
20947 2016-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20948
20949 * config/arm/arm.c (arm_fusion_enabled_p): New function.
20950 * config/arm/arm-protos.h (arm_fusion_enabled_p): Declare prototype.
20951 * config/arm/crypto.md (crypto_<crypto_pattern>, CRYPTO_UNARY):
20952 Add "=w,0" alternative. Enable it when AES/AESMC fusion is enabled.
20953
20954 2016-06-01 Eric Botcazou <ebotcazou@adacore.com>
20955
20956 * tree-vect-loop.c (vect_determine_vectorization_factor): Also take
20957 into account live statements for mask producers.
20958
20959 2016-06-01 Richard Biener <rguenther@suse.de>
20960
20961 PR tree-optimization/71311
20962 * match.pd (@0 < @1 && @0 < @2 -> @0 < min(@1,@2)): Add :c and
20963 restrict to non-INTEGER_CST @0.
20964
20965 2016-06-01 Richard Biener <rguenther@suse.de>
20966
20967 * match.pd ((A & B) - (A & ~B) -> B - (A ^ B)): Add missing :c.
20968 (relational patterns): Use :c to avoid pattern duplications.
20969
20970 2016-06-01 Richard Biener <rguenther@suse.de>
20971
20972 * genmatch.c (comparison_code_p): New predicate.
20973 (swap_tree_comparison): New function.
20974 (commutate): Add for_vec parameter to append new for entries.
20975 Support commutating relational operators by swapping it alongside
20976 operands.
20977 (lower_commutative): Adjust.
20978 (dt_simplify::gen): Do not pass artificial operators to gen
20979 functions.
20980 (decision_tree::gen): Do not add artificial operators as parameters.
20981 (parser::parse_expr): Verify operator commutativity when :c is
20982 applied. Allow :C to override this.
20983 * match.pd: Adjust patterns to use :C instead of :c where required.
20984
20985 2016-06-01 Patrick Palka <ppalka@gcc.gnu.org>
20986
20987 PR tree-optimization/71077
20988 * tree-ssa-threadedge.c (simplify_control_stmt_condition_1): In
20989 the combining step, use boolean_false_node and boolean_true_node
20990 as the designated false/true return values.
20991
20992 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
20993
20994 * predict.def (PRED_LOOP_EXTRA_EXIT): Define.
20995 * predict.c (predict_iv_comparison): Also check PRED_LOOP_EXTRA_EXIT.
20996 (predict_extra_loop_exits): Use PRED_LOOP_EXTRA_EXIT instead of
20997 PRED_LOOP_EXIT.
20998
20999 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
21000
21001 * doc/invoke.texi (-frename-registers): Drop -fpeel-loops from list
21002 of flags impliying the register renaming.
21003 * toplev.c (process_options): Do not imply flag_rename_registers with
21004 loop peeling.
21005
21006 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
21007
21008 * config/sh/sh.h (ASM_OUTPUT_SYMBOL_REF): Remove macro and use the
21009 default implementation.
21010
21011 2016-05-31 Nathan Sidwell <nathan@acm.org>
21012
21013 * dwarf2out.c (cur_line_info_table): Add GTY marker.
21014
21015 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
21016
21017 * config/sh/constraints.md (b): Remove constraint.
21018 * config/sh/predicates.md (arith_reg_operand): Remove
21019 TARGET_REGISTER_P.
21020 * config/sh/sh-modes.def (PDI): Remove.
21021 * config/sh/sh.c (sh_target_reg_class,
21022 sh_optimize_target_register_callee_saved): Remove functions.
21023 (sh_option_override): Don't set MASK_SAVE_ALL_TARGET_REGS.
21024 (sh_expand_epilogue): Update comment.
21025 (sh_hard_regno_mode_ok, sh_register_move_cost, calc_live_regs,
21026 sh_secondary_reload): Remove TARGET_REGS related code.
21027 * config/sh/sh.h (FIRST_TARGET_REG, LAST_TARGET_REG,
21028 TARGET_REGISTER_P): Remove macros.
21029 (SH_DBX_REGISTER_NUMBER, REG_ALLOC_ORDER): Remove target regs.
21030 * config/sh/sh.md (PR_MEDIA_REG, T_MEDIA_REG, FR23_REG, TR0_REG,
21031 TR1_REG, TR2_REG): Remove constants.
21032 * config/sh/sh.opt (SAVE_ALL_TARGET_REGS): Remove.
21033
21034 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
21035
21036 * config/sh/sh.md (adddi3, subdi3, negdi2, abs<mode>2): Remove
21037 define_expand patterns.
21038 (adddi3_compact): Rename to adddi3.
21039 (subdi3_compact): Rename to subdi3.
21040 (*negdi2): Rename to negdi2.
21041 (*abs<mode>2): Rename to abs<mode>2.
21042
21043 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
21044
21045 * config/rx/rx.md (FETCHOP_NO_MINUS): New code iterator.
21046 (atomic_<fetchop_name>_fetchsi): Extract minus operator into ...
21047 (atomic_sub_fetchsi): ... this new pattern.
21048 (mvtc): Add CC_REG clobber.
21049
21050 2016-05-31 Marek Polacek <polacek@redhat.com>
21051
21052 * gimplify.c (gimplify_switch_expr): Also handle GIMPLE_TRY.
21053
21054 2016-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21055
21056 * config/aarch64/aarch64.c (aarch_macro_fusion_pair_p): Use
21057 aarch64_fusion_enabled_p to check for fusion capabilities.
21058
21059 2016-05-31 Richard Biener <rguenther@suse.de>
21060
21061 PR tree-optimization/71352
21062 * tree-ssa-reassoc.c (zero_one_operation): Handle op equal to
21063 minus one and a negate.
21064
21065 2016-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21066
21067 * config/aarch64/aarch64.c (aarch64_simd_attr_length_move): Delete.
21068 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
21069 Delete prototype.
21070 * config/aarch64/iterators.md (insn_count): Add descriptive comment.
21071 * config/aarch64/aarch64-simd.md (*aarch64_mov<mode>, VSTRUCT modes):
21072 Remove use of aarch64_simd_attr_length_move, set length attribute
21073 directly.
21074 (*aarch64_be_movoi): Likewise.
21075 (*aarch64_be_movci): Likewise.
21076 (*aarch64_be_movxi): Likewise.
21077
21078 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
21079
21080 * loop-init.c (gate): Do not enale RTL loop unroller with -fpeel-loops.
21081 It no longer does that.
21082 * toplev.c (process_options): Do not enable flag_web with -fpeel-loops.
21083
21084 2016-05-31 Wladimir J. van der Laan <laanwj@gmail.com>
21085
21086 * config/aarch64/arm_neon.h (vdupb_laneq_s8): Remove spurious
21087 attribute __unused__.
21088
21089 2016-05-31 Thomas Preud'homme <thomas.preudhomme@arm.com>
21090
21091 * config/arm/arm-protos.h (arm_arch_thumb1): Declare.
21092 * config/arm/arm.c (arm_arch_thumb1): Define.
21093 (arm_option_override): Initialize arm_arch_thumb1.
21094 * config/arm/arm.h (arm_arch_thumb1): Declare.
21095 (TARGET_ARM_ARCH_ISA_THUMB): Use arm_arch_thumb to determine if target
21096 support Thumb-1 ISA.
21097
21098 2016-05-31 Kirill Yukhin <kirill.yukhin@intel.com>
21099
21100 PR target/71346
21101 * config/i386/sse.md (define_insn_and_split "*vec_extractv4sf_0"): Use
21102 `Yv' for scalar operand.
21103
21104 2016-05-31 Tom de Vries <tom@codesourcery.com>
21105
21106 PR tree-optimization/69068
21107 * graphite-isl-ast-to-gimple.c (copy_bb_and_scalar_dependences): Handle
21108 phis with more than two args.
21109
21110 2016-05-30 Andreas Tobler <andreast@gcc.gnu.org>
21111
21112 * config.gcc: Move hard float support for arm*hf*-*-freebsd* into
21113 armv6*-*-freebsd* for FreeBSD 11. Eliminate the arm*hf*-*-freebsd*
21114 target.
21115
21116 2016-05-30 Jose E. Marchesi <jose.marchesi@oracle.com>
21117
21118 * config.gcc (sparc*-*-*): Support cpu_32, cpu_64, tune_32 and
21119 tune_64.
21120 * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
21121 support on SPARC.
21122 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Add entries for
21123 cpu_32, cpu_64, tune_32 and tune_64.
21124 * config/sparc/sol2.h (OPTION_DEFAULT_SPECS): Likewise.
21125
21126 2016-05-30 Uros Bizjak <ubizjak@gmail.com>
21127
21128 * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
21129
21130 2016-05-30 Andi Kleen <ak@linux.intel.com>
21131
21132 * auto-profile.c (read_profile): Replace asserts with errors
21133 when file does not exist.
21134 * gcov-io.c (gcov_read_words): Dito.
21135
21136 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
21137
21138 * tree-cfg.c (print_loop): Print likely upper bounds.
21139
21140 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
21141
21142 * doc/invoke.texi (-fpeel-loops,-O3): Update documentation.
21143 * opts.c (default_options): Enable peel loops at -O3.
21144 * tree-ssa-loop-ivcanon.c (peeled_loops): New static var.
21145 (try_peel_loop): Do not re-peel already peeled loops;
21146 use likely upper bounds; fix profile updating.
21147 (pass_complete_unroll::execute): Initialize peeled_loops.
21148
21149 2016-05-30 Martin Liska <mliska@suse.cz>
21150
21151 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Scale
21152 computed costs by frequency of BB they belong to.
21153 (get_scaled_computation_cost_at): New function.
21154
21155 2016-05-30 Alexander Monakov <amonakov@ispras.ru>
21156 Marc Glisse <marc.glisse@inria.fr>
21157
21158 PR tree-optimization/71289
21159 * match.pd (-1 / B < A, A > -1 / B): New transformations.
21160
21161 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
21162
21163 * tree-vect-loop.c (vect_transform_loop): Update likely bounds.
21164
21165 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
21166
21167 * tree-ssa-loop-ivcanon.c (try_peel_loop): Correctly set wont_exit
21168 for peeled copies; avoid underflow when updating estimates; correctly
21169 scale loop profile.
21170
21171 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
21172
21173 * tree-ssa-reassoc.ci (swap_ops_for_binary_stmt): Fix typo from commit
21174 r236875. Corrected oe3 to oe2 as obvious.
21175
21176 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
21177
21178 PR middle-end/71269
21179 PR middle-end/71252
21180 * tree-ssa-reassoc.c (insert_stmt_before_use): Use find_insert_point so
21181 that inserted stmt will not dominate stmts that defines its operand.
21182 (rewrite_expr_tree): Add stmt_to_insert before adding the use stmt.
21183 (rewrite_expr_tree_parallel): Likewise.
21184
21185 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
21186
21187 PR middle-end/71252
21188 * tree-ssa-reassoc.c (swap_ops_for_binary_stmt): Fix swap such that
21189 all fields including stmt_to_insert are swapped.
21190
21191 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
21192
21193 * predict.h (force_edge_cold): Declare.
21194 * predict.c (force_edge_cold): New function.
21195 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Fix profile
21196 updating.
21197 (canonicalize_loop_induction_variables): Fix formating.
21198
21199 2016-05-30 Eric Botcazou <ebotcazou@adacore.com>
21200
21201 * config/visium/visium.c (visium_split_double_add): Minor tweaks.
21202 (visium_expand_copysign): Use gen_int_mode directly.
21203 (visium_compute_frame_size): Minor tweaks.
21204
21205 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
21206
21207 * tree-vect-loop.c (vect_analyze_loop_2): Use
21208 likely_max_stmt_executions_int.
21209
21210 2016-05-30 Tom de Vries <tom@codesourcery.com>
21211
21212 PR tree-optimization/69067
21213 * graphite-isl-ast-to-gimple.c (get_def_bb_for_const): Remove assert.
21214
21215 2016-05-29 Uros Bizjak <ubizjak@gmail.com>
21216
21217 PR target/71245
21218 * config/i386/sync.md (define_peephole2 atomic_storedi_fpu):
21219 New peepholes to remove unneeded fild/fistp pairs.
21220 (define_peephole2 atomic_loaddi_fpu): Ditto.
21221
21222 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
21223
21224 * predict.c (maybe_hot_frequency_p): Avoid division.
21225
21226 2016-05-28 Gerald Pfeifer <gerald@pfeifer.com>
21227
21228 * doc/install.texi: Use https for shop.fsf.org.
21229
21230 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
21231
21232 * tree-ssa-loop-ivopts.c (estimated_stmt_executions_int): Use
21233 likely_max_stmt_executions_int.
21234
21235 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
21236
21237 * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Use
21238 likely_max_stmt_executions_int.
21239
21240 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
21241
21242 * profile.c (compute_branch_probabilities): Do not report hitrates
21243 here.
21244 (branch_prob): Report hitrates here.
21245 * predict.c (gimple_predict_edge): Do not assert profile status;
21246 fix formatting issues.
21247
21248 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
21249
21250 * predict.c (edge_predicted_by_p): New function.
21251 (predict_paths_for_bb): Do not put multiple predictions of the same type
21252 on one edge.
21253
21254 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
21255
21256 * tree-ssa-loop-niter.c (number_of_iterations_exit): Revert accidental
21257 commit.
21258
21259 2016-05-28 Alan Modra <amodra@gmail.com>
21260
21261 * dominance.c (verify_dominators): Don't segfault on NULL imm_bb.
21262
21263 2016-05-28 Alan Modra <amodra@gmail.com>
21264
21265 PR rtl-optimization/71275
21266 * ira.c (ira): Free dominance info.
21267
21268 2016-05-27 Gerald Pfeifer <gerald@pfeifer.com>
21269
21270 * doc/sourcebuild.texi: New address for upstream Go repository.
21271
21272 2016-05-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
21273
21274 * config/arm/arm.h (TARGET_ARM_V6M): Remove.
21275 (TARGET_ARM_V7M): Likewise.
21276
21277 2016-05-26 Jeff Law <law@redhat.com>
21278
21279 * tree-ssa-threadedge.c: Remove include of tree-ssa-threadbackward.h.
21280 (thread_across_edge): Remove calls to find_jump_threads_backwards.
21281 * passes.def: Add jump threading passes before DOM/VRP.
21282 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Change
21283 argument to a basic block from an edge. Remove tests which are
21284 handled elsewhere.
21285 (pass_data_thread_jumps, class pass_thread_jumps): New.
21286 (pass_thread_jumps::gate, pass_thread_jumps::execute): New.
21287 (make_pass_thread_jumps): Likewise.
21288 * tree-pass.h (make_pass_thread_jumps): Declare.
21289
21290 2016-05-27 Eric Botcazou <ebotcazou@adacore.com>
21291
21292 * config/visium/visium-protos.h (split_double_move): Rename into...
21293 (visium_split_double_move): ...this.
21294 (visium_split_double_add): Declare.
21295 * config/visium/visium.c (split_double_move): Rename into...
21296 (visium_split_double_move): ...this.
21297 (visium_split_double_add): New function.
21298 (visium_expand_copysign): Renumber operands for consistency.
21299 * config/visium/visium.md (DImode move splitter): Adjust to renaming.
21300 (DFmode move splitter): Likewise.
21301 (*addi3_insn): Split by means of visium_split_double_add.
21302 (*adddi3_insn_flags): Delete.
21303 (*plus_plus_sltu<subst_arith>): New insn.
21304 (*subdi3_insn): Split by means of visium_split_double_add.
21305 (subdi3_insn_flags): Delete.
21306 (*minus_minus_sltu<subst_arith>): New insn.
21307 (*negdi2_insn): Split by means of visium_split_double_add.
21308 (*negdi2_insn_flags): Delete.
21309
21310 2016-05-27 Ulrich Weigand <uweigand@de.ibm.com>
21311
21312 * configure.ac: Treat a --with-headers option without argument
21313 the same as the default (i.e. consult sys-include directory).
21314 * configure: Regenerate.
21315
21316 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21317
21318 * config/aarch64/aarch64.c (aarch64_fusion_enabled_p): New function.
21319 * config/aarch64/aarch64-protos.h (aarch64_fusion_enabled_p): Declare
21320 prototype.
21321 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aesmc_op>v16qi):
21322 Add "=w,0" alternative. Enable it when AES/AESMC fusion is enabled.
21323
21324 2016-05-27 Jiong Wang <jiong.wang@arm.com>
21325
21326 PR target/63596
21327 * config/aarch64/aarch64.c (aarch64_expand_builtin_va_start): Honor
21328 tree-stdarg analysis results.
21329 (aarch64_setup_incoming_varargs): Likewise.
21330
21331 2016-05-27 Jiong Wang <jiong.wang@arm.com>
21332
21333 * config/aarch64/aarch64.c (aarch64_build_builtin_va_list): Initialize
21334 va_list_gpr_counter_field and va_list_fpr_counter_field.
21335
21336 2016-05-27 Wilco Dijkstra <wdijkstr@arm.com>
21337
21338 PR67609
21339 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Remove.
21340 * config/aarch64/aarch64.c
21341 (aarch64_cannot_change_mode_class): Remove function.
21342 * config/aarch64/aarch64-protos.h
21343 (aarch64_cannot_change_mode_class): Remove.
21344
21345 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
21346
21347 * cfgloop.c (record_niter_bound): Record likely upper bounds.
21348 (likely_max_stmt_executions_int, get_likely_max_loop_iterations,
21349 get_likely_max_loop_iterations_int): New.
21350 * cfgloop.h (struct loop): Add nb_iterations_likely_upper_bound,
21351 any_likely_upper_bound.
21352 (get_likely_max_loop_iterations_int, get_likely_max_loop_iterations):
21353 Declare.
21354 * cfgloopmanip.c (copy_loop_info): Copy likely upper bounds.
21355 * loop-unroll.c (unroll_loop_constant_iterations): Update likely
21356 upper bound.
21357 (unroll_loop_constant_iterations): Likewise.
21358 (unroll_loop_runtime_iterations): Likewise.
21359 * lto-streamer-in.c (input_cfg): Stream likely upper bounds.
21360 * lto-streamer-out.c (output_cfg): Likewise.
21361 * tree-ssa-loop-ivcanon.c (try_peel_loop): Update likely upper
21362 bounds.
21363 (canonicalize_loop_induction_variables): Dump likely upper bounds.
21364 * tree-ssa-loop-niter.c (record_estimate): Record likely upper bounds.
21365 (likely_max_loop_iterations): New.
21366 (likely_max_loop_iterations_int): New.
21367 (likely_max_stmt_executions): New.
21368 * tree-ssa-loop-niter.h (likely_max_loop_iterations,
21369 likely_max_loop_iterations_int, likely_max_stmt_executions_int,
21370 likely_max_stmt_executions): Declare.
21371
21372 2016-05-27 Marek Polacek <polacek@redhat.com>
21373
21374 PR middle-end/71308
21375 * gimple-fold.c (gimple_fold_call): Check that LHS is not null.
21376
21377 2016-05-27 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21378
21379 * config/s390/s390.md (2x risbg splitters): Use
21380 reg_overlap_mentioned_p instead of rtx_equal_p.
21381
21382 2016-05-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
21383
21384 * combine.c (make_compound_operation): Take known zero bits into
21385 account when checking for possible zero_extend.
21386
21387 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21388
21389 * config/aarch64/aarch64.md (ashl<mode>3, SHORT modes):
21390 Use const_int_operand for operand 2 predicate. Simplify expand code
21391 as a result.
21392
21393 2016-05-27 Ilya Enkovich <ilya.enkovich@intel.com>
21394
21395 PR middle-end/71279
21396 * fold-const.c (fold_ternary_loc): Don't fold VEC_COND_EXPR
21397 into comparison.
21398
21399 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21400
21401 * config/aarch64/aarch64-modes.def (CC_ZESWP, CC_SESWP): Delete.
21402 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Remove condition
21403 that returns CC_SESWPmode and CC_ZESWPmode.
21404 (aarch64_get_condition_code_1): Remove handling of CC_SESWPmode
21405 and CC_SESWPmode.
21406 (aarch64_rtx_costs): Likewise.
21407
21408 2016-05-26 Michael Meissner <meissner@linux.vnet.ibm.com>
21409
21410 * config/rs6000/rs6000.c (rs6000_emit_p9_fp_minmax): New function
21411 for ISA 3.0 min/max support.
21412 (rs6000_emit_p9_fp_cmove): New function for ISA 3.0 floating point
21413 conditional move support.
21414 (rs6000_emit_cmove): Call rs6000_emit_p9_fp_minmax and
21415 rs6000_emit_p9_fp_cmove if the ISA 3.0 instructions are
21416 available.
21417 * config/rs6000/rs6000.md (SFDF2): New iterator to allow doing
21418 conditional moves where the comparison type is different from move
21419 type.
21420 (fp_minmax): New code iterator for smin/smax.
21421 (minmax): New code attributes for min/max.
21422 (SMINMAX): Likewise.
21423 (smax<mode>3): Combine min, max insns into one insn using the
21424 fp_minmax code iterator. Add support for ISA 3.0 min/max
21425 instructions that don't need -ffast-math.
21426 (s<minmax><mode>3): Likewise.
21427 (smax<mode>3_vsx): Likewise.
21428 (smin<mode>3): Likewise.
21429 (s<minmax><mode>3_vsx): Likewise.
21430 (smin<mode>3_vsx): Likewise.
21431 (pre-VSX min/max splitters): Likewise.
21432 (s<minmax><mode>3_fpr): Likewise.
21433 (movsfcc): Rewrite floating point conditional moves to combine
21434 SFmode/DFmode into a single insn.
21435 (mov<mode>cc): Likewise.
21436 (movdfcc): Likewise.
21437 (fselsfsf4): Combine FSEL cases into a single insn, using SFDF and
21438 SFDF2 iterators to handle all combinations.
21439 (fseldfsf4): Likewise.
21440 (fsel<SFDF:mode><SFDF2:mode>4): Likewise.
21441 (fseldfdf4): Likewise.
21442 (fselsfdf4): Likewise.
21443 (mov<SFDF:mode><SFDF2:mode>cc_p9): Add support for the ISA 3.0
21444 comparison instructions that set a 0/-1 mask, and use it for
21445 floating point conditional move via XXSEL.
21446 (fpmask<mode>): Likewise.
21447 (xxsel<mode>): Likewise.
21448 * config/rs6000/predicates.md (min_max_operator): Delete, no
21449 longer used.
21450 (fpmask_comparison_operaton): New insn for ISA 3.0 comparison
21451 instructions that generate a 0/-1 mask for use with XXSEL.
21452 * config/rs6000/rs6000.h (TARGET_MINMAX_SF): New helper macros to
21453 say whether floating point min/max is available, either through
21454 FSEL, ISA 2.06 min/max, and ISA 3.0 min/max instrucitons.
21455 (TARGET_MINMAX_DF): Likewise.
21456
21457 2016-05-27 Alan Modra <amodra@gmail.com>
21458
21459 PR rtl-optimization/71275
21460 * ira.c (ira): Call loop_optimizer_init to set up bb_loop_depth
21461 for update_equiv_regs and combine_and_move_insns.
21462
21463 2016-05-26 Uros Bizjak <ubizjak@gmail.com>
21464
21465 * config/i386/i386.md (*movqi_internal) <attr "isa">: Use
21466 if_then_else or cond RTXes to calculate attribute value.
21467 * config/i386/mmx.md (*vec_extractv2sf_1) <attr "prefix_rep">: Ditto.
21468 <attr "length_immediate>: Ditto.
21469 (*vec_extractv2sf_1) <attr "length_immediate">: Ditto.
21470 * config/i386/sse.md (sse_loadlps) <attr "length_immediate">: Ditto.
21471 (*vec_concatv2sf_sse4_1) <attr "isa">: Ditto.
21472 <attr "type">: Ditto.
21473 <attr "prefix_data16">: Ditto.
21474 <attr "prefix_extra">: Ditto.
21475 <attr "length_immediate">: Ditto.
21476 <attr "prefix">: Ditto.
21477 (vec_set<mode>_0) <attr "isa">: Ditto.
21478 <attr "prefix_extra">: Ditto.
21479 <attr "length_immediate">: Ditto.
21480 <attr "prefix">: Ditto.
21481 (*vec_interleave_highv2df) <attr "prefix_data16">: Ditto.
21482 (*vec_interleave_lowv2df) <attr "prefix_data16">: Ditto.
21483 (sse2_storelpd) <attr "prefix_data16">: Ditto.
21484 (sse2_loadhpd) <attr "prefix_data16">: Ditto.
21485 (sse2_loadlpd) <attr "prefix_data16">: Ditto.
21486 <attr "length_immediate">: Ditto.
21487 <attr "prefix">: Ditto.
21488 (sse2_movsd) <attr "length_immediate">: Ditto.
21489 <attr "prefix">: Ditto.
21490 (vec_concatv2df) <attr "isa">: Ditto.
21491 <attr "prefix">: Ditto.
21492 (*vec_extractv4si) <attr "prefix_extra">: Ditto.
21493 (*vec_extractv2di_1) <attr "isa">: Ditto.
21494 <attr "type">: Ditto.
21495 <attr "length_immediate">: Ditto.
21496 <attr "prefix_rex">: Ditto.
21497 <attr "prefix_extra">: Ditto.
21498 (*vec_concatv2si_sse4_1) <attr "type">: Ditto.
21499 <attr "prefix_extra">: Ditto.
21500 <attr "length_immediate">: Ditto.
21501 (vec_concatv2di) <attr "isa">: Ditto.
21502 <attr "prefix_extra">: Ditto.
21503 <attr "length_immediate">: Ditto.
21504 <attr "prefix">: Ditto.
21505
21506 2016-05-26 Martin Liska <mliska@suse.cz>
21507
21508 * tree-ssa-loop-ivopts.c (comp_cost::infinite_cost_p): New
21509 function.
21510 (operator+): Likewise.
21511 (operator-): Likewise.
21512 (comp_cost::operator+=): Likewise.
21513 (comp_cost::operator-=): Likewise.
21514 (comp_cost::operator/=): Likewise.
21515 (comp_cost::operator*=): Likewise.
21516 (operator<): Likewise.
21517 (operator==): Likewise.
21518 (operator<=): Likewise.
21519 (new_cost): Remove.
21520 (infinite_cost_p): Likewise.
21521 (add_costs): Likewise.
21522 (sub_costs): Likewise.
21523 (compare_costs): Likewise.
21524 (set_group_iv_cost): Use the newly introduced functions.
21525 (get_address_cost): Likewise.
21526 (get_shiftadd_cost): Likewise.
21527 (force_expr_to_var_cost): Likewise.
21528 (split_address_cost): Likewise.
21529 (ptr_difference_cost): Likewise.
21530 (difference_cost): Likewise.
21531 (get_computation_cost_at): Likewise.
21532 (determine_group_iv_cost_generic): Likewise.
21533 (determine_group_iv_cost_address): Likewise.
21534 (determine_group_iv_cost_cond): Likewise.
21535 (autoinc_possible_for_pair): Likewise.
21536 (determine_group_iv_costs): Likewise.
21537 (cheaper_cost_pair): Likewise.
21538 (iv_ca_recount_cost): Likewise.
21539 (iv_ca_set_no_cp): Likewise.
21540 (iv_ca_set_cp): Likewise.
21541 (iv_ca_cost): Likewise.
21542 (iv_ca_new): Likewise.
21543 (iv_ca_dump): Likewise.
21544 (iv_ca_narrow): Likewise.
21545 (iv_ca_prune): Likewise.
21546 (iv_ca_replace): Likewise.
21547 (try_add_cand_for): Likewise.
21548 (try_improve_iv_set): Likewise.
21549 (find_optimal_iv_set): Likewise.
21550
21551 2016-05-26 Richard Sandiford <richard.sandiford@arm.com>
21552
21553 * tree-ssa-loop-ivopts.c (loop_body_includes_call): Don't assume
21554 that internal functions will clobber all caller-saved registers.
21555
21556 2016-05-26 Wilco Dijkstra <wdijkstr@arm.com>
21557
21558 * config/aarch64/aarch64.c (aarch64_case_values_threshold):
21559 Return a better case_values_threshold when optimizing.
21560
21561 2016-05-26 Wilco Dijkstra <wdijkstr@arm.com>
21562
21563 * config/aarch64/aarch64-simd.md (aarch64_combinez):
21564 Add ? to integer variant.
21565 (aarch64_combinez_be): Likewise.
21566
21567 2016-05-26 Jakub Jelinek <jakub@redhat.com>
21568
21569 * config/i386/sse.md (*vcvtps2ph_store<mask_name>): Use v constraint
21570 instead of x constraint.
21571 (vcvtps2ph256<mask_name>): Likewise.
21572
21573 * config/i386/sse.md (*ssse3_palignr<mode>_perm): Add avx512bw
21574 alternative. Formatting fix.
21575
21576 * config/i386/sse.md
21577 (<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Rename
21578 to ...
21579 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>): ... this.
21580 (*avx_vperm_broadcast_v4sf): Use v constraint instead of x. Use
21581 maybe_evex prefix instead of vex.
21582 (*avx_vperm_broadcast_<mode>): Use v constraint instead of x. Handle
21583 EXT_REX_SSE_REG_P (op0) case in the splitter.
21584
21585 2016-05-25 Jeff Law <law@redhat.com>
21586
21587 PR tree-optimization/71272
21588 * tree-ssa-threadbackward.c (convert_and_register_jump_thread_path):
21589 Update comments. Add test for empty path.
21590
21591 2016-05-25 Bill Seurer <seurer@linux.vnet.ibm.com>
21592
21593 * config/rs6000/altivec.h (vec_cmpne): Add #define for vec_cmpne.
21594 * config/rs6000/rs6000-builtin.def (vec_cmpne): Add vec_cmpne as a
21595 special case builtin.
21596 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
21597 code for ALTIVEC_BUILTIN_VEC_CMPNE.
21598 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
21599 for __builtin_vec_cmpne.
21600
21601 2016-05-25 Eric Botcazou <ebotcazou@adacore.com>
21602
21603 * tree-ssa-phiopt.c (factor_out_conditional_conversion): Remove
21604 redundant test and bail out if the type of the new operand is not
21605 a GIMPLE register type after stripping a VIEW_CONVERT_EXPR.
21606
21607 2016-05-25 Uros Bizjak <ubizjak@gmail.com>
21608
21609 * config/i386/i386.opt (ix86_target_flags_explicit): Remove.
21610 (x_ix86_target_flags_explicit): Remove.
21611 * config/i386/i386.c (ix86_function_specific_save): Do not copy
21612 x_ix86_target_flags_explicit.
21613 (ix86_function_specific_restore): Ditto.
21614
21615 2016-05-25 Uros Bizjak <ubizjak@gmail.com>
21616 H.J. Lu <hongjiu.lu@intel.com>
21617
21618 PR target/70738
21619 * common/config/i386/i386-common.c
21620 (OPTION_MASK_ISA_GENERAL_REGS_ONLY_UNSET): New.
21621 (ix86_handle_option) <case OPT_mgeneral_regs_only>: Disable
21622 MPX, MMX, SSE and x87 instructions for -mgeneral-regs-only.
21623 * config/i386/i386.opt (ix86_target_flags): Add new Variable.
21624 (-mgeneral-regs-only): Add new option.
21625 * config/i386/i386.c (ix86_option_override_internal): Don't enable
21626 x87 instructions if only general registers are allowed.
21627 (ix86_target_string): Add ix86_flags argument. Handle additional
21628 flags options through ix86_flags argument. Update all callers.
21629 * doc/invoke.texi (x86 Options): Document -mgeneral-regs-only.
21630
21631 2016-05-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21632
21633 PR rtl-optimization/66940
21634 * ifcvt.c (noce_get_alt_condition): Check that incrementing or
21635 decrementing desired_val will not overflow before performing these
21636 operations.
21637
21638 2016-05-25 Ilya Verbin <ilya.verbin@intel.com>
21639
21640 * config/i386/i386-builtin-types.def: Add V16SI_FTYPE_V16SF,
21641 V8DF_FTYPE_V8DF_ROUND, V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND.
21642 * config/i386/i386.c (enum ix86_builtins): Add
21643 IX86_BUILTIN_CVTPS2DQ512_MASK, IX86_BUILTIN_FLOORPS512,
21644 IX86_BUILTIN_FLOORPD512, IX86_BUILTIN_CEILPS512, IX86_BUILTIN_CEILPD512,
21645 IX86_BUILTIN_TRUNCPS512, IX86_BUILTIN_TRUNCPD512,
21646 IX86_BUILTIN_CVTPS2DQ512, IX86_BUILTIN_VEC_PACK_SFIX512,
21647 IX86_BUILTIN_FLOORPS_SFIX512, IX86_BUILTIN_CEILPS_SFIX512,
21648 IX86_BUILTIN_ROUNDPS_AZ_SFIX512.
21649 (builtin_description bdesc_args): Add __builtin_ia32_floorps512,
21650 __builtin_ia32_ceilps512, __builtin_ia32_truncps512,
21651 __builtin_ia32_floorpd512, __builtin_ia32_ceilpd512,
21652 __builtin_ia32_truncpd512, __builtin_ia32_cvtps2dq512,
21653 __builtin_ia32_vec_pack_sfix512, __builtin_ia32_roundps_az_sfix512,
21654 __builtin_ia32_floorps_sfix512, __builtin_ia32_ceilps_sfix512.
21655 Change IX86_BUILTIN_CVTPS2DQ512 to IX86_BUILTIN_CVTPS2DQ512_MASK for
21656 __builtin_ia32_cvtps2dq512_mask.
21657 (ix86_expand_args_builtin): Handle V8DF_FTYPE_V8DF_ROUND,
21658 V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF.
21659 (ix86_builtin_vectorized_function): Handle builtins mentioned above.
21660 * config/i386/sse.md
21661 (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name><round_name>):
21662 Rename to ...
21663 (avx512f_fix_notruncv16sfv16si<mask_name><round_name>): ... this.
21664 (<mask_codefor>avx512f_cvtpd2dq512<mask_name><round_name>): Rename
21665 to ...
21666 (avx512f_cvtpd2dq512<mask_name><round_name>): ... this.
21667 (avx512f_vec_pack_sfix_v8df): New define_expand.
21668 (avx512f_roundpd512): Rename to ...
21669 (avx512f_round<castmode>512): ... this. Change iterator.
21670 (avx512f_roundps512_sfix): New define_expand.
21671 (round<mode>2_sfix): Change iterator.
21672
21673 2016-05-25 Nick Clifton <nickc@redhat.com>
21674
21675 * config/msp430/msp430.c (msp430_attr): Produce an error if a
21676 static interrupt handler is detected.
21677 * config/msp430/msp430.h (LIB_SPEC): Do not use msp430.ld as the
21678 default linker script.
21679 * config/msp430/msp430.md (movpsihi2_lo): New pattern for loading
21680 the low part of a symbolic pointer.
21681
21682 2016-05-25 Richard Biener <rguenther@suse.de>
21683
21684 PR tree-optimization/71261
21685 * tree-if-conv.c (ifcvt_split_def_stmt): Walk uses on the
21686 interesting stmt instead of immediate uses when looking
21687 for the use operand to replace.
21688
21689 2016-05-25 Martin Liska <mliska@suse.cz>
21690
21691 * ipa-inline.c (edge_badness): Use 'w/' instead of 'w'.
21692
21693 2016-05-25 Richard Biener <rguenther@suse.de>
21694
21695 PR tree-optimization/71264
21696 * tree-vect-stmts.c (vect_init_vector): Properly deal with
21697 vector type val.
21698
21699 2016-05-25 Martin Liska <mliska@suse.cz>
21700
21701 PR tree-optimization/71239
21702 * tree.c (array_at_struct_end_p): Do not call operand_equal_p
21703 if DECL_SIZE is NULL.
21704
21705 2016-05-25 Richard Biener <rguenther@suse.de>
21706
21707 * timevar.def (TV_TREE_LOOP_IFCVT): Add.
21708 * tree-if-conv.c (pass_data_if_conversion): Use it.
21709
21710 2016-05-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
21711
21712 * cgraph.c (cgraph_node::get_availability): Fix typo in comment.
21713 * symtab.c (symtab_node::binds_to_current_def_p): Likewise.
21714 * varpool.c (varpool_node::get_availability): Likewise.
21715
21716 2016-05-24 Michael Meissner <meissner@linux.vnet.ibm.com>
21717
21718 * config/rs6000/altivec.md (VNEG iterator): New iterator for
21719 VNEGW/VNEGD instructions.
21720 (p9_neg<mode>2): New insns for ISA 3.0 VNEGW/VNEGD.
21721 (neg<mode>2): Add expander for V2DImode added in ISA 2.07, and
21722 support for ISA 3.0 VNEGW/VNEGD instructions.
21723
21724 2016-05-24 Cesar Philippidis <cesar@codesourcery.com>
21725
21726 * gimplify.c (omp_notice_variable): Use zero-length arrays for data
21727 pointers inside OACC_DATA regions.
21728 (gimplify_scan_omp_clauses): Prune firstprivate clause associated
21729 with OACC_DATA, OACC_ENTER_DATA and OACC_EXIT data regions.
21730 (gimplify_adjust_omp_clauses): Fix typo in comment.
21731
21732 2016-05-24 Michael Meissner <meissner@linux.vnet.ibm.com>
21733
21734 * config/rs6000/altivec.md (VParity): New mode iterator for vector
21735 parity built-in functions.
21736 (p9v_ctz<mode>2): Add support for ISA 3.0 vector count trailing
21737 zeros.
21738 (p9v_parity<mode>2): Likewise.
21739 * config/rs6000/vector.md (VEC_IP): New mode iterator for vector
21740 parity.
21741 (ctz<mode>2): ISA 3.0 expander for vector count trailing zeros.
21742 (parity<mode>2): ISA 3.0 expander for vector parity.
21743 * config/rs6000/rs6000-builtin.def (BU_P9_MISC_1): New macros for
21744 power9 built-ins.
21745 (BU_P9_64BIT_MISC_0): Likewise.
21746 (BU_P9_MISC_0): Likewise.
21747 (BU_P9V_AV_1): Likewise.
21748 (BU_P9V_AV_2): Likewise.
21749 (BU_P9V_AV_3): Likewise.
21750 (BU_P9V_AV_P): Likewise.
21751 (BU_P9V_VSX_1): Likewise.
21752 (BU_P9V_OVERLOAD_1): Likewise.
21753 (BU_P9V_OVERLOAD_2): Likewise.
21754 (BU_P9V_OVERLOAD_3): Likewise.
21755 (VCTZB): Add vector count trailing zeros support.
21756 (VCTZH): Likewise.
21757 (VCTZW): Likewise.
21758 (VCTZD): Likewise.
21759 (VPRTYBD): Add vector parity support.
21760 (VPRTYBQ): Likewise.
21761 (VPRTYBW): Likewise.
21762 (VCTZ): Add overloaded vector count trailing zeros support.
21763 (VPRTYB): Add overloaded vector parity support.
21764 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
21765 overloaded vector count trailing zeros and parity instructions.
21766 * config/rs6000/rs6000.md (wd mode attribute): Add V1TI and TI for
21767 vector parity support.
21768 * config/rs6000/altivec.h (vec_vctz): Add ISA 3.0 vector count
21769 trailing zeros support.
21770 (vec_cntlz): Likewise.
21771 (vec_vctzb): Likewise.
21772 (vec_vctzd): Likewise.
21773 (vec_vctzh): Likewise.
21774 (vec_vctzw): Likewise.
21775 (vec_vprtyb): Add ISA 3.0 vector parity support.
21776 (vec_vprtybd): Likewise.
21777 (vec_vprtybw): Likewise.
21778 (vec_vprtybq): Likewise.
21779 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
21780 the ISA 3.0 vector count trailing zeros and vector parity built-in
21781 functions.
21782
21783 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
21784
21785 * tree-ssa-reassoc.c (sort_by_operand_rank): Skip checking gimple_bb
21786 when there is stmt_to_insert.
21787
21788 2016-05-24 Martin Sebor <msebor@redhat.com>
21789
21790 PR c++/71147
21791 * tree.h (complete_or_array_type_p): New inline function.
21792
21793 2016-05-24 Jakub Jelinek <jakub@redhat.com>
21794
21795 * config/i386/i386.h (TARGET_AVOID_4BYTE_PREFIXES): Define.
21796 * config/i386/constraints.md (Yr): Test TARGET_AVOID_4BYTE_PREFIXES
21797 rather than X86_TUNE_AVOID_4BYTE_PREFIXES.
21798
21799 * config/i386/sse.md (<sse4_1>_round<ssemodesuffix><avxsizesuffix>):
21800 Limit 1st alternative to noavx isa, split 2nd alternative into one
21801 noavx and one avx alternative, use *x and Bm in the former and
21802 x and m in the latter.
21803
21804 * config/i386/sse.md (vec_set<mode>_0): Use sse4_noavx isa instead
21805 of sse4 for the first alternative, drop %v from the template
21806 and d operand modifier. Split second alternative into one sse4_noavx
21807 and one avx alternative, use *x instead of *v in the former and v
21808 instead of *v in the latter.
21809 (*sse4_1_extractps): Use noavx isa instead of * for the first
21810 alternative, drop %v from the template. Split second alternative into
21811 one noavx and one avx alternative, use *x instead of *v in the
21812 former and v instead of *v in the latter.
21813 (<vi8_sse4_1_avx2_avx512>_movntdqa): Guard the first 2 alternatives
21814 with noavx and the last one with avx.
21815 (sse4_1_phminposuw): Guard first alternative with noavx isa,
21816 split the second one into one noavx and one avx alternative,
21817 use *x and Bm in the former and x and m in the latter one.
21818 (<sse4_1>_ptest<mode>): Use noavx instead of * for the first two
21819 alternatives.
21820
21821 * config/i386/sse.md (sse4_1_<code>v8qiv8hi2<mask_name>): Limit
21822 first two alternatives to noavx, use *x instead of *v in the second
21823 one, add avx alternative without *.
21824 (sse4_1_<code>v4qiv4si2<mask_name>, sse4_1_<code>v4hiv4si2<mask_name>,
21825 sse4_1_<code>v2qiv2di2<mask_name>, sse4_1_<code>v2hiv2di2<mask_name>,
21826 sse4_1_<code>v2siv2di2<mask_name>): Likewise.
21827
21828 2016-05-24 Jeff Law <law@redhat.com>
21829
21830 * tree-ssa-threadbackwards.c (convert_and_register_jump_thread_path):
21831 New function, extracted from...
21832 (fsm_find_control_statement_thread_paths): Here. Use the new function.
21833 Allow simple copies and constant initializations in the SSA chain.
21834
21835 2016-05-24 Marek Polacek <polacek@redhat.com>
21836
21837 PR c/71249
21838 * gimplify.c (gimplify_switch_expr): Look into the innermost lexical
21839 scope.
21840
21841 2016-05-24 Jakub Jelinek <jakub@redhat.com>
21842
21843 PR c++/71257
21844 * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
21845 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
21846 SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP. Add
21847 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP and
21848 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP cases explicitly.
21849
21850 2016-05-24 Richard Biener <rguenther@suse.de>
21851
21852 PR tree-optimization/71240
21853 * tree-ssa-math-opts.c (init_symbolic_number): Verify the source
21854 has integral type.
21855
21856 2016-05-24 Richard Biener <rguenther@suse.de>
21857
21858 PR tree-optimization/71230
21859 * tree-ssa-reassoc.c (zero_one_operation): Handle negate special ops.
21860
21861 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
21862
21863 * tree-vectorizer.h (vectorizable_comparison): Delete.
21864 * tree-vect-loop.c (vectorizable_reduction): Remove redundant
21865 PURE_SLP_STMT check.
21866 * tree-vect-stmts.c (vectorizable_call): Likewise.
21867 (vectorizable_simd_clone_call): Likewise.
21868 (vectorizable_conversion): Likewise.
21869 (vectorizable_assignment): Likewise.
21870 (vectorizable_shift): Likewise.
21871 (vectorizable_operation): Likewise.
21872 (vectorizable_load): Likewise.
21873 (vectorizable_condition): Likewise.
21874 (vectorizable_store): Likewise. Assert that we don't have
21875 hybrid SLP.
21876 (vectorizable_comparison): Make static. Remove redundant
21877 PURE_SLP_STMT check.
21878 (vect_transform_stmt): Assert that we always have an slp_node
21879 if PURE_SLP_STMT.
21880
21881 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21882
21883 * config/arm/neon.md (ashldi3_neon): Replace comparison of INTVAL of
21884 operands[2] against 1 with comparison against CONST1_RTX.
21885 (<shift>di3_neon): Likewise.
21886 * config/arm/predicates.md (const0_operand): Replace with comparison
21887 against CONST0_RTX.
21888
21889 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21890
21891 * config/arm/arm.md (ashldi3): Replace comparison of INTVAL of
21892 operands[2] against 1 with comparison against CONST1_RTX.
21893 (ashrdi3): Likewise.
21894 (lshrdi3): Likewise.
21895 (ashlsi3): Replace cast of INTVAL to unsigned HOST_WIDE_INT with
21896 UINTVAL.
21897 (ashrsi3): Likewise.
21898 (lshrsi3): Likewise.
21899 (rotrsi3): Likewise.
21900 (define_split above *compareqi_eq0): Likewise.
21901 (define_split above "prologue"): Likewise.
21902 * config/arm/arm.c (thumb1_size_rtx_costs): Likewise.
21903 * config/arm/predicates.md (shift_operator): Likewise.
21904 (shift_nomul_operator): Likewise.
21905 (sat_shift_operator): Likewise.
21906 (thumb1_cmp_operand): Likewise.
21907 (const_neon_scalar_shift_amount_operand): Replace manual range
21908 check with IN_RANGE.
21909 * config/arm/thumb1.md (define_peephole2 above *thumb_subdi3):
21910 Replace cast of INTVAL to unsigned HOST_WIDE_INT with UINTVAL.
21911
21912 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21913
21914 * config/arm/arm.md (andsi3): Replace cast of 1 to HOST_WIDE_INT
21915 with HOST_WIDE_INT_1.
21916 (insv): Likewise.
21917 * config/arm/arm.c (optimal_immediate_sequence): Replace cast of
21918 1 to unsigned HOST_WIDE_INT with HOST_WIDE_INT_1U.
21919 (arm_canonicalize_comparison): Likewise.
21920 (thumb1_rtx_costs): Replace cast of 1 to HOST_WIDE_INT with
21921 HOST_WIDE_INT_1.
21922 (thumb1_size_rtx_costs): Likewise.
21923 (vfp_const_double_index): Replace cast of 1 to unsigned
21924 HOST_WIDE_INT with HOST_WIDE_INT_1U.
21925 (get_jump_table_size): Replace cast of 1 to HOST_WIDE_INT with
21926 HOST_WIDE_INT_1.
21927 (arm_asan_shadow_offset): Replace cast of 1 to unsigned
21928 HOST_WIDE_INT with HOST_WIDE_INT_1U.
21929 * config/arm/neon.md (vec_set<mode>): Replace cast of 1 to
21930 HOST_WIDE_INT with HOST_WIDE_INT_1.
21931
21932 2016-05-24 Marek Polacek <polacek@redhat.com>
21933
21934 * tree-cfg.h (should_remove_lhs_p): New predicate.
21935 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
21936 * gimplify.c (gimplify_modify_expr): Likewise.
21937 * tree-cfg.c (verify_gimple_call): Likewise.
21938 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
21939 * gimple-fold.c: Include "tree-cfg.h".
21940 (gimple_fold_call): Use should_remove_lhs_p.
21941
21942 2016-05-24 Richard Biener <rguenther@suse.de>
21943
21944 PR tree-optimization/71253
21945 * cfganal.h (control_dependences): Make robust against edge
21946 and BB removal.
21947 (control_dependences::control_dependences): Remove edge_list argument.
21948 (control_dependences::get_edge): Remove.
21949 (control_dependences::get_edge_src): Add.
21950 (control_dependences::get_edge_dest): Likewise.
21951 (control_dependences::m_el): Make a vector of edge src/dest index.
21952 * cfganal.c (control_dependences::find_control_dependence): Adjust.
21953 (control_dependences::control_dependences): Likewise.
21954 (control_dependences::~control_dependence): Likewise.
21955 (control_dependences::get_edge): Remove.
21956 (control_dependences::get_edge_src): Add.
21957 (control_dependences::get_edge_dest): Likewise.
21958 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Use
21959 get_edge_src.
21960 (perform_tree_ssa_dce): Adjust.
21961 * tree-loop-distribution.c (create_edge_for_control_dependence): Use
21962 get_edge_src.
21963 (pass_loop_distribution::execute): Adjust. Do loop destroying
21964 conditional on changed.
21965
21966 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21967
21968 PR target/69857
21969 * config/arm/arm.c (gen_operands_ldrd_strd): Remove bogus early
21970 return. Reindent transformation comment and mention the ARM state
21971 behavior.
21972
21973 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
21974
21975 PR middle-end/71252
21976 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Add stmt_to_insert
21977 after build_and_add_sum creates new use stmt.
21978
21979 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
21980
21981 * tree-vect-stmts.c (vectorizable_load): Reorder checks so that
21982 load_lanes/grouped_load classification comes first. Don't check
21983 whether the vectorization factor is a multiple of the group size
21984 for load_lanes.
21985
21986 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
21987
21988 * tree-vect-data-refs.c (vect_analyze_group_access_1): Set
21989 GROUP_GAP for single-element interleaving.
21990 * tree-vect-stmts.c (vectorizable_load): Remove force_peeling
21991 variable.
21992
21993 2016-05-24 Richard Biener <rguenther@suse.de>
21994
21995 PR middle-end/70434
21996 PR c/69504
21997 * tree-ssa.c (non_rewritable_mem_ref_base): Make sure to mark
21998 bases which are accessed with non-invariant indices.
21999 * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Re-write
22000 constant index ARRAY_REFs of vectors into BIT_FIELD_REFs.
22001
22002 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
22003
22004 PR middle-end/71170
22005 * tree-ssa-reassoc.c (struct operand_entry): Add field stmt_to_insert.
22006 (add_to_ops_vec): Add stmt_to_insert.
22007 (add_repeat_to_ops_vec): Init stmt_to_insert.
22008 (insert_stmt_before_use): New.
22009 (transform_add_to_multiply): Remove mult_stmt insertion and add it
22010 to ops vector.
22011 (get_ops): Init stmt_to_insert.
22012 (maybe_optimize_range_tests): Likewise.
22013 (rewrite_expr_tree): Insert stmt_to_insert before use stmt.
22014 (rewrite_expr_tree_parallel): Likewise.
22015 (reassociate_bb): Likewise.
22016
22017 2016-05-23 Michael Meissner <meissner@linux.vnet.ibm.com>
22018
22019 PR target/71201
22020 * config/rs6000/altivec.md (altivec_vperm_<mode>_internal): Drop
22021 ISA 3.0 xxperm fusion alternative.
22022 (altivec_vperm_v8hiv16qi): Likewise.
22023 (altivec_vperm_<mode>_uns_internal): Likewise.
22024 (vperm_v8hiv4si): Likewise.
22025 (vperm_v16qiv8hi): Likewise.
22026
22027 2016-05-23 Michael Meissner <meissner@linux.vnet.ibm.com>
22028 Kelvin Nilsen <kelvin@gcc.gnu.org>
22029
22030 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate
22031 vpermr/xxpermr on ISA 3.0.
22032 (altivec_expand_vec_perm_le): Likewise.
22033 * config/rs6000/altivec.md (UNSPEC_VPERMR): New unspec.
22034 (altivec_vpermr_<mode>_internal): Add VPERMR/XXPERMR support for
22035 ISA 3.0.
22036
22037 2016-05-23 Uros Bizjak <ubizjak@gmail.com>
22038
22039 * config/i386/i386.h (IS_STACK_MODE): Enable for
22040 TARGET_MIX_SSE_I387. Rewrite using X87_FLOAT_MODE_P and
22041 SSE_FLOAT_MODE_P macros.
22042 * config/i386/i386.c (ix86_preferred_reload_class): Use
22043 IS_STACK_MODE, INTEGER_CLASS_P, FLOAT_CLASS_P and Q_CLASS_P macros.
22044 Cleanup regclass processing for CONST_DOUBLE_P.
22045 (ix86_preferred_output_reload_class): Use IS_STACK_MODE macro.
22046 (ix86_rtx_costs): Remove redundant TARGET_80387 check
22047 with IS_STACK_MODE macro.
22048 * config/i386/i386.md: Replace SSE_FLOAT_MODE_P (DFmode)
22049 with TARGET_SSE2.
22050 (*movdf_internal): Use IS_STACK_MODE macro.
22051 (*movsf_internal): Ditto.
22052
22053 2016-05-23 Marc Glisse <marc.glisse@inria.fr>
22054
22055 * match.pd (a * (1 << b), ~x & ~y, ~X ^ ~Y, (X ^ Y) ^ Y, ~ (-A),
22056 ~ (A - 1), ~(~X >> Y), ~(~X >>r Y)): Relax constraints.
22057
22058 2016-05-23 Jeff Law <law@redhat.com>
22059
22060 * tree-ssa-threadbackward.c (profitable_jump_thread_path): New function
22061 extracted from ...
22062 (fsm_find_control_statement_thread_paths): Call it.
22063
22064 2016-05-23 Martin Jambor <mjambor@suse.cz>
22065
22066 PR ipa/71234
22067 * ipa-cp.c (ipa_get_indirect_edge_target_1): Only check value of
22068 from_global_constant if t is not NULL.
22069
22070 2016-05-23 Marek Polacek <polacek@redhat.com>
22071
22072 PR c/49859
22073 * common.opt (Wswitch-unreachable): New option.
22074 * doc/invoke.texi: Document -Wswitch-unreachable.
22075 * gimplify.c (gimplify_switch_expr): Implement the -Wswitch-unreachable
22076 warning.
22077
22078 2016-05-23 Bin Cheng <bin.cheng@arm.com>
22079
22080 * tree-ssa-address.c (copy_ref_info): Check NULL TMR_STEP when
22081 TMR_INDEX is non-NULL.
22082
22083 2016-05-23 Richard Biener <rguenther@suse.de>
22084
22085 PR tree-optimization/71230
22086 * tree-ssa-reassoc.c (acceptable_pow_call): Move initial condition...
22087 (try_special_add_to_ops): ... here. Always test for single-use.
22088
22089 2016-05-23 Martin Jambor <mjambor@suse.cz>
22090
22091 * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Create an empty
22092 default block if a PHI node in the original one would be resized.
22093
22094 2016-05-23 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
22095
22096 PR tree-optimization/58135
22097 * tree-vect-slp.c: When group size is not multiple
22098 of vector size, allow splitting of store group at
22099 vector boundary.
22100
22101 2016-05-23 Christophe Lyon <christophe.lyon@linaro.org>
22102
22103 * config/arm/arm_neon.h (vtst_p16, vtstq_p16): New.
22104
22105 2016-05-22 Jakub Jelinek <jakub@redhat.com>
22106
22107 * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
22108 vec_set_hi_<mode><mask_name>): Add && <mask_avx512dq_condition>
22109 condition. For !TARGET_AVX512DQ, emit 32x4 instruction instead
22110 of 64x2.
22111
22112 * config/i386/sse.md (vec_set_lo_v16hi, vec_set_hi_v16hi,
22113 vec_set_lo_v32qi, vec_set_hi_v32qi): Add alternative with
22114 v constraint instead of x and vinserti32x4 insn.
22115
22116 * config/i386/sse.md (i128vldq): New mode iterator.
22117 (avx2_vbroadcasti128_<mode>, avx_vbroadcastf128_<mode>): Add
22118 avx512dq and avx512vl alternatives.
22119
22120 * config/i386/sse.md (avx2_vec_dupv4df): Use v instead of x
22121 constraint, use maybe_evex prefix instead of vex.
22122 (vec_dupv4sf): Use v constraint instead of x for output
22123 operand except for noavx alternative, use Yv constraint
22124 instead of x for input. Use maybe_evex prefix instead of vex.
22125 (*vec_dupv4si): Likewise.
22126 (*vec_dupv2di): Likewise.
22127
22128 2016-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
22129
22130 PR middle-end/40921
22131 * tree-ssa-reassoc.c (try_special_add_to_ops): New.
22132 (linearize_expr_tree): Call try_special_add_to_ops.
22133 (reassociate_bb): Convert MULT_EXPR by (-1) to NEGATE_EXPR.
22134
22135 2016-05-21 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
22136
22137 * config/avr/avr.c (avr_expand_prologue): Add INCOMING_FRAME_SP_OFFSET
22138 to computed stack_usage.
22139
22140 2016-05-21 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
22141
22142 PR target/71103
22143 * config/avr/avr.md (define_expand "mov<mode>"): If the source
22144 operand is subreg (symbol_ref) then move the symbol ref to register.
22145
22146 2016-05-21 Jan Hubicka <hubicka@ucw.cz>
22147
22148 * tree.c (array_at_struct_end_p): Look through MEM_REF.
22149
22150 2016-05-21 Kugan Vivekanandarajah <kuganv@linaro.org>
22151
22152 PR middle-end/71179
22153 * tree-ssa-reassoc.c (transform_add_to_multiply): Disallow float
22154 VECTOR type.
22155
22156 2016-05-20 Eric Botcazou <ebotcazou@adacore.com>
22157
22158 * tree-vrp.c (compare_values_warnv): Simplify handling of symbolic
22159 ranges by calling get_single_symbol and tidy up. Look more closely
22160 into NAME + CST1 vs CST2 comparisons if type overflow is undefined.
22161
22162 2016-05-20 Jeff Law <law@redhat.com>
22163
22164 * bitmap.c (bitmap_find_bit): Remove useless test.
22165
22166 2016-05-20 Segher Boessenkool <segher@kernel.crashing.org>
22167
22168 * function.c (thread_prologue_and_epilogue_insns): Commit the
22169 insertion of the epilogue.
22170
22171 2016-05-20 Martin Jambor <mjambor@suse.cz>
22172
22173 PR tree-optimization/70884
22174 * tree-sra.c (initialize_constant_pool_replacements): Do not check
22175 should_scalarize_away_bitmap and cannot_scalarize_away_bitmap bits.
22176 (sort_and_splice_var_accesses): Do not consider multiple scalar reads
22177 of constant pool data as a reason for scalarization.
22178
22179 2016-05-20 Eric Botcazou <ebotcazou@adacore.com>
22180
22181 * config/arm/arm.c (arm_expand_prologue): Set the stack usage to 0
22182 for naked functions.
22183 (thumb1_expand_prologue): Likewise.
22184
22185 2016-05-20 Nathan Sidwell <nathan@acm.org>
22186
22187 * config/nvptx/nptx.c (nvptx_option_override): Only set
22188 flag_toplevel_reorder, if not explicitly specified. Set
22189 flag_no_common, unless explicitly specified.
22190
22191 2016-05-20 David Malcolm <dmalcolm@redhat.com>
22192
22193 * calls.c (can_implement_as_sibling_call_p): Mark param
22194 reg_parm_stack_space with ATTRIBUTE_UNUSED.
22195
22196 2016-05-20 Uros Bizjak <ubizjak@gmail.com>
22197
22198 * config/i386/i386.c (ix86_rtx_costs) <case CONST_DOUBLE>:
22199 Use IS_STACK_MODE when calculating cost of standard 80387 constants.
22200 Fallthru to CONST_VECTOR case to calculate cost of standard SSE
22201 constants.
22202 <case CONST_WIDE_INT>: Calculate cost of (MEM (SYMBOL_REF)).
22203 (ix86_legitimate_constant_p): Use CASE_CONST_SCALAR_INT
22204 and CASE_CONST_ANY.
22205
22206 2016-05-20 Cesar Philippidis <cesar@codesourcery.com>
22207
22208 * config/nvptx/nvptx.md (sincossf3): New pattern.
22209
22210 2016-05-20 David Malcolm <dmalcolm@redhat.com>
22211
22212 * calls.c (maybe_complain_about_tail_call): New function.
22213 (initialize_argument_information): Call
22214 maybe_complain_about_tail_call when clearing *may_tailcall.
22215 (can_implement_as_sibling_call_p): Call
22216 maybe_complain_about_tail_call when returning false.
22217 (expand_call): Read CALL_EXPR_MUST_TAIL_CALL and, if set,
22218 ensure try_tail_call is set. Call maybe_complain_about_tail_call
22219 if tail-call optimization fails.
22220 * cfgexpand.c (expand_call_stmt): Initialize
22221 CALL_EXPR_MUST_TAIL_CALL from gimple_call_must_tail_p.
22222 * gimple-pretty-print.c (dump_gimple_call): Dump
22223 gimple_call_must_tail_p.
22224 * gimple.c (gimple_build_call_from_tree): Call
22225 gimple_call_set_must_tail with the value of
22226 CALL_EXPR_MUST_TAIL_CALL.
22227 * gimple.h (enum gf_mask): Add GF_CALL_MUST_TAIL_CALL.
22228 (gimple_call_set_must_tail): New function.
22229 (gimple_call_must_tail_p): New function.
22230 * print-tree.c (print_node): Update printing of TREE_STATIC
22231 to reflect its use for CALL_EXPR_MUST_TAIL_CALL.
22232 * tree-core.h (struct tree_base): Add MUST_TAIL_CALL to the
22233 trailing comment listing applicable flags.
22234 * tree.h (CALL_EXPR_MUST_TAIL_CALL): New macro.
22235
22236 2016-05-20 David Malcolm <dmalcolm@redhat.com>
22237
22238 * calls.c (expand_call): Move "Rest of purposes for tail call
22239 optimizations to fail" to...
22240 (can_implement_as_sibling_call_p): ...this new function, and
22241 split into multiple "if" statements.
22242
22243 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
22244
22245 * cfgloop.h (expected_loop_iterations_unbounded,
22246 expected_loop_iterations): Unconstify.
22247 * cfgloopanal.c (expected_loop_iterations_unbounded): Sanity check the
22248 profile with known upper bound; return 3 when profile is absent.
22249 (expected_loop_iterations): Update.
22250
22251 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
22252
22253 * loop-doloop.c (doloop_optimize): Use get_estimated_loop_iterations_int
22254 and get_max_loop_iterations_int.
22255
22256 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
22257
22258 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can not produce
22259 realistic upper bounds here.
22260
22261 2016-05-20 Jakub Jelinek <jakub@redhat.com>
22262
22263 PR c++/71210
22264 * gimple-fold.c (gimple_fold_call): Do not remove lhs of noreturn
22265 calls if the LHS is variable length or has addressable type.
22266 If targets[0]->decl is a noreturn call with void return type and
22267 zero arguments, adjust fntype and remove lhs in that case.
22268
22269 2016-05-20 Marc Glisse <marc.glisse@inria.fr>
22270
22271 PR tree-optimization/71079
22272 PR tree-optimization/71206
22273 * match.pd ((X ^ Y) ^ (X ^ Z)): Convert the arguments.
22274
22275 2016-05-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
22276
22277 * tree-vectorizer.c (get_vec_alignment_for_decl): New static function.
22278 (get_vec_alignment_for_array_decl): Likewise.
22279 (get_vec_alignment_for_record_decl): Likewise.
22280 (increase_alignment::execute): Move code to find alignment to
22281 get_vec_alignment_for_array_decl and call get_vec_alignment_for_decl.
22282 (type_align_map): New hash_map.
22283
22284 2016-05-20 Richard Guenther <rguenther@suse.de>
22285
22286 PR tree-optimization/29756
22287 * tree.def (BIT_INSERT_EXPR): New tcc_expression tree code.
22288 * expr.c (expand_expr_real_2): Handle BIT_INSERT_EXPR.
22289 * fold-const.c (operand_equal_p): Likewise.
22290 (fold_ternary_loc): Add constant folding of BIT_INSERT_EXPR.
22291 * gimplify.c (gimplify_expr): Handle BIT_INSERT_EXPR.
22292 * tree-inline.c (estimate_operator_cost): Likewise.
22293 * tree-pretty-print.c (dump_generic_node): Likewise.
22294 * tree-ssa-operands.c (get_expr_operands): Likewise.
22295 * cfgexpand.c (expand_debug_expr): Likewise.
22296 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
22297 * gimple.c (get_gimple_rhs_num_ops): Handle BIT_INSERT_EXPR.
22298 * tree-cfg.c (verify_gimple_assign_ternary): Verify BIT_INSERT_EXPR.
22299 * tree-ssa.c (non_rewritable_lvalue_p): We can rewrite
22300 vector inserts using BIT_FIELD_REF or MEM_REF on the lhs.
22301 (execute_update_addresses_taken): Do it.
22302
22303 2016-05-20 Richard Biener <rguenther@suse.de>
22304
22305 PR tree-optimization/71185
22306 * tree-ssa-loop-prefetch.c (gather_memory_references): Drop
22307 register operations.
22308
22309 2016-05-20 Richard Biener <rguenther@suse.de>
22310
22311 * tree-if-conv.c (add_bb_predicate_gimplified_stmts): Use
22312 gimple_seq_add_seq_without_update.
22313 (release_bb_predicate): Assert we have no operands to free.
22314 (if_convertible_loop_p_1): Calculate post dominators later.
22315 Do not free BB predicates here.
22316 (combine_blocks): Do not recompute BB predicates.
22317 (version_loop_for_if_conversion): Save BB predicates around
22318 loop versioning.
22319
22320 2016-05-19 Segher Boessenkool <segher@kernel.crashing.org>
22321
22322 * function.c (make_epilogue_seq): Remove epilogue_end parameter.
22323 (thread_prologue_and_epilogue_insns): Remove bb_flags. Restructure
22324 code. Ignore sibcalls on EDGE_IGNORE edges.
22325 * shrink-wrap.c (handle_simple_exit): New function. Set EDGE_IGNORE
22326 on edges for sibcalls that run without prologue. The rest of the
22327 function is combined from...
22328 (fix_fake_fallthrough_edge): ... this, and ...
22329 (try_shrink_wrapping): ... a part of this. Remove the bb_with
22330 function argument, make it a local variable.
22331
22332 2016-05-19 Sandra Loosemore <sandra@codesourcery.com>
22333
22334 * config/i386/cygming.h (DWARF2_UNWIND_INFO): Allow
22335 --disable-sjlj-exceptions for TARGET_BI_ARCH to select DWARF-2 EH
22336 for 32-bit mode and SEH for 64-bit.
22337 * config/i386/mingw32.h (SHARED_LIBGCC_UNDEFS_SPEC): Handle
22338 TARGET_64BIT_DEFAULT.
22339
22340 2016-05-19 Ryan Burn <contact@rnburn.com>
22341
22342 * Makefile.in (GTFILES): Add cilk.h and cilk-common.c.
22343 * gengtype.c (open_base_files): Add cilk.h to ifiles.
22344
22345 2016-05-19 Uros Bizjak <ubizjak@gmail.com>
22346
22347 * sched-deps.c (sched_analyze_2) <case TRAP_IF>: Also
22348 force pending loads from memory.
22349
22350 2016-05-19 Kelvin Nilsen <kelvin@gcc.gnu.org>
22351
22352 * config/rs6000/altivec.md (UNSPEC_DARN): New unspec constant.
22353 (UNSPEC_DARN_32): New unspec constant.
22354 (UNSPEC_DARN_RAW): New unspec constant.
22355 (darn_32): New instruction.
22356 (darn_raw): New instruction.
22357 (darn): New instruction.
22358 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_0): Add
22359 support and documentation for this macro.
22360 (BU_P9_MISC_1): New macro definition.
22361 (BU_P9_64BIT_MISC_0): New macro definition.
22362 (BU_P9_MISC_0): New macro definition.
22363 (darn_32): New builtin definition.
22364 (darn_raw): New builtin definition.
22365 (darn): New builtin definition.
22366 * config/rs6000/rs6000.c: Add #define RS6000_BUILTIN_0 and #undef
22367 RS6000_BUILTIN_0 directives to surround each occurrence of
22368 #include "rs6000-builtin.def".
22369 (rs6000_builtin_mask_calculate): Add in the RS6000_BTM_MODULO and
22370 RS6000_BTM_64BIT flags to the returned mask, depending on
22371 configuration.
22372 (def_builtin): Correct an error in the assignments made to the
22373 debugging variable attr_string.
22374 (rs6000_expand_builtin): Add support for no-operand built-in
22375 functions.
22376 (builtin_function_type): Remove fatal_error assertion that is no
22377 longer valid.
22378 (rs6000_common_init_builtins): Add support for no-operand built-in
22379 functions.
22380 * config/rs6000/rs6000.h (RS6000_BTM_MODULO): New macro
22381 definition.
22382 (RS6000_BTM_PURE): Enhance comment to clarify intent of this flag
22383 definition.
22384 (RS6000_BTM_64BIT): New macro definition.
22385 * doc/extend.texi: Document __builtin_darn (void),
22386 __builtin_darn_raw (void), and __builtin_darn_32 (void) built-in
22387 functions.
22388
22389 2016-05-19 Jan Hubicka <hubicka@ucw.cz>
22390
22391 * tree-vect-loop.c (vect_analyze_loop_2): Use also
22392 max_loop_iterations_int.
22393
22394 2016-05-19 Marek Polacek <polacek@redhat.com>
22395
22396 PR tree-optimization/71031
22397 * tree-vrp.c (extract_range_from_binary_expr_1): Turn assert into a
22398 condition and adjust the code a bit.
22399
22400 2016-05-19 Martin Liska <mliska@suse.cz>
22401
22402 * tree-vect-stmts.c (vectorizable_simd_clone_call): Utilize
22403 auto_vec instead of vec.
22404
22405 2016-05-19 Martin Liska <mliska@suse.cz>
22406
22407 * tree-parloops.c (oacc_entry_exit_ok): Release a vector.
22408
22409 2016-05-19 Martin Liska <mliska@suse.cz>
22410
22411 * tree-if-conv.c (ifcvt_repair_bool_pattern): Utilize auto_vecs.
22412
22413 2016-05-19 Martin Liska <mliska@suse.cz>
22414
22415 * ipa-pure-const.c (set_function_state): Remove an existing
22416 funct_state.
22417 (remove_node_data): Do not free it as it's released
22418 in set_function_state.
22419
22420 2016-05-19 Martin Liska <mliska@suse.cz>
22421
22422 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Release
22423 bitmap.
22424
22425 2016-05-19 Martin Liska <mliska@suse.cz>
22426
22427 * omp-simd-clone.c (simd_clone_adjust): Release vector.
22428
22429 2016-05-19 Martin Liska <mliska@suse.cz>
22430
22431 * tree-ssa-reassoc.c (eliminate_duplicate_pair): Truncate
22432 an auto_vec instead of re-creating it.
22433
22434 2016-05-19 Martin Liska <mliska@suse.cz>
22435
22436 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Use
22437 auto_vec instead of vec.
22438
22439 2016-05-19 Martin Liska <mliska@suse.cz>
22440
22441 * lto-section-in.c (lto_get_section_data): Call
22442 lto_check_version with additional argument.
22443 * lto-streamer.c (lto_check_version): Add new argument.
22444 * lto-streamer.h (lto_check_version): Likewise.
22445
22446 2016-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22447
22448 * config/arm/arm.c (arm_new_rtx_costs, SIGN_EXTEND case):
22449 Don't add cost of inner memory when handling sign-extended loads.
22450
22451 2016-05-19 Ilya Enkovich <ilya.enkovich@intel.com>
22452
22453 PR rtl-optimization/71148
22454 * cse.c (cse_main): Free dominance info.
22455 (rest_of_handle_cse): Don't free dominance info.
22456 (rest_of_handle_cse2): Likewise.
22457 (rest_of_handle_cse_after_global_opts): Likewise.
22458
22459 2016-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22460
22461 PR target/71056
22462 * config/arm/arm-builtins.c (arm_builtin_vectorized_function): Return
22463 NULL_TREE early if NEON is not available. Remove now redundant check
22464 in ARM_CHECK_BUILTIN_MODE.
22465
22466 2016-05-19 Maxim Ostapenko <m.ostapenko@samsung.com>
22467
22468 PR sanitizer/64354
22469 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Add new
22470 builtin __SANITIZE_THREAD__ macros for fsanitize=thread switch.
22471 * doc/cpp.texi: Document new macros.
22472
22473 2016-05-19 Bin Cheng <bin.cheng@arm.com>
22474
22475 PR tree-optimization/69848
22476 * tree-vect-loop.c (vectorizable_reduction): Don't factor
22477 comparison expr out of VEC_COND_EXPR for COND_REDUCTION.
22478
22479 2016-05-19 Segher Boessenkool <segher@kernel.crashing.org>
22480
22481 * function.c (thread_prologue_and_epilogue_insn): Move the
22482 "goto epilogue_done" one block later.
22483
22484 2016-05-19 Richard Biener <rguenther@suse.de>
22485
22486 PR tree-optimization/70729
22487 * passes.def: Move LIM pass before PRE. Remove no longer
22488 required copyprop and move first DCE out of the loop pipeline.
22489
22490 2016-05-18 David Malcolm <dmalcolm@redhat.com>
22491
22492 PR driver/69265
22493 * Makefile.in (GCC_OBJS): Move spellcheck.o to...
22494 (OBJS-libcommon-target): ...here.
22495 * opts-common.c: Include spellcheck.h.
22496 (cmdline_handle_error): Build a vec of valid options and use it
22497 to suggest provide hints for misspelled arguments.
22498
22499 2016-05-18 Jakub Jelinek <jakub@redhat.com>
22500
22501 PR c++/71100
22502 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Don't drop
22503 lhs if it has TREE_ADDRESSABLE type.
22504
22505 2016-05-18 Uros Bizjak <ubizjak@gmail.com>
22506
22507 PR target/71145
22508 * config/alpha/alpha.md (trap): Add (use (reg:DI 29)).
22509 (*exception_receiver_1): Return "#" for TARGET_EXPLICIT_RELOCS.
22510
22511 2016-05-18 Martin Jambor <mjambor@suse.cz>
22512
22513 PR ipa/69708
22514 * ipa-cp.c (ipa_get_jf_pass_through_result): Allow non-ip constant
22515 input for NOP_EXPR pass-through functions.
22516 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Allow
22517 aggregate global constant VAR_DECLs in constant jump functions.
22518
22519 2016-05-18 Martin Jambor <mjambor@suse.cz>
22520
22521 PR ipa/69708
22522 * ipa-prop.c (parm_preserved_before_stmt_p): Return true for loads
22523 from TREE_READONLY parameters.
22524
22525 2016-05-18 Martin Jambor <mjambor@suse.cz>
22526
22527 PR ipa/69708
22528 * cgraph.h (cgraph_indirect_call_info): New field
22529 guaranteed_unmodified.
22530 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also pass parameter value
22531 to ipa_find_agg_cst_for_param, check guaranteed_unmodified when
22532 appropriate.
22533 * ipa-inline-analysis.c (evaluate_conditions_for_known_args): Also
22534 pass the parameter value to ipa_find_agg_cst_for_param.
22535 * ipa-prop.c (ipa_load_from_parm_agg): New parameter
22536 guaranteed_unmodified, store AA results there instead of bailing out
22537 if present.
22538 (ipa_note_param_call): Also initialize guaranteed_unmodified flag.
22539 (ipa_analyze_indirect_call_uses): Also set guaranteed_unmodified flag.
22540 (find_constructor_constant_at_offset): New function.
22541 (ipa_find_agg_cst_from_init): Likewise.
22542 (ipa_find_agg_cst_for_param): Also seearch for aggregate values in
22543 static initializers of contants, report back through a new paameter
22544 from_global_constant if that was the case.
22545 (try_make_edge_direct_simple_call): Also pass parameter value to
22546 ipa_find_agg_cst_for_param, check guaranteed_unmodified when
22547 appropriate.
22548 (ipa_write_indirect_edge_info): Stream new flag guaranteed_unmodified.
22549 (ipa_read_indirect_edge_info): Likewise.
22550 * ipa-prop.h (ipa_find_agg_cst_for_param): Update declaration.
22551 (ipa_load_from_parm_agg): Likewise.
22552
22553 2016-05-18 Jiong Wang <jiong.wang@arm.com>
22554
22555 PR rtl-optimization/71150
22556 * lra-constraint (process_addr_reg): Guard "in_class_p" with REG_P
22557 check.
22558
22559 2016-05-18 Michael Meissner <meissner@linux.vnet.ibm.com>
22560
22561 PR target/70915
22562 * config/rs6000/constraints.md (wE constraint): New constraint
22563 for a vector constant that can be loaded with XXSPLTIB.
22564 (wM constraint): New constraint for a vector constant of a 1's.
22565 (wS constraint): New constraint for a vector constant that can be
22566 loaded with XXSPLTIB and a vector sign extend instruction.
22567 * config/rs6000/predicates.md (xxspltib_constant_split): New
22568 predicates for wE/wS constraints.
22569 (xxspltib_constant_nosplit): Likewise.
22570 (easy_vector_constant): Add support for constants that can be
22571 loaded via XXSPLTIB.
22572 (all_ones_constant): New predicate for vector constant with all
22573 1's set.
22574 (splat_input_operand): Add support for ISA 3.0 word splat operations.
22575 * config/rs6000/rs6000.c (xxspltib_constant_p): New function to
22576 return if a constant can be loaded with the ISA 3.0 XXSPLTIB
22577 instruction and possibly with a sign extension.
22578 (output_vec_const_move): Add support for XXSPLTIB. If we are
22579 loading up 0/-1 into Altivec registers, prefer using VSPLTISW
22580 instead of XXLXOR/XXLORC.
22581 (rs6000_expand_vector_init): Add support for ISA 3.0 word splat
22582 operations.
22583 (rs6000_legitimize_reload_address): Likewise.
22584 (rs6000_output_move_128bit): Use output_vec_const_move to emit
22585 constants.
22586 * config/rs6000/vsx.md (VSX_M): Add TImode (if -mvsx-timode) and
22587 combine VSX_M and VSX_M2 into one iterator.
22588 (VSX_M2): Likewise.
22589 (VSINT_84): New iterators for loading constants with XXSPLTIB.
22590 (VSINT_842): Likewise.
22591 (UNSPEC_VSX_SIGN_EXTEND): New UNSPEC.
22592 (xxspltib_v16qi): New insns to load up constants with the ISA 3.0
22593 XXSPLTIB instruction.
22594 (xxspltib_<mode>_nosplit): Likewise.
22595 (xxspltib_<mode>_split): New insn to load up constants with
22596 XXSPLTIB and a sign extend instruction.
22597 (vsx_mov<mode>): Replace single move that handled all vector types
22598 with separate 32-bit and 64-bit moves. Combine the movti_<bit>
22599 moves (when -mvsx-timode is in effect) into the main vector
22600 moves. Eliminate separate moves for <VSr> <VSa>, where the
22601 preferred register class (<VSr>) is listed first, and the
22602 secondary register class (<VSa>) is listed second with a '?' to
22603 discourage use. Prefer loading 0/-1 in any VSX register for ISA
22604 3.0, and Altivec registers for ISA 2.06/2.07 (PR target/70915) so
22605 that if the register was involved in a slow operation, the
22606 clear/set operation does not wait for the slow operation to
22607 finish. Adjust the length attributes for 32-bit mode. Use
22608 rs6000_output_move_128bit and drop the use of the string
22609 instructions for 32-bit movti when -mvsx-timode is in effect. Use
22610 spacing so that the alternatives and attributes don't generate
22611 long lines, and put things in columns, so that it is easier to
22612 match up the operands and attributes with the insn alternatives.
22613 (vsx_mov<mode>_64bit): Likewise.
22614 (vsx_mov<mode>_32bit): Likewise.
22615 (vsx_movti_64bit): Fold movti into normal vector moves.
22616 (vsx_movti_32bit): Likewise.
22617 (vsx_splat_<mode>, V4SI/V4SF modes): Add support for ISA 3.0 word
22618 splat instructions.
22619 (vsx_splat_v4si_internal): Likewise.
22620 (vsx_splat_v4sf_internal): Likewise.
22621 (vector fusion peepholes): Use VSX_M instead of VSX_M2.
22622 (vsx_sign_extend_qi_<mode>): New ISA 3.0 instructions to sign
22623 extend vector elements.
22624 (vsx_sign_extend_hi_<mode>): Likewise.
22625 (vsx_sign_extend_si_v2di): Likewise.
22626 * config/rs6000/rs6000-protos.h (xxspltib_constant_p): Add
22627 declaration.
22628 * doc/md.texi (PowerPC constraints): Document the wE, wM, and wS
22629 constraints. Add trailing period to wL documentation.
22630
22631 2016-05-18 Richard Sandiford <richard.sandiford@arm.com>
22632
22633 PR middle-end/71020
22634 * tree-dfa.h (replace_abnormal_ssa_names): Declare.
22635 * tree-dfa.c (replace_abnormal_ssa_names): New function.
22636 * tree-call-cdce.c: Include tree-dfa.h.
22637 (can_guard_call_p): New function, extracted from...
22638 (can_use_internal_fn): ...here.
22639 (shrink_wrap_one_built_in_call_with_conds): Remove failure path
22640 and return void.
22641 (shrink_wrap_one_built_in_call): Likewise.
22642 (use_internal_fn): Likewise.
22643 (shrink_wrap_conditional_dead_built_in_calls): Update accordingly
22644 and return void. Call replace_abnormal_ssa_names.
22645 (pass_call_cdce::execute): Check can_guard_call_p during the
22646 initial walk. Assume shrink_wrap_conditional_dead_built_in_calls
22647 will always change something.
22648
22649 2016-05-18 Martin Jambor <mjambor@suse.cz>
22650
22651 PR ipa/70646
22652 * ipa-prop.c (determine_locally_known_aggregate_parts): Bail out early
22653 if parameter PARAM_IPA_MAX_AGG_ITEMS is zero.
22654
22655 2016-05-18 Martin Jambor <mjambor@suse.cz>
22656
22657 PR ipa/70646
22658 * ipa-inline.h (condition): New field size.
22659 * ipa-inline-analysis.c (add_condition): New parameter SIZE, use it
22660 for comaprison and store it into the new condition.
22661 (evaluate_conditions_for_known_args): Use condition size to check
22662 access sizes for all but CHANGED conditions.
22663 (unmodified_parm_1): New parameter size_p, store access size into it.
22664 (unmodified_parm): Likewise.
22665 (unmodified_parm_or_parm_agg_item): Likewise.
22666 (eliminated_by_inlining_prob): Pass NULL to unmodified_parm as size_p.
22667 (set_cond_stmt_execution_predicate): Extract access sizes and store
22668 them to conditions.
22669 (set_switch_stmt_execution_predicate): Likewise.
22670 (will_be_nonconstant_expr_predicate): Likewise.
22671 (will_be_nonconstant_predicate): Likewise.
22672 (inline_read_section): Stream condition size.
22673 (inline_write_summary): Likewise.
22674
22675 2016-05-18 Richard Biener <rguenther@suse.de>
22676
22677 * tree-ssa-loop-im.c (determine_max_movement): Properly add
22678 condition cost to PHI cost instead of total_cost.
22679
22680 2016-05-18 Martin Liska <mliska@suse.cz>
22681
22682 PR fortran/70856
22683 * ipa-icf.c (sem_variable::merge): Set DECL_PT_UID for
22684 merged variables.
22685
22686 2016-05-18 Richard Biener <rguenther@suse.de>
22687
22688 * lto-streamer.h (LTO_major_version): Bump to 6.
22689
22690 2016-05-18 Segher Boessenkool <segher@kernel.crashing.org>
22691
22692 * function.c (make_split_prologue_seq, make_prologue_seq,
22693 make_epilogue_seq): New functions, factored out from...
22694 (thread_prologue_and_epilogue_insns): Here.
22695
22696 2016-05-18 Segher Boessenkool <segher@kernel.crashing.org>
22697
22698 * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
22699 cleanup_cfg with CLEANUP_EXPENSIVE after shrink-wrapping instead
22700 of before. Add a comment.
22701
22702 2016-05-18 Bin Cheng <bin.cheng@arm.com>
22703
22704 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check invariant
22705 expression pointer, not pointer to the pointer.
22706
22707 2016-05-18 Jakub Jelinek <jakub@redhat.com>
22708
22709 * config/i386/sse.md (pbroadcast_evex_isa): New mode attr.
22710 (avx2_pbroadcast<mode>): Add another alternative with v instead
22711 of x constraints in it, using <pbroadcast_evex_isa> isa.
22712 (avx2_pbroadcast<mode>_1): Similarly, add two such alternatives.
22713
22714 * config/i386/sse.md (<ssse3_avx2>_palignr<mode>): Use
22715 constraint x instead of v in second alternative, add avx512bw
22716 alternative.
22717
22718 * config/i386/sse.md (<ssse3_avx2>_pshufb<mode>3<mask_name>): Use
22719 constraint x instead of v in second alternative, add avx512bw
22720 alternative.
22721
22722 * config/i386/sse.md (*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>): Use
22723 constraint x instead of v in second alternative, add avx512bw
22724 alternative.
22725
22726 * config/i386/sse.md (avx2_pmaddubsw256, ssse3_pmaddubsw128): Add
22727 avx512bw alternative.
22728
22729 2016-05-18 Kirill Yukhin <kirill.yukhin@intel.com>
22730
22731 * config/i386/sse.md (define_insn "*andnot<mode>3"): Extend static
22732 array to 128 chars.
22733 (define_insn "*andnottf3"): Ditto.
22734 (define_insn "*<code><mode>3"/any_logic): Ditto.
22735 (define_insn "*<code>tf3"/any_logic): Ditto.
22736 (define_insn "sse2_storehpd"): Use Yv constraint for scalar
22737 operand to block AVX-512VL insn variant emit when it is not enabled.
22738
22739 2016-05-18 Kirill Yukhin <kirill.yukhin@intel.com>
22740
22741 * config/i386/sse.md (define_insn "*vec_concatv2sf_sse4_1"): Use 'Yv'
22742 constraint fot SF mode.
22743
22744 2016-05-18 Petr Murzin <petr.murzin@intel.com>
22745 Kirill Yukhin <kirill.yukhin@intel.com>
22746
22747 * config/i386/sse.md (define_insn "srcp14<mode>"): Use proper operand
22748 modifiers.
22749 (define_insn "rsqrt14<mode>"): Ditto.
22750 (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
22751 (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
22752 (define_insn "avx512f_<code>v8div16qi2_mask_store"): Ditto.
22753 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
22754 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"):
22755 Ditto.
22756 (define_insn "*avx512f_gatherdi<mode>"): Ditto.
22757 (define_insn "*avx512f_scatterdi<mode>"): Ditto.
22758 * config/i386/i386.c (ix86_print_operand): Expand check for size
22759 override codes for Intel syntax.
22760
22761 2016-05-18 Richard Biener <rguenther@suse.de>
22762
22763 PR tree-optimization/71168
22764 * tree-loop-distribution.c (distribute_loop): Move *destroy_p
22765 initialization earlier.
22766
22767 2016-05-18 James Greenhalgh <james.greenhalgh@arm.com>
22768
22769 * config/aarch64/aarch64-simd.md
22770 (aarch64_reduc_plus_internal<mode>): Rename to...
22771 (reduc_plus_scal): ...This, and remove previous implementation.
22772
22773 2016-05-18 Richard Biener <rguenther@suse.de>
22774
22775 * passes.def: Put late dse and cd_dce in canonical order.
22776
22777 2016-05-17 Jan Hubicka <hubicka@ucw.cz>
22778
22779 * ipa-inline-transform.c (preserve_function_body_p): Look for
22780 first non-thunk clone.
22781 (save_function_body): Save into first non-thunk.
22782 * lto-cgraph.c (lto_output_edge): When streaming thunk do not look
22783 up call stmt id.
22784 (lto_output_node): Inline thunks don't need body in every
22785 partition.
22786 * lto-streamer-in.c: Do not fixup thunk clones.
22787 * cgraphclones.c (cgraph_node::create_edge_including_clone): Skip
22788 thunks.
22789 * tree-inline.c (copy_bb): Be prepared for target node to be new after
22790 folding suceeds.
22791
22792 2016-05-17 Kugan Vivekanandarajah <kuganv@linaro.org>
22793
22794 PR middle-end/63586
22795 * tree-ssa-reassoc.c (transform_add_to_multiply): New.
22796 (reassociate_bb): Call transform_add_to_multiply.
22797
22798 2016-05-17 Kugan Vivekanandarajah <kuganv@linaro.org>
22799
22800 * config/aarch64/aarch64.c (all_extensions): Removed unused
22801 static variable.
22802
22803 2016-05-17 Nathan Sidwell <nathan@acm.org>
22804
22805 * config/nvptx/nvptx.c (nvptx_function_arg_boundary): New.
22806 (TARGET_FUNCTION_ARG_BOUNDARY): Override.
22807
22808 2016-05-17 Mikhail Maltsev <maltsevm@gmail.com>
22809
22810 PR tree-optimization/54579
22811 PR middle-end/55299
22812 * match.pd (~(~X >> Y), ~(~X >>r Y), ~(~X <<r Y)): New patterns.
22813
22814 2016-05-17 Marek Polacek <polacek@redhat.com>
22815
22816 PR ipa/71146
22817 * tree-inline.c (expand_call_inline): Call
22818 maybe_remove_unused_call_args.
22819
22820 2016-05-17 Jim Wilson <jim.wilson@linaro.org>
22821
22822 * doc/cpp.texi (__GNUC__): Major version changes are no longer rare.
22823 * doc/invoke.texi (-mnan=2008): Change signalling to signaling.
22824 * doc/md.texi (fmin@var{m}3): Likewise.
22825
22826 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
22827
22828 * match.pd (X & C): New transformation.
22829
22830 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
22831
22832 * match.pd (~X & Y): New transformation.
22833
22834 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
22835
22836 * tree-vrp.c (simplify_truth_ops_using_ranges): Set range
22837 information for new SSA_NAME.
22838 (simplify_conversion_using_ranges): Get range through get_range_info
22839 instead of get_value_range.
22840
22841 2016-05-17 Jiong Wang <jiong.wang@arm.com>
22842
22843 * config/aarch64/arm_neon.h (vmvn_s8): Reimplement using C operator.
22844 Remove inline assembly.
22845 (vmvn_s16): Likewise.
22846 (vmvn_s32): Likewise.
22847 (vmvn_u8): Likewise.
22848 (vmvn_u16): Likewise.
22849 (vmvn_u32): Likewise.
22850 (vmvnq_s8): Likewise.
22851 (vmvnq_s16): Likewise.
22852 (vmvnq_s32): Likewise.
22853 (vmvnq_u8): Likewise.
22854 (vmvnq_u16): Likewise.
22855 (vmvnq_u32): Likewise.
22856 (vmvn_p8): Likewise.
22857 (vmvnq_p16): Likewise.
22858
22859 2016-05-17 Jiong Wang <jiong.wang@arm.com>
22860
22861 * config/aarch64/aarch64-simd.md (vmul_n_f32): Remove inline assembly.
22862 Use builtin.
22863 (vmul_n_s16): Likewise.
22864 (vmul_n_s32): Likewise.
22865 (vmul_n_u16): Likewise.
22866 (vmul_n_u32): Likewise.
22867 (vmulq_n_f32): Likewise.
22868 (vmulq_n_f64): Likewise.
22869 (vmulq_n_s16): Likewise.
22870 (vmulq_n_s32): Likewise.
22871 (vmulq_n_u16): Likewise.
22872 (vmulq_n_u32): Likewise.
22873
22874 2016-05-17 Jiong Wang <jiong.wang@arm.com>
22875
22876 * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt_to_128df): Extend
22877 to all supported modes. Rename to "*aarch64_mul3_elt_from_dup".
22878
22879 2016-05-17 Jiong Wang <jiong.wang@arm.com>
22880
22881 * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_to_128df): Rename
22882 to *aarch64_fma4_elt_from_dup<mode>.
22883 (*aarch64_fnma4_elt_to_128df): Rename to
22884 *aarch64_fnma4_elt_from_dup<mode>.
22885 * config/aarch64/arm_neon.h (vfma_n_f64): New.
22886 (vfms_n_f32): Likewise.
22887 (vfms_n_f64): Likewise.
22888 (vfmsq_n_f32): Likewise.
22889 (vfmsq_n_f64): Likewise.
22890
22891 2016-05-17 Gerald Pfeifer <gerald@pfeifer.com>
22892
22893 * wide-int.h: Change fixed_wide_int_storage from class to struct.
22894
22895 2016-05-17 Richard Biener <rguenther@suse.de>
22896
22897 PR tree-optimization/71132
22898 * tree-loop-distribution.c (create_rdg_cd_edges): Pass in loop.
22899 Only add control dependences for blocks in the loop.
22900 (build_rdg): Adjust.
22901 (generate_code_for_partition): Return whether loop should
22902 be destroyed and delay that.
22903 (distribute_loop): Likewise.
22904 (pass_loop_distribution::execute): Record loops to be destroyed
22905 and perform delayed destroying of loops.
22906
22907 2016-05-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22908
22909 PR target/70809
22910 * config/aarch64/aarch64-simd.md (aarch64_vmls<mode>): Delete.
22911
22912 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
22913
22914 * config/aarch64/aarch64-elf.h (ASM_OUTPUT_DEF): Delete.
22915
22916 2016-05-17 Ilya Enkovich <ilya.enkovich@intel.com>
22917
22918 PR target/71114
22919 * config/i386/i386.c (dimode_scalar_chain::convert_op): Fix
22920 insertion point for instructions generated by validize_mem.
22921
22922 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
22923
22924 * config/aarch64/aarch64.c (SHIFT_COUNT_TRUNCATED): Wrap definition
22925 in brackets.
22926
22927 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
22928
22929 * config/aarch64/aarch64.c
22930 (aarch64_output_simd_mov_immediate): Make "buf_size" a variable
22931 rather than a macro.
22932
22933 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
22934
22935 * doc/invoke.texi (AArch64 Options): Various updates.
22936
22937 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
22938
22939 * ipa-inline-analysis.c (compute_inline_parameters): Disable inlinig
22940 into instrumentation thunks.
22941 * cif-code.def (CIF_CHKP): New.
22942
22943 2016-05-16 Uros Bizjak <ubizjak@gmail.com>
22944
22945 * config/i386/xopintrin.h: Correct "unsinged" typo in the comments.
22946
22947 2016-05-16 Martin Jambor <mjambor@suse.cz>
22948
22949 * hsa-gen.c (fillup_for_decl): Increase alignment to natural one.
22950 (get_symbol_for_decl): Sorry if a global symbol in under-aligned.
22951
22952 2016-05-16 Marek Polacek <polacek@redhat.com>
22953
22954 * gimple.c (maybe_remove_unused_call_args): Fix typos in the
22955 commentary.
22956
22957 2016-05-16 Martin Jambor <mjambor@suse.cz>
22958
22959 PR hsa/70857
22960 * omp-low.c (grid_expand_target_grid_body): Copy RESULT_DECL of
22961 the outlined kernel function.
22962
22963 2016-05-16 Robert Suchanek <robert.suchanek@imgtec.com>
22964
22965 * config/mips/mips.h (ISA_HAS_LSA): Enable for -mmsa.
22966 (ISA_HAS_DLSA): Ditto.
22967
22968 2016-05-16 Matthew Fortune <matthew.fortune@imgtec.com>
22969
22970 * config/mips/m5100.md (m51_int_load): Update the latency to 2.
22971
22972 2016-05-16 Nathan Sidwell <nathan@acm.org>
22973
22974 * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): Revert.
22975 (nvptx_name_replacement): Restore. Add comment.
22976 (write_fn_proto, write_fn_proto_from_insn,
22977 nvptx_output_call_insn): Restore
22978 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Delete.
22979
22980 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
22981
22982 * config/aarch64/aarch64.md
22983 (add<mode>3_compareC_cconly_imm): Remove use of %w.
22984 (add<mode>3_compareC_imm): Likewise.
22985 (<optab>si3_uxtw): Split into register and immediate variants.
22986 (andsi3_compare0_uxtw): Likewise.
22987 (and<mode>3_compare0): Likewise.
22988 (and<mode>3nr_compare0): Likewise.
22989 (stack_protect_test_<mode>): Don't use %x for memory operands.
22990
22991 2016-05-16 Matthew Fortune <matthew.fortune@imgtec.com>
22992
22993 * config/mips/mips-cpus.def (p5600): Add multi-line brackets.
22994
22995 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
22996
22997 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
22998 Split integer shifts into shift_reg and bfm.
22999 (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
23000 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
23001 (ror<mode>3_insn): Likewise.
23002 (<optab>si3_insn_uxtw): Likewise.
23003 (<optab><mode>3_insn): Change to rotate_imm.
23004 (extr<mode>5_insn_alt): Likewise.
23005 (extrsi5_insn_uxtw): Likewise.
23006 (extrsi5_insn_uxtw_alt): Likewise.
23007
23008 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
23009
23010 * doc/tm.texi: Regenerate.
23011 * doc/tm.texi.in (TARGET_INVALID_PARAMETER_TYPE): Remove.
23012 (TARGET_INVALID_RETURN_TYPE): Remove.
23013 * system.h: Poison TARGET_INVALID_PARAMETER_TYPE and
23014 TARGET_INVALID_RETURN_TYPE.
23015 * target.def (invalid_parameter_type): Remove.
23016 (invalid_return_type): Remove.
23017
23018 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
23019
23020 * ipa-inline-analysis.c (compute_inline_parameters): Be more reailistic
23021 on estimating thunk bodies; do not set inline_failed to CIF_THUNK for
23022 calls from thunk.
23023 * ipa-inline-transform.c (inline_call): When inlining into thunk produce
23024 gimple body.
23025 (preserve_function_body_p): No need to preserve function body
23026 * cif-codes.def (CIF_THUNK): Remove.
23027 * cgraphclones.c (duplicate_thunk_for_node): Thunks calls are inlinable.
23028
23029 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
23030
23031 * tree-inline.c (expand_call_inline): recurse after inlining thunk.
23032
23033 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
23034
23035 * tree.c (free_lang_data_in_decl): Also set target/optimization flags
23036 for thunks.
23037
23038 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
23039
23040 * ipa-inline.c (report_inline_failed_reason): Look into thunks, too
23041 (inline_small_functions): Do not look for function symbol when
23042 resetting caches.
23043
23044 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
23045
23046 * lto-cgraph.c (compute_ltrans_boundary, output_symtab): Fix handling
23047 of inline thunks
23048
23049 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
23050 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23051 Jiong Wang <jiong.wang@arm.com>
23052
23053 * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
23054 for __ARM_FP16_FORMAT_IEEE and __ARM_FP16_FORMAT_ALTERNATIVE.
23055 Define __ARM_FP16_ARGS when appropriate.
23056 * config/arm/arm.c (arm_invalid_parameter_type): Remove
23057 declaration.
23058 (arm_invalid_return_type): Likewise.
23059 (TARGET_INVALID_PARAMETER_TYPE): Remove.
23060 (TARGET_INVALID_RETURN_TYPE): Remove.
23061 (aapcs_vfp_sub_candidate): Allow HFmode.
23062 (aapcs_vfp_allocate): Add comment. Support HFmode.
23063 (aapcs_vfp_allocate_return_reg): Likewise.
23064 (struct aapcs_cp_arg_layout): Slightly reword comments for
23065 is_return_candidate and allocate_return_reg.
23066 (output_mov_vfp): Update assert.
23067 (arm_hard_regno_mode_ok): Remove comment, update HF-mode
23068 condition.
23069 (arm_invalid_parameter_type): Remove.
23070 (amr_invalid_return_type): Remove.
23071 * config/arm/arm.h (TARGET_NEON_FP16): Fix definition.
23072 * config/arm/arm.md (*arm32_movhf): Disable for TARGET_VFP.
23073 * config/arm/vfp.md (*movhf_vfp): Enable for TARGET_VFP.
23074
23075 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
23076
23077 * config/aarch64/aarch64.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
23078 * config/aarch64/arch64-protos.h
23079 (aarch64_legitimize_reload_address): Remove.
23080 * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
23081 Remove.
23082
23083 2016-05-16 Eric Botcazou <ebotcazou@adacore.com>
23084
23085 * configure.ac: Add ACX_NONCANONICAL_HOST.
23086 * configure: Regenerate.
23087 * Makefile.in: Set host_noncanonical.
23088
23089 2016-05-14 Uros Bizjak <ubizjak@gmail.com>
23090
23091 PR target/71097
23092 * config/i386/i386.md (*movtf_internal): Before register allocation,
23093 do not allow FP constants for CM_MEDIUM memory model, allow only
23094 standard FP constants for CM_LARGE and CM_LARGE_PIC models.
23095 (*movxf_internal): Ditto.
23096 (*movdf_internal): Ditto.
23097 (*movsf_internal): Ditto.
23098
23099 2016-05-13 Segher Boessenkool <segher@kernel.crashing.org>
23100
23101 PR rtl-optimization/67483
23102 * combine.c (make_compound_operation): Don't call extract_left_shift
23103 with negative shift amounts.
23104
23105 2016-05-13 Jakub Jelinek <jakub@redhat.com>
23106
23107 PR bootstrap/71071
23108 * fold-const.c (fold_checksum_tree): Allow modification
23109 of TYPE_ALIAS_SET during folding.
23110
23111 * config/i386/i386.c (ix86_compute_frame_layout, ix86_expand_prologue,
23112 ix86_expand_split_stack_prologue): Use HOST_WIDE_INT_C macro.
23113 (ix86_split_to_parts): Likewise. Fix up formatting.
23114
23115 2016-05-13 H.J. Lu <hongjiu.lu@intel.com>
23116
23117 * tree-ssa-loop-ivopts.c (create_new_ivs): Cast to
23118 unsigned HOST_WIDE_INT with HOST_WIDE_INT_PRINT_UNSIGNED in
23119 printf format.
23120
23121 2016-05-13 Nathan Sidwell <nathan@acm.org>
23122
23123 * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): New.
23124 (nvptx_name_replacement): Delete.
23125 (write_fn_proto, write_fn_proto_from_insn,
23126 nvptx_output_call_insn): Remove nvptx_name_replacement call.
23127 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Override.
23128 * langhooks.c (add_builtin_funcction_common): Call
23129 targetm.mangle_decl_assembler_name.
23130
23131 * config/nvptx/nvptx.c (write_fn_proto): Handle
23132 BUILT_IN_ATOMIC_COMPARE_EXCHANGE_n oddity.
23133
23134 2016-05-13 Martin Liska <mliska@suse.cz>
23135
23136 * tree-ssa-loop-ivopts.c (create_new_ivs): Use HOST_WIDE_INT_PRINT_DEC
23137 and PRIu64 in printf format.
23138
23139 2016-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23140
23141 * tree-ssa-loop-ivanon.c (try_unroll_loop_completely): Typo fix in
23142 comment.
23143
23144 2016-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23145
23146 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
23147 Change --param max-completely-peeled-times to
23148 --param max-completely-peel-times in dump file printing.
23149
23150 2016-05-13 Richard Biener <rguenther@suse.de>
23151
23152 PR tree-optimization/42587
23153 * tree-ssa-math-opts.c (perform_symbolic_merge): Handle BIT_FIELD_REF.
23154 (find_bswap_or_nop_1): Likewise.
23155 (bswap_replace): Likewise.
23156
23157 2016-05-13 Martin Liska <mliska@suse.cz>
23158
23159 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern):
23160 Initialize a variable with default value.
23161
23162 2016-05-13 Martin Liska <mliska@suse.cz>
23163
23164 * doc/invoke.texi: Enhance explanation of error recovery
23165 of sanitizers.
23166
23167 2016-05-13 Martin Liska <mliska@suse.cz>
23168
23169 * tree-ssa-loop-ivopts.c (avg_loop_niter): Fix coding style.
23170 (struct cost_pair): Change inv_expr_id (int) to inv_expr
23171 (iv_inv_expr_ent *).
23172 (struct iv_inv_expr_ent): Comment struct fields.
23173 (sort_iv_inv_expr_ent): New function.
23174 (struct ivopts_data): Rename inv_expr_id to max_inv_expr_id.
23175 (struct iv_ca): Replace used_inv_expr and num_used_inv_expr with
23176 a hash_map between iv_inv_expr_ent and number of usages.
23177 (niter_for_exit): Fix coding style.
23178 (tree_ssa_iv_optimize_init): Use renamed variable.
23179 (determine_base_object): Fix coding style.
23180 (alloc_iv): Likewise.
23181 (find_interesting_uses_outside): Likewise.
23182 (add_candidate_1): Likewise.
23183 (add_standard_iv_candidates): Likewise.
23184 (set_group_iv_cost): Replace inv_expr_id with inv_expr.
23185 (prepare_decl_rtl): Fix coding style.
23186 (get_address_cost): Likewise.
23187 (get_shiftadd_cost): Likewise.
23188 (force_expr_to_var_cost): Likewise.
23189 (compare_aff_trees): Likewise.
23190 (get_expr_id): Restructure the function.
23191 (get_loop_invariant_expr_id): Renamed to
23192 get_loop_invariant_expr.
23193 (get_computation_cost_at): Replace usage of inv_expr_id with
23194 inv_expr.
23195 (get_computation_cost): Likewise.
23196 (determine_group_iv_cost_generic): Likewise.
23197 (determine_group_iv_cost_address): Likewise.
23198 (iv_period): Fix coding style.
23199 (iv_elimination_compare_lt): Likewise.
23200 (may_eliminate_iv): Likewise.
23201 (determine_group_iv_cost_cond): Replace usage of inv_expr_id with
23202 inv_expr.
23203 (determine_group_iv_costs): Dump invariant expressions.
23204 (iv_ca_recount_cost): Use the newly added hash_map.
23205 (iv_ca_set_remove_invariants): Fix coding style.
23206 (iv_ca_set_add_invariants): Fix coding style.
23207 (iv_ca_set_no_cp): Utilize the newly added hash_map for used
23208 invariants.
23209 (iv_ca_set_cp): Likewise.
23210 (iv_ca_new): Initialize the newly added hash_map and remove
23211 initialization of fields.
23212 (iv_ca_free): Delete the hash_map.
23213 (iv_ca_dump): Dump invariant expressions.
23214 (iv_ca_extend): Fix coding style.
23215 (try_add_cand_for): Likewise.
23216 (create_new_ivs): Dump information about # of avg iterations and
23217 # of used invariant expressions.
23218 (rewrite_use_compare): Fix coding style.
23219 (free_loop_data): Set default value for max_inv_expr_id.
23220
23221 2016-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
23222
23223 * cse.c (rest_of_handle_cse): Use cleanup_cfg
23224 returned value cse_cfg_altered computation.
23225 (rest_of_handle_cse2): Likewise.
23226 (rest_of_handle_cse_after_global_opts): Likewise.
23227
23228 2016-05-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23229
23230 PR target/53440
23231 * config/arm/arm.c (arm32_output_mi_thunk): New.
23232 (arm_output_mi_thunk): Rename to arm_thumb1_mi_thunk. Rework
23233 to split Thumb1 vs TARGET_32BIT functionality.
23234 (arm_thumb1_mi_thunk): New.
23235
23236 2016-05-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23237
23238 * config/aarch64/aarch64.c (TARGET_OMIT_STRUCT_RETURN_REG): Set
23239 to true.
23240
23241 2016-05-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23242
23243 PR target/71080
23244 * config/i386/i386.c (ix86_in_large_data_p): Guard against NULL exp.
23245
23246 2016-05-13 Eric Botcazou <ebotcazou@adacore.com>
23247
23248 * builtins.c (expand_builtin_memcmp): Do not emit the call here.
23249 (expand_builtin_trap): Emit a regular call.
23250 (set_builtin_user_assembler_name): Remove obsolete cases.
23251 * dse.c (scan_insn): Adjust.
23252 * except.c: Include calls.h.
23253 (sjlj_emit_function_enter): If DONT_USE_BUILTIN_SETJMP is defined,
23254 emit a regular call to setjmp.
23255 * expr.c (emit_block_move_hints): Call emit_block_copy_via_libcall.
23256 (block_move_libcall_safe_for_call_parm): Use memcpy builtin.
23257 (emit_block_move_via_libcall): Delete.
23258 (block_move_fn): Delete.
23259 (init_block_move_fn): Likewise.
23260 (emit_block_move_libcall_fn): Likewise.
23261 (emit_block_op_via_libcall): New function.
23262 (set_storage_via_libcall): Tidy up and use memset builtin.
23263 (block_clear_fn): Delete.
23264 (init_block_clear_fn): Likewise.
23265 (clear_storage_libcall_fn): Likewise.
23266 (expand_assignment): Call emit_block_move_via_libcall.
23267 Do not include gt-expr.h.
23268 * expr.h (emit_block_op_via_libcall): Declare.
23269 (emit_block_copy_via_libcall): New inline function.
23270 (emit_block_move_via_libcall): Likewise.
23271 (emit_block_comp_via_libcall): Likewise.
23272 (block_clear_fn): Delete.
23273 (init_block_move_fn): Likewise.
23274 (init_block_clear_fn): Likewise.
23275 (emit_block_move_via_libcall): Likewise.
23276 (set_storage_via_libcall): Add default parameter value.
23277 * libfuncs.h (enum libfunc_index): Remove obsolete values.
23278 (abort_libfunc): Delete.
23279 (memcpy_libfunc): Likewise.
23280 (memmove_libfunc): Likewise.
23281 (memcmp_libfunc): Likewise.
23282 (memset_libfunc): Likewise.
23283 (setbits_libfunc): Likewise.
23284 (setjmp_libfunc): Likewise.
23285 (longjmp_libfunc): Likewise.
23286 (profile_function_entry_libfunc): Likewise.
23287 (profile_function_exit_libfunc): Likewise.
23288 (gcov_flush_libfunc): Likewise.
23289 * optabs-libfuncs.c (build_libfunc_function): Set DECL_ARTIFICIAL
23290 and DECL_VISIBILITY on the declaration.
23291 (init_optabs): Do not initialize obsolete libfuncs.
23292 * optabs.c (prepare_cmp_insn): Call emit_block_comp_via_libcall.
23293 * tree-core.h (ECF_RET1): Define.
23294 (ECF_TM_PURE): Adjust.
23295 (ECF_TM_BUILTIN): Likewise.
23296 * tree.c (set_call_expr_flags): Deal with ECF_RET1.
23297 (build_common_builtin_nodes): Initialize abort builtin.
23298 Add ECF_RET1 on memcpy, memmove and memset builtins.
23299 Pass final flags for alloca and alloca_with_align builtins.
23300 * config/alpha/alpha.c (alpha_init_libfuncs): Do not initialize
23301 obsolete builtins.
23302 * config/ia64/ia64.c (ia64_vms_init_libfuncs): Likewise.
23303 * config/i386/i386.c (ix86_expand_set_or_movmem): Adjust call to
23304 set_storage_via_libcall and call emit_block_copy_via_libcall.
23305
23306 2016-05-12 Uros Bizjak <ubizjak@gmail.com>
23307
23308 * config/i386/i386.md (*call_got_x32): Change operand 0 to
23309 DImode before it is passed to ix86_output_call_operand.
23310 (*call_value_got_x32): Ditto for operand 1.
23311
23312 2016-05-12 Jiong Wang <jiong.wang@arm.com>
23313
23314 PR rtl-optimization/70904
23315 * lra-constraint.c (process_addr_reg): Relax the restriction on subreg
23316 reload for wide mode.
23317
23318 2016-05-12 Marek Polacek <polacek@redhat.com>
23319
23320 PR c/70756
23321 * langhooks-def.h (lhd_incomplete_type_error): Adjust declaration.
23322 * langhooks.c (lhd_incomplete_type_error): Add location parameter.
23323 * langhooks.h (incomplete_type_error): Likewise.
23324 * tree.c (size_in_bytes_loc): Renamed from size_in_bytes. Add location
23325 parameter, pass it down to incomplete_type_error.
23326 * tree.h (size_in_bytes): New inline overload.
23327 (size_in_bytes_loc): Renamed from size_in_bytes.
23328
23329 2016-05-12 Richard Biener <rguenther@suse.de>
23330
23331 PR tree-optimization/71059
23332 * tree-ssa-pre.c (phi_translate_1): Fully fold translated
23333 nary before looking up or entering the expression into the VN
23334 hashes.
23335 * tree-ssa-sccvn.c (vn_nary_build_or_lookup): Fix comment typo.
23336 Make sure to re-use NARYs without result as inserted by
23337 phi-translation.
23338
23339 2016-05-12 Richard Biener <rguenther@suse.de>
23340
23341 PR tree-optimization/71062
23342 * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
23343 field.
23344 * tree-ssa-structalias.c (set_uids_in_ptset): Set
23345 vars_contains_restrict if the var is a restrict tag.
23346 * tree-ssa-alias.c (ptrs_compare_unequal): If vars_contains_restrict
23347 do not disambiguate pointers against it.
23348 (dump_points_to_solution): Re-structure and adjust for new
23349 vars_contains_restrict flag.
23350 * gimple-pretty-print.c (pp_points_to_solution): Likewise.
23351
23352 2016-05-12 Martin Liska <mliska@suse.cz>
23353
23354 * doc/invoke.texi: Explain connection between
23355 -fsanitize-recover=address and ASAN_OPTIONS="halt_on_error=1".
23356
23357 2016-05-12 Ilya Enkovich <ilya.enkovich@intel.com>
23358
23359 PR tree-optimization/71006
23360 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
23361 consider COND_EXPR as a mask producer.
23362
23363 2016-05-12 Marek Polacek <polacek@redhat.com>
23364
23365 PR driver/71063
23366 * opts.c (common_handle_option): Detect missing argument for --help^.
23367
23368 2016-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23369
23370 PR target/70830
23371 * config/arm/arm.c (arm_output_multireg_pop): Avoid POP instruction
23372 when popping the PC and within an interrupt handler routine.
23373 Add missing tab to output of "ldmfd".
23374 (output_return_instruction): Output LDMFD with SP update rather
23375 than POP when returning from interrupt handler.
23376
23377 2016-05-12 Jakub Jelinek <jakub@redhat.com>
23378
23379 * config/i386/i386.md (isa): Add x64_avx512dq, enable if
23380 TARGET_64BIT && TARGET_AVX512DQ.
23381 * config/i386/sse.md (*vec_extract<mode>): Add avx512bw alternatives.
23382 (*vec_extract<PEXTR_MODE12:mode>_zext): Add avx512bw alternative.
23383 (*vec_extract<ssevecmodelower>_0, *vec_extractv4si_0_zext,
23384 *vec_extractv2di_0_sse): Use v constraint instead of x constraint.
23385 (*vec_extractv4si): Add avx512dq and avx512bw alternatives.
23386 (*vec_extractv4si_zext): Add avx512dq alternative.
23387 (*vec_extractv2di_1): Add x64_avx512dq and avx512bw alternatives,
23388 use v instead of x constraint in other alternatives where possible.
23389
23390 * config/i386/sse.md (sse2_loadld): Use v instead of x
23391 constraint in alternatives 0,1,4.
23392
23393 * config/i386/sse.md (pinsr_evex_isa): New mode attr.
23394 (<sse2p4_1>_pinsr<ssemodesuffix>): Add 2 alternatives with
23395 v constraints instead of x and <pinsr_evex_isa> isa attribute.
23396
23397 PR target/71019
23398 * config/i386/sse.md (<sse2_avx2>_packssdw<mask_name>,
23399 <sse4_1_avx2>_packusdw<mask_name>): Make sure EVEX encoded insn
23400 is not emitted unless TARGET_AVX512BW.
23401 (<sse2_avx2>_packuswb<mask_name>, <sse2_avx2>_packsswb<mask_name>):
23402 Likewise. For TARGET_AVX512BW, use "=v" constraint instead of "=x"
23403 for the result operand.
23404
23405 * config/i386/sse.md (*vec_setv4sf_sse4_1, sse4_1_insertps): Use v
23406 constraint instead of x in avx alternatives. Use maybe_evex instead
23407 of vex prefix.
23408
23409 * config/i386/constraints.md (Yv): New constraint.
23410 * config/i386/i386.h (VALID_AVX512VL_128_REG_MODE): Allow
23411 TFmode and V1TImode in xmm16+ registers for TARGET_AVX512VL.
23412 * config/i386/i386.md (avx512fvecmode): New mode attr.
23413 (*pushtf): Use v constraint instead of x.
23414 (*movtf_internal): Likewise. For TARGET_AVX512VL and
23415 xmm16+ registers, use vmovdqu64 or vmovdqa64 instructions.
23416 (*absneg<mode>2): Use Yv constraint instead of x constraint.
23417 (*absnegtf2_sse): Likewise.
23418 (copysign<mode>3_const, copysign<mode>3_var): Likewise.
23419 * config/i386/sse.md (*andnot<mode>3): Add avx512vl and
23420 avx512f alternatives.
23421 (*andnottf3, *<code><mode>3, *<code>tf3): Likewise.
23422
23423 2016-05-12 Richard Biener <rguenther@suse.de>
23424
23425 PR tree-optimization/71060
23426 * tree-data-ref.c (initialize_data_dependence_relation): Do not
23427 require exact match of DR_BASE_OBJECT but only matching address and
23428 type.
23429
23430 2016-05-12 Richard Biener <rguenther@suse.de>
23431
23432 PR tree-optimization/70986
23433 * cfganal.c: Include cfgloop.h.
23434 (dfs_find_deadend): Prefer to take edges exiting loops.
23435
23436 2016-05-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23437
23438 * gcc.target/powerpc/pr70963.c: Require at least power8 at both
23439 compile and run time.
23440
23441 2016-05-11 Mikhail Maltsev <maltsevm@gmail.com>
23442
23443 PR c/43651
23444 * doc/invoke.texi (Wduplicate-decl-specifier): Document new option.
23445
23446 2016-05-11 Uros Bizjak <ubizjak@gmail.com>
23447
23448 * config/i386/i386.c (legitimize_pic_address): Use
23449 copy_to_suggested_reg instead of gen_movsi.
23450
23451 2016-05-11 Michael Meissner <meissner@linux.vnet.ibm.com>
23452
23453 * config/rs6000/predicates.md (quad_memory_operand): Move most of
23454 the code into quad_address_p and call it to share code with
23455 vsx_quad_dform_memory_operand.
23456 (vsx_quad_dform_memory_operand): New predicate for ISA 3.0 vector
23457 d-form support.
23458 * config/rs6000/rs6000.opt (-mlra): Switch to being an option mask
23459 bit instead of being a separate word. Split -mpower9-dform into
23460 two switches, -mpower9-dform-scalar and -mpower9-dform-vector.
23461 * config/rs6000/rs6000.c (RELOAD_REG_QUAD_OFFSET): New addr_mask
23462 for the register class supporting 128-bit quad word memory offsets.
23463 (mode_supports_vsx_dform_quad): Helper function to return if the
23464 register class uses quad word memory offsets.
23465 (rs6000_debug_addr_mask): Add support for quad word memory offsets.
23466 (rs6000_debug_reg_global): Always print if we are using LRA or not.
23467 (rs6000_setup_reg_addr_masks): If ISA 3.0 vector d-form
23468 instructions are enabled, set up the appropriate addr_masks for
23469 128-bit types.
23470 (rs6000_init_hard_regno_mode_ok): wb constraint is now based on
23471 -mpower9-dform-scalar, instead of -mpower9-dform.
23472 (rs6000_option_override_internal): Split -mpower9-dform into two
23473 switches, -mpower9-dform-scalar and -mpower9-dform-vector. The
23474 -mpower9-dform switch sets or clears both. If we are not using
23475 the LRA register allocator, do not enable -mpower9-dform-vector by
23476 default. If we are using LRA, enable -mpower9-dform-vector and
23477 -mvsx-timode if it is appropriate. Issue a warning if either
23478 -mpower9-dform-vector or -mvsx-timode are explicitly used without
23479 enabling LRA.
23480 (quad_address_offset_p): New helper function to return if the
23481 offset is legal for quad word memory instructions.
23482 (quad_address_p): New function to determin if GPR or vector
23483 register quad word memory addresses are legal.
23484 (mem_operand_gpr): Validate quad word address offsets.
23485 (reg_offset_addressing_ok_p): Add support for ISA 3.0 vector
23486 d-form (register + offset) instructions.
23487 (offsettable_ok_by_alignment): Likewise.
23488 (rs6000_legitimate_offset_address_p): Likewise.
23489 (legitimate_lo_sum_address_p): Likewise.
23490 (rs6000_legitimize_address): Likewise.
23491 (rs6000_legitimize_reload_address): Add more debug statements for
23492 -mdebug=addr.
23493 (rs6000_legitimate_address_p): Add support for ISA 3.0 vector
23494 d-form instructions.
23495 (rs6000_secondary_reload_memory): Add support for ISA 3.0 vector
23496 d-form instructions. Distinguish different cases in debug
23497 output. (rs6000_secondary_reload_inner): Add support for ISA 3.0 vector
23498 d-form instructions.
23499 (rs6000_preferred_reload_class): Likewise.
23500 (rs6000_output_move_128bit): Add support for ISA 3.0 d-form
23501 instructions. If ISA 3.0 is available, generate lxvx/stxvx instead
23502 of the ISA 2.06 indexed memory instructions.
23503 (rs6000_emit_prologue): If we have ISA 3.0 d-form instructions,
23504 use them to save/restore the saved vector registers instead of
23505 using Altivec instructions.
23506 (rs6000_emit_epilogue): Likewise.
23507 (rs6000_lra_p): Use TARGET_LRA instead of the old option word.
23508 (rs6000_opt_masks): Split -mpower9-dform into
23509 -mpower9-dform-scalar and -mpower9-dform-vector.
23510 (rs6000_print_options_internal): Print -mno-<switch> if <switch>
23511 was not selected.
23512 * config/rs6000/vsx.md (p9_vecload_<mode>): Delete hack to emit
23513 ISA 3.0 vector indexed memory instructions, and fold the code into
23514 the normal mov<mode> patterns.
23515 (p9_vecstore_<mode>): Likewise.
23516 (vsx_mov<mode>): Add support for ISA 3.0 vector d-form
23517 instructions.
23518 (vsx_movti_64bit): Likewise.
23519 (vsx_movti_32bit): Likewise.
23520 * config/rs6000/constraints.md (wO constraint): New constraint for
23521 ISA 3.0 vector d-form support.
23522 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Use
23523 -mpower9-dform-scalar instead of -mpower9-dform. Add note not to
23524 include -mpower9-dform-vector until we switch over to LRA.
23525 (POWERPC_MASKS): Add -mlra. Split -mpower9-dform into two.
23526 switches, -mpower9-dform-scalar and -mpower9-dform-vector.
23527 * config/rs6000/rs6000-protos.h (quad_address_p): Add declaration.
23528 * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
23529 for -mpower9-dform and -mlra.
23530 * doc/md.texi (wO constraint): Document wO constraint.
23531
23532 2016-05-11 Alexander Monakov <amonakov@ispras.ru>
23533
23534 * genattr.c (main): Change 'rtx' to 'rtx_insn *' in prototypes of
23535 'insn_latency', 'maximal_insn_latency', 'min_insn_conflict_delay'.
23536 * genautomata.c (output_internal_insn_code_evaluation): Simplify.
23537 Move handling of non-insn arguments inline into the sole user:
23538 (output_trans_func): ...here.
23539 (output_min_insn_conflict_delay_func): Change 'rtx' to 'rtx_insn *'
23540 in emitted function prototype.
23541 (output_internal_insn_latency_func): Ditto. Simplify.
23542 (output_internal_maximal_insn_latency_func): Ditto. Delete
23543 always-unused argument.
23544 (output_insn_latency_func): Ditto.
23545 (output_maximal_insn_latency_func): Ditto.
23546
23547 2016-05-11 Richard Biener <rguenther@suse.de>
23548
23549 PR tree-optimization/71055
23550 * tree-ssa-sccvn.c (vn_reference_lookup_3): When native-interpreting
23551 sth with precision not equal to access size verify we don't chop
23552 off bits.
23553
23554 2016-05-11 Richard Biener <rguenther@suse.de>
23555
23556 PR debug/71057
23557 * dwarf2out.c (retry_incomplete_types): Set early_dwarf.
23558 (dwarf2out_finish): Move retry_incomplete_types call ...
23559 (dwarf2out_early_finish): ... here.
23560
23561 2016-05-11 Richard Biener <rguenther@suse.de>
23562
23563 PR middle-end/71002
23564 * alias.c (reference_alias_ptr_type): Preserve alias-set zero
23565 if the langhook insists on it.
23566 * fold-const.c (make_bit_field_ref): Add arg for the original
23567 reference and preserve its alias-set.
23568 (decode_field_reference): Take exp by reference and adjust it
23569 to the original memory reference.
23570 (optimize_bit_field_compare): Adjust callers.
23571 (fold_truth_andor_1): Likewise.
23572 * gimplify.c (gimplify_expr): Adjust in-SSA form test.
23573
23574 2016-05-11 Ilya Enkovich <ilya.enkovich@intel.com>
23575
23576 PR middle-end/70807
23577 * cfgrtl.h (delete_insn_and_edges): Now return bool.
23578 * cfgrtl.c (delete_insn_and_edges): Likewise.
23579 * config/i386/i386.c (convert_scalars_to_vector): Remove
23580 redundant code.
23581 * cse.c (cse_insn): Compute cse_cfg_altered.
23582 (delete_trivially_dead_insns): Likewise.
23583 (cse_cc_succs): Likewise.
23584 (rest_of_handle_cse): Free dominance info if required.
23585 (rest_of_handle_cse2): Likewise.
23586 (rest_of_handle_cse_after_global_opts): Likewise.
23587
23588 2016-05-11 Alan Modra <amodra@gmail.com>
23589
23590 * config/rs6000/rs6000.c (is_complex_IBM_long_double,
23591 abi_v4_pass_in_fpr): New functions.
23592 (rs6000_function_arg_boundary): Exclude complex IBM long double
23593 from 64-bit alignment when ABI_V4.
23594 (rs6000_function_arg, rs6000_function_arg_advance_1,
23595 rs6000_gimplify_va_arg): Use abi_v4_pass_in_fpr.
23596
23597 2016-05-10 Segher Boessenkool <segher@kernel.crashing.org>
23598
23599 PR rtl-optimization/71028
23600 * cfgcleanup.c (try_optimize_cfg): Do not flip a conditional
23601 jump with just a return in the fallthrough block if the branch
23602 block contains just a return as well.
23603
23604 2016-05-10 Marc Glisse <marc.glisse@inria.fr>
23605
23606 * fold-const.c (fold_binary_loc) [(X ^ Y) & Y]: Remove and merge with...
23607 * match.pd ((X & Y) ^ Y): ... this.
23608 ((X & Y) & Y, (X | Y) | Y, (X ^ Y) ^ Y, (X & Y) & (X & Z), (X | Y)
23609 | (X | Z), (X ^ Y) ^ (X ^ Z)): New transformations.
23610
23611 2016-05-10 David Malcolm <dmalcolm@redhat.com>
23612
23613 * read-md.c (require_char_ws): New function.
23614 (read_string): Simplify using require_char_ws.
23615 (handle_constants): Likewise.
23616 (handle_enum): Likewise.
23617 (handle_file): Likewise.
23618 * read-md.h (require_char_ws): New declaration.
23619 * read-rtl.c (read_conditions): Simplify using require_char_ws.
23620 (read_mapping): Likewise.
23621 (read_rtx_code): Likewise.
23622 (read_nested_rtx): Likewise.
23623
23624 2016-05-10 James Norris <jnorris@codesourcery.com>
23625
23626 * config/rs6000/sysv4.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o
23627 if offloading is enabled and -fopenacc or -fopenmp is specified.
23628 (CRTOFFLOADEND): Likewise.
23629 (STARTFILE_LINUX_SPEC): Add CRTOFFLOADBEGIN.
23630 (ENDFILE_LINUX_SPEC): Add CRTOFFLOADEND.
23631
23632 2016-05-10 Uros Bizjak <ubizjak@gmail.com>
23633
23634 * config/i386/i386.c (legitimize_pic_address): Merge 64-bit and 32-bit
23635 gotoff_operand code paths. Use copy_to_suggested_regs and
23636 expand_simple_binop where appropriate. Cleanup.
23637
23638 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
23639
23640 PR target/70799
23641 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p): Allow
23642 integer constants.
23643 (dimode_scalar_chain::vector_const_cost): New.
23644 (dimode_scalar_chain::compute_convert_gain): Handle constants.
23645 (dimode_scalar_chain::convert_op): Likewise.
23646 (dimode_scalar_chain::convert_insn): Likewise.
23647
23648 2016-05-10 Pierre-Marie de Rodat <derodat@adacore.com>
23649
23650 * dwarf2out.c (resolve_args_picking_1): Consider DW_OP_neg as an
23651 unary operation, not a binary one.
23652
23653 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
23654
23655 PR middle-end/70877
23656 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Handle
23657 calls with type casted fndecl.
23658
23659 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
23660
23661 PR tree-optimization/70786
23662 * tree-chkp.c (chkp_find_bounds_1): Support WITH_SIZE_EXPR.
23663 * calls.c (initialize_argument_information): Bind bounds
23664 with corresponding args passed by reference.
23665
23666 2016-05-10 Jakub Jelinek <jakub@redhat.com>
23667
23668 PR target/70927
23669 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>),
23670 *<code><mode>3<mask_name>): For !TARGET_AVX512DQ and EVEX encoding,
23671 use vp*[dq] instead of v*p[sd] instructions and adjust mode attribute
23672 accordingly.
23673
23674 2016-05-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23675
23676 PR target/70963
23677 * config/rs6000/vsx.md (vsx_xvcvdpsxds_scale): Generate correct
23678 code for a zero scale factor.
23679 (vsx_xvcvdpuxds_scale): Likewise.
23680
23681 2016-05-10 David Malcolm <dmalcolm@redhat.com>
23682
23683 * diagnostic-show-locus.c (layout::layout): Call show_ruler
23684 if show_ruler_p was set on the context.
23685 (layout::show_ruler): New method.
23686 * diagnostic.h (struct diagnostic_context): Add field
23687 "show_ruler_p".
23688
23689 2016-05-10 Richard Biener <rguenther@suse.de>
23690
23691 PR tree-optimization/71039
23692 * tree-ssa-phiprop.c: Include tree-ssa-loop.h.
23693 (chk_uses): New function.
23694 (propagate_with_phi): Verify we can safely replicate the lhs of an
23695 aggregate assignment on all incoming edges.
23696
23697 2016-05-10 Oleg Endo <olegendo@gcc.gnu.org>
23698
23699 * config/rx/rx-protos.h (is_interrupt_func, is_fast_interrupt_func):
23700 Forward declare.
23701 (rx_atomic_sequence): New class.
23702 * config/rx/rx.c (rx_print_operand): Use symbolic names for PSW bits.
23703 (is_interrupt_func, is_fast_interrupt_func): Make non-static and
23704 non-inline.
23705 (rx_atomic_sequence::rx_atomic_sequence,
23706 rx_atomic_sequence::~rx_atomic_sequence): New functions.
23707 * config/rx/rx.md (CTRLREG_PSW, CTRLREG_USP, CTRLREG_FPSW, CTRLREG_CPEN,
23708 CTRLREG_BPSW, CTRLREG_BPC, CTRLREG_ISP, CTRLREG_FINTV,
23709 CTRLREG_INTB): New constants.
23710 (FETCHOP): New code iterator.
23711 (fethcop_name, fetchop_name2): New iterator code attributes.
23712 (QIHI): New mode iterator.
23713 (atomic_exchange<mode>, atomic_exchangesi, xchg_mem<mode>,
23714 atomic_fetch_<fetchop_name>si, atomic_fetch_nandsi,
23715 atomic_<fetchop_name>_fetchsi, atomic_nand_fetchsi): New patterns.
23716
23717 2016-05-10 Martin Liska <mliska@suse.cz>
23718
23719 * tree-inline.c (remap_dependence_clique): Do not remap
23720 debugging statements.
23721
23722 2016-05-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23723
23724 * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly")
23725 ("*fixuns_truncdfdi2_z13")
23726 ("*fixuns_trunc<FP:mode><GPR:mode>2_z196")
23727 ("*fix_truncdfdi2_bfp_z13", "*floatunsdidf2_z13")
23728 ("*extendsfdf2_z13"): Replace TARGET_Z13 with TARGET_VX.
23729
23730 2016-05-10 Richard Biener <rguenther@suse.de>
23731
23732 PR tree-optimization/70497
23733 PR tree-optimization/28367
23734 * tree-ssa-sccvn.c (vn_nary_build_or_lookup): New function
23735 split out from ...
23736 (visit_reference_op_load): ... here.
23737 (vn_reference_lookup_3): Use it to handle subreg-like accesses
23738 with simplified BIT_FIELD_REFs.
23739 * tree-ssa-pre.c (eliminate_insert): Handle inserting BIT_FIELD_REFs.
23740 * tree-complex.c (extract_component): Handle BIT_FIELD_REFs
23741 correctly.
23742
23743 2016-05-10 Pierre-Marie de Rodat <derodat@adacore.com>
23744
23745 * dwarf2out.c (add_abstract_origin_attribute): Adjust
23746 documentation comment. For BLOCK nodes, add a
23747 DW_AT_abstract_origin attribute that points to the DIE generated
23748 for the origin BLOCK.
23749 (gen_lexical_block_die): Call add_abstract_origin_attribute for
23750 blocks from inlined functions.
23751
23752 2016-05-10 Alan Modra <amodra@gmail.com>
23753
23754 PR target/70947
23755 * config/rs6000/rs6000.c (rs6000_expand_split_stack_prologue): Stop
23756 regrename modifying insns saving lr before __morestack call.
23757 * config/rs6000/rs6000.md (split_stack_return): Similarly for
23758 insns restoring lr after __morestack call.
23759
23760 2016-05-09 Jakub Jelinek <jakub@redhat.com>
23761
23762 * config/i386/i386.md (set_got, set_got_labelled, lwp_llwpcb,
23763 lwp_lwpval<mode>3, lwp_lwpins<mode>3): Remove constraints from
23764 expanders.
23765 * config/i386/sse.md (vec_interleave_high<mode>,
23766 vec_interleave_low<mode>, <avx512>_vpermi2var<mode>3_maskz,
23767 <avx512>_vpermt2var<mode>3_maskz): Likewise.
23768
23769 2016-05-04 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
23770
23771 * config/rs6000/rs6000.c (rs6000_reassociation_width): Add
23772 function for TARGET_SCHED_REASSOCIATION_WIDTH to enable
23773 parallel reassociation for power8 and forward.
23774
23775 2016-05-09 Uros Bizjak <ubizjak@gmail.com>
23776
23777 * config/i386/i386.md (absneg splitters with general regs): Use
23778 general_reg_operand predicate.
23779 (btsq peephole2): Use x86_64_immediate_operand to check if new
23780 value is suitable for immediate operand. Generate emitted insn
23781 using RTL expressions.
23782 (btcq peephole2): Ditto.
23783 (btrq peephole2): Ditto. Generate correct immediate operand
23784 for AND masking.
23785
23786 2016-05-09 Richard Sandiford <richard.sandiford@arm.com>
23787
23788 * cfgexpand.c (expand_debug_expr): Fix address offset for negative
23789 bitpos.
23790
23791 2016-05-09 Richard Sandiford <richard.sandiford@arm.com>
23792
23793 * tree-affine.c (wide_int_constant_multiple_p): Add missing
23794 pointer dereference.
23795
23796 2016-05-09 Richard Biener <rguenther@suse.de>
23797
23798 PR tree-optimization/70985
23799 * match.pd (BIT_FIELD_REF -> (type)): Disable on GIMPLE when
23800 op0 isn't a gimple register.
23801
23802 2016-05-09 Prachi Godbole <prachi.godbole@imgtec.com>
23803
23804 * config/mips/i6400.md (i6400_fpu_intadd, i6400_fpu_logic)
23805 (i6400_fpu_div, i6400_fpu_cmp, i6400_fpu_float, i6400_fpu_store)
23806 (i6400_fpu_long_pipe, i6400_fpu_logic_l, i6400_fpu_float_l)
23807 (i6400_fpu_mult): New cpu units.
23808 (i6400_msa_add_d, i6400_msa_int_add, i6400_msa_short_logic3)
23809 (i6400_msa_short_logic2, i6400_msa_short_logic, i6400_msa_move)
23810 (i6400_msa_cmp, i6400_msa_short_float2, i6400_msa_div_d)
23811 (i6400_msa_div_w, i6400_msa_div_h, i6400_msa_div_b)
23812 (i6400_msa_copy, i6400_msa_branch, i6400_fpu_msa_store)
23813 (i6400_fpu_msa_load, i6400_fpu_msa_move, i6400_msa_long_logic1)
23814 (i6400_msa_long_logic2, i6400_msa_mult, i6400_msa_long_float2)
23815 (i6400_msa_long_float4, i6400_msa_long_float5)
23816 (i6400_msa_long_float8, i6400_msa_fdiv_df)
23817 (i6400_msa_fdiv_sf): New reservations.
23818 * config/mips/p5600.md (p5600_fpu_intadd, p5600_fpu_cmp)
23819 (p5600_fpu_float, p5600_fpu_logic_a, p5600_fpu_logic_b)
23820 (p5600_fpu_div, p5600_fpu_logic, p5600_fpu_float_a)
23821 (p5600_fpu_float_b, p5600_fpu_float_c, p5600_fpu_float_d)
23822 (p5600_fpu_mult, p5600_fpu_fdiv, p5600_fpu_load): New cpu units.
23823 (msa_short_int_add, msa_short_logic, msa_short_logic_move_v)
23824 (msa_short_cmp, msa_short_float2, msa_short_logic3)
23825 (msa_short_store4, msa_long_load, msa_short_store)
23826 (msa_long_logic, msa_long_float2, msa_long_float4)
23827 (msa_long_float5, msa_long_float8, msa_long_mult)
23828 (msa_long_fdiv, msa_long_div): New reservations.
23829
23830 2016-05-09 Robert Suchanek <robert.suchanek@imgtec.com>
23831 Sameera Deshpande <sameera.deshpande@imgtec.com>
23832 Matthew Fortune <matthew.fortune@imgtec.com>
23833 Graham Stott <graham.stott@imgtec.com>
23834 Chao-ying Fu <chao-ying.fu@imgtec.com>
23835
23836 * config.gcc: Add MSA header file for mips*-*-* target.
23837 * config/mips/constraints.md (YI, YC, YZ, Unv5, Uuv5, Usv5, Uuv6)
23838 (Ubv8i, Urv8): New constraints.
23839 * config/mips/mips-ftypes.def: Add function types for MSA
23840 builtins.
23841 * config/mips/mips-modes.def (V16QI, V8HI, V4SI, V2DI, V4SF)
23842 (V2DF, V32QI, V16HI, V8SI, V4DI, V8SF, V4DF): New modes.
23843 * config/mips/mips-msa.md: New file.
23844 * config/mips/mips-protos.h
23845 (mips_split_128bit_const_insns): New prototype.
23846 (mips_msa_idiv_insns): Likewise.
23847 (mips_split_128bit_move): Likewise.
23848 (mips_split_128bit_move_p): Likewise.
23849 (mips_split_msa_copy_d): Likewise.
23850 (mips_split_msa_insert_d): Likewise.
23851 (mips_split_msa_fill_d): Likewise.
23852 (mips_expand_msa_branch): Likewise.
23853 (mips_const_vector_same_val_p): Likewise.
23854 (mips_const_vector_same_bytes_p): Likewise.
23855 (mips_const_vector_same_int_p): Likewise.
23856 (mips_const_vector_shuffle_set_p): Likewise.
23857 (mips_const_vector_bitimm_set_p): Likewise.
23858 (mips_const_vector_bitimm_clr_p): Likewise.
23859 (mips_msa_vec_parallel_const_half): Likewise.
23860 (mips_msa_output_division): Likewise.
23861 (mips_ldst_scaled_shift): Likewise.
23862 (mips_expand_vec_cond_expr): Likewise.
23863 * config/mips/mips.c (enum mips_builtin_type): Add
23864 MIPS_BUILTIN_MSA_TEST_BRANCH.
23865 (mips_gen_const_int_vector_shuffle): New prototype.
23866 (mips_const_vector_bitimm_set_p): New function.
23867 (mips_const_vector_bitimm_clr_p): Likewise.
23868 (mips_const_vector_same_val_p): Likewise.
23869 (mips_const_vector_same_bytes_p): Likewise.
23870 (mips_const_vector_same_int_p): Likewise.
23871 (mips_const_vector_shuffle_set_p): Likewise.
23872 (mips_symbol_insns): Forbid loading symbols via immediate for
23873 MSA.
23874 (mips_valid_offset_p): Limit offset to 10-bit for MSA loads and
23875 stores.
23876 (mips_valid_lo_sum_p): Forbid loadings symbols via %lo(base) for
23877 MSA.
23878 (mips_lx_address_p): Add support load indexed address for MSA.
23879 (mips_address_insns): Add calculation of instructions needed for
23880 stores and loads for MSA.
23881 (mips_const_insns): Move CONST_DOUBLE below CONST_VECTOR. Handle
23882 CONST_VECTOR for MSA and let it fall through.
23883 (mips_ldst_scaled_shift): New function.
23884 (mips_subword_at_byte): Likewise.
23885 (mips_msa_idiv_insns): Likewise.
23886 (mips_legitimize_move): Validate MSA moves.
23887 (mips_rtx_costs): Add UNGE, UNGT, UNLE, UNLT cases. Add
23888 calculation of costs for MSA division.
23889 (mips_split_move_p): Check if MSA moves need splitting.
23890 (mips_split_move): Split MSA moves if necessary.
23891 (mips_split_128bit_move_p): New function.
23892 (mips_split_128bit_move): Likewise.
23893 (mips_split_msa_copy_d): Likewise.
23894 (mips_split_msa_insert_d): Likewise.
23895 (mips_split_msa_fill_d): Likewise.
23896 (mips_output_move): Handle MSA moves.
23897 (mips_expand_msa_branch): New function.
23898 (mips_print_operand): Add 'E', 'B', 'w', 'v' and 'V' modifiers.
23899 Reinstate 'y' modifier.
23900 (mips_file_start): Add MSA .gnu_attribute.
23901 (mips_hard_regno_mode_ok_p): Allow TImode and 128-bit vectors in
23902 FPRs.
23903 (mips_hard_regno_nregs): Always return 1 for MSA supported mode.
23904 (mips_class_max_nregs): Add register size for MSA supported mode.
23905 (mips_cannot_change_mode_class): Allow conversion between MSA
23906 vector modes and TImode.
23907 (mips_mode_ok_for_mov_fmt_p): Allow MSA to use move.v
23908 instruction.
23909 (mips_secondary_reload_class): Force MSA loads/stores via memory.
23910 (mips_preferred_simd_mode): Add preffered modes for MSA.
23911 (mips_vector_mode_supported_p): Add MSA supported modes.
23912 (mips_autovectorize_vector_sizes): New function.
23913 (mips_msa_output_division): Likewise.
23914 (MSA_BUILTIN, MIPS_BUILTIN_DIRECT_NO_TARGET)
23915 (MSA_NO_TARGET_BUILTIN, MSA_BUILTIN_TEST_BRANCH): New macros.
23916 (CODE_FOR_msa_adds_s_b, CODE_FOR_msa_adds_s_h)
23917 (CODE_FOR_msa_adds_s_w, CODE_FOR_msa_adds_s_d)
23918 (CODE_FOR_msa_adds_u_b, CODE_FOR_msa_adds_u_h)
23919 (CODE_FOR_msa_adds_u_w, CODE_FOR_msa_adds_u_du
23920 (CODE_FOR_msa_addv_b, CODE_FOR_msa_addv_h, CODE_FOR_msa_addv_w)
23921 (CODE_FOR_msa_addv_d, CODE_FOR_msa_and_v, CODE_FOR_msa_bmnz_v)
23922 (CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bmz_v, CODE_FOR_msa_bmzi_b)
23923 (CODE_FOR_msa_bnz_v, CODE_FOR_msa_bz_v, CODE_FOR_msa_bsel_v)
23924 (CODE_FOR_msa_bseli_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w)
23925 (CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b)
23926 (CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w)
23927 (CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clti_u_b)
23928 (CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w)
23929 (CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_s_b)
23930 (CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w)
23931 (CODE_FOR_msa_clei_s_d, CODE_FOR_msa_clei_u_b)
23932 (CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w)
23933 (CODE_FOR_msa_clei_u_d, CODE_FOR_msa_div_s_b)
23934 (CODE_FOR_msa_div_s_h, CODE_FOR_msa_div_s_w)
23935 (CODE_FOR_msa_div_s_d, CODE_FOR_msa_div_u_b)
23936 (CODE_FOR_msa_div_u_h, CODE_FOR_msa_div_u_w)
23937 (CODE_FOR_msa_div_u_d, CODE_FOR_msa_fadd_w, CODE_FOR_msa_fadd_d)
23938 (CODE_FOR_msa_fexdo_w, CODE_FOR_msa_ftrunc_s_w)
23939 (CODE_FOR_msa_ftrunc_s_d, CODE_FOR_msa_ftrunc_u_w)
23940 (CODE_FOR_msa_ftrunc_u_d, CODE_FOR_msa_ffint_s_w)
23941 (CODE_FOR_msa_ffint_s_d, CODE_FOR_msa_ffint_u_w)
23942 (CODE_FOR_msa_ffint_u_d, CODE_FOR_msa_fsub_w)
23943 (CODE_FOR_msa_fsub_d, CODE_FOR_msa_fmsub_d, CODE_FOR_msa_fmadd_w)
23944 (CODE_FOR_msa_fmadd_d, CODE_FOR_msa_fmsub_w, CODE_FOR_msa_fmul_w)
23945 (CODE_FOR_msa_fmul_d, CODE_FOR_msa_fdiv_w, CODE_FOR_msa_fdiv_d)
23946 (CODE_FOR_msa_fmax_w, CODE_FOR_msa_fmax_d, CODE_FOR_msa_fmax_a_w)
23947 (CODE_FOR_msa_fmax_a_d, CODE_FOR_msa_fmin_w, CODE_FOR_msa_fmin_d)
23948 (CODE_FOR_msa_fmin_a_w, CODE_FOR_msa_fmin_a_d)
23949 (CODE_FOR_msa_fsqrt_w, CODE_FOR_msa_fsqrt_d)
23950 (CODE_FOR_msa_max_s_b, CODE_FOR_msa_max_s_h)
23951 (CODE_FOR_msa_max_s_w, CODE_FOR_msa_max_s_d)
23952 (CODE_FOR_msa_max_u_b, CODE_FOR_msa_max_u_h)
23953 (CODE_FOR_msa_max_u_w, CODE_FOR_msa_max_u_d)
23954 (CODE_FOR_msa_min_s_b, CODE_FOR_msa_min_s_h)
23955 (CODE_FOR_msa_min_s_w, CODE_FOR_msa_min_s_d)
23956 (CODE_FOR_msa_min_u_b, CODE_FOR_msa_min_u_h)
23957 (CODE_FOR_msa_min_u_w, CODE_FOR_msa_min_u_d)
23958 (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
23959 (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
23960 (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
23961 (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
23962 (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
23963 (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
23964 (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
23965 (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
23966 (CODE_FOR_msa_mulv_b, CODE_FOR_msa_mulv_h, CODE_FOR_msa_mulv_w)
23967 (CODE_FOR_msa_mulv_d, CODE_FOR_msa_nlzc_b, CODE_FOR_msa_nlzc_h)
23968 (CODE_FOR_msa_nlzc_w, CODE_FOR_msa_nlzc_d, CODE_FOR_msa_nor_v)
23969 (CODE_FOR_msa_or_v, CODE_FOR_msa_ori_b, CODE_FOR_msa_nori_b)
23970 (CODE_FOR_msa_pcnt_b, CODE_FOR_msa_pcnt_h, CODE_FOR_msa_pcnt_w)
23971 (CODE_FOR_msa_pcnt_d, CODE_FOR_msa_xor_v, CODE_FOR_msa_xori_b)
23972 (CODE_FOR_msa_sll_b, CODE_FOR_msa_sll_h, CODE_FOR_msa_sll_w)
23973 (CODE_FOR_msa_sll_d, CODE_FOR_msa_slli_b, CODE_FOR_msa_slli_h)
23974 (CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d, CODE_FOR_msa_sra_b)
23975 (CODE_FOR_msa_sra_h, CODE_FOR_msa_sra_w, CODE_FOR_msa_sra_d)
23976 (CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w)
23977 (CODE_FOR_msa_srai_d, CODE_FOR_msa_srl_b, CODE_FOR_msa_srl_h)
23978 (CODE_FOR_msa_srl_w, CODE_FOR_msa_srl_d, CODE_FOR_msa_srli_b)
23979 (CODE_FOR_msa_srli_h, CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d)
23980 (CODE_FOR_msa_subv_b, CODE_FOR_msa_subv_h, CODE_FOR_msa_subv_w)
23981 (CODE_FOR_msa_subv_d, CODE_FOR_msa_subvi_b, CODE_FOR_msa_subvi_h)
23982 (CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d, CODE_FOR_msa_move_v)
23983 (CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h, CODE_FOR_msa_vshf_w)
23984 (CODE_FOR_msa_vshf_d, CODE_FOR_msa_ilvod_d, CODE_FOR_msa_ilvev_d)
23985 (CODE_FOR_msa_pckod_d, CODE_FOR_msa_pckdev_d, CODE_FOR_msa_ldi_b)
23986 (CODE_FOR_msa_ldi_hi, CODE_FOR_msa_ldi_w)
23987 (CODE_FOR_msa_ldi_d): New code_aliasing macros.
23988 (mips_builtins): Add MSA sll_b, sll_h, sll_w, sll_d, slli_b,
23989 slli_h, slli_w, slli_d, sra_b, sra_h, sra_w, sra_d, srai_b,
23990 srai_h, srai_w, srai_d, srar_b, srar_h, srar_w, srar_d, srari_b,
23991 srari_h, srari_w, srari_d, srl_b, srl_h, srl_w, srl_d, srli_b,
23992 srli_h, srli_w, srli_d, srlr_b, srlr_h, srlr_w, srlr_d, srlri_b,
23993 srlri_h, srlri_w, srlri_d, bclr_b, bclr_h, bclr_w, bclr_d,
23994 bclri_b, bclri_h, bclri_w, bclri_d, bset_b, bset_h, bset_w,
23995 bset_d, bseti_b, bseti_h, bseti_w, bseti_d, bneg_b, bneg_h,
23996 bneg_w, bneg_d, bnegi_b, bnegi_h, bnegi_w, bnegi_d, binsl_b,
23997 binsl_h, binsl_w, binsl_d, binsli_b, binsli_h, binsli_w,
23998 binsli_d, binsr_b, binsr_h, binsr_w, binsr_d, binsri_b, binsri_h,
23999 binsri_w, binsri_d, addv_b, addv_h, addv_w, addv_d, addvi_b,
24000 addvi_h, addvi_w, addvi_d, subv_b, subv_h, subv_w, subv_d,
24001 subvi_b, subvi_h, subvi_w, subvi_d, max_s_b, max_s_h, max_s_w,
24002 max_s_d, maxi_s_b, maxi_s_h, maxi_s_w, maxi_s_d, max_u_b,
24003 max_u_h, max_u_w, max_u_d, maxi_u_b, maxi_u_h, maxi_u_w,
24004 maxi_u_d, min_s_b, min_s_h, min_s_w, min_s_d, mini_s_b, mini_s_h,
24005 mini_s_w, mini_s_d, min_u_b, min_u_h, min_u_w, min_u_d, mini_u_b,
24006 mini_u_h, mini_u_w, mini_u_d, max_a_b, max_a_h, max_a_w, max_a_d,
24007 min_a_b, min_a_h, min_a_w, min_a_d, ceq_b, ceq_h, ceq_w, ceq_d,
24008 ceqi_b, ceqi_h, ceqi_w, ceqi_d, clt_s_b, clt_s_h, clt_s_w,
24009 clt_s_d, clti_s_b, clti_s_h, clti_s_w, clti_s_d, clt_u_b,
24010 clt_u_h, clt_u_w, clt_u_d, clti_u_b, clti_u_h, clti_u_w,
24011 clti_u_d, cle_s_b, cle_s_h, cle_s_w, cle_s_d, clei_s_b, clei_s_h,
24012 clei_s_w, clei_s_d, cle_u_b, cle_u_h, cle_u_w, cle_u_d, clei_u_b,
24013 clei_u_h, clei_u_w, clei_u_d, ld_b, ld_h, ld_w, ld_d, st_b, st_h,
24014 st_w, st_d, sat_s_b, sat_s_h, sat_s_w, sat_s_d, sat_u_b, sat_u_h,
24015 sat_u_w, sat_u_d, add_a_b, add_a_h, add_a_w, add_a_d, adds_a_b,
24016 adds_a_h, adds_a_w, adds_a_d, adds_s_b, adds_s_h, adds_s_w,
24017 adds_s_d, adds_u_b, adds_u_h, adds_u_w, adds_u_d, ave_s_b,
24018 ave_s_h, ave_s_w, ave_s_d, ave_u_b, ave_u_h, ave_u_w, ave_u_d,
24019 aver_s_b, aver_s_h, aver_s_w, aver_s_d, aver_u_b, aver_u_h,
24020 aver_u_w, aver_u_d, subs_s_b, subs_s_h, subs_s_w, subs_s_d,
24021 subs_u_b, subs_u_h, subs_u_w, subs_u_d, subsuu_s_b, subsuu_s_h,
24022 subsuu_s_w, subsuu_s_d, subsus_u_b, subsus_u_h, subsus_u_w,
24023 subsus_u_d, asub_s_b, asub_s_h, asub_s_w, asub_s_d, asub_u_b,
24024 asub_u_h, asub_u_w, asub_u_d, mulv_b, mulv_h, mulv_w, mulv_d,
24025 maddv_b, maddv_h, maddv_w, maddv_d, msubv_b, msubv_h, msubv_w,
24026 msubv_d, div_s_b, div_s_h, div_s_w, div_s_d, div_u_b, div_u_h,
24027 div_u_w, div_u_d, hadd_s_h, hadd_s_w, hadd_s_d, hadd_u_h,
24028 hadd_u_w, hadd_u_d, hsub_s_h, hsub_s_w, hsub_s_d, hsub_u_h,
24029 hsub_u_w, hsub_u_d, mod_s_b, mod_s_h, mod_s_w, mod_s_d, mod_u_b,
24030 mod_u_h, mod_u_w, mod_u_d, dotp_s_h, dotp_s_w, dotp_s_d,
24031 dotp_u_h, dotp_u_w, dotp_u_d, dpadd_s_h, dpadd_s_w, dpadd_s_d,
24032 dpadd_u_h, dpadd_u_w, dpadd_u_d, dpsub_s_h, dpsub_s_w, dpsub_s_d,
24033 dpsub_u_h, dpsub_u_w, dpsub_u_d, sld_b, sld_h, sld_w, sld_d,
24034 sldi_b, sldi_h, sldi_w, sldi_d, splat_b, splat_h, splat_w,
24035 splat_d, splati_b, splati_h, splati_w, splati_d, pckev_b,
24036 pckev_h, pckev_w, pckev_d, pckod_b, pckod_h, pckod_w, pckod_d,
24037 ilvl_b, ilvl_h, ilvl_w, ilvl_d, ilvr_b, ilvr_h, ilvr_w, ilvr_d,
24038 ilvev_b, ilvev_h, ilvev_w, ilvev_d, ilvod_b, ilvod_h, ilvod_w,
24039 ilvod_d, vshf_b, vshf_h, vshf_w, vshf_d, and_v, andi_b, or_v,
24040 ori_b, nor_v, nori_b, xor_v, xori_b, bmnz_v, bmnzi_b, bmz_v,
24041 bmzi_b, bsel_v, bseli_b, shf_b, shf_h, shf_w, bnz_v, bz_v,
24042 fill_b, fill_h, fill_w, fill_d, pcnt_b, pcnt_h, pcnt_w,
24043 pcnt_d, nloc_b, nloc_h, nloc_w, nloc_d, nlzc_b, nlzc_h, nlzc_w,
24044 nlzc_d, copy_s_b, copy_s_h, copy_s_w, copy_s_d, copy_u_b,
24045 copy_u_h, copy_u_w, copy_u_d, insert_b, insert_h, insert_w,
24046 insert_d, insve_b, insve_h, insve_w, insve_d, bnz_b, bnz_h,
24047 bnz_w, bnz_d, bz_b, bz_h, bz_w, bz_d, ldi_b, ldi_h, ldi_w, ldi_d,
24048 fcaf_w, fcaf_d, fcor_w, fcor_d, fcun_w, fcun_d, fcune_w, fcune_d,
24049 fcueq_w, fcueq_d, fceq_w, fceq_d, fcne_w, fcne_d, fclt_w, fclt_d,
24050 fcult_w, fcult_d, fcle_w, fcle_d, fcule_w, fcule_d, fsaf_w,
24051 fsaf_d, fsor_w, fsor_d, fsun_w, fsun_d, fsune_w, fsune_d,
24052 fsueq_w, fsueq_d, fseq_w, fseq_d, fsne_w, fsne_d, fslt_w,
24053 fslt_d, fsult_w, fsult_d, fsle_w, fsle_d, fsule_w, fsule_d,
24054 fadd_w, fadd_d, fsub_w, fsub_d, fmul_w, fmul_d, fdiv_w, fdiv_d,
24055 fmadd_w, fmadd_d, fmsub_w, fmsub_d, fexp2_w, fexp2_d, fexdo_h,
24056 fexdo_w, ftq_h, ftq_w, fmin_w, fmin_d, fmin_a_w, fmin_a_d,
24057 fmax_w, fmax_d, fmax_a_w, fmax_a_d, mul_q_h, mul_q_w, mulr_q_h,
24058 mulr_q_w, madd_q_h, madd_q_w, maddr_q_h, maddr_q_w, msub_q_h,
24059 msub_q_w, msubr_q_h, msubr_q_w, fclass_w, fclass_d, fsqrt_w,
24060 fsqrt_d, frcp_w, frcp_d, frint_w, frint_d, frsqrt_w, frsqrt_d,
24061 flog2_w, flog2_d, fexupl_w, fexupl_d, fexupr_w, fexupr_d, ffql_w,
24062 ffql_d, ffqr_w, ffqr_d, ftint_s_w, ftint_s_d, ftint_u_w,
24063 ftint_u_d, ftrunc_s_w, ftrunc_s_d, ftrunc_u_w, ftrunc_u_d,
24064 ffint_s_w, ffint_s_d, ffint_u_w, ffint_u_d, ctcmsa, cfcmsa,
24065 move_v builtins.
24066 (mips_get_builtin_decl_index): New array.
24067 (MIPS_ATYPE_QI, MIPS_ATYPE_HI, MIPS_ATYPE_V2DI, MIPS_ATYPE_V4SI)
24068 (MIPS_ATYPE_V8HI, MIPS_ATYPE_V16QI, MIPS_ATYPE_V2DF)
24069 (MIPS_ATYPE_V4SF, MIPS_ATYPE_UV2DI, MIPS_ATYPE_UV4SI)
24070 (MIPS_ATYPE_UV8HI, MIPS_ATYPE_UV16QI): New.
24071 (mips_init_builtins): Initialize mips_get_builtin_decl_index
24072 array.
24073 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
24074 hook.
24075 (mips_expand_builtin_insn): Prepare operands for
24076 CODE_FOR_msa_addvi_b, CODE_FOR_msa_addvi_h, CODE_FOR_msa_addvi_w,
24077 CODE_FOR_msa_addvi_d, CODE_FOR_msa_clti_u_b,
24078 CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w,
24079 CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_u_b,
24080 CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w,
24081 CODE_FOR_msa_clei_u_d, CODE_FOR_msa_maxi_u_b,
24082 CODE_FOR_msa_maxi_u_h, CODE_FOR_msa_maxi_u_w,
24083 CODE_FOR_msa_maxi_u_d, CODE_FOR_msa_mini_u_b,
24084 CODE_FOR_msa_mini_u_h, CODE_FOR_msa_mini_u_w,
24085 CODE_FOR_msa_mini_u_d, CODE_FOR_msa_subvi_b,
24086 CODE_FOR_msa_subvi_h, CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d,
24087 CODE_FOR_msa_ceqi_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w,
24088 CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b,
24089 CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w,
24090 CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clei_s_b,
24091 CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w,
24092 CODE_FOR_msa_clei_s_d, CODE_FOR_msa_maxi_s_b,
24093 CODE_FOR_msa_maxi_s_h, CODE_FOR_msa_maxi_s_w,
24094 CODE_FOR_msa_maxi_s_d, CODE_FOR_msa_mini_s_b,
24095 CODE_FOR_msa_mini_s_h, CODE_FOR_msa_mini_s_w,
24096 CODE_FOR_msa_mini_s_d, CODE_FOR_msa_andi_b, CODE_FOR_msa_ori_b,
24097 CODE_FOR_msa_nori_b, CODE_FOR_msa_xori_b, CODE_FOR_msa_bmzi_b,
24098 CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bseli_b, CODE_FOR_msa_fill_b,
24099 CODE_FOR_msa_fill_h, CODE_FOR_msa_fill_w, CODE_FOR_msa_fill_d,
24100 CODE_FOR_msa_ilvl_b, CODE_FOR_msa_ilvl_h, CODE_FOR_msa_ilvl_w,
24101 CODE_FOR_msa_ilvl_d, CODE_FOR_msa_ilvr_b, CODE_FOR_msa_ilvr_h,
24102 CODE_FOR_msa_ilvr_w, CODE_FOR_msa_ilvr_d, CODE_FOR_msa_ilvev_b,
24103 CODE_FOR_msa_ilvev_h, CODE_FOR_msa_ilvev_w, CODE_FOR_msa_ilvod_b,
24104 CODE_FOR_msa_ilvod_h, CODE_FOR_msa_ilvod_w, CODE_FOR_msa_pckev_b,
24105 CODE_FOR_msa_pckev_h, CODE_FOR_msa_pckev_w, CODE_FOR_msa_pckod_b,
24106 CODE_FOR_msa_pckod_h, CODE_FOR_msa_pckod_w, CODE_FOR_msa_slli_b,
24107 CODE_FOR_msa_slli_h, CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d,
24108 CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w,
24109 CODE_FOR_msa_srai_d, CODE_FOR_msa_srli_b, CODE_FOR_msa_srli_h,
24110 CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d, CODE_FOR_msa_insert_b,
24111 CODE_FOR_msa_insert_h, CODE_FOR_msa_insert_w,
24112 CODE_FOR_msa_insert_d, CODE_FOR_msa_insve_b,
24113 CODE_FOR_msa_insve_h, CODE_FOR_msa_insve_w, CODE_FOR_msa_insve_d,
24114 CODE_FOR_msa_shf_b, CODE_FOR_msa_shf_h, CODE_FOR_msa_shf_w,
24115 CODE_FOR_msa_shf_w_f, CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h,
24116 CODE_FOR_msa_vshf_w, CODE_FOR_msa_vshf_d.
24117 (mips_expand_builtin): Add case for MIPS_BULTIN_MSA_TEST_BRANCH.
24118 (mips_set_compression_mode): Disallow MSA with MIPS16 code.
24119 (mips_option_override): -mmsa requires -mfp64 and -mhard-float.
24120 These are set implicitly and an error is reported if overridden.
24121 (mips_expand_builtin_msa_test_branch): New function.
24122 (mips_expand_msa_shuffle): Likewise.
24123 (MAX_VECT_LEN): Increase maximum length of a vector to 16 bytes.
24124 (TARGET_SCHED_REASSOCIATION_WIDTH): Define target hook.
24125 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Likewise.
24126 (mips_expand_vec_unpack): Add support for MSA.
24127 (mips_expand_vector_init): Likewise.
24128 (mips_expand_vi_constant): Use CONST0_RTX (element_mode)
24129 instead of const0_rtx.
24130 (mips_msa_vec_parallel_const_half): New function.
24131 (mips_gen_const_int_vector): Likewise.
24132 (mips_gen_const_int_vector_shuffle): Likewise.
24133 (mips_expand_msa_cmp): Likewise.
24134 (mips_expand_vec_cond_expr): Likewise.
24135 * config/mips/mips.h
24136 (TARGET_CPU_CPP_BUILTINS): Add __mips_msa and __mips_msa_width.
24137 (OPTION_DEFAULT_SPECS): Ignore --with-fp-32 if -mmsa is
24138 specified.
24139 (ASM_SPEC): Pass mmsa and mno-msa to the assembler.
24140 (ISA_HAS_MSA): New macro.
24141 (UNITS_PER_MSA_REG): Likewise.
24142 (BITS_PER_MSA_REG): Likewise.
24143 (BIGGEST_ALIGNMENT): Redefine using ISA_HAS_MSA.
24144 (MSA_REG_FIRST): New macro.
24145 (MSA_REG_LAST): Likewise.
24146 (MSA_REG_NUM): Likewise.
24147 (MSA_REG_P): Likewise.
24148 (MSA_REG_RTX_P): Likewise.
24149 (MSA_SUPPORTED_MODE_P): Likewise.
24150 (HARD_REGNO_CALL_PART_CLOBBERED): Redefine using TARGET_MSA.
24151 (ADDITIONAL_REGISTER_NAMES): Add named registers $w0-$w31.
24152 * config/mips/mips.md: Include mips-msa.md.
24153 (alu_type): Add simd_add.
24154 (mode): Add V2DI, V4SI, V8HI, V16QI, V2DF, V4SF.
24155 (type): Add simd_div, simd_fclass, simd_flog2, simd_fadd,
24156 simd_fcvt, simd_fmul, simd_fmadd, simd_fdiv, simd_bitins,
24157 simd_bitmov, simd_insert, simd_sld, simd_mul, simd_fcmp,
24158 simd_fexp2, simd_int_arith, simd_bit, simd_shift, simd_splat,
24159 simd_fill, simd_permute, simd_shf, simd_sat, simd_pcnt,
24160 simd_copy, simd_branch, simd_cmsa, simd_fminmax, simd_logic,
24161 simd_move, simd_load, simd_store. Choose "multi" for moves
24162 for "qword_mode".
24163 (qword_mode): New attribute.
24164 (insn_count): Add instruction count for quad moves.
24165 Increase the count for MIPS SIMD division.
24166 (UNITMODE): Add UNITMODEs for vector types.
24167 (addsub): New code iterator.
24168 * config/mips/mips.opt (mmsa): New option.
24169 * config/mips/msa.h: New file.
24170 * config/mips/mti-elf.h: Don't infer -mfpxx if -mmsa is
24171 specified.
24172 * config/mips/mti-linux.h: Likewise.
24173 * config/mips/predicates.md
24174 (const_msa_branch_operand): New constraint.
24175 (const_uimm3_operand): Likewise.
24176 (const_uimm4_operand): Likewise.
24177 (const_uimm5_operand): Likewise.
24178 (const_uimm8_operand): Likewise.
24179 (const_imm5_operand): Likewise.
24180 (aq10b_operand): Likewise.
24181 (aq10h_operand): Likewise.
24182 (aq10w_operand): Likewise.
24183 (aq10d_operand): Likewise.
24184 (const_m1_operand): Likewise.
24185 (reg_or_m1_operand): Likewise.
24186 (const_exp_2_operand): Likewise.
24187 (const_exp_4_operand): Likewise.
24188 (const_exp_8_operand): Likewise.
24189 (const_exp_16_operand): Likewise.
24190 (const_vector_same_val_operand): Likewise.
24191 (const_vector_same_simm5_operand): Likewise.
24192 (const_vector_same_uimm5_operand): Likewise.
24193 (const_vector_same_uimm6_operand): Likewise.
24194 (const_vector_same_uimm8_operand): Likewise.
24195 (par_const_vector_shf_set_operand): Likewise.
24196 (reg_or_vector_same_val_operand): Likewise.
24197 (reg_or_vector_same_simm5_operand): Likewise.
24198 (reg_or_vector_same_uimm6_operand): Likewise.
24199 * doc/extend.texi (MIPS SIMD Architecture Functions): New
24200 section.
24201 * doc/invoke.texi (-mmsa): Document new option.
24202
24203 2016-05-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24204
24205 * configure.ac (enable_vtable_verify): Handle --enable-vtable-verify.
24206 * configure: Regenerate.
24207 * config.in: Regenerate.
24208 * gcc.c (VTABLE_VERIFICATION_SPEC) [!ENABLE_VTABLE_VERIFY]: Error
24209 on -fvtable-verify.
24210 * config/sol2.h [!ENABLE_VTABLE_VERIFY] (STARTFILE_VTV_SPEC): Define.
24211 (ENDFILE_VTV_SPEC): Define.
24212
24213 2016-05-09 Kaushik Phatak <kaushik.phatak@kpit.com>
24214
24215 * config/rl78/rl78.c (rl78_expand_prologue): Save the MDUC related
24216 registers in all interrupt handlers if necessary.
24217 (rl78_option_override): Add warning.
24218 (MUST_SAVE_MDUC_REGISTERS): New macro.
24219 (rl78_expand_epilogue): Restore the MDUC registers if necessary.
24220 * config/rl78/rl78.c (check_mduc_usage): New function.
24221 (mduc_regs): New structure to hold MDUC register data.
24222 * config/rl78/rl78.md (is_g13_muldiv_insn): New attribute.
24223 (mulsi3_g13): Add is_g13_muldiv_insn attribute.
24224 (udivmodsi4_g13): Add is_g13_muldiv_insn attribute.
24225 (mulhi3_g13): Add is_g13_muldiv_insn attribute.
24226 * config/rl78/rl78.opt (msave-mduc-in-interrupts): New option.
24227 * doc/invoke.texi (RL78 Options): Add -msave-mduc-in-interrupts.
24228
24229 2016-05-09 Bin Cheng <bin.cheng@arm.com>
24230
24231 * tree-if-conv.c (tree-ssa-loop.h): Include header file.
24232 (tree-ssa-loop-niter.h): Ditto.
24233 (idx_within_array_bound, ref_within_array_bound): New functions.
24234 (ifcvt_memrefs_wont_trap): Check if array ref is within bound.
24235 Factor out check on writable base object to ...
24236 (base_object_writable): ... here.
24237
24238 2016-05-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24239
24240 * config/arm/arm.md (probe_stack): Add modes to set source
24241 and destination.
24242
24243 2016-05-09 Bernd Schmidt <bschmidt@redhat.com>
24244
24245 * regrename.c (base_reg_class_for_rename): New static function.
24246 (scan_rtx_address, scan_rtx): Use it instead of base_reg_class.
24247
24248 2016-05-08 Jan Hubicka <hubicka@ucw.cz>
24249
24250 * cgraph.c (thunk_adjust): Export.
24251 * cgraphclones.c (cgraph_node::create_clone): Clone thunk info.
24252 * cgraphunit.c (thunk_adjust): Export.
24253 (cgraph_node::assemble_thunks_and_aliases): Do not assemble inlined
24254 thunks.
24255 * ipa-inline-analyssi.c (compute_inline_parameters): Thunks are
24256 inlinable.
24257 * tree-inline.c (expand_call_inline): Expand thunks inline.
24258
24259 2016-05-08 Uros Bizjak <ubizjak@gmail.com>
24260
24261 PR target/70998
24262 * config/i386/sse.md (*sse2_vd_cvtsd2ss): New insn pattern.
24263 (*sse2_vd_cvtss2sd): Ditto.
24264 * config/i386/i386.md
24265 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf splitter):
24266 Generate *sse2_vd_cvtsd2ss pattern.
24267 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df splitter):
24268 Generate *sse2_vd_cvtss2sd pattern.
24269
24270 2016-05-08 Oleg Endo <olegendo@gcc.gnu.org>
24271
24272 * config/sh/sh.h (GET_SH_ARG_CLASS): Convert macro into ...
24273 * config/sh/sh.c (get_sh_arg_class): ... this new function. Update its
24274 users.
24275
24276 2016-05-08 Oleg Endo <olegendo@gcc.gnu.org>
24277
24278 * config/sh/sh-protos.h (sh_media_register_for_return): Remove.
24279 * config/sh/sh.c: Define and declare variables on first use throughout
24280 the file.
24281 (current_function_interrupt): Change to bool type.
24282 (frame_insn): Rename to emit_frame_insn and update users.
24283 (push_regs): Use bool for 'interrupt_handler' argument.
24284 (save_schedule_s): Remove.
24285 (TARGET_ASM_UNALIGNED_DI_OP, TARGET_ASM_ALIGNED_DI_OP): Remove.
24286 (sh_option_override): Don't nullify targetm.asm_out.aligned_op.di and
24287 targetm.asm_out.unaligned_op.di.
24288 (gen_far_branch): Remove redundant forward declaration.
24289 (sh_media_register_for_return, MAX_SAVED_REGS, save_entry_s, save_entry,
24290 MAX_TEMPS, save_schedule_ssave_schedule): Remove.
24291 (sh_set_return_address, sh_function_ok_for_sibcall,
24292 scavenge_reg): Update comments.
24293 (sh_builtin_saveregs): Use TRAGET_FPU_ANY condition.
24294 (sh2a_get_function_vector_number, sh2a_function_vector_p): Use for loop.
24295 (sh_attr_renesas_p): Remove unnecessary parentheses.
24296 (branch_dest): Simplify.
24297 * config/sh/sh.h (sh_args): Remove byref, byref_regs, stack_regs fields.
24298 Change force_mem, prototype_p, outgoing, renesas_abi fields to bool.
24299 (CUMULATIVE_ARGS): Change macro to typedef.
24300 (current_function_interrupt): Change to bool type.
24301 (sh_arg_class, sh_args, CUMULATIVE_ARGS, current_function_interrupt):
24302 Surround with __cplusplus ifdef.
24303 (sh_compare_op0, sh_compare_op1): Remove.
24304 (EPILOGUE_USES): Use TARGET_FPU_ANY condition.
24305
24306 2016-05-07 Jim Wilson <jim.wilson@linaro.org>
24307
24308 * config/arm/arm.md (arch): Add neon.
24309 (arch_enabled): Return yes for arch neon when TARGET_NEON.
24310 * config/arm/vfp.md (movdf_vfp): Add w/G as alternative 3. Add
24311 neon_move as type for alt 3. Add arch attr enabling alt 3 for neon.
24312 Emit vmov.i64 for alt 3. Renumber alternatives 3 to 8. Adjust
24313 attributes for alt renumbering. Mark alt 3 as non-predicable.
24314 (thumb2_movdf_vfp): Likewise.
24315
24316 2016-05-07 Uros Bizjak <ubizjak@gmail.com>
24317
24318 * config/i386/i386.md (*addqi_1): Add preferred_for_speed attribute
24319 to disparage alternatives 3 and 4 for TARGET_PARTIAL_REG_STALL targets.
24320 (*andqi_1): Add preferred_for_speed attribute to disparage
24321 alternative 2 for TARGET_PARTIAL_REG_STALL targets.
24322 (*<code>qi_1): Ditto.
24323 (*one_cmplqi2_1): Add preferred_for_speed attribute to disparage
24324 alternative 1 for TARGET_PARTIAL_REG_STALL targets.
24325 (*ashlqi3_1): Ditto.
24326 (*swap<mode>): Merge from *swap<mode>_1 and *swap<mode>_2 patterns.
24327 Add preferred_for_size attribute to disparage alternative 0 and
24328 preferred_for_speed attribute to disparage alternative 1 for
24329 TARGET_PARTIAL_REG_STALL targets.
24330
24331 2016-05-07 Tom de Vries <tom@codesourcery.com>
24332
24333 PR tree-optimization/70956
24334 * graphite-scop-detection.c (build_cross_bb_scalars_def): Handle NULL
24335 def.
24336
24337 2016-05-07 Oleg Endo <olegendo@gcc.gnu.org>
24338
24339 * config/sh/sh-protos.h (sh_cbranch_distance): Declare new function.
24340 * config/sh/sh.c (sh_cbranch_distance): Implement it.
24341 * config/sh/sh.md (branch_zero): Remove define_attr.
24342 (define_delay): Disable delay slot if branch distance is one insn.
24343
24344 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
24345
24346 * config/i386/i386.md (LEAMODE): New mode attribute.
24347 (plus to LEA splitter): Rewrite splitter using LEAMODE mode attribute.
24348 (ashift to LEA splitter): Rewrte splitter using SWI mode iterator
24349 and LEAMODE mode attribute. Use VOIDmode const_0_to_3_operand as
24350 operand 2 predicate.
24351 (*lea<mode>_general_2): Use VOIDmode for const248_operand.
24352 (*lea<mode>_general_3): Ditto.
24353 (*lea<mode>_general_4): Use VOIDmode for const_0_to_3_operand.
24354
24355 2016-05-06 Jakub Jelinek <jakub@redhat.com>
24356
24357 * genmddump.c (main): Convert argv from char ** to const char **.
24358
24359 2016-05-06 David Malcolm <dmalcolm@redhat.com>
24360
24361 * coretypes.h (OVERRIDE): New macro.
24362 (FINAL): New macro.
24363
24364 2016-05-06 Eric Botcazou <ebotcazou@adacore.com>
24365
24366 * tree-ssa-coalesce.c (gimple_can_coalesce_p): In the optimized case,
24367 allow coalescing if the types are compatible.
24368
24369 2016-05-06 David Malcolm <dmalcolm@redhat.com>
24370
24371 * pass_manager.h (pass_manager::register_pass_name): New method.
24372 (pass_manager::get_pass_by_name): New method.
24373 (pass_manager::create_pass_tab): New method.
24374 (pass_manager::m_name_to_pass_map): New field.
24375 * passes.c (name_to_pass_map): Delete global in favor of field
24376 "m_name_to_pass_map" of pass_manager.
24377 (register_pass_name): Rename from a function to...
24378 (pass_manager::register_pass_name): ...this method, updating
24379 for renaming of global "name_to_pass_map" to field
24380 "m_name_to_pass_map".
24381 (create_pass_tab): Rename from a function to...
24382 (pass_manager::create_pass_tab): ...this method, updating
24383 for renaming of global "name_to_pass_map" to field.
24384 (get_pass_by_name): Rename from a function to...
24385 (pass_manager::get_pass_by_name): ...this method.
24386 (enable_disable_pass): Convert use of get_pass_by_name to
24387 a method call, locating the pass_manager singleton.
24388
24389 2016-05-06 David Malcolm <dmalcolm@redhat.com>
24390
24391 * genattr-common.c (main): Convert argv from char ** to const char **.
24392 * genattr.c (main): Likewise.
24393 * genattrtab.c (main): Likewise.
24394 * genautomata.c (initiate_automaton_gen): Likewise.
24395 (main): Likewise.
24396 * gencodes.c (main): Likewise.
24397 * genconditions.c (main): Likewise.
24398 * genconfig.c (main): Likewise.
24399 * genconstants.c (main): Likewise.
24400 * genemit.c (main): Likewise.
24401 * genenums.c (main): Likewise.
24402 * genextract.c (main): Likewise.
24403 * genflags.c (main): Likewise.
24404 * genmddeps.c (main): Likewise.
24405 * genopinit.c (main): Likewise.
24406 * genoutput.c (main): Likewise.
24407 * genpeep.c (main): Likewise.
24408 * genpreds.c (main): Likewise.
24409 * genrecog.c (main): Likewise.
24410 * gensupport.c (init_rtx_reader_args_cb): Likewise.
24411 (init_rtx_reader_args): Likewise.
24412 * gensupport.h (init_rtx_reader_args_cb): Likewise.
24413 (init_rtx_reader_args): Likewise.
24414 * gentarget-def.c (main): Likewise.
24415 * read-md.c (read_md_files): Likewise.
24416 * read-md.h (read_md_files): Likewise.
24417
24418 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
24419
24420 * config/i386/i386.md (int cmove peephole2s): Use general_reg_operand
24421 instead of register_and_not_any_fp_reg_operand as operand 0 predicate.
24422 * config/i386/predicates.md (register_and_not_any_fp_reg_operand):
24423 Remove unused predicate.
24424 (register_and_not_fp_reg_operand): Ditto.
24425
24426 2016-05-06 Martin Liska <mliska@suse.cz>
24427
24428 * tree-if-conv.c (ifcvt_split_critical_edges): Use auto_vec
24429 instead of vec as the vector is local to the function.
24430
24431 2016-05-06 Jakub Jelinek <jakub@redhat.com>
24432
24433 * config/i386/sse.md (*<code>v8hi3, *<code>v16qi3): Add
24434 avx512bw alternative.
24435
24436 * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>): Move
24437 before the ashr<mode>3 pattern.
24438
24439 * config/i386/sse.md (*avx2_pmaddwd, *sse2_pmaddwd): Use
24440 v instead of x in vex or maybe_vex alternatives, use
24441 maybe_evex instead of vex in prefix.
24442
24443 * config/i386/sse.md (*vec_extractv4sf_0, *sse4_1_extractps,
24444 *vec_extractv4sf_mem, vec_extract_lo_v16hi, vec_extract_hi_v16hi,
24445 vec_extract_lo_v32qi, vec_extract_hi_v32qi): Use v instead of x
24446 in vex or maybe_vex alternatives, use maybe_evex instead of vex
24447 in prefix.
24448
24449 * config/i386/sse.md (*vec_concatv2sf_sse4_1, *vec_concatv4sf): Use
24450 v instead of x in vex or maybe_vex alternatives, use
24451 maybe_evex instead of vex in prefix.
24452
24453 * config/i386/sse.md (sse_shufps_<mode>, sse_storehps, sse_loadhps,
24454 sse_storelps, sse_movss, avx2_vec_dup<mode>, avx2_vec_dupv8sf_1,
24455 sse2_shufpd_<mode>, sse2_storehpd, sse2_storelpd, sse2_loadhpd,
24456 sse2_loadlpd, sse2_movsd): Use v instead of x in vex or maybe_vex
24457 alternatives, use maybe_evex instead of vex in prefix.
24458
24459 * config/i386/sse.md (vec_interleave_lowv4sf,
24460 *vec_interleave_highv2df, *vec_interleave_lowv2df): Use
24461 v instead of x in vex or maybe_vex alternatives, use
24462 maybe_evex instead of vex in prefix.
24463
24464 * config/i386/sse.md (sse_movhlps, sse_movlhps): Use
24465 v instead of x in vex or maybe_vex alternatives, use
24466 maybe_evex instead of vex in prefix.
24467
24468 * config/i386/sse.md (*avx_cvtpd2dq256_2, *avx_cvtps2pd256_2): Use
24469 v constraint instead of x.
24470
24471 2016-05-06 Nathan Sidwell <nathan@codesourcery.com>
24472
24473 * gimple.c (gimple_call_same_target_p): Unique functions are eq.
24474 * tree-ssa-tail-merge.c (same_succ::equal): Check pointer eq
24475 equality first.
24476
24477 2016-05-06 Richard Biener <rguenther@suse.de>
24478
24479 PR tree-optimization/70948
24480 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
24481 Properly clobber all fields of va_list for __builtin_va_start.
24482
24483 2016-05-06 Yuri Rumyantsev <ysrumyan@gmail.com>
24484
24485 PR debug/70935
24486 * tree-ssa-loop-unswitch.c (find_loop_guard): Reject guard edge with
24487 loop latch destination.
24488
24489 2016-05-06 Martin Liska <mliska@suse.cz>
24490
24491 * tree-ssa-uninit.c: Apply manual changes
24492 to the GNU coding style.
24493 (prune_uninit_phi_opnds): Rename from
24494 prune_uninit_phi_opnds_in_unrealizable_paths.
24495
24496 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
24497
24498 * config/sh/sh.opt (madjust-unroll, minvalid-symbols, msoft-atomic,
24499 mspace): Remove deprecated options.
24500 * doc/invoke.texi (SH options): Remove -mspace.
24501
24502 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
24503
24504 * config/sh/sh.md (ic_invalidate_line_sh4a): Fix insn length.
24505
24506 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
24507
24508 * config/sh/sh.md (*cmpeqsi_t): Remove combine insn pattern and similar
24509 corresponding combine split pattern.
24510
24511 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
24512
24513 PR target/58219
24514 * config/sh/predicates.md (long_displacement_mem_operand): New.
24515 * config/sh/sh.md (movsi_i): Allow for SH2A, disallow for any FPU.
24516 Add movi20, movi20s alternatives. Adjust length attribute for
24517 alternatives.
24518 (movsi_ie): Allow for any FPU. Adjust length attribute for
24519 alternatives.
24520 (movsi_i_lowpart): Add movi20, movi20s alternatives. Adjust length
24521 attribute for alternatives.
24522 (*mov<mode>): Use long_displacement_mem_operand for length attribute.
24523 (*movdi_i, movdf_k, movdf_i4, movsf_i, movsf_ie, movsf_ie_ra): Adjust
24524 length attribute for alternatives.
24525
24526 2016-05-06 Richard Biener <rguenther@suse.de>
24527
24528 PR tree-optimization/70960
24529 * tree-if-conv.c (ifcvt_walk_pattern_tree): Handle non-SSA ops.
24530
24531 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
24532
24533 PR target/52933
24534 * config/sh/sh.md (*cmp_div0s_7, *cmp_div0s_8): Add div0s variants.
24535 * config/sh/sh.c (sh_rtx_costs): Add another div0s case.
24536
24537 2016-05-06 Marek Polacek <polacek@redhat.com>
24538
24539 PR sanitizer/70875
24540 * ubsan.c (get_ubsan_type_info_for_type): Remove assert.
24541
24542 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
24543
24544 PR target/54089
24545 * config/sh/sh.md (*rotcr): Add another variant.
24546
24547 2016-05-06 Richard Biener <rguenther@suse.de>
24548
24549 PR middle-end/70931
24550 * dwarf2out.c (native_encode_initializer): Skip zero-sized fields.
24551
24552 2016-05-06 Richard Biener <rguenther@suse.de>
24553
24554 PR middle-end/70941
24555 * fold-const.c (split_tree): Always convert to the original type
24556 before negating.
24557
24558 2016-05-06 Richard Biener <rguenther@suse.de>
24559
24560 * fwprop.c (fwprop): Remove duplicate cleanup_cfg call.
24561 (fwprop_addr): Likewise.
24562
24563 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
24564
24565 PR target/70873
24566 * config/i386/i386-protos.h (ix86_standard_x87sse_constant_load_p):
24567 New prototype.
24568 * config/i386/i386.c (ix86_standard_x87sse_constant_load_p): New.
24569 * config/i386/i386.md (push mem splitter): Use find_constant_src in
24570 the splitter condition.
24571 (FP load splitter): Use ix86_standard_x87sse_constant_load_p in
24572 the splitter condition.
24573 (FP float_extend load splitter): Ditto.
24574
24575 2016-05-05 Uros Bizjak <ubizjak@gmail.com>
24576
24577 * config/i386/i386.md (peehole2 patterns): Change true_regnum
24578 to REGNO in all peephole2 patterns.
24579 (post-reload splitters): Change true_regnum to REGNO in
24580 post-reload splitters.
24581 (zero_extend splitters): Use general_reg_operand and
24582 nonimmediate_gr_operand predicates.
24583
24584 2016-05-05 Jakub Jelinek <jakub@redhat.com>
24585
24586 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>): Use
24587 v constraint instead of x.
24588
24589 2016-05-05 Alan Modra <amodra@gmail.com>
24590
24591 PR target/68662
24592 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't
24593 set OPTION_MASK_RELOCATABLE when flag_pic == 2. Set
24594 TARGET_NO_FP_IN_TOC for -mrelocatable.
24595 (MINIMAL_TOC_SECTION_ASM_OP): Remove redundant
24596 TARGET_RELOCATABLE test.
24597 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
24598 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
24599 * config/rs6000/linux64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
24600 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
24601 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
24602 * config/rs6000/freebsd64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
24603 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
24604 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
24605 * config/rs6000/predicates.md (easy_fp_constant): Likewise.
24606 * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
24607 Likewise.
24608 (rs6000_assemble_integer): Update TARGET_RELOCATABLE test.
24609 (rs6000_stack_info): Likewise.
24610 (rs6000_elf_asm_out_constructor): Likewise.
24611 (rs6000_elf_asm_out_destructor): Likewise.
24612 (rs6000_elf_declare_function_name): Likewise.
24613 * config/rs6000/rs6000.md (load_toc_aix_di): Likewise.
24614 * config/rs6000/rs6000.h (MASK_RELOCATABLE, MASK_MINIMAL_TOC):
24615 Don't define.
24616
24617 2016-05-05 Alan Modra <amodra@gmail.com>
24618
24619 * config/rs6000/rs6000.c (rs6000_frame_related): Rewrite.
24620
24621 2016-05-05 Alan Modra <amodra@gmail.com>
24622
24623 * config/rs6000/rs6000.c (rs6000_savres_strategy): Don't use
24624 out-of-line gpr restore for one or two regs if that would add
24625 a save of lr.
24626
24627 2016-05-04 Uros Bizjak <ubizjak@gmail.com>
24628
24629 PR target/70873
24630 * config/i386/i386.md
24631 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df peephole2):
24632 Change to post-epilogue_completed late splitter. Use sse_reg_operand
24633 as operand 0 predicate.
24634 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf peephole2):
24635 Ditto.
24636 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float {si,di}->{sf,df} peephole2):
24637 Ditto. Emit the pattern using RTX.
24638
24639 (TARGET_USE_VECTOR_FP_CONVERTS float_extend sf->df splitter):
24640 Use sse_reg_opreand as operand 0 predicate. Do not use true_regnum in
24641 the post-reload splitter. Use lowpart_subreg instead of gen_rtx_REG.
24642 (TARGET_USE_VECTOR_FP_CONVERTS float_truncate df->sf splitter):
24643 Ditto.
24644 (TARGET_USE_VECTOR_CONVERTS float si->{sf,df} splitter): Use
24645 sse_reg_operand as operand 0 predicate.
24646
24647 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_extend sf->df peephole2):
24648 Use sse_reg_opreand as operand 0 predicate. Use lowpart_subreg
24649 instead of gen_rtx_REG.
24650 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_truncate sf->df peephole2):
24651 Ditto.
24652
24653 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
24654
24655 * function.c (emit_use_return_register_into_block): Delete.
24656 (gen_return_pattern): Delete.
24657 (emit_return_into_block): Delete.
24658 (active_insn_between): Delete.
24659 (convert_jumps_to_returns): Delete.
24660 (emit_return_for_exit): Delete.
24661 (thread_prologue_and_epilogue_insns): Delete all code dealing with
24662 simple_return for shrink-wrapped blocks.
24663 * shrink-wrap.c (try_shrink_wrapping): Insert simple_return at the
24664 end of blocks that need one.
24665 (get_unconverted_simple_return): Delete.
24666 (convert_to_simple_return): Delete.
24667 * shrink-wrap.c (get_unconverted_simple_return): Delete declaration.
24668 (convert_to_simple_return): Ditto.
24669
24670 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
24671
24672 * cfgcleanup.c (bb_is_just_return): New function.
24673 (try_optimize_cfg): Simplify jumps to return, branches to return,
24674 and branches around return.
24675
24676 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
24677
24678 * cfgcleanup.c (try_simplify_condjump): Don't try to simplify a
24679 branch to a return.
24680
24681 2016-05-04 Jakub Jelinek <jakub@redhat.com>
24682
24683 PR c++/70906
24684 PR c++/70933
24685 * tree-core.h (enum operand_equal_flag): Add OEP_HASH_CHECK.
24686 * tree.c (inchash::add_expr): If !IS_EXPR_CODE_CLASS (tclass),
24687 assert flags & OEP_HASH_CHECK, instead of asserting it
24688 never happens. Handle TARGET_EXPR.
24689 * fold-const.c (operand_equal_p): For hash verification,
24690 or in OEP_HASH_CHECK into flags.
24691
24692 2016-05-04 Eric Botcazou <ebotcazou@adacore.com>
24693
24694 * tree-ssa-coalesce.c (gimple_can_coalesce_p): Fix reference in head
24695 comment.
24696 (compute_samebase_partition_bases): Fix typo.
24697
24698 2016-05-04 Jakub Jelinek <jakub@redhat.com>
24699
24700 * config/i386/sse.md (vec_interleave_highv8sf,
24701 vec_interleave_lowv8sf, vec_interleave_highv4df,
24702 vec_interleave_lowv4df): Remove constraints from expanders.
24703
24704 * config/i386/sse.md (sse2_movq128): Use v constraint instead of x.
24705
24706 2016-05-04 Jan Hubicka <hubicka@ucw.cz>
24707
24708 * tree-inline.c (expand_call_inline): Fix path dealing with
24709 making lhs of call statement undefined.
24710
24711 2016-05-04 Jan Hubicka <hubicka@ucw.cz>
24712
24713 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
24714 Check availability on NODE, too.
24715 * cgraph.h (symtab_node::call_for_symbol_and_aliases): Likewise.
24716 (cgraph_node::call_for_symbol_and_aliases): Likewise.
24717 (varpool_node::call_for_symbol_and_aliase): Likewise.
24718 * ipa-pure-const.c (add_new_function): Analyze all bodies.
24719 (propagate_pure_const): Propagate across interposable functions, too.
24720 (skip_function_for_local_pure_const): Do not skip interposable bodies
24721 with aliases.
24722 (pass_local_pure_const::execute): Update.
24723
24724 2016-05-04 Marek Polacek <polacek@redhat.com>
24725
24726 * doc/invoke.texi: Document -Wdangling-else.
24727
24728 2016-05-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
24729
24730 * config.gcc: Error out when conflicting multilib is detected. Do not
24731 loop over multilibs since no combination is legal.
24732
24733 2016-05-04 Alan Modra <amodra@gmail.com>
24734
24735 * config/rs6000/rs6000.h (PIC_OFFSET_TABLE_REGNUM): Correct.
24736 * config/rs6000/sysv4.h (TARGET_TOC): Simplify.
24737 * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
24738 Align .toc.
24739
24740 2016-05-04 Matthew Fortune <matthew.fortune@imgtec.com>
24741
24742 * config/mips/mips-cpus.def (p5600): Avoid IMADD by default.
24743 Clean up p5600 comments.
24744
24745 2016-05-04 Richard Biener <rguenther@suse.de>
24746
24747 * match.pd: Add BIT_FIELD_REF canonicalizations and vector
24748 constructor simplifications.
24749 * fold-const.c (fold_ternary_loc): Remove duplicate functionality here.
24750
24751 2016-05-04 Oleg Endo <olegendo@gcc.gnu.org>
24752
24753 * config/sh/predicates (post_inc_mem, pre_dec_mem): New predicates.
24754 * config/sh/sh-protos.h (sh_find_set_of_reg): Return null result if
24755 result.set_rtx is null instead of aborting.
24756 * config/sh/sh.h (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT):
24757 Always enable.
24758 (USE_LOAD_PRE_DECREMENT, USE_STORE_POST_INCREMENT): Enable for SH2A.
24759 * config/sh/sh.md (*extend<mode>si2_predec, *mov<mode>_load_predec,
24760 *mov<mode>_store_postinc): New patterns.
24761
24762 2016-05-04 Marc Glisse <marc.glisse@inria.fr>
24763
24764 * match.pd ((A | B) & (A | C)): Generalize to BIT_XOR_EXPR. Mark
24765 as commutative. Check both conversions are NOP.
24766 ((A & B) OP (C & B)): Remove.
24767
24768 2016-05-04 Alan Modra <amodra@gmail.com>
24769
24770 * combine.c (simplify_set): Correct WORD_REGISTER_OPERATIONS test.
24771
24772 2016-05-04 Alan Modra <amodra@gmail.com>
24773
24774 PR target/70866
24775 * config/rs6000/rs6000.c (rs6000_stack_info): Don't set cr_save_p
24776 when cr2,3,4 are all fixed regs.
24777
24778 2016-05-04 Bernd Schmidt <bschmidt@redhat.com>
24779
24780 PR rtl-optimization/57193
24781 * opts.c (default_options_table): Revert OPT_frename_registers change.
24782 * doc/invoke.texi (-frename-registers, -O2): Likewise.
24783
24784 2016-05-03 Martin Sebor <msebor@redhat.com>
24785
24786 PR c++/66561
24787 * builtins.c (fold_builtin_FILE): New function.
24788 (fold_builtin_FUNCTION, fold_builtin_LINE): New functions.
24789 (fold_builtin_0): Call them.
24790 * gimplify.c (gimplify_call_expr): Remove the handling of
24791 BUILT_IN_FILE, BUILT_IN_FUNCTION, and BUILT_IN_LINE.
24792
24793 PR c++/66561
24794 * doc/extend.texi (Other Builtins): Update __builtin_FILE,
24795 __builtin_FUNCTION, and __builtin_LINE to reflect they yield
24796 constants.
24797
24798 PR c++/66639
24799 * doc/extend.texi (Function Names as Strings): Update __func__,
24800 __FUNCTION__, __PRETTY_FUNCTION__ to reflect they evaluate to
24801 constants.
24802
24803 2016-05-03 Jakub Jelinek <jakub@redhat.com>
24804 Richard Biener <rguenther@suse.de>
24805
24806 PR tree-optimization/70916
24807 * tree-if-conv.c: Include cfganal.h.
24808 (pass_if_conversion::execute): Call connect_infinite_loops_to_exit
24809 and remove_fake_exit_edges around the optimization pass.
24810
24811 2016-05-03 Jan Hubicka <hubicka@ucw.cz>
24812
24813 * cgraph.c (symbol_table::create_edge): Set inline_failed.
24814 (cgraph_edge::make_direct): Likewise.
24815 (cgraph_edge::dump_edge_flags): Dump call_stmt_cannot_inline_p.
24816 * cgraphclones.c (duplicate_thunk_for_node): Set inline_failed.
24817 * cif-code.def (CIF_LTO_MISMATCHED_DECLARATIONS): New code
24818 (CIF_THUNK): New code.
24819 * ipa-inline-analysis.c (initialize_inline_failed): Preserve
24820 CIF_FINAL_ERROR codes; do not deal with call_stmt_cannot_inline_p.
24821 (compute_inline_parameters): Set inline_failed for thunks.
24822 (inline_analyze_function): Cleanup.
24823 * ipa-inline.c (can_inline_edge_p): Do not deal with
24824 call_stmt_cannot_inline_p.
24825 (can_early_inline_edge_p): Likewise.
24826 (early_inliner): Initialize inline_failed.
24827 * lto-cgraph.c (lto_output_edge): Sanity check inline_failed.
24828
24829 2016-05-03 Uros Bizjak <ubizjak@gmail.com>
24830
24831 * config/i386/predicates.md (x87nonimm_ssenomem_operand): Rename
24832 from nonimm_ssenomem_operand.
24833 (nonimm_ssenomem_operand): New predicate.
24834 * config/i386/i386.md (extendsfdf2): Use nonimm_ssenomem_operand
24835 as operand 0 predicate.
24836 (*extendsfdf2): Merge from *extendsfdf2_mixed and *extendsfdf2_i387.
24837 Disable unsupported alternatives using "enabled" attribute.
24838 Use register_ssemem_operand as operand 0 predicate.
24839 (*fop_<mode>_1): Use x87nonimm_ssenomem_operand as operand 1 predicate.
24840
24841 2016-05-03 Marek Polacek <polacek@redhat.com>
24842
24843 PR c/70859
24844 * input.c (expansion_point_location): New function.
24845 * input.h (expansion_point_location): Declare.
24846
24847 2016-05-03 Pierre-Marie de Rodat <derodat@adacore.com>
24848
24849 * dwarf2out.c (resolve_args_picking_1): Replace the frame_offset
24850 occurence with frame_offset_ ones.
24851
24852 2016-05-03 Alan Modra <amodra@gmail.com>
24853
24854 PR rtl-optimization/70890
24855 * ira.c (combine_and_move_insns): When moving def_insn, remove
24856 equivs on use_insn.
24857
24858 2016-05-03 Dominik Vogt <vogt@linux.vnet.ibm.com>
24859
24860 * config/s390/s390.md ("*r<noxa>sbg_<mode>_sll")
24861 ("*r<noxa>sbg_<mode>_srl"): New define_insns.
24862 ("*r<noxa>sbg_<mode>_srl_bitmask"): Rename by adding "_bitmask".
24863 ("*r<noxa>sbg_<mode>_sll_bitmask"): Likewise.
24864
24865 2016-05-03 Alan Modra <amodra@gmail.com>
24866
24867 * config/rs6000/rs6000.c (rs6000_savres_strategy): Correct condition
24868 for SAVE_MULTIPLE/STORE_MULTIPLE.
24869
24870 2016-05-03 Jakub Jelinek <jakub@redhat.com>
24871
24872 * config/i386/i386.md (*truncdfsf_mixed, *truncdfsf_i387,
24873 *truncxfsf2_mixed, *truncxfdf2_mixed): Use v constraint instead of x.
24874
24875 2016-05-03 Richard Biener <rguenther@suse.de>
24876
24877 * gimplify.h (get_initialized_tmp_var): Add allow_ssa parameter
24878 default true.
24879 (gimplify_arg): Likewise.
24880 * gimplify.c (gimplify_expr): Add overload with allow_ssa parameter,
24881 re-writing the result to a decl if required.
24882 (internal_get_tmp_var): Add allow_ssa parameter
24883 and override into_ssa with it.
24884 (get_formal_tmp_var): Adjust.
24885 (get_initialized_tmp_var): Add allow_ssa parameter.
24886 (gimplify_arg): Add allow_ssa parameter and avoid generating
24887 SSA names for the result false.
24888 (gimplify_call_expr): If the call may return twice do not
24889 gimplify parameters into SSA.
24890 (prepare_gimple_addressable): Do not allow an SSA name as temporary.
24891 (gimplify_modify_expr): Adjust assert. For noreturn calls
24892 with a SSA name LHS adjust its def.
24893 (gimplify_save_expr): Do not allow an SSA name as save-expr result.
24894 (gimplify_one_sizepos): Do not allow an SSA name as a sizepos.
24895 (gimplify_body): Init GIMPLE SSA data structures and gimplify into-SSA.
24896 (gimplify_scan_omp_clauses): Make sure OMP_CLAUSE_SIZE is not
24897 an SSA name. Likewise for OMP_CLAUSE_REDUCTION operands.
24898 (gimplify_omp_for): Likewise for OMP_CLAUSE_DECL. Likewise
24899 for OMP_FOR_COND, OMP_FOR_INCR and OMP_CLAUSE_LINEAR_STEP.
24900 (optimize_target_teams): Do not allow SSA names for clause operands.
24901 (gimplify_expr): Likewise for where we mark the result addressable.
24902 * passes.def (pass_init_datastructures): Remove.
24903 * tree-into-ssa.c (mark_def_sites): Ignore existing SSA names.
24904 (rewrite_stmt): Likewise.
24905 * tree-inline.c (initialize_cfun): Properly transfer SSA state.
24906 (replace_locals_op): Replace SSA names.
24907 (copy_gimple_seq_and_replace_locals): Init src_cfun.
24908 * gimple-low.c (lower_builtin_setjmp): Deal with SSA.
24909 * cgraph.c (release_function_body): Free CFG annotations only
24910 when we have a CFG. Simplify.
24911 * gimple-fold.c (gimplify_and_update_call_from_tree): Use
24912 force_gimple_operand instead of get_initialized_tmp_var.
24913 * tree-pass.h (make_pass_init_datastructures): Remove.
24914 * tree-ssa.c (execute_init_datastructures): Remove.
24915 (pass_data_init_datastructures): Likewise.
24916 (class pass_init_datastructures): Likewise.
24917 (make_pass_init_datastructures): Likewise.
24918 * omp-low.c (create_omp_child_function): Init SSA data structures.
24919 (grid_expand_target_grid_body): Likewise.
24920 * tree-cfg.c (move_block_to_fn): Double-check the DEF is an SSA
24921 name before adding it to names_to_release.
24922 (remove_bb): Always release SSA defs.
24923 * tree-ssa-ccp.c (get_default_value): Check SSA_NAME_VAR
24924 before dereferencing it.
24925 * cgraphunit.c (init_lowered_empty_function): Always
24926 int SSA data structures.
24927 * tree-ssanames.c (release_defs): Remove assert that we are in
24928 SSA form.
24929 * trans-mem.c (diagnose_tm_1): Handle SSA name function.
24930
24931 2016-05-03 Jakub Jelinek <jakub@redhat.com>
24932 Uros Bizjak <ubizjak@gmail.com>
24933
24934 PR rtl-optimization/70467
24935 * config/i386/predicates.md (x86_64_hilo_int_operand,
24936 x86_64_hilo_general_operand): New predicates.
24937 * config/i386/constraints.md (Wd): New constraint.
24938 * config/i386/i386.md (mode attr di): Use Wd instead of e.
24939 (general_hilo_operand): New mode attr.
24940 (add<mode>3, sub<mode>3): Use <general_hilo_operand>
24941 instead of <general_operand>.
24942 (*add<dwi>3_doubleword, *sub<dwi>3_doubleword): Use
24943 x86_64_hilo_general_operand instead of <general_operand>.
24944
24945 2016-05-03 Jakub Jelinek <jakub@redhat.com>
24946
24947 PR tree-optimization/70916
24948 * tree-if-conv.c (constant_or_ssa_name): Removed.
24949 (fold_build_cond_expr): Use is_gimple_val instead of
24950 constant_or_ssa_name.
24951
24952 PR tree-optimization/70916
24953 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Give up
24954 if COND_EXPR rhs1 is neither SSA_NAME nor COMPARISON_CLASS_P.
24955
24956 PR target/49244
24957 * tree-ssa-ccp.c: Include stor-layout.h and optabs-query.h.
24958 (optimize_atomic_bit_test_and): New function.
24959 (pass_fold_builtins::execute): Use it.
24960 * optabs.def (atomic_bit_test_and_set_optab,
24961 atomic_bit_test_and_complement_optab,
24962 atomic_bit_test_and_reset_optab): New optabs.
24963 * internal-fn.def (ATOMIC_BIT_TEST_AND_SET,
24964 ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_BIT_TEST_AND_RESET): New ifns.
24965 * builtins.h (expand_ifn_atomic_bit_test_and): New prototype.
24966 * builtins.c (expand_ifn_atomic_bit_test_and): New function.
24967 * internal-fn.c (expand_ATOMIC_BIT_TEST_AND_SET,
24968 expand_ATOMIC_BIT_TEST_AND_COMPLEMENT,
24969 expand_ATOMIC_BIT_TEST_AND_RESET): New functions.
24970 * doc/md.texi (atomic_bit_test_and_set@var{mode},
24971 atomic_bit_test_and_complement@var{mode},
24972 atomic_bit_test_and_reset@var{mode}): Document.
24973 * config/i386/sync.md (atomic_bit_test_and_set<mode>,
24974 atomic_bit_test_and_complement<mode>,
24975 atomic_bit_test_and_reset<mode>): New expanders.
24976 (atomic_bit_test_and_set<mode>_1,
24977 atomic_bit_test_and_complement<mode>_1,
24978 atomic_bit_test_and_reset<mode>_1): New insns.
24979
24980 2016-05-03 Richard Sandiford <richard.sandiford@arm.com>
24981
24982 PR rtl-optimization/70687
24983 * combine.c (change_zero_ext): Check for scalar modes. Use wide_int
24984 instead of unsigned HOST_WIDE_INT.
24985
24986 2016-05-03 Bernd Schmidt <bschmidt@redhat.com>
24987
24988 PR rtl-optimization/44281
24989 * hard-reg-set.h (struct target_hard_regs): New field
24990 x_fixed_nonglobal_reg_set.
24991 (fixed_nonglobal_reg_set): New macro.
24992 * reginfo.c (init_reg_sets_1): Initialize it.
24993 * ira.c (setup_alloc_regs): Use fixed_nonglobal_reg_set instead
24994 of fixed_reg_set.
24995 * df-scan.c (df_insn_refs_collect): Asms may reference global regs.
24996
24997 2016-05-03 Bin Cheng <bin.cheng@arm.com>
24998
24999 PR tree-optimization/56541
25000 * doc/invoke.texi (@item max-tree-if-conversion-phi-args): New item.
25001 * params.def (PARAM_MAX_TREE_IF_CONVERSION_PHI_ARGS): new param.
25002 * tree-if-conv.c (MAX_PHI_ARG_NUM): new macro.
25003 (any_complicated_phi): new static variable.
25004 (aggressive_if_conv): delete.
25005 (if_convertible_phi_p): support phis with more than two arguments.
25006 (if_convertible_bb_p): remvoe check on aggressive_if_conv and
25007 critical pred edges.
25008 (ifcvt_split_critical_edges): support phis with more than two
25009 arguments by checking new parameter. only split critical edges
25010 if needed.
25011 (tree_if_conversion): handle simd pragma marked loop using new
25012 local variable aggressive_if_conv. check any_complicated_phi.
25013
25014 2016-05-03 Bin Cheng <bin.cheng@arm.com>
25015
25016 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check depends_on
25017 before using it.
25018
25019 2016-05-03 Bin Cheng <bin.cheng@arm.com>
25020
25021 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Don't clobber
25022 cbase.
25023
25024 2016-05-03 Oleg Endo <olegendo@gcc.gnu.org>
25025
25026 * config/sh/sh.md (udivsi3, divsi3, mulsi3): Simplify.
25027 (mulhisi3, umulhisi3, (smulsi3_highpart, umulsi3_highpart): Convert to
25028 define_insn_and_split.
25029 (mulsi3_i): New define_insn_and_split.
25030 (mulsi3_call): Convert to define_insn.
25031 (mulsidi3, mulsidi3_compact, umulsidi3, umulsidi3_compact):
25032 Remove constraints.
25033
25034 2016-05-02 Michael Meissner <meissner@linux.vnet.ibm.com>
25035
25036 * machmode.h (mode_complex): Add support to give the complex mode
25037 for a given mode.
25038 (GET_MODE_COMPLEX_MODE): Likewise.
25039 * stor-layout.c (layout_type): For COMPLEX_TYPE, use the mode
25040 stored by build_complex_type and gfc_build_complex_type instead of
25041 trying to figure out the appropriate mode based on the size. Raise
25042 an assertion error, if the type was not set.
25043 * genmodes.c (struct mode_data): Add field for the complex type of
25044 the given type.
25045 (blank_mode): Likewise.
25046 (make_complex_modes): Remember the complex mode created in the
25047 base type.
25048 (emit_mode_complex): Write out the mode_complex array to map a
25049 type mode to the complex version.
25050 (emit_insn_modes_c): Likewise.
25051 * tree.c (build_complex_type): Set the complex type to use before
25052 calling layout_type.
25053 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Add
25054 support for __float128 complex datatypes.
25055 (rs6000_hard_regno_mode_ok): Likewise.
25056 (rs6000_setup_reg_addr_masks): Likewise.
25057 (rs6000_complex_function_value): Likewise.
25058 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): Likewise.
25059 __float128 and __ibm128 complex.
25060 (FLOAT128_IBM_P): Likewise.
25061 (ALTIVEC_ARG_MAX_RETURN): Likewise.
25062 * doc/extend.texi (Additional Floating Types): Document that
25063 -mfloat128 must be used to enable __float128. Document complex
25064 __float128 and __ibm128 support.
25065
25066 2016-05-02 Jakub Jelinek <jakub@redhat.com>
25067
25068 PR target/49244
25069 * gimple.c (gimple_builtin_call_types_compatible_p): Allow
25070 char/short arguments promoted to int because of promote_prototypes.
25071
25072 2016-05-02 Uros Bizjak <ubizjak@gmail.com>
25073
25074 * config/i386/predicates.md (register_ssemem_operand): New predicate.
25075 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>): Merge from
25076 *cmpi<FPCMP:unord><MODEF:mode>_mixed and
25077 *cmpi<FPCMP:unord><X87MODEF:mode>_i387. Disable unsupported
25078 alternatives using "enabled" attribute. Use register_ssemem_operand
25079 as operand 1 predicate.
25080 (*cmpi<unord>xf_i387): Split XFmode pattern from
25081 *cmpi<FPCMP:unord><X87MODEF:mode>_i387.
25082 (*absneg<mode>2): Merge from *absneg<mode>2_mixed and
25083 *absneg<mode>2_i387. Disable unsupported alternatives using
25084 "enabled" attribute.
25085 (*absnegxf2_i387): Split XFmode pattern from *absneg<mode>2_i387.
25086
25087 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
25088
25089 * omp-low.c (lower_oacc_head_tail): Assert there is at least one
25090 marker.
25091 (oacc_loop_process): Check mask for loop termination.
25092
25093 2016-05-02 Jan Hubicka <hubicka@ucw.cz>
25094
25095 * cif-code.def (CIF_THUNK): Add.
25096 * ipa-inline-analsysis.c (evaluate_conditions_for_known_args): Revert
25097 accidental change.
25098
25099 2016-05-02 Jan Hubicka <hubicka@ucw.cz>
25100
25101 * ipa-inline-analysis.c (reset_inline_summary): Clear fp_expressions
25102 (dump_inline_summary): Dump it.
25103 (fp_expression_p): New predicate.
25104 (estimate_function_body_sizes): Use it.
25105 (inline_merge_summary): Merge fp_expressions.
25106 (inline_read_section): Read fp_expressions.
25107 (inline_write_summary): Write fp_expressions.
25108 * ipa-inline.c (can_inline_edge_p): Permit inlining across fp math
25109 codegen boundary if either caller or callee is !fp_expressions.
25110 * ipa-inline.h (inline_summary): Add fp_expressions.
25111 * ipa-inline-transform.c (inline_call): When inlining !fp_expressions
25112 to fp_expressions be sure the fp generation flags are updated.
25113
25114 2016-05-02 Jakub Jelinek <jakub@redhat.com>
25115
25116 PR rtl-optimization/70467
25117 * cse.c (cse_insn): Handle no-op MEM moves after folding.
25118
25119 PR rtl-optimization/70467
25120 * ipa-pure-const.c (check_call): Handle internal calls even in
25121 ipa mode like in local mode.
25122
25123 2016-05-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
25124
25125 * doc/install.texi: Document supported in-tree gmp/mpfr/mpc versions.
25126
25127 2016-05-02 Marc Glisse <marc.glisse@inria.fr>
25128
25129 * match.pd (X u< X, X u> X): New transformations.
25130
25131 2016-05-02 Marc Glisse <marc.glisse@inria.fr>
25132
25133 * flag-types.h (enum warn_strict_overflow_code): Move ...
25134 * coretypes.h: ... here.
25135 * fold-const.h (fold_overflow_warning): Declare.
25136 * fold-const.c (fold_overflow_warning): Make non-static.
25137 (fold_comparison): Move the transformation of X +- C1 CMP C2
25138 into X CMP C2 -+ C1 ...
25139 * match.pd: ... here.
25140 * gimple-fold.c (fold_stmt_1): Protect with
25141 fold_defer_overflow_warnings.
25142
25143 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
25144
25145 * omp-low.c (struct oacc_loop): Add 'inner' field.
25146 (new_oacc_loop_raw): Initialize it to zero.
25147 (oacc_loop_fixed_partitions): Initialize it.
25148 (oacc_loop_auto_partitions): Partition outermost loop to outermost
25149 available partitioning.
25150
25151 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
25152
25153 * config/arc/arc.md (mulsidi3): Change operand 0 predicate to
25154 register_operand.
25155 (umulsidi3): Likewise.
25156 (indirect_jump): Fix jump instruction assembly patterns.
25157
25158 2016-05-02 Thomas Schwinge <thomas@codesourcery.com>
25159
25160 PR target/70860
25161 * config/nvptx/nvptx.c (nvptx_libcall_value): Handle NULL cfun.
25162 (nvptx_function_value): Assert non-NULL cfun.
25163
25164 2016-05-02 Eric Botcazou <ebotcazou@adacore.com>
25165
25166 PR rtl-optimization/70886
25167 * sched-deps.c (estimate_dep_weak): Canonicalize cselib values.
25168
25169 * cselib.h (rtx_equal_for_cselib_1): Declare.
25170 (rtx_equal_for_cselib_p: New inline function.
25171 * cselib.c (rtx_equal_for_cselib_p): Delete.
25172 (rtx_equal_for_cselib_1): Make public.
25173
25174 2016-05-02 Uros Bizjak <ubizjak@gmail.com>
25175
25176 * config/i386/predicates.md (nonimm_ssenomem_operand): New predicate.
25177 (register_mixssei387nonimm_operand): Remove predicate.
25178 * config/i386/i386.md (*fop_<mode>_comm): Merge from
25179 *fop_<mode>_comm_mixed and *fop_<mode>_comm_i387. Disable unsupported
25180 alternatives using "enabled" attribute. Also check X87_ENABLE_ARITH
25181 for TARGET_MIX_SSE_I387 alternatives.
25182 (*fop_<mode>_1): Merge from *fop_<mode>_1_mixed and *fop_<mode>_1_i387.
25183 Disable unsupported alternatives using "enabled" attribute. Use
25184 nonimm_ssenomem_operand as operand 1 predicate. Also check
25185 X87_ENABLE_ARITH for TARGET_MIX_SSE_I387 alternatives.
25186
25187 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
25188
25189 * tree.c (cst_and_fits_in_hwi): Simplify.
25190
25191 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
25192
25193 * tree.h (wi::to_wide): New function.
25194 * expr.c (expand_expr_real_1): Use wi::to_wide.
25195 * fold-const.c (int_const_binop_1): Likewise.
25196 (extract_muldiv_1): Likewise.
25197
25198 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
25199
25200 * wide-int.h: Update offset_int and widest_int documentation.
25201 (WI_SIGNED_SHIFT_RESULT): New macro.
25202 (wi::binary_shift): Define signed_shift_result_type for
25203 shifts on offset_int- and widest_int-like types.
25204 (generic_wide_int): Support <<= and >>= if << and >> are supported.
25205 * tree.h (int_bit_position): Use shift operators instead of wi::
25206 shifts.
25207 * alias.c (adjust_offset_for_component_ref): Likewise.
25208 * expr.c (get_inner_reference): Likewise.
25209 * fold-const.c (fold_comparison): Likewise.
25210 * gimple-fold.c (fold_nonarray_ctor_reference): Likewise.
25211 * gimple-ssa-strength-reduction.c (restructure_reference): Likewise.
25212 * tree-dfa.c (get_ref_base_and_extent): Likewise.
25213 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
25214 (stmt_kills_ref_p): Likewise.
25215 * tree-ssa-ccp.c (bit_value_binop_1): Likewise.
25216 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Likewise.
25217 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
25218 (ao_ref_init_from_vn_reference): Likewise.
25219
25220 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
25221
25222 * wide-int.h: Update offset_int and widest_int documentation.
25223 (WI_SIGNED_BINARY_PREDICATE_RESULT): New macro.
25224 (wi::binary_traits): Allow ordered comparisons between offset_int and
25225 offset_int, between widest_int and widest_int, and between either
25226 of these types and basic C types.
25227 (operator <, <=, >, >=): Define for the same combinations.
25228 * tree.h (tree_int_cst_lt): Use comparison operators instead
25229 of wi:: comparisons.
25230 (tree_int_cst_le): Likewise.
25231 * gimple-fold.c (fold_array_ctor_reference): Likewise.
25232 (fold_nonarray_ctor_reference): Likewise.
25233 * gimple-ssa-strength-reduction.c (record_increment): Likewise.
25234 * tree-affine.c (aff_comb_cannot_overlap_p): Likewise.
25235 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Likewise.
25236 * tree-sra.c (completely_scalarize): Likewise.
25237 * tree-ssa-alias.c (stmt_kills_ref_p): Likewise.
25238 * tree-ssa-reassoc.c (extract_bit_test_mask): Likewise.
25239 * tree-vrp.c (extract_range_from_binary_expr_1): Likewise.
25240 (check_for_binary_op_overflow): Likewise.
25241 (search_for_addr_array): Likewise.
25242 * ubsan.c (ubsan_expand_objsize_ifn): Likewise.
25243
25244 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
25245
25246 * config/arc/arc.c (arc_preferred_simd_mode): Remove enum keyword.
25247 (arc_save_restore): Likewise.
25248 (arc_dwarf_register_span): Likewise.
25249 (arc_output_pic_addr_const): Initialize suffix variable.
25250
25251 2016-05-02 Martin Liska <mliska@suse.cz>
25252
25253 * symbol-summary.h (function_summary::function_summary):
25254 Remove checking assert for all cgraph nodes.
25255 (function_summary::get): Check summary_uid.
25256 (symtab_insertion): Check summary_uid.
25257
25258 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
25259
25260 * config/arc/arc-protos.h (compact_memory_operand_p): Declare.
25261 * config/arc/arc.c (arc_output_commutative_cond_exec): Consider
25262 bmaskn instruction.
25263 (arc_dwarf_register_span): Remove enum keyword.
25264 (compact_memory_operand_p): New function.
25265 * config/arc/arc.h (reg_class): Add code density register classes.
25266 (REG_CLASS_NAMES): Likewise.
25267 (REG_CLASS_CONTENTS): Likewise.
25268 * config/arc/arc.md (*movqi_insn): Add code density instructions.
25269 (*movhi_insn, *movsi_insn, *movsf_insn): Likewise.
25270 (*extendhisi2_i, andsi3_i, cmpsi_cc_insn_mixed): Likewise.
25271 (*cmpsi_cc_c_insn, *movsi_ne): Likewise.
25272 * config/arc/constraints.md (C2p, Uts, Cm1, Cm3, Ucd): New
25273 constraints.
25274 (h, Rcd, Rsd, Rzd): New register constraints.
25275 (T): Use compact_memory_operand_p function.
25276 * config/arc/predicates.md (compact_load_memory_operand): Remove.
25277
25278 2016-05-02 Oleg Endo <olegendo@gcc.gnu.org>
25279
25280 * config/sh/sh.md (*negnegt, *movtt): Remove.
25281
25282 2016-05-02 Marek Polacek <polacek@redhat.com>
25283 Tom de Vries <tom@codesourcery.com>
25284
25285 PR tree-optimization/70700
25286 * tree-ssa-structalias.c (dump_pred_graph): Fix getting varinfo for ids
25287 bigger than FIRST_REF_NODE.
25288
25289 2016-05-02 Oleg Endo <olegendo@gcc.gnu.org>
25290
25291 PR target/52898
25292 * config/sh/sh.c (sh_option_override): Remove TARGET_CBRANCHDI4,
25293 TARGET_CMPEQDI_T.
25294 (prepare_cbranch_operands): Don't use scratch register. Assume that
25295 function is used when pseudos can be created.
25296 (expand_cbranchdi4): Likewise. Remove unused TARGET_CMPEQDI_T paths.
25297 * config/sh/sh.md (cbranchsi4): Allow only when pseudos can be created.
25298 (cbranchdi4, cbranchdi4_i): Simplify to single cbranchdi4
25299 define_expand. Allow it only when pseudos can be created.
25300 * config/sh/sh.opt (mcbranchdi, mcmpeqdi): Delete.
25301
25302 2016-05-01 Uros Bizjak <ubizjak@gmail.com>
25303
25304 * config/i386/constraints.md (BC): Only allow -1 operands.
25305 * config/i386/sse.md (mov<mode>_internal): Add (v,C) alternative.
25306 Add "enabled" attribute. Update XI mode attribute calculation.
25307 * config/i386/i386.md (*movxi_internal_avx512f): Add (v,C) alternative.
25308 (*movoi_internal_avx): Update XI mode attribute calculation.
25309 (*movti_internal): Ditto.
25310
25311 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
25312
25313 * config/sh/sh.md (push, pop, ic_invalidate_line, cstoresi4, cstoredi4,
25314 cstoresf4, cstoredf4, fix_truncsfsi2): Remove constraints.
25315
25316 2016-05-01 Eric Botcazou <ebotcazou@adacore.com>
25317
25318 * config/rs6000/rs6000.c (altivec_expand_lv_builtin): Do not use switch
25319 statement on instruction code. Remove trailing spaces.
25320 (altivec_expand_stv_builtin): Likewise.
25321
25322 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
25323
25324 * config/sh/sh.h (TARGET_SH4): Remove and use default implementation.
25325 (TARGET_FPU_DOUBLE): Simplify.
25326 (BASE_ARG_REG, DOUBLE_TYPE_SIZE, OPTIMIZE_MODE_SWITCHING): Replace
25327 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions with 'TARGET_FPU_DOUBLE'.
25328 * config/sh/sh.c: Replace 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions
25329 with 'TARGET_FPU_DOUBLE'.
25330 * config/sh/sh.md: Likewise.
25331
25332 2016-05-01 Yoshinori Sato <ysato@users.sourceforge.jp>
25333
25334 * config/sh/linux.h (SH_DIV_STRATEGY_DEFAULT,
25335 SH_DIV_STR_FOR_SIZE): Remove.
25336 * config/sh/netbsd-elf.h (SH_DIV_STRATEGY_DEFAULT,
25337 SH_DIV_STR_FOR_SIZE): Remove.
25338
25339 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
25340
25341 * config/sh/predicates.md (any_register_operand, zero_extend_operand,
25342 logical_reg_operand): Delete.
25343 (arith_operand, arith_reg_dest, arith_or_int_operand, cmpsi_operand,
25344 arith_reg_or_0_operand, arith_reg_or_0_or_1_operand, logical_operand,
25345 logical_and_operand, movsrc_no_disp_mem_operand): Rewrite using
25346 match_operand and match_test.
25347 (sh_const_vec, sh_1el_vec): Remove redundant checks. Declare local
25348 variables on their first use. Return bool values.
25349 * config/sh/sh.h (LOAD_EXTEND_OP): Update comment.
25350 * config/sh/sh.md (andsi3, iorsi3): Use arith_reg_dest for result and
25351 arith_reg_operand for input operand. Remove empty constraints.
25352 (xorsi3): Delete.
25353 (*xorsi3_compact): Rename to xorsi3.
25354 (zero_extend<mode>si2): Use arith_reg_operand for input operand.
25355 (*zero_extend<mode>si2_disp_mem): Update comment.
25356 (mov_nop): Delete.
25357
25358 2016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
25359
25360 * config/sh/t-sh: Remove SH5 support.
25361 * config.gcc: Likewise.
25362 * configure: Likewise.
25363
25364 2016-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25365
25366 * config/darwin.h (LINK_COMMAND_SPEC_A): Handle -fcilkplus.
25367
25368 2016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
25369
25370 * config/sh/sh.c (register_sh_passes, sh_option_override,
25371 sh_print_operand, prepare_move_operands,
25372 sh_can_follow_jump): Remove TARGET_SH1 checks.
25373 * config/sh/sh.h (TARGET_VARARGS_PRETEND_ARGS, VALID_REGISTER_P,
25374 PROMOTE_MODE): Likewise.
25375 * config/sh/sh.md (adddi3, addsi3, subdi3, subsi3, andsi3,
25376 movdi): Likewise.
25377
25378 2016-04-30 Alan Modra <amodra@gmail.com>
25379
25380 * config/rs6000/rs6000.c (rs6000_savres_strategy): Force inline
25381 restoring when fixed_reg_p, but allow out-of-line or stmw save.
25382 Check for user regs later to avoid unnecessary looping over regs.
25383 Merge user reg check with non-saved reg check. Don't force
25384 inline VR restore when static chain used.
25385 (rs6000_frame_related): Omit eh_frame info for user regs when
25386 saving.
25387 (fixed_regs_p): Delete.
25388
25389 2016-04-30 Alan Modra <amodra@gmail.com>
25390
25391 * config/rs6000/rs6000.c (SAVRES_MULTIPLE): Replace with..
25392 (SAVE_STRATEGY, REST_STRATEGY): ..this. Renumber and sort enum.
25393 Update all uses.
25394
25395 2016-04-30 Alan Modra <amodra@gmail.com>
25396
25397 PR target/69645
25398 * config/rs6000/rs6000.c (fixed_reg_p): New function.
25399 (fixed_regs_p): Rename from global_regs_p. Call fixed_reg_p.
25400 Update all uses.
25401
25402 2016-04-30 Alan Modra <amodra@gmail.com>
25403
25404 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
25405 Remove redundant PIC_OFFSET_TABLE_REGNUM test. Replace with
25406 flag_pic test for Darwin.
25407
25408 2016-04-30 Alan Modra <amodra@gmail.com>
25409
25410 * regs.h (struct reg_info_t): Delete freq_calls_crossed and
25411 throw_calls_crossed.
25412 (REG_FREQ_CALLS_CROSSED): Delete.
25413 (REG_N_THROWING_CALLS_CROSSED): Delete.
25414 * regstat.c (regstat_bb_compute_ri): Don't calculate
25415 REG_FREQ_CALLS_CROSSED and REG_N_THROWING_CALLS_CROSSED.
25416 (dump_reg_info): Don't print call cross frequency.
25417 * ira.c (combine_and_move_insns): Don't set REG_FREQ_CALLS_CROSSED
25418 and REG_N_THROWING_CALLS_CROSSED.
25419
25420 2016-04-30 Alan Modra <amodra@gmail.com>
25421
25422 * regs.h (struct reg_info_t): Delete live_length.
25423 (REG_LIVE_LENGTH): Delete macro.
25424 * regstat.c (regstat_bb_compute_ri): Delete artificial_uses,
25425 local_live, local_processed and local_live_last_luid params.
25426 Replace bb_index param with bb. Don't set REG_LIVE_LENGTH.
25427 Formatting fixes.
25428 (regstat_compute_ri): Adjust for above. Don't set
25429 REG_LIVE_LENGTH.
25430 (dump_reg_info): Don't print live length.
25431 * ira.c (update_equiv_regs): Replace test of REG_LIVE_LENGTH
25432 with test of setjmp_crosses. Don't set REG_LIVE_LENGTH.
25433 Localize loop_depth var.
25434
25435 2016-04-30 Alan Modra <amodra@gmail.com>
25436
25437 * ira.c (enum valid_equiv): New.
25438 (validate_equiv_mem): Return enum.
25439 (update_equiv_mem): Create replacement in more cases.
25440 (add_store_equivs): Update validate_equiv_mem call.
25441
25442 2016-04-30 Alan Modra <amodra@gmail.com>
25443
25444 * ira.c (combine_and_move_insns): Rather than scanning insns,
25445 use DF infrastucture to find use and def insns.
25446
25447 2016-04-30 Alan Modra <amodra@gmail.com>
25448
25449 ira.c (combine_and_move_insns): Move invariant conditions..
25450 (ira.c): ..to here. Call combine_and_move_insns before
25451 add_store_equivs. Call grow_reg_equivs later. Allocate
25452 req_equiv later using max_reg_num() rather than global max_regno.
25453 (contains_replace_regs): Delete.
25454 (add_store_equivs): Remove contains_replace_regs test.
25455
25456 2016-04-30 Alan Modra <amodra@gmail.com>
25457
25458 * ira.c (struct equiv_mem_data): New.
25459 (equiv_mem, equiv_mem_modified): Delete static vars.
25460 (validate_equiv_mem_from_store): Use "data" param to communicate..
25461 (validate_equiv_mem): ..from here.
25462
25463 2016-04-30 Alan Modra <amodra@gmail.com>
25464
25465 * ira.c (add_store_equivs, combine_and_move_insns): New functions,
25466 split out from..
25467 (update_reg_equivs): ..here. Move allocation and freeing of
25468 reg_equiv, and calls to grow_reg_equivs, init_alias_analysis,
25469 end_alias_analysis to..
25470 (ira): ..here.
25471
25472 2016-04-30 Alan Modra <amodra@gmail.com>
25473
25474 * ira.c (pdx_subregs): Delete.
25475 (struct equivalence): Add pdx_subregs field.
25476 (set_paradoxical_subreg): Remove pdx_subregs param. Update
25477 pdx_subregs access.
25478 (update_equiv_regs): Don't create or free pdx_subregs. Update
25479 pdx_subregs access.
25480
25481 2016-04-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25482
25483 * config/rs6000/altivec.h: Change definitions of vec_xl and
25484 vec_xst.
25485 * config/rs6000/rs6000-builtin.def (LD_ELEMREV_V2DF): New.
25486 (LD_ELEMREV_V2DI): New.
25487 (LD_ELEMREV_V4SF): New.
25488 (LD_ELEMREV_V4SI): New.
25489 (LD_ELEMREV_V8HI): New.
25490 (LD_ELEMREV_V16QI): New.
25491 (ST_ELEMREV_V2DF): New.
25492 (ST_ELEMREV_V2DI): New.
25493 (ST_ELEMREV_V4SF): New.
25494 (ST_ELEMREV_V4SI): New.
25495 (ST_ELEMREV_V8HI): New.
25496 (ST_ELEMREV_V16QI): New.
25497 (XL): New.
25498 (XST): New.
25499 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
25500 descriptions for VSX_BUILTIN_VEC_XL and VSX_BUILTIN_VEC_XST.
25501 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Map from
25502 TARGET_P9_VECTOR to RS6000_BTM_P9_VECTOR.
25503 (altivec_expand_builtin): Add handling for
25504 VSX_BUILTIN_ST_ELEMREV_<MODE> and VSX_BUILTIN_LD_ELEMREV_<MODE>.
25505 (rs6000_invalid_builtin): Add error-checking for
25506 RS6000_BTM_P9_VECTOR.
25507 (altivec_init_builtins): Define builtins used to implement vec_xl
25508 and vec_xst.
25509 (rs6000_builtin_mask_names): Define power9-vector.
25510 * config/rs6000/rs6000.h (MASK_P9_VECTOR): Define.
25511 (RS6000_BTM_P9_VECTOR): Define.
25512 (RS6000_BTM_COMMON): Include RS6000_BTM_P9_VECTOR.
25513 * config/rs6000/vsx.md (vsx_ld_elemrev_v2di): New define_insn.
25514 (vsx_ld_elemrev_v2df): Likewise.
25515 (vsx_ld_elemrev_v4sf): Likewise.
25516 (vsx_ld_elemrev_v4si): Likewise.
25517 (vsx_ld_elemrev_v8hi): Likewise.
25518 (vsx_ld_elemrev_v16qi): Likewise.
25519 (vsx_st_elemrev_v2df): Likewise.
25520 (vsx_st_elemrev_v2di): Likewise.
25521 (vsx_st_elemrev_v4sf): Likewise.
25522 (vsx_st_elemrev_v4si): Likewise.
25523 (vsx_st_elemrev_v8hi): Likewise.
25524 (vsx_st_elemrev_v16qi): Likewise.
25525 * doc/extend.texi: Add prototypes for vec_xl and vec_xst. Correct
25526 grammar.
25527
25528 2016-04-29 Patrick Palka <ppalka@gcc.gnu.org>
25529
25530 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Split
25531 out into ...
25532 (simplify_control_stmt_condition_1): ... here. Recurse into
25533 BIT_AND_EXPRs and BIT_IOR_EXPRs.
25534
25535 2016-04-29 David Edelsohn <dje.gcc@gmail.com>
25536
25537 PR target/69810
25538 * config/rs6000/rs6000.md (EXTQI): Don't allow extension to HImode.
25539 (zero_extendqi<mode>2_dot): Revert earlier conversion from
25540 define_insn_and_split to define_insn.
25541 (zero_extendqi<mode>2_dot2): Same.
25542 (extendqi<mode>2_dot): Same.
25543 (extendqi<mode>2_dot2): Same.
25544
25545 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
25546
25547 * config/i386/i386.md (unspec): Add UNSPEC_PROBE_STACK.
25548 (probe_stack): New expander.
25549 (probe_stack_<mode>): New insn pattern.
25550
25551 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
25552
25553 * config/i386/i386.md
25554 (operations with memory inputs setting flags peephole2):
25555 Remove uneeded REG_P checks. Cleanup pattern generation.
25556
25557 2016-04-29 Ilya Enkovich <ilya.enkovich@intel.com>
25558
25559 * tree-vect-loop.c (vect_transform_loop): Fix
25560 nb_iterations_upper_bound computation for vectorized loop.
25561
25562 2016-04-29 Marek Polacek <polacek@redhat.com>
25563 Jakub Jelinek <jakub@redhat.com>
25564
25565 PR sanitizer/70342
25566 * fold-const.c (tree_single_nonzero_warnv_p): For TARGET_EXPR, use
25567 TARGET_EXPR_SLOT as a base.
25568
25569 2016-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
25570
25571 * config/arc/arc.md (*loadqi_update): Replace use of 'rI' constraint
25572 with 'rCm2' constraints to limit possible immediate size.
25573 (*load_zeroextendqisi_update): Likewise.
25574 (*load_signextendqisi_update): Likewise.
25575 (*loadhi_update): Likewise.
25576 (*load_zeroextendhisi_update): Likewise.
25577 (*load_signextendhisi_update): Likewise.
25578 (*loadsi_update): Likewise.
25579 (*loadsf_update): Likewise.
25580
25581 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
25582
25583 * config/i386/predicates.md (constm1_operand): Fix comparison.
25584
25585 2016-04-29 Claudiu Zissulescu <claziss@synopsys.com>
25586
25587 * testsuite/gcc.target/arc/ieee_eq.c: New test.
25588
25589 2016-04-29 Oleg Endo <olegendo@gcc.gnu.org>
25590
25591 * common/config/sh/sh-common.c (sh_option_optimization_table): Remove
25592 remaining SH5 related settings.
25593 * config/sh/sh-protos.h (shmedia_cleanup_truncate,
25594 shmedia_prepare_call_address): Delete.
25595 * config/sh/sh.c (sh_print_operand, output_stack_adjust,
25596 DWARF_CIE_DATA_ALIGNMENT, LOCAL_ALIGNMENT): Update comments.
25597 * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC,
25598 UNSUPPORTED_SH2A): Remove m5 checks.
25599 (sh_divide_strategy_e): Remove SH5 division strategies.
25600 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Remove and use default.
25601 * config/sh/sh.md (divsf3): Reinstate define_expand pattern.
25602
25603 2016-04-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
25604
25605 * config/s390/s390.c (s390_rtx_costs): Update documentation.
25606
25607 2016-04-29 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25608
25609 * config/s390/2964.md ("z13_unit_fxu", "z13_0"): Remove lder.
25610 * config/s390/s390.md ("movsi_larl", "*movsi_esa", "mov<mode>"):
25611 Change lder to ldr.
25612 * config/s390/vector.md ("mov<mode>"): Likewise.
25613
25614 2016-04-29 Ulrich Weigand <uweigand@de.ibm.com>
25615
25616 * config/s390/constraints.md ("U", "W"): Invoke
25617 s390_mem_constraint with "ZR" and "ZT".
25618 * config/s390/s390.c (s390_check_qrst_address): Reject invalid
25619 addresses when using LRA. Accept also short displacements for S
25620 and T constraints. Do not check for long displacement target for
25621 S and T constraints.
25622 (s390_mem_constraint): Remove handling of U and W constraints.
25623 * config/s390/s390.md (various patterns): Remove the short
25624 displacement constraints (Q and R) if a long displacement
25625 constraint is present. Add longdisp as required CPU capability.
25626 * config/s390/vector.md: Likewise.
25627 * config/s390/vx-builtins.md: Likewise.
25628
25629 2016-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
25630
25631 PR target/60040
25632 * reload1.c (reload): Call finish_spills before
25633 restarting reload loop. Skip select_reload_regs
25634 if update_eliminables_and_spill returns true.
25635
25636 2016-04-29 Claudiu Zissulescu <claziss@synopsys.com>
25637
25638 * config/arc/arc.h (UNSIGNED_INT12, UNSIGNED_INT16): Define.
25639 * config/arc/arc.md (umulhisi3): Use arc_short_operand predicate.
25640 (umulhisi3_imm): Update predicates and constraint letters.
25641 (umulhisi3_reg): Declare instruction as commutative.
25642 * config/arc/constraints.md (J12, J16): New constraints.
25643 * config/arc/predicates.md (short_unsigned_const_operand): New
25644 predicate.
25645 (arc_short_operand): Likewise.
25646 * testsuite/gcc.target/arc/umulsihi3_z.c: New file.
25647
25648 2016-04-29 Richard Biener <rguenther@suse.de>
25649
25650 PR tree-optimization/13962
25651 PR tree-optimization/65686
25652 * tree-ssa-alias.h (ptrs_compare_unequal): Declare.
25653 * tree-ssa-alias.c (ptrs_compare_unequal): New function
25654 using PTA to compare pointers.
25655 * match.pd: Add pattern for pointer equality compare simplification
25656 using ptrs_compare_unequal.
25657
25658 2016-04-29 Richard Biener <rguenther@suse.de>
25659
25660 * stor-layout.c (layout_type): Do not build a pointer-to-element
25661 type for arrays.
25662
25663 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
25664
25665 * config/i386/i386.md (Load+RegOp to Mov+MemOp peephole2):
25666 Use SWI mode iterator. Use general_reg_operand predicate.
25667 (Load+RegOp to Mov+MemOp peephole2 with vector regs): Split
25668 peephole to MMX and SSE part. Use mmx_reg_operand and sse_reg_operand
25669 predicates.
25670
25671 2016-04-29 Jakub Jelinek <jakub@redhat.com>
25672
25673 PR middle-end/70843
25674 * fold-const.c (operand_equal_p): Don't verify hash value equality
25675 if arg0 == arg1.
25676 * tree.c (inchash::add_expr): Handle STATEMENT_LIST. Ignore BLOCK
25677 and OMP_CLAUSE.
25678
25679 2016-04-28 Jakub Jelinek <jakub@redhat.com>
25680
25681 PR target/70858
25682 * config/i386/i386.c (bdesc_special_args): Add | OPTION_MASK_ISA_64BIT
25683 to __builtin_ia32_lwpval64 and __builtin_ia32_lwpins64.
25684 (bdesc_args): Add | OPTION_MASK_ISA_64BIT to __builtin_ia32_bextr_u64,
25685 __builtin_ia32_bextri_u64, __builtin_ia32_bzhi_di,
25686 __builtin_ia32_pdep_di and __builtin_ia32_pext_di.
25687
25688 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
25689
25690 * config/rs6000/rs6000.c (compute_save_world_info): Rename info_ptr
25691 to info. Don't initialize separate fields to 0. Clean up
25692 formatting a bit.
25693
25694 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
25695
25696 * config/i386/i386.md (peephole2s for operations with memory inputs):
25697 Use SWI mode iterator.
25698 (peephole2s for operations with memory outputs): Ditto.
25699 Do not check for stack checking probe.
25700
25701 (probe_stack): Remove expander.
25702
25703 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
25704 Andrew Burgess <andrew.burgess@embecosm.com>
25705
25706 * config/arc/arc.c (arc_print_operand): Print integer 'H' / 'L'
25707 operands as 32-bits.
25708
25709 2016-04-28 Jason Merrill <jason@redhat.com>
25710
25711 * gdbinit.in: Skip line-map.h.
25712
25713 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
25714 Andrew Burgess <andrew.burgess@embecosm.com>
25715
25716 * config/arc/arc.c (arc_conditional_register_usage): Take
25717 TARGET_RRQ_CLASS into account.
25718 (arc_print_operand): Support printing 'p' and 's' operands.
25719 * config/arc/arc.h (TARGET_NPS_BITOPS_DEFAULT): Provide default
25720 as 0.
25721 (TARGET_RRQ_CLASS): Define.
25722 (IS_POWEROF2_OR_0_P): Define.
25723 * config/arc/arc.md (*movsi_insn): Add w/Clo, w/Chi, and w/Cbi
25724 alternatives.
25725 (*tst_movb): New define_insn.
25726 (*tst): Avoid recognition if it could prevent '*tst_movb'
25727 combination; replace c/CnL with c/Chs alternative.
25728 (*tst_bitfield_tst): New define_insn.
25729 (*tst_bitfield_asr): New define_insn.
25730 (*tst_bitfield): New define_insn.
25731 (andsi3_i): Add Rrq variant.
25732 (extzv): New define_expand.
25733 (insv): New define_expand.
25734 (*insv_i): New define_insn.
25735 (*movb): New define_insn.
25736 (*movb_signed): New define_insn.
25737 (*movb_high): New define_insn.
25738 (*movb_high_signed): New define_insn.
25739 (*movb_high_signed + 1): New define_split pattern.
25740 (*mrgb): New define_insn.
25741 (*mrgb + 1): New define_peephole2 pattern.
25742 (*mrgb + 2): New define_peephole2 pattern.
25743 * config/arc/arc.opt (mbitops): New option for nps400, uses
25744 TARGET_NPS_BITOPS_DEFAULT.
25745 * config/arc/constraints.md (q): Make register class conditional.
25746 (Rrq): New register constraint.
25747 (Chs): New constraint.
25748 (Clo): New constraint.
25749 (Chi): New constraint.
25750 (Cbf): New constraint.
25751 (Cbn): New constraint.
25752 (C18): New constraint.
25753 (Cbi): New constraint.
25754
25755 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
25756
25757 * cfganal.c (bitmap_intersection_of_succs): Delete assert checking
25758 dst->popcount.
25759 (bitmap_intersection_of_preds): Ditto.
25760 (bitmap_union_of_succs): Ditto.
25761 (bitmap_union_of_preds): Ditto.
25762 * sbitmap.c (do_popcount): Delete.
25763 (BITMAP_DEBUGGING): Delete.
25764 (sbitmap_verify_popcount): Delete.
25765 (sbitmap_alloc): Don't initialize the popcount field.
25766 (sbitmap_alloc_with_popcount): Delete.
25767 (sbitmap_resize): Don't resize the popcount array.
25768 (sbitmap_vector_alloc): Don't initialize the popcount field.
25769 (bitmap_copy): Don't copy the popcount array.
25770 (bitmap_clear): Don't clear the popcount array.
25771 (bitmap_clear): Delete the popcount array handling.
25772 (bitmap_ior_and_compl): Delete the popcount assert.
25773 (bitmap_not): Ditto.
25774 (bitmap_and_compl): Ditto.
25775 (bitmap_and): Delete the popcount array handling.
25776 (bitmap_xor): Ditto.
25777 (bitmap_ior): Ditto.
25778 (bitmap_or_and): Delete the popcount assert.
25779 (bitmap_and_or): Ditto.
25780 (popcount_table): Delete.
25781 (sbitmap_elt_popcount): Delete.
25782 * sbitmap.h (simple_bitmap_def): Delete the popcount field.
25783 (bitmap_set_bit): Delete the popcount assert.
25784 (bitmap_clear_bit): Ditto.
25785 (sbitmap_free): Don't free the popcount array.
25786 (sbitmap_alloc_with_popcount): Delete declaration.
25787 (sbitmap_popcount): Ditto.
25788
25789 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
25790 Andrew Burgess <andrew.burgess@embecosm.com>
25791
25792 * config/arc/arc.h (SYMBOL_FLAG_CMEM): Define.
25793 (TARGET_NPS_CMEM_DEFAULT): Provide default definition.
25794 * config/arc/arc.c (arc_address_cost): Return 0 for cmem_address.
25795 (arc_encode_section_info): Set SYMBOL_FLAG_CMEM where indicated.
25796 * config/arc/arc.opt (mcmem): New option.
25797 * config/arc/arc.md (*extendqihi2_i): Add r/Uex alternative,
25798 supply length for r/m alternative.
25799 (*extendqisi2_ac): Likewise.
25800 (*extendhisi2_i): Add r/Uex alternative, supply length for r/m and
25801 r/Uex alternative.
25802 (movqi_insn): Add r/Ucm and Ucm/?Rac alternatives.
25803 (movhi_insn): Likewise.
25804 (movsi_insn): Add r/Ucm,Ucm/w alternatives.
25805 (*zero_extendqihi2_i): Add r/Ucm alternative.
25806 (*zero_extendqisi2_ac): Likewise.
25807 (*zero_extendhisi2_i): Likewise.
25808 * config/arc/constraints.md (Uex): New memory constraint.
25809 (Ucm): New define_constraint.
25810 * config/arc/predicates.md (long_immediate_loadstore_operand):
25811 Return 0 for MEM with cmem_address address.
25812 (cmem_address_0): New predicates.
25813 (cmem_address_1): Likewise.
25814 (cmem_address_2): Likewise.
25815 (cmem_address): Likewise.
25816
25817 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
25818
25819 * config/rs6000/rs6000.c (machine_function): Rename
25820 insn_chain_scanned_p to spe_insn_chain_scanned_p.
25821 (rs6000_stack_info): Adjust.
25822
25823 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
25824 Andrew Burgess <andrew.burgess@embecosm.com>
25825
25826 * config/arc/constraints.md (Usd): Convert to define_constraint.
25827 (Us<): Likewise.
25828 (Us>): Likewise.
25829
25830 2016-04-28 Jakub Jelinek <jakub@redhat.com>
25831
25832 PR target/70821
25833 * config/i386/sync.md (define_peephole2 *atomic_fetch_add_cmp<mode>):
25834 Add new peephole2 where the first insn is *mov<mode>_or instead of
25835 *mov<mode>_internal.
25836
25837 2016-04-28 Segher Boesssenkool <segher@kernel.crashing.org>
25838
25839 * tracer.c (bb_seen): Make static.
25840
25841 2016-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
25842
25843 * common/config/arc/arc-common.c (arc_handle_option): Add NPS400
25844 support, setup defaults.
25845 * config/arc/arc-opts.h (enum processor_type): Add NPS400.
25846 * config/arc/arc.c (arc_init): Add NPS400 support.
25847 * config/arc/arc.h (CPP_SPEC): Add NPS400 defines.
25848 (TARGET_ARC700): NPS400 is also an ARC700.
25849 * config/arc/arc.opt: Add NPS400 options to -mcpu=.
25850
25851 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
25852
25853 PR target/70668
25854 * config/nds32/nds32.md (casesi): Don't access the operands array
25855 out of bounds.
25856
25857 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
25858
25859 * config/i386/i386.md (zeroing peephole2): Use general_reg_operand.
25860 (or $-1,reg peephole2): Ditto.
25861 (strict_low_part zeroing peephole2): Use SWI12 mode iterator.
25862
25863 2016-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
25864
25865 * doc/extend.texi (Common Function Attributes) [optimize]:
25866 Discourage use of the optimize attribute.
25867
25868 2016-04-28 Bill Seurer <seurer@linux.vnet.ibm.com>
25869
25870 * config/rs6000/rs6000-builtin.def (vec_adde): Change vec_adde to a
25871 special case builtin.
25872 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
25873 ALTIVEC_BUILTIN_VEC_ADDE.
25874 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
25875 support for ALTIVEC_BUILTIN_VEC_ADDE.
25876 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
25877 for __builtin_vec_adde.
25878
25879 2016-04-28 Jakub Jelinek <jakub@redhat.com>
25880
25881 * config/i386/i386.md (sse4_1_round<mode>2): Add avx512f alternative.
25882 * config/i386/sse.md (sse4_1_round<ssescalarmodesuffix>): Likewise.
25883
25884 2016-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25885
25886 PR testsuite/70595
25887 * doc/sourcebuild.texi (Effective-Target Keywords, Other
25888 attributes): Document cilkplus_runtime.
25889
25890 2016-04-28 Martin Jambor <mjambor@suse.cz>
25891
25892 * tree-cfg.c (verify_expr): Verify that local declarations belong to
25893 this function. Call verify_expr on MEM_REFs and bases of other
25894 handled_components.
25895
25896 2016-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25897
25898 * internal-fn.c (expand_arith_overflow): Convert preprocessor check
25899 for WORD_REGISTER_OPERATIONS to runtime check.
25900
25901 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
25902
25903 * config/arc/arc.h (ASM_SPEC): Pass mfpuda to assembler.
25904
25905 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
25906
25907 * config/arc/arc.c (arc_process_double_reg_moves): Fix for
25908 big-endian compilation.
25909 * config/arc/arc.md (addf3): Likewise.
25910 (subdf3): Likewise.
25911 (muldf3): Likewise.
25912
25913 2016-04-28 Richard Biener <rguenther@suse.de>
25914
25915 PR tree-optimization/70840
25916 * match.pd: powi(-x, y) and powi(|x|,y) -> powi(x,y) if y is even;
25917 Fix pow(copysign(x, y), z) -> pow(x, z) and add powi variant;
25918 Mark x * pow(x,c) -> pow(x,c+1) commutative.
25919 Add powi(x,y) * powi(z,y) -> powi(x*z,y).
25920
25921 2015-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25922
25923 * config/aarch64/aarch64.h (WORD_REGISTER_OPERATIONS): Define to 0
25924 and explain why in a comment.
25925
25926 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
25927
25928 * config/arc/arc.md (cpu_facility): Add fpx variant.
25929 (subdf3): Prohibit use reverse sub when assist operations option
25930 is enabled.
25931 * config/arc/fpx.md (subdf3_insn, *dsubh_peep2_insn): Allow drsub
25932 instructions only when FPX is enabled.
25933 * testsuite/gcc.target/arc/trsub.c: New test.
25934
25935 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
25936
25937 * config/i386/i386.md (*fop_<mode>_1_mixed): Do not check for
25938 mult_operator when calculating "type" attribute.
25939 (*fop_<mode>_1_i387): Ditto.
25940 (*fop_xf_1_i387): Ditto.
25941 (x87 stack loads peephole2): Add "reg = op (mem, reg)" peephole2.
25942 Use std::swap to swap operands. Use RTL expressions to generate
25943 converted pattern.
25944
25945 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
25946 Joern Rennecke <joern.rennecke@embecosm.com>
25947
25948 * config/arc/arc-protos.h (arc_legitimize_pic_address): Remove
25949 declaration.
25950 (emit_pic_move): Remove.
25951 (arc_eh_uses, insn_is_tls_gd_dispatch): Declare.
25952 * config/arc/arc.c (emit_pic_move): Removed.
25953 (TARGET_HAVE_TLS): Define.
25954 (arc_conditional_register_usage): Test for arc_tp_regno.
25955 (arc_print_operand, arc_print_operand_address): Handle TLS
25956 unspecs.
25957 (arc_needs_pcl_p): New function.
25958 (arc_legitimate_pc_offset_p): Use arc_needs_pcl_p.
25959 (arc_legitimate_pic_addr_p): Handle TLS unspecs.
25960 (arc_raw_symbolic_reference_mentioned_p): Likewise.
25961 (arc_get_tp, arc_emit_call_tls_get_addr): New function.
25962 (arc_legitimize_tls_address): Likewise.
25963 (DTPOFF_ZERO_SYM): Define.
25964 (arc_legitimize_pic_address): Make it static, handle TLS cases.
25965 (arc_output_pic_addr_const): Print TLS unspecs.
25966 (prepare_pic_move): New function, replaces emit_pic_move.
25967 (arc_legitimate_constant_p): Handle TLS unspecs.
25968 (arc_legitimate_address_p): Likewise.
25969 (arc_rewrite_small_data_p): Use assert for TLS constants.
25970 (prepare_move_operands): Use prepare_pic_move.
25971 (arc_legitimize_address): Legitimize tls addresses.
25972 (arc_epilogue_uses): Check for arc_tp_regno.
25973 (arc_eh_uses, insn_is_tls_gd_dispatch): New function.
25974 * config/arc/arc.h [DEFAULT_LIBC != LIBC_UCLIBC] (EXTRA_SPECS):
25975 Define.
25976 [DEFAULT_LIBC != LIBC_UCLIBC] (ARC_TLS_EXTRA_START_SPEC):
25977 Likewise.
25978 [DEFAULT_LIBC != LIBC_UCLIBC] (STARTFILE_SPEC): Add
25979 %(arc_tls_extra_start_spec).
25980 (TARGET_CPU_CPP_BUILTINS): Define __ARC_TLS_REGNO__.
25981 (REGNO_OK_FOR_BASE_P): Check for arc_tp_regno.
25982 (EH_USES): Define.
25983 (INSN_REFERENCES_ARE_DELAYED): Use insn_is_tls_gd_dispatch.
25984 * config/arc/arc.md (UNSPEC_TLS_GD, UNSPEC_TLS_LD, UNSPEC_TLS_IE)
25985 (UNSPEC_TLS_OFF): Add.
25986 (R10_REG): Define.
25987 (tls_load_tp_soft, tls_gd_load, tls_gd_get_addr, tls_gd_dispatch)
25988 (get_thread_pointersi): New patterns.
25989 * config/arc/arc.opt (mtp-regno): New option.
25990 * config/arc/predicates.md (move_src_operand): Handle TLS symbols.
25991 (move_dest_operand): Likewise.
25992 * configure: Regenerate.
25993 * configure.ac: Add arc*-*-* case to test for tls.
25994 * doc/invoke.texi (ARC options): Document mtp-regno.
25995
25996 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
25997
25998 * config/arc/arc.c (arc_vector_mode_supported_p): Add support for
25999 the new ARC HS SIMD instructions.
26000 (arc_preferred_simd_mode): New function.
26001 (arc_autovectorize_vector_sizes): Likewise.
26002 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
26003 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
26004 (arc_init_reg_tables): Accept new ARC HS SIMD modes.
26005 (arc_init_builtins): Add new SIMD builtin types.
26006 (arc_split_move): Handle 64 bit vector moves.
26007 * config/arc/arc.h (TARGET_PLUS_DMPY, TARGET_PLUS_MACD)
26008 (TARGET_PLUS_QMACW): Define.
26009 * config/arc/builtins.def (QMACH, QMACHU, QMPYH, QMPYHU, DMACH)
26010 (DMACHU, DMPYH, DMPYHU, DMACWH, DMACWHU, VMAC2H, VMAC2HU, VMPY2H)
26011 (VMPY2HU, VADDSUB2H, VSUBADD2H, VADDSUB, VSUBADD, VADDSUB4H)
26012 (VSUBADD4H): New builtins.
26013 * config/arc/simdext.md: Add new ARC HS SIMD instructions.
26014 * testsuite/gcc.target/arc/builtin_simdarc.c: New file.
26015
26016 2016-04-28 Eduard Sanou <dhole@openmailbox.org>
26017 Matthias Klose <doko@debian.org>
26018
26019 * doc/cppenv.texi: Document SOURCE_DATE_EPOCH environment variable.
26020
26021 2016-04-28 Richard Biener <rguenther@suse.de>
26022
26023 PR middle-end/70777
26024 * fold-const.c (fold_binary_loc): Remove x*x to pow(x,2.0)
26025 canonicalization.
26026
26027 2016-04-28 Oleg Endo <olegendo@gcc.gnu.org>
26028
26029 * common/config/sh/sh-common.c: Remove SH5 support.
26030 * config/sh/constraints.md: Likewise.
26031 * config/sh/config/sh/elf.h: Likewise.
26032 * config/sh/linux.h: Likewise.
26033 * config/sh/netbsd-elf.h: Likewise.
26034 * config/sh/predicates.md: Likewise.
26035 * config/sh/sh-c.c: Likewise.
26036 * config/sh/sh-protos.h: Likewise.
26037 * config/sh/sh.c: Likewise.
26038 * config/sh/sh.h: Likewise.
26039 * config/sh/sh.md: Likewise.
26040 * config/sh/sh.opt: Likewise.
26041 * config/sh/sync.md: Likewise.
26042 * config/sh/sh64.h: Delete.
26043 * config/sh/shmedia.h: Likewise.
26044 * config/sh/shmedia.md: Likewise.
26045 * config/sh/sshmedia.h: Likewise.
26046 * config/sh/t-netbsd-sh5-64: Likewise.
26047 * config/sh/t-sh64: Likewise.
26048 * config/sh/ushmedia.h: Likewise.
26049
26050 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
26051
26052 * config/i386/i386.md (sign_extend to memory peephole2s): Use
26053 general_reg_operand instead of register_operand predicate.
26054
26055 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
26056
26057 * params.def (MIN_PARTITION_SIZE): Set default value to 10000.
26058
26059 2016-04-27 Marc Glisse <marc.glisse@inria.fr>
26060
26061 * match.pd (A - B > A, A + B < A): New transformations.
26062
26063 2016-04-27 Patrick Palka <ppalka@gcc.gnu.org>
26064
26065 * genattrtab.c (write_test_expr): New parameter EMIT_PARENS
26066 which defaults to true. Emit an outer pair of parentheses only if
26067 EMIT_PARENS. When continuing a chain of && or || (or & or |),
26068 don't emit parentheses for the right-hand operand.
26069
26070 2016-04-27 Jeff Law <law@redhat.com>
26071
26072 * tree-ssa-dom.c (record_temporary_equivalences): Fix typo in comment.
26073
26074 2016-04-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26075
26076 * config/rs6000/altivec.md (altivec_lvx_<mode>): Remove.
26077 (altivec_lvx_<mode>_internal): Document.
26078 (altivec_lvx_<mode>_2op): New define_insn.
26079 (altivec_lvx_<mode>_1op): Likewise.
26080 (altivec_lvx_<mode>_2op_si): Likewise.
26081 (altivec_lvx_<mode>_1op_si): Likewise.
26082 (altivec_stvx_<mode>): Remove.
26083 (altivec_stvx_<mode>_internal): Document.
26084 (altivec_stvx_<mode>_2op): New define_insn.
26085 (altivec_stvx_<mode>_1op): Likewise.
26086 (altivec_stvx_<mode>_2op_si): Likewise.
26087 (altivec_stvx_<mode>_1op_si): Likewise.
26088 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
26089 Expand vec_ld and vec_st during parsing.
26090 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Commentary
26091 changes.
26092 (altivec_expand_stvx_be): Likewise.
26093 (altivec_expand_lv_builtin): Expand lvx built-ins to expose the
26094 address-masking behavior in RTL.
26095 (altivec_expand_stv_builtin): Expand stvx built-ins to expose the
26096 address-masking behavior in RTL.
26097 (altivec_expand_builtin): Change builtin code arguments for calls
26098 to altivec_expand_stv_builtin and altivec_expand_lv_builtin.
26099 (insn_is_swappable_p): Avoid incorrect swap optimization in the
26100 presence of lvx/stvx patterns.
26101 (alignment_with_canonical_addr): New function.
26102 (alignment_mask): Likewise.
26103 (find_alignment_op): Likewise.
26104 (recombine_lvx_pattern): Likewise.
26105 (recombine_stvx_pattern): Likewise.
26106 (recombine_lvx_stvx_patterns): Likewise.
26107 (rs6000_analyze_swaps): Perform a pre-pass to recognize lvx and
26108 stvx patterns from expand.
26109 * config/rs6000/vector.md (vector_altivec_load_<mode>): Use new
26110 expansions.
26111 (vector_altivec_store_<mode>): Likewise.
26112
26113 2016-04-26 Evandro Menezes <e.menezes@samsung.com>
26114
26115 * config/aarch64/aarch64.md
26116 (*movhf_aarch64): Add "movi %0, #0" to zero up register and
26117 remove the "fp" attributes.
26118 (*movsf_aarch64): Add "movi %0, #0" to zero up register and
26119 add the "simd" attributes.
26120 (*movdf_aarch64): Likewise.
26121 (*movtf_aarch64): Remove the "fp" attributes.
26122 * testsuite/gcc.target/aarch64/fmovf-zero-reg.c: Update accordingly.
26123 * testsuite/gcc.target/aarch64/fmovd-zero-reg.c: Likewise.
26124
26125 2016-04-27 David Malcolm <dmalcolm@redhat.com>
26126
26127 * emit-rtl.c (maybe_set_first_label_num): Strengthen param from
26128 rtx to rtx_code_label *.
26129 * rtl.h (maybe_set_first_label_num): Likewise.
26130
26131 2016-04-27 David Malcolm <dmalcolm@redhat.com>
26132
26133 * df-core.c (df_add_problem): Make the problem param be const.
26134 (df_remove_problem): Make local "problem" be const.
26135 * df-problems.c (problem_RD): Make const.
26136 (problem_LR): Likewise.
26137 (problem_LIVE): Likewise.
26138 (problem_MIR): Likewise.
26139 (problem_CHAIN): Likewise.
26140 (problem_WORD_LR): Likewise.
26141 (problem_NOTE): Likewise.
26142 (problem_MD): Likewise.
26143 * df-scan.c (problem_SCAN): Likewise.
26144 * df.h (struct df_problem): Make field "dependent_problem" be
26145 const.
26146 (struct dataflow): Likewise for field "problem".
26147 (df_add_problem): Make param const.
26148
26149 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
26150
26151 * config/i386/i386.c (ix86_spill_class): Enable for TARGET_SSE2 when
26152 inter-unit moves to/from vector registers are enabled. Do not disable
26153 for TARGET_MMX.
26154
26155 2016-04-27 David Malcolm <dmalcolm@redhat.com>
26156
26157 * df.h (DF_SCAN, DF_LR, DF_LIVE, DF_RD, DF_CHAIN, DF_WORD_LR,
26158 DF_NOTE, DF_MD, DF_MIR, DF_LAST_PROBLEM_PLUS1): Convert from
26159 #define to...
26160 (enum df_problem_id): ...this new enum.
26161 (struct df_problem): Convert field "id" from "int" to
26162 enum df_problem_id.
26163
26164 2016-04-27 David Malcolm <dmalcolm@redhat.com>
26165
26166 * rtl.def: Update comment for "things in the instruction chain" to
26167 reflect the removal of the leading "i" field for INSN_UID in
26168 r210360. Fix bogus apostrophe.
26169
26170 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
26171
26172 * config/i386/i386.md
26173 (lea arith with mem operand + setcc peephole2): Set operator mode.
26174
26175 2016-04-27 H.J. Lu <hongjiu.lu@intel.com>
26176
26177 PR target/70155
26178 * config/i386/i386.c (scalar_to_vector_candidate_p): Renamed to ...
26179 (dimode_scalar_to_vector_candidate_p): This.
26180 (timode_scalar_to_vector_candidate_p): New function.
26181 (scalar_to_vector_candidate_p): Likewise.
26182 (timode_check_non_convertible_regs): Likewise.
26183 (timode_remove_non_convertible_regs): Likewise.
26184 (remove_non_convertible_regs): Likewise.
26185 (remove_non_convertible_regs): Renamed to ...
26186 (dimode_remove_non_convertible_regs): This.
26187 (scalar_chain::~scalar_chain): Make it virtual.
26188 (scalar_chain::compute_convert_gain): Make it pure virtual.
26189 (scalar_chain::mark_dual_mode_def): Likewise.
26190 (scalar_chain::convert_insn): Likewise.
26191 (scalar_chain::convert_registers): Likewise.
26192 (scalar_chain::add_to_queue): Make it protected.
26193 (scalar_chain::emit_conversion_insns): Likewise.
26194 (scalar_chain::replace_with_subreg): Likewise.
26195 (scalar_chain::replace_with_subreg_in_insn): Likewise.
26196 (scalar_chain::convert_op): Likewise.
26197 (scalar_chain::convert_reg): Likewise.
26198 (scalar_chain::make_vector_copies): Likewise.
26199 (scalar_chain::convert_registers): New pure virtual function.
26200 (class dimode_scalar_chain): New class.
26201 (class timode_scalar_chain): Likewise.
26202 (scalar_chain::mark_dual_mode_def): Renamed to ...
26203 (dimode_scalar_chain::mark_dual_mode_def): This.
26204 (timode_scalar_chain::mark_dual_mode_def): New function.
26205 (timode_scalar_chain::convert_insn): Likewise.
26206 (dimode_scalar_chain::convert_registers): Likewise.
26207 (scalar_chain::compute_convert_gain): Renamed to ...
26208 (dimode_scalar_chain::compute_convert_gain): This.
26209 (scalar_chain::replace_with_subreg): Renamed to ...
26210 (dimode_scalar_chain::replace_with_subreg): This.
26211 (scalar_chain::replace_with_subreg_in_insn): Renamed to ...
26212 (dimode_scalar_chain::replace_with_subreg_in_insn): This.
26213 (scalar_chain::make_vector_copies): Renamed to ...
26214 (dimode_scalar_chain::make_vector_copies): This.
26215 (scalar_chain::convert_reg): Renamed to ...
26216 (dimode_scalar_chain::convert_reg ): This.
26217 (scalar_chain::convert_op): Renamed to ...
26218 (dimode_scalar_chain::convert_op): This.
26219 (scalar_chain::convert_insn): Renamed to ...
26220 (dimode_scalar_chain::convert_insn): This.
26221 (scalar_chain::convert): Call convert_registers.
26222 (convert_scalars_to_vector): Change to scalar_chain pointer to
26223 use timode_scalar_chain in 64-bit mode and dimode_scalar_chain
26224 in 32-bit mode. Delete scalar_chain pointer. Call
26225 free_dominance_info in 64-bit mode.
26226 (pass_stv::gate): Remove TARGET_64BIT check.
26227 (ix86_option_override): Put the 64-bit STV pass before the CSE
26228 pass.
26229
26230 2016-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
26231
26232 * dwarf2out.h (struct dw_loc_descr_node): Remove the
26233 dw_loc_frame_offset field.
26234 * dwarf2out.c (new_loc_descr): Likewise.
26235 (resolve_args_picking_1): Turn the VISITED hash set into a
26236 FRAME_OFFSET hash map. Use it to associate a frame offset to
26237 visited nodes. Remove uses of the CHECKING_P macro.
26238 (resolve_args_picking): Update call to resolve_args_picking_1.
26239
26240 2016-04-27 Martin Liska <mliska@suse.cz>
26241
26242 * tree-ssa-loop-ivopts.c (iv_ca_dump): Fix level of indentation.
26243 (free_loop_data): Release vuses of groups.
26244
26245 2016-04-27 Bin Cheng <bin.cheng@arm.com>
26246
26247 * tree-ssa-loop-ivopts.c (struct iv): Use pointer to struct iv_use
26248 instead of redundant use_id and boolean have_use_for.
26249 (struct iv_use): Change sub_id into group_id. Remove field next.
26250 Move fields: related_cands, n_map_members, cost_map and selected
26251 to ...
26252 (struct iv_group): ... here. New structure.
26253 (struct iv_common_cand): Use structure declaration directly.
26254 (struct ivopts_data, iv_ca, iv_ca_delta): Rename fields.
26255 (MAX_CONSIDERED_USES): Rename macro to ...
26256 (MAX_CONSIDERED_GROUPS): ... here.
26257 (n_iv_uses, iv_use, n_iv_cands, iv_cand): Delete.
26258 (dump_iv, dump_use, dump_cand): Refactor format of dump information.
26259 (dump_uses): Rename to ...
26260 (dump_groups): ... here. Update all uses.
26261 (tree_ssa_iv_optimize_init, alloc_iv): Update all uses.
26262 (find_induction_variables): Refactor format of dump information.
26263 (record_sub_use): Delete.
26264 (record_use): Update all uses.
26265 (record_group): New function.
26266 (record_group_use, find_interesting_uses_op): Call above functions.
26267 Update all uses.
26268 (find_interesting_uses_cond): Ditto.
26269 (group_compare_offset): New function.
26270 (split_all_small_groups): Rename to ...
26271 (split_small_address_groups_p): ... here. Update all uses.
26272 (split_address_groups): Update all uses.
26273 (find_interesting_uses): Refactor format of dump information.
26274 (add_candidate_1): Update all uses. Remove redundant check on iv,
26275 base and step.
26276 (add_candidate, record_common_cand): Remove redundant assert.
26277 (add_iv_candidate_for_biv): Update use.
26278 (add_iv_candidate_derived_from_uses): Update all uses.
26279 (add_iv_candidate_for_groups, record_important_candidates): Ditto.
26280 (alloc_use_cost_map): Ditto.
26281 (set_use_iv_cost, get_use_iv_cost): Rename to ...
26282 (set_group_iv_cost, get_group_iv_cost): ... here. Update all uses.
26283 (determine_use_iv_cost_generic): Ditto.
26284 (determine_group_iv_cost_generic): Ditto.
26285 (determine_use_iv_cost_address): Ditto.
26286 (determine_group_iv_cost_address): Ditto.
26287 (determine_use_iv_cost_condition): Ditto.
26288 (determine_group_iv_cost_cond): Ditto.
26289 (determine_use_iv_cost): Ditto.
26290 (determine_group_iv_cost): Ditto.
26291 (set_autoinc_for_original_candidates): Update all uses.
26292 (find_iv_candidates): Update all uses. Refactor dump information.
26293 (determine_use_iv_costs): Ditto.
26294 (determine_iv_costs): Ditto.
26295 (iv_ca_cand_for_use): Rename to ...
26296 (iv_ca_cand_for_group): ... here. Update all uses.
26297 (iv_ca_add_use, iv_ca_add_group): Ditto.
26298 (iv_ca_set_cp, iv_ca_cost, iv_ca_delta_add): Update all uses.
26299 (iv_ca_delta_join, iv_ca_delta_reverse, iv_ca_delta_free): Ditto.
26300 (iv_ca_new, iv_ca_dump, iv_ca_extend, iv_ca_narrow): Ditto.
26301 (iv_ca_prune, cheaper_cost_with_cand, iv_ca_replace): Ditto.
26302 (try_add_cand_for, try_improve_iv_set, find_optimal_iv_set): Ditto.
26303 (create_new_iv, adjust_iv_update_pos): Ditto.
26304 (rewrite_use_address): Delete.
26305 (rewrite_use_address_1): Rename to ...
26306 (rewrite_use_address): ... here.
26307 (rewrite_use_compare): Update all uses.
26308 (rewrite_use): Delete.
26309 (rewrite_uses): Rename to ...
26310 (rewrite_groups): ... here. Update all uses.
26311 (remove_unused_ivs, free_loop_data): Update all uses.
26312 (tree_ssa_iv_optimize_finalize, tree_ssa_iv_optimize_loop): Ditto.
26313
26314 2016-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26315
26316 * rtlanal.c (nonzero_bits1): Convert preprocessor check
26317 for WORD_REGISTER_OPERATIONS to runtime check.
26318
26319 2016-04-27 Richard Biener <rguenther@suse.de>
26320
26321 PR ipa/70760
26322 * tree-ssa-structalias.c (find_func_aliases_for_call): Use
26323 aggregate_value_p to determine if a function result is
26324 returned by reference.
26325 (ipa_pta_execute): Functions having their address taken are
26326 not automatically nonlocal.
26327
26328 2016-04-27 Jakub Jelinek <jakub@redhat.com>
26329
26330 PR sanitizer/70683
26331 * tree-core.h (enum operand_equal_flag): Add OEP_NO_HASH_CHECK.
26332 * fold-const.c (operand_equal_p): If flag_checking and
26333 OEP_NO_HASH_CHECK is not set in flag, recurse with OEP_NO_HASH_CHECK
26334 and if it returns non-zero, assert iterative_hash_expr on both
26335 args is the same.
26336
26337 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
26338
26339 * doc/invoke.texi (-frename-registers): Also enabled at -Os.
26340
26341 2016-04-27 Nick Clifton <nickc@redhat.com>
26342
26343 PR middle-end/49889
26344 * varasm.c (merge_weak): Generate an error if an attempt is made
26345 to convert a non-weak static function into a weak, public function.
26346
26347 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
26348
26349 * params.def (MAX_PARTITION_SIZE): New param.
26350 * doc/invoke.texi: Document lto-max-partition.
26351
26352 2016-04-27 Richard Biener <rguenther@suse.de>
26353
26354 PR ipa/70785
26355 * tree-ssa-structalias.c (refered_from_nonlocal_fn): New
26356 function cummulating used_from_other_partition, externally_visible
26357 and force_output from aliases.
26358 (refered_from_nonlocal_var): Likewise.
26359 (ipa_pta_execute): Use call_for_symbol_and_aliases to cummulate
26360 node flags properly.
26361
26362 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
26363
26364 * doc/invoke.texi (Warning Options): Add -Wmemset-elt-size.
26365 (-Wmemset-elt-size): New item.
26366
26367 2016-04-27 Eric Botcazou <ebotcazou@adacore.com>
26368
26369 PR ada/70759
26370 * stor-layout.h (internal_reference_types): Delete.
26371 * stor-layout.c (reference_types_internal): Likewise.
26372 (internal_reference_types): Likewise.
26373 (layout_type) <REFERENCE_TYPE>: Adjust.
26374
26375 2016-04-27 Jakub Jelinek <jakub@redhat.com>
26376
26377 PR sanitizer/70683
26378 * tree.h (inchash::add_expr): Add FLAGS argument.
26379 * tree.c (inchash::add_expr): Likewise. If not OEP_ADDRESS_OF,
26380 use STRIP_NOPS first. For INTEGER_CST assert not OEP_ADDRESS_OF.
26381 For REAL_CST and !HONOR_SIGNED_ZEROS (t) hash +/- 0 the same.
26382 Formatting fix. Adjust recursive calls. For tcc_comparison,
26383 if swap_tree_comparison (code) is smaller than code, hash that
26384 and arguments in the other order. Hash CONVERT_EXPR the same
26385 as NOP_EXPR. For OEP_ADDRESS_OF hash MEM_REF with 0 offset
26386 of ADDR_EXPR of decl as the decl itself. Add or remove
26387 OEP_ADDRESS_OF from recursive flags as needed. For
26388 FMA_EXPR, WIDEN_MULT_{PLUS,MINUS}_EXPR hash the first two
26389 operands commutatively and only the third one normally.
26390 For internal CALL_EXPR hash in CALL_EXPR_IFN.
26391
26392 2016-04-27 Sebastian Huber <sebastian.huber@embedded-brains.de>
26393
26394 * config/rtems.h (LIB_SPEC): Add -latomic.
26395
26396 2016-04-27 Joel Sherrill <joel@rtems.org>
26397
26398 * config/microblaze/rtems.h: Redefine LINK_SPEC to avoid
26399 xilink.ld and flags not relevant to RTEMS.
26400
26401 2016-04-26 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
26402
26403 * toplev.c (backend_init_target): Avoid calling init_reload when using
26404 LRA.
26405
26406 2016-04-26 Jakub Jelinek <jakub@redhat.com>
26407
26408 * reorg.c (try_merge_delay_insns): Declare i and j inside the
26409 for loops rather than one for the whole function.
26410
26411 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
26412
26413 * match.pd (X + CST CMP X): New transformation.
26414
26415 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
26416
26417 * genmatch.c (write_predicate): Add ATTRIBUTE_UNUSED.
26418 * fold-const.c (fold_binary_loc): Remove 2 transformations
26419 superseded by match.pd.
26420 * match.pd (x+x -> x*2): Generalize to integers.
26421
26422 2016-04-26 Bernd Schmidt <bschmidt@redhat.com>
26423
26424 * config/i386/i386.md (operation on memory peephole): Duplicate an
26425 existing peephole and adapt it to match lea rather than an operation
26426 that clobbers CC.
26427
26428 PR rtl-optimization/57193
26429 * opts.c (default_options_table): Add OPT_frename_registers at -O2
26430 and above.
26431 * doc/invoke.texi (-frename-registers, -O2): Update documentation.
26432
26433 2016-04-26 Bin Cheng <bin.cheng@arm.com>
26434
26435 * tree-if-conv.c (any_pred_load_store): New static variable.
26436 (if_convertible_gimple_assign_stmt_p): Remove parameter. Use
26437 any_pred_load_store instead of and_mask_load_store.
26438 (if_convertible_stmt_p, if_convertible_loop_p_1): Ditto.
26439 (if_convertible_loop_p, insert_gimplified_predicates): Ditto.
26440 (combine_blocks, tree_if_conversion): Ditto.
26441
26442 2016-04-26 Bin Cheng <bin.cheng@arm.com>
26443
26444 PR tree-optimization/70771
26445 PR tree-optimization/70775
26446 * tree-if-conv.c (if_convertible_phi_p): Remove check on special
26447 virtual PHI nodes. Delete parameter.
26448 (if_convertible_loop_p_1): Delete argument to above function.
26449 (predicate_all_scalar_phis): Delete code handling single-argument
26450 PHIs.
26451 (tree_if_conversion): Mark and update virtual SSA.
26452
26453 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26454
26455 PR target/61821
26456 * config/i386/i386.c (LARGECOMM_SECTION_ASM_OP): Define default.
26457 (x86_elf_aligned_common): Rename to ...
26458 (x86_elf_aligned_decl_common): ... this.
26459 Add decl arg. Switch to .lbss for largecomm object. Use
26460 LARGECOMM_SECTION_ASM_OP.
26461 * config/i386/i386-protos.h (x86_elf_aligned_common): Reflect
26462 renaming.
26463 * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_COMMON): Rename to ...
26464 (ASM_OUTPUT_ALIGNED_DECL_COMMON): ... this.
26465 Pass new decl arg.
26466 * config/i386/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
26467 [!USE_GAS] (LARGECOMM_SECTION_ASM_OP): Define.
26468
26469 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26470
26471 PR target/59407
26472 * config/i386/i386.c (SECTION_LARGE): Define.
26473 (x86_64_elf_select_section): Set it for large data/bss sections.
26474 Only clear SECTION_WRITE for .lrodata.
26475 (x86_64_elf_section_type_flags): Set SECTION_LARGE for large
26476 data/bss sections.
26477 * config/i386/sol2.h (MACH_DEP_SECTION_ASM_FLAG): Define.
26478 * varasm.c (default_elf_asm_named_section): Grow flagchars.
26479 [MACH_DEP_SECTION_ASM_FLAG] Emit MACH_DEP_SECTION_ASM_FLAG for
26480 SECTION_MACH_DEP.
26481 * doc/tm.texi.in (Sections, MACH_DEP_SECTION_ASM_FLAG): Describe.
26482 * doc/tm.texi: Regenerate.
26483
26484 2016-04-26 Jakub Jelinek <jakub@redhat.com>
26485
26486 PR bootstrap/70704
26487 * configure.ac (--enable-checking): Document extra flag, for
26488 non-release builds default to --enable-checking=yes,extra.
26489 If misc checking and extra checking, define CHECKING_P to 2 instead
26490 of 1.
26491 * common.opt (fchecking=): Add.
26492 * doc/invoke.texi (-fchecking=): Document.
26493 * doc/install.texi: Document --enable-checking changes.
26494 * configure: Regenerated.
26495 * config.in: Regenerated.
26496
26497 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
26498
26499 * config/i386/i386.md (*movxi_internal_avx512f): Use insn type
26500 attribute instead of which_alternative.
26501 * config/i386/sse.md (*mov<mode>_internal): Ditto.
26502 Use EXT_REX_SSE_REG_P where appropriate.
26503
26504 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
26505
26506 * config/i386/predicates.md (const0_operand): Do not match
26507 const_wide_int code.
26508 (const1_operand): Ditto.
26509
26510 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
26511
26512 * config/i386/i386.md (*movoi_internal_avx): Set mode attribute to XI
26513 for SSE constm1 operands and TARGET_AVX512VL.
26514 (*movti_internal): Ditto.
26515 (*mov<mode>_or): Use constm1_operand predicate.
26516 * config/i386/sse.md (*mov<mode>_internal): Set mode attribute to XI
26517 for SSE vector_all_ones operands and TARGET_AVX512VL.
26518 * config/i386/predicates.md (constm1_operand): New predicate.
26519 * config/i386/i386.c (standard_sse_constant_opcode): Simplify
26520 emission of constant -1 load.
26521
26522 2016-04-25 Jason Merrill <jason@redhat.com>
26523
26524 * gdbinit.in: Skip is-a.h.
26525
26526 * attribs.c (register_scoped_attributes): Fix logic.
26527 * attribs.h: Declare register_scoped_attributes.
26528
26529 2016-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26530
26531 * config/rs6000/rs6000-builtin.def: Correct pasto error for
26532 stxvd2x and stxvw4x built-in functions.
26533
26534 2016-04-25 DJ Delorie <dj@redhat.com>
26535
26536 * config/msp430/msp430.md (ashlhi3): Optimize one bit shifts.
26537 (ashrhi3): Likewise.
26538 (lshrhi3): Likewise.
26539
26540 2016-04-25 Richard Biener <rguenther@suse.de>
26541
26542 PR tree-optimization/70780
26543 * tree-ssa-pre.c (compute_antic_aux): Also return true if the block
26544 wasn't visited yet.
26545 (compute_antic): Mark blocks with abnormal preds as visited as
26546 they have a final empty antic-in solution already.
26547
26548 2016-04-25 Michael Collison <michael.collison@linaro.org>
26549
26550 * ChangeLog(2016-04-25): Fix ChangeLog formatting.
26551
26552 2016-04-25 Michael Collison <michael.collison@linaro.org>
26553
26554 * config/arm/neon.md (widen_<us>sum<mode>): New patterns where
26555 mode is VQI to improve mixed mode vectorization.
26556 * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3): New
26557 define_insn to match low half of signed vaddw.
26558 * config/arm/neon.md (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): New
26559 define_insn to match high half of signed vaddw.
26560 * config/arm/neon.md (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): New
26561 define_insn to match low half of unsigned vaddw.
26562 * config/arm/neon.md (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): New
26563 define_insn to match high half of unsigned vaddw.
26564 * config/arm/arm.c (arm_simd_vect_par_cnst_half): New function.
26565 (arm_simd_check_vect_par_cnst_half_p): Likewise.
26566 * config/arm/arm-protos.h (arm_simd_vect_par_cnst_half): Prototype
26567 for new function.
26568 (arm_simd_check_vect_par_cnst_half_p): Likewise.
26569 * config/arm/predicates.md (vect_par_constant_high): Support
26570 big endian and simplify by calling
26571 arm_simd_check_vect_par_cnst_half
26572 (vect_par_constant_low): Likewise.
26573
26574 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
26575
26576 * config/i386/i386.md (*lea<mode>_general_4): Use const_0_to_3_operand
26577 predicate for operand 2.
26578
26579 2016-04-24 Uros Bizjak <ubizjak@gmail.com>
26580 H.J. Lu <hongjiu.lu@intel.com>
26581
26582 * config/i386/i386-protos.h (standard_sse_constant_p): Add
26583 machine_mode argument.
26584 * config/i386/i386.c (standard_sse_constant_p): Return 2 for
26585 constm1_rtx operands. For VOIDmode constants, get mode from
26586 pred_mode. Check mode size if the mode is supported by ABI.
26587 (standard_sse_constant_opcode): Do not use standard_constant_p.
26588 Strictly check ABI support for all-ones operands.
26589 (ix86_legitimate_constant_p): Handle TImode, OImode and XImode
26590 immediates. Update calls to standard_sse_constant_p.
26591 (ix86_expand_vector_move): Update calls to standard_sse_constant_p.
26592 (ix86_rtx_costs): Ditto.
26593 * config/i386/i386.md (*movxi_internal_avx512f): Use
26594 nonimmediate_or_sse_const_operand instead of vector_move_operand.
26595 Use (v,BC) alternative instead of (v,C). Use register_operand
26596 checks instead of MEM_P.
26597 (*movoi_internal_avx): Use nonimmediate_or_sse_const_operand instead
26598 of vector_move_operand. Add (v,BC) alternative and corresponding avx2
26599 isa attribute. Use register_operand checks instead of MEM_P.
26600 (*movti_internal): Use nonimmediate_or_sse_const_operand for
26601 TARGET_SSE. Improve TARGET_SSE insn constraint. Add (v,BC)
26602 alternative and corresponding sse2 isa attribute.
26603 (*movtf_internal, *movdf_internal, *movsf_interal): Update calls
26604 to standard_sse_constant_p.
26605 (FP constant splitters): Ditto.
26606 * config/i386/constraints.md (BC): Do not use standard_sse_constant_p.
26607 (C): Ditto.
26608 * config/i386/predicates.md (constm1_operand): Remove.
26609 (nonimmediate_or_sse_const_operand): Rewrite using RTX.
26610 * config/i386/sse.md (*<avx512>_cvtmask2<ssemodesuffix><mode>): Use
26611 vector_all_ones_operand instead of constm1_operand.
26612
26613 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26614
26615 * print-rtl.c (print_rtx_insn_vec): New function.
26616 * print-rtl.h: New prototype.
26617 * store-motion.c (struct st_expr): Make avail_stores a vector.
26618 (st_expr_entry): Adjust.
26619 (free_st_expr_entry): Likewise.
26620 (print_store_motion_mems): Likewise.
26621 (find_moveable_store): Likewise.
26622 (compute_store_table): Likewise.
26623 (delete_store): Likewise.
26624 (build_store_vectors): Likewise.
26625
26626 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26627
26628 * reorg.c (try_merge_delay_insns): Make merged_insns a vector.
26629
26630 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26631
26632 * vec.h (vec_safe_contains): New function.
26633 (vec::contains): Likewise.
26634 (vec::begin): Likewise.
26635 (vec::end): Likewise.
26636
26637 2016-04-23 Jakub Jelinek <jakub@redhat.com>
26638
26639 PR sanitizer/70712
26640 * cfgexpand.c (expand_stack_vars): Fix typo.
26641
26642 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
26643
26644 * system.h (list, map, set, vector): Include conditionally.
26645 * auto-profile.c (INCLUDE_MAP, INCLUDE_SET): Define.
26646 * graphite-isl-ast-to-gimple.c (INCLUDE_MAP): Define.
26647 * ipa-icf.c (INCLUDE_LIST): Define.
26648 * config/aarch64/cortex-a57-fma-steering.c (INCLUDE_LIST): Define.
26649 * config/sh/sh.c (INCLUDE_VECTOR): Define.
26650 * config/sh/sh_treg_combine.cc (INCLUDE_ALGORITHM): Define.
26651 (INCLUDE_LIST, INCLUDE_VECTOR): Define.
26652 * cp/logic.cc (INCLUDE_LIST): Define.
26653 * fortran/trans-common.c (INCLUDE_MAP): Define.
26654
26655 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
26656
26657 * auto-profile.c: Remove <string.h> include.
26658 * ipa-icf-gimple.c: Remove <list> include.
26659 * diagnostic.c: Remove <new> include.
26660 * genmatch.c: Likewise.
26661 * pretty-print.c: Likewise.
26662 * toplev.c: Likewise
26663 * c/c-objc-common.c: Likewise.
26664 * cp/error.c: Likewise.
26665 * fortran/error.c: Likewise.
26666
26667 2016-04-22 Richard Biener <rguenther@suse.de>
26668
26669 * lto-streamer-in.c (input_ssa_names): Do not allocate
26670 GIMPLE_NOP for all SSA names.
26671 * lto-streamer-out.c (output_ssa_names): Do not output
26672 SSA names that should have been released.
26673
26674 2016-04-22 Richard Biener <rguenther@suse.de>
26675
26676 PR tree-optimization/70740
26677 * tree-ssa-phiprop.c (propagate_with_phi): Handle inserted
26678 VDEF.
26679
26680 2016-04-21 H.J. Lu <hongjiu.lu@intel.com>
26681
26682 PR target/70750
26683 * config/i386/predicates.md (call_insn_operand): Replace
26684 sibcall_memory_operand with memory_operand.
26685
26686 2016-04-21 Patrick Palka <ppalka@gcc.gnu.org>
26687
26688 * tree-vrp.c (register_edge_assert_for_2): Remove redundant
26689 has_single_use() tests.
26690 (register_edge_assert_for_1): Likewise.
26691 (find_assert_locations_1): Check the liveness bitmap instead of
26692 checking has_single_use().
26693
26694 2016-04-21 Kirill Yukhin <kirill.yukhin@intel.com>
26695
26696 PR target/70728
26697 * config/i386/sse.md (define_insn "<shift_insn><mode>3<mask_name>"):
26698 Extract AVX-512BW constraint from AVX.
26699
26700 2016-04-21 Richard Biener <rguenther@suse.de>
26701
26702 PR tree-optimization/70725
26703 * tree-if-conv.c (if_convertible_phi_p): Adjust guard
26704 for phi_convertible_by_degenerating_args.
26705 (predicate_all_scalar_phis): Handle single-argument PHIs.
26706
26707 2016-04-21 Richard Biener <rguenther@suse.de>
26708
26709 PR middle-end/70747
26710 * fold-const.c (fold_comparison): Return properly typed
26711 constant boolean.
26712
26713 2016-04-21 Bin Cheng <bin.cheng@arm.com>
26714
26715 PR tree-optimization/70715
26716 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
26717 after expanding BASE using expand_simple_operations.
26718
26719 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
26720
26721 * match.pd (min(-x, -y), max(-x, -y), min(~x, ~y), max(~x, ~y)):
26722 New transformations.
26723
26724 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
26725
26726 * match.pd (min(int_max, x), max(int_min, x)): New transformations.
26727
26728 2016-04-20 Jan Hubicka <jh@suse.cz>
26729
26730 * ipa-inline.c (can_inline_edge_p): Pass caller info to
26731 ultiimate_alias_target.
26732 (update_callee_keys): Likewise.
26733 (lookup_recursive_calls): Likewise.
26734 (speculation_useful_p): Likewise.
26735
26736 2016-04-20 Jan Hubicka <jh@suse.cz>
26737
26738 PR ipa/70018
26739 * cgraph.c (cgraph_set_nothrow_flag_1): Rename to ...
26740 (set_nothrow_flag_1): ... this; handle interposition correctly;
26741 recurse on aliases and thunks.
26742 (cgraph_node::set_nothrow_flag): New.
26743 * ipa-pure-const.c (ignore_edge_for_nothrow): Ignore calls to
26744 functions compiled with non-call exceptions that binds to current
26745 def.
26746 (propagate_nothrow): Be safe WRT interposition.
26747 * cgraph.h (set_nothrow_flag): Update prototype.
26748
26749 2016-04-18 Jan Hubicka <jh@suse.cz>
26750
26751 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
26752 max_loop_iterations_int.
26753 (tree_unswitch_outer_loop): Likewise.
26754
26755 2016-04-20 Bin Cheng <bin.cheng@arm.com>
26756
26757 PR tree-optimization/69489
26758 * tree-if-conv.c (phi_convertible_by_degenerating_args): New.
26759 (if_convertible_phi_p): Call phi_convertible_by_degenerating_args.
26760 Revise dump message.
26761 (if_convertible_bb_p): Remove check on edge count of basic block's
26762 predecessors.
26763
26764 2016-04-20 Bin Cheng <bin.cheng@arm.com>
26765
26766 PR tree-optimization/56625
26767 PR tree-optimization/69489
26768 * tree-data-ref.h (DR_INNERMOST): New macro.
26769 * tree-if-conv.c (innermost_loop_behavior_hash): New class for
26770 hashing struct innermost_loop_behavior.
26771 (ref_DR_map): Remove.
26772 (innermost_DR_map): New map.
26773 (baseref_DR_map): Revise comment.
26774 (hash_memrefs_baserefs_and_store_DRs_read_written_info): Store DR
26775 to innermost_DR_map accroding to its innermost loop behavior.
26776 (ifcvt_memrefs_wont_trap): Get DR from innermost_DR_map according
26777 to its innermost loop behavior.
26778 (if_convertible_loop_p_1): Remove intialization for ref_DR_map.
26779 Add initialization for innermost_DR_map. Record memory reference
26780 in DR_BASE_ADDRESS if the reference is compound one or it doesn't
26781 have innermost loop behavior.
26782 (if_convertible_loop_p): Remove release for ref_DR_map. Release
26783 innermost_DR_map.
26784
26785 2016-04-20 Uros Bizjak <ubizjak@gmail.com>
26786
26787 * config/i386/i386.md (*lea<mode>_general_1): Rename from
26788 *lea_general_1. Use explicit SWI12 mode interator.
26789 (*lea<mode>_general_2): Rename from *lea_general_2.
26790 Use explicit SWI12 mode interator.
26791 (*lea<mode>_general_3): Rename from *lea_general_3.
26792 Use explicit SWI12 mode interator.
26793 (*lea<SWI12:mode>_general_4): Split from *lea_general_4.
26794 Use explicit SWI12 mode interator.
26795 (*lea<SWI48:mode>_general_4): Split from *lea_general_4.
26796 Use explicit SWI48 mode interator.
26797
26798 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
26799
26800 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
26801 Short-cut unaligned load and store cases. Handle all integer
26802 vector modes.
26803 (ix86_expand_vector_move_misalign): Short-cut unaligned load
26804 and store cases. Call ix86_avx256_split_vector_move_misalign
26805 directly without checking mode class.
26806
26807 2016-04-20 Andrew Pinski <apinski@cavium.com>
26808 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26809
26810 PR target/64971
26811 * config/aarch64/aarch64.md (sibcall): Force call
26812 address to be DImode for ILP32.
26813 (sibcall_value): Likewise.
26814
26815 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
26816
26817 * doc/invoke.texi: Replace -skip-rax-setup with -mskip-rax-setup.
26818
26819 2016-04-20 Richard Biener <rguenther@suse.de>
26820
26821 * gimple-match.h (maybe_build_generic_op): Adjust prototype.
26822 * gimple-match-head.c (maybe_build_generic_op): Pass all ops
26823 by reference, clear op1 and op2 when GENERICizing BIT_FIELD_REF.
26824 (maybe_push_res_to_seq): Adjust.
26825 * gimple-fold.c (maybe_build_generic_op): Likewise.
26826
26827 2016-04-20 Marek Polacek <polacek@redhat.com>
26828
26829 * tree-if-conv.c (is_false_predicate): For NULL_TREE return false
26830 rather than true.
26831
26832 2016-04-20 Ilya Enkovich <ilya.enkovich@intel.com>
26833
26834 * config/i386/sse.md (vec_unpacks_lo_hi): Always
26835 use kmovw to support AVX512F target.
26836
26837 2016-04-20 Bin Cheng <bin.cheng@arm.com>
26838
26839 * tree-scalar-evolution.c (interpret_rhs_expr): Handle BIT_AND_EXPR.
26840
26841 2016-04-20 Marek Polacek <polacek@redhat.com>
26842
26843 PR tree-optimization/70725
26844 * tree-if-conv.c (is_false_predicate): New function.
26845 (predicate_mem_writes): Use it.
26846
26847 2016-04-20 Richard Biener <rguenther@suse.de>
26848
26849 PR tree-optimization/70726
26850 * tree-vect-stmts.c (vectorizable_shift): Do not use scalar
26851 shift amounts from a pattern stmt operand.
26852
26853 2016-04-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26854
26855 PR target/70674
26856 * config/s390/s390.c (s390_restore_gprs_from_fprs): Pick the new
26857 stack_restore_from_fpr pattern when restoring r15.
26858 (s390_optimize_prologue): Strip away the memory barrier in the
26859 parallel when trying to get rid of restore insns.
26860 * config/s390/s390.md ("stack_restore_from_fpr"): New insn
26861 definition for loading the stack pointer from an FPR. Compared to
26862 the normal move insn this pattern includes a full memory barrier.
26863
26864 2016-04-19 Jakub Jelinek <jakub@redhat.com>
26865
26866 PR middle-end/70680
26867 * gimplify.c (gimplify_omp_for): Call omp_notice_variable for
26868 implicitly linear or lastprivate iterator on the outer context.
26869
26870 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
26871
26872 * config/i386/i386.c (ix86_legitimate_combined_insn): Remove
26873 alignment check.
26874 * config/i386/i386.md (ssememalign): Removed.
26875 * config/i386/sse.md: Remove ssememalign attribute from patterns.
26876
26877 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
26878
26879 PR target/69201
26880 * config/i386/avx512bwintrin.h (_mm512_mask_loadu_epi16): Pass
26881 const short * to __builtin_ia32_loaddquhi512_mask.
26882 (_mm512_maskz_loadu_epi16): Likewise.
26883 (_mm512_mask_storeu_epi16): Pass short * to
26884 __builtin_ia32_storedquhi512_mask.
26885 (_mm512_mask_loadu_epi8): Pass const char * to
26886 __builtin_ia32_loaddquqi512_mask.
26887 (_mm512_maskz_loadu_epi8): Likewise.
26888 (_mm512_mask_storeu_epi8): Pass char * to
26889 __builtin_ia32_storedquqi512_mask.
26890 * config/i386/avx512fintrin.h (_mm512_loadu_pd): Pass
26891 const double * to __builtin_ia32_loadupd512_mask.
26892 (_mm512_mask_loadu_pd): Likewise.
26893 (_mm512_maskz_loadu_pd): Likewise.
26894 (_mm512_storeu_pd): Pass double * to
26895 __builtin_ia32_storeupd512_mask.
26896 (_mm512_mask_storeu_pd): Likewise.
26897 (_mm512_loadu_ps): Pass const float * to
26898 __builtin_ia32_loadups512_mask.
26899 (_mm512_mask_loadu_ps): Likewise.
26900 (_mm512_maskz_loadu_ps): Likewise.
26901 (_mm512_storeu_ps): Pass float * to
26902 __builtin_ia32_storeups512_mask.
26903 (_mm512_mask_storeu_ps): Likewise.
26904 (_mm512_mask_loadu_epi64): Pass const long long * to
26905 __builtin_ia32_loaddqudi512_mask.
26906 (_mm512_maskz_loadu_epi64): Likewise.
26907 (_mm512_mask_storeu_epi64): Pass long long *
26908 to __builtin_ia32_storedqudi512_mask.
26909 (_mm512_loadu_si512): Pass const int * to
26910 __builtin_ia32_loaddqusi512_mask.
26911 (_mm512_mask_loadu_epi32): Likewise.
26912 (_mm512_maskz_loadu_epi32): Likewise.
26913 (_mm512_storeu_si512): Pass int * to
26914 __builtin_ia32_storedqusi512_mask.
26915 (_mm512_mask_storeu_epi32): Likewise.
26916 * config/i386/avx512vlbwintrin.h (_mm256_mask_storeu_epi8): Pass
26917 char * to __builtin_ia32_storedquqi256_mask.
26918 (_mm_mask_storeu_epi8): Likewise.
26919 (_mm256_mask_loadu_epi16): Pass const short * to
26920 __builtin_ia32_loaddquhi256_mask.
26921 (_mm256_maskz_loadu_epi16): Likewise.
26922 (_mm_mask_loadu_epi16): Pass const short * to
26923 __builtin_ia32_loaddquhi128_mask.
26924 (_mm_maskz_loadu_epi16): Likewise.
26925 (_mm256_mask_loadu_epi8): Pass const char * to
26926 __builtin_ia32_loaddquqi256_mask.
26927 (_mm256_maskz_loadu_epi8): Likewise.
26928 (_mm_mask_loadu_epi8): Pass const char * to
26929 __builtin_ia32_loaddquqi128_mask.
26930 (_mm_maskz_loadu_epi8): Likewise.
26931 (_mm256_mask_storeu_epi16): Pass short * to.
26932 __builtin_ia32_storedquhi256_mask.
26933 (_mm_mask_storeu_epi16): Pass short * to.
26934 __builtin_ia32_storedquhi128_mask.
26935 * config/i386/avx512vlintrin.h (_mm256_mask_loadu_pd): Pass
26936 const double * to __builtin_ia32_loadupd256_mask.
26937 (_mm256_maskz_loadu_pd): Likewise.
26938 (_mm_mask_loadu_pd): Pass onst double * to
26939 __builtin_ia32_loadupd128_mask.
26940 (_mm_maskz_loadu_pd): Likewise.
26941 (_mm256_mask_storeu_pd): Pass double * to
26942 __builtin_ia32_storeupd256_mask.
26943 (_mm_mask_storeu_pd): Pass double * to
26944 __builtin_ia32_storeupd128_mask.
26945 (_mm256_mask_loadu_ps): Pass const float * to
26946 __builtin_ia32_loadups256_mask.
26947 (_mm256_maskz_loadu_ps): Likewise.
26948 (_mm_mask_loadu_ps): Pass const float * to
26949 __builtin_ia32_loadups128_mask.
26950 (_mm_maskz_loadu_ps): Likewise.
26951 (_mm256_mask_storeu_ps): Pass float * to
26952 __builtin_ia32_storeups256_mask.
26953 (_mm_mask_storeu_ps): ass float * to
26954 __builtin_ia32_storeups128_mask.
26955 (_mm256_mask_loadu_epi64): Pass const long long * to
26956 __builtin_ia32_loaddqudi256_mask.
26957 (_mm256_maskz_loadu_epi64): Likewise.
26958 (_mm_mask_loadu_epi64): Pass const long long * to
26959 __builtin_ia32_loaddqudi128_mask.
26960 (_mm_maskz_loadu_epi64): Likewise.
26961 (_mm256_mask_storeu_epi64): Pass long long * to
26962 __builtin_ia32_storedqudi256_mask.
26963 (_mm_mask_storeu_epi64): Pass long long * to
26964 __builtin_ia32_storedqudi128_mask.
26965 (_mm256_mask_loadu_epi32): Pass const int * to
26966 __builtin_ia32_loaddqusi256_mask.
26967 (_mm256_maskz_loadu_epi32): Likewise.
26968 (_mm_mask_loadu_epi32): Pass const int * to
26969 __builtin_ia32_loaddqusi128_mask.
26970 (_mm_maskz_loadu_epi32): Likewise.
26971 (_mm256_mask_storeu_epi32): Pass int * to
26972 __builtin_ia32_storedqusi256_mask.
26973 (_mm_mask_storeu_epi32): Pass int * to
26974 __builtin_ia32_storedqusi128_mask.
26975 * config/i386/i386-builtin-types.def (PCSHORT): New.
26976 (PINT64): Likewise.
26977 (V64QI_FTYPE_PCCHAR_V64QI_UDI): Likewise.
26978 (V32HI_FTYPE_PCSHORT_V32HI_USI): Likewise.
26979 (V32QI_FTYPE_PCCHAR_V32QI_USI): Likewise.
26980 (V16SF_FTYPE_PCFLOAT_V16SF_UHI): Likewise.
26981 (V8DF_FTYPE_PCDOUBLE_V8DF_UQI): Likewise.
26982 (V16SI_FTYPE_PCINT_V16SI_UHI): Likewise.
26983 (V16HI_FTYPE_PCSHORT_V16HI_UHI): Likewise.
26984 (V16QI_FTYPE_PCCHAR_V16QI_UHI): Likewise.
26985 (V8SF_FTYPE_PCFLOAT_V8SF_UQI): Likewise.
26986 (V8DI_FTYPE_PCINT64_V8DI_UQI): Likewise.
26987 (V8SI_FTYPE_PCINT_V8SI_UQI): Likewise.
26988 (V8HI_FTYPE_PCSHORT_V8HI_UQI): Likewise.
26989 (V4DF_FTYPE_PCDOUBLE_V4DF_UQI): Likewise.
26990 (V4SF_FTYPE_PCFLOAT_V4SF_UQI): Likewise.
26991 (V4DI_FTYPE_PCINT64_V4DI_UQI): Likewise.
26992 (V4SI_FTYPE_PCINT_V4SI_UQI): Likewise.
26993 (V2DF_FTYPE_PCDOUBLE_V2DF_UQI): Likewise.
26994 (V2DI_FTYPE_PCINT64_V2DI_UQI): Likewise.
26995 (VOID_FTYPE_PDOUBLE_V8DF_UQI): Likewise.
26996 (VOID_FTYPE_PDOUBLE_V4DF_UQI): Likewise.
26997 (VOID_FTYPE_PDOUBLE_V2DF_UQI): Likewise.
26998 (VOID_FTYPE_PFLOAT_V16SF_UHI): Likewise.
26999 (VOID_FTYPE_PFLOAT_V8SF_UQI): Likewise.
27000 (VOID_FTYPE_PFLOAT_V4SF_UQI): Likewise.
27001 (VOID_FTYPE_PINT64_V8DI_UQI): Likewise.
27002 (VOID_FTYPE_PINT64_V4DI_UQI): Likewise.
27003 (VOID_FTYPE_PINT64_V2DI_UQI): Likewise.
27004 (VOID_FTYPE_PINT_V16SI_UHI): Likewise.
27005 (VOID_FTYPE_PINT_V8SI_UHI): Likewise.
27006 (VOID_FTYPE_PINT_V4SI_UHI): Likewise.
27007 (VOID_FTYPE_PSHORT_V32HI_USI): Likewise.
27008 (VOID_FTYPE_PSHORT_V16HI_UHI): Likewise.
27009 (VOID_FTYPE_PSHORT_V8HI_UQI): Likewise.
27010 (VOID_FTYPE_PCHAR_V64QI_UDI): Likewise.
27011 (VOID_FTYPE_PCHAR_V32QI_USI): Likewise.
27012 (VOID_FTYPE_PCHAR_V16QI_UHI): Likewise.
27013 (V64QI_FTYPE_PCV64QI_V64QI_UDI): Removed.
27014 (V32HI_FTYPE_PCV32HI_V32HI_USI): Likewise.
27015 (V32QI_FTYPE_PCV32QI_V32QI_USI): Likewise.
27016 (V16HI_FTYPE_PCV16HI_V16HI_UHI): Likewise.
27017 (V16QI_FTYPE_PCV16QI_V16QI_UHI): Likewise.
27018 (V8HI_FTYPE_PCV8HI_V8HI_UQI): Likewise.
27019 (VOID_FTYPE_PV32HI_V32HI_USI): Likewise.
27020 (VOID_FTYPE_PV16HI_V16HI_UHI): Likewise.
27021 (VOID_FTYPE_PV8HI_V8HI_UQI): Likewise.
27022 (VOID_FTYPE_PV64QI_V64QI_UDI): Likewise.
27023 (VOID_FTYPE_PV32QI_V32QI_USI): Likewise.
27024 (VOID_FTYPE_PV16QI_V16QI_UHI): Likewise.
27025 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Don't
27026 use UNSPEC_STOREU.
27027 (ix86_emit_restore_sse_regs_using_mov): Don't use UNSPEC_LOADU.
27028 (ix86_avx256_split_vector_move_misalign): Don't use unaligned
27029 load nor store.
27030 (ix86_expand_vector_move_misalign): Likewise.
27031 (bdesc_special_args): Use CODE_FOR_movvNXY_internal and pointer
27032 to scalar function prototype for unaligned load/store builtins.
27033 (ix86_expand_special_args_builtin): Updated.
27034 * config/i386/sse.md (UNSPEC_LOADU): Removed.
27035 (UNSPEC_STOREU): Likewise.
27036 (VI_ULOADSTORE_BW_AVX512VL): Likewise.
27037 (VI_ULOADSTORE_F_AVX512VL): Likewise.
27038 (ssescalarsize): Handle V4TI, V2TI and V1TI.
27039 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
27040 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
27041 (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Likewise.
27042 (<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask): Likewise.
27043 (<sse2_avx_avx512f>_loaddqu<mode><mask_name>): Likewise.
27044 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"): Likewise.
27045 (sse2_avx_avx512f>_storedqu<mode>): Likewise.
27046 (<avx512>_storedqu<mode>_mask): Likewise.
27047 (*sse4_2_pcmpestr_unaligned): Likewise.
27048 (*sse4_2_pcmpistr_unaligned): Likewise.
27049 (*mov<mode>_internal): Renamed to ...
27050 (mov<mode>_internal): This. Remove check of AVX and IAMCU on
27051 misaligned operand. Replace vmovdqu64 with vmovdqu<ssescalarsize>.
27052 (movsd/movhpd to movupd peephole): Don't use UNSPEC_LOADU.
27053 (movlpd/movhpd to movupd peephole): Don't use UNSPEC_STOREU.
27054
27055 2016-04-19 Richard Biener <rguenther@suse.de>
27056
27057 PR tree-optimization/70171
27058 * tree-ssa-phiprop.c: Include stor-layout.h.
27059 (phiprop_insert_phi): Handle the aggregate copy case.
27060 (propagate_with_phi): Likewise.
27061
27062 2016-04-19 Uros Bizjak <ubizjak@gmail.com>
27063
27064 * config/i386/i386.c (ix86_decompose_address): Use lowpart_subreg
27065 instead of simplify_gen_subreg (... , 0).
27066 (ix86_delegitimize_address): Ditto.
27067 (ix86_split_divmod): Ditto.
27068 (ix86_split_copysign_const): Ditto.
27069 (ix86_split_copysign_var): Ditto.
27070 (ix86_expand_args_builtin): Ditto.
27071 (ix86_expand_round_builtin): Ditto.
27072 (ix86_expand_special_args_builtin): Ditto.
27073 * config/i386/i386.md (TARGET_USE_VECTOR_FP_CONVERTS splitters): Ditto.
27074 (TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters and peephole2s): Ditto.
27075 (udivmodqi4): Ditto.
27076 (absneg splitters): Ditto.
27077 (*jcc_bt<mode>_1): Ditto.
27078
27079 2016-04-19 Richard Biener <rguenther@suse.de>
27080
27081 PR tree-optimization/70724
27082 * tree-ssa-sccvn.c (scc_vn_restore_ssa_info): Split SSA info
27083 restoring out from ...
27084 (free_scc_vn): ... here.
27085 * tree-ssa-sccvn.h (scc_vn_restore_ssa_info): Declare.
27086 * tres-ssa-pre.c (pass_pre::execute): Restore SSA info before
27087 tail merging.
27088 (pass_fre::execute): Restore SSA info.
27089
27090 2016-04-19 Richard Biener <rguenther@suse.de>
27091
27092 * gimple-walk.h (struct walk_stmt_info): Add stmt member.
27093 * gimple-walk.c (walk_gimple_op): Initialize it.
27094 (walk_gimple_asm): Set wi->is_lhs before each callback invocation.
27095 * tree-inline.c (remap_gimple_op_r): Set SSA_NAME_DEF_STMT when
27096 remapping SSA names of defs.
27097 (copy_bb): Remove walk over all SSA defs and SSA_NAME_DEF_STMT
27098 adjustment.
27099
27100 2016-04-18 Vladimir Makarov <vmakarov@redhat.com>
27101
27102 PR middle-end/70689
27103 * lra-constraints.c (equiv_substition_p): New.
27104 (process_alt_operands): Use it.
27105 (swap_operands): Swap it.
27106 (curr_insn_transform): Update it.
27107
27108 2016-04-18 Michael Matz <matz@suse.de>
27109
27110 * tree.h (TYPE_ALIGN, DECL_ALIGN): Return shifted amount.
27111 (SET_TYPE_ALIGN, SET_DECL_ALIGN): New.
27112 * tree-core.h (tree_type_common.align): Use bit-field.
27113 (tree_type_common.spare): New.
27114 (tree_decl_common.off_align): Make smaller.
27115 (tree_decl_common.align): Use bit-field.
27116
27117 * expr.c (expand_expr_addr_expr_1): Use SET_TYPE_ALIGN.
27118 * omp-low.c (install_var_field): Use SET_DECL_ALIGN.
27119 (scan_sharing_clauses): Ditto.
27120 (finish_taskreg_scan): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
27121 (omp_finish_file): Ditto.
27122 * stor-layout.c (do_type_align): Use SET_DECL_ALIGN.
27123 (layout_decl): Ditto.
27124 (relayout_decl): Ditto.
27125 (finalize_record_size): Use SET_TYPE_ALIGN.
27126 (finalize_type_size): Ditto.
27127 (finish_builtin_struct): Ditto.
27128 (layout_type): Ditto.
27129 (initialize_sizetypes): Ditto.
27130 * targhooks.c (std_gimplify_va_arg_expr): Use SET_TYPE_ALIGN.
27131 * tree-nested.c (insert_field_into_struct): Use SET_TYPE_ALIGN.
27132 (lookup_field_for_decl): Use SET_DECL_ALIGN.
27133 (get_chain_field): Ditto.
27134 (get_trampoline_type): Ditto.
27135 (get_nl_goto_field): Ditto.
27136 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
27137 SET_DECL_ALIGN.
27138 (unpack_ts_type_common_value_fields): Use SET_TYPE_ALIGN.
27139 * gimple-expr.c (copy_var_decl): Use SET_DECL_ALIGN.
27140 * tree.c (make_node_stat): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
27141 (build_qualified_type): Use SET_TYPE_ALIGN.
27142 (build_aligned_type, build_range_type_1): Ditto.
27143 (build_atomic_base): Ditto.
27144 (build_common_tree_nodes): Ditto.
27145 * cfgexpand.c (align_local_variable): Use SET_DECL_ALIGN.
27146 (expand_one_stack_var_at): Ditto.
27147 * coverage.c (build_var): Use SET_DECL_ALIGN.
27148 * except.c (init_eh): Ditto.
27149 * function.c (assign_parm_setup_block): Ditto.
27150 * symtab.c (increase_alignment_1): Ditto.
27151 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Ditto.
27152 * tree-vect-stmts.c (ensure_base_align): Ditto.
27153 * varasm.c (align_variable): Ditto.
27154 (assemble_variable): Ditto.
27155 (build_constant_desc): Ditto.
27156 (output_constant_def_contents): Ditto.
27157
27158 * config/arm/arm.c (arm_relayout_function): Use SET_DECL_ALIGN.
27159 * config/avr/avr.c (avr_adjust_type_node): Use SET_TYPE_ALIGN.
27160 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Ditto.
27161 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Ditto.
27162 * config/spu/spu.c (spu_build_builtin_va_list): Use SET_DECL_ALIGN.
27163
27164 2016-04-18 H.J. Lu <hongjiu.lu@intel.com>
27165
27166 PR target/70708
27167 * config/i386/sse.md (sse2_loadlpd): Accept load from "xm" and
27168 replace %vmovsd with "%vmovq".
27169 (vec_concatv2df): Likewise.
27170
27171 2016-04-18 Uros Bizjak <ubizjak@gmail.com>
27172
27173 * config/i386/mmx.md (*vec_extractv2sf_0): Use gen_lowpart.
27174 (*vec_extractv2si_0): Ditto.
27175 * config/i386/sse.md (*vec_extractv4sf_0): Ditto.
27176 (zero_extended_scalar_load_operand splitters): Ditto.
27177 (vec_extract splitters): Ditto.
27178 (*vec_extractv4si_0_zext): Ditto.
27179 (avx_<castmode><avxsizesuffix>_<castmode>): Use gen_lowpart
27180 and lowpart_subreg.
27181 (avx512f_<castmode><avxsizesuffix>_<castmode>): Ditto.
27182 (avx512f_<castmode><avxsizesuffix>_256<castmode>): Ditto.
27183 (*sse4_1_extractps): Use lowpart_subreg.
27184 * config/i386/i386.md (x87 floatsplitter): Use gen_lowpart.
27185
27186 2016-04-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27187
27188 * doc/install.texi (Specific, i?86-*-solaris2.10): Update gas and
27189 gld requirements.
27190 (Specific, *-*-solaris2*): Update Solaris 11 bundled gcc versions.
27191 Mention Solaris 11 packaging changes.
27192 Update gas and gld requirements.
27193 Remove reference to pre-Solaris 10 bug.
27194 (Specific, sparc-sun-solaris2*): Remove reference to pre-Solaris 10
27195 systems and bugs.
27196 (Specific, sparc64-*-solaris2*): Remove reference to bootstrap
27197 with cc.
27198
27199 2016-04-17 Jan Hubicka <jh@suse.cz>
27200
27201 * tree-ssa-loop-ivopts.c (avg_loop_niter): Use also
27202 max_loop_iterations_int.
27203
27204 2016-04-18 Richard Biener <rguenther@suse.de>
27205
27206 PR tree-optimization/43434
27207 * tree-ssa-structalias.c (struct vls_data): New.
27208 (visit_loadstore): Handle all pointer-based accesses.
27209 (compute_dependence_clique): Compute a bitmap of restrict tags
27210 assigned bases and pass it to visit_loadstore.
27211
27212 2016-04-18 Matthew Wahab <matthew.wahab@arm.com>
27213
27214 PR target/70711
27215 * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for armv8+crc,
27216 armv8.1-a and armv8.1-a+crc.
27217
27218 2016-04-18 Richard Biener <rguenther@suse.de>
27219
27220 PR tree-optimization/70701
27221 * tree-ssa-sccvn.c (vn_reference_lookup_3): Resolve fully constant
27222 references after translating through a memcpy.
27223
27224 2016-04-18 Richard Biener <rguenther@suse.de>
27225
27226 * tree-ssa-pre.c (postorder, postorder_num): Make locals ...
27227 (compute_antic): ... here. For partial antic use regular
27228 postorder and scrap iteration.
27229 (compute_partial_antic_aux): Remove unused return value.
27230 (init_pre): Do not allocate postorder.
27231 (fini_pre): Do not free postorder.
27232
27233 2016-04-18 Richard Biener <rguenther@suse.de>
27234
27235 PR middle-end/37870
27236 * expmed.c (extract_bit_field_1): Remove broken case
27237 using a wider MODE_INT mode.
27238
27239 2016-04-18 Segher Boessenkool <segher@kernel.crashing.org>
27240
27241 * has-brig.c (lendian16): Don't try to use __builtin_bswap16
27242 unless compiling with at least GCC-4.8.
27243
27244 2016-04-17 Jan Hubicka <jh@suse.cz>
27245
27246 PR bootstrap/70706
27247 * graphite.c (graphite_finalize): Update call to
27248 tree_estimate_probability.
27249 * predict.h (tree_estimate_probability): Update prototype.
27250
27251 2016-04-17 Jan Hubicka <jh@suse.cz>
27252
27253 * predict.c (combine_predictions_for_bb): Add dry_run parmaeter.
27254 (tree_estimate_probability): Likewise.
27255 (pass_profile::execute): Update.
27256 (report_predictor_hitrates): New function.
27257 * profile.c (compute_branch_probabilities): Use it.
27258 * predict.h (report_predictor_hitrates): Declare.
27259
27260 2016-04-17 Jan Hubicka <jh@suse.cz>
27261
27262 PR ipa/70018
27263 * cgraph.h (cgraph_node::set_const_flag,
27264 cgraph_node::set_pure_flag): Update prototype to return bool;
27265 update comment.
27266 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases): Thunks
27267 of interposable symbol are interposable, too.
27268 (cgraph_set_const_flag_1): Rename to ...
27269 (set_const_flag_1): ... this one; change to self recursive function
27270 instead of call_for_symbol_thunks_and_aliases. Handle correctly
27271 clearnig the flag in all variants and also virtual thunks of const
27272 functions are pure; track if any change was done.
27273 (cgraph_node::set_const_flag): Update.
27274 (struct set_pure_flag_info): New struct.
27275 (cgraph_set_pure_flag_1): Rename to ...
27276 (set_pure_flag_1): ... this one; take set_pure_flag_info parameter
27277 rather than pointer encoded flags; track if any changes was done;
27278 handle correctly clearning flag and setting flag of aliases already
27279 declared const.
27280 (cgraph_node::set_pure_flag): Update.
27281 (cgraph_node::set_nothrow_flag): Handle correctly clearning the flag.
27282
27283 2016-04-17 Tom de Vries <tom@codesourcery.com>
27284
27285 PR other/70433
27286 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Escape
27287 backslash in label.
27288
27289 2016-04-17 Tom de Vries <tom@codesourcery.com>
27290
27291 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Classify chars
27292 '{}<> ' as escape-for-record.
27293
27294 2016-04-17 Tom de Vries <tom@codesourcery.com>
27295
27296 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Simplify loop
27297 structure.
27298
27299 2016-04-17 Tom de Vries <tom@codesourcery.com>
27300
27301 PR other/70185
27302 * tree-pass.h (class opt_pass): Remove graph_dump_initialized member.
27303 * dumpfile.h (struct dump_file_info): Add graph_dump_initialized field.
27304 * dumpfile.c (dump_files): Initialize graph_dump_initialized field.
27305 * passes.c (finish_optimization_passes): Only call
27306 finish_graph_dump_file if dfi->graph_dump_initialized.
27307 (execute_function_dump, pass_init_dump_file): Use
27308 dfi->graph_dump_initialized instead of pass->graph_dump_initialized.
27309
27310 2016-04-17 Tom de Vries <tom@codesourcery.com>
27311
27312 PR tree-optimization/70256
27313 * tree-ssa-structalias.c (dump_varinfo, debug_varinfo, dump_varmap)
27314 (debug_varmap): New function.
27315
27316 2016-04-17 Tom de Vries <tom@codesourcery.com>
27317
27318 PR other/70183
27319 * passes.c (pass_manager::register_pass): Propagate pflags.
27320
27321 2016-04-17 Tom de Vries <tom@codesourcery.com>
27322
27323 PR other/68875
27324 * pass_manager.h (TERMINATE_PASS_LIST): Add pass argument.
27325 * passes.c (pass_manager::pass_manager): Declare and init p_start in
27326 INSERT_PASSES_AFTER. Add pass parameter to TERMINATE_PASS_LIST, and
27327 check if it's equal to p_start.
27328 * passes.def: Add arguments to TERMINATE_PASS_LISTs.
27329
27330 2016-04-15 Jan Hubicka <jh@suse.cz>
27331
27332 PR ipa/70018
27333 * cgraph.c (cgraph_set_const_flag_1): Only set as pure if
27334 function does not bind to current def.
27335 * ipa-pure-const.c (worse_state): Add FROM and TO parameters;
27336 handle conservatively calls to functions that does not need to bind
27337 to current def.
27338 (check_call): Update call of worse_state.
27339 (ignore_edge_for_nothrow): Update.
27340 (ignore_edge_for_pure_const): Likewise.
27341 (propagate_pure_const): Update calls to worse_state.
27342 (skip_function_for_local_pure_const): Reformat comments.
27343
27344 2016-04-15 Jan Hubicka <jh@suse.cz>
27345
27346 PR ipa/70018
27347 * cgraph.c (cgraph_node::get_availability): Add REF parameter.
27348 (cgraph_node::function_symbol): Likewise.
27349 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
27350 * cgraph.h (symtab_node::get_availabbility): Add REF parameter.
27351 (symtab_node::ultimate_alias_target): Add REF parameter.
27352 (symtab_node::binds_to_current_def_p): Declare.
27353 (symtab_node;:ultimate_alias_target_1): Add REF parameter.
27354 (cgraph_node::function_symbol): Likewise.
27355 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
27356 (cgraph_node::get_availability): Likewise.
27357 (cgraph_edge::binds_to_current_def_p): New inline function.
27358 (varpool_node::get_availability): Add REF parameter.
27359 (varpool_node::ultimate_alias_target): Likewise.
27360 * symtab.c (symtab_node::ultimate_alias_target_1): Likewise.
27361 (symtab_node::binds_to_current_def_p): Likewise.
27362 * varpool.c (varpool_node::get_availability): Likewise.
27363
27364 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
27365
27366 PR target/70662
27367 * config/i386/sse.md(define_insn "<avx512>_vec_dup<mode><mask_name>"):
27368 Fix mode size check.
27369
27370 2016-04-15 Jakub Jelinek <jakub@redhat.com>
27371
27372 * BASE-VER: Set to 7.0.0.
27373
27374 2016-04-15 Alexander Monakov <amonakov@ispras.ru>
27375
27376 * config/nvptx/nvptx.opt (moptimize): Add a period at end of help text.
27377
27378 2016-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27379
27380 * doc/invoke.texi (ARM Options): Add note on deprecation of pre-ARMv4T
27381 architecture revisions.
27382
27383 2016-04-15 Bernd Schmidt <bschmidt@redhat.com>
27384
27385 * config/i386/i386-protos.h (ix86_using_red_zone): Declare.
27386 * config/i386/i386.c (ix86_using_red_zone): No longer static.
27387 * config/i386/i386.md (stack decrement to push peepholes): Guard
27388 with !x86_using_red_zone ().
27389
27390 2016-04-15 Jakub Jelinek <jakub@redhat.com>
27391
27392 PR c++/70675
27393 * tree-pretty-print.c (do_niy): Add FLAGS argument, pass it down
27394 to dump_generic_node.
27395 (NIY): Pass also flags to do_niy.
27396
27397 2016-04-15 Thomas Schwinge <thomas@codesourcery.com>
27398
27399 * omp-low.c (simd_clone_struct_alloc, simd_clone_struct_copy)
27400 (simd_clone_vector_of_formal_parm_types)
27401 (simd_clone_clauses_extract, simd_clone_compute_base_data_type)
27402 (simd_clone_mangle, simd_clone_create)
27403 (simd_clone_adjust_return_type, create_tmp_simd_array)
27404 (simd_clone_adjust_argument_types, simd_clone_init_simd_arrays)
27405 (struct modify_stmt_info, ipa_simd_modify_stmt_ops)
27406 (ipa_simd_modify_function_body, simd_clone_linear_addend)
27407 (simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone)
27408 (pass_data_omp_simd_clone, class pass_omp_simd_clone)
27409 (pass_omp_simd_clone::gate, make_pass_omp_simd_clone): Move into...
27410 * omp-simd-clone.c: ... this new file.
27411 (simd_clone_vector_of_formal_parm_types): Make it static.
27412 * Makefile.in (OBJS): Add omp-simd-clone.o.
27413
27414 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
27415
27416 PR target/70662
27417 * config/i386/sse.md: Use proper memory operand modifiers.
27418
27419
27420 2016-04-15 Richard Biener <rguenther@suse.de>
27421 Alan Modra <amodra@gmail.com>
27422
27423 PR tree-optimization/70130
27424 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Detect
27425 when alignment stays not the same and no not use the realign
27426 scheme then.
27427
27428 2016-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
27429
27430 PR target/70669
27431 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
27432 direct move handlers for KFmode. Change TFmode handlers test from
27433 FLOAT128_IEEE_P to FLOAT128_VECTOR_P.
27434
27435 2016-04-14 Jakub Jelinek <jakub@redhat.com>
27436
27437 PR c++/70594
27438 * ipa-utils.h (polymorphic_ctor_dtor_p): New prototype.
27439 * ipa-polymorphic-call.c (polymorphic_ctor_dtor_p): New function.
27440 (inlined_polymorphic_ctor_dtor_block_p): Use it.
27441 * tree-ssa-live.c (remove_unused_scope_block_p): When
27442 in_ctor_dtor_block, avoid discarding not just BLOCKs with
27443 BLOCK_ABSTRACT_ORIGIN being FUNCTION_DECL, but even when
27444 block_ultimate_origin is FUNCTION_DECL.
27445 (remove_unused_locals): If current_function_decl is
27446 polymorphic_ctor_dtor_p, pass initial true to
27447 remove_unused_scope_block_p' is_ctor_dtor_block.
27448
27449 2016-04-14 Martin Sebor <msebor@redhat.com>
27450
27451 PR c++/69517
27452 PR c++/70019
27453 PR c++/70588
27454 * doc/extend.texi (Variable Length): Revert.
27455
27456 2016-04-14 Marek Polacek <polacek@redhat.com>
27457 Jan Hubicka <hubicka@ucw.cz>
27458
27459 PR c++/70029
27460 * tree.c (verify_type): Disable the canonical type of main variant
27461 check.
27462
27463 2016-04-14 Jason Merrill <jason@redhat.com>
27464
27465 * cfgexpand.c, expr.c: Revert previous change.
27466
27467 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
27468
27469 PR middle-end/70643
27470 * omp-low.c (lower_oacc_reductions): Check for TREE_CONSTANT
27471 when building a mem ref for the incoming reduction variable.
27472
27473 2016-04-14 Richard Biener <rguenther@suse.de>
27474
27475 PR tree-optimization/70614
27476 * tree-scalar-evolution.c (analyze_evolution_in_loop): Terminate
27477 loop if the evolution dropped to chrec_dont_know.
27478 (interpret_condition_phi): Likewise.
27479
27480 2016-04-14 Richard Biener <rguenther@suse.de>
27481
27482 PR tree-optimization/70623
27483 * tree-ssa-pre.c (changed_blocks): Make global ...
27484 (compute_antic): ... local here. Move and fix worklist
27485 handling here. Do not clear EDGE_DFS_BACK or call mark_dfs_back_edges.
27486 (compute_antic_aux): Add dumping for MAX assumed succs. Remove
27487 worklist handling, dump when ANTIC_IN changed.
27488 (compute_partial_antic_aux): Remove worklist handling.
27489 (init_pre): Do not compute post dominators. Add a comment about
27490 the CFG order chosen.
27491 (fini_pre): Do not free post dominators.
27492
27493 2016-04-13 Martin Sebor <msebor@redhat.com>
27494
27495 PR c++/69517
27496 PR c++/70019
27497 PR c++/70588
27498 * doc/extend.texi (Variable Length): Document C++ specifics.
27499
27500 2016-04-13 Jakub Jelinek <jakub@redhat.com>
27501
27502 PR c++/70641
27503 * ipa-pure-const.c (pass_nothrow::execute): Call maybe_clean_eh_stmt
27504 on all recursive call stmts. Return TODO_cleanup_cfg if any dead
27505 eh edges have been purged.
27506
27507 PR c++/70594
27508 * tree-sra.c (create_access_replacement,
27509 get_replaced_param_substitute): Set DECL_NAMELESS on repl if it
27510 gets fancy name.
27511 * tree-pretty-print.c (dump_fancy_name): New function.
27512 (dump_decl_name, dump_generic_node): Use it.
27513
27514 2016-04-13 Jason Merrill <jason@redhat.com>
27515
27516 * cfgexpand.c (pass_expand::execute): Handle attribute "abi warning".
27517 * expr.c (expand_expr_real_1): Likewise.
27518
27519 2016-04-13 Ilya Enkovich <ilya.enkovich@intel.com>
27520
27521 * config/i386/i386.md (kunpckhi): Swap operands.
27522 (kunpcksi): Likewise.
27523 (kunpckdi): Likewise.
27524 * config/i386/sse.md (vec_pack_trunc_qi): Likewise.
27525 (vec_pack_trunc_<mode>): Likewise.
27526
27527 2016-04-13 Jakub Jelinek <jakub@redhat.com>
27528
27529 PR debug/70628
27530 * explow.c (convert_memory_address_addr_space_1): Formatting fix.
27531
27532 PR middle-end/70633
27533 * gimplify.c (gimplify_init_constructor): Clear TREE_STATIC if
27534 gimplification turns some element into non-constant.
27535
27536 PR debug/70628
27537 * rtl.h (convert_memory_address_addr_space_1): New prototype.
27538 * explow.c (convert_memory_address_addr_space_1): No longer static,
27539 add NO_EMIT argument and don't call convert_modes if true, pass
27540 it down recursively, remove break after return.
27541 (convert_memory_address_addr_space): Adjust caller.
27542 * simplify-rtx.c (simplify_unary_operation_1): Call
27543 convert_memory_address_addr_space_1 instead of convert_memory_address,
27544 if it returns NULL, don't simplify.
27545
27546 2016-04-12 Eric Botcazou <ebotcazou@adacore.com>
27547
27548 PR target/70630
27549 * config/sparc/sparc.c (sparc_compute_frame_size): Add parentheses.
27550
27551 2016-04-12 Jakub Jelinek <jakub@redhat.com>
27552
27553 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
27554 Bump the upper SIMDLEN limits, so that if the return type or
27555 characteristic type if the return type is void can be passed in
27556 all available SSE2/AVX/AVX2/AVX512-F registers, the SIMDLEN is
27557 allowed.
27558
27559 2016-04-12 Michael Meissner <meissner@linux.vnet.ibm.com>
27560
27561 PR target/70640
27562 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2_internal):
27563 Do not use "=" constraint on an input constraint.
27564 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
27565 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
27566 (ieee_128bit_vsx_nabs<mode>2): Correct splitter so that it
27567 generates (neg (abs ...)) instead of (abs ...).
27568
27569 2016-04-12 Jakub Jelinek <jakub@redhat.com>
27570
27571 PR rtl-optimization/70596
27572 * lra-spills.c (spill_pseudos): Don't delete debug insns, instead
27573 just invalidate LRA data and reset them. Adjust dump wording.
27574
27575 2016-04-12 Martin Liska <mliska@suse.cz>
27576
27577 Revert
27578 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
27579
27580 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
27581 estimates here.
27582 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
27583 max_loop_iterations_int.
27584 (tree_unswitch_outer_loop): Likewise.
27585 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
27586 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
27587
27588 2016-04-12 Tom de Vries <tom@codesourcery.com>
27589
27590 PR tree-optimization/68756
27591 * graphite-isl-ast-to-gimple.c (copy_cond_phi_args): Use new_expr
27592 instead of new_name.
27593
27594 2016-04-12 Jakub Jelinek <jakub@redhat.com>
27595
27596 PR tree-optimization/70602
27597 * tree-sra.c (generate_subtree_copies): Don't write anything into
27598 constant pool decls.
27599
27600 * omp-low.c (lower_omp_target): Use GOMP_MAP_FIRSTPRIVATE_INT
27601 regardless whether there are depend clauses or not.
27602
27603 2016-04-11 Michael Meissner <meissner@linux.vnet.ibm.com>
27604
27605 PR target/70381
27606 * config/rs6000/rs6000.c (rs6000_opt_masks): Disable using the
27607 target attribute and pragma from changing the -mfloat128
27608 and -mfloat128-hardware options.
27609
27610 * doc/extend.texi (Additional Floating Types): Document PowerPC
27611 __float128 restrictions.
27612
27613 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
27614
27615 PR target/70133
27616 * config/aarch64/driver-aarch64.c
27617 (aarch64_get_extension_string_for_isa_flags): New.
27618 (arch_extension): Rename to...
27619 (aarch64_arch_extension): ...This.
27620 (ext_to_feat_string): Rename to...
27621 (aarch64_extensions): ...This.
27622 (aarch64_core_data): Keep track of architecture extension flags.
27623 (cpu_data): Rename to...
27624 (aarch64_cpu_data): ...This.
27625 (aarch64_arch_driver_info): Keep track of architecture extension
27626 flags.
27627 (get_arch_name_from_id): Rename to...
27628 (get_arch_from_id): ...This, change return type.
27629 (host_detect_local_cpu): Update and reformat for renames, handle
27630 extensions through common infrastructure.
27631
27632 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
27633
27634 PR target/70133
27635 * config/aarch64/aarch64-common.c (aarch64_option_extension): Keep
27636 track of a canonical flag name.
27637 (all_extensions): Likewise.
27638 (arch_to_arch_name): Also track extension flags enabled by the arch.
27639 (all_architectures): Likewise.
27640 (aarch64_parse_extension): Move to here.
27641 (aarch64_get_extension_string_for_isa_flags): Take a new argument,
27642 rework.
27643 (aarch64_rewrite_selected_cpu): Update for above change.
27644 * config/aarch64/aarch64-option-extensions.def: Rework the way flags
27645 are handled, such that the single explicit value enabled by an
27646 extension is kept seperate from the implicit values it also enables.
27647 * config/aarch64/aarch64-protos.h (aarch64_parse_opt_result): Move
27648 to here.
27649 (aarch64_parse_extension): New.
27650 * config/aarch64/aarch64.c (aarch64_parse_opt_result): Move from
27651 here to config/aarch64/aarch64-protos.h.
27652 (aarch64_parse_extension): Move from here to
27653 common/config/aarch64/aarch64-common.c.
27654 (aarch64_option_print): Update.
27655 (aarch64_declare_function_name): Likewise.
27656 (aarch64_start_file): Likewise.
27657 * config/aarch64/driver-aarch64.c (arch_extension): Keep track of
27658 the canonical flag for extensions.
27659 * config.gcc (aarch64*-*-*): Extend regex for capturing extension
27660 flags.
27661
27662 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
27663
27664 * config/aarch64/aarch64.h (AARCH64_FL_FOR_ARCH8_1): Also add
27665 AARCH64_FL_CRC.
27666
27667 2016-04-09 Tom de Vries <tom@codesourcery.com>
27668
27669 PR tree-optimization/68953
27670 * graphite-sese-to-poly.c (pdr_add_memory_accesses): Order accesses from
27671 first to last subscript.
27672
27673 2016-04-09 Jakub Jelinek <jakub@redhat.com>
27674
27675 PR tree-optimization/70586
27676 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Return false
27677 for any calls.
27678
27679 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
27680
27681 PR lto/70289
27682 PR ipa/70348
27683 PR tree-optimization/70373
27684 PR middle-end/70533
27685 PR middle-end/70534
27686 PR middle-end/70535
27687 * gimplify.c (gimplify_adjust_omp_clauses): Add or adjust data
27688 clauses for acc parallel reductions as necessary. Error on those
27689 that are private.
27690 * omp-low.c (scan_sharing_clauses): Don't install variables which
27691 are used in acc parallel reductions.
27692 (lower_rec_input_clauses): Remove dead code.
27693 (lower_oacc_reductions): Add support for reference reductions.
27694 (lower_reduction_clauses): Remove dead code.
27695 (lower_omp_target): Don't remap variables appearing in acc parallel
27696 reductions.
27697 * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): New macro.
27698
27699 2016-04-08 Jakub Jelinek <jakub@redhat.com>
27700
27701 PR middle-end/70593
27702 * tree-ssa-coalesce.c (build_ssa_conflict_graph): For stmt
27703 with multiple SSA_NAME defs, force the outputs other than first
27704 to be live before calling live_track_process_def on each output.
27705
27706 PR rtl-optimization/70574
27707 * fwprop.c (forward_propagate_and_simplify): Don't add
27708 REG_EQUAL note if DF_REF_REG (use) is a paradoxical subreg.
27709 (try_fwprop_subst): Don't add REG_EQUAL note if there are any
27710 paradoxical subregs within *loc.
27711
27712 2016-04-08 Thomas Schwinge <thomas@codesourcery.com>
27713
27714 * config/arc/arc.h (LINK_COMMAND_SPEC): Use gt to ignore
27715 -ftree-parallelize-loops={0,1}.
27716 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
27717 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
27718 * config/ia64/hpux.h (LIB_SPEC): Likewise.
27719 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
27720 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
27721
27722 2016-04-08 Maxim Ostapenko <m.ostapenko@samsung.com>
27723
27724 PR sanitizer/70541
27725 * asan.c (instrument_derefs): If we get unknown location, extract it
27726 with EXPR_LOCATION.
27727 (maybe_instrument_call): Instrument gimple_call's arguments if needed.
27728
27729 2016-04-08 Tom de Vries <tom@codesourcery.com>
27730
27731 * omp-low.c (lower_omp_target): Set TREE_NO_WARNING for oacc
27732 implicit firstprivate clause.
27733
27734 2016-04-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27735
27736 PR target/70566
27737 * config/arm/thumb2.md (tst + branch-> lsls + branch
27738 peephole below *orsi_not_shiftsi_si): Require that condition
27739 register is dead after the peephole.
27740 (second peephole after the above): Likewise.
27741
27742 2016-04-08 Alan Modra <amodra@gmail.com>
27743
27744 PR target/70117
27745 * builtins.c (fold_builtin_classify): For IBM extended precision,
27746 look at just the high-order double to test for NaN.
27747 (fold_builtin_interclass_mathfn): Similarly for Inf. For isnormal
27748 test just the high double for Inf but both doubles for subnormal
27749 limit.
27750
27751 2016-04-07 Jakub Jelinek <jakub@redhat.com>
27752
27753 * cgraph.h (struct cgraph_simd_clone): Add mask_mode field.
27754 * omp-low.c (simd_clone_init_simd_arrays, simd_clone_adjust): Handle
27755 node->simdclone->mask_mode != VOIDmode masks.
27756 (simd_clone_adjust_argument_types): Likewise. Move sc var definition
27757 earlier, use it instead of node->simdclone.
27758 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
27759 Set clonei->mask_mode.
27760
27761 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
27762
27763 PR c/70436
27764 * parser.c (cp_parser_iteration_statement): New parameter IF_P.
27765 Pass it through to cp_parser_already_scoped_statement.
27766 (cp_parser_already_scoped_statement): New parameter IF_P. Pass
27767 it through to cp_parser_statement.
27768 (cp_parser_statement): Pass IF_P through to
27769 cp_parser_iteration_statement.
27770 (cp_parser_pragma): Adjust call to
27771 cp_parser_iteration_statement.
27772
27773 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
27774
27775 PR c/70436
27776 * gimplify.c (gimplify_omp_ordered): Add explicit braces to
27777 resolve a future -Wparentheses warning.
27778 * omp-low.c (scan_sharing_clauses): Likewise.
27779 * tree-parloops.c (eliminate_local_variables): Likewise.
27780
27781 2016-04-06 Vladimir Makarov <vmakarov@redhat.com>
27782
27783 PR rtl-optimization/70398
27784 * lra-constraints.c (process_address_1): Check zero scale and code
27785 for reloading with zero scale.
27786
27787 2016-04-06 Uros Bizjak <ubizjak@gmail.com>
27788
27789 * config/i386/sse.md (shuffletype): Add V32HI and V4TI modes.
27790 (ssescalarsize): Add V8SF, V4SF, V4DF and V2DF modes.
27791
27792 2016-04-06 Jakub Jelinek <jakub@redhat.com>
27793
27794 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
27795 Add support for AVX512F clones, include them by default for
27796 exported OpenMP declare simd functions. For AVX2 allow simdlen 32
27797 and use it if charasteric type is 8-bit, for AVX512F allow simdlen
27798 up to 128.
27799
27800 PR middle-end/70550
27801 * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT): Define.
27802 * gimplify.c (gimplify_adjust_omp_clauses_1): Set it for implicit
27803 firstprivate clauses.
27804 * omp-low.c (lower_send_clauses): Set TREE_NO_WARNING for
27805 OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT !by_ref vars in task contexts.
27806 (lower_omp_target): Set TREE_NO_WARNING for
27807 non-addressable possibly uninitialized vars which are copied into
27808 addressable temporaries or copied for GOMP_MAP_FIRSTPRIVATE_INT.
27809
27810 2016-04-05 John David Anglin <danglin@gcc.gnu.org>
27811
27812 * config/pa/predicates.md (integer_store_memory_operand): Accept
27813 REG+D operands with a large offset when reload_in_progress is true.
27814 (floating_point_store_memory_operand): Likewise.
27815
27816 2016-04-05 Jakub Jelinek <jakub@redhat.com>
27817
27818 PR c++/70336
27819 * match.pd (nested int casts): Limit to GIMPLE.
27820
27821 2016-04-05 Jan Hubicka <hubicka@ucw.cz>
27822
27823 PR ipa/66223
27824 * ipa-devirt.c (maybe_record_node): Fix comment; use
27825 SANITIZE_UNREACHABLE instead of SANITIZE_UNDEFINED.
27826
27827 2016-04-05 Jakub Jelinek <jakub@redhat.com>
27828
27829 PR rtl-optimization/70542
27830 * ree.c (add_removable_extension): For VECTOR_MODE_P punt
27831 if there are any uses other than insn or debug insns.
27832
27833 2016-04-05 Marc Glisse <marc.glisse@inria.fr>
27834 Jakub Jelinek <jakub@redhat.com>
27835
27836 PR tree-optimization/70509
27837 * simplify-rtx.c (simplify_binary_operation_1) <case VEC_SELECT>:
27838 Shift HOST_WIDE_INT_1U instead of 1.
27839
27840 2016-04-05 Zdenek Sojka <zsojka@seznam.cz>
27841
27842 PR tree-optimization/70509
27843 * tree-ssa-forwprop.c (simplify_bitfield_ref): Use bitsize_int instead
27844 of the vector base type for index.
27845
27846 2016-04-05 Uros Bizjak <ubizjak@gmail.com>
27847
27848 PR target/70510
27849 * config/i386/sse.md (iptr): Add V64QI, V32HI, V16SI and V8DI modes.
27850
27851 2016-04-05 Richard Biener <rguenther@suse.de>
27852
27853 PR tree-optimization/70526
27854 * tree-sra.c (build_ref_for_offset): Use prev_base to
27855 extract the alias pointer type.
27856
27857 2016-04-05 Richard Biener <rguenther@suse.de>
27858
27859 * dse.c (struct store_info): Remove alias_set member.
27860 (struct read_info_type): Likewise.
27861 (clear_alias_group, clear_alias_mode_table, clear_alias_mode_holder,
27862 spill_deleted, clear_alias_set_lookup): Remove.
27863 (get_group_info): Remove dead base == NULL_RTX case.
27864 (dse_step0): Remove initialization of removed variables.
27865 (delete_dead_store_insn): Reomve alias set dumping.
27866 (free_read_records): Remove alias_set handling.
27867 (canon_address): Remove alias_set_out parameter.
27868 (record_store): Remove spill_alias_set, it's always zero.
27869 (check_mem_read_rtx): Likewise.
27870 (dse_step2): Rename from ...
27871 (dse_step2_nospill): ... this. Adjust.
27872 (scan_stores): Rename from ...
27873 (scan_stores_nospill): ... this.
27874 (scan_reads): Rename from ...
27875 (scan_reads_nospill): ... this.
27876 (scan_stores_spill, scan_reads_spill): Remove.
27877 (dse_step3_scan): Remove for_spills argument which is always false.
27878 (dse_step3): Likewise.
27879 (dse_step5): Rename from ...
27880 (dse_step5_nospill): ... this. Remove alias_set handling.
27881 (rest_of_handle_dse): Adjust.
27882
27883 2016-04-05 Jakub Jelinek <jakub@redhat.com>
27884
27885 PR target/70525
27886 * config/i386/sse.md (*andnot<mode>3): Simplify assertions.
27887 Use vpandn<ssemodesuffix> for V16SI/V8DImode, vpandnq for
27888 V32HI/V64QImode, don't use <mask_operand3_1>, fix up formatting.
27889 (*andnot<mode>3_mask): Remove insn with VI12_AVX512VL iterator.
27890
27891 2016-04-05 Richard Biener <rguenther@suse.de>
27892
27893 PR middle-end/70499
27894 * gimplify-me.c (gimple_regimplify_operands): Do not rewrite
27895 non-register type temporaries into SSA.
27896
27897 2016-04-04 Jan Hubicka <hubicka@ucw.cz>
27898
27899 PR ipa/66223
27900 * ipa-devirt.c (maybe_record_node): Do not optimize cxa_pure_virtual
27901 calls when sanitizing.
27902 (possible_polymorphic_call_target_p): Fix formatting.
27903
27904 2016-04-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27905 Jakub Jelinek <jakub@redhat.com>
27906
27907 PR middle-end/70457
27908 * tree-inline.c (estimate_num_insn): Use gimple_call_builtin_p
27909 to ensure a call statement is compatible with a built-in's
27910 prototype.
27911 * tree-ssa-math-opts.c (pass_optimize_windening_mul::execute):
27912 Likewise.
27913
27914 2016-04-04 Richard Biener <rguenther@suse.de>
27915
27916 PR rtl-optimization/70484
27917 * rtl.h (canon_output_dependence): Declare.
27918 * alias.c (canon_output_dependence): New function.
27919 * dse.c (record_store): Use canon_output_dependence rather
27920 than canon_true_dependence.
27921
27922 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
27923
27924 PR ipa/68881
27925 * cgraph.h (symtab_node::copy_visibility_from): New function.
27926 * symtab.c (symtab_node::copy_visibility_from): New function.
27927 * ipa-visibility.c (optimize_weakref): New function.
27928 (function_and_variable_visibility): Use it.
27929
27930 2016-04-04 Martin Liska <mliska@suse.cz>
27931
27932 PR hsa/70402
27933 * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Guard index
27934 value that is really in range handled by SBR instruction.
27935 * hsa-brig.c (emit_switch_insn): Do not emit unconditional jump.
27936 * hsa-dump.c (dump_hsa_insn_1): Do not dump default BB.
27937 * hsa.h (hsa_insn_sbr::m_default_bb): Remove field.
27938
27939 2016-04-03 Oleg Endo <olegendo@gcc.gnu.org>
27940
27941 PR target/70416
27942 PR target/67391
27943 * config/sh/sh.md (*addsi3): Allow pattern when reload_in_progress is
27944 set, but not for SP_REG operands.
27945
27946 2016-04-02 Martin Sebor <msebor@redhat.com>
27947
27948 PR c++/67376
27949 * fold-const.c (maybe_nonzero_address): New function.
27950 (fold_comparison): Call it. Fold equality and relational
27951 expressions involving null pointers.
27952 (tree_single_nonzero_warnv_p): Call maybe_nonzero_address.
27953
27954 2016-03-31 Evandro Menezes <e.menezes@samsung.com>
27955
27956 Fix the predicate "aarch64_simd_reg_or_zero" to correctly validate
27957 the "Y" constraint (scalar FP 0.0 immediate).
27958
27959 * config/aarch64/predicates.md (aarch64_simd_reg_or_zero):
27960 Add the "const_double" to the list of operand constraints.
27961
27962 2016-04-01 Jakub Jelinek <jakub@redhat.com>
27963
27964 PR rtl-optimization/70467
27965 * config/i386/i386.md (*add<dwi>3_doubleword, *sub<dwi>3_doubleword):
27966 If low word of the last operand is 0, just emit addition/subtraction
27967 for the high word.
27968
27969 2016-04-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27970
27971 PR target/70404
27972 * config/s390/s390.c (s390_expand_insv): Check for everything
27973 constant instead of just VOIDmode stuff.
27974
27975 2016-04-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27976
27977 PR target/70496
27978 * config/arm/arm.h (ASM_APP_OFF): Handle TARGET_ARM and TARGET_THUMB.
27979
27980 2016-04-01 Nathan Sidwell <nathan@acm.org>
27981
27982 * tree.def (TRY_CATCH_EXPR): Correct documentation.
27983
27984 2016-03-31 Vladimir Makarov <vmakarov@redhat.com>
27985
27986 PR rtl-optimization/70461
27987 * ira-color.c (allocno_copy_cost_saving): Use allocno class if it
27988 is necessary.
27989
27990 2016-03-31 Martin Liska <mliska@suse.cz>
27991
27992 PR hsa/70399
27993 * hsa-brig.c (hsa_op_immed::emit_to_buffer): Emit either
27994 a tree value or an immediate integer value to a buffer
27995 that is eventually copied to a BRIG section.
27996 (emit_immediate_operand): Call the function here.
27997 * hsa-dump.c (dump_hsa_immed): Remove checking assert.
27998 * hsa-gen.c (hsa_op_immed::hsa_op_immed): Remove initialization
27999 of class' fields that are removed.
28000 (hsa_op_immed::~hsa_op_immed): Remove deinitialization.
28001 * hsa.h (class hsa_op_immed): Remove m_brig_repr and
28002 m_brig_repr_size fields.
28003
28004 2016-03-31 Martin Liska <mliska@suse.cz>
28005
28006 PR hsa/70391
28007 * hsa-gen.c (hsa_function_representation::update_dominance): New
28008 function.
28009 (convert_addr_to_flat_segment): Likewise.
28010 (gen_hsa_memory_set): New alignment argument.
28011 (gen_hsa_ctor_assignment): Likewise.
28012 (gen_hsa_insns_for_single_assignment): Provide alignment
28013 to gen_hsa_ctor_assignment.
28014 (gen_hsa_insns_for_direct_call): Add new argument.
28015 (expand_lhs_of_string_op): New function.
28016 (expand_string_operation_builtin): Likewise.
28017 (expand_memory_copy): New function.
28018 (expand_memory_set): New function.
28019 (gen_hsa_insns_for_call): Use HOST_WIDE_INT.
28020 (convert_switch_statements): Change signature.
28021 (generate_hsa): Use a return value of the function.
28022 (pass_gen_hsail::execute): Do not call
28023 convert_switch_statements here.
28024 * hsa-regalloc.c (hsa_regalloc): Call update_dominance.
28025 * hsa.h (hsa_function_representation::m_modified_cfg): New flag.
28026 (hsa_function_representation::update_dominance): New function.
28027
28028 2016-03-31 Martin Liska <mliska@suse.cz>
28029
28030 PR hsa/70391
28031 * hsa-brig.c (emit_directive_variable): Emit alignment
28032 according to hsa_symbol::m_align.
28033 * hsa-dump.c (hsa_byte_alignment): Move the function to another file.
28034 (dump_hsa_symbol): Dump alignment of HSA symbols.
28035 * hsa-gen.c (get_symbol_for_decl): Set-up alignment of a symbol.
28036 (gen_hsa_addr_with_align): New function.
28037 (hsa_bitmemref_alignment): Use newly added function.
28038 (gen_hsa_insns_for_load): Likewise.
28039 (gen_hsa_insns_for_store): Likewise.
28040 (gen_hsa_memory_copy): New argument added.
28041 (gen_hsa_insns_for_single_assignment): Respect
28042 alignment for assignments processed via gen_hsa_memory_copy.
28043 (gen_hsa_insns_for_direct_call): Likewise.
28044 (gen_hsa_insns_for_return): Likewise.
28045 (gen_function_def_parameters): Set default alignment.
28046 * hsa.c (hsa_object_alignment): New function.
28047 (hsa_byte_alignment): Pasted function.
28048 * hsa.h (hsa_symbol::m_align): New field.
28049
28050 2016-03-31 Bin Cheng <bin.cheng@arm.com>
28051
28052 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Initialize
28053 scratch field for goto case.
28054
28055 2016-03-31 James Greenhalgh <james.greenhalgh@arm.com>
28056
28057 * config/arm/linux-elf.h (ASM_OUTPUT_DEF): Delete.
28058
28059 2016-03-31 Ilya Enkovich <enkovich.gnu@gmail.com>
28060
28061 PR target/70442
28062 * config/i386/i386.c (scalar_chain::convert_op): Fix description.
28063 (scalar_chain::convert_insn): Call convert_op for reg
28064 moves to handle undefined registers.
28065
28066 2016-03-31 Nathan Sidwell <nathan@acm.org>
28067
28068 PR c++/70393
28069 * varasm.c (output_constructor_regular_field): Flush bitfield earlier.
28070 Assert we don't want to move backwards.
28071
28072 2016-03-31 Kirill Yukhin <kirill.yukhin@intel.com>
28073
28074 PR target/70453
28075 * config/i386/sse.md (define_mode_attr shuffletype): Fix typo.
28076
28077 2016-03-31 Jakub Jelinek <jakub@redhat.com>
28078
28079 PR rtl-optimization/70460
28080 * ira.c (indirect_jump_optimize): Don't substitute LABEL_REF
28081 with operand from REG_LABEL_OPERAND, instead substitute
28082 SET_SRC or REG_EQUAL note content if it is a LABEL_REF.
28083 Don't do anything for REG_NON_LOCAL_GOTO jumps.
28084
28085 2016-03-31 Martin Liska <mliska@suse.cz>
28086
28087 * passes.c (execute_one_pass): Do not call
28088 todo_after for a discarded function.
28089
28090 2016-03-31 Bin Cheng <bin.cheng@arm.com>
28091
28092 * tree-ssa-loop-ivopts.c (struct comp_cost): New scrach field.
28093 (no_cost, infinite_cost): Initialize the new field.
28094 (get_computation_cost_at): Record setup cost.
28095 (determine_use_iv_cost_address): Skip cost computation for sub
28096 uses if we can estimate it without losing accuracy.
28097
28098 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
28099
28100 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
28101 estimates here.
28102 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
28103 max_loop_iterations_int.
28104 (tree_unswitch_outer_loop): Likewise.
28105 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
28106 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
28107
28108 2016-03-30 Richard Biener <rguenther@suse.de>
28109
28110 PR middle-end/70450
28111 * fold-const.c (extract_muldiv_1): Fix thinko in wide_int::from usage.
28112
28113 2016-03-30 Jakub Jelinek <jakub@redhat.com>
28114
28115 PR target/70421
28116 * config/i386/i386.c (ix86_expand_vector_set): Fix up argument order
28117 in gen_blendm expander.
28118
28119 2016-03-30 Nick Clifton <nickc@redhat.com>
28120
28121 PR target/62254
28122 * config/arm/arm.c (arm_reload_out_hi): Add code to handle the
28123 case where we are already provided with an SImode SUBREG.
28124
28125 2016-03-30 H.J. Lu <hongjiu.lu@intel.com>
28126
28127 PR target/70439
28128 * config/i386/i386.c (ix86_expand_epilogue): Properly check
28129 conflict between DRAP register and __builtin_eh_return.
28130
28131 2016-03-30 Michael Matz <matz@suse.de>
28132 Richard Biener <rguenther@suse.de>
28133
28134 PR ipa/12392
28135 * ipa-polymorphic-call.c (struct type_change_info): Change
28136 speculative to an unsigned allowing to limit the work we do.
28137 (csftc_abort_walking_p): New inline function..
28138 (check_stmt_for_type_change): Limit the number of may-defs
28139 skipped for speculative devirtualization to
28140 max-speculative-devirt-maydefs.
28141 * params.def (max-speculative-devirt-maydefs): New param.
28142 * doc/invoke.texi (--param max-speculative-devirt-maydefs): Document.
28143
28144 2016-03-30 Mike Stump <mrs@gcc.gnu.org>
28145
28146 PR target/63890
28147 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use when profiling
28148 and TARGET_MACHO.
28149
28150 2016-03-30 Patrick Palka <ppalka@gcc.gnu.org>
28151
28152 PR tree-optimization/59124
28153 * tree-vrp.c (register_edge_assert_for_2): For NAME != CST1
28154 where NAME = A +- CST2 add the assertion A != (CST1 -+ CST2).
28155
28156 2016-03-29 Jeff Law <law@redhat.com>
28157
28158 * tree-ssa-coalesce.c (struct ssa_conflicts): Fix typo in comment.
28159
28160 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
28161
28162 * tree-ssa-loop-ivcanon.c (try_peel_loop): Change type of peel
28163 to HOST_WIDE_INT.
28164
28165 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
28166
28167 * config/gnu.h (CPP_SPEC, LIB_SPEC): Don't override.
28168 * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt1.o instead of
28169 gcrt0.o if linking dynamically.
28170
28171 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
28172
28173 PR ipa/70283
28174 * ipa-devirt.c (methods_equal_p): New function.
28175 (compare_virtual_tables): Use it.
28176 * cgraph.h (symbol_table::symbol_suffix_separator): Declare.
28177 * cgraphclones.c (clone_function_name_1): Use
28178 symbol_table::symbol_suffix_separator.
28179 * coverage.c (build_var): Likewise.
28180 * symtab.c (symbol_table::symbol_suffix_separator): New.
28181
28182 2016-03-29 Jakub Jelinek <jakub@redhat.com>
28183
28184 PR rtl-optimization/70429
28185 * combine.c (simplify_shift_const_1): For ASHIFTRT don't optimize
28186 (cst1 >> count) >> cst2 into (cst1 >> cst2) >> count if
28187 mode != result_mode.
28188
28189 PR c++/70353
28190 * tree-inline.c (remap_decls): Don't add_local_decl if cfun is null.
28191
28192 PR tree-optimization/70405
28193 * ssa-iterators.h (num_imm_uses): Add missing braces.
28194
28195 2016-03-29 Vladimir Makarov <vmakarov@redhat.com>
28196
28197 PR rtl-optimization/68695
28198 * ira-color.c (allocno_copy_cost_saving): New.
28199 (improve_allocation): Use it.
28200
28201 2016-03-29 Richard Henderson <rth@redhat.com>
28202
28203 PR middle-end/70355
28204 * lower-subreg.c (simplify_subreg_concatn): Reject paradoxical subregs.
28205
28206 2016-03-29 Richard Biener <rguenther@suse.de>
28207
28208 PR middle-end/70424
28209 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Always
28210 use alignment returned by get_pointer_alignment_1 if it is
28211 bigger than BITS_PER_UNIT.
28212 * builtins.c (get_pointer_alignment_1): Do not return true
28213 for alignment extracted from SSA info.
28214
28215 2016-03-28 James Bowman <james.bowman@ftdichip.com>
28216
28217 * config/ft32/ft32.opt (mnodiv): New.
28218 * config/ft32/ft32.md (*divsi3, *modsi3): Qualify with TARGET_NODIV.
28219 * doc/invoke.texi (FT32 Options -mnodiv): New.
28220
28221 2016-03-28 Kirill Yukhin <kirill.yukhin@intel.com>
28222
28223 PR target/70406
28224 * config/i386/i386.md (define_split, andn): Fix modes.
28225
28226 2016-03-26 Richard Biener <rguenther@suse.de>
28227 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
28228
28229 PR ipa/70366
28230 * ipa-inline-transform.c (inline_call): Pass opts_for_fn (to->decl)
28231 instead of
28232 TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (to->decl))
28233 as 2nd argument to cl_optimization_restore().
28234
28235 2016-03-25 Richard Henderson <rth@redhat.com>
28236
28237 PR target/70120
28238 * config/aarch64/aarch64.c (aarch64_asm_output_pool_epilogue): New.
28239 * config/aarch64/aarch64-protos.h: Declare it.
28240 * config/aarch64/aarch64.h (ASM_OUTPUT_POOL_EPILOGUE): New.
28241
28242 2016-03-25 Alan Modra <amodra@gmail.com>
28243
28244 PR target/70052
28245 * config/rs6000/constraints.md (j): Simplify.
28246 * config/rs6000/predicates.md (easy_fp_constant): Exclude
28247 decimal float 0.D.
28248 * config/rs6000/rs6000.md (zero_fp): New mode_attr.
28249 (mov<mode>_hardfloat, mov<mode>_hardfloat32, mov<mode>_hardfloat64,
28250 mov<mode>_64bit_dm, mov<mode>_32bit): Use zero_fp in place of j
28251 in all constraint alternatives.
28252 (movtd_64bit_nodm): Delete "j" constraint alternative.
28253
28254 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
28255
28256 * tree-ssa-propagate.c: Enhance docs for
28257 SSA_PROP_NOT_INTERESTING.
28258
28259 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
28260
28261 * doc/extend.texi: Fix typo in documentation to pure attribute.
28262
28263 2016-03-24 John David Anglin <danglin@gcc.gnu.org>
28264
28265 PR target/70319
28266 * config/pa/pa.md (bswapdi2): Use a scratch register.
28267
28268 2016-03-24 Richard Henderson <rth@redhat.com>
28269
28270 PR middle-end/69845
28271 * fold-const.c (extract_muldiv_1): Correct test for multiplication
28272 overflow.
28273
28274 2016-03-24 Uros Bizjak <ubizjak@gmail.com>
28275
28276 * config/i386/i386.md (*anddi3_doubleword): Generate AND insn
28277 using ix86_expand_binary_operator instead of gen_andsi3.
28278
28279 2016-03-24 Richard Biener <rguenther@suse.de>
28280
28281 PR tree-optimization/70396
28282 * tree-vect-stmts.c (vectorizable_comparison): Use
28283 get_vectype_for_scalar_type.
28284
28285 2016-03-24 Richard Biener <rguenther@suse.de>
28286
28287 PR middle-end/70370
28288 * gimplify.c (gimplify_asm_expr): Handle !allows_mem outputs
28289 with register bases.
28290
28291 2016-03-24 Richard Biener <rguenther@suse.de>
28292
28293 PR tree-optimization/70372
28294 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Use
28295 build_all_ones_cst to also handle vector types correctly.
28296
28297 2016-03-23 Michael Meissner <meissner@linux.vnet.ibm.com>
28298
28299 PR target/70381
28300 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Do not set
28301 -mfloat128 here.
28302
28303 2016-03-23 Marek Polacek <polacek@redhat.com>
28304
28305 PR c++/69884
28306 * doc/invoke.texi: Document -Wignored-attributes.
28307
28308 2016-03-23 Bin Cheng <bin.cheng@arm.com>
28309
28310 PR tree-optimization/69042
28311 * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND): Increase the
28312 parameter from 30 to 40.
28313
28314 2016-03-23 Bin Cheng <bin.cheng@arm.com>
28315
28316 PR tree-optimization/69042
28317 * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Add IV cand
28318 for use with constant offset stripped in base.
28319
28320 2016-03-23 Richard Biener <rguenther@suse.de>
28321
28322 PR middle-end/70251
28323 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Adjust
28324 mode compatibility check.
28325 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
28326
28327 2016-03-23 Jeff Law <law@redhat.com>
28328
28329 PR tree-optimization/64058
28330 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field
28331 CONFLICT_COUNT.
28332 (struct ssa_conflicts): Move up earlier in the file.
28333 (conflicts_, var_map_): New static variables.
28334 (initialize_conflict_count): New function to initialize the
28335 CONFLICT_COUNT field for each conflict pair.
28336 (compare_pairs): Lazily initialize the conflict count and use it
28337 as the first tie-breaker.
28338 (sort_coalesce_list): Add new arguments conflicts, map. Initialize
28339 and wipe conflicts_ and map_ around the call to qsort. Remove
28340 special case for 2 coalesce pairs.
28341 * bitmap.c (bitmap_count_unique_bits): New function.
28342 (bitmap_count_bits_in_word): New function, extracted from
28343 bitmap_count_bits.
28344 (bitmap_count_bits): Use bitmap_count_bits_in_word.
28345 * bitmap.h (bitmap_count_unique_bits): Declare it.
28346
28347 2016-03-23 Ilya Enkovich <enkovich.gnu@gmail.com>
28348
28349 PR target/69917
28350 * config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Follow
28351 transparent alias chain for decl assembler name.
28352 * config/sol2.c (solaris_assemble_visibility): Likewise.
28353
28354 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28355
28356 * config/arm/arm1020e.md (1020call_op): Reduce reservation
28357 duration.
28358 (v10_fdivs): Likewise.
28359 (v10_fdivd): Likewise.
28360
28361 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28362
28363 PR driver/70132
28364 * config/arm/driver-arm.c (host_detect_local_cpu): Reorder exit logic
28365 to not call fclose twice on file.
28366
28367 2016-03-23 Jakub Jelinek <jakub@redhat.com>
28368
28369 PR tree-optimization/70354
28370 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
28371 oprnd0 is wider than oprnd1 and there is a cast from the wider
28372 type to oprnd1, mask it with the mask of the narrower type.
28373
28374 PR target/70321
28375 * config/i386/i386.md (*anddi3_doubleword, *<code>di3_doubleword):
28376 Optimize TARGET_STV splitters, if high or low word of last argument
28377 is 0 or -1.
28378
28379 2016-03-22 Jeff Law <law@redhat.com>
28380
28381 PR target/70232
28382 tree-ssa-threadbackward.c
28383 (fsm_find_control_statement_thread_paths): Correctly distinguish
28384 between old style jump threads vs FSM jump threads.
28385
28386 2016-03-22 Ilya Enkovich <enkovich.gnu@gmail.com>
28387
28388 PR target/70302
28389 * config/i386/i386.c (scalar_chain::convert_op): Support
28390 uninitialized register usage case.
28391
28392 2016-03-22 Richard Biener <rguenther@suse.de>
28393
28394 PR middle-end/70251
28395 * genmatch.c (gen_transform): Adjust last parameter to a three-state
28396 int...
28397 (capture::gen_transform): ... to change behavior when substituting
28398 a condition into cond or not-cond expr context.
28399 (dt_simplify::gen_1): Adjust.
28400 * gimple-match-head.c: Include gimplify.h for unshare_expr.
28401 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Revert
28402 last change and instead change to
28403 A + (B vcmp C ? 1 : 0) -> A - (B vcmp C ? -1 : 0).
28404 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
28405
28406 2016-03-22 Anthony Green <green@moxielogic.com>
28407
28408 * config/moxie/moxiebox.h (CC1_SPEC): Define. Fix endianness
28409 issue for moxiebox targets.
28410 (CC1PLUS_SPEC): Ditto.
28411
28412 2016-03-22 Richard Biener <rguenther@suse.de>
28413
28414 PR middle-end/70333
28415 * fold-const.c (extract_muldiv_1): Properly perform multiplication
28416 in the wide type.
28417
28418 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
28419
28420 * config/i386/i386.c (def_builtin): Remove duplicated functionality.
28421
28422 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
28423
28424 PR target/70325
28425 * config/i386/i386.c (def_builtin): Handle
28426 OPTION_MASK_ISA_AVX512VL to be and-ed with other
28427 bits.
28428 (const struct builtin_description bdesc_special_args[]):
28429 Remove duplicate ISA bits.
28430
28431 2016-03-22 Jakub Jelinek <jakub@redhat.com>
28432
28433 PR target/70329
28434 * config/i386/i386.c (ix86_expand_vecop_qihi): Don't bother computing
28435 d.perm[i] for i >= d.nelt. If not full_interleave, compute d.perm[i]
28436 in a way that works also for AVX512BW.
28437
28438 PR target/70300
28439 * config/i386/i386.md (cvtsd2ss splitter): Unpack in destination
28440 instead of source if operands[1] is xmm16 and above and
28441 !TARGET_AVX512VL. Use avx512f_vec_dupv16sf_1 instead of
28442 vec_interleave_lowv4sf if we need to unpack xmm16 and above.
28443
28444 PR c++/70295
28445 * gimplify.c (gimplify_modify_expr): Call gimple_set_no_warning
28446 on assign if (*from_p) is a comparison, set it to
28447 TREE_NO_WARNING (*from_p).
28448
28449 2016-03-21 Jakub Jelinek <jakub@redhat.com>
28450
28451 PR middle-end/70326
28452 * lra.c (restore_scratches): Ignore deleted insns.
28453
28454 2016-03-21 Marc Glisse <marc.glisse@inria.fr>
28455 Jakub Jelinek <jakub@redhat.com>
28456
28457 PR tree-optimization/70317
28458 * match.pd (cmp @0 @0): Pass @0 instead of TYPE_MODE (TREE_TYPE (@0))
28459 to HONOR_NANS.
28460
28461 2016-03-21 Uros Bizjak <ubizjak@gmail.com>
28462
28463 PR target/70327
28464 * config/i386/i386.md (movxi): Use ix86_expand_vector_move instead
28465 of ix86_expand_move.
28466 (movoi): Ditto.
28467 (movti): Use general_operand for operand 1 predicate.
28468
28469 2016-03-21 Martin Liska <mliska@suse.cz>
28470
28471 * hsa-dump.c (dump_hsa_insn_1): dump default branch of SBR
28472 insns.
28473 (dump_hsa_symbol): Dump BRIG offset of hsa_symbols.
28474
28475 2016-03-21 Martin Liska <mliska@suse.cz>
28476
28477 PR ipa/70306
28478 * ipa-icf.c (sem_function::parse): Skip static
28479 constructors and destructors.
28480
28481 2016-03-21 Jakub Jelinek <jakub@redhat.com>
28482
28483 PR target/70296
28484 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If IDENT is
28485 function-like macro, peek following token(s) if it is followed
28486 by CPP_OPEN_PAREN token with optional padding in between, and
28487 if not, don't treat it like a macro.
28488
28489 2016-03-21 Thomas Schwinge <thomas@codesourcery.com>
28490 Alexander Monakov <amonakov@ispras.ru>
28491
28492 * config/nvptx/nvptx.c (nvptx_option_override): Don't emit sorry
28493 for the stabs debug format.
28494
28495 2016-03-21 Richard Biener <rguenther@suse.de>
28496
28497 PR tree-optimization/70310
28498 * tree-vect-generic.c (expand_vector_condition): Fold the built
28499 condition.
28500
28501 2016-03-21 Kirill Yukhin <kirill.yukhin@intel.com>
28502
28503 PR target/70293
28504 * config/i386/sse.md (define_insn "*vec_dup<mode>"/AVX2):
28505 Block third alternative for AVX-512VL target,
28506
28507 2016-03-21 Martin Liska <mliska@suse.cz>
28508
28509 PR hsa/70234
28510 * hsa-brig.c (emit_function_directives): Mark unemitted
28511 global variables for emission.
28512 * hsa-gen.c (hsa_symbol::hsa_symbol): Initialize a new flag.
28513 (get_symbol_for_decl): Likewise.
28514 * hsa.h (struct hsa_symbol): New flag.
28515
28516 2016-03-21 Richard Biener <rguenther@suse.de>
28517
28518 PR tree-optimization/70288
28519 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Make sure
28520 we do not estimate unsimplified all-constant conditionals or
28521 switches as optimized away.
28522
28523 2016-03-21 Andrey Belevantsev <abel@ispras.ru>
28524
28525 PR rtl-optimization/69102
28526 * sched-deps.c (sched_analyze_insn): Do not set last_args_size field
28527 when we have a readonly dependency context.
28528
28529 2016-03-18 Jeff Law <law@redhat.com>
28530
28531 PR rtl-optimization/70263
28532 * ira.c (memref_used_between_p): Assert we found END in the insn chain.
28533 (update_equiv_regs): When trying to move a store to after the insn
28534 that sets the source of the store, make sure the store occurs after
28535 the insn that sets the source of the store. When successful note
28536 the REG_EQUIV note created in the dump file.
28537
28538 2016-03-16 David Wohlferd <dw@LimeGreenSocks.com>
28539 Bernd Schmidt <bschmidt@redhat.com>
28540
28541 * doc/extend.texi: Document more potential problems with basic asms.
28542
28543 2016-03-18 Bernd Schmidt <bschmidt@redhat.com>
28544
28545 PR rtl-optimization/70278
28546 * lra-constraints.c (split_reg): Handle the case where biggest_mode is
28547 VOIDmode.
28548
28549 2016-03-18 Jason Merrill <jason@redhat.com>
28550
28551 * calls.c (load_register_parameters): Fix zero size sibcall logic.
28552
28553 2016-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
28554
28555 * config/i386/sse.md: Use vpbroadcastq for broadcasting DF
28556 values to 128b regs.
28557
28558 2016-03-18 Ilya Enkovich <enkovich.gnu@gmail.com>
28559
28560 PR tree-optimization/70252
28561 * tree-vect-stmts.c (supportable_widening_operation): Check resulting
28562 boolean vector has a proper number of elements.
28563 (supportable_narrowing_operation): Likewise.
28564
28565 2016-03-18 Tom de Vries <tom@codesourcery.com>
28566
28567 PR ipa/70269
28568 * cgraph.c (cgraph_node::get_body): Set dump_file to NULL after save.
28569
28570 2016-03-18 Jakub Jelinek <jakub@redhat.com>
28571
28572 * reload1.c (emit_input_reload_insns): Use simplify_replace_rtx
28573 instead of replace_rtx for DEBUG_INSNs.
28574
28575 2016-03-18 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
28576
28577 * config/i386/znver1.md : Fix latencies of FP/SSE/AVX
28578 load type reservations.
28579
28580 2016-03-17 John David Anglin <danglin@gcc.gnu.org>
28581
28582 PR target/70188
28583 * config/pa/constraints.md: Revert 2015-02-13 change. Use
28584 define_constraint for "Q" and "T" constraints.
28585
28586 2016-03-17 Evandro Menezes <e.menezes@samsung.com>
28587
28588 Tweak the pipeline model for Exynos M1
28589
28590 * config/aarch64/aarch64.c (exynosm1_tunings): Enable weak prefetching
28591 model.
28592
28593 2016-03-17 David Malcolm <dmalcolm@redhat.com>
28594
28595 PR c/70264
28596 * diagnostic-show-locus.c (compatible_locations_p): Handle the case
28597 where one or both locations aren't within a line_map.
28598
28599 2016-03-17 H.J. Lu <hongjiu.lu@intel.com>
28600
28601 PR driver/70192
28602 * opts.c (finish_options): Don't set flag_pie to the default if
28603 -fpic, -fPIC, -fno-pic or -fno-PIC is used. Set flag_pic to 0
28604 if it is -1.
28605
28606 2016-03-17 Joern Rennecke <joern.rennecke@embecosm.com>
28607
28608 * config/i386/i386.md (*movv4qicc_insn+1..36): Pass
28609 true as ALL_REGS argument to replace_rtx.
28610
28611 2016-03-17 Richard Biener <rguenther@suse.de>
28612
28613 PR debug/70271
28614 * dwarf2out.c (dwarf2out_early_finish): Process deferred_asm_name
28615 last.
28616
28617 2016-03-17 Jakub Jelinek <jakub@redhat.com>
28618
28619 PR target/70245
28620 * rtl.h (replace_rtx): Add ALL_REGS argument.
28621 * rtlanal.c (replace_rtx): Likewise. If true, use REGNO
28622 equality and assert mode is the same, instead of just rtx pointer
28623 equality.
28624 * config/i386/i386.md (mov + arithmetics with load peephole): Pass
28625 true as ALL_REGS argument to replace_rtx.
28626
28627 2016-03-17 Ilya Enkovich <enkovich.gnu@gmail.com>
28628
28629 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Apply
28630 for boolean vector with vector mode only.
28631 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
28632
28633 2016-03-17 Nick Clifton <nickc@redhat.com>
28634
28635 PR target/70162
28636 * config/rx/rx.c (rx_print_integer): Print negative constants in
28637 decimal.
28638
28639 2016-03-17 Jakub Jelinek <jakub@redhat.com>
28640
28641 PR target/70261
28642 * rtlanal.c (replace_rtx): Revert 2016-03-16 change.
28643
28644 2016-03-16 Richard Henderson <rth@redhat.com>
28645 Richard Biener <rguenth@suse.de>
28646
28647 PR middle-end/70240
28648 PR middle-end/68215
28649 PR tree-opt/68714
28650 * gimplify.c (gimplify_expr) [VEC_COND_EXPR]: Gimplify the
28651 first operand as is_gimple_condexpr.
28652
28653 PR middle-end/70240
28654 PR middle-end/68215
28655 Revert r231575
28656 2015-12-11 Eric Botcazou <ebotcazou@adacore.com>
28657 * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
28658 Do not gimplify the result.
28659 (do_unop): Adjust call to tree_vec_extract.
28660 (do_binop): Likewise.
28661 (do_compare): Likewise.
28662 (do_plus_minus): Likewise.
28663 (do_negate): Likewise.
28664 (expand_vector_condition): Likewise.
28665 (do_cond): Likewise.
28666
28667 2016-03-16 Richard Henderson <rth@redhat.com>
28668
28669 PR target/70048
28670 * config/aarch64/aarch64.c (virt_or_elim_regno_p): New.
28671 (aarch64_classify_address): Use it.
28672 (aarch64_legitimize_address): Force all subexpressions of PLUS
28673 into registers. Simplify as (sfp+const)+reg or (reg+reg)+const.
28674
28675 2016-03-16 Jakub Jelinek <jakub@redhat.com>
28676 Richard Biener <rguenth@suse.de>
28677
28678 PR target/70245
28679 * rtlanal.c (replace_rtx): For REG, if from is a REG,
28680 return to even if only REGNO is equal, and assert
28681 mode is the same.
28682
28683 2016-03-11 Jeff Law <law@redhat.com>
28684
28685 PR rtl-optimization/70224
28686 * reorg.c (relax_delay_slots): Pass right argument to CROSSING_JUMP_P.
28687
28688 2016-03-16 Richard Henderson <rth@redhat.com>
28689
28690 PR middle-end/70199
28691 * function.h (struct function): Add has_forced_label_in_static.
28692 * gimplify.c (force_labels_r): Set it.
28693 * lto-streamer-in.c (input_struct_function_base): Read it.
28694 * lto-streamer-out.c (output_struct_function_base): Write it.
28695 * tree-inline.c (has_label_address_in_static_1): Remove.
28696 (copy_forbidden): Remove fndecl parameter; test
28697 has_forced_label_in_static.
28698 (inline_forbidden_p): Update call to copy_forbidden.
28699 (tree_versionable_function_p): Likewise.
28700 * ipa-chkp.c (chkp_instrumentable_p): Likewise.
28701 (chkp_versioning): Likewise.
28702 * tree-inline.h (copy_forbidden): Update decl.
28703
28704 2016-03-16 Marek Polacek <polacek@redhat.com>
28705
28706 PR c/70093
28707 * cgraphunit.c (cgraph_node::expand_thunk): Also build call to the
28708 function being thunked if the result type doesn't have fixed size.
28709 * gimplify.c (gimplify_modify_expr): Also set LHS if the result type
28710 doesn't have fixed size.
28711
28712 2016-03-16 Bin Cheng <bin.cheng@arm.com>
28713
28714 * tree-vect-loop.c (vect_analyze_loop_2): Fix wrong dump info by
28715 reporting malformed loop nest.
28716
28717 2016-03-16 Tom de Vries <tom@codesourcery.com>
28718
28719 PR lto/70187
28720 * ipa-devirt.c (possible_polymorphic_call_targets): Move
28721 nodes.length () == 1 test to before first nodes[0] access.
28722
28723 2016-03-16 Tom de Vries <tom@codesourcery.com>
28724
28725 PR tree-optimization/68715
28726 * graphite-scop-detection.c (scop_detection::merge_sese): Add missing
28727 single_pred_p test.
28728
28729 2016-03-16 Tom de Vries <tom@codesourcery.com>
28730
28731 PR tree-optimization/68809
28732 * graphite-scop-detection.c (same_close_phi_node): Test if result types
28733 are the same.
28734
28735 2016-03-16 Carlos O'Donell <carlos@redhat.com>
28736 Sandra Loosemore <sandra@codesourcery.com>
28737
28738 * doc/extend.texi (Common Function Attributes): Describe ifunc impact
28739 on leaf attribute. Mention ELF interposition problems.
28740
28741 2016-03-16 Alan Modra <amodra@gmail.com>
28742
28743 PR rtl-optimization/69195
28744 PR rtl-optimization/47992
28745 * ira.c (indirect_jump_optimize): Ignore artificial defs.
28746 Add comments.
28747
28748 2016-03-15 Eric Botcazou <ebotcazou@adacore.com>
28749
28750 PR bootstrap/69513
28751 * dwarf2out.c (flush_limbo_die_list): Really flush the limbo list.
28752
28753 2016-03-15 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
28754
28755 * config/avr/avr.md (rotl<mode>3): Set mode for operand 2.
28756
28757 2016-03-15 Jakub Jelinek <jakub@redhat.com>
28758
28759 PR rtl-optimization/70222
28760 * combine.c (simplify_shift_const_1): For A >> B >> C LSHIFTRT
28761 optimization if mode is different from result_mode, queue up masking
28762 of the result in outer_op. Formatting fix.
28763
28764 PR middle-end/70239
28765 * tree-ssa-sccvn.c (VN_INFO_GET): Use safe_grow_cleared instead
28766 of safe_grow.
28767
28768 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
28769
28770 PR rtl-optimization/69032
28771 * sel-sched-ir.c (get_seqno_by_preds): Include both insn and head when
28772 looping backwards over basic block insns.
28773
28774 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
28775
28776 PR target/66660
28777 * sel-sched-ir.c (merge_expr): Avoid changing the speculative pattern
28778 to non-speculative when propagating trap bits.
28779
28780 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
28781
28782 PR rtl-optimization/63384
28783 * sel-sched.c (invoke_aftermath_hooks): Do not decrease issue_more on
28784 DEBUG_INSN_P insns.
28785
28786 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
28787
28788 PR target/64411
28789 * sched-deps.c (get_implicit_reg_pending_clobbers): New function,
28790 factored out from ...
28791 (sched_analyze_insn): ... here.
28792 * sched-int.h (get_implicit_reg_pending_clobbers): Declare it.
28793 * sel-sched-ir.c (setup_id_implicit_regs): New function, use
28794 get_implicit_reg_pending_clobbers in it.
28795 (setup_id_reg_sets): Use setup_id_implicit_regs.
28796 (deps_init_id): Ditto.
28797
28798 2016-03-15 Tom de Vries <tom@codesourcery.com>
28799
28800 PR ipa/70161
28801 * cgraph.c (cgraph_node::get_body): Save, reset and restore
28802 dump_file_name.
28803 * passes.c (execute_one_ipa_transform_pass): Add missing argument to
28804 execute_function_dump.
28805 (execute_one_pass): Don't dump function if it will be dumped after ipa
28806 transform.
28807
28808 2016-03-15 Segher Boessenkool <segher@kernel.crashing.org>
28809
28810 * genrecog.c (match_pattern_2): If pred is NULL don't call
28811 safe_predicate_mode on it.
28812
28813 2016-03-14 Jakub Jelinek <jakub@redhat.com>
28814
28815 PR middle-end/70219
28816 * lra-constraints.c (delete_move_and_clobber): Change assertion
28817 to also allow dregno == 0.
28818
28819 2016-03-14 Richard Henderson <rth@redhat.com>
28820
28821 PR tree-opt/68714
28822 * tree-ssa-reassoc.c (ovce_extract_ops, optimize_vec_cond_expr): New.
28823 (can_reassociate_p): Allow ANY_INTEGRAL_TYPE_P.
28824 (reassociate_bb): Use optimize_vec_cond_expr; avoid
28825 optimize_range_tests, attempt_builtin_copysign and attempt_builtin_powi
28826 on vectors.
28827
28828 2016-03-14 Bernd Schmidt <bschmidt@redhat.com>
28829
28830 PR target/70083
28831 * lra-lives.c (process_bb_lives): Also update biggest mode for hard
28832 regs.
28833 (lra_create_live_ranges_1): initialize hard register biggest_mode to
28834 VOIDmode.
28835 * lra-constraints.c (split_reg): For hard regs, try to find the
28836 biggest single-register mode used in the function.
28837
28838 2016-03-14 Richard Biener <rguenther@suse.de>
28839
28840 PR tree-optimization/56365
28841 * tree-ssa-phiopt.c (minmax_replacement): Handle alternate
28842 constants to compare against.
28843
28844 2016-03-14 Segher Boessenkool <segher@kernel.crashing.org>
28845
28846 PR target/70098
28847 * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
28848 *ctr<mode>_internal5, *ctr<mode>_internal6): Also allow "d" as output.
28849 (define_split for the GPR case): Use int_reg_operand instead of
28850 gpc_reg_operand for the output.
28851
28852 2016-03-14 Tom de Vries <tom@codesourcery.com>
28853
28854 PR tree-optimization/70045
28855 * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard): Unshare
28856 create_empty_if_region_on_edge argument.
28857
28858 2016-03-13 Eric Botcazou <ebotcazou@adacore.com>
28859
28860 * config/arm/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Define.
28861 (STACK_CHECK_PROTECT): Likewise.
28862 * config/i386/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
28863 (STACK_CHECK_PROTECT): Likewise.
28864 * config/rs6000/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
28865 (STACK_CHECK_PROTECT): Likewise.
28866 * config/rs6000/vxworksae.h (STACK_CHECK_PROTECT): Likewise.
28867 * config/sparc/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
28868 (STACK_CHECK_PROTECT): Likewise.
28869
28870 2016-03-12 Andrey Belevantsev <abel@ispras.ru>
28871
28872 PR rtl-optimization/69307
28873 * sel-sched.c (choose_best_pseudo_reg): Properly check for hard
28874 registers in modes that span more than one register.
28875
28876 2016-03-12 Vladimir Makarov <vmakarov@redhat.com>
28877
28878 PR target/69614
28879 * lra-constraints.c (delete_move_and_clobber): New.
28880 (remove_inheritance_pseudos): Use it.
28881
28882 2016-03-12 Eric Botcazou <ebotcazou@adacore.com>
28883
28884 PR ada/70017
28885 * calls.c (emit_library_call_value_1): Clear the ECF_NOTHROW flag if
28886 the libcall is LCT_THROW.
28887 * explow.c (probe_stack_range): Pass LCT_THROW to emit_library_call
28888 for the checking routine.
28889
28890 2016-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
28891
28892 PR target/70131
28893 * config/rs6000/rs6000.md (round32<mode>2_fprs): Do not do the
28894 optimization if we have direct move.
28895 (roundu32<mode>2_fprs): Likewise.
28896
28897 2016-03-11 Bernd Schmidt <bschmidt@redhat.com>
28898
28899 PR target/70123
28900 * lra-remat.c (operand_to_remat): Disallow hard regs in the value t
28901 be rematerialized.
28902 (reg_overlap_for_remat_p): Renamed from input_regno_present_p.
28903 Arguments swapped. All callers changed. Take reg_renumber into
28904 account, and Calculate and compare register ranges for hard regs.
28905
28906 2016-03-11 Jeff Law <law@redhat.com>
28907
28908 PR tree-optimization/70190
28909 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
28910 Handle cases where we can not extract the taken edge, even though we
28911 found a constant value.
28912
28913 PR tree-optimization/64058
28914 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field INDEX.
28915 (num_coalesce_pairs): Move up earlier in file.
28916 (find_coalesce_pair): Initialize the INDEX field for each pair
28917 discovered.
28918 (compare_pairs): No longer sort on the elements in each pair.
28919 Instead break ties with the index of the coalesce pair.
28920
28921 2016-03-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28922
28923 PR target/70002
28924 * config/aarch64/aarch64-protos.h
28925 (aarch64_save_restore_target_globals): New prototype.
28926 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse):
28927 Call the above when popping pragma.
28928 * config/aarch64/aarch64.c (aarch64_save_restore_target_globals):
28929 New function.
28930 (aarch64_set_current_function): Rewrite using the above.
28931
28932 2016-03-11 Jakub Jelinek <jakub@redhat.com>
28933
28934 PR tree-optimization/70177
28935 * gimple-expr.h (extract_ops_from_tree_1): Renamed to ...
28936 (extract_ops_from_tree): ... this. In the 2 argument
28937 overload remove _1 suffix.
28938 * gimple-expr.c (extract_ops_from_tree_1): Renamed to ...
28939 (extract_ops_from_tree): ... this.
28940 * gimple.c (gimple_build_assign, gimple_assign_set_rhs_from_tree):
28941 Adjust callers.
28942 * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
28943 * tree-ssa-forwprop.c (defcodefor_name): Call 3 operand
28944 extract_ops_from_tree instead of 2 operand one.
28945
28946 2016-03-11 Alan Lawrence <alan.lawrence@arm.com>
28947
28948 PR tree-optimization/70013
28949 * tree-sra.c (analyze_access_subtree): Also set grp_unscalarized_data
28950 for constant-pool entries.
28951
28952 2016-03-11 Jakub Jelinek <jakub@redhat.com>
28953
28954 PR rtl-optimization/70174
28955 * expmed.c (store_bit_field_using_insv): Use gen_lowpart_if_possible
28956 followed by gen_lowpart on force_reg instead of just gen_lowpart.
28957
28958 PR tree-optimization/70169
28959 * tree-ssa-loop.c (gen_lsm_tmp_name): Handle FUNCTION_DECL and
28960 LABEL_DECL like VAR_DECL. Emit nothing instead of gcc_unreachable
28961 for unknown codes.
28962
28963 2016-03-11 Ilya Enkovich <enkovich.gnu@gmail.com>
28964 Jakub Jelinek <jakub@redhat.com>
28965
28966 PR target/70160
28967 * config/i386/i386.c (scalar_chain::convert_reg): Skip uses
28968 of uninitialized values.
28969
28970 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28971
28972 * config/s390/s390.md ("trunctddd2"): Turn former define_insn into
28973 define_expand.
28974 ("*trunctddd2"): New pattern definition.
28975 ("trunctdsd2"): Set prep_for_short_prec rounding mode for the
28976 TD->DD truncation.
28977
28978 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28979
28980 * config/s390/s390.md (BFP_RND_*, DFP_RND_*): Add new constant
28981 definitions for BFP and DFP rounding modes.
28982 ("fixuns_truncdddi2", "fixuns_trunctddi2")
28983 ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2")
28984 ("fix_trunc<DSF:mode><GPR:mode>2", "fix_trunc<mode>di2")
28985 ("fix_trunctf<mode>2"): Use the new constants instead of magic
28986 numbers.
28987
28988 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28989
28990 * config/s390/constraints.md: Adjust comment.
28991 ("Y"): Adjust comment. Rename s390_decompose_shift_count to
28992 s390_decompose_addrstyle_without_index.
28993 * config/s390/predicates.md (shift_count_or_setmem_operand):
28994 Rename to setmem_operand.
28995 * config/s390/s390-protos.h
28996 (s390_decompose_shift_count): Rename to
28997 s390_decompose_addrstyle_without_index.
28998 * config/s390/s390.c (s390_decompose_shift_count)
28999 (s390_mem_constraint, print_shift_count_operand)
29000 (print_operand_address, print_operand): Rename
29001 s390_decompose_shift_count to
29002 s390_decompose_addrstyle_without_index and rename
29003 print_shift_count_operand to print_addrstyle_operand troughout the
29004 file.
29005 * config/s390/s390.md ("setmem_long_<P:mode>", "*setmem_long")
29006 ("*setmem_long_and", "*setmem_long_31z", "*setmem_long_and_31z"):
29007 Rename shift_count_or_setmem_operand to setmem_operand.
29008 * config/s390/vx-builtins.md ("vec_insert<mode>")
29009 ("vec_promote<mode>"): Replace shift_count_or_setmem_operand with
29010 nonmemory_operand.
29011
29012 2016-03-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
29013
29014 PR target/70168
29015 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
29016 Handle overlapping retval and newval.
29017
29018 2016-03-10 Nick Clifton <nickc@redhat.com>
29019
29020 PR target/7044
29021 * config/aarch64/aarch64.c
29022 (aarch64_override_options_after_change_1): When forcing
29023 flag_omit_frame_pointer to be true, use a special value that can
29024 be detected if this function is called again, thus preventing
29025 flag_omit_leaf_frame_pointer from being forced to be false.
29026
29027 2016-03-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29028
29029 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
29030 Set x_flag_omit_leaf_frame_pointer when handling
29031 -momit-leaf-frame-pointer.
29032
29033 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
29034
29035 PR lto/69589
29036 * cgraph.c (cgraph_node::dump): Dump split_part and
29037 indirect_call_target.
29038 * cgraph.h (cgraph_node): Add indirect_call_target flag.
29039 * ipa.c (has_addr_references_p): Cleanup.
29040 (is_indirect_call_target_p): New.
29041 (walk_polymorphic_call_targets): Do not mark virtuals that may be
29042 called indirectly as local.
29043 (symbol_table::remove_unreachable_nodes): Compute indirect_call_target.
29044
29045 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
29046
29047 PR ipa/69630
29048 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
29049 on cxa_pure_virtual.
29050
29051 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
29052
29053 PR lto/69589
29054 * tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL.
29055
29056 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
29057
29058 PR lto/69589
29059 * tree.c (need_assembler_name_p): Only record main variant type names.
29060
29061 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
29062
29063 PR target/70113.
29064 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_843419_DEFAULT):
29065 Always define to 0 or 1.
29066 (TARGET_FIX_ERR_A53_843419): New macro.
29067 * config/aarch64/aarch64-elf-raw.h
29068 (TARGET_FIX_ERR_A53_843419_DEFAULT): Update for above changes.
29069 * config/aarch64/aarch64-linux.h: Likewise.
29070 * config/aarch64/aarch64.c
29071 (aarch64_override_options_after_change_1): Do not default
29072 aarch64_nopcrelative_literal_loads to true if Cortex-A53 erratum
29073 843419 is on.
29074 (aarch64_attributes): Handle fix-cortex-a53-843419.
29075 (aarch64_can_inline_p): Likewise.
29076 * config/aarch64/aarch64.opt (aarch64_fix_a53_err843419): Save.
29077
29078 2016-03-10 Alan Lawrence <alan.lawrence@arm.com>
29079 Jakub Jelinek <jakub@redhat.com>
29080
29081 * common.opt (funconstrained-commons, flag_unconstrained_commons): New.
29082 * tree.c (array_at_struct_end_p): Do not limit to size of decl for
29083 DECL_COMMONS if flag_unconstrained_commons is set.
29084 * tree-dfa.c (get_ref_base_and_extent): Likewise.
29085 * doc/invoke.texi (Optimize Options): Add -funconstrained-commons.
29086 (funconstrained-commons): Document.
29087
29088 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
29089
29090 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add
29091 aarch64-fusion-pairs.def and aarch64-tuning-flags.def
29092
29093 2016-03-10 Ilya Enkovich <enkovich.gnu@gmail.com>
29094
29095 * tree-vect-stmts.c (vectorizable_mask_load_store): Check mask
29096 has a proper number of elements.
29097
29098 2016-03-10 Alan Modra <amodra@gmail.com>
29099
29100 PR rtl-optimization/69195
29101 PR rtl-optimization/47992
29102 * ira.c (recorded_label_ref): Delete.
29103 (update_equiv_regs): Return void.
29104 (indirect_jump_optimize): New function.
29105 (ira): Call indirect_jump_optimize and delete_trivially_dead_insns
29106 before regstat_compute_ri. Don't rebuild_jump_labels here.
29107 Delete update_regstat.
29108
29109 2016-03-10 Richard Biener <rguenther@suse.de>
29110
29111 PR tree-optimization/70128
29112 * tree-ssa-structalias.c (set_uids_in_ptset): Set
29113 vars_contains_nonlocal for any FUNCTION_DECL or LABEL_DECL.
29114
29115 2016-03-09 Jakub Jelinek <jakub@redhat.com>
29116
29117 PR tree-optimization/70152
29118 * tree-sra.c (replace_removed_params_ssa_names): Copy over
29119 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from old_name to new_name.
29120
29121 PR target/70086
29122 * config/i386/i386.md (truncdfsf2 splitter): Use gen_vec_concatv2df
29123 instead of gen_sse2_loadlpd.
29124 * config/i386/sse.md (*vec_concatv2df): Rename to...
29125 (vec_concatv2df): ... this.
29126
29127 PR tree-optimization/70127
29128 * fold-const.c (operand_equal_p): Revert the 2015-10-28 change.
29129
29130 2016-03-09 David Malcolm <dmalcolm@redhat.com>
29131
29132 PR c/68473
29133 PR c++/70105
29134 * diagnostic-show-locus.c (compatible_locations_p): New function.
29135 (layout::layout): Sanitize ranges using compatible_locations_p.
29136
29137 2016-03-09 David Malcolm <dmalcolm@redhat.com>
29138
29139 PR c/68473
29140 PR c++/70105
29141 * diagnostic-show-locus.c (layout_range::layout_range): Replace
29142 location_range param with three const expanded_locations * and a
29143 bool.
29144 (layout::layout): Replace call to
29145 rich_location::lazily_expand_location with get_expanded_location.
29146 Extract the range and perform location expansion here, passing
29147 the results to the layout_range ctor.
29148 * diagnostic.c (source_range::debug): Delete.
29149 * diagnostic.h (diagnostic_expand_location): Reimplement in terms
29150 of rich_location::get_expanded_location.
29151 * gcc-rich-location.c (get_range_for_expr): Delete.
29152 (gcc_rich_location::add_expr): Reimplement to avoid the
29153 rich_location::add_range overload that took a location_range,
29154 passing a location_t instead.
29155
29156 2016-03-09 Richard Biener <rguenther@suse.de>
29157 Jakub Jelinek <jakub@redhat.com>
29158
29159 PR tree-optimization/70138
29160 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
29161 Also skip vect_double_reduction_def.
29162
29163 2016-03-09 Jakub Jelinek <jakub@redhat.com>
29164
29165 PR target/70049
29166 * config/i386/sse.md (*vec_extract<mode>): Use %0 instead of %k0
29167 if the operand is "m".
29168
29169 2016-03-09 Nathan Sidwell <nathan@acm.org>
29170
29171 * config/nvptx/nvptx.c (nvptx_option_override): Don't kill debug level.
29172
29173 2016-03-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
29174
29175 * config/i386/i386.c (processor_target_table): Fix cost table
29176 intialization order for znver1.
29177
29178 2016-03-08 Jakub Jelinek <jakub@redhat.com>
29179
29180 * ipa-polymorphic-call.c (walk_ssa_copies): Fix spelling
29181 - becuase -> because.
29182 * ipa-reference.c (ignore_module_statics): Likewise.
29183 * cgraph.c (cgraph_node::get_body): Likewise.
29184 * ipa-inline.c (early_inliner): Likewise.
29185 * ipa-devirt.c (types_same_for_odr): Likewise.
29186 * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
29187 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Likewise.
29188
29189 2016-03-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29190
29191 * tree-ssa-math-opts.c: Fix typo in comment.
29192
29193 2016-03-08 Jakub Jelinek <jakub@redhat.com>
29194
29195 PR target/70110
29196 * config/i386/i386.c (scalar_chain::make_vector_copies,
29197 scalar_chain::convert_reg): Call end_sequence in between
29198 get_insns and emit_conversion_insns rather than after both
29199 calls.
29200
29201 2016-03-07 Uros Bizjak <ubizjak@gmail.com>
29202
29203 PR target/70064
29204 * config/i386/i386.h (machine_function): Add
29205 pc_thunk_call_expanded flag.
29206 (ix86_pc_thunk_call_expanded): New define.
29207 * config/i386/i386.md (set_got, set_got_labelled): New expanders.
29208 (*set_got): Rename insn pattern from set_got.
29209 (*set_got_labelled): Rename inst pattern from set_got_labelled.
29210 * config/i386/i386.c (ix86_compute_frame_layout): Use
29211 ix86_pc_thunk_call_expanded to prevent red-zone.
29212
29213 2016-03-07 Martin Jambor <mjambor@suse.cz>
29214
29215 * hsa.h (hsa_get_ctor_statements): Declare.
29216 (hsa_get_dtor_statements): Likewise.
29217 (hsa_get_kernel_dispatch_type): Likewise.
29218 * hsa.c (hsa_get_ctor_statements): New function.
29219 (hsa_get_dtor_statements): Likewise.
29220 (hsa_get_kernel_dispatch_type): Likewise.
29221 * hsa-brig.c (hsa_cdtor_statements): Removed.
29222 (hsa_output_libgomp_mapping): Use hsa_get_ctor_statements and
29223 hsa_get_dtor_statements.
29224 * hsa-gen.c (hsa_kernel_dispatch_type): Removed.
29225 (get_hsa_kernel_dispatch_offset): Use hsa_get_kernel_dispatch_type.
29226
29227 2016-03-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
29228
29229 * config/arm/arm-cores.def (cortex-r8): New.
29230 * config/arm/arm-tables.opt (cortex-r8): Regenerate.
29231 * config/arm/arm-tune.md: Likewise.
29232 * doc/invoke.texi: Add cortex-r8 to list of cpu values.
29233
29234 2016-03-07 Martin Sebor <msebor@redhat.com>
29235
29236 PR rtl-optimization/19705
29237 * doc/invoke.texi (Options That Control Optimization): Clarify
29238 -fno-branch-count-reg.
29239
29240 2016-02-26 Richard Biener <rguenther@suse.de>
29241 Jeff Law <law@redhat.com>
29242
29243 PR tree-optimization/69740
29244 * cfghooks.c (remove_edge): Request loop fixups if we delete
29245 an edge that might turn an irreducible loop into a natural
29246 loop.
29247 * cfgloop.h (check_verify_loop_structure): Clear LOOPS_NEED_FIXUP.
29248 Move after definition of loops_state_clear.
29249
29250 2016-03-07 Bin Cheng <bin.cheng@arm.com>
29251
29252 PR rtl-optimization/69052
29253 * rtlanal.c (commutative_operand_precedence): Set higher precedence
29254 to CONST_WIDE_INT.
29255
29256 2016-03-07 Tom de Vries <tom@codesourcery.com>
29257
29258 PR tree-optimization/70116
29259 * tree-ssa-tail-merge.c (merge_stmts_p): New function, handling
29260 is_tm_ending stmts and ubsan/asan internal functions.
29261 (find_duplicate): Use it. Don't test is_tm_ending here.
29262
29263 2016-03-07 Richard Biener <rguenther@suse.de>
29264
29265 PR tree-optimization/70115
29266 * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Remove.
29267 (propagate_constants_for_unrolling): Use replace_uses_by.
29268
29269 2016-03-07 Nathan Sidwell <nathan@codesourcery.com>
29270
29271 PR middle-end/69916
29272 * omp-low.c (struct oacc_loop): Add ifns.
29273 (new_oacc_loop_raw): Initialize it.
29274 (finish_oacc_loop): Clear mask & flags if no ifns.
29275 (oacc_loop_discover_walk): Count IFN_GOACC_LOOP calls.
29276 (oacc_loop_xform_loop): Add ifns arg & adjust.
29277 (oacc_loop_process): Adjust oacc_loop_xform_loop call.
29278
29279 2016-03-07 Richard Henderson <rth@redhat.com>
29280
29281 PR rtl-opt/70061
29282 * tree-outofssa.c (emit_partition_copy): Flush pending stack adjust.
29283 (insert_value_copy_on_edge): Likewise.
29284
29285 2016-03-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29286
29287 * config/arm/arm_neon.h: Show error if using with soft-float ABI.
29288
29289 2016-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29290
29291 PR target/62281
29292 * config/i386/sol2.h (STACK_REALIGN_DEFAULT): Define.
29293
29294 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
29295
29296 * config/i386/i386.c (znver1_cost): Fix Multiply cost.
29297
29298 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
29299
29300 Fix sseimul type attribute.
29301 * config/i386/znver1.md
29302 (znver1_sseimul, znver1_sseimul_avx256, znver1_sseimul_load,
29303 znver1_sseimul_avx256_load) : Fix the type attribute.
29304 (znver1_sseimul_di, znver1_sseimul_load_di): Fix type attribute,
29305 pipe usage and latency.
29306
29307 2016-03-05 Jakub Jelinek <jakub@redhat.com>
29308
29309 PR c++/70084
29310 * tree-inline.c (copy_tree_body_r): When cancelling ADDR_EXPR
29311 of INDIRECT_REF and ADDR_EXPR changed type, fold_convert it
29312 to the right type.
29313
29314 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
29315
29316 PR c/69973
29317 * targhooks.c (default_vector_alignment): Limit to MAX_OFILE_ALIGNMENT.
29318
29319 PR rtl-optimization/69941
29320 * postreload.c (reload_combine_recognize_pattern): Ensure all uses of
29321 the reg share its mode.
29322
29323 2016-03-04 Jeff Law <law@redhat.com>
29324
29325 PR tree-optimization/69196
29326 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
29327 If the both SSA_NAMEs are anonymous, then consider them unassociated
29328 and include the PHI in the statement count.
29329
29330 2016-03-05 Tom de Vries <tom@codesourcery.com>
29331
29332 * omp-low.c (check_omp_nesting_restrictions): Check for non-oacc
29333 construct in oacc routine. Check for oacc region in oacc routine.
29334
29335 2016-03-04 Jakub Jelinek <jakub@redhat.com>
29336
29337 PR target/70062
29338 * config/i386/i386.c (decide_alg): Add RECUR argument. Revert
29339 2016-02-22 changes, instead don't recurse if RECUR is already true.
29340 Don't change *dynamic_check if RECUR. Adjust recursive caller
29341 to pass true to the new argument.
29342 (ix86_expand_set_or_movmem): Adjust decide_alg caller.
29343
29344 PR target/70059
29345 * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
29346 <extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask): Formatting
29347 fixes.
29348 (vec_set_hi_<mode><mask_name>): Likewise. Swap VEC_CONCAT operands.
29349
29350 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
29351
29352 PR rtl-optimization/57676
29353 * lra-assigns.c (lra_assign): Guard test for maximum iterations
29354 with flag_checking.
29355
29356 2016-03-04 Ilya Enkovich <enkovich.gnu@gmail.com>
29357
29358 * tree-vect-patterns.c (search_type_for_mask): Handle
29359 comparison of booleans.
29360
29361 2016-03-04 Jakub Jelinek <jakub@redhat.com>
29362
29363 * doc/extend.texi (__builtin_alloca, __builtin_alloca_with_align):
29364 Fix @xref usage.
29365
29366 PR debug/69947
29367 * dwarf2out.c (prune_unused_types_walk_loc_descr): Handle
29368 all other ops that have dw_val_class_die_ref operands,
29369 and DW_OP_GNU_entry_value.
29370
29371 2016-03-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29372
29373 PR rtl-optimization/69904
29374 * config/arm/arm.c (arm_cannot_copy_insn_p):
29375 Return true for load-exclusive instructions.
29376
29377 2016-03-03 Jakub Jelinek <jakub@redhat.com>
29378
29379 PR target/70021
29380 * tree-vect-stmts.c (vect_mark_relevant): Remove USED_IN_PATTERN
29381 argument, if STMT_VINFO_IN_PATTERN_P (stmt_info), always mark
29382 the pattern no matter if it is used just by non-pattern, pattern
29383 or mix thereof.
29384 (process_use, vect_mark_stmts_to_be_vectorized): Adjust callers.
29385 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
29386 oprnd1 def_stmt is in pattern, don't look through it.
29387
29388 2016-03-03 Marek Polacek <polacek@redhat.com>
29389
29390 PR middle-end/70050
29391 * match.pd (X % -Y): Add INTEGRAL_TYPE_P check.
29392
29393 2016-03-03 Martin Liska <mliska@suse.cz>
29394
29395 PR tree-optimization/70043
29396 * tree-vect-loop.c (optimize_mask_stores): Move iterator to
29397 previous statement if we see a debug statement.
29398
29399 2016-03-03 Richard Biener <rguenther@suse.de>
29400
29401 PR tree-optimization/55936
29402 * tree-vrp.c (compare_name_with_value): Add use_equiv_p
29403 parameter and guard unsafe equivalence use.
29404 (vrp_evaluate_conditional_warnv_with_ops): Always use
29405 safe equivalences but not via the quadratic compare_names
29406 helper.
29407
29408 2016-03-03 Michael Collison <michael.collison@linaro.org>
29409
29410 PR target/70014
29411 * config/arm/arm.md (*subsi3_carryin_const): Change predicate
29412 for operand 1 to s_register_operand. Change predicate for operand
29413 2 to arm_not_immediate_operand.
29414
29415 2016-03-02 H.J. Lu <hongjiu.lu@intel.com>
29416
29417 * doc/tm.texi: Regenerated.
29418
29419 2016-03-02 Richard Henderson <rth@redhat.com>
29420
29421 PR rtl-opt/67145
29422 * simplify-rtx.c (simplify_plus_minus): Allow reassoc without
29423 simplification when all args are positive non-fixed registers.
29424
29425 2016-03-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
29426
29427 * target.def (lra_p): Specify that new ports should use LRA.
29428
29429 2016-03-02 Jakub Jelinek <jakub@redhat.com>
29430
29431 PR libgomp/69555
29432 * gimplify.c (gimplify_decl_expr): For decls with REFERENCE_TYPE, also
29433 gimplify_type_sizes the type they refer to.
29434 (omp_notice_variable): Handle reference vars to VLAs.
29435 * omp-low.c (lower_omp_target): Emit setup of OMP_CLAUSE_PRIVATE
29436 reference to VLA decls in the second pass instead of first pass.
29437
29438 2016-03-02 Tom de Vries <tom@codesourcery.com>
29439
29440 PR tree-optimization/68659
29441 * graphite-isl-ast-to-gimple.c (collect_all_ssa_names): Handle
29442 new_expr == NULL_TREE.
29443 (get_new_name): Handle ADDR_EXPR.
29444
29445 2016-03-02 Bin Cheng <bin.cheng@arm.com>
29446
29447 PR rtl-optimization/69052
29448 * loop-invariant.c (canonicalize_address): New function.
29449 (inv_can_prop_to_addr_use): Check validity of address expression
29450 which is canonicalized by above function.
29451
29452 2016-03-02 Alan Modra <amodra@gmail.com>
29453
29454 PR ipa/69990
29455 * ipa-icf.c (sem_variable::merge): Do not merge an alias with
29456 larger alignment.
29457
29458 2016-03-02 Jakub Jelinek <jakub@redhat.com>
29459
29460 PR target/70028
29461 * config/i386/i386.md (kmovw): Move m constraint to 2nd alternative.
29462 (*movhi_internal): Put mask moves from and to memory separately
29463 from moves from/to GPRs.
29464
29465 2016-03-02 Richard Biener <rguenther@suse.de>
29466
29467 * genmatch.c (dt_node::gen_kids): Fix match code-gen for embedded
29468 GENERIC expressions in GIMPLE.
29469
29470 2016-03-02 Richard Biener <rguenther@suse.de>
29471
29472 * config/i386/i386.c (type_natural_mode): Fix typo.
29473
29474 2016-03-02 Nick Clifton <nickc@redhat.com>
29475
29476 * config.gcc (mep-*-elf): Add newlib-stdint.h to tm_file.
29477
29478 2016-03-02 Richard Biener <rguenther@suse.de>
29479 Uros Bizjak <ubizjak@gmail.com>
29480
29481 PR target/67278
29482 * config/i386/i386.c (type_natural_mode): Handle XFmode vectors.
29483
29484 2016-03-02 Richard Biener <rguenther@suse.de>
29485
29486 PR middle-end/67278
29487 * tree-cfg.c (verify_expr): Adjust BIT_FIELD_REF case.
29488
29489 2016-03-02 Marek Polacek <polacek@redhat.com>
29490
29491 PR c/67854
29492 * gimplify.c (gimplify_va_arg_expr): Use expanded location for the
29493 "is promoted to" warning.
29494
29495 2016-03-01 DJ Delorie <dj@redhat.com>
29496
29497 * config.gcc: Deprecate mep-*.
29498
29499 2016-03-01 Vladimir Makarov <vmakarov@redhat.com>
29500
29501 PR middle-end/70025
29502 * lra-constraints.c (regno_val_use_in): New.
29503 (match_reload): Use it instead of regno_use_in.
29504
29505 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
29506
29507 PR rtl-optimization/70007
29508 * gcse.c (compute_ld_motion_mems): Tidy up and also invalidate memory
29509 references present in REG_EQUAL notes attached to non-SET patterns.
29510
29511 2016-03-01 Jeff Law <law@redhat.com>
29512
29513 PR tree-optimization/69196
29514 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
29515 Appropriately clamp the number of statements to copy when the
29516 thread path does not traverse a loop backedge.
29517
29518 PR tree-optimization/69196
29519 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
29520 Do count some PHIs in the thread path against the insn count. Decrease
29521 final statement count by one as the control statement in the last
29522 block will get removed. Remove special cased code for handling PHIs
29523 in the last block.
29524
29525 2016-03-01 Uros Bizjak <ubizjak@gmail.com>
29526
29527 PR target/70027
29528 * config/i386/i386.c (ix86_output_call_insn): Add -masm=intel
29529 asm dialect alternatives to explicit GOTPCREL calls.
29530
29531 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
29532
29533 PR ada/70017
29534 * ira.c (do_reload): Issue warning for generic stack checking here...
29535 * reload1.c (reload): ...instead of here and streamline it.
29536
29537 2016-03-01 Nick Clifton <nickc@redhat.com>
29538
29539 * config.gcc (cr16-*-elf): Add newlib-stdint.h to tm_file.
29540
29541 2016-03-01 Richard Biener <rguenther@suse.de>
29542
29543 PR tree-optimization/69983
29544 * tree-chrec.c (eq_evolutions_p): Handle conversions, compare
29545 types and fall back to operand_equal_p.
29546
29547 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29548
29549 Revert
29550 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29551
29552 * config/s390/constraints.md ("jm8"): New constraint.
29553 * config/s390/predicates.md ("const_int_8bitset_operand"): New
29554 predicate.
29555 * config/s390/s390.md ("*setmem_long", "*setmem_long_and"): Merge
29556 into ...
29557 ("*setmem_long<setmem_and>"): New pattern.
29558 ("*setmem_long_31z", "*setmem_long_and_31z"): Merge
29559 into ...
29560 ("*setmem_long_31z<setmem_and>"): New pattern.
29561 * config/s390/subst.md ("setmem_31z_subst", "setmem_and_subst"):
29562 New substitution rules with the required attributes.
29563
29564
29565 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29566
29567 Revert
29568 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29569
29570 * gensupport.c (process_substs_on_one_elem): Split loop to
29571 complete mark_operands_used_in_match_dup on all expressions in the
29572 vector first.
29573 (adjust_operands_numbers): Inline into process_substs_on_one_elem
29574 and remove function.
29575
29576 2016-03-01 Richard Biener <rguenther@suse.de>
29577
29578 PR middle-end/70022
29579 * fold-const.c (fold_indirect_ref_1): Fix range checking for
29580 vector BIT_FIELD_REF extract.
29581
29582 2016-03-01 Richard Biener <rguenther@suse.de>
29583
29584 PR tree-optimization/69994
29585 * tree-ssa-reassoc.c (ops_equal_values_p): Handle missing case.
29586
29587 2016-03-01 Ilya Enkovich <enkovich.gnu@gmail.com>
29588
29589 PR tree-optimization/69956
29590 * tree-vect-stmts.c (supportable_widening_operation): Support
29591 multi-step conversion of boolean vectors.
29592 (supportable_narrowing_operation): Likewise.
29593
29594 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29595
29596 * config/s390/s390.c (s390_decompose_address): Don't accept SImode
29597 anymore.
29598
29599 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29600
29601 * config/s390/subst.md (DSI_VI): New mode iterator.
29602 ("addr_style_op_subst"): Use DSI_VI instead of DSI.
29603 * config/s390/vector.md ("vec_set<mode>"): Move expander before
29604 the insn definition.
29605 ("*vec_set<mode>"): Change predicate and add alternative to
29606 support only either register or const_int operands as element
29607 selector.
29608 ("*vec_set<mode>_plus"): New pattern to support reg + const_int
29609 operands.
29610 ("vec_extract<mode>"): New expander.
29611 ("*vec_extract<mode>"): New insn definition supporting reg and
29612 const_int element selectors.
29613 ("*vec_extract<mode>_plus"): New insn definition supporting
29614 reg+const_int element selectors.
29615 ("rotl<mode>3", "ashl<mode>3", "ashr<mode>3"): Merge into the
29616 following expander+insn definition.
29617 ("<vec_shifts_name><mode>3"): New expander.
29618 ("*<vec_shifts_name><mode>3<addr_style_op>"): New insn definition.
29619
29620 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29621
29622 * config/s390/s390.md ("*tabort_1"): Change predicate to
29623 nonmemory_operand. Add a second alternative to cover
29624 register as well as const int operands.
29625 ("*tabort_1_plus"): New pattern definition.
29626
29627 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29628
29629 * config/s390/s390.md ("*ashrdi3_cc_31")
29630 ("*ashrdi3_cconly_31""*ashrdi3_cc_31_and")
29631 ("*ashrdi3_cconly_31_and", "*ashrdi3_31_and", "*ashrdi3_31"):
29632 Merge insn definitions into ...
29633 ("*ashrdi3_31<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
29634 New pattern definition.
29635 ("*ashr<mode>3_cc", "*ashr<mode>3_cconly", "ashr<mode>3", )
29636 ("*ashr<mode>3_cc_and", "*ashr<mode>3_cconly_and")
29637 ("*ashr<mode>3_and"): Merge insn definitions into ...
29638 ("*ashr<mode>3<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
29639 New pattern definition.
29640 * config/s390/subst.md ("addr_style_op_cc_subst")
29641 ("masked_op_cc_subst", "setcc_subst", "cconly_subst"): New
29642 substitutions patterns plus attributes.
29643 Add ashiftrt to SUBST iterator.
29644
29645 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29646
29647 * config/s390/s390.md ("<shift><mode>3"): Change predicate of
29648 op2 to nonmemory_operand.
29649 ("*<shift>di3_31", "*<shift>di3_31_and"):
29650 Merge into single pattern definition ...
29651 ("*<shift>di3_31<addr_style_op><masked_op>"): New pattern.
29652 ("*<shift><mode>3", "*<shift><mode>3_and"): Merge into single
29653 pattern definition ...
29654 ("*<shift><mode>3<addr_style_op><masked_op>"): New pattern.
29655 * config/s390/subst.md: Add ashift and lshiftrt to SUBST
29656 iterator.
29657
29658 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29659
29660 * config/s390/predicates.md (const_int_6bitset_operand): New
29661 predicate.
29662 * config/s390/s390.md: Include subst.md.
29663 ("rotl<mode>3"): New expander.
29664 ("rotl<mode>3", "*rotl<mode>3_and"): Merge insn definitions into
29665 ...
29666 ("*rotl<mode>3<addr_style_op><masked_op>"): New insn definition.
29667 * config/s390/subst.md: New file.
29668
29669 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29670
29671 * config/s390/s390.md ("op_type", "atype", "length" attributes):
29672 Remove RRR type. It doesn't really exist.
29673 ("RRer", "f0", "v0", "vf", "vd", "op1", "Rf"): Remove mode
29674 attributes.
29675 ("BFP", "DFP", "nDSF", "nDFDI"): Add mode attributes.
29676 ("*cmp<mode>_ccs", "floatdi<mode>2", "add<mode>3")
29677 ("*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3")
29678 ("*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3")
29679 ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2")
29680 ("*abs<mode>2", "*negabs<mode>2", "sqrt<mode>2"): Override
29681 `enabled' attribute.
29682
29683 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29684
29685 * gensupport.c (process_substs_on_one_elem): Split loop to
29686 complete mark_operands_used_in_match_dup on all expressions in the
29687 vector first.
29688 (adjust_operands_numbers): Inline into process_substs_on_one_elem
29689 and remove function.
29690
29691 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
29692
29693 PR target/69706
29694 * config/sparc/sparc.c (NWORDS_UP): Rename to...
29695 (CEIL_NWORDS): ...this. Use CEIL macro.
29696 (compute_fp_layout): Adjust to above renaming.
29697 (function_arg_union_value): Likewise.
29698 (sparc_arg_partial_bytes): Likewise.
29699 (sparc_function_arg_advance): Likewise.
29700
29701 2016-02-29 Jeff Law <law@redhat.com>
29702
29703 PR tree-optimization/70005
29704 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Handle case
29705 where an object with a boolean range is compared against a value
29706 outside [0..1].
29707
29708 PR tree-optimization/69999
29709 * gimple-ssa-split-paths.c (split_paths): When duplicating a block
29710 with an outgoing edge marked with EDGE_IRREDUCIBLE_LOOP, schedule
29711 loop cleanups.
29712
29713 2016-02-29 Richard Biener <rguenther@suse.de>
29714
29715 PR tree-optimization/69994
29716 * tree-ssa-reassoc.c (gimple_nop_conversion_p): New function.
29717 (get_unary_op): Look through nop conversions.
29718 (ops_equal_values_p): New function, look for equality diregarding
29719 nop conversions.
29720 (eliminate_plus_minus_pair): Use ops_equal_values_p
29721 (repropagate_negates): Do not use get_unary_op here.
29722
29723 2016-02-29 Martin Liska <mliska@suse.cz>
29724
29725 * system.h: Poison ENABLE_CHECKING macro.
29726
29727 2016-02-29 Martin Liska <mliska@suse.cz>
29728
29729 * hsa-gen.c (gen_body_from_gimple): Dump only if TDF_DETAILS
29730 is presented in dump flags.
29731 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
29732 (hsa_regalloc): Likewise.
29733
29734 2016-02-19 Richard Biener <rguenther@suse.de>
29735
29736 PR tree-optimization/69980
29737 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Update
29738 permutation of those we need to keep.
29739
29740 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
29741
29742 PR target/69706
29743 * config/sparc/sparc.c (ROUND_ADVANCE): Rename to...
29744 (NWORDS_UP): ...this
29745 (init_cumulative_args): Minor tweaks.
29746 (sparc_promote_function_mode): Likewise.
29747 (scan_record_type): Delete.
29748 (traverse_record_type): New function template.
29749 (classify_data_t): New structure type.
29750 (classify_registers): New inline function.
29751 (function_arg_slotno): In 64-bit mode, bail out early if FP slots are
29752 exhausted. Instantiate traverse_record_type on classify_registers and
29753 deal with the case of a structure passed in slot #15 with no FP field
29754 in the first word.
29755 (assign_data_t): New structure type.
29756 (compute_int_layout): New static function.
29757 (compute_fp_layout): Likewise.
29758 (count_registers): New inline function.
29759 (assign_int_registers): New static function.
29760 (assign_fp_registers): Likewise.
29761 (assign_registers): New inline function.
29762 (function_arg_record_value_1): Delete.
29763 (function_arg_record_value_2): Likewise.
29764 (function_arg_record_value_3): Likewise.
29765 (function_arg_record_value): Adjust to above changes. Instantiate
29766 traverse_record_type on count_registers to first count the number of
29767 registers to be used and then on assign_registers to assign them.
29768 (function_arg_union_value): Adjust to above renaming.
29769 (sparc_function_arg_1); Minor tweaks. Remove commented out code.
29770 (sparc_arg_partial_bytes): Adjust to above renaming. Deal with the
29771 case of a structure passed in slot #15
29772 (sparc_function_arg_advance): Likewise.
29773 (function_arg_padding): Minor tweak.
29774
29775 2016-02-29 Richard Biener <rguenther@suse.de>
29776
29777 PR tree-optimization/69720
29778 * tree-vect-loop.c (get_initial_def_for_reduction): Avoid
29779 the adjustment_def path for possibly vectorized defs.
29780 (vect_create_epilog_for_reduction): Handle vectorized initial
29781 defs properly.
29782
29783 2016-02-28 Eric Botcazou <ebotcazou@adacore.com>
29784
29785 * config/i386/cygming.h (STACK_REALIGN_DEFAULT): Define.
29786
29787 2016-02-27 Jeff Law <law@redhat.com>
29788
29789 Revert
29790 2016-02-26 Richard Biener <rguenther@suse.de>
29791 Jeff Law <law@redhat.com>
29792
29793 PR tree-optimization/69740
29794 * cfghooks.c (remove_edge): Request loop fixups if we delete
29795 an edge that might turn an irreducible loop into a natural
29796 loop.
29797
29798 2016-02-27 Jakub Jelinek <jakub@redhat.com>
29799
29800 PR rtl-optimization/69896
29801 * tree-vect-generic.c (get_compute_type): Avoid single element
29802 vector types.
29803
29804 2016-02-26 Evandro Menezes <e.menezes@samsung.com>
29805
29806 Rename the AArch64 tuning option and related functions to enable the
29807 Newton series for the reciprocal square root to reflect its
29808 approximative characteristic.
29809
29810 * config/aarch64/aarch64-protos.h (aarch64_emit_swrsqrt): Rename
29811 function to "aarch64_emit_approx_rsqrt".
29812 * config/aarch64/aarch64-tuning-flags.def: Rename tuning flag to
29813 AARCH64_EXTRA_TUNE_APPROX_RSQRT.
29814 * config/aarch64/aarch64.c (exynosm1_tunigs): Use new flag name.
29815 (xgene1_tunings): Likewise.
29816 (use_rsqrt_p): Likewise.
29817 (aarch64_emit_swrsqrt): Use new function name.
29818 * config/aarch64/aarch64-simd.md (aarch64_rsqrts_*): Likewise.
29819 * config/aarch64/aarch64.opt (mlow-precision-recip-sqrt): Reword the
29820 text explaining this option.
29821 * doc/invoke.texi (-mlow-precision-recip-sqrt): Likewise.
29822
29823 2016-02-26 Jakub Jelinek <jakub@redhat.com>
29824
29825 PR target/69969
29826 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
29827 complain about -mallow-movmisalign without -mvsx if
29828 TARGET_ALLOW_MOVMISALIGN was not set explicitly.
29829
29830 2016-02-26 Joel Sherrill <joel@rtems.org>
29831
29832 * config.gcc: Add x86_64-*-rtems*.
29833 * config/i386/rtems-64.h: New file.
29834
29835 2016-02-26 Joel Sherrill <joel@rtems.org>
29836
29837 * config.gcc: Add aarch64-*-rtems*.
29838 * config/aarch64/rtems.h: New file.
29839
29840 2016-02-26 Segher Boessenkool <segher@kernel.crashing.org>
29841
29842 PR target/69946
29843 * config/rs6000/rs6000.c (rs6000_insn_for_shift_mask): Print rlwinm
29844 shift amount using %h. Add comment.
29845
29846 2016-02-26 Richard Biener <rguenther@suse.de>
29847 Jeff Law <law@redhat.com>
29848
29849 PR tree-optimization/69740
29850 * cfghooks.c (remove_edge): Request loop fixups if we delete
29851 an edge that might turn an irreducible loop into a natural
29852 loop.
29853
29854 2016-02-26 Martin Jambor <mjambor@suse.cz>
29855
29856 PR middle-end/69920
29857 * tree-sra.c (sra_modify_assign): Do not remove loads of
29858 uninitialized aggregates to SSA_NAMEs.
29859
29860 2016-02-26 Richard Henderson <rth@redhat.com>
29861
29862 PR target/69709
29863 * config/s390/s390.md (risbg and risbgn splitters): Allocate new
29864 pseudo in case the target rtx matches the source of the left
29865 shift.
29866
29867 2016-02-26 Martin Jambor <mjambor@suse.cz>
29868
29869 PR hsa/69568
29870 * hsa.h (hsa_type_packed_p): Declare.
29871 * hsa.c (hsa_type_packed_p): New function.
29872 * hsa-gen.c (mem_type_for_type): Use unsigned type for packed
29873 loads.
29874 (gen_hsa_insns_for_store): Use hsa_type_packed_p.
29875 * hsa-brig.c (emit_basic_insn): Likewise.
29876
29877 2016-02-26 Martin Jambor <mjambor@suse.cz>
29878
29879 pr hsa/69674
29880 * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Use proper hsa type for
29881 pointers.
29882 (gen_hsa_addr): Allow integer constants in TMR_INDEX2.
29883
29884 2016-02-26 Martin Jambor <mjambor@suse.cz>
29885
29886 * hsa.h (is_a_helper): New overload for hsa_op_immed for
29887 hsa_op_with_type operands.
29888 (hsa_unsigned_type_for_type): Declare.
29889 * hsa.c (hsa_unsigned_type_for_type): New function.
29890 * hsa-gen.c (gen_hsa_binary_operation): Use hsa_unsigned_type_for_type.
29891 (gen_hsa_insns_for_operation_assignment): Satisfy constrains of
29892 the finalizer. Do not emit extra move.
29893
29894 2016-02-26 Martin Jambor <mjambor@suse.cz>
29895
29896 * hsa-gen.c (gen_hsa_ternary_atomic_for_builtin): Fail in presence of
29897 atomic operations in private segment.
29898
29899 2016-02-26 Martin Jambor <mjambor@suse.cz>
29900
29901 * omp-low.c (grid_find_ungridifiable_statement): Store problematic
29902 statements to wi->info. Also disallow omp simd constructs.
29903 (grid_target_follows_gridifiable_pattern): Use wi.info to dump reason
29904 for not gridifying. Dump special string for omp_for.
29905
29906 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29907
29908 PR target/69245
29909 * config/aarch64/aarch64.c (aarch64_set_current_function):
29910 Save/restore target globals when switching to
29911 target_option_default_node.
29912
29913 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29914
29915 PR target/69613
29916 * config/aarch64/aarch64.c (aarch64_shift_truncation_mask):
29917 Return 0 if !SHIFT_COUNT_TRUNCATED.
29918
29919 2016-02-26 Jakub Jelinek <jakub@redhat.com>
29920 Eric Botcazou <ebotcazou@adacore.com>
29921
29922 PR rtl-optimization/69891
29923 * dse.c (scan_insn): If we can't figure out memset arguments
29924 or they are non-constant, call clear_rhs_from_active_local_stores.
29925
29926 2016-02-26 Martin Liska <mliska@suse.cz>
29927
29928 * doc/extend.texi: Mention clog10, clog10f an clog10l
29929 in Builtins section.
29930
29931 2016-02-26 Martin Liska <mliska@suse.cz>
29932
29933 * dwarf2out.c (new_loc_descr): Replace ENABLE_CHECKING with
29934 CHECKING_P.
29935 (resolve_args_picking_1): Likewise.
29936 * dwarf2out.h (struct GTY): Likewise.
29937
29938 2016-02-26 Martin Liska <mliska@suse.cz>
29939
29940 * hsa-gen.c (generate_hsa): Replace ENABLE_CHECKING macro
29941 with flag_checking.
29942 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
29943
29944 2016-02-26 Markus Trippelsdorf <markus@trippelsdorf.de>
29945 Martin Liska <mliska@suse.cz>
29946
29947 * doc/install.texi: Mention --enable-valgrind-annotations.
29948
29949 2016-02-26 Richard Biener <rguenther@suse.de>
29950
29951 PR tree-optimization/69551
29952 * tree-ssa-structalias.c (get_constraint_for_ssa_var): When
29953 looking through aliases adjust DECL_PT_UID to refer to the
29954 ultimate alias target.
29955
29956 2016-02-25 Martin Liska <mliska@suse.cz>
29957
29958 PR middle-end/69919
29959 * alloc-pool.c (after_memory_report): New variable.
29960 * alloc-pool.h (base_pool_allocator ::release): Do not use
29961 the infrastructure if after_memory_report.
29962 * toplev.c (toplev::main): Mark after memory report.
29963
29964 2016-02-25 Richard Biener <rguenther@suse.de>
29965
29966 PR tree-optimization/48795
29967 * tree-vrp.c (check_array_ref): Use array_at_struct_end_p.
29968
29969 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
29970
29971 PR driver/68463
29972 * config/gnu-user.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o if
29973 offloading is enabled and -fopenacc or -fopenmp is specified.
29974 (CRTOFFLOADEND): Likewise.
29975 (GNU_USER_TARGET_STARTFILE_SPEC): Add CRTOFFLOADBEGIN.
29976 (GNU_USER_TARGET_ENDFILE_SPEC): Add CRTOFFLOADEND.
29977 * lto-wrapper.c (offloadbegin, offloadend): Remove static vars.
29978 (offload_objects_file_name): New static var.
29979 (tool_cleanup): Remove offload_objects_file_name file.
29980 (find_offloadbeginend): Replace with ...
29981 (find_crtoffloadtable): ... this.
29982 (run_gcc): Remove offload_argc and offload_argv.
29983 Get offload_objects_file_name from -foffload-objects=... option.
29984 Read names of object files with offload from this file, pass them to
29985 compile_images_for_offload_targets. Don't call find_offloadbeginend and
29986 don't pass offloadbegin and offloadend to the linker. Don't pass
29987 offload non-LTO files to the linker, because now they're not claimed.
29988
29989 2016-02-25 Jan Hubicka <hubicka@ucw.cz>
29990
29991 PR ipa/69630
29992 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
29993 on builtin_unreachable.
29994
29995 2016-02-25 Jakub Jelinek <jakub@redhat.com>
29996
29997 PR rtl-optimization/69896
29998 * regcprop.c: Include cfgrtl.h.
29999 (copyprop_hardreg_forward_1): If noop_p insn uses narrower
30000 than remembered mode, either delete it (if noop_move_p), or
30001 treat like copy_p but not noop_p instruction.
30002
30003 2016-02-24 Jakub Jelinek <jakub@redhat.com>
30004
30005 PR debug/69705
30006 * dwarf2out.c (gen_variable_die): Work around buggy LTO
30007 - allow NULL decl for Fortran DW_TAG_common_block variables.
30008
30009 2016-02-24 Jason Merrill <jason@redhat.com>
30010
30011 * common.opt (flifetime-dse): Add -flifetime-dse=1.
30012
30013 2016-02-24 Richard Biener <rguenther@suse.de>
30014 Jakub Jelinek <jakub@redhat.com>
30015
30016 PR middle-end/69760
30017 * tree-scalar-evolution.c (interpret_rhs_expr): Re-write
30018 conditionally executed ops to well-defined overflow behavior.
30019
30020 2016-02-24 Jakub Jelinek <jakub@redhat.com>
30021
30022 PR middle-end/69915
30023 * tree.c (build_vector_from_ctor): Fix handling of VECTOR_CST
30024 elements.
30025
30026 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30027
30028 PR rtl-optimization/69886
30029 * gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode
30030 argument. Use it when checking validity of set instructions.
30031 (want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p.
30032 (compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p
30033 callsite.
30034 * rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype.
30035 * store-motion.c (find_moveable_store): Update
30036 can_assign_to_reg_without_clobbers_p callsite.
30037
30038 2016-02-24 Richard Biener <rguenther@suse.de>
30039
30040 PR middle-end/68963
30041 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix
30042 bogus check.
30043 (record_nonwrapping_iv): Do not fall back to the low/high bound
30044 for non-constant IV bases if the stmt is not always executed.
30045
30046 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30047
30048 * config/arm/arm-cores.def (cortex-a32): New entry.
30049 * config/arm/arm-tables.opt: Regenerate.
30050 * config/arm/arm-tune.md: Regenerate.
30051 * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a32.
30052 * config/arm/t-aprofile: Handle mcpu=cortex-a32.
30053 * doc/invoke.texi (ARM Options): Document cortex-a32 as value
30054 for -mcpu and -mtune.
30055
30056 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30057
30058 PR target/69875
30059 * config/arm/arm.h (TARGET_HAVE_LPAE): Define.
30060 * config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value.
30061 * config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern.
30062 (atomic_loaddi_1): Delete.
30063 (atomic_loaddi): Rewrite expander using the above changes.
30064
30065 2016-02-24 Jakub Jelinek <jakub@redhat.com>
30066
30067 PR c/69918
30068 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): Bump default from
30069 2 to 3.
30070
30071 2016-02-24 Jakub Jelinek <jakub@redhat.com>
30072 Richard Biener <rguenth@suse.de>
30073
30074 PR middle-end/69909
30075 * expr.c (expand_expr_real_1) <normal_inner_ref>: Avoid
30076 set_mem_attributes if tem is SSA_NAME which got expanded
30077 as a MEM.
30078
30079 2016-02-24 Richard Biener <rguenther@suse.de>
30080
30081 PR tree-optimization/69907
30082 * tree-vect-stmts.c (vectorizable_load): Check for gaps at the
30083 end of permutations for BB vectorization.
30084
30085 2016-02-24 Christian Bruel <christian.bruel@st.com>
30086
30087 * config/arm/arm-c.c (arm_option_override): Initialize
30088 target_option_current_node.
30089 * config/arm/arm.c (arm_pragma_target_parse): Replace
30090 build_target_option_node call by target_option_current_node.
30091 Set target_option_current_node.
30092 Fix comments.
30093
30094 2016-02-23 David Edelsohn <dje.gcc@gmail.com>
30095
30096 PR target/69810
30097 * config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from
30098 define_insn_and_split to define_insn.
30099 (zero_extendqi<mode>2_dot2): Same.
30100 (extendqi<mode>2_dot): Same.
30101 (extendqi<mode>2_dot2): Same.
30102
30103 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
30104
30105 * config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores
30106 and add bypass for AES{D,E} and AESMC pairs.
30107 * config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E}
30108 and AESMC pairs.
30109
30110 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
30111
30112 * config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
30113 series for reciprocal square root in Exynos M1.
30114
30115 2016-02-23 Martin Sebor <msebor@redhat.com>
30116
30117 PR c/69759
30118 * doc/extend.texi (Other Builtins): Document __builtin_alloca and
30119 __builtin_alloca_with_align.
30120
30121 2016-02-23 Richard Henderson <rth@redhat.com>
30122
30123 * config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS.
30124 (ix86_register_pragmas): Remove __seg_tls.
30125 * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove.
30126 * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it.
30127 (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove.
30128 (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove.
30129 (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove.
30130 * doc/extend.texi (__seg_tls): Remove item.
30131
30132 2016-02-23 Richard Biener <rguenther@suse.de>
30133
30134 * alloc-pool.h (struct allocation_object): Make id member
30135 conditional on CHECKING_P again.
30136 (get_instance): Adjust.
30137 (base_pool_allocator): Likewise.
30138
30139 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
30140
30141 * tree-parloops.c (create_parallel_loop, gen_parallel_loop)
30142 (parallelize_loops): In OpenACC kernels mode, set n_threads to
30143 zero.
30144 (pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
30145 flag_openacc.
30146 * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
30147
30148 2016-02-23 Richard Biener <rguenther@suse.de>
30149
30150 * mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
30151 * bitmap.h (struct bitmap_usage): Likewise.
30152 (bitmap_move): Declare.
30153 * bitmap.c (register_overhead): Take size_t argument.
30154 (bitmap_move): New function.
30155 * df-problems.c (df_rd_transfer_function): Use bitmap_move
30156 to properly account overhead.
30157 * tree.c (free_node): Use tree_size.
30158
30159 2016-02-23 Jakub Jelinek <jakub@redhat.com>
30160
30161 PR c++/69902
30162 * fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
30163 when inverting comparison.
30164
30165 PR c/69900
30166 * common.opt (Wunreachable-code): Add Warning flag.
30167
30168 2016-02-23 Mark Wielaard <mjw@redhat.com>
30169 Jakub Jelinek <jakub@redhat.com>
30170
30171 PR c/69911
30172 * cgraphunit.c (check_global_declaration): Check main_input_filename
30173 and DECL_SOURCE_FILE are not NULL.
30174
30175 2016-02-23 Martin Jambor <mjambor@suse.cz>
30176
30177 PR tree-optimization/69666
30178 * tree-sra.c (sra_modify_assign): Do not attempt to create
30179 default_def replacements for unscalarizable regions.
30180
30181 2016-02-20 Mark Wielaard <mjw@redhat.com>
30182
30183 PR c/28901
30184 * cgraphunit.c (check_global_declaration): Check level of
30185 warn_unused_const_variable and main_input_filename.
30186 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable=.
30187 (-Wunused-variable): For C implies -Wunused-const-variable=1.
30188 (-Wunused-const-variable): Explain levels 1 and 2.
30189
30190 2016-02-22 Jakub Jelinek <jakub@redhat.com>
30191
30192 PR target/69888
30193 * config/i386/i386.c (decide_alg): Ensure we don't recurse with
30194 identical arguments. Formatting and spelling fixes.
30195
30196 PR target/69885
30197 * doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
30198 be specified.
30199
30200 PR target/69894
30201 PR target/69895
30202 * config/m68k/t-opts (OPTIONS_H_EXTRA): Add m68k-microarchs.def
30203 and m68k-devices.def.
30204 * config/c6x/t-c6x (OPTIONS_H_EXTRA): Add c6x-isas.def.
30205 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add aarch64-arches.def.
30206
30207 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
30208
30209 * config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode
30210 and HImode registers.
30211
30212 2016-02-22 Richard Biener <rguenther@suse.de>
30213
30214 PR tree-optimization/69882
30215 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly
30216 preserve permutations present because of gaps.
30217 (vect_supported_load_permutation_p): Always continue checking
30218 permutations after vect_attempt_slp_rearrange_stmts.
30219
30220 2016-02-22 Bin Cheng <bin.cheng@arm.com>
30221
30222 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
30223 min_profitable_estimate, rather than min_profitable_iters.
30224
30225 2016-02-22 Jakub Jelinek <jakub@redhat.com>
30226
30227 PR target/69885
30228 * config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
30229 SImode for last match_operand.
30230
30231 2016-02-22 Martin Liska <mliska@suse.cz>
30232
30233 * hsa-gen.c (gen_hsa_clrsb): In case of zero value,
30234 return bitsize - 1 as the return value.
30235
30236 2016-02-22 Oleg Endo <olegendo@gcc.gnu.org>
30237
30238 PR target/69806
30239 PR target/54089
30240 * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p):
30241 Handle negative shift counts.
30242 * config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use
30243 force_reg on the shift constant.
30244 (lshrsi3): Likewise. Expand into lshrsi3_n* instead of lshrsi3_d.
30245 (lshrsi3_d): Handle negative shift counts.
30246
30247 2016-02-22 Richard Biener <rguenther@suse.de>
30248 Tom de Vries <tom@codesourcery.com>
30249
30250 * graph.c: Include dumpfile.h.
30251 (print_graph_cfg): Split into three overloads.
30252 * gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn.
30253
30254 2016-02-22 Tom de Vries <tom@codesourcery.com>
30255
30256 * gdbhooks.py (class DumpFn): Add and instantiate, adding command
30257 dump-fn.
30258
30259 2016-02-22 Richard Biener <rguenther@suse.de>
30260
30261 PR ipa/37448
30262 * ipa-inline-transform.c (inline_call): When not updating
30263 overall summaries adjust self size by the growth estimate.
30264 * ipa-inline.c (inline_to_all_callers_1): Add to the callers
30265 hash-set, do not update overall summaries here. Renamed from ...
30266 (inline_to_all_callers): ... this which is now wrapping the
30267 above and performing delayed overall summary update.
30268 (early_inline_small_functions): Delay updating of the overall
30269 summary.
30270
30271 2016-02-21 Markus Trippelsdorf <markus@trippelsdorf.de>
30272
30273 * tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
30274 variable.
30275
30276 2016-02-19 Jakub Jelinek <jakub@redhat.com>
30277
30278 PR driver/69805
30279 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use
30280 :%* in %:gt() argument.
30281 (greater_than_spec_func): Adjust for expecting only numbers,
30282 if there are more than two numbers, compare the last two.
30283
30284 2016-02-19 Jonathan Wakely <jwakely@redhat.com>
30285
30286 * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
30287 -Wnarrowing with -std.
30288
30289 2016-02-19 Jakub Jelinek <jakub@redhat.com>
30290
30291 PR c++/69851
30292 * expr.c (store_field): Don't use bit-field path if exp is
30293 COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
30294 different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
30295 and the assignment can be performed by bitwise copy. Formatting
30296 fix.
30297
30298 PR middle-end/69838
30299 * lra.c (lra_process_new_insns): If non-call exceptions are enabled,
30300 call copy_reg_eh_region_note_forward on before and/or after sequences
30301 and remove note from insn if it no longer can throw.
30302
30303 PR target/69820
30304 * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
30305 if TARGET_AVX512BW.
30306
30307 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30308
30309 * config/s390/vector.md: Add missing commutative operand markers
30310 to the patterns which qualify for one.
30311 * config/s390/vx-builtins.md: Likewise.
30312
30313 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30314
30315 * config/s390/vector.md (VI, VI_QHS): Add single element vector
30316 types to mode iterators.
30317 (vec_double): ... and mode attribute.
30318 * config/s390/vx-builtins.md (non_vec_int): Likewise.
30319
30320 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30321
30322 * config/s390/vector.md ("<ti*>add<mode>3", "<ti*>sub<mode>3"):
30323 Change the predicate of op2 from nonimmediate to general and let
30324 reload fix it if necessary.
30325
30326 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30327
30328 * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
30329
30330 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30331
30332 * config/s390/s390.c (s390_expand_vcond): Use the compare operand
30333 mode.
30334
30335 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30336
30337 * config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
30338 * config/s390/s390.c (s390_expand_vec_movstr): New function.
30339 * config/s390/s390.md ("movstr<P:mode>"): Call
30340 s390_expand_vec_movstr.
30341
30342 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30343
30344 * config/s390/s390.md: Add missing output modifier for operand 1
30345 to print it as address properly.
30346
30347 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30348
30349 * config/s390/2827.md: Rename ooo_* insn attributes to zEC12_*.
30350 * config/s390/2964.md: New file.
30351 * config/s390/s390.c (s390_get_sched_attrmask): Use the right set
30352 of insn grouping attributes depending on the CPU level.
30353 (s390_get_unit_mask): New function.
30354 (s390_sched_score): Remove the OOO from the scheduling macros.
30355 Add loop to calculate a score for the instruction mix.
30356 (s390_sched_reorder): Likewise plus improve debug output.
30357 (s390_sched_variable_issue): Rename macros as above. Calculate
30358 the unit distances after actually scheduling an insn. Improve
30359 debug output.
30360 (s390_sched_init): Clear last_scheduled_unit_distance array.
30361 * config/s390/s390.md: Include 2964.md.
30362
30363 2016-02-18 Jakub Jelinek <jakub@redhat.com>
30364
30365 PR target/69671
30366 * config/i386/sse.md (*<floatsuffix>floatv2div2sf2_mask_1,
30367 *avx512vl_<code>v2div2qi2_mask_1, *avx512vl_<code><mode>v4qi2_mask_1,
30368 *avx512vl_<code><mode>v8qi2_mask_1, *avx512vl_<code><mode>v4hi2_mask_1,
30369 *avx512vl_<code>v2div2hi2_mask_1, *avx512vl_<code>v2div2si2_mask_1,
30370 *avx512f_<code>v8div16qi2_mask_1): New insns.
30371
30372 2016-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
30373
30374 PR target/68404
30375 * config/rs6000/predicates.md (fusion_gpr_addis): Revert
30376 2016-02-09 change.
30377
30378 * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
30379 earlyclobber from target. Use wF constraint for fused memory
30380 address.
30381 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
30382
30383 2016-02-18 Jakub Jelinek <jakub@redhat.com>
30384 Martin Liska <mliska@suse.cz>
30385
30386 PR sanitizer/69863
30387 * cfgexpand.c (asan_sanitize_stack_p): New function.
30388 (partition_stack_vars): Use the function.
30389 (expand_stack_vars): Likewise.
30390 (defer_stack_allocation): Likewise.
30391 (expand_used_vars): Likewise.
30392
30393 2016-02-18 Richard Biener <rguenther@suse.de>
30394
30395 PR middle-end/69553
30396 * fold-const.c (operand_equal_p): Properly compare offsets for
30397 IMAGPART_EXPR and ARRAY_REF.
30398
30399 2016-02-18 Nick Clifton <nickc@redhat.com>
30400
30401 PR target/62254
30402 PR target/69610
30403 * config/arm/arm.c (arm_option_override_internal): Disable
30404 interworking if the target does not support thumb instructions.
30405 (arm_reload_in_hi): Handle the case where a register to register
30406 move needs reloading because there is no simple pattern to handle
30407 it.
30408 (arm_reload_out_hi): Likewise.
30409
30410 2016-02-18 Richard Biener <rguenther@suse.de>
30411
30412 PR middle-end/69854
30413 * match.pd: Don't use fold_binary or fold_unary for folding
30414 constants.
30415
30416 2016-02-17 Jakub Jelinek <jakub@redhat.com>
30417
30418 PR c++/69850
30419 * gimplify.c (gimplify_cond_expr): Call gimple_set_no_warning
30420 on the cond_stmt from TREE_NO_WARNING on COND_EXPR_COND.
30421 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Don't
30422 warn on gimple_no_warning_p statements.
30423
30424 2016-02-17 Jonathan Wakely <jwakely@redhat.com>
30425
30426 * doc/extend.texi (C++ Attributes): Correct description of
30427 warn_unused type attribute.
30428
30429 2016-02-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30430
30431 * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
30432 correct instruction.
30433
30434 2016-02-17 Richard Biener <rguenther@suse.de>
30435
30436 PR rtl-optimization/69609
30437 * bb-reorder.c (struct bbro_basic_block_data): Add priority member.
30438 (find_traces_1_round): When ending a trace update cached priority
30439 of successors.
30440 (bb_to_key): Use cached priority when available.
30441 (copy_bb): Initialize cached priority.
30442 (reorder_basic_blocks_software_trace_cache): Likewise.
30443
30444 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30445
30446 PR target/69161
30447 * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
30448 New predicate.
30449 (aarch64_comparison_operator): Break overly long line into two.
30450 (aarch64_comparison_operation): Likewise.
30451 * config/aarch64/aarch64.md (cstorecc4): Use
30452 aarch64_comparison_operator_mode instead of
30453 aarch64_comparison_operator.
30454 (cstore<mode>4): Likewise.
30455 (aarch64_cstore<mode>): Likewise.
30456 (*cstoresi_insn_uxtw): Likewise.
30457 (cstore<mode>_neg): Likewise.
30458 (*cstoresi_neg_uxtw): Likewise.
30459
30460 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30461
30462 PR target/69161
30463 * config/arm/predicates.md (arm_comparison_operator_mode):
30464 New predicate.
30465 * config/arm/arm.md (*mov_scc): Use arm_comparison_operator_mode
30466 instead of arm_comparison_operator.
30467 (*mov_negscc): Likewise.
30468 (*mov_notscc): Likewise.
30469 * config/arm/thumb2.md (*thumb2_mov_scc): Likewise.
30470 (*thumb2_mov_negscc): Likewise.
30471 (*thumb2_mov_negscc_strict_it): Likewise.
30472 (*thumb2_mov_notscc): Likewise.
30473 (*thumb2_mov_notscc_strict_it): Likewise.
30474
30475 2016-02-17 Wilco Dijkstra <wdijkstr@arm.com>
30476
30477 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
30478 Add missing return.
30479
30480 2016-02-17 Eric Botcazou <ebotcazou@adacore.com>
30481
30482 * config/visium/visium.c (machine_libfunc_index): New enum.
30483 (machine_libfuncs): New structure.
30484 (visium_libfuncs): New static variable.
30485 (TARGET_INIT_LIBFUNCS): Define to...
30486 (visium_init_libfuncs): ...this. New function.
30487 (expand_block_move_4): Use the appropriate libfunc.
30488 (expand_block_move_2): Likewise.
30489 (expand_block_move_1): Likewise.
30490 (expand_block_set_4): Likewise.
30491 (expand_block_set_2): Likewise.
30492 (expand_block_set_1): Likewise.
30493 (visium_trampoline_init): Likewise.
30494
30495 2016-02-17 Nick Clifton <nickc@redhat.com>
30496
30497 * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
30498 TI's devices.csv file as of March 2016.
30499
30500 2016-02-16 Kelvin Nilsen <kelvin@gcc.gnu.org>
30501
30502 PR Target/48344
30503 * opts-global.c (handle_common_deferred_options): Introduce and
30504 initialize two global variables to remember command-line options
30505 specifying a stack-limiting register.
30506 * opts.h: Add extern declarations of the two new global variables.
30507 * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx
30508 variable based on the values of the two new global variables.
30509
30510 2016-02-16 Jakub Jelinek <jakub@redhat.com>
30511
30512 PR c/69835
30513 * common.opt (Wnonnull-compare): New warning.
30514 * doc/invoke.texi (-Wnonnull): Remove text about comparison
30515 of arguments against NULL.
30516 (-Wnonnull-compare): Document.
30517 * Makefile.in (OBJS): Add gimple-ssa-nonnull-compare.o.
30518 * tree-pass.h (make_pass_warn_nonnull_compare): Declare.
30519 * passes.def (pass_warn_nonnull_compare): Add.
30520 * gimple-ssa-nonnull-compare.c: New file.
30521
30522 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
30523
30524 * config/aarch64/aarch64.c (cortexa57_tunings): Remove
30525 AARCH64_EXTRA_TUNE_RECIP_SQRT.
30526
30527 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
30528
30529 * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
30530 reciprocal sqrt for -mlow-precision-recip-sqrt.
30531
30532 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
30533 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
30534
30535 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
30536 always use lane loads to construct non-constant vectors.
30537
30538 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
30539
30540 * config/aarch64/aarch64.md
30541 (arch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Fix register
30542 constraints for operand 3.
30543 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
30544
30545 2016-02-16 Jakub Jelinek <jakub@redhat.com>
30546 Richard Biener <rguenther@suse.de>
30547
30548 PR tree-optimization/69820
30549 * tree-vect-patterns.c (type_conversion_p): Return false if
30550 *orig_type is unsigned single precision or boolean.
30551 (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern):
30552 Formatting fix.
30553
30554 2016-02-16 Jakub Jelinek <jakub@redhat.com>
30555
30556 PR rtl-optimization/69764
30557 PR rtl-optimization/69771
30558 * optabs.c (expand_binop): Ensure for shift optabs invalid CONST_INT
30559 op1 is valid for GET_MODE_INNER (mode) and force it into a reg.
30560
30561 2016-02-16 Richard Biener <rguenther@suse.de>
30562
30563 PR tree-optimization/69776
30564 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
30565 sets from caller.
30566 (indirect_refs_may_alias_p): Likewise.
30567 (refs_may_alias_p_1): Pass alias sets as from ao_ref.
30568 * tree-ssa-sccvn.c (vn_reference_lookup): Also adjust vr alias-set
30569 according to tbaa_p.
30570 * tree-ssa-dom.c (lookup_avail_expr): Add tbaa_p flag.
30571 (optimize_stmt): For redundant store discovery do not allow tbaa.
30572
30573 2016-02-16 Bernd Schmidt <bschmidt@redhat.com>
30574
30575 PR tree-optimization/69714
30576 * tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
30577 Return NULL if we have irrelevant high bytes on BIG_ENDIAN.
30578
30579 2016-02-16 Claudiu Zissulescu <claziss@synopsys.com>
30580
30581 * config/arc/arc-modes.def (CC_FPU, CC_FPU_UNEQ): New modes.
30582 * config/arc/arc-opts.h (FPU_SP, FPU_SF, FPU_SC, FPU_SD, FPU_DP)
30583 (FPU_DF, FPU_DC, FPU_DD, FXP_DP): Define.
30584 * config/arc/arc.c (arc_init): Check FPU options.
30585 (get_arc_condition_code): Handle new CC_FPU* modes.
30586 (arc_select_cc_mode): Likewise.
30587 (arc_conditional_register_usage): Allow 64 bit datum into even-odd
30588 register pair only. Allow access for ARCv2 accumulator.
30589 (gen_compare_reg): Whenever we have FPU support use FPU compare
30590 instructions.
30591 (arc_reorg): Don't generate brcc insns when FPU compare
30592 instructions are involved.
30593 * config/arc/arc.h (TARGET_DPFP): Add TARGET_FP_DPAX condition.
30594 (TARGET_OPTFPE): Add condition when ARC EM can use optimized
30595 floating point emulation.
30596 (ACC_REG_FIRST, ACC_REG_LAST, ACCL_REGNO, ACCH_REGNO): Define.
30597 (REVERSE_CONDITION): Add new CC_FPU* modes.
30598 (TARGET_FP_SP_BASE): Define.
30599 (TARGET_FP_DP_BASE): Likewise.
30600 (TARGET_FP_SP_FUSED): Likewise.
30601 (TARGET_FP_DP_FUSED): Likewise.
30602 (TARGET_FP_SP_CONV): Likewise.
30603 (TARGET_FP_DP_CONV): Likewise.
30604 (TARGET_FP_SP_SQRT): Likewise.
30605 (TARGET_FP_DP_SQRT): Likewise.
30606 (TARGET_FP_DP_AX): Likewise.
30607 * config/arc/arc.md (ARCV2_ACC): New constant.
30608 (type): New fpu type attribute.
30609 (SDF): Conditional iterator.
30610 (cstore<mode>, cbranch<mode>): Change expand condition.
30611 (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3): New expands,
30612 handles FPU/FPX cases as well.
30613 * config/arc/arc.opt (mfpu): New option.
30614 * config/arc/fpx.md (addsf3_fpx, subsf3_fpx, mulsf3_fpx):
30615 Renamed.
30616 (adddf3, muldf3, subdf3): Removed.
30617 * config/arc/predicates.md (proper_comparison_operator): Recognize
30618 CC_FPU* modes.
30619 * config/arc/fpu.md: New file.
30620 * doc/invoke.texi (ARC Options): Document mfpu option.
30621
30622 2016-02-16 Richard Biener <rguenther@suse.de>
30623
30624 PR rtl-optimization/69291
30625 * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
30626 noce_operand_ok check.
30627
30628 2016-02-16 Tom de Vries <tom@codesourcery.com>
30629
30630 PR lto/67709
30631 * omp-low.c (simd_clone_create): Remove call to
30632 symtab->call_cgraph_insertion_hooks.
30633
30634 2016-02-16 Jakub Jelinek <jakub@redhat.com>
30635
30636 PR tree-optimization/69802
30637 * tree-ssa-reassoc.c (update_range_test): If op is
30638 SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
30639 op == 1 test of precision 1 integral op, otherwise handle
30640 that case as op itself. Fix up formatting.
30641 (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
30642 up formatting.
30643
30644 2016-02-16 Richard Biener <rguenther@suse.de>
30645
30646 PR tree-optimization/69586
30647 * tree-vrp.c (register_edge_assert_for_2): Handle all integral
30648 types for conversion sources.
30649
30650 2016-02-16 Richard Biener <rguenther@suse.de>
30651
30652 PR middle-end/69801
30653 * fold-const.c (operand_equal_p): For COND_EXPR zero operand
30654 mask OEP_ADDRESS_OF.
30655
30656 2016-02-16 Alan Modra <amodra@gmail.com>
30657
30658 PR target/68973
30659 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
30660 (p8_mtvsrd_df, p8_mtvsrd_sf): New.
30661 (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
30662 (p8_mtvsrwz): New.
30663 (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
30664 (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
30665 (p8_fmrgow_<mode>): Likewise.
30666 (reload_vsx_from_gpr<mode>): Make clobber IF. Adjust for above
30667 changes.
30668 (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
30669 (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
30670 to use movdi_internal64. Remove op0_di.
30671 * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
30672
30673 2016-02-15 Evandro Menezes <e.menezes@samsung.com>
30674
30675 Add support for the FCCMP insn types
30676
30677 * config/aarch64/aarch64.md (fccmp): Change insn type.
30678 (fccmpe): Likewise.
30679 * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
30680 * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
30681 * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
30682 * config/arm/xgene1.md (xgene1_fcmp): Likewise.
30683 * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
30684 * config/arm/types.md (fccmps): Add new insn type.
30685 (fccmpd): Likewise.
30686
30687 2016-02-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
30688
30689 * alias.c (get_alias_set): Fix a typo in comment.
30690
30691 2016-02-15 Richard Biener <rguenther@suse.de>
30692
30693 PR tree-optimization/69595
30694 * match.pd: Complete range test simplification to true.
30695
30696 2016-02-15 Bernd Schmidt <bschmidt@redhat.com>
30697
30698 PR rtl-optimization/69648
30699 * lra-constraints.c (update_ebb_live_info): Don't remove sets of
30700 pic_offset_table_rtx.
30701
30702 PR rtl-optimization/69752
30703 * ira.c (update_equiv_regs): When looking for more than a single SET,
30704 also take other side effects into account.
30705
30706 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
30707
30708 * config/s390/s390.c (s390_function_profiler): Add a new sequence
30709 for z900+ CPUs in 31-bit mode.
30710
30711 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
30712
30713 * common/config/s390/s390-common.c (s390_supports_split_stack):
30714 New function.
30715 (TARGET_SUPPORTS_SPLIT_STACK): New macro.
30716 * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
30717 * config/s390/s390.c (struct machine_function): New field
30718 split_stack_varargs_pointer.
30719 (s390_register_info): Mark r12 as clobbered if it'll be used as temp
30720 in s390_emit_prologue.
30721 (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
30722 vararg pointer.
30723 (morestack_ref): New global.
30724 (SPLIT_STACK_AVAILABLE): New macro.
30725 (s390_expand_split_stack_prologue): New function.
30726 (s390_live_on_entry): New function.
30727 (s390_va_start): Use split-stack vararg pointer if appropriate.
30728 (s390_asm_file_end): Emit the split-stack note sections.
30729 (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
30730 * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
30731 (UNSPECV_SPLIT_STACK_CALL): New unspec.
30732 (UNSPECV_SPLIT_STACK_DATA): New unspec.
30733 (split_stack_prologue): New expand.
30734 (split_stack_space_check): New expand.
30735 (split_stack_data): New insn.
30736 (split_stack_call): New expand.
30737 (split_stack_call_*): New insn.
30738 (split_stack_cond_call): New expand.
30739 (split_stack_cond_call_*): New insn.
30740
30741 2016-02-15 Richard Biener <rguenther@suse.de>
30742
30743 PR tree-optimization/69783
30744 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
30745 Add trivially correct cases.
30746
30747 2016-02-15 Tom de Vries <tom@codesourcery.com>
30748
30749 PR lto/69655
30750 * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
30751 do_force_output.
30752 * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
30753
30754 2016-02-15 Richard Biener <rguenther@suse.de>
30755
30756 PR tree-optimization/69776
30757 * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
30758 * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
30759 indicate whether we can use TBAA to disambiguate against stores.
30760 Use alias-set zero if not.
30761 (visit_reference_op_store): Do not use TBAA when looking up
30762 redundant stores.
30763 * tree-ssa-pre.c (compute_avail): Use TBAA here.
30764 (eliminate_dom_walker::before_dom_children): But not when looking
30765 up redundant stores.
30766
30767 2016-02-14 John David Anglin <danglin@gcc.gnu.org>
30768
30769 * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
30770
30771 2016-02-14 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
30772
30773 * config/i386/znver1.md
30774 (znver1_pop, znver1_pop_mem,
30775 znver1_load_imov_double_store,
30776 znver1_load_imov_direct_store,
30777 znver1_load_imov_direct_load,
30778 znver1_load_imov_double_load): Add new.
30779 (znver1_insn, znver1_insn_load): Add icmov type.
30780 (znver1_sseavx_fma,
30781 znver1_sseavx_fma_load,
30782 znver1_avx256_fma,
30783 znver1_avx256_fma_load): Fix pipe usage.
30784
30785 2016-02-14 Alan Modra <amodra@gmail.com>
30786
30787 PR target/68973
30788 * reload.c (find_reloads_address_1): For pre/post-inc/dec
30789 with an invalid hard reg, reload just the reg not the entire
30790 pre/post-inc/dec address expression.
30791
30792 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
30793
30794 PR target/67260
30795 * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
30796 fixed R1_REG scratch reg.
30797 (sibcall_value_pcrel_fdpic): Likewise.
30798
30799 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
30800
30801 PR target/67636
30802 PR target/64345
30803 * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
30804
30805 2016-02-12 Walter Lee <walt@tilera.com>
30806
30807 * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
30808 * config/tilegx/t-tilegx: Likewise.
30809
30810 2016-02-12 David Malcolm <dmalcolm@redhat.com>
30811
30812 PR other/69554
30813 * diagnostic-show-locus.c (struct line_span): New struct.
30814 (layout::get_first_line): Delete.
30815 (layout::get_last_line): Delete.
30816 (layout::get_num_line_spans): New member function.
30817 (layout::get_line_span): Likewise.
30818 (layout::print_heading_for_line_span_index_p): Likewise.
30819 (layout::get_expanded_location): Likewise.
30820 (layout::calculate_line_spans): Likewise.
30821 (layout::m_first_line): Delete.
30822 (layout::m_last_line): Delete.
30823 (layout::m_line_spans): New field.
30824 (layout::layout): Update comment. Replace m_first_line and
30825 m_last_line with m_line_spans, replacing their initialization
30826 with a call to calculate_line_spans.
30827 (diagnostic_show_locus): When printing source lines and
30828 annotations, rather than looping over a single span
30829 of lines, instead loop over each line_span within
30830 the layout, with an inner loop over the lines within them.
30831 Call the context's start_span callback when changing line spans.
30832 * diagnostic.c (diagnostic_initialize): Initialize start_span.
30833 (diagnostic_build_prefix): Break out the building of the location
30834 part of the string into...
30835 (diagnostic_get_location_text): ...this new function, rewriting
30836 it from nested ternary expressions to a sequence of "if"
30837 statements.
30838 (default_diagnostic_start_span_fn): New function.
30839 * diagnostic.h (diagnostic_start_span_fn): New typedef.
30840 (diagnostic_context::start_span): New field.
30841 (default_diagnostic_start_span_fn): New prototype.
30842
30843 2016-02-12 David Malcolm <dmalcolm@redhat.com>
30844
30845 PR driver/69779
30846 * gcc.c (driver::finalize): Fix cleanup of "specs".
30847
30848 2016-02-12 David Malcolm <dmalcolm@redhat.com>
30849
30850 PR driver/69265
30851 PR driver/69453
30852 * gcc.c (driver::driver): Initialize m_option_suggestions.
30853 (driver::~driver): Clean up m_option_suggestions.
30854 (suggest_option): Convert to...
30855 (driver::suggest_option): ...this, and split out into
30856 driver::build_option_suggestions and find_closest_string.
30857 (driver::build_option_suggestions): New function, from
30858 first half of suggest_option. Special-case
30859 OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
30860 the sanitizer_opts array. For options of enum types, add the
30861 various enum values to the candidate strings.
30862 (driver::handle_unrecognized_options): Remove "const".
30863 * gcc.h (driver::handle_unrecognized_options): Likewise.
30864 (driver::build_option_suggestions): New decl.
30865 (driver::suggest_option): New decl.
30866 (driver::m_option_suggestions): New field.
30867 * opts-common.c (add_misspelling_candidates): New function.
30868 * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
30869 and make non-static.
30870 * opts.h (sanitizer_opts): New array decl.
30871 (add_misspelling_candidates): New function decl.
30872 * spellcheck.c (find_closest_string): New function.
30873 * spellcheck.h (find_closest_string): New function decl.
30874
30875 2016-02-12 Jakub Jelinek <jakub@redhat.com>
30876
30877 PR rtl-optimization/69764
30878 PR rtl-optimization/69771
30879 * optabs.c (expand_binop_directly): For shift_optab_p, force
30880 convert_modes with VOIDmode if xop1 has VOIDmode.
30881
30882 2016-02-12 Ilya Enkovich <enkovich.gnu@gmail.com>
30883
30884 PR target/69729
30885 * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
30886 to correctly determine instrumentation thunks.
30887
30888 2016-02-12 Jakub Jelinek <jakub@redhat.com>
30889
30890 PR ipa/69241
30891 * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
30892 type by reference, force lhs on the call.
30893
30894 PR ipa/68672
30895 * ipa-split.c (split_function): Don't compute/use main_part_return_p.
30896 Compute retval and retbnd early in all cases if split_part_return_p
30897 and return_bb is not EXIT. Remove all clobber stmts and reset
30898 all debug stmts that refer to SSA_NAMEs defined in split part,
30899 except if it is retval, in that case replace the old retval with the
30900 lhs of the call to the split part.
30901
30902 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
30903
30904 revert:
30905 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
30906
30907 PR middle-end/66726
30908 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
30909 whose result is used in PHI.
30910 (maybe_optimize_range_tests): Likewise.
30911 (final_range_test_p): Likweise.
30912
30913 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
30914
30915 PR middle-end/66726
30916 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
30917 whose result is used in PHI.
30918 (maybe_optimize_range_tests): Likewise.
30919 (final_range_test_p): Likweise.
30920
30921 2016-02-12 Jakub Jelinek <jakub@redhat.com>
30922
30923 * cgraph.c: Spelling fixes - behaviour -> behavior and
30924 neighbour -> neighbor.
30925 * target.def: Likewise.
30926 * sel-sched.c: Likewise.
30927 * config/mips/mips.c: Likewise.
30928 * config/arc/arc.md: Likewise.
30929 * config/arm/cortex-a57.md: Likewise.
30930 * config/arm/arm.c: Likewise.
30931 * config/arm/neon.md: Likewise.
30932 * config/arm/arm-c.c: Likewise.
30933 * config/vms/vms-c.c: Likewise.
30934 * config/s390/s390.c: Likewise.
30935 * config/i386/znver1.md: Likewise.
30936 * config/i386/i386.c: Likewise.
30937 * config/ia64/hpux-unix2003.h: Likewise.
30938 * config/msp430/msp430.md: Likewise.
30939 * config/rx/rx.c: Likewise.
30940 * config/rx/rx.md: Likewise.
30941 * config/aarch64/aarch64-simd.md: Likewise.
30942 * config/aarch64/aarch64.c: Likewise.
30943 * config/nvptx/nvptx.c: Likewise.
30944 * config/bfin/bfin.c: Likewise.
30945 * config/cris/cris.opt: Likewise.
30946 * config/rs6000/rs6000.c: Likewise.
30947 * target.h: Likewise.
30948 * spellcheck.c: Likewise.
30949 * ira-build.c: Likewise.
30950 * tree-inline.c: Likewise.
30951 * builtins.c: Likewise.
30952 * lra-constraints.c: Likewise.
30953 * explow.c: Likewise.
30954 * hwint.h: Likewise.
30955 * targhooks.c: Likewise.
30956 * tree-vect-data-refs.c: Likewise.
30957 * expr.c: Likewise.
30958 * doc/tm.texi: Likewise.
30959 * doc/extend.texi: Likewise.
30960 * doc/install.texi: Likewise.
30961 * doc/md.texi: Likewise.
30962 * tree-ssa-tail-merge.c: Likewise.
30963 * sched-int.h: Likewise.
30964 * match.pd: Likewise.
30965 * sched-ebb.c: Likewise.
30966 * target.def (omit_struct_return_reg): Likewise.
30967 * gimple-ssa-isolate-paths.c: Likewise.
30968 (find_implicit_erroneous_behaviour): Renamed to...
30969 (find_implicit_erroneous_behavior): ... this.
30970 (find_explicit_erroneous_behaviour): Renamed to...
30971 (find_explicit_erroneous_behavior): ... this.
30972 (gimple_ssa_isolate_erroneous_paths): Adjust caller.
30973
30974 2016-02-11 Segher Boessenkool <segher@kernel.crashing.org>
30975
30976 PR rtl-optimization/64682
30977 PR rtl-optimization/69567
30978 PR rtl-optimization/69737
30979 * combine.c (distribute_notes) <REG_DEAD>: If the register is set
30980 in I2 as well, just lose it.
30981
30982 2016-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30983
30984 * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
30985 New variable.
30986 (aarch64_last_printed_tune_string): Likewise.
30987 (aarch64_declare_function_name): Only output .arch assembler
30988 directive if it will be different from the previously output
30989 directive. Same for .tune comment but only if -dA is set.
30990 (aarch64_start_file): New function.
30991 (TARGET_ASM_FILE_START): Define.
30992
30993 2016-02-11 David Malcolm <dmalcolm@redhat.com>
30994
30995 PR plugins/69758
30996 * Makefile.in (PLUGIN_HEADERS): Add params.list.
30997
30998 2016-02-11 Jakub Jelinek <jakub@redhat.com>
30999
31000 PR target/65313
31001 * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
31002 -Wmaybe-uninitialized warning.
31003
31004 2016-02-11 Oleg Endo <olegendo@gcc.gnu.org>
31005
31006 PR target/69713
31007 * config/sh/sh.md (casesi_worker_0): Add T_REG use.
31008
31009 2016-02-11 Richard Biener <rguenther@suse.de>
31010
31011 PR rtl-optimization/69291
31012 * ifcvt.c (noce_try_store_flag_constants): Do not allow
31013 subexpressions affected by changing the result.
31014
31015 2016-02-10 Vladimir Makarov <vmakarov@redhat.com>
31016
31017 PR target/69148
31018 * lra-constraints.c (curr_insn_transform): Find in/out operands
31019 for secondary memory moves. Update dups.
31020
31021 2016-02-10 Yuri Rumyantsev <ysrumyan@gmail.com>
31022
31023 PR tree-optimization/69652
31024 * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
31025 to nested loop, did source re-formatting, skip debug statements,
31026 add check on statement with volatile operand, remove dead scalar
31027 statements.
31028
31029 2016-02-10 Jakub Jelinek <jakub@redhat.com>
31030 Patrick Palka <ppalka@gcc.gnu.org>
31031
31032 PR ipa/69241
31033 PR c++/69649
31034 * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
31035 calls if the return type is TREE_ADDRESSABLE.
31036 * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
31037 * ipa-split.c (split_function): Fix doubled "we" in comment.
31038 Use void return type for the split part even if
31039 !split_point->split_part_set_retval.
31040
31041 2016-02-10 Bin Cheng <bin.cheng@arm.com>
31042
31043 PR tree-optimization/68021
31044 * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
31045 when computing the value of biv cand by itself.
31046
31047 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
31048
31049 * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
31050 (cortexa57_tunings): Likewise.
31051 (cortexa72_tunings): Likewise.
31052 (arch_macro_fusion_pair_p): Add support for AES fusion.
31053 * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
31054 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
31055 Allow virtual registers before reload so early scheduling works.
31056 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
31057 correct latency and pipeline.
31058 (cortex_a57_crypto_complex): Likewise.
31059 (cortex_a57_crypto_xor): Likewise.
31060 (define_bypass): Add AES bypass.
31061
31062 2016-02-10 Richard Biener <rguenther@suse.de>
31063
31064 PR tree-optimization/69726
31065 * passes.def: Add DCE pass before late uninit.
31066 * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
31067 really fixup if-conversions job.
31068
31069 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
31070
31071 * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
31072 (arm_cortex_a57_tune): Likewise.
31073 (aarch_macro_fusion_pair_p): Add support for AES fusion.
31074 * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
31075
31076 2016-02-10 Eric Botcazou <ebotcazou@adacore.com>
31077
31078 * timevar.def (TV_PHASE_DBGINFO): Delete.
31079 (TV_PHASE_CHECK_DBGINFO): Likewise.
31080 * varpool.c (varpool_node::assemble_decl): Do not change timevar.
31081
31082 2016-02-10 Richard Biener <rguenther@suse.de>
31083
31084 PR tree-optimization/69719
31085 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
31086 Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
31087
31088 2016-02-09 Andrew Pinski <apinski@cavium.com>
31089
31090 PR tree-opt/69282
31091 * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
31092 get_vcond_mask_icode returns false.
31093
31094 2016-02-09 Michael Meissner <meissner@linux.vnet.ibm.com>
31095
31096 PR target/68404
31097 * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
31098 an ADDIS that adds a pointer to a large constant that sets the
31099 upper16 bits with a load operation.
31100
31101 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
31102
31103 PR target/68532
31104 * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
31105 order.
31106 * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
31107 endian.
31108 (vzipq_s16): Likewise.
31109 (vzipq_s32): Likewise.
31110 (vzipq_f32): Likewise.
31111 (vzipq_u8): Likewise.
31112 (vzipq_u16): Likewise.
31113 (vzipq_u32): Likewise.
31114 (vzipq_p8): Likewise.
31115 (vzipq_p16): Likewise.
31116
31117 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
31118
31119 PR target/68532
31120 * config/arm/arm.c (neon_endian_lane_map): New function.
31121 (neon_vector_pair_endian_lane_map): New function.
31122 (arm_evpc_neon_vuzp): Allow for big endian lane order.
31123 * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
31124 endian.
31125 (vuzpq_s16): Likewise.
31126 (vuzpq_s32): Likewise.
31127 (vuzpq_f32): Likewise.
31128 (vuzpq_u8): Likewise.
31129 (vuzpq_u16): Likewise.
31130 (vuzpq_u32): Likewise.
31131 (vuzpq_p8): Likewise.
31132 (vuzpq_p16): Likewise.
31133
31134 2016-02-11 Alexandre Oliva <aoliva@redhat.com>
31135
31136 PR target/69634
31137 * regstat.c (regstat_bb_compute_calls_crossed): Disregard
31138 debug insns.
31139
31140 2016-02-09 Uros Bizjak <ubizjak@gmail.com>
31141
31142 * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
31143 truncate const_int operand 1 to QImode.
31144
31145 2016-02-09 Eric Botcazou <ebotcazou@adacore.com>
31146
31147 * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
31148 corresponding to an abnormal edge.
31149
31150 2016-02-09 Tom de Vries <tom@codesourcery.com>
31151
31152 PR tree-optimization/69599
31153 * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
31154 function.
31155 (find_func_aliases_for_builtin_call, find_func_clobbers)
31156 (ipa_pta_execute): Handle case that foo and foo._0 are not in same lto
31157 partition.
31158
31159 2016-02-09 Richard Biener <rguenther@suse.de>
31160
31161 PR tree-optimization/69715
31162 * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
31163 LHS on calls as non-rewritable.
31164
31165 2016-02-09 Tom de Vries <tom@codesourcery.com>
31166
31167 PR lto/69707
31168 * lto-wrapper.c (append_diag_options): New function.
31169 (compile_offload_image): Call append_diag_options.
31170
31171 2016-02-08 Sandra Loosemore <sandra@codesourcery.com>
31172
31173 PR other/69722
31174 * doc/extend.texi (Flag Output Operands): Correct sectioning.
31175 Minor copy-edit to fix verb tenses.
31176
31177 2016-02-08 Jakub Jelinek <jakub@redhat.com>
31178
31179 PR tree-optimization/69209
31180 * ipa-split.c (split_function): If split part is not
31181 returning retval, retval has gimple type but is not
31182 gimple value, force it into a SSA_NAME first.
31183
31184 2016-02-08 Nicklas Bo Jensen <nbjensen@gmail.com>
31185
31186 * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
31187 outdated section.
31188
31189 2016-02-08 Jason Merrill <jason@redhat.com>
31190
31191 PR c++/69631
31192 * convert.c (convert_to_integer_1): Check dofold on truncation
31193 distribution.
31194 (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
31195 (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
31196 Rename from *_nofold.
31197 * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
31198 (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
31199
31200 2016-02-08 Bernd Schmidt <bschmidt@redhat.com>
31201
31202 PR target/60410
31203 * tree.c (build_common_tree_nodes): Remove short_double argument.
31204 All callers changed.
31205 * tree.h (build_common_tree_nodes): Adjust declaration.
31206 * doc/invoke.texi (-fshort-double): Remove documentation.
31207 * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
31208 MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
31209 * lto-wrapper.c (merge_and_complain, append_compiler_options)
31210 (append_linker_options): Don't handle OPT_fshort_double.
31211
31212 PR rtl-optimization/68730
31213 * lra-remat.c (insn_to_cand_activation): New static variable.
31214 (lra_remat): Allocate and free it.
31215 (create_cand): New arg activation. Initialize a field in
31216 insn_to_cand_activation if it is nonnull.
31217 (create_cands): Pass the activation insn to create_cand when making
31218 a candidate involving an output reload. Reorganize code a little.
31219 (do_remat): Keep track of active status of candidates in a separate
31220 bitmap.
31221
31222 2016-02-08 Richard Biener <rguenther@suse.de>
31223
31224 PR tree-optimization/69719
31225 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
31226 Properly use absolute of the difference of the two offsets to
31227 compare or adjust the segment length.
31228
31229 2016-02-08 Richard Biener <rguenther@suse.de>
31230 Jeff Law <law@redhat.com>
31231
31232 PR target/68273
31233 * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
31234 types for anonymous SSA names.
31235
31236 2016-02-08 Richard Biener <rguenther@suse.de>
31237
31238 PR rtl-optimization/69274
31239 * ira.c (ira_setup_alts): Do not change recog_data.operand order.
31240
31241 2016-02-08 Jeff Law <law@redhat.com>
31242
31243 PR tree-optimization/65917
31244 * tree-ssa-dom.c (record_temporary_equivalences): Record both
31245 equivalences from if (x == y) style conditionals.
31246 (loop_depth_of_name): Remove.
31247 (record_equality): Remove loop depth check.
31248 * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
31249 (const_and_copies::record_const_or_copy_raw): New member function.
31250 * tree-ssa-scopedtables.c
31251 (const_and_copies::record_const_or_copy_raw): New, factored out of
31252 (const_and_copies::record_const_or_copy): Call new member function.
31253
31254 2016-02-05 Jeff Law <law@redhat.com>
31255
31256 PR tree-optimization/68541
31257 * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
31258 (count_stmts_in_block): New function.
31259 (poor_ifcvt_candidate_code): Likewise.
31260 (is_feasible_trace): Add some heuristics to determine when path
31261 splitting is profitable.
31262 (find_block_to_duplicate_for_splitting_paths): Make sure the graph
31263 is a diamond with a single exit.
31264
31265 2016-02-05 Martin Sebor <msebor@redhat.com>
31266
31267 PR c++/69662
31268 * doc/invoke.texi: Update -Wplacement-new to take an optional
31269 argument.
31270
31271 2016-02-06 Richard Henderson <rth@redhat.com>
31272
31273 PR c/69643
31274 * tree.c (tree_nop_conversion_p): Do not strip casts into or
31275 out of non-standard address spaces.
31276
31277 2016-02-05 Jakub Jelinek <jakub@redhat.com>
31278
31279 PR rtl-optimization/69691
31280 * lra-eliminations.c (move_plus_up): Don't add the addend twice.
31281
31282 2016-02-05 Pat Haugen <pthaugen@us.ibm.com>
31283
31284 * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
31285 * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
31286 (*ieee128_mfvsrd_64bit): Likewise.
31287 (*ieee128_mfvsrd_32bit): Likewise.
31288
31289 2016-02-05 Ilya Enkovich <enkovich.gnu@gmail.com>
31290
31291 PR target/69369
31292 Revert r232560:
31293 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
31294
31295 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
31296 instrumented_version.
31297
31298 2016-01-05 Jeremy Bennett <jeremy.bennett@embecosm.com>
31299
31300 * doc/invoke.texi (Optimize Options): In table of --param options
31301 rename second occurrence of tracer-min-branch-ratio to
31302 tracer-min-branch-probability, rename
31303 tracer-min-branch-ratio-feedback to
31304 tracer-min-branch-probability-feedback and clarify description,
31305 rename sched-spec-state-edge-prob-cutoff to
31306 sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
31307 to selsched-insns-to-rename, rename lto-minpartition to
31308 lto-min-partition, delete reorder-blocks-duplicate and
31309 reorder-blocks-duplicate-feedback.
31310
31311 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31312
31313 * config/s390/s390.c (s390_register_info_set_ranges): Remove
31314 superfluous loops.
31315
31316 2016-02-05 Dominik Vogt <vogt@linux.vnet.ibm.com>
31317
31318 * doc/extend.texi: S/390: Correct some typos.
31319
31320 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31321
31322 * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
31323
31324 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31325
31326 PR target/69625
31327 * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
31328 (s390_register_info_gprtofpr): Use new macros above.
31329 (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
31330 its name.
31331 (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
31332 its name. Adjust restore and save gpr ranges.
31333 (s390_register_info_set_ranges): New function.
31334 (s390_register_info): Use new macros above. Call
31335 s390_register_info_set_ranges.
31336 (s390_optimize_register_info): Likewise.
31337 (s390_hard_regno_rename_ok): Use new macros.
31338 (s390_hard_regno_scratch_ok): Likewise.
31339 (s390_emit_epilogue): Likewise.
31340 (s390_can_use_return_insn): Likewise.
31341 (s390_optimize_prologue): Likewise.
31342 * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
31343
31344 2016-02-05 Jakub Jelinek <jakub@redhat.com>
31345
31346 PR bootstrap/69677
31347 * config/i386/i386.c (convert_scalars_to_vector): Readd stack
31348 alignment fixes.
31349 (ix86_option_override_internal): Disable TARGET_STV even for
31350 -m{incoming,preferred}-stack-boundary=3.
31351
31352 2016-02-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31353
31354 * config.gcc: Mark deprecated rtems targets as obsolete.
31355
31356 2016-02-04 Segher Boessenkool <segher@kernel.crashing.org>
31357
31358 PR rtl-optimization/64682
31359 PR rtl-optimization/69567
31360 * combine.c (distribute_notes) <REG_DEAD>: Place the death note
31361 before I2 only if the register is both used and set in I2.
31362
31363 2016-02-04 DJ Delorie <dj@redhat.com>
31364
31365 * config/msp430/msp430.c (msp430_start_function): Add function type.
31366
31367 2016-02-04 Jakub Jelinek <jakub@redhat.com>
31368
31369 PR fortran/69368
31370 * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
31371
31372 2016-02-04 Uros Bizjak <ubizjak@gmail.com>
31373
31374 PR rtl-optimization/69577
31375 Revert:
31376 2015-10-29 Richard Henderson <rth@redhat.com>
31377
31378 PR target/68124
31379 PR rtl-opt/67609
31380 * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
31381 sse check to the exact conditions of PR 67609.
31382
31383 2016-02-04 Michael Meissner <meissner@linux.vnet.ibm.com>
31384
31385 PR target/69667
31386 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
31387 instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
31388 not allowed into the traditional Altivec registers.
31389 (movtd_64bit_nodm): Likewise.
31390 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
31391
31392 2016-02-04 David Malcolm <dmalcolm@redhat.com>
31393
31394 * config/aarch64/cortex-a57-fma-steering.c
31395 (aarch64_register_fma_steering): Remove "static" from arguments
31396 to register_pass.
31397
31398 2016-02-04 Wilco Dijkstra <wdijkstr@arm.com>
31399
31400 PR target/69619
31401 * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
31402 twice when complex.
31403
31404 2016-02-04 Mike Frysinger <vapier@gentoo.org>
31405
31406 * doc/invoke.texi: Delete -mno-fma4.
31407
31408 2016-02-04 Richard Sandiford <richard.sandiford@arm.com>
31409
31410 PR rtl-optimization/69577
31411 * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
31412 (find_subregs_of_mode): Update accordingly. Iterate over partial
31413 definitions.
31414
31415 2016-02-04 Alan Lawrence <alan.lawrence@arm.com>
31416
31417 * config/arm/arm-protos.h (neon_reinterpret): Remove.
31418 * config/arm/arm.c (neon_reinterpret): Remove.
31419 * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
31420 vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
31421 vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
31422 vreinterpretti): Remove.
31423 * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
31424 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
31425 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
31426 neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
31427 neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
31428 neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
31429 * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
31430 vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
31431 vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
31432 vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
31433 vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
31434 vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
31435 vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
31436 vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
31437 vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
31438 vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
31439 vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
31440 vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
31441 vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
31442 vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
31443 vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
31444 vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
31445 vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
31446 vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
31447 vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
31448 vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
31449 vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
31450 vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
31451 vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
31452 vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
31453 vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
31454 vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
31455 vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
31456 vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
31457 vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
31458 vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
31459 vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
31460 vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
31461 vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
31462 vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
31463 vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
31464 vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
31465 vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
31466 vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
31467 vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
31468 vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
31469 vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
31470 vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
31471 vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
31472 vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
31473 vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
31474 vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
31475 vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
31476 vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
31477 vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
31478 vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
31479 vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
31480 vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
31481 vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
31482 vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
31483 vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
31484 vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
31485 vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
31486 vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
31487 vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
31488 vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
31489 vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
31490 vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
31491 vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
31492 vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
31493 vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
31494 vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
31495 vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
31496 vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
31497 vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
31498 vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
31499 vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
31500 vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
31501 vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
31502 vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
31503 vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
31504 vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
31505 vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
31506 vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
31507 vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
31508 vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
31509 vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
31510 vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
31511 vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
31512 vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
31513 vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
31514 vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
31515 vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
31516 vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
31517 vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
31518 vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
31519 vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
31520 vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
31521 vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
31522 vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
31523 vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
31524 vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
31525 vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
31526
31527 2016-02-04 Martin Liska <mliska@suse.cz>
31528
31529 PR sanitizer/69276
31530 * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
31531 that are gimple_store_p.
31532 (maybe_instrument_call): Likewise.
31533
31534 2016-02-04 Bin Cheng <bin.cheng@arm.com>
31535
31536 * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
31537 register scaling out of memory reference and comment why.
31538
31539 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31540
31541 PR target/65932
31542 PR target/67714
31543 * cse.c (cse_insn): Pass NULL to fold_rtx when initially
31544 folding the source of a SET.
31545
31546 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31547
31548 PR target/65932
31549 PR target/67714
31550 * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
31551 the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
31552
31553 2016-02-04 Jim Wilson <jim.wilson@linaro.org>
31554
31555 PR target/65932
31556 PR target/67714
31557 * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
31558 HImode.
31559
31560 2016-02-04 Christian Bruel <christian.bruel@st.com>
31561
31562 * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
31563 * config/arm/arm.c (arm_set_current_function): Likewise.
31564
31565 2016-02-04 Jakub Jelinek <jakub@redhat.com>
31566 Ilya Enkovich <enkovich.gnu@gmail.com>
31567 H.J. Lu <hongjiu.lu@intel.com>
31568
31569 PR target/69454
31570 * config/i386/i386.c (convert_scalars_to_vector): Remove
31571 stack alignment fixes.
31572 (ix86_option_override_internal): Disable TARGET_STV if stack
31573 might not be aligned enough.
31574 (ix86_minimum_alignment): Assert that TARGET_STV is false.
31575
31576 2016-02-04 Victoria Stepanyan <victoria.stepanyan@amd.com>
31577
31578 * config/i386/x86-tune.def: Disable default prefetching
31579 for -march=znver1.
31580
31581 2016-02-03 Michael Meissner <meissner@linux.vnet.ibm.com>
31582 Vladimir Makarov <vmakarov@redhat.com>
31583
31584 PR target/69461
31585 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
31586 in validating fused toc addresses.
31587
31588 2016-02-03 Jakub Jelinek <jakub@redhat.com>
31589
31590 PR c/69627
31591 * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
31592 range->m_caret fields if range->m_show_caret_p is false.
31593
31594 PR target/69644
31595 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
31596 Force oldval into register if it does not satisfy reg_or_short_operand
31597 predicate. Fix up formatting.
31598
31599 2016-02-03 Vladimir Makarov <vmakarov@redhat.com>
31600 Alexandre Oliva <aoliva@redhat.com>
31601
31602 PR target/69461
31603 * lra-constraints.c (simplify_operand_subreg): Check additionally
31604 address validity after potential reloading.
31605 (process_address_1): Check insns validity. In case of failure do
31606 nothing.
31607
31608 2016-02-03 Kirill Yukhin <kirill.yukhin@intel.com>
31609
31610 PR target/69118
31611 * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
31612 Fix target.
31613
31614 2016-02-02 Jakub Jelinek <jakub@redhat.com>
31615
31616 * wide-int.cc (canonize_uhwi): New function.
31617 (wi::divmod_internal): Use it.
31618
31619 2016-02-02 James Norris <jnorris@codesourcery.com>
31620
31621 * gimplify.c (omp_notice_variable): Add usage check.
31622
31623 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
31624
31625 * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
31626 like LE, GE, LT, GT when emitting relational operator.
31627
31628 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
31629
31630 * ira-costs.c (find_costs_and_classes): Add extra argument.
31631 * target.def (ira_change_pseudo_allocno_class): Add parameter.
31632 * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
31633 * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
31634 * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
31635 Add best_class parameter, and return it if not ALL_REGS.
31636 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
31637 Add parameter.
31638 * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
31639 Update target hook.
31640
31641 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
31642
31643 * config/aarch64/aarch64.c
31644 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
31645 (aarch64_ira_change_pseudo_allocno_class): New function.
31646
31647 2016-02-02 Uros Bizjak <ubizjak@gmail.com>
31648
31649 PR target/67032
31650 * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
31651
31652 2016-02-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
31653
31654 * config/avr/avr.c (avr_option_override): Set
31655 PARAM_ALLOW_STORE_DATA_RACES to 1.
31656
31657 2016-02-02 Richard Biener <rguenther@suse.de>
31658
31659 PR tree-optimization/69595
31660 * match.pd: Add range test simplifications to true/false.
31661
31662 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
31663
31664 * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
31665 * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
31666 instead.
31667
31668 2016-02-02 Richard Biener <rguenther@suse.de>
31669
31670 PR tree-optimization/69606
31671 * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
31672 info on the result before moving a stmt.
31673
31674 2016-02-02 Yuri Rumyantsev <ysrumyan@gmail.com>
31675
31676 PR middle-end/68542
31677 * config/i386/i386.c (ix86_expand_branch): Add support for conditional
31678 branch with vector comparison.
31679 * config/i386/sse.md (VI48_AVX): New mode iterator.
31680 (define_expand "cbranch<mode>4): Add support for conditional branch
31681 with vector comparison.
31682 * tree-vect-loop.c (optimize_mask_stores): New function.
31683 * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
31684 has_mask_store field of vect_info.
31685 * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
31686 vectorized loops having masked stores after vec_info destroy.
31687 * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
31688 correspondent macros.
31689 (optimize_mask_stores): Add prototype.
31690
31691 2016-02-02 Alan Modra <amodra@gmail.com>
31692
31693 PR target/69548
31694 * config/rs6000/predicates.md (quad_int_reg_operand): Don't
31695 allow subregs.
31696
31697 2016-02-02 Alan Modra <amodra@gmail.com>
31698
31699 PR target/68662
31700 * config/rs6000/rs6000.c (need_toc_init): New var, set it
31701 whenever toc_label_name used.
31702 (rs6000_file_start): Don't set up toc section here,
31703 (rs6000_output_function_epilogue): do so here instead,
31704 (rs6000_xcoff_file_start): and here.
31705 * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
31706 (load_toc_aix_di): Likewise.
31707
31708 2016-02-01 Jakub Jelinek <jakub@redhat.com>
31709
31710 PR rtl-optimization/69592
31711 * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
31712 (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
31713 (num_sign_bit_copies_binary_arith_p): New inline function.
31714 (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
31715
31716 2016-02-01 Jeff Law <law@redhat.com>
31717
31718 PR tree-optimization/69580
31719 * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
31720 * tree-ssa-threadbackward.c
31721 (fsm_find_control_statement_thread_paths): Do not try to walk
31722 through large PHI nodes.
31723
31724 2016-02-01 Jakub Jelinek <jakub@redhat.com>
31725
31726 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
31727 when count is incremented above limit, don't analyze further
31728 insns afterwards.
31729
31730 * omp-low.c (oacc_parse_default_dims): Avoid
31731 -Wsign-compare warning, make sure value fits into int
31732 rather than just unsigned int.
31733
31734 2016-02-01 Bin Cheng <bin.cheng@arm.com>
31735
31736 PR tree-optimization/67921
31737 * fold-const.c (split_tree): New parameters. Convert pointer
31738 type variable part to proper type before negating.
31739 (fold_binary_loc): Pass new arguments to split_tree.
31740
31741 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
31742
31743 * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
31744 (nvptx_goacc_validate_dims): Extend to handle global defaults.
31745 * target.def (OACC_VALIDATE_DIMS): Extend documentation.
31746 * doc/tm.texti: Rebuilt.
31747 * doc/invoke.texi (fopenacc-dim): Document.
31748 * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
31749 (append_compiler_options): Likewise.
31750 * omp-low.c (oacc_default_dims, oacc_min_dims): New.
31751 (oacc_parse_default_dims): New.
31752 (oacc_validate_dims): Add USED arg. Select non-unity default when
31753 possible.
31754 (oacc_loop_fixed_partitions): Return mask of used partitions.
31755 (oacc_loop_auto_partitions): Emit dump info.
31756 (oacc_loop_partition): Return mask of used partitions.
31757 (execute_oacc_device_lower): Parse default dimension arg. Adjust
31758 loop partitioning and validation calls.
31759
31760 2016-02-01 Richard Biener <rguenther@suse.de>
31761
31762 PR middle-end/69556
31763 * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
31764
31765 2016-02-01 Richard Biener <rguenther@suse.de>
31766
31767 PR tree-optimization/69574
31768 * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
31769 of asserting return chrec_dont_know.
31770
31771 2016-02-01 Martin Liska <mliska@suse.cz>
31772
31773 * mem-stats-traits.h: Add copyright header.
31774 * mem-stats.h: Likewise.
31775
31776 2016-02-01 Richard Biener <rguenther@suse.de>
31777
31778 PR tree-optimization/69579
31779 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
31780 Do not propagate through abnormal PHI results.
31781
31782 2016-02-01 Eric Botcazou <ebotcazou@adacore.com>
31783
31784 * postreload.c (reload_cse_simplify): Remove dead code.
31785
31786 2016-02-01 Jakub Jelinek <jakub@redhat.com>
31787
31788 PR rtl-optimization/69570
31789 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
31790 if there is more than one set, not if there is a single set.
31791
31792 2016-02-01 Richard Henderson <rth@redhat.com>
31793
31794 PR rtl-opt/69535
31795 * combine.c (make_compound_operation): When looking through a
31796 subreg, make sure to re-extend to the width of the outer mode.
31797
31798 2016-01-30 Jakub Jelinek <jakub@redhat.com>
31799
31800 PR tree-optimization/69546
31801 * wide-int.cc (wi::divmod_internal): For unsigned division
31802 where both operands fit into uhwi, if o1 is 1 and o0 has
31803 msb set, if divident_prec is larger than bits per hwi,
31804 clear another quotient word and return 2 instead of 1.
31805 Similarly for remainder with msb in HWI set, if dividend_prec
31806 is larger than bits per hwi.
31807
31808 2016-01-29 Martin Jambor <mjambor@suse.cz>
31809
31810 * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
31811 Use short lowercase names.
31812 (get_memory_order): Mask with MEMMODEL_BASE_MASK. Support
31813 MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
31814 acq_rel one. Protect warning agains segfaults if
31815 get_memory_order_name returns NULL.
31816 (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
31817 with release semantics. Do not warn if get_memory_order already did.
31818 (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
31819 semantics. Fix check for relaxed or acquire semantics. Do not warn
31820 if get_memory_order already did.
31821
31822 2016-01-29 Sebastian Pop <s.pop@samsung.com>
31823
31824 * doc/install.texi: Document that isl-0.16 is supported.
31825
31826 2016-01-29 Vladimir Makarov <vmakarov@redhat.com>
31827
31828 PR target/69299
31829 * config/i386/constraints.md (Bm): Describe as special memory
31830 constraint.
31831 * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
31832 * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
31833 * genpreds.c (struct constraint_data): Add is_special_memory.
31834 (have_special_memory_constraints, special_memory_start): New
31835 static vars.
31836 (special_memory_end): Ditto.
31837 (add_constraint): Add new arg is_special_memory. Add code to
31838 process its true value. Update have_special_memory_constraints.
31839 (process_define_constraint): Pass the new arg.
31840 (process_define_register_constraint): Ditto.
31841 (choose_enum_order): Process special memory.
31842 (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
31843 function insn_extra_special_memory_constraint.
31844 (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
31845 * gensupport.c (process_rtx): Process
31846 DEFINE_SPECIAL_MEMORY_CONSTRAINT.
31847 * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
31848 * ira-lives.c (single_reg_class): Use
31849 insn_extra_special_memory_constraint.
31850 * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
31851 * lra-constraints.c (process_alt_operands): Ditto.
31852 (curr_insn_transform): Use insn_extra_special_memory_constraint.
31853 * recog.c (asm_operand_ok, preprocess_constraints): Process
31854 CT_SPECIAL_MEMORY.
31855 * reload.c (find_reloads): Ditto.
31856 * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
31857 * stmt.c (parse_input_constraint): Use
31858 insn_extra_special_memory_constraint.
31859
31860 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
31861
31862 PR target/69530
31863 * lra-splill.c (lra_final_code_change): Revert r229087 by
31864 removing all sub-registers.
31865
31866 2016-01-29 Steve Ellcey <sellcey@imgtec.com>
31867
31868 PR target/65604
31869 * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
31870
31871 2016-01-29 Jakub Jelinek <jakub@redhat.com>
31872
31873 PR target/69551
31874 * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
31875 SSE1, copy target into the temporary reg first before recursing
31876 on it.
31877
31878 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
31879
31880 * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
31881 with vm.
31882
31883 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
31884
31885 * ginclude/stdarg.h: Test __cplusplus instead of
31886 __GXX_EXPERIMENTAL_CXX0X__.
31887
31888 2016-01-29 Richard Biener <rguenther@suse.de>
31889
31890 PR tree-optimization/69547
31891 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
31892 Do not mark clobbers necessary.
31893 (mark_all_reaching_defs_necessary_1): Likewise.
31894
31895 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
31896
31897 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
31898 declaration name with %qs and print it in both error messages.
31899 Also fix indentation.
31900
31901 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
31902
31903 PR other/69006
31904 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
31905 trailing blank line from error message.
31906
31907 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
31908
31909 PR c++/69462
31910 * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
31911 for C++-11.
31912
31913 2016-01-29 Richard Biener <rguenther@suse.de>
31914
31915 PR middle-end/69537
31916 * match.pd: Allow all integral types when simplifying a
31917 widening or sign-changing conversion.
31918
31919 2016-01-28 Sebastian Pop <s.pop@samsung.com>
31920
31921 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
31922 back to setting codegen_error to fail codegen.
31923
31924 2016-01-28 Uros Bizjak <ubizjak@gmail.com>
31925
31926 PR target/69459
31927 * config/i386/constraints.md (C): Only accept constant zero operand.
31928 (BC): New constraint.
31929 * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
31930 instead of C constraint.
31931 * doc/md.texi (Machine Constraints): Update description
31932 of C constraint.
31933
31934 2016-01-28 Steve Ellcey <sellcey@imgtec.com>
31935
31936 PR target/68400
31937 * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
31938
31939 2016-01-28 Jakub Jelinek <jakub@redhat.com>
31940
31941 PR middle-end/69542
31942 * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
31943 non-debug insns.
31944
31945 2016-01-28 Pat Haugen <pthaugen@us.ibm.com>
31946
31947 * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
31948 branches if using guessed profile.
31949
31950 2016-01-28 H.J. Lu <hongjiu.lu@intel.com>
31951
31952 * graphite-optimize-isl.c (optimize_isl): Fix dump.
31953
31954 2016-01-28 Richard Henderson <rth@redhat.com>
31955
31956 PR target/69305
31957 * config/aarch64/aarch64-modes.def (CC_Cmode): New
31958 * config/aarch64/aarch64-protos.h: Update.
31959 * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
31960 (aarch64_select_cc_mode): Add check for use of CC_Cmode.
31961 (aarch64_get_condition_code_1): Handle CC_Cmode.
31962 * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
31963 (*add<mode>3_compareC_cconly_imm): New.
31964 (*add<mode>3_compareC_cconly): New.
31965 (*add<mode>3_compareC_imm): New.
31966 (add<mode>3_compareC): New.
31967 (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
31968 to be first. Use aarch64_carry_operation.
31969 (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
31970 (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
31971 (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
31972 (subti3): Use subdi3_compare1.
31973 (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
31974 (sub<mode>3_compare1): New.
31975 (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
31976 (*sub<mode>3_carryin): Use aarch64_borrow_operation.
31977 (*subsi3_carryin_uxtw): Likewise.
31978 (*ngc<mode>, *ngcsi_uxtw): Likewise.
31979 (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
31980 * config/aarch64/iterators.md (DWI): New.
31981 * config/aarch64/predicates.md (aarch64_carry_operation): New.
31982 (aarch64_borrow_operation): New.
31983
31984 2016-01-28 Abderrazek Zaafrani <a.zaafrani@samsung.com>
31985
31986 * graphite-optimize-isl.c (optimize_isl): Print a different debug
31987 message when isl does not return a valid schedule.
31988
31989 2016-01-28 Sebastian Pop <s.pop@samsung.com>
31990
31991 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
31992 Remove comments from class declarations: they are already in the code
31993 close by the defs.
31994
31995 2016-01-28 Sebastian Pop <s.pop@samsung.com>
31996
31997 * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
31998 codegen_error_p.
31999 (ternary_op_to_tree): Same.
32000 (unary_op_to_tree): Same.
32001 (nary_op_to_tree): Same.
32002 (gcc_expression_from_isl_expr_op): Same.
32003 (gcc_expression_from_isl_expression): Same.
32004 (graphite_create_new_loop): Same.
32005 (graphite_create_new_loop_guard): Same.
32006 (build_iv_mapping): Same.
32007 (graphite_create_new_guard): Same.
32008 (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
32009 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
32010
32011 2016-01-28 Sebastian Pop <s.pop@samsung.com>
32012
32013 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
32014 instead of setting codegen_error to fail codegen.
32015
32016 2016-01-28 Jason Merrill <jason@redhat.com>
32017
32018 * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
32019
32020 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
32021
32022 * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
32023 Remove CONST_INT_P check in CCMP cost calculation.
32024
32025 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
32026
32027 * config/aarch64/aarch64.c (generic_vector_cost):
32028 Set vec_permute_cost.
32029 (cortexa57_vector_cost): Likewise.
32030 (exynosm1_vector_cost): Likewise.
32031 (xgene1_vector_cost): Likewise.
32032 (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
32033 * config/aarch64/aarch64-protos.h (cpu_vector_cost):
32034 Add vec_permute_cost entry.
32035
32036 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
32037
32038 * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
32039 immediate as %1.
32040 (add<mode>3_compare0): Likewise.
32041 (addsi3_compare0_uxtw): Likewise.
32042 (add<mode>3nr_compare0): Likewise.
32043 (compare_neg<mode>): Likewise.
32044 (<optab><mode>3): Likewise.
32045
32046 2016-01-28 Ilya Enkovich <enkovich.gnu@gmail.com>
32047
32048 * tree-vect-stmts.c (vectorizable_comparison): Add
32049 NULL check for vectype.
32050
32051 2016-01-28 Richard Biener <rguenther@suse.de>
32052
32053 PR tree-optimization/69466
32054 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
32055 Account for PHIs we couldn't duplicate.
32056
32057 2016-01-28 Martin Liska <mliska@suse.cz>
32058
32059 PR pch/68758
32060 * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
32061 instead of ENABLE_VALGRIND_CHECKING.
32062
32063 2016-01-27 Richard Henderson <rth@redhat.com>
32064
32065 PR rtl-opt/69447
32066 * lra-remat.c (subreg_regs): New.
32067 (dump_candidates_and_remat_bb_data): Dump it.
32068 (operand_to_remat): Reject if operand in subreg_regs.
32069 (set_bb_regs): Collect subreg_regs.
32070 (lra_remat): Init and free subreg_regs. Compute
32071 calculate_local_reg_remat_bb_data before create_cands.
32072
32073 2016-01-27 H.J. Lu <hongjiu.lu@intel.com>
32074
32075 PR target/68986
32076 * config/i386/i386.c (ix86_update_stack_boundary): Don't
32077 change stack_alignment_needed for __tls_get_addr call.
32078
32079 2016-01-27 Segher Boessenkool <segher@kernel.crashing.org>
32080
32081 * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
32082
32083 2016-01-27 Jeff Law <law@redhat.com>
32084
32085 PR tree-optimization/68398
32086 PR tree-optimization/69196
32087 * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
32088 (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
32089 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
32090 Only count PHIs in the last block in the path. The others will
32091 const/copy propagate away. Add heuristic to allow more irreducible
32092 subloops to be created when it is likely profitable to do so.
32093
32094 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
32095 Fix typo in comment. Use gsi_after_labels and remove the GIMPLE_LABEL
32096 check from within the loop. Use gsi_next_nondebug rather than gsi_next.
32097
32098 2016-01-27 Jakub Jelinek <jakub@redhat.com>
32099
32100 PR lto/69254
32101 * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
32102 END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
32103 * asan.c (DEF_BUILTIN_STUB): Temporarily define.
32104 * tree-streamer-in.c: Include asan.h.
32105 (streamer_get_builtin_tree): For builtins in sanitizer
32106 range call initialize_sanitizer_builtins and retry.
32107
32108 2016-01-27 Ian Lance Taylor <iant@google.com>
32109
32110 * common.opt (fkeep-gc-roots-live): New undocumented option.
32111 * tree-ssa-loop-ivopts.c (add_candidate_1): If
32112 -fkeep-gc-roots-live, skip pointers.
32113 (add_iv_candidate_for_biv): Handle add_candidate_1 returning
32114 NULL.
32115
32116 2016-01-27 Uros Bizjak <ubizjak@gmail.com>
32117
32118 PR target/69512
32119 * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
32120 (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
32121
32122 2016-01-27 Thomas Klausner <wiz@NetBSD.org>
32123
32124 PR target/68380
32125 * configure.ac: NetBSD provides SSP in its C library.
32126 * configure: Updated.
32127
32128 2016-01-27 Richard Biener <rguenther@suse.de>
32129
32130 PR tree-optimization/69166
32131 * tree-vect-loop.c (vect_is_simple_reduction): Always check
32132 reduction code for commutativity / associativity.
32133
32134 2016-01-27 Martin Jambor <mjambor@suse.cz>
32135
32136 PR tree-optimization/69355
32137 * tree-sra.c (analyze_access_subtree): Correct hole detection when
32138 total_scalarization fails.
32139
32140 2016-01-27 David Edelsohn <dje.gcc@gmail.com>
32141
32142 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
32143 power9.
32144
32145 2016-01-27 Christian Bruel <christian.bruel@st.com>
32146
32147 PR target/69245
32148 * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
32149 Move arm_reset_previous_fndecl and set_target_option_current_node in
32150 the conditional part. Call save_restore_target_globals.
32151 * config/arm/arm.c (arm_set_current_function):
32152 Refactor to better support #pragma target and attribute mix.
32153 Call save_restore_target_globals.
32154 * config/arm/arm-protos.h (save_restore_target_globals): New function.
32155
32156 2016-01-27 Martin Liska <mliska@suse.cz>
32157
32158 * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
32159 reference for an HSA kernel and its host function.
32160
32161 2016-01-27 Jakub Jelinek <jakub@redhat.com>
32162
32163 PR tree-optimization/69399
32164 * wide-int.h (wi::lrshift): For larger precisions, only
32165 use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
32166
32167 2016-01-27 Claudiu Zissulescu <claziss@synopsys.com>
32168
32169 * config/arc/predicates.md (proper_comparison_operator): Reject
32170 constant-constant comparison.
32171
32172 2016-01-26 Tom de Vries <tom@codesourcery.com>
32173
32174 PR tree-optimization/69110
32175 * tree-data-ref.c (initialize_data_dependence_relation): Handle
32176 DR_NUM_DIMENSIONS == 0.
32177
32178 2016-01-26 Abderrazek Zaafrani <a.zaafrani@samsung.com>
32179 Sebastian Pop <s.pop@samsung.com>
32180
32181 * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
32182 isl_ast_op_cond and isl_ast_op_select.
32183 (gcc_expression_from_isl_expr_op): Same.
32184
32185 2016-01-26 Jason Merrill <jason@redhat.com>
32186
32187 PR c++/68782
32188 * tree.c (recompute_constructor_flags): Split out from
32189 build_constructor.
32190 (verify_constructor_flags): New.
32191 * tree.h: Declare them.
32192
32193 2016-01-26 Iain Buclaw <ibuclaw@gdcproject.org>
32194
32195 PR rtl-optimization/69217
32196 * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
32197 are no TYPE_FIELDS set for the record type.
32198
32199 2016-01-26 Jakub Jelinek <jakub@redhat.com>
32200
32201 PR target/68662
32202 * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
32203 toc_label_name unconditionally.
32204 (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
32205 SYMBOL_REF string. Use toc_label_name instead of constructing
32206 LCTOC1.
32207 (rs6000_elf_declare_function_name): Use toc_label_name instead of
32208 constructing LCTOC1.
32209
32210 2016-01-26 Martin Sebor <msebor@redhat.com>
32211
32212 PR other/69477
32213 * doc/extend.texi (Common Type Attributes): Move text that talks about
32214 attribute packed from attribute aligned to the section discussing
32215 the former attribute for clarity.
32216
32217 2016-01-26 Richard Henderson <rth@redhat.com>
32218
32219 PR middle-end/60908
32220 * trans-mem.c (tm_region_init): Mark entry block as visited.
32221
32222 2016-01-26 David Malcolm <dmalcolm@redhat.com>
32223
32224 PR other/69006
32225 * diagnostic-show-locus.c (layout::print_source_line): Replace
32226 call to pp_newline with call to layout::print_newline.
32227 (layout::print_annotation_line): Likewise.
32228 (layout::move_to_column): Likewise.
32229 (layout::print_any_fixits): After printing any fixits, print a
32230 trailing newline, if necessary.
32231 (layout::print_newline): New method, resetting any colorization
32232 before a newline.
32233 (diagnostic_show_locus): Move the pp_newline to before the
32234 early bailout. Remove dummy block enclosing the layout instance.
32235 * diagnostic.c (default_diagnostic_finalizer): Replace invocation
32236 of pp_newline_and_flush with pp_flush.
32237 (diagnostic_append_note): Delete use of pp_newline.
32238 (diagnostic_append_note_at_rich_loc): Delete.
32239 * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
32240 * pretty-print.h (output_buffer_append_r): Reset buff->line_length
32241 when newline characters are added to the buffer.
32242
32243 2016-01-26 Michael Matz <matz@suse.de>
32244
32245 * configure.ac (ac_cv_std_swap_in_utility): New test.
32246 * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
32247 * configure: Regenerate.
32248 * config.in: Regenerate.
32249
32250 2016-01-26 Claudiu Zissulescu <claziss@synopsys.com>
32251
32252 * config/arc/arc.md (cstoresi4): Force operand into register.
32253 (arcset<code>): Fix predicate.
32254 (arcsetltu): Likewise.
32255 (arcsetgeu): Likewise.
32256 (arcsethi): Likewise.
32257 (arcsetls): Likewise.
32258
32259 2016-01-26 Jakub Jelinek <jakub@redhat.com>
32260
32261 PR tree-optimization/69483
32262 * gimple-fold.c (canonicalize_constructor_val): Return NULL
32263 if base has error_mark_node type.
32264
32265 2016-01-26 Christophe Lyon <christophe.lyon@linaro.org>
32266
32267 PR target/68620
32268 * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
32269 * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
32270 New helper macros.
32271 (vget_lane_f16): Handle big-endian.
32272 (vgetq_lane_f16): Likewise.
32273 (vset_lane_f16): Likewise.
32274 (vsetq_lane_f16): Likewise.
32275 * config/arm/iterators.md (VQXMOV): Add V8HF.
32276 (VDQ): Add V4HF and V8HF.
32277 (V_reg): Handle V4HF and V8HF.
32278 (Is_float_mode): Likewise.
32279 * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
32280 neon_vdup_nv8hf): New patterns.
32281 (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
32282 Use VD_LANE iterator.
32283 (neon_vld1_dup<mode>): Use VQ2 iterator.
32284
32285 2016-01-26 Nathan Sidwell <nathan@acm.org>
32286
32287 * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
32288 (set_oacc_fn_attrib): Add IS_KERNEL arg.
32289 * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
32290 (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
32291 (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
32292 (oacc_validate_dims): Add LEVEL arg, don't return level.
32293 (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
32294 oacc_validate_dims.
32295 (execute_oacc_device_lower): Adjust, add more dump output.
32296 * tree-ssa-loop.c (gate_oacc_kernels): Use
32297 oacc_fn_attrib_kernels_p.
32298 * tree-parloops.c (create_parallel_loop): Adjust
32299 set_oacc_fn_attrib call.
32300
32301 2016-01-26 Jakub Jelinek <jakub@redhat.com>
32302
32303 PR lto/69254
32304 * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
32305 (append_compiler_options): Handle -fcilkplus.
32306 (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
32307
32308 2016-01-26 Nick Clifton <nickc@redhat.com>
32309
32310 PR target/66655
32311 * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
32312 been marked as DECL_ONE_ONLY but we do not the means to make it
32313 so, then do not allow it to bind locally.
32314
32315 2016-01-26 Jakub Jelinek <jakub@redhat.com>
32316
32317 PR lto/69254
32318 * opts.h (parse_sanitizer_options): New prototype.
32319 * opts.c (sanitizer_opts): New array.
32320 (parse_sanitizer_options): New function.
32321 (common_handle_option): Use parse_sanitizer_options.
32322
32323 2016-01-26 H.J. Lu <hongjiu.lu@intel.com>
32324
32325 PR target/68986
32326 * config/i386/i386.c (ix86_compute_frame_layout): Move stack
32327 alignment adjustment to ...
32328 (ix86_update_stack_boundary): Here. Don't over-align stack for
32329 __tls_get_addr.
32330 (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
32331 if __tls_get_addr is called.
32332
32333 2016-01-26 Christian Bruel <christian.bruel@st.com>
32334
32335 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
32336
32337 2016-01-26 Eric Botcazou <ebotcazou@adacore.com>
32338
32339 * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
32340
32341 2016-01-26 Richard Biener <rguenther@suse.de>
32342
32343 PR middle-end/69467
32344 * match.pd: Guard X * CST CMP 0 pattern with single_use.
32345
32346 2016-01-26 Richard Biener <rguenther@suse.de>
32347
32348 PR tree-optimization/69452
32349 * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
32350 (move_computations_dom_walker::before_dom_children): Rename
32351 to ...
32352 (move_computations_worker): This.
32353 (move_computations): Perform an RPO rather than a DOM walk.
32354
32355 2016-01-26 Jakub Jelinek <jakub@redhat.com>
32356
32357 PR target/69442
32358 * combine.c (combine_instructions): For REG_EQUAL note with
32359 SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
32360 to the underlying register.
32361 * doc/rtl.texi (REG_EQUAL): Document the behavior of
32362 REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
32363
32364 2016-01-26 Roger Ferrer Ibáñez <rofirrim@gmail.com>
32365
32366 PR target/67896
32367 * config/aarch64/aarch64-builtins.c
32368 (aarch64_init_simd_builtin_types): Do not set structural
32369 equality to __Poly{8,16,64,128}_t types.
32370
32371 2016-01-26 Richard Sandiford <richard.sandiford@arm.com>
32372
32373 PR tree-optimization/69400
32374 * wide-int.cc (wi_pack): Take the precision as argument and
32375 perform canonicalization here rather than in the callers.
32376 Use the main loop to handle all full-width HWIs. Add a
32377 zero HWI if in_len isn't a full result.
32378 (wi::divmod_internal): Update accordingly.
32379 (wi::mul_internal): Likewise. Simplify.
32380
32381 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
32382 Sebastian Pop <s.pop@samsung.com>
32383
32384 * graphite-poly.c (apply_poly_transforms): Simplify.
32385 (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
32386 (print_isl_map): Same.
32387 (print_isl_union_map): Same.
32388 (print_isl_schedule): New.
32389 (debug_isl_schedule): New.
32390 * graphite-dependences.c (scop_get_reads): Do not call
32391 isl_union_map_add_map that is undocumented isl functionality.
32392 (scop_get_must_writes): Same.
32393 (scop_get_may_writes): Same.
32394 (scop_get_original_schedule): Remove.
32395 (scop_get_dependences): Do not call isl_union_map_compute_flow that
32396 is deprecated in isl 0.15. Instead, use isl_union_access_* interface.
32397 (compute_deps): Remove.
32398 * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
32399 (debug_schedule_ast): New.
32400 (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
32401 set_separate_option.
32402 (graphite_regenerate_ast_isl): Add dump.
32403 (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
32404 from scop->transformed_schedule.
32405 (graphite_regenerate_ast_isl): Add more dump.
32406 * graphite-optimize-isl.c (optimize_isl): Set
32407 scop->transformed_schedule. Check whether schedules are equal.
32408 (apply_poly_transforms): Move here.
32409 * graphite-poly.c (apply_poly_transforms): ... from here.
32410 (free_poly_bb): Static.
32411 (free_scop): Static.
32412 (pbb_number_of_iterations_at_time): Remove.
32413 (print_isl_ast): New.
32414 (debug_isl_ast): New.
32415 (debug_scop_pbb): New.
32416 * graphite-scop-detection.c (print_edge): Move.
32417 (print_sese): Move.
32418 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
32419 (build_scop_scattering): Remove.
32420 (create_pw_aff_from_tree): Assert instead of bailing out.
32421 (add_condition_to_pbb): Remove unused code, do not fail.
32422 (add_conditions_to_domain): Same.
32423 (add_conditions_to_constraints): Remove.
32424 (build_scop_context): New.
32425 (add_iter_domain_dimension): New.
32426 (build_iteration_domains): Initialize pbb->iterators.
32427 Call add_conditions_to_domain.
32428 (nested_in): New.
32429 (loop_at): New.
32430 (index_outermost_in_loop): New.
32431 (index_pbb_in_loop): New.
32432 (outermost_pbb_in): New.
32433 (add_in_sequence): New.
32434 (add_outer_projection): New.
32435 (outer_projection_mupa): New.
32436 (add_loop_schedule): New.
32437 (build_schedule_pbb): New.
32438 (build_schedule_loop): New.
32439 (embed_in_surrounding_loops): New.
32440 (build_schedule_loop_nest): New.
32441 (build_original_schedule): New.
32442 (build_poly_scop): Call build_original_schedule.
32443 * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
32444 (free_poly_dr): Remove.
32445 (struct poly_bb): Add iterators. Remove schedule, transformed, saved.
32446 (free_poly_bb): Remove.
32447 (debug_loop_vec): Remove.
32448 (print_isl_ast): Declare.
32449 (debug_isl_ast): Declare.
32450 (scop_do_interchange): Remove.
32451 (scop_do_strip_mine): Remove.
32452 (scop_do_block): Remove.
32453 (flatten_all_loops): Remove.
32454 (optimize_isl): Remove.
32455 (pbb_number_of_iterations_at_time): Remove.
32456 (debug_scop_pbb): Declare.
32457 (print_schedule_ast): Declare.
32458 (debug_schedule_ast): Declare.
32459 (struct scop): Remove schedule. Add original_schedule,
32460 transformed_schedule.
32461 (free_gimple_poly_bb): Remove.
32462 (print_generated_program): Remove.
32463 (debug_generated_program): Remove.
32464 (unify_scattering_dimensions): Remove.
32465 * sese.c (print_edge): ... here.
32466 (print_sese): ... here.
32467 (debug_edge): ... here.
32468 (debug_sese): ... here.
32469 * sese.h (print_edge): Declare.
32470 (print_sese): Declare.
32471 (dump_edge): Declare.
32472 (dump_sese): Declare.
32473
32474 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
32475 Sebastian Pop <s.pop@samsung.com>
32476
32477 * Makefile.in: Set ISLVER in site.exp.
32478
32479 2016-01-25 Jakub Jelinek <jakub@redhat.com>
32480
32481 * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
32482 DECL_VALUE_EXPR of new_var even for the non-array case. Look
32483 through DECL_VALUE_EXPR for expansion.
32484
32485 2016-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
32486
32487 * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
32488 the frame info after reload completed.
32489
32490 2016-01-25 Jeff Law <law@redhat.com>
32491
32492 PR tree-optimization/69196
32493 PR tree-optimization/68398
32494 * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
32495 tree-ssa-threadupdate.c.
32496 (determine_bb_domination_status): Prototype
32497 * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
32498 (determine_bb_domination_status): No longer static.
32499 (valid_jump_thread_path): Remove code to detect characteristics
32500 of the jump thread path not associated with correctness.
32501 * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
32502 Correct test for thread path length. Count PHIs for real operands as
32503 statements that need to be copied. Do not count ASSERT_EXPRs.
32504 Look at all the blocks in the thread path. Compute and selectively
32505 filter thread paths based on threading through the latch, threading
32506 a multiway branch or crossing a multiway branch.
32507
32508 2016-01-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32509
32510 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): Add
32511 decl with __attribute__ ((unused)) annotation.
32512
32513 2016-01-25 Ilya Enkovich <enkovich.gnu@gmail.com>
32514
32515 PR target/69421
32516 * tree-vect-stmts.c (vectorizable_condition): Check vectype
32517 of operands is compatible with a statement vectype.
32518
32519 2016-01-25 Eric Botcazou <ebotcazou@adacore.com>
32520
32521 * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
32522 improve wording for mixed storage order support.
32523
32524 2016-01-25 Bilyan Borisov <bilyan.borisov@arm.com>
32525
32526 * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
32527 (vcvt_u64_f64): Likewise.
32528 (vcvta_s64_f64): Likewise.
32529 (vcvta_u64_f64): Likewise.
32530 (vcvtm_s64_f64): Likewise.
32531 (vcvtm_u64_f64): Likewise.
32532 (vcvtn_s64_f64): Likewise.
32533 (vcvtn_u64_f64): Likewise.
32534 (vcvtp_s64_f64): Likewise.
32535 (vcvtp_u64_f64): Likewise.
32536
32537 2016-01-25 Claudiu Zissulescu <claziss@synopsys.com>
32538
32539 * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
32540 (arc_init): Check validity mll64 option.
32541 (arc_save_restore): Use double load/store instruction.
32542 (arc_expand_movmem): Likewise.
32543 (arc_split_move): Don't split if we have double load/store
32544 instructions. Returns a boolean.
32545 (arc_process_double_reg_moves): Change function to return boolean
32546 instead of a sequence of instructions.
32547 (arc_dwarf_register_span): New function.
32548 * config/arc/arc-protos.h (arc_split_move): Change prototype.
32549 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
32550 * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
32551 (*movdf_insn): Likewise.
32552 * config/arc/arc.opt (mll64): New option.
32553 * config/arc/predicates.md (even_register_operand): New predicate.
32554 * doc/invoke.texi (ARC Options): Add mll64 documentation.
32555
32556 2016-01-25 Richard Biener <rguenther@suse.de>
32557
32558 PR lto/69393
32559 * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
32560 * tree-streamer-out.c (pack_ts_base_value_fields): Stream
32561 DECL_NAMELESS.
32562 * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
32563
32564 2016-01-25 Richard Biener <rguenther@suse.de>
32565
32566 PR tree-optimization/69376
32567 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
32568 flag.
32569 (VN_INFO_ANTI_RANGE_P): New inline.
32570 (VN_INFO_RANGE_TYPE): Likewise.
32571 * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
32572 SSA_NAME_ANTI_RANGE_P.
32573 (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
32574 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
32575 Properly query VN_INFO_RANGE_TYPE.
32576
32577 2016-01-25 Nick Clifton <nickc@redhat.com>
32578
32579 PR target/66655
32580 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
32581
32582 2016-01-23 Tom de Vries <tom@codesourcery.com>
32583
32584 PR tree-optimization/69426
32585 * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
32586 removed clobber.
32587
32588 2016-01-23 Jakub Jelinek <jakub@redhat.com>
32589
32590 * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
32591 "the the" with "the" in the comments.
32592 * ipa-devirt.c (build_type_inheritance_graph,
32593 update_type_inheritance_graph): Likewise.
32594 * tree.c (build_function_type_list_1): Likewise.
32595 * cfgloopmanip.c (scale_loop_profile): Likewise.
32596 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
32597 * gimple-ssa-split-paths.c
32598 (find_block_to_duplicate_for_splitting_paths): Likewise.
32599 * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
32600 * expr.c (convert_move): Likewise.
32601 * var-tracking.c (vt_stack_adjustments): Likewise.
32602 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
32603 * tree-vrp.c (test_for_singularity): Likewise.
32604
32605 * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
32606 directly instead of building a temporary tree.
32607
32608 PR bootstrap/69434
32609 * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
32610 remove <algorithm> include.
32611
32612 2016-01-22 Jakub Jelinek <jakub@redhat.com>
32613
32614 PR target/69432
32615 * config/i386/i386.c: Include dojump.h.
32616 (expand_small_movmem_or_setmem,
32617 expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
32618 fixes.
32619 (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
32620 if dynamic_check != -1.
32621
32622 2016-01-21 Jeff Law <law@redhat.com>
32623
32624 PR middle-end/69347
32625 * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
32626 record_temporary_equivalences. Rewritten to avoid unnecessary calls
32627 into dominated_by_p.
32628 (cprop_into_successor_phis): Avoid unnecessary tests.
32629
32630 2016-01-22 Richard Henderson <rth@redhat.com>
32631
32632 PR target/69416
32633 * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
32634 (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
32635
32636 2016-01-22 Michael Matz <matz@suse.de>
32637
32638 * system.h (string, algorithm): Include only conditionally.
32639 (new): Include always under C++.
32640 * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
32641 * final.c (toplevel): Ditto.
32642 * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
32643 * genconditions.c (write_header): Make gencondmd.c define
32644 INCLUDE_STRING.
32645 * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
32646
32647 * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
32648 * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
32649
32650 2016-01-22 Christian Bruel <christian.bruel@st.com>
32651
32652 PR target/68674
32653 * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
32654
32655 2016-01-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32656
32657 PR target/69403
32658 * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
32659 define_insn_and_split. Ensure operands[1] and operands[0] do not
32660 get assigned the same register.
32661
32662 2016-01-22 Kugan Vivekanandarajah <kuganv@linaro.org>
32663
32664 * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
32665
32666 2016-01-22 Christian Bruel <christian.bruel@st.com>
32667
32668 * config/arm/arm-c.c (arm_pragma_target_parse):
32669 Remove warn_builtin_macro_redefined overwrite.
32670
32671 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
32672
32673 * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
32674 flag_non_call_exceptions compatibility.
32675
32676 2016-01-22 Jakub Jelinek <jakub@redhat.com>
32677
32678 PR debug/66668
32679 * dwarf2out.c (add_child_die_after): New function.
32680 (dwarf_qual_info_t): New type.
32681 (dwarf_qual_info): New variable.
32682 (qualified_die_p): New function.
32683 (modified_type_die): For -fdebug-types-section, ensure
32684 canonical order of qualifiers. Put qualified DIEs adjacent
32685 to the corresponding non-qualified type DIE and search there
32686 for existing qualified DIEs.
32687
32688 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
32689
32690 * doc/extend.texi (scalar_storage_order type attribute): Document
32691 restriction on type punning and aliasing, and remove future tense.
32692
32693 2016-01-21 Roman Zhuykov <zhroma@ispras.ru>
32694
32695 PR target/69252
32696 * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
32697 first stage.
32698
32699 2016-01-21 Jeff Law <law@redhat.com>
32700
32701 PR middle-end/69347
32702 * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
32703 useless call to record_temporary_equivalences.
32704 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
32705 allocate 10 slots in the bb_path vector and let it grow as needed.
32706 (fsm_find_control_statement_thread_paths): Similarly for the next_path
32707 vector.
32708
32709 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
32710
32711 * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
32712 Detangle.
32713 * configure: Regenerate.
32714
32715 2016-01-21 Pat Haugen <pthaugen@us.ibm.com>
32716
32717 * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
32718 * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
32719
32720 2016-01-21 Bernd Schmidt <bschmidt@redhat.com>
32721
32722 PR middle-end/66178
32723 * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
32724 drop EXPAND_INITIALIZER.
32725 * rtl.h (contains_symbolic_reference_p): Declare.
32726 * rtlanal.c (contains_symbolic_reference_p): New function.
32727 * simplify-rtx.c (simplify_binary_operation_1): Don't turn
32728 a subtraction into a NOT if symbolic constants are involved.
32729
32730 2016-01-21 Anton Blanchard <anton@samba.org>
32731 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32732
32733 PR target/63354
32734 * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
32735 #define.
32736 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
32737 function.
32738
32739 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
32740
32741 * config/microblaze/microblaze.c
32742 (get_branch_target): New.
32743 (insert_wic_for_ilb_runout): New.
32744 (insert_wic): New.
32745 (microblaze_machine_dependent_reorg): New.
32746 (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
32747 * config/microblaze/microblaze.md
32748 (UNSPEC_IPREFETCH): Define.
32749 (iprefetch): New pattern
32750 * config/microblaze/microblaze.opt
32751 (mxl-prefetch): New flag.
32752
32753 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
32754
32755 * config/microblaze/microblaze.h
32756 (FIXED_REGISTERS): Update in macro.
32757 (CALL_USED_REGISTERS): Update in macro.
32758
32759 2016-01-21 Yuri Rumyantsev <ysrumyan@gmail.com>
32760
32761 PR rtl-optimization/68920
32762 * ifcvt.c (cond_move_process_if_block): Limit number of conditional
32763 moves.
32764
32765 2016-01-21 Vladimir Makarov <vmakarov@redhat.com>
32766
32767 PR rtl-optimization/68990
32768 * lra-coalesce.c (lra_coalesce): Invalidate value for the result
32769 pseudo instead of inheritance ones.
32770
32771 2016-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
32772 Nick Clifton <nickc@redhat.com>
32773
32774 PR target/69129
32775 PR target/69012
32776 * config/mips/mips.c (mips_compute_frame_info): Initialise
32777 args_size and hard_frame_pointer_offset fields of the frame
32778 structure before calling mips_global_pointer.
32779
32780 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
32781
32782 * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
32783 label reference.
32784 * configure: Regenerate.
32785
32786 2016-01-21 Richard Biener <rguenther@suse.de>
32787
32788 * graphite-optimize-isl.c (get_schedule_map): Fix typo.
32789
32790 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
32791
32792 * config/s390/s390.c (s390_asm_declare_function_size): Add code
32793 to actually emit the .size directive.
32794
32795 2016-01-21 Stefan Sørensen <stefan.sorensen@spectralink.com>
32796 Jakub Jelinek <jakub@redhat.com>
32797
32798 PR target/69187
32799 PR target/65624
32800 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
32801 args array size by one to avoid buffer overflow.
32802
32803 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
32804
32805 * config/s390/s390.md (pool_section_start): Use switch_to_section
32806 to select proper read-only data section instead of hardcoding
32807 .rodata.
32808 (pool_section_end): Use switch_to_section to match the above.
32809
32810 2016-01-21 Richard Biener <rguenther@suse.de>
32811
32812 PR tree-optimization/69378
32813 * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
32814 (set_ssa_val_to): Use it for dominance checks taking into
32815 account not executable edges.
32816
32817 2016-01-21 Jakub Jelinek <jakub@redhat.com>
32818
32819 PR c++/69355
32820 * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
32821 for bitsize instead of GET_MODE_PRECISION (mode).
32822
32823 2016-01-20 Martin Sebor <msebor@redhat.com>
32824
32825 PR c/52291
32826 * extend.texi (__sync Builtins): Clarify the semantics of
32827 __sync_fetch_and_OP built-ins on pointers.
32828 (__atomic Builtins): Same.
32829
32830 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
32831 Sebastian Pop <s.pop@samsung.com>
32832
32833 * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
32834 (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
32835 (is_valid_rename): Same.
32836 (translate_isl_ast_to_gimple::get_rename): Same.
32837 (translate_isl_ast_to_gimple::rename_all_uses): Same.
32838 (translate_isl_ast_to_gimple::rename_uses): Same.
32839 (get_new_name): Check for close_phi nodes.
32840 (copy_loop_phi_args): Use phi_node_kind.
32841 (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
32842 (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
32843
32844 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
32845 Sebastian Pop <s.pop@samsung.com>
32846
32847 Revert commit r229783.
32848 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
32849 Remove use of parameter_rename_map.
32850 (copy_def): Remove.
32851 (copy_internal_parameters): Remove.
32852 (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
32853 * sese.c (new_sese_info): Do not initialize parameter_rename_map.
32854 (free_sese_info): Do not free parameter_rename_map.
32855 (set_rename): Do not use parameter_rename_map.
32856 (rename_uses): Update call to set_rename.
32857 (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
32858 * sese.h (parameter_rename_map_t): Remove.
32859 (struct sese_info_t): Remove field parameter_rename_map.
32860
32861 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
32862 Sebastian Pop <s.pop@samsung.com>
32863
32864 * graphite-isl-ast-to-gimple.c: Fix comment.
32865 * graphite-scop-detection.c (defined_in_loop_p): New.
32866 (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
32867 names defined in loop.
32868
32869 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
32870 Sebastian Pop <s.pop@samsung.com>
32871
32872 * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
32873 Discard unstructured if-then-else regions.
32874
32875 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
32876 Sebastian Pop <s.pop@samsung.com>
32877
32878 * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
32879 (cleanup_loop_iter_dom): Remove.
32880 (build_loop_iteration_domains): Remove.
32881 (build_scop_context): Remove.
32882 (build_scop_iteration_domain): Remove.
32883 (add_loop_constraints): New.
32884 (build_iteration_domains): New.
32885 (build_poly_scop): Call build_iteration_domains.
32886
32887 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
32888 Sebastian Pop <s.pop@samsung.com>
32889
32890 * graphite-scop-detection.c
32891 (scop_detection::harmful_loop_in_region): Free dom and loops.
32892 (scop_detection::loop_body_is_valid_scop): Free bbs.
32893
32894 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
32895 Sebastian Pop <s.pop@samsung.com>
32896
32897 * graphite-scop-detection.c (record_loop_in_sese): New.
32898 (gather_bbs::before_dom_children): Call record_loop_in_sese.
32899 (build_scops): Remove call to build_sese_loop_nests.
32900 * sese.c (sese_record_loop): Remove.
32901 (build_sese_loop_nests): Remove.
32902 (new_sese_info): Remove region->loops.
32903 (free_sese_info): Same.
32904 * sese.h (sese_contains_loop): Same.
32905 (build_sese_loop_nests): Remove.
32906 (sese_contains_loop): Remove.
32907
32908 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
32909 Sebastian Pop <s.pop@samsung.com>
32910
32911 * graphite-scop-detection.c (loop_is_valid_scop): Renamed
32912 loop_is_valid_in_scop.
32913 (scop_detection::harmful_stmt_in_region): Renamed
32914 harmful_loop_in_region.
32915 Call loop_is_valid_in_scop.
32916
32917 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
32918 Sebastian Pop <s.pop@samsung.com>
32919
32920 * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
32921 isl_ast_node_mark.
32922
32923 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
32924 Sebastian Pop <s.pop@samsung.com>
32925
32926 * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
32927 * graphite.h (struct poly_bb): Remove field is_reduction.
32928 (PBB_IS_REDUCTION): Remove.
32929
32930 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
32931 Sebastian Pop <s.pop@samsung.com>
32932
32933 * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
32934 (add_pdr_constraints): Same.
32935 (scop_get_reads): Same.
32936 (scop_get_must_writes): Same.
32937 (scop_get_may_writes): Same.
32938 (scop_get_original_schedule): Same.
32939 (extend_schedule): Same.
32940 (apply_schedule_on_deps): Same.
32941 (carries_deps): Same.
32942 (compute_deps): Same.
32943 (scop_get_dependences): Same.
32944 * graphite-isl-ast-to-gimple.c
32945 (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
32946 * graphite-optimize-isl.c (get_schedule_for_band): Same.
32947 (get_schedule_for_band_list): Same.
32948 (get_schedule_map): Same.
32949 (apply_schedule_map_to_scop): Same.
32950 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
32951 (build_loop_iteration_domains): Same.
32952 (add_condition_to_pbb): Same.
32953 (add_param_constraints): Same.
32954 (pdr_add_memory_accesses): Same.
32955 (pdr_add_data_dimensions): Same.
32956
32957 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
32958
32959 * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
32960 requirements.
32961
32962 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
32963
32964 * common.opt (feliminate-dwarf2-dups): Replace references to
32965 "DWARF 2" with just "DWARF".
32966 * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
32967 * doc/extend.texi: Likewise.
32968 * doc/cpp.texi: Likewise.
32969 * doc/invoke.texi: Likewise.
32970 (Option Summary): Add -gdwarf to list of Debugging Options.
32971 (Debugging Options): Document -gdwarf.
32972 * doc/contrib.texi: Spell "DWARF" like that.
32973
32974 2016-01-21 Jakub Jelinek <jakub@redhat.com>
32975
32976 * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
32977 warning. Fix up formatting.
32978
32979 PR middle-end/67653
32980 * gimplify.c (gimplify_asm_expr): Warn if it is too late to
32981 attempt to mark memory input operand addressable and
32982 call prepare_gimple_addressable in that case. Don't adjust
32983 input_location for diagnostics, use error_at instead.
32984
32985 2016-01-20 Peter Bergner <bergner@vnet.ibm.com>
32986
32987 * config/rs6000/ppc-auxv.h: New file.
32988 * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
32989 (cpu_is): Likewise.
32990 (cpu_supports): Likewise.
32991 * config/rs6000/rs6000.c: include "ppc-auxv.h".
32992 (cpu_is_info): New variable.
32993 (cpu_supports_info): Likewise.
32994 (tcb_verification_symbol): Likewise.
32995 (cpu_builtin_p): Likewise.
32996 (cpu_expand_builtin): New function.
32997 (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
32998 (rs6000_init_builtins): Likewise.
32999 (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
33000 * config/rs6000/rs6000.h (TLS_REGNUM): New define.
33001 * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
33002 * configure: Regenerate.
33003 * config.in: Likewise.
33004 * doc/extend.texi (PowerPC Built-in Functions): Document
33005 __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
33006
33007 2016-01-20 David Edelsohn <dje.gcc@gmail.com>
33008
33009 PR target/68609
33010 * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
33011 domain check.
33012 * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
33013 for V4SFmode.
33014
33015 2016-01-20 Richard Henderson <rth@redhat.com>
33016
33017 PR bootstrap/69343
33018 PR bootstrap/69339
33019 PR tree-opt/68964
33020 Revert:
33021 * tree.c (tm_define_builtin): New.
33022 (find_tm_vector_type): New.
33023 (build_tm_vector_builtins): New.
33024 (build_common_builtin_nodes): Call it.
33025
33026 2016-01-20 Christophe Lyon <christophe.lyon@linaro.org>
33027
33028 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
33029 (arm_fp_ok): Likewise.
33030 (arm_fp): Likewise.
33031 (arm_crypto): Likewise.
33032
33033 2016-01-20 Ilya Enkovich <enkovich.gnu@gmail.com>
33034 Richard Biener <rguenther@suse.de>
33035
33036 PR tree-optimization/69328
33037 * tree-vect-stmts.c (vect_is_simple_cond): Check compared
33038 vectors have same number of elements.
33039 (vectorizable_condition): Fix masked version recognition.
33040
33041 2016-01-20 Richard Biener <rguenther@suse.de>
33042
33043 PR tree-optimization/69345
33044 * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
33045 (VN_INFO_PTR_INFO): Likewise.
33046 * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
33047 info when it is equal between non-dominating SSA names.
33048 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
33049 Make sure to look at original SSA infos.
33050
33051 2016-01-20 Jeff Law <law@redhat.com>
33052
33053 PR target/25114
33054 * config/m68k/predicates.md (pow2_m1_operand): New predicate
33055 extracted from ...
33056 (reg_or_pow2_m1_operand): Call pow2_m1_operand.
33057 (pc_or_label_operand): New predicate.
33058 * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
33059 tests for small integers that are 2^n - 1.
33060
33061 2016-01-20 Jonathan Wakely <jwakely@redhat.com>
33062
33063 * doc/invoke.texi (Options Summary): Add '.' after @xref.
33064
33065 2016-01-19 Jeff Law <law@redhat.com>
33066
33067 PR middle-end/69347
33068 * tree-ssa-threadbackwards.c
33069 (fsm_find_control_statement_thread_paths): Do not try to lookup
33070 FSM paths for SSA_NAMEs appearing in abnormal PHIs.
33071
33072 2016-01-20 Kugan Vivekanandarajah <kuganv@linaro.org>
33073
33074 * doc/lto.texi: Remove text that says only Gold has linker plugin
33075 support.
33076
33077 2016-01-19 Eric Botcazou <ebotcazou@adacore.com>
33078
33079 * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
33080 (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
33081 the DIE accordingly.
33082 (modified_type_die): Add REVERSE parameter and pass it recursively,
33083 as well as to base_type_die. Adjust presence check accordingly.
33084 (base_type_for_mode): Adjust call to modified_type_die.
33085 (add_type_attribute): Add REVERSE parameter and pass it to
33086 modified_type_die.
33087 (generic_parameter_die): Adjust call to add_type_attribute.
33088 (add_scalar_info): Likewise.
33089 (add_subscript_info): Likewise.
33090 (gen_array_type_die): Likewise.
33091 (gen_descr_array_type_die): Likewise.
33092 (gen_entry_point_die): Likewise.
33093 (gen_enumeration_type_die): Likewise.
33094 (gen_formal_parameter_die): Likewise.
33095 (gen_subprogram_die): Likewise.
33096 (gen_variable_die ): Likewise.
33097 (gen_const_die): Likewise.
33098 (gen_field_die): Likewise.
33099 (gen_pointer_type_die): Likewise.
33100 (gen_reference_type_die): Likewise.
33101 (gen_ptr_to_mbr_type_die): Likewise.
33102 (gen_inheritance_die): Likewise.
33103 (gen_subroutine_type_die): Likewise.
33104 (gen_typedef_die): Likewise.
33105 (force_type_die): Adjust call to modified_type_die.
33106
33107 2016-01-19 Sandra Loosemore <sandra@codesourcery.com>
33108
33109 * doc/standards.texi: Copy-editing for grammar, markup, and sentence
33110 flow throughout the file. Fix broken link to Objective-C 2.0
33111 documentation.
33112 * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
33113 errors.
33114
33115 2016-01-19 Wilco Dijkstra <wdijkstr@arm.com>
33116
33117 * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
33118
33119 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
33120
33121 PR ipa/66223
33122 * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
33123 (maybe_record_node): Record cxa_pure_virtual as the only possible
33124 target if there are not ohter candidates.
33125 (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
33126
33127 2016-01-19 Richard Biener <rguenther@suse.de>
33128
33129 * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
33130 (get_memory_order): Likewise.
33131
33132 2016-01-19 Kirill Yukhin <kirill.yukhin@intel.com>
33133
33134 * tree-vect-stmts.c (vectorizable_store): Check
33135 rhs vectype.
33136
33137 2016-01-19 David Malcolm <dmalcolm@redhat.com>
33138
33139 PR jit/68446
33140 * gcc.c (driver::decode_argv): Add call to
33141 init_opts_obstack before init_options_struct.
33142 * opts.c (init_opts_obstack): Remove idempotency.
33143 (init_options_struct): Replace call to init_opts_obstack
33144 with a gcc_assert to verify that it has already been called.
33145 * toplev.c (toplev::main): Add call to init_opts_obstack before
33146 calls to init_options_struct.
33147 (toplev::finalize): Move cleanup of opts_obstack next to
33148 cleanup of save_decoded_options, clearing the latter, and
33149 save_decoded_options_count.
33150
33151 2016-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33152
33153 PR target/69135
33154 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
33155 attribute to unconditional. Remove %? from output template.
33156
33157 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
33158 Jiong Wang <jiong.wang@arm.com>
33159
33160 * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
33161 generated from different expand order.
33162
33163 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
33164
33165 * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
33166 Add support for CCMP costing.
33167
33168 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
33169
33170 * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
33171 * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
33172 (fccmpe<mode>): Likewise.
33173 (fcmp): Rename to fcmp and globalize pattern.
33174 (fcmpe): Likewise.
33175 * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
33176 (aarch64_gen_ccmp_next): Add FP support.
33177
33178 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
33179
33180 * target.def (gen_ccmp_first): Update documentation.
33181 (gen_ccmp_next): Likewise.
33182 * doc/tm.texi (gen_ccmp_first): Update documentation.
33183 (gen_ccmp_next): Likewise.
33184 * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
33185 expand_ccmp_expr_1. Improve comments.
33186 * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
33187 (ccmp_ior<mode>): Remove pattern.
33188 (cmp<mode>): Remove expand.
33189 (cmp): Globalize pattern.
33190 (cstorecc4): Use cc_register.
33191 (mov<mode>cc): Remove ccmp_cc_register check.
33192 * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
33193 Simplify after removal of CC_DNE/* modes.
33194 (aarch64_ccmp_mode_to_code): Remove.
33195 (aarch64_print_operand): Remove 'K' case. Merge 'm' and 'M' cases.
33196 In 'k' case use integer as condition.
33197 (aarch64_nzcv_codes): Remove inverted cases.
33198 (aarch64_code_to_ccmode): Remove.
33199 (aarch64_gen_ccmp_first): Use cmp pattern directly. Return the correct
33200 comparison with CC register to be used in folowing CCMP/branch/CSEL.
33201 (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
33202 pattern. Return the comparison with CC register. Invert conditions
33203 when bitcode is OR.
33204 * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
33205 * config/aarch64/predicates.md (ccmp_cc_register): Remove.
33206
33207 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
33208
33209 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
33210 instrumented_version.
33211
33212 2016-01-19 Richard Biener <rguenther@suse.de>
33213
33214 PR tree-optimization/69336
33215 * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
33216 handled components with get_ref_base_and_extent.
33217 (equal_mem_array_ref_p): Adjust.
33218
33219 2016-01-19 Jakub Jelinek <jakub@redhat.com>
33220
33221 PR debug/65779
33222 * shrink-wrap.c: Include valtrack.h.
33223 (move_insn_for_shrink_wrap): Add DEBUG argument. If
33224 MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
33225 in between insn and where it will be moved to. Call
33226 dead_debug_insert_temp.
33227 (prepare_shrink_wrap): Adjust caller. Call dead_debug_local_init
33228 first and dead_debug_local_finish at the end.
33229 For uses and defs bitmap, handle all regs in between REGNO and
33230 END_REGNO, not just the first one.
33231
33232 2016-01-19 Richard Biener <rguenther@suse.de>
33233
33234 PR tree-optimization/69352
33235 * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
33236 (equal_mem_array_ref_p): Constrain size and max size properly.
33237 Compare the reverse flag.
33238
33239 2016-01-19 Bernd Schmidt <bschmidt@redhat.com>
33240
33241 * ira.c (ira): Update regstat data if we deleted insns.
33242
33243 2016-01-19 Jakub Jelinek <jakub@redhat.com>
33244
33245 PR rtl-optimization/68955
33246 PR rtl-optimization/64557
33247 * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
33248 here. Fix up formatting.
33249 * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
33250
33251 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
33252
33253 PR lto/69133
33254 * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
33255 assume that the node has body.
33256 * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
33257 check.
33258
33259 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
33260
33261 * lto-streamer-out.c (lto_output): Do not stream instrumentation
33262 thunks.
33263
33264 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
33265
33266 * symtab.c (symtab_node::asm_name): Do not call printable name directly.
33267 (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
33268
33269 2016-01-19 Martin Jambor <mjambor@suse.cz>
33270 Martin Liska <mliska@suse.cz>
33271 Michael Matz <matz@suse.de>
33272
33273 * Makefile.in (OBJS): Add new source files.
33274 (GTFILES): Add hsa.c.
33275 * common.opt (disable_hsa): New variable.
33276 (-Whsa): New warning.
33277 * config.in (ENABLE_HSA): New.
33278 * configure.ac: Treat hsa differently from other accelerators.
33279 (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
33280 $enable_offloading.
33281 (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
33282 * doc/install.texi (Configuration): Document --with-hsa-runtime,
33283 --with-hsa-runtime-include, --with-hsa-runtime-lib and
33284 --with-hsa-kmt-lib.
33285 * doc/invoke.texi (-Whsa): Document.
33286 (hsa-gen-debug-stores): Likewise.
33287 * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
33288 to invoke offload compiler for hsa acclerator.
33289 * opts.c (common_handle_option): Determine whether HSA offloading
33290 should be performed.
33291 * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
33292 * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
33293 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
33294 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
33295 * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
33296 * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
33297 GF_OMP_FOR_KIND_GRID_LOOP.
33298 (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
33299 (pp_gimple_stmt_1): Likewise.
33300 * gimple-walk.c (walk_gimple_stmt): Likewise.
33301 * gimple.c (gimple_build_omp_grid_body): New function.
33302 (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
33303 * gimple.def (GIMPLE_OMP_GRID_BODY): New.
33304 * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
33305 GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
33306 GF_OMP_TEAMS_GRID_PHONY.
33307 (gimple_statement_omp_single_layout): Updated comments.
33308 (gimple_build_omp_grid_body): New function.
33309 (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
33310 (gimple_omp_for_grid_phony): New function.
33311 (gimple_omp_for_set_grid_phony): Likewise.
33312 (gimple_omp_parallel_grid_phony): Likewise.
33313 (gimple_omp_parallel_set_grid_phony): Likewise.
33314 (gimple_omp_teams_grid_phony): Likewise.
33315 (gimple_omp_teams_set_grid_phony): Likewise.
33316 (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
33317 * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
33318 (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
33319 (BUILT_IN_GOMP_TARGET): Updated type.
33320 * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
33321 (adjust_for_condition): New function.
33322 (get_omp_for_step_from_incr): Likewise.
33323 (extract_omp_for_data): Moved parts to adjust_for_condition and
33324 get_omp_for_step_from_incr.
33325 (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
33326 (fixup_child_record_type): Bail out if receiver_decl is NULL.
33327 (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
33328 (scan_omp_parallel): Do not create child functions for phony
33329 constructs.
33330 (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
33331 (scan_omp_1_op): Checking assert we are not remapping to
33332 ERROR_MARK. Also also handle GIMPLE_OMP_GRID_BODY.
33333 (parallel_needs_hsa_kernel_p): New function.
33334 (expand_parallel_call): Register apprpriate parallel child
33335 functions as HSA kernels.
33336 (grid_launch_attributes_trees): New type.
33337 (grid_attr_trees): New variable.
33338 (grid_create_kernel_launch_attr_types): New function.
33339 (grid_insert_store_range_dim): Likewise.
33340 (grid_get_kernel_launch_attributes): Likewise.
33341 (get_target_argument_identifier_1): Likewise.
33342 (get_target_argument_identifier): Likewise.
33343 (get_target_argument_value): Likewise.
33344 (push_target_argument_according_to_value): Likewise.
33345 (get_target_arguments): Likewise.
33346 (expand_omp_target): Call get_target_arguments instead of looking
33347 up for teams and thread limit.
33348 (grid_expand_omp_for_loop): New function.
33349 (grid_arg_decl_map): New type.
33350 (grid_remap_kernel_arg_accesses): New function.
33351 (grid_expand_target_kernel_body): New function.
33352 (expand_omp): Call it.
33353 (lower_omp_for): Do not emit phony constructs.
33354 (lower_omp_taskreg): Do not emit phony constructs but create for them
33355 a temporary variable receiver_decl.
33356 (lower_omp_taskreg): Do not emit phony constructs.
33357 (lower_omp_teams): Likewise.
33358 (lower_omp_grid_body): New function.
33359 (lower_omp_1): Call it.
33360 (grid_reg_assignment_to_local_var_p): New function.
33361 (grid_seq_only_contains_local_assignments): Likewise.
33362 (grid_find_single_omp_among_assignments_1): Likewise.
33363 (grid_find_single_omp_among_assignments): Likewise.
33364 (grid_find_ungridifiable_statement): Likewise.
33365 (grid_target_follows_gridifiable_pattern): Likewise.
33366 (grid_remap_prebody_decls): Likewise.
33367 (grid_copy_leading_local_assignments): Likewise.
33368 (grid_process_kernel_body_copy): Likewise.
33369 (grid_attempt_target_gridification): Likewise.
33370 (grid_gridify_all_targets_stmt): Likewise.
33371 (grid_gridify_all_targets): Likewise.
33372 (execute_lower_omp): Call grid_gridify_all_targets.
33373 (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
33374 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
33375 (tree_omp_clause): Added union field dimension.
33376 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
33377 * tree.c (omp_clause_num_ops): Added number of arguments of
33378 OMP_CLAUSE__GRIDDIM_.
33379 (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
33380 (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
33381 * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
33382 (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
33383 (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
33384 (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
33385 * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
33386 * tree-pass.h (make_pass_gen_hsail): Declare.
33387 (make_pass_ipa_hsa): Likewise.
33388 * ipa-hsa.c: New file.
33389 * lto-section-in.c (lto_section_name): Add hsa section name.
33390 * lto-streamer.h (lto_section_type): Add hsa section.
33391 * timevar.def (TV_IPA_HSA): New.
33392 * hsa-brig-format.h: New file.
33393 * hsa-brig.c: New file.
33394 * hsa-dump.c: Likewise.
33395 * hsa-gen.c: Likewise.
33396 * hsa.c: Likewise.
33397 * hsa.h: Likewise.
33398 * toplev.c (compile_file): Call hsa_output_brig.
33399 * hsa-regalloc.c: New file.
33400
33401 2016-01-18 Jeff Law <law@redhat.com>
33402
33403 PR tree-optimization/69320
33404 * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
33405 ranged object, do nothing if the RHS constant is not [0..1].
33406 (optimize_stmt): Comparing a boolean ranged object against a
33407 constant outside [0..1] results in a compile-time constant.
33408
33409 * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
33410 test.
33411
33412 2016-01-18 Sandra Loosemore <sandra@codesourcery.com>
33413
33414 * doc/invoke.texi (Invoking GCC): Add new section to menu.
33415 (Option Summary): Update to reflect new section and moved options.
33416 (C++ Dialect Options): Move -fstats to new section.
33417 (Debugging Options): Move all dump, statistics, and other GCC
33418 developer options to new section. Rewrite section introduction
33419 and re-order remaining options to put the more basic ones first.
33420 (Optimization Options): Move -fira-verbose and -flto-report* to
33421 new section.
33422 (Developer Options): New section incorporating moved options.
33423 * doc/cppopts.texi (-dM): Update cross-reference.
33424
33425 2016-01-18 Richard Henderson <rth@redhat.com>
33426
33427 PR target/69176
33428 * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
33429 operands to pseudo only if CSE is expected. Split long immediate
33430 operands only after reload, and for the stack pointer.
33431 (*add<GPI>3_pluslong): Remove.
33432 (*addsi3_aarch64, *adddi3_aarch64): Merge into...
33433 (*add<GPI>3_aarch64): ... here. Add r/rk/Upl alternative.
33434 (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
33435 (*add<GPI>3 peepholes): New.
33436 (*add<GPI>3 splitters): New.
33437 * config/aarch64/constraints.md (Upl): New.
33438 * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
33439
33440 2016-01-18 Richard Biener <rguenther@suse.de>
33441
33442 PR tree-optimization/69297
33443 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
33444 stmt at most once.
33445 (vect_bb_vectorization_profitable_p): Clear visited flag again.
33446
33447 2016-01-18 Yuri Rumyantsev <ysrumyan@gmail.com>
33448
33449 PR middle-end/68542
33450 * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
33451 of mixind vector and scalar types.
33452 (fold_relational_const): Add handling of vector
33453 comparison with boolean result.
33454 * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
33455 comparison of vector operands with boolean result for EQ/NE only.
33456 (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
33457 (verify_gimple_cond): Likewise.
33458 * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
33459 valid type of VAL.
33460
33461 2016-01-18 Joseph Myers <joseph@codesourcery.com>
33462
33463 * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
33464 !TARGET_OCTEON.
33465
33466 2016-01-18 Richard Biener <rguenther@suse.de>
33467
33468 PR middle-end/69308
33469 * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
33470
33471 2016-01-18 Tom de Vries <tom@codesourcery.com>
33472
33473 * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
33474
33475 2016-01-18 Tom de Vries <tom@codesourcery.com>
33476
33477 * omp-low.c (set_oacc_fn_attrib): Make extern.
33478 * omp-low.h (set_oacc_fn_attrib): Declare.
33479 * tree-parloops.c (struct reduction_info): Add reduc_addr field.
33480 (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
33481 (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
33482 Add and handle function parameter oacc_kernels_p.
33483 (find_reduc_addr, get_omp_data_i_param): New function.
33484 (ref_conflicts_with_region, oacc_entry_exit_ok_1)
33485 (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
33486 (parallelize_loops): Add and handle function parameter oacc_kernels_p.
33487 Calculate dominance info. Skip loops that are not in a kernels region
33488 in oacc_kernels_p mode. Skip inner loops of parallelized loops.
33489 (pass_parallelize_loops::execute): Call parallelize_loops with
33490 oacc_kernels_p argument.
33491 (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
33492 New member function.
33493 (pass_parallelize_loops::bool oacc_kernels_p): New member var.
33494 * passes.def: Add argument to pass_parallelize_loops instantation.
33495
33496 2016-01-18 Tom de Vries <tom@codesourcery.com>
33497
33498 * tree-parloops.c (pass_parallelize_loops::execute): Allow
33499 pass_parallelize_loops to be run outside the loop pipeline.
33500
33501 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
33502
33503 * tree-scalar-evolution.c (follow_copies_to_constant): New.
33504 (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
33505
33506 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
33507
33508 PR target/63679
33509 * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
33510 using get_ref_base_and_extent.
33511 (equal_mem_array_ref_p): New.
33512 (hashable_expr_equal_p): Add call to previous.
33513
33514 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
33515
33516 PR target/63679
33517 * tree-sra.c (disqualified_constants, constant_decl_p): New.
33518 (sra_initialize): Allocate disqualified_constants.
33519 (sra_deinitialize): Free disqualified_constants.
33520 (disqualify_candidate): Update disqualified_constants when appropriate.
33521 (create_access): Scan for constant-pool entries as we go along.
33522 (scalarizable_type_p): Add check against type_contains_placeholder_p.
33523 (maybe_add_sra_candidate): Allow constant-pool entries.
33524 (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
33525 (initialize_constant_pool_replacements): New.
33526 (sra_modify_assign): Avoid mangling assignments created by previous,
33527 and don't generate writes into constant pool.
33528 (sra_modify_function_body): Call initialize_constant_pool_replacements.
33529
33530 2016-01-18 Ilya Enkovich <enkovich.gnu@gmail.com>
33531
33532 * config/i386/i386.c (scalar_to_vector_candidate_p): Support
33533 andnot instruction.
33534 (scalar_chain::convert_op): Likewise.
33535 * config/i386/i386.md (*andndi3_doubleword): New.
33536
33537 2016-01-18 Richard Biener <rguenther@suse.de>
33538
33539 PR tree-optimization/69170
33540 * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
33541 building a vector from scalar results of a pattern stmt.
33542
33543 2016-01-18 Jakub Jelinek <jakub@redhat.com>
33544
33545 * haifa-sched.c (autopref_multipass_init): Work around
33546 -Wmaybe-uninitialized warning.
33547
33548 2016-01-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
33549
33550 * config/arm/arm.c (thumb1_reorg): Check that the comparison is
33551 against the constant 0.
33552
33553 2016-01-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33554
33555 PR tree-optimization/68799
33556 * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
33557 look up phi candidates in the statement-candidate map.
33558 (phi_add_costs): Likewise.
33559 (record_phi_increments): Likewise.
33560 (phi_incr_cost): Likewise.
33561 (ncd_with_phi): Likewise.
33562 (all_phi_incrs_profitable): Likewise.
33563
33564 2016-01-17 Jakub Jelinek <jakub@redhat.com>
33565
33566 * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
33567 -Wmaybe-uninitialized warning.
33568
33569 2016-01-16 Sandra Loosemore <sandra@codesourcery.com>
33570
33571 * doc/invoke.texi (Invoking GCC): Add new section to menu.
33572 (Option Summary): Update to reflect new section and moved options.
33573 (C++ Dialect Options): Move -fvtable-verify and related options.
33574 (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
33575 and profiling-related options.
33576 (Optimization Options): Move profile generation options and
33577 -fstack-protector and related options.
33578 (Instrumentation Options): New section incorporating moved options.
33579 (Code Generation Options): Move -finstrument-functions and
33580 related options, -fstack-check, -fstack-limit*, and -fbounds-check.
33581
33582 2016-01-16 Tom de Vries <tom@codesourcery.com>
33583
33584 * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
33585
33586 2016-01-16 Tom de Vries <tom@codesourcery.com>
33587
33588 * omp-low.c (expand_omp_atomic_fetch_op): Release defs of update stmt.
33589
33590 2016-01-16 Richard Sandiford <richard.sandiford@arm.com>
33591
33592 * hash-table.h (hash_table::empty): Turn into an inline wrapper
33593 that checks whether the table is already empty. Rename the
33594 original implementation to...
33595 (hash_table::empty_slot): ...this new private function.
33596
33597 2016-01-15 David Malcolm <dmalcolm@redhat.com>
33598
33599 PR diagnostic/68899
33600 * diagnostic-show-locus.c (layout::print_source_line): Move x
33601 offset of line until after call to
33602 get_line_width_without_trailing_whitespace.
33603
33604 2016-01-15 Jeff Law <law@redhat.com>
33605
33606 PR tree-optimization/69270
33607 * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
33608 tree-ssa-dom.c. Improve test for [0..1] ranve from VRP.
33609 * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
33610 * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
33611 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
33612 ssa_name_has_boolean_range and constant_boolean_node.
33613
33614 2016-01-15 Vladimir Makarov <vmakarov@redhat.com>
33615
33616 PR rtl-optimization/69030
33617 * lra-spills.c (remove_pseudos): Check nrefs and make the function
33618 returning bool.
33619 (spill_pseudos): Delete debug insn for dead pseudo.
33620 (lra_spill): Initiate spill_hard_reg and slots memory separately.
33621
33622 2016-01-15 Jiong Wang <jiong.wang@arm.com>
33623
33624 * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
33625 New.
33626 (TYPES_UNOPUS): Likewise.
33627 * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
33628 builtin type, from UNOP to UNOPUS.
33629 (lbtruncuv4sf): Likewise.
33630 (lbtruncuv2df): Likewise.
33631 (lrounduv2sf): Likewise.
33632 (lrounduv4sf): Likewise.
33633 (lrounduv2df): Likewise.
33634 (lroundusf): Likewise.
33635 (lroundusf): Likewise.
33636 (lceiluv2sf): Likewise.
33637 (lceiluv4sf): Likewise.
33638 (lceiluv2df): Likewise.
33639 (lceilusf): Likewise.
33640 (lceiludf): Likewise.
33641 (lflooruv2sf): Likewise.
33642 (lflooruv4sf): Likewise.
33643 (lflooruv2df): Likewise.
33644 (lfloorusf): Likewise.
33645 (lfloorudf): Likewise.
33646 (lfrintnuv2sf): Likewise.
33647 (lfrintnuv4sf): Likewise.
33648 (lfrintnuv2df): Likewise.
33649 (lfrintnusf): Likewise.
33650 (lfrintnudf): Likewise.
33651 * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
33652 conversion.
33653 (vcvtq_u32_f32): Likewise.
33654 (vcvtq_u64_f64): Likewise.
33655 (vcvta_u32_f32): Likewise.
33656 (vcvtaq_u32_f32): Likewise.
33657 (vcvtaq_u64_f64): Likewise.
33658 (vcvtm_u32_f32): Likewise.
33659 (vcvtmq_u32_f32): Likewise.
33660 (vcvtmq_u64_f64): Likewise.
33661 (vcvtn_u32_f32): Likwise.
33662 (vcvtnq_u32_f32): Likewise.
33663 (vcvtnq_u64_f64): Likewise.
33664 (vcvtp_u32_f32): Likewise.
33665 (vcvtpq_u32_f32): Likewise.
33666 (vcvtpq_u64_f64): Likewise.
33667 (vcvtmd_u64_f64): Likewise.
33668 (vcvtms_u32_f32): Likewise.
33669 (vcvtad_u64_f64): Likewise.
33670 (vcvtas_u32_f32): Likewise.
33671 (vcvtnd_u64_f64): Likewise.
33672 (vcvtns_u32_f32): Likewise.
33673 (vcvtpd_u64_f64): Likewise.
33674 (vcvtps_u32_f32): Likewise.
33675
33676 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33677
33678 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
33679 CSEL of zero_extended registers.
33680
33681 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33682
33683 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
33684 Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
33685
33686 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33687
33688 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
33689 false when argument string is not found in the attributes table
33690 at all.
33691
33692 2016-01-15 David Edelsohn <dje.gcc@gmail.com>
33693
33694 PR target/68609
33695 * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
33696 (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
33697 * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
33698 precision estimate.
33699
33700 2016-01-15 Richard Biener <rguenther@suse.de>
33701
33702 PR tree-optimization/66856
33703 * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
33704 * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
33705 (vect_create_new_slp_node): Increment stmt reference count.
33706 (vect_get_and_check_slp_defs): Make sure stmts are nor already in
33707 an SLP tree before swapping operands.
33708 (vect_build_slp_tree): Likewise.
33709 (destroy_bb_vec_info): Free stmt info after SLP instances.
33710 * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
33711 * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
33712 (STMT_VINFO_NUM_SLP_USES): New macro.
33713
33714 2016-01-15 Richard Biener <rguenther@suse.de>
33715
33716 PR debug/69137
33717 * dwarf2out.c (add_linkage_name_raw): New function split out from ...
33718 (add_linkage_name): ... here.
33719 (gen_typedef_die): Use add_linkage_name_raw instead of
33720 add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
33721 if necessary.
33722
33723 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
33724
33725 * gimplify.c (oacc_default_clause): Decode reference and pointer
33726 types for both kernels and parallel regions.
33727
33728 2016-01-15 Richard Sandiford <richard.sandiford@arm.com>
33729
33730 PR middle-end/69246
33731 * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
33732
33733 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
33734
33735 * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
33736 (convert_scalars_to_vector): Likewise.
33737
33738 2016-01-15 Jonathan Wakely <jwakely@redhat.com>
33739
33740 * doc/extend.texi (Type Traits): Fix grammar.
33741
33742 2016-01-15 Martin Jambor <mjambor@suse.cz>
33743
33744 * tree-inline.c (remap_decl): Use existing dclarations if
33745 remapping a type and prevent_decl_creation_for_types.
33746 (replace_locals_stmt): Do an initial remapping of non-VLA typed
33747 decls first. Do real remapping with
33748 prevent_decl_creation_for_types set.
33749 * tree-inline.h (copy_body_data): New field
33750 prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
33751 padding.
33752
33753 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
33754
33755 * config/s390/s390.opt (mmvcle): More verbose help text.
33756
33757 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
33758
33759 * config/s390/s390.opt: Add period to -mzvector option text.
33760
33761 2016-01-15 Richard Biener <rguenther@suse.de>
33762
33763 PR tree-optimization/68961
33764 * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
33765 of invariants in stores again.
33766
33767 2016-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
33768
33769 * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
33770
33771 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
33772
33773 * config/i386/i386.c (ix86_expand_branch): Don't split
33774 DI mode xor instruction to SI mode.
33775
33776 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
33777
33778 PR ipa/68148
33779 * ipa-icf.c (sem_function::merge): Virtual functions may become
33780 reachable even if they address is not taken and there are no
33781 idrect calls.
33782
33783 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
33784
33785 * lto-streamer-out.c (subtract_estimated_size): New function.
33786 (get_symbol_initial_value): Use it.
33787
33788 2016-01-15 Christian Bruel <christian.bruel@st.com>
33789
33790 PR target/65837
33791 * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
33792 (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
33793 (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
33794 use add_builtin_function_ext_scope instead of add_builtin_function.
33795 (neon_set_p, neon_crypto_set_p): Remove.
33796 (arm_init_builtins): Always call arm_init_neon_builtins and
33797 arm_init_crypto_builtins.
33798 (arm_expand_builtin): Check that builtins are allowed for the arch.
33799 * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
33800 * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
33801 arm_init_neon_builtins call.
33802
33803 2016-01-15 Richard Biener <rguenther@suse.de>
33804
33805 PR tree-optimization/69117
33806 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
33807 * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
33808 of the leader conservatively.
33809 (free_scc_vn): Restore original SSA name infos.
33810
33811 2016-01-14 Jeff Law <law@redhat.com>
33812
33813 PR tree-optimization/69270
33814 * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
33815 single bit of precision, verify it's also unsigned.
33816 (record_edge_info): Use constant_boolean_node rather than fold_convert
33817 to convert boolean_true/boolean_false to the right type.
33818
33819 2016-01-14 Richard Henderson <rth@redhat.com>
33820
33821 PR rtl-opt/69014
33822 * loop-doloop.c (record_reg_sets): New.
33823 (doloop_optimize): Reject the transform if the sequence
33824 clobbers registers live at the end of the loop block.
33825 (doloop_optimize_loops): Enable df_live if needed.
33826
33827 2016-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
33828
33829 * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
33830 * config/rs6000/rs6000.c: Likewise.
33831 * config/rs6000/rs6000.h: Likewise.
33832 * config/rs6000/rs6000.md: Likewise.
33833 * doc/extend.texi: Likewsie.
33834
33835 2016-01-14 Jeff Law <law@redhat.com>
33836
33837 * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
33838 typo.
33839
33840 2016-01-14 Richard Henderson <rth@redhat.com>
33841
33842 PR c/69272
33843 PR tree-opt/68964
33844 * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
33845 * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
33846 instead of builtin_decl_declared_p to test for declaration.
33847
33848 2016-01-14 Nicklas Bo Jensen <nbjensen@gmail.com>
33849
33850 * doc/loop.texi (Loop Analysis and Representation): Document
33851 loop_depth function.
33852
33853 2016-01-14 Tom de Vries <tom@codesourcery.com>
33854
33855 PR tree-optimization/68773
33856 * omp-low.c (expand_omp_target): Don't set force_output.
33857 * varpool.c (varpool_node::get_create): Same.
33858 * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
33859 offload_funcs with force_output.
33860
33861 2016-01-14 Jakub Jelinek <jakub@redhat.com>
33862
33863 PR debug/69244
33864 * lra-eliminations.c (move_plus_up): Don't change anything if either
33865 the outer or inner subreg mode is not MODE_INT.
33866 * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
33867 integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
33868
33869 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
33870
33871 * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
33872 reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
33873 reduc_uplus_@var{m}): Remove.
33874 * expr.c (expand_expr_real_2): Remove expansion path for
33875 reduc_[us](min|max|plus) optabs.
33876 * optabs-tree.c (scalar_reduc_to_vector): Remove.
33877 * optabs-tree.h (scalar_reduc_to_vector): Remove.
33878 * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
33879 reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
33880 * tree-vect-loop.c (vectorizable_reduction): Remove test for
33881 reduc_[us](min|max|plus) optabs.
33882
33883 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
33884
33885 * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
33886 (reduc_plus_scal_v2sf): New.
33887 (reduc_smax_v2sf): Rename to...
33888 (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
33889 (reduc_smin_v2sf): Rename to...
33890 (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
33891
33892 2016-01-14 Jan Hubicka <hubicka@ucw.cz>
33893
33894 * alias.c (compare_base_symbol_refs): New function.
33895 (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
33896 it.
33897
33898 2016-01-14 Jakub Jelinek <jakub@redhat.com>
33899
33900 PR middle-end/68146
33901 PR tree-optimization/69155
33902 * tree-complex.c: Include cfganal.h.
33903 (phis_to_revisit): New variable.
33904 (extract_component): Add phiarg_p argument. Assert that returned
33905 SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
33906 (update_phi_components): Partly rewrite to use loop over real/imag
33907 components instead of code duplication. If extract_component returns
33908 SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
33909 create_tmp_reg into the PHI node instead, and mention the phi triplet
33910 in phis_to_revisit.
33911 (tree_lower_complex): Walk bbs in rpo order. Adjust phis recorded
33912 in phis_to_revisit at the end.
33913
33914 2016-01-14 Richard Biener <rguenther@suse.de>
33915
33916 PR tree-optimization/68060
33917 * tree-vect-loop.c (vect_is_simple_reduction): Check the
33918 outer loop reduction is only used in the inner loop before
33919 detecting a double reduction.
33920
33921 2016-01-14 Jakub Jelinek <jakub@redhat.com>
33922
33923 PR target/68269
33924 * combine.c (expand_field_assignment): Punt if compute_mode is
33925 unsupported scalar mode.
33926
33927 2016-01-14 Richard Biener <rguenther@suse.de>
33928
33929 PR tree-optimization/66856
33930 * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
33931 SLP node only if it built successfully.
33932 (vect_analyze_slp_instance): Adjust.
33933
33934 2016-01-14 Jeff Law <law@redhat.com>
33935
33936 PR tree-optimization/69270
33937 * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
33938 (record_edge_info): Use it. Convert boolean_{true,false}_node
33939 to the type of op0.
33940
33941 2016-01-13 Jan Hubicka <hubicka@ucw.cz>
33942
33943 PR ipa/66487
33944 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
33945 use block_ultimate_origin
33946 (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
33947
33948 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
33949
33950 * doc/invoke.texi (Submodel Options): Rename section to
33951 "Machine-Dependent Options" to better reflect its content.
33952 Rewrite introductory text to remove archaic CPU names.
33953 Update references.
33954
33955 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
33956
33957 * doc/invoke.texi (Code Gen Options): Move section up in file,
33958 before target-specific options. Update menu and option summary
33959 to reflect the new section ordering.
33960
33961 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
33962
33963 * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
33964 (C++ Dialect Options): Add cross-reference to -std option.
33965 * doc/standards.texi (C++ Language): Document C++14 support.
33966
33967 2016-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
33968
33969 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
33970 for pack/unpack functions for __ibm128.
33971 (PACK_IF): Likewise.
33972 (UNPACK_IF): Likewise.
33973
33974 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
33975 support for __ibm128 pack/unpack functions.
33976 (rs6000_invalid_builtin): Likewise.
33977 (rs6000_init_builtins): Likewise.
33978 (rs6000_opt_masks): Likewise.
33979
33980 * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
33981 (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
33982 functions
33983 (RS6000_BTM_COMMON): Likewise.
33984
33985 * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
33986 (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
33987 disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
33988 128-bit floating point. Add support for the double values to be
33989 in Altivec registers for TF/IF packing and unpacking, but restrict
33990 TD packing sub-fields to be FPR registers. Don't allow overlapped
33991 register support for packing. Allow pack inputs to be memory
33992 locations. Don't build generator functions for unpack<mode>_dm
33993 and unpack<mode>_nodm.
33994 (unpack<mode>_dm): Likewise.
33995 (unpack<mode>_nodm): Likewise.
33996 (pack<mode>): Likewise.
33997
33998 * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
33999 built-in functions to pack/unpack explicit __ibm128 values.
34000 (__builtin_unpack_ibm128): Likewise.
34001
34002 * doc/extend.texi (PowerPC Built-in Functions): Document
34003 __builtin_pack_ibm128 and __builtin_unpack_ibm128.
34004
34005 2016-01-13 Bernd Schmidt <bschmidt@redhat.com>
34006
34007 PR c/66208
34008 * c-common.c (check_function_nonnull): Remove unnecessary declaration.
34009 Add new arg loc and pass it down as context.
34010 (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
34011 to the location to use for the warning.
34012 (check_function_arguments): New arg loc. All callers changed. Pass
34013 it to check_function_nonnull.
34014 * c-common.h (check_function_arguments): Adjust declaration.
34015
34016 2016-01-13 Jakub Jelinek <jakub@redhat.com>
34017
34018 PR tree-optimization/69156
34019 * gimple.c (validate_type): Removed.
34020 (gimple_builtin_call_types_compatible_p): Use
34021 useless_type_conversion_p instead of validate_type.
34022 * value-prof.c (gimple_stringop_fixed_value): Fold
34023 icall_size to correct type.
34024
34025 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
34026
34027 * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
34028 effects.
34029
34030 2016-01-13 Richard Henderson <rth@redhat.com>
34031
34032 PR tree-opt/68964
34033 * target.def (builtin_tm_load, builtin_tm_store): Remove.
34034 * config/i386/i386.c (ix86_builtin_tm_load): Remove.
34035 (ix86_builtin_tm_store): Remove.
34036 (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
34037 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
34038 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
34039 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
34040 * doc/tm.texi: Rebuild.
34041
34042 * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
34043 (BUILT_IN_TM_MEMCPY_RTWN): New.
34044 * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
34045 fallback from vector to integer helpers.
34046 (build_tm_load): Handle vector types directly, instead of
34047 via target hook.
34048 (build_tm_store): Likewise.
34049 (expand_assign_tm): Prepare for register types not handled by
34050 the above. Copy them to memory and use memcpy.
34051 * tree.c (tm_define_builtin): New.
34052 (find_tm_vector_type): New.
34053 (build_tm_vector_builtins): New.
34054 (build_common_builtin_nodes): Call it.
34055
34056 2016-01-13 Uros Bizjak <ubizjak@gmail.com>
34057
34058 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
34059 TARGET_SSE_MATH without TARGET_SSE2. Rewrite.
34060
34061 2016-01-13 Tom de Vries <tom@codesourcery.com>
34062
34063 PR tree-optimization/69169
34064 * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
34065 handled_struct_type param.
34066 (create_variable_info_for, intra_create_variable_infos): Call
34067 create_variable_info_for_1 with extra arg.
34068
34069 2016-01-13 Yvan Roux <yvan.roux@linaro.org>
34070
34071 * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
34072 and "armv8.1-a+crc" entries.
34073
34074 2016-01-13 Alexander Fomin <alexander.fomin@intel.com>
34075
34076 PR target/69228
34077 * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
34078 Change first operand predicate from register_or_constm1_operand
34079 to register_operand.
34080 (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
34081 (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
34082 (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
34083 (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
34084 (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
34085 (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
34086 (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
34087 * config/i386/i386.c (ix86_expand_builtin): Remove first operand
34088 comparison with constm1_rtx from vec_prefetch_gen part.
34089
34090 2016-01-13 Richard Biener <rguenther@suse.de>
34091
34092 PR tree-optimization/69013
34093 * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
34094 Exchange assert for a test.
34095
34096 2016-01-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
34097
34098 PR target/69247
34099 * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
34100
34101 2016-01-13 Richard Biener <rguenther@suse.de>
34102
34103 PR tree-optimization/69242
34104 * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
34105 assert with a check.
34106
34107 2016-01-13 Richard Biener <rguenther@suse.de>
34108
34109 PR tree-optimization/69186
34110 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
34111 Properly guard vect_update_misalignment_for_peel call.
34112
34113 2016-01-12 Jeff Law <law@redhat.com>
34114
34115 PR tree-optimization/pr67755
34116 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
34117 "need_profile_correction".
34118 (thread_block_1): Initialize new field to false by default. If we
34119 have multiple thread paths through a common joiner to different
34120 final targets, then set new field to true.
34121 (compute_path_counts): Only do count adjustment when it's really
34122 needed.
34123
34124 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
34125
34126 * doc/invoke.texi (Spec Files): Move section down in file, past
34127 all command-line option descriptions.
34128
34129 2016-01-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
34130
34131 PR middle-end/54809
34132 * doc/gty.texi: Remove documentation of mark_hook.
34133 * gengtype.c (struct write_types_data): Remove code to support
34134 mark_hook attribute.
34135 (walk_type): Likewise.
34136 (write_func_for_structure): Likewise.
34137
34138 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
34139
34140 * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
34141 Directory Options, and -specs= to Overall Options.
34142 (Overall Options): Adjust similarly. Reorder to group related
34143 options together. Make -specs= cross-reference the spec file details.
34144 (Directory Options): Adjust similarly.
34145
34146 2016-01-12 Jeff Law <law@redhat.com>
34147
34148 * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
34149
34150 2016-01-12 Olivier Hainque <hainque@adacore.com>
34151
34152 * gcc.c (spec_undefvar_allowed): New global.
34153 (process_command): Set to true when running for --version or --help,
34154 alone or together.
34155 (getenv_spec_function): When the variable is not defined, use the
34156 variable name as the variable value if we're allowed not to issue
34157 a fatal error.
34158
34159 2016-01-12 Bin Cheng <bin.cheng@arm.com>
34160
34161 PR tree-optimization/68911
34162 * tree-vrp.c (adjust_range_with_scev): Check overflow in range
34163 information computed for expression "init + nit * step".
34164
34165 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
34166
34167 * doc/invoke.texi (Invoking GCC): Copy-edit. Incorporate information
34168 about name of GCC executable. Remove deleted node from menu.
34169 (Directory Options) <-B>: Remove cross-reference to deleted node.
34170 (Target Options): Delete section.
34171
34172 2016-01-12 Christian Bruel <christian.bruel@st.com>
34173
34174 PR target/69180
34175 * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
34176 for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
34177
34178 2016-01-12 Jakub Jelinek <jakub@redhat.com>
34179
34180 PR target/69198
34181 * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
34182 aligned_mem is properly set for AVX512-VL floating point masked
34183 stores.
34184
34185 PR target/69175
34186 * ifcvt.c (cond_exec_process_if_block): When removing the last
34187 insn from then_bb, remove also any possible barriers that follow it.
34188
34189 2016-01-12 H.J. Lu <hongjiu.lu@intel.com>
34190
34191 PR target/68456
34192 PR target/69226
34193 * config/i386/iamcu.h (SIZE_TYPE): New macro.
34194 (PTRDIFF_TYPE): Likewise.
34195 (WCHAR_TYPE): Likewise.
34196 (WCHAR_TYPE_SIZE): Likewise.
34197 (STDINT_LONG32): Likewise.
34198
34199 2016-01-12 Richard Biener <rguenther@suse.de>
34200
34201 PR tree-optimization/69053
34202 * tree-vect-loop.c (get_initial_def_for_reduction): Properly
34203 convert initial value for cond reductions.
34204
34205 2016-01-12 Richard Biener <rguenther@suse.de>
34206
34207 PR tree-optimization/69007
34208 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
34209 widen_sum after dot_prod and sad.
34210
34211 2016-01-12 Richard Biener <rguenther@suse.de>
34212
34213 PR tree-optimization/69168
34214 * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
34215 pattern stmt SLP type.
34216 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
34217 end up unused so cope with that case.
34218
34219 2016-01-12 Richard Biener <rguenther@suse.de>
34220
34221 PR tree-optimization/69157
34222 * tree-vect-stmts.c (vectorizable_mask_load_store): Check
34223 stmts def type only during analyze phase.
34224 (vectorizable_call): Likewise.
34225 (vectorizable_simd_clone_call): Likewise.
34226 (vectorizable_conversion): Likewise.
34227 (vectorizable_assignment): Likewise.
34228 (vectorizable_shift): Likewise.
34229 (vectorizable_operation): Likewise.
34230 (vectorizable_store): Likewise.
34231 (vectorizable_load): Likewise.
34232
34233 2016-01-12 Richard Biener <rguenther@suse.de>
34234
34235 PR tree-optimization/69174
34236 * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
34237 space.
34238 (vectorizable_load): Properly compute the number of loads needed
34239 for permuted strided SLP loads and do not spuriously assign
34240 to SLP_TREE_VEC_STMTS.
34241
34242 2016-01-12 Andris Pavenis <andris.pavenis@iki.fi>
34243
34244 * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
34245 (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
34246 (MD_EXEC_PREFIX): Remove.
34247 (MD_STARTFILE_PREFIX) Removee.
34248 (FILE_NAME_ABSOLUTE_P): Remove.
34249 (CPP_SPEC): Do not read macros from sys/version.h.
34250 (LINK_COMMAND_SPEC): Remove.
34251 (LOCAL_INCLUDE_DIR): Remove.
34252 (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
34253 (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
34254 (POST_LINK_SPEC): Define to invoke stubify after linker
34255 (LIBSTDCXX): Remove define
34256 (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
34257 (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
34258 (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
34259 (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
34260 (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
34261 (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
34262 (i386_djgpp_asm_named_section): Add propotype of new procedure
34263
34264 * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
34265 (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
34266 (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
34267 in config/i386/djgpp.h).
34268 (STANDARD_STARTFILE_PREFIX_2): Define identical to
34269 STANDARD_STARTFILE_PREFIX_1.
34270 (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
34271 (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
34272 installation errors.
34273 (MAX_OFILE_ALIGNMENT): Define to 128.
34274 (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
34275
34276 * config/i386/djgpp.c: New file. Add implementation of
34277 i386_djgpp_asm_named_section.
34278
34279 * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
34280
34281 * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
34282 Add rule for building djgpp.o.
34283
34284 2016-01-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
34285
34286 * config/rs6000/rs6000.c (v2df_reduction_p): New function.
34287 (rtx_is_swappable_p): Reductions are swappable.
34288 (insn_is_swappable_p): V2DF reductions are swappable.
34289
34290 2016-01-11 John David Anglin <danglin@gcc.gnu.org>
34291
34292 * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
34293 reloads for other unsupported memory operands.
34294
34295 2016-01-12 Kugan Vivekanandarajah <kuganv@linaro.org>
34296 Jim Wilson <jim.wilson@linaro.org>
34297
34298 PR target/69194
34299 * config/arm/arm-builtins.c (arm_expand_neon_args): Call
34300 copy_to_mode_reg instead of force_reg.
34301
34302 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
34303
34304 PR target/69225
34305 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
34306 TARGET_80387 is true.
34307
34308 2016-01-11 Jakub Jelinek <jakub@redhat.com>
34309
34310 PR target/69071
34311 * lra-eliminations.c (move_plus_up): Only move plus up
34312 if subreg of the constant can be simplified into constant
34313 and use the simplified subreg of the constant instead of
34314 the original constant.
34315
34316 * fold-const.c (fold_convertible_p): Don't return true
34317 for conversion of VECTOR_TYPE to same sized integral type.
34318 (fold_convert_loc): Fix up formatting. Fold conversion of
34319 VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
34320 instead of NOP_EXPR.
34321
34322 PR tree-optimization/69214
34323 * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
34324 innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
34325 Formatting fix.
34326
34327 PR tree-optimization/69207
34328 * tree-vect-slp.c (vect_get_constant_vectors): For
34329 VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
34330 fold_convertible_p to vector_type's element type, and always
34331 use VCE for non-VECTOR_BOOLEAN_TYPE_P.
34332
34333 2016-01-11 Richard Biener <rguenther@suse.de>
34334
34335 PR tree-optimization/69173
34336 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
34337 fixup the cycle if all stmts are in a pattern.
34338
34339 2016-01-11 Uros Bizjak <ubizjak@gmail.com>
34340
34341 PR middle-end/68999
34342 * alias.c (base_alias_check): Move check for addresses with
34343 alignment ANDs before the call for compare_base_decls.
34344 (memrefs_conflict_p): Return -1 for different decls
34345 that went through alignment adjustments.
34346
34347 2016-01-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34348
34349 PR rtl-optimization/68796
34350 * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
34351 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
34352 and QImode comparisons against zero with CC_NZmode.
34353 * config/aarch64/iterators.md (short_mask): New mode_attr.
34354
34355 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
34356
34357 * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
34358 (<avx512>_store<mode>_mask): Likewise.
34359
34360 2016-01-11 Bernd Schmidt <bschmidt@redhat.com>
34361 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34362
34363 PR rtl-optimization/68841
34364 * ifcvt.c (struct noce_if_info): Add orig_x field.
34365 (bbs_ok_for_cmove_arith): Add to_rename parameter.
34366 Don't record conflicts on to_rename if it's present.
34367 Allow memory destinations in sets.
34368 (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
34369 blocks, passing orig_x to the checks.
34370 (noce_process_if_block): Set if_info->orig_x appropriately.
34371
34372 2016-01-11 Tom de Vries <tom@codesourcery.com>
34373
34374 PR tree-optimization/69069
34375 * tree-parloops.c (create_parallel_loop): Add missing phi args.
34376
34377 2016-01-11 Yuri Rumyantsev <ysrumyan@gmail.com>
34378
34379 PR rtl-optimization/68920
34380 * config/i386/i386.c (ix86_option_override_internal): Restrict number
34381 of conditional moves for RTL if-conversion to 1 for
34382 TARGET_ONE_IF_CONV_INSN.
34383 * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
34384 * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
34385 * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
34386 parameter to restirct number of conditional moves for
34387 RTL if-conversion.
34388 * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
34389 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
34390 conditionl moves.
34391
34392 2016-01-11 Alexandre Oliva <aoliva@redhat.com>
34393
34394 PR bootstrap/69123
34395 * var-tracking.c (drop_overlapping_mem_locs): Operate on all
34396 onepart vars. Fix typo in comment. Fix reversed condition in
34397 unshare test.
34398 (dataflow_set_remove_mem_locs): Operate on all onepart vars.
34399
34400 PR bootstrap/69123
34401 * var-tracking.c (dump_onepart_variable_differences): New.
34402 (dataflow_set_different): If a detailed dump is requested,
34403 delay early returns and dump differences between onepart
34404 variables present before and after, and added variables.
34405
34406 2016-01-11 Ilya Enkovich <enkovich.gnu@gmail.com>
34407
34408 PR target/69010
34409 * expr.c (expand_expr_real_1): For boolean vector constants
34410 with a scalar mode use const_scalar_mask_from_tree.
34411 (const_scalar_mask_from_tree): New.
34412 * optabs.c (expand_vec_cond_mask_expr): Use mask mode
34413 assigned to a mask type to handle constants.
34414
34415 2016-01-11 Martin Jambor <mjambor@suse.cz>
34416
34417 PR ipa/69044
34418 * ipa-cp.c (estimate_local_effects): Do not clone for removal of
34419 useless parameters if we cannot change function signature.
34420
34421 2016-01-11 Martin Jambor <mjambor@suse.cz>
34422
34423 PR ipa/66616
34424 * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
34425 flag.
34426
34427 2016-01-11 Tom de Vries <tom@codesourcery.com>
34428
34429 PR tree-optimization/69109
34430 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
34431 latch with phi.
34432
34433 2016-01-11 Tom de Vries <tom@codesourcery.com>
34434
34435 PR tree-optimization/69108
34436 * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
34437 res is not used in a phi.
34438
34439 2016-01-11 Yury Gribov <y.gribov@samsung.com>
34440
34441 PR 67425
34442 * common.opt (frandom-seed): Fix parameter name.
34443 * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
34444
34445 2016-01-11 Tom de Vries <tom@codesourcery.com>
34446
34447 PR tree-optimization/69058
34448 * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
34449 not supported.
34450
34451 2016-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
34452
34453 * config/arc/arc.opt (mdiv-rem): Add period to the end.
34454 (mcode-density): Likewise.
34455
34456 2016-01-10 Tom de Vries <tom@codesourcery.com>
34457
34458 PR tree-optimization/69062
34459 * tree-parloops.c (loop_has_phi_with_address_arg): New function.
34460 (parallelize_loops): Don't paralelize loop that has phi with address
34461 arg.
34462
34463 2016-01-10 Tom de Vries <tom@codesourcery.com>
34464
34465 PR tree-optimization/69039
34466 * tree-parloops.c (try_create_reduction_list): Only allow single exit
34467 phi for reduction.
34468
34469 2016-01-09 John David Anglin <danglin@gcc.gnu.org>
34470
34471 PR middle-end/68743
34472 * match.pd: Require target has function_c99_misc before doing
34473 truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
34474
34475 2016-01-09 Gerald Pfeifer <gerald@pfeifer.com>
34476
34477 * configure.ac (isl_options_set_schedule_serialize_sccs): Also
34478 use GMPINC.
34479 * configure: Regenerate.
34480
34481 2016-01-09 Jakub Jelinek <jakub@redhat.com>
34482
34483 PR middle-end/50865
34484 PR tree-optimization/69097
34485 * fold-const.h (expr_not_equal_to): New prototype.
34486 * fold-const.c: Include stringpool.h and tree-ssanames.h.
34487 (expr_not_equal_to): New function.
34488 * match.pd (X % -Y is the same as X % Y): Don't optimize
34489 unless X is known not to be equal to minimum or Y is known
34490 not to be equal to -1.
34491 * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
34492 fold TRUNC_MOD_EXPR if the second argument is not a power of two.
34493 (simplify_stmt_using_ranges): Adjust caller.
34494 (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
34495 substitute_and_fold.
34496
34497 2016-01-09 Jan Hubicka <hubicka@ucw.cz>
34498
34499 * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
34500 w/o DECL_NAME.
34501
34502 2016-01-08 Jakub Jelinek <jakub@redhat.com>
34503
34504 PR tree-optimization/69167
34505 * gimple-fold.c (replace_stmt_with_simplification): Also punt if
34506 new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
34507 ops[0] comparison.
34508 * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
34509
34510 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
34511 Richard Biener <rguenther@suse.de>
34512
34513 PR tree-optimization/68707
34514 * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
34515 instances that can be handled via vect_load_lanes.
34516
34517 2016-01-08 Uros Bizjak <ubizjak@gmail.com>
34518
34519 * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
34520 if we can't determine address equivalence.
34521 * alias.c (compare_base_decl): Update for changed return value of
34522 symtab_node::equal_address_to.
34523
34524 2016-01-08 Jason Merrill <jason@redhat.com>
34525
34526 PR c++/68983
34527 PR c++/67557
34528 * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
34529 * expr.c (store_field): Not here.
34530 * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
34531 call with TREE_ADDRESSABLE type.
34532 * tree-cfg.c (verify_gimple_call): Adjust.
34533
34534 2016-01-08 Olivier Hainque <hainque@adacore.com>
34535
34536 * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
34537 libc_internal.
34538
34539 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
34540
34541 * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
34542 (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
34543 (reduc_smin_v2sf): Rename to...
34544 (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
34545 (reduc_splus_v2sf): Rename to...
34546 (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
34547
34548 2016-01-08 Jakub Jelinek <jakub@redhat.com>
34549
34550 PR tree-optimization/69162
34551 * gimplify.c (gimplify_va_arg_expr): Encode original type of
34552 valist argument in another argument.
34553 (gimplify_modify_expr): Adjust for the above change. Cleanup.
34554 * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
34555 to determine the va_list type, build a MEM_REF instead of
34556 build_fold_indirect_ref.
34557
34558 PR tree-optimization/69172
34559 * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
34560 gimple_build.
34561
34562 2016-01-08 Thomas Preud'homme <thomas.preudhomme@arm.com>
34563
34564 PR tree-optimization/67781
34565 * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
34566 and cmpnop in two steps: first the ones not accessed in original
34567 gimple expression in a endian independent way and then the ones not
34568 accessed in the final result in an endian-specific way.
34569
34570 2016-01-08 Jakub Jelinek <jakub@redhat.com>
34571
34572 PR tree-optimization/69083
34573 * tree-vect-slp.c (vect_get_constant_vectors): For
34574 VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
34575 element type. If op is fold_convertible_p to vector_type's element
34576 type, use NOP_EXPR instead of VCE.
34577
34578 2016-01-08 Segher Boessenkool <segher@kernel.crashing.org>
34579
34580 PR rtl-optimization/67778
34581 PR rtl-optimization/68634
34582 PR rtl-optimization/68909
34583 * shrink-wrap.c (try_shrink_wrapping): Add comment. Don't pop
34584 block from the stack until done with it. Remove a superfluous
34585 bitmap set. Remove a superfluous bitmap test.
34586
34587 2016-01-07 Martin Sebor <msebor@redhat.com>
34588
34589 PR c/68966
34590 * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
34591 constraint on the type of arguments.
34592
34593 2016-01-07 Andreas Tobler <andreast@gcc.gnu.org>
34594
34595 * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
34596 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
34597 unaligned_access on the gcc_options set.
34598 * config/arm/arm.c (arm_option_override_internal): Use
34599 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
34600
34601 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
34602
34603 PR target/69140
34604 * config/i386/i386.c (ix86_frame_pointer_required): Enable
34605 frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
34606
34607 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
34608
34609 Revert
34610 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
34611
34612 PR target/69140
34613 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
34614 depending on frame_pointer_needed before remaining integer and SSE
34615 registers are saved.
34616
34617 2016-01-07 Sandra Loosemore <sandra@codesourcery.com>
34618
34619 PR 1078
34620 * doc/extend.texi (Nvidia PDX Function Attributes): New section.
34621
34622 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
34623
34624 PR target/69171
34625 * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
34626 Use the "xBm" constraint.
34627 (float<sseintvecmodelower><mode>2<mask_name><round_name):
34628 Likewise.
34629 (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
34630 (sse_cvtsi2ssq<round_name>): Likewise.
34631 (sse_cvtss2si<round_name>): Likewise.
34632 (sse_cvtss2siq<round_name>): Likewise.
34633 (sse2_cvtsi2sdq<round_name>): Likewise.
34634 (sse2_cvtsd2si<round_name>): Likewise.
34635 (sse2_cvtsd2siq<round_name>): Likewise.
34636 * config/i386/subst.md (round_nimm_scalar_predicate): New
34637 predicate.
34638
34639 2015-12-15 Bernd Schmidt <bschmidt@redhat.com>
34640
34641 PR middle-end/67639
34642 * varasm.c (make_decl_rtl): Mark invalid register vars as
34643 DECL_EXTERNAL.
34644
34645 PR rtl-optimization/66206
34646 * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
34647 All callers changed.
34648
34649 2016-01-07 Jakub Jelinek <jakub@redhat.com>
34650
34651 PR tree-optimization/69141
34652 * tree-ssa-pre.c: Include langhooks.h.
34653 (eliminate_dom_walker::before_dom_children): Use
34654 lang_hooks.decl_printable_name instead of
34655 cgraph_node::get ()->name ().
34656
34657 PR middle-end/68960
34658 * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
34659 it and DECL_ALIGN too.
34660
34661 2016-01-06 Robert Suchanek <robert.suchanek@imgtec.com>
34662
34663 * config/mips/mips-ftypes.def: Sort to lexicographical order.
34664
34665 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
34666
34667 PR target/69140
34668 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
34669 depending on frame_pointer_needed before remaining integer and SSE
34670 registers are saved.
34671
34672 2015-01-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
34673
34674 * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
34675 mode iterator with VSX_M2.
34676 (*p9_vecstore_<mode>): Likewise.
34677 (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
34678 (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
34679 (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
34680 (define_split for VSX_LE128 stores): Likewise.
34681 (define_peephole2 for TImode LE swaps): Likewise.
34682 (define_split for VSX_LE128 post-reload stores): Likewise.
34683
34684 2016-01-06 Marek Polacek <polacek@redhat.com>
34685
34686 PR sanitizer/69099
34687 * convert.c (convert_to_integer_1): Adjust call to
34688 ubsan_instrument_float_cast. Use NULL_TREE instead of NULL.
34689 * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter. Use
34690 EXPR instead of ARG.
34691 * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
34692
34693 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
34694
34695 PR 1078
34696 * doc/extend.texi (RL78 Variable Attributes): New section.
34697
34698 2016-01-05 Marek Polacek <polacek@redhat.com>
34699
34700 PR c/69104
34701 * builtins.c (get_memmodel): Use expansion point location rather than
34702 the input location. Call warning_at rather than warning.
34703 (expand_builtin_atomic_compare_exchange): Likewise.
34704 (expand_builtin_atomic_load): Likewise.
34705 (expand_builtin_atomic_store): Likewise.
34706 (expand_builtin_atomic_clear): Likewise.
34707
34708 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
34709
34710 PR target/68991
34711 * config/i386/i386.c (ix86_expand_vector_logical_operator):
34712 Replace nonimmediate_operand with vector_operand.
34713 * config/i386/predicates.md (vector_operand): New predicate.
34714 (general_vector_operand): Replace nonimmediate_operand with
34715 vector_operand.
34716 * config/i386/sse.md: Replace nonimmediate_operand with
34717 vector_operand and m constraint with Bm constraint on SSE
34718 patterns with 16-byte memory operand.
34719 * config/i386/subst.md (round_nimm_predicate): Replace
34720 nonimmediate_operand with vector_operand.
34721 (round_saeonly_nimm_predicate): Likewise.
34722 (round_saeonly_nimm_scalar_predicate): New.
34723
34724 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
34725
34726 PR target/68991
34727 * config/i386/constraints.md (Bm): New constraint.
34728 * config/i386/predicates.md (vector_memory_operand): New
34729 predicate.
34730 * config/i386/sse.md: Replace xm with xBm in plusminus and
34731 any_logic patterns.
34732
34733 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
34734
34735 PR 1078
34736 * doc/extend.texi (V850 Function Attributes): New section.
34737 (V850 Variable Attributes): New section.
34738
34739 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
34740
34741 PR 1078
34742 * doc/extend.texi (MicroBlaze Function Attributes): Document
34743 interrupt_handler and fast_interrupt attributes.
34744
34745 2016-01-05 Sergei Trofimovich <siarheit@google.com>
34746
34747 PR other/60465
34748 * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
34749 for local symbolic operands.
34750 * config/ia64/predicates.md (local_symbolic_operand64): New
34751 predicate.
34752
34753 2016-01-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34754
34755 PR rtl-optimization/68651
34756 * combine.c (combine_simplify_rtx): Canonicalize x + x into
34757 x << 1.
34758
34759 2016-01-05 Nathan Sidwell <nathan@acm.org>
34760
34761 * alias.c (compare_base_decls): Use symtab_node::get.
34762
34763 2016-01-05 Nick Clifton <nickc@redhat.com>
34764
34765 PR target/68770
34766 * ira-costs.c (copy_cost): Initialise the t_icode field of the
34767 secondary_reload_info structure.
34768
34769 PR target/66655
34770 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
34771 decls if weak support is available.
34772
34773 2016-01-04 Martin Sebor <msebor@redhat.com>
34774
34775 * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
34776
34777 2016-01-04 Michael Meissner <meissner@linux.vnet.ibm.com>
34778
34779 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
34780 OPTION_MASK_P9_DFORM.
34781
34782 * config/rs6000/constraints.md (wo constraint): New constraint for
34783 ISA 3.0 (power9).
34784
34785 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
34786 for wo constraint.
34787 (rs6000_init_hard_regno_mode_ok): Likewise.
34788
34789 * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
34790 wo constraint.
34791
34792 * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
34793 expanders not to have constraints. Add support for ISA 3.0 xxperm
34794 instruction. Add support for fusing xxlor with xxperm.
34795 (altivec_vperm_<mode>_internal): Likewise.
34796 (altivec_vperm_v8hiv16qi): Likewise.
34797 (altivec_vperm_<mode>v16q): Likewise.
34798 (altivec_vperm_<mode>_uns): Likewise.
34799 (vperm_v8hiv4si): Likewise.
34800 (vperm_v16qiv8hi): Likewise.
34801
34802 * doc/md.texi (RS/6000 constraints): Document wo constraint.
34803
34804 2016-01-04 Jakub Jelinek <jakub@redhat.com>
34805
34806 Update copyright years.
34807
34808 * gcc.c (process_command): Update copyright notice dates.
34809 * gcov-dump.c (print_version): Ditto.
34810 * gcov.c (print_version): Ditto.
34811 * gcov-tool.c (print_version): Ditto.
34812 * gengtype.c (create_file): Ditto.
34813 * doc/cpp.texi: Bump @copying's copyright year.
34814 * doc/cppinternals.texi: Ditto.
34815 * doc/gcc.texi: Ditto.
34816 * doc/gccint.texi: Ditto.
34817 * doc/gcov.texi: Ditto.
34818 * doc/install.texi: Ditto.
34819 * doc/invoke.texi: Ditto.
34820
34821 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
34822
34823 * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
34824 modes larger than TImode as TImode if NEON is not enabled.
34825
34826 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
34827
34828 PR target/69100
34829 * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
34830 mode for %f0-%f31 only if TARGET_FPU.
34831
34832 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
34833
34834 PR target/69072
34835 * config/sparc/sparc.c (scan_record_type): Take into account subfields
34836 to compute the PACKED_P predicate.
34837 (function_arg_record_value): Minor tweaks.
34838
34839 2016-01-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
34840
34841 * doc/install.texi (--with-multilib-list): Describe the meaning of the
34842 option for arm*-*-* targets.
34843
34844 2016-01-03 Sandra Loosemore <sandra@codesourcery.com>
34845
34846 * doc/extend.texi (Common Function Attributes): Move docs for
34847 MSP430-specific attributes to....
34848 (MSP430 Function Attributes): ...here. Delete the redundant
34849 entries and copy-edit the remaining text.
34850 (MSP430 Variable Attributes): Use uniform format for index
34851 entries and add a cross-reference to the corresponding function
34852 attribute docs.
34853
34854 2016-01-03 Vladimír Čunát <vcunat@gmail.com>
34855
34856 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
34857 -finite-math typo.
34858 (x86 Options): Likewise.
34859
34860 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
34861
34862 PR 1078
34863
34864 * extend.texi (Common Function Attributes) <no_stack_limit>: New.
34865 * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
34866 to corresponding attribute.
34867
34868 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
34869
34870 * doc/extend.texi (Common Function Attributes) <noplt>: Move
34871 to correct alphabetization of table. Copy-edit and correct
34872 markup.
34873 <stack_protect>: Likewise.
34874 <target_clones>: Likewise.
34875 <simd>: Likewise.
34876 * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
34877 Correct punctuation.
34878 (Code Gen Options) <-fno-plt>: Copy-edit.
34879
34880 2016-01-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
34881
34882 PR target/68917
34883 * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
34884 SI values. Explicitly convert SI to DI and vice-versa.
34885
34886 2016-01-01 Jakub Jelinek <jakub@redhat.com>
34887
34888 PR tree-optimization/69070
34889 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
34890 REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
34891
34892 PR sanitizer/69055
34893 * ubsan.c (ubsan_instrument_float_cast): Call
34894 initialize_sanitizer_builtins.
34895
34896 PR target/69015
34897 * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
34898 \f
34899 Copyright (C) 2016 Free Software Foundation, Inc.
34900
34901 Copying and distribution of this file, with or without modification,
34902 are permitted in any medium without royalty provided the copyright
34903 notice and this notice are preserved.