predict-12.c: New testcase.
[gcc.git] / gcc / ChangeLog
1 2016-06-26 Jan Hubicka <hubicka@ucw.cz>
2
3 * predict.c: Include gimple-pretty-print.h
4 (predicted_by_loop_heuristics_p): Check also
5 PRED_LOOP_EXIT_WITH_RECURSION
6 (predict_loops): Find self recursive calls and use special purpose
7 predictors for them; dump log about decisions.
8 (pass_profile::execute): Dump info about #of iterations.
9 * predict.def (PRED_LOOP_EXIT_WITH_RECURSION,
10 (PRED_LOOP_GUARD_WITH_RECURSION): New predictors.
11
12 2016-06-26 John David Anglin <danglin@gcc.gnu.org>
13
14 * config/pa/pa.c (pa_output_indirect_call): Rework to combine
15 output_asm_insn calls and shorten long lines. Output .CALL
16 argument descriptor using pa_output_arg_descriptor. Add various
17 inline $$dyncall and other optimizations.
18 (pa_attr_length_indirect_call): Adjust ordering and lengths.
19
20 2016-06-25 Jakub Jelinek <jakub@redhat.com>
21
22 PR tree-optimization/71643
23 * tree-ssa-tail-merge.c (find_clusters_1): Ignore basic blocks with
24 EH preds.
25
26 * tree-ssa-tail-merge.c (deps_ok_for_redirect_from_bb_to_bb): Don't
27 leak a bitmap if dep_bb is NULL.
28
29 PR tree-optimization/71631
30 * tree-ssa-reassoc.c (reassociate_bb): Pass true as last argument
31 to rewrite_expr_tree even if negate_result, move new_lhs var
32 declaration and initialization earlier, for powi_result set afterwards
33 new_lhs to lhs. For negate_result, use new_lhs instead of tmp
34 if new_lhs != lhs, and don't shadow gsi var.
35
36 2016-06-24 Jan Hubicka <hubicka@ucw.cz>
37
38 * predict.c (predict_paths_leading_to, predict_paths_leading_to_edge):
39 Add in_loop parameter.
40 (predict_loops): Add loop guard heuristics.
41 * predict.def (PRED_LOOP_GUARD): New heuristics.
42
43 2016-06-24 Jan Hubicka <hubicka@ucw.cz>
44
45 * predict.c: Include ipa-utils.h
46 (tree_bb_level_prediction): Predict recursive calls.
47 (tree_estimate_probability_bb): Skip inexpensive calls for call
48 predictor.
49 * predict.def (PRED_RECURSIVE_CALL): New.
50
51 2016-06-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
52
53 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): New #define.
54 (BU_FLOAT128_1): Likewise.
55 (FABSQ): Likewise.
56 (COPYSIGNQ): Likewise.
57 (RS6000_BUILTIN_NANQ): Likewise.
58 (RS6000_BUILTIN_NANSQ): Likewise.
59 (RS6000_BUILTIN_INFQ): Likewise.
60 (RS6000_BUILTIN_HUGE_VALQ): Likewise.
61 * config/rs6000/rs6000.c (rs6000_fold_builtin): New prototype.
62 (TARGET_FOLD_BUILTIN): New #define.
63 (rs6000_builtin_mask_calculate): Add TARGET_FLOAT128 entry.
64 (rs6000_invalid_builtin): Add handling for RS6000_BTM_FLOAT128.
65 (rs6000_fold_builtin): New target hook implementation, handling
66 folding of 128-bit NaNs and infinities.
67 (rs6000_init_builtins): Initialize const_str_type_node; ensure all
68 entries are filled in to avoid problems during bootstrap
69 self-test; define builtins for 128-bit NaNs and infinities.
70 (rs6000_opt_mask): Add entry for float128.
71 * config/rs6000/rs6000.h (RS6000_BTM_FLOAT128): New #define.
72 (RS6000_BTM_COMMON): Include RS6000_BTM_FLOAT128.
73 (rs6000_builtin_type_index): Add RS6000_BTI_const_str.
74 (const_str_type_node): New #define.
75 * config/rs6000/rs6000.md (copysign<mode>3 for IEEE128): Convert
76 to a define_expand that dispatches to either copysign<mode>3_soft
77 or copysign<mode>3_hard.
78 (copysign<mode>3_hard): Rename from copysign<mode>3.
79 (copysign<mode>3_soft): New define_insn.
80 * doc/extend.texi: Document new builtins.
81
82 2016-06-24 Jakub Jelinek <jakub@redhat.com>
83
84 * cfgloop.c (flow_loop_dump): Cast nit to uint64_t and print it using
85 PRIu64 instead of lu.
86
87 2016-06-24 Eric Botcazou <ebotcazou@adacore.com>
88
89 PR debug/71642
90 * tree-inline.c (remap_decl): When fixing up DECL_ORIGINAL_TYPE, just
91 copy the type name.
92
93 2016-06-24 Jakub Jelinek <jakub@redhat.com>
94
95 PR tree-optimization/71647
96 * omp-low.c (lower_rec_input_clauses): Convert
97 omp_clause_aligned_alignment (c) to size_type_node for the
98 last argument of __builtin_assume_aligned.
99
100 2016-06-24 H.J. Lu <hongjiu.lu@intel.com>
101
102 * configure.ac (calling ___tls_get_addr via GOT): New
103 assembler/linker check.
104 (HAVE_AS_IX86_TLS_GET_ADDR_GOT): New. Defined to 1 if 32-bit
105 assembler and linker supports calling ___tls_get_addr via GOT.
106 Otherise, defined to 0.
107 * config.in: Regenerated.
108 * configure: Likewise.
109 * config/i386/constraints.md (Yb): New constraint.
110 * config/i386/i386.h (reg_class): Add TLS_GOTBASE_REGS.
111 (REG_CLASS_NAMES): Likewise.
112 (REG_CLASS_CONTENTS): Likewise.
113 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Replace
114 the b constraint with the Yb constraint. Call ___tls_get_addr
115 via GOT for GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT
116 is 1.
117 (*tls_local_dynamic_base_32_gnu): Likewise.
118 (*tls_global_dynamic_64_<mode>): Call _tls_get_addr via GOT for
119 GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT is 1.
120 (*tls_local_dynamic_base_64_<mode>): Likewise.
121
122 2016-06-24 Martin Liska <mliska@suse.cz>
123
124 * cfgloop.c (flow_loop_dump): Dump average number of loop iterations.
125 * cfgloop.h: Change 'struct loop' to 'const struct loop' for a
126 few functions.
127 * cfgloopanal.c (expected_loop_iterations_unbounded): Set a new
128 argument to true if the expected number of iterations is
129 loop-based.
130
131 2016-06-24 Uros Bizjak <ubizjak@gmail.com>
132
133 * configure.ac (HAVE_AS_GOTOF_IN_DATA): Use $as_ix86_gas_32_opt to
134 assemble for 32bit target.
135 (HAVE_AS_IX86_TLSGDPLT): Use $as_ix86_gas_32_opt to assemble
136 and $ld_ix86_gld_32_opt to link for 32bit target.
137 (HAVE_AS_IX86_TLSLDMPLT): Ditto.
138 * configure: Regenerate.
139
140 2016-06-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
141
142 * config/arm/arm.c (int_log2): Delete definition and prototype.
143 (shift_op): Use exact_log2 instead of int_log2.
144 (vfp3_const_double_for_fract_bits): Likewise.
145
146 2016-06-24 Jakub Jelinek <jakub@redhat.com>
147
148 * internal-fn.c (expand_arith_set_overflow): New function.
149 (expand_addsub_overflow, expand_neg_overflow, expand_mul_overflow):
150 Use it.
151 (expand_arith_overflow_result_store): Likewise. Handle precision
152 smaller than mode precision.
153 * tree-vrp.c (extract_range_basic): For imag part, handle
154 properly signed 1-bit precision result.
155 * doc/extend.texi (__builtin_add_overflow): Document that last
156 argument can't be pointer to enumerated or boolean type.
157 (__builtin_add_overflow_p): Document that last argument can't
158 have enumerated or boolean type.
159
160 2016-06-23 Michael Meissner <meissner@linux.vnet.ibm.com>
161 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
162
163 * config/rs6000/predicates.md (splat_input_operand): Rework.
164 Don't allow constants, since the insns that use this predicate
165 don't support constants. Constants are handled by other insns
166 that are created via combine. During and after register
167 allocation, only allow indexed or indirect addresses, and not
168 general addresses. Only allow modes supported by the hardware.
169 * config/rs6000/rs6000.c (xxsplitb_constant_p): Update usage
170 comment. Move check for using VSPLTIS<x> to a common location,
171 instead of doing it in two different places.
172
173 2016-06-23 Jocelyn Mayer <l_indien@magic.fr>
174
175 * config/i386/driver-i386.c (host_detect_local_cpu): Set
176 PROCESSOR_PENTIUMPRO for signature_CENTAUR_ebx family >= 9.
177 <case PROCESSOR_PENTIMUMPRO>: Pass c7 or nehemiah for
178 signature_CENTAUR_ebx.
179
180 2016-06-23 H.J. Lu <hongjiu.lu@intel.com>
181
182 PR target/66232
183 PR target/67400
184 * configure.ac (as_ix86_tls_ldm_opt): Renamed to ...
185 (as_ix86_gas_32_opt): This.
186 (ld_ix86_tls_ldm_opt): Renamed to ...
187 (ld_ix86_gld_32_opt): This.
188 (R_386_TLS_LDM reloc): Updated.
189 (R_386_GOT32X reloc): New assembler/linker check.
190 (HAVE_AS_IX86_GOT32X): New. Defined to 1 if 32-bit assembler and
191 linker support "jmp *_start@GOT" and "cmpl $0, bar@GOT". Otherise,
192 defined to 0.
193 * config.in: Regenerated.
194 * configure: Likewise.
195 * config/i386/i386.c (ix86_force_load_from_GOT_p): Return
196 true if HAVE_AS_IX86_GOT32X is 1 in 32-bit mode.
197 (ix86_legitimate_address_p): Allow UNSPEC_GOT for -fno-plt
198 if ix86_force_load_from_GOT_p returns true.
199 (ix86_print_operand_address_as): Also support UNSPEC_GOT if
200 ix86_force_load_from_GOT_p returns true.
201 (ix86_expand_move): Generate UNSPEC_GOT in 32-bit mode to load
202 the external function address via the GOT slot.
203 (ix86_nopic_noplt_attribute_p): Check both TARGET_64BIT and
204 HAVE_AS_IX86_GOT32X before returning false.
205 (ix86_output_call_insn): Generate "%!jmp/call\t*%p0@GOT" in
206 32-bit mode if ix86_nopic_noplt_attribute_p returns true.
207
208 2016-06-23 Eric Botcazou <ebotcazou@adacore.com>
209
210 * tree-inline.c (remap_decl): Preserve DECL_ORIGINAL_TYPE invariant.
211
212 2016-06-23 Andi Kleen <ak@linux.intel.com>
213
214 * Makefile.in: Regenerate.
215 * doc/install.texi: Document autoprofiledbootstrap.
216
217 2016-06-23 Andi Kleen <ak@linux.intel.com>
218
219 * config/i386/gcc-auto-profile: New file.
220
221 2016-06-23 Martin Liska <mliska@suse.cz>
222
223 PR middle-end/71619
224 * predict.c (predict_loops): Revert the hunk that was removed
225 in r237103.
226
227 2016-06-23 Jakub Sejdak <jakub.sejdak@phoesys.com>
228
229 * config.gcc: Add support for arm*-*-phoenix* targets.
230 * config/arm/t-phoenix: New.
231 * config/phoenix.h: New.
232
233 2016-06-23 Uros Bizjak <ubizjak@gmail.com>
234 H.J. Lu <hongjiu.lu@intel.com>
235
236 PR target/67400
237 * config/i386/i386-protos.h (ix86_force_load_from_GOT_p): New.
238 * config/i386/i386.c (ix86_force_load_from_GOT_p): New function.
239 (ix86_legitimate_constant_p): Do not allow UNSPEC_GOTPCREL if
240 ix86_force_load_from_GOT_p returns true.
241 (ix86_legitimate_address_p): Allow UNSPEC_GOTPCREL if
242 ix86_force_load_from_GOT_p returns true.
243 (ix86_print_operand_address_as): Support UNSPEC_GOTPCREL if
244 ix86_force_load_from_GOT_p returns true.
245 (ix86_expand_move): Load the external function address via the
246 GOT slot if ix86_force_load_from_GOT_p returns true.
247 * config/i386/predicates.md (x86_64_immediate_operand): Return
248 false for SYMBOL_REFs where ix86_force_load_from_GOT_p returns true.
249 (x86_64_zext_immediate_operand): Ditto.
250
251 2016-06-22 Uros Bizjak <ubizjak@gmail.com>
252
253 * config/i386/i386.c (ix86_expand_move): Simplify SYMBOL_REF handling.
254
255 2016-06-22 David Malcolm <dmalcolm@redhat.com>
256
257 PR c/70339
258 * diagnostic-core.h (pedwarn_at_rich_loc): New prototype.
259 * diagnostic.c (pedwarn_at_rich_loc): New function.
260 * spellcheck.h (best_match::best_match): Add a
261 "best_distance_so_far" optional parameter.
262 (best_match::set_best_so_far): New method.
263 (best_match::get_best_distance): New accessor.
264 (best_match::get_best_candidate_length): New accessor.
265
266 2016-06-22 Nick Clifton <nickc@redhat.com>
267
268 * dwarf2out.c (scompare_loc_descriptor): Use SCALAR_INT_MODE_P() in
269 place of GET_MODE_CLASS() == MODE_INT, so that partial integer
270 modes are accepted as well.
271 (ucompare_loc_descriptor): Likewise.
272 (minmax_loc_descriptor): Likewise.
273 (clz_loc_descriptor): Likewise.
274 (popcount_loc_descriptor): Likewise.
275 (bswap_loc_descriptor): Likewise.
276 (rotate_loc_descriptor): Likewise.
277 (mem_loc_descriptor): Likewise.
278 (loc_descriptor): Likewise.
279
280 2016-06-22 David Malcolm <dmalcolm@redhat.com>
281
282 * common.opt (fdiagnostics-parseable-fixits): New option.
283 * diagnostic.c: Include "selftest.h".
284 (print_escaped_string): New function.
285 (print_parseable_fixits): New function.
286 (diagnostic_report_diagnostic): Call print_parseable_fixits.
287 (selftest::assert_print_escaped_string): New function.
288 (ASSERT_PRINT_ESCAPED_STRING_STREQ): New macro.
289 (selftest::test_print_escaped_string): New function.
290 (selftest::test_print_parseable_fixits_none): New function.
291 (selftest::test_print_parseable_fixits_insert): New function.
292 (selftest::test_print_parseable_fixits_remove): New function.
293 (selftest::test_print_parseable_fixits_replace): New function.
294 (selftest::diagnostic_c_tests): New function.
295 * diagnostic.h (struct diagnostic_context): Add field
296 "parseable_fixits_p".
297 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
298 -fdiagnostics-parseable-fixits.
299 (-fdiagnostics-parseable-fixits): New option.
300 * opts.c (common_handle_option): Handle
301 -fdiagnostics-parseable-fixits.
302 * selftest-run-tests.c (selftest::run_tests): Call
303 selftest::diagnostic_c_tests.
304 * selftest.h (selftest::diagnostic_c_tests): New prototype.
305
306 2016-06-22 Ilya Enkovich <ilya.enkovich@intel.com>
307
308 PR tree-optimization/71488
309 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Support
310 comparison of boolean vectors.
311 * tree-vect-stmts.c (vectorizable_comparison): Vectorize comparison
312 of boolean vectors using bitwise operations.
313
314 2016-06-22 Andreas Schwab <schwab@suse.de>
315
316 * config/aarch64/aarch64-protos.h (aarch64_elf_asm_named_section):
317 Remove declaration.
318
319 2016-06-22 Eric Botcazou <ebotcazou@adacore.com>
320
321 * function.c (assign_parm_setup_reg): Prevent sharing in another case.
322
323 2016-06-22 Bernd Edlinger <bernd.edlinger@hotmail.de>
324
325 * config/i386/i386.c (print_reg): Emit an error message on attempt to
326 print FLAGS_REG.
327
328 2016-06-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
329
330 * config/arm/arm.c (arm_cortex_a73_tune): New struct.
331 * config/arm/arm-cores.def (cortex-a73): New entry.
332 (cortex-a73.cortex-a35): Likewise.
333 (cortex-a73.cortex-a53): Likewise.
334 * config/arm/arm-tables.opt: Regenerate.
335 * config/arm/arm-tune.md: Likewise.
336 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle mcpu=cortex-a73,
337 mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
338 * config/arm/t-aprofile: Handle mcpu=cortex-a73,
339 mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
340 * doc/invoke.texi (ARM Options): Document cortex-a73,
341 cortex-a73.cortex-a35 and cortex-a73.cortex-a53.
342
343 2016-06-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
344
345 * config/aarch64/aarch64.c (cortexa73_tunings): New struct.
346 * config/aarch64/aarch64-cores.def (cortex-a73): New entry.
347 (cortex-a73.cortex-a35): Likewise.
348 (cortex-a73.cortex-a53): Likewise.
349 * config/aarch64/aarch64-tune.md: Regenerate.
350 * doc/invoke.texi (AArch64 Options): Document cortex-a73,
351 cortex-a73.cortex-a35 and cortex-a73.cortex-a53 arguments to
352 -mcpu and -mtune.
353
354 2016-06-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
355
356 * configure.ac (gcc_cv_as_compress_debug): Remove
357 --compress-debug-sections as extra as switch.
358 Handle gas --compress-debug-sections=type.
359 (gcc_cv_ld_compess_debug): Remove bogus ld_date check.
360 Handle gld --compress-debug-sections=type.
361 * configure: Regenerate.
362
363 2016-06-21 Andrew Burgess <andrew.burgess@embecosm.com>
364
365 * bb-reorder.c (pass_partition_blocks::gate): Update comment.
366
367 2016-06-21 John David Anglin <danglin@gcc.gnu.org>
368
369 * gcov-tool.c (profile_rewrite): Use int64_t instead of long long.
370 (do_rewrite): likewise.
371
372 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
373
374 * common/config/mep/mep-common.c: Remove.
375 * config.gcc: Remove mep-* support.
376 * config/mep/constraints.md: Remove.
377 * config/mep/default.h: Remove.
378 * config/mep/intrinsics.h: Remove.
379 * config/mep/intrinsics.md: Remove.
380 * config/mep/ivc2-template.h: Remove.
381 * config/mep/mep-c5.cpu: Remove.
382 * config/mep/mep-core.cpu: Remove.
383 * config/mep/mep-default.cpu: Remove.
384 * config/mep/mep-ext-cop.cpu: Remove.
385 * config/mep/mep-intrin.h: Remove.
386 * config/mep/mep-ivc2.cpu: Remove.
387 * config/mep/mep-pragma.c: Remove.
388 * config/mep/mep-protos.h: Remove.
389 * config/mep/mep.c: Remove.
390 * config/mep/mep.cpu: Remove.
391 * config/mep/mep.h: Remove.
392 * config/mep/mep.md: Remove.
393 * config/mep/mep.opt: Remove.
394 * config/mep/predicates.md: Remove.
395 * config/mep/t-mep: Remove.
396 * doc/install.texi: Remove mep-* documentation.
397 * doc/md.texi: Likewise.
398
399 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
400
401 * config.gcc: Remove support for avr-rtems.
402 * config/avr/gen-avr-mmcu-specs.c: Likewise.
403 * config/avr/rtems.h: Remove.
404 * config/avr/t-rtems: Remove.
405
406 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
407
408 * config.gcc: Remove m32r-rtems support.
409 * config/m32r/rtems.h: Remove.
410
411 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
412
413 * config.gcc: Remove h8300-rtems support.
414 * config/h8300/rtems.h: Remove.
415 * config/h8300/t-rtems: Remove.
416
417 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
418
419 * config.gcc: Remove support for knetbsd.
420 * configure.ac: Likewise.
421 * config/i386/knetbsd-gnu.h: Remove. * config/i386/knetbsd-gnu64.h: Remove.
422 * config/knetbsd-gnu.h: Remove.
423 * configure: Regenerate.
424
425 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
426
427 * config.gcc: Remove support for openbsd 2 and 3.
428 * config/openbsd-oldgas.h: Remove.
429
430 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
431
432 * config.gcc: Remove interix support.
433 * config/i386/i386-interix.h: Remove.
434 * config/i386/interix.opt: Remove.
435 * config/i386/t-interix: Remove.
436 * configure: Regenerate.
437 * configure.ac: Remove interix support.
438 * doc/install.texi: Remove interix documentation.
439
440 2016-06-21 Kelvin Nilsen <kelvin@gcc.gnu.org>
441
442 * config/rs6000/rs6000.h: Add conditional preprocessing directives
443 to disable Power9-specific compiler features if HAVE_AS_POWER9 is
444 not defined.
445
446 2016-06-21 Eric Botcazou <ebotcazou@adacore.com>
447
448 * tree.c (verify_type_variant): Skip TYPE_SIZE and TYPE_SIZE_UNIT if
449 they are both PLACEHOLDER_EXPRs.
450
451 2016-06-21 Michael Meissner <meissner@linux.vnet.ibm.com>
452
453 * stor-layout.c (layout_type): Move setting complex MODE to
454 layout_type, instead of setting it ahead of time by the caller.
455 * tree.c (build_complex_type): Likewise.
456
457 2016-06-21 Martin Liska <mliska@suse.cz>
458
459 * predict.c (force_edge_cold): Replace imposisble with
460 impossible.
461
462 2016-06-21 Ilya Verbin <ilya.verbin@intel.com>
463
464 * config/i386/i386.c (ix86_emit_swsqrtsf): Emit vrsqrt28ps.
465 * config/i386/sse.md (define_expand "rsqrtv16sf2"): New.
466
467 2016-06-21 Ilya Verbin <ilya.verbin@intel.com>
468
469 * config/i386/i386.c (ix86_emit_swdivsf): Emit vrcp28ps.
470
471 2016-06-21 H.J. Lu <hongjiu.lu@intel.com>
472 Ilya Enkovich <ilya.enkovich@intel.com>
473
474 PR target/71549
475 * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
476 New member function to convert V1TImode register to SUBREG
477 TImode in debug insn.
478 (timode_scalar_chain::convert_insn): Call fix_debug_reg_uses
479 after changing register mode to V1TImode.
480
481 2016-06-21 Virendra Pathak <virendra.pathak@broadcom.com>
482
483 * config/aarch64/aarch64-cores.def (vulcan): New core.
484 * config/aarch64/aarch64-tune.md: Regenerate.
485 * doc/invoke.texi: Document vulcan as an available option.
486
487 2016-06-21 Eric Botcazou <ebotcazou@adacore.com>
488
489 * cse.c (canon_asm_operands): New function extracted from...
490 (canonicalize_insn): ...here. Call it to canonicalize an ASM_OPERANDS
491 either standalone or member of a PARALLEL.
492
493 2016-06-21 Georg-Johann Lay <avr@gjlay.de>
494
495 PR target/30417
496 * config/avr/gen-avr-mmcu-specs.c (print_mcu):
497 [*link_data_start]: Wrap -Tdata into %{!Tdata:...}.
498 [*link_text_start]: Wrap -Ttext into %{!Ttext:...}.
499
500 2016-06-21 Georg-Johann Lay <avr@gjlay.de>
501
502 PR target/71103
503 * config/avr/avr.md (movqi): Only handle loading subreg:qi of
504 constant addresses if can_create_pseudo_p.
505
506 2016-06-21 Jakub Jelinek <jakub@redhat.com>
507
508 PR tree-optimization/71588
509 * tree-ssa-strlen.c (valid_builtin_call): New function.
510 (adjust_last_stmt, handle_builtin_memset, strlen_optimize_stmt): Use
511 it.
512
513 2016-06-20 Jakub Jelinek <jakub@redhat.com>
514
515 PR middle-end/71581
516 * tree-ssa-uninit.c (warn_uninit): If EXPR and VAR are NULL,
517 see if T isn't anonymous SSA_NAME with COMPLEX_EXPR created
518 for conversion of scalar user var to complex type and use the
519 underlying SSA_NAME_VAR in that case. If EXPR is still NULL,
520 punt.
521
522 PR rtl-optimization/71591
523 * toplev.c (toplev::run_self_tests): If no_backend, complain and
524 don't run any tests.
525
526 2016-06-20 Hans-Peter Nilsson <hp@axis.com>
527
528 PR target/71571
529 * config/cris/cris.c (cris_asm_output_mi_thunk): Add missing "ba"
530 delay-slot "nop" for PIC with CRIS v32. Also add missing leading
531 space for PIC with non-v32 and the common non-PIC "jump".
532
533 2016-06-20 Jakub Jelinek <jakub@redhat.com>
534
535 PR target/71559
536 * config/i386/i386.c (ix86_fp_cmp_code_to_pcmp_immediate): Fix up
537 returned values and add UN*/LTGT/*ORDERED cases with values matching
538 D operand modifier on vcmp for AVX.
539
540 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
541
542 * config/aarch64/aarch64.opt
543 (mpc-relative-literal-loads): Rename internal option name.
544 * config/aarch64/aarch64.c
545 (aarch64_nopcrelative_literal_loads): Rename to
546 aarch64_pcrelative_literal_loads.
547 (aarch64_expand_mov_immediate): Likewise.
548 (aarch64_secondary_reload): Likewise.
549 (aarch64_can_use_per_function_literal_pools_p): Likewise.
550 (aarch64_override_options_after_change_1): Rename and simplify logic.
551 (aarch64_classify_symbol): Merge large model checks into switch,
552 remove pc-relative load check.
553
554 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
555
556 * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): Make FP
557 costs relative to the cost of a register move.
558
559 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
560
561 * config/aarch64/arm_neon.h (vcvt_n_f64_s64): New.
562 (vcvt_n_f64_u64): Likewise.
563 (vcvt_n_s64_f64): Likewise.
564 (vcvt_n_u64_f64): Likewise.
565 (vcvt_f64_s64): Likewise.
566 (vrecpe_f64): Likewise.
567 (vcvt_f64_u64): Likewise.
568 (vrecps_f64): Likewise.
569
570 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
571
572 * config/aarch64/aarch64.md
573 (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3): Add attributes to
574 iterators.
575 (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>3): Likewise. Correct
576 attributes.
577 * config/aarch64/aarch64-builtins.c
578 (aarch64_types_binop_uss_qualifiers): Delete.
579 (TYPES_BINOP_USS): Likewise.
580 (aarch64_types_binop_sus_qualifiers): Likewise.
581 (TYPES_BINOP_SUS): Likewise.
582 (aarch64_types_fcvt_from_unsigned_qualifiers): New.
583 (TYPES_FCVTIMM_SUS): Likewise.
584 * config/aarch64/aarch64-simd-builtins.def (scvtf): Use SHIFTIMM
585 rather than BINOP.
586 (ucvtf): Use FCVTIMM_SUS rather than BINOP_SUS.
587 (fcvtzs): Use SHIFTIMM rather than BINOP.
588 (fcvtzu): Use SHIFTIMM_USS rather than BINOP_USS.
589
590 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
591
592 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): Make FP
593 costs relative to the cost of a register move.
594
595 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
596
597 * config/aarch64/aarch64.c (aarch64_modes_tieable_p):
598 Allow scalar/single vector modes to be tieable.
599
600 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
601
602 * config/arm/cortex-a57.md (cortex_a57_fp_cpys): Add fcsel.
603
604 2016-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
605
606 * params.def (PARAM_ALIGN_LOOP_ITERATIONS): Use "alignment" instead of
607 "alignement".
608 * tree.h (TYPE_ALIGN): Likewise.
609
610 2016-06-20 Georg-Johann Lay <avr@gjlay.de>
611
612 PR target/71103
613 * config/avr/avr.md (movqi): Handle loading subreg:qi (const).
614
615 2016-06-20 Georg-Johann Lay <avr@gjlay.de>
616
617 * config/avr/avr.c (avr_print_operand): Fix "format not a string
618 literal" build warnings.
619 (avr_print_operand_address): Dito.
620
621 2016-06-19 David Edelsohn <dje.gcc@gmail.com>
622
623 PR target/71375
624 * config/rs6000/aix51.h (TARGET_EXTRA_BUILTINS): Define as 0.
625 * config/rs6000/aix43.h (TARGET_EXTRA_BUILTINS): Same.
626
627 2016-06-18 John David Anglin <danglin@gcc.gnu.org>
628
629 * config/pa/pa.h (TARGET_LONG_PIC_PCREL_CALL): Remove.
630
631 2016-06-18 Eric Botcazou <ebotcazou@adacore.com>
632
633 PR bootstrap/71435
634 * reload1.c (reload): Pass 0 to finish_spills when called because
635 update_eliminables_and_spill returns true and remove did_spill.
636 (finish_spills): Adjust comment and document GLOBAL parameter.
637
638 2016-06-17 DJ Delorie <dj@redhat.com>
639
640 PR target/71338
641 * config/rl78/rl78-expand.c (umulqihi3): Enable for G10.
642 * config/rl78/rl78-virtual.c (umulhi3_shift_virt): Likewise.
643 (umulqihi3_virt): Likewise.
644 * config/rl78/rl78-real.c (umulhi3_shift_real): Likewise.
645 (umulqihi3_real): Likewise.
646
647 2016-06-17 Martin Liska <mliska@suse.cz>
648
649 * tree-ssa-reassoc.c (transform_add_to_multiply): Use auto_vec.
650
651 2016-06-17 Martin Liska <mliska@suse.cz>
652
653 * predict.def: PRED_LOOP_EXIT from 92 to 85.
654
655 2016-06-17 James Greenhalgh <james.greenhalgh@arm.com>
656
657 * config/arm/arm_neon.h (vadd_f32): replace __FAST_MATH with
658 __FAST_MATH__.
659 (vaddq_f32): Likewise.
660 (vmul_f32): Likewise.
661 (vmulq_f32): Likewise.
662 (vsub_f32): Likewise.
663 (vsubq_f32): Likewise.
664
665 2016-06-17 Bin Cheng <bin.cheng@arm.com>
666
667 PR tree-optimization/71347
668 * tree-ssa-loop-ivopts.c (determine_group_iv_cost_address): Compute
669 cost for all uses in group.
670
671 2016-06-17 Bin Cheng <bin.cheng@arm.com>
672
673 * tree-vect-loop.c (vect_create_epilog_for_reduction): Only
674 insert gimple seq if it's not empty.
675
676 2016-06-17 Bin Cheng <bin.cheng@arm.com>
677
678 * tree-vectorizer.h (struct dr_with_seg_len): Remove class
679 member OFFSET.
680 * tree-vect-data-refs.c (operator ==): Handle DR_OFFSET directly,
681 rather than OFFSET.
682 (comp_dr_with_seg_len_pair): Ditto.
683 (vect_prune_runtime_alias_test_list): Ditto. Also Canonicalize
684 struct dr_with_seg_len_pair against DR_OFFSET.
685 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Handle
686 DR_OFFSET directly.
687
688 2016-06-17 Szabolcs Nagy <szabolcs.nagy@arm.com>
689
690 * config/aarch64/geniterators.sh: Handle parenthesised conditions.
691
692 2016-06-16 John David Anglin <danglin@gcc.gnu.org>
693
694 * config/pa/pa.c (pa_output_pic_pcrel_sequence): New.
695 (pa_output_lbranch): Use pa_output_pic_pcrel_sequence.
696 (pa_output_millicode_call): Likewise.
697 (pa_output_call): Likewise.
698 (pa_output_indirect_call): Likewise.
699 (pa_asm_output_mi_thunk): Likewise.
700
701 2016-06-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
702
703 * doc/invoke.texi (x86 Options): Fix -mno-fp-ret-in-387 typo.
704
705 2016-06-16 Martin Liska <mliska@suse.cz>
706
707 * predict.c (combine_predictions_for_insn): When we find a first
708 match predictor, we should consider just predictors with
709 PRED_FLAG_FIRST_MATCH. Print either first match (if any) or
710 DS theory predictor.
711 (combine_predictions_for_bb): Likewise.
712
713 2016-06-16 Jakub Jelinek <jakub@redhat.com>
714
715 * gimplify.c (gimplify_scan_omp_clauses): Handle COMPONENT_REFs
716 with base of reference to struct.
717
718 2016-06-16 Uros Bizjak <ubizjak@gmail.com>
719
720 * doc/invoke.texi (x86 Options): Document -m80387 and -mhard-float.
721
722 2016-06-16 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
723
724 PR target/71151
725 * config/avr/avr.c (avr_asm_init_sections): Remove setup of
726 progmem_swtable_section.
727 (progmem_swtable_section): Remove.
728 (avr_asm_function_rodata_section): Remove.
729 (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
730 * config/avr/avr.h (JUMP_TABLES_IN_TEXT_SECTION: Define to 1.
731
732 2016-06-16 Jocelyn Mayer <l_indien@magic.fr>
733
734 * config/i386/driver-i386.c (host_detect_local_cpu): Set
735 PROCESSOR_K8 for signature_CENTAUR_ebx with has_longmode.
736 <case PROCESSOR_K8>: Pass nano-3000, nano, eden-x2 or k8 for
737 signature_CENTAUR_ebx.
738 * config/i386/i386.c (ix86_option_override_internal): Add
739 definitions for VIA c7, samuel-2, nehemiah, esther, eden-x2, eden-x4,
740 nano, nano-1000, nano-2000, nano-3000, nano-x2 and nano-x4.
741 * doc/invoke.texi (x86 Options): Document new VIA -march entries.
742
743 2016-06-16 Martin Liska <mliska@suse.cz>
744
745 * predict.def: Add fortran loop preheader predictor.
746 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Properly
747 fold IFN_BUILTIN_EXPECT with a known constant argument.
748
749 2016-06-16 Martin Liska <mliska@suse.cz>
750
751 * predict.def: Add 'Fortran' to display text of all
752 PRED_FORTRAN_* predictors.
753
754 2016-06-16 Uros Bizjak <ubizjak@gmail.com>
755
756 PR target/71242
757 * config/ia64/ia64.c (enum ia64_builtins) [IA64_BUILTIN_NANQ]: New.
758 [IA64_BUILTIN_NANSQ]: Ditto.
759 (ia64_fold_builtin): New function.
760 (TARGET_FOLD_BUILTIN): New define.
761 (ia64_init_builtins) Declare const_string_type node.
762 Add __builtin_nanq and __builtin_nansq builtin functions.
763 (ia64_expand_builtin): Handle IA64_BUILTIN_NANQ and IA64_BUILTIN_NANSQ.
764
765 2016-06-16 Nick Clifton <nickc@redhat.com>
766
767 * config/msp430/msp430-opts.h (msp430_hwmult_types): Add
768 MSP430_HWMULT_ prefix to enum values.
769 (msp430_regions): Add MSP430_REGION_ prefix to enum values.
770 * config/msp430/msp430.c: Update use of enum values.
771 * config/msp430/msp430.md: Likewise.
772 * config/msp430/msp430.opt: Likewise.
773
774 2016-06-16 Jan Hubicka <hubicka@ucw.cz>
775
776 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Fix estimation
777 of comparsions in the last iteration.
778
779 2016-06-16 Claudiu Zissulescu <claziss@synopsys.com>
780 Joern Rennecke <joern.rennecke@embecosm.com>
781
782 * config/arc/arc.c (arc_print_operand_address): Handle pc-relative
783 addresses.
784 (arc_needs_pcl_p): Add GOTOFFPC.
785 (arc_legitimate_pic_addr_p): Likewise.
786 (arc_output_pic_addr_const): Likewise.
787 (arc_legitimize_pic_address): Generate a pc-relative address using
788 GOTOFFPC.
789 (arc_output_libcall): Use @pcl syntax.
790 (arc_delegitimize_address_0): Delegitimize ARC_UNSPEC_GOTOFFPC.
791 * config/arc/arc.md ("unspec"): Add ARC_UNSPEC_GOTOFFPC.
792 (*movsi_insn): Use @pcl syntax.
793 (doloop_begin_i): Likewise.
794
795 2016-06-16 Martin Liska <mliska@suse.cz>
796
797 * predict.def: Define a new predictor.
798
799 2016-06-16 Claudiu Zissulescu <claziss@synopsys.com>
800
801 * config/arc/arc.opt (mtp-regno): Update text.
802
803 2016-06-16 Renlin Li <renlin.li@arm.com>
804
805 * config/aarch64/aarch64.c (aarch64_legitimize_address): Fix a typo.
806
807 2016-06-16 Jakub Jelinek <jakub@redhat.com>
808
809 PR target/71554
810 * config/i386/i386.md (setcc + movzbl peephole2): Use reg_set_p.
811 (setcc + and peephole2): Likewise.
812
813 PR rtl-optimization/71532
814 * cse.c (cse_insn): For const/pure calls, invalidate argument passing
815 memory slots.
816
817 2016-06-15 Michael Meissner <meissner@linux.vnet.ibm.com>
818
819 * config/rs6000/vsx.md (VSINT_84): Add DImode to enable loading
820 DImode constants with XXSPLTIB in vector registers.
821 (vsx_extract_<mode>, V2DImode/V2DFmode): Combine both
822 vsx_extract_<mode>_internal{1,2} into a single insn that handles
823 direct move (both ISA 2.07 and ISA 3.0 versions), and optimizes
824 extraction of the element at the top of the register as a scalar
825 value.
826 (vsx_extract_<mode>_internal1): Likewise.
827 (vsx_extract_<mode>_internal2): Likewise.
828 * config/rs6000/constraints.md (wi constraint): Remove a comment
829 about DImode not being allowed in Altivec registers.
830 (wB constraint): New constraint for constants that can be
831 generated in Altivec registers with VSPLTISW/VUPKHSW.
832 * config/rs6000/predicates.md (xxspltib_constant_split): Update
833 comments.
834 (xxspltib_constant_nosplit): Likewise.
835 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Add
836 support for -mupper-regs-di to enable DImode to go into Altivec
837 registers.
838 (POWERPC_MASKS): Likewise.
839 (power7 cpu): Likewise.
840 * config/rs6000/rs6000.opt (-mupper-regs-di): Likewise.
841 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
842 for DImode being allowed in Altivec registers. Update wi/wj
843 constraints. Set scalar_in_vmx_p flag.
844 (rs6000_option_override_internal): Add checks for -mupper-regs-di.
845 (xxspltib_constant_p): Allow CONST_INT's with VOIDmode. Don't
846 return true if we could use VSPLTISW/VUPKHSW instead of XXSPLTIB.
847 (rs6000_opt_masks): Add -mupper-regs-di.
848 * config/rs6000/rs6000.md (lfiwax): Update clobbers that don't use
849 direct move to use wi and not wj.
850 (lfiwzx): Likewise.
851 (floatsi<mode>2_lfiwax_mem): Combine alternatives into a single
852 alternative.
853 (floatunssi<mode>2_lfiwzx_mem): Likewise.
854 (fix_trunc<mode>di2_fctidz): Change second alternative to allow
855 any VSX register, instead of just Altivec registers, to allow
856 either operand to be an Altivec register or both.
857 (fixuns_trunc<mode>di2_fctiduz): Likewise.
858 (movdi_internal32): Add support for -mupper-regs-di. Add support
859 to load constants via XXSPLTIB or VSPLTISW. Add spacing to allow
860 the alternatives and attributes to be lined up to be easier to
861 read.
862 (movdi_internal64): Likewise.
863 (64-bit DImode splitters): Change predicates to only split loading
864 up GPR registers. Add splits for using XXSPLTIB or VSPLTISW to
865 load constants in ISA 3.0 or ISA 2.07 respectively.
866 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
867 -mupper-regs-di. Update -mupper-regs-df and -mupper-regs-sf to
868 mention -mcpu=power9 sets these options.
869 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document the
870 wB constraint.
871
872 2016-06-15 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
873
874 PR target/67353
875 * config/avr/avr.c (avr_set_current_function): Warn misspelled
876 interrupt/ signal handler if -Wmisspelled-isr flag is enabled.
877 * config/avr/avr.opt (Wmisspelled-isr): New warning flag. Enabled
878 by default to warn misspelled interrupt/ signal handler.
879 * doc/invoke.texi (AVR Options): Document it. Update description
880 for -nodevicelib option.
881
882 2016-06-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
883
884 * config/aarch64/aarch64-simd.md (aarch64_<sur>shll_n<mode>): Clean
885 up parentheses. Use GET_MODE_UNIT_BITSIZE.
886 (aarch64_<sur>shll2_n<mode>): Likewise.
887
888 2016-06-15 Ilya Enkovich <ilya.enkovich@intel.com>
889
890 PR middle-end/71529
891 * ipa-chkp.c (chkp_build_instrumented_fndecl): Fix
892 DECL_CONTEXT for copied arguments.
893
894 2016-06-15 Alan Hayward <alan.hayward@arm.com>
895
896 PR tree-optimization/71483
897 * tree-vect-loop.c (vectorizable_live_operation): Pick correct index
898 for slp
899
900 2016-06-15 Martin Liska <mliska@suse.cz>
901
902 * predict.c (tree_predict_by_opcode): Call predict_edge_def
903 instead of predict_edge w/o a probability.
904
905 2016-06-15 Alan Hayward <alan.hayward@arm.com>
906
907 PR tree-optimization/71439
908 * tree-vect-loop.c (vect_analyze_loop_operations): Additional check for
909 live PHIs.
910
911 2016-06-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
912
913 * ifcvt.c (bb_ok_for_noce_multiple_sets): Allow simple lowpart
914 register subregs in SET_SRC.
915
916 2016-06-15 Richard Biener <rguenther@suse.de>
917
918 * tree-vect-stmts.c (vectorizable_store): Remove strided grouped
919 store restrictions.
920
921 2016-06-15 Richard Biener <rguenther@suse.de>
922
923 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Do
924 not consider dependences between accesses that belong to the
925 same group.
926 (vect_analyze_data_ref_dependences): Do not analyze read-read
927 or self-dependences.
928
929 2016-06-14 David Malcolm <dmalcolm@redhat.com>
930
931 * spellcheck-tree.c: Include spellcheck-tree.h rather than
932 spellcheck.h.
933 (find_closest_identifier): Reimplement in terms of
934 best_match<tree,tree>.
935 * spellcheck-tree.h: New file.
936 * spellcheck.c (struct edit_distance_traits<const char *>): New
937 struct.
938 (find_closest_string): Reimplement in terms of
939 best_match<const char *, const char *>.
940 * spellcheck.h (levenshtein_distance): Move prototype of tree-based
941 overload to spellcheck-tree.h.
942 (find_closest_identifier): Likewise.
943 (struct edit_distance_traits<T>): New template.
944 (class best_match): New class.
945
946 2016-06-14 David Malcolm <dmalcolm@redhat.com>
947
948 * selftest-run-tests.c (selftest::run_tests): Call
949 selftest::spellcheck_tree_c_tests.
950 * selftest.h (selftest::spellcheck_tree_c_tests): New decl.
951 * spellcheck-tree.c: Include selftest.h and stringpool.h.
952 (selftest::test_find_closest_identifier): New function.
953 (selftest::spellcheck_tree_c_tests): New function.
954 * spellcheck.c (selftest::test_find_closest_string): Verify that
955 the order of the vec does not affect the results for this case.
956 (selftest::test_data): New array.
957 (selftest::test_metric_conditions): New function.
958 (selftest::spellcheck_c_tests): Add a test of case-comparison.
959 Call selftest::test_metric_conditions.
960
961 2016-06-14 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
962
963 * config/rs6000/rs6000-builtin.def (commentary): Typo.
964 (BU_P9_MISC_1): Likewise.
965 (BU_P9_64BIT_MISC_0): Likewise.
966 (BU_P9_MISC_0): Likewise.
967
968 2016-06-14 David Malcolm <dmalcolm@redhat.com>
969
970 * gcc-rich-location.c
971 (gcc_rich_location::add_fixit_misspelled_id): New method.
972 * gcc-rich-location.h
973 (gcc_rich_location::add_fixit_misspelled_id): Add decl.
974
975 2016-06-14 Andreas Tobler <andreast@gcc.gnu.org>
976
977 * config/arm/freebsd.h: Only enable unaligned access for armv6 on
978 FreeBSD 11 and above.
979
980 2016-06-14 Uros Bizjak <ubizjak@gmail.com>
981
982 * config/i386/i386.md (signbittf2): Emit sse_movmskps for TARGET_SSE.
983
984 2016-06-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
985
986 * expmed.h: Close parenthesis in "at your option" in copyright
987 boilerplate.
988 * lower-subreg.h: Likewise.
989
990 2016-06-14 Richard Biener <rguenther@suse.de>
991
992 PR middle-end/71526
993 * genmatch.c (expr::gen_transform): Use in_type for comparisons
994 if available.
995
996 2015-06-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
997
998 * config/aarch64/aarch64.c (aarch64_mask_and_shift_for_ubfiz_p):
999 New function.
1000 (aarch64_rtx_costs): Use it. Rewrite CONST_INT_P (op1) case to handle
1001 mask+shift version.
1002 * config/aarch64/aarch64-protos.h (aarch64_mask_and_shift_for_ubfiz_p):
1003 New prototype.
1004 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Replace
1005 matching condition with aarch64_mask_and_shift_for_ubfiz_p.
1006
1007 2016-06-14 Richard Biener <rguenther@suse.de>
1008
1009 PR tree-optimization/71522
1010 * tree-ssa.c (non_rewritable_lvalue_p): Do not rewrite non-float
1011 copying into float copying.
1012
1013 2016-06-14 Jakub Jelinek <jakub@redhat.com>
1014
1015 PR tree-optimization/71520
1016 * tree-ssa-tail-merge.c (find_duplicate): Handle labels.
1017 (replace_block_by): Move user labels from bb1 to bb2.
1018
1019 2016-06-14 Richard Biener <rguenther@suse.de>
1020
1021 PR middle-end/71310
1022 PR bootstrap/71510
1023 * expr.h (get_bit_range): Declare.
1024 * expr.c (get_bit_range): Export.
1025 * fold-const.c (optimize_bit_field_compare): Use get_bit_range and
1026 word_mode again to constrain the bitfield access.
1027
1028 2016-06-14 Richard Biener <rguenther@suse.de>
1029
1030 PR tree-optimization/71521
1031 * tree-vrp.c (extract_range_from_binary_expr_1): Guard
1032 division int_const_binop against zero divisor.
1033
1034 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
1035
1036 * config/i386/i386.md (signbittf2): New expander.
1037 * config/i386/sse.md (ptesttf2): New insn pattern.
1038
1039 2016-06-13 David Malcolm <dmalcolm@redhat.com>
1040
1041 PR bootstrap/71481
1042 * input.c (selftest::test_reading_source_line): Avoid reading from
1043 __FILE__ by creating a tempfile with known content and reading
1044 from that instead.
1045
1046 2016-06-13 David Malcolm <dmalcolm@redhat.com>
1047
1048 * pretty-print.c (assert_pp_format_colored): Skip the test if
1049 GCC_COLORS is set.
1050 (test_pp_format): Remove comment about GCC_COLORS.
1051
1052 2016-06-13 David Malcolm <dmalcolm@redhat.com>
1053
1054 * input.c (test_reading_source_line): Use SELFTEST_LOCATION.
1055 * pretty-print.c (assert_pp_format_va): Add location param and use
1056 it with ASSERT_STREQ_AT.
1057 (assert_pp_format): Add location param and pass it to
1058 assert_pp_format_va.
1059 (assert_pp_format_colored): Likewise.
1060 (ASSERT_PP_FORMAT_1): New.
1061 (ASSERT_PP_FORMAT_2): New.
1062 (ASSERT_PP_FORMAT_3): New.
1063 (test_pp_format): Provide SELFTEST_LOCATION throughout, either
1064 explicitly, or implicitly via the above macros.
1065 * selftest.c (selftest::pass): Use a selftest::location rather
1066 than file and line.
1067 (selftest::fail): Likewise. Print the function name.
1068 (selftest::fail_formatted): Likewise.
1069 (selftest::assert_streq): Use a selftest::location rather than
1070 file and line.
1071 * selftest.h (selftest::location): New struct.
1072 (SELFTEST_LOCATION): New macro.
1073 (selftest::pass): Accept a const location & rather than file
1074 and line.
1075 (selftest::fail): Likewise.
1076 (selftest::fail_formatted): Likewise.
1077 (selftest::assert_streq): Likewise.
1078 (ASSERT_TRUE): Update for above changes, using SELFTEST_LOCATION.
1079 (ASSERT_FALSE): Likewise.
1080 (ASSERT_EQ): Likewise.
1081 (ASSERT_NE): Likewise.
1082 (ASSERT_STREQ): Likewise.
1083 (ASSERT_PRED1): Likewise.
1084 (ASSERT_STREQ_AT): New macro.
1085
1086 2016-06-13 David Malcolm <dmalcolm@redhat.com>
1087
1088 * selftest.c (selftest::fail_formatted): New function.
1089 (selftest::assert_streq): New function.
1090 * selftest.h (selftests::fail_formatted): New decl.
1091 (selftest::assert_streq): New decl.
1092 (ASSERT_STREQ): Reimplement in terms of selftest::assert_streq.
1093
1094 2016-06-13 Jeff Law <law@redhat.com>
1095
1096 PR tree-optimization/71403
1097 * tree-ssa-threadbackward.c
1098 (convert_and_register_jump_thread_path): No longer accept reference
1099 to path. Do not pop items off the path anymore.
1100 (fsm_find_control_statement_thread_paths): Do not allow threading
1101 to a deeper loop nest. Pop the last item off the path here rather
1102 than in convert_and_register_jump_thread_path.
1103
1104 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
1105 Wilco Dijkstra <Wilco.Dijkstra@arm.com>
1106
1107 [AArch64] Emit division using the Newton series
1108
1109 * config/aarch64/aarch64-protos.h
1110 (cpu_approx_modes): Add new member "division".
1111 (aarch64_emit_approx_div): Declare new function.
1112 * config/aarch64/aarch64.c
1113 (generic_approx_modes): New member "division".
1114 (exynosm1_approx_modes): Likewise.
1115 (xgene1_approx_modes): Likewise.
1116 (aarch64_emit_approx_div): Define new function.
1117 * config/aarch64/aarch64.md ("div<mode>3"): New expansion.
1118 * config/aarch64/aarch64-simd.md ("div<mode>3"): Likewise.
1119 * config/aarch64/aarch64.opt (-mlow-precision-div): Add new option.
1120 * doc/invoke.texi (-mlow-precision-div): Describe new option.
1121
1122 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
1123 Wilco Dijkstra <wilco.dijkstra@arm.com>
1124
1125 [AArch64] Emit square root using the Newton series
1126
1127 * config/aarch64/aarch64-protos.h
1128 (aarch64_emit_approx_rsqrt): Replace with new function
1129 "aarch64_emit_approx_sqrt".
1130 (cpu_approx_modes): New member "sqrt".
1131 * config/aarch64/aarch64.c
1132 (generic_approx_modes): New member "sqrt".
1133 (exynosm1_approx_modes): Likewise.
1134 (xgene1_approx_modes): Likewise.
1135 (aarch64_emit_approx_rsqrt): Replace with new function
1136 "aarch64_emit_approx_sqrt".
1137 (aarch64_override_options_after_change_1): Handle new option.
1138 * config/aarch64/aarch64-simd.md
1139 (rsqrt<mode>2): Use new function instead.
1140 (sqrt<mode>2): New expansion and insn definitions.
1141 * config/aarch64/aarch64.md: Likewise.
1142 * config/aarch64/aarch64.opt
1143 (mlow-precision-sqrt): Add new option description.
1144 * doc/invoke.texi (mlow-precision-sqrt): Likewise.
1145
1146 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
1147
1148 [AArch64] Add more choices for the reciprocal square root approximation
1149
1150 Allow a target to prefer such operation depending on the operation mode.
1151
1152 * config/aarch64/aarch64-protos.h
1153 (AARCH64_APPROX_MODE): New macro.
1154 (AARCH64_APPROX_{NONE,ALL}): Likewise.
1155 (cpu_approx_modes): New structure.
1156 (tune_params): New member "approx_modes".
1157 * config/aarch64/aarch64-tuning-flags.def
1158 (AARCH64_EXTRA_TUNE_APPROX_RSQRT): Remove macro.
1159 * config/aarch64/aarch64.c
1160 (generic_approx_modes): New core "cpu_approx_modes" structure.
1161 (exynosm1_approx_modes): Likewise.
1162 (xgene1_approx_modes): Likewise.
1163 (generic_tunings): New member "approx_modes".
1164 (cortexa35_tunings): Likewise.
1165 (cortexa53_tunings): Likewise.
1166 (cortexa57_tunings): Likewise.
1167 (cortexa72_tunings): Likewise.
1168 (exynosm1_tunings): Likewise.
1169 (thunderx_tunings): Likewise.
1170 (xgene1_tunings): Likewise.
1171 (use_rsqrt_p): New argument for the mode and use new member from
1172 "tune_params".
1173 (aarch64_builtin_reciprocal): Devise mode from builtin.
1174 (aarch64_optab_supported_p): New argument for the mode.
1175 * doc/invoke.texi (-mlow-precision-recip-sqrt): Reword description.
1176
1177 2016-06-13 Kelvin Nilsen <kelvin@gcc.gnu.org>
1178
1179 * config/rs6000/rs6000.h (RS6000_BTM_COMMON): Add the
1180 RS6000_BTM_MODULO flag into the set of flags that are considered
1181 to be part of the common configuration.
1182
1183 2016-06-13 Kelvin Nilsen <kelvin@gcc.gnu.org>
1184
1185 * config/rs6000/altivec.h (vec_absd): New macro for vector absolute
1186 difference unsigned.
1187 (vec_absdb): New macro for vector absolute difference unsigned
1188 byte.
1189 (vec_absdh): New macro for vector absolute difference unsigned
1190 half-word.
1191 (vec_absdw): New macro for vector absolute difference unsigned word.
1192 * config/rs6000/altivec.md (UNSPEC_VADU): New value.
1193 (vadu<mode>3): New insn.
1194 (*p9_vadu<mode>3): New insn.
1195 * config/rs6000/rs6000-builtin.def (vadub): New built-in
1196 definition.
1197 (vaduh): New built-in definition.
1198 (vaduw): New built-in definition.
1199 (vadu): New overloaded built-in definition.
1200 (vadub): New overloaded built-in definition.
1201 (vaduh): New overloaded built-in definition.
1202 (vaduw): New overloaded built-in definition.
1203 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
1204 overloaded vector absolute difference unsigned functions.
1205 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
1206 the ISA 3.0 vector absolute difference unsigned built-in functions.
1207
1208 2016-06-13 Eric Botcazou <ebotcazou@adacore.com>
1209
1210 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use a uniform test and
1211 update shared_lookup_references only once after changing operands.
1212
1213 2016-06-13 Thomas Schwinge <thomas@codesourcery.com>
1214
1215 PR middle-end/71373
1216 * tree-nested.c (convert_nonlocal_omp_clauses)
1217 (convert_local_omp_clauses): Document missing OMP_CLAUSE_*.
1218
1219 * tree-cfg.c (edge_to_cases_cleanup): Fix CASE_CHAIN typo.
1220 * tree.def (CASE_LABEL_EXPR): Likewise.
1221
1222 2016-06-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
1223
1224 PR bootstrap/71481
1225 * input.c (test_builtins): Fix an assertion.
1226
1227 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
1228
1229 * config/i386/i386.md (paritydi2): Use ix86_expand_setcc.
1230 (paritysi2): Ditto.
1231 (isinfxf2): Ditto.
1232 (isinf<mode>2): Ditto.
1233
1234 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
1235
1236 * ggc-tests.c (test_finalization): Only test need_finalization_p
1237 for GCC_VERSION >= 4003.
1238
1239 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1240
1241 * config/s390/vecintrin.h: Fix file description in comment.
1242
1243 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1244
1245 * config/s390/s390-builtin-types.def: Change builtin type naming
1246 scheme to match builtin-types.def.
1247
1248 2016-06-13 Marc Glisse <marc.glisse@inria.fr>
1249
1250 * fold-const.c (optimize_minmax_comparison): Remove.
1251 (fold_comparison): Remove call to the above.
1252 * match.pd (MIN (X, Y) == X, MIN (X, 5) == 0, MIN (X, C1) < C2):
1253 New transformations.
1254
1255 2016-06-13 Alan Hayward <alan.hayward@arm.com>
1256
1257 PR tree-optimization/71416
1258 * tree-vect-loop.c (vectorizable_live_operation): Let worklist have
1259 multiple entries
1260
1261 2016-06-13 Martin Liska <mliska@suse.cz>
1262
1263 * predict.c (enum predictor_reason): Prefix enum with REASON_.
1264 (combine_predictions_for_insn): Likewise.
1265 (prune_predictions_for_bb): Likewise.
1266 (combine_predictions_for_bb): Likewise.
1267
1268 2016-06-13 Richard Biener <rguenther@suse.de>
1269
1270 PR tree-optimization/71505
1271 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Make
1272 assert match comment.
1273
1274 2016-06-13 Marek Polacek <polacek@redhat.com>
1275
1276 PR middle-end/71476
1277 * gimplify.c (maybe_warn_switch_unreachable): Factored out of
1278 gimplify_switch_expr.
1279 (warn_switch_unreachable_r): New function.
1280
1281 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1282
1283 PR target/71379
1284 * config/s390/s390.c (s390_expand_builtin): Increase MAX_ARGS by
1285 one.
1286
1287 2016-06-13 Richard Biener <rguenther@suse.de>
1288
1289 PR middle-end/64516
1290 * fold-const.c (fold_unary_loc): Preserve alignment when
1291 folding a VIEW_CONVERT_EXPR into a MEM_REF.
1292
1293 2016-06-13 Martin Liska <mliska@suse.cz>
1294
1295 PR sanitizer/71458
1296 * toplev.c (process_options): Do not enable -fcheck-pointer-bounds
1297 w/ -fsanitize=bounds.
1298
1299 2016-06-12 Uros Bizjak <ubizjak@gmail.com>
1300
1301 * config/i386/i386.c (ix86_init_builtins): Calculate
1302 FLOAT128_FTYPE_CONST_STRING function type only once.
1303 * doc/extend.texi (x86 Built-in Functions): Update text, __float128
1304 built-in functions are available for x86-32 and x86-64 targets.
1305
1306 2016-06-12 Uros Bizjak <ubizjak@gmail.com>
1307
1308 PR target/71241
1309 * config/i386/i386.i386-builtin-types.def (CONST_STRING):
1310 New primitive type.
1311 (FLOAT128_FTYPE_CONST_STRING): New function type.
1312 * config/i386/i386.c (enum ix86_builtins) [IX86_BUILTIN_NANQ]: New.
1313 [IX86_BUILTIN_NANSQ]: Ditto.
1314 (ix86_fold_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
1315 (ix86_init_builtin_types): Declare const_string_type_node.
1316 (ix86_init_builtins): Add __builtin_nanq and __builtin_nansq
1317 builtin functions.
1318 (ix86_expand_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
1319 * doc/extend.texi (x86 Built-in Functions): Document
1320 __builtin_nanq and __builtin_nansq.
1321
1322 2016-06-11 Jiong Wang <jiong.wang@arm.com>
1323
1324 PR target/71061
1325 * config/arm/arm-protos.h (arm_attr_length_pop_multi): New declaration.
1326 * config/arm/arm.c (arm_attr_length_pop_multi): New function to return
1327 length for pop patterns.
1328 (arm_attr_length_push_multi): Update comments.
1329 * config/arm/arm.md (*load_multiple_with_writeback): Set "length"
1330 attribute.
1331 (*pop_multiple_with_writeback_and_return): Likewise.
1332 (*pop_multiple_with_return): Likewise.
1333
1334 2016-06-11 Segher Boessenkool <segher@kernel.crashing.org>
1335
1336 PR middle-end/71310
1337 * fold-const.c (optimize_bit_field_compare): Don't try to use
1338 word_mode unconditionally for reading the bit field, look at
1339 DECL_BIT_FIELD_REPRESENTATIVE instead.
1340
1341 2016-06-11 Kugan Vivekanandarajah <kuganv@linaro.org>
1342
1343 PR middle-end/71478
1344 * tree-ssa-reassoc.c (reassociate_bb): Remove (-1) from ops list for
1345 vector integer type.
1346
1347 2016-06-10 Jakub Jelinek <jakub@redhat.com>
1348
1349 PR middle-end/71494
1350 * tree-nested.c (convert_nonlocal_reference_stmt): For GIMPLE_GOTO
1351 without LABEL_DECL, set *handled_ops_p to false instead of true.
1352
1353 2016-06-10 Martin Sebor <msebor@redhat.com>
1354
1355 PR c/71392
1356 * builtin-attrs.def (ATTR_NOTHROW_NONNULL_LEAF_LIST): New macro.
1357 (ATTR_NOTHROW_NONNULL_TYPEGENERIC_LEAF): Same.
1358 * builtins.def (BUILT_IN_SADD_OVERFLOW, BUILT_IN_SADDL_OVERFLOW): Use
1359 them.
1360 (BUILT_IN_SADDLL_OVERFLOW, BUILT_IN_SSUB_OVERFLOW): Same.
1361 (BUILT_IN_SSUBL_OVERFLOW, BUILT_IN_SSUBLL_OVERFLOW): Same.
1362 (BUILT_IN_SMUL_OVERFLOW, BUILT_IN_SMULL_OVERFLOW): Same.
1363 (BUILT_IN_SMULLL_OVERFLOW, BUILT_IN_UADD_OVERFLOW): Same.
1364 (BUILT_IN_UADDL_OVERFLOW, BUILT_IN_UADDLL_OVERFLOW): Same.
1365 (BUILT_IN_USUB_OVERFLOW, BUILT_IN_USUBL_OVERFLOW): Same.
1366 (BUILT_IN_USUBLL_OVERFLOW, BUILT_IN_UMUL_OVERFLOW): Same.
1367 (BUILT_IN_UMULL_OVERFLOW, BUILT_IN_UMULLL_OVERFLOW): Same.
1368
1369 2016-06-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
1370
1371 * config/arm/arm.h (pool_vector_label,
1372 return_used_this_function): Remove.
1373
1374 2016-06-10 Jeff Law <law@redhat.com>
1375
1376 PR tree-optimization/71335
1377 * tree-ssa-threadbackward.c (profitable_jump_thread_path): Filter out
1378 zero length paths here.
1379 (convert_and_register_jump_thread_path): Remove hacks related to
1380 duplicated blocks in the jump thread path.
1381 (fsm_find_control_statement_thread_paths): Avoid putting the same
1382 block on the thread path twice, but ensure the thread path is
1383 unchanged from the caller's point of view.
1384
1385 2016-06-10 Jan Hubicka <hubicka@ucw.cz>
1386
1387 * predict.c (predict_loops): Remove PRED_LOOP_BRANCH.
1388 * predict.def (PRED_LOOP_BRANCH): Remove.
1389
1390 2016-06-10 David Malcolm <dmalcolm@redhat.com>
1391
1392 * Makefile.in (OBJS): Add ggc-tests.o.
1393 (GTFILES): Add ggc-tests.c.
1394 * ggc-tests.c: New file.
1395 * selftest-run-tests.c (selftest::run_tests): Call
1396 selftest::ggc_tests_c_tests.
1397 * selftest.h (selftest::ggc_tests_c_tests): New prototype.
1398
1399 2016-06-10 Alexander Monakov <amonakov@ispras.ru>
1400
1401 * match.pd (-1 / B < A): Use :c to avoid pattern duplication.
1402
1403 2016-06-10 Maxim Ostapenko <m.ostapenko@samsung.com>
1404
1405 PR sanitizer/71480
1406 * varasm.c (place_block_symbol): Adjust alignment for asan protected
1407 STRING_CSTs even if TREE_CONSTANT_POOL_ADDRESS_P.
1408
1409 2016-06-10 Jan Hubicka <hubicka@ucw.cz>
1410
1411 * profile.c: Include cfgloop.h.
1412 (branch_prob): Compute estimated number of iterations.
1413 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Do not
1414 recompute estimate number of iterations from profile.
1415
1416 2016-06-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
1417
1418 PR inline-asm/68843
1419 * reg-stack.c (check_asm_stack_operands): Explicit input arguments
1420 must be grouped on top of stack. Don't force early clobber
1421 on ordinary reg outputs.
1422
1423 2016-06-10 Richard Biener <rguenther@suse.de>
1424
1425 * targhooks.c (default_builtin_vectorization_cost): Adjust
1426 vec_construct cost.
1427
1428 2016-06-10 Richard Biener <rguenther@suse.de>
1429
1430 * gimple-fold.c (gimple_fold_builtin_memory_op): Make sure
1431 to fold the RHS to a constant if possible.
1432
1433 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
1434
1435 PR middle-end/71373
1436 * tree-nested.c (convert_nonlocal_omp_clauses)
1437 (convert_local_omp_clauses): Handle OMP_CLAUSE_ASYNC,
1438 OMP_CLAUSE_WAIT, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
1439 OMP_CLAUSE__CACHE_, OMP_CLAUSE_TILE.
1440
1441 * gimplify.c (gimplify_adjust_omp_clauses): Discard
1442 OMP_CLAUSE_TILE.
1443 * omp-low.c (scan_sharing_clauses): Don't expect OMP_CLAUSE_TILE.
1444
1445 * omp-low.c (scan_sharing_clauses): Don't expect
1446 OMP_CLAUSE__CACHE_.
1447
1448 2016-06-10 Alan Hayward <alan.hayward@arm.com>
1449
1450 PR tree-optimization/71407
1451 PR tree-optimization/71416
1452 * tree-vect-loop.c (vectorizable_live_operation): Use vectype for
1453 BIT_FIELD_REF type.
1454
1455 2016-06-10 Richard Biener <rguenther@suse.de>
1456
1457 PR middle-end/71477
1458 * cfgloop.c (alloc_loop): Initialize nb_iterations_likely_upper_bound.
1459
1460 2016-06-09 Eric Botcazou <ebotcazou@adacore.com>
1461
1462 * df-problems.c (df_note_bb_compute): Guard use of DF_INSN_INFO_GET.
1463
1464 2016-06-09 Vladimir Makarov <vmakarov@redhat.com>
1465 Jiong Wang <jiong.wang@arm.com>
1466
1467 PR rtl-optimization/70751
1468 * lra-constraints.c (process_alt_operands): Recognize Non-pseudo
1469 spilled into memory.
1470
1471 2016-06-09 Jonathan Yong <10walls@gmail.com>
1472
1473 Revert:
1474 2015-09-21 Jonathan Yong <10walls@gmail.com>
1475
1476 * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
1477 sysroot/usr/lib/32api for additional win32 libraries,
1478 fixes failing Cygwin bootstrapping.
1479
1480 2016-06-09 Marcin Baczyński <marbacz@gmail.com>
1481
1482 * diagnostic.h (diagnostic_line_cutoff, diagnostic_flush_buffer):
1483 Delete.
1484
1485 2016-06-09 David Malcolm <dmalcolm@redhat.com>
1486
1487 PR bootstrap/71471
1488 * pretty-print.c (pp_indent): Specify that %p is printed in a
1489 host-dependent manner.
1490 (test_pp_format): Remove the test for %p.
1491
1492 2016-06-09 Maciej W. Rozycki <macro@imgtec.com>
1493
1494 * config/mips/mips.c (mips_output_jump): Fix formatting.
1495
1496 2016-06-09 Richard Biener <rguenther@suse.de>
1497
1498 PR tree-optimization/71462
1499 * tree-ssa-loop-manip.c (find_uses_to_rename): Guard against
1500 removed blocks.
1501
1502 2016-06-09 Martin Liska <mliska@suse.cz>
1503
1504 * predict.c (dump_prediction): Add new argument.
1505 (enum predictor_reason): New enum.
1506 (struct predictor_hash): New struct.
1507 (predictor_hash::hash): New function.
1508 (predictor_hash::equal): Likewise.
1509 (not_removed_prediction_p): New function.
1510 (prune_predictions_for_bb): Likewise.
1511 (combine_predictions_for_bb): Prune predictions.
1512
1513 2016-06-09 Martin Liska <mliska@suse.cz>
1514
1515 * predict.c (filter_predictions): New function.
1516 (remove_predictions_associated_with_edge): Use the filter
1517 function.
1518 (equal_edge_p): New function.
1519
1520 2016-06-09 Stefan Bruens <stefan.bruens@rwth-aachen.de>
1521
1522 * doc/invoke.texi (ARM Options): Use lexicographical ordering.
1523 Correct usage of @samp vs @option, add @samp where appropriate.
1524 Add -march={armv6k,armv6z,arm6zk}, remove -march=ep9312.
1525 Add armv6s-m and document it, as it is no official ARM name.
1526
1527 2016-06-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1528
1529 * ifcvt.c (struct noce_if_info): Add transform_name field.
1530 (noce_try_move): Set if_info->transform_name to the function name.
1531 (noce_try_ifelse_collapse): Likewise.
1532 (noce_try_store_flag): Likewise.
1533 (noce_try_inverse_constants): Likewise.
1534 (noce_try_store_flag_constants): Likewise.
1535 (noce_try_addcc): Likewise.
1536 (noce_try_store_flag_mask): Likewise.
1537 (noce_try_cmove): Likewise.
1538 (noce_try_cmove_arith): Likewise.
1539 (noce_try_minmax): Likewise.
1540 (noce_try_abs): Likewise.
1541 (noce_try_sign_mask): Likewise.
1542 (noce_try_bitop): Likewise.
1543 (noce_convert_multiple_sets): Likewise.
1544 (noce_process_if_block): Print if_info->transform_name to
1545 dump_file if transformation succeeded.
1546
1547 2016-06-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1548
1549 * config/arm/cortex-a57.md (cortex_a57_alu):
1550 Handle csel type.
1551
1552 2016-06-08 Martin Sebor <msebor@redhat.com>
1553 Jakub Jelinek <jakub@redhat.com>
1554
1555 PR c++/70507
1556 PR c/68120
1557 * builtins.def (BUILT_IN_ADD_OVERFLOW_P, BUILT_IN_SUB_OVERFLOW_P,
1558 BUILT_IN_MUL_OVERFLOW_P): New builtins.
1559 * builtins.c: Include gimple-fold.h.
1560 (fold_builtin_arith_overflow): Handle
1561 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
1562 (fold_builtin_3): Likewise.
1563 * doc/extend.texi (Integer Overflow Builtins): Document
1564 __builtin_{add,sub,mul}_overflow_p.
1565
1566 2016-06-08 Jose E. Marchesi <jose.marchesi@oracle.com>
1567
1568 * config/sparc/driver-sparc.c (cpu_names): Fix the entry for the
1569 SPARC-M7 and add an entry for SPARC-S7 cpus (Sonoma).
1570
1571 2016-06-08 Alan Lawrence <alan.lawrence@arm.com>
1572
1573 * config/aarch64/aarch64.c (aarch64_function_arg_alignment):
1574 Rewrite, looking one level down for records and arrays.
1575
1576 2016-06-08 David Malcolm <dmalcolm@redhat.com>
1577
1578 * pretty-print.c: Include "selftest.h".
1579 (pp_format): Fix comment.
1580 (identifier_to_locale): Likewise.
1581 (selftest::test_basic_printing): New function.
1582 (selftest::assert_pp_format): New function.
1583 (selftest::test_pp_format): New function.
1584 (selftest::pretty_print_c_tests): New function.
1585 * selftest-run-tests.c (selftest::run_tests): Call
1586 selftest::pretty_print_c_tests.
1587 * selftest.h (pretty_print_c_tests): New declaration.
1588
1589 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
1590
1591 * invoke.texi (max-loop-headers-insns): Document.
1592 * params.def (PARAM_MAX_LOOP_HEADER_INSNS): New.
1593 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Update comment.
1594 (ch_base::copy_headers): Use PARAM_MAX_LOOP_HEADER_INSNS.
1595
1596 2016-06-08 Richard Biener <rguenther@suse.de>
1597
1598 * tree-vect-stmts.c (vectorizable_load): Remove restrictions
1599 on strided SLP loads and fall back to scalar loads in case
1600 we can't chunk them.
1601
1602 2016-06-08 Richard Biener <rguenther@suse.de>
1603
1604 PR tree-optimization/71452
1605 * tree-ssa.c (non_rewritable_lvalue_p): Make sure that the
1606 type used for the SSA rewrite has enough precision to cover
1607 the dynamic type of the location.
1608
1609 2016-06-08 Jakub Jelinek <jakub@redhat.com>
1610 Richard Biener <rguenther@suse.de>
1611
1612 PR c++/71448
1613 * fold-const.c (fold_comparison): Handle CONSTANT_CLASS_P (base0)
1614 the same as DECL_P (base0) for indirect_base0. Use equality_code
1615 in one further place.
1616
1617 2016-06-08 Richard Sandiford <richard.sandiford@arm.com>
1618
1619 * expmed.c (store_bit_field_1): Do not restrict a multiword op0
1620 to one word if the field is known to overlap other words.
1621 (extract_bit_field_1): Likewise.
1622 (store_split_bit_field): Remove compensating code.
1623 (extract_split_bit_field): Likewise.
1624
1625 2016-06-08 Bernd Schmidt <bschmidt@redhat.com>
1626
1627 PR debug/71432
1628 PR ada/71413
1629 * tree-ssa-strlen.c (handle_builtin_memcmp): Ignore debug insns.
1630
1631 2016-06-08 Jiong Wang <jiong.wang@arm.com>
1632
1633 * config/aarch64/aarch64-builtins.def (faddp): New builtins for modes in
1634 VDQF.
1635 * config/aarch64/aarch64-simd.md (aarch64_faddp<mode>): New.
1636 (arch64_addpv4sf): Delete.
1637 (reduc_plus_scal_v4sf): Use "gen_aarch64_faddpv4sf" instead of
1638 "gen_aarch64_addpv4sf".
1639 * config/aarch64/arm_neon.h (vpadd_f32): Remove inline assembly. Use
1640 builtin.
1641 (vpadds_f32): Likewise.
1642 (vpaddq_f32): Likewise.
1643 (vpaddq_f64): Likewise.
1644
1645 2016-06-08 Jiong Wang <jiong.wang@arm.com>
1646
1647 * config/aarch64/aarch64-builtins.def (fabd): New builtins for modes
1648 VALLF.
1649 * config/aarch64/aarch64-simd.md (fabd<mode>_3): Extend modes from VDQF
1650 to VALLF. Rename to "fabd<mode>3".
1651 "*fabd_scalar<mode>3): Delete.
1652 * config/aarch64/arm_neon.h (vabds_f32): Remove inline assembly.
1653 Use builtin.
1654 (vabdd_f64): Likewise.
1655 (vabd_f32): Likewise.
1656 (vabd_f64): Likewise.
1657 (vabdq_f32): Likewise.
1658 (vabdq_f64): Likewise.
1659
1660 2016-06-08 Jiong Wang <jiong.wang@arm.com>
1661
1662 * config/aarch64/aarch64-builtins.def (rsqrts): New builtins for modes
1663 VALLF.
1664 * config/aarch64/aarch64-simd.md (aarch64_rsqrts_<mode>3): Rename to
1665 "aarch64_rsqrts<mode>".
1666 * config/aarch64/aarch64.c (get_rsqrts_type): Update gen* name.
1667 * config/aarch64/arm_neon.h (vrsqrtss_f32): Remove inline assembly. Use
1668 builtin.
1669 (vrsqrtsd_f64): Likewise.
1670 (vrsqrts_f32): Likewise.
1671 (vrsqrts_f64): Likewise.
1672 (vrsqrtsq_f32): Likewise.
1673 (vrsqrtsq_f64): Likewise.
1674
1675 2016-06-08 Jiong Wang <jiong.wang@arm.com>
1676
1677 * config/aarch64/aarch64-builtins.def (rsqrte): New builtins for modes
1678 VALLF.
1679 * config/aarch64/aarch64-simd.md (aarch64_rsqrte_<mode>2): Rename to
1680 "aarch64_rsqrte<mode>".
1681 * config/aarch64/aarch64.c (get_rsqrte_type): Update gen* name.
1682 * config/aarch64/arm_neon.h (vrsqrts_f32): Remove inline assembly. Use
1683 builtin.
1684 (vrsqrted_f64): Likewise.
1685 (vrsqrte_f32): Likewise.
1686 (vrsqrte_f64): Likewise.
1687 (vrsqrteq_f32): Likewise.
1688 (vrsqrteq_f64): Likewise.
1689
1690 2016-06-08 Jiong Wang <jiong.wang@arm.com>
1691
1692 * config/aarch64/aarch64-builtins.def (scvtf): Register vector modes.
1693 (ucvtf): Likewise.
1694 (fcvtzs): Likewise.
1695 (fcvtzu): Likewise.
1696 * config/aarch64/aarch64-simd.md
1697 (<FCVT_F2FIXED:fcvt_fixed_insn><VDQF:mode>3): New.
1698 (<FCVT_FIXED2F:fcvt_fixed_insn><VDQ_SDI:mode>3): Likewise.
1699 * config/aarch64/arm_neon.h (vcvt_n_f32_s32): Remove inline assembly.
1700 Use builtin.
1701 (vcvt_n_f32_u32): Likewise.
1702 (vcvt_n_s32_f32): Likewise.
1703 (vcvt_n_u32_f32): Likewise.
1704 (vcvtq_n_f32_s32): Likewise.
1705 (vcvtq_n_f32_u32): Likewise.
1706 (vcvtq_n_f64_s64): Likewise.
1707 (vcvtq_n_f64_u64): Likewise.
1708 (vcvtq_n_s32_f32): Likewise.
1709 (vcvtq_n_s64_f64): Likewise.
1710 (vcvtq_n_u32_f32): Likewise.
1711 (vcvtq_n_u64_f64): Likewise.
1712 * config/aarch64/iterators.md (VDQ_SDI): New mode iterator.
1713 (VSDQ_SDI): Likewise.
1714 (fcvt_target): Support V4DI, V4SI and V2SI.
1715 (FCVT_TARGET): Likewise.
1716
1717 2016-06-08 Jiong Wang <jiong.wang@arm.com>
1718
1719 * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New
1720 (TYPES_BINOP_SUS): Likewise.
1721 (aarch64_simd_builtin_data): Update include file name.
1722 (aarch64_builtins): Likewise.
1723 * config/aarch64/aarch64-simd-builtins.def (scvtf): New entries
1724 for conversion between scalar float-point and fixed-point.
1725 (ucvtf): Likewise.
1726 (fcvtzs): Likewise.
1727 (fcvtzu): Likewise.
1728 * config/aarch64/aarch64.md
1729 (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3: New
1730 pattern for conversion between scalar float to fixed-pointer.
1731 (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>: Likewise.
1732 (UNSPEC_FCVTZS): New UNSPEC enumeration.
1733 (UNSPEC_FCVTZU): Likewise.
1734 (UNSPEC_SCVTF): Likewise.
1735 (UNSPEC_UCVTF): Likewise.
1736 * config/aarch64/arm_neon.h (vcvtd_n_f64_s64): Remove inline assembly.
1737 Use builtin.
1738 (vcvtd_n_f64_u64): Likewise.
1739 (vcvtd_n_s64_f64): Likewise.
1740 (vcvtd_n_u64_f64): Likewise.
1741 (vcvtd_n_f32_s32): Likewise.
1742 (vcvts_n_f32_u32): Likewise.
1743 (vcvtd_n_s32_f32): Likewise.
1744 (vcvts_n_u32_f32): Likewise.
1745 * config/aarch64/iterators.md (fcvt_target): Support integer to float
1746 mapping.
1747 (FCVT_TARGET): Likewise.
1748 (FCVT_FIXED2F): New iterator.
1749 (FCVT_F2FIXED): Likewise.
1750 (fcvt_fixed_insn): New define_int_attr.
1751
1752 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
1753
1754 * predict.c (pass_strip_predict_hints::execute): Cleanup CFG if
1755 some statements was removed.
1756
1757 2016-06-08 Alan Hayward <alan.hayward@arm.com>
1758
1759 * tree-vect-data-refs.c (vect_analyze_data_refs): Remove debug newline.
1760 * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): likewise.
1761 (vect_can_advance_ivs_p): likewise.
1762 (vect_update_ivs_after_vectorizer): likewise.
1763 * tree-vect-loop.c (vect_determine_vectorization_factor): likewise.
1764 (vect_analyze_scalar_cycles_1): likewise.
1765 (vect_analyze_loop_operations): likewise.
1766 (report_vect_op): likewise.
1767 (vect_is_slp_reduction): likewise.
1768 (vect_is_simple_reduction): likewise.
1769 (get_initial_def_for_induction): likewise.
1770 (vect_transform_loop): likewise.
1771 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): likewise.
1772 (vect_recog_sad_pattern): likewise.
1773 (vect_recog_widen_sum_pattern): likewise.
1774 (vect_recog_widening_pattern): likewise.
1775 (vect_recog_divmod_pattern): likewise.
1776 * tree-vect-slp.c (vect-build-slp_tree_1): likewise.
1777 (vect_analyze_slp_instance): likewise.
1778 (vect_transform_slp_perm_load): likewise.
1779 (vect_schedule_slp_instance): likewise.
1780
1781 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
1782
1783 * predict.c (predict_iv_comparison): Mention that heuristics is broken.
1784 (return_prediction): PRED_CONST_RETURN predict return as not taken.
1785 * predict.def (PRED_CONTINUE): Change hitrate 50->67
1786 (PRED_LOOP_BRANCH): Document predictor as broken.
1787 (PRED_LOOP_EXIT): Change hitrate 91->92.
1788 (PRED_LOOP_EXTRA_EXIT): Change hitrate 91->83.
1789 (PRED_POINTER, PRED_TREE_POINTER): Change hitrate 85->70.
1790 (PRED_OPCODE_POSITIVE): Change hitrate 79->64.
1791 (PRED_OPCODE_NONEQUAL): Change hitrate 91->66.
1792 (PRED_TREE_OPCODE_POSITIVE): Change hitrate 73->64
1793 (PRED_TREE_OPCODE_NONEQUAL): Chnage hitrate 72->66
1794 (PRED_CALL): Chane hitrate 71->67.
1795 (PRED_TREE_EARLY_RETURN): Document issues, change hitrate 61->54.
1796 (PRED_GOTO): Document as unused right now.
1797 (PRED_CONST_RETURN): Change hitrate 67->69
1798 (PRED_NEGATIVE_RETURN): Change hitrate 96->98
1799 (PRED_NULL_RETURN): Change hitrate 91->90.
1800 (PRED_LOOP_IV_COMPARE_GUESS): Change hitrate to 98.
1801 (PRED_FORTRAN_FAIL_ALLOC): Change hitrate to 62; document issues.
1802 (PRED_FORTRAN_SIZE_ZERO): Change hitrate to 99.
1803
1804 2016-06-07 Bill Seurer <seurer@linux.vnet.ibm.com>
1805
1806 * config/rs6000/altivec.h: Add __builtin_vec_mul.
1807 * config/rs6000/rs6000-builtin.def (vec_mul): Change vec_mul to a
1808 special case Altivec builtin.
1809 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
1810 VSX_BUILTIN_VEC_MUL (replaced with special case code).
1811 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
1812 code for ALTIVEC_BUILTIN_VEC_MUL.
1813 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
1814 for __builtin_vec_mul.
1815
1816 2016-06-07 Peter Bergner <bergner@vnet.ibm.com>
1817
1818 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mhtm and
1819 -mno-htm.
1820
1821 2016-06-07 David Malcolm <dmalcolm@redhat.com>
1822
1823 * spellcheck.c (selftest::test_find_closest_string): New function.
1824 (spellcheck_c_tests): Call the above.
1825
1826 2016-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1827
1828 * simplify-rtx.c (simplify_cond_clz_ctz): Delete 'mode' local variable.
1829
1830 2016-06-07 Jakub Jelinek <jakub@redhat.com>
1831
1832 * config/i386/sse.md (avx_vec_concat<mode>): Add v=v,vm and
1833 Yv=Yv,C alternatives.
1834
1835 2016-06-07 Richard Biener <rguenther@suse.de>
1836
1837 PR c/61564
1838 * common.opt (ffast-math): Make Optimization.
1839
1840 2016-06-07 Simon Dardis <simon.dardis@imgtec.com>
1841 Prachi Godbole <prachi.godbole@imgtec.com>
1842
1843 * config/mips/p5600.md (p5600_fpu_fadd): Remove checking for
1844 `fabs' and `fneg' type attributes.
1845 (p5600_fpu_fabs): Add `fmove' to the comment.
1846
1847 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
1848
1849 * gimple.c: Include builtins.h
1850 (gimple_inexpensive_call_p): New function.
1851 * gimple.h (gimple_inexpensive_call_p): Declare.
1852 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use it.
1853 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise;
1854 fix formatting.
1855
1856 2016-06-07 Paolo Carlini <paolo.carlini@oracle.com>
1857
1858 * diagnostic.c (diagnostic_impl, diagnostic_n_impl): New.
1859 (inform, inform_at_rich_loc, inform_n, warning, warning_at,
1860 warning_at_rich_loc, warning_n, pedwarn, permerror,
1861 permerror_at_rich_loc, error, error_n, error_at, error_at_rich_loc,
1862 sorry, fatal_error, internal_error, internal_error_no_backtrace):
1863 Use the above.
1864
1865 2016-06-07 Richard Biener <rguenther@suse.de>
1866
1867 PR tree-optimization/71428
1868 * tree-ssa-math-opts.c (perform_symbolic_merge): Properly distinguish
1869 BIT_FIELD_REF op vs. load.
1870
1871 2016-06-07 Richard Biener <rguenther@suse.de>
1872
1873 PR middle-end/71423
1874 * match.pd ((X | ~Y) -> Y <= X): Properly invert the comparison
1875 for signed ops.
1876
1877 2016-06-06 John David Anglin <danglin@gcc.gnu.org>
1878
1879 * config/pa/pa.md (call): Generate indirect long calls to non-local
1880 functions on TARGET_64BIT.
1881 (call_value): Likewise.
1882
1883 2016-06-06 John David Anglin <danglin@gcc.gnu.org>
1884
1885 * config/pa/pa.md (call_val_reg_64bit): Remove "reg: DI " clobber from
1886 pattern and subsequent splitters.
1887 (call_val_reg_64bit_post_reload): Likewise.
1888
1889 2016-06-07 Kugan Vivekanandarajah <kuganv@linaro.org>
1890
1891 PR middle-end/71408
1892 * tree-ssa-reassoc.c (zero_one_operation): Fix NEGATE_EXPR operand for
1893 propagate_op_to_single_use.
1894
1895 2016-06-07 Kugan Vivekanandarajah <kuganv@linaro.org>
1896
1897 PR middle-end/71281
1898 * tree-ssa-reassoc.c (reassociate_bb): Set uid for negate stmt.
1899
1900 2016-06-07 Uros Bizjak <ubizjak@gmail.com>
1901
1902 * config/i386/i386.h (enum ix86_enitity): Add X86_DIRFLAG.
1903 (enum x86_dirflag_state): New enum.
1904 (NUM_MODES_FOR_MODE_SWITCHING): Add X86_DIRFLAG_ANY.
1905 (machine_function): Remove needs_cld.
1906 (ix86_current_function_needs_cld): Remove.
1907 * config/i386/i386.c (ix86_set_func_type): Set
1908 ix86_optimize_mode_switching[X86_DIRFLAG] to 1.
1909 (ix86_expand_prologue): Do not emit CLD here.
1910 (ix86_dirflag_mode_needed): New function.
1911 (ix86_dirflag_mode_entry): Ditto.
1912 (ix86_mode_needed): Handle X86_DIRFLAG entity.
1913 (ix86_mode_after): Ditto.
1914 (ix86_mode_entry): Ditto.
1915 (ix86_mode_exit): Ditto.
1916 (ix86_emit_mode_set): Ditto.
1917 * config/i386/i386.md (strmov_singleop): Set
1918 ix86_optimize_mode_switching[X86_DIRFLAG] to 1 for TARGET_CLD.
1919 Do not set ix86_current_function_needs_cld.
1920 (rep_mov): Ditto.
1921 (strset_singleop): Ditto.
1922 (rep_stos): Ditto.
1923 (cmpstrnqi_nz_1): Ditto.
1924 (cmpstrnqi_1): Ditto.
1925 (strlenqi_1): Ditto.
1926
1927 2016-06-06 Jakub Jelinek <jakub@redhat.com>
1928
1929 PR tree-optimization/71259
1930 * tree-vect-slp.c (vect_get_constant_vectors): For
1931 VECTOR_BOOLEAN_TYPE_P, return all ones constant instead of
1932 one for constant op, and use COND_EXPR for non-constant.
1933
1934 2016-06-06 David Malcolm <dmalcolm@redhat.com>
1935
1936 * Makefile.in (OBJS): Add function-tests.o,
1937 hash-map-tests.o, hash-set-tests.o, rtl-tests.o,
1938 selftest-run-tests.o.
1939 (OBJS-libcommon): Add selftest.o.
1940 (OBJS-libcommon-target): Add selftest.o.
1941 (all.internal): Add "selftest".
1942 (all.cross): Likewise.
1943 (selftest): New phony target.
1944 (s-selftest): New target.
1945 (selftest-gdb): New phony target.
1946 (COLLECT2_OBJS): Add selftest.o.
1947 * bitmap.c: Include "selftest.h".
1948 (selftest::test_gc_alloc): New function.
1949 (selftest::test_set_range): New function.
1950 (selftest::test_clear_bit_in_middle): New function.
1951 (selftest::test_copying): New function.
1952 (selftest::test_bitmap_single_bit_set_p): New function.
1953 (selftest::bitmap_c_tests): New function.
1954 * common.opt (fself-test): New.
1955 * diagnostic-show-locus.c: Include "selftest.h".
1956 (make_range): New function.
1957 (test_range_contains_point_for_single_point): New function.
1958 (test_range_contains_point_for_single_line): New function.
1959 (test_range_contains_point_for_multiple_lines): New function.
1960 (assert_eq): New function.
1961 (test_get_line_width_without_trailing_whitespace): New function.
1962 (selftest::diagnostic_show_locus_c_tests): New function.
1963 * et-forest.c: Include "selftest.h".
1964 (selftest::test_single_node): New function.
1965 (selftest::test_simple_tree): New function.
1966 (selftest::test_disconnected_nodes): New function.
1967 (selftest::et_forest_c_tests): New function.
1968 * fold-const.c: Include "selftest.h".
1969 (selftest::assert_binop_folds_to_const): New function.
1970 (selftest::assert_binop_folds_to_nonlvalue): New function.
1971 (selftest::test_arithmetic_folding): New function.
1972 (selftest::fold_const_c_tests): New function.
1973 * function-tests.c: New file.
1974 * gimple.c: Include "selftest.h".
1975 Include "gimple-pretty-print.h".
1976 (selftest::verify_gimple_pp): New function.
1977 (selftest::test_assign_single): New function.
1978 (selftest::test_assign_binop): New function.
1979 (selftest::test_nop_stmt): New function.
1980 (selftest::test_return_stmt): New function.
1981 (selftest::test_return_without_value): New function.
1982 (selftest::gimple_c_tests): New function.
1983 * hash-map-tests.c: New file.
1984 * hash-set-tests.c: New file.
1985 * input.c: Include "selftest.h".
1986 (selftest::assert_loceq): New function.
1987 (selftest::test_accessing_ordinary_linemaps): New function.
1988 (selftest::test_unknown_location): New function.
1989 (selftest::test_builtins): New function.
1990 (selftest::test_reading_source_line): New function.
1991 (selftest::input_c_tests): New function.
1992 * rtl-tests.c: New file.
1993 * selftest-run-tests.c: New file.
1994 * selftest.c: New file.
1995 * selftest.h: New file.
1996 * spellcheck.c: Include "selftest.h".
1997 (selftest::levenshtein_distance_unit_test_oneway): New function,
1998 adapted from testsuite/gcc.dg/plugin/levenshtein_plugin.c.
1999 (selftest::levenshtein_distance_unit_test): Likewise.
2000 (selftest::spellcheck_c_tests): Likewise.
2001 * toplev.c: Include selftest.h.
2002 (toplev::run_self_tests): New.
2003 (toplev::main): Handle -fself-test.
2004 * toplev.h (toplev::run_self_tests): New.
2005 * tree.c: Include "selftest.h".
2006 (selftest::test_integer_constants): New function.
2007 (selftest::test_identifiers): New function.
2008 (selftest::test_labels): New function.
2009 (selftest::tree_c_tests): New function.
2010 * tree-cfg.c: Include "selftest.h".
2011 (selftest::push_fndecl): New function.
2012 (selftest::test_linear_chain): New function.
2013 (selftest::test_diamond): New function.
2014 (selftest::test_fully_connected): New function.
2015 (selftest::tree_cfg_c_tests): New function.
2016 * vec.c: Include "selftest.h".
2017 (selftest::safe_push_range): New function.
2018 (selftest::test_quick_push): New function.
2019 (selftest::test_safe_push): New function.
2020 (selftest::test_truncate): New function.
2021 (selftest::test_safe_grow_cleared): New function.
2022 (selftest::test_pop): New function.
2023 (selftest::test_safe_insert): New function.
2024 (selftest::test_ordered_remove): New function.
2025 (selftest::test_unordered_remove): New function.
2026 (selftest::test_block_remove): New function.
2027 (selftest::reverse_cmp): New function.
2028 (selftest::test_qsort): New function.
2029 (selftest::vec_c_tests): New function.c.
2030 * wide-int.cc: Include selftest.h and wide-int-print.h.
2031 (selftest::from_int <wide_int>): New function.
2032 (selftest::from_int <offset_int>): New function.
2033 (selftest::from_int <widest_int>): New function.
2034 (selftest::assert_deceq): New function.
2035 (selftest::assert_hexeq): New function.
2036 (selftest::test_printing <VALUE_TYPE>): New function template.
2037 (selftest::test_ops <VALUE_TYPE>): New function template.
2038 (selftest::test_comparisons <VALUE_TYPE>): New function template.
2039 (selftest::run_all_wide_int_tests <VALUE_TYPE>): New function
2040 template.
2041 (selftest::wide_int_cc_tests): New function.
2042
2043 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2044
2045 PR middle-end/37780
2046 * ifcvt.c (noce_try_ifelse_collapse): New function.
2047 Declare prototype.
2048 (noce_process_if_block): Call noce_try_ifelse_collapse.
2049 * simplify-rtx.c (simplify_cond_clz_ctz): New function.
2050 (simplify_ternary_operation): Use the above to simplify
2051 conditional CLZ/CTZ expressions.
2052
2053 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2054
2055 PR middle-end/37780
2056 * config/aarch64/aarch64.md (ctz<mode>2): Convert to
2057 define_insn_and_split.
2058
2059 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2060
2061 PR middle-end/37780
2062 * config/arm/arm.md (ctzsi2): Convert to define_insn_and_split.
2063
2064 2016-06-06 Bernd Edlinger <bernd.edlinger@hotmail.de>
2065
2066 PR c/24414
2067 * cfgexpand.c (expand_asm_loc): Remove handling for ADDR_EXPR.
2068 Implicitly clobber memory for basic asm with non-empty assembler
2069 string. Use targetm.md_asm_adjust also here.
2070 * compare-elim.c (arithmetic_flags_clobber_p): Use asm_noperands here.
2071 * final.c (final_scan_insn): Handle basic asm in PARALLEL block.
2072 * gimple.c (gimple_asm_clobbers_memory_p): Handle basic asm with
2073 non-empty assembler string.
2074 * ira.c (compute_regs_asm_clobbered): Use asm_noperands here.
2075 * recog.c (asm_noperands): Handle basic asm in PARALLEL block.
2076 (decode_asm_operands): Handle basic asm in PARALLEL block.
2077 (extract_insn): Handle basic asm in PARALLEL block.
2078 * doc/extend.texi: Mention new behavior of basic asm.
2079 * config/ia64/ia64 (rtx_needs_barrier): Handle ASM_INPUT here.
2080 * config/pa/pa.c (branch_to_delay_slot_p, branch_needs_nop_p,
2081 branch_needs_nop_p): Use asm_noperands.
2082
2083 2016-06-06 Jose E. Marchesi <jose.marchesi@oracle.com>
2084
2085 * config/sparc/sparc.md (cpu): Add niagara7 cpu type.
2086 Include the M7 SPARC DFA scheduler.
2087 New attribute v3pipe.
2088 Annotate insns with v3pipe where appropriate.
2089 Define cpu_feature vis4.
2090 Add lzd instruction type and set it on clzdi_sp64 and clzsi_sp64.
2091 Add (V8QI "8") to vbits.
2092 Add insns {add,sub}v8qi3
2093 Add insns ss{add,sub}v8qi3
2094 Add insns us{add,sub}{v8qi,v4hi}3
2095 Add insns {min,max}{v8qi,v4hi,v2si}3
2096 Add insns {minu,maxu}{v8qi,v4hi,v2si}3
2097 Add insns fpcmp{le,gt,ule,ug,ule,ugt}{8,16,32}_vis.
2098 * config/sparc/niagara4.md: Add a comment explaining the
2099 discrepancy between the documented latenty numbers and the
2100 implemented ones.
2101 * config/sparc/niagara7.md: New file.
2102 * configure.ac (HAVE_AS_SPARC5_VIS4): Define if the assembler
2103 supports SPARC5 and VIS 4.0 instructions.
2104 * configure: Regenerate.
2105 * config.in: Likewise.
2106 * config.gcc: niagara7 is a supported cpu in sparc*-*-* targets.
2107 * config/sparc/sol2.h (ASM_CPU32_DEFAUILT_SPEC): Set for
2108 TARGET_CPU_niagara7.
2109 (ASM_CPU64_DEFAULT_SPEC): Likewise.
2110 (CPP_CPU_SPEC): Handle niagara7.
2111 (ASM_CPU_SPEC): Likewise.
2112 * config/sparc/sparc-opts.h (processor_type): Add
2113 PROCESSOR_NIAGARA7.
2114 (mvis4): New option.
2115 * config/sparc/sparc.h (TARGET_CPU_niagara7): Define.
2116 (AS_NIAGARA7_FLAG): Define.
2117 (ASM_CPU64_DEFAULT_SPEC): Set for niagara7.
2118 (CPP_CPU64_DEFAULT_SPEC): Likewise.
2119 (CPP_CPU_SPEC): Handle niagara7.
2120 (ASM_CPU_SPEC): Likewise.
2121 * config/sparc/sparc.c (niagara7_costs): Define.
2122 (sparc_option_override): Handle niagara7 and adjust cache-related
2123 parameters with better values for niagara cpus. Also support VIS4.
2124 (sparc32_initialize_trampoline): Likewise.
2125 (sparc_use_sched_lookahead): Likewise.
2126 (sparc_issue_rate): Likewise.
2127 (sparc_register_move_cost): Likewise.
2128 (dump_target_flag_bits): Support VIS4.
2129 (sparc_vis_init_builtins): Likewise.
2130 (sparc_builtins): Likewise.
2131 * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__ for
2132 VIS4 4.0.
2133 * config/sparc/driver-sparc.c (cpu_names): Add SPARC-M7 and
2134 UltraSparc M7.
2135 * config/sparc/sparc.opt (sparc_processor_type): New value
2136 niagara7.
2137 * config/sparc/visintrin.h (__attribute__): Prototypes for the
2138 VIS4 builtins.
2139 * doc/invoke.texi (SPARC Options): Document -mcpu=niagara7 and
2140 -mvis4.
2141 * doc/extend.texi (SPARC VIS Built-in Functions): Document the
2142 VIS4 builtins.
2143
2144 2016-06-06 Jonathan Wakely <jwakely@redhat.com>
2145
2146 * doc/sourcebuild.texi (Directives): Remove extra closing braces.
2147
2148 2016-06-06 Richard Biener <rguenther@suse.de>
2149
2150 PR tree-optimization/71398
2151 * tree-ssa-loop-ivcanon.c (unloop_loops): First unloop, then
2152 remove edges.
2153
2154 2016-06-05 James Bowman <james.bowman@ftdichip.com>
2155
2156 * config/ft32/ft32.c (ft32_setup_incoming_varargs,
2157 ft32_expand_prolog, ft32_expand_epilogue):
2158 Handle pretend_args.
2159 * config/ft32/ft32.h: Remove OUTGOING_REG_PARM_STACK_SPACE.
2160 * config/ft32/ft32.md: Add pretend_returner.
2161
2162 2016-06-06 Uros Bizjak <ubizjak@gmail.com>
2163
2164 PR target/71389
2165 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
2166 Copy op1 RTX to avoid invalid sharing.
2167 (ix86_expand_vector_move_misalign): Ditto.
2168
2169 2016-06-05 John David Anglin <danglin@gcc.gnu.org>
2170
2171 * expr.c (move_by_pieces_d::generate): Mark mode parameter with
2172 ATTRIBUTE_UNUSED.
2173
2174 2016-06-05 Jan Hubicka <hubicka@ucw.cz>
2175
2176 * predict.c (predicted_by_loop_heuristics_p): New function.
2177 (predict_iv_comparison): Use it.
2178 (predict_loops): Walk from innermost loops; do not predict edges
2179 leaving multiple loops multiple times; implement
2180 PRED_LOOP_ITERATIONS_MAX heuristics.
2181 * predict.def (PRED_LOOP_ITERATIONS_MAX): New predictor.
2182
2183 2016-06-05 Jan Hubicka <hubicka@ucw.cz>
2184
2185 * cfg.c (check_bb_profile): Do not report mismatched profiles when
2186 only edges out of BB are EH edges.
2187
2188 2016-06-04 Martin Sebor <msebor@redhat.com>
2189 Marcin Baczyński <marbacz@gmail.com>
2190
2191 PR c/48116
2192 * doc/invoke.texi (-Wreturn-type): Mention not warning on return with
2193 a void expression in a void function.
2194
2195 2016-06-03 Jan Hubicka <hubicka@ucw.cz>
2196
2197 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Do not check
2198 aux; dump reasons of decisions.
2199 (should_duplicate_loop_header_p): Likewise.
2200 (do_while_loop_p): Likewise.
2201 (ch_base::copy_headers): Dump asi num insns duplicated.
2202
2203 2016-06-04 Jakub Jelinek <jakub@redhat.com>
2204
2205 PR tree-optimization/71405
2206 * tree-ssa.c (execute_update_addresses_taken): For clobber with
2207 incompatible type, build a new clobber with the right type instead
2208 of building a VIEW_CONVERT_EXPR around it.
2209
2210 2016-06-04 Oleg Endo <olegendo@gcc.gnu.org>
2211
2212 PR tree-optimization/52171
2213 * config/sh/sh.c (sh_use_by_pieces_infrastructure_p): Use
2214 by_pieces_ninsns instead of move_by_pieces_ninsns.
2215
2216 2016-06-04 Oleg Endo <olegendo@gcc.gnu.org>
2217
2218 * config/sh/sh.c (sh_print_operand_address): Don't use hardcoded 'r0'
2219 for reg+reg addressing mode.
2220
2221 2016-06-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2222
2223 * rs6000-c.c (c/c-tree.h): Add #include.
2224 (altivec_resolve_overloaded_builtin): Handle ARRAY_TYPE arguments
2225 in C++ when found in the base position of vec_ld or vec_st.
2226
2227 2016-06-03 Jan Hubicka <hubicka@ucw.cz>
2228
2229 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Avoid
2230 use of profile unless profile status is PROFILE_READ.
2231 * profile.c (compute_branch_probabilities): Set profile status
2232 only after reporting predictor hitrates.
2233
2234 2016-06-03 Joseph Myers <joseph@codesourcery.com>
2235
2236 PR target/71276
2237 PR target/71277
2238 * common.opt (ffp-int-builtin-inexact): New option.
2239 * doc/invoke.texi (-fno-fp-int-builtin-inexact): Document.
2240 * doc/md.texi (floor@var{m}2, btrunc@var{m}2, round@var{m}2)
2241 (ceil@var{m}2): Document dependence on this option.
2242 * ipa-inline-transform.c (inline_call): Handle
2243 flag_fp_int_builtin_inexact.
2244 * ipa-inline.c (can_inline_edge_p): Likewise.
2245 * config/i386/i386.md (rintxf2): Do not test
2246 flag_unsafe_math_optimizations.
2247 (rint<mode>2_frndint): New define_insn.
2248 (rint<mode>2): Do not test flag_unsafe_math_optimizations for 387
2249 or !flag_trapping_math for SSE. Just use gen_rint<mode>2_frndint
2250 for 387 instead of extending and truncating.
2251 (frndintxf2_<rounding>): Test flag_fp_int_builtin_inexact ||
2252 !flag_trapping_math instead of flag_unsafe_math_optimizations.
2253 Change to frndint<mode>2_<rounding>.
2254 (frndintxf2_<rounding>_i387): Likewise. Change to
2255 frndint<mode>2_<rounding>_i387.
2256 (<rounding_insn>xf2): Likewise.
2257 (<rounding_insn><mode>2): Test flag_fp_int_builtin_inexact ||
2258 !flag_trapping_math instead of flag_unsafe_math_optimizations for
2259 x87. Test TARGET_ROUND || !flag_trapping_math ||
2260 flag_fp_int_builtin_inexact instead of !flag_trapping_math for
2261 SSE. Use ROUND_NO_EXC in constant operand of
2262 gen_sse4_1_round<mode>2. Just use gen_frndint<mode>2_<rounding>
2263 for 387 instead of extending and truncating.
2264
2265 2016-06-03 H.J. Lu <hongjiu.lu@intel.com>
2266 Julia Koval <julia.koval@intel.com>
2267
2268 PR target/66960
2269 PR target/67630
2270 PR target/67634
2271 PR target/67841
2272 PR target/68037
2273 PR target/68618
2274 PR target/68661
2275 PR target/69575
2276 PR target/69596
2277 PR target/69734
2278 * config/i386/i386-protos.h (ix86_epilogue_uses): New prototype.
2279 * config/i386/i386.c (ix86_conditional_register_usage): Preserve
2280 all registers, except for function return registers if there are
2281 no caller-saved registers.
2282 (ix86_set_func_type): New function.
2283 (ix86_set_current_function): Call ix86_set_func_type to set
2284 no_caller_saved_registers and func_type. Call reinit_regs if
2285 caller-saved registers are changed. Don't allow MPX, SSE, MMX
2286 nor x87 instructions in interrupt handler nor function with
2287 no_caller_saved_registers attribute.
2288 (ix86_function_ok_for_sibcall): Return false if there are no
2289 caller-saved registers.
2290 (type_natural_mode): Don't warn ABI change for MMX in interrupt
2291 handler.
2292 (ix86_function_arg_advance): Skip for callee in interrupt handler.
2293 (ix86_function_arg): Return special arguments in interrupt handler.
2294 (ix86_promote_function_mode): Promote pointer to word_mode only
2295 for normal functions.
2296 (ix86_can_use_return_insn_p): Don't use `ret' instruction in
2297 interrupt handler.
2298 (ix86_epilogue_uses): New function.
2299 (ix86_hard_regno_scratch_ok): Likewise.
2300 (ix86_save_reg): Preserve all registers in interrupt handler
2301 after reload. Preserve all registers, except for function return
2302 registers, if there are no caller-saved registers after reload.
2303 (find_drap_reg): Always use callee-saved register if there are
2304 no caller-saved registers.
2305 (ix86_minimum_incoming_stack_boundary): Return MIN_STACK_BOUNDARY
2306 for interrupt handler.
2307 (ix86_expand_prologue): Don't allow DRAP in interrupt handler.
2308 Emit cld instruction if stringops are used in interrupt handler
2309 or interrupt handler isn't a leaf function.
2310 (ix86_expand_epilogue): Generate interrupt return for interrupt
2311 handler and pop the 'ERROR_CODE' off the stack before interrupt
2312 return in exception handler.
2313 (ix86_expand_call): Disallow calling interrupt handler directly.
2314 If there are no caller-saved registers, mark all registers that
2315 are clobbered by the call which returns as clobbered.
2316 (ix86_handle_no_caller_saved_registers_attribute): New function.
2317 (ix86_handle_interrupt_attribute): Likewise.
2318 (ix86_attribute_table): Add interrupt and no_caller_saved_registers
2319 attributes.
2320 (TARGET_HARD_REGNO_SCRATCH_OK): Likewise.
2321 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use argument
2322 accumulation in interrupt function if stack may be realigned to
2323 avoid DRAP.
2324 (EPILOGUE_USES): New.
2325 (function_type): New enum.
2326 (machine_function): Add func_type and no_caller_saved_registers.
2327 * config/i386/i386.md (UNSPEC_INTERRUPT_RETURN): New.
2328 (interrupt_return): New pattern.
2329 * doc/extend.texi: Document x86 interrupt and
2330 no_caller_saved_registers attributes.
2331
2332 2016-06-03 Bernd Schmidt <bschmidt@redhat.com>
2333
2334 PR tree-optimization/52171
2335 * builtins.c (expand_cmpstrn_or_cmpmem): Delete, moved elsewhere.
2336 (expand_builtin_memcmp): New arg RESULT_EQ. All callers changed.
2337 Look for constant strings. Move some code to emit_block_cmp_hints
2338 and use it.
2339 * builtins.def (BUILT_IN_MEMCMP_EQ): New.
2340 * defaults.h (COMPARE_MAX_PIECES): New macro.
2341 * expr.c (move_by_pieces_d, store_by_pieces_d): Remove old structs.
2342 (move_by_pieces_1, store_by_pieces_1, store_by_pieces_2): Remvoe.
2343 (clear_by_pieces_1): Don't declare. Move definition before use.
2344 (can_do_by_pieces): New static function.
2345 (can_move_by_pieces): Use it. Return bool.
2346 (by_pieces_ninsns): Renamed from move_by_pieces_ninsns. New arg
2347 OP. All callers changed. Handle COMPARE_BY_PIECES.
2348 (class pieces_addr); New.
2349 (pieces_addr::pieces_addr, pieces_addr::decide_autoinc,
2350 pieces_addr::adjust, pieces_addr::increment_address,
2351 pieces_addr::maybe_predec, pieces_addr::maybe_postinc): New member
2352 functions for it.
2353 (class op_by_pieces_d): New.
2354 (op_by_pieces_d::op_by_pieces_d, op_by_pieces_d::run): New member
2355 functions for it.
2356 (class move_by_pieces_d, class compare_by_pieces_d,
2357 class store_by_pieces_d): New subclasses of op_by_pieces_d.
2358 (move_by_pieces_d::prepare_mode, move_by_pieces_d::generate,
2359 move_by_pieces_d::finish_endp, store_by_pieces_d::prepare_mode,
2360 store_by_pieces_d::generate, store_by_pieces_d::finish_endp,
2361 compare_by_pieces_d::generate, compare_by_pieces_d::prepare_mode,
2362 compare_by_pieces_d::finish_mode): New member functions.
2363 (compare_by_pieces, emit_block_cmp_via_cmpmem): New static
2364 functions.
2365 (expand_cmpstrn_or_cmpmem): Moved here from builtins.c.
2366 (emit_block_cmp_hints): New function.
2367 (move_by_pieces, store_by_pieces, clear_by_pieces): Rewrite to just
2368 use the newly defined classes.
2369 * expr.h (by_pieces_constfn): New typedef.
2370 (can_store_by_pieces, store_by_pieces): Use it in arg declarations.
2371 (emit_block_cmp_hints, expand_cmpstrn_or_cmpmem): Declare.
2372 (move_by_pieces_ninsns): Don't declare.
2373 (can_move_by_pieces): Change return value to bool.
2374 * target.def (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): Update docs.
2375 (compare_by_pieces_branch_ratio): New hook.
2376 * target.h (enum by_pieces_operation): Add COMPARE_BY_PIECES.
2377 (by_pieces_ninsns): Declare.
2378 * targethooks.c (default_use_by_pieces_infrastructure_p): Handle
2379 COMPARE_BY_PIECES.
2380 (default_compare_by_pieces_branch_ratio): New function.
2381 * targhooks.h (default_compare_by_pieces_branch_ratio): Declare.
2382 * doc/tm.texi.in (STORE_MAX_PIECES, COMPARE_MAX_PIECES): Document.
2383 * doc/tm.texi: Regenerate.
2384 * tree-ssa-strlen.c: Include "builtins.h".
2385 (handle_builtin_memcmp): New static function.
2386 (strlen_optimize_stmt): Call it for BUILT_IN_MEMCMP.
2387 * tree.c (build_common_builtin_nodes): Create __builtin_memcmp_eq.
2388
2389 2016-06-03 Alan Hayward <alan.hayward@arm.com>
2390
2391 * tree-vect-stmts.c (vect_stmt_relevant_p): Do not vectorize non live
2392 relevant stmts which are simple and invariant.
2393 * tree-vect-loop.c (vectorizable_live_operation): Check relevance
2394 instead of simple and invariant
2395
2396 2016-06-03 Alan Hayward <alan.hayward@arm.com>
2397
2398 * tree-vect-loop.c (vect_analyze_loop_operations): Allow live stmts.
2399 (vectorizable_reduction): Check for new relevant state.
2400 (vectorizable_live_operation): vectorize live stmts using
2401 BIT_FIELD_REF. Remove special case for gimple assigns stmts.
2402 * tree-vect-stmts.c (is_simple_and_all_uses_invariant): New function.
2403 (vect_stmt_relevant_p): Check for stmts which are only used live.
2404 (process_use): Use of a stmt does not inherit it's live value.
2405 (vect_mark_stmts_to_be_vectorized): Simplify relevance inheritance.
2406 (vect_analyze_stmt): Check for new relevant state.
2407 * tree-vectorizer.h (vect_relevant): New entry for a stmt which is used
2408 outside the loop, but not inside it.
2409
2410 2016-06-03 Alan Hayward <alan.hayward@arm.com>
2411
2412 * tree-vectorizer.h (vect_get_vec_def_for_operand_1): New.
2413 * tree-vect-stmts.c (vect_get_vec_def_for_operand_1): New.
2414 (vect_get_vec_def_for_operand): Split out code.
2415
2416 2016-06-03 Segher Boessenkool <segher@kernel.crashing.org>
2417
2418 * config/rs6000/rs6000.md (define_peepholes for two mfcr's): Delete.
2419
2420 2016-06-03 Alan Hayward <alan.hayward@arm.com>
2421
2422 * tree-vect-stmts.c (vectorizable_call) Remove GOMP_SIMD_LANE code.
2423
2424 2016-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2425
2426 * config/arm/thumb1.md (*thumb1_mulsi3): Fix typos in comment.
2427
2428 2016-06-03 Jakub Jelinek <jakub@redhat.com>
2429
2430 PR middle-end/71387
2431 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): If redirecting
2432 to noreturn e->callee->decl that has void return type and void
2433 arguments, adjust gimple_call_fntype and remove lhs even if it had
2434 previously addressable type.
2435
2436 2016-06-02 Jeff Law <law@redhat.com>
2437
2438 PR tree-optimization/71328
2439 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix off-by-one
2440 error when checking for a jump back onto the copied path.
2441
2442 2016-06-02 David Malcolm <dmalcolm@redhat.com>
2443
2444 * config/microblaze/microblaze.c (get_branch_target): Add return
2445 NULL_RTX for the non-CALL_P case.
2446 (insert_wic_for_ilb_runout): Remove unused local "wic_addr1".
2447 (insert_wic): Remove unused local "j".
2448
2449 2016-06-02 Martin Liska <mliska@suse.cz>
2450
2451 * predict.def: Fix typo in PRED_FORTRAN_FAIL_IO display name.
2452
2453 2016-06-02 H.J. Lu <hongjiu.lu@intel.com>
2454 Julia Koval <julia.koval@intel.com>
2455
2456 * function.c (assign_parm_setup_stack): Force source into a
2457 register if needed.
2458 * target.def (function_incoming_arg): Update documentation to
2459 allow arbitrary address computation based on hard register.
2460 * doc/tm.texi: Regenerated.
2461
2462 2016-06-02 Martin Liska <mliska@suse.cz>
2463
2464 * predict.c (combine_predictions_for_bb): Fix first match in
2465 cases where a first predictor contains more than one occurence
2466 in list of predictors. Take the best value in such case.
2467
2468 2016-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2469
2470 PR rtl-optimization/71295
2471 * rtlanal.c (subreg_get_info): If taking a subreg at the requested
2472 offset would go over the size of the inner mode reject it.
2473
2474 2016-06-02 Jakub Jelinek <jakub@redhat.com>
2475
2476 * config/i386/sse.md (*vec_concatv4si): Use v=v,v instead of
2477 x=x,x and v=v,m instead of x=x,m.
2478
2479 * config/i386/sse.md (*vec_concatv2si_sse4_1): Add avx512dq v=Yv,rm
2480 alternative. Change x=x,x alternative to v=Yv,Yv and x=rm,C
2481 alternative to v=rm,C.
2482
2483 * config/i386/sse.md (*vec_concatv2di): Add x86_avx512dq v=Yv,rm
2484 alternative. Change x=xm,C alternative to v=vm,C, x=x,x alternative
2485 to v=Yv,Yv and x=x,m to v=v,m. Use maybe_evex prefix attribute
2486 instead of vex for the last two above mentioned alternatives.
2487
2488 2016-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2489
2490 PR target/70830
2491 * config/arm/arm.c (arm_output_multireg_pop): Guard "pop" on update.
2492
2493 2016-06-02 Segher Boessenkool <segher@kernel.crashing.org>
2494
2495 * config/rs6000/dfp.md (trunctddd2): Correct the "length" attribute.
2496
2497 2016-06-01 David Malcolm <dmalcolm@redhat.com>
2498
2499 * config/rl78/rl78.c (rl78_expand_prologue): Convert local
2500 from int to unsigned.
2501
2502 2016-05-31 Michael Meissner <meissner@linux.vnet.ibm.com>
2503
2504 * config/rs6000/vsx.md (vsx_splat_<mode>, V2DI/V2DF): Simplify
2505 alternatives, eliminating preferred register class. Add support
2506 for the MTVSRDD instruction in ISA 3.0.
2507 (vsx_splat_v4si_internal): Use splat_input_operand instead of
2508 reg_or_indexed_operand.
2509 (vsx_splat_v4sf_internal): Likewise.
2510
2511 2016-05-31 Michael Meissner <meissner@linux.vnet.ibm.com>
2512
2513 PR target/71186
2514 * config/rs6000/vsx.md (xxspltib_<mode>_nosplit): Add alternatives
2515 for loading up all 0's or all 1's.
2516
2517 2016-06-01 Thomas Preud'homme <thomas.preudhomme@arm.com>
2518
2519 * doc/sourcebuild.texi (arm_acq_rel): Document new effective target.
2520
2521 2016-06-01 Eduard Sanou <dhole@openmailbox.org>
2522
2523 * doc/cppenv.texi: Note that the `%s` in `date` is a non-standard
2524 extension.
2525 * gcc.c (driver_handle_option): Call set_source_date_epoch_envvar.
2526 * gcc.c (set_source_date_epoch_envvar): New function, sets
2527 the SOURCE_DATE_EPOCH environment variable to the current time.
2528
2529 2016-06-01 Eric Botcazou <ebotcazou@adacore.com>
2530
2531 * tree-vect-loop.c (vect_determine_vectorization_factor): Also compute
2532 the factor for live Phi nodes.
2533
2534 2016-06-01 Jan Hubicka <hubicka@ucw.cz>
2535
2536 * loop-dolop.c (doloop_optimize): Us likely max iteration bound.
2537 * tree-parloops.c (parallelize_loops): likewise.
2538 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop,
2539 tree_unswitch_outer_loop): likewise.
2540
2541 2016-06-01 Jakub Jelinek <jakub@redhat.com>
2542
2543 PR middle-end/71371
2544 * gimplify.c (gimplify_omp_for): Temporarily clear gimplify_omp_ctxp
2545 around creation of the temporary.
2546
2547 2016-06-01 Richard Biener <rguenther@suse.de>
2548
2549 PR tree-optimization/71366
2550 * tree-ssa-loop-ivcanon.c (edges_to_remove): New global.
2551 (unloop_loops): Move removing edges here ...
2552 (try_unroll_loop_completely): ... from here.
2553 (try_peel_loop): ... and here.
2554 (tree_unroll_loops_completely_1): Track parent loops via
2555 bitmap of header BBs.
2556 (tree_unroll_loops_completely): Adjust for that.
2557
2558 2016-06-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
2559
2560 * config/rs6000/altivec.h (vec_slv): New macro.
2561 (vec_srv): New macro.
2562 * config/rs6000/altivec.md (UNSPEC_VSLV): New value.
2563 (UNSPEC_VSRV): New value.
2564 (vslv): New insn.
2565 (vsrv): New insn.
2566 * config/rs6000/rs6000-builtin.def (vslv): New builtin definition.
2567 (vsrv): New builtin definition.
2568 * config/rs6000/rs6000-c.c (P9V_BUILTIN_VSLV): Macro expansion to
2569 define argument types for new builtin.
2570 (P9V_BUILTIN_VSRV): Macro expansion to define argument types for
2571 new builtin.
2572 * doc/extend.texi: Document the new vec_vslv and vec_srv built-in
2573 functions.
2574
2575 2016-06-01 Uros Bizjak <ubizjak@gmail.com>
2576 Jocelyn Mayer <l_indien@magic.fr>
2577
2578 PR target/67310
2579 * config/i386/driver-i386.c (host_detect_local_cpu): Correctly
2580 detect processor family for signature_CENTAUR_ebx.
2581 <case PROCESSOR_I486>: Pass c3, winchip2 or winchip-c6 for
2582 signature_CENTAUR_ebx.
2583 <case PROCESSOR _PENTIUMPRO>: Pass c3-2 for signature_CENTAUR_ebx.
2584 <default>: Pass x86-64 for has_longmode.
2585
2586 2016-06-01 Nathan Sidwell <nathan@acm.org>
2587
2588 * config/nvptx/nvptx.c (nvptx_assemble_undefined_decl): Reject
2589 undefined weak.
2590
2591 2016-06-01 Richard Biener <rguenther@suse.de>
2592
2593 PR tree-optimization/71261
2594 * tree-vect-patterns.c (check_bool_pattern): Gather a hash-set
2595 of stmts successfully put in the bool pattern. Remove
2596 single-use restriction.
2597 (adjust_bool_pattern_cast): Add cast at the use site via the
2598 pattern def sequence.
2599 (adjust_bool_pattern): Remove recursion, maintain a hash-map
2600 of patterned defs. Use the pattern def seqence instead of
2601 multiple independent patterns.
2602 (sort_after_uid): New qsort compare function.
2603 (adjust_bool_stmts): New function to process stmts in the bool
2604 pattern in IL order.
2605 (vect_recog_bool_pattern): Adjust.
2606 * tree-if-conv.c (ifcvt_split_def_stmt): Remove.
2607 (ifcvt_walk_pattern_tree): Likewise.
2608 (stmt_is_root_of_bool_pattern): Likewise.
2609 (ifcvt_repair_bool_pattern): Likewise.
2610 (tree_if_conversion): Do not call ifcvt_repair_bool_pattern.
2611
2612 2016-06-01 Jan Hubicka <hubicka@ucw.cz>
2613
2614 * loop-unroll.c (decide_unroll_constant_iterations,
2615 decide_unroll_runtime_iterations, decide_unroll_stupid): Use
2616 likely upper bounds.
2617 * loop-iv.c (find_simple_exit): Dump likely upper bounds.
2618
2619 2016-06-01 Thomas Schwinge <thomas@codesourcery.com>
2620
2621 * tree-core.h (enum omp_clause_code): Remove
2622 OMP_CLAUSE_DEVICE_RESIDENT. Adjust all users.
2623
2624 2016-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2625
2626 * config/arm/sync.md (arm_store_exclusive<mode>):
2627 Use 'H' output modifier on operands[2] rather than creating a new
2628 entry in out-of-bounds memory of the operands array.
2629 (arm_store_release_exclusivedi): Likewise.
2630
2631 2016-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2632
2633 * config/arm/arm.c (arm_fusion_enabled_p): New function.
2634 * config/arm/arm-protos.h (arm_fusion_enabled_p): Declare prototype.
2635 * config/arm/crypto.md (crypto_<crypto_pattern>, CRYPTO_UNARY):
2636 Add "=w,0" alternative. Enable it when AES/AESMC fusion is enabled.
2637
2638 2016-06-01 Eric Botcazou <ebotcazou@adacore.com>
2639
2640 * tree-vect-loop.c (vect_determine_vectorization_factor): Also take
2641 into account live statements for mask producers.
2642
2643 2016-06-01 Richard Biener <rguenther@suse.de>
2644
2645 PR tree-optimization/71311
2646 * match.pd (@0 < @1 && @0 < @2 -> @0 < min(@1,@2)): Add :c and
2647 restrict to non-INTEGER_CST @0.
2648
2649 2016-06-01 Richard Biener <rguenther@suse.de>
2650
2651 * match.pd ((A & B) - (A & ~B) -> B - (A ^ B)): Add missing :c.
2652 (relational patterns): Use :c to avoid pattern duplications.
2653
2654 2016-06-01 Richard Biener <rguenther@suse.de>
2655
2656 * genmatch.c (comparison_code_p): New predicate.
2657 (swap_tree_comparison): New function.
2658 (commutate): Add for_vec parameter to append new for entries.
2659 Support commutating relational operators by swapping it alongside
2660 operands.
2661 (lower_commutative): Adjust.
2662 (dt_simplify::gen): Do not pass artificial operators to gen
2663 functions.
2664 (decision_tree::gen): Do not add artificial operators as parameters.
2665 (parser::parse_expr): Verify operator commutativity when :c is
2666 applied. Allow :C to override this.
2667 * match.pd: Adjust patterns to use :C instead of :c where required.
2668
2669 2016-06-01 Patrick Palka <ppalka@gcc.gnu.org>
2670
2671 PR tree-optimization/71077
2672 * tree-ssa-threadedge.c (simplify_control_stmt_condition_1): In
2673 the combining step, use boolean_false_node and boolean_true_node
2674 as the designated false/true return values.
2675
2676 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
2677
2678 * predict.def (PRED_LOOP_EXTRA_EXIT): Define.
2679 * predict.c (predict_iv_comparison): Also check PRED_LOOP_EXTRA_EXIT.
2680 (predict_extra_loop_exits): Use PRED_LOOP_EXTRA_EXIT instead of
2681 PRED_LOOP_EXIT.
2682
2683 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
2684
2685 * doc/invoke.texi (-frename-registers): Drop -fpeel-loops from list
2686 of flags impliying the register renaming.
2687 * toplev.c (process_options): Do not imply flag_rename_registers with
2688 loop peeling.
2689
2690 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
2691
2692 * config/sh/sh.h (ASM_OUTPUT_SYMBOL_REF): Remove macro and use the
2693 default implementation.
2694
2695 2016-05-31 Nathan Sidwell <nathan@acm.org>
2696
2697 * dwarf2out.c (cur_line_info_table): Add GTY marker.
2698
2699 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
2700
2701 * config/sh/constraints.md (b): Remove constraint.
2702 * config/sh/predicates.md (arith_reg_operand): Remove
2703 TARGET_REGISTER_P.
2704 * config/sh/sh-modes.def (PDI): Remove.
2705 * config/sh/sh.c (sh_target_reg_class,
2706 sh_optimize_target_register_callee_saved): Remove functions.
2707 (sh_option_override): Don't set MASK_SAVE_ALL_TARGET_REGS.
2708 (sh_expand_epilogue): Update comment.
2709 (sh_hard_regno_mode_ok, sh_register_move_cost, calc_live_regs,
2710 sh_secondary_reload): Remove TARGET_REGS related code.
2711 * config/sh/sh.h (FIRST_TARGET_REG, LAST_TARGET_REG,
2712 TARGET_REGISTER_P): Remove macros.
2713 (SH_DBX_REGISTER_NUMBER, REG_ALLOC_ORDER): Remove target regs.
2714 * config/sh/sh.md (PR_MEDIA_REG, T_MEDIA_REG, FR23_REG, TR0_REG,
2715 TR1_REG, TR2_REG): Remove constants.
2716 * config/sh/sh.opt (SAVE_ALL_TARGET_REGS): Remove.
2717
2718 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
2719
2720 * config/sh/sh.md (adddi3, subdi3, negdi2, abs<mode>2): Remove
2721 define_expand patterns.
2722 (adddi3_compact): Rename to adddi3.
2723 (subdi3_compact): Rename to subdi3.
2724 (*negdi2): Rename to negdi2.
2725 (*abs<mode>2): Rename to abs<mode>2.
2726
2727 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
2728
2729 * config/rx/rx.md (FETCHOP_NO_MINUS): New code iterator.
2730 (atomic_<fetchop_name>_fetchsi): Extract minus operator into ...
2731 (atomic_sub_fetchsi): ... this new pattern.
2732 (mvtc): Add CC_REG clobber.
2733
2734 2016-05-31 Marek Polacek <polacek@redhat.com>
2735
2736 * gimplify.c (gimplify_switch_expr): Also handle GIMPLE_TRY.
2737
2738 2016-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2739
2740 * config/aarch64/aarch64.c (aarch_macro_fusion_pair_p): Use
2741 aarch64_fusion_enabled_p to check for fusion capabilities.
2742
2743 2016-05-31 Richard Biener <rguenther@suse.de>
2744
2745 PR tree-optimization/71352
2746 * tree-ssa-reassoc.c (zero_one_operation): Handle op equal to
2747 minus one and a negate.
2748
2749 2016-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2750
2751 * config/aarch64/aarch64.c (aarch64_simd_attr_length_move): Delete.
2752 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
2753 Delete prototype.
2754 * config/aarch64/iterators.md (insn_count): Add descriptive comment.
2755 * config/aarch64/aarch64-simd.md (*aarch64_mov<mode>, VSTRUCT modes):
2756 Remove use of aarch64_simd_attr_length_move, set length attribute
2757 directly.
2758 (*aarch64_be_movoi): Likewise.
2759 (*aarch64_be_movci): Likewise.
2760 (*aarch64_be_movxi): Likewise.
2761
2762 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
2763
2764 * loop-init.c (gate): Do not enale RTL loop unroller with -fpeel-loops.
2765 It no longer does that.
2766 * toplev.c (process_options): Do not enable flag_web with -fpeel-loops.
2767
2768 2016-05-31 Wladimir J. van der Laan <laanwj@gmail.com>
2769
2770 * config/aarch64/arm_neon.h (vdupb_laneq_s8): Remove spurious
2771 attribute __unused__.
2772
2773 2016-05-31 Thomas Preud'homme <thomas.preudhomme@arm.com>
2774
2775 * config/arm/arm-protos.h (arm_arch_thumb1): Declare.
2776 * config/arm/arm.c (arm_arch_thumb1): Define.
2777 (arm_option_override): Initialize arm_arch_thumb1.
2778 * config/arm/arm.h (arm_arch_thumb1): Declare.
2779 (TARGET_ARM_ARCH_ISA_THUMB): Use arm_arch_thumb to determine if target
2780 support Thumb-1 ISA.
2781
2782 2016-05-31 Kirill Yukhin <kirill.yukhin@intel.com>
2783
2784 PR target/71346
2785 * config/i386/sse.md (define_insn_and_split "*vec_extractv4sf_0"): Use
2786 `Yv' for scalar operand.
2787
2788 2016-05-31 Tom de Vries <tom@codesourcery.com>
2789
2790 PR tree-optimization/69068
2791 * graphite-isl-ast-to-gimple.c (copy_bb_and_scalar_dependences): Handle
2792 phis with more than two args.
2793
2794 2016-05-30 Andreas Tobler <andreast@gcc.gnu.org>
2795
2796 * config.gcc: Move hard float support for arm*hf*-*-freebsd* into
2797 armv6*-*-freebsd* for FreeBSD 11. Eliminate the arm*hf*-*-freebsd*
2798 target.
2799
2800 2016-05-30 Jose E. Marchesi <jose.marchesi@oracle.com>
2801
2802 * config.gcc (sparc*-*-*): Support cpu_32, cpu_64, tune_32 and
2803 tune_64.
2804 * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
2805 support on SPARC.
2806 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Add entries for
2807 cpu_32, cpu_64, tune_32 and tune_64.
2808 * config/sparc/sol2.h (OPTION_DEFAULT_SPECS): Likewise.
2809
2810 2016-05-30 Uros Bizjak <ubizjak@gmail.com>
2811
2812 * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
2813
2814 2016-05-30 Andi Kleen <ak@linux.intel.com>
2815
2816 * auto-profile.c (read_profile): Replace asserts with errors
2817 when file does not exist.
2818 * gcov-io.c (gcov_read_words): Dito.
2819
2820 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
2821
2822 * tree-cfg.c (print_loop): Print likely upper bounds.
2823
2824 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
2825
2826 * doc/invoke.texi (-fpeel-loops,-O3): Update documentation.
2827 * opts.c (default_options): Enable peel loops at -O3.
2828 * tree-ssa-loop-ivcanon.c (peeled_loops): New static var.
2829 (try_peel_loop): Do not re-peel already peeled loops;
2830 use likely upper bounds; fix profile updating.
2831 (pass_complete_unroll::execute): Initialize peeled_loops.
2832
2833 2016-05-30 Martin Liska <mliska@suse.cz>
2834
2835 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Scale
2836 computed costs by frequency of BB they belong to.
2837 (get_scaled_computation_cost_at): New function.
2838
2839 2016-05-30 Alexander Monakov <amonakov@ispras.ru>
2840 Marc Glisse <marc.glisse@inria.fr>
2841
2842 PR tree-optimization/71289
2843 * match.pd (-1 / B < A, A > -1 / B): New transformations.
2844
2845 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
2846
2847 * tree-vect-loop.c (vect_transform_loop): Update likely bounds.
2848
2849 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
2850
2851 * tree-ssa-loop-ivcanon.c (try_peel_loop): Correctly set wont_exit
2852 for peeled copies; avoid underflow when updating estimates; correctly
2853 scale loop profile.
2854
2855 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
2856
2857 * tree-ssa-reassoc.ci (swap_ops_for_binary_stmt): Fix typo from commit
2858 r236875. Corrected oe3 to oe2 as obvious.
2859
2860 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
2861
2862 PR middle-end/71269
2863 PR middle-end/71252
2864 * tree-ssa-reassoc.c (insert_stmt_before_use): Use find_insert_point so
2865 that inserted stmt will not dominate stmts that defines its operand.
2866 (rewrite_expr_tree): Add stmt_to_insert before adding the use stmt.
2867 (rewrite_expr_tree_parallel): Likewise.
2868
2869 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
2870
2871 PR middle-end/71252
2872 * tree-ssa-reassoc.c (swap_ops_for_binary_stmt): Fix swap such that
2873 all fields including stmt_to_insert are swapped.
2874
2875 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
2876
2877 * predict.h (force_edge_cold): Declare.
2878 * predict.c (force_edge_cold): New function.
2879 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Fix profile
2880 updating.
2881 (canonicalize_loop_induction_variables): Fix formating.
2882
2883 2016-05-30 Eric Botcazou <ebotcazou@adacore.com>
2884
2885 * config/visium/visium.c (visium_split_double_add): Minor tweaks.
2886 (visium_expand_copysign): Use gen_int_mode directly.
2887 (visium_compute_frame_size): Minor tweaks.
2888
2889 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
2890
2891 * tree-vect-loop.c (vect_analyze_loop_2): Use
2892 likely_max_stmt_executions_int.
2893
2894 2016-05-30 Tom de Vries <tom@codesourcery.com>
2895
2896 PR tree-optimization/69067
2897 * graphite-isl-ast-to-gimple.c (get_def_bb_for_const): Remove assert.
2898
2899 2016-05-29 Uros Bizjak <ubizjak@gmail.com>
2900
2901 PR target/71245
2902 * config/i386/sync.md (define_peephole2 atomic_storedi_fpu):
2903 New peepholes to remove unneeded fild/fistp pairs.
2904 (define_peephole2 atomic_loaddi_fpu): Ditto.
2905
2906 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
2907
2908 * predict.c (maybe_hot_frequency_p): Avoid division.
2909
2910 2016-05-28 Gerald Pfeifer <gerald@pfeifer.com>
2911
2912 * doc/install.texi: Use https for shop.fsf.org.
2913
2914 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
2915
2916 * tree-ssa-loop-ivopts.c (estimated_stmt_executions_int): Use
2917 likely_max_stmt_executions_int.
2918
2919 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
2920
2921 * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Use
2922 likely_max_stmt_executions_int.
2923
2924 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
2925
2926 * profile.c (compute_branch_probabilities): Do not report hitrates
2927 here.
2928 (branch_prob): Report hitrates here.
2929 * predict.c (gimple_predict_edge): Do not assert profile status;
2930 fix formatting issues.
2931
2932 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
2933
2934 * predict.c (edge_predicted_by_p): New function.
2935 (predict_paths_for_bb): Do not put multiple predictions of the same type
2936 on one edge.
2937
2938 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
2939
2940 * tree-ssa-loop-niter.c (number_of_iterations_exit): Revert accidental
2941 commit.
2942
2943 2016-05-28 Alan Modra <amodra@gmail.com>
2944
2945 * dominance.c (verify_dominators): Don't segfault on NULL imm_bb.
2946
2947 2016-05-28 Alan Modra <amodra@gmail.com>
2948
2949 PR rtl-optimization/71275
2950 * ira.c (ira): Free dominance info.
2951
2952 2016-05-27 Gerald Pfeifer <gerald@pfeifer.com>
2953
2954 * doc/sourcebuild.texi: New address for upstream Go repository.
2955
2956 2016-05-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
2957
2958 * config/arm/arm.h (TARGET_ARM_V6M): Remove.
2959 (TARGET_ARM_V7M): Likewise.
2960
2961 2016-05-26 Jeff Law <law@redhat.com>
2962
2963 * tree-ssa-threadedge.c: Remove include of tree-ssa-threadbackward.h.
2964 (thread_across_edge): Remove calls to find_jump_threads_backwards.
2965 * passes.def: Add jump threading passes before DOM/VRP.
2966 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Change
2967 argument to a basic block from an edge. Remove tests which are
2968 handled elsewhere.
2969 (pass_data_thread_jumps, class pass_thread_jumps): New.
2970 (pass_thread_jumps::gate, pass_thread_jumps::execute): New.
2971 (make_pass_thread_jumps): Likewise.
2972 * tree-pass.h (make_pass_thread_jumps): Declare.
2973
2974 2016-05-27 Eric Botcazou <ebotcazou@adacore.com>
2975
2976 * config/visium/visium-protos.h (split_double_move): Rename into...
2977 (visium_split_double_move): ...this.
2978 (visium_split_double_add): Declare.
2979 * config/visium/visium.c (split_double_move): Rename into...
2980 (visium_split_double_move): ...this.
2981 (visium_split_double_add): New function.
2982 (visium_expand_copysign): Renumber operands for consistency.
2983 * config/visium/visium.md (DImode move splitter): Adjust to renaming.
2984 (DFmode move splitter): Likewise.
2985 (*addi3_insn): Split by means of visium_split_double_add.
2986 (*adddi3_insn_flags): Delete.
2987 (*plus_plus_sltu<subst_arith>): New insn.
2988 (*subdi3_insn): Split by means of visium_split_double_add.
2989 (subdi3_insn_flags): Delete.
2990 (*minus_minus_sltu<subst_arith>): New insn.
2991 (*negdi2_insn): Split by means of visium_split_double_add.
2992 (*negdi2_insn_flags): Delete.
2993
2994 2016-05-27 Ulrich Weigand <uweigand@de.ibm.com>
2995
2996 * configure.ac: Treat a --with-headers option without argument
2997 the same as the default (i.e. consult sys-include directory).
2998 * configure: Regenerate.
2999
3000 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3001
3002 * config/aarch64/aarch64.c (aarch64_fusion_enabled_p): New function.
3003 * config/aarch64/aarch64-protos.h (aarch64_fusion_enabled_p): Declare
3004 prototype.
3005 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aesmc_op>v16qi):
3006 Add "=w,0" alternative. Enable it when AES/AESMC fusion is enabled.
3007
3008 2016-05-27 Jiong Wang <jiong.wang@arm.com>
3009
3010 PR target/63596
3011 * config/aarch64/aarch64.c (aarch64_expand_builtin_va_start): Honor
3012 tree-stdarg analysis results.
3013 (aarch64_setup_incoming_varargs): Likewise.
3014
3015 2016-05-27 Jiong Wang <jiong.wang@arm.com>
3016
3017 * config/aarch64/aarch64.c (aarch64_build_builtin_va_list): Initialize
3018 va_list_gpr_counter_field and va_list_fpr_counter_field.
3019
3020 2016-05-27 Wilco Dijkstra <wdijkstr@arm.com>
3021
3022 PR67609
3023 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Remove.
3024 * config/aarch64/aarch64.c
3025 (aarch64_cannot_change_mode_class): Remove function.
3026 * config/aarch64/aarch64-protos.h
3027 (aarch64_cannot_change_mode_class): Remove.
3028
3029 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
3030
3031 * cfgloop.c (record_niter_bound): Record likely upper bounds.
3032 (likely_max_stmt_executions_int, get_likely_max_loop_iterations,
3033 get_likely_max_loop_iterations_int): New.
3034 * cfgloop.h (struct loop): Add nb_iterations_likely_upper_bound,
3035 any_likely_upper_bound.
3036 (get_likely_max_loop_iterations_int, get_likely_max_loop_iterations):
3037 Declare.
3038 * cfgloopmanip.c (copy_loop_info): Copy likely upper bounds.
3039 * loop-unroll.c (unroll_loop_constant_iterations): Update likely
3040 upper bound.
3041 (unroll_loop_constant_iterations): Likewise.
3042 (unroll_loop_runtime_iterations): Likewise.
3043 * lto-streamer-in.c (input_cfg): Stream likely upper bounds.
3044 * lto-streamer-out.c (output_cfg): Likewise.
3045 * tree-ssa-loop-ivcanon.c (try_peel_loop): Update likely upper
3046 bounds.
3047 (canonicalize_loop_induction_variables): Dump likely upper bounds.
3048 * tree-ssa-loop-niter.c (record_estimate): Record likely upper bounds.
3049 (likely_max_loop_iterations): New.
3050 (likely_max_loop_iterations_int): New.
3051 (likely_max_stmt_executions): New.
3052 * tree-ssa-loop-niter.h (likely_max_loop_iterations,
3053 likely_max_loop_iterations_int, likely_max_stmt_executions_int,
3054 likely_max_stmt_executions): Declare.
3055
3056 2016-05-27 Marek Polacek <polacek@redhat.com>
3057
3058 PR middle-end/71308
3059 * gimple-fold.c (gimple_fold_call): Check that LHS is not null.
3060
3061 2016-05-27 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3062
3063 * config/s390/s390.md (2x risbg splitters): Use
3064 reg_overlap_mentioned_p instead of rtx_equal_p.
3065
3066 2016-05-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
3067
3068 * combine.c (make_compound_operation): Take known zero bits into
3069 account when checking for possible zero_extend.
3070
3071 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3072
3073 * config/aarch64/aarch64.md (ashl<mode>3, SHORT modes):
3074 Use const_int_operand for operand 2 predicate. Simplify expand code
3075 as a result.
3076
3077 2016-05-27 Ilya Enkovich <ilya.enkovich@intel.com>
3078
3079 PR middle-end/71279
3080 * fold-const.c (fold_ternary_loc): Don't fold VEC_COND_EXPR
3081 into comparison.
3082
3083 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3084
3085 * config/aarch64/aarch64-modes.def (CC_ZESWP, CC_SESWP): Delete.
3086 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Remove condition
3087 that returns CC_SESWPmode and CC_ZESWPmode.
3088 (aarch64_get_condition_code_1): Remove handling of CC_SESWPmode
3089 and CC_SESWPmode.
3090 (aarch64_rtx_costs): Likewise.
3091
3092 2016-05-26 Michael Meissner <meissner@linux.vnet.ibm.com>
3093
3094 * config/rs6000/rs6000.c (rs6000_emit_p9_fp_minmax): New function
3095 for ISA 3.0 min/max support.
3096 (rs6000_emit_p9_fp_cmove): New function for ISA 3.0 floating point
3097 conditional move support.
3098 (rs6000_emit_cmove): Call rs6000_emit_p9_fp_minmax and
3099 rs6000_emit_p9_fp_cmove if the ISA 3.0 instructions are
3100 available.
3101 * config/rs6000/rs6000.md (SFDF2): New iterator to allow doing
3102 conditional moves where the comparison type is different from move
3103 type.
3104 (fp_minmax): New code iterator for smin/smax.
3105 (minmax): New code attributes for min/max.
3106 (SMINMAX): Likewise.
3107 (smax<mode>3): Combine min, max insns into one insn using the
3108 fp_minmax code iterator. Add support for ISA 3.0 min/max
3109 instructions that don't need -ffast-math.
3110 (s<minmax><mode>3): Likewise.
3111 (smax<mode>3_vsx): Likewise.
3112 (smin<mode>3): Likewise.
3113 (s<minmax><mode>3_vsx): Likewise.
3114 (smin<mode>3_vsx): Likewise.
3115 (pre-VSX min/max splitters): Likewise.
3116 (s<minmax><mode>3_fpr): Likewise.
3117 (movsfcc): Rewrite floating point conditional moves to combine
3118 SFmode/DFmode into a single insn.
3119 (mov<mode>cc): Likewise.
3120 (movdfcc): Likewise.
3121 (fselsfsf4): Combine FSEL cases into a single insn, using SFDF and
3122 SFDF2 iterators to handle all combinations.
3123 (fseldfsf4): Likewise.
3124 (fsel<SFDF:mode><SFDF2:mode>4): Likewise.
3125 (fseldfdf4): Likewise.
3126 (fselsfdf4): Likewise.
3127 (mov<SFDF:mode><SFDF2:mode>cc_p9): Add support for the ISA 3.0
3128 comparison instructions that set a 0/-1 mask, and use it for
3129 floating point conditional move via XXSEL.
3130 (fpmask<mode>): Likewise.
3131 (xxsel<mode>): Likewise.
3132 * config/rs6000/predicates.md (min_max_operator): Delete, no
3133 longer used.
3134 (fpmask_comparison_operaton): New insn for ISA 3.0 comparison
3135 instructions that generate a 0/-1 mask for use with XXSEL.
3136 * config/rs6000/rs6000.h (TARGET_MINMAX_SF): New helper macros to
3137 say whether floating point min/max is available, either through
3138 FSEL, ISA 2.06 min/max, and ISA 3.0 min/max instrucitons.
3139 (TARGET_MINMAX_DF): Likewise.
3140
3141 2016-05-27 Alan Modra <amodra@gmail.com>
3142
3143 PR rtl-optimization/71275
3144 * ira.c (ira): Call loop_optimizer_init to set up bb_loop_depth
3145 for update_equiv_regs and combine_and_move_insns.
3146
3147 2016-05-26 Uros Bizjak <ubizjak@gmail.com>
3148
3149 * config/i386/i386.md (*movqi_internal) <attr "isa">: Use
3150 if_then_else or cond RTXes to calculate attribute value.
3151 * config/i386/mmx.md (*vec_extractv2sf_1) <attr "prefix_rep">: Ditto.
3152 <attr "length_immediate>: Ditto.
3153 (*vec_extractv2sf_1) <attr "length_immediate">: Ditto.
3154 * config/i386/sse.md (sse_loadlps) <attr "length_immediate">: Ditto.
3155 (*vec_concatv2sf_sse4_1) <attr "isa">: Ditto.
3156 <attr "type">: Ditto.
3157 <attr "prefix_data16">: Ditto.
3158 <attr "prefix_extra">: Ditto.
3159 <attr "length_immediate">: Ditto.
3160 <attr "prefix">: Ditto.
3161 (vec_set<mode>_0) <attr "isa">: Ditto.
3162 <attr "prefix_extra">: Ditto.
3163 <attr "length_immediate">: Ditto.
3164 <attr "prefix">: Ditto.
3165 (*vec_interleave_highv2df) <attr "prefix_data16">: Ditto.
3166 (*vec_interleave_lowv2df) <attr "prefix_data16">: Ditto.
3167 (sse2_storelpd) <attr "prefix_data16">: Ditto.
3168 (sse2_loadhpd) <attr "prefix_data16">: Ditto.
3169 (sse2_loadlpd) <attr "prefix_data16">: Ditto.
3170 <attr "length_immediate">: Ditto.
3171 <attr "prefix">: Ditto.
3172 (sse2_movsd) <attr "length_immediate">: Ditto.
3173 <attr "prefix">: Ditto.
3174 (vec_concatv2df) <attr "isa">: Ditto.
3175 <attr "prefix">: Ditto.
3176 (*vec_extractv4si) <attr "prefix_extra">: Ditto.
3177 (*vec_extractv2di_1) <attr "isa">: Ditto.
3178 <attr "type">: Ditto.
3179 <attr "length_immediate">: Ditto.
3180 <attr "prefix_rex">: Ditto.
3181 <attr "prefix_extra">: Ditto.
3182 (*vec_concatv2si_sse4_1) <attr "type">: Ditto.
3183 <attr "prefix_extra">: Ditto.
3184 <attr "length_immediate">: Ditto.
3185 (vec_concatv2di) <attr "isa">: Ditto.
3186 <attr "prefix_extra">: Ditto.
3187 <attr "length_immediate">: Ditto.
3188 <attr "prefix">: Ditto.
3189
3190 2016-05-26 Martin Liska <mliska@suse.cz>
3191
3192 * tree-ssa-loop-ivopts.c (comp_cost::infinite_cost_p): New
3193 function.
3194 (operator+): Likewise.
3195 (operator-): Likewise.
3196 (comp_cost::operator+=): Likewise.
3197 (comp_cost::operator-=): Likewise.
3198 (comp_cost::operator/=): Likewise.
3199 (comp_cost::operator*=): Likewise.
3200 (operator<): Likewise.
3201 (operator==): Likewise.
3202 (operator<=): Likewise.
3203 (new_cost): Remove.
3204 (infinite_cost_p): Likewise.
3205 (add_costs): Likewise.
3206 (sub_costs): Likewise.
3207 (compare_costs): Likewise.
3208 (set_group_iv_cost): Use the newly introduced functions.
3209 (get_address_cost): Likewise.
3210 (get_shiftadd_cost): Likewise.
3211 (force_expr_to_var_cost): Likewise.
3212 (split_address_cost): Likewise.
3213 (ptr_difference_cost): Likewise.
3214 (difference_cost): Likewise.
3215 (get_computation_cost_at): Likewise.
3216 (determine_group_iv_cost_generic): Likewise.
3217 (determine_group_iv_cost_address): Likewise.
3218 (determine_group_iv_cost_cond): Likewise.
3219 (autoinc_possible_for_pair): Likewise.
3220 (determine_group_iv_costs): Likewise.
3221 (cheaper_cost_pair): Likewise.
3222 (iv_ca_recount_cost): Likewise.
3223 (iv_ca_set_no_cp): Likewise.
3224 (iv_ca_set_cp): Likewise.
3225 (iv_ca_cost): Likewise.
3226 (iv_ca_new): Likewise.
3227 (iv_ca_dump): Likewise.
3228 (iv_ca_narrow): Likewise.
3229 (iv_ca_prune): Likewise.
3230 (iv_ca_replace): Likewise.
3231 (try_add_cand_for): Likewise.
3232 (try_improve_iv_set): Likewise.
3233 (find_optimal_iv_set): Likewise.
3234
3235 2016-05-26 Richard Sandiford <richard.sandiford@arm.com>
3236
3237 * tree-ssa-loop-ivopts.c (loop_body_includes_call): Don't assume
3238 that internal functions will clobber all caller-saved registers.
3239
3240 2016-05-26 Wilco Dijkstra <wdijkstr@arm.com>
3241
3242 * config/aarch64/aarch64.c (aarch64_case_values_threshold):
3243 Return a better case_values_threshold when optimizing.
3244
3245 2016-05-26 Wilco Dijkstra <wdijkstr@arm.com>
3246
3247 * config/aarch64/aarch64-simd.md (aarch64_combinez):
3248 Add ? to integer variant.
3249 (aarch64_combinez_be): Likewise.
3250
3251 2016-05-26 Jakub Jelinek <jakub@redhat.com>
3252
3253 * config/i386/sse.md (*vcvtps2ph_store<mask_name>): Use v constraint
3254 instead of x constraint.
3255 (vcvtps2ph256<mask_name>): Likewise.
3256
3257 * config/i386/sse.md (*ssse3_palignr<mode>_perm): Add avx512bw
3258 alternative. Formatting fix.
3259
3260 * config/i386/sse.md
3261 (<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Rename
3262 to ...
3263 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>): ... this.
3264 (*avx_vperm_broadcast_v4sf): Use v constraint instead of x. Use
3265 maybe_evex prefix instead of vex.
3266 (*avx_vperm_broadcast_<mode>): Use v constraint instead of x. Handle
3267 EXT_REX_SSE_REG_P (op0) case in the splitter.
3268
3269 2016-05-25 Jeff Law <law@redhat.com>
3270
3271 PR tree-optimization/71272
3272 * tree-ssa-threadbackward.c (convert_and_register_jump_thread_path):
3273 Update comments. Add test for empty path.
3274
3275 2016-05-25 Bill Seurer <seurer@linux.vnet.ibm.com>
3276
3277 * config/rs6000/altivec.h (vec_cmpne): Add #define for vec_cmpne.
3278 * config/rs6000/rs6000-builtin.def (vec_cmpne): Add vec_cmpne as a
3279 special case builtin.
3280 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
3281 code for ALTIVEC_BUILTIN_VEC_CMPNE.
3282 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
3283 for __builtin_vec_cmpne.
3284
3285 2016-05-25 Eric Botcazou <ebotcazou@adacore.com>
3286
3287 * tree-ssa-phiopt.c (factor_out_conditional_conversion): Remove
3288 redundant test and bail out if the type of the new operand is not
3289 a GIMPLE register type after stripping a VIEW_CONVERT_EXPR.
3290
3291 2016-05-25 Uros Bizjak <ubizjak@gmail.com>
3292
3293 * config/i386/i386.opt (ix86_target_flags_explicit): Remove.
3294 (x_ix86_target_flags_explicit): Remove.
3295 * config/i386/i386.c (ix86_function_specific_save): Do not copy
3296 x_ix86_target_flags_explicit.
3297 (ix86_function_specific_restore): Ditto.
3298
3299 2016-05-25 Uros Bizjak <ubizjak@gmail.com>
3300 H.J. Lu <hongjiu.lu@intel.com>
3301
3302 PR target/70738
3303 * common/config/i386/i386-common.c
3304 (OPTION_MASK_ISA_GENERAL_REGS_ONLY_UNSET): New.
3305 (ix86_handle_option) <case OPT_mgeneral_regs_only>: Disable
3306 MPX, MMX, SSE and x87 instructions for -mgeneral-regs-only.
3307 * config/i386/i386.opt (ix86_target_flags): Add new Variable.
3308 (-mgeneral-regs-only): Add new option.
3309 * config/i386/i386.c (ix86_option_override_internal): Don't enable
3310 x87 instructions if only general registers are allowed.
3311 (ix86_target_string): Add ix86_flags argument. Handle additional
3312 flags options through ix86_flags argument. Update all callers.
3313 * doc/invoke.texi (x86 Options): Document -mgeneral-regs-only.
3314
3315 2016-05-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3316
3317 PR rtl-optimization/66940
3318 * ifcvt.c (noce_get_alt_condition): Check that incrementing or
3319 decrementing desired_val will not overflow before performing these
3320 operations.
3321
3322 2016-05-25 Ilya Verbin <ilya.verbin@intel.com>
3323
3324 * config/i386/i386-builtin-types.def: Add V16SI_FTYPE_V16SF,
3325 V8DF_FTYPE_V8DF_ROUND, V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND.
3326 * config/i386/i386.c (enum ix86_builtins): Add
3327 IX86_BUILTIN_CVTPS2DQ512_MASK, IX86_BUILTIN_FLOORPS512,
3328 IX86_BUILTIN_FLOORPD512, IX86_BUILTIN_CEILPS512, IX86_BUILTIN_CEILPD512,
3329 IX86_BUILTIN_TRUNCPS512, IX86_BUILTIN_TRUNCPD512,
3330 IX86_BUILTIN_CVTPS2DQ512, IX86_BUILTIN_VEC_PACK_SFIX512,
3331 IX86_BUILTIN_FLOORPS_SFIX512, IX86_BUILTIN_CEILPS_SFIX512,
3332 IX86_BUILTIN_ROUNDPS_AZ_SFIX512.
3333 (builtin_description bdesc_args): Add __builtin_ia32_floorps512,
3334 __builtin_ia32_ceilps512, __builtin_ia32_truncps512,
3335 __builtin_ia32_floorpd512, __builtin_ia32_ceilpd512,
3336 __builtin_ia32_truncpd512, __builtin_ia32_cvtps2dq512,
3337 __builtin_ia32_vec_pack_sfix512, __builtin_ia32_roundps_az_sfix512,
3338 __builtin_ia32_floorps_sfix512, __builtin_ia32_ceilps_sfix512.
3339 Change IX86_BUILTIN_CVTPS2DQ512 to IX86_BUILTIN_CVTPS2DQ512_MASK for
3340 __builtin_ia32_cvtps2dq512_mask.
3341 (ix86_expand_args_builtin): Handle V8DF_FTYPE_V8DF_ROUND,
3342 V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF.
3343 (ix86_builtin_vectorized_function): Handle builtins mentioned above.
3344 * config/i386/sse.md
3345 (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name><round_name>):
3346 Rename to ...
3347 (avx512f_fix_notruncv16sfv16si<mask_name><round_name>): ... this.
3348 (<mask_codefor>avx512f_cvtpd2dq512<mask_name><round_name>): Rename
3349 to ...
3350 (avx512f_cvtpd2dq512<mask_name><round_name>): ... this.
3351 (avx512f_vec_pack_sfix_v8df): New define_expand.
3352 (avx512f_roundpd512): Rename to ...
3353 (avx512f_round<castmode>512): ... this. Change iterator.
3354 (avx512f_roundps512_sfix): New define_expand.
3355 (round<mode>2_sfix): Change iterator.
3356
3357 2016-05-25 Nick Clifton <nickc@redhat.com>
3358
3359 * config/msp430/msp430.c (msp430_attr): Produce an error if a
3360 static interrupt handler is detected.
3361 * config/msp430/msp430.h (LIB_SPEC): Do not use msp430.ld as the
3362 default linker script.
3363 * config/msp430/msp430.md (movpsihi2_lo): New pattern for loading
3364 the low part of a symbolic pointer.
3365
3366 2016-05-25 Richard Biener <rguenther@suse.de>
3367
3368 PR tree-optimization/71261
3369 * tree-if-conv.c (ifcvt_split_def_stmt): Walk uses on the
3370 interesting stmt instead of immediate uses when looking
3371 for the use operand to replace.
3372
3373 2016-05-25 Martin Liska <mliska@suse.cz>
3374
3375 * ipa-inline.c (edge_badness): Use 'w/' instead of 'w'.
3376
3377 2016-05-25 Richard Biener <rguenther@suse.de>
3378
3379 PR tree-optimization/71264
3380 * tree-vect-stmts.c (vect_init_vector): Properly deal with
3381 vector type val.
3382
3383 2016-05-25 Martin Liska <mliska@suse.cz>
3384
3385 PR tree-optimization/71239
3386 * tree.c (array_at_struct_end_p): Do not call operand_equal_p
3387 if DECL_SIZE is NULL.
3388
3389 2016-05-25 Richard Biener <rguenther@suse.de>
3390
3391 * timevar.def (TV_TREE_LOOP_IFCVT): Add.
3392 * tree-if-conv.c (pass_data_if_conversion): Use it.
3393
3394 2016-05-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
3395
3396 * cgraph.c (cgraph_node::get_availability): Fix typo in comment.
3397 * symtab.c (symtab_node::binds_to_current_def_p): Likewise.
3398 * varpool.c (varpool_node::get_availability): Likewise.
3399
3400 2016-05-24 Michael Meissner <meissner@linux.vnet.ibm.com>
3401
3402 * config/rs6000/altivec.md (VNEG iterator): New iterator for
3403 VNEGW/VNEGD instructions.
3404 (p9_neg<mode>2): New insns for ISA 3.0 VNEGW/VNEGD.
3405 (neg<mode>2): Add expander for V2DImode added in ISA 2.07, and
3406 support for ISA 3.0 VNEGW/VNEGD instructions.
3407
3408 2016-05-24 Cesar Philippidis <cesar@codesourcery.com>
3409
3410 * gimplify.c (omp_notice_variable): Use zero-length arrays for data
3411 pointers inside OACC_DATA regions.
3412 (gimplify_scan_omp_clauses): Prune firstprivate clause associated
3413 with OACC_DATA, OACC_ENTER_DATA and OACC_EXIT data regions.
3414 (gimplify_adjust_omp_clauses): Fix typo in comment.
3415
3416 2016-05-24 Michael Meissner <meissner@linux.vnet.ibm.com>
3417
3418 * config/rs6000/altivec.md (VParity): New mode iterator for vector
3419 parity built-in functions.
3420 (p9v_ctz<mode>2): Add support for ISA 3.0 vector count trailing
3421 zeros.
3422 (p9v_parity<mode>2): Likewise.
3423 * config/rs6000/vector.md (VEC_IP): New mode iterator for vector
3424 parity.
3425 (ctz<mode>2): ISA 3.0 expander for vector count trailing zeros.
3426 (parity<mode>2): ISA 3.0 expander for vector parity.
3427 * config/rs6000/rs6000-builtin.def (BU_P9_MISC_1): New macros for
3428 power9 built-ins.
3429 (BU_P9_64BIT_MISC_0): Likewise.
3430 (BU_P9_MISC_0): Likewise.
3431 (BU_P9V_AV_1): Likewise.
3432 (BU_P9V_AV_2): Likewise.
3433 (BU_P9V_AV_3): Likewise.
3434 (BU_P9V_AV_P): Likewise.
3435 (BU_P9V_VSX_1): Likewise.
3436 (BU_P9V_OVERLOAD_1): Likewise.
3437 (BU_P9V_OVERLOAD_2): Likewise.
3438 (BU_P9V_OVERLOAD_3): Likewise.
3439 (VCTZB): Add vector count trailing zeros support.
3440 (VCTZH): Likewise.
3441 (VCTZW): Likewise.
3442 (VCTZD): Likewise.
3443 (VPRTYBD): Add vector parity support.
3444 (VPRTYBQ): Likewise.
3445 (VPRTYBW): Likewise.
3446 (VCTZ): Add overloaded vector count trailing zeros support.
3447 (VPRTYB): Add overloaded vector parity support.
3448 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
3449 overloaded vector count trailing zeros and parity instructions.
3450 * config/rs6000/rs6000.md (wd mode attribute): Add V1TI and TI for
3451 vector parity support.
3452 * config/rs6000/altivec.h (vec_vctz): Add ISA 3.0 vector count
3453 trailing zeros support.
3454 (vec_cntlz): Likewise.
3455 (vec_vctzb): Likewise.
3456 (vec_vctzd): Likewise.
3457 (vec_vctzh): Likewise.
3458 (vec_vctzw): Likewise.
3459 (vec_vprtyb): Add ISA 3.0 vector parity support.
3460 (vec_vprtybd): Likewise.
3461 (vec_vprtybw): Likewise.
3462 (vec_vprtybq): Likewise.
3463 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
3464 the ISA 3.0 vector count trailing zeros and vector parity built-in
3465 functions.
3466
3467 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
3468
3469 * tree-ssa-reassoc.c (sort_by_operand_rank): Skip checking gimple_bb
3470 when there is stmt_to_insert.
3471
3472 2016-05-24 Martin Sebor <msebor@redhat.com>
3473
3474 PR c++/71147
3475 * tree.h (complete_or_array_type_p): New inline function.
3476
3477 2016-05-24 Jakub Jelinek <jakub@redhat.com>
3478
3479 * config/i386/i386.h (TARGET_AVOID_4BYTE_PREFIXES): Define.
3480 * config/i386/constraints.md (Yr): Test TARGET_AVOID_4BYTE_PREFIXES
3481 rather than X86_TUNE_AVOID_4BYTE_PREFIXES.
3482
3483 * config/i386/sse.md (<sse4_1>_round<ssemodesuffix><avxsizesuffix>):
3484 Limit 1st alternative to noavx isa, split 2nd alternative into one
3485 noavx and one avx alternative, use *x and Bm in the former and
3486 x and m in the latter.
3487
3488 * config/i386/sse.md (vec_set<mode>_0): Use sse4_noavx isa instead
3489 of sse4 for the first alternative, drop %v from the template
3490 and d operand modifier. Split second alternative into one sse4_noavx
3491 and one avx alternative, use *x instead of *v in the former and v
3492 instead of *v in the latter.
3493 (*sse4_1_extractps): Use noavx isa instead of * for the first
3494 alternative, drop %v from the template. Split second alternative into
3495 one noavx and one avx alternative, use *x instead of *v in the
3496 former and v instead of *v in the latter.
3497 (<vi8_sse4_1_avx2_avx512>_movntdqa): Guard the first 2 alternatives
3498 with noavx and the last one with avx.
3499 (sse4_1_phminposuw): Guard first alternative with noavx isa,
3500 split the second one into one noavx and one avx alternative,
3501 use *x and Bm in the former and x and m in the latter one.
3502 (<sse4_1>_ptest<mode>): Use noavx instead of * for the first two
3503 alternatives.
3504
3505 * config/i386/sse.md (sse4_1_<code>v8qiv8hi2<mask_name>): Limit
3506 first two alternatives to noavx, use *x instead of *v in the second
3507 one, add avx alternative without *.
3508 (sse4_1_<code>v4qiv4si2<mask_name>, sse4_1_<code>v4hiv4si2<mask_name>,
3509 sse4_1_<code>v2qiv2di2<mask_name>, sse4_1_<code>v2hiv2di2<mask_name>,
3510 sse4_1_<code>v2siv2di2<mask_name>): Likewise.
3511
3512 2016-05-24 Jeff Law <law@redhat.com>
3513
3514 * tree-ssa-threadbackwards.c (convert_and_register_jump_thread_path):
3515 New function, extracted from...
3516 (fsm_find_control_statement_thread_paths): Here. Use the new function.
3517 Allow simple copies and constant initializations in the SSA chain.
3518
3519 2016-05-24 Marek Polacek <polacek@redhat.com>
3520
3521 PR c/71249
3522 * gimplify.c (gimplify_switch_expr): Look into the innermost lexical
3523 scope.
3524
3525 2016-05-24 Jakub Jelinek <jakub@redhat.com>
3526
3527 PR c++/71257
3528 * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
3529 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
3530 SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP. Add
3531 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP and
3532 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP cases explicitly.
3533
3534 2016-05-24 Richard Biener <rguenther@suse.de>
3535
3536 PR tree-optimization/71240
3537 * tree-ssa-math-opts.c (init_symbolic_number): Verify the source
3538 has integral type.
3539
3540 2016-05-24 Richard Biener <rguenther@suse.de>
3541
3542 PR tree-optimization/71230
3543 * tree-ssa-reassoc.c (zero_one_operation): Handle negate special ops.
3544
3545 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
3546
3547 * tree-vectorizer.h (vectorizable_comparison): Delete.
3548 * tree-vect-loop.c (vectorizable_reduction): Remove redundant
3549 PURE_SLP_STMT check.
3550 * tree-vect-stmts.c (vectorizable_call): Likewise.
3551 (vectorizable_simd_clone_call): Likewise.
3552 (vectorizable_conversion): Likewise.
3553 (vectorizable_assignment): Likewise.
3554 (vectorizable_shift): Likewise.
3555 (vectorizable_operation): Likewise.
3556 (vectorizable_load): Likewise.
3557 (vectorizable_condition): Likewise.
3558 (vectorizable_store): Likewise. Assert that we don't have
3559 hybrid SLP.
3560 (vectorizable_comparison): Make static. Remove redundant
3561 PURE_SLP_STMT check.
3562 (vect_transform_stmt): Assert that we always have an slp_node
3563 if PURE_SLP_STMT.
3564
3565 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3566
3567 * config/arm/neon.md (ashldi3_neon): Replace comparison of INTVAL of
3568 operands[2] against 1 with comparison against CONST1_RTX.
3569 (<shift>di3_neon): Likewise.
3570 * config/arm/predicates.md (const0_operand): Replace with comparison
3571 against CONST0_RTX.
3572
3573 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3574
3575 * config/arm/arm.md (ashldi3): Replace comparison of INTVAL of
3576 operands[2] against 1 with comparison against CONST1_RTX.
3577 (ashrdi3): Likewise.
3578 (lshrdi3): Likewise.
3579 (ashlsi3): Replace cast of INTVAL to unsigned HOST_WIDE_INT with
3580 UINTVAL.
3581 (ashrsi3): Likewise.
3582 (lshrsi3): Likewise.
3583 (rotrsi3): Likewise.
3584 (define_split above *compareqi_eq0): Likewise.
3585 (define_split above "prologue"): Likewise.
3586 * config/arm/arm.c (thumb1_size_rtx_costs): Likewise.
3587 * config/arm/predicates.md (shift_operator): Likewise.
3588 (shift_nomul_operator): Likewise.
3589 (sat_shift_operator): Likewise.
3590 (thumb1_cmp_operand): Likewise.
3591 (const_neon_scalar_shift_amount_operand): Replace manual range
3592 check with IN_RANGE.
3593 * config/arm/thumb1.md (define_peephole2 above *thumb_subdi3):
3594 Replace cast of INTVAL to unsigned HOST_WIDE_INT with UINTVAL.
3595
3596 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3597
3598 * config/arm/arm.md (andsi3): Replace cast of 1 to HOST_WIDE_INT
3599 with HOST_WIDE_INT_1.
3600 (insv): Likewise.
3601 * config/arm/arm.c (optimal_immediate_sequence): Replace cast of
3602 1 to unsigned HOST_WIDE_INT with HOST_WIDE_INT_1U.
3603 (arm_canonicalize_comparison): Likewise.
3604 (thumb1_rtx_costs): Replace cast of 1 to HOST_WIDE_INT with
3605 HOST_WIDE_INT_1.
3606 (thumb1_size_rtx_costs): Likewise.
3607 (vfp_const_double_index): Replace cast of 1 to unsigned
3608 HOST_WIDE_INT with HOST_WIDE_INT_1U.
3609 (get_jump_table_size): Replace cast of 1 to HOST_WIDE_INT with
3610 HOST_WIDE_INT_1.
3611 (arm_asan_shadow_offset): Replace cast of 1 to unsigned
3612 HOST_WIDE_INT with HOST_WIDE_INT_1U.
3613 * config/arm/neon.md (vec_set<mode>): Replace cast of 1 to
3614 HOST_WIDE_INT with HOST_WIDE_INT_1.
3615
3616 2016-05-24 Marek Polacek <polacek@redhat.com>
3617
3618 * tree-cfg.h (should_remove_lhs_p): New predicate.
3619 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
3620 * gimplify.c (gimplify_modify_expr): Likewise.
3621 * tree-cfg.c (verify_gimple_call): Likewise.
3622 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
3623 * gimple-fold.c: Include "tree-cfg.h".
3624 (gimple_fold_call): Use should_remove_lhs_p.
3625
3626 2016-05-24 Richard Biener <rguenther@suse.de>
3627
3628 PR tree-optimization/71253
3629 * cfganal.h (control_dependences): Make robust against edge
3630 and BB removal.
3631 (control_dependences::control_dependences): Remove edge_list argument.
3632 (control_dependences::get_edge): Remove.
3633 (control_dependences::get_edge_src): Add.
3634 (control_dependences::get_edge_dest): Likewise.
3635 (control_dependences::m_el): Make a vector of edge src/dest index.
3636 * cfganal.c (control_dependences::find_control_dependence): Adjust.
3637 (control_dependences::control_dependences): Likewise.
3638 (control_dependences::~control_dependence): Likewise.
3639 (control_dependences::get_edge): Remove.
3640 (control_dependences::get_edge_src): Add.
3641 (control_dependences::get_edge_dest): Likewise.
3642 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Use
3643 get_edge_src.
3644 (perform_tree_ssa_dce): Adjust.
3645 * tree-loop-distribution.c (create_edge_for_control_dependence): Use
3646 get_edge_src.
3647 (pass_loop_distribution::execute): Adjust. Do loop destroying
3648 conditional on changed.
3649
3650 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3651
3652 PR target/69857
3653 * config/arm/arm.c (gen_operands_ldrd_strd): Remove bogus early
3654 return. Reindent transformation comment and mention the ARM state
3655 behavior.
3656
3657 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
3658
3659 PR middle-end/71252
3660 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Add stmt_to_insert
3661 after build_and_add_sum creates new use stmt.
3662
3663 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
3664
3665 * tree-vect-stmts.c (vectorizable_load): Reorder checks so that
3666 load_lanes/grouped_load classification comes first. Don't check
3667 whether the vectorization factor is a multiple of the group size
3668 for load_lanes.
3669
3670 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
3671
3672 * tree-vect-data-refs.c (vect_analyze_group_access_1): Set
3673 GROUP_GAP for single-element interleaving.
3674 * tree-vect-stmts.c (vectorizable_load): Remove force_peeling
3675 variable.
3676
3677 2016-05-24 Richard Biener <rguenther@suse.de>
3678
3679 PR middle-end/70434
3680 PR c/69504
3681 * tree-ssa.c (non_rewritable_mem_ref_base): Make sure to mark
3682 bases which are accessed with non-invariant indices.
3683 * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Re-write
3684 constant index ARRAY_REFs of vectors into BIT_FIELD_REFs.
3685
3686 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
3687
3688 PR middle-end/71170
3689 * tree-ssa-reassoc.c (struct operand_entry): Add field stmt_to_insert.
3690 (add_to_ops_vec): Add stmt_to_insert.
3691 (add_repeat_to_ops_vec): Init stmt_to_insert.
3692 (insert_stmt_before_use): New.
3693 (transform_add_to_multiply): Remove mult_stmt insertion and add it
3694 to ops vector.
3695 (get_ops): Init stmt_to_insert.
3696 (maybe_optimize_range_tests): Likewise.
3697 (rewrite_expr_tree): Insert stmt_to_insert before use stmt.
3698 (rewrite_expr_tree_parallel): Likewise.
3699 (reassociate_bb): Likewise.
3700
3701 2016-05-23 Michael Meissner <meissner@linux.vnet.ibm.com>
3702
3703 PR target/71201
3704 * config/rs6000/altivec.md (altivec_vperm_<mode>_internal): Drop
3705 ISA 3.0 xxperm fusion alternative.
3706 (altivec_vperm_v8hiv16qi): Likewise.
3707 (altivec_vperm_<mode>_uns_internal): Likewise.
3708 (vperm_v8hiv4si): Likewise.
3709 (vperm_v16qiv8hi): Likewise.
3710
3711 2016-05-23 Michael Meissner <meissner@linux.vnet.ibm.com>
3712 Kelvin Nilsen <kelvin@gcc.gnu.org>
3713
3714 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate
3715 vpermr/xxpermr on ISA 3.0.
3716 (altivec_expand_vec_perm_le): Likewise.
3717 * config/rs6000/altivec.md (UNSPEC_VPERMR): New unspec.
3718 (altivec_vpermr_<mode>_internal): Add VPERMR/XXPERMR support for
3719 ISA 3.0.
3720
3721 2016-05-23 Uros Bizjak <ubizjak@gmail.com>
3722
3723 * config/i386/i386.h (IS_STACK_MODE): Enable for
3724 TARGET_MIX_SSE_I387. Rewrite using X87_FLOAT_MODE_P and
3725 SSE_FLOAT_MODE_P macros.
3726 * config/i386/i386.c (ix86_preferred_reload_class): Use
3727 IS_STACK_MODE, INTEGER_CLASS_P, FLOAT_CLASS_P and Q_CLASS_P macros.
3728 Cleanup regclass processing for CONST_DOUBLE_P.
3729 (ix86_preferred_output_reload_class): Use IS_STACK_MODE macro.
3730 (ix86_rtx_costs): Remove redundant TARGET_80387 check
3731 with IS_STACK_MODE macro.
3732 * config/i386/i386.md: Replace SSE_FLOAT_MODE_P (DFmode)
3733 with TARGET_SSE2.
3734 (*movdf_internal): Use IS_STACK_MODE macro.
3735 (*movsf_internal): Ditto.
3736
3737 2016-05-23 Marc Glisse <marc.glisse@inria.fr>
3738
3739 * match.pd (a * (1 << b), ~x & ~y, ~X ^ ~Y, (X ^ Y) ^ Y, ~ (-A),
3740 ~ (A - 1), ~(~X >> Y), ~(~X >>r Y)): Relax constraints.
3741
3742 2016-05-23 Jeff Law <law@redhat.com>
3743
3744 * tree-ssa-threadbackward.c (profitable_jump_thread_path): New function
3745 extracted from ...
3746 (fsm_find_control_statement_thread_paths): Call it.
3747
3748 2016-05-23 Martin Jambor <mjambor@suse.cz>
3749
3750 PR ipa/71234
3751 * ipa-cp.c (ipa_get_indirect_edge_target_1): Only check value of
3752 from_global_constant if t is not NULL.
3753
3754 2016-05-23 Marek Polacek <polacek@redhat.com>
3755
3756 PR c/49859
3757 * common.opt (Wswitch-unreachable): New option.
3758 * doc/invoke.texi: Document -Wswitch-unreachable.
3759 * gimplify.c (gimplify_switch_expr): Implement the -Wswitch-unreachable
3760 warning.
3761
3762 2016-05-23 Bin Cheng <bin.cheng@arm.com>
3763
3764 * tree-ssa-address.c (copy_ref_info): Check NULL TMR_STEP when
3765 TMR_INDEX is non-NULL.
3766
3767 2016-05-23 Richard Biener <rguenther@suse.de>
3768
3769 PR tree-optimization/71230
3770 * tree-ssa-reassoc.c (acceptable_pow_call): Move initial condition...
3771 (try_special_add_to_ops): ... here. Always test for single-use.
3772
3773 2016-05-23 Martin Jambor <mjambor@suse.cz>
3774
3775 * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Create an empty
3776 default block if a PHI node in the original one would be resized.
3777
3778 2016-05-23 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
3779
3780 PR tree-optimization/58135
3781 * tree-vect-slp.c: When group size is not multiple
3782 of vector size, allow splitting of store group at
3783 vector boundary.
3784
3785 2016-05-23 Christophe Lyon <christophe.lyon@linaro.org>
3786
3787 * config/arm/arm_neon.h (vtst_p16, vtstq_p16): New.
3788
3789 2016-05-22 Jakub Jelinek <jakub@redhat.com>
3790
3791 * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
3792 vec_set_hi_<mode><mask_name>): Add && <mask_avx512dq_condition>
3793 condition. For !TARGET_AVX512DQ, emit 32x4 instruction instead
3794 of 64x2.
3795
3796 * config/i386/sse.md (vec_set_lo_v16hi, vec_set_hi_v16hi,
3797 vec_set_lo_v32qi, vec_set_hi_v32qi): Add alternative with
3798 v constraint instead of x and vinserti32x4 insn.
3799
3800 * config/i386/sse.md (i128vldq): New mode iterator.
3801 (avx2_vbroadcasti128_<mode>, avx_vbroadcastf128_<mode>): Add
3802 avx512dq and avx512vl alternatives.
3803
3804 * config/i386/sse.md (avx2_vec_dupv4df): Use v instead of x
3805 constraint, use maybe_evex prefix instead of vex.
3806 (vec_dupv4sf): Use v constraint instead of x for output
3807 operand except for noavx alternative, use Yv constraint
3808 instead of x for input. Use maybe_evex prefix instead of vex.
3809 (*vec_dupv4si): Likewise.
3810 (*vec_dupv2di): Likewise.
3811
3812 2016-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
3813
3814 PR middle-end/40921
3815 * tree-ssa-reassoc.c (try_special_add_to_ops): New.
3816 (linearize_expr_tree): Call try_special_add_to_ops.
3817 (reassociate_bb): Convert MULT_EXPR by (-1) to NEGATE_EXPR.
3818
3819 2016-05-21 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
3820
3821 * config/avr/avr.c (avr_expand_prologue): Add INCOMING_FRAME_SP_OFFSET
3822 to computed stack_usage.
3823
3824 2016-05-21 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
3825
3826 PR target/71103
3827 * config/avr/avr.md (define_expand "mov<mode>"): If the source
3828 operand is subreg (symbol_ref) then move the symbol ref to register.
3829
3830 2016-05-21 Jan Hubicka <hubicka@ucw.cz>
3831
3832 * tree.c (array_at_struct_end_p): Look through MEM_REF.
3833
3834 2016-05-21 Kugan Vivekanandarajah <kuganv@linaro.org>
3835
3836 PR middle-end/71179
3837 * tree-ssa-reassoc.c (transform_add_to_multiply): Disallow float
3838 VECTOR type.
3839
3840 2016-05-20 Eric Botcazou <ebotcazou@adacore.com>
3841
3842 * tree-vrp.c (compare_values_warnv): Simplify handling of symbolic
3843 ranges by calling get_single_symbol and tidy up. Look more closely
3844 into NAME + CST1 vs CST2 comparisons if type overflow is undefined.
3845
3846 2016-05-20 Jeff Law <law@redhat.com>
3847
3848 * bitmap.c (bitmap_find_bit): Remove useless test.
3849
3850 2016-05-20 Segher Boessenkool <segher@kernel.crashing.org>
3851
3852 * function.c (thread_prologue_and_epilogue_insns): Commit the
3853 insertion of the epilogue.
3854
3855 2016-05-20 Martin Jambor <mjambor@suse.cz>
3856
3857 PR tree-optimization/70884
3858 * tree-sra.c (initialize_constant_pool_replacements): Do not check
3859 should_scalarize_away_bitmap and cannot_scalarize_away_bitmap bits.
3860 (sort_and_splice_var_accesses): Do not consider multiple scalar reads
3861 of constant pool data as a reason for scalarization.
3862
3863 2016-05-20 Eric Botcazou <ebotcazou@adacore.com>
3864
3865 * config/arm/arm.c (arm_expand_prologue): Set the stack usage to 0
3866 for naked functions.
3867 (thumb1_expand_prologue): Likewise.
3868
3869 2016-05-20 Nathan Sidwell <nathan@acm.org>
3870
3871 * config/nvptx/nptx.c (nvptx_option_override): Only set
3872 flag_toplevel_reorder, if not explicitly specified. Set
3873 flag_no_common, unless explicitly specified.
3874
3875 2016-05-20 David Malcolm <dmalcolm@redhat.com>
3876
3877 * calls.c (can_implement_as_sibling_call_p): Mark param
3878 reg_parm_stack_space with ATTRIBUTE_UNUSED.
3879
3880 2016-05-20 Uros Bizjak <ubizjak@gmail.com>
3881
3882 * config/i386/i386.c (ix86_rtx_costs) <case CONST_DOUBLE>:
3883 Use IS_STACK_MODE when calculating cost of standard 80387 constants.
3884 Fallthru to CONST_VECTOR case to calculate cost of standard SSE
3885 constants.
3886 <case CONST_WIDE_INT>: Calculate cost of (MEM (SYMBOL_REF)).
3887 (ix86_legitimate_constant_p): Use CASE_CONST_SCALAR_INT
3888 and CASE_CONST_ANY.
3889
3890 2016-05-20 Cesar Philippidis <cesar@codesourcery.com>
3891
3892 * config/nvptx/nvptx.md (sincossf3): New pattern.
3893
3894 2016-05-20 David Malcolm <dmalcolm@redhat.com>
3895
3896 * calls.c (maybe_complain_about_tail_call): New function.
3897 (initialize_argument_information): Call
3898 maybe_complain_about_tail_call when clearing *may_tailcall.
3899 (can_implement_as_sibling_call_p): Call
3900 maybe_complain_about_tail_call when returning false.
3901 (expand_call): Read CALL_EXPR_MUST_TAIL_CALL and, if set,
3902 ensure try_tail_call is set. Call maybe_complain_about_tail_call
3903 if tail-call optimization fails.
3904 * cfgexpand.c (expand_call_stmt): Initialize
3905 CALL_EXPR_MUST_TAIL_CALL from gimple_call_must_tail_p.
3906 * gimple-pretty-print.c (dump_gimple_call): Dump
3907 gimple_call_must_tail_p.
3908 * gimple.c (gimple_build_call_from_tree): Call
3909 gimple_call_set_must_tail with the value of
3910 CALL_EXPR_MUST_TAIL_CALL.
3911 * gimple.h (enum gf_mask): Add GF_CALL_MUST_TAIL_CALL.
3912 (gimple_call_set_must_tail): New function.
3913 (gimple_call_must_tail_p): New function.
3914 * print-tree.c (print_node): Update printing of TREE_STATIC
3915 to reflect its use for CALL_EXPR_MUST_TAIL_CALL.
3916 * tree-core.h (struct tree_base): Add MUST_TAIL_CALL to the
3917 trailing comment listing applicable flags.
3918 * tree.h (CALL_EXPR_MUST_TAIL_CALL): New macro.
3919
3920 2016-05-20 David Malcolm <dmalcolm@redhat.com>
3921
3922 * calls.c (expand_call): Move "Rest of purposes for tail call
3923 optimizations to fail" to...
3924 (can_implement_as_sibling_call_p): ...this new function, and
3925 split into multiple "if" statements.
3926
3927 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
3928
3929 * cfgloop.h (expected_loop_iterations_unbounded,
3930 expected_loop_iterations): Unconstify.
3931 * cfgloopanal.c (expected_loop_iterations_unbounded): Sanity check the
3932 profile with known upper bound; return 3 when profile is absent.
3933 (expected_loop_iterations): Update.
3934
3935 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
3936
3937 * loop-doloop.c (doloop_optimize): Use get_estimated_loop_iterations_int
3938 and get_max_loop_iterations_int.
3939
3940 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
3941
3942 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can not produce
3943 realistic upper bounds here.
3944
3945 2016-05-20 Jakub Jelinek <jakub@redhat.com>
3946
3947 PR c++/71210
3948 * gimple-fold.c (gimple_fold_call): Do not remove lhs of noreturn
3949 calls if the LHS is variable length or has addressable type.
3950 If targets[0]->decl is a noreturn call with void return type and
3951 zero arguments, adjust fntype and remove lhs in that case.
3952
3953 2016-05-20 Marc Glisse <marc.glisse@inria.fr>
3954
3955 PR tree-optimization/71079
3956 PR tree-optimization/71206
3957 * match.pd ((X ^ Y) ^ (X ^ Z)): Convert the arguments.
3958
3959 2016-05-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3960
3961 * tree-vectorizer.c (get_vec_alignment_for_decl): New static function.
3962 (get_vec_alignment_for_array_decl): Likewise.
3963 (get_vec_alignment_for_record_decl): Likewise.
3964 (increase_alignment::execute): Move code to find alignment to
3965 get_vec_alignment_for_array_decl and call get_vec_alignment_for_decl.
3966 (type_align_map): New hash_map.
3967
3968 2016-05-20 Richard Guenther <rguenther@suse.de>
3969
3970 PR tree-optimization/29756
3971 * tree.def (BIT_INSERT_EXPR): New tcc_expression tree code.
3972 * expr.c (expand_expr_real_2): Handle BIT_INSERT_EXPR.
3973 * fold-const.c (operand_equal_p): Likewise.
3974 (fold_ternary_loc): Add constant folding of BIT_INSERT_EXPR.
3975 * gimplify.c (gimplify_expr): Handle BIT_INSERT_EXPR.
3976 * tree-inline.c (estimate_operator_cost): Likewise.
3977 * tree-pretty-print.c (dump_generic_node): Likewise.
3978 * tree-ssa-operands.c (get_expr_operands): Likewise.
3979 * cfgexpand.c (expand_debug_expr): Likewise.
3980 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
3981 * gimple.c (get_gimple_rhs_num_ops): Handle BIT_INSERT_EXPR.
3982 * tree-cfg.c (verify_gimple_assign_ternary): Verify BIT_INSERT_EXPR.
3983 * tree-ssa.c (non_rewritable_lvalue_p): We can rewrite
3984 vector inserts using BIT_FIELD_REF or MEM_REF on the lhs.
3985 (execute_update_addresses_taken): Do it.
3986
3987 2016-05-20 Richard Biener <rguenther@suse.de>
3988
3989 PR tree-optimization/71185
3990 * tree-ssa-loop-prefetch.c (gather_memory_references): Drop
3991 register operations.
3992
3993 2016-05-20 Richard Biener <rguenther@suse.de>
3994
3995 * tree-if-conv.c (add_bb_predicate_gimplified_stmts): Use
3996 gimple_seq_add_seq_without_update.
3997 (release_bb_predicate): Assert we have no operands to free.
3998 (if_convertible_loop_p_1): Calculate post dominators later.
3999 Do not free BB predicates here.
4000 (combine_blocks): Do not recompute BB predicates.
4001 (version_loop_for_if_conversion): Save BB predicates around
4002 loop versioning.
4003
4004 2016-05-19 Segher Boessenkool <segher@kernel.crashing.org>
4005
4006 * function.c (make_epilogue_seq): Remove epilogue_end parameter.
4007 (thread_prologue_and_epilogue_insns): Remove bb_flags. Restructure
4008 code. Ignore sibcalls on EDGE_IGNORE edges.
4009 * shrink-wrap.c (handle_simple_exit): New function. Set EDGE_IGNORE
4010 on edges for sibcalls that run without prologue. The rest of the
4011 function is combined from...
4012 (fix_fake_fallthrough_edge): ... this, and ...
4013 (try_shrink_wrapping): ... a part of this. Remove the bb_with
4014 function argument, make it a local variable.
4015
4016 2016-05-19 Sandra Loosemore <sandra@codesourcery.com>
4017
4018 * config/i386/cygming.h (DWARF2_UNWIND_INFO): Allow
4019 --disable-sjlj-exceptions for TARGET_BI_ARCH to select DWARF-2 EH
4020 for 32-bit mode and SEH for 64-bit.
4021 * config/i386/mingw32.h (SHARED_LIBGCC_UNDEFS_SPEC): Handle
4022 TARGET_64BIT_DEFAULT.
4023
4024 2016-05-19 Ryan Burn <contact@rnburn.com>
4025
4026 * Makefile.in (GTFILES): Add cilk.h and cilk-common.c.
4027 * gengtype.c (open_base_files): Add cilk.h to ifiles.
4028
4029 2016-05-19 Uros Bizjak <ubizjak@gmail.com>
4030
4031 * sched-deps.c (sched_analyze_2) <case TRAP_IF>: Also
4032 force pending loads from memory.
4033
4034 2016-05-19 Kelvin Nilsen <kelvin@gcc.gnu.org>
4035
4036 * config/rs6000/altivec.md (UNSPEC_DARN): New unspec constant.
4037 (UNSPEC_DARN_32): New unspec constant.
4038 (UNSPEC_DARN_RAW): New unspec constant.
4039 (darn_32): New instruction.
4040 (darn_raw): New instruction.
4041 (darn): New instruction.
4042 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_0): Add
4043 support and documentation for this macro.
4044 (BU_P9_MISC_1): New macro definition.
4045 (BU_P9_64BIT_MISC_0): New macro definition.
4046 (BU_P9_MISC_0): New macro definition.
4047 (darn_32): New builtin definition.
4048 (darn_raw): New builtin definition.
4049 (darn): New builtin definition.
4050 * config/rs6000/rs6000.c: Add #define RS6000_BUILTIN_0 and #undef
4051 RS6000_BUILTIN_0 directives to surround each occurrence of
4052 #include "rs6000-builtin.def".
4053 (rs6000_builtin_mask_calculate): Add in the RS6000_BTM_MODULO and
4054 RS6000_BTM_64BIT flags to the returned mask, depending on
4055 configuration.
4056 (def_builtin): Correct an error in the assignments made to the
4057 debugging variable attr_string.
4058 (rs6000_expand_builtin): Add support for no-operand built-in
4059 functions.
4060 (builtin_function_type): Remove fatal_error assertion that is no
4061 longer valid.
4062 (rs6000_common_init_builtins): Add support for no-operand built-in
4063 functions.
4064 * config/rs6000/rs6000.h (RS6000_BTM_MODULO): New macro
4065 definition.
4066 (RS6000_BTM_PURE): Enhance comment to clarify intent of this flag
4067 definition.
4068 (RS6000_BTM_64BIT): New macro definition.
4069 * doc/extend.texi: Document __builtin_darn (void),
4070 __builtin_darn_raw (void), and __builtin_darn_32 (void) built-in
4071 functions.
4072
4073 2016-05-19 Jan Hubicka <hubicka@ucw.cz>
4074
4075 * tree-vect-loop.c (vect_analyze_loop_2): Use also
4076 max_loop_iterations_int.
4077
4078 2016-05-19 Marek Polacek <polacek@redhat.com>
4079
4080 PR tree-optimization/71031
4081 * tree-vrp.c (extract_range_from_binary_expr_1): Turn assert into a
4082 condition and adjust the code a bit.
4083
4084 2016-05-19 Martin Liska <mliska@suse.cz>
4085
4086 * tree-vect-stmts.c (vectorizable_simd_clone_call): Utilize
4087 auto_vec instead of vec.
4088
4089 2016-05-19 Martin Liska <mliska@suse.cz>
4090
4091 * tree-parloops.c (oacc_entry_exit_ok): Release a vector.
4092
4093 2016-05-19 Martin Liska <mliska@suse.cz>
4094
4095 * tree-if-conv.c (ifcvt_repair_bool_pattern): Utilize auto_vecs.
4096
4097 2016-05-19 Martin Liska <mliska@suse.cz>
4098
4099 * ipa-pure-const.c (set_function_state): Remove an existing
4100 funct_state.
4101 (remove_node_data): Do not free it as it's released
4102 in set_function_state.
4103
4104 2016-05-19 Martin Liska <mliska@suse.cz>
4105
4106 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Release
4107 bitmap.
4108
4109 2016-05-19 Martin Liska <mliska@suse.cz>
4110
4111 * omp-simd-clone.c (simd_clone_adjust): Release vector.
4112
4113 2016-05-19 Martin Liska <mliska@suse.cz>
4114
4115 * tree-ssa-reassoc.c (eliminate_duplicate_pair): Truncate
4116 an auto_vec instead of re-creating it.
4117
4118 2016-05-19 Martin Liska <mliska@suse.cz>
4119
4120 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Use
4121 auto_vec instead of vec.
4122
4123 2016-05-19 Martin Liska <mliska@suse.cz>
4124
4125 * lto-section-in.c (lto_get_section_data): Call
4126 lto_check_version with additional argument.
4127 * lto-streamer.c (lto_check_version): Add new argument.
4128 * lto-streamer.h (lto_check_version): Likewise.
4129
4130 2016-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4131
4132 * config/arm/arm.c (arm_new_rtx_costs, SIGN_EXTEND case):
4133 Don't add cost of inner memory when handling sign-extended loads.
4134
4135 2016-05-19 Ilya Enkovich <ilya.enkovich@intel.com>
4136
4137 PR rtl-optimization/71148
4138 * cse.c (cse_main): Free dominance info.
4139 (rest_of_handle_cse): Don't free dominance info.
4140 (rest_of_handle_cse2): Likewise.
4141 (rest_of_handle_cse_after_global_opts): Likewise.
4142
4143 2016-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4144
4145 PR target/71056
4146 * config/arm/arm-builtins.c (arm_builtin_vectorized_function): Return
4147 NULL_TREE early if NEON is not available. Remove now redundant check
4148 in ARM_CHECK_BUILTIN_MODE.
4149
4150 2016-05-19 Maxim Ostapenko <m.ostapenko@samsung.com>
4151
4152 PR sanitizer/64354
4153 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Add new
4154 builtin __SANITIZE_THREAD__ macros for fsanitize=thread switch.
4155 * doc/cpp.texi: Document new macros.
4156
4157 2016-05-19 Bin Cheng <bin.cheng@arm.com>
4158
4159 PR tree-optimization/69848
4160 * tree-vect-loop.c (vectorizable_reduction): Don't factor
4161 comparison expr out of VEC_COND_EXPR for COND_REDUCTION.
4162
4163 2016-05-19 Segher Boessenkool <segher@kernel.crashing.org>
4164
4165 * function.c (thread_prologue_and_epilogue_insn): Move the
4166 "goto epilogue_done" one block later.
4167
4168 2016-05-19 Richard Biener <rguenther@suse.de>
4169
4170 PR tree-optimization/70729
4171 * passes.def: Move LIM pass before PRE. Remove no longer
4172 required copyprop and move first DCE out of the loop pipeline.
4173
4174 2016-05-18 David Malcolm <dmalcolm@redhat.com>
4175
4176 PR driver/69265
4177 * Makefile.in (GCC_OBJS): Move spellcheck.o to...
4178 (OBJS-libcommon-target): ...here.
4179 * opts-common.c: Include spellcheck.h.
4180 (cmdline_handle_error): Build a vec of valid options and use it
4181 to suggest provide hints for misspelled arguments.
4182
4183 2016-05-18 Jakub Jelinek <jakub@redhat.com>
4184
4185 PR c++/71100
4186 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Don't drop
4187 lhs if it has TREE_ADDRESSABLE type.
4188
4189 2016-05-18 Uros Bizjak <ubizjak@gmail.com>
4190
4191 PR target/71145
4192 * config/alpha/alpha.md (trap): Add (use (reg:DI 29)).
4193 (*exception_receiver_1): Return "#" for TARGET_EXPLICIT_RELOCS.
4194
4195 2016-05-18 Martin Jambor <mjambor@suse.cz>
4196
4197 PR ipa/69708
4198 * ipa-cp.c (ipa_get_jf_pass_through_result): Allow non-ip constant
4199 input for NOP_EXPR pass-through functions.
4200 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Allow
4201 aggregate global constant VAR_DECLs in constant jump functions.
4202
4203 2016-05-18 Martin Jambor <mjambor@suse.cz>
4204
4205 PR ipa/69708
4206 * ipa-prop.c (parm_preserved_before_stmt_p): Return true for loads
4207 from TREE_READONLY parameters.
4208
4209 2016-05-18 Martin Jambor <mjambor@suse.cz>
4210
4211 PR ipa/69708
4212 * cgraph.h (cgraph_indirect_call_info): New field
4213 guaranteed_unmodified.
4214 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also pass parameter value
4215 to ipa_find_agg_cst_for_param, check guaranteed_unmodified when
4216 appropriate.
4217 * ipa-inline-analysis.c (evaluate_conditions_for_known_args): Also
4218 pass the parameter value to ipa_find_agg_cst_for_param.
4219 * ipa-prop.c (ipa_load_from_parm_agg): New parameter
4220 guaranteed_unmodified, store AA results there instead of bailing out
4221 if present.
4222 (ipa_note_param_call): Also initialize guaranteed_unmodified flag.
4223 (ipa_analyze_indirect_call_uses): Also set guaranteed_unmodified flag.
4224 (find_constructor_constant_at_offset): New function.
4225 (ipa_find_agg_cst_from_init): Likewise.
4226 (ipa_find_agg_cst_for_param): Also seearch for aggregate values in
4227 static initializers of contants, report back through a new paameter
4228 from_global_constant if that was the case.
4229 (try_make_edge_direct_simple_call): Also pass parameter value to
4230 ipa_find_agg_cst_for_param, check guaranteed_unmodified when
4231 appropriate.
4232 (ipa_write_indirect_edge_info): Stream new flag guaranteed_unmodified.
4233 (ipa_read_indirect_edge_info): Likewise.
4234 * ipa-prop.h (ipa_find_agg_cst_for_param): Update declaration.
4235 (ipa_load_from_parm_agg): Likewise.
4236
4237 2016-05-18 Jiong Wang <jiong.wang@arm.com>
4238
4239 PR rtl-optimization/71150
4240 * lra-constraint (process_addr_reg): Guard "in_class_p" with REG_P
4241 check.
4242
4243 2016-05-18 Michael Meissner <meissner@linux.vnet.ibm.com>
4244
4245 PR target/70915
4246 * config/rs6000/constraints.md (wE constraint): New constraint
4247 for a vector constant that can be loaded with XXSPLTIB.
4248 (wM constraint): New constraint for a vector constant of a 1's.
4249 (wS constraint): New constraint for a vector constant that can be
4250 loaded with XXSPLTIB and a vector sign extend instruction.
4251 * config/rs6000/predicates.md (xxspltib_constant_split): New
4252 predicates for wE/wS constraints.
4253 (xxspltib_constant_nosplit): Likewise.
4254 (easy_vector_constant): Add support for constants that can be
4255 loaded via XXSPLTIB.
4256 (all_ones_constant): New predicate for vector constant with all
4257 1's set.
4258 (splat_input_operand): Add support for ISA 3.0 word splat operations.
4259 * config/rs6000/rs6000.c (xxspltib_constant_p): New function to
4260 return if a constant can be loaded with the ISA 3.0 XXSPLTIB
4261 instruction and possibly with a sign extension.
4262 (output_vec_const_move): Add support for XXSPLTIB. If we are
4263 loading up 0/-1 into Altivec registers, prefer using VSPLTISW
4264 instead of XXLXOR/XXLORC.
4265 (rs6000_expand_vector_init): Add support for ISA 3.0 word splat
4266 operations.
4267 (rs6000_legitimize_reload_address): Likewise.
4268 (rs6000_output_move_128bit): Use output_vec_const_move to emit
4269 constants.
4270 * config/rs6000/vsx.md (VSX_M): Add TImode (if -mvsx-timode) and
4271 combine VSX_M and VSX_M2 into one iterator.
4272 (VSX_M2): Likewise.
4273 (VSINT_84): New iterators for loading constants with XXSPLTIB.
4274 (VSINT_842): Likewise.
4275 (UNSPEC_VSX_SIGN_EXTEND): New UNSPEC.
4276 (xxspltib_v16qi): New insns to load up constants with the ISA 3.0
4277 XXSPLTIB instruction.
4278 (xxspltib_<mode>_nosplit): Likewise.
4279 (xxspltib_<mode>_split): New insn to load up constants with
4280 XXSPLTIB and a sign extend instruction.
4281 (vsx_mov<mode>): Replace single move that handled all vector types
4282 with separate 32-bit and 64-bit moves. Combine the movti_<bit>
4283 moves (when -mvsx-timode is in effect) into the main vector
4284 moves. Eliminate separate moves for <VSr> <VSa>, where the
4285 preferred register class (<VSr>) is listed first, and the
4286 secondary register class (<VSa>) is listed second with a '?' to
4287 discourage use. Prefer loading 0/-1 in any VSX register for ISA
4288 3.0, and Altivec registers for ISA 2.06/2.07 (PR target/70915) so
4289 that if the register was involved in a slow operation, the
4290 clear/set operation does not wait for the slow operation to
4291 finish. Adjust the length attributes for 32-bit mode. Use
4292 rs6000_output_move_128bit and drop the use of the string
4293 instructions for 32-bit movti when -mvsx-timode is in effect. Use
4294 spacing so that the alternatives and attributes don't generate
4295 long lines, and put things in columns, so that it is easier to
4296 match up the operands and attributes with the insn alternatives.
4297 (vsx_mov<mode>_64bit): Likewise.
4298 (vsx_mov<mode>_32bit): Likewise.
4299 (vsx_movti_64bit): Fold movti into normal vector moves.
4300 (vsx_movti_32bit): Likewise.
4301 (vsx_splat_<mode>, V4SI/V4SF modes): Add support for ISA 3.0 word
4302 splat instructions.
4303 (vsx_splat_v4si_internal): Likewise.
4304 (vsx_splat_v4sf_internal): Likewise.
4305 (vector fusion peepholes): Use VSX_M instead of VSX_M2.
4306 (vsx_sign_extend_qi_<mode>): New ISA 3.0 instructions to sign
4307 extend vector elements.
4308 (vsx_sign_extend_hi_<mode>): Likewise.
4309 (vsx_sign_extend_si_v2di): Likewise.
4310 * config/rs6000/rs6000-protos.h (xxspltib_constant_p): Add
4311 declaration.
4312 * doc/md.texi (PowerPC constraints): Document the wE, wM, and wS
4313 constraints. Add trailing period to wL documentation.
4314
4315 2016-05-18 Richard Sandiford <richard.sandiford@arm.com>
4316
4317 PR middle-end/71020
4318 * tree-dfa.h (replace_abnormal_ssa_names): Declare.
4319 * tree-dfa.c (replace_abnormal_ssa_names): New function.
4320 * tree-call-cdce.c: Include tree-dfa.h.
4321 (can_guard_call_p): New function, extracted from...
4322 (can_use_internal_fn): ...here.
4323 (shrink_wrap_one_built_in_call_with_conds): Remove failure path
4324 and return void.
4325 (shrink_wrap_one_built_in_call): Likewise.
4326 (use_internal_fn): Likewise.
4327 (shrink_wrap_conditional_dead_built_in_calls): Update accordingly
4328 and return void. Call replace_abnormal_ssa_names.
4329 (pass_call_cdce::execute): Check can_guard_call_p during the
4330 initial walk. Assume shrink_wrap_conditional_dead_built_in_calls
4331 will always change something.
4332
4333 2016-05-18 Martin Jambor <mjambor@suse.cz>
4334
4335 PR ipa/70646
4336 * ipa-prop.c (determine_locally_known_aggregate_parts): Bail out early
4337 if parameter PARAM_IPA_MAX_AGG_ITEMS is zero.
4338
4339 2016-05-18 Martin Jambor <mjambor@suse.cz>
4340
4341 PR ipa/70646
4342 * ipa-inline.h (condition): New field size.
4343 * ipa-inline-analysis.c (add_condition): New parameter SIZE, use it
4344 for comaprison and store it into the new condition.
4345 (evaluate_conditions_for_known_args): Use condition size to check
4346 access sizes for all but CHANGED conditions.
4347 (unmodified_parm_1): New parameter size_p, store access size into it.
4348 (unmodified_parm): Likewise.
4349 (unmodified_parm_or_parm_agg_item): Likewise.
4350 (eliminated_by_inlining_prob): Pass NULL to unmodified_parm as size_p.
4351 (set_cond_stmt_execution_predicate): Extract access sizes and store
4352 them to conditions.
4353 (set_switch_stmt_execution_predicate): Likewise.
4354 (will_be_nonconstant_expr_predicate): Likewise.
4355 (will_be_nonconstant_predicate): Likewise.
4356 (inline_read_section): Stream condition size.
4357 (inline_write_summary): Likewise.
4358
4359 2016-05-18 Richard Biener <rguenther@suse.de>
4360
4361 * tree-ssa-loop-im.c (determine_max_movement): Properly add
4362 condition cost to PHI cost instead of total_cost.
4363
4364 2016-05-18 Martin Liska <mliska@suse.cz>
4365
4366 PR fortran/70856
4367 * ipa-icf.c (sem_variable::merge): Set DECL_PT_UID for
4368 merged variables.
4369
4370 2016-05-18 Richard Biener <rguenther@suse.de>
4371
4372 * lto-streamer.h (LTO_major_version): Bump to 6.
4373
4374 2016-05-18 Segher Boessenkool <segher@kernel.crashing.org>
4375
4376 * function.c (make_split_prologue_seq, make_prologue_seq,
4377 make_epilogue_seq): New functions, factored out from...
4378 (thread_prologue_and_epilogue_insns): Here.
4379
4380 2016-05-18 Segher Boessenkool <segher@kernel.crashing.org>
4381
4382 * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
4383 cleanup_cfg with CLEANUP_EXPENSIVE after shrink-wrapping instead
4384 of before. Add a comment.
4385
4386 2016-05-18 Bin Cheng <bin.cheng@arm.com>
4387
4388 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check invariant
4389 expression pointer, not pointer to the pointer.
4390
4391 2016-05-18 Jakub Jelinek <jakub@redhat.com>
4392
4393 * config/i386/sse.md (pbroadcast_evex_isa): New mode attr.
4394 (avx2_pbroadcast<mode>): Add another alternative with v instead
4395 of x constraints in it, using <pbroadcast_evex_isa> isa.
4396 (avx2_pbroadcast<mode>_1): Similarly, add two such alternatives.
4397
4398 * config/i386/sse.md (<ssse3_avx2>_palignr<mode>): Use
4399 constraint x instead of v in second alternative, add avx512bw
4400 alternative.
4401
4402 * config/i386/sse.md (<ssse3_avx2>_pshufb<mode>3<mask_name>): Use
4403 constraint x instead of v in second alternative, add avx512bw
4404 alternative.
4405
4406 * config/i386/sse.md (*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>): Use
4407 constraint x instead of v in second alternative, add avx512bw
4408 alternative.
4409
4410 * config/i386/sse.md (avx2_pmaddubsw256, ssse3_pmaddubsw128): Add
4411 avx512bw alternative.
4412
4413 2016-05-18 Kirill Yukhin <kirill.yukhin@intel.com>
4414
4415 * config/i386/sse.md (define_insn "*andnot<mode>3"): Extend static
4416 array to 128 chars.
4417 (define_insn "*andnottf3"): Ditto.
4418 (define_insn "*<code><mode>3"/any_logic): Ditto.
4419 (define_insn "*<code>tf3"/any_logic): Ditto.
4420 (define_insn "sse2_storehpd"): Use Yv constraint for scalar
4421 operand to block AVX-512VL insn variant emit when it is not enabled.
4422
4423 2016-05-18 Kirill Yukhin <kirill.yukhin@intel.com>
4424
4425 * config/i386/sse.md (define_insn "*vec_concatv2sf_sse4_1"): Use 'Yv'
4426 constraint fot SF mode.
4427
4428 2016-05-18 Petr Murzin <petr.murzin@intel.com>
4429 Kirill Yukhin <kirill.yukhin@intel.com>
4430
4431 * config/i386/sse.md (define_insn "srcp14<mode>"): Use proper operand
4432 modifiers.
4433 (define_insn "rsqrt14<mode>"): Ditto.
4434 (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
4435 (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
4436 (define_insn "avx512f_<code>v8div16qi2_mask_store"): Ditto.
4437 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
4438 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"):
4439 Ditto.
4440 (define_insn "*avx512f_gatherdi<mode>"): Ditto.
4441 (define_insn "*avx512f_scatterdi<mode>"): Ditto.
4442 * config/i386/i386.c (ix86_print_operand): Expand check for size
4443 override codes for Intel syntax.
4444
4445 2016-05-18 Richard Biener <rguenther@suse.de>
4446
4447 PR tree-optimization/71168
4448 * tree-loop-distribution.c (distribute_loop): Move *destroy_p
4449 initialization earlier.
4450
4451 2016-05-18 James Greenhalgh <james.greenhalgh@arm.com>
4452
4453 * config/aarch64/aarch64-simd.md
4454 (aarch64_reduc_plus_internal<mode>): Rename to...
4455 (reduc_plus_scal): ...This, and remove previous implementation.
4456
4457 2016-05-18 Richard Biener <rguenther@suse.de>
4458
4459 * passes.def: Put late dse and cd_dce in canonical order.
4460
4461 2016-05-17 Jan Hubicka <hubicka@ucw.cz>
4462
4463 * ipa-inline-transform.c (preserve_function_body_p): Look for
4464 first non-thunk clone.
4465 (save_function_body): Save into first non-thunk.
4466 * lto-cgraph.c (lto_output_edge): When streaming thunk do not look
4467 up call stmt id.
4468 (lto_output_node): Inline thunks don't need body in every
4469 partition.
4470 * lto-streamer-in.c: Do not fixup thunk clones.
4471 * cgraphclones.c (cgraph_node::create_edge_including_clone): Skip
4472 thunks.
4473 * tree-inline.c (copy_bb): Be prepared for target node to be new after
4474 folding suceeds.
4475
4476 2016-05-17 Kugan Vivekanandarajah <kuganv@linaro.org>
4477
4478 PR middle-end/63586
4479 * tree-ssa-reassoc.c (transform_add_to_multiply): New.
4480 (reassociate_bb): Call transform_add_to_multiply.
4481
4482 2016-05-17 Kugan Vivekanandarajah <kuganv@linaro.org>
4483
4484 * config/aarch64/aarch64.c (all_extensions): Removed unused
4485 static variable.
4486
4487 2016-05-17 Nathan Sidwell <nathan@acm.org>
4488
4489 * config/nvptx/nvptx.c (nvptx_function_arg_boundary): New.
4490 (TARGET_FUNCTION_ARG_BOUNDARY): Override.
4491
4492 2016-05-17 Mikhail Maltsev <maltsevm@gmail.com>
4493
4494 PR tree-optimization/54579
4495 PR middle-end/55299
4496 * match.pd (~(~X >> Y), ~(~X >>r Y), ~(~X <<r Y)): New patterns.
4497
4498 2016-05-17 Marek Polacek <polacek@redhat.com>
4499
4500 PR ipa/71146
4501 * tree-inline.c (expand_call_inline): Call
4502 maybe_remove_unused_call_args.
4503
4504 2016-05-17 Jim Wilson <jim.wilson@linaro.org>
4505
4506 * doc/cpp.texi (__GNUC__): Major version changes are no longer rare.
4507 * doc/invoke.texi (-mnan=2008): Change signalling to signaling.
4508 * doc/md.texi (fmin@var{m}3): Likewise.
4509
4510 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
4511
4512 * match.pd (X & C): New transformation.
4513
4514 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
4515
4516 * match.pd (~X & Y): New transformation.
4517
4518 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
4519
4520 * tree-vrp.c (simplify_truth_ops_using_ranges): Set range
4521 information for new SSA_NAME.
4522 (simplify_conversion_using_ranges): Get range through get_range_info
4523 instead of get_value_range.
4524
4525 2016-05-17 Jiong Wang <jiong.wang@arm.com>
4526
4527 * config/aarch64/arm_neon.h (vmvn_s8): Reimplement using C operator.
4528 Remove inline assembly.
4529 (vmvn_s16): Likewise.
4530 (vmvn_s32): Likewise.
4531 (vmvn_u8): Likewise.
4532 (vmvn_u16): Likewise.
4533 (vmvn_u32): Likewise.
4534 (vmvnq_s8): Likewise.
4535 (vmvnq_s16): Likewise.
4536 (vmvnq_s32): Likewise.
4537 (vmvnq_u8): Likewise.
4538 (vmvnq_u16): Likewise.
4539 (vmvnq_u32): Likewise.
4540 (vmvn_p8): Likewise.
4541 (vmvnq_p16): Likewise.
4542
4543 2016-05-17 Jiong Wang <jiong.wang@arm.com>
4544
4545 * config/aarch64/aarch64-simd.md (vmul_n_f32): Remove inline assembly.
4546 Use builtin.
4547 (vmul_n_s16): Likewise.
4548 (vmul_n_s32): Likewise.
4549 (vmul_n_u16): Likewise.
4550 (vmul_n_u32): Likewise.
4551 (vmulq_n_f32): Likewise.
4552 (vmulq_n_f64): Likewise.
4553 (vmulq_n_s16): Likewise.
4554 (vmulq_n_s32): Likewise.
4555 (vmulq_n_u16): Likewise.
4556 (vmulq_n_u32): Likewise.
4557
4558 2016-05-17 Jiong Wang <jiong.wang@arm.com>
4559
4560 * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt_to_128df): Extend
4561 to all supported modes. Rename to "*aarch64_mul3_elt_from_dup".
4562
4563 2016-05-17 Jiong Wang <jiong.wang@arm.com>
4564
4565 * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_to_128df): Rename
4566 to *aarch64_fma4_elt_from_dup<mode>.
4567 (*aarch64_fnma4_elt_to_128df): Rename to
4568 *aarch64_fnma4_elt_from_dup<mode>.
4569 * config/aarch64/arm_neon.h (vfma_n_f64): New.
4570 (vfms_n_f32): Likewise.
4571 (vfms_n_f64): Likewise.
4572 (vfmsq_n_f32): Likewise.
4573 (vfmsq_n_f64): Likewise.
4574
4575 2016-05-17 Gerald Pfeifer <gerald@pfeifer.com>
4576
4577 * wide-int.h: Change fixed_wide_int_storage from class to struct.
4578
4579 2016-05-17 Richard Biener <rguenther@suse.de>
4580
4581 PR tree-optimization/71132
4582 * tree-loop-distribution.c (create_rdg_cd_edges): Pass in loop.
4583 Only add control dependences for blocks in the loop.
4584 (build_rdg): Adjust.
4585 (generate_code_for_partition): Return whether loop should
4586 be destroyed and delay that.
4587 (distribute_loop): Likewise.
4588 (pass_loop_distribution::execute): Record loops to be destroyed
4589 and perform delayed destroying of loops.
4590
4591 2016-05-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4592
4593 PR target/70809
4594 * config/aarch64/aarch64-simd.md (aarch64_vmls<mode>): Delete.
4595
4596 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
4597
4598 * config/aarch64/aarch64-elf.h (ASM_OUTPUT_DEF): Delete.
4599
4600 2016-05-17 Ilya Enkovich <ilya.enkovich@intel.com>
4601
4602 PR target/71114
4603 * config/i386/i386.c (dimode_scalar_chain::convert_op): Fix
4604 insertion point for instructions generated by validize_mem.
4605
4606 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
4607
4608 * config/aarch64/aarch64.c (SHIFT_COUNT_TRUNCATED): Wrap definition
4609 in brackets.
4610
4611 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
4612
4613 * config/aarch64/aarch64.c
4614 (aarch64_output_simd_mov_immediate): Make "buf_size" a variable
4615 rather than a macro.
4616
4617 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
4618
4619 * doc/invoke.texi (AArch64 Options): Various updates.
4620
4621 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
4622
4623 * ipa-inline-analysis.c (compute_inline_parameters): Disable inlinig
4624 into instrumentation thunks.
4625 * cif-code.def (CIF_CHKP): New.
4626
4627 2016-05-16 Uros Bizjak <ubizjak@gmail.com>
4628
4629 * config/i386/xopintrin.h: Correct "unsinged" typo in the comments.
4630
4631 2016-05-16 Martin Jambor <mjambor@suse.cz>
4632
4633 * hsa-gen.c (fillup_for_decl): Increase alignment to natural one.
4634 (get_symbol_for_decl): Sorry if a global symbol in under-aligned.
4635
4636 2016-05-16 Marek Polacek <polacek@redhat.com>
4637
4638 * gimple.c (maybe_remove_unused_call_args): Fix typos in the
4639 commentary.
4640
4641 2016-05-16 Martin Jambor <mjambor@suse.cz>
4642
4643 PR hsa/70857
4644 * omp-low.c (grid_expand_target_grid_body): Copy RESULT_DECL of
4645 the outlined kernel function.
4646
4647 2016-05-16 Robert Suchanek <robert.suchanek@imgtec.com>
4648
4649 * config/mips/mips.h (ISA_HAS_LSA): Enable for -mmsa.
4650 (ISA_HAS_DLSA): Ditto.
4651
4652 2016-05-16 Matthew Fortune <matthew.fortune@imgtec.com>
4653
4654 * config/mips/m5100.md (m51_int_load): Update the latency to 2.
4655
4656 2016-05-16 Nathan Sidwell <nathan@acm.org>
4657
4658 * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): Revert.
4659 (nvptx_name_replacement): Restore. Add comment.
4660 (write_fn_proto, write_fn_proto_from_insn,
4661 nvptx_output_call_insn): Restore
4662 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Delete.
4663
4664 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
4665
4666 * config/aarch64/aarch64.md
4667 (add<mode>3_compareC_cconly_imm): Remove use of %w.
4668 (add<mode>3_compareC_imm): Likewise.
4669 (<optab>si3_uxtw): Split into register and immediate variants.
4670 (andsi3_compare0_uxtw): Likewise.
4671 (and<mode>3_compare0): Likewise.
4672 (and<mode>3nr_compare0): Likewise.
4673 (stack_protect_test_<mode>): Don't use %x for memory operands.
4674
4675 2016-05-16 Matthew Fortune <matthew.fortune@imgtec.com>
4676
4677 * config/mips/mips-cpus.def (p5600): Add multi-line brackets.
4678
4679 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
4680
4681 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
4682 Split integer shifts into shift_reg and bfm.
4683 (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
4684 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
4685 (ror<mode>3_insn): Likewise.
4686 (<optab>si3_insn_uxtw): Likewise.
4687 (<optab><mode>3_insn): Change to rotate_imm.
4688 (extr<mode>5_insn_alt): Likewise.
4689 (extrsi5_insn_uxtw): Likewise.
4690 (extrsi5_insn_uxtw_alt): Likewise.
4691
4692 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
4693
4694 * doc/tm.texi: Regenerate.
4695 * doc/tm.texi.in (TARGET_INVALID_PARAMETER_TYPE): Remove.
4696 (TARGET_INVALID_RETURN_TYPE): Remove.
4697 * system.h: Poison TARGET_INVALID_PARAMETER_TYPE and
4698 TARGET_INVALID_RETURN_TYPE.
4699 * target.def (invalid_parameter_type): Remove.
4700 (invalid_return_type): Remove.
4701
4702 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
4703
4704 * ipa-inline-analysis.c (compute_inline_parameters): Be more reailistic
4705 on estimating thunk bodies; do not set inline_failed to CIF_THUNK for
4706 calls from thunk.
4707 * ipa-inline-transform.c (inline_call): When inlining into thunk produce
4708 gimple body.
4709 (preserve_function_body_p): No need to preserve function body
4710 * cif-codes.def (CIF_THUNK): Remove.
4711 * cgraphclones.c (duplicate_thunk_for_node): Thunks calls are inlinable.
4712
4713 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
4714
4715 * tree-inline.c (expand_call_inline): recurse after inlining thunk.
4716
4717 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
4718
4719 * tree.c (free_lang_data_in_decl): Also set target/optimization flags
4720 for thunks.
4721
4722 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
4723
4724 * ipa-inline.c (report_inline_failed_reason): Look into thunks, too
4725 (inline_small_functions): Do not look for function symbol when
4726 resetting caches.
4727
4728 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
4729
4730 * lto-cgraph.c (compute_ltrans_boundary, output_symtab): Fix handling
4731 of inline thunks
4732
4733 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
4734 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4735 Jiong Wang <jiong.wang@arm.com>
4736
4737 * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
4738 for __ARM_FP16_FORMAT_IEEE and __ARM_FP16_FORMAT_ALTERNATIVE.
4739 Define __ARM_FP16_ARGS when appropriate.
4740 * config/arm/arm.c (arm_invalid_parameter_type): Remove
4741 declaration.
4742 (arm_invalid_return_type): Likewise.
4743 (TARGET_INVALID_PARAMETER_TYPE): Remove.
4744 (TARGET_INVALID_RETURN_TYPE): Remove.
4745 (aapcs_vfp_sub_candidate): Allow HFmode.
4746 (aapcs_vfp_allocate): Add comment. Support HFmode.
4747 (aapcs_vfp_allocate_return_reg): Likewise.
4748 (struct aapcs_cp_arg_layout): Slightly reword comments for
4749 is_return_candidate and allocate_return_reg.
4750 (output_mov_vfp): Update assert.
4751 (arm_hard_regno_mode_ok): Remove comment, update HF-mode
4752 condition.
4753 (arm_invalid_parameter_type): Remove.
4754 (amr_invalid_return_type): Remove.
4755 * config/arm/arm.h (TARGET_NEON_FP16): Fix definition.
4756 * config/arm/arm.md (*arm32_movhf): Disable for TARGET_VFP.
4757 * config/arm/vfp.md (*movhf_vfp): Enable for TARGET_VFP.
4758
4759 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
4760
4761 * config/aarch64/aarch64.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
4762 * config/aarch64/arch64-protos.h
4763 (aarch64_legitimize_reload_address): Remove.
4764 * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
4765 Remove.
4766
4767 2016-05-16 Eric Botcazou <ebotcazou@adacore.com>
4768
4769 * configure.ac: Add ACX_NONCANONICAL_HOST.
4770 * configure: Regenerate.
4771 * Makefile.in: Set host_noncanonical.
4772
4773 2016-05-14 Uros Bizjak <ubizjak@gmail.com>
4774
4775 PR target/71097
4776 * config/i386/i386.md (*movtf_internal): Before register allocation,
4777 do not allow FP constants for CM_MEDIUM memory model, allow only
4778 standard FP constants for CM_LARGE and CM_LARGE_PIC models.
4779 (*movxf_internal): Ditto.
4780 (*movdf_internal): Ditto.
4781 (*movsf_internal): Ditto.
4782
4783 2016-05-13 Segher Boessenkool <segher@kernel.crashing.org>
4784
4785 PR rtl-optimization/67483
4786 * combine.c (make_compound_operation): Don't call extract_left_shift
4787 with negative shift amounts.
4788
4789 2016-05-13 Jakub Jelinek <jakub@redhat.com>
4790
4791 PR bootstrap/71071
4792 * fold-const.c (fold_checksum_tree): Allow modification
4793 of TYPE_ALIAS_SET during folding.
4794
4795 * config/i386/i386.c (ix86_compute_frame_layout, ix86_expand_prologue,
4796 ix86_expand_split_stack_prologue): Use HOST_WIDE_INT_C macro.
4797 (ix86_split_to_parts): Likewise. Fix up formatting.
4798
4799 2016-05-13 H.J. Lu <hongjiu.lu@intel.com>
4800
4801 * tree-ssa-loop-ivopts.c (create_new_ivs): Cast to
4802 unsigned HOST_WIDE_INT with HOST_WIDE_INT_PRINT_UNSIGNED in
4803 printf format.
4804
4805 2016-05-13 Nathan Sidwell <nathan@acm.org>
4806
4807 * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): New.
4808 (nvptx_name_replacement): Delete.
4809 (write_fn_proto, write_fn_proto_from_insn,
4810 nvptx_output_call_insn): Remove nvptx_name_replacement call.
4811 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Override.
4812 * langhooks.c (add_builtin_funcction_common): Call
4813 targetm.mangle_decl_assembler_name.
4814
4815 * config/nvptx/nvptx.c (write_fn_proto): Handle
4816 BUILT_IN_ATOMIC_COMPARE_EXCHANGE_n oddity.
4817
4818 2016-05-13 Martin Liska <mliska@suse.cz>
4819
4820 * tree-ssa-loop-ivopts.c (create_new_ivs): Use HOST_WIDE_INT_PRINT_DEC
4821 and PRIu64 in printf format.
4822
4823 2016-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4824
4825 * tree-ssa-loop-ivanon.c (try_unroll_loop_completely): Typo fix in
4826 comment.
4827
4828 2016-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4829
4830 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
4831 Change --param max-completely-peeled-times to
4832 --param max-completely-peel-times in dump file printing.
4833
4834 2016-05-13 Richard Biener <rguenther@suse.de>
4835
4836 PR tree-optimization/42587
4837 * tree-ssa-math-opts.c (perform_symbolic_merge): Handle BIT_FIELD_REF.
4838 (find_bswap_or_nop_1): Likewise.
4839 (bswap_replace): Likewise.
4840
4841 2016-05-13 Martin Liska <mliska@suse.cz>
4842
4843 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern):
4844 Initialize a variable with default value.
4845
4846 2016-05-13 Martin Liska <mliska@suse.cz>
4847
4848 * doc/invoke.texi: Enhance explanation of error recovery
4849 of sanitizers.
4850
4851 2016-05-13 Martin Liska <mliska@suse.cz>
4852
4853 * tree-ssa-loop-ivopts.c (avg_loop_niter): Fix coding style.
4854 (struct cost_pair): Change inv_expr_id (int) to inv_expr
4855 (iv_inv_expr_ent *).
4856 (struct iv_inv_expr_ent): Comment struct fields.
4857 (sort_iv_inv_expr_ent): New function.
4858 (struct ivopts_data): Rename inv_expr_id to max_inv_expr_id.
4859 (struct iv_ca): Replace used_inv_expr and num_used_inv_expr with
4860 a hash_map between iv_inv_expr_ent and number of usages.
4861 (niter_for_exit): Fix coding style.
4862 (tree_ssa_iv_optimize_init): Use renamed variable.
4863 (determine_base_object): Fix coding style.
4864 (alloc_iv): Likewise.
4865 (find_interesting_uses_outside): Likewise.
4866 (add_candidate_1): Likewise.
4867 (add_standard_iv_candidates): Likewise.
4868 (set_group_iv_cost): Replace inv_expr_id with inv_expr.
4869 (prepare_decl_rtl): Fix coding style.
4870 (get_address_cost): Likewise.
4871 (get_shiftadd_cost): Likewise.
4872 (force_expr_to_var_cost): Likewise.
4873 (compare_aff_trees): Likewise.
4874 (get_expr_id): Restructure the function.
4875 (get_loop_invariant_expr_id): Renamed to
4876 get_loop_invariant_expr.
4877 (get_computation_cost_at): Replace usage of inv_expr_id with
4878 inv_expr.
4879 (get_computation_cost): Likewise.
4880 (determine_group_iv_cost_generic): Likewise.
4881 (determine_group_iv_cost_address): Likewise.
4882 (iv_period): Fix coding style.
4883 (iv_elimination_compare_lt): Likewise.
4884 (may_eliminate_iv): Likewise.
4885 (determine_group_iv_cost_cond): Replace usage of inv_expr_id with
4886 inv_expr.
4887 (determine_group_iv_costs): Dump invariant expressions.
4888 (iv_ca_recount_cost): Use the newly added hash_map.
4889 (iv_ca_set_remove_invariants): Fix coding style.
4890 (iv_ca_set_add_invariants): Fix coding style.
4891 (iv_ca_set_no_cp): Utilize the newly added hash_map for used
4892 invariants.
4893 (iv_ca_set_cp): Likewise.
4894 (iv_ca_new): Initialize the newly added hash_map and remove
4895 initialization of fields.
4896 (iv_ca_free): Delete the hash_map.
4897 (iv_ca_dump): Dump invariant expressions.
4898 (iv_ca_extend): Fix coding style.
4899 (try_add_cand_for): Likewise.
4900 (create_new_ivs): Dump information about # of avg iterations and
4901 # of used invariant expressions.
4902 (rewrite_use_compare): Fix coding style.
4903 (free_loop_data): Set default value for max_inv_expr_id.
4904
4905 2016-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
4906
4907 * cse.c (rest_of_handle_cse): Use cleanup_cfg
4908 returned value cse_cfg_altered computation.
4909 (rest_of_handle_cse2): Likewise.
4910 (rest_of_handle_cse_after_global_opts): Likewise.
4911
4912 2016-05-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4913
4914 PR target/53440
4915 * config/arm/arm.c (arm32_output_mi_thunk): New.
4916 (arm_output_mi_thunk): Rename to arm_thumb1_mi_thunk. Rework
4917 to split Thumb1 vs TARGET_32BIT functionality.
4918 (arm_thumb1_mi_thunk): New.
4919
4920 2016-05-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4921
4922 * config/aarch64/aarch64.c (TARGET_OMIT_STRUCT_RETURN_REG): Set
4923 to true.
4924
4925 2016-05-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4926
4927 PR target/71080
4928 * config/i386/i386.c (ix86_in_large_data_p): Guard against NULL exp.
4929
4930 2016-05-13 Eric Botcazou <ebotcazou@adacore.com>
4931
4932 * builtins.c (expand_builtin_memcmp): Do not emit the call here.
4933 (expand_builtin_trap): Emit a regular call.
4934 (set_builtin_user_assembler_name): Remove obsolete cases.
4935 * dse.c (scan_insn): Adjust.
4936 * except.c: Include calls.h.
4937 (sjlj_emit_function_enter): If DONT_USE_BUILTIN_SETJMP is defined,
4938 emit a regular call to setjmp.
4939 * expr.c (emit_block_move_hints): Call emit_block_copy_via_libcall.
4940 (block_move_libcall_safe_for_call_parm): Use memcpy builtin.
4941 (emit_block_move_via_libcall): Delete.
4942 (block_move_fn): Delete.
4943 (init_block_move_fn): Likewise.
4944 (emit_block_move_libcall_fn): Likewise.
4945 (emit_block_op_via_libcall): New function.
4946 (set_storage_via_libcall): Tidy up and use memset builtin.
4947 (block_clear_fn): Delete.
4948 (init_block_clear_fn): Likewise.
4949 (clear_storage_libcall_fn): Likewise.
4950 (expand_assignment): Call emit_block_move_via_libcall.
4951 Do not include gt-expr.h.
4952 * expr.h (emit_block_op_via_libcall): Declare.
4953 (emit_block_copy_via_libcall): New inline function.
4954 (emit_block_move_via_libcall): Likewise.
4955 (emit_block_comp_via_libcall): Likewise.
4956 (block_clear_fn): Delete.
4957 (init_block_move_fn): Likewise.
4958 (init_block_clear_fn): Likewise.
4959 (emit_block_move_via_libcall): Likewise.
4960 (set_storage_via_libcall): Add default parameter value.
4961 * libfuncs.h (enum libfunc_index): Remove obsolete values.
4962 (abort_libfunc): Delete.
4963 (memcpy_libfunc): Likewise.
4964 (memmove_libfunc): Likewise.
4965 (memcmp_libfunc): Likewise.
4966 (memset_libfunc): Likewise.
4967 (setbits_libfunc): Likewise.
4968 (setjmp_libfunc): Likewise.
4969 (longjmp_libfunc): Likewise.
4970 (profile_function_entry_libfunc): Likewise.
4971 (profile_function_exit_libfunc): Likewise.
4972 (gcov_flush_libfunc): Likewise.
4973 * optabs-libfuncs.c (build_libfunc_function): Set DECL_ARTIFICIAL
4974 and DECL_VISIBILITY on the declaration.
4975 (init_optabs): Do not initialize obsolete libfuncs.
4976 * optabs.c (prepare_cmp_insn): Call emit_block_comp_via_libcall.
4977 * tree-core.h (ECF_RET1): Define.
4978 (ECF_TM_PURE): Adjust.
4979 (ECF_TM_BUILTIN): Likewise.
4980 * tree.c (set_call_expr_flags): Deal with ECF_RET1.
4981 (build_common_builtin_nodes): Initialize abort builtin.
4982 Add ECF_RET1 on memcpy, memmove and memset builtins.
4983 Pass final flags for alloca and alloca_with_align builtins.
4984 * config/alpha/alpha.c (alpha_init_libfuncs): Do not initialize
4985 obsolete builtins.
4986 * config/ia64/ia64.c (ia64_vms_init_libfuncs): Likewise.
4987 * config/i386/i386.c (ix86_expand_set_or_movmem): Adjust call to
4988 set_storage_via_libcall and call emit_block_copy_via_libcall.
4989
4990 2016-05-12 Uros Bizjak <ubizjak@gmail.com>
4991
4992 * config/i386/i386.md (*call_got_x32): Change operand 0 to
4993 DImode before it is passed to ix86_output_call_operand.
4994 (*call_value_got_x32): Ditto for operand 1.
4995
4996 2016-05-12 Jiong Wang <jiong.wang@arm.com>
4997
4998 PR rtl-optimization/70904
4999 * lra-constraint.c (process_addr_reg): Relax the restriction on subreg
5000 reload for wide mode.
5001
5002 2016-05-12 Marek Polacek <polacek@redhat.com>
5003
5004 PR c/70756
5005 * langhooks-def.h (lhd_incomplete_type_error): Adjust declaration.
5006 * langhooks.c (lhd_incomplete_type_error): Add location parameter.
5007 * langhooks.h (incomplete_type_error): Likewise.
5008 * tree.c (size_in_bytes_loc): Renamed from size_in_bytes. Add location
5009 parameter, pass it down to incomplete_type_error.
5010 * tree.h (size_in_bytes): New inline overload.
5011 (size_in_bytes_loc): Renamed from size_in_bytes.
5012
5013 2016-05-12 Richard Biener <rguenther@suse.de>
5014
5015 PR tree-optimization/71059
5016 * tree-ssa-pre.c (phi_translate_1): Fully fold translated
5017 nary before looking up or entering the expression into the VN
5018 hashes.
5019 * tree-ssa-sccvn.c (vn_nary_build_or_lookup): Fix comment typo.
5020 Make sure to re-use NARYs without result as inserted by
5021 phi-translation.
5022
5023 2016-05-12 Richard Biener <rguenther@suse.de>
5024
5025 PR tree-optimization/71062
5026 * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
5027 field.
5028 * tree-ssa-structalias.c (set_uids_in_ptset): Set
5029 vars_contains_restrict if the var is a restrict tag.
5030 * tree-ssa-alias.c (ptrs_compare_unequal): If vars_contains_restrict
5031 do not disambiguate pointers against it.
5032 (dump_points_to_solution): Re-structure and adjust for new
5033 vars_contains_restrict flag.
5034 * gimple-pretty-print.c (pp_points_to_solution): Likewise.
5035
5036 2016-05-12 Martin Liska <mliska@suse.cz>
5037
5038 * doc/invoke.texi: Explain connection between
5039 -fsanitize-recover=address and ASAN_OPTIONS="halt_on_error=1".
5040
5041 2016-05-12 Ilya Enkovich <ilya.enkovich@intel.com>
5042
5043 PR tree-optimization/71006
5044 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
5045 consider COND_EXPR as a mask producer.
5046
5047 2016-05-12 Marek Polacek <polacek@redhat.com>
5048
5049 PR driver/71063
5050 * opts.c (common_handle_option): Detect missing argument for --help^.
5051
5052 2016-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5053
5054 PR target/70830
5055 * config/arm/arm.c (arm_output_multireg_pop): Avoid POP instruction
5056 when popping the PC and within an interrupt handler routine.
5057 Add missing tab to output of "ldmfd".
5058 (output_return_instruction): Output LDMFD with SP update rather
5059 than POP when returning from interrupt handler.
5060
5061 2016-05-12 Jakub Jelinek <jakub@redhat.com>
5062
5063 * config/i386/i386.md (isa): Add x64_avx512dq, enable if
5064 TARGET_64BIT && TARGET_AVX512DQ.
5065 * config/i386/sse.md (*vec_extract<mode>): Add avx512bw alternatives.
5066 (*vec_extract<PEXTR_MODE12:mode>_zext): Add avx512bw alternative.
5067 (*vec_extract<ssevecmodelower>_0, *vec_extractv4si_0_zext,
5068 *vec_extractv2di_0_sse): Use v constraint instead of x constraint.
5069 (*vec_extractv4si): Add avx512dq and avx512bw alternatives.
5070 (*vec_extractv4si_zext): Add avx512dq alternative.
5071 (*vec_extractv2di_1): Add x64_avx512dq and avx512bw alternatives,
5072 use v instead of x constraint in other alternatives where possible.
5073
5074 * config/i386/sse.md (sse2_loadld): Use v instead of x
5075 constraint in alternatives 0,1,4.
5076
5077 * config/i386/sse.md (pinsr_evex_isa): New mode attr.
5078 (<sse2p4_1>_pinsr<ssemodesuffix>): Add 2 alternatives with
5079 v constraints instead of x and <pinsr_evex_isa> isa attribute.
5080
5081 PR target/71019
5082 * config/i386/sse.md (<sse2_avx2>_packssdw<mask_name>,
5083 <sse4_1_avx2>_packusdw<mask_name>): Make sure EVEX encoded insn
5084 is not emitted unless TARGET_AVX512BW.
5085 (<sse2_avx2>_packuswb<mask_name>, <sse2_avx2>_packsswb<mask_name>):
5086 Likewise. For TARGET_AVX512BW, use "=v" constraint instead of "=x"
5087 for the result operand.
5088
5089 * config/i386/sse.md (*vec_setv4sf_sse4_1, sse4_1_insertps): Use v
5090 constraint instead of x in avx alternatives. Use maybe_evex instead
5091 of vex prefix.
5092
5093 * config/i386/constraints.md (Yv): New constraint.
5094 * config/i386/i386.h (VALID_AVX512VL_128_REG_MODE): Allow
5095 TFmode and V1TImode in xmm16+ registers for TARGET_AVX512VL.
5096 * config/i386/i386.md (avx512fvecmode): New mode attr.
5097 (*pushtf): Use v constraint instead of x.
5098 (*movtf_internal): Likewise. For TARGET_AVX512VL and
5099 xmm16+ registers, use vmovdqu64 or vmovdqa64 instructions.
5100 (*absneg<mode>2): Use Yv constraint instead of x constraint.
5101 (*absnegtf2_sse): Likewise.
5102 (copysign<mode>3_const, copysign<mode>3_var): Likewise.
5103 * config/i386/sse.md (*andnot<mode>3): Add avx512vl and
5104 avx512f alternatives.
5105 (*andnottf3, *<code><mode>3, *<code>tf3): Likewise.
5106
5107 2016-05-12 Richard Biener <rguenther@suse.de>
5108
5109 PR tree-optimization/71060
5110 * tree-data-ref.c (initialize_data_dependence_relation): Do not
5111 require exact match of DR_BASE_OBJECT but only matching address and
5112 type.
5113
5114 2016-05-12 Richard Biener <rguenther@suse.de>
5115
5116 PR tree-optimization/70986
5117 * cfganal.c: Include cfgloop.h.
5118 (dfs_find_deadend): Prefer to take edges exiting loops.
5119
5120 2016-05-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5121
5122 * gcc.target/powerpc/pr70963.c: Require at least power8 at both
5123 compile and run time.
5124
5125 2016-05-11 Mikhail Maltsev <maltsevm@gmail.com>
5126
5127 PR c/43651
5128 * doc/invoke.texi (Wduplicate-decl-specifier): Document new option.
5129
5130 2016-05-11 Uros Bizjak <ubizjak@gmail.com>
5131
5132 * config/i386/i386.c (legitimize_pic_address): Use
5133 copy_to_suggested_reg instead of gen_movsi.
5134
5135 2016-05-11 Michael Meissner <meissner@linux.vnet.ibm.com>
5136
5137 * config/rs6000/predicates.md (quad_memory_operand): Move most of
5138 the code into quad_address_p and call it to share code with
5139 vsx_quad_dform_memory_operand.
5140 (vsx_quad_dform_memory_operand): New predicate for ISA 3.0 vector
5141 d-form support.
5142 * config/rs6000/rs6000.opt (-mlra): Switch to being an option mask
5143 bit instead of being a separate word. Split -mpower9-dform into
5144 two switches, -mpower9-dform-scalar and -mpower9-dform-vector.
5145 * config/rs6000/rs6000.c (RELOAD_REG_QUAD_OFFSET): New addr_mask
5146 for the register class supporting 128-bit quad word memory offsets.
5147 (mode_supports_vsx_dform_quad): Helper function to return if the
5148 register class uses quad word memory offsets.
5149 (rs6000_debug_addr_mask): Add support for quad word memory offsets.
5150 (rs6000_debug_reg_global): Always print if we are using LRA or not.
5151 (rs6000_setup_reg_addr_masks): If ISA 3.0 vector d-form
5152 instructions are enabled, set up the appropriate addr_masks for
5153 128-bit types.
5154 (rs6000_init_hard_regno_mode_ok): wb constraint is now based on
5155 -mpower9-dform-scalar, instead of -mpower9-dform.
5156 (rs6000_option_override_internal): Split -mpower9-dform into two
5157 switches, -mpower9-dform-scalar and -mpower9-dform-vector. The
5158 -mpower9-dform switch sets or clears both. If we are not using
5159 the LRA register allocator, do not enable -mpower9-dform-vector by
5160 default. If we are using LRA, enable -mpower9-dform-vector and
5161 -mvsx-timode if it is appropriate. Issue a warning if either
5162 -mpower9-dform-vector or -mvsx-timode are explicitly used without
5163 enabling LRA.
5164 (quad_address_offset_p): New helper function to return if the
5165 offset is legal for quad word memory instructions.
5166 (quad_address_p): New function to determin if GPR or vector
5167 register quad word memory addresses are legal.
5168 (mem_operand_gpr): Validate quad word address offsets.
5169 (reg_offset_addressing_ok_p): Add support for ISA 3.0 vector
5170 d-form (register + offset) instructions.
5171 (offsettable_ok_by_alignment): Likewise.
5172 (rs6000_legitimate_offset_address_p): Likewise.
5173 (legitimate_lo_sum_address_p): Likewise.
5174 (rs6000_legitimize_address): Likewise.
5175 (rs6000_legitimize_reload_address): Add more debug statements for
5176 -mdebug=addr.
5177 (rs6000_legitimate_address_p): Add support for ISA 3.0 vector
5178 d-form instructions.
5179 (rs6000_secondary_reload_memory): Add support for ISA 3.0 vector
5180 d-form instructions. Distinguish different cases in debug
5181 output. (rs6000_secondary_reload_inner): Add support for ISA 3.0 vector
5182 d-form instructions.
5183 (rs6000_preferred_reload_class): Likewise.
5184 (rs6000_output_move_128bit): Add support for ISA 3.0 d-form
5185 instructions. If ISA 3.0 is available, generate lxvx/stxvx instead
5186 of the ISA 2.06 indexed memory instructions.
5187 (rs6000_emit_prologue): If we have ISA 3.0 d-form instructions,
5188 use them to save/restore the saved vector registers instead of
5189 using Altivec instructions.
5190 (rs6000_emit_epilogue): Likewise.
5191 (rs6000_lra_p): Use TARGET_LRA instead of the old option word.
5192 (rs6000_opt_masks): Split -mpower9-dform into
5193 -mpower9-dform-scalar and -mpower9-dform-vector.
5194 (rs6000_print_options_internal): Print -mno-<switch> if <switch>
5195 was not selected.
5196 * config/rs6000/vsx.md (p9_vecload_<mode>): Delete hack to emit
5197 ISA 3.0 vector indexed memory instructions, and fold the code into
5198 the normal mov<mode> patterns.
5199 (p9_vecstore_<mode>): Likewise.
5200 (vsx_mov<mode>): Add support for ISA 3.0 vector d-form
5201 instructions.
5202 (vsx_movti_64bit): Likewise.
5203 (vsx_movti_32bit): Likewise.
5204 * config/rs6000/constraints.md (wO constraint): New constraint for
5205 ISA 3.0 vector d-form support.
5206 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Use
5207 -mpower9-dform-scalar instead of -mpower9-dform. Add note not to
5208 include -mpower9-dform-vector until we switch over to LRA.
5209 (POWERPC_MASKS): Add -mlra. Split -mpower9-dform into two.
5210 switches, -mpower9-dform-scalar and -mpower9-dform-vector.
5211 * config/rs6000/rs6000-protos.h (quad_address_p): Add declaration.
5212 * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
5213 for -mpower9-dform and -mlra.
5214 * doc/md.texi (wO constraint): Document wO constraint.
5215
5216 2016-05-11 Alexander Monakov <amonakov@ispras.ru>
5217
5218 * genattr.c (main): Change 'rtx' to 'rtx_insn *' in prototypes of
5219 'insn_latency', 'maximal_insn_latency', 'min_insn_conflict_delay'.
5220 * genautomata.c (output_internal_insn_code_evaluation): Simplify.
5221 Move handling of non-insn arguments inline into the sole user:
5222 (output_trans_func): ...here.
5223 (output_min_insn_conflict_delay_func): Change 'rtx' to 'rtx_insn *'
5224 in emitted function prototype.
5225 (output_internal_insn_latency_func): Ditto. Simplify.
5226 (output_internal_maximal_insn_latency_func): Ditto. Delete
5227 always-unused argument.
5228 (output_insn_latency_func): Ditto.
5229 (output_maximal_insn_latency_func): Ditto.
5230
5231 2016-05-11 Richard Biener <rguenther@suse.de>
5232
5233 PR tree-optimization/71055
5234 * tree-ssa-sccvn.c (vn_reference_lookup_3): When native-interpreting
5235 sth with precision not equal to access size verify we don't chop
5236 off bits.
5237
5238 2016-05-11 Richard Biener <rguenther@suse.de>
5239
5240 PR debug/71057
5241 * dwarf2out.c (retry_incomplete_types): Set early_dwarf.
5242 (dwarf2out_finish): Move retry_incomplete_types call ...
5243 (dwarf2out_early_finish): ... here.
5244
5245 2016-05-11 Richard Biener <rguenther@suse.de>
5246
5247 PR middle-end/71002
5248 * alias.c (reference_alias_ptr_type): Preserve alias-set zero
5249 if the langhook insists on it.
5250 * fold-const.c (make_bit_field_ref): Add arg for the original
5251 reference and preserve its alias-set.
5252 (decode_field_reference): Take exp by reference and adjust it
5253 to the original memory reference.
5254 (optimize_bit_field_compare): Adjust callers.
5255 (fold_truth_andor_1): Likewise.
5256 * gimplify.c (gimplify_expr): Adjust in-SSA form test.
5257
5258 2016-05-11 Ilya Enkovich <ilya.enkovich@intel.com>
5259
5260 PR middle-end/70807
5261 * cfgrtl.h (delete_insn_and_edges): Now return bool.
5262 * cfgrtl.c (delete_insn_and_edges): Likewise.
5263 * config/i386/i386.c (convert_scalars_to_vector): Remove
5264 redundant code.
5265 * cse.c (cse_insn): Compute cse_cfg_altered.
5266 (delete_trivially_dead_insns): Likewise.
5267 (cse_cc_succs): Likewise.
5268 (rest_of_handle_cse): Free dominance info if required.
5269 (rest_of_handle_cse2): Likewise.
5270 (rest_of_handle_cse_after_global_opts): Likewise.
5271
5272 2016-05-11 Alan Modra <amodra@gmail.com>
5273
5274 * config/rs6000/rs6000.c (is_complex_IBM_long_double,
5275 abi_v4_pass_in_fpr): New functions.
5276 (rs6000_function_arg_boundary): Exclude complex IBM long double
5277 from 64-bit alignment when ABI_V4.
5278 (rs6000_function_arg, rs6000_function_arg_advance_1,
5279 rs6000_gimplify_va_arg): Use abi_v4_pass_in_fpr.
5280
5281 2016-05-10 Segher Boessenkool <segher@kernel.crashing.org>
5282
5283 PR rtl-optimization/71028
5284 * cfgcleanup.c (try_optimize_cfg): Do not flip a conditional
5285 jump with just a return in the fallthrough block if the branch
5286 block contains just a return as well.
5287
5288 2016-05-10 Marc Glisse <marc.glisse@inria.fr>
5289
5290 * fold-const.c (fold_binary_loc) [(X ^ Y) & Y]: Remove and merge with...
5291 * match.pd ((X & Y) ^ Y): ... this.
5292 ((X & Y) & Y, (X | Y) | Y, (X ^ Y) ^ Y, (X & Y) & (X & Z), (X | Y)
5293 | (X | Z), (X ^ Y) ^ (X ^ Z)): New transformations.
5294
5295 2016-05-10 David Malcolm <dmalcolm@redhat.com>
5296
5297 * read-md.c (require_char_ws): New function.
5298 (read_string): Simplify using require_char_ws.
5299 (handle_constants): Likewise.
5300 (handle_enum): Likewise.
5301 (handle_file): Likewise.
5302 * read-md.h (require_char_ws): New declaration.
5303 * read-rtl.c (read_conditions): Simplify using require_char_ws.
5304 (read_mapping): Likewise.
5305 (read_rtx_code): Likewise.
5306 (read_nested_rtx): Likewise.
5307
5308 2016-05-10 James Norris <jnorris@codesourcery.com>
5309
5310 * config/rs6000/sysv4.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o
5311 if offloading is enabled and -fopenacc or -fopenmp is specified.
5312 (CRTOFFLOADEND): Likewise.
5313 (STARTFILE_LINUX_SPEC): Add CRTOFFLOADBEGIN.
5314 (ENDFILE_LINUX_SPEC): Add CRTOFFLOADEND.
5315
5316 2016-05-10 Uros Bizjak <ubizjak@gmail.com>
5317
5318 * config/i386/i386.c (legitimize_pic_address): Merge 64-bit and 32-bit
5319 gotoff_operand code paths. Use copy_to_suggested_regs and
5320 expand_simple_binop where appropriate. Cleanup.
5321
5322 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
5323
5324 PR target/70799
5325 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p): Allow
5326 integer constants.
5327 (dimode_scalar_chain::vector_const_cost): New.
5328 (dimode_scalar_chain::compute_convert_gain): Handle constants.
5329 (dimode_scalar_chain::convert_op): Likewise.
5330 (dimode_scalar_chain::convert_insn): Likewise.
5331
5332 2016-05-10 Pierre-Marie de Rodat <derodat@adacore.com>
5333
5334 * dwarf2out.c (resolve_args_picking_1): Consider DW_OP_neg as an
5335 unary operation, not a binary one.
5336
5337 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
5338
5339 PR middle-end/70877
5340 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Handle
5341 calls with type casted fndecl.
5342
5343 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
5344
5345 PR tree-optimization/70786
5346 * tree-chkp.c (chkp_find_bounds_1): Support WITH_SIZE_EXPR.
5347 * calls.c (initialize_argument_information): Bind bounds
5348 with corresponding args passed by reference.
5349
5350 2016-05-10 Jakub Jelinek <jakub@redhat.com>
5351
5352 PR target/70927
5353 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>),
5354 *<code><mode>3<mask_name>): For !TARGET_AVX512DQ and EVEX encoding,
5355 use vp*[dq] instead of v*p[sd] instructions and adjust mode attribute
5356 accordingly.
5357
5358 2016-05-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5359
5360 PR target/70963
5361 * config/rs6000/vsx.md (vsx_xvcvdpsxds_scale): Generate correct
5362 code for a zero scale factor.
5363 (vsx_xvcvdpuxds_scale): Likewise.
5364
5365 2016-05-10 David Malcolm <dmalcolm@redhat.com>
5366
5367 * diagnostic-show-locus.c (layout::layout): Call show_ruler
5368 if show_ruler_p was set on the context.
5369 (layout::show_ruler): New method.
5370 * diagnostic.h (struct diagnostic_context): Add field
5371 "show_ruler_p".
5372
5373 2016-05-10 Richard Biener <rguenther@suse.de>
5374
5375 PR tree-optimization/71039
5376 * tree-ssa-phiprop.c: Include tree-ssa-loop.h.
5377 (chk_uses): New function.
5378 (propagate_with_phi): Verify we can safely replicate the lhs of an
5379 aggregate assignment on all incoming edges.
5380
5381 2016-05-10 Oleg Endo <olegendo@gcc.gnu.org>
5382
5383 * config/rx/rx-protos.h (is_interrupt_func, is_fast_interrupt_func):
5384 Forward declare.
5385 (rx_atomic_sequence): New class.
5386 * config/rx/rx.c (rx_print_operand): Use symbolic names for PSW bits.
5387 (is_interrupt_func, is_fast_interrupt_func): Make non-static and
5388 non-inline.
5389 (rx_atomic_sequence::rx_atomic_sequence,
5390 rx_atomic_sequence::~rx_atomic_sequence): New functions.
5391 * config/rx/rx.md (CTRLREG_PSW, CTRLREG_USP, CTRLREG_FPSW, CTRLREG_CPEN,
5392 CTRLREG_BPSW, CTRLREG_BPC, CTRLREG_ISP, CTRLREG_FINTV,
5393 CTRLREG_INTB): New constants.
5394 (FETCHOP): New code iterator.
5395 (fethcop_name, fetchop_name2): New iterator code attributes.
5396 (QIHI): New mode iterator.
5397 (atomic_exchange<mode>, atomic_exchangesi, xchg_mem<mode>,
5398 atomic_fetch_<fetchop_name>si, atomic_fetch_nandsi,
5399 atomic_<fetchop_name>_fetchsi, atomic_nand_fetchsi): New patterns.
5400
5401 2016-05-10 Martin Liska <mliska@suse.cz>
5402
5403 * tree-inline.c (remap_dependence_clique): Do not remap
5404 debugging statements.
5405
5406 2016-05-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5407
5408 * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly")
5409 ("*fixuns_truncdfdi2_z13")
5410 ("*fixuns_trunc<FP:mode><GPR:mode>2_z196")
5411 ("*fix_truncdfdi2_bfp_z13", "*floatunsdidf2_z13")
5412 ("*extendsfdf2_z13"): Replace TARGET_Z13 with TARGET_VX.
5413
5414 2016-05-10 Richard Biener <rguenther@suse.de>
5415
5416 PR tree-optimization/70497
5417 PR tree-optimization/28367
5418 * tree-ssa-sccvn.c (vn_nary_build_or_lookup): New function
5419 split out from ...
5420 (visit_reference_op_load): ... here.
5421 (vn_reference_lookup_3): Use it to handle subreg-like accesses
5422 with simplified BIT_FIELD_REFs.
5423 * tree-ssa-pre.c (eliminate_insert): Handle inserting BIT_FIELD_REFs.
5424 * tree-complex.c (extract_component): Handle BIT_FIELD_REFs
5425 correctly.
5426
5427 2016-05-10 Pierre-Marie de Rodat <derodat@adacore.com>
5428
5429 * dwarf2out.c (add_abstract_origin_attribute): Adjust
5430 documentation comment. For BLOCK nodes, add a
5431 DW_AT_abstract_origin attribute that points to the DIE generated
5432 for the origin BLOCK.
5433 (gen_lexical_block_die): Call add_abstract_origin_attribute for
5434 blocks from inlined functions.
5435
5436 2016-05-10 Alan Modra <amodra@gmail.com>
5437
5438 PR target/70947
5439 * config/rs6000/rs6000.c (rs6000_expand_split_stack_prologue): Stop
5440 regrename modifying insns saving lr before __morestack call.
5441 * config/rs6000/rs6000.md (split_stack_return): Similarly for
5442 insns restoring lr after __morestack call.
5443
5444 2016-05-09 Jakub Jelinek <jakub@redhat.com>
5445
5446 * config/i386/i386.md (set_got, set_got_labelled, lwp_llwpcb,
5447 lwp_lwpval<mode>3, lwp_lwpins<mode>3): Remove constraints from
5448 expanders.
5449 * config/i386/sse.md (vec_interleave_high<mode>,
5450 vec_interleave_low<mode>, <avx512>_vpermi2var<mode>3_maskz,
5451 <avx512>_vpermt2var<mode>3_maskz): Likewise.
5452
5453 2016-05-04 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
5454
5455 * config/rs6000/rs6000.c (rs6000_reassociation_width): Add
5456 function for TARGET_SCHED_REASSOCIATION_WIDTH to enable
5457 parallel reassociation for power8 and forward.
5458
5459 2016-05-09 Uros Bizjak <ubizjak@gmail.com>
5460
5461 * config/i386/i386.md (absneg splitters with general regs): Use
5462 general_reg_operand predicate.
5463 (btsq peephole2): Use x86_64_immediate_operand to check if new
5464 value is suitable for immediate operand. Generate emitted insn
5465 using RTL expressions.
5466 (btcq peephole2): Ditto.
5467 (btrq peephole2): Ditto. Generate correct immediate operand
5468 for AND masking.
5469
5470 2016-05-09 Richard Sandiford <richard.sandiford@arm.com>
5471
5472 * cfgexpand.c (expand_debug_expr): Fix address offset for negative
5473 bitpos.
5474
5475 2016-05-09 Richard Sandiford <richard.sandiford@arm.com>
5476
5477 * tree-affine.c (wide_int_constant_multiple_p): Add missing
5478 pointer dereference.
5479
5480 2016-05-09 Richard Biener <rguenther@suse.de>
5481
5482 PR tree-optimization/70985
5483 * match.pd (BIT_FIELD_REF -> (type)): Disable on GIMPLE when
5484 op0 isn't a gimple register.
5485
5486 2016-05-09 Prachi Godbole <prachi.godbole@imgtec.com>
5487
5488 * config/mips/i6400.md (i6400_fpu_intadd, i6400_fpu_logic)
5489 (i6400_fpu_div, i6400_fpu_cmp, i6400_fpu_float, i6400_fpu_store)
5490 (i6400_fpu_long_pipe, i6400_fpu_logic_l, i6400_fpu_float_l)
5491 (i6400_fpu_mult): New cpu units.
5492 (i6400_msa_add_d, i6400_msa_int_add, i6400_msa_short_logic3)
5493 (i6400_msa_short_logic2, i6400_msa_short_logic, i6400_msa_move)
5494 (i6400_msa_cmp, i6400_msa_short_float2, i6400_msa_div_d)
5495 (i6400_msa_div_w, i6400_msa_div_h, i6400_msa_div_b)
5496 (i6400_msa_copy, i6400_msa_branch, i6400_fpu_msa_store)
5497 (i6400_fpu_msa_load, i6400_fpu_msa_move, i6400_msa_long_logic1)
5498 (i6400_msa_long_logic2, i6400_msa_mult, i6400_msa_long_float2)
5499 (i6400_msa_long_float4, i6400_msa_long_float5)
5500 (i6400_msa_long_float8, i6400_msa_fdiv_df)
5501 (i6400_msa_fdiv_sf): New reservations.
5502 * config/mips/p5600.md (p5600_fpu_intadd, p5600_fpu_cmp)
5503 (p5600_fpu_float, p5600_fpu_logic_a, p5600_fpu_logic_b)
5504 (p5600_fpu_div, p5600_fpu_logic, p5600_fpu_float_a)
5505 (p5600_fpu_float_b, p5600_fpu_float_c, p5600_fpu_float_d)
5506 (p5600_fpu_mult, p5600_fpu_fdiv, p5600_fpu_load): New cpu units.
5507 (msa_short_int_add, msa_short_logic, msa_short_logic_move_v)
5508 (msa_short_cmp, msa_short_float2, msa_short_logic3)
5509 (msa_short_store4, msa_long_load, msa_short_store)
5510 (msa_long_logic, msa_long_float2, msa_long_float4)
5511 (msa_long_float5, msa_long_float8, msa_long_mult)
5512 (msa_long_fdiv, msa_long_div): New reservations.
5513
5514 2016-05-09 Robert Suchanek <robert.suchanek@imgtec.com>
5515 Sameera Deshpande <sameera.deshpande@imgtec.com>
5516 Matthew Fortune <matthew.fortune@imgtec.com>
5517 Graham Stott <graham.stott@imgtec.com>
5518 Chao-ying Fu <chao-ying.fu@imgtec.com>
5519
5520 * config.gcc: Add MSA header file for mips*-*-* target.
5521 * config/mips/constraints.md (YI, YC, YZ, Unv5, Uuv5, Usv5, Uuv6)
5522 (Ubv8i, Urv8): New constraints.
5523 * config/mips/mips-ftypes.def: Add function types for MSA
5524 builtins.
5525 * config/mips/mips-modes.def (V16QI, V8HI, V4SI, V2DI, V4SF)
5526 (V2DF, V32QI, V16HI, V8SI, V4DI, V8SF, V4DF): New modes.
5527 * config/mips/mips-msa.md: New file.
5528 * config/mips/mips-protos.h
5529 (mips_split_128bit_const_insns): New prototype.
5530 (mips_msa_idiv_insns): Likewise.
5531 (mips_split_128bit_move): Likewise.
5532 (mips_split_128bit_move_p): Likewise.
5533 (mips_split_msa_copy_d): Likewise.
5534 (mips_split_msa_insert_d): Likewise.
5535 (mips_split_msa_fill_d): Likewise.
5536 (mips_expand_msa_branch): Likewise.
5537 (mips_const_vector_same_val_p): Likewise.
5538 (mips_const_vector_same_bytes_p): Likewise.
5539 (mips_const_vector_same_int_p): Likewise.
5540 (mips_const_vector_shuffle_set_p): Likewise.
5541 (mips_const_vector_bitimm_set_p): Likewise.
5542 (mips_const_vector_bitimm_clr_p): Likewise.
5543 (mips_msa_vec_parallel_const_half): Likewise.
5544 (mips_msa_output_division): Likewise.
5545 (mips_ldst_scaled_shift): Likewise.
5546 (mips_expand_vec_cond_expr): Likewise.
5547 * config/mips/mips.c (enum mips_builtin_type): Add
5548 MIPS_BUILTIN_MSA_TEST_BRANCH.
5549 (mips_gen_const_int_vector_shuffle): New prototype.
5550 (mips_const_vector_bitimm_set_p): New function.
5551 (mips_const_vector_bitimm_clr_p): Likewise.
5552 (mips_const_vector_same_val_p): Likewise.
5553 (mips_const_vector_same_bytes_p): Likewise.
5554 (mips_const_vector_same_int_p): Likewise.
5555 (mips_const_vector_shuffle_set_p): Likewise.
5556 (mips_symbol_insns): Forbid loading symbols via immediate for
5557 MSA.
5558 (mips_valid_offset_p): Limit offset to 10-bit for MSA loads and
5559 stores.
5560 (mips_valid_lo_sum_p): Forbid loadings symbols via %lo(base) for
5561 MSA.
5562 (mips_lx_address_p): Add support load indexed address for MSA.
5563 (mips_address_insns): Add calculation of instructions needed for
5564 stores and loads for MSA.
5565 (mips_const_insns): Move CONST_DOUBLE below CONST_VECTOR. Handle
5566 CONST_VECTOR for MSA and let it fall through.
5567 (mips_ldst_scaled_shift): New function.
5568 (mips_subword_at_byte): Likewise.
5569 (mips_msa_idiv_insns): Likewise.
5570 (mips_legitimize_move): Validate MSA moves.
5571 (mips_rtx_costs): Add UNGE, UNGT, UNLE, UNLT cases. Add
5572 calculation of costs for MSA division.
5573 (mips_split_move_p): Check if MSA moves need splitting.
5574 (mips_split_move): Split MSA moves if necessary.
5575 (mips_split_128bit_move_p): New function.
5576 (mips_split_128bit_move): Likewise.
5577 (mips_split_msa_copy_d): Likewise.
5578 (mips_split_msa_insert_d): Likewise.
5579 (mips_split_msa_fill_d): Likewise.
5580 (mips_output_move): Handle MSA moves.
5581 (mips_expand_msa_branch): New function.
5582 (mips_print_operand): Add 'E', 'B', 'w', 'v' and 'V' modifiers.
5583 Reinstate 'y' modifier.
5584 (mips_file_start): Add MSA .gnu_attribute.
5585 (mips_hard_regno_mode_ok_p): Allow TImode and 128-bit vectors in
5586 FPRs.
5587 (mips_hard_regno_nregs): Always return 1 for MSA supported mode.
5588 (mips_class_max_nregs): Add register size for MSA supported mode.
5589 (mips_cannot_change_mode_class): Allow conversion between MSA
5590 vector modes and TImode.
5591 (mips_mode_ok_for_mov_fmt_p): Allow MSA to use move.v
5592 instruction.
5593 (mips_secondary_reload_class): Force MSA loads/stores via memory.
5594 (mips_preferred_simd_mode): Add preffered modes for MSA.
5595 (mips_vector_mode_supported_p): Add MSA supported modes.
5596 (mips_autovectorize_vector_sizes): New function.
5597 (mips_msa_output_division): Likewise.
5598 (MSA_BUILTIN, MIPS_BUILTIN_DIRECT_NO_TARGET)
5599 (MSA_NO_TARGET_BUILTIN, MSA_BUILTIN_TEST_BRANCH): New macros.
5600 (CODE_FOR_msa_adds_s_b, CODE_FOR_msa_adds_s_h)
5601 (CODE_FOR_msa_adds_s_w, CODE_FOR_msa_adds_s_d)
5602 (CODE_FOR_msa_adds_u_b, CODE_FOR_msa_adds_u_h)
5603 (CODE_FOR_msa_adds_u_w, CODE_FOR_msa_adds_u_du
5604 (CODE_FOR_msa_addv_b, CODE_FOR_msa_addv_h, CODE_FOR_msa_addv_w)
5605 (CODE_FOR_msa_addv_d, CODE_FOR_msa_and_v, CODE_FOR_msa_bmnz_v)
5606 (CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bmz_v, CODE_FOR_msa_bmzi_b)
5607 (CODE_FOR_msa_bnz_v, CODE_FOR_msa_bz_v, CODE_FOR_msa_bsel_v)
5608 (CODE_FOR_msa_bseli_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w)
5609 (CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b)
5610 (CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w)
5611 (CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clti_u_b)
5612 (CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w)
5613 (CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_s_b)
5614 (CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w)
5615 (CODE_FOR_msa_clei_s_d, CODE_FOR_msa_clei_u_b)
5616 (CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w)
5617 (CODE_FOR_msa_clei_u_d, CODE_FOR_msa_div_s_b)
5618 (CODE_FOR_msa_div_s_h, CODE_FOR_msa_div_s_w)
5619 (CODE_FOR_msa_div_s_d, CODE_FOR_msa_div_u_b)
5620 (CODE_FOR_msa_div_u_h, CODE_FOR_msa_div_u_w)
5621 (CODE_FOR_msa_div_u_d, CODE_FOR_msa_fadd_w, CODE_FOR_msa_fadd_d)
5622 (CODE_FOR_msa_fexdo_w, CODE_FOR_msa_ftrunc_s_w)
5623 (CODE_FOR_msa_ftrunc_s_d, CODE_FOR_msa_ftrunc_u_w)
5624 (CODE_FOR_msa_ftrunc_u_d, CODE_FOR_msa_ffint_s_w)
5625 (CODE_FOR_msa_ffint_s_d, CODE_FOR_msa_ffint_u_w)
5626 (CODE_FOR_msa_ffint_u_d, CODE_FOR_msa_fsub_w)
5627 (CODE_FOR_msa_fsub_d, CODE_FOR_msa_fmsub_d, CODE_FOR_msa_fmadd_w)
5628 (CODE_FOR_msa_fmadd_d, CODE_FOR_msa_fmsub_w, CODE_FOR_msa_fmul_w)
5629 (CODE_FOR_msa_fmul_d, CODE_FOR_msa_fdiv_w, CODE_FOR_msa_fdiv_d)
5630 (CODE_FOR_msa_fmax_w, CODE_FOR_msa_fmax_d, CODE_FOR_msa_fmax_a_w)
5631 (CODE_FOR_msa_fmax_a_d, CODE_FOR_msa_fmin_w, CODE_FOR_msa_fmin_d)
5632 (CODE_FOR_msa_fmin_a_w, CODE_FOR_msa_fmin_a_d)
5633 (CODE_FOR_msa_fsqrt_w, CODE_FOR_msa_fsqrt_d)
5634 (CODE_FOR_msa_max_s_b, CODE_FOR_msa_max_s_h)
5635 (CODE_FOR_msa_max_s_w, CODE_FOR_msa_max_s_d)
5636 (CODE_FOR_msa_max_u_b, CODE_FOR_msa_max_u_h)
5637 (CODE_FOR_msa_max_u_w, CODE_FOR_msa_max_u_d)
5638 (CODE_FOR_msa_min_s_b, CODE_FOR_msa_min_s_h)
5639 (CODE_FOR_msa_min_s_w, CODE_FOR_msa_min_s_d)
5640 (CODE_FOR_msa_min_u_b, CODE_FOR_msa_min_u_h)
5641 (CODE_FOR_msa_min_u_w, CODE_FOR_msa_min_u_d)
5642 (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
5643 (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
5644 (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
5645 (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
5646 (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
5647 (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
5648 (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
5649 (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
5650 (CODE_FOR_msa_mulv_b, CODE_FOR_msa_mulv_h, CODE_FOR_msa_mulv_w)
5651 (CODE_FOR_msa_mulv_d, CODE_FOR_msa_nlzc_b, CODE_FOR_msa_nlzc_h)
5652 (CODE_FOR_msa_nlzc_w, CODE_FOR_msa_nlzc_d, CODE_FOR_msa_nor_v)
5653 (CODE_FOR_msa_or_v, CODE_FOR_msa_ori_b, CODE_FOR_msa_nori_b)
5654 (CODE_FOR_msa_pcnt_b, CODE_FOR_msa_pcnt_h, CODE_FOR_msa_pcnt_w)
5655 (CODE_FOR_msa_pcnt_d, CODE_FOR_msa_xor_v, CODE_FOR_msa_xori_b)
5656 (CODE_FOR_msa_sll_b, CODE_FOR_msa_sll_h, CODE_FOR_msa_sll_w)
5657 (CODE_FOR_msa_sll_d, CODE_FOR_msa_slli_b, CODE_FOR_msa_slli_h)
5658 (CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d, CODE_FOR_msa_sra_b)
5659 (CODE_FOR_msa_sra_h, CODE_FOR_msa_sra_w, CODE_FOR_msa_sra_d)
5660 (CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w)
5661 (CODE_FOR_msa_srai_d, CODE_FOR_msa_srl_b, CODE_FOR_msa_srl_h)
5662 (CODE_FOR_msa_srl_w, CODE_FOR_msa_srl_d, CODE_FOR_msa_srli_b)
5663 (CODE_FOR_msa_srli_h, CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d)
5664 (CODE_FOR_msa_subv_b, CODE_FOR_msa_subv_h, CODE_FOR_msa_subv_w)
5665 (CODE_FOR_msa_subv_d, CODE_FOR_msa_subvi_b, CODE_FOR_msa_subvi_h)
5666 (CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d, CODE_FOR_msa_move_v)
5667 (CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h, CODE_FOR_msa_vshf_w)
5668 (CODE_FOR_msa_vshf_d, CODE_FOR_msa_ilvod_d, CODE_FOR_msa_ilvev_d)
5669 (CODE_FOR_msa_pckod_d, CODE_FOR_msa_pckdev_d, CODE_FOR_msa_ldi_b)
5670 (CODE_FOR_msa_ldi_hi, CODE_FOR_msa_ldi_w)
5671 (CODE_FOR_msa_ldi_d): New code_aliasing macros.
5672 (mips_builtins): Add MSA sll_b, sll_h, sll_w, sll_d, slli_b,
5673 slli_h, slli_w, slli_d, sra_b, sra_h, sra_w, sra_d, srai_b,
5674 srai_h, srai_w, srai_d, srar_b, srar_h, srar_w, srar_d, srari_b,
5675 srari_h, srari_w, srari_d, srl_b, srl_h, srl_w, srl_d, srli_b,
5676 srli_h, srli_w, srli_d, srlr_b, srlr_h, srlr_w, srlr_d, srlri_b,
5677 srlri_h, srlri_w, srlri_d, bclr_b, bclr_h, bclr_w, bclr_d,
5678 bclri_b, bclri_h, bclri_w, bclri_d, bset_b, bset_h, bset_w,
5679 bset_d, bseti_b, bseti_h, bseti_w, bseti_d, bneg_b, bneg_h,
5680 bneg_w, bneg_d, bnegi_b, bnegi_h, bnegi_w, bnegi_d, binsl_b,
5681 binsl_h, binsl_w, binsl_d, binsli_b, binsli_h, binsli_w,
5682 binsli_d, binsr_b, binsr_h, binsr_w, binsr_d, binsri_b, binsri_h,
5683 binsri_w, binsri_d, addv_b, addv_h, addv_w, addv_d, addvi_b,
5684 addvi_h, addvi_w, addvi_d, subv_b, subv_h, subv_w, subv_d,
5685 subvi_b, subvi_h, subvi_w, subvi_d, max_s_b, max_s_h, max_s_w,
5686 max_s_d, maxi_s_b, maxi_s_h, maxi_s_w, maxi_s_d, max_u_b,
5687 max_u_h, max_u_w, max_u_d, maxi_u_b, maxi_u_h, maxi_u_w,
5688 maxi_u_d, min_s_b, min_s_h, min_s_w, min_s_d, mini_s_b, mini_s_h,
5689 mini_s_w, mini_s_d, min_u_b, min_u_h, min_u_w, min_u_d, mini_u_b,
5690 mini_u_h, mini_u_w, mini_u_d, max_a_b, max_a_h, max_a_w, max_a_d,
5691 min_a_b, min_a_h, min_a_w, min_a_d, ceq_b, ceq_h, ceq_w, ceq_d,
5692 ceqi_b, ceqi_h, ceqi_w, ceqi_d, clt_s_b, clt_s_h, clt_s_w,
5693 clt_s_d, clti_s_b, clti_s_h, clti_s_w, clti_s_d, clt_u_b,
5694 clt_u_h, clt_u_w, clt_u_d, clti_u_b, clti_u_h, clti_u_w,
5695 clti_u_d, cle_s_b, cle_s_h, cle_s_w, cle_s_d, clei_s_b, clei_s_h,
5696 clei_s_w, clei_s_d, cle_u_b, cle_u_h, cle_u_w, cle_u_d, clei_u_b,
5697 clei_u_h, clei_u_w, clei_u_d, ld_b, ld_h, ld_w, ld_d, st_b, st_h,
5698 st_w, st_d, sat_s_b, sat_s_h, sat_s_w, sat_s_d, sat_u_b, sat_u_h,
5699 sat_u_w, sat_u_d, add_a_b, add_a_h, add_a_w, add_a_d, adds_a_b,
5700 adds_a_h, adds_a_w, adds_a_d, adds_s_b, adds_s_h, adds_s_w,
5701 adds_s_d, adds_u_b, adds_u_h, adds_u_w, adds_u_d, ave_s_b,
5702 ave_s_h, ave_s_w, ave_s_d, ave_u_b, ave_u_h, ave_u_w, ave_u_d,
5703 aver_s_b, aver_s_h, aver_s_w, aver_s_d, aver_u_b, aver_u_h,
5704 aver_u_w, aver_u_d, subs_s_b, subs_s_h, subs_s_w, subs_s_d,
5705 subs_u_b, subs_u_h, subs_u_w, subs_u_d, subsuu_s_b, subsuu_s_h,
5706 subsuu_s_w, subsuu_s_d, subsus_u_b, subsus_u_h, subsus_u_w,
5707 subsus_u_d, asub_s_b, asub_s_h, asub_s_w, asub_s_d, asub_u_b,
5708 asub_u_h, asub_u_w, asub_u_d, mulv_b, mulv_h, mulv_w, mulv_d,
5709 maddv_b, maddv_h, maddv_w, maddv_d, msubv_b, msubv_h, msubv_w,
5710 msubv_d, div_s_b, div_s_h, div_s_w, div_s_d, div_u_b, div_u_h,
5711 div_u_w, div_u_d, hadd_s_h, hadd_s_w, hadd_s_d, hadd_u_h,
5712 hadd_u_w, hadd_u_d, hsub_s_h, hsub_s_w, hsub_s_d, hsub_u_h,
5713 hsub_u_w, hsub_u_d, mod_s_b, mod_s_h, mod_s_w, mod_s_d, mod_u_b,
5714 mod_u_h, mod_u_w, mod_u_d, dotp_s_h, dotp_s_w, dotp_s_d,
5715 dotp_u_h, dotp_u_w, dotp_u_d, dpadd_s_h, dpadd_s_w, dpadd_s_d,
5716 dpadd_u_h, dpadd_u_w, dpadd_u_d, dpsub_s_h, dpsub_s_w, dpsub_s_d,
5717 dpsub_u_h, dpsub_u_w, dpsub_u_d, sld_b, sld_h, sld_w, sld_d,
5718 sldi_b, sldi_h, sldi_w, sldi_d, splat_b, splat_h, splat_w,
5719 splat_d, splati_b, splati_h, splati_w, splati_d, pckev_b,
5720 pckev_h, pckev_w, pckev_d, pckod_b, pckod_h, pckod_w, pckod_d,
5721 ilvl_b, ilvl_h, ilvl_w, ilvl_d, ilvr_b, ilvr_h, ilvr_w, ilvr_d,
5722 ilvev_b, ilvev_h, ilvev_w, ilvev_d, ilvod_b, ilvod_h, ilvod_w,
5723 ilvod_d, vshf_b, vshf_h, vshf_w, vshf_d, and_v, andi_b, or_v,
5724 ori_b, nor_v, nori_b, xor_v, xori_b, bmnz_v, bmnzi_b, bmz_v,
5725 bmzi_b, bsel_v, bseli_b, shf_b, shf_h, shf_w, bnz_v, bz_v,
5726 fill_b, fill_h, fill_w, fill_d, pcnt_b, pcnt_h, pcnt_w,
5727 pcnt_d, nloc_b, nloc_h, nloc_w, nloc_d, nlzc_b, nlzc_h, nlzc_w,
5728 nlzc_d, copy_s_b, copy_s_h, copy_s_w, copy_s_d, copy_u_b,
5729 copy_u_h, copy_u_w, copy_u_d, insert_b, insert_h, insert_w,
5730 insert_d, insve_b, insve_h, insve_w, insve_d, bnz_b, bnz_h,
5731 bnz_w, bnz_d, bz_b, bz_h, bz_w, bz_d, ldi_b, ldi_h, ldi_w, ldi_d,
5732 fcaf_w, fcaf_d, fcor_w, fcor_d, fcun_w, fcun_d, fcune_w, fcune_d,
5733 fcueq_w, fcueq_d, fceq_w, fceq_d, fcne_w, fcne_d, fclt_w, fclt_d,
5734 fcult_w, fcult_d, fcle_w, fcle_d, fcule_w, fcule_d, fsaf_w,
5735 fsaf_d, fsor_w, fsor_d, fsun_w, fsun_d, fsune_w, fsune_d,
5736 fsueq_w, fsueq_d, fseq_w, fseq_d, fsne_w, fsne_d, fslt_w,
5737 fslt_d, fsult_w, fsult_d, fsle_w, fsle_d, fsule_w, fsule_d,
5738 fadd_w, fadd_d, fsub_w, fsub_d, fmul_w, fmul_d, fdiv_w, fdiv_d,
5739 fmadd_w, fmadd_d, fmsub_w, fmsub_d, fexp2_w, fexp2_d, fexdo_h,
5740 fexdo_w, ftq_h, ftq_w, fmin_w, fmin_d, fmin_a_w, fmin_a_d,
5741 fmax_w, fmax_d, fmax_a_w, fmax_a_d, mul_q_h, mul_q_w, mulr_q_h,
5742 mulr_q_w, madd_q_h, madd_q_w, maddr_q_h, maddr_q_w, msub_q_h,
5743 msub_q_w, msubr_q_h, msubr_q_w, fclass_w, fclass_d, fsqrt_w,
5744 fsqrt_d, frcp_w, frcp_d, frint_w, frint_d, frsqrt_w, frsqrt_d,
5745 flog2_w, flog2_d, fexupl_w, fexupl_d, fexupr_w, fexupr_d, ffql_w,
5746 ffql_d, ffqr_w, ffqr_d, ftint_s_w, ftint_s_d, ftint_u_w,
5747 ftint_u_d, ftrunc_s_w, ftrunc_s_d, ftrunc_u_w, ftrunc_u_d,
5748 ffint_s_w, ffint_s_d, ffint_u_w, ffint_u_d, ctcmsa, cfcmsa,
5749 move_v builtins.
5750 (mips_get_builtin_decl_index): New array.
5751 (MIPS_ATYPE_QI, MIPS_ATYPE_HI, MIPS_ATYPE_V2DI, MIPS_ATYPE_V4SI)
5752 (MIPS_ATYPE_V8HI, MIPS_ATYPE_V16QI, MIPS_ATYPE_V2DF)
5753 (MIPS_ATYPE_V4SF, MIPS_ATYPE_UV2DI, MIPS_ATYPE_UV4SI)
5754 (MIPS_ATYPE_UV8HI, MIPS_ATYPE_UV16QI): New.
5755 (mips_init_builtins): Initialize mips_get_builtin_decl_index
5756 array.
5757 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
5758 hook.
5759 (mips_expand_builtin_insn): Prepare operands for
5760 CODE_FOR_msa_addvi_b, CODE_FOR_msa_addvi_h, CODE_FOR_msa_addvi_w,
5761 CODE_FOR_msa_addvi_d, CODE_FOR_msa_clti_u_b,
5762 CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w,
5763 CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_u_b,
5764 CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w,
5765 CODE_FOR_msa_clei_u_d, CODE_FOR_msa_maxi_u_b,
5766 CODE_FOR_msa_maxi_u_h, CODE_FOR_msa_maxi_u_w,
5767 CODE_FOR_msa_maxi_u_d, CODE_FOR_msa_mini_u_b,
5768 CODE_FOR_msa_mini_u_h, CODE_FOR_msa_mini_u_w,
5769 CODE_FOR_msa_mini_u_d, CODE_FOR_msa_subvi_b,
5770 CODE_FOR_msa_subvi_h, CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d,
5771 CODE_FOR_msa_ceqi_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w,
5772 CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b,
5773 CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w,
5774 CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clei_s_b,
5775 CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w,
5776 CODE_FOR_msa_clei_s_d, CODE_FOR_msa_maxi_s_b,
5777 CODE_FOR_msa_maxi_s_h, CODE_FOR_msa_maxi_s_w,
5778 CODE_FOR_msa_maxi_s_d, CODE_FOR_msa_mini_s_b,
5779 CODE_FOR_msa_mini_s_h, CODE_FOR_msa_mini_s_w,
5780 CODE_FOR_msa_mini_s_d, CODE_FOR_msa_andi_b, CODE_FOR_msa_ori_b,
5781 CODE_FOR_msa_nori_b, CODE_FOR_msa_xori_b, CODE_FOR_msa_bmzi_b,
5782 CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bseli_b, CODE_FOR_msa_fill_b,
5783 CODE_FOR_msa_fill_h, CODE_FOR_msa_fill_w, CODE_FOR_msa_fill_d,
5784 CODE_FOR_msa_ilvl_b, CODE_FOR_msa_ilvl_h, CODE_FOR_msa_ilvl_w,
5785 CODE_FOR_msa_ilvl_d, CODE_FOR_msa_ilvr_b, CODE_FOR_msa_ilvr_h,
5786 CODE_FOR_msa_ilvr_w, CODE_FOR_msa_ilvr_d, CODE_FOR_msa_ilvev_b,
5787 CODE_FOR_msa_ilvev_h, CODE_FOR_msa_ilvev_w, CODE_FOR_msa_ilvod_b,
5788 CODE_FOR_msa_ilvod_h, CODE_FOR_msa_ilvod_w, CODE_FOR_msa_pckev_b,
5789 CODE_FOR_msa_pckev_h, CODE_FOR_msa_pckev_w, CODE_FOR_msa_pckod_b,
5790 CODE_FOR_msa_pckod_h, CODE_FOR_msa_pckod_w, CODE_FOR_msa_slli_b,
5791 CODE_FOR_msa_slli_h, CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d,
5792 CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w,
5793 CODE_FOR_msa_srai_d, CODE_FOR_msa_srli_b, CODE_FOR_msa_srli_h,
5794 CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d, CODE_FOR_msa_insert_b,
5795 CODE_FOR_msa_insert_h, CODE_FOR_msa_insert_w,
5796 CODE_FOR_msa_insert_d, CODE_FOR_msa_insve_b,
5797 CODE_FOR_msa_insve_h, CODE_FOR_msa_insve_w, CODE_FOR_msa_insve_d,
5798 CODE_FOR_msa_shf_b, CODE_FOR_msa_shf_h, CODE_FOR_msa_shf_w,
5799 CODE_FOR_msa_shf_w_f, CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h,
5800 CODE_FOR_msa_vshf_w, CODE_FOR_msa_vshf_d.
5801 (mips_expand_builtin): Add case for MIPS_BULTIN_MSA_TEST_BRANCH.
5802 (mips_set_compression_mode): Disallow MSA with MIPS16 code.
5803 (mips_option_override): -mmsa requires -mfp64 and -mhard-float.
5804 These are set implicitly and an error is reported if overridden.
5805 (mips_expand_builtin_msa_test_branch): New function.
5806 (mips_expand_msa_shuffle): Likewise.
5807 (MAX_VECT_LEN): Increase maximum length of a vector to 16 bytes.
5808 (TARGET_SCHED_REASSOCIATION_WIDTH): Define target hook.
5809 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Likewise.
5810 (mips_expand_vec_unpack): Add support for MSA.
5811 (mips_expand_vector_init): Likewise.
5812 (mips_expand_vi_constant): Use CONST0_RTX (element_mode)
5813 instead of const0_rtx.
5814 (mips_msa_vec_parallel_const_half): New function.
5815 (mips_gen_const_int_vector): Likewise.
5816 (mips_gen_const_int_vector_shuffle): Likewise.
5817 (mips_expand_msa_cmp): Likewise.
5818 (mips_expand_vec_cond_expr): Likewise.
5819 * config/mips/mips.h
5820 (TARGET_CPU_CPP_BUILTINS): Add __mips_msa and __mips_msa_width.
5821 (OPTION_DEFAULT_SPECS): Ignore --with-fp-32 if -mmsa is
5822 specified.
5823 (ASM_SPEC): Pass mmsa and mno-msa to the assembler.
5824 (ISA_HAS_MSA): New macro.
5825 (UNITS_PER_MSA_REG): Likewise.
5826 (BITS_PER_MSA_REG): Likewise.
5827 (BIGGEST_ALIGNMENT): Redefine using ISA_HAS_MSA.
5828 (MSA_REG_FIRST): New macro.
5829 (MSA_REG_LAST): Likewise.
5830 (MSA_REG_NUM): Likewise.
5831 (MSA_REG_P): Likewise.
5832 (MSA_REG_RTX_P): Likewise.
5833 (MSA_SUPPORTED_MODE_P): Likewise.
5834 (HARD_REGNO_CALL_PART_CLOBBERED): Redefine using TARGET_MSA.
5835 (ADDITIONAL_REGISTER_NAMES): Add named registers $w0-$w31.
5836 * config/mips/mips.md: Include mips-msa.md.
5837 (alu_type): Add simd_add.
5838 (mode): Add V2DI, V4SI, V8HI, V16QI, V2DF, V4SF.
5839 (type): Add simd_div, simd_fclass, simd_flog2, simd_fadd,
5840 simd_fcvt, simd_fmul, simd_fmadd, simd_fdiv, simd_bitins,
5841 simd_bitmov, simd_insert, simd_sld, simd_mul, simd_fcmp,
5842 simd_fexp2, simd_int_arith, simd_bit, simd_shift, simd_splat,
5843 simd_fill, simd_permute, simd_shf, simd_sat, simd_pcnt,
5844 simd_copy, simd_branch, simd_cmsa, simd_fminmax, simd_logic,
5845 simd_move, simd_load, simd_store. Choose "multi" for moves
5846 for "qword_mode".
5847 (qword_mode): New attribute.
5848 (insn_count): Add instruction count for quad moves.
5849 Increase the count for MIPS SIMD division.
5850 (UNITMODE): Add UNITMODEs for vector types.
5851 (addsub): New code iterator.
5852 * config/mips/mips.opt (mmsa): New option.
5853 * config/mips/msa.h: New file.
5854 * config/mips/mti-elf.h: Don't infer -mfpxx if -mmsa is
5855 specified.
5856 * config/mips/mti-linux.h: Likewise.
5857 * config/mips/predicates.md
5858 (const_msa_branch_operand): New constraint.
5859 (const_uimm3_operand): Likewise.
5860 (const_uimm4_operand): Likewise.
5861 (const_uimm5_operand): Likewise.
5862 (const_uimm8_operand): Likewise.
5863 (const_imm5_operand): Likewise.
5864 (aq10b_operand): Likewise.
5865 (aq10h_operand): Likewise.
5866 (aq10w_operand): Likewise.
5867 (aq10d_operand): Likewise.
5868 (const_m1_operand): Likewise.
5869 (reg_or_m1_operand): Likewise.
5870 (const_exp_2_operand): Likewise.
5871 (const_exp_4_operand): Likewise.
5872 (const_exp_8_operand): Likewise.
5873 (const_exp_16_operand): Likewise.
5874 (const_vector_same_val_operand): Likewise.
5875 (const_vector_same_simm5_operand): Likewise.
5876 (const_vector_same_uimm5_operand): Likewise.
5877 (const_vector_same_uimm6_operand): Likewise.
5878 (const_vector_same_uimm8_operand): Likewise.
5879 (par_const_vector_shf_set_operand): Likewise.
5880 (reg_or_vector_same_val_operand): Likewise.
5881 (reg_or_vector_same_simm5_operand): Likewise.
5882 (reg_or_vector_same_uimm6_operand): Likewise.
5883 * doc/extend.texi (MIPS SIMD Architecture Functions): New
5884 section.
5885 * doc/invoke.texi (-mmsa): Document new option.
5886
5887 2016-05-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5888
5889 * configure.ac (enable_vtable_verify): Handle --enable-vtable-verify.
5890 * configure: Regenerate.
5891 * config.in: Regenerate.
5892 * gcc.c (VTABLE_VERIFICATION_SPEC) [!ENABLE_VTABLE_VERIFY]: Error
5893 on -fvtable-verify.
5894 * config/sol2.h [!ENABLE_VTABLE_VERIFY] (STARTFILE_VTV_SPEC): Define.
5895 (ENDFILE_VTV_SPEC): Define.
5896
5897 2016-05-09 Kaushik Phatak <kaushik.phatak@kpit.com>
5898
5899 * config/rl78/rl78.c (rl78_expand_prologue): Save the MDUC related
5900 registers in all interrupt handlers if necessary.
5901 (rl78_option_override): Add warning.
5902 (MUST_SAVE_MDUC_REGISTERS): New macro.
5903 (rl78_expand_epilogue): Restore the MDUC registers if necessary.
5904 * config/rl78/rl78.c (check_mduc_usage): New function.
5905 (mduc_regs): New structure to hold MDUC register data.
5906 * config/rl78/rl78.md (is_g13_muldiv_insn): New attribute.
5907 (mulsi3_g13): Add is_g13_muldiv_insn attribute.
5908 (udivmodsi4_g13): Add is_g13_muldiv_insn attribute.
5909 (mulhi3_g13): Add is_g13_muldiv_insn attribute.
5910 * config/rl78/rl78.opt (msave-mduc-in-interrupts): New option.
5911 * doc/invoke.texi (RL78 Options): Add -msave-mduc-in-interrupts.
5912
5913 2016-05-09 Bin Cheng <bin.cheng@arm.com>
5914
5915 * tree-if-conv.c (tree-ssa-loop.h): Include header file.
5916 (tree-ssa-loop-niter.h): Ditto.
5917 (idx_within_array_bound, ref_within_array_bound): New functions.
5918 (ifcvt_memrefs_wont_trap): Check if array ref is within bound.
5919 Factor out check on writable base object to ...
5920 (base_object_writable): ... here.
5921
5922 2016-05-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5923
5924 * config/arm/arm.md (probe_stack): Add modes to set source
5925 and destination.
5926
5927 2016-05-09 Bernd Schmidt <bschmidt@redhat.com>
5928
5929 * regrename.c (base_reg_class_for_rename): New static function.
5930 (scan_rtx_address, scan_rtx): Use it instead of base_reg_class.
5931
5932 2016-05-08 Jan Hubicka <hubicka@ucw.cz>
5933
5934 * cgraph.c (thunk_adjust): Export.
5935 * cgraphclones.c (cgraph_node::create_clone): Clone thunk info.
5936 * cgraphunit.c (thunk_adjust): Export.
5937 (cgraph_node::assemble_thunks_and_aliases): Do not assemble inlined
5938 thunks.
5939 * ipa-inline-analyssi.c (compute_inline_parameters): Thunks are
5940 inlinable.
5941 * tree-inline.c (expand_call_inline): Expand thunks inline.
5942
5943 2016-05-08 Uros Bizjak <ubizjak@gmail.com>
5944
5945 PR target/70998
5946 * config/i386/sse.md (*sse2_vd_cvtsd2ss): New insn pattern.
5947 (*sse2_vd_cvtss2sd): Ditto.
5948 * config/i386/i386.md
5949 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf splitter):
5950 Generate *sse2_vd_cvtsd2ss pattern.
5951 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df splitter):
5952 Generate *sse2_vd_cvtss2sd pattern.
5953
5954 2016-05-08 Oleg Endo <olegendo@gcc.gnu.org>
5955
5956 * config/sh/sh.h (GET_SH_ARG_CLASS): Convert macro into ...
5957 * config/sh/sh.c (get_sh_arg_class): ... this new function. Update its
5958 users.
5959
5960 2016-05-08 Oleg Endo <olegendo@gcc.gnu.org>
5961
5962 * config/sh/sh-protos.h (sh_media_register_for_return): Remove.
5963 * config/sh/sh.c: Define and declare variables on first use throughout
5964 the file.
5965 (current_function_interrupt): Change to bool type.
5966 (frame_insn): Rename to emit_frame_insn and update users.
5967 (push_regs): Use bool for 'interrupt_handler' argument.
5968 (save_schedule_s): Remove.
5969 (TARGET_ASM_UNALIGNED_DI_OP, TARGET_ASM_ALIGNED_DI_OP): Remove.
5970 (sh_option_override): Don't nullify targetm.asm_out.aligned_op.di and
5971 targetm.asm_out.unaligned_op.di.
5972 (gen_far_branch): Remove redundant forward declaration.
5973 (sh_media_register_for_return, MAX_SAVED_REGS, save_entry_s, save_entry,
5974 MAX_TEMPS, save_schedule_ssave_schedule): Remove.
5975 (sh_set_return_address, sh_function_ok_for_sibcall,
5976 scavenge_reg): Update comments.
5977 (sh_builtin_saveregs): Use TRAGET_FPU_ANY condition.
5978 (sh2a_get_function_vector_number, sh2a_function_vector_p): Use for loop.
5979 (sh_attr_renesas_p): Remove unnecessary parentheses.
5980 (branch_dest): Simplify.
5981 * config/sh/sh.h (sh_args): Remove byref, byref_regs, stack_regs fields.
5982 Change force_mem, prototype_p, outgoing, renesas_abi fields to bool.
5983 (CUMULATIVE_ARGS): Change macro to typedef.
5984 (current_function_interrupt): Change to bool type.
5985 (sh_arg_class, sh_args, CUMULATIVE_ARGS, current_function_interrupt):
5986 Surround with __cplusplus ifdef.
5987 (sh_compare_op0, sh_compare_op1): Remove.
5988 (EPILOGUE_USES): Use TARGET_FPU_ANY condition.
5989
5990 2016-05-07 Jim Wilson <jim.wilson@linaro.org>
5991
5992 * config/arm/arm.md: (arch): Add neon.
5993 (arch_enabled): Return yes for arch neon when TARGET_NEON.
5994 * config/arm/vfp.md (movdf_vfp): Add w/G as alternative 3. Add
5995 neon_move as type for alt 3. Add arch attr enabling alt 3 for neon.
5996 Emit vmov.i64 for alt 3. Renumber alternatives 3 to 8. Adjust
5997 attributes for alt renumbering. Mark alt 3 as non-predicable.
5998 (thumb2_movdf_vfp): Likewise.
5999
6000 2016-05-07 Uros Bizjak <ubizjak@gmail.com>
6001
6002 * config/i386/i386.md (*addqi_1): Add preferred_for_speed attribute
6003 to disparage alternatives 3 and 4 for TARGET_PARTIAL_REG_STALL targets.
6004 (*andqi_1): Add preferred_for_speed attribute to disparage
6005 alternative 2 for TARGET_PARTIAL_REG_STALL targets.
6006 (*<code>qi_1): Ditto.
6007 (*one_cmplqi2_1): Add preferred_for_speed attribute to disparage
6008 alternative 1 for TARGET_PARTIAL_REG_STALL targets.
6009 (*ashlqi3_1): Ditto.
6010 (*swap<mode>): Merge from *swap<mode>_1 and *swap<mode>_2 patterns.
6011 Add preferred_for_size attribute to disparage alternative 0 and
6012 preferred_for_speed attribute to disparage alternative 1 for
6013 TARGET_PARTIAL_REG_STALL targets.
6014
6015 2016-05-07 Tom de Vries <tom@codesourcery.com>
6016
6017 PR tree-optimization/70956
6018 * graphite-scop-detection.c (build_cross_bb_scalars_def): Handle NULL
6019 def.
6020
6021 2016-05-07 Oleg Endo <olegendo@gcc.gnu.org>
6022
6023 * config/sh/sh-protos.h (sh_cbranch_distance): Declare new function.
6024 * config/sh/sh.c (sh_cbranch_distance): Implement it.
6025 * config/sh/sh.md (branch_zero): Remove define_attr.
6026 (define_delay): Disable delay slot if branch distance is one insn.
6027
6028 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
6029
6030 * config/i386/i386.md (LEAMODE): New mode attribute.
6031 (plus to LEA splitter): Rewrite splitter using LEAMODE mode attribute.
6032 (ashift to LEA splitter): Rewrte splitter using SWI mode iterator
6033 and LEAMODE mode attribute. Use VOIDmode const_0_to_3_operand as
6034 operand 2 predicate.
6035 (*lea<mode>_general_2): Use VOIDmode for const248_operand.
6036 (*lea<mode>_general_3): Ditto.
6037 (*lea<mode>_general_4): Use VOIDmode for const_0_to_3_operand.
6038
6039 2016-05-06 Jakub Jelinek <jakub@redhat.com>
6040
6041 * genmddump.c (main): Convert argv from char ** to const char **.
6042
6043 2016-05-06 David Malcolm <dmalcolm@redhat.com>
6044
6045 * coretypes.h (OVERRIDE): New macro.
6046 (FINAL): New macro.
6047
6048 2016-05-06 Eric Botcazou <ebotcazou@adacore.com>
6049
6050 * tree-ssa-coalesce.c (gimple_can_coalesce_p): In the optimized case,
6051 allow coalescing if the types are compatible.
6052
6053 2016-05-06 David Malcolm <dmalcolm@redhat.com>
6054
6055 * pass_manager.h (pass_manager::register_pass_name): New method.
6056 (pass_manager::get_pass_by_name): New method.
6057 (pass_manager::create_pass_tab): New method.
6058 (pass_manager::m_name_to_pass_map): New field.
6059 * passes.c (name_to_pass_map): Delete global in favor of field
6060 "m_name_to_pass_map" of pass_manager.
6061 (register_pass_name): Rename from a function to...
6062 (pass_manager::register_pass_name): ...this method, updating
6063 for renaming of global "name_to_pass_map" to field
6064 "m_name_to_pass_map".
6065 (create_pass_tab): Rename from a function to...
6066 (pass_manager::create_pass_tab): ...this method, updating
6067 for renaming of global "name_to_pass_map" to field.
6068 (get_pass_by_name): Rename from a function to...
6069 (pass_manager::get_pass_by_name): ...this method.
6070 (enable_disable_pass): Convert use of get_pass_by_name to
6071 a method call, locating the pass_manager singleton.
6072
6073 2016-05-06 David Malcolm <dmalcolm@redhat.com>
6074
6075 * genattr-common.c (main): Convert argv from char ** to const char **.
6076 * genattr.c (main): Likewise.
6077 * genattrtab.c (main): Likewise.
6078 * genautomata.c (initiate_automaton_gen): Likewise.
6079 (main): Likewise.
6080 * gencodes.c (main): Likewise.
6081 * genconditions.c (main): Likewise.
6082 * genconfig.c (main): Likewise.
6083 * genconstants.c (main): Likewise.
6084 * genemit.c (main): Likewise.
6085 * genenums.c (main): Likewise.
6086 * genextract.c (main): Likewise.
6087 * genflags.c (main): Likewise.
6088 * genmddeps.c (main): Likewise.
6089 * genopinit.c (main): Likewise.
6090 * genoutput.c (main): Likewise.
6091 * genpeep.c (main): Likewise.
6092 * genpreds.c (main): Likewise.
6093 * genrecog.c (main): Likewise.
6094 * gensupport.c (init_rtx_reader_args_cb): Likewise.
6095 (init_rtx_reader_args): Likewise.
6096 * gensupport.h (init_rtx_reader_args_cb): Likewise.
6097 (init_rtx_reader_args): Likewise.
6098 * gentarget-def.c (main): Likewise.
6099 * read-md.c (read_md_files): Likewise.
6100 * read-md.h (read_md_files): Likewise.
6101
6102 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
6103
6104 * config/i386/i386.md (int cmove peephole2s): Use general_reg_operand
6105 instead of register_and_not_any_fp_reg_operand as operand 0 predicate.
6106 * config/i386/predicates.md (register_and_not_any_fp_reg_operand):
6107 Remove unused predicate.
6108 (register_and_not_fp_reg_operand): Ditto.
6109
6110 2016-05-06 Martin Liska <mliska@suse.cz>
6111
6112 * tree-if-conv.c (ifcvt_split_critical_edges): Use auto_vec
6113 instead of vec as the vector is local to the function.
6114
6115 2016-05-06 Jakub Jelinek <jakub@redhat.com>
6116
6117 * config/i386/sse.md (*<code>v8hi3, *<code>v16qi3): Add
6118 avx512bw alternative.
6119
6120 * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>): Move
6121 before the ashr<mode>3 pattern.
6122
6123 * config/i386/sse.md (*avx2_pmaddwd, *sse2_pmaddwd): Use
6124 v instead of x in vex or maybe_vex alternatives, use
6125 maybe_evex instead of vex in prefix.
6126
6127 * config/i386/sse.md (*vec_extractv4sf_0, *sse4_1_extractps,
6128 *vec_extractv4sf_mem, vec_extract_lo_v16hi, vec_extract_hi_v16hi,
6129 vec_extract_lo_v32qi, vec_extract_hi_v32qi): Use v instead of x
6130 in vex or maybe_vex alternatives, use maybe_evex instead of vex
6131 in prefix.
6132
6133 * config/i386/sse.md (*vec_concatv2sf_sse4_1, *vec_concatv4sf): Use
6134 v instead of x in vex or maybe_vex alternatives, use
6135 maybe_evex instead of vex in prefix.
6136
6137 * config/i386/sse.md (sse_shufps_<mode>, sse_storehps, sse_loadhps,
6138 sse_storelps, sse_movss, avx2_vec_dup<mode>, avx2_vec_dupv8sf_1,
6139 sse2_shufpd_<mode>, sse2_storehpd, sse2_storelpd, sse2_loadhpd,
6140 sse2_loadlpd, sse2_movsd): Use v instead of x in vex or maybe_vex
6141 alternatives, use maybe_evex instead of vex in prefix.
6142
6143 * config/i386/sse.md (vec_interleave_lowv4sf,
6144 *vec_interleave_highv2df, *vec_interleave_lowv2df): Use
6145 v instead of x in vex or maybe_vex alternatives, use
6146 maybe_evex instead of vex in prefix.
6147
6148 * config/i386/sse.md (sse_movhlps, sse_movlhps): Use
6149 v instead of x in vex or maybe_vex alternatives, use
6150 maybe_evex instead of vex in prefix.
6151
6152 * config/i386/sse.md (*avx_cvtpd2dq256_2, *avx_cvtps2pd256_2): Use
6153 v constraint instead of x.
6154
6155 2016-05-06 Nathan Sidwell <nathan@codesourcery.com>
6156
6157 * gimple.c (gimple_call_same_target_p): Unique functions are eq.
6158 * tree-ssa-tail-merge.c (same_succ::equal): Check pointer eq
6159 equality first.
6160
6161 2016-05-06 Richard Biener <rguenther@suse.de>
6162
6163 PR tree-optimization/70948
6164 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
6165 Properly clobber all fields of va_list for __builtin_va_start.
6166
6167 2016-05-06 Yuri Rumyantsev <ysrumyan@gmail.com>
6168
6169 PR debug/70935
6170 * tree-ssa-loop-unswitch.c (find_loop_guard): Reject guard edge with
6171 loop latch destination.
6172
6173 2016-05-06 Martin Liska <mliska@suse.cz>
6174
6175 * tree-ssa-uninit.c: Apply manual changes
6176 to the GNU coding style.
6177 (prune_uninit_phi_opnds): Rename from
6178 prune_uninit_phi_opnds_in_unrealizable_paths.
6179
6180 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
6181
6182 * config/sh/sh.opt (madjust-unroll, minvalid-symbols, msoft-atomic,
6183 mspace): Remove deprecated options.
6184 * doc/invoke.texi (SH options): Remove -mspace.
6185
6186 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
6187
6188 * config/sh/sh.md (ic_invalidate_line_sh4a): Fix insn length.
6189
6190 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
6191
6192 * config/sh/sh.md (*cmpeqsi_t): Remove combine insn pattern and similar
6193 corresponding combine split pattern.
6194
6195 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
6196
6197 PR target/58219
6198 * config/sh/predicates.md (long_displacement_mem_operand): New.
6199 * config/sh/sh.md (movsi_i): Allow for SH2A, disallow for any FPU.
6200 Add movi20, movi20s alternatives. Adjust length attribute for
6201 alternatives.
6202 (movsi_ie): Allow for any FPU. Adjust length attribute for
6203 alternatives.
6204 (movsi_i_lowpart): Add movi20, movi20s alternatives. Adjust length
6205 attribute for alternatives.
6206 (*mov<mode>): Use long_displacement_mem_operand for length attribute.
6207 (*movdi_i, movdf_k, movdf_i4, movsf_i, movsf_ie, movsf_ie_ra): Adjust
6208 length attribute for alternatives.
6209
6210 2016-05-06 Richard Biener <rguenther@suse.de>
6211
6212 PR tree-optimization/70960
6213 * tree-if-conv.c (ifcvt_walk_pattern_tree): Handle non-SSA ops.
6214
6215 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
6216
6217 PR target/52933
6218 * config/sh/sh.md (*cmp_div0s_7, *cmp_div0s_8): Add div0s variants.
6219 * config/sh/sh.c (sh_rtx_costs): Add another div0s case.
6220
6221 2016-05-06 Marek Polacek <polacek@redhat.com>
6222
6223 PR sanitizer/70875
6224 * ubsan.c (get_ubsan_type_info_for_type): Remove assert.
6225
6226 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
6227
6228 PR target/54089
6229 * config/sh/sh.md (*rotcr): Add another variant.
6230
6231 2016-05-06 Richard Biener <rguenther@suse.de>
6232
6233 PR middle-end/70931
6234 * dwarf2out.c (native_encode_initializer): Skip zero-sized fields.
6235
6236 2016-05-06 Richard Biener <rguenther@suse.de>
6237
6238 PR middle-end/70941
6239 * fold-const.c (split_tree): Always convert to the original type
6240 before negating.
6241
6242 2016-05-06 Richard Biener <rguenther@suse.de>
6243
6244 * fwprop.c (fwprop): Remove duplicate cleanup_cfg call.
6245 (fwprop_addr): Likewise.
6246
6247 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
6248
6249 PR target/70873
6250 * config/i386/i386-protos.h (ix86_standard_x87sse_constant_load_p):
6251 New prototype.
6252 * config/i386/i386.c (ix86_standard_x87sse_constant_load_p): New.
6253 * config/i386/i386.md (push mem splitter): Use find_constant_src in
6254 the splitter condition.
6255 (FP load splitter): Use ix86_standard_x87sse_constant_load_p in
6256 the splitter condition.
6257 (FP float_extend load splitter): Ditto.
6258
6259 2016-05-05 Uros Bizjak <ubizjak@gmail.com>
6260
6261 * config/i386/i386.md (peehole2 patterns): Change true_regnum
6262 to REGNO in all peephole2 patterns.
6263 (post-reload splitters): Change true_regnum to REGNO in
6264 post-reload splitters.
6265 (zero_extend splitters): Use general_reg_operand and
6266 nonimmediate_gr_operand predicates.
6267
6268 2016-05-05 Jakub Jelinek <jakub@redhat.com>
6269
6270 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>): Use
6271 v constraint instead of x.
6272
6273 2016-05-05 Alan Modra <amodra@gmail.com>
6274
6275 PR target/68662
6276 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't
6277 set OPTION_MASK_RELOCATABLE when flag_pic == 2. Set
6278 TARGET_NO_FP_IN_TOC for -mrelocatable.
6279 (MINIMAL_TOC_SECTION_ASM_OP): Remove redundant
6280 TARGET_RELOCATABLE test.
6281 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
6282 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
6283 * config/rs6000/linux64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
6284 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
6285 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
6286 * config/rs6000/freebsd64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
6287 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
6288 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
6289 * config/rs6000/predicates.md (easy_fp_constant): Likewise.
6290 * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
6291 Likewise.
6292 (rs6000_assemble_integer): Update TARGET_RELOCATABLE test.
6293 (rs6000_stack_info): Likewise.
6294 (rs6000_elf_asm_out_constructor): Likewise.
6295 (rs6000_elf_asm_out_destructor): Likewise.
6296 (rs6000_elf_declare_function_name): Likewise.
6297 * config/rs6000/rs6000.md (load_toc_aix_di): Likewise.
6298 * config/rs6000/rs6000.h (MASK_RELOCATABLE, MASK_MINIMAL_TOC):
6299 Don't define.
6300
6301 2016-05-05 Alan Modra <amodra@gmail.com>
6302
6303 * config/rs6000/rs6000.c (rs6000_frame_related): Rewrite.
6304
6305 2016-05-05 Alan Modra <amodra@gmail.com>
6306
6307 * config/rs6000/rs6000.c (rs6000_savres_strategy): Don't use
6308 out-of-line gpr restore for one or two regs if that would add
6309 a save of lr.
6310
6311 2016-05-04 Uros Bizjak <ubizjak@gmail.com>
6312
6313 PR target/70873
6314 * config/i386/i386.md
6315 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df peephole2):
6316 Change to post-epilogue_completed late splitter. Use sse_reg_operand
6317 as operand 0 predicate.
6318 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf peephole2):
6319 Ditto.
6320 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float {si,di}->{sf,df} peephole2):
6321 Ditto. Emit the pattern using RTX.
6322
6323 (TARGET_USE_VECTOR_FP_CONVERTS float_extend sf->df splitter):
6324 Use sse_reg_opreand as operand 0 predicate. Do not use true_regnum in
6325 the post-reload splitter. Use lowpart_subreg instead of gen_rtx_REG.
6326 (TARGET_USE_VECTOR_FP_CONVERTS float_truncate df->sf splitter):
6327 Ditto.
6328 (TARGET_USE_VECTOR_CONVERTS float si->{sf,df} splitter): Use
6329 sse_reg_operand as operand 0 predicate.
6330
6331 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_extend sf->df peephole2):
6332 Use sse_reg_opreand as operand 0 predicate. Use lowpart_subreg
6333 instead of gen_rtx_REG.
6334 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_truncate sf->df peephole2):
6335 Ditto.
6336
6337 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
6338
6339 * function.c (emit_use_return_register_into_block): Delete.
6340 (gen_return_pattern): Delete.
6341 (emit_return_into_block): Delete.
6342 (active_insn_between): Delete.
6343 (convert_jumps_to_returns): Delete.
6344 (emit_return_for_exit): Delete.
6345 (thread_prologue_and_epilogue_insns): Delete all code dealing with
6346 simple_return for shrink-wrapped blocks.
6347 * shrink-wrap.c (try_shrink_wrapping): Insert simple_return at the
6348 end of blocks that need one.
6349 (get_unconverted_simple_return): Delete.
6350 (convert_to_simple_return): Delete.
6351 * shrink-wrap.c (get_unconverted_simple_return): Delete declaration.
6352 (convert_to_simple_return): Ditto.
6353
6354 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
6355
6356 * cfgcleanup.c (bb_is_just_return): New function.
6357 (try_optimize_cfg): Simplify jumps to return, branches to return,
6358 and branches around return.
6359
6360 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
6361
6362 * cfgcleanup.c (try_simplify_condjump): Don't try to simplify a
6363 branch to a return.
6364
6365 2016-05-04 Jakub Jelinek <jakub@redhat.com>
6366
6367 PR c++/70906
6368 PR c++/70933
6369 * tree-core.h (enum operand_equal_flag): Add OEP_HASH_CHECK.
6370 * tree.c (inchash::add_expr): If !IS_EXPR_CODE_CLASS (tclass),
6371 assert flags & OEP_HASH_CHECK, instead of asserting it
6372 never happens. Handle TARGET_EXPR.
6373 * fold-const.c (operand_equal_p): For hash verification,
6374 or in OEP_HASH_CHECK into flags.
6375
6376 2016-05-04 Eric Botcazou <ebotcazou@adacore.com>
6377
6378 * tree-ssa-coalesce.c (gimple_can_coalesce_p): Fix reference in head
6379 comment.
6380 (compute_samebase_partition_bases): Fix typo.
6381
6382 2016-05-04 Jakub Jelinek <jakub@redhat.com>
6383
6384 * config/i386/sse.md (vec_interleave_highv8sf,
6385 vec_interleave_lowv8sf, vec_interleave_highv4df,
6386 vec_interleave_lowv4df): Remove constraints from expanders.
6387
6388 * config/i386/sse.md (sse2_movq128): Use v constraint instead of x.
6389
6390 2016-05-04 Jan Hubicka <hubicka@ucw.cz>
6391
6392 * tree-inline.c (expand_call_inline): Fix path dealing with
6393 making lhs of call statement undefined.
6394
6395 2016-05-04 Jan Hubicka <hubicka@ucw.cz>
6396
6397 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
6398 Check availability on NODE, too.
6399 * cgraph.h (symtab_node::call_for_symbol_and_aliases): Likewise.
6400 (cgraph_node::call_for_symbol_and_aliases): Likewise.
6401 (varpool_node::call_for_symbol_and_aliase): Likewise.
6402 * ipa-pure-const.c (add_new_function): Analyze all bodies.
6403 (propagate_pure_const): Propagate across interposable functions, too.
6404 (skip_function_for_local_pure_const): Do not skip interposable bodies
6405 with aliases.
6406 (pass_local_pure_const::execute): Update.
6407
6408 2016-05-04 Marek Polacek <polacek@redhat.com>
6409
6410 * doc/invoke.texi: Document -Wdangling-else.
6411
6412 2016-05-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
6413
6414 * config.gcc: Error out when conflicting multilib is detected. Do not
6415 loop over multilibs since no combination is legal.
6416
6417 2016-05-04 Alan Modra <amodra@gmail.com>
6418
6419 * config/rs6000/rs6000.h (PIC_OFFSET_TABLE_REGNUM): Correct.
6420 * config/rs6000/sysv4.h (TARGET_TOC): Simplify.
6421 * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
6422 Align .toc.
6423
6424 2016-05-04 Matthew Fortune <matthew.fortune@imgtec.com>
6425
6426 * config/mips/mips-cpus.def (p5600): Avoid IMADD by default.
6427 Clean up p5600 comments.
6428
6429 2016-05-04 Richard Biener <rguenther@suse.de>
6430
6431 * match.pd: Add BIT_FIELD_REF canonicalizations and vector
6432 constructor simplifications.
6433 * fold-const.c (fold_ternary_loc): Remove duplicate functionality here.
6434
6435 2016-05-04 Oleg Endo <olegendo@gcc.gnu.org>
6436
6437 * config/sh/predicates (post_inc_mem, pre_dec_mem): New predicates.
6438 * config/sh/sh-protos.h (sh_find_set_of_reg): Return null result if
6439 result.set_rtx is null instead of aborting.
6440 * config/sh/sh.h (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT):
6441 Always enable.
6442 (USE_LOAD_PRE_DECREMENT, USE_STORE_POST_INCREMENT): Enable for SH2A.
6443 * config/sh/sh.md (*extend<mode>si2_predec, *mov<mode>_load_predec,
6444 *mov<mode>_store_postinc): New patterns.
6445
6446 2016-05-04 Marc Glisse <marc.glisse@inria.fr>
6447
6448 * match.pd ((A | B) & (A | C)): Generalize to BIT_XOR_EXPR. Mark
6449 as commutative. Check both conversions are NOP.
6450 ((A & B) OP (C & B)): Remove.
6451
6452 2016-05-04 Alan Modra <amodra@gmail.com>
6453
6454 * combine.c (simplify_set): Correct WORD_REGISTER_OPERATIONS test.
6455
6456 2016-05-04 Alan Modra <amodra@gmail.com>
6457
6458 PR target/70866
6459 * config/rs6000/rs6000.c (rs6000_stack_info): Don't set cr_save_p
6460 when cr2,3,4 are all fixed regs.
6461
6462 2016-05-04 Bernd Schmidt <bschmidt@redhat.com>
6463
6464 PR rtl-optimization/57193
6465 * opts.c (default_options_table): Revert OPT_frename_registers change.
6466 * doc/invoke.texi (-frename-registers, -O2): Likewise.
6467
6468 2016-05-03 Martin Sebor <msebor@redhat.com>
6469
6470 PR c++/66561
6471 * builtins.c (fold_builtin_FILE): New function.
6472 (fold_builtin_FUNCTION, fold_builtin_LINE): New functions.
6473 (fold_builtin_0): Call them.
6474 * gimplify.c (gimplify_call_expr): Remove the handling of
6475 BUILT_IN_FILE, BUILT_IN_FUNCTION, and BUILT_IN_LINE.
6476
6477 PR c++/66561
6478 * doc/extend.texi (Other Builtins): Update __builtin_FILE,
6479 __builtin_FUNCTION, and __builtin_LINE to reflect they yield
6480 constants.
6481
6482 PR c++/66639
6483 * doc/extend.texi (Function Names as Strings): Update __func__,
6484 __FUNCTION__, __PRETTY_FUNCTION__ to reflect they evaluate to
6485 constants.
6486
6487 2016-05-03 Jakub Jelinek <jakub@redhat.com>
6488 Richard Biener <rguenther@suse.de>
6489
6490 PR tree-optimization/70916
6491 * tree-if-conv.c: Include cfganal.h.
6492 (pass_if_conversion::execute): Call connect_infinite_loops_to_exit
6493 and remove_fake_exit_edges around the optimization pass.
6494
6495 2016-05-03 Jan Hubicka <hubicka@ucw.cz>
6496
6497 * cgraph.c (symbol_table::create_edge): Set inline_failed.
6498 (cgraph_edge::make_direct): Likewise.
6499 (cgraph_edge::dump_edge_flags): Dump call_stmt_cannot_inline_p.
6500 * cgraphclones.c (duplicate_thunk_for_node): Set inline_failed.
6501 * cif-code.def (CIF_LTO_MISMATCHED_DECLARATIONS): New code
6502 (CIF_THUNK): New code.
6503 * ipa-inline-analysis.c (initialize_inline_failed): Preserve
6504 CIF_FINAL_ERROR codes; do not deal with call_stmt_cannot_inline_p.
6505 (compute_inline_parameters): Set inline_failed for thunks.
6506 (inline_analyze_function): Cleanup.
6507 * ipa-inline.c (can_inline_edge_p): Do not deal with
6508 call_stmt_cannot_inline_p.
6509 (can_early_inline_edge_p): Likewise.
6510 (early_inliner): Initialize inline_failed.
6511 * lto-cgraph.c (lto_output_edge): Sanity check inline_failed.
6512
6513 2016-05-03 Uros Bizjak <ubizjak@gmail.com>
6514
6515 * config/i386/predicates.md (x87nonimm_ssenomem_operand): Rename
6516 from nonimm_ssenomem_operand.
6517 (nonimm_ssenomem_operand): New predicate.
6518 * config/i386/i386.md (extendsfdf2): Use nonimm_ssenomem_operand
6519 as operand 0 predicate.
6520 (*extendsfdf2): Merge from *extendsfdf2_mixed and *extendsfdf2_i387.
6521 Disable unsupported alternatives using "enabled" attribute.
6522 Use register_ssemem_operand as operand 0 predicate.
6523 (*fop_<mode>_1): Use x87nonimm_ssenomem_operand as operand 1 predicate.
6524
6525 2016-05-03 Marek Polacek <polacek@redhat.com>
6526
6527 PR c/70859
6528 * input.c (expansion_point_location): New function.
6529 * input.h (expansion_point_location): Declare.
6530
6531 2016-05-03 Pierre-Marie de Rodat <derodat@adacore.com>
6532
6533 * dwarf2out.c (resolve_args_picking_1): Replace the frame_offset
6534 occurence with frame_offset_ ones.
6535
6536 2016-05-03 Alan Modra <amodra@gmail.com>
6537
6538 PR rtl-optimization/70890
6539 * ira.c (combine_and_move_insns): When moving def_insn, remove
6540 equivs on use_insn.
6541
6542 2016-05-03 Dominik Vogt <vogt@linux.vnet.ibm.com>
6543
6544 * config/s390/s390.md ("*r<noxa>sbg_<mode>_sll")
6545 ("*r<noxa>sbg_<mode>_srl"): New define_insns.
6546 ("*r<noxa>sbg_<mode>_srl_bitmask"): Rename by adding "_bitmask".
6547 ("*r<noxa>sbg_<mode>_sll_bitmask"): Likewise.
6548
6549 2016-05-03 Alan Modra <amodra@gmail.com>
6550
6551 * config/rs6000/rs6000.c (rs6000_savres_strategy): Correct condition
6552 for SAVE_MULTIPLE/STORE_MULTIPLE.
6553
6554 2016-05-03 Jakub Jelinek <jakub@redhat.com>
6555
6556 * config/i386/i386.md (*truncdfsf_mixed, *truncdfsf_i387,
6557 *truncxfsf2_mixed, *truncxfdf2_mixed): Use v constraint instead of x.
6558
6559 2016-05-03 Richard Biener <rguenther@suse.de>
6560
6561 * gimplify.h (get_initialized_tmp_var): Add allow_ssa parameter
6562 default true.
6563 (gimplify_arg): Likewise.
6564 * gimplify.c (gimplify_expr): Add overload with allow_ssa parameter,
6565 re-writing the result to a decl if required.
6566 (internal_get_tmp_var): Add allow_ssa parameter
6567 and override into_ssa with it.
6568 (get_formal_tmp_var): Adjust.
6569 (get_initialized_tmp_var): Add allow_ssa parameter.
6570 (gimplify_arg): Add allow_ssa parameter and avoid generating
6571 SSA names for the result false.
6572 (gimplify_call_expr): If the call may return twice do not
6573 gimplify parameters into SSA.
6574 (prepare_gimple_addressable): Do not allow an SSA name as temporary.
6575 (gimplify_modify_expr): Adjust assert. For noreturn calls
6576 with a SSA name LHS adjust its def.
6577 (gimplify_save_expr): Do not allow an SSA name as save-expr result.
6578 (gimplify_one_sizepos): Do not allow an SSA name as a sizepos.
6579 (gimplify_body): Init GIMPLE SSA data structures and gimplify into-SSA.
6580 (gimplify_scan_omp_clauses): Make sure OMP_CLAUSE_SIZE is not
6581 an SSA name. Likewise for OMP_CLAUSE_REDUCTION operands.
6582 (gimplify_omp_for): Likewise for OMP_CLAUSE_DECL. Likewise
6583 for OMP_FOR_COND, OMP_FOR_INCR and OMP_CLAUSE_LINEAR_STEP.
6584 (optimize_target_teams): Do not allow SSA names for clause operands.
6585 (gimplify_expr): Likewise for where we mark the result addressable.
6586 * passes.def (pass_init_datastructures): Remove.
6587 * tree-into-ssa.c (mark_def_sites): Ignore existing SSA names.
6588 (rewrite_stmt): Likewise.
6589 * tree-inline.c (initialize_cfun): Properly transfer SSA state.
6590 (replace_locals_op): Replace SSA names.
6591 (copy_gimple_seq_and_replace_locals): Init src_cfun.
6592 * gimple-low.c (lower_builtin_setjmp): Deal with SSA.
6593 * cgraph.c (release_function_body): Free CFG annotations only
6594 when we have a CFG. Simplify.
6595 * gimple-fold.c (gimplify_and_update_call_from_tree): Use
6596 force_gimple_operand instead of get_initialized_tmp_var.
6597 * tree-pass.h (make_pass_init_datastructures): Remove.
6598 * tree-ssa.c (execute_init_datastructures): Remove.
6599 (pass_data_init_datastructures): Likewise.
6600 (class pass_init_datastructures): Likewise.
6601 (make_pass_init_datastructures): Likewise.
6602 * omp-low.c (create_omp_child_function): Init SSA data structures.
6603 (grid_expand_target_grid_body): Likewise.
6604 * tree-cfg.c (move_block_to_fn): Double-check the DEF is an SSA
6605 name before adding it to names_to_release.
6606 (remove_bb): Always release SSA defs.
6607 * tree-ssa-ccp.c (get_default_value): Check SSA_NAME_VAR
6608 before dereferencing it.
6609 * cgraphunit.c (init_lowered_empty_function): Always
6610 int SSA data structures.
6611 * tree-ssanames.c (release_defs): Remove assert that we are in
6612 SSA form.
6613 * trans-mem.c (diagnose_tm_1): Handle SSA name function.
6614
6615 2016-05-03 Jakub Jelinek <jakub@redhat.com>
6616 Uros Bizjak <ubizjak@gmail.com>
6617
6618 PR rtl-optimization/70467
6619 * config/i386/predicates.md (x86_64_hilo_int_operand,
6620 x86_64_hilo_general_operand): New predicates.
6621 * config/i386/constraints.md (Wd): New constraint.
6622 * config/i386/i386.md (mode attr di): Use Wd instead of e.
6623 (general_hilo_operand): New mode attr.
6624 (add<mode>3, sub<mode>3): Use <general_hilo_operand>
6625 instead of <general_operand>.
6626 (*add<dwi>3_doubleword, *sub<dwi>3_doubleword): Use
6627 x86_64_hilo_general_operand instead of <general_operand>.
6628
6629 2016-05-03 Jakub Jelinek <jakub@redhat.com>
6630
6631 PR tree-optimization/70916
6632 * tree-if-conv.c (constant_or_ssa_name): Removed.
6633 (fold_build_cond_expr): Use is_gimple_val instead of
6634 constant_or_ssa_name.
6635
6636 PR tree-optimization/70916
6637 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Give up
6638 if COND_EXPR rhs1 is neither SSA_NAME nor COMPARISON_CLASS_P.
6639
6640 PR target/49244
6641 * tree-ssa-ccp.c: Include stor-layout.h and optabs-query.h.
6642 (optimize_atomic_bit_test_and): New function.
6643 (pass_fold_builtins::execute): Use it.
6644 * optabs.def (atomic_bit_test_and_set_optab,
6645 atomic_bit_test_and_complement_optab,
6646 atomic_bit_test_and_reset_optab): New optabs.
6647 * internal-fn.def (ATOMIC_BIT_TEST_AND_SET,
6648 ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_BIT_TEST_AND_RESET): New ifns.
6649 * builtins.h (expand_ifn_atomic_bit_test_and): New prototype.
6650 * builtins.c (expand_ifn_atomic_bit_test_and): New function.
6651 * internal-fn.c (expand_ATOMIC_BIT_TEST_AND_SET,
6652 expand_ATOMIC_BIT_TEST_AND_COMPLEMENT,
6653 expand_ATOMIC_BIT_TEST_AND_RESET): New functions.
6654 * doc/md.texi (atomic_bit_test_and_set@var{mode},
6655 atomic_bit_test_and_complement@var{mode},
6656 atomic_bit_test_and_reset@var{mode}): Document.
6657 * config/i386/sync.md (atomic_bit_test_and_set<mode>,
6658 atomic_bit_test_and_complement<mode>,
6659 atomic_bit_test_and_reset<mode>): New expanders.
6660 (atomic_bit_test_and_set<mode>_1,
6661 atomic_bit_test_and_complement<mode>_1,
6662 atomic_bit_test_and_reset<mode>_1): New insns.
6663
6664 2016-05-03 Richard Sandiford <richard.sandiford@arm.com>
6665
6666 PR rtl-optimization/70687
6667 * combine.c (change_zero_ext): Check for scalar modes. Use wide_int
6668 instead of unsigned HOST_WIDE_INT.
6669
6670 2016-05-03 Bernd Schmidt <bschmidt@redhat.com>
6671
6672 PR rtl-optimization/44281
6673 * hard-reg-set.h (struct target_hard_regs): New field
6674 x_fixed_nonglobal_reg_set.
6675 (fixed_nonglobal_reg_set): New macro.
6676 * reginfo.c (init_reg_sets_1): Initialize it.
6677 * ira.c (setup_alloc_regs): Use fixed_nonglobal_reg_set instead
6678 of fixed_reg_set.
6679 * df-scan.c (df_insn_refs_collect): Asms may reference global regs.
6680
6681 2016-05-03 Bin Cheng <bin.cheng@arm.com>
6682
6683 PR tree-optimization/56541
6684 * doc/invoke.texi (@item max-tree-if-conversion-phi-args): New item.
6685 * params.def (PARAM_MAX_TREE_IF_CONVERSION_PHI_ARGS): new param.
6686 * tree-if-conv.c (MAX_PHI_ARG_NUM): new macro.
6687 (any_complicated_phi): new static variable.
6688 (aggressive_if_conv): delete.
6689 (if_convertible_phi_p): support phis with more than two arguments.
6690 (if_convertible_bb_p): remvoe check on aggressive_if_conv and
6691 critical pred edges.
6692 (ifcvt_split_critical_edges): support phis with more than two
6693 arguments by checking new parameter. only split critical edges
6694 if needed.
6695 (tree_if_conversion): handle simd pragma marked loop using new
6696 local variable aggressive_if_conv. check any_complicated_phi.
6697
6698 2016-05-03 Bin Cheng <bin.cheng@arm.com>
6699
6700 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check depends_on
6701 before using it.
6702
6703 2016-05-03 Bin Cheng <bin.cheng@arm.com>
6704
6705 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Don't clobber
6706 cbase.
6707
6708 2016-05-03 Oleg Endo <olegendo@gcc.gnu.org>
6709
6710 * config/sh/sh.md (udivsi3, divsi3, mulsi3): Simplify.
6711 (mulhisi3, umulhisi3, (smulsi3_highpart, umulsi3_highpart): Convert to
6712 define_insn_and_split.
6713 (mulsi3_i): New define_insn_and_split.
6714 (mulsi3_call): Convert to define_insn.
6715 (mulsidi3, mulsidi3_compact, umulsidi3, umulsidi3_compact):
6716 Remove constraints.
6717
6718 2016-05-02 Michael Meissner <meissner@linux.vnet.ibm.com>
6719
6720 * machmode.h (mode_complex): Add support to give the complex mode
6721 for a given mode.
6722 (GET_MODE_COMPLEX_MODE): Likewise.
6723 * stor-layout.c (layout_type): For COMPLEX_TYPE, use the mode
6724 stored by build_complex_type and gfc_build_complex_type instead of
6725 trying to figure out the appropriate mode based on the size. Raise
6726 an assertion error, if the type was not set.
6727 * genmodes.c (struct mode_data): Add field for the complex type of
6728 the given type.
6729 (blank_mode): Likewise.
6730 (make_complex_modes): Remember the complex mode created in the
6731 base type.
6732 (emit_mode_complex): Write out the mode_complex array to map a
6733 type mode to the complex version.
6734 (emit_insn_modes_c): Likewise.
6735 * tree.c (build_complex_type): Set the complex type to use before
6736 calling layout_type.
6737 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Add
6738 support for __float128 complex datatypes.
6739 (rs6000_hard_regno_mode_ok): Likewise.
6740 (rs6000_setup_reg_addr_masks): Likewise.
6741 (rs6000_complex_function_value): Likewise.
6742 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): Likewise.
6743 __float128 and __ibm128 complex.
6744 (FLOAT128_IBM_P): Likewise.
6745 (ALTIVEC_ARG_MAX_RETURN): Likewise.
6746 * doc/extend.texi (Additional Floating Types): Document that
6747 -mfloat128 must be used to enable __float128. Document complex
6748 __float128 and __ibm128 support.
6749
6750 2016-05-02 Jakub Jelinek <jakub@redhat.com>
6751
6752 PR target/49244
6753 * gimple.c (gimple_builtin_call_types_compatible_p): Allow
6754 char/short arguments promoted to int because of promote_prototypes.
6755
6756 2016-05-02 Uros Bizjak <ubizjak@gmail.com>
6757
6758 * config/i386/predicates.md (register_ssemem_operand): New predicate.
6759 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>): Merge from
6760 *cmpi<FPCMP:unord><MODEF:mode>_mixed and
6761 *cmpi<FPCMP:unord><X87MODEF:mode>_i387. Disable unsupported
6762 alternatives using "enabled" attribute. Use register_ssemem_operand
6763 as operand 1 predicate.
6764 (*cmpi<unord>xf_i387): Split XFmode pattern from
6765 *cmpi<FPCMP:unord><X87MODEF:mode>_i387.
6766 (*absneg<mode>2): Merge from *absneg<mode>2_mixed and
6767 *absneg<mode>2_i387. Disable unsupported alternatives using
6768 "enabled" attribute.
6769 (*absnegxf2_i387): Split XFmode pattern from *absneg<mode>2_i387.
6770
6771 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
6772
6773 * omp-low.c (lower_oacc_head_tail): Assert there is at least one
6774 marker.
6775 (oacc_loop_process): Check mask for loop termination.
6776
6777 2016-05-02 Jan Hubicka <hubicka@ucw.cz>
6778
6779 * cif-code.def (CIF_THUNK): Add.
6780 * ipa-inline-analsysis.c (evaluate_conditions_for_known_args): Revert
6781 accidental change.
6782
6783 2016-05-02 Jan Hubicka <hubicka@ucw.cz>
6784
6785 * ipa-inline-analysis.c (reset_inline_summary): Clear fp_expressions
6786 (dump_inline_summary): Dump it.
6787 (fp_expression_p): New predicate.
6788 (estimate_function_body_sizes): Use it.
6789 (inline_merge_summary): Merge fp_expressions.
6790 (inline_read_section): Read fp_expressions.
6791 (inline_write_summary): Write fp_expressions.
6792 * ipa-inline.c (can_inline_edge_p): Permit inlining across fp math
6793 codegen boundary if either caller or callee is !fp_expressions.
6794 * ipa-inline.h (inline_summary): Add fp_expressions.
6795 * ipa-inline-transform.c (inline_call): When inlining !fp_expressions
6796 to fp_expressions be sure the fp generation flags are updated.
6797
6798 2016-05-02 Jakub Jelinek <jakub@redhat.com>
6799
6800 PR rtl-optimization/70467
6801 * cse.c (cse_insn): Handle no-op MEM moves after folding.
6802
6803 PR rtl-optimization/70467
6804 * ipa-pure-const.c (check_call): Handle internal calls even in
6805 ipa mode like in local mode.
6806
6807 2016-05-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
6808
6809 * doc/install.texi: Document supported in-tree gmp/mpfr/mpc versions.
6810
6811 2016-05-02 Marc Glisse <marc.glisse@inria.fr>
6812
6813 * match.pd (X u< X, X u> X): New transformations.
6814
6815 2016-05-02 Marc Glisse <marc.glisse@inria.fr>
6816
6817 * flag-types.h (enum warn_strict_overflow_code): Move ...
6818 * coretypes.h: ... here.
6819 * fold-const.h (fold_overflow_warning): Declare.
6820 * fold-const.c (fold_overflow_warning): Make non-static.
6821 (fold_comparison): Move the transformation of X +- C1 CMP C2
6822 into X CMP C2 -+ C1 ...
6823 * match.pd: ... here.
6824 * gimple-fold.c (fold_stmt_1): Protect with
6825 fold_defer_overflow_warnings.
6826
6827 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
6828
6829 * omp-low.c (struct oacc_loop): Add 'inner' field.
6830 (new_oacc_loop_raw): Initialize it to zero.
6831 (oacc_loop_fixed_partitions): Initialize it.
6832 (oacc_loop_auto_partitions): Partition outermost loop to outermost
6833 available partitioning.
6834
6835 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
6836
6837 * config/arc/arc.md (mulsidi3): Change operand 0 predicate to
6838 register_operand.
6839 (umulsidi3): Likewise.
6840 (indirect_jump): Fix jump instruction assembly patterns.
6841
6842 2016-05-02 Thomas Schwinge <thomas@codesourcery.com>
6843
6844 PR target/70860
6845 * config/nvptx/nvptx.c (nvptx_libcall_value): Handle NULL cfun.
6846 (nvptx_function_value): Assert non-NULL cfun.
6847
6848 2016-05-02 Eric Botcazou <ebotcazou@adacore.com>
6849
6850 PR rtl-optimization/70886
6851 * sched-deps.c (estimate_dep_weak): Canonicalize cselib values.
6852
6853 * cselib.h (rtx_equal_for_cselib_1): Declare.
6854 (rtx_equal_for_cselib_p: New inline function.
6855 * cselib.c (rtx_equal_for_cselib_p): Delete.
6856 (rtx_equal_for_cselib_1): Make public.
6857
6858 2016-05-02 Uros Bizjak <ubizjak@gmail.com>
6859
6860 * config/i386/predicates.md (nonimm_ssenomem_operand): New predicate.
6861 (register_mixssei387nonimm_operand): Remove predicate.
6862 * config/i386/i386.md (*fop_<mode>_comm): Merge from
6863 *fop_<mode>_comm_mixed and *fop_<mode>_comm_i387. Disable unsupported
6864 alternatives using "enabled" attribute. Also check X87_ENABLE_ARITH
6865 for TARGET_MIX_SSE_I387 alternatives.
6866 (*fop_<mode>_1): Merge from *fop_<mode>_1_mixed and *fop_<mode>_1_i387.
6867 Disable unsupported alternatives using "enabled" attribute. Use
6868 nonimm_ssenomem_operand as operand 1 predicate. Also check
6869 X87_ENABLE_ARITH for TARGET_MIX_SSE_I387 alternatives.
6870
6871 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
6872
6873 * tree.c (cst_and_fits_in_hwi): Simplify.
6874
6875 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
6876
6877 * tree.h (wi::to_wide): New function.
6878 * expr.c (expand_expr_real_1): Use wi::to_wide.
6879 * fold-const.c (int_const_binop_1): Likewise.
6880 (extract_muldiv_1): Likewise.
6881
6882 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
6883
6884 * wide-int.h: Update offset_int and widest_int documentation.
6885 (WI_SIGNED_SHIFT_RESULT): New macro.
6886 (wi::binary_shift): Define signed_shift_result_type for
6887 shifts on offset_int- and widest_int-like types.
6888 (generic_wide_int): Support <<= and >>= if << and >> are supported.
6889 * tree.h (int_bit_position): Use shift operators instead of wi::
6890 shifts.
6891 * alias.c (adjust_offset_for_component_ref): Likewise.
6892 * expr.c (get_inner_reference): Likewise.
6893 * fold-const.c (fold_comparison): Likewise.
6894 * gimple-fold.c (fold_nonarray_ctor_reference): Likewise.
6895 * gimple-ssa-strength-reduction.c (restructure_reference): Likewise.
6896 * tree-dfa.c (get_ref_base_and_extent): Likewise.
6897 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
6898 (stmt_kills_ref_p): Likewise.
6899 * tree-ssa-ccp.c (bit_value_binop_1): Likewise.
6900 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Likewise.
6901 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
6902 (ao_ref_init_from_vn_reference): Likewise.
6903
6904 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
6905
6906 * wide-int.h: Update offset_int and widest_int documentation.
6907 (WI_SIGNED_BINARY_PREDICATE_RESULT): New macro.
6908 (wi::binary_traits): Allow ordered comparisons between offset_int and
6909 offset_int, between widest_int and widest_int, and between either
6910 of these types and basic C types.
6911 (operator <, <=, >, >=): Define for the same combinations.
6912 * tree.h (tree_int_cst_lt): Use comparison operators instead
6913 of wi:: comparisons.
6914 (tree_int_cst_le): Likewise.
6915 * gimple-fold.c (fold_array_ctor_reference): Likewise.
6916 (fold_nonarray_ctor_reference): Likewise.
6917 * gimple-ssa-strength-reduction.c (record_increment): Likewise.
6918 * tree-affine.c (aff_comb_cannot_overlap_p): Likewise.
6919 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Likewise.
6920 * tree-sra.c (completely_scalarize): Likewise.
6921 * tree-ssa-alias.c (stmt_kills_ref_p): Likewise.
6922 * tree-ssa-reassoc.c (extract_bit_test_mask): Likewise.
6923 * tree-vrp.c (extract_range_from_binary_expr_1): Likewise.
6924 (check_for_binary_op_overflow): Likewise.
6925 (search_for_addr_array): Likewise.
6926 * ubsan.c (ubsan_expand_objsize_ifn): Likewise.
6927
6928 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
6929
6930 * config/arc/arc.c (arc_preferred_simd_mode): Remove enum keyword.
6931 (arc_save_restore): Likewise.
6932 (arc_dwarf_register_span): Likewise.
6933 (arc_output_pic_addr_const): Initialize suffix variable.
6934
6935 2016-05-02 Martin Liska <mliska@suse.cz>
6936
6937 * symbol-summary.h (function_summary::function_summary):
6938 Remove checking assert for all cgraph nodes.
6939 (function_summary::get): Check summary_uid.
6940 (symtab_insertion): Check summary_uid.
6941
6942 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
6943
6944 * config/arc/arc-protos.h (compact_memory_operand_p): Declare.
6945 * config/arc/arc.c (arc_output_commutative_cond_exec): Consider
6946 bmaskn instruction.
6947 (arc_dwarf_register_span): Remove enum keyword.
6948 (compact_memory_operand_p): New function.
6949 * config/arc/arc.h (reg_class): Add code density register classes.
6950 (REG_CLASS_NAMES): Likewise.
6951 (REG_CLASS_CONTENTS): Likewise.
6952 * config/arc/arc.md (*movqi_insn): Add code density instructions.
6953 (*movhi_insn, *movsi_insn, *movsf_insn): Likewise.
6954 (*extendhisi2_i, andsi3_i, cmpsi_cc_insn_mixed): Likewise.
6955 (*cmpsi_cc_c_insn, *movsi_ne): Likewise.
6956 * config/arc/constraints.md (C2p, Uts, Cm1, Cm3, Ucd): New
6957 constraints.
6958 (h, Rcd, Rsd, Rzd): New register constraints.
6959 (T): Use compact_memory_operand_p function.
6960 * config/arc/predicates.md (compact_load_memory_operand): Remove.
6961
6962 2016-05-02 Oleg Endo <olegendo@gcc.gnu.org>
6963
6964 * config/sh/sh.md (*negnegt, *movtt): Remove.
6965
6966 2016-05-02 Marek Polacek <polacek@redhat.com>
6967 Tom de Vries <tom@codesourcery.com>
6968
6969 PR tree-optimization/70700
6970 * tree-ssa-structalias.c (dump_pred_graph): Fix getting varinfo for ids
6971 bigger than FIRST_REF_NODE.
6972
6973 2016-05-02 Oleg Endo <olegendo@gcc.gnu.org>
6974
6975 PR target/52898
6976 * config/sh/sh.c (sh_option_override): Remove TARGET_CBRANCHDI4,
6977 TARGET_CMPEQDI_T.
6978 (prepare_cbranch_operands): Don't use scratch register. Assume that
6979 function is used when pseudos can be created.
6980 (expand_cbranchdi4): Likewise. Remove unused TARGET_CMPEQDI_T paths.
6981 * config/sh/sh.md (cbranchsi4): Allow only when pseudos can be created.
6982 (cbranchdi4, cbranchdi4_i): Simplify to single cbranchdi4
6983 define_expand. Allow it only when pseudos can be created.
6984 * config/sh/sh.opt (mcbranchdi, mcmpeqdi): Delete.
6985
6986 2016-05-01 Uros Bizjak <ubizjak@gmail.com>
6987
6988 * config/i386/constraints.md (BC): Only allow -1 operands.
6989 * config/i386/sse.md (mov<mode>_internal): Add (v,C) alternative.
6990 Add "enabled" attribute. Update XI mode attribute calculation.
6991 * config/i386/i386.md (*movxi_internal_avx512f): Add (v,C) alternative.
6992 (*movoi_internal_avx): Update XI mode attribute calculation.
6993 (*movti_internal): Ditto.
6994
6995 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
6996
6997 * config/sh/sh.md (push, pop, ic_invalidate_line, cstoresi4, cstoredi4,
6998 cstoresf4, cstoredf4, fix_truncsfsi2): Remove constraints.
6999
7000 2016-05-01 Eric Botcazou <ebotcazou@adacore.com>
7001
7002 * config/rs6000/rs6000.c (altivec_expand_lv_builtin): Do not use switch
7003 statement on instruction code. Remove trailing spaces.
7004 (altivec_expand_stv_builtin): Likewise.
7005
7006 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
7007
7008 * config/sh/sh.h (TARGET_SH4): Remove and use default implementation.
7009 (TARGET_FPU_DOUBLE): Simplify.
7010 (BASE_ARG_REG, DOUBLE_TYPE_SIZE, OPTIMIZE_MODE_SWITCHING): Replace
7011 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions with 'TARGET_FPU_DOUBLE'.
7012 * config/sh/sh.c: Replace 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions
7013 with 'TARGET_FPU_DOUBLE'.
7014 * config/sh/sh.md: Likewise.
7015
7016 2016-05-01 Yoshinori Sato <ysato@users.sourceforge.jp>
7017
7018 * config/sh/linux.h (SH_DIV_STRATEGY_DEFAULT,
7019 SH_DIV_STR_FOR_SIZE): Remove.
7020 * config/sh/netbsd-elf.h (SH_DIV_STRATEGY_DEFAULT,
7021 SH_DIV_STR_FOR_SIZE): Remove.
7022
7023 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
7024
7025 * config/sh/predicates.md (any_register_operand, zero_extend_operand,
7026 logical_reg_operand): Delete.
7027 (arith_operand, arith_reg_dest, arith_or_int_operand, cmpsi_operand,
7028 arith_reg_or_0_operand, arith_reg_or_0_or_1_operand, logical_operand,
7029 logical_and_operand, movsrc_no_disp_mem_operand): Rewrite using
7030 match_operand and match_test.
7031 (sh_const_vec, sh_1el_vec): Remove redundant checks. Declare local
7032 variables on their first use. Return bool values.
7033 * config/sh/sh.h (LOAD_EXTEND_OP): Update comment.
7034 * config/sh/sh.md (andsi3, iorsi3): Use arith_reg_dest for result and
7035 arith_reg_operand for input operand. Remove empty constraints.
7036 (xorsi3): Delete.
7037 (*xorsi3_compact): Rename to xorsi3.
7038 (zero_extend<mode>si2): Use arith_reg_operand for input operand.
7039 (*zero_extend<mode>si2_disp_mem): Update comment.
7040 (mov_nop): Delete.
7041
7042 2016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
7043
7044 * config/sh/t-sh: Remove SH5 support.
7045 * config.gcc: Likewise.
7046 * configure: Likewise.
7047
7048 2016-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7049
7050 * config/darwin.h (LINK_COMMAND_SPEC_A): Handle -fcilkplus.
7051
7052 2016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
7053
7054 * config/sh/sh.c (register_sh_passes, sh_option_override,
7055 sh_print_operand, prepare_move_operands,
7056 sh_can_follow_jump): Remove TARGET_SH1 checks.
7057 * config/sh/sh.h (TARGET_VARARGS_PRETEND_ARGS, VALID_REGISTER_P,
7058 PROMOTE_MODE): Likewise.
7059 * config/sh/sh.md (adddi3, addsi3, subdi3, subsi3, andsi3,
7060 movdi): Likewise.
7061
7062 2016-04-30 Alan Modra <amodra@gmail.com>
7063
7064 * config/rs6000/rs6000.c (rs6000_savres_strategy): Force inline
7065 restoring when fixed_reg_p, but allow out-of-line or stmw save.
7066 Check for user regs later to avoid unnecessary looping over regs.
7067 Merge user reg check with non-saved reg check. Don't force
7068 inline VR restore when static chain used.
7069 (rs6000_frame_related): Omit eh_frame info for user regs when
7070 saving.
7071 (fixed_regs_p): Delete.
7072
7073 2016-04-30 Alan Modra <amodra@gmail.com>
7074
7075 * config/rs6000/rs6000.c (SAVRES_MULTIPLE): Replace with..
7076 (SAVE_STRATEGY, REST_STRATEGY): ..this. Renumber and sort enum.
7077 Update all uses.
7078
7079 2016-04-30 Alan Modra <amodra@gmail.com>
7080
7081 PR target/69645
7082 * config/rs6000/rs6000.c (fixed_reg_p): New function.
7083 (fixed_regs_p): Rename from global_regs_p. Call fixed_reg_p.
7084 Update all uses.
7085
7086 2016-04-30 Alan Modra <amodra@gmail.com>
7087
7088 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
7089 Remove redundant PIC_OFFSET_TABLE_REGNUM test. Replace with
7090 flag_pic test for Darwin.
7091
7092 2016-04-30 Alan Modra <amodra@gmail.com>
7093
7094 * regs.h (struct reg_info_t): Delete freq_calls_crossed and
7095 throw_calls_crossed.
7096 (REG_FREQ_CALLS_CROSSED): Delete.
7097 (REG_N_THROWING_CALLS_CROSSED): Delete.
7098 * regstat.c (regstat_bb_compute_ri): Don't calculate
7099 REG_FREQ_CALLS_CROSSED and REG_N_THROWING_CALLS_CROSSED.
7100 (dump_reg_info): Don't print call cross frequency.
7101 * ira.c (combine_and_move_insns): Don't set REG_FREQ_CALLS_CROSSED
7102 and REG_N_THROWING_CALLS_CROSSED.
7103
7104 2016-04-30 Alan Modra <amodra@gmail.com>
7105
7106 * regs.h (struct reg_info_t): Delete live_length.
7107 (REG_LIVE_LENGTH): Delete macro.
7108 * regstat.c (regstat_bb_compute_ri): Delete artificial_uses,
7109 local_live, local_processed and local_live_last_luid params.
7110 Replace bb_index param with bb. Don't set REG_LIVE_LENGTH.
7111 Formatting fixes.
7112 (regstat_compute_ri): Adjust for above. Don't set
7113 REG_LIVE_LENGTH.
7114 (dump_reg_info): Don't print live length.
7115 * ira.c (update_equiv_regs): Replace test of REG_LIVE_LENGTH
7116 with test of setjmp_crosses. Don't set REG_LIVE_LENGTH.
7117 Localize loop_depth var.
7118
7119 2016-04-30 Alan Modra <amodra@gmail.com>
7120
7121 * ira.c (enum valid_equiv): New.
7122 (validate_equiv_mem): Return enum.
7123 (update_equiv_mem): Create replacement in more cases.
7124 (add_store_equivs): Update validate_equiv_mem call.
7125
7126 2016-04-30 Alan Modra <amodra@gmail.com>
7127
7128 * ira.c (combine_and_move_insns): Rather than scanning insns,
7129 use DF infrastucture to find use and def insns.
7130
7131 2016-04-30 Alan Modra <amodra@gmail.com>
7132
7133 ira.c (combine_and_move_insns): Move invariant conditions..
7134 (ira.c): ..to here. Call combine_and_move_insns before
7135 add_store_equivs. Call grow_reg_equivs later. Allocate
7136 req_equiv later using max_reg_num() rather than global max_regno.
7137 (contains_replace_regs): Delete.
7138 (add_store_equivs): Remove contains_replace_regs test.
7139
7140 2016-04-30 Alan Modra <amodra@gmail.com>
7141
7142 * ira.c (struct equiv_mem_data): New.
7143 (equiv_mem, equiv_mem_modified): Delete static vars.
7144 (validate_equiv_mem_from_store): Use "data" param to communicate..
7145 (validate_equiv_mem): ..from here.
7146
7147 2016-04-30 Alan Modra <amodra@gmail.com>
7148
7149 * ira.c (add_store_equivs, combine_and_move_insns): New functions,
7150 split out from..
7151 (update_reg_equivs): ..here. Move allocation and freeing of
7152 reg_equiv, and calls to grow_reg_equivs, init_alias_analysis,
7153 end_alias_analysis to..
7154 (ira): ..here.
7155
7156 2016-04-30 Alan Modra <amodra@gmail.com>
7157
7158 * ira.c (pdx_subregs): Delete.
7159 (struct equivalence): Add pdx_subregs field.
7160 (set_paradoxical_subreg): Remove pdx_subregs param. Update
7161 pdx_subregs access.
7162 (update_equiv_regs): Don't create or free pdx_subregs. Update
7163 pdx_subregs access.
7164
7165 2016-04-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7166
7167 * config/rs6000/altivec.h: Change definitions of vec_xl and
7168 vec_xst.
7169 * config/rs6000/rs6000-builtin.def (LD_ELEMREV_V2DF): New.
7170 (LD_ELEMREV_V2DI): New.
7171 (LD_ELEMREV_V4SF): New.
7172 (LD_ELEMREV_V4SI): New.
7173 (LD_ELEMREV_V8HI): New.
7174 (LD_ELEMREV_V16QI): New.
7175 (ST_ELEMREV_V2DF): New.
7176 (ST_ELEMREV_V2DI): New.
7177 (ST_ELEMREV_V4SF): New.
7178 (ST_ELEMREV_V4SI): New.
7179 (ST_ELEMREV_V8HI): New.
7180 (ST_ELEMREV_V16QI): New.
7181 (XL): New.
7182 (XST): New.
7183 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
7184 descriptions for VSX_BUILTIN_VEC_XL and VSX_BUILTIN_VEC_XST.
7185 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Map from
7186 TARGET_P9_VECTOR to RS6000_BTM_P9_VECTOR.
7187 (altivec_expand_builtin): Add handling for
7188 VSX_BUILTIN_ST_ELEMREV_<MODE> and VSX_BUILTIN_LD_ELEMREV_<MODE>.
7189 (rs6000_invalid_builtin): Add error-checking for
7190 RS6000_BTM_P9_VECTOR.
7191 (altivec_init_builtins): Define builtins used to implement vec_xl
7192 and vec_xst.
7193 (rs6000_builtin_mask_names): Define power9-vector.
7194 * config/rs6000/rs6000.h (MASK_P9_VECTOR): Define.
7195 (RS6000_BTM_P9_VECTOR): Define.
7196 (RS6000_BTM_COMMON): Include RS6000_BTM_P9_VECTOR.
7197 * config/rs6000/vsx.md (vsx_ld_elemrev_v2di): New define_insn.
7198 (vsx_ld_elemrev_v2df): Likewise.
7199 (vsx_ld_elemrev_v4sf): Likewise.
7200 (vsx_ld_elemrev_v4si): Likewise.
7201 (vsx_ld_elemrev_v8hi): Likewise.
7202 (vsx_ld_elemrev_v16qi): Likewise.
7203 (vsx_st_elemrev_v2df): Likewise.
7204 (vsx_st_elemrev_v2di): Likewise.
7205 (vsx_st_elemrev_v4sf): Likewise.
7206 (vsx_st_elemrev_v4si): Likewise.
7207 (vsx_st_elemrev_v8hi): Likewise.
7208 (vsx_st_elemrev_v16qi): Likewise.
7209 * doc/extend.texi: Add prototypes for vec_xl and vec_xst. Correct
7210 grammar.
7211
7212 2016-04-29 Patrick Palka <ppalka@gcc.gnu.org>
7213
7214 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Split
7215 out into ...
7216 (simplify_control_stmt_condition_1): ... here. Recurse into
7217 BIT_AND_EXPRs and BIT_IOR_EXPRs.
7218
7219 2016-04-29 David Edelsohn <dje.gcc@gmail.com>
7220
7221 PR target/69810
7222 * config/rs6000/rs6000.md (EXTQI): Don't allow extension to HImode.
7223 (zero_extendqi<mode>2_dot): Revert earlier conversion from
7224 define_insn_and_split to define_insn.
7225 (zero_extendqi<mode>2_dot2): Same.
7226 (extendqi<mode>2_dot): Same.
7227 (extendqi<mode>2_dot2): Same.
7228
7229 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
7230
7231 * config/i386/i386.md (unspec): Add UNSPEC_PROBE_STACK.
7232 (probe_stack): New expander.
7233 (probe_stack_<mode>): New insn pattern.
7234
7235 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
7236
7237 * config/i386/i386.md
7238 (operations with memory inputs setting flags peephole2):
7239 Remove uneeded REG_P checks. Cleanup pattern generation.
7240
7241 2016-04-29 Ilya Enkovich <ilya.enkovich@intel.com>
7242
7243 * tree-vect-loop.c (vect_transform_loop): Fix
7244 nb_iterations_upper_bound computation for vectorized loop.
7245
7246 2016-04-29 Marek Polacek <polacek@redhat.com>
7247 Jakub Jelinek <jakub@redhat.com>
7248
7249 PR sanitizer/70342
7250 * fold-const.c (tree_single_nonzero_warnv_p): For TARGET_EXPR, use
7251 TARGET_EXPR_SLOT as a base.
7252
7253 2016-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
7254
7255 * config/arc/arc.md (*loadqi_update): Replace use of 'rI' constraint
7256 with 'rCm2' constraints to limit possible immediate size.
7257 (*load_zeroextendqisi_update): Likewise.
7258 (*load_signextendqisi_update): Likewise.
7259 (*loadhi_update): Likewise.
7260 (*load_zeroextendhisi_update): Likewise.
7261 (*load_signextendhisi_update): Likewise.
7262 (*loadsi_update): Likewise.
7263 (*loadsf_update): Likewise.
7264
7265 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
7266
7267 * config/i386/predicates.md (constm1_operand): Fix comparison.
7268
7269 2016-04-29 Claudiu Zissulescu <claziss@synopsys.com>
7270
7271 * testsuite/gcc.target/arc/ieee_eq.c: New test.
7272
7273 2016-04-29 Oleg Endo <olegendo@gcc.gnu.org>
7274
7275 * common/config/sh/sh-common.c (sh_option_optimization_table): Remove
7276 remaining SH5 related settings.
7277 * config/sh/sh-protos.h (shmedia_cleanup_truncate,
7278 shmedia_prepare_call_address): Delete.
7279 * config/sh/sh.c (sh_print_operand, output_stack_adjust,
7280 DWARF_CIE_DATA_ALIGNMENT, LOCAL_ALIGNMENT): Update comments.
7281 * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC,
7282 UNSUPPORTED_SH2A): Remove m5 checks.
7283 (sh_divide_strategy_e): Remove SH5 division strategies.
7284 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Remove and use default.
7285 * config/sh/sh.md (divsf3): Reinstate define_expand pattern.
7286
7287 2016-04-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
7288
7289 * config/s390/s390.c (s390_rtx_costs): Update documentation.
7290
7291 2016-04-29 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7292
7293 * config/s390/2964.md ("z13_unit_fxu", "z13_0"): Remove lder.
7294 * config/s390/s390.md ("movsi_larl", "*movsi_esa", "mov<mode>"):
7295 Change lder to ldr.
7296 * config/s390/vector.md ("mov<mode>"): Likewise.
7297
7298 2016-04-29 Ulrich Weigand <uweigand@de.ibm.com>
7299
7300 * config/s390/constraints.md ("U", "W"): Invoke
7301 s390_mem_constraint with "ZR" and "ZT".
7302 * config/s390/s390.c (s390_check_qrst_address): Reject invalid
7303 addresses when using LRA. Accept also short displacements for S
7304 and T constraints. Do not check for long displacement target for
7305 S and T constraints.
7306 (s390_mem_constraint): Remove handling of U and W constraints.
7307 * config/s390/s390.md (various patterns): Remove the short
7308 displacement constraints (Q and R) if a long displacement
7309 constraint is present. Add longdisp as required CPU capability.
7310 * config/s390/vector.md: Likewise.
7311 * config/s390/vx-builtins.md: Likewise.
7312
7313 2016-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
7314
7315 PR target/60040
7316 * reload1.c (reload): Call finish_spills before
7317 restarting reload loop. Skip select_reload_regs
7318 if update_eliminables_and_spill returns true.
7319
7320 2016-04-29 Claudiu Zissulescu <claziss@synopsys.com>
7321
7322 * config/arc/arc.h (UNSIGNED_INT12, UNSIGNED_INT16): Define.
7323 * config/arc/arc.md (umulhisi3): Use arc_short_operand predicate.
7324 (umulhisi3_imm): Update predicates and constraint letters.
7325 (umulhisi3_reg): Declare instruction as commutative.
7326 * config/arc/constraints.md (J12, J16): New constraints.
7327 * config/arc/predicates.md (short_unsigned_const_operand): New
7328 predicate.
7329 (arc_short_operand): Likewise.
7330 * testsuite/gcc.target/arc/umulsihi3_z.c: New file.
7331
7332 2016-04-29 Richard Biener <rguenther@suse.de>
7333
7334 PR tree-optimization/13962
7335 PR tree-optimization/65686
7336 * tree-ssa-alias.h (ptrs_compare_unequal): Declare.
7337 * tree-ssa-alias.c (ptrs_compare_unequal): New function
7338 using PTA to compare pointers.
7339 * match.pd: Add pattern for pointer equality compare simplification
7340 using ptrs_compare_unequal.
7341
7342 2016-04-29 Richard Biener <rguenther@suse.de>
7343
7344 * stor-layout.c (layout_type): Do not build a pointer-to-element
7345 type for arrays.
7346
7347 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
7348
7349 * config/i386/i386.md (Load+RegOp to Mov+MemOp peephole2):
7350 Use SWI mode iterator. Use general_reg_operand predicate.
7351 (Load+RegOp to Mov+MemOp peephole2 with vector regs): Split
7352 peephole to MMX and SSE part. Use mmx_reg_operand and sse_reg_operand
7353 predicates.
7354
7355 2016-04-29 Jakub Jelinek <jakub@redhat.com>
7356
7357 PR middle-end/70843
7358 * fold-const.c (operand_equal_p): Don't verify hash value equality
7359 if arg0 == arg1.
7360 * tree.c (inchash::add_expr): Handle STATEMENT_LIST. Ignore BLOCK
7361 and OMP_CLAUSE.
7362
7363 2016-04-28 Jakub Jelinek <jakub@redhat.com>
7364
7365 PR target/70858
7366 * config/i386/i386.c (bdesc_special_args): Add | OPTION_MASK_ISA_64BIT
7367 to __builtin_ia32_lwpval64 and __builtin_ia32_lwpins64.
7368 (bdesc_args): Add | OPTION_MASK_ISA_64BIT to __builtin_ia32_bextr_u64,
7369 __builtin_ia32_bextri_u64, __builtin_ia32_bzhi_di,
7370 __builtin_ia32_pdep_di and __builtin_ia32_pext_di.
7371
7372 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
7373
7374 * config/rs6000/rs6000.c (compute_save_world_info): Rename info_ptr
7375 to info. Don't initialize separate fields to 0. Clean up
7376 formatting a bit.
7377
7378 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
7379
7380 * config/i386/i386.md (peephole2s for operations with memory inputs):
7381 Use SWI mode iterator.
7382 (peephole2s for operations with memory outputs): Ditto.
7383 Do not check for stack checking probe.
7384
7385 (probe_stack): Remove expander.
7386
7387 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
7388 Andrew Burgess <andrew.burgess@embecosm.com>
7389
7390 * config/arc/arc.c (arc_print_operand): Print integer 'H' / 'L'
7391 operands as 32-bits.
7392
7393 2016-04-28 Jason Merrill <jason@redhat.com>
7394
7395 * gdbinit.in: Skip line-map.h.
7396
7397 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
7398 Andrew Burgess <andrew.burgess@embecosm.com>
7399
7400 * config/arc/arc.c (arc_conditional_register_usage): Take
7401 TARGET_RRQ_CLASS into account.
7402 (arc_print_operand): Support printing 'p' and 's' operands.
7403 * config/arc/arc.h (TARGET_NPS_BITOPS_DEFAULT): Provide default
7404 as 0.
7405 (TARGET_RRQ_CLASS): Define.
7406 (IS_POWEROF2_OR_0_P): Define.
7407 * config/arc/arc.md (*movsi_insn): Add w/Clo, w/Chi, and w/Cbi
7408 alternatives.
7409 (*tst_movb): New define_insn.
7410 (*tst): Avoid recognition if it could prevent '*tst_movb'
7411 combination; replace c/CnL with c/Chs alternative.
7412 (*tst_bitfield_tst): New define_insn.
7413 (*tst_bitfield_asr): New define_insn.
7414 (*tst_bitfield): New define_insn.
7415 (andsi3_i): Add Rrq variant.
7416 (extzv): New define_expand.
7417 (insv): New define_expand.
7418 (*insv_i): New define_insn.
7419 (*movb): New define_insn.
7420 (*movb_signed): New define_insn.
7421 (*movb_high): New define_insn.
7422 (*movb_high_signed): New define_insn.
7423 (*movb_high_signed + 1): New define_split pattern.
7424 (*mrgb): New define_insn.
7425 (*mrgb + 1): New define_peephole2 pattern.
7426 (*mrgb + 2): New define_peephole2 pattern.
7427 * config/arc/arc.opt (mbitops): New option for nps400, uses
7428 TARGET_NPS_BITOPS_DEFAULT.
7429 * config/arc/constraints.md (q): Make register class conditional.
7430 (Rrq): New register constraint.
7431 (Chs): New constraint.
7432 (Clo): New constraint.
7433 (Chi): New constraint.
7434 (Cbf): New constraint.
7435 (Cbn): New constraint.
7436 (C18): New constraint.
7437 (Cbi): New constraint.
7438
7439 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
7440
7441 * cfganal.c (bitmap_intersection_of_succs): Delete assert checking
7442 dst->popcount.
7443 (bitmap_intersection_of_preds): Ditto.
7444 (bitmap_union_of_succs): Ditto.
7445 (bitmap_union_of_preds): Ditto.
7446 * sbitmap.c (do_popcount): Delete.
7447 (BITMAP_DEBUGGING): Delete.
7448 (sbitmap_verify_popcount): Delete.
7449 (sbitmap_alloc): Don't initialize the popcount field.
7450 (sbitmap_alloc_with_popcount): Delete.
7451 (sbitmap_resize): Don't resize the popcount array.
7452 (sbitmap_vector_alloc): Don't initialize the popcount field.
7453 (bitmap_copy): Don't copy the popcount array.
7454 (bitmap_clear): Don't clear the popcount array.
7455 (bitmap_clear): Delete the popcount array handling.
7456 (bitmap_ior_and_compl): Delete the popcount assert.
7457 (bitmap_not): Ditto.
7458 (bitmap_and_compl): Ditto.
7459 (bitmap_and): Delete the popcount array handling.
7460 (bitmap_xor): Ditto.
7461 (bitmap_ior): Ditto.
7462 (bitmap_or_and): Delete the popcount assert.
7463 (bitmap_and_or): Ditto.
7464 (popcount_table): Delete.
7465 (sbitmap_elt_popcount): Delete.
7466 * sbitmap.h (simple_bitmap_def): Delete the popcount field.
7467 (bitmap_set_bit): Delete the popcount assert.
7468 (bitmap_clear_bit): Ditto.
7469 (sbitmap_free): Don't free the popcount array.
7470 (sbitmap_alloc_with_popcount): Delete declaration.
7471 (sbitmap_popcount): Ditto.
7472
7473 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
7474 Andrew Burgess <andrew.burgess@embecosm.com>
7475
7476 * config/arc/arc.h (SYMBOL_FLAG_CMEM): Define.
7477 (TARGET_NPS_CMEM_DEFAULT): Provide default definition.
7478 * config/arc/arc.c (arc_address_cost): Return 0 for cmem_address.
7479 (arc_encode_section_info): Set SYMBOL_FLAG_CMEM where indicated.
7480 * config/arc/arc.opt (mcmem): New option.
7481 * config/arc/arc.md (*extendqihi2_i): Add r/Uex alternative,
7482 supply length for r/m alternative.
7483 (*extendqisi2_ac): Likewise.
7484 (*extendhisi2_i): Add r/Uex alternative, supply length for r/m and
7485 r/Uex alternative.
7486 (movqi_insn): Add r/Ucm and Ucm/?Rac alternatives.
7487 (movhi_insn): Likewise.
7488 (movsi_insn): Add r/Ucm,Ucm/w alternatives.
7489 (*zero_extendqihi2_i): Add r/Ucm alternative.
7490 (*zero_extendqisi2_ac): Likewise.
7491 (*zero_extendhisi2_i): Likewise.
7492 * config/arc/constraints.md (Uex): New memory constraint.
7493 (Ucm): New define_constraint.
7494 * config/arc/predicates.md (long_immediate_loadstore_operand):
7495 Return 0 for MEM with cmem_address address.
7496 (cmem_address_0): New predicates.
7497 (cmem_address_1): Likewise.
7498 (cmem_address_2): Likewise.
7499 (cmem_address): Likewise.
7500
7501 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
7502
7503 * config/rs6000/rs6000.c (machine_function): Rename
7504 insn_chain_scanned_p to spe_insn_chain_scanned_p.
7505 (rs6000_stack_info): Adjust.
7506
7507 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
7508 Andrew Burgess <andrew.burgess@embecosm.com>
7509
7510 * config/arc/constraints.md (Usd): Convert to define_constraint.
7511 (Us<): Likewise.
7512 (Us>): Likewise.
7513
7514 2016-04-28 Jakub Jelinek <jakub@redhat.com>
7515
7516 PR target/70821
7517 * config/i386/sync.md (define_peephole2 *atomic_fetch_add_cmp<mode>):
7518 Add new peephole2 where the first insn is *mov<mode>_or instead of
7519 *mov<mode>_internal.
7520
7521 2016-04-28 Segher Boesssenkool <segher@kernel.crashing.org>
7522
7523 * tracer.c (bb_seen): Make static.
7524
7525 2016-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
7526
7527 * common/config/arc/arc-common.c (arc_handle_option): Add NPS400
7528 support, setup defaults.
7529 * config/arc/arc-opts.h (enum processor_type): Add NPS400.
7530 * config/arc/arc.c (arc_init): Add NPS400 support.
7531 * config/arc/arc.h (CPP_SPEC): Add NPS400 defines.
7532 (TARGET_ARC700): NPS400 is also an ARC700.
7533 * config/arc/arc.opt: Add NPS400 options to -mcpu=.
7534
7535 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
7536
7537 PR target/70668
7538 * config/nds32/nds32.md (casesi): Don't access the operands array
7539 out of bounds.
7540
7541 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
7542
7543 * config/i386/i386.md (zeroing peephole2): Use general_reg_operand.
7544 (or $-1,reg peephole2): Ditto.
7545 (strict_low_part zeroing peephole2): Use SWI12 mode iterator.
7546
7547 2016-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
7548
7549 * doc/extend.texi (Common Function Attributes) [optimize]:
7550 Discourage use of the optimize attribute.
7551
7552 2016-04-28 Bill Seurer <seurer@linux.vnet.ibm.com>
7553
7554 * config/rs6000/rs6000-builtin.def (vec_adde): Change vec_adde to a
7555 special case builtin.
7556 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
7557 ALTIVEC_BUILTIN_VEC_ADDE.
7558 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
7559 support for ALTIVEC_BUILTIN_VEC_ADDE.
7560 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
7561 for __builtin_vec_adde.
7562
7563 2016-04-28 Jakub Jelinek <jakub@redhat.com>
7564
7565 * config/i386/i386.md (sse4_1_round<mode>2): Add avx512f alternative.
7566 * config/i386/sse.md (sse4_1_round<ssescalarmodesuffix>): Likewise.
7567
7568 2016-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7569
7570 PR testsuite/70595
7571 * doc/sourcebuild.texi (Effective-Target Keywords, Other
7572 attributes): Document cilkplus_runtime.
7573
7574 2016-04-28 Martin Jambor <mjambor@suse.cz>
7575
7576 * tree-cfg.c (verify_expr): Verify that local declarations belong to
7577 this function. Call verify_expr on MEM_REFs and bases of other
7578 handled_components.
7579
7580 2016-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7581
7582 * internal-fn.c (expand_arith_overflow): Convert preprocessor check
7583 for WORD_REGISTER_OPERATIONS to runtime check.
7584
7585 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
7586
7587 * config/arc/arc.h (ASM_SPEC): Pass mfpuda to assembler.
7588
7589 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
7590
7591 * config/arc/arc.c (arc_process_double_reg_moves): Fix for
7592 big-endian compilation.
7593 * config/arc/arc.md (addf3): Likewise.
7594 (subdf3): Likewise.
7595 (muldf3): Likewise.
7596
7597 2016-04-28 Richard Biener <rguenther@suse.de>
7598
7599 PR tree-optimization/70840
7600 * match.pd: powi(-x, y) and powi(|x|,y) -> powi(x,y) if y is even;
7601 Fix pow(copysign(x, y), z) -> pow(x, z) and add powi variant;
7602 Mark x * pow(x,c) -> pow(x,c+1) commutative.
7603 Add powi(x,y) * powi(z,y) -> powi(x*z,y).
7604
7605 2015-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7606
7607 * config/aarch64/aarch64.h (WORD_REGISTER_OPERATIONS): Define to 0
7608 and explain why in a comment.
7609
7610 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
7611
7612 * config/arc/arc.md (cpu_facility): Add fpx variant.
7613 (subdf3): Prohibit use reverse sub when assist operations option
7614 is enabled.
7615 * config/arc/fpx.md (subdf3_insn, *dsubh_peep2_insn): Allow drsub
7616 instructions only when FPX is enabled.
7617 * testsuite/gcc.target/arc/trsub.c: New test.
7618
7619 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
7620
7621 * config/i386/i386.md (*fop_<mode>_1_mixed): Do not check for
7622 mult_operator when calculating "type" attribute.
7623 (*fop_<mode>_1_i387): Ditto.
7624 (*fop_xf_1_i387): Ditto.
7625 (x87 stack loads peephole2): Add "reg = op (mem, reg)" peephole2.
7626 Use std::swap to swap operands. Use RTL expressions to generate
7627 converted pattern.
7628
7629 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
7630 Joern Rennecke <joern.rennecke@embecosm.com>
7631
7632 * config/arc/arc-protos.h (arc_legitimize_pic_address): Remove
7633 declaration.
7634 (emit_pic_move): Remove.
7635 (arc_eh_uses, insn_is_tls_gd_dispatch): Declare.
7636 * config/arc/arc.c (emit_pic_move): Removed.
7637 (TARGET_HAVE_TLS): Define.
7638 (arc_conditional_register_usage): Test for arc_tp_regno.
7639 (arc_print_operand, arc_print_operand_address): Handle TLS
7640 unspecs.
7641 (arc_needs_pcl_p): New function.
7642 (arc_legitimate_pc_offset_p): Use arc_needs_pcl_p.
7643 (arc_legitimate_pic_addr_p): Handle TLS unspecs.
7644 (arc_raw_symbolic_reference_mentioned_p): Likewise.
7645 (arc_get_tp, arc_emit_call_tls_get_addr): New function.
7646 (arc_legitimize_tls_address): Likewise.
7647 (DTPOFF_ZERO_SYM): Define.
7648 (arc_legitimize_pic_address): Make it static, handle TLS cases.
7649 (arc_output_pic_addr_const): Print TLS unspecs.
7650 (prepare_pic_move): New function, replaces emit_pic_move.
7651 (arc_legitimate_constant_p): Handle TLS unspecs.
7652 (arc_legitimate_address_p): Likewise.
7653 (arc_rewrite_small_data_p): Use assert for TLS constants.
7654 (prepare_move_operands): Use prepare_pic_move.
7655 (arc_legitimize_address): Legitimize tls addresses.
7656 (arc_epilogue_uses): Check for arc_tp_regno.
7657 (arc_eh_uses, insn_is_tls_gd_dispatch): New function.
7658 * config/arc/arc.h [DEFAULT_LIBC != LIBC_UCLIBC] (EXTRA_SPECS):
7659 Define.
7660 [DEFAULT_LIBC != LIBC_UCLIBC] (ARC_TLS_EXTRA_START_SPEC):
7661 Likewise.
7662 [DEFAULT_LIBC != LIBC_UCLIBC] (STARTFILE_SPEC): Add
7663 %(arc_tls_extra_start_spec).
7664 (TARGET_CPU_CPP_BUILTINS): Define __ARC_TLS_REGNO__.
7665 (REGNO_OK_FOR_BASE_P): Check for arc_tp_regno.
7666 (EH_USES): Define.
7667 (INSN_REFERENCES_ARE_DELAYED): Use insn_is_tls_gd_dispatch.
7668 * config/arc/arc.md (UNSPEC_TLS_GD, UNSPEC_TLS_LD, UNSPEC_TLS_IE)
7669 (UNSPEC_TLS_OFF): Add.
7670 (R10_REG): Define.
7671 (tls_load_tp_soft, tls_gd_load, tls_gd_get_addr, tls_gd_dispatch)
7672 (get_thread_pointersi): New patterns.
7673 * config/arc/arc.opt (mtp-regno): New option.
7674 * config/arc/predicates.md (move_src_operand): Handle TLS symbols.
7675 (move_dest_operand): Likewise.
7676 * configure: Regenerate.
7677 * configure.ac: Add arc*-*-* case to test for tls.
7678 * doc/invoke.texi (ARC options): Document mtp-regno.
7679
7680 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
7681
7682 * config/arc/arc.c (arc_vector_mode_supported_p): Add support for
7683 the new ARC HS SIMD instructions.
7684 (arc_preferred_simd_mode): New function.
7685 (arc_autovectorize_vector_sizes): Likewise.
7686 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
7687 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
7688 (arc_init_reg_tables): Accept new ARC HS SIMD modes.
7689 (arc_init_builtins): Add new SIMD builtin types.
7690 (arc_split_move): Handle 64 bit vector moves.
7691 * config/arc/arc.h (TARGET_PLUS_DMPY, TARGET_PLUS_MACD)
7692 (TARGET_PLUS_QMACW): Define.
7693 * config/arc/builtins.def (QMACH, QMACHU, QMPYH, QMPYHU, DMACH)
7694 (DMACHU, DMPYH, DMPYHU, DMACWH, DMACWHU, VMAC2H, VMAC2HU, VMPY2H)
7695 (VMPY2HU, VADDSUB2H, VSUBADD2H, VADDSUB, VSUBADD, VADDSUB4H)
7696 (VSUBADD4H): New builtins.
7697 * config/arc/simdext.md: Add new ARC HS SIMD instructions.
7698 * testsuite/gcc.target/arc/builtin_simdarc.c: New file.
7699
7700 2016-04-28 Eduard Sanou <dhole@openmailbox.org>
7701 Matthias Klose <doko@debian.org>
7702
7703 * doc/cppenv.texi: Document SOURCE_DATE_EPOCH environment variable.
7704
7705 2016-04-28 Richard Biener <rguenther@suse.de>
7706
7707 PR middle-end/70777
7708 * fold-const.c (fold_binary_loc): Remove x*x to pow(x,2.0)
7709 canonicalization.
7710
7711 2016-04-28 Oleg Endo <olegendo@gcc.gnu.org>
7712
7713 * common/config/sh/sh-common.c: Remove SH5 support.
7714 * config/sh/constraints.md: Likewise.
7715 * config/sh/config/sh/elf.h: Likewise.
7716 * config/sh/linux.h: Likewise.
7717 * config/sh/netbsd-elf.h: Likewise.
7718 * config/sh/predicates.md: Likewise.
7719 * config/sh/sh-c.c: Likewise.
7720 * config/sh/sh-protos.h: Likewise.
7721 * config/sh/sh.c: Likewise.
7722 * config/sh/sh.h: Likewise.
7723 * config/sh/sh.md: Likewise.
7724 * config/sh/sh.opt: Likewise.
7725 * config/sh/sync.md: Likewise.
7726 * config/sh/sh64.h: Delete.
7727 * config/sh/shmedia.h: Likewise.
7728 * config/sh/shmedia.md: Likewise.
7729 * config/sh/sshmedia.h: Likewise.
7730 * config/sh/t-netbsd-sh5-64: Likewise.
7731 * config/sh/t-sh64: Likewise.
7732 * config/sh/ushmedia.h: Likewise.
7733
7734 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
7735
7736 * config/i386/i386.md (sign_extend to memory peephole2s): Use
7737 general_reg_operand instead of register_operand predicate.
7738
7739 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7740
7741 * params.def (MIN_PARTITION_SIZE): Set default value to 10000.
7742
7743 2016-04-27 Marc Glisse <marc.glisse@inria.fr>
7744
7745 * match.pd (A - B > A, A + B < A): New transformations.
7746
7747 2016-04-27 Patrick Palka <ppalka@gcc.gnu.org>
7748
7749 * genattrtab.c (write_test_expr): New parameter EMIT_PARENS
7750 which defaults to true. Emit an outer pair of parentheses only if
7751 EMIT_PARENS. When continuing a chain of && or || (or & or |),
7752 don't emit parentheses for the right-hand operand.
7753
7754 2016-04-27 Jeff Law <law@redhat.com>
7755
7756 * tree-ssa-dom.c (record_temporary_equivalences): Fix typo in comment.
7757
7758 2016-04-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7759
7760 * config/rs6000/altivec.md (altivec_lvx_<mode>): Remove.
7761 (altivec_lvx_<mode>_internal): Document.
7762 (altivec_lvx_<mode>_2op): New define_insn.
7763 (altivec_lvx_<mode>_1op): Likewise.
7764 (altivec_lvx_<mode>_2op_si): Likewise.
7765 (altivec_lvx_<mode>_1op_si): Likewise.
7766 (altivec_stvx_<mode>): Remove.
7767 (altivec_stvx_<mode>_internal): Document.
7768 (altivec_stvx_<mode>_2op): New define_insn.
7769 (altivec_stvx_<mode>_1op): Likewise.
7770 (altivec_stvx_<mode>_2op_si): Likewise.
7771 (altivec_stvx_<mode>_1op_si): Likewise.
7772 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
7773 Expand vec_ld and vec_st during parsing.
7774 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Commentary
7775 changes.
7776 (altivec_expand_stvx_be): Likewise.
7777 (altivec_expand_lv_builtin): Expand lvx built-ins to expose the
7778 address-masking behavior in RTL.
7779 (altivec_expand_stv_builtin): Expand stvx built-ins to expose the
7780 address-masking behavior in RTL.
7781 (altivec_expand_builtin): Change builtin code arguments for calls
7782 to altivec_expand_stv_builtin and altivec_expand_lv_builtin.
7783 (insn_is_swappable_p): Avoid incorrect swap optimization in the
7784 presence of lvx/stvx patterns.
7785 (alignment_with_canonical_addr): New function.
7786 (alignment_mask): Likewise.
7787 (find_alignment_op): Likewise.
7788 (recombine_lvx_pattern): Likewise.
7789 (recombine_stvx_pattern): Likewise.
7790 (recombine_lvx_stvx_patterns): Likewise.
7791 (rs6000_analyze_swaps): Perform a pre-pass to recognize lvx and
7792 stvx patterns from expand.
7793 * config/rs6000/vector.md (vector_altivec_load_<mode>): Use new
7794 expansions.
7795 (vector_altivec_store_<mode>): Likewise.
7796
7797 2016-04-26 Evandro Menezes <e.menezes@samsung.com>
7798
7799 * config/aarch64/aarch64.md
7800 (*movhf_aarch64): Add "movi %0, #0" to zero up register and
7801 remove the "fp" attributes.
7802 (*movsf_aarch64): Add "movi %0, #0" to zero up register and
7803 add the "simd" attributes.
7804 (*movdf_aarch64): Likewise.
7805 (*movtf_aarch64): Remove the "fp" attributes.
7806 * testsuite/gcc.target/aarch64/fmovf-zero-reg.c: Update accordingly.
7807 * testsuite/gcc.target/aarch64/fmovd-zero-reg.c: Likewise.
7808
7809 2016-04-27 David Malcolm <dmalcolm@redhat.com>
7810
7811 * emit-rtl.c (maybe_set_first_label_num): Strengthen param from
7812 rtx to rtx_code_label *.
7813 * rtl.h (maybe_set_first_label_num): Likewise.
7814
7815 2016-04-27 David Malcolm <dmalcolm@redhat.com>
7816
7817 * df-core.c (df_add_problem): Make the problem param be const.
7818 (df_remove_problem): Make local "problem" be const.
7819 * df-problems.c (problem_RD): Make const.
7820 (problem_LR): Likewise.
7821 (problem_LIVE): Likewise.
7822 (problem_MIR): Likewise.
7823 (problem_CHAIN): Likewise.
7824 (problem_WORD_LR): Likewise.
7825 (problem_NOTE): Likewise.
7826 (problem_MD): Likewise.
7827 * df-scan.c (problem_SCAN): Likewise.
7828 * df.h (struct df_problem): Make field "dependent_problem" be
7829 const.
7830 (struct dataflow): Likewise for field "problem".
7831 (df_add_problem): Make param const.
7832
7833 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
7834
7835 * config/i386/i386.c (ix86_spill_class): Enable for TARGET_SSE2 when
7836 inter-unit moves to/from vector registers are enabled. Do not disable
7837 for TARGET_MMX.
7838
7839 2016-04-27 David Malcolm <dmalcolm@redhat.com>
7840
7841 * df.h (DF_SCAN, DF_LR, DF_LIVE, DF_RD, DF_CHAIN, DF_WORD_LR,
7842 DF_NOTE, DF_MD, DF_MIR, DF_LAST_PROBLEM_PLUS1): Convert from
7843 #define to...
7844 (enum df_problem_id): ...this new enum.
7845 (struct df_problem): Convert field "id" from "int" to
7846 enum df_problem_id.
7847
7848 2016-04-27 David Malcolm <dmalcolm@redhat.com>
7849
7850 * rtl.def: Update comment for "things in the instruction chain" to
7851 reflect the removal of the leading "i" field for INSN_UID in
7852 r210360. Fix bogus apostrophe.
7853
7854 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
7855
7856 * config/i386/i386.md
7857 (lea arith with mem operand + setcc peephole2): Set operator mode.
7858
7859 2016-04-27 H.J. Lu <hongjiu.lu@intel.com>
7860
7861 PR target/70155
7862 * config/i386/i386.c (scalar_to_vector_candidate_p): Renamed to ...
7863 (dimode_scalar_to_vector_candidate_p): This.
7864 (timode_scalar_to_vector_candidate_p): New function.
7865 (scalar_to_vector_candidate_p): Likewise.
7866 (timode_check_non_convertible_regs): Likewise.
7867 (timode_remove_non_convertible_regs): Likewise.
7868 (remove_non_convertible_regs): Likewise.
7869 (remove_non_convertible_regs): Renamed to ...
7870 (dimode_remove_non_convertible_regs): This.
7871 (scalar_chain::~scalar_chain): Make it virtual.
7872 (scalar_chain::compute_convert_gain): Make it pure virtual.
7873 (scalar_chain::mark_dual_mode_def): Likewise.
7874 (scalar_chain::convert_insn): Likewise.
7875 (scalar_chain::convert_registers): Likewise.
7876 (scalar_chain::add_to_queue): Make it protected.
7877 (scalar_chain::emit_conversion_insns): Likewise.
7878 (scalar_chain::replace_with_subreg): Likewise.
7879 (scalar_chain::replace_with_subreg_in_insn): Likewise.
7880 (scalar_chain::convert_op): Likewise.
7881 (scalar_chain::convert_reg): Likewise.
7882 (scalar_chain::make_vector_copies): Likewise.
7883 (scalar_chain::convert_registers): New pure virtual function.
7884 (class dimode_scalar_chain): New class.
7885 (class timode_scalar_chain): Likewise.
7886 (scalar_chain::mark_dual_mode_def): Renamed to ...
7887 (dimode_scalar_chain::mark_dual_mode_def): This.
7888 (timode_scalar_chain::mark_dual_mode_def): New function.
7889 (timode_scalar_chain::convert_insn): Likewise.
7890 (dimode_scalar_chain::convert_registers): Likewise.
7891 (scalar_chain::compute_convert_gain): Renamed to ...
7892 (dimode_scalar_chain::compute_convert_gain): This.
7893 (scalar_chain::replace_with_subreg): Renamed to ...
7894 (dimode_scalar_chain::replace_with_subreg): This.
7895 (scalar_chain::replace_with_subreg_in_insn): Renamed to ...
7896 (dimode_scalar_chain::replace_with_subreg_in_insn): This.
7897 (scalar_chain::make_vector_copies): Renamed to ...
7898 (dimode_scalar_chain::make_vector_copies): This.
7899 (scalar_chain::convert_reg): Renamed to ...
7900 (dimode_scalar_chain::convert_reg ): This.
7901 (scalar_chain::convert_op): Renamed to ...
7902 (dimode_scalar_chain::convert_op): This.
7903 (scalar_chain::convert_insn): Renamed to ...
7904 (dimode_scalar_chain::convert_insn): This.
7905 (scalar_chain::convert): Call convert_registers.
7906 (convert_scalars_to_vector): Change to scalar_chain pointer to
7907 use timode_scalar_chain in 64-bit mode and dimode_scalar_chain
7908 in 32-bit mode. Delete scalar_chain pointer. Call
7909 free_dominance_info in 64-bit mode.
7910 (pass_stv::gate): Remove TARGET_64BIT check.
7911 (ix86_option_override): Put the 64-bit STV pass before the CSE
7912 pass.
7913
7914 2016-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
7915
7916 * dwarf2out.h (struct dw_loc_descr_node): Remove the
7917 dw_loc_frame_offset field.
7918 * dwarf2out.c (new_loc_descr): Likewise.
7919 (resolve_args_picking_1): Turn the VISITED hash set into a
7920 FRAME_OFFSET hash map. Use it to associate a frame offset to
7921 visited nodes. Remove uses of the CHECKING_P macro.
7922 (resolve_args_picking): Update call to resolve_args_picking_1.
7923
7924 2016-04-27 Martin Liska <mliska@suse.cz>
7925
7926 * tree-ssa-loop-ivopts.c (iv_ca_dump): Fix level of indentation.
7927 (free_loop_data): Release vuses of groups.
7928
7929 2016-04-27 Bin Cheng <bin.cheng@arm.com>
7930
7931 * tree-ssa-loop-ivopts.c (struct iv): Use pointer to struct iv_use
7932 instead of redundant use_id and boolean have_use_for.
7933 (struct iv_use): Change sub_id into group_id. Remove field next.
7934 Move fields: related_cands, n_map_members, cost_map and selected
7935 to ...
7936 (struct iv_group): ... here. New structure.
7937 (struct iv_common_cand): Use structure declaration directly.
7938 (struct ivopts_data, iv_ca, iv_ca_delta): Rename fields.
7939 (MAX_CONSIDERED_USES): Rename macro to ...
7940 (MAX_CONSIDERED_GROUPS): ... here.
7941 (n_iv_uses, iv_use, n_iv_cands, iv_cand): Delete.
7942 (dump_iv, dump_use, dump_cand): Refactor format of dump information.
7943 (dump_uses): Rename to ...
7944 (dump_groups): ... here. Update all uses.
7945 (tree_ssa_iv_optimize_init, alloc_iv): Update all uses.
7946 (find_induction_variables): Refactor format of dump information.
7947 (record_sub_use): Delete.
7948 (record_use): Update all uses.
7949 (record_group): New function.
7950 (record_group_use, find_interesting_uses_op): Call above functions.
7951 Update all uses.
7952 (find_interesting_uses_cond): Ditto.
7953 (group_compare_offset): New function.
7954 (split_all_small_groups): Rename to ...
7955 (split_small_address_groups_p): ... here. Update all uses.
7956 (split_address_groups): Update all uses.
7957 (find_interesting_uses): Refactor format of dump information.
7958 (add_candidate_1): Update all uses. Remove redundant check on iv,
7959 base and step.
7960 (add_candidate, record_common_cand): Remove redundant assert.
7961 (add_iv_candidate_for_biv): Update use.
7962 (add_iv_candidate_derived_from_uses): Update all uses.
7963 (add_iv_candidate_for_groups, record_important_candidates): Ditto.
7964 (alloc_use_cost_map): Ditto.
7965 (set_use_iv_cost, get_use_iv_cost): Rename to ...
7966 (set_group_iv_cost, get_group_iv_cost): ... here. Update all uses.
7967 (determine_use_iv_cost_generic): Ditto.
7968 (determine_group_iv_cost_generic): Ditto.
7969 (determine_use_iv_cost_address): Ditto.
7970 (determine_group_iv_cost_address): Ditto.
7971 (determine_use_iv_cost_condition): Ditto.
7972 (determine_group_iv_cost_cond): Ditto.
7973 (determine_use_iv_cost): Ditto.
7974 (determine_group_iv_cost): Ditto.
7975 (set_autoinc_for_original_candidates): Update all uses.
7976 (find_iv_candidates): Update all uses. Refactor dump information.
7977 (determine_use_iv_costs): Ditto.
7978 (determine_iv_costs): Ditto.
7979 (iv_ca_cand_for_use): Rename to ...
7980 (iv_ca_cand_for_group): ... here. Update all uses.
7981 (iv_ca_add_use, iv_ca_add_group): Ditto.
7982 (iv_ca_set_cp, iv_ca_cost, iv_ca_delta_add): Update all uses.
7983 (iv_ca_delta_join, iv_ca_delta_reverse, iv_ca_delta_free): Ditto.
7984 (iv_ca_new, iv_ca_dump, iv_ca_extend, iv_ca_narrow): Ditto.
7985 (iv_ca_prune, cheaper_cost_with_cand, iv_ca_replace): Ditto.
7986 (try_add_cand_for, try_improve_iv_set, find_optimal_iv_set): Ditto.
7987 (create_new_iv, adjust_iv_update_pos): Ditto.
7988 (rewrite_use_address): Delete.
7989 (rewrite_use_address_1): Rename to ...
7990 (rewrite_use_address): ... here.
7991 (rewrite_use_compare): Update all uses.
7992 (rewrite_use): Delete.
7993 (rewrite_uses): Rename to ...
7994 (rewrite_groups): ... here. Update all uses.
7995 (remove_unused_ivs, free_loop_data): Update all uses.
7996 (tree_ssa_iv_optimize_finalize, tree_ssa_iv_optimize_loop): Ditto.
7997
7998 2016-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7999
8000 * rtlanal.c (nonzero_bits1): Convert preprocessor check
8001 for WORD_REGISTER_OPERATIONS to runtime check.
8002
8003 2016-04-27 Richard Biener <rguenther@suse.de>
8004
8005 PR ipa/70760
8006 * tree-ssa-structalias.c (find_func_aliases_for_call): Use
8007 aggregate_value_p to determine if a function result is
8008 returned by reference.
8009 (ipa_pta_execute): Functions having their address taken are
8010 not automatically nonlocal.
8011
8012 2016-04-27 Jakub Jelinek <jakub@redhat.com>
8013
8014 PR sanitizer/70683
8015 * tree-core.h (enum operand_equal_flag): Add OEP_NO_HASH_CHECK.
8016 * fold-const.c (operand_equal_p): If flag_checking and
8017 OEP_NO_HASH_CHECK is not set in flag, recurse with OEP_NO_HASH_CHECK
8018 and if it returns non-zero, assert iterative_hash_expr on both
8019 args is the same.
8020
8021 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
8022
8023 * doc/invoke.texi (-frename-registers): Also enabled at -Os.
8024
8025 2016-04-27 Nick Clifton <nickc@redhat.com>
8026
8027 PR middle-end/49889
8028 * varasm.c (merge_weak): Generate an error if an attempt is made
8029 to convert a non-weak static function into a weak, public function.
8030
8031 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8032
8033 * params.def (MAX_PARTITION_SIZE): New param.
8034 * doc/invoke.texi: Document lto-max-partition.
8035
8036 2016-04-27 Richard Biener <rguenther@suse.de>
8037
8038 PR ipa/70785
8039 * tree-ssa-structalias.c (refered_from_nonlocal_fn): New
8040 function cummulating used_from_other_partition, externally_visible
8041 and force_output from aliases.
8042 (refered_from_nonlocal_var): Likewise.
8043 (ipa_pta_execute): Use call_for_symbol_and_aliases to cummulate
8044 node flags properly.
8045
8046 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
8047
8048 * doc/invoke.texi (Warning Options): Add -Wmemset-elt-size.
8049 (-Wmemset-elt-size): New item.
8050
8051 2016-04-27 Eric Botcazou <ebotcazou@adacore.com>
8052
8053 PR ada/70759
8054 * stor-layout.h (internal_reference_types): Delete.
8055 * stor-layout.c (reference_types_internal): Likewise.
8056 (internal_reference_types): Likewise.
8057 (layout_type) <REFERENCE_TYPE>: Adjust.
8058
8059 2016-04-27 Jakub Jelinek <jakub@redhat.com>
8060
8061 PR sanitizer/70683
8062 * tree.h (inchash::add_expr): Add FLAGS argument.
8063 * tree.c (inchash::add_expr): Likewise. If not OEP_ADDRESS_OF,
8064 use STRIP_NOPS first. For INTEGER_CST assert not OEP_ADDRESS_OF.
8065 For REAL_CST and !HONOR_SIGNED_ZEROS (t) hash +/- 0 the same.
8066 Formatting fix. Adjust recursive calls. For tcc_comparison,
8067 if swap_tree_comparison (code) is smaller than code, hash that
8068 and arguments in the other order. Hash CONVERT_EXPR the same
8069 as NOP_EXPR. For OEP_ADDRESS_OF hash MEM_REF with 0 offset
8070 of ADDR_EXPR of decl as the decl itself. Add or remove
8071 OEP_ADDRESS_OF from recursive flags as needed. For
8072 FMA_EXPR, WIDEN_MULT_{PLUS,MINUS}_EXPR hash the first two
8073 operands commutatively and only the third one normally.
8074 For internal CALL_EXPR hash in CALL_EXPR_IFN.
8075
8076 2016-04-27 Sebastian Huber <sebastian.huber@embedded-brains.de>
8077
8078 * config/rtems.h (LIB_SPEC): Add -latomic.
8079
8080 2016-04-27 Joel Sherrill <joel@rtems.org>
8081
8082 * config/microblaze/rtems.h: Redefine LINK_SPEC to avoid
8083 xilink.ld and flags not relevant to RTEMS.
8084
8085 2016-04-26 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
8086
8087 * toplev.c (backend_init_target): Avoid calling init_reload when using
8088 LRA.
8089
8090 2016-04-26 Jakub Jelinek <jakub@redhat.com>
8091
8092 * reorg.c (try_merge_delay_insns): Declare i and j inside the
8093 for loops rather than one for the whole function.
8094
8095 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
8096
8097 * match.pd (X + CST CMP X): New transformation.
8098
8099 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
8100
8101 * genmatch.c (write_predicate): Add ATTRIBUTE_UNUSED.
8102 * fold-const.c (fold_binary_loc): Remove 2 transformations
8103 superseded by match.pd.
8104 * match.pd (x+x -> x*2): Generalize to integers.
8105
8106 2016-04-26 Bernd Schmidt <bschmidt@redhat.com>
8107
8108 * config/i386/i386.md (operation on memory peephole): Duplicate an
8109 existing peephole and adapt it to match lea rather than an operation
8110 that clobbers CC.
8111
8112 PR rtl-optimization/57193
8113 * opts.c (default_options_table): Add OPT_frename_registers at -O2
8114 and above.
8115 * doc/invoke.texi (-frename-registers, -O2): Update documentation.
8116
8117 2016-04-26 Bin Cheng <bin.cheng@arm.com>
8118
8119 * tree-if-conv.c (any_pred_load_store): New static variable.
8120 (if_convertible_gimple_assign_stmt_p): Remove parameter. Use
8121 any_pred_load_store instead of and_mask_load_store.
8122 (if_convertible_stmt_p, if_convertible_loop_p_1): Ditto.
8123 (if_convertible_loop_p, insert_gimplified_predicates): Ditto.
8124 (combine_blocks, tree_if_conversion): Ditto.
8125
8126 2016-04-26 Bin Cheng <bin.cheng@arm.com>
8127
8128 PR tree-optimization/70771
8129 PR tree-optimization/70775
8130 * tree-if-conv.c (if_convertible_phi_p): Remove check on special
8131 virtual PHI nodes. Delete parameter.
8132 (if_convertible_loop_p_1): Delete argument to above function.
8133 (predicate_all_scalar_phis): Delete code handling single-argument
8134 PHIs.
8135 (tree_if_conversion): Mark and update virtual SSA.
8136
8137 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8138
8139 PR target/61821
8140 * config/i386/i386.c (LARGECOMM_SECTION_ASM_OP): Define default.
8141 (x86_elf_aligned_common): Rename to ...
8142 (x86_elf_aligned_decl_common): ... this.
8143 Add decl arg. Switch to .lbss for largecomm object. Use
8144 LARGECOMM_SECTION_ASM_OP.
8145 * config/i386/i386-protos.h (x86_elf_aligned_common): Reflect
8146 renaming.
8147 * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_COMMON): Rename to ...
8148 (ASM_OUTPUT_ALIGNED_DECL_COMMON): ... this.
8149 Pass new decl arg.
8150 * config/i386/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
8151 [!USE_GAS] (LARGECOMM_SECTION_ASM_OP): Define.
8152
8153 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8154
8155 PR target/59407
8156 * config/i386/i386.c (SECTION_LARGE): Define.
8157 (x86_64_elf_select_section): Set it for large data/bss sections.
8158 Only clear SECTION_WRITE for .lrodata.
8159 (x86_64_elf_section_type_flags): Set SECTION_LARGE for large
8160 data/bss sections.
8161 * config/i386/sol2.h (MACH_DEP_SECTION_ASM_FLAG): Define.
8162 * varasm.c (default_elf_asm_named_section): Grow flagchars.
8163 [MACH_DEP_SECTION_ASM_FLAG] Emit MACH_DEP_SECTION_ASM_FLAG for
8164 SECTION_MACH_DEP.
8165 * doc/tm.texi.in (Sections, MACH_DEP_SECTION_ASM_FLAG): Describe.
8166 * doc/tm.texi: Regenerate.
8167
8168 2016-04-26 Jakub Jelinek <jakub@redhat.com>
8169
8170 PR bootstrap/70704
8171 * configure.ac (--enable-checking): Document extra flag, for
8172 non-release builds default to --enable-checking=yes,extra.
8173 If misc checking and extra checking, define CHECKING_P to 2 instead
8174 of 1.
8175 * common.opt (fchecking=): Add.
8176 * doc/invoke.texi (-fchecking=): Document.
8177 * doc/install.texi: Document --enable-checking changes.
8178 * configure: Regenerated.
8179 * config.in: Regenerated.
8180
8181 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
8182
8183 * config/i386/i386.md (*movxi_internal_avx512f): Use insn type
8184 attribute instead of which_alternative.
8185 * config/i386/sse.md (*mov<mode>_internal): Ditto.
8186 Use EXT_REX_SSE_REG_P where appropriate.
8187
8188 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
8189
8190 * config/i386/predicates.md (const0_operand): Do not match
8191 const_wide_int code.
8192 (const1_operand): Ditto.
8193
8194 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
8195
8196 * config/i386/i386.md (*movoi_internal_avx): Set mode attribute to XI
8197 for SSE constm1 operands and TARGET_AVX512VL.
8198 (*movti_internal): Ditto.
8199 (*mov<mode>_or): Use constm1_operand predicate.
8200 * config/i386/sse.md (*mov<mode>_internal): Set mode attribute to XI
8201 for SSE vector_all_ones operands and TARGET_AVX512VL.
8202 * config/i386/predicates.md (constm1_operand): New predicate.
8203 * config/i386/i386.c (standard_sse_constant_opcode): Simplify
8204 emission of constant -1 load.
8205
8206 2016-04-25 Jason Merrill <jason@redhat.com>
8207
8208 * gdbinit.in: Skip is-a.h.
8209
8210 * attribs.c (register_scoped_attributes): Fix logic.
8211 * attribs.h: Declare register_scoped_attributes.
8212
8213 2016-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8214
8215 * config/rs6000/rs6000-builtin.def: Correct pasto error for
8216 stxvd2x and stxvw4x built-in functions.
8217
8218 2016-04-25 DJ Delorie <dj@redhat.com>
8219
8220 * config/msp430/msp430.md (ashlhi3): Optimize one bit shifts.
8221 (ashrhi3): Likewise.
8222 (lshrhi3): Likewise.
8223
8224 2016-04-25 Richard Biener <rguenther@suse.de>
8225
8226 PR tree-optimization/70780
8227 * tree-ssa-pre.c (compute_antic_aux): Also return true if the block
8228 wasn't visited yet.
8229 (compute_antic): Mark blocks with abnormal preds as visited as
8230 they have a final empty antic-in solution already.
8231
8232 2016-04-25 Michael Collison <michael.collison@linaro.org>
8233
8234 * ChangeLog(2016-04-25): Fix ChangeLog formatting.
8235
8236 2016-04-25 Michael Collison <michael.collison@linaro.org>
8237
8238 * config/arm/neon.md (widen_<us>sum<mode>): New patterns where
8239 mode is VQI to improve mixed mode vectorization.
8240 * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3): New
8241 define_insn to match low half of signed vaddw.
8242 * config/arm/neon.md (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): New
8243 define_insn to match high half of signed vaddw.
8244 * config/arm/neon.md (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): New
8245 define_insn to match low half of unsigned vaddw.
8246 * config/arm/neon.md (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): New
8247 define_insn to match high half of unsigned vaddw.
8248 * config/arm/arm.c (arm_simd_vect_par_cnst_half): New function.
8249 (arm_simd_check_vect_par_cnst_half_p): Likewise.
8250 * config/arm/arm-protos.h (arm_simd_vect_par_cnst_half): Prototype
8251 for new function.
8252 (arm_simd_check_vect_par_cnst_half_p): Likewise.
8253 * config/arm/predicates.md (vect_par_constant_high): Support
8254 big endian and simplify by calling
8255 arm_simd_check_vect_par_cnst_half
8256 (vect_par_constant_low): Likewise.
8257
8258 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
8259
8260 * config/i386/i386.md (*lea<mode>_general_4): Use const_0_to_3_operand
8261 predicate for operand 2.
8262
8263 2016-04-24 Uros Bizjak <ubizjak@gmail.com>
8264 H.J. Lu <hongjiu.lu@intel.com>
8265
8266 * config/i386/i386-protos.h (standard_sse_constant_p): Add
8267 machine_mode argument.
8268 * config/i386/i386.c (standard_sse_constant_p): Return 2 for
8269 constm1_rtx operands. For VOIDmode constants, get mode from
8270 pred_mode. Check mode size if the mode is supported by ABI.
8271 (standard_sse_constant_opcode): Do not use standard_constant_p.
8272 Strictly check ABI support for all-ones operands.
8273 (ix86_legitimate_constant_p): Handle TImode, OImode and XImode
8274 immediates. Update calls to standard_sse_constant_p.
8275 (ix86_expand_vector_move): Update calls to standard_sse_constant_p.
8276 (ix86_rtx_costs): Ditto.
8277 * config/i386/i386.md (*movxi_internal_avx512f): Use
8278 nonimmediate_or_sse_const_operand instead of vector_move_operand.
8279 Use (v,BC) alternative instead of (v,C). Use register_operand
8280 checks instead of MEM_P.
8281 (*movoi_internal_avx): Use nonimmediate_or_sse_const_operand instead
8282 of vector_move_operand. Add (v,BC) alternative and corresponding avx2
8283 isa attribute. Use register_operand checks instead of MEM_P.
8284 (*movti_internal): Use nonimmediate_or_sse_const_operand for
8285 TARGET_SSE. Improve TARGET_SSE insn constraint. Add (v,BC)
8286 alternative and corresponding sse2 isa attribute.
8287 (*movtf_internal, *movdf_internal, *movsf_interal): Update calls
8288 to standard_sse_constant_p.
8289 (FP constant splitters): Ditto.
8290 * config/i386/constraints.md (BC): Do not use standard_sse_constant_p.
8291 (C): Ditto.
8292 * config/i386/predicates.md (constm1_operand): Remove.
8293 (nonimmediate_or_sse_const_operand): Rewrite using RTX.
8294 * config/i386/sse.md (*<avx512>_cvtmask2<ssemodesuffix><mode>): Use
8295 vector_all_ones_operand instead of constm1_operand.
8296
8297 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8298
8299 * print-rtl.c (print_rtx_insn_vec): New function.
8300 * print-rtl.h: New prototype.
8301 * store-motion.c (struct st_expr): Make avail_stores a vector.
8302 (st_expr_entry): Adjust.
8303 (free_st_expr_entry): Likewise.
8304 (print_store_motion_mems): Likewise.
8305 (find_moveable_store): Likewise.
8306 (compute_store_table): Likewise.
8307 (delete_store): Likewise.
8308 (build_store_vectors): Likewise.
8309
8310 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8311
8312 * reorg.c (try_merge_delay_insns): Make merged_insns a vector.
8313
8314 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8315
8316 * vec.h (vec_safe_contains): New function.
8317 (vec::contains): Likewise.
8318 (vec::begin): Likewise.
8319 (vec::end): Likewise.
8320
8321 2016-04-23 Jakub Jelinek <jakub@redhat.com>
8322
8323 PR sanitizer/70712
8324 * cfgexpand.c (expand_stack_vars): Fix typo.
8325
8326 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
8327
8328 * system.h (list, map, set, vector): Include conditionally.
8329 * auto-profile.c (INCLUDE_MAP, INCLUDE_SET): Define.
8330 * graphite-isl-ast-to-gimple.c (INCLUDE_MAP): Define.
8331 * ipa-icf.c (INCLUDE_LIST): Define.
8332 * config/aarch64/cortex-a57-fma-steering.c (INCLUDE_LIST): Define.
8333 * config/sh/sh.c (INCLUDE_VECTOR): Define.
8334 * config/sh/sh_treg_combine.cc (INCLUDE_ALGORITHM): Define.
8335 (INCLUDE_LIST, INCLUDE_VECTOR): Define.
8336 * cp/logic.cc (INCLUDE_LIST): Define.
8337 * fortran/trans-common.c (INCLUDE_MAP): Define.
8338
8339 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
8340
8341 * auto-profile.c: Remove <string.h> include.
8342 * ipa-icf-gimple.c: Remove <list> include.
8343 * diagnostic.c: Remove <new> include.
8344 * genmatch.c: Likewise.
8345 * pretty-print.c: Likewise.
8346 * toplev.c: Likewise
8347 * c/c-objc-common.c: Likewise.
8348 * cp/error.c: Likewise.
8349 * fortran/error.c: Likewise.
8350
8351 2016-04-22 Richard Biener <rguenther@suse.de>
8352
8353 * lto-streamer-in.c (input_ssa_names): Do not allocate
8354 GIMPLE_NOP for all SSA names.
8355 * lto-streamer-out.c (output_ssa_names): Do not output
8356 SSA names that should have been released.
8357
8358 2016-04-22 Richard Biener <rguenther@suse.de>
8359
8360 PR tree-optimization/70740
8361 * tree-ssa-phiprop.c (propagate_with_phi): Handle inserted
8362 VDEF.
8363
8364 2016-04-21 H.J. Lu <hongjiu.lu@intel.com>
8365
8366 PR target/70750
8367 * config/i386/predicates.md (call_insn_operand): Replace
8368 sibcall_memory_operand with memory_operand.
8369
8370 2016-04-21 Patrick Palka <ppalka@gcc.gnu.org>
8371
8372 * tree-vrp.c (register_edge_assert_for_2): Remove redundant
8373 has_single_use() tests.
8374 (register_edge_assert_for_1): Likewise.
8375 (find_assert_locations_1): Check the liveness bitmap instead of
8376 checking has_single_use().
8377
8378 2016-04-21 Kirill Yukhin <kirill.yukhin@intel.com>
8379
8380 PR target/70728
8381 * config/i386/sse.md (define_insn "<shift_insn><mode>3<mask_name>"):
8382 Extract AVX-512BW constraint from AVX.
8383
8384 2016-04-21 Richard Biener <rguenther@suse.de>
8385
8386 PR tree-optimization/70725
8387 * tree-if-conv.c (if_convertible_phi_p): Adjust guard
8388 for phi_convertible_by_degenerating_args.
8389 (predicate_all_scalar_phis): Handle single-argument PHIs.
8390
8391 2016-04-21 Richard Biener <rguenther@suse.de>
8392
8393 PR middle-end/70747
8394 * fold-const.c (fold_comparison): Return properly typed
8395 constant boolean.
8396
8397 2016-04-21 Bin Cheng <bin.cheng@arm.com>
8398
8399 PR tree-optimization/70715
8400 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
8401 after expanding BASE using expand_simple_operations.
8402
8403 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
8404
8405 * match.pd (min(-x, -y), max(-x, -y), min(~x, ~y), max(~x, ~y)):
8406 New transformations.
8407
8408 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
8409
8410 * match.pd (min(int_max, x), max(int_min, x)): New transformations.
8411
8412 2016-04-20 Jan Hubicka <jh@suse.cz>
8413
8414 * ipa-inline.c (can_inline_edge_p): Pass caller info to
8415 ultiimate_alias_target.
8416 (update_callee_keys): Likewise.
8417 (lookup_recursive_calls): Likewise.
8418 (speculation_useful_p): Likewise.
8419
8420 2016-04-20 Jan Hubicka <jh@suse.cz>
8421
8422 PR ipa/70018
8423 * cgraph.c (cgraph_set_nothrow_flag_1): Rename to ...
8424 (set_nothrow_flag_1): ... this; handle interposition correctly;
8425 recurse on aliases and thunks.
8426 (cgraph_node::set_nothrow_flag): New.
8427 * ipa-pure-const.c (ignore_edge_for_nothrow): Ignore calls to
8428 functions compiled with non-call exceptions that binds to current
8429 def.
8430 (propagate_nothrow): Be safe WRT interposition.
8431 * cgraph.h (set_nothrow_flag): Update prototype.
8432
8433 2016-04-18 Jan Hubicka <jh@suse.cz>
8434
8435 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
8436 max_loop_iterations_int.
8437 (tree_unswitch_outer_loop): Likewise.
8438
8439 2016-04-20 Bin Cheng <bin.cheng@arm.com>
8440
8441 PR tree-optimization/69489
8442 * tree-if-conv.c (phi_convertible_by_degenerating_args): New.
8443 (if_convertible_phi_p): Call phi_convertible_by_degenerating_args.
8444 Revise dump message.
8445 (if_convertible_bb_p): Remove check on edge count of basic block's
8446 predecessors.
8447
8448 2016-04-20 Bin Cheng <bin.cheng@arm.com>
8449
8450 PR tree-optimization/56625
8451 PR tree-optimization/69489
8452 * tree-data-ref.h (DR_INNERMOST): New macro.
8453 * tree-if-conv.c (innermost_loop_behavior_hash): New class for
8454 hashing struct innermost_loop_behavior.
8455 (ref_DR_map): Remove.
8456 (innermost_DR_map): New map.
8457 (baseref_DR_map): Revise comment.
8458 (hash_memrefs_baserefs_and_store_DRs_read_written_info): Store DR
8459 to innermost_DR_map accroding to its innermost loop behavior.
8460 (ifcvt_memrefs_wont_trap): Get DR from innermost_DR_map according
8461 to its innermost loop behavior.
8462 (if_convertible_loop_p_1): Remove intialization for ref_DR_map.
8463 Add initialization for innermost_DR_map. Record memory reference
8464 in DR_BASE_ADDRESS if the reference is compound one or it doesn't
8465 have innermost loop behavior.
8466 (if_convertible_loop_p): Remove release for ref_DR_map. Release
8467 innermost_DR_map.
8468
8469 2016-04-20 Uros Bizjak <ubizjak@gmail.com>
8470
8471 * config/i386/i386.md (*lea<mode>_general_1): Rename from
8472 *lea_general_1. Use explicit SWI12 mode interator.
8473 (*lea<mode>_general_2): Rename from *lea_general_2.
8474 Use explicit SWI12 mode interator.
8475 (*lea<mode>_general_3): Rename from *lea_general_3.
8476 Use explicit SWI12 mode interator.
8477 (*lea<SWI12:mode>_general_4): Split from *lea_general_4.
8478 Use explicit SWI12 mode interator.
8479 (*lea<SWI48:mode>_general_4): Split from *lea_general_4.
8480 Use explicit SWI48 mode interator.
8481
8482 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
8483
8484 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
8485 Short-cut unaligned load and store cases. Handle all integer
8486 vector modes.
8487 (ix86_expand_vector_move_misalign): Short-cut unaligned load
8488 and store cases. Call ix86_avx256_split_vector_move_misalign
8489 directly without checking mode class.
8490
8491 2016-04-20 Andrew Pinski <apinski@cavium.com>
8492 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8493
8494 PR target/64971
8495 * config/aarch64/aarch64.md (sibcall): Force call
8496 address to be DImode for ILP32.
8497 (sibcall_value): Likewise.
8498
8499 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
8500
8501 * doc/invoke.texi: Replace -skip-rax-setup with -mskip-rax-setup.
8502
8503 2016-04-20 Richard Biener <rguenther@suse.de>
8504
8505 * gimple-match.h (maybe_build_generic_op): Adjust prototype.
8506 * gimple-match-head.c (maybe_build_generic_op): Pass all ops
8507 by reference, clear op1 and op2 when GENERICizing BIT_FIELD_REF.
8508 (maybe_push_res_to_seq): Adjust.
8509 * gimple-fold.c (maybe_build_generic_op): Likewise.
8510
8511 2016-04-20 Marek Polacek <polacek@redhat.com>
8512
8513 * tree-if-conv.c (is_false_predicate): For NULL_TREE return false
8514 rather than true.
8515
8516 2016-04-20 Ilya Enkovich <ilya.enkovich@intel.com>
8517
8518 * config/i386/sse.md (vec_unpacks_lo_hi): Always
8519 use kmovw to support AVX512F target.
8520
8521 2016-04-20 Bin Cheng <bin.cheng@arm.com>
8522
8523 * tree-scalar-evolution.c (interpret_rhs_expr): Handle BIT_AND_EXPR.
8524
8525 2016-04-20 Marek Polacek <polacek@redhat.com>
8526
8527 PR tree-optimization/70725
8528 * tree-if-conv.c (is_false_predicate): New function.
8529 (predicate_mem_writes): Use it.
8530
8531 2016-04-20 Richard Biener <rguenther@suse.de>
8532
8533 PR tree-optimization/70726
8534 * tree-vect-stmts.c (vectorizable_shift): Do not use scalar
8535 shift amounts from a pattern stmt operand.
8536
8537 2016-04-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8538
8539 PR target/70674
8540 * config/s390/s390.c (s390_restore_gprs_from_fprs): Pick the new
8541 stack_restore_from_fpr pattern when restoring r15.
8542 (s390_optimize_prologue): Strip away the memory barrier in the
8543 parallel when trying to get rid of restore insns.
8544 * config/s390/s390.md ("stack_restore_from_fpr"): New insn
8545 definition for loading the stack pointer from an FPR. Compared to
8546 the normal move insn this pattern includes a full memory barrier.
8547
8548 2016-04-19 Jakub Jelinek <jakub@redhat.com>
8549
8550 PR middle-end/70680
8551 * gimplify.c (gimplify_omp_for): Call omp_notice_variable for
8552 implicitly linear or lastprivate iterator on the outer context.
8553
8554 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
8555
8556 * config/i386/i386.c (ix86_legitimate_combined_insn): Remove
8557 alignment check.
8558 * config/i386/i386.md (ssememalign): Removed.
8559 * config/i386/sse.md: Remove ssememalign attribute from patterns.
8560
8561 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
8562
8563 PR target/69201
8564 * config/i386/avx512bwintrin.h (_mm512_mask_loadu_epi16): Pass
8565 const short * to __builtin_ia32_loaddquhi512_mask.
8566 (_mm512_maskz_loadu_epi16): Likewise.
8567 (_mm512_mask_storeu_epi16): Pass short * to
8568 __builtin_ia32_storedquhi512_mask.
8569 (_mm512_mask_loadu_epi8): Pass const char * to
8570 __builtin_ia32_loaddquqi512_mask.
8571 (_mm512_maskz_loadu_epi8): Likewise.
8572 (_mm512_mask_storeu_epi8): Pass char * to
8573 __builtin_ia32_storedquqi512_mask.
8574 * config/i386/avx512fintrin.h (_mm512_loadu_pd): Pass
8575 const double * to __builtin_ia32_loadupd512_mask.
8576 (_mm512_mask_loadu_pd): Likewise.
8577 (_mm512_maskz_loadu_pd): Likewise.
8578 (_mm512_storeu_pd): Pass double * to
8579 __builtin_ia32_storeupd512_mask.
8580 (_mm512_mask_storeu_pd): Likewise.
8581 (_mm512_loadu_ps): Pass const float * to
8582 __builtin_ia32_loadups512_mask.
8583 (_mm512_mask_loadu_ps): Likewise.
8584 (_mm512_maskz_loadu_ps): Likewise.
8585 (_mm512_storeu_ps): Pass float * to
8586 __builtin_ia32_storeups512_mask.
8587 (_mm512_mask_storeu_ps): Likewise.
8588 (_mm512_mask_loadu_epi64): Pass const long long * to
8589 __builtin_ia32_loaddqudi512_mask.
8590 (_mm512_maskz_loadu_epi64): Likewise.
8591 (_mm512_mask_storeu_epi64): Pass long long *
8592 to __builtin_ia32_storedqudi512_mask.
8593 (_mm512_loadu_si512): Pass const int * to
8594 __builtin_ia32_loaddqusi512_mask.
8595 (_mm512_mask_loadu_epi32): Likewise.
8596 (_mm512_maskz_loadu_epi32): Likewise.
8597 (_mm512_storeu_si512): Pass int * to
8598 __builtin_ia32_storedqusi512_mask.
8599 (_mm512_mask_storeu_epi32): Likewise.
8600 * config/i386/avx512vlbwintrin.h (_mm256_mask_storeu_epi8): Pass
8601 char * to __builtin_ia32_storedquqi256_mask.
8602 (_mm_mask_storeu_epi8): Likewise.
8603 (_mm256_mask_loadu_epi16): Pass const short * to
8604 __builtin_ia32_loaddquhi256_mask.
8605 (_mm256_maskz_loadu_epi16): Likewise.
8606 (_mm_mask_loadu_epi16): Pass const short * to
8607 __builtin_ia32_loaddquhi128_mask.
8608 (_mm_maskz_loadu_epi16): Likewise.
8609 (_mm256_mask_loadu_epi8): Pass const char * to
8610 __builtin_ia32_loaddquqi256_mask.
8611 (_mm256_maskz_loadu_epi8): Likewise.
8612 (_mm_mask_loadu_epi8): Pass const char * to
8613 __builtin_ia32_loaddquqi128_mask.
8614 (_mm_maskz_loadu_epi8): Likewise.
8615 (_mm256_mask_storeu_epi16): Pass short * to.
8616 __builtin_ia32_storedquhi256_mask.
8617 (_mm_mask_storeu_epi16): Pass short * to.
8618 __builtin_ia32_storedquhi128_mask.
8619 * config/i386/avx512vlintrin.h (_mm256_mask_loadu_pd): Pass
8620 const double * to __builtin_ia32_loadupd256_mask.
8621 (_mm256_maskz_loadu_pd): Likewise.
8622 (_mm_mask_loadu_pd): Pass onst double * to
8623 __builtin_ia32_loadupd128_mask.
8624 (_mm_maskz_loadu_pd): Likewise.
8625 (_mm256_mask_storeu_pd): Pass double * to
8626 __builtin_ia32_storeupd256_mask.
8627 (_mm_mask_storeu_pd): Pass double * to
8628 __builtin_ia32_storeupd128_mask.
8629 (_mm256_mask_loadu_ps): Pass const float * to
8630 __builtin_ia32_loadups256_mask.
8631 (_mm256_maskz_loadu_ps): Likewise.
8632 (_mm_mask_loadu_ps): Pass const float * to
8633 __builtin_ia32_loadups128_mask.
8634 (_mm_maskz_loadu_ps): Likewise.
8635 (_mm256_mask_storeu_ps): Pass float * to
8636 __builtin_ia32_storeups256_mask.
8637 (_mm_mask_storeu_ps): ass float * to
8638 __builtin_ia32_storeups128_mask.
8639 (_mm256_mask_loadu_epi64): Pass const long long * to
8640 __builtin_ia32_loaddqudi256_mask.
8641 (_mm256_maskz_loadu_epi64): Likewise.
8642 (_mm_mask_loadu_epi64): Pass const long long * to
8643 __builtin_ia32_loaddqudi128_mask.
8644 (_mm_maskz_loadu_epi64): Likewise.
8645 (_mm256_mask_storeu_epi64): Pass long long * to
8646 __builtin_ia32_storedqudi256_mask.
8647 (_mm_mask_storeu_epi64): Pass long long * to
8648 __builtin_ia32_storedqudi128_mask.
8649 (_mm256_mask_loadu_epi32): Pass const int * to
8650 __builtin_ia32_loaddqusi256_mask.
8651 (_mm256_maskz_loadu_epi32): Likewise.
8652 (_mm_mask_loadu_epi32): Pass const int * to
8653 __builtin_ia32_loaddqusi128_mask.
8654 (_mm_maskz_loadu_epi32): Likewise.
8655 (_mm256_mask_storeu_epi32): Pass int * to
8656 __builtin_ia32_storedqusi256_mask.
8657 (_mm_mask_storeu_epi32): Pass int * to
8658 __builtin_ia32_storedqusi128_mask.
8659 * config/i386/i386-builtin-types.def (PCSHORT): New.
8660 (PINT64): Likewise.
8661 (V64QI_FTYPE_PCCHAR_V64QI_UDI): Likewise.
8662 (V32HI_FTYPE_PCSHORT_V32HI_USI): Likewise.
8663 (V32QI_FTYPE_PCCHAR_V32QI_USI): Likewise.
8664 (V16SF_FTYPE_PCFLOAT_V16SF_UHI): Likewise.
8665 (V8DF_FTYPE_PCDOUBLE_V8DF_UQI): Likewise.
8666 (V16SI_FTYPE_PCINT_V16SI_UHI): Likewise.
8667 (V16HI_FTYPE_PCSHORT_V16HI_UHI): Likewise.
8668 (V16QI_FTYPE_PCCHAR_V16QI_UHI): Likewise.
8669 (V8SF_FTYPE_PCFLOAT_V8SF_UQI): Likewise.
8670 (V8DI_FTYPE_PCINT64_V8DI_UQI): Likewise.
8671 (V8SI_FTYPE_PCINT_V8SI_UQI): Likewise.
8672 (V8HI_FTYPE_PCSHORT_V8HI_UQI): Likewise.
8673 (V4DF_FTYPE_PCDOUBLE_V4DF_UQI): Likewise.
8674 (V4SF_FTYPE_PCFLOAT_V4SF_UQI): Likewise.
8675 (V4DI_FTYPE_PCINT64_V4DI_UQI): Likewise.
8676 (V4SI_FTYPE_PCINT_V4SI_UQI): Likewise.
8677 (V2DF_FTYPE_PCDOUBLE_V2DF_UQI): Likewise.
8678 (V2DI_FTYPE_PCINT64_V2DI_UQI): Likewise.
8679 (VOID_FTYPE_PDOUBLE_V8DF_UQI): Likewise.
8680 (VOID_FTYPE_PDOUBLE_V4DF_UQI): Likewise.
8681 (VOID_FTYPE_PDOUBLE_V2DF_UQI): Likewise.
8682 (VOID_FTYPE_PFLOAT_V16SF_UHI): Likewise.
8683 (VOID_FTYPE_PFLOAT_V8SF_UQI): Likewise.
8684 (VOID_FTYPE_PFLOAT_V4SF_UQI): Likewise.
8685 (VOID_FTYPE_PINT64_V8DI_UQI): Likewise.
8686 (VOID_FTYPE_PINT64_V4DI_UQI): Likewise.
8687 (VOID_FTYPE_PINT64_V2DI_UQI): Likewise.
8688 (VOID_FTYPE_PINT_V16SI_UHI): Likewise.
8689 (VOID_FTYPE_PINT_V8SI_UHI): Likewise.
8690 (VOID_FTYPE_PINT_V4SI_UHI): Likewise.
8691 (VOID_FTYPE_PSHORT_V32HI_USI): Likewise.
8692 (VOID_FTYPE_PSHORT_V16HI_UHI): Likewise.
8693 (VOID_FTYPE_PSHORT_V8HI_UQI): Likewise.
8694 (VOID_FTYPE_PCHAR_V64QI_UDI): Likewise.
8695 (VOID_FTYPE_PCHAR_V32QI_USI): Likewise.
8696 (VOID_FTYPE_PCHAR_V16QI_UHI): Likewise.
8697 (V64QI_FTYPE_PCV64QI_V64QI_UDI): Removed.
8698 (V32HI_FTYPE_PCV32HI_V32HI_USI): Likewise.
8699 (V32QI_FTYPE_PCV32QI_V32QI_USI): Likewise.
8700 (V16HI_FTYPE_PCV16HI_V16HI_UHI): Likewise.
8701 (V16QI_FTYPE_PCV16QI_V16QI_UHI): Likewise.
8702 (V8HI_FTYPE_PCV8HI_V8HI_UQI): Likewise.
8703 (VOID_FTYPE_PV32HI_V32HI_USI): Likewise.
8704 (VOID_FTYPE_PV16HI_V16HI_UHI): Likewise.
8705 (VOID_FTYPE_PV8HI_V8HI_UQI): Likewise.
8706 (VOID_FTYPE_PV64QI_V64QI_UDI): Likewise.
8707 (VOID_FTYPE_PV32QI_V32QI_USI): Likewise.
8708 (VOID_FTYPE_PV16QI_V16QI_UHI): Likewise.
8709 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Don't
8710 use UNSPEC_STOREU.
8711 (ix86_emit_restore_sse_regs_using_mov): Don't use UNSPEC_LOADU.
8712 (ix86_avx256_split_vector_move_misalign): Don't use unaligned
8713 load nor store.
8714 (ix86_expand_vector_move_misalign): Likewise.
8715 (bdesc_special_args): Use CODE_FOR_movvNXY_internal and pointer
8716 to scalar function prototype for unaligned load/store builtins.
8717 (ix86_expand_special_args_builtin): Updated.
8718 * config/i386/sse.md (UNSPEC_LOADU): Removed.
8719 (UNSPEC_STOREU): Likewise.
8720 (VI_ULOADSTORE_BW_AVX512VL): Likewise.
8721 (VI_ULOADSTORE_F_AVX512VL): Likewise.
8722 (ssescalarsize): Handle V4TI, V2TI and V1TI.
8723 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
8724 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
8725 (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Likewise.
8726 (<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask): Likewise.
8727 (<sse2_avx_avx512f>_loaddqu<mode><mask_name>): Likewise.
8728 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"): Likewise.
8729 (sse2_avx_avx512f>_storedqu<mode>): Likewise.
8730 (<avx512>_storedqu<mode>_mask): Likewise.
8731 (*sse4_2_pcmpestr_unaligned): Likewise.
8732 (*sse4_2_pcmpistr_unaligned): Likewise.
8733 (*mov<mode>_internal): Renamed to ...
8734 (mov<mode>_internal): This. Remove check of AVX and IAMCU on
8735 misaligned operand. Replace vmovdqu64 with vmovdqu<ssescalarsize>.
8736 (movsd/movhpd to movupd peephole): Don't use UNSPEC_LOADU.
8737 (movlpd/movhpd to movupd peephole): Don't use UNSPEC_STOREU.
8738
8739 2016-04-19 Richard Biener <rguenther@suse.de>
8740
8741 PR tree-optimization/70171
8742 * tree-ssa-phiprop.c: Include stor-layout.h.
8743 (phiprop_insert_phi): Handle the aggregate copy case.
8744 (propagate_with_phi): Likewise.
8745
8746 2016-04-19 Uros Bizjak <ubizjak@gmail.com>
8747
8748 * config/i386/i386.c (ix86_decompose_address): Use lowpart_subreg
8749 instead of simplify_gen_subreg (... , 0).
8750 (ix86_delegitimize_address): Ditto.
8751 (ix86_split_divmod): Ditto.
8752 (ix86_split_copysign_const): Ditto.
8753 (ix86_split_copysign_var): Ditto.
8754 (ix86_expand_args_builtin): Ditto.
8755 (ix86_expand_round_builtin): Ditto.
8756 (ix86_expand_special_args_builtin): Ditto.
8757 * config/i386/i386.md (TARGET_USE_VECTOR_FP_CONVERTS splitters): Ditto.
8758 (TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters and peephole2s): Ditto.
8759 (udivmodqi4): Ditto.
8760 (absneg splitters): Ditto.
8761 (*jcc_bt<mode>_1): Ditto.
8762
8763 2016-04-19 Richard Biener <rguenther@suse.de>
8764
8765 PR tree-optimization/70724
8766 * tree-ssa-sccvn.c (scc_vn_restore_ssa_info): Split SSA info
8767 restoring out from ...
8768 (free_scc_vn): ... here.
8769 * tree-ssa-sccvn.h (scc_vn_restore_ssa_info): Declare.
8770 * tres-ssa-pre.c (pass_pre::execute): Restore SSA info before
8771 tail merging.
8772 (pass_fre::execute): Restore SSA info.
8773
8774 2016-04-19 Richard Biener <rguenther@suse.de>
8775
8776 * gimple-walk.h (struct walk_stmt_info): Add stmt member.
8777 * gimple-walk.c (walk_gimple_op): Initialize it.
8778 (walk_gimple_asm): Set wi->is_lhs before each callback invocation.
8779 * tree-inline.c (remap_gimple_op_r): Set SSA_NAME_DEF_STMT when
8780 remapping SSA names of defs.
8781 (copy_bb): Remove walk over all SSA defs and SSA_NAME_DEF_STMT
8782 adjustment.
8783
8784 2016-04-18 Vladimir Makarov <vmakarov@redhat.com>
8785
8786 PR middle-end/70689
8787 * lra-constraints.c (equiv_substition_p): New.
8788 (process_alt_operands): Use it.
8789 (swap_operands): Swap it.
8790 (curr_insn_transform): Update it.
8791
8792 2016-04-18 Michael Matz <matz@suse.de>
8793
8794 * tree.h (TYPE_ALIGN, DECL_ALIGN): Return shifted amount.
8795 (SET_TYPE_ALIGN, SET_DECL_ALIGN): New.
8796 * tree-core.h (tree_type_common.align): Use bit-field.
8797 (tree_type_common.spare): New.
8798 (tree_decl_common.off_align): Make smaller.
8799 (tree_decl_common.align): Use bit-field.
8800
8801 * expr.c (expand_expr_addr_expr_1): Use SET_TYPE_ALIGN.
8802 * omp-low.c (install_var_field): Use SET_DECL_ALIGN.
8803 (scan_sharing_clauses): Ditto.
8804 (finish_taskreg_scan): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
8805 (omp_finish_file): Ditto.
8806 * stor-layout.c (do_type_align): Use SET_DECL_ALIGN.
8807 (layout_decl): Ditto.
8808 (relayout_decl): Ditto.
8809 (finalize_record_size): Use SET_TYPE_ALIGN.
8810 (finalize_type_size): Ditto.
8811 (finish_builtin_struct): Ditto.
8812 (layout_type): Ditto.
8813 (initialize_sizetypes): Ditto.
8814 * targhooks.c (std_gimplify_va_arg_expr): Use SET_TYPE_ALIGN.
8815 * tree-nested.c (insert_field_into_struct): Use SET_TYPE_ALIGN.
8816 (lookup_field_for_decl): Use SET_DECL_ALIGN.
8817 (get_chain_field): Ditto.
8818 (get_trampoline_type): Ditto.
8819 (get_nl_goto_field): Ditto.
8820 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
8821 SET_DECL_ALIGN.
8822 (unpack_ts_type_common_value_fields): Use SET_TYPE_ALIGN.
8823 * gimple-expr.c (copy_var_decl): Use SET_DECL_ALIGN.
8824 * tree.c (make_node_stat): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
8825 (build_qualified_type): Use SET_TYPE_ALIGN.
8826 (build_aligned_type, build_range_type_1): Ditto.
8827 (build_atomic_base): Ditto.
8828 (build_common_tree_nodes): Ditto.
8829 * cfgexpand.c (align_local_variable): Use SET_DECL_ALIGN.
8830 (expand_one_stack_var_at): Ditto.
8831 * coverage.c (build_var): Use SET_DECL_ALIGN.
8832 * except.c (init_eh): Ditto.
8833 * function.c (assign_parm_setup_block): Ditto.
8834 * symtab.c (increase_alignment_1): Ditto.
8835 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Ditto.
8836 * tree-vect-stmts.c (ensure_base_align): Ditto.
8837 * varasm.c (align_variable): Ditto.
8838 (assemble_variable): Ditto.
8839 (build_constant_desc): Ditto.
8840 (output_constant_def_contents): Ditto.
8841
8842 * config/arm/arm.c (arm_relayout_function): Use SET_DECL_ALIGN.
8843 * config/avr/avr.c (avr_adjust_type_node): Use SET_TYPE_ALIGN.
8844 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Ditto.
8845 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Ditto.
8846 * config/spu/spu.c (spu_build_builtin_va_list): Use SET_DECL_ALIGN.
8847
8848 2016-04-18 H.J. Lu <hongjiu.lu@intel.com>
8849
8850 PR target/70708
8851 * config/i386/sse.md (sse2_loadlpd): Accept load from "xm" and
8852 replace %vmovsd with "%vmovq".
8853 (vec_concatv2df): Likewise.
8854
8855 2016-04-18 Uros Bizjak <ubizjak@gmail.com>
8856
8857 * config/i386/mmx.md (*vec_extractv2sf_0): Use gen_lowpart.
8858 (*vec_extractv2si_0): Ditto.
8859 * config/i386/sse.md (*vec_extractv4sf_0): Ditto.
8860 (zero_extended_scalar_load_operand splitters): Ditto.
8861 (vec_extract splitters): Ditto.
8862 (*vec_extractv4si_0_zext): Ditto.
8863 (avx_<castmode><avxsizesuffix>_<castmode>): Use gen_lowpart
8864 and lowpart_subreg.
8865 (avx512f_<castmode><avxsizesuffix>_<castmode>): Ditto.
8866 (avx512f_<castmode><avxsizesuffix>_256<castmode>): Ditto.
8867 (*sse4_1_extractps): Use lowpart_subreg.
8868 * config/i386/i386.md (x87 floatsplitter): Use gen_lowpart.
8869
8870 2016-04-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8871
8872 * doc/install.texi (Specific, i?86-*-solaris2.10): Update gas and
8873 gld requirements.
8874 (Specific, *-*-solaris2*): Update Solaris 11 bundled gcc versions.
8875 Mention Solaris 11 packaging changes.
8876 Update gas and gld requirements.
8877 Remove reference to pre-Solaris 10 bug.
8878 (Specific, sparc-sun-solaris2*): Remove reference to pre-Solaris 10
8879 systems and bugs.
8880 (Specific, sparc64-*-solaris2*): Remove reference to bootstrap
8881 with cc.
8882
8883 2016-04-17 Jan Hubicka <jh@suse.cz>
8884
8885 * tree-ssa-loop-ivopts.c (avg_loop_niter): Use also
8886 max_loop_iterations_int.
8887
8888 2016-04-18 Richard Biener <rguenther@suse.de>
8889
8890 PR tree-optimization/43434
8891 * tree-ssa-structalias.c (struct vls_data): New.
8892 (visit_loadstore): Handle all pointer-based accesses.
8893 (compute_dependence_clique): Compute a bitmap of restrict tags
8894 assigned bases and pass it to visit_loadstore.
8895
8896 2016-04-18 Matthew Wahab <matthew.wahab@arm.com>
8897
8898 PR target/70711
8899 * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for armv8+crc,
8900 armv8.1-a and armv8.1-a+crc.
8901
8902 2016-04-18 Richard Biener <rguenther@suse.de>
8903
8904 PR tree-optimization/70701
8905 * tree-ssa-sccvn.c (vn_reference_lookup_3): Resolve fully constant
8906 references after translating through a memcpy.
8907
8908 2016-04-18 Richard Biener <rguenther@suse.de>
8909
8910 * tree-ssa-pre.c (postorder, postorder_num): Make locals ...
8911 (compute_antic): ... here. For partial antic use regular
8912 postorder and scrap iteration.
8913 (compute_partial_antic_aux): Remove unused return value.
8914 (init_pre): Do not allocate postorder.
8915 (fini_pre): Do not free postorder.
8916
8917 2016-04-18 Richard Biener <rguenther@suse.de>
8918
8919 PR middle-end/37870
8920 * expmed.c (extract_bit_field_1): Remove broken case
8921 using a wider MODE_INT mode.
8922
8923 2016-04-18 Segher Boessenkool <segher@kernel.crashing.org>
8924
8925 * has-brig.c (lendian16): Don't try to use __builtin_bswap16
8926 unless compiling with at least GCC-4.8.
8927
8928 2016-04-17 Jan Hubicka <jh@suse.cz>
8929
8930 PR bootstrap/70706
8931 * graphite.c (graphite_finalize): Update call to
8932 tree_estimate_probability.
8933 * predict.h (tree_estimate_probability): Update prototype.
8934
8935 2016-04-17 Jan Hubicka <jh@suse.cz>
8936
8937 * predict.c (combine_predictions_for_bb): Add dry_run parmaeter.
8938 (tree_estimate_probability): Likewise.
8939 (pass_profile::execute): Update.
8940 (report_predictor_hitrates): New function.
8941 * profile.c (compute_branch_probabilities): Use it.
8942 * predict.h (report_predictor_hitrates): Declare.
8943
8944 2016-04-17 Jan Hubicka <jh@suse.cz>
8945
8946 PR ipa/70018
8947 * cgraph.h (cgraph_node::set_const_flag,
8948 cgraph_node::set_pure_flag): Update prototype to return bool;
8949 update comment.
8950 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases): Thunks
8951 of interposable symbol are interposable, too.
8952 (cgraph_set_const_flag_1): Rename to ...
8953 (set_const_flag_1): ... this one; change to self recursive function
8954 instead of call_for_symbol_thunks_and_aliases. Handle correctly
8955 clearnig the flag in all variants and also virtual thunks of const
8956 functions are pure; track if any change was done.
8957 (cgraph_node::set_const_flag): Update.
8958 (struct set_pure_flag_info): New struct.
8959 (cgraph_set_pure_flag_1): Rename to ...
8960 (set_pure_flag_1): ... this one; take set_pure_flag_info parameter
8961 rather than pointer encoded flags; track if any changes was done;
8962 handle correctly clearning flag and setting flag of aliases already
8963 declared const.
8964 (cgraph_node::set_pure_flag): Update.
8965 (cgraph_node::set_nothrow_flag): Handle correctly clearning the flag.
8966
8967 2016-04-17 Tom de Vries <tom@codesourcery.com>
8968
8969 PR other/70433
8970 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Escape
8971 backslash in label.
8972
8973 2016-04-17 Tom de Vries <tom@codesourcery.com>
8974
8975 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Classify chars
8976 '{}<> ' as escape-for-record.
8977
8978 2016-04-17 Tom de Vries <tom@codesourcery.com>
8979
8980 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Simplify loop
8981 structure.
8982
8983 2016-04-17 Tom de Vries <tom@codesourcery.com>
8984
8985 PR other/70185
8986 * tree-pass.h (class opt_pass): Remove graph_dump_initialized member.
8987 * dumpfile.h (struct dump_file_info): Add graph_dump_initialized field.
8988 * dumpfile.c (dump_files): Initialize graph_dump_initialized field.
8989 * passes.c (finish_optimization_passes): Only call
8990 finish_graph_dump_file if dfi->graph_dump_initialized.
8991 (execute_function_dump, pass_init_dump_file): Use
8992 dfi->graph_dump_initialized instead of pass->graph_dump_initialized.
8993
8994 2016-04-17 Tom de Vries <tom@codesourcery.com>
8995
8996 PR tree-optimization/70256
8997 * tree-ssa-structalias.c (dump_varinfo, debug_varinfo, dump_varmap)
8998 (debug_varmap): New function.
8999
9000 2016-04-17 Tom de Vries <tom@codesourcery.com>
9001
9002 PR other/70183
9003 * passes.c (pass_manager::register_pass): Propagate pflags.
9004
9005 2016-04-17 Tom de Vries <tom@codesourcery.com>
9006
9007 PR other/68875
9008 * pass_manager.h (TERMINATE_PASS_LIST): Add pass argument.
9009 * passes.c (pass_manager::pass_manager): Declare and init p_start in
9010 INSERT_PASSES_AFTER. Add pass parameter to TERMINATE_PASS_LIST, and
9011 check if it's equal to p_start.
9012 * passes.def: Add arguments to TERMINATE_PASS_LISTs.
9013
9014 2016-04-15 Jan Hubicka <jh@suse.cz>
9015
9016 PR ipa/70018
9017 * cgraph.c (cgraph_set_const_flag_1): Only set as pure if
9018 function does not bind to current def.
9019 * ipa-pure-const.c (worse_state): Add FROM and TO parameters;
9020 handle conservatively calls to functions that does not need to bind
9021 to current def.
9022 (check_call): Update call of worse_state.
9023 (ignore_edge_for_nothrow): Update.
9024 (ignore_edge_for_pure_const): Likewise.
9025 (propagate_pure_const): Update calls to worse_state.
9026 (skip_function_for_local_pure_const): Reformat comments.
9027
9028 2016-04-15 Jan Hubicka <jh@suse.cz>
9029
9030 PR ipa/70018
9031 * cgraph.c (cgraph_node::get_availability): Add REF parameter.
9032 (cgraph_node::function_symbol): Likewise.
9033 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
9034 * cgraph.h (symtab_node::get_availabbility): Add REF parameter.
9035 (symtab_node::ultimate_alias_target): Add REF parameter.
9036 (symtab_node::binds_to_current_def_p): Declare.
9037 (symtab_node;:ultimate_alias_target_1): Add REF parameter.
9038 (cgraph_node::function_symbol): Likewise.
9039 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
9040 (cgraph_node::get_availability): Likewise.
9041 (cgraph_edge::binds_to_current_def_p): New inline function.
9042 (varpool_node::get_availability): Add REF parameter.
9043 (varpool_node::ultimate_alias_target): Likewise.
9044 * symtab.c (symtab_node::ultimate_alias_target_1): Likewise.
9045 (symtab_node::binds_to_current_def_p): Likewise.
9046 * varpool.c (varpool_node::get_availability): Likewise.
9047
9048 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
9049
9050 PR target/70662
9051 * config/i386/sse.md(define_insn "<avx512>_vec_dup<mode><mask_name>"):
9052 Fix mode size check.
9053
9054 2016-04-15 Jakub Jelinek <jakub@redhat.com>
9055
9056 * BASE-VER: Set to 7.0.0.
9057
9058 2016-04-15 Alexander Monakov <amonakov@ispras.ru>
9059
9060 * config/nvptx/nvptx.opt (moptimize): Add a period at end of help text.
9061
9062 2016-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9063
9064 * doc/invoke.texi (ARM Options): Add note on deprecation of pre-ARMv4T
9065 architecture revisions.
9066
9067 2016-04-15 Bernd Schmidt <bschmidt@redhat.com>
9068
9069 * config/i386/i386-protos.h (ix86_using_red_zone): Declare.
9070 * config/i386/i386.c (ix86_using_red_zone): No longer static.
9071 * config/i386/i386.md (stack decrement to push peepholes): Guard
9072 with !x86_using_red_zone ().
9073
9074 2016-04-15 Jakub Jelinek <jakub@redhat.com>
9075
9076 PR c++/70675
9077 * tree-pretty-print.c (do_niy): Add FLAGS argument, pass it down
9078 to dump_generic_node.
9079 (NIY): Pass also flags to do_niy.
9080
9081 2016-04-15 Thomas Schwinge <thomas@codesourcery.com>
9082
9083 * omp-low.c (simd_clone_struct_alloc, simd_clone_struct_copy)
9084 (simd_clone_vector_of_formal_parm_types)
9085 (simd_clone_clauses_extract, simd_clone_compute_base_data_type)
9086 (simd_clone_mangle, simd_clone_create)
9087 (simd_clone_adjust_return_type, create_tmp_simd_array)
9088 (simd_clone_adjust_argument_types, simd_clone_init_simd_arrays)
9089 (struct modify_stmt_info, ipa_simd_modify_stmt_ops)
9090 (ipa_simd_modify_function_body, simd_clone_linear_addend)
9091 (simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone)
9092 (pass_data_omp_simd_clone, class pass_omp_simd_clone)
9093 (pass_omp_simd_clone::gate, make_pass_omp_simd_clone): Move into...
9094 * omp-simd-clone.c: ... this new file.
9095 (simd_clone_vector_of_formal_parm_types): Make it static.
9096 * Makefile.in (OBJS): Add omp-simd-clone.o.
9097
9098 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
9099
9100 PR target/70662
9101 * config/i386/sse.md: Use proper memory operand modifiers.
9102
9103
9104 2016-04-15 Richard Biener <rguenther@suse.de>
9105 Alan Modra <amodra@gmail.com>
9106
9107 PR tree-optimization/70130
9108 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Detect
9109 when alignment stays not the same and no not use the realign
9110 scheme then.
9111
9112 2016-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
9113
9114 PR target/70669
9115 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
9116 direct move handlers for KFmode. Change TFmode handlers test from
9117 FLOAT128_IEEE_P to FLOAT128_VECTOR_P.
9118
9119 2016-04-14 Jakub Jelinek <jakub@redhat.com>
9120
9121 PR c++/70594
9122 * ipa-utils.h (polymorphic_ctor_dtor_p): New prototype.
9123 * ipa-polymorphic-call.c (polymorphic_ctor_dtor_p): New function.
9124 (inlined_polymorphic_ctor_dtor_block_p): Use it.
9125 * tree-ssa-live.c (remove_unused_scope_block_p): When
9126 in_ctor_dtor_block, avoid discarding not just BLOCKs with
9127 BLOCK_ABSTRACT_ORIGIN being FUNCTION_DECL, but even when
9128 block_ultimate_origin is FUNCTION_DECL.
9129 (remove_unused_locals): If current_function_decl is
9130 polymorphic_ctor_dtor_p, pass initial true to
9131 remove_unused_scope_block_p' is_ctor_dtor_block.
9132
9133 2016-04-14 Martin Sebor <msebor@redhat.com>
9134
9135 PR c++/69517
9136 PR c++/70019
9137 PR c++/70588
9138 * doc/extend.texi (Variable Length): Revert.
9139
9140 2016-04-14 Marek Polacek <polacek@redhat.com>
9141 Jan Hubicka <hubicka@ucw.cz>
9142
9143 PR c++/70029
9144 * tree.c (verify_type): Disable the canonical type of main variant
9145 check.
9146
9147 2016-04-14 Jason Merrill <jason@redhat.com>
9148
9149 * cfgexpand.c, expr.c: Revert previous change.
9150
9151 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
9152
9153 PR middle-end/70643
9154 * omp-low.c (lower_oacc_reductions): Check for TREE_CONSTANT
9155 when building a mem ref for the incoming reduction variable.
9156
9157 2016-04-14 Richard Biener <rguenther@suse.de>
9158
9159 PR tree-optimization/70614
9160 * tree-scalar-evolution.c (analyze_evolution_in_loop): Terminate
9161 loop if the evolution dropped to chrec_dont_know.
9162 (interpret_condition_phi): Likewise.
9163
9164 2016-04-14 Richard Biener <rguenther@suse.de>
9165
9166 PR tree-optimization/70623
9167 * tree-ssa-pre.c (changed_blocks): Make global ...
9168 (compute_antic): ... local here. Move and fix worklist
9169 handling here. Do not clear EDGE_DFS_BACK or call mark_dfs_back_edges.
9170 (compute_antic_aux): Add dumping for MAX assumed succs. Remove
9171 worklist handling, dump when ANTIC_IN changed.
9172 (compute_partial_antic_aux): Remove worklist handling.
9173 (init_pre): Do not compute post dominators. Add a comment about
9174 the CFG order chosen.
9175 (fini_pre): Do not free post dominators.
9176
9177 2016-04-13 Martin Sebor <msebor@redhat.com>
9178
9179 PR c++/69517
9180 PR c++/70019
9181 PR c++/70588
9182 * doc/extend.texi (Variable Length): Document C++ specifics.
9183
9184 2016-04-13 Jakub Jelinek <jakub@redhat.com>
9185
9186 PR c++/70641
9187 * ipa-pure-const.c (pass_nothrow::execute): Call maybe_clean_eh_stmt
9188 on all recursive call stmts. Return TODO_cleanup_cfg if any dead
9189 eh edges have been purged.
9190
9191 PR c++/70594
9192 * tree-sra.c (create_access_replacement,
9193 get_replaced_param_substitute): Set DECL_NAMELESS on repl if it
9194 gets fancy name.
9195 * tree-pretty-print.c (dump_fancy_name): New function.
9196 (dump_decl_name, dump_generic_node): Use it.
9197
9198 2016-04-13 Jason Merrill <jason@redhat.com>
9199
9200 * cfgexpand.c (pass_expand::execute): Handle attribute "abi warning".
9201 * expr.c (expand_expr_real_1): Likewise.
9202
9203 2016-04-13 Ilya Enkovich <ilya.enkovich@intel.com>
9204
9205 * config/i386/i386.md (kunpckhi): Swap operands.
9206 (kunpcksi): Likewise.
9207 (kunpckdi): Likewise.
9208 * config/i386/sse.md (vec_pack_trunc_qi): Likewise.
9209 (vec_pack_trunc_<mode>): Likewise.
9210
9211 2016-04-13 Jakub Jelinek <jakub@redhat.com>
9212
9213 PR debug/70628
9214 * explow.c (convert_memory_address_addr_space_1): Formatting fix.
9215
9216 PR middle-end/70633
9217 * gimplify.c (gimplify_init_constructor): Clear TREE_STATIC if
9218 gimplification turns some element into non-constant.
9219
9220 PR debug/70628
9221 * rtl.h (convert_memory_address_addr_space_1): New prototype.
9222 * explow.c (convert_memory_address_addr_space_1): No longer static,
9223 add NO_EMIT argument and don't call convert_modes if true, pass
9224 it down recursively, remove break after return.
9225 (convert_memory_address_addr_space): Adjust caller.
9226 * simplify-rtx.c (simplify_unary_operation_1): Call
9227 convert_memory_address_addr_space_1 instead of convert_memory_address,
9228 if it returns NULL, don't simplify.
9229
9230 2016-04-12 Eric Botcazou <ebotcazou@adacore.com>
9231
9232 PR target/70630
9233 * config/sparc/sparc.c (sparc_compute_frame_size): Add parentheses.
9234
9235 2016-04-12 Jakub Jelinek <jakub@redhat.com>
9236
9237 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
9238 Bump the upper SIMDLEN limits, so that if the return type or
9239 characteristic type if the return type is void can be passed in
9240 all available SSE2/AVX/AVX2/AVX512-F registers, the SIMDLEN is
9241 allowed.
9242
9243 2016-04-12 Michael Meissner <meissner@linux.vnet.ibm.com>
9244
9245 PR target/70640
9246 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2_internal):
9247 Do not use "=" constraint on an input constraint.
9248 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
9249 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
9250 (ieee_128bit_vsx_nabs<mode>2): Correct splitter so that it
9251 generates (neg (abs ...)) instead of (abs ...).
9252
9253 2016-04-12 Jakub Jelinek <jakub@redhat.com>
9254
9255 PR rtl-optimization/70596
9256 * lra-spills.c (spill_pseudos): Don't delete debug insns, instead
9257 just invalidate LRA data and reset them. Adjust dump wording.
9258
9259 2016-04-12 Martin Liska <mliska@suse.cz>
9260
9261 Revert
9262 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
9263
9264 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
9265 estimates here.
9266 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
9267 max_loop_iterations_int.
9268 (tree_unswitch_outer_loop): Likewise.
9269 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
9270 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
9271
9272 2016-04-12 Tom de Vries <tom@codesourcery.com>
9273
9274 PR tree-optimization/68756
9275 * graphite-isl-ast-to-gimple.c (copy_cond_phi_args): Use new_expr
9276 instead of new_name.
9277
9278 2016-04-12 Jakub Jelinek <jakub@redhat.com>
9279
9280 PR tree-optimization/70602
9281 * tree-sra.c (generate_subtree_copies): Don't write anything into
9282 constant pool decls.
9283
9284 * omp-low.c (lower_omp_target): Use GOMP_MAP_FIRSTPRIVATE_INT
9285 regardless whether there are depend clauses or not.
9286
9287 2016-04-11 Michael Meissner <meissner@linux.vnet.ibm.com>
9288
9289 PR target/70381
9290 * config/rs6000/rs6000.c (rs6000_opt_masks): Disable using the
9291 target attribute and pragma from changing the -mfloat128
9292 and -mfloat128-hardware options.
9293
9294 * doc/extend.texi (Additional Floating Types): Document PowerPC
9295 __float128 restrictions.
9296
9297 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
9298
9299 PR target/70133
9300 * config/aarch64/driver-aarch64.c
9301 (aarch64_get_extension_string_for_isa_flags): New.
9302 (arch_extension): Rename to...
9303 (aarch64_arch_extension): ...This.
9304 (ext_to_feat_string): Rename to...
9305 (aarch64_extensions): ...This.
9306 (aarch64_core_data): Keep track of architecture extension flags.
9307 (cpu_data): Rename to...
9308 (aarch64_cpu_data): ...This.
9309 (aarch64_arch_driver_info): Keep track of architecture extension
9310 flags.
9311 (get_arch_name_from_id): Rename to...
9312 (get_arch_from_id): ...This, change return type.
9313 (host_detect_local_cpu): Update and reformat for renames, handle
9314 extensions through common infrastructure.
9315
9316 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
9317
9318 PR target/70133
9319 * config/aarch64/aarch64-common.c (aarch64_option_extension): Keep
9320 track of a canonical flag name.
9321 (all_extensions): Likewise.
9322 (arch_to_arch_name): Also track extension flags enabled by the arch.
9323 (all_architectures): Likewise.
9324 (aarch64_parse_extension): Move to here.
9325 (aarch64_get_extension_string_for_isa_flags): Take a new argument,
9326 rework.
9327 (aarch64_rewrite_selected_cpu): Update for above change.
9328 * config/aarch64/aarch64-option-extensions.def: Rework the way flags
9329 are handled, such that the single explicit value enabled by an
9330 extension is kept seperate from the implicit values it also enables.
9331 * config/aarch64/aarch64-protos.h (aarch64_parse_opt_result): Move
9332 to here.
9333 (aarch64_parse_extension): New.
9334 * config/aarch64/aarch64.c (aarch64_parse_opt_result): Move from
9335 here to config/aarch64/aarch64-protos.h.
9336 (aarch64_parse_extension): Move from here to
9337 common/config/aarch64/aarch64-common.c.
9338 (aarch64_option_print): Update.
9339 (aarch64_declare_function_name): Likewise.
9340 (aarch64_start_file): Likewise.
9341 * config/aarch64/driver-aarch64.c (arch_extension): Keep track of
9342 the canonical flag for extensions.
9343 * config.gcc (aarch64*-*-*): Extend regex for capturing extension
9344 flags.
9345
9346 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
9347
9348 * config/aarch64/aarch64.h (AARCH64_FL_FOR_ARCH8_1): Also add
9349 AARCH64_FL_CRC.
9350
9351 2016-04-09 Tom de Vries <tom@codesourcery.com>
9352
9353 PR tree-optimization/68953
9354 * graphite-sese-to-poly.c (pdr_add_memory_accesses): Order accesses from
9355 first to last subscript.
9356
9357 2016-04-09 Jakub Jelinek <jakub@redhat.com>
9358
9359 PR tree-optimization/70586
9360 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Return false
9361 for any calls.
9362
9363 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
9364
9365 PR lto/70289
9366 PR ipa/70348
9367 PR tree-optimization/70373
9368 PR middle-end/70533
9369 PR middle-end/70534
9370 PR middle-end/70535
9371 * gimplify.c (gimplify_adjust_omp_clauses): Add or adjust data
9372 clauses for acc parallel reductions as necessary. Error on those
9373 that are private.
9374 * omp-low.c (scan_sharing_clauses): Don't install variables which
9375 are used in acc parallel reductions.
9376 (lower_rec_input_clauses): Remove dead code.
9377 (lower_oacc_reductions): Add support for reference reductions.
9378 (lower_reduction_clauses): Remove dead code.
9379 (lower_omp_target): Don't remap variables appearing in acc parallel
9380 reductions.
9381 * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): New macro.
9382
9383 2016-04-08 Jakub Jelinek <jakub@redhat.com>
9384
9385 PR middle-end/70593
9386 * tree-ssa-coalesce.c (build_ssa_conflict_graph): For stmt
9387 with multiple SSA_NAME defs, force the outputs other than first
9388 to be live before calling live_track_process_def on each output.
9389
9390 PR rtl-optimization/70574
9391 * fwprop.c (forward_propagate_and_simplify): Don't add
9392 REG_EQUAL note if DF_REF_REG (use) is a paradoxical subreg.
9393 (try_fwprop_subst): Don't add REG_EQUAL note if there are any
9394 paradoxical subregs within *loc.
9395
9396 2016-04-08 Thomas Schwinge <thomas@codesourcery.com>
9397
9398 * config/arc/arc.h (LINK_COMMAND_SPEC): Use gt to ignore
9399 -ftree-parallelize-loops={0,1}.
9400 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
9401 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
9402 * config/ia64/hpux.h (LIB_SPEC): Likewise.
9403 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
9404 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
9405
9406 2016-04-08 Maxim Ostapenko <m.ostapenko@samsung.com>
9407
9408 PR sanitizer/70541
9409 * asan.c (instrument_derefs): If we get unknown location, extract it
9410 with EXPR_LOCATION.
9411 (maybe_instrument_call): Instrument gimple_call's arguments if needed.
9412
9413 2016-04-08 Tom de Vries <tom@codesourcery.com>
9414
9415 * omp-low.c (lower_omp_target): Set TREE_NO_WARNING for oacc
9416 implicit firstprivate clause.
9417
9418 2016-04-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9419
9420 PR target/70566
9421 * config/arm/thumb2.md (tst + branch-> lsls + branch
9422 peephole below *orsi_not_shiftsi_si): Require that condition
9423 register is dead after the peephole.
9424 (second peephole after the above): Likewise.
9425
9426 2016-04-08 Alan Modra <amodra@gmail.com>
9427
9428 PR target/70117
9429 * builtins.c (fold_builtin_classify): For IBM extended precision,
9430 look at just the high-order double to test for NaN.
9431 (fold_builtin_interclass_mathfn): Similarly for Inf. For isnormal
9432 test just the high double for Inf but both doubles for subnormal
9433 limit.
9434
9435 2016-04-07 Jakub Jelinek <jakub@redhat.com>
9436
9437 * cgraph.h (struct cgraph_simd_clone): Add mask_mode field.
9438 * omp-low.c (simd_clone_init_simd_arrays, simd_clone_adjust): Handle
9439 node->simdclone->mask_mode != VOIDmode masks.
9440 (simd_clone_adjust_argument_types): Likewise. Move sc var definition
9441 earlier, use it instead of node->simdclone.
9442 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
9443 Set clonei->mask_mode.
9444
9445 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
9446
9447 PR c/70436
9448 * parser.c (cp_parser_iteration_statement): New parameter IF_P.
9449 Pass it through to cp_parser_already_scoped_statement.
9450 (cp_parser_already_scoped_statement): New parameter IF_P. Pass
9451 it through to cp_parser_statement.
9452 (cp_parser_statement): Pass IF_P through to
9453 cp_parser_iteration_statement.
9454 (cp_parser_pragma): Adjust call to
9455 cp_parser_iteration_statement.
9456
9457 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
9458
9459 PR c/70436
9460 * gimplify.c (gimplify_omp_ordered): Add explicit braces to
9461 resolve a future -Wparentheses warning.
9462 * omp-low.c (scan_sharing_clauses): Likewise.
9463 * tree-parloops.c (eliminate_local_variables): Likewise.
9464
9465 2016-04-06 Vladimir Makarov <vmakarov@redhat.com>
9466
9467 PR rtl-optimization/70398
9468 * lra-constraints.c (process_address_1): Check zero scale and code
9469 for reloading with zero scale.
9470
9471 2016-04-06 Uros Bizjak <ubizjak@gmail.com>
9472
9473 * config/i386/sse.md (shuffletype): Add V32HI and V4TI modes.
9474 (ssescalarsize): Add V8SF, V4SF, V4DF and V2DF modes.
9475
9476 2016-04-06 Jakub Jelinek <jakub@redhat.com>
9477
9478 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
9479 Add support for AVX512F clones, include them by default for
9480 exported OpenMP declare simd functions. For AVX2 allow simdlen 32
9481 and use it if charasteric type is 8-bit, for AVX512F allow simdlen
9482 up to 128.
9483
9484 PR middle-end/70550
9485 * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT): Define.
9486 * gimplify.c (gimplify_adjust_omp_clauses_1): Set it for implicit
9487 firstprivate clauses.
9488 * omp-low.c (lower_send_clauses): Set TREE_NO_WARNING for
9489 OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT !by_ref vars in task contexts.
9490 (lower_omp_target): Set TREE_NO_WARNING for
9491 non-addressable possibly uninitialized vars which are copied into
9492 addressable temporaries or copied for GOMP_MAP_FIRSTPRIVATE_INT.
9493
9494 2016-04-05 John David Anglin <danglin@gcc.gnu.org>
9495
9496 * config/pa/predicates.md (integer_store_memory_operand): Accept
9497 REG+D operands with a large offset when reload_in_progress is true.
9498 (floating_point_store_memory_operand): Likewise.
9499
9500 2016-04-05 Jakub Jelinek <jakub@redhat.com>
9501
9502 PR c++/70336
9503 * match.pd (nested int casts): Limit to GIMPLE.
9504
9505 2016-04-05 Jan Hubicka <hubicka@ucw.cz>
9506
9507 PR ipa/66223
9508 * ipa-devirt.c (maybe_record_node): Fix comment; use
9509 SANITIZE_UNREACHABLE instead of SANITIZE_UNDEFINED.
9510
9511 2016-04-05 Jakub Jelinek <jakub@redhat.com>
9512
9513 PR rtl-optimization/70542
9514 * ree.c (add_removable_extension): For VECTOR_MODE_P punt
9515 if there are any uses other than insn or debug insns.
9516
9517 2016-04-05 Marc Glisse <marc.glisse@inria.fr>
9518 Jakub Jelinek <jakub@redhat.com>
9519
9520 PR tree-optimization/70509
9521 * simplify-rtx.c (simplify_binary_operation_1) <case VEC_SELECT>:
9522 Shift HOST_WIDE_INT_1U instead of 1.
9523
9524 2016-04-05 Zdenek Sojka <zsojka@seznam.cz>
9525
9526 PR tree-optimization/70509
9527 * tree-ssa-forwprop.c (simplify_bitfield_ref): Use bitsize_int instead
9528 of the vector base type for index.
9529
9530 2016-04-05 Uros Bizjak <ubizjak@gmail.com>
9531
9532 PR target/70510
9533 * config/i386/sse.md (iptr): Add V64QI, V32HI, V16SI and V8DI modes.
9534
9535 2016-04-05 Richard Biener <rguenther@suse.de>
9536
9537 PR tree-optimization/70526
9538 * tree-sra.c (build_ref_for_offset): Use prev_base to
9539 extract the alias pointer type.
9540
9541 2016-04-05 Richard Biener <rguenther@suse.de>
9542
9543 * dse.c (struct store_info): Remove alias_set member.
9544 (struct read_info_type): Likewise.
9545 (clear_alias_group, clear_alias_mode_table, clear_alias_mode_holder,
9546 spill_deleted, clear_alias_set_lookup): Remove.
9547 (get_group_info): Remove dead base == NULL_RTX case.
9548 (dse_step0): Remove initialization of removed variables.
9549 (delete_dead_store_insn): Reomve alias set dumping.
9550 (free_read_records): Remove alias_set handling.
9551 (canon_address): Remove alias_set_out parameter.
9552 (record_store): Remove spill_alias_set, it's always zero.
9553 (check_mem_read_rtx): Likewise.
9554 (dse_step2): Rename from ...
9555 (dse_step2_nospill): ... this. Adjust.
9556 (scan_stores): Rename from ...
9557 (scan_stores_nospill): ... this.
9558 (scan_reads): Rename from ...
9559 (scan_reads_nospill): ... this.
9560 (scan_stores_spill, scan_reads_spill): Remove.
9561 (dse_step3_scan): Remove for_spills argument which is always false.
9562 (dse_step3): Likewise.
9563 (dse_step5): Rename from ...
9564 (dse_step5_nospill): ... this. Remove alias_set handling.
9565 (rest_of_handle_dse): Adjust.
9566
9567 2016-04-05 Jakub Jelinek <jakub@redhat.com>
9568
9569 PR target/70525
9570 * config/i386/sse.md (*andnot<mode>3): Simplify assertions.
9571 Use vpandn<ssemodesuffix> for V16SI/V8DImode, vpandnq for
9572 V32HI/V64QImode, don't use <mask_operand3_1>, fix up formatting.
9573 (*andnot<mode>3_mask): Remove insn with VI12_AVX512VL iterator.
9574
9575 2016-04-05 Richard Biener <rguenther@suse.de>
9576
9577 PR middle-end/70499
9578 * gimplify-me.c (gimple_regimplify_operands): Do not rewrite
9579 non-register type temporaries into SSA.
9580
9581 2016-04-04 Jan Hubicka <hubicka@ucw.cz>
9582
9583 PR ipa/66223
9584 * ipa-devirt.c (maybe_record_node): Do not optimize cxa_pure_virtual
9585 calls when sanitizing.
9586 (possible_polymorphic_call_target_p): Fix formatting.
9587
9588 2016-04-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9589 Jakub Jelinek <jakub@redhat.com>
9590
9591 PR middle-end/70457
9592 * tree-inline.c (estimate_num_insn): Use gimple_call_builtin_p
9593 to ensure a call statement is compatible with a built-in's
9594 prototype.
9595 * tree-ssa-math-opts.c (pass_optimize_windening_mul::execute):
9596 Likewise.
9597
9598 2016-04-04 Richard Biener <rguenther@suse.de>
9599
9600 PR rtl-optimization/70484
9601 * rtl.h (canon_output_dependence): Declare.
9602 * alias.c (canon_output_dependence): New function.
9603 * dse.c (record_store): Use canon_output_dependence rather
9604 than canon_true_dependence.
9605
9606 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
9607
9608 PR ipa/68881
9609 * cgraph.h (symtab_node::copy_visibility_from): New function.
9610 * symtab.c (symtab_node::copy_visibility_from): New function.
9611 * ipa-visibility.c (optimize_weakref): New function.
9612 (function_and_variable_visibility): Use it.
9613
9614 2016-04-04 Martin Liska <mliska@suse.cz>
9615
9616 PR hsa/70402
9617 * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Guard index
9618 value that is really in range handled by SBR instruction.
9619 * hsa-brig.c (emit_switch_insn): Do not emit unconditional jump.
9620 * hsa-dump.c (dump_hsa_insn_1): Do not dump default BB.
9621 * hsa.h (hsa_insn_sbr::m_default_bb): Remove field.
9622
9623 2016-04-03 Oleg Endo <olegendo@gcc.gnu.org>
9624
9625 PR target/70416
9626 PR target/67391
9627 * config/sh/sh.md (*addsi3): Allow pattern when reload_in_progress is
9628 set, but not for SP_REG operands.
9629
9630 2016-04-02 Martin Sebor <msebor@redhat.com>
9631
9632 PR c++/67376
9633 * fold-const.c (maybe_nonzero_address): New function.
9634 (fold_comparison): Call it. Fold equality and relational
9635 expressions involving null pointers.
9636 (tree_single_nonzero_warnv_p): Call maybe_nonzero_address.
9637
9638 2016-03-31 Evandro Menezes <e.menezes@samsung.com>
9639
9640 Fix the predicate "aarch64_simd_reg_or_zero" to correctly validate
9641 the "Y" constraint (scalar FP 0.0 immediate).
9642
9643 * config/aarch64/predicates.md (aarch64_simd_reg_or_zero):
9644 Add the "const_double" to the list of operand constraints.
9645
9646 2016-04-01 Jakub Jelinek <jakub@redhat.com>
9647
9648 PR rtl-optimization/70467
9649 * config/i386/i386.md (*add<dwi>3_doubleword, *sub<dwi>3_doubleword):
9650 If low word of the last operand is 0, just emit addition/subtraction
9651 for the high word.
9652
9653 2016-04-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9654
9655 PR target/70404
9656 * config/s390/s390.c (s390_expand_insv): Check for everything
9657 constant instead of just VOIDmode stuff.
9658
9659 2016-04-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9660
9661 PR target/70496
9662 * config/arm/arm.h (ASM_APP_OFF): Handle TARGET_ARM and TARGET_THUMB.
9663
9664 2016-04-01 Nathan Sidwell <nathan@acm.org>
9665
9666 * tree.def (TRY_CATCH_EXPR): Correct documentation.
9667
9668 2016-03-31 Vladimir Makarov <vmakarov@redhat.com>
9669
9670 PR rtl-optimization/70461
9671 * ira-color.c (allocno_copy_cost_saving): Use allocno class if it
9672 is necessary.
9673
9674 2016-03-31 Martin Liska <mliska@suse.cz>
9675
9676 PR hsa/70399
9677 * hsa-brig.c (hsa_op_immed::emit_to_buffer): Emit either
9678 a tree value or an immediate integer value to a buffer
9679 that is eventually copied to a BRIG section.
9680 (emit_immediate_operand): Call the function here.
9681 * hsa-dump.c (dump_hsa_immed): Remove checking assert.
9682 * hsa-gen.c (hsa_op_immed::hsa_op_immed): Remove initialization
9683 of class' fields that are removed.
9684 (hsa_op_immed::~hsa_op_immed): Remove deinitialization.
9685 * hsa.h (class hsa_op_immed): Remove m_brig_repr and
9686 m_brig_repr_size fields.
9687
9688 2016-03-31 Martin Liska <mliska@suse.cz>
9689
9690 PR hsa/70391
9691 * hsa-gen.c (hsa_function_representation::update_dominance): New
9692 function.
9693 (convert_addr_to_flat_segment): Likewise.
9694 (gen_hsa_memory_set): New alignment argument.
9695 (gen_hsa_ctor_assignment): Likewise.
9696 (gen_hsa_insns_for_single_assignment): Provide alignment
9697 to gen_hsa_ctor_assignment.
9698 (gen_hsa_insns_for_direct_call): Add new argument.
9699 (expand_lhs_of_string_op): New function.
9700 (expand_string_operation_builtin): Likewise.
9701 (expand_memory_copy): New function.
9702 (expand_memory_set): New function.
9703 (gen_hsa_insns_for_call): Use HOST_WIDE_INT.
9704 (convert_switch_statements): Change signature.
9705 (generate_hsa): Use a return value of the function.
9706 (pass_gen_hsail::execute): Do not call
9707 convert_switch_statements here.
9708 * hsa-regalloc.c (hsa_regalloc): Call update_dominance.
9709 * hsa.h (hsa_function_representation::m_modified_cfg): New flag.
9710 (hsa_function_representation::update_dominance): New function.
9711
9712 2016-03-31 Martin Liska <mliska@suse.cz>
9713
9714 PR hsa/70391
9715 * hsa-brig.c (emit_directive_variable): Emit alignment
9716 according to hsa_symbol::m_align.
9717 * hsa-dump.c (hsa_byte_alignment): Move the function to another file.
9718 (dump_hsa_symbol): Dump alignment of HSA symbols.
9719 * hsa-gen.c (get_symbol_for_decl): Set-up alignment of a symbol.
9720 (gen_hsa_addr_with_align): New function.
9721 (hsa_bitmemref_alignment): Use newly added function.
9722 (gen_hsa_insns_for_load): Likewise.
9723 (gen_hsa_insns_for_store): Likewise.
9724 (gen_hsa_memory_copy): New argument added.
9725 (gen_hsa_insns_for_single_assignment): Respect
9726 alignment for assignments processed via gen_hsa_memory_copy.
9727 (gen_hsa_insns_for_direct_call): Likewise.
9728 (gen_hsa_insns_for_return): Likewise.
9729 (gen_function_def_parameters): Set default alignment.
9730 * hsa.c (hsa_object_alignment): New function.
9731 (hsa_byte_alignment): Pasted function.
9732 * hsa.h (hsa_symbol::m_align): New field.
9733
9734 2016-03-31 Bin Cheng <bin.cheng@arm.com>
9735
9736 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Initialize
9737 scratch field for goto case.
9738
9739 2016-03-31 James Greenhalgh <james.greenhalgh@arm.com>
9740
9741 * config/arm/linux-elf.h (ASM_OUTPUT_DEF): Delete.
9742
9743 2016-03-31 Ilya Enkovich <enkovich.gnu@gmail.com>
9744
9745 PR target/70442
9746 * config/i386/i386.c (scalar_chain::convert_op): Fix description.
9747 (scalar_chain::convert_insn): Call convert_op for reg
9748 moves to handle undefined registers.
9749
9750 2016-03-31 Nathan Sidwell <nathan@acm.org>
9751
9752 PR c++/70393
9753 * varasm.c (output_constructor_regular_field): Flush bitfield earlier.
9754 Assert we don't want to move backwards.
9755
9756 2016-03-31 Kirill Yukhin <kirill.yukhin@intel.com>
9757
9758 PR target/70453
9759 * config/i386/sse.md (define_mode_attr shuffletype): Fix typo.
9760
9761 2016-03-31 Jakub Jelinek <jakub@redhat.com>
9762
9763 PR rtl-optimization/70460
9764 * ira.c (indirect_jump_optimize): Don't substitute LABEL_REF
9765 with operand from REG_LABEL_OPERAND, instead substitute
9766 SET_SRC or REG_EQUAL note content if it is a LABEL_REF.
9767 Don't do anything for REG_NON_LOCAL_GOTO jumps.
9768
9769 2016-03-31 Martin Liska <mliska@suse.cz>
9770
9771 * passes.c (execute_one_pass): Do not call
9772 todo_after for a discarded function.
9773
9774 2016-03-31 Bin Cheng <bin.cheng@arm.com>
9775
9776 * tree-ssa-loop-ivopts.c (struct comp_cost): New scrach field.
9777 (no_cost, infinite_cost): Initialize the new field.
9778 (get_computation_cost_at): Record setup cost.
9779 (determine_use_iv_cost_address): Skip cost computation for sub
9780 uses if we can estimate it without losing accuracy.
9781
9782 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
9783
9784 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
9785 estimates here.
9786 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
9787 max_loop_iterations_int.
9788 (tree_unswitch_outer_loop): Likewise.
9789 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
9790 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
9791
9792 2016-03-30 Richard Biener <rguenther@suse.de>
9793
9794 PR middle-end/70450
9795 * fold-const.c (extract_muldiv_1): Fix thinko in wide_int::from usage.
9796
9797 2016-03-30 Jakub Jelinek <jakub@redhat.com>
9798
9799 PR target/70421
9800 * config/i386/i386.c (ix86_expand_vector_set): Fix up argument order
9801 in gen_blendm expander.
9802
9803 2016-03-30 Nick Clifton <nickc@redhat.com>
9804
9805 PR target/62254
9806 * config/arm/arm.c (arm_reload_out_hi): Add code to handle the
9807 case where we are already provided with an SImode SUBREG.
9808
9809 2016-03-30 H.J. Lu <hongjiu.lu@intel.com>
9810
9811 PR target/70439
9812 * config/i386/i386.c (ix86_expand_epilogue): Properly check
9813 conflict between DRAP register and __builtin_eh_return.
9814
9815 2016-03-30 Michael Matz <matz@suse.de>
9816 Richard Biener <rguenther@suse.de>
9817
9818 PR ipa/12392
9819 * ipa-polymorphic-call.c (struct type_change_info): Change
9820 speculative to an unsigned allowing to limit the work we do.
9821 (csftc_abort_walking_p): New inline function..
9822 (check_stmt_for_type_change): Limit the number of may-defs
9823 skipped for speculative devirtualization to
9824 max-speculative-devirt-maydefs.
9825 * params.def (max-speculative-devirt-maydefs): New param.
9826 * doc/invoke.texi (--param max-speculative-devirt-maydefs): Document.
9827
9828 2016-03-30 Mike Stump <mrs@gcc.gnu.org>
9829
9830 PR target/63890
9831 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use when profiling
9832 and TARGET_MACHO.
9833
9834 2016-03-30 Patrick Palka <ppalka@gcc.gnu.org>
9835
9836 PR tree-optimization/59124
9837 * tree-vrp.c (register_edge_assert_for_2): For NAME != CST1
9838 where NAME = A +- CST2 add the assertion A != (CST1 -+ CST2).
9839
9840 2016-03-29 Jeff Law <law@redhat.com>
9841
9842 * tree-ssa-coalesce.c (struct ssa_conflicts): Fix typo in comment.
9843
9844 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
9845
9846 * tree-ssa-loop-ivcanon.c (try_peel_loop): Change type of peel
9847 to HOST_WIDE_INT.
9848
9849 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
9850
9851 * config/gnu.h (CPP_SPEC, LIB_SPEC): Don't override.
9852 * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt1.o instead of
9853 gcrt0.o if linking dynamically.
9854
9855 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
9856
9857 PR ipa/70283
9858 * ipa-devirt.c (methods_equal_p): New function.
9859 (compare_virtual_tables): Use it.
9860 * cgraph.h (symbol_table::symbol_suffix_separator): Declare.
9861 * cgraphclones.c (clone_function_name_1): Use
9862 symbol_table::symbol_suffix_separator.
9863 * coverage.c (build_var): Likewise.
9864 * symtab.c (symbol_table::symbol_suffix_separator): New.
9865
9866 2016-03-29 Jakub Jelinek <jakub@redhat.com>
9867
9868 PR rtl-optimization/70429
9869 * combine.c (simplify_shift_const_1): For ASHIFTRT don't optimize
9870 (cst1 >> count) >> cst2 into (cst1 >> cst2) >> count if
9871 mode != result_mode.
9872
9873 PR c++/70353
9874 * tree-inline.c (remap_decls): Don't add_local_decl if cfun is null.
9875
9876 PR tree-optimization/70405
9877 * ssa-iterators.h (num_imm_uses): Add missing braces.
9878
9879 2016-03-29 Vladimir Makarov <vmakarov@redhat.com>
9880
9881 PR rtl-optimization/68695
9882 * ira-color.c (allocno_copy_cost_saving): New.
9883 (improve_allocation): Use it.
9884
9885 2016-03-29 Richard Henderson <rth@redhat.com>
9886
9887 PR middle-end/70355
9888 * lower-subreg.c (simplify_subreg_concatn): Reject paradoxical subregs.
9889
9890 2016-03-29 Richard Biener <rguenther@suse.de>
9891
9892 PR middle-end/70424
9893 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Always
9894 use alignment returned by get_pointer_alignment_1 if it is
9895 bigger than BITS_PER_UNIT.
9896 * builtins.c (get_pointer_alignment_1): Do not return true
9897 for alignment extracted from SSA info.
9898
9899 2016-03-28 James Bowman <james.bowman@ftdichip.com>
9900
9901 * config/ft32/ft32.opt (mnodiv): New.
9902 * config/ft32/ft32.md (*divsi3, *modsi3): Qualify with TARGET_NODIV.
9903 * doc/invoke.texi (FT32 Options -mnodiv): New.
9904
9905 2016-03-28 Kirill Yukhin <kirill.yukhin@intel.com>
9906
9907 PR target/70406
9908 * config/i386/i386.md (define_split, andn): Fix modes.
9909
9910 2016-03-26 Richard Biener <rguenther@suse.de>
9911 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9912
9913 PR ipa/70366
9914 * ipa-inline-transform.c (inline_call): Pass opts_for_fn (to->decl)
9915 instead of
9916 TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (to->decl))
9917 as 2nd argument to cl_optimization_restore().
9918
9919 2016-03-25 Richard Henderson <rth@redhat.com>
9920
9921 PR target/70120
9922 * config/aarch64/aarch64.c (aarch64_asm_output_pool_epilogue): New.
9923 * config/aarch64/aarch64-protos.h: Declare it.
9924 * config/aarch64/aarch64.h (ASM_OUTPUT_POOL_EPILOGUE): New.
9925
9926 2016-03-25 Alan Modra <amodra@gmail.com>
9927
9928 PR target/70052
9929 * config/rs6000/constraints.md (j): Simplify.
9930 * config/rs6000/predicates.md (easy_fp_constant): Exclude
9931 decimal float 0.D.
9932 * config/rs6000/rs6000.md (zero_fp): New mode_attr.
9933 (mov<mode>_hardfloat, mov<mode>_hardfloat32, mov<mode>_hardfloat64,
9934 mov<mode>_64bit_dm, mov<mode>_32bit): Use zero_fp in place of j
9935 in all constraint alternatives.
9936 (movtd_64bit_nodm): Delete "j" constraint alternative.
9937
9938 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
9939
9940 * tree-ssa-propagate.c: Enhance docs for
9941 SSA_PROP_NOT_INTERESTING.
9942
9943 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
9944
9945 * doc/extend.texi: Fix typo in documentation to pure attribute.
9946
9947 2016-03-24 John David Anglin <danglin@gcc.gnu.org>
9948
9949 PR target/70319
9950 * config/pa/pa.md (bswapdi2): Use a scratch register.
9951
9952 2016-03-24 Richard Henderson <rth@redhat.com>
9953
9954 PR middle-end/69845
9955 * fold-const.c (extract_muldiv_1): Correct test for multiplication
9956 overflow.
9957
9958 2016-03-24 Uros Bizjak <ubizjak@gmail.com>
9959
9960 * config/i386/i386.md (*anddi3_doubleword): Generate AND insn
9961 using ix86_expand_binary_operator instead of gen_andsi3.
9962
9963 2016-03-24 Richard Biener <rguenther@suse.de>
9964
9965 PR tree-optimization/70396
9966 * tree-vect-stmts.c (vectorizable_comparison): Use
9967 get_vectype_for_scalar_type.
9968
9969 2016-03-24 Richard Biener <rguenther@suse.de>
9970
9971 PR middle-end/70370
9972 * gimplify.c (gimplify_asm_expr): Handle !allows_mem outputs
9973 with register bases.
9974
9975 2016-03-24 Richard Biener <rguenther@suse.de>
9976
9977 PR tree-optimization/70372
9978 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Use
9979 build_all_ones_cst to also handle vector types correctly.
9980
9981 2016-03-23 Michael Meissner <meissner@linux.vnet.ibm.com>
9982
9983 PR target/70381
9984 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Do not set
9985 -mfloat128 here.
9986
9987 2016-03-23 Marek Polacek <polacek@redhat.com>
9988
9989 PR c++/69884
9990 * doc/invoke.texi: Document -Wignored-attributes.
9991
9992 2016-03-23 Bin Cheng <bin.cheng@arm.com>
9993
9994 PR tree-optimization/69042
9995 * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND): Increase the
9996 parameter from 30 to 40.
9997
9998 2016-03-23 Bin Cheng <bin.cheng@arm.com>
9999
10000 PR tree-optimization/69042
10001 * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Add IV cand
10002 for use with constant offset stripped in base.
10003
10004 2016-03-23 Richard Biener <rguenther@suse.de>
10005
10006 PR middle-end/70251
10007 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Adjust
10008 mode compatibility check.
10009 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
10010
10011 2016-03-23 Jeff Law <law@redhat.com>
10012
10013 PR tree-optimization/64058
10014 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field
10015 CONFLICT_COUNT.
10016 (struct ssa_conflicts): Move up earlier in the file.
10017 (conflicts_, var_map_): New static variables.
10018 (initialize_conflict_count): New function to initialize the
10019 CONFLICT_COUNT field for each conflict pair.
10020 (compare_pairs): Lazily initialize the conflict count and use it
10021 as the first tie-breaker.
10022 (sort_coalesce_list): Add new arguments conflicts, map. Initialize
10023 and wipe conflicts_ and map_ around the call to qsort. Remove
10024 special case for 2 coalesce pairs.
10025 * bitmap.c (bitmap_count_unique_bits): New function.
10026 (bitmap_count_bits_in_word): New function, extracted from
10027 bitmap_count_bits.
10028 (bitmap_count_bits): Use bitmap_count_bits_in_word.
10029 * bitmap.h (bitmap_count_unique_bits): Declare it.
10030
10031 2016-03-23 Ilya Enkovich <enkovich.gnu@gmail.com>
10032
10033 PR target/69917
10034 * config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Follow
10035 transparent alias chain for decl assembler name.
10036 * config/sol2.c (solaris_assemble_visibility): Likewise.
10037
10038 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10039
10040 * config/arm/arm1020e.md (1020call_op): Reduce reservation
10041 duration.
10042 (v10_fdivs): Likewise.
10043 (v10_fdivd): Likewise.
10044
10045 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10046
10047 PR driver/70132
10048 * config/arm/driver-arm.c (host_detect_local_cpu): Reorder exit logic
10049 to not call fclose twice on file.
10050
10051 2016-03-23 Jakub Jelinek <jakub@redhat.com>
10052
10053 PR tree-optimization/70354
10054 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
10055 oprnd0 is wider than oprnd1 and there is a cast from the wider
10056 type to oprnd1, mask it with the mask of the narrower type.
10057
10058 PR target/70321
10059 * config/i386/i386.md (*anddi3_doubleword, *<code>di3_doubleword):
10060 Optimize TARGET_STV splitters, if high or low word of last argument
10061 is 0 or -1.
10062
10063 2016-03-22 Jeff Law <law@redhat.com>
10064
10065 PR target/70232
10066 tree-ssa-threadbackward.c
10067 (fsm_find_control_statement_thread_paths): Correctly distinguish
10068 between old style jump threads vs FSM jump threads.
10069
10070 2016-03-22 Ilya Enkovich <enkovich.gnu@gmail.com>
10071
10072 PR target/70302
10073 * config/i386/i386.c (scalar_chain::convert_op): Support
10074 uninitialized register usage case.
10075
10076 2016-03-22 Richard Biener <rguenther@suse.de>
10077
10078 PR middle-end/70251
10079 * genmatch.c (gen_transform): Adjust last parameter to a three-state
10080 int...
10081 (capture::gen_transform): ... to change behavior when substituting
10082 a condition into cond or not-cond expr context.
10083 (dt_simplify::gen_1): Adjust.
10084 * gimple-match-head.c: Include gimplify.h for unshare_expr.
10085 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Revert
10086 last change and instead change to
10087 A + (B vcmp C ? 1 : 0) -> A - (B vcmp C ? -1 : 0).
10088 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
10089
10090 2016-03-22 Anthony Green <green@moxielogic.com>
10091
10092 * config/moxie/moxiebox.h (CC1_SPEC): Define. Fix endianness
10093 issue for moxiebox targets.
10094 (CC1PLUS_SPEC): Ditto.
10095
10096 2016-03-22 Richard Biener <rguenther@suse.de>
10097
10098 PR middle-end/70333
10099 * fold-const.c (extract_muldiv_1): Properly perform multiplication
10100 in the wide type.
10101
10102 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
10103
10104 * config/i386/i386.c (def_builtin): Remove duplicated functionality.
10105
10106 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
10107
10108 PR target/70325
10109 * config/i386/i386.c (def_builtin): Handle
10110 OPTION_MASK_ISA_AVX512VL to be and-ed with other
10111 bits.
10112 (const struct builtin_description bdesc_special_args[]):
10113 Remove duplicate ISA bits.
10114
10115 2016-03-22 Jakub Jelinek <jakub@redhat.com>
10116
10117 PR target/70329
10118 * config/i386/i386.c (ix86_expand_vecop_qihi): Don't bother computing
10119 d.perm[i] for i >= d.nelt. If not full_interleave, compute d.perm[i]
10120 in a way that works also for AVX512BW.
10121
10122 PR target/70300
10123 * config/i386/i386.md (cvtsd2ss splitter): Unpack in destination
10124 instead of source if operands[1] is xmm16 and above and
10125 !TARGET_AVX512VL. Use avx512f_vec_dupv16sf_1 instead of
10126 vec_interleave_lowv4sf if we need to unpack xmm16 and above.
10127
10128 PR c++/70295
10129 * gimplify.c (gimplify_modify_expr): Call gimple_set_no_warning
10130 on assign if (*from_p) is a comparison, set it to
10131 TREE_NO_WARNING (*from_p).
10132
10133 2016-03-21 Jakub Jelinek <jakub@redhat.com>
10134
10135 PR middle-end/70326
10136 * lra.c (restore_scratches): Ignore deleted insns.
10137
10138 2016-03-21 Marc Glisse <marc.glisse@inria.fr>
10139 Jakub Jelinek <jakub@redhat.com>
10140
10141 PR tree-optimization/70317
10142 * match.pd (cmp @0 @0): Pass @0 instead of TYPE_MODE (TREE_TYPE (@0))
10143 to HONOR_NANS.
10144
10145 2016-03-21 Uros Bizjak <ubizjak@gmail.com>
10146
10147 PR target/70327
10148 * config/i386/i386.md (movxi): Use ix86_expand_vector_move instead
10149 of ix86_expand_move.
10150 (movoi): Ditto.
10151 (movti): Use general_operand for operand 1 predicate.
10152
10153 2016-03-21 Martin Liska <mliska@suse.cz>
10154
10155 * hsa-dump.c (dump_hsa_insn_1): dump default branch of SBR
10156 insns.
10157 (dump_hsa_symbol): Dump BRIG offset of hsa_symbols.
10158
10159 2016-03-21 Martin Liska <mliska@suse.cz>
10160
10161 PR ipa/70306
10162 * ipa-icf.c (sem_function::parse): Skip static
10163 constructors and destructors.
10164
10165 2016-03-21 Jakub Jelinek <jakub@redhat.com>
10166
10167 PR target/70296
10168 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If IDENT is
10169 function-like macro, peek following token(s) if it is followed
10170 by CPP_OPEN_PAREN token with optional padding in between, and
10171 if not, don't treat it like a macro.
10172
10173 2016-03-21 Thomas Schwinge <thomas@codesourcery.com>
10174 Alexander Monakov <amonakov@ispras.ru>
10175
10176 * config/nvptx/nvptx.c (nvptx_option_override): Don't emit sorry
10177 for the stabs debug format.
10178
10179 2016-03-21 Richard Biener <rguenther@suse.de>
10180
10181 PR tree-optimization/70310
10182 * tree-vect-generic.c (expand_vector_condition): Fold the built
10183 condition.
10184
10185 2016-03-21 Kirill Yukhin <kirill.yukhin@intel.com>
10186
10187 PR target/70293
10188 * config/i386/sse.md: (define_insn "*vec_dup<mode>"/AVX2):
10189 Block third alternative for AVX-512VL target,
10190
10191 2016-03-21 Martin Liska <mliska@suse.cz>
10192
10193 PR hsa/70234
10194 * hsa-brig.c (emit_function_directives): Mark unemitted
10195 global variables for emission.
10196 * hsa-gen.c (hsa_symbol::hsa_symbol): Initialize a new flag.
10197 (get_symbol_for_decl): Likewise.
10198 * hsa.h (struct hsa_symbol): New flag.
10199
10200 2016-03-21 Richard Biener <rguenther@suse.de>
10201
10202 PR tree-optimization/70288
10203 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Make sure
10204 we do not estimate unsimplified all-constant conditionals or
10205 switches as optimized away.
10206
10207 2016-03-21 Andrey Belevantsev <abel@ispras.ru>
10208
10209 PR rtl-optimization/69102
10210 * sched-deps.c (sched_analyze_insn): Do not set last_args_size field
10211 when we have a readonly dependency context.
10212
10213 2016-03-18 Jeff Law <law@redhat.com>
10214
10215 PR rtl-optimization/70263
10216 * ira.c (memref_used_between_p): Assert we found END in the insn chain.
10217 (update_equiv_regs): When trying to move a store to after the insn
10218 that sets the source of the store, make sure the store occurs after
10219 the insn that sets the source of the store. When successful note
10220 the REG_EQUIV note created in the dump file.
10221
10222 2016-03-16 David Wohlferd <dw@LimeGreenSocks.com>
10223 Bernd Schmidt <bschmidt@redhat.com>
10224
10225 * doc/extend.texi: Document more potential problems with basic asms.
10226
10227 2016-03-18 Bernd Schmidt <bschmidt@redhat.com>
10228
10229 PR rtl-optimization/70278
10230 * lra-constraints.c (split_reg): Handle the case where biggest_mode is
10231 VOIDmode.
10232
10233 2016-03-18 Jason Merrill <jason@redhat.com>
10234
10235 * calls.c (load_register_parameters): Fix zero size sibcall logic.
10236
10237 2016-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
10238
10239 * config/i386/sse.md: Use vpbroadcastq for broadcasting DF
10240 values to 128b regs.
10241
10242 2016-03-18 Ilya Enkovich <enkovich.gnu@gmail.com>
10243
10244 PR tree-optimization/70252
10245 * tree-vect-stmts.c (supportable_widening_operation): Check resulting
10246 boolean vector has a proper number of elements.
10247 (supportable_narrowing_operation): Likewise.
10248
10249 2016-03-18 Tom de Vries <tom@codesourcery.com>
10250
10251 PR ipa/70269
10252 * cgraph.c (cgraph_node::get_body): Set dump_file to NULL after save.
10253
10254 2016-03-18 Jakub Jelinek <jakub@redhat.com>
10255
10256 * reload1.c (emit_input_reload_insns): Use simplify_replace_rtx
10257 instead of replace_rtx for DEBUG_INSNs.
10258
10259 2016-03-18 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
10260
10261 * config/i386/znver1.md : Fix latencies of FP/SSE/AVX
10262 load type reservations.
10263
10264 2016-03-17 John David Anglin <danglin@gcc.gnu.org>
10265
10266 PR target/70188
10267 * config/pa/constraints.md: Revert 2015-02-13 change. Use
10268 define_constraint for "Q" and "T" constraints.
10269
10270 2016-03-17 Evandro Menezes <e.menezes@samsung.com>
10271
10272 Tweak the pipeline model for Exynos M1
10273
10274 * config/aarch64/aarch64.c (exynosm1_tunings): Enable weak prefetching
10275 model.
10276
10277 2016-03-17 David Malcolm <dmalcolm@redhat.com>
10278
10279 PR c/70264
10280 * diagnostic-show-locus.c (compatible_locations_p): Handle the case
10281 where one or both locations aren't within a line_map.
10282
10283 2016-03-17 H.J. Lu <hongjiu.lu@intel.com>
10284
10285 PR driver/70192
10286 * opts.c (finish_options): Don't set flag_pie to the default if
10287 -fpic, -fPIC, -fno-pic or -fno-PIC is used. Set flag_pic to 0
10288 if it is -1.
10289
10290 2016-03-17 Joern Rennecke <joern.rennecke@embecosm.com>
10291
10292 * config/i386/i386.md (*movv4qicc_insn+1..36): Pass
10293 true as ALL_REGS argument to replace_rtx.
10294
10295 2016-03-17 Richard Biener <rguenther@suse.de>
10296
10297 PR debug/70271
10298 * dwarf2out.c (dwarf2out_early_finish): Process deferred_asm_name
10299 last.
10300
10301 2016-03-17 Jakub Jelinek <jakub@redhat.com>
10302
10303 PR target/70245
10304 * rtl.h (replace_rtx): Add ALL_REGS argument.
10305 * rtlanal.c (replace_rtx): Likewise. If true, use REGNO
10306 equality and assert mode is the same, instead of just rtx pointer
10307 equality.
10308 * config/i386/i386.md (mov + arithmetics with load peephole): Pass
10309 true as ALL_REGS argument to replace_rtx.
10310
10311 2016-03-17 Ilya Enkovich <enkovich.gnu@gmail.com>
10312
10313 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Apply
10314 for boolean vector with vector mode only.
10315 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
10316
10317 2016-03-17 Nick Clifton <nickc@redhat.com>
10318
10319 PR target/70162
10320 * config/rx/rx.c (rx_print_integer): Print negative constants in
10321 decimal.
10322
10323 2016-03-17 Jakub Jelinek <jakub@redhat.com>
10324
10325 PR target/70261
10326 * rtlanal.c (replace_rtx): Revert 2016-03-16 change.
10327
10328 2016-03-16 Richard Henderson <rth@redhat.com>
10329 Richard Biener <rguenth@suse.de>
10330
10331 PR middle-end/70240
10332 PR middle-end/68215
10333 PR tree-opt/68714
10334 * gimplify.c (gimplify_expr) [VEC_COND_EXPR]: Gimplify the
10335 first operand as is_gimple_condexpr.
10336
10337 PR middle-end/70240
10338 PR middle-end/68215
10339 Revert r231575
10340 2015-12-11 Eric Botcazou <ebotcazou@adacore.com>
10341 * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
10342 Do not gimplify the result.
10343 (do_unop): Adjust call to tree_vec_extract.
10344 (do_binop): Likewise.
10345 (do_compare): Likewise.
10346 (do_plus_minus): Likewise.
10347 (do_negate): Likewise.
10348 (expand_vector_condition): Likewise.
10349 (do_cond): Likewise.
10350
10351 2016-03-16 Richard Henderson <rth@redhat.com>
10352
10353 PR target/70048
10354 * config/aarch64/aarch64.c (virt_or_elim_regno_p): New.
10355 (aarch64_classify_address): Use it.
10356 (aarch64_legitimize_address): Force all subexpressions of PLUS
10357 into registers. Simplify as (sfp+const)+reg or (reg+reg)+const.
10358
10359 2016-03-16 Jakub Jelinek <jakub@redhat.com>
10360 Richard Biener <rguenth@suse.de>
10361
10362 PR target/70245
10363 * rtlanal.c (replace_rtx): For REG, if from is a REG,
10364 return to even if only REGNO is equal, and assert
10365 mode is the same.
10366
10367 2016-03-11 Jeff Law <law@redhat.com>
10368
10369 PR rtl-optimization/70224
10370 * reorg.c (relax_delay_slots): Pass right argument to CROSSING_JUMP_P.
10371
10372 2016-03-16 Richard Henderson <rth@redhat.com>
10373
10374 PR middle-end/70199
10375 * function.h (struct function): Add has_forced_label_in_static.
10376 * gimplify.c (force_labels_r): Set it.
10377 * lto-streamer-in.c (input_struct_function_base): Read it.
10378 * lto-streamer-out.c (output_struct_function_base): Write it.
10379 * tree-inline.c (has_label_address_in_static_1): Remove.
10380 (copy_forbidden): Remove fndecl parameter; test
10381 has_forced_label_in_static.
10382 (inline_forbidden_p): Update call to copy_forbidden.
10383 (tree_versionable_function_p): Likewise.
10384 * ipa-chkp.c (chkp_instrumentable_p): Likewise.
10385 (chkp_versioning): Likewise.
10386 * tree-inline.h (copy_forbidden): Update decl.
10387
10388 2016-03-16 Marek Polacek <polacek@redhat.com>
10389
10390 PR c/70093
10391 * cgraphunit.c (cgraph_node::expand_thunk): Also build call to the
10392 function being thunked if the result type doesn't have fixed size.
10393 * gimplify.c (gimplify_modify_expr): Also set LHS if the result type
10394 doesn't have fixed size.
10395
10396 2016-03-16 Bin Cheng <bin.cheng@arm.com>
10397
10398 * tree-vect-loop.c (vect_analyze_loop_2): Fix wrong dump info by
10399 reporting malformed loop nest.
10400
10401 2016-03-16 Tom de Vries <tom@codesourcery.com>
10402
10403 PR lto/70187
10404 * ipa-devirt.c (possible_polymorphic_call_targets): Move
10405 nodes.length () == 1 test to before first nodes[0] access.
10406
10407 2016-03-16 Tom de Vries <tom@codesourcery.com>
10408
10409 PR tree-optimization/68715
10410 * graphite-scop-detection.c (scop_detection::merge_sese): Add missing
10411 single_pred_p test.
10412
10413 2016-03-16 Tom de Vries <tom@codesourcery.com>
10414
10415 PR tree-optimization/68809
10416 * graphite-scop-detection.c (same_close_phi_node): Test if result types
10417 are the same.
10418
10419 2016-03-16 Carlos O'Donell <carlos@redhat.com>
10420 Sandra Loosemore <sandra@codesourcery.com>
10421
10422 * doc/extend.texi (Common Function Attributes): Describe ifunc impact
10423 on leaf attribute. Mention ELF interposition problems.
10424
10425 2016-03-16 Alan Modra <amodra@gmail.com>
10426
10427 PR rtl-optimization/69195
10428 PR rtl-optimization/47992
10429 * ira.c (indirect_jump_optimize): Ignore artificial defs.
10430 Add comments.
10431
10432 2016-03-15 Eric Botcazou <ebotcazou@adacore.com>
10433
10434 PR bootstrap/69513
10435 * dwarf2out.c (flush_limbo_die_list): Really flush the limbo list.
10436
10437 2016-03-15 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
10438
10439 * config/avr/avr.md (rotl<mode>3): Set mode for operand 2.
10440
10441 2016-03-15 Jakub Jelinek <jakub@redhat.com>
10442
10443 PR rtl-optimization/70222
10444 * combine.c (simplify_shift_const_1): For A >> B >> C LSHIFTRT
10445 optimization if mode is different from result_mode, queue up masking
10446 of the result in outer_op. Formatting fix.
10447
10448 PR middle-end/70239
10449 * tree-ssa-sccvn.c (VN_INFO_GET): Use safe_grow_cleared instead
10450 of safe_grow.
10451
10452 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
10453
10454 PR rtl-optimization/69032
10455 * sel-sched-ir.c (get_seqno_by_preds): Include both insn and head when
10456 looping backwards over basic block insns.
10457
10458 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
10459
10460 PR target/66660
10461 * sel-sched-ir.c (merge_expr): Avoid changing the speculative pattern
10462 to non-speculative when propagating trap bits.
10463
10464 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
10465
10466 PR rtl-optimization/63384
10467 * sel-sched.c (invoke_aftermath_hooks): Do not decrease issue_more on
10468 DEBUG_INSN_P insns.
10469
10470 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
10471
10472 PR target/64411
10473 * sched-deps.c (get_implicit_reg_pending_clobbers): New function,
10474 factored out from ...
10475 (sched_analyze_insn): ... here.
10476 * sched-int.h (get_implicit_reg_pending_clobbers): Declare it.
10477 * sel-sched-ir.c (setup_id_implicit_regs): New function, use
10478 get_implicit_reg_pending_clobbers in it.
10479 (setup_id_reg_sets): Use setup_id_implicit_regs.
10480 (deps_init_id): Ditto.
10481
10482 2016-03-15 Tom de Vries <tom@codesourcery.com>
10483
10484 PR ipa/70161
10485 * cgraph.c (cgraph_node::get_body): Save, reset and restore
10486 dump_file_name.
10487 * passes.c (execute_one_ipa_transform_pass): Add missing argument to
10488 execute_function_dump.
10489 (execute_one_pass): Don't dump function if it will be dumped after ipa
10490 transform.
10491
10492 2016-03-15 Segher Boessenkool <segher@kernel.crashing.org>
10493
10494 * genrecog.c (match_pattern_2): If pred is NULL don't call
10495 safe_predicate_mode on it.
10496
10497 2016-03-14 Jakub Jelinek <jakub@redhat.com>
10498
10499 PR middle-end/70219
10500 * lra-constraints.c (delete_move_and_clobber): Change assertion
10501 to also allow dregno == 0.
10502
10503 2016-03-14 Richard Henderson <rth@redhat.com>
10504
10505 PR tree-opt/68714
10506 * tree-ssa-reassoc.c (ovce_extract_ops, optimize_vec_cond_expr): New.
10507 (can_reassociate_p): Allow ANY_INTEGRAL_TYPE_P.
10508 (reassociate_bb): Use optimize_vec_cond_expr; avoid
10509 optimize_range_tests, attempt_builtin_copysign and attempt_builtin_powi
10510 on vectors.
10511
10512 2016-03-14 Bernd Schmidt <bschmidt@redhat.com>
10513
10514 PR target/70083
10515 * lra-lives.c (process_bb_lives): Also update biggest mode for hard
10516 regs.
10517 (lra_create_live_ranges_1): initialize hard register biggest_mode to
10518 VOIDmode.
10519 * lra-constraints.c (split_reg): For hard regs, try to find the
10520 biggest single-register mode used in the function.
10521
10522 2016-03-14 Richard Biener <rguenther@suse.de>
10523
10524 PR tree-optimization/56365
10525 * tree-ssa-phiopt.c (minmax_replacement): Handle alternate
10526 constants to compare against.
10527
10528 2016-03-14 Segher Boessenkool <segher@kernel.crashing.org>
10529
10530 PR target/70098
10531 * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
10532 *ctr<mode>_internal5, *ctr<mode>_internal6): Also allow "d" as output.
10533 (define_split for the GPR case): Use int_reg_operand instead of
10534 gpc_reg_operand for the output.
10535
10536 2016-03-14 Tom de Vries <tom@codesourcery.com>
10537
10538 PR tree-optimization/70045
10539 * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard): Unshare
10540 create_empty_if_region_on_edge argument.
10541
10542 2016-03-13 Eric Botcazou <ebotcazou@adacore.com>
10543
10544 * config/arm/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Define.
10545 (STACK_CHECK_PROTECT): Likewise.
10546 * config/i386/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
10547 (STACK_CHECK_PROTECT): Likewise.
10548 * config/rs6000/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
10549 (STACK_CHECK_PROTECT): Likewise.
10550 * config/rs6000/vxworksae.h (STACK_CHECK_PROTECT): Likewise.
10551 * config/sparc/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
10552 (STACK_CHECK_PROTECT): Likewise.
10553
10554 2016-03-12 Andrey Belevantsev <abel@ispras.ru>
10555
10556 PR rtl-optimization/69307
10557 * sel-sched.c (choose_best_pseudo_reg): Properly check for hard
10558 registers in modes that span more than one register.
10559
10560 2016-03-12 Vladimir Makarov <vmakarov@redhat.com>
10561
10562 PR target/69614
10563 * lra-constraints.c (delete_move_and_clobber): New.
10564 (remove_inheritance_pseudos): Use it.
10565
10566 2016-03-12 Eric Botcazou <ebotcazou@adacore.com>
10567
10568 PR ada/70017
10569 * calls.c (emit_library_call_value_1): Clear the ECF_NOTHROW flag if
10570 the libcall is LCT_THROW.
10571 * explow.c (probe_stack_range): Pass LCT_THROW to emit_library_call
10572 for the checking routine.
10573
10574 2016-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
10575
10576 PR target/70131
10577 * config/rs6000/rs6000.md (round32<mode>2_fprs): Do not do the
10578 optimization if we have direct move.
10579 (roundu32<mode>2_fprs): Likewise.
10580
10581 2016-03-11 Bernd Schmidt <bschmidt@redhat.com>
10582
10583 PR target/70123
10584 * lra-remat.c (operand_to_remat): Disallow hard regs in the value t
10585 be rematerialized.
10586 (reg_overlap_for_remat_p): Renamed from input_regno_present_p.
10587 Arguments swapped. All callers changed. Take reg_renumber into
10588 account, and Calculate and compare register ranges for hard regs.
10589
10590 2016-03-11 Jeff Law <law@redhat.com>
10591
10592 PR tree-optimization/70190
10593 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
10594 Handle cases where we can not extract the taken edge, even though we
10595 found a constant value.
10596
10597 PR tree-optimization/64058
10598 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field INDEX.
10599 (num_coalesce_pairs): Move up earlier in file.
10600 (find_coalesce_pair): Initialize the INDEX field for each pair
10601 discovered.
10602 (compare_pairs): No longer sort on the elements in each pair.
10603 Instead break ties with the index of the coalesce pair.
10604
10605 2016-03-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10606
10607 PR target/70002
10608 * config/aarch64/aarch64-protos.h
10609 (aarch64_save_restore_target_globals): New prototype.
10610 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse):
10611 Call the above when popping pragma.
10612 * config/aarch64/aarch64.c (aarch64_save_restore_target_globals):
10613 New function.
10614 (aarch64_set_current_function): Rewrite using the above.
10615
10616 2016-03-11 Jakub Jelinek <jakub@redhat.com>
10617
10618 PR tree-optimization/70177
10619 * gimple-expr.h (extract_ops_from_tree_1): Renamed to ...
10620 (extract_ops_from_tree): ... this. In the 2 argument
10621 overload remove _1 suffix.
10622 * gimple-expr.c (extract_ops_from_tree_1): Renamed to ...
10623 (extract_ops_from_tree): ... this.
10624 * gimple.c (gimple_build_assign, gimple_assign_set_rhs_from_tree):
10625 Adjust callers.
10626 * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
10627 * tree-ssa-forwprop.c (defcodefor_name): Call 3 operand
10628 extract_ops_from_tree instead of 2 operand one.
10629
10630 2016-03-11 Alan Lawrence <alan.lawrence@arm.com>
10631
10632 PR tree-optimization/70013
10633 * tree-sra.c (analyze_access_subtree): Also set grp_unscalarized_data
10634 for constant-pool entries.
10635
10636 2016-03-11 Jakub Jelinek <jakub@redhat.com>
10637
10638 PR rtl-optimization/70174
10639 * expmed.c (store_bit_field_using_insv): Use gen_lowpart_if_possible
10640 followed by gen_lowpart on force_reg instead of just gen_lowpart.
10641
10642 PR tree-optimization/70169
10643 * tree-ssa-loop.c (gen_lsm_tmp_name): Handle FUNCTION_DECL and
10644 LABEL_DECL like VAR_DECL. Emit nothing instead of gcc_unreachable
10645 for unknown codes.
10646
10647 2016-03-11 Ilya Enkovich <enkovich.gnu@gmail.com>
10648 Jakub Jelinek <jakub@redhat.com>
10649
10650 PR target/70160
10651 * config/i386/i386.c (scalar_chain::convert_reg): Skip uses
10652 of uninitialized values.
10653
10654 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10655
10656 * config/s390/s390.md ("trunctddd2"): Turn former define_insn into
10657 define_expand.
10658 ("*trunctddd2"): New pattern definition.
10659 ("trunctdsd2"): Set prep_for_short_prec rounding mode for the
10660 TD->DD truncation.
10661
10662 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10663
10664 * config/s390/s390.md (BFP_RND_*, DFP_RND_*): Add new constant
10665 definitions for BFP and DFP rounding modes.
10666 ("fixuns_truncdddi2", "fixuns_trunctddi2")
10667 ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2")
10668 ("fix_trunc<DSF:mode><GPR:mode>2", "fix_trunc<mode>di2")
10669 ("fix_trunctf<mode>2"): Use the new constants instead of magic
10670 numbers.
10671
10672 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10673
10674 * config/s390/constraints.md: Adjust comment.
10675 ("Y"): Adjust comment. Rename s390_decompose_shift_count to
10676 s390_decompose_addrstyle_without_index.
10677 * config/s390/predicates.md (shift_count_or_setmem_operand):
10678 Rename to setmem_operand.
10679 * config/s390/s390-protos.h
10680 (s390_decompose_shift_count): Rename to
10681 s390_decompose_addrstyle_without_index.
10682 * config/s390/s390.c (s390_decompose_shift_count)
10683 (s390_mem_constraint, print_shift_count_operand)
10684 (print_operand_address, print_operand): Rename
10685 s390_decompose_shift_count to
10686 s390_decompose_addrstyle_without_index and rename
10687 print_shift_count_operand to print_addrstyle_operand troughout the
10688 file.
10689 * config/s390/s390.md ("setmem_long_<P:mode>", "*setmem_long")
10690 ("*setmem_long_and", "*setmem_long_31z", "*setmem_long_and_31z"):
10691 Rename shift_count_or_setmem_operand to setmem_operand.
10692 * config/s390/vx-builtins.md ("vec_insert<mode>")
10693 ("vec_promote<mode>"): Replace shift_count_or_setmem_operand with
10694 nonmemory_operand.
10695
10696 2016-03-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10697
10698 PR target/70168
10699 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
10700 Handle overlapping retval and newval.
10701
10702 2016-03-10 Nick Clifton <nickc@redhat.com>
10703
10704 PR target/7044
10705 * config/aarch64/aarch64.c
10706 (aarch64_override_options_after_change_1): When forcing
10707 flag_omit_frame_pointer to be true, use a special value that can
10708 be detected if this function is called again, thus preventing
10709 flag_omit_leaf_frame_pointer from being forced to be false.
10710
10711 2016-03-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10712
10713 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
10714 Set x_flag_omit_leaf_frame_pointer when handling
10715 -momit-leaf-frame-pointer.
10716
10717 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
10718
10719 PR lto/69589
10720 * cgraph.c (cgraph_node::dump): Dump split_part and
10721 indirect_call_target.
10722 * cgraph.h (cgraph_node): Add indirect_call_target flag.
10723 * ipa.c (has_addr_references_p): Cleanup.
10724 (is_indirect_call_target_p): New.
10725 (walk_polymorphic_call_targets): Do not mark virtuals that may be
10726 called indirectly as local.
10727 (symbol_table::remove_unreachable_nodes): Compute indirect_call_target.
10728
10729 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
10730
10731 PR ipa/69630
10732 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
10733 on cxa_pure_virtual.
10734
10735 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
10736
10737 PR lto/69589
10738 * tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL.
10739
10740 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
10741
10742 PR lto/69589
10743 * tree.c (need_assembler_name_p): Only record main variant type names.
10744
10745 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
10746
10747 PR target/70113.
10748 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_843419_DEFAULT):
10749 Always define to 0 or 1.
10750 (TARGET_FIX_ERR_A53_843419): New macro.
10751 * config/aarch64/aarch64-elf-raw.h
10752 (TARGET_FIX_ERR_A53_843419_DEFAULT): Update for above changes.
10753 * config/aarch64/aarch64-linux.h: Likewise.
10754 * config/aarch64/aarch64.c
10755 (aarch64_override_options_after_change_1): Do not default
10756 aarch64_nopcrelative_literal_loads to true if Cortex-A53 erratum
10757 843419 is on.
10758 (aarch64_attributes): Handle fix-cortex-a53-843419.
10759 (aarch64_can_inline_p): Likewise.
10760 * config/aarch64/aarch64.opt (aarch64_fix_a53_err843419): Save.
10761
10762 2016-03-10 Alan Lawrence <alan.lawrence@arm.com>
10763 Jakub Jelinek <jakub@redhat.com>
10764
10765 * common.opt (funconstrained-commons, flag_unconstrained_commons): New.
10766 * tree.c (array_at_struct_end_p): Do not limit to size of decl for
10767 DECL_COMMONS if flag_unconstrained_commons is set.
10768 * tree-dfa.c (get_ref_base_and_extent): Likewise.
10769 * doc/invoke.texi (Optimize Options): Add -funconstrained-commons.
10770 (funconstrained-commons): Document.
10771
10772 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
10773
10774 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add
10775 aarch64-fusion-pairs.def and aarch64-tuning-flags.def
10776
10777 2016-03-10 Ilya Enkovich <enkovich.gnu@gmail.com>
10778
10779 * tree-vect-stmts.c (vectorizable_mask_load_store): Check mask
10780 has a proper number of elements.
10781
10782 2016-03-10 Alan Modra <amodra@gmail.com>
10783
10784 PR rtl-optimization/69195
10785 PR rtl-optimization/47992
10786 * ira.c (recorded_label_ref): Delete.
10787 (update_equiv_regs): Return void.
10788 (indirect_jump_optimize): New function.
10789 (ira): Call indirect_jump_optimize and delete_trivially_dead_insns
10790 before regstat_compute_ri. Don't rebuild_jump_labels here.
10791 Delete update_regstat.
10792
10793 2016-03-10 Richard Biener <rguenther@suse.de>
10794
10795 PR tree-optimization/70128
10796 * tree-ssa-structalias.c (set_uids_in_ptset): Set
10797 vars_contains_nonlocal for any FUNCTION_DECL or LABEL_DECL.
10798
10799 2016-03-09 Jakub Jelinek <jakub@redhat.com>
10800
10801 PR tree-optimization/70152
10802 * tree-sra.c (replace_removed_params_ssa_names): Copy over
10803 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from old_name to new_name.
10804
10805 PR target/70086
10806 * config/i386/i386.md (truncdfsf2 splitter): Use gen_vec_concatv2df
10807 instead of gen_sse2_loadlpd.
10808 * config/i386/sse.md (*vec_concatv2df): Rename to...
10809 (vec_concatv2df): ... this.
10810
10811 PR tree-optimization/70127
10812 * fold-const.c (operand_equal_p): Revert the 2015-10-28 change.
10813
10814 2016-03-09 David Malcolm <dmalcolm@redhat.com>
10815
10816 PR c/68473
10817 PR c++/70105
10818 * diagnostic-show-locus.c (compatible_locations_p): New function.
10819 (layout::layout): Sanitize ranges using compatible_locations_p.
10820
10821 2016-03-09 David Malcolm <dmalcolm@redhat.com>
10822
10823 PR c/68473
10824 PR c++/70105
10825 * diagnostic-show-locus.c (layout_range::layout_range): Replace
10826 location_range param with three const expanded_locations * and a
10827 bool.
10828 (layout::layout): Replace call to
10829 rich_location::lazily_expand_location with get_expanded_location.
10830 Extract the range and perform location expansion here, passing
10831 the results to the layout_range ctor.
10832 * diagnostic.c (source_range::debug): Delete.
10833 * diagnostic.h (diagnostic_expand_location): Reimplement in terms
10834 of rich_location::get_expanded_location.
10835 * gcc-rich-location.c (get_range_for_expr): Delete.
10836 (gcc_rich_location::add_expr): Reimplement to avoid the
10837 rich_location::add_range overload that took a location_range,
10838 passing a location_t instead.
10839
10840 2016-03-09 Richard Biener <rguenther@suse.de>
10841 Jakub Jelinek <jakub@redhat.com>
10842
10843 PR tree-optimization/70138
10844 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
10845 Also skip vect_double_reduction_def.
10846
10847 2016-03-09 Jakub Jelinek <jakub@redhat.com>
10848
10849 PR target/70049
10850 * config/i386/sse.md (*vec_extract<mode>): Use %0 instead of %k0
10851 if the operand is "m".
10852
10853 2016-03-09 Nathan Sidwell <nathan@acm.org>
10854
10855 * config/nvptx/nvptx.c (nvptx_option_override): Don't kill debug level.
10856
10857 2016-03-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
10858
10859 * config/i386/i386.c (processor_target_table): Fix cost table
10860 intialization order for znver1.
10861
10862 2016-03-08 Jakub Jelinek <jakub@redhat.com>
10863
10864 * ipa-polymorphic-call.c (walk_ssa_copies): Fix spelling
10865 - becuase -> because.
10866 * ipa-reference.c (ignore_module_statics): Likewise.
10867 * cgraph.c (cgraph_node::get_body): Likewise.
10868 * ipa-inline.c (early_inliner): Likewise.
10869 * ipa-devirt.c (types_same_for_odr): Likewise.
10870 * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
10871 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Likewise.
10872
10873 2016-03-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10874
10875 * tree-ssa-math-opts.c: Fix typo in comment.
10876
10877 2016-03-08 Jakub Jelinek <jakub@redhat.com>
10878
10879 PR target/70110
10880 * config/i386/i386.c (scalar_chain::make_vector_copies,
10881 scalar_chain::convert_reg): Call end_sequence in between
10882 get_insns and emit_conversion_insns rather than after both
10883 calls.
10884
10885 2016-03-07 Uros Bizjak <ubizjak@gmail.com>
10886
10887 PR target/70064
10888 * config/i386/i386.h (machine_function): Add
10889 pc_thunk_call_expanded flag.
10890 (ix86_pc_thunk_call_expanded): New define.
10891 * config/i386/i386.md (set_got, set_got_labelled): New expanders.
10892 (*set_got): Rename insn pattern from set_got.
10893 (*set_got_labelled): Rename inst pattern from set_got_labelled.
10894 * config/i386/i386.c (ix86_compute_frame_layout): Use
10895 ix86_pc_thunk_call_expanded to prevent red-zone.
10896
10897 2016-03-07 Martin Jambor <mjambor@suse.cz>
10898
10899 * hsa.h (hsa_get_ctor_statements): Declare.
10900 (hsa_get_dtor_statements): Likewise.
10901 (hsa_get_kernel_dispatch_type): Likewise.
10902 * hsa.c (hsa_get_ctor_statements): New function.
10903 (hsa_get_dtor_statements): Likewise.
10904 (hsa_get_kernel_dispatch_type): Likewise.
10905 * hsa-brig.c (hsa_cdtor_statements): Removed.
10906 (hsa_output_libgomp_mapping): Use hsa_get_ctor_statements and
10907 hsa_get_dtor_statements.
10908 * hsa-gen.c (hsa_kernel_dispatch_type): Removed.
10909 (get_hsa_kernel_dispatch_offset): Use hsa_get_kernel_dispatch_type.
10910
10911 2016-03-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
10912
10913 * config/arm/arm-cores.def (cortex-r8): New.
10914 * config/arm/arm-tables.opt (cortex-r8): Regenerate.
10915 * config/arm/arm-tune.md: Likewise.
10916 * doc/invoke.texi: Add cortex-r8 to list of cpu values.
10917
10918 2016-03-07 Martin Sebor <msebor@redhat.com>
10919
10920 PR rtl-optimization/19705
10921 * doc/invoke.texi (Options That Control Optimization): Clarify
10922 -fno-branch-count-reg.
10923
10924 2016-02-26 Richard Biener <rguenther@suse.de>
10925 Jeff Law <law@redhat.com>
10926
10927 PR tree-optimization/69740
10928 * cfghooks.c (remove_edge): Request loop fixups if we delete
10929 an edge that might turn an irreducible loop into a natural
10930 loop.
10931 * cfgloop.h (check_verify_loop_structure): Clear LOOPS_NEED_FIXUP.
10932 Move after definition of loops_state_clear.
10933
10934 2016-03-07 Bin Cheng <bin.cheng@arm.com>
10935
10936 PR rtl-optimization/69052
10937 * rtlanal.c (commutative_operand_precedence): Set higher precedence
10938 to CONST_WIDE_INT.
10939
10940 2016-03-07 Tom de Vries <tom@codesourcery.com>
10941
10942 PR tree-optimization/70116
10943 * tree-ssa-tail-merge.c (merge_stmts_p): New function, handling
10944 is_tm_ending stmts and ubsan/asan internal functions.
10945 (find_duplicate): Use it. Don't test is_tm_ending here.
10946
10947 2016-03-07 Richard Biener <rguenther@suse.de>
10948
10949 PR tree-optimization/70115
10950 * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Remove.
10951 (propagate_constants_for_unrolling): Use replace_uses_by.
10952
10953 2016-03-07 Nathan Sidwell <nathan@codesourcery.com>
10954
10955 PR middle-end/69916
10956 * omp-low.c (struct oacc_loop): Add ifns.
10957 (new_oacc_loop_raw): Initialize it.
10958 (finish_oacc_loop): Clear mask & flags if no ifns.
10959 (oacc_loop_discover_walk): Count IFN_GOACC_LOOP calls.
10960 (oacc_loop_xform_loop): Add ifns arg & adjust.
10961 (oacc_loop_process): Adjust oacc_loop_xform_loop call.
10962
10963 2016-03-07 Richard Henderson <rth@redhat.com>
10964
10965 PR rtl-opt/70061
10966 * tree-outofssa.c (emit_partition_copy): Flush pending stack adjust.
10967 (insert_value_copy_on_edge): Likewise.
10968
10969 2016-03-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10970
10971 * config/arm/arm_neon.h: Show error if using with soft-float ABI.
10972
10973 2016-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10974
10975 PR target/62281
10976 * config/i386/sol2.h (STACK_REALIGN_DEFAULT): Define.
10977
10978 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
10979
10980 * config/i386/i386.c (znver1_cost): Fix Multiply cost.
10981
10982 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
10983
10984 Fix sseimul type attribute.
10985 * config/i386/znver1.md
10986 (znver1_sseimul, znver1_sseimul_avx256, znver1_sseimul_load,
10987 znver1_sseimul_avx256_load) : Fix the type attribute.
10988 (znver1_sseimul_di, znver1_sseimul_load_di): Fix type attribute,
10989 pipe usage and latency.
10990
10991 2016-03-05 Jakub Jelinek <jakub@redhat.com>
10992
10993 PR c++/70084
10994 * tree-inline.c (copy_tree_body_r): When cancelling ADDR_EXPR
10995 of INDIRECT_REF and ADDR_EXPR changed type, fold_convert it
10996 to the right type.
10997
10998 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
10999
11000 PR c/69973
11001 * targhooks.c (default_vector_alignment): Limit to MAX_OFILE_ALIGNMENT.
11002
11003 PR rtl-optimization/69941
11004 * postreload.c (reload_combine_recognize_pattern): Ensure all uses of
11005 the reg share its mode.
11006
11007 2016-03-04 Jeff Law <law@redhat.com>
11008
11009 PR tree-optimization/69196
11010 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
11011 If the both SSA_NAMEs are anonymous, then consider them unassociated
11012 and include the PHI in the statement count.
11013
11014 2016-03-05 Tom de Vries <tom@codesourcery.com>
11015
11016 * omp-low.c (check_omp_nesting_restrictions): Check for non-oacc
11017 construct in oacc routine. Check for oacc region in oacc routine.
11018
11019 2016-03-04 Jakub Jelinek <jakub@redhat.com>
11020
11021 PR target/70062
11022 * config/i386/i386.c (decide_alg): Add RECUR argument. Revert
11023 2016-02-22 changes, instead don't recurse if RECUR is already true.
11024 Don't change *dynamic_check if RECUR. Adjust recursive caller
11025 to pass true to the new argument.
11026 (ix86_expand_set_or_movmem): Adjust decide_alg caller.
11027
11028 PR target/70059
11029 * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
11030 <extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask): Formatting
11031 fixes.
11032 (vec_set_hi_<mode><mask_name>): Likewise. Swap VEC_CONCAT operands.
11033
11034 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
11035
11036 PR rtl-optimization/57676
11037 * lra-assigns.c (lra_assign): Guard test for maximum iterations
11038 with flag_checking.
11039
11040 2016-03-04 Ilya Enkovich <enkovich.gnu@gmail.com>
11041
11042 * tree-vect-patterns.c (search_type_for_mask): Handle
11043 comparison of booleans.
11044
11045 2016-03-04 Jakub Jelinek <jakub@redhat.com>
11046
11047 * doc/extend.texi (__builtin_alloca, __builtin_alloca_with_align):
11048 Fix @xref usage.
11049
11050 PR debug/69947
11051 * dwarf2out.c (prune_unused_types_walk_loc_descr): Handle
11052 all other ops that have dw_val_class_die_ref operands,
11053 and DW_OP_GNU_entry_value.
11054
11055 2016-03-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11056
11057 PR rtl-optimization/69904
11058 * config/arm/arm.c (arm_cannot_copy_insn_p):
11059 Return true for load-exclusive instructions.
11060
11061 2016-03-03 Jakub Jelinek <jakub@redhat.com>
11062
11063 PR target/70021
11064 * tree-vect-stmts.c (vect_mark_relevant): Remove USED_IN_PATTERN
11065 argument, if STMT_VINFO_IN_PATTERN_P (stmt_info), always mark
11066 the pattern no matter if it is used just by non-pattern, pattern
11067 or mix thereof.
11068 (process_use, vect_mark_stmts_to_be_vectorized): Adjust callers.
11069 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
11070 oprnd1 def_stmt is in pattern, don't look through it.
11071
11072 2016-03-03 Marek Polacek <polacek@redhat.com>
11073
11074 PR middle-end/70050
11075 * match.pd (X % -Y): Add INTEGRAL_TYPE_P check.
11076
11077 2016-03-03 Martin Liska <mliska@suse.cz>
11078
11079 PR tree-optimization/70043
11080 * tree-vect-loop.c (optimize_mask_stores): Move iterator to
11081 previous statement if we see a debug statement.
11082
11083 2016-03-03 Richard Biener <rguenther@suse.de>
11084
11085 PR tree-optimization/55936
11086 * tree-vrp.c (compare_name_with_value): Add use_equiv_p
11087 parameter and guard unsafe equivalence use.
11088 (vrp_evaluate_conditional_warnv_with_ops): Always use
11089 safe equivalences but not via the quadratic compare_names
11090 helper.
11091
11092 2016-03-03 Michael Collison <michael.collison@linaro.org>
11093
11094 PR target/70014
11095 * config/arm/arm.md (*subsi3_carryin_const): Change predicate
11096 for operand 1 to s_register_operand. Change predicate for operand
11097 2 to arm_not_immediate_operand.
11098
11099 2016-03-02 H.J. Lu <hongjiu.lu@intel.com>
11100
11101 * doc/tm.texi: Regenerated.
11102
11103 2016-03-02 Richard Henderson <rth@redhat.com>
11104
11105 PR rtl-opt/67145
11106 * simplify-rtx.c (simplify_plus_minus): Allow reassoc without
11107 simplification when all args are positive non-fixed registers.
11108
11109 2016-03-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
11110
11111 * target.def (lra_p): Specify that new ports should use LRA.
11112
11113 2016-03-02 Jakub Jelinek <jakub@redhat.com>
11114
11115 PR libgomp/69555
11116 * gimplify.c (gimplify_decl_expr): For decls with REFERENCE_TYPE, also
11117 gimplify_type_sizes the type they refer to.
11118 (omp_notice_variable): Handle reference vars to VLAs.
11119 * omp-low.c (lower_omp_target): Emit setup of OMP_CLAUSE_PRIVATE
11120 reference to VLA decls in the second pass instead of first pass.
11121
11122 2016-03-02 Tom de Vries <tom@codesourcery.com>
11123
11124 PR tree-optimization/68659
11125 * graphite-isl-ast-to-gimple.c (collect_all_ssa_names): Handle
11126 new_expr == NULL_TREE.
11127 (get_new_name): Handle ADDR_EXPR.
11128
11129 2016-03-02 Bin Cheng <bin.cheng@arm.com>
11130
11131 PR rtl-optimization/69052
11132 * loop-invariant.c (canonicalize_address): New function.
11133 (inv_can_prop_to_addr_use): Check validity of address expression
11134 which is canonicalized by above function.
11135
11136 2016-03-02 Alan Modra <amodra@gmail.com>
11137
11138 PR ipa/69990
11139 * ipa-icf.c (sem_variable::merge): Do not merge an alias with
11140 larger alignment.
11141
11142 2016-03-02 Jakub Jelinek <jakub@redhat.com>
11143
11144 PR target/70028
11145 * config/i386/i386.md (kmovw): Move m constraint to 2nd alternative.
11146 (*movhi_internal): Put mask moves from and to memory separately
11147 from moves from/to GPRs.
11148
11149 2016-03-02 Richard Biener <rguenther@suse.de>
11150
11151 * genmatch.c (dt_node::gen_kids): Fix match code-gen for embedded
11152 GENERIC expressions in GIMPLE.
11153
11154 2016-03-02 Richard Biener <rguenther@suse.de>
11155
11156 * config/i386/i386.c (type_natural_mode): Fix typo.
11157
11158 2016-03-02 Nick Clifton <nickc@redhat.com>
11159
11160 * config.gcc (mep-*-elf): Add newlib-stdint.h to tm_file.
11161
11162 2016-03-02 Richard Biener <rguenther@suse.de>
11163 Uros Bizjak <ubizjak@gmail.com>
11164
11165 PR target/67278
11166 * config/i386/i386.c (type_natural_mode): Handle XFmode vectors.
11167
11168 2016-03-02 Richard Biener <rguenther@suse.de>
11169
11170 PR middle-end/67278
11171 * tree-cfg.c (verify_expr): Adjust BIT_FIELD_REF case.
11172
11173 2016-03-02 Marek Polacek <polacek@redhat.com>
11174
11175 PR c/67854
11176 * gimplify.c (gimplify_va_arg_expr): Use expanded location for the
11177 "is promoted to" warning.
11178
11179 2016-03-01 DJ Delorie <dj@redhat.com>
11180
11181 * config.gcc: Deprecate mep-*.
11182
11183 2016-03-01 Vladimir Makarov <vmakarov@redhat.com>
11184
11185 PR middle-end/70025
11186 * lra-constraints.c (regno_val_use_in): New.
11187 (match_reload): Use it instead of regno_use_in.
11188
11189 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
11190
11191 PR rtl-optimization/70007
11192 * gcse.c (compute_ld_motion_mems): Tidy up and also invalidate memory
11193 references present in REG_EQUAL notes attached to non-SET patterns.
11194
11195 2016-03-01 Jeff Law <law@redhat.com>
11196
11197 PR tree-optimization/69196
11198 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
11199 Appropriately clamp the number of statements to copy when the
11200 thread path does not traverse a loop backedge.
11201
11202 PR tree-optimization/69196
11203 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
11204 Do count some PHIs in the thread path against the insn count. Decrease
11205 final statement count by one as the control statement in the last
11206 block will get removed. Remove special cased code for handling PHIs
11207 in the last block.
11208
11209 2016-03-01 Uros Bizjak <ubizjak@gmail.com>
11210
11211 PR target/70027
11212 * config/i386/i386.c (ix86_output_call_insn): Add -masm=intel
11213 asm dialect alternatives to explicit GOTPCREL calls.
11214
11215 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
11216
11217 PR ada/70017
11218 * ira.c (do_reload): Issue warning for generic stack checking here...
11219 * reload1.c (reload): ...instead of here and streamline it.
11220
11221 2016-03-01 Nick Clifton <nickc@redhat.com>
11222
11223 * config.gcc (cr16-*-elf): Add newlib-stdint.h to tm_file.
11224
11225 2016-03-01 Richard Biener <rguenther@suse.de>
11226
11227 PR tree-optimization/69983
11228 * tree-chrec.c (eq_evolutions_p): Handle conversions, compare
11229 types and fall back to operand_equal_p.
11230
11231 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11232
11233 Revert
11234 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11235
11236 * config/s390/constraints.md ("jm8"): New constraint.
11237 * config/s390/predicates.md ("const_int_8bitset_operand"): New
11238 predicate.
11239 * config/s390/s390.md ("*setmem_long", "*setmem_long_and"): Merge
11240 into ...
11241 ("*setmem_long<setmem_and>"): New pattern.
11242 ("*setmem_long_31z", "*setmem_long_and_31z"): Merge
11243 into ...
11244 ("*setmem_long_31z<setmem_and>"): New pattern.
11245 * config/s390/subst.md ("setmem_31z_subst", "setmem_and_subst"):
11246 New substitution rules with the required attributes.
11247
11248
11249 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11250
11251 Revert
11252 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11253
11254 * gensupport.c (process_substs_on_one_elem): Split loop to
11255 complete mark_operands_used_in_match_dup on all expressions in the
11256 vector first.
11257 (adjust_operands_numbers): Inline into process_substs_on_one_elem
11258 and remove function.
11259
11260 2016-03-01 Richard Biener <rguenther@suse.de>
11261
11262 PR middle-end/70022
11263 * fold-const.c (fold_indirect_ref_1): Fix range checking for
11264 vector BIT_FIELD_REF extract.
11265
11266 2016-03-01 Richard Biener <rguenther@suse.de>
11267
11268 PR tree-optimization/69994
11269 * tree-ssa-reassoc.c (ops_equal_values_p): Handle missing case.
11270
11271 2016-03-01 Ilya Enkovich <enkovich.gnu@gmail.com>
11272
11273 PR tree-optimization/69956
11274 * tree-vect-stmts.c (supportable_widening_operation): Support
11275 multi-step conversion of boolean vectors.
11276 (supportable_narrowing_operation): Likewise.
11277
11278 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11279
11280 * config/s390/s390.c (s390_decompose_address): Don't accept SImode
11281 anymore.
11282
11283 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11284
11285 * config/s390/subst.md (DSI_VI): New mode iterator.
11286 ("addr_style_op_subst"): Use DSI_VI instead of DSI.
11287 * config/s390/vector.md ("vec_set<mode>"): Move expander before
11288 the insn definition.
11289 ("*vec_set<mode>"): Change predicate and add alternative to
11290 support only either register or const_int operands as element
11291 selector.
11292 ("*vec_set<mode>_plus"): New pattern to support reg + const_int
11293 operands.
11294 ("vec_extract<mode>"): New expander.
11295 ("*vec_extract<mode>"): New insn definition supporting reg and
11296 const_int element selectors.
11297 ("*vec_extract<mode>_plus"): New insn definition supporting
11298 reg+const_int element selectors.
11299 ("rotl<mode>3", "ashl<mode>3", "ashr<mode>3"): Merge into the
11300 following expander+insn definition.
11301 ("<vec_shifts_name><mode>3"): New expander.
11302 ("*<vec_shifts_name><mode>3<addr_style_op>"): New insn definition.
11303
11304 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11305
11306 * config/s390/s390.md ("*tabort_1"): Change predicate to
11307 nonmemory_operand. Add a second alternative to cover
11308 register as well as const int operands.
11309 ("*tabort_1_plus"): New pattern definition.
11310
11311 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11312
11313 * config/s390/s390.md ("*ashrdi3_cc_31")
11314 ("*ashrdi3_cconly_31""*ashrdi3_cc_31_and")
11315 ("*ashrdi3_cconly_31_and", "*ashrdi3_31_and", "*ashrdi3_31"):
11316 Merge insn definitions into ...
11317 ("*ashrdi3_31<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
11318 New pattern definition.
11319 ("*ashr<mode>3_cc", "*ashr<mode>3_cconly", "ashr<mode>3", )
11320 ("*ashr<mode>3_cc_and", "*ashr<mode>3_cconly_and")
11321 ("*ashr<mode>3_and"): Merge insn definitions into ...
11322 ("*ashr<mode>3<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
11323 New pattern definition.
11324 * config/s390/subst.md ("addr_style_op_cc_subst")
11325 ("masked_op_cc_subst", "setcc_subst", "cconly_subst"): New
11326 substitutions patterns plus attributes.
11327 Add ashiftrt to SUBST iterator.
11328
11329 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11330
11331 * config/s390/s390.md ("<shift><mode>3"): Change predicate of
11332 op2 to nonmemory_operand.
11333 ("*<shift>di3_31", "*<shift>di3_31_and"):
11334 Merge into single pattern definition ...
11335 ("*<shift>di3_31<addr_style_op><masked_op>"): New pattern.
11336 ("*<shift><mode>3", "*<shift><mode>3_and"): Merge into single
11337 pattern definition ...
11338 ("*<shift><mode>3<addr_style_op><masked_op>"): New pattern.
11339 * config/s390/subst.md: Add ashift and lshiftrt to SUBST
11340 iterator.
11341
11342 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11343
11344 * config/s390/predicates.md (const_int_6bitset_operand): New
11345 predicate.
11346 * config/s390/s390.md: Include subst.md.
11347 ("rotl<mode>3"): New expander.
11348 ("rotl<mode>3", "*rotl<mode>3_and"): Merge insn definitions into
11349 ...
11350 ("*rotl<mode>3<addr_style_op><masked_op>"): New insn definition.
11351 * config/s390/subst.md: New file.
11352
11353 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11354
11355 * config/s390/s390.md ("op_type", "atype", "length" attributes):
11356 Remove RRR type. It doesn't really exist.
11357 ("RRer", "f0", "v0", "vf", "vd", "op1", "Rf"): Remove mode
11358 attributes.
11359 ("BFP", "DFP", "nDSF", "nDFDI"): Add mode attributes.
11360 ("*cmp<mode>_ccs", "floatdi<mode>2", "add<mode>3")
11361 ("*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3")
11362 ("*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3")
11363 ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2")
11364 ("*abs<mode>2", "*negabs<mode>2", "sqrt<mode>2"): Override
11365 `enabled' attribute.
11366
11367 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11368
11369 * gensupport.c (process_substs_on_one_elem): Split loop to
11370 complete mark_operands_used_in_match_dup on all expressions in the
11371 vector first.
11372 (adjust_operands_numbers): Inline into process_substs_on_one_elem
11373 and remove function.
11374
11375 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
11376
11377 PR target/69706
11378 * config/sparc/sparc.c (NWORDS_UP): Rename to...
11379 (CEIL_NWORDS): ...this. Use CEIL macro.
11380 (compute_fp_layout): Adjust to above renaming.
11381 (function_arg_union_value): Likewise.
11382 (sparc_arg_partial_bytes): Likewise.
11383 (sparc_function_arg_advance): Likewise.
11384
11385 2016-02-29 Jeff Law <law@redhat.com>
11386
11387 PR tree-optimization/70005
11388 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Handle case
11389 where an object with a boolean range is compared against a value
11390 outside [0..1].
11391
11392 PR tree-optimization/69999
11393 * gimple-ssa-split-paths.c (split_paths): When duplicating a block
11394 with an outgoing edge marked with EDGE_IRREDUCIBLE_LOOP, schedule
11395 loop cleanups.
11396
11397 2016-02-29 Richard Biener <rguenther@suse.de>
11398
11399 PR tree-optimization/69994
11400 * tree-ssa-reassoc.c (gimple_nop_conversion_p): New function.
11401 (get_unary_op): Look through nop conversions.
11402 (ops_equal_values_p): New function, look for equality diregarding
11403 nop conversions.
11404 (eliminate_plus_minus_pair): Use ops_equal_values_p
11405 (repropagate_negates): Do not use get_unary_op here.
11406
11407 2016-02-29 Martin Liska <mliska@suse.cz>
11408
11409 * system.h: Poison ENABLE_CHECKING macro.
11410
11411 2016-02-29 Martin Liska <mliska@suse.cz>
11412
11413 * hsa-gen.c (gen_body_from_gimple): Dump only if TDF_DETAILS
11414 is presented in dump flags.
11415 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
11416 (hsa_regalloc): Likewise.
11417
11418 2016-02-19 Richard Biener <rguenther@suse.de>
11419
11420 PR tree-optimization/69980
11421 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Update
11422 permutation of those we need to keep.
11423
11424 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
11425
11426 PR target/69706
11427 * config/sparc/sparc.c (ROUND_ADVANCE): Rename to...
11428 (NWORDS_UP): ...this
11429 (init_cumulative_args): Minor tweaks.
11430 (sparc_promote_function_mode): Likewise.
11431 (scan_record_type): Delete.
11432 (traverse_record_type): New function template.
11433 (classify_data_t): New structure type.
11434 (classify_registers): New inline function.
11435 (function_arg_slotno): In 64-bit mode, bail out early if FP slots are
11436 exhausted. Instantiate traverse_record_type on classify_registers and
11437 deal with the case of a structure passed in slot #15 with no FP field
11438 in the first word.
11439 (assign_data_t): New structure type.
11440 (compute_int_layout): New static function.
11441 (compute_fp_layout): Likewise.
11442 (count_registers): New inline function.
11443 (assign_int_registers): New static function.
11444 (assign_fp_registers): Likewise.
11445 (assign_registers): New inline function.
11446 (function_arg_record_value_1): Delete.
11447 (function_arg_record_value_2): Likewise.
11448 (function_arg_record_value_3): Likewise.
11449 (function_arg_record_value): Adjust to above changes. Instantiate
11450 traverse_record_type on count_registers to first count the number of
11451 registers to be used and then on assign_registers to assign them.
11452 (function_arg_union_value): Adjust to above renaming.
11453 (sparc_function_arg_1); Minor tweaks. Remove commented out code.
11454 (sparc_arg_partial_bytes): Adjust to above renaming. Deal with the
11455 case of a structure passed in slot #15
11456 (sparc_function_arg_advance): Likewise.
11457 (function_arg_padding): Minor tweak.
11458
11459 2016-02-29 Richard Biener <rguenther@suse.de>
11460
11461 PR tree-optimization/69720
11462 * tree-vect-loop.c (get_initial_def_for_reduction): Avoid
11463 the adjustment_def path for possibly vectorized defs.
11464 (vect_create_epilog_for_reduction): Handle vectorized initial
11465 defs properly.
11466
11467 2016-02-28 Eric Botcazou <ebotcazou@adacore.com>
11468
11469 * config/i386/cygming.h (STACK_REALIGN_DEFAULT): Define.
11470
11471 2016-02-27 Jeff Law <law@redhat.com>
11472
11473 Revert
11474 2016-02-26 Richard Biener <rguenther@suse.de>
11475 Jeff Law <law@redhat.com>
11476
11477 PR tree-optimization/69740
11478 * cfghooks.c (remove_edge): Request loop fixups if we delete
11479 an edge that might turn an irreducible loop into a natural
11480 loop.
11481
11482 2016-02-27 Jakub Jelinek <jakub@redhat.com>
11483
11484 PR rtl-optimization/69896
11485 * tree-vect-generic.c (get_compute_type): Avoid single element
11486 vector types.
11487
11488 2016-02-26 Evandro Menezes <e.menezes@samsung.com>
11489
11490 Rename the AArch64 tuning option and related functions to enable the
11491 Newton series for the reciprocal square root to reflect its
11492 approximative characteristic.
11493
11494 * config/aarch64/aarch64-protos.h (aarch64_emit_swrsqrt): Rename
11495 function to "aarch64_emit_approx_rsqrt".
11496 * config/aarch64/aarch64-tuning-flags.def: Rename tuning flag to
11497 AARCH64_EXTRA_TUNE_APPROX_RSQRT.
11498 * config/aarch64/aarch64.c (exynosm1_tunigs): Use new flag name.
11499 (xgene1_tunings): Likewise.
11500 (use_rsqrt_p): Likewise.
11501 (aarch64_emit_swrsqrt): Use new function name.
11502 * config/aarch64/aarch64-simd.md (aarch64_rsqrts_*): Likewise.
11503 * config/aarch64/aarch64.opt (mlow-precision-recip-sqrt): Reword the
11504 text explaining this option.
11505 * doc/invoke.texi (-mlow-precision-recip-sqrt): Likewise.
11506
11507 2016-02-26 Jakub Jelinek <jakub@redhat.com>
11508
11509 PR target/69969
11510 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
11511 complain about -mallow-movmisalign without -mvsx if
11512 TARGET_ALLOW_MOVMISALIGN was not set explicitly.
11513
11514 2016-02-26 Joel Sherrill <joel@rtems.org>
11515
11516 * config.gcc: Add x86_64-*-rtems*.
11517 * config/i386/rtems-64.h: New file.
11518
11519 2016-02-26 Joel Sherrill <joel@rtems.org>
11520
11521 * config.gcc: Add aarch64-*-rtems*.
11522 * config/aarch64/rtems.h: New file.
11523
11524 2016-02-26 Segher Boessenkool <segher@kernel.crashing.org>
11525
11526 PR target/69946
11527 * config/rs6000/rs6000.c (rs6000_insn_for_shift_mask): Print rlwinm
11528 shift amount using %h. Add comment.
11529
11530 2016-02-26 Richard Biener <rguenther@suse.de>
11531 Jeff Law <law@redhat.com>
11532
11533 PR tree-optimization/69740
11534 * cfghooks.c (remove_edge): Request loop fixups if we delete
11535 an edge that might turn an irreducible loop into a natural
11536 loop.
11537
11538 2016-02-26 Martin Jambor <mjambor@suse.cz>
11539
11540 PR middle-end/69920
11541 * tree-sra.c (sra_modify_assign): Do not remove loads of
11542 uninitialized aggregates to SSA_NAMEs.
11543
11544 2016-02-26 Richard Henderson <rth@redhat.com>
11545
11546 PR target/69709
11547 * config/s390/s390.md (risbg and risbgn splitters): Allocate new
11548 pseudo in case the target rtx matches the source of the left
11549 shift.
11550
11551 2016-02-26 Martin Jambor <mjambor@suse.cz>
11552
11553 PR hsa/69568
11554 * hsa.h (hsa_type_packed_p): Declare.
11555 * hsa.c (hsa_type_packed_p): New function.
11556 * hsa-gen.c (mem_type_for_type): Use unsigned type for packed
11557 loads.
11558 (gen_hsa_insns_for_store): Use hsa_type_packed_p.
11559 * hsa-brig.c (emit_basic_insn): Likewise.
11560
11561 2016-02-26 Martin Jambor <mjambor@suse.cz>
11562
11563 pr hsa/69674
11564 * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Use proper hsa type for
11565 pointers.
11566 (gen_hsa_addr): Allow integer constants in TMR_INDEX2.
11567
11568 2016-02-26 Martin Jambor <mjambor@suse.cz>
11569
11570 * hsa.h (is_a_helper): New overload for hsa_op_immed for
11571 hsa_op_with_type operands.
11572 (hsa_unsigned_type_for_type): Declare.
11573 * hsa.c (hsa_unsigned_type_for_type): New function.
11574 * hsa-gen.c (gen_hsa_binary_operation): Use hsa_unsigned_type_for_type.
11575 (gen_hsa_insns_for_operation_assignment): Satisfy constrains of
11576 the finalizer. Do not emit extra move.
11577
11578 2016-02-26 Martin Jambor <mjambor@suse.cz>
11579
11580 * hsa-gen.c (gen_hsa_ternary_atomic_for_builtin): Fail in presence of
11581 atomic operations in private segment.
11582
11583 2016-02-26 Martin Jambor <mjambor@suse.cz>
11584
11585 * omp-low.c (grid_find_ungridifiable_statement): Store problematic
11586 statements to wi->info. Also disallow omp simd constructs.
11587 (grid_target_follows_gridifiable_pattern): Use wi.info to dump reason
11588 for not gridifying. Dump special string for omp_for.
11589
11590 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11591
11592 PR target/69245
11593 * config/aarch64/aarch64.c (aarch64_set_current_function):
11594 Save/restore target globals when switching to
11595 target_option_default_node.
11596
11597 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11598
11599 PR target/69613
11600 * config/aarch64/aarch64.c (aarch64_shift_truncation_mask):
11601 Return 0 if !SHIFT_COUNT_TRUNCATED.
11602
11603 2016-02-26 Jakub Jelinek <jakub@redhat.com>
11604 Eric Botcazou <ebotcazou@adacore.com>
11605
11606 PR rtl-optimization/69891
11607 * dse.c (scan_insn): If we can't figure out memset arguments
11608 or they are non-constant, call clear_rhs_from_active_local_stores.
11609
11610 2016-02-26 Martin Liska <mliska@suse.cz>
11611
11612 * doc/extend.texi: Mention clog10, clog10f an clog10l
11613 in Builtins section.
11614
11615 2016-02-26 Martin Liska <mliska@suse.cz>
11616
11617 * dwarf2out.c (new_loc_descr): Replace ENABLE_CHECKING with
11618 CHECKING_P.
11619 (resolve_args_picking_1): Likewise.
11620 * dwarf2out.h (struct GTY): Likewise.
11621
11622 2016-02-26 Martin Liska <mliska@suse.cz>
11623
11624 * hsa-gen.c (generate_hsa): Replace ENABLE_CHECKING macro
11625 with flag_checking.
11626 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
11627
11628 2016-02-26 Markus Trippelsdorf <markus@trippelsdorf.de>
11629 Martin Liska <mliska@suse.cz>
11630
11631 * doc/install.texi: Mention --enable-valgrind-annotations.
11632
11633 2016-02-26 Richard Biener <rguenther@suse.de>
11634
11635 PR tree-optimization/69551
11636 * tree-ssa-structalias.c (get_constraint_for_ssa_var): When
11637 looking through aliases adjust DECL_PT_UID to refer to the
11638 ultimate alias target.
11639
11640 2016-02-25 Martin Liska <mliska@suse.cz>
11641
11642 PR middle-end/69919
11643 * alloc-pool.c (after_memory_report): New variable.
11644 * alloc-pool.h (base_pool_allocator ::release): Do not use
11645 the infrastructure if after_memory_report.
11646 * toplev.c (toplev::main): Mark after memory report.
11647
11648 2016-02-25 Richard Biener <rguenther@suse.de>
11649
11650 PR tree-optimization/48795
11651 * tree-vrp.c (check_array_ref): Use array_at_struct_end_p.
11652
11653 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
11654
11655 PR driver/68463
11656 * config/gnu-user.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o if
11657 offloading is enabled and -fopenacc or -fopenmp is specified.
11658 (CRTOFFLOADEND): Likewise.
11659 (GNU_USER_TARGET_STARTFILE_SPEC): Add CRTOFFLOADBEGIN.
11660 (GNU_USER_TARGET_ENDFILE_SPEC): Add CRTOFFLOADEND.
11661 * lto-wrapper.c (offloadbegin, offloadend): Remove static vars.
11662 (offload_objects_file_name): New static var.
11663 (tool_cleanup): Remove offload_objects_file_name file.
11664 (find_offloadbeginend): Replace with ...
11665 (find_crtoffloadtable): ... this.
11666 (run_gcc): Remove offload_argc and offload_argv.
11667 Get offload_objects_file_name from -foffload-objects=... option.
11668 Read names of object files with offload from this file, pass them to
11669 compile_images_for_offload_targets. Don't call find_offloadbeginend and
11670 don't pass offloadbegin and offloadend to the linker. Don't pass
11671 offload non-LTO files to the linker, because now they're not claimed.
11672
11673 2016-02-25 Jan Hubicka <hubicka@ucw.cz>
11674
11675 PR ipa/69630
11676 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
11677 on builtin_unreachable.
11678
11679 2016-02-25 Jakub Jelinek <jakub@redhat.com>
11680
11681 PR rtl-optimization/69896
11682 * regcprop.c: Include cfgrtl.h.
11683 (copyprop_hardreg_forward_1): If noop_p insn uses narrower
11684 than remembered mode, either delete it (if noop_move_p), or
11685 treat like copy_p but not noop_p instruction.
11686
11687 2016-02-24 Jakub Jelinek <jakub@redhat.com>
11688
11689 PR debug/69705
11690 * dwarf2out.c (gen_variable_die): Work around buggy LTO
11691 - allow NULL decl for Fortran DW_TAG_common_block variables.
11692
11693 2016-02-24 Jason Merrill <jason@redhat.com>
11694
11695 * common.opt (flifetime-dse): Add -flifetime-dse=1.
11696
11697 2016-02-24 Richard Biener <rguenther@suse.de>
11698 Jakub Jelinek <jakub@redhat.com>
11699
11700 PR middle-end/69760
11701 * tree-scalar-evolution.c (interpret_rhs_expr): Re-write
11702 conditionally executed ops to well-defined overflow behavior.
11703
11704 2016-02-24 Jakub Jelinek <jakub@redhat.com>
11705
11706 PR middle-end/69915
11707 * tree.c (build_vector_from_ctor): Fix handling of VECTOR_CST
11708 elements.
11709
11710 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11711
11712 PR rtl-optimization/69886
11713 * gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode
11714 argument. Use it when checking validity of set instructions.
11715 (want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p.
11716 (compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p
11717 callsite.
11718 * rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype.
11719 * store-motion.c (find_moveable_store): Update
11720 can_assign_to_reg_without_clobbers_p callsite.
11721
11722 2016-02-24 Richard Biener <rguenther@suse.de>
11723
11724 PR middle-end/68963
11725 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix
11726 bogus check.
11727 (record_nonwrapping_iv): Do not fall back to the low/high bound
11728 for non-constant IV bases if the stmt is not always executed.
11729
11730 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11731
11732 * config/arm/arm-cores.def (cortex-a32): New entry.
11733 * config/arm/arm-tables.opt: Regenerate.
11734 * config/arm/arm-tune.md: Regenerate.
11735 * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a32.
11736 * config/arm/t-aprofile: Handle mcpu=cortex-a32.
11737 * doc/invoke.texi (ARM Options): Document cortex-a32 as value
11738 for -mcpu and -mtune.
11739
11740 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11741
11742 PR target/69875
11743 * config/arm/arm.h (TARGET_HAVE_LPAE): Define.
11744 * config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value.
11745 * config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern.
11746 (atomic_loaddi_1): Delete.
11747 (atomic_loaddi): Rewrite expander using the above changes.
11748
11749 2016-02-24 Jakub Jelinek <jakub@redhat.com>
11750
11751 PR c/69918
11752 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): Bump default from
11753 2 to 3.
11754
11755 2016-02-24 Jakub Jelinek <jakub@redhat.com>
11756 Richard Biener <rguenth@suse.de>
11757
11758 PR middle-end/69909
11759 * expr.c (expand_expr_real_1) <normal_inner_ref>: Avoid
11760 set_mem_attributes if tem is SSA_NAME which got expanded
11761 as a MEM.
11762
11763 2016-02-24 Richard Biener <rguenther@suse.de>
11764
11765 PR tree-optimization/69907
11766 * tree-vect-stmts.c (vectorizable_load): Check for gaps at the
11767 end of permutations for BB vectorization.
11768
11769 2016-02-24 Christian Bruel <christian.bruel@st.com>
11770
11771 * config/arm/arm-c.c (arm_option_override): Initialize
11772 target_option_current_node.
11773 * config/arm/arm.c (arm_pragma_target_parse): Replace
11774 build_target_option_node call by target_option_current_node.
11775 Set target_option_current_node.
11776 Fix comments.
11777
11778 2016-02-23 David Edelsohn <dje.gcc@gmail.com>
11779
11780 PR target/69810
11781 * config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from
11782 define_insn_and_split to define_insn.
11783 (zero_extendqi<mode>2_dot2): Same.
11784 (extendqi<mode>2_dot): Same.
11785 (extendqi<mode>2_dot2): Same.
11786
11787 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
11788
11789 * config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores
11790 and add bypass for AES{D,E} and AESMC pairs.
11791 * config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E}
11792 and AESMC pairs.
11793
11794 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
11795
11796 * config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
11797 series for reciprocal square root in Exynos M1.
11798
11799 2016-02-23 Martin Sebor <msebor@redhat.com>
11800
11801 PR c/69759
11802 * doc/extend.texi (Other Builtins): Document __builtin_alloca and
11803 __builtin_alloca_with_align.
11804
11805 2016-02-23 Richard Henderson <rth@redhat.com>
11806
11807 * config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS.
11808 (ix86_register_pragmas): Remove __seg_tls.
11809 * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove.
11810 * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it.
11811 (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove.
11812 (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove.
11813 (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove.
11814 * doc/extend.texi (__seg_tls): Remove item.
11815
11816 2016-02-23 Richard Biener <rguenther@suse.de>
11817
11818 * alloc-pool.h (struct allocation_object): Make id member
11819 conditional on CHECKING_P again.
11820 (get_instance): Adjust.
11821 (base_pool_allocator): Likewise.
11822
11823 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
11824
11825 * tree-parloops.c (create_parallel_loop, gen_parallel_loop)
11826 (parallelize_loops): In OpenACC kernels mode, set n_threads to
11827 zero.
11828 (pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
11829 flag_openacc.
11830 * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
11831
11832 2016-02-23 Richard Biener <rguenther@suse.de>
11833
11834 * mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
11835 * bitmap.h (struct bitmap_usage): Likewise.
11836 (bitmap_move): Declare.
11837 * bitmap.c (register_overhead): Take size_t argument.
11838 (bitmap_move): New function.
11839 * df-problems.c (df_rd_transfer_function): Use bitmap_move
11840 to properly account overhead.
11841 * tree.c (free_node): Use tree_size.
11842
11843 2016-02-23 Jakub Jelinek <jakub@redhat.com>
11844
11845 PR c++/69902
11846 * fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
11847 when inverting comparison.
11848
11849 PR c/69900
11850 * common.opt (Wunreachable-code): Add Warning flag.
11851
11852 2016-02-23 Mark Wielaard <mjw@redhat.com>
11853 Jakub Jelinek <jakub@redhat.com>
11854
11855 PR c/69911
11856 * cgraphunit.c (check_global_declaration): Check main_input_filename
11857 and DECL_SOURCE_FILE are not NULL.
11858
11859 2016-02-23 Martin Jambor <mjambor@suse.cz>
11860
11861 PR tree-optimization/69666
11862 * tree-sra.c (sra_modify_assign): Do not attempt to create
11863 default_def replacements for unscalarizable regions.
11864
11865 2016-02-20 Mark Wielaard <mjw@redhat.com>
11866
11867 PR c/28901
11868 * cgraphunit.c (check_global_declaration): Check level of
11869 warn_unused_const_variable and main_input_filename.
11870 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable=.
11871 (-Wunused-variable): For C implies -Wunused-const-variable=1.
11872 (-Wunused-const-variable): Explain levels 1 and 2.
11873
11874 2016-02-22 Jakub Jelinek <jakub@redhat.com>
11875
11876 PR target/69888
11877 * config/i386/i386.c (decide_alg): Ensure we don't recurse with
11878 identical arguments. Formatting and spelling fixes.
11879
11880 PR target/69885
11881 * doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
11882 be specified.
11883
11884 PR target/69894
11885 PR target/69895
11886 * config/m68k/t-opts (OPTIONS_H_EXTRA): Add m68k-microarchs.def
11887 and m68k-devices.def.
11888 * config/c6x/t-c6x (OPTIONS_H_EXTRA): Add c6x-isas.def.
11889 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add aarch64-arches.def.
11890
11891 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
11892
11893 * config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode
11894 and HImode registers.
11895
11896 2016-02-22 Richard Biener <rguenther@suse.de>
11897
11898 PR tree-optimization/69882
11899 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly
11900 preserve permutations present because of gaps.
11901 (vect_supported_load_permutation_p): Always continue checking
11902 permutations after vect_attempt_slp_rearrange_stmts.
11903
11904 2016-02-22 Bin Cheng <bin.cheng@arm.com>
11905
11906 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
11907 min_profitable_estimate, rather than min_profitable_iters.
11908
11909 2016-02-22 Jakub Jelinek <jakub@redhat.com>
11910
11911 PR target/69885
11912 * config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
11913 SImode for last match_operand.
11914
11915 2016-02-22 Martin Liska <mliska@suse.cz>
11916
11917 * hsa-gen.c (gen_hsa_clrsb): In case of zero value,
11918 return bitsize - 1 as the return value.
11919
11920 2016-02-22 Oleg Endo <olegendo@gcc.gnu.org>
11921
11922 PR target/69806
11923 PR target/54089
11924 * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p):
11925 Handle negative shift counts.
11926 * config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use
11927 force_reg on the shift constant.
11928 (lshrsi3): Likewise. Expand into lshrsi3_n* instead of lshrsi3_d.
11929 (lshrsi3_d): Handle negative shift counts.
11930
11931 2016-02-22 Richard Biener <rguenther@suse.de>
11932 Tom de Vries <tom@codesourcery.com>
11933
11934 * graph.c: Include dumpfile.h.
11935 (print_graph_cfg): Split into three overloads.
11936 * gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn.
11937
11938 2016-02-22 Tom de Vries <tom@codesourcery.com>
11939
11940 * gdbhooks.py (class DumpFn): Add and instantiate, adding command
11941 dump-fn.
11942
11943 2016-02-22 Richard Biener <rguenther@suse.de>
11944
11945 PR ipa/37448
11946 * ipa-inline-transform.c (inline_call): When not updating
11947 overall summaries adjust self size by the growth estimate.
11948 * ipa-inline.c (inline_to_all_callers_1): Add to the callers
11949 hash-set, do not update overall summaries here. Renamed from ...
11950 (inline_to_all_callers): ... this which is now wrapping the
11951 above and performing delayed overall summary update.
11952 (early_inline_small_functions): Delay updating of the overall
11953 summary.
11954
11955 2016-02-21 Markus Trippelsdorf <markus@trippelsdorf.de>
11956
11957 * tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
11958 variable.
11959
11960 2016-02-19 Jakub Jelinek <jakub@redhat.com>
11961
11962 PR driver/69805
11963 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use
11964 :%* in %:gt() argument.
11965 (greater_than_spec_func): Adjust for expecting only numbers,
11966 if there are more than two numbers, compare the last two.
11967
11968 2016-02-19 Jonathan Wakely <jwakely@redhat.com>
11969
11970 * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
11971 -Wnarrowing with -std.
11972
11973 2016-02-19 Jakub Jelinek <jakub@redhat.com>
11974
11975 PR c++/69851
11976 * expr.c (store_field): Don't use bit-field path if exp is
11977 COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
11978 different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
11979 and the assignment can be performed by bitwise copy. Formatting
11980 fix.
11981
11982 PR middle-end/69838
11983 * lra.c (lra_process_new_insns): If non-call exceptions are enabled,
11984 call copy_reg_eh_region_note_forward on before and/or after sequences
11985 and remove note from insn if it no longer can throw.
11986
11987 PR target/69820
11988 * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
11989 if TARGET_AVX512BW.
11990
11991 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11992
11993 * config/s390/vector.md: Add missing commutative operand markers
11994 to the patterns which qualify for one.
11995 * config/s390/vx-builtins.md: Likewise.
11996
11997 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11998
11999 * config/s390/vector.md (VI, VI_QHS): Add single element vector
12000 types to mode iterators.
12001 (vec_double): ... and mode attribute.
12002 * config/s390/vx-builtins.md (non_vec_int): Likewise.
12003
12004 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12005
12006 * config/s390/vector.md ("<ti*>add<mode>3", "<ti*>sub<mode>3"):
12007 Change the predicate of op2 from nonimmediate to general and let
12008 reload fix it if necessary.
12009
12010 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12011
12012 * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
12013
12014 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12015
12016 * config/s390/s390.c (s390_expand_vcond): Use the compare operand
12017 mode.
12018
12019 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12020
12021 * config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
12022 * config/s390/s390.c (s390_expand_vec_movstr): New function.
12023 * config/s390/s390.md ("movstr<P:mode>"): Call
12024 s390_expand_vec_movstr.
12025
12026 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12027
12028 * config/s390/s390.md: Add missing output modifier for operand 1
12029 to print it as address properly.
12030
12031 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12032
12033 * config/s390/2827.md: Rename ooo_* insn attributes to zEC12_*.
12034 * config/s390/2964.md: New file.
12035 * config/s390/s390.c (s390_get_sched_attrmask): Use the right set
12036 of insn grouping attributes depending on the CPU level.
12037 (s390_get_unit_mask): New function.
12038 (s390_sched_score): Remove the OOO from the scheduling macros.
12039 Add loop to calculate a score for the instruction mix.
12040 (s390_sched_reorder): Likewise plus improve debug output.
12041 (s390_sched_variable_issue): Rename macros as above. Calculate
12042 the unit distances after actually scheduling an insn. Improve
12043 debug output.
12044 (s390_sched_init): Clear last_scheduled_unit_distance array.
12045 * config/s390/s390.md: Include 2964.md.
12046
12047 2016-02-18 Jakub Jelinek <jakub@redhat.com>
12048
12049 PR target/69671
12050 * config/i386/sse.md (*<floatsuffix>floatv2div2sf2_mask_1,
12051 *avx512vl_<code>v2div2qi2_mask_1, *avx512vl_<code><mode>v4qi2_mask_1,
12052 *avx512vl_<code><mode>v8qi2_mask_1, *avx512vl_<code><mode>v4hi2_mask_1,
12053 *avx512vl_<code>v2div2hi2_mask_1, *avx512vl_<code>v2div2si2_mask_1,
12054 *avx512f_<code>v8div16qi2_mask_1): New insns.
12055
12056 2016-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
12057
12058 PR target/68404
12059 * config/rs6000/predicates.md (fusion_gpr_addis): Revert
12060 2016-02-09 change.
12061
12062 * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
12063 earlyclobber from target. Use wF constraint for fused memory
12064 address.
12065 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
12066
12067 2016-02-18 Jakub Jelinek <jakub@redhat.com>
12068 Martin Liska <mliska@suse.cz>
12069
12070 PR sanitizer/69863
12071 * cfgexpand.c (asan_sanitize_stack_p): New function.
12072 (partition_stack_vars): Use the function.
12073 (expand_stack_vars): Likewise.
12074 (defer_stack_allocation): Likewise.
12075 (expand_used_vars): Likewise.
12076
12077 2016-02-18 Richard Biener <rguenther@suse.de>
12078
12079 PR middle-end/69553
12080 * fold-const.c (operand_equal_p): Properly compare offsets for
12081 IMAGPART_EXPR and ARRAY_REF.
12082
12083 2016-02-18 Nick Clifton <nickc@redhat.com>
12084
12085 PR target/62254
12086 PR target/69610
12087 * config/arm/arm.c (arm_option_override_internal): Disable
12088 interworking if the target does not support thumb instructions.
12089 (arm_reload_in_hi): Handle the case where a register to register
12090 move needs reloading because there is no simple pattern to handle
12091 it.
12092 (arm_reload_out_hi): Likewise.
12093
12094 2016-02-18 Richard Biener <rguenther@suse.de>
12095
12096 PR middle-end/69854
12097 * match.pd: Don't use fold_binary or fold_unary for folding
12098 constants.
12099
12100 2016-02-17 Jakub Jelinek <jakub@redhat.com>
12101
12102 PR c++/69850
12103 * gimplify.c (gimplify_cond_expr): Call gimple_set_no_warning
12104 on the cond_stmt from TREE_NO_WARNING on COND_EXPR_COND.
12105 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Don't
12106 warn on gimple_no_warning_p statements.
12107
12108 2016-02-17 Jonathan Wakely <jwakely@redhat.com>
12109
12110 * doc/extend.texi (C++ Attributes): Correct description of
12111 warn_unused type attribute.
12112
12113 2016-02-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12114
12115 * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
12116 correct instruction.
12117
12118 2016-02-17 Richard Biener <rguenther@suse.de>
12119
12120 PR rtl-optimization/69609
12121 * bb-reorder.c (struct bbro_basic_block_data): Add priority member.
12122 (find_traces_1_round): When ending a trace update cached priority
12123 of successors.
12124 (bb_to_key): Use cached priority when available.
12125 (copy_bb): Initialize cached priority.
12126 (reorder_basic_blocks_software_trace_cache): Likewise.
12127
12128 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12129
12130 PR target/69161
12131 * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
12132 New predicate.
12133 (aarch64_comparison_operator): Break overly long line into two.
12134 (aarch64_comparison_operation): Likewise.
12135 * config/aarch64/aarch64.md (cstorecc4): Use
12136 aarch64_comparison_operator_mode instead of
12137 aarch64_comparison_operator.
12138 (cstore<mode>4): Likewise.
12139 (aarch64_cstore<mode>): Likewise.
12140 (*cstoresi_insn_uxtw): Likewise.
12141 (cstore<mode>_neg): Likewise.
12142 (*cstoresi_neg_uxtw): Likewise.
12143
12144 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12145
12146 PR target/69161
12147 * config/arm/predicates.md (arm_comparison_operator_mode):
12148 New predicate.
12149 * config/arm/arm.md (*mov_scc): Use arm_comparison_operator_mode
12150 instead of arm_comparison_operator.
12151 (*mov_negscc): Likewise.
12152 (*mov_notscc): Likewise.
12153 * config/arm/thumb2.md (*thumb2_mov_scc): Likewise.
12154 (*thumb2_mov_negscc): Likewise.
12155 (*thumb2_mov_negscc_strict_it): Likewise.
12156 (*thumb2_mov_notscc): Likewise.
12157 (*thumb2_mov_notscc_strict_it): Likewise.
12158
12159 2016-02-17 Wilco Dijkstra <wdijkstr@arm.com>
12160
12161 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
12162 Add missing return.
12163
12164 2016-02-17 Eric Botcazou <ebotcazou@adacore.com>
12165
12166 * config/visium/visium.c (machine_libfunc_index): New enum.
12167 (machine_libfuncs): New structure.
12168 (visium_libfuncs): New static variable.
12169 (TARGET_INIT_LIBFUNCS): Define to...
12170 (visium_init_libfuncs): ...this. New function.
12171 (expand_block_move_4): Use the appropriate libfunc.
12172 (expand_block_move_2): Likewise.
12173 (expand_block_move_1): Likewise.
12174 (expand_block_set_4): Likewise.
12175 (expand_block_set_2): Likewise.
12176 (expand_block_set_1): Likewise.
12177 (visium_trampoline_init): Likewise.
12178
12179 2016-02-17 Nick Clifton <nickc@redhat.com>
12180
12181 * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
12182 TI's devices.csv file as of March 2016.
12183
12184 2016-02-16 Kelvin Nilsen <kelvin@gcc.gnu.org>
12185
12186 PR Target/48344
12187 * opts-global.c (handle_common_deferred_options): Introduce and
12188 initialize two global variables to remember command-line options
12189 specifying a stack-limiting register.
12190 * opts.h: Add extern declarations of the two new global variables.
12191 * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx
12192 variable based on the values of the two new global variables.
12193
12194 2016-02-16 Jakub Jelinek <jakub@redhat.com>
12195
12196 PR c/69835
12197 * common.opt (Wnonnull-compare): New warning.
12198 * doc/invoke.texi (-Wnonnull): Remove text about comparison
12199 of arguments against NULL.
12200 (-Wnonnull-compare): Document.
12201 * Makefile.in (OBJS): Add gimple-ssa-nonnull-compare.o.
12202 * tree-pass.h (make_pass_warn_nonnull_compare): Declare.
12203 * passes.def (pass_warn_nonnull_compare): Add.
12204 * gimple-ssa-nonnull-compare.c: New file.
12205
12206 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
12207
12208 * config/aarch64/aarch64.c (cortexa57_tunings): Remove
12209 AARCH64_EXTRA_TUNE_RECIP_SQRT.
12210
12211 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
12212
12213 * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
12214 reciprocal sqrt for -mlow-precision-recip-sqrt.
12215
12216 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
12217 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12218
12219 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
12220 always use lane loads to construct non-constant vectors.
12221
12222 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
12223
12224 * config/aarch64/aarch64.md
12225 (arch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Fix register
12226 constraints for operand 3.
12227 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
12228
12229 2016-02-16 Jakub Jelinek <jakub@redhat.com>
12230 Richard Biener <rguenther@suse.de>
12231
12232 PR tree-optimization/69820
12233 * tree-vect-patterns.c (type_conversion_p): Return false if
12234 *orig_type is unsigned single precision or boolean.
12235 (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern):
12236 Formatting fix.
12237
12238 2016-02-16 Jakub Jelinek <jakub@redhat.com>
12239
12240 PR rtl-optimization/69764
12241 PR rtl-optimization/69771
12242 * optabs.c (expand_binop): Ensure for shift optabs invalid CONST_INT
12243 op1 is valid for GET_MODE_INNER (mode) and force it into a reg.
12244
12245 2016-02-16 Richard Biener <rguenther@suse.de>
12246
12247 PR tree-optimization/69776
12248 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
12249 sets from caller.
12250 (indirect_refs_may_alias_p): Likewise.
12251 (refs_may_alias_p_1): Pass alias sets as from ao_ref.
12252 * tree-ssa-sccvn.c (vn_reference_lookup): Also adjust vr alias-set
12253 according to tbaa_p.
12254 * tree-ssa-dom.c (lookup_avail_expr): Add tbaa_p flag.
12255 (optimize_stmt): For redundant store discovery do not allow tbaa.
12256
12257 2016-02-16 Bernd Schmidt <bschmidt@redhat.com>
12258
12259 PR tree-optimization/69714
12260 * tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
12261 Return NULL if we have irrelevant high bytes on BIG_ENDIAN.
12262
12263 2016-02-16 Claudiu Zissulescu <claziss@synopsys.com>
12264
12265 * config/arc/arc-modes.def (CC_FPU, CC_FPU_UNEQ): New modes.
12266 * config/arc/arc-opts.h (FPU_SP, FPU_SF, FPU_SC, FPU_SD, FPU_DP)
12267 (FPU_DF, FPU_DC, FPU_DD, FXP_DP): Define.
12268 * config/arc/arc.c (arc_init): Check FPU options.
12269 (get_arc_condition_code): Handle new CC_FPU* modes.
12270 (arc_select_cc_mode): Likewise.
12271 (arc_conditional_register_usage): Allow 64 bit datum into even-odd
12272 register pair only. Allow access for ARCv2 accumulator.
12273 (gen_compare_reg): Whenever we have FPU support use FPU compare
12274 instructions.
12275 (arc_reorg): Don't generate brcc insns when FPU compare
12276 instructions are involved.
12277 * config/arc/arc.h (TARGET_DPFP): Add TARGET_FP_DPAX condition.
12278 (TARGET_OPTFPE): Add condition when ARC EM can use optimized
12279 floating point emulation.
12280 (ACC_REG_FIRST, ACC_REG_LAST, ACCL_REGNO, ACCH_REGNO): Define.
12281 (REVERSE_CONDITION): Add new CC_FPU* modes.
12282 (TARGET_FP_SP_BASE): Define.
12283 (TARGET_FP_DP_BASE): Likewise.
12284 (TARGET_FP_SP_FUSED): Likewise.
12285 (TARGET_FP_DP_FUSED): Likewise.
12286 (TARGET_FP_SP_CONV): Likewise.
12287 (TARGET_FP_DP_CONV): Likewise.
12288 (TARGET_FP_SP_SQRT): Likewise.
12289 (TARGET_FP_DP_SQRT): Likewise.
12290 (TARGET_FP_DP_AX): Likewise.
12291 * config/arc/arc.md (ARCV2_ACC): New constant.
12292 (type): New fpu type attribute.
12293 (SDF): Conditional iterator.
12294 (cstore<mode>, cbranch<mode>): Change expand condition.
12295 (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3): New expands,
12296 handles FPU/FPX cases as well.
12297 * config/arc/arc.opt (mfpu): New option.
12298 * config/arc/fpx.md (addsf3_fpx, subsf3_fpx, mulsf3_fpx):
12299 Renamed.
12300 (adddf3, muldf3, subdf3): Removed.
12301 * config/arc/predicates.md (proper_comparison_operator): Recognize
12302 CC_FPU* modes.
12303 * config/arc/fpu.md: New file.
12304 * doc/invoke.texi (ARC Options): Document mfpu option.
12305
12306 2016-02-16 Richard Biener <rguenther@suse.de>
12307
12308 PR rtl-optimization/69291
12309 * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
12310 noce_operand_ok check.
12311
12312 2016-02-16 Tom de Vries <tom@codesourcery.com>
12313
12314 PR lto/67709
12315 * omp-low.c (simd_clone_create): Remove call to
12316 symtab->call_cgraph_insertion_hooks.
12317
12318 2016-02-16 Jakub Jelinek <jakub@redhat.com>
12319
12320 PR tree-optimization/69802
12321 * tree-ssa-reassoc.c (update_range_test): If op is
12322 SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
12323 op == 1 test of precision 1 integral op, otherwise handle
12324 that case as op itself. Fix up formatting.
12325 (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
12326 up formatting.
12327
12328 2016-02-16 Richard Biener <rguenther@suse.de>
12329
12330 PR tree-optimization/69586
12331 * tree-vrp.c (register_edge_assert_for_2): Handle all integral
12332 types for conversion sources.
12333
12334 2016-02-16 Richard Biener <rguenther@suse.de>
12335
12336 PR middle-end/69801
12337 * fold-const.c (operand_equal_p): For COND_EXPR zero operand
12338 mask OEP_ADDRESS_OF.
12339
12340 2016-02-16 Alan Modra <amodra@gmail.com>
12341
12342 PR target/68973
12343 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
12344 (p8_mtvsrd_df, p8_mtvsrd_sf): New.
12345 (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
12346 (p8_mtvsrwz): New.
12347 (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
12348 (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
12349 (p8_fmrgow_<mode>): Likewise.
12350 (reload_vsx_from_gpr<mode>): Make clobber IF. Adjust for above
12351 changes.
12352 (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
12353 (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
12354 to use movdi_internal64. Remove op0_di.
12355 * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
12356
12357 2016-02-15 Evandro Menezes <e.menezes@samsung.com>
12358
12359 Add support for the FCCMP insn types
12360
12361 * config/aarch64/aarch64.md (fccmp): Change insn type.
12362 (fccmpe): Likewise.
12363 * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
12364 * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
12365 * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
12366 * config/arm/xgene1.md (xgene1_fcmp): Likewise.
12367 * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
12368 * config/arm/types.md (fccmps): Add new insn type.
12369 (fccmpd): Likewise.
12370
12371 2016-02-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
12372
12373 * alias.c (get_alias_set): Fix a typo in comment.
12374
12375 2016-02-15 Richard Biener <rguenther@suse.de>
12376
12377 PR tree-optimization/69595
12378 * match.pd: Complete range test simplification to true.
12379
12380 2016-02-15 Bernd Schmidt <bschmidt@redhat.com>
12381
12382 PR rtl-optimization/69648
12383 * lra-constraints.c (update_ebb_live_info): Don't remove sets of
12384 pic_offset_table_rtx.
12385
12386 PR rtl-optimization/69752
12387 * ira.c (update_equiv_regs): When looking for more than a single SET,
12388 also take other side effects into account.
12389
12390 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
12391
12392 * config/s390/s390.c (s390_function_profiler): Add a new sequence
12393 for z900+ CPUs in 31-bit mode.
12394
12395 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
12396
12397 * common/config/s390/s390-common.c (s390_supports_split_stack):
12398 New function.
12399 (TARGET_SUPPORTS_SPLIT_STACK): New macro.
12400 * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
12401 * config/s390/s390.c (struct machine_function): New field
12402 split_stack_varargs_pointer.
12403 (s390_register_info): Mark r12 as clobbered if it'll be used as temp
12404 in s390_emit_prologue.
12405 (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
12406 vararg pointer.
12407 (morestack_ref): New global.
12408 (SPLIT_STACK_AVAILABLE): New macro.
12409 (s390_expand_split_stack_prologue): New function.
12410 (s390_live_on_entry): New function.
12411 (s390_va_start): Use split-stack vararg pointer if appropriate.
12412 (s390_asm_file_end): Emit the split-stack note sections.
12413 (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
12414 * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
12415 (UNSPECV_SPLIT_STACK_CALL): New unspec.
12416 (UNSPECV_SPLIT_STACK_DATA): New unspec.
12417 (split_stack_prologue): New expand.
12418 (split_stack_space_check): New expand.
12419 (split_stack_data): New insn.
12420 (split_stack_call): New expand.
12421 (split_stack_call_*): New insn.
12422 (split_stack_cond_call): New expand.
12423 (split_stack_cond_call_*): New insn.
12424
12425 2016-02-15 Richard Biener <rguenther@suse.de>
12426
12427 PR tree-optimization/69783
12428 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
12429 Add trivially correct cases.
12430
12431 2016-02-15 Tom de Vries <tom@codesourcery.com>
12432
12433 PR lto/69655
12434 * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
12435 do_force_output.
12436 * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
12437
12438 2016-02-15 Richard Biener <rguenther@suse.de>
12439
12440 PR tree-optimization/69776
12441 * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
12442 * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
12443 indicate whether we can use TBAA to disambiguate against stores.
12444 Use alias-set zero if not.
12445 (visit_reference_op_store): Do not use TBAA when looking up
12446 redundant stores.
12447 * tree-ssa-pre.c (compute_avail): Use TBAA here.
12448 (eliminate_dom_walker::before_dom_children): But not when looking
12449 up redundant stores.
12450
12451 2016-02-14 John David Anglin <danglin@gcc.gnu.org>
12452
12453 * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
12454
12455 2016-02-14 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
12456
12457 * config/i386/znver1.md
12458 (znver1_pop, znver1_pop_mem,
12459 znver1_load_imov_double_store,
12460 znver1_load_imov_direct_store,
12461 znver1_load_imov_direct_load,
12462 znver1_load_imov_double_load): Add new.
12463 (znver1_insn, znver1_insn_load): Add icmov type.
12464 (znver1_sseavx_fma,
12465 znver1_sseavx_fma_load,
12466 znver1_avx256_fma,
12467 znver1_avx256_fma_load): Fix pipe usage.
12468
12469 2016-02-14 Alan Modra <amodra@gmail.com>
12470
12471 PR target/68973
12472 * reloads.c (find_reloads_address_1): For pre/post-inc/dec
12473 with an invalid hard reg, reload just the reg not the entire
12474 pre/post-inc/dec address expression.
12475
12476 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
12477
12478 PR target/67260
12479 * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
12480 fixed R1_REG scratch reg.
12481 (sibcall_value_pcrel_fdpic): Likewise.
12482
12483 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
12484
12485 PR target/67636
12486 PR target/64345
12487 * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
12488
12489 2016-02-12 Walter Lee <walt@tilera.com>
12490
12491 * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
12492 * config/tilegx/t-tilegx: Likewise.
12493
12494 2016-02-12 David Malcolm <dmalcolm@redhat.com>
12495
12496 PR other/69554
12497 * diagnostic-show-locus.c (struct line_span): New struct.
12498 (layout::get_first_line): Delete.
12499 (layout::get_last_line): Delete.
12500 (layout::get_num_line_spans): New member function.
12501 (layout::get_line_span): Likewise.
12502 (layout::print_heading_for_line_span_index_p): Likewise.
12503 (layout::get_expanded_location): Likewise.
12504 (layout::calculate_line_spans): Likewise.
12505 (layout::m_first_line): Delete.
12506 (layout::m_last_line): Delete.
12507 (layout::m_line_spans): New field.
12508 (layout::layout): Update comment. Replace m_first_line and
12509 m_last_line with m_line_spans, replacing their initialization
12510 with a call to calculate_line_spans.
12511 (diagnostic_show_locus): When printing source lines and
12512 annotations, rather than looping over a single span
12513 of lines, instead loop over each line_span within
12514 the layout, with an inner loop over the lines within them.
12515 Call the context's start_span callback when changing line spans.
12516 * diagnostic.c (diagnostic_initialize): Initialize start_span.
12517 (diagnostic_build_prefix): Break out the building of the location
12518 part of the string into...
12519 (diagnostic_get_location_text): ...this new function, rewriting
12520 it from nested ternary expressions to a sequence of "if"
12521 statements.
12522 (default_diagnostic_start_span_fn): New function.
12523 * diagnostic.h (diagnostic_start_span_fn): New typedef.
12524 (diagnostic_context::start_span): New field.
12525 (default_diagnostic_start_span_fn): New prototype.
12526
12527 2016-02-12 David Malcolm <dmalcolm@redhat.com>
12528
12529 PR driver/69779
12530 * gcc.c (driver::finalize): Fix cleanup of "specs".
12531
12532 2016-02-12 David Malcolm <dmalcolm@redhat.com>
12533
12534 PR driver/69265
12535 PR driver/69453
12536 * gcc.c (driver::driver): Initialize m_option_suggestions.
12537 (driver::~driver): Clean up m_option_suggestions.
12538 (suggest_option): Convert to...
12539 (driver::suggest_option): ...this, and split out into
12540 driver::build_option_suggestions and find_closest_string.
12541 (driver::build_option_suggestions): New function, from
12542 first half of suggest_option. Special-case
12543 OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
12544 the sanitizer_opts array. For options of enum types, add the
12545 various enum values to the candidate strings.
12546 (driver::handle_unrecognized_options): Remove "const".
12547 * gcc.h (driver::handle_unrecognized_options): Likewise.
12548 (driver::build_option_suggestions): New decl.
12549 (driver::suggest_option): New decl.
12550 (driver::m_option_suggestions): New field.
12551 * opts-common.c (add_misspelling_candidates): New function.
12552 * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
12553 and make non-static.
12554 * opts.h (sanitizer_opts): New array decl.
12555 (add_misspelling_candidates): New function decl.
12556 * spellcheck.c (find_closest_string): New function.
12557 * spellcheck.h (find_closest_string): New function decl.
12558
12559 2016-02-12 Jakub Jelinek <jakub@redhat.com>
12560
12561 PR rtl-optimization/69764
12562 PR rtl-optimization/69771
12563 * optabs.c (expand_binop_directly): For shift_optab_p, force
12564 convert_modes with VOIDmode if xop1 has VOIDmode.
12565
12566 2016-02-12 Ilya Enkovich <enkovich.gnu@gmail.com>
12567
12568 PR target/69729
12569 * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
12570 to correctly determine instrumentation thunks.
12571
12572 2016-02-12 Jakub Jelinek <jakub@redhat.com>
12573
12574 PR ipa/69241
12575 * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
12576 type by reference, force lhs on the call.
12577
12578 PR ipa/68672
12579 * ipa-split.c (split_function): Don't compute/use main_part_return_p.
12580 Compute retval and retbnd early in all cases if split_part_return_p
12581 and return_bb is not EXIT. Remove all clobber stmts and reset
12582 all debug stmts that refer to SSA_NAMEs defined in split part,
12583 except if it is retval, in that case replace the old retval with the
12584 lhs of the call to the split part.
12585
12586 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
12587
12588 revert:
12589 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
12590
12591 PR middle-end/66726
12592 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
12593 whose result is used in PHI.
12594 (maybe_optimize_range_tests): Likewise.
12595 (final_range_test_p): Likweise.
12596
12597 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
12598
12599 PR middle-end/66726
12600 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
12601 whose result is used in PHI.
12602 (maybe_optimize_range_tests): Likewise.
12603 (final_range_test_p): Likweise.
12604
12605 2016-02-12 Jakub Jelinek <jakub@redhat.com>
12606
12607 * cgraph.c: Spelling fixes - behaviour -> behavior and
12608 neighbour -> neighbor.
12609 * target.def: Likewise.
12610 * sel-sched.c: Likewise.
12611 * config/mips/mips.c: Likewise.
12612 * config/arc/arc.md: Likewise.
12613 * config/arm/cortex-a57.md: Likewise.
12614 * config/arm/arm.c: Likewise.
12615 * config/arm/neon.md: Likewise.
12616 * config/arm/arm-c.c: Likewise.
12617 * config/vms/vms-c.c: Likewise.
12618 * config/s390/s390.c: Likewise.
12619 * config/i386/znver1.md: Likewise.
12620 * config/i386/i386.c: Likewise.
12621 * config/ia64/hpux-unix2003.h: Likewise.
12622 * config/msp430/msp430.md: Likewise.
12623 * config/rx/rx.c: Likewise.
12624 * config/rx/rx.md: Likewise.
12625 * config/aarch64/aarch64-simd.md: Likewise.
12626 * config/aarch64/aarch64.c: Likewise.
12627 * config/nvptx/nvptx.c: Likewise.
12628 * config/bfin/bfin.c: Likewise.
12629 * config/cris/cris.opt: Likewise.
12630 * config/rs6000/rs6000.c: Likewise.
12631 * target.h: Likewise.
12632 * spellcheck.c: Likewise.
12633 * ira-build.c: Likewise.
12634 * tree-inline.c: Likewise.
12635 * builtins.c: Likewise.
12636 * lra-constraints.c: Likewise.
12637 * explow.c: Likewise.
12638 * hwint.h: Likewise.
12639 * targhooks.c: Likewise.
12640 * tree-vect-data-refs.c: Likewise.
12641 * expr.c: Likewise.
12642 * doc/tm.texi: Likewise.
12643 * doc/extend.texi: Likewise.
12644 * doc/install.texi: Likewise.
12645 * doc/md.texi: Likewise.
12646 * tree-ssa-tail-merge.c: Likewise.
12647 * sched-int.h: Likewise.
12648 * match.pd: Likewise.
12649 * sched-ebb.c: Likewise.
12650 * target.def (omit_struct_return_reg): Likewise.
12651 * gimple-ssa-isolate-paths.c: Likewise.
12652 (find_implicit_erroneous_behaviour): Renamed to...
12653 (find_implicit_erroneous_behavior): ... this.
12654 (find_explicit_erroneous_behaviour): Renamed to...
12655 (find_explicit_erroneous_behavior): ... this.
12656 (gimple_ssa_isolate_erroneous_paths): Adjust caller.
12657
12658 2016-02-11 Segher Boessenkool <segher@kernel.crashing.org>
12659
12660 PR rtl-optimization/64682
12661 PR rtl-optimization/69567
12662 PR rtl-optimization/69737
12663 * combine.c (distribute_notes) <REG_DEAD>: If the register is set
12664 in I2 as well, just lose it.
12665
12666 2016-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12667
12668 * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
12669 New variable.
12670 (aarch64_last_printed_tune_string): Likewise.
12671 (aarch64_declare_function_name): Only output .arch assembler
12672 directive if it will be different from the previously output
12673 directive. Same for .tune comment but only if -dA is set.
12674 (aarch64_start_file): New function.
12675 (TARGET_ASM_FILE_START): Define.
12676
12677 2016-02-11 David Malcolm <dmalcolm@redhat.com>
12678
12679 PR plugins/69758
12680 * Makefile.in (PLUGIN_HEADERS): Add params.list.
12681
12682 2016-02-11 Jakub Jelinek <jakub@redhat.com>
12683
12684 PR target/65313
12685 * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
12686 -Wmaybe-uninitialized warning.
12687
12688 2016-02-11 Oleg Endo <olegendo@gcc.gnu.org>
12689
12690 PR target/69713
12691 * config/sh/sh.md (casesi_worker_0): Add T_REG use.
12692
12693 2016-02-11 Richard Biener <rguenther@suse.de>
12694
12695 PR rtl-optimization/69291
12696 * ifcvt.c (noce_try_store_flag_constants): Do not allow
12697 subexpressions affected by changing the result.
12698
12699 2016-02-10 Vladimir Makarov <vmakarov@redhat.com>
12700
12701 PR target/69148
12702 * lra-constraints.c (curr_insn_transform): Find in/out operands
12703 for secondary memory moves. Update dups.
12704
12705 2016-02-10 Yuri Rumyantsev <ysrumyan@gmail.com>
12706
12707 PR tree-optimization/69652
12708 * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
12709 to nested loop, did source re-formatting, skip debug statements,
12710 add check on statement with volatile operand, remove dead scalar
12711 statements.
12712
12713 2016-02-10 Jakub Jelinek <jakub@redhat.com>
12714 Patrick Palka <ppalka@gcc.gnu.org>
12715
12716 PR ipa/69241
12717 PR c++/69649
12718 * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
12719 calls if the return type is TREE_ADDRESSABLE.
12720 * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
12721 * ipa-split.c (split_function): Fix doubled "we" in comment.
12722 Use void return type for the split part even if
12723 !split_point->split_part_set_retval.
12724
12725 2016-02-10 Bin Cheng <bin.cheng@arm.com>
12726
12727 PR tree-optimization/68021
12728 * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
12729 when computing the value of biv cand by itself.
12730
12731 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
12732
12733 * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
12734 (cortexa57_tunings): Likewise.
12735 (cortexa72_tunings): Likewise.
12736 (arch_macro_fusion_pair_p): Add support for AES fusion.
12737 * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
12738 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
12739 Allow virtual registers before reload so early scheduling works.
12740 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
12741 correct latency and pipeline.
12742 (cortex_a57_crypto_complex): Likewise.
12743 (cortex_a57_crypto_xor): Likewise.
12744 (define_bypass): Add AES bypass.
12745
12746 2016-02-10 Richard Biener <rguenther@suse.de>
12747
12748 PR tree-optimization/69726
12749 * passes.def: Add DCE pass before late uninit.
12750 * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
12751 really fixup if-conversions job.
12752
12753 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
12754
12755 * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
12756 (arm_cortex_a57_tune): Likewise.
12757 (aarch_macro_fusion_pair_p): Add support for AES fusion.
12758 * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
12759
12760 2016-02-10 Eric Botcazou <ebotcazou@adacore.com>
12761
12762 * timevar.def (TV_PHASE_DBGINFO): Delete.
12763 (TV_PHASE_CHECK_DBGINFO): Likewise.
12764 * varpool.c (varpool_node::assemble_decl): Do not change timevar.
12765
12766 2016-02-10 Richard Biener <rguenther@suse.de>
12767
12768 PR tree-optimization/69719
12769 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
12770 Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
12771
12772 2016-02-09 Andrew Pinski <apinski@cavium.com>
12773
12774 PR tree-opt/69282
12775 * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
12776 get_vcond_mask_icode returns false.
12777
12778 2016-02-09 Michael Meissner <meissner@linux.vnet.ibm.com>
12779
12780 PR target/68404
12781 * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
12782 an ADDIS that adds a pointer to a large constant that sets the
12783 upper16 bits with a load operation.
12784
12785 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
12786
12787 PR target/68532
12788 * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
12789 order.
12790 * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
12791 endian.
12792 (vzipq_s16): Likewise.
12793 (vzipq_s32): Likewise.
12794 (vzipq_f32): Likewise.
12795 (vzipq_u8): Likewise.
12796 (vzipq_u16): Likewise.
12797 (vzipq_u32): Likewise.
12798 (vzipq_p8): Likewise.
12799 (vzipq_p16): Likewise.
12800
12801 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
12802
12803 PR target/68532
12804 * config/arm/arm.c (neon_endian_lane_map): New function.
12805 (neon_vector_pair_endian_lane_map): New function.
12806 (arm_evpc_neon_vuzp): Allow for big endian lane order.
12807 * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
12808 endian.
12809 (vuzpq_s16): Likewise.
12810 (vuzpq_s32): Likewise.
12811 (vuzpq_f32): Likewise.
12812 (vuzpq_u8): Likewise.
12813 (vuzpq_u16): Likewise.
12814 (vuzpq_u32): Likewise.
12815 (vuzpq_p8): Likewise.
12816 (vuzpq_p16): Likewise.
12817
12818 2016-02-11 Alexandre Oliva <aoliva@redhat.com>
12819
12820 PR target/69634
12821 * regstat.c (regstat_bb_compute_calls_crossed): Disregard
12822 debug insns.
12823
12824 2016-02-09 Uros Bizjak <ubizjak@gmail.com>
12825
12826 * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
12827 truncate const_int operand 1 to QImode.
12828
12829 2016-02-09 Eric Botcazou <ebotcazou@adacore.com>
12830
12831 * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
12832 corresponding to an abnormal edge.
12833
12834 2016-02-09 Tom de Vries <tom@codesourcery.com>
12835
12836 PR tree-optimization/69599
12837 * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
12838 function.
12839 (find_func_aliases_for_builtin_call, find_func_clobbers)
12840 (ipa_pta_execute): Handle case that foo and foo._0 are not in same lto
12841 partition.
12842
12843 2016-02-09 Richard Biener <rguenther@suse.de>
12844
12845 PR tree-optimization/69715
12846 * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
12847 LHS on calls as non-rewritable.
12848
12849 2016-02-09 Tom de Vries <tom@codesourcery.com>
12850
12851 PR lto/69707
12852 * lto-wrapper.c (append_diag_options): New function.
12853 (compile_offload_image): Call append_diag_options.
12854
12855 2016-02-08 Sandra Loosemore <sandra@codesourcery.com>
12856
12857 PR other/69722
12858 * doc/extend.texi (Flag Output Operands): Correct sectioning.
12859 Minor copy-edit to fix verb tenses.
12860
12861 2016-02-08 Jakub Jelinek <jakub@redhat.com>
12862
12863 PR tree-optimization/69209
12864 * ipa-split.c (split_function): If split part is not
12865 returning retval, retval has gimple type but is not
12866 gimple value, force it into a SSA_NAME first.
12867
12868 2016-02-08 Nicklas Bo Jensen <nbjensen@gmail.com>
12869
12870 * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
12871 outdated section.
12872
12873 2016-02-08 Jason Merrill <jason@redhat.com>
12874
12875 PR c++/69631
12876 * convert.c (convert_to_integer_1): Check dofold on truncation
12877 distribution.
12878 (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
12879 (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
12880 Rename from *_nofold.
12881 * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
12882 (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
12883
12884 2016-02-08 Bernd Schmidt <bschmidt@redhat.com>
12885
12886 PR target/60410
12887 * tree.c (build_common_tree_nodes): Remove short_double argument.
12888 All callers changed.
12889 * tree.h (build_common_tree_nodes): Adjust declaration.
12890 * doc/invoke.texi (-fshort-double): Remove documentation.
12891 * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
12892 MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
12893 * lto-wrapper.c (merge_and_complain, append_compiler_options)
12894 (append_linker_options): Don't handle OPT_fshort_double.
12895
12896 PR rtl-optimization/68730
12897 * lra-remat.c (insn_to_cand_activation): New static variable.
12898 (lra_remat): Allocate and free it.
12899 (create_cand): New arg activation. Initialize a field in
12900 insn_to_cand_activation if it is nonnull.
12901 (create_cands): Pass the activation insn to create_cand when making
12902 a candidate involving an output reload. Reorganize code a little.
12903 (do_remat): Keep track of active status of candidates in a separate
12904 bitmap.
12905
12906 2016-02-08 Richard Biener <rguenther@suse.de>
12907
12908 PR tree-optimization/69719
12909 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
12910 Properly use absolute of the difference of the two offsets to
12911 compare or adjust the segment length.
12912
12913 2016-02-08 Richard Biener <rguenther@suse.de>
12914 Jeff Law <law@redhat.com>
12915
12916 PR target/68273
12917 * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
12918 types for anonymous SSA names.
12919
12920 2016-02-08 Richard Biener <rguenther@suse.de>
12921
12922 PR rtl-optimization/69274
12923 * ira.c (ira_setup_alts): Do not change recog_data.operand order.
12924
12925 2016-02-08 Jeff Law <law@redhat.com>
12926
12927 PR tree-optimization/65917
12928 * tree-ssa-dom.c (record_temporary_equivalences): Record both
12929 equivalences from if (x == y) style conditionals.
12930 (loop_depth_of_name): Remove.
12931 (record_equality): Remove loop depth check.
12932 * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
12933 (const_and_copies::record_const_or_copy_raw): New member function.
12934 * tree-ssa-scopedtables.c
12935 (const_and_copies::record_const_or_copy_raw): New, factored out of
12936 (const_and_copies::record_const_or_copy): Call new member function.
12937
12938 2016-02-05 Jeff Law <law@redhat.com>
12939
12940 PR tree-optimization/68541
12941 * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
12942 (count_stmts_in_block): New function.
12943 (poor_ifcvt_candidate_code): Likewise.
12944 (is_feasible_trace): Add some heuristics to determine when path
12945 splitting is profitable.
12946 (find_block_to_duplicate_for_splitting_paths): Make sure the graph
12947 is a diamond with a single exit.
12948
12949 2016-02-05 Martin Sebor <msebor@redhat.com>
12950
12951 PR c++/69662
12952 * doc/invoke.texi: Update -Wplacement-new to take an optional
12953 argument.
12954
12955 2016-02-06 Richard Henderson <rth@redhat.com>
12956
12957 PR c/69643
12958 * tree.c (tree_nop_conversion_p): Do not strip casts into or
12959 out of non-standard address spaces.
12960
12961 2016-02-05 Jakub Jelinek <jakub@redhat.com>
12962
12963 PR rtl-optimization/69691
12964 * lra-eliminations.c (move_plus_up): Don't add the addend twice.
12965
12966 2016-02-05 Pat Haugen <pthaugen@us.ibm.com>
12967
12968 * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
12969 * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
12970 (*ieee128_mfvsrd_64bit): Likewise.
12971 (*ieee128_mfvsrd_32bit): Likewise.
12972
12973 2016-02-05 Ilya Enkovich <enkovich.gnu@gmail.com>
12974
12975 PR target/69369
12976 Revert r232560:
12977 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
12978
12979 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
12980 instrumented_version.
12981
12982 2016-01-05 Jeremy Bennett <jeremy.bennett@embecosm.com>
12983
12984 * doc/invoke.texi (Optimize Options): In table of --param options
12985 rename second occurrence of tracer-min-branch-ratio to
12986 tracer-min-branch-probability, rename
12987 tracer-min-branch-ratio-feedback to
12988 tracer-min-branch-probability-feedback and clarify description,
12989 rename sched-spec-state-edge-prob-cutoff to
12990 sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
12991 to selsched-insns-to-rename, rename lto-minpartition to
12992 lto-min-partition, delete reorder-blocks-duplicate and
12993 reorder-blocks-duplicate-feedback.
12994
12995 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12996
12997 * config/s390/s390.c (s390_register_info_set_ranges): Remove
12998 superfluous loops.
12999
13000 2016-02-05 Dominik Vogt <vogt@linux.vnet.ibm.com>
13001
13002 * doc/extend.texi: S/390: Correct some typos.
13003
13004 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13005
13006 * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
13007
13008 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13009
13010 PR target/69625
13011 * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
13012 (s390_register_info_gprtofpr): Use new macros above.
13013 (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
13014 its name.
13015 (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
13016 its name. Adjust restore and save gpr ranges.
13017 (s390_register_info_set_ranges): New function.
13018 (s390_register_info): Use new macros above. Call
13019 s390_register_info_set_ranges.
13020 (s390_optimize_register_info): Likewise.
13021 (s390_hard_regno_rename_ok): Use new macros.
13022 (s390_hard_regno_scratch_ok): Likewise.
13023 (s390_emit_epilogue): Likewise.
13024 (s390_can_use_return_insn): Likewise.
13025 (s390_optimize_prologue): Likewise.
13026 * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
13027
13028 2016-02-05 Jakub Jelinek <jakub@redhat.com>
13029
13030 PR bootstrap/69677
13031 * config/i386/i386.c (convert_scalars_to_vector): Readd stack
13032 alignment fixes.
13033 (ix86_option_override_internal): Disable TARGET_STV even for
13034 -m{incoming,preferred}-stack-boundary=3.
13035
13036 2016-02-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13037
13038 * config.gcc: Mark deprecated rtems targets as obsolete.
13039
13040 2016-02-04 Segher Boessenkool <segher@kernel.crashing.org>
13041
13042 PR rtl-optimization/64682
13043 PR rtl-optimization/69567
13044 * combine.c (distribute_notes) <REG_DEAD>: Place the death note
13045 before I2 only if the register is both used and set in I2.
13046
13047 2016-02-04 DJ Delorie <dj@redhat.com>
13048
13049 * config/msp430/msp430.c (msp430_start_function): Add function type.
13050
13051 2016-02-04 Jakub Jelinek <jakub@redhat.com>
13052
13053 PR fortran/69368
13054 * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
13055
13056 2016-02-04 Uros Bizjak <ubizjak@gmail.com>
13057
13058 PR rtl-optimization/69577
13059 Revert:
13060 2015-10-29 Richard Henderson <rth@redhat.com>
13061
13062 PR target/68124
13063 PR rtl-opt/67609
13064 * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
13065 sse check to the exact conditions of PR 67609.
13066
13067 2016-02-04 Michael Meissner <meissner@linux.vnet.ibm.com>
13068
13069 PR target/69667
13070 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
13071 instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
13072 not allowed into the traditional Altivec registers.
13073 (movtd_64bit_nodm): Likewise.
13074 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
13075
13076 2016-02-04 David Malcolm <dmalcolm@redhat.com>
13077
13078 * config/aarch64/cortex-a57-fma-steering.c
13079 (aarch64_register_fma_steering): Remove "static" from arguments
13080 to register_pass.
13081
13082 2016-02-04 Wilco Dijkstra <wdijkstr@arm.com>
13083
13084 PR target/69619
13085 * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
13086 twice when complex.
13087
13088 2016-02-04 Mike Frysinger <vapier@gentoo.org>
13089
13090 * doc/invoke.texi: Delete -mno-fma4.
13091
13092 2016-02-04 Richard Sandiford <richard.sandiford@arm.com>
13093
13094 PR rtl-optimization/69577
13095 * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
13096 (find_subregs_of_mode): Update accordingly. Iterate over partial
13097 definitions.
13098
13099 2016-02-04 Alan Lawrence <alan.lawrence@arm.com>
13100
13101 * config/arm/arm-protos.h (neon_reinterpret): Remove.
13102 * config/arm/arm.c (neon_reinterpret): Remove.
13103 * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
13104 vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
13105 vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
13106 vreinterpretti): Remove.
13107 * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
13108 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
13109 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
13110 neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
13111 neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
13112 neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
13113 * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
13114 vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
13115 vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
13116 vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
13117 vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
13118 vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
13119 vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
13120 vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
13121 vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
13122 vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
13123 vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
13124 vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
13125 vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
13126 vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
13127 vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
13128 vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
13129 vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
13130 vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
13131 vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
13132 vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
13133 vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
13134 vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
13135 vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
13136 vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
13137 vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
13138 vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
13139 vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
13140 vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
13141 vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
13142 vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
13143 vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
13144 vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
13145 vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
13146 vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
13147 vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
13148 vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
13149 vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
13150 vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
13151 vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
13152 vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
13153 vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
13154 vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
13155 vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
13156 vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
13157 vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
13158 vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
13159 vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
13160 vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
13161 vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
13162 vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
13163 vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
13164 vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
13165 vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
13166 vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
13167 vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
13168 vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
13169 vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
13170 vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
13171 vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
13172 vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
13173 vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
13174 vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
13175 vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
13176 vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
13177 vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
13178 vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
13179 vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
13180 vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
13181 vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
13182 vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
13183 vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
13184 vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
13185 vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
13186 vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
13187 vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
13188 vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
13189 vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
13190 vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
13191 vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
13192 vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
13193 vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
13194 vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
13195 vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
13196 vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
13197 vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
13198 vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
13199 vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
13200 vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
13201 vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
13202 vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
13203 vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
13204 vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
13205 vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
13206 vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
13207 vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
13208 vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
13209 vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
13210
13211 2016-02-04 Martin Liska <mliska@suse.cz>
13212
13213 PR sanitizer/69276
13214 * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
13215 that are gimple_store_p.
13216 (maybe_instrument_call): Likewise.
13217
13218 2016-02-04 Bin Cheng <bin.cheng@arm.com>
13219
13220 * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
13221 register scaling out of memory reference and comment why.
13222
13223 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13224
13225 PR target/65932
13226 PR target/67714
13227 * cse.c (cse_insn): Pass NULL to fold_rtx when initially
13228 folding the source of a SET.
13229
13230 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13231
13232 PR target/65932
13233 PR target/67714
13234 * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
13235 the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
13236
13237 2016-02-04 Jim Wilson <jim.wilson@linaro.org>
13238
13239 PR target/65932
13240 PR target/67714
13241 * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
13242 HImode.
13243
13244 2016-02-04 Christian Bruel <christian.bruel@st.com>
13245
13246 * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
13247 * config/arm/arm.c (arm_set_current_function): Likewise.
13248
13249 2016-02-04 Jakub Jelinek <jakub@redhat.com>
13250 Ilya Enkovich <enkovich.gnu@gmail.com>
13251 H.J. Lu <hongjiu.lu@intel.com>
13252
13253 PR target/69454
13254 * config/i386/i386.c (convert_scalars_to_vector): Remove
13255 stack alignment fixes.
13256 (ix86_option_override_internal): Disable TARGET_STV if stack
13257 might not be aligned enough.
13258 (ix86_minimum_alignment): Assert that TARGET_STV is false.
13259
13260 2016-02-04 Victoria Stepanyan <victoria.stepanyan@amd.com>
13261
13262 * config/i386/x86-tune.def: Disable default prefetching
13263 for -march=znver1.
13264
13265 2016-02-03 Michael Meissner <meissner@linux.vnet.ibm.com>
13266 Vladimir Makarov <vmakarov@redhat.com>
13267
13268 PR target/69461
13269 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
13270 in validating fused toc addresses.
13271
13272 2016-02-03 Jakub Jelinek <jakub@redhat.com>
13273
13274 PR c/69627
13275 * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
13276 range->m_caret fields if range->m_show_caret_p is false.
13277
13278 PR target/69644
13279 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
13280 Force oldval into register if it does not satisfy reg_or_short_operand
13281 predicate. Fix up formatting.
13282
13283 2016-02-03 Vladimir Makarov <vmakarov@redhat.com>
13284 Alexandre Oliva <aoliva@redhat.com>
13285
13286 PR target/69461
13287 * lra-constraints.c (simplify_operand_subreg): Check additionally
13288 address validity after potential reloading.
13289 (process_address_1): Check insns validity. In case of failure do
13290 nothing.
13291
13292 2016-02-03 Kirill Yukhin <kirill.yukhin@intel.com>
13293
13294 PR target/69118
13295 * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
13296 Fix target.
13297
13298 2016-02-02 Jakub Jelinek <jakub@redhat.com>
13299
13300 * wide-int.cc (canonize_uhwi): New function.
13301 (wi::divmod_internal): Use it.
13302
13303 2016-02-02 James Norris <jnorris@codesourcery.com
13304
13305 * gimplify.c (omp_notice_variable): Add usage check.
13306
13307 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
13308
13309 * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
13310 like LE, GE, LT, GT when emitting relational operator.
13311
13312 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
13313
13314 * ira-costs.c (find_costs_and_classes): Add extra argument.
13315 * target.def (ira_change_pseudo_allocno_class): Add parameter.
13316 * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
13317 * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
13318 * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
13319 Add best_class parameter, and return it if not ALL_REGS.
13320 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
13321 Add parameter.
13322 * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
13323 Update target hook.
13324
13325 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
13326
13327 * config/aarch64/aarch64.c
13328 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
13329 (aarch64_ira_change_pseudo_allocno_class): New function.
13330
13331 2016-02-02 Uros Bizjak <ubizjak@gmail.com>
13332
13333 PR target/67032
13334 * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
13335
13336 2016-02-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
13337
13338 * config/avr/avr.c (avr_option_override): Set
13339 PARAM_ALLOW_STORE_DATA_RACES to 1.
13340
13341 2016-02-02 Richard Biener <rguenther@suse.de>
13342
13343 PR tree-optimization/69595
13344 * match.pd: Add range test simplifications to true/false.
13345
13346 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
13347
13348 * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
13349 * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
13350 instead.
13351
13352 2016-02-02 Richard Biener <rguenther@suse.de>
13353
13354 PR tree-optimization/69606
13355 * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
13356 info on the result before moving a stmt.
13357
13358 2016-02-02 Yuri Rumyantsev <ysrumyan@gmail.com>
13359
13360 PR middle-end/68542
13361 * config/i386/i386.c (ix86_expand_branch): Add support for conditional
13362 branch with vector comparison.
13363 * config/i386/sse.md (VI48_AVX): New mode iterator.
13364 (define_expand "cbranch<mode>4): Add support for conditional branch
13365 with vector comparison.
13366 * tree-vect-loop.c (optimize_mask_stores): New function.
13367 * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
13368 has_mask_store field of vect_info.
13369 * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
13370 vectorized loops having masked stores after vec_info destroy.
13371 * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
13372 correspondent macros.
13373 (optimize_mask_stores): Add prototype.
13374
13375 2016-02-02 Alan Modra <amodra@gmail.com>
13376
13377 PR target/69548
13378 * config/rs6000/predicates.md (quad_int_reg_operand): Don't
13379 allow subregs.
13380
13381 2016-02-02 Alan Modra <amodra@gmail.com>
13382
13383 PR target/68662
13384 * config/rs6000/rs6000.c (need_toc_init): New var, set it
13385 whenever toc_label_name used.
13386 (rs6000_file_start): Don't set up toc section here,
13387 (rs6000_output_function_epilogue): do so here instead,
13388 (rs6000_xcoff_file_start): and here.
13389 * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
13390 (load_toc_aix_di): Likewise.
13391
13392 2016-02-01 Jakub Jelinek <jakub@redhat.com>
13393
13394 PR rtl-optimization/69592
13395 * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
13396 (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
13397 (num_sign_bit_copies_binary_arith_p): New inline function.
13398 (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
13399
13400 2016-02-01 Jeff Law <law@redhat.com>
13401
13402 PR tree-optimization/69580
13403 * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
13404 * tree-ssa-threadbackward.c
13405 (fsm_find_control_statement_thread_paths): Do not try to walk
13406 through large PHI nodes.
13407
13408 2016-02-01 Jakub Jelinek <jakub@redhat.com>
13409
13410 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
13411 when count is incremented above limit, don't analyze further
13412 insns afterwards.
13413
13414 * omp-low.c (oacc_parse_default_dims): Avoid
13415 -Wsign-compare warning, make sure value fits into int
13416 rather than just unsigned int.
13417
13418 2016-02-01 Bin Cheng <bin.cheng@arm.com>
13419
13420 PR tree-optimization/67921
13421 * fold-const.c (split_tree): New parameters. Convert pointer
13422 type variable part to proper type before negating.
13423 (fold_binary_loc): Pass new arguments to split_tree.
13424
13425 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
13426
13427 * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
13428 (nvptx_goacc_validate_dims): Extend to handle global defaults.
13429 * target.def (OACC_VALIDATE_DIMS): Extend documentation.
13430 * doc/tm.texti: Rebuilt.
13431 * doc/invoke.texi (fopenacc-dim): Document.
13432 * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
13433 (append_compiler_options): Likewise.
13434 * omp-low.c (oacc_default_dims, oacc_min_dims): New.
13435 (oacc_parse_default_dims): New.
13436 (oacc_validate_dims): Add USED arg. Select non-unity default when
13437 possible.
13438 (oacc_loop_fixed_partitions): Return mask of used partitions.
13439 (oacc_loop_auto_partitions): Emit dump info.
13440 (oacc_loop_partition): Return mask of used partitions.
13441 (execute_oacc_device_lower): Parse default dimension arg. Adjust
13442 loop partitioning and validation calls.
13443
13444 2016-02-01 Richard Biener <rguenther@suse.de>
13445
13446 PR middle-end/69556
13447 * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
13448
13449 2016-02-01 Richard Biener <rguenther@suse.de>
13450
13451 PR tree-optimization/69574
13452 * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
13453 of asserting return chrec_dont_know.
13454
13455 2016-02-01 Martin Liska <mliska@suse.cz>
13456
13457 * mem-stats-traits.h: Add copyright header.
13458 * mem-stats.h: Likewise.
13459
13460 2016-02-01 Richard Biener <rguenther@suse.de>
13461
13462 PR tree-optimization/69579
13463 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
13464 Do not propagate through abnormal PHI results.
13465
13466 2016-02-01 Eric Botcazou <ebotcazou@adacore.com>
13467
13468 * postreload.c (reload_cse_simplify): Remove dead code.
13469
13470 2016-02-01 Jakub Jelinek <jakub@redhat.com>
13471
13472 PR rtl-optimization/69570
13473 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
13474 if there is more than one set, not if there is a single set.
13475
13476 2016-02-01 Richard Henderson <rth@redhat.com>
13477
13478 PR rtl-opt/69535
13479 * combine.c (make_compound_operation): When looking through a
13480 subreg, make sure to re-extend to the width of the outer mode.
13481
13482 2016-01-30 Jakub Jelinek <jakub@redhat.com>
13483
13484 PR tree-optimization/69546
13485 * wide-int.cc (wi::divmod_internal): For unsigned division
13486 where both operands fit into uhwi, if o1 is 1 and o0 has
13487 msb set, if divident_prec is larger than bits per hwi,
13488 clear another quotient word and return 2 instead of 1.
13489 Similarly for remainder with msb in HWI set, if dividend_prec
13490 is larger than bits per hwi.
13491
13492 2016-01-29 Martin Jambor <mjambor@suse.cz>
13493
13494 * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
13495 Use short lowercase names.
13496 (get_memory_order): Mask with MEMMODEL_BASE_MASK. Support
13497 MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
13498 acq_rel one. Protect warning agains segfaults if
13499 get_memory_order_name returns NULL.
13500 (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
13501 with release semantics. Do not warn if get_memory_order already did.
13502 (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
13503 semantics. Fix check for relaxed or acquire semantics. Do not warn
13504 if get_memory_order already did.
13505
13506 2016-01-29 Sebastian Pop <s.pop@samsung.com>
13507
13508 * doc/install.texi: Document that isl-0.16 is supported.
13509
13510 2016-01-29 Vladimir Makarov <vmakarov@redhat.com>
13511
13512 PR target/69299
13513 * config/i386/constraints.md (Bm): Describe as special memory
13514 constraint.
13515 * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
13516 * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
13517 * genpreds.c (struct constraint_data): Add is_special_memory.
13518 (have_special_memory_constraints, special_memory_start): New
13519 static vars.
13520 (special_memory_end): Ditto.
13521 (add_constraint): Add new arg is_special_memory. Add code to
13522 process its true value. Update have_special_memory_constraints.
13523 (process_define_constraint): Pass the new arg.
13524 (process_define_register_constraint): Ditto.
13525 (choose_enum_order): Process special memory.
13526 (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
13527 function insn_extra_special_memory_constraint.
13528 (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
13529 * gensupport.c (process_rtx): Process
13530 DEFINE_SPECIAL_MEMORY_CONSTRAINT.
13531 * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
13532 * ira-lives.c (single_reg_class): Use
13533 insn_extra_special_memory_constraint.
13534 * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
13535 * lra-constraints.c (process_alt_operands): Ditto.
13536 (curr_insn_transform): Use insn_extra_special_memory_constraint.
13537 * recog.c (asm_operand_ok, preprocess_constraints): Process
13538 CT_SPECIAL_MEMORY.
13539 * reload.c (find_reloads): Ditto.
13540 * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
13541 * stmt.c (parse_input_constraint): Use
13542 insn_extra_special_memory_constraint.
13543
13544 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
13545
13546 PR target/69530
13547 * lra-splill.c (lra_final_code_change): Revert r229087 by
13548 removing all sub-registers.
13549
13550 2016-01-29 Steve Ellcey <sellcey@imgtec.com>
13551
13552 PR target/65604
13553 * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
13554
13555 2016-01-29 Jakub Jelinek <jakub@redhat.com>
13556
13557 PR target/69551
13558 * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
13559 SSE1, copy target into the temporary reg first before recursing
13560 on it.
13561
13562 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
13563
13564 * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
13565 with vm.
13566
13567 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
13568
13569 * ginclude/stdarg.h: Test __cplusplus instead of
13570 __GXX_EXPERIMENTAL_CXX0X__.
13571
13572 2016-01-29 Richard Biener <rguenther@suse.de>
13573
13574 PR tree-optimization/69547
13575 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
13576 Do not mark clobbers necessary.
13577 (mark_all_reaching_defs_necessary_1): Likewise.
13578
13579 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
13580
13581 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
13582 declaration name with %qs and print it in both error messages.
13583 Also fix indentation.
13584
13585 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
13586
13587 PR other/69006
13588 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
13589 trailing blank line from error message.
13590
13591 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
13592
13593 PR c++/69462
13594 * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
13595 for C++-11.
13596
13597 2016-01-29 Richard Biener <rguenther@suse.de>
13598
13599 PR middle-end/69537
13600 * match.pd: Allow all integral types when simplifying a
13601 widening or sign-changing conversion.
13602
13603 2016-01-28 Sebastian Pop <s.pop@samsung.com>
13604
13605 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
13606 back to setting codegen_error to fail codegen.
13607
13608 2016-01-28 Uros Bizjak <ubizjak@gmail.com>
13609
13610 PR target/69459
13611 * config/i386/constraints.md (C): Only accept constant zero operand.
13612 (BC): New constraint.
13613 * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
13614 instead of C constraint.
13615 * doc/md.texi (Machine Constraints): Update description
13616 of C constraint.
13617
13618 2016-01-28 Steve Ellcey <sellcey@imgtec.com>
13619
13620 PR target/68400
13621 * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
13622
13623 2016-01-28 Jakub Jelinek <jakub@redhat.com>
13624
13625 PR middle-end/69542
13626 * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
13627 non-debug insns.
13628
13629 2016-01-28 Pat Haugen <pthaugen@us.ibm.com>
13630
13631 * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
13632 branches if using guessed profile.
13633
13634 2016-01-28 H.J. Lu <hongjiu.lu@intel.com>
13635
13636 * graphite-optimize-isl.c (optimize_isl): Fix dump.
13637
13638 2016-01-28 Richard Henderson <rth@redhat.com>
13639
13640 PR target/69305
13641 * config/aarch64/aarch64-modes.def (CC_Cmode): New
13642 * config/aarch64/aarch64-protos.h: Update.
13643 * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
13644 (aarch64_select_cc_mode): Add check for use of CC_Cmode.
13645 (aarch64_get_condition_code_1): Handle CC_Cmode.
13646 * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
13647 (*add<mode>3_compareC_cconly_imm): New.
13648 (*add<mode>3_compareC_cconly): New.
13649 (*add<mode>3_compareC_imm): New.
13650 (add<mode>3_compareC): New.
13651 (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
13652 to be first. Use aarch64_carry_operation.
13653 (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
13654 (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
13655 (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
13656 (subti3): Use subdi3_compare1.
13657 (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
13658 (sub<mode>3_compare1): New.
13659 (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
13660 (*sub<mode>3_carryin): Use aarch64_borrow_operation.
13661 (*subsi3_carryin_uxtw): Likewise.
13662 (*ngc<mode>, *ngcsi_uxtw): Likewise.
13663 (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
13664 * config/aarch64/iterators.md (DWI): New.
13665 * config/aarch64/predicates.md (aarch64_carry_operation): New.
13666 (aarch64_borrow_operation): New.
13667
13668 2016-01-28 Abderrazek Zaafrani <a.zaafrani@samsung.com>
13669
13670 * graphite-optimize-isl.c (optimize_isl): Print a different debug
13671 message when isl does not return a valid schedule.
13672
13673 2016-01-28 Sebastian Pop <s.pop@samsung.com>
13674
13675 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
13676 Remove comments from class declarations: they are already in the code
13677 close by the defs.
13678
13679 2016-01-28 Sebastian Pop <s.pop@samsung.com>
13680
13681 * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
13682 codegen_error_p.
13683 (ternary_op_to_tree): Same.
13684 (unary_op_to_tree): Same.
13685 (nary_op_to_tree): Same.
13686 (gcc_expression_from_isl_expr_op): Same.
13687 (gcc_expression_from_isl_expression): Same.
13688 (graphite_create_new_loop): Same.
13689 (graphite_create_new_loop_guard): Same.
13690 (build_iv_mapping): Same.
13691 (graphite_create_new_guard): Same.
13692 (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
13693 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
13694
13695 2016-01-28 Sebastian Pop <s.pop@samsung.com>
13696
13697 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
13698 instead of setting codegen_error to fail codegen.
13699
13700 2016-01-28 Jason Merrill <jason@redhat.com>
13701
13702 * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
13703
13704 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
13705
13706 * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
13707 Remove CONST_INT_P check in CCMP cost calculation.
13708
13709 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
13710
13711 * config/aarch64/aarch64.c (generic_vector_cost):
13712 Set vec_permute_cost.
13713 (cortexa57_vector_cost): Likewise.
13714 (exynosm1_vector_cost): Likewise.
13715 (xgene1_vector_cost): Likewise.
13716 (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
13717 * config/aarch64/aarch64-protos.h (cpu_vector_cost):
13718 Add vec_permute_cost entry.
13719
13720 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
13721
13722 * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
13723 immediate as %1.
13724 (add<mode>3_compare0): Likewise.
13725 (addsi3_compare0_uxtw): Likewise.
13726 (add<mode>3nr_compare0): Likewise.
13727 (compare_neg<mode>): Likewise.
13728 (<optab><mode>3): Likewise.
13729
13730 2016-01-28 Ilya Enkovich <enkovich.gnu@gmail.com>
13731
13732 * tree-vect-stmts.c (vectorizable_comparison): Add
13733 NULL check for vectype.
13734
13735 2016-01-28 Richard Biener <rguenther@suse.de>
13736
13737 PR tree-optimization/69466
13738 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
13739 Account for PHIs we couldn't duplicate.
13740
13741 2016-01-28 Martin Liska <mliska@suse.cz>
13742
13743 PR pch/68758
13744 * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
13745 instead of ENABLE_VALGRIND_CHECKING.
13746
13747 2016-01-27 Richard Henderson <rth@redhat.com>
13748
13749 PR rtl-opt/69447
13750 * lra-remat.c (subreg_regs): New.
13751 (dump_candidates_and_remat_bb_data): Dump it.
13752 (operand_to_remat): Reject if operand in subreg_regs.
13753 (set_bb_regs): Collect subreg_regs.
13754 (lra_remat): Init and free subreg_regs. Compute
13755 calculate_local_reg_remat_bb_data before create_cands.
13756
13757 2016-01-27 H.J. Lu <hongjiu.lu@intel.com>
13758
13759 PR target/68986
13760 * config/i386/i386.c (ix86_update_stack_boundary): Don't
13761 change stack_alignment_needed for __tls_get_addr call.
13762
13763 2016-01-27 Segher Boessenkool <segher@kernel.crashing.org>
13764
13765 * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
13766
13767 2016-01-27 Jeff Law <law@redhat.com>
13768
13769 PR tree-optimization/68398
13770 PR tree-optimization/69196
13771 * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
13772 (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
13773 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
13774 Only count PHIs in the last block in the path. The others will
13775 const/copy propagate away. Add heuristic to allow more irreducible
13776 subloops to be created when it is likely profitable to do so.
13777
13778 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
13779 Fix typo in comment. Use gsi_after_labels and remove the GIMPLE_LABEL
13780 check from within the loop. Use gsi_next_nondebug rather than gsi_next.
13781
13782 2016-01-27 Jakub Jelinek <jakub@redhat.com>
13783
13784 PR lto/69254
13785 * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
13786 END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
13787 * asan.c (DEF_BUILTIN_STUB): Temporarily define.
13788 * tree-streamer-in.c: Include asan.h.
13789 (streamer_get_builtin_tree): For builtins in sanitizer
13790 range call initialize_sanitizer_builtins and retry.
13791
13792 2016-01-27 Ian Lance Taylor <iant@google.com>
13793
13794 * common.opt (fkeep-gc-roots-live): New undocumented option.
13795 * tree-ssa-loop-ivopts.c (add_candidate_1): If
13796 -fkeep-gc-roots-live, skip pointers.
13797 (add_iv_candidate_for_biv): Handle add_candidate_1 returning
13798 NULL.
13799
13800 2016-01-27 Uros Bizjak <ubizjak@gmail.com>
13801
13802 PR target/69512
13803 * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
13804 (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
13805
13806 2016-01-27 Thomas Klausner <wiz@NetBSD.org>
13807
13808 PR target/68380
13809 * configure.ac: NetBSD provides SSP in its C library.
13810 * configure: Updated.
13811
13812 2016-01-27 Richard Biener <rguenther@suse.de>
13813
13814 PR tree-optimization/69166
13815 * tree-vect-loop.c (vect_is_simple_reduction): Always check
13816 reduction code for commutativity / associativity.
13817
13818 2016-01-27 Martin Jambor <mjambor@suse.cz>
13819
13820 PR tree-optimization/69355
13821 * tree-sra.c (analyze_access_subtree): Correct hole detection when
13822 total_scalarization fails.
13823
13824 2016-01-27 David Edelsohn <dje.gcc@gmail.com>
13825
13826 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
13827 power9.
13828
13829 2016-01-27 Christian Bruel <christian.bruel@st.com>
13830
13831 PR target/69245
13832 * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
13833 Move arm_reset_previous_fndecl and set_target_option_current_node in
13834 the conditional part. Call save_restore_target_globals.
13835 * config/arm/arm.c (arm_set_current_function):
13836 Refactor to better support #pragma target and attribute mix.
13837 Call save_restore_target_globals.
13838 * config/arm/arm-protos.h (save_restore_target_globals): New function.
13839
13840 2016-01-27 Martin Liska <mliska@suse.cz>
13841
13842 * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
13843 reference for an HSA kernel and its host function.
13844
13845 2016-01-27 Jakub Jelinek <jakub@redhat.com>
13846
13847 PR tree-optimization/69399
13848 * wide-int.h (wi::lrshift): For larger precisions, only
13849 use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
13850
13851 2016-01-27 Claudiu Zissulescu <claziss@synopsys.com>
13852
13853 * config/arc/predicates.md (proper_comparison_operator): Reject
13854 constant-constant comparison.
13855
13856 2016-01-26 Tom de Vries <tom@codesourcery.com>
13857
13858 PR tree-optimization/69110
13859 * tree-data-ref.c (initialize_data_dependence_relation): Handle
13860 DR_NUM_DIMENSIONS == 0.
13861
13862 2016-01-26 Abderrazek Zaafrani <a.zaafrani@samsung.com>
13863 Sebastian Pop <s.pop@samsung.com>
13864
13865 * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
13866 isl_ast_op_cond and isl_ast_op_select.
13867 (gcc_expression_from_isl_expr_op): Same.
13868
13869 2016-01-26 Jason Merrill <jason@redhat.com>
13870
13871 PR c++/68782
13872 * tree.c (recompute_constructor_flags): Split out from
13873 build_constructor.
13874 (verify_constructor_flags): New.
13875 * tree.h: Declare them.
13876
13877 2016-01-26 Iain Buclaw <ibuclaw@gdcproject.org>
13878
13879 PR rtl-optimization/69217
13880 * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
13881 are no TYPE_FIELDS set for the record type.
13882
13883 2016-01-26 Jakub Jelinek <jakub@redhat.com>
13884
13885 PR target/68662
13886 * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
13887 toc_label_name unconditionally.
13888 (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
13889 SYMBOL_REF string. Use toc_label_name instead of constructing
13890 LCTOC1.
13891 (rs6000_elf_declare_function_name): Use toc_label_name instead of
13892 constructing LCTOC1.
13893
13894 2016-01-26 Martin Sebor <msebor@redhat.com>
13895
13896 PR other/69477
13897 * doc/extend.texi (Common Type Attributes): Move text that talks about
13898 attribute packed from attribute aligned to the section discussing
13899 the former attribute for clarity.
13900
13901 2016-01-26 Richard Henderson <rth@redhat.com>
13902
13903 PR middle-end/60908
13904 * trans-mem.c (tm_region_init): Mark entry block as visited.
13905
13906 2016-01-26 David Malcolm <dmalcolm@redhat.com>
13907
13908 PR other/69006
13909 * diagnostic-show-locus.c (layout::print_source_line): Replace
13910 call to pp_newline with call to layout::print_newline.
13911 (layout::print_annotation_line): Likewise.
13912 (layout::move_to_column): Likewise.
13913 (layout::print_any_fixits): After printing any fixits, print a
13914 trailing newline, if necessary.
13915 (layout::print_newline): New method, resetting any colorization
13916 before a newline.
13917 (diagnostic_show_locus): Move the pp_newline to before the
13918 early bailout. Remove dummy block enclosing the layout instance.
13919 * diagnostic.c (default_diagnostic_finalizer): Replace invocation
13920 of pp_newline_and_flush with pp_flush.
13921 (diagnostic_append_note): Delete use of pp_newline.
13922 (diagnostic_append_note_at_rich_loc): Delete.
13923 * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
13924 * pretty-print.h (output_buffer_append_r): Reset buff->line_length
13925 when newline characters are added to the buffer.
13926
13927 2016-01-26 Michael Matz <matz@suse.de>
13928
13929 * configure.ac (ac_cv_std_swap_in_utility): New test.
13930 * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
13931 * configure: Regenerate.
13932 * config.in: Regenerate.
13933
13934 2016-01-26 Claudiu Zissulescu <claziss@synopsys.com>
13935
13936 * config/arc/arc.md (cstoresi4): Force operand into register.
13937 (arcset<code>): Fix predicate.
13938 (arcsetltu): Likewise.
13939 (arcsetgeu): Likewise.
13940 (arcsethi): Likewise.
13941 (arcsetls): Likewise.
13942
13943 2016-01-26 Jakub Jelinek <jakub@redhat.com>
13944
13945 PR tree-optimization/69483
13946 * gimple-fold.c (canonicalize_constructor_val): Return NULL
13947 if base has error_mark_node type.
13948
13949 2016-01-26 Christophe Lyon <christophe.lyon@linaro.org>
13950
13951 PR target/68620
13952 * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
13953 * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
13954 New helper macros.
13955 (vget_lane_f16): Handle big-endian.
13956 (vgetq_lane_f16): Likewise.
13957 (vset_lane_f16): Likewise.
13958 (vsetq_lane_f16): Likewise.
13959 * config/arm/iterators.md (VQXMOV): Add V8HF.
13960 (VDQ): Add V4HF and V8HF.
13961 (V_reg): Handle V4HF and V8HF.
13962 (Is_float_mode): Likewise.
13963 * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
13964 neon_vdup_nv8hf): New patterns.
13965 (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
13966 Use VD_LANE iterator.
13967 (neon_vld1_dup<mode>): Use VQ2 iterator.
13968
13969 2016-01-26 Nathan Sidwell <nathan@acm.org>
13970
13971 * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
13972 (set_oacc_fn_attrib): Add IS_KERNEL arg.
13973 * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
13974 (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
13975 (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
13976 (oacc_validate_dims): Add LEVEL arg, don't return level.
13977 (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
13978 oacc_validate_dims.
13979 (execute_oacc_device_lower): Adjust, add more dump output.
13980 * tree-ssa-loop.c (gate_oacc_kernels): Use
13981 oacc_fn_attrib_kernels_p.
13982 * tree-parloops.c (create_parallel_loop): Adjust
13983 set_oacc_fn_attrib call.
13984
13985 2016-01-26 Jakub Jelinek <jakub@redhat.com>
13986
13987 PR lto/69254
13988 * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
13989 (append_compiler_options): Handle -fcilkplus.
13990 (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
13991
13992 2016-01-26 Nick Clifton <nickc@redhat.com>
13993
13994 PR target/66655
13995 * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
13996 been marked as DECL_ONE_ONLY but we do not the means to make it
13997 so, then do not allow it to bind locally.
13998
13999 2016-01-26 Jakub Jelinek <jakub@redhat.com>
14000
14001 PR lto/69254
14002 * opts.h (parse_sanitizer_options): New prototype.
14003 * opts.c (sanitizer_opts): New array.
14004 (parse_sanitizer_options): New function.
14005 (common_handle_option): Use parse_sanitizer_options.
14006
14007 2016-01-26 H.J. Lu <hongjiu.lu@intel.com>
14008
14009 PR target/68986
14010 * config/i386/i386.c (ix86_compute_frame_layout): Move stack
14011 alignment adjustment to ...
14012 (ix86_update_stack_boundary): Here. Don't over-align stack for
14013 __tls_get_addr.
14014 (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
14015 if __tls_get_addr is called.
14016
14017 2016-01-26 Christian Bruel <christian.bruel@st.com>
14018
14019 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
14020
14021 2016-01-26 Eric Botcazou <ebotcazou@adacore.com>
14022
14023 * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
14024
14025 2016-01-26 Richard Biener <rguenther@suse.de>
14026
14027 PR middle-end/69467
14028 * match.pd: Guard X * CST CMP 0 pattern with single_use.
14029
14030 2016-01-26 Richard Biener <rguenther@suse.de>
14031
14032 PR tree-optimization/69452
14033 * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
14034 (move_computations_dom_walker::before_dom_children): Rename
14035 to ...
14036 (move_computations_worker): This.
14037 (move_computations): Perform an RPO rather than a DOM walk.
14038
14039 2016-01-26 Jakub Jelinek <jakub@redhat.com>
14040
14041 PR target/69442
14042 * combine.c (combine_instructions): For REG_EQUAL note with
14043 SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
14044 to the underlying register.
14045 * doc/rtl.texi (REG_EQUAL): Document the behavior of
14046 REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
14047
14048 2016-01-26 Roger Ferrer Ibáñez <rofirrim@gmail.com>
14049
14050 PR target/67896
14051 * config/aarch64/aarch64-builtins.c
14052 (aarch64_init_simd_builtin_types): Do not set structural
14053 equality to __Poly{8,16,64,128}_t types.
14054
14055 2016-01-26 Richard Sandiford <richard.sandiford@arm.com>
14056
14057 PR tree-optimization/69400
14058 * wide-int.cc (wi_pack): Take the precision as argument and
14059 perform canonicalization here rather than in the callers.
14060 Use the main loop to handle all full-width HWIs. Add a
14061 zero HWI if in_len isn't a full result.
14062 (wi::divmod_internal): Update accordingly.
14063 (wi::mul_internal): Likewise. Simplify.
14064
14065 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
14066 Sebastian Pop <s.pop@samsung.com>
14067
14068 * graphite-poly.c (apply_poly_transforms): Simplify.
14069 (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
14070 (print_isl_map): Same.
14071 (print_isl_union_map): Same.
14072 (print_isl_schedule): New.
14073 (debug_isl_schedule): New.
14074 * graphite-dependences.c (scop_get_reads): Do not call
14075 isl_union_map_add_map that is undocumented isl functionality.
14076 (scop_get_must_writes): Same.
14077 (scop_get_may_writes): Same.
14078 (scop_get_original_schedule): Remove.
14079 (scop_get_dependences): Do not call isl_union_map_compute_flow that
14080 is deprecated in isl 0.15. Instead, use isl_union_access_* interface.
14081 (compute_deps): Remove.
14082 * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
14083 (debug_schedule_ast): New.
14084 (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
14085 set_separate_option.
14086 (graphite_regenerate_ast_isl): Add dump.
14087 (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
14088 from scop->transformed_schedule.
14089 (graphite_regenerate_ast_isl): Add more dump.
14090 * graphite-optimize-isl.c (optimize_isl): Set
14091 scop->transformed_schedule. Check whether schedules are equal.
14092 (apply_poly_transforms): Move here.
14093 * graphite-poly.c (apply_poly_transforms): ... from here.
14094 (free_poly_bb): Static.
14095 (free_scop): Static.
14096 (pbb_number_of_iterations_at_time): Remove.
14097 (print_isl_ast): New.
14098 (debug_isl_ast): New.
14099 (debug_scop_pbb): New.
14100 * graphite-scop-detection.c (print_edge): Move.
14101 (print_sese): Move.
14102 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
14103 (build_scop_scattering): Remove.
14104 (create_pw_aff_from_tree): Assert instead of bailing out.
14105 (add_condition_to_pbb): Remove unused code, do not fail.
14106 (add_conditions_to_domain): Same.
14107 (add_conditions_to_constraints): Remove.
14108 (build_scop_context): New.
14109 (add_iter_domain_dimension): New.
14110 (build_iteration_domains): Initialize pbb->iterators.
14111 Call add_conditions_to_domain.
14112 (nested_in): New.
14113 (loop_at): New.
14114 (index_outermost_in_loop): New.
14115 (index_pbb_in_loop): New.
14116 (outermost_pbb_in): New.
14117 (add_in_sequence): New.
14118 (add_outer_projection): New.
14119 (outer_projection_mupa): New.
14120 (add_loop_schedule): New.
14121 (build_schedule_pbb): New.
14122 (build_schedule_loop): New.
14123 (embed_in_surrounding_loops): New.
14124 (build_schedule_loop_nest): New.
14125 (build_original_schedule): New.
14126 (build_poly_scop): Call build_original_schedule.
14127 * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
14128 (free_poly_dr): Remove.
14129 (struct poly_bb): Add iterators. Remove schedule, transformed, saved.
14130 (free_poly_bb): Remove.
14131 (debug_loop_vec): Remove.
14132 (print_isl_ast): Declare.
14133 (debug_isl_ast): Declare.
14134 (scop_do_interchange): Remove.
14135 (scop_do_strip_mine): Remove.
14136 (scop_do_block): Remove.
14137 (flatten_all_loops): Remove.
14138 (optimize_isl): Remove.
14139 (pbb_number_of_iterations_at_time): Remove.
14140 (debug_scop_pbb): Declare.
14141 (print_schedule_ast): Declare.
14142 (debug_schedule_ast): Declare.
14143 (struct scop): Remove schedule. Add original_schedule,
14144 transformed_schedule.
14145 (free_gimple_poly_bb): Remove.
14146 (print_generated_program): Remove.
14147 (debug_generated_program): Remove.
14148 (unify_scattering_dimensions): Remove.
14149 * sese.c (print_edge): ... here.
14150 (print_sese): ... here.
14151 (debug_edge): ... here.
14152 (debug_sese): ... here.
14153 * sese.h (print_edge): Declare.
14154 (print_sese): Declare.
14155 (dump_edge): Declare.
14156 (dump_sese): Declare.
14157
14158 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
14159 Sebastian Pop <s.pop@samsung.com>
14160
14161 * Makefile.in: Set ISLVER in site.exp.
14162
14163 2016-01-25 Jakub Jelinek <jakub@redhat.com>
14164
14165 * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
14166 DECL_VALUE_EXPR of new_var even for the non-array case. Look
14167 through DECL_VALUE_EXPR for expansion.
14168
14169 2016-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
14170
14171 * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
14172 the frame info after reload completed.
14173
14174 2016-01-25 Jeff Law <law@redhat.com>
14175
14176 PR tree-optimization/69196
14177 PR tree-optimization/68398
14178 * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
14179 tree-ssa-threadupdate.c.
14180 (determine_bb_domination_status): Prototype
14181 * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
14182 (determine_bb_domination_status): No longer static.
14183 (valid_jump_thread_path): Remove code to detect characteristics
14184 of the jump thread path not associated with correctness.
14185 * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
14186 Correct test for thread path length. Count PHIs for real operands as
14187 statements that need to be copied. Do not count ASSERT_EXPRs.
14188 Look at all the blocks in the thread path. Compute and selectively
14189 filter thread paths based on threading through the latch, threading
14190 a multiway branch or crossing a multiway branch.
14191
14192 2016-01-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14193
14194 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): Add
14195 decl with __attribute__ ((unused)) annotation.
14196
14197 2016-01-25 Ilya Enkovich <enkovich.gnu@gmail.com>
14198
14199 PR target/69421
14200 * tree-vect-stmts.c (vectorizable_condition): Check vectype
14201 of operands is compatible with a statement vectype.
14202
14203 2016-01-25 Eric Botcazou <ebotcazou@adacore.com>
14204
14205 * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
14206 improve wording for mixed storage order support.
14207
14208 2016-01-25 Bilyan Borisov <bilyan.borisov@arm.com>
14209
14210 * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
14211 (vcvt_u64_f64): Likewise.
14212 (vcvta_s64_f64): Likewise.
14213 (vcvta_u64_f64): Likewise.
14214 (vcvtm_s64_f64): Likewise.
14215 (vcvtm_u64_f64): Likewise.
14216 (vcvtn_s64_f64): Likewise.
14217 (vcvtn_u64_f64): Likewise.
14218 (vcvtp_s64_f64): Likewise.
14219 (vcvtp_u64_f64): Likewise.
14220
14221 2016-01-25 Claudiu Zissulescu <claziss@synopsys.com>
14222
14223 * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
14224 (arc_init): Check validity mll64 option.
14225 (arc_save_restore): Use double load/store instruction.
14226 (arc_expand_movmem): Likewise.
14227 (arc_split_move): Don't split if we have double load/store
14228 instructions. Returns a boolean.
14229 (arc_process_double_reg_moves): Change function to return boolean
14230 instead of a sequence of instructions.
14231 (arc_dwarf_register_span): New function.
14232 * config/arc/arc-protos.h (arc_split_move): Change prototype.
14233 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
14234 * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
14235 (*movdf_insn): Likewise.
14236 * config/arc/arc.opt (mll64): New option.
14237 * config/arc/predicates.md (even_register_operand): New predicate.
14238 * doc/invoke.texi (ARC Options): Add mll64 documentation.
14239
14240 2016-01-25 Richard Biener <rguenther@suse.de>
14241
14242 PR lto/69393
14243 * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
14244 * tree-streamer-out.c (pack_ts_base_value_fields): Stream
14245 DECL_NAMELESS.
14246 * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
14247
14248 2016-01-25 Richard Biener <rguenther@suse.de>
14249
14250 PR tree-optimization/69376
14251 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
14252 flag.
14253 (VN_INFO_ANTI_RANGE_P): New inline.
14254 (VN_INFO_RANGE_TYPE): Likewise.
14255 * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
14256 SSA_NAME_ANTI_RANGE_P.
14257 (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
14258 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
14259 Properly query VN_INFO_RANGE_TYPE.
14260
14261 2016-01-25 Nick Clifton <nickc@redhat.com>
14262
14263 PR target/66655
14264 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
14265
14266 2016-01-23 Tom de Vries <tom@codesourcery.com>
14267
14268 PR tree-optimization/69426
14269 * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
14270 removed clobber.
14271
14272 2016-01-23 Jakub Jelinek <jakub@redhat.com>
14273
14274 * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
14275 "the the" with "the" in the comments.
14276 * ipa-devirt.c (build_type_inheritance_graph,
14277 update_type_inheritance_graph): Likewise.
14278 * tree.c (build_function_type_list_1): Likewise.
14279 * cfgloopmanip.c (scale_loop_profile): Likewise.
14280 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
14281 * gimple-ssa-split-paths.c
14282 (find_block_to_duplicate_for_splitting_paths): Likewise.
14283 * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
14284 * expr.c (convert_move): Likewise.
14285 * var-tracking.c (vt_stack_adjustments): Likewise.
14286 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
14287 * tree-vrp.c (test_for_singularity): Likewise.
14288
14289 * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
14290 directly instead of building a temporary tree.
14291
14292 PR bootstrap/69434
14293 * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
14294 remove <algorithm> include.
14295
14296 2016-01-22 Jakub Jelinek <jakub@redhat.com>
14297
14298 PR target/69432
14299 * config/i386/i386.c: Include dojump.h.
14300 (expand_small_movmem_or_setmem,
14301 expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
14302 fixes.
14303 (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
14304 if dynamic_check != -1.
14305
14306 2016-01-21 Jeff Law <law@redhat.com>
14307
14308 PR middle-end/69347
14309 * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
14310 record_temporary_equivalences. Rewritten to avoid unnecessary calls
14311 into dominated_by_p.
14312 (cprop_into_successor_phis): Avoid unnecessary tests.
14313
14314 2016-01-22 Richard Henderson <rth@redhat.com>
14315
14316 PR target/69416
14317 * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
14318 (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
14319
14320 2016-01-22 Michael Matz <matz@suse.de>
14321
14322 * system.h (string, algorithm): Include only conditionally.
14323 (new): Include always under C++.
14324 * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
14325 * final.c (toplevel): Ditto.
14326 * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
14327 * genconditions.c (write_header): Make gencondmd.c define
14328 INCLUDE_STRING.
14329 * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
14330
14331 * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
14332 * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
14333
14334 2016-01-22 Christian Bruel <christian.bruel@st.com>
14335
14336 PR target/68674
14337 * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
14338
14339 2016-01-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14340
14341 PR target/69403
14342 * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
14343 define_insn_and_split. Ensure operands[1] and operands[0] do not
14344 get assigned the same register.
14345
14346 2016-01-22 Kugan Vivekanandarajah <kuganv@linaro.org>
14347
14348 * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
14349
14350 2016-01-22 Christian Bruel <christian.bruel@st.com>
14351
14352 * config/arm/arm-c.c (arm_pragma_target_parse):
14353 Remove warn_builtin_macro_redefined overwrite.
14354
14355 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
14356
14357 * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
14358 flag_non_call_exceptions compatibility.
14359
14360 2016-01-22 Jakub Jelinek <jakub@redhat.com>
14361
14362 PR debug/66668
14363 * dwarf2out.c (add_child_die_after): New function.
14364 (dwarf_qual_info_t): New type.
14365 (dwarf_qual_info): New variable.
14366 (qualified_die_p): New function.
14367 (modified_type_die): For -fdebug-types-section, ensure
14368 canonical order of qualifiers. Put qualified DIEs adjacent
14369 to the corresponding non-qualified type DIE and search there
14370 for existing qualified DIEs.
14371
14372 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
14373
14374 * doc/extend.texi (scalar_storage_order type attribute): Document
14375 restriction on type punning and aliasing, and remove future tense.
14376
14377 2016-01-21 Roman Zhuykov <zhroma@ispras.ru>
14378
14379 PR target/69252
14380 * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
14381 first stage.
14382
14383 2016-01-21 Jeff Law <law@redhat.com>
14384
14385 PR middle-end/69347
14386 * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
14387 useless call to record_temporary_equivalences.
14388 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
14389 allocate 10 slots in the bb_path vector and let it grow as needed.
14390 (fsm_find_control_statement_thread_paths): Similarly for the next_path
14391 vector.
14392
14393 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
14394
14395 * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
14396 Detangle.
14397 * configure: Regenerate.
14398
14399 2016-01-21 Pat Haugen <pthaugen@us.ibm.com>
14400
14401 * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
14402 * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
14403
14404 2016-01-21 Bernd Schmidt <bschmidt@redhat.com>
14405
14406 PR middle-end/66178
14407 * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
14408 drop EXPAND_INITIALIZER.
14409 * rtl.h (contains_symbolic_reference_p): Declare.
14410 * rtlanal.c (contains_symbolic_reference_p): New function.
14411 * simplify-rtx.c (simplify_binary_operation_1): Don't turn
14412 a subtraction into a NOT if symbolic constants are involved.
14413
14414 2016-01-21 Anton Blanchard <anton@samba.org>
14415 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14416
14417 PR target/63354
14418 * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
14419 #define.
14420 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
14421 function.
14422
14423 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
14424
14425 * config/microblaze/microblaze.c
14426 (get_branch_target): New.
14427 (insert_wic_for_ilb_runout): New.
14428 (insert_wic): New.
14429 (microblaze_machine_dependent_reorg): New.
14430 (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
14431 * config/microblaze/microblaze.md
14432 (UNSPEC_IPREFETCH): Define.
14433 (iprefetch): New pattern
14434 * config/microblaze/microblaze.opt
14435 (mxl-prefetch): New flag.
14436
14437 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
14438
14439 * config/microblaze/microblaze.h
14440 (FIXED_REGISTERS): Update in macro.
14441 (CALL_USED_REGISTERS): Update in macro.
14442
14443 2016-01-21 Yuri Rumyantsev <ysrumyan@gmail.com>
14444
14445 PR rtl-optimization/68920
14446 * ifcvt.c (cond_move_process_if_block): Limit number of conditional
14447 moves.
14448
14449 2016-01-21 Vladimir Makarov <vmakarov@redhat.com>
14450
14451 PR rtl-optimization/68990
14452 * lra-coalesce.c (lra_coalesce): Invalidate value for the result
14453 pseudo instead of inheritance ones.
14454
14455 2016-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
14456 Nick Clifton <nickc@redhat.com>
14457
14458 PR target/69129
14459 PR target/69012
14460 * config/mips/mips.c (mips_compute_frame_info): Initialise
14461 args_size and hard_frame_pointer_offset fields of the frame
14462 structure before calling mips_global_pointer.
14463
14464 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
14465
14466 * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
14467 label reference.
14468 * configure: Regenerate.
14469
14470 2016-01-21 Richard Biener <rguenther@suse.de>
14471
14472 * graphite-optimize-isl.c (get_schedule_map): Fix typo.
14473
14474 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
14475
14476 * config/s390/s390.c (s390_asm_declare_function_size): Add code
14477 to actually emit the .size directive.
14478
14479 2016-01-21 Stefan Sørensen <stefan.sorensen@spectralink.com>
14480 Jakub Jelinek <jakub@redhat.com>
14481
14482 PR target/69187
14483 PR target/65624
14484 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
14485 args array size by one to avoid buffer overflow.
14486
14487 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
14488
14489 * config/s390/s390.md (pool_section_start): Use switch_to_section
14490 to select proper read-only data section instead of hardcoding
14491 .rodata.
14492 (pool_section_end): Use switch_to_section to match the above.
14493
14494 2016-01-21 Richard Biener <rguenther@suse.de>
14495
14496 PR tree-optimization/69378
14497 * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
14498 (set_ssa_val_to): Use it for dominance checks taking into
14499 account not executable edges.
14500
14501 2016-01-21 Jakub Jelinek <jakub@redhat.com>
14502
14503 PR c++/69355
14504 * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
14505 for bitsize instead of GET_MODE_PRECISION (mode).
14506
14507 2016-01-20 Martin Sebor <msebor@redhat.com>
14508
14509 PR c/52291
14510 * extend.texi (__sync Builtins): Clarify the semantics of
14511 __sync_fetch_and_OP built-ins on pointers.
14512 (__atomic Builtins): Same.
14513
14514 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
14515 Sebastian Pop <s.pop@samsung.com>
14516
14517 * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
14518 (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
14519 (is_valid_rename): Same.
14520 (translate_isl_ast_to_gimple::get_rename): Same.
14521 (translate_isl_ast_to_gimple::rename_all_uses): Same.
14522 (translate_isl_ast_to_gimple::rename_uses): Same.
14523 (get_new_name): Check for close_phi nodes.
14524 (copy_loop_phi_args): Use phi_node_kind.
14525 (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
14526 (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
14527
14528 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
14529 Sebastian Pop <s.pop@samsung.com>
14530
14531 Revert commit r229783.
14532 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
14533 Remove use of parameter_rename_map.
14534 (copy_def): Remove.
14535 (copy_internal_parameters): Remove.
14536 (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
14537 * sese.c (new_sese_info): Do not initialize parameter_rename_map.
14538 (free_sese_info): Do not free parameter_rename_map.
14539 (set_rename): Do not use parameter_rename_map.
14540 (rename_uses): Update call to set_rename.
14541 (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
14542 * sese.h (parameter_rename_map_t): Remove.
14543 (struct sese_info_t): Remove field parameter_rename_map.
14544
14545 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
14546 Sebastian Pop <s.pop@samsung.com>
14547
14548 * graphite-isl-ast-to-gimple.c: Fix comment.
14549 * graphite-scop-detection.c (defined_in_loop_p): New.
14550 (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
14551 names defined in loop.
14552
14553 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
14554 Sebastian Pop <s.pop@samsung.com>
14555
14556 * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
14557 Discard unstructured if-then-else regions.
14558
14559 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
14560 Sebastian Pop <s.pop@samsung.com>
14561
14562 * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
14563 (cleanup_loop_iter_dom): Remove.
14564 (build_loop_iteration_domains): Remove.
14565 (build_scop_context): Remove.
14566 (build_scop_iteration_domain): Remove.
14567 (add_loop_constraints): New.
14568 (build_iteration_domains): New.
14569 (build_poly_scop): Call build_iteration_domains.
14570
14571 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
14572 Sebastian Pop <s.pop@samsung.com>
14573
14574 * graphite-scop-detection.c
14575 (scop_detection::harmful_loop_in_region): Free dom and loops.
14576 (scop_detection::loop_body_is_valid_scop): Free bbs.
14577
14578 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
14579 Sebastian Pop <s.pop@samsung.com>
14580
14581 * graphite-scop-detection.c (record_loop_in_sese): New.
14582 (gather_bbs::before_dom_children): Call record_loop_in_sese.
14583 (build_scops): Remove call to build_sese_loop_nests.
14584 * sese.c (sese_record_loop): Remove.
14585 (build_sese_loop_nests): Remove.
14586 (new_sese_info): Remove region->loops.
14587 (free_sese_info): Same.
14588 * sese.h (sese_contains_loop): Same.
14589 (build_sese_loop_nests): Remove.
14590 (sese_contains_loop): Remove.
14591
14592 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
14593 Sebastian Pop <s.pop@samsung.com>
14594
14595 * graphite-scop-detection.c (loop_is_valid_scop): Renamed
14596 loop_is_valid_in_scop.
14597 (scop_detection::harmful_stmt_in_region): Renamed
14598 harmful_loop_in_region.
14599 Call loop_is_valid_in_scop.
14600
14601 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
14602 Sebastian Pop <s.pop@samsung.com>
14603
14604 * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
14605 isl_ast_node_mark.
14606
14607 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
14608 Sebastian Pop <s.pop@samsung.com>
14609
14610 * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
14611 * graphite.h (struct poly_bb): Remove field is_reduction.
14612 (PBB_IS_REDUCTION): Remove.
14613
14614 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
14615 Sebastian Pop <s.pop@samsung.com>
14616
14617 * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
14618 (add_pdr_constraints): Same.
14619 (scop_get_reads): Same.
14620 (scop_get_must_writes): Same.
14621 (scop_get_may_writes): Same.
14622 (scop_get_original_schedule): Same.
14623 (extend_schedule): Same.
14624 (apply_schedule_on_deps): Same.
14625 (carries_deps): Same.
14626 (compute_deps): Same.
14627 (scop_get_dependences): Same.
14628 * graphite-isl-ast-to-gimple.c
14629 (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
14630 * graphite-optimize-isl.c (get_schedule_for_band): Same.
14631 (get_schedule_for_band_list): Same.
14632 (get_schedule_map): Same.
14633 (apply_schedule_map_to_scop): Same.
14634 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
14635 (build_loop_iteration_domains): Same.
14636 (add_condition_to_pbb): Same.
14637 (add_param_constraints): Same.
14638 (pdr_add_memory_accesses): Same.
14639 (pdr_add_data_dimensions): Same.
14640
14641 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
14642
14643 * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
14644 requirements.
14645
14646 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
14647
14648 * common.opt (feliminate-dwarf2-dups): Replace references to
14649 "DWARF 2" with just "DWARF".
14650 * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
14651 * doc/extend.texi: Likewise.
14652 * doc/cpp.texi: Likewise.
14653 * doc/invoke.texi: Likewise.
14654 (Option Summary): Add -gdwarf to list of Debugging Options.
14655 (Debugging Options): Document -gdwarf.
14656 * doc/contrib.texi: Spell "DWARF" like that.
14657
14658 2016-01-21 Jakub Jelinek <jakub@redhat.com>
14659
14660 * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
14661 warning. Fix up formatting.
14662
14663 PR middle-end/67653
14664 * gimplify.c (gimplify_asm_expr): Warn if it is too late to
14665 attempt to mark memory input operand addressable and
14666 call prepare_gimple_addressable in that case. Don't adjust
14667 input_location for diagnostics, use error_at instead.
14668
14669 2016-01-20 Peter Bergner <bergner@vnet.ibm.com>
14670
14671 * config/rs6000/ppc-auxv.h: New file.
14672 * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
14673 (cpu_is): Likewise.
14674 (cpu_supports): Likewise.
14675 * config/rs6000/rs6000.c: include "ppc-auxv.h".
14676 (cpu_is_info): New variable.
14677 (cpu_supports_info): Likewise.
14678 (tcb_verification_symbol): Likewise.
14679 (cpu_builtin_p): Likewise.
14680 (cpu_expand_builtin): New function.
14681 (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
14682 (rs6000_init_builtins): Likewise.
14683 (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
14684 * config/rs6000/rs6000.h (TLS_REGNUM): New define.
14685 * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
14686 * configure: Regenerate.
14687 * config.in: Likewise.
14688 * doc/extend.texi (PowerPC Built-in Functions): Document
14689 __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
14690
14691 2016-01-20 David Edelsohn <dje.gcc@gmail.com>
14692
14693 PR target/68609
14694 * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
14695 domain check.
14696 * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
14697 for V4SFmode.
14698
14699 2016-01-20 Richard Henderson <rth@redhat.com>
14700
14701 PR bootstrap/69343
14702 PR bootstrap/69339
14703 PR tree-opt/68964
14704 Revert:
14705 * tree.c (tm_define_builtin): New.
14706 (find_tm_vector_type): New.
14707 (build_tm_vector_builtins): New.
14708 (build_common_builtin_nodes): Call it.
14709
14710 2016-01-20 Christophe Lyon <christophe.lyon@linaro.org>
14711
14712 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
14713 (arm_fp_ok): Likewise.
14714 (arm_fp): Likewise.
14715 (arm_crypto): Likewise.
14716
14717 2016-01-20 Ilya Enkovich <enkovich.gnu@gmail.com>
14718 Richard Biener <rguenther@suse.de>
14719
14720 PR tree-optimization/69328
14721 * tree-vect-stmts.c (vect_is_simple_cond): Check compared
14722 vectors have same number of elements.
14723 (vectorizable_condition): Fix masked version recognition.
14724
14725 2016-01-20 Richard Biener <rguenther@suse.de>
14726
14727 PR tree-optimization/69345
14728 * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
14729 (VN_INFO_PTR_INFO): Likewise.
14730 * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
14731 info when it is equal between non-dominating SSA names.
14732 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
14733 Make sure to look at original SSA infos.
14734
14735 2016-01-20 Jeff Law <law@redhat.com>
14736
14737 PR target/25114
14738 * config/m68k/predicates.md (pow2_m1_operand): New predicate
14739 extracted from ...
14740 (reg_or_pow2_m1_operand): Call pow2_m1_operand.
14741 (pc_or_label_operand): New predicate.
14742 * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
14743 tests for small integers that are 2^n - 1.
14744
14745 2016-01-20 Jonathan Wakely <jwakely@redhat.com>
14746
14747 * doc/invoke.texi (Options Summary): Add '.' after @xref.
14748
14749 2016-01-19 Jeff Law <law@redhat.com>
14750
14751 PR middle-end/69347
14752 * tree-ssa-threadbackwards.c
14753 (fsm_find_control_statement_thread_paths): Do not try to lookup
14754 FSM paths for SSA_NAMEs appearing in abnormal PHIs.
14755
14756 2016-01-20 Kugan Vivekanandarajah <kuganv@linaro.org>
14757
14758 * doc/lto.texi: Remove text that says only Gold has linker plugin
14759 support.
14760
14761 2016-01-19 Eric Botcazou <ebotcazou@adacore.com>
14762
14763 * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
14764 (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
14765 the DIE accordingly.
14766 (modified_type_die): Add REVERSE parameter and pass it recursively,
14767 as well as to base_type_die. Adjust presence check accordingly.
14768 (base_type_for_mode): Adjust call to modified_type_die.
14769 (add_type_attribute): Add REVERSE parameter and pass it to
14770 modified_type_die.
14771 (generic_parameter_die): Adjust call to add_type_attribute.
14772 (add_scalar_info): Likewise.
14773 (add_subscript_info): Likewise.
14774 (gen_array_type_die): Likewise.
14775 (gen_descr_array_type_die): Likewise.
14776 (gen_entry_point_die): Likewise.
14777 (gen_enumeration_type_die): Likewise.
14778 (gen_formal_parameter_die): Likewise.
14779 (gen_subprogram_die): Likewise.
14780 (gen_variable_die ): Likewise.
14781 (gen_const_die): Likewise.
14782 (gen_field_die): Likewise.
14783 (gen_pointer_type_die): Likewise.
14784 (gen_reference_type_die): Likewise.
14785 (gen_ptr_to_mbr_type_die): Likewise.
14786 (gen_inheritance_die): Likewise.
14787 (gen_subroutine_type_die): Likewise.
14788 (gen_typedef_die): Likewise.
14789 (force_type_die): Adjust call to modified_type_die.
14790
14791 2016-01-19 Sandra Loosemore <sandra@codesourcery.com>
14792
14793 * doc/standards.texi: Copy-editing for grammar, markup, and sentence
14794 flow throughout the file. Fix broken link to Objective-C 2.0
14795 documentation.
14796 * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
14797 errors.
14798
14799 2016-01-19 Wilco Dijkstra <wdijkstr@arm.com>
14800
14801 * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
14802
14803 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
14804
14805 PR ipa/66223
14806 * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
14807 (maybe_record_node): Record cxa_pure_virtual as the only possible
14808 target if there are not ohter candidates.
14809 (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
14810
14811 2016-01-19 Richard Biener <rguenther@suse.de>
14812
14813 * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
14814 (get_memory_order): Likewise.
14815
14816 2016-01-19 Kirill Yukhin <kirill.yukhin@intel.com>
14817
14818 * tree-vect-stmts.c (vectorizable_store): Check
14819 rhs vectype.
14820
14821 2016-01-19 David Malcolm <dmalcolm@redhat.com>
14822
14823 PR jit/68446
14824 * gcc.c (driver::decode_argv): Add call to
14825 init_opts_obstack before init_options_struct.
14826 * opts.c (init_opts_obstack): Remove idempotency.
14827 (init_options_struct): Replace call to init_opts_obstack
14828 with a gcc_assert to verify that it has already been called.
14829 * toplev.c (toplev::main): Add call to init_opts_obstack before
14830 calls to init_options_struct.
14831 (toplev::finalize): Move cleanup of opts_obstack next to
14832 cleanup of save_decoded_options, clearing the latter, and
14833 save_decoded_options_count.
14834
14835 2016-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14836
14837 PR target/69135
14838 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
14839 attribute to unconditional. Remove %? from output template.
14840
14841 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
14842 Jiong Wang <jiong.wang@arm.com>
14843
14844 * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
14845 generated from different expand order.
14846
14847 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
14848
14849 * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
14850 Add support for CCMP costing.
14851
14852 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
14853
14854 * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
14855 * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
14856 (fccmpe<mode>): Likewise.
14857 (fcmp): Rename to fcmp and globalize pattern.
14858 (fcmpe): Likewise.
14859 * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
14860 (aarch64_gen_ccmp_next): Add FP support.
14861
14862 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
14863
14864 * target.def (gen_ccmp_first): Update documentation.
14865 (gen_ccmp_next): Likewise.
14866 * doc/tm.texi (gen_ccmp_first): Update documentation.
14867 (gen_ccmp_next): Likewise.
14868 * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
14869 expand_ccmp_expr_1. Improve comments.
14870 * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
14871 (ccmp_ior<mode>): Remove pattern.
14872 (cmp<mode>): Remove expand.
14873 (cmp): Globalize pattern.
14874 (cstorecc4): Use cc_register.
14875 (mov<mode>cc): Remove ccmp_cc_register check.
14876 * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
14877 Simplify after removal of CC_DNE/* modes.
14878 (aarch64_ccmp_mode_to_code): Remove.
14879 (aarch64_print_operand): Remove 'K' case. Merge 'm' and 'M' cases.
14880 In 'k' case use integer as condition.
14881 (aarch64_nzcv_codes): Remove inverted cases.
14882 (aarch64_code_to_ccmode): Remove.
14883 (aarch64_gen_ccmp_first): Use cmp pattern directly. Return the correct
14884 comparison with CC register to be used in folowing CCMP/branch/CSEL.
14885 (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
14886 pattern. Return the comparison with CC register. Invert conditions
14887 when bitcode is OR.
14888 * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
14889 * config/aarch64/predicates.md (ccmp_cc_register): Remove.
14890
14891 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
14892
14893 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
14894 instrumented_version.
14895
14896 2016-01-19 Richard Biener <rguenther@suse.de>
14897
14898 PR tree-optimization/69336
14899 * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
14900 handled components with get_ref_base_and_extent.
14901 (equal_mem_array_ref_p): Adjust.
14902
14903 2016-01-19 Jakub Jelinek <jakub@redhat.com>
14904
14905 PR debug/65779
14906 * shrink-wrap.c: Include valtrack.h.
14907 (move_insn_for_shrink_wrap): Add DEBUG argument. If
14908 MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
14909 in between insn and where it will be moved to. Call
14910 dead_debug_insert_temp.
14911 (prepare_shrink_wrap): Adjust caller. Call dead_debug_local_init
14912 first and dead_debug_local_finish at the end.
14913 For uses and defs bitmap, handle all regs in between REGNO and
14914 END_REGNO, not just the first one.
14915
14916 2016-01-19 Richard Biener <rguenther@suse.de>
14917
14918 PR tree-optimization/69352
14919 * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
14920 (equal_mem_array_ref_p): Constrain size and max size properly.
14921 Compare the reverse flag.
14922
14923 2016-01-19 Bernd Schmidt <bschmidt@redhat.com>
14924
14925 * ira.c (ira): Update regstat data if we deleted insns.
14926
14927 2016-01-19 Jakub Jelinek <jakub@redhat.com>
14928
14929 PR rtl-optimization/68955
14930 PR rtl-optimization/64557
14931 * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
14932 here. Fix up formatting.
14933 * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
14934
14935 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
14936
14937 PR lto/69133
14938 * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
14939 assume that the node has body.
14940 * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
14941 check.
14942
14943 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
14944
14945 * lto-streamer-out.c (lto_output): Do not stream instrumentation
14946 thunks.
14947
14948 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
14949
14950 * symtab.c (symtab_node::asm_name): Do not call printable name directly.
14951 (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
14952
14953 2016-01-19 Martin Jambor <mjambor@suse.cz>
14954 Martin Liska <mliska@suse.cz>
14955 Michael Matz <matz@suse.de>
14956
14957 * Makefile.in (OBJS): Add new source files.
14958 (GTFILES): Add hsa.c.
14959 * common.opt (disable_hsa): New variable.
14960 (-Whsa): New warning.
14961 * config.in (ENABLE_HSA): New.
14962 * configure.ac: Treat hsa differently from other accelerators.
14963 (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
14964 $enable_offloading.
14965 (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
14966 * doc/install.texi (Configuration): Document --with-hsa-runtime,
14967 --with-hsa-runtime-include, --with-hsa-runtime-lib and
14968 --with-hsa-kmt-lib.
14969 * doc/invoke.texi (-Whsa): Document.
14970 (hsa-gen-debug-stores): Likewise.
14971 * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
14972 to invoke offload compiler for hsa acclerator.
14973 * opts.c (common_handle_option): Determine whether HSA offloading
14974 should be performed.
14975 * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
14976 * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
14977 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
14978 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
14979 * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
14980 * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
14981 GF_OMP_FOR_KIND_GRID_LOOP.
14982 (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
14983 (pp_gimple_stmt_1): Likewise.
14984 * gimple-walk.c (walk_gimple_stmt): Likewise.
14985 * gimple.c (gimple_build_omp_grid_body): New function.
14986 (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
14987 * gimple.def (GIMPLE_OMP_GRID_BODY): New.
14988 * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
14989 GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
14990 GF_OMP_TEAMS_GRID_PHONY.
14991 (gimple_statement_omp_single_layout): Updated comments.
14992 (gimple_build_omp_grid_body): New function.
14993 (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
14994 (gimple_omp_for_grid_phony): New function.
14995 (gimple_omp_for_set_grid_phony): Likewise.
14996 (gimple_omp_parallel_grid_phony): Likewise.
14997 (gimple_omp_parallel_set_grid_phony): Likewise.
14998 (gimple_omp_teams_grid_phony): Likewise.
14999 (gimple_omp_teams_set_grid_phony): Likewise.
15000 (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
15001 * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
15002 (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
15003 (BUILT_IN_GOMP_TARGET): Updated type.
15004 * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
15005 (adjust_for_condition): New function.
15006 (get_omp_for_step_from_incr): Likewise.
15007 (extract_omp_for_data): Moved parts to adjust_for_condition and
15008 get_omp_for_step_from_incr.
15009 (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
15010 (fixup_child_record_type): Bail out if receiver_decl is NULL.
15011 (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
15012 (scan_omp_parallel): Do not create child functions for phony
15013 constructs.
15014 (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
15015 (scan_omp_1_op): Checking assert we are not remapping to
15016 ERROR_MARK. Also also handle GIMPLE_OMP_GRID_BODY.
15017 (parallel_needs_hsa_kernel_p): New function.
15018 (expand_parallel_call): Register apprpriate parallel child
15019 functions as HSA kernels.
15020 (grid_launch_attributes_trees): New type.
15021 (grid_attr_trees): New variable.
15022 (grid_create_kernel_launch_attr_types): New function.
15023 (grid_insert_store_range_dim): Likewise.
15024 (grid_get_kernel_launch_attributes): Likewise.
15025 (get_target_argument_identifier_1): Likewise.
15026 (get_target_argument_identifier): Likewise.
15027 (get_target_argument_value): Likewise.
15028 (push_target_argument_according_to_value): Likewise.
15029 (get_target_arguments): Likewise.
15030 (expand_omp_target): Call get_target_arguments instead of looking
15031 up for teams and thread limit.
15032 (grid_expand_omp_for_loop): New function.
15033 (grid_arg_decl_map): New type.
15034 (grid_remap_kernel_arg_accesses): New function.
15035 (grid_expand_target_kernel_body): New function.
15036 (expand_omp): Call it.
15037 (lower_omp_for): Do not emit phony constructs.
15038 (lower_omp_taskreg): Do not emit phony constructs but create for them
15039 a temporary variable receiver_decl.
15040 (lower_omp_taskreg): Do not emit phony constructs.
15041 (lower_omp_teams): Likewise.
15042 (lower_omp_grid_body): New function.
15043 (lower_omp_1): Call it.
15044 (grid_reg_assignment_to_local_var_p): New function.
15045 (grid_seq_only_contains_local_assignments): Likewise.
15046 (grid_find_single_omp_among_assignments_1): Likewise.
15047 (grid_find_single_omp_among_assignments): Likewise.
15048 (grid_find_ungridifiable_statement): Likewise.
15049 (grid_target_follows_gridifiable_pattern): Likewise.
15050 (grid_remap_prebody_decls): Likewise.
15051 (grid_copy_leading_local_assignments): Likewise.
15052 (grid_process_kernel_body_copy): Likewise.
15053 (grid_attempt_target_gridification): Likewise.
15054 (grid_gridify_all_targets_stmt): Likewise.
15055 (grid_gridify_all_targets): Likewise.
15056 (execute_lower_omp): Call grid_gridify_all_targets.
15057 (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
15058 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
15059 (tree_omp_clause): Added union field dimension.
15060 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
15061 * tree.c (omp_clause_num_ops): Added number of arguments of
15062 OMP_CLAUSE__GRIDDIM_.
15063 (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
15064 (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
15065 * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
15066 (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
15067 (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
15068 (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
15069 * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
15070 * tree-pass.h (make_pass_gen_hsail): Declare.
15071 (make_pass_ipa_hsa): Likewise.
15072 * ipa-hsa.c: New file.
15073 * lto-section-in.c (lto_section_name): Add hsa section name.
15074 * lto-streamer.h (lto_section_type): Add hsa section.
15075 * timevar.def (TV_IPA_HSA): New.
15076 * hsa-brig-format.h: New file.
15077 * hsa-brig.c: New file.
15078 * hsa-dump.c: Likewise.
15079 * hsa-gen.c: Likewise.
15080 * hsa.c: Likewise.
15081 * hsa.h: Likewise.
15082 * toplev.c (compile_file): Call hsa_output_brig.
15083 * hsa-regalloc.c: New file.
15084
15085 2016-01-18 Jeff Law <law@redhat.com>
15086
15087 PR tree-optimization/69320
15088 * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
15089 ranged object, do nothing if the RHS constant is not [0..1].
15090 (optimize_stmt): Comparing a boolean ranged object against a
15091 constant outside [0..1] results in a compile-time constant.
15092
15093 * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
15094 test.
15095
15096 2016-01-18 Sandra Loosemore <sandra@codesourcery.com>
15097
15098 * doc/invoke.texi (Invoking GCC): Add new section to menu.
15099 (Option Summary): Update to reflect new section and moved options.
15100 (C++ Dialect Options): Move -fstats to new section.
15101 (Debugging Options): Move all dump, statistics, and other GCC
15102 developer options to new section. Rewrite section introduction
15103 and re-order remaining options to put the more basic ones first.
15104 (Optimization Options): Move -fira-verbose and -flto-report* to
15105 new section.
15106 (Developer Options): New section incorporating moved options.
15107 * doc/cppopts.texi (-dM): Update cross-reference.
15108
15109 2016-01-18 Richard Henderson <rth@redhat.com>
15110
15111 PR target/69176
15112 * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
15113 operands to pseudo only if CSE is expected. Split long immediate
15114 operands only after reload, and for the stack pointer.
15115 (*add<GPI>3_pluslong): Remove.
15116 (*addsi3_aarch64, *adddi3_aarch64): Merge into...
15117 (*add<GPI>3_aarch64): ... here. Add r/rk/Upl alternative.
15118 (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
15119 (*add<GPI>3 peepholes): New.
15120 (*add<GPI>3 splitters): New.
15121 * config/aarch64/constraints.md (Upl): New.
15122 * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
15123
15124 2016-01-18 Richard Biener <rguenther@suse.de>
15125
15126 PR tree-optimization/69297
15127 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
15128 stmt at most once.
15129 (vect_bb_vectorization_profitable_p): Clear visited flag again.
15130
15131 2016-01-18 Yuri Rumyantsev <ysrumyan@gmail.com>
15132
15133 PR middle-end/68542
15134 * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
15135 of mixind vector and scalar types.
15136 (fold_relational_const): Add handling of vector
15137 comparison with boolean result.
15138 * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
15139 comparison of vector operands with boolean result for EQ/NE only.
15140 (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
15141 (verify_gimple_cond): Likewise.
15142 * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
15143 valid type of VAL.
15144
15145 2016-01-18 Joseph Myers <joseph@codesourcery.com>
15146
15147 * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
15148 !TARGET_OCTEON.
15149
15150 2016-01-18 Richard Biener <rguenther@suse.de>
15151
15152 PR middle-end/69308
15153 * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
15154
15155 2016-01-18 Tom de Vries <tom@codesourcery.com>
15156
15157 * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
15158
15159 2016-01-18 Tom de Vries <tom@codesourcery.com>
15160
15161 * omp-low.c (set_oacc_fn_attrib): Make extern.
15162 * omp-low.h (set_oacc_fn_attrib): Declare.
15163 * tree-parloops.c (struct reduction_info): Add reduc_addr field.
15164 (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
15165 (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
15166 Add and handle function parameter oacc_kernels_p.
15167 (find_reduc_addr, get_omp_data_i_param): New function.
15168 (ref_conflicts_with_region, oacc_entry_exit_ok_1)
15169 (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
15170 (parallelize_loops): Add and handle function parameter oacc_kernels_p.
15171 Calculate dominance info. Skip loops that are not in a kernels region
15172 in oacc_kernels_p mode. Skip inner loops of parallelized loops.
15173 (pass_parallelize_loops::execute): Call parallelize_loops with
15174 oacc_kernels_p argument.
15175 (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
15176 New member function.
15177 (pass_parallelize_loops::bool oacc_kernels_p): New member var.
15178 * passes.def: Add argument to pass_parallelize_loops instantation.
15179
15180 2016-01-18 Tom de Vries <tom@codesourcery.com>
15181
15182 * tree-parloops.c (pass_parallelize_loops::execute): Allow
15183 pass_parallelize_loops to be run outside the loop pipeline.
15184
15185 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
15186
15187 * tree-scalar-evolution.c (follow_copies_to_constant): New.
15188 (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
15189
15190 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
15191
15192 PR target/63679
15193 * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
15194 using get_ref_base_and_extent.
15195 (equal_mem_array_ref_p): New.
15196 (hashable_expr_equal_p): Add call to previous.
15197
15198 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
15199
15200 PR target/63679
15201 * tree-sra.c (disqualified_constants, constant_decl_p): New.
15202 (sra_initialize): Allocate disqualified_constants.
15203 (sra_deinitialize): Free disqualified_constants.
15204 (disqualify_candidate): Update disqualified_constants when appropriate.
15205 (create_access): Scan for constant-pool entries as we go along.
15206 (scalarizable_type_p): Add check against type_contains_placeholder_p.
15207 (maybe_add_sra_candidate): Allow constant-pool entries.
15208 (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
15209 (initialize_constant_pool_replacements): New.
15210 (sra_modify_assign): Avoid mangling assignments created by previous,
15211 and don't generate writes into constant pool.
15212 (sra_modify_function_body): Call initialize_constant_pool_replacements.
15213
15214 2016-01-18 Ilya Enkovich <enkovich.gnu@gmail.com>
15215
15216 * config/i386/i386.c (scalar_to_vector_candidate_p): Support
15217 andnot instruction.
15218 (scalar_chain::convert_op): Likewise.
15219 * config/i386/i386.md (*andndi3_doubleword): New.
15220
15221 2016-01-18 Richard Biener <rguenther@suse.de>
15222
15223 PR tree-optimization/69170
15224 * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
15225 building a vector from scalar results of a pattern stmt.
15226
15227 2016-01-18 Jakub Jelinek <jakub@redhat.com>
15228
15229 * haifa-sched.c (autopref_multipass_init): Work around
15230 -Wmaybe-uninitialized warning.
15231
15232 2016-01-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
15233
15234 * config/arm/arm.c (thumb1_reorg): Check that the comparison is
15235 against the constant 0.
15236
15237 2016-01-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15238
15239 PR tree-optimization/68799
15240 * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
15241 look up phi candidates in the statement-candidate map.
15242 (phi_add_costs): Likewise.
15243 (record_phi_increments): Likewise.
15244 (phi_incr_cost): Likewise.
15245 (ncd_with_phi): Likewise.
15246 (all_phi_incrs_profitable): Likewise.
15247
15248 2016-01-17 Jakub Jelinek <jakub@redhat.com>
15249
15250 * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
15251 -Wmaybe-uninitialized warning.
15252
15253 2016-01-16 Sandra Loosemore <sandra@codesourcery.com>
15254
15255 * doc/invoke.texi (Invoking GCC): Add new section to menu.
15256 (Option Summary): Update to reflect new section and moved options.
15257 (C++ Dialect Options): Move -fvtable-verify and related options.
15258 (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
15259 and profiling-related options.
15260 (Optimization Options): Move profile generation options and
15261 -fstack-protector and related options.
15262 (Instrumentation Options): New section incorporating moved options.
15263 (Code Generation Options): Move -finstrument-functions and
15264 related options, -fstack-check, -fstack-limit*, and -fbounds-check.
15265
15266 2016-01-16 Tom de Vries <tom@codesourcery.com>
15267
15268 * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
15269
15270 2016-01-16 Tom de Vries <tom@codesourcery.com>
15271
15272 * omp-low.c (expand_omp_atomic_fetch_op): Release defs of update stmt.
15273
15274 2016-01-16 Richard Sandiford <richard.sandiford@arm.com>
15275
15276 * hash-table.h (hash_table::empty): Turn into an inline wrapper
15277 that checks whether the table is already empty. Rename the
15278 original implementation to...
15279 (hash_table::empty_slot): ...this new private function.
15280
15281 2016-01-15 David Malcolm <dmalcolm@redhat.com>
15282
15283 PR diagnostic/68899
15284 * diagnostic-show-locus.c (layout::print_source_line): Move x
15285 offset of line until after call to
15286 get_line_width_without_trailing_whitespace.
15287
15288 2016-01-15 Jeff Law <law@redhat.com>
15289
15290 PR tree-optimization/69270
15291 * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
15292 tree-ssa-dom.c. Improve test for [0..1] ranve from VRP.
15293 * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
15294 * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
15295 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
15296 ssa_name_has_boolean_range and constant_boolean_node.
15297
15298 2016-01-15 Vladimir Makarov <vmakarov@redhat.com>
15299
15300 PR rtl-optimization/69030
15301 * lra-spills.c (remove_pseudos): Check nrefs and make the function
15302 returning bool.
15303 (spill_pseudos): Delete debug insn for dead pseudo.
15304 (lra_spill): Initiate spill_hard_reg and slots memory separately.
15305
15306 2016-01-15 Jiong Wang <jiong.wang@arm.com>
15307
15308 * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
15309 New.
15310 (TYPES_UNOPUS): Likewise.
15311 * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
15312 builtin type, from UNOP to UNOPUS.
15313 (lbtruncuv4sf): Likewise.
15314 (lbtruncuv2df): Likewise.
15315 (lrounduv2sf): Likewise.
15316 (lrounduv4sf): Likewise.
15317 (lrounduv2df): Likewise.
15318 (lroundusf): Likewise.
15319 (lroundusf): Likewise.
15320 (lceiluv2sf): Likewise.
15321 (lceiluv4sf): Likewise.
15322 (lceiluv2df): Likewise.
15323 (lceilusf): Likewise.
15324 (lceiludf): Likewise.
15325 (lflooruv2sf): Likewise.
15326 (lflooruv4sf): Likewise.
15327 (lflooruv2df): Likewise.
15328 (lfloorusf): Likewise.
15329 (lfloorudf): Likewise.
15330 (lfrintnuv2sf): Likewise.
15331 (lfrintnuv4sf): Likewise.
15332 (lfrintnuv2df): Likewise.
15333 (lfrintnusf): Likewise.
15334 (lfrintnudf): Likewise.
15335 * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
15336 conversion.
15337 (vcvtq_u32_f32): Likewise.
15338 (vcvtq_u64_f64): Likewise.
15339 (vcvta_u32_f32): Likewise.
15340 (vcvtaq_u32_f32): Likewise.
15341 (vcvtaq_u64_f64): Likewise.
15342 (vcvtm_u32_f32): Likewise.
15343 (vcvtmq_u32_f32): Likewise.
15344 (vcvtmq_u64_f64): Likewise.
15345 (vcvtn_u32_f32): Likwise.
15346 (vcvtnq_u32_f32): Likewise.
15347 (vcvtnq_u64_f64): Likewise.
15348 (vcvtp_u32_f32): Likewise.
15349 (vcvtpq_u32_f32): Likewise.
15350 (vcvtpq_u64_f64): Likewise.
15351 (vcvtmd_u64_f64): Likewise.
15352 (vcvtms_u32_f32): Likewise.
15353 (vcvtad_u64_f64): Likewise.
15354 (vcvtas_u32_f32): Likewise.
15355 (vcvtnd_u64_f64): Likewise.
15356 (vcvtns_u32_f32): Likewise.
15357 (vcvtpd_u64_f64): Likewise.
15358 (vcvtps_u32_f32): Likewise.
15359
15360 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15361
15362 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
15363 CSEL of zero_extended registers.
15364
15365 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15366
15367 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
15368 Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
15369
15370 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15371
15372 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
15373 false when argument string is not found in the attributes table
15374 at all.
15375
15376 2016-01-15 David Edelsohn <dje.gcc@gmail.com>
15377
15378 PR target/68609
15379 * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
15380 (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
15381 * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
15382 precision estimate.
15383
15384 2016-01-15 Richard Biener <rguenther@suse.de>
15385
15386 PR tree-optimization/66856
15387 * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
15388 * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
15389 (vect_create_new_slp_node): Increment stmt reference count.
15390 (vect_get_and_check_slp_defs): Make sure stmts are nor already in
15391 an SLP tree before swapping operands.
15392 (vect_build_slp_tree): Likewise.
15393 (destroy_bb_vec_info): Free stmt info after SLP instances.
15394 * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
15395 * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
15396 (STMT_VINFO_NUM_SLP_USES): New macro.
15397
15398 2016-01-15 Richard Biener <rguenther@suse.de>
15399
15400 PR debug/69137
15401 * dwarf2out.c (add_linkage_name_raw): New function split out from ...
15402 (add_linkage_name): ... here.
15403 (gen_typedef_die): Use add_linkage_name_raw instead of
15404 add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
15405 if necessary.
15406
15407 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
15408
15409 * gimplify.c (oacc_default_clause): Decode reference and pointer
15410 types for both kernels and parallel regions.
15411
15412 2016-01-15 Richard Sandiford <richard.sandiford@arm.com>
15413
15414 PR middle-end/69246
15415 * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
15416
15417 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
15418
15419 * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
15420 (convert_scalars_to_vector): Likewise.
15421
15422 2016-01-15 Jonathan Wakely <jwakely@redhat.com>
15423
15424 * doc/extend.texi (Type Traits): Fix grammar.
15425
15426 2016-01-15 Martin Jambor <mjambor@suse.cz>
15427
15428 * tree-inline.c (remap_decl): Use existing dclarations if
15429 remapping a type and prevent_decl_creation_for_types.
15430 (replace_locals_stmt): Do an initial remapping of non-VLA typed
15431 decls first. Do real remapping with
15432 prevent_decl_creation_for_types set.
15433 * tree-inline.h (copy_body_data): New field
15434 prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
15435 padding.
15436
15437 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
15438
15439 * config/s390/s390.opt (mmvcle): More verbose help text.
15440
15441 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
15442
15443 * config/s390/s390.opt: Add period to -mzvector option text.
15444
15445 2016-01-15 Richard Biener <rguenther@suse.de>
15446
15447 PR tree-optimization/68961
15448 * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
15449 of invariants in stores again.
15450
15451 2016-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
15452
15453 * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
15454
15455 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
15456
15457 * config/i386/i386.c (ix86_expand_branch): Don't split
15458 DI mode xor instruction to SI mode.
15459
15460 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
15461
15462 PR ipa/68148
15463 * ipa-icf.c (sem_function::merge): Virtual functions may become
15464 reachable even if they address is not taken and there are no
15465 idrect calls.
15466
15467 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
15468
15469 * lto-streamer-out.c (subtract_estimated_size): New function.
15470 (get_symbol_initial_value): Use it.
15471
15472 2016-01-15 Christian Bruel <christian.bruel@st.com>
15473
15474 PR target/65837
15475 * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
15476 (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
15477 (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
15478 use add_builtin_function_ext_scope instead of add_builtin_function.
15479 (neon_set_p, neon_crypto_set_p): Remove.
15480 (arm_init_builtins): Always call arm_init_neon_builtins and
15481 arm_init_crypto_builtins.
15482 (arm_expand_builtin): Check that builtins are allowed for the arch.
15483 * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
15484 * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
15485 arm_init_neon_builtins call.
15486
15487 2016-01-15 Richard Biener <rguenther@suse.de>
15488
15489 PR tree-optimization/69117
15490 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
15491 * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
15492 of the leader conservatively.
15493 (free_scc_vn): Restore original SSA name infos.
15494
15495 2016-01-14 Jeff Law <law@redhat.com>
15496
15497 PR tree-optimization/69270
15498 * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
15499 single bit of precision, verify it's also unsigned.
15500 (record_edge_info): Use constant_boolean_node rather than fold_convert
15501 to convert boolean_true/boolean_false to the right type.
15502
15503 2016-01-14 Richard Henderson <rth@redhat.com>
15504
15505 PR rtl-opt/69014
15506 * loop-doloop.c (record_reg_sets): New.
15507 (doloop_optimize): Reject the transform if the sequence
15508 clobbers registers live at the end of the loop block.
15509 (doloop_optimize_loops): Enable df_live if needed.
15510
15511 2016-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
15512
15513 * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
15514 * config/rs6000/rs6000.c: Likewise.
15515 * config/rs6000/rs6000.h: Likewise.
15516 * config/rs6000/rs6000.md: Likewise.
15517 * doc/extend.texi: Likewsie.
15518
15519 2016-01-14 Jeff Law <law@redhat.com>
15520
15521 * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
15522 typo.
15523
15524 2016-01-14 Richard Henderson <rth@redhat.com>
15525
15526 PR c/69272
15527 PR tree-opt/68964
15528 * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
15529 * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
15530 instead of builtin_decl_declared_p to test for declaration.
15531
15532 2016-01-14 Nicklas Bo Jensen <nbjensen@gmail.com>
15533
15534 * doc/loop.texi (Loop Analysis and Representation): Document
15535 loop_depth function.
15536
15537 2016-01-14 Tom de Vries <tom@codesourcery.com>
15538
15539 PR tree-optimization/68773
15540 * omp-low.c (expand_omp_target): Don't set force_output.
15541 * varpool.c (varpool_node::get_create): Same.
15542 * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
15543 offload_funcs with force_output.
15544
15545 2016-01-14 Jakub Jelinek <jakub@redhat.com>
15546
15547 PR debug/69244
15548 * lra-eliminations.c (move_plus_up): Don't change anything if either
15549 the outer or inner subreg mode is not MODE_INT.
15550 * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
15551 integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
15552
15553 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
15554
15555 * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
15556 reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
15557 reduc_uplus_@var{m}): Remove.
15558 * expr.c (expand_expr_real_2): Remove expansion path for
15559 reduc_[us](min|max|plus) optabs.
15560 * optabs-tree.c (scalar_reduc_to_vector): Remove.
15561 * optabs-tree.h (scalar_reduc_to_vector): Remove.
15562 * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
15563 reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
15564 * tree-vect-loop.c (vectorizable_reduction): Remove test for
15565 reduc_[us](min|max|plus) optabs.
15566
15567 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
15568
15569 * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
15570 (reduc_plus_scal_v2sf): New.
15571 (reduc_smax_v2sf): Rename to...
15572 (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
15573 (reduc_smin_v2sf): Rename to...
15574 (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
15575
15576 2016-01-14 Jan Hubicka <hubicka@ucw.cz>
15577
15578 * alias.c (compare_base_symbol_refs): New function.
15579 (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
15580 it.
15581
15582 2016-01-14 Jakub Jelinek <jakub@redhat.com>
15583
15584 PR middle-end/68146
15585 PR tree-optimization/69155
15586 * tree-complex.c: Include cfganal.h.
15587 (phis_to_revisit): New variable.
15588 (extract_component): Add phiarg_p argument. Assert that returned
15589 SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
15590 (update_phi_components): Partly rewrite to use loop over real/imag
15591 components instead of code duplication. If extract_component returns
15592 SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
15593 create_tmp_reg into the PHI node instead, and mention the phi triplet
15594 in phis_to_revisit.
15595 (tree_lower_complex): Walk bbs in rpo order. Adjust phis recorded
15596 in phis_to_revisit at the end.
15597
15598 2016-01-14 Richard Biener <rguenther@suse.de>
15599
15600 PR tree-optimization/68060
15601 * tree-vect-loop.c (vect_is_simple_reduction): Check the
15602 outer loop reduction is only used in the inner loop before
15603 detecting a double reduction.
15604
15605 2016-01-14 Jakub Jelinek <jakub@redhat.com>
15606
15607 PR target/68269
15608 * combine.c (expand_field_assignment): Punt if compute_mode is
15609 unsupported scalar mode.
15610
15611 2016-01-14 Richard Biener <rguenther@suse.de>
15612
15613 PR tree-optimization/66856
15614 * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
15615 SLP node only if it built successfully.
15616 (vect_analyze_slp_instance): Adjust.
15617
15618 2016-01-14 Jeff Law <law@redhat.com>
15619
15620 PR tree-optimization/69270
15621 * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
15622 (record_edge_info): Use it. Convert boolean_{true,false}_node
15623 to the type of op0.
15624
15625 2016-01-13 Jan Hubicka <hubicka@ucw.cz>
15626
15627 PR ipa/66487
15628 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
15629 use block_ultimate_origin
15630 (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
15631
15632 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
15633
15634 * doc/invoke.texi (Submodel Options): Rename section to
15635 "Machine-Dependent Options" to better reflect its content.
15636 Rewrite introductory text to remove archaic CPU names.
15637 Update references.
15638
15639 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
15640
15641 * doc/invoke.texi (Code Gen Options): Move section up in file,
15642 before target-specific options. Update menu and option summary
15643 to reflect the new section ordering.
15644
15645 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
15646
15647 * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
15648 (C++ Dialect Options): Add cross-reference to -std option.
15649 * doc/standards.texi (C++ Language): Document C++14 support.
15650
15651 2016-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
15652
15653 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
15654 for pack/unpack functions for __ibm128.
15655 (PACK_IF): Likewise.
15656 (UNPACK_IF): Likewise.
15657
15658 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
15659 support for __ibm128 pack/unpack functions.
15660 (rs6000_invalid_builtin): Likewise.
15661 (rs6000_init_builtins): Likewise.
15662 (rs6000_opt_masks): Likewise.
15663
15664 * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
15665 (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
15666 functions
15667 (RS6000_BTM_COMMON): Likewise.
15668
15669 * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
15670 (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
15671 disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
15672 128-bit floating point. Add support for the double values to be
15673 in Altivec registers for TF/IF packing and unpacking, but restrict
15674 TD packing sub-fields to be FPR registers. Don't allow overlapped
15675 register support for packing. Allow pack inputs to be memory
15676 locations. Don't build generator functions for unpack<mode>_dm
15677 and unpack<mode>_nodm.
15678 (unpack<mode>_dm): Likewise.
15679 (unpack<mode>_nodm): Likewise.
15680 (pack<mode>): Likewise.
15681
15682 * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
15683 built-in functions to pack/unpack explicit __ibm128 values.
15684 (__builtin_unpack_ibm128): Likewise.
15685
15686 * doc/extend.texi (PowerPC Built-in Functions): Document
15687 __builtin_pack_ibm128 and __builtin_unpack_ibm128.
15688
15689 2016-01-13 Bernd Schmidt <bschmidt@redhat.com>
15690
15691 PR c/66208
15692 * c-common.c (check_function_nonnull): Remove unnecessary declaration.
15693 Add new arg loc and pass it down as context.
15694 (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
15695 to the location to use for the warning.
15696 (check_function_arguments): New arg loc. All callers changed. Pass
15697 it to check_function_nonnull.
15698 * c-common.h (check_function_arguments): Adjust declaration.
15699
15700 2016-01-13 Jakub Jelinek <jakub@redhat.com>
15701
15702 PR tree-optimization/69156
15703 * gimple.c (validate_type): Removed.
15704 (gimple_builtin_call_types_compatible_p): Use
15705 useless_type_conversion_p instead of validate_type.
15706 * value-prof.c (gimple_stringop_fixed_value): Fold
15707 icall_size to correct type.
15708
15709 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
15710
15711 * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
15712 effects.
15713
15714 2016-01-13 Richard Henderson <rth@redhat.com>
15715
15716 PR tree-opt/68964
15717 * target.def (builtin_tm_load, builtin_tm_store): Remove.
15718 * config/i386/i386.c (ix86_builtin_tm_load): Remove.
15719 (ix86_builtin_tm_store): Remove.
15720 (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
15721 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
15722 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
15723 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
15724 * doc/tm.texi: Rebuild.
15725
15726 * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
15727 (BUILT_IN_TM_MEMCPY_RTWN): New.
15728 * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
15729 fallback from vector to integer helpers.
15730 (build_tm_load): Handle vector types directly, instead of
15731 via target hook.
15732 (build_tm_store): Likewise.
15733 (expand_assign_tm): Prepare for register types not handled by
15734 the above. Copy them to memory and use memcpy.
15735 * tree.c (tm_define_builtin): New.
15736 (find_tm_vector_type): New.
15737 (build_tm_vector_builtins): New.
15738 (build_common_builtin_nodes): Call it.
15739
15740 2016-01-13 Uros Bizjak <ubizjak@gmail.com>
15741
15742 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
15743 TARGET_SSE_MATH without TARGET_SSE2. Rewrite.
15744
15745 2016-01-13 Tom de Vries <tom@codesourcery.com>
15746
15747 PR tree-optimization/69169
15748 * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
15749 handled_struct_type param.
15750 (create_variable_info_for, intra_create_variable_infos): Call
15751 create_variable_info_for_1 with extra arg.
15752
15753 2016-01-13 Yvan Roux <yvan.roux@linaro.org>
15754
15755 * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
15756 and "armv8.1-a+crc" entries.
15757
15758 2016-01-13 Alexander Fomin <alexander.fomin@intel.com>
15759
15760 PR target/69228
15761 * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
15762 Change first operand predicate from register_or_constm1_operand
15763 to register_operand.
15764 (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
15765 (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
15766 (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
15767 (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
15768 (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
15769 (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
15770 (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
15771 * config/i386/i386.c (ix86_expand_builtin): Remove first operand
15772 comparison with constm1_rtx from vec_prefetch_gen part.
15773
15774 2016-01-13 Richard Biener <rguenther@suse.de>
15775
15776 PR tree-optimization/69013
15777 * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
15778 Exchange assert for a test.
15779
15780 2016-01-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15781
15782 PR target/69247
15783 * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
15784
15785 2016-01-13 Richard Biener <rguenther@suse.de>
15786
15787 PR tree-optimization/69242
15788 * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
15789 assert with a check.
15790
15791 2016-01-13 Richard Biener <rguenther@suse.de>
15792
15793 PR tree-optimization/69186
15794 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
15795 Properly guard vect_update_misalignment_for_peel call.
15796
15797 2016-01-12 Jeff Law <law@redhat.com>
15798
15799 PR tree-optimization/pr67755
15800 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
15801 "need_profile_correction".
15802 (thread_block_1): Initialize new field to false by default. If we
15803 have multiple thread paths through a common joiner to different
15804 final targets, then set new field to true.
15805 (compute_path_counts): Only do count adjustment when it's really
15806 needed.
15807
15808 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
15809
15810 * doc/invoke.texi (Spec Files): Move section down in file, past
15811 all command-line option descriptions.
15812
15813 2016-01-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15814
15815 PR middle-end/54809
15816 * doc/gty.texi: Remove documentation of mark_hook.
15817 * gengtype.c (struct write_types_data): Remove code to support
15818 mark_hook attribute.
15819 (walk_type): Likewise.
15820 (write_func_for_structure): Likewise.
15821
15822 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
15823
15824 * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
15825 Directory Options, and -specs= to Overall Options.
15826 (Overall Options): Adjust similarly. Reorder to group related
15827 options together. Make -specs= cross-reference the spec file details.
15828 (Directory Options): Adjust similarly.
15829
15830 2016-01-12 Jeff Law <law@redhat.com>
15831
15832 * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
15833
15834 2016-01-12 Olivier Hainque <hainque@adacore.com>
15835
15836 * gcc.c (spec_undefvar_allowed): New global.
15837 (process_command): Set to true when running for --version or --help,
15838 alone or together.
15839 (getenv_spec_function): When the variable is not defined, use the
15840 variable name as the variable value if we're allowed not to issue
15841 a fatal error.
15842
15843 2016-01-12 Bin Cheng <bin.cheng@arm.com>
15844
15845 PR tree-optimization/68911
15846 * tree-vrp.c (adjust_range_with_scev): Check overflow in range
15847 information computed for expression "init + nit * step".
15848
15849 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
15850
15851 * doc/invoke.texi (Invoking GCC): Copy-edit. Incorporate information
15852 about name of GCC executable. Remove deleted node from menu.
15853 (Directory Options) <-B>: Remove cross-reference to deleted node.
15854 (Target Options): Delete section.
15855
15856 2016-01-12 Christian Bruel <christian.bruel@st.com>
15857
15858 PR target/69180
15859 * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
15860 for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
15861
15862 2016-01-12 Jakub Jelinek <jakub@redhat.com>
15863
15864 PR target/69198
15865 * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
15866 aligned_mem is properly set for AVX512-VL floating point masked
15867 stores.
15868
15869 PR target/69175
15870 * ifcvt.c (cond_exec_process_if_block): When removing the last
15871 insn from then_bb, remove also any possible barriers that follow it.
15872
15873 2016-01-12 H.J. Lu <hongjiu.lu@intel.com>
15874
15875 PR target/68456
15876 PR target/69226
15877 * config/i386/iamcu.h (SIZE_TYPE): New macro.
15878 (PTRDIFF_TYPE): Likewise.
15879 (WCHAR_TYPE): Likewise.
15880 (WCHAR_TYPE_SIZE): Likewise.
15881 (STDINT_LONG32): Likewise.
15882
15883 2016-01-12 Richard Biener <rguenther@suse.de>
15884
15885 PR tree-optimization/69053
15886 * tree-vect-loop.c (get_initial_def_for_reduction): Properly
15887 convert initial value for cond reductions.
15888
15889 2016-01-12 Richard Biener <rguenther@suse.de>
15890
15891 PR tree-optimization/69007
15892 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
15893 widen_sum after dot_prod and sad.
15894
15895 2016-01-12 Richard Biener <rguenther@suse.de>
15896
15897 PR tree-optimization/69168
15898 * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
15899 pattern stmt SLP type.
15900 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
15901 end up unused so cope with that case.
15902
15903 2016-01-12 Richard Biener <rguenther@suse.de>
15904
15905 PR tree-optimization/69157
15906 * tree-vect-stmts.c (vectorizable_mask_load_store): Check
15907 stmts def type only during analyze phase.
15908 (vectorizable_call): Likewise.
15909 (vectorizable_simd_clone_call): Likewise.
15910 (vectorizable_conversion): Likewise.
15911 (vectorizable_assignment): Likewise.
15912 (vectorizable_shift): Likewise.
15913 (vectorizable_operation): Likewise.
15914 (vectorizable_store): Likewise.
15915 (vectorizable_load): Likewise.
15916
15917 2016-01-12 Richard Biener <rguenther@suse.de>
15918
15919 PR tree-optimization/69174
15920 * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
15921 space.
15922 (vectorizable_load): Properly compute the number of loads needed
15923 for permuted strided SLP loads and do not spuriously assign
15924 to SLP_TREE_VEC_STMTS.
15925
15926 2016-01-12 Andris Pavenis <andris.pavenis@iki.fi>
15927
15928 * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
15929 (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
15930 (MD_EXEC_PREFIX): Remove.
15931 (MD_STARTFILE_PREFIX) Removee.
15932 (FILE_NAME_ABSOLUTE_P): Remove.
15933 (CPP_SPEC): Do not read macros from sys/version.h.
15934 (LINK_COMMAND_SPEC): Remove.
15935 (LOCAL_INCLUDE_DIR): Remove.
15936 (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
15937 (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
15938 (POST_LINK_SPEC): Define to invoke stubify after linker
15939 (LIBSTDCXX): Remove define
15940 (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
15941 (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
15942 (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
15943 (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
15944 (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
15945 (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
15946 (i386_djgpp_asm_named_section): Add propotype of new procedure
15947
15948 * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
15949 (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
15950 (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
15951 in config/i386/djgpp.h).
15952 (STANDARD_STARTFILE_PREFIX_2): Define identical to
15953 STANDARD_STARTFILE_PREFIX_1.
15954 (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
15955 (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
15956 installation errors.
15957 (MAX_OFILE_ALIGNMENT): Define to 128.
15958 (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
15959
15960 * config/i386/djgpp.c: New file. Add implementation of
15961 i386_djgpp_asm_named_section.
15962
15963 * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
15964
15965 * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
15966 Add rule for building djgpp.o.
15967
15968 2016-01-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15969
15970 * config/rs6000/rs6000.c (v2df_reduction_p): New function.
15971 (rtx_is_swappable_p): Reductions are swappable.
15972 (insn_is_swappable_p): V2DF reductions are swappable.
15973
15974 2016-01-11 John David Anglin <danglin@gcc.gnu.org>
15975
15976 * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
15977 reloads for other unsupported memory operands.
15978
15979 2016-01-12 Kugan Vivekanandarajah <kuganv@linaro.org>
15980 Jim Wilson <jim.wilson@linaro.org>
15981
15982 PR target/69194
15983 * config/arm/arm-builtins.c (arm_expand_neon_args): Call
15984 copy_to_mode_reg instead of force_reg.
15985
15986 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
15987
15988 PR target/69225
15989 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
15990 TARGET_80387 is true.
15991
15992 2016-01-11 Jakub Jelinek <jakub@redhat.com>
15993
15994 PR target/69071
15995 * lra-eliminations.c (move_plus_up): Only move plus up
15996 if subreg of the constant can be simplified into constant
15997 and use the simplified subreg of the constant instead of
15998 the original constant.
15999
16000 * fold-const.c (fold_convertible_p): Don't return true
16001 for conversion of VECTOR_TYPE to same sized integral type.
16002 (fold_convert_loc): Fix up formatting. Fold conversion of
16003 VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
16004 instead of NOP_EXPR.
16005
16006 PR tree-optimization/69214
16007 * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
16008 innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
16009 Formatting fix.
16010
16011 PR tree-optimization/69207
16012 * tree-vect-slp.c (vect_get_constant_vectors): For
16013 VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
16014 fold_convertible_p to vector_type's element type, and always
16015 use VCE for non-VECTOR_BOOLEAN_TYPE_P.
16016
16017 2016-01-11 Richard Biener <rguenther@suse.de>
16018
16019 PR tree-optimization/69173
16020 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
16021 fixup the cycle if all stmts are in a pattern.
16022
16023 2016-01-11 Uros Bizjak <ubizjak@gmail.com>
16024
16025 PR middle-end/68999
16026 * alias.c (base_alias_check): Move check for addresses with
16027 alignment ANDs before the call for compare_base_decls.
16028 (memrefs_conflict_p): Return -1 for different decls
16029 that went through alignment adjustments.
16030
16031 2016-01-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16032
16033 PR rtl-optimization/68796
16034 * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
16035 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
16036 and QImode comparisons against zero with CC_NZmode.
16037 * config/aarch64/iterators.md (short_mask): New mode_attr.
16038
16039 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
16040
16041 * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
16042 (<avx512>_store<mode>_mask): Likewise.
16043
16044 2016-01-11 Bernd Schmidt <bschmidt@redhat.com>
16045 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16046
16047 PR rtl-optimization/68841
16048 * ifcvt.c (struct noce_if_info): Add orig_x field.
16049 (bbs_ok_for_cmove_arith): Add to_rename parameter.
16050 Don't record conflicts on to_rename if it's present.
16051 Allow memory destinations in sets.
16052 (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
16053 blocks, passing orig_x to the checks.
16054 (noce_process_if_block): Set if_info->orig_x appropriately.
16055
16056 2016-01-11 Tom de Vries <tom@codesourcery.com>
16057
16058 PR tree-optimization/69069
16059 * tree-parloops.c (create_parallel_loop): Add missing phi args.
16060
16061 2016-01-11 Yuri Rumyantsev <ysrumyan@gmail.com>
16062
16063 PR rtl-optimization/68920
16064 * config/i386/i386.c (ix86_option_override_internal): Restrict number
16065 of conditional moves for RTL if-conversion to 1 for
16066 TARGET_ONE_IF_CONV_INSN.
16067 * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
16068 * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
16069 * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
16070 parameter to restirct number of conditional moves for
16071 RTL if-conversion.
16072 * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
16073 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
16074 conditionl moves.
16075
16076 2016-01-11 Alexandre Oliva <aoliva@redhat.com>
16077
16078 PR bootstrap/69123
16079 * var-tracking.c (drop_overlapping_mem_locs): Operate on all
16080 onepart vars. Fix typo in comment. Fix reversed condition in
16081 unshare test.
16082 (dataflow_set_remove_mem_locs): Operate on all onepart vars.
16083
16084 PR bootstrap/69123
16085 * var-tracking.c (dump_onepart_variable_differences): New.
16086 (dataflow_set_different): If a detailed dump is requested,
16087 delay early returns and dump differences between onepart
16088 variables present before and after, and added variables.
16089
16090 2016-01-11 Ilya Enkovich <enkovich.gnu@gmail.com>
16091
16092 PR target/69010
16093 * expr.c (expand_expr_real_1): For boolean vector constants
16094 with a scalar mode use const_scalar_mask_from_tree.
16095 (const_scalar_mask_from_tree): New.
16096 * optabs.c (expand_vec_cond_mask_expr): Use mask mode
16097 assigned to a mask type to handle constants.
16098
16099 2016-01-11 Martin Jambor <mjambor@suse.cz>
16100
16101 PR ipa/69044
16102 * ipa-cp.c (estimate_local_effects): Do not clone for removal of
16103 useless parameters if we cannot change function signature.
16104
16105 2016-01-11 Martin Jambor <mjambor@suse.cz>
16106
16107 PR ipa/66616
16108 * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
16109 flag.
16110
16111 2016-01-11 Tom de Vries <tom@codesourcery.com>
16112
16113 PR tree-optimization/69109
16114 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
16115 latch with phi.
16116
16117 2016-01-11 Tom de Vries <tom@codesourcery.com>
16118
16119 PR tree-optimization/69108
16120 * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
16121 res is not used in a phi.
16122
16123 2016-01-11 Yury Gribov <y.gribov@samsung.com>
16124
16125 PR 67425
16126 * common.opt (frandom-seed): Fix parameter name.
16127 * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
16128
16129 2016-01-11 Tom de Vries <tom@codesourcery.com>
16130
16131 PR tree-optimization/69058
16132 * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
16133 not supported.
16134
16135 2016-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
16136
16137 * config/arc/arc.opt (mdiv-rem): Add period to the end.
16138 (mcode-density): Likewise.
16139
16140 2016-01-10 Tom de Vries <tom@codesourcery.com>
16141
16142 PR tree-optimization/69062
16143 * tree-parloops.c (loop_has_phi_with_address_arg): New function.
16144 (parallelize_loops): Don't paralelize loop that has phi with address
16145 arg.
16146
16147 2016-01-10 Tom de Vries <tom@codesourcery.com>
16148
16149 PR tree-optimization/69039
16150 * tree-parloops.c (try_create_reduction_list): Only allow single exit
16151 phi for reduction.
16152
16153 2016-01-09 John David Anglin <danglin@gcc.gnu.org>
16154
16155 PR middle-end/68743
16156 * match.pd: Require target has function_c99_misc before doing
16157 truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
16158
16159 2016-01-09 Gerald Pfeifer <gerald@pfeifer.com>
16160
16161 * configure.ac (isl_options_set_schedule_serialize_sccs): Also
16162 use GMPINC.
16163 * configure: Regenerate.
16164
16165 2016-01-09 Jakub Jelinek <jakub@redhat.com>
16166
16167 PR middle-end/50865
16168 PR tree-optimization/69097
16169 * fold-const.h (expr_not_equal_to): New prototype.
16170 * fold-const.c: Include stringpool.h and tree-ssanames.h.
16171 (expr_not_equal_to): New function.
16172 * match.pd (X % -Y is the same as X % Y): Don't optimize
16173 unless X is known not to be equal to minimum or Y is known
16174 not to be equal to -1.
16175 * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
16176 fold TRUNC_MOD_EXPR if the second argument is not a power of two.
16177 (simplify_stmt_using_ranges): Adjust caller.
16178 (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
16179 substitute_and_fold.
16180
16181 2016-01-09 Jan Hubicka <hubicka@ucw.cz>
16182
16183 * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
16184 w/o DECL_NAME.
16185
16186 2016-01-08 Jakub Jelinek <jakub@redhat.com>
16187
16188 PR tree-optimization/69167
16189 * gimple-fold.c (replace_stmt_with_simplification): Also punt if
16190 new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
16191 ops[0] comparison.
16192 * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
16193
16194 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
16195 Richard Biener <rguenther@suse.de>
16196
16197 PR tree-optimization/68707
16198 * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
16199 instances that can be handled via vect_load_lanes.
16200
16201 2016-01-08 Uros Bizjak <ubizjak@gmail.com>
16202
16203 * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
16204 if we can't determine address equivalence.
16205 * alias.c (compare_base_decl): Update for changed return value of
16206 symtab_node::equal_address_to.
16207
16208 2016-01-08 Jason Merrill <jason@redhat.com>
16209
16210 PR c++/68983
16211 PR c++/67557
16212 * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
16213 * expr.c (store_field): Not here.
16214 * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
16215 call with TREE_ADDRESSABLE type.
16216 * tree-cfg.c (verify_gimple_call): Adjust.
16217
16218 2016-01-08 Olivier Hainque <hainque@adacore.com>
16219
16220 * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
16221 libc_internal.
16222
16223 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
16224
16225 * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
16226 (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
16227 (reduc_smin_v2sf): Rename to...
16228 (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
16229 (reduc_splus_v2sf): Rename to...
16230 (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
16231
16232 2016-01-08 Jakub Jelinek <jakub@redhat.com>
16233
16234 PR tree-optimization/69162
16235 * gimplify.c (gimplify_va_arg_expr): Encode original type of
16236 valist argument in another argument.
16237 (gimplify_modify_expr): Adjust for the above change. Cleanup.
16238 * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
16239 to determine the va_list type, build a MEM_REF instead of
16240 build_fold_indirect_ref.
16241
16242 PR tree-optimization/69172
16243 * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
16244 gimple_build.
16245
16246 2016-01-08 Thomas Preud'homme <thomas.preudhomme@arm.com>
16247
16248 PR tree-optimization/67781
16249 * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
16250 and cmpnop in two steps: first the ones not accessed in original
16251 gimple expression in a endian independent way and then the ones not
16252 accessed in the final result in an endian-specific way.
16253
16254 2016-01-08 Jakub Jelinek <jakub@redhat.com>
16255
16256 PR tree-optimization/69083
16257 * tree-vect-slp.c (vect_get_constant_vectors): For
16258 VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
16259 element type. If op is fold_convertible_p to vector_type's element
16260 type, use NOP_EXPR instead of VCE.
16261
16262 2016-01-08 Segher Boessenkool <segher@kernel.crashing.org>
16263
16264 PR rtl-optimization/67778
16265 PR rtl-optimization/68634
16266 PR rtl-optimization/68909
16267 * shrink-wrap.c (try_shrink_wrapping): Add comment. Don't pop
16268 block from the stack until done with it. Remove a superfluous
16269 bitmap set. Remove a superfluous bitmap test.
16270
16271 2016-01-07 Martin Sebor <msebor@redhat.com>
16272
16273 PR c/68966
16274 * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
16275 constraint on the type of arguments.
16276
16277 2016-01-07 Andreas Tobler <andreast@gcc.gnu.org>
16278
16279 * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
16280 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
16281 unaligned_access on the gcc_options set.
16282 * config/arm/arm.c (arm_option_override_internal): Use
16283 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
16284
16285 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
16286
16287 PR target/69140
16288 * config/i386/i386.c (ix86_frame_pointer_required): Enable
16289 frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
16290
16291 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
16292
16293 Revert
16294 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
16295
16296 PR target/69140
16297 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
16298 depending on frame_pointer_needed before remaining integer and SSE
16299 registers are saved.
16300
16301 2016-01-07 Sandra Loosemore <sandra@codesourcery.com>
16302
16303 PR 1078
16304 * doc/extend.texi (Nvidia PDX Function Attributes): New section.
16305
16306 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
16307
16308 PR target/69171
16309 * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
16310 Use the "xBm" constraint.
16311 (float<sseintvecmodelower><mode>2<mask_name><round_name):
16312 Likewise.
16313 (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
16314 (sse_cvtsi2ssq<round_name>): Likewise.
16315 (sse_cvtss2si<round_name>): Likewise.
16316 (sse_cvtss2siq<round_name>): Likewise.
16317 (sse2_cvtsi2sdq<round_name>): Likewise.
16318 (sse2_cvtsd2si<round_name>): Likewise.
16319 (sse2_cvtsd2siq<round_name>): Likewise.
16320 * config/i386/subst.md (round_nimm_scalar_predicate): New
16321 predicate.
16322
16323 2015-12-15 Bernd Schmidt <bschmidt@redhat.com>
16324
16325 PR middle-end/67639
16326 * varasm.c (make_decl_rtl): Mark invalid register vars as
16327 DECL_EXTERNAL.
16328
16329 PR rtl-optimization/66206
16330 * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
16331 All callers changed.
16332
16333 2016-01-07 Jakub Jelinek <jakub@redhat.com>
16334
16335 PR tree-optimization/69141
16336 * tree-ssa-pre.c: Include langhooks.h.
16337 (eliminate_dom_walker::before_dom_children): Use
16338 lang_hooks.decl_printable_name instead of
16339 cgraph_node::get ()->name ().
16340
16341 PR middle-end/68960
16342 * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
16343 it and DECL_ALIGN too.
16344
16345 2016-01-06 Robert Suchanek <robert.suchanek@imgtec.com>
16346
16347 * config/mips/mips-ftypes.def: Sort to lexicographical order.
16348
16349 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
16350
16351 PR target/69140
16352 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
16353 depending on frame_pointer_needed before remaining integer and SSE
16354 registers are saved.
16355
16356 2015-01-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16357
16358 * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
16359 mode iterator with VSX_M2.
16360 (*p9_vecstore_<mode>): Likewise.
16361 (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
16362 (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
16363 (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
16364 (define_split for VSX_LE128 stores): Likewise.
16365 (define_peephole2 for TImode LE swaps): Likewise.
16366 (define_split for VSX_LE128 post-reload stores): Likewise.
16367
16368 2016-01-06 Marek Polacek <polacek@redhat.com>
16369
16370 PR sanitizer/69099
16371 * convert.c (convert_to_integer_1): Adjust call to
16372 ubsan_instrument_float_cast. Use NULL_TREE instead of NULL.
16373 * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter. Use
16374 EXPR instead of ARG.
16375 * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
16376
16377 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
16378
16379 PR 1078
16380 * doc/extend.texi (RL78 Variable Attributes): New section.
16381
16382 2016-01-05 Marek Polacek <polacek@redhat.com>
16383
16384 PR c/69104
16385 * builtins.c (get_memmodel): Use expansion point location rather than
16386 the input location. Call warning_at rather than warning.
16387 (expand_builtin_atomic_compare_exchange): Likewise.
16388 (expand_builtin_atomic_load): Likewise.
16389 (expand_builtin_atomic_store): Likewise.
16390 (expand_builtin_atomic_clear): Likewise.
16391
16392 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
16393
16394 PR target/68991
16395 * config/i386/i386.c (ix86_expand_vector_logical_operator):
16396 Replace nonimmediate_operand with vector_operand.
16397 * config/i386/predicates.md (vector_operand): New predicate.
16398 (general_vector_operand): Replace nonimmediate_operand with
16399 vector_operand.
16400 * config/i386/sse.md: Replace nonimmediate_operand with
16401 vector_operand and m constraint with Bm constraint on SSE
16402 patterns with 16-byte memory operand.
16403 * config/i386/subst.md (round_nimm_predicate): Replace
16404 nonimmediate_operand with vector_operand.
16405 (round_saeonly_nimm_predicate): Likewise.
16406 (round_saeonly_nimm_scalar_predicate): New.
16407
16408 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
16409
16410 PR target/68991
16411 * config/i386/constraints.md (Bm): New constraint.
16412 * config/i386/predicates.md (vector_memory_operand): New
16413 predicate.
16414 * config/i386/sse.md: Replace xm with xBm in plusminus and
16415 any_logic patterns.
16416
16417 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
16418
16419 PR 1078
16420 * doc/extend.texi (V850 Function Attributes): New section.
16421 (V850 Variable Attributes): New section.
16422
16423 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
16424
16425 PR 1078
16426 * doc/extend.texi (MicroBlaze Function Attributes): Document
16427 interrupt_handler and fast_interrupt attributes.
16428
16429 2016-01-05 Sergei Trofimovich <siarheit@google.com>
16430
16431 PR other/60465
16432 * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
16433 for local symbolic operands.
16434 * config/ia64/predicates.md (local_symbolic_operand64): New
16435 predicate.
16436
16437 2016-01-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16438
16439 PR rtl-optimization/68651
16440 * combine.c (combine_simplify_rtx): Canonicalize x + x into
16441 x << 1.
16442
16443 2016-01-05 Nathan Sidwell <nathan@acm.org>
16444
16445 * alias.c (compare_base_decls): Use symtab_node::get.
16446
16447 2016-01-05 Nick Clifton <nickc@redhat.com>
16448
16449 PR target/68770
16450 * ira-costs.c (copy_cost): Initialise the t_icode field of the
16451 secondary_reload_info structure.
16452
16453 PR target/66655
16454 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
16455 decls if weak support is available.
16456
16457 2016-01-04 Martin Sebor <msebor@redhat.com>
16458
16459 * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
16460
16461 2016-01-04 Michael Meissner <meissner@linux.vnet.ibm.com>
16462
16463 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
16464 OPTION_MASK_P9_DFORM.
16465
16466 * config/rs6000/constraints.md (wo constraint): New constraint for
16467 ISA 3.0 (power9).
16468
16469 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
16470 for wo constraint.
16471 (rs6000_init_hard_regno_mode_ok): Likewise.
16472
16473 * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
16474 wo constraint.
16475
16476 * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
16477 expanders not to have constraints. Add support for ISA 3.0 xxperm
16478 instruction. Add support for fusing xxlor with xxperm.
16479 (altivec_vperm_<mode>_internal): Likewise.
16480 (altivec_vperm_v8hiv16qi): Likewise.
16481 (altivec_vperm_<mode>v16q): Likewise.
16482 (altivec_vperm_<mode>_uns): Likewise.
16483 (vperm_v8hiv4si): Likewise.
16484 (vperm_v16qiv8hi): Likewise.
16485
16486 * doc/md.texi (RS/6000 constraints): Document wo constraint.
16487
16488 2016-01-04 Jakub Jelinek <jakub@redhat.com>
16489
16490 Update copyright years.
16491
16492 * gcc.c (process_command): Update copyright notice dates.
16493 * gcov-dump.c (print_version): Ditto.
16494 * gcov.c (print_version): Ditto.
16495 * gcov-tool.c (print_version): Ditto.
16496 * gengtype.c (create_file): Ditto.
16497 * doc/cpp.texi: Bump @copying's copyright year.
16498 * doc/cppinternals.texi: Ditto.
16499 * doc/gcc.texi: Ditto.
16500 * doc/gccint.texi: Ditto.
16501 * doc/gcov.texi: Ditto.
16502 * doc/install.texi: Ditto.
16503 * doc/invoke.texi: Ditto.
16504
16505 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
16506
16507 * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
16508 modes larger than TImode as TImode if NEON is not enabled.
16509
16510 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
16511
16512 PR target/69100
16513 * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
16514 mode for %f0-%f31 only if TARGET_FPU.
16515
16516 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
16517
16518 PR target/69072
16519 * config/sparc/sparc.c (scan_record_type): Take into account subfields
16520 to compute the PACKED_P predicate.
16521 (function_arg_record_value): Minor tweaks.
16522
16523 2016-01-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
16524
16525 * doc/install.texi (--with-multilib-list): Describe the meaning of the
16526 option for arm*-*-* targets.
16527
16528 2016-01-03 Sandra Loosemore <sandra@codesourcery.com>
16529
16530 * doc/extend.texi (Common Function Attributes): Move docs for
16531 MSP430-specific attributes to....
16532 (MSP430 Function Attributes): ...here. Delete the redundant
16533 entries and copy-edit the remaining text.
16534 (MSP430 Variable Attributes): Use uniform format for index
16535 entries and add a cross-reference to the corresponding function
16536 attribute docs.
16537
16538 2016-01-03 Vladimír Čunát <vcunat@gmail.com>
16539
16540 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
16541 -finite-math typo.
16542 (x86 Options): Likewise.
16543
16544 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
16545
16546 PR 1078
16547
16548 * extend.texi (Common Function Attributes) <no_stack_limit>: New.
16549 * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
16550 to corresponding attribute.
16551
16552 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
16553
16554 * doc/extend.texi (Common Function Attributes) <noplt>: Move
16555 to correct alphabetization of table. Copy-edit and correct
16556 markup.
16557 <stack_protect>: Likewise.
16558 <target_clones>: Likewise.
16559 <simd>: Likewise.
16560 * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
16561 Correct punctuation.
16562 (Code Gen Options) <-fno-plt>: Copy-edit.
16563
16564 2016-01-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
16565
16566 PR target/68917
16567 * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
16568 SI values. Explicitly convert SI to DI and vice-versa.
16569
16570 2016-01-01 Jakub Jelinek <jakub@redhat.com>
16571
16572 PR tree-optimization/69070
16573 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
16574 REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
16575
16576 PR sanitizer/69055
16577 * ubsan.c (ubsan_instrument_float_cast): Call
16578 initialize_sanitizer_builtins.
16579
16580 PR target/69015
16581 * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
16582 \f
16583 Copyright (C) 2016 Free Software Foundation, Inc.
16584
16585 Copying and distribution of this file, with or without modification,
16586 are permitted in any medium without royalty provided the copyright
16587 notice and this notice are preserved.