re PR tree-optimization/71647 (aligned(x:32) in #pragma omp simd does not work)
[gcc.git] / gcc / ChangeLog
1 2016-06-24 Jakub Jelinek <jakub@redhat.com>
2
3 PR tree-optimization/71647
4 * omp-low.c (lower_rec_input_clauses): Convert
5 omp_clause_aligned_alignment (c) to size_type_node for the
6 last argument of __builtin_assume_aligned.
7
8 2016-06-24 Martin Liska <mliska@suse.cz>
9
10 * cfgloop.c (flow_loop_dump): Dump average number of loop iterations.
11 * cfgloop.h: Change 'struct loop' to 'const struct loop' for a
12 few functions.
13 * cfgloopanal.c (expected_loop_iterations_unbounded): Set a new
14 argument to true if the expected number of iterations is
15 loop-based.
16
17 2016-06-24 Uros Bizjak <ubizjak@gmail.com>
18
19 * configure.ac (HAVE_AS_GOTOF_IN_DATA): Use $as_ix86_gas_32_opt to
20 assemble for 32bit target.
21 (HAVE_AS_IX86_TLSGDPLT): Use $as_ix86_gas_32_opt to assemble
22 and $ld_ix86_gld_32_opt to link for 32bit target.
23 (HAVE_AS_IX86_TLSLDMPLT): Ditto.
24 * configure: Regenerate.
25
26 2016-06-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27
28 * config/arm/arm.c (int_log2): Delete definition and prototype.
29 (shift_op): Use exact_log2 instead of int_log2.
30 (vfp3_const_double_for_fract_bits): Likewise.
31
32 2016-06-24 Jakub Jelinek <jakub@redhat.com>
33
34 * internal-fn.c (expand_arith_set_overflow): New function.
35 (expand_addsub_overflow, expand_neg_overflow, expand_mul_overflow):
36 Use it.
37 (expand_arith_overflow_result_store): Likewise. Handle precision
38 smaller than mode precision.
39 * tree-vrp.c (extract_range_basic): For imag part, handle
40 properly signed 1-bit precision result.
41 * doc/extend.texi (__builtin_add_overflow): Document that last
42 argument can't be pointer to enumerated or boolean type.
43 (__builtin_add_overflow_p): Document that last argument can't
44 have enumerated or boolean type.
45
46 2016-06-23 Michael Meissner <meissner@linux.vnet.ibm.com>
47 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
48
49 * config/rs6000/predicates.md (splat_input_operand): Rework.
50 Don't allow constants, since the insns that use this predicate
51 don't support constants. Constants are handled by other insns
52 that are created via combine. During and after register
53 allocation, only allow indexed or indirect addresses, and not
54 general addresses. Only allow modes supported by the hardware.
55 * config/rs6000/rs6000.c (xxsplitb_constant_p): Update usage
56 comment. Move check for using VSPLTIS<x> to a common location,
57 instead of doing it in two different places.
58
59 2016-06-23 Jocelyn Mayer <l_indien@magic.fr>
60
61 * config/i386/driver-i386.c (host_detect_local_cpu): Set
62 PROCESSOR_PENTIUMPRO for signature_CENTAUR_ebx family >= 9.
63 <case PROCESSOR_PENTIMUMPRO>: Pass c7 or nehemiah for
64 signature_CENTAUR_ebx.
65
66 2016-06-23 H.J. Lu <hongjiu.lu@intel.com>
67
68 PR target/66232
69 PR target/67400
70 * configure.ac (as_ix86_tls_ldm_opt): Renamed to ...
71 (as_ix86_gas_32_opt): This.
72 (ld_ix86_tls_ldm_opt): Renamed to ...
73 (ld_ix86_gld_32_opt): This.
74 (R_386_TLS_LDM reloc): Updated.
75 (R_386_GOT32X reloc): New assembler/linker check.
76 (HAVE_AS_IX86_GOT32X): New. Defined to 1 if 32-bit assembler and
77 linker support "jmp *_start@GOT" and "cmpl $0, bar@GOT". Otherise,
78 defined to 0.
79 * config.in: Regenerated.
80 * configure: Likewise.
81 * config/i386/i386.c (ix86_force_load_from_GOT_p): Return
82 true if HAVE_AS_IX86_GOT32X is 1 in 32-bit mode.
83 (ix86_legitimate_address_p): Allow UNSPEC_GOT for -fno-plt
84 if ix86_force_load_from_GOT_p returns true.
85 (ix86_print_operand_address_as): Also support UNSPEC_GOT if
86 ix86_force_load_from_GOT_p returns true.
87 (ix86_expand_move): Generate UNSPEC_GOT in 32-bit mode to load
88 the external function address via the GOT slot.
89 (ix86_nopic_noplt_attribute_p): Check both TARGET_64BIT and
90 HAVE_AS_IX86_GOT32X before returning false.
91 (ix86_output_call_insn): Generate "%!jmp/call\t*%p0@GOT" in
92 32-bit mode if ix86_nopic_noplt_attribute_p returns true.
93
94 2016-06-23 Eric Botcazou <ebotcazou@adacore.com>
95
96 * tree-inline.c (remap_decl): Preserve DECL_ORIGINAL_TYPE invariant.
97
98 2016-06-23 Andi Kleen <ak@linux.intel.com>
99
100 * Makefile.in: Regenerate.
101 * doc/install.texi: Document autoprofiledbootstrap.
102
103 2016-06-23 Andi Kleen <ak@linux.intel.com>
104
105 * config/i386/gcc-auto-profile: New file.
106
107 2016-06-23 Martin Liska <mliska@suse.cz>
108
109 PR middle-end/71619
110 * predict.c (predict_loops): Revert the hunk that was removed
111 in r237103.
112
113 2016-06-23 Jakub Sejdak <jakub.sejdak@phoesys.com>
114
115 * config.gcc: Add support for arm*-*-phoenix* targets.
116 * config/arm/t-phoenix: New.
117 * config/phoenix.h: New.
118
119 2016-06-23 Uros Bizjak <ubizjak@gmail.com>
120 H.J. Lu <hongjiu.lu@intel.com>
121
122 PR target/67400
123 * config/i386/i386-protos.h (ix86_force_load_from_GOT_p): New.
124 * config/i386/i386.c (ix86_force_load_from_GOT_p): New function.
125 (ix86_legitimate_constant_p): Do not allow UNSPEC_GOTPCREL if
126 ix86_force_load_from_GOT_p returns true.
127 (ix86_legitimate_address_p): Allow UNSPEC_GOTPCREL if
128 ix86_force_load_from_GOT_p returns true.
129 (ix86_print_operand_address_as): Support UNSPEC_GOTPCREL if
130 ix86_force_load_from_GOT_p returns true.
131 (ix86_expand_move): Load the external function address via the
132 GOT slot if ix86_force_load_from_GOT_p returns true.
133 * config/i386/predicates.md (x86_64_immediate_operand): Return
134 false for SYMBOL_REFs where ix86_force_load_from_GOT_p returns true.
135 (x86_64_zext_immediate_operand): Ditto.
136
137 2016-06-22 Uros Bizjak <ubizjak@gmail.com>
138
139 * config/i386/i386.c (ix86_expand_move): Simplify SYMBOL_REF handling.
140
141 2016-06-22 David Malcolm <dmalcolm@redhat.com>
142
143 PR c/70339
144 * diagnostic-core.h (pedwarn_at_rich_loc): New prototype.
145 * diagnostic.c (pedwarn_at_rich_loc): New function.
146 * spellcheck.h (best_match::best_match): Add a
147 "best_distance_so_far" optional parameter.
148 (best_match::set_best_so_far): New method.
149 (best_match::get_best_distance): New accessor.
150 (best_match::get_best_candidate_length): New accessor.
151
152 2016-06-22 Nick Clifton <nickc@redhat.com>
153
154 * dwarf2out.c (scompare_loc_descriptor): Use SCALAR_INT_MODE_P() in
155 place of GET_MODE_CLASS() == MODE_INT, so that partial integer
156 modes are accepted as well.
157 (ucompare_loc_descriptor): Likewise.
158 (minmax_loc_descriptor): Likewise.
159 (clz_loc_descriptor): Likewise.
160 (popcount_loc_descriptor): Likewise.
161 (bswap_loc_descriptor): Likewise.
162 (rotate_loc_descriptor): Likewise.
163 (mem_loc_descriptor): Likewise.
164 (loc_descriptor): Likewise.
165
166 2016-06-22 David Malcolm <dmalcolm@redhat.com>
167
168 * common.opt (fdiagnostics-parseable-fixits): New option.
169 * diagnostic.c: Include "selftest.h".
170 (print_escaped_string): New function.
171 (print_parseable_fixits): New function.
172 (diagnostic_report_diagnostic): Call print_parseable_fixits.
173 (selftest::assert_print_escaped_string): New function.
174 (ASSERT_PRINT_ESCAPED_STRING_STREQ): New macro.
175 (selftest::test_print_escaped_string): New function.
176 (selftest::test_print_parseable_fixits_none): New function.
177 (selftest::test_print_parseable_fixits_insert): New function.
178 (selftest::test_print_parseable_fixits_remove): New function.
179 (selftest::test_print_parseable_fixits_replace): New function.
180 (selftest::diagnostic_c_tests): New function.
181 * diagnostic.h (struct diagnostic_context): Add field
182 "parseable_fixits_p".
183 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
184 -fdiagnostics-parseable-fixits.
185 (-fdiagnostics-parseable-fixits): New option.
186 * opts.c (common_handle_option): Handle
187 -fdiagnostics-parseable-fixits.
188 * selftest-run-tests.c (selftest::run_tests): Call
189 selftest::diagnostic_c_tests.
190 * selftest.h (selftest::diagnostic_c_tests): New prototype.
191
192 2016-06-22 Ilya Enkovich <ilya.enkovich@intel.com>
193
194 PR tree-optimization/71488
195 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Support
196 comparison of boolean vectors.
197 * tree-vect-stmts.c (vectorizable_comparison): Vectorize comparison
198 of boolean vectors using bitwise operations.
199
200 2016-06-22 Andreas Schwab <schwab@suse.de>
201
202 * config/aarch64/aarch64-protos.h (aarch64_elf_asm_named_section):
203 Remove declaration.
204
205 2016-06-22 Eric Botcazou <ebotcazou@adacore.com>
206
207 * function.c (assign_parm_setup_reg): Prevent sharing in another case.
208
209 2016-06-22 Bernd Edlinger <bernd.edlinger@hotmail.de>
210
211 * config/i386/i386.c (print_reg): Emit an error message on attempt to
212 print FLAGS_REG.
213
214 2016-06-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
215
216 * config/arm/arm.c (arm_cortex_a73_tune): New struct.
217 * config/arm/arm-cores.def (cortex-a73): New entry.
218 (cortex-a73.cortex-a35): Likewise.
219 (cortex-a73.cortex-a53): Likewise.
220 * config/arm/arm-tables.opt: Regenerate.
221 * config/arm/arm-tune.md: Likewise.
222 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle mcpu=cortex-a73,
223 mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
224 * config/arm/t-aprofile: Handle mcpu=cortex-a73,
225 mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
226 * doc/invoke.texi (ARM Options): Document cortex-a73,
227 cortex-a73.cortex-a35 and cortex-a73.cortex-a53.
228
229 2016-06-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
230
231 * config/aarch64/aarch64.c (cortexa73_tunings): New struct.
232 * config/aarch64/aarch64-cores.def (cortex-a73): New entry.
233 (cortex-a73.cortex-a35): Likewise.
234 (cortex-a73.cortex-a53): Likewise.
235 * config/aarch64/aarch64-tune.md: Regenerate.
236 * doc/invoke.texi (AArch64 Options): Document cortex-a73,
237 cortex-a73.cortex-a35 and cortex-a73.cortex-a53 arguments to
238 -mcpu and -mtune.
239
240 2016-06-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
241
242 * configure.ac (gcc_cv_as_compress_debug): Remove
243 --compress-debug-sections as extra as switch.
244 Handle gas --compress-debug-sections=type.
245 (gcc_cv_ld_compess_debug): Remove bogus ld_date check.
246 Handle gld --compress-debug-sections=type.
247 * configure: Regenerate.
248
249 2016-06-21 Andrew Burgess <andrew.burgess@embecosm.com>
250
251 * bb-reorder.c (pass_partition_blocks::gate): Update comment.
252
253 2016-06-21 John David Anglin <danglin@gcc.gnu.org>
254
255 * gcov-tool.c (profile_rewrite): Use int64_t instead of long long.
256 (do_rewrite): likewise.
257
258 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
259
260 * common/config/mep/mep-common.c: Remove.
261 * config.gcc: Remove mep-* support.
262 * config/mep/constraints.md: Remove.
263 * config/mep/default.h: Remove.
264 * config/mep/intrinsics.h: Remove.
265 * config/mep/intrinsics.md: Remove.
266 * config/mep/ivc2-template.h: Remove.
267 * config/mep/mep-c5.cpu: Remove.
268 * config/mep/mep-core.cpu: Remove.
269 * config/mep/mep-default.cpu: Remove.
270 * config/mep/mep-ext-cop.cpu: Remove.
271 * config/mep/mep-intrin.h: Remove.
272 * config/mep/mep-ivc2.cpu: Remove.
273 * config/mep/mep-pragma.c: Remove.
274 * config/mep/mep-protos.h: Remove.
275 * config/mep/mep.c: Remove.
276 * config/mep/mep.cpu: Remove.
277 * config/mep/mep.h: Remove.
278 * config/mep/mep.md: Remove.
279 * config/mep/mep.opt: Remove.
280 * config/mep/predicates.md: Remove.
281 * config/mep/t-mep: Remove.
282 * doc/install.texi: Remove mep-* documentation.
283 * doc/md.texi: Likewise.
284
285 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
286
287 * config.gcc: Remove support for avr-rtems.
288 * config/avr/gen-avr-mmcu-specs.c: Likewise.
289 * config/avr/rtems.h: Remove.
290 * config/avr/t-rtems: Remove.
291
292 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
293
294 * config.gcc: Remove m32r-rtems support.
295 * config/m32r/rtems.h: Remove.
296
297 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
298
299 * config.gcc: Remove h8300-rtems support.
300 * config/h8300/rtems.h: Remove.
301 * config/h8300/t-rtems: Remove.
302
303 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
304
305 * config.gcc: Remove support for knetbsd.
306 * configure.ac: Likewise.
307 * config/i386/knetbsd-gnu.h: Remove. * config/i386/knetbsd-gnu64.h: Remove.
308 * config/knetbsd-gnu.h: Remove.
309 * configure: Regenerate.
310
311 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
312
313 * config.gcc: Remove support for openbsd 2 and 3.
314 * config/openbsd-oldgas.h: Remove.
315
316 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
317
318 * config.gcc: Remove interix support.
319 * config/i386/i386-interix.h: Remove.
320 * config/i386/interix.opt: Remove.
321 * config/i386/t-interix: Remove.
322 * configure: Regenerate.
323 * configure.ac: Remove interix support.
324 * doc/install.texi: Remove interix documentation.
325
326 2016-06-21 Kelvin Nilsen <kelvin@gcc.gnu.org>
327
328 * config/rs6000/rs6000.h: Add conditional preprocessing directives
329 to disable Power9-specific compiler features if HAVE_AS_POWER9 is
330 not defined.
331
332 2016-06-21 Eric Botcazou <ebotcazou@adacore.com>
333
334 * tree.c (verify_type_variant): Skip TYPE_SIZE and TYPE_SIZE_UNIT if
335 they are both PLACEHOLDER_EXPRs.
336
337 2016-06-21 Michael Meissner <meissner@linux.vnet.ibm.com>
338
339 * stor-layout.c (layout_type): Move setting complex MODE to
340 layout_type, instead of setting it ahead of time by the caller.
341 * tree.c (build_complex_type): Likewise.
342
343 2016-06-21 Martin Liska <mliska@suse.cz>
344
345 * predict.c (force_edge_cold): Replace imposisble with
346 impossible.
347
348 2016-06-21 Ilya Verbin <ilya.verbin@intel.com>
349
350 * config/i386/i386.c (ix86_emit_swsqrtsf): Emit vrsqrt28ps.
351 * config/i386/sse.md (define_expand "rsqrtv16sf2"): New.
352
353 2016-06-21 Ilya Verbin <ilya.verbin@intel.com>
354
355 * config/i386/i386.c (ix86_emit_swdivsf): Emit vrcp28ps.
356
357 2016-06-21 H.J. Lu <hongjiu.lu@intel.com>
358 Ilya Enkovich <ilya.enkovich@intel.com>
359
360 PR target/71549
361 * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
362 New member function to convert V1TImode register to SUBREG
363 TImode in debug insn.
364 (timode_scalar_chain::convert_insn): Call fix_debug_reg_uses
365 after changing register mode to V1TImode.
366
367 2016-06-21 Virendra Pathak <virendra.pathak@broadcom.com>
368
369 * config/aarch64/aarch64-cores.def (vulcan): New core.
370 * config/aarch64/aarch64-tune.md: Regenerate.
371 * doc/invoke.texi: Document vulcan as an available option.
372
373 2016-06-21 Eric Botcazou <ebotcazou@adacore.com>
374
375 * cse.c (canon_asm_operands): New function extracted from...
376 (canonicalize_insn): ...here. Call it to canonicalize an ASM_OPERANDS
377 either standalone or member of a PARALLEL.
378
379 2016-06-21 Georg-Johann Lay <avr@gjlay.de>
380
381 PR target/30417
382 * config/avr/gen-avr-mmcu-specs.c (print_mcu):
383 [*link_data_start]: Wrap -Tdata into %{!Tdata:...}.
384 [*link_text_start]: Wrap -Ttext into %{!Ttext:...}.
385
386 2016-06-21 Georg-Johann Lay <avr@gjlay.de>
387
388 PR target/71103
389 * config/avr/avr.md (movqi): Only handle loading subreg:qi of
390 constant addresses if can_create_pseudo_p.
391
392 2016-06-21 Jakub Jelinek <jakub@redhat.com>
393
394 PR tree-optimization/71588
395 * tree-ssa-strlen.c (valid_builtin_call): New function.
396 (adjust_last_stmt, handle_builtin_memset, strlen_optimize_stmt): Use
397 it.
398
399 2016-06-20 Jakub Jelinek <jakub@redhat.com>
400
401 PR middle-end/71581
402 * tree-ssa-uninit.c (warn_uninit): If EXPR and VAR are NULL,
403 see if T isn't anonymous SSA_NAME with COMPLEX_EXPR created
404 for conversion of scalar user var to complex type and use the
405 underlying SSA_NAME_VAR in that case. If EXPR is still NULL,
406 punt.
407
408 PR rtl-optimization/71591
409 * toplev.c (toplev::run_self_tests): If no_backend, complain and
410 don't run any tests.
411
412 2016-06-20 Hans-Peter Nilsson <hp@axis.com>
413
414 PR target/71571
415 * config/cris/cris.c (cris_asm_output_mi_thunk): Add missing "ba"
416 delay-slot "nop" for PIC with CRIS v32. Also add missing leading
417 space for PIC with non-v32 and the common non-PIC "jump".
418
419 2016-06-20 Jakub Jelinek <jakub@redhat.com>
420
421 PR target/71559
422 * config/i386/i386.c (ix86_fp_cmp_code_to_pcmp_immediate): Fix up
423 returned values and add UN*/LTGT/*ORDERED cases with values matching
424 D operand modifier on vcmp for AVX.
425
426 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
427
428 * config/aarch64/aarch64.opt
429 (mpc-relative-literal-loads): Rename internal option name.
430 * config/aarch64/aarch64.c
431 (aarch64_nopcrelative_literal_loads): Rename to
432 aarch64_pcrelative_literal_loads.
433 (aarch64_expand_mov_immediate): Likewise.
434 (aarch64_secondary_reload): Likewise.
435 (aarch64_can_use_per_function_literal_pools_p): Likewise.
436 (aarch64_override_options_after_change_1): Rename and simplify logic.
437 (aarch64_classify_symbol): Merge large model checks into switch,
438 remove pc-relative load check.
439
440 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
441
442 * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): Make FP
443 costs relative to the cost of a register move.
444
445 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
446
447 * config/aarch64/arm_neon.h (vcvt_n_f64_s64): New.
448 (vcvt_n_f64_u64): Likewise.
449 (vcvt_n_s64_f64): Likewise.
450 (vcvt_n_u64_f64): Likewise.
451 (vcvt_f64_s64): Likewise.
452 (vrecpe_f64): Likewise.
453 (vcvt_f64_u64): Likewise.
454 (vrecps_f64): Likewise.
455
456 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
457
458 * config/aarch64/aarch64.md
459 (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3): Add attributes to
460 iterators.
461 (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>3): Likewise. Correct
462 attributes.
463 * config/aarch64/aarch64-builtins.c
464 (aarch64_types_binop_uss_qualifiers): Delete.
465 (TYPES_BINOP_USS): Likewise.
466 (aarch64_types_binop_sus_qualifiers): Likewise.
467 (TYPES_BINOP_SUS): Likewise.
468 (aarch64_types_fcvt_from_unsigned_qualifiers): New.
469 (TYPES_FCVTIMM_SUS): Likewise.
470 * config/aarch64/aarch64-simd-builtins.def (scvtf): Use SHIFTIMM
471 rather than BINOP.
472 (ucvtf): Use FCVTIMM_SUS rather than BINOP_SUS.
473 (fcvtzs): Use SHIFTIMM rather than BINOP.
474 (fcvtzu): Use SHIFTIMM_USS rather than BINOP_USS.
475
476 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
477
478 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): Make FP
479 costs relative to the cost of a register move.
480
481 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
482
483 * config/aarch64/aarch64.c (aarch64_modes_tieable_p):
484 Allow scalar/single vector modes to be tieable.
485
486 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
487
488 * config/arm/cortex-a57.md (cortex_a57_fp_cpys): Add fcsel.
489
490 2016-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
491
492 * params.def (PARAM_ALIGN_LOOP_ITERATIONS): Use "alignment" instead of
493 "alignement".
494 * tree.h (TYPE_ALIGN): Likewise.
495
496 2016-06-20 Georg-Johann Lay <avr@gjlay.de>
497
498 PR target/71103
499 * config/avr/avr.md (movqi): Handle loading subreg:qi (const).
500
501 2016-06-20 Georg-Johann Lay <avr@gjlay.de>
502
503 * config/avr/avr.c (avr_print_operand): Fix "format not a string
504 literal" build warnings.
505 (avr_print_operand_address): Dito.
506
507 2016-06-19 David Edelsohn <dje.gcc@gmail.com>
508
509 PR target/71375
510 * config/rs6000/aix51.h (TARGET_EXTRA_BUILTINS): Define as 0.
511 * config/rs6000/aix43.h (TARGET_EXTRA_BUILTINS): Same.
512
513 2016-06-18 John David Anglin <danglin@gcc.gnu.org>
514
515 * config/pa/pa.h (TARGET_LONG_PIC_PCREL_CALL): Remove.
516
517 2016-06-18 Eric Botcazou <ebotcazou@adacore.com>
518
519 PR bootstrap/71435
520 * reload1.c (reload): Pass 0 to finish_spills when called because
521 update_eliminables_and_spill returns true and remove did_spill.
522 (finish_spills): Adjust comment and document GLOBAL parameter.
523
524 2016-06-17 DJ Delorie <dj@redhat.com>
525
526 PR target/71338
527 * config/rl78/rl78-expand.c (umulqihi3): Enable for G10.
528 * config/rl78/rl78-virtual.c (umulhi3_shift_virt): Likewise.
529 (umulqihi3_virt): Likewise.
530 * config/rl78/rl78-real.c (umulhi3_shift_real): Likewise.
531 (umulqihi3_real): Likewise.
532
533 2016-06-17 Martin Liska <mliska@suse.cz>
534
535 * tree-ssa-reassoc.c (transform_add_to_multiply): Use auto_vec.
536
537 2016-06-17 Martin Liska <mliska@suse.cz>
538
539 * predict.def: PRED_LOOP_EXIT from 92 to 85.
540
541 2016-06-17 James Greenhalgh <james.greenhalgh@arm.com>
542
543 * config/arm/arm_neon.h (vadd_f32): replace __FAST_MATH with
544 __FAST_MATH__.
545 (vaddq_f32): Likewise.
546 (vmul_f32): Likewise.
547 (vmulq_f32): Likewise.
548 (vsub_f32): Likewise.
549 (vsubq_f32): Likewise.
550
551 2016-06-17 Bin Cheng <bin.cheng@arm.com>
552
553 PR tree-optimization/71347
554 * tree-ssa-loop-ivopts.c (determine_group_iv_cost_address): Compute
555 cost for all uses in group.
556
557 2016-06-17 Bin Cheng <bin.cheng@arm.com>
558
559 * tree-vect-loop.c (vect_create_epilog_for_reduction): Only
560 insert gimple seq if it's not empty.
561
562 2016-06-17 Bin Cheng <bin.cheng@arm.com>
563
564 * tree-vectorizer.h (struct dr_with_seg_len): Remove class
565 member OFFSET.
566 * tree-vect-data-refs.c (operator ==): Handle DR_OFFSET directly,
567 rather than OFFSET.
568 (comp_dr_with_seg_len_pair): Ditto.
569 (vect_prune_runtime_alias_test_list): Ditto. Also Canonicalize
570 struct dr_with_seg_len_pair against DR_OFFSET.
571 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Handle
572 DR_OFFSET directly.
573
574 2016-06-17 Szabolcs Nagy <szabolcs.nagy@arm.com>
575
576 * config/aarch64/geniterators.sh: Handle parenthesised conditions.
577
578 2016-06-16 John David Anglin <danglin@gcc.gnu.org>
579
580 * config/pa/pa.c (pa_output_pic_pcrel_sequence): New.
581 (pa_output_lbranch): Use pa_output_pic_pcrel_sequence.
582 (pa_output_millicode_call): Likewise.
583 (pa_output_call): Likewise.
584 (pa_output_indirect_call): Likewise.
585 (pa_asm_output_mi_thunk): Likewise.
586
587 2016-06-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
588
589 * doc/invoke.texi (x86 Options): Fix -mno-fp-ret-in-387 typo.
590
591 2016-06-16 Martin Liska <mliska@suse.cz>
592
593 * predict.c (combine_predictions_for_insn): When we find a first
594 match predictor, we should consider just predictors with
595 PRED_FLAG_FIRST_MATCH. Print either first match (if any) or
596 DS theory predictor.
597 (combine_predictions_for_bb): Likewise.
598
599 2016-06-16 Jakub Jelinek <jakub@redhat.com>
600
601 * gimplify.c (gimplify_scan_omp_clauses): Handle COMPONENT_REFs
602 with base of reference to struct.
603
604 2016-06-16 Uros Bizjak <ubizjak@gmail.com>
605
606 * doc/invoke.texi (x86 Options): Document -m80387 and -mhard-float.
607
608 2016-06-16 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
609
610 PR target/71151
611 * config/avr/avr.c (avr_asm_init_sections): Remove setup of
612 progmem_swtable_section.
613 (progmem_swtable_section): Remove.
614 (avr_asm_function_rodata_section): Remove.
615 (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
616 * config/avr/avr.h (JUMP_TABLES_IN_TEXT_SECTION: Define to 1.
617
618 2016-06-16 Jocelyn Mayer <l_indien@magic.fr>
619
620 * config/i386/driver-i386.c (host_detect_local_cpu): Set
621 PROCESSOR_K8 for signature_CENTAUR_ebx with has_longmode.
622 <case PROCESSOR_K8>: Pass nano-3000, nano, eden-x2 or k8 for
623 signature_CENTAUR_ebx.
624 * config/i386/i386.c (ix86_option_override_internal): Add
625 definitions for VIA c7, samuel-2, nehemiah, esther, eden-x2, eden-x4,
626 nano, nano-1000, nano-2000, nano-3000, nano-x2 and nano-x4.
627 * doc/invoke.texi (x86 Options): Document new VIA -march entries.
628
629 2016-06-16 Martin Liska <mliska@suse.cz>
630
631 * predict.def: Add fortran loop preheader predictor.
632 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Properly
633 fold IFN_BUILTIN_EXPECT with a known constant argument.
634
635 2016-06-16 Martin Liska <mliska@suse.cz>
636
637 * predict.def: Add 'Fortran' to display text of all
638 PRED_FORTRAN_* predictors.
639
640 2016-06-16 Uros Bizjak <ubizjak@gmail.com>
641
642 PR target/71242
643 * config/ia64/ia64.c (enum ia64_builtins) [IA64_BUILTIN_NANQ]: New.
644 [IA64_BUILTIN_NANSQ]: Ditto.
645 (ia64_fold_builtin): New function.
646 (TARGET_FOLD_BUILTIN): New define.
647 (ia64_init_builtins) Declare const_string_type node.
648 Add __builtin_nanq and __builtin_nansq builtin functions.
649 (ia64_expand_builtin): Handle IA64_BUILTIN_NANQ and IA64_BUILTIN_NANSQ.
650
651 2016-06-16 Nick Clifton <nickc@redhat.com>
652
653 * config/msp430/msp430-opts.h (msp430_hwmult_types): Add
654 MSP430_HWMULT_ prefix to enum values.
655 (msp430_regions): Add MSP430_REGION_ prefix to enum values.
656 * config/msp430/msp430.c: Update use of enum values.
657 * config/msp430/msp430.md: Likewise.
658 * config/msp430/msp430.opt: Likewise.
659
660 2016-06-16 Jan Hubicka <hubicka@ucw.cz>
661
662 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Fix estimation
663 of comparsions in the last iteration.
664
665 2016-06-16 Claudiu Zissulescu <claziss@synopsys.com>
666 Joern Rennecke <joern.rennecke@embecosm.com>
667
668 * config/arc/arc.c (arc_print_operand_address): Handle pc-relative
669 addresses.
670 (arc_needs_pcl_p): Add GOTOFFPC.
671 (arc_legitimate_pic_addr_p): Likewise.
672 (arc_output_pic_addr_const): Likewise.
673 (arc_legitimize_pic_address): Generate a pc-relative address using
674 GOTOFFPC.
675 (arc_output_libcall): Use @pcl syntax.
676 (arc_delegitimize_address_0): Delegitimize ARC_UNSPEC_GOTOFFPC.
677 * config/arc/arc.md ("unspec"): Add ARC_UNSPEC_GOTOFFPC.
678 (*movsi_insn): Use @pcl syntax.
679 (doloop_begin_i): Likewise.
680
681 2016-06-16 Martin Liska <mliska@suse.cz>
682
683 * predict.def: Define a new predictor.
684
685 2016-06-16 Claudiu Zissulescu <claziss@synopsys.com>
686
687 * config/arc/arc.opt (mtp-regno): Update text.
688
689 2016-06-16 Renlin Li <renlin.li@arm.com>
690
691 * config/aarch64/aarch64.c (aarch64_legitimize_address): Fix a typo.
692
693 2016-06-16 Jakub Jelinek <jakub@redhat.com>
694
695 PR target/71554
696 * config/i386/i386.md (setcc + movzbl peephole2): Use reg_set_p.
697 (setcc + and peephole2): Likewise.
698
699 PR rtl-optimization/71532
700 * cse.c (cse_insn): For const/pure calls, invalidate argument passing
701 memory slots.
702
703 2016-06-15 Michael Meissner <meissner@linux.vnet.ibm.com>
704
705 * config/rs6000/vsx.md (VSINT_84): Add DImode to enable loading
706 DImode constants with XXSPLTIB in vector registers.
707 (vsx_extract_<mode>, V2DImode/V2DFmode): Combine both
708 vsx_extract_<mode>_internal{1,2} into a single insn that handles
709 direct move (both ISA 2.07 and ISA 3.0 versions), and optimizes
710 extraction of the element at the top of the register as a scalar
711 value.
712 (vsx_extract_<mode>_internal1): Likewise.
713 (vsx_extract_<mode>_internal2): Likewise.
714 * config/rs6000/constraints.md (wi constraint): Remove a comment
715 about DImode not being allowed in Altivec registers.
716 (wB constraint): New constraint for constants that can be
717 generated in Altivec registers with VSPLTISW/VUPKHSW.
718 * config/rs6000/predicates.md (xxspltib_constant_split): Update
719 comments.
720 (xxspltib_constant_nosplit): Likewise.
721 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Add
722 support for -mupper-regs-di to enable DImode to go into Altivec
723 registers.
724 (POWERPC_MASKS): Likewise.
725 (power7 cpu): Likewise.
726 * config/rs6000/rs6000.opt (-mupper-regs-di): Likewise.
727 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
728 for DImode being allowed in Altivec registers. Update wi/wj
729 constraints. Set scalar_in_vmx_p flag.
730 (rs6000_option_override_internal): Add checks for -mupper-regs-di.
731 (xxspltib_constant_p): Allow CONST_INT's with VOIDmode. Don't
732 return true if we could use VSPLTISW/VUPKHSW instead of XXSPLTIB.
733 (rs6000_opt_masks): Add -mupper-regs-di.
734 * config/rs6000/rs6000.md (lfiwax): Update clobbers that don't use
735 direct move to use wi and not wj.
736 (lfiwzx): Likewise.
737 (floatsi<mode>2_lfiwax_mem): Combine alternatives into a single
738 alternative.
739 (floatunssi<mode>2_lfiwzx_mem): Likewise.
740 (fix_trunc<mode>di2_fctidz): Change second alternative to allow
741 any VSX register, instead of just Altivec registers, to allow
742 either operand to be an Altivec register or both.
743 (fixuns_trunc<mode>di2_fctiduz): Likewise.
744 (movdi_internal32): Add support for -mupper-regs-di. Add support
745 to load constants via XXSPLTIB or VSPLTISW. Add spacing to allow
746 the alternatives and attributes to be lined up to be easier to
747 read.
748 (movdi_internal64): Likewise.
749 (64-bit DImode splitters): Change predicates to only split loading
750 up GPR registers. Add splits for using XXSPLTIB or VSPLTISW to
751 load constants in ISA 3.0 or ISA 2.07 respectively.
752 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
753 -mupper-regs-di. Update -mupper-regs-df and -mupper-regs-sf to
754 mention -mcpu=power9 sets these options.
755 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document the
756 wB constraint.
757
758 2016-06-15 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
759
760 PR target/67353
761 * config/avr/avr.c (avr_set_current_function): Warn misspelled
762 interrupt/ signal handler if -Wmisspelled-isr flag is enabled.
763 * config/avr/avr.opt (Wmisspelled-isr): New warning flag. Enabled
764 by default to warn misspelled interrupt/ signal handler.
765 * doc/invoke.texi (AVR Options): Document it. Update description
766 for -nodevicelib option.
767
768 2016-06-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
769
770 * config/aarch64/aarch64-simd.md (aarch64_<sur>shll_n<mode>): Clean
771 up parentheses. Use GET_MODE_UNIT_BITSIZE.
772 (aarch64_<sur>shll2_n<mode>): Likewise.
773
774 2016-06-15 Ilya Enkovich <ilya.enkovich@intel.com>
775
776 PR middle-end/71529
777 * ipa-chkp.c (chkp_build_instrumented_fndecl): Fix
778 DECL_CONTEXT for copied arguments.
779
780 2016-06-15 Alan Hayward <alan.hayward@arm.com>
781
782 PR tree-optimization/71483
783 * tree-vect-loop.c (vectorizable_live_operation): Pick correct index
784 for slp
785
786 2016-06-15 Martin Liska <mliska@suse.cz>
787
788 * predict.c (tree_predict_by_opcode): Call predict_edge_def
789 instead of predict_edge w/o a probability.
790
791 2016-06-15 Alan Hayward <alan.hayward@arm.com>
792
793 PR tree-optimization/71439
794 * tree-vect-loop.c (vect_analyze_loop_operations): Additional check for
795 live PHIs.
796
797 2016-06-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
798
799 * ifcvt.c (bb_ok_for_noce_multiple_sets): Allow simple lowpart
800 register subregs in SET_SRC.
801
802 2016-06-15 Richard Biener <rguenther@suse.de>
803
804 * tree-vect-stmts.c (vectorizable_store): Remove strided grouped
805 store restrictions.
806
807 2016-06-15 Richard Biener <rguenther@suse.de>
808
809 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Do
810 not consider dependences between accesses that belong to the
811 same group.
812 (vect_analyze_data_ref_dependences): Do not analyze read-read
813 or self-dependences.
814
815 2016-06-14 David Malcolm <dmalcolm@redhat.com>
816
817 * spellcheck-tree.c: Include spellcheck-tree.h rather than
818 spellcheck.h.
819 (find_closest_identifier): Reimplement in terms of
820 best_match<tree,tree>.
821 * spellcheck-tree.h: New file.
822 * spellcheck.c (struct edit_distance_traits<const char *>): New
823 struct.
824 (find_closest_string): Reimplement in terms of
825 best_match<const char *, const char *>.
826 * spellcheck.h (levenshtein_distance): Move prototype of tree-based
827 overload to spellcheck-tree.h.
828 (find_closest_identifier): Likewise.
829 (struct edit_distance_traits<T>): New template.
830 (class best_match): New class.
831
832 2016-06-14 David Malcolm <dmalcolm@redhat.com>
833
834 * selftest-run-tests.c (selftest::run_tests): Call
835 selftest::spellcheck_tree_c_tests.
836 * selftest.h (selftest::spellcheck_tree_c_tests): New decl.
837 * spellcheck-tree.c: Include selftest.h and stringpool.h.
838 (selftest::test_find_closest_identifier): New function.
839 (selftest::spellcheck_tree_c_tests): New function.
840 * spellcheck.c (selftest::test_find_closest_string): Verify that
841 the order of the vec does not affect the results for this case.
842 (selftest::test_data): New array.
843 (selftest::test_metric_conditions): New function.
844 (selftest::spellcheck_c_tests): Add a test of case-comparison.
845 Call selftest::test_metric_conditions.
846
847 2016-06-14 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
848
849 * config/rs6000/rs6000-builtin.def (commentary): Typo.
850 (BU_P9_MISC_1): Likewise.
851 (BU_P9_64BIT_MISC_0): Likewise.
852 (BU_P9_MISC_0): Likewise.
853
854 2016-06-14 David Malcolm <dmalcolm@redhat.com>
855
856 * gcc-rich-location.c
857 (gcc_rich_location::add_fixit_misspelled_id): New method.
858 * gcc-rich-location.h
859 (gcc_rich_location::add_fixit_misspelled_id): Add decl.
860
861 2016-06-14 Andreas Tobler <andreast@gcc.gnu.org>
862
863 * config/arm/freebsd.h: Only enable unaligned access for armv6 on
864 FreeBSD 11 and above.
865
866 2016-06-14 Uros Bizjak <ubizjak@gmail.com>
867
868 * config/i386/i386.md (signbittf2): Emit sse_movmskps for TARGET_SSE.
869
870 2016-06-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
871
872 * expmed.h: Close parenthesis in "at your option" in copyright
873 boilerplate.
874 * lower-subreg.h: Likewise.
875
876 2016-06-14 Richard Biener <rguenther@suse.de>
877
878 PR middle-end/71526
879 * genmatch.c (expr::gen_transform): Use in_type for comparisons
880 if available.
881
882 2015-06-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
883
884 * config/aarch64/aarch64.c (aarch64_mask_and_shift_for_ubfiz_p):
885 New function.
886 (aarch64_rtx_costs): Use it. Rewrite CONST_INT_P (op1) case to handle
887 mask+shift version.
888 * config/aarch64/aarch64-protos.h (aarch64_mask_and_shift_for_ubfiz_p):
889 New prototype.
890 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Replace
891 matching condition with aarch64_mask_and_shift_for_ubfiz_p.
892
893 2016-06-14 Richard Biener <rguenther@suse.de>
894
895 PR tree-optimization/71522
896 * tree-ssa.c (non_rewritable_lvalue_p): Do not rewrite non-float
897 copying into float copying.
898
899 2016-06-14 Jakub Jelinek <jakub@redhat.com>
900
901 PR tree-optimization/71520
902 * tree-ssa-tail-merge.c (find_duplicate): Handle labels.
903 (replace_block_by): Move user labels from bb1 to bb2.
904
905 2016-06-14 Richard Biener <rguenther@suse.de>
906
907 PR middle-end/71310
908 PR bootstrap/71510
909 * expr.h (get_bit_range): Declare.
910 * expr.c (get_bit_range): Export.
911 * fold-const.c (optimize_bit_field_compare): Use get_bit_range and
912 word_mode again to constrain the bitfield access.
913
914 2016-06-14 Richard Biener <rguenther@suse.de>
915
916 PR tree-optimization/71521
917 * tree-vrp.c (extract_range_from_binary_expr_1): Guard
918 division int_const_binop against zero divisor.
919
920 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
921
922 * config/i386/i386.md (signbittf2): New expander.
923 * config/i386/sse.md (ptesttf2): New insn pattern.
924
925 2016-06-13 David Malcolm <dmalcolm@redhat.com>
926
927 PR bootstrap/71481
928 * input.c (selftest::test_reading_source_line): Avoid reading from
929 __FILE__ by creating a tempfile with known content and reading
930 from that instead.
931
932 2016-06-13 David Malcolm <dmalcolm@redhat.com>
933
934 * pretty-print.c (assert_pp_format_colored): Skip the test if
935 GCC_COLORS is set.
936 (test_pp_format): Remove comment about GCC_COLORS.
937
938 2016-06-13 David Malcolm <dmalcolm@redhat.com>
939
940 * input.c (test_reading_source_line): Use SELFTEST_LOCATION.
941 * pretty-print.c (assert_pp_format_va): Add location param and use
942 it with ASSERT_STREQ_AT.
943 (assert_pp_format): Add location param and pass it to
944 assert_pp_format_va.
945 (assert_pp_format_colored): Likewise.
946 (ASSERT_PP_FORMAT_1): New.
947 (ASSERT_PP_FORMAT_2): New.
948 (ASSERT_PP_FORMAT_3): New.
949 (test_pp_format): Provide SELFTEST_LOCATION throughout, either
950 explicitly, or implicitly via the above macros.
951 * selftest.c (selftest::pass): Use a selftest::location rather
952 than file and line.
953 (selftest::fail): Likewise. Print the function name.
954 (selftest::fail_formatted): Likewise.
955 (selftest::assert_streq): Use a selftest::location rather than
956 file and line.
957 * selftest.h (selftest::location): New struct.
958 (SELFTEST_LOCATION): New macro.
959 (selftest::pass): Accept a const location & rather than file
960 and line.
961 (selftest::fail): Likewise.
962 (selftest::fail_formatted): Likewise.
963 (selftest::assert_streq): Likewise.
964 (ASSERT_TRUE): Update for above changes, using SELFTEST_LOCATION.
965 (ASSERT_FALSE): Likewise.
966 (ASSERT_EQ): Likewise.
967 (ASSERT_NE): Likewise.
968 (ASSERT_STREQ): Likewise.
969 (ASSERT_PRED1): Likewise.
970 (ASSERT_STREQ_AT): New macro.
971
972 2016-06-13 David Malcolm <dmalcolm@redhat.com>
973
974 * selftest.c (selftest::fail_formatted): New function.
975 (selftest::assert_streq): New function.
976 * selftest.h (selftests::fail_formatted): New decl.
977 (selftest::assert_streq): New decl.
978 (ASSERT_STREQ): Reimplement in terms of selftest::assert_streq.
979
980 2016-06-13 Jeff Law <law@redhat.com>
981
982 PR tree-optimization/71403
983 * tree-ssa-threadbackward.c
984 (convert_and_register_jump_thread_path): No longer accept reference
985 to path. Do not pop items off the path anymore.
986 (fsm_find_control_statement_thread_paths): Do not allow threading
987 to a deeper loop nest. Pop the last item off the path here rather
988 than in convert_and_register_jump_thread_path.
989
990 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
991 Wilco Dijkstra <Wilco.Dijkstra@arm.com>
992
993 [AArch64] Emit division using the Newton series
994
995 * config/aarch64/aarch64-protos.h
996 (cpu_approx_modes): Add new member "division".
997 (aarch64_emit_approx_div): Declare new function.
998 * config/aarch64/aarch64.c
999 (generic_approx_modes): New member "division".
1000 (exynosm1_approx_modes): Likewise.
1001 (xgene1_approx_modes): Likewise.
1002 (aarch64_emit_approx_div): Define new function.
1003 * config/aarch64/aarch64.md ("div<mode>3"): New expansion.
1004 * config/aarch64/aarch64-simd.md ("div<mode>3"): Likewise.
1005 * config/aarch64/aarch64.opt (-mlow-precision-div): Add new option.
1006 * doc/invoke.texi (-mlow-precision-div): Describe new option.
1007
1008 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
1009 Wilco Dijkstra <wilco.dijkstra@arm.com>
1010
1011 [AArch64] Emit square root using the Newton series
1012
1013 * config/aarch64/aarch64-protos.h
1014 (aarch64_emit_approx_rsqrt): Replace with new function
1015 "aarch64_emit_approx_sqrt".
1016 (cpu_approx_modes): New member "sqrt".
1017 * config/aarch64/aarch64.c
1018 (generic_approx_modes): New member "sqrt".
1019 (exynosm1_approx_modes): Likewise.
1020 (xgene1_approx_modes): Likewise.
1021 (aarch64_emit_approx_rsqrt): Replace with new function
1022 "aarch64_emit_approx_sqrt".
1023 (aarch64_override_options_after_change_1): Handle new option.
1024 * config/aarch64/aarch64-simd.md
1025 (rsqrt<mode>2): Use new function instead.
1026 (sqrt<mode>2): New expansion and insn definitions.
1027 * config/aarch64/aarch64.md: Likewise.
1028 * config/aarch64/aarch64.opt
1029 (mlow-precision-sqrt): Add new option description.
1030 * doc/invoke.texi (mlow-precision-sqrt): Likewise.
1031
1032 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
1033
1034 [AArch64] Add more choices for the reciprocal square root approximation
1035
1036 Allow a target to prefer such operation depending on the operation mode.
1037
1038 * config/aarch64/aarch64-protos.h
1039 (AARCH64_APPROX_MODE): New macro.
1040 (AARCH64_APPROX_{NONE,ALL}): Likewise.
1041 (cpu_approx_modes): New structure.
1042 (tune_params): New member "approx_modes".
1043 * config/aarch64/aarch64-tuning-flags.def
1044 (AARCH64_EXTRA_TUNE_APPROX_RSQRT): Remove macro.
1045 * config/aarch64/aarch64.c
1046 (generic_approx_modes): New core "cpu_approx_modes" structure.
1047 (exynosm1_approx_modes): Likewise.
1048 (xgene1_approx_modes): Likewise.
1049 (generic_tunings): New member "approx_modes".
1050 (cortexa35_tunings): Likewise.
1051 (cortexa53_tunings): Likewise.
1052 (cortexa57_tunings): Likewise.
1053 (cortexa72_tunings): Likewise.
1054 (exynosm1_tunings): Likewise.
1055 (thunderx_tunings): Likewise.
1056 (xgene1_tunings): Likewise.
1057 (use_rsqrt_p): New argument for the mode and use new member from
1058 "tune_params".
1059 (aarch64_builtin_reciprocal): Devise mode from builtin.
1060 (aarch64_optab_supported_p): New argument for the mode.
1061 * doc/invoke.texi (-mlow-precision-recip-sqrt): Reword description.
1062
1063 2016-06-13 Kelvin Nilsen <kelvin@gcc.gnu.org>
1064
1065 * config/rs6000/rs6000.h (RS6000_BTM_COMMON): Add the
1066 RS6000_BTM_MODULO flag into the set of flags that are considered
1067 to be part of the common configuration.
1068
1069 2016-06-13 Kelvin Nilsen <kelvin@gcc.gnu.org>
1070
1071 * config/rs6000/altivec.h (vec_absd): New macro for vector absolute
1072 difference unsigned.
1073 (vec_absdb): New macro for vector absolute difference unsigned
1074 byte.
1075 (vec_absdh): New macro for vector absolute difference unsigned
1076 half-word.
1077 (vec_absdw): New macro for vector absolute difference unsigned word.
1078 * config/rs6000/altivec.md (UNSPEC_VADU): New value.
1079 (vadu<mode>3): New insn.
1080 (*p9_vadu<mode>3): New insn.
1081 * config/rs6000/rs6000-builtin.def (vadub): New built-in
1082 definition.
1083 (vaduh): New built-in definition.
1084 (vaduw): New built-in definition.
1085 (vadu): New overloaded built-in definition.
1086 (vadub): New overloaded built-in definition.
1087 (vaduh): New overloaded built-in definition.
1088 (vaduw): New overloaded built-in definition.
1089 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
1090 overloaded vector absolute difference unsigned functions.
1091 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
1092 the ISA 3.0 vector absolute difference unsigned built-in functions.
1093
1094 2016-06-13 Eric Botcazou <ebotcazou@adacore.com>
1095
1096 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use a uniform test and
1097 update shared_lookup_references only once after changing operands.
1098
1099 2016-06-13 Thomas Schwinge <thomas@codesourcery.com>
1100
1101 PR middle-end/71373
1102 * tree-nested.c (convert_nonlocal_omp_clauses)
1103 (convert_local_omp_clauses): Document missing OMP_CLAUSE_*.
1104
1105 * tree-cfg.c (edge_to_cases_cleanup): Fix CASE_CHAIN typo.
1106 * tree.def (CASE_LABEL_EXPR): Likewise.
1107
1108 2016-06-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
1109
1110 PR bootstrap/71481
1111 * input.c (test_builtins): Fix an assertion.
1112
1113 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
1114
1115 * config/i386/i386.md (paritydi2): Use ix86_expand_setcc.
1116 (paritysi2): Ditto.
1117 (isinfxf2): Ditto.
1118 (isinf<mode>2): Ditto.
1119
1120 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
1121
1122 * ggc-tests.c (test_finalization): Only test need_finalization_p
1123 for GCC_VERSION >= 4003.
1124
1125 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1126
1127 * config/s390/vecintrin.h: Fix file description in comment.
1128
1129 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1130
1131 * config/s390/s390-builtin-types.def: Change builtin type naming
1132 scheme to match builtin-types.def.
1133
1134 2016-06-13 Marc Glisse <marc.glisse@inria.fr>
1135
1136 * fold-const.c (optimize_minmax_comparison): Remove.
1137 (fold_comparison): Remove call to the above.
1138 * match.pd (MIN (X, Y) == X, MIN (X, 5) == 0, MIN (X, C1) < C2):
1139 New transformations.
1140
1141 2016-06-13 Alan Hayward <alan.hayward@arm.com>
1142
1143 PR tree-optimization/71416
1144 * tree-vect-loop.c (vectorizable_live_operation): Let worklist have
1145 multiple entries
1146
1147 2016-06-13 Martin Liska <mliska@suse.cz>
1148
1149 * predict.c (enum predictor_reason): Prefix enum with REASON_.
1150 (combine_predictions_for_insn): Likewise.
1151 (prune_predictions_for_bb): Likewise.
1152 (combine_predictions_for_bb): Likewise.
1153
1154 2016-06-13 Richard Biener <rguenther@suse.de>
1155
1156 PR tree-optimization/71505
1157 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Make
1158 assert match comment.
1159
1160 2016-06-13 Marek Polacek <polacek@redhat.com>
1161
1162 PR middle-end/71476
1163 * gimplify.c (maybe_warn_switch_unreachable): Factored out of
1164 gimplify_switch_expr.
1165 (warn_switch_unreachable_r): New function.
1166
1167 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1168
1169 PR target/71379
1170 * config/s390/s390.c (s390_expand_builtin): Increase MAX_ARGS by
1171 one.
1172
1173 2016-06-13 Richard Biener <rguenther@suse.de>
1174
1175 PR middle-end/64516
1176 * fold-const.c (fold_unary_loc): Preserve alignment when
1177 folding a VIEW_CONVERT_EXPR into a MEM_REF.
1178
1179 2016-06-13 Martin Liska <mliska@suse.cz>
1180
1181 PR sanitizer/71458
1182 * toplev.c (process_options): Do not enable -fcheck-pointer-bounds
1183 w/ -fsanitize=bounds.
1184
1185 2016-06-12 Uros Bizjak <ubizjak@gmail.com>
1186
1187 * config/i386/i386.c (ix86_init_builtins): Calculate
1188 FLOAT128_FTYPE_CONST_STRING function type only once.
1189 * doc/extend.texi (x86 Built-in Functions): Update text, __float128
1190 built-in functions are available for x86-32 and x86-64 targets.
1191
1192 2016-06-12 Uros Bizjak <ubizjak@gmail.com>
1193
1194 PR target/71241
1195 * config/i386/i386.i386-builtin-types.def (CONST_STRING):
1196 New primitive type.
1197 (FLOAT128_FTYPE_CONST_STRING): New function type.
1198 * config/i386/i386.c (enum ix86_builtins) [IX86_BUILTIN_NANQ]: New.
1199 [IX86_BUILTIN_NANSQ]: Ditto.
1200 (ix86_fold_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
1201 (ix86_init_builtin_types): Declare const_string_type_node.
1202 (ix86_init_builtins): Add __builtin_nanq and __builtin_nansq
1203 builtin functions.
1204 (ix86_expand_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
1205 * doc/extend.texi (x86 Built-in Functions): Document
1206 __builtin_nanq and __builtin_nansq.
1207
1208 2016-06-11 Jiong Wang <jiong.wang@arm.com>
1209
1210 PR target/71061
1211 * config/arm/arm-protos.h (arm_attr_length_pop_multi): New declaration.
1212 * config/arm/arm.c (arm_attr_length_pop_multi): New function to return
1213 length for pop patterns.
1214 (arm_attr_length_push_multi): Update comments.
1215 * config/arm/arm.md (*load_multiple_with_writeback): Set "length"
1216 attribute.
1217 (*pop_multiple_with_writeback_and_return): Likewise.
1218 (*pop_multiple_with_return): Likewise.
1219
1220 2016-06-11 Segher Boessenkool <segher@kernel.crashing.org>
1221
1222 PR middle-end/71310
1223 * fold-const.c (optimize_bit_field_compare): Don't try to use
1224 word_mode unconditionally for reading the bit field, look at
1225 DECL_BIT_FIELD_REPRESENTATIVE instead.
1226
1227 2016-06-11 Kugan Vivekanandarajah <kuganv@linaro.org>
1228
1229 PR middle-end/71478
1230 * tree-ssa-reassoc.c (reassociate_bb): Remove (-1) from ops list for
1231 vector integer type.
1232
1233 2016-06-10 Jakub Jelinek <jakub@redhat.com>
1234
1235 PR middle-end/71494
1236 * tree-nested.c (convert_nonlocal_reference_stmt): For GIMPLE_GOTO
1237 without LABEL_DECL, set *handled_ops_p to false instead of true.
1238
1239 2016-06-10 Martin Sebor <msebor@redhat.com>
1240
1241 PR c/71392
1242 * builtin-attrs.def (ATTR_NOTHROW_NONNULL_LEAF_LIST): New macro.
1243 (ATTR_NOTHROW_NONNULL_TYPEGENERIC_LEAF): Same.
1244 * builtins.def (BUILT_IN_SADD_OVERFLOW, BUILT_IN_SADDL_OVERFLOW): Use
1245 them.
1246 (BUILT_IN_SADDLL_OVERFLOW, BUILT_IN_SSUB_OVERFLOW): Same.
1247 (BUILT_IN_SSUBL_OVERFLOW, BUILT_IN_SSUBLL_OVERFLOW): Same.
1248 (BUILT_IN_SMUL_OVERFLOW, BUILT_IN_SMULL_OVERFLOW): Same.
1249 (BUILT_IN_SMULLL_OVERFLOW, BUILT_IN_UADD_OVERFLOW): Same.
1250 (BUILT_IN_UADDL_OVERFLOW, BUILT_IN_UADDLL_OVERFLOW): Same.
1251 (BUILT_IN_USUB_OVERFLOW, BUILT_IN_USUBL_OVERFLOW): Same.
1252 (BUILT_IN_USUBLL_OVERFLOW, BUILT_IN_UMUL_OVERFLOW): Same.
1253 (BUILT_IN_UMULL_OVERFLOW, BUILT_IN_UMULLL_OVERFLOW): Same.
1254
1255 2016-06-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
1256
1257 * config/arm/arm.h (pool_vector_label,
1258 return_used_this_function): Remove.
1259
1260 2016-06-10 Jeff Law <law@redhat.com>
1261
1262 PR tree-optimization/71335
1263 * tree-ssa-threadbackward.c (profitable_jump_thread_path): Filter out
1264 zero length paths here.
1265 (convert_and_register_jump_thread_path): Remove hacks related to
1266 duplicated blocks in the jump thread path.
1267 (fsm_find_control_statement_thread_paths): Avoid putting the same
1268 block on the thread path twice, but ensure the thread path is
1269 unchanged from the caller's point of view.
1270
1271 2016-06-10 Jan Hubicka <hubicka@ucw.cz>
1272
1273 * predict.c (predict_loops): Remove PRED_LOOP_BRANCH.
1274 * predict.def (PRED_LOOP_BRANCH): Remove.
1275
1276 2016-06-10 David Malcolm <dmalcolm@redhat.com>
1277
1278 * Makefile.in (OBJS): Add ggc-tests.o.
1279 (GTFILES): Add ggc-tests.c.
1280 * ggc-tests.c: New file.
1281 * selftest-run-tests.c (selftest::run_tests): Call
1282 selftest::ggc_tests_c_tests.
1283 * selftest.h (selftest::ggc_tests_c_tests): New prototype.
1284
1285 2016-06-10 Alexander Monakov <amonakov@ispras.ru>
1286
1287 * match.pd (-1 / B < A): Use :c to avoid pattern duplication.
1288
1289 2016-06-10 Maxim Ostapenko <m.ostapenko@samsung.com>
1290
1291 PR sanitizer/71480
1292 * varasm.c (place_block_symbol): Adjust alignment for asan protected
1293 STRING_CSTs even if TREE_CONSTANT_POOL_ADDRESS_P.
1294
1295 2016-06-10 Jan Hubicka <hubicka@ucw.cz>
1296
1297 * profile.c: Include cfgloop.h.
1298 (branch_prob): Compute estimated number of iterations.
1299 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Do not
1300 recompute estimate number of iterations from profile.
1301
1302 2016-06-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
1303
1304 PR inline-asm/68843
1305 * reg-stack.c (check_asm_stack_operands): Explicit input arguments
1306 must be grouped on top of stack. Don't force early clobber
1307 on ordinary reg outputs.
1308
1309 2016-06-10 Richard Biener <rguenther@suse.de>
1310
1311 * targhooks.c (default_builtin_vectorization_cost): Adjust
1312 vec_construct cost.
1313
1314 2016-06-10 Richard Biener <rguenther@suse.de>
1315
1316 * gimple-fold.c (gimple_fold_builtin_memory_op): Make sure
1317 to fold the RHS to a constant if possible.
1318
1319 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
1320
1321 PR middle-end/71373
1322 * tree-nested.c (convert_nonlocal_omp_clauses)
1323 (convert_local_omp_clauses): Handle OMP_CLAUSE_ASYNC,
1324 OMP_CLAUSE_WAIT, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
1325 OMP_CLAUSE__CACHE_, OMP_CLAUSE_TILE.
1326
1327 * gimplify.c (gimplify_adjust_omp_clauses): Discard
1328 OMP_CLAUSE_TILE.
1329 * omp-low.c (scan_sharing_clauses): Don't expect OMP_CLAUSE_TILE.
1330
1331 * omp-low.c (scan_sharing_clauses): Don't expect
1332 OMP_CLAUSE__CACHE_.
1333
1334 2016-06-10 Alan Hayward <alan.hayward@arm.com>
1335
1336 PR tree-optimization/71407
1337 PR tree-optimization/71416
1338 * tree-vect-loop.c (vectorizable_live_operation): Use vectype for
1339 BIT_FIELD_REF type.
1340
1341 2016-06-10 Richard Biener <rguenther@suse.de>
1342
1343 PR middle-end/71477
1344 * cfgloop.c (alloc_loop): Initialize nb_iterations_likely_upper_bound.
1345
1346 2016-06-09 Eric Botcazou <ebotcazou@adacore.com>
1347
1348 * df-problems.c (df_note_bb_compute): Guard use of DF_INSN_INFO_GET.
1349
1350 2016-06-09 Vladimir Makarov <vmakarov@redhat.com>
1351 Jiong Wang <jiong.wang@arm.com>
1352
1353 PR rtl-optimization/70751
1354 * lra-constraints.c (process_alt_operands): Recognize Non-pseudo
1355 spilled into memory.
1356
1357 2016-06-09 Jonathan Yong <10walls@gmail.com>
1358
1359 Revert:
1360 2015-09-21 Jonathan Yong <10walls@gmail.com>
1361
1362 * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
1363 sysroot/usr/lib/32api for additional win32 libraries,
1364 fixes failing Cygwin bootstrapping.
1365
1366 2016-06-09 Marcin Baczyński <marbacz@gmail.com>
1367
1368 * diagnostic.h (diagnostic_line_cutoff, diagnostic_flush_buffer):
1369 Delete.
1370
1371 2016-06-09 David Malcolm <dmalcolm@redhat.com>
1372
1373 PR bootstrap/71471
1374 * pretty-print.c (pp_indent): Specify that %p is printed in a
1375 host-dependent manner.
1376 (test_pp_format): Remove the test for %p.
1377
1378 2016-06-09 Maciej W. Rozycki <macro@imgtec.com>
1379
1380 * config/mips/mips.c (mips_output_jump): Fix formatting.
1381
1382 2016-06-09 Richard Biener <rguenther@suse.de>
1383
1384 PR tree-optimization/71462
1385 * tree-ssa-loop-manip.c (find_uses_to_rename): Guard against
1386 removed blocks.
1387
1388 2016-06-09 Martin Liska <mliska@suse.cz>
1389
1390 * predict.c (dump_prediction): Add new argument.
1391 (enum predictor_reason): New enum.
1392 (struct predictor_hash): New struct.
1393 (predictor_hash::hash): New function.
1394 (predictor_hash::equal): Likewise.
1395 (not_removed_prediction_p): New function.
1396 (prune_predictions_for_bb): Likewise.
1397 (combine_predictions_for_bb): Prune predictions.
1398
1399 2016-06-09 Martin Liska <mliska@suse.cz>
1400
1401 * predict.c (filter_predictions): New function.
1402 (remove_predictions_associated_with_edge): Use the filter
1403 function.
1404 (equal_edge_p): New function.
1405
1406 2016-06-09 Stefan Bruens <stefan.bruens@rwth-aachen.de>
1407
1408 * doc/invoke.texi (ARM Options): Use lexicographical ordering.
1409 Correct usage of @samp vs @option, add @samp where appropriate.
1410 Add -march={armv6k,armv6z,arm6zk}, remove -march=ep9312.
1411 Add armv6s-m and document it, as it is no official ARM name.
1412
1413 2016-06-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1414
1415 * ifcvt.c (struct noce_if_info): Add transform_name field.
1416 (noce_try_move): Set if_info->transform_name to the function name.
1417 (noce_try_ifelse_collapse): Likewise.
1418 (noce_try_store_flag): Likewise.
1419 (noce_try_inverse_constants): Likewise.
1420 (noce_try_store_flag_constants): Likewise.
1421 (noce_try_addcc): Likewise.
1422 (noce_try_store_flag_mask): Likewise.
1423 (noce_try_cmove): Likewise.
1424 (noce_try_cmove_arith): Likewise.
1425 (noce_try_minmax): Likewise.
1426 (noce_try_abs): Likewise.
1427 (noce_try_sign_mask): Likewise.
1428 (noce_try_bitop): Likewise.
1429 (noce_convert_multiple_sets): Likewise.
1430 (noce_process_if_block): Print if_info->transform_name to
1431 dump_file if transformation succeeded.
1432
1433 2016-06-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1434
1435 * config/arm/cortex-a57.md (cortex_a57_alu):
1436 Handle csel type.
1437
1438 2016-06-08 Martin Sebor <msebor@redhat.com>
1439 Jakub Jelinek <jakub@redhat.com>
1440
1441 PR c++/70507
1442 PR c/68120
1443 * builtins.def (BUILT_IN_ADD_OVERFLOW_P, BUILT_IN_SUB_OVERFLOW_P,
1444 BUILT_IN_MUL_OVERFLOW_P): New builtins.
1445 * builtins.c: Include gimple-fold.h.
1446 (fold_builtin_arith_overflow): Handle
1447 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
1448 (fold_builtin_3): Likewise.
1449 * doc/extend.texi (Integer Overflow Builtins): Document
1450 __builtin_{add,sub,mul}_overflow_p.
1451
1452 2016-06-08 Jose E. Marchesi <jose.marchesi@oracle.com>
1453
1454 * config/sparc/driver-sparc.c (cpu_names): Fix the entry for the
1455 SPARC-M7 and add an entry for SPARC-S7 cpus (Sonoma).
1456
1457 2016-06-08 Alan Lawrence <alan.lawrence@arm.com>
1458
1459 * config/aarch64/aarch64.c (aarch64_function_arg_alignment):
1460 Rewrite, looking one level down for records and arrays.
1461
1462 2016-06-08 David Malcolm <dmalcolm@redhat.com>
1463
1464 * pretty-print.c: Include "selftest.h".
1465 (pp_format): Fix comment.
1466 (identifier_to_locale): Likewise.
1467 (selftest::test_basic_printing): New function.
1468 (selftest::assert_pp_format): New function.
1469 (selftest::test_pp_format): New function.
1470 (selftest::pretty_print_c_tests): New function.
1471 * selftest-run-tests.c (selftest::run_tests): Call
1472 selftest::pretty_print_c_tests.
1473 * selftest.h (pretty_print_c_tests): New declaration.
1474
1475 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
1476
1477 * invoke.texi (max-loop-headers-insns): Document.
1478 * params.def (PARAM_MAX_LOOP_HEADER_INSNS): New.
1479 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Update comment.
1480 (ch_base::copy_headers): Use PARAM_MAX_LOOP_HEADER_INSNS.
1481
1482 2016-06-08 Richard Biener <rguenther@suse.de>
1483
1484 * tree-vect-stmts.c (vectorizable_load): Remove restrictions
1485 on strided SLP loads and fall back to scalar loads in case
1486 we can't chunk them.
1487
1488 2016-06-08 Richard Biener <rguenther@suse.de>
1489
1490 PR tree-optimization/71452
1491 * tree-ssa.c (non_rewritable_lvalue_p): Make sure that the
1492 type used for the SSA rewrite has enough precision to cover
1493 the dynamic type of the location.
1494
1495 2016-06-08 Jakub Jelinek <jakub@redhat.com>
1496 Richard Biener <rguenther@suse.de>
1497
1498 PR c++/71448
1499 * fold-const.c (fold_comparison): Handle CONSTANT_CLASS_P (base0)
1500 the same as DECL_P (base0) for indirect_base0. Use equality_code
1501 in one further place.
1502
1503 2016-06-08 Richard Sandiford <richard.sandiford@arm.com>
1504
1505 * expmed.c (store_bit_field_1): Do not restrict a multiword op0
1506 to one word if the field is known to overlap other words.
1507 (extract_bit_field_1): Likewise.
1508 (store_split_bit_field): Remove compensating code.
1509 (extract_split_bit_field): Likewise.
1510
1511 2016-06-08 Bernd Schmidt <bschmidt@redhat.com>
1512
1513 PR debug/71432
1514 PR ada/71413
1515 * tree-ssa-strlen.c (handle_builtin_memcmp): Ignore debug insns.
1516
1517 2016-06-08 Jiong Wang <jiong.wang@arm.com>
1518
1519 * config/aarch64/aarch64-builtins.def (faddp): New builtins for modes in
1520 VDQF.
1521 * config/aarch64/aarch64-simd.md (aarch64_faddp<mode>): New.
1522 (arch64_addpv4sf): Delete.
1523 (reduc_plus_scal_v4sf): Use "gen_aarch64_faddpv4sf" instead of
1524 "gen_aarch64_addpv4sf".
1525 * config/aarch64/arm_neon.h (vpadd_f32): Remove inline assembly. Use
1526 builtin.
1527 (vpadds_f32): Likewise.
1528 (vpaddq_f32): Likewise.
1529 (vpaddq_f64): Likewise.
1530
1531 2016-06-08 Jiong Wang <jiong.wang@arm.com>
1532
1533 * config/aarch64/aarch64-builtins.def (fabd): New builtins for modes
1534 VALLF.
1535 * config/aarch64/aarch64-simd.md (fabd<mode>_3): Extend modes from VDQF
1536 to VALLF. Rename to "fabd<mode>3".
1537 "*fabd_scalar<mode>3): Delete.
1538 * config/aarch64/arm_neon.h (vabds_f32): Remove inline assembly.
1539 Use builtin.
1540 (vabdd_f64): Likewise.
1541 (vabd_f32): Likewise.
1542 (vabd_f64): Likewise.
1543 (vabdq_f32): Likewise.
1544 (vabdq_f64): Likewise.
1545
1546 2016-06-08 Jiong Wang <jiong.wang@arm.com>
1547
1548 * config/aarch64/aarch64-builtins.def (rsqrts): New builtins for modes
1549 VALLF.
1550 * config/aarch64/aarch64-simd.md (aarch64_rsqrts_<mode>3): Rename to
1551 "aarch64_rsqrts<mode>".
1552 * config/aarch64/aarch64.c (get_rsqrts_type): Update gen* name.
1553 * config/aarch64/arm_neon.h (vrsqrtss_f32): Remove inline assembly. Use
1554 builtin.
1555 (vrsqrtsd_f64): Likewise.
1556 (vrsqrts_f32): Likewise.
1557 (vrsqrts_f64): Likewise.
1558 (vrsqrtsq_f32): Likewise.
1559 (vrsqrtsq_f64): Likewise.
1560
1561 2016-06-08 Jiong Wang <jiong.wang@arm.com>
1562
1563 * config/aarch64/aarch64-builtins.def (rsqrte): New builtins for modes
1564 VALLF.
1565 * config/aarch64/aarch64-simd.md (aarch64_rsqrte_<mode>2): Rename to
1566 "aarch64_rsqrte<mode>".
1567 * config/aarch64/aarch64.c (get_rsqrte_type): Update gen* name.
1568 * config/aarch64/arm_neon.h (vrsqrts_f32): Remove inline assembly. Use
1569 builtin.
1570 (vrsqrted_f64): Likewise.
1571 (vrsqrte_f32): Likewise.
1572 (vrsqrte_f64): Likewise.
1573 (vrsqrteq_f32): Likewise.
1574 (vrsqrteq_f64): Likewise.
1575
1576 2016-06-08 Jiong Wang <jiong.wang@arm.com>
1577
1578 * config/aarch64/aarch64-builtins.def (scvtf): Register vector modes.
1579 (ucvtf): Likewise.
1580 (fcvtzs): Likewise.
1581 (fcvtzu): Likewise.
1582 * config/aarch64/aarch64-simd.md
1583 (<FCVT_F2FIXED:fcvt_fixed_insn><VDQF:mode>3): New.
1584 (<FCVT_FIXED2F:fcvt_fixed_insn><VDQ_SDI:mode>3): Likewise.
1585 * config/aarch64/arm_neon.h (vcvt_n_f32_s32): Remove inline assembly.
1586 Use builtin.
1587 (vcvt_n_f32_u32): Likewise.
1588 (vcvt_n_s32_f32): Likewise.
1589 (vcvt_n_u32_f32): Likewise.
1590 (vcvtq_n_f32_s32): Likewise.
1591 (vcvtq_n_f32_u32): Likewise.
1592 (vcvtq_n_f64_s64): Likewise.
1593 (vcvtq_n_f64_u64): Likewise.
1594 (vcvtq_n_s32_f32): Likewise.
1595 (vcvtq_n_s64_f64): Likewise.
1596 (vcvtq_n_u32_f32): Likewise.
1597 (vcvtq_n_u64_f64): Likewise.
1598 * config/aarch64/iterators.md (VDQ_SDI): New mode iterator.
1599 (VSDQ_SDI): Likewise.
1600 (fcvt_target): Support V4DI, V4SI and V2SI.
1601 (FCVT_TARGET): Likewise.
1602
1603 2016-06-08 Jiong Wang <jiong.wang@arm.com>
1604
1605 * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New
1606 (TYPES_BINOP_SUS): Likewise.
1607 (aarch64_simd_builtin_data): Update include file name.
1608 (aarch64_builtins): Likewise.
1609 * config/aarch64/aarch64-simd-builtins.def (scvtf): New entries
1610 for conversion between scalar float-point and fixed-point.
1611 (ucvtf): Likewise.
1612 (fcvtzs): Likewise.
1613 (fcvtzu): Likewise.
1614 * config/aarch64/aarch64.md
1615 (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3: New
1616 pattern for conversion between scalar float to fixed-pointer.
1617 (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>: Likewise.
1618 (UNSPEC_FCVTZS): New UNSPEC enumeration.
1619 (UNSPEC_FCVTZU): Likewise.
1620 (UNSPEC_SCVTF): Likewise.
1621 (UNSPEC_UCVTF): Likewise.
1622 * config/aarch64/arm_neon.h (vcvtd_n_f64_s64): Remove inline assembly.
1623 Use builtin.
1624 (vcvtd_n_f64_u64): Likewise.
1625 (vcvtd_n_s64_f64): Likewise.
1626 (vcvtd_n_u64_f64): Likewise.
1627 (vcvtd_n_f32_s32): Likewise.
1628 (vcvts_n_f32_u32): Likewise.
1629 (vcvtd_n_s32_f32): Likewise.
1630 (vcvts_n_u32_f32): Likewise.
1631 * config/aarch64/iterators.md (fcvt_target): Support integer to float
1632 mapping.
1633 (FCVT_TARGET): Likewise.
1634 (FCVT_FIXED2F): New iterator.
1635 (FCVT_F2FIXED): Likewise.
1636 (fcvt_fixed_insn): New define_int_attr.
1637
1638 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
1639
1640 * predict.c (pass_strip_predict_hints::execute): Cleanup CFG if
1641 some statements was removed.
1642
1643 2016-06-08 Alan Hayward <alan.hayward@arm.com>
1644
1645 * tree-vect-data-refs.c (vect_analyze_data_refs): Remove debug newline.
1646 * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): likewise.
1647 (vect_can_advance_ivs_p): likewise.
1648 (vect_update_ivs_after_vectorizer): likewise.
1649 * tree-vect-loop.c (vect_determine_vectorization_factor): likewise.
1650 (vect_analyze_scalar_cycles_1): likewise.
1651 (vect_analyze_loop_operations): likewise.
1652 (report_vect_op): likewise.
1653 (vect_is_slp_reduction): likewise.
1654 (vect_is_simple_reduction): likewise.
1655 (get_initial_def_for_induction): likewise.
1656 (vect_transform_loop): likewise.
1657 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): likewise.
1658 (vect_recog_sad_pattern): likewise.
1659 (vect_recog_widen_sum_pattern): likewise.
1660 (vect_recog_widening_pattern): likewise.
1661 (vect_recog_divmod_pattern): likewise.
1662 * tree-vect-slp.c (vect-build-slp_tree_1): likewise.
1663 (vect_analyze_slp_instance): likewise.
1664 (vect_transform_slp_perm_load): likewise.
1665 (vect_schedule_slp_instance): likewise.
1666
1667 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
1668
1669 * predict.c (predict_iv_comparison): Mention that heuristics is broken.
1670 (return_prediction): PRED_CONST_RETURN predict return as not taken.
1671 * predict.def (PRED_CONTINUE): Change hitrate 50->67
1672 (PRED_LOOP_BRANCH): Document predictor as broken.
1673 (PRED_LOOP_EXIT): Change hitrate 91->92.
1674 (PRED_LOOP_EXTRA_EXIT): Change hitrate 91->83.
1675 (PRED_POINTER, PRED_TREE_POINTER): Change hitrate 85->70.
1676 (PRED_OPCODE_POSITIVE): Change hitrate 79->64.
1677 (PRED_OPCODE_NONEQUAL): Change hitrate 91->66.
1678 (PRED_TREE_OPCODE_POSITIVE): Change hitrate 73->64
1679 (PRED_TREE_OPCODE_NONEQUAL): Chnage hitrate 72->66
1680 (PRED_CALL): Chane hitrate 71->67.
1681 (PRED_TREE_EARLY_RETURN): Document issues, change hitrate 61->54.
1682 (PRED_GOTO): Document as unused right now.
1683 (PRED_CONST_RETURN): Change hitrate 67->69
1684 (PRED_NEGATIVE_RETURN): Change hitrate 96->98
1685 (PRED_NULL_RETURN): Change hitrate 91->90.
1686 (PRED_LOOP_IV_COMPARE_GUESS): Change hitrate to 98.
1687 (PRED_FORTRAN_FAIL_ALLOC): Change hitrate to 62; document issues.
1688 (PRED_FORTRAN_SIZE_ZERO): Change hitrate to 99.
1689
1690 2016-06-07 Bill Seurer <seurer@linux.vnet.ibm.com>
1691
1692 * config/rs6000/altivec.h: Add __builtin_vec_mul.
1693 * config/rs6000/rs6000-builtin.def (vec_mul): Change vec_mul to a
1694 special case Altivec builtin.
1695 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
1696 VSX_BUILTIN_VEC_MUL (replaced with special case code).
1697 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
1698 code for ALTIVEC_BUILTIN_VEC_MUL.
1699 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
1700 for __builtin_vec_mul.
1701
1702 2016-06-07 Peter Bergner <bergner@vnet.ibm.com>
1703
1704 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mhtm and
1705 -mno-htm.
1706
1707 2016-06-07 David Malcolm <dmalcolm@redhat.com>
1708
1709 * spellcheck.c (selftest::test_find_closest_string): New function.
1710 (spellcheck_c_tests): Call the above.
1711
1712 2016-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1713
1714 * simplify-rtx.c (simplify_cond_clz_ctz): Delete 'mode' local variable.
1715
1716 2016-06-07 Jakub Jelinek <jakub@redhat.com>
1717
1718 * config/i386/sse.md (avx_vec_concat<mode>): Add v=v,vm and
1719 Yv=Yv,C alternatives.
1720
1721 2016-06-07 Richard Biener <rguenther@suse.de>
1722
1723 PR c/61564
1724 * common.opt (ffast-math): Make Optimization.
1725
1726 2016-06-07 Simon Dardis <simon.dardis@imgtec.com>
1727 Prachi Godbole <prachi.godbole@imgtec.com>
1728
1729 * config/mips/p5600.md (p5600_fpu_fadd): Remove checking for
1730 `fabs' and `fneg' type attributes.
1731 (p5600_fpu_fabs): Add `fmove' to the comment.
1732
1733 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
1734
1735 * gimple.c: Include builtins.h
1736 (gimple_inexpensive_call_p): New function.
1737 * gimple.h (gimple_inexpensive_call_p): Declare.
1738 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use it.
1739 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise;
1740 fix formatting.
1741
1742 2016-06-07 Paolo Carlini <paolo.carlini@oracle.com>
1743
1744 * diagnostic.c (diagnostic_impl, diagnostic_n_impl): New.
1745 (inform, inform_at_rich_loc, inform_n, warning, warning_at,
1746 warning_at_rich_loc, warning_n, pedwarn, permerror,
1747 permerror_at_rich_loc, error, error_n, error_at, error_at_rich_loc,
1748 sorry, fatal_error, internal_error, internal_error_no_backtrace):
1749 Use the above.
1750
1751 2016-06-07 Richard Biener <rguenther@suse.de>
1752
1753 PR tree-optimization/71428
1754 * tree-ssa-math-opts.c (perform_symbolic_merge): Properly distinguish
1755 BIT_FIELD_REF op vs. load.
1756
1757 2016-06-07 Richard Biener <rguenther@suse.de>
1758
1759 PR middle-end/71423
1760 * match.pd ((X | ~Y) -> Y <= X): Properly invert the comparison
1761 for signed ops.
1762
1763 2016-06-06 John David Anglin <danglin@gcc.gnu.org>
1764
1765 * config/pa/pa.md (call): Generate indirect long calls to non-local
1766 functions on TARGET_64BIT.
1767 (call_value): Likewise.
1768
1769 2016-06-06 John David Anglin <danglin@gcc.gnu.org>
1770
1771 * config/pa/pa.md (call_val_reg_64bit): Remove "reg: DI " clobber from
1772 pattern and subsequent splitters.
1773 (call_val_reg_64bit_post_reload): Likewise.
1774
1775 2016-06-07 Kugan Vivekanandarajah <kuganv@linaro.org>
1776
1777 PR middle-end/71408
1778 * tree-ssa-reassoc.c (zero_one_operation): Fix NEGATE_EXPR operand for
1779 propagate_op_to_single_use.
1780
1781 2016-06-07 Kugan Vivekanandarajah <kuganv@linaro.org>
1782
1783 PR middle-end/71281
1784 * tree-ssa-reassoc.c (reassociate_bb): Set uid for negate stmt.
1785
1786 2016-06-07 Uros Bizjak <ubizjak@gmail.com>
1787
1788 * config/i386/i386.h (enum ix86_enitity): Add X86_DIRFLAG.
1789 (enum x86_dirflag_state): New enum.
1790 (NUM_MODES_FOR_MODE_SWITCHING): Add X86_DIRFLAG_ANY.
1791 (machine_function): Remove needs_cld.
1792 (ix86_current_function_needs_cld): Remove.
1793 * config/i386/i386.c (ix86_set_func_type): Set
1794 ix86_optimize_mode_switching[X86_DIRFLAG] to 1.
1795 (ix86_expand_prologue): Do not emit CLD here.
1796 (ix86_dirflag_mode_needed): New function.
1797 (ix86_dirflag_mode_entry): Ditto.
1798 (ix86_mode_needed): Handle X86_DIRFLAG entity.
1799 (ix86_mode_after): Ditto.
1800 (ix86_mode_entry): Ditto.
1801 (ix86_mode_exit): Ditto.
1802 (ix86_emit_mode_set): Ditto.
1803 * config/i386/i386.md (strmov_singleop): Set
1804 ix86_optimize_mode_switching[X86_DIRFLAG] to 1 for TARGET_CLD.
1805 Do not set ix86_current_function_needs_cld.
1806 (rep_mov): Ditto.
1807 (strset_singleop): Ditto.
1808 (rep_stos): Ditto.
1809 (cmpstrnqi_nz_1): Ditto.
1810 (cmpstrnqi_1): Ditto.
1811 (strlenqi_1): Ditto.
1812
1813 2016-06-06 Jakub Jelinek <jakub@redhat.com>
1814
1815 PR tree-optimization/71259
1816 * tree-vect-slp.c (vect_get_constant_vectors): For
1817 VECTOR_BOOLEAN_TYPE_P, return all ones constant instead of
1818 one for constant op, and use COND_EXPR for non-constant.
1819
1820 2016-06-06 David Malcolm <dmalcolm@redhat.com>
1821
1822 * Makefile.in (OBJS): Add function-tests.o,
1823 hash-map-tests.o, hash-set-tests.o, rtl-tests.o,
1824 selftest-run-tests.o.
1825 (OBJS-libcommon): Add selftest.o.
1826 (OBJS-libcommon-target): Add selftest.o.
1827 (all.internal): Add "selftest".
1828 (all.cross): Likewise.
1829 (selftest): New phony target.
1830 (s-selftest): New target.
1831 (selftest-gdb): New phony target.
1832 (COLLECT2_OBJS): Add selftest.o.
1833 * bitmap.c: Include "selftest.h".
1834 (selftest::test_gc_alloc): New function.
1835 (selftest::test_set_range): New function.
1836 (selftest::test_clear_bit_in_middle): New function.
1837 (selftest::test_copying): New function.
1838 (selftest::test_bitmap_single_bit_set_p): New function.
1839 (selftest::bitmap_c_tests): New function.
1840 * common.opt (fself-test): New.
1841 * diagnostic-show-locus.c: Include "selftest.h".
1842 (make_range): New function.
1843 (test_range_contains_point_for_single_point): New function.
1844 (test_range_contains_point_for_single_line): New function.
1845 (test_range_contains_point_for_multiple_lines): New function.
1846 (assert_eq): New function.
1847 (test_get_line_width_without_trailing_whitespace): New function.
1848 (selftest::diagnostic_show_locus_c_tests): New function.
1849 * et-forest.c: Include "selftest.h".
1850 (selftest::test_single_node): New function.
1851 (selftest::test_simple_tree): New function.
1852 (selftest::test_disconnected_nodes): New function.
1853 (selftest::et_forest_c_tests): New function.
1854 * fold-const.c: Include "selftest.h".
1855 (selftest::assert_binop_folds_to_const): New function.
1856 (selftest::assert_binop_folds_to_nonlvalue): New function.
1857 (selftest::test_arithmetic_folding): New function.
1858 (selftest::fold_const_c_tests): New function.
1859 * function-tests.c: New file.
1860 * gimple.c: Include "selftest.h".
1861 Include "gimple-pretty-print.h".
1862 (selftest::verify_gimple_pp): New function.
1863 (selftest::test_assign_single): New function.
1864 (selftest::test_assign_binop): New function.
1865 (selftest::test_nop_stmt): New function.
1866 (selftest::test_return_stmt): New function.
1867 (selftest::test_return_without_value): New function.
1868 (selftest::gimple_c_tests): New function.
1869 * hash-map-tests.c: New file.
1870 * hash-set-tests.c: New file.
1871 * input.c: Include "selftest.h".
1872 (selftest::assert_loceq): New function.
1873 (selftest::test_accessing_ordinary_linemaps): New function.
1874 (selftest::test_unknown_location): New function.
1875 (selftest::test_builtins): New function.
1876 (selftest::test_reading_source_line): New function.
1877 (selftest::input_c_tests): New function.
1878 * rtl-tests.c: New file.
1879 * selftest-run-tests.c: New file.
1880 * selftest.c: New file.
1881 * selftest.h: New file.
1882 * spellcheck.c: Include "selftest.h".
1883 (selftest::levenshtein_distance_unit_test_oneway): New function,
1884 adapted from testsuite/gcc.dg/plugin/levenshtein_plugin.c.
1885 (selftest::levenshtein_distance_unit_test): Likewise.
1886 (selftest::spellcheck_c_tests): Likewise.
1887 * toplev.c: Include selftest.h.
1888 (toplev::run_self_tests): New.
1889 (toplev::main): Handle -fself-test.
1890 * toplev.h (toplev::run_self_tests): New.
1891 * tree.c: Include "selftest.h".
1892 (selftest::test_integer_constants): New function.
1893 (selftest::test_identifiers): New function.
1894 (selftest::test_labels): New function.
1895 (selftest::tree_c_tests): New function.
1896 * tree-cfg.c: Include "selftest.h".
1897 (selftest::push_fndecl): New function.
1898 (selftest::test_linear_chain): New function.
1899 (selftest::test_diamond): New function.
1900 (selftest::test_fully_connected): New function.
1901 (selftest::tree_cfg_c_tests): New function.
1902 * vec.c: Include "selftest.h".
1903 (selftest::safe_push_range): New function.
1904 (selftest::test_quick_push): New function.
1905 (selftest::test_safe_push): New function.
1906 (selftest::test_truncate): New function.
1907 (selftest::test_safe_grow_cleared): New function.
1908 (selftest::test_pop): New function.
1909 (selftest::test_safe_insert): New function.
1910 (selftest::test_ordered_remove): New function.
1911 (selftest::test_unordered_remove): New function.
1912 (selftest::test_block_remove): New function.
1913 (selftest::reverse_cmp): New function.
1914 (selftest::test_qsort): New function.
1915 (selftest::vec_c_tests): New function.c.
1916 * wide-int.cc: Include selftest.h and wide-int-print.h.
1917 (selftest::from_int <wide_int>): New function.
1918 (selftest::from_int <offset_int>): New function.
1919 (selftest::from_int <widest_int>): New function.
1920 (selftest::assert_deceq): New function.
1921 (selftest::assert_hexeq): New function.
1922 (selftest::test_printing <VALUE_TYPE>): New function template.
1923 (selftest::test_ops <VALUE_TYPE>): New function template.
1924 (selftest::test_comparisons <VALUE_TYPE>): New function template.
1925 (selftest::run_all_wide_int_tests <VALUE_TYPE>): New function
1926 template.
1927 (selftest::wide_int_cc_tests): New function.
1928
1929 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1930
1931 PR middle-end/37780
1932 * ifcvt.c (noce_try_ifelse_collapse): New function.
1933 Declare prototype.
1934 (noce_process_if_block): Call noce_try_ifelse_collapse.
1935 * simplify-rtx.c (simplify_cond_clz_ctz): New function.
1936 (simplify_ternary_operation): Use the above to simplify
1937 conditional CLZ/CTZ expressions.
1938
1939 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1940
1941 PR middle-end/37780
1942 * config/aarch64/aarch64.md (ctz<mode>2): Convert to
1943 define_insn_and_split.
1944
1945 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1946
1947 PR middle-end/37780
1948 * config/arm/arm.md (ctzsi2): Convert to define_insn_and_split.
1949
1950 2016-06-06 Bernd Edlinger <bernd.edlinger@hotmail.de>
1951
1952 PR c/24414
1953 * cfgexpand.c (expand_asm_loc): Remove handling for ADDR_EXPR.
1954 Implicitly clobber memory for basic asm with non-empty assembler
1955 string. Use targetm.md_asm_adjust also here.
1956 * compare-elim.c (arithmetic_flags_clobber_p): Use asm_noperands here.
1957 * final.c (final_scan_insn): Handle basic asm in PARALLEL block.
1958 * gimple.c (gimple_asm_clobbers_memory_p): Handle basic asm with
1959 non-empty assembler string.
1960 * ira.c (compute_regs_asm_clobbered): Use asm_noperands here.
1961 * recog.c (asm_noperands): Handle basic asm in PARALLEL block.
1962 (decode_asm_operands): Handle basic asm in PARALLEL block.
1963 (extract_insn): Handle basic asm in PARALLEL block.
1964 * doc/extend.texi: Mention new behavior of basic asm.
1965 * config/ia64/ia64 (rtx_needs_barrier): Handle ASM_INPUT here.
1966 * config/pa/pa.c (branch_to_delay_slot_p, branch_needs_nop_p,
1967 branch_needs_nop_p): Use asm_noperands.
1968
1969 2016-06-06 Jose E. Marchesi <jose.marchesi@oracle.com>
1970
1971 * config/sparc/sparc.md (cpu): Add niagara7 cpu type.
1972 Include the M7 SPARC DFA scheduler.
1973 New attribute v3pipe.
1974 Annotate insns with v3pipe where appropriate.
1975 Define cpu_feature vis4.
1976 Add lzd instruction type and set it on clzdi_sp64 and clzsi_sp64.
1977 Add (V8QI "8") to vbits.
1978 Add insns {add,sub}v8qi3
1979 Add insns ss{add,sub}v8qi3
1980 Add insns us{add,sub}{v8qi,v4hi}3
1981 Add insns {min,max}{v8qi,v4hi,v2si}3
1982 Add insns {minu,maxu}{v8qi,v4hi,v2si}3
1983 Add insns fpcmp{le,gt,ule,ug,ule,ugt}{8,16,32}_vis.
1984 * config/sparc/niagara4.md: Add a comment explaining the
1985 discrepancy between the documented latenty numbers and the
1986 implemented ones.
1987 * config/sparc/niagara7.md: New file.
1988 * configure.ac (HAVE_AS_SPARC5_VIS4): Define if the assembler
1989 supports SPARC5 and VIS 4.0 instructions.
1990 * configure: Regenerate.
1991 * config.in: Likewise.
1992 * config.gcc: niagara7 is a supported cpu in sparc*-*-* targets.
1993 * config/sparc/sol2.h (ASM_CPU32_DEFAUILT_SPEC): Set for
1994 TARGET_CPU_niagara7.
1995 (ASM_CPU64_DEFAULT_SPEC): Likewise.
1996 (CPP_CPU_SPEC): Handle niagara7.
1997 (ASM_CPU_SPEC): Likewise.
1998 * config/sparc/sparc-opts.h (processor_type): Add
1999 PROCESSOR_NIAGARA7.
2000 (mvis4): New option.
2001 * config/sparc/sparc.h (TARGET_CPU_niagara7): Define.
2002 (AS_NIAGARA7_FLAG): Define.
2003 (ASM_CPU64_DEFAULT_SPEC): Set for niagara7.
2004 (CPP_CPU64_DEFAULT_SPEC): Likewise.
2005 (CPP_CPU_SPEC): Handle niagara7.
2006 (ASM_CPU_SPEC): Likewise.
2007 * config/sparc/sparc.c (niagara7_costs): Define.
2008 (sparc_option_override): Handle niagara7 and adjust cache-related
2009 parameters with better values for niagara cpus. Also support VIS4.
2010 (sparc32_initialize_trampoline): Likewise.
2011 (sparc_use_sched_lookahead): Likewise.
2012 (sparc_issue_rate): Likewise.
2013 (sparc_register_move_cost): Likewise.
2014 (dump_target_flag_bits): Support VIS4.
2015 (sparc_vis_init_builtins): Likewise.
2016 (sparc_builtins): Likewise.
2017 * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__ for
2018 VIS4 4.0.
2019 * config/sparc/driver-sparc.c (cpu_names): Add SPARC-M7 and
2020 UltraSparc M7.
2021 * config/sparc/sparc.opt (sparc_processor_type): New value
2022 niagara7.
2023 * config/sparc/visintrin.h (__attribute__): Prototypes for the
2024 VIS4 builtins.
2025 * doc/invoke.texi (SPARC Options): Document -mcpu=niagara7 and
2026 -mvis4.
2027 * doc/extend.texi (SPARC VIS Built-in Functions): Document the
2028 VIS4 builtins.
2029
2030 2016-06-06 Jonathan Wakely <jwakely@redhat.com>
2031
2032 * doc/sourcebuild.texi (Directives): Remove extra closing braces.
2033
2034 2016-06-06 Richard Biener <rguenther@suse.de>
2035
2036 PR tree-optimization/71398
2037 * tree-ssa-loop-ivcanon.c (unloop_loops): First unloop, then
2038 remove edges.
2039
2040 2016-06-05 James Bowman <james.bowman@ftdichip.com>
2041
2042 * config/ft32/ft32.c (ft32_setup_incoming_varargs,
2043 ft32_expand_prolog, ft32_expand_epilogue):
2044 Handle pretend_args.
2045 * config/ft32/ft32.h: Remove OUTGOING_REG_PARM_STACK_SPACE.
2046 * config/ft32/ft32.md: Add pretend_returner.
2047
2048 2016-06-06 Uros Bizjak <ubizjak@gmail.com>
2049
2050 PR target/71389
2051 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
2052 Copy op1 RTX to avoid invalid sharing.
2053 (ix86_expand_vector_move_misalign): Ditto.
2054
2055 2016-06-05 John David Anglin <danglin@gcc.gnu.org>
2056
2057 * expr.c (move_by_pieces_d::generate): Mark mode parameter with
2058 ATTRIBUTE_UNUSED.
2059
2060 2016-06-05 Jan Hubicka <hubicka@ucw.cz>
2061
2062 * predict.c (predicted_by_loop_heuristics_p): New function.
2063 (predict_iv_comparison): Use it.
2064 (predict_loops): Walk from innermost loops; do not predict edges
2065 leaving multiple loops multiple times; implement
2066 PRED_LOOP_ITERATIONS_MAX heuristics.
2067 * predict.def (PRED_LOOP_ITERATIONS_MAX): New predictor.
2068
2069 2016-06-05 Jan Hubicka <hubicka@ucw.cz>
2070
2071 * cfg.c (check_bb_profile): Do not report mismatched profiles when
2072 only edges out of BB are EH edges.
2073
2074 2016-06-04 Martin Sebor <msebor@redhat.com>
2075 Marcin Baczyński <marbacz@gmail.com>
2076
2077 PR c/48116
2078 * doc/invoke.texi (-Wreturn-type): Mention not warning on return with
2079 a void expression in a void function.
2080
2081 2016-06-03 Jan Hubicka <hubicka@ucw.cz>
2082
2083 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Do not check
2084 aux; dump reasons of decisions.
2085 (should_duplicate_loop_header_p): Likewise.
2086 (do_while_loop_p): Likewise.
2087 (ch_base::copy_headers): Dump asi num insns duplicated.
2088
2089 2016-06-04 Jakub Jelinek <jakub@redhat.com>
2090
2091 PR tree-optimization/71405
2092 * tree-ssa.c (execute_update_addresses_taken): For clobber with
2093 incompatible type, build a new clobber with the right type instead
2094 of building a VIEW_CONVERT_EXPR around it.
2095
2096 2016-06-04 Oleg Endo <olegendo@gcc.gnu.org>
2097
2098 PR tree-optimization/52171
2099 * config/sh/sh.c (sh_use_by_pieces_infrastructure_p): Use
2100 by_pieces_ninsns instead of move_by_pieces_ninsns.
2101
2102 2016-06-04 Oleg Endo <olegendo@gcc.gnu.org>
2103
2104 * config/sh/sh.c (sh_print_operand_address): Don't use hardcoded 'r0'
2105 for reg+reg addressing mode.
2106
2107 2016-06-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2108
2109 * rs6000-c.c (c/c-tree.h): Add #include.
2110 (altivec_resolve_overloaded_builtin): Handle ARRAY_TYPE arguments
2111 in C++ when found in the base position of vec_ld or vec_st.
2112
2113 2016-06-03 Jan Hubicka <hubicka@ucw.cz>
2114
2115 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Avoid
2116 use of profile unless profile status is PROFILE_READ.
2117 * profile.c (compute_branch_probabilities): Set profile status
2118 only after reporting predictor hitrates.
2119
2120 2016-06-03 Joseph Myers <joseph@codesourcery.com>
2121
2122 PR target/71276
2123 PR target/71277
2124 * common.opt (ffp-int-builtin-inexact): New option.
2125 * doc/invoke.texi (-fno-fp-int-builtin-inexact): Document.
2126 * doc/md.texi (floor@var{m}2, btrunc@var{m}2, round@var{m}2)
2127 (ceil@var{m}2): Document dependence on this option.
2128 * ipa-inline-transform.c (inline_call): Handle
2129 flag_fp_int_builtin_inexact.
2130 * ipa-inline.c (can_inline_edge_p): Likewise.
2131 * config/i386/i386.md (rintxf2): Do not test
2132 flag_unsafe_math_optimizations.
2133 (rint<mode>2_frndint): New define_insn.
2134 (rint<mode>2): Do not test flag_unsafe_math_optimizations for 387
2135 or !flag_trapping_math for SSE. Just use gen_rint<mode>2_frndint
2136 for 387 instead of extending and truncating.
2137 (frndintxf2_<rounding>): Test flag_fp_int_builtin_inexact ||
2138 !flag_trapping_math instead of flag_unsafe_math_optimizations.
2139 Change to frndint<mode>2_<rounding>.
2140 (frndintxf2_<rounding>_i387): Likewise. Change to
2141 frndint<mode>2_<rounding>_i387.
2142 (<rounding_insn>xf2): Likewise.
2143 (<rounding_insn><mode>2): Test flag_fp_int_builtin_inexact ||
2144 !flag_trapping_math instead of flag_unsafe_math_optimizations for
2145 x87. Test TARGET_ROUND || !flag_trapping_math ||
2146 flag_fp_int_builtin_inexact instead of !flag_trapping_math for
2147 SSE. Use ROUND_NO_EXC in constant operand of
2148 gen_sse4_1_round<mode>2. Just use gen_frndint<mode>2_<rounding>
2149 for 387 instead of extending and truncating.
2150
2151 2016-06-03 H.J. Lu <hongjiu.lu@intel.com>
2152 Julia Koval <julia.koval@intel.com>
2153
2154 PR target/66960
2155 PR target/67630
2156 PR target/67634
2157 PR target/67841
2158 PR target/68037
2159 PR target/68618
2160 PR target/68661
2161 PR target/69575
2162 PR target/69596
2163 PR target/69734
2164 * config/i386/i386-protos.h (ix86_epilogue_uses): New prototype.
2165 * config/i386/i386.c (ix86_conditional_register_usage): Preserve
2166 all registers, except for function return registers if there are
2167 no caller-saved registers.
2168 (ix86_set_func_type): New function.
2169 (ix86_set_current_function): Call ix86_set_func_type to set
2170 no_caller_saved_registers and func_type. Call reinit_regs if
2171 caller-saved registers are changed. Don't allow MPX, SSE, MMX
2172 nor x87 instructions in interrupt handler nor function with
2173 no_caller_saved_registers attribute.
2174 (ix86_function_ok_for_sibcall): Return false if there are no
2175 caller-saved registers.
2176 (type_natural_mode): Don't warn ABI change for MMX in interrupt
2177 handler.
2178 (ix86_function_arg_advance): Skip for callee in interrupt handler.
2179 (ix86_function_arg): Return special arguments in interrupt handler.
2180 (ix86_promote_function_mode): Promote pointer to word_mode only
2181 for normal functions.
2182 (ix86_can_use_return_insn_p): Don't use `ret' instruction in
2183 interrupt handler.
2184 (ix86_epilogue_uses): New function.
2185 (ix86_hard_regno_scratch_ok): Likewise.
2186 (ix86_save_reg): Preserve all registers in interrupt handler
2187 after reload. Preserve all registers, except for function return
2188 registers, if there are no caller-saved registers after reload.
2189 (find_drap_reg): Always use callee-saved register if there are
2190 no caller-saved registers.
2191 (ix86_minimum_incoming_stack_boundary): Return MIN_STACK_BOUNDARY
2192 for interrupt handler.
2193 (ix86_expand_prologue): Don't allow DRAP in interrupt handler.
2194 Emit cld instruction if stringops are used in interrupt handler
2195 or interrupt handler isn't a leaf function.
2196 (ix86_expand_epilogue): Generate interrupt return for interrupt
2197 handler and pop the 'ERROR_CODE' off the stack before interrupt
2198 return in exception handler.
2199 (ix86_expand_call): Disallow calling interrupt handler directly.
2200 If there are no caller-saved registers, mark all registers that
2201 are clobbered by the call which returns as clobbered.
2202 (ix86_handle_no_caller_saved_registers_attribute): New function.
2203 (ix86_handle_interrupt_attribute): Likewise.
2204 (ix86_attribute_table): Add interrupt and no_caller_saved_registers
2205 attributes.
2206 (TARGET_HARD_REGNO_SCRATCH_OK): Likewise.
2207 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use argument
2208 accumulation in interrupt function if stack may be realigned to
2209 avoid DRAP.
2210 (EPILOGUE_USES): New.
2211 (function_type): New enum.
2212 (machine_function): Add func_type and no_caller_saved_registers.
2213 * config/i386/i386.md (UNSPEC_INTERRUPT_RETURN): New.
2214 (interrupt_return): New pattern.
2215 * doc/extend.texi: Document x86 interrupt and
2216 no_caller_saved_registers attributes.
2217
2218 2016-06-03 Bernd Schmidt <bschmidt@redhat.com>
2219
2220 PR tree-optimization/52171
2221 * builtins.c (expand_cmpstrn_or_cmpmem): Delete, moved elsewhere.
2222 (expand_builtin_memcmp): New arg RESULT_EQ. All callers changed.
2223 Look for constant strings. Move some code to emit_block_cmp_hints
2224 and use it.
2225 * builtins.def (BUILT_IN_MEMCMP_EQ): New.
2226 * defaults.h (COMPARE_MAX_PIECES): New macro.
2227 * expr.c (move_by_pieces_d, store_by_pieces_d): Remove old structs.
2228 (move_by_pieces_1, store_by_pieces_1, store_by_pieces_2): Remvoe.
2229 (clear_by_pieces_1): Don't declare. Move definition before use.
2230 (can_do_by_pieces): New static function.
2231 (can_move_by_pieces): Use it. Return bool.
2232 (by_pieces_ninsns): Renamed from move_by_pieces_ninsns. New arg
2233 OP. All callers changed. Handle COMPARE_BY_PIECES.
2234 (class pieces_addr); New.
2235 (pieces_addr::pieces_addr, pieces_addr::decide_autoinc,
2236 pieces_addr::adjust, pieces_addr::increment_address,
2237 pieces_addr::maybe_predec, pieces_addr::maybe_postinc): New member
2238 functions for it.
2239 (class op_by_pieces_d): New.
2240 (op_by_pieces_d::op_by_pieces_d, op_by_pieces_d::run): New member
2241 functions for it.
2242 (class move_by_pieces_d, class compare_by_pieces_d,
2243 class store_by_pieces_d): New subclasses of op_by_pieces_d.
2244 (move_by_pieces_d::prepare_mode, move_by_pieces_d::generate,
2245 move_by_pieces_d::finish_endp, store_by_pieces_d::prepare_mode,
2246 store_by_pieces_d::generate, store_by_pieces_d::finish_endp,
2247 compare_by_pieces_d::generate, compare_by_pieces_d::prepare_mode,
2248 compare_by_pieces_d::finish_mode): New member functions.
2249 (compare_by_pieces, emit_block_cmp_via_cmpmem): New static
2250 functions.
2251 (expand_cmpstrn_or_cmpmem): Moved here from builtins.c.
2252 (emit_block_cmp_hints): New function.
2253 (move_by_pieces, store_by_pieces, clear_by_pieces): Rewrite to just
2254 use the newly defined classes.
2255 * expr.h (by_pieces_constfn): New typedef.
2256 (can_store_by_pieces, store_by_pieces): Use it in arg declarations.
2257 (emit_block_cmp_hints, expand_cmpstrn_or_cmpmem): Declare.
2258 (move_by_pieces_ninsns): Don't declare.
2259 (can_move_by_pieces): Change return value to bool.
2260 * target.def (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): Update docs.
2261 (compare_by_pieces_branch_ratio): New hook.
2262 * target.h (enum by_pieces_operation): Add COMPARE_BY_PIECES.
2263 (by_pieces_ninsns): Declare.
2264 * targethooks.c (default_use_by_pieces_infrastructure_p): Handle
2265 COMPARE_BY_PIECES.
2266 (default_compare_by_pieces_branch_ratio): New function.
2267 * targhooks.h (default_compare_by_pieces_branch_ratio): Declare.
2268 * doc/tm.texi.in (STORE_MAX_PIECES, COMPARE_MAX_PIECES): Document.
2269 * doc/tm.texi: Regenerate.
2270 * tree-ssa-strlen.c: Include "builtins.h".
2271 (handle_builtin_memcmp): New static function.
2272 (strlen_optimize_stmt): Call it for BUILT_IN_MEMCMP.
2273 * tree.c (build_common_builtin_nodes): Create __builtin_memcmp_eq.
2274
2275 2016-06-03 Alan Hayward <alan.hayward@arm.com>
2276
2277 * tree-vect-stmts.c (vect_stmt_relevant_p): Do not vectorize non live
2278 relevant stmts which are simple and invariant.
2279 * tree-vect-loop.c (vectorizable_live_operation): Check relevance
2280 instead of simple and invariant
2281
2282 2016-06-03 Alan Hayward <alan.hayward@arm.com>
2283
2284 * tree-vect-loop.c (vect_analyze_loop_operations): Allow live stmts.
2285 (vectorizable_reduction): Check for new relevant state.
2286 (vectorizable_live_operation): vectorize live stmts using
2287 BIT_FIELD_REF. Remove special case for gimple assigns stmts.
2288 * tree-vect-stmts.c (is_simple_and_all_uses_invariant): New function.
2289 (vect_stmt_relevant_p): Check for stmts which are only used live.
2290 (process_use): Use of a stmt does not inherit it's live value.
2291 (vect_mark_stmts_to_be_vectorized): Simplify relevance inheritance.
2292 (vect_analyze_stmt): Check for new relevant state.
2293 * tree-vectorizer.h (vect_relevant): New entry for a stmt which is used
2294 outside the loop, but not inside it.
2295
2296 2016-06-03 Alan Hayward <alan.hayward@arm.com>
2297
2298 * tree-vectorizer.h (vect_get_vec_def_for_operand_1): New.
2299 * tree-vect-stmts.c (vect_get_vec_def_for_operand_1): New.
2300 (vect_get_vec_def_for_operand): Split out code.
2301
2302 2016-06-03 Segher Boessenkool <segher@kernel.crashing.org>
2303
2304 * config/rs6000/rs6000.md (define_peepholes for two mfcr's): Delete.
2305
2306 2016-06-03 Alan Hayward <alan.hayward@arm.com>
2307
2308 * tree-vect-stmts.c (vectorizable_call) Remove GOMP_SIMD_LANE code.
2309
2310 2016-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2311
2312 * config/arm/thumb1.md (*thumb1_mulsi3): Fix typos in comment.
2313
2314 2016-06-03 Jakub Jelinek <jakub@redhat.com>
2315
2316 PR middle-end/71387
2317 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): If redirecting
2318 to noreturn e->callee->decl that has void return type and void
2319 arguments, adjust gimple_call_fntype and remove lhs even if it had
2320 previously addressable type.
2321
2322 2016-06-02 Jeff Law <law@redhat.com>
2323
2324 PR tree-optimization/71328
2325 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix off-by-one
2326 error when checking for a jump back onto the copied path.
2327
2328 2016-06-02 David Malcolm <dmalcolm@redhat.com>
2329
2330 * config/microblaze/microblaze.c (get_branch_target): Add return
2331 NULL_RTX for the non-CALL_P case.
2332 (insert_wic_for_ilb_runout): Remove unused local "wic_addr1".
2333 (insert_wic): Remove unused local "j".
2334
2335 2016-06-02 Martin Liska <mliska@suse.cz>
2336
2337 * predict.def: Fix typo in PRED_FORTRAN_FAIL_IO display name.
2338
2339 2016-06-02 H.J. Lu <hongjiu.lu@intel.com>
2340 Julia Koval <julia.koval@intel.com>
2341
2342 * function.c (assign_parm_setup_stack): Force source into a
2343 register if needed.
2344 * target.def (function_incoming_arg): Update documentation to
2345 allow arbitrary address computation based on hard register.
2346 * doc/tm.texi: Regenerated.
2347
2348 2016-06-02 Martin Liska <mliska@suse.cz>
2349
2350 * predict.c (combine_predictions_for_bb): Fix first match in
2351 cases where a first predictor contains more than one occurence
2352 in list of predictors. Take the best value in such case.
2353
2354 2016-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2355
2356 PR rtl-optimization/71295
2357 * rtlanal.c (subreg_get_info): If taking a subreg at the requested
2358 offset would go over the size of the inner mode reject it.
2359
2360 2016-06-02 Jakub Jelinek <jakub@redhat.com>
2361
2362 * config/i386/sse.md (*vec_concatv4si): Use v=v,v instead of
2363 x=x,x and v=v,m instead of x=x,m.
2364
2365 * config/i386/sse.md (*vec_concatv2si_sse4_1): Add avx512dq v=Yv,rm
2366 alternative. Change x=x,x alternative to v=Yv,Yv and x=rm,C
2367 alternative to v=rm,C.
2368
2369 * config/i386/sse.md (*vec_concatv2di): Add x86_avx512dq v=Yv,rm
2370 alternative. Change x=xm,C alternative to v=vm,C, x=x,x alternative
2371 to v=Yv,Yv and x=x,m to v=v,m. Use maybe_evex prefix attribute
2372 instead of vex for the last two above mentioned alternatives.
2373
2374 2016-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2375
2376 PR target/70830
2377 * config/arm/arm.c (arm_output_multireg_pop): Guard "pop" on update.
2378
2379 2016-06-02 Segher Boessenkool <segher@kernel.crashing.org>
2380
2381 * config/rs6000/dfp.md (trunctddd2): Correct the "length" attribute.
2382
2383 2016-06-01 David Malcolm <dmalcolm@redhat.com>
2384
2385 * config/rl78/rl78.c (rl78_expand_prologue): Convert local
2386 from int to unsigned.
2387
2388 2016-05-31 Michael Meissner <meissner@linux.vnet.ibm.com>
2389
2390 * config/rs6000/vsx.md (vsx_splat_<mode>, V2DI/V2DF): Simplify
2391 alternatives, eliminating preferred register class. Add support
2392 for the MTVSRDD instruction in ISA 3.0.
2393 (vsx_splat_v4si_internal): Use splat_input_operand instead of
2394 reg_or_indexed_operand.
2395 (vsx_splat_v4sf_internal): Likewise.
2396
2397 2016-05-31 Michael Meissner <meissner@linux.vnet.ibm.com>
2398
2399 PR target/71186
2400 * config/rs6000/vsx.md (xxspltib_<mode>_nosplit): Add alternatives
2401 for loading up all 0's or all 1's.
2402
2403 2016-06-01 Thomas Preud'homme <thomas.preudhomme@arm.com>
2404
2405 * doc/sourcebuild.texi (arm_acq_rel): Document new effective target.
2406
2407 2016-06-01 Eduard Sanou <dhole@openmailbox.org>
2408
2409 * doc/cppenv.texi: Note that the `%s` in `date` is a non-standard
2410 extension.
2411 * gcc.c (driver_handle_option): Call set_source_date_epoch_envvar.
2412 * gcc.c (set_source_date_epoch_envvar): New function, sets
2413 the SOURCE_DATE_EPOCH environment variable to the current time.
2414
2415 2016-06-01 Eric Botcazou <ebotcazou@adacore.com>
2416
2417 * tree-vect-loop.c (vect_determine_vectorization_factor): Also compute
2418 the factor for live Phi nodes.
2419
2420 2016-06-01 Jan Hubicka <hubicka@ucw.cz>
2421
2422 * loop-dolop.c (doloop_optimize): Us likely max iteration bound.
2423 * tree-parloops.c (parallelize_loops): likewise.
2424 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop,
2425 tree_unswitch_outer_loop): likewise.
2426
2427 2016-06-01 Jakub Jelinek <jakub@redhat.com>
2428
2429 PR middle-end/71371
2430 * gimplify.c (gimplify_omp_for): Temporarily clear gimplify_omp_ctxp
2431 around creation of the temporary.
2432
2433 2016-06-01 Richard Biener <rguenther@suse.de>
2434
2435 PR tree-optimization/71366
2436 * tree-ssa-loop-ivcanon.c (edges_to_remove): New global.
2437 (unloop_loops): Move removing edges here ...
2438 (try_unroll_loop_completely): ... from here.
2439 (try_peel_loop): ... and here.
2440 (tree_unroll_loops_completely_1): Track parent loops via
2441 bitmap of header BBs.
2442 (tree_unroll_loops_completely): Adjust for that.
2443
2444 2016-06-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
2445
2446 * config/rs6000/altivec.h (vec_slv): New macro.
2447 (vec_srv): New macro.
2448 * config/rs6000/altivec.md (UNSPEC_VSLV): New value.
2449 (UNSPEC_VSRV): New value.
2450 (vslv): New insn.
2451 (vsrv): New insn.
2452 * config/rs6000/rs6000-builtin.def (vslv): New builtin definition.
2453 (vsrv): New builtin definition.
2454 * config/rs6000/rs6000-c.c (P9V_BUILTIN_VSLV): Macro expansion to
2455 define argument types for new builtin.
2456 (P9V_BUILTIN_VSRV): Macro expansion to define argument types for
2457 new builtin.
2458 * doc/extend.texi: Document the new vec_vslv and vec_srv built-in
2459 functions.
2460
2461 2016-06-01 Uros Bizjak <ubizjak@gmail.com>
2462 Jocelyn Mayer <l_indien@magic.fr>
2463
2464 PR target/67310
2465 * config/i386/driver-i386.c (host_detect_local_cpu): Correctly
2466 detect processor family for signature_CENTAUR_ebx.
2467 <case PROCESSOR_I486>: Pass c3, winchip2 or winchip-c6 for
2468 signature_CENTAUR_ebx.
2469 <case PROCESSOR _PENTIUMPRO>: Pass c3-2 for signature_CENTAUR_ebx.
2470 <default>: Pass x86-64 for has_longmode.
2471
2472 2016-06-01 Nathan Sidwell <nathan@acm.org>
2473
2474 * config/nvptx/nvptx.c (nvptx_assemble_undefined_decl): Reject
2475 undefined weak.
2476
2477 2016-06-01 Richard Biener <rguenther@suse.de>
2478
2479 PR tree-optimization/71261
2480 * tree-vect-patterns.c (check_bool_pattern): Gather a hash-set
2481 of stmts successfully put in the bool pattern. Remove
2482 single-use restriction.
2483 (adjust_bool_pattern_cast): Add cast at the use site via the
2484 pattern def sequence.
2485 (adjust_bool_pattern): Remove recursion, maintain a hash-map
2486 of patterned defs. Use the pattern def seqence instead of
2487 multiple independent patterns.
2488 (sort_after_uid): New qsort compare function.
2489 (adjust_bool_stmts): New function to process stmts in the bool
2490 pattern in IL order.
2491 (vect_recog_bool_pattern): Adjust.
2492 * tree-if-conv.c (ifcvt_split_def_stmt): Remove.
2493 (ifcvt_walk_pattern_tree): Likewise.
2494 (stmt_is_root_of_bool_pattern): Likewise.
2495 (ifcvt_repair_bool_pattern): Likewise.
2496 (tree_if_conversion): Do not call ifcvt_repair_bool_pattern.
2497
2498 2016-06-01 Jan Hubicka <hubicka@ucw.cz>
2499
2500 * loop-unroll.c (decide_unroll_constant_iterations,
2501 decide_unroll_runtime_iterations, decide_unroll_stupid): Use
2502 likely upper bounds.
2503 * loop-iv.c (find_simple_exit): Dump likely upper bounds.
2504
2505 2016-06-01 Thomas Schwinge <thomas@codesourcery.com>
2506
2507 * tree-core.h (enum omp_clause_code): Remove
2508 OMP_CLAUSE_DEVICE_RESIDENT. Adjust all users.
2509
2510 2016-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2511
2512 * config/arm/sync.md (arm_store_exclusive<mode>):
2513 Use 'H' output modifier on operands[2] rather than creating a new
2514 entry in out-of-bounds memory of the operands array.
2515 (arm_store_release_exclusivedi): Likewise.
2516
2517 2016-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2518
2519 * config/arm/arm.c (arm_fusion_enabled_p): New function.
2520 * config/arm/arm-protos.h (arm_fusion_enabled_p): Declare prototype.
2521 * config/arm/crypto.md (crypto_<crypto_pattern>, CRYPTO_UNARY):
2522 Add "=w,0" alternative. Enable it when AES/AESMC fusion is enabled.
2523
2524 2016-06-01 Eric Botcazou <ebotcazou@adacore.com>
2525
2526 * tree-vect-loop.c (vect_determine_vectorization_factor): Also take
2527 into account live statements for mask producers.
2528
2529 2016-06-01 Richard Biener <rguenther@suse.de>
2530
2531 PR tree-optimization/71311
2532 * match.pd (@0 < @1 && @0 < @2 -> @0 < min(@1,@2)): Add :c and
2533 restrict to non-INTEGER_CST @0.
2534
2535 2016-06-01 Richard Biener <rguenther@suse.de>
2536
2537 * match.pd ((A & B) - (A & ~B) -> B - (A ^ B)): Add missing :c.
2538 (relational patterns): Use :c to avoid pattern duplications.
2539
2540 2016-06-01 Richard Biener <rguenther@suse.de>
2541
2542 * genmatch.c (comparison_code_p): New predicate.
2543 (swap_tree_comparison): New function.
2544 (commutate): Add for_vec parameter to append new for entries.
2545 Support commutating relational operators by swapping it alongside
2546 operands.
2547 (lower_commutative): Adjust.
2548 (dt_simplify::gen): Do not pass artificial operators to gen
2549 functions.
2550 (decision_tree::gen): Do not add artificial operators as parameters.
2551 (parser::parse_expr): Verify operator commutativity when :c is
2552 applied. Allow :C to override this.
2553 * match.pd: Adjust patterns to use :C instead of :c where required.
2554
2555 2016-06-01 Patrick Palka <ppalka@gcc.gnu.org>
2556
2557 PR tree-optimization/71077
2558 * tree-ssa-threadedge.c (simplify_control_stmt_condition_1): In
2559 the combining step, use boolean_false_node and boolean_true_node
2560 as the designated false/true return values.
2561
2562 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
2563
2564 * predict.def (PRED_LOOP_EXTRA_EXIT): Define.
2565 * predict.c (predict_iv_comparison): Also check PRED_LOOP_EXTRA_EXIT.
2566 (predict_extra_loop_exits): Use PRED_LOOP_EXTRA_EXIT instead of
2567 PRED_LOOP_EXIT.
2568
2569 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
2570
2571 * doc/invoke.texi (-frename-registers): Drop -fpeel-loops from list
2572 of flags impliying the register renaming.
2573 * toplev.c (process_options): Do not imply flag_rename_registers with
2574 loop peeling.
2575
2576 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
2577
2578 * config/sh/sh.h (ASM_OUTPUT_SYMBOL_REF): Remove macro and use the
2579 default implementation.
2580
2581 2016-05-31 Nathan Sidwell <nathan@acm.org>
2582
2583 * dwarf2out.c (cur_line_info_table): Add GTY marker.
2584
2585 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
2586
2587 * config/sh/constraints.md (b): Remove constraint.
2588 * config/sh/predicates.md (arith_reg_operand): Remove
2589 TARGET_REGISTER_P.
2590 * config/sh/sh-modes.def (PDI): Remove.
2591 * config/sh/sh.c (sh_target_reg_class,
2592 sh_optimize_target_register_callee_saved): Remove functions.
2593 (sh_option_override): Don't set MASK_SAVE_ALL_TARGET_REGS.
2594 (sh_expand_epilogue): Update comment.
2595 (sh_hard_regno_mode_ok, sh_register_move_cost, calc_live_regs,
2596 sh_secondary_reload): Remove TARGET_REGS related code.
2597 * config/sh/sh.h (FIRST_TARGET_REG, LAST_TARGET_REG,
2598 TARGET_REGISTER_P): Remove macros.
2599 (SH_DBX_REGISTER_NUMBER, REG_ALLOC_ORDER): Remove target regs.
2600 * config/sh/sh.md (PR_MEDIA_REG, T_MEDIA_REG, FR23_REG, TR0_REG,
2601 TR1_REG, TR2_REG): Remove constants.
2602 * config/sh/sh.opt (SAVE_ALL_TARGET_REGS): Remove.
2603
2604 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
2605
2606 * config/sh/sh.md (adddi3, subdi3, negdi2, abs<mode>2): Remove
2607 define_expand patterns.
2608 (adddi3_compact): Rename to adddi3.
2609 (subdi3_compact): Rename to subdi3.
2610 (*negdi2): Rename to negdi2.
2611 (*abs<mode>2): Rename to abs<mode>2.
2612
2613 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
2614
2615 * config/rx/rx.md (FETCHOP_NO_MINUS): New code iterator.
2616 (atomic_<fetchop_name>_fetchsi): Extract minus operator into ...
2617 (atomic_sub_fetchsi): ... this new pattern.
2618 (mvtc): Add CC_REG clobber.
2619
2620 2016-05-31 Marek Polacek <polacek@redhat.com>
2621
2622 * gimplify.c (gimplify_switch_expr): Also handle GIMPLE_TRY.
2623
2624 2016-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2625
2626 * config/aarch64/aarch64.c (aarch_macro_fusion_pair_p): Use
2627 aarch64_fusion_enabled_p to check for fusion capabilities.
2628
2629 2016-05-31 Richard Biener <rguenther@suse.de>
2630
2631 PR tree-optimization/71352
2632 * tree-ssa-reassoc.c (zero_one_operation): Handle op equal to
2633 minus one and a negate.
2634
2635 2016-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2636
2637 * config/aarch64/aarch64.c (aarch64_simd_attr_length_move): Delete.
2638 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
2639 Delete prototype.
2640 * config/aarch64/iterators.md (insn_count): Add descriptive comment.
2641 * config/aarch64/aarch64-simd.md (*aarch64_mov<mode>, VSTRUCT modes):
2642 Remove use of aarch64_simd_attr_length_move, set length attribute
2643 directly.
2644 (*aarch64_be_movoi): Likewise.
2645 (*aarch64_be_movci): Likewise.
2646 (*aarch64_be_movxi): Likewise.
2647
2648 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
2649
2650 * loop-init.c (gate): Do not enale RTL loop unroller with -fpeel-loops.
2651 It no longer does that.
2652 * toplev.c (process_options): Do not enable flag_web with -fpeel-loops.
2653
2654 2016-05-31 Wladimir J. van der Laan <laanwj@gmail.com>
2655
2656 * config/aarch64/arm_neon.h (vdupb_laneq_s8): Remove spurious
2657 attribute __unused__.
2658
2659 2016-05-31 Thomas Preud'homme <thomas.preudhomme@arm.com>
2660
2661 * config/arm/arm-protos.h (arm_arch_thumb1): Declare.
2662 * config/arm/arm.c (arm_arch_thumb1): Define.
2663 (arm_option_override): Initialize arm_arch_thumb1.
2664 * config/arm/arm.h (arm_arch_thumb1): Declare.
2665 (TARGET_ARM_ARCH_ISA_THUMB): Use arm_arch_thumb to determine if target
2666 support Thumb-1 ISA.
2667
2668 2016-05-31 Kirill Yukhin <kirill.yukhin@intel.com>
2669
2670 PR target/71346
2671 * config/i386/sse.md (define_insn_and_split "*vec_extractv4sf_0"): Use
2672 `Yv' for scalar operand.
2673
2674 2016-05-31 Tom de Vries <tom@codesourcery.com>
2675
2676 PR tree-optimization/69068
2677 * graphite-isl-ast-to-gimple.c (copy_bb_and_scalar_dependences): Handle
2678 phis with more than two args.
2679
2680 2016-05-30 Andreas Tobler <andreast@gcc.gnu.org>
2681
2682 * config.gcc: Move hard float support for arm*hf*-*-freebsd* into
2683 armv6*-*-freebsd* for FreeBSD 11. Eliminate the arm*hf*-*-freebsd*
2684 target.
2685
2686 2016-05-30 Jose E. Marchesi <jose.marchesi@oracle.com>
2687
2688 * config.gcc (sparc*-*-*): Support cpu_32, cpu_64, tune_32 and
2689 tune_64.
2690 * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
2691 support on SPARC.
2692 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Add entries for
2693 cpu_32, cpu_64, tune_32 and tune_64.
2694 * config/sparc/sol2.h (OPTION_DEFAULT_SPECS): Likewise.
2695
2696 2016-05-30 Uros Bizjak <ubizjak@gmail.com>
2697
2698 * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
2699
2700 2016-05-30 Andi Kleen <ak@linux.intel.com>
2701
2702 * auto-profile.c (read_profile): Replace asserts with errors
2703 when file does not exist.
2704 * gcov-io.c (gcov_read_words): Dito.
2705
2706 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
2707
2708 * tree-cfg.c (print_loop): Print likely upper bounds.
2709
2710 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
2711
2712 * doc/invoke.texi (-fpeel-loops,-O3): Update documentation.
2713 * opts.c (default_options): Enable peel loops at -O3.
2714 * tree-ssa-loop-ivcanon.c (peeled_loops): New static var.
2715 (try_peel_loop): Do not re-peel already peeled loops;
2716 use likely upper bounds; fix profile updating.
2717 (pass_complete_unroll::execute): Initialize peeled_loops.
2718
2719 2016-05-30 Martin Liska <mliska@suse.cz>
2720
2721 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Scale
2722 computed costs by frequency of BB they belong to.
2723 (get_scaled_computation_cost_at): New function.
2724
2725 2016-05-30 Alexander Monakov <amonakov@ispras.ru>
2726 Marc Glisse <marc.glisse@inria.fr>
2727
2728 PR tree-optimization/71289
2729 * match.pd (-1 / B < A, A > -1 / B): New transformations.
2730
2731 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
2732
2733 * tree-vect-loop.c (vect_transform_loop): Update likely bounds.
2734
2735 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
2736
2737 * tree-ssa-loop-ivcanon.c (try_peel_loop): Correctly set wont_exit
2738 for peeled copies; avoid underflow when updating estimates; correctly
2739 scale loop profile.
2740
2741 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
2742
2743 * tree-ssa-reassoc.ci (swap_ops_for_binary_stmt): Fix typo from commit
2744 r236875. Corrected oe3 to oe2 as obvious.
2745
2746 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
2747
2748 PR middle-end/71269
2749 PR middle-end/71252
2750 * tree-ssa-reassoc.c (insert_stmt_before_use): Use find_insert_point so
2751 that inserted stmt will not dominate stmts that defines its operand.
2752 (rewrite_expr_tree): Add stmt_to_insert before adding the use stmt.
2753 (rewrite_expr_tree_parallel): Likewise.
2754
2755 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
2756
2757 PR middle-end/71252
2758 * tree-ssa-reassoc.c (swap_ops_for_binary_stmt): Fix swap such that
2759 all fields including stmt_to_insert are swapped.
2760
2761 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
2762
2763 * predict.h (force_edge_cold): Declare.
2764 * predict.c (force_edge_cold): New function.
2765 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Fix profile
2766 updating.
2767 (canonicalize_loop_induction_variables): Fix formating.
2768
2769 2016-05-30 Eric Botcazou <ebotcazou@adacore.com>
2770
2771 * config/visium/visium.c (visium_split_double_add): Minor tweaks.
2772 (visium_expand_copysign): Use gen_int_mode directly.
2773 (visium_compute_frame_size): Minor tweaks.
2774
2775 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
2776
2777 * tree-vect-loop.c (vect_analyze_loop_2): Use
2778 likely_max_stmt_executions_int.
2779
2780 2016-05-30 Tom de Vries <tom@codesourcery.com>
2781
2782 PR tree-optimization/69067
2783 * graphite-isl-ast-to-gimple.c (get_def_bb_for_const): Remove assert.
2784
2785 2016-05-29 Uros Bizjak <ubizjak@gmail.com>
2786
2787 PR target/71245
2788 * config/i386/sync.md (define_peephole2 atomic_storedi_fpu):
2789 New peepholes to remove unneeded fild/fistp pairs.
2790 (define_peephole2 atomic_loaddi_fpu): Ditto.
2791
2792 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
2793
2794 * predict.c (maybe_hot_frequency_p): Avoid division.
2795
2796 2016-05-28 Gerald Pfeifer <gerald@pfeifer.com>
2797
2798 * doc/install.texi: Use https for shop.fsf.org.
2799
2800 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
2801
2802 * tree-ssa-loop-ivopts.c (estimated_stmt_executions_int): Use
2803 likely_max_stmt_executions_int.
2804
2805 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
2806
2807 * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Use
2808 likely_max_stmt_executions_int.
2809
2810 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
2811
2812 * profile.c (compute_branch_probabilities): Do not report hitrates
2813 here.
2814 (branch_prob): Report hitrates here.
2815 * predict.c (gimple_predict_edge): Do not assert profile status;
2816 fix formatting issues.
2817
2818 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
2819
2820 * predict.c (edge_predicted_by_p): New function.
2821 (predict_paths_for_bb): Do not put multiple predictions of the same type
2822 on one edge.
2823
2824 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
2825
2826 * tree-ssa-loop-niter.c (number_of_iterations_exit): Revert accidental
2827 commit.
2828
2829 2016-05-28 Alan Modra <amodra@gmail.com>
2830
2831 * dominance.c (verify_dominators): Don't segfault on NULL imm_bb.
2832
2833 2016-05-28 Alan Modra <amodra@gmail.com>
2834
2835 PR rtl-optimization/71275
2836 * ira.c (ira): Free dominance info.
2837
2838 2016-05-27 Gerald Pfeifer <gerald@pfeifer.com>
2839
2840 * doc/sourcebuild.texi: New address for upstream Go repository.
2841
2842 2016-05-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
2843
2844 * config/arm/arm.h (TARGET_ARM_V6M): Remove.
2845 (TARGET_ARM_V7M): Likewise.
2846
2847 2016-05-26 Jeff Law <law@redhat.com>
2848
2849 * tree-ssa-threadedge.c: Remove include of tree-ssa-threadbackward.h.
2850 (thread_across_edge): Remove calls to find_jump_threads_backwards.
2851 * passes.def: Add jump threading passes before DOM/VRP.
2852 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Change
2853 argument to a basic block from an edge. Remove tests which are
2854 handled elsewhere.
2855 (pass_data_thread_jumps, class pass_thread_jumps): New.
2856 (pass_thread_jumps::gate, pass_thread_jumps::execute): New.
2857 (make_pass_thread_jumps): Likewise.
2858 * tree-pass.h (make_pass_thread_jumps): Declare.
2859
2860 2016-05-27 Eric Botcazou <ebotcazou@adacore.com>
2861
2862 * config/visium/visium-protos.h (split_double_move): Rename into...
2863 (visium_split_double_move): ...this.
2864 (visium_split_double_add): Declare.
2865 * config/visium/visium.c (split_double_move): Rename into...
2866 (visium_split_double_move): ...this.
2867 (visium_split_double_add): New function.
2868 (visium_expand_copysign): Renumber operands for consistency.
2869 * config/visium/visium.md (DImode move splitter): Adjust to renaming.
2870 (DFmode move splitter): Likewise.
2871 (*addi3_insn): Split by means of visium_split_double_add.
2872 (*adddi3_insn_flags): Delete.
2873 (*plus_plus_sltu<subst_arith>): New insn.
2874 (*subdi3_insn): Split by means of visium_split_double_add.
2875 (subdi3_insn_flags): Delete.
2876 (*minus_minus_sltu<subst_arith>): New insn.
2877 (*negdi2_insn): Split by means of visium_split_double_add.
2878 (*negdi2_insn_flags): Delete.
2879
2880 2016-05-27 Ulrich Weigand <uweigand@de.ibm.com>
2881
2882 * configure.ac: Treat a --with-headers option without argument
2883 the same as the default (i.e. consult sys-include directory).
2884 * configure: Regenerate.
2885
2886 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2887
2888 * config/aarch64/aarch64.c (aarch64_fusion_enabled_p): New function.
2889 * config/aarch64/aarch64-protos.h (aarch64_fusion_enabled_p): Declare
2890 prototype.
2891 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aesmc_op>v16qi):
2892 Add "=w,0" alternative. Enable it when AES/AESMC fusion is enabled.
2893
2894 2016-05-27 Jiong Wang <jiong.wang@arm.com>
2895
2896 PR target/63596
2897 * config/aarch64/aarch64.c (aarch64_expand_builtin_va_start): Honor
2898 tree-stdarg analysis results.
2899 (aarch64_setup_incoming_varargs): Likewise.
2900
2901 2016-05-27 Jiong Wang <jiong.wang@arm.com>
2902
2903 * config/aarch64/aarch64.c (aarch64_build_builtin_va_list): Initialize
2904 va_list_gpr_counter_field and va_list_fpr_counter_field.
2905
2906 2016-05-27 Wilco Dijkstra <wdijkstr@arm.com>
2907
2908 PR67609
2909 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Remove.
2910 * config/aarch64/aarch64.c
2911 (aarch64_cannot_change_mode_class): Remove function.
2912 * config/aarch64/aarch64-protos.h
2913 (aarch64_cannot_change_mode_class): Remove.
2914
2915 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
2916
2917 * cfgloop.c (record_niter_bound): Record likely upper bounds.
2918 (likely_max_stmt_executions_int, get_likely_max_loop_iterations,
2919 get_likely_max_loop_iterations_int): New.
2920 * cfgloop.h (struct loop): Add nb_iterations_likely_upper_bound,
2921 any_likely_upper_bound.
2922 (get_likely_max_loop_iterations_int, get_likely_max_loop_iterations):
2923 Declare.
2924 * cfgloopmanip.c (copy_loop_info): Copy likely upper bounds.
2925 * loop-unroll.c (unroll_loop_constant_iterations): Update likely
2926 upper bound.
2927 (unroll_loop_constant_iterations): Likewise.
2928 (unroll_loop_runtime_iterations): Likewise.
2929 * lto-streamer-in.c (input_cfg): Stream likely upper bounds.
2930 * lto-streamer-out.c (output_cfg): Likewise.
2931 * tree-ssa-loop-ivcanon.c (try_peel_loop): Update likely upper
2932 bounds.
2933 (canonicalize_loop_induction_variables): Dump likely upper bounds.
2934 * tree-ssa-loop-niter.c (record_estimate): Record likely upper bounds.
2935 (likely_max_loop_iterations): New.
2936 (likely_max_loop_iterations_int): New.
2937 (likely_max_stmt_executions): New.
2938 * tree-ssa-loop-niter.h (likely_max_loop_iterations,
2939 likely_max_loop_iterations_int, likely_max_stmt_executions_int,
2940 likely_max_stmt_executions): Declare.
2941
2942 2016-05-27 Marek Polacek <polacek@redhat.com>
2943
2944 PR middle-end/71308
2945 * gimple-fold.c (gimple_fold_call): Check that LHS is not null.
2946
2947 2016-05-27 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2948
2949 * config/s390/s390.md (2x risbg splitters): Use
2950 reg_overlap_mentioned_p instead of rtx_equal_p.
2951
2952 2016-05-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
2953
2954 * combine.c (make_compound_operation): Take known zero bits into
2955 account when checking for possible zero_extend.
2956
2957 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2958
2959 * config/aarch64/aarch64.md (ashl<mode>3, SHORT modes):
2960 Use const_int_operand for operand 2 predicate. Simplify expand code
2961 as a result.
2962
2963 2016-05-27 Ilya Enkovich <ilya.enkovich@intel.com>
2964
2965 PR middle-end/71279
2966 * fold-const.c (fold_ternary_loc): Don't fold VEC_COND_EXPR
2967 into comparison.
2968
2969 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2970
2971 * config/aarch64/aarch64-modes.def (CC_ZESWP, CC_SESWP): Delete.
2972 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Remove condition
2973 that returns CC_SESWPmode and CC_ZESWPmode.
2974 (aarch64_get_condition_code_1): Remove handling of CC_SESWPmode
2975 and CC_SESWPmode.
2976 (aarch64_rtx_costs): Likewise.
2977
2978 2016-05-26 Michael Meissner <meissner@linux.vnet.ibm.com>
2979
2980 * config/rs6000/rs6000.c (rs6000_emit_p9_fp_minmax): New function
2981 for ISA 3.0 min/max support.
2982 (rs6000_emit_p9_fp_cmove): New function for ISA 3.0 floating point
2983 conditional move support.
2984 (rs6000_emit_cmove): Call rs6000_emit_p9_fp_minmax and
2985 rs6000_emit_p9_fp_cmove if the ISA 3.0 instructions are
2986 available.
2987 * config/rs6000/rs6000.md (SFDF2): New iterator to allow doing
2988 conditional moves where the comparison type is different from move
2989 type.
2990 (fp_minmax): New code iterator for smin/smax.
2991 (minmax): New code attributes for min/max.
2992 (SMINMAX): Likewise.
2993 (smax<mode>3): Combine min, max insns into one insn using the
2994 fp_minmax code iterator. Add support for ISA 3.0 min/max
2995 instructions that don't need -ffast-math.
2996 (s<minmax><mode>3): Likewise.
2997 (smax<mode>3_vsx): Likewise.
2998 (smin<mode>3): Likewise.
2999 (s<minmax><mode>3_vsx): Likewise.
3000 (smin<mode>3_vsx): Likewise.
3001 (pre-VSX min/max splitters): Likewise.
3002 (s<minmax><mode>3_fpr): Likewise.
3003 (movsfcc): Rewrite floating point conditional moves to combine
3004 SFmode/DFmode into a single insn.
3005 (mov<mode>cc): Likewise.
3006 (movdfcc): Likewise.
3007 (fselsfsf4): Combine FSEL cases into a single insn, using SFDF and
3008 SFDF2 iterators to handle all combinations.
3009 (fseldfsf4): Likewise.
3010 (fsel<SFDF:mode><SFDF2:mode>4): Likewise.
3011 (fseldfdf4): Likewise.
3012 (fselsfdf4): Likewise.
3013 (mov<SFDF:mode><SFDF2:mode>cc_p9): Add support for the ISA 3.0
3014 comparison instructions that set a 0/-1 mask, and use it for
3015 floating point conditional move via XXSEL.
3016 (fpmask<mode>): Likewise.
3017 (xxsel<mode>): Likewise.
3018 * config/rs6000/predicates.md (min_max_operator): Delete, no
3019 longer used.
3020 (fpmask_comparison_operaton): New insn for ISA 3.0 comparison
3021 instructions that generate a 0/-1 mask for use with XXSEL.
3022 * config/rs6000/rs6000.h (TARGET_MINMAX_SF): New helper macros to
3023 say whether floating point min/max is available, either through
3024 FSEL, ISA 2.06 min/max, and ISA 3.0 min/max instrucitons.
3025 (TARGET_MINMAX_DF): Likewise.
3026
3027 2016-05-27 Alan Modra <amodra@gmail.com>
3028
3029 PR rtl-optimization/71275
3030 * ira.c (ira): Call loop_optimizer_init to set up bb_loop_depth
3031 for update_equiv_regs and combine_and_move_insns.
3032
3033 2016-05-26 Uros Bizjak <ubizjak@gmail.com>
3034
3035 * config/i386/i386.md (*movqi_internal) <attr "isa">: Use
3036 if_then_else or cond RTXes to calculate attribute value.
3037 * config/i386/mmx.md (*vec_extractv2sf_1) <attr "prefix_rep">: Ditto.
3038 <attr "length_immediate>: Ditto.
3039 (*vec_extractv2sf_1) <attr "length_immediate">: Ditto.
3040 * config/i386/sse.md (sse_loadlps) <attr "length_immediate">: Ditto.
3041 (*vec_concatv2sf_sse4_1) <attr "isa">: Ditto.
3042 <attr "type">: Ditto.
3043 <attr "prefix_data16">: Ditto.
3044 <attr "prefix_extra">: Ditto.
3045 <attr "length_immediate">: Ditto.
3046 <attr "prefix">: Ditto.
3047 (vec_set<mode>_0) <attr "isa">: Ditto.
3048 <attr "prefix_extra">: Ditto.
3049 <attr "length_immediate">: Ditto.
3050 <attr "prefix">: Ditto.
3051 (*vec_interleave_highv2df) <attr "prefix_data16">: Ditto.
3052 (*vec_interleave_lowv2df) <attr "prefix_data16">: Ditto.
3053 (sse2_storelpd) <attr "prefix_data16">: Ditto.
3054 (sse2_loadhpd) <attr "prefix_data16">: Ditto.
3055 (sse2_loadlpd) <attr "prefix_data16">: Ditto.
3056 <attr "length_immediate">: Ditto.
3057 <attr "prefix">: Ditto.
3058 (sse2_movsd) <attr "length_immediate">: Ditto.
3059 <attr "prefix">: Ditto.
3060 (vec_concatv2df) <attr "isa">: Ditto.
3061 <attr "prefix">: Ditto.
3062 (*vec_extractv4si) <attr "prefix_extra">: Ditto.
3063 (*vec_extractv2di_1) <attr "isa">: Ditto.
3064 <attr "type">: Ditto.
3065 <attr "length_immediate">: Ditto.
3066 <attr "prefix_rex">: Ditto.
3067 <attr "prefix_extra">: Ditto.
3068 (*vec_concatv2si_sse4_1) <attr "type">: Ditto.
3069 <attr "prefix_extra">: Ditto.
3070 <attr "length_immediate">: Ditto.
3071 (vec_concatv2di) <attr "isa">: Ditto.
3072 <attr "prefix_extra">: Ditto.
3073 <attr "length_immediate">: Ditto.
3074 <attr "prefix">: Ditto.
3075
3076 2016-05-26 Martin Liska <mliska@suse.cz>
3077
3078 * tree-ssa-loop-ivopts.c (comp_cost::infinite_cost_p): New
3079 function.
3080 (operator+): Likewise.
3081 (operator-): Likewise.
3082 (comp_cost::operator+=): Likewise.
3083 (comp_cost::operator-=): Likewise.
3084 (comp_cost::operator/=): Likewise.
3085 (comp_cost::operator*=): Likewise.
3086 (operator<): Likewise.
3087 (operator==): Likewise.
3088 (operator<=): Likewise.
3089 (new_cost): Remove.
3090 (infinite_cost_p): Likewise.
3091 (add_costs): Likewise.
3092 (sub_costs): Likewise.
3093 (compare_costs): Likewise.
3094 (set_group_iv_cost): Use the newly introduced functions.
3095 (get_address_cost): Likewise.
3096 (get_shiftadd_cost): Likewise.
3097 (force_expr_to_var_cost): Likewise.
3098 (split_address_cost): Likewise.
3099 (ptr_difference_cost): Likewise.
3100 (difference_cost): Likewise.
3101 (get_computation_cost_at): Likewise.
3102 (determine_group_iv_cost_generic): Likewise.
3103 (determine_group_iv_cost_address): Likewise.
3104 (determine_group_iv_cost_cond): Likewise.
3105 (autoinc_possible_for_pair): Likewise.
3106 (determine_group_iv_costs): Likewise.
3107 (cheaper_cost_pair): Likewise.
3108 (iv_ca_recount_cost): Likewise.
3109 (iv_ca_set_no_cp): Likewise.
3110 (iv_ca_set_cp): Likewise.
3111 (iv_ca_cost): Likewise.
3112 (iv_ca_new): Likewise.
3113 (iv_ca_dump): Likewise.
3114 (iv_ca_narrow): Likewise.
3115 (iv_ca_prune): Likewise.
3116 (iv_ca_replace): Likewise.
3117 (try_add_cand_for): Likewise.
3118 (try_improve_iv_set): Likewise.
3119 (find_optimal_iv_set): Likewise.
3120
3121 2016-05-26 Richard Sandiford <richard.sandiford@arm.com>
3122
3123 * tree-ssa-loop-ivopts.c (loop_body_includes_call): Don't assume
3124 that internal functions will clobber all caller-saved registers.
3125
3126 2016-05-26 Wilco Dijkstra <wdijkstr@arm.com>
3127
3128 * config/aarch64/aarch64.c (aarch64_case_values_threshold):
3129 Return a better case_values_threshold when optimizing.
3130
3131 2016-05-26 Wilco Dijkstra <wdijkstr@arm.com>
3132
3133 * config/aarch64/aarch64-simd.md (aarch64_combinez):
3134 Add ? to integer variant.
3135 (aarch64_combinez_be): Likewise.
3136
3137 2016-05-26 Jakub Jelinek <jakub@redhat.com>
3138
3139 * config/i386/sse.md (*vcvtps2ph_store<mask_name>): Use v constraint
3140 instead of x constraint.
3141 (vcvtps2ph256<mask_name>): Likewise.
3142
3143 * config/i386/sse.md (*ssse3_palignr<mode>_perm): Add avx512bw
3144 alternative. Formatting fix.
3145
3146 * config/i386/sse.md
3147 (<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Rename
3148 to ...
3149 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>): ... this.
3150 (*avx_vperm_broadcast_v4sf): Use v constraint instead of x. Use
3151 maybe_evex prefix instead of vex.
3152 (*avx_vperm_broadcast_<mode>): Use v constraint instead of x. Handle
3153 EXT_REX_SSE_REG_P (op0) case in the splitter.
3154
3155 2016-05-25 Jeff Law <law@redhat.com>
3156
3157 PR tree-optimization/71272
3158 * tree-ssa-threadbackward.c (convert_and_register_jump_thread_path):
3159 Update comments. Add test for empty path.
3160
3161 2016-05-25 Bill Seurer <seurer@linux.vnet.ibm.com>
3162
3163 * config/rs6000/altivec.h (vec_cmpne): Add #define for vec_cmpne.
3164 * config/rs6000/rs6000-builtin.def (vec_cmpne): Add vec_cmpne as a
3165 special case builtin.
3166 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
3167 code for ALTIVEC_BUILTIN_VEC_CMPNE.
3168 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
3169 for __builtin_vec_cmpne.
3170
3171 2016-05-25 Eric Botcazou <ebotcazou@adacore.com>
3172
3173 * tree-ssa-phiopt.c (factor_out_conditional_conversion): Remove
3174 redundant test and bail out if the type of the new operand is not
3175 a GIMPLE register type after stripping a VIEW_CONVERT_EXPR.
3176
3177 2016-05-25 Uros Bizjak <ubizjak@gmail.com>
3178
3179 * config/i386/i386.opt (ix86_target_flags_explicit): Remove.
3180 (x_ix86_target_flags_explicit): Remove.
3181 * config/i386/i386.c (ix86_function_specific_save): Do not copy
3182 x_ix86_target_flags_explicit.
3183 (ix86_function_specific_restore): Ditto.
3184
3185 2016-05-25 Uros Bizjak <ubizjak@gmail.com>
3186 H.J. Lu <hongjiu.lu@intel.com>
3187
3188 PR target/70738
3189 * common/config/i386/i386-common.c
3190 (OPTION_MASK_ISA_GENERAL_REGS_ONLY_UNSET): New.
3191 (ix86_handle_option) <case OPT_mgeneral_regs_only>: Disable
3192 MPX, MMX, SSE and x87 instructions for -mgeneral-regs-only.
3193 * config/i386/i386.opt (ix86_target_flags): Add new Variable.
3194 (-mgeneral-regs-only): Add new option.
3195 * config/i386/i386.c (ix86_option_override_internal): Don't enable
3196 x87 instructions if only general registers are allowed.
3197 (ix86_target_string): Add ix86_flags argument. Handle additional
3198 flags options through ix86_flags argument. Update all callers.
3199 * doc/invoke.texi (x86 Options): Document -mgeneral-regs-only.
3200
3201 2016-05-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3202
3203 PR rtl-optimization/66940
3204 * ifcvt.c (noce_get_alt_condition): Check that incrementing or
3205 decrementing desired_val will not overflow before performing these
3206 operations.
3207
3208 2016-05-25 Ilya Verbin <ilya.verbin@intel.com>
3209
3210 * config/i386/i386-builtin-types.def: Add V16SI_FTYPE_V16SF,
3211 V8DF_FTYPE_V8DF_ROUND, V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND.
3212 * config/i386/i386.c (enum ix86_builtins): Add
3213 IX86_BUILTIN_CVTPS2DQ512_MASK, IX86_BUILTIN_FLOORPS512,
3214 IX86_BUILTIN_FLOORPD512, IX86_BUILTIN_CEILPS512, IX86_BUILTIN_CEILPD512,
3215 IX86_BUILTIN_TRUNCPS512, IX86_BUILTIN_TRUNCPD512,
3216 IX86_BUILTIN_CVTPS2DQ512, IX86_BUILTIN_VEC_PACK_SFIX512,
3217 IX86_BUILTIN_FLOORPS_SFIX512, IX86_BUILTIN_CEILPS_SFIX512,
3218 IX86_BUILTIN_ROUNDPS_AZ_SFIX512.
3219 (builtin_description bdesc_args): Add __builtin_ia32_floorps512,
3220 __builtin_ia32_ceilps512, __builtin_ia32_truncps512,
3221 __builtin_ia32_floorpd512, __builtin_ia32_ceilpd512,
3222 __builtin_ia32_truncpd512, __builtin_ia32_cvtps2dq512,
3223 __builtin_ia32_vec_pack_sfix512, __builtin_ia32_roundps_az_sfix512,
3224 __builtin_ia32_floorps_sfix512, __builtin_ia32_ceilps_sfix512.
3225 Change IX86_BUILTIN_CVTPS2DQ512 to IX86_BUILTIN_CVTPS2DQ512_MASK for
3226 __builtin_ia32_cvtps2dq512_mask.
3227 (ix86_expand_args_builtin): Handle V8DF_FTYPE_V8DF_ROUND,
3228 V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF.
3229 (ix86_builtin_vectorized_function): Handle builtins mentioned above.
3230 * config/i386/sse.md
3231 (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name><round_name>):
3232 Rename to ...
3233 (avx512f_fix_notruncv16sfv16si<mask_name><round_name>): ... this.
3234 (<mask_codefor>avx512f_cvtpd2dq512<mask_name><round_name>): Rename
3235 to ...
3236 (avx512f_cvtpd2dq512<mask_name><round_name>): ... this.
3237 (avx512f_vec_pack_sfix_v8df): New define_expand.
3238 (avx512f_roundpd512): Rename to ...
3239 (avx512f_round<castmode>512): ... this. Change iterator.
3240 (avx512f_roundps512_sfix): New define_expand.
3241 (round<mode>2_sfix): Change iterator.
3242
3243 2016-05-25 Nick Clifton <nickc@redhat.com>
3244
3245 * config/msp430/msp430.c (msp430_attr): Produce an error if a
3246 static interrupt handler is detected.
3247 * config/msp430/msp430.h (LIB_SPEC): Do not use msp430.ld as the
3248 default linker script.
3249 * config/msp430/msp430.md (movpsihi2_lo): New pattern for loading
3250 the low part of a symbolic pointer.
3251
3252 2016-05-25 Richard Biener <rguenther@suse.de>
3253
3254 PR tree-optimization/71261
3255 * tree-if-conv.c (ifcvt_split_def_stmt): Walk uses on the
3256 interesting stmt instead of immediate uses when looking
3257 for the use operand to replace.
3258
3259 2016-05-25 Martin Liska <mliska@suse.cz>
3260
3261 * ipa-inline.c (edge_badness): Use 'w/' instead of 'w'.
3262
3263 2016-05-25 Richard Biener <rguenther@suse.de>
3264
3265 PR tree-optimization/71264
3266 * tree-vect-stmts.c (vect_init_vector): Properly deal with
3267 vector type val.
3268
3269 2016-05-25 Martin Liska <mliska@suse.cz>
3270
3271 PR tree-optimization/71239
3272 * tree.c (array_at_struct_end_p): Do not call operand_equal_p
3273 if DECL_SIZE is NULL.
3274
3275 2016-05-25 Richard Biener <rguenther@suse.de>
3276
3277 * timevar.def (TV_TREE_LOOP_IFCVT): Add.
3278 * tree-if-conv.c (pass_data_if_conversion): Use it.
3279
3280 2016-05-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
3281
3282 * cgraph.c (cgraph_node::get_availability): Fix typo in comment.
3283 * symtab.c (symtab_node::binds_to_current_def_p): Likewise.
3284 * varpool.c (varpool_node::get_availability): Likewise.
3285
3286 2016-05-24 Michael Meissner <meissner@linux.vnet.ibm.com>
3287
3288 * config/rs6000/altivec.md (VNEG iterator): New iterator for
3289 VNEGW/VNEGD instructions.
3290 (p9_neg<mode>2): New insns for ISA 3.0 VNEGW/VNEGD.
3291 (neg<mode>2): Add expander for V2DImode added in ISA 2.07, and
3292 support for ISA 3.0 VNEGW/VNEGD instructions.
3293
3294 2016-05-24 Cesar Philippidis <cesar@codesourcery.com>
3295
3296 * gimplify.c (omp_notice_variable): Use zero-length arrays for data
3297 pointers inside OACC_DATA regions.
3298 (gimplify_scan_omp_clauses): Prune firstprivate clause associated
3299 with OACC_DATA, OACC_ENTER_DATA and OACC_EXIT data regions.
3300 (gimplify_adjust_omp_clauses): Fix typo in comment.
3301
3302 2016-05-24 Michael Meissner <meissner@linux.vnet.ibm.com>
3303
3304 * config/rs6000/altivec.md (VParity): New mode iterator for vector
3305 parity built-in functions.
3306 (p9v_ctz<mode>2): Add support for ISA 3.0 vector count trailing
3307 zeros.
3308 (p9v_parity<mode>2): Likewise.
3309 * config/rs6000/vector.md (VEC_IP): New mode iterator for vector
3310 parity.
3311 (ctz<mode>2): ISA 3.0 expander for vector count trailing zeros.
3312 (parity<mode>2): ISA 3.0 expander for vector parity.
3313 * config/rs6000/rs6000-builtin.def (BU_P9_MISC_1): New macros for
3314 power9 built-ins.
3315 (BU_P9_64BIT_MISC_0): Likewise.
3316 (BU_P9_MISC_0): Likewise.
3317 (BU_P9V_AV_1): Likewise.
3318 (BU_P9V_AV_2): Likewise.
3319 (BU_P9V_AV_3): Likewise.
3320 (BU_P9V_AV_P): Likewise.
3321 (BU_P9V_VSX_1): Likewise.
3322 (BU_P9V_OVERLOAD_1): Likewise.
3323 (BU_P9V_OVERLOAD_2): Likewise.
3324 (BU_P9V_OVERLOAD_3): Likewise.
3325 (VCTZB): Add vector count trailing zeros support.
3326 (VCTZH): Likewise.
3327 (VCTZW): Likewise.
3328 (VCTZD): Likewise.
3329 (VPRTYBD): Add vector parity support.
3330 (VPRTYBQ): Likewise.
3331 (VPRTYBW): Likewise.
3332 (VCTZ): Add overloaded vector count trailing zeros support.
3333 (VPRTYB): Add overloaded vector parity support.
3334 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
3335 overloaded vector count trailing zeros and parity instructions.
3336 * config/rs6000/rs6000.md (wd mode attribute): Add V1TI and TI for
3337 vector parity support.
3338 * config/rs6000/altivec.h (vec_vctz): Add ISA 3.0 vector count
3339 trailing zeros support.
3340 (vec_cntlz): Likewise.
3341 (vec_vctzb): Likewise.
3342 (vec_vctzd): Likewise.
3343 (vec_vctzh): Likewise.
3344 (vec_vctzw): Likewise.
3345 (vec_vprtyb): Add ISA 3.0 vector parity support.
3346 (vec_vprtybd): Likewise.
3347 (vec_vprtybw): Likewise.
3348 (vec_vprtybq): Likewise.
3349 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
3350 the ISA 3.0 vector count trailing zeros and vector parity built-in
3351 functions.
3352
3353 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
3354
3355 * tree-ssa-reassoc.c (sort_by_operand_rank): Skip checking gimple_bb
3356 when there is stmt_to_insert.
3357
3358 2016-05-24 Martin Sebor <msebor@redhat.com>
3359
3360 PR c++/71147
3361 * tree.h (complete_or_array_type_p): New inline function.
3362
3363 2016-05-24 Jakub Jelinek <jakub@redhat.com>
3364
3365 * config/i386/i386.h (TARGET_AVOID_4BYTE_PREFIXES): Define.
3366 * config/i386/constraints.md (Yr): Test TARGET_AVOID_4BYTE_PREFIXES
3367 rather than X86_TUNE_AVOID_4BYTE_PREFIXES.
3368
3369 * config/i386/sse.md (<sse4_1>_round<ssemodesuffix><avxsizesuffix>):
3370 Limit 1st alternative to noavx isa, split 2nd alternative into one
3371 noavx and one avx alternative, use *x and Bm in the former and
3372 x and m in the latter.
3373
3374 * config/i386/sse.md (vec_set<mode>_0): Use sse4_noavx isa instead
3375 of sse4 for the first alternative, drop %v from the template
3376 and d operand modifier. Split second alternative into one sse4_noavx
3377 and one avx alternative, use *x instead of *v in the former and v
3378 instead of *v in the latter.
3379 (*sse4_1_extractps): Use noavx isa instead of * for the first
3380 alternative, drop %v from the template. Split second alternative into
3381 one noavx and one avx alternative, use *x instead of *v in the
3382 former and v instead of *v in the latter.
3383 (<vi8_sse4_1_avx2_avx512>_movntdqa): Guard the first 2 alternatives
3384 with noavx and the last one with avx.
3385 (sse4_1_phminposuw): Guard first alternative with noavx isa,
3386 split the second one into one noavx and one avx alternative,
3387 use *x and Bm in the former and x and m in the latter one.
3388 (<sse4_1>_ptest<mode>): Use noavx instead of * for the first two
3389 alternatives.
3390
3391 * config/i386/sse.md (sse4_1_<code>v8qiv8hi2<mask_name>): Limit
3392 first two alternatives to noavx, use *x instead of *v in the second
3393 one, add avx alternative without *.
3394 (sse4_1_<code>v4qiv4si2<mask_name>, sse4_1_<code>v4hiv4si2<mask_name>,
3395 sse4_1_<code>v2qiv2di2<mask_name>, sse4_1_<code>v2hiv2di2<mask_name>,
3396 sse4_1_<code>v2siv2di2<mask_name>): Likewise.
3397
3398 2016-05-24 Jeff Law <law@redhat.com>
3399
3400 * tree-ssa-threadbackwards.c (convert_and_register_jump_thread_path):
3401 New function, extracted from...
3402 (fsm_find_control_statement_thread_paths): Here. Use the new function.
3403 Allow simple copies and constant initializations in the SSA chain.
3404
3405 2016-05-24 Marek Polacek <polacek@redhat.com>
3406
3407 PR c/71249
3408 * gimplify.c (gimplify_switch_expr): Look into the innermost lexical
3409 scope.
3410
3411 2016-05-24 Jakub Jelinek <jakub@redhat.com>
3412
3413 PR c++/71257
3414 * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
3415 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
3416 SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP. Add
3417 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP and
3418 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP cases explicitly.
3419
3420 2016-05-24 Richard Biener <rguenther@suse.de>
3421
3422 PR tree-optimization/71240
3423 * tree-ssa-math-opts.c (init_symbolic_number): Verify the source
3424 has integral type.
3425
3426 2016-05-24 Richard Biener <rguenther@suse.de>
3427
3428 PR tree-optimization/71230
3429 * tree-ssa-reassoc.c (zero_one_operation): Handle negate special ops.
3430
3431 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
3432
3433 * tree-vectorizer.h (vectorizable_comparison): Delete.
3434 * tree-vect-loop.c (vectorizable_reduction): Remove redundant
3435 PURE_SLP_STMT check.
3436 * tree-vect-stmts.c (vectorizable_call): Likewise.
3437 (vectorizable_simd_clone_call): Likewise.
3438 (vectorizable_conversion): Likewise.
3439 (vectorizable_assignment): Likewise.
3440 (vectorizable_shift): Likewise.
3441 (vectorizable_operation): Likewise.
3442 (vectorizable_load): Likewise.
3443 (vectorizable_condition): Likewise.
3444 (vectorizable_store): Likewise. Assert that we don't have
3445 hybrid SLP.
3446 (vectorizable_comparison): Make static. Remove redundant
3447 PURE_SLP_STMT check.
3448 (vect_transform_stmt): Assert that we always have an slp_node
3449 if PURE_SLP_STMT.
3450
3451 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3452
3453 * config/arm/neon.md (ashldi3_neon): Replace comparison of INTVAL of
3454 operands[2] against 1 with comparison against CONST1_RTX.
3455 (<shift>di3_neon): Likewise.
3456 * config/arm/predicates.md (const0_operand): Replace with comparison
3457 against CONST0_RTX.
3458
3459 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3460
3461 * config/arm/arm.md (ashldi3): Replace comparison of INTVAL of
3462 operands[2] against 1 with comparison against CONST1_RTX.
3463 (ashrdi3): Likewise.
3464 (lshrdi3): Likewise.
3465 (ashlsi3): Replace cast of INTVAL to unsigned HOST_WIDE_INT with
3466 UINTVAL.
3467 (ashrsi3): Likewise.
3468 (lshrsi3): Likewise.
3469 (rotrsi3): Likewise.
3470 (define_split above *compareqi_eq0): Likewise.
3471 (define_split above "prologue"): Likewise.
3472 * config/arm/arm.c (thumb1_size_rtx_costs): Likewise.
3473 * config/arm/predicates.md (shift_operator): Likewise.
3474 (shift_nomul_operator): Likewise.
3475 (sat_shift_operator): Likewise.
3476 (thumb1_cmp_operand): Likewise.
3477 (const_neon_scalar_shift_amount_operand): Replace manual range
3478 check with IN_RANGE.
3479 * config/arm/thumb1.md (define_peephole2 above *thumb_subdi3):
3480 Replace cast of INTVAL to unsigned HOST_WIDE_INT with UINTVAL.
3481
3482 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3483
3484 * config/arm/arm.md (andsi3): Replace cast of 1 to HOST_WIDE_INT
3485 with HOST_WIDE_INT_1.
3486 (insv): Likewise.
3487 * config/arm/arm.c (optimal_immediate_sequence): Replace cast of
3488 1 to unsigned HOST_WIDE_INT with HOST_WIDE_INT_1U.
3489 (arm_canonicalize_comparison): Likewise.
3490 (thumb1_rtx_costs): Replace cast of 1 to HOST_WIDE_INT with
3491 HOST_WIDE_INT_1.
3492 (thumb1_size_rtx_costs): Likewise.
3493 (vfp_const_double_index): Replace cast of 1 to unsigned
3494 HOST_WIDE_INT with HOST_WIDE_INT_1U.
3495 (get_jump_table_size): Replace cast of 1 to HOST_WIDE_INT with
3496 HOST_WIDE_INT_1.
3497 (arm_asan_shadow_offset): Replace cast of 1 to unsigned
3498 HOST_WIDE_INT with HOST_WIDE_INT_1U.
3499 * config/arm/neon.md (vec_set<mode>): Replace cast of 1 to
3500 HOST_WIDE_INT with HOST_WIDE_INT_1.
3501
3502 2016-05-24 Marek Polacek <polacek@redhat.com>
3503
3504 * tree-cfg.h (should_remove_lhs_p): New predicate.
3505 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
3506 * gimplify.c (gimplify_modify_expr): Likewise.
3507 * tree-cfg.c (verify_gimple_call): Likewise.
3508 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
3509 * gimple-fold.c: Include "tree-cfg.h".
3510 (gimple_fold_call): Use should_remove_lhs_p.
3511
3512 2016-05-24 Richard Biener <rguenther@suse.de>
3513
3514 PR tree-optimization/71253
3515 * cfganal.h (control_dependences): Make robust against edge
3516 and BB removal.
3517 (control_dependences::control_dependences): Remove edge_list argument.
3518 (control_dependences::get_edge): Remove.
3519 (control_dependences::get_edge_src): Add.
3520 (control_dependences::get_edge_dest): Likewise.
3521 (control_dependences::m_el): Make a vector of edge src/dest index.
3522 * cfganal.c (control_dependences::find_control_dependence): Adjust.
3523 (control_dependences::control_dependences): Likewise.
3524 (control_dependences::~control_dependence): Likewise.
3525 (control_dependences::get_edge): Remove.
3526 (control_dependences::get_edge_src): Add.
3527 (control_dependences::get_edge_dest): Likewise.
3528 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Use
3529 get_edge_src.
3530 (perform_tree_ssa_dce): Adjust.
3531 * tree-loop-distribution.c (create_edge_for_control_dependence): Use
3532 get_edge_src.
3533 (pass_loop_distribution::execute): Adjust. Do loop destroying
3534 conditional on changed.
3535
3536 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3537
3538 PR target/69857
3539 * config/arm/arm.c (gen_operands_ldrd_strd): Remove bogus early
3540 return. Reindent transformation comment and mention the ARM state
3541 behavior.
3542
3543 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
3544
3545 PR middle-end/71252
3546 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Add stmt_to_insert
3547 after build_and_add_sum creates new use stmt.
3548
3549 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
3550
3551 * tree-vect-stmts.c (vectorizable_load): Reorder checks so that
3552 load_lanes/grouped_load classification comes first. Don't check
3553 whether the vectorization factor is a multiple of the group size
3554 for load_lanes.
3555
3556 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
3557
3558 * tree-vect-data-refs.c (vect_analyze_group_access_1): Set
3559 GROUP_GAP for single-element interleaving.
3560 * tree-vect-stmts.c (vectorizable_load): Remove force_peeling
3561 variable.
3562
3563 2016-05-24 Richard Biener <rguenther@suse.de>
3564
3565 PR middle-end/70434
3566 PR c/69504
3567 * tree-ssa.c (non_rewritable_mem_ref_base): Make sure to mark
3568 bases which are accessed with non-invariant indices.
3569 * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Re-write
3570 constant index ARRAY_REFs of vectors into BIT_FIELD_REFs.
3571
3572 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
3573
3574 PR middle-end/71170
3575 * tree-ssa-reassoc.c (struct operand_entry): Add field stmt_to_insert.
3576 (add_to_ops_vec): Add stmt_to_insert.
3577 (add_repeat_to_ops_vec): Init stmt_to_insert.
3578 (insert_stmt_before_use): New.
3579 (transform_add_to_multiply): Remove mult_stmt insertion and add it
3580 to ops vector.
3581 (get_ops): Init stmt_to_insert.
3582 (maybe_optimize_range_tests): Likewise.
3583 (rewrite_expr_tree): Insert stmt_to_insert before use stmt.
3584 (rewrite_expr_tree_parallel): Likewise.
3585 (reassociate_bb): Likewise.
3586
3587 2016-05-23 Michael Meissner <meissner@linux.vnet.ibm.com>
3588
3589 PR target/71201
3590 * config/rs6000/altivec.md (altivec_vperm_<mode>_internal): Drop
3591 ISA 3.0 xxperm fusion alternative.
3592 (altivec_vperm_v8hiv16qi): Likewise.
3593 (altivec_vperm_<mode>_uns_internal): Likewise.
3594 (vperm_v8hiv4si): Likewise.
3595 (vperm_v16qiv8hi): Likewise.
3596
3597 2016-05-23 Michael Meissner <meissner@linux.vnet.ibm.com>
3598 Kelvin Nilsen <kelvin@gcc.gnu.org>
3599
3600 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate
3601 vpermr/xxpermr on ISA 3.0.
3602 (altivec_expand_vec_perm_le): Likewise.
3603 * config/rs6000/altivec.md (UNSPEC_VPERMR): New unspec.
3604 (altivec_vpermr_<mode>_internal): Add VPERMR/XXPERMR support for
3605 ISA 3.0.
3606
3607 2016-05-23 Uros Bizjak <ubizjak@gmail.com>
3608
3609 * config/i386/i386.h (IS_STACK_MODE): Enable for
3610 TARGET_MIX_SSE_I387. Rewrite using X87_FLOAT_MODE_P and
3611 SSE_FLOAT_MODE_P macros.
3612 * config/i386/i386.c (ix86_preferred_reload_class): Use
3613 IS_STACK_MODE, INTEGER_CLASS_P, FLOAT_CLASS_P and Q_CLASS_P macros.
3614 Cleanup regclass processing for CONST_DOUBLE_P.
3615 (ix86_preferred_output_reload_class): Use IS_STACK_MODE macro.
3616 (ix86_rtx_costs): Remove redundant TARGET_80387 check
3617 with IS_STACK_MODE macro.
3618 * config/i386/i386.md: Replace SSE_FLOAT_MODE_P (DFmode)
3619 with TARGET_SSE2.
3620 (*movdf_internal): Use IS_STACK_MODE macro.
3621 (*movsf_internal): Ditto.
3622
3623 2016-05-23 Marc Glisse <marc.glisse@inria.fr>
3624
3625 * match.pd (a * (1 << b), ~x & ~y, ~X ^ ~Y, (X ^ Y) ^ Y, ~ (-A),
3626 ~ (A - 1), ~(~X >> Y), ~(~X >>r Y)): Relax constraints.
3627
3628 2016-05-23 Jeff Law <law@redhat.com>
3629
3630 * tree-ssa-threadbackward.c (profitable_jump_thread_path): New function
3631 extracted from ...
3632 (fsm_find_control_statement_thread_paths): Call it.
3633
3634 2016-05-23 Martin Jambor <mjambor@suse.cz>
3635
3636 PR ipa/71234
3637 * ipa-cp.c (ipa_get_indirect_edge_target_1): Only check value of
3638 from_global_constant if t is not NULL.
3639
3640 2016-05-23 Marek Polacek <polacek@redhat.com>
3641
3642 PR c/49859
3643 * common.opt (Wswitch-unreachable): New option.
3644 * doc/invoke.texi: Document -Wswitch-unreachable.
3645 * gimplify.c (gimplify_switch_expr): Implement the -Wswitch-unreachable
3646 warning.
3647
3648 2016-05-23 Bin Cheng <bin.cheng@arm.com>
3649
3650 * tree-ssa-address.c (copy_ref_info): Check NULL TMR_STEP when
3651 TMR_INDEX is non-NULL.
3652
3653 2016-05-23 Richard Biener <rguenther@suse.de>
3654
3655 PR tree-optimization/71230
3656 * tree-ssa-reassoc.c (acceptable_pow_call): Move initial condition...
3657 (try_special_add_to_ops): ... here. Always test for single-use.
3658
3659 2016-05-23 Martin Jambor <mjambor@suse.cz>
3660
3661 * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Create an empty
3662 default block if a PHI node in the original one would be resized.
3663
3664 2016-05-23 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
3665
3666 PR tree-optimization/58135
3667 * tree-vect-slp.c: When group size is not multiple
3668 of vector size, allow splitting of store group at
3669 vector boundary.
3670
3671 2016-05-23 Christophe Lyon <christophe.lyon@linaro.org>
3672
3673 * config/arm/arm_neon.h (vtst_p16, vtstq_p16): New.
3674
3675 2016-05-22 Jakub Jelinek <jakub@redhat.com>
3676
3677 * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
3678 vec_set_hi_<mode><mask_name>): Add && <mask_avx512dq_condition>
3679 condition. For !TARGET_AVX512DQ, emit 32x4 instruction instead
3680 of 64x2.
3681
3682 * config/i386/sse.md (vec_set_lo_v16hi, vec_set_hi_v16hi,
3683 vec_set_lo_v32qi, vec_set_hi_v32qi): Add alternative with
3684 v constraint instead of x and vinserti32x4 insn.
3685
3686 * config/i386/sse.md (i128vldq): New mode iterator.
3687 (avx2_vbroadcasti128_<mode>, avx_vbroadcastf128_<mode>): Add
3688 avx512dq and avx512vl alternatives.
3689
3690 * config/i386/sse.md (avx2_vec_dupv4df): Use v instead of x
3691 constraint, use maybe_evex prefix instead of vex.
3692 (vec_dupv4sf): Use v constraint instead of x for output
3693 operand except for noavx alternative, use Yv constraint
3694 instead of x for input. Use maybe_evex prefix instead of vex.
3695 (*vec_dupv4si): Likewise.
3696 (*vec_dupv2di): Likewise.
3697
3698 2016-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
3699
3700 PR middle-end/40921
3701 * tree-ssa-reassoc.c (try_special_add_to_ops): New.
3702 (linearize_expr_tree): Call try_special_add_to_ops.
3703 (reassociate_bb): Convert MULT_EXPR by (-1) to NEGATE_EXPR.
3704
3705 2016-05-21 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
3706
3707 * config/avr/avr.c (avr_expand_prologue): Add INCOMING_FRAME_SP_OFFSET
3708 to computed stack_usage.
3709
3710 2016-05-21 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
3711
3712 PR target/71103
3713 * config/avr/avr.md (define_expand "mov<mode>"): If the source
3714 operand is subreg (symbol_ref) then move the symbol ref to register.
3715
3716 2016-05-21 Jan Hubicka <hubicka@ucw.cz>
3717
3718 * tree.c (array_at_struct_end_p): Look through MEM_REF.
3719
3720 2016-05-21 Kugan Vivekanandarajah <kuganv@linaro.org>
3721
3722 PR middle-end/71179
3723 * tree-ssa-reassoc.c (transform_add_to_multiply): Disallow float
3724 VECTOR type.
3725
3726 2016-05-20 Eric Botcazou <ebotcazou@adacore.com>
3727
3728 * tree-vrp.c (compare_values_warnv): Simplify handling of symbolic
3729 ranges by calling get_single_symbol and tidy up. Look more closely
3730 into NAME + CST1 vs CST2 comparisons if type overflow is undefined.
3731
3732 2016-05-20 Jeff Law <law@redhat.com>
3733
3734 * bitmap.c (bitmap_find_bit): Remove useless test.
3735
3736 2016-05-20 Segher Boessenkool <segher@kernel.crashing.org>
3737
3738 * function.c (thread_prologue_and_epilogue_insns): Commit the
3739 insertion of the epilogue.
3740
3741 2016-05-20 Martin Jambor <mjambor@suse.cz>
3742
3743 PR tree-optimization/70884
3744 * tree-sra.c (initialize_constant_pool_replacements): Do not check
3745 should_scalarize_away_bitmap and cannot_scalarize_away_bitmap bits.
3746 (sort_and_splice_var_accesses): Do not consider multiple scalar reads
3747 of constant pool data as a reason for scalarization.
3748
3749 2016-05-20 Eric Botcazou <ebotcazou@adacore.com>
3750
3751 * config/arm/arm.c (arm_expand_prologue): Set the stack usage to 0
3752 for naked functions.
3753 (thumb1_expand_prologue): Likewise.
3754
3755 2016-05-20 Nathan Sidwell <nathan@acm.org>
3756
3757 * config/nvptx/nptx.c (nvptx_option_override): Only set
3758 flag_toplevel_reorder, if not explicitly specified. Set
3759 flag_no_common, unless explicitly specified.
3760
3761 2016-05-20 David Malcolm <dmalcolm@redhat.com>
3762
3763 * calls.c (can_implement_as_sibling_call_p): Mark param
3764 reg_parm_stack_space with ATTRIBUTE_UNUSED.
3765
3766 2016-05-20 Uros Bizjak <ubizjak@gmail.com>
3767
3768 * config/i386/i386.c (ix86_rtx_costs) <case CONST_DOUBLE>:
3769 Use IS_STACK_MODE when calculating cost of standard 80387 constants.
3770 Fallthru to CONST_VECTOR case to calculate cost of standard SSE
3771 constants.
3772 <case CONST_WIDE_INT>: Calculate cost of (MEM (SYMBOL_REF)).
3773 (ix86_legitimate_constant_p): Use CASE_CONST_SCALAR_INT
3774 and CASE_CONST_ANY.
3775
3776 2016-05-20 Cesar Philippidis <cesar@codesourcery.com>
3777
3778 * config/nvptx/nvptx.md (sincossf3): New pattern.
3779
3780 2016-05-20 David Malcolm <dmalcolm@redhat.com>
3781
3782 * calls.c (maybe_complain_about_tail_call): New function.
3783 (initialize_argument_information): Call
3784 maybe_complain_about_tail_call when clearing *may_tailcall.
3785 (can_implement_as_sibling_call_p): Call
3786 maybe_complain_about_tail_call when returning false.
3787 (expand_call): Read CALL_EXPR_MUST_TAIL_CALL and, if set,
3788 ensure try_tail_call is set. Call maybe_complain_about_tail_call
3789 if tail-call optimization fails.
3790 * cfgexpand.c (expand_call_stmt): Initialize
3791 CALL_EXPR_MUST_TAIL_CALL from gimple_call_must_tail_p.
3792 * gimple-pretty-print.c (dump_gimple_call): Dump
3793 gimple_call_must_tail_p.
3794 * gimple.c (gimple_build_call_from_tree): Call
3795 gimple_call_set_must_tail with the value of
3796 CALL_EXPR_MUST_TAIL_CALL.
3797 * gimple.h (enum gf_mask): Add GF_CALL_MUST_TAIL_CALL.
3798 (gimple_call_set_must_tail): New function.
3799 (gimple_call_must_tail_p): New function.
3800 * print-tree.c (print_node): Update printing of TREE_STATIC
3801 to reflect its use for CALL_EXPR_MUST_TAIL_CALL.
3802 * tree-core.h (struct tree_base): Add MUST_TAIL_CALL to the
3803 trailing comment listing applicable flags.
3804 * tree.h (CALL_EXPR_MUST_TAIL_CALL): New macro.
3805
3806 2016-05-20 David Malcolm <dmalcolm@redhat.com>
3807
3808 * calls.c (expand_call): Move "Rest of purposes for tail call
3809 optimizations to fail" to...
3810 (can_implement_as_sibling_call_p): ...this new function, and
3811 split into multiple "if" statements.
3812
3813 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
3814
3815 * cfgloop.h (expected_loop_iterations_unbounded,
3816 expected_loop_iterations): Unconstify.
3817 * cfgloopanal.c (expected_loop_iterations_unbounded): Sanity check the
3818 profile with known upper bound; return 3 when profile is absent.
3819 (expected_loop_iterations): Update.
3820
3821 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
3822
3823 * loop-doloop.c (doloop_optimize): Use get_estimated_loop_iterations_int
3824 and get_max_loop_iterations_int.
3825
3826 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
3827
3828 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can not produce
3829 realistic upper bounds here.
3830
3831 2016-05-20 Jakub Jelinek <jakub@redhat.com>
3832
3833 PR c++/71210
3834 * gimple-fold.c (gimple_fold_call): Do not remove lhs of noreturn
3835 calls if the LHS is variable length or has addressable type.
3836 If targets[0]->decl is a noreturn call with void return type and
3837 zero arguments, adjust fntype and remove lhs in that case.
3838
3839 2016-05-20 Marc Glisse <marc.glisse@inria.fr>
3840
3841 PR tree-optimization/71079
3842 PR tree-optimization/71206
3843 * match.pd ((X ^ Y) ^ (X ^ Z)): Convert the arguments.
3844
3845 2016-05-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3846
3847 * tree-vectorizer.c (get_vec_alignment_for_decl): New static function.
3848 (get_vec_alignment_for_array_decl): Likewise.
3849 (get_vec_alignment_for_record_decl): Likewise.
3850 (increase_alignment::execute): Move code to find alignment to
3851 get_vec_alignment_for_array_decl and call get_vec_alignment_for_decl.
3852 (type_align_map): New hash_map.
3853
3854 2016-05-20 Richard Guenther <rguenther@suse.de>
3855
3856 PR tree-optimization/29756
3857 * tree.def (BIT_INSERT_EXPR): New tcc_expression tree code.
3858 * expr.c (expand_expr_real_2): Handle BIT_INSERT_EXPR.
3859 * fold-const.c (operand_equal_p): Likewise.
3860 (fold_ternary_loc): Add constant folding of BIT_INSERT_EXPR.
3861 * gimplify.c (gimplify_expr): Handle BIT_INSERT_EXPR.
3862 * tree-inline.c (estimate_operator_cost): Likewise.
3863 * tree-pretty-print.c (dump_generic_node): Likewise.
3864 * tree-ssa-operands.c (get_expr_operands): Likewise.
3865 * cfgexpand.c (expand_debug_expr): Likewise.
3866 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
3867 * gimple.c (get_gimple_rhs_num_ops): Handle BIT_INSERT_EXPR.
3868 * tree-cfg.c (verify_gimple_assign_ternary): Verify BIT_INSERT_EXPR.
3869 * tree-ssa.c (non_rewritable_lvalue_p): We can rewrite
3870 vector inserts using BIT_FIELD_REF or MEM_REF on the lhs.
3871 (execute_update_addresses_taken): Do it.
3872
3873 2016-05-20 Richard Biener <rguenther@suse.de>
3874
3875 PR tree-optimization/71185
3876 * tree-ssa-loop-prefetch.c (gather_memory_references): Drop
3877 register operations.
3878
3879 2016-05-20 Richard Biener <rguenther@suse.de>
3880
3881 * tree-if-conv.c (add_bb_predicate_gimplified_stmts): Use
3882 gimple_seq_add_seq_without_update.
3883 (release_bb_predicate): Assert we have no operands to free.
3884 (if_convertible_loop_p_1): Calculate post dominators later.
3885 Do not free BB predicates here.
3886 (combine_blocks): Do not recompute BB predicates.
3887 (version_loop_for_if_conversion): Save BB predicates around
3888 loop versioning.
3889
3890 2016-05-19 Segher Boessenkool <segher@kernel.crashing.org>
3891
3892 * function.c (make_epilogue_seq): Remove epilogue_end parameter.
3893 (thread_prologue_and_epilogue_insns): Remove bb_flags. Restructure
3894 code. Ignore sibcalls on EDGE_IGNORE edges.
3895 * shrink-wrap.c (handle_simple_exit): New function. Set EDGE_IGNORE
3896 on edges for sibcalls that run without prologue. The rest of the
3897 function is combined from...
3898 (fix_fake_fallthrough_edge): ... this, and ...
3899 (try_shrink_wrapping): ... a part of this. Remove the bb_with
3900 function argument, make it a local variable.
3901
3902 2016-05-19 Sandra Loosemore <sandra@codesourcery.com>
3903
3904 * config/i386/cygming.h (DWARF2_UNWIND_INFO): Allow
3905 --disable-sjlj-exceptions for TARGET_BI_ARCH to select DWARF-2 EH
3906 for 32-bit mode and SEH for 64-bit.
3907 * config/i386/mingw32.h (SHARED_LIBGCC_UNDEFS_SPEC): Handle
3908 TARGET_64BIT_DEFAULT.
3909
3910 2016-05-19 Ryan Burn <contact@rnburn.com>
3911
3912 * Makefile.in (GTFILES): Add cilk.h and cilk-common.c.
3913 * gengtype.c (open_base_files): Add cilk.h to ifiles.
3914
3915 2016-05-19 Uros Bizjak <ubizjak@gmail.com>
3916
3917 * sched-deps.c (sched_analyze_2) <case TRAP_IF>: Also
3918 force pending loads from memory.
3919
3920 2016-05-19 Kelvin Nilsen <kelvin@gcc.gnu.org>
3921
3922 * config/rs6000/altivec.md (UNSPEC_DARN): New unspec constant.
3923 (UNSPEC_DARN_32): New unspec constant.
3924 (UNSPEC_DARN_RAW): New unspec constant.
3925 (darn_32): New instruction.
3926 (darn_raw): New instruction.
3927 (darn): New instruction.
3928 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_0): Add
3929 support and documentation for this macro.
3930 (BU_P9_MISC_1): New macro definition.
3931 (BU_P9_64BIT_MISC_0): New macro definition.
3932 (BU_P9_MISC_0): New macro definition.
3933 (darn_32): New builtin definition.
3934 (darn_raw): New builtin definition.
3935 (darn): New builtin definition.
3936 * config/rs6000/rs6000.c: Add #define RS6000_BUILTIN_0 and #undef
3937 RS6000_BUILTIN_0 directives to surround each occurrence of
3938 #include "rs6000-builtin.def".
3939 (rs6000_builtin_mask_calculate): Add in the RS6000_BTM_MODULO and
3940 RS6000_BTM_64BIT flags to the returned mask, depending on
3941 configuration.
3942 (def_builtin): Correct an error in the assignments made to the
3943 debugging variable attr_string.
3944 (rs6000_expand_builtin): Add support for no-operand built-in
3945 functions.
3946 (builtin_function_type): Remove fatal_error assertion that is no
3947 longer valid.
3948 (rs6000_common_init_builtins): Add support for no-operand built-in
3949 functions.
3950 * config/rs6000/rs6000.h (RS6000_BTM_MODULO): New macro
3951 definition.
3952 (RS6000_BTM_PURE): Enhance comment to clarify intent of this flag
3953 definition.
3954 (RS6000_BTM_64BIT): New macro definition.
3955 * doc/extend.texi: Document __builtin_darn (void),
3956 __builtin_darn_raw (void), and __builtin_darn_32 (void) built-in
3957 functions.
3958
3959 2016-05-19 Jan Hubicka <hubicka@ucw.cz>
3960
3961 * tree-vect-loop.c (vect_analyze_loop_2): Use also
3962 max_loop_iterations_int.
3963
3964 2016-05-19 Marek Polacek <polacek@redhat.com>
3965
3966 PR tree-optimization/71031
3967 * tree-vrp.c (extract_range_from_binary_expr_1): Turn assert into a
3968 condition and adjust the code a bit.
3969
3970 2016-05-19 Martin Liska <mliska@suse.cz>
3971
3972 * tree-vect-stmts.c (vectorizable_simd_clone_call): Utilize
3973 auto_vec instead of vec.
3974
3975 2016-05-19 Martin Liska <mliska@suse.cz>
3976
3977 * tree-parloops.c (oacc_entry_exit_ok): Release a vector.
3978
3979 2016-05-19 Martin Liska <mliska@suse.cz>
3980
3981 * tree-if-conv.c (ifcvt_repair_bool_pattern): Utilize auto_vecs.
3982
3983 2016-05-19 Martin Liska <mliska@suse.cz>
3984
3985 * ipa-pure-const.c (set_function_state): Remove an existing
3986 funct_state.
3987 (remove_node_data): Do not free it as it's released
3988 in set_function_state.
3989
3990 2016-05-19 Martin Liska <mliska@suse.cz>
3991
3992 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Release
3993 bitmap.
3994
3995 2016-05-19 Martin Liska <mliska@suse.cz>
3996
3997 * omp-simd-clone.c (simd_clone_adjust): Release vector.
3998
3999 2016-05-19 Martin Liska <mliska@suse.cz>
4000
4001 * tree-ssa-reassoc.c (eliminate_duplicate_pair): Truncate
4002 an auto_vec instead of re-creating it.
4003
4004 2016-05-19 Martin Liska <mliska@suse.cz>
4005
4006 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Use
4007 auto_vec instead of vec.
4008
4009 2016-05-19 Martin Liska <mliska@suse.cz>
4010
4011 * lto-section-in.c (lto_get_section_data): Call
4012 lto_check_version with additional argument.
4013 * lto-streamer.c (lto_check_version): Add new argument.
4014 * lto-streamer.h (lto_check_version): Likewise.
4015
4016 2016-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4017
4018 * config/arm/arm.c (arm_new_rtx_costs, SIGN_EXTEND case):
4019 Don't add cost of inner memory when handling sign-extended loads.
4020
4021 2016-05-19 Ilya Enkovich <ilya.enkovich@intel.com>
4022
4023 PR rtl-optimization/71148
4024 * cse.c (cse_main): Free dominance info.
4025 (rest_of_handle_cse): Don't free dominance info.
4026 (rest_of_handle_cse2): Likewise.
4027 (rest_of_handle_cse_after_global_opts): Likewise.
4028
4029 2016-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4030
4031 PR target/71056
4032 * config/arm/arm-builtins.c (arm_builtin_vectorized_function): Return
4033 NULL_TREE early if NEON is not available. Remove now redundant check
4034 in ARM_CHECK_BUILTIN_MODE.
4035
4036 2016-05-19 Maxim Ostapenko <m.ostapenko@samsung.com>
4037
4038 PR sanitizer/64354
4039 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Add new
4040 builtin __SANITIZE_THREAD__ macros for fsanitize=thread switch.
4041 * doc/cpp.texi: Document new macros.
4042
4043 2016-05-19 Bin Cheng <bin.cheng@arm.com>
4044
4045 PR tree-optimization/69848
4046 * tree-vect-loop.c (vectorizable_reduction): Don't factor
4047 comparison expr out of VEC_COND_EXPR for COND_REDUCTION.
4048
4049 2016-05-19 Segher Boessenkool <segher@kernel.crashing.org>
4050
4051 * function.c (thread_prologue_and_epilogue_insn): Move the
4052 "goto epilogue_done" one block later.
4053
4054 2016-05-19 Richard Biener <rguenther@suse.de>
4055
4056 PR tree-optimization/70729
4057 * passes.def: Move LIM pass before PRE. Remove no longer
4058 required copyprop and move first DCE out of the loop pipeline.
4059
4060 2016-05-18 David Malcolm <dmalcolm@redhat.com>
4061
4062 PR driver/69265
4063 * Makefile.in (GCC_OBJS): Move spellcheck.o to...
4064 (OBJS-libcommon-target): ...here.
4065 * opts-common.c: Include spellcheck.h.
4066 (cmdline_handle_error): Build a vec of valid options and use it
4067 to suggest provide hints for misspelled arguments.
4068
4069 2016-05-18 Jakub Jelinek <jakub@redhat.com>
4070
4071 PR c++/71100
4072 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Don't drop
4073 lhs if it has TREE_ADDRESSABLE type.
4074
4075 2016-05-18 Uros Bizjak <ubizjak@gmail.com>
4076
4077 PR target/71145
4078 * config/alpha/alpha.md (trap): Add (use (reg:DI 29)).
4079 (*exception_receiver_1): Return "#" for TARGET_EXPLICIT_RELOCS.
4080
4081 2016-05-18 Martin Jambor <mjambor@suse.cz>
4082
4083 PR ipa/69708
4084 * ipa-cp.c (ipa_get_jf_pass_through_result): Allow non-ip constant
4085 input for NOP_EXPR pass-through functions.
4086 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Allow
4087 aggregate global constant VAR_DECLs in constant jump functions.
4088
4089 2016-05-18 Martin Jambor <mjambor@suse.cz>
4090
4091 PR ipa/69708
4092 * ipa-prop.c (parm_preserved_before_stmt_p): Return true for loads
4093 from TREE_READONLY parameters.
4094
4095 2016-05-18 Martin Jambor <mjambor@suse.cz>
4096
4097 PR ipa/69708
4098 * cgraph.h (cgraph_indirect_call_info): New field
4099 guaranteed_unmodified.
4100 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also pass parameter value
4101 to ipa_find_agg_cst_for_param, check guaranteed_unmodified when
4102 appropriate.
4103 * ipa-inline-analysis.c (evaluate_conditions_for_known_args): Also
4104 pass the parameter value to ipa_find_agg_cst_for_param.
4105 * ipa-prop.c (ipa_load_from_parm_agg): New parameter
4106 guaranteed_unmodified, store AA results there instead of bailing out
4107 if present.
4108 (ipa_note_param_call): Also initialize guaranteed_unmodified flag.
4109 (ipa_analyze_indirect_call_uses): Also set guaranteed_unmodified flag.
4110 (find_constructor_constant_at_offset): New function.
4111 (ipa_find_agg_cst_from_init): Likewise.
4112 (ipa_find_agg_cst_for_param): Also seearch for aggregate values in
4113 static initializers of contants, report back through a new paameter
4114 from_global_constant if that was the case.
4115 (try_make_edge_direct_simple_call): Also pass parameter value to
4116 ipa_find_agg_cst_for_param, check guaranteed_unmodified when
4117 appropriate.
4118 (ipa_write_indirect_edge_info): Stream new flag guaranteed_unmodified.
4119 (ipa_read_indirect_edge_info): Likewise.
4120 * ipa-prop.h (ipa_find_agg_cst_for_param): Update declaration.
4121 (ipa_load_from_parm_agg): Likewise.
4122
4123 2016-05-18 Jiong Wang <jiong.wang@arm.com>
4124
4125 PR rtl-optimization/71150
4126 * lra-constraint (process_addr_reg): Guard "in_class_p" with REG_P
4127 check.
4128
4129 2016-05-18 Michael Meissner <meissner@linux.vnet.ibm.com>
4130
4131 PR target/70915
4132 * config/rs6000/constraints.md (wE constraint): New constraint
4133 for a vector constant that can be loaded with XXSPLTIB.
4134 (wM constraint): New constraint for a vector constant of a 1's.
4135 (wS constraint): New constraint for a vector constant that can be
4136 loaded with XXSPLTIB and a vector sign extend instruction.
4137 * config/rs6000/predicates.md (xxspltib_constant_split): New
4138 predicates for wE/wS constraints.
4139 (xxspltib_constant_nosplit): Likewise.
4140 (easy_vector_constant): Add support for constants that can be
4141 loaded via XXSPLTIB.
4142 (all_ones_constant): New predicate for vector constant with all
4143 1's set.
4144 (splat_input_operand): Add support for ISA 3.0 word splat operations.
4145 * config/rs6000/rs6000.c (xxspltib_constant_p): New function to
4146 return if a constant can be loaded with the ISA 3.0 XXSPLTIB
4147 instruction and possibly with a sign extension.
4148 (output_vec_const_move): Add support for XXSPLTIB. If we are
4149 loading up 0/-1 into Altivec registers, prefer using VSPLTISW
4150 instead of XXLXOR/XXLORC.
4151 (rs6000_expand_vector_init): Add support for ISA 3.0 word splat
4152 operations.
4153 (rs6000_legitimize_reload_address): Likewise.
4154 (rs6000_output_move_128bit): Use output_vec_const_move to emit
4155 constants.
4156 * config/rs6000/vsx.md (VSX_M): Add TImode (if -mvsx-timode) and
4157 combine VSX_M and VSX_M2 into one iterator.
4158 (VSX_M2): Likewise.
4159 (VSINT_84): New iterators for loading constants with XXSPLTIB.
4160 (VSINT_842): Likewise.
4161 (UNSPEC_VSX_SIGN_EXTEND): New UNSPEC.
4162 (xxspltib_v16qi): New insns to load up constants with the ISA 3.0
4163 XXSPLTIB instruction.
4164 (xxspltib_<mode>_nosplit): Likewise.
4165 (xxspltib_<mode>_split): New insn to load up constants with
4166 XXSPLTIB and a sign extend instruction.
4167 (vsx_mov<mode>): Replace single move that handled all vector types
4168 with separate 32-bit and 64-bit moves. Combine the movti_<bit>
4169 moves (when -mvsx-timode is in effect) into the main vector
4170 moves. Eliminate separate moves for <VSr> <VSa>, where the
4171 preferred register class (<VSr>) is listed first, and the
4172 secondary register class (<VSa>) is listed second with a '?' to
4173 discourage use. Prefer loading 0/-1 in any VSX register for ISA
4174 3.0, and Altivec registers for ISA 2.06/2.07 (PR target/70915) so
4175 that if the register was involved in a slow operation, the
4176 clear/set operation does not wait for the slow operation to
4177 finish. Adjust the length attributes for 32-bit mode. Use
4178 rs6000_output_move_128bit and drop the use of the string
4179 instructions for 32-bit movti when -mvsx-timode is in effect. Use
4180 spacing so that the alternatives and attributes don't generate
4181 long lines, and put things in columns, so that it is easier to
4182 match up the operands and attributes with the insn alternatives.
4183 (vsx_mov<mode>_64bit): Likewise.
4184 (vsx_mov<mode>_32bit): Likewise.
4185 (vsx_movti_64bit): Fold movti into normal vector moves.
4186 (vsx_movti_32bit): Likewise.
4187 (vsx_splat_<mode>, V4SI/V4SF modes): Add support for ISA 3.0 word
4188 splat instructions.
4189 (vsx_splat_v4si_internal): Likewise.
4190 (vsx_splat_v4sf_internal): Likewise.
4191 (vector fusion peepholes): Use VSX_M instead of VSX_M2.
4192 (vsx_sign_extend_qi_<mode>): New ISA 3.0 instructions to sign
4193 extend vector elements.
4194 (vsx_sign_extend_hi_<mode>): Likewise.
4195 (vsx_sign_extend_si_v2di): Likewise.
4196 * config/rs6000/rs6000-protos.h (xxspltib_constant_p): Add
4197 declaration.
4198 * doc/md.texi (PowerPC constraints): Document the wE, wM, and wS
4199 constraints. Add trailing period to wL documentation.
4200
4201 2016-05-18 Richard Sandiford <richard.sandiford@arm.com>
4202
4203 PR middle-end/71020
4204 * tree-dfa.h (replace_abnormal_ssa_names): Declare.
4205 * tree-dfa.c (replace_abnormal_ssa_names): New function.
4206 * tree-call-cdce.c: Include tree-dfa.h.
4207 (can_guard_call_p): New function, extracted from...
4208 (can_use_internal_fn): ...here.
4209 (shrink_wrap_one_built_in_call_with_conds): Remove failure path
4210 and return void.
4211 (shrink_wrap_one_built_in_call): Likewise.
4212 (use_internal_fn): Likewise.
4213 (shrink_wrap_conditional_dead_built_in_calls): Update accordingly
4214 and return void. Call replace_abnormal_ssa_names.
4215 (pass_call_cdce::execute): Check can_guard_call_p during the
4216 initial walk. Assume shrink_wrap_conditional_dead_built_in_calls
4217 will always change something.
4218
4219 2016-05-18 Martin Jambor <mjambor@suse.cz>
4220
4221 PR ipa/70646
4222 * ipa-prop.c (determine_locally_known_aggregate_parts): Bail out early
4223 if parameter PARAM_IPA_MAX_AGG_ITEMS is zero.
4224
4225 2016-05-18 Martin Jambor <mjambor@suse.cz>
4226
4227 PR ipa/70646
4228 * ipa-inline.h (condition): New field size.
4229 * ipa-inline-analysis.c (add_condition): New parameter SIZE, use it
4230 for comaprison and store it into the new condition.
4231 (evaluate_conditions_for_known_args): Use condition size to check
4232 access sizes for all but CHANGED conditions.
4233 (unmodified_parm_1): New parameter size_p, store access size into it.
4234 (unmodified_parm): Likewise.
4235 (unmodified_parm_or_parm_agg_item): Likewise.
4236 (eliminated_by_inlining_prob): Pass NULL to unmodified_parm as size_p.
4237 (set_cond_stmt_execution_predicate): Extract access sizes and store
4238 them to conditions.
4239 (set_switch_stmt_execution_predicate): Likewise.
4240 (will_be_nonconstant_expr_predicate): Likewise.
4241 (will_be_nonconstant_predicate): Likewise.
4242 (inline_read_section): Stream condition size.
4243 (inline_write_summary): Likewise.
4244
4245 2016-05-18 Richard Biener <rguenther@suse.de>
4246
4247 * tree-ssa-loop-im.c (determine_max_movement): Properly add
4248 condition cost to PHI cost instead of total_cost.
4249
4250 2016-05-18 Martin Liska <mliska@suse.cz>
4251
4252 PR fortran/70856
4253 * ipa-icf.c (sem_variable::merge): Set DECL_PT_UID for
4254 merged variables.
4255
4256 2016-05-18 Richard Biener <rguenther@suse.de>
4257
4258 * lto-streamer.h (LTO_major_version): Bump to 6.
4259
4260 2016-05-18 Segher Boessenkool <segher@kernel.crashing.org>
4261
4262 * function.c (make_split_prologue_seq, make_prologue_seq,
4263 make_epilogue_seq): New functions, factored out from...
4264 (thread_prologue_and_epilogue_insns): Here.
4265
4266 2016-05-18 Segher Boessenkool <segher@kernel.crashing.org>
4267
4268 * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
4269 cleanup_cfg with CLEANUP_EXPENSIVE after shrink-wrapping instead
4270 of before. Add a comment.
4271
4272 2016-05-18 Bin Cheng <bin.cheng@arm.com>
4273
4274 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check invariant
4275 expression pointer, not pointer to the pointer.
4276
4277 2016-05-18 Jakub Jelinek <jakub@redhat.com>
4278
4279 * config/i386/sse.md (pbroadcast_evex_isa): New mode attr.
4280 (avx2_pbroadcast<mode>): Add another alternative with v instead
4281 of x constraints in it, using <pbroadcast_evex_isa> isa.
4282 (avx2_pbroadcast<mode>_1): Similarly, add two such alternatives.
4283
4284 * config/i386/sse.md (<ssse3_avx2>_palignr<mode>): Use
4285 constraint x instead of v in second alternative, add avx512bw
4286 alternative.
4287
4288 * config/i386/sse.md (<ssse3_avx2>_pshufb<mode>3<mask_name>): Use
4289 constraint x instead of v in second alternative, add avx512bw
4290 alternative.
4291
4292 * config/i386/sse.md (*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>): Use
4293 constraint x instead of v in second alternative, add avx512bw
4294 alternative.
4295
4296 * config/i386/sse.md (avx2_pmaddubsw256, ssse3_pmaddubsw128): Add
4297 avx512bw alternative.
4298
4299 2016-05-18 Kirill Yukhin <kirill.yukhin@intel.com>
4300
4301 * config/i386/sse.md (define_insn "*andnot<mode>3"): Extend static
4302 array to 128 chars.
4303 (define_insn "*andnottf3"): Ditto.
4304 (define_insn "*<code><mode>3"/any_logic): Ditto.
4305 (define_insn "*<code>tf3"/any_logic): Ditto.
4306 (define_insn "sse2_storehpd"): Use Yv constraint for scalar
4307 operand to block AVX-512VL insn variant emit when it is not enabled.
4308
4309 2016-05-18 Kirill Yukhin <kirill.yukhin@intel.com>
4310
4311 * config/i386/sse.md (define_insn "*vec_concatv2sf_sse4_1"): Use 'Yv'
4312 constraint fot SF mode.
4313
4314 2016-05-18 Petr Murzin <petr.murzin@intel.com>
4315 Kirill Yukhin <kirill.yukhin@intel.com>
4316
4317 * config/i386/sse.md (define_insn "srcp14<mode>"): Use proper operand
4318 modifiers.
4319 (define_insn "rsqrt14<mode>"): Ditto.
4320 (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
4321 (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
4322 (define_insn "avx512f_<code>v8div16qi2_mask_store"): Ditto.
4323 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
4324 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"):
4325 Ditto.
4326 (define_insn "*avx512f_gatherdi<mode>"): Ditto.
4327 (define_insn "*avx512f_scatterdi<mode>"): Ditto.
4328 * config/i386/i386.c (ix86_print_operand): Expand check for size
4329 override codes for Intel syntax.
4330
4331 2016-05-18 Richard Biener <rguenther@suse.de>
4332
4333 PR tree-optimization/71168
4334 * tree-loop-distribution.c (distribute_loop): Move *destroy_p
4335 initialization earlier.
4336
4337 2016-05-18 James Greenhalgh <james.greenhalgh@arm.com>
4338
4339 * config/aarch64/aarch64-simd.md
4340 (aarch64_reduc_plus_internal<mode>): Rename to...
4341 (reduc_plus_scal): ...This, and remove previous implementation.
4342
4343 2016-05-18 Richard Biener <rguenther@suse.de>
4344
4345 * passes.def: Put late dse and cd_dce in canonical order.
4346
4347 2016-05-17 Jan Hubicka <hubicka@ucw.cz>
4348
4349 * ipa-inline-transform.c (preserve_function_body_p): Look for
4350 first non-thunk clone.
4351 (save_function_body): Save into first non-thunk.
4352 * lto-cgraph.c (lto_output_edge): When streaming thunk do not look
4353 up call stmt id.
4354 (lto_output_node): Inline thunks don't need body in every
4355 partition.
4356 * lto-streamer-in.c: Do not fixup thunk clones.
4357 * cgraphclones.c (cgraph_node::create_edge_including_clone): Skip
4358 thunks.
4359 * tree-inline.c (copy_bb): Be prepared for target node to be new after
4360 folding suceeds.
4361
4362 2016-05-17 Kugan Vivekanandarajah <kuganv@linaro.org>
4363
4364 PR middle-end/63586
4365 * tree-ssa-reassoc.c (transform_add_to_multiply): New.
4366 (reassociate_bb): Call transform_add_to_multiply.
4367
4368 2016-05-17 Kugan Vivekanandarajah <kuganv@linaro.org>
4369
4370 * config/aarch64/aarch64.c (all_extensions): Removed unused
4371 static variable.
4372
4373 2016-05-17 Nathan Sidwell <nathan@acm.org>
4374
4375 * config/nvptx/nvptx.c (nvptx_function_arg_boundary): New.
4376 (TARGET_FUNCTION_ARG_BOUNDARY): Override.
4377
4378 2016-05-17 Mikhail Maltsev <maltsevm@gmail.com>
4379
4380 PR tree-optimization/54579
4381 PR middle-end/55299
4382 * match.pd (~(~X >> Y), ~(~X >>r Y), ~(~X <<r Y)): New patterns.
4383
4384 2016-05-17 Marek Polacek <polacek@redhat.com>
4385
4386 PR ipa/71146
4387 * tree-inline.c (expand_call_inline): Call
4388 maybe_remove_unused_call_args.
4389
4390 2016-05-17 Jim Wilson <jim.wilson@linaro.org>
4391
4392 * doc/cpp.texi (__GNUC__): Major version changes are no longer rare.
4393 * doc/invoke.texi (-mnan=2008): Change signalling to signaling.
4394 * doc/md.texi (fmin@var{m}3): Likewise.
4395
4396 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
4397
4398 * match.pd (X & C): New transformation.
4399
4400 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
4401
4402 * match.pd (~X & Y): New transformation.
4403
4404 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
4405
4406 * tree-vrp.c (simplify_truth_ops_using_ranges): Set range
4407 information for new SSA_NAME.
4408 (simplify_conversion_using_ranges): Get range through get_range_info
4409 instead of get_value_range.
4410
4411 2016-05-17 Jiong Wang <jiong.wang@arm.com>
4412
4413 * config/aarch64/arm_neon.h (vmvn_s8): Reimplement using C operator.
4414 Remove inline assembly.
4415 (vmvn_s16): Likewise.
4416 (vmvn_s32): Likewise.
4417 (vmvn_u8): Likewise.
4418 (vmvn_u16): Likewise.
4419 (vmvn_u32): Likewise.
4420 (vmvnq_s8): Likewise.
4421 (vmvnq_s16): Likewise.
4422 (vmvnq_s32): Likewise.
4423 (vmvnq_u8): Likewise.
4424 (vmvnq_u16): Likewise.
4425 (vmvnq_u32): Likewise.
4426 (vmvn_p8): Likewise.
4427 (vmvnq_p16): Likewise.
4428
4429 2016-05-17 Jiong Wang <jiong.wang@arm.com>
4430
4431 * config/aarch64/aarch64-simd.md (vmul_n_f32): Remove inline assembly.
4432 Use builtin.
4433 (vmul_n_s16): Likewise.
4434 (vmul_n_s32): Likewise.
4435 (vmul_n_u16): Likewise.
4436 (vmul_n_u32): Likewise.
4437 (vmulq_n_f32): Likewise.
4438 (vmulq_n_f64): Likewise.
4439 (vmulq_n_s16): Likewise.
4440 (vmulq_n_s32): Likewise.
4441 (vmulq_n_u16): Likewise.
4442 (vmulq_n_u32): Likewise.
4443
4444 2016-05-17 Jiong Wang <jiong.wang@arm.com>
4445
4446 * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt_to_128df): Extend
4447 to all supported modes. Rename to "*aarch64_mul3_elt_from_dup".
4448
4449 2016-05-17 Jiong Wang <jiong.wang@arm.com>
4450
4451 * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_to_128df): Rename
4452 to *aarch64_fma4_elt_from_dup<mode>.
4453 (*aarch64_fnma4_elt_to_128df): Rename to
4454 *aarch64_fnma4_elt_from_dup<mode>.
4455 * config/aarch64/arm_neon.h (vfma_n_f64): New.
4456 (vfms_n_f32): Likewise.
4457 (vfms_n_f64): Likewise.
4458 (vfmsq_n_f32): Likewise.
4459 (vfmsq_n_f64): Likewise.
4460
4461 2016-05-17 Gerald Pfeifer <gerald@pfeifer.com>
4462
4463 * wide-int.h: Change fixed_wide_int_storage from class to struct.
4464
4465 2016-05-17 Richard Biener <rguenther@suse.de>
4466
4467 PR tree-optimization/71132
4468 * tree-loop-distribution.c (create_rdg_cd_edges): Pass in loop.
4469 Only add control dependences for blocks in the loop.
4470 (build_rdg): Adjust.
4471 (generate_code_for_partition): Return whether loop should
4472 be destroyed and delay that.
4473 (distribute_loop): Likewise.
4474 (pass_loop_distribution::execute): Record loops to be destroyed
4475 and perform delayed destroying of loops.
4476
4477 2016-05-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4478
4479 PR target/70809
4480 * config/aarch64/aarch64-simd.md (aarch64_vmls<mode>): Delete.
4481
4482 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
4483
4484 * config/aarch64/aarch64-elf.h (ASM_OUTPUT_DEF): Delete.
4485
4486 2016-05-17 Ilya Enkovich <ilya.enkovich@intel.com>
4487
4488 PR target/71114
4489 * config/i386/i386.c (dimode_scalar_chain::convert_op): Fix
4490 insertion point for instructions generated by validize_mem.
4491
4492 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
4493
4494 * config/aarch64/aarch64.c (SHIFT_COUNT_TRUNCATED): Wrap definition
4495 in brackets.
4496
4497 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
4498
4499 * config/aarch64/aarch64.c
4500 (aarch64_output_simd_mov_immediate): Make "buf_size" a variable
4501 rather than a macro.
4502
4503 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
4504
4505 * doc/invoke.texi (AArch64 Options): Various updates.
4506
4507 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
4508
4509 * ipa-inline-analysis.c (compute_inline_parameters): Disable inlinig
4510 into instrumentation thunks.
4511 * cif-code.def (CIF_CHKP): New.
4512
4513 2016-05-16 Uros Bizjak <ubizjak@gmail.com>
4514
4515 * config/i386/xopintrin.h: Correct "unsinged" typo in the comments.
4516
4517 2016-05-16 Martin Jambor <mjambor@suse.cz>
4518
4519 * hsa-gen.c (fillup_for_decl): Increase alignment to natural one.
4520 (get_symbol_for_decl): Sorry if a global symbol in under-aligned.
4521
4522 2016-05-16 Marek Polacek <polacek@redhat.com>
4523
4524 * gimple.c (maybe_remove_unused_call_args): Fix typos in the
4525 commentary.
4526
4527 2016-05-16 Martin Jambor <mjambor@suse.cz>
4528
4529 PR hsa/70857
4530 * omp-low.c (grid_expand_target_grid_body): Copy RESULT_DECL of
4531 the outlined kernel function.
4532
4533 2016-05-16 Robert Suchanek <robert.suchanek@imgtec.com>
4534
4535 * config/mips/mips.h (ISA_HAS_LSA): Enable for -mmsa.
4536 (ISA_HAS_DLSA): Ditto.
4537
4538 2016-05-16 Matthew Fortune <matthew.fortune@imgtec.com>
4539
4540 * config/mips/m5100.md (m51_int_load): Update the latency to 2.
4541
4542 2016-05-16 Nathan Sidwell <nathan@acm.org>
4543
4544 * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): Revert.
4545 (nvptx_name_replacement): Restore. Add comment.
4546 (write_fn_proto, write_fn_proto_from_insn,
4547 nvptx_output_call_insn): Restore
4548 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Delete.
4549
4550 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
4551
4552 * config/aarch64/aarch64.md
4553 (add<mode>3_compareC_cconly_imm): Remove use of %w.
4554 (add<mode>3_compareC_imm): Likewise.
4555 (<optab>si3_uxtw): Split into register and immediate variants.
4556 (andsi3_compare0_uxtw): Likewise.
4557 (and<mode>3_compare0): Likewise.
4558 (and<mode>3nr_compare0): Likewise.
4559 (stack_protect_test_<mode>): Don't use %x for memory operands.
4560
4561 2016-05-16 Matthew Fortune <matthew.fortune@imgtec.com>
4562
4563 * config/mips/mips-cpus.def (p5600): Add multi-line brackets.
4564
4565 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
4566
4567 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
4568 Split integer shifts into shift_reg and bfm.
4569 (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
4570 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
4571 (ror<mode>3_insn): Likewise.
4572 (<optab>si3_insn_uxtw): Likewise.
4573 (<optab><mode>3_insn): Change to rotate_imm.
4574 (extr<mode>5_insn_alt): Likewise.
4575 (extrsi5_insn_uxtw): Likewise.
4576 (extrsi5_insn_uxtw_alt): Likewise.
4577
4578 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
4579
4580 * doc/tm.texi: Regenerate.
4581 * doc/tm.texi.in (TARGET_INVALID_PARAMETER_TYPE): Remove.
4582 (TARGET_INVALID_RETURN_TYPE): Remove.
4583 * system.h: Poison TARGET_INVALID_PARAMETER_TYPE and
4584 TARGET_INVALID_RETURN_TYPE.
4585 * target.def (invalid_parameter_type): Remove.
4586 (invalid_return_type): Remove.
4587
4588 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
4589
4590 * ipa-inline-analysis.c (compute_inline_parameters): Be more reailistic
4591 on estimating thunk bodies; do not set inline_failed to CIF_THUNK for
4592 calls from thunk.
4593 * ipa-inline-transform.c (inline_call): When inlining into thunk produce
4594 gimple body.
4595 (preserve_function_body_p): No need to preserve function body
4596 * cif-codes.def (CIF_THUNK): Remove.
4597 * cgraphclones.c (duplicate_thunk_for_node): Thunks calls are inlinable.
4598
4599 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
4600
4601 * tree-inline.c (expand_call_inline): recurse after inlining thunk.
4602
4603 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
4604
4605 * tree.c (free_lang_data_in_decl): Also set target/optimization flags
4606 for thunks.
4607
4608 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
4609
4610 * ipa-inline.c (report_inline_failed_reason): Look into thunks, too
4611 (inline_small_functions): Do not look for function symbol when
4612 resetting caches.
4613
4614 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
4615
4616 * lto-cgraph.c (compute_ltrans_boundary, output_symtab): Fix handling
4617 of inline thunks
4618
4619 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
4620 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4621 Jiong Wang <jiong.wang@arm.com>
4622
4623 * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
4624 for __ARM_FP16_FORMAT_IEEE and __ARM_FP16_FORMAT_ALTERNATIVE.
4625 Define __ARM_FP16_ARGS when appropriate.
4626 * config/arm/arm.c (arm_invalid_parameter_type): Remove
4627 declaration.
4628 (arm_invalid_return_type): Likewise.
4629 (TARGET_INVALID_PARAMETER_TYPE): Remove.
4630 (TARGET_INVALID_RETURN_TYPE): Remove.
4631 (aapcs_vfp_sub_candidate): Allow HFmode.
4632 (aapcs_vfp_allocate): Add comment. Support HFmode.
4633 (aapcs_vfp_allocate_return_reg): Likewise.
4634 (struct aapcs_cp_arg_layout): Slightly reword comments for
4635 is_return_candidate and allocate_return_reg.
4636 (output_mov_vfp): Update assert.
4637 (arm_hard_regno_mode_ok): Remove comment, update HF-mode
4638 condition.
4639 (arm_invalid_parameter_type): Remove.
4640 (amr_invalid_return_type): Remove.
4641 * config/arm/arm.h (TARGET_NEON_FP16): Fix definition.
4642 * config/arm/arm.md (*arm32_movhf): Disable for TARGET_VFP.
4643 * config/arm/vfp.md (*movhf_vfp): Enable for TARGET_VFP.
4644
4645 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
4646
4647 * config/aarch64/aarch64.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
4648 * config/aarch64/arch64-protos.h
4649 (aarch64_legitimize_reload_address): Remove.
4650 * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
4651 Remove.
4652
4653 2016-05-16 Eric Botcazou <ebotcazou@adacore.com>
4654
4655 * configure.ac: Add ACX_NONCANONICAL_HOST.
4656 * configure: Regenerate.
4657 * Makefile.in: Set host_noncanonical.
4658
4659 2016-05-14 Uros Bizjak <ubizjak@gmail.com>
4660
4661 PR target/71097
4662 * config/i386/i386.md (*movtf_internal): Before register allocation,
4663 do not allow FP constants for CM_MEDIUM memory model, allow only
4664 standard FP constants for CM_LARGE and CM_LARGE_PIC models.
4665 (*movxf_internal): Ditto.
4666 (*movdf_internal): Ditto.
4667 (*movsf_internal): Ditto.
4668
4669 2016-05-13 Segher Boessenkool <segher@kernel.crashing.org>
4670
4671 PR rtl-optimization/67483
4672 * combine.c (make_compound_operation): Don't call extract_left_shift
4673 with negative shift amounts.
4674
4675 2016-05-13 Jakub Jelinek <jakub@redhat.com>
4676
4677 PR bootstrap/71071
4678 * fold-const.c (fold_checksum_tree): Allow modification
4679 of TYPE_ALIAS_SET during folding.
4680
4681 * config/i386/i386.c (ix86_compute_frame_layout, ix86_expand_prologue,
4682 ix86_expand_split_stack_prologue): Use HOST_WIDE_INT_C macro.
4683 (ix86_split_to_parts): Likewise. Fix up formatting.
4684
4685 2016-05-13 H.J. Lu <hongjiu.lu@intel.com>
4686
4687 * tree-ssa-loop-ivopts.c (create_new_ivs): Cast to
4688 unsigned HOST_WIDE_INT with HOST_WIDE_INT_PRINT_UNSIGNED in
4689 printf format.
4690
4691 2016-05-13 Nathan Sidwell <nathan@acm.org>
4692
4693 * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): New.
4694 (nvptx_name_replacement): Delete.
4695 (write_fn_proto, write_fn_proto_from_insn,
4696 nvptx_output_call_insn): Remove nvptx_name_replacement call.
4697 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Override.
4698 * langhooks.c (add_builtin_funcction_common): Call
4699 targetm.mangle_decl_assembler_name.
4700
4701 * config/nvptx/nvptx.c (write_fn_proto): Handle
4702 BUILT_IN_ATOMIC_COMPARE_EXCHANGE_n oddity.
4703
4704 2016-05-13 Martin Liska <mliska@suse.cz>
4705
4706 * tree-ssa-loop-ivopts.c (create_new_ivs): Use HOST_WIDE_INT_PRINT_DEC
4707 and PRIu64 in printf format.
4708
4709 2016-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4710
4711 * tree-ssa-loop-ivanon.c (try_unroll_loop_completely): Typo fix in
4712 comment.
4713
4714 2016-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4715
4716 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
4717 Change --param max-completely-peeled-times to
4718 --param max-completely-peel-times in dump file printing.
4719
4720 2016-05-13 Richard Biener <rguenther@suse.de>
4721
4722 PR tree-optimization/42587
4723 * tree-ssa-math-opts.c (perform_symbolic_merge): Handle BIT_FIELD_REF.
4724 (find_bswap_or_nop_1): Likewise.
4725 (bswap_replace): Likewise.
4726
4727 2016-05-13 Martin Liska <mliska@suse.cz>
4728
4729 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern):
4730 Initialize a variable with default value.
4731
4732 2016-05-13 Martin Liska <mliska@suse.cz>
4733
4734 * doc/invoke.texi: Enhance explanation of error recovery
4735 of sanitizers.
4736
4737 2016-05-13 Martin Liska <mliska@suse.cz>
4738
4739 * tree-ssa-loop-ivopts.c (avg_loop_niter): Fix coding style.
4740 (struct cost_pair): Change inv_expr_id (int) to inv_expr
4741 (iv_inv_expr_ent *).
4742 (struct iv_inv_expr_ent): Comment struct fields.
4743 (sort_iv_inv_expr_ent): New function.
4744 (struct ivopts_data): Rename inv_expr_id to max_inv_expr_id.
4745 (struct iv_ca): Replace used_inv_expr and num_used_inv_expr with
4746 a hash_map between iv_inv_expr_ent and number of usages.
4747 (niter_for_exit): Fix coding style.
4748 (tree_ssa_iv_optimize_init): Use renamed variable.
4749 (determine_base_object): Fix coding style.
4750 (alloc_iv): Likewise.
4751 (find_interesting_uses_outside): Likewise.
4752 (add_candidate_1): Likewise.
4753 (add_standard_iv_candidates): Likewise.
4754 (set_group_iv_cost): Replace inv_expr_id with inv_expr.
4755 (prepare_decl_rtl): Fix coding style.
4756 (get_address_cost): Likewise.
4757 (get_shiftadd_cost): Likewise.
4758 (force_expr_to_var_cost): Likewise.
4759 (compare_aff_trees): Likewise.
4760 (get_expr_id): Restructure the function.
4761 (get_loop_invariant_expr_id): Renamed to
4762 get_loop_invariant_expr.
4763 (get_computation_cost_at): Replace usage of inv_expr_id with
4764 inv_expr.
4765 (get_computation_cost): Likewise.
4766 (determine_group_iv_cost_generic): Likewise.
4767 (determine_group_iv_cost_address): Likewise.
4768 (iv_period): Fix coding style.
4769 (iv_elimination_compare_lt): Likewise.
4770 (may_eliminate_iv): Likewise.
4771 (determine_group_iv_cost_cond): Replace usage of inv_expr_id with
4772 inv_expr.
4773 (determine_group_iv_costs): Dump invariant expressions.
4774 (iv_ca_recount_cost): Use the newly added hash_map.
4775 (iv_ca_set_remove_invariants): Fix coding style.
4776 (iv_ca_set_add_invariants): Fix coding style.
4777 (iv_ca_set_no_cp): Utilize the newly added hash_map for used
4778 invariants.
4779 (iv_ca_set_cp): Likewise.
4780 (iv_ca_new): Initialize the newly added hash_map and remove
4781 initialization of fields.
4782 (iv_ca_free): Delete the hash_map.
4783 (iv_ca_dump): Dump invariant expressions.
4784 (iv_ca_extend): Fix coding style.
4785 (try_add_cand_for): Likewise.
4786 (create_new_ivs): Dump information about # of avg iterations and
4787 # of used invariant expressions.
4788 (rewrite_use_compare): Fix coding style.
4789 (free_loop_data): Set default value for max_inv_expr_id.
4790
4791 2016-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
4792
4793 * cse.c (rest_of_handle_cse): Use cleanup_cfg
4794 returned value cse_cfg_altered computation.
4795 (rest_of_handle_cse2): Likewise.
4796 (rest_of_handle_cse_after_global_opts): Likewise.
4797
4798 2016-05-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4799
4800 PR target/53440
4801 * config/arm/arm.c (arm32_output_mi_thunk): New.
4802 (arm_output_mi_thunk): Rename to arm_thumb1_mi_thunk. Rework
4803 to split Thumb1 vs TARGET_32BIT functionality.
4804 (arm_thumb1_mi_thunk): New.
4805
4806 2016-05-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4807
4808 * config/aarch64/aarch64.c (TARGET_OMIT_STRUCT_RETURN_REG): Set
4809 to true.
4810
4811 2016-05-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4812
4813 PR target/71080
4814 * config/i386/i386.c (ix86_in_large_data_p): Guard against NULL exp.
4815
4816 2016-05-13 Eric Botcazou <ebotcazou@adacore.com>
4817
4818 * builtins.c (expand_builtin_memcmp): Do not emit the call here.
4819 (expand_builtin_trap): Emit a regular call.
4820 (set_builtin_user_assembler_name): Remove obsolete cases.
4821 * dse.c (scan_insn): Adjust.
4822 * except.c: Include calls.h.
4823 (sjlj_emit_function_enter): If DONT_USE_BUILTIN_SETJMP is defined,
4824 emit a regular call to setjmp.
4825 * expr.c (emit_block_move_hints): Call emit_block_copy_via_libcall.
4826 (block_move_libcall_safe_for_call_parm): Use memcpy builtin.
4827 (emit_block_move_via_libcall): Delete.
4828 (block_move_fn): Delete.
4829 (init_block_move_fn): Likewise.
4830 (emit_block_move_libcall_fn): Likewise.
4831 (emit_block_op_via_libcall): New function.
4832 (set_storage_via_libcall): Tidy up and use memset builtin.
4833 (block_clear_fn): Delete.
4834 (init_block_clear_fn): Likewise.
4835 (clear_storage_libcall_fn): Likewise.
4836 (expand_assignment): Call emit_block_move_via_libcall.
4837 Do not include gt-expr.h.
4838 * expr.h (emit_block_op_via_libcall): Declare.
4839 (emit_block_copy_via_libcall): New inline function.
4840 (emit_block_move_via_libcall): Likewise.
4841 (emit_block_comp_via_libcall): Likewise.
4842 (block_clear_fn): Delete.
4843 (init_block_move_fn): Likewise.
4844 (init_block_clear_fn): Likewise.
4845 (emit_block_move_via_libcall): Likewise.
4846 (set_storage_via_libcall): Add default parameter value.
4847 * libfuncs.h (enum libfunc_index): Remove obsolete values.
4848 (abort_libfunc): Delete.
4849 (memcpy_libfunc): Likewise.
4850 (memmove_libfunc): Likewise.
4851 (memcmp_libfunc): Likewise.
4852 (memset_libfunc): Likewise.
4853 (setbits_libfunc): Likewise.
4854 (setjmp_libfunc): Likewise.
4855 (longjmp_libfunc): Likewise.
4856 (profile_function_entry_libfunc): Likewise.
4857 (profile_function_exit_libfunc): Likewise.
4858 (gcov_flush_libfunc): Likewise.
4859 * optabs-libfuncs.c (build_libfunc_function): Set DECL_ARTIFICIAL
4860 and DECL_VISIBILITY on the declaration.
4861 (init_optabs): Do not initialize obsolete libfuncs.
4862 * optabs.c (prepare_cmp_insn): Call emit_block_comp_via_libcall.
4863 * tree-core.h (ECF_RET1): Define.
4864 (ECF_TM_PURE): Adjust.
4865 (ECF_TM_BUILTIN): Likewise.
4866 * tree.c (set_call_expr_flags): Deal with ECF_RET1.
4867 (build_common_builtin_nodes): Initialize abort builtin.
4868 Add ECF_RET1 on memcpy, memmove and memset builtins.
4869 Pass final flags for alloca and alloca_with_align builtins.
4870 * config/alpha/alpha.c (alpha_init_libfuncs): Do not initialize
4871 obsolete builtins.
4872 * config/ia64/ia64.c (ia64_vms_init_libfuncs): Likewise.
4873 * config/i386/i386.c (ix86_expand_set_or_movmem): Adjust call to
4874 set_storage_via_libcall and call emit_block_copy_via_libcall.
4875
4876 2016-05-12 Uros Bizjak <ubizjak@gmail.com>
4877
4878 * config/i386/i386.md (*call_got_x32): Change operand 0 to
4879 DImode before it is passed to ix86_output_call_operand.
4880 (*call_value_got_x32): Ditto for operand 1.
4881
4882 2016-05-12 Jiong Wang <jiong.wang@arm.com>
4883
4884 PR rtl-optimization/70904
4885 * lra-constraint.c (process_addr_reg): Relax the restriction on subreg
4886 reload for wide mode.
4887
4888 2016-05-12 Marek Polacek <polacek@redhat.com>
4889
4890 PR c/70756
4891 * langhooks-def.h (lhd_incomplete_type_error): Adjust declaration.
4892 * langhooks.c (lhd_incomplete_type_error): Add location parameter.
4893 * langhooks.h (incomplete_type_error): Likewise.
4894 * tree.c (size_in_bytes_loc): Renamed from size_in_bytes. Add location
4895 parameter, pass it down to incomplete_type_error.
4896 * tree.h (size_in_bytes): New inline overload.
4897 (size_in_bytes_loc): Renamed from size_in_bytes.
4898
4899 2016-05-12 Richard Biener <rguenther@suse.de>
4900
4901 PR tree-optimization/71059
4902 * tree-ssa-pre.c (phi_translate_1): Fully fold translated
4903 nary before looking up or entering the expression into the VN
4904 hashes.
4905 * tree-ssa-sccvn.c (vn_nary_build_or_lookup): Fix comment typo.
4906 Make sure to re-use NARYs without result as inserted by
4907 phi-translation.
4908
4909 2016-05-12 Richard Biener <rguenther@suse.de>
4910
4911 PR tree-optimization/71062
4912 * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
4913 field.
4914 * tree-ssa-structalias.c (set_uids_in_ptset): Set
4915 vars_contains_restrict if the var is a restrict tag.
4916 * tree-ssa-alias.c (ptrs_compare_unequal): If vars_contains_restrict
4917 do not disambiguate pointers against it.
4918 (dump_points_to_solution): Re-structure and adjust for new
4919 vars_contains_restrict flag.
4920 * gimple-pretty-print.c (pp_points_to_solution): Likewise.
4921
4922 2016-05-12 Martin Liska <mliska@suse.cz>
4923
4924 * doc/invoke.texi: Explain connection between
4925 -fsanitize-recover=address and ASAN_OPTIONS="halt_on_error=1".
4926
4927 2016-05-12 Ilya Enkovich <ilya.enkovich@intel.com>
4928
4929 PR tree-optimization/71006
4930 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
4931 consider COND_EXPR as a mask producer.
4932
4933 2016-05-12 Marek Polacek <polacek@redhat.com>
4934
4935 PR driver/71063
4936 * opts.c (common_handle_option): Detect missing argument for --help^.
4937
4938 2016-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4939
4940 PR target/70830
4941 * config/arm/arm.c (arm_output_multireg_pop): Avoid POP instruction
4942 when popping the PC and within an interrupt handler routine.
4943 Add missing tab to output of "ldmfd".
4944 (output_return_instruction): Output LDMFD with SP update rather
4945 than POP when returning from interrupt handler.
4946
4947 2016-05-12 Jakub Jelinek <jakub@redhat.com>
4948
4949 * config/i386/i386.md (isa): Add x64_avx512dq, enable if
4950 TARGET_64BIT && TARGET_AVX512DQ.
4951 * config/i386/sse.md (*vec_extract<mode>): Add avx512bw alternatives.
4952 (*vec_extract<PEXTR_MODE12:mode>_zext): Add avx512bw alternative.
4953 (*vec_extract<ssevecmodelower>_0, *vec_extractv4si_0_zext,
4954 *vec_extractv2di_0_sse): Use v constraint instead of x constraint.
4955 (*vec_extractv4si): Add avx512dq and avx512bw alternatives.
4956 (*vec_extractv4si_zext): Add avx512dq alternative.
4957 (*vec_extractv2di_1): Add x64_avx512dq and avx512bw alternatives,
4958 use v instead of x constraint in other alternatives where possible.
4959
4960 * config/i386/sse.md (sse2_loadld): Use v instead of x
4961 constraint in alternatives 0,1,4.
4962
4963 * config/i386/sse.md (pinsr_evex_isa): New mode attr.
4964 (<sse2p4_1>_pinsr<ssemodesuffix>): Add 2 alternatives with
4965 v constraints instead of x and <pinsr_evex_isa> isa attribute.
4966
4967 PR target/71019
4968 * config/i386/sse.md (<sse2_avx2>_packssdw<mask_name>,
4969 <sse4_1_avx2>_packusdw<mask_name>): Make sure EVEX encoded insn
4970 is not emitted unless TARGET_AVX512BW.
4971 (<sse2_avx2>_packuswb<mask_name>, <sse2_avx2>_packsswb<mask_name>):
4972 Likewise. For TARGET_AVX512BW, use "=v" constraint instead of "=x"
4973 for the result operand.
4974
4975 * config/i386/sse.md (*vec_setv4sf_sse4_1, sse4_1_insertps): Use v
4976 constraint instead of x in avx alternatives. Use maybe_evex instead
4977 of vex prefix.
4978
4979 * config/i386/constraints.md (Yv): New constraint.
4980 * config/i386/i386.h (VALID_AVX512VL_128_REG_MODE): Allow
4981 TFmode and V1TImode in xmm16+ registers for TARGET_AVX512VL.
4982 * config/i386/i386.md (avx512fvecmode): New mode attr.
4983 (*pushtf): Use v constraint instead of x.
4984 (*movtf_internal): Likewise. For TARGET_AVX512VL and
4985 xmm16+ registers, use vmovdqu64 or vmovdqa64 instructions.
4986 (*absneg<mode>2): Use Yv constraint instead of x constraint.
4987 (*absnegtf2_sse): Likewise.
4988 (copysign<mode>3_const, copysign<mode>3_var): Likewise.
4989 * config/i386/sse.md (*andnot<mode>3): Add avx512vl and
4990 avx512f alternatives.
4991 (*andnottf3, *<code><mode>3, *<code>tf3): Likewise.
4992
4993 2016-05-12 Richard Biener <rguenther@suse.de>
4994
4995 PR tree-optimization/71060
4996 * tree-data-ref.c (initialize_data_dependence_relation): Do not
4997 require exact match of DR_BASE_OBJECT but only matching address and
4998 type.
4999
5000 2016-05-12 Richard Biener <rguenther@suse.de>
5001
5002 PR tree-optimization/70986
5003 * cfganal.c: Include cfgloop.h.
5004 (dfs_find_deadend): Prefer to take edges exiting loops.
5005
5006 2016-05-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5007
5008 * gcc.target/powerpc/pr70963.c: Require at least power8 at both
5009 compile and run time.
5010
5011 2016-05-11 Mikhail Maltsev <maltsevm@gmail.com>
5012
5013 PR c/43651
5014 * doc/invoke.texi (Wduplicate-decl-specifier): Document new option.
5015
5016 2016-05-11 Uros Bizjak <ubizjak@gmail.com>
5017
5018 * config/i386/i386.c (legitimize_pic_address): Use
5019 copy_to_suggested_reg instead of gen_movsi.
5020
5021 2016-05-11 Michael Meissner <meissner@linux.vnet.ibm.com>
5022
5023 * config/rs6000/predicates.md (quad_memory_operand): Move most of
5024 the code into quad_address_p and call it to share code with
5025 vsx_quad_dform_memory_operand.
5026 (vsx_quad_dform_memory_operand): New predicate for ISA 3.0 vector
5027 d-form support.
5028 * config/rs6000/rs6000.opt (-mlra): Switch to being an option mask
5029 bit instead of being a separate word. Split -mpower9-dform into
5030 two switches, -mpower9-dform-scalar and -mpower9-dform-vector.
5031 * config/rs6000/rs6000.c (RELOAD_REG_QUAD_OFFSET): New addr_mask
5032 for the register class supporting 128-bit quad word memory offsets.
5033 (mode_supports_vsx_dform_quad): Helper function to return if the
5034 register class uses quad word memory offsets.
5035 (rs6000_debug_addr_mask): Add support for quad word memory offsets.
5036 (rs6000_debug_reg_global): Always print if we are using LRA or not.
5037 (rs6000_setup_reg_addr_masks): If ISA 3.0 vector d-form
5038 instructions are enabled, set up the appropriate addr_masks for
5039 128-bit types.
5040 (rs6000_init_hard_regno_mode_ok): wb constraint is now based on
5041 -mpower9-dform-scalar, instead of -mpower9-dform.
5042 (rs6000_option_override_internal): Split -mpower9-dform into two
5043 switches, -mpower9-dform-scalar and -mpower9-dform-vector. The
5044 -mpower9-dform switch sets or clears both. If we are not using
5045 the LRA register allocator, do not enable -mpower9-dform-vector by
5046 default. If we are using LRA, enable -mpower9-dform-vector and
5047 -mvsx-timode if it is appropriate. Issue a warning if either
5048 -mpower9-dform-vector or -mvsx-timode are explicitly used without
5049 enabling LRA.
5050 (quad_address_offset_p): New helper function to return if the
5051 offset is legal for quad word memory instructions.
5052 (quad_address_p): New function to determin if GPR or vector
5053 register quad word memory addresses are legal.
5054 (mem_operand_gpr): Validate quad word address offsets.
5055 (reg_offset_addressing_ok_p): Add support for ISA 3.0 vector
5056 d-form (register + offset) instructions.
5057 (offsettable_ok_by_alignment): Likewise.
5058 (rs6000_legitimate_offset_address_p): Likewise.
5059 (legitimate_lo_sum_address_p): Likewise.
5060 (rs6000_legitimize_address): Likewise.
5061 (rs6000_legitimize_reload_address): Add more debug statements for
5062 -mdebug=addr.
5063 (rs6000_legitimate_address_p): Add support for ISA 3.0 vector
5064 d-form instructions.
5065 (rs6000_secondary_reload_memory): Add support for ISA 3.0 vector
5066 d-form instructions. Distinguish different cases in debug
5067 output. (rs6000_secondary_reload_inner): Add support for ISA 3.0 vector
5068 d-form instructions.
5069 (rs6000_preferred_reload_class): Likewise.
5070 (rs6000_output_move_128bit): Add support for ISA 3.0 d-form
5071 instructions. If ISA 3.0 is available, generate lxvx/stxvx instead
5072 of the ISA 2.06 indexed memory instructions.
5073 (rs6000_emit_prologue): If we have ISA 3.0 d-form instructions,
5074 use them to save/restore the saved vector registers instead of
5075 using Altivec instructions.
5076 (rs6000_emit_epilogue): Likewise.
5077 (rs6000_lra_p): Use TARGET_LRA instead of the old option word.
5078 (rs6000_opt_masks): Split -mpower9-dform into
5079 -mpower9-dform-scalar and -mpower9-dform-vector.
5080 (rs6000_print_options_internal): Print -mno-<switch> if <switch>
5081 was not selected.
5082 * config/rs6000/vsx.md (p9_vecload_<mode>): Delete hack to emit
5083 ISA 3.0 vector indexed memory instructions, and fold the code into
5084 the normal mov<mode> patterns.
5085 (p9_vecstore_<mode>): Likewise.
5086 (vsx_mov<mode>): Add support for ISA 3.0 vector d-form
5087 instructions.
5088 (vsx_movti_64bit): Likewise.
5089 (vsx_movti_32bit): Likewise.
5090 * config/rs6000/constraints.md (wO constraint): New constraint for
5091 ISA 3.0 vector d-form support.
5092 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Use
5093 -mpower9-dform-scalar instead of -mpower9-dform. Add note not to
5094 include -mpower9-dform-vector until we switch over to LRA.
5095 (POWERPC_MASKS): Add -mlra. Split -mpower9-dform into two.
5096 switches, -mpower9-dform-scalar and -mpower9-dform-vector.
5097 * config/rs6000/rs6000-protos.h (quad_address_p): Add declaration.
5098 * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
5099 for -mpower9-dform and -mlra.
5100 * doc/md.texi (wO constraint): Document wO constraint.
5101
5102 2016-05-11 Alexander Monakov <amonakov@ispras.ru>
5103
5104 * genattr.c (main): Change 'rtx' to 'rtx_insn *' in prototypes of
5105 'insn_latency', 'maximal_insn_latency', 'min_insn_conflict_delay'.
5106 * genautomata.c (output_internal_insn_code_evaluation): Simplify.
5107 Move handling of non-insn arguments inline into the sole user:
5108 (output_trans_func): ...here.
5109 (output_min_insn_conflict_delay_func): Change 'rtx' to 'rtx_insn *'
5110 in emitted function prototype.
5111 (output_internal_insn_latency_func): Ditto. Simplify.
5112 (output_internal_maximal_insn_latency_func): Ditto. Delete
5113 always-unused argument.
5114 (output_insn_latency_func): Ditto.
5115 (output_maximal_insn_latency_func): Ditto.
5116
5117 2016-05-11 Richard Biener <rguenther@suse.de>
5118
5119 PR tree-optimization/71055
5120 * tree-ssa-sccvn.c (vn_reference_lookup_3): When native-interpreting
5121 sth with precision not equal to access size verify we don't chop
5122 off bits.
5123
5124 2016-05-11 Richard Biener <rguenther@suse.de>
5125
5126 PR debug/71057
5127 * dwarf2out.c (retry_incomplete_types): Set early_dwarf.
5128 (dwarf2out_finish): Move retry_incomplete_types call ...
5129 (dwarf2out_early_finish): ... here.
5130
5131 2016-05-11 Richard Biener <rguenther@suse.de>
5132
5133 PR middle-end/71002
5134 * alias.c (reference_alias_ptr_type): Preserve alias-set zero
5135 if the langhook insists on it.
5136 * fold-const.c (make_bit_field_ref): Add arg for the original
5137 reference and preserve its alias-set.
5138 (decode_field_reference): Take exp by reference and adjust it
5139 to the original memory reference.
5140 (optimize_bit_field_compare): Adjust callers.
5141 (fold_truth_andor_1): Likewise.
5142 * gimplify.c (gimplify_expr): Adjust in-SSA form test.
5143
5144 2016-05-11 Ilya Enkovich <ilya.enkovich@intel.com>
5145
5146 PR middle-end/70807
5147 * cfgrtl.h (delete_insn_and_edges): Now return bool.
5148 * cfgrtl.c (delete_insn_and_edges): Likewise.
5149 * config/i386/i386.c (convert_scalars_to_vector): Remove
5150 redundant code.
5151 * cse.c (cse_insn): Compute cse_cfg_altered.
5152 (delete_trivially_dead_insns): Likewise.
5153 (cse_cc_succs): Likewise.
5154 (rest_of_handle_cse): Free dominance info if required.
5155 (rest_of_handle_cse2): Likewise.
5156 (rest_of_handle_cse_after_global_opts): Likewise.
5157
5158 2016-05-11 Alan Modra <amodra@gmail.com>
5159
5160 * config/rs6000/rs6000.c (is_complex_IBM_long_double,
5161 abi_v4_pass_in_fpr): New functions.
5162 (rs6000_function_arg_boundary): Exclude complex IBM long double
5163 from 64-bit alignment when ABI_V4.
5164 (rs6000_function_arg, rs6000_function_arg_advance_1,
5165 rs6000_gimplify_va_arg): Use abi_v4_pass_in_fpr.
5166
5167 2016-05-10 Segher Boessenkool <segher@kernel.crashing.org>
5168
5169 PR rtl-optimization/71028
5170 * cfgcleanup.c (try_optimize_cfg): Do not flip a conditional
5171 jump with just a return in the fallthrough block if the branch
5172 block contains just a return as well.
5173
5174 2016-05-10 Marc Glisse <marc.glisse@inria.fr>
5175
5176 * fold-const.c (fold_binary_loc) [(X ^ Y) & Y]: Remove and merge with...
5177 * match.pd ((X & Y) ^ Y): ... this.
5178 ((X & Y) & Y, (X | Y) | Y, (X ^ Y) ^ Y, (X & Y) & (X & Z), (X | Y)
5179 | (X | Z), (X ^ Y) ^ (X ^ Z)): New transformations.
5180
5181 2016-05-10 David Malcolm <dmalcolm@redhat.com>
5182
5183 * read-md.c (require_char_ws): New function.
5184 (read_string): Simplify using require_char_ws.
5185 (handle_constants): Likewise.
5186 (handle_enum): Likewise.
5187 (handle_file): Likewise.
5188 * read-md.h (require_char_ws): New declaration.
5189 * read-rtl.c (read_conditions): Simplify using require_char_ws.
5190 (read_mapping): Likewise.
5191 (read_rtx_code): Likewise.
5192 (read_nested_rtx): Likewise.
5193
5194 2016-05-10 James Norris <jnorris@codesourcery.com>
5195
5196 * config/rs6000/sysv4.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o
5197 if offloading is enabled and -fopenacc or -fopenmp is specified.
5198 (CRTOFFLOADEND): Likewise.
5199 (STARTFILE_LINUX_SPEC): Add CRTOFFLOADBEGIN.
5200 (ENDFILE_LINUX_SPEC): Add CRTOFFLOADEND.
5201
5202 2016-05-10 Uros Bizjak <ubizjak@gmail.com>
5203
5204 * config/i386/i386.c (legitimize_pic_address): Merge 64-bit and 32-bit
5205 gotoff_operand code paths. Use copy_to_suggested_regs and
5206 expand_simple_binop where appropriate. Cleanup.
5207
5208 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
5209
5210 PR target/70799
5211 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p): Allow
5212 integer constants.
5213 (dimode_scalar_chain::vector_const_cost): New.
5214 (dimode_scalar_chain::compute_convert_gain): Handle constants.
5215 (dimode_scalar_chain::convert_op): Likewise.
5216 (dimode_scalar_chain::convert_insn): Likewise.
5217
5218 2016-05-10 Pierre-Marie de Rodat <derodat@adacore.com>
5219
5220 * dwarf2out.c (resolve_args_picking_1): Consider DW_OP_neg as an
5221 unary operation, not a binary one.
5222
5223 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
5224
5225 PR middle-end/70877
5226 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Handle
5227 calls with type casted fndecl.
5228
5229 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
5230
5231 PR tree-optimization/70786
5232 * tree-chkp.c (chkp_find_bounds_1): Support WITH_SIZE_EXPR.
5233 * calls.c (initialize_argument_information): Bind bounds
5234 with corresponding args passed by reference.
5235
5236 2016-05-10 Jakub Jelinek <jakub@redhat.com>
5237
5238 PR target/70927
5239 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>),
5240 *<code><mode>3<mask_name>): For !TARGET_AVX512DQ and EVEX encoding,
5241 use vp*[dq] instead of v*p[sd] instructions and adjust mode attribute
5242 accordingly.
5243
5244 2016-05-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5245
5246 PR target/70963
5247 * config/rs6000/vsx.md (vsx_xvcvdpsxds_scale): Generate correct
5248 code for a zero scale factor.
5249 (vsx_xvcvdpuxds_scale): Likewise.
5250
5251 2016-05-10 David Malcolm <dmalcolm@redhat.com>
5252
5253 * diagnostic-show-locus.c (layout::layout): Call show_ruler
5254 if show_ruler_p was set on the context.
5255 (layout::show_ruler): New method.
5256 * diagnostic.h (struct diagnostic_context): Add field
5257 "show_ruler_p".
5258
5259 2016-05-10 Richard Biener <rguenther@suse.de>
5260
5261 PR tree-optimization/71039
5262 * tree-ssa-phiprop.c: Include tree-ssa-loop.h.
5263 (chk_uses): New function.
5264 (propagate_with_phi): Verify we can safely replicate the lhs of an
5265 aggregate assignment on all incoming edges.
5266
5267 2016-05-10 Oleg Endo <olegendo@gcc.gnu.org>
5268
5269 * config/rx/rx-protos.h (is_interrupt_func, is_fast_interrupt_func):
5270 Forward declare.
5271 (rx_atomic_sequence): New class.
5272 * config/rx/rx.c (rx_print_operand): Use symbolic names for PSW bits.
5273 (is_interrupt_func, is_fast_interrupt_func): Make non-static and
5274 non-inline.
5275 (rx_atomic_sequence::rx_atomic_sequence,
5276 rx_atomic_sequence::~rx_atomic_sequence): New functions.
5277 * config/rx/rx.md (CTRLREG_PSW, CTRLREG_USP, CTRLREG_FPSW, CTRLREG_CPEN,
5278 CTRLREG_BPSW, CTRLREG_BPC, CTRLREG_ISP, CTRLREG_FINTV,
5279 CTRLREG_INTB): New constants.
5280 (FETCHOP): New code iterator.
5281 (fethcop_name, fetchop_name2): New iterator code attributes.
5282 (QIHI): New mode iterator.
5283 (atomic_exchange<mode>, atomic_exchangesi, xchg_mem<mode>,
5284 atomic_fetch_<fetchop_name>si, atomic_fetch_nandsi,
5285 atomic_<fetchop_name>_fetchsi, atomic_nand_fetchsi): New patterns.
5286
5287 2016-05-10 Martin Liska <mliska@suse.cz>
5288
5289 * tree-inline.c (remap_dependence_clique): Do not remap
5290 debugging statements.
5291
5292 2016-05-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5293
5294 * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly")
5295 ("*fixuns_truncdfdi2_z13")
5296 ("*fixuns_trunc<FP:mode><GPR:mode>2_z196")
5297 ("*fix_truncdfdi2_bfp_z13", "*floatunsdidf2_z13")
5298 ("*extendsfdf2_z13"): Replace TARGET_Z13 with TARGET_VX.
5299
5300 2016-05-10 Richard Biener <rguenther@suse.de>
5301
5302 PR tree-optimization/70497
5303 PR tree-optimization/28367
5304 * tree-ssa-sccvn.c (vn_nary_build_or_lookup): New function
5305 split out from ...
5306 (visit_reference_op_load): ... here.
5307 (vn_reference_lookup_3): Use it to handle subreg-like accesses
5308 with simplified BIT_FIELD_REFs.
5309 * tree-ssa-pre.c (eliminate_insert): Handle inserting BIT_FIELD_REFs.
5310 * tree-complex.c (extract_component): Handle BIT_FIELD_REFs
5311 correctly.
5312
5313 2016-05-10 Pierre-Marie de Rodat <derodat@adacore.com>
5314
5315 * dwarf2out.c (add_abstract_origin_attribute): Adjust
5316 documentation comment. For BLOCK nodes, add a
5317 DW_AT_abstract_origin attribute that points to the DIE generated
5318 for the origin BLOCK.
5319 (gen_lexical_block_die): Call add_abstract_origin_attribute for
5320 blocks from inlined functions.
5321
5322 2016-05-10 Alan Modra <amodra@gmail.com>
5323
5324 PR target/70947
5325 * config/rs6000/rs6000.c (rs6000_expand_split_stack_prologue): Stop
5326 regrename modifying insns saving lr before __morestack call.
5327 * config/rs6000/rs6000.md (split_stack_return): Similarly for
5328 insns restoring lr after __morestack call.
5329
5330 2016-05-09 Jakub Jelinek <jakub@redhat.com>
5331
5332 * config/i386/i386.md (set_got, set_got_labelled, lwp_llwpcb,
5333 lwp_lwpval<mode>3, lwp_lwpins<mode>3): Remove constraints from
5334 expanders.
5335 * config/i386/sse.md (vec_interleave_high<mode>,
5336 vec_interleave_low<mode>, <avx512>_vpermi2var<mode>3_maskz,
5337 <avx512>_vpermt2var<mode>3_maskz): Likewise.
5338
5339 2016-05-04 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
5340
5341 * config/rs6000/rs6000.c (rs6000_reassociation_width): Add
5342 function for TARGET_SCHED_REASSOCIATION_WIDTH to enable
5343 parallel reassociation for power8 and forward.
5344
5345 2016-05-09 Uros Bizjak <ubizjak@gmail.com>
5346
5347 * config/i386/i386.md (absneg splitters with general regs): Use
5348 general_reg_operand predicate.
5349 (btsq peephole2): Use x86_64_immediate_operand to check if new
5350 value is suitable for immediate operand. Generate emitted insn
5351 using RTL expressions.
5352 (btcq peephole2): Ditto.
5353 (btrq peephole2): Ditto. Generate correct immediate operand
5354 for AND masking.
5355
5356 2016-05-09 Richard Sandiford <richard.sandiford@arm.com>
5357
5358 * cfgexpand.c (expand_debug_expr): Fix address offset for negative
5359 bitpos.
5360
5361 2016-05-09 Richard Sandiford <richard.sandiford@arm.com>
5362
5363 * tree-affine.c (wide_int_constant_multiple_p): Add missing
5364 pointer dereference.
5365
5366 2016-05-09 Richard Biener <rguenther@suse.de>
5367
5368 PR tree-optimization/70985
5369 * match.pd (BIT_FIELD_REF -> (type)): Disable on GIMPLE when
5370 op0 isn't a gimple register.
5371
5372 2016-05-09 Prachi Godbole <prachi.godbole@imgtec.com>
5373
5374 * config/mips/i6400.md (i6400_fpu_intadd, i6400_fpu_logic)
5375 (i6400_fpu_div, i6400_fpu_cmp, i6400_fpu_float, i6400_fpu_store)
5376 (i6400_fpu_long_pipe, i6400_fpu_logic_l, i6400_fpu_float_l)
5377 (i6400_fpu_mult): New cpu units.
5378 (i6400_msa_add_d, i6400_msa_int_add, i6400_msa_short_logic3)
5379 (i6400_msa_short_logic2, i6400_msa_short_logic, i6400_msa_move)
5380 (i6400_msa_cmp, i6400_msa_short_float2, i6400_msa_div_d)
5381 (i6400_msa_div_w, i6400_msa_div_h, i6400_msa_div_b)
5382 (i6400_msa_copy, i6400_msa_branch, i6400_fpu_msa_store)
5383 (i6400_fpu_msa_load, i6400_fpu_msa_move, i6400_msa_long_logic1)
5384 (i6400_msa_long_logic2, i6400_msa_mult, i6400_msa_long_float2)
5385 (i6400_msa_long_float4, i6400_msa_long_float5)
5386 (i6400_msa_long_float8, i6400_msa_fdiv_df)
5387 (i6400_msa_fdiv_sf): New reservations.
5388 * config/mips/p5600.md (p5600_fpu_intadd, p5600_fpu_cmp)
5389 (p5600_fpu_float, p5600_fpu_logic_a, p5600_fpu_logic_b)
5390 (p5600_fpu_div, p5600_fpu_logic, p5600_fpu_float_a)
5391 (p5600_fpu_float_b, p5600_fpu_float_c, p5600_fpu_float_d)
5392 (p5600_fpu_mult, p5600_fpu_fdiv, p5600_fpu_load): New cpu units.
5393 (msa_short_int_add, msa_short_logic, msa_short_logic_move_v)
5394 (msa_short_cmp, msa_short_float2, msa_short_logic3)
5395 (msa_short_store4, msa_long_load, msa_short_store)
5396 (msa_long_logic, msa_long_float2, msa_long_float4)
5397 (msa_long_float5, msa_long_float8, msa_long_mult)
5398 (msa_long_fdiv, msa_long_div): New reservations.
5399
5400 2016-05-09 Robert Suchanek <robert.suchanek@imgtec.com>
5401 Sameera Deshpande <sameera.deshpande@imgtec.com>
5402 Matthew Fortune <matthew.fortune@imgtec.com>
5403 Graham Stott <graham.stott@imgtec.com>
5404 Chao-ying Fu <chao-ying.fu@imgtec.com>
5405
5406 * config.gcc: Add MSA header file for mips*-*-* target.
5407 * config/mips/constraints.md (YI, YC, YZ, Unv5, Uuv5, Usv5, Uuv6)
5408 (Ubv8i, Urv8): New constraints.
5409 * config/mips/mips-ftypes.def: Add function types for MSA
5410 builtins.
5411 * config/mips/mips-modes.def (V16QI, V8HI, V4SI, V2DI, V4SF)
5412 (V2DF, V32QI, V16HI, V8SI, V4DI, V8SF, V4DF): New modes.
5413 * config/mips/mips-msa.md: New file.
5414 * config/mips/mips-protos.h
5415 (mips_split_128bit_const_insns): New prototype.
5416 (mips_msa_idiv_insns): Likewise.
5417 (mips_split_128bit_move): Likewise.
5418 (mips_split_128bit_move_p): Likewise.
5419 (mips_split_msa_copy_d): Likewise.
5420 (mips_split_msa_insert_d): Likewise.
5421 (mips_split_msa_fill_d): Likewise.
5422 (mips_expand_msa_branch): Likewise.
5423 (mips_const_vector_same_val_p): Likewise.
5424 (mips_const_vector_same_bytes_p): Likewise.
5425 (mips_const_vector_same_int_p): Likewise.
5426 (mips_const_vector_shuffle_set_p): Likewise.
5427 (mips_const_vector_bitimm_set_p): Likewise.
5428 (mips_const_vector_bitimm_clr_p): Likewise.
5429 (mips_msa_vec_parallel_const_half): Likewise.
5430 (mips_msa_output_division): Likewise.
5431 (mips_ldst_scaled_shift): Likewise.
5432 (mips_expand_vec_cond_expr): Likewise.
5433 * config/mips/mips.c (enum mips_builtin_type): Add
5434 MIPS_BUILTIN_MSA_TEST_BRANCH.
5435 (mips_gen_const_int_vector_shuffle): New prototype.
5436 (mips_const_vector_bitimm_set_p): New function.
5437 (mips_const_vector_bitimm_clr_p): Likewise.
5438 (mips_const_vector_same_val_p): Likewise.
5439 (mips_const_vector_same_bytes_p): Likewise.
5440 (mips_const_vector_same_int_p): Likewise.
5441 (mips_const_vector_shuffle_set_p): Likewise.
5442 (mips_symbol_insns): Forbid loading symbols via immediate for
5443 MSA.
5444 (mips_valid_offset_p): Limit offset to 10-bit for MSA loads and
5445 stores.
5446 (mips_valid_lo_sum_p): Forbid loadings symbols via %lo(base) for
5447 MSA.
5448 (mips_lx_address_p): Add support load indexed address for MSA.
5449 (mips_address_insns): Add calculation of instructions needed for
5450 stores and loads for MSA.
5451 (mips_const_insns): Move CONST_DOUBLE below CONST_VECTOR. Handle
5452 CONST_VECTOR for MSA and let it fall through.
5453 (mips_ldst_scaled_shift): New function.
5454 (mips_subword_at_byte): Likewise.
5455 (mips_msa_idiv_insns): Likewise.
5456 (mips_legitimize_move): Validate MSA moves.
5457 (mips_rtx_costs): Add UNGE, UNGT, UNLE, UNLT cases. Add
5458 calculation of costs for MSA division.
5459 (mips_split_move_p): Check if MSA moves need splitting.
5460 (mips_split_move): Split MSA moves if necessary.
5461 (mips_split_128bit_move_p): New function.
5462 (mips_split_128bit_move): Likewise.
5463 (mips_split_msa_copy_d): Likewise.
5464 (mips_split_msa_insert_d): Likewise.
5465 (mips_split_msa_fill_d): Likewise.
5466 (mips_output_move): Handle MSA moves.
5467 (mips_expand_msa_branch): New function.
5468 (mips_print_operand): Add 'E', 'B', 'w', 'v' and 'V' modifiers.
5469 Reinstate 'y' modifier.
5470 (mips_file_start): Add MSA .gnu_attribute.
5471 (mips_hard_regno_mode_ok_p): Allow TImode and 128-bit vectors in
5472 FPRs.
5473 (mips_hard_regno_nregs): Always return 1 for MSA supported mode.
5474 (mips_class_max_nregs): Add register size for MSA supported mode.
5475 (mips_cannot_change_mode_class): Allow conversion between MSA
5476 vector modes and TImode.
5477 (mips_mode_ok_for_mov_fmt_p): Allow MSA to use move.v
5478 instruction.
5479 (mips_secondary_reload_class): Force MSA loads/stores via memory.
5480 (mips_preferred_simd_mode): Add preffered modes for MSA.
5481 (mips_vector_mode_supported_p): Add MSA supported modes.
5482 (mips_autovectorize_vector_sizes): New function.
5483 (mips_msa_output_division): Likewise.
5484 (MSA_BUILTIN, MIPS_BUILTIN_DIRECT_NO_TARGET)
5485 (MSA_NO_TARGET_BUILTIN, MSA_BUILTIN_TEST_BRANCH): New macros.
5486 (CODE_FOR_msa_adds_s_b, CODE_FOR_msa_adds_s_h)
5487 (CODE_FOR_msa_adds_s_w, CODE_FOR_msa_adds_s_d)
5488 (CODE_FOR_msa_adds_u_b, CODE_FOR_msa_adds_u_h)
5489 (CODE_FOR_msa_adds_u_w, CODE_FOR_msa_adds_u_du
5490 (CODE_FOR_msa_addv_b, CODE_FOR_msa_addv_h, CODE_FOR_msa_addv_w)
5491 (CODE_FOR_msa_addv_d, CODE_FOR_msa_and_v, CODE_FOR_msa_bmnz_v)
5492 (CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bmz_v, CODE_FOR_msa_bmzi_b)
5493 (CODE_FOR_msa_bnz_v, CODE_FOR_msa_bz_v, CODE_FOR_msa_bsel_v)
5494 (CODE_FOR_msa_bseli_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w)
5495 (CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b)
5496 (CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w)
5497 (CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clti_u_b)
5498 (CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w)
5499 (CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_s_b)
5500 (CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w)
5501 (CODE_FOR_msa_clei_s_d, CODE_FOR_msa_clei_u_b)
5502 (CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w)
5503 (CODE_FOR_msa_clei_u_d, CODE_FOR_msa_div_s_b)
5504 (CODE_FOR_msa_div_s_h, CODE_FOR_msa_div_s_w)
5505 (CODE_FOR_msa_div_s_d, CODE_FOR_msa_div_u_b)
5506 (CODE_FOR_msa_div_u_h, CODE_FOR_msa_div_u_w)
5507 (CODE_FOR_msa_div_u_d, CODE_FOR_msa_fadd_w, CODE_FOR_msa_fadd_d)
5508 (CODE_FOR_msa_fexdo_w, CODE_FOR_msa_ftrunc_s_w)
5509 (CODE_FOR_msa_ftrunc_s_d, CODE_FOR_msa_ftrunc_u_w)
5510 (CODE_FOR_msa_ftrunc_u_d, CODE_FOR_msa_ffint_s_w)
5511 (CODE_FOR_msa_ffint_s_d, CODE_FOR_msa_ffint_u_w)
5512 (CODE_FOR_msa_ffint_u_d, CODE_FOR_msa_fsub_w)
5513 (CODE_FOR_msa_fsub_d, CODE_FOR_msa_fmsub_d, CODE_FOR_msa_fmadd_w)
5514 (CODE_FOR_msa_fmadd_d, CODE_FOR_msa_fmsub_w, CODE_FOR_msa_fmul_w)
5515 (CODE_FOR_msa_fmul_d, CODE_FOR_msa_fdiv_w, CODE_FOR_msa_fdiv_d)
5516 (CODE_FOR_msa_fmax_w, CODE_FOR_msa_fmax_d, CODE_FOR_msa_fmax_a_w)
5517 (CODE_FOR_msa_fmax_a_d, CODE_FOR_msa_fmin_w, CODE_FOR_msa_fmin_d)
5518 (CODE_FOR_msa_fmin_a_w, CODE_FOR_msa_fmin_a_d)
5519 (CODE_FOR_msa_fsqrt_w, CODE_FOR_msa_fsqrt_d)
5520 (CODE_FOR_msa_max_s_b, CODE_FOR_msa_max_s_h)
5521 (CODE_FOR_msa_max_s_w, CODE_FOR_msa_max_s_d)
5522 (CODE_FOR_msa_max_u_b, CODE_FOR_msa_max_u_h)
5523 (CODE_FOR_msa_max_u_w, CODE_FOR_msa_max_u_d)
5524 (CODE_FOR_msa_min_s_b, CODE_FOR_msa_min_s_h)
5525 (CODE_FOR_msa_min_s_w, CODE_FOR_msa_min_s_d)
5526 (CODE_FOR_msa_min_u_b, CODE_FOR_msa_min_u_h)
5527 (CODE_FOR_msa_min_u_w, CODE_FOR_msa_min_u_d)
5528 (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
5529 (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
5530 (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
5531 (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
5532 (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
5533 (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
5534 (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
5535 (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
5536 (CODE_FOR_msa_mulv_b, CODE_FOR_msa_mulv_h, CODE_FOR_msa_mulv_w)
5537 (CODE_FOR_msa_mulv_d, CODE_FOR_msa_nlzc_b, CODE_FOR_msa_nlzc_h)
5538 (CODE_FOR_msa_nlzc_w, CODE_FOR_msa_nlzc_d, CODE_FOR_msa_nor_v)
5539 (CODE_FOR_msa_or_v, CODE_FOR_msa_ori_b, CODE_FOR_msa_nori_b)
5540 (CODE_FOR_msa_pcnt_b, CODE_FOR_msa_pcnt_h, CODE_FOR_msa_pcnt_w)
5541 (CODE_FOR_msa_pcnt_d, CODE_FOR_msa_xor_v, CODE_FOR_msa_xori_b)
5542 (CODE_FOR_msa_sll_b, CODE_FOR_msa_sll_h, CODE_FOR_msa_sll_w)
5543 (CODE_FOR_msa_sll_d, CODE_FOR_msa_slli_b, CODE_FOR_msa_slli_h)
5544 (CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d, CODE_FOR_msa_sra_b)
5545 (CODE_FOR_msa_sra_h, CODE_FOR_msa_sra_w, CODE_FOR_msa_sra_d)
5546 (CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w)
5547 (CODE_FOR_msa_srai_d, CODE_FOR_msa_srl_b, CODE_FOR_msa_srl_h)
5548 (CODE_FOR_msa_srl_w, CODE_FOR_msa_srl_d, CODE_FOR_msa_srli_b)
5549 (CODE_FOR_msa_srli_h, CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d)
5550 (CODE_FOR_msa_subv_b, CODE_FOR_msa_subv_h, CODE_FOR_msa_subv_w)
5551 (CODE_FOR_msa_subv_d, CODE_FOR_msa_subvi_b, CODE_FOR_msa_subvi_h)
5552 (CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d, CODE_FOR_msa_move_v)
5553 (CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h, CODE_FOR_msa_vshf_w)
5554 (CODE_FOR_msa_vshf_d, CODE_FOR_msa_ilvod_d, CODE_FOR_msa_ilvev_d)
5555 (CODE_FOR_msa_pckod_d, CODE_FOR_msa_pckdev_d, CODE_FOR_msa_ldi_b)
5556 (CODE_FOR_msa_ldi_hi, CODE_FOR_msa_ldi_w)
5557 (CODE_FOR_msa_ldi_d): New code_aliasing macros.
5558 (mips_builtins): Add MSA sll_b, sll_h, sll_w, sll_d, slli_b,
5559 slli_h, slli_w, slli_d, sra_b, sra_h, sra_w, sra_d, srai_b,
5560 srai_h, srai_w, srai_d, srar_b, srar_h, srar_w, srar_d, srari_b,
5561 srari_h, srari_w, srari_d, srl_b, srl_h, srl_w, srl_d, srli_b,
5562 srli_h, srli_w, srli_d, srlr_b, srlr_h, srlr_w, srlr_d, srlri_b,
5563 srlri_h, srlri_w, srlri_d, bclr_b, bclr_h, bclr_w, bclr_d,
5564 bclri_b, bclri_h, bclri_w, bclri_d, bset_b, bset_h, bset_w,
5565 bset_d, bseti_b, bseti_h, bseti_w, bseti_d, bneg_b, bneg_h,
5566 bneg_w, bneg_d, bnegi_b, bnegi_h, bnegi_w, bnegi_d, binsl_b,
5567 binsl_h, binsl_w, binsl_d, binsli_b, binsli_h, binsli_w,
5568 binsli_d, binsr_b, binsr_h, binsr_w, binsr_d, binsri_b, binsri_h,
5569 binsri_w, binsri_d, addv_b, addv_h, addv_w, addv_d, addvi_b,
5570 addvi_h, addvi_w, addvi_d, subv_b, subv_h, subv_w, subv_d,
5571 subvi_b, subvi_h, subvi_w, subvi_d, max_s_b, max_s_h, max_s_w,
5572 max_s_d, maxi_s_b, maxi_s_h, maxi_s_w, maxi_s_d, max_u_b,
5573 max_u_h, max_u_w, max_u_d, maxi_u_b, maxi_u_h, maxi_u_w,
5574 maxi_u_d, min_s_b, min_s_h, min_s_w, min_s_d, mini_s_b, mini_s_h,
5575 mini_s_w, mini_s_d, min_u_b, min_u_h, min_u_w, min_u_d, mini_u_b,
5576 mini_u_h, mini_u_w, mini_u_d, max_a_b, max_a_h, max_a_w, max_a_d,
5577 min_a_b, min_a_h, min_a_w, min_a_d, ceq_b, ceq_h, ceq_w, ceq_d,
5578 ceqi_b, ceqi_h, ceqi_w, ceqi_d, clt_s_b, clt_s_h, clt_s_w,
5579 clt_s_d, clti_s_b, clti_s_h, clti_s_w, clti_s_d, clt_u_b,
5580 clt_u_h, clt_u_w, clt_u_d, clti_u_b, clti_u_h, clti_u_w,
5581 clti_u_d, cle_s_b, cle_s_h, cle_s_w, cle_s_d, clei_s_b, clei_s_h,
5582 clei_s_w, clei_s_d, cle_u_b, cle_u_h, cle_u_w, cle_u_d, clei_u_b,
5583 clei_u_h, clei_u_w, clei_u_d, ld_b, ld_h, ld_w, ld_d, st_b, st_h,
5584 st_w, st_d, sat_s_b, sat_s_h, sat_s_w, sat_s_d, sat_u_b, sat_u_h,
5585 sat_u_w, sat_u_d, add_a_b, add_a_h, add_a_w, add_a_d, adds_a_b,
5586 adds_a_h, adds_a_w, adds_a_d, adds_s_b, adds_s_h, adds_s_w,
5587 adds_s_d, adds_u_b, adds_u_h, adds_u_w, adds_u_d, ave_s_b,
5588 ave_s_h, ave_s_w, ave_s_d, ave_u_b, ave_u_h, ave_u_w, ave_u_d,
5589 aver_s_b, aver_s_h, aver_s_w, aver_s_d, aver_u_b, aver_u_h,
5590 aver_u_w, aver_u_d, subs_s_b, subs_s_h, subs_s_w, subs_s_d,
5591 subs_u_b, subs_u_h, subs_u_w, subs_u_d, subsuu_s_b, subsuu_s_h,
5592 subsuu_s_w, subsuu_s_d, subsus_u_b, subsus_u_h, subsus_u_w,
5593 subsus_u_d, asub_s_b, asub_s_h, asub_s_w, asub_s_d, asub_u_b,
5594 asub_u_h, asub_u_w, asub_u_d, mulv_b, mulv_h, mulv_w, mulv_d,
5595 maddv_b, maddv_h, maddv_w, maddv_d, msubv_b, msubv_h, msubv_w,
5596 msubv_d, div_s_b, div_s_h, div_s_w, div_s_d, div_u_b, div_u_h,
5597 div_u_w, div_u_d, hadd_s_h, hadd_s_w, hadd_s_d, hadd_u_h,
5598 hadd_u_w, hadd_u_d, hsub_s_h, hsub_s_w, hsub_s_d, hsub_u_h,
5599 hsub_u_w, hsub_u_d, mod_s_b, mod_s_h, mod_s_w, mod_s_d, mod_u_b,
5600 mod_u_h, mod_u_w, mod_u_d, dotp_s_h, dotp_s_w, dotp_s_d,
5601 dotp_u_h, dotp_u_w, dotp_u_d, dpadd_s_h, dpadd_s_w, dpadd_s_d,
5602 dpadd_u_h, dpadd_u_w, dpadd_u_d, dpsub_s_h, dpsub_s_w, dpsub_s_d,
5603 dpsub_u_h, dpsub_u_w, dpsub_u_d, sld_b, sld_h, sld_w, sld_d,
5604 sldi_b, sldi_h, sldi_w, sldi_d, splat_b, splat_h, splat_w,
5605 splat_d, splati_b, splati_h, splati_w, splati_d, pckev_b,
5606 pckev_h, pckev_w, pckev_d, pckod_b, pckod_h, pckod_w, pckod_d,
5607 ilvl_b, ilvl_h, ilvl_w, ilvl_d, ilvr_b, ilvr_h, ilvr_w, ilvr_d,
5608 ilvev_b, ilvev_h, ilvev_w, ilvev_d, ilvod_b, ilvod_h, ilvod_w,
5609 ilvod_d, vshf_b, vshf_h, vshf_w, vshf_d, and_v, andi_b, or_v,
5610 ori_b, nor_v, nori_b, xor_v, xori_b, bmnz_v, bmnzi_b, bmz_v,
5611 bmzi_b, bsel_v, bseli_b, shf_b, shf_h, shf_w, bnz_v, bz_v,
5612 fill_b, fill_h, fill_w, fill_d, pcnt_b, pcnt_h, pcnt_w,
5613 pcnt_d, nloc_b, nloc_h, nloc_w, nloc_d, nlzc_b, nlzc_h, nlzc_w,
5614 nlzc_d, copy_s_b, copy_s_h, copy_s_w, copy_s_d, copy_u_b,
5615 copy_u_h, copy_u_w, copy_u_d, insert_b, insert_h, insert_w,
5616 insert_d, insve_b, insve_h, insve_w, insve_d, bnz_b, bnz_h,
5617 bnz_w, bnz_d, bz_b, bz_h, bz_w, bz_d, ldi_b, ldi_h, ldi_w, ldi_d,
5618 fcaf_w, fcaf_d, fcor_w, fcor_d, fcun_w, fcun_d, fcune_w, fcune_d,
5619 fcueq_w, fcueq_d, fceq_w, fceq_d, fcne_w, fcne_d, fclt_w, fclt_d,
5620 fcult_w, fcult_d, fcle_w, fcle_d, fcule_w, fcule_d, fsaf_w,
5621 fsaf_d, fsor_w, fsor_d, fsun_w, fsun_d, fsune_w, fsune_d,
5622 fsueq_w, fsueq_d, fseq_w, fseq_d, fsne_w, fsne_d, fslt_w,
5623 fslt_d, fsult_w, fsult_d, fsle_w, fsle_d, fsule_w, fsule_d,
5624 fadd_w, fadd_d, fsub_w, fsub_d, fmul_w, fmul_d, fdiv_w, fdiv_d,
5625 fmadd_w, fmadd_d, fmsub_w, fmsub_d, fexp2_w, fexp2_d, fexdo_h,
5626 fexdo_w, ftq_h, ftq_w, fmin_w, fmin_d, fmin_a_w, fmin_a_d,
5627 fmax_w, fmax_d, fmax_a_w, fmax_a_d, mul_q_h, mul_q_w, mulr_q_h,
5628 mulr_q_w, madd_q_h, madd_q_w, maddr_q_h, maddr_q_w, msub_q_h,
5629 msub_q_w, msubr_q_h, msubr_q_w, fclass_w, fclass_d, fsqrt_w,
5630 fsqrt_d, frcp_w, frcp_d, frint_w, frint_d, frsqrt_w, frsqrt_d,
5631 flog2_w, flog2_d, fexupl_w, fexupl_d, fexupr_w, fexupr_d, ffql_w,
5632 ffql_d, ffqr_w, ffqr_d, ftint_s_w, ftint_s_d, ftint_u_w,
5633 ftint_u_d, ftrunc_s_w, ftrunc_s_d, ftrunc_u_w, ftrunc_u_d,
5634 ffint_s_w, ffint_s_d, ffint_u_w, ffint_u_d, ctcmsa, cfcmsa,
5635 move_v builtins.
5636 (mips_get_builtin_decl_index): New array.
5637 (MIPS_ATYPE_QI, MIPS_ATYPE_HI, MIPS_ATYPE_V2DI, MIPS_ATYPE_V4SI)
5638 (MIPS_ATYPE_V8HI, MIPS_ATYPE_V16QI, MIPS_ATYPE_V2DF)
5639 (MIPS_ATYPE_V4SF, MIPS_ATYPE_UV2DI, MIPS_ATYPE_UV4SI)
5640 (MIPS_ATYPE_UV8HI, MIPS_ATYPE_UV16QI): New.
5641 (mips_init_builtins): Initialize mips_get_builtin_decl_index
5642 array.
5643 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
5644 hook.
5645 (mips_expand_builtin_insn): Prepare operands for
5646 CODE_FOR_msa_addvi_b, CODE_FOR_msa_addvi_h, CODE_FOR_msa_addvi_w,
5647 CODE_FOR_msa_addvi_d, CODE_FOR_msa_clti_u_b,
5648 CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w,
5649 CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_u_b,
5650 CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w,
5651 CODE_FOR_msa_clei_u_d, CODE_FOR_msa_maxi_u_b,
5652 CODE_FOR_msa_maxi_u_h, CODE_FOR_msa_maxi_u_w,
5653 CODE_FOR_msa_maxi_u_d, CODE_FOR_msa_mini_u_b,
5654 CODE_FOR_msa_mini_u_h, CODE_FOR_msa_mini_u_w,
5655 CODE_FOR_msa_mini_u_d, CODE_FOR_msa_subvi_b,
5656 CODE_FOR_msa_subvi_h, CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d,
5657 CODE_FOR_msa_ceqi_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w,
5658 CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b,
5659 CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w,
5660 CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clei_s_b,
5661 CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w,
5662 CODE_FOR_msa_clei_s_d, CODE_FOR_msa_maxi_s_b,
5663 CODE_FOR_msa_maxi_s_h, CODE_FOR_msa_maxi_s_w,
5664 CODE_FOR_msa_maxi_s_d, CODE_FOR_msa_mini_s_b,
5665 CODE_FOR_msa_mini_s_h, CODE_FOR_msa_mini_s_w,
5666 CODE_FOR_msa_mini_s_d, CODE_FOR_msa_andi_b, CODE_FOR_msa_ori_b,
5667 CODE_FOR_msa_nori_b, CODE_FOR_msa_xori_b, CODE_FOR_msa_bmzi_b,
5668 CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bseli_b, CODE_FOR_msa_fill_b,
5669 CODE_FOR_msa_fill_h, CODE_FOR_msa_fill_w, CODE_FOR_msa_fill_d,
5670 CODE_FOR_msa_ilvl_b, CODE_FOR_msa_ilvl_h, CODE_FOR_msa_ilvl_w,
5671 CODE_FOR_msa_ilvl_d, CODE_FOR_msa_ilvr_b, CODE_FOR_msa_ilvr_h,
5672 CODE_FOR_msa_ilvr_w, CODE_FOR_msa_ilvr_d, CODE_FOR_msa_ilvev_b,
5673 CODE_FOR_msa_ilvev_h, CODE_FOR_msa_ilvev_w, CODE_FOR_msa_ilvod_b,
5674 CODE_FOR_msa_ilvod_h, CODE_FOR_msa_ilvod_w, CODE_FOR_msa_pckev_b,
5675 CODE_FOR_msa_pckev_h, CODE_FOR_msa_pckev_w, CODE_FOR_msa_pckod_b,
5676 CODE_FOR_msa_pckod_h, CODE_FOR_msa_pckod_w, CODE_FOR_msa_slli_b,
5677 CODE_FOR_msa_slli_h, CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d,
5678 CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w,
5679 CODE_FOR_msa_srai_d, CODE_FOR_msa_srli_b, CODE_FOR_msa_srli_h,
5680 CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d, CODE_FOR_msa_insert_b,
5681 CODE_FOR_msa_insert_h, CODE_FOR_msa_insert_w,
5682 CODE_FOR_msa_insert_d, CODE_FOR_msa_insve_b,
5683 CODE_FOR_msa_insve_h, CODE_FOR_msa_insve_w, CODE_FOR_msa_insve_d,
5684 CODE_FOR_msa_shf_b, CODE_FOR_msa_shf_h, CODE_FOR_msa_shf_w,
5685 CODE_FOR_msa_shf_w_f, CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h,
5686 CODE_FOR_msa_vshf_w, CODE_FOR_msa_vshf_d.
5687 (mips_expand_builtin): Add case for MIPS_BULTIN_MSA_TEST_BRANCH.
5688 (mips_set_compression_mode): Disallow MSA with MIPS16 code.
5689 (mips_option_override): -mmsa requires -mfp64 and -mhard-float.
5690 These are set implicitly and an error is reported if overridden.
5691 (mips_expand_builtin_msa_test_branch): New function.
5692 (mips_expand_msa_shuffle): Likewise.
5693 (MAX_VECT_LEN): Increase maximum length of a vector to 16 bytes.
5694 (TARGET_SCHED_REASSOCIATION_WIDTH): Define target hook.
5695 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Likewise.
5696 (mips_expand_vec_unpack): Add support for MSA.
5697 (mips_expand_vector_init): Likewise.
5698 (mips_expand_vi_constant): Use CONST0_RTX (element_mode)
5699 instead of const0_rtx.
5700 (mips_msa_vec_parallel_const_half): New function.
5701 (mips_gen_const_int_vector): Likewise.
5702 (mips_gen_const_int_vector_shuffle): Likewise.
5703 (mips_expand_msa_cmp): Likewise.
5704 (mips_expand_vec_cond_expr): Likewise.
5705 * config/mips/mips.h
5706 (TARGET_CPU_CPP_BUILTINS): Add __mips_msa and __mips_msa_width.
5707 (OPTION_DEFAULT_SPECS): Ignore --with-fp-32 if -mmsa is
5708 specified.
5709 (ASM_SPEC): Pass mmsa and mno-msa to the assembler.
5710 (ISA_HAS_MSA): New macro.
5711 (UNITS_PER_MSA_REG): Likewise.
5712 (BITS_PER_MSA_REG): Likewise.
5713 (BIGGEST_ALIGNMENT): Redefine using ISA_HAS_MSA.
5714 (MSA_REG_FIRST): New macro.
5715 (MSA_REG_LAST): Likewise.
5716 (MSA_REG_NUM): Likewise.
5717 (MSA_REG_P): Likewise.
5718 (MSA_REG_RTX_P): Likewise.
5719 (MSA_SUPPORTED_MODE_P): Likewise.
5720 (HARD_REGNO_CALL_PART_CLOBBERED): Redefine using TARGET_MSA.
5721 (ADDITIONAL_REGISTER_NAMES): Add named registers $w0-$w31.
5722 * config/mips/mips.md: Include mips-msa.md.
5723 (alu_type): Add simd_add.
5724 (mode): Add V2DI, V4SI, V8HI, V16QI, V2DF, V4SF.
5725 (type): Add simd_div, simd_fclass, simd_flog2, simd_fadd,
5726 simd_fcvt, simd_fmul, simd_fmadd, simd_fdiv, simd_bitins,
5727 simd_bitmov, simd_insert, simd_sld, simd_mul, simd_fcmp,
5728 simd_fexp2, simd_int_arith, simd_bit, simd_shift, simd_splat,
5729 simd_fill, simd_permute, simd_shf, simd_sat, simd_pcnt,
5730 simd_copy, simd_branch, simd_cmsa, simd_fminmax, simd_logic,
5731 simd_move, simd_load, simd_store. Choose "multi" for moves
5732 for "qword_mode".
5733 (qword_mode): New attribute.
5734 (insn_count): Add instruction count for quad moves.
5735 Increase the count for MIPS SIMD division.
5736 (UNITMODE): Add UNITMODEs for vector types.
5737 (addsub): New code iterator.
5738 * config/mips/mips.opt (mmsa): New option.
5739 * config/mips/msa.h: New file.
5740 * config/mips/mti-elf.h: Don't infer -mfpxx if -mmsa is
5741 specified.
5742 * config/mips/mti-linux.h: Likewise.
5743 * config/mips/predicates.md
5744 (const_msa_branch_operand): New constraint.
5745 (const_uimm3_operand): Likewise.
5746 (const_uimm4_operand): Likewise.
5747 (const_uimm5_operand): Likewise.
5748 (const_uimm8_operand): Likewise.
5749 (const_imm5_operand): Likewise.
5750 (aq10b_operand): Likewise.
5751 (aq10h_operand): Likewise.
5752 (aq10w_operand): Likewise.
5753 (aq10d_operand): Likewise.
5754 (const_m1_operand): Likewise.
5755 (reg_or_m1_operand): Likewise.
5756 (const_exp_2_operand): Likewise.
5757 (const_exp_4_operand): Likewise.
5758 (const_exp_8_operand): Likewise.
5759 (const_exp_16_operand): Likewise.
5760 (const_vector_same_val_operand): Likewise.
5761 (const_vector_same_simm5_operand): Likewise.
5762 (const_vector_same_uimm5_operand): Likewise.
5763 (const_vector_same_uimm6_operand): Likewise.
5764 (const_vector_same_uimm8_operand): Likewise.
5765 (par_const_vector_shf_set_operand): Likewise.
5766 (reg_or_vector_same_val_operand): Likewise.
5767 (reg_or_vector_same_simm5_operand): Likewise.
5768 (reg_or_vector_same_uimm6_operand): Likewise.
5769 * doc/extend.texi (MIPS SIMD Architecture Functions): New
5770 section.
5771 * doc/invoke.texi (-mmsa): Document new option.
5772
5773 2016-05-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5774
5775 * configure.ac (enable_vtable_verify): Handle --enable-vtable-verify.
5776 * configure: Regenerate.
5777 * config.in: Regenerate.
5778 * gcc.c (VTABLE_VERIFICATION_SPEC) [!ENABLE_VTABLE_VERIFY]: Error
5779 on -fvtable-verify.
5780 * config/sol2.h [!ENABLE_VTABLE_VERIFY] (STARTFILE_VTV_SPEC): Define.
5781 (ENDFILE_VTV_SPEC): Define.
5782
5783 2016-05-09 Kaushik Phatak <kaushik.phatak@kpit.com>
5784
5785 * config/rl78/rl78.c (rl78_expand_prologue): Save the MDUC related
5786 registers in all interrupt handlers if necessary.
5787 (rl78_option_override): Add warning.
5788 (MUST_SAVE_MDUC_REGISTERS): New macro.
5789 (rl78_expand_epilogue): Restore the MDUC registers if necessary.
5790 * config/rl78/rl78.c (check_mduc_usage): New function.
5791 (mduc_regs): New structure to hold MDUC register data.
5792 * config/rl78/rl78.md (is_g13_muldiv_insn): New attribute.
5793 (mulsi3_g13): Add is_g13_muldiv_insn attribute.
5794 (udivmodsi4_g13): Add is_g13_muldiv_insn attribute.
5795 (mulhi3_g13): Add is_g13_muldiv_insn attribute.
5796 * config/rl78/rl78.opt (msave-mduc-in-interrupts): New option.
5797 * doc/invoke.texi (RL78 Options): Add -msave-mduc-in-interrupts.
5798
5799 2016-05-09 Bin Cheng <bin.cheng@arm.com>
5800
5801 * tree-if-conv.c (tree-ssa-loop.h): Include header file.
5802 (tree-ssa-loop-niter.h): Ditto.
5803 (idx_within_array_bound, ref_within_array_bound): New functions.
5804 (ifcvt_memrefs_wont_trap): Check if array ref is within bound.
5805 Factor out check on writable base object to ...
5806 (base_object_writable): ... here.
5807
5808 2016-05-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5809
5810 * config/arm/arm.md (probe_stack): Add modes to set source
5811 and destination.
5812
5813 2016-05-09 Bernd Schmidt <bschmidt@redhat.com>
5814
5815 * regrename.c (base_reg_class_for_rename): New static function.
5816 (scan_rtx_address, scan_rtx): Use it instead of base_reg_class.
5817
5818 2016-05-08 Jan Hubicka <hubicka@ucw.cz>
5819
5820 * cgraph.c (thunk_adjust): Export.
5821 * cgraphclones.c (cgraph_node::create_clone): Clone thunk info.
5822 * cgraphunit.c (thunk_adjust): Export.
5823 (cgraph_node::assemble_thunks_and_aliases): Do not assemble inlined
5824 thunks.
5825 * ipa-inline-analyssi.c (compute_inline_parameters): Thunks are
5826 inlinable.
5827 * tree-inline.c (expand_call_inline): Expand thunks inline.
5828
5829 2016-05-08 Uros Bizjak <ubizjak@gmail.com>
5830
5831 PR target/70998
5832 * config/i386/sse.md (*sse2_vd_cvtsd2ss): New insn pattern.
5833 (*sse2_vd_cvtss2sd): Ditto.
5834 * config/i386/i386.md
5835 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf splitter):
5836 Generate *sse2_vd_cvtsd2ss pattern.
5837 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df splitter):
5838 Generate *sse2_vd_cvtss2sd pattern.
5839
5840 2016-05-08 Oleg Endo <olegendo@gcc.gnu.org>
5841
5842 * config/sh/sh.h (GET_SH_ARG_CLASS): Convert macro into ...
5843 * config/sh/sh.c (get_sh_arg_class): ... this new function. Update its
5844 users.
5845
5846 2016-05-08 Oleg Endo <olegendo@gcc.gnu.org>
5847
5848 * config/sh/sh-protos.h (sh_media_register_for_return): Remove.
5849 * config/sh/sh.c: Define and declare variables on first use throughout
5850 the file.
5851 (current_function_interrupt): Change to bool type.
5852 (frame_insn): Rename to emit_frame_insn and update users.
5853 (push_regs): Use bool for 'interrupt_handler' argument.
5854 (save_schedule_s): Remove.
5855 (TARGET_ASM_UNALIGNED_DI_OP, TARGET_ASM_ALIGNED_DI_OP): Remove.
5856 (sh_option_override): Don't nullify targetm.asm_out.aligned_op.di and
5857 targetm.asm_out.unaligned_op.di.
5858 (gen_far_branch): Remove redundant forward declaration.
5859 (sh_media_register_for_return, MAX_SAVED_REGS, save_entry_s, save_entry,
5860 MAX_TEMPS, save_schedule_ssave_schedule): Remove.
5861 (sh_set_return_address, sh_function_ok_for_sibcall,
5862 scavenge_reg): Update comments.
5863 (sh_builtin_saveregs): Use TRAGET_FPU_ANY condition.
5864 (sh2a_get_function_vector_number, sh2a_function_vector_p): Use for loop.
5865 (sh_attr_renesas_p): Remove unnecessary parentheses.
5866 (branch_dest): Simplify.
5867 * config/sh/sh.h (sh_args): Remove byref, byref_regs, stack_regs fields.
5868 Change force_mem, prototype_p, outgoing, renesas_abi fields to bool.
5869 (CUMULATIVE_ARGS): Change macro to typedef.
5870 (current_function_interrupt): Change to bool type.
5871 (sh_arg_class, sh_args, CUMULATIVE_ARGS, current_function_interrupt):
5872 Surround with __cplusplus ifdef.
5873 (sh_compare_op0, sh_compare_op1): Remove.
5874 (EPILOGUE_USES): Use TARGET_FPU_ANY condition.
5875
5876 2016-05-07 Jim Wilson <jim.wilson@linaro.org>
5877
5878 * config/arm/arm.md: (arch): Add neon.
5879 (arch_enabled): Return yes for arch neon when TARGET_NEON.
5880 * config/arm/vfp.md (movdf_vfp): Add w/G as alternative 3. Add
5881 neon_move as type for alt 3. Add arch attr enabling alt 3 for neon.
5882 Emit vmov.i64 for alt 3. Renumber alternatives 3 to 8. Adjust
5883 attributes for alt renumbering. Mark alt 3 as non-predicable.
5884 (thumb2_movdf_vfp): Likewise.
5885
5886 2016-05-07 Uros Bizjak <ubizjak@gmail.com>
5887
5888 * config/i386/i386.md (*addqi_1): Add preferred_for_speed attribute
5889 to disparage alternatives 3 and 4 for TARGET_PARTIAL_REG_STALL targets.
5890 (*andqi_1): Add preferred_for_speed attribute to disparage
5891 alternative 2 for TARGET_PARTIAL_REG_STALL targets.
5892 (*<code>qi_1): Ditto.
5893 (*one_cmplqi2_1): Add preferred_for_speed attribute to disparage
5894 alternative 1 for TARGET_PARTIAL_REG_STALL targets.
5895 (*ashlqi3_1): Ditto.
5896 (*swap<mode>): Merge from *swap<mode>_1 and *swap<mode>_2 patterns.
5897 Add preferred_for_size attribute to disparage alternative 0 and
5898 preferred_for_speed attribute to disparage alternative 1 for
5899 TARGET_PARTIAL_REG_STALL targets.
5900
5901 2016-05-07 Tom de Vries <tom@codesourcery.com>
5902
5903 PR tree-optimization/70956
5904 * graphite-scop-detection.c (build_cross_bb_scalars_def): Handle NULL
5905 def.
5906
5907 2016-05-07 Oleg Endo <olegendo@gcc.gnu.org>
5908
5909 * config/sh/sh-protos.h (sh_cbranch_distance): Declare new function.
5910 * config/sh/sh.c (sh_cbranch_distance): Implement it.
5911 * config/sh/sh.md (branch_zero): Remove define_attr.
5912 (define_delay): Disable delay slot if branch distance is one insn.
5913
5914 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
5915
5916 * config/i386/i386.md (LEAMODE): New mode attribute.
5917 (plus to LEA splitter): Rewrite splitter using LEAMODE mode attribute.
5918 (ashift to LEA splitter): Rewrte splitter using SWI mode iterator
5919 and LEAMODE mode attribute. Use VOIDmode const_0_to_3_operand as
5920 operand 2 predicate.
5921 (*lea<mode>_general_2): Use VOIDmode for const248_operand.
5922 (*lea<mode>_general_3): Ditto.
5923 (*lea<mode>_general_4): Use VOIDmode for const_0_to_3_operand.
5924
5925 2016-05-06 Jakub Jelinek <jakub@redhat.com>
5926
5927 * genmddump.c (main): Convert argv from char ** to const char **.
5928
5929 2016-05-06 David Malcolm <dmalcolm@redhat.com>
5930
5931 * coretypes.h (OVERRIDE): New macro.
5932 (FINAL): New macro.
5933
5934 2016-05-06 Eric Botcazou <ebotcazou@adacore.com>
5935
5936 * tree-ssa-coalesce.c (gimple_can_coalesce_p): In the optimized case,
5937 allow coalescing if the types are compatible.
5938
5939 2016-05-06 David Malcolm <dmalcolm@redhat.com>
5940
5941 * pass_manager.h (pass_manager::register_pass_name): New method.
5942 (pass_manager::get_pass_by_name): New method.
5943 (pass_manager::create_pass_tab): New method.
5944 (pass_manager::m_name_to_pass_map): New field.
5945 * passes.c (name_to_pass_map): Delete global in favor of field
5946 "m_name_to_pass_map" of pass_manager.
5947 (register_pass_name): Rename from a function to...
5948 (pass_manager::register_pass_name): ...this method, updating
5949 for renaming of global "name_to_pass_map" to field
5950 "m_name_to_pass_map".
5951 (create_pass_tab): Rename from a function to...
5952 (pass_manager::create_pass_tab): ...this method, updating
5953 for renaming of global "name_to_pass_map" to field.
5954 (get_pass_by_name): Rename from a function to...
5955 (pass_manager::get_pass_by_name): ...this method.
5956 (enable_disable_pass): Convert use of get_pass_by_name to
5957 a method call, locating the pass_manager singleton.
5958
5959 2016-05-06 David Malcolm <dmalcolm@redhat.com>
5960
5961 * genattr-common.c (main): Convert argv from char ** to const char **.
5962 * genattr.c (main): Likewise.
5963 * genattrtab.c (main): Likewise.
5964 * genautomata.c (initiate_automaton_gen): Likewise.
5965 (main): Likewise.
5966 * gencodes.c (main): Likewise.
5967 * genconditions.c (main): Likewise.
5968 * genconfig.c (main): Likewise.
5969 * genconstants.c (main): Likewise.
5970 * genemit.c (main): Likewise.
5971 * genenums.c (main): Likewise.
5972 * genextract.c (main): Likewise.
5973 * genflags.c (main): Likewise.
5974 * genmddeps.c (main): Likewise.
5975 * genopinit.c (main): Likewise.
5976 * genoutput.c (main): Likewise.
5977 * genpeep.c (main): Likewise.
5978 * genpreds.c (main): Likewise.
5979 * genrecog.c (main): Likewise.
5980 * gensupport.c (init_rtx_reader_args_cb): Likewise.
5981 (init_rtx_reader_args): Likewise.
5982 * gensupport.h (init_rtx_reader_args_cb): Likewise.
5983 (init_rtx_reader_args): Likewise.
5984 * gentarget-def.c (main): Likewise.
5985 * read-md.c (read_md_files): Likewise.
5986 * read-md.h (read_md_files): Likewise.
5987
5988 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
5989
5990 * config/i386/i386.md (int cmove peephole2s): Use general_reg_operand
5991 instead of register_and_not_any_fp_reg_operand as operand 0 predicate.
5992 * config/i386/predicates.md (register_and_not_any_fp_reg_operand):
5993 Remove unused predicate.
5994 (register_and_not_fp_reg_operand): Ditto.
5995
5996 2016-05-06 Martin Liska <mliska@suse.cz>
5997
5998 * tree-if-conv.c (ifcvt_split_critical_edges): Use auto_vec
5999 instead of vec as the vector is local to the function.
6000
6001 2016-05-06 Jakub Jelinek <jakub@redhat.com>
6002
6003 * config/i386/sse.md (*<code>v8hi3, *<code>v16qi3): Add
6004 avx512bw alternative.
6005
6006 * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>): Move
6007 before the ashr<mode>3 pattern.
6008
6009 * config/i386/sse.md (*avx2_pmaddwd, *sse2_pmaddwd): Use
6010 v instead of x in vex or maybe_vex alternatives, use
6011 maybe_evex instead of vex in prefix.
6012
6013 * config/i386/sse.md (*vec_extractv4sf_0, *sse4_1_extractps,
6014 *vec_extractv4sf_mem, vec_extract_lo_v16hi, vec_extract_hi_v16hi,
6015 vec_extract_lo_v32qi, vec_extract_hi_v32qi): Use v instead of x
6016 in vex or maybe_vex alternatives, use maybe_evex instead of vex
6017 in prefix.
6018
6019 * config/i386/sse.md (*vec_concatv2sf_sse4_1, *vec_concatv4sf): Use
6020 v instead of x in vex or maybe_vex alternatives, use
6021 maybe_evex instead of vex in prefix.
6022
6023 * config/i386/sse.md (sse_shufps_<mode>, sse_storehps, sse_loadhps,
6024 sse_storelps, sse_movss, avx2_vec_dup<mode>, avx2_vec_dupv8sf_1,
6025 sse2_shufpd_<mode>, sse2_storehpd, sse2_storelpd, sse2_loadhpd,
6026 sse2_loadlpd, sse2_movsd): Use v instead of x in vex or maybe_vex
6027 alternatives, use maybe_evex instead of vex in prefix.
6028
6029 * config/i386/sse.md (vec_interleave_lowv4sf,
6030 *vec_interleave_highv2df, *vec_interleave_lowv2df): Use
6031 v instead of x in vex or maybe_vex alternatives, use
6032 maybe_evex instead of vex in prefix.
6033
6034 * config/i386/sse.md (sse_movhlps, sse_movlhps): Use
6035 v instead of x in vex or maybe_vex alternatives, use
6036 maybe_evex instead of vex in prefix.
6037
6038 * config/i386/sse.md (*avx_cvtpd2dq256_2, *avx_cvtps2pd256_2): Use
6039 v constraint instead of x.
6040
6041 2016-05-06 Nathan Sidwell <nathan@codesourcery.com>
6042
6043 * gimple.c (gimple_call_same_target_p): Unique functions are eq.
6044 * tree-ssa-tail-merge.c (same_succ::equal): Check pointer eq
6045 equality first.
6046
6047 2016-05-06 Richard Biener <rguenther@suse.de>
6048
6049 PR tree-optimization/70948
6050 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
6051 Properly clobber all fields of va_list for __builtin_va_start.
6052
6053 2016-05-06 Yuri Rumyantsev <ysrumyan@gmail.com>
6054
6055 PR debug/70935
6056 * tree-ssa-loop-unswitch.c (find_loop_guard): Reject guard edge with
6057 loop latch destination.
6058
6059 2016-05-06 Martin Liska <mliska@suse.cz>
6060
6061 * tree-ssa-uninit.c: Apply manual changes
6062 to the GNU coding style.
6063 (prune_uninit_phi_opnds): Rename from
6064 prune_uninit_phi_opnds_in_unrealizable_paths.
6065
6066 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
6067
6068 * config/sh/sh.opt (madjust-unroll, minvalid-symbols, msoft-atomic,
6069 mspace): Remove deprecated options.
6070 * doc/invoke.texi (SH options): Remove -mspace.
6071
6072 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
6073
6074 * config/sh/sh.md (ic_invalidate_line_sh4a): Fix insn length.
6075
6076 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
6077
6078 * config/sh/sh.md (*cmpeqsi_t): Remove combine insn pattern and similar
6079 corresponding combine split pattern.
6080
6081 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
6082
6083 PR target/58219
6084 * config/sh/predicates.md (long_displacement_mem_operand): New.
6085 * config/sh/sh.md (movsi_i): Allow for SH2A, disallow for any FPU.
6086 Add movi20, movi20s alternatives. Adjust length attribute for
6087 alternatives.
6088 (movsi_ie): Allow for any FPU. Adjust length attribute for
6089 alternatives.
6090 (movsi_i_lowpart): Add movi20, movi20s alternatives. Adjust length
6091 attribute for alternatives.
6092 (*mov<mode>): Use long_displacement_mem_operand for length attribute.
6093 (*movdi_i, movdf_k, movdf_i4, movsf_i, movsf_ie, movsf_ie_ra): Adjust
6094 length attribute for alternatives.
6095
6096 2016-05-06 Richard Biener <rguenther@suse.de>
6097
6098 PR tree-optimization/70960
6099 * tree-if-conv.c (ifcvt_walk_pattern_tree): Handle non-SSA ops.
6100
6101 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
6102
6103 PR target/52933
6104 * config/sh/sh.md (*cmp_div0s_7, *cmp_div0s_8): Add div0s variants.
6105 * config/sh/sh.c (sh_rtx_costs): Add another div0s case.
6106
6107 2016-05-06 Marek Polacek <polacek@redhat.com>
6108
6109 PR sanitizer/70875
6110 * ubsan.c (get_ubsan_type_info_for_type): Remove assert.
6111
6112 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
6113
6114 PR target/54089
6115 * config/sh/sh.md (*rotcr): Add another variant.
6116
6117 2016-05-06 Richard Biener <rguenther@suse.de>
6118
6119 PR middle-end/70931
6120 * dwarf2out.c (native_encode_initializer): Skip zero-sized fields.
6121
6122 2016-05-06 Richard Biener <rguenther@suse.de>
6123
6124 PR middle-end/70941
6125 * fold-const.c (split_tree): Always convert to the original type
6126 before negating.
6127
6128 2016-05-06 Richard Biener <rguenther@suse.de>
6129
6130 * fwprop.c (fwprop): Remove duplicate cleanup_cfg call.
6131 (fwprop_addr): Likewise.
6132
6133 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
6134
6135 PR target/70873
6136 * config/i386/i386-protos.h (ix86_standard_x87sse_constant_load_p):
6137 New prototype.
6138 * config/i386/i386.c (ix86_standard_x87sse_constant_load_p): New.
6139 * config/i386/i386.md (push mem splitter): Use find_constant_src in
6140 the splitter condition.
6141 (FP load splitter): Use ix86_standard_x87sse_constant_load_p in
6142 the splitter condition.
6143 (FP float_extend load splitter): Ditto.
6144
6145 2016-05-05 Uros Bizjak <ubizjak@gmail.com>
6146
6147 * config/i386/i386.md (peehole2 patterns): Change true_regnum
6148 to REGNO in all peephole2 patterns.
6149 (post-reload splitters): Change true_regnum to REGNO in
6150 post-reload splitters.
6151 (zero_extend splitters): Use general_reg_operand and
6152 nonimmediate_gr_operand predicates.
6153
6154 2016-05-05 Jakub Jelinek <jakub@redhat.com>
6155
6156 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>): Use
6157 v constraint instead of x.
6158
6159 2016-05-05 Alan Modra <amodra@gmail.com>
6160
6161 PR target/68662
6162 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't
6163 set OPTION_MASK_RELOCATABLE when flag_pic == 2. Set
6164 TARGET_NO_FP_IN_TOC for -mrelocatable.
6165 (MINIMAL_TOC_SECTION_ASM_OP): Remove redundant
6166 TARGET_RELOCATABLE test.
6167 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
6168 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
6169 * config/rs6000/linux64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
6170 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
6171 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
6172 * config/rs6000/freebsd64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
6173 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
6174 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
6175 * config/rs6000/predicates.md (easy_fp_constant): Likewise.
6176 * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
6177 Likewise.
6178 (rs6000_assemble_integer): Update TARGET_RELOCATABLE test.
6179 (rs6000_stack_info): Likewise.
6180 (rs6000_elf_asm_out_constructor): Likewise.
6181 (rs6000_elf_asm_out_destructor): Likewise.
6182 (rs6000_elf_declare_function_name): Likewise.
6183 * config/rs6000/rs6000.md (load_toc_aix_di): Likewise.
6184 * config/rs6000/rs6000.h (MASK_RELOCATABLE, MASK_MINIMAL_TOC):
6185 Don't define.
6186
6187 2016-05-05 Alan Modra <amodra@gmail.com>
6188
6189 * config/rs6000/rs6000.c (rs6000_frame_related): Rewrite.
6190
6191 2016-05-05 Alan Modra <amodra@gmail.com>
6192
6193 * config/rs6000/rs6000.c (rs6000_savres_strategy): Don't use
6194 out-of-line gpr restore for one or two regs if that would add
6195 a save of lr.
6196
6197 2016-05-04 Uros Bizjak <ubizjak@gmail.com>
6198
6199 PR target/70873
6200 * config/i386/i386.md
6201 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df peephole2):
6202 Change to post-epilogue_completed late splitter. Use sse_reg_operand
6203 as operand 0 predicate.
6204 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf peephole2):
6205 Ditto.
6206 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float {si,di}->{sf,df} peephole2):
6207 Ditto. Emit the pattern using RTX.
6208
6209 (TARGET_USE_VECTOR_FP_CONVERTS float_extend sf->df splitter):
6210 Use sse_reg_opreand as operand 0 predicate. Do not use true_regnum in
6211 the post-reload splitter. Use lowpart_subreg instead of gen_rtx_REG.
6212 (TARGET_USE_VECTOR_FP_CONVERTS float_truncate df->sf splitter):
6213 Ditto.
6214 (TARGET_USE_VECTOR_CONVERTS float si->{sf,df} splitter): Use
6215 sse_reg_operand as operand 0 predicate.
6216
6217 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_extend sf->df peephole2):
6218 Use sse_reg_opreand as operand 0 predicate. Use lowpart_subreg
6219 instead of gen_rtx_REG.
6220 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_truncate sf->df peephole2):
6221 Ditto.
6222
6223 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
6224
6225 * function.c (emit_use_return_register_into_block): Delete.
6226 (gen_return_pattern): Delete.
6227 (emit_return_into_block): Delete.
6228 (active_insn_between): Delete.
6229 (convert_jumps_to_returns): Delete.
6230 (emit_return_for_exit): Delete.
6231 (thread_prologue_and_epilogue_insns): Delete all code dealing with
6232 simple_return for shrink-wrapped blocks.
6233 * shrink-wrap.c (try_shrink_wrapping): Insert simple_return at the
6234 end of blocks that need one.
6235 (get_unconverted_simple_return): Delete.
6236 (convert_to_simple_return): Delete.
6237 * shrink-wrap.c (get_unconverted_simple_return): Delete declaration.
6238 (convert_to_simple_return): Ditto.
6239
6240 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
6241
6242 * cfgcleanup.c (bb_is_just_return): New function.
6243 (try_optimize_cfg): Simplify jumps to return, branches to return,
6244 and branches around return.
6245
6246 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
6247
6248 * cfgcleanup.c (try_simplify_condjump): Don't try to simplify a
6249 branch to a return.
6250
6251 2016-05-04 Jakub Jelinek <jakub@redhat.com>
6252
6253 PR c++/70906
6254 PR c++/70933
6255 * tree-core.h (enum operand_equal_flag): Add OEP_HASH_CHECK.
6256 * tree.c (inchash::add_expr): If !IS_EXPR_CODE_CLASS (tclass),
6257 assert flags & OEP_HASH_CHECK, instead of asserting it
6258 never happens. Handle TARGET_EXPR.
6259 * fold-const.c (operand_equal_p): For hash verification,
6260 or in OEP_HASH_CHECK into flags.
6261
6262 2016-05-04 Eric Botcazou <ebotcazou@adacore.com>
6263
6264 * tree-ssa-coalesce.c (gimple_can_coalesce_p): Fix reference in head
6265 comment.
6266 (compute_samebase_partition_bases): Fix typo.
6267
6268 2016-05-04 Jakub Jelinek <jakub@redhat.com>
6269
6270 * config/i386/sse.md (vec_interleave_highv8sf,
6271 vec_interleave_lowv8sf, vec_interleave_highv4df,
6272 vec_interleave_lowv4df): Remove constraints from expanders.
6273
6274 * config/i386/sse.md (sse2_movq128): Use v constraint instead of x.
6275
6276 2016-05-04 Jan Hubicka <hubicka@ucw.cz>
6277
6278 * tree-inline.c (expand_call_inline): Fix path dealing with
6279 making lhs of call statement undefined.
6280
6281 2016-05-04 Jan Hubicka <hubicka@ucw.cz>
6282
6283 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
6284 Check availability on NODE, too.
6285 * cgraph.h (symtab_node::call_for_symbol_and_aliases): Likewise.
6286 (cgraph_node::call_for_symbol_and_aliases): Likewise.
6287 (varpool_node::call_for_symbol_and_aliase): Likewise.
6288 * ipa-pure-const.c (add_new_function): Analyze all bodies.
6289 (propagate_pure_const): Propagate across interposable functions, too.
6290 (skip_function_for_local_pure_const): Do not skip interposable bodies
6291 with aliases.
6292 (pass_local_pure_const::execute): Update.
6293
6294 2016-05-04 Marek Polacek <polacek@redhat.com>
6295
6296 * doc/invoke.texi: Document -Wdangling-else.
6297
6298 2016-05-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
6299
6300 * config.gcc: Error out when conflicting multilib is detected. Do not
6301 loop over multilibs since no combination is legal.
6302
6303 2016-05-04 Alan Modra <amodra@gmail.com>
6304
6305 * config/rs6000/rs6000.h (PIC_OFFSET_TABLE_REGNUM): Correct.
6306 * config/rs6000/sysv4.h (TARGET_TOC): Simplify.
6307 * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
6308 Align .toc.
6309
6310 2016-05-04 Matthew Fortune <matthew.fortune@imgtec.com>
6311
6312 * config/mips/mips-cpus.def (p5600): Avoid IMADD by default.
6313 Clean up p5600 comments.
6314
6315 2016-05-04 Richard Biener <rguenther@suse.de>
6316
6317 * match.pd: Add BIT_FIELD_REF canonicalizations and vector
6318 constructor simplifications.
6319 * fold-const.c (fold_ternary_loc): Remove duplicate functionality here.
6320
6321 2016-05-04 Oleg Endo <olegendo@gcc.gnu.org>
6322
6323 * config/sh/predicates (post_inc_mem, pre_dec_mem): New predicates.
6324 * config/sh/sh-protos.h (sh_find_set_of_reg): Return null result if
6325 result.set_rtx is null instead of aborting.
6326 * config/sh/sh.h (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT):
6327 Always enable.
6328 (USE_LOAD_PRE_DECREMENT, USE_STORE_POST_INCREMENT): Enable for SH2A.
6329 * config/sh/sh.md (*extend<mode>si2_predec, *mov<mode>_load_predec,
6330 *mov<mode>_store_postinc): New patterns.
6331
6332 2016-05-04 Marc Glisse <marc.glisse@inria.fr>
6333
6334 * match.pd ((A | B) & (A | C)): Generalize to BIT_XOR_EXPR. Mark
6335 as commutative. Check both conversions are NOP.
6336 ((A & B) OP (C & B)): Remove.
6337
6338 2016-05-04 Alan Modra <amodra@gmail.com>
6339
6340 * combine.c (simplify_set): Correct WORD_REGISTER_OPERATIONS test.
6341
6342 2016-05-04 Alan Modra <amodra@gmail.com>
6343
6344 PR target/70866
6345 * config/rs6000/rs6000.c (rs6000_stack_info): Don't set cr_save_p
6346 when cr2,3,4 are all fixed regs.
6347
6348 2016-05-04 Bernd Schmidt <bschmidt@redhat.com>
6349
6350 PR rtl-optimization/57193
6351 * opts.c (default_options_table): Revert OPT_frename_registers change.
6352 * doc/invoke.texi (-frename-registers, -O2): Likewise.
6353
6354 2016-05-03 Martin Sebor <msebor@redhat.com>
6355
6356 PR c++/66561
6357 * builtins.c (fold_builtin_FILE): New function.
6358 (fold_builtin_FUNCTION, fold_builtin_LINE): New functions.
6359 (fold_builtin_0): Call them.
6360 * gimplify.c (gimplify_call_expr): Remove the handling of
6361 BUILT_IN_FILE, BUILT_IN_FUNCTION, and BUILT_IN_LINE.
6362
6363 PR c++/66561
6364 * doc/extend.texi (Other Builtins): Update __builtin_FILE,
6365 __builtin_FUNCTION, and __builtin_LINE to reflect they yield
6366 constants.
6367
6368 PR c++/66639
6369 * doc/extend.texi (Function Names as Strings): Update __func__,
6370 __FUNCTION__, __PRETTY_FUNCTION__ to reflect they evaluate to
6371 constants.
6372
6373 2016-05-03 Jakub Jelinek <jakub@redhat.com>
6374 Richard Biener <rguenther@suse.de>
6375
6376 PR tree-optimization/70916
6377 * tree-if-conv.c: Include cfganal.h.
6378 (pass_if_conversion::execute): Call connect_infinite_loops_to_exit
6379 and remove_fake_exit_edges around the optimization pass.
6380
6381 2016-05-03 Jan Hubicka <hubicka@ucw.cz>
6382
6383 * cgraph.c (symbol_table::create_edge): Set inline_failed.
6384 (cgraph_edge::make_direct): Likewise.
6385 (cgraph_edge::dump_edge_flags): Dump call_stmt_cannot_inline_p.
6386 * cgraphclones.c (duplicate_thunk_for_node): Set inline_failed.
6387 * cif-code.def (CIF_LTO_MISMATCHED_DECLARATIONS): New code
6388 (CIF_THUNK): New code.
6389 * ipa-inline-analysis.c (initialize_inline_failed): Preserve
6390 CIF_FINAL_ERROR codes; do not deal with call_stmt_cannot_inline_p.
6391 (compute_inline_parameters): Set inline_failed for thunks.
6392 (inline_analyze_function): Cleanup.
6393 * ipa-inline.c (can_inline_edge_p): Do not deal with
6394 call_stmt_cannot_inline_p.
6395 (can_early_inline_edge_p): Likewise.
6396 (early_inliner): Initialize inline_failed.
6397 * lto-cgraph.c (lto_output_edge): Sanity check inline_failed.
6398
6399 2016-05-03 Uros Bizjak <ubizjak@gmail.com>
6400
6401 * config/i386/predicates.md (x87nonimm_ssenomem_operand): Rename
6402 from nonimm_ssenomem_operand.
6403 (nonimm_ssenomem_operand): New predicate.
6404 * config/i386/i386.md (extendsfdf2): Use nonimm_ssenomem_operand
6405 as operand 0 predicate.
6406 (*extendsfdf2): Merge from *extendsfdf2_mixed and *extendsfdf2_i387.
6407 Disable unsupported alternatives using "enabled" attribute.
6408 Use register_ssemem_operand as operand 0 predicate.
6409 (*fop_<mode>_1): Use x87nonimm_ssenomem_operand as operand 1 predicate.
6410
6411 2016-05-03 Marek Polacek <polacek@redhat.com>
6412
6413 PR c/70859
6414 * input.c (expansion_point_location): New function.
6415 * input.h (expansion_point_location): Declare.
6416
6417 2016-05-03 Pierre-Marie de Rodat <derodat@adacore.com>
6418
6419 * dwarf2out.c (resolve_args_picking_1): Replace the frame_offset
6420 occurence with frame_offset_ ones.
6421
6422 2016-05-03 Alan Modra <amodra@gmail.com>
6423
6424 PR rtl-optimization/70890
6425 * ira.c (combine_and_move_insns): When moving def_insn, remove
6426 equivs on use_insn.
6427
6428 2016-05-03 Dominik Vogt <vogt@linux.vnet.ibm.com>
6429
6430 * config/s390/s390.md ("*r<noxa>sbg_<mode>_sll")
6431 ("*r<noxa>sbg_<mode>_srl"): New define_insns.
6432 ("*r<noxa>sbg_<mode>_srl_bitmask"): Rename by adding "_bitmask".
6433 ("*r<noxa>sbg_<mode>_sll_bitmask"): Likewise.
6434
6435 2016-05-03 Alan Modra <amodra@gmail.com>
6436
6437 * config/rs6000/rs6000.c (rs6000_savres_strategy): Correct condition
6438 for SAVE_MULTIPLE/STORE_MULTIPLE.
6439
6440 2016-05-03 Jakub Jelinek <jakub@redhat.com>
6441
6442 * config/i386/i386.md (*truncdfsf_mixed, *truncdfsf_i387,
6443 *truncxfsf2_mixed, *truncxfdf2_mixed): Use v constraint instead of x.
6444
6445 2016-05-03 Richard Biener <rguenther@suse.de>
6446
6447 * gimplify.h (get_initialized_tmp_var): Add allow_ssa parameter
6448 default true.
6449 (gimplify_arg): Likewise.
6450 * gimplify.c (gimplify_expr): Add overload with allow_ssa parameter,
6451 re-writing the result to a decl if required.
6452 (internal_get_tmp_var): Add allow_ssa parameter
6453 and override into_ssa with it.
6454 (get_formal_tmp_var): Adjust.
6455 (get_initialized_tmp_var): Add allow_ssa parameter.
6456 (gimplify_arg): Add allow_ssa parameter and avoid generating
6457 SSA names for the result false.
6458 (gimplify_call_expr): If the call may return twice do not
6459 gimplify parameters into SSA.
6460 (prepare_gimple_addressable): Do not allow an SSA name as temporary.
6461 (gimplify_modify_expr): Adjust assert. For noreturn calls
6462 with a SSA name LHS adjust its def.
6463 (gimplify_save_expr): Do not allow an SSA name as save-expr result.
6464 (gimplify_one_sizepos): Do not allow an SSA name as a sizepos.
6465 (gimplify_body): Init GIMPLE SSA data structures and gimplify into-SSA.
6466 (gimplify_scan_omp_clauses): Make sure OMP_CLAUSE_SIZE is not
6467 an SSA name. Likewise for OMP_CLAUSE_REDUCTION operands.
6468 (gimplify_omp_for): Likewise for OMP_CLAUSE_DECL. Likewise
6469 for OMP_FOR_COND, OMP_FOR_INCR and OMP_CLAUSE_LINEAR_STEP.
6470 (optimize_target_teams): Do not allow SSA names for clause operands.
6471 (gimplify_expr): Likewise for where we mark the result addressable.
6472 * passes.def (pass_init_datastructures): Remove.
6473 * tree-into-ssa.c (mark_def_sites): Ignore existing SSA names.
6474 (rewrite_stmt): Likewise.
6475 * tree-inline.c (initialize_cfun): Properly transfer SSA state.
6476 (replace_locals_op): Replace SSA names.
6477 (copy_gimple_seq_and_replace_locals): Init src_cfun.
6478 * gimple-low.c (lower_builtin_setjmp): Deal with SSA.
6479 * cgraph.c (release_function_body): Free CFG annotations only
6480 when we have a CFG. Simplify.
6481 * gimple-fold.c (gimplify_and_update_call_from_tree): Use
6482 force_gimple_operand instead of get_initialized_tmp_var.
6483 * tree-pass.h (make_pass_init_datastructures): Remove.
6484 * tree-ssa.c (execute_init_datastructures): Remove.
6485 (pass_data_init_datastructures): Likewise.
6486 (class pass_init_datastructures): Likewise.
6487 (make_pass_init_datastructures): Likewise.
6488 * omp-low.c (create_omp_child_function): Init SSA data structures.
6489 (grid_expand_target_grid_body): Likewise.
6490 * tree-cfg.c (move_block_to_fn): Double-check the DEF is an SSA
6491 name before adding it to names_to_release.
6492 (remove_bb): Always release SSA defs.
6493 * tree-ssa-ccp.c (get_default_value): Check SSA_NAME_VAR
6494 before dereferencing it.
6495 * cgraphunit.c (init_lowered_empty_function): Always
6496 int SSA data structures.
6497 * tree-ssanames.c (release_defs): Remove assert that we are in
6498 SSA form.
6499 * trans-mem.c (diagnose_tm_1): Handle SSA name function.
6500
6501 2016-05-03 Jakub Jelinek <jakub@redhat.com>
6502 Uros Bizjak <ubizjak@gmail.com>
6503
6504 PR rtl-optimization/70467
6505 * config/i386/predicates.md (x86_64_hilo_int_operand,
6506 x86_64_hilo_general_operand): New predicates.
6507 * config/i386/constraints.md (Wd): New constraint.
6508 * config/i386/i386.md (mode attr di): Use Wd instead of e.
6509 (general_hilo_operand): New mode attr.
6510 (add<mode>3, sub<mode>3): Use <general_hilo_operand>
6511 instead of <general_operand>.
6512 (*add<dwi>3_doubleword, *sub<dwi>3_doubleword): Use
6513 x86_64_hilo_general_operand instead of <general_operand>.
6514
6515 2016-05-03 Jakub Jelinek <jakub@redhat.com>
6516
6517 PR tree-optimization/70916
6518 * tree-if-conv.c (constant_or_ssa_name): Removed.
6519 (fold_build_cond_expr): Use is_gimple_val instead of
6520 constant_or_ssa_name.
6521
6522 PR tree-optimization/70916
6523 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Give up
6524 if COND_EXPR rhs1 is neither SSA_NAME nor COMPARISON_CLASS_P.
6525
6526 PR target/49244
6527 * tree-ssa-ccp.c: Include stor-layout.h and optabs-query.h.
6528 (optimize_atomic_bit_test_and): New function.
6529 (pass_fold_builtins::execute): Use it.
6530 * optabs.def (atomic_bit_test_and_set_optab,
6531 atomic_bit_test_and_complement_optab,
6532 atomic_bit_test_and_reset_optab): New optabs.
6533 * internal-fn.def (ATOMIC_BIT_TEST_AND_SET,
6534 ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_BIT_TEST_AND_RESET): New ifns.
6535 * builtins.h (expand_ifn_atomic_bit_test_and): New prototype.
6536 * builtins.c (expand_ifn_atomic_bit_test_and): New function.
6537 * internal-fn.c (expand_ATOMIC_BIT_TEST_AND_SET,
6538 expand_ATOMIC_BIT_TEST_AND_COMPLEMENT,
6539 expand_ATOMIC_BIT_TEST_AND_RESET): New functions.
6540 * doc/md.texi (atomic_bit_test_and_set@var{mode},
6541 atomic_bit_test_and_complement@var{mode},
6542 atomic_bit_test_and_reset@var{mode}): Document.
6543 * config/i386/sync.md (atomic_bit_test_and_set<mode>,
6544 atomic_bit_test_and_complement<mode>,
6545 atomic_bit_test_and_reset<mode>): New expanders.
6546 (atomic_bit_test_and_set<mode>_1,
6547 atomic_bit_test_and_complement<mode>_1,
6548 atomic_bit_test_and_reset<mode>_1): New insns.
6549
6550 2016-05-03 Richard Sandiford <richard.sandiford@arm.com>
6551
6552 PR rtl-optimization/70687
6553 * combine.c (change_zero_ext): Check for scalar modes. Use wide_int
6554 instead of unsigned HOST_WIDE_INT.
6555
6556 2016-05-03 Bernd Schmidt <bschmidt@redhat.com>
6557
6558 PR rtl-optimization/44281
6559 * hard-reg-set.h (struct target_hard_regs): New field
6560 x_fixed_nonglobal_reg_set.
6561 (fixed_nonglobal_reg_set): New macro.
6562 * reginfo.c (init_reg_sets_1): Initialize it.
6563 * ira.c (setup_alloc_regs): Use fixed_nonglobal_reg_set instead
6564 of fixed_reg_set.
6565 * df-scan.c (df_insn_refs_collect): Asms may reference global regs.
6566
6567 2016-05-03 Bin Cheng <bin.cheng@arm.com>
6568
6569 PR tree-optimization/56541
6570 * doc/invoke.texi (@item max-tree-if-conversion-phi-args): New item.
6571 * params.def (PARAM_MAX_TREE_IF_CONVERSION_PHI_ARGS): new param.
6572 * tree-if-conv.c (MAX_PHI_ARG_NUM): new macro.
6573 (any_complicated_phi): new static variable.
6574 (aggressive_if_conv): delete.
6575 (if_convertible_phi_p): support phis with more than two arguments.
6576 (if_convertible_bb_p): remvoe check on aggressive_if_conv and
6577 critical pred edges.
6578 (ifcvt_split_critical_edges): support phis with more than two
6579 arguments by checking new parameter. only split critical edges
6580 if needed.
6581 (tree_if_conversion): handle simd pragma marked loop using new
6582 local variable aggressive_if_conv. check any_complicated_phi.
6583
6584 2016-05-03 Bin Cheng <bin.cheng@arm.com>
6585
6586 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check depends_on
6587 before using it.
6588
6589 2016-05-03 Bin Cheng <bin.cheng@arm.com>
6590
6591 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Don't clobber
6592 cbase.
6593
6594 2016-05-03 Oleg Endo <olegendo@gcc.gnu.org>
6595
6596 * config/sh/sh.md (udivsi3, divsi3, mulsi3): Simplify.
6597 (mulhisi3, umulhisi3, (smulsi3_highpart, umulsi3_highpart): Convert to
6598 define_insn_and_split.
6599 (mulsi3_i): New define_insn_and_split.
6600 (mulsi3_call): Convert to define_insn.
6601 (mulsidi3, mulsidi3_compact, umulsidi3, umulsidi3_compact):
6602 Remove constraints.
6603
6604 2016-05-02 Michael Meissner <meissner@linux.vnet.ibm.com>
6605
6606 * machmode.h (mode_complex): Add support to give the complex mode
6607 for a given mode.
6608 (GET_MODE_COMPLEX_MODE): Likewise.
6609 * stor-layout.c (layout_type): For COMPLEX_TYPE, use the mode
6610 stored by build_complex_type and gfc_build_complex_type instead of
6611 trying to figure out the appropriate mode based on the size. Raise
6612 an assertion error, if the type was not set.
6613 * genmodes.c (struct mode_data): Add field for the complex type of
6614 the given type.
6615 (blank_mode): Likewise.
6616 (make_complex_modes): Remember the complex mode created in the
6617 base type.
6618 (emit_mode_complex): Write out the mode_complex array to map a
6619 type mode to the complex version.
6620 (emit_insn_modes_c): Likewise.
6621 * tree.c (build_complex_type): Set the complex type to use before
6622 calling layout_type.
6623 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Add
6624 support for __float128 complex datatypes.
6625 (rs6000_hard_regno_mode_ok): Likewise.
6626 (rs6000_setup_reg_addr_masks): Likewise.
6627 (rs6000_complex_function_value): Likewise.
6628 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): Likewise.
6629 __float128 and __ibm128 complex.
6630 (FLOAT128_IBM_P): Likewise.
6631 (ALTIVEC_ARG_MAX_RETURN): Likewise.
6632 * doc/extend.texi (Additional Floating Types): Document that
6633 -mfloat128 must be used to enable __float128. Document complex
6634 __float128 and __ibm128 support.
6635
6636 2016-05-02 Jakub Jelinek <jakub@redhat.com>
6637
6638 PR target/49244
6639 * gimple.c (gimple_builtin_call_types_compatible_p): Allow
6640 char/short arguments promoted to int because of promote_prototypes.
6641
6642 2016-05-02 Uros Bizjak <ubizjak@gmail.com>
6643
6644 * config/i386/predicates.md (register_ssemem_operand): New predicate.
6645 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>): Merge from
6646 *cmpi<FPCMP:unord><MODEF:mode>_mixed and
6647 *cmpi<FPCMP:unord><X87MODEF:mode>_i387. Disable unsupported
6648 alternatives using "enabled" attribute. Use register_ssemem_operand
6649 as operand 1 predicate.
6650 (*cmpi<unord>xf_i387): Split XFmode pattern from
6651 *cmpi<FPCMP:unord><X87MODEF:mode>_i387.
6652 (*absneg<mode>2): Merge from *absneg<mode>2_mixed and
6653 *absneg<mode>2_i387. Disable unsupported alternatives using
6654 "enabled" attribute.
6655 (*absnegxf2_i387): Split XFmode pattern from *absneg<mode>2_i387.
6656
6657 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
6658
6659 * omp-low.c (lower_oacc_head_tail): Assert there is at least one
6660 marker.
6661 (oacc_loop_process): Check mask for loop termination.
6662
6663 2016-05-02 Jan Hubicka <hubicka@ucw.cz>
6664
6665 * cif-code.def (CIF_THUNK): Add.
6666 * ipa-inline-analsysis.c (evaluate_conditions_for_known_args): Revert
6667 accidental change.
6668
6669 2016-05-02 Jan Hubicka <hubicka@ucw.cz>
6670
6671 * ipa-inline-analysis.c (reset_inline_summary): Clear fp_expressions
6672 (dump_inline_summary): Dump it.
6673 (fp_expression_p): New predicate.
6674 (estimate_function_body_sizes): Use it.
6675 (inline_merge_summary): Merge fp_expressions.
6676 (inline_read_section): Read fp_expressions.
6677 (inline_write_summary): Write fp_expressions.
6678 * ipa-inline.c (can_inline_edge_p): Permit inlining across fp math
6679 codegen boundary if either caller or callee is !fp_expressions.
6680 * ipa-inline.h (inline_summary): Add fp_expressions.
6681 * ipa-inline-transform.c (inline_call): When inlining !fp_expressions
6682 to fp_expressions be sure the fp generation flags are updated.
6683
6684 2016-05-02 Jakub Jelinek <jakub@redhat.com>
6685
6686 PR rtl-optimization/70467
6687 * cse.c (cse_insn): Handle no-op MEM moves after folding.
6688
6689 PR rtl-optimization/70467
6690 * ipa-pure-const.c (check_call): Handle internal calls even in
6691 ipa mode like in local mode.
6692
6693 2016-05-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
6694
6695 * doc/install.texi: Document supported in-tree gmp/mpfr/mpc versions.
6696
6697 2016-05-02 Marc Glisse <marc.glisse@inria.fr>
6698
6699 * match.pd (X u< X, X u> X): New transformations.
6700
6701 2016-05-02 Marc Glisse <marc.glisse@inria.fr>
6702
6703 * flag-types.h (enum warn_strict_overflow_code): Move ...
6704 * coretypes.h: ... here.
6705 * fold-const.h (fold_overflow_warning): Declare.
6706 * fold-const.c (fold_overflow_warning): Make non-static.
6707 (fold_comparison): Move the transformation of X +- C1 CMP C2
6708 into X CMP C2 -+ C1 ...
6709 * match.pd: ... here.
6710 * gimple-fold.c (fold_stmt_1): Protect with
6711 fold_defer_overflow_warnings.
6712
6713 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
6714
6715 * omp-low.c (struct oacc_loop): Add 'inner' field.
6716 (new_oacc_loop_raw): Initialize it to zero.
6717 (oacc_loop_fixed_partitions): Initialize it.
6718 (oacc_loop_auto_partitions): Partition outermost loop to outermost
6719 available partitioning.
6720
6721 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
6722
6723 * config/arc/arc.md (mulsidi3): Change operand 0 predicate to
6724 register_operand.
6725 (umulsidi3): Likewise.
6726 (indirect_jump): Fix jump instruction assembly patterns.
6727
6728 2016-05-02 Thomas Schwinge <thomas@codesourcery.com>
6729
6730 PR target/70860
6731 * config/nvptx/nvptx.c (nvptx_libcall_value): Handle NULL cfun.
6732 (nvptx_function_value): Assert non-NULL cfun.
6733
6734 2016-05-02 Eric Botcazou <ebotcazou@adacore.com>
6735
6736 PR rtl-optimization/70886
6737 * sched-deps.c (estimate_dep_weak): Canonicalize cselib values.
6738
6739 * cselib.h (rtx_equal_for_cselib_1): Declare.
6740 (rtx_equal_for_cselib_p: New inline function.
6741 * cselib.c (rtx_equal_for_cselib_p): Delete.
6742 (rtx_equal_for_cselib_1): Make public.
6743
6744 2016-05-02 Uros Bizjak <ubizjak@gmail.com>
6745
6746 * config/i386/predicates.md (nonimm_ssenomem_operand): New predicate.
6747 (register_mixssei387nonimm_operand): Remove predicate.
6748 * config/i386/i386.md (*fop_<mode>_comm): Merge from
6749 *fop_<mode>_comm_mixed and *fop_<mode>_comm_i387. Disable unsupported
6750 alternatives using "enabled" attribute. Also check X87_ENABLE_ARITH
6751 for TARGET_MIX_SSE_I387 alternatives.
6752 (*fop_<mode>_1): Merge from *fop_<mode>_1_mixed and *fop_<mode>_1_i387.
6753 Disable unsupported alternatives using "enabled" attribute. Use
6754 nonimm_ssenomem_operand as operand 1 predicate. Also check
6755 X87_ENABLE_ARITH for TARGET_MIX_SSE_I387 alternatives.
6756
6757 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
6758
6759 * tree.c (cst_and_fits_in_hwi): Simplify.
6760
6761 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
6762
6763 * tree.h (wi::to_wide): New function.
6764 * expr.c (expand_expr_real_1): Use wi::to_wide.
6765 * fold-const.c (int_const_binop_1): Likewise.
6766 (extract_muldiv_1): Likewise.
6767
6768 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
6769
6770 * wide-int.h: Update offset_int and widest_int documentation.
6771 (WI_SIGNED_SHIFT_RESULT): New macro.
6772 (wi::binary_shift): Define signed_shift_result_type for
6773 shifts on offset_int- and widest_int-like types.
6774 (generic_wide_int): Support <<= and >>= if << and >> are supported.
6775 * tree.h (int_bit_position): Use shift operators instead of wi::
6776 shifts.
6777 * alias.c (adjust_offset_for_component_ref): Likewise.
6778 * expr.c (get_inner_reference): Likewise.
6779 * fold-const.c (fold_comparison): Likewise.
6780 * gimple-fold.c (fold_nonarray_ctor_reference): Likewise.
6781 * gimple-ssa-strength-reduction.c (restructure_reference): Likewise.
6782 * tree-dfa.c (get_ref_base_and_extent): Likewise.
6783 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
6784 (stmt_kills_ref_p): Likewise.
6785 * tree-ssa-ccp.c (bit_value_binop_1): Likewise.
6786 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Likewise.
6787 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
6788 (ao_ref_init_from_vn_reference): Likewise.
6789
6790 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
6791
6792 * wide-int.h: Update offset_int and widest_int documentation.
6793 (WI_SIGNED_BINARY_PREDICATE_RESULT): New macro.
6794 (wi::binary_traits): Allow ordered comparisons between offset_int and
6795 offset_int, between widest_int and widest_int, and between either
6796 of these types and basic C types.
6797 (operator <, <=, >, >=): Define for the same combinations.
6798 * tree.h (tree_int_cst_lt): Use comparison operators instead
6799 of wi:: comparisons.
6800 (tree_int_cst_le): Likewise.
6801 * gimple-fold.c (fold_array_ctor_reference): Likewise.
6802 (fold_nonarray_ctor_reference): Likewise.
6803 * gimple-ssa-strength-reduction.c (record_increment): Likewise.
6804 * tree-affine.c (aff_comb_cannot_overlap_p): Likewise.
6805 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Likewise.
6806 * tree-sra.c (completely_scalarize): Likewise.
6807 * tree-ssa-alias.c (stmt_kills_ref_p): Likewise.
6808 * tree-ssa-reassoc.c (extract_bit_test_mask): Likewise.
6809 * tree-vrp.c (extract_range_from_binary_expr_1): Likewise.
6810 (check_for_binary_op_overflow): Likewise.
6811 (search_for_addr_array): Likewise.
6812 * ubsan.c (ubsan_expand_objsize_ifn): Likewise.
6813
6814 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
6815
6816 * config/arc/arc.c (arc_preferred_simd_mode): Remove enum keyword.
6817 (arc_save_restore): Likewise.
6818 (arc_dwarf_register_span): Likewise.
6819 (arc_output_pic_addr_const): Initialize suffix variable.
6820
6821 2016-05-02 Martin Liska <mliska@suse.cz>
6822
6823 * symbol-summary.h (function_summary::function_summary):
6824 Remove checking assert for all cgraph nodes.
6825 (function_summary::get): Check summary_uid.
6826 (symtab_insertion): Check summary_uid.
6827
6828 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
6829
6830 * config/arc/arc-protos.h (compact_memory_operand_p): Declare.
6831 * config/arc/arc.c (arc_output_commutative_cond_exec): Consider
6832 bmaskn instruction.
6833 (arc_dwarf_register_span): Remove enum keyword.
6834 (compact_memory_operand_p): New function.
6835 * config/arc/arc.h (reg_class): Add code density register classes.
6836 (REG_CLASS_NAMES): Likewise.
6837 (REG_CLASS_CONTENTS): Likewise.
6838 * config/arc/arc.md (*movqi_insn): Add code density instructions.
6839 (*movhi_insn, *movsi_insn, *movsf_insn): Likewise.
6840 (*extendhisi2_i, andsi3_i, cmpsi_cc_insn_mixed): Likewise.
6841 (*cmpsi_cc_c_insn, *movsi_ne): Likewise.
6842 * config/arc/constraints.md (C2p, Uts, Cm1, Cm3, Ucd): New
6843 constraints.
6844 (h, Rcd, Rsd, Rzd): New register constraints.
6845 (T): Use compact_memory_operand_p function.
6846 * config/arc/predicates.md (compact_load_memory_operand): Remove.
6847
6848 2016-05-02 Oleg Endo <olegendo@gcc.gnu.org>
6849
6850 * config/sh/sh.md (*negnegt, *movtt): Remove.
6851
6852 2016-05-02 Marek Polacek <polacek@redhat.com>
6853 Tom de Vries <tom@codesourcery.com>
6854
6855 PR tree-optimization/70700
6856 * tree-ssa-structalias.c (dump_pred_graph): Fix getting varinfo for ids
6857 bigger than FIRST_REF_NODE.
6858
6859 2016-05-02 Oleg Endo <olegendo@gcc.gnu.org>
6860
6861 PR target/52898
6862 * config/sh/sh.c (sh_option_override): Remove TARGET_CBRANCHDI4,
6863 TARGET_CMPEQDI_T.
6864 (prepare_cbranch_operands): Don't use scratch register. Assume that
6865 function is used when pseudos can be created.
6866 (expand_cbranchdi4): Likewise. Remove unused TARGET_CMPEQDI_T paths.
6867 * config/sh/sh.md (cbranchsi4): Allow only when pseudos can be created.
6868 (cbranchdi4, cbranchdi4_i): Simplify to single cbranchdi4
6869 define_expand. Allow it only when pseudos can be created.
6870 * config/sh/sh.opt (mcbranchdi, mcmpeqdi): Delete.
6871
6872 2016-05-01 Uros Bizjak <ubizjak@gmail.com>
6873
6874 * config/i386/constraints.md (BC): Only allow -1 operands.
6875 * config/i386/sse.md (mov<mode>_internal): Add (v,C) alternative.
6876 Add "enabled" attribute. Update XI mode attribute calculation.
6877 * config/i386/i386.md (*movxi_internal_avx512f): Add (v,C) alternative.
6878 (*movoi_internal_avx): Update XI mode attribute calculation.
6879 (*movti_internal): Ditto.
6880
6881 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
6882
6883 * config/sh/sh.md (push, pop, ic_invalidate_line, cstoresi4, cstoredi4,
6884 cstoresf4, cstoredf4, fix_truncsfsi2): Remove constraints.
6885
6886 2016-05-01 Eric Botcazou <ebotcazou@adacore.com>
6887
6888 * config/rs6000/rs6000.c (altivec_expand_lv_builtin): Do not use switch
6889 statement on instruction code. Remove trailing spaces.
6890 (altivec_expand_stv_builtin): Likewise.
6891
6892 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
6893
6894 * config/sh/sh.h (TARGET_SH4): Remove and use default implementation.
6895 (TARGET_FPU_DOUBLE): Simplify.
6896 (BASE_ARG_REG, DOUBLE_TYPE_SIZE, OPTIMIZE_MODE_SWITCHING): Replace
6897 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions with 'TARGET_FPU_DOUBLE'.
6898 * config/sh/sh.c: Replace 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions
6899 with 'TARGET_FPU_DOUBLE'.
6900 * config/sh/sh.md: Likewise.
6901
6902 2016-05-01 Yoshinori Sato <ysato@users.sourceforge.jp>
6903
6904 * config/sh/linux.h (SH_DIV_STRATEGY_DEFAULT,
6905 SH_DIV_STR_FOR_SIZE): Remove.
6906 * config/sh/netbsd-elf.h (SH_DIV_STRATEGY_DEFAULT,
6907 SH_DIV_STR_FOR_SIZE): Remove.
6908
6909 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
6910
6911 * config/sh/predicates.md (any_register_operand, zero_extend_operand,
6912 logical_reg_operand): Delete.
6913 (arith_operand, arith_reg_dest, arith_or_int_operand, cmpsi_operand,
6914 arith_reg_or_0_operand, arith_reg_or_0_or_1_operand, logical_operand,
6915 logical_and_operand, movsrc_no_disp_mem_operand): Rewrite using
6916 match_operand and match_test.
6917 (sh_const_vec, sh_1el_vec): Remove redundant checks. Declare local
6918 variables on their first use. Return bool values.
6919 * config/sh/sh.h (LOAD_EXTEND_OP): Update comment.
6920 * config/sh/sh.md (andsi3, iorsi3): Use arith_reg_dest for result and
6921 arith_reg_operand for input operand. Remove empty constraints.
6922 (xorsi3): Delete.
6923 (*xorsi3_compact): Rename to xorsi3.
6924 (zero_extend<mode>si2): Use arith_reg_operand for input operand.
6925 (*zero_extend<mode>si2_disp_mem): Update comment.
6926 (mov_nop): Delete.
6927
6928 2016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
6929
6930 * config/sh/t-sh: Remove SH5 support.
6931 * config.gcc: Likewise.
6932 * configure: Likewise.
6933
6934 2016-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6935
6936 * config/darwin.h (LINK_COMMAND_SPEC_A): Handle -fcilkplus.
6937
6938 2016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
6939
6940 * config/sh/sh.c (register_sh_passes, sh_option_override,
6941 sh_print_operand, prepare_move_operands,
6942 sh_can_follow_jump): Remove TARGET_SH1 checks.
6943 * config/sh/sh.h (TARGET_VARARGS_PRETEND_ARGS, VALID_REGISTER_P,
6944 PROMOTE_MODE): Likewise.
6945 * config/sh/sh.md (adddi3, addsi3, subdi3, subsi3, andsi3,
6946 movdi): Likewise.
6947
6948 2016-04-30 Alan Modra <amodra@gmail.com>
6949
6950 * config/rs6000/rs6000.c (rs6000_savres_strategy): Force inline
6951 restoring when fixed_reg_p, but allow out-of-line or stmw save.
6952 Check for user regs later to avoid unnecessary looping over regs.
6953 Merge user reg check with non-saved reg check. Don't force
6954 inline VR restore when static chain used.
6955 (rs6000_frame_related): Omit eh_frame info for user regs when
6956 saving.
6957 (fixed_regs_p): Delete.
6958
6959 2016-04-30 Alan Modra <amodra@gmail.com>
6960
6961 * config/rs6000/rs6000.c (SAVRES_MULTIPLE): Replace with..
6962 (SAVE_STRATEGY, REST_STRATEGY): ..this. Renumber and sort enum.
6963 Update all uses.
6964
6965 2016-04-30 Alan Modra <amodra@gmail.com>
6966
6967 PR target/69645
6968 * config/rs6000/rs6000.c (fixed_reg_p): New function.
6969 (fixed_regs_p): Rename from global_regs_p. Call fixed_reg_p.
6970 Update all uses.
6971
6972 2016-04-30 Alan Modra <amodra@gmail.com>
6973
6974 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
6975 Remove redundant PIC_OFFSET_TABLE_REGNUM test. Replace with
6976 flag_pic test for Darwin.
6977
6978 2016-04-30 Alan Modra <amodra@gmail.com>
6979
6980 * regs.h (struct reg_info_t): Delete freq_calls_crossed and
6981 throw_calls_crossed.
6982 (REG_FREQ_CALLS_CROSSED): Delete.
6983 (REG_N_THROWING_CALLS_CROSSED): Delete.
6984 * regstat.c (regstat_bb_compute_ri): Don't calculate
6985 REG_FREQ_CALLS_CROSSED and REG_N_THROWING_CALLS_CROSSED.
6986 (dump_reg_info): Don't print call cross frequency.
6987 * ira.c (combine_and_move_insns): Don't set REG_FREQ_CALLS_CROSSED
6988 and REG_N_THROWING_CALLS_CROSSED.
6989
6990 2016-04-30 Alan Modra <amodra@gmail.com>
6991
6992 * regs.h (struct reg_info_t): Delete live_length.
6993 (REG_LIVE_LENGTH): Delete macro.
6994 * regstat.c (regstat_bb_compute_ri): Delete artificial_uses,
6995 local_live, local_processed and local_live_last_luid params.
6996 Replace bb_index param with bb. Don't set REG_LIVE_LENGTH.
6997 Formatting fixes.
6998 (regstat_compute_ri): Adjust for above. Don't set
6999 REG_LIVE_LENGTH.
7000 (dump_reg_info): Don't print live length.
7001 * ira.c (update_equiv_regs): Replace test of REG_LIVE_LENGTH
7002 with test of setjmp_crosses. Don't set REG_LIVE_LENGTH.
7003 Localize loop_depth var.
7004
7005 2016-04-30 Alan Modra <amodra@gmail.com>
7006
7007 * ira.c (enum valid_equiv): New.
7008 (validate_equiv_mem): Return enum.
7009 (update_equiv_mem): Create replacement in more cases.
7010 (add_store_equivs): Update validate_equiv_mem call.
7011
7012 2016-04-30 Alan Modra <amodra@gmail.com>
7013
7014 * ira.c (combine_and_move_insns): Rather than scanning insns,
7015 use DF infrastucture to find use and def insns.
7016
7017 2016-04-30 Alan Modra <amodra@gmail.com>
7018
7019 ira.c (combine_and_move_insns): Move invariant conditions..
7020 (ira.c): ..to here. Call combine_and_move_insns before
7021 add_store_equivs. Call grow_reg_equivs later. Allocate
7022 req_equiv later using max_reg_num() rather than global max_regno.
7023 (contains_replace_regs): Delete.
7024 (add_store_equivs): Remove contains_replace_regs test.
7025
7026 2016-04-30 Alan Modra <amodra@gmail.com>
7027
7028 * ira.c (struct equiv_mem_data): New.
7029 (equiv_mem, equiv_mem_modified): Delete static vars.
7030 (validate_equiv_mem_from_store): Use "data" param to communicate..
7031 (validate_equiv_mem): ..from here.
7032
7033 2016-04-30 Alan Modra <amodra@gmail.com>
7034
7035 * ira.c (add_store_equivs, combine_and_move_insns): New functions,
7036 split out from..
7037 (update_reg_equivs): ..here. Move allocation and freeing of
7038 reg_equiv, and calls to grow_reg_equivs, init_alias_analysis,
7039 end_alias_analysis to..
7040 (ira): ..here.
7041
7042 2016-04-30 Alan Modra <amodra@gmail.com>
7043
7044 * ira.c (pdx_subregs): Delete.
7045 (struct equivalence): Add pdx_subregs field.
7046 (set_paradoxical_subreg): Remove pdx_subregs param. Update
7047 pdx_subregs access.
7048 (update_equiv_regs): Don't create or free pdx_subregs. Update
7049 pdx_subregs access.
7050
7051 2016-04-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7052
7053 * config/rs6000/altivec.h: Change definitions of vec_xl and
7054 vec_xst.
7055 * config/rs6000/rs6000-builtin.def (LD_ELEMREV_V2DF): New.
7056 (LD_ELEMREV_V2DI): New.
7057 (LD_ELEMREV_V4SF): New.
7058 (LD_ELEMREV_V4SI): New.
7059 (LD_ELEMREV_V8HI): New.
7060 (LD_ELEMREV_V16QI): New.
7061 (ST_ELEMREV_V2DF): New.
7062 (ST_ELEMREV_V2DI): New.
7063 (ST_ELEMREV_V4SF): New.
7064 (ST_ELEMREV_V4SI): New.
7065 (ST_ELEMREV_V8HI): New.
7066 (ST_ELEMREV_V16QI): New.
7067 (XL): New.
7068 (XST): New.
7069 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
7070 descriptions for VSX_BUILTIN_VEC_XL and VSX_BUILTIN_VEC_XST.
7071 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Map from
7072 TARGET_P9_VECTOR to RS6000_BTM_P9_VECTOR.
7073 (altivec_expand_builtin): Add handling for
7074 VSX_BUILTIN_ST_ELEMREV_<MODE> and VSX_BUILTIN_LD_ELEMREV_<MODE>.
7075 (rs6000_invalid_builtin): Add error-checking for
7076 RS6000_BTM_P9_VECTOR.
7077 (altivec_init_builtins): Define builtins used to implement vec_xl
7078 and vec_xst.
7079 (rs6000_builtin_mask_names): Define power9-vector.
7080 * config/rs6000/rs6000.h (MASK_P9_VECTOR): Define.
7081 (RS6000_BTM_P9_VECTOR): Define.
7082 (RS6000_BTM_COMMON): Include RS6000_BTM_P9_VECTOR.
7083 * config/rs6000/vsx.md (vsx_ld_elemrev_v2di): New define_insn.
7084 (vsx_ld_elemrev_v2df): Likewise.
7085 (vsx_ld_elemrev_v4sf): Likewise.
7086 (vsx_ld_elemrev_v4si): Likewise.
7087 (vsx_ld_elemrev_v8hi): Likewise.
7088 (vsx_ld_elemrev_v16qi): Likewise.
7089 (vsx_st_elemrev_v2df): Likewise.
7090 (vsx_st_elemrev_v2di): Likewise.
7091 (vsx_st_elemrev_v4sf): Likewise.
7092 (vsx_st_elemrev_v4si): Likewise.
7093 (vsx_st_elemrev_v8hi): Likewise.
7094 (vsx_st_elemrev_v16qi): Likewise.
7095 * doc/extend.texi: Add prototypes for vec_xl and vec_xst. Correct
7096 grammar.
7097
7098 2016-04-29 Patrick Palka <ppalka@gcc.gnu.org>
7099
7100 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Split
7101 out into ...
7102 (simplify_control_stmt_condition_1): ... here. Recurse into
7103 BIT_AND_EXPRs and BIT_IOR_EXPRs.
7104
7105 2016-04-29 David Edelsohn <dje.gcc@gmail.com>
7106
7107 PR target/69810
7108 * config/rs6000/rs6000.md (EXTQI): Don't allow extension to HImode.
7109 (zero_extendqi<mode>2_dot): Revert earlier conversion from
7110 define_insn_and_split to define_insn.
7111 (zero_extendqi<mode>2_dot2): Same.
7112 (extendqi<mode>2_dot): Same.
7113 (extendqi<mode>2_dot2): Same.
7114
7115 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
7116
7117 * config/i386/i386.md (unspec): Add UNSPEC_PROBE_STACK.
7118 (probe_stack): New expander.
7119 (probe_stack_<mode>): New insn pattern.
7120
7121 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
7122
7123 * config/i386/i386.md
7124 (operations with memory inputs setting flags peephole2):
7125 Remove uneeded REG_P checks. Cleanup pattern generation.
7126
7127 2016-04-29 Ilya Enkovich <ilya.enkovich@intel.com>
7128
7129 * tree-vect-loop.c (vect_transform_loop): Fix
7130 nb_iterations_upper_bound computation for vectorized loop.
7131
7132 2016-04-29 Marek Polacek <polacek@redhat.com>
7133 Jakub Jelinek <jakub@redhat.com>
7134
7135 PR sanitizer/70342
7136 * fold-const.c (tree_single_nonzero_warnv_p): For TARGET_EXPR, use
7137 TARGET_EXPR_SLOT as a base.
7138
7139 2016-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
7140
7141 * config/arc/arc.md (*loadqi_update): Replace use of 'rI' constraint
7142 with 'rCm2' constraints to limit possible immediate size.
7143 (*load_zeroextendqisi_update): Likewise.
7144 (*load_signextendqisi_update): Likewise.
7145 (*loadhi_update): Likewise.
7146 (*load_zeroextendhisi_update): Likewise.
7147 (*load_signextendhisi_update): Likewise.
7148 (*loadsi_update): Likewise.
7149 (*loadsf_update): Likewise.
7150
7151 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
7152
7153 * config/i386/predicates.md (constm1_operand): Fix comparison.
7154
7155 2016-04-29 Claudiu Zissulescu <claziss@synopsys.com>
7156
7157 * testsuite/gcc.target/arc/ieee_eq.c: New test.
7158
7159 2016-04-29 Oleg Endo <olegendo@gcc.gnu.org>
7160
7161 * common/config/sh/sh-common.c (sh_option_optimization_table): Remove
7162 remaining SH5 related settings.
7163 * config/sh/sh-protos.h (shmedia_cleanup_truncate,
7164 shmedia_prepare_call_address): Delete.
7165 * config/sh/sh.c (sh_print_operand, output_stack_adjust,
7166 DWARF_CIE_DATA_ALIGNMENT, LOCAL_ALIGNMENT): Update comments.
7167 * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC,
7168 UNSUPPORTED_SH2A): Remove m5 checks.
7169 (sh_divide_strategy_e): Remove SH5 division strategies.
7170 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Remove and use default.
7171 * config/sh/sh.md (divsf3): Reinstate define_expand pattern.
7172
7173 2016-04-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
7174
7175 * config/s390/s390.c (s390_rtx_costs): Update documentation.
7176
7177 2016-04-29 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7178
7179 * config/s390/2964.md ("z13_unit_fxu", "z13_0"): Remove lder.
7180 * config/s390/s390.md ("movsi_larl", "*movsi_esa", "mov<mode>"):
7181 Change lder to ldr.
7182 * config/s390/vector.md ("mov<mode>"): Likewise.
7183
7184 2016-04-29 Ulrich Weigand <uweigand@de.ibm.com>
7185
7186 * config/s390/constraints.md ("U", "W"): Invoke
7187 s390_mem_constraint with "ZR" and "ZT".
7188 * config/s390/s390.c (s390_check_qrst_address): Reject invalid
7189 addresses when using LRA. Accept also short displacements for S
7190 and T constraints. Do not check for long displacement target for
7191 S and T constraints.
7192 (s390_mem_constraint): Remove handling of U and W constraints.
7193 * config/s390/s390.md (various patterns): Remove the short
7194 displacement constraints (Q and R) if a long displacement
7195 constraint is present. Add longdisp as required CPU capability.
7196 * config/s390/vector.md: Likewise.
7197 * config/s390/vx-builtins.md: Likewise.
7198
7199 2016-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
7200
7201 PR target/60040
7202 * reload1.c (reload): Call finish_spills before
7203 restarting reload loop. Skip select_reload_regs
7204 if update_eliminables_and_spill returns true.
7205
7206 2016-04-29 Claudiu Zissulescu <claziss@synopsys.com>
7207
7208 * config/arc/arc.h (UNSIGNED_INT12, UNSIGNED_INT16): Define.
7209 * config/arc/arc.md (umulhisi3): Use arc_short_operand predicate.
7210 (umulhisi3_imm): Update predicates and constraint letters.
7211 (umulhisi3_reg): Declare instruction as commutative.
7212 * config/arc/constraints.md (J12, J16): New constraints.
7213 * config/arc/predicates.md (short_unsigned_const_operand): New
7214 predicate.
7215 (arc_short_operand): Likewise.
7216 * testsuite/gcc.target/arc/umulsihi3_z.c: New file.
7217
7218 2016-04-29 Richard Biener <rguenther@suse.de>
7219
7220 PR tree-optimization/13962
7221 PR tree-optimization/65686
7222 * tree-ssa-alias.h (ptrs_compare_unequal): Declare.
7223 * tree-ssa-alias.c (ptrs_compare_unequal): New function
7224 using PTA to compare pointers.
7225 * match.pd: Add pattern for pointer equality compare simplification
7226 using ptrs_compare_unequal.
7227
7228 2016-04-29 Richard Biener <rguenther@suse.de>
7229
7230 * stor-layout.c (layout_type): Do not build a pointer-to-element
7231 type for arrays.
7232
7233 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
7234
7235 * config/i386/i386.md (Load+RegOp to Mov+MemOp peephole2):
7236 Use SWI mode iterator. Use general_reg_operand predicate.
7237 (Load+RegOp to Mov+MemOp peephole2 with vector regs): Split
7238 peephole to MMX and SSE part. Use mmx_reg_operand and sse_reg_operand
7239 predicates.
7240
7241 2016-04-29 Jakub Jelinek <jakub@redhat.com>
7242
7243 PR middle-end/70843
7244 * fold-const.c (operand_equal_p): Don't verify hash value equality
7245 if arg0 == arg1.
7246 * tree.c (inchash::add_expr): Handle STATEMENT_LIST. Ignore BLOCK
7247 and OMP_CLAUSE.
7248
7249 2016-04-28 Jakub Jelinek <jakub@redhat.com>
7250
7251 PR target/70858
7252 * config/i386/i386.c (bdesc_special_args): Add | OPTION_MASK_ISA_64BIT
7253 to __builtin_ia32_lwpval64 and __builtin_ia32_lwpins64.
7254 (bdesc_args): Add | OPTION_MASK_ISA_64BIT to __builtin_ia32_bextr_u64,
7255 __builtin_ia32_bextri_u64, __builtin_ia32_bzhi_di,
7256 __builtin_ia32_pdep_di and __builtin_ia32_pext_di.
7257
7258 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
7259
7260 * config/rs6000/rs6000.c (compute_save_world_info): Rename info_ptr
7261 to info. Don't initialize separate fields to 0. Clean up
7262 formatting a bit.
7263
7264 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
7265
7266 * config/i386/i386.md (peephole2s for operations with memory inputs):
7267 Use SWI mode iterator.
7268 (peephole2s for operations with memory outputs): Ditto.
7269 Do not check for stack checking probe.
7270
7271 (probe_stack): Remove expander.
7272
7273 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
7274 Andrew Burgess <andrew.burgess@embecosm.com>
7275
7276 * config/arc/arc.c (arc_print_operand): Print integer 'H' / 'L'
7277 operands as 32-bits.
7278
7279 2016-04-28 Jason Merrill <jason@redhat.com>
7280
7281 * gdbinit.in: Skip line-map.h.
7282
7283 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
7284 Andrew Burgess <andrew.burgess@embecosm.com>
7285
7286 * config/arc/arc.c (arc_conditional_register_usage): Take
7287 TARGET_RRQ_CLASS into account.
7288 (arc_print_operand): Support printing 'p' and 's' operands.
7289 * config/arc/arc.h (TARGET_NPS_BITOPS_DEFAULT): Provide default
7290 as 0.
7291 (TARGET_RRQ_CLASS): Define.
7292 (IS_POWEROF2_OR_0_P): Define.
7293 * config/arc/arc.md (*movsi_insn): Add w/Clo, w/Chi, and w/Cbi
7294 alternatives.
7295 (*tst_movb): New define_insn.
7296 (*tst): Avoid recognition if it could prevent '*tst_movb'
7297 combination; replace c/CnL with c/Chs alternative.
7298 (*tst_bitfield_tst): New define_insn.
7299 (*tst_bitfield_asr): New define_insn.
7300 (*tst_bitfield): New define_insn.
7301 (andsi3_i): Add Rrq variant.
7302 (extzv): New define_expand.
7303 (insv): New define_expand.
7304 (*insv_i): New define_insn.
7305 (*movb): New define_insn.
7306 (*movb_signed): New define_insn.
7307 (*movb_high): New define_insn.
7308 (*movb_high_signed): New define_insn.
7309 (*movb_high_signed + 1): New define_split pattern.
7310 (*mrgb): New define_insn.
7311 (*mrgb + 1): New define_peephole2 pattern.
7312 (*mrgb + 2): New define_peephole2 pattern.
7313 * config/arc/arc.opt (mbitops): New option for nps400, uses
7314 TARGET_NPS_BITOPS_DEFAULT.
7315 * config/arc/constraints.md (q): Make register class conditional.
7316 (Rrq): New register constraint.
7317 (Chs): New constraint.
7318 (Clo): New constraint.
7319 (Chi): New constraint.
7320 (Cbf): New constraint.
7321 (Cbn): New constraint.
7322 (C18): New constraint.
7323 (Cbi): New constraint.
7324
7325 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
7326
7327 * cfganal.c (bitmap_intersection_of_succs): Delete assert checking
7328 dst->popcount.
7329 (bitmap_intersection_of_preds): Ditto.
7330 (bitmap_union_of_succs): Ditto.
7331 (bitmap_union_of_preds): Ditto.
7332 * sbitmap.c (do_popcount): Delete.
7333 (BITMAP_DEBUGGING): Delete.
7334 (sbitmap_verify_popcount): Delete.
7335 (sbitmap_alloc): Don't initialize the popcount field.
7336 (sbitmap_alloc_with_popcount): Delete.
7337 (sbitmap_resize): Don't resize the popcount array.
7338 (sbitmap_vector_alloc): Don't initialize the popcount field.
7339 (bitmap_copy): Don't copy the popcount array.
7340 (bitmap_clear): Don't clear the popcount array.
7341 (bitmap_clear): Delete the popcount array handling.
7342 (bitmap_ior_and_compl): Delete the popcount assert.
7343 (bitmap_not): Ditto.
7344 (bitmap_and_compl): Ditto.
7345 (bitmap_and): Delete the popcount array handling.
7346 (bitmap_xor): Ditto.
7347 (bitmap_ior): Ditto.
7348 (bitmap_or_and): Delete the popcount assert.
7349 (bitmap_and_or): Ditto.
7350 (popcount_table): Delete.
7351 (sbitmap_elt_popcount): Delete.
7352 * sbitmap.h (simple_bitmap_def): Delete the popcount field.
7353 (bitmap_set_bit): Delete the popcount assert.
7354 (bitmap_clear_bit): Ditto.
7355 (sbitmap_free): Don't free the popcount array.
7356 (sbitmap_alloc_with_popcount): Delete declaration.
7357 (sbitmap_popcount): Ditto.
7358
7359 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
7360 Andrew Burgess <andrew.burgess@embecosm.com>
7361
7362 * config/arc/arc.h (SYMBOL_FLAG_CMEM): Define.
7363 (TARGET_NPS_CMEM_DEFAULT): Provide default definition.
7364 * config/arc/arc.c (arc_address_cost): Return 0 for cmem_address.
7365 (arc_encode_section_info): Set SYMBOL_FLAG_CMEM where indicated.
7366 * config/arc/arc.opt (mcmem): New option.
7367 * config/arc/arc.md (*extendqihi2_i): Add r/Uex alternative,
7368 supply length for r/m alternative.
7369 (*extendqisi2_ac): Likewise.
7370 (*extendhisi2_i): Add r/Uex alternative, supply length for r/m and
7371 r/Uex alternative.
7372 (movqi_insn): Add r/Ucm and Ucm/?Rac alternatives.
7373 (movhi_insn): Likewise.
7374 (movsi_insn): Add r/Ucm,Ucm/w alternatives.
7375 (*zero_extendqihi2_i): Add r/Ucm alternative.
7376 (*zero_extendqisi2_ac): Likewise.
7377 (*zero_extendhisi2_i): Likewise.
7378 * config/arc/constraints.md (Uex): New memory constraint.
7379 (Ucm): New define_constraint.
7380 * config/arc/predicates.md (long_immediate_loadstore_operand):
7381 Return 0 for MEM with cmem_address address.
7382 (cmem_address_0): New predicates.
7383 (cmem_address_1): Likewise.
7384 (cmem_address_2): Likewise.
7385 (cmem_address): Likewise.
7386
7387 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
7388
7389 * config/rs6000/rs6000.c (machine_function): Rename
7390 insn_chain_scanned_p to spe_insn_chain_scanned_p.
7391 (rs6000_stack_info): Adjust.
7392
7393 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
7394 Andrew Burgess <andrew.burgess@embecosm.com>
7395
7396 * config/arc/constraints.md (Usd): Convert to define_constraint.
7397 (Us<): Likewise.
7398 (Us>): Likewise.
7399
7400 2016-04-28 Jakub Jelinek <jakub@redhat.com>
7401
7402 PR target/70821
7403 * config/i386/sync.md (define_peephole2 *atomic_fetch_add_cmp<mode>):
7404 Add new peephole2 where the first insn is *mov<mode>_or instead of
7405 *mov<mode>_internal.
7406
7407 2016-04-28 Segher Boesssenkool <segher@kernel.crashing.org>
7408
7409 * tracer.c (bb_seen): Make static.
7410
7411 2016-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
7412
7413 * common/config/arc/arc-common.c (arc_handle_option): Add NPS400
7414 support, setup defaults.
7415 * config/arc/arc-opts.h (enum processor_type): Add NPS400.
7416 * config/arc/arc.c (arc_init): Add NPS400 support.
7417 * config/arc/arc.h (CPP_SPEC): Add NPS400 defines.
7418 (TARGET_ARC700): NPS400 is also an ARC700.
7419 * config/arc/arc.opt: Add NPS400 options to -mcpu=.
7420
7421 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
7422
7423 PR target/70668
7424 * config/nds32/nds32.md (casesi): Don't access the operands array
7425 out of bounds.
7426
7427 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
7428
7429 * config/i386/i386.md (zeroing peephole2): Use general_reg_operand.
7430 (or $-1,reg peephole2): Ditto.
7431 (strict_low_part zeroing peephole2): Use SWI12 mode iterator.
7432
7433 2016-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
7434
7435 * doc/extend.texi (Common Function Attributes) [optimize]:
7436 Discourage use of the optimize attribute.
7437
7438 2016-04-28 Bill Seurer <seurer@linux.vnet.ibm.com>
7439
7440 * config/rs6000/rs6000-builtin.def (vec_adde): Change vec_adde to a
7441 special case builtin.
7442 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
7443 ALTIVEC_BUILTIN_VEC_ADDE.
7444 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
7445 support for ALTIVEC_BUILTIN_VEC_ADDE.
7446 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
7447 for __builtin_vec_adde.
7448
7449 2016-04-28 Jakub Jelinek <jakub@redhat.com>
7450
7451 * config/i386/i386.md (sse4_1_round<mode>2): Add avx512f alternative.
7452 * config/i386/sse.md (sse4_1_round<ssescalarmodesuffix>): Likewise.
7453
7454 2016-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7455
7456 PR testsuite/70595
7457 * doc/sourcebuild.texi (Effective-Target Keywords, Other
7458 attributes): Document cilkplus_runtime.
7459
7460 2016-04-28 Martin Jambor <mjambor@suse.cz>
7461
7462 * tree-cfg.c (verify_expr): Verify that local declarations belong to
7463 this function. Call verify_expr on MEM_REFs and bases of other
7464 handled_components.
7465
7466 2016-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7467
7468 * internal-fn.c (expand_arith_overflow): Convert preprocessor check
7469 for WORD_REGISTER_OPERATIONS to runtime check.
7470
7471 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
7472
7473 * config/arc/arc.h (ASM_SPEC): Pass mfpuda to assembler.
7474
7475 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
7476
7477 * config/arc/arc.c (arc_process_double_reg_moves): Fix for
7478 big-endian compilation.
7479 * config/arc/arc.md (addf3): Likewise.
7480 (subdf3): Likewise.
7481 (muldf3): Likewise.
7482
7483 2016-04-28 Richard Biener <rguenther@suse.de>
7484
7485 PR tree-optimization/70840
7486 * match.pd: powi(-x, y) and powi(|x|,y) -> powi(x,y) if y is even;
7487 Fix pow(copysign(x, y), z) -> pow(x, z) and add powi variant;
7488 Mark x * pow(x,c) -> pow(x,c+1) commutative.
7489 Add powi(x,y) * powi(z,y) -> powi(x*z,y).
7490
7491 2015-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7492
7493 * config/aarch64/aarch64.h (WORD_REGISTER_OPERATIONS): Define to 0
7494 and explain why in a comment.
7495
7496 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
7497
7498 * config/arc/arc.md (cpu_facility): Add fpx variant.
7499 (subdf3): Prohibit use reverse sub when assist operations option
7500 is enabled.
7501 * config/arc/fpx.md (subdf3_insn, *dsubh_peep2_insn): Allow drsub
7502 instructions only when FPX is enabled.
7503 * testsuite/gcc.target/arc/trsub.c: New test.
7504
7505 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
7506
7507 * config/i386/i386.md (*fop_<mode>_1_mixed): Do not check for
7508 mult_operator when calculating "type" attribute.
7509 (*fop_<mode>_1_i387): Ditto.
7510 (*fop_xf_1_i387): Ditto.
7511 (x87 stack loads peephole2): Add "reg = op (mem, reg)" peephole2.
7512 Use std::swap to swap operands. Use RTL expressions to generate
7513 converted pattern.
7514
7515 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
7516 Joern Rennecke <joern.rennecke@embecosm.com>
7517
7518 * config/arc/arc-protos.h (arc_legitimize_pic_address): Remove
7519 declaration.
7520 (emit_pic_move): Remove.
7521 (arc_eh_uses, insn_is_tls_gd_dispatch): Declare.
7522 * config/arc/arc.c (emit_pic_move): Removed.
7523 (TARGET_HAVE_TLS): Define.
7524 (arc_conditional_register_usage): Test for arc_tp_regno.
7525 (arc_print_operand, arc_print_operand_address): Handle TLS
7526 unspecs.
7527 (arc_needs_pcl_p): New function.
7528 (arc_legitimate_pc_offset_p): Use arc_needs_pcl_p.
7529 (arc_legitimate_pic_addr_p): Handle TLS unspecs.
7530 (arc_raw_symbolic_reference_mentioned_p): Likewise.
7531 (arc_get_tp, arc_emit_call_tls_get_addr): New function.
7532 (arc_legitimize_tls_address): Likewise.
7533 (DTPOFF_ZERO_SYM): Define.
7534 (arc_legitimize_pic_address): Make it static, handle TLS cases.
7535 (arc_output_pic_addr_const): Print TLS unspecs.
7536 (prepare_pic_move): New function, replaces emit_pic_move.
7537 (arc_legitimate_constant_p): Handle TLS unspecs.
7538 (arc_legitimate_address_p): Likewise.
7539 (arc_rewrite_small_data_p): Use assert for TLS constants.
7540 (prepare_move_operands): Use prepare_pic_move.
7541 (arc_legitimize_address): Legitimize tls addresses.
7542 (arc_epilogue_uses): Check for arc_tp_regno.
7543 (arc_eh_uses, insn_is_tls_gd_dispatch): New function.
7544 * config/arc/arc.h [DEFAULT_LIBC != LIBC_UCLIBC] (EXTRA_SPECS):
7545 Define.
7546 [DEFAULT_LIBC != LIBC_UCLIBC] (ARC_TLS_EXTRA_START_SPEC):
7547 Likewise.
7548 [DEFAULT_LIBC != LIBC_UCLIBC] (STARTFILE_SPEC): Add
7549 %(arc_tls_extra_start_spec).
7550 (TARGET_CPU_CPP_BUILTINS): Define __ARC_TLS_REGNO__.
7551 (REGNO_OK_FOR_BASE_P): Check for arc_tp_regno.
7552 (EH_USES): Define.
7553 (INSN_REFERENCES_ARE_DELAYED): Use insn_is_tls_gd_dispatch.
7554 * config/arc/arc.md (UNSPEC_TLS_GD, UNSPEC_TLS_LD, UNSPEC_TLS_IE)
7555 (UNSPEC_TLS_OFF): Add.
7556 (R10_REG): Define.
7557 (tls_load_tp_soft, tls_gd_load, tls_gd_get_addr, tls_gd_dispatch)
7558 (get_thread_pointersi): New patterns.
7559 * config/arc/arc.opt (mtp-regno): New option.
7560 * config/arc/predicates.md (move_src_operand): Handle TLS symbols.
7561 (move_dest_operand): Likewise.
7562 * configure: Regenerate.
7563 * configure.ac: Add arc*-*-* case to test for tls.
7564 * doc/invoke.texi (ARC options): Document mtp-regno.
7565
7566 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
7567
7568 * config/arc/arc.c (arc_vector_mode_supported_p): Add support for
7569 the new ARC HS SIMD instructions.
7570 (arc_preferred_simd_mode): New function.
7571 (arc_autovectorize_vector_sizes): Likewise.
7572 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
7573 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
7574 (arc_init_reg_tables): Accept new ARC HS SIMD modes.
7575 (arc_init_builtins): Add new SIMD builtin types.
7576 (arc_split_move): Handle 64 bit vector moves.
7577 * config/arc/arc.h (TARGET_PLUS_DMPY, TARGET_PLUS_MACD)
7578 (TARGET_PLUS_QMACW): Define.
7579 * config/arc/builtins.def (QMACH, QMACHU, QMPYH, QMPYHU, DMACH)
7580 (DMACHU, DMPYH, DMPYHU, DMACWH, DMACWHU, VMAC2H, VMAC2HU, VMPY2H)
7581 (VMPY2HU, VADDSUB2H, VSUBADD2H, VADDSUB, VSUBADD, VADDSUB4H)
7582 (VSUBADD4H): New builtins.
7583 * config/arc/simdext.md: Add new ARC HS SIMD instructions.
7584 * testsuite/gcc.target/arc/builtin_simdarc.c: New file.
7585
7586 2016-04-28 Eduard Sanou <dhole@openmailbox.org>
7587 Matthias Klose <doko@debian.org>
7588
7589 * doc/cppenv.texi: Document SOURCE_DATE_EPOCH environment variable.
7590
7591 2016-04-28 Richard Biener <rguenther@suse.de>
7592
7593 PR middle-end/70777
7594 * fold-const.c (fold_binary_loc): Remove x*x to pow(x,2.0)
7595 canonicalization.
7596
7597 2016-04-28 Oleg Endo <olegendo@gcc.gnu.org>
7598
7599 * common/config/sh/sh-common.c: Remove SH5 support.
7600 * config/sh/constraints.md: Likewise.
7601 * config/sh/config/sh/elf.h: Likewise.
7602 * config/sh/linux.h: Likewise.
7603 * config/sh/netbsd-elf.h: Likewise.
7604 * config/sh/predicates.md: Likewise.
7605 * config/sh/sh-c.c: Likewise.
7606 * config/sh/sh-protos.h: Likewise.
7607 * config/sh/sh.c: Likewise.
7608 * config/sh/sh.h: Likewise.
7609 * config/sh/sh.md: Likewise.
7610 * config/sh/sh.opt: Likewise.
7611 * config/sh/sync.md: Likewise.
7612 * config/sh/sh64.h: Delete.
7613 * config/sh/shmedia.h: Likewise.
7614 * config/sh/shmedia.md: Likewise.
7615 * config/sh/sshmedia.h: Likewise.
7616 * config/sh/t-netbsd-sh5-64: Likewise.
7617 * config/sh/t-sh64: Likewise.
7618 * config/sh/ushmedia.h: Likewise.
7619
7620 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
7621
7622 * config/i386/i386.md (sign_extend to memory peephole2s): Use
7623 general_reg_operand instead of register_operand predicate.
7624
7625 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7626
7627 * params.def (MIN_PARTITION_SIZE): Set default value to 10000.
7628
7629 2016-04-27 Marc Glisse <marc.glisse@inria.fr>
7630
7631 * match.pd (A - B > A, A + B < A): New transformations.
7632
7633 2016-04-27 Patrick Palka <ppalka@gcc.gnu.org>
7634
7635 * genattrtab.c (write_test_expr): New parameter EMIT_PARENS
7636 which defaults to true. Emit an outer pair of parentheses only if
7637 EMIT_PARENS. When continuing a chain of && or || (or & or |),
7638 don't emit parentheses for the right-hand operand.
7639
7640 2016-04-27 Jeff Law <law@redhat.com>
7641
7642 * tree-ssa-dom.c (record_temporary_equivalences): Fix typo in comment.
7643
7644 2016-04-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7645
7646 * config/rs6000/altivec.md (altivec_lvx_<mode>): Remove.
7647 (altivec_lvx_<mode>_internal): Document.
7648 (altivec_lvx_<mode>_2op): New define_insn.
7649 (altivec_lvx_<mode>_1op): Likewise.
7650 (altivec_lvx_<mode>_2op_si): Likewise.
7651 (altivec_lvx_<mode>_1op_si): Likewise.
7652 (altivec_stvx_<mode>): Remove.
7653 (altivec_stvx_<mode>_internal): Document.
7654 (altivec_stvx_<mode>_2op): New define_insn.
7655 (altivec_stvx_<mode>_1op): Likewise.
7656 (altivec_stvx_<mode>_2op_si): Likewise.
7657 (altivec_stvx_<mode>_1op_si): Likewise.
7658 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
7659 Expand vec_ld and vec_st during parsing.
7660 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Commentary
7661 changes.
7662 (altivec_expand_stvx_be): Likewise.
7663 (altivec_expand_lv_builtin): Expand lvx built-ins to expose the
7664 address-masking behavior in RTL.
7665 (altivec_expand_stv_builtin): Expand stvx built-ins to expose the
7666 address-masking behavior in RTL.
7667 (altivec_expand_builtin): Change builtin code arguments for calls
7668 to altivec_expand_stv_builtin and altivec_expand_lv_builtin.
7669 (insn_is_swappable_p): Avoid incorrect swap optimization in the
7670 presence of lvx/stvx patterns.
7671 (alignment_with_canonical_addr): New function.
7672 (alignment_mask): Likewise.
7673 (find_alignment_op): Likewise.
7674 (recombine_lvx_pattern): Likewise.
7675 (recombine_stvx_pattern): Likewise.
7676 (recombine_lvx_stvx_patterns): Likewise.
7677 (rs6000_analyze_swaps): Perform a pre-pass to recognize lvx and
7678 stvx patterns from expand.
7679 * config/rs6000/vector.md (vector_altivec_load_<mode>): Use new
7680 expansions.
7681 (vector_altivec_store_<mode>): Likewise.
7682
7683 2016-04-26 Evandro Menezes <e.menezes@samsung.com>
7684
7685 * config/aarch64/aarch64.md
7686 (*movhf_aarch64): Add "movi %0, #0" to zero up register and
7687 remove the "fp" attributes.
7688 (*movsf_aarch64): Add "movi %0, #0" to zero up register and
7689 add the "simd" attributes.
7690 (*movdf_aarch64): Likewise.
7691 (*movtf_aarch64): Remove the "fp" attributes.
7692 * testsuite/gcc.target/aarch64/fmovf-zero-reg.c: Update accordingly.
7693 * testsuite/gcc.target/aarch64/fmovd-zero-reg.c: Likewise.
7694
7695 2016-04-27 David Malcolm <dmalcolm@redhat.com>
7696
7697 * emit-rtl.c (maybe_set_first_label_num): Strengthen param from
7698 rtx to rtx_code_label *.
7699 * rtl.h (maybe_set_first_label_num): Likewise.
7700
7701 2016-04-27 David Malcolm <dmalcolm@redhat.com>
7702
7703 * df-core.c (df_add_problem): Make the problem param be const.
7704 (df_remove_problem): Make local "problem" be const.
7705 * df-problems.c (problem_RD): Make const.
7706 (problem_LR): Likewise.
7707 (problem_LIVE): Likewise.
7708 (problem_MIR): Likewise.
7709 (problem_CHAIN): Likewise.
7710 (problem_WORD_LR): Likewise.
7711 (problem_NOTE): Likewise.
7712 (problem_MD): Likewise.
7713 * df-scan.c (problem_SCAN): Likewise.
7714 * df.h (struct df_problem): Make field "dependent_problem" be
7715 const.
7716 (struct dataflow): Likewise for field "problem".
7717 (df_add_problem): Make param const.
7718
7719 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
7720
7721 * config/i386/i386.c (ix86_spill_class): Enable for TARGET_SSE2 when
7722 inter-unit moves to/from vector registers are enabled. Do not disable
7723 for TARGET_MMX.
7724
7725 2016-04-27 David Malcolm <dmalcolm@redhat.com>
7726
7727 * df.h (DF_SCAN, DF_LR, DF_LIVE, DF_RD, DF_CHAIN, DF_WORD_LR,
7728 DF_NOTE, DF_MD, DF_MIR, DF_LAST_PROBLEM_PLUS1): Convert from
7729 #define to...
7730 (enum df_problem_id): ...this new enum.
7731 (struct df_problem): Convert field "id" from "int" to
7732 enum df_problem_id.
7733
7734 2016-04-27 David Malcolm <dmalcolm@redhat.com>
7735
7736 * rtl.def: Update comment for "things in the instruction chain" to
7737 reflect the removal of the leading "i" field for INSN_UID in
7738 r210360. Fix bogus apostrophe.
7739
7740 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
7741
7742 * config/i386/i386.md
7743 (lea arith with mem operand + setcc peephole2): Set operator mode.
7744
7745 2016-04-27 H.J. Lu <hongjiu.lu@intel.com>
7746
7747 PR target/70155
7748 * config/i386/i386.c (scalar_to_vector_candidate_p): Renamed to ...
7749 (dimode_scalar_to_vector_candidate_p): This.
7750 (timode_scalar_to_vector_candidate_p): New function.
7751 (scalar_to_vector_candidate_p): Likewise.
7752 (timode_check_non_convertible_regs): Likewise.
7753 (timode_remove_non_convertible_regs): Likewise.
7754 (remove_non_convertible_regs): Likewise.
7755 (remove_non_convertible_regs): Renamed to ...
7756 (dimode_remove_non_convertible_regs): This.
7757 (scalar_chain::~scalar_chain): Make it virtual.
7758 (scalar_chain::compute_convert_gain): Make it pure virtual.
7759 (scalar_chain::mark_dual_mode_def): Likewise.
7760 (scalar_chain::convert_insn): Likewise.
7761 (scalar_chain::convert_registers): Likewise.
7762 (scalar_chain::add_to_queue): Make it protected.
7763 (scalar_chain::emit_conversion_insns): Likewise.
7764 (scalar_chain::replace_with_subreg): Likewise.
7765 (scalar_chain::replace_with_subreg_in_insn): Likewise.
7766 (scalar_chain::convert_op): Likewise.
7767 (scalar_chain::convert_reg): Likewise.
7768 (scalar_chain::make_vector_copies): Likewise.
7769 (scalar_chain::convert_registers): New pure virtual function.
7770 (class dimode_scalar_chain): New class.
7771 (class timode_scalar_chain): Likewise.
7772 (scalar_chain::mark_dual_mode_def): Renamed to ...
7773 (dimode_scalar_chain::mark_dual_mode_def): This.
7774 (timode_scalar_chain::mark_dual_mode_def): New function.
7775 (timode_scalar_chain::convert_insn): Likewise.
7776 (dimode_scalar_chain::convert_registers): Likewise.
7777 (scalar_chain::compute_convert_gain): Renamed to ...
7778 (dimode_scalar_chain::compute_convert_gain): This.
7779 (scalar_chain::replace_with_subreg): Renamed to ...
7780 (dimode_scalar_chain::replace_with_subreg): This.
7781 (scalar_chain::replace_with_subreg_in_insn): Renamed to ...
7782 (dimode_scalar_chain::replace_with_subreg_in_insn): This.
7783 (scalar_chain::make_vector_copies): Renamed to ...
7784 (dimode_scalar_chain::make_vector_copies): This.
7785 (scalar_chain::convert_reg): Renamed to ...
7786 (dimode_scalar_chain::convert_reg ): This.
7787 (scalar_chain::convert_op): Renamed to ...
7788 (dimode_scalar_chain::convert_op): This.
7789 (scalar_chain::convert_insn): Renamed to ...
7790 (dimode_scalar_chain::convert_insn): This.
7791 (scalar_chain::convert): Call convert_registers.
7792 (convert_scalars_to_vector): Change to scalar_chain pointer to
7793 use timode_scalar_chain in 64-bit mode and dimode_scalar_chain
7794 in 32-bit mode. Delete scalar_chain pointer. Call
7795 free_dominance_info in 64-bit mode.
7796 (pass_stv::gate): Remove TARGET_64BIT check.
7797 (ix86_option_override): Put the 64-bit STV pass before the CSE
7798 pass.
7799
7800 2016-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
7801
7802 * dwarf2out.h (struct dw_loc_descr_node): Remove the
7803 dw_loc_frame_offset field.
7804 * dwarf2out.c (new_loc_descr): Likewise.
7805 (resolve_args_picking_1): Turn the VISITED hash set into a
7806 FRAME_OFFSET hash map. Use it to associate a frame offset to
7807 visited nodes. Remove uses of the CHECKING_P macro.
7808 (resolve_args_picking): Update call to resolve_args_picking_1.
7809
7810 2016-04-27 Martin Liska <mliska@suse.cz>
7811
7812 * tree-ssa-loop-ivopts.c (iv_ca_dump): Fix level of indentation.
7813 (free_loop_data): Release vuses of groups.
7814
7815 2016-04-27 Bin Cheng <bin.cheng@arm.com>
7816
7817 * tree-ssa-loop-ivopts.c (struct iv): Use pointer to struct iv_use
7818 instead of redundant use_id and boolean have_use_for.
7819 (struct iv_use): Change sub_id into group_id. Remove field next.
7820 Move fields: related_cands, n_map_members, cost_map and selected
7821 to ...
7822 (struct iv_group): ... here. New structure.
7823 (struct iv_common_cand): Use structure declaration directly.
7824 (struct ivopts_data, iv_ca, iv_ca_delta): Rename fields.
7825 (MAX_CONSIDERED_USES): Rename macro to ...
7826 (MAX_CONSIDERED_GROUPS): ... here.
7827 (n_iv_uses, iv_use, n_iv_cands, iv_cand): Delete.
7828 (dump_iv, dump_use, dump_cand): Refactor format of dump information.
7829 (dump_uses): Rename to ...
7830 (dump_groups): ... here. Update all uses.
7831 (tree_ssa_iv_optimize_init, alloc_iv): Update all uses.
7832 (find_induction_variables): Refactor format of dump information.
7833 (record_sub_use): Delete.
7834 (record_use): Update all uses.
7835 (record_group): New function.
7836 (record_group_use, find_interesting_uses_op): Call above functions.
7837 Update all uses.
7838 (find_interesting_uses_cond): Ditto.
7839 (group_compare_offset): New function.
7840 (split_all_small_groups): Rename to ...
7841 (split_small_address_groups_p): ... here. Update all uses.
7842 (split_address_groups): Update all uses.
7843 (find_interesting_uses): Refactor format of dump information.
7844 (add_candidate_1): Update all uses. Remove redundant check on iv,
7845 base and step.
7846 (add_candidate, record_common_cand): Remove redundant assert.
7847 (add_iv_candidate_for_biv): Update use.
7848 (add_iv_candidate_derived_from_uses): Update all uses.
7849 (add_iv_candidate_for_groups, record_important_candidates): Ditto.
7850 (alloc_use_cost_map): Ditto.
7851 (set_use_iv_cost, get_use_iv_cost): Rename to ...
7852 (set_group_iv_cost, get_group_iv_cost): ... here. Update all uses.
7853 (determine_use_iv_cost_generic): Ditto.
7854 (determine_group_iv_cost_generic): Ditto.
7855 (determine_use_iv_cost_address): Ditto.
7856 (determine_group_iv_cost_address): Ditto.
7857 (determine_use_iv_cost_condition): Ditto.
7858 (determine_group_iv_cost_cond): Ditto.
7859 (determine_use_iv_cost): Ditto.
7860 (determine_group_iv_cost): Ditto.
7861 (set_autoinc_for_original_candidates): Update all uses.
7862 (find_iv_candidates): Update all uses. Refactor dump information.
7863 (determine_use_iv_costs): Ditto.
7864 (determine_iv_costs): Ditto.
7865 (iv_ca_cand_for_use): Rename to ...
7866 (iv_ca_cand_for_group): ... here. Update all uses.
7867 (iv_ca_add_use, iv_ca_add_group): Ditto.
7868 (iv_ca_set_cp, iv_ca_cost, iv_ca_delta_add): Update all uses.
7869 (iv_ca_delta_join, iv_ca_delta_reverse, iv_ca_delta_free): Ditto.
7870 (iv_ca_new, iv_ca_dump, iv_ca_extend, iv_ca_narrow): Ditto.
7871 (iv_ca_prune, cheaper_cost_with_cand, iv_ca_replace): Ditto.
7872 (try_add_cand_for, try_improve_iv_set, find_optimal_iv_set): Ditto.
7873 (create_new_iv, adjust_iv_update_pos): Ditto.
7874 (rewrite_use_address): Delete.
7875 (rewrite_use_address_1): Rename to ...
7876 (rewrite_use_address): ... here.
7877 (rewrite_use_compare): Update all uses.
7878 (rewrite_use): Delete.
7879 (rewrite_uses): Rename to ...
7880 (rewrite_groups): ... here. Update all uses.
7881 (remove_unused_ivs, free_loop_data): Update all uses.
7882 (tree_ssa_iv_optimize_finalize, tree_ssa_iv_optimize_loop): Ditto.
7883
7884 2016-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7885
7886 * rtlanal.c (nonzero_bits1): Convert preprocessor check
7887 for WORD_REGISTER_OPERATIONS to runtime check.
7888
7889 2016-04-27 Richard Biener <rguenther@suse.de>
7890
7891 PR ipa/70760
7892 * tree-ssa-structalias.c (find_func_aliases_for_call): Use
7893 aggregate_value_p to determine if a function result is
7894 returned by reference.
7895 (ipa_pta_execute): Functions having their address taken are
7896 not automatically nonlocal.
7897
7898 2016-04-27 Jakub Jelinek <jakub@redhat.com>
7899
7900 PR sanitizer/70683
7901 * tree-core.h (enum operand_equal_flag): Add OEP_NO_HASH_CHECK.
7902 * fold-const.c (operand_equal_p): If flag_checking and
7903 OEP_NO_HASH_CHECK is not set in flag, recurse with OEP_NO_HASH_CHECK
7904 and if it returns non-zero, assert iterative_hash_expr on both
7905 args is the same.
7906
7907 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
7908
7909 * doc/invoke.texi (-frename-registers): Also enabled at -Os.
7910
7911 2016-04-27 Nick Clifton <nickc@redhat.com>
7912
7913 PR middle-end/49889
7914 * varasm.c (merge_weak): Generate an error if an attempt is made
7915 to convert a non-weak static function into a weak, public function.
7916
7917 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7918
7919 * params.def (MAX_PARTITION_SIZE): New param.
7920 * doc/invoke.texi: Document lto-max-partition.
7921
7922 2016-04-27 Richard Biener <rguenther@suse.de>
7923
7924 PR ipa/70785
7925 * tree-ssa-structalias.c (refered_from_nonlocal_fn): New
7926 function cummulating used_from_other_partition, externally_visible
7927 and force_output from aliases.
7928 (refered_from_nonlocal_var): Likewise.
7929 (ipa_pta_execute): Use call_for_symbol_and_aliases to cummulate
7930 node flags properly.
7931
7932 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
7933
7934 * doc/invoke.texi (Warning Options): Add -Wmemset-elt-size.
7935 (-Wmemset-elt-size): New item.
7936
7937 2016-04-27 Eric Botcazou <ebotcazou@adacore.com>
7938
7939 PR ada/70759
7940 * stor-layout.h (internal_reference_types): Delete.
7941 * stor-layout.c (reference_types_internal): Likewise.
7942 (internal_reference_types): Likewise.
7943 (layout_type) <REFERENCE_TYPE>: Adjust.
7944
7945 2016-04-27 Jakub Jelinek <jakub@redhat.com>
7946
7947 PR sanitizer/70683
7948 * tree.h (inchash::add_expr): Add FLAGS argument.
7949 * tree.c (inchash::add_expr): Likewise. If not OEP_ADDRESS_OF,
7950 use STRIP_NOPS first. For INTEGER_CST assert not OEP_ADDRESS_OF.
7951 For REAL_CST and !HONOR_SIGNED_ZEROS (t) hash +/- 0 the same.
7952 Formatting fix. Adjust recursive calls. For tcc_comparison,
7953 if swap_tree_comparison (code) is smaller than code, hash that
7954 and arguments in the other order. Hash CONVERT_EXPR the same
7955 as NOP_EXPR. For OEP_ADDRESS_OF hash MEM_REF with 0 offset
7956 of ADDR_EXPR of decl as the decl itself. Add or remove
7957 OEP_ADDRESS_OF from recursive flags as needed. For
7958 FMA_EXPR, WIDEN_MULT_{PLUS,MINUS}_EXPR hash the first two
7959 operands commutatively and only the third one normally.
7960 For internal CALL_EXPR hash in CALL_EXPR_IFN.
7961
7962 2016-04-27 Sebastian Huber <sebastian.huber@embedded-brains.de>
7963
7964 * config/rtems.h (LIB_SPEC): Add -latomic.
7965
7966 2016-04-27 Joel Sherrill <joel@rtems.org>
7967
7968 * config/microblaze/rtems.h: Redefine LINK_SPEC to avoid
7969 xilink.ld and flags not relevant to RTEMS.
7970
7971 2016-04-26 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
7972
7973 * toplev.c (backend_init_target): Avoid calling init_reload when using
7974 LRA.
7975
7976 2016-04-26 Jakub Jelinek <jakub@redhat.com>
7977
7978 * reorg.c (try_merge_delay_insns): Declare i and j inside the
7979 for loops rather than one for the whole function.
7980
7981 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
7982
7983 * match.pd (X + CST CMP X): New transformation.
7984
7985 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
7986
7987 * genmatch.c (write_predicate): Add ATTRIBUTE_UNUSED.
7988 * fold-const.c (fold_binary_loc): Remove 2 transformations
7989 superseded by match.pd.
7990 * match.pd (x+x -> x*2): Generalize to integers.
7991
7992 2016-04-26 Bernd Schmidt <bschmidt@redhat.com>
7993
7994 * config/i386/i386.md (operation on memory peephole): Duplicate an
7995 existing peephole and adapt it to match lea rather than an operation
7996 that clobbers CC.
7997
7998 PR rtl-optimization/57193
7999 * opts.c (default_options_table): Add OPT_frename_registers at -O2
8000 and above.
8001 * doc/invoke.texi (-frename-registers, -O2): Update documentation.
8002
8003 2016-04-26 Bin Cheng <bin.cheng@arm.com>
8004
8005 * tree-if-conv.c (any_pred_load_store): New static variable.
8006 (if_convertible_gimple_assign_stmt_p): Remove parameter. Use
8007 any_pred_load_store instead of and_mask_load_store.
8008 (if_convertible_stmt_p, if_convertible_loop_p_1): Ditto.
8009 (if_convertible_loop_p, insert_gimplified_predicates): Ditto.
8010 (combine_blocks, tree_if_conversion): Ditto.
8011
8012 2016-04-26 Bin Cheng <bin.cheng@arm.com>
8013
8014 PR tree-optimization/70771
8015 PR tree-optimization/70775
8016 * tree-if-conv.c (if_convertible_phi_p): Remove check on special
8017 virtual PHI nodes. Delete parameter.
8018 (if_convertible_loop_p_1): Delete argument to above function.
8019 (predicate_all_scalar_phis): Delete code handling single-argument
8020 PHIs.
8021 (tree_if_conversion): Mark and update virtual SSA.
8022
8023 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8024
8025 PR target/61821
8026 * config/i386/i386.c (LARGECOMM_SECTION_ASM_OP): Define default.
8027 (x86_elf_aligned_common): Rename to ...
8028 (x86_elf_aligned_decl_common): ... this.
8029 Add decl arg. Switch to .lbss for largecomm object. Use
8030 LARGECOMM_SECTION_ASM_OP.
8031 * config/i386/i386-protos.h (x86_elf_aligned_common): Reflect
8032 renaming.
8033 * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_COMMON): Rename to ...
8034 (ASM_OUTPUT_ALIGNED_DECL_COMMON): ... this.
8035 Pass new decl arg.
8036 * config/i386/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
8037 [!USE_GAS] (LARGECOMM_SECTION_ASM_OP): Define.
8038
8039 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8040
8041 PR target/59407
8042 * config/i386/i386.c (SECTION_LARGE): Define.
8043 (x86_64_elf_select_section): Set it for large data/bss sections.
8044 Only clear SECTION_WRITE for .lrodata.
8045 (x86_64_elf_section_type_flags): Set SECTION_LARGE for large
8046 data/bss sections.
8047 * config/i386/sol2.h (MACH_DEP_SECTION_ASM_FLAG): Define.
8048 * varasm.c (default_elf_asm_named_section): Grow flagchars.
8049 [MACH_DEP_SECTION_ASM_FLAG] Emit MACH_DEP_SECTION_ASM_FLAG for
8050 SECTION_MACH_DEP.
8051 * doc/tm.texi.in (Sections, MACH_DEP_SECTION_ASM_FLAG): Describe.
8052 * doc/tm.texi: Regenerate.
8053
8054 2016-04-26 Jakub Jelinek <jakub@redhat.com>
8055
8056 PR bootstrap/70704
8057 * configure.ac (--enable-checking): Document extra flag, for
8058 non-release builds default to --enable-checking=yes,extra.
8059 If misc checking and extra checking, define CHECKING_P to 2 instead
8060 of 1.
8061 * common.opt (fchecking=): Add.
8062 * doc/invoke.texi (-fchecking=): Document.
8063 * doc/install.texi: Document --enable-checking changes.
8064 * configure: Regenerated.
8065 * config.in: Regenerated.
8066
8067 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
8068
8069 * config/i386/i386.md (*movxi_internal_avx512f): Use insn type
8070 attribute instead of which_alternative.
8071 * config/i386/sse.md (*mov<mode>_internal): Ditto.
8072 Use EXT_REX_SSE_REG_P where appropriate.
8073
8074 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
8075
8076 * config/i386/predicates.md (const0_operand): Do not match
8077 const_wide_int code.
8078 (const1_operand): Ditto.
8079
8080 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
8081
8082 * config/i386/i386.md (*movoi_internal_avx): Set mode attribute to XI
8083 for SSE constm1 operands and TARGET_AVX512VL.
8084 (*movti_internal): Ditto.
8085 (*mov<mode>_or): Use constm1_operand predicate.
8086 * config/i386/sse.md (*mov<mode>_internal): Set mode attribute to XI
8087 for SSE vector_all_ones operands and TARGET_AVX512VL.
8088 * config/i386/predicates.md (constm1_operand): New predicate.
8089 * config/i386/i386.c (standard_sse_constant_opcode): Simplify
8090 emission of constant -1 load.
8091
8092 2016-04-25 Jason Merrill <jason@redhat.com>
8093
8094 * gdbinit.in: Skip is-a.h.
8095
8096 * attribs.c (register_scoped_attributes): Fix logic.
8097 * attribs.h: Declare register_scoped_attributes.
8098
8099 2016-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8100
8101 * config/rs6000/rs6000-builtin.def: Correct pasto error for
8102 stxvd2x and stxvw4x built-in functions.
8103
8104 2016-04-25 DJ Delorie <dj@redhat.com>
8105
8106 * config/msp430/msp430.md (ashlhi3): Optimize one bit shifts.
8107 (ashrhi3): Likewise.
8108 (lshrhi3): Likewise.
8109
8110 2016-04-25 Richard Biener <rguenther@suse.de>
8111
8112 PR tree-optimization/70780
8113 * tree-ssa-pre.c (compute_antic_aux): Also return true if the block
8114 wasn't visited yet.
8115 (compute_antic): Mark blocks with abnormal preds as visited as
8116 they have a final empty antic-in solution already.
8117
8118 2016-04-25 Michael Collison <michael.collison@linaro.org>
8119
8120 * ChangeLog(2016-04-25): Fix ChangeLog formatting.
8121
8122 2016-04-25 Michael Collison <michael.collison@linaro.org>
8123
8124 * config/arm/neon.md (widen_<us>sum<mode>): New patterns where
8125 mode is VQI to improve mixed mode vectorization.
8126 * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3): New
8127 define_insn to match low half of signed vaddw.
8128 * config/arm/neon.md (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): New
8129 define_insn to match high half of signed vaddw.
8130 * config/arm/neon.md (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): New
8131 define_insn to match low half of unsigned vaddw.
8132 * config/arm/neon.md (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): New
8133 define_insn to match high half of unsigned vaddw.
8134 * config/arm/arm.c (arm_simd_vect_par_cnst_half): New function.
8135 (arm_simd_check_vect_par_cnst_half_p): Likewise.
8136 * config/arm/arm-protos.h (arm_simd_vect_par_cnst_half): Prototype
8137 for new function.
8138 (arm_simd_check_vect_par_cnst_half_p): Likewise.
8139 * config/arm/predicates.md (vect_par_constant_high): Support
8140 big endian and simplify by calling
8141 arm_simd_check_vect_par_cnst_half
8142 (vect_par_constant_low): Likewise.
8143
8144 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
8145
8146 * config/i386/i386.md (*lea<mode>_general_4): Use const_0_to_3_operand
8147 predicate for operand 2.
8148
8149 2016-04-24 Uros Bizjak <ubizjak@gmail.com>
8150 H.J. Lu <hongjiu.lu@intel.com>
8151
8152 * config/i386/i386-protos.h (standard_sse_constant_p): Add
8153 machine_mode argument.
8154 * config/i386/i386.c (standard_sse_constant_p): Return 2 for
8155 constm1_rtx operands. For VOIDmode constants, get mode from
8156 pred_mode. Check mode size if the mode is supported by ABI.
8157 (standard_sse_constant_opcode): Do not use standard_constant_p.
8158 Strictly check ABI support for all-ones operands.
8159 (ix86_legitimate_constant_p): Handle TImode, OImode and XImode
8160 immediates. Update calls to standard_sse_constant_p.
8161 (ix86_expand_vector_move): Update calls to standard_sse_constant_p.
8162 (ix86_rtx_costs): Ditto.
8163 * config/i386/i386.md (*movxi_internal_avx512f): Use
8164 nonimmediate_or_sse_const_operand instead of vector_move_operand.
8165 Use (v,BC) alternative instead of (v,C). Use register_operand
8166 checks instead of MEM_P.
8167 (*movoi_internal_avx): Use nonimmediate_or_sse_const_operand instead
8168 of vector_move_operand. Add (v,BC) alternative and corresponding avx2
8169 isa attribute. Use register_operand checks instead of MEM_P.
8170 (*movti_internal): Use nonimmediate_or_sse_const_operand for
8171 TARGET_SSE. Improve TARGET_SSE insn constraint. Add (v,BC)
8172 alternative and corresponding sse2 isa attribute.
8173 (*movtf_internal, *movdf_internal, *movsf_interal): Update calls
8174 to standard_sse_constant_p.
8175 (FP constant splitters): Ditto.
8176 * config/i386/constraints.md (BC): Do not use standard_sse_constant_p.
8177 (C): Ditto.
8178 * config/i386/predicates.md (constm1_operand): Remove.
8179 (nonimmediate_or_sse_const_operand): Rewrite using RTX.
8180 * config/i386/sse.md (*<avx512>_cvtmask2<ssemodesuffix><mode>): Use
8181 vector_all_ones_operand instead of constm1_operand.
8182
8183 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8184
8185 * print-rtl.c (print_rtx_insn_vec): New function.
8186 * print-rtl.h: New prototype.
8187 * store-motion.c (struct st_expr): Make avail_stores a vector.
8188 (st_expr_entry): Adjust.
8189 (free_st_expr_entry): Likewise.
8190 (print_store_motion_mems): Likewise.
8191 (find_moveable_store): Likewise.
8192 (compute_store_table): Likewise.
8193 (delete_store): Likewise.
8194 (build_store_vectors): Likewise.
8195
8196 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8197
8198 * reorg.c (try_merge_delay_insns): Make merged_insns a vector.
8199
8200 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8201
8202 * vec.h (vec_safe_contains): New function.
8203 (vec::contains): Likewise.
8204 (vec::begin): Likewise.
8205 (vec::end): Likewise.
8206
8207 2016-04-23 Jakub Jelinek <jakub@redhat.com>
8208
8209 PR sanitizer/70712
8210 * cfgexpand.c (expand_stack_vars): Fix typo.
8211
8212 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
8213
8214 * system.h (list, map, set, vector): Include conditionally.
8215 * auto-profile.c (INCLUDE_MAP, INCLUDE_SET): Define.
8216 * graphite-isl-ast-to-gimple.c (INCLUDE_MAP): Define.
8217 * ipa-icf.c (INCLUDE_LIST): Define.
8218 * config/aarch64/cortex-a57-fma-steering.c (INCLUDE_LIST): Define.
8219 * config/sh/sh.c (INCLUDE_VECTOR): Define.
8220 * config/sh/sh_treg_combine.cc (INCLUDE_ALGORITHM): Define.
8221 (INCLUDE_LIST, INCLUDE_VECTOR): Define.
8222 * cp/logic.cc (INCLUDE_LIST): Define.
8223 * fortran/trans-common.c (INCLUDE_MAP): Define.
8224
8225 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
8226
8227 * auto-profile.c: Remove <string.h> include.
8228 * ipa-icf-gimple.c: Remove <list> include.
8229 * diagnostic.c: Remove <new> include.
8230 * genmatch.c: Likewise.
8231 * pretty-print.c: Likewise.
8232 * toplev.c: Likewise
8233 * c/c-objc-common.c: Likewise.
8234 * cp/error.c: Likewise.
8235 * fortran/error.c: Likewise.
8236
8237 2016-04-22 Richard Biener <rguenther@suse.de>
8238
8239 * lto-streamer-in.c (input_ssa_names): Do not allocate
8240 GIMPLE_NOP for all SSA names.
8241 * lto-streamer-out.c (output_ssa_names): Do not output
8242 SSA names that should have been released.
8243
8244 2016-04-22 Richard Biener <rguenther@suse.de>
8245
8246 PR tree-optimization/70740
8247 * tree-ssa-phiprop.c (propagate_with_phi): Handle inserted
8248 VDEF.
8249
8250 2016-04-21 H.J. Lu <hongjiu.lu@intel.com>
8251
8252 PR target/70750
8253 * config/i386/predicates.md (call_insn_operand): Replace
8254 sibcall_memory_operand with memory_operand.
8255
8256 2016-04-21 Patrick Palka <ppalka@gcc.gnu.org>
8257
8258 * tree-vrp.c (register_edge_assert_for_2): Remove redundant
8259 has_single_use() tests.
8260 (register_edge_assert_for_1): Likewise.
8261 (find_assert_locations_1): Check the liveness bitmap instead of
8262 checking has_single_use().
8263
8264 2016-04-21 Kirill Yukhin <kirill.yukhin@intel.com>
8265
8266 PR target/70728
8267 * config/i386/sse.md (define_insn "<shift_insn><mode>3<mask_name>"):
8268 Extract AVX-512BW constraint from AVX.
8269
8270 2016-04-21 Richard Biener <rguenther@suse.de>
8271
8272 PR tree-optimization/70725
8273 * tree-if-conv.c (if_convertible_phi_p): Adjust guard
8274 for phi_convertible_by_degenerating_args.
8275 (predicate_all_scalar_phis): Handle single-argument PHIs.
8276
8277 2016-04-21 Richard Biener <rguenther@suse.de>
8278
8279 PR middle-end/70747
8280 * fold-const.c (fold_comparison): Return properly typed
8281 constant boolean.
8282
8283 2016-04-21 Bin Cheng <bin.cheng@arm.com>
8284
8285 PR tree-optimization/70715
8286 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
8287 after expanding BASE using expand_simple_operations.
8288
8289 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
8290
8291 * match.pd (min(-x, -y), max(-x, -y), min(~x, ~y), max(~x, ~y)):
8292 New transformations.
8293
8294 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
8295
8296 * match.pd (min(int_max, x), max(int_min, x)): New transformations.
8297
8298 2016-04-20 Jan Hubicka <jh@suse.cz>
8299
8300 * ipa-inline.c (can_inline_edge_p): Pass caller info to
8301 ultiimate_alias_target.
8302 (update_callee_keys): Likewise.
8303 (lookup_recursive_calls): Likewise.
8304 (speculation_useful_p): Likewise.
8305
8306 2016-04-20 Jan Hubicka <jh@suse.cz>
8307
8308 PR ipa/70018
8309 * cgraph.c (cgraph_set_nothrow_flag_1): Rename to ...
8310 (set_nothrow_flag_1): ... this; handle interposition correctly;
8311 recurse on aliases and thunks.
8312 (cgraph_node::set_nothrow_flag): New.
8313 * ipa-pure-const.c (ignore_edge_for_nothrow): Ignore calls to
8314 functions compiled with non-call exceptions that binds to current
8315 def.
8316 (propagate_nothrow): Be safe WRT interposition.
8317 * cgraph.h (set_nothrow_flag): Update prototype.
8318
8319 2016-04-18 Jan Hubicka <jh@suse.cz>
8320
8321 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
8322 max_loop_iterations_int.
8323 (tree_unswitch_outer_loop): Likewise.
8324
8325 2016-04-20 Bin Cheng <bin.cheng@arm.com>
8326
8327 PR tree-optimization/69489
8328 * tree-if-conv.c (phi_convertible_by_degenerating_args): New.
8329 (if_convertible_phi_p): Call phi_convertible_by_degenerating_args.
8330 Revise dump message.
8331 (if_convertible_bb_p): Remove check on edge count of basic block's
8332 predecessors.
8333
8334 2016-04-20 Bin Cheng <bin.cheng@arm.com>
8335
8336 PR tree-optimization/56625
8337 PR tree-optimization/69489
8338 * tree-data-ref.h (DR_INNERMOST): New macro.
8339 * tree-if-conv.c (innermost_loop_behavior_hash): New class for
8340 hashing struct innermost_loop_behavior.
8341 (ref_DR_map): Remove.
8342 (innermost_DR_map): New map.
8343 (baseref_DR_map): Revise comment.
8344 (hash_memrefs_baserefs_and_store_DRs_read_written_info): Store DR
8345 to innermost_DR_map accroding to its innermost loop behavior.
8346 (ifcvt_memrefs_wont_trap): Get DR from innermost_DR_map according
8347 to its innermost loop behavior.
8348 (if_convertible_loop_p_1): Remove intialization for ref_DR_map.
8349 Add initialization for innermost_DR_map. Record memory reference
8350 in DR_BASE_ADDRESS if the reference is compound one or it doesn't
8351 have innermost loop behavior.
8352 (if_convertible_loop_p): Remove release for ref_DR_map. Release
8353 innermost_DR_map.
8354
8355 2016-04-20 Uros Bizjak <ubizjak@gmail.com>
8356
8357 * config/i386/i386.md (*lea<mode>_general_1): Rename from
8358 *lea_general_1. Use explicit SWI12 mode interator.
8359 (*lea<mode>_general_2): Rename from *lea_general_2.
8360 Use explicit SWI12 mode interator.
8361 (*lea<mode>_general_3): Rename from *lea_general_3.
8362 Use explicit SWI12 mode interator.
8363 (*lea<SWI12:mode>_general_4): Split from *lea_general_4.
8364 Use explicit SWI12 mode interator.
8365 (*lea<SWI48:mode>_general_4): Split from *lea_general_4.
8366 Use explicit SWI48 mode interator.
8367
8368 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
8369
8370 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
8371 Short-cut unaligned load and store cases. Handle all integer
8372 vector modes.
8373 (ix86_expand_vector_move_misalign): Short-cut unaligned load
8374 and store cases. Call ix86_avx256_split_vector_move_misalign
8375 directly without checking mode class.
8376
8377 2016-04-20 Andrew Pinski <apinski@cavium.com>
8378 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8379
8380 PR target/64971
8381 * config/aarch64/aarch64.md (sibcall): Force call
8382 address to be DImode for ILP32.
8383 (sibcall_value): Likewise.
8384
8385 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
8386
8387 * doc/invoke.texi: Replace -skip-rax-setup with -mskip-rax-setup.
8388
8389 2016-04-20 Richard Biener <rguenther@suse.de>
8390
8391 * gimple-match.h (maybe_build_generic_op): Adjust prototype.
8392 * gimple-match-head.c (maybe_build_generic_op): Pass all ops
8393 by reference, clear op1 and op2 when GENERICizing BIT_FIELD_REF.
8394 (maybe_push_res_to_seq): Adjust.
8395 * gimple-fold.c (maybe_build_generic_op): Likewise.
8396
8397 2016-04-20 Marek Polacek <polacek@redhat.com>
8398
8399 * tree-if-conv.c (is_false_predicate): For NULL_TREE return false
8400 rather than true.
8401
8402 2016-04-20 Ilya Enkovich <ilya.enkovich@intel.com>
8403
8404 * config/i386/sse.md (vec_unpacks_lo_hi): Always
8405 use kmovw to support AVX512F target.
8406
8407 2016-04-20 Bin Cheng <bin.cheng@arm.com>
8408
8409 * tree-scalar-evolution.c (interpret_rhs_expr): Handle BIT_AND_EXPR.
8410
8411 2016-04-20 Marek Polacek <polacek@redhat.com>
8412
8413 PR tree-optimization/70725
8414 * tree-if-conv.c (is_false_predicate): New function.
8415 (predicate_mem_writes): Use it.
8416
8417 2016-04-20 Richard Biener <rguenther@suse.de>
8418
8419 PR tree-optimization/70726
8420 * tree-vect-stmts.c (vectorizable_shift): Do not use scalar
8421 shift amounts from a pattern stmt operand.
8422
8423 2016-04-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8424
8425 PR target/70674
8426 * config/s390/s390.c (s390_restore_gprs_from_fprs): Pick the new
8427 stack_restore_from_fpr pattern when restoring r15.
8428 (s390_optimize_prologue): Strip away the memory barrier in the
8429 parallel when trying to get rid of restore insns.
8430 * config/s390/s390.md ("stack_restore_from_fpr"): New insn
8431 definition for loading the stack pointer from an FPR. Compared to
8432 the normal move insn this pattern includes a full memory barrier.
8433
8434 2016-04-19 Jakub Jelinek <jakub@redhat.com>
8435
8436 PR middle-end/70680
8437 * gimplify.c (gimplify_omp_for): Call omp_notice_variable for
8438 implicitly linear or lastprivate iterator on the outer context.
8439
8440 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
8441
8442 * config/i386/i386.c (ix86_legitimate_combined_insn): Remove
8443 alignment check.
8444 * config/i386/i386.md (ssememalign): Removed.
8445 * config/i386/sse.md: Remove ssememalign attribute from patterns.
8446
8447 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
8448
8449 PR target/69201
8450 * config/i386/avx512bwintrin.h (_mm512_mask_loadu_epi16): Pass
8451 const short * to __builtin_ia32_loaddquhi512_mask.
8452 (_mm512_maskz_loadu_epi16): Likewise.
8453 (_mm512_mask_storeu_epi16): Pass short * to
8454 __builtin_ia32_storedquhi512_mask.
8455 (_mm512_mask_loadu_epi8): Pass const char * to
8456 __builtin_ia32_loaddquqi512_mask.
8457 (_mm512_maskz_loadu_epi8): Likewise.
8458 (_mm512_mask_storeu_epi8): Pass char * to
8459 __builtin_ia32_storedquqi512_mask.
8460 * config/i386/avx512fintrin.h (_mm512_loadu_pd): Pass
8461 const double * to __builtin_ia32_loadupd512_mask.
8462 (_mm512_mask_loadu_pd): Likewise.
8463 (_mm512_maskz_loadu_pd): Likewise.
8464 (_mm512_storeu_pd): Pass double * to
8465 __builtin_ia32_storeupd512_mask.
8466 (_mm512_mask_storeu_pd): Likewise.
8467 (_mm512_loadu_ps): Pass const float * to
8468 __builtin_ia32_loadups512_mask.
8469 (_mm512_mask_loadu_ps): Likewise.
8470 (_mm512_maskz_loadu_ps): Likewise.
8471 (_mm512_storeu_ps): Pass float * to
8472 __builtin_ia32_storeups512_mask.
8473 (_mm512_mask_storeu_ps): Likewise.
8474 (_mm512_mask_loadu_epi64): Pass const long long * to
8475 __builtin_ia32_loaddqudi512_mask.
8476 (_mm512_maskz_loadu_epi64): Likewise.
8477 (_mm512_mask_storeu_epi64): Pass long long *
8478 to __builtin_ia32_storedqudi512_mask.
8479 (_mm512_loadu_si512): Pass const int * to
8480 __builtin_ia32_loaddqusi512_mask.
8481 (_mm512_mask_loadu_epi32): Likewise.
8482 (_mm512_maskz_loadu_epi32): Likewise.
8483 (_mm512_storeu_si512): Pass int * to
8484 __builtin_ia32_storedqusi512_mask.
8485 (_mm512_mask_storeu_epi32): Likewise.
8486 * config/i386/avx512vlbwintrin.h (_mm256_mask_storeu_epi8): Pass
8487 char * to __builtin_ia32_storedquqi256_mask.
8488 (_mm_mask_storeu_epi8): Likewise.
8489 (_mm256_mask_loadu_epi16): Pass const short * to
8490 __builtin_ia32_loaddquhi256_mask.
8491 (_mm256_maskz_loadu_epi16): Likewise.
8492 (_mm_mask_loadu_epi16): Pass const short * to
8493 __builtin_ia32_loaddquhi128_mask.
8494 (_mm_maskz_loadu_epi16): Likewise.
8495 (_mm256_mask_loadu_epi8): Pass const char * to
8496 __builtin_ia32_loaddquqi256_mask.
8497 (_mm256_maskz_loadu_epi8): Likewise.
8498 (_mm_mask_loadu_epi8): Pass const char * to
8499 __builtin_ia32_loaddquqi128_mask.
8500 (_mm_maskz_loadu_epi8): Likewise.
8501 (_mm256_mask_storeu_epi16): Pass short * to.
8502 __builtin_ia32_storedquhi256_mask.
8503 (_mm_mask_storeu_epi16): Pass short * to.
8504 __builtin_ia32_storedquhi128_mask.
8505 * config/i386/avx512vlintrin.h (_mm256_mask_loadu_pd): Pass
8506 const double * to __builtin_ia32_loadupd256_mask.
8507 (_mm256_maskz_loadu_pd): Likewise.
8508 (_mm_mask_loadu_pd): Pass onst double * to
8509 __builtin_ia32_loadupd128_mask.
8510 (_mm_maskz_loadu_pd): Likewise.
8511 (_mm256_mask_storeu_pd): Pass double * to
8512 __builtin_ia32_storeupd256_mask.
8513 (_mm_mask_storeu_pd): Pass double * to
8514 __builtin_ia32_storeupd128_mask.
8515 (_mm256_mask_loadu_ps): Pass const float * to
8516 __builtin_ia32_loadups256_mask.
8517 (_mm256_maskz_loadu_ps): Likewise.
8518 (_mm_mask_loadu_ps): Pass const float * to
8519 __builtin_ia32_loadups128_mask.
8520 (_mm_maskz_loadu_ps): Likewise.
8521 (_mm256_mask_storeu_ps): Pass float * to
8522 __builtin_ia32_storeups256_mask.
8523 (_mm_mask_storeu_ps): ass float * to
8524 __builtin_ia32_storeups128_mask.
8525 (_mm256_mask_loadu_epi64): Pass const long long * to
8526 __builtin_ia32_loaddqudi256_mask.
8527 (_mm256_maskz_loadu_epi64): Likewise.
8528 (_mm_mask_loadu_epi64): Pass const long long * to
8529 __builtin_ia32_loaddqudi128_mask.
8530 (_mm_maskz_loadu_epi64): Likewise.
8531 (_mm256_mask_storeu_epi64): Pass long long * to
8532 __builtin_ia32_storedqudi256_mask.
8533 (_mm_mask_storeu_epi64): Pass long long * to
8534 __builtin_ia32_storedqudi128_mask.
8535 (_mm256_mask_loadu_epi32): Pass const int * to
8536 __builtin_ia32_loaddqusi256_mask.
8537 (_mm256_maskz_loadu_epi32): Likewise.
8538 (_mm_mask_loadu_epi32): Pass const int * to
8539 __builtin_ia32_loaddqusi128_mask.
8540 (_mm_maskz_loadu_epi32): Likewise.
8541 (_mm256_mask_storeu_epi32): Pass int * to
8542 __builtin_ia32_storedqusi256_mask.
8543 (_mm_mask_storeu_epi32): Pass int * to
8544 __builtin_ia32_storedqusi128_mask.
8545 * config/i386/i386-builtin-types.def (PCSHORT): New.
8546 (PINT64): Likewise.
8547 (V64QI_FTYPE_PCCHAR_V64QI_UDI): Likewise.
8548 (V32HI_FTYPE_PCSHORT_V32HI_USI): Likewise.
8549 (V32QI_FTYPE_PCCHAR_V32QI_USI): Likewise.
8550 (V16SF_FTYPE_PCFLOAT_V16SF_UHI): Likewise.
8551 (V8DF_FTYPE_PCDOUBLE_V8DF_UQI): Likewise.
8552 (V16SI_FTYPE_PCINT_V16SI_UHI): Likewise.
8553 (V16HI_FTYPE_PCSHORT_V16HI_UHI): Likewise.
8554 (V16QI_FTYPE_PCCHAR_V16QI_UHI): Likewise.
8555 (V8SF_FTYPE_PCFLOAT_V8SF_UQI): Likewise.
8556 (V8DI_FTYPE_PCINT64_V8DI_UQI): Likewise.
8557 (V8SI_FTYPE_PCINT_V8SI_UQI): Likewise.
8558 (V8HI_FTYPE_PCSHORT_V8HI_UQI): Likewise.
8559 (V4DF_FTYPE_PCDOUBLE_V4DF_UQI): Likewise.
8560 (V4SF_FTYPE_PCFLOAT_V4SF_UQI): Likewise.
8561 (V4DI_FTYPE_PCINT64_V4DI_UQI): Likewise.
8562 (V4SI_FTYPE_PCINT_V4SI_UQI): Likewise.
8563 (V2DF_FTYPE_PCDOUBLE_V2DF_UQI): Likewise.
8564 (V2DI_FTYPE_PCINT64_V2DI_UQI): Likewise.
8565 (VOID_FTYPE_PDOUBLE_V8DF_UQI): Likewise.
8566 (VOID_FTYPE_PDOUBLE_V4DF_UQI): Likewise.
8567 (VOID_FTYPE_PDOUBLE_V2DF_UQI): Likewise.
8568 (VOID_FTYPE_PFLOAT_V16SF_UHI): Likewise.
8569 (VOID_FTYPE_PFLOAT_V8SF_UQI): Likewise.
8570 (VOID_FTYPE_PFLOAT_V4SF_UQI): Likewise.
8571 (VOID_FTYPE_PINT64_V8DI_UQI): Likewise.
8572 (VOID_FTYPE_PINT64_V4DI_UQI): Likewise.
8573 (VOID_FTYPE_PINT64_V2DI_UQI): Likewise.
8574 (VOID_FTYPE_PINT_V16SI_UHI): Likewise.
8575 (VOID_FTYPE_PINT_V8SI_UHI): Likewise.
8576 (VOID_FTYPE_PINT_V4SI_UHI): Likewise.
8577 (VOID_FTYPE_PSHORT_V32HI_USI): Likewise.
8578 (VOID_FTYPE_PSHORT_V16HI_UHI): Likewise.
8579 (VOID_FTYPE_PSHORT_V8HI_UQI): Likewise.
8580 (VOID_FTYPE_PCHAR_V64QI_UDI): Likewise.
8581 (VOID_FTYPE_PCHAR_V32QI_USI): Likewise.
8582 (VOID_FTYPE_PCHAR_V16QI_UHI): Likewise.
8583 (V64QI_FTYPE_PCV64QI_V64QI_UDI): Removed.
8584 (V32HI_FTYPE_PCV32HI_V32HI_USI): Likewise.
8585 (V32QI_FTYPE_PCV32QI_V32QI_USI): Likewise.
8586 (V16HI_FTYPE_PCV16HI_V16HI_UHI): Likewise.
8587 (V16QI_FTYPE_PCV16QI_V16QI_UHI): Likewise.
8588 (V8HI_FTYPE_PCV8HI_V8HI_UQI): Likewise.
8589 (VOID_FTYPE_PV32HI_V32HI_USI): Likewise.
8590 (VOID_FTYPE_PV16HI_V16HI_UHI): Likewise.
8591 (VOID_FTYPE_PV8HI_V8HI_UQI): Likewise.
8592 (VOID_FTYPE_PV64QI_V64QI_UDI): Likewise.
8593 (VOID_FTYPE_PV32QI_V32QI_USI): Likewise.
8594 (VOID_FTYPE_PV16QI_V16QI_UHI): Likewise.
8595 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Don't
8596 use UNSPEC_STOREU.
8597 (ix86_emit_restore_sse_regs_using_mov): Don't use UNSPEC_LOADU.
8598 (ix86_avx256_split_vector_move_misalign): Don't use unaligned
8599 load nor store.
8600 (ix86_expand_vector_move_misalign): Likewise.
8601 (bdesc_special_args): Use CODE_FOR_movvNXY_internal and pointer
8602 to scalar function prototype for unaligned load/store builtins.
8603 (ix86_expand_special_args_builtin): Updated.
8604 * config/i386/sse.md (UNSPEC_LOADU): Removed.
8605 (UNSPEC_STOREU): Likewise.
8606 (VI_ULOADSTORE_BW_AVX512VL): Likewise.
8607 (VI_ULOADSTORE_F_AVX512VL): Likewise.
8608 (ssescalarsize): Handle V4TI, V2TI and V1TI.
8609 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
8610 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
8611 (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Likewise.
8612 (<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask): Likewise.
8613 (<sse2_avx_avx512f>_loaddqu<mode><mask_name>): Likewise.
8614 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"): Likewise.
8615 (sse2_avx_avx512f>_storedqu<mode>): Likewise.
8616 (<avx512>_storedqu<mode>_mask): Likewise.
8617 (*sse4_2_pcmpestr_unaligned): Likewise.
8618 (*sse4_2_pcmpistr_unaligned): Likewise.
8619 (*mov<mode>_internal): Renamed to ...
8620 (mov<mode>_internal): This. Remove check of AVX and IAMCU on
8621 misaligned operand. Replace vmovdqu64 with vmovdqu<ssescalarsize>.
8622 (movsd/movhpd to movupd peephole): Don't use UNSPEC_LOADU.
8623 (movlpd/movhpd to movupd peephole): Don't use UNSPEC_STOREU.
8624
8625 2016-04-19 Richard Biener <rguenther@suse.de>
8626
8627 PR tree-optimization/70171
8628 * tree-ssa-phiprop.c: Include stor-layout.h.
8629 (phiprop_insert_phi): Handle the aggregate copy case.
8630 (propagate_with_phi): Likewise.
8631
8632 2016-04-19 Uros Bizjak <ubizjak@gmail.com>
8633
8634 * config/i386/i386.c (ix86_decompose_address): Use lowpart_subreg
8635 instead of simplify_gen_subreg (... , 0).
8636 (ix86_delegitimize_address): Ditto.
8637 (ix86_split_divmod): Ditto.
8638 (ix86_split_copysign_const): Ditto.
8639 (ix86_split_copysign_var): Ditto.
8640 (ix86_expand_args_builtin): Ditto.
8641 (ix86_expand_round_builtin): Ditto.
8642 (ix86_expand_special_args_builtin): Ditto.
8643 * config/i386/i386.md (TARGET_USE_VECTOR_FP_CONVERTS splitters): Ditto.
8644 (TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters and peephole2s): Ditto.
8645 (udivmodqi4): Ditto.
8646 (absneg splitters): Ditto.
8647 (*jcc_bt<mode>_1): Ditto.
8648
8649 2016-04-19 Richard Biener <rguenther@suse.de>
8650
8651 PR tree-optimization/70724
8652 * tree-ssa-sccvn.c (scc_vn_restore_ssa_info): Split SSA info
8653 restoring out from ...
8654 (free_scc_vn): ... here.
8655 * tree-ssa-sccvn.h (scc_vn_restore_ssa_info): Declare.
8656 * tres-ssa-pre.c (pass_pre::execute): Restore SSA info before
8657 tail merging.
8658 (pass_fre::execute): Restore SSA info.
8659
8660 2016-04-19 Richard Biener <rguenther@suse.de>
8661
8662 * gimple-walk.h (struct walk_stmt_info): Add stmt member.
8663 * gimple-walk.c (walk_gimple_op): Initialize it.
8664 (walk_gimple_asm): Set wi->is_lhs before each callback invocation.
8665 * tree-inline.c (remap_gimple_op_r): Set SSA_NAME_DEF_STMT when
8666 remapping SSA names of defs.
8667 (copy_bb): Remove walk over all SSA defs and SSA_NAME_DEF_STMT
8668 adjustment.
8669
8670 2016-04-18 Vladimir Makarov <vmakarov@redhat.com>
8671
8672 PR middle-end/70689
8673 * lra-constraints.c (equiv_substition_p): New.
8674 (process_alt_operands): Use it.
8675 (swap_operands): Swap it.
8676 (curr_insn_transform): Update it.
8677
8678 2016-04-18 Michael Matz <matz@suse.de>
8679
8680 * tree.h (TYPE_ALIGN, DECL_ALIGN): Return shifted amount.
8681 (SET_TYPE_ALIGN, SET_DECL_ALIGN): New.
8682 * tree-core.h (tree_type_common.align): Use bit-field.
8683 (tree_type_common.spare): New.
8684 (tree_decl_common.off_align): Make smaller.
8685 (tree_decl_common.align): Use bit-field.
8686
8687 * expr.c (expand_expr_addr_expr_1): Use SET_TYPE_ALIGN.
8688 * omp-low.c (install_var_field): Use SET_DECL_ALIGN.
8689 (scan_sharing_clauses): Ditto.
8690 (finish_taskreg_scan): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
8691 (omp_finish_file): Ditto.
8692 * stor-layout.c (do_type_align): Use SET_DECL_ALIGN.
8693 (layout_decl): Ditto.
8694 (relayout_decl): Ditto.
8695 (finalize_record_size): Use SET_TYPE_ALIGN.
8696 (finalize_type_size): Ditto.
8697 (finish_builtin_struct): Ditto.
8698 (layout_type): Ditto.
8699 (initialize_sizetypes): Ditto.
8700 * targhooks.c (std_gimplify_va_arg_expr): Use SET_TYPE_ALIGN.
8701 * tree-nested.c (insert_field_into_struct): Use SET_TYPE_ALIGN.
8702 (lookup_field_for_decl): Use SET_DECL_ALIGN.
8703 (get_chain_field): Ditto.
8704 (get_trampoline_type): Ditto.
8705 (get_nl_goto_field): Ditto.
8706 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
8707 SET_DECL_ALIGN.
8708 (unpack_ts_type_common_value_fields): Use SET_TYPE_ALIGN.
8709 * gimple-expr.c (copy_var_decl): Use SET_DECL_ALIGN.
8710 * tree.c (make_node_stat): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
8711 (build_qualified_type): Use SET_TYPE_ALIGN.
8712 (build_aligned_type, build_range_type_1): Ditto.
8713 (build_atomic_base): Ditto.
8714 (build_common_tree_nodes): Ditto.
8715 * cfgexpand.c (align_local_variable): Use SET_DECL_ALIGN.
8716 (expand_one_stack_var_at): Ditto.
8717 * coverage.c (build_var): Use SET_DECL_ALIGN.
8718 * except.c (init_eh): Ditto.
8719 * function.c (assign_parm_setup_block): Ditto.
8720 * symtab.c (increase_alignment_1): Ditto.
8721 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Ditto.
8722 * tree-vect-stmts.c (ensure_base_align): Ditto.
8723 * varasm.c (align_variable): Ditto.
8724 (assemble_variable): Ditto.
8725 (build_constant_desc): Ditto.
8726 (output_constant_def_contents): Ditto.
8727
8728 * config/arm/arm.c (arm_relayout_function): Use SET_DECL_ALIGN.
8729 * config/avr/avr.c (avr_adjust_type_node): Use SET_TYPE_ALIGN.
8730 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Ditto.
8731 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Ditto.
8732 * config/spu/spu.c (spu_build_builtin_va_list): Use SET_DECL_ALIGN.
8733
8734 2016-04-18 H.J. Lu <hongjiu.lu@intel.com>
8735
8736 PR target/70708
8737 * config/i386/sse.md (sse2_loadlpd): Accept load from "xm" and
8738 replace %vmovsd with "%vmovq".
8739 (vec_concatv2df): Likewise.
8740
8741 2016-04-18 Uros Bizjak <ubizjak@gmail.com>
8742
8743 * config/i386/mmx.md (*vec_extractv2sf_0): Use gen_lowpart.
8744 (*vec_extractv2si_0): Ditto.
8745 * config/i386/sse.md (*vec_extractv4sf_0): Ditto.
8746 (zero_extended_scalar_load_operand splitters): Ditto.
8747 (vec_extract splitters): Ditto.
8748 (*vec_extractv4si_0_zext): Ditto.
8749 (avx_<castmode><avxsizesuffix>_<castmode>): Use gen_lowpart
8750 and lowpart_subreg.
8751 (avx512f_<castmode><avxsizesuffix>_<castmode>): Ditto.
8752 (avx512f_<castmode><avxsizesuffix>_256<castmode>): Ditto.
8753 (*sse4_1_extractps): Use lowpart_subreg.
8754 * config/i386/i386.md (x87 floatsplitter): Use gen_lowpart.
8755
8756 2016-04-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8757
8758 * doc/install.texi (Specific, i?86-*-solaris2.10): Update gas and
8759 gld requirements.
8760 (Specific, *-*-solaris2*): Update Solaris 11 bundled gcc versions.
8761 Mention Solaris 11 packaging changes.
8762 Update gas and gld requirements.
8763 Remove reference to pre-Solaris 10 bug.
8764 (Specific, sparc-sun-solaris2*): Remove reference to pre-Solaris 10
8765 systems and bugs.
8766 (Specific, sparc64-*-solaris2*): Remove reference to bootstrap
8767 with cc.
8768
8769 2016-04-17 Jan Hubicka <jh@suse.cz>
8770
8771 * tree-ssa-loop-ivopts.c (avg_loop_niter): Use also
8772 max_loop_iterations_int.
8773
8774 2016-04-18 Richard Biener <rguenther@suse.de>
8775
8776 PR tree-optimization/43434
8777 * tree-ssa-structalias.c (struct vls_data): New.
8778 (visit_loadstore): Handle all pointer-based accesses.
8779 (compute_dependence_clique): Compute a bitmap of restrict tags
8780 assigned bases and pass it to visit_loadstore.
8781
8782 2016-04-18 Matthew Wahab <matthew.wahab@arm.com>
8783
8784 PR target/70711
8785 * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for armv8+crc,
8786 armv8.1-a and armv8.1-a+crc.
8787
8788 2016-04-18 Richard Biener <rguenther@suse.de>
8789
8790 PR tree-optimization/70701
8791 * tree-ssa-sccvn.c (vn_reference_lookup_3): Resolve fully constant
8792 references after translating through a memcpy.
8793
8794 2016-04-18 Richard Biener <rguenther@suse.de>
8795
8796 * tree-ssa-pre.c (postorder, postorder_num): Make locals ...
8797 (compute_antic): ... here. For partial antic use regular
8798 postorder and scrap iteration.
8799 (compute_partial_antic_aux): Remove unused return value.
8800 (init_pre): Do not allocate postorder.
8801 (fini_pre): Do not free postorder.
8802
8803 2016-04-18 Richard Biener <rguenther@suse.de>
8804
8805 PR middle-end/37870
8806 * expmed.c (extract_bit_field_1): Remove broken case
8807 using a wider MODE_INT mode.
8808
8809 2016-04-18 Segher Boessenkool <segher@kernel.crashing.org>
8810
8811 * has-brig.c (lendian16): Don't try to use __builtin_bswap16
8812 unless compiling with at least GCC-4.8.
8813
8814 2016-04-17 Jan Hubicka <jh@suse.cz>
8815
8816 PR bootstrap/70706
8817 * graphite.c (graphite_finalize): Update call to
8818 tree_estimate_probability.
8819 * predict.h (tree_estimate_probability): Update prototype.
8820
8821 2016-04-17 Jan Hubicka <jh@suse.cz>
8822
8823 * predict.c (combine_predictions_for_bb): Add dry_run parmaeter.
8824 (tree_estimate_probability): Likewise.
8825 (pass_profile::execute): Update.
8826 (report_predictor_hitrates): New function.
8827 * profile.c (compute_branch_probabilities): Use it.
8828 * predict.h (report_predictor_hitrates): Declare.
8829
8830 2016-04-17 Jan Hubicka <jh@suse.cz>
8831
8832 PR ipa/70018
8833 * cgraph.h (cgraph_node::set_const_flag,
8834 cgraph_node::set_pure_flag): Update prototype to return bool;
8835 update comment.
8836 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases): Thunks
8837 of interposable symbol are interposable, too.
8838 (cgraph_set_const_flag_1): Rename to ...
8839 (set_const_flag_1): ... this one; change to self recursive function
8840 instead of call_for_symbol_thunks_and_aliases. Handle correctly
8841 clearnig the flag in all variants and also virtual thunks of const
8842 functions are pure; track if any change was done.
8843 (cgraph_node::set_const_flag): Update.
8844 (struct set_pure_flag_info): New struct.
8845 (cgraph_set_pure_flag_1): Rename to ...
8846 (set_pure_flag_1): ... this one; take set_pure_flag_info parameter
8847 rather than pointer encoded flags; track if any changes was done;
8848 handle correctly clearning flag and setting flag of aliases already
8849 declared const.
8850 (cgraph_node::set_pure_flag): Update.
8851 (cgraph_node::set_nothrow_flag): Handle correctly clearning the flag.
8852
8853 2016-04-17 Tom de Vries <tom@codesourcery.com>
8854
8855 PR other/70433
8856 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Escape
8857 backslash in label.
8858
8859 2016-04-17 Tom de Vries <tom@codesourcery.com>
8860
8861 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Classify chars
8862 '{}<> ' as escape-for-record.
8863
8864 2016-04-17 Tom de Vries <tom@codesourcery.com>
8865
8866 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Simplify loop
8867 structure.
8868
8869 2016-04-17 Tom de Vries <tom@codesourcery.com>
8870
8871 PR other/70185
8872 * tree-pass.h (class opt_pass): Remove graph_dump_initialized member.
8873 * dumpfile.h (struct dump_file_info): Add graph_dump_initialized field.
8874 * dumpfile.c (dump_files): Initialize graph_dump_initialized field.
8875 * passes.c (finish_optimization_passes): Only call
8876 finish_graph_dump_file if dfi->graph_dump_initialized.
8877 (execute_function_dump, pass_init_dump_file): Use
8878 dfi->graph_dump_initialized instead of pass->graph_dump_initialized.
8879
8880 2016-04-17 Tom de Vries <tom@codesourcery.com>
8881
8882 PR tree-optimization/70256
8883 * tree-ssa-structalias.c (dump_varinfo, debug_varinfo, dump_varmap)
8884 (debug_varmap): New function.
8885
8886 2016-04-17 Tom de Vries <tom@codesourcery.com>
8887
8888 PR other/70183
8889 * passes.c (pass_manager::register_pass): Propagate pflags.
8890
8891 2016-04-17 Tom de Vries <tom@codesourcery.com>
8892
8893 PR other/68875
8894 * pass_manager.h (TERMINATE_PASS_LIST): Add pass argument.
8895 * passes.c (pass_manager::pass_manager): Declare and init p_start in
8896 INSERT_PASSES_AFTER. Add pass parameter to TERMINATE_PASS_LIST, and
8897 check if it's equal to p_start.
8898 * passes.def: Add arguments to TERMINATE_PASS_LISTs.
8899
8900 2016-04-15 Jan Hubicka <jh@suse.cz>
8901
8902 PR ipa/70018
8903 * cgraph.c (cgraph_set_const_flag_1): Only set as pure if
8904 function does not bind to current def.
8905 * ipa-pure-const.c (worse_state): Add FROM and TO parameters;
8906 handle conservatively calls to functions that does not need to bind
8907 to current def.
8908 (check_call): Update call of worse_state.
8909 (ignore_edge_for_nothrow): Update.
8910 (ignore_edge_for_pure_const): Likewise.
8911 (propagate_pure_const): Update calls to worse_state.
8912 (skip_function_for_local_pure_const): Reformat comments.
8913
8914 2016-04-15 Jan Hubicka <jh@suse.cz>
8915
8916 PR ipa/70018
8917 * cgraph.c (cgraph_node::get_availability): Add REF parameter.
8918 (cgraph_node::function_symbol): Likewise.
8919 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
8920 * cgraph.h (symtab_node::get_availabbility): Add REF parameter.
8921 (symtab_node::ultimate_alias_target): Add REF parameter.
8922 (symtab_node::binds_to_current_def_p): Declare.
8923 (symtab_node;:ultimate_alias_target_1): Add REF parameter.
8924 (cgraph_node::function_symbol): Likewise.
8925 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
8926 (cgraph_node::get_availability): Likewise.
8927 (cgraph_edge::binds_to_current_def_p): New inline function.
8928 (varpool_node::get_availability): Add REF parameter.
8929 (varpool_node::ultimate_alias_target): Likewise.
8930 * symtab.c (symtab_node::ultimate_alias_target_1): Likewise.
8931 (symtab_node::binds_to_current_def_p): Likewise.
8932 * varpool.c (varpool_node::get_availability): Likewise.
8933
8934 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
8935
8936 PR target/70662
8937 * config/i386/sse.md(define_insn "<avx512>_vec_dup<mode><mask_name>"):
8938 Fix mode size check.
8939
8940 2016-04-15 Jakub Jelinek <jakub@redhat.com>
8941
8942 * BASE-VER: Set to 7.0.0.
8943
8944 2016-04-15 Alexander Monakov <amonakov@ispras.ru>
8945
8946 * config/nvptx/nvptx.opt (moptimize): Add a period at end of help text.
8947
8948 2016-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8949
8950 * doc/invoke.texi (ARM Options): Add note on deprecation of pre-ARMv4T
8951 architecture revisions.
8952
8953 2016-04-15 Bernd Schmidt <bschmidt@redhat.com>
8954
8955 * config/i386/i386-protos.h (ix86_using_red_zone): Declare.
8956 * config/i386/i386.c (ix86_using_red_zone): No longer static.
8957 * config/i386/i386.md (stack decrement to push peepholes): Guard
8958 with !x86_using_red_zone ().
8959
8960 2016-04-15 Jakub Jelinek <jakub@redhat.com>
8961
8962 PR c++/70675
8963 * tree-pretty-print.c (do_niy): Add FLAGS argument, pass it down
8964 to dump_generic_node.
8965 (NIY): Pass also flags to do_niy.
8966
8967 2016-04-15 Thomas Schwinge <thomas@codesourcery.com>
8968
8969 * omp-low.c (simd_clone_struct_alloc, simd_clone_struct_copy)
8970 (simd_clone_vector_of_formal_parm_types)
8971 (simd_clone_clauses_extract, simd_clone_compute_base_data_type)
8972 (simd_clone_mangle, simd_clone_create)
8973 (simd_clone_adjust_return_type, create_tmp_simd_array)
8974 (simd_clone_adjust_argument_types, simd_clone_init_simd_arrays)
8975 (struct modify_stmt_info, ipa_simd_modify_stmt_ops)
8976 (ipa_simd_modify_function_body, simd_clone_linear_addend)
8977 (simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone)
8978 (pass_data_omp_simd_clone, class pass_omp_simd_clone)
8979 (pass_omp_simd_clone::gate, make_pass_omp_simd_clone): Move into...
8980 * omp-simd-clone.c: ... this new file.
8981 (simd_clone_vector_of_formal_parm_types): Make it static.
8982 * Makefile.in (OBJS): Add omp-simd-clone.o.
8983
8984 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
8985
8986 PR target/70662
8987 * config/i386/sse.md: Use proper memory operand modifiers.
8988
8989
8990 2016-04-15 Richard Biener <rguenther@suse.de>
8991 Alan Modra <amodra@gmail.com>
8992
8993 PR tree-optimization/70130
8994 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Detect
8995 when alignment stays not the same and no not use the realign
8996 scheme then.
8997
8998 2016-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
8999
9000 PR target/70669
9001 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
9002 direct move handlers for KFmode. Change TFmode handlers test from
9003 FLOAT128_IEEE_P to FLOAT128_VECTOR_P.
9004
9005 2016-04-14 Jakub Jelinek <jakub@redhat.com>
9006
9007 PR c++/70594
9008 * ipa-utils.h (polymorphic_ctor_dtor_p): New prototype.
9009 * ipa-polymorphic-call.c (polymorphic_ctor_dtor_p): New function.
9010 (inlined_polymorphic_ctor_dtor_block_p): Use it.
9011 * tree-ssa-live.c (remove_unused_scope_block_p): When
9012 in_ctor_dtor_block, avoid discarding not just BLOCKs with
9013 BLOCK_ABSTRACT_ORIGIN being FUNCTION_DECL, but even when
9014 block_ultimate_origin is FUNCTION_DECL.
9015 (remove_unused_locals): If current_function_decl is
9016 polymorphic_ctor_dtor_p, pass initial true to
9017 remove_unused_scope_block_p' is_ctor_dtor_block.
9018
9019 2016-04-14 Martin Sebor <msebor@redhat.com>
9020
9021 PR c++/69517
9022 PR c++/70019
9023 PR c++/70588
9024 * doc/extend.texi (Variable Length): Revert.
9025
9026 2016-04-14 Marek Polacek <polacek@redhat.com>
9027 Jan Hubicka <hubicka@ucw.cz>
9028
9029 PR c++/70029
9030 * tree.c (verify_type): Disable the canonical type of main variant
9031 check.
9032
9033 2016-04-14 Jason Merrill <jason@redhat.com>
9034
9035 * cfgexpand.c, expr.c: Revert previous change.
9036
9037 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
9038
9039 PR middle-end/70643
9040 * omp-low.c (lower_oacc_reductions): Check for TREE_CONSTANT
9041 when building a mem ref for the incoming reduction variable.
9042
9043 2016-04-14 Richard Biener <rguenther@suse.de>
9044
9045 PR tree-optimization/70614
9046 * tree-scalar-evolution.c (analyze_evolution_in_loop): Terminate
9047 loop if the evolution dropped to chrec_dont_know.
9048 (interpret_condition_phi): Likewise.
9049
9050 2016-04-14 Richard Biener <rguenther@suse.de>
9051
9052 PR tree-optimization/70623
9053 * tree-ssa-pre.c (changed_blocks): Make global ...
9054 (compute_antic): ... local here. Move and fix worklist
9055 handling here. Do not clear EDGE_DFS_BACK or call mark_dfs_back_edges.
9056 (compute_antic_aux): Add dumping for MAX assumed succs. Remove
9057 worklist handling, dump when ANTIC_IN changed.
9058 (compute_partial_antic_aux): Remove worklist handling.
9059 (init_pre): Do not compute post dominators. Add a comment about
9060 the CFG order chosen.
9061 (fini_pre): Do not free post dominators.
9062
9063 2016-04-13 Martin Sebor <msebor@redhat.com>
9064
9065 PR c++/69517
9066 PR c++/70019
9067 PR c++/70588
9068 * doc/extend.texi (Variable Length): Document C++ specifics.
9069
9070 2016-04-13 Jakub Jelinek <jakub@redhat.com>
9071
9072 PR c++/70641
9073 * ipa-pure-const.c (pass_nothrow::execute): Call maybe_clean_eh_stmt
9074 on all recursive call stmts. Return TODO_cleanup_cfg if any dead
9075 eh edges have been purged.
9076
9077 PR c++/70594
9078 * tree-sra.c (create_access_replacement,
9079 get_replaced_param_substitute): Set DECL_NAMELESS on repl if it
9080 gets fancy name.
9081 * tree-pretty-print.c (dump_fancy_name): New function.
9082 (dump_decl_name, dump_generic_node): Use it.
9083
9084 2016-04-13 Jason Merrill <jason@redhat.com>
9085
9086 * cfgexpand.c (pass_expand::execute): Handle attribute "abi warning".
9087 * expr.c (expand_expr_real_1): Likewise.
9088
9089 2016-04-13 Ilya Enkovich <ilya.enkovich@intel.com>
9090
9091 * config/i386/i386.md (kunpckhi): Swap operands.
9092 (kunpcksi): Likewise.
9093 (kunpckdi): Likewise.
9094 * config/i386/sse.md (vec_pack_trunc_qi): Likewise.
9095 (vec_pack_trunc_<mode>): Likewise.
9096
9097 2016-04-13 Jakub Jelinek <jakub@redhat.com>
9098
9099 PR debug/70628
9100 * explow.c (convert_memory_address_addr_space_1): Formatting fix.
9101
9102 PR middle-end/70633
9103 * gimplify.c (gimplify_init_constructor): Clear TREE_STATIC if
9104 gimplification turns some element into non-constant.
9105
9106 PR debug/70628
9107 * rtl.h (convert_memory_address_addr_space_1): New prototype.
9108 * explow.c (convert_memory_address_addr_space_1): No longer static,
9109 add NO_EMIT argument and don't call convert_modes if true, pass
9110 it down recursively, remove break after return.
9111 (convert_memory_address_addr_space): Adjust caller.
9112 * simplify-rtx.c (simplify_unary_operation_1): Call
9113 convert_memory_address_addr_space_1 instead of convert_memory_address,
9114 if it returns NULL, don't simplify.
9115
9116 2016-04-12 Eric Botcazou <ebotcazou@adacore.com>
9117
9118 PR target/70630
9119 * config/sparc/sparc.c (sparc_compute_frame_size): Add parentheses.
9120
9121 2016-04-12 Jakub Jelinek <jakub@redhat.com>
9122
9123 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
9124 Bump the upper SIMDLEN limits, so that if the return type or
9125 characteristic type if the return type is void can be passed in
9126 all available SSE2/AVX/AVX2/AVX512-F registers, the SIMDLEN is
9127 allowed.
9128
9129 2016-04-12 Michael Meissner <meissner@linux.vnet.ibm.com>
9130
9131 PR target/70640
9132 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2_internal):
9133 Do not use "=" constraint on an input constraint.
9134 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
9135 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
9136 (ieee_128bit_vsx_nabs<mode>2): Correct splitter so that it
9137 generates (neg (abs ...)) instead of (abs ...).
9138
9139 2016-04-12 Jakub Jelinek <jakub@redhat.com>
9140
9141 PR rtl-optimization/70596
9142 * lra-spills.c (spill_pseudos): Don't delete debug insns, instead
9143 just invalidate LRA data and reset them. Adjust dump wording.
9144
9145 2016-04-12 Martin Liska <mliska@suse.cz>
9146
9147 Revert
9148 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
9149
9150 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
9151 estimates here.
9152 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
9153 max_loop_iterations_int.
9154 (tree_unswitch_outer_loop): Likewise.
9155 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
9156 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
9157
9158 2016-04-12 Tom de Vries <tom@codesourcery.com>
9159
9160 PR tree-optimization/68756
9161 * graphite-isl-ast-to-gimple.c (copy_cond_phi_args): Use new_expr
9162 instead of new_name.
9163
9164 2016-04-12 Jakub Jelinek <jakub@redhat.com>
9165
9166 PR tree-optimization/70602
9167 * tree-sra.c (generate_subtree_copies): Don't write anything into
9168 constant pool decls.
9169
9170 * omp-low.c (lower_omp_target): Use GOMP_MAP_FIRSTPRIVATE_INT
9171 regardless whether there are depend clauses or not.
9172
9173 2016-04-11 Michael Meissner <meissner@linux.vnet.ibm.com>
9174
9175 PR target/70381
9176 * config/rs6000/rs6000.c (rs6000_opt_masks): Disable using the
9177 target attribute and pragma from changing the -mfloat128
9178 and -mfloat128-hardware options.
9179
9180 * doc/extend.texi (Additional Floating Types): Document PowerPC
9181 __float128 restrictions.
9182
9183 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
9184
9185 PR target/70133
9186 * config/aarch64/driver-aarch64.c
9187 (aarch64_get_extension_string_for_isa_flags): New.
9188 (arch_extension): Rename to...
9189 (aarch64_arch_extension): ...This.
9190 (ext_to_feat_string): Rename to...
9191 (aarch64_extensions): ...This.
9192 (aarch64_core_data): Keep track of architecture extension flags.
9193 (cpu_data): Rename to...
9194 (aarch64_cpu_data): ...This.
9195 (aarch64_arch_driver_info): Keep track of architecture extension
9196 flags.
9197 (get_arch_name_from_id): Rename to...
9198 (get_arch_from_id): ...This, change return type.
9199 (host_detect_local_cpu): Update and reformat for renames, handle
9200 extensions through common infrastructure.
9201
9202 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
9203
9204 PR target/70133
9205 * config/aarch64/aarch64-common.c (aarch64_option_extension): Keep
9206 track of a canonical flag name.
9207 (all_extensions): Likewise.
9208 (arch_to_arch_name): Also track extension flags enabled by the arch.
9209 (all_architectures): Likewise.
9210 (aarch64_parse_extension): Move to here.
9211 (aarch64_get_extension_string_for_isa_flags): Take a new argument,
9212 rework.
9213 (aarch64_rewrite_selected_cpu): Update for above change.
9214 * config/aarch64/aarch64-option-extensions.def: Rework the way flags
9215 are handled, such that the single explicit value enabled by an
9216 extension is kept seperate from the implicit values it also enables.
9217 * config/aarch64/aarch64-protos.h (aarch64_parse_opt_result): Move
9218 to here.
9219 (aarch64_parse_extension): New.
9220 * config/aarch64/aarch64.c (aarch64_parse_opt_result): Move from
9221 here to config/aarch64/aarch64-protos.h.
9222 (aarch64_parse_extension): Move from here to
9223 common/config/aarch64/aarch64-common.c.
9224 (aarch64_option_print): Update.
9225 (aarch64_declare_function_name): Likewise.
9226 (aarch64_start_file): Likewise.
9227 * config/aarch64/driver-aarch64.c (arch_extension): Keep track of
9228 the canonical flag for extensions.
9229 * config.gcc (aarch64*-*-*): Extend regex for capturing extension
9230 flags.
9231
9232 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
9233
9234 * config/aarch64/aarch64.h (AARCH64_FL_FOR_ARCH8_1): Also add
9235 AARCH64_FL_CRC.
9236
9237 2016-04-09 Tom de Vries <tom@codesourcery.com>
9238
9239 PR tree-optimization/68953
9240 * graphite-sese-to-poly.c (pdr_add_memory_accesses): Order accesses from
9241 first to last subscript.
9242
9243 2016-04-09 Jakub Jelinek <jakub@redhat.com>
9244
9245 PR tree-optimization/70586
9246 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Return false
9247 for any calls.
9248
9249 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
9250
9251 PR lto/70289
9252 PR ipa/70348
9253 PR tree-optimization/70373
9254 PR middle-end/70533
9255 PR middle-end/70534
9256 PR middle-end/70535
9257 * gimplify.c (gimplify_adjust_omp_clauses): Add or adjust data
9258 clauses for acc parallel reductions as necessary. Error on those
9259 that are private.
9260 * omp-low.c (scan_sharing_clauses): Don't install variables which
9261 are used in acc parallel reductions.
9262 (lower_rec_input_clauses): Remove dead code.
9263 (lower_oacc_reductions): Add support for reference reductions.
9264 (lower_reduction_clauses): Remove dead code.
9265 (lower_omp_target): Don't remap variables appearing in acc parallel
9266 reductions.
9267 * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): New macro.
9268
9269 2016-04-08 Jakub Jelinek <jakub@redhat.com>
9270
9271 PR middle-end/70593
9272 * tree-ssa-coalesce.c (build_ssa_conflict_graph): For stmt
9273 with multiple SSA_NAME defs, force the outputs other than first
9274 to be live before calling live_track_process_def on each output.
9275
9276 PR rtl-optimization/70574
9277 * fwprop.c (forward_propagate_and_simplify): Don't add
9278 REG_EQUAL note if DF_REF_REG (use) is a paradoxical subreg.
9279 (try_fwprop_subst): Don't add REG_EQUAL note if there are any
9280 paradoxical subregs within *loc.
9281
9282 2016-04-08 Thomas Schwinge <thomas@codesourcery.com>
9283
9284 * config/arc/arc.h (LINK_COMMAND_SPEC): Use gt to ignore
9285 -ftree-parallelize-loops={0,1}.
9286 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
9287 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
9288 * config/ia64/hpux.h (LIB_SPEC): Likewise.
9289 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
9290 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
9291
9292 2016-04-08 Maxim Ostapenko <m.ostapenko@samsung.com>
9293
9294 PR sanitizer/70541
9295 * asan.c (instrument_derefs): If we get unknown location, extract it
9296 with EXPR_LOCATION.
9297 (maybe_instrument_call): Instrument gimple_call's arguments if needed.
9298
9299 2016-04-08 Tom de Vries <tom@codesourcery.com>
9300
9301 * omp-low.c (lower_omp_target): Set TREE_NO_WARNING for oacc
9302 implicit firstprivate clause.
9303
9304 2016-04-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9305
9306 PR target/70566
9307 * config/arm/thumb2.md (tst + branch-> lsls + branch
9308 peephole below *orsi_not_shiftsi_si): Require that condition
9309 register is dead after the peephole.
9310 (second peephole after the above): Likewise.
9311
9312 2016-04-08 Alan Modra <amodra@gmail.com>
9313
9314 PR target/70117
9315 * builtins.c (fold_builtin_classify): For IBM extended precision,
9316 look at just the high-order double to test for NaN.
9317 (fold_builtin_interclass_mathfn): Similarly for Inf. For isnormal
9318 test just the high double for Inf but both doubles for subnormal
9319 limit.
9320
9321 2016-04-07 Jakub Jelinek <jakub@redhat.com>
9322
9323 * cgraph.h (struct cgraph_simd_clone): Add mask_mode field.
9324 * omp-low.c (simd_clone_init_simd_arrays, simd_clone_adjust): Handle
9325 node->simdclone->mask_mode != VOIDmode masks.
9326 (simd_clone_adjust_argument_types): Likewise. Move sc var definition
9327 earlier, use it instead of node->simdclone.
9328 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
9329 Set clonei->mask_mode.
9330
9331 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
9332
9333 PR c/70436
9334 * parser.c (cp_parser_iteration_statement): New parameter IF_P.
9335 Pass it through to cp_parser_already_scoped_statement.
9336 (cp_parser_already_scoped_statement): New parameter IF_P. Pass
9337 it through to cp_parser_statement.
9338 (cp_parser_statement): Pass IF_P through to
9339 cp_parser_iteration_statement.
9340 (cp_parser_pragma): Adjust call to
9341 cp_parser_iteration_statement.
9342
9343 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
9344
9345 PR c/70436
9346 * gimplify.c (gimplify_omp_ordered): Add explicit braces to
9347 resolve a future -Wparentheses warning.
9348 * omp-low.c (scan_sharing_clauses): Likewise.
9349 * tree-parloops.c (eliminate_local_variables): Likewise.
9350
9351 2016-04-06 Vladimir Makarov <vmakarov@redhat.com>
9352
9353 PR rtl-optimization/70398
9354 * lra-constraints.c (process_address_1): Check zero scale and code
9355 for reloading with zero scale.
9356
9357 2016-04-06 Uros Bizjak <ubizjak@gmail.com>
9358
9359 * config/i386/sse.md (shuffletype): Add V32HI and V4TI modes.
9360 (ssescalarsize): Add V8SF, V4SF, V4DF and V2DF modes.
9361
9362 2016-04-06 Jakub Jelinek <jakub@redhat.com>
9363
9364 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
9365 Add support for AVX512F clones, include them by default for
9366 exported OpenMP declare simd functions. For AVX2 allow simdlen 32
9367 and use it if charasteric type is 8-bit, for AVX512F allow simdlen
9368 up to 128.
9369
9370 PR middle-end/70550
9371 * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT): Define.
9372 * gimplify.c (gimplify_adjust_omp_clauses_1): Set it for implicit
9373 firstprivate clauses.
9374 * omp-low.c (lower_send_clauses): Set TREE_NO_WARNING for
9375 OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT !by_ref vars in task contexts.
9376 (lower_omp_target): Set TREE_NO_WARNING for
9377 non-addressable possibly uninitialized vars which are copied into
9378 addressable temporaries or copied for GOMP_MAP_FIRSTPRIVATE_INT.
9379
9380 2016-04-05 John David Anglin <danglin@gcc.gnu.org>
9381
9382 * config/pa/predicates.md (integer_store_memory_operand): Accept
9383 REG+D operands with a large offset when reload_in_progress is true.
9384 (floating_point_store_memory_operand): Likewise.
9385
9386 2016-04-05 Jakub Jelinek <jakub@redhat.com>
9387
9388 PR c++/70336
9389 * match.pd (nested int casts): Limit to GIMPLE.
9390
9391 2016-04-05 Jan Hubicka <hubicka@ucw.cz>
9392
9393 PR ipa/66223
9394 * ipa-devirt.c (maybe_record_node): Fix comment; use
9395 SANITIZE_UNREACHABLE instead of SANITIZE_UNDEFINED.
9396
9397 2016-04-05 Jakub Jelinek <jakub@redhat.com>
9398
9399 PR rtl-optimization/70542
9400 * ree.c (add_removable_extension): For VECTOR_MODE_P punt
9401 if there are any uses other than insn or debug insns.
9402
9403 2016-04-05 Marc Glisse <marc.glisse@inria.fr>
9404 Jakub Jelinek <jakub@redhat.com>
9405
9406 PR tree-optimization/70509
9407 * simplify-rtx.c (simplify_binary_operation_1) <case VEC_SELECT>:
9408 Shift HOST_WIDE_INT_1U instead of 1.
9409
9410 2016-04-05 Zdenek Sojka <zsojka@seznam.cz>
9411
9412 PR tree-optimization/70509
9413 * tree-ssa-forwprop.c (simplify_bitfield_ref): Use bitsize_int instead
9414 of the vector base type for index.
9415
9416 2016-04-05 Uros Bizjak <ubizjak@gmail.com>
9417
9418 PR target/70510
9419 * config/i386/sse.md (iptr): Add V64QI, V32HI, V16SI and V8DI modes.
9420
9421 2016-04-05 Richard Biener <rguenther@suse.de>
9422
9423 PR tree-optimization/70526
9424 * tree-sra.c (build_ref_for_offset): Use prev_base to
9425 extract the alias pointer type.
9426
9427 2016-04-05 Richard Biener <rguenther@suse.de>
9428
9429 * dse.c (struct store_info): Remove alias_set member.
9430 (struct read_info_type): Likewise.
9431 (clear_alias_group, clear_alias_mode_table, clear_alias_mode_holder,
9432 spill_deleted, clear_alias_set_lookup): Remove.
9433 (get_group_info): Remove dead base == NULL_RTX case.
9434 (dse_step0): Remove initialization of removed variables.
9435 (delete_dead_store_insn): Reomve alias set dumping.
9436 (free_read_records): Remove alias_set handling.
9437 (canon_address): Remove alias_set_out parameter.
9438 (record_store): Remove spill_alias_set, it's always zero.
9439 (check_mem_read_rtx): Likewise.
9440 (dse_step2): Rename from ...
9441 (dse_step2_nospill): ... this. Adjust.
9442 (scan_stores): Rename from ...
9443 (scan_stores_nospill): ... this.
9444 (scan_reads): Rename from ...
9445 (scan_reads_nospill): ... this.
9446 (scan_stores_spill, scan_reads_spill): Remove.
9447 (dse_step3_scan): Remove for_spills argument which is always false.
9448 (dse_step3): Likewise.
9449 (dse_step5): Rename from ...
9450 (dse_step5_nospill): ... this. Remove alias_set handling.
9451 (rest_of_handle_dse): Adjust.
9452
9453 2016-04-05 Jakub Jelinek <jakub@redhat.com>
9454
9455 PR target/70525
9456 * config/i386/sse.md (*andnot<mode>3): Simplify assertions.
9457 Use vpandn<ssemodesuffix> for V16SI/V8DImode, vpandnq for
9458 V32HI/V64QImode, don't use <mask_operand3_1>, fix up formatting.
9459 (*andnot<mode>3_mask): Remove insn with VI12_AVX512VL iterator.
9460
9461 2016-04-05 Richard Biener <rguenther@suse.de>
9462
9463 PR middle-end/70499
9464 * gimplify-me.c (gimple_regimplify_operands): Do not rewrite
9465 non-register type temporaries into SSA.
9466
9467 2016-04-04 Jan Hubicka <hubicka@ucw.cz>
9468
9469 PR ipa/66223
9470 * ipa-devirt.c (maybe_record_node): Do not optimize cxa_pure_virtual
9471 calls when sanitizing.
9472 (possible_polymorphic_call_target_p): Fix formatting.
9473
9474 2016-04-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9475 Jakub Jelinek <jakub@redhat.com>
9476
9477 PR middle-end/70457
9478 * tree-inline.c (estimate_num_insn): Use gimple_call_builtin_p
9479 to ensure a call statement is compatible with a built-in's
9480 prototype.
9481 * tree-ssa-math-opts.c (pass_optimize_windening_mul::execute):
9482 Likewise.
9483
9484 2016-04-04 Richard Biener <rguenther@suse.de>
9485
9486 PR rtl-optimization/70484
9487 * rtl.h (canon_output_dependence): Declare.
9488 * alias.c (canon_output_dependence): New function.
9489 * dse.c (record_store): Use canon_output_dependence rather
9490 than canon_true_dependence.
9491
9492 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
9493
9494 PR ipa/68881
9495 * cgraph.h (symtab_node::copy_visibility_from): New function.
9496 * symtab.c (symtab_node::copy_visibility_from): New function.
9497 * ipa-visibility.c (optimize_weakref): New function.
9498 (function_and_variable_visibility): Use it.
9499
9500 2016-04-04 Martin Liska <mliska@suse.cz>
9501
9502 PR hsa/70402
9503 * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Guard index
9504 value that is really in range handled by SBR instruction.
9505 * hsa-brig.c (emit_switch_insn): Do not emit unconditional jump.
9506 * hsa-dump.c (dump_hsa_insn_1): Do not dump default BB.
9507 * hsa.h (hsa_insn_sbr::m_default_bb): Remove field.
9508
9509 2016-04-03 Oleg Endo <olegendo@gcc.gnu.org>
9510
9511 PR target/70416
9512 PR target/67391
9513 * config/sh/sh.md (*addsi3): Allow pattern when reload_in_progress is
9514 set, but not for SP_REG operands.
9515
9516 2016-04-02 Martin Sebor <msebor@redhat.com>
9517
9518 PR c++/67376
9519 * fold-const.c (maybe_nonzero_address): New function.
9520 (fold_comparison): Call it. Fold equality and relational
9521 expressions involving null pointers.
9522 (tree_single_nonzero_warnv_p): Call maybe_nonzero_address.
9523
9524 2016-03-31 Evandro Menezes <e.menezes@samsung.com>
9525
9526 Fix the predicate "aarch64_simd_reg_or_zero" to correctly validate
9527 the "Y" constraint (scalar FP 0.0 immediate).
9528
9529 * config/aarch64/predicates.md (aarch64_simd_reg_or_zero):
9530 Add the "const_double" to the list of operand constraints.
9531
9532 2016-04-01 Jakub Jelinek <jakub@redhat.com>
9533
9534 PR rtl-optimization/70467
9535 * config/i386/i386.md (*add<dwi>3_doubleword, *sub<dwi>3_doubleword):
9536 If low word of the last operand is 0, just emit addition/subtraction
9537 for the high word.
9538
9539 2016-04-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9540
9541 PR target/70404
9542 * config/s390/s390.c (s390_expand_insv): Check for everything
9543 constant instead of just VOIDmode stuff.
9544
9545 2016-04-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9546
9547 PR target/70496
9548 * config/arm/arm.h (ASM_APP_OFF): Handle TARGET_ARM and TARGET_THUMB.
9549
9550 2016-04-01 Nathan Sidwell <nathan@acm.org>
9551
9552 * tree.def (TRY_CATCH_EXPR): Correct documentation.
9553
9554 2016-03-31 Vladimir Makarov <vmakarov@redhat.com>
9555
9556 PR rtl-optimization/70461
9557 * ira-color.c (allocno_copy_cost_saving): Use allocno class if it
9558 is necessary.
9559
9560 2016-03-31 Martin Liska <mliska@suse.cz>
9561
9562 PR hsa/70399
9563 * hsa-brig.c (hsa_op_immed::emit_to_buffer): Emit either
9564 a tree value or an immediate integer value to a buffer
9565 that is eventually copied to a BRIG section.
9566 (emit_immediate_operand): Call the function here.
9567 * hsa-dump.c (dump_hsa_immed): Remove checking assert.
9568 * hsa-gen.c (hsa_op_immed::hsa_op_immed): Remove initialization
9569 of class' fields that are removed.
9570 (hsa_op_immed::~hsa_op_immed): Remove deinitialization.
9571 * hsa.h (class hsa_op_immed): Remove m_brig_repr and
9572 m_brig_repr_size fields.
9573
9574 2016-03-31 Martin Liska <mliska@suse.cz>
9575
9576 PR hsa/70391
9577 * hsa-gen.c (hsa_function_representation::update_dominance): New
9578 function.
9579 (convert_addr_to_flat_segment): Likewise.
9580 (gen_hsa_memory_set): New alignment argument.
9581 (gen_hsa_ctor_assignment): Likewise.
9582 (gen_hsa_insns_for_single_assignment): Provide alignment
9583 to gen_hsa_ctor_assignment.
9584 (gen_hsa_insns_for_direct_call): Add new argument.
9585 (expand_lhs_of_string_op): New function.
9586 (expand_string_operation_builtin): Likewise.
9587 (expand_memory_copy): New function.
9588 (expand_memory_set): New function.
9589 (gen_hsa_insns_for_call): Use HOST_WIDE_INT.
9590 (convert_switch_statements): Change signature.
9591 (generate_hsa): Use a return value of the function.
9592 (pass_gen_hsail::execute): Do not call
9593 convert_switch_statements here.
9594 * hsa-regalloc.c (hsa_regalloc): Call update_dominance.
9595 * hsa.h (hsa_function_representation::m_modified_cfg): New flag.
9596 (hsa_function_representation::update_dominance): New function.
9597
9598 2016-03-31 Martin Liska <mliska@suse.cz>
9599
9600 PR hsa/70391
9601 * hsa-brig.c (emit_directive_variable): Emit alignment
9602 according to hsa_symbol::m_align.
9603 * hsa-dump.c (hsa_byte_alignment): Move the function to another file.
9604 (dump_hsa_symbol): Dump alignment of HSA symbols.
9605 * hsa-gen.c (get_symbol_for_decl): Set-up alignment of a symbol.
9606 (gen_hsa_addr_with_align): New function.
9607 (hsa_bitmemref_alignment): Use newly added function.
9608 (gen_hsa_insns_for_load): Likewise.
9609 (gen_hsa_insns_for_store): Likewise.
9610 (gen_hsa_memory_copy): New argument added.
9611 (gen_hsa_insns_for_single_assignment): Respect
9612 alignment for assignments processed via gen_hsa_memory_copy.
9613 (gen_hsa_insns_for_direct_call): Likewise.
9614 (gen_hsa_insns_for_return): Likewise.
9615 (gen_function_def_parameters): Set default alignment.
9616 * hsa.c (hsa_object_alignment): New function.
9617 (hsa_byte_alignment): Pasted function.
9618 * hsa.h (hsa_symbol::m_align): New field.
9619
9620 2016-03-31 Bin Cheng <bin.cheng@arm.com>
9621
9622 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Initialize
9623 scratch field for goto case.
9624
9625 2016-03-31 James Greenhalgh <james.greenhalgh@arm.com>
9626
9627 * config/arm/linux-elf.h (ASM_OUTPUT_DEF): Delete.
9628
9629 2016-03-31 Ilya Enkovich <enkovich.gnu@gmail.com>
9630
9631 PR target/70442
9632 * config/i386/i386.c (scalar_chain::convert_op): Fix description.
9633 (scalar_chain::convert_insn): Call convert_op for reg
9634 moves to handle undefined registers.
9635
9636 2016-03-31 Nathan Sidwell <nathan@acm.org>
9637
9638 PR c++/70393
9639 * varasm.c (output_constructor_regular_field): Flush bitfield earlier.
9640 Assert we don't want to move backwards.
9641
9642 2016-03-31 Kirill Yukhin <kirill.yukhin@intel.com>
9643
9644 PR target/70453
9645 * config/i386/sse.md (define_mode_attr shuffletype): Fix typo.
9646
9647 2016-03-31 Jakub Jelinek <jakub@redhat.com>
9648
9649 PR rtl-optimization/70460
9650 * ira.c (indirect_jump_optimize): Don't substitute LABEL_REF
9651 with operand from REG_LABEL_OPERAND, instead substitute
9652 SET_SRC or REG_EQUAL note content if it is a LABEL_REF.
9653 Don't do anything for REG_NON_LOCAL_GOTO jumps.
9654
9655 2016-03-31 Martin Liska <mliska@suse.cz>
9656
9657 * passes.c (execute_one_pass): Do not call
9658 todo_after for a discarded function.
9659
9660 2016-03-31 Bin Cheng <bin.cheng@arm.com>
9661
9662 * tree-ssa-loop-ivopts.c (struct comp_cost): New scrach field.
9663 (no_cost, infinite_cost): Initialize the new field.
9664 (get_computation_cost_at): Record setup cost.
9665 (determine_use_iv_cost_address): Skip cost computation for sub
9666 uses if we can estimate it without losing accuracy.
9667
9668 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
9669
9670 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
9671 estimates here.
9672 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
9673 max_loop_iterations_int.
9674 (tree_unswitch_outer_loop): Likewise.
9675 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
9676 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
9677
9678 2016-03-30 Richard Biener <rguenther@suse.de>
9679
9680 PR middle-end/70450
9681 * fold-const.c (extract_muldiv_1): Fix thinko in wide_int::from usage.
9682
9683 2016-03-30 Jakub Jelinek <jakub@redhat.com>
9684
9685 PR target/70421
9686 * config/i386/i386.c (ix86_expand_vector_set): Fix up argument order
9687 in gen_blendm expander.
9688
9689 2016-03-30 Nick Clifton <nickc@redhat.com>
9690
9691 PR target/62254
9692 * config/arm/arm.c (arm_reload_out_hi): Add code to handle the
9693 case where we are already provided with an SImode SUBREG.
9694
9695 2016-03-30 H.J. Lu <hongjiu.lu@intel.com>
9696
9697 PR target/70439
9698 * config/i386/i386.c (ix86_expand_epilogue): Properly check
9699 conflict between DRAP register and __builtin_eh_return.
9700
9701 2016-03-30 Michael Matz <matz@suse.de>
9702 Richard Biener <rguenther@suse.de>
9703
9704 PR ipa/12392
9705 * ipa-polymorphic-call.c (struct type_change_info): Change
9706 speculative to an unsigned allowing to limit the work we do.
9707 (csftc_abort_walking_p): New inline function..
9708 (check_stmt_for_type_change): Limit the number of may-defs
9709 skipped for speculative devirtualization to
9710 max-speculative-devirt-maydefs.
9711 * params.def (max-speculative-devirt-maydefs): New param.
9712 * doc/invoke.texi (--param max-speculative-devirt-maydefs): Document.
9713
9714 2016-03-30 Mike Stump <mrs@gcc.gnu.org>
9715
9716 PR target/63890
9717 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use when profiling
9718 and TARGET_MACHO.
9719
9720 2016-03-30 Patrick Palka <ppalka@gcc.gnu.org>
9721
9722 PR tree-optimization/59124
9723 * tree-vrp.c (register_edge_assert_for_2): For NAME != CST1
9724 where NAME = A +- CST2 add the assertion A != (CST1 -+ CST2).
9725
9726 2016-03-29 Jeff Law <law@redhat.com>
9727
9728 * tree-ssa-coalesce.c (struct ssa_conflicts): Fix typo in comment.
9729
9730 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
9731
9732 * tree-ssa-loop-ivcanon.c (try_peel_loop): Change type of peel
9733 to HOST_WIDE_INT.
9734
9735 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
9736
9737 * config/gnu.h (CPP_SPEC, LIB_SPEC): Don't override.
9738 * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt1.o instead of
9739 gcrt0.o if linking dynamically.
9740
9741 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
9742
9743 PR ipa/70283
9744 * ipa-devirt.c (methods_equal_p): New function.
9745 (compare_virtual_tables): Use it.
9746 * cgraph.h (symbol_table::symbol_suffix_separator): Declare.
9747 * cgraphclones.c (clone_function_name_1): Use
9748 symbol_table::symbol_suffix_separator.
9749 * coverage.c (build_var): Likewise.
9750 * symtab.c (symbol_table::symbol_suffix_separator): New.
9751
9752 2016-03-29 Jakub Jelinek <jakub@redhat.com>
9753
9754 PR rtl-optimization/70429
9755 * combine.c (simplify_shift_const_1): For ASHIFTRT don't optimize
9756 (cst1 >> count) >> cst2 into (cst1 >> cst2) >> count if
9757 mode != result_mode.
9758
9759 PR c++/70353
9760 * tree-inline.c (remap_decls): Don't add_local_decl if cfun is null.
9761
9762 PR tree-optimization/70405
9763 * ssa-iterators.h (num_imm_uses): Add missing braces.
9764
9765 2016-03-29 Vladimir Makarov <vmakarov@redhat.com>
9766
9767 PR rtl-optimization/68695
9768 * ira-color.c (allocno_copy_cost_saving): New.
9769 (improve_allocation): Use it.
9770
9771 2016-03-29 Richard Henderson <rth@redhat.com>
9772
9773 PR middle-end/70355
9774 * lower-subreg.c (simplify_subreg_concatn): Reject paradoxical subregs.
9775
9776 2016-03-29 Richard Biener <rguenther@suse.de>
9777
9778 PR middle-end/70424
9779 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Always
9780 use alignment returned by get_pointer_alignment_1 if it is
9781 bigger than BITS_PER_UNIT.
9782 * builtins.c (get_pointer_alignment_1): Do not return true
9783 for alignment extracted from SSA info.
9784
9785 2016-03-28 James Bowman <james.bowman@ftdichip.com>
9786
9787 * config/ft32/ft32.opt (mnodiv): New.
9788 * config/ft32/ft32.md (*divsi3, *modsi3): Qualify with TARGET_NODIV.
9789 * doc/invoke.texi (FT32 Options -mnodiv): New.
9790
9791 2016-03-28 Kirill Yukhin <kirill.yukhin@intel.com>
9792
9793 PR target/70406
9794 * config/i386/i386.md (define_split, andn): Fix modes.
9795
9796 2016-03-26 Richard Biener <rguenther@suse.de>
9797 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9798
9799 PR ipa/70366
9800 * ipa-inline-transform.c (inline_call): Pass opts_for_fn (to->decl)
9801 instead of
9802 TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (to->decl))
9803 as 2nd argument to cl_optimization_restore().
9804
9805 2016-03-25 Richard Henderson <rth@redhat.com>
9806
9807 PR target/70120
9808 * config/aarch64/aarch64.c (aarch64_asm_output_pool_epilogue): New.
9809 * config/aarch64/aarch64-protos.h: Declare it.
9810 * config/aarch64/aarch64.h (ASM_OUTPUT_POOL_EPILOGUE): New.
9811
9812 2016-03-25 Alan Modra <amodra@gmail.com>
9813
9814 PR target/70052
9815 * config/rs6000/constraints.md (j): Simplify.
9816 * config/rs6000/predicates.md (easy_fp_constant): Exclude
9817 decimal float 0.D.
9818 * config/rs6000/rs6000.md (zero_fp): New mode_attr.
9819 (mov<mode>_hardfloat, mov<mode>_hardfloat32, mov<mode>_hardfloat64,
9820 mov<mode>_64bit_dm, mov<mode>_32bit): Use zero_fp in place of j
9821 in all constraint alternatives.
9822 (movtd_64bit_nodm): Delete "j" constraint alternative.
9823
9824 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
9825
9826 * tree-ssa-propagate.c: Enhance docs for
9827 SSA_PROP_NOT_INTERESTING.
9828
9829 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
9830
9831 * doc/extend.texi: Fix typo in documentation to pure attribute.
9832
9833 2016-03-24 John David Anglin <danglin@gcc.gnu.org>
9834
9835 PR target/70319
9836 * config/pa/pa.md (bswapdi2): Use a scratch register.
9837
9838 2016-03-24 Richard Henderson <rth@redhat.com>
9839
9840 PR middle-end/69845
9841 * fold-const.c (extract_muldiv_1): Correct test for multiplication
9842 overflow.
9843
9844 2016-03-24 Uros Bizjak <ubizjak@gmail.com>
9845
9846 * config/i386/i386.md (*anddi3_doubleword): Generate AND insn
9847 using ix86_expand_binary_operator instead of gen_andsi3.
9848
9849 2016-03-24 Richard Biener <rguenther@suse.de>
9850
9851 PR tree-optimization/70396
9852 * tree-vect-stmts.c (vectorizable_comparison): Use
9853 get_vectype_for_scalar_type.
9854
9855 2016-03-24 Richard Biener <rguenther@suse.de>
9856
9857 PR middle-end/70370
9858 * gimplify.c (gimplify_asm_expr): Handle !allows_mem outputs
9859 with register bases.
9860
9861 2016-03-24 Richard Biener <rguenther@suse.de>
9862
9863 PR tree-optimization/70372
9864 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Use
9865 build_all_ones_cst to also handle vector types correctly.
9866
9867 2016-03-23 Michael Meissner <meissner@linux.vnet.ibm.com>
9868
9869 PR target/70381
9870 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Do not set
9871 -mfloat128 here.
9872
9873 2016-03-23 Marek Polacek <polacek@redhat.com>
9874
9875 PR c++/69884
9876 * doc/invoke.texi: Document -Wignored-attributes.
9877
9878 2016-03-23 Bin Cheng <bin.cheng@arm.com>
9879
9880 PR tree-optimization/69042
9881 * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND): Increase the
9882 parameter from 30 to 40.
9883
9884 2016-03-23 Bin Cheng <bin.cheng@arm.com>
9885
9886 PR tree-optimization/69042
9887 * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Add IV cand
9888 for use with constant offset stripped in base.
9889
9890 2016-03-23 Richard Biener <rguenther@suse.de>
9891
9892 PR middle-end/70251
9893 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Adjust
9894 mode compatibility check.
9895 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
9896
9897 2016-03-23 Jeff Law <law@redhat.com>
9898
9899 PR tree-optimization/64058
9900 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field
9901 CONFLICT_COUNT.
9902 (struct ssa_conflicts): Move up earlier in the file.
9903 (conflicts_, var_map_): New static variables.
9904 (initialize_conflict_count): New function to initialize the
9905 CONFLICT_COUNT field for each conflict pair.
9906 (compare_pairs): Lazily initialize the conflict count and use it
9907 as the first tie-breaker.
9908 (sort_coalesce_list): Add new arguments conflicts, map. Initialize
9909 and wipe conflicts_ and map_ around the call to qsort. Remove
9910 special case for 2 coalesce pairs.
9911 * bitmap.c (bitmap_count_unique_bits): New function.
9912 (bitmap_count_bits_in_word): New function, extracted from
9913 bitmap_count_bits.
9914 (bitmap_count_bits): Use bitmap_count_bits_in_word.
9915 * bitmap.h (bitmap_count_unique_bits): Declare it.
9916
9917 2016-03-23 Ilya Enkovich <enkovich.gnu@gmail.com>
9918
9919 PR target/69917
9920 * config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Follow
9921 transparent alias chain for decl assembler name.
9922 * config/sol2.c (solaris_assemble_visibility): Likewise.
9923
9924 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9925
9926 * config/arm/arm1020e.md (1020call_op): Reduce reservation
9927 duration.
9928 (v10_fdivs): Likewise.
9929 (v10_fdivd): Likewise.
9930
9931 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9932
9933 PR driver/70132
9934 * config/arm/driver-arm.c (host_detect_local_cpu): Reorder exit logic
9935 to not call fclose twice on file.
9936
9937 2016-03-23 Jakub Jelinek <jakub@redhat.com>
9938
9939 PR tree-optimization/70354
9940 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
9941 oprnd0 is wider than oprnd1 and there is a cast from the wider
9942 type to oprnd1, mask it with the mask of the narrower type.
9943
9944 PR target/70321
9945 * config/i386/i386.md (*anddi3_doubleword, *<code>di3_doubleword):
9946 Optimize TARGET_STV splitters, if high or low word of last argument
9947 is 0 or -1.
9948
9949 2016-03-22 Jeff Law <law@redhat.com>
9950
9951 PR target/70232
9952 tree-ssa-threadbackward.c
9953 (fsm_find_control_statement_thread_paths): Correctly distinguish
9954 between old style jump threads vs FSM jump threads.
9955
9956 2016-03-22 Ilya Enkovich <enkovich.gnu@gmail.com>
9957
9958 PR target/70302
9959 * config/i386/i386.c (scalar_chain::convert_op): Support
9960 uninitialized register usage case.
9961
9962 2016-03-22 Richard Biener <rguenther@suse.de>
9963
9964 PR middle-end/70251
9965 * genmatch.c (gen_transform): Adjust last parameter to a three-state
9966 int...
9967 (capture::gen_transform): ... to change behavior when substituting
9968 a condition into cond or not-cond expr context.
9969 (dt_simplify::gen_1): Adjust.
9970 * gimple-match-head.c: Include gimplify.h for unshare_expr.
9971 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Revert
9972 last change and instead change to
9973 A + (B vcmp C ? 1 : 0) -> A - (B vcmp C ? -1 : 0).
9974 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
9975
9976 2016-03-22 Anthony Green <green@moxielogic.com>
9977
9978 * config/moxie/moxiebox.h (CC1_SPEC): Define. Fix endianness
9979 issue for moxiebox targets.
9980 (CC1PLUS_SPEC): Ditto.
9981
9982 2016-03-22 Richard Biener <rguenther@suse.de>
9983
9984 PR middle-end/70333
9985 * fold-const.c (extract_muldiv_1): Properly perform multiplication
9986 in the wide type.
9987
9988 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
9989
9990 * config/i386/i386.c (def_builtin): Remove duplicated functionality.
9991
9992 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
9993
9994 PR target/70325
9995 * config/i386/i386.c (def_builtin): Handle
9996 OPTION_MASK_ISA_AVX512VL to be and-ed with other
9997 bits.
9998 (const struct builtin_description bdesc_special_args[]):
9999 Remove duplicate ISA bits.
10000
10001 2016-03-22 Jakub Jelinek <jakub@redhat.com>
10002
10003 PR target/70329
10004 * config/i386/i386.c (ix86_expand_vecop_qihi): Don't bother computing
10005 d.perm[i] for i >= d.nelt. If not full_interleave, compute d.perm[i]
10006 in a way that works also for AVX512BW.
10007
10008 PR target/70300
10009 * config/i386/i386.md (cvtsd2ss splitter): Unpack in destination
10010 instead of source if operands[1] is xmm16 and above and
10011 !TARGET_AVX512VL. Use avx512f_vec_dupv16sf_1 instead of
10012 vec_interleave_lowv4sf if we need to unpack xmm16 and above.
10013
10014 PR c++/70295
10015 * gimplify.c (gimplify_modify_expr): Call gimple_set_no_warning
10016 on assign if (*from_p) is a comparison, set it to
10017 TREE_NO_WARNING (*from_p).
10018
10019 2016-03-21 Jakub Jelinek <jakub@redhat.com>
10020
10021 PR middle-end/70326
10022 * lra.c (restore_scratches): Ignore deleted insns.
10023
10024 2016-03-21 Marc Glisse <marc.glisse@inria.fr>
10025 Jakub Jelinek <jakub@redhat.com>
10026
10027 PR tree-optimization/70317
10028 * match.pd (cmp @0 @0): Pass @0 instead of TYPE_MODE (TREE_TYPE (@0))
10029 to HONOR_NANS.
10030
10031 2016-03-21 Uros Bizjak <ubizjak@gmail.com>
10032
10033 PR target/70327
10034 * config/i386/i386.md (movxi): Use ix86_expand_vector_move instead
10035 of ix86_expand_move.
10036 (movoi): Ditto.
10037 (movti): Use general_operand for operand 1 predicate.
10038
10039 2016-03-21 Martin Liska <mliska@suse.cz>
10040
10041 * hsa-dump.c (dump_hsa_insn_1): dump default branch of SBR
10042 insns.
10043 (dump_hsa_symbol): Dump BRIG offset of hsa_symbols.
10044
10045 2016-03-21 Martin Liska <mliska@suse.cz>
10046
10047 PR ipa/70306
10048 * ipa-icf.c (sem_function::parse): Skip static
10049 constructors and destructors.
10050
10051 2016-03-21 Jakub Jelinek <jakub@redhat.com>
10052
10053 PR target/70296
10054 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If IDENT is
10055 function-like macro, peek following token(s) if it is followed
10056 by CPP_OPEN_PAREN token with optional padding in between, and
10057 if not, don't treat it like a macro.
10058
10059 2016-03-21 Thomas Schwinge <thomas@codesourcery.com>
10060 Alexander Monakov <amonakov@ispras.ru>
10061
10062 * config/nvptx/nvptx.c (nvptx_option_override): Don't emit sorry
10063 for the stabs debug format.
10064
10065 2016-03-21 Richard Biener <rguenther@suse.de>
10066
10067 PR tree-optimization/70310
10068 * tree-vect-generic.c (expand_vector_condition): Fold the built
10069 condition.
10070
10071 2016-03-21 Kirill Yukhin <kirill.yukhin@intel.com>
10072
10073 PR target/70293
10074 * config/i386/sse.md: (define_insn "*vec_dup<mode>"/AVX2):
10075 Block third alternative for AVX-512VL target,
10076
10077 2016-03-21 Martin Liska <mliska@suse.cz>
10078
10079 PR hsa/70234
10080 * hsa-brig.c (emit_function_directives): Mark unemitted
10081 global variables for emission.
10082 * hsa-gen.c (hsa_symbol::hsa_symbol): Initialize a new flag.
10083 (get_symbol_for_decl): Likewise.
10084 * hsa.h (struct hsa_symbol): New flag.
10085
10086 2016-03-21 Richard Biener <rguenther@suse.de>
10087
10088 PR tree-optimization/70288
10089 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Make sure
10090 we do not estimate unsimplified all-constant conditionals or
10091 switches as optimized away.
10092
10093 2016-03-21 Andrey Belevantsev <abel@ispras.ru>
10094
10095 PR rtl-optimization/69102
10096 * sched-deps.c (sched_analyze_insn): Do not set last_args_size field
10097 when we have a readonly dependency context.
10098
10099 2016-03-18 Jeff Law <law@redhat.com>
10100
10101 PR rtl-optimization/70263
10102 * ira.c (memref_used_between_p): Assert we found END in the insn chain.
10103 (update_equiv_regs): When trying to move a store to after the insn
10104 that sets the source of the store, make sure the store occurs after
10105 the insn that sets the source of the store. When successful note
10106 the REG_EQUIV note created in the dump file.
10107
10108 2016-03-16 David Wohlferd <dw@LimeGreenSocks.com>
10109 Bernd Schmidt <bschmidt@redhat.com>
10110
10111 * doc/extend.texi: Document more potential problems with basic asms.
10112
10113 2016-03-18 Bernd Schmidt <bschmidt@redhat.com>
10114
10115 PR rtl-optimization/70278
10116 * lra-constraints.c (split_reg): Handle the case where biggest_mode is
10117 VOIDmode.
10118
10119 2016-03-18 Jason Merrill <jason@redhat.com>
10120
10121 * calls.c (load_register_parameters): Fix zero size sibcall logic.
10122
10123 2016-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
10124
10125 * config/i386/sse.md: Use vpbroadcastq for broadcasting DF
10126 values to 128b regs.
10127
10128 2016-03-18 Ilya Enkovich <enkovich.gnu@gmail.com>
10129
10130 PR tree-optimization/70252
10131 * tree-vect-stmts.c (supportable_widening_operation): Check resulting
10132 boolean vector has a proper number of elements.
10133 (supportable_narrowing_operation): Likewise.
10134
10135 2016-03-18 Tom de Vries <tom@codesourcery.com>
10136
10137 PR ipa/70269
10138 * cgraph.c (cgraph_node::get_body): Set dump_file to NULL after save.
10139
10140 2016-03-18 Jakub Jelinek <jakub@redhat.com>
10141
10142 * reload1.c (emit_input_reload_insns): Use simplify_replace_rtx
10143 instead of replace_rtx for DEBUG_INSNs.
10144
10145 2016-03-18 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
10146
10147 * config/i386/znver1.md : Fix latencies of FP/SSE/AVX
10148 load type reservations.
10149
10150 2016-03-17 John David Anglin <danglin@gcc.gnu.org>
10151
10152 PR target/70188
10153 * config/pa/constraints.md: Revert 2015-02-13 change. Use
10154 define_constraint for "Q" and "T" constraints.
10155
10156 2016-03-17 Evandro Menezes <e.menezes@samsung.com>
10157
10158 Tweak the pipeline model for Exynos M1
10159
10160 * config/aarch64/aarch64.c (exynosm1_tunings): Enable weak prefetching
10161 model.
10162
10163 2016-03-17 David Malcolm <dmalcolm@redhat.com>
10164
10165 PR c/70264
10166 * diagnostic-show-locus.c (compatible_locations_p): Handle the case
10167 where one or both locations aren't within a line_map.
10168
10169 2016-03-17 H.J. Lu <hongjiu.lu@intel.com>
10170
10171 PR driver/70192
10172 * opts.c (finish_options): Don't set flag_pie to the default if
10173 -fpic, -fPIC, -fno-pic or -fno-PIC is used. Set flag_pic to 0
10174 if it is -1.
10175
10176 2016-03-17 Joern Rennecke <joern.rennecke@embecosm.com>
10177
10178 * config/i386/i386.md (*movv4qicc_insn+1..36): Pass
10179 true as ALL_REGS argument to replace_rtx.
10180
10181 2016-03-17 Richard Biener <rguenther@suse.de>
10182
10183 PR debug/70271
10184 * dwarf2out.c (dwarf2out_early_finish): Process deferred_asm_name
10185 last.
10186
10187 2016-03-17 Jakub Jelinek <jakub@redhat.com>
10188
10189 PR target/70245
10190 * rtl.h (replace_rtx): Add ALL_REGS argument.
10191 * rtlanal.c (replace_rtx): Likewise. If true, use REGNO
10192 equality and assert mode is the same, instead of just rtx pointer
10193 equality.
10194 * config/i386/i386.md (mov + arithmetics with load peephole): Pass
10195 true as ALL_REGS argument to replace_rtx.
10196
10197 2016-03-17 Ilya Enkovich <enkovich.gnu@gmail.com>
10198
10199 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Apply
10200 for boolean vector with vector mode only.
10201 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
10202
10203 2016-03-17 Nick Clifton <nickc@redhat.com>
10204
10205 PR target/70162
10206 * config/rx/rx.c (rx_print_integer): Print negative constants in
10207 decimal.
10208
10209 2016-03-17 Jakub Jelinek <jakub@redhat.com>
10210
10211 PR target/70261
10212 * rtlanal.c (replace_rtx): Revert 2016-03-16 change.
10213
10214 2016-03-16 Richard Henderson <rth@redhat.com>
10215 Richard Biener <rguenth@suse.de>
10216
10217 PR middle-end/70240
10218 PR middle-end/68215
10219 PR tree-opt/68714
10220 * gimplify.c (gimplify_expr) [VEC_COND_EXPR]: Gimplify the
10221 first operand as is_gimple_condexpr.
10222
10223 PR middle-end/70240
10224 PR middle-end/68215
10225 Revert r231575
10226 2015-12-11 Eric Botcazou <ebotcazou@adacore.com>
10227 * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
10228 Do not gimplify the result.
10229 (do_unop): Adjust call to tree_vec_extract.
10230 (do_binop): Likewise.
10231 (do_compare): Likewise.
10232 (do_plus_minus): Likewise.
10233 (do_negate): Likewise.
10234 (expand_vector_condition): Likewise.
10235 (do_cond): Likewise.
10236
10237 2016-03-16 Richard Henderson <rth@redhat.com>
10238
10239 PR target/70048
10240 * config/aarch64/aarch64.c (virt_or_elim_regno_p): New.
10241 (aarch64_classify_address): Use it.
10242 (aarch64_legitimize_address): Force all subexpressions of PLUS
10243 into registers. Simplify as (sfp+const)+reg or (reg+reg)+const.
10244
10245 2016-03-16 Jakub Jelinek <jakub@redhat.com>
10246 Richard Biener <rguenth@suse.de>
10247
10248 PR target/70245
10249 * rtlanal.c (replace_rtx): For REG, if from is a REG,
10250 return to even if only REGNO is equal, and assert
10251 mode is the same.
10252
10253 2016-03-11 Jeff Law <law@redhat.com>
10254
10255 PR rtl-optimization/70224
10256 * reorg.c (relax_delay_slots): Pass right argument to CROSSING_JUMP_P.
10257
10258 2016-03-16 Richard Henderson <rth@redhat.com>
10259
10260 PR middle-end/70199
10261 * function.h (struct function): Add has_forced_label_in_static.
10262 * gimplify.c (force_labels_r): Set it.
10263 * lto-streamer-in.c (input_struct_function_base): Read it.
10264 * lto-streamer-out.c (output_struct_function_base): Write it.
10265 * tree-inline.c (has_label_address_in_static_1): Remove.
10266 (copy_forbidden): Remove fndecl parameter; test
10267 has_forced_label_in_static.
10268 (inline_forbidden_p): Update call to copy_forbidden.
10269 (tree_versionable_function_p): Likewise.
10270 * ipa-chkp.c (chkp_instrumentable_p): Likewise.
10271 (chkp_versioning): Likewise.
10272 * tree-inline.h (copy_forbidden): Update decl.
10273
10274 2016-03-16 Marek Polacek <polacek@redhat.com>
10275
10276 PR c/70093
10277 * cgraphunit.c (cgraph_node::expand_thunk): Also build call to the
10278 function being thunked if the result type doesn't have fixed size.
10279 * gimplify.c (gimplify_modify_expr): Also set LHS if the result type
10280 doesn't have fixed size.
10281
10282 2016-03-16 Bin Cheng <bin.cheng@arm.com>
10283
10284 * tree-vect-loop.c (vect_analyze_loop_2): Fix wrong dump info by
10285 reporting malformed loop nest.
10286
10287 2016-03-16 Tom de Vries <tom@codesourcery.com>
10288
10289 PR lto/70187
10290 * ipa-devirt.c (possible_polymorphic_call_targets): Move
10291 nodes.length () == 1 test to before first nodes[0] access.
10292
10293 2016-03-16 Tom de Vries <tom@codesourcery.com>
10294
10295 PR tree-optimization/68715
10296 * graphite-scop-detection.c (scop_detection::merge_sese): Add missing
10297 single_pred_p test.
10298
10299 2016-03-16 Tom de Vries <tom@codesourcery.com>
10300
10301 PR tree-optimization/68809
10302 * graphite-scop-detection.c (same_close_phi_node): Test if result types
10303 are the same.
10304
10305 2016-03-16 Carlos O'Donell <carlos@redhat.com>
10306 Sandra Loosemore <sandra@codesourcery.com>
10307
10308 * doc/extend.texi (Common Function Attributes): Describe ifunc impact
10309 on leaf attribute. Mention ELF interposition problems.
10310
10311 2016-03-16 Alan Modra <amodra@gmail.com>
10312
10313 PR rtl-optimization/69195
10314 PR rtl-optimization/47992
10315 * ira.c (indirect_jump_optimize): Ignore artificial defs.
10316 Add comments.
10317
10318 2016-03-15 Eric Botcazou <ebotcazou@adacore.com>
10319
10320 PR bootstrap/69513
10321 * dwarf2out.c (flush_limbo_die_list): Really flush the limbo list.
10322
10323 2016-03-15 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
10324
10325 * config/avr/avr.md (rotl<mode>3): Set mode for operand 2.
10326
10327 2016-03-15 Jakub Jelinek <jakub@redhat.com>
10328
10329 PR rtl-optimization/70222
10330 * combine.c (simplify_shift_const_1): For A >> B >> C LSHIFTRT
10331 optimization if mode is different from result_mode, queue up masking
10332 of the result in outer_op. Formatting fix.
10333
10334 PR middle-end/70239
10335 * tree-ssa-sccvn.c (VN_INFO_GET): Use safe_grow_cleared instead
10336 of safe_grow.
10337
10338 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
10339
10340 PR rtl-optimization/69032
10341 * sel-sched-ir.c (get_seqno_by_preds): Include both insn and head when
10342 looping backwards over basic block insns.
10343
10344 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
10345
10346 PR target/66660
10347 * sel-sched-ir.c (merge_expr): Avoid changing the speculative pattern
10348 to non-speculative when propagating trap bits.
10349
10350 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
10351
10352 PR rtl-optimization/63384
10353 * sel-sched.c (invoke_aftermath_hooks): Do not decrease issue_more on
10354 DEBUG_INSN_P insns.
10355
10356 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
10357
10358 PR target/64411
10359 * sched-deps.c (get_implicit_reg_pending_clobbers): New function,
10360 factored out from ...
10361 (sched_analyze_insn): ... here.
10362 * sched-int.h (get_implicit_reg_pending_clobbers): Declare it.
10363 * sel-sched-ir.c (setup_id_implicit_regs): New function, use
10364 get_implicit_reg_pending_clobbers in it.
10365 (setup_id_reg_sets): Use setup_id_implicit_regs.
10366 (deps_init_id): Ditto.
10367
10368 2016-03-15 Tom de Vries <tom@codesourcery.com>
10369
10370 PR ipa/70161
10371 * cgraph.c (cgraph_node::get_body): Save, reset and restore
10372 dump_file_name.
10373 * passes.c (execute_one_ipa_transform_pass): Add missing argument to
10374 execute_function_dump.
10375 (execute_one_pass): Don't dump function if it will be dumped after ipa
10376 transform.
10377
10378 2016-03-15 Segher Boessenkool <segher@kernel.crashing.org>
10379
10380 * genrecog.c (match_pattern_2): If pred is NULL don't call
10381 safe_predicate_mode on it.
10382
10383 2016-03-14 Jakub Jelinek <jakub@redhat.com>
10384
10385 PR middle-end/70219
10386 * lra-constraints.c (delete_move_and_clobber): Change assertion
10387 to also allow dregno == 0.
10388
10389 2016-03-14 Richard Henderson <rth@redhat.com>
10390
10391 PR tree-opt/68714
10392 * tree-ssa-reassoc.c (ovce_extract_ops, optimize_vec_cond_expr): New.
10393 (can_reassociate_p): Allow ANY_INTEGRAL_TYPE_P.
10394 (reassociate_bb): Use optimize_vec_cond_expr; avoid
10395 optimize_range_tests, attempt_builtin_copysign and attempt_builtin_powi
10396 on vectors.
10397
10398 2016-03-14 Bernd Schmidt <bschmidt@redhat.com>
10399
10400 PR target/70083
10401 * lra-lives.c (process_bb_lives): Also update biggest mode for hard
10402 regs.
10403 (lra_create_live_ranges_1): initialize hard register biggest_mode to
10404 VOIDmode.
10405 * lra-constraints.c (split_reg): For hard regs, try to find the
10406 biggest single-register mode used in the function.
10407
10408 2016-03-14 Richard Biener <rguenther@suse.de>
10409
10410 PR tree-optimization/56365
10411 * tree-ssa-phiopt.c (minmax_replacement): Handle alternate
10412 constants to compare against.
10413
10414 2016-03-14 Segher Boessenkool <segher@kernel.crashing.org>
10415
10416 PR target/70098
10417 * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
10418 *ctr<mode>_internal5, *ctr<mode>_internal6): Also allow "d" as output.
10419 (define_split for the GPR case): Use int_reg_operand instead of
10420 gpc_reg_operand for the output.
10421
10422 2016-03-14 Tom de Vries <tom@codesourcery.com>
10423
10424 PR tree-optimization/70045
10425 * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard): Unshare
10426 create_empty_if_region_on_edge argument.
10427
10428 2016-03-13 Eric Botcazou <ebotcazou@adacore.com>
10429
10430 * config/arm/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Define.
10431 (STACK_CHECK_PROTECT): Likewise.
10432 * config/i386/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
10433 (STACK_CHECK_PROTECT): Likewise.
10434 * config/rs6000/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
10435 (STACK_CHECK_PROTECT): Likewise.
10436 * config/rs6000/vxworksae.h (STACK_CHECK_PROTECT): Likewise.
10437 * config/sparc/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
10438 (STACK_CHECK_PROTECT): Likewise.
10439
10440 2016-03-12 Andrey Belevantsev <abel@ispras.ru>
10441
10442 PR rtl-optimization/69307
10443 * sel-sched.c (choose_best_pseudo_reg): Properly check for hard
10444 registers in modes that span more than one register.
10445
10446 2016-03-12 Vladimir Makarov <vmakarov@redhat.com>
10447
10448 PR target/69614
10449 * lra-constraints.c (delete_move_and_clobber): New.
10450 (remove_inheritance_pseudos): Use it.
10451
10452 2016-03-12 Eric Botcazou <ebotcazou@adacore.com>
10453
10454 PR ada/70017
10455 * calls.c (emit_library_call_value_1): Clear the ECF_NOTHROW flag if
10456 the libcall is LCT_THROW.
10457 * explow.c (probe_stack_range): Pass LCT_THROW to emit_library_call
10458 for the checking routine.
10459
10460 2016-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
10461
10462 PR target/70131
10463 * config/rs6000/rs6000.md (round32<mode>2_fprs): Do not do the
10464 optimization if we have direct move.
10465 (roundu32<mode>2_fprs): Likewise.
10466
10467 2016-03-11 Bernd Schmidt <bschmidt@redhat.com>
10468
10469 PR target/70123
10470 * lra-remat.c (operand_to_remat): Disallow hard regs in the value t
10471 be rematerialized.
10472 (reg_overlap_for_remat_p): Renamed from input_regno_present_p.
10473 Arguments swapped. All callers changed. Take reg_renumber into
10474 account, and Calculate and compare register ranges for hard regs.
10475
10476 2016-03-11 Jeff Law <law@redhat.com>
10477
10478 PR tree-optimization/70190
10479 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
10480 Handle cases where we can not extract the taken edge, even though we
10481 found a constant value.
10482
10483 PR tree-optimization/64058
10484 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field INDEX.
10485 (num_coalesce_pairs): Move up earlier in file.
10486 (find_coalesce_pair): Initialize the INDEX field for each pair
10487 discovered.
10488 (compare_pairs): No longer sort on the elements in each pair.
10489 Instead break ties with the index of the coalesce pair.
10490
10491 2016-03-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10492
10493 PR target/70002
10494 * config/aarch64/aarch64-protos.h
10495 (aarch64_save_restore_target_globals): New prototype.
10496 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse):
10497 Call the above when popping pragma.
10498 * config/aarch64/aarch64.c (aarch64_save_restore_target_globals):
10499 New function.
10500 (aarch64_set_current_function): Rewrite using the above.
10501
10502 2016-03-11 Jakub Jelinek <jakub@redhat.com>
10503
10504 PR tree-optimization/70177
10505 * gimple-expr.h (extract_ops_from_tree_1): Renamed to ...
10506 (extract_ops_from_tree): ... this. In the 2 argument
10507 overload remove _1 suffix.
10508 * gimple-expr.c (extract_ops_from_tree_1): Renamed to ...
10509 (extract_ops_from_tree): ... this.
10510 * gimple.c (gimple_build_assign, gimple_assign_set_rhs_from_tree):
10511 Adjust callers.
10512 * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
10513 * tree-ssa-forwprop.c (defcodefor_name): Call 3 operand
10514 extract_ops_from_tree instead of 2 operand one.
10515
10516 2016-03-11 Alan Lawrence <alan.lawrence@arm.com>
10517
10518 PR tree-optimization/70013
10519 * tree-sra.c (analyze_access_subtree): Also set grp_unscalarized_data
10520 for constant-pool entries.
10521
10522 2016-03-11 Jakub Jelinek <jakub@redhat.com>
10523
10524 PR rtl-optimization/70174
10525 * expmed.c (store_bit_field_using_insv): Use gen_lowpart_if_possible
10526 followed by gen_lowpart on force_reg instead of just gen_lowpart.
10527
10528 PR tree-optimization/70169
10529 * tree-ssa-loop.c (gen_lsm_tmp_name): Handle FUNCTION_DECL and
10530 LABEL_DECL like VAR_DECL. Emit nothing instead of gcc_unreachable
10531 for unknown codes.
10532
10533 2016-03-11 Ilya Enkovich <enkovich.gnu@gmail.com>
10534 Jakub Jelinek <jakub@redhat.com>
10535
10536 PR target/70160
10537 * config/i386/i386.c (scalar_chain::convert_reg): Skip uses
10538 of uninitialized values.
10539
10540 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10541
10542 * config/s390/s390.md ("trunctddd2"): Turn former define_insn into
10543 define_expand.
10544 ("*trunctddd2"): New pattern definition.
10545 ("trunctdsd2"): Set prep_for_short_prec rounding mode for the
10546 TD->DD truncation.
10547
10548 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10549
10550 * config/s390/s390.md (BFP_RND_*, DFP_RND_*): Add new constant
10551 definitions for BFP and DFP rounding modes.
10552 ("fixuns_truncdddi2", "fixuns_trunctddi2")
10553 ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2")
10554 ("fix_trunc<DSF:mode><GPR:mode>2", "fix_trunc<mode>di2")
10555 ("fix_trunctf<mode>2"): Use the new constants instead of magic
10556 numbers.
10557
10558 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10559
10560 * config/s390/constraints.md: Adjust comment.
10561 ("Y"): Adjust comment. Rename s390_decompose_shift_count to
10562 s390_decompose_addrstyle_without_index.
10563 * config/s390/predicates.md (shift_count_or_setmem_operand):
10564 Rename to setmem_operand.
10565 * config/s390/s390-protos.h
10566 (s390_decompose_shift_count): Rename to
10567 s390_decompose_addrstyle_without_index.
10568 * config/s390/s390.c (s390_decompose_shift_count)
10569 (s390_mem_constraint, print_shift_count_operand)
10570 (print_operand_address, print_operand): Rename
10571 s390_decompose_shift_count to
10572 s390_decompose_addrstyle_without_index and rename
10573 print_shift_count_operand to print_addrstyle_operand troughout the
10574 file.
10575 * config/s390/s390.md ("setmem_long_<P:mode>", "*setmem_long")
10576 ("*setmem_long_and", "*setmem_long_31z", "*setmem_long_and_31z"):
10577 Rename shift_count_or_setmem_operand to setmem_operand.
10578 * config/s390/vx-builtins.md ("vec_insert<mode>")
10579 ("vec_promote<mode>"): Replace shift_count_or_setmem_operand with
10580 nonmemory_operand.
10581
10582 2016-03-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10583
10584 PR target/70168
10585 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
10586 Handle overlapping retval and newval.
10587
10588 2016-03-10 Nick Clifton <nickc@redhat.com>
10589
10590 PR target/7044
10591 * config/aarch64/aarch64.c
10592 (aarch64_override_options_after_change_1): When forcing
10593 flag_omit_frame_pointer to be true, use a special value that can
10594 be detected if this function is called again, thus preventing
10595 flag_omit_leaf_frame_pointer from being forced to be false.
10596
10597 2016-03-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10598
10599 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
10600 Set x_flag_omit_leaf_frame_pointer when handling
10601 -momit-leaf-frame-pointer.
10602
10603 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
10604
10605 PR lto/69589
10606 * cgraph.c (cgraph_node::dump): Dump split_part and
10607 indirect_call_target.
10608 * cgraph.h (cgraph_node): Add indirect_call_target flag.
10609 * ipa.c (has_addr_references_p): Cleanup.
10610 (is_indirect_call_target_p): New.
10611 (walk_polymorphic_call_targets): Do not mark virtuals that may be
10612 called indirectly as local.
10613 (symbol_table::remove_unreachable_nodes): Compute indirect_call_target.
10614
10615 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
10616
10617 PR ipa/69630
10618 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
10619 on cxa_pure_virtual.
10620
10621 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
10622
10623 PR lto/69589
10624 * tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL.
10625
10626 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
10627
10628 PR lto/69589
10629 * tree.c (need_assembler_name_p): Only record main variant type names.
10630
10631 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
10632
10633 PR target/70113.
10634 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_843419_DEFAULT):
10635 Always define to 0 or 1.
10636 (TARGET_FIX_ERR_A53_843419): New macro.
10637 * config/aarch64/aarch64-elf-raw.h
10638 (TARGET_FIX_ERR_A53_843419_DEFAULT): Update for above changes.
10639 * config/aarch64/aarch64-linux.h: Likewise.
10640 * config/aarch64/aarch64.c
10641 (aarch64_override_options_after_change_1): Do not default
10642 aarch64_nopcrelative_literal_loads to true if Cortex-A53 erratum
10643 843419 is on.
10644 (aarch64_attributes): Handle fix-cortex-a53-843419.
10645 (aarch64_can_inline_p): Likewise.
10646 * config/aarch64/aarch64.opt (aarch64_fix_a53_err843419): Save.
10647
10648 2016-03-10 Alan Lawrence <alan.lawrence@arm.com>
10649 Jakub Jelinek <jakub@redhat.com>
10650
10651 * common.opt (funconstrained-commons, flag_unconstrained_commons): New.
10652 * tree.c (array_at_struct_end_p): Do not limit to size of decl for
10653 DECL_COMMONS if flag_unconstrained_commons is set.
10654 * tree-dfa.c (get_ref_base_and_extent): Likewise.
10655 * doc/invoke.texi (Optimize Options): Add -funconstrained-commons.
10656 (funconstrained-commons): Document.
10657
10658 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
10659
10660 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add
10661 aarch64-fusion-pairs.def and aarch64-tuning-flags.def
10662
10663 2016-03-10 Ilya Enkovich <enkovich.gnu@gmail.com>
10664
10665 * tree-vect-stmts.c (vectorizable_mask_load_store): Check mask
10666 has a proper number of elements.
10667
10668 2016-03-10 Alan Modra <amodra@gmail.com>
10669
10670 PR rtl-optimization/69195
10671 PR rtl-optimization/47992
10672 * ira.c (recorded_label_ref): Delete.
10673 (update_equiv_regs): Return void.
10674 (indirect_jump_optimize): New function.
10675 (ira): Call indirect_jump_optimize and delete_trivially_dead_insns
10676 before regstat_compute_ri. Don't rebuild_jump_labels here.
10677 Delete update_regstat.
10678
10679 2016-03-10 Richard Biener <rguenther@suse.de>
10680
10681 PR tree-optimization/70128
10682 * tree-ssa-structalias.c (set_uids_in_ptset): Set
10683 vars_contains_nonlocal for any FUNCTION_DECL or LABEL_DECL.
10684
10685 2016-03-09 Jakub Jelinek <jakub@redhat.com>
10686
10687 PR tree-optimization/70152
10688 * tree-sra.c (replace_removed_params_ssa_names): Copy over
10689 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from old_name to new_name.
10690
10691 PR target/70086
10692 * config/i386/i386.md (truncdfsf2 splitter): Use gen_vec_concatv2df
10693 instead of gen_sse2_loadlpd.
10694 * config/i386/sse.md (*vec_concatv2df): Rename to...
10695 (vec_concatv2df): ... this.
10696
10697 PR tree-optimization/70127
10698 * fold-const.c (operand_equal_p): Revert the 2015-10-28 change.
10699
10700 2016-03-09 David Malcolm <dmalcolm@redhat.com>
10701
10702 PR c/68473
10703 PR c++/70105
10704 * diagnostic-show-locus.c (compatible_locations_p): New function.
10705 (layout::layout): Sanitize ranges using compatible_locations_p.
10706
10707 2016-03-09 David Malcolm <dmalcolm@redhat.com>
10708
10709 PR c/68473
10710 PR c++/70105
10711 * diagnostic-show-locus.c (layout_range::layout_range): Replace
10712 location_range param with three const expanded_locations * and a
10713 bool.
10714 (layout::layout): Replace call to
10715 rich_location::lazily_expand_location with get_expanded_location.
10716 Extract the range and perform location expansion here, passing
10717 the results to the layout_range ctor.
10718 * diagnostic.c (source_range::debug): Delete.
10719 * diagnostic.h (diagnostic_expand_location): Reimplement in terms
10720 of rich_location::get_expanded_location.
10721 * gcc-rich-location.c (get_range_for_expr): Delete.
10722 (gcc_rich_location::add_expr): Reimplement to avoid the
10723 rich_location::add_range overload that took a location_range,
10724 passing a location_t instead.
10725
10726 2016-03-09 Richard Biener <rguenther@suse.de>
10727 Jakub Jelinek <jakub@redhat.com>
10728
10729 PR tree-optimization/70138
10730 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
10731 Also skip vect_double_reduction_def.
10732
10733 2016-03-09 Jakub Jelinek <jakub@redhat.com>
10734
10735 PR target/70049
10736 * config/i386/sse.md (*vec_extract<mode>): Use %0 instead of %k0
10737 if the operand is "m".
10738
10739 2016-03-09 Nathan Sidwell <nathan@acm.org>
10740
10741 * config/nvptx/nvptx.c (nvptx_option_override): Don't kill debug level.
10742
10743 2016-03-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
10744
10745 * config/i386/i386.c (processor_target_table): Fix cost table
10746 intialization order for znver1.
10747
10748 2016-03-08 Jakub Jelinek <jakub@redhat.com>
10749
10750 * ipa-polymorphic-call.c (walk_ssa_copies): Fix spelling
10751 - becuase -> because.
10752 * ipa-reference.c (ignore_module_statics): Likewise.
10753 * cgraph.c (cgraph_node::get_body): Likewise.
10754 * ipa-inline.c (early_inliner): Likewise.
10755 * ipa-devirt.c (types_same_for_odr): Likewise.
10756 * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
10757 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Likewise.
10758
10759 2016-03-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10760
10761 * tree-ssa-math-opts.c: Fix typo in comment.
10762
10763 2016-03-08 Jakub Jelinek <jakub@redhat.com>
10764
10765 PR target/70110
10766 * config/i386/i386.c (scalar_chain::make_vector_copies,
10767 scalar_chain::convert_reg): Call end_sequence in between
10768 get_insns and emit_conversion_insns rather than after both
10769 calls.
10770
10771 2016-03-07 Uros Bizjak <ubizjak@gmail.com>
10772
10773 PR target/70064
10774 * config/i386/i386.h (machine_function): Add
10775 pc_thunk_call_expanded flag.
10776 (ix86_pc_thunk_call_expanded): New define.
10777 * config/i386/i386.md (set_got, set_got_labelled): New expanders.
10778 (*set_got): Rename insn pattern from set_got.
10779 (*set_got_labelled): Rename inst pattern from set_got_labelled.
10780 * config/i386/i386.c (ix86_compute_frame_layout): Use
10781 ix86_pc_thunk_call_expanded to prevent red-zone.
10782
10783 2016-03-07 Martin Jambor <mjambor@suse.cz>
10784
10785 * hsa.h (hsa_get_ctor_statements): Declare.
10786 (hsa_get_dtor_statements): Likewise.
10787 (hsa_get_kernel_dispatch_type): Likewise.
10788 * hsa.c (hsa_get_ctor_statements): New function.
10789 (hsa_get_dtor_statements): Likewise.
10790 (hsa_get_kernel_dispatch_type): Likewise.
10791 * hsa-brig.c (hsa_cdtor_statements): Removed.
10792 (hsa_output_libgomp_mapping): Use hsa_get_ctor_statements and
10793 hsa_get_dtor_statements.
10794 * hsa-gen.c (hsa_kernel_dispatch_type): Removed.
10795 (get_hsa_kernel_dispatch_offset): Use hsa_get_kernel_dispatch_type.
10796
10797 2016-03-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
10798
10799 * config/arm/arm-cores.def (cortex-r8): New.
10800 * config/arm/arm-tables.opt (cortex-r8): Regenerate.
10801 * config/arm/arm-tune.md: Likewise.
10802 * doc/invoke.texi: Add cortex-r8 to list of cpu values.
10803
10804 2016-03-07 Martin Sebor <msebor@redhat.com>
10805
10806 PR rtl-optimization/19705
10807 * doc/invoke.texi (Options That Control Optimization): Clarify
10808 -fno-branch-count-reg.
10809
10810 2016-02-26 Richard Biener <rguenther@suse.de>
10811 Jeff Law <law@redhat.com>
10812
10813 PR tree-optimization/69740
10814 * cfghooks.c (remove_edge): Request loop fixups if we delete
10815 an edge that might turn an irreducible loop into a natural
10816 loop.
10817 * cfgloop.h (check_verify_loop_structure): Clear LOOPS_NEED_FIXUP.
10818 Move after definition of loops_state_clear.
10819
10820 2016-03-07 Bin Cheng <bin.cheng@arm.com>
10821
10822 PR rtl-optimization/69052
10823 * rtlanal.c (commutative_operand_precedence): Set higher precedence
10824 to CONST_WIDE_INT.
10825
10826 2016-03-07 Tom de Vries <tom@codesourcery.com>
10827
10828 PR tree-optimization/70116
10829 * tree-ssa-tail-merge.c (merge_stmts_p): New function, handling
10830 is_tm_ending stmts and ubsan/asan internal functions.
10831 (find_duplicate): Use it. Don't test is_tm_ending here.
10832
10833 2016-03-07 Richard Biener <rguenther@suse.de>
10834
10835 PR tree-optimization/70115
10836 * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Remove.
10837 (propagate_constants_for_unrolling): Use replace_uses_by.
10838
10839 2016-03-07 Nathan Sidwell <nathan@codesourcery.com>
10840
10841 PR middle-end/69916
10842 * omp-low.c (struct oacc_loop): Add ifns.
10843 (new_oacc_loop_raw): Initialize it.
10844 (finish_oacc_loop): Clear mask & flags if no ifns.
10845 (oacc_loop_discover_walk): Count IFN_GOACC_LOOP calls.
10846 (oacc_loop_xform_loop): Add ifns arg & adjust.
10847 (oacc_loop_process): Adjust oacc_loop_xform_loop call.
10848
10849 2016-03-07 Richard Henderson <rth@redhat.com>
10850
10851 PR rtl-opt/70061
10852 * tree-outofssa.c (emit_partition_copy): Flush pending stack adjust.
10853 (insert_value_copy_on_edge): Likewise.
10854
10855 2016-03-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10856
10857 * config/arm/arm_neon.h: Show error if using with soft-float ABI.
10858
10859 2016-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10860
10861 PR target/62281
10862 * config/i386/sol2.h (STACK_REALIGN_DEFAULT): Define.
10863
10864 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
10865
10866 * config/i386/i386.c (znver1_cost): Fix Multiply cost.
10867
10868 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
10869
10870 Fix sseimul type attribute.
10871 * config/i386/znver1.md
10872 (znver1_sseimul, znver1_sseimul_avx256, znver1_sseimul_load,
10873 znver1_sseimul_avx256_load) : Fix the type attribute.
10874 (znver1_sseimul_di, znver1_sseimul_load_di): Fix type attribute,
10875 pipe usage and latency.
10876
10877 2016-03-05 Jakub Jelinek <jakub@redhat.com>
10878
10879 PR c++/70084
10880 * tree-inline.c (copy_tree_body_r): When cancelling ADDR_EXPR
10881 of INDIRECT_REF and ADDR_EXPR changed type, fold_convert it
10882 to the right type.
10883
10884 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
10885
10886 PR c/69973
10887 * targhooks.c (default_vector_alignment): Limit to MAX_OFILE_ALIGNMENT.
10888
10889 PR rtl-optimization/69941
10890 * postreload.c (reload_combine_recognize_pattern): Ensure all uses of
10891 the reg share its mode.
10892
10893 2016-03-04 Jeff Law <law@redhat.com>
10894
10895 PR tree-optimization/69196
10896 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
10897 If the both SSA_NAMEs are anonymous, then consider them unassociated
10898 and include the PHI in the statement count.
10899
10900 2016-03-05 Tom de Vries <tom@codesourcery.com>
10901
10902 * omp-low.c (check_omp_nesting_restrictions): Check for non-oacc
10903 construct in oacc routine. Check for oacc region in oacc routine.
10904
10905 2016-03-04 Jakub Jelinek <jakub@redhat.com>
10906
10907 PR target/70062
10908 * config/i386/i386.c (decide_alg): Add RECUR argument. Revert
10909 2016-02-22 changes, instead don't recurse if RECUR is already true.
10910 Don't change *dynamic_check if RECUR. Adjust recursive caller
10911 to pass true to the new argument.
10912 (ix86_expand_set_or_movmem): Adjust decide_alg caller.
10913
10914 PR target/70059
10915 * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
10916 <extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask): Formatting
10917 fixes.
10918 (vec_set_hi_<mode><mask_name>): Likewise. Swap VEC_CONCAT operands.
10919
10920 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
10921
10922 PR rtl-optimization/57676
10923 * lra-assigns.c (lra_assign): Guard test for maximum iterations
10924 with flag_checking.
10925
10926 2016-03-04 Ilya Enkovich <enkovich.gnu@gmail.com>
10927
10928 * tree-vect-patterns.c (search_type_for_mask): Handle
10929 comparison of booleans.
10930
10931 2016-03-04 Jakub Jelinek <jakub@redhat.com>
10932
10933 * doc/extend.texi (__builtin_alloca, __builtin_alloca_with_align):
10934 Fix @xref usage.
10935
10936 PR debug/69947
10937 * dwarf2out.c (prune_unused_types_walk_loc_descr): Handle
10938 all other ops that have dw_val_class_die_ref operands,
10939 and DW_OP_GNU_entry_value.
10940
10941 2016-03-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10942
10943 PR rtl-optimization/69904
10944 * config/arm/arm.c (arm_cannot_copy_insn_p):
10945 Return true for load-exclusive instructions.
10946
10947 2016-03-03 Jakub Jelinek <jakub@redhat.com>
10948
10949 PR target/70021
10950 * tree-vect-stmts.c (vect_mark_relevant): Remove USED_IN_PATTERN
10951 argument, if STMT_VINFO_IN_PATTERN_P (stmt_info), always mark
10952 the pattern no matter if it is used just by non-pattern, pattern
10953 or mix thereof.
10954 (process_use, vect_mark_stmts_to_be_vectorized): Adjust callers.
10955 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
10956 oprnd1 def_stmt is in pattern, don't look through it.
10957
10958 2016-03-03 Marek Polacek <polacek@redhat.com>
10959
10960 PR middle-end/70050
10961 * match.pd (X % -Y): Add INTEGRAL_TYPE_P check.
10962
10963 2016-03-03 Martin Liska <mliska@suse.cz>
10964
10965 PR tree-optimization/70043
10966 * tree-vect-loop.c (optimize_mask_stores): Move iterator to
10967 previous statement if we see a debug statement.
10968
10969 2016-03-03 Richard Biener <rguenther@suse.de>
10970
10971 PR tree-optimization/55936
10972 * tree-vrp.c (compare_name_with_value): Add use_equiv_p
10973 parameter and guard unsafe equivalence use.
10974 (vrp_evaluate_conditional_warnv_with_ops): Always use
10975 safe equivalences but not via the quadratic compare_names
10976 helper.
10977
10978 2016-03-03 Michael Collison <michael.collison@linaro.org>
10979
10980 PR target/70014
10981 * config/arm/arm.md (*subsi3_carryin_const): Change predicate
10982 for operand 1 to s_register_operand. Change predicate for operand
10983 2 to arm_not_immediate_operand.
10984
10985 2016-03-02 H.J. Lu <hongjiu.lu@intel.com>
10986
10987 * doc/tm.texi: Regenerated.
10988
10989 2016-03-02 Richard Henderson <rth@redhat.com>
10990
10991 PR rtl-opt/67145
10992 * simplify-rtx.c (simplify_plus_minus): Allow reassoc without
10993 simplification when all args are positive non-fixed registers.
10994
10995 2016-03-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
10996
10997 * target.def (lra_p): Specify that new ports should use LRA.
10998
10999 2016-03-02 Jakub Jelinek <jakub@redhat.com>
11000
11001 PR libgomp/69555
11002 * gimplify.c (gimplify_decl_expr): For decls with REFERENCE_TYPE, also
11003 gimplify_type_sizes the type they refer to.
11004 (omp_notice_variable): Handle reference vars to VLAs.
11005 * omp-low.c (lower_omp_target): Emit setup of OMP_CLAUSE_PRIVATE
11006 reference to VLA decls in the second pass instead of first pass.
11007
11008 2016-03-02 Tom de Vries <tom@codesourcery.com>
11009
11010 PR tree-optimization/68659
11011 * graphite-isl-ast-to-gimple.c (collect_all_ssa_names): Handle
11012 new_expr == NULL_TREE.
11013 (get_new_name): Handle ADDR_EXPR.
11014
11015 2016-03-02 Bin Cheng <bin.cheng@arm.com>
11016
11017 PR rtl-optimization/69052
11018 * loop-invariant.c (canonicalize_address): New function.
11019 (inv_can_prop_to_addr_use): Check validity of address expression
11020 which is canonicalized by above function.
11021
11022 2016-03-02 Alan Modra <amodra@gmail.com>
11023
11024 PR ipa/69990
11025 * ipa-icf.c (sem_variable::merge): Do not merge an alias with
11026 larger alignment.
11027
11028 2016-03-02 Jakub Jelinek <jakub@redhat.com>
11029
11030 PR target/70028
11031 * config/i386/i386.md (kmovw): Move m constraint to 2nd alternative.
11032 (*movhi_internal): Put mask moves from and to memory separately
11033 from moves from/to GPRs.
11034
11035 2016-03-02 Richard Biener <rguenther@suse.de>
11036
11037 * genmatch.c (dt_node::gen_kids): Fix match code-gen for embedded
11038 GENERIC expressions in GIMPLE.
11039
11040 2016-03-02 Richard Biener <rguenther@suse.de>
11041
11042 * config/i386/i386.c (type_natural_mode): Fix typo.
11043
11044 2016-03-02 Nick Clifton <nickc@redhat.com>
11045
11046 * config.gcc (mep-*-elf): Add newlib-stdint.h to tm_file.
11047
11048 2016-03-02 Richard Biener <rguenther@suse.de>
11049 Uros Bizjak <ubizjak@gmail.com>
11050
11051 PR target/67278
11052 * config/i386/i386.c (type_natural_mode): Handle XFmode vectors.
11053
11054 2016-03-02 Richard Biener <rguenther@suse.de>
11055
11056 PR middle-end/67278
11057 * tree-cfg.c (verify_expr): Adjust BIT_FIELD_REF case.
11058
11059 2016-03-02 Marek Polacek <polacek@redhat.com>
11060
11061 PR c/67854
11062 * gimplify.c (gimplify_va_arg_expr): Use expanded location for the
11063 "is promoted to" warning.
11064
11065 2016-03-01 DJ Delorie <dj@redhat.com>
11066
11067 * config.gcc: Deprecate mep-*.
11068
11069 2016-03-01 Vladimir Makarov <vmakarov@redhat.com>
11070
11071 PR middle-end/70025
11072 * lra-constraints.c (regno_val_use_in): New.
11073 (match_reload): Use it instead of regno_use_in.
11074
11075 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
11076
11077 PR rtl-optimization/70007
11078 * gcse.c (compute_ld_motion_mems): Tidy up and also invalidate memory
11079 references present in REG_EQUAL notes attached to non-SET patterns.
11080
11081 2016-03-01 Jeff Law <law@redhat.com>
11082
11083 PR tree-optimization/69196
11084 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
11085 Appropriately clamp the number of statements to copy when the
11086 thread path does not traverse a loop backedge.
11087
11088 PR tree-optimization/69196
11089 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
11090 Do count some PHIs in the thread path against the insn count. Decrease
11091 final statement count by one as the control statement in the last
11092 block will get removed. Remove special cased code for handling PHIs
11093 in the last block.
11094
11095 2016-03-01 Uros Bizjak <ubizjak@gmail.com>
11096
11097 PR target/70027
11098 * config/i386/i386.c (ix86_output_call_insn): Add -masm=intel
11099 asm dialect alternatives to explicit GOTPCREL calls.
11100
11101 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
11102
11103 PR ada/70017
11104 * ira.c (do_reload): Issue warning for generic stack checking here...
11105 * reload1.c (reload): ...instead of here and streamline it.
11106
11107 2016-03-01 Nick Clifton <nickc@redhat.com>
11108
11109 * config.gcc (cr16-*-elf): Add newlib-stdint.h to tm_file.
11110
11111 2016-03-01 Richard Biener <rguenther@suse.de>
11112
11113 PR tree-optimization/69983
11114 * tree-chrec.c (eq_evolutions_p): Handle conversions, compare
11115 types and fall back to operand_equal_p.
11116
11117 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11118
11119 Revert
11120 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11121
11122 * config/s390/constraints.md ("jm8"): New constraint.
11123 * config/s390/predicates.md ("const_int_8bitset_operand"): New
11124 predicate.
11125 * config/s390/s390.md ("*setmem_long", "*setmem_long_and"): Merge
11126 into ...
11127 ("*setmem_long<setmem_and>"): New pattern.
11128 ("*setmem_long_31z", "*setmem_long_and_31z"): Merge
11129 into ...
11130 ("*setmem_long_31z<setmem_and>"): New pattern.
11131 * config/s390/subst.md ("setmem_31z_subst", "setmem_and_subst"):
11132 New substitution rules with the required attributes.
11133
11134
11135 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11136
11137 Revert
11138 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11139
11140 * gensupport.c (process_substs_on_one_elem): Split loop to
11141 complete mark_operands_used_in_match_dup on all expressions in the
11142 vector first.
11143 (adjust_operands_numbers): Inline into process_substs_on_one_elem
11144 and remove function.
11145
11146 2016-03-01 Richard Biener <rguenther@suse.de>
11147
11148 PR middle-end/70022
11149 * fold-const.c (fold_indirect_ref_1): Fix range checking for
11150 vector BIT_FIELD_REF extract.
11151
11152 2016-03-01 Richard Biener <rguenther@suse.de>
11153
11154 PR tree-optimization/69994
11155 * tree-ssa-reassoc.c (ops_equal_values_p): Handle missing case.
11156
11157 2016-03-01 Ilya Enkovich <enkovich.gnu@gmail.com>
11158
11159 PR tree-optimization/69956
11160 * tree-vect-stmts.c (supportable_widening_operation): Support
11161 multi-step conversion of boolean vectors.
11162 (supportable_narrowing_operation): Likewise.
11163
11164 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11165
11166 * config/s390/s390.c (s390_decompose_address): Don't accept SImode
11167 anymore.
11168
11169 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11170
11171 * config/s390/subst.md (DSI_VI): New mode iterator.
11172 ("addr_style_op_subst"): Use DSI_VI instead of DSI.
11173 * config/s390/vector.md ("vec_set<mode>"): Move expander before
11174 the insn definition.
11175 ("*vec_set<mode>"): Change predicate and add alternative to
11176 support only either register or const_int operands as element
11177 selector.
11178 ("*vec_set<mode>_plus"): New pattern to support reg + const_int
11179 operands.
11180 ("vec_extract<mode>"): New expander.
11181 ("*vec_extract<mode>"): New insn definition supporting reg and
11182 const_int element selectors.
11183 ("*vec_extract<mode>_plus"): New insn definition supporting
11184 reg+const_int element selectors.
11185 ("rotl<mode>3", "ashl<mode>3", "ashr<mode>3"): Merge into the
11186 following expander+insn definition.
11187 ("<vec_shifts_name><mode>3"): New expander.
11188 ("*<vec_shifts_name><mode>3<addr_style_op>"): New insn definition.
11189
11190 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11191
11192 * config/s390/s390.md ("*tabort_1"): Change predicate to
11193 nonmemory_operand. Add a second alternative to cover
11194 register as well as const int operands.
11195 ("*tabort_1_plus"): New pattern definition.
11196
11197 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11198
11199 * config/s390/s390.md ("*ashrdi3_cc_31")
11200 ("*ashrdi3_cconly_31""*ashrdi3_cc_31_and")
11201 ("*ashrdi3_cconly_31_and", "*ashrdi3_31_and", "*ashrdi3_31"):
11202 Merge insn definitions into ...
11203 ("*ashrdi3_31<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
11204 New pattern definition.
11205 ("*ashr<mode>3_cc", "*ashr<mode>3_cconly", "ashr<mode>3", )
11206 ("*ashr<mode>3_cc_and", "*ashr<mode>3_cconly_and")
11207 ("*ashr<mode>3_and"): Merge insn definitions into ...
11208 ("*ashr<mode>3<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
11209 New pattern definition.
11210 * config/s390/subst.md ("addr_style_op_cc_subst")
11211 ("masked_op_cc_subst", "setcc_subst", "cconly_subst"): New
11212 substitutions patterns plus attributes.
11213 Add ashiftrt to SUBST iterator.
11214
11215 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11216
11217 * config/s390/s390.md ("<shift><mode>3"): Change predicate of
11218 op2 to nonmemory_operand.
11219 ("*<shift>di3_31", "*<shift>di3_31_and"):
11220 Merge into single pattern definition ...
11221 ("*<shift>di3_31<addr_style_op><masked_op>"): New pattern.
11222 ("*<shift><mode>3", "*<shift><mode>3_and"): Merge into single
11223 pattern definition ...
11224 ("*<shift><mode>3<addr_style_op><masked_op>"): New pattern.
11225 * config/s390/subst.md: Add ashift and lshiftrt to SUBST
11226 iterator.
11227
11228 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11229
11230 * config/s390/predicates.md (const_int_6bitset_operand): New
11231 predicate.
11232 * config/s390/s390.md: Include subst.md.
11233 ("rotl<mode>3"): New expander.
11234 ("rotl<mode>3", "*rotl<mode>3_and"): Merge insn definitions into
11235 ...
11236 ("*rotl<mode>3<addr_style_op><masked_op>"): New insn definition.
11237 * config/s390/subst.md: New file.
11238
11239 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11240
11241 * config/s390/s390.md ("op_type", "atype", "length" attributes):
11242 Remove RRR type. It doesn't really exist.
11243 ("RRer", "f0", "v0", "vf", "vd", "op1", "Rf"): Remove mode
11244 attributes.
11245 ("BFP", "DFP", "nDSF", "nDFDI"): Add mode attributes.
11246 ("*cmp<mode>_ccs", "floatdi<mode>2", "add<mode>3")
11247 ("*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3")
11248 ("*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3")
11249 ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2")
11250 ("*abs<mode>2", "*negabs<mode>2", "sqrt<mode>2"): Override
11251 `enabled' attribute.
11252
11253 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11254
11255 * gensupport.c (process_substs_on_one_elem): Split loop to
11256 complete mark_operands_used_in_match_dup on all expressions in the
11257 vector first.
11258 (adjust_operands_numbers): Inline into process_substs_on_one_elem
11259 and remove function.
11260
11261 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
11262
11263 PR target/69706
11264 * config/sparc/sparc.c (NWORDS_UP): Rename to...
11265 (CEIL_NWORDS): ...this. Use CEIL macro.
11266 (compute_fp_layout): Adjust to above renaming.
11267 (function_arg_union_value): Likewise.
11268 (sparc_arg_partial_bytes): Likewise.
11269 (sparc_function_arg_advance): Likewise.
11270
11271 2016-02-29 Jeff Law <law@redhat.com>
11272
11273 PR tree-optimization/70005
11274 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Handle case
11275 where an object with a boolean range is compared against a value
11276 outside [0..1].
11277
11278 PR tree-optimization/69999
11279 * gimple-ssa-split-paths.c (split_paths): When duplicating a block
11280 with an outgoing edge marked with EDGE_IRREDUCIBLE_LOOP, schedule
11281 loop cleanups.
11282
11283 2016-02-29 Richard Biener <rguenther@suse.de>
11284
11285 PR tree-optimization/69994
11286 * tree-ssa-reassoc.c (gimple_nop_conversion_p): New function.
11287 (get_unary_op): Look through nop conversions.
11288 (ops_equal_values_p): New function, look for equality diregarding
11289 nop conversions.
11290 (eliminate_plus_minus_pair): Use ops_equal_values_p
11291 (repropagate_negates): Do not use get_unary_op here.
11292
11293 2016-02-29 Martin Liska <mliska@suse.cz>
11294
11295 * system.h: Poison ENABLE_CHECKING macro.
11296
11297 2016-02-29 Martin Liska <mliska@suse.cz>
11298
11299 * hsa-gen.c (gen_body_from_gimple): Dump only if TDF_DETAILS
11300 is presented in dump flags.
11301 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
11302 (hsa_regalloc): Likewise.
11303
11304 2016-02-19 Richard Biener <rguenther@suse.de>
11305
11306 PR tree-optimization/69980
11307 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Update
11308 permutation of those we need to keep.
11309
11310 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
11311
11312 PR target/69706
11313 * config/sparc/sparc.c (ROUND_ADVANCE): Rename to...
11314 (NWORDS_UP): ...this
11315 (init_cumulative_args): Minor tweaks.
11316 (sparc_promote_function_mode): Likewise.
11317 (scan_record_type): Delete.
11318 (traverse_record_type): New function template.
11319 (classify_data_t): New structure type.
11320 (classify_registers): New inline function.
11321 (function_arg_slotno): In 64-bit mode, bail out early if FP slots are
11322 exhausted. Instantiate traverse_record_type on classify_registers and
11323 deal with the case of a structure passed in slot #15 with no FP field
11324 in the first word.
11325 (assign_data_t): New structure type.
11326 (compute_int_layout): New static function.
11327 (compute_fp_layout): Likewise.
11328 (count_registers): New inline function.
11329 (assign_int_registers): New static function.
11330 (assign_fp_registers): Likewise.
11331 (assign_registers): New inline function.
11332 (function_arg_record_value_1): Delete.
11333 (function_arg_record_value_2): Likewise.
11334 (function_arg_record_value_3): Likewise.
11335 (function_arg_record_value): Adjust to above changes. Instantiate
11336 traverse_record_type on count_registers to first count the number of
11337 registers to be used and then on assign_registers to assign them.
11338 (function_arg_union_value): Adjust to above renaming.
11339 (sparc_function_arg_1); Minor tweaks. Remove commented out code.
11340 (sparc_arg_partial_bytes): Adjust to above renaming. Deal with the
11341 case of a structure passed in slot #15
11342 (sparc_function_arg_advance): Likewise.
11343 (function_arg_padding): Minor tweak.
11344
11345 2016-02-29 Richard Biener <rguenther@suse.de>
11346
11347 PR tree-optimization/69720
11348 * tree-vect-loop.c (get_initial_def_for_reduction): Avoid
11349 the adjustment_def path for possibly vectorized defs.
11350 (vect_create_epilog_for_reduction): Handle vectorized initial
11351 defs properly.
11352
11353 2016-02-28 Eric Botcazou <ebotcazou@adacore.com>
11354
11355 * config/i386/cygming.h (STACK_REALIGN_DEFAULT): Define.
11356
11357 2016-02-27 Jeff Law <law@redhat.com>
11358
11359 Revert
11360 2016-02-26 Richard Biener <rguenther@suse.de>
11361 Jeff Law <law@redhat.com>
11362
11363 PR tree-optimization/69740
11364 * cfghooks.c (remove_edge): Request loop fixups if we delete
11365 an edge that might turn an irreducible loop into a natural
11366 loop.
11367
11368 2016-02-27 Jakub Jelinek <jakub@redhat.com>
11369
11370 PR rtl-optimization/69896
11371 * tree-vect-generic.c (get_compute_type): Avoid single element
11372 vector types.
11373
11374 2016-02-26 Evandro Menezes <e.menezes@samsung.com>
11375
11376 Rename the AArch64 tuning option and related functions to enable the
11377 Newton series for the reciprocal square root to reflect its
11378 approximative characteristic.
11379
11380 * config/aarch64/aarch64-protos.h (aarch64_emit_swrsqrt): Rename
11381 function to "aarch64_emit_approx_rsqrt".
11382 * config/aarch64/aarch64-tuning-flags.def: Rename tuning flag to
11383 AARCH64_EXTRA_TUNE_APPROX_RSQRT.
11384 * config/aarch64/aarch64.c (exynosm1_tunigs): Use new flag name.
11385 (xgene1_tunings): Likewise.
11386 (use_rsqrt_p): Likewise.
11387 (aarch64_emit_swrsqrt): Use new function name.
11388 * config/aarch64/aarch64-simd.md (aarch64_rsqrts_*): Likewise.
11389 * config/aarch64/aarch64.opt (mlow-precision-recip-sqrt): Reword the
11390 text explaining this option.
11391 * doc/invoke.texi (-mlow-precision-recip-sqrt): Likewise.
11392
11393 2016-02-26 Jakub Jelinek <jakub@redhat.com>
11394
11395 PR target/69969
11396 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
11397 complain about -mallow-movmisalign without -mvsx if
11398 TARGET_ALLOW_MOVMISALIGN was not set explicitly.
11399
11400 2016-02-26 Joel Sherrill <joel@rtems.org>
11401
11402 * config.gcc: Add x86_64-*-rtems*.
11403 * config/i386/rtems-64.h: New file.
11404
11405 2016-02-26 Joel Sherrill <joel@rtems.org>
11406
11407 * config.gcc: Add aarch64-*-rtems*.
11408 * config/aarch64/rtems.h: New file.
11409
11410 2016-02-26 Segher Boessenkool <segher@kernel.crashing.org>
11411
11412 PR target/69946
11413 * config/rs6000/rs6000.c (rs6000_insn_for_shift_mask): Print rlwinm
11414 shift amount using %h. Add comment.
11415
11416 2016-02-26 Richard Biener <rguenther@suse.de>
11417 Jeff Law <law@redhat.com>
11418
11419 PR tree-optimization/69740
11420 * cfghooks.c (remove_edge): Request loop fixups if we delete
11421 an edge that might turn an irreducible loop into a natural
11422 loop.
11423
11424 2016-02-26 Martin Jambor <mjambor@suse.cz>
11425
11426 PR middle-end/69920
11427 * tree-sra.c (sra_modify_assign): Do not remove loads of
11428 uninitialized aggregates to SSA_NAMEs.
11429
11430 2016-02-26 Richard Henderson <rth@redhat.com>
11431
11432 PR target/69709
11433 * config/s390/s390.md (risbg and risbgn splitters): Allocate new
11434 pseudo in case the target rtx matches the source of the left
11435 shift.
11436
11437 2016-02-26 Martin Jambor <mjambor@suse.cz>
11438
11439 PR hsa/69568
11440 * hsa.h (hsa_type_packed_p): Declare.
11441 * hsa.c (hsa_type_packed_p): New function.
11442 * hsa-gen.c (mem_type_for_type): Use unsigned type for packed
11443 loads.
11444 (gen_hsa_insns_for_store): Use hsa_type_packed_p.
11445 * hsa-brig.c (emit_basic_insn): Likewise.
11446
11447 2016-02-26 Martin Jambor <mjambor@suse.cz>
11448
11449 pr hsa/69674
11450 * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Use proper hsa type for
11451 pointers.
11452 (gen_hsa_addr): Allow integer constants in TMR_INDEX2.
11453
11454 2016-02-26 Martin Jambor <mjambor@suse.cz>
11455
11456 * hsa.h (is_a_helper): New overload for hsa_op_immed for
11457 hsa_op_with_type operands.
11458 (hsa_unsigned_type_for_type): Declare.
11459 * hsa.c (hsa_unsigned_type_for_type): New function.
11460 * hsa-gen.c (gen_hsa_binary_operation): Use hsa_unsigned_type_for_type.
11461 (gen_hsa_insns_for_operation_assignment): Satisfy constrains of
11462 the finalizer. Do not emit extra move.
11463
11464 2016-02-26 Martin Jambor <mjambor@suse.cz>
11465
11466 * hsa-gen.c (gen_hsa_ternary_atomic_for_builtin): Fail in presence of
11467 atomic operations in private segment.
11468
11469 2016-02-26 Martin Jambor <mjambor@suse.cz>
11470
11471 * omp-low.c (grid_find_ungridifiable_statement): Store problematic
11472 statements to wi->info. Also disallow omp simd constructs.
11473 (grid_target_follows_gridifiable_pattern): Use wi.info to dump reason
11474 for not gridifying. Dump special string for omp_for.
11475
11476 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11477
11478 PR target/69245
11479 * config/aarch64/aarch64.c (aarch64_set_current_function):
11480 Save/restore target globals when switching to
11481 target_option_default_node.
11482
11483 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11484
11485 PR target/69613
11486 * config/aarch64/aarch64.c (aarch64_shift_truncation_mask):
11487 Return 0 if !SHIFT_COUNT_TRUNCATED.
11488
11489 2016-02-26 Jakub Jelinek <jakub@redhat.com>
11490 Eric Botcazou <ebotcazou@adacore.com>
11491
11492 PR rtl-optimization/69891
11493 * dse.c (scan_insn): If we can't figure out memset arguments
11494 or they are non-constant, call clear_rhs_from_active_local_stores.
11495
11496 2016-02-26 Martin Liska <mliska@suse.cz>
11497
11498 * doc/extend.texi: Mention clog10, clog10f an clog10l
11499 in Builtins section.
11500
11501 2016-02-26 Martin Liska <mliska@suse.cz>
11502
11503 * dwarf2out.c (new_loc_descr): Replace ENABLE_CHECKING with
11504 CHECKING_P.
11505 (resolve_args_picking_1): Likewise.
11506 * dwarf2out.h (struct GTY): Likewise.
11507
11508 2016-02-26 Martin Liska <mliska@suse.cz>
11509
11510 * hsa-gen.c (generate_hsa): Replace ENABLE_CHECKING macro
11511 with flag_checking.
11512 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
11513
11514 2016-02-26 Markus Trippelsdorf <markus@trippelsdorf.de>
11515 Martin Liska <mliska@suse.cz>
11516
11517 * doc/install.texi: Mention --enable-valgrind-annotations.
11518
11519 2016-02-26 Richard Biener <rguenther@suse.de>
11520
11521 PR tree-optimization/69551
11522 * tree-ssa-structalias.c (get_constraint_for_ssa_var): When
11523 looking through aliases adjust DECL_PT_UID to refer to the
11524 ultimate alias target.
11525
11526 2016-02-25 Martin Liska <mliska@suse.cz>
11527
11528 PR middle-end/69919
11529 * alloc-pool.c (after_memory_report): New variable.
11530 * alloc-pool.h (base_pool_allocator ::release): Do not use
11531 the infrastructure if after_memory_report.
11532 * toplev.c (toplev::main): Mark after memory report.
11533
11534 2016-02-25 Richard Biener <rguenther@suse.de>
11535
11536 PR tree-optimization/48795
11537 * tree-vrp.c (check_array_ref): Use array_at_struct_end_p.
11538
11539 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
11540
11541 PR driver/68463
11542 * config/gnu-user.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o if
11543 offloading is enabled and -fopenacc or -fopenmp is specified.
11544 (CRTOFFLOADEND): Likewise.
11545 (GNU_USER_TARGET_STARTFILE_SPEC): Add CRTOFFLOADBEGIN.
11546 (GNU_USER_TARGET_ENDFILE_SPEC): Add CRTOFFLOADEND.
11547 * lto-wrapper.c (offloadbegin, offloadend): Remove static vars.
11548 (offload_objects_file_name): New static var.
11549 (tool_cleanup): Remove offload_objects_file_name file.
11550 (find_offloadbeginend): Replace with ...
11551 (find_crtoffloadtable): ... this.
11552 (run_gcc): Remove offload_argc and offload_argv.
11553 Get offload_objects_file_name from -foffload-objects=... option.
11554 Read names of object files with offload from this file, pass them to
11555 compile_images_for_offload_targets. Don't call find_offloadbeginend and
11556 don't pass offloadbegin and offloadend to the linker. Don't pass
11557 offload non-LTO files to the linker, because now they're not claimed.
11558
11559 2016-02-25 Jan Hubicka <hubicka@ucw.cz>
11560
11561 PR ipa/69630
11562 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
11563 on builtin_unreachable.
11564
11565 2016-02-25 Jakub Jelinek <jakub@redhat.com>
11566
11567 PR rtl-optimization/69896
11568 * regcprop.c: Include cfgrtl.h.
11569 (copyprop_hardreg_forward_1): If noop_p insn uses narrower
11570 than remembered mode, either delete it (if noop_move_p), or
11571 treat like copy_p but not noop_p instruction.
11572
11573 2016-02-24 Jakub Jelinek <jakub@redhat.com>
11574
11575 PR debug/69705
11576 * dwarf2out.c (gen_variable_die): Work around buggy LTO
11577 - allow NULL decl for Fortran DW_TAG_common_block variables.
11578
11579 2016-02-24 Jason Merrill <jason@redhat.com>
11580
11581 * common.opt (flifetime-dse): Add -flifetime-dse=1.
11582
11583 2016-02-24 Richard Biener <rguenther@suse.de>
11584 Jakub Jelinek <jakub@redhat.com>
11585
11586 PR middle-end/69760
11587 * tree-scalar-evolution.c (interpret_rhs_expr): Re-write
11588 conditionally executed ops to well-defined overflow behavior.
11589
11590 2016-02-24 Jakub Jelinek <jakub@redhat.com>
11591
11592 PR middle-end/69915
11593 * tree.c (build_vector_from_ctor): Fix handling of VECTOR_CST
11594 elements.
11595
11596 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11597
11598 PR rtl-optimization/69886
11599 * gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode
11600 argument. Use it when checking validity of set instructions.
11601 (want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p.
11602 (compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p
11603 callsite.
11604 * rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype.
11605 * store-motion.c (find_moveable_store): Update
11606 can_assign_to_reg_without_clobbers_p callsite.
11607
11608 2016-02-24 Richard Biener <rguenther@suse.de>
11609
11610 PR middle-end/68963
11611 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix
11612 bogus check.
11613 (record_nonwrapping_iv): Do not fall back to the low/high bound
11614 for non-constant IV bases if the stmt is not always executed.
11615
11616 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11617
11618 * config/arm/arm-cores.def (cortex-a32): New entry.
11619 * config/arm/arm-tables.opt: Regenerate.
11620 * config/arm/arm-tune.md: Regenerate.
11621 * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a32.
11622 * config/arm/t-aprofile: Handle mcpu=cortex-a32.
11623 * doc/invoke.texi (ARM Options): Document cortex-a32 as value
11624 for -mcpu and -mtune.
11625
11626 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11627
11628 PR target/69875
11629 * config/arm/arm.h (TARGET_HAVE_LPAE): Define.
11630 * config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value.
11631 * config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern.
11632 (atomic_loaddi_1): Delete.
11633 (atomic_loaddi): Rewrite expander using the above changes.
11634
11635 2016-02-24 Jakub Jelinek <jakub@redhat.com>
11636
11637 PR c/69918
11638 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): Bump default from
11639 2 to 3.
11640
11641 2016-02-24 Jakub Jelinek <jakub@redhat.com>
11642 Richard Biener <rguenth@suse.de>
11643
11644 PR middle-end/69909
11645 * expr.c (expand_expr_real_1) <normal_inner_ref>: Avoid
11646 set_mem_attributes if tem is SSA_NAME which got expanded
11647 as a MEM.
11648
11649 2016-02-24 Richard Biener <rguenther@suse.de>
11650
11651 PR tree-optimization/69907
11652 * tree-vect-stmts.c (vectorizable_load): Check for gaps at the
11653 end of permutations for BB vectorization.
11654
11655 2016-02-24 Christian Bruel <christian.bruel@st.com>
11656
11657 * config/arm/arm-c.c (arm_option_override): Initialize
11658 target_option_current_node.
11659 * config/arm/arm.c (arm_pragma_target_parse): Replace
11660 build_target_option_node call by target_option_current_node.
11661 Set target_option_current_node.
11662 Fix comments.
11663
11664 2016-02-23 David Edelsohn <dje.gcc@gmail.com>
11665
11666 PR target/69810
11667 * config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from
11668 define_insn_and_split to define_insn.
11669 (zero_extendqi<mode>2_dot2): Same.
11670 (extendqi<mode>2_dot): Same.
11671 (extendqi<mode>2_dot2): Same.
11672
11673 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
11674
11675 * config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores
11676 and add bypass for AES{D,E} and AESMC pairs.
11677 * config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E}
11678 and AESMC pairs.
11679
11680 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
11681
11682 * config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
11683 series for reciprocal square root in Exynos M1.
11684
11685 2016-02-23 Martin Sebor <msebor@redhat.com>
11686
11687 PR c/69759
11688 * doc/extend.texi (Other Builtins): Document __builtin_alloca and
11689 __builtin_alloca_with_align.
11690
11691 2016-02-23 Richard Henderson <rth@redhat.com>
11692
11693 * config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS.
11694 (ix86_register_pragmas): Remove __seg_tls.
11695 * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove.
11696 * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it.
11697 (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove.
11698 (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove.
11699 (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove.
11700 * doc/extend.texi (__seg_tls): Remove item.
11701
11702 2016-02-23 Richard Biener <rguenther@suse.de>
11703
11704 * alloc-pool.h (struct allocation_object): Make id member
11705 conditional on CHECKING_P again.
11706 (get_instance): Adjust.
11707 (base_pool_allocator): Likewise.
11708
11709 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
11710
11711 * tree-parloops.c (create_parallel_loop, gen_parallel_loop)
11712 (parallelize_loops): In OpenACC kernels mode, set n_threads to
11713 zero.
11714 (pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
11715 flag_openacc.
11716 * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
11717
11718 2016-02-23 Richard Biener <rguenther@suse.de>
11719
11720 * mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
11721 * bitmap.h (struct bitmap_usage): Likewise.
11722 (bitmap_move): Declare.
11723 * bitmap.c (register_overhead): Take size_t argument.
11724 (bitmap_move): New function.
11725 * df-problems.c (df_rd_transfer_function): Use bitmap_move
11726 to properly account overhead.
11727 * tree.c (free_node): Use tree_size.
11728
11729 2016-02-23 Jakub Jelinek <jakub@redhat.com>
11730
11731 PR c++/69902
11732 * fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
11733 when inverting comparison.
11734
11735 PR c/69900
11736 * common.opt (Wunreachable-code): Add Warning flag.
11737
11738 2016-02-23 Mark Wielaard <mjw@redhat.com>
11739 Jakub Jelinek <jakub@redhat.com>
11740
11741 PR c/69911
11742 * cgraphunit.c (check_global_declaration): Check main_input_filename
11743 and DECL_SOURCE_FILE are not NULL.
11744
11745 2016-02-23 Martin Jambor <mjambor@suse.cz>
11746
11747 PR tree-optimization/69666
11748 * tree-sra.c (sra_modify_assign): Do not attempt to create
11749 default_def replacements for unscalarizable regions.
11750
11751 2016-02-20 Mark Wielaard <mjw@redhat.com>
11752
11753 PR c/28901
11754 * cgraphunit.c (check_global_declaration): Check level of
11755 warn_unused_const_variable and main_input_filename.
11756 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable=.
11757 (-Wunused-variable): For C implies -Wunused-const-variable=1.
11758 (-Wunused-const-variable): Explain levels 1 and 2.
11759
11760 2016-02-22 Jakub Jelinek <jakub@redhat.com>
11761
11762 PR target/69888
11763 * config/i386/i386.c (decide_alg): Ensure we don't recurse with
11764 identical arguments. Formatting and spelling fixes.
11765
11766 PR target/69885
11767 * doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
11768 be specified.
11769
11770 PR target/69894
11771 PR target/69895
11772 * config/m68k/t-opts (OPTIONS_H_EXTRA): Add m68k-microarchs.def
11773 and m68k-devices.def.
11774 * config/c6x/t-c6x (OPTIONS_H_EXTRA): Add c6x-isas.def.
11775 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add aarch64-arches.def.
11776
11777 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
11778
11779 * config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode
11780 and HImode registers.
11781
11782 2016-02-22 Richard Biener <rguenther@suse.de>
11783
11784 PR tree-optimization/69882
11785 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly
11786 preserve permutations present because of gaps.
11787 (vect_supported_load_permutation_p): Always continue checking
11788 permutations after vect_attempt_slp_rearrange_stmts.
11789
11790 2016-02-22 Bin Cheng <bin.cheng@arm.com>
11791
11792 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
11793 min_profitable_estimate, rather than min_profitable_iters.
11794
11795 2016-02-22 Jakub Jelinek <jakub@redhat.com>
11796
11797 PR target/69885
11798 * config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
11799 SImode for last match_operand.
11800
11801 2016-02-22 Martin Liska <mliska@suse.cz>
11802
11803 * hsa-gen.c (gen_hsa_clrsb): In case of zero value,
11804 return bitsize - 1 as the return value.
11805
11806 2016-02-22 Oleg Endo <olegendo@gcc.gnu.org>
11807
11808 PR target/69806
11809 PR target/54089
11810 * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p):
11811 Handle negative shift counts.
11812 * config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use
11813 force_reg on the shift constant.
11814 (lshrsi3): Likewise. Expand into lshrsi3_n* instead of lshrsi3_d.
11815 (lshrsi3_d): Handle negative shift counts.
11816
11817 2016-02-22 Richard Biener <rguenther@suse.de>
11818 Tom de Vries <tom@codesourcery.com>
11819
11820 * graph.c: Include dumpfile.h.
11821 (print_graph_cfg): Split into three overloads.
11822 * gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn.
11823
11824 2016-02-22 Tom de Vries <tom@codesourcery.com>
11825
11826 * gdbhooks.py (class DumpFn): Add and instantiate, adding command
11827 dump-fn.
11828
11829 2016-02-22 Richard Biener <rguenther@suse.de>
11830
11831 PR ipa/37448
11832 * ipa-inline-transform.c (inline_call): When not updating
11833 overall summaries adjust self size by the growth estimate.
11834 * ipa-inline.c (inline_to_all_callers_1): Add to the callers
11835 hash-set, do not update overall summaries here. Renamed from ...
11836 (inline_to_all_callers): ... this which is now wrapping the
11837 above and performing delayed overall summary update.
11838 (early_inline_small_functions): Delay updating of the overall
11839 summary.
11840
11841 2016-02-21 Markus Trippelsdorf <markus@trippelsdorf.de>
11842
11843 * tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
11844 variable.
11845
11846 2016-02-19 Jakub Jelinek <jakub@redhat.com>
11847
11848 PR driver/69805
11849 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use
11850 :%* in %:gt() argument.
11851 (greater_than_spec_func): Adjust for expecting only numbers,
11852 if there are more than two numbers, compare the last two.
11853
11854 2016-02-19 Jonathan Wakely <jwakely@redhat.com>
11855
11856 * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
11857 -Wnarrowing with -std.
11858
11859 2016-02-19 Jakub Jelinek <jakub@redhat.com>
11860
11861 PR c++/69851
11862 * expr.c (store_field): Don't use bit-field path if exp is
11863 COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
11864 different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
11865 and the assignment can be performed by bitwise copy. Formatting
11866 fix.
11867
11868 PR middle-end/69838
11869 * lra.c (lra_process_new_insns): If non-call exceptions are enabled,
11870 call copy_reg_eh_region_note_forward on before and/or after sequences
11871 and remove note from insn if it no longer can throw.
11872
11873 PR target/69820
11874 * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
11875 if TARGET_AVX512BW.
11876
11877 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11878
11879 * config/s390/vector.md: Add missing commutative operand markers
11880 to the patterns which qualify for one.
11881 * config/s390/vx-builtins.md: Likewise.
11882
11883 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11884
11885 * config/s390/vector.md (VI, VI_QHS): Add single element vector
11886 types to mode iterators.
11887 (vec_double): ... and mode attribute.
11888 * config/s390/vx-builtins.md (non_vec_int): Likewise.
11889
11890 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11891
11892 * config/s390/vector.md ("<ti*>add<mode>3", "<ti*>sub<mode>3"):
11893 Change the predicate of op2 from nonimmediate to general and let
11894 reload fix it if necessary.
11895
11896 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11897
11898 * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
11899
11900 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11901
11902 * config/s390/s390.c (s390_expand_vcond): Use the compare operand
11903 mode.
11904
11905 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11906
11907 * config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
11908 * config/s390/s390.c (s390_expand_vec_movstr): New function.
11909 * config/s390/s390.md ("movstr<P:mode>"): Call
11910 s390_expand_vec_movstr.
11911
11912 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11913
11914 * config/s390/s390.md: Add missing output modifier for operand 1
11915 to print it as address properly.
11916
11917 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11918
11919 * config/s390/2827.md: Rename ooo_* insn attributes to zEC12_*.
11920 * config/s390/2964.md: New file.
11921 * config/s390/s390.c (s390_get_sched_attrmask): Use the right set
11922 of insn grouping attributes depending on the CPU level.
11923 (s390_get_unit_mask): New function.
11924 (s390_sched_score): Remove the OOO from the scheduling macros.
11925 Add loop to calculate a score for the instruction mix.
11926 (s390_sched_reorder): Likewise plus improve debug output.
11927 (s390_sched_variable_issue): Rename macros as above. Calculate
11928 the unit distances after actually scheduling an insn. Improve
11929 debug output.
11930 (s390_sched_init): Clear last_scheduled_unit_distance array.
11931 * config/s390/s390.md: Include 2964.md.
11932
11933 2016-02-18 Jakub Jelinek <jakub@redhat.com>
11934
11935 PR target/69671
11936 * config/i386/sse.md (*<floatsuffix>floatv2div2sf2_mask_1,
11937 *avx512vl_<code>v2div2qi2_mask_1, *avx512vl_<code><mode>v4qi2_mask_1,
11938 *avx512vl_<code><mode>v8qi2_mask_1, *avx512vl_<code><mode>v4hi2_mask_1,
11939 *avx512vl_<code>v2div2hi2_mask_1, *avx512vl_<code>v2div2si2_mask_1,
11940 *avx512f_<code>v8div16qi2_mask_1): New insns.
11941
11942 2016-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
11943
11944 PR target/68404
11945 * config/rs6000/predicates.md (fusion_gpr_addis): Revert
11946 2016-02-09 change.
11947
11948 * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
11949 earlyclobber from target. Use wF constraint for fused memory
11950 address.
11951 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
11952
11953 2016-02-18 Jakub Jelinek <jakub@redhat.com>
11954 Martin Liska <mliska@suse.cz>
11955
11956 PR sanitizer/69863
11957 * cfgexpand.c (asan_sanitize_stack_p): New function.
11958 (partition_stack_vars): Use the function.
11959 (expand_stack_vars): Likewise.
11960 (defer_stack_allocation): Likewise.
11961 (expand_used_vars): Likewise.
11962
11963 2016-02-18 Richard Biener <rguenther@suse.de>
11964
11965 PR middle-end/69553
11966 * fold-const.c (operand_equal_p): Properly compare offsets for
11967 IMAGPART_EXPR and ARRAY_REF.
11968
11969 2016-02-18 Nick Clifton <nickc@redhat.com>
11970
11971 PR target/62254
11972 PR target/69610
11973 * config/arm/arm.c (arm_option_override_internal): Disable
11974 interworking if the target does not support thumb instructions.
11975 (arm_reload_in_hi): Handle the case where a register to register
11976 move needs reloading because there is no simple pattern to handle
11977 it.
11978 (arm_reload_out_hi): Likewise.
11979
11980 2016-02-18 Richard Biener <rguenther@suse.de>
11981
11982 PR middle-end/69854
11983 * match.pd: Don't use fold_binary or fold_unary for folding
11984 constants.
11985
11986 2016-02-17 Jakub Jelinek <jakub@redhat.com>
11987
11988 PR c++/69850
11989 * gimplify.c (gimplify_cond_expr): Call gimple_set_no_warning
11990 on the cond_stmt from TREE_NO_WARNING on COND_EXPR_COND.
11991 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Don't
11992 warn on gimple_no_warning_p statements.
11993
11994 2016-02-17 Jonathan Wakely <jwakely@redhat.com>
11995
11996 * doc/extend.texi (C++ Attributes): Correct description of
11997 warn_unused type attribute.
11998
11999 2016-02-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12000
12001 * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
12002 correct instruction.
12003
12004 2016-02-17 Richard Biener <rguenther@suse.de>
12005
12006 PR rtl-optimization/69609
12007 * bb-reorder.c (struct bbro_basic_block_data): Add priority member.
12008 (find_traces_1_round): When ending a trace update cached priority
12009 of successors.
12010 (bb_to_key): Use cached priority when available.
12011 (copy_bb): Initialize cached priority.
12012 (reorder_basic_blocks_software_trace_cache): Likewise.
12013
12014 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12015
12016 PR target/69161
12017 * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
12018 New predicate.
12019 (aarch64_comparison_operator): Break overly long line into two.
12020 (aarch64_comparison_operation): Likewise.
12021 * config/aarch64/aarch64.md (cstorecc4): Use
12022 aarch64_comparison_operator_mode instead of
12023 aarch64_comparison_operator.
12024 (cstore<mode>4): Likewise.
12025 (aarch64_cstore<mode>): Likewise.
12026 (*cstoresi_insn_uxtw): Likewise.
12027 (cstore<mode>_neg): Likewise.
12028 (*cstoresi_neg_uxtw): Likewise.
12029
12030 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12031
12032 PR target/69161
12033 * config/arm/predicates.md (arm_comparison_operator_mode):
12034 New predicate.
12035 * config/arm/arm.md (*mov_scc): Use arm_comparison_operator_mode
12036 instead of arm_comparison_operator.
12037 (*mov_negscc): Likewise.
12038 (*mov_notscc): Likewise.
12039 * config/arm/thumb2.md (*thumb2_mov_scc): Likewise.
12040 (*thumb2_mov_negscc): Likewise.
12041 (*thumb2_mov_negscc_strict_it): Likewise.
12042 (*thumb2_mov_notscc): Likewise.
12043 (*thumb2_mov_notscc_strict_it): Likewise.
12044
12045 2016-02-17 Wilco Dijkstra <wdijkstr@arm.com>
12046
12047 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
12048 Add missing return.
12049
12050 2016-02-17 Eric Botcazou <ebotcazou@adacore.com>
12051
12052 * config/visium/visium.c (machine_libfunc_index): New enum.
12053 (machine_libfuncs): New structure.
12054 (visium_libfuncs): New static variable.
12055 (TARGET_INIT_LIBFUNCS): Define to...
12056 (visium_init_libfuncs): ...this. New function.
12057 (expand_block_move_4): Use the appropriate libfunc.
12058 (expand_block_move_2): Likewise.
12059 (expand_block_move_1): Likewise.
12060 (expand_block_set_4): Likewise.
12061 (expand_block_set_2): Likewise.
12062 (expand_block_set_1): Likewise.
12063 (visium_trampoline_init): Likewise.
12064
12065 2016-02-17 Nick Clifton <nickc@redhat.com>
12066
12067 * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
12068 TI's devices.csv file as of March 2016.
12069
12070 2016-02-16 Kelvin Nilsen <kelvin@gcc.gnu.org>
12071
12072 PR Target/48344
12073 * opts-global.c (handle_common_deferred_options): Introduce and
12074 initialize two global variables to remember command-line options
12075 specifying a stack-limiting register.
12076 * opts.h: Add extern declarations of the two new global variables.
12077 * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx
12078 variable based on the values of the two new global variables.
12079
12080 2016-02-16 Jakub Jelinek <jakub@redhat.com>
12081
12082 PR c/69835
12083 * common.opt (Wnonnull-compare): New warning.
12084 * doc/invoke.texi (-Wnonnull): Remove text about comparison
12085 of arguments against NULL.
12086 (-Wnonnull-compare): Document.
12087 * Makefile.in (OBJS): Add gimple-ssa-nonnull-compare.o.
12088 * tree-pass.h (make_pass_warn_nonnull_compare): Declare.
12089 * passes.def (pass_warn_nonnull_compare): Add.
12090 * gimple-ssa-nonnull-compare.c: New file.
12091
12092 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
12093
12094 * config/aarch64/aarch64.c (cortexa57_tunings): Remove
12095 AARCH64_EXTRA_TUNE_RECIP_SQRT.
12096
12097 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
12098
12099 * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
12100 reciprocal sqrt for -mlow-precision-recip-sqrt.
12101
12102 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
12103 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12104
12105 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
12106 always use lane loads to construct non-constant vectors.
12107
12108 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
12109
12110 * config/aarch64/aarch64.md
12111 (arch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Fix register
12112 constraints for operand 3.
12113 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
12114
12115 2016-02-16 Jakub Jelinek <jakub@redhat.com>
12116 Richard Biener <rguenther@suse.de>
12117
12118 PR tree-optimization/69820
12119 * tree-vect-patterns.c (type_conversion_p): Return false if
12120 *orig_type is unsigned single precision or boolean.
12121 (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern):
12122 Formatting fix.
12123
12124 2016-02-16 Jakub Jelinek <jakub@redhat.com>
12125
12126 PR rtl-optimization/69764
12127 PR rtl-optimization/69771
12128 * optabs.c (expand_binop): Ensure for shift optabs invalid CONST_INT
12129 op1 is valid for GET_MODE_INNER (mode) and force it into a reg.
12130
12131 2016-02-16 Richard Biener <rguenther@suse.de>
12132
12133 PR tree-optimization/69776
12134 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
12135 sets from caller.
12136 (indirect_refs_may_alias_p): Likewise.
12137 (refs_may_alias_p_1): Pass alias sets as from ao_ref.
12138 * tree-ssa-sccvn.c (vn_reference_lookup): Also adjust vr alias-set
12139 according to tbaa_p.
12140 * tree-ssa-dom.c (lookup_avail_expr): Add tbaa_p flag.
12141 (optimize_stmt): For redundant store discovery do not allow tbaa.
12142
12143 2016-02-16 Bernd Schmidt <bschmidt@redhat.com>
12144
12145 PR tree-optimization/69714
12146 * tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
12147 Return NULL if we have irrelevant high bytes on BIG_ENDIAN.
12148
12149 2016-02-16 Claudiu Zissulescu <claziss@synopsys.com>
12150
12151 * config/arc/arc-modes.def (CC_FPU, CC_FPU_UNEQ): New modes.
12152 * config/arc/arc-opts.h (FPU_SP, FPU_SF, FPU_SC, FPU_SD, FPU_DP)
12153 (FPU_DF, FPU_DC, FPU_DD, FXP_DP): Define.
12154 * config/arc/arc.c (arc_init): Check FPU options.
12155 (get_arc_condition_code): Handle new CC_FPU* modes.
12156 (arc_select_cc_mode): Likewise.
12157 (arc_conditional_register_usage): Allow 64 bit datum into even-odd
12158 register pair only. Allow access for ARCv2 accumulator.
12159 (gen_compare_reg): Whenever we have FPU support use FPU compare
12160 instructions.
12161 (arc_reorg): Don't generate brcc insns when FPU compare
12162 instructions are involved.
12163 * config/arc/arc.h (TARGET_DPFP): Add TARGET_FP_DPAX condition.
12164 (TARGET_OPTFPE): Add condition when ARC EM can use optimized
12165 floating point emulation.
12166 (ACC_REG_FIRST, ACC_REG_LAST, ACCL_REGNO, ACCH_REGNO): Define.
12167 (REVERSE_CONDITION): Add new CC_FPU* modes.
12168 (TARGET_FP_SP_BASE): Define.
12169 (TARGET_FP_DP_BASE): Likewise.
12170 (TARGET_FP_SP_FUSED): Likewise.
12171 (TARGET_FP_DP_FUSED): Likewise.
12172 (TARGET_FP_SP_CONV): Likewise.
12173 (TARGET_FP_DP_CONV): Likewise.
12174 (TARGET_FP_SP_SQRT): Likewise.
12175 (TARGET_FP_DP_SQRT): Likewise.
12176 (TARGET_FP_DP_AX): Likewise.
12177 * config/arc/arc.md (ARCV2_ACC): New constant.
12178 (type): New fpu type attribute.
12179 (SDF): Conditional iterator.
12180 (cstore<mode>, cbranch<mode>): Change expand condition.
12181 (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3): New expands,
12182 handles FPU/FPX cases as well.
12183 * config/arc/arc.opt (mfpu): New option.
12184 * config/arc/fpx.md (addsf3_fpx, subsf3_fpx, mulsf3_fpx):
12185 Renamed.
12186 (adddf3, muldf3, subdf3): Removed.
12187 * config/arc/predicates.md (proper_comparison_operator): Recognize
12188 CC_FPU* modes.
12189 * config/arc/fpu.md: New file.
12190 * doc/invoke.texi (ARC Options): Document mfpu option.
12191
12192 2016-02-16 Richard Biener <rguenther@suse.de>
12193
12194 PR rtl-optimization/69291
12195 * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
12196 noce_operand_ok check.
12197
12198 2016-02-16 Tom de Vries <tom@codesourcery.com>
12199
12200 PR lto/67709
12201 * omp-low.c (simd_clone_create): Remove call to
12202 symtab->call_cgraph_insertion_hooks.
12203
12204 2016-02-16 Jakub Jelinek <jakub@redhat.com>
12205
12206 PR tree-optimization/69802
12207 * tree-ssa-reassoc.c (update_range_test): If op is
12208 SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
12209 op == 1 test of precision 1 integral op, otherwise handle
12210 that case as op itself. Fix up formatting.
12211 (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
12212 up formatting.
12213
12214 2016-02-16 Richard Biener <rguenther@suse.de>
12215
12216 PR tree-optimization/69586
12217 * tree-vrp.c (register_edge_assert_for_2): Handle all integral
12218 types for conversion sources.
12219
12220 2016-02-16 Richard Biener <rguenther@suse.de>
12221
12222 PR middle-end/69801
12223 * fold-const.c (operand_equal_p): For COND_EXPR zero operand
12224 mask OEP_ADDRESS_OF.
12225
12226 2016-02-16 Alan Modra <amodra@gmail.com>
12227
12228 PR target/68973
12229 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
12230 (p8_mtvsrd_df, p8_mtvsrd_sf): New.
12231 (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
12232 (p8_mtvsrwz): New.
12233 (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
12234 (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
12235 (p8_fmrgow_<mode>): Likewise.
12236 (reload_vsx_from_gpr<mode>): Make clobber IF. Adjust for above
12237 changes.
12238 (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
12239 (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
12240 to use movdi_internal64. Remove op0_di.
12241 * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
12242
12243 2016-02-15 Evandro Menezes <e.menezes@samsung.com>
12244
12245 Add support for the FCCMP insn types
12246
12247 * config/aarch64/aarch64.md (fccmp): Change insn type.
12248 (fccmpe): Likewise.
12249 * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
12250 * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
12251 * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
12252 * config/arm/xgene1.md (xgene1_fcmp): Likewise.
12253 * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
12254 * config/arm/types.md (fccmps): Add new insn type.
12255 (fccmpd): Likewise.
12256
12257 2016-02-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
12258
12259 * alias.c (get_alias_set): Fix a typo in comment.
12260
12261 2016-02-15 Richard Biener <rguenther@suse.de>
12262
12263 PR tree-optimization/69595
12264 * match.pd: Complete range test simplification to true.
12265
12266 2016-02-15 Bernd Schmidt <bschmidt@redhat.com>
12267
12268 PR rtl-optimization/69648
12269 * lra-constraints.c (update_ebb_live_info): Don't remove sets of
12270 pic_offset_table_rtx.
12271
12272 PR rtl-optimization/69752
12273 * ira.c (update_equiv_regs): When looking for more than a single SET,
12274 also take other side effects into account.
12275
12276 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
12277
12278 * config/s390/s390.c (s390_function_profiler): Add a new sequence
12279 for z900+ CPUs in 31-bit mode.
12280
12281 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
12282
12283 * common/config/s390/s390-common.c (s390_supports_split_stack):
12284 New function.
12285 (TARGET_SUPPORTS_SPLIT_STACK): New macro.
12286 * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
12287 * config/s390/s390.c (struct machine_function): New field
12288 split_stack_varargs_pointer.
12289 (s390_register_info): Mark r12 as clobbered if it'll be used as temp
12290 in s390_emit_prologue.
12291 (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
12292 vararg pointer.
12293 (morestack_ref): New global.
12294 (SPLIT_STACK_AVAILABLE): New macro.
12295 (s390_expand_split_stack_prologue): New function.
12296 (s390_live_on_entry): New function.
12297 (s390_va_start): Use split-stack vararg pointer if appropriate.
12298 (s390_asm_file_end): Emit the split-stack note sections.
12299 (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
12300 * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
12301 (UNSPECV_SPLIT_STACK_CALL): New unspec.
12302 (UNSPECV_SPLIT_STACK_DATA): New unspec.
12303 (split_stack_prologue): New expand.
12304 (split_stack_space_check): New expand.
12305 (split_stack_data): New insn.
12306 (split_stack_call): New expand.
12307 (split_stack_call_*): New insn.
12308 (split_stack_cond_call): New expand.
12309 (split_stack_cond_call_*): New insn.
12310
12311 2016-02-15 Richard Biener <rguenther@suse.de>
12312
12313 PR tree-optimization/69783
12314 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
12315 Add trivially correct cases.
12316
12317 2016-02-15 Tom de Vries <tom@codesourcery.com>
12318
12319 PR lto/69655
12320 * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
12321 do_force_output.
12322 * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
12323
12324 2016-02-15 Richard Biener <rguenther@suse.de>
12325
12326 PR tree-optimization/69776
12327 * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
12328 * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
12329 indicate whether we can use TBAA to disambiguate against stores.
12330 Use alias-set zero if not.
12331 (visit_reference_op_store): Do not use TBAA when looking up
12332 redundant stores.
12333 * tree-ssa-pre.c (compute_avail): Use TBAA here.
12334 (eliminate_dom_walker::before_dom_children): But not when looking
12335 up redundant stores.
12336
12337 2016-02-14 John David Anglin <danglin@gcc.gnu.org>
12338
12339 * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
12340
12341 2016-02-14 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
12342
12343 * config/i386/znver1.md
12344 (znver1_pop, znver1_pop_mem,
12345 znver1_load_imov_double_store,
12346 znver1_load_imov_direct_store,
12347 znver1_load_imov_direct_load,
12348 znver1_load_imov_double_load): Add new.
12349 (znver1_insn, znver1_insn_load): Add icmov type.
12350 (znver1_sseavx_fma,
12351 znver1_sseavx_fma_load,
12352 znver1_avx256_fma,
12353 znver1_avx256_fma_load): Fix pipe usage.
12354
12355 2016-02-14 Alan Modra <amodra@gmail.com>
12356
12357 PR target/68973
12358 * reloads.c (find_reloads_address_1): For pre/post-inc/dec
12359 with an invalid hard reg, reload just the reg not the entire
12360 pre/post-inc/dec address expression.
12361
12362 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
12363
12364 PR target/67260
12365 * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
12366 fixed R1_REG scratch reg.
12367 (sibcall_value_pcrel_fdpic): Likewise.
12368
12369 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
12370
12371 PR target/67636
12372 PR target/64345
12373 * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
12374
12375 2016-02-12 Walter Lee <walt@tilera.com>
12376
12377 * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
12378 * config/tilegx/t-tilegx: Likewise.
12379
12380 2016-02-12 David Malcolm <dmalcolm@redhat.com>
12381
12382 PR other/69554
12383 * diagnostic-show-locus.c (struct line_span): New struct.
12384 (layout::get_first_line): Delete.
12385 (layout::get_last_line): Delete.
12386 (layout::get_num_line_spans): New member function.
12387 (layout::get_line_span): Likewise.
12388 (layout::print_heading_for_line_span_index_p): Likewise.
12389 (layout::get_expanded_location): Likewise.
12390 (layout::calculate_line_spans): Likewise.
12391 (layout::m_first_line): Delete.
12392 (layout::m_last_line): Delete.
12393 (layout::m_line_spans): New field.
12394 (layout::layout): Update comment. Replace m_first_line and
12395 m_last_line with m_line_spans, replacing their initialization
12396 with a call to calculate_line_spans.
12397 (diagnostic_show_locus): When printing source lines and
12398 annotations, rather than looping over a single span
12399 of lines, instead loop over each line_span within
12400 the layout, with an inner loop over the lines within them.
12401 Call the context's start_span callback when changing line spans.
12402 * diagnostic.c (diagnostic_initialize): Initialize start_span.
12403 (diagnostic_build_prefix): Break out the building of the location
12404 part of the string into...
12405 (diagnostic_get_location_text): ...this new function, rewriting
12406 it from nested ternary expressions to a sequence of "if"
12407 statements.
12408 (default_diagnostic_start_span_fn): New function.
12409 * diagnostic.h (diagnostic_start_span_fn): New typedef.
12410 (diagnostic_context::start_span): New field.
12411 (default_diagnostic_start_span_fn): New prototype.
12412
12413 2016-02-12 David Malcolm <dmalcolm@redhat.com>
12414
12415 PR driver/69779
12416 * gcc.c (driver::finalize): Fix cleanup of "specs".
12417
12418 2016-02-12 David Malcolm <dmalcolm@redhat.com>
12419
12420 PR driver/69265
12421 PR driver/69453
12422 * gcc.c (driver::driver): Initialize m_option_suggestions.
12423 (driver::~driver): Clean up m_option_suggestions.
12424 (suggest_option): Convert to...
12425 (driver::suggest_option): ...this, and split out into
12426 driver::build_option_suggestions and find_closest_string.
12427 (driver::build_option_suggestions): New function, from
12428 first half of suggest_option. Special-case
12429 OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
12430 the sanitizer_opts array. For options of enum types, add the
12431 various enum values to the candidate strings.
12432 (driver::handle_unrecognized_options): Remove "const".
12433 * gcc.h (driver::handle_unrecognized_options): Likewise.
12434 (driver::build_option_suggestions): New decl.
12435 (driver::suggest_option): New decl.
12436 (driver::m_option_suggestions): New field.
12437 * opts-common.c (add_misspelling_candidates): New function.
12438 * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
12439 and make non-static.
12440 * opts.h (sanitizer_opts): New array decl.
12441 (add_misspelling_candidates): New function decl.
12442 * spellcheck.c (find_closest_string): New function.
12443 * spellcheck.h (find_closest_string): New function decl.
12444
12445 2016-02-12 Jakub Jelinek <jakub@redhat.com>
12446
12447 PR rtl-optimization/69764
12448 PR rtl-optimization/69771
12449 * optabs.c (expand_binop_directly): For shift_optab_p, force
12450 convert_modes with VOIDmode if xop1 has VOIDmode.
12451
12452 2016-02-12 Ilya Enkovich <enkovich.gnu@gmail.com>
12453
12454 PR target/69729
12455 * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
12456 to correctly determine instrumentation thunks.
12457
12458 2016-02-12 Jakub Jelinek <jakub@redhat.com>
12459
12460 PR ipa/69241
12461 * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
12462 type by reference, force lhs on the call.
12463
12464 PR ipa/68672
12465 * ipa-split.c (split_function): Don't compute/use main_part_return_p.
12466 Compute retval and retbnd early in all cases if split_part_return_p
12467 and return_bb is not EXIT. Remove all clobber stmts and reset
12468 all debug stmts that refer to SSA_NAMEs defined in split part,
12469 except if it is retval, in that case replace the old retval with the
12470 lhs of the call to the split part.
12471
12472 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
12473
12474 revert:
12475 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
12476
12477 PR middle-end/66726
12478 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
12479 whose result is used in PHI.
12480 (maybe_optimize_range_tests): Likewise.
12481 (final_range_test_p): Likweise.
12482
12483 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
12484
12485 PR middle-end/66726
12486 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
12487 whose result is used in PHI.
12488 (maybe_optimize_range_tests): Likewise.
12489 (final_range_test_p): Likweise.
12490
12491 2016-02-12 Jakub Jelinek <jakub@redhat.com>
12492
12493 * cgraph.c: Spelling fixes - behaviour -> behavior and
12494 neighbour -> neighbor.
12495 * target.def: Likewise.
12496 * sel-sched.c: Likewise.
12497 * config/mips/mips.c: Likewise.
12498 * config/arc/arc.md: Likewise.
12499 * config/arm/cortex-a57.md: Likewise.
12500 * config/arm/arm.c: Likewise.
12501 * config/arm/neon.md: Likewise.
12502 * config/arm/arm-c.c: Likewise.
12503 * config/vms/vms-c.c: Likewise.
12504 * config/s390/s390.c: Likewise.
12505 * config/i386/znver1.md: Likewise.
12506 * config/i386/i386.c: Likewise.
12507 * config/ia64/hpux-unix2003.h: Likewise.
12508 * config/msp430/msp430.md: Likewise.
12509 * config/rx/rx.c: Likewise.
12510 * config/rx/rx.md: Likewise.
12511 * config/aarch64/aarch64-simd.md: Likewise.
12512 * config/aarch64/aarch64.c: Likewise.
12513 * config/nvptx/nvptx.c: Likewise.
12514 * config/bfin/bfin.c: Likewise.
12515 * config/cris/cris.opt: Likewise.
12516 * config/rs6000/rs6000.c: Likewise.
12517 * target.h: Likewise.
12518 * spellcheck.c: Likewise.
12519 * ira-build.c: Likewise.
12520 * tree-inline.c: Likewise.
12521 * builtins.c: Likewise.
12522 * lra-constraints.c: Likewise.
12523 * explow.c: Likewise.
12524 * hwint.h: Likewise.
12525 * targhooks.c: Likewise.
12526 * tree-vect-data-refs.c: Likewise.
12527 * expr.c: Likewise.
12528 * doc/tm.texi: Likewise.
12529 * doc/extend.texi: Likewise.
12530 * doc/install.texi: Likewise.
12531 * doc/md.texi: Likewise.
12532 * tree-ssa-tail-merge.c: Likewise.
12533 * sched-int.h: Likewise.
12534 * match.pd: Likewise.
12535 * sched-ebb.c: Likewise.
12536 * target.def (omit_struct_return_reg): Likewise.
12537 * gimple-ssa-isolate-paths.c: Likewise.
12538 (find_implicit_erroneous_behaviour): Renamed to...
12539 (find_implicit_erroneous_behavior): ... this.
12540 (find_explicit_erroneous_behaviour): Renamed to...
12541 (find_explicit_erroneous_behavior): ... this.
12542 (gimple_ssa_isolate_erroneous_paths): Adjust caller.
12543
12544 2016-02-11 Segher Boessenkool <segher@kernel.crashing.org>
12545
12546 PR rtl-optimization/64682
12547 PR rtl-optimization/69567
12548 PR rtl-optimization/69737
12549 * combine.c (distribute_notes) <REG_DEAD>: If the register is set
12550 in I2 as well, just lose it.
12551
12552 2016-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12553
12554 * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
12555 New variable.
12556 (aarch64_last_printed_tune_string): Likewise.
12557 (aarch64_declare_function_name): Only output .arch assembler
12558 directive if it will be different from the previously output
12559 directive. Same for .tune comment but only if -dA is set.
12560 (aarch64_start_file): New function.
12561 (TARGET_ASM_FILE_START): Define.
12562
12563 2016-02-11 David Malcolm <dmalcolm@redhat.com>
12564
12565 PR plugins/69758
12566 * Makefile.in (PLUGIN_HEADERS): Add params.list.
12567
12568 2016-02-11 Jakub Jelinek <jakub@redhat.com>
12569
12570 PR target/65313
12571 * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
12572 -Wmaybe-uninitialized warning.
12573
12574 2016-02-11 Oleg Endo <olegendo@gcc.gnu.org>
12575
12576 PR target/69713
12577 * config/sh/sh.md (casesi_worker_0): Add T_REG use.
12578
12579 2016-02-11 Richard Biener <rguenther@suse.de>
12580
12581 PR rtl-optimization/69291
12582 * ifcvt.c (noce_try_store_flag_constants): Do not allow
12583 subexpressions affected by changing the result.
12584
12585 2016-02-10 Vladimir Makarov <vmakarov@redhat.com>
12586
12587 PR target/69148
12588 * lra-constraints.c (curr_insn_transform): Find in/out operands
12589 for secondary memory moves. Update dups.
12590
12591 2016-02-10 Yuri Rumyantsev <ysrumyan@gmail.com>
12592
12593 PR tree-optimization/69652
12594 * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
12595 to nested loop, did source re-formatting, skip debug statements,
12596 add check on statement with volatile operand, remove dead scalar
12597 statements.
12598
12599 2016-02-10 Jakub Jelinek <jakub@redhat.com>
12600 Patrick Palka <ppalka@gcc.gnu.org>
12601
12602 PR ipa/69241
12603 PR c++/69649
12604 * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
12605 calls if the return type is TREE_ADDRESSABLE.
12606 * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
12607 * ipa-split.c (split_function): Fix doubled "we" in comment.
12608 Use void return type for the split part even if
12609 !split_point->split_part_set_retval.
12610
12611 2016-02-10 Bin Cheng <bin.cheng@arm.com>
12612
12613 PR tree-optimization/68021
12614 * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
12615 when computing the value of biv cand by itself.
12616
12617 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
12618
12619 * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
12620 (cortexa57_tunings): Likewise.
12621 (cortexa72_tunings): Likewise.
12622 (arch_macro_fusion_pair_p): Add support for AES fusion.
12623 * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
12624 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
12625 Allow virtual registers before reload so early scheduling works.
12626 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
12627 correct latency and pipeline.
12628 (cortex_a57_crypto_complex): Likewise.
12629 (cortex_a57_crypto_xor): Likewise.
12630 (define_bypass): Add AES bypass.
12631
12632 2016-02-10 Richard Biener <rguenther@suse.de>
12633
12634 PR tree-optimization/69726
12635 * passes.def: Add DCE pass before late uninit.
12636 * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
12637 really fixup if-conversions job.
12638
12639 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
12640
12641 * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
12642 (arm_cortex_a57_tune): Likewise.
12643 (aarch_macro_fusion_pair_p): Add support for AES fusion.
12644 * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
12645
12646 2016-02-10 Eric Botcazou <ebotcazou@adacore.com>
12647
12648 * timevar.def (TV_PHASE_DBGINFO): Delete.
12649 (TV_PHASE_CHECK_DBGINFO): Likewise.
12650 * varpool.c (varpool_node::assemble_decl): Do not change timevar.
12651
12652 2016-02-10 Richard Biener <rguenther@suse.de>
12653
12654 PR tree-optimization/69719
12655 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
12656 Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
12657
12658 2016-02-09 Andrew Pinski <apinski@cavium.com>
12659
12660 PR tree-opt/69282
12661 * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
12662 get_vcond_mask_icode returns false.
12663
12664 2016-02-09 Michael Meissner <meissner@linux.vnet.ibm.com>
12665
12666 PR target/68404
12667 * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
12668 an ADDIS that adds a pointer to a large constant that sets the
12669 upper16 bits with a load operation.
12670
12671 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
12672
12673 PR target/68532
12674 * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
12675 order.
12676 * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
12677 endian.
12678 (vzipq_s16): Likewise.
12679 (vzipq_s32): Likewise.
12680 (vzipq_f32): Likewise.
12681 (vzipq_u8): Likewise.
12682 (vzipq_u16): Likewise.
12683 (vzipq_u32): Likewise.
12684 (vzipq_p8): Likewise.
12685 (vzipq_p16): Likewise.
12686
12687 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
12688
12689 PR target/68532
12690 * config/arm/arm.c (neon_endian_lane_map): New function.
12691 (neon_vector_pair_endian_lane_map): New function.
12692 (arm_evpc_neon_vuzp): Allow for big endian lane order.
12693 * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
12694 endian.
12695 (vuzpq_s16): Likewise.
12696 (vuzpq_s32): Likewise.
12697 (vuzpq_f32): Likewise.
12698 (vuzpq_u8): Likewise.
12699 (vuzpq_u16): Likewise.
12700 (vuzpq_u32): Likewise.
12701 (vuzpq_p8): Likewise.
12702 (vuzpq_p16): Likewise.
12703
12704 2016-02-11 Alexandre Oliva <aoliva@redhat.com>
12705
12706 PR target/69634
12707 * regstat.c (regstat_bb_compute_calls_crossed): Disregard
12708 debug insns.
12709
12710 2016-02-09 Uros Bizjak <ubizjak@gmail.com>
12711
12712 * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
12713 truncate const_int operand 1 to QImode.
12714
12715 2016-02-09 Eric Botcazou <ebotcazou@adacore.com>
12716
12717 * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
12718 corresponding to an abnormal edge.
12719
12720 2016-02-09 Tom de Vries <tom@codesourcery.com>
12721
12722 PR tree-optimization/69599
12723 * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
12724 function.
12725 (find_func_aliases_for_builtin_call, find_func_clobbers)
12726 (ipa_pta_execute): Handle case that foo and foo._0 are not in same lto
12727 partition.
12728
12729 2016-02-09 Richard Biener <rguenther@suse.de>
12730
12731 PR tree-optimization/69715
12732 * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
12733 LHS on calls as non-rewritable.
12734
12735 2016-02-09 Tom de Vries <tom@codesourcery.com>
12736
12737 PR lto/69707
12738 * lto-wrapper.c (append_diag_options): New function.
12739 (compile_offload_image): Call append_diag_options.
12740
12741 2016-02-08 Sandra Loosemore <sandra@codesourcery.com>
12742
12743 PR other/69722
12744 * doc/extend.texi (Flag Output Operands): Correct sectioning.
12745 Minor copy-edit to fix verb tenses.
12746
12747 2016-02-08 Jakub Jelinek <jakub@redhat.com>
12748
12749 PR tree-optimization/69209
12750 * ipa-split.c (split_function): If split part is not
12751 returning retval, retval has gimple type but is not
12752 gimple value, force it into a SSA_NAME first.
12753
12754 2016-02-08 Nicklas Bo Jensen <nbjensen@gmail.com>
12755
12756 * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
12757 outdated section.
12758
12759 2016-02-08 Jason Merrill <jason@redhat.com>
12760
12761 PR c++/69631
12762 * convert.c (convert_to_integer_1): Check dofold on truncation
12763 distribution.
12764 (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
12765 (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
12766 Rename from *_nofold.
12767 * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
12768 (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
12769
12770 2016-02-08 Bernd Schmidt <bschmidt@redhat.com>
12771
12772 PR target/60410
12773 * tree.c (build_common_tree_nodes): Remove short_double argument.
12774 All callers changed.
12775 * tree.h (build_common_tree_nodes): Adjust declaration.
12776 * doc/invoke.texi (-fshort-double): Remove documentation.
12777 * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
12778 MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
12779 * lto-wrapper.c (merge_and_complain, append_compiler_options)
12780 (append_linker_options): Don't handle OPT_fshort_double.
12781
12782 PR rtl-optimization/68730
12783 * lra-remat.c (insn_to_cand_activation): New static variable.
12784 (lra_remat): Allocate and free it.
12785 (create_cand): New arg activation. Initialize a field in
12786 insn_to_cand_activation if it is nonnull.
12787 (create_cands): Pass the activation insn to create_cand when making
12788 a candidate involving an output reload. Reorganize code a little.
12789 (do_remat): Keep track of active status of candidates in a separate
12790 bitmap.
12791
12792 2016-02-08 Richard Biener <rguenther@suse.de>
12793
12794 PR tree-optimization/69719
12795 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
12796 Properly use absolute of the difference of the two offsets to
12797 compare or adjust the segment length.
12798
12799 2016-02-08 Richard Biener <rguenther@suse.de>
12800 Jeff Law <law@redhat.com>
12801
12802 PR target/68273
12803 * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
12804 types for anonymous SSA names.
12805
12806 2016-02-08 Richard Biener <rguenther@suse.de>
12807
12808 PR rtl-optimization/69274
12809 * ira.c (ira_setup_alts): Do not change recog_data.operand order.
12810
12811 2016-02-08 Jeff Law <law@redhat.com>
12812
12813 PR tree-optimization/65917
12814 * tree-ssa-dom.c (record_temporary_equivalences): Record both
12815 equivalences from if (x == y) style conditionals.
12816 (loop_depth_of_name): Remove.
12817 (record_equality): Remove loop depth check.
12818 * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
12819 (const_and_copies::record_const_or_copy_raw): New member function.
12820 * tree-ssa-scopedtables.c
12821 (const_and_copies::record_const_or_copy_raw): New, factored out of
12822 (const_and_copies::record_const_or_copy): Call new member function.
12823
12824 2016-02-05 Jeff Law <law@redhat.com>
12825
12826 PR tree-optimization/68541
12827 * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
12828 (count_stmts_in_block): New function.
12829 (poor_ifcvt_candidate_code): Likewise.
12830 (is_feasible_trace): Add some heuristics to determine when path
12831 splitting is profitable.
12832 (find_block_to_duplicate_for_splitting_paths): Make sure the graph
12833 is a diamond with a single exit.
12834
12835 2016-02-05 Martin Sebor <msebor@redhat.com>
12836
12837 PR c++/69662
12838 * doc/invoke.texi: Update -Wplacement-new to take an optional
12839 argument.
12840
12841 2016-02-06 Richard Henderson <rth@redhat.com>
12842
12843 PR c/69643
12844 * tree.c (tree_nop_conversion_p): Do not strip casts into or
12845 out of non-standard address spaces.
12846
12847 2016-02-05 Jakub Jelinek <jakub@redhat.com>
12848
12849 PR rtl-optimization/69691
12850 * lra-eliminations.c (move_plus_up): Don't add the addend twice.
12851
12852 2016-02-05 Pat Haugen <pthaugen@us.ibm.com>
12853
12854 * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
12855 * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
12856 (*ieee128_mfvsrd_64bit): Likewise.
12857 (*ieee128_mfvsrd_32bit): Likewise.
12858
12859 2016-02-05 Ilya Enkovich <enkovich.gnu@gmail.com>
12860
12861 PR target/69369
12862 Revert r232560:
12863 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
12864
12865 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
12866 instrumented_version.
12867
12868 2016-01-05 Jeremy Bennett <jeremy.bennett@embecosm.com>
12869
12870 * doc/invoke.texi (Optimize Options): In table of --param options
12871 rename second occurrence of tracer-min-branch-ratio to
12872 tracer-min-branch-probability, rename
12873 tracer-min-branch-ratio-feedback to
12874 tracer-min-branch-probability-feedback and clarify description,
12875 rename sched-spec-state-edge-prob-cutoff to
12876 sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
12877 to selsched-insns-to-rename, rename lto-minpartition to
12878 lto-min-partition, delete reorder-blocks-duplicate and
12879 reorder-blocks-duplicate-feedback.
12880
12881 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12882
12883 * config/s390/s390.c (s390_register_info_set_ranges): Remove
12884 superfluous loops.
12885
12886 2016-02-05 Dominik Vogt <vogt@linux.vnet.ibm.com>
12887
12888 * doc/extend.texi: S/390: Correct some typos.
12889
12890 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12891
12892 * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
12893
12894 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12895
12896 PR target/69625
12897 * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
12898 (s390_register_info_gprtofpr): Use new macros above.
12899 (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
12900 its name.
12901 (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
12902 its name. Adjust restore and save gpr ranges.
12903 (s390_register_info_set_ranges): New function.
12904 (s390_register_info): Use new macros above. Call
12905 s390_register_info_set_ranges.
12906 (s390_optimize_register_info): Likewise.
12907 (s390_hard_regno_rename_ok): Use new macros.
12908 (s390_hard_regno_scratch_ok): Likewise.
12909 (s390_emit_epilogue): Likewise.
12910 (s390_can_use_return_insn): Likewise.
12911 (s390_optimize_prologue): Likewise.
12912 * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
12913
12914 2016-02-05 Jakub Jelinek <jakub@redhat.com>
12915
12916 PR bootstrap/69677
12917 * config/i386/i386.c (convert_scalars_to_vector): Readd stack
12918 alignment fixes.
12919 (ix86_option_override_internal): Disable TARGET_STV even for
12920 -m{incoming,preferred}-stack-boundary=3.
12921
12922 2016-02-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12923
12924 * config.gcc: Mark deprecated rtems targets as obsolete.
12925
12926 2016-02-04 Segher Boessenkool <segher@kernel.crashing.org>
12927
12928 PR rtl-optimization/64682
12929 PR rtl-optimization/69567
12930 * combine.c (distribute_notes) <REG_DEAD>: Place the death note
12931 before I2 only if the register is both used and set in I2.
12932
12933 2016-02-04 DJ Delorie <dj@redhat.com>
12934
12935 * config/msp430/msp430.c (msp430_start_function): Add function type.
12936
12937 2016-02-04 Jakub Jelinek <jakub@redhat.com>
12938
12939 PR fortran/69368
12940 * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
12941
12942 2016-02-04 Uros Bizjak <ubizjak@gmail.com>
12943
12944 PR rtl-optimization/69577
12945 Revert:
12946 2015-10-29 Richard Henderson <rth@redhat.com>
12947
12948 PR target/68124
12949 PR rtl-opt/67609
12950 * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
12951 sse check to the exact conditions of PR 67609.
12952
12953 2016-02-04 Michael Meissner <meissner@linux.vnet.ibm.com>
12954
12955 PR target/69667
12956 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
12957 instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
12958 not allowed into the traditional Altivec registers.
12959 (movtd_64bit_nodm): Likewise.
12960 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
12961
12962 2016-02-04 David Malcolm <dmalcolm@redhat.com>
12963
12964 * config/aarch64/cortex-a57-fma-steering.c
12965 (aarch64_register_fma_steering): Remove "static" from arguments
12966 to register_pass.
12967
12968 2016-02-04 Wilco Dijkstra <wdijkstr@arm.com>
12969
12970 PR target/69619
12971 * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
12972 twice when complex.
12973
12974 2016-02-04 Mike Frysinger <vapier@gentoo.org>
12975
12976 * doc/invoke.texi: Delete -mno-fma4.
12977
12978 2016-02-04 Richard Sandiford <richard.sandiford@arm.com>
12979
12980 PR rtl-optimization/69577
12981 * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
12982 (find_subregs_of_mode): Update accordingly. Iterate over partial
12983 definitions.
12984
12985 2016-02-04 Alan Lawrence <alan.lawrence@arm.com>
12986
12987 * config/arm/arm-protos.h (neon_reinterpret): Remove.
12988 * config/arm/arm.c (neon_reinterpret): Remove.
12989 * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
12990 vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
12991 vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
12992 vreinterpretti): Remove.
12993 * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
12994 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
12995 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
12996 neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
12997 neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
12998 neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
12999 * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
13000 vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
13001 vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
13002 vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
13003 vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
13004 vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
13005 vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
13006 vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
13007 vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
13008 vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
13009 vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
13010 vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
13011 vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
13012 vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
13013 vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
13014 vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
13015 vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
13016 vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
13017 vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
13018 vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
13019 vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
13020 vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
13021 vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
13022 vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
13023 vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
13024 vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
13025 vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
13026 vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
13027 vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
13028 vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
13029 vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
13030 vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
13031 vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
13032 vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
13033 vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
13034 vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
13035 vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
13036 vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
13037 vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
13038 vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
13039 vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
13040 vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
13041 vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
13042 vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
13043 vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
13044 vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
13045 vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
13046 vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
13047 vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
13048 vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
13049 vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
13050 vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
13051 vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
13052 vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
13053 vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
13054 vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
13055 vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
13056 vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
13057 vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
13058 vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
13059 vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
13060 vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
13061 vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
13062 vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
13063 vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
13064 vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
13065 vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
13066 vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
13067 vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
13068 vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
13069 vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
13070 vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
13071 vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
13072 vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
13073 vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
13074 vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
13075 vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
13076 vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
13077 vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
13078 vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
13079 vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
13080 vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
13081 vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
13082 vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
13083 vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
13084 vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
13085 vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
13086 vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
13087 vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
13088 vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
13089 vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
13090 vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
13091 vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
13092 vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
13093 vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
13094 vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
13095 vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
13096
13097 2016-02-04 Martin Liska <mliska@suse.cz>
13098
13099 PR sanitizer/69276
13100 * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
13101 that are gimple_store_p.
13102 (maybe_instrument_call): Likewise.
13103
13104 2016-02-04 Bin Cheng <bin.cheng@arm.com>
13105
13106 * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
13107 register scaling out of memory reference and comment why.
13108
13109 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13110
13111 PR target/65932
13112 PR target/67714
13113 * cse.c (cse_insn): Pass NULL to fold_rtx when initially
13114 folding the source of a SET.
13115
13116 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13117
13118 PR target/65932
13119 PR target/67714
13120 * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
13121 the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
13122
13123 2016-02-04 Jim Wilson <jim.wilson@linaro.org>
13124
13125 PR target/65932
13126 PR target/67714
13127 * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
13128 HImode.
13129
13130 2016-02-04 Christian Bruel <christian.bruel@st.com>
13131
13132 * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
13133 * config/arm/arm.c (arm_set_current_function): Likewise.
13134
13135 2016-02-04 Jakub Jelinek <jakub@redhat.com>
13136 Ilya Enkovich <enkovich.gnu@gmail.com>
13137 H.J. Lu <hongjiu.lu@intel.com>
13138
13139 PR target/69454
13140 * config/i386/i386.c (convert_scalars_to_vector): Remove
13141 stack alignment fixes.
13142 (ix86_option_override_internal): Disable TARGET_STV if stack
13143 might not be aligned enough.
13144 (ix86_minimum_alignment): Assert that TARGET_STV is false.
13145
13146 2016-02-04 Victoria Stepanyan <victoria.stepanyan@amd.com>
13147
13148 * config/i386/x86-tune.def: Disable default prefetching
13149 for -march=znver1.
13150
13151 2016-02-03 Michael Meissner <meissner@linux.vnet.ibm.com>
13152 Vladimir Makarov <vmakarov@redhat.com>
13153
13154 PR target/69461
13155 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
13156 in validating fused toc addresses.
13157
13158 2016-02-03 Jakub Jelinek <jakub@redhat.com>
13159
13160 PR c/69627
13161 * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
13162 range->m_caret fields if range->m_show_caret_p is false.
13163
13164 PR target/69644
13165 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
13166 Force oldval into register if it does not satisfy reg_or_short_operand
13167 predicate. Fix up formatting.
13168
13169 2016-02-03 Vladimir Makarov <vmakarov@redhat.com>
13170 Alexandre Oliva <aoliva@redhat.com>
13171
13172 PR target/69461
13173 * lra-constraints.c (simplify_operand_subreg): Check additionally
13174 address validity after potential reloading.
13175 (process_address_1): Check insns validity. In case of failure do
13176 nothing.
13177
13178 2016-02-03 Kirill Yukhin <kirill.yukhin@intel.com>
13179
13180 PR target/69118
13181 * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
13182 Fix target.
13183
13184 2016-02-02 Jakub Jelinek <jakub@redhat.com>
13185
13186 * wide-int.cc (canonize_uhwi): New function.
13187 (wi::divmod_internal): Use it.
13188
13189 2016-02-02 James Norris <jnorris@codesourcery.com
13190
13191 * gimplify.c (omp_notice_variable): Add usage check.
13192
13193 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
13194
13195 * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
13196 like LE, GE, LT, GT when emitting relational operator.
13197
13198 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
13199
13200 * ira-costs.c (find_costs_and_classes): Add extra argument.
13201 * target.def (ira_change_pseudo_allocno_class): Add parameter.
13202 * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
13203 * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
13204 * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
13205 Add best_class parameter, and return it if not ALL_REGS.
13206 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
13207 Add parameter.
13208 * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
13209 Update target hook.
13210
13211 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
13212
13213 * config/aarch64/aarch64.c
13214 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
13215 (aarch64_ira_change_pseudo_allocno_class): New function.
13216
13217 2016-02-02 Uros Bizjak <ubizjak@gmail.com>
13218
13219 PR target/67032
13220 * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
13221
13222 2016-02-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
13223
13224 * config/avr/avr.c (avr_option_override): Set
13225 PARAM_ALLOW_STORE_DATA_RACES to 1.
13226
13227 2016-02-02 Richard Biener <rguenther@suse.de>
13228
13229 PR tree-optimization/69595
13230 * match.pd: Add range test simplifications to true/false.
13231
13232 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
13233
13234 * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
13235 * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
13236 instead.
13237
13238 2016-02-02 Richard Biener <rguenther@suse.de>
13239
13240 PR tree-optimization/69606
13241 * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
13242 info on the result before moving a stmt.
13243
13244 2016-02-02 Yuri Rumyantsev <ysrumyan@gmail.com>
13245
13246 PR middle-end/68542
13247 * config/i386/i386.c (ix86_expand_branch): Add support for conditional
13248 branch with vector comparison.
13249 * config/i386/sse.md (VI48_AVX): New mode iterator.
13250 (define_expand "cbranch<mode>4): Add support for conditional branch
13251 with vector comparison.
13252 * tree-vect-loop.c (optimize_mask_stores): New function.
13253 * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
13254 has_mask_store field of vect_info.
13255 * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
13256 vectorized loops having masked stores after vec_info destroy.
13257 * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
13258 correspondent macros.
13259 (optimize_mask_stores): Add prototype.
13260
13261 2016-02-02 Alan Modra <amodra@gmail.com>
13262
13263 PR target/69548
13264 * config/rs6000/predicates.md (quad_int_reg_operand): Don't
13265 allow subregs.
13266
13267 2016-02-02 Alan Modra <amodra@gmail.com>
13268
13269 PR target/68662
13270 * config/rs6000/rs6000.c (need_toc_init): New var, set it
13271 whenever toc_label_name used.
13272 (rs6000_file_start): Don't set up toc section here,
13273 (rs6000_output_function_epilogue): do so here instead,
13274 (rs6000_xcoff_file_start): and here.
13275 * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
13276 (load_toc_aix_di): Likewise.
13277
13278 2016-02-01 Jakub Jelinek <jakub@redhat.com>
13279
13280 PR rtl-optimization/69592
13281 * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
13282 (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
13283 (num_sign_bit_copies_binary_arith_p): New inline function.
13284 (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
13285
13286 2016-02-01 Jeff Law <law@redhat.com>
13287
13288 PR tree-optimization/69580
13289 * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
13290 * tree-ssa-threadbackward.c
13291 (fsm_find_control_statement_thread_paths): Do not try to walk
13292 through large PHI nodes.
13293
13294 2016-02-01 Jakub Jelinek <jakub@redhat.com>
13295
13296 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
13297 when count is incremented above limit, don't analyze further
13298 insns afterwards.
13299
13300 * omp-low.c (oacc_parse_default_dims): Avoid
13301 -Wsign-compare warning, make sure value fits into int
13302 rather than just unsigned int.
13303
13304 2016-02-01 Bin Cheng <bin.cheng@arm.com>
13305
13306 PR tree-optimization/67921
13307 * fold-const.c (split_tree): New parameters. Convert pointer
13308 type variable part to proper type before negating.
13309 (fold_binary_loc): Pass new arguments to split_tree.
13310
13311 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
13312
13313 * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
13314 (nvptx_goacc_validate_dims): Extend to handle global defaults.
13315 * target.def (OACC_VALIDATE_DIMS): Extend documentation.
13316 * doc/tm.texti: Rebuilt.
13317 * doc/invoke.texi (fopenacc-dim): Document.
13318 * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
13319 (append_compiler_options): Likewise.
13320 * omp-low.c (oacc_default_dims, oacc_min_dims): New.
13321 (oacc_parse_default_dims): New.
13322 (oacc_validate_dims): Add USED arg. Select non-unity default when
13323 possible.
13324 (oacc_loop_fixed_partitions): Return mask of used partitions.
13325 (oacc_loop_auto_partitions): Emit dump info.
13326 (oacc_loop_partition): Return mask of used partitions.
13327 (execute_oacc_device_lower): Parse default dimension arg. Adjust
13328 loop partitioning and validation calls.
13329
13330 2016-02-01 Richard Biener <rguenther@suse.de>
13331
13332 PR middle-end/69556
13333 * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
13334
13335 2016-02-01 Richard Biener <rguenther@suse.de>
13336
13337 PR tree-optimization/69574
13338 * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
13339 of asserting return chrec_dont_know.
13340
13341 2016-02-01 Martin Liska <mliska@suse.cz>
13342
13343 * mem-stats-traits.h: Add copyright header.
13344 * mem-stats.h: Likewise.
13345
13346 2016-02-01 Richard Biener <rguenther@suse.de>
13347
13348 PR tree-optimization/69579
13349 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
13350 Do not propagate through abnormal PHI results.
13351
13352 2016-02-01 Eric Botcazou <ebotcazou@adacore.com>
13353
13354 * postreload.c (reload_cse_simplify): Remove dead code.
13355
13356 2016-02-01 Jakub Jelinek <jakub@redhat.com>
13357
13358 PR rtl-optimization/69570
13359 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
13360 if there is more than one set, not if there is a single set.
13361
13362 2016-02-01 Richard Henderson <rth@redhat.com>
13363
13364 PR rtl-opt/69535
13365 * combine.c (make_compound_operation): When looking through a
13366 subreg, make sure to re-extend to the width of the outer mode.
13367
13368 2016-01-30 Jakub Jelinek <jakub@redhat.com>
13369
13370 PR tree-optimization/69546
13371 * wide-int.cc (wi::divmod_internal): For unsigned division
13372 where both operands fit into uhwi, if o1 is 1 and o0 has
13373 msb set, if divident_prec is larger than bits per hwi,
13374 clear another quotient word and return 2 instead of 1.
13375 Similarly for remainder with msb in HWI set, if dividend_prec
13376 is larger than bits per hwi.
13377
13378 2016-01-29 Martin Jambor <mjambor@suse.cz>
13379
13380 * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
13381 Use short lowercase names.
13382 (get_memory_order): Mask with MEMMODEL_BASE_MASK. Support
13383 MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
13384 acq_rel one. Protect warning agains segfaults if
13385 get_memory_order_name returns NULL.
13386 (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
13387 with release semantics. Do not warn if get_memory_order already did.
13388 (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
13389 semantics. Fix check for relaxed or acquire semantics. Do not warn
13390 if get_memory_order already did.
13391
13392 2016-01-29 Sebastian Pop <s.pop@samsung.com>
13393
13394 * doc/install.texi: Document that isl-0.16 is supported.
13395
13396 2016-01-29 Vladimir Makarov <vmakarov@redhat.com>
13397
13398 PR target/69299
13399 * config/i386/constraints.md (Bm): Describe as special memory
13400 constraint.
13401 * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
13402 * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
13403 * genpreds.c (struct constraint_data): Add is_special_memory.
13404 (have_special_memory_constraints, special_memory_start): New
13405 static vars.
13406 (special_memory_end): Ditto.
13407 (add_constraint): Add new arg is_special_memory. Add code to
13408 process its true value. Update have_special_memory_constraints.
13409 (process_define_constraint): Pass the new arg.
13410 (process_define_register_constraint): Ditto.
13411 (choose_enum_order): Process special memory.
13412 (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
13413 function insn_extra_special_memory_constraint.
13414 (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
13415 * gensupport.c (process_rtx): Process
13416 DEFINE_SPECIAL_MEMORY_CONSTRAINT.
13417 * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
13418 * ira-lives.c (single_reg_class): Use
13419 insn_extra_special_memory_constraint.
13420 * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
13421 * lra-constraints.c (process_alt_operands): Ditto.
13422 (curr_insn_transform): Use insn_extra_special_memory_constraint.
13423 * recog.c (asm_operand_ok, preprocess_constraints): Process
13424 CT_SPECIAL_MEMORY.
13425 * reload.c (find_reloads): Ditto.
13426 * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
13427 * stmt.c (parse_input_constraint): Use
13428 insn_extra_special_memory_constraint.
13429
13430 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
13431
13432 PR target/69530
13433 * lra-splill.c (lra_final_code_change): Revert r229087 by
13434 removing all sub-registers.
13435
13436 2016-01-29 Steve Ellcey <sellcey@imgtec.com>
13437
13438 PR target/65604
13439 * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
13440
13441 2016-01-29 Jakub Jelinek <jakub@redhat.com>
13442
13443 PR target/69551
13444 * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
13445 SSE1, copy target into the temporary reg first before recursing
13446 on it.
13447
13448 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
13449
13450 * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
13451 with vm.
13452
13453 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
13454
13455 * ginclude/stdarg.h: Test __cplusplus instead of
13456 __GXX_EXPERIMENTAL_CXX0X__.
13457
13458 2016-01-29 Richard Biener <rguenther@suse.de>
13459
13460 PR tree-optimization/69547
13461 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
13462 Do not mark clobbers necessary.
13463 (mark_all_reaching_defs_necessary_1): Likewise.
13464
13465 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
13466
13467 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
13468 declaration name with %qs and print it in both error messages.
13469 Also fix indentation.
13470
13471 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
13472
13473 PR other/69006
13474 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
13475 trailing blank line from error message.
13476
13477 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
13478
13479 PR c++/69462
13480 * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
13481 for C++-11.
13482
13483 2016-01-29 Richard Biener <rguenther@suse.de>
13484
13485 PR middle-end/69537
13486 * match.pd: Allow all integral types when simplifying a
13487 widening or sign-changing conversion.
13488
13489 2016-01-28 Sebastian Pop <s.pop@samsung.com>
13490
13491 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
13492 back to setting codegen_error to fail codegen.
13493
13494 2016-01-28 Uros Bizjak <ubizjak@gmail.com>
13495
13496 PR target/69459
13497 * config/i386/constraints.md (C): Only accept constant zero operand.
13498 (BC): New constraint.
13499 * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
13500 instead of C constraint.
13501 * doc/md.texi (Machine Constraints): Update description
13502 of C constraint.
13503
13504 2016-01-28 Steve Ellcey <sellcey@imgtec.com>
13505
13506 PR target/68400
13507 * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
13508
13509 2016-01-28 Jakub Jelinek <jakub@redhat.com>
13510
13511 PR middle-end/69542
13512 * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
13513 non-debug insns.
13514
13515 2016-01-28 Pat Haugen <pthaugen@us.ibm.com>
13516
13517 * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
13518 branches if using guessed profile.
13519
13520 2016-01-28 H.J. Lu <hongjiu.lu@intel.com>
13521
13522 * graphite-optimize-isl.c (optimize_isl): Fix dump.
13523
13524 2016-01-28 Richard Henderson <rth@redhat.com>
13525
13526 PR target/69305
13527 * config/aarch64/aarch64-modes.def (CC_Cmode): New
13528 * config/aarch64/aarch64-protos.h: Update.
13529 * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
13530 (aarch64_select_cc_mode): Add check for use of CC_Cmode.
13531 (aarch64_get_condition_code_1): Handle CC_Cmode.
13532 * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
13533 (*add<mode>3_compareC_cconly_imm): New.
13534 (*add<mode>3_compareC_cconly): New.
13535 (*add<mode>3_compareC_imm): New.
13536 (add<mode>3_compareC): New.
13537 (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
13538 to be first. Use aarch64_carry_operation.
13539 (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
13540 (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
13541 (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
13542 (subti3): Use subdi3_compare1.
13543 (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
13544 (sub<mode>3_compare1): New.
13545 (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
13546 (*sub<mode>3_carryin): Use aarch64_borrow_operation.
13547 (*subsi3_carryin_uxtw): Likewise.
13548 (*ngc<mode>, *ngcsi_uxtw): Likewise.
13549 (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
13550 * config/aarch64/iterators.md (DWI): New.
13551 * config/aarch64/predicates.md (aarch64_carry_operation): New.
13552 (aarch64_borrow_operation): New.
13553
13554 2016-01-28 Abderrazek Zaafrani <a.zaafrani@samsung.com>
13555
13556 * graphite-optimize-isl.c (optimize_isl): Print a different debug
13557 message when isl does not return a valid schedule.
13558
13559 2016-01-28 Sebastian Pop <s.pop@samsung.com>
13560
13561 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
13562 Remove comments from class declarations: they are already in the code
13563 close by the defs.
13564
13565 2016-01-28 Sebastian Pop <s.pop@samsung.com>
13566
13567 * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
13568 codegen_error_p.
13569 (ternary_op_to_tree): Same.
13570 (unary_op_to_tree): Same.
13571 (nary_op_to_tree): Same.
13572 (gcc_expression_from_isl_expr_op): Same.
13573 (gcc_expression_from_isl_expression): Same.
13574 (graphite_create_new_loop): Same.
13575 (graphite_create_new_loop_guard): Same.
13576 (build_iv_mapping): Same.
13577 (graphite_create_new_guard): Same.
13578 (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
13579 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
13580
13581 2016-01-28 Sebastian Pop <s.pop@samsung.com>
13582
13583 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
13584 instead of setting codegen_error to fail codegen.
13585
13586 2016-01-28 Jason Merrill <jason@redhat.com>
13587
13588 * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
13589
13590 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
13591
13592 * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
13593 Remove CONST_INT_P check in CCMP cost calculation.
13594
13595 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
13596
13597 * config/aarch64/aarch64.c (generic_vector_cost):
13598 Set vec_permute_cost.
13599 (cortexa57_vector_cost): Likewise.
13600 (exynosm1_vector_cost): Likewise.
13601 (xgene1_vector_cost): Likewise.
13602 (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
13603 * config/aarch64/aarch64-protos.h (cpu_vector_cost):
13604 Add vec_permute_cost entry.
13605
13606 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
13607
13608 * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
13609 immediate as %1.
13610 (add<mode>3_compare0): Likewise.
13611 (addsi3_compare0_uxtw): Likewise.
13612 (add<mode>3nr_compare0): Likewise.
13613 (compare_neg<mode>): Likewise.
13614 (<optab><mode>3): Likewise.
13615
13616 2016-01-28 Ilya Enkovich <enkovich.gnu@gmail.com>
13617
13618 * tree-vect-stmts.c (vectorizable_comparison): Add
13619 NULL check for vectype.
13620
13621 2016-01-28 Richard Biener <rguenther@suse.de>
13622
13623 PR tree-optimization/69466
13624 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
13625 Account for PHIs we couldn't duplicate.
13626
13627 2016-01-28 Martin Liska <mliska@suse.cz>
13628
13629 PR pch/68758
13630 * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
13631 instead of ENABLE_VALGRIND_CHECKING.
13632
13633 2016-01-27 Richard Henderson <rth@redhat.com>
13634
13635 PR rtl-opt/69447
13636 * lra-remat.c (subreg_regs): New.
13637 (dump_candidates_and_remat_bb_data): Dump it.
13638 (operand_to_remat): Reject if operand in subreg_regs.
13639 (set_bb_regs): Collect subreg_regs.
13640 (lra_remat): Init and free subreg_regs. Compute
13641 calculate_local_reg_remat_bb_data before create_cands.
13642
13643 2016-01-27 H.J. Lu <hongjiu.lu@intel.com>
13644
13645 PR target/68986
13646 * config/i386/i386.c (ix86_update_stack_boundary): Don't
13647 change stack_alignment_needed for __tls_get_addr call.
13648
13649 2016-01-27 Segher Boessenkool <segher@kernel.crashing.org>
13650
13651 * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
13652
13653 2016-01-27 Jeff Law <law@redhat.com>
13654
13655 PR tree-optimization/68398
13656 PR tree-optimization/69196
13657 * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
13658 (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
13659 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
13660 Only count PHIs in the last block in the path. The others will
13661 const/copy propagate away. Add heuristic to allow more irreducible
13662 subloops to be created when it is likely profitable to do so.
13663
13664 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
13665 Fix typo in comment. Use gsi_after_labels and remove the GIMPLE_LABEL
13666 check from within the loop. Use gsi_next_nondebug rather than gsi_next.
13667
13668 2016-01-27 Jakub Jelinek <jakub@redhat.com>
13669
13670 PR lto/69254
13671 * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
13672 END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
13673 * asan.c (DEF_BUILTIN_STUB): Temporarily define.
13674 * tree-streamer-in.c: Include asan.h.
13675 (streamer_get_builtin_tree): For builtins in sanitizer
13676 range call initialize_sanitizer_builtins and retry.
13677
13678 2016-01-27 Ian Lance Taylor <iant@google.com>
13679
13680 * common.opt (fkeep-gc-roots-live): New undocumented option.
13681 * tree-ssa-loop-ivopts.c (add_candidate_1): If
13682 -fkeep-gc-roots-live, skip pointers.
13683 (add_iv_candidate_for_biv): Handle add_candidate_1 returning
13684 NULL.
13685
13686 2016-01-27 Uros Bizjak <ubizjak@gmail.com>
13687
13688 PR target/69512
13689 * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
13690 (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
13691
13692 2016-01-27 Thomas Klausner <wiz@NetBSD.org>
13693
13694 PR target/68380
13695 * configure.ac: NetBSD provides SSP in its C library.
13696 * configure: Updated.
13697
13698 2016-01-27 Richard Biener <rguenther@suse.de>
13699
13700 PR tree-optimization/69166
13701 * tree-vect-loop.c (vect_is_simple_reduction): Always check
13702 reduction code for commutativity / associativity.
13703
13704 2016-01-27 Martin Jambor <mjambor@suse.cz>
13705
13706 PR tree-optimization/69355
13707 * tree-sra.c (analyze_access_subtree): Correct hole detection when
13708 total_scalarization fails.
13709
13710 2016-01-27 David Edelsohn <dje.gcc@gmail.com>
13711
13712 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
13713 power9.
13714
13715 2016-01-27 Christian Bruel <christian.bruel@st.com>
13716
13717 PR target/69245
13718 * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
13719 Move arm_reset_previous_fndecl and set_target_option_current_node in
13720 the conditional part. Call save_restore_target_globals.
13721 * config/arm/arm.c (arm_set_current_function):
13722 Refactor to better support #pragma target and attribute mix.
13723 Call save_restore_target_globals.
13724 * config/arm/arm-protos.h (save_restore_target_globals): New function.
13725
13726 2016-01-27 Martin Liska <mliska@suse.cz>
13727
13728 * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
13729 reference for an HSA kernel and its host function.
13730
13731 2016-01-27 Jakub Jelinek <jakub@redhat.com>
13732
13733 PR tree-optimization/69399
13734 * wide-int.h (wi::lrshift): For larger precisions, only
13735 use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
13736
13737 2016-01-27 Claudiu Zissulescu <claziss@synopsys.com>
13738
13739 * config/arc/predicates.md (proper_comparison_operator): Reject
13740 constant-constant comparison.
13741
13742 2016-01-26 Tom de Vries <tom@codesourcery.com>
13743
13744 PR tree-optimization/69110
13745 * tree-data-ref.c (initialize_data_dependence_relation): Handle
13746 DR_NUM_DIMENSIONS == 0.
13747
13748 2016-01-26 Abderrazek Zaafrani <a.zaafrani@samsung.com>
13749 Sebastian Pop <s.pop@samsung.com>
13750
13751 * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
13752 isl_ast_op_cond and isl_ast_op_select.
13753 (gcc_expression_from_isl_expr_op): Same.
13754
13755 2016-01-26 Jason Merrill <jason@redhat.com>
13756
13757 PR c++/68782
13758 * tree.c (recompute_constructor_flags): Split out from
13759 build_constructor.
13760 (verify_constructor_flags): New.
13761 * tree.h: Declare them.
13762
13763 2016-01-26 Iain Buclaw <ibuclaw@gdcproject.org>
13764
13765 PR rtl-optimization/69217
13766 * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
13767 are no TYPE_FIELDS set for the record type.
13768
13769 2016-01-26 Jakub Jelinek <jakub@redhat.com>
13770
13771 PR target/68662
13772 * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
13773 toc_label_name unconditionally.
13774 (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
13775 SYMBOL_REF string. Use toc_label_name instead of constructing
13776 LCTOC1.
13777 (rs6000_elf_declare_function_name): Use toc_label_name instead of
13778 constructing LCTOC1.
13779
13780 2016-01-26 Martin Sebor <msebor@redhat.com>
13781
13782 PR other/69477
13783 * doc/extend.texi (Common Type Attributes): Move text that talks about
13784 attribute packed from attribute aligned to the section discussing
13785 the former attribute for clarity.
13786
13787 2016-01-26 Richard Henderson <rth@redhat.com>
13788
13789 PR middle-end/60908
13790 * trans-mem.c (tm_region_init): Mark entry block as visited.
13791
13792 2016-01-26 David Malcolm <dmalcolm@redhat.com>
13793
13794 PR other/69006
13795 * diagnostic-show-locus.c (layout::print_source_line): Replace
13796 call to pp_newline with call to layout::print_newline.
13797 (layout::print_annotation_line): Likewise.
13798 (layout::move_to_column): Likewise.
13799 (layout::print_any_fixits): After printing any fixits, print a
13800 trailing newline, if necessary.
13801 (layout::print_newline): New method, resetting any colorization
13802 before a newline.
13803 (diagnostic_show_locus): Move the pp_newline to before the
13804 early bailout. Remove dummy block enclosing the layout instance.
13805 * diagnostic.c (default_diagnostic_finalizer): Replace invocation
13806 of pp_newline_and_flush with pp_flush.
13807 (diagnostic_append_note): Delete use of pp_newline.
13808 (diagnostic_append_note_at_rich_loc): Delete.
13809 * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
13810 * pretty-print.h (output_buffer_append_r): Reset buff->line_length
13811 when newline characters are added to the buffer.
13812
13813 2016-01-26 Michael Matz <matz@suse.de>
13814
13815 * configure.ac (ac_cv_std_swap_in_utility): New test.
13816 * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
13817 * configure: Regenerate.
13818 * config.in: Regenerate.
13819
13820 2016-01-26 Claudiu Zissulescu <claziss@synopsys.com>
13821
13822 * config/arc/arc.md (cstoresi4): Force operand into register.
13823 (arcset<code>): Fix predicate.
13824 (arcsetltu): Likewise.
13825 (arcsetgeu): Likewise.
13826 (arcsethi): Likewise.
13827 (arcsetls): Likewise.
13828
13829 2016-01-26 Jakub Jelinek <jakub@redhat.com>
13830
13831 PR tree-optimization/69483
13832 * gimple-fold.c (canonicalize_constructor_val): Return NULL
13833 if base has error_mark_node type.
13834
13835 2016-01-26 Christophe Lyon <christophe.lyon@linaro.org>
13836
13837 PR target/68620
13838 * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
13839 * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
13840 New helper macros.
13841 (vget_lane_f16): Handle big-endian.
13842 (vgetq_lane_f16): Likewise.
13843 (vset_lane_f16): Likewise.
13844 (vsetq_lane_f16): Likewise.
13845 * config/arm/iterators.md (VQXMOV): Add V8HF.
13846 (VDQ): Add V4HF and V8HF.
13847 (V_reg): Handle V4HF and V8HF.
13848 (Is_float_mode): Likewise.
13849 * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
13850 neon_vdup_nv8hf): New patterns.
13851 (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
13852 Use VD_LANE iterator.
13853 (neon_vld1_dup<mode>): Use VQ2 iterator.
13854
13855 2016-01-26 Nathan Sidwell <nathan@acm.org>
13856
13857 * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
13858 (set_oacc_fn_attrib): Add IS_KERNEL arg.
13859 * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
13860 (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
13861 (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
13862 (oacc_validate_dims): Add LEVEL arg, don't return level.
13863 (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
13864 oacc_validate_dims.
13865 (execute_oacc_device_lower): Adjust, add more dump output.
13866 * tree-ssa-loop.c (gate_oacc_kernels): Use
13867 oacc_fn_attrib_kernels_p.
13868 * tree-parloops.c (create_parallel_loop): Adjust
13869 set_oacc_fn_attrib call.
13870
13871 2016-01-26 Jakub Jelinek <jakub@redhat.com>
13872
13873 PR lto/69254
13874 * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
13875 (append_compiler_options): Handle -fcilkplus.
13876 (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
13877
13878 2016-01-26 Nick Clifton <nickc@redhat.com>
13879
13880 PR target/66655
13881 * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
13882 been marked as DECL_ONE_ONLY but we do not the means to make it
13883 so, then do not allow it to bind locally.
13884
13885 2016-01-26 Jakub Jelinek <jakub@redhat.com>
13886
13887 PR lto/69254
13888 * opts.h (parse_sanitizer_options): New prototype.
13889 * opts.c (sanitizer_opts): New array.
13890 (parse_sanitizer_options): New function.
13891 (common_handle_option): Use parse_sanitizer_options.
13892
13893 2016-01-26 H.J. Lu <hongjiu.lu@intel.com>
13894
13895 PR target/68986
13896 * config/i386/i386.c (ix86_compute_frame_layout): Move stack
13897 alignment adjustment to ...
13898 (ix86_update_stack_boundary): Here. Don't over-align stack for
13899 __tls_get_addr.
13900 (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
13901 if __tls_get_addr is called.
13902
13903 2016-01-26 Christian Bruel <christian.bruel@st.com>
13904
13905 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
13906
13907 2016-01-26 Eric Botcazou <ebotcazou@adacore.com>
13908
13909 * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
13910
13911 2016-01-26 Richard Biener <rguenther@suse.de>
13912
13913 PR middle-end/69467
13914 * match.pd: Guard X * CST CMP 0 pattern with single_use.
13915
13916 2016-01-26 Richard Biener <rguenther@suse.de>
13917
13918 PR tree-optimization/69452
13919 * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
13920 (move_computations_dom_walker::before_dom_children): Rename
13921 to ...
13922 (move_computations_worker): This.
13923 (move_computations): Perform an RPO rather than a DOM walk.
13924
13925 2016-01-26 Jakub Jelinek <jakub@redhat.com>
13926
13927 PR target/69442
13928 * combine.c (combine_instructions): For REG_EQUAL note with
13929 SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
13930 to the underlying register.
13931 * doc/rtl.texi (REG_EQUAL): Document the behavior of
13932 REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
13933
13934 2016-01-26 Roger Ferrer Ibáñez <rofirrim@gmail.com>
13935
13936 PR target/67896
13937 * config/aarch64/aarch64-builtins.c
13938 (aarch64_init_simd_builtin_types): Do not set structural
13939 equality to __Poly{8,16,64,128}_t types.
13940
13941 2016-01-26 Richard Sandiford <richard.sandiford@arm.com>
13942
13943 PR tree-optimization/69400
13944 * wide-int.cc (wi_pack): Take the precision as argument and
13945 perform canonicalization here rather than in the callers.
13946 Use the main loop to handle all full-width HWIs. Add a
13947 zero HWI if in_len isn't a full result.
13948 (wi::divmod_internal): Update accordingly.
13949 (wi::mul_internal): Likewise. Simplify.
13950
13951 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
13952 Sebastian Pop <s.pop@samsung.com>
13953
13954 * graphite-poly.c (apply_poly_transforms): Simplify.
13955 (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
13956 (print_isl_map): Same.
13957 (print_isl_union_map): Same.
13958 (print_isl_schedule): New.
13959 (debug_isl_schedule): New.
13960 * graphite-dependences.c (scop_get_reads): Do not call
13961 isl_union_map_add_map that is undocumented isl functionality.
13962 (scop_get_must_writes): Same.
13963 (scop_get_may_writes): Same.
13964 (scop_get_original_schedule): Remove.
13965 (scop_get_dependences): Do not call isl_union_map_compute_flow that
13966 is deprecated in isl 0.15. Instead, use isl_union_access_* interface.
13967 (compute_deps): Remove.
13968 * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
13969 (debug_schedule_ast): New.
13970 (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
13971 set_separate_option.
13972 (graphite_regenerate_ast_isl): Add dump.
13973 (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
13974 from scop->transformed_schedule.
13975 (graphite_regenerate_ast_isl): Add more dump.
13976 * graphite-optimize-isl.c (optimize_isl): Set
13977 scop->transformed_schedule. Check whether schedules are equal.
13978 (apply_poly_transforms): Move here.
13979 * graphite-poly.c (apply_poly_transforms): ... from here.
13980 (free_poly_bb): Static.
13981 (free_scop): Static.
13982 (pbb_number_of_iterations_at_time): Remove.
13983 (print_isl_ast): New.
13984 (debug_isl_ast): New.
13985 (debug_scop_pbb): New.
13986 * graphite-scop-detection.c (print_edge): Move.
13987 (print_sese): Move.
13988 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
13989 (build_scop_scattering): Remove.
13990 (create_pw_aff_from_tree): Assert instead of bailing out.
13991 (add_condition_to_pbb): Remove unused code, do not fail.
13992 (add_conditions_to_domain): Same.
13993 (add_conditions_to_constraints): Remove.
13994 (build_scop_context): New.
13995 (add_iter_domain_dimension): New.
13996 (build_iteration_domains): Initialize pbb->iterators.
13997 Call add_conditions_to_domain.
13998 (nested_in): New.
13999 (loop_at): New.
14000 (index_outermost_in_loop): New.
14001 (index_pbb_in_loop): New.
14002 (outermost_pbb_in): New.
14003 (add_in_sequence): New.
14004 (add_outer_projection): New.
14005 (outer_projection_mupa): New.
14006 (add_loop_schedule): New.
14007 (build_schedule_pbb): New.
14008 (build_schedule_loop): New.
14009 (embed_in_surrounding_loops): New.
14010 (build_schedule_loop_nest): New.
14011 (build_original_schedule): New.
14012 (build_poly_scop): Call build_original_schedule.
14013 * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
14014 (free_poly_dr): Remove.
14015 (struct poly_bb): Add iterators. Remove schedule, transformed, saved.
14016 (free_poly_bb): Remove.
14017 (debug_loop_vec): Remove.
14018 (print_isl_ast): Declare.
14019 (debug_isl_ast): Declare.
14020 (scop_do_interchange): Remove.
14021 (scop_do_strip_mine): Remove.
14022 (scop_do_block): Remove.
14023 (flatten_all_loops): Remove.
14024 (optimize_isl): Remove.
14025 (pbb_number_of_iterations_at_time): Remove.
14026 (debug_scop_pbb): Declare.
14027 (print_schedule_ast): Declare.
14028 (debug_schedule_ast): Declare.
14029 (struct scop): Remove schedule. Add original_schedule,
14030 transformed_schedule.
14031 (free_gimple_poly_bb): Remove.
14032 (print_generated_program): Remove.
14033 (debug_generated_program): Remove.
14034 (unify_scattering_dimensions): Remove.
14035 * sese.c (print_edge): ... here.
14036 (print_sese): ... here.
14037 (debug_edge): ... here.
14038 (debug_sese): ... here.
14039 * sese.h (print_edge): Declare.
14040 (print_sese): Declare.
14041 (dump_edge): Declare.
14042 (dump_sese): Declare.
14043
14044 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
14045 Sebastian Pop <s.pop@samsung.com>
14046
14047 * Makefile.in: Set ISLVER in site.exp.
14048
14049 2016-01-25 Jakub Jelinek <jakub@redhat.com>
14050
14051 * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
14052 DECL_VALUE_EXPR of new_var even for the non-array case. Look
14053 through DECL_VALUE_EXPR for expansion.
14054
14055 2016-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
14056
14057 * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
14058 the frame info after reload completed.
14059
14060 2016-01-25 Jeff Law <law@redhat.com>
14061
14062 PR tree-optimization/69196
14063 PR tree-optimization/68398
14064 * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
14065 tree-ssa-threadupdate.c.
14066 (determine_bb_domination_status): Prototype
14067 * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
14068 (determine_bb_domination_status): No longer static.
14069 (valid_jump_thread_path): Remove code to detect characteristics
14070 of the jump thread path not associated with correctness.
14071 * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
14072 Correct test for thread path length. Count PHIs for real operands as
14073 statements that need to be copied. Do not count ASSERT_EXPRs.
14074 Look at all the blocks in the thread path. Compute and selectively
14075 filter thread paths based on threading through the latch, threading
14076 a multiway branch or crossing a multiway branch.
14077
14078 2016-01-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14079
14080 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): Add
14081 decl with __attribute__ ((unused)) annotation.
14082
14083 2016-01-25 Ilya Enkovich <enkovich.gnu@gmail.com>
14084
14085 PR target/69421
14086 * tree-vect-stmts.c (vectorizable_condition): Check vectype
14087 of operands is compatible with a statement vectype.
14088
14089 2016-01-25 Eric Botcazou <ebotcazou@adacore.com>
14090
14091 * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
14092 improve wording for mixed storage order support.
14093
14094 2016-01-25 Bilyan Borisov <bilyan.borisov@arm.com>
14095
14096 * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
14097 (vcvt_u64_f64): Likewise.
14098 (vcvta_s64_f64): Likewise.
14099 (vcvta_u64_f64): Likewise.
14100 (vcvtm_s64_f64): Likewise.
14101 (vcvtm_u64_f64): Likewise.
14102 (vcvtn_s64_f64): Likewise.
14103 (vcvtn_u64_f64): Likewise.
14104 (vcvtp_s64_f64): Likewise.
14105 (vcvtp_u64_f64): Likewise.
14106
14107 2016-01-25 Claudiu Zissulescu <claziss@synopsys.com>
14108
14109 * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
14110 (arc_init): Check validity mll64 option.
14111 (arc_save_restore): Use double load/store instruction.
14112 (arc_expand_movmem): Likewise.
14113 (arc_split_move): Don't split if we have double load/store
14114 instructions. Returns a boolean.
14115 (arc_process_double_reg_moves): Change function to return boolean
14116 instead of a sequence of instructions.
14117 (arc_dwarf_register_span): New function.
14118 * config/arc/arc-protos.h (arc_split_move): Change prototype.
14119 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
14120 * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
14121 (*movdf_insn): Likewise.
14122 * config/arc/arc.opt (mll64): New option.
14123 * config/arc/predicates.md (even_register_operand): New predicate.
14124 * doc/invoke.texi (ARC Options): Add mll64 documentation.
14125
14126 2016-01-25 Richard Biener <rguenther@suse.de>
14127
14128 PR lto/69393
14129 * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
14130 * tree-streamer-out.c (pack_ts_base_value_fields): Stream
14131 DECL_NAMELESS.
14132 * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
14133
14134 2016-01-25 Richard Biener <rguenther@suse.de>
14135
14136 PR tree-optimization/69376
14137 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
14138 flag.
14139 (VN_INFO_ANTI_RANGE_P): New inline.
14140 (VN_INFO_RANGE_TYPE): Likewise.
14141 * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
14142 SSA_NAME_ANTI_RANGE_P.
14143 (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
14144 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
14145 Properly query VN_INFO_RANGE_TYPE.
14146
14147 2016-01-25 Nick Clifton <nickc@redhat.com>
14148
14149 PR target/66655
14150 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
14151
14152 2016-01-23 Tom de Vries <tom@codesourcery.com>
14153
14154 PR tree-optimization/69426
14155 * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
14156 removed clobber.
14157
14158 2016-01-23 Jakub Jelinek <jakub@redhat.com>
14159
14160 * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
14161 "the the" with "the" in the comments.
14162 * ipa-devirt.c (build_type_inheritance_graph,
14163 update_type_inheritance_graph): Likewise.
14164 * tree.c (build_function_type_list_1): Likewise.
14165 * cfgloopmanip.c (scale_loop_profile): Likewise.
14166 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
14167 * gimple-ssa-split-paths.c
14168 (find_block_to_duplicate_for_splitting_paths): Likewise.
14169 * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
14170 * expr.c (convert_move): Likewise.
14171 * var-tracking.c (vt_stack_adjustments): Likewise.
14172 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
14173 * tree-vrp.c (test_for_singularity): Likewise.
14174
14175 * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
14176 directly instead of building a temporary tree.
14177
14178 PR bootstrap/69434
14179 * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
14180 remove <algorithm> include.
14181
14182 2016-01-22 Jakub Jelinek <jakub@redhat.com>
14183
14184 PR target/69432
14185 * config/i386/i386.c: Include dojump.h.
14186 (expand_small_movmem_or_setmem,
14187 expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
14188 fixes.
14189 (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
14190 if dynamic_check != -1.
14191
14192 2016-01-21 Jeff Law <law@redhat.com>
14193
14194 PR middle-end/69347
14195 * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
14196 record_temporary_equivalences. Rewritten to avoid unnecessary calls
14197 into dominated_by_p.
14198 (cprop_into_successor_phis): Avoid unnecessary tests.
14199
14200 2016-01-22 Richard Henderson <rth@redhat.com>
14201
14202 PR target/69416
14203 * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
14204 (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
14205
14206 2016-01-22 Michael Matz <matz@suse.de>
14207
14208 * system.h (string, algorithm): Include only conditionally.
14209 (new): Include always under C++.
14210 * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
14211 * final.c (toplevel): Ditto.
14212 * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
14213 * genconditions.c (write_header): Make gencondmd.c define
14214 INCLUDE_STRING.
14215 * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
14216
14217 * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
14218 * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
14219
14220 2016-01-22 Christian Bruel <christian.bruel@st.com>
14221
14222 PR target/68674
14223 * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
14224
14225 2016-01-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14226
14227 PR target/69403
14228 * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
14229 define_insn_and_split. Ensure operands[1] and operands[0] do not
14230 get assigned the same register.
14231
14232 2016-01-22 Kugan Vivekanandarajah <kuganv@linaro.org>
14233
14234 * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
14235
14236 2016-01-22 Christian Bruel <christian.bruel@st.com>
14237
14238 * config/arm/arm-c.c (arm_pragma_target_parse):
14239 Remove warn_builtin_macro_redefined overwrite.
14240
14241 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
14242
14243 * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
14244 flag_non_call_exceptions compatibility.
14245
14246 2016-01-22 Jakub Jelinek <jakub@redhat.com>
14247
14248 PR debug/66668
14249 * dwarf2out.c (add_child_die_after): New function.
14250 (dwarf_qual_info_t): New type.
14251 (dwarf_qual_info): New variable.
14252 (qualified_die_p): New function.
14253 (modified_type_die): For -fdebug-types-section, ensure
14254 canonical order of qualifiers. Put qualified DIEs adjacent
14255 to the corresponding non-qualified type DIE and search there
14256 for existing qualified DIEs.
14257
14258 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
14259
14260 * doc/extend.texi (scalar_storage_order type attribute): Document
14261 restriction on type punning and aliasing, and remove future tense.
14262
14263 2016-01-21 Roman Zhuykov <zhroma@ispras.ru>
14264
14265 PR target/69252
14266 * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
14267 first stage.
14268
14269 2016-01-21 Jeff Law <law@redhat.com>
14270
14271 PR middle-end/69347
14272 * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
14273 useless call to record_temporary_equivalences.
14274 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
14275 allocate 10 slots in the bb_path vector and let it grow as needed.
14276 (fsm_find_control_statement_thread_paths): Similarly for the next_path
14277 vector.
14278
14279 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
14280
14281 * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
14282 Detangle.
14283 * configure: Regenerate.
14284
14285 2016-01-21 Pat Haugen <pthaugen@us.ibm.com>
14286
14287 * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
14288 * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
14289
14290 2016-01-21 Bernd Schmidt <bschmidt@redhat.com>
14291
14292 PR middle-end/66178
14293 * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
14294 drop EXPAND_INITIALIZER.
14295 * rtl.h (contains_symbolic_reference_p): Declare.
14296 * rtlanal.c (contains_symbolic_reference_p): New function.
14297 * simplify-rtx.c (simplify_binary_operation_1): Don't turn
14298 a subtraction into a NOT if symbolic constants are involved.
14299
14300 2016-01-21 Anton Blanchard <anton@samba.org>
14301 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14302
14303 PR target/63354
14304 * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
14305 #define.
14306 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
14307 function.
14308
14309 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
14310
14311 * config/microblaze/microblaze.c
14312 (get_branch_target): New.
14313 (insert_wic_for_ilb_runout): New.
14314 (insert_wic): New.
14315 (microblaze_machine_dependent_reorg): New.
14316 (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
14317 * config/microblaze/microblaze.md
14318 (UNSPEC_IPREFETCH): Define.
14319 (iprefetch): New pattern
14320 * config/microblaze/microblaze.opt
14321 (mxl-prefetch): New flag.
14322
14323 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
14324
14325 * config/microblaze/microblaze.h
14326 (FIXED_REGISTERS): Update in macro.
14327 (CALL_USED_REGISTERS): Update in macro.
14328
14329 2016-01-21 Yuri Rumyantsev <ysrumyan@gmail.com>
14330
14331 PR rtl-optimization/68920
14332 * ifcvt.c (cond_move_process_if_block): Limit number of conditional
14333 moves.
14334
14335 2016-01-21 Vladimir Makarov <vmakarov@redhat.com>
14336
14337 PR rtl-optimization/68990
14338 * lra-coalesce.c (lra_coalesce): Invalidate value for the result
14339 pseudo instead of inheritance ones.
14340
14341 2016-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
14342 Nick Clifton <nickc@redhat.com>
14343
14344 PR target/69129
14345 PR target/69012
14346 * config/mips/mips.c (mips_compute_frame_info): Initialise
14347 args_size and hard_frame_pointer_offset fields of the frame
14348 structure before calling mips_global_pointer.
14349
14350 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
14351
14352 * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
14353 label reference.
14354 * configure: Regenerate.
14355
14356 2016-01-21 Richard Biener <rguenther@suse.de>
14357
14358 * graphite-optimize-isl.c (get_schedule_map): Fix typo.
14359
14360 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
14361
14362 * config/s390/s390.c (s390_asm_declare_function_size): Add code
14363 to actually emit the .size directive.
14364
14365 2016-01-21 Stefan Sørensen <stefan.sorensen@spectralink.com>
14366 Jakub Jelinek <jakub@redhat.com>
14367
14368 PR target/69187
14369 PR target/65624
14370 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
14371 args array size by one to avoid buffer overflow.
14372
14373 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
14374
14375 * config/s390/s390.md (pool_section_start): Use switch_to_section
14376 to select proper read-only data section instead of hardcoding
14377 .rodata.
14378 (pool_section_end): Use switch_to_section to match the above.
14379
14380 2016-01-21 Richard Biener <rguenther@suse.de>
14381
14382 PR tree-optimization/69378
14383 * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
14384 (set_ssa_val_to): Use it for dominance checks taking into
14385 account not executable edges.
14386
14387 2016-01-21 Jakub Jelinek <jakub@redhat.com>
14388
14389 PR c++/69355
14390 * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
14391 for bitsize instead of GET_MODE_PRECISION (mode).
14392
14393 2016-01-20 Martin Sebor <msebor@redhat.com>
14394
14395 PR c/52291
14396 * extend.texi (__sync Builtins): Clarify the semantics of
14397 __sync_fetch_and_OP built-ins on pointers.
14398 (__atomic Builtins): Same.
14399
14400 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
14401 Sebastian Pop <s.pop@samsung.com>
14402
14403 * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
14404 (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
14405 (is_valid_rename): Same.
14406 (translate_isl_ast_to_gimple::get_rename): Same.
14407 (translate_isl_ast_to_gimple::rename_all_uses): Same.
14408 (translate_isl_ast_to_gimple::rename_uses): Same.
14409 (get_new_name): Check for close_phi nodes.
14410 (copy_loop_phi_args): Use phi_node_kind.
14411 (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
14412 (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
14413
14414 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
14415 Sebastian Pop <s.pop@samsung.com>
14416
14417 Revert commit r229783.
14418 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
14419 Remove use of parameter_rename_map.
14420 (copy_def): Remove.
14421 (copy_internal_parameters): Remove.
14422 (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
14423 * sese.c (new_sese_info): Do not initialize parameter_rename_map.
14424 (free_sese_info): Do not free parameter_rename_map.
14425 (set_rename): Do not use parameter_rename_map.
14426 (rename_uses): Update call to set_rename.
14427 (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
14428 * sese.h (parameter_rename_map_t): Remove.
14429 (struct sese_info_t): Remove field parameter_rename_map.
14430
14431 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
14432 Sebastian Pop <s.pop@samsung.com>
14433
14434 * graphite-isl-ast-to-gimple.c: Fix comment.
14435 * graphite-scop-detection.c (defined_in_loop_p): New.
14436 (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
14437 names defined in loop.
14438
14439 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
14440 Sebastian Pop <s.pop@samsung.com>
14441
14442 * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
14443 Discard unstructured if-then-else regions.
14444
14445 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
14446 Sebastian Pop <s.pop@samsung.com>
14447
14448 * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
14449 (cleanup_loop_iter_dom): Remove.
14450 (build_loop_iteration_domains): Remove.
14451 (build_scop_context): Remove.
14452 (build_scop_iteration_domain): Remove.
14453 (add_loop_constraints): New.
14454 (build_iteration_domains): New.
14455 (build_poly_scop): Call build_iteration_domains.
14456
14457 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
14458 Sebastian Pop <s.pop@samsung.com>
14459
14460 * graphite-scop-detection.c
14461 (scop_detection::harmful_loop_in_region): Free dom and loops.
14462 (scop_detection::loop_body_is_valid_scop): Free bbs.
14463
14464 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
14465 Sebastian Pop <s.pop@samsung.com>
14466
14467 * graphite-scop-detection.c (record_loop_in_sese): New.
14468 (gather_bbs::before_dom_children): Call record_loop_in_sese.
14469 (build_scops): Remove call to build_sese_loop_nests.
14470 * sese.c (sese_record_loop): Remove.
14471 (build_sese_loop_nests): Remove.
14472 (new_sese_info): Remove region->loops.
14473 (free_sese_info): Same.
14474 * sese.h (sese_contains_loop): Same.
14475 (build_sese_loop_nests): Remove.
14476 (sese_contains_loop): Remove.
14477
14478 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
14479 Sebastian Pop <s.pop@samsung.com>
14480
14481 * graphite-scop-detection.c (loop_is_valid_scop): Renamed
14482 loop_is_valid_in_scop.
14483 (scop_detection::harmful_stmt_in_region): Renamed
14484 harmful_loop_in_region.
14485 Call loop_is_valid_in_scop.
14486
14487 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
14488 Sebastian Pop <s.pop@samsung.com>
14489
14490 * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
14491 isl_ast_node_mark.
14492
14493 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
14494 Sebastian Pop <s.pop@samsung.com>
14495
14496 * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
14497 * graphite.h (struct poly_bb): Remove field is_reduction.
14498 (PBB_IS_REDUCTION): Remove.
14499
14500 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
14501 Sebastian Pop <s.pop@samsung.com>
14502
14503 * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
14504 (add_pdr_constraints): Same.
14505 (scop_get_reads): Same.
14506 (scop_get_must_writes): Same.
14507 (scop_get_may_writes): Same.
14508 (scop_get_original_schedule): Same.
14509 (extend_schedule): Same.
14510 (apply_schedule_on_deps): Same.
14511 (carries_deps): Same.
14512 (compute_deps): Same.
14513 (scop_get_dependences): Same.
14514 * graphite-isl-ast-to-gimple.c
14515 (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
14516 * graphite-optimize-isl.c (get_schedule_for_band): Same.
14517 (get_schedule_for_band_list): Same.
14518 (get_schedule_map): Same.
14519 (apply_schedule_map_to_scop): Same.
14520 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
14521 (build_loop_iteration_domains): Same.
14522 (add_condition_to_pbb): Same.
14523 (add_param_constraints): Same.
14524 (pdr_add_memory_accesses): Same.
14525 (pdr_add_data_dimensions): Same.
14526
14527 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
14528
14529 * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
14530 requirements.
14531
14532 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
14533
14534 * common.opt (feliminate-dwarf2-dups): Replace references to
14535 "DWARF 2" with just "DWARF".
14536 * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
14537 * doc/extend.texi: Likewise.
14538 * doc/cpp.texi: Likewise.
14539 * doc/invoke.texi: Likewise.
14540 (Option Summary): Add -gdwarf to list of Debugging Options.
14541 (Debugging Options): Document -gdwarf.
14542 * doc/contrib.texi: Spell "DWARF" like that.
14543
14544 2016-01-21 Jakub Jelinek <jakub@redhat.com>
14545
14546 * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
14547 warning. Fix up formatting.
14548
14549 PR middle-end/67653
14550 * gimplify.c (gimplify_asm_expr): Warn if it is too late to
14551 attempt to mark memory input operand addressable and
14552 call prepare_gimple_addressable in that case. Don't adjust
14553 input_location for diagnostics, use error_at instead.
14554
14555 2016-01-20 Peter Bergner <bergner@vnet.ibm.com>
14556
14557 * config/rs6000/ppc-auxv.h: New file.
14558 * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
14559 (cpu_is): Likewise.
14560 (cpu_supports): Likewise.
14561 * config/rs6000/rs6000.c: include "ppc-auxv.h".
14562 (cpu_is_info): New variable.
14563 (cpu_supports_info): Likewise.
14564 (tcb_verification_symbol): Likewise.
14565 (cpu_builtin_p): Likewise.
14566 (cpu_expand_builtin): New function.
14567 (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
14568 (rs6000_init_builtins): Likewise.
14569 (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
14570 * config/rs6000/rs6000.h (TLS_REGNUM): New define.
14571 * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
14572 * configure: Regenerate.
14573 * config.in: Likewise.
14574 * doc/extend.texi (PowerPC Built-in Functions): Document
14575 __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
14576
14577 2016-01-20 David Edelsohn <dje.gcc@gmail.com>
14578
14579 PR target/68609
14580 * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
14581 domain check.
14582 * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
14583 for V4SFmode.
14584
14585 2016-01-20 Richard Henderson <rth@redhat.com>
14586
14587 PR bootstrap/69343
14588 PR bootstrap/69339
14589 PR tree-opt/68964
14590 Revert:
14591 * tree.c (tm_define_builtin): New.
14592 (find_tm_vector_type): New.
14593 (build_tm_vector_builtins): New.
14594 (build_common_builtin_nodes): Call it.
14595
14596 2016-01-20 Christophe Lyon <christophe.lyon@linaro.org>
14597
14598 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
14599 (arm_fp_ok): Likewise.
14600 (arm_fp): Likewise.
14601 (arm_crypto): Likewise.
14602
14603 2016-01-20 Ilya Enkovich <enkovich.gnu@gmail.com>
14604 Richard Biener <rguenther@suse.de>
14605
14606 PR tree-optimization/69328
14607 * tree-vect-stmts.c (vect_is_simple_cond): Check compared
14608 vectors have same number of elements.
14609 (vectorizable_condition): Fix masked version recognition.
14610
14611 2016-01-20 Richard Biener <rguenther@suse.de>
14612
14613 PR tree-optimization/69345
14614 * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
14615 (VN_INFO_PTR_INFO): Likewise.
14616 * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
14617 info when it is equal between non-dominating SSA names.
14618 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
14619 Make sure to look at original SSA infos.
14620
14621 2016-01-20 Jeff Law <law@redhat.com>
14622
14623 PR target/25114
14624 * config/m68k/predicates.md (pow2_m1_operand): New predicate
14625 extracted from ...
14626 (reg_or_pow2_m1_operand): Call pow2_m1_operand.
14627 (pc_or_label_operand): New predicate.
14628 * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
14629 tests for small integers that are 2^n - 1.
14630
14631 2016-01-20 Jonathan Wakely <jwakely@redhat.com>
14632
14633 * doc/invoke.texi (Options Summary): Add '.' after @xref.
14634
14635 2016-01-19 Jeff Law <law@redhat.com>
14636
14637 PR middle-end/69347
14638 * tree-ssa-threadbackwards.c
14639 (fsm_find_control_statement_thread_paths): Do not try to lookup
14640 FSM paths for SSA_NAMEs appearing in abnormal PHIs.
14641
14642 2016-01-20 Kugan Vivekanandarajah <kuganv@linaro.org>
14643
14644 * doc/lto.texi: Remove text that says only Gold has linker plugin
14645 support.
14646
14647 2016-01-19 Eric Botcazou <ebotcazou@adacore.com>
14648
14649 * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
14650 (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
14651 the DIE accordingly.
14652 (modified_type_die): Add REVERSE parameter and pass it recursively,
14653 as well as to base_type_die. Adjust presence check accordingly.
14654 (base_type_for_mode): Adjust call to modified_type_die.
14655 (add_type_attribute): Add REVERSE parameter and pass it to
14656 modified_type_die.
14657 (generic_parameter_die): Adjust call to add_type_attribute.
14658 (add_scalar_info): Likewise.
14659 (add_subscript_info): Likewise.
14660 (gen_array_type_die): Likewise.
14661 (gen_descr_array_type_die): Likewise.
14662 (gen_entry_point_die): Likewise.
14663 (gen_enumeration_type_die): Likewise.
14664 (gen_formal_parameter_die): Likewise.
14665 (gen_subprogram_die): Likewise.
14666 (gen_variable_die ): Likewise.
14667 (gen_const_die): Likewise.
14668 (gen_field_die): Likewise.
14669 (gen_pointer_type_die): Likewise.
14670 (gen_reference_type_die): Likewise.
14671 (gen_ptr_to_mbr_type_die): Likewise.
14672 (gen_inheritance_die): Likewise.
14673 (gen_subroutine_type_die): Likewise.
14674 (gen_typedef_die): Likewise.
14675 (force_type_die): Adjust call to modified_type_die.
14676
14677 2016-01-19 Sandra Loosemore <sandra@codesourcery.com>
14678
14679 * doc/standards.texi: Copy-editing for grammar, markup, and sentence
14680 flow throughout the file. Fix broken link to Objective-C 2.0
14681 documentation.
14682 * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
14683 errors.
14684
14685 2016-01-19 Wilco Dijkstra <wdijkstr@arm.com>
14686
14687 * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
14688
14689 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
14690
14691 PR ipa/66223
14692 * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
14693 (maybe_record_node): Record cxa_pure_virtual as the only possible
14694 target if there are not ohter candidates.
14695 (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
14696
14697 2016-01-19 Richard Biener <rguenther@suse.de>
14698
14699 * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
14700 (get_memory_order): Likewise.
14701
14702 2016-01-19 Kirill Yukhin <kirill.yukhin@intel.com>
14703
14704 * tree-vect-stmts.c (vectorizable_store): Check
14705 rhs vectype.
14706
14707 2016-01-19 David Malcolm <dmalcolm@redhat.com>
14708
14709 PR jit/68446
14710 * gcc.c (driver::decode_argv): Add call to
14711 init_opts_obstack before init_options_struct.
14712 * opts.c (init_opts_obstack): Remove idempotency.
14713 (init_options_struct): Replace call to init_opts_obstack
14714 with a gcc_assert to verify that it has already been called.
14715 * toplev.c (toplev::main): Add call to init_opts_obstack before
14716 calls to init_options_struct.
14717 (toplev::finalize): Move cleanup of opts_obstack next to
14718 cleanup of save_decoded_options, clearing the latter, and
14719 save_decoded_options_count.
14720
14721 2016-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14722
14723 PR target/69135
14724 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
14725 attribute to unconditional. Remove %? from output template.
14726
14727 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
14728 Jiong Wang <jiong.wang@arm.com>
14729
14730 * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
14731 generated from different expand order.
14732
14733 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
14734
14735 * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
14736 Add support for CCMP costing.
14737
14738 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
14739
14740 * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
14741 * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
14742 (fccmpe<mode>): Likewise.
14743 (fcmp): Rename to fcmp and globalize pattern.
14744 (fcmpe): Likewise.
14745 * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
14746 (aarch64_gen_ccmp_next): Add FP support.
14747
14748 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
14749
14750 * target.def (gen_ccmp_first): Update documentation.
14751 (gen_ccmp_next): Likewise.
14752 * doc/tm.texi (gen_ccmp_first): Update documentation.
14753 (gen_ccmp_next): Likewise.
14754 * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
14755 expand_ccmp_expr_1. Improve comments.
14756 * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
14757 (ccmp_ior<mode>): Remove pattern.
14758 (cmp<mode>): Remove expand.
14759 (cmp): Globalize pattern.
14760 (cstorecc4): Use cc_register.
14761 (mov<mode>cc): Remove ccmp_cc_register check.
14762 * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
14763 Simplify after removal of CC_DNE/* modes.
14764 (aarch64_ccmp_mode_to_code): Remove.
14765 (aarch64_print_operand): Remove 'K' case. Merge 'm' and 'M' cases.
14766 In 'k' case use integer as condition.
14767 (aarch64_nzcv_codes): Remove inverted cases.
14768 (aarch64_code_to_ccmode): Remove.
14769 (aarch64_gen_ccmp_first): Use cmp pattern directly. Return the correct
14770 comparison with CC register to be used in folowing CCMP/branch/CSEL.
14771 (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
14772 pattern. Return the comparison with CC register. Invert conditions
14773 when bitcode is OR.
14774 * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
14775 * config/aarch64/predicates.md (ccmp_cc_register): Remove.
14776
14777 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
14778
14779 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
14780 instrumented_version.
14781
14782 2016-01-19 Richard Biener <rguenther@suse.de>
14783
14784 PR tree-optimization/69336
14785 * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
14786 handled components with get_ref_base_and_extent.
14787 (equal_mem_array_ref_p): Adjust.
14788
14789 2016-01-19 Jakub Jelinek <jakub@redhat.com>
14790
14791 PR debug/65779
14792 * shrink-wrap.c: Include valtrack.h.
14793 (move_insn_for_shrink_wrap): Add DEBUG argument. If
14794 MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
14795 in between insn and where it will be moved to. Call
14796 dead_debug_insert_temp.
14797 (prepare_shrink_wrap): Adjust caller. Call dead_debug_local_init
14798 first and dead_debug_local_finish at the end.
14799 For uses and defs bitmap, handle all regs in between REGNO and
14800 END_REGNO, not just the first one.
14801
14802 2016-01-19 Richard Biener <rguenther@suse.de>
14803
14804 PR tree-optimization/69352
14805 * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
14806 (equal_mem_array_ref_p): Constrain size and max size properly.
14807 Compare the reverse flag.
14808
14809 2016-01-19 Bernd Schmidt <bschmidt@redhat.com>
14810
14811 * ira.c (ira): Update regstat data if we deleted insns.
14812
14813 2016-01-19 Jakub Jelinek <jakub@redhat.com>
14814
14815 PR rtl-optimization/68955
14816 PR rtl-optimization/64557
14817 * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
14818 here. Fix up formatting.
14819 * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
14820
14821 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
14822
14823 PR lto/69133
14824 * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
14825 assume that the node has body.
14826 * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
14827 check.
14828
14829 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
14830
14831 * lto-streamer-out.c (lto_output): Do not stream instrumentation
14832 thunks.
14833
14834 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
14835
14836 * symtab.c (symtab_node::asm_name): Do not call printable name directly.
14837 (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
14838
14839 2016-01-19 Martin Jambor <mjambor@suse.cz>
14840 Martin Liska <mliska@suse.cz>
14841 Michael Matz <matz@suse.de>
14842
14843 * Makefile.in (OBJS): Add new source files.
14844 (GTFILES): Add hsa.c.
14845 * common.opt (disable_hsa): New variable.
14846 (-Whsa): New warning.
14847 * config.in (ENABLE_HSA): New.
14848 * configure.ac: Treat hsa differently from other accelerators.
14849 (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
14850 $enable_offloading.
14851 (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
14852 * doc/install.texi (Configuration): Document --with-hsa-runtime,
14853 --with-hsa-runtime-include, --with-hsa-runtime-lib and
14854 --with-hsa-kmt-lib.
14855 * doc/invoke.texi (-Whsa): Document.
14856 (hsa-gen-debug-stores): Likewise.
14857 * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
14858 to invoke offload compiler for hsa acclerator.
14859 * opts.c (common_handle_option): Determine whether HSA offloading
14860 should be performed.
14861 * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
14862 * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
14863 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
14864 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
14865 * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
14866 * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
14867 GF_OMP_FOR_KIND_GRID_LOOP.
14868 (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
14869 (pp_gimple_stmt_1): Likewise.
14870 * gimple-walk.c (walk_gimple_stmt): Likewise.
14871 * gimple.c (gimple_build_omp_grid_body): New function.
14872 (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
14873 * gimple.def (GIMPLE_OMP_GRID_BODY): New.
14874 * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
14875 GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
14876 GF_OMP_TEAMS_GRID_PHONY.
14877 (gimple_statement_omp_single_layout): Updated comments.
14878 (gimple_build_omp_grid_body): New function.
14879 (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
14880 (gimple_omp_for_grid_phony): New function.
14881 (gimple_omp_for_set_grid_phony): Likewise.
14882 (gimple_omp_parallel_grid_phony): Likewise.
14883 (gimple_omp_parallel_set_grid_phony): Likewise.
14884 (gimple_omp_teams_grid_phony): Likewise.
14885 (gimple_omp_teams_set_grid_phony): Likewise.
14886 (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
14887 * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
14888 (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
14889 (BUILT_IN_GOMP_TARGET): Updated type.
14890 * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
14891 (adjust_for_condition): New function.
14892 (get_omp_for_step_from_incr): Likewise.
14893 (extract_omp_for_data): Moved parts to adjust_for_condition and
14894 get_omp_for_step_from_incr.
14895 (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
14896 (fixup_child_record_type): Bail out if receiver_decl is NULL.
14897 (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
14898 (scan_omp_parallel): Do not create child functions for phony
14899 constructs.
14900 (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
14901 (scan_omp_1_op): Checking assert we are not remapping to
14902 ERROR_MARK. Also also handle GIMPLE_OMP_GRID_BODY.
14903 (parallel_needs_hsa_kernel_p): New function.
14904 (expand_parallel_call): Register apprpriate parallel child
14905 functions as HSA kernels.
14906 (grid_launch_attributes_trees): New type.
14907 (grid_attr_trees): New variable.
14908 (grid_create_kernel_launch_attr_types): New function.
14909 (grid_insert_store_range_dim): Likewise.
14910 (grid_get_kernel_launch_attributes): Likewise.
14911 (get_target_argument_identifier_1): Likewise.
14912 (get_target_argument_identifier): Likewise.
14913 (get_target_argument_value): Likewise.
14914 (push_target_argument_according_to_value): Likewise.
14915 (get_target_arguments): Likewise.
14916 (expand_omp_target): Call get_target_arguments instead of looking
14917 up for teams and thread limit.
14918 (grid_expand_omp_for_loop): New function.
14919 (grid_arg_decl_map): New type.
14920 (grid_remap_kernel_arg_accesses): New function.
14921 (grid_expand_target_kernel_body): New function.
14922 (expand_omp): Call it.
14923 (lower_omp_for): Do not emit phony constructs.
14924 (lower_omp_taskreg): Do not emit phony constructs but create for them
14925 a temporary variable receiver_decl.
14926 (lower_omp_taskreg): Do not emit phony constructs.
14927 (lower_omp_teams): Likewise.
14928 (lower_omp_grid_body): New function.
14929 (lower_omp_1): Call it.
14930 (grid_reg_assignment_to_local_var_p): New function.
14931 (grid_seq_only_contains_local_assignments): Likewise.
14932 (grid_find_single_omp_among_assignments_1): Likewise.
14933 (grid_find_single_omp_among_assignments): Likewise.
14934 (grid_find_ungridifiable_statement): Likewise.
14935 (grid_target_follows_gridifiable_pattern): Likewise.
14936 (grid_remap_prebody_decls): Likewise.
14937 (grid_copy_leading_local_assignments): Likewise.
14938 (grid_process_kernel_body_copy): Likewise.
14939 (grid_attempt_target_gridification): Likewise.
14940 (grid_gridify_all_targets_stmt): Likewise.
14941 (grid_gridify_all_targets): Likewise.
14942 (execute_lower_omp): Call grid_gridify_all_targets.
14943 (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
14944 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
14945 (tree_omp_clause): Added union field dimension.
14946 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
14947 * tree.c (omp_clause_num_ops): Added number of arguments of
14948 OMP_CLAUSE__GRIDDIM_.
14949 (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
14950 (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
14951 * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
14952 (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
14953 (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
14954 (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
14955 * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
14956 * tree-pass.h (make_pass_gen_hsail): Declare.
14957 (make_pass_ipa_hsa): Likewise.
14958 * ipa-hsa.c: New file.
14959 * lto-section-in.c (lto_section_name): Add hsa section name.
14960 * lto-streamer.h (lto_section_type): Add hsa section.
14961 * timevar.def (TV_IPA_HSA): New.
14962 * hsa-brig-format.h: New file.
14963 * hsa-brig.c: New file.
14964 * hsa-dump.c: Likewise.
14965 * hsa-gen.c: Likewise.
14966 * hsa.c: Likewise.
14967 * hsa.h: Likewise.
14968 * toplev.c (compile_file): Call hsa_output_brig.
14969 * hsa-regalloc.c: New file.
14970
14971 2016-01-18 Jeff Law <law@redhat.com>
14972
14973 PR tree-optimization/69320
14974 * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
14975 ranged object, do nothing if the RHS constant is not [0..1].
14976 (optimize_stmt): Comparing a boolean ranged object against a
14977 constant outside [0..1] results in a compile-time constant.
14978
14979 * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
14980 test.
14981
14982 2016-01-18 Sandra Loosemore <sandra@codesourcery.com>
14983
14984 * doc/invoke.texi (Invoking GCC): Add new section to menu.
14985 (Option Summary): Update to reflect new section and moved options.
14986 (C++ Dialect Options): Move -fstats to new section.
14987 (Debugging Options): Move all dump, statistics, and other GCC
14988 developer options to new section. Rewrite section introduction
14989 and re-order remaining options to put the more basic ones first.
14990 (Optimization Options): Move -fira-verbose and -flto-report* to
14991 new section.
14992 (Developer Options): New section incorporating moved options.
14993 * doc/cppopts.texi (-dM): Update cross-reference.
14994
14995 2016-01-18 Richard Henderson <rth@redhat.com>
14996
14997 PR target/69176
14998 * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
14999 operands to pseudo only if CSE is expected. Split long immediate
15000 operands only after reload, and for the stack pointer.
15001 (*add<GPI>3_pluslong): Remove.
15002 (*addsi3_aarch64, *adddi3_aarch64): Merge into...
15003 (*add<GPI>3_aarch64): ... here. Add r/rk/Upl alternative.
15004 (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
15005 (*add<GPI>3 peepholes): New.
15006 (*add<GPI>3 splitters): New.
15007 * config/aarch64/constraints.md (Upl): New.
15008 * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
15009
15010 2016-01-18 Richard Biener <rguenther@suse.de>
15011
15012 PR tree-optimization/69297
15013 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
15014 stmt at most once.
15015 (vect_bb_vectorization_profitable_p): Clear visited flag again.
15016
15017 2016-01-18 Yuri Rumyantsev <ysrumyan@gmail.com>
15018
15019 PR middle-end/68542
15020 * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
15021 of mixind vector and scalar types.
15022 (fold_relational_const): Add handling of vector
15023 comparison with boolean result.
15024 * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
15025 comparison of vector operands with boolean result for EQ/NE only.
15026 (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
15027 (verify_gimple_cond): Likewise.
15028 * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
15029 valid type of VAL.
15030
15031 2016-01-18 Joseph Myers <joseph@codesourcery.com>
15032
15033 * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
15034 !TARGET_OCTEON.
15035
15036 2016-01-18 Richard Biener <rguenther@suse.de>
15037
15038 PR middle-end/69308
15039 * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
15040
15041 2016-01-18 Tom de Vries <tom@codesourcery.com>
15042
15043 * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
15044
15045 2016-01-18 Tom de Vries <tom@codesourcery.com>
15046
15047 * omp-low.c (set_oacc_fn_attrib): Make extern.
15048 * omp-low.h (set_oacc_fn_attrib): Declare.
15049 * tree-parloops.c (struct reduction_info): Add reduc_addr field.
15050 (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
15051 (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
15052 Add and handle function parameter oacc_kernels_p.
15053 (find_reduc_addr, get_omp_data_i_param): New function.
15054 (ref_conflicts_with_region, oacc_entry_exit_ok_1)
15055 (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
15056 (parallelize_loops): Add and handle function parameter oacc_kernels_p.
15057 Calculate dominance info. Skip loops that are not in a kernels region
15058 in oacc_kernels_p mode. Skip inner loops of parallelized loops.
15059 (pass_parallelize_loops::execute): Call parallelize_loops with
15060 oacc_kernels_p argument.
15061 (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
15062 New member function.
15063 (pass_parallelize_loops::bool oacc_kernels_p): New member var.
15064 * passes.def: Add argument to pass_parallelize_loops instantation.
15065
15066 2016-01-18 Tom de Vries <tom@codesourcery.com>
15067
15068 * tree-parloops.c (pass_parallelize_loops::execute): Allow
15069 pass_parallelize_loops to be run outside the loop pipeline.
15070
15071 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
15072
15073 * tree-scalar-evolution.c (follow_copies_to_constant): New.
15074 (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
15075
15076 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
15077
15078 PR target/63679
15079 * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
15080 using get_ref_base_and_extent.
15081 (equal_mem_array_ref_p): New.
15082 (hashable_expr_equal_p): Add call to previous.
15083
15084 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
15085
15086 PR target/63679
15087 * tree-sra.c (disqualified_constants, constant_decl_p): New.
15088 (sra_initialize): Allocate disqualified_constants.
15089 (sra_deinitialize): Free disqualified_constants.
15090 (disqualify_candidate): Update disqualified_constants when appropriate.
15091 (create_access): Scan for constant-pool entries as we go along.
15092 (scalarizable_type_p): Add check against type_contains_placeholder_p.
15093 (maybe_add_sra_candidate): Allow constant-pool entries.
15094 (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
15095 (initialize_constant_pool_replacements): New.
15096 (sra_modify_assign): Avoid mangling assignments created by previous,
15097 and don't generate writes into constant pool.
15098 (sra_modify_function_body): Call initialize_constant_pool_replacements.
15099
15100 2016-01-18 Ilya Enkovich <enkovich.gnu@gmail.com>
15101
15102 * config/i386/i386.c (scalar_to_vector_candidate_p): Support
15103 andnot instruction.
15104 (scalar_chain::convert_op): Likewise.
15105 * config/i386/i386.md (*andndi3_doubleword): New.
15106
15107 2016-01-18 Richard Biener <rguenther@suse.de>
15108
15109 PR tree-optimization/69170
15110 * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
15111 building a vector from scalar results of a pattern stmt.
15112
15113 2016-01-18 Jakub Jelinek <jakub@redhat.com>
15114
15115 * haifa-sched.c (autopref_multipass_init): Work around
15116 -Wmaybe-uninitialized warning.
15117
15118 2016-01-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
15119
15120 * config/arm/arm.c (thumb1_reorg): Check that the comparison is
15121 against the constant 0.
15122
15123 2016-01-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15124
15125 PR tree-optimization/68799
15126 * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
15127 look up phi candidates in the statement-candidate map.
15128 (phi_add_costs): Likewise.
15129 (record_phi_increments): Likewise.
15130 (phi_incr_cost): Likewise.
15131 (ncd_with_phi): Likewise.
15132 (all_phi_incrs_profitable): Likewise.
15133
15134 2016-01-17 Jakub Jelinek <jakub@redhat.com>
15135
15136 * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
15137 -Wmaybe-uninitialized warning.
15138
15139 2016-01-16 Sandra Loosemore <sandra@codesourcery.com>
15140
15141 * doc/invoke.texi (Invoking GCC): Add new section to menu.
15142 (Option Summary): Update to reflect new section and moved options.
15143 (C++ Dialect Options): Move -fvtable-verify and related options.
15144 (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
15145 and profiling-related options.
15146 (Optimization Options): Move profile generation options and
15147 -fstack-protector and related options.
15148 (Instrumentation Options): New section incorporating moved options.
15149 (Code Generation Options): Move -finstrument-functions and
15150 related options, -fstack-check, -fstack-limit*, and -fbounds-check.
15151
15152 2016-01-16 Tom de Vries <tom@codesourcery.com>
15153
15154 * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
15155
15156 2016-01-16 Tom de Vries <tom@codesourcery.com>
15157
15158 * omp-low.c (expand_omp_atomic_fetch_op): Release defs of update stmt.
15159
15160 2016-01-16 Richard Sandiford <richard.sandiford@arm.com>
15161
15162 * hash-table.h (hash_table::empty): Turn into an inline wrapper
15163 that checks whether the table is already empty. Rename the
15164 original implementation to...
15165 (hash_table::empty_slot): ...this new private function.
15166
15167 2016-01-15 David Malcolm <dmalcolm@redhat.com>
15168
15169 PR diagnostic/68899
15170 * diagnostic-show-locus.c (layout::print_source_line): Move x
15171 offset of line until after call to
15172 get_line_width_without_trailing_whitespace.
15173
15174 2016-01-15 Jeff Law <law@redhat.com>
15175
15176 PR tree-optimization/69270
15177 * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
15178 tree-ssa-dom.c. Improve test for [0..1] ranve from VRP.
15179 * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
15180 * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
15181 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
15182 ssa_name_has_boolean_range and constant_boolean_node.
15183
15184 2016-01-15 Vladimir Makarov <vmakarov@redhat.com>
15185
15186 PR rtl-optimization/69030
15187 * lra-spills.c (remove_pseudos): Check nrefs and make the function
15188 returning bool.
15189 (spill_pseudos): Delete debug insn for dead pseudo.
15190 (lra_spill): Initiate spill_hard_reg and slots memory separately.
15191
15192 2016-01-15 Jiong Wang <jiong.wang@arm.com>
15193
15194 * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
15195 New.
15196 (TYPES_UNOPUS): Likewise.
15197 * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
15198 builtin type, from UNOP to UNOPUS.
15199 (lbtruncuv4sf): Likewise.
15200 (lbtruncuv2df): Likewise.
15201 (lrounduv2sf): Likewise.
15202 (lrounduv4sf): Likewise.
15203 (lrounduv2df): Likewise.
15204 (lroundusf): Likewise.
15205 (lroundusf): Likewise.
15206 (lceiluv2sf): Likewise.
15207 (lceiluv4sf): Likewise.
15208 (lceiluv2df): Likewise.
15209 (lceilusf): Likewise.
15210 (lceiludf): Likewise.
15211 (lflooruv2sf): Likewise.
15212 (lflooruv4sf): Likewise.
15213 (lflooruv2df): Likewise.
15214 (lfloorusf): Likewise.
15215 (lfloorudf): Likewise.
15216 (lfrintnuv2sf): Likewise.
15217 (lfrintnuv4sf): Likewise.
15218 (lfrintnuv2df): Likewise.
15219 (lfrintnusf): Likewise.
15220 (lfrintnudf): Likewise.
15221 * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
15222 conversion.
15223 (vcvtq_u32_f32): Likewise.
15224 (vcvtq_u64_f64): Likewise.
15225 (vcvta_u32_f32): Likewise.
15226 (vcvtaq_u32_f32): Likewise.
15227 (vcvtaq_u64_f64): Likewise.
15228 (vcvtm_u32_f32): Likewise.
15229 (vcvtmq_u32_f32): Likewise.
15230 (vcvtmq_u64_f64): Likewise.
15231 (vcvtn_u32_f32): Likwise.
15232 (vcvtnq_u32_f32): Likewise.
15233 (vcvtnq_u64_f64): Likewise.
15234 (vcvtp_u32_f32): Likewise.
15235 (vcvtpq_u32_f32): Likewise.
15236 (vcvtpq_u64_f64): Likewise.
15237 (vcvtmd_u64_f64): Likewise.
15238 (vcvtms_u32_f32): Likewise.
15239 (vcvtad_u64_f64): Likewise.
15240 (vcvtas_u32_f32): Likewise.
15241 (vcvtnd_u64_f64): Likewise.
15242 (vcvtns_u32_f32): Likewise.
15243 (vcvtpd_u64_f64): Likewise.
15244 (vcvtps_u32_f32): Likewise.
15245
15246 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15247
15248 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
15249 CSEL of zero_extended registers.
15250
15251 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15252
15253 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
15254 Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
15255
15256 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15257
15258 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
15259 false when argument string is not found in the attributes table
15260 at all.
15261
15262 2016-01-15 David Edelsohn <dje.gcc@gmail.com>
15263
15264 PR target/68609
15265 * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
15266 (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
15267 * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
15268 precision estimate.
15269
15270 2016-01-15 Richard Biener <rguenther@suse.de>
15271
15272 PR tree-optimization/66856
15273 * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
15274 * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
15275 (vect_create_new_slp_node): Increment stmt reference count.
15276 (vect_get_and_check_slp_defs): Make sure stmts are nor already in
15277 an SLP tree before swapping operands.
15278 (vect_build_slp_tree): Likewise.
15279 (destroy_bb_vec_info): Free stmt info after SLP instances.
15280 * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
15281 * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
15282 (STMT_VINFO_NUM_SLP_USES): New macro.
15283
15284 2016-01-15 Richard Biener <rguenther@suse.de>
15285
15286 PR debug/69137
15287 * dwarf2out.c (add_linkage_name_raw): New function split out from ...
15288 (add_linkage_name): ... here.
15289 (gen_typedef_die): Use add_linkage_name_raw instead of
15290 add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
15291 if necessary.
15292
15293 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
15294
15295 * gimplify.c (oacc_default_clause): Decode reference and pointer
15296 types for both kernels and parallel regions.
15297
15298 2016-01-15 Richard Sandiford <richard.sandiford@arm.com>
15299
15300 PR middle-end/69246
15301 * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
15302
15303 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
15304
15305 * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
15306 (convert_scalars_to_vector): Likewise.
15307
15308 2016-01-15 Jonathan Wakely <jwakely@redhat.com>
15309
15310 * doc/extend.texi (Type Traits): Fix grammar.
15311
15312 2016-01-15 Martin Jambor <mjambor@suse.cz>
15313
15314 * tree-inline.c (remap_decl): Use existing dclarations if
15315 remapping a type and prevent_decl_creation_for_types.
15316 (replace_locals_stmt): Do an initial remapping of non-VLA typed
15317 decls first. Do real remapping with
15318 prevent_decl_creation_for_types set.
15319 * tree-inline.h (copy_body_data): New field
15320 prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
15321 padding.
15322
15323 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
15324
15325 * config/s390/s390.opt (mmvcle): More verbose help text.
15326
15327 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
15328
15329 * config/s390/s390.opt: Add period to -mzvector option text.
15330
15331 2016-01-15 Richard Biener <rguenther@suse.de>
15332
15333 PR tree-optimization/68961
15334 * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
15335 of invariants in stores again.
15336
15337 2016-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
15338
15339 * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
15340
15341 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
15342
15343 * config/i386/i386.c (ix86_expand_branch): Don't split
15344 DI mode xor instruction to SI mode.
15345
15346 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
15347
15348 PR ipa/68148
15349 * ipa-icf.c (sem_function::merge): Virtual functions may become
15350 reachable even if they address is not taken and there are no
15351 idrect calls.
15352
15353 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
15354
15355 * lto-streamer-out.c (subtract_estimated_size): New function.
15356 (get_symbol_initial_value): Use it.
15357
15358 2016-01-15 Christian Bruel <christian.bruel@st.com>
15359
15360 PR target/65837
15361 * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
15362 (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
15363 (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
15364 use add_builtin_function_ext_scope instead of add_builtin_function.
15365 (neon_set_p, neon_crypto_set_p): Remove.
15366 (arm_init_builtins): Always call arm_init_neon_builtins and
15367 arm_init_crypto_builtins.
15368 (arm_expand_builtin): Check that builtins are allowed for the arch.
15369 * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
15370 * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
15371 arm_init_neon_builtins call.
15372
15373 2016-01-15 Richard Biener <rguenther@suse.de>
15374
15375 PR tree-optimization/69117
15376 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
15377 * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
15378 of the leader conservatively.
15379 (free_scc_vn): Restore original SSA name infos.
15380
15381 2016-01-14 Jeff Law <law@redhat.com>
15382
15383 PR tree-optimization/69270
15384 * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
15385 single bit of precision, verify it's also unsigned.
15386 (record_edge_info): Use constant_boolean_node rather than fold_convert
15387 to convert boolean_true/boolean_false to the right type.
15388
15389 2016-01-14 Richard Henderson <rth@redhat.com>
15390
15391 PR rtl-opt/69014
15392 * loop-doloop.c (record_reg_sets): New.
15393 (doloop_optimize): Reject the transform if the sequence
15394 clobbers registers live at the end of the loop block.
15395 (doloop_optimize_loops): Enable df_live if needed.
15396
15397 2016-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
15398
15399 * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
15400 * config/rs6000/rs6000.c: Likewise.
15401 * config/rs6000/rs6000.h: Likewise.
15402 * config/rs6000/rs6000.md: Likewise.
15403 * doc/extend.texi: Likewsie.
15404
15405 2016-01-14 Jeff Law <law@redhat.com>
15406
15407 * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
15408 typo.
15409
15410 2016-01-14 Richard Henderson <rth@redhat.com>
15411
15412 PR c/69272
15413 PR tree-opt/68964
15414 * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
15415 * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
15416 instead of builtin_decl_declared_p to test for declaration.
15417
15418 2016-01-14 Nicklas Bo Jensen <nbjensen@gmail.com>
15419
15420 * doc/loop.texi (Loop Analysis and Representation): Document
15421 loop_depth function.
15422
15423 2016-01-14 Tom de Vries <tom@codesourcery.com>
15424
15425 PR tree-optimization/68773
15426 * omp-low.c (expand_omp_target): Don't set force_output.
15427 * varpool.c (varpool_node::get_create): Same.
15428 * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
15429 offload_funcs with force_output.
15430
15431 2016-01-14 Jakub Jelinek <jakub@redhat.com>
15432
15433 PR debug/69244
15434 * lra-eliminations.c (move_plus_up): Don't change anything if either
15435 the outer or inner subreg mode is not MODE_INT.
15436 * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
15437 integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
15438
15439 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
15440
15441 * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
15442 reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
15443 reduc_uplus_@var{m}): Remove.
15444 * expr.c (expand_expr_real_2): Remove expansion path for
15445 reduc_[us](min|max|plus) optabs.
15446 * optabs-tree.c (scalar_reduc_to_vector): Remove.
15447 * optabs-tree.h (scalar_reduc_to_vector): Remove.
15448 * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
15449 reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
15450 * tree-vect-loop.c (vectorizable_reduction): Remove test for
15451 reduc_[us](min|max|plus) optabs.
15452
15453 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
15454
15455 * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
15456 (reduc_plus_scal_v2sf): New.
15457 (reduc_smax_v2sf): Rename to...
15458 (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
15459 (reduc_smin_v2sf): Rename to...
15460 (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
15461
15462 2016-01-14 Jan Hubicka <hubicka@ucw.cz>
15463
15464 * alias.c (compare_base_symbol_refs): New function.
15465 (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
15466 it.
15467
15468 2016-01-14 Jakub Jelinek <jakub@redhat.com>
15469
15470 PR middle-end/68146
15471 PR tree-optimization/69155
15472 * tree-complex.c: Include cfganal.h.
15473 (phis_to_revisit): New variable.
15474 (extract_component): Add phiarg_p argument. Assert that returned
15475 SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
15476 (update_phi_components): Partly rewrite to use loop over real/imag
15477 components instead of code duplication. If extract_component returns
15478 SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
15479 create_tmp_reg into the PHI node instead, and mention the phi triplet
15480 in phis_to_revisit.
15481 (tree_lower_complex): Walk bbs in rpo order. Adjust phis recorded
15482 in phis_to_revisit at the end.
15483
15484 2016-01-14 Richard Biener <rguenther@suse.de>
15485
15486 PR tree-optimization/68060
15487 * tree-vect-loop.c (vect_is_simple_reduction): Check the
15488 outer loop reduction is only used in the inner loop before
15489 detecting a double reduction.
15490
15491 2016-01-14 Jakub Jelinek <jakub@redhat.com>
15492
15493 PR target/68269
15494 * combine.c (expand_field_assignment): Punt if compute_mode is
15495 unsupported scalar mode.
15496
15497 2016-01-14 Richard Biener <rguenther@suse.de>
15498
15499 PR tree-optimization/66856
15500 * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
15501 SLP node only if it built successfully.
15502 (vect_analyze_slp_instance): Adjust.
15503
15504 2016-01-14 Jeff Law <law@redhat.com>
15505
15506 PR tree-optimization/69270
15507 * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
15508 (record_edge_info): Use it. Convert boolean_{true,false}_node
15509 to the type of op0.
15510
15511 2016-01-13 Jan Hubicka <hubicka@ucw.cz>
15512
15513 PR ipa/66487
15514 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
15515 use block_ultimate_origin
15516 (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
15517
15518 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
15519
15520 * doc/invoke.texi (Submodel Options): Rename section to
15521 "Machine-Dependent Options" to better reflect its content.
15522 Rewrite introductory text to remove archaic CPU names.
15523 Update references.
15524
15525 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
15526
15527 * doc/invoke.texi (Code Gen Options): Move section up in file,
15528 before target-specific options. Update menu and option summary
15529 to reflect the new section ordering.
15530
15531 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
15532
15533 * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
15534 (C++ Dialect Options): Add cross-reference to -std option.
15535 * doc/standards.texi (C++ Language): Document C++14 support.
15536
15537 2016-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
15538
15539 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
15540 for pack/unpack functions for __ibm128.
15541 (PACK_IF): Likewise.
15542 (UNPACK_IF): Likewise.
15543
15544 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
15545 support for __ibm128 pack/unpack functions.
15546 (rs6000_invalid_builtin): Likewise.
15547 (rs6000_init_builtins): Likewise.
15548 (rs6000_opt_masks): Likewise.
15549
15550 * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
15551 (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
15552 functions
15553 (RS6000_BTM_COMMON): Likewise.
15554
15555 * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
15556 (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
15557 disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
15558 128-bit floating point. Add support for the double values to be
15559 in Altivec registers for TF/IF packing and unpacking, but restrict
15560 TD packing sub-fields to be FPR registers. Don't allow overlapped
15561 register support for packing. Allow pack inputs to be memory
15562 locations. Don't build generator functions for unpack<mode>_dm
15563 and unpack<mode>_nodm.
15564 (unpack<mode>_dm): Likewise.
15565 (unpack<mode>_nodm): Likewise.
15566 (pack<mode>): Likewise.
15567
15568 * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
15569 built-in functions to pack/unpack explicit __ibm128 values.
15570 (__builtin_unpack_ibm128): Likewise.
15571
15572 * doc/extend.texi (PowerPC Built-in Functions): Document
15573 __builtin_pack_ibm128 and __builtin_unpack_ibm128.
15574
15575 2016-01-13 Bernd Schmidt <bschmidt@redhat.com>
15576
15577 PR c/66208
15578 * c-common.c (check_function_nonnull): Remove unnecessary declaration.
15579 Add new arg loc and pass it down as context.
15580 (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
15581 to the location to use for the warning.
15582 (check_function_arguments): New arg loc. All callers changed. Pass
15583 it to check_function_nonnull.
15584 * c-common.h (check_function_arguments): Adjust declaration.
15585
15586 2016-01-13 Jakub Jelinek <jakub@redhat.com>
15587
15588 PR tree-optimization/69156
15589 * gimple.c (validate_type): Removed.
15590 (gimple_builtin_call_types_compatible_p): Use
15591 useless_type_conversion_p instead of validate_type.
15592 * value-prof.c (gimple_stringop_fixed_value): Fold
15593 icall_size to correct type.
15594
15595 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
15596
15597 * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
15598 effects.
15599
15600 2016-01-13 Richard Henderson <rth@redhat.com>
15601
15602 PR tree-opt/68964
15603 * target.def (builtin_tm_load, builtin_tm_store): Remove.
15604 * config/i386/i386.c (ix86_builtin_tm_load): Remove.
15605 (ix86_builtin_tm_store): Remove.
15606 (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
15607 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
15608 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
15609 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
15610 * doc/tm.texi: Rebuild.
15611
15612 * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
15613 (BUILT_IN_TM_MEMCPY_RTWN): New.
15614 * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
15615 fallback from vector to integer helpers.
15616 (build_tm_load): Handle vector types directly, instead of
15617 via target hook.
15618 (build_tm_store): Likewise.
15619 (expand_assign_tm): Prepare for register types not handled by
15620 the above. Copy them to memory and use memcpy.
15621 * tree.c (tm_define_builtin): New.
15622 (find_tm_vector_type): New.
15623 (build_tm_vector_builtins): New.
15624 (build_common_builtin_nodes): Call it.
15625
15626 2016-01-13 Uros Bizjak <ubizjak@gmail.com>
15627
15628 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
15629 TARGET_SSE_MATH without TARGET_SSE2. Rewrite.
15630
15631 2016-01-13 Tom de Vries <tom@codesourcery.com>
15632
15633 PR tree-optimization/69169
15634 * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
15635 handled_struct_type param.
15636 (create_variable_info_for, intra_create_variable_infos): Call
15637 create_variable_info_for_1 with extra arg.
15638
15639 2016-01-13 Yvan Roux <yvan.roux@linaro.org>
15640
15641 * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
15642 and "armv8.1-a+crc" entries.
15643
15644 2016-01-13 Alexander Fomin <alexander.fomin@intel.com>
15645
15646 PR target/69228
15647 * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
15648 Change first operand predicate from register_or_constm1_operand
15649 to register_operand.
15650 (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
15651 (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
15652 (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
15653 (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
15654 (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
15655 (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
15656 (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
15657 * config/i386/i386.c (ix86_expand_builtin): Remove first operand
15658 comparison with constm1_rtx from vec_prefetch_gen part.
15659
15660 2016-01-13 Richard Biener <rguenther@suse.de>
15661
15662 PR tree-optimization/69013
15663 * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
15664 Exchange assert for a test.
15665
15666 2016-01-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15667
15668 PR target/69247
15669 * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
15670
15671 2016-01-13 Richard Biener <rguenther@suse.de>
15672
15673 PR tree-optimization/69242
15674 * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
15675 assert with a check.
15676
15677 2016-01-13 Richard Biener <rguenther@suse.de>
15678
15679 PR tree-optimization/69186
15680 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
15681 Properly guard vect_update_misalignment_for_peel call.
15682
15683 2016-01-12 Jeff Law <law@redhat.com>
15684
15685 PR tree-optimization/pr67755
15686 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
15687 "need_profile_correction".
15688 (thread_block_1): Initialize new field to false by default. If we
15689 have multiple thread paths through a common joiner to different
15690 final targets, then set new field to true.
15691 (compute_path_counts): Only do count adjustment when it's really
15692 needed.
15693
15694 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
15695
15696 * doc/invoke.texi (Spec Files): Move section down in file, past
15697 all command-line option descriptions.
15698
15699 2016-01-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15700
15701 PR middle-end/54809
15702 * doc/gty.texi: Remove documentation of mark_hook.
15703 * gengtype.c (struct write_types_data): Remove code to support
15704 mark_hook attribute.
15705 (walk_type): Likewise.
15706 (write_func_for_structure): Likewise.
15707
15708 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
15709
15710 * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
15711 Directory Options, and -specs= to Overall Options.
15712 (Overall Options): Adjust similarly. Reorder to group related
15713 options together. Make -specs= cross-reference the spec file details.
15714 (Directory Options): Adjust similarly.
15715
15716 2016-01-12 Jeff Law <law@redhat.com>
15717
15718 * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
15719
15720 2016-01-12 Olivier Hainque <hainque@adacore.com>
15721
15722 * gcc.c (spec_undefvar_allowed): New global.
15723 (process_command): Set to true when running for --version or --help,
15724 alone or together.
15725 (getenv_spec_function): When the variable is not defined, use the
15726 variable name as the variable value if we're allowed not to issue
15727 a fatal error.
15728
15729 2016-01-12 Bin Cheng <bin.cheng@arm.com>
15730
15731 PR tree-optimization/68911
15732 * tree-vrp.c (adjust_range_with_scev): Check overflow in range
15733 information computed for expression "init + nit * step".
15734
15735 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
15736
15737 * doc/invoke.texi (Invoking GCC): Copy-edit. Incorporate information
15738 about name of GCC executable. Remove deleted node from menu.
15739 (Directory Options) <-B>: Remove cross-reference to deleted node.
15740 (Target Options): Delete section.
15741
15742 2016-01-12 Christian Bruel <christian.bruel@st.com>
15743
15744 PR target/69180
15745 * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
15746 for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
15747
15748 2016-01-12 Jakub Jelinek <jakub@redhat.com>
15749
15750 PR target/69198
15751 * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
15752 aligned_mem is properly set for AVX512-VL floating point masked
15753 stores.
15754
15755 PR target/69175
15756 * ifcvt.c (cond_exec_process_if_block): When removing the last
15757 insn from then_bb, remove also any possible barriers that follow it.
15758
15759 2016-01-12 H.J. Lu <hongjiu.lu@intel.com>
15760
15761 PR target/68456
15762 PR target/69226
15763 * config/i386/iamcu.h (SIZE_TYPE): New macro.
15764 (PTRDIFF_TYPE): Likewise.
15765 (WCHAR_TYPE): Likewise.
15766 (WCHAR_TYPE_SIZE): Likewise.
15767 (STDINT_LONG32): Likewise.
15768
15769 2016-01-12 Richard Biener <rguenther@suse.de>
15770
15771 PR tree-optimization/69053
15772 * tree-vect-loop.c (get_initial_def_for_reduction): Properly
15773 convert initial value for cond reductions.
15774
15775 2016-01-12 Richard Biener <rguenther@suse.de>
15776
15777 PR tree-optimization/69007
15778 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
15779 widen_sum after dot_prod and sad.
15780
15781 2016-01-12 Richard Biener <rguenther@suse.de>
15782
15783 PR tree-optimization/69168
15784 * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
15785 pattern stmt SLP type.
15786 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
15787 end up unused so cope with that case.
15788
15789 2016-01-12 Richard Biener <rguenther@suse.de>
15790
15791 PR tree-optimization/69157
15792 * tree-vect-stmts.c (vectorizable_mask_load_store): Check
15793 stmts def type only during analyze phase.
15794 (vectorizable_call): Likewise.
15795 (vectorizable_simd_clone_call): Likewise.
15796 (vectorizable_conversion): Likewise.
15797 (vectorizable_assignment): Likewise.
15798 (vectorizable_shift): Likewise.
15799 (vectorizable_operation): Likewise.
15800 (vectorizable_store): Likewise.
15801 (vectorizable_load): Likewise.
15802
15803 2016-01-12 Richard Biener <rguenther@suse.de>
15804
15805 PR tree-optimization/69174
15806 * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
15807 space.
15808 (vectorizable_load): Properly compute the number of loads needed
15809 for permuted strided SLP loads and do not spuriously assign
15810 to SLP_TREE_VEC_STMTS.
15811
15812 2016-01-12 Andris Pavenis <andris.pavenis@iki.fi>
15813
15814 * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
15815 (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
15816 (MD_EXEC_PREFIX): Remove.
15817 (MD_STARTFILE_PREFIX) Removee.
15818 (FILE_NAME_ABSOLUTE_P): Remove.
15819 (CPP_SPEC): Do not read macros from sys/version.h.
15820 (LINK_COMMAND_SPEC): Remove.
15821 (LOCAL_INCLUDE_DIR): Remove.
15822 (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
15823 (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
15824 (POST_LINK_SPEC): Define to invoke stubify after linker
15825 (LIBSTDCXX): Remove define
15826 (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
15827 (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
15828 (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
15829 (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
15830 (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
15831 (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
15832 (i386_djgpp_asm_named_section): Add propotype of new procedure
15833
15834 * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
15835 (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
15836 (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
15837 in config/i386/djgpp.h).
15838 (STANDARD_STARTFILE_PREFIX_2): Define identical to
15839 STANDARD_STARTFILE_PREFIX_1.
15840 (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
15841 (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
15842 installation errors.
15843 (MAX_OFILE_ALIGNMENT): Define to 128.
15844 (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
15845
15846 * config/i386/djgpp.c: New file. Add implementation of
15847 i386_djgpp_asm_named_section.
15848
15849 * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
15850
15851 * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
15852 Add rule for building djgpp.o.
15853
15854 2016-01-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15855
15856 * config/rs6000/rs6000.c (v2df_reduction_p): New function.
15857 (rtx_is_swappable_p): Reductions are swappable.
15858 (insn_is_swappable_p): V2DF reductions are swappable.
15859
15860 2016-01-11 John David Anglin <danglin@gcc.gnu.org>
15861
15862 * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
15863 reloads for other unsupported memory operands.
15864
15865 2016-01-12 Kugan Vivekanandarajah <kuganv@linaro.org>
15866 Jim Wilson <jim.wilson@linaro.org>
15867
15868 PR target/69194
15869 * config/arm/arm-builtins.c (arm_expand_neon_args): Call
15870 copy_to_mode_reg instead of force_reg.
15871
15872 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
15873
15874 PR target/69225
15875 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
15876 TARGET_80387 is true.
15877
15878 2016-01-11 Jakub Jelinek <jakub@redhat.com>
15879
15880 PR target/69071
15881 * lra-eliminations.c (move_plus_up): Only move plus up
15882 if subreg of the constant can be simplified into constant
15883 and use the simplified subreg of the constant instead of
15884 the original constant.
15885
15886 * fold-const.c (fold_convertible_p): Don't return true
15887 for conversion of VECTOR_TYPE to same sized integral type.
15888 (fold_convert_loc): Fix up formatting. Fold conversion of
15889 VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
15890 instead of NOP_EXPR.
15891
15892 PR tree-optimization/69214
15893 * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
15894 innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
15895 Formatting fix.
15896
15897 PR tree-optimization/69207
15898 * tree-vect-slp.c (vect_get_constant_vectors): For
15899 VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
15900 fold_convertible_p to vector_type's element type, and always
15901 use VCE for non-VECTOR_BOOLEAN_TYPE_P.
15902
15903 2016-01-11 Richard Biener <rguenther@suse.de>
15904
15905 PR tree-optimization/69173
15906 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
15907 fixup the cycle if all stmts are in a pattern.
15908
15909 2016-01-11 Uros Bizjak <ubizjak@gmail.com>
15910
15911 PR middle-end/68999
15912 * alias.c (base_alias_check): Move check for addresses with
15913 alignment ANDs before the call for compare_base_decls.
15914 (memrefs_conflict_p): Return -1 for different decls
15915 that went through alignment adjustments.
15916
15917 2016-01-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15918
15919 PR rtl-optimization/68796
15920 * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
15921 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
15922 and QImode comparisons against zero with CC_NZmode.
15923 * config/aarch64/iterators.md (short_mask): New mode_attr.
15924
15925 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
15926
15927 * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
15928 (<avx512>_store<mode>_mask): Likewise.
15929
15930 2016-01-11 Bernd Schmidt <bschmidt@redhat.com>
15931 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15932
15933 PR rtl-optimization/68841
15934 * ifcvt.c (struct noce_if_info): Add orig_x field.
15935 (bbs_ok_for_cmove_arith): Add to_rename parameter.
15936 Don't record conflicts on to_rename if it's present.
15937 Allow memory destinations in sets.
15938 (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
15939 blocks, passing orig_x to the checks.
15940 (noce_process_if_block): Set if_info->orig_x appropriately.
15941
15942 2016-01-11 Tom de Vries <tom@codesourcery.com>
15943
15944 PR tree-optimization/69069
15945 * tree-parloops.c (create_parallel_loop): Add missing phi args.
15946
15947 2016-01-11 Yuri Rumyantsev <ysrumyan@gmail.com>
15948
15949 PR rtl-optimization/68920
15950 * config/i386/i386.c (ix86_option_override_internal): Restrict number
15951 of conditional moves for RTL if-conversion to 1 for
15952 TARGET_ONE_IF_CONV_INSN.
15953 * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
15954 * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
15955 * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
15956 parameter to restirct number of conditional moves for
15957 RTL if-conversion.
15958 * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
15959 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
15960 conditionl moves.
15961
15962 2016-01-11 Alexandre Oliva <aoliva@redhat.com>
15963
15964 PR bootstrap/69123
15965 * var-tracking.c (drop_overlapping_mem_locs): Operate on all
15966 onepart vars. Fix typo in comment. Fix reversed condition in
15967 unshare test.
15968 (dataflow_set_remove_mem_locs): Operate on all onepart vars.
15969
15970 PR bootstrap/69123
15971 * var-tracking.c (dump_onepart_variable_differences): New.
15972 (dataflow_set_different): If a detailed dump is requested,
15973 delay early returns and dump differences between onepart
15974 variables present before and after, and added variables.
15975
15976 2016-01-11 Ilya Enkovich <enkovich.gnu@gmail.com>
15977
15978 PR target/69010
15979 * expr.c (expand_expr_real_1): For boolean vector constants
15980 with a scalar mode use const_scalar_mask_from_tree.
15981 (const_scalar_mask_from_tree): New.
15982 * optabs.c (expand_vec_cond_mask_expr): Use mask mode
15983 assigned to a mask type to handle constants.
15984
15985 2016-01-11 Martin Jambor <mjambor@suse.cz>
15986
15987 PR ipa/69044
15988 * ipa-cp.c (estimate_local_effects): Do not clone for removal of
15989 useless parameters if we cannot change function signature.
15990
15991 2016-01-11 Martin Jambor <mjambor@suse.cz>
15992
15993 PR ipa/66616
15994 * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
15995 flag.
15996
15997 2016-01-11 Tom de Vries <tom@codesourcery.com>
15998
15999 PR tree-optimization/69109
16000 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
16001 latch with phi.
16002
16003 2016-01-11 Tom de Vries <tom@codesourcery.com>
16004
16005 PR tree-optimization/69108
16006 * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
16007 res is not used in a phi.
16008
16009 2016-01-11 Yury Gribov <y.gribov@samsung.com>
16010
16011 PR 67425
16012 * common.opt (frandom-seed): Fix parameter name.
16013 * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
16014
16015 2016-01-11 Tom de Vries <tom@codesourcery.com>
16016
16017 PR tree-optimization/69058
16018 * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
16019 not supported.
16020
16021 2016-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
16022
16023 * config/arc/arc.opt (mdiv-rem): Add period to the end.
16024 (mcode-density): Likewise.
16025
16026 2016-01-10 Tom de Vries <tom@codesourcery.com>
16027
16028 PR tree-optimization/69062
16029 * tree-parloops.c (loop_has_phi_with_address_arg): New function.
16030 (parallelize_loops): Don't paralelize loop that has phi with address
16031 arg.
16032
16033 2016-01-10 Tom de Vries <tom@codesourcery.com>
16034
16035 PR tree-optimization/69039
16036 * tree-parloops.c (try_create_reduction_list): Only allow single exit
16037 phi for reduction.
16038
16039 2016-01-09 John David Anglin <danglin@gcc.gnu.org>
16040
16041 PR middle-end/68743
16042 * match.pd: Require target has function_c99_misc before doing
16043 truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
16044
16045 2016-01-09 Gerald Pfeifer <gerald@pfeifer.com>
16046
16047 * configure.ac (isl_options_set_schedule_serialize_sccs): Also
16048 use GMPINC.
16049 * configure: Regenerate.
16050
16051 2016-01-09 Jakub Jelinek <jakub@redhat.com>
16052
16053 PR middle-end/50865
16054 PR tree-optimization/69097
16055 * fold-const.h (expr_not_equal_to): New prototype.
16056 * fold-const.c: Include stringpool.h and tree-ssanames.h.
16057 (expr_not_equal_to): New function.
16058 * match.pd (X % -Y is the same as X % Y): Don't optimize
16059 unless X is known not to be equal to minimum or Y is known
16060 not to be equal to -1.
16061 * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
16062 fold TRUNC_MOD_EXPR if the second argument is not a power of two.
16063 (simplify_stmt_using_ranges): Adjust caller.
16064 (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
16065 substitute_and_fold.
16066
16067 2016-01-09 Jan Hubicka <hubicka@ucw.cz>
16068
16069 * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
16070 w/o DECL_NAME.
16071
16072 2016-01-08 Jakub Jelinek <jakub@redhat.com>
16073
16074 PR tree-optimization/69167
16075 * gimple-fold.c (replace_stmt_with_simplification): Also punt if
16076 new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
16077 ops[0] comparison.
16078 * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
16079
16080 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
16081 Richard Biener <rguenther@suse.de>
16082
16083 PR tree-optimization/68707
16084 * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
16085 instances that can be handled via vect_load_lanes.
16086
16087 2016-01-08 Uros Bizjak <ubizjak@gmail.com>
16088
16089 * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
16090 if we can't determine address equivalence.
16091 * alias.c (compare_base_decl): Update for changed return value of
16092 symtab_node::equal_address_to.
16093
16094 2016-01-08 Jason Merrill <jason@redhat.com>
16095
16096 PR c++/68983
16097 PR c++/67557
16098 * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
16099 * expr.c (store_field): Not here.
16100 * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
16101 call with TREE_ADDRESSABLE type.
16102 * tree-cfg.c (verify_gimple_call): Adjust.
16103
16104 2016-01-08 Olivier Hainque <hainque@adacore.com>
16105
16106 * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
16107 libc_internal.
16108
16109 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
16110
16111 * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
16112 (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
16113 (reduc_smin_v2sf): Rename to...
16114 (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
16115 (reduc_splus_v2sf): Rename to...
16116 (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
16117
16118 2016-01-08 Jakub Jelinek <jakub@redhat.com>
16119
16120 PR tree-optimization/69162
16121 * gimplify.c (gimplify_va_arg_expr): Encode original type of
16122 valist argument in another argument.
16123 (gimplify_modify_expr): Adjust for the above change. Cleanup.
16124 * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
16125 to determine the va_list type, build a MEM_REF instead of
16126 build_fold_indirect_ref.
16127
16128 PR tree-optimization/69172
16129 * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
16130 gimple_build.
16131
16132 2016-01-08 Thomas Preud'homme <thomas.preudhomme@arm.com>
16133
16134 PR tree-optimization/67781
16135 * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
16136 and cmpnop in two steps: first the ones not accessed in original
16137 gimple expression in a endian independent way and then the ones not
16138 accessed in the final result in an endian-specific way.
16139
16140 2016-01-08 Jakub Jelinek <jakub@redhat.com>
16141
16142 PR tree-optimization/69083
16143 * tree-vect-slp.c (vect_get_constant_vectors): For
16144 VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
16145 element type. If op is fold_convertible_p to vector_type's element
16146 type, use NOP_EXPR instead of VCE.
16147
16148 2016-01-08 Segher Boessenkool <segher@kernel.crashing.org>
16149
16150 PR rtl-optimization/67778
16151 PR rtl-optimization/68634
16152 PR rtl-optimization/68909
16153 * shrink-wrap.c (try_shrink_wrapping): Add comment. Don't pop
16154 block from the stack until done with it. Remove a superfluous
16155 bitmap set. Remove a superfluous bitmap test.
16156
16157 2016-01-07 Martin Sebor <msebor@redhat.com>
16158
16159 PR c/68966
16160 * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
16161 constraint on the type of arguments.
16162
16163 2016-01-07 Andreas Tobler <andreast@gcc.gnu.org>
16164
16165 * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
16166 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
16167 unaligned_access on the gcc_options set.
16168 * config/arm/arm.c (arm_option_override_internal): Use
16169 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
16170
16171 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
16172
16173 PR target/69140
16174 * config/i386/i386.c (ix86_frame_pointer_required): Enable
16175 frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
16176
16177 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
16178
16179 Revert
16180 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
16181
16182 PR target/69140
16183 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
16184 depending on frame_pointer_needed before remaining integer and SSE
16185 registers are saved.
16186
16187 2016-01-07 Sandra Loosemore <sandra@codesourcery.com>
16188
16189 PR 1078
16190 * doc/extend.texi (Nvidia PDX Function Attributes): New section.
16191
16192 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
16193
16194 PR target/69171
16195 * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
16196 Use the "xBm" constraint.
16197 (float<sseintvecmodelower><mode>2<mask_name><round_name):
16198 Likewise.
16199 (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
16200 (sse_cvtsi2ssq<round_name>): Likewise.
16201 (sse_cvtss2si<round_name>): Likewise.
16202 (sse_cvtss2siq<round_name>): Likewise.
16203 (sse2_cvtsi2sdq<round_name>): Likewise.
16204 (sse2_cvtsd2si<round_name>): Likewise.
16205 (sse2_cvtsd2siq<round_name>): Likewise.
16206 * config/i386/subst.md (round_nimm_scalar_predicate): New
16207 predicate.
16208
16209 2015-12-15 Bernd Schmidt <bschmidt@redhat.com>
16210
16211 PR middle-end/67639
16212 * varasm.c (make_decl_rtl): Mark invalid register vars as
16213 DECL_EXTERNAL.
16214
16215 PR rtl-optimization/66206
16216 * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
16217 All callers changed.
16218
16219 2016-01-07 Jakub Jelinek <jakub@redhat.com>
16220
16221 PR tree-optimization/69141
16222 * tree-ssa-pre.c: Include langhooks.h.
16223 (eliminate_dom_walker::before_dom_children): Use
16224 lang_hooks.decl_printable_name instead of
16225 cgraph_node::get ()->name ().
16226
16227 PR middle-end/68960
16228 * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
16229 it and DECL_ALIGN too.
16230
16231 2016-01-06 Robert Suchanek <robert.suchanek@imgtec.com>
16232
16233 * config/mips/mips-ftypes.def: Sort to lexicographical order.
16234
16235 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
16236
16237 PR target/69140
16238 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
16239 depending on frame_pointer_needed before remaining integer and SSE
16240 registers are saved.
16241
16242 2015-01-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16243
16244 * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
16245 mode iterator with VSX_M2.
16246 (*p9_vecstore_<mode>): Likewise.
16247 (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
16248 (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
16249 (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
16250 (define_split for VSX_LE128 stores): Likewise.
16251 (define_peephole2 for TImode LE swaps): Likewise.
16252 (define_split for VSX_LE128 post-reload stores): Likewise.
16253
16254 2016-01-06 Marek Polacek <polacek@redhat.com>
16255
16256 PR sanitizer/69099
16257 * convert.c (convert_to_integer_1): Adjust call to
16258 ubsan_instrument_float_cast. Use NULL_TREE instead of NULL.
16259 * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter. Use
16260 EXPR instead of ARG.
16261 * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
16262
16263 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
16264
16265 PR 1078
16266 * doc/extend.texi (RL78 Variable Attributes): New section.
16267
16268 2016-01-05 Marek Polacek <polacek@redhat.com>
16269
16270 PR c/69104
16271 * builtins.c (get_memmodel): Use expansion point location rather than
16272 the input location. Call warning_at rather than warning.
16273 (expand_builtin_atomic_compare_exchange): Likewise.
16274 (expand_builtin_atomic_load): Likewise.
16275 (expand_builtin_atomic_store): Likewise.
16276 (expand_builtin_atomic_clear): Likewise.
16277
16278 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
16279
16280 PR target/68991
16281 * config/i386/i386.c (ix86_expand_vector_logical_operator):
16282 Replace nonimmediate_operand with vector_operand.
16283 * config/i386/predicates.md (vector_operand): New predicate.
16284 (general_vector_operand): Replace nonimmediate_operand with
16285 vector_operand.
16286 * config/i386/sse.md: Replace nonimmediate_operand with
16287 vector_operand and m constraint with Bm constraint on SSE
16288 patterns with 16-byte memory operand.
16289 * config/i386/subst.md (round_nimm_predicate): Replace
16290 nonimmediate_operand with vector_operand.
16291 (round_saeonly_nimm_predicate): Likewise.
16292 (round_saeonly_nimm_scalar_predicate): New.
16293
16294 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
16295
16296 PR target/68991
16297 * config/i386/constraints.md (Bm): New constraint.
16298 * config/i386/predicates.md (vector_memory_operand): New
16299 predicate.
16300 * config/i386/sse.md: Replace xm with xBm in plusminus and
16301 any_logic patterns.
16302
16303 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
16304
16305 PR 1078
16306 * doc/extend.texi (V850 Function Attributes): New section.
16307 (V850 Variable Attributes): New section.
16308
16309 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
16310
16311 PR 1078
16312 * doc/extend.texi (MicroBlaze Function Attributes): Document
16313 interrupt_handler and fast_interrupt attributes.
16314
16315 2016-01-05 Sergei Trofimovich <siarheit@google.com>
16316
16317 PR other/60465
16318 * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
16319 for local symbolic operands.
16320 * config/ia64/predicates.md (local_symbolic_operand64): New
16321 predicate.
16322
16323 2016-01-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16324
16325 PR rtl-optimization/68651
16326 * combine.c (combine_simplify_rtx): Canonicalize x + x into
16327 x << 1.
16328
16329 2016-01-05 Nathan Sidwell <nathan@acm.org>
16330
16331 * alias.c (compare_base_decls): Use symtab_node::get.
16332
16333 2016-01-05 Nick Clifton <nickc@redhat.com>
16334
16335 PR target/68770
16336 * ira-costs.c (copy_cost): Initialise the t_icode field of the
16337 secondary_reload_info structure.
16338
16339 PR target/66655
16340 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
16341 decls if weak support is available.
16342
16343 2016-01-04 Martin Sebor <msebor@redhat.com>
16344
16345 * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
16346
16347 2016-01-04 Michael Meissner <meissner@linux.vnet.ibm.com>
16348
16349 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
16350 OPTION_MASK_P9_DFORM.
16351
16352 * config/rs6000/constraints.md (wo constraint): New constraint for
16353 ISA 3.0 (power9).
16354
16355 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
16356 for wo constraint.
16357 (rs6000_init_hard_regno_mode_ok): Likewise.
16358
16359 * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
16360 wo constraint.
16361
16362 * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
16363 expanders not to have constraints. Add support for ISA 3.0 xxperm
16364 instruction. Add support for fusing xxlor with xxperm.
16365 (altivec_vperm_<mode>_internal): Likewise.
16366 (altivec_vperm_v8hiv16qi): Likewise.
16367 (altivec_vperm_<mode>v16q): Likewise.
16368 (altivec_vperm_<mode>_uns): Likewise.
16369 (vperm_v8hiv4si): Likewise.
16370 (vperm_v16qiv8hi): Likewise.
16371
16372 * doc/md.texi (RS/6000 constraints): Document wo constraint.
16373
16374 2016-01-04 Jakub Jelinek <jakub@redhat.com>
16375
16376 Update copyright years.
16377
16378 * gcc.c (process_command): Update copyright notice dates.
16379 * gcov-dump.c (print_version): Ditto.
16380 * gcov.c (print_version): Ditto.
16381 * gcov-tool.c (print_version): Ditto.
16382 * gengtype.c (create_file): Ditto.
16383 * doc/cpp.texi: Bump @copying's copyright year.
16384 * doc/cppinternals.texi: Ditto.
16385 * doc/gcc.texi: Ditto.
16386 * doc/gccint.texi: Ditto.
16387 * doc/gcov.texi: Ditto.
16388 * doc/install.texi: Ditto.
16389 * doc/invoke.texi: Ditto.
16390
16391 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
16392
16393 * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
16394 modes larger than TImode as TImode if NEON is not enabled.
16395
16396 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
16397
16398 PR target/69100
16399 * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
16400 mode for %f0-%f31 only if TARGET_FPU.
16401
16402 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
16403
16404 PR target/69072
16405 * config/sparc/sparc.c (scan_record_type): Take into account subfields
16406 to compute the PACKED_P predicate.
16407 (function_arg_record_value): Minor tweaks.
16408
16409 2016-01-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
16410
16411 * doc/install.texi (--with-multilib-list): Describe the meaning of the
16412 option for arm*-*-* targets.
16413
16414 2016-01-03 Sandra Loosemore <sandra@codesourcery.com>
16415
16416 * doc/extend.texi (Common Function Attributes): Move docs for
16417 MSP430-specific attributes to....
16418 (MSP430 Function Attributes): ...here. Delete the redundant
16419 entries and copy-edit the remaining text.
16420 (MSP430 Variable Attributes): Use uniform format for index
16421 entries and add a cross-reference to the corresponding function
16422 attribute docs.
16423
16424 2016-01-03 Vladimír Čunát <vcunat@gmail.com>
16425
16426 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
16427 -finite-math typo.
16428 (x86 Options): Likewise.
16429
16430 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
16431
16432 PR 1078
16433
16434 * extend.texi (Common Function Attributes) <no_stack_limit>: New.
16435 * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
16436 to corresponding attribute.
16437
16438 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
16439
16440 * doc/extend.texi (Common Function Attributes) <noplt>: Move
16441 to correct alphabetization of table. Copy-edit and correct
16442 markup.
16443 <stack_protect>: Likewise.
16444 <target_clones>: Likewise.
16445 <simd>: Likewise.
16446 * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
16447 Correct punctuation.
16448 (Code Gen Options) <-fno-plt>: Copy-edit.
16449
16450 2016-01-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
16451
16452 PR target/68917
16453 * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
16454 SI values. Explicitly convert SI to DI and vice-versa.
16455
16456 2016-01-01 Jakub Jelinek <jakub@redhat.com>
16457
16458 PR tree-optimization/69070
16459 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
16460 REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
16461
16462 PR sanitizer/69055
16463 * ubsan.c (ubsan_instrument_float_cast): Call
16464 initialize_sanitizer_builtins.
16465
16466 PR target/69015
16467 * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
16468 \f
16469 Copyright (C) 2016 Free Software Foundation, Inc.
16470
16471 Copying and distribution of this file, with or without modification,
16472 are permitted in any medium without royalty provided the copyright
16473 notice and this notice are preserved.