1 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3 * config/s390/vector.md: Add missing commutative operand markers
4 to the patterns which qualify for one.
5 * config/s390/vx-builtins.md: Likewise.
7 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9 * config/s390/vector.md (VI, VI_QHS): Add single element vector
10 types to mode iterators.
11 (vec_double): ... and mode attribute.
12 * config/s390/vx-builtins.md (non_vec_int): Likewise.
14 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16 * config/s390/vector.md ("<ti*>add<mode>3", "<ti*>sub<mode>3"):
17 Change the predicate of op2 from nonimmediate to general and let
18 reload fix it if necessary.
20 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22 * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
24 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26 * config/s390/s390.c (s390_expand_vcond): Use the compare operand
29 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31 * config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
32 * config/s390/s390.c (s390_expand_vec_movstr): New function.
33 * config/s390/s390.md ("movstr<P:mode>"): Call
34 s390_expand_vec_movstr.
36 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
38 * config/s390/s390.md: Add missing output modifier for operand 1
39 to print it as address properly.
41 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
43 * config/s390/2827.md: Rename ooo_* insn attributes to zEC12_*.
44 * config/s390/2964.md: New file.
45 * config/s390/s390.c (s390_get_sched_attrmask): Use the right set
46 of insn grouping attributes depending on the CPU level.
47 (s390_get_unit_mask): New function.
48 (s390_sched_score): Remove the OOO from the scheduling macros.
49 Add loop to calculate a score for the instruction mix.
50 (s390_sched_reorder): Likewise plus improve debug output.
51 (s390_sched_variable_issue): Rename macros as above. Calculate
52 the unit distances after actually scheduling an insn. Improve
54 (s390_sched_init): Clear last_scheduled_unit_distance array.
55 * config/s390/s390.md: Include 2964.md.
57 2016-02-18 Jakub Jelinek <jakub@redhat.com>
60 * config/i386/sse.md (*<floatsuffix>floatv2div2sf2_mask_1,
61 *avx512vl_<code>v2div2qi2_mask_1, *avx512vl_<code><mode>v4qi2_mask_1,
62 *avx512vl_<code><mode>v8qi2_mask_1, *avx512vl_<code><mode>v4hi2_mask_1,
63 *avx512vl_<code>v2div2hi2_mask_1, *avx512vl_<code>v2div2si2_mask_1,
64 *avx512f_<code>v8div16qi2_mask_1): New insns.
66 2016-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
69 * config/rs6000/predicates.md (fusion_gpr_addis): Revert
72 * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
73 earlyclobber from target. Use wF constraint for fused memory
75 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
77 2016-02-18 Jakub Jelinek <jakub@redhat.com>
78 Martin Liska <mliska@suse.cz>
81 * cfgexpand.c (asan_sanitize_stack_p): New function.
82 (partition_stack_vars): Use the function.
83 (expand_stack_vars): Likewise.
84 (defer_stack_allocation): Likewise.
85 (expand_used_vars): Likewise.
87 2016-02-18 Richard Biener <rguenther@suse.de>
90 * fold-const.c (operand_equal_p): Properly compare offsets for
91 IMAGPART_EXPR and ARRAY_REF.
93 2016-02-18 Nick Clifton <nickc@redhat.com>
97 * config/arm/arm.c (arm_option_override_internal): Disable
98 interworking if the target does not support thumb instructions.
99 (arm_reload_in_hi): Handle the case where a register to register
100 move needs reloading because there is no simple pattern to handle
102 (arm_reload_out_hi): Likewise.
104 2016-02-18 Richard Biener <rguenther@suse.de>
107 * match.pd: Don't use fold_binary or fold_unary for folding
110 2016-02-17 Jakub Jelinek <jakub@redhat.com>
113 * gimplify.c (gimplify_cond_expr): Call gimple_set_no_warning
114 on the cond_stmt from TREE_NO_WARNING on COND_EXPR_COND.
115 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Don't
116 warn on gimple_no_warning_p statements.
118 2016-02-17 Jonathan Wakely <jwakely@redhat.com>
120 * doc/extend.texi (C++ Attributes): Correct description of
121 warn_unused type attribute.
123 2016-02-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
125 * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
128 2016-02-17 Richard Biener <rguenther@suse.de>
130 PR rtl-optimization/69609
131 * bb-reorder.c (struct bbro_basic_block_data): Add priority member.
132 (find_traces_1_round): When ending a trace update cached priority
134 (bb_to_key): Use cached priority when available.
135 (copy_bb): Initialize cached priority.
136 (reorder_basic_blocks_software_trace_cache): Likewise.
138 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
141 * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
143 (aarch64_comparison_operator): Break overly long line into two.
144 (aarch64_comparison_operation): Likewise.
145 * config/aarch64/aarch64.md (cstorecc4): Use
146 aarch64_comparison_operator_mode instead of
147 aarch64_comparison_operator.
148 (cstore<mode>4): Likewise.
149 (aarch64_cstore<mode>): Likewise.
150 (*cstoresi_insn_uxtw): Likewise.
151 (cstore<mode>_neg): Likewise.
152 (*cstoresi_neg_uxtw): Likewise.
154 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
157 * config/arm/predicates.md (arm_comparison_operator_mode):
159 * config/arm/arm.md (*mov_scc): Use arm_comparison_operator_mode
160 instead of arm_comparison_operator.
161 (*mov_negscc): Likewise.
162 (*mov_notscc): Likewise.
163 * config/arm/thumb2.md (*thumb2_mov_scc): Likewise.
164 (*thumb2_mov_negscc): Likewise.
165 (*thumb2_mov_negscc_strict_it): Likewise.
166 (*thumb2_mov_notscc): Likewise.
167 (*thumb2_mov_notscc_strict_it): Likewise.
169 2016-02-17 Wilco Dijkstra <wdijkstr@arm.com>
171 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
174 2016-02-17 Eric Botcazou <ebotcazou@adacore.com>
176 * config/visium/visium.c (machine_libfunc_index): New enum.
177 (machine_libfuncs): New structure.
178 (visium_libfuncs): New static variable.
179 (TARGET_INIT_LIBFUNCS): Define to...
180 (visium_init_libfuncs): ...this. New function.
181 (expand_block_move_4): Use the appropriate libfunc.
182 (expand_block_move_2): Likewise.
183 (expand_block_move_1): Likewise.
184 (expand_block_set_4): Likewise.
185 (expand_block_set_2): Likewise.
186 (expand_block_set_1): Likewise.
187 (visium_trampoline_init): Likewise.
189 2016-02-17 Nick Clifton <nickc@redhat.com>
191 * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
192 TI's devices.csv file as of March 2016.
194 2016-02-16 Kelvin Nilsen <kelvin@gcc.gnu.org>
197 * opts-global.c (handle_common_deferred_options): Introduce and
198 initialize two global variables to remember command-line options
199 specifying a stack-limiting register.
200 * opts.h: Add extern declarations of the two new global variables.
201 * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx
202 variable based on the values of the two new global variables.
204 2016-02-16 Jakub Jelinek <jakub@redhat.com>
207 * common.opt (Wnonnull-compare): New warning.
208 * doc/invoke.texi (-Wnonnull): Remove text about comparison
209 of arguments against NULL.
210 (-Wnonnull-compare): Document.
211 * Makefile.in (OBJS): Add gimple-ssa-nonnull-compare.o.
212 * tree-pass.h (make_pass_warn_nonnull_compare): Declare.
213 * passes.def (pass_warn_nonnull_compare): Add.
214 * gimple-ssa-nonnull-compare.c: New file.
216 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
218 * config/aarch64/aarch64.c (cortexa57_tunings): Remove
219 AARCH64_EXTRA_TUNE_RECIP_SQRT.
221 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
223 * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
224 reciprocal sqrt for -mlow-precision-recip-sqrt.
226 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
227 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
229 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
230 always use lane loads to construct non-constant vectors.
232 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
234 * config/aarch64/aarch64.md
235 (arch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Fix register
236 constraints for operand 3.
237 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
239 2016-02-16 Jakub Jelinek <jakub@redhat.com>
240 Richard Biener <rguenther@suse.de>
242 PR tree-optimization/69820
243 * tree-vect-patterns.c (type_conversion_p): Return false if
244 *orig_type is unsigned single precision or boolean.
245 (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern):
248 2016-02-16 Jakub Jelinek <jakub@redhat.com>
250 PR rtl-optimization/69764
251 PR rtl-optimization/69771
252 * optabs.c (expand_binop): Ensure for shift optabs invalid CONST_INT
253 op1 is valid for GET_MODE_INNER (mode) and force it into a reg.
255 2016-02-16 Richard Biener <rguenther@suse.de>
257 PR tree-optimization/69776
258 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
260 (indirect_refs_may_alias_p): Likewise.
261 (refs_may_alias_p_1): Pass alias sets as from ao_ref.
262 * tree-ssa-sccvn.c (vn_reference_lookup): Also adjust vr alias-set
264 * tree-ssa-dom.c (lookup_avail_expr): Add tbaa_p flag.
265 (optimize_stmt): For redundant store discovery do not allow tbaa.
267 2016-02-16 Bernd Schmidt <bschmidt@redhat.com>
269 PR tree-optimization/69714
270 * tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
271 Return NULL if we have irrelevant high bytes on BIG_ENDIAN.
273 2016-02-16 Claudiu Zissulescu <claziss@synopsys.com>
275 * config/arc/arc-modes.def (CC_FPU, CC_FPU_UNEQ): New modes.
276 * config/arc/arc-opts.h (FPU_SP, FPU_SF, FPU_SC, FPU_SD, FPU_DP)
277 (FPU_DF, FPU_DC, FPU_DD, FXP_DP): Define.
278 * config/arc/arc.c (arc_init): Check FPU options.
279 (get_arc_condition_code): Handle new CC_FPU* modes.
280 (arc_select_cc_mode): Likewise.
281 (arc_conditional_register_usage): Allow 64 bit datum into even-odd
282 register pair only. Allow access for ARCv2 accumulator.
283 (gen_compare_reg): Whenever we have FPU support use FPU compare
285 (arc_reorg): Don't generate brcc insns when FPU compare
286 instructions are involved.
287 * config/arc/arc.h (TARGET_DPFP): Add TARGET_FP_DPAX condition.
288 (TARGET_OPTFPE): Add condition when ARC EM can use optimized
289 floating point emulation.
290 (ACC_REG_FIRST, ACC_REG_LAST, ACCL_REGNO, ACCH_REGNO): Define.
291 (REVERSE_CONDITION): Add new CC_FPU* modes.
292 (TARGET_FP_SP_BASE): Define.
293 (TARGET_FP_DP_BASE): Likewise.
294 (TARGET_FP_SP_FUSED): Likewise.
295 (TARGET_FP_DP_FUSED): Likewise.
296 (TARGET_FP_SP_CONV): Likewise.
297 (TARGET_FP_DP_CONV): Likewise.
298 (TARGET_FP_SP_SQRT): Likewise.
299 (TARGET_FP_DP_SQRT): Likewise.
300 (TARGET_FP_DP_AX): Likewise.
301 * config/arc/arc.md (ARCV2_ACC): New constant.
302 (type): New fpu type attribute.
303 (SDF): Conditional iterator.
304 (cstore<mode>, cbranch<mode>): Change expand condition.
305 (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3): New expands,
306 handles FPU/FPX cases as well.
307 * config/arc/arc.opt (mfpu): New option.
308 * config/arc/fpx.md (addsf3_fpx, subsf3_fpx, mulsf3_fpx):
310 (adddf3, muldf3, subdf3): Removed.
311 * config/arc/predicates.md (proper_comparison_operator): Recognize
313 * config/arc/fpu.md: New file.
314 * doc/invoke.texi (ARC Options): Document mfpu option.
316 2016-02-16 Richard Biener <rguenther@suse.de>
318 PR rtl-optimization/69291
319 * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
320 noce_operand_ok check.
322 2016-02-16 Tom de Vries <tom@codesourcery.com>
325 * omp-low.c (simd_clone_create): Remove call to
326 symtab->call_cgraph_insertion_hooks.
328 2016-02-16 Jakub Jelinek <jakub@redhat.com>
330 PR tree-optimization/69802
331 * tree-ssa-reassoc.c (update_range_test): If op is
332 SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
333 op == 1 test of precision 1 integral op, otherwise handle
334 that case as op itself. Fix up formatting.
335 (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
338 2016-02-16 Richard Biener <rguenther@suse.de>
340 PR tree-optimization/69586
341 * tree-vrp.c (register_edge_assert_for_2): Handle all integral
342 types for conversion sources.
344 2016-02-16 Richard Biener <rguenther@suse.de>
347 * fold-const.c (operand_equal_p): For COND_EXPR zero operand
350 2016-02-16 Alan Modra <amodra@gmail.com>
353 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
354 (p8_mtvsrd_df, p8_mtvsrd_sf): New.
355 (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
357 (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
358 (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
359 (p8_fmrgow_<mode>): Likewise.
360 (reload_vsx_from_gpr<mode>): Make clobber IF. Adjust for above
362 (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
363 (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
364 to use movdi_internal64. Remove op0_di.
365 * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
367 2016-02-15 Evandro Menezes <e.menezes@samsung.com>
369 Add support for the FCCMP insn types
371 * config/aarch64/aarch64.md (fccmp): Change insn type.
373 * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
374 * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
375 * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
376 * config/arm/xgene1.md (xgene1_fcmp): Likewise.
377 * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
378 * config/arm/types.md (fccmps): Add new insn type.
381 2016-02-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
383 * alias.c (get_alias_set): Fix a typo in comment.
385 2016-02-15 Richard Biener <rguenther@suse.de>
387 PR tree-optimization/69595
388 * match.pd: Complete range test simplification to true.
390 2016-02-15 Bernd Schmidt <bschmidt@redhat.com>
392 PR rtl-optimization/69648
393 * lra-constraints.c (update_ebb_live_info): Don't remove sets of
394 pic_offset_table_rtx.
396 PR rtl-optimization/69752
397 * ira.c (update_equiv_regs): When looking for more than a single SET,
398 also take other side effects into account.
400 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
402 * config/s390/s390.c (s390_function_profiler): Add a new sequence
403 for z900+ CPUs in 31-bit mode.
405 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
407 * common/config/s390/s390-common.c (s390_supports_split_stack):
409 (TARGET_SUPPORTS_SPLIT_STACK): New macro.
410 * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
411 * config/s390/s390.c (struct machine_function): New field
412 split_stack_varargs_pointer.
413 (s390_register_info): Mark r12 as clobbered if it'll be used as temp
414 in s390_emit_prologue.
415 (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
417 (morestack_ref): New global.
418 (SPLIT_STACK_AVAILABLE): New macro.
419 (s390_expand_split_stack_prologue): New function.
420 (s390_live_on_entry): New function.
421 (s390_va_start): Use split-stack vararg pointer if appropriate.
422 (s390_asm_file_end): Emit the split-stack note sections.
423 (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
424 * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
425 (UNSPECV_SPLIT_STACK_CALL): New unspec.
426 (UNSPECV_SPLIT_STACK_DATA): New unspec.
427 (split_stack_prologue): New expand.
428 (split_stack_space_check): New expand.
429 (split_stack_data): New insn.
430 (split_stack_call): New expand.
431 (split_stack_call_*): New insn.
432 (split_stack_cond_call): New expand.
433 (split_stack_cond_call_*): New insn.
435 2016-02-15 Richard Biener <rguenther@suse.de>
437 PR tree-optimization/69783
438 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
439 Add trivially correct cases.
441 2016-02-15 Tom de Vries <tom@codesourcery.com>
444 * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
446 * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
448 2016-02-15 Richard Biener <rguenther@suse.de>
450 PR tree-optimization/69776
451 * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
452 * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
453 indicate whether we can use TBAA to disambiguate against stores.
454 Use alias-set zero if not.
455 (visit_reference_op_store): Do not use TBAA when looking up
457 * tree-ssa-pre.c (compute_avail): Use TBAA here.
458 (eliminate_dom_walker::before_dom_children): But not when looking
461 2016-02-14 John David Anglin <danglin@gcc.gnu.org>
463 * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
465 2016-02-14 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
467 * config/i386/znver1.md
468 (znver1_pop, znver1_pop_mem,
469 znver1_load_imov_double_store,
470 znver1_load_imov_direct_store,
471 znver1_load_imov_direct_load,
472 znver1_load_imov_double_load): Add new.
473 (znver1_insn, znver1_insn_load): Add icmov type.
475 znver1_sseavx_fma_load,
477 znver1_avx256_fma_load): Fix pipe usage.
479 2016-02-14 Alan Modra <amodra@gmail.com>
482 * reloads.c (find_reloads_address_1): For pre/post-inc/dec
483 with an invalid hard reg, reload just the reg not the entire
484 pre/post-inc/dec address expression.
486 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
489 * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
490 fixed R1_REG scratch reg.
491 (sibcall_value_pcrel_fdpic): Likewise.
493 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
497 * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
499 2016-02-12 Walter Lee <walt@tilera.com>
501 * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
502 * config/tilegx/t-tilegx: Likewise.
504 2016-02-12 David Malcolm <dmalcolm@redhat.com>
507 * diagnostic-show-locus.c (struct line_span): New struct.
508 (layout::get_first_line): Delete.
509 (layout::get_last_line): Delete.
510 (layout::get_num_line_spans): New member function.
511 (layout::get_line_span): Likewise.
512 (layout::print_heading_for_line_span_index_p): Likewise.
513 (layout::get_expanded_location): Likewise.
514 (layout::calculate_line_spans): Likewise.
515 (layout::m_first_line): Delete.
516 (layout::m_last_line): Delete.
517 (layout::m_line_spans): New field.
518 (layout::layout): Update comment. Replace m_first_line and
519 m_last_line with m_line_spans, replacing their initialization
520 with a call to calculate_line_spans.
521 (diagnostic_show_locus): When printing source lines and
522 annotations, rather than looping over a single span
523 of lines, instead loop over each line_span within
524 the layout, with an inner loop over the lines within them.
525 Call the context's start_span callback when changing line spans.
526 * diagnostic.c (diagnostic_initialize): Initialize start_span.
527 (diagnostic_build_prefix): Break out the building of the location
528 part of the string into...
529 (diagnostic_get_location_text): ...this new function, rewriting
530 it from nested ternary expressions to a sequence of "if"
532 (default_diagnostic_start_span_fn): New function.
533 * diagnostic.h (diagnostic_start_span_fn): New typedef.
534 (diagnostic_context::start_span): New field.
535 (default_diagnostic_start_span_fn): New prototype.
537 2016-02-12 David Malcolm <dmalcolm@redhat.com>
540 * gcc.c (driver::finalize): Fix cleanup of "specs".
542 2016-02-12 David Malcolm <dmalcolm@redhat.com>
546 * gcc.c (driver::driver): Initialize m_option_suggestions.
547 (driver::~driver): Clean up m_option_suggestions.
548 (suggest_option): Convert to...
549 (driver::suggest_option): ...this, and split out into
550 driver::build_option_suggestions and find_closest_string.
551 (driver::build_option_suggestions): New function, from
552 first half of suggest_option. Special-case
553 OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
554 the sanitizer_opts array. For options of enum types, add the
555 various enum values to the candidate strings.
556 (driver::handle_unrecognized_options): Remove "const".
557 * gcc.h (driver::handle_unrecognized_options): Likewise.
558 (driver::build_option_suggestions): New decl.
559 (driver::suggest_option): New decl.
560 (driver::m_option_suggestions): New field.
561 * opts-common.c (add_misspelling_candidates): New function.
562 * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
564 * opts.h (sanitizer_opts): New array decl.
565 (add_misspelling_candidates): New function decl.
566 * spellcheck.c (find_closest_string): New function.
567 * spellcheck.h (find_closest_string): New function decl.
569 2016-02-12 Jakub Jelinek <jakub@redhat.com>
571 PR rtl-optimization/69764
572 PR rtl-optimization/69771
573 * optabs.c (expand_binop_directly): For shift_optab_p, force
574 convert_modes with VOIDmode if xop1 has VOIDmode.
576 2016-02-12 Ilya Enkovich <enkovich.gnu@gmail.com>
579 * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
580 to correctly determine instrumentation thunks.
582 2016-02-12 Jakub Jelinek <jakub@redhat.com>
585 * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
586 type by reference, force lhs on the call.
589 * ipa-split.c (split_function): Don't compute/use main_part_return_p.
590 Compute retval and retbnd early in all cases if split_part_return_p
591 and return_bb is not EXIT. Remove all clobber stmts and reset
592 all debug stmts that refer to SSA_NAMEs defined in split part,
593 except if it is retval, in that case replace the old retval with the
594 lhs of the call to the split part.
596 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
599 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
602 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
603 whose result is used in PHI.
604 (maybe_optimize_range_tests): Likewise.
605 (final_range_test_p): Likweise.
607 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
610 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
611 whose result is used in PHI.
612 (maybe_optimize_range_tests): Likewise.
613 (final_range_test_p): Likweise.
615 2016-02-12 Jakub Jelinek <jakub@redhat.com>
617 * cgraph.c: Spelling fixes - behaviour -> behavior and
618 neighbour -> neighbor.
619 * target.def: Likewise.
620 * sel-sched.c: Likewise.
621 * config/mips/mips.c: Likewise.
622 * config/arc/arc.md: Likewise.
623 * config/arm/cortex-a57.md: Likewise.
624 * config/arm/arm.c: Likewise.
625 * config/arm/neon.md: Likewise.
626 * config/arm/arm-c.c: Likewise.
627 * config/vms/vms-c.c: Likewise.
628 * config/s390/s390.c: Likewise.
629 * config/i386/znver1.md: Likewise.
630 * config/i386/i386.c: Likewise.
631 * config/ia64/hpux-unix2003.h: Likewise.
632 * config/msp430/msp430.md: Likewise.
633 * config/rx/rx.c: Likewise.
634 * config/rx/rx.md: Likewise.
635 * config/aarch64/aarch64-simd.md: Likewise.
636 * config/aarch64/aarch64.c: Likewise.
637 * config/nvptx/nvptx.c: Likewise.
638 * config/bfin/bfin.c: Likewise.
639 * config/cris/cris.opt: Likewise.
640 * config/rs6000/rs6000.c: Likewise.
641 * target.h: Likewise.
642 * spellcheck.c: Likewise.
643 * ira-build.c: Likewise.
644 * tree-inline.c: Likewise.
645 * builtins.c: Likewise.
646 * lra-constraints.c: Likewise.
647 * explow.c: Likewise.
649 * targhooks.c: Likewise.
650 * tree-vect-data-refs.c: Likewise.
652 * doc/tm.texi: Likewise.
653 * doc/extend.texi: Likewise.
654 * doc/install.texi: Likewise.
655 * doc/md.texi: Likewise.
656 * tree-ssa-tail-merge.c: Likewise.
657 * sched-int.h: Likewise.
658 * match.pd: Likewise.
659 * sched-ebb.c: Likewise.
660 * target.def (omit_struct_return_reg): Likewise.
661 * gimple-ssa-isolate-paths.c: Likewise.
662 (find_implicit_erroneous_behaviour): Renamed to...
663 (find_implicit_erroneous_behavior): ... this.
664 (find_explicit_erroneous_behaviour): Renamed to...
665 (find_explicit_erroneous_behavior): ... this.
666 (gimple_ssa_isolate_erroneous_paths): Adjust caller.
668 2016-02-11 Segher Boessenkool <segher@kernel.crashing.org>
670 PR rtl-optimization/64682
671 PR rtl-optimization/69567
672 PR rtl-optimization/69737
673 * combine.c (distribute_notes) <REG_DEAD>: If the register is set
674 in I2 as well, just lose it.
676 2016-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
678 * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
680 (aarch64_last_printed_tune_string): Likewise.
681 (aarch64_declare_function_name): Only output .arch assembler
682 directive if it will be different from the previously output
683 directive. Same for .tune comment but only if -dA is set.
684 (aarch64_start_file): New function.
685 (TARGET_ASM_FILE_START): Define.
687 2016-02-11 David Malcolm <dmalcolm@redhat.com>
690 * Makefile.in (PLUGIN_HEADERS): Add params.list.
692 2016-02-11 Jakub Jelinek <jakub@redhat.com>
695 * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
696 -Wmaybe-uninitialized warning.
698 2016-02-11 Oleg Endo <olegendo@gcc.gnu.org>
701 * config/sh/sh.md (casesi_worker_0): Add T_REG use.
703 2016-02-11 Richard Biener <rguenther@suse.de>
705 PR rtl-optimization/69291
706 * ifcvt.c (noce_try_store_flag_constants): Do not allow
707 subexpressions affected by changing the result.
709 2016-02-10 Vladimir Makarov <vmakarov@redhat.com>
712 * lra-constraints.c (curr_insn_transform): Find in/out operands
713 for secondary memory moves. Update dups.
715 2016-02-10 Yuri Rumyantsev <ysrumyan@gmail.com>
717 PR tree-optimization/69652
718 * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
719 to nested loop, did source re-formatting, skip debug statements,
720 add check on statement with volatile operand, remove dead scalar
723 2016-02-10 Jakub Jelinek <jakub@redhat.com>
724 Patrick Palka <ppalka@gcc.gnu.org>
728 * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
729 calls if the return type is TREE_ADDRESSABLE.
730 * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
731 * ipa-split.c (split_function): Fix doubled "we" in comment.
732 Use void return type for the split part even if
733 !split_point->split_part_set_retval.
735 2016-02-10 Bin Cheng <bin.cheng@arm.com>
737 PR tree-optimization/68021
738 * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
739 when computing the value of biv cand by itself.
741 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
743 * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
744 (cortexa57_tunings): Likewise.
745 (cortexa72_tunings): Likewise.
746 (arch_macro_fusion_pair_p): Add support for AES fusion.
747 * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
748 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
749 Allow virtual registers before reload so early scheduling works.
750 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
751 correct latency and pipeline.
752 (cortex_a57_crypto_complex): Likewise.
753 (cortex_a57_crypto_xor): Likewise.
754 (define_bypass): Add AES bypass.
756 2016-02-10 Richard Biener <rguenther@suse.de>
758 PR tree-optimization/69726
759 * passes.def: Add DCE pass before late uninit.
760 * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
761 really fixup if-conversions job.
763 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
765 * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
766 (arm_cortex_a57_tune): Likewise.
767 (aarch_macro_fusion_pair_p): Add support for AES fusion.
768 * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
770 2016-02-10 Eric Botcazou <ebotcazou@adacore.com>
772 * timevar.def (TV_PHASE_DBGINFO): Delete.
773 (TV_PHASE_CHECK_DBGINFO): Likewise.
774 * varpool.c (varpool_node::assemble_decl): Do not change timevar.
776 2016-02-10 Richard Biener <rguenther@suse.de>
778 PR tree-optimization/69719
779 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
780 Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
782 2016-02-09 Andrew Pinski <apinski@cavium.com>
785 * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
786 get_vcond_mask_icode returns false.
788 2016-02-09 Michael Meissner <meissner@linux.vnet.ibm.com>
791 * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
792 an ADDIS that adds a pointer to a large constant that sets the
793 upper16 bits with a load operation.
795 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
798 * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
800 * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
802 (vzipq_s16): Likewise.
803 (vzipq_s32): Likewise.
804 (vzipq_f32): Likewise.
805 (vzipq_u8): Likewise.
806 (vzipq_u16): Likewise.
807 (vzipq_u32): Likewise.
808 (vzipq_p8): Likewise.
809 (vzipq_p16): Likewise.
811 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
814 * config/arm/arm.c (neon_endian_lane_map): New function.
815 (neon_vector_pair_endian_lane_map): New function.
816 (arm_evpc_neon_vuzp): Allow for big endian lane order.
817 * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
819 (vuzpq_s16): Likewise.
820 (vuzpq_s32): Likewise.
821 (vuzpq_f32): Likewise.
822 (vuzpq_u8): Likewise.
823 (vuzpq_u16): Likewise.
824 (vuzpq_u32): Likewise.
825 (vuzpq_p8): Likewise.
826 (vuzpq_p16): Likewise.
828 2016-02-11 Alexandre Oliva <aoliva@redhat.com>
831 * regstat.c (regstat_bb_compute_calls_crossed): Disregard
834 2016-02-09 Uros Bizjak <ubizjak@gmail.com>
836 * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
837 truncate const_int operand 1 to QImode.
839 2016-02-09 Eric Botcazou <ebotcazou@adacore.com>
841 * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
842 corresponding to an abnormal edge.
844 2016-02-09 Tom de Vries <tom@codesourcery.com>
846 PR tree-optimization/69599
847 * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
849 (find_func_aliases_for_builtin_call, find_func_clobbers)
850 (ipa_pta_execute): Handle case that foo and foo._0 are not in same lto
853 2016-02-09 Richard Biener <rguenther@suse.de>
855 PR tree-optimization/69715
856 * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
857 LHS on calls as non-rewritable.
859 2016-02-09 Tom de Vries <tom@codesourcery.com>
862 * lto-wrapper.c (append_diag_options): New function.
863 (compile_offload_image): Call append_diag_options.
865 2016-02-08 Sandra Loosemore <sandra@codesourcery.com>
868 * doc/extend.texi (Flag Output Operands): Correct sectioning.
869 Minor copy-edit to fix verb tenses.
871 2016-02-08 Jakub Jelinek <jakub@redhat.com>
873 PR tree-optimization/69209
874 * ipa-split.c (split_function): If split part is not
875 returning retval, retval has gimple type but is not
876 gimple value, force it into a SSA_NAME first.
878 2016-02-08 Nicklas Bo Jensen <nbjensen@gmail.com>
880 * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
883 2016-02-08 Jason Merrill <jason@redhat.com>
886 * convert.c (convert_to_integer_1): Check dofold on truncation
888 (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
889 (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
890 Rename from *_nofold.
891 * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
892 (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
894 2016-02-08 Bernd Schmidt <bschmidt@redhat.com>
897 * tree.c (build_common_tree_nodes): Remove short_double argument.
899 * tree.h (build_common_tree_nodes): Adjust declaration.
900 * doc/invoke.texi (-fshort-double): Remove documentation.
901 * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
902 MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
903 * lto-wrapper.c (merge_and_complain, append_compiler_options)
904 (append_linker_options): Don't handle OPT_fshort_double.
906 PR rtl-optimization/68730
907 * lra-remat.c (insn_to_cand_activation): New static variable.
908 (lra_remat): Allocate and free it.
909 (create_cand): New arg activation. Initialize a field in
910 insn_to_cand_activation if it is nonnull.
911 (create_cands): Pass the activation insn to create_cand when making
912 a candidate involving an output reload. Reorganize code a little.
913 (do_remat): Keep track of active status of candidates in a separate
916 2016-02-08 Richard Biener <rguenther@suse.de>
918 PR tree-optimization/69719
919 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
920 Properly use absolute of the difference of the two offsets to
921 compare or adjust the segment length.
923 2016-02-08 Richard Biener <rguenther@suse.de>
924 Jeff Law <law@redhat.com>
927 * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
928 types for anonymous SSA names.
930 2016-02-08 Richard Biener <rguenther@suse.de>
932 PR rtl-optimization/69274
933 * ira.c (ira_setup_alts): Do not change recog_data.operand order.
935 2016-02-08 Jeff Law <law@redhat.com>
937 PR tree-optimization/65917
938 * tree-ssa-dom.c (record_temporary_equivalences): Record both
939 equivalences from if (x == y) style conditionals.
940 (loop_depth_of_name): Remove.
941 (record_equality): Remove loop depth check.
942 * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
943 (const_and_copies::record_const_or_copy_raw): New member function.
944 * tree-ssa-scopedtables.c
945 (const_and_copies::record_const_or_copy_raw): New, factored out of
946 (const_and_copies::record_const_or_copy): Call new member function.
948 2016-02-05 Jeff Law <law@redhat.com>
950 PR tree-optimization/68541
951 * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
952 (count_stmts_in_block): New function.
953 (poor_ifcvt_candidate_code): Likewise.
954 (is_feasible_trace): Add some heuristics to determine when path
955 splitting is profitable.
956 (find_block_to_duplicate_for_splitting_paths): Make sure the graph
957 is a diamond with a single exit.
959 2016-02-05 Martin Sebor <msebor@redhat.com>
962 * doc/invoke.texi: Update -Wplacement-new to take an optional
965 2016-02-06 Richard Henderson <rth@redhat.com>
968 * tree.c (tree_nop_conversion_p): Do not strip casts into or
969 out of non-standard address spaces.
971 2016-02-05 Jakub Jelinek <jakub@redhat.com>
973 PR rtl-optimization/69691
974 * lra-eliminations.c (move_plus_up): Don't add the addend twice.
976 2016-02-05 Pat Haugen <pthaugen@us.ibm.com>
978 * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
979 * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
980 (*ieee128_mfvsrd_64bit): Likewise.
981 (*ieee128_mfvsrd_32bit): Likewise.
983 2016-02-05 Ilya Enkovich <enkovich.gnu@gmail.com>
987 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
989 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
990 instrumented_version.
992 2016-01-05 Jeremy Bennett <jeremy.bennett@embecosm.com>
994 * doc/invoke.texi (Optimize Options): In table of --param options
995 rename second occurrence of tracer-min-branch-ratio to
996 tracer-min-branch-probability, rename
997 tracer-min-branch-ratio-feedback to
998 tracer-min-branch-probability-feedback and clarify description,
999 rename sched-spec-state-edge-prob-cutoff to
1000 sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
1001 to selsched-insns-to-rename, rename lto-minpartition to
1002 lto-min-partition, delete reorder-blocks-duplicate and
1003 reorder-blocks-duplicate-feedback.
1005 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1007 * config/s390/s390.c (s390_register_info_set_ranges): Remove
1010 2016-02-05 Dominik Vogt <vogt@linux.vnet.ibm.com>
1012 * doc/extend.texi: S/390: Correct some typos.
1014 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1016 * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
1018 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1021 * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
1022 (s390_register_info_gprtofpr): Use new macros above.
1023 (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
1025 (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
1026 its name. Adjust restore and save gpr ranges.
1027 (s390_register_info_set_ranges): New function.
1028 (s390_register_info): Use new macros above. Call
1029 s390_register_info_set_ranges.
1030 (s390_optimize_register_info): Likewise.
1031 (s390_hard_regno_rename_ok): Use new macros.
1032 (s390_hard_regno_scratch_ok): Likewise.
1033 (s390_emit_epilogue): Likewise.
1034 (s390_can_use_return_insn): Likewise.
1035 (s390_optimize_prologue): Likewise.
1036 * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
1038 2016-02-05 Jakub Jelinek <jakub@redhat.com>
1041 * config/i386/i386.c (convert_scalars_to_vector): Readd stack
1043 (ix86_option_override_internal): Disable TARGET_STV even for
1044 -m{incoming,preferred}-stack-boundary=3.
1046 2016-02-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1048 * config.gcc: Mark deprecated rtems targets as obsolete.
1050 2016-02-04 Segher Boessenkool <segher@kernel.crashing.org>
1052 PR rtl-optimization/64682
1053 PR rtl-optimization/69567
1054 * combine.c (distribute_notes) <REG_DEAD>: Place the death note
1055 before I2 only if the register is both used and set in I2.
1057 2016-02-04 DJ Delorie <dj@redhat.com>
1059 * config/msp430/msp430.c (msp430_start_function): Add function type.
1061 2016-02-04 Jakub Jelinek <jakub@redhat.com>
1064 * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
1066 2016-02-04 Uros Bizjak <ubizjak@gmail.com>
1068 PR rtl-optimization/69577
1070 2015-10-29 Richard Henderson <rth@redhat.com>
1074 * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
1075 sse check to the exact conditions of PR 67609.
1077 2016-02-04 Michael Meissner <meissner@linux.vnet.ibm.com>
1080 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
1081 instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
1082 not allowed into the traditional Altivec registers.
1083 (movtd_64bit_nodm): Likewise.
1084 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
1086 2016-02-04 David Malcolm <dmalcolm@redhat.com>
1088 * config/aarch64/cortex-a57-fma-steering.c
1089 (aarch64_register_fma_steering): Remove "static" from arguments
1092 2016-02-04 Wilco Dijkstra <wdijkstr@arm.com>
1095 * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
1098 2016-02-04 Mike Frysinger <vapier@gentoo.org>
1100 * doc/invoke.texi: Delete -mno-fma4.
1102 2016-02-04 Richard Sandiford <richard.sandiford@arm.com>
1104 PR rtl-optimization/69577
1105 * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
1106 (find_subregs_of_mode): Update accordingly. Iterate over partial
1109 2016-02-04 Alan Lawrence <alan.lawrence@arm.com>
1111 * config/arm/arm-protos.h (neon_reinterpret): Remove.
1112 * config/arm/arm.c (neon_reinterpret): Remove.
1113 * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
1114 vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
1115 vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
1116 vreinterpretti): Remove.
1117 * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
1118 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
1119 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
1120 neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
1121 neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
1122 neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
1123 * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
1124 vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
1125 vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
1126 vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
1127 vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
1128 vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
1129 vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
1130 vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
1131 vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
1132 vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
1133 vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
1134 vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
1135 vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
1136 vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
1137 vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
1138 vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
1139 vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
1140 vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
1141 vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
1142 vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
1143 vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
1144 vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
1145 vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
1146 vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
1147 vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
1148 vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
1149 vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
1150 vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
1151 vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
1152 vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
1153 vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
1154 vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
1155 vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
1156 vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
1157 vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
1158 vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
1159 vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
1160 vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
1161 vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
1162 vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
1163 vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
1164 vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
1165 vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
1166 vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
1167 vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
1168 vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
1169 vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
1170 vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
1171 vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
1172 vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
1173 vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
1174 vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
1175 vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
1176 vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
1177 vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
1178 vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
1179 vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
1180 vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
1181 vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
1182 vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
1183 vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
1184 vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
1185 vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
1186 vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
1187 vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
1188 vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
1189 vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
1190 vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
1191 vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
1192 vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
1193 vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
1194 vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
1195 vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
1196 vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
1197 vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
1198 vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
1199 vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
1200 vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
1201 vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
1202 vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
1203 vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
1204 vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
1205 vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
1206 vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
1207 vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
1208 vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
1209 vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
1210 vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
1211 vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
1212 vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
1213 vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
1214 vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
1215 vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
1216 vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
1217 vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
1218 vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
1219 vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
1221 2016-02-04 Martin Liska <mliska@suse.cz>
1224 * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
1225 that are gimple_store_p.
1226 (maybe_instrument_call): Likewise.
1228 2016-02-04 Bin Cheng <bin.cheng@arm.com>
1230 * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
1231 register scaling out of memory reference and comment why.
1233 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1237 * cse.c (cse_insn): Pass NULL to fold_rtx when initially
1238 folding the source of a SET.
1240 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1244 * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
1245 the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
1247 2016-02-04 Jim Wilson <jim.wilson@linaro.org>
1251 * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
1254 2016-02-04 Christian Bruel <christian.bruel@st.com>
1256 * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
1257 * config/arm/arm.c (arm_set_current_function): Likewise.
1259 2016-02-04 Jakub Jelinek <jakub@redhat.com>
1260 Ilya Enkovich <enkovich.gnu@gmail.com>
1261 H.J. Lu <hongjiu.lu@intel.com>
1264 * config/i386/i386.c (convert_scalars_to_vector): Remove
1265 stack alignment fixes.
1266 (ix86_option_override_internal): Disable TARGET_STV if stack
1267 might not be aligned enough.
1268 (ix86_minimum_alignment): Assert that TARGET_STV is false.
1270 2016-02-04 Victoria Stepanyan <victoria.stepanyan@amd.com>
1272 * gcc/config/i386/x86-tune.def: Disable default prefetching
1275 2016-02-03 Michael Meissner <meissner@linux.vnet.ibm.com>
1276 Vladimir Makarov <vmakarov@redhat.com>
1279 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
1280 in validating fused toc addresses.
1282 2016-02-03 Jakub Jelinek <jakub@redhat.com>
1285 * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
1286 range->m_caret fields if range->m_show_caret_p is false.
1289 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
1290 Force oldval into register if it does not satisfy reg_or_short_operand
1291 predicate. Fix up formatting.
1293 2016-02-03 Vladimir Makarov <vmakarov@redhat.com>
1294 Alexandre Oliva <aoliva@redhat.com>
1297 * lra-constraints.c (simplify_operand_subreg): Check additionally
1298 address validity after potential reloading.
1299 (process_address_1): Check insns validity. In case of failure do
1302 2016-02-03 Kirill Yukhin <kirill.yukhin@intel.com>
1305 * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
1308 2016-02-02 Jakub Jelinek <jakub@redhat.com>
1310 * wide-int.cc (canonize_uhwi): New function.
1311 (wi::divmod_internal): Use it.
1313 2016-02-02 James Norris <jnorris@codesourcery.com
1315 * gimplify.c (omp_notice_variable): Add usage check.
1317 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
1319 * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
1320 like LE, GE, LT, GT when emitting relational operator.
1322 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
1324 * ira-costs.c (find_costs_and_classes): Add extra argument.
1325 * target.def (ira_change_pseudo_allocno_class): Add parameter.
1326 * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
1327 * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
1328 * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
1329 Add best_class parameter, and return it if not ALL_REGS.
1330 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
1332 * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
1335 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
1337 * config/aarch64/aarch64.c
1338 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
1339 (aarch64_ira_change_pseudo_allocno_class): New function.
1341 2016-02-02 Uros Bizjak <ubizjak@gmail.com>
1344 * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
1346 2016-02-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
1348 * config/avr/avr.c (avr_option_override): Set
1349 PARAM_ALLOW_STORE_DATA_RACES to 1.
1351 2016-02-02 Richard Biener <rguenther@suse.de>
1353 PR tree-optimization/69595
1354 * match.pd: Add range test simplifications to true/false.
1356 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
1358 * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
1359 * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
1362 2016-02-02 Richard Biener <rguenther@suse.de>
1364 PR tree-optimization/69606
1365 * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
1366 info on the result before moving a stmt.
1368 2016-02-02 Yuri Rumyantsev <ysrumyan@gmail.com>
1371 * config/i386/i386.c (ix86_expand_branch): Add support for conditional
1372 branch with vector comparison.
1373 * config/i386/sse.md (VI48_AVX): New mode iterator.
1374 (define_expand "cbranch<mode>4): Add support for conditional branch
1375 with vector comparison.
1376 * tree-vect-loop.c (optimize_mask_stores): New function.
1377 * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
1378 has_mask_store field of vect_info.
1379 * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
1380 vectorized loops having masked stores after vec_info destroy.
1381 * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
1382 correspondent macros.
1383 (optimize_mask_stores): Add prototype.
1385 2016-02-02 Alan Modra <amodra@gmail.com>
1388 * config/rs6000/predicates.md (quad_int_reg_operand): Don't
1391 2016-02-02 Alan Modra <amodra@gmail.com>
1394 * config/rs6000/rs6000.c (need_toc_init): New var, set it
1395 whenever toc_label_name used.
1396 (rs6000_file_start): Don't set up toc section here,
1397 (rs6000_output_function_epilogue): do so here instead,
1398 (rs6000_xcoff_file_start): and here.
1399 * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
1400 (load_toc_aix_di): Likewise.
1402 2016-02-01 Jakub Jelinek <jakub@redhat.com>
1404 PR rtl-optimization/69592
1405 * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
1406 (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
1407 (num_sign_bit_copies_binary_arith_p): New inline function.
1408 (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
1410 2016-02-01 Jeff Law <law@redhat.com>
1412 PR tree-optimization/69580
1413 * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
1414 * tree-ssa-threadbackward.c
1415 (fsm_find_control_statement_thread_paths): Do not try to walk
1416 through large PHI nodes.
1418 2016-02-01 Jakub Jelinek <jakub@redhat.com>
1420 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
1421 when count is incremented above limit, don't analyze further
1424 * omp-low.c (oacc_parse_default_dims): Avoid
1425 -Wsign-compare warning, make sure value fits into int
1426 rather than just unsigned int.
1428 2016-02-01 Bin Cheng <bin.cheng@arm.com>
1430 PR tree-optimization/67921
1431 * fold-const.c (split_tree): New parameters. Convert pointer
1432 type variable part to proper type before negating.
1433 (fold_binary_loc): Pass new arguments to split_tree.
1435 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
1437 * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
1438 (nvptx_goacc_validate_dims): Extend to handle global defaults.
1439 * target.def (OACC_VALIDATE_DIMS): Extend documentation.
1440 * doc/tm.texti: Rebuilt.
1441 * doc/invoke.texi (fopenacc-dim): Document.
1442 * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
1443 (append_compiler_options): Likewise.
1444 * omp-low.c (oacc_default_dims, oacc_min_dims): New.
1445 (oacc_parse_default_dims): New.
1446 (oacc_validate_dims): Add USED arg. Select non-unity default when
1448 (oacc_loop_fixed_partitions): Return mask of used partitions.
1449 (oacc_loop_auto_partitions): Emit dump info.
1450 (oacc_loop_partition): Return mask of used partitions.
1451 (execute_oacc_device_lower): Parse default dimension arg. Adjust
1452 loop partitioning and validation calls.
1454 2016-02-01 Richard Biener <rguenther@suse.de>
1457 * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
1459 2016-02-01 Richard Biener <rguenther@suse.de>
1461 PR tree-optimization/69574
1462 * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
1463 of asserting return chrec_dont_know.
1465 2016-02-01 Martin Liska <mliska@suse.cz>
1467 * mem-stats-traits.h: Add copyright header.
1468 * mem-stats.h: Likewise.
1470 2016-02-01 Richard Biener <rguenther@suse.de>
1472 PR tree-optimization/69579
1473 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
1474 Do not propagate through abnormal PHI results.
1476 2016-02-01 Eric Botcazou <ebotcazou@adacore.com>
1478 * postreload.c (reload_cse_simplify): Remove dead code.
1480 2016-02-01 Jakub Jelinek <jakub@redhat.com>
1482 PR rtl-optimization/69570
1483 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
1484 if there is more than one set, not if there is a single set.
1486 2016-02-01 Richard Henderson <rth@redhat.com>
1489 * combine.c (make_compound_operation): When looking through a
1490 subreg, make sure to re-extend to the width of the outer mode.
1492 2016-01-30 Jakub Jelinek <jakub@redhat.com>
1494 PR tree-optimization/69546
1495 * wide-int.cc (wi::divmod_internal): For unsigned division
1496 where both operands fit into uhwi, if o1 is 1 and o0 has
1497 msb set, if divident_prec is larger than bits per hwi,
1498 clear another quotient word and return 2 instead of 1.
1499 Similarly for remainder with msb in HWI set, if dividend_prec
1500 is larger than bits per hwi.
1502 2016-01-29 Martin Jambor <mjambor@suse.cz>
1504 * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
1505 Use short lowercase names.
1506 (get_memory_order): Mask with MEMMODEL_BASE_MASK. Support
1507 MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
1508 acq_rel one. Protect warning agains segfaults if
1509 get_memory_order_name returns NULL.
1510 (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
1511 with release semantics. Do not warn if get_memory_order already did.
1512 (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
1513 semantics. Fix check for relaxed or acquire semantics. Do not warn
1514 if get_memory_order already did.
1516 2016-01-29 Sebastian Pop <s.pop@samsung.com>
1518 * doc/install.texi: Document that isl-0.16 is supported.
1520 2016-01-29 Vladimir Makarov <vmakarov@redhat.com>
1523 * config/i386/constraints.md (Bm): Describe as special memory
1525 * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
1526 * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
1527 * genpreds.c (struct constraint_data): Add is_special_memory.
1528 (have_special_memory_constraints, special_memory_start): New
1530 (special_memory_end): Ditto.
1531 (add_constraint): Add new arg is_special_memory. Add code to
1532 process its true value. Update have_special_memory_constraints.
1533 (process_define_constraint): Pass the new arg.
1534 (process_define_register_constraint): Ditto.
1535 (choose_enum_order): Process special memory.
1536 (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
1537 function insn_extra_special_memory_constraint.
1538 (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
1539 * gensupport.c (process_rtx): Process
1540 DEFINE_SPECIAL_MEMORY_CONSTRAINT.
1541 * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
1542 * ira-lives.c (single_reg_class): Use
1543 insn_extra_special_memory_constraint.
1544 * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
1545 * lra-constraints.c (process_alt_operands): Ditto.
1546 (curr_insn_transform): Use insn_extra_special_memory_constraint.
1547 * recog.c (asm_operand_ok, preprocess_constraints): Process
1549 * reload.c (find_reloads): Ditto.
1550 * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
1551 * stmt.c (parse_input_constraint): Use
1552 insn_extra_special_memory_constraint.
1554 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
1557 * lra-splill.c (lra_final_code_change): Revert r229087 by
1558 removing all sub-registers.
1560 2016-01-29 Steve Ellcey <sellcey@imgtec.com>
1563 * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
1565 2016-01-29 Jakub Jelinek <jakub@redhat.com>
1568 * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
1569 SSE1, copy target into the temporary reg first before recursing
1572 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
1574 * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
1577 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
1579 * ginclude/stdarg.h: Test __cplusplus instead of
1580 __GXX_EXPERIMENTAL_CXX0X__.
1582 2016-01-29 Richard Biener <rguenther@suse.de>
1584 PR tree-optimization/69547
1585 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
1586 Do not mark clobbers necessary.
1587 (mark_all_reaching_defs_necessary_1): Likewise.
1589 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
1591 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
1592 declaration name with %qs and print it in both error messages.
1593 Also fix indentation.
1595 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
1598 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
1599 trailing blank line from error message.
1601 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
1604 * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
1607 2016-01-29 Richard Biener <rguenther@suse.de>
1610 * match.pd: Allow all integral types when simplifying a
1611 widening or sign-changing conversion.
1613 2016-01-28 Sebastian Pop <s.pop@samsung.com>
1615 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
1616 back to setting codegen_error to fail codegen.
1618 2016-01-28 Uros Bizjak <ubizjak@gmail.com>
1621 * config/i386/constraints.md (C): Only accept constant zero operand.
1622 (BC): New constraint.
1623 * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
1624 instead of C constraint.
1625 * doc/md.texi (Machine Constraints): Update description
1628 2016-01-28 Steve Ellcey <sellcey@imgtec.com>
1631 * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
1633 2016-01-28 Jakub Jelinek <jakub@redhat.com>
1636 * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
1639 2016-01-28 Pat Haugen <pthaugen@us.ibm.com>
1641 * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
1642 branches if using guessed profile.
1644 2016-01-28 H.J. Lu <hongjiu.lu@intel.com>
1646 * graphite-optimize-isl.c (optimize_isl): Fix dump.
1648 2016-01-28 Richard Henderson <rth@redhat.com>
1651 * config/aarch64/aarch64-modes.def (CC_Cmode): New
1652 * config/aarch64/aarch64-protos.h: Update.
1653 * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
1654 (aarch64_select_cc_mode): Add check for use of CC_Cmode.
1655 (aarch64_get_condition_code_1): Handle CC_Cmode.
1656 * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
1657 (*add<mode>3_compareC_cconly_imm): New.
1658 (*add<mode>3_compareC_cconly): New.
1659 (*add<mode>3_compareC_imm): New.
1660 (add<mode>3_compareC): New.
1661 (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
1662 to be first. Use aarch64_carry_operation.
1663 (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
1664 (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
1665 (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
1666 (subti3): Use subdi3_compare1.
1667 (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
1668 (sub<mode>3_compare1): New.
1669 (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
1670 (*sub<mode>3_carryin): Use aarch64_borrow_operation.
1671 (*subsi3_carryin_uxtw): Likewise.
1672 (*ngc<mode>, *ngcsi_uxtw): Likewise.
1673 (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
1674 * config/aarch64/iterators.md (DWI): New.
1675 * config/aarch64/predicates.md (aarch64_carry_operation): New.
1676 (aarch64_borrow_operation): New.
1678 2016-01-28 Abderrazek Zaafrani <a.zaafrani@samsung.com>
1680 * graphite-optimize-isl.c (optimize_isl): Print a different debug
1681 message when isl does not return a valid schedule.
1683 2016-01-28 Sebastian Pop <s.pop@samsung.com>
1685 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
1686 Remove comments from class declarations: they are already in the code
1689 2016-01-28 Sebastian Pop <s.pop@samsung.com>
1691 * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
1693 (ternary_op_to_tree): Same.
1694 (unary_op_to_tree): Same.
1695 (nary_op_to_tree): Same.
1696 (gcc_expression_from_isl_expr_op): Same.
1697 (gcc_expression_from_isl_expression): Same.
1698 (graphite_create_new_loop): Same.
1699 (graphite_create_new_loop_guard): Same.
1700 (build_iv_mapping): Same.
1701 (graphite_create_new_guard): Same.
1702 (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
1703 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
1705 2016-01-28 Sebastian Pop <s.pop@samsung.com>
1707 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
1708 instead of setting codegen_error to fail codegen.
1710 2016-01-28 Jason Merrill <jason@redhat.com>
1712 * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
1714 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
1716 * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
1717 Remove CONST_INT_P check in CCMP cost calculation.
1719 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
1721 * config/aarch64/aarch64.c (generic_vector_cost):
1722 Set vec_permute_cost.
1723 (cortexa57_vector_cost): Likewise.
1724 (exynosm1_vector_cost): Likewise.
1725 (xgene1_vector_cost): Likewise.
1726 (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
1727 * config/aarch64/aarch64-protos.h (cpu_vector_cost):
1728 Add vec_permute_cost entry.
1730 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
1732 * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
1734 (add<mode>3_compare0): Likewise.
1735 (addsi3_compare0_uxtw): Likewise.
1736 (add<mode>3nr_compare0): Likewise.
1737 (compare_neg<mode>): Likewise.
1738 (<optab><mode>3): Likewise.
1740 2016-01-28 Ilya Enkovich <enkovich.gnu@gmail.com>
1742 * tree-vect-stmts.c (vectorizable_comparison): Add
1743 NULL check for vectype.
1745 2016-01-28 Richard Biener <rguenther@suse.de>
1747 PR tree-optimization/69466
1748 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
1749 Account for PHIs we couldn't duplicate.
1751 2016-01-28 Martin Liska <mliska@suse.cz>
1754 * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
1755 instead of ENABLE_VALGRIND_CHECKING.
1757 2016-01-27 Richard Henderson <rth@redhat.com>
1760 * lra-remat.c (subreg_regs): New.
1761 (dump_candidates_and_remat_bb_data): Dump it.
1762 (operand_to_remat): Reject if operand in subreg_regs.
1763 (set_bb_regs): Collect subreg_regs.
1764 (lra_remat): Init and free subreg_regs. Compute
1765 calculate_local_reg_remat_bb_data before create_cands.
1767 2016-01-27 H.J. Lu <hongjiu.lu@intel.com>
1770 * config/i386/i386.c (ix86_update_stack_boundary): Don't
1771 change stack_alignment_needed for __tls_get_addr call.
1773 2016-01-27 Segher Boessenkool <segher@kernel.crashing.org>
1775 * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
1777 2016-01-27 Jeff Law <law@redhat.com>
1779 PR tree-optimization/68398
1780 PR tree-optimization/69196
1781 * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
1782 (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
1783 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
1784 Only count PHIs in the last block in the path. The others will
1785 const/copy propagate away. Add heuristic to allow more irreducible
1786 subloops to be created when it is likely profitable to do so.
1788 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
1789 Fix typo in comment. Use gsi_after_labels and remove the GIMPLE_LABEL
1790 check from within the loop. Use gsi_next_nondebug rather than gsi_next.
1792 2016-01-27 Jakub Jelinek <jakub@redhat.com>
1795 * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
1796 END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
1797 * asan.c (DEF_BUILTIN_STUB): Temporarily define.
1798 * tree-streamer-in.c: Include asan.h.
1799 (streamer_get_builtin_tree): For builtins in sanitizer
1800 range call initialize_sanitizer_builtins and retry.
1802 2016-01-27 Ian Lance Taylor <iant@google.com>
1804 * common.opt (fkeep-gc-roots-live): New undocumented option.
1805 * tree-ssa-loop-ivopts.c (add_candidate_1): If
1806 -fkeep-gc-roots-live, skip pointers.
1807 (add_iv_candidate_for_biv): Handle add_candidate_1 returning
1810 2016-01-27 Uros Bizjak <ubizjak@gmail.com>
1813 * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
1814 (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
1816 2016-01-27 Thomas Klausner <wiz@NetBSD.org>
1819 * configure.ac: NetBSD provides SSP in its C library.
1820 * configure: Updated.
1822 2016-01-27 Richard Biener <rguenther@suse.de>
1824 PR tree-optimization/69166
1825 * tree-vect-loop.c (vect_is_simple_reduction): Always check
1826 reduction code for commutativity / associativity.
1828 2016-01-27 Martin Jambor <mjambor@suse.cz>
1830 PR tree-optimization/69355
1831 * tree-sra.c (analyze_access_subtree): Correct hole detection when
1832 total_scalarization fails.
1834 2016-01-27 David Edelsohn <dje.gcc@gmail.com>
1836 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
1839 2016-01-27 Christian Bruel <christian.bruel@st.com>
1842 * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
1843 Move arm_reset_previous_fndecl and set_target_option_current_node in
1844 the conditional part. Call save_restore_target_globals.
1845 * config/arm/arm.c (arm_set_current_function):
1846 Refactor to better support #pragma target and attribute mix.
1847 Call save_restore_target_globals.
1848 * config/arm/arm-protos.h (save_restore_target_globals): New function.
1850 2016-01-27 Martin Liska <mliska@suse.cz>
1852 * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
1853 reference for an HSA kernel and its host function.
1855 2016-01-27 Jakub Jelinek <jakub@redhat.com>
1857 PR tree-optimization/69399
1858 * wide-int.h (wi::lrshift): For larger precisions, only
1859 use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
1861 2016-01-27 Claudiu Zissulescu <claziss@synopsys.com>
1863 * config/arc/predicates.md (proper_comparison_operator): Reject
1864 constant-constant comparison.
1866 2016-01-26 Tom de Vries <tom@codesourcery.com>
1868 PR tree-optimization/69110
1869 * tree-data-ref.c (initialize_data_dependence_relation): Handle
1870 DR_NUM_DIMENSIONS == 0.
1872 2016-01-26 Abderrazek Zaafrani <a.zaafrani@samsung.com>
1873 Sebastian Pop <s.pop@samsung.com>
1875 * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
1876 isl_ast_op_cond and isl_ast_op_select.
1877 (gcc_expression_from_isl_expr_op): Same.
1879 2016-01-26 Jason Merrill <jason@redhat.com>
1882 * tree.c (recompute_constructor_flags): Split out from
1884 (verify_constructor_flags): New.
1885 * tree.h: Declare them.
1887 2016-01-26 Iain Buclaw <ibuclaw@gdcproject.org>
1889 PR rtl-optimization/69217
1890 * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
1891 are no TYPE_FIELDS set for the record type.
1893 2016-01-26 Jakub Jelinek <jakub@redhat.com>
1896 * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
1897 toc_label_name unconditionally.
1898 (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
1899 SYMBOL_REF string. Use toc_label_name instead of constructing
1901 (rs6000_elf_declare_function_name): Use toc_label_name instead of
1902 constructing LCTOC1.
1904 2016-01-26 Martin Sebor <msebor@redhat.com>
1907 * doc/extend.texi (Common Type Attributes): Move text that talks about
1908 attribute packed from attribute aligned to the section discussing
1909 the former attribute for clarity.
1911 2016-01-26 Richard Henderson <rth@redhat.com>
1914 * trans-mem.c (tm_region_init): Mark entry block as visited.
1916 2016-01-26 David Malcolm <dmalcolm@redhat.com>
1919 * diagnostic-show-locus.c (layout::print_source_line): Replace
1920 call to pp_newline with call to layout::print_newline.
1921 (layout::print_annotation_line): Likewise.
1922 (layout::move_to_column): Likewise.
1923 (layout::print_any_fixits): After printing any fixits, print a
1924 trailing newline, if necessary.
1925 (layout::print_newline): New method, resetting any colorization
1927 (diagnostic_show_locus): Move the pp_newline to before the
1928 early bailout. Remove dummy block enclosing the layout instance.
1929 * diagnostic.c (default_diagnostic_finalizer): Replace invocation
1930 of pp_newline_and_flush with pp_flush.
1931 (diagnostic_append_note): Delete use of pp_newline.
1932 (diagnostic_append_note_at_rich_loc): Delete.
1933 * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
1934 * pretty-print.h (output_buffer_append_r): Reset buff->line_length
1935 when newline characters are added to the buffer.
1937 2016-01-26 Michael Matz <matz@suse.de>
1939 * configure.ac (ac_cv_std_swap_in_utility): New test.
1940 * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
1941 * configure: Regenerate.
1942 * config.in: Regenerate.
1944 2016-01-26 Claudiu Zissulescu <claziss@synopsys.com>
1946 * config/arc/arc.md (cstoresi4): Force operand into register.
1947 (arcset<code>): Fix predicate.
1948 (arcsetltu): Likewise.
1949 (arcsetgeu): Likewise.
1950 (arcsethi): Likewise.
1951 (arcsetls): Likewise.
1953 2016-01-26 Jakub Jelinek <jakub@redhat.com>
1955 PR tree-optimization/69483
1956 * gimple-fold.c (canonicalize_constructor_val): Return NULL
1957 if base has error_mark_node type.
1959 2016-01-26 Christophe Lyon <christophe.lyon@linaro.org>
1962 * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
1963 * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
1965 (vget_lane_f16): Handle big-endian.
1966 (vgetq_lane_f16): Likewise.
1967 (vset_lane_f16): Likewise.
1968 (vsetq_lane_f16): Likewise.
1969 * config/arm/iterators.md (VQXMOV): Add V8HF.
1970 (VDQ): Add V4HF and V8HF.
1971 (V_reg): Handle V4HF and V8HF.
1972 (Is_float_mode): Likewise.
1973 * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
1974 neon_vdup_nv8hf): New patterns.
1975 (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
1976 Use VD_LANE iterator.
1977 (neon_vld1_dup<mode>): Use VQ2 iterator.
1979 2016-01-26 Nathan Sidwell <nathan@acm.org>
1981 * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
1982 (set_oacc_fn_attrib): Add IS_KERNEL arg.
1983 * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
1984 (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
1985 (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
1986 (oacc_validate_dims): Add LEVEL arg, don't return level.
1987 (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
1989 (execute_oacc_device_lower): Adjust, add more dump output.
1990 * tree-ssa-loop.c (gate_oacc_kernels): Use
1991 oacc_fn_attrib_kernels_p.
1992 * tree-parloops.c (create_parallel_loop): Adjust
1993 set_oacc_fn_attrib call.
1995 2016-01-26 Jakub Jelinek <jakub@redhat.com>
1998 * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
1999 (append_compiler_options): Handle -fcilkplus.
2000 (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
2002 2016-01-26 Nick Clifton <nickc@redhat.com>
2005 * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
2006 been marked as DECL_ONE_ONLY but we do not the means to make it
2007 so, then do not allow it to bind locally.
2009 2016-01-26 Jakub Jelinek <jakub@redhat.com>
2012 * opts.h (parse_sanitizer_options): New prototype.
2013 * opts.c (sanitizer_opts): New array.
2014 (parse_sanitizer_options): New function.
2015 (common_handle_option): Use parse_sanitizer_options.
2017 2016-01-26 H.J. Lu <hongjiu.lu@intel.com>
2020 * config/i386/i386.c (ix86_compute_frame_layout): Move stack
2021 alignment adjustment to ...
2022 (ix86_update_stack_boundary): Here. Don't over-align stack for
2024 (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
2025 if __tls_get_addr is called.
2027 2016-01-26 Christian Bruel <christian.bruel@st.com>
2029 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
2031 2016-01-26 Eric Botcazou <ebotcazou@adacore.com>
2033 * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
2035 2016-01-26 Richard Biener <rguenther@suse.de>
2038 * match.pd: Guard X * CST CMP 0 pattern with single_use.
2040 2016-01-26 Richard Biener <rguenther@suse.de>
2042 PR tree-optimization/69452
2043 * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
2044 (move_computations_dom_walker::before_dom_children): Rename
2046 (move_computations_worker): This.
2047 (move_computations): Perform an RPO rather than a DOM walk.
2049 2016-01-26 Jakub Jelinek <jakub@redhat.com>
2052 * combine.c (combine_instructions): For REG_EQUAL note with
2053 SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
2054 to the underlying register.
2055 * doc/rtl.texi (REG_EQUAL): Document the behavior of
2056 REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
2058 2016-01-26 Roger Ferrer Ibáñez <rofirrim@gmail.com>
2061 * config/aarch64/aarch64-builtins.c
2062 (aarch64_init_simd_builtin_types): Do not set structural
2063 equality to __Poly{8,16,64,128}_t types.
2065 2016-01-26 Richard Sandiford <richard.sandiford@arm.com>
2067 PR tree-optimization/69400
2068 * wide-int.cc (wi_pack): Take the precision as argument and
2069 perform canonicalization here rather than in the callers.
2070 Use the main loop to handle all full-width HWIs. Add a
2071 zero HWI if in_len isn't a full result.
2072 (wi::divmod_internal): Update accordingly.
2073 (wi::mul_internal): Likewise. Simplify.
2075 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
2076 Sebastian Pop <s.pop@samsung.com>
2078 * graphite-poly.c (apply_poly_transforms): Simplify.
2079 (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
2080 (print_isl_map): Same.
2081 (print_isl_union_map): Same.
2082 (print_isl_schedule): New.
2083 (debug_isl_schedule): New.
2084 * graphite-dependences.c (scop_get_reads): Do not call
2085 isl_union_map_add_map that is undocumented isl functionality.
2086 (scop_get_must_writes): Same.
2087 (scop_get_may_writes): Same.
2088 (scop_get_original_schedule): Remove.
2089 (scop_get_dependences): Do not call isl_union_map_compute_flow that
2090 is deprecated in isl 0.15. Instead, use isl_union_access_* interface.
2091 (compute_deps): Remove.
2092 * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
2093 (debug_schedule_ast): New.
2094 (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
2095 set_separate_option.
2096 (graphite_regenerate_ast_isl): Add dump.
2097 (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
2098 from scop->transformed_schedule.
2099 (graphite_regenerate_ast_isl): Add more dump.
2100 * graphite-optimize-isl.c (optimize_isl): Set
2101 scop->transformed_schedule. Check whether schedules are equal.
2102 (apply_poly_transforms): Move here.
2103 * graphite-poly.c (apply_poly_transforms): ... from here.
2104 (free_poly_bb): Static.
2105 (free_scop): Static.
2106 (pbb_number_of_iterations_at_time): Remove.
2107 (print_isl_ast): New.
2108 (debug_isl_ast): New.
2109 (debug_scop_pbb): New.
2110 * graphite-scop-detection.c (print_edge): Move.
2112 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
2113 (build_scop_scattering): Remove.
2114 (create_pw_aff_from_tree): Assert instead of bailing out.
2115 (add_condition_to_pbb): Remove unused code, do not fail.
2116 (add_conditions_to_domain): Same.
2117 (add_conditions_to_constraints): Remove.
2118 (build_scop_context): New.
2119 (add_iter_domain_dimension): New.
2120 (build_iteration_domains): Initialize pbb->iterators.
2121 Call add_conditions_to_domain.
2124 (index_outermost_in_loop): New.
2125 (index_pbb_in_loop): New.
2126 (outermost_pbb_in): New.
2127 (add_in_sequence): New.
2128 (add_outer_projection): New.
2129 (outer_projection_mupa): New.
2130 (add_loop_schedule): New.
2131 (build_schedule_pbb): New.
2132 (build_schedule_loop): New.
2133 (embed_in_surrounding_loops): New.
2134 (build_schedule_loop_nest): New.
2135 (build_original_schedule): New.
2136 (build_poly_scop): Call build_original_schedule.
2137 * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
2138 (free_poly_dr): Remove.
2139 (struct poly_bb): Add iterators. Remove schedule, transformed, saved.
2140 (free_poly_bb): Remove.
2141 (debug_loop_vec): Remove.
2142 (print_isl_ast): Declare.
2143 (debug_isl_ast): Declare.
2144 (scop_do_interchange): Remove.
2145 (scop_do_strip_mine): Remove.
2146 (scop_do_block): Remove.
2147 (flatten_all_loops): Remove.
2148 (optimize_isl): Remove.
2149 (pbb_number_of_iterations_at_time): Remove.
2150 (debug_scop_pbb): Declare.
2151 (print_schedule_ast): Declare.
2152 (debug_schedule_ast): Declare.
2153 (struct scop): Remove schedule. Add original_schedule,
2154 transformed_schedule.
2155 (free_gimple_poly_bb): Remove.
2156 (print_generated_program): Remove.
2157 (debug_generated_program): Remove.
2158 (unify_scattering_dimensions): Remove.
2159 * sese.c (print_edge): ... here.
2160 (print_sese): ... here.
2161 (debug_edge): ... here.
2162 (debug_sese): ... here.
2163 * sese.h (print_edge): Declare.
2164 (print_sese): Declare.
2165 (dump_edge): Declare.
2166 (dump_sese): Declare.
2168 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
2169 Sebastian Pop <s.pop@samsung.com>
2171 * Makefile.in: Set ISLVER in site.exp.
2173 2016-01-25 Jakub Jelinek <jakub@redhat.com>
2175 * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
2176 DECL_VALUE_EXPR of new_var even for the non-array case. Look
2177 through DECL_VALUE_EXPR for expansion.
2179 2016-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
2181 * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
2182 the frame info after reload completed.
2184 2016-01-25 Jeff Law <law@redhat.com>
2186 PR tree-optimization/69196
2187 PR tree-optimization/68398
2188 * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
2189 tree-ssa-threadupdate.c.
2190 (determine_bb_domination_status): Prototype
2191 * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
2192 (determine_bb_domination_status): No longer static.
2193 (valid_jump_thread_path): Remove code to detect characteristics
2194 of the jump thread path not associated with correctness.
2195 * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
2196 Correct test for thread path length. Count PHIs for real operands as
2197 statements that need to be copied. Do not count ASSERT_EXPRs.
2198 Look at all the blocks in the thread path. Compute and selectively
2199 filter thread paths based on threading through the latch, threading
2200 a multiway branch or crossing a multiway branch.
2202 2016-01-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2204 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): Add
2205 decl with __attribute__ ((unused)) annotation.
2207 2016-01-25 Ilya Enkovich <enkovich.gnu@gmail.com>
2210 * tree-vect-stmts.c (vectorizable_condition): Check vectype
2211 of operands is compatible with a statement vectype.
2213 2016-01-25 Eric Botcazou <ebotcazou@adacore.com>
2215 * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
2216 improve wording for mixed storage order support.
2218 2016-01-25 Bilyan Borisov <bilyan.borisov@arm.com>
2220 * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
2221 (vcvt_u64_f64): Likewise.
2222 (vcvta_s64_f64): Likewise.
2223 (vcvta_u64_f64): Likewise.
2224 (vcvtm_s64_f64): Likewise.
2225 (vcvtm_u64_f64): Likewise.
2226 (vcvtn_s64_f64): Likewise.
2227 (vcvtn_u64_f64): Likewise.
2228 (vcvtp_s64_f64): Likewise.
2229 (vcvtp_u64_f64): Likewise.
2231 2016-01-25 Claudiu Zissulescu <claziss@synopsys.com>
2233 * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
2234 (arc_init): Check validity mll64 option.
2235 (arc_save_restore): Use double load/store instruction.
2236 (arc_expand_movmem): Likewise.
2237 (arc_split_move): Don't split if we have double load/store
2238 instructions. Returns a boolean.
2239 (arc_process_double_reg_moves): Change function to return boolean
2240 instead of a sequence of instructions.
2241 (arc_dwarf_register_span): New function.
2242 * config/arc/arc-protos.h (arc_split_move): Change prototype.
2243 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
2244 * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
2245 (*movdf_insn): Likewise.
2246 * config/arc/arc.opt (mll64): New option.
2247 * config/arc/predicates.md (even_register_operand): New predicate.
2248 * doc/invoke.texi (ARC Options): Add mll64 documentation.
2250 2016-01-25 Richard Biener <rguenther@suse.de>
2253 * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
2254 * tree-streamer-out.c (pack_ts_base_value_fields): Stream
2256 * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
2258 2016-01-25 Richard Biener <rguenther@suse.de>
2260 PR tree-optimization/69376
2261 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
2263 (VN_INFO_ANTI_RANGE_P): New inline.
2264 (VN_INFO_RANGE_TYPE): Likewise.
2265 * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
2266 SSA_NAME_ANTI_RANGE_P.
2267 (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
2268 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
2269 Properly query VN_INFO_RANGE_TYPE.
2271 2016-01-25 Nick Clifton <nickc@redhat.com>
2274 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
2276 2016-01-23 Tom de Vries <tom@codesourcery.com>
2278 PR tree-optimization/69426
2279 * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
2282 2016-01-23 Jakub Jelinek <jakub@redhat.com>
2284 * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
2285 "the the" with "the" in the comments.
2286 * ipa-devirt.c (build_type_inheritance_graph,
2287 update_type_inheritance_graph): Likewise.
2288 * tree.c (build_function_type_list_1): Likewise.
2289 * cfgloopmanip.c (scale_loop_profile): Likewise.
2290 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
2291 * gimple-ssa-split-paths.c
2292 (find_block_to_duplicate_for_splitting_paths): Likewise.
2293 * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
2294 * expr.c (convert_move): Likewise.
2295 * var-tracking.c (vt_stack_adjustments): Likewise.
2296 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
2297 * tree-vrp.c (test_for_singularity): Likewise.
2299 * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
2300 directly instead of building a temporary tree.
2303 * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
2304 remove <algorithm> include.
2306 2016-01-22 Jakub Jelinek <jakub@redhat.com>
2309 * config/i386/i386.c: Include dojump.h.
2310 (expand_small_movmem_or_setmem,
2311 expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
2313 (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
2314 if dynamic_check != -1.
2316 2016-01-21 Jeff Law <law@redhat.com>
2319 * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
2320 record_temporary_equivalences. Rewritten to avoid unnecessary calls
2321 into dominated_by_p.
2322 (cprop_into_successor_phis): Avoid unnecessary tests.
2324 2016-01-22 Richard Henderson <rth@redhat.com>
2327 * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
2328 (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
2330 2016-01-22 Michael Matz <matz@suse.de>
2332 * system.h (string, algorithm): Include only conditionally.
2333 (new): Include always under C++.
2334 * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
2335 * final.c (toplevel): Ditto.
2336 * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
2337 * genconditions.c (write_header): Make gencondmd.c define
2339 * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
2341 * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
2342 * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
2344 2016-01-22 Christian Bruel <christian.bruel@st.com>
2347 * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
2349 2016-01-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2352 * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
2353 define_insn_and_split. Ensure operands[1] and operands[0] do not
2354 get assigned the same register.
2356 2016-01-22 Kugan Vivekanandarajah <kuganv@linaro.org>
2358 * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
2360 2016-01-22 Christian Bruel <christian.bruel@st.com>
2362 * config/arm/arm-c.c (arm_pragma_target_parse):
2363 Remove warn_builtin_macro_redefined overwrite.
2365 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
2367 * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
2368 flag_non_call_exceptions compatibility.
2370 2016-01-22 Jakub Jelinek <jakub@redhat.com>
2373 * dwarf2out.c (add_child_die_after): New function.
2374 (dwarf_qual_info_t): New type.
2375 (dwarf_qual_info): New variable.
2376 (qualified_die_p): New function.
2377 (modified_type_die): For -fdebug-types-section, ensure
2378 canonical order of qualifiers. Put qualified DIEs adjacent
2379 to the corresponding non-qualified type DIE and search there
2380 for existing qualified DIEs.
2382 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
2384 * doc/extend.texi (scalar_storage_order type attribute): Document
2385 restriction on type punning and aliasing, and remove future tense.
2387 2016-01-21 Roman Zhuykov <zhroma@ispras.ru>
2390 * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
2393 2016-01-21 Jeff Law <law@redhat.com>
2396 * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
2397 useless call to record_temporary_equivalences.
2398 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
2399 allocate 10 slots in the bb_path vector and let it grow as needed.
2400 (fsm_find_control_statement_thread_paths): Similarly for the next_path
2403 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
2405 * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
2407 * configure: Regenerate.
2409 2016-01-21 Pat Haugen <pthaugen@us.ibm.com>
2411 * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
2412 * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
2414 2016-01-21 Bernd Schmidt <bschmidt@redhat.com>
2417 * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
2418 drop EXPAND_INITIALIZER.
2419 * rtl.h (contains_symbolic_reference_p): Declare.
2420 * rtlanal.c (contains_symbolic_reference_p): New function.
2421 * simplify-rtx.c (simplify_binary_operation_1): Don't turn
2422 a subtraction into a NOT if symbolic constants are involved.
2424 2016-01-21 Anton Blanchard <anton@samba.org>
2425 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2428 * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
2430 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
2433 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
2435 * config/microblaze/microblaze.c
2436 (get_branch_target): New.
2437 (insert_wic_for_ilb_runout): New.
2439 (microblaze_machine_dependent_reorg): New.
2440 (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
2441 * config/microblaze/microblaze.md
2442 (UNSPEC_IPREFETCH): Define.
2443 (iprefetch): New pattern
2444 * config/microblaze/microblaze.opt
2445 (mxl-prefetch): New flag.
2447 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
2449 * config/microblaze/microblaze.h
2450 (FIXED_REGISTERS): Update in macro.
2451 (CALL_USED_REGISTERS): Update in macro.
2453 2016-01-21 Yuri Rumyantsev <ysrumyan@gmail.com>
2455 PR rtl-optimization/68920
2456 * ifcvt.c (cond_move_process_if_block): Limit number of conditional
2459 2016-01-21 Vladimir Makarov <vmakarov@redhat.com>
2461 PR rtl-optimization/68990
2462 * lra-coalesce.c (lra_coalesce): Invalidate value for the result
2463 pseudo instead of inheritance ones.
2465 2016-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
2466 Nick Clifton <nickc@redhat.com>
2470 * config/mips/mips.c (mips_compute_frame_info): Initialise
2471 args_size and hard_frame_pointer_offset fields of the frame
2472 structure before calling mips_global_pointer.
2474 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
2476 * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
2478 * configure: Regenerate.
2480 2016-01-21 Richard Biener <rguenther@suse.de>
2482 * graphite-optimize-isl.c (get_schedule_map): Fix typo.
2484 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
2486 * config/s390/s390.c (s390_asm_declare_function_size): Add code
2487 to actually emit the .size directive.
2489 2016-01-21 Stefan Sørensen <stefan.sorensen@spectralink.com>
2490 Jakub Jelinek <jakub@redhat.com>
2494 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
2495 args array size by one to avoid buffer overflow.
2497 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
2499 * config/s390/s390.md (pool_section_start): Use switch_to_section
2500 to select proper read-only data section instead of hardcoding
2502 (pool_section_end): Use switch_to_section to match the above.
2504 2016-01-21 Richard Biener <rguenther@suse.de>
2506 PR tree-optimization/69378
2507 * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
2508 (set_ssa_val_to): Use it for dominance checks taking into
2509 account not executable edges.
2511 2016-01-21 Jakub Jelinek <jakub@redhat.com>
2514 * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
2515 for bitsize instead of GET_MODE_PRECISION (mode).
2517 2016-01-20 Martin Sebor <msebor@redhat.com>
2520 * extend.texi (__sync Builtins): Clarify the semantics of
2521 __sync_fetch_and_OP built-ins on pointers.
2522 (__atomic Builtins): Same.
2524 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
2525 Sebastian Pop <s.pop@samsung.com>
2527 * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
2528 (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
2529 (is_valid_rename): Same.
2530 (translate_isl_ast_to_gimple::get_rename): Same.
2531 (translate_isl_ast_to_gimple::rename_all_uses): Same.
2532 (translate_isl_ast_to_gimple::rename_uses): Same.
2533 (get_new_name): Check for close_phi nodes.
2534 (copy_loop_phi_args): Use phi_node_kind.
2535 (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
2536 (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
2538 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
2539 Sebastian Pop <s.pop@samsung.com>
2541 Revert commit r229783.
2542 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
2543 Remove use of parameter_rename_map.
2545 (copy_internal_parameters): Remove.
2546 (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
2547 * sese.c (new_sese_info): Do not initialize parameter_rename_map.
2548 (free_sese_info): Do not free parameter_rename_map.
2549 (set_rename): Do not use parameter_rename_map.
2550 (rename_uses): Update call to set_rename.
2551 (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
2552 * sese.h (parameter_rename_map_t): Remove.
2553 (struct sese_info_t): Remove field parameter_rename_map.
2555 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
2556 Sebastian Pop <s.pop@samsung.com>
2558 * graphite-isl-ast-to-gimple.c: Fix comment.
2559 * graphite-scop-detection.c (defined_in_loop_p): New.
2560 (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
2561 names defined in loop.
2563 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
2564 Sebastian Pop <s.pop@samsung.com>
2566 * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
2567 Discard unstructured if-then-else regions.
2569 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
2570 Sebastian Pop <s.pop@samsung.com>
2572 * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
2573 (cleanup_loop_iter_dom): Remove.
2574 (build_loop_iteration_domains): Remove.
2575 (build_scop_context): Remove.
2576 (build_scop_iteration_domain): Remove.
2577 (add_loop_constraints): New.
2578 (build_iteration_domains): New.
2579 (build_poly_scop): Call build_iteration_domains.
2581 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
2582 Sebastian Pop <s.pop@samsung.com>
2584 * graphite-scop-detection.c
2585 (scop_detection::harmful_loop_in_region): Free dom and loops.
2586 (scop_detection::loop_body_is_valid_scop): Free bbs.
2588 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
2589 Sebastian Pop <s.pop@samsung.com>
2591 * graphite-scop-detection.c (record_loop_in_sese): New.
2592 (gather_bbs::before_dom_children): Call record_loop_in_sese.
2593 (build_scops): Remove call to build_sese_loop_nests.
2594 * sese.c (sese_record_loop): Remove.
2595 (build_sese_loop_nests): Remove.
2596 (new_sese_info): Remove region->loops.
2597 (free_sese_info): Same.
2598 * sese.h (sese_contains_loop): Same.
2599 (build_sese_loop_nests): Remove.
2600 (sese_contains_loop): Remove.
2602 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
2603 Sebastian Pop <s.pop@samsung.com>
2605 * graphite-scop-detection.c (loop_is_valid_scop): Renamed
2606 loop_is_valid_in_scop.
2607 (scop_detection::harmful_stmt_in_region): Renamed
2608 harmful_loop_in_region.
2609 Call loop_is_valid_in_scop.
2611 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
2612 Sebastian Pop <s.pop@samsung.com>
2614 * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
2617 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
2618 Sebastian Pop <s.pop@samsung.com>
2620 * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
2621 * graphite.h (struct poly_bb): Remove field is_reduction.
2622 (PBB_IS_REDUCTION): Remove.
2624 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
2625 Sebastian Pop <s.pop@samsung.com>
2627 * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
2628 (add_pdr_constraints): Same.
2629 (scop_get_reads): Same.
2630 (scop_get_must_writes): Same.
2631 (scop_get_may_writes): Same.
2632 (scop_get_original_schedule): Same.
2633 (extend_schedule): Same.
2634 (apply_schedule_on_deps): Same.
2635 (carries_deps): Same.
2636 (compute_deps): Same.
2637 (scop_get_dependences): Same.
2638 * graphite-isl-ast-to-gimple.c
2639 (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
2640 * graphite-optimize-isl.c (get_schedule_for_band): Same.
2641 (get_schedule_for_band_list): Same.
2642 (get_schedule_map): Same.
2643 (apply_schedule_map_to_scop): Same.
2644 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
2645 (build_loop_iteration_domains): Same.
2646 (add_condition_to_pbb): Same.
2647 (add_param_constraints): Same.
2648 (pdr_add_memory_accesses): Same.
2649 (pdr_add_data_dimensions): Same.
2651 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
2653 * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
2656 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
2658 * common.opt (feliminate-dwarf2-dups): Replace references to
2659 "DWARF 2" with just "DWARF".
2660 * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
2661 * doc/extend.texi: Likewise.
2662 * doc/cpp.texi: Likewise.
2663 * doc/invoke.texi: Likewise.
2664 (Option Summary): Add -gdwarf to list of Debugging Options.
2665 (Debugging Options): Document -gdwarf.
2666 * doc/contrib.texi: Spell "DWARF" like that.
2668 2016-01-21 Jakub Jelinek <jakub@redhat.com>
2670 * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
2671 warning. Fix up formatting.
2674 * gimplify.c (gimplify_asm_expr): Warn if it is too late to
2675 attempt to mark memory input operand addressable and
2676 call prepare_gimple_addressable in that case. Don't adjust
2677 input_location for diagnostics, use error_at instead.
2679 2016-01-20 Peter Bergner <bergner@vnet.ibm.com>
2681 * config/rs6000/ppc-auxv.h: New file.
2682 * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
2684 (cpu_supports): Likewise.
2685 * config/rs6000/rs6000.c: include "ppc-auxv.h".
2686 (cpu_is_info): New variable.
2687 (cpu_supports_info): Likewise.
2688 (tcb_verification_symbol): Likewise.
2689 (cpu_builtin_p): Likewise.
2690 (cpu_expand_builtin): New function.
2691 (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
2692 (rs6000_init_builtins): Likewise.
2693 (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
2694 * config/rs6000/rs6000.h (TLS_REGNUM): New define.
2695 * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
2696 * configure: Regenerate.
2697 * config.in: Likewise.
2698 * doc/extend.texi (PowerPC Built-in Functions): Document
2699 __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
2701 2016-01-20 David Edelsohn <dje.gcc@gmail.com>
2704 * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
2706 * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
2709 2016-01-20 Richard Henderson <rth@redhat.com>
2715 * tree.c (tm_define_builtin): New.
2716 (find_tm_vector_type): New.
2717 (build_tm_vector_builtins): New.
2718 (build_common_builtin_nodes): Call it.
2720 2016-01-20 Christophe Lyon <christophe.lyon@linaro.org>
2722 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
2723 (arm_fp_ok): Likewise.
2725 (arm_crypto): Likewise.
2727 2016-01-20 Ilya Enkovich <enkovich.gnu@gmail.com>
2728 Richard Biener <rguenther@suse.de>
2730 PR tree-optimization/69328
2731 * tree-vect-stmts.c (vect_is_simple_cond): Check compared
2732 vectors have same number of elements.
2733 (vectorizable_condition): Fix masked version recognition.
2735 2016-01-20 Richard Biener <rguenther@suse.de>
2737 PR tree-optimization/69345
2738 * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
2739 (VN_INFO_PTR_INFO): Likewise.
2740 * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
2741 info when it is equal between non-dominating SSA names.
2742 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
2743 Make sure to look at original SSA infos.
2745 2016-01-20 Jeff Law <law@redhat.com>
2748 * config/m68k/predicates.md (pow2_m1_operand): New predicate
2750 (reg_or_pow2_m1_operand): Call pow2_m1_operand.
2751 (pc_or_label_operand): New predicate.
2752 * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
2753 tests for small integers that are 2^n - 1.
2755 2016-01-20 Jonathan Wakely <jwakely@redhat.com>
2757 * doc/invoke.texi (Options Summary): Add '.' after @xref.
2759 2016-01-19 Jeff Law <law@redhat.com>
2762 * tree-ssa-threadbackwards.c
2763 (fsm_find_control_statement_thread_paths): Do not try to lookup
2764 FSM paths for SSA_NAMEs appearing in abnormal PHIs.
2766 2016-01-20 Kugan Vivekanandarajah <kuganv@linaro.org>
2768 * doc/lto.texi: Remove text that says only Gold has linker plugin
2771 2016-01-19 Eric Botcazou <ebotcazou@adacore.com>
2773 * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
2774 (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
2775 the DIE accordingly.
2776 (modified_type_die): Add REVERSE parameter and pass it recursively,
2777 as well as to base_type_die. Adjust presence check accordingly.
2778 (base_type_for_mode): Adjust call to modified_type_die.
2779 (add_type_attribute): Add REVERSE parameter and pass it to
2781 (generic_parameter_die): Adjust call to add_type_attribute.
2782 (add_scalar_info): Likewise.
2783 (add_subscript_info): Likewise.
2784 (gen_array_type_die): Likewise.
2785 (gen_descr_array_type_die): Likewise.
2786 (gen_entry_point_die): Likewise.
2787 (gen_enumeration_type_die): Likewise.
2788 (gen_formal_parameter_die): Likewise.
2789 (gen_subprogram_die): Likewise.
2790 (gen_variable_die ): Likewise.
2791 (gen_const_die): Likewise.
2792 (gen_field_die): Likewise.
2793 (gen_pointer_type_die): Likewise.
2794 (gen_reference_type_die): Likewise.
2795 (gen_ptr_to_mbr_type_die): Likewise.
2796 (gen_inheritance_die): Likewise.
2797 (gen_subroutine_type_die): Likewise.
2798 (gen_typedef_die): Likewise.
2799 (force_type_die): Adjust call to modified_type_die.
2801 2016-01-19 Sandra Loosemore <sandra@codesourcery.com>
2803 * doc/standards.texi: Copy-editing for grammar, markup, and sentence
2804 flow throughout the file. Fix broken link to Objective-C 2.0
2806 * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
2809 2016-01-19 Wilco Dijkstra <wdijkstr@arm.com>
2811 * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
2813 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
2816 * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
2817 (maybe_record_node): Record cxa_pure_virtual as the only possible
2818 target if there are not ohter candidates.
2819 (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
2821 2016-01-19 Richard Biener <rguenther@suse.de>
2823 * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
2824 (get_memory_order): Likewise.
2826 2016-01-19 Kirill Yukhin <kirill.yukhin@intel.com>
2828 * tree-vect-stmts.c (vectorizable_store): Check
2831 2016-01-19 David Malcolm <dmalcolm@redhat.com>
2834 * gcc.c (driver::decode_argv): Add call to
2835 init_opts_obstack before init_options_struct.
2836 * opts.c (init_opts_obstack): Remove idempotency.
2837 (init_options_struct): Replace call to init_opts_obstack
2838 with a gcc_assert to verify that it has already been called.
2839 * toplev.c (toplev::main): Add call to init_opts_obstack before
2840 calls to init_options_struct.
2841 (toplev::finalize): Move cleanup of opts_obstack next to
2842 cleanup of save_decoded_options, clearing the latter, and
2843 save_decoded_options_count.
2845 2016-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2848 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
2849 attribute to unconditional. Remove %? from output template.
2851 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
2852 Jiong Wang <jiong.wang@arm.com>
2854 * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
2855 generated from different expand order.
2857 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
2859 * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
2860 Add support for CCMP costing.
2862 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
2864 * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
2865 * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
2866 (fccmpe<mode>): Likewise.
2867 (fcmp): Rename to fcmp and globalize pattern.
2869 * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
2870 (aarch64_gen_ccmp_next): Add FP support.
2872 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
2874 * target.def (gen_ccmp_first): Update documentation.
2875 (gen_ccmp_next): Likewise.
2876 * doc/tm.texi (gen_ccmp_first): Update documentation.
2877 (gen_ccmp_next): Likewise.
2878 * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
2879 expand_ccmp_expr_1. Improve comments.
2880 * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
2881 (ccmp_ior<mode>): Remove pattern.
2882 (cmp<mode>): Remove expand.
2883 (cmp): Globalize pattern.
2884 (cstorecc4): Use cc_register.
2885 (mov<mode>cc): Remove ccmp_cc_register check.
2886 * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
2887 Simplify after removal of CC_DNE/* modes.
2888 (aarch64_ccmp_mode_to_code): Remove.
2889 (aarch64_print_operand): Remove 'K' case. Merge 'm' and 'M' cases.
2890 In 'k' case use integer as condition.
2891 (aarch64_nzcv_codes): Remove inverted cases.
2892 (aarch64_code_to_ccmode): Remove.
2893 (aarch64_gen_ccmp_first): Use cmp pattern directly. Return the correct
2894 comparison with CC register to be used in folowing CCMP/branch/CSEL.
2895 (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
2896 pattern. Return the comparison with CC register. Invert conditions
2898 * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
2899 * config/aarch64/predicates.md (ccmp_cc_register): Remove.
2901 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
2903 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
2904 instrumented_version.
2906 2016-01-19 Richard Biener <rguenther@suse.de>
2908 PR tree-optimization/69336
2909 * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
2910 handled components with get_ref_base_and_extent.
2911 (equal_mem_array_ref_p): Adjust.
2913 2016-01-19 Jakub Jelinek <jakub@redhat.com>
2916 * shrink-wrap.c: Include valtrack.h.
2917 (move_insn_for_shrink_wrap): Add DEBUG argument. If
2918 MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
2919 in between insn and where it will be moved to. Call
2920 dead_debug_insert_temp.
2921 (prepare_shrink_wrap): Adjust caller. Call dead_debug_local_init
2922 first and dead_debug_local_finish at the end.
2923 For uses and defs bitmap, handle all regs in between REGNO and
2924 END_REGNO, not just the first one.
2926 2016-01-19 Richard Biener <rguenther@suse.de>
2928 PR tree-optimization/69352
2929 * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
2930 (equal_mem_array_ref_p): Constrain size and max size properly.
2931 Compare the reverse flag.
2933 2016-01-19 Bernd Schmidt <bschmidt@redhat.com>
2935 * ira.c (ira): Update regstat data if we deleted insns.
2937 2016-01-19 Jakub Jelinek <jakub@redhat.com>
2939 PR rtl-optimization/68955
2940 PR rtl-optimization/64557
2941 * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
2942 here. Fix up formatting.
2943 * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
2945 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
2948 * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
2949 assume that the node has body.
2950 * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
2953 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
2955 * lto-streamer-out.c (lto_output): Do not stream instrumentation
2958 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
2960 * symtab.c (symtab_node::asm_name): Do not call printable name directly.
2961 (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
2963 2016-01-19 Martin Jambor <mjambor@suse.cz>
2964 Martin Liska <mliska@suse.cz>
2965 Michael Matz <matz@suse.de>
2967 * Makefile.in (OBJS): Add new source files.
2968 (GTFILES): Add hsa.c.
2969 * common.opt (disable_hsa): New variable.
2970 (-Whsa): New warning.
2971 * config.in (ENABLE_HSA): New.
2972 * configure.ac: Treat hsa differently from other accelerators.
2973 (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
2975 (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
2976 * doc/install.texi (Configuration): Document --with-hsa-runtime,
2977 --with-hsa-runtime-include, --with-hsa-runtime-lib and
2979 * doc/invoke.texi (-Whsa): Document.
2980 (hsa-gen-debug-stores): Likewise.
2981 * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
2982 to invoke offload compiler for hsa acclerator.
2983 * opts.c (common_handle_option): Determine whether HSA offloading
2984 should be performed.
2985 * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
2986 * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
2987 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
2988 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
2989 * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
2990 * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
2991 GF_OMP_FOR_KIND_GRID_LOOP.
2992 (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
2993 (pp_gimple_stmt_1): Likewise.
2994 * gimple-walk.c (walk_gimple_stmt): Likewise.
2995 * gimple.c (gimple_build_omp_grid_body): New function.
2996 (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
2997 * gimple.def (GIMPLE_OMP_GRID_BODY): New.
2998 * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
2999 GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
3000 GF_OMP_TEAMS_GRID_PHONY.
3001 (gimple_statement_omp_single_layout): Updated comments.
3002 (gimple_build_omp_grid_body): New function.
3003 (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
3004 (gimple_omp_for_grid_phony): New function.
3005 (gimple_omp_for_set_grid_phony): Likewise.
3006 (gimple_omp_parallel_grid_phony): Likewise.
3007 (gimple_omp_parallel_set_grid_phony): Likewise.
3008 (gimple_omp_teams_grid_phony): Likewise.
3009 (gimple_omp_teams_set_grid_phony): Likewise.
3010 (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
3011 * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
3012 (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
3013 (BUILT_IN_GOMP_TARGET): Updated type.
3014 * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
3015 (adjust_for_condition): New function.
3016 (get_omp_for_step_from_incr): Likewise.
3017 (extract_omp_for_data): Moved parts to adjust_for_condition and
3018 get_omp_for_step_from_incr.
3019 (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
3020 (fixup_child_record_type): Bail out if receiver_decl is NULL.
3021 (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
3022 (scan_omp_parallel): Do not create child functions for phony
3024 (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
3025 (scan_omp_1_op): Checking assert we are not remapping to
3026 ERROR_MARK. Also also handle GIMPLE_OMP_GRID_BODY.
3027 (parallel_needs_hsa_kernel_p): New function.
3028 (expand_parallel_call): Register apprpriate parallel child
3029 functions as HSA kernels.
3030 (grid_launch_attributes_trees): New type.
3031 (grid_attr_trees): New variable.
3032 (grid_create_kernel_launch_attr_types): New function.
3033 (grid_insert_store_range_dim): Likewise.
3034 (grid_get_kernel_launch_attributes): Likewise.
3035 (get_target_argument_identifier_1): Likewise.
3036 (get_target_argument_identifier): Likewise.
3037 (get_target_argument_value): Likewise.
3038 (push_target_argument_according_to_value): Likewise.
3039 (get_target_arguments): Likewise.
3040 (expand_omp_target): Call get_target_arguments instead of looking
3041 up for teams and thread limit.
3042 (grid_expand_omp_for_loop): New function.
3043 (grid_arg_decl_map): New type.
3044 (grid_remap_kernel_arg_accesses): New function.
3045 (grid_expand_target_kernel_body): New function.
3046 (expand_omp): Call it.
3047 (lower_omp_for): Do not emit phony constructs.
3048 (lower_omp_taskreg): Do not emit phony constructs but create for them
3049 a temporary variable receiver_decl.
3050 (lower_omp_taskreg): Do not emit phony constructs.
3051 (lower_omp_teams): Likewise.
3052 (lower_omp_grid_body): New function.
3053 (lower_omp_1): Call it.
3054 (grid_reg_assignment_to_local_var_p): New function.
3055 (grid_seq_only_contains_local_assignments): Likewise.
3056 (grid_find_single_omp_among_assignments_1): Likewise.
3057 (grid_find_single_omp_among_assignments): Likewise.
3058 (grid_find_ungridifiable_statement): Likewise.
3059 (grid_target_follows_gridifiable_pattern): Likewise.
3060 (grid_remap_prebody_decls): Likewise.
3061 (grid_copy_leading_local_assignments): Likewise.
3062 (grid_process_kernel_body_copy): Likewise.
3063 (grid_attempt_target_gridification): Likewise.
3064 (grid_gridify_all_targets_stmt): Likewise.
3065 (grid_gridify_all_targets): Likewise.
3066 (execute_lower_omp): Call grid_gridify_all_targets.
3067 (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
3068 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
3069 (tree_omp_clause): Added union field dimension.
3070 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
3071 * tree.c (omp_clause_num_ops): Added number of arguments of
3072 OMP_CLAUSE__GRIDDIM_.
3073 (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
3074 (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
3075 * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
3076 (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
3077 (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
3078 (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
3079 * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
3080 * tree-pass.h (make_pass_gen_hsail): Declare.
3081 (make_pass_ipa_hsa): Likewise.
3082 * ipa-hsa.c: New file.
3083 * lto-section-in.c (lto_section_name): Add hsa section name.
3084 * lto-streamer.h (lto_section_type): Add hsa section.
3085 * timevar.def (TV_IPA_HSA): New.
3086 * hsa-brig-format.h: New file.
3087 * hsa-brig.c: New file.
3088 * hsa-dump.c: Likewise.
3089 * hsa-gen.c: Likewise.
3092 * toplev.c (compile_file): Call hsa_output_brig.
3093 * hsa-regalloc.c: New file.
3095 2016-01-18 Jeff Law <law@redhat.com>
3097 PR tree-optimization/69320
3098 * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
3099 ranged object, do nothing if the RHS constant is not [0..1].
3100 (optimize_stmt): Comparing a boolean ranged object against a
3101 constant outside [0..1] results in a compile-time constant.
3103 * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
3106 2016-01-18 Sandra Loosemore <sandra@codesourcery.com>
3108 * doc/invoke.texi (Invoking GCC): Add new section to menu.
3109 (Option Summary): Update to reflect new section and moved options.
3110 (C++ Dialect Options): Move -fstats to new section.
3111 (Debugging Options): Move all dump, statistics, and other GCC
3112 developer options to new section. Rewrite section introduction
3113 and re-order remaining options to put the more basic ones first.
3114 (Optimization Options): Move -fira-verbose and -flto-report* to
3116 (Developer Options): New section incorporating moved options.
3117 * doc/cppopts.texi (-dM): Update cross-reference.
3119 2016-01-18 Richard Henderson <rth@redhat.com>
3122 * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
3123 operands to pseudo only if CSE is expected. Split long immediate
3124 operands only after reload, and for the stack pointer.
3125 (*add<GPI>3_pluslong): Remove.
3126 (*addsi3_aarch64, *adddi3_aarch64): Merge into...
3127 (*add<GPI>3_aarch64): ... here. Add r/rk/Upl alternative.
3128 (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
3129 (*add<GPI>3 peepholes): New.
3130 (*add<GPI>3 splitters): New.
3131 * config/aarch64/constraints.md (Upl): New.
3132 * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
3134 2016-01-18 Richard Biener <rguenther@suse.de>
3136 PR tree-optimization/69297
3137 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
3139 (vect_bb_vectorization_profitable_p): Clear visited flag again.
3141 2016-01-18 Yuri Rumyantsev <ysrumyan@gmail.com>
3144 * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
3145 of mixind vector and scalar types.
3146 (fold_relational_const): Add handling of vector
3147 comparison with boolean result.
3148 * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
3149 comparison of vector operands with boolean result for EQ/NE only.
3150 (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
3151 (verify_gimple_cond): Likewise.
3152 * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
3155 2016-01-18 Joseph Myers <joseph@codesourcery.com>
3157 * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
3160 2016-01-18 Richard Biener <rguenther@suse.de>
3163 * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
3165 2016-01-18 Tom de Vries <tom@codesourcery.com>
3167 * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
3169 2016-01-18 Tom de Vries <tom@codesourcery.com>
3171 * omp-low.c (set_oacc_fn_attrib): Make extern.
3172 * omp-low.h (set_oacc_fn_attrib): Declare.
3173 * tree-parloops.c (struct reduction_info): Add reduc_addr field.
3174 (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
3175 (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
3176 Add and handle function parameter oacc_kernels_p.
3177 (find_reduc_addr, get_omp_data_i_param): New function.
3178 (ref_conflicts_with_region, oacc_entry_exit_ok_1)
3179 (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
3180 (parallelize_loops): Add and handle function parameter oacc_kernels_p.
3181 Calculate dominance info. Skip loops that are not in a kernels region
3182 in oacc_kernels_p mode. Skip inner loops of parallelized loops.
3183 (pass_parallelize_loops::execute): Call parallelize_loops with
3184 oacc_kernels_p argument.
3185 (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
3186 New member function.
3187 (pass_parallelize_loops::bool oacc_kernels_p): New member var.
3188 * passes.def: Add argument to pass_parallelize_loops instantation.
3190 2016-01-18 Tom de Vries <tom@codesourcery.com>
3192 * tree-parloops.c (pass_parallelize_loops::execute): Allow
3193 pass_parallelize_loops to be run outside the loop pipeline.
3195 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
3197 * tree-scalar-evolution.c (follow_copies_to_constant): New.
3198 (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
3200 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
3203 * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
3204 using get_ref_base_and_extent.
3205 (equal_mem_array_ref_p): New.
3206 (hashable_expr_equal_p): Add call to previous.
3208 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
3211 * tree-sra.c (disqualified_constants, constant_decl_p): New.
3212 (sra_initialize): Allocate disqualified_constants.
3213 (sra_deinitialize): Free disqualified_constants.
3214 (disqualify_candidate): Update disqualified_constants when appropriate.
3215 (create_access): Scan for constant-pool entries as we go along.
3216 (scalarizable_type_p): Add check against type_contains_placeholder_p.
3217 (maybe_add_sra_candidate): Allow constant-pool entries.
3218 (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
3219 (initialize_constant_pool_replacements): New.
3220 (sra_modify_assign): Avoid mangling assignments created by previous,
3221 and don't generate writes into constant pool.
3222 (sra_modify_function_body): Call initialize_constant_pool_replacements.
3224 2016-01-18 Ilya Enkovich <enkovich.gnu@gmail.com>
3226 * config/i386/i386.c (scalar_to_vector_candidate_p): Support
3228 (scalar_chain::convert_op): Likewise.
3229 * config/i386/i386.md (*andndi3_doubleword): New.
3231 2016-01-18 Richard Biener <rguenther@suse.de>
3233 PR tree-optimization/69170
3234 * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
3235 building a vector from scalar results of a pattern stmt.
3237 2016-01-18 Jakub Jelinek <jakub@redhat.com>
3239 * haifa-sched.c (autopref_multipass_init): Work around
3240 -Wmaybe-uninitialized warning.
3242 2016-01-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
3244 * config/arm/arm.c (thumb1_reorg): Check that the comparison is
3245 against the constant 0.
3247 2016-01-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3249 PR tree-optimization/68799
3250 * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
3251 look up phi candidates in the statement-candidate map.
3252 (phi_add_costs): Likewise.
3253 (record_phi_increments): Likewise.
3254 (phi_incr_cost): Likewise.
3255 (ncd_with_phi): Likewise.
3256 (all_phi_incrs_profitable): Likewise.
3258 2016-01-17 Jakub Jelinek <jakub@redhat.com>
3260 * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
3261 -Wmaybe-uninitialized warning.
3263 2016-01-16 Sandra Loosemore <sandra@codesourcery.com>
3265 * doc/invoke.texi (Invoking GCC): Add new section to menu.
3266 (Option Summary): Update to reflect new section and moved options.
3267 (C++ Dialect Options): Move -fvtable-verify and related options.
3268 (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
3269 and profiling-related options.
3270 (Optimization Options): Move profile generation options and
3271 -fstack-protector and related options.
3272 (Instrumentation Options): New section incorporating moved options.
3273 (Code Generation Options): Move -finstrument-functions and
3274 related options, -fstack-check, -fstack-limit*, and -fbounds-check.
3276 2016-01-16 Tom de Vries <tom@codesourcery.com>
3278 * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
3280 2016-01-16 Tom de Vries <tom@codesourcery.com>
3282 * omp-low.c (expand_omp_atomic_fetch_op): Release defs of update stmt.
3284 2016-01-16 Richard Sandiford <richard.sandiford@arm.com>
3286 * hash-table.h (hash_table::empty): Turn into an inline wrapper
3287 that checks whether the table is already empty. Rename the
3288 original implementation to...
3289 (hash_table::empty_slot): ...this new private function.
3291 2016-01-15 David Malcolm <dmalcolm@redhat.com>
3294 * diagnostic-show-locus.c (layout::print_source_line): Move x
3295 offset of line until after call to
3296 get_line_width_without_trailing_whitespace.
3298 2016-01-15 Jeff Law <law@redhat.com>
3300 PR tree-optimization/69270
3301 * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
3302 tree-ssa-dom.c. Improve test for [0..1] ranve from VRP.
3303 * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
3304 * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
3305 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
3306 ssa_name_has_boolean_range and constant_boolean_node.
3308 2016-01-15 Vladimir Makarov <vmakarov@redhat.com>
3310 PR rtl-optimization/69030
3311 * lra-spills.c (remove_pseudos): Check nrefs and make the function
3313 (spill_pseudos): Delete debug insn for dead pseudo.
3314 (lra_spill): Initiate spill_hard_reg and slots memory separately.
3316 2016-01-15 Jiong Wang <jiong.wang@arm.com>
3318 * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
3320 (TYPES_UNOPUS): Likewise.
3321 * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
3322 builtin type, from UNOP to UNOPUS.
3323 (lbtruncuv4sf): Likewise.
3324 (lbtruncuv2df): Likewise.
3325 (lrounduv2sf): Likewise.
3326 (lrounduv4sf): Likewise.
3327 (lrounduv2df): Likewise.
3328 (lroundusf): Likewise.
3329 (lroundusf): Likewise.
3330 (lceiluv2sf): Likewise.
3331 (lceiluv4sf): Likewise.
3332 (lceiluv2df): Likewise.
3333 (lceilusf): Likewise.
3334 (lceiludf): Likewise.
3335 (lflooruv2sf): Likewise.
3336 (lflooruv4sf): Likewise.
3337 (lflooruv2df): Likewise.
3338 (lfloorusf): Likewise.
3339 (lfloorudf): Likewise.
3340 (lfrintnuv2sf): Likewise.
3341 (lfrintnuv4sf): Likewise.
3342 (lfrintnuv2df): Likewise.
3343 (lfrintnusf): Likewise.
3344 (lfrintnudf): Likewise.
3345 * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
3347 (vcvtq_u32_f32): Likewise.
3348 (vcvtq_u64_f64): Likewise.
3349 (vcvta_u32_f32): Likewise.
3350 (vcvtaq_u32_f32): Likewise.
3351 (vcvtaq_u64_f64): Likewise.
3352 (vcvtm_u32_f32): Likewise.
3353 (vcvtmq_u32_f32): Likewise.
3354 (vcvtmq_u64_f64): Likewise.
3355 (vcvtn_u32_f32): Likwise.
3356 (vcvtnq_u32_f32): Likewise.
3357 (vcvtnq_u64_f64): Likewise.
3358 (vcvtp_u32_f32): Likewise.
3359 (vcvtpq_u32_f32): Likewise.
3360 (vcvtpq_u64_f64): Likewise.
3361 (vcvtmd_u64_f64): Likewise.
3362 (vcvtms_u32_f32): Likewise.
3363 (vcvtad_u64_f64): Likewise.
3364 (vcvtas_u32_f32): Likewise.
3365 (vcvtnd_u64_f64): Likewise.
3366 (vcvtns_u32_f32): Likewise.
3367 (vcvtpd_u64_f64): Likewise.
3368 (vcvtps_u32_f32): Likewise.
3370 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3372 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
3373 CSEL of zero_extended registers.
3375 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3377 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
3378 Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
3380 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3382 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
3383 false when argument string is not found in the attributes table
3386 2016-01-15 David Edelsohn <dje.gcc@gmail.com>
3389 * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
3390 (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
3391 * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
3394 2016-01-15 Richard Biener <rguenther@suse.de>
3396 PR tree-optimization/66856
3397 * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
3398 * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
3399 (vect_create_new_slp_node): Increment stmt reference count.
3400 (vect_get_and_check_slp_defs): Make sure stmts are nor already in
3401 an SLP tree before swapping operands.
3402 (vect_build_slp_tree): Likewise.
3403 (destroy_bb_vec_info): Free stmt info after SLP instances.
3404 * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
3405 * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
3406 (STMT_VINFO_NUM_SLP_USES): New macro.
3408 2016-01-15 Richard Biener <rguenther@suse.de>
3411 * dwarf2out.c (add_linkage_name_raw): New function split out from ...
3412 (add_linkage_name): ... here.
3413 (gen_typedef_die): Use add_linkage_name_raw instead of
3414 add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
3417 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
3419 * gimplify.c (oacc_default_clause): Decode reference and pointer
3420 types for both kernels and parallel regions.
3422 2016-01-15 Richard Sandiford <richard.sandiford@arm.com>
3425 * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
3427 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
3429 * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
3430 (convert_scalars_to_vector): Likewise.
3432 2016-01-15 Jonathan Wakely <jwakely@redhat.com>
3434 * doc/extend.texi (Type Traits): Fix grammar.
3436 2016-01-15 Martin Jambor <mjambor@suse.cz>
3438 * tree-inline.c (remap_decl): Use existing dclarations if
3439 remapping a type and prevent_decl_creation_for_types.
3440 (replace_locals_stmt): Do an initial remapping of non-VLA typed
3441 decls first. Do real remapping with
3442 prevent_decl_creation_for_types set.
3443 * tree-inline.h (copy_body_data): New field
3444 prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
3447 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
3449 * config/s390/s390.opt (mmvcle): More verbose help text.
3451 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
3453 * config/s390/s390.opt: Add period to -mzvector option text.
3455 2016-01-15 Richard Biener <rguenther@suse.de>
3457 PR tree-optimization/68961
3458 * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
3459 of invariants in stores again.
3461 2016-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
3463 * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
3465 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
3467 * config/i386/i386.c (ix86_expand_branch): Don't split
3468 DI mode xor instruction to SI mode.
3470 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
3473 * ipa-icf.c (sem_function::merge): Virtual functions may become
3474 reachable even if they address is not taken and there are no
3477 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
3479 * lto-streamer-out.c (subtract_estimated_size): New function.
3480 (get_symbol_initial_value): Use it.
3482 2016-01-15 Christian Bruel <christian.bruel@st.com>
3485 * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
3486 (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
3487 (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
3488 use add_builtin_function_ext_scope instead of add_builtin_function.
3489 (neon_set_p, neon_crypto_set_p): Remove.
3490 (arm_init_builtins): Always call arm_init_neon_builtins and
3491 arm_init_crypto_builtins.
3492 (arm_expand_builtin): Check that builtins are allowed for the arch.
3493 * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
3494 * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
3495 arm_init_neon_builtins call.
3497 2016-01-15 Richard Biener <rguenther@suse.de>
3499 PR tree-optimization/69117
3500 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
3501 * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
3502 of the leader conservatively.
3503 (free_scc_vn): Restore original SSA name infos.
3505 2016-01-14 Jeff Law <law@redhat.com>
3507 PR tree-optimization/69270
3508 * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
3509 single bit of precision, verify it's also unsigned.
3510 (record_edge_info): Use constant_boolean_node rather than fold_convert
3511 to convert boolean_true/boolean_false to the right type.
3513 2016-01-14 Richard Henderson <rth@redhat.com>
3516 * loop-doloop.c (record_reg_sets): New.
3517 (doloop_optimize): Reject the transform if the sequence
3518 clobbers registers live at the end of the loop block.
3519 (doloop_optimize_loops): Enable df_live if needed.
3521 2016-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
3523 * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
3524 * gcc/config/rs6000/rs6000.c: Likewise.
3525 * gcc/config/rs6000/rs6000.h: Likewise.
3526 * gcc/config/rs6000/rs6000.md: Likewise.
3527 * gcc/doc/extend.texi: Likewsie.
3529 2016-01-14 Jeff Law <law@redhat.com>
3531 * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
3534 2016-01-14 Richard Henderson <rth@redhat.com>
3538 * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
3539 * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
3540 instead of builtin_decl_declared_p to test for declaration.
3542 2016-01-14 Nicklas Bo Jensen <nbjensen@gmail.com>
3544 * doc/loop.texi (Loop Analysis and Representation): Document
3545 loop_depth function.
3547 2016-01-14 Tom de Vries <tom@codesourcery.com>
3549 PR tree-optimization/68773
3550 * omp-low.c (expand_omp_target): Don't set force_output.
3551 * varpool.c (varpool_node::get_create): Same.
3552 * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
3553 offload_funcs with force_output.
3555 2016-01-14 Jakub Jelinek <jakub@redhat.com>
3558 * lra-eliminations.c (move_plus_up): Don't change anything if either
3559 the outer or inner subreg mode is not MODE_INT.
3560 * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
3561 integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
3563 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
3565 * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
3566 reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
3567 reduc_uplus_@var{m}): Remove.
3568 * expr.c (expand_expr_real_2): Remove expansion path for
3569 reduc_[us](min|max|plus) optabs.
3570 * optabs-tree.c (scalar_reduc_to_vector): Remove.
3571 * optabs-tree.h (scalar_reduc_to_vector): Remove.
3572 * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
3573 reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
3574 * tree-vect-loop.c (vectorizable_reduction): Remove test for
3575 reduc_[us](min|max|plus) optabs.
3577 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
3579 * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
3580 (reduc_plus_scal_v2sf): New.
3581 (reduc_smax_v2sf): Rename to...
3582 (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
3583 (reduc_smin_v2sf): Rename to...
3584 (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
3586 2016-01-14 Jan Hubicka <hubicka@ucw.cz>
3588 * alias.c (compare_base_symbol_refs): New function.
3589 (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
3592 2016-01-14 Jakub Jelinek <jakub@redhat.com>
3595 PR tree-optimization/69155
3596 * tree-complex.c: Include cfganal.h.
3597 (phis_to_revisit): New variable.
3598 (extract_component): Add phiarg_p argument. Assert that returned
3599 SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
3600 (update_phi_components): Partly rewrite to use loop over real/imag
3601 components instead of code duplication. If extract_component returns
3602 SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
3603 create_tmp_reg into the PHI node instead, and mention the phi triplet
3605 (tree_lower_complex): Walk bbs in rpo order. Adjust phis recorded
3606 in phis_to_revisit at the end.
3608 2016-01-14 Richard Biener <rguenther@suse.de>
3610 PR tree-optimization/68060
3611 * tree-vect-loop.c (vect_is_simple_reduction): Check the
3612 outer loop reduction is only used in the inner loop before
3613 detecting a double reduction.
3615 2016-01-14 Jakub Jelinek <jakub@redhat.com>
3618 * combine.c (expand_field_assignment): Punt if compute_mode is
3619 unsupported scalar mode.
3621 2016-01-14 Richard Biener <rguenther@suse.de>
3623 PR tree-optimization/66856
3624 * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
3625 SLP node only if it built successfully.
3626 (vect_analyze_slp_instance): Adjust.
3628 2016-01-14 Jeff Law <law@redhat.com>
3630 PR tree-optimization/69270
3631 * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
3632 (record_edge_info): Use it. Convert boolean_{true,false}_node
3635 2016-01-13 Jan Hubicka <hubicka@ucw.cz>
3638 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
3639 use block_ultimate_origin
3640 (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
3642 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
3644 * doc/invoke.texi (Submodel Options): Rename section to
3645 "Machine-Dependent Options" to better reflect its content.
3646 Rewrite introductory text to remove archaic CPU names.
3649 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
3651 * doc/invoke.texi (Code Gen Options): Move section up in file,
3652 before target-specific options. Update menu and option summary
3653 to reflect the new section ordering.
3655 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
3657 * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
3658 (C++ Dialect Options): Add cross-reference to -std option.
3659 * doc/standards.texi (C++ Language): Document C++14 support.
3661 2016-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
3663 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
3664 for pack/unpack functions for __ibm128.
3665 (PACK_IF): Likewise.
3666 (UNPACK_IF): Likewise.
3668 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
3669 support for __ibm128 pack/unpack functions.
3670 (rs6000_invalid_builtin): Likewise.
3671 (rs6000_init_builtins): Likewise.
3672 (rs6000_opt_masks): Likewise.
3674 * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
3675 (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
3677 (RS6000_BTM_COMMON): Likewise.
3679 * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
3680 (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
3681 disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
3682 128-bit floating point. Add support for the double values to be
3683 in Altivec registers for TF/IF packing and unpacking, but restrict
3684 TD packing sub-fields to be FPR registers. Don't allow overlapped
3685 register support for packing. Allow pack inputs to be memory
3686 locations. Don't build generator functions for unpack<mode>_dm
3687 and unpack<mode>_nodm.
3688 (unpack<mode>_dm): Likewise.
3689 (unpack<mode>_nodm): Likewise.
3690 (pack<mode>): Likewise.
3692 * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
3693 built-in functions to pack/unpack explicit __ibm128 values.
3694 (__builtin_unpack_ibm128): Likewise.
3696 * doc/extend.texi (PowerPC Built-in Functions): Document
3697 __builtin_pack_ibm128 and __builtin_unpack_ibm128.
3699 2016-01-13 Bernd Schmidt <bschmidt@redhat.com>
3702 * c-common.c (check_function_nonnull): Remove unnecessary declaration.
3703 Add new arg loc and pass it down as context.
3704 (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
3705 to the location to use for the warning.
3706 (check_function_arguments): New arg loc. All callers changed. Pass
3707 it to check_function_nonnull.
3708 * c-common.h (check_function_arguments): Adjust declaration.
3710 2016-01-13 Jakub Jelinek <jakub@redhat.com>
3712 PR tree-optimization/69156
3713 * gimple.c (validate_type): Removed.
3714 (gimple_builtin_call_types_compatible_p): Use
3715 useless_type_conversion_p instead of validate_type.
3716 * value-prof.c (gimple_stringop_fixed_value): Fold
3717 icall_size to correct type.
3719 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
3721 * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
3724 2016-01-13 Richard Henderson <rth@redhat.com>
3727 * target.def (builtin_tm_load, builtin_tm_store): Remove.
3728 * config/i386/i386.c (ix86_builtin_tm_load): Remove.
3729 (ix86_builtin_tm_store): Remove.
3730 (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
3731 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
3732 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
3733 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
3734 * doc/tm.texi: Rebuild.
3736 * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
3737 (BUILT_IN_TM_MEMCPY_RTWN): New.
3738 * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
3739 fallback from vector to integer helpers.
3740 (build_tm_load): Handle vector types directly, instead of
3742 (build_tm_store): Likewise.
3743 (expand_assign_tm): Prepare for register types not handled by
3744 the above. Copy them to memory and use memcpy.
3745 * tree.c (tm_define_builtin): New.
3746 (find_tm_vector_type): New.
3747 (build_tm_vector_builtins): New.
3748 (build_common_builtin_nodes): Call it.
3750 2016-01-13 Uros Bizjak <ubizjak@gmail.com>
3752 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
3753 TARGET_SSE_MATH without TARGET_SSE2. Rewrite.
3755 2016-01-13 Tom de Vries <tom@codesourcery.com>
3757 PR tree-optimization/69169
3758 * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
3759 handled_struct_type param.
3760 (create_variable_info_for, intra_create_variable_infos): Call
3761 create_variable_info_for_1 with extra arg.
3763 2016-01-13 Yvan Roux <yvan.roux@linaro.org>
3765 * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
3766 and "armv8.1-a+crc" entries.
3768 2016-01-13 Alexander Fomin <alexander.fomin@intel.com>
3771 * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
3772 Change first operand predicate from register_or_constm1_operand
3773 to register_operand.
3774 (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
3775 (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
3776 (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
3777 (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
3778 (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
3779 (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
3780 (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
3781 * config/i386/i386.c (ix86_expand_builtin): Remove first operand
3782 comparison with constm1_rtx from vec_prefetch_gen part.
3784 2016-01-13 Richard Biener <rguenther@suse.de>
3786 PR tree-optimization/69013
3787 * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
3788 Exchange assert for a test.
3790 2016-01-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3793 * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
3795 2016-01-13 Richard Biener <rguenther@suse.de>
3797 PR tree-optimization/69242
3798 * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
3799 assert with a check.
3801 2016-01-13 Richard Biener <rguenther@suse.de>
3803 PR tree-optimization/69186
3804 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
3805 Properly guard vect_update_misalignment_for_peel call.
3807 2016-01-12 Jeff Law <law@redhat.com>
3809 PR tree-optimization/pr67755
3810 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
3811 "need_profile_correction".
3812 (thread_block_1): Initialize new field to false by default. If we
3813 have multiple thread paths through a common joiner to different
3814 final targets, then set new field to true.
3815 (compute_path_counts): Only do count adjustment when it's really
3818 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
3820 * doc/invoke.texi (Spec Files): Move section down in file, past
3821 all command-line option descriptions.
3823 2016-01-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3826 * doc/gty.texi: Remove documentation of mark_hook.
3827 * gengtype.c (struct write_types_data): Remove code to support
3828 mark_hook attribute.
3829 (walk_type): Likewise.
3830 (write_func_for_structure): Likewise.
3832 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
3834 * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
3835 Directory Options, and -specs= to Overall Options.
3836 (Overall Options): Adjust similarly. Reorder to group related
3837 options together. Make -specs= cross-reference the spec file details.
3838 (Directory Options): Adjust similarly.
3840 2016-01-12 Jeff Law <law@redhat.com>
3842 * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
3844 2016-01-12 Olivier Hainque <hainque@adacore.com>
3846 * gcc.c (spec_undefvar_allowed): New global.
3847 (process_command): Set to true when running for --version or --help,
3849 (getenv_spec_function): When the variable is not defined, use the
3850 variable name as the variable value if we're allowed not to issue
3853 2016-01-12 Bin Cheng <bin.cheng@arm.com>
3855 PR tree-optimization/68911
3856 * tree-vrp.c (adjust_range_with_scev): Check overflow in range
3857 information computed for expression "init + nit * step".
3859 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
3861 * doc/invoke.texi (Invoking GCC): Copy-edit. Incorporate information
3862 about name of GCC executable. Remove deleted node from menu.
3863 (Directory Options) <-B>: Remove cross-reference to deleted node.
3864 (Target Options): Delete section.
3866 2016-01-12 Christian Bruel <christian.bruel@st.com>
3869 * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
3870 for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
3872 2016-01-12 Jakub Jelinek <jakub@redhat.com>
3875 * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
3876 aligned_mem is properly set for AVX512-VL floating point masked
3880 * ifcvt.c (cond_exec_process_if_block): When removing the last
3881 insn from then_bb, remove also any possible barriers that follow it.
3883 2016-01-12 H.J. Lu <hongjiu.lu@intel.com>
3887 * config/i386/iamcu.h (SIZE_TYPE): New macro.
3888 (PTRDIFF_TYPE): Likewise.
3889 (WCHAR_TYPE): Likewise.
3890 (WCHAR_TYPE_SIZE): Likewise.
3891 (STDINT_LONG32): Likewise.
3893 2016-01-12 Richard Biener <rguenther@suse.de>
3895 PR tree-optimization/69053
3896 * tree-vect-loop.c (get_initial_def_for_reduction): Properly
3897 convert initial value for cond reductions.
3899 2016-01-12 Richard Biener <rguenther@suse.de>
3901 PR tree-optimization/69007
3902 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
3903 widen_sum after dot_prod and sad.
3905 2016-01-12 Richard Biener <rguenther@suse.de>
3907 PR tree-optimization/69168
3908 * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
3909 pattern stmt SLP type.
3910 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
3911 end up unused so cope with that case.
3913 2016-01-12 Richard Biener <rguenther@suse.de>
3915 PR tree-optimization/69157
3916 * tree-vect-stmts.c (vectorizable_mask_load_store): Check
3917 stmts def type only during analyze phase.
3918 (vectorizable_call): Likewise.
3919 (vectorizable_simd_clone_call): Likewise.
3920 (vectorizable_conversion): Likewise.
3921 (vectorizable_assignment): Likewise.
3922 (vectorizable_shift): Likewise.
3923 (vectorizable_operation): Likewise.
3924 (vectorizable_store): Likewise.
3925 (vectorizable_load): Likewise.
3927 2016-01-12 Richard Biener <rguenther@suse.de>
3929 PR tree-optimization/69174
3930 * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
3932 (vectorizable_load): Properly compute the number of loads needed
3933 for permuted strided SLP loads and do not spuriously assign
3934 to SLP_TREE_VEC_STMTS.
3936 2016-01-12 Andris Pavenis <andris.pavenis@iki.fi>
3938 * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
3939 (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
3940 (MD_EXEC_PREFIX): Remove.
3941 (MD_STARTFILE_PREFIX) Removee.
3942 (FILE_NAME_ABSOLUTE_P): Remove.
3943 (CPP_SPEC): Do not read macros from sys/version.h.
3944 (LINK_COMMAND_SPEC): Remove.
3945 (LOCAL_INCLUDE_DIR): Remove.
3946 (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
3947 (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
3948 (POST_LINK_SPEC): Define to invoke stubify after linker
3949 (LIBSTDCXX): Remove define
3950 (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
3951 (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
3952 (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
3953 (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
3954 (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
3955 (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
3956 (i386_djgpp_asm_named_section): Add propotype of new procedure
3958 * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
3959 (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
3960 (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
3961 in config/i386/djgpp.h).
3962 (STANDARD_STARTFILE_PREFIX_2): Define identical to
3963 STANDARD_STARTFILE_PREFIX_1.
3964 (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
3965 (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
3966 installation errors.
3967 (MAX_OFILE_ALIGNMENT): Define to 128.
3968 (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
3970 * config/i386/djgpp.c: New file. Add implementation of
3971 i386_djgpp_asm_named_section.
3973 * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
3975 * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
3976 Add rule for building djgpp.o.
3978 2016-01-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3980 * config/rs6000/rs6000.c (v2df_reduction_p): New function.
3981 (rtx_is_swappable_p): Reductions are swappable.
3982 (insn_is_swappable_p): V2DF reductions are swappable.
3984 2016-01-11 John David Anglin <danglin@gcc.gnu.org>
3986 * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
3987 reloads for other unsupported memory operands.
3989 2016-01-12 Kugan Vivekanandarajah <kuganv@linaro.org>
3990 Jim Wilson <jim.wilson@linaro.org>
3993 * config/arm/arm-builtins.c (arm_expand_neon_args): Call
3994 copy_to_mode_reg instead of force_reg.
3996 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
3999 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
4000 TARGET_80387 is true.
4002 2016-01-11 Jakub Jelinek <jakub@redhat.com>
4005 * lra-eliminations.c (move_plus_up): Only move plus up
4006 if subreg of the constant can be simplified into constant
4007 and use the simplified subreg of the constant instead of
4008 the original constant.
4010 * fold-const.c (fold_convertible_p): Don't return true
4011 for conversion of VECTOR_TYPE to same sized integral type.
4012 (fold_convert_loc): Fix up formatting. Fold conversion of
4013 VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
4014 instead of NOP_EXPR.
4016 PR tree-optimization/69214
4017 * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
4018 innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
4021 PR tree-optimization/69207
4022 * tree-vect-slp.c (vect_get_constant_vectors): For
4023 VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
4024 fold_convertible_p to vector_type's element type, and always
4025 use VCE for non-VECTOR_BOOLEAN_TYPE_P.
4027 2016-01-11 Richard Biener <rguenther@suse.de>
4029 PR tree-optimization/69173
4030 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
4031 fixup the cycle if all stmts are in a pattern.
4033 2016-01-11 Uros Bizjak <ubizjak@gmail.com>
4036 * alias.c (base_alias_check): Move check for addresses with
4037 alignment ANDs before the call for compare_base_decls.
4038 (memrefs_conflict_p): Return -1 for different decls
4039 that went through alignment adjustments.
4041 2016-01-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4043 PR rtl-optimization/68796
4044 * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
4045 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
4046 and QImode comparisons against zero with CC_NZmode.
4047 * config/aarch64/iterators.md (short_mask): New mode_attr.
4049 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
4051 * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
4052 (<avx512>_store<mode>_mask): Likewise.
4054 2016-01-11 Bernd Schmidt <bschmidt@redhat.com>
4055 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4057 PR rtl-optimization/68841
4058 * ifcvt.c (struct noce_if_info): Add orig_x field.
4059 (bbs_ok_for_cmove_arith): Add to_rename parameter.
4060 Don't record conflicts on to_rename if it's present.
4061 Allow memory destinations in sets.
4062 (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
4063 blocks, passing orig_x to the checks.
4064 (noce_process_if_block): Set if_info->orig_x appropriately.
4066 2016-01-11 Tom de Vries <tom@codesourcery.com>
4068 PR tree-optimization/69069
4069 * tree-parloops.c (create_parallel_loop): Add missing phi args.
4071 2016-01-11 Yuri Rumyantsev <ysrumyan@gmail.com>
4073 PR rtl-optimization/68920
4074 * config/i386/i386.c (ix86_option_override_internal): Restrict number
4075 of conditional moves for RTL if-conversion to 1 for
4076 TARGET_ONE_IF_CONV_INSN.
4077 * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
4078 * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
4079 * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
4080 parameter to restirct number of conditional moves for
4082 * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
4083 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
4086 2016-01-11 Alexandre Oliva <aoliva@redhat.com>
4089 * var-tracking.c (drop_overlapping_mem_locs): Operate on all
4090 onepart vars. Fix typo in comment. Fix reversed condition in
4092 (dataflow_set_remove_mem_locs): Operate on all onepart vars.
4095 * var-tracking.c (dump_onepart_variable_differences): New.
4096 (dataflow_set_different): If a detailed dump is requested,
4097 delay early returns and dump differences between onepart
4098 variables present before and after, and added variables.
4100 2016-01-11 Ilya Enkovich <enkovich.gnu@gmail.com>
4103 * expr.c (expand_expr_real_1): For boolean vector constants
4104 with a scalar mode use const_scalar_mask_from_tree.
4105 (const_scalar_mask_from_tree): New.
4106 * optabs.c (expand_vec_cond_mask_expr): Use mask mode
4107 assigned to a mask type to handle constants.
4109 2016-01-11 Martin Jambor <mjambor@suse.cz>
4112 * ipa-cp.c (estimate_local_effects): Do not clone for removal of
4113 useless parameters if we cannot change function signature.
4115 2016-01-11 Martin Jambor <mjambor@suse.cz>
4118 * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
4121 2016-01-11 Tom de Vries <tom@codesourcery.com>
4123 PR tree-optimization/69109
4124 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
4127 2016-01-11 Tom de Vries <tom@codesourcery.com>
4129 PR tree-optimization/69108
4130 * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
4131 res is not used in a phi.
4133 2016-01-11 Yury Gribov <y.gribov@samsung.com>
4136 * common.opt (frandom-seed): Fix parameter name.
4137 * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
4139 2016-01-11 Tom de Vries <tom@codesourcery.com>
4141 PR tree-optimization/69058
4142 * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
4145 2016-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
4147 * config/arc/arc.opt (mdiv-rem): Add period to the end.
4148 (mcode-density): Likewise.
4150 2016-01-10 Tom de Vries <tom@codesourcery.com>
4152 PR tree-optimization/69062
4153 * tree-parloops.c (loop_has_phi_with_address_arg): New function.
4154 (parallelize_loops): Don't paralelize loop that has phi with address
4157 2016-01-10 Tom de Vries <tom@codesourcery.com>
4159 PR tree-optimization/69039
4160 * tree-parloops.c (try_create_reduction_list): Only allow single exit
4163 2016-01-09 John David Anglin <danglin@gcc.gnu.org>
4166 * match.pd: Require target has function_c99_misc before doing
4167 truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
4169 2016-01-09 Gerald Pfeifer <gerald@pfeifer.com>
4171 * configure.ac (isl_options_set_schedule_serialize_sccs): Also
4173 * configure: Regenerate.
4175 2016-01-09 Jakub Jelinek <jakub@redhat.com>
4178 PR tree-optimization/69097
4179 * fold-const.h (expr_not_equal_to): New prototype.
4180 * fold-const.c: Include stringpool.h and tree-ssanames.h.
4181 (expr_not_equal_to): New function.
4182 * match.pd (X % -Y is the same as X % Y): Don't optimize
4183 unless X is known not to be equal to minimum or Y is known
4184 not to be equal to -1.
4185 * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
4186 fold TRUNC_MOD_EXPR if the second argument is not a power of two.
4187 (simplify_stmt_using_ranges): Adjust caller.
4188 (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
4189 substitute_and_fold.
4191 2016-01-09 Jan Hubicka <hubicka@ucw.cz>
4193 * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
4196 2016-01-08 Jakub Jelinek <jakub@redhat.com>
4198 PR tree-optimization/69167
4199 * gimple-fold.c (replace_stmt_with_simplification): Also punt if
4200 new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
4202 * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
4204 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
4205 Richard Biener <rguenther@suse.de>
4207 PR tree-optimization/68707
4208 * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
4209 instances that can be handled via vect_load_lanes.
4211 2016-01-08 Uros Bizjak <ubizjak@gmail.com>
4213 * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
4214 if we can't determine address equivalence.
4215 * alias.c (compare_base_decl): Update for changed return value of
4216 symtab_node::equal_address_to.
4218 2016-01-08 Jason Merrill <jason@redhat.com>
4222 * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
4223 * expr.c (store_field): Not here.
4224 * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
4225 call with TREE_ADDRESSABLE type.
4226 * tree-cfg.c (verify_gimple_call): Adjust.
4228 2016-01-08 Olivier Hainque <hainque@adacore.com>
4230 * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
4233 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
4235 * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
4236 (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
4237 (reduc_smin_v2sf): Rename to...
4238 (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
4239 (reduc_splus_v2sf): Rename to...
4240 (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
4242 2016-01-08 Jakub Jelinek <jakub@redhat.com>
4244 PR tree-optimization/69162
4245 * gimplify.c (gimplify_va_arg_expr): Encode original type of
4246 valist argument in another argument.
4247 (gimplify_modify_expr): Adjust for the above change. Cleanup.
4248 * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
4249 to determine the va_list type, build a MEM_REF instead of
4250 build_fold_indirect_ref.
4252 PR tree-optimization/69172
4253 * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
4256 2016-01-08 Thomas Preud'homme <thomas.preudhomme@arm.com>
4258 PR tree-optimization/67781
4259 * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
4260 and cmpnop in two steps: first the ones not accessed in original
4261 gimple expression in a endian independent way and then the ones not
4262 accessed in the final result in an endian-specific way.
4264 2016-01-08 Jakub Jelinek <jakub@redhat.com>
4266 PR tree-optimization/69083
4267 * tree-vect-slp.c (vect_get_constant_vectors): For
4268 VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
4269 element type. If op is fold_convertible_p to vector_type's element
4270 type, use NOP_EXPR instead of VCE.
4272 2016-01-08 Segher Boessenkool <segher@kernel.crashing.org>
4274 PR rtl-optimization/67778
4275 PR rtl-optimization/68634
4276 PR rtl-optimization/68909
4277 * shrink-wrap.c (try_shrink_wrapping): Add comment. Don't pop
4278 block from the stack until done with it. Remove a superfluous
4279 bitmap set. Remove a superfluous bitmap test.
4281 2016-01-07 Martin Sebor <msebor@redhat.com>
4284 * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
4285 constraint on the type of arguments.
4287 2016-01-07 Andreas Tobler <andreast@gcc.gnu.org>
4289 * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
4290 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
4291 unaligned_access on the gcc_options set.
4292 * config/arm/arm.c (arm_option_override_internal): Use
4293 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
4295 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
4298 * config/i386/i386.c (ix86_frame_pointer_required): Enable
4299 frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
4301 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
4304 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
4307 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
4308 depending on frame_pointer_needed before remaining integer and SSE
4309 registers are saved.
4311 2016-01-07 Sandra Loosemore <sandra@codesourcery.com>
4314 * doc/extend.texi (Nvidia PDX Function Attributes): New section.
4316 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
4319 * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
4320 Use the "xBm" constraint.
4321 (float<sseintvecmodelower><mode>2<mask_name><round_name):
4323 (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
4324 (sse_cvtsi2ssq<round_name>): Likewise.
4325 (sse_cvtss2si<round_name>): Likewise.
4326 (sse_cvtss2siq<round_name>): Likewise.
4327 (sse2_cvtsi2sdq<round_name>): Likewise.
4328 (sse2_cvtsd2si<round_name>): Likewise.
4329 (sse2_cvtsd2siq<round_name>): Likewise.
4330 * config/i386/subst.md (round_nimm_scalar_predicate): New
4333 2015-12-15 Bernd Schmidt <bschmidt@redhat.com>
4336 * varasm.c (make_decl_rtl): Mark invalid register vars as
4339 PR rtl-optimization/66206
4340 * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
4341 All callers changed.
4343 2016-01-07 Jakub Jelinek <jakub@redhat.com>
4345 PR tree-optimization/69141
4346 * tree-ssa-pre.c: Include langhooks.h.
4347 (eliminate_dom_walker::before_dom_children): Use
4348 lang_hooks.decl_printable_name instead of
4349 cgraph_node::get ()->name ().
4352 * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
4353 it and DECL_ALIGN too.
4355 2016-01-06 Robert Suchanek <robert.suchanek@imgtec.com>
4357 * config/mips/mips-ftypes.def: Sort to lexicographical order.
4359 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
4362 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
4363 depending on frame_pointer_needed before remaining integer and SSE
4364 registers are saved.
4366 2015-01-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4368 * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
4369 mode iterator with VSX_M2.
4370 (*p9_vecstore_<mode>): Likewise.
4371 (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
4372 (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
4373 (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
4374 (define_split for VSX_LE128 stores): Likewise.
4375 (define_peephole2 for TImode LE swaps): Likewise.
4376 (define_split for VSX_LE128 post-reload stores): Likewise.
4378 2016-01-06 Marek Polacek <polacek@redhat.com>
4381 * convert.c (convert_to_integer_1): Adjust call to
4382 ubsan_instrument_float_cast. Use NULL_TREE instead of NULL.
4383 * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter. Use
4384 EXPR instead of ARG.
4385 * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
4387 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
4390 * doc/extend.texi (RL78 Variable Attributes): New section.
4392 2016-01-05 Marek Polacek <polacek@redhat.com>
4395 * builtins.c (get_memmodel): Use expansion point location rather than
4396 the input location. Call warning_at rather than warning.
4397 (expand_builtin_atomic_compare_exchange): Likewise.
4398 (expand_builtin_atomic_load): Likewise.
4399 (expand_builtin_atomic_store): Likewise.
4400 (expand_builtin_atomic_clear): Likewise.
4402 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
4405 * config/i386/i386.c (ix86_expand_vector_logical_operator):
4406 Replace nonimmediate_operand with vector_operand.
4407 * config/i386/predicates.md (vector_operand): New predicate.
4408 (general_vector_operand): Replace nonimmediate_operand with
4410 * config/i386/sse.md: Replace nonimmediate_operand with
4411 vector_operand and m constraint with Bm constraint on SSE
4412 patterns with 16-byte memory operand.
4413 * config/i386/subst.md (round_nimm_predicate): Replace
4414 nonimmediate_operand with vector_operand.
4415 (round_saeonly_nimm_predicate): Likewise.
4416 (round_saeonly_nimm_scalar_predicate): New.
4418 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
4421 * config/i386/constraints.md (Bm): New constraint.
4422 * config/i386/predicates.md (vector_memory_operand): New
4424 * config/i386/sse.md: Replace xm with xBm in plusminus and
4427 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
4430 * doc/extend.texi (V850 Function Attributes): New section.
4431 (V850 Variable Attributes): New section.
4433 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
4436 * doc/extend.texi (MicroBlaze Function Attributes): Document
4437 interrupt_handler and fast_interrupt attributes.
4439 2016-01-05 Sergei Trofimovich <siarheit@google.com>
4442 * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
4443 for local symbolic operands.
4444 * config/ia64/predicates.md (local_symbolic_operand64): New
4447 2016-01-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4449 PR rtl-optimization/68651
4450 * combine.c (combine_simplify_rtx): Canonicalize x + x into
4453 2016-01-05 Nathan Sidwell <nathan@acm.org>
4455 * alias.c (compare_base_decls): Use symtab_node::get.
4457 2016-01-05 Nick Clifton <nickc@redhat.com>
4460 * ira-costs.c (copy_cost): Initialise the t_icode field of the
4461 secondary_reload_info structure.
4464 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
4465 decls if weak support is available.
4467 2016-01-04 Martin Sebor <msebor@redhat.com>
4469 * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
4471 2016-01-04 Michael Meissner <meissner@linux.vnet.ibm.com>
4473 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
4474 OPTION_MASK_P9_DFORM.
4476 * config/rs6000/constraints.md (wo constraint): New constraint for
4479 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
4481 (rs6000_init_hard_regno_mode_ok): Likewise.
4483 * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
4486 * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
4487 expanders not to have constraints. Add support for ISA 3.0 xxperm
4488 instruction. Add support for fusing xxlor with xxperm.
4489 (altivec_vperm_<mode>_internal): Likewise.
4490 (altivec_vperm_v8hiv16qi): Likewise.
4491 (altivec_vperm_<mode>v16q): Likewise.
4492 (altivec_vperm_<mode>_uns): Likewise.
4493 (vperm_v8hiv4si): Likewise.
4494 (vperm_v16qiv8hi): Likewise.
4496 * doc/md.texi (RS/6000 constraints): Document wo constraint.
4498 2016-01-04 Jakub Jelinek <jakub@redhat.com>
4500 Update copyright years.
4502 * gcc.c (process_command): Update copyright notice dates.
4503 * gcov-dump.c (print_version): Ditto.
4504 * gcov.c (print_version): Ditto.
4505 * gcov-tool.c (print_version): Ditto.
4506 * gengtype.c (create_file): Ditto.
4507 * doc/cpp.texi: Bump @copying's copyright year.
4508 * doc/cppinternals.texi: Ditto.
4509 * doc/gcc.texi: Ditto.
4510 * doc/gccint.texi: Ditto.
4511 * doc/gcov.texi: Ditto.
4512 * doc/install.texi: Ditto.
4513 * doc/invoke.texi: Ditto.
4515 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
4517 * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
4518 modes larger than TImode as TImode if NEON is not enabled.
4520 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
4523 * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
4524 mode for %f0-%f31 only if TARGET_FPU.
4526 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
4529 * config/sparc/sparc.c (scan_record_type): Take into account subfields
4530 to compute the PACKED_P predicate.
4531 (function_arg_record_value): Minor tweaks.
4533 2016-01-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
4535 * doc/install.texi (--with-multilib-list): Describe the meaning of the
4536 option for arm*-*-* targets.
4538 2016-01-03 Sandra Loosemore <sandra@codesourcery.com>
4540 * doc/extend.texi (Common Function Attributes): Move docs for
4541 MSP430-specific attributes to....
4542 (MSP430 Function Attributes): ...here. Delete the redundant
4543 entries and copy-edit the remaining text.
4544 (MSP430 Variable Attributes): Use uniform format for index
4545 entries and add a cross-reference to the corresponding function
4548 2016-01-03 Vladimír Čunát <vcunat@gmail.com>
4550 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
4552 (x86 Options): Likewise.
4554 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
4558 * extend.texi (Common Function Attributes) <no_stack_limit>: New.
4559 * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
4560 to corresponding attribute.
4562 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
4564 * doc/extend.texi (Common Function Attributes) <noplt>: Move
4565 to correct alphabetization of table. Copy-edit and correct
4567 <stack_protect>: Likewise.
4568 <target_clones>: Likewise.
4570 * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
4571 Correct punctuation.
4572 (Code Gen Options) <-fno-plt>: Copy-edit.
4574 2016-01-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
4577 * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
4578 SI values. Explicitly convert SI to DI and vice-versa.
4580 2016-01-01 Jakub Jelinek <jakub@redhat.com>
4582 PR tree-optimization/69070
4583 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
4584 REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
4587 * ubsan.c (ubsan_instrument_float_cast): Call
4588 initialize_sanitizer_builtins.
4591 * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
4593 Copyright (C) 2016 Free Software Foundation, Inc.
4595 Copying and distribution of this file, with or without modification,
4596 are permitted in any medium without royalty provided the copyright
4597 notice and this notice are preserved.